@divkitframework/divkit 27.0.0 → 27.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- (()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{SizeProvider:()=>ys,createGlobalVariablesController:()=>cs,createVariable:()=>Nn,evalExpression:()=>ws,evalExpressionWithFullResult:()=>xs,functionNames:()=>ks,lottieExtensionBuilder:()=>_s,render:()=>bs,valToString:()=>V});const n="function"==typeof BigInt;function r(t){return n?BigInt(t):Number(t)}const i=r("9223372036854775807"),o=r("-9223372036854775808");function a(t){const e=r(t);if(e>i||e<o)throw new Error("Integer overflow.");return e}const l=a(0);function s(t){let e=t;return e<0&&(e=-e),e}function c(t){let e=0;return t>0?e=1:t<0&&(e=-1),a(e)}function u(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function d(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function h(t){if(t.every((t=>"string"==typeof t)))return{type:"StringLiteral",value:t.join("")};let e=t.reduce(((t,e)=>("string"==typeof e&&"string"==typeof t[t.length-1]?t[t.length-1]+=e:t.push(e),t)),[]).reduce(((t,e)=>("string"==typeof e?t.quasis.push({type:"StringLiteral",value:e}):(t.quasis.length===t.expressions.length&&t.quasis.push({type:"StringLiteral",value:""}),t.expressions.push(e)),t)),{type:"TemplateLiteral",quasis:[],expressions:[]});return e.quasis.length===e.expressions.length&&e.quasis.push({type:"StringLiteral",value:""}),e}function p(t){try{return a(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function f(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function g(t,e,n,r){var i=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(i,g.prototype),i.expected=e,i.found=n,i.location=r,i.name="SyntaxError",i}function m(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function v(t,e){var n,r={},i=(e=void 0!==e?e:{}).grammarSource,o={start:Ne,JsonStringContents:function(){var t,e,n;for(t=_e,e=[],n=Fe();n!==r;)e.push(n),n=Fe();return be=t,e=Tt(e)}},a=Ne,l="@{",s="}",c="@{}",m="\\",v="?",y=":",$="||",_="&&",b="==",w="!=",x=">=",k=">",E="<=",C="<",A="+",V="-",D="/",P="*",j="%",S="!",N="(",F=")",I=",",M="'",T=".",z="e",O="E",J="true",B="false",R=/^[^}]/,U=/^[^'}]/,L=/^[0-9]/,W=/^[a-zA-Z_0-9.]/,H=/^[a-zA-Z_]/,q=/^[ \t\r\n]/,G=Ae("@{",!1),K=Ae("}",!1),X=Ae("@{}",!1),Y=Ae("\\",!1),Z={type:"any"},Q=Ve(["}"],!0,!1),tt=Ae("?",!1),et=Ae(":",!1),nt=Ae("||",!1),rt=Ae("&&",!1),it=Ae("==",!1),ot=Ae("!=",!1),at=Ae(">=",!1),lt=Ae(">",!1),st=Ae("<=",!1),ct=Ae("<",!1),ut=Ae("+",!1),dt=Ae("-",!1),ht=Ae("/",!1),pt=Ae("*",!1),ft=Ae("%",!1),gt=Ae("!",!1),mt=Ae("(",!1),vt=Ae(")",!1),yt=Ae(",",!1),$t=De("string"),_t=Ae("'",!1),bt=Ve(["'","}"],!0,!1),wt=De("integer"),xt=Ve([["0","9"]],!1,!1),kt=De("number"),Et=Ae(".",!1),Ct=Ae("e",!1),At=Ae("E",!1),Vt=De("boolean"),Dt=Ae("true",!1),Pt=Ae("false",!1),jt=Ve([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),St=De("identifier"),Nt=Ve([["a","z"],["A","Z"],"_"],!1,!1),Ft=De("whitespace"),It=Ve([" ","\t","\r","\n"],!1,!1),Mt=function(t){return t},Tt=function(t){return h(t)},zt=function(t){return t},Ot=function(){return""},Jt=function(){return Ce()},Bt=function(){throw new Error("Error tokenizing '"+t+"'.")},Rt=function(){throw new Error("Error tokenizing '"+t+"'.")},Ut=function(t){return t},Lt=function(t){return f(t)},Wt=function(){throw new Error("Error tokenizing '"+t+"'.")},Ht=function(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}},qt=function(t,e){return d(t,e)},Gt=function(t,e){return d(t,e)},Kt=function(t,e){return u(t,e)},Xt=function(t,e){return u(t,e)},Yt=function(t,e){return u(t,e)},Zt=function(t,e){return u(t,e)},Qt=function(t,e){return{type:"UnaryExpression",operator:t,argument:e}},te=function(t,e){return{type:"CallExpression",callee:t,arguments:e}},ee=function(t){return{type:"Variable",id:t}},ne=function(t,e){return[t,...e]},re=function(t){return t},ie=function(t){return t},oe=function(t){return h(t)},ae=function(t){return t},le=function(){return""},se=function(){return Ce()},ce=function(){throw new Error("Error tokenizing '"+t+"'.")},ue=function(){throw new Error("Error tokenizing '"+t+"'.")},de=function(t){return t},he=function(t){return f(t)},pe=function(){throw new Error("Error tokenizing '"+t+"'.")},fe=function(){return{type:"IntegerLiteral",value:p(Ce())}},ge=function(){return{type:"NumberLiteral",value:parseFloat(Ce())}},me=function(){return{type:"NumberLiteral",value:parseFloat(Ce())}},ve=function(){return{type:"BooleanLiteral",value:!0}},ye=function(){return{type:"BooleanLiteral",value:!1}},$e=function(){return{type:"Identifier",name:Ce()}},_e=0,be=0,we=[{line:1,column:1}],xe=0,ke=[],Ee=0;if("startRule"in e){if(!(e.startRule in o))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=o[e.startRule]}function Ce(){return t.substring(be,_e)}function Ae(t,e){return{type:"literal",text:t,ignoreCase:e}}function Ve(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function De(t){return{type:"other",description:t}}function Pe(e){var n,r=we[e];if(r)return r;for(n=e-1;!we[n];)n--;for(r={line:(r=we[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return we[e]=r,r}function je(t,e,n){var r=Pe(t),o=Pe(e),a={source:i,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:o.line,column:o.column}};return n&&i&&"function"==typeof i.offset&&(a.start=i.offset(a.start),a.end=i.offset(a.end)),a}function Se(t){_e<xe||(_e>xe&&(xe=_e,ke=[]),ke.push(t))}function Ne(){var t,e;return t=_e,qe(),(e=Ie())!==r?(qe(),be=t,t=Mt(e)):(_e=t,t=r),t}function Fe(){var e,n,i,o,a;if(e=_e,t.substr(_e,2)===l?(n=l,_e+=2):(n=r,0===Ee&&Se(G)),n!==r?(i=qe(),(o=Ie())!==r?(qe(),125===t.charCodeAt(_e)?(a=s,_e++):(a=r,0===Ee&&Se(K)),a!==r?(be=e,e=zt(o)):(_e=e,e=r)):(_e=e,e=r)):(_e=e,e=r),e===r&&(e=_e,t.substr(_e,3)===c?(n=c,_e+=3):(n=r,0===Ee&&Se(X)),n!==r&&(be=e,n=Ot()),(e=n)===r&&(e=_e,n=_e,Ee++,92===t.charCodeAt(_e)?(i=m,_e++):(i=r,0===Ee&&Se(Y)),i===r&&(t.substr(_e,2)===l?(i=l,_e+=2):(i=r,0===Ee&&Se(G))),Ee--,i===r?n=void 0:(_e=n,n=r),n!==r?(t.length>_e?(i=t.charAt(_e),_e++):(i=r,0===Ee&&Se(Z)),i!==r?(be=e,e=Jt()):(_e=e,e=r)):(_e=e,e=r),e===r))){if(e=_e,t.substr(_e,2)===l?(n=l,_e+=2):(n=r,0===Ee&&Se(G)),n!==r){if(i=[],R.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=r,0===Ee&&Se(Q)),o!==r)for(;o!==r;)i.push(o),R.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=r,0===Ee&&Se(Q));else i=r;i!==r?(125===t.charCodeAt(_e)?(o=s,_e++):(o=r,0===Ee&&Se(K)),o!==r?(be=e,e=Bt()):(_e=e,e=r)):(_e=e,e=r)}else _e=e,e=r;e===r&&(e=_e,t.substr(_e,2)===l?(n=l,_e+=2):(n=r,0===Ee&&Se(G)),n!==r&&(be=e,n=Rt()),(e=n)===r&&(e=_e,92===t.charCodeAt(_e)?(n=m,_e++):(n=r,0===Ee&&Se(Y)),n!==r?(t.substr(_e,2)===l?(i=l,_e+=2):(i=r,0===Ee&&Se(G)),i!==r?(be=e,e=Ut(i)):(_e=e,e=r)):(_e=e,e=r),e===r&&(e=_e,92===t.charCodeAt(_e)?(n=m,_e++):(n=r,0===Ee&&Se(Y)),n!==r?(t.length>_e?(i=t.charAt(_e),_e++):(i=r,0===Ee&&Se(Z)),i!==r?(be=e,e=Lt(i)):(_e=e,e=r)):(_e=e,e=r),e===r&&(e=_e,92===t.charCodeAt(_e)?(n=m,_e++):(n=r,0===Ee&&Se(Y)),n!==r&&(be=e,n=Wt()),e=n))))}return e}function Ie(){var e,n,i,o,a,l;return e=_e,(n=Me())!==r?(qe(),63===t.charCodeAt(_e)?(i=v,_e++):(i=r,0===Ee&&Se(tt)),i!==r?(qe(),(o=Ie())!==r?(qe(),58===t.charCodeAt(_e)?(a=y,_e++):(a=r,0===Ee&&Se(et)),a!==r?(qe(),(l=Ie())!==r?(be=e,e=Ht(n,o,l)):(_e=e,e=r)):(_e=e,e=r)):(_e=e,e=r)):(_e=e,e=r)):(_e=e,e=r),e===r&&(e=Me()),e}function Me(){var e,n,i,o,a,l,s,c;if(e=_e,(n=Te())!==r){for(i=[],o=_e,a=qe(),t.substr(_e,2)===$?(l=$,_e+=2):(l=r,0===Ee&&Se(nt)),l!==r?(s=qe(),(c=Te())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);o!==r;)i.push(o),o=_e,a=qe(),t.substr(_e,2)===$?(l=$,_e+=2):(l=r,0===Ee&&Se(nt)),l!==r?(s=qe(),(c=Te())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);be=e,e=qt(n,i)}else _e=e,e=r;return e}function Te(){var e,n,i,o,a,l,s,c;if(e=_e,(n=ze())!==r){for(i=[],o=_e,a=qe(),t.substr(_e,2)===_?(l=_,_e+=2):(l=r,0===Ee&&Se(rt)),l!==r?(s=qe(),(c=ze())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);o!==r;)i.push(o),o=_e,a=qe(),t.substr(_e,2)===_?(l=_,_e+=2):(l=r,0===Ee&&Se(rt)),l!==r?(s=qe(),(c=ze())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);be=e,e=Gt(n,i)}else _e=e,e=r;return e}function ze(){var e,n,i,o,a,l,s,c;if(e=_e,(n=Oe())!==r){for(i=[],o=_e,a=qe(),t.substr(_e,2)===b?(l=b,_e+=2):(l=r,0===Ee&&Se(it)),l===r&&(t.substr(_e,2)===w?(l=w,_e+=2):(l=r,0===Ee&&Se(ot))),l!==r?(s=qe(),(c=Oe())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);o!==r;)i.push(o),o=_e,a=qe(),t.substr(_e,2)===b?(l=b,_e+=2):(l=r,0===Ee&&Se(it)),l===r&&(t.substr(_e,2)===w?(l=w,_e+=2):(l=r,0===Ee&&Se(ot))),l!==r?(s=qe(),(c=Oe())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);be=e,e=Kt(n,i)}else _e=e,e=r;return e}function Oe(){var e,n,i,o,a,l,s,c;if(e=_e,(n=Je())!==r){for(i=[],o=_e,a=qe(),t.substr(_e,2)===x?(l=x,_e+=2):(l=r,0===Ee&&Se(at)),l===r&&(62===t.charCodeAt(_e)?(l=k,_e++):(l=r,0===Ee&&Se(lt)),l===r&&(t.substr(_e,2)===E?(l=E,_e+=2):(l=r,0===Ee&&Se(st)),l===r&&(60===t.charCodeAt(_e)?(l=C,_e++):(l=r,0===Ee&&Se(ct))))),l!==r?(s=qe(),(c=Je())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);o!==r;)i.push(o),o=_e,a=qe(),t.substr(_e,2)===x?(l=x,_e+=2):(l=r,0===Ee&&Se(at)),l===r&&(62===t.charCodeAt(_e)?(l=k,_e++):(l=r,0===Ee&&Se(lt)),l===r&&(t.substr(_e,2)===E?(l=E,_e+=2):(l=r,0===Ee&&Se(st)),l===r&&(60===t.charCodeAt(_e)?(l=C,_e++):(l=r,0===Ee&&Se(ct))))),l!==r?(s=qe(),(c=Je())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);be=e,e=Xt(n,i)}else _e=e,e=r;return e}function Je(){var e,n,i,o,a,l,s,c;if(e=_e,(n=Be())!==r){for(i=[],o=_e,a=qe(),43===t.charCodeAt(_e)?(l=A,_e++):(l=r,0===Ee&&Se(ut)),l===r&&(45===t.charCodeAt(_e)?(l=V,_e++):(l=r,0===Ee&&Se(dt))),l!==r?(s=qe(),(c=Be())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);o!==r;)i.push(o),o=_e,a=qe(),43===t.charCodeAt(_e)?(l=A,_e++):(l=r,0===Ee&&Se(ut)),l===r&&(45===t.charCodeAt(_e)?(l=V,_e++):(l=r,0===Ee&&Se(dt))),l!==r?(s=qe(),(c=Be())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);be=e,e=Yt(n,i)}else _e=e,e=r;return e}function Be(){var e,n,i,o,a,l,s,c;if(e=_e,(n=Re())!==r){for(i=[],o=_e,a=qe(),47===t.charCodeAt(_e)?(l=D,_e++):(l=r,0===Ee&&Se(ht)),l===r&&(42===t.charCodeAt(_e)?(l=P,_e++):(l=r,0===Ee&&Se(pt)),l===r&&(37===t.charCodeAt(_e)?(l=j,_e++):(l=r,0===Ee&&Se(ft)))),l!==r?(s=qe(),(c=Re())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);o!==r;)i.push(o),o=_e,a=qe(),47===t.charCodeAt(_e)?(l=D,_e++):(l=r,0===Ee&&Se(ht)),l===r&&(42===t.charCodeAt(_e)?(l=P,_e++):(l=r,0===Ee&&Se(pt)),l===r&&(37===t.charCodeAt(_e)?(l=j,_e++):(l=r,0===Ee&&Se(ft)))),l!==r?(s=qe(),(c=Re())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);be=e,e=Zt(n,i)}else _e=e,e=r;return e}function Re(){var e,n,i;return(e=We())===r&&(e=Le())===r&&(e=_e,33===t.charCodeAt(_e)?(n=S,_e++):(n=r,0===Ee&&Se(gt)),n===r&&(43===t.charCodeAt(_e)?(n=A,_e++):(n=r,0===Ee&&Se(ut)),n===r&&(45===t.charCodeAt(_e)?(n=V,_e++):(n=r,0===Ee&&Se(dt)))),n!==r?(qe(),(i=Re())!==r?(be=e,e=Qt(n,i)):(_e=e,e=r)):(_e=e,e=r),e===r&&(e=function(){var e,n,i,o,a;return e=_e,(n=He())!==r?(qe(),40===t.charCodeAt(_e)?(i=N,_e++):(i=r,0===Ee&&Se(mt)),i!==r?(qe(),o=function(){var e,n,i,o,a,l;if(e=_e,(n=Ie())!==r){for(i=[],o=_e,qe(),44===t.charCodeAt(_e)?(a=I,_e++):(a=r,0===Ee&&Se(yt)),a!==r?(qe(),(l=Ie())!==r?o=l:(_e=o,o=r)):(_e=o,o=r);o!==r;)i.push(o),o=_e,qe(),44===t.charCodeAt(_e)?(a=I,_e++):(a=r,0===Ee&&Se(yt)),a!==r?(qe(),(l=Ie())!==r?o=l:(_e=o,o=r)):(_e=o,o=r);be=e,e=ne(n,i)}else _e=e,e=r;return e===r&&(e=qe()),e}(),o!==r?(qe(),41===t.charCodeAt(_e)?(a=F,_e++):(a=r,0===Ee&&Se(vt)),a!==r?(be=e,e=te(n,o)):(_e=e,e=r)):(_e=e,e=r)):(_e=e,e=r)):(_e=e,e=r),e===r&&(e=_e,(n=He())!==r&&(be=e,n=ee(n)),(e=n)===r&&(e=function(){var e,n,i,o;return e=function(){var e,n,i,o;return Ee++,e=_e,39===t.charCodeAt(_e)?(n=M,_e++):(n=r,0===Ee&&Se(_t)),n!==r?(i=function(){var t,e,n;for(t=_e,e=[],n=Ue();n!==r;)e.push(n),n=Ue();return be=t,t=e=oe(e)}(),39===t.charCodeAt(_e)?(o=M,_e++):(o=r,0===Ee&&Se(_t)),o!==r?(be=e,e=ie(i)):(_e=e,e=r)):(_e=e,e=r),Ee--,e===r&&(n=r,0===Ee&&Se($t)),e}(),e===r&&(e=We())===r&&(e=Le())===r&&(e=function(){var e,n;return Ee++,e=_e,t.substr(_e,4)===J?(n=J,_e+=4):(n=r,0===Ee&&Se(Dt)),n!==r&&(be=e,n=ve()),(e=n)===r&&(e=_e,t.substr(_e,5)===B?(n=B,_e+=5):(n=r,0===Ee&&Se(Pt)),n!==r&&(be=e,n=ye()),e=n),Ee--,e===r&&(n=r,0===Ee&&Se(Vt)),e}(),e===r&&(e=_e,40===t.charCodeAt(_e)?(n=N,_e++):(n=r,0===Ee&&Se(mt)),n!==r&&(i=Ie())!==r?(41===t.charCodeAt(_e)?(o=F,_e++):(o=r,0===Ee&&Se(vt)),o!==r?(be=e,e=re(i)):(_e=e,e=r)):(_e=e,e=r))),e}())),e}())),e}function Ue(){var e,n,i,o,a;if(e=_e,t.substr(_e,2)===l?(n=l,_e+=2):(n=r,0===Ee&&Se(G)),n!==r?(i=qe(),(o=Ie())!==r?(qe(),125===t.charCodeAt(_e)?(a=s,_e++):(a=r,0===Ee&&Se(K)),a!==r?(be=e,e=ae(o)):(_e=e,e=r)):(_e=e,e=r)):(_e=e,e=r),e===r&&(e=_e,t.substr(_e,3)===c?(n=c,_e+=3):(n=r,0===Ee&&Se(X)),n!==r&&(be=e,n=le()),(e=n)===r&&(e=_e,n=_e,Ee++,92===t.charCodeAt(_e)?(i=m,_e++):(i=r,0===Ee&&Se(Y)),i===r&&(39===t.charCodeAt(_e)?(i=M,_e++):(i=r,0===Ee&&Se(_t)),i===r&&(t.substr(_e,2)===l?(i=l,_e+=2):(i=r,0===Ee&&Se(G)))),Ee--,i===r?n=void 0:(_e=n,n=r),n!==r?(t.length>_e?(i=t.charAt(_e),_e++):(i=r,0===Ee&&Se(Z)),i!==r?(be=e,e=se()):(_e=e,e=r)):(_e=e,e=r),e===r))){if(e=_e,t.substr(_e,2)===l?(n=l,_e+=2):(n=r,0===Ee&&Se(G)),n!==r){if(i=[],U.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=r,0===Ee&&Se(bt)),o!==r)for(;o!==r;)i.push(o),U.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=r,0===Ee&&Se(bt));else i=r;i!==r?(125===t.charCodeAt(_e)?(o=s,_e++):(o=r,0===Ee&&Se(K)),o!==r?(be=e,e=ce()):(_e=e,e=r)):(_e=e,e=r)}else _e=e,e=r;e===r&&(e=_e,t.substr(_e,2)===l?(n=l,_e+=2):(n=r,0===Ee&&Se(G)),n!==r&&(be=e,n=ue()),(e=n)===r&&(e=_e,92===t.charCodeAt(_e)?(n=m,_e++):(n=r,0===Ee&&Se(Y)),n!==r?(t.substr(_e,2)===l?(i=l,_e+=2):(i=r,0===Ee&&Se(G)),i!==r?(be=e,e=de(i)):(_e=e,e=r)):(_e=e,e=r),e===r&&(e=_e,92===t.charCodeAt(_e)?(n=m,_e++):(n=r,0===Ee&&Se(Y)),n!==r?(t.length>_e?(i=t.charAt(_e),_e++):(i=r,0===Ee&&Se(Z)),i!==r?(be=e,e=he(i)):(_e=e,e=r)):(_e=e,e=r),e===r&&(e=_e,92===t.charCodeAt(_e)?(n=m,_e++):(n=r,0===Ee&&Se(Y)),n!==r&&(be=e,n=pe()),e=n))))}return e}function Le(){var e,n,i,o;if(Ee++,e=_e,45===t.charCodeAt(_e)?(n=V,_e++):(n=r,0===Ee&&Se(dt)),n===r&&(n=null),i=[],L.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=r,0===Ee&&Se(xt)),o!==r)for(;o!==r;)i.push(o),L.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=r,0===Ee&&Se(xt));else i=r;return i!==r?(be=e,e=fe()):(_e=e,e=r),Ee--,e===r&&(n=r,0===Ee&&Se(wt)),e}function We(){var e,n,i,o,a,l,s,c,u,d;for(Ee++,e=_e,45===t.charCodeAt(_e)?(n=V,_e++):(n=r,0===Ee&&Se(dt)),n===r&&(n=null),i=[],L.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=r,0===Ee&&Se(xt));o!==r;)i.push(o),L.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=r,0===Ee&&Se(xt));if(46===t.charCodeAt(_e)?(o=T,_e++):(o=r,0===Ee&&Se(Et)),o!==r){if(a=[],L.test(t.charAt(_e))?(l=t.charAt(_e),_e++):(l=r,0===Ee&&Se(xt)),l!==r)for(;l!==r;)a.push(l),L.test(t.charAt(_e))?(l=t.charAt(_e),_e++):(l=r,0===Ee&&Se(xt));else a=r;if(a!==r){if(l=_e,101===t.charCodeAt(_e)?(s=z,_e++):(s=r,0===Ee&&Se(Ct)),s===r&&(69===t.charCodeAt(_e)?(s=O,_e++):(s=r,0===Ee&&Se(At))),s!==r){if(43===t.charCodeAt(_e)?(c=A,_e++):(c=r,0===Ee&&Se(ut)),c===r&&(45===t.charCodeAt(_e)?(c=V,_e++):(c=r,0===Ee&&Se(dt))),c===r&&(c=null),u=[],L.test(t.charAt(_e))?(d=t.charAt(_e),_e++):(d=r,0===Ee&&Se(xt)),d!==r)for(;d!==r;)u.push(d),L.test(t.charAt(_e))?(d=t.charAt(_e),_e++):(d=r,0===Ee&&Se(xt));else u=r;u!==r?l=s=[s,c,u]:(_e=l,l=r)}else _e=l,l=r;l===r&&(l=null),be=e,e=ge()}else _e=e,e=r}else _e=e,e=r;if(e===r){if(e=_e,45===t.charCodeAt(_e)?(n=V,_e++):(n=r,0===Ee&&Se(dt)),n===r&&(n=null),i=[],L.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=r,0===Ee&&Se(xt)),o!==r)for(;o!==r;)i.push(o),L.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=r,0===Ee&&Se(xt));else i=r;if(i!==r)if(101===t.charCodeAt(_e)?(o=z,_e++):(o=r,0===Ee&&Se(Ct)),o===r&&(69===t.charCodeAt(_e)?(o=O,_e++):(o=r,0===Ee&&Se(At))),o!==r){if(43===t.charCodeAt(_e)?(a=A,_e++):(a=r,0===Ee&&Se(ut)),a===r&&(45===t.charCodeAt(_e)?(a=V,_e++):(a=r,0===Ee&&Se(dt))),a===r&&(a=null),l=[],L.test(t.charAt(_e))?(s=t.charAt(_e),_e++):(s=r,0===Ee&&Se(xt)),s!==r)for(;s!==r;)l.push(s),L.test(t.charAt(_e))?(s=t.charAt(_e),_e++):(s=r,0===Ee&&Se(xt));else l=r;l!==r?(be=e,e=me()):(_e=e,e=r)}else _e=e,e=r;else _e=e,e=r}return Ee--,e===r&&(n=r,0===Ee&&Se(kt)),e}function He(){var e,n,i,o,a;if(Ee++,e=_e,n=_e,Ee++,i=function(){var e,n,i,o;return e=_e,t.substr(_e,4)===J?(n=J,_e+=4):(n=r,0===Ee&&Se(Dt)),n===r&&(t.substr(_e,5)===B?(n=B,_e+=5):(n=r,0===Ee&&Se(Pt))),n!==r?(i=_e,Ee++,W.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=r,0===Ee&&Se(jt)),Ee--,o===r?i=void 0:(_e=i,i=r),i!==r?e=n=[n,i]:(_e=e,e=r)):(_e=e,e=r),e}(),Ee--,i===r?n=void 0:(_e=n,n=r),n!==r)if(H.test(t.charAt(_e))?(i=t.charAt(_e),_e++):(i=r,0===Ee&&Se(Nt)),i!==r){for(o=[],W.test(t.charAt(_e))?(a=t.charAt(_e),_e++):(a=r,0===Ee&&Se(jt));a!==r;)o.push(a),W.test(t.charAt(_e))?(a=t.charAt(_e),_e++):(a=r,0===Ee&&Se(jt));be=e,e=$e()}else _e=e,e=r;else _e=e,e=r;return Ee--,e===r&&(n=r,0===Ee&&Se(St)),e}function qe(){var e,n;for(Ee++,e=[],q.test(t.charAt(_e))?(n=t.charAt(_e),_e++):(n=r,0===Ee&&Se(It));n!==r;)e.push(n),q.test(t.charAt(_e))?(n=t.charAt(_e),_e++):(n=r,0===Ee&&Se(It));return Ee--,n=r,0===Ee&&Se(Ft),e}if((n=a())!==r&&_e===t.length)return n;throw n!==r&&_e<t.length&&Se({type:"end"}),function(t,e,n){return new g(g.buildMessage(t,e),t,e,n)}(ke,xe<t.length?t.charAt(xe):null,xe<t.length?je(xe,xe+1):je(xe,xe))}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(g,Error),g.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n,r=null;for(n=0;n<t.length;n++)if(t[n].source===this.location.source){r=t[n].text.split(/\r\n|\n|\r/g);break}var i=this.location.start,o=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(i):i,a=this.location.source+":"+o.line+":"+o.column;if(r){var l=this.location.end,s=m("",o.line.toString().length," "),c=r[i.line-1],u=(i.line===l.line?l.column:c.length+1)-i.column||1;e+="\n --\x3e "+a+"\n"+s+" |\n"+o.line+" | "+c+"\n"+s+" | "+m("",i.column-1," ")+m("",u,"^")}else e+="\n at "+a}return e},g.buildMessage=function(t,e){var n={literal:function(t){return'"'+i(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?o(t[0])+"-"+o(t[1]):o(t)}));return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function r(t){return t.charCodeAt(0).toString(16).toUpperCase()}function i(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function o(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function a(t){return n[t.type](t)}return"Expected "+function(t){var e,n,r=t.map(a);if(r.sort(),r.length>0){for(e=1,n=1;e<r.length;e++)r[e-1]!==r[e]&&(r[n]=r[e],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+function(t){return t?'"'+i(t)+'"':"end of input"}(e)+" found."};const y=new Map,$=new Map;function _(t,e,n){const r={args:e,cb:n},i=y.get(t)||[];y.has(t)||y.set(t,i),i.push(r);const o=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");$.set(o,r)}function b(t,e){let n=t.args.length,r=t.args.length;const i=t.args[t.args.length-1];if("object"==typeof i&&i.isVararg&&(--n,r=1/0),e.length<n)return{type:"few",expected:n,found:e.length};if(e.length>r)return{type:"many",expected:r,found:e.length};for(let n=0;n<e.length;++n){let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];if("object"!=typeof r&&(r={type:r}),r.type!==e[n].type)return{type:"mismatch",expected:r.type,found:e[n].type}}return{type:"match"}}function w(t,e){var n;switch(null===(n=e[t.type])||void 0===n||n.call(e,t),t.type){case"TemplateLiteral":t.expressions.forEach((t=>{w(t,e)}));break;case"BinaryExpression":case"LogicalExpression":w(t.left,e),w(t.right,e);break;case"UnaryExpression":w(t.argument,e);break;case"ConditionalExpression":w(t.test,e),w(t.consequent,e),w(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{w(t,e)}))}}function x(t,e){for(;t.length<e;)t="0"+t;return t}function k(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"transparent";if("#"!==(t=("string"==typeof t&&t||"").toLowerCase()).charAt(0))return n;const r=E(t);return r?(r.a*=e,function(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>x(Math.round(t).toString(16),2))).join("")):"rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat((t.a/255).toFixed(2),")")}(r)):n}function E(t){const e=t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i)||t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);if(e){if(5===e.length){const[t,n,r,i,o]=e,a=2===r.length?r:r+r,l=2===i.length?i:i+i,s=2===o.length?o:o+o,c=2===n.length?n:n+n;return{a:parseInt(c,16),r:parseInt(a,16),g:parseInt(l,16),b:parseInt(s,16)}}const[t,n,r,i]=e,o=2===n.length?n:n+n,a=2===r.length?r:r+r,l=2===i.length?i:i+i;return{a:255,r:parseInt(o,16),g:parseInt(a,16),b:parseInt(l,16)}}return null}function C(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function A(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function V(t){if("string"===t.type)return t.value;if("integer"===t.type)return String(t.value);if("number"===t.type){let e=String(t.value);return e.includes(".")||(e.includes("e")?e=e.replace("e",".0e"):e+=".0"),e=e.replace(/e\+?/i,"E"),e}if("boolean"===t.type)return t.value?"true":"false";if("datetime"===t.type)return A(t.value);if("color"===t.type)return M(I(t.value));if("url"===t.type)return t.value;if("dict"===t.type)return"<dict>";throw new Error("Unexpected type ".concat(t.type))}function D(t){let e=V(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function P(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function j(t,e){if(n)return a(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function S(t,e){if(e<o||e>i)throw new Error("Integer overflow.");!n&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function N(t){const e=[];return w(t,{Variable(t){e.push(t.id.name)}}),e}function F(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function I(t){const e=E(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function M(t){return"#".concat([t.a,t.r,t.g,t.b].map((t=>{if(t<0||t>255)throw new Error("Value out of range 0..1.");return x(Math.round(t).toString(16),2)})).join("").toUpperCase())}function T(t){return M(I(t))}const z=Number.MAX_VALUE,O=Number.MIN_VALUE,J="string",B="integer",R="number",U="boolean",L="color",W="url",H="datetime",q="dict";function G(t,e){return{type:J,value:V(e)}}function K(t,e){const n=Number(e.value);if(isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:R,value:n}}function X(t,e,n,r){const i=t.variables.get(e.value);let o;return o=i&&i.getType()===r?i.getValue():n.value,"color"===r&&(o=T(o)),{type:r,value:o}}function Y(t,e,n){return X(t,e,n,n.type)}function Z(t,e,n){return X(t,e,n,"color")}function Q(t,e,n){return X(t,e,n,"url")}const tt=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:B,value:a(r)}},et=tt("getUTCFullYear"),nt=tt("getUTCMonth"),rt=tt("getUTCDate"),it=tt("getUTCDay"),ot=tt("getUTCHours"),at=tt("getUTCMinutes"),lt=tt("getUTCSeconds"),st=tt("getUTCMilliseconds");function ct(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t;return n.level=e.level||"error",e.additional&&(n.additional=e.additional),n}function ut(t,e,n,r){if(!r.value.length)return t.warnings.push(ct(new Error("String for padding is empty."),{level:"warn"})),"";let i="";const o=e.type===J?e.value:V(e);for(;i.length+o.length<n.value;)i+=r.value;return i.length>0&&i.length+o.length>n.value&&(i=i.substring(0,Number(n.value)-Number(o.length))),i}function dt(t,e,n,r){const i=ut(t,e,n,r);return{type:J,value:i+V(e)}}function ht(t,e,n,r){const i=ut(t,e,n,r);return{type:J,value:V(e)+i}}function pt(t){return(e,n)=>{const r=I(n.value);return{type:R,value:r[t]/255}}}function ft(t){return(e,n,r)=>{const i=I(n.value);return i[t]=255*r.value,{type:L,value:M(i)}}}const gt=pt("a"),mt=pt("r"),vt=pt("g"),yt=pt("b"),$t=ft("a"),_t=ft("r"),bt=ft("g"),wt=ft("b");function xt(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let i=a(e.value)/a(n);return S(t,i),"number"==typeof i&&(i=Math.floor(i)),r&&(i=a(i)%a(r)),{type:B,value:i}}const kt=36e5;function Et(t,e){return function(n,r){for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];let l=function(t,e){let n=t;for(let t=0;t<e.length;++t){if(!n)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));const r=n[e[t]];if(void 0===r)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));n=r}return n}(r.value,o.map((t=>t.value))),s=typeof l;if(s!==t)throw"object"===s&&(s=Array.isArray(l)?"array":null===l?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(s,'".'));if("number"===t&&"integer"===e){if(l!==Math.round(l))throw new Error("Cannot convert value to integer.");S(n,l)}return"string"===t&&"color"===e&&(l=T(l)),{type:e,value:l}}}function Ct(t,e){return function(n,r,i){try{for(var o=arguments.length,a=new Array(o>3?o-3:0),l=3;l<o;l++)a[l-3]=arguments[l];return t(n,i,...a)}catch(t){let n=r.value;return"color"===e&&(n=T(n)),{type:e,value:n}}}}const At=Et("string","string"),Vt=Et("number","number"),Dt=Et("number","integer"),Pt=Et("boolean","boolean"),jt=Et("string","color"),St=Et("string","url"),Nt=Ct(At,"string"),Ft=Ct(Vt,"number"),It=Ct(Dt,"integer"),Mt=Ct(Pt,"boolean"),Tt=Ct(jt,"color"),zt=Ct(St,"url");function Ot(){}const Jt=t=>t;function Bt(t,e){for(const n in e)t[n]=e[n];return t}function Rt(t){return t()}function Ut(){return Object.create(null)}function Lt(t){t.forEach(Rt)}function Wt(t){return"function"==typeof t}let Ht;function qt(t,e){return Ht||(Ht=document.createElement("a")),Ht.href=e,t===Ht.href}function Gt(t,e){return t!=t?e==e:t!==e}function Kt(t){return 0===Object.keys(t).length}function Xt(t,...e){if(null==t)return Ot;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Yt(t,e,n){t.$$.on_destroy.push(Xt(e,n))}function Zt(t,e,n,r){if(t){const i=Qt(t,e,n,r);return t[0](i)}}function Qt(t,e,n,r){return t[1]&&r?Bt(n.ctx.slice(),t[1](r(e))):n.ctx}function te(t,e,n,r){if(t[2]&&r){const i=t[2](r(n));if(void 0===e.dirty)return i;if("object"==typeof i){const t=[],n=Math.max(e.dirty.length,i.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|i[r];return t}return e.dirty|i}return e.dirty}function ee(t,e,n,r,i,o){if(i){const a=Qt(e,n,r,o);t.p(a,i)}}function ne(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function re(t,e,n){return t.set(n),e}function ie(t){return t&&Wt(t.destroy)?t.destroy:Ot}const oe="undefined"!=typeof window;let ae=oe?()=>window.performance.now():()=>Date.now(),le=oe?t=>requestAnimationFrame(t):Ot;const se=new Set;function ce(t){se.forEach((e=>{e.c(t)||(se.delete(e),e.f())})),0!==se.size&&le(ce)}let ue=!1;function de(t,e,n,r){for(;t<e;){const i=t+(e-t>>1);n(i)<=r?t=i+1:e=i}return t}function he(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function pe(t){const e=ye("style");return function(t,e){(function(t,e){t.appendChild(e)})(t.head||t,e),e.sheet}(he(t),e),e.sheet}function fe(t,e){if(ue){for(function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let i=0;for(let t=0;t<e.length;t++){const o=e[t].claim_order,a=(i>0&&e[n[i]].claim_order<=o?i+1:de(1,i,(t=>e[n[t]].claim_order),o))-1;r[t]=n[a]+1;const l=a+1;n[l]=t,i=Math.max(l,i)}const o=[],a=[];let l=e.length-1;for(let t=n[i]+1;0!=t;t=r[t-1]){for(o.push(e[t-1]);l>=t;l--)a.push(e[l]);l--}for(;l>=0;l--)a.push(e[l]);o.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<o.length&&a[e].claim_order>=o[n].claim_order;)n++;const r=n<o.length?o[n]:null;t.insertBefore(a[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function ge(t,e,n){ue&&!n?fe(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function me(t){t.parentNode&&t.parentNode.removeChild(t)}function ve(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function ye(t){return document.createElement(t)}function $e(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function _e(t){return document.createTextNode(t)}function be(){return _e(" ")}function we(){return _e("")}function xe(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function ke(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Ee(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)null==e[r]?t.removeAttribute(r):"style"===r?t.style.cssText=e[r]:"__value"===r?t.value=t[r]=e[r]:n[r]&&n[r].set?t[r]=e[r]:ke(t,r,e[r])}function Ce(t){return Array.from(t.childNodes)}function Ae(t,e,n,r,i=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const o=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const o=t[r];if(e(o)){const e=n(o);return void 0===e?t.splice(r,1):t[r]=e,i||(t.claim_info.last_index=r),o}}for(let r=t.claim_info.last_index-1;r>=0;r--){const o=t[r];if(e(o)){const e=n(o);return void 0===e?t.splice(r,1):t[r]=e,i?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,o}}return r()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function Ve(t,e,n,r){return Ae(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const i=t.attributes[r];n[i.name]||e.push(i.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}function De(t,e,n){return Ve(t,e,n,ye)}function Pe(t,e,n){return Ve(t,e,n,$e)}function je(t,e){return Ae(t,(t=>3===t.nodeType),(t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(()=>_e(e)),!0)}function Se(t){return je(t," ")}function Ne(t,e){e=""+e,t.data!==e&&(t.data=e)}function Fe(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function Ie(t,e,n){for(let n=0;n<t.options.length;n+=1){const r=t.options[n];if(r.__value===e)return void(r.selected=!0)}n&&void 0===e||(t.selectedIndex=-1)}function Me(t,e){return new t(e)}const Te=new Map;let ze,Oe=0;function Je(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),i=n.length-r.length;i&&(t.style.animation=r.join(", "),Oe-=i,Oe||le((()=>{Oe||(Te.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&me(e)})),Te.clear())})))}function Be(t){ze=t}function Re(){if(!ze)throw new Error("Function called outside component initialization");return ze}function Ue(t){Re().$$.on_mount.push(t)}function Le(t){Re().$$.on_destroy.push(t)}function We(t,e){return Re().$$.context.set(t,e),e}function He(t){return Re().$$.context.get(t)}function qe(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const Ge=[],Ke=[];let Xe=[];const Ye=[],Ze=Promise.resolve();let Qe=!1;function tn(){Qe||(Qe=!0,Ze.then(ln))}function en(){return tn(),Ze}function nn(t){Xe.push(t)}const rn=new Set;let on,an=0;function ln(){if(0!==an)return;const t=ze;do{try{for(;an<Ge.length;){const t=Ge[an];an++,Be(t),sn(t.$$)}}catch(t){throw Ge.length=0,an=0,t}for(Be(null),Ge.length=0,an=0;Ke.length;)Ke.pop()();for(let t=0;t<Xe.length;t+=1){const e=Xe[t];rn.has(e)||(rn.add(e),e())}Xe.length=0}while(Ge.length);for(;Ye.length;)Ye.pop()();Qe=!1,rn.clear(),Be(t)}function sn(t){if(null!==t.fragment){t.update(),Lt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(nn)}}function cn(t,e,n){t.dispatchEvent(function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,r,e),i}(`${e?"intro":"outro"}${n}`))}const un=new Set;let dn;function hn(){dn={r:0,c:[],p:dn}}function pn(){dn.r||Lt(dn.c),dn=dn.p}function fn(t,e){t&&t.i&&(un.delete(t),t.i(e))}function gn(t,e,n,r){if(t&&t.o){if(un.has(t))return;un.add(t),dn.c.push((()=>{un.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const mn={duration:0};function vn(t,e,n){const r={direction:"in"};let i,o,a=e(t,n,r),l=!1,s=0;function c(){i&&Je(t,i)}function u(){const{delay:e=0,duration:n=300,easing:r=Jt,tick:u=Ot,css:d}=a||mn;d&&(i=function(t,e,n,r,i,o,a,l=0){const s=16.666/r;let c="{\n";for(let t=0;t<=1;t+=s){const r=e+(n-e)*o(t);c+=100*t+`%{${a(r,1-r)}}\n`}const u=c+`100% {${a(n,1-n)}}\n}`,d=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${l}`,h=he(t),{stylesheet:p,rules:f}=Te.get(h)||function(t,e){const n={stylesheet:pe(e),rules:{}};return Te.set(t,n),n}(h,t);f[d]||(f[d]=!0,p.insertRule(`@keyframes ${d} ${u}`,p.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${d} ${r}ms linear ${i}ms 1 both`,Oe+=1,d}(t,0,1,n,e,r,d,s++)),u(0,1);const h=ae()+e,p=h+n;o&&o.abort(),l=!0,nn((()=>cn(t,!0,"start"))),o=function(t){let e;return 0===se.size&&le(ce),{promise:new Promise((n=>{se.add(e={c:t,f:n})})),abort(){se.delete(e)}}}((e=>{if(l){if(e>=p)return u(1,0),cn(t,!0,"end"),c(),l=!1;if(e>=h){const t=r((e-h)/n);u(t,1-t)}}return l}))}let d=!1;return{start(){d||(d=!0,Je(t),Wt(a)?(a=a(r),(on||(on=Promise.resolve(),on.then((()=>{on=null}))),on).then(u)):u())},invalidate(){d=!1},end(){l&&(c(),l=!1)}}}const yn="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function $n(t,e){gn(t,1,1,(()=>{e.delete(t.key)}))}function _n(t,e){const n={},r={},i={$$scope:1};let o=t.length;for(;o--;){const a=t[o],l=e[o];if(l){for(const t in a)t in l||(r[t]=1);for(const t in l)i[t]||(n[t]=l[t],i[t]=1);t[o]=l}else for(const t in a)i[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let bn;function wn(t){t&&t.c()}function xn(t,e){t&&t.l(e)}function kn(t,e,n,r){const{fragment:i,after_update:o}=t.$$;i&&i.m(e,n),r||nn((()=>{const e=t.$$.on_mount.map(Rt).filter(Wt);t.$$.on_destroy?t.$$.on_destroy.push(...e):Lt(e),t.$$.on_mount=[]})),o.forEach(nn)}function En(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];Xe.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),Xe=e}(n.after_update),Lt(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Cn(t,e,n,r,i,o,a,l=[-1]){const s=ze;Be(t);const c=t.$$={fragment:null,ctx:[],props:o,update:Ot,not_equal:i,bound:Ut(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Ut(),dirty:l,skip_bound:!1,root:e.target||s.$$.root};a&&a(c.root);let u=!1;if(c.ctx=n?n(t,e.props||{},((e,n,...r)=>{const o=r.length?r[0]:n;return c.ctx&&i(c.ctx[e],c.ctx[e]=o)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](o),u&&function(t,e){-1===t.$$.dirty[0]&&(Ge.push(t),tn(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],c.update(),u=!0,Lt(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){ue=!0;const t=Ce(e.target);c.fragment&&c.fragment.l(t),t.forEach(me)}else c.fragment&&c.fragment.c();e.intro&&fn(t.$$.fragment),kn(t,e.target,e.anchor,e.customElement),ue=!1,ln()}Be(s)}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(bn=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(Rt).filter(Wt);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){Lt(this.$$.on_disconnect)}$destroy(){En(this,1),this.$destroy=Ot}$on(t,e){if(!Wt(e))return Ot;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!Kt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class An{$destroy(){En(this,1),this.$destroy=Ot}$on(t,e){if(!Wt(e))return Ot;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!Kt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Vn=[];function Dn(t,e=Ot){let n;const r=new Set;function i(e){if(o=e,((i=t)!=i?o==o:i!==o||i&&"object"==typeof i||"function"==typeof i)&&(t=e,n)){const e=!Vn.length;for(const e of r)e[1](),Vn.push(e,t);if(e){for(let t=0;t<Vn.length;t+=2)Vn[t][0](Vn[t+1]);Vn.length=0}}var i,o}return{set:i,update:function(e){i(e(t))},subscribe:function(o,a=Ot){const l=[o,a];return r.add(l),1===r.size&&(n=e(i)||Ot),o(t),()=>{r.delete(l),0===r.size&&n&&(n(),n=null)}}}}function Pn(t,e,n){const r=!Array.isArray(t),i=r?[t]:t,o=e.length<2;return{subscribe:Dn(n,(t=>{let n=!1;const a=[];let l=0,s=Ot;const c=()=>{if(l)return;s();const n=e(r?a[0]:a,t);o?t(n):s=Wt(n)?n:Ot},u=i.map(((t,e)=>Xt(t,(t=>{a[e]=t,l&=~(1<<e),n&&c()}),(()=>{l|=1<<e}))));return n=!0,c(),function(){Lt(u),s(),n=!1}})).subscribe}}class jn{constructor(t,e){const n=this.convertValue(e);this.name=t,this.value=n}getName(){return this.name}subscribe(t){return this.store||(this.store=Dn(this.value)),this.store.subscribe(t)}set(t){const e=this.fromString(t);this.setValue(e)}setValue(t){const e=this.convertValue(t);this.value=e,this.store&&this.store.set(e)}getValue(){return this.value}}const Sn={string:class extends jn{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}},number:class extends jn{convertValue(t){if("number"!=typeof t||isNaN(t)||!isFinite(t))throw new Error("Incorrect variable value");return t}fromString(t){const e=Number(t);return this.convertValue(e)}getType(){return"number"}},integer:class extends jn{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&(isNaN(t)||t!==Math.round(t))||t>i||t<o)throw new Error("Incorrect variable value");return a(t)}fromString(t){const e=a(t);return this.convertValue(e)}getType(){return"integer"}},boolean:class extends jn{convertValue(t){if(1!==t&&0!==t&&!0!==t&&!1!==t)throw new Error("Incorrect variable value");return Number(t)}fromString(t){if("1"===t||"true"===t)return 1;if("0"===t||"false"===t)return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}},color:class extends jn{convertValue(t){if("string"!=typeof t||!E(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}},url:class extends jn{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}},dict:class extends jn{convertValue(t){if("object"!=typeof t||!t)throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Dict variable does not support setter from string")}getType(){return"dict"}}};function Nn(t,e,n){if(!(e in Sn))throw new Error("Unsupported variable type");return new Sn[e](t,n)}function Fn(t){return t.map(D).join(", ")}_("toString",[B],G),_("toString",[R],G),_("toString",[U],G),_("toString",[L],G),_("toString",[W],G),_("toNumber",[B],K),_("toNumber",[J],K),_("toInteger",[R],(function(t,e){if(e.value>i||e.value<o)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:B,value:a(n)}})),_("toInteger",[J],(function(t,e){let n;try{n=a(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}if("number"==typeof n&&(isNaN(n)||n%1!=0)||n>i||n<o)throw new Error("Unable to convert value to Integer.");return{type:B,value:n}})),_("toInteger",[U],(function(t,e){return{type:B,value:a(e.value?1:0)}})),_("toBoolean",[B],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:U,value:n}})),_("toBoolean",[J],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:U,value:"true"===e.value?1:0}})),_("toColor",[J],(function(t,e){return{type:L,value:T(e.value)}})),_("toUrl",[J],(function(t,e){return{type:W,value:e.value}})),_("encodeUri",[J],(function(t,e){try{return{type:J,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),_("decodeUri",[J],(function(t,e){try{return{type:J,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),_("getIntegerValue",[J,B],Y),_("getNumberValue",[J,R],Y),_("getBooleanValue",[J,U],Y),_("getStringValue",[J,J],Y),_("getColorValue",[J,L],Z),_("getColorValue",[J,J],Z),_("getUrlValue",[J,W],Q),_("getUrlValue",[J,J],Q),_("parseUnixTime",[B],(function(t,e){return{type:H,value:new Date(1e3*Number(e.value))}})),_("nowLocal",[],(function(){return{type:H,value:new Date}})),_("addMillis",[H,B],(function(t,e,n){return{type:H,value:new Date(e.value.getTime()+Number(n.value))}})),_("setYear",[H,B],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:H,value:r}})),_("setMonth",[H,B],(function(t,e,n){const r=Number(n.value);if(r<1||r>12)throw new Error("Expecting month in [1..12], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCMonth(r-1),{type:H,value:i}})),_("setDay",[H,B],(function(t,e,n){const r=new Date(e.value),i=Number(n.value);if(i<=0&&-1!==i||i>function(t){const e=new Date(t);return e.setUTCMonth(e.getUTCMonth()+1),e.setUTCDate(0),e.getUTCDate()}(r))throw new Error("Unable to set day ".concat(i," for date ").concat(V(e),"."));return r.setUTCDate(-1===i?0:i),{type:H,value:r}})),_("setHours",[H,B],(function(t,e,n){const r=Number(n.value);if(r<0||r>23)throw new Error("Expecting hours in [0..23], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCHours(r),{type:H,value:i}})),_("setMinutes",[H,B],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCMinutes(r),{type:H,value:i}})),_("setSeconds",[H,B],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCSeconds(r),{type:H,value:i}})),_("setMillis",[H,B],(function(t,e,n){const r=Number(n.value);if(r<0||r>999)throw new Error("Expecting millis in [0..999], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCMilliseconds(r),{type:H,value:i}})),_("getYear",[H],et),_("getMonth",[H],nt),_("getDay",[H],rt),_("getDayOfWeek",[H],it),_("getHours",[H],ot),_("getMinutes",[H],at),_("getSeconds",[H],lt),_("getMillis",[H],st),_("getIntervalSeconds",[B],(function(t,e){return xt(t,e,1e3,60)})),_("getIntervalTotalSeconds",[B],(function(t,e){return xt(t,e,1e3)})),_("getIntervalMinutes",[B],(function(t,e){return xt(t,e,6e4,60)})),_("getIntervalTotalMinutes",[B],(function(t,e){return xt(t,e,6e4)})),_("getIntervalHours",[B],(function(t,e){return xt(t,e,kt,24)})),_("getIntervalTotalHours",[B],(function(t,e){return xt(t,e,kt)})),_("getIntervalTotalDays",[B],(function(t,e){return xt(t,e,864e5)})),_("getIntervalTotalWeeks",[B],(function(t,e){return xt(t,e,6048e5)})),_("len",[J],(function(t,e){return{type:B,value:a(e.value.length)}})),_("contains",[J,J],(function(t,e,n){return{type:U,value:e.value.includes(n.value)?1:0}})),_("substring",[J,B,B],(function(t,e,n,r){if(r.value<n.value)throw new Error("Indexes should be in ascending order.");if(n.value<0||n.value>e.value.length||r.value<0||r.value>e.value.length)throw new Error("Indexes are out of bounds.");return{type:J,value:e.value.substring(Number(n.value),Number(r.value))}})),_("replaceAll",[J,J,J],(function(t,e,n,r){let i;return i=n.value?e.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(n.value),"g"),r.value):e.value,{type:J,value:i}})),_("index",[J,J],(function(t,e,n){return{type:B,value:a(e.value.indexOf(n.value))}})),_("lastIndex",[J,J],(function(t,e,n){return{type:B,value:a(e.value.lastIndexOf(n.value))}})),_("trim",[J],(function(t,e){return{type:J,value:e.value.trim()}})),_("trimLeft",[J],(function(t,e){return{type:J,value:e.value.replace(/^\s+/,"")}})),_("trimRight",[J],(function(t,e){return{type:J,value:e.value.replace(/\s+$/,"")}})),_("toUpperCase",[J],(function(t,e){return{type:J,value:e.value.toUpperCase()}})),_("toLowerCase",[J],(function(t,e){return{type:J,value:e.value.toLowerCase()}})),_("padStart",[J,B,J],dt),_("padStart",[B,B,J],dt),_("padEnd",[J,B,J],ht),_("padEnd",[B,B,J],ht),_("testRegex",[J,J],(function(t,e,n){let r;try{r=new RegExp(n.value)}catch(t){throw new Error("Invalid regular expression.")}return{type:U,value:r.test(e.value)?1:0}})),_("div",[B,B],(function(t,e,n){if(n.value===l)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=j(0,r),S(t,r),{type:B,value:r}})),_("div",[R,R],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value/n.value;return{type:R,value:r}})),_("mod",[B,B],(function(t,e,n){if(n.value===l)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=j(0,r),S(t,r),{type:B,value:r}})),_("mod",[R,R],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value%n.value;return{type:R,value:r}})),_("mul",[{type:B,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=n.length?n[0].value:l;for(let e=1;e<n.length;++e)i*=n[e].value,i=j(0,i),S(t,i);return{type:B,value:i}})),_("mul",[{type:R,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=n.length?n[0].value:0;for(let t=1;t<n.length;++t)i*=n[t].value;return{type:R,value:i}})),_("sub",[{type:B,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=n.length?n[0].value:l;for(let e=1;e<n.length;++e)i-=n[e].value,i=j(0,i),S(t,i);return{type:B,value:i}})),_("sub",[{type:R,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=n.length?n[0].value:0;for(let t=1;t<n.length;++t)i-=n[t].value;return{type:R,value:i}})),_("sum",[{type:B,isVararg:!0}],(function(t){let e=l;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let n=0;n<r.length;++n)e+=r[n].value,e=j(0,e),S(t,e);return{type:B,value:e}})),_("sum",[{type:R,isVararg:!0}],(function(t){let e=0;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let t=0;t<r.length;++t)e+=r[t].value;return{type:R,value:e}})),_("abs",[B],(function(t,e){const n=s(e.value);return S(t,n),{type:e.type,value:n}})),_("abs",[R],(function(t,e){const n=Math.abs(e.value);return{type:R,value:n}})),_("max",[{type:B,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");let i=n[0].value;for(let t=1;t<n.length;++t)n[t].value>i&&(i=n[t].value);return{type:B,value:i}})),_("max",[{type:R,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");return{type:R,value:Math.max(...n.map((t=>t.value)))}})),_("min",[{type:B,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");let i=n[0].value;for(let t=1;t<n.length;++t)n[t].value<i&&(i=n[t].value);return{type:B,value:i}})),_("min",[{type:R,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");return{type:R,value:Math.min(...n.map((t=>t.value)))}})),_("maxNumber",[],(function(){return{type:R,value:z}})),_("minNumber",[],(function(){return{type:R,value:O}})),_("maxInteger",[],(function(t){return S(t,i),{type:B,value:i}})),_("minInteger",[],(function(t){return S(t,o),{type:B,value:o}})),_("round",[R],(function(t,e){const n=Math.sign(e.value);return{type:R,value:n*Math.round(Math.abs(e.value))}})),_("floor",[R],(function(t,e){return{type:R,value:Math.floor(e.value)}})),_("ceil",[R],(function(t,e){return{type:R,value:Math.ceil(e.value)}})),_("signum",[B],(function(t,e){return{type:B,value:c(e.value)}})),_("signum",[R],(function(t,e){return{type:R,value:Math.sign(e.value)}})),_("copySign",[B,B],(function(t,e,n){let r;if(n.value===l)r=e.value;else if(e.value===l)r=0;else{const t=c(n.value);r=s(e.value)*t}return S(t,r),{type:B,value:r}})),_("copySign",[R,R],(function(t,e,n){let r=Math.sign(n.value);0===r&&(r=Object.is(r,0)?1:-1);const i=Math.abs(e.value)*r;return{type:R,value:i}})),_("getColorAlpha",[J],gt),_("getColorAlpha",[L],gt),_("getColorRed",[J],mt),_("getColorRed",[L],mt),_("getColorGreen",[J],vt),_("getColorGreen",[L],vt),_("getColorBlue",[J],yt),_("getColorBlue",[L],yt),_("setColorAlpha",[J,R],$t),_("setColorAlpha",[L,R],$t),_("setColorRed",[J,R],_t),_("setColorRed",[L,R],_t),_("setColorGreen",[J,R],bt),_("setColorGreen",[L,R],bt),_("setColorBlue",[J,R],wt),_("setColorBlue",[L,R],wt),_("rgb",[R,R,R],(function(t,e,n,r){const i={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:L,value:M(i)}})),_("argb",[R,R,R,R],(function(t,e,n,r,i){const o={a:255*e.value,r:255*n.value,g:255*r.value,b:255*i.value};return{type:L,value:M(o)}})),_("getDictString",[q,{type:J,isVararg:!0}],At),_("getDictNumber",[q,{type:J,isVararg:!0}],Vt),_("getDictInteger",[q,{type:J,isVararg:!0}],Dt),_("getDictBoolean",[q,{type:J,isVararg:!0}],Pt),_("getDictColor",[q,{type:J,isVararg:!0}],jt),_("getDictUrl",[q,{type:J,isVararg:!0}],St),_("getDictOptString",[J,q,{type:J,isVararg:!0}],Nt),_("getDictOptNumber",[R,q,{type:J,isVararg:!0}],Ft),_("getDictOptInteger",[B,q,{type:J,isVararg:!0}],It),_("getDictOptBoolean",[U,q,{type:J,isVararg:!0}],Mt),_("getDictOptColor",[L,q,{type:J,isVararg:!0}],Tt),_("getDictOptColor",[J,q,{type:J,isVararg:!0}],Tt),_("getDictOptUrl",[J,q,{type:J,isVararg:!0}],zt),_("getDictOptUrl",[W,q,{type:J,isVararg:!0}],zt);const In={StringLiteral:function(t,e){return{type:J,value:e.value}},NumberLiteral:function(t,e){return{type:R,value:e.value}},IntegerLiteral:function(t,e){return S(t,e.value),{type:B,value:e.value}},BooleanLiteral:function(t,e){return{type:U,value:e.value?1:0}},UnaryExpression:function(t,e){const n=C(Mn(t,e.argument));switch(e.operator){case"!":if(n.type===U)return{type:U,value:n.value?0:1};F("".concat(e.operator).concat(D(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===B){const e=n.value*a(r);return S(t,e),{type:B,value:e}}if(n.type===R)return{type:R,value:n.value*r};F("".concat(e.operator).concat(D(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=C(Mn(t,e.test));if(n.type===U)return n.value?Mn(t,e.consequent):Mn(t,e.alternate);F("".concat(D(n)," ? ").concat(D(Mn(t,e.consequent))," : ").concat(D(Mn(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return Mn(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=V(Mn(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:J,value:n}},LogicalExpression:function(t,e){const n=C(Mn(t,e.left));if(n.type!==U&&F("".concat(D(n)," ").concat(e.operator," ..."),"'".concat(e.operator,"' must be called with boolean operands.")),"||"===e.operator&&n.value)return n;if("&&"===e.operator&&!n.value)return{type:U,value:0};const r=C(Mn(t,e.right));return r.type!==U&&F("".concat(D(n)," ").concat(e.operator," ").concat(D(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(P(r.type),".")),{type:U,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=Mn(t,e.left),i=Mn(t,e.right);if(r.type!==i.type&&F("".concat(D(r)," ").concat(e.operator," ").concat(D(i)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(P(r.type)," and ").concat(P(i.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===H&&n.type===H?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:U,value:r?1:0}}(n,r,i);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==R&&e.type!==B&&e.type!==H&&F("".concat(D(e)," ").concat(t," ").concat(D(n)),"Operator '".concat(t,"' cannot be applied to ").concat(P(e.type)," type."));const i=e.type===H?e.value.getTime():e.value,o=n.type===H?n.value.getTime():n.value;return r=">"===t?i>o:">="===t?i>=o:"<"===t?i<o:i<=o,{type:U,value:r?1:0}}(n,r,i);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==J&&n.type!==R&&n.type!==B&&F("".concat(D(n)," ").concat(e," ").concat(D(r)),"Operator '".concat(e,"' cannot be applied to ").concat(P(n.type)," type.")),n.type===J)return"-"===e&&F("".concat(D(n)," - ").concat(D(r)),"Operator '".concat(e,"' cannot be applied to ").concat(P(n.type)," type.")),{type:J,value:n.value+r.value};let i="+"===e?n.value+r.value:n.value-r.value;if(n.type===B)try{i=j(0,i),S(t,i)}catch(t){F("".concat(D(n)," ").concat(e," ").concat(D(r)),t.message)}return{type:n.type,value:i}}(t,n,r,i);if("/"===n||"*"===n||"%"===n)return function(t,e,n,r){let i;if(n.type!==B&&n.type!==R&&F("".concat(D(n)," ").concat(e," ").concat(D(r)),"Operator '".concat(e,"' cannot be applied to ").concat(P(n.type)," type.")),"*"===e)i=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&F("".concat(D(n)," ").concat(e," ").concat(D(r)),"Division by zero is not supported."),i="/"===e?n.value/r.value:n.value%r.value}if(n.type===B)try{i=j(0,i),S(t,i)}catch(t){F("".concat(D(n)," ").concat(e," ").concat(D(r)),t.message)}return{type:n.type,value:i}}(t,n,r,i);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;let r;const i=e.arguments.map((e=>Mn(t,e))),o=n+":"+i.map((t=>t.type)).join("#");if($.has(o))r=$.get(o);else{const t=function(t,e){const n=y.get(t);if(!n)return{type:"missing"};let r=null;for(let t=0;t<n.length;++t){const i=b(n[t],e);if("match"===i.type)return n[t];r||(r=i)}if(!r)throw new Error("Missing function");return r}(n,i);if("expected"in t||"type"in t&&"missing"===t.type){const e=i.map((t=>P(t.type))).join(", "),r="".concat(n,"(").concat(Fn(i),")");"few"===t.type&&0===i.length?F(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?F(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):F(r,"Unknown function name: ".concat(n,"."))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(t,...i)}catch(t){F("".concat(n,"(").concat(Fn(i),")"),t.message)}},Variable:function(t,e){const n=e.id.name,r=t.variables.get(n);if(r)return function(t){return{type:t.getType(),value:t.getValue()}}(r);throw new Error("Variable '".concat(n,"' is missing."))}};function Mn(t,e){if(e.type in In)return In[e.type](t,e);throw new Error("Unsupported expression")}function Tn(t,e){try{const n={variables:t,warnings:[],safeIntegerOverflow:!1};!function(t,e){let n="";if(w(e,{Variable(e){n||t.variables.has(e.id.name)||(n=e.id.name)}}),n)throw new Error("Variable '".concat(n,"' is missing."))}(n,e);const r=Mn(n,e);return n.safeIntegerOverflow&&n.warnings.push(ct(new Error("Safe integer overflow, values may lose accuracy."),{level:"warn"})),{result:r,warnings:n.warnings}}catch(t){return{result:{type:"error",value:t.message},warnings:[]}}}const zn={root:"divkit-b023c",root__clickable:"divkit-bd259","root__clickable-no-transition":"divkit-d9099",root__unselectable:"divkit-c016b",root_platform_desktop:"divkit-ee112","root__only-desktop":"divkit-fef1e","root_restrict-scroll":"divkit-aa145","root_disabled-context-menu":"divkit-f0cba"},On=Symbol("root"),Jn={text:"divkit-d9b0e",text_halign_left:"divkit-a4cb7",text_halign_center:"divkit-e1659",text_halign_right:"divkit-ea280",text_valign_top:"divkit-d8ce0",text_valign_center:"divkit-ef58e",text_valign_bottom:"divkit-fe8ed",text_valign_baseline:"divkit-e0c6c",text__inner:"divkit-b8528",text_singleline:"divkit-ef11c",text_truncate_none:"divkit-c6ea1",text_multiline:"divkit-ee8e3",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002"},Bn={outer:"divkit-d65a7","outer_hide-on-transition-in":"divkit-a6d12","outer_halign-self_start":"divkit-cc452","outer_halign-self_center":"divkit-b8331","outer_halign-self_end":"divkit-c573c","outer_halign-self_stretch":"divkit-dcc74","outer_valign-self_start":"divkit-e8077","outer_valign-self_center":"divkit-d40a7","outer_valign-self_end":"divkit-e9f84","outer_valign-self_stretch":"divkit-b7aa3","outer_parent-flex_vertical":"divkit-c143f","outer_parent-flex_horizontal":"divkit-ef302","outer_valign-self_baseline":"divkit-e72b5",outer_width_content:"divkit-b8f4d",outer_height_content:"divkit-faa66","outer_width-constrained":"divkit-d3211","outer_parent-grid":"divkit-ff439","outer_height-constrained":"divkit-a5256","outer_parent-overlap":"divkit-dab2d","outer_parent-overlap-absolute":"divkit-d43fb","outer_scroll-snap_center":"divkit-d9e38","outer_scroll-snap_start":"divkit-efd1e",outer__border:"divkit-d4056",outer_visibility_invisible:"divkit-f018b",outer_visibility_gone:"divkit-e784b","outer_has-action-animation":"divkit-f4980"};function Rn(t){if(!t)return;let e="";for(const n in t)if(t.hasOwnProperty(n)){if(!t[n]&&0!==t[n])continue;e&&(e+=";"),e+=n+":"+String(t[n])}return e||void 0}function Un(t){if("number"!=typeof t&&"string"!=typeof t||!t)return"0";const e=Number(t);return isNaN(e)?"0":Math.ceil(1e3*e)/1e4+"em"}function Ln(t){let e=Un(t);return"0"===e&&(e+="em"),e}function Wn(t){let e=String(t);return e.indexOf("&")>-1&&(e=e.replace(/&/g,"&amp;")),e.indexOf("<")>-1&&(e=e.replace(/</g,"&lt;")),e.indexOf(">")>-1&&(e=e.replace(/>/g,"&gt;")),e.indexOf('"')>-1&&(e=e.replace(/"/g,"&quot;")),e}const Hn=Boolean;function qn(t){if(1===t.length&&"solid"===t[0].type)return{color:k(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=k(t.bg.color||"transparent");return{size:void 0,pos:void 0,image:"linear-gradient(to bottom,".concat(e,",").concat(e,")")}}({bg:t}):"gradient"===t.type?function(t){var e;if(!Array.isArray(null===(e=t.bg)||void 0===e?void 0:e.colors))return;const n=t.bg.colors.filter(Hn);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>k(t))).join(",")+")"}:void 0}({bg:t}):"image"===t.type?function(t){var e;const n=null===(e=t.bg)||void 0===e?void 0:e.image_url;if(n)return{size:Xn(t.bg.scale),pos:Yn(t.bg),image:'url("'+Wn(n)+'")'}}({bg:t}):"radial_gradient"===t.type?function(t){var e;if(!Array.isArray(null===(e=t.bg)||void 0===e?void 0:e.colors))return;const n=t.bg.colors.filter(Hn);if(!n.length)return;const r=t.bg.radius;let i;r&&"object"==typeof r&&"type"in r&&void 0!==r.value&&("fixed"===r.type?i=Ln(r.value):"relative"===r.type&&(i=Gn[r.value]));const o=Kn(t.bg.center_x),a=Kn(t.bg.center_y);return{size:void 0,pos:void 0,image:"radial-gradient("+"circle ".concat(i||"farthest-corner"," at ").concat(o," ").concat(a)+","+n.map((t=>k(t))).join(",")+")"}}({bg:t}):void 0)).filter(Hn).reverse().reduce((function(t,e){return t.image.push(e.image),t.size.push(e.size||"auto"),t.position.push(e.pos||"50% 50%"),t}),{image:[],size:[],position:[]});return{image:e.image.join(","),size:e.size.join(","),position:e.position.join(",")}}const Gn={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function Kn(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return Ln(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function Xn(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function Yn(t){let e,n;return e="left"===t.content_alignment_horizontal?"0%":"right"===t.content_alignment_horizontal?"100%":"50%",n="top"===t.content_alignment_vertical?"0%":"bottom"===t.content_alignment_vertical?"100%":"50%",e+" "+n}function Zn(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function Qn(t,e){return e.has(t)}function tr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function er(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tr(Object(n),!0).forEach((function(e){nr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function nr(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rr(t,e,n){return"number"==typeof e&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function ir(t,e){e&&t.push(e)}function or(t,e,n){const r=[];ir(r,e[t]);for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];o&&ir(r,e["".concat(t,"_").concat(i)+("string"==typeof o?"_".concat(o):"")])}return r.join(" ")}const ar=function(t,e){var n;let{json:r,origJson:i,templateContext:o,rootCtx:a}=e;return null===(n=a.registerComponent)||void 0===n||n.call(a,{node:t,json:r,origJson:i,templateContext:o}),{destroy(){var e;null===(e=a.unregisterComponent)||void 0===e||e.call(a,{node:t})}}},lr=Symbol("state");function sr(t){return Un(t.top||0)+" "+Un(t.right||0)+" "+Un(t.bottom||0)+" "+Un(t.left||0)}function cr(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function ur(t){return cr(t)&&t>=0}function dr(t,e){if(!t)return e;const n=[t.top,t.right,t.bottom,t.left];for(let t=0;t<n.length;++t)if(n[t]&&!ur(n[t]))return e;return sr(t)}function hr(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const pr=Object.prototype.hasOwnProperty;function fr(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return Object.is(t,e);const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(!pr.call(e,i)||!fr(t[i],e[i]))return!1}return!0}function gr(t,e){return fr(t,e)?e:t}function mr(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function vr(t,e){const n=Number(t);return isNaN(n)?e:n}function yr(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...yr(t))})):e.push(t),e}function $r(t,e){if(!t||"object"!=typeof t)return e;const n=["top","right","bottom","left"];for(let r=0;r<n.length;++r)if(t[n[r]]&&!ur(t[n[r]]))return e;return t}function _r(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]].map((t=>Un((t||e)/n*10))).join(" ")}function br(){}const wr=Symbol("action");function xr(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function kr(t){var e;let n,r,i,o,a,l,s,c;const u=t[19].default,d=Zt(u,t,t[18],null);let h=[{class:r=t[2]+(t[9]?" ".concat(t[6]?zn.root__clickable:zn["root__clickable-no-transition"]," ").concat(zn.root__unselectable):"")+" "+(null!==(e=t[1])&&void 0!==e&&e.length?zn["root_disabled-context-menu"]:"")},{style:t[3]},{role:i=t[9]?"button":null},{tabindex:o=t[9]?0:null},t[4]],p={};for(let t=0;t<h.length;t+=1)p=Bt(p,h[t]);return{c(){n=ye("span"),d&&d.c(),this.h()},l(t){n=De(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=Ce(n);d&&d.l(e),e.forEach(me),this.h()},h(){Ee(n,p)},m(e,r){ge(e,n,r),d&&d.m(n,null),l=!0,s||(c=[ie(a=t[5].call(null,n)),xe(n,"click",(function(){Wt(t[9]?t[10]:null)&&(t[9]?t[10]:null).apply(this,arguments)})),xe(n,"click",t[21]),xe(n,"dblclick",(function(){var e,n;Wt(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),xe(n,"touchstart",(function(){var e,n;Wt(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),xe(n,"touchmove",(function(){var e,n;Wt(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),xe(n,"touchend",(function(){var e,n;Wt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),xe(n,"touchcancel",(function(){var e,n;Wt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),xe(n,"keydown",t[15])],s=!0)},p(e,a){var s;t=e,d&&d.p&&(!l||262144&a)&&ee(d,u,t,t[18],l?te(u,t[18],a,null):ne(t[18]),null),Ee(n,p=_n(h,[(!l||582&a&&r!==(r=t[2]+(t[9]?" ".concat(t[6]?zn.root__clickable:zn["root__clickable-no-transition"]," ").concat(zn.root__unselectable):"")+" "+(null!==(s=t[1])&&void 0!==s&&s.length?zn["root_disabled-context-menu"]:"")))&&{class:r},(!l||8&a)&&{style:t[3]},(!l||512&a&&i!==(i=t[9]?"button":null))&&{role:i},(!l||512&a&&o!==(o=t[9]?0:null))&&{tabindex:o},16&a&&t[4]]))},i(t){l||(fn(d,t),l=!0)},o(t){gn(d,t),l=!1},d(t){t&&me(n),d&&d.d(t),s=!1,Lt(c)}}}function Er(t){var e;let n,r,i,o,a,l;const s=t[19].default,c=Zt(s,t,t[18],null);let u=[{href:t[7]},{target:t[8]},{style:t[3]},{class:r=t[2]+" "+(t[6]?zn.root__clickable:zn["root__clickable-no-transition"])+" "+(null!==(e=t[1])&&void 0!==e&&e.length?zn["root_disabled-context-menu"]:"")},t[4]],d={};for(let t=0;t<u.length;t+=1)d=Bt(d,u[t]);return{c(){n=ye("a"),c&&c.c(),this.h()},l(t){n=De(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=Ce(n);c&&c.l(e),e.forEach(me),this.h()},h(){Ee(n,d)},m(e,r){ge(e,n,r),c&&c.m(n,null),o=!0,a||(l=[ie(i=t[5].call(null,n)),xe(n,"click",t[10]),xe(n,"click",t[20]),xe(n,"dblclick",(function(){var e,n;Wt(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),xe(n,"touchstart",(function(){var e,n;Wt(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),xe(n,"touchmove",(function(){var e,n;Wt(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),xe(n,"touchend",(function(){var e,n;Wt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),xe(n,"touchcancel",(function(){var e,n;Wt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),xe(n,"keydown",t[15])],a=!0)},p(e,i){var a;t=e,c&&c.p&&(!o||262144&i)&&ee(c,s,t,t[18],o?te(s,t[18],i,null):ne(t[18]),null),Ee(n,d=_n(u,[(!o||128&i)&&{href:t[7]},(!o||256&i)&&{target:t[8]},(!o||8&i)&&{style:t[3]},(!o||70&i&&r!==(r=t[2]+" "+(t[6]?zn.root__clickable:zn["root__clickable-no-transition"])+" "+(null!==(a=t[1])&&void 0!==a&&a.length?zn["root_disabled-context-menu"]:"")))&&{class:r},16&i&&t[4]]))},i(t){o||(fn(c,t),o=!0)},o(t){gn(c,t),o=!1},d(t){t&&me(n),c&&c.d(t),a=!1,Lt(l)}}}function Cr(t){let e,n,r,i;const o=[Er,kr],a=[];function l(t,e){return t[7]?0:1}return e=l(t),n=a[e]=o[e](t),{c(){n.c(),r=we()},l(t){n.l(t),r=we()},m(t,n){a[e].m(t,n),ge(t,r,n),i=!0},p(t,i){let[s]=i,c=e;e=l(t),e===c?a[e].p(t,s):(hn(),gn(a[c],1,1,(()=>{a[c]=null})),pn(),n=a[e],n?n.p(t,s):(n=a[e]=o[e](t),n.c()),fn(n,1),n.m(r.parentNode,r))},i(t){i||(fn(n),i=!0)},o(t){gn(n),i=!1},d(t){a[e].d(t),t&&me(r)}}}function Ar(t,e,n){let{$$slots:r={},$$scope:i}=e,{actions:o}=e,{doubleTapActions:a}=e,{longTapActions:l}=e,{cls:s=""}=e,{style:c=null}=e,{attrs:u}=e,{use:d=br}=e,{customAction:h=null}=e,{isNativeActionAnimation:p=!0}=e;const f=He(On),g=He(wr);We(wr,{hasAction:()=>Boolean(g.hasAction()||(null==o?void 0:o.length))});let m,v="",y=-1,$=null,_=!1,b=!1;return t.$$set=t=>{"actions"in t&&n(16,o=t.actions),"doubleTapActions"in t&&n(0,a=t.doubleTapActions),"longTapActions"in t&&n(1,l=t.longTapActions),"cls"in t&&n(2,s=t.cls),"style"in t&&n(3,c=t.style),"attrs"in t&&n(4,u=t.attrs),"use"in t&&n(5,d=t.use),"customAction"in t&&n(17,h=t.customAction),"isNativeActionAnimation"in t&&n(6,p=t.isNativeActionAnimation),"$$scope"in t&&n(18,i=t.$$scope)},t.$$.update=()=>{if(196736&t.$$.dirty){if(Array.isArray(o)&&(null==o?void 0:o.length))for(let t=0;t<o.length;++t){const e=o[t].url;if(e){n(7,v=e),n(8,m=o[t].target||void 0);break}}Array.isArray(o)&&(null==o?void 0:o.length)&&g.hasAction()&&(n(7,v=""),f.logError(ct(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:o}}))),n(9,b=Boolean(h)),v&&!Qn(Zn(v),f.getBuiltinProtocols())?(n(7,v=""),n(9,b=!0)):!v&&Array.isArray(o)&&(null==o?void 0:o.length)&&(n(9,b=!0),f.logError(ct(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:o}})))}},[a,l,s,c,u,d,p,v,m,b,async function(t){g.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==h?void 0:h(t))?t.preventDefault():o&&(o.some((t=>{const e=null==t?void 0:t.url;if(!e)return!1;const n=Zn(e);return n&&!Qn(n,f.getBuiltinProtocols())}))&&t.preventDefault(),f.execAnyActions(o)))},function(t){g.hasAction()||void 0!==t.button&&0!==t.button||f.execAnyActions(a,!0)},function(t){t.touches.length>1||($=xr(t),_=!1,y=Date.now())},function(t){if(!$)return;const e=xr(t);(Math.abs($.x-e.x)>8||Math.abs($.y-e.y)>8)&&(_=!0)},function(){!$||y<0||(!_&&Date.now()-y>=400&&f.execAnyActions(l,!0),$=null,y=-1)},function(t){const e=t.target;e instanceof HTMLElement&&("INPUT"===e.tagName||"true"===e.contentEditable)||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(o)&&o.length&&(f.execAnyActions(o),t.preventDefault())},o,h,i,r,function(e){qe.call(this,t,e)},function(e){qe.call(this,t,e)}]}const Vr=class extends An{constructor(t){super(),Cn(this,t,Ar,Cr,Gt,{actions:16,doubleTapActions:0,longTapActions:1,cls:2,style:3,attrs:4,use:5,customAction:17,isNativeActionAnimation:6})}},Dr={"outer-background":"divkit-bf253","outer-background_clip":"divkit-dcad7","outer-background__item":"divkit-b921d","outer-background__item_hidden":"divkit-cd613"};function Pr(t){return cr(t)&&t>0}function jr(t,e){return t.map((t=>{if("blur"===(null==t?void 0:t.type)){if(Pr(t.radius))return"blur(".concat(Ln(t.radius/2),")")}else e(ct(new Error("Unknown filter"),{level:"warn",additional:{filter:null==t?void 0:t.type}}))})).filter(Boolean).join(" ")}function Sr(t,e,n){const r=t.slice();return r[5]=e[n],r}function Nr(t){let e,n,r;return{c(){e=ye("span"),this.h()},l(t){e=De(t,"SPAN",{class:!0,style:!0}),Ce(e).forEach(me),this.h()},h(){ke(e,"class",n=Dr["outer-background__item"]),ke(e,"style",r=Rn(t[5].style))},m(t,n){ge(t,e,n)},p(t,n){2&n&&r!==(r=Rn(t[5].style))&&ke(e,"style",r)},d(t){t&&me(e)}}}function Fr(t){let e,n,r,i,o,a;return{c(){e=ye("img"),this.h()},l(t){e=De(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){qt(e.src,n=t[5].image_url)||ke(e,"src",n),ke(e,"alt",""),ke(e,"aria-hidden","true"),ke(e,"loading","lazy"),ke(e,"decoding","async"),ke(e,"class",r=Dr["outer-background__item"]),ke(e,"style",i=Rn(t[5].style))},m(n,r){ge(n,e,r),o||(a=xe(e,"error",t[2]),o=!0)},p(t,r){2&r&&!qt(e.src,n=t[5].image_url)&&ke(e,"src",n),2&r&&i!==(i=Rn(t[5].style))&&ke(e,"style",i)},d(t){t&&me(e),o=!1,a()}}}function Ir(t){let e;function n(t,e){return t[5].image_url?Fr:Nr}let r=n(t),i=r(t);return{c(){i.c(),e=we()},l(t){i.l(t),e=we()},m(t,n){i.m(t,n),ge(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){i.d(t),t&&me(e)}}}function Mr(t){let e,n,r=t[1],i=[];for(let e=0;e<r.length;e+=1)i[e]=Ir(Sr(t,r,e));return{c(){e=ye("span");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=De(t,"SPAN",{class:!0});var n=Ce(e);for(let t=0;t<i.length;t+=1)i[t].l(n);n.forEach(me),this.h()},h(){ke(e,"class",n=Dr["outer-background"]+(t[0]?" "+Dr["outer-background_clip"]:"")),Fe(e,"border-radius",t[0])},m(t,n){ge(t,e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null)},p(t,o){let[a]=o;if(6&a){let n;for(r=t[1],n=0;n<r.length;n+=1){const o=Sr(t,r,n);i[n]?i[n].p(o,a):(i[n]=Ir(o),i[n].c(),i[n].m(e,null))}for(;n<i.length;n+=1)i[n].d(1);i.length=r.length}1&a&&n!==(n=Dr["outer-background"]+(t[0]?" "+Dr["outer-background_clip"]:""))&&ke(e,"class",n),1&a&&Fe(e,"border-radius",t[0])},i:Ot,o:Ot,d(t){t&&me(e),ve(i,t)}}}function Tr(t,e,n){let r,{background:i=[]}=e,{radius:o=""}=e;const a=He(On);return t.$$set=t=>{"background"in t&&n(3,i=t.background),"radius"in t&&n(0,o=t.radius)},t.$$.update=()=>{8&t.$$.dirty&&n(1,r=i.map((t=>{const e={},n={style:e};if("nine_patch_image"===t.type&&t.insets)e["border-image"]='url("'.concat(t.image_url,'") ').concat(t.insets.top||0," ").concat(t.insets.right||0," ").concat(t.insets.bottom||0," ").concat(t.insets.left||0," fill"),e["border-image-width"]="auto";else{const r=qn([t]);"solid"===t.type&&(e["background-color"]=r.color),"gradient"===t.type&&(e["background-image"]=r.image),"image"===t.type&&(e.opacity=Number(t.alpha),n.image_url=t.image_url,e["object-fit"]=r.size,e["object-position"]=r.position,Array.isArray(t.filters)&&t.filters.length&&(e.filter=jr(t.filters,a.logError)))}return n})))},[o,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add(Dr["outer-background__item_hidden"])},i]}const zr=class extends An{constructor(t){super(),Cn(this,t,Tr,Mr,Gt,{background:3,radius:0})}};function Or(t){let e,n;return e=new Vr({props:{use:t[32],cls:t[0]+" "+or("outer",Bn,t[15]),style:Rn(t[13]),actions:t[10],doubleTapActions:t[11],longTapActions:t[12],attrs:t[6],isNativeActionAnimation:!t[4].length||Lr(t[4]),$$slots:{default:[Rr]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};32769&n[0]&&(r.cls=t[0]+" "+or("outer",Bn,t[15])),8192&n[0]&&(r.style=Rn(t[13])),1024&n[0]&&(r.actions=t[10]),2048&n[0]&&(r.doubleTapActions=t[11]),4096&n[0]&&(r.longTapActions=t[12]),64&n[0]&&(r.attrs=t[6]),16&n[0]&&(r.isNativeActionAnimation=!t[4].length||Lr(t[4])),174&n[0]|262144&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Jr(t){let e,n;return e=new zr({props:{background:t[5],radius:t[2]}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.background=t[5]),4&n[0]&&(r.radius=t[2]),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Br(t){let e,n,r;return{c(){e=ye("span"),this.h()},l(t){e=De(t,"SPAN",{class:!0,style:!0}),Ce(e).forEach(me),this.h()},h(){ke(e,"class",n=Bn.outer__border),ke(e,"style",r=Rn(t[1]))},m(t,n){ge(t,e,n)},p(t,n){2&n[0]&&r!==(r=Rn(t[1]))&&ke(e,"style",r)},d(t){t&&me(e)}}}function Rr(t){let e,n,r,i=t[3]&&Jr(t);const o=t[110].default,a=Zt(o,t,t[111],null);let l=t[7]&&Br(t);return{c(){i&&i.c(),e=we(),a&&a.c(),l&&l.c(),n=we()},l(t){i&&i.l(t),e=we(),a&&a.l(t),l&&l.l(t),n=we()},m(t,o){i&&i.m(t,o),ge(t,e,o),a&&a.m(t,o),l&&l.m(t,o),ge(t,n,o),r=!0},p(t,s){t[3]?i?(i.p(t,s),8&s[0]&&fn(i,1)):(i=Jr(t),i.c(),fn(i,1),i.m(e.parentNode,e)):i&&(hn(),gn(i,1,1,(()=>{i=null})),pn()),a&&a.p&&(!r||262144&s[3])&&ee(a,o,t,t[111],r?te(o,t[111],s,null):ne(t[111]),null),t[7]?l?l.p(t,s):(l=Br(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(t){r||(fn(i),fn(a,t),r=!0)},o(t){gn(i),gn(a,t),r=!1},d(t){i&&i.d(t),t&&me(e),a&&a.d(t),l&&l.d(t),t&&me(n)}}}function Ur(t){let e,n,r=!t[8]&&!t[9]&&Or(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){t[8]||t[9]?r&&(hn(),gn(r,1,1,(()=>{r=null})),pn()):r?(r.p(t,n),768&n[0]&&fn(r,1)):(r=Or(t),r.c(),fn(r,1),r.m(e.parentNode,e))},i(t){n||(fn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function Lr(t){return t.some((t=>"native"===t.name))}function Wr(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,E,C,A,V,D,P,j,S,N,F,I,M,T,z,O,J,B,R,U,L,W=Ot,H=Ot,q=Ot,G=Ot,K=Ot,X=Ot,Y=Ot,Z=Ot,Q=Ot,tt=Ot,et=Ot,nt=Ot,rt=Ot,it=Ot,ot=Ot,at=Ot,lt=Ot;t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>lt()));let{$$slots:st={},$$scope:ut}=e;var dt,ht,pt,ft,gt,mt;let{json:vt={}}=e,{origJson:yt}=e,{templateContext:$t}=e,{cls:_t=""}=e,{style:bt}=e,{layoutParams:wt={}}=e,{customDescription:xt=!1}=e,{customPaddings:kt=!1}=e,{customActions:Et=""}=e,{additionalPaddings:Ct=null}=e,{heightByAspect:At=!1}=e;const Vt={left:"start",center:"center",right:"end"},Dt={top:"start",center:"center",bottom:"end",baseline:"baseline"},Pt=He(On),jt=He(lr);let St,Nt,Ft,It,Mt,Tt,zt,Jt,Bt,Rt,Ut,Lt=null,Wt={},Ht={},qt=!1,Gt=1,Kt="transparent",Yt=0,Zt={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},Qt="",te=null,ee="",ne={},re=0,ie=0,oe=0,ae=!1,le=!1,se={},ce=0,ue=0,de=0,he=!1,pe=!1,fe=1;const ge=wt.fakeElement?[]:vt.transition_triggers||["state_change","visibility_change"],me=-1!==ge.indexOf("state_change")&&vt.id,ve=-1!==ge.indexOf("visibility_change")&&vt.id;let ye,$e,_e,be,we,xe,ke,Ee=[],Ce=[],Ae=[],Ve=[],De="";function Pe(t){const e=vr(t.start_value,1),r=vr(t.end_value,1),i=hr(t.start_delay,0),o=hr(t.duration,300),a=mr(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return n(79,be=e),n(80,we=r),"opacity ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"scale":return n(81,xe=e),n(82,ke=r),"transform ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"native":case"no_animation":return"";default:return Pt.logError(ct(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}let je,Se,Ne=!1,Fe="visible",Ie=0,Me=0;return t.$$set=t=>{"json"in t&&n(33,vt=t.json),"origJson"in t&&n(34,yt=t.origJson),"templateContext"in t&&n(35,$t=t.templateContext),"cls"in t&&n(0,_t=t.cls),"style"in t&&n(36,bt=t.style),"layoutParams"in t&&n(37,wt=t.layoutParams),"customDescription"in t&&n(38,xt=t.customDescription),"customPaddings"in t&&n(39,kt=t.customPaddings),"customActions"in t&&n(40,Et=t.customActions),"additionalPaddings"in t&&n(41,Ct=t.additionalPaddings),"heightByAspect"in t&&n(42,At=t.heightByAspect),"$$scope"in t&&n(111,ut=t.$$scope)},t.$$.update=()=>{if(4&t.$$.dirty[1]&&(n(31,r=Pt.getDerivedFromVars(vt.border)),lt(),lt=Xt(r,(t=>n(109,L=t)))),2&t.$$.dirty[0]|8384512&t.$$.dirty[1]|65536&t.$$.dirty[3]){let t={},e={},r=!1,i="";if(L){if(L.has_shadow){const e=L.shadow;t["box-shadow"]=e?Un((null===n(44,ht=null===n(43,dt=e.offset)||void 0===dt?void 0:dt.x)||void 0===ht?void 0:ht.value)||0)+" "+Un((null===n(46,ft=null===n(45,pt=e.offset)||void 0===pt?void 0:pt.y)||void 0===ft?void 0:ft.value)||0)+" "+Un(null!==n(47,gt=e.blur)&&void 0!==gt?gt:2)+" "+k(e.color||"#000000",null!==n(48,mt=e.alpha)&&void 0!==mt?mt:.19):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(L.stroke&&(r=!0,n(50,Gt=hr(L.stroke.width,Gt)),n(51,Kt=k(L.stroke.color,1,Kt)),e.border="".concat(Un(Gt)," solid ").concat(Kt)),L.corners_radius?(n(53,Zt=function(t,e){const n=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<n.length;++t)if(n[t]&&!ur(n[t]))return e;return t}(L.corners_radius,Zt)),e["border-radius"]=t["border-radius"]=_r(Zt)):L.corner_radius&&(n(52,Yt=hr(L.corner_radius,Yt)),n(53,Zt={"top-left":Yt,"top-right":Yt,"bottom-right":Yt,"bottom-left":Yt}),e["border-radius"]=t["border-radius"]=Un(Yt)),r&&Gt&&(L.corners_radius||L.corner_radius)){let t=Object.assign({},Zt);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+Gt/2})),i=_r(t)}}n(49,Wt=gr(t,Wt)),n(1,Ht=gr(e,Ht)),n(7,qt=r),n(2,Qt=i)}if(4&t.$$.dirty[1]&&(n(30,i=Pt.getDerivedFromVars(vt.paddings)),at(),at=Xt(i,(t=>n(108,U=t)))),8388864&t.$$.dirty[1]|32768&t.$$.dirty[3]&&n(54,te=$r(U&&!kt?U:void 0,te)),8389632&t.$$.dirty[1]&&n(90,o=sr(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left"].forEach((r=>{const i=t[r];i&&(n[r]=i);const o=e[r];o&&(n[r]=(n[r]||0)+o)})),n}(te,Ct))),4&t.$$.dirty[1]&&(n(29,a=Pt.getDerivedFromVars(vt.margins)),it(),it=Xt(a,(t=>n(106,B=t)))),16777216&t.$$.dirty[1]|8192&t.$$.dirty[3]&&n(55,ee=dr(B,ee)),4&t.$$.dirty[1]&&(n(28,l=Pt.getDerivedFromVars(vt.width)),nt(),nt=Xt(l,(t=>n(104,O=t)))),4&t.$$.dirty[1]&&(n(27,s=Pt.getDerivedFromVars(vt.alignment_horizontal)),ot(),ot=Xt(s,(t=>n(107,R=t)))),570425408&t.$$.dirty[1]|26624&t.$$.dirty[3]){let t,e,r,i,o={},a=0,l=0,s=!1,c=!1;const u=null==O?void 0:O.type;if("fixed"===u)n(60,re=hr(null==O?void 0:O.value,re)),e=Un(re);else if("wrap_content"!==u&&(wt.overlapParent||"match_parent"!==u&&u||!wt.parentHorizontalWrapContent))t="parent","vertical"===wt.parentContainerOrientation&&wt.parentContainerWrap&&(c=!0,Pt.logError(ct(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===wt.parentLayoutOrientation?e="calc(100% - ".concat(Ln(((null==B?void 0:B.left)||0)+((null==B?void 0:B.right)||0)),")"):"horizontal"===wt.parentContainerOrientation&&(a=O&&"weight"in O&&O.weight||1,wt.parentContainerWrap&&(s=!0));else{if(t="content",("wrap_content"===u&&(null==O?void 0:O.constrained)||("match_parent"===u||!u)&&wt.parentHorizontalWrapContent)&&(o["width-constrained"]=!0,"horizontal"===wt.parentContainerOrientation&&(l=1)),"wrap_content"===u){const t=O;t.min_size&&ur(t.min_size.value)&&(r=Un(t.min_size.value)),t.max_size&&ur(t.max_size.value)&&(i=Un(t.max_size.value))}"match_parent"!==u&&u||Pt.logError(ct(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}if("parent"===t)o["halign-self"]="stretch";else{const t=R;o["halign-self"]="left"===t||"center"===t||"right"===t?Vt[t]:wt.parentHAlign||"start"}t&&(o.width=t),n(57,Ft=e),n(58,It=r),n(59,Mt=i),n(61,ie=a),n(62,oe=l),n(56,ne=gr(o,ne)),n(63,ae=s),n(8,le=c)}if(4&t.$$.dirty[1]&&(n(26,c=Pt.getDerivedFromVars(vt.height)),et(),et=Xt(c,(t=>n(103,z=t)))),4&t.$$.dirty[1]&&(n(25,u=Pt.getDerivedFromVars(vt.alignment_vertical)),rt(),rt=Xt(u,(t=>n(105,J=t)))),2112&t.$$.dirty[1]|68&t.$$.dirty[2]|13312&t.$$.dirty[3]){let t,e,r,i,o={},a=0,l=0,s=!1,c=!1;const u=null==z?void 0:z.type;if(At);else if("fixed"===u)n(68,ce=hr(null==z?void 0:z.value,ce)),e=Un(ce);else if("match_parent"!==u||!wt.overlapParent&&wt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==z?void 0:z.constrained)||"match_parent"===u&&wt.parentVerticalWrapContent)&&(o["height-constrained"]=!0,"vertical"===wt.parentContainerOrientation&&(l=1)),"wrap_content"===u){const t=z;(null==t?void 0:t.min_size)&&ur(t.min_size.value)&&(r=Un(t.min_size.value)),(null==t?void 0:t.max_size)&&ur(t.max_size.value)&&(i=Un(t.max_size.value))}"match_parent"===u&&Pt.logError(ct(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===wt.parentContainerOrientation&&wt.parentContainerWrap&&(c=!0,Pt.logError(ct(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===wt.parentLayoutOrientation?e="calc(100% - ".concat(Ln(((null==B?void 0:B.top)||0)+((null==B?void 0:B.bottom)||0)),")"):"vertical"===wt.parentContainerOrientation&&(a=(null==z?void 0:z.weight)||1,wt.parentContainerWrap&&(s=!0));if("parent"===t)o["valign-self"]="stretch";else{const t=J;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===wt.parentContainerOrientation?o["valign-self"]=Dt[t]:o["valign-self"]=wt.parentVAlign||"start"}t&&(o.height=t),n(65,Tt=e),n(66,zt=r),n(67,Jt=i),n(69,ue=a),n(70,de=l),n(64,se=gr(o,se)),n(71,he=s),n(9,pe=c)}var e,st;if(64&t.$$.dirty[1]&&n(93,d=!!wt.overlapParent||void 0),64&t.$$.dirty[1]|3072&t.$$.dirty[3]&&n(92,h=wt.overlapParent&&(!O||"match_parent"===O.type)&&"match_parent"===(null==z?void 0:z.type)),64&t.$$.dirty[1]&&n(91,p=wt.gridArea?"".concat(wt.gridArea.y+1,"/").concat(wt.gridArea.x+1,"/span ").concat(wt.gridArea.rowSpan,"/span ").concat(wt.gridArea.colSpan):void 0),4&t.$$.dirty[1]&&(n(24,f=Pt.getDerivedFromVars(vt.alpha)),tt(),tt=Xt(f,(t=>n(102,T=t)))),1024&t.$$.dirty[2]|512&t.$$.dirty[3]&&(n(72,(st=fe,fe=!ur(e=T)||void 0===e||e>1?st:Number(e))),n(73,Bt=1===fe?void 0:fe)),4&t.$$.dirty[1]&&(n(23,g=Pt.getDerivedFromVars(vt.accessibility)),Q(),Q=Xt(g,(t=>n(101,M=t)))),128&t.$$.dirty[1]|256&t.$$.dirty[3]&&(n(6,Nt=void 0),M&&!xt&&M.description&&(n(6,Nt={}),n(6,Nt["aria-label"]=M.description,Nt))),4&t.$$.dirty[1]&&(n(22,m=Pt.getDerivedFromVars(vt.background)),Z(),Z=Xt(m,(t=>n(5,I=t)))),44&t.$$.dirty[0]&&(n(74,Rt={}),n(3,Ut=!1),Array.isArray(I)&&(n(3,Ut=I.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(Qt)),!Ut))){const t=qn(I);n(74,Rt["background-color"]=t.color,Rt),n(74,Rt["background-image"]=t.image,Rt),n(74,Rt["background-size"]=t.size,Rt),n(74,Rt["background-position"]=t.position,Rt),n(74,Rt["background-repeat"]="no-repeat",Rt)}if(4&t.$$.dirty[1]&&(n(75,ye=void 0),me&&vt.transition_in&&Pt.isRunning("stateChange")&&n(75,ye=!0)),4&t.$$.dirty[1]&&(n(77,_e=void 0),me&&vt.transition_change&&Pt.isRunning("stateChange")&&jt.hasTransitionChange(vt.id)&&n(77,_e=!0)),4&t.$$.dirty[1]&&(n(21,v=Pt.getDerivedFromVars(vt.action)),X(),X=Xt(v,(t=>n(99,N=t)))),4&t.$$.dirty[1]&&(n(20,y=Pt.getDerivedFromVars(vt.actions)),Y(),Y=Xt(y,(t=>n(100,F=t)))),4&t.$$.dirty[1]&&(n(19,$=Pt.getDerivedFromVars(vt.doubletap_actions)),K(),K=Xt($,(t=>n(98,S=t)))),4&t.$$.dirty[1]&&(n(18,_=Pt.getDerivedFromVars(vt.longtap_actions)),G(),G=Xt(_,(t=>n(97,j=t)))),576&t.$$.dirty[1]|240&t.$$.dirty[3]){let t=F||N&&[N]||[],e=S||[],r=j||[];wt.fakeElement?(t=[],e=[],r=[]):(Array.isArray(t)||(t=[],Pt.logError(ct(new Error("Actions should be array")))),Array.isArray(e)||(e=[],Pt.logError(ct(new Error("DoubleTapActions should be array")))),Array.isArray(r)||(r=[],Pt.logError(ct(new Error("LongTapActions should be array"))))),(t.length||e.length||r.length)&&Et&&(t=[],e=[],r=[],Pt.logError(ct(new Error('Cannot use action on component "'.concat(Et,'"'))))),n(10,Ee=t),n(11,Ce=e),n(12,Ae=r)}if(4&t.$$.dirty[1]&&(n(17,b=Pt.getDerivedFromVars(vt.action_animation)),q(),q=Xt(b,(t=>n(96,P=t)))),16&t.$$.dirty[0]|8&t.$$.dirty[3]&&P&&(n(4,Ve=yr(P)),n(78,De=Ve.map(Pe).filter(Boolean).join(", "))),4&t.$$.dirty[1]&&(n(16,w=Pt.getDerivedFromVars(vt.visibility)),H(),H=Xt(w,(t=>n(95,D=t)))),6291456&t.$$.dirty[2]|4&t.$$.dirty[3]){const t=Fe,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(D,Fe);t!==e&&(!Ne||"visible"!==Fe&&"visible"!==e?n(84,Fe=e):async function(t){n(84,Fe=t);const e="visible"===t?"in":"out",r="in"===e?vt.transition_in:vt.transition_out;ve&&r&&(await en(),"in"===e&&n(76,$e=!0),jt.runVisibilityTransition(Object.assign(Object.assign({},vt),{visibility:"visible"}),$t,r,St,e).then((()=>{"in"===e&&n(76,$e=!1)})).catch((t=>{throw"in"===e&&n(76,$e=!1),t})))}(e)),Ne||n(83,Ne=!0)}if(33554496&t.$$.dirty[1]|1078059012&t.$$.dirty[2]|1&t.$$.dirty[3]&&n(15,x=Object.assign(Object.assign(Object.assign({},ne),se),{"parent-overlap":d,"parent-overlap-absolute":h,"scroll-snap":wt.scrollSnap,"hide-on-transition-in":ye||$e||_e,visibility:Fe,"has-action-animation":Boolean(De),"parent-flex":wt.parentContainerOrientation||void 0,"parent-grid":Boolean(wt.gridArea)||void 0})),4&t.$$.dirty[1]&&(n(14,E=Pt.getDerivedFromVars(vt.transform)),W(),W=Xt(E,(t=>n(94,V=t)))),25165824&t.$$.dirty[2]|2&t.$$.dirty[3]&&V&&void 0!==V.rotation){const t=V.pivot_x||{type:"pivot-percentage",value:50};n(85,Ie=vr(t.value,Ie));const e="pivot-fixed"===t.type?Un(Ie):"".concat(Ie,"%"),r=V.pivot_y||{type:"pivot-percentage",value:50};n(86,Me=vr(r.value,Me));const i="pivot-fixed"===r.type?Un(Me):"".concat(Me,"%");n(87,je="".concat(e," ").concat(i)),n(88,Se="rotate(".concat(V.rotation,"deg)"))}1073741824&t.$$.dirty[1]|642&t.$$.dirty[2]&&n(89,C=ae||he?"100%":ie||ue?0:void 0),1560543264&t.$$.dirty[1]|1042225593&t.$$.dirty[2]&&n(13,A=Object.assign(Object.assign(Object.assign(Object.assign({},bt),Rt),Wt),{width:Ft,"min-width":It,"max-width":Mt,height:Tt,"min-height":zt,"max-height":Jt||(null==bt?void 0:bt["max-height"]),"grid-area":p,padding:o,margin:ee,opacity:Bt,transition:De,"transform-origin":je,transform:Se,"flex-grow":ie||ue||void 0,"flex-shrink":oe||de?1:void 0,"flex-basis":C,"--divkit-animation-opacity-start":be,"--divkit-animation-opacity-end":we,"--divkit-animation-scale-start":xe,"--divkit-animation-scale-end":ke}))},[_t,Ht,Qt,Ut,Ve,I,Nt,qt,le,pe,Ee,Ce,Ae,A,E,x,w,b,_,$,y,v,m,g,f,u,c,s,l,a,i,r,function(t){St=t,me&&vt.transition_in&&jt.registerChildWithTransitionIn(vt,$t,vt.transition_in,t).then((()=>{n(75,ye=!1)})).catch((t=>{throw n(75,ye=!1),t})),me&&vt.transition_out&&jt.registerChildWithTransitionOut(vt,$t,vt.transition_out,t),me&&vt.transition_change&&jt.registerChildWithTransitionChange(vt,$t,vt.transition_change,t).then((()=>{n(77,_e=!1)})).catch((t=>{throw n(77,_e=!1),t}));const e=wt.fakeElement?[]:vt.visibility_actions||vt.visibility_action&&[vt.visibility_action],r=wt.fakeElement?[]:vt.disappear_actions;(Array.isArray(e)&&e.length||Array.isArray(r)&&r.length)&&function(t,e){let{visibilityActions:n,disappearActions:r,rootCtx:i}=e;const o=[];n&&n.forEach((t=>{o.push({type:"visibility",index:o.length,action:t,visible:!1,count:0,finished:!1})})),r&&r.forEach((t=>{o.push({type:"disappear",index:o.length,action:t,visible:!1,count:0,finished:!1})}));const a=o.map((t=>{const e="visibility"===t.type,n=i.getJsonWithVars({visibility_percentage:t.action.visibility_percentage,visibility_duration:e?t.action.visibility_duration:t.action.disappear_duration,log_limit:t.action.log_limit});return er(er({},n),{},{visibility_percentage:rr(e,n.visibility_percentage,e?50:0)})})),l=[...new Set(a.map((t=>t.visibility_percentage/100)))];new IntersectionObserver((t=>{t.forEach((t=>{o.forEach((e=>{const n=a[e.index],r="visibility"===e.type;let o;o=0===n.visibility_percentage?t.intersectionRatio>=1e-12:t.intersectionRatio>=n.visibility_percentage/100;const l=r?!e.visible&&o:e.visible&&!o,s=r?!o:o;l?e.finished||(e.timer=setTimeout((()=>{++e.count;const t=0===n.log_limit?1/0:n.log_limit||1;++e.count>=t&&(e.finished=!0);const o=i.getJsonWithVars(e.action),a=o.url;if(a){const t=Zn(a);t&&!Qn(t,i.getBuiltinProtocols())&&("div-action"===t?i.execAction(o):o.log_id&&i.execCustomAction(o))}i.logStat(r?"visible":"disappear",o)}),a[e.index].visibility_duration||800)):s&&e.timer&&clearTimeout(e.timer),e.visible=o}))}))}),{threshold:l}).observe(t)}(t,{visibilityActions:e,disappearActions:r,rootCtx:Pt});const i=vt.id;i&&jt.registerChild(i);let o=null;if(ar&&!wt.fakeElement&&(o=ar(t,{json:vt,origJson:yt,rootCtx:Pt,templateContext:$t})),Array.isArray(vt.extensions)){const e=Pt.getExtensionContext();Lt=vt.extensions.map((n=>{var r;const i=Pt.getExtension(n.id,n.params);return i&&(null===(r=i.mountView)||void 0===r||r.call(i,t,e)),i})).filter(Hn)}return{destroy(){if(i&&jt.unregisterChild(i),Lt){const e=Pt.getExtensionContext();Lt.forEach((n=>{var r;null===(r=n.unmountView)||void 0===r||r.call(n,t,e)})),Lt=null}o&&o.destroy()}}},vt,yt,$t,bt,wt,xt,kt,Et,Ct,At,dt,ht,pt,ft,gt,mt,Wt,Gt,Kt,Yt,Zt,te,ee,ne,Ft,It,Mt,re,ie,oe,ae,se,Tt,zt,Jt,ce,ue,de,he,fe,Bt,Rt,ye,$e,_e,De,be,we,xe,ke,Ne,Fe,Ie,Me,je,Se,C,o,p,h,d,V,D,P,j,S,N,F,M,T,z,O,J,B,R,U,L,st,ut]}const Hr=class extends An{constructor(t){super(),Cn(this,t,Wr,Ur,Gt,{json:33,origJson:34,templateContext:35,cls:0,style:36,layoutParams:37,customDescription:38,customPaddings:39,customActions:40,additionalPaddings:41,heightByAspect:42},null,[-1,-1,-1,-1])}},qr={"text-range":"divkit-faf07","text-range_singleline":"divkit-ccb64","text-range__top-offset":"divkit-d9237","text-range_decoration_both":"divkit-d7e07","text-range_decoration_underline":"divkit-f3dde","text-range_decoration_strike":"divkit-d27b7","text-range_decoration_none":"divkit-c6b0f"};function Gr(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function Kr(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function Xr(t,e){return Kr(t)||e}function Yr(t){let e,n;return{c(){e=ye("span"),this.h()},l(t){e=De(t,"SPAN",{class:!0}),Ce(e).forEach(me),this.h()},h(){ke(e,"class",n=qr["text-range__top-offset"]),Fe(e,"margin-top",t[4])},m(t,n){ge(t,e,n)},p(t,n){16&n&&Fe(e,"margin-top",t[4])},d(t){t&&me(e)}}}function Zr(t){let e;return{c(){e=_e(t[0])},l(n){e=je(n,t[0])},m(t,n){ge(t,e,n)},p(t,n){1&n&&Ne(e,t[0])},d(t){t&&me(e)}}}function Qr(t){let e,n,r,i=t[4]&&Yr(t);return n=new Vr({props:{cls:or("text-range",qr,t[3]),actions:t[1],style:Rn(t[2]),$$slots:{default:[Zr]},$$scope:{ctx:t}}}),{c(){i&&i.c(),e=we(),wn(n.$$.fragment)},l(t){i&&i.l(t),e=we(),xn(n.$$.fragment,t)},m(t,o){i&&i.m(t,o),ge(t,e,o),kn(n,t,o),r=!0},p(t,r){let[o]=r;t[4]?i?i.p(t,o):(i=Yr(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null);const a={};8&o&&(a.cls=or("text-range",qr,t[3])),2&o&&(a.actions=t[1]),4&o&&(a.style=Rn(t[2])),2097153&o&&(a.$$scope={dirty:o,ctx:t}),n.$set(a)},i(t){r||(fn(n.$$.fragment,t),r=!0)},o(t){gn(n.$$.fragment,t),r=!1},d(t){i&&i.d(t),t&&me(e),En(n,t)}}}function ti(t,e,n){let r,i,o,a,l;var s,c;let{text:u}=e,{rootFontSize:d}=e,{textStyles:h={}}=e,{singleline:p=!1}=e,{actions:f}=e;const g=He(On);let m,v="none",y=12,$=1.25,_="",b="",w="",x=null;return t.$$set=t=>{"text"in t&&n(0,u=t.text),"rootFontSize"in t&&n(5,d=t.rootFontSize),"textStyles"in t&&n(6,h=t.textStyles),"singleline"in t&&n(7,p=t.singleline),"actions"in t&&n(1,f=t.actions)},t.$$.update=()=>{if(64&t.$$.dirty){let t="none";(h.underline||h.strike)&&("single"===h.underline&&"single"===h.strike?t="both":"single"===h.underline?t="underline":"single"===h.strike&&(t="strike")),n(10,v=t)}2112&t.$$.dirty&&n(11,y=Gr(h.font_size,y)),2112&t.$$.dirty&&Pr(h.line_height)&&n(12,$=Number(h.line_height)/y),64&t.$$.dirty&&ur(h.letter_spacing)&&n(13,_=Un(h.letter_spacing)),16448&t.$$.dirty&&(n(14,m=Xr(h.font_weight,m)),"string"==typeof h.font_family&&h.font_family?n(15,b=g.typefaceProvider(h.font_family,{fontWeight:m||400})):n(15,b="")),65600&t.$$.dirty&&n(16,w=k(h.text_color,1,w)),64&t.$$.dirty&&n(4,r=h.top_offset?Un(h.top_offset):""),64&t.$$.dirty&&n(19,i=h.background?qn([h.background]):null),320&t.$$.dirty&&((null===n(8,s=h.border)||void 0===s?void 0:s.stroke)&&"transparent"!==k(h.border.stroke.color)&&Pr(h.border.stroke.width)?n(17,x={color:h.border.stroke.color,width:h.border.stroke.width}):n(17,x=null)),576&t.$$.dirty&&n(18,o=Gr(null===n(9,c=h.border)||void 0===c?void 0:c.corner_radius,0)),1152&t.$$.dirty&&n(3,a={singleline:p,decoration:v}),1046560&t.$$.dirty&&n(2,l={"font-size":Un(10*y/d),"line-height":$,"letter-spacing":_,"font-weight":m,"font-family":b,color:w,background:(null==i?void 0:i.color)||void 0,"box-shadow":x?"inset 0 0 0 ".concat(Un(x.width)," ").concat(x.color):void 0,"border-radius":o?Un(o):void 0})},[u,f,l,a,r,d,h,p,s,c,v,y,$,_,m,b,w,x,o,i]}const ei=class extends An{constructor(t){super(),Cn(this,t,ti,Qr,Gt,{text:0,rootFontSize:5,textStyles:6,singleline:7,actions:1})}};function ni(t,e){return"left"===t||"center"===t||"right"===t?t:e}function ri(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?t:e}function ii(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}function oi(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}const{Boolean:ai}=yn;function li(t,e,n){const r=t.slice();return r[55]=e[n],r[57]=n,r}function si(t){let e,n;return e=new Hr({props:{cls:or("text",Jn,t[13])+" "+(t[6]?"":zn.root__unselectable),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[gi]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};8256&n[0]&&(r.cls=or("text",Jn,t[13])+" "+(t[6]?"":zn.root__unselectable)),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),134225584&n[0]|134217728&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function ci(t){let e,n;return e=new ei({props:{text:t[4],rootFontSize:t[5],textStyles:t[27],singleline:t[7]}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),134217728&n[0]&&(r.textStyles=t[27]),128&n[0]&&(r.singleline=t[7]),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function ui(t){let e,n,r=t[10],i=[];for(let e=0;e<r.length;e+=1)i[e]=fi(li(t,r,e));const o=t=>gn(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=we()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=we()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);ge(t,e,r),n=!0},p(t,n){if(268437152&n[0]){let a;for(r=t[10],a=0;a<r.length;a+=1){const o=li(t,r,a);i[a]?(i[a].p(o,n),fn(i[a],1)):(i[a]=fi(o),i[a].c(),fn(i[a],1),i[a].m(e.parentNode,e))}for(hn(),a=r.length;a<i.length;a+=1)o(a);pn()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)fn(i[t]);n=!0}},o(t){i=i.filter(ai);for(let t=0;t<i.length;t+=1)gn(i[t]);n=!1},d(t){ve(i,t),t&&me(e)}}}function di(t){let e,n,r,i,o,a,l,s;return{c(){e=ye("span"),n=ye("img"),this.h()},l(t){e=De(t,"SPAN",{style:!0});var r=Ce(e);n=De(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),r.forEach(me),this.h()},h(){ke(n,"class",r=Jn.text__image),qt(n.src,i=t[55].image.url)||ke(n,"src",i),ke(n,"loading","lazy"),ke(n,"decoding","async"),ke(n,"aria-hidden","true"),ke(n,"alt",""),ke(n,"style",o=Rn({width:t[55].image.width,height:t[55].image.height,"margin-top":t[9]?"-".concat(t[55].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[55].image.height):void 0,filter:t[55].image.svgFilterId?"url(#".concat(t[55].image.svgFilterId,")"):void 0})),ke(e,"style",a=Rn(t[55].image.wrapperStyle))},m(r,i){ge(r,e,i),fe(e,n),l||(s=xe(n,"error",t[28]),l=!0)},p(t,r){1024&r[0]&&!qt(n.src,i=t[55].image.url)&&ke(n,"src",i),1536&r[0]&&o!==(o=Rn({width:t[55].image.width,height:t[55].image.height,"margin-top":t[9]?"-".concat(t[55].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[55].image.height):void 0,filter:t[55].image.svgFilterId?"url(#".concat(t[55].image.svgFilterId,")"):void 0}))&&ke(n,"style",o),1024&r[0]&&a!==(a=Rn(t[55].image.wrapperStyle))&&ke(e,"style",a)},i:Ot,o:Ot,d(t){t&&me(e),l=!1,s()}}}function hi(t){let e,n,r=t[55].text&&pi(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){t[55].text?r?(r.p(t,n),1024&n[0]&&fn(r,1)):(r=pi(t),r.c(),fn(r,1),r.m(e.parentNode,e)):r&&(hn(),gn(r,1,1,(()=>{r=null})),pn())},i(t){n||(fn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function pi(t){let e,n;return e=new ei({props:{text:t[55].text,rootFontSize:t[5],textStyles:t[55].textStyles,singleline:t[7],actions:t[55].actions}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.text=t[55].text),32&n[0]&&(r.rootFontSize=t[5]),1024&n[0]&&(r.textStyles=t[55].textStyles),128&n[0]&&(r.singleline=t[7]),1024&n[0]&&(r.actions=t[55].actions),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function fi(t){let e,n,r,i;const o=[hi,di],a=[];function l(t,e){return"text"in t[55]?0:t[55].image?1:-1}return~(e=l(t))&&(n=a[e]=o[e](t)),{c(){n&&n.c(),r=we()},l(t){n&&n.l(t),r=we()},m(t,n){~e&&a[e].m(t,n),ge(t,r,n),i=!0},p(t,i){let s=e;e=l(t),e===s?~e&&a[e].p(t,i):(n&&(hn(),gn(a[s],1,1,(()=>{a[s]=null})),pn()),~e?(n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),fn(n,1),n.m(r.parentNode,r)):n=null)},i(t){i||(fn(n),i=!0)},o(t){gn(n),i=!1},d(t){~e&&a[e].d(t),t&&me(r)}}}function gi(t){let e,n,r,i,o,a;const l=[ui,ci],s=[];function c(t,e){return t[10].length?0:1}return n=c(t),r=s[n]=l[n](t),{c(){e=ye("span"),r.c(),this.h()},l(t){e=De(t,"SPAN",{class:!0,style:!0});var n=Ce(e);r.l(n),n.forEach(me),this.h()},h(){ke(e,"class",i=or("text__inner",Jn,t[12])),ke(e,"style",o=Rn(t[11]))},m(t,r){ge(t,e,r),s[n].m(e,null),a=!0},p(t,u){let d=n;n=c(t),n===d?s[n].p(t,u):(hn(),gn(s[d],1,1,(()=>{s[d]=null})),pn(),r=s[n],r?r.p(t,u):(r=s[n]=l[n](t),r.c()),fn(r,1),r.m(e,null)),(!a||4096&u[0]&&i!==(i=or("text__inner",Jn,t[12])))&&ke(e,"class",i),(!a||2048&u[0]&&o!==(o=Rn(t[11])))&&ke(e,"style",o)},i(t){a||(fn(r),a=!0)},o(t){gn(r),a=!1},d(t){t&&me(e),s[n].d()}}}function mi(t){let e,n,r=!t[8]&&si(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){t[8]?r&&(hn(),gn(r,1,1,(()=>{r=null})),pn()):r?(r.p(t,n),256&n[0]&&fn(r,1)):(r=si(t),r.c(),fn(r,1),r.m(e.parentNode,e))},i(t){n||(fn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function vi(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,E,C,A,V,D,P,j,S,N,F,I,M,T=Ot,z=Ot,O=Ot,J=Ot,B=Ot,R=Ot,U=Ot,L=Ot,W=Ot,H=Ot,q=Ot,G=Ot,K=Ot;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K()));let{json:X={}}=e,{templateContext:Y}=e,{origJson:Z}=e,{layoutParams:Q}=e;const tt=He(On);let et=!1,nt="",rt=12,it=1.25,ot=!1,at="",lt="",st=!1,ut="left",dt="top",ht="",pt="",ft=!1,gt=[],mt=[];return Le((()=>{mt.forEach((t=>{let[e,n]=t;tt.removeSvgFilter(e,n)}))})),t.$$set=t=>{"json"in t&&n(0,X=t.json),"templateContext"in t&&n(1,Y=t.templateContext),"origJson"in t&&n(2,Z=t.origJson),"layoutParams"in t&&n(3,Q=t.layoutParams)},t.$$.update=()=>{var e,Y;if(1&t.$$.dirty[0]&&(n(26,r=tt.getDerivedFromVars(X.text)),K(),K=Xt(r,(t=>n(51,M=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&(n(4,(e=M,Y=nt,nt=String(null!=e?e:"")||Y)),nt?n(8,et=!1):(n(8,et=!0),tt.logError(ct(new Error('Missing "text" prop for div "text"'))))),1&t.$$.dirty[0]&&(n(25,i=tt.getDerivedFromVars(X.ranges)),z(),z=Xt(i,(t=>n(41,E=t)))),1&t.$$.dirty[0]&&(n(24,o=tt.getDerivedFromVars(X.images)),T(),T=Xt(o,(t=>n(40,x=t)))),1&t.$$.dirty[0]&&(n(23,a=tt.getDerivedFromVars({font_size:X.font_size,letter_spacing:X.letter_spacing,font_weight:X.font_weight,font_family:X.font_family,text_color:X.text_color,underline:X.underline,strike:X.strike,line_height:X.line_height})),O(),O=Xt(a,(t=>n(27,C=t)))),1&t.$$.dirty[0]&&(n(22,l=tt.getDerivedFromVars(X.font_size)),G(),G=Xt(l,(t=>n(50,I=t)))),32&t.$$.dirty[0]|524288&t.$$.dirty[1]&&n(5,rt=Gr(I,rt)),1&t.$$.dirty[0]&&(n(21,s=tt.getDerivedFromVars(X.line_height)),q(),q=Xt(s,(t=>n(49,F=t)))),32&t.$$.dirty[0]|262144&t.$$.dirty[1]){const t=F;Pr(t)?(n(29,it=Number(t)/rt),n(9,ot=!0)):n(9,ot=!1)}if(1&t.$$.dirty[0]&&(n(20,c=tt.getDerivedFromVars(X.max_lines)),L(),L=Xt(c,(t=>n(46,j=t)))),32768&t.$$.dirty[1]&&n(7,u=1===j),536870912&t.$$.dirty[0]|34304&t.$$.dirty[1]){let t="",e="",r=!1;if(j&&j>1){let n=Number(j);t=n*it+"em",E||x||(e=n,r=!0)}n(30,at=t),n(31,lt=e),n(32,st=r)}if(1&t.$$.dirty[0]&&(n(19,d=tt.getDerivedFromVars(X.text_alignment_horizontal)),H(),H=Xt(d,(t=>n(48,N=t)))),131076&t.$$.dirty[1]&&n(33,ut=ni(N,ut)),1&t.$$.dirty[0]&&(n(18,h=tt.getDerivedFromVars(X.text_alignment_vertical)),W(),W=Xt(h,(t=>n(47,S=t)))),65544&t.$$.dirty[1]&&n(34,dt=ri(S,dt)),16&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(39,p=!E||nt&&1===E.length&&E[0]&&0===E[0].start&&"number"==typeof E[0].end&&E[0].end>=nt.length),1&t.$$.dirty[0]&&(n(17,f=tt.getDerivedFromVars(X.text_color)),U(),U=Xt(f,(t=>n(45,P=t)))),17408&t.$$.dirty[1]&&n(38,g=Boolean(P)!==Boolean(E&&E[0]&&E[0].text_color)),50576&t.$$.dirty[1]){let t="";j&&p&&g&&(t=k(P||E&&E[0]&&E[0].text_color,1,ht)),n(35,ht=t)}if(1&t.$$.dirty[0]&&(n(16,m=tt.getDerivedFromVars(X.truncate)),R(),R=Xt(m,(t=>n(44,D=t)))),8192&t.$$.dirty[1]&&n(37,v="none"===D?"none":""),1&t.$$.dirty[0]&&(n(15,y=tt.getDerivedFromVars(X.text_gradient)),B(),B=Xt(y,(t=>n(43,V=t)))),4096&t.$$.dirty[1]){let t="";if(V){const e=qn([V]);e.image&&(t=e.image)}n(36,pt=t)}1&t.$$.dirty[0]&&(n(14,$=tt.getDerivedFromVars(X.selectable)),J(),J=Xt($,(t=>n(42,A=t)))),64&t.$$.dirty[0]|2048&t.$$.dirty[1]&&n(6,ft=ii(A,ft)),16&t.$$.dirty[0]|1536&t.$$.dirty[1]&&function(t,e,r){let i=[];if(mt.forEach((t=>{let[e,n]=t;tt.removeSvgFilter(e,n)})),mt=[],!(Array.isArray(e)&&e.length||Array.isArray(r)&&r.length&&t))return void n(10,gt=[]);const o=t;let a=e||[{start:0,end:o.length}],l=r||[],s=0,c=[],u=[];a.forEach((t=>{void 0!==t.start&&void 0!==t.end&&(u.push({index:t.start,range:t,type:"rangeStart",isStart:!0}),u.push({index:t.end,range:t,type:"rangeEnd"}))})),l.forEach(((t,e)=>{void 0!==t.start&&t.url&&t.start<=o.length&&u.push({index:t.start,image:t,type:"image",arrayIndex:e})})),u.sort(((t,e)=>t.index===e.index?t.type!==e.type?"image"===t.type?-1:"image"===e.type?1:t.type<e.type?-1:1:"image"===t.type&&"image"===e.type?e.arrayIndex-t.arrayIndex:"rangeStart"===t.type&&"rangeStart"===e.type?t.range.end-e.range.end:"rangeStart"===t.type?1:"rangeStart"===e.type?-1:"image"!==t.type&&"image"!==e.type?t.range.start-e.range.start:0:t.index-e.index)),u.forEach((t=>{var e;let n="image"===t.type?null:t.range,r=t.index;if(r>s){let n=Object.assign(Object.assign({},C),...c);i.push({text:o.substring(s,r),textStyles:n,actions:"rangeEnd"===t.type&&(null===(e=t.range)||void 0===e?void 0:e.actions)||void 0})}if("rangeStart"===t.type&&n)c.push(n);else if("rangeEnd"===t.type)c=c.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},C),...c),n=Un(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=Un(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const o={"font-size":Un(10*(Number(e.font_size)||12)/rt)};let a="";const l=t.image.tint_color,s=oi(t.image.tint_mode,"source_in");if(l){const e=k(t.image.tint_color);a=tt.addSvgFilter(e,s),mt.push([e,s])}i.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:o,svgFilterId:a}})}s=r})),s<o.length&&i.push({text:o.substring(s),textStyles:Object.assign({},C)}),n(10,gt=i)}(nt,E,x),128&t.$$.dirty[0]|78&t.$$.dirty[1]&&n(13,_={singleline:u,multiline:st,halign:ut,valign:dt,truncate:v}),32&t.$$.dirty[1]&&n(12,b={gradient:Boolean(pt)}),1610612768&t.$$.dirty[0]|49&t.$$.dirty[1]&&n(11,w={"font-size":Un(rt),"line-height":it,"max-height":at,"-webkit-line-clamp":lt,color:ht,"background-image":pt})},[X,Y,Z,Q,nt,rt,ft,u,et,ot,gt,w,b,_,$,y,m,f,h,d,c,s,l,a,o,i,r,C,function(t){t.target&&"classList"in t.target&&t.target.classList.add(Jn.text__image_hidden)},it,at,lt,st,ut,dt,ht,pt,v,g,p,x,E,A,V,D,P,j,S,N,F,I,M]}const yi={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_orientation_vertical:"divkit-ddc33",container_valign_top:"divkit-a331a",container_valign_center:"divkit-aae61",container_valign_bottom:"divkit-c2226","container_valign_space-between":"divkit-ce053","container_valign_space-around":"divkit-cf29b","container_valign_space-evenly":"divkit-b4b04",container_halign_left:"divkit-a3091",container_halign_center:"divkit-bac9d",container_halign_right:"divkit-f4230","container_halign_space-between":"divkit-e5c38","container_halign_space-around":"divkit-feff2","container_halign_space-evenly":"divkit-e5e05",container_orientation_horizontal:"divkit-fe458",container_orientation_overlap:"divkit-a644d"};function $i(t){return{top:Number(null==t?void 0:t.top)||0,right:Number(null==t?void 0:t.right)||0,bottom:Number(null==t?void 0:t.bottom)||0,left:Number(null==t?void 0:t.left)||0}}function _i(t,e,n){const r=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),i=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0);null!=e&&e.show_at_start&&(n?t.top=e.style.height+i:t.left=e.style.width+r),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height+i:t.right=e.style.width+r)}function bi(t,e,n){let r;const i=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),o=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0),a=((null==n?void 0:n.margins.left)||0)+((null==n?void 0:n.margins.right)||0),l=((null==n?void 0:n.margins.top)||0)+((null==n?void 0:n.margins.bottom)||0);return r="horizontal"===t?[null!=n&&n.show_between?n.style.height+l:0,null!=e&&e.show_between?e.style.width+i:0]:[null!=e&&e.show_between?e.style.height+o:0,null!=n&&n.show_between?n.style.width+a:0],r.map(Un).join(" ")}function wi(t,e,n){if(!(t&&t.shape&&t.shape.type&&e.includes(t.shape.type)&&"shape_drawable"===t.type))return n;let r;if("rounded_rectangle"===t.shape.type)i=t.shape,r={width:Number((null===(o=i.item_width)||void 0===o?void 0:o.value)||10),height:Number((null===(a=i.item_height)||void 0===a?void 0:a.value)||10),radius:Number(null!==(l=null===(s=i.corner_radius)||void 0===s?void 0:s.value)&&void 0!==l?l:5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*Number((null===(e=t.radius)||void 0===e?void 0:e.value)||10);return{width:n,height:n,radius:n}}(t.shape)}var i,o,a,l,s;return function(t,e,n){var r;const i={},o=e.stroke||(null==n?void 0:n.stroke),a=null!=o&&o.color?k(o.color):"",l=null!=o&&o.width?Number(null!==(r=o.width)&&void 0!==r?r:1):"";i.width=t.width,i.height=t.height,i.borderRadius=t.radius;const s=e.background_color||(null==n?void 0:n.color);return i.background=k(s),a&&l&&(i.boxShadow="inset 0 0 0 ".concat(Un(l)," ").concat(a)),i}(r,t.shape,{color:t.color,stroke:t.stroke})}let xi;function ki(){if(void 0!==xi)return xi;const t=document.createElement("div");return t.style.position="absolute",t.style.display="flex",t.style.flexDirection="column",t.style.gap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),xi=1===t.scrollHeight,document.body.removeChild(t),xi}const Ei={"container-separator":"divkit-a7719","container-separator__item":"divkit-c770e","container-separator__shape":"divkit-f6e9a"};function Ci(t,e,n){const r=t.slice();return r[13]=e[n],r}function Ai(t){let e,n,r,i,o,a="".concat(t[13].style.width,"px"),l="".concat(t[13].style.height,"px"),s="".concat(t[13].style.borderRadius,"px"),c="".concat(t[13].left,"px"),u="".concat(t[13].top,"px"),d="".concat(t[13].width,"px"),h="".concat(t[13].height,"px");return{c(){e=ye("div"),n=ye("div"),i=be(),this.h()},l(t){e=De(t,"DIV",{class:!0});var r=Ce(e);n=De(r,"DIV",{class:!0}),Ce(n).forEach(me),i=Se(r),r.forEach(me),this.h()},h(){ke(n,"class",r=Ei["container-separator__shape"]),Fe(n,"width",a),Fe(n,"height",l),Fe(n,"border-radius",s),Fe(n,"background",t[13].style.background),Fe(n,"box-shadow",t[13].style.boxShadow),ke(e,"class",o=Ei["container-separator__item"]),Fe(e,"left",c),Fe(e,"top",u),Fe(e,"width",d),Fe(e,"height",h)},m(t,r){ge(t,e,r),fe(e,n),fe(e,i)},p(t,r){2&r&&a!==(a="".concat(t[13].style.width,"px"))&&Fe(n,"width",a),2&r&&l!==(l="".concat(t[13].style.height,"px"))&&Fe(n,"height",l),2&r&&s!==(s="".concat(t[13].style.borderRadius,"px"))&&Fe(n,"border-radius",s),2&r&&Fe(n,"background",t[13].style.background),2&r&&Fe(n,"box-shadow",t[13].style.boxShadow),2&r&&c!==(c="".concat(t[13].left,"px"))&&Fe(e,"left",c),2&r&&u!==(u="".concat(t[13].top,"px"))&&Fe(e,"top",u),2&r&&d!==(d="".concat(t[13].width,"px"))&&Fe(e,"width",d),2&r&&h!==(h="".concat(t[13].height,"px"))&&Fe(e,"height",h)},d(t){t&&me(e)}}}function Vi(t){let e,n,r,i,o=t[1],a=[];for(let e=0;e<o.length;e+=1)a[e]=Ai(Ci(t,o,e));return{c(){e=ye("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){e=De(t,"DIV",{class:!0});var n=Ce(e);for(let t=0;t<a.length;t+=1)a[t].l(n);n.forEach(me),this.h()},h(){ke(e,"class",n=Ei["container-separator"])},m(n,o){ge(n,e,o);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(e,null);t[10](e),r||(i=xe(window,"resize",t[2]),r=!0)},p(t,n){let[r]=n;if(2&r){let n;for(o=t[1],n=0;n<o.length;n+=1){const i=Ci(t,o,n);a[n]?a[n].p(i,r):(a[n]=Ai(i),a[n].c(),a[n].m(e,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=o.length}},i:Ot,o:Ot,d(n){n&&me(e),ve(a,n),t[10](null),r=!1,i()}}}function Di(t,e,n,r,i,o){const a=e.margins.left,l=e.margins.right,s=e.margins.top,c=e.margins.bottom;o?t.push({top:n.bottom+s,left:i.left+a,width:Math.max(0,i.right-i.left-a-l),height:r.top-n.bottom-s-c,style:e.style}):t.push({top:i.top+s,left:n.right+a,width:r.left-n.right-a-l,height:Math.max(0,i.bottom-i.top-s-c),style:e.style})}function Pi(t,e,n,r){const i={top:Math.min(...n.map((t=>t.top))),right:Math.max(...n.map((t=>t.right))),bottom:Math.max(...n.map((t=>t.bottom))),left:Math.min(...n.map((t=>t.left)))};if((null==e?void 0:e.show_at_start)&&Di(t,e,{top:0,right:n[0].left-e.style.width-e.margins.left-e.margins.right,bottom:n[0].top-e.style.height-e.margins.top-e.margins.bottom,left:0},n[0],i,r),null==e?void 0:e.show_between)for(let o=0;o<n.length-1;++o)Di(t,e,n[o],n[o+1],i,r);if(null==e?void 0:e.show_at_end){const o=n[n.length-1];Di(t,e,o,{top:o.bottom+e.style.height+e.margins.top+e.margins.bottom,right:0,bottom:0,left:o.right+e.style.width+e.margins.left+e.margins.right},i,r)}}function ji(t,e,n){let r,{orientation:i}=e,{separator:o}=e,{lineSeparator:a}=e;const l=function(t,e){let n,r=0,i=!1;return function(){const e=Date.now();return!r||Math.abs(e-r)>10?(r=e,n=t.apply(this,arguments)):(i||(i=!0,setTimeout((()=>{i=!1,n=t.apply(this,arguments)}),10)),n)}}((function(){if(!r)return;const t=r.getBoundingClientRect();n(1,c=[]);let e=[...r.children].filter((t=>t!==s&&!t.classList.contains(Bn.outer__border))),l=[];for(;e.length;){const t=[],n=e.shift();t.push(n);let r=n.getBoundingClientRect(),o=r.right,a=r.bottom;for(;e.length;){let n=e[0],r=n.getBoundingClientRect();if("vertical"===i){if(r.top<a)break}else if(r.left<o)break;o=Math.max(o,r.right),a=Math.max(a,r.bottom),t.push(n),e.shift()}l.push(t)}const u=[];l.forEach((t=>{const e=t.map((t=>function(t){const e=t.getBoundingClientRect(),n=getComputedStyle(t);return{top:e.top-parseFloat(n.marginTop),right:e.right+parseFloat(n.marginRight),bottom:e.bottom+parseFloat(n.marginBottom),left:e.left-parseFloat(n.marginLeft)}}(t)));o&&Pi(c,o,e,"vertical"===i);const n={top:Math.min(...e.map((t=>t.top))),right:Math.max(...e.map((t=>t.right))),bottom:Math.max(...e.map((t=>t.bottom))),left:Math.min(...e.map((t=>t.left)))};u.push(n)})),a&&Pi(c,a,u,"horizontal"===i),c.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let s,c=[],u=!1,d=null,h=null;function p(t){t.some((t=>{var e;const n=null===(e=t.target)||void 0===e?void 0:e.classList;return!(null==n?void 0:n.contains(Ei["container-separator__shape"]))&&!(null==n?void 0:n.contains(Ei["container-separator"]))}))&&l()}return Ue((()=>{n(6,u=!0)})),Le((()=>{n(6,u=!1)})),t.$$set=t=>{"orientation"in t&&n(3,i=t.orientation),"separator"in t&&n(4,o=t.separator),"lineSeparator"in t&&n(5,a=t.lineSeparator)},t.$$.update=()=>{1&t.$$.dirty&&n(9,r=(null==s?void 0:s.parentElement)||null),960&t.$$.dirty&&(u&&r||d||h)&&(d&&(d.disconnect(),n(7,d=null)),h&&(h.disconnect(),n(8,h=null)),u&&r&&("undefined"!=typeof MutationObserver&&(n(7,d=new MutationObserver(p)),d.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(8,h=new ResizeObserver(l)),h.observe(r)))),576&t.$$.dirty&&u&&r&&l()},[s,c,l,i,o,a,u,d,h,r,function(t){Ke[t?"unshift":"push"]((()=>{s=t,n(0,s)}))}]}const Si=class extends An{constructor(t){super(),Cn(this,t,ji,Vi,Gt,{orientation:3,separator:4,lineSeparator:5})}},{Boolean:Ni}=yn;function Fi(t,e,n){const r=t.slice();return r[46]=e[n],r}function Ii(t){let e,n;return e=new Hr({props:{cls:or("container",yi,t[11]),style:t[10],json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],additionalPaddings:t[15],heightByAspect:Boolean(t[8]),$$slots:{default:[zi]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=or("container",yi,t[11])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),32768&n[0]&&(r.additionalPaddings=t[15]),256&n[0]&&(r.heightByAspect=Boolean(t[8])),4195040&n[0]|262144&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Mi(t){let e,n;return e=new Ol({props:{layoutParams:t[9],div:t[46].json,templateContext:t[46].templateContext,origJson:t[46].origJson}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.layoutParams=t[9]),4194304&n[0]&&(r.div=t[46].json),4194304&n[0]&&(r.templateContext=t[46].templateContext),4194304&n[0]&&(r.origJson=t[46].origJson),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Ti(t){let e,n;return e=new Si({props:{separator:t[6],lineSeparator:t[7],orientation:t[5]}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.separator=t[6]),128&n[0]&&(r.lineSeparator=t[7]),32&n[0]&&(r.orientation=t[5]),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function zi(t){let e,n,r,i=t[22],o=[];for(let e=0;e<i.length;e+=1)o[e]=Mi(Fi(t,i,e));const a=t=>gn(o[t],1,1,(()=>{o[t]=null}));let l=(t[6]||t[7])&&Ti(t);return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=be(),l&&l.c(),n=we()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Se(t),l&&l.l(t),n=we()},m(t,i){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,i);ge(t,e,i),l&&l.m(t,i),ge(t,n,i),r=!0},p(t,r){if(4194816&r[0]){let n;for(i=t[22],n=0;n<i.length;n+=1){const a=Fi(t,i,n);o[n]?(o[n].p(a,r),fn(o[n],1)):(o[n]=Mi(a),o[n].c(),fn(o[n],1),o[n].m(e.parentNode,e))}for(hn(),n=i.length;n<o.length;n+=1)a(n);pn()}t[6]||t[7]?l?(l.p(t,r),192&r[0]&&fn(l,1)):(l=Ti(t),l.c(),fn(l,1),l.m(n.parentNode,n)):l&&(hn(),gn(l,1,1,(()=>{l=null})),pn())},i(t){if(!r){for(let t=0;t<i.length;t+=1)fn(o[t]);fn(l),r=!0}},o(t){o=o.filter(Ni);for(let t=0;t<o.length;t+=1)gn(o[t]);gn(l),r=!1},d(t){ve(o,t),t&&me(e),l&&l.d(t),t&&me(n)}}}function Oi(t){let e,n,r=!t[4]&&Ii(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){t[4]?r&&(hn(),gn(r,1,1,(()=>{r=null})),pn()):r?(r.p(t,n),16&n[0]&&fn(r,1)):(r=Ii(t),r.c(),fn(r,1),r.m(e.parentNode,e))},i(t){n||(fn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function Ji(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,A=Ot,V=Ot,D=Ot,P=Ot,j=Ot,S=Ot,N=Ot,F=Ot,I=Ot;var M,T,z,O,J,B;t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>I()));let{json:R={}}=e,{templateContext:U}=e,{origJson:L}=e,{layoutParams:W}=e;const H={left:"start",center:"center",right:"end","space-between":"start","space-around":"start","space-evenly":"start"},q={top:"start",center:"center",bottom:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},G=["rounded_rectangle","circle"],K=He(On);let X,Y=!1,Z="vertical",Q="top",tt="left",et=null,nt=null,rt={};return t.$$set=t=>{"json"in t&&n(0,R=t.json),"templateContext"in t&&n(1,U=t.templateContext),"origJson"in t&&n(2,L=t.origJson),"layoutParams"in t&&n(3,W=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(32,r=R.items),2&t.$$.dirty[1]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,Y=!1):(n(4,Y=!0),K.logError(ct(new Error('Incorrect or empty "items" prop for div "container"'))))),18&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(22,i=(!Y&&r||[]).map((t=>{let e=t,n=U;return({templateContext:n,json:e}=K.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(21,o=K.getDerivedFromVars(R.orientation)),I(),I=Xt(o,(t=>n(41,C=t)))),32&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(5,Z=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(C,Z)),1&t.$$.dirty[0]&&(n(20,a=K.getDerivedFromVars(R.content_alignment_vertical)),F(),F=Xt(a,(t=>n(40,E=t)))),536870912&t.$$.dirty[0]|512&t.$$.dirty[1]&&n(29,Q=function(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(E,Q)),1&t.$$.dirty[0]&&(n(19,l=K.getDerivedFromVars(R.content_alignment_horizontal)),N(),N=Xt(l,(t=>n(39,k=t)))),1073741824&t.$$.dirty[0]|256&t.$$.dirty[1]&&n(30,tt=function(t,e){return"left"===t||"center"===t||"right"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(k,tt)),1&t.$$.dirty[0]&&(n(18,s=K.getDerivedFromVars(R.layout_mode)),S(),S=Xt(s,(t=>n(38,x=t)))),128&t.$$.dirty[1]&&n(31,c="wrap"===x),1&t.$$.dirty[0]&&(n(17,u=K.getDerivedFromVars(R.separator)),j(),j=Xt(u,(t=>n(37,w=t)))),58720352&t.$$.dirty[0]|64&t.$$.dirty[1])if((null==w?void 0:w.style)&&"overlap"!==Z&&ki()){const t=wi(w.style,G,(null==et?void 0:et.style)||null);n(6,et=t?{show_at_start:Boolean(null!==n(23,M=w.show_at_start)&&void 0!==M&&M),show_at_end:Boolean(null!==n(24,T=w.show_at_end)&&void 0!==T&&T),show_between:Boolean(null===n(25,z=w.show_between)||void 0===z||z),style:t,margins:$i(w.margins)}:null)}else n(6,et=null);if(1&t.$$.dirty[0]&&(n(16,d=K.getDerivedFromVars(R.line_separator)),P(),P=Xt(d,(t=>n(36,b=t)))),469762208&t.$$.dirty[0]|32&t.$$.dirty[1])if((null==b?void 0:b.style)&&"overlap"!==Z&&ki()){const t=wi(b.style,G,(null==nt?void 0:nt.style)||null);n(7,nt=t?{show_at_start:Boolean(null!==n(26,O=b.show_at_start)&&void 0!==O&&O),show_at_end:Boolean(null!==n(27,J=b.show_at_end)&&void 0!==J&&J),show_between:Boolean(null===n(28,B=b.show_between)||void 0===B||B),style:t,margins:$i(b.margins)}:null)}else n(7,nt=null);if(224&t.$$.dirty[0]&&n(15,h=et||nt?function(t,e,n){const r={};return _i(r,e,"vertical"===t),_i(r,n,"horizontal"===t),r}(Z,et,nt):null),1&t.$$.dirty[0]&&(n(14,p=K.getDerivedFromVars(R.aspect)),D(),D=Xt(p,(t=>n(35,_=t)))),16&t.$$.dirty[1]){const t=null==_?void 0:_.ratio;t&&Pr(t)?n(8,X=t):n(8,X=void 0)}if(1&t.$$.dirty[0]&&(n(13,f=K.getDerivedFromVars(R.width)),A(),A=Xt(f,(t=>n(33,y=t)))),1&t.$$.dirty[0]&&(n(12,g=K.getDerivedFromVars(R.height)),V(),V=Xt(g,(t=>n(34,$=t)))),1610613544&t.$$.dirty[0]|13&t.$$.dirty[1]){let t={};(null==W?void 0:W.fakeElement)&&(t.fakeElement=!0),"overlap"===Z&&(t.overlapParent=!0),"horizontal"!==Z&&(t.parentHAlign=c?"start":H[tt],X||$&&"wrap_content"!==$.type&&("match_parent"!==$.type||!(null==W?void 0:W.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0)),"vertical"!==Z&&(t.parentVAlign=c?"start":q[Q],("wrap_content"===(null==y?void 0:y.type)||"match_parent"===(null==y?void 0:y.type)&&(null==W?void 0:W.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0)),"horizontal"===Z&&(t.parentContainerOrientation="horizontal"),"vertical"===Z&&(t.parentContainerOrientation="vertical"),c&&(t.parentContainerWrap=!0),n(9,rt=gr(t,rt))}1610612768&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(11,m={orientation:Z,valign:Q,halign:tt,wrap:c}),480&t.$$.dirty[0]&&n(10,v={gap:et||nt?bi(Z,et,nt):void 0,"aspect-ratio":X})},[R,U,L,W,Y,Z,et,nt,X,rt,v,m,g,f,p,h,d,u,s,l,a,o,i,M,T,z,O,J,B,Q,tt,c,r,y,$,_,b,w,x,k,E,C]}const Bi={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function Ri(t,e){return"vertical"===t||"horizontal"===t?t:e}function Ui(t){let e,n,r;return{c(){e=ye("span"),this.h()},l(t){e=De(t,"SPAN",{class:!0,style:!0}),Ce(e).forEach(me),this.h()},h(){ke(e,"class",n=Bi.separator__inner),ke(e,"style",r=Rn(t[5]))},m(t,n){ge(t,e,n)},p(t,n){32&n&&r!==(r=Rn(t[5]))&&ke(e,"style",r)},d(t){t&&me(e)}}}function Li(t){let e,n=t[6]&&Ui(t);return{c(){n&&n.c(),e=we()},l(t){n&&n.l(t),e=we()},m(t,r){n&&n.m(t,r),ge(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=Ui(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&me(e)}}}function Wi(t){let e,n;return e=new Hr({props:{cls:or("separator",Bi,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Li]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){let[r]=n;const i={};16&r&&(i.cls=or("separator",Bi,t[4])),1&r&&(i.json=t[0]),4&r&&(i.origJson=t[2]),2&r&&(i.templateContext=t[1]),8&r&&(i.layoutParams=t[3]),16480&r&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Hi(t,e,n){let r,i,o,a,l,s,c,u=Ot;t.$$.on_destroy.push((()=>u()));let{json:d={}}=e,{templateContext:h}=e,{origJson:p}=e,{layoutParams:f}=e;const g=He(On);let m="horizontal",v="rgba(0,0,0,0.08)";return t.$$set=t=>{"json"in t&&n(0,d=t.json),"templateContext"in t&&n(1,h=t.templateContext),"origJson"in t&&n(2,p=t.origJson),"layoutParams"in t&&n(3,f=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&(n(7,r=g.getDerivedFromVars(d.delimiter_style)),u(),u=Xt(r,(t=>n(12,c=t)))),4352&t.$$.dirty&&n(8,m=Ri(null==c?void 0:c.orientation,m)),4096&t.$$.dirty&&n(6,i=!((null==c?void 0:c.color)&&("transparent"===c.color||9===c.color.length&&0===c.color.indexOf("#00")))),4608&t.$$.dirty&&n(9,v=k(null==c?void 0:c.color,1,v)),256&t.$$.dirty&&n(11,o="horizontal"===m?"100%":Un(1)),256&t.$$.dirty&&n(10,a="horizontal"===m?Un(1):"100%"),3584&t.$$.dirty&&n(5,l={background:v,width:o,height:a}),256&t.$$.dirty&&n(4,s={orientation:m})},[d,h,p,f,s,l,i,r,m,v,a,o,c]}const qi={image:"divkit-a448f","image_is-width-content":"divkit-fe14a","image_is-height-content":"divkit-f4d92",image__image:"divkit-ce046",image_error:"divkit-f10d9","image__aspect-wrapper":"divkit-dc808",image_aspect:"divkit-ae784",image_loaded:"divkit-cf4e0","divkit-image-appearance":"divkit-e555f","image_before-appearance":"divkit-ffe8a"};function Gi(t){return t.startsWith("data:")?Wn(t):"data:image/jpg;base64,".concat(Wn(t))}function Ki(t){let e,n;return e=new Hr({props:{cls:or("image",qi,t[10]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customDescription:!0,$$slots:{default:[Qi]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=or("image",qi,t[10])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),67312&n[0]|536870912&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Xi(t){let e,n,r,i,o,a,l;return{c(){e=ye("img"),this.h()},l(t){e=De(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){ke(e,"class",n=qi.image__image),qt(e.src,r=t[4]===no?eo:t[7])||ke(e,"src",r),ke(e,"loading","lazy"),ke(e,"decoding","async"),ke(e,"style",i=Rn(t[9])),ke(e,"alt",t[16]),ke(e,"aria-hidden",o=t[16]?null:"true")},m(n,r){ge(n,e,r),a||(l=[xe(e,"load",t[26]),xe(e,"error",t[27])],a=!0)},p(t,n){144&n[0]&&!qt(e.src,r=t[4]===no?eo:t[7])&&ke(e,"src",r),512&n[0]&&i!==(i=Rn(t[9]))&&ke(e,"style",i),65536&n[0]&&ke(e,"alt",t[16]),65536&n[0]&&o!==(o=t[16]?null:"true")&&ke(e,"aria-hidden",o)},d(t){t&&me(e),a=!1,Lt(l)}}}function Yi(t){let e,n,r,i,o,a,l,s,c,u="".concat(t[5],"%");return{c(){e=ye("span"),n=ye("img"),this.h()},l(t){e=De(t,"SPAN",{class:!0});var r=Ce(e);n=De(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(me),this.h()},h(){ke(n,"class",r=qi.image__image),qt(n.src,i=t[4]===no?eo:t[7])||ke(n,"src",i),ke(n,"loading","lazy"),ke(n,"decoding","async"),ke(n,"style",o=Rn(t[9])),ke(n,"alt",t[16]),ke(n,"aria-hidden",a=t[16]?null:"true"),ke(e,"class",l=qi["image__aspect-wrapper"]),Fe(e,"padding-bottom",u)},m(r,i){ge(r,e,i),fe(e,n),s||(c=[xe(n,"load",t[26]),xe(n,"error",t[27])],s=!0)},p(t,r){144&r[0]&&!qt(n.src,i=t[4]===no?eo:t[7])&&ke(n,"src",i),512&r[0]&&o!==(o=Rn(t[9]))&&ke(n,"style",o),65536&r[0]&&ke(n,"alt",t[16]),65536&r[0]&&a!==(a=t[16]?null:"true")&&ke(n,"aria-hidden",a),32&r[0]&&u!==(u="".concat(t[5],"%"))&&Fe(e,"padding-bottom",u)},d(t){t&&me(e),s=!1,Lt(c)}}}function Zi(t){let e;function n(t,e){return t[10].aspect?Yi:Xi}let r=n(t),i=r(t);return{c(){i.c(),e=we()},l(t){i.l(t),e=we()},m(t,n){i.m(t,n),ge(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){i.d(t),t&&me(e)}}}function Qi(t){let e,n=t[6],r=Zi(t);return{c(){r.c(),e=we()},l(t){r.l(t),e=we()},m(t,n){r.m(t,n),ge(t,e,n)},p(t,i){64&i[0]&&Gt(n,n=t[6])?(r.d(1),r=Zi(t),r.c(),r.m(e.parentNode,e)):r.p(t,i)},d(t){t&&me(e),r.d(t)}}}function to(t){let e,n,r=!t[8]&&Ki(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){t[8]?r&&(hn(),gn(r,1,1,(()=>{r=null})),pn()):r?(r.p(t,n),256&n[0]&&fn(r,1)):(r=Ki(t),r.c(),fn(r,1),r.m(e.parentNode,e))},i(t){n||(fn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}const eo="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",no=2;function ro(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,E,C,A,V,D,P,j,S,N,F,I,M,T,z=Ot,O=Ot,J=Ot,B=Ot,R=Ot,U=Ot,L=Ot,W=Ot,H=Ot,q=Ot,G=Ot,K=Ot,X=Ot,Y=Ot;t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y()));let{json:Z={}}=e,{templateContext:Q}=e,{origJson:tt}=e,{layoutParams:et}=e;const nt=He(On);let rt=0,it="rgba(0,0,0,0.08)",ot=!1,at="",lt="none",st="50% 50%";let ut,dt="0",ht="source_in",pt="",ft="",gt=0,mt=0,vt=0,yt="",$t="";return Le((()=>{nt.removeSvgFilter(ut,ht)})),t.$$set=t=>{"json"in t&&n(0,Z=t.json),"templateContext"in t&&n(1,Q=t.templateContext),"origJson"in t&&n(2,tt=t.origJson),"layoutParams"in t&&n(3,et=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(25,r=nt.getDerivedFromVars(Z.image_url)),Y(),Y=Xt(r,(t=>n(55,T=t)))),1&t.$$.dirty[0]&&(n(24,i=nt.getDerivedFromVars(Z.gif_url)),X(),X=Xt(i,(t=>n(54,M=t)))),25165824&t.$$.dirty[1]&&n(7,o=T||M),128&t.$$.dirty[0]&&n(4,rt=0),128&t.$$.dirty[0]&&(o?n(8,ot=!1):(n(8,ot=!0),nt.logError(ct(new Error('Missing "image_url" for "image"'))))),1&t.$$.dirty[0]&&(n(23,a=nt.getDerivedFromVars(Z.width)),K(),K=Xt(a,(t=>n(53,I=t)))),4194304&t.$$.dirty[1]&&n(41,l="wrap_content"===(null==I?void 0:I.type)),1&t.$$.dirty[0]&&(n(22,s=nt.getDerivedFromVars(Z.height)),G(),G=Xt(s,(t=>n(52,F=t)))),2097152&t.$$.dirty[1]&&n(40,c="wrap_content"===(null==F?void 0:F.type)),1&t.$$.dirty[0]&&(n(21,u=nt.getDerivedFromVars(Z.preview)),q(),q=Xt(u,(t=>n(51,N=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(29,at=0!==rt&&rt!==no||!N?"":'url("'.concat(Gi(N),'")')),1&t.$$.dirty[0]&&(n(20,d=nt.getDerivedFromVars(Z.placeholder_color)),H(),H=Xt(d,(t=>n(50,S=t)))),16&t.$$.dirty[0]|524288&t.$$.dirty[1]&&function(t,e){n(28,it=0===t||t===no?k(e,1,it):"")}(rt,S),1&t.$$.dirty[0]&&(n(19,h=nt.getDerivedFromVars(Z.scale)),W(),W=Xt(h,(t=>n(49,j=t)))),1073741824&t.$$.dirty[0]|262144&t.$$.dirty[1]&&n(30,lt=Xn(j)||lt),1&t.$$.dirty[0]&&(n(18,p=nt.getDerivedFromVars({content_alignment_horizontal:Z.content_alignment_horizontal,content_alignment_vertical:Z.content_alignment_vertical})),L(),L=Xt(p,(t=>n(48,P=t)))),131072&t.$$.dirty[1]&&n(31,st=function(t,e){const n=t.content_alignment_horizontal,r=t.content_alignment_vertical;return n&&"left"!==n&&"center"!==n&&"right"!==n||r&&"top"!==r&&"center"!==r&&"bottom"!==r?e:Yn(t)}(P,st)),1&t.$$.dirty[0]&&(n(17,f=nt.getDerivedFromVars(Z.accessibility)),U(),U=Xt(f,(t=>n(47,D=t)))),65536&t.$$.dirty[1]&&n(16,g=(null==D?void 0:D.description)||""),1&t.$$.dirty[0]&&(n(15,m=nt.getDerivedFromVars(Z.aspect)),R(),R=Xt(m,(t=>n(46,V=t)))),32768&t.$$.dirty[1]){const t=null==V?void 0:V.ratio;t&&Pr(t)?n(5,dt=(100/Number(t)).toFixed(2)):n(5,dt="0")}if(1&t.$$.dirty[0]&&(n(14,v=nt.getDerivedFromVars(Z.tint_color)),B(),B=Xt(v,(t=>n(45,A=t)))),1&t.$$.dirty[0]&&(n(13,y=nt.getDerivedFromVars(Z.tint_mode)),J(),J=Xt(y,(t=>n(44,C=t)))),24582&t.$$.dirty[1]){const t=A?k(A):void 0,e=oi(C,ht);t===ut&&e===ht||(nt.removeSvgFilter(ut,ht),n(6,pt=t?nt.addSvgFilter(t,e):""),n(32,ut=t),n(33,ht=e))}if(1&t.$$.dirty[0]&&(n(12,$=nt.getDerivedFromVars(Z.appearance_animation)),O(),O=Xt($,(t=>n(43,E=t)))),4096&t.$$.dirty[1]&&E&&"fade"===E.type){const t=E;n(34,ft=mr(t.interpolator,"ease_in_out").replace(/_/g,"-")),n(37,vt=hr(t.duration,300)),n(36,mt=hr(t.start_delay,0)),n(35,gt=hr(t.alpha,0))}if(1&t.$$.dirty[0]&&(n(11,_=nt.getDerivedFromVars(Z.filters)),z(),z=Xt(_,(t=>n(42,x=t)))),2048&t.$$.dirty[1]){let t="",e="";Array.isArray(x)&&x.length&&(t=jr(x,nt.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),n(38,yt=t),n(39,$t=e)}48&t.$$.dirty[0]|1544&t.$$.dirty[1]&&n(10,b={aspect:"0"!==dt,"is-width-content":l,"is-height-content":c,loaded:1===rt,"before-appearance":Boolean(ft)&&0===rt}),1879048272&t.$$.dirty[0]|505&t.$$.dirty[1]&&n(9,w={"background-image":at,"background-color":at?void 0:it,"background-size":lt,"clip-path":$t||void 0,"object-fit":lt,"object-position":st,filter:[1===rt&&pt?"url(#".concat(pt,")"):"",yt].filter(Boolean).join(" "),"--divkit-appearance-interpolator":ft||void 0,"--divkit-appearance-fade-start":ft?gt:void 0,"--divkit-appearance-delay":ft?"".concat(mt,"ms"):void 0,"--divkit-appearance-duration":ft?"".concat(vt,"ms"):void 0})},[Z,Q,tt,et,rt,dt,pt,o,ot,w,b,_,$,y,v,m,g,f,p,h,d,u,s,a,i,r,function(){0===rt&&n(4,rt=1)},function(){0===rt&&n(4,rt=no)},it,at,lt,st,ut,ht,ft,gt,mt,vt,yt,$t,c,l,x,E,C,A,V,D,P,j,S,N,F,I,M,T]}const io=class extends An{constructor(t){super(),Cn(this,t,ro,to,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},oo={grid:"divkit-d9080",grid_halign_left:"divkit-f63b3",grid_halign_center:"divkit-a14a6",grid_halign_right:"divkit-b0717",grid_valign_top:"divkit-fbca8",grid_valign_center:"divkit-d4310",grid_valign_bottom:"divkit-e4205"};function ao(t){return t>0&&t<1}function lo(t){return String(Math.ceil(1e3*t)/1e3)}function so(t,e,n){if(t.some(ao)){const e=Math.max(...t.filter(ao).map((t=>1/t)));t=t.map((t=>t*e))}let r=0,i=0;const o=[];if(t.every(Boolean)){i=t.reduce(((t,e)=>t+e),0);for(let o=0;o<n;++o){if(!e[o])continue;const n=e[o]/t[o]*i;n>r&&(r=n)}}for(let e=0;e<n;++e)r?o[e]="minmax(".concat(Un(r*t[e]/i),",").concat(lo(t[e]),"fr)"):t[e]?o[e]="".concat(lo(t[e]),"fr"):o[e]="auto";return o.join(" ")}function co(t,e,n){const r=t.slice();return r[29]=e[n],r}function uo(t){let e,n;return e=new Hr({props:{cls:or("grid",oo,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],$$slots:{default:[po]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=or("grid",oo,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),128&n[0]&&(r.style=t[7]),8&n[0]&&(r.layoutParams=t[3]),32&n[0]|2&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function ho(t){let e,n;return e=new Ol({props:{layoutParams:t[29].layoutParams,div:t[29].json,templateContext:t[29].templateContext,origJson:t[29].origJson}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.layoutParams=t[29].layoutParams),32&n[0]&&(r.div=t[29].json),32&n[0]&&(r.templateContext=t[29].templateContext),32&n[0]&&(r.origJson=t[29].origJson),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function po(t){let e,n,r=t[5],i=[];for(let e=0;e<r.length;e+=1)i[e]=ho(co(t,r,e));const o=t=>gn(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=we()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=we()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);ge(t,e,r),n=!0},p(t,n){if(32&n[0]){let a;for(r=t[5],a=0;a<r.length;a+=1){const o=co(t,r,a);i[a]?(i[a].p(o,n),fn(i[a],1)):(i[a]=ho(o),i[a].c(),fn(i[a],1),i[a].m(e.parentNode,e))}for(hn(),a=r.length;a<i.length;a+=1)o(a);pn()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)fn(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)gn(i[t]);n=!1},d(t){ve(i,t),t&&me(e)}}}function fo(t){let e,n,r=!t[6]&&uo(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){t[6]?r&&(hn(),gn(r,1,1,(()=>{r=null})),pn()):r?(r.p(t,n),64&n[0]&&fn(r,1)):(r=uo(t),r.c(),fn(r,1),r.m(e.parentNode,e))},i(t){n||(fn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function go(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g=Ot,m=Ot,v=Ot,y=Ot;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y()));let{json:$={}}=e,{templateContext:_}=e,{origJson:b}=e,{layoutParams:w}=e;const x=He(On);let k,E,C=!1,A=1,V=[],D=[],P=[],j=[],S=0,N=!1,F="top",I="left";return t.$$set=t=>{"json"in t&&n(0,$=t.json),"templateContext"in t&&n(1,_=t.templateContext),"origJson"in t&&n(2,b=t.origJson),"layoutParams"in t&&n(3,w=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(23,r=$.items),8388608&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(12,C=!1):(n(12,C=!0),x.logError(ct(new Error('Incorrect or empty "items" prop for div "grid"'))))),1&t.$$.dirty[0]&&(n(11,i=x.getDerivedFromVars($.column_count)),y(),y=Xt(i,(t=>n(27,f=t)))),134225920&t.$$.dirty[0]&&n(13,A=Gr(f,A)),8392706&t.$$.dirty[0]&&n(22,o=(!C&&r||[]).map((t=>{let e=t,n=_;return({templateContext:n,json:e}=x.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4194304&t.$$.dirty[0]){let t=[];o.forEach((e=>{t.push(x.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),n(4,k=Pn(t,(t=>[...t]))),v(),v=Xt(k,(t=>n(26,p=t)))}if(72081416&t.$$.dirty[0]){const t={};let e=0,r=0;n(14,V=[]),n(15,D=[]),n(16,P=[]),n(17,j=[]),n(19,N=!1),n(5,E=o.map(((i,o)=>{var a,l,s,c;const u=p[o],d=Number(u.columnSpan)||1,h=Number(u.rowSpan)||1,f={x:e,y:r,colSpan:d,rowSpan:h},g="match_parent"===(null===(a=u.width)||void 0===a?void 0:a.type)?Number(u.width.weight||1)/d:0,m="match_parent"===(null===(l=u.height)||void 0===l?void 0:l.type)?Number(u.height.weight||1)/h:0,v=1===d&&"fixed"===(null===(s=u.width)||void 0===s?void 0:s.type)&&u.width.value?Number(u.width.value)/d:0,y=1===h&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/h:0;for(let i=e;i<e+d;++i)for(let e=r;e<r+h;++e)t[i+"_"+e]?n(19,N=!0):(t[i+"_"+e]=!0,(!V[i]||V[i]<g)&&n(14,V[i]=g,V),(!D[e]||D[e]<m)&&n(15,D[e]=m,D),(!P[i]||P[i]<v)&&n(16,P[i]=v,P),(!j[e]||j[e]<y)&&n(17,j[e]=y,j));do{++e,e>=A&&(e=0,++r)}while(t[e+"_"+r]);return Object.assign(Object.assign({},i),{layoutParams:{gridArea:f,fakeElement:(null==w?void 0:w.fakeElement)||!1}})}))),0!==e&&n(19,N=!0),N&&x.logError(ct(new Error('Mismatching "grid" rows/columns'))),n(18,S=r)}1&t.$$.dirty[0]&&(n(10,a=x.getDerivedFromVars($.content_alignment_vertical)),m(),m=Xt(a,(t=>n(25,h=t)))),34603008&t.$$.dirty[0]&&n(20,F=ri(h,F)),1&t.$$.dirty[0]&&(n(9,l=x.getDerivedFromVars($.content_alignment_horizontal)),g(),g=Xt(l,(t=>n(24,d=t)))),18874368&t.$$.dirty[0]&&n(21,I=ni(d,I)),3145728&t.$$.dirty[0]&&n(8,s={valign:F,halign:I}),516096&t.$$.dirty[0]&&n(7,c={"grid-template-columns":so(V,P,A),"grid-template-rows":so(D,j,S)}),528384&t.$$.dirty[0]&&n(6,u=C||N)},[$,_,b,w,k,E,u,c,s,l,a,i,C,A,V,D,P,j,S,N,F,I,o,r,d,h,p,f]}const mo={gallery:"divkit-cbb0f",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5",gallery__scroller:"divkit-a4e39","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon":"divkit-d100d",gallery__arrow_left:"divkit-a0a5d",gallery__arrow_right:"divkit-f0f59","gallery__arrow-icon-path":"divkit-b4173"};function vo(t){const e=[];let n=t[0],r=1;for(let i=1;i<=t.length;i++)t[i]!==n?(e.push(r>1?"repeat(".concat(r,", ").concat(n,")"):n),n=t[i],r=1):r++;return e.join(" ")}function yo(t,e){let n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,i),n=null}),e)}}const{Boolean:$o}=yn;function _o(t,e,n){const r=t.slice();return r[72]=e[n],r[73]=e,r[74]=n,r}function bo(t,e,n){const r=t.slice();return r[75]=e[n],r}function wo(t){let e,n;return e=new Hr({props:{cls:or("gallery",mo,t[16]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",$$slots:{default:[Vo]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.cls=or("gallery",mo,t[16])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),335953872&n[0]|65536&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function xo(t){let e,n;return e=new Ol({props:{layoutParams:t[8],div:t[75].json,templateContext:t[75].templateContext,origJson:t[75].origJson}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),67108864&n[0]&&(r.div=t[75].json),67108864&n[0]&&(r.templateContext=t[75].templateContext),67108864&n[0]&&(r.origJson=t[75].origJson),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function ko(t){let e,n,r,i,o,a=t[74],l=t[72],s=[];for(let e=0;e<l.length;e+=1)s[e]=xo(bo(t,l,e));const c=t=>gn(s[t],1,1,(()=>{s[t]=null})),u=()=>t[60](e,a),d=()=>t[60](null,a);return{c(){e=ye("div");for(let t=0;t<s.length;t+=1)s[t].c();n=be(),this.h()},l(t){e=De(t,"DIV",{class:!0,style:!0});var r=Ce(e);for(let t=0;t<s.length;t+=1)s[t].l(r);n=Se(r),r.forEach(me),this.h()},h(){ke(e,"class",r=mo.gallery__items),ke(e,"style",i=Rn(t[17]))},m(t,r){ge(t,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);fe(e,n),u(),o=!0},p(r,h){if(t=r,67109120&h[0]){let r;for(l=t[72],r=0;r<l.length;r+=1){const i=bo(t,l,r);s[r]?(s[r].p(i,h),fn(s[r],1)):(s[r]=xo(i),s[r].c(),fn(s[r],1),s[r].m(e,n))}for(hn(),r=l.length;r<s.length;r+=1)c(r);pn()}(!o||131072&h[0]&&i!==(i=Rn(t[17])))&&ke(e,"style",i),a!==t[74]&&(d(),a=t[74],u())},i(t){if(!o){for(let t=0;t<l.length;t+=1)fn(s[t]);o=!0}},o(t){s=s.filter($o);for(let t=0;t<s.length;t+=1)gn(s[t]);o=!1},d(t){t&&me(e),ve(s,t),d()}}}function Eo(t){let e,n,r=t[12]&&t[9]&&Co(t),i=t[13]&&t[9]&&Ao(t);return{c(){r&&r.c(),e=be(),i&&i.c(),n=we()},l(t){r&&r.l(t),e=Se(t),i&&i.l(t),n=we()},m(t,o){r&&r.m(t,o),ge(t,e,o),i&&i.m(t,o),ge(t,n,o)},p(t,o){t[12]&&t[9]?r?r.p(t,o):(r=Co(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[13]&&t[9]?i?i.p(t,o):(i=Ao(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(t){r&&r.d(t),t&&me(e),i&&i.d(t),t&&me(n)}}}function Co(t){let e,n,r,i,o=!t[29]&&function(t){let e,n,r,i;return{c(){e=$e("svg"),n=$e("path"),this.h()},l(t){e=Pe(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Ce(e);n=Pe(r,"path",{class:!0,d:!0}),Ce(n).forEach(me),r.forEach(me),this.h()},h(){ke(n,"class",r=mo["gallery__arrow-icon-path"]),ke(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),ke(e,"class",i=mo["gallery__arrow-icon"]),ke(e,"xmlns","http://www.w3.org/2000/svg"),ke(e,"width","32"),ke(e,"height","32"),ke(e,"viewBox","0 0 32 32"),ke(e,"fill","none")},m(t,r){ge(t,e,r),fe(e,n)},p:Ot,d(t){t&&me(e)}}}();return{c(){e=ye("div"),o&&o.c(),this.h()},l(t){e=De(t,"DIV",{class:!0});var n=Ce(e);o&&o.l(n),n.forEach(me),this.h()},h(){ke(e,"class",n=t[29]||"".concat(mo.gallery__arrow," ").concat(mo.gallery__arrow_left))},m(n,a){ge(n,e,a),o&&o.m(e,null),r||(i=xe(e,"click",t[63]),r=!0)},p(t,e){t[29]||o.p(t,e)},d(t){t&&me(e),o&&o.d(),r=!1,i()}}}function Ao(t){let e,n,r,i,o=!t[30]&&function(t){let e,n,r,i;return{c(){e=$e("svg"),n=$e("path"),this.h()},l(t){e=Pe(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Ce(e);n=Pe(r,"path",{class:!0,d:!0}),Ce(n).forEach(me),r.forEach(me),this.h()},h(){ke(n,"class",r=mo["gallery__arrow-icon-path"]),ke(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),ke(e,"class",i=mo["gallery__arrow-icon"]),ke(e,"xmlns","http://www.w3.org/2000/svg"),ke(e,"width","32"),ke(e,"height","32"),ke(e,"viewBox","0 0 32 32"),ke(e,"fill","none")},m(t,r){ge(t,e,r),fe(e,n)},p:Ot,d(t){t&&me(e)}}}();return{c(){e=ye("div"),o&&o.c(),this.h()},l(t){e=De(t,"DIV",{class:!0});var n=Ce(e);o&&o.l(n),n.forEach(me),this.h()},h(){ke(e,"class",n=t[30]||"".concat(mo.gallery__arrow," ").concat(mo.gallery__arrow_right))},m(n,a){ge(n,e,a),o&&o.m(e,null),r||(i=xe(e,"click",t[64]),r=!0)},p(t,e){t[30]||o.p(t,e)},d(t){t&&me(e),o&&o.d(),r=!1,i()}}}function Vo(t){let e,n,r,i,o,a,l,s,c,u,d,h=t[26],p=[];for(let e=0;e<h.length;e+=1)p[e]=ko(_o(t,h,e));const f=t=>gn(p[t],1,1,(()=>{p[t]=null}));let g="horizontal"===t[6]&&Eo(t);return{c(){e=ye("div"),n=ye("div");for(let t=0;t<p.length;t+=1)p[t].c();l=be(),g&&g.c(),s=we(),this.h()},l(t){e=De(t,"DIV",{class:!0,style:!0});var r=Ce(e);n=De(r,"DIV",{class:!0,style:!0});var i=Ce(n);for(let t=0;t<p.length;t+=1)p[t].l(i);i.forEach(me),r.forEach(me),l=Se(t),g&&g.l(t),s=we(),this.h()},h(){ke(n,"class",r=mo["gallery__items-grid"]),ke(n,"style",i=Rn(t[18])),ke(e,"class",o=mo.gallery__scroller+" "+(t[28]?zn["root_restrict-scroll"]:"")),ke(e,"style",a=Rn(t[7]))},m(r,i){ge(r,e,i),fe(e,n);for(let t=0;t<p.length;t+=1)p[t]&&p[t].m(n,null);t[61](n),t[62](e),ge(r,l,i),g&&g.m(r,i),ge(r,s,i),c=!0,u||(d=xe(e,"scroll",(function(){Wt(t[9]?t[32]:null)&&(t[9]?t[32]:null).apply(this,arguments)})),u=!0)},p(r,l){if(t=r,67242240&l[0]){let e;for(h=t[26],e=0;e<h.length;e+=1){const r=_o(t,h,e);p[e]?(p[e].p(r,l),fn(p[e],1)):(p[e]=ko(r),p[e].c(),fn(p[e],1),p[e].m(n,null))}for(hn(),e=h.length;e<p.length;e+=1)f(e);pn()}(!c||262144&l[0]&&i!==(i=Rn(t[18])))&&ke(n,"style",i),(!c||268435456&l[0]&&o!==(o=mo.gallery__scroller+" "+(t[28]?zn["root_restrict-scroll"]:"")))&&ke(e,"class",o),(!c||128&l[0]&&a!==(a=Rn(t[7])))&&ke(e,"style",a),"horizontal"===t[6]?g?g.p(t,l):(g=Eo(t),g.c(),g.m(s.parentNode,s)):g&&(g.d(1),g=null)},i(t){if(!c){for(let t=0;t<h.length;t+=1)fn(p[t]);c=!0}},o(t){p=p.filter($o);for(let t=0;t<p.length;t+=1)gn(p[t]);c=!1},d(n){n&&me(e),ve(p,n),t[61](null),t[62](null),n&&me(l),g&&g.d(n),n&&me(s),u=!1,d()}}}function Do(t){let e,n,r,i,o=!t[5]&&wo(t);return{c(){o&&o.c(),e=we()},l(t){o&&o.l(t),e=we()},m(a,l){o&&o.m(a,l),ge(a,e,l),n=!0,r||(i=xe(window,"resize",(function(){Wt(t[9]?t[33]:null)&&(t[9]?t[33]:null).apply(this,arguments)})),r=!0)},p(n,r){(t=n)[5]?o&&(hn(),gn(o,1,1,(()=>{o=null})),pn()):o?(o.p(t,r),32&r[0]&&fn(o,1)):(o=wo(t),o.c(),fn(o,1),o.m(e.parentNode,e))},i(t){n||(fn(o),n=!0)},o(t){gn(o),n=!1},d(t){o&&o.d(t),t&&me(e),r=!1,i()}}}function Po(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j=Ot,S=Ot,N=Ot,F=Ot,I=Ot,M=Ot,T=Ot,z=Ot,O=Ot,J=Ot;t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>J()));let{json:B={}}=e,{templateContext:R}=e,{origJson:U}=e,{layoutParams:L}=e;const W=He(On);let H,q,G=[],K=!1,X=!1,Y=null,Z=!1;const Q=W.getCustomization("galleryLeftClass"),tt=W.getCustomization("galleryRightClass");let et=!1;const nt=W.isDesktop;Yt(t,nt,(t=>n(59,D=t)));let rt,it,ot,at,lt=1,st="horizontal",ut="start",dt=8,ht="",pt=[],ft={},gt=!1,mt={},vt=0;function yt(){if(!H)return;const t=H.scrollLeft,e=H.scrollWidth,r=H.offsetWidth;n(12,K=t>2),n(13,X=t+r<e-2)}const $t=yo(yt,50);function _t(t){H.scroll({left:H.scrollLeft+.75*H.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function bt(){let t=[],e=G[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<lt;++e){const r=G[e].children[n];r&&t.push(r)}return t}function wt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===st,i=r?"offsetLeft":"offsetTop",o=r?"left":"top";H.scroll({[o]:Math.max(0,t[e][i]+.01-dt/2),behavior:n})}function xt(t){const e=bt(),n=H.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===st?e.left>=t.left&&e.right<=t.right:e.top>=t.top&&e.bottom<=t.bottom}(n,t.getBoundingClientRect())));if(-1!==r)return r;const i=e.map((t=>function(t,e){return"horizontal"===st?e.right>t.left&&t.right>e.left:e.bottom>t.top&&t.bottom>e.top}(n,t.getBoundingClientRect()))),o=i.findIndex(Boolean);return-1!==o?"prev"===t&&2===i.filter(Boolean).length?o+1:o:"prev"===t?1:e.length-2}return!B.id||et||(null==L?void 0:L.fakeElement)||W.registerInstance(B.id,{setCurrentItem(t){const e=bt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');wt(e,t)},setPreviousItem(t){const e=xt("prev"),n=bt();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),wt(n,r)},setNextItem(t){const e="horizontal"===st?H.scrollLeft+H.offsetWidth===H.scrollWidth:H.scrollTop+H.offsetHeight===H.scrollHeight,n=bt();if(e&&"ring"===t)return void wt(n,0);const r=xt("next");let i=r+1;i>n.length-1&&(i="ring"===t?0:r),wt(n,i)}}),Ue((()=>{n(36,Z=!0),!et&&(yt(),vt)&&wt(bt(),vt,"auto")})),Le((()=>{n(36,Z=!1),B.id&&!(null==L?void 0:L.fakeElement)&&W.unregisterInstance(B.id)})),t.$$set=t=>{"json"in t&&n(0,B=t.json),"templateContext"in t&&n(1,R=t.templateContext),"origJson"in t&&n(2,U=t.origJson),"layoutParams"in t&&n(3,L=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(49,r=B.items),262144&t.$$.dirty[1]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(5,et=!1):(n(5,et=!0),W.logError(ct(new Error('Incorrect or empty "items" prop for div "gallery"'))))),34&t.$$.dirty[0]|262144&t.$$.dirty[1]&&n(48,i=(!et&&r||[]).map((t=>{let e=t,n=R;return({templateContext:n,json:e}=W.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),32&t.$$.dirty[0]|268435488&t.$$.dirty[1]&&n(9,o=D&&Z&&!et),528&t.$$.dirty[0]|16&t.$$.dirty[1]&&(o?"undefined"!=typeof ResizeObserver&&(n(35,Y=new ResizeObserver((()=>{$t()}))),Y.observe(q)):Y&&(Y.disconnect(),n(35,Y=null))),1&t.$$.dirty[0]&&(n(27,a=W.getDerivedFromVars(B.column_count)),O(),O=Xt(a,(t=>n(58,V=t)))),134217792&t.$$.dirty[1]&&n(37,lt=Gr(V,lt)),131136&t.$$.dirty[1]&&n(26,l=function(t,e){let n=0,r=[];for(let i=0;i<t.length;++i)r[n]||(r[n]=[]),r[n].push(t[i]),++n>=e&&(n=0);return r}(i,lt)),1&t.$$.dirty[0]&&(n(25,s=W.getDerivedFromVars(B.orientation)),z(),z=Xt(s,(t=>n(57,A=t)))),64&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&n(6,st=Ri(A,st)),1&t.$$.dirty[0]&&(n(24,c=W.getDerivedFromVars(B.cross_content_alignment)),T(),T=Xt(c,(t=>n(56,C=t)))),33554560&t.$$.dirty[1]&&n(38,ut=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(C,ut)),1&t.$$.dirty[0]&&(n(23,u=W.getDerivedFromVars(B.item_spacing)),M(),M=Xt(u,(t=>n(55,E=t)))),16777728&t.$$.dirty[1]&&(n(40,dt=hr(E,dt)),n(39,rt=Un(dt))),1&t.$$.dirty[0]&&(n(22,d=W.getDerivedFromVars(B.cross_spacing)),I(),I=Xt(d,(t=>n(54,k=t)))),8391168&t.$$.dirty[1]&&(n(42,ot=hr(k,dt)),n(41,it=Un(ot))),1&t.$$.dirty[0]&&(n(21,h=W.getDerivedFromVars(B.paddings)),F(),F=Xt(h,(t=>n(53,x=t)))),4198400&t.$$.dirty[1]&&n(43,ht=dr(x,ht)),64&t.$$.dirty[0]&&n(47,p="horizontal"===st?"grid-template-columns":"grid-template-rows"),64&t.$$.dirty[0]|131072&t.$$.dirty[1]){let t=[];i.forEach((e=>{const n="horizontal"===st?"width":"height";t.push(W.getDerivedFromVars(e.json[n]))})),n(14,at=Pn(t,(t=>t))),N(),N=Xt(at,(t=>n(52,w=t)))}if(64&t.$$.dirty[0]|2105408&t.$$.dirty[1]&&(n(44,pt=[]),lt>1?pt.push("auto"):w.forEach((t=>{!t&&"horizontal"===st||"match_parent"===(null==t?void 0:t.type)?pt.push("100%"):pt.push("max-content")}))),1&t.$$.dirty[0]&&(n(20,f=W.getDerivedFromVars(B.scroll_mode)),S(),S=Xt(f,(t=>n(51,b=t)))),456&t.$$.dirty[0]|1049280&t.$$.dirty[1]){const t={};let e={};n(45,gt=!1),(null==L?void 0:L.fakeElement)&&(e.fakeElement=!0),"horizontal"===st?e.parentVAlign=ut:e.parentHAlign=ut,"paging"===b&&(n(45,gt=!0),e.scrollSnap="start",t["horizontal"===st?"scroll-padding-left":"scroll-padding-top"]=Un(dt/2)),1===lt&&(e.parentLayoutOrientation=st),n(7,ft=gr(t,ft)),n(8,mt=gr(e,mt))}1&t.$$.dirty[0]&&(n(19,g=W.getDerivedFromVars(B.restrict_parent_scroll)),J(),J=Xt(g,(t=>n(28,P=t)))),5120&t.$$.dirty[1]&&n(18,m={padding:ht,"grid-gap":it}),73984&t.$$.dirty[1]&&n(17,v={"grid-gap":rt,[p]:vo(pt)}),64&t.$$.dirty[0]|16384&t.$$.dirty[1]&&n(16,y={orientation:st,"scroll-snap":gt}),1&t.$$.dirty[0]&&(n(15,$=W.getDerivedFromVars(B.default_item)),j(),j=Xt($,(t=>n(50,_=t)))),557056&t.$$.dirty[1]&&n(46,vt=hr(_,vt))},[B,R,U,L,q,et,st,ft,mt,o,H,G,K,X,at,$,y,v,m,g,f,h,d,u,c,s,l,a,P,Q,tt,nt,yt,$t,_t,Y,Z,lt,ut,rt,dt,it,ot,ht,pt,gt,vt,p,i,r,_,b,w,x,k,E,C,A,V,D,function(t,e){Ke[t?"unshift":"push"]((()=>{G[e]=t,n(11,G)}))},function(t){Ke[t?"unshift":"push"]((()=>{q=t,n(4,q)}))},function(t){Ke[t?"unshift":"push"]((()=>{H=t,n(10,H)}))},()=>_t("left"),()=>_t("right")]}const jo={tabs:"divkit-e0df5",tabs__list:"divkit-ea19b",tabs__item:"divkit-c25c7",tabs__item_selected:"divkit-d560a",tabs__item_actionable:"divkit-dfda0",tabs__panels:"divkit-f5dc0",tabs__swiper:"divkit-eb42c",tabs__swiper_animated:"divkit-b9f18",tabs__swiper_inited:"divkit-fa574",tabs__panel:"divkit-cc9fb",tabs__panel_visible:"divkit-e7306",tabs__separator:"divkit-b85bf"},So=37,No=39,Fo=36,Io=35,{Boolean:Mo}=yn;function To(t,e,n){const r=t.slice();r[88]=e[n];const i=r[88].index;return r[89]=i,r}function zo(t,e,n){const r=t.slice();r[88]=e[n];const i=r[88].index;r[89]=i;const o=r[89]===r[6];return r[92]=o,r}function Oo(t){let e,n;return e=new Hr({props:{cls:or("tabs",jo,t[46]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",$$slots:{default:[Wo]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),2147483626&n[0]|4137&n[1]|4&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Jo(t){let e,n,r=t[88].title+"";return{c(){e=_e(r),n=be()},l(t){e=je(t,r),n=Se(t)},m(t,r){ge(t,e,r),ge(t,n,r)},p(t,n){524288&n[0]&&r!==(r=t[88].title+"")&&Ne(e,r)},d(t){t&&me(e),t&&me(n)}}}function Bo(t){var e,n,r;let i,o;function a(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[64](t[89],...n)}return i=new Vr({props:{cls:or("tabs__item",jo,{selected:t[92],actionable:Boolean(t[88].title_click_action)}),actions:!t[88].title_click_action||null!==(e=t[3])&&void 0!==e&&e.fakeElement?[]:[t[88].title_click_action],attrs:{id:"".concat(t[44],"-tab-").concat(t[89]),"aria-controls":"".concat(t[44],"-panel-").concat(t[89]),role:"tab",tabindex:!t[92]||null!==(n=t[3])&&void 0!==n&&n.fakeElement?"-1":t[88].title_click_action?void 0:"0","aria-selected":t[92]?"true":"false"},customAction:null!==(r=t[3])&&void 0!==r&&r.fakeElement?null:a,$$slots:{default:[Jo]},$$scope:{ctx:t}}}),{c(){wn(i.$$.fragment)},l(t){xn(i.$$.fragment,t)},m(t,e){kn(i,t,e),o=!0},p(e,n){var r,o,l;t=e;const s={};524352&n[0]&&(s.cls=or("tabs__item",jo,{selected:t[92],actionable:Boolean(t[88].title_click_action)})),524296&n[0]&&(s.actions=!t[88].title_click_action||null!==(r=t[3])&&void 0!==r&&r.fakeElement?[]:[t[88].title_click_action]),524360&n[0]&&(s.attrs={id:"".concat(t[44],"-tab-").concat(t[89]),"aria-controls":"".concat(t[44],"-panel-").concat(t[89]),role:"tab",tabindex:!t[92]||null!==(o=t[3])&&void 0!==o&&o.fakeElement?"-1":t[88].title_click_action?void 0:"0","aria-selected":t[92]?"true":"false"}),524296&n[0]&&(s.customAction=null!==(l=t[3])&&void 0!==l&&l.fakeElement?null:a),524288&n[0]|4&n[3]&&(s.$$scope={dirty:n,ctx:t}),i.$set(s)},i(t){o||(fn(i.$$.fragment,t),o=!0)},o(t){gn(i.$$.fragment,t),o=!1},d(t){En(i,t)}}}function Ro(t){let e,n,r;return{c(){e=ye("div"),this.h()},l(t){e=De(t,"DIV",{class:!0,style:!0}),Ce(e).forEach(me),this.h()},h(){ke(e,"class",n=jo.tabs__separator),ke(e,"style",r=Rn(t[36]))},m(t,n){ge(t,e,n)},p(t,n){32&n[1]&&r!==(r=Rn(t[36]))&&ke(e,"style",r)},d(t){t&&me(e)}}}function Uo(t){let e,n;return e=new Ol({props:{div:t[18][t[89]].div,templateContext:t[1],layoutParams:t[5]}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};786432&n[0]&&(r.div=t[18][t[89]].div),2&n[0]&&(r.templateContext=t[1]),32&n[0]&&(r.layoutParams=t[5]),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Lo(t){let e,n,r,i,o,a,l=t[30][t[89]]&&Uo(t);return{c(){e=ye("div"),l&&l.c(),n=be(),this.h()},l(t){e=De(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=Ce(e);l&&l.l(r),n=Se(r),r.forEach(me),this.h()},h(){ke(e,"class",r=or("tabs__panel",jo,{visible:t[31][t[89]]})),ke(e,"role","tabpanel"),ke(e,"id",i=t[44]+"-panel-"+t[89]),ke(e,"aria-labelledby",o=t[44]+"-tab-"+t[89]),Fe(e,"left",100*t[89]+"%")},m(t,r){ge(t,e,r),l&&l.m(e,null),fe(e,n),a=!0},p(t,s){t[30][t[89]]?l?(l.p(t,s),1074266112&s[0]&&fn(l,1)):(l=Uo(t),l.c(),fn(l,1),l.m(e,n)):l&&(hn(),gn(l,1,1,(()=>{l=null})),pn()),(!a||524288&s[0]|1&s[1]&&r!==(r=or("tabs__panel",jo,{visible:t[31][t[89]]})))&&ke(e,"class",r),(!a||524288&s[0]&&i!==(i=t[44]+"-panel-"+t[89]))&&ke(e,"id",i),(!a||524288&s[0]&&o!==(o=t[44]+"-tab-"+t[89]))&&ke(e,"aria-labelledby",o),(!a||524288&s[0])&&Fe(e,"left",100*t[89]+"%")},i(t){a||(fn(l),a=!0)},o(t){gn(l),a=!1},d(t){t&&me(e),l&&l.d()}}}function Wo(t){let e,n,r,i,o,a,l,s,c,u,d,h=t[19],p=[];for(let e=0;e<h.length;e+=1)p[e]=Bo(zo(t,h,e));const f=t=>gn(p[t],1,1,(()=>{p[t]=null}));let g=t[20]&&Ro(t),m=t[19],v=[];for(let e=0;e<m.length;e+=1)v[e]=Lo(To(t,m,e));const y=t=>gn(v[t],1,1,(()=>{v[t]=null}));return{c(){e=ye("div");for(let t=0;t<p.length;t+=1)p[t].c();r=be(),g&&g.c(),i=be(),o=ye("div"),a=ye("div");for(let t=0;t<v.length;t+=1)v[t].c();this.h()},l(t){e=De(t,"DIV",{class:!0,role:!0});var n=Ce(e);for(let t=0;t<p.length;t+=1)p[t].l(n);n.forEach(me),r=Se(t),g&&g.l(t),i=Se(t),o=De(t,"DIV",{class:!0});var l=Ce(o);a=De(l,"DIV",{class:!0});var s=Ce(a);for(let t=0;t<v.length;t+=1)v[t].l(s);s.forEach(me),l.forEach(me),this.h()},h(){ke(e,"class",n=jo.tabs__list+" "+(t[43]?zn["root_restrict-scroll"]:"")),ke(e,"role","tablist"),Fe(e,"--divkit-tabs-title-padding",t[17]?sr(t[17]):""),Fe(e,"--divkit-tabs-font-size",Un(t[7])),Fe(e,"--divkit-tabs-paddings",t[8]),Fe(e,"--divkit-tabs-line-height",t[24]),Fe(e,"--divkit-tabs-letter-spacing",t[25]),Fe(e,"--divkit-tabs-active-font-weight",t[10]||""),Fe(e,"--divkit-tabs-inactive-font-weight",t[11]||""),Fe(e,"--divkit-tabs-active-font-family",t[26]||""),Fe(e,"--divkit-tabs-inactive-font-family",t[27]||""),Fe(e,"--divkit-tabs-active-text-color",t[12]),Fe(e,"--divkit-tabs-inactive-text-color",t[13]),Fe(e,"--divkit-tabs-active-background-color",t[14]),Fe(e,"--divkit-tabs-inactive-background-color",t[15]),Fe(e,"--divkit-tabs-border-radius",t[9]),Fe(e,"--divkit-tabs-items-spacing",t[16]?Ln(t[16]):""),ke(a,"class",l=or("tabs__swiper",jo,{inited:t[28],animated:t[29]})),ke(o,"class",s=jo.tabs__panels+" "+(t[43]?zn["root_restrict-scroll"]:""))},m(n,l){ge(n,e,l);for(let t=0;t<p.length;t+=1)p[t]&&p[t].m(e,null);t[65](e),ge(n,r,l),g&&g.m(n,l),ge(n,i,l),ge(n,o,l),fe(o,a);for(let t=0;t<v.length;t+=1)v[t]&&v[t].m(a,null);t[66](a),t[67](o),c=!0,u||(d=[xe(e,"keydown",t[48]),xe(a,"touchstart",(function(){Wt(t[34]?t[49]:void 0)&&(t[34]?t[49]:void 0).apply(this,arguments)})),xe(a,"touchmove",(function(){Wt(t[34]?t[50]:void 0)&&(t[34]?t[50]:void 0).apply(this,arguments)})),xe(a,"touchend",(function(){Wt(t[34]?t[51]:void 0)&&(t[34]?t[51]:void 0).apply(this,arguments)})),xe(a,"touchcancel",(function(){Wt(t[34]?t[51]:void 0)&&(t[34]?t[51]:void 0).apply(this,arguments)}))],u=!0)},p(r,u){if(t=r,524360&u[0]|73728&u[1]){let n;for(h=t[19],n=0;n<h.length;n+=1){const r=zo(t,h,n);p[n]?(p[n].p(r,u),fn(p[n],1)):(p[n]=Bo(r),p[n].c(),fn(p[n],1),p[n].m(e,null))}for(hn(),n=h.length;n<p.length;n+=1)f(n);pn()}if((!c||4096&u[1]&&n!==(n=jo.tabs__list+" "+(t[43]?zn["root_restrict-scroll"]:"")))&&ke(e,"class",n),131072&u[0]&&Fe(e,"--divkit-tabs-title-padding",t[17]?sr(t[17]):""),128&u[0]&&Fe(e,"--divkit-tabs-font-size",Un(t[7])),256&u[0]&&Fe(e,"--divkit-tabs-paddings",t[8]),16777216&u[0]&&Fe(e,"--divkit-tabs-line-height",t[24]),33554432&u[0]&&Fe(e,"--divkit-tabs-letter-spacing",t[25]),1024&u[0]&&Fe(e,"--divkit-tabs-active-font-weight",t[10]||""),2048&u[0]&&Fe(e,"--divkit-tabs-inactive-font-weight",t[11]||""),67108864&u[0]&&Fe(e,"--divkit-tabs-active-font-family",t[26]||""),134217728&u[0]&&Fe(e,"--divkit-tabs-inactive-font-family",t[27]||""),4096&u[0]&&Fe(e,"--divkit-tabs-active-text-color",t[12]),8192&u[0]&&Fe(e,"--divkit-tabs-inactive-text-color",t[13]),16384&u[0]&&Fe(e,"--divkit-tabs-active-background-color",t[14]),32768&u[0]&&Fe(e,"--divkit-tabs-inactive-background-color",t[15]),512&u[0]&&Fe(e,"--divkit-tabs-border-radius",t[9]),65536&u[0]&&Fe(e,"--divkit-tabs-items-spacing",t[16]?Ln(t[16]):""),t[20]?g?g.p(t,u):(g=Ro(t),g.c(),g.m(i.parentNode,i)):g&&(g.d(1),g=null),1074528290&u[0]|8193&u[1]){let e;for(m=t[19],e=0;e<m.length;e+=1){const n=To(t,m,e);v[e]?(v[e].p(n,u),fn(v[e],1)):(v[e]=Lo(n),v[e].c(),fn(v[e],1),v[e].m(a,null))}for(hn(),e=m.length;e<v.length;e+=1)y(e);pn()}(!c||805306368&u[0]&&l!==(l=or("tabs__swiper",jo,{inited:t[28],animated:t[29]})))&&ke(a,"class",l),(!c||4096&u[1]&&s!==(s=jo.tabs__panels+" "+(t[43]?zn["root_restrict-scroll"]:"")))&&ke(o,"class",s)},i(t){if(!c){for(let t=0;t<h.length;t+=1)fn(p[t]);for(let t=0;t<m.length;t+=1)fn(v[t]);c=!0}},o(t){p=p.filter(Mo);for(let t=0;t<p.length;t+=1)gn(p[t]);v=v.filter(Mo);for(let t=0;t<v.length;t+=1)gn(v[t]);c=!1},d(n){n&&me(e),ve(p,n),t[65](null),n&&me(r),g&&g.d(n),n&&me(i),n&&me(o),ve(v,n),t[66](null),t[67](null),u=!1,Lt(d)}}}function Ho(t){let e,n,r=!t[4]&&Oo(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){t[4]?r&&(hn(),gn(r,1,1,(()=>{r=null})),pn()):r?(r.p(t,n),16&n[0]&&fn(r,1)):(r=Oo(t),r.c(),fn(r,1),r.m(e.parentNode,e))},i(t){n||(fn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function qo(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,E,C,A=Ot,V=Ot,D=Ot,P=Ot,j=Ot,S=Ot,N=Ot,F=Ot,I=Ot;var M,T;t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>I()));let{json:z={}}=e,{templateContext:O}=e,{origJson:J}=e,{layoutParams:B}=e;const R=He(On),U=R.genId("tabs");let L=!1,W=Dn([]);Yt(t,W,(t=>n(19,m=t)));let H,q,G,K={};const X=R.getJsonWithVars(z.selected_tab);let Y,Z,Q=X&&Number(X)||0,tt=12,et="",nt="",rt="",it="",ot="",at="",lt="",st="",ut="",dt="",ht=0,pt="",ft="",gt=null,mt=!1,vt=!1,yt=Q,$t=[],_t=[];async function bt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(yt=Q,n(6,Q=t),Vt(),n(29,vt=!0),kt(100*-Q),Et(),async function(){await en();const t=document.getElementById("".concat(U,"-panel-").concat(Q));t&&n(22,q.style.height=Un(t.offsetHeight),q)}(),At(),jt=-Q*q.clientWidth,e){await en();const t=H.querySelector(".".concat(jo.tabs__item_selected));t&&t.focus()}}function wt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==m?void 0:m.length;if(!n)return;const r=m.map((t=>t.index));let i=r.indexOf(Q)+t;i>=n?i=0:i<0&&(i=n-1),bt(r[i],e)}function xt(t,e){return Q===e||(bt(e),!1)}async function kt(t){await en(),n(23,G.style.transform="translate3d(".concat(t,"%,0,0)"),G)}function Et(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,Q-1):Math.min(Q,yt),i=t?Math.min(r.length-1,Q+1):Math.max(Q,yt);n(30,$t=$t.map(((t,n)=>t||n>=e&&n<=i))),n(31,_t=_t.map(((t,n)=>n>=e&&n<=i)))}let Ct=null;function At(){Ct&&clearTimeout(Ct),Ct=window.setTimeout((()=>{n(31,_t=r.map(((t,e)=>e===Q)))}),400)}function Vt(){mt||(n(28,mt=!0),n(22,q.style.height=Un(q.clientHeight),q),n(23,G.style.transform="translate3d(".concat(100*-yt,"%,0,0)"),G))}let Dt,Pt,jt,St=null,Nt=null,Ft=!1,It=!1;return!z.id||L||(null==B?void 0:B.fakeElement)||R.registerInstance(z.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');bt(t)},setPreviousItem(t){let e=Q-1;e<0&&(e="ring"===t?r.length-1:Q),bt(e)},setNextItem(t){let e=Q+1;e>r.length-1&&(e="ring"===t?0:Q),bt(e)}}),Le((()=>{z.id&&!(null==B?void 0:B.fakeElement)&&R.unregisterInstance(z.id)})),t.$$set=t=>{"json"in t&&n(0,z=t.json),"templateContext"in t&&n(1,O=t.templateContext),"origJson"in t&&n(2,J=t.origJson),"layoutParams"in t&&n(3,B=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(18,r=z.items||[]),262144&t.$$.dirty[0])if(Array.isArray(r)&&r.length){let t=[];r.forEach(((e,n)=>{const r=R.getJsonWithVars({index:n,title:e.title,title_click_action:e.title_click_action});r.title&&"string"==typeof r.title?t.push(r):R.logError(ct(new Error("Incorrect title for the tab"),{additional:{index:n}}))})),W.set(t)}else W.set([]);if(524288&t.$$.dirty[0]&&((null==m?void 0:m.length)?n(4,L=!1):(n(4,L=!0),R.logError(ct(new Error('Incorrect or empty "items" prop for div "tabs"'))))),1&t.$$.dirty[0]&&(n(42,i=R.getDerivedFromVars(z.width)),F(),F=Xt(i,(t=>n(63,E=t)))),1&t.$$.dirty[0]&&(n(41,o=R.getDerivedFromVars(z.height)),N(),N=Xt(o,(t=>n(62,x=t)))),40&t.$$.dirty[0]|3&t.$$.dirty[2]){let t={};(null==B?void 0:B.fakeElement)&&(t.fakeElement=!0),"wrap_content"===(null==E?void 0:E.type)&&(t.parentHorizontalWrapContent=!0),x&&"wrap_content"!==x.type||(t.parentVerticalWrapContent=!0),n(5,K=gr(t,K))}if(262225&t.$$.dirty[0]&&!L&&(Q<0||Q>=r.length)&&(R.logError(ct(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:z.selected_tab,length:r.length}})),n(6,Q=Q<0?0:r.length-1)),524369&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&(L||m.some((t=>Q===t.index))||(R.logError(ct(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:z.selected_tab}})),n(6,Q=(null===n(52,M=m[0])||void 0===M?void 0:M.index)||0))),1&t.$$.dirty[0]&&(n(40,a=R.getDerivedFromVars(z.tab_title_style)),S(),S=Xt(a,(t=>n(61,w=t)))),1073741824&t.$$.dirty[1]&&n(56,l=w||{}),128&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(7,tt=Gr(l.font_size,tt)),384&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(l.font_size||l.paddings)){const t=l.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/tt*10,right:(Number(t.right)||0)/tt*10,bottom:(Number(t.bottom)||0)/tt*10,left:(Number(t.left)||0)/tt*10};n(8,et=dr(e,et))}if(128&t.$$.dirty[0]|33554432&t.$$.dirty[1]){const t=l.line_height;void 0!==t&&Pr(t)&&n(24,nt=Un(t/tt*10))}if(128&t.$$.dirty[0]|33554432&t.$$.dirty[1]){const t=l.letter_spacing;void 0!==t&&ur(t)&&n(25,rt=Un(t/tt*10))}if(640&t.$$.dirty[0]|37748736&t.$$.dirty[1]&&(l.corner_radius||l.corners_radius||l.font_size)){const t=null!==n(53,T=l.corner_radius)&&void 0!==T?T:1e3;l.corners_radius?n(9,it=function(t,e,n,r){const i=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<i.length;++t)if(i[t]&&!ur(i[t]))return r;return _r(t,e,n)}(l.corners_radius,t,tt,it)):ur(t)&&n(9,it=Un(t/tt*10))}1024&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(n(10,Y=Xr(l.active_font_weight||l.font_weight,Y)),l.font_family&&"string"==typeof l.font_family?n(26,ot=R.typefaceProvider(l.font_family,{fontWeight:Y||400})):n(26,ot="")),2048&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(n(11,Z=Xr(l.inactive_font_weight||l.font_weight,Z)),l.font_family&&"string"==typeof l.font_family?n(27,at=R.typefaceProvider(l.font_family,{fontWeight:Z||400})):n(27,at="")),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(12,lt=k(l.active_text_color,1,lt)),8192&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(13,st=k(l.inactive_text_color,1,st)),16384&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(14,ut=k(l.active_background_color,1,ut)),32768&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(15,dt=k(l.inactive_background_color,1,dt)),65536&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(16,ht=hr(l.item_spacing,ht)),1&t.$$.dirty[0]&&(n(39,s=R.getDerivedFromVars(z.has_separator)),j(),j=Xt(s,(t=>n(20,b=t)))),1&t.$$.dirty[0]&&(n(38,c=R.getDerivedFromVars(z.separator_color)),P(),P=Xt(c,(t=>n(60,_=t)))),1&t.$$.dirty[0]&&(n(37,u=R.getDerivedFromVars(z.separator_paddings)),D(),D=Xt(u,(t=>n(59,$=t)))),1048576&t.$$.dirty[0]|830472192&t.$$.dirty[1]&&b&&(_&&n(54,pt=k(_,1,pt)),$&&n(55,ft=dr($,ft))),25165824&t.$$.dirty[1]&&n(36,d={background:pt,margin:ft}),1&t.$$.dirty[0]&&(n(35,h=R.getDerivedFromVars(z.switch_tabs_by_content_swipe_enabled)),V(),V=Xt(h,(t=>n(58,y=t)))),134217728&t.$$.dirty[1]&&n(34,p=void 0===y||Boolean(y)),1&t.$$.dirty[0]&&(n(33,f=R.getDerivedFromVars(z.restrict_parent_scroll)),I(),I=Xt(f,(t=>n(43,C=t)))),1&t.$$.dirty[0]&&(n(32,g=R.getDerivedFromVars(z.title_paddings)),A(),A=Xt(g,(t=>n(57,v=t)))),131072&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&n(17,gt=$r(v||void 0,gt)),262144&t.$$.dirty[0]&&(L||(n(30,$t=r.map(((t,e)=>e===Q))),n(31,_t=r.map(((t,e)=>e===Q)))))},[z,O,J,B,L,K,Q,tt,et,it,Y,Z,lt,st,ut,dt,ht,gt,r,m,b,H,q,G,nt,rt,ot,at,mt,vt,$t,_t,g,f,p,h,d,u,c,s,a,o,i,C,U,W,{},xt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&r){if(t.which===So)wt(-1,!0);else if(t.which===No)wt(1,!0);else if(t.which===Fo)bt(0,!0);else{if(t.which!==Io)return;bt(r.length-1,!0)}t.preventDefault()}},function(t){var e;const i=t.target,o=null===(e=null==i?void 0:i.closest)||void 0===e?void 0:e.call(i,".".concat(zn["root_restrict-scroll"]));r.length<2||t.touches.length>1||o&&o!==q||(Ft=!1,It=!1,St=xr(t),Nt=null,Dt=Date.now(),Pt=jt||-Q*q.clientWidth,n(29,vt=!1),Ct&&clearTimeout(Ct))},function(t){const e=xr(t);if(!St||Nt&&Nt.x===e.x&&Nt.y===e.y)return;Nt=e;const n=q.clientWidth;if(Ft){jt=e.x-St.x+Pt;const t=n*r.length;if(jt>0)jt=jt*n/(jt+3*n);else if(-jt+n>t){let e=-jt+n-t;e=e*n/(e+3*n),jt=n-t-e}kt(100*jt/n)}else Math.abs(e.y-St.y)>10?It=!0:!It&&Math.abs(e.x-St.x)>8&&(Vt(),Ft=!0,St=e,kt(100*-Q),Et(!0));Ft&&t.cancelable&&t.preventDefault()},function(){It=!1,St=null;let t=Q;if(!Ft)return;Ft=!1;const e=Math.min(512,q.clientWidth);Math.abs(Pt-jt)>e/4*Math.min(1,(Date.now()-Dt)/750)&&(t+=Pt>jt?1:-1),t>=r.length?t=r.length-1:t<0&&(t=0),t===Q?(jt=-t*e,kt(100*-t),At()):bt(t)},M,T,pt,ft,l,v,y,$,_,w,x,E,(t,e)=>xt(0,t),function(t){Ke[t?"unshift":"push"]((()=>{H=t,n(21,H)}))},function(t){Ke[t?"unshift":"push"]((()=>{G=t,n(23,G)}))},function(t){Ke[t?"unshift":"push"]((()=>{q=t,n(22,q)}))}]}const Go={state:"divkit-b8efc",state__animations:"divkit-adaae","state__animation-child":"divkit-eb860","state__animation-child-inner":"divkit-e08c6"};function Ko(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function Xo(t){return t*t*t}function Yo(t){const e=t-1;return e*e*e+1}function Zo(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,r=Math.floor(n),i=n-r;return t[r]*i+t[r+1]*(1-i)}}const Qo=Zo([.0021,.0045,.0071,.01,.0131,.0165,.0202,.0242,.0284,.033,.0378,.0429,.0483,.054,.0601,.0664,.0731,.08,.0872,.0948,.1026,.1108,.1192,.1279,.1369,.1461,.1556,.1653,.1753,.1855,.1958,.2064,.2171,.2279,.2389,.25,.2612,.2725,.2839,.2952,.3067,.3181,.3295,.341,.3524,.3637,.375,.3863,.3974,.4085,.4195,.4304,.4412,.4519,.4624,.4729,.4832,.4934,.5034,.5133,.5231,.5327,.5422,.5516,.5608,.5699,.5788,.5876,.5963,.6048,.6132,.6214,.6295,.6375,.6453,.653,.6606,.668,.6754,.6825,.6896,.6965,.7034,.7101,.7166,.7231,.7295,.7357,.7418,.7479,.7538,.7596,.7653,.7709,.7764,.7818,.7871,.7923,.7974,.8024,.8073,.8122,.8169,.8216,.8261,.8306,.835,.8394,.8436,.8478,.8518,.8558,.8598,.8636,.8674,.8711,.8747,.8783,.8818,.8852,.8886,.8919,.8951,.8983,.9014,.9044,.9074,.9103,.9131,.9159,.9187,.9213,.924,.9265,.929,.9315,.9339,.9362,.9385,.9408,.943,.9451,.9472,.9492,.9512,.9532,.9551,.9569,.9587,.9605,.9622,.9638,.9655,.967,.9686,.9701,.9715,.9729,.9743,.9756,.9769,.9782,.9794,.9805,.9817,.9828,.9838,.9848,.9858,.9868,.9877,.9886,.9894,.9902,.991,.9917,.9924,.9931,.9937,.9943,.9949,.9954,.9959,.9964,.9969,.9973,.9977,.998,.9983,.9986,.9989,.9991,.9993,.9995,.9997,.9998,.9999,.9999,1,1]),ta=Zo([5e-4,.002,.0045,.0078,.0119,.0168,.0224,.0286,.0355,.0429,.0508,.0592,.0681,.0774,.087,.0969,.1072,.1177,.1285,.1395,.1507,.1621,.1736,.1853,.197,.2089,.2208,.2328,.2448,.2569,.2689,.281,.293,.305,.317,.3289,.3408,.3526,.3644,.376,.3876,.3991,.4105,.4218,.433,.444,.455,.4658,.4765,.4871,.4975,.5078,.518,.528,.5379,.5477,.5573,.5668,.5761,.5853,.5944,.6033,.612,.6206,.6291,.6374,.6456,.6537,.6616,.6693,.677,.6845,.6918,.699,.7061,.713,.7199,.7265,.7331,.7395,.7458,.752,.758,.764,.7698,.7755,.781,.7865,.7918,.7971,.8022,.8072,.8121,.8169,.8216,.8262,.8307,.8351,.8394,.8436,.8477,.8517,.8557,.8595,.8633,.8669,.8705,.874,.8775,.8808,.8841,.8873,.8904,.8934,.8964,.8993,.9022,.9049,.9076,.9103,.9129,.9154,.9178,.9202,.9226,.9249,.9271,.9293,.9314,.9335,.9355,.9375,.9394,.9413,.9431,.9449,.9466,.9483,.95,.9516,.9532,.9547,.9562,.9576,.9591,.9605,.9618,.9631,.9644,.9657,.9669,.9681,.9692,.9703,.9714,.9725,.9736,.9746,.9756,.9765,.9775,.9784,.9793,.9802,.981,.9818,.9826,.9834,.9842,.9849,.9856,.9863,.987,.9877,.9883,.989,.9896,.9902,.9908,.9913,.9919,.9924,.993,.9935,.994,.9944,.9949,.9954,.9958,.9963,.9967,.9971,.9975,.9979,.9983,.9986,.999,.9993,.9997,1]),ea={linear:Jt,ease:Qo,ease_in:Xo,ease_out:Yo,ease_in_out:Ko,spring:ta},na=200,ra=0,ia=0,oa=0;function aa(t){return Math.max(...t.map((t=>(Number(t.duration)||na)+(Number(t.start_delay)||ra))))}function la(t,e){let{transitions:n,elementBbox:r,rootBbox:i,direction:o,maxDuration:a,alpha:l}=e;const s=null!=l?l:1;return{duration:a,css:t=>{const e=t*a,l=n.map((t=>{const n=Number(t.start_delay)||ra,a=Number(t.duration)||na,l=Math.max(0,Math.min(1,(e-n)/a)),c="in"===o?1-l:l,u=(ea[t.interpolator||"ease_in_out"]||Ko)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*s+u*(t.alpha||ia)};if("slide"===t.type){var d;const e="top"===t.edge||"left"===t.edge?-1:1,n="top"!==t.edge&&"bottom"!==t.edge&&t.edge?"translateX":"translateY";let o=null===(d=t.distance)||void 0===d?void 0:d.value;void 0===o&&(o="top"!==t.edge&&"bottom"!==t.edge&&t.edge?Math.abs(i["left"===t.edge?"left":"right"]-r["left"===t.edge?"right":"left"]):Math.abs(i["bottom"===t.edge?"bottom":"top"]-r["bottom"===t.edge?"top":"bottom"]));const a=o*u;return{active:u>0&&u<1,translate:"".concat(n,"(").concat(a*e,"px)")}}if("scale"===t.type){var h,p;const e=1-u+u*(t.scale||oa),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,i=null!==(p=t.pivot_y)&&void 0!==p?p:.5,o=(1-e)*r.width*n,a=(1-e)*r.height*i;return{active:u>0&&u<1,scale:"translate(".concat(o,"px, ").concat(a,"px) scale(").concat(e,")")}}return{}})),c=l.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),u=l.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),d=l.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),h=l.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),p=[u,h.length?h[h.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(p||"none",";opacity:").concat(c)}}}function sa(t,e,n){return t*(1-n)+e*n}const ca={linear:Jt,ease:Qo,ease_in:Xo,ease_out:Yo,ease_in_out:Ko,spring:ta},ua=200,da=0;function ha(t,e){var n,r;let{rootBbox:i,beforeBbox:o,afterBbox:a,transition:l}=e;return{delay:null!==(n=l.start_delay)&&void 0!==n?n:da,duration:null!==(r=l.duration)&&void 0!==r?r:ua,easing:l.interpolator&&l.interpolator in ca?ca[l.interpolator]:Ko,css:t=>["top:".concat(sa(o.top,a.top,t)-i.top,"px"),"left:".concat(sa(o.left,a.left,t)-i.left,"px"),"width:".concat(sa(o.width,a.width,t),"px"),"height:".concat(sa(o.height,a.height,t),"px")].join(";")}}function pa(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...pa(t))})):e.push(t),e}const{Map:fa}=yn;function ga(t,e,n){const r=t.slice();return r[27]=e[n],r}function ma(t){let e,n;return e=new Hr({props:{cls:Go.state,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[wa]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.json=t[0]),4&n&&(r.origJson=t[2]),2&n&&(r.templateContext=t[1]),8&n&&(r.layoutParams=t[3]),1073742034&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function va(t){let e,n,r=t[7],i=ya(t);return{c(){i.c(),e=we()},l(t){i.l(t),e=we()},m(t,r){i.m(t,r),ge(t,e,r),n=!0},p(t,n){128&n&&Gt(r,r=t[7])?(hn(),gn(i,1,1,Ot),pn(),i=ya(t),i.c(),fn(i,1),i.m(e.parentNode,e)):i.p(t,n)},i(t){n||(fn(i),n=!0)},o(t){gn(i),n=!1},d(t){t&&me(e),i.d(t)}}}function ya(t){let e,n;return e=new Ol({props:{div:t[7].div,templateContext:t[1]}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};128&n&&(r.div=t[7].div),2&n&&(r.templateContext=t[1]),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function $a(t){let e,n,r,i,o,a,l,s,c,u;function d(){return t[11](t[27])}return r=new Ol({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=ye("div"),n=ye("div"),wn(r.$$.fragment),o=be(),this.h()},l(t){e=De(t,"DIV",{class:!0});var i=Ce(e);n=De(i,"DIV",{class:!0});var a=Ce(n);xn(r.$$.fragment,a),a.forEach(me),o=Se(i),i.forEach(me),this.h()},h(){ke(n,"class",i=Go["state__animation-child-inner"]),ke(e,"class",a=Go["state__animation-child"])},m(t,i){ge(t,e,i),fe(e,n),kn(r,n,null),fe(e,o),s=!0,c||(u=xe(e,"introend",d),c=!0)},p(e,n){t=e;const i={};64&n&&(i.div=t[27].json),64&n&&(i.templateContext=t[27].templateContext),r.$set(i)},i(n){s||(fn(r.$$.fragment,n),l||nn((()=>{l=vn(e,ha,t[27]),l.start()})),s=!0)},o(t){gn(r.$$.fragment,t),s=!1},d(t){t&&me(e),En(r),c=!1,u()}}}function _a(t){let e,n,r,i,o,a,l,s,c,u;function d(){return t[10](t[27])}return r=new Ol({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=ye("div"),n=ye("div"),wn(r.$$.fragment),o=be(),this.h()},l(t){e=De(t,"DIV",{class:!0,style:!0});var i=Ce(e);n=De(i,"DIV",{class:!0});var a=Ce(n);xn(r.$$.fragment,a),a.forEach(me),o=Se(i),i.forEach(me),this.h()},h(){ke(n,"class",i=Go["state__animation-child-inner"]),ke(e,"class",a=Go["state__animation-child"]),Fe(e,"left",t[27].offsetLeft+"px"),Fe(e,"top",t[27].offsetTop+"px"),Fe(e,"width",t[27].width+"px"),Fe(e,"height",t[27].height+"px")},m(t,i){ge(t,e,i),fe(e,n),kn(r,n,null),fe(e,o),s=!0,c||(u=xe(e,"introend",d),c=!0)},p(n,i){t=n;const o={};64&i&&(o.div=t[27].json),64&i&&(o.templateContext=t[27].templateContext),r.$set(o),(!s||64&i)&&Fe(e,"left",t[27].offsetLeft+"px"),(!s||64&i)&&Fe(e,"top",t[27].offsetTop+"px"),(!s||64&i)&&Fe(e,"width",t[27].width+"px"),(!s||64&i)&&Fe(e,"height",t[27].height+"px")},i(n){s||(fn(r.$$.fragment,n),l||nn((()=>{l=vn(e,la,t[27]),l.start()})),s=!0)},o(t){gn(r.$$.fragment,t),s=!1},d(t){t&&me(e),En(r),c=!1,u()}}}function ba(t,e){let n,r,i,o,a;const l=[_a,$a],s=[];function c(t,e){return"direction"in t[27]?0:1}return r=c(e),i=s[r]=l[r](e),{key:t,first:null,c(){n=we(),i.c(),o=we(),this.h()},l(t){n=we(),i.l(t),o=we(),this.h()},h(){this.first=n},m(t,e){ge(t,n,e),s[r].m(t,e),ge(t,o,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?s[r].p(e,n):(hn(),gn(s[a],1,1,(()=>{s[a]=null})),pn(),i=s[r],i?i.p(e,n):(i=s[r]=l[r](e),i.c()),fn(i,1),i.m(o.parentNode,o))},i(t){a||(fn(i),a=!0)},o(t){gn(i),a=!1},d(t){t&&me(n),s[r].d(t),t&&me(o)}}}function wa(t){var e;let n,r,i,o,a=[],l=new fa,s=(null===(e=t[7])||void 0===e?void 0:e.div)&&va(t),c=t[6];const u=t=>t[27];for(let e=0;e<c.length;e+=1){let n=ga(t,c,e),r=u(n);l.set(r,a[e]=ba(r,n))}return{c(){s&&s.c(),n=be(),r=ye("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){s&&s.l(t),n=Se(t),r=De(t,"DIV",{class:!0,"aria-hidden":!0});var e=Ce(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(me),this.h()},h(){ke(r,"class",i=Go.state__animations),ke(r,"aria-hidden","true")},m(e,i){s&&s.m(e,i),ge(e,n,i),ge(e,r,i);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(r,null);t[12](r),o=!0},p(t,e){var i;null!==(i=t[7])&&void 0!==i&&i.div?s?(s.p(t,e),128&e&&fn(s,1)):(s=va(t),s.c(),fn(s,1),s.m(n.parentNode,n)):s&&(hn(),gn(s,1,1,(()=>{s=null})),pn()),320&e&&(c=t[6],hn(),a=function(t,e,n,r,i,o,a,l,s,c,u,d){let h=t.length,p=o.length,f=h;const g={};for(;f--;)g[t[f].key]=f;const m=[],v=new Map,y=new Map,$=[];for(f=p;f--;){const t=d(i,o,f),r=n(t);let l=a.get(r);l?$.push((()=>l.p(t,e))):(l=c(r,t),l.c()),v.set(r,m[f]=l),r in g&&y.set(r,Math.abs(f-g[r]))}const _=new Set,b=new Set;function w(t){fn(t,1),t.m(l,u),a.set(t.key,t),u=t.first,p--}for(;h&&p;){const e=m[p-1],n=t[h-1],r=e.key,i=n.key;e===n?(u=e.first,h--,p--):v.has(i)?!a.has(r)||_.has(r)?w(e):b.has(i)?h--:y.get(r)>y.get(i)?(b.add(r),w(e)):(_.add(i),h--):(s(n,a),h--)}for(;h--;){const e=t[h];v.has(e.key)||s(e,a)}for(;p;)w(m[p-1]);return Lt($),m}(a,e,u,0,t,c,l,r,$n,ba,null,ga),pn())},i(t){if(!o){fn(s);for(let t=0;t<c.length;t+=1)fn(a[t]);o=!0}},o(t){gn(s);for(let t=0;t<a.length;t+=1)gn(a[t]);o=!1},d(e){s&&s.d(e),e&&me(n),e&&me(r);for(let t=0;t<a.length;t+=1)a[t].d();t[12](null)}}}function xa(t){let e,n,r=!t[5]&&ma(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r&&(hn(),gn(r,1,1,(()=>{r=null})),pn()):r?(r.p(t,i),32&i&&fn(r,1)):(r=ma(t),r.c(),fn(r,1),r.m(e.parentNode,e))},i(t){n||(fn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function ka(t){return"change_bounds"===t.type?t:"set"===t.type?ka(t.items[0]):null}function Ea(t,e,n){let r,{json:i={}}=e,{templateContext:o}=e,{origJson:a}=e,{layoutParams:l}=e;const s=He(On),c=He(lr);let u,d=new Map,h=new Set,p=!1,f=null,g=[],m=[],v=[],y=[];function $(t,e,n){let{json:r,templateContext:i,transitions:o,node:a}=e;r=s.getJsonWithVars(r),o=s.getJsonWithVars(o);const l=pa(o),c=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{margins:void 0,alpha:(u=l,u.some((t=>"fade"===t.type))?void 0:r.alpha)}),templateContext:i,elementBbox:c,rootBbox:t,transitions:l,alpha:r.alpha,width:c.width,height:c.height,offsetTop:c.top-t.top,offsetLeft:c.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node};var u}const _=i.div_id||i.id;let b;_?(null==l?void 0:l.fakeElement)||(c.registerInstance(_,{async setState(t){if(b===t)return;s.setRunning("stateChange",!0);const e=new Set(h);g.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,g=[]);let i=[];if(u){const t=u.getBoundingClientRect();i=v.map((e=>$(t,e,"out")))}y.forEach((t=>{d.set(t.id,t.node.getBoundingClientRect())})),m=[],v=[],y=[];const o=r.find((e=>e.state_id===t))||null;if(o?(b=t,n(7,w=o)):s.logError(ct(new Error("Cannot find state with id"),{additional:{stateId:t}})),await en(),!u)return;const a=u.getBoundingClientRect();let l=m.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>$(a,t,"in")));i=i.filter((t=>{var e;return!(!t.json.id||h.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=i.concat(l),p=c.reduce(((t,e)=>Math.max(t,aa(e.transitions))),0),f=y.filter((t=>d.has(t.id))).map((t=>({json:Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}}),templateContext:t.templateContext,rootBbox:a,beforeBbox:d.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:ka(t.transitions),resolvePromise:t.resolvePromise})));n(6,g=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:p}))),...f]),d.clear(),s.setRunning("stateChange",!1)},getChild(t){if(f&&f.has(t))return f.get(t);s.logError(ct(new Error("Missing state block with id"),{additional:{id:t}}))}}),We(lr,{registerInstance(t,e){f||(f=new Map),f.has(t)?s.logError(ct(new Error("Duplicate state with id"),{additional:{id:t}})):f.set(t,e)},unregisterInstance(t){null==f||f.delete(t)},runVisibilityTransition(t,e,r,i,o){if(!u)return Promise.resolve();const a=$(u.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:i},o),l=aa(a.transitions),s=Object.assign(Object.assign({},a),{maxDuration:l});return n(6,g=[...g.filter((t=>t.node!==a.node)),s]),new Promise((t=>{s.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return m.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return v.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const i=t.id;if(!i)return Promise.resolve();const o={id:i,json:t,templateContext:e,transitions:n,node:r};return y.push(o),new Promise((t=>{o.resolvePromise=t}))},hasTransitionChange:t=>!!t&&d.has(t),registerChild(t){h.add(t)},unregisterChild(t){h.delete(t)}})):(p=!0,s.logError(ct(new Error('Missing "id" prop for div "state"'))));let w=null;const x=s.getJsonWithVars(i.default_state_id);let k=!1;function E(t){n(6,g=g.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return Le((()=>{_&&!(null==l?void 0:l.fakeElement)&&c.unregisterInstance(_)})),t.$$set=t=>{"json"in t&&n(0,i=t.json),"templateContext"in t&&n(1,o=t.templateContext),"origJson"in t&&n(2,a=t.origJson),"layoutParams"in t&&n(3,l=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&i&&(h=new Set),1&t.$$.dirty&&n(9,r=i.states||[]),512&t.$$.dirty&&((null==r?void 0:r.length)?n(5,p=!1):(n(5,p=!0),s.logError(ct(new Error('Empty "states" prop for div "state"'))))),512&t.$$.dirty&&function(t){k||(k=!0,t.length&&(x?(b=x,n(7,w=t.find((t=>t.state_id===b))||null),w||s.logError(ct(new Error("Cannot find state for default_state_id"),{additional:{selectedId:b}}))):(n(7,w=t[0]),b=w.state_id)))}(r)},[i,o,a,l,u,p,g,w,E,r,t=>E(t),t=>E(t),function(t){Ke[t?"unshift":"push"]((()=>{u=t,n(4,u)}))}]}const Ca={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f"},{Boolean:Aa}=yn;function Va(t,e,n){const r=t.slice();return r[48]=e[n],r}function Da(t){let e,n;return e=new Hr({props:{cls:or("pager",Ca,t[8]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,$$slots:{default:[ja]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=or("pager",Ca,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),33336&n[0]|1048576&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Pa(t){var e;let n,r,i,o,a;return r=new Ol({props:{div:t[48].json,templateContext:t[48].templateContext,origJson:t[48].origJson,layoutParams:null!==(e=t[3])&&void 0!==e&&e.fakeElement?{fakeElement:!0}:void 0}}),{c(){n=ye("div"),wn(r.$$.fragment),i=be(),this.h()},l(t){n=De(t,"DIV",{class:!0});var e=Ce(n);xn(r.$$.fragment,e),i=Se(e),e.forEach(me),this.h()},h(){ke(n,"class",o=Ca.pager__item)},m(t,e){ge(t,n,e),kn(r,n,null),fe(n,i),a=!0},p(t,e){var n;const i={};16&e[0]&&(i.div=t[48].json),16&e[0]&&(i.templateContext=t[48].templateContext),16&e[0]&&(i.origJson=t[48].origJson),8&e[0]&&(i.layoutParams=null!==(n=t[3])&&void 0!==n&&n.fakeElement?{fakeElement:!0}:void 0),r.$set(i)},i(t){a||(fn(r.$$.fragment,t),a=!0)},o(t){gn(r.$$.fragment,t),a=!1},d(t){t&&me(n),En(r)}}}function ja(t){let e,n,r,i,o,a,l=t[4],s=[];for(let e=0;e<l.length;e+=1)s[e]=Pa(Va(t,l,e));const c=t=>gn(s[t],1,1,(()=>{s[t]=null}));return{c(){e=ye("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=De(t,"DIV",{class:!0,style:!0});var n=Ce(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(me),this.h()},h(){ke(e,"class",n=Ca.pager__items+" "+(t[15]?zn["root_restrict-scroll"]:"")),ke(e,"style",r=Rn(t[9]))},m(n,r){ge(n,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);t[36](e),i=!0,o||(a=xe(e,"scroll",t[16]),o=!0)},p(t,o){if(24&o[0]){let n;for(l=t[4],n=0;n<l.length;n+=1){const r=Va(t,l,n);s[n]?(s[n].p(r,o),fn(s[n],1)):(s[n]=Pa(r),s[n].c(),fn(s[n],1),s[n].m(e,null))}for(hn(),n=l.length;n<s.length;n+=1)c(n);pn()}(!i||32768&o[0]&&n!==(n=Ca.pager__items+" "+(t[15]?zn["root_restrict-scroll"]:"")))&&ke(e,"class",n),(!i||512&o[0]&&r!==(r=Rn(t[9])))&&ke(e,"style",r)},i(t){if(!i){for(let t=0;t<l.length;t+=1)fn(s[t]);i=!0}},o(t){s=s.filter(Aa);for(let t=0;t<s.length;t+=1)gn(s[t]);i=!1},d(n){n&&me(e),ve(s,n),t[36](null),o=!1,a()}}}function Sa(t){let e,n,r=!t[7]&&Da(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){t[7]?r&&(hn(),gn(r,1,1,(()=>{r=null})),pn()):r?(r.p(t,n),128&n[0]&&fn(r,1)):(r=Da(t),r.c(),fn(r,1),r.m(e.parentNode,e))},i(t){n||(fn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function Na(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_=Ot,b=Ot,w=Ot,x=Ot,k=Ot,E=Ot;var C,A,V,D,P,j,S;t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E()));let{json:N={}}=e,{templateContext:F}=e,{origJson:I}=e,{layoutParams:M}=e;const T=He(On),z=T.genId("pager");let O,J=!1,B=!1,R=0,U=0,L=!1,W="horizontal",H="",q="",G="";const K=yo((function(){if(!J)return;const t=function(){const t=Array.from(O.children),e=O.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===W?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:R}();t!==R&&n(25,R=t)}),50);function X(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const r="horizontal"===W,i=O.children[t],o=r?"offsetLeft":"offsetTop",a=r?"left":"top";O.scroll({[a]:i[o],behavior:e}),n(25,R=t)}return N.id&&!(null==M?void 0:M.fakeElement)&&T.registerInstance(N.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');X(t)},setPreviousItem(t){let e=R-1;e<0&&(e="ring"===t?r.length-1:R),X(e)},setNextItem(t){let e=R+1;e>r.length-1&&(e="ring"===t?0:R),X(e)}}),Ue((()=>{if(J=!0,Boolean(document.getElementById("".concat(z,"-tab-0")))){const t=[...O.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(z,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(z,"-tab-").concat(e))}})),Le((()=>{J=!1,N.id&&!(null==M?void 0:M.fakeElement)&&T.unregisterInstance(N.id)})),t.$$set=t=>{"json"in t&&n(0,N=t.json),"templateContext"in t&&n(1,F=t.templateContext),"origJson"in t&&n(2,I=t.origJson),"layoutParams"in t&&n(3,M=t.layoutParams)},t.$$.update=()=>{if(131073&t.$$.dirty[0]&&((null===n(17,C=N.items)||void 0===C?void 0:C.length)&&Array.isArray(N.items)?n(24,B=!1):(n(24,B=!0),T.logError(ct(new Error('Incorrect or empty "items" prop for div "pager"'))))),16777219&t.$$.dirty[0]&&n(4,r=(!B&&N.items||[]).map((t=>{let e=t,n=F;return({templateContext:n,json:e}=T.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(14,i=T.getDerivedFromVars(N.layout_mode)),b(),b=Xt(i,(t=>n(32,g=t)))),2&t.$$.dirty[1]&&(g?"percentage"!==g.type&&"fixed"!==g.type?(n(26,L=!0),T.logError(ct(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):n(26,L=!1):(n(26,L=!0),T.logError(ct(new Error('Empty "layout_mode" prop for div "pager"'))))),1&t.$$.dirty[0]&&(n(13,o=T.getDerivedFromVars(N.orientation)),k(),k=Xt(o,(t=>n(35,y=t)))),134217728&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(27,W=Ri(y,W)),1&t.$$.dirty[0]&&(n(12,a=T.getDerivedFromVars(N.item_spacing)),x(),x=Xt(a,(t=>n(34,v=t)))),8&t.$$.dirty[1]){const t=null==v?void 0:v.value;t&&ur(t)&&n(28,H=Un(t||0))}if(1&t.$$.dirty[0]&&(n(11,l=T.getDerivedFromVars(N.paddings)),w(),w=Xt(l,(t=>n(33,m=t)))),536870912&t.$$.dirty[0]|4&t.$$.dirty[1]&&n(29,q=dr(m,q)),1&t.$$.dirty[0]&&(n(10,s=T.getDerivedFromVars(N.restrict_parent_scroll)),E(),E=Xt(s,(t=>n(15,$=t)))),134217728&t.$$.dirty[0]&&n(31,c="horizontal"===W?"grid-auto-columns":"grid-auto-rows"),419168257&t.$$.dirty[0]|2&t.$$.dirty[1])if("fixed"===(null==g?void 0:g.type)){const t=Ln("horizontal"===W?((null===n(18,A=N.paddings)||void 0===A?void 0:A.left)||0)+((null===n(19,V=N.paddings)||void 0===V?void 0:V.right)||0):((null===n(20,D=N.paddings)||void 0===D?void 0:D.top)||0)+((null===n(21,P=N.paddings)||void 0===P?void 0:P.bottom)||0)),e=null===n(22,j=g.neighbour_page_width)||void 0===j?void 0:j.value;n(30,G=e?"calc(100% + ".concat(t," - 2 * ").concat(Ln(e)," - 2 * ").concat(H,")"):"100%")}else if("percentage"===(null==g?void 0:g.type)){const t=null===n(23,S=g.page_width)||void 0===S?void 0:S.value;n(30,G="".concat(Number(t),"%"))}1879048192&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(9,u={"grid-gap":H,padding:q,[c]:G}),134217728&t.$$.dirty[0]&&n(8,d={orientation:W}),83886080&t.$$.dirty[0]&&n(7,h=B||L),33554448&t.$$.dirty[0]&&function(t,e){const n=N.id;if(n){const r=new Map(f);re(p,f=r.set(n,{instId:z,size:t,currentItem:e,scrollToPagerItem:X}),f)}}(r.length,R),33554432&t.$$.dirty[0]&&function(t){var e;if(t===U)return;U=t;const n=T.getJsonWithVars(null===(e=r[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&T.execAnyActions(n)}(R)},n(6,p=T.getStore("pagers")),_(),_=Xt(p,(t=>n(39,f=t))),[N,F,I,M,r,O,p,h,d,u,s,l,a,o,i,$,K,C,A,V,D,P,j,S,B,R,L,W,H,q,G,c,g,m,v,y,function(t){Ke[t?"unshift":"push"]((()=>{O=t,n(5,O)}))}]}const Fa={indicator:"divkit-d8e3f",indicator__scroller:"divkit-b5db0",indicator__items:"divkit-d5d94",indicator__item:"divkit-f6629",indicator_placement_default:"divkit-c1670",indicator__item_active:"divkit-b39cd",indicator_placement_stretch:"divkit-b6bd3"};function Ia(t,e,n){const r=t.slice();r[43]=e[n],r[46]=n;const i=r[46]===r[12].currentItem;return r[44]=i,r}function Ma(t){let e,n=Array(t[12].size),r=[];for(let e=0;e<n.length;e+=1)r[e]=Ta(Ia(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=we()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=we()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);ge(t,e,n)},p(t,i){if(25169920&i[0]){let o;for(n=Array(t[12].size),o=0;o<n.length;o+=1){const a=Ia(t,n,o);r[o]?r[o].p(a,i):(r[o]=Ta(a),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(t){ve(r,t),t&&me(e)}}}function Ta(t){let e,n,r,i,o,a,l,s;function c(){return t[36](t[46])}return{c(){e=ye("div"),this.h()},l(t){e=De(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),Ce(e).forEach(me),this.h()},h(){ke(e,"class",n=or("indicator__item",Fa,{active:t[44]})+" "+zn.root__clickable),ke(e,"role","tab"),ke(e,"id",r=t[12].instId+"-tab-"+t[46]),ke(e,"aria-controls",i=t[12].instId+"-panel-"+t[46]),ke(e,"aria-selected",o=t[44]?"true":"false"),ke(e,"tabindex",a=t[44]?0:-1)},m(n,r){ge(n,e,r),l||(s=[xe(e,"click",c),xe(e,"keydown",t[24])],l=!0)},p(l,s){t=l,4096&s[0]&&n!==(n=or("indicator__item",Fa,{active:t[44]})+" "+zn.root__clickable)&&ke(e,"class",n),4096&s[0]&&r!==(r=t[12].instId+"-tab-"+t[46])&&ke(e,"id",r),4096&s[0]&&i!==(i=t[12].instId+"-panel-"+t[46])&&ke(e,"aria-controls",i),4096&s[0]&&o!==(o=t[44]?"true":"false")&&ke(e,"aria-selected",o),4096&s[0]&&a!==(a=t[44]?0:-1)&&ke(e,"tabindex",a)},d(t){t&&me(e),l=!1,Lt(s)}}}function za(t){let e,n,r,i,o=t[12]&&Ma(t);return{c(){e=ye("div"),n=ye("div"),o&&o.c(),this.h()},l(t){e=De(t,"DIV",{class:!0});var r=Ce(e);n=De(r,"DIV",{class:!0,role:!0});var i=Ce(n);o&&o.l(i),i.forEach(me),r.forEach(me),this.h()},h(){ke(n,"class",r=Fa.indicator__items),ke(n,"role","tablist"),Fe(n,"margin","default"===t[6]?"0 ".concat(Un(Math.max(0,t[4].width-t[5].width)/2)):""),Fe(n,"--divkit-indicator-inactive-width",Un(t[5].width)),Fe(n,"--divkit-indicator-inactive-height",Un(t[5].height)),Fe(n,"--divkit-indicator-inactive-border-radius",Un(t[5].borderRadius)),Fe(n,"--divkit-indicator-inactive-background",t[5].background||""),Fe(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||""),Fe(n,"--divkit-indicator-active-width",Un(t[4].width)),Fe(n,"--divkit-indicator-active-height",Un(t[4].height)),Fe(n,"--divkit-indicator-active-border-radius",Un(t[4].borderRadius)),Fe(n,"--divkit-indicator-active-background",t[4].background||""),Fe(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||""),Fe(n,"--divkit-indicator-active-scale",t[4].width/t[5].width),Fe(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(Un((t[7]-t[5].width)/2)):""),Fe(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?Un(t[9]):""),Fe(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),Fe(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?Un((t[8]-1)*t[9]):""),ke(e,"class",i=Fa.indicator__scroller)},m(r,i){ge(r,e,i),fe(e,n),o&&o.m(n,null),t[37](n),t[38](e)},p(t,e){t[12]?o?o.p(t,e):(o=Ma(t),o.c(),o.m(n,null)):o&&(o.d(1),o=null),112&e[0]&&Fe(n,"margin","default"===t[6]?"0 ".concat(Un(Math.max(0,t[4].width-t[5].width)/2)):""),32&e[0]&&Fe(n,"--divkit-indicator-inactive-width",Un(t[5].width)),32&e[0]&&Fe(n,"--divkit-indicator-inactive-height",Un(t[5].height)),32&e[0]&&Fe(n,"--divkit-indicator-inactive-border-radius",Un(t[5].borderRadius)),32&e[0]&&Fe(n,"--divkit-indicator-inactive-background",t[5].background||""),32&e[0]&&Fe(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||""),16&e[0]&&Fe(n,"--divkit-indicator-active-width",Un(t[4].width)),16&e[0]&&Fe(n,"--divkit-indicator-active-height",Un(t[4].height)),16&e[0]&&Fe(n,"--divkit-indicator-active-border-radius",Un(t[4].borderRadius)),16&e[0]&&Fe(n,"--divkit-indicator-active-background",t[4].background||""),16&e[0]&&Fe(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||""),48&e[0]&&Fe(n,"--divkit-indicator-active-scale",t[4].width/t[5].width),224&e[0]&&Fe(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(Un((t[7]-t[5].width)/2)):""),576&e[0]&&Fe(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?Un(t[9]):""),320&e[0]&&Fe(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),832&e[0]&&Fe(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?Un((t[8]-1)*t[9]):"")},d(n){n&&me(e),o&&o.d(),t[37](null),t[38](null)}}}function Oa(t){let e,n;return e=new Hr({props:{cls:or("indicator",Fa,t[13]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[za]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=or("indicator",Fa,t[13])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),8176&n[0]|65536&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Ja(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w=Ot,x=Ot,E=Ot,C=Ot,A=Ot,V=Ot,D=Ot,P=Ot,j=Ot;var S,N;t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>j()));let{json:F={}}=e,{templateContext:I}=e,{origJson:M}=e,{layoutParams:T}=e;const z=["rounded_rectangle","circle"],O=He(On);let J,B,R,U={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},L={width:10,height:10,borderRadius:5,background:"#33919cb5"},W="default",H=15,q=10,G=5;function K(t){t!==R.currentItem&&R.scrollToPagerItem(t)}async function X(t){R.scrollToPagerItem(t),await en();const e=B.querySelector(".".concat(Fa.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&n(0,F=t.json),"templateContext"in t&&n(1,I=t.templateContext),"origJson"in t&&n(2,M=t.origJson),"layoutParams"in t&&n(3,T=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(22,r=O.getDerivedFromVars(F.shape)),V(),V=Xt(r,(t=>n(32,y=t)))),1&t.$$.dirty[0]&&(n(21,i=O.getDerivedFromVars(F.active_item_color)),C(),C=Xt(i,(t=>n(30,m=t)))),1&t.$$.dirty[0]&&(n(20,o=O.getDerivedFromVars(F.inactive_item_color)),A(),A=Xt(o,(t=>n(31,v=t)))),1&t.$$.dirty[0]&&(n(19,a=O.getDerivedFromVars(F.active_item_size)),D(),D=Xt(a,(t=>n(33,$=t)))),1&t.$$.dirty[0]&&(n(18,l=O.getDerivedFromVars(F.active_shape)),j(),j=Xt(l,(t=>n(35,b=t)))),1&t.$$.dirty[0]&&(n(17,s=O.getDerivedFromVars(F.inactive_shape)),P(),P=Xt(s,(t=>n(34,_=t)))),1073741872&t.$$.dirty[0]|31&t.$$.dirty[1]&&(b&&n(4,U=wi({type:"shape_drawable",shape:b},z,U)),_&&n(5,L=wi({type:"shape_drawable",shape:_},z,L)),!b&&!_&&y)){const t=Gr($,1.3);n(5,L=wi({type:"shape_drawable",shape:y,color:L.background},z,L)),n(5,L.background=k(v,1,L.background),L),n(4,U=Object.assign(Object.assign({},L),{width:L.width*t,height:L.height*t,borderRadius:L.borderRadius*t,background:U.background})),n(4,U.background=k(m,1,U.background),U)}if(1&t.$$.dirty[0]&&(n(16,c=O.getDerivedFromVars(F.space_between_centers)),x(),x=Xt(c,(t=>n(28,f=t)))),1&t.$$.dirty[0]&&(n(15,u=O.getDerivedFromVars(F.items_placement)),E(),E=Xt(u,(t=>n(29,g=t)))),905970624&t.$$.dirty[0])if(!g||"default"!==g.type&&"stretch"!==g.type)n(6,W="default"),f&&n(7,H=hr(f.value,H));else if(n(6,W=g.type),"default"===W)n(7,H=hr(null===n(25,S=g.space_between_centers)||void 0===S?void 0:S.value,H));else if("stretch"===W){const t=g;n(8,q=Gr(t.max_visible_items,q)),n(9,G=hr(null===n(26,N=t.item_spacing)||void 0===N?void 0:N.value,G))}134217728&t.$$.dirty[0]&&async function(t){if(F.pager_id&&t.has(F.pager_id)&&(n(12,R=t.get(F.pager_id)),await en(),B)){const t=B.children[R.currentItem].offsetLeft;J.scroll({left:t-J.clientWidth/2,behavior:"smooth"})}}(p),64&t.$$.dirty[0]&&n(13,h={placement:W})},n(14,d=O.getStore("pagers")),w(),w=Xt(d,(t=>n(27,p=t))),[F,I,M,T,U,L,W,H,q,G,J,B,R,h,d,u,c,s,l,a,o,i,r,K,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=R;if(t.which===So)X(n-1<0?n:n-1);else if(t.which===No)X(n+1>=e?n:n+1);else if(t.which===Fo)X(0);else{if(t.which!==Io)return;X(e-1)}t.preventDefault()},S,N,p,f,g,m,v,y,$,_,b,t=>K(t),function(t){Ke[t?"unshift":"push"]((()=>{B=t,n(11,B)}))},function(t){Ke[t?"unshift":"push"]((()=>{J=t,n(10,J)}))}]}const Ba={slider:"divkit-ef4f7",slider__input:"divkit-d1d65",slider__input_secondary:"divkit-c7980",slider__thumb:"divkit-f3453",slider__thumb_secondary:"divkit-e1984","slider__tracks-wrapper":"divkit-f7338","slider__tracks-inner":"divkit-ac903",slider__track:"divkit-e956c","slider__active-track":"divkit-ec5bf","slider__thumb-text":"divkit-c4af5","slider__thumb-text_secondary":"divkit-d8821",slider__tick:"divkit-bd9bf",slider__tick_active:"divkit-d8ce2",slider__tick_inactive:"divkit-e71e7"};function Ra(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&k(t.text_color)||"#000",i=Kr(t.font_weight);if(Pr(t.font_size)&&"transparent"!==r){var o,a;const e={fontSize:Un(t.font_size),fontWeight:i,textColor:r};return"number"==typeof(null==n||null===(o=n.x)||void 0===o?void 0:o.value)&&"number"==typeof(null==n||null===(a=n.y)||void 0===a?void 0:a.value)&&(e.offset={x:n.x.value,y:n.y.value}),e}}function Ua(t,e,n){return Math.max(e,Math.min(n,Number(t)))}function La(t,e,n){const r=t.slice();return r[78]=e[n],r}function Wa(t,e,n){const r=t.slice();return r[78]=e[n],r}function Ha(t){let e,n;return e=new Hr({props:{cls:or("slider",Ba,t[21]),style:t[22],customDescription:!0,customActions:"slider",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ya]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};2097152&n[0]&&(r.cls=or("slider",Ba,t[21])),4194304&n[0]&&(r.style=t[22]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),27246576&n[0]|2097152&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function qa(t){let e,n;return{c(){e=ye("div"),this.h()},l(t){e=De(t,"DIV",{class:!0}),Ce(e).forEach(me),this.h()},h(){ke(e,"class",n=Ba.slider__tick+" "+Ba.slider__tick_active),Fe(e,"--divkit-slider-tick",t[78])},m(t,n){ge(t,e,n)},p(t,n){131072&n[0]&&Fe(e,"--divkit-slider-tick",t[78])},d(t){t&&me(e)}}}function Ga(t){let e,n;return{c(){e=ye("div"),this.h()},l(t){e=De(t,"DIV",{class:!0}),Ce(e).forEach(me),this.h()},h(){ke(e,"class",n=Ba.slider__tick+" "+Ba.slider__tick_inactive),Fe(e,"--divkit-slider-tick",t[78])},m(t,n){ge(t,e,n)},p(t,n){262144&n[0]&&Fe(e,"--divkit-slider-tick",t[78])},d(t){t&&me(e)}}}function Ka(t){let e,n,r,i,o;return{c(){e=ye("div"),n=ye("div"),r=_e(t[6]),this.h()},l(i){e=De(i,"DIV",{class:!0});var o=Ce(e);n=De(o,"DIV",{class:!0});var a=Ce(n);r=je(a,t[6]),a.forEach(me),o.forEach(me),this.h()},h(){var r,a,l;ke(n,"class",i=Ba["slider__thumb-text-inner"]),Fe(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em"),Fe(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||""),Fe(n,"color",(null===(l=t[12])||void 0===l?void 0:l.textColor)||"#000"),ke(e,"class",o=Ba["slider__thumb-text"])},m(t,i){ge(t,e,i),fe(e,n),fe(n,r)},p(t,e){var i,o,a;64&e[0]&&Ne(r,t[6]),4096&e[0]&&Fe(n,"font-size",(null===(i=t[12])||void 0===i?void 0:i.fontSize)||"1em"),4096&e[0]&&Fe(n,"font-weight",(null===(o=t[12])||void 0===o?void 0:o.fontWeight)||""),4096&e[0]&&Fe(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&me(e)}}}function Xa(t){let e,n,r,i,o;return{c(){e=ye("div"),n=ye("div"),r=_e(t[7]),this.h()},l(i){e=De(i,"DIV",{class:!0});var o=Ce(e);n=De(o,"DIV",{class:!0});var a=Ce(n);r=je(a,t[7]),a.forEach(me),o.forEach(me),this.h()},h(){var r,a,l;ke(n,"class",i=Ba["slider__thumb-text-inner"]),Fe(n,"font-size",(null===(r=t[13])||void 0===r?void 0:r.fontSize)||"1em"),Fe(n,"font-weight",(null===(a=t[13])||void 0===a?void 0:a.fontWeight)||""),Fe(n,"color",(null===(l=t[13])||void 0===l?void 0:l.textColor)||"#000"),ke(e,"class",o=Ba["slider__thumb-text"]+" "+Ba["slider__thumb-text_secondary"])},m(t,i){ge(t,e,i),fe(e,n),fe(n,r)},p(t,e){var i,o,a;128&e[0]&&Ne(r,t[7]),8192&e[0]&&Fe(n,"font-size",(null===(i=t[13])||void 0===i?void 0:i.fontSize)||"1em"),8192&e[0]&&Fe(n,"font-weight",(null===(o=t[13])||void 0===o?void 0:o.fontWeight)||""),8192&e[0]&&Fe(n,"color",(null===(a=t[13])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&me(e)}}}function Ya(t){let e,n,r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x=t[17],k=[];for(let e=0;e<x.length;e+=1)k[e]=qa(Wa(t,x,e));let E=t[18],C=[];for(let e=0;e<E.length;e+=1)C[e]=Ga(La(t,E,e));let A=t[12]&&Ka(t),V=t[37]&&function(t){let e,n,r=t[13]&&Xa(t);return{c(){e=ye("div"),r&&r.c(),this.h()},l(t){e=De(t,"DIV",{class:!0});var n=Ce(e);r&&r.l(n),n.forEach(me),this.h()},h(){ke(e,"class",n=Ba.slider__thumb+" "+Ba.slider__thumb_secondary),Fe(e,"border-radius",Un(t[9].borderRadius)),Fe(e,"background",t[9].background),Fe(e,"box-shadow",t[9].boxShadow||"")},m(t,n){ge(t,e,n),r&&r.m(e,null)},p(t,n){t[13]?r?r.p(t,n):(r=Xa(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),512&n[0]&&Fe(e,"border-radius",Un(t[9].borderRadius)),512&n[0]&&Fe(e,"background",t[9].background),512&n[0]&&Fe(e,"box-shadow",t[9].boxShadow||"")},d(t){t&&me(e),r&&r.d()}}}(t),D=t[37]&&function(t){let e,n,r,i,o;return{c(){e=ye("input"),this.h()},l(t){e=De(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){ke(e,"type","range"),ke(e,"class",n=t[16]?Ba.slider__input:"".concat(Ba.slider__input," ").concat(Ba.slider__input_secondary)),ke(e,"min",t[4]),ke(e,"max",t[5]),ke(e,"step","1"),e.value=r=t[16]?t[6]:t[7],ke(e,"aria-label",t[20])},m(n,r){ge(n,e,r),i||(o=[xe(e,"input",t[68]),xe(e,"mousedown",t[37]?t[40]:null),xe(e,"touchstart",t[37]?t[40]:null)],i=!0)},p(t,i){65536&i[0]&&n!==(n=t[16]?Ba.slider__input:"".concat(Ba.slider__input," ").concat(Ba.slider__input_secondary))&&ke(e,"class",n),16&i[0]&&ke(e,"min",t[4]),32&i[0]&&ke(e,"max",t[5]),65728&i[0]&&r!==(r=t[16]?t[6]:t[7])&&(e.value=r),1048576&i[0]&&ke(e,"aria-label",t[20])},d(t){t&&me(e),i=!1,Lt(o)}}}(t);return{c(){e=ye("div"),n=ye("div"),r=ye("div"),o=be(),a=ye("div"),s=be();for(let t=0;t<k.length;t+=1)k[t].c();c=be();for(let t=0;t<C.length;t+=1)C[t].c();u=be(),d=ye("div"),A&&A.c(),p=be(),V&&V.c(),f=be(),g=ye("input"),y=be(),D&&D.c(),this.h()},l(t){e=De(t,"DIV",{class:!0});var i=Ce(e);n=De(i,"DIV",{class:!0});var l=Ce(n);r=De(l,"DIV",{class:!0}),Ce(r).forEach(me),o=Se(l),a=De(l,"DIV",{class:!0}),Ce(a).forEach(me),s=Se(l);for(let t=0;t<k.length;t+=1)k[t].l(l);c=Se(l);for(let t=0;t<C.length;t+=1)C[t].l(l);u=Se(l),d=De(l,"DIV",{class:!0});var h=Ce(d);A&&A.l(h),h.forEach(me),p=Se(l),V&&V.l(l),f=Se(l),g=De(l,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),y=Se(l),D&&D.l(l),l.forEach(me),i.forEach(me),this.h()},h(){ke(r,"class",i=Ba.slider__track),Fe(r,"height",Un(t[10].height)),Fe(r,"border-radius",Un(t[10].borderRadius)),Fe(r,"background",t[10].background),Fe(r,"box-shadow",t[10].boxShadow||""),ke(a,"class",l=Ba["slider__active-track"]),Fe(a,"left",(100*t[23]).toFixed(2)+"%"),Fe(a,"width",(100*t[24]).toFixed(2)+"%"),Fe(a,"height",Un(t[11].height)),Fe(a,"border-radius",Un(t[11].borderRadius)),Fe(a,"background",t[11].background),Fe(a,"box-shadow",t[11].boxShadow||""),ke(d,"class",h=Ba.slider__thumb),Fe(d,"border-radius",Un(t[8].borderRadius)),Fe(d,"background",t[8].background),Fe(d,"box-shadow",t[8].boxShadow||""),ke(g,"type","range"),ke(g,"class",m=t[16]?"".concat(Ba.slider__input," ").concat(Ba.slider__input_secondary):Ba.slider__input),ke(g,"min",t[4]),ke(g,"max",t[5]),ke(g,"step","1"),g.value=v=t[16]?t[7]:t[6],ke(g,"aria-label",t[19]),ke(n,"class",$=Ba["slider__tracks-inner"]),ke(e,"class",_=Ba["slider__tracks-wrapper"])},m(i,l){ge(i,e,l),fe(e,n),fe(n,r),fe(n,o),fe(n,a),fe(n,s);for(let t=0;t<k.length;t+=1)k[t]&&k[t].m(n,null);fe(n,c);for(let t=0;t<C.length;t+=1)C[t]&&C[t].m(n,null);fe(n,u),fe(n,d),A&&A.m(d,null),fe(n,p),V&&V.m(n,null),fe(n,f),fe(n,g),fe(n,y),D&&D.m(n,null),t[69](n),b||(w=xe(g,"input",t[67]),b=!0)},p(t,e){if(1024&e[0]&&Fe(r,"height",Un(t[10].height)),1024&e[0]&&Fe(r,"border-radius",Un(t[10].borderRadius)),1024&e[0]&&Fe(r,"background",t[10].background),1024&e[0]&&Fe(r,"box-shadow",t[10].boxShadow||""),8388608&e[0]&&Fe(a,"left",(100*t[23]).toFixed(2)+"%"),16777216&e[0]&&Fe(a,"width",(100*t[24]).toFixed(2)+"%"),2048&e[0]&&Fe(a,"height",Un(t[11].height)),2048&e[0]&&Fe(a,"border-radius",Un(t[11].borderRadius)),2048&e[0]&&Fe(a,"background",t[11].background),2048&e[0]&&Fe(a,"box-shadow",t[11].boxShadow||""),131072&e[0]){let r;for(x=t[17],r=0;r<x.length;r+=1){const i=Wa(t,x,r);k[r]?k[r].p(i,e):(k[r]=qa(i),k[r].c(),k[r].m(n,c))}for(;r<k.length;r+=1)k[r].d(1);k.length=x.length}if(262144&e[0]){let r;for(E=t[18],r=0;r<E.length;r+=1){const i=La(t,E,r);C[r]?C[r].p(i,e):(C[r]=Ga(i),C[r].c(),C[r].m(n,u))}for(;r<C.length;r+=1)C[r].d(1);C.length=E.length}t[12]?A?A.p(t,e):(A=Ka(t),A.c(),A.m(d,null)):A&&(A.d(1),A=null),256&e[0]&&Fe(d,"border-radius",Un(t[8].borderRadius)),256&e[0]&&Fe(d,"background",t[8].background),256&e[0]&&Fe(d,"box-shadow",t[8].boxShadow||""),t[37]&&V.p(t,e),65536&e[0]&&m!==(m=t[16]?"".concat(Ba.slider__input," ").concat(Ba.slider__input_secondary):Ba.slider__input)&&ke(g,"class",m),16&e[0]&&ke(g,"min",t[4]),32&e[0]&&ke(g,"max",t[5]),65728&e[0]&&v!==(v=t[16]?t[7]:t[6])&&(g.value=v),524288&e[0]&&ke(g,"aria-label",t[19]),t[37]&&D.p(t,e)},d(n){n&&me(e),ve(k,n),ve(C,n),A&&A.d(),V&&V.d(),D&&D.d(),t[69](null),b=!1,w()}}}function Za(t){let e,n,r,i,o=!t[14]&&Ha(t);return{c(){o&&o.c(),e=we()},l(t){o&&o.l(t),e=we()},m(a,l){o&&o.m(a,l),ge(a,e,l),n=!0,r||(i=xe(window,"resize",t[42]),r=!0)},p(t,n){t[14]?o&&(hn(),gn(o,1,1,(()=>{o=null})),pn()):o?(o.p(t,n),16384&n[0]&&fn(o,1)):(o=Ha(t),o.c(),fn(o,1),o.m(e.parentNode,e))},i(t){n||(fn(o),n=!0)},o(t){gn(o),n=!1},d(t){o&&o.d(t),t&&me(e),r=!1,i()}}}function Qa(t,e,n,r,i){let o=[];if(i)for(let i=t;i<e;++i)o.push((i-n)/(r-n));else{for(let e=n;e<t;++e)o.push((e-n)/(r-n));for(let t=e;t<r+1;++t)o.push((t-n)/(r-n))}return o}function tl(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j,S,N,F,I,M,T=Ot,z=Ot,O=Ot,J=Ot,B=Ot,R=Ot,U=Ot,L=Ot,W=Ot,H=Ot,q=Ot,G=Ot;var K,X,Y,Z;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G()));let{json:Q={}}=e,{templateContext:tt}=e,{origJson:et}=e,{layoutParams:nt}=e;const rt={width:10,height:10,borderRadius:5,background:"#000"},it=["rounded_rectangle","circle"],ot=["rounded_rectangle"],at=He(On),lt=He(wr);let st,ut=!1,dt=0,ht=100;const pt=Q.thumb_value_variable,ft=Q.thumb_secondary_value_variable;let gt=pt&&at.getVariable(pt,"integer")||Nn("temp","integer",0);Yt(t,gt,(t=>n(64,F=t)));let mt=ft&&at.getVariable(ft,"integer")||Nn("temp","integer",0);Yt(t,mt,(t=>n(63,N=t)));let vt,yt,$t,_t=Ua(F||0,dt,ht),bt=Ua(N||0,dt,ht),wt=rt,xt=wt,kt=rt,Et=rt,Ct=null,At=null,Vt=$t,Dt="",Pt="",jt=!1;function St(t,e){const r=Number(t.target.value);ut===("first"===e)?(n(7,bt=r),mt.setValue(r)):(n(6,_t=r),gt.setValue(r))}let Nt=!1;function Ft(){if(!st)return;const t=ht-dt,e=(null==Ct?void 0:Ct.width)||0,n=(null==At?void 0:At.width)||0;Math.max(e,n)*t>=(null==st?void 0:st.clientWidth)?Nt||(at.logError(ct(new Error("Slider ticks overlap each other"),{level:"warn"})),Nt=!0):Nt=!1}const It=yo(Ft,50);return Ue((()=>{Ft()})),t.$$set=t=>{"json"in t&&n(0,Q=t.json),"templateContext"in t&&n(1,tt=t.templateContext),"origJson"in t&&n(2,et=t.origJson),"layoutParams"in t&&n(3,nt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(36,r=at.getDerivedFromVars(Q.min_value)),G(),G=Xt(r,(t=>n(66,M=t)))),1&t.$$.dirty[0]&&(n(35,i=at.getDerivedFromVars(Q.max_value)),q(),q=Xt(i,(t=>n(65,I=t)))),48&t.$$.dirty[0]|24&t.$$.dirty[2]&&(n(4,dt=vr(M,dt)),n(5,ht=vr(I,ht)),Ft()),112&t.$$.dirty[0]|4&t.$$.dirty[2]){const t=Ua(F||0,dt,ht);t!==_t&&n(6,_t=t)}if(176&t.$$.dirty[0]|2&t.$$.dirty[2]){const t=Ua(N||0,dt,ht);t!==bt&&n(7,bt=t)}if(1&t.$$.dirty[0]&&(n(34,o=at.getDerivedFromVars(Q.thumb_style)),H(),H=Xt(o,(t=>n(62,S=t)))),256&t.$$.dirty[0]|1&t.$$.dirty[2]&&n(8,wt=wi(S,it,wt)),1&t.$$.dirty[0]&&(n(33,a=at.getDerivedFromVars(Q.thumb_secondary_style)),W(),W=Xt(a,(t=>n(61,j=t)))),256&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&n(9,xt=wi(j,it,wt)),1&t.$$.dirty[0]&&(n(32,l=at.getDerivedFromVars(Q.track_inactive_style)),L(),L=Xt(l,(t=>n(60,P=t)))),1024&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&n(10,kt=wi(P,ot,kt)),1&t.$$.dirty[0]&&(n(31,s=at.getDerivedFromVars(Q.track_active_style)),U(),U=Xt(s,(t=>n(59,D=t)))),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(11,Et=wi(D,ot,Et)),1&t.$$.dirty[0]&&(n(30,c=at.getDerivedFromVars(Q.tick_mark_active_style)),R(),R=Xt(c,(t=>n(58,V=t)))),134217728&t.$$.dirty[1]){let t=wi(V,it,rt);t!==rt&&n(47,Ct=t)}if(240&t.$$.dirty[0]|65536&t.$$.dirty[1]&&(Ct?(n(17,vt=ft?Qa(Math.min(_t,bt),Math.max(_t,bt)+1,dt,ht,!0):Qa(dt,_t,dt,ht,!0)),Ft()):n(17,vt=[])),1&t.$$.dirty[0]&&(n(29,u=at.getDerivedFromVars(Q.tick_mark_inactive_style)),B(),B=Xt(u,(t=>n(57,A=t)))),67108864&t.$$.dirty[1]){let t=wi(A,it,rt);t!==rt&&n(48,At=t)}if(240&t.$$.dirty[0]|131072&t.$$.dirty[1]&&(At?(n(18,yt=ft?Qa(Math.min(_t,bt),Math.max(_t,bt)+1,dt,ht,!1):Qa(_t+1,ht+1,dt,ht,!0)),Ft()):n(18,yt=[])),1&t.$$.dirty[0]&&(n(28,d=at.getDerivedFromVars(Q.thumb_text_style)),J(),J=Xt(d,(t=>n(56,C=t)))),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(12,$t=Ra(C,$t)),1&t.$$.dirty[0]&&(n(27,h=at.getDerivedFromVars(Q.thumb_secondary_text_style)),O(),O=Xt(h,(t=>n(55,E=t)))),4096&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&n(13,Vt=Ra(E,$t)),1&t.$$.dirty[0]&&(n(26,p=at.getDerivedFromVars(Q.accessibility)),z(),z=Xt(p,(t=>n(54,k=t)))),8388608&t.$$.dirty[1]&&((null==k?void 0:k.description)?n(19,Dt=k.description):at.logError(ct(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),1&t.$$.dirty[0]&&(n(25,f=at.getDerivedFromVars(Q.secondary_value_accessibility)),T(),T=Xt(f,(t=>n(53,x=t)))),4194304&t.$$.dirty[1]&&((null==x?void 0:x.description)?n(20,Pt=x.description):ft&&at.logError(ct(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),19712&t.$$.dirty[0]){let t=!1;lt.hasAction()?(at.logError(ct(new Error('Cannot show "slider" inside component with action'))),t=!0):wt===rt?(at.logError(ct(new Error('Missing "thumb_style" in slider'))),t=!0):Et===rt?(at.logError(ct(new Error('Missing "track_active_style" in slider'))),t=!0):kt===rt&&(at.logError(ct(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==jt&&n(14,jt=t)}768&t.$$.dirty[0]&&n(52,g=Un(Math.max(...[wt.width,xt.width,0].filter(ur)))),768&t.$$.dirty[0]&&n(51,m=Un(Math.max(...[wt.height,xt.height,0].filter(ur)))),112&t.$$.dirty[0]&&n(50,v=(_t-dt)/(ht-dt)),176&t.$$.dirty[0]&&n(49,y=ft?(bt-dt)/(ht-dt):void 0),786432&t.$$.dirty[1]&&n(24,$=void 0!==y?Math.abs(y-v):v),786432&t.$$.dirty[1]&&n(23,_=void 0!==y?Math.min(y,v):0),13056&t.$$.dirty[0]|4190208&t.$$.dirty[1]&&n(22,b={"--divkit-slider-thumb-width":Un(wt.width),"--divkit-slider-thumb-height":Un(wt.height),"--divkit-slider-thumb-secondary-width":Un(xt.width),"--divkit-slider-thumb-secondary-height":Un(xt.height),"--divkit-slider-text-offset-x":(null===n(43,K=null==$t?void 0:$t.offset)||void 0===K?void 0:K.x)?Ln($t.offset.x):void 0,"--divkit-slider-text-offset-y":(null===n(44,X=null==$t?void 0:$t.offset)||void 0===X?void 0:X.y)?Ln($t.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===n(45,Y=null==Vt?void 0:Vt.offset)||void 0===Y?void 0:Y.x)?Ln(Vt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===n(46,Z=null==Vt?void 0:Vt.offset)||void 0===Z?void 0:Z.y)?Ln(Vt.offset.y):void 0,"--divkit-slider-tick-active-width":Ct?Un(Ct.width):void 0,"--divkit-slider-tick-active-height":Ct?Un(Ct.height):void 0,"--divkit-slider-tick-active-border-radius":Ct?Un(Ct.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==Ct?void 0:Ct.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==Ct?void 0:Ct.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":At?Un(At.width):void 0,"--divkit-slider-tick-inactive-height":At?Un(At.height):void 0,"--divkit-slider-tick-inactive-border-radius":At?Un(At.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==At?void 0:At.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==At?void 0:At.boxShadow)||void 0,"--divkit-slider-max-thumb-width":g,"--divkit-slider-max-thumb-height":m,"--divkit-slider-track-part":v,"--divkit-slider-track-secondary-part":y})},n(21,w={}),[Q,tt,et,nt,dt,ht,_t,bt,wt,xt,kt,Et,$t,Vt,jt,st,ut,vt,yt,Dt,Pt,w,b,_,$,f,p,h,d,u,c,s,l,a,o,i,r,ft,gt,mt,function(t){var e,r;const i="pageX"in t?t.pageX:null===(r=null===(e=t.changedTouches)||void 0===e?void 0:e[0])||void 0===r?void 0:r.pageX;if(void 0===i)return;const o=st.getBoundingClientRect(),a=(i-o.left)/o.width,l=(ht-dt)*a,s=Math.round(Ua(l,dt,ht));n(16,ut=s<(_t+bt)/2==_t<bt)},St,It,K,X,Y,Z,Ct,At,y,v,m,g,x,k,E,C,A,V,D,P,j,S,N,F,I,M,t=>St(t,"first"),t=>St(t,"second"),function(t){Ke[t?"unshift":"push"]((()=>{st=t,n(15,st)}))}]}const el={input:"divkit-c3a4c","input_alignment-horizontal_center":"divkit-fc52a","input_alignment-horizontal_right":"divkit-e8038",input__input:"divkit-f11e0",input__placeholder:"divkit-b7593","input_alignment-vertical_top":"divkit-bdccd","input_alignment-vertical_bottom":"divkit-fc670","input_alignment-vertical_baseline":"divkit-dd6af","input_highlight-color":"divkit-cc00f",input__input_singleline:"divkit-ffd1e","input__scroll-wrapper":"divkit-ad8a3",input__input_multiline:"divkit-f61f0"};function nl(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=nl(e,t);return{start:n.start,added:n.removed,removed:n.added}}let n=0,r=e.length-1;const i=e.length-t.length;for(;n<r&&n<t.length&&t[n]===e[n];)++n;for(;r-i>=n&&t[r-i]===e[r];)--r;return++r,{start:n,added:r-n,removed:r-n-i}}function rl(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class il{constructor(t){this.char=t}}class ol{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class al{constructor(t){rl(this,"filters",new Map),rl(this,"destructedValue",[]),rl(this,"cursorPos",0),this.maskData=t,this.updateMaskData(t)}get cursorPosition(){return this.cursorPos}get rawValue(){return this.collectValueRange(0,this.destructedValue.length-1)}get value(){let t="";for(let e=0;e<this.destructedValue.length;++e){const n=this.destructedValue[e];if(n instanceof il)t+=n.char;else if(n instanceof ol)if(n.char)t+=n.char;else{if(!this.maskData.alwaysVisible)break;t+=n.placeholder}}return t}firstEmptyHolderIndex(){const t=this.destructedValue.findIndex((t=>t instanceof ol&&!t.char));return-1!==t?t:this.destructedValue.length}updateMaskData(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.maskData!==t&&e?this.rawValue:null;this.filters=new Map,this.maskData=t,this.maskData.decoding.forEach((t=>{if(t.filter)try{const e=new RegExp(t.filter);this.filters.set(t.key,e)}catch(e){this.onException(ct(e,{level:"error",additional:{key:t.key}}))}})),this.destructedValue=this.maskData.pattern.split("").map((t=>{const e=this.maskData.decoding.find((e=>e.key===t));return e?new ol(null,this.filters.get(e.key),e.placeholder):new il(t)})),null!==n&&this.overrideRawValue(n)}overrideRawValue(t){this.clearRange(0,this.destructedValue.length),this.replaceChars(t,0),this.cursorPos=Math.min(this.cursorPos,this.value.length)}applyChangeFrom(t,e){const n=nl(this.value,t);void 0!==e&&(n.start=Math.max(0,e-n.added));const r=this.buildBodySubstring(n,t),i=this.buildTailSubstring(n);this.cleanup(n);const o=this.firstEmptyHolderIndex(),a=this.calculateMaxShift(i,o);this.replaceChars(r,o,a);const l=this.firstEmptyHolderIndex();this.replaceChars(i,l),this.calculateCursorPosition(n,l)}buildBodySubstring(t,e){return e.substring(t.start,t.start+t.added)}buildTailSubstring(t){return this.collectValueRange(t.start+t.removed,this.destructedValue.length-1)}calculateMaxShift(t,e){if(this.filters.size<=1){let n=0,r=e;for(;r<this.destructedValue.length;)this.destructedValue[r]instanceof ol&&++n,++r;return Math.max(0,n-t.length)}const n=this.calculateInsertableSubstring(t,e);let r=0;for(;r<this.destructedValue.length&&n===this.calculateInsertableSubstring(t,e+r);)++r;return Math.max(0,r-1)}cleanup(t){if(0===t.added&&1===t.removed){let e=t.start;for(;e>=0;){const t=this.destructedValue[e];if(t instanceof ol&&null!==t.char){t.char=null;break}--e}}this.clearRange(t.start,this.destructedValue.length)}clearRange(t,e){let n=t;for(;n<e&&n<this.destructedValue.length;){const t=this.destructedValue[n];t instanceof ol&&(t.char=null),++n}}calculateCursorPosition(t,e){const n=this.firstEmptyHolderIndex();let r;r=t.start<n?Math.min(this.firstHolderAfter(e),this.value.length):n,this.cursorPos=r}calculateInsertableSubstring(t,e){let n="",r=e;const i=()=>{for(var t;r<this.destructedValue.length&&!(this.destructedValue[r]instanceof ol);)++r;return null===(t=this.destructedValue[r])||void 0===t?void 0:t.filter};return t.split("").forEach((t=>{const e=i();null!=e&&e.test(t)&&(n+=t,++r)})),n}collectValueRange(t,e){let n="",r=t;for(;r<=e;){const t=this.destructedValue[r];t instanceof ol&&null!==t.char&&(n+=t.char),++r}return n}replaceChars(t,e,n){let r=this.calculateInsertableSubstring(t,e);void 0!==n&&(r=r.substring(0,n));let i=e,o=0;for(;i<this.destructedValue.length&&o<r.length;){const t=this.destructedValue[i],e=r[o];t instanceof ol&&(t.char=e,++o),++i}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof ol);)++e;return e}}class ll extends al{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function sl(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class cl extends al{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1?arguments[1]:void 0;super({pattern:"",decoding:[],alwaysVisible:!1}),sl(this,"currencyFormatter",new Intl.NumberFormat),sl(this,"decimalSeparator","."),sl(this,"localeDigits",{}),sl(this,"trimZeroRegExp",new RegExp("")),this.logError=e,this.initFormatter(t)}updateCurrencyParams(t){const e=this.parseFormat(this.rawValue)||0;this.initFormatter(t);const n=e.toString().replace(".",this.decimalSeparator);this.applyChangeFrom(n)}initFormatter(t){try{this.currencyFormatter=new Intl.NumberFormat(t,{minimumFractionDigits:2,maximumFractionDigits:2}),this.decimalSeparator=this.currencyFormatter.format(0)[1],this.localeDigits=new Array(10).fill("").reduce(((t,e,n)=>(t[n]=this.currencyFormatter.format(n)[0],t)),{}),this.trimZeroRegExp=new RegExp("^".concat(this.localeDigits[0],"+"))}catch(e){this.onException(ct(e,{level:"error",additional:{locale:t}}))}}invalidateMaskDataForFormatted(t){const e=this.currencyFormatter.format(t),n=this.formatPattern(e),r=[{key:"#",filter:"[".concat([...Object.values(this.localeDigits)].join(""),"]"),placeholder:this.localeDigits[0]},{key:this.decimalSeparator,filter:"[".concat(this.decimalSeparator,"]"),placeholder:this.decimalSeparator}];this.updateMaskData({pattern:n,decoding:r,alwaysVisible:this.maskData.alwaysVisible},!1)}overrideRawValue(t){const e=this.parseFormat(t)||0;this.invalidateMaskDataForFormatted(e),super.overrideRawValue(t)}applyChangeFrom(t,e){const n=nl(this.value,t),r=this.value.lastIndexOf(this.decimalSeparator),i=t.lastIndexOf(this.decimalSeparator),o=r!==i||-1===r&&-1===i,a=this.validFormat(t,n);this.cleanup(n);const l=this.parseFormat(a)||0;o&&this.invalidateMaskDataForFormatted(l),this.replaceChars(a,0),this.value.length>n.start&&!this.isDigit(this.value[n.start])?this.cursorPos=null!=e?e:this.cursorPosition:this.cursorPos=Math.abs(this.value.length-(t.length-(null!=e?e:this.cursorPosition)))}parseFormat(t){return parseFloat(t.replace(/./g,(t=>this.localeDigits[t]||(t===this.decimalSeparator?".":""))))}formatPattern(t){let e="";for(const n of t)e+=this.isDigit(n)?"#":n;return e}validFormat(t,e){if(!t)return"";let n=-1,r=0;for(;r<t.length;){if(t[r]===this.decimalSeparator&&!this.inDiff(e,r)){n=r;break}r++}let i=-1;1===e.added&&0===e.removed&&[",","."].includes(t[e.start])&&(i=e.start);const o=this.currencyFormatter.resolvedOptions().maximumFractionDigits;let a=o;if(-1!==n)for(r=n;r<t.length;)this.isDigit(t[r])&&!this.inDiff(e,r)&&a--,r++;else{let n=!1;for(let r=0;r<t.length;r++){const i=t[r];i===this.decimalSeparator?n=!0:!this.inDiff(e,r)&&n&&this.isDigit(i)&&a--}}const l=t.includes(this.decimalSeparator)||-1!==i,s=[];r=t.length-1;let c=!1;for(;r>=0;){const u=t[r],d=s.length<=o;this.isDigit(u)?this.inDiff(e,r)&&!c&&l?a>0&&(s.push(u),a--):s.push(u):d&&-1===n&&r===i?(s.push(this.decimalSeparator),c=!0):!d||u!==this.decimalSeparator||n!==r&&-1!==n||(s.push(this.decimalSeparator),c=!0,n=r),r--}return s.reverse().join("").replace(this.trimZeroRegExp,"")}inDiff(t,e){return t.start<=e&&e<t.start+t.added}isDigit(t){return Boolean(this.localeDigits[t])}onException(t){this.logError(t)}}const ul=3;function dl(t){const e=t.textContent;let n=0;return"string"==typeof e&&(n+=e.length,t instanceof HTMLElement&&("DIV"===t.tagName||"BR"===t.tagName)&&++n),n}function hl(t,e){if(t.nodeType!==ul)if(t instanceof HTMLElement&&"BR"===t.tagName)try{const e=window.getSelection();if(e){e.removeAllRanges();const n=document.createRange(),r=t.parentNode,i=Array.from(r.childNodes).indexOf(t)+1;n.setStart(r,i),n.setEnd(r,i),e.addRange(n)}}catch(t){}else for(let n=0,r=t.childNodes.length;n<r;++n){const r=t.childNodes[n],i=dl(r);if(e<=i)return void hl(r,e);e-=i}else try{const n=window.getSelection();if(n){n.removeAllRanges();const r=document.createRange();r.setStart(t,e),r.setEnd(t,e),n.addRange(r)}}catch(t){}}function pl(t){let e,n;return e=new Hr({props:{cls:or("input",el,t[15]),style:t[14],customDescription:!0,customActions:"input",customPaddings:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[vl]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};32768&n[0]&&(r.cls=or("input",el,t[15])),16384&n[0]&&(r.style=t[14]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),802672&n[0]|134217728&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function fl(t){let e,n,r,i,o;return{c(){e=ye("input"),this.h()},l(t){e=De(t,"INPUT",{type:!0,inputmode:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,style:!0,placeholder:!0}),this.h()},h(){ke(e,"type",t[9]),ke(e,"inputmode",t[10]),ke(e,"class",n=el.input__input+" "+el.input__input_singleline),ke(e,"autocomplete","off"),ke(e,"autocapitalize","off"),ke(e,"aria-label",t[11]),ke(e,"style",r=Rn(t[13])),ke(e,"placeholder",t[18]),e.value=t[4]},m(n,r){ge(n,e,r),t[76](e),i||(o=[xe(e,"input",t[37]),xe(e,"mousedown",(function(){Wt(t[19]?t[38]:void 0)&&(t[19]?t[38]:void 0).apply(this,arguments)})),xe(e,"click",(function(){Wt(t[19]?t[39]:void 0)&&(t[19]?t[39]:void 0).apply(this,arguments)}))],i=!0)},p(n,i){t=n,512&i[0]&&ke(e,"type",t[9]),1024&i[0]&&ke(e,"inputmode",t[10]),2048&i[0]&&ke(e,"aria-label",t[11]),8192&i[0]&&r!==(r=Rn(t[13]))&&ke(e,"style",r),262144&i[0]&&ke(e,"placeholder",t[18]),16&i[0]&&e.value!==t[4]&&(e.value=t[4])},d(n){n&&me(e),t[76](null),i=!1,Lt(o)}}}function gl(t){let e,n,r,i,o,a,l,s,c,u,d,h,p=!t[8]&&t[18]&&ml(t);return{c(){e=ye("span"),p&&p.c(),n=be(),r=ye("span"),i=_e("​"),a=be(),l=ye("span"),this.h()},l(t){e=De(t,"SPAN",{class:!0});var o=Ce(e);p&&p.l(o),n=Se(o),r=De(o,"SPAN",{"aria-hidden":!0,style:!0});var s=Ce(r);i=je(s,"​"),s.forEach(me),a=Se(o),l=De(o,"SPAN",{class:!0,autocapitalize:!0,contenteditable:!0,"aria-label":!0,style:!0}),Ce(l).forEach(me),o.forEach(me),this.h()},h(){ke(r,"aria-hidden","true"),ke(r,"style",o=Rn(t[12])),ke(l,"class",s=el.input__input+" "+el.input__input_multiline),ke(l,"autocapitalize","off"),ke(l,"contenteditable","true"),ke(l,"aria-label",t[11]),ke(l,"style",c=Rn(t[13])),void 0===t[8]&&nn((()=>t[75].call(l))),ke(e,"class",u=el["input__scroll-wrapper"])},m(o,s){ge(o,e,s),p&&p.m(e,null),fe(e,n),fe(e,r),fe(r,i),fe(e,a),fe(e,l),t[74](l),void 0!==t[8]&&(l.innerText=t[8]),d||(h=[xe(l,"input",t[75]),xe(l,"input",t[37]),xe(l,"paste",$l),xe(l,"mousedown",(function(){Wt(t[19]?t[38]:void 0)&&(t[19]?t[38]:void 0).apply(this,arguments)})),xe(l,"click",(function(){Wt(t[19]?t[39]:void 0)&&(t[19]?t[39]:void 0).apply(this,arguments)}))],d=!0)},p(i,a){!(t=i)[8]&&t[18]?p?p.p(t,a):(p=ml(t),p.c(),p.m(e,n)):p&&(p.d(1),p=null),4096&a[0]&&o!==(o=Rn(t[12]))&&ke(r,"style",o),2048&a[0]&&ke(l,"aria-label",t[11]),8192&a[0]&&c!==(c=Rn(t[13]))&&ke(l,"style",c),256&a[0]&&t[8]!==l.innerText&&(l.innerText=t[8])},d(n){n&&me(e),p&&p.d(),t[74](null),d=!1,Lt(h)}}}function ml(t){let e,n,r,i;return{c(){e=ye("div"),n=_e(t[18]),this.h()},l(r){e=De(r,"DIV",{class:!0,"aria-hidden":!0,style:!0});var i=Ce(e);n=je(i,t[18]),i.forEach(me),this.h()},h(){ke(e,"class",r=el.input__placeholder),ke(e,"aria-hidden","true"),ke(e,"style",i=Rn(t[13]))},m(t,r){ge(t,e,r),fe(e,n)},p(t,r){262144&r[0]&&Ne(n,t[18]),8192&r[0]&&i!==(i=Rn(t[13]))&&ke(e,"style",i)},d(t){t&&me(e)}}}function vl(t){let e;function n(t,e){return t[5]?gl:fl}let r=n(t),i=r(t);return{c(){i.c(),e=we()},l(t){i.l(t),e=we()},m(t,n){i.m(t,n),ge(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){i.d(t),t&&me(e)}}}function yl(t){let e,n,r=!t[7]&&pl(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){t[7]?r&&(hn(),gn(r,1,1,(()=>{r=null})),pn()):r?(r.p(t,n),128&n[0]&&fn(r,1)):(r=pl(t),r.c(),fn(r,1),r.m(e.parentNode,e))},i(t){n||(fn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function $l(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function _l(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,E,C,A,V,D,P,j=Ot,S=Ot;var N;t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S()));let{json:F={}}=e,{templateContext:I}=e,{origJson:M}=e,{layoutParams:T}=e;const z=He(On);let O,J=!1,B=null;const R=F.text_variable,U=null===(N=F.mask)||void 0===N?void 0:N.raw_text_variable;let L=!1;R||(L=!0,z.logError(ct(new Error('Missing "text_variable" in "input"'))));let W=R&&z.getVariable(R,"string")||Nn("temp","string","");Yt(t,W,(t=>n(56,d=t)));let H=U&&z.getVariable(U,"string")||Nn("temp","string","");Yt(t,H,(t=>n(57,h=t)));let q="",G="";const K=z.getDerivedFromVars(F.mask);Yt(t,K,(t=>n(61,m=t)));const X=z.getDerivedFromVars(F.hint_text);Yt(t,X,(t=>n(73,D=t)));const Y=z.getDerivedFromVars(F.hint_color);Yt(t,Y,(t=>n(72,V=t)));let Z="";const Q=z.getDerivedFromVars(F.font_size);Yt(t,Q,(t=>n(71,A=t)));let tt=12;const et=z.getDerivedFromVars(F.font_weight);Yt(t,et,(t=>n(70,C=t)));const nt=z.getDerivedFromVars(F.font_family);let rt;Yt(t,nt,(t=>n(69,E=t)));let it="";const ot=z.getDerivedFromVars(F.line_height);let at;Yt(t,ot,(t=>n(68,x=t)));const lt=z.getDerivedFromVars(F.letter_spacing);Yt(t,lt,(t=>n(67,w=t)));let st="";const ut=z.getDerivedFromVars(F.text_color);Yt(t,ut,(t=>n(66,b=t)));let dt="#000";const ht=z.getDerivedFromVars(F.highlight_color);Yt(t,ht,(t=>n(65,_=t)));let pt="";const ft=z.getDerivedFromVars(F.text_alignment_horizontal);Yt(t,ft,(t=>n(64,$=t)));let gt="left";const mt=z.getDerivedFromVars(F.text_alignment_vertical);Yt(t,mt,(t=>n(63,y=t)));let vt="center";const yt=z.getDerivedFromVars(F.keyboard_type);Yt(t,yt,(t=>n(62,v=t)));const $t={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};let _t="multi_line_text",bt="text";const wt=document&&"inputMode"in document.createElement("input");let xt;const kt=z.getDerivedFromVars(F.max_visible_lines);Yt(t,kt,(t=>n(60,g=t)));let Et="",Ct=null,At="",Vt="",Dt="";const Pt=z.getDerivedFromVars(F.select_all_on_focus);function jt(t){O instanceof HTMLInputElement?n(6,O.selectionStart=n(6,O.selectionEnd=t,O),O):hl(O,t)}async function St(){if(!O||!B)return;B.overrideRawValue(h),H.set(B.rawValue),re(W,d=n(4,q=n(8,G=B.value)),d);const t=B.cursorPosition;await en(),document.activeElement===O&&jt(t)}return Yt(t,Pt,(t=>n(19,P=t))),Ue((()=>{O&&B&&h&&(B.overrideRawValue(h),re(W,d=n(4,q=n(8,G=B.value)),d))})),t.$$set=t=>{"json"in t&&n(0,F=t.json),"templateContext"in t&&n(1,I=t.templateContext),"origJson"in t&&n(2,M=t.origJson),"layoutParams"in t&&n(3,T=t.layoutParams)},t.$$.update=()=>{if(1073741824&t.$$.dirty[1]&&("fixed_length"===(null==(e=m)?void 0:e.type)?n(40,B=function(t,e,n){if("string"==typeof t.pattern&&Array.isArray(t.pattern_elements)&&t.pattern_elements.every((t=>t.key&&"string"==typeof t.key))){const r={pattern:t.pattern,alwaysVisible:Boolean(t.always_visible),decoding:t.pattern_elements.map((t=>({key:t.key,filter:t.regex&&"string"==typeof t.regex?t.regex:void 0,placeholder:t.placeholder&&"string"==typeof t.placeholder?t.placeholder:"_"})))};return n?(n.updateMaskData(r),n):new ll(r,e)}return n||null}(e,z.logError,B)):"currency"===(null==e?void 0:e.type)&&n(40,B=function(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new cl(t.locale,e)}(e,z.logError,B)),B&&St()),16&t.$$.dirty[0]|33554944&t.$$.dirty[1]&&(B||q===d||n(4,q=n(8,G=d))),67109376&t.$$.dirty[1]&&B&&B.rawValue!==h&&St(),2048&t.$$.dirty[2]&&n(18,r=D),1024&t.$$.dirty[1]|1024&t.$$.dirty[2]&&n(41,Z=k(V,1,Z)),2048&t.$$.dirty[1]|512&t.$$.dirty[2]&&n(42,tt=Gr(A,tt)),4096&t.$$.dirty[1]|384&t.$$.dirty[2]&&(n(43,rt=Xr(C,rt)),n(44,it=E&&"string"==typeof E?z.typefaceProvider(E,{fontWeight:rt||400}):"")),2048&t.$$.dirty[1]|64&t.$$.dirty[2]){const t=x;Pr(t)&&n(45,at=t/tt)}var e;32&t.$$.dirty[2]&&cr(w)&&n(46,st=Un(w)),65536&t.$$.dirty[1]|16&t.$$.dirty[2]&&n(47,dt=k(b,1,dt)),131072&t.$$.dirty[1]|8&t.$$.dirty[2]&&n(48,pt=k(_,1,pt)),262144&t.$$.dirty[1]|4&t.$$.dirty[2]&&n(49,gt=ni($,gt)),524288&t.$$.dirty[1]|2&t.$$.dirty[2]&&n(50,vt=ri(y,vt)),1073741824&t.$$.dirty[1]|1&t.$$.dirty[2]&&(v&&v in $t&&(n(9,bt=$t[v]),n(51,_t=v)),"currency"===(null==m?void 0:m.type)&&(n(9,bt=wt?"text":"tel"),n(10,xt="decimal"))),1048576&t.$$.dirty[1]&&n(5,i="multi_line_text"===_t),1&t.$$.dirty[0]&&(n(17,o=z.getDerivedFromVars(F.paddings)),S(),S=Xt(o,(t=>n(59,f=t)))),809519104&t.$$.dirty[1]&&(Pr(g)&&n(52,Et="calc(".concat(g*(at||1.25)*(tt/10)+"em"," + ").concat(Ln(hr(null==f?void 0:f.top,0)+hr(null==f?void 0:f.bottom,0)),")")),n(53,Ct=$r(f||void 0,Ct)),n(54,At=Ct?sr({top:(Number(Ct.top)||0)/tt*10,right:(Number(Ct.right)||0)/tt*10,bottom:(Number(Ct.bottom)||0)/tt*10,left:(Number(Ct.left)||0)/tt*10}):""),n(55,Vt=Ct?sr({top:(Number(Ct.top)||0)/tt*10,bottom:(Number(Ct.bottom)||0)/tt*10}):"")),1&t.$$.dirty[0]&&(n(16,a=z.getDerivedFromVars(F.accessibility)),j(),j=Xt(a,(t=>n(58,p=t)))),134217728&t.$$.dirty[1]&&((null==p?void 0:p.description)?n(11,Dt=p.description):z.logError(ct(new Error('Missing accessibility "description" for input'),{level:"warn"}))),32&t.$$.dirty[0]|917504&t.$$.dirty[1]&&n(15,l={"highlight-color":Boolean(pt),multiline:i,"alignment-horizontal":gt,"alignment-vertical":vt}),2356224&t.$$.dirty[1]&&n(14,s={"--divkit-input-hint-color":Z,"--divkit-input-highlight-color":pt,"--divkit-input-line-height":at,"font-weight":rt,"font-family":it,"letter-spacing":st,color:dt,"max-height":Et}),8390656&t.$$.dirty[1]&&n(13,c={"font-size":Un(tt),padding:At}),16779264&t.$$.dirty[1]&&n(12,u={"font-size":Un(tt),padding:Vt})},[F,I,M,T,q,i,O,L,G,bt,xt,Dt,u,c,s,l,a,o,r,P,W,H,K,X,Y,Q,et,nt,ot,lt,ut,ht,ft,mt,yt,kt,Pt,function(t){let e=(i?t.target.innerText:t.target.value)||"";"\n"===e&&(e=""),q!==e&&(n(4,q=n(8,G=e)),W.setValue(e),B&&async function(){if(!O||!B)return;B.applyChangeFrom(q,O instanceof HTMLInputElement?null===O.selectionEnd?void 0:O.selectionEnd:function(t){try{let n=0;const r=window.getSelection();if(!r)return 0;const i=r.getRangeAt(0);let o;if(i){if(!i.collapsed)return 0;n+=i.endOffset,o=i.endContainer}if(o instanceof HTMLElement){let t=0;for(let e=0,r=Math.min(n,o.childNodes.length);e<r;++e)t+=dl(o.childNodes[e]);n=t}for(;o&&o!==t;){var e;const t=o.parentNode;if(!t)return 0;const r=Array.from(t.childNodes).indexOf(o);for(let e=0;e<r;++e)n+=dl(t.childNodes[e]);o instanceof HTMLElement&&("DIV"===o.tagName&&(null===(e=t.childNodes[r-1])||void 0===e?void 0:e.nodeType)===ul||"BR"===o.tagName)&&++n,o=t}return n}catch(t){return 0}}(O)),H.set(B.rawValue),re(W,d=n(4,q=n(8,G=B.value)),d);const t=B.cursorPosition;await en(),document.activeElement===O&&jt(t)}())},function(){J=!1,setTimeout((()=>{J=!0}),250)},function(){if(!J)if(O instanceof HTMLInputElement)O.select();else{const t=window.getSelection(),e=document.createRange();e.selectNodeContents(O),t&&(t.removeAllRanges(),t.addRange(e))}},B,Z,tt,rt,it,at,st,dt,pt,gt,vt,_t,Et,Ct,At,Vt,d,h,p,f,g,m,v,y,$,_,b,w,x,E,C,A,V,D,function(t){Ke[t?"unshift":"push"]((()=>{O=t,n(6,O)}))},function(){G=this.innerText,n(8,G),n(40,B),n(4,q),n(56,d)},function(t){Ke[t?"unshift":"push"]((()=>{O=t,n(6,O)}))}]}const bl={select:"divkit-feef3","select__select-text":"divkit-cd862",select_hint:"divkit-a3cf6",select__select:"divkit-bdb72",select__option:"divkit-e774b"};function wl(t,e,n){const r=t.slice();return r[49]=e[n],r}function xl(t){let e,n;return e=new Hr({props:{cls:or("select",bl,t[11]),style:t[10],customDescription:!0,customActions:"select",customPaddings:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[El]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=or("select",bl,t[11])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),9136&n[0]|2097152&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function kl(t){let e,n,r,i,o=(t[49].text||t[49].value)+"";return{c(){e=ye("option"),n=_e(o),this.h()},l(t){e=De(t,"OPTION",{class:!0});var r=Ce(e);n=je(r,o),r.forEach(me),this.h()},h(){ke(e,"class",r=bl.select__option),e.__value=i=t[49].value,e.value=e.__value},m(t,r){ge(t,e,r),fe(e,n)},p:Ot,d(t){t&&me(e)}}}function El(t){let e,n,r,i,o,a,l,s,c,u,d=(t[4]||t[13]||"​")+"",h=t[16],p=[];for(let e=0;e<h.length;e+=1)p[e]=kl(wl(t,h,e));return{c(){e=ye("span"),n=_e(d),o=be(),a=ye("select");for(let t=0;t<p.length;t+=1)p[t].c();this.h()},l(t){e=De(t,"SPAN",{class:!0,style:!0,"aria-hidden":!0});var r=Ce(e);n=je(r,d),r.forEach(me),o=Se(t),a=De(t,"SELECT",{class:!0,"aria-label":!0,style:!0});var i=Ce(a);for(let t=0;t<p.length;t+=1)p[t].l(i);i.forEach(me),this.h()},h(){ke(e,"class",r=bl["select__select-text"]),ke(e,"style",i=Rn(t[9])),ke(e,"aria-hidden","true"),ke(a,"class",l=bl.select__select),ke(a,"aria-label",t[7]),ke(a,"style",s=Rn(t[8])),void 0===t[5]&&nn((()=>t[44].call(a)))},m(r,i){ge(r,e,i),fe(e,n),ge(r,o,i),ge(r,a,i);for(let t=0;t<p.length;t+=1)p[t]&&p[t].m(a,null);Ie(a,t[5],!0),c||(u=xe(a,"change",t[44]),c=!0)},p(t,r){if(8208&r[0]&&d!==(d=(t[4]||t[13]||"​")+"")&&Ne(n,d),512&r[0]&&i!==(i=Rn(t[9]))&&ke(e,"style",i),65536&r[0]){let e;for(h=t[16],e=0;e<h.length;e+=1){const n=wl(t,h,e);p[e]?p[e].p(n,r):(p[e]=kl(n),p[e].c(),p[e].m(a,null))}for(;e<p.length;e+=1)p[e].d(1);p.length=h.length}128&r[0]&&ke(a,"aria-label",t[7]),256&r[0]&&s!==(s=Rn(t[8]))&&ke(a,"style",s),65568&r[0]&&Ie(a,t[5])},d(t){t&&me(e),t&&me(o),t&&me(a),ve(p,t),c=!1,u()}}}function Cl(t){let e,n,r=!t[6]&&xl(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){t[6]?r&&(hn(),gn(r,1,1,(()=>{r=null})),pn()):r?(r.p(t,n),64&n[0]&&fn(r,1)):(r=xl(t),r.c(),fn(r,1),r.m(e.parentNode,e))},i(t){n||(fn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function Al(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b=Ot,w=Ot;t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>w()));let{json:x={}}=e,{templateContext:E}=e,{origJson:C}=e,{layoutParams:A}=e;const V=He(On),D=x.value_variable;let P=!1;D||(P=!0,V.logError(ct(new Error('Missing "value_variable" in "select"'))));let j=D&&V.getVariable(D,"string")||Nn("temp","string","");Yt(t,j,(t=>n(5,_=t)));let S="";const N=x.options,F=Array.isArray(N)&&N.filter((t=>"string"==typeof t.value))||[];Array.isArray(F)&&F.length||V.logError(ct(new Error('Empty selection "items" in "select"')));let I="",M=null,T="";const z=V.getDerivedFromVars(x.hint_text);Yt(t,z,(t=>n(42,y=t)));const O=V.getDerivedFromVars(x.hint_color);Yt(t,O,(t=>n(41,v=t)));let J="rgba(0,0,0,.45)";const B=V.getDerivedFromVars(x.font_size);Yt(t,B,(t=>n(40,m=t)));let R=12;const U=V.getDerivedFromVars(x.font_weight);Yt(t,U,(t=>n(39,g=t)));const L=V.getDerivedFromVars(x.font_family);let W;Yt(t,L,(t=>n(38,f=t)));let H="";const q=V.getDerivedFromVars(x.line_height);let G;Yt(t,q,(t=>n(37,p=t)));const K=V.getDerivedFromVars(x.letter_spacing);Yt(t,K,(t=>n(36,h=t)));let X="";const Y=V.getDerivedFromVars(x.text_color);Yt(t,Y,(t=>n(35,d=t)));let Z="#000",Q="";return t.$$set=t=>{"json"in t&&n(0,x=t.json),"templateContext"in t&&n(1,E=t.templateContext),"origJson"in t&&n(2,C=t.origJson),"layoutParams"in t&&n(3,A=t.layoutParams)},t.$$.update=()=>{if(32&t.$$.dirty[0]&&(S=_),32&t.$$.dirty[0]){const t=F.find((t=>t.value===_));t?n(4,I="string"==typeof t.text?t.text:t.value):(n(4,I=""),_&&V.logError(ct(new Error('Value from the variable was not found in the selection items for "select"'))))}if(1&t.$$.dirty[0]&&(n(14,r=V.getDerivedFromVars(x.paddings)),w(),w=Xt(r,(t=>n(43,$=t)))),268435456&t.$$.dirty[0]|512&t.$$.dirty[1]&&n(28,R=Gr(m,R)),301989888&t.$$.dirty[0]|4096&t.$$.dirty[1]&&(n(25,M=$r($||void 0,M)),n(26,T=M?sr({top:(Number(M.top)||0)/R*10,right:(Number(M.right)||0)/R*10,bottom:(Number(M.bottom)||0)/R*10,left:(Number(M.left)||0)/R*10}):"")),2048&t.$$.dirty[1]&&n(13,i=y),134217728&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(27,J=k(v,1,J)),536870912&t.$$.dirty[0]|384&t.$$.dirty[1]&&(n(29,W=Xr(g,W)),n(30,H=f&&"string"==typeof f?V.typefaceProvider(f,{fontWeight:W||400}):"")),268435456&t.$$.dirty[0]|64&t.$$.dirty[1]){const t=p;Pr(t)&&n(31,G=t/R)}268435456&t.$$.dirty[0]|32&t.$$.dirty[1]&&cr(h)&&n(32,X=Un(h/R*10)),20&t.$$.dirty[1]&&n(33,Z=k(d,1,Z)),1&t.$$.dirty[0]&&(n(12,o=V.getDerivedFromVars(x.accessibility)),b(),b=Xt(o,(t=>n(34,u=t)))),8&t.$$.dirty[1]&&((null==u?void 0:u.description)?n(7,Q=u.description):V.logError(ct(new Error('Missing accessibility "description" for select'),{level:"warn"}))),16&t.$$.dirty[0]&&n(11,a={hint:!I}),1744830464&t.$$.dirty[0]|4&t.$$.dirty[1]&&n(10,l={"--divkit-input-hint-color":J,"font-weight":W,"font-family":H,color:Z}),335544320&t.$$.dirty[0]|3&t.$$.dirty[1]&&n(9,s={padding:T,"font-size":Un(R),"line-height":G,"letter-spacing":X}),268435456&t.$$.dirty[0]|3&t.$$.dirty[1]&&n(8,c={"font-size":Un(R),"line-height":G,"letter-spacing":X})},[x,E,C,A,I,_,P,Q,c,s,l,a,o,i,r,j,F,z,O,B,U,L,q,K,Y,M,T,J,R,W,H,G,X,Z,u,d,h,p,f,g,m,v,y,$,function(){_=function(t){const e=t.querySelector(":checked");return e&&e.__value}(this),j.set(_),n(16,F)}]}const Vl={video__video:"divkit-c11f9"};function Dl(t,e,n){const r=t.slice();return r[32]=e[n],r}function Pl(t){let e,n;return e=new Hr({props:{cls:Vl.video,customActions:"video",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Sl]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1520&n[0]|16&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(fn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function jl(t){let e,n,r,i,o;return{c(){e=ye("source"),this.h()},l(t){e=De(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){qt(e.src,n=t[32].src)||ke(e,"src",n),ke(e,"type",r=t[32].type)},m(n,r){ge(n,e,r),i||(o=xe(e,"error",t[21]),i=!0)},p(t,i){16&i[0]&&!qt(e.src,n=t[32].src)&&ke(e,"src",n),16&i[0]&&r!==(r=t[32].type)&&ke(e,"type",r)},d(t){t&&me(e),i=!1,o()}}}function Sl(t){let e,n,r,i,o=t[4],a=[];for(let e=0;e<o.length;e+=1)a[e]=jl(Dl(t,o,e));return{c(){e=ye("video");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){e=De(t,"VIDEO",{class:!0,poster:!0});var n=Ce(e);for(let t=0;t<a.length;t+=1)a[t].l(n);n.forEach(me),this.h()},h(){ke(e,"class",n=Vl.video__video),e.playsInline=!0,e.loop=t[5],e.autoplay=t[6],e.muted=t[7],ke(e,"poster",t[8])},m(n,o){ge(n,e,o);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(e,null);t[27](e),r||(i=[xe(e,"timeupdate",t[16]),xe(e,"ended",t[17]),xe(e,"playing",t[18]),xe(e,"pause",t[19]),xe(e,"waiting",t[20]),xe(e,"error",t[21])],r=!0)},p(t,n){if(2097168&n[0]){let r;for(o=t[4],r=0;r<o.length;r+=1){const i=Dl(t,o,r);a[r]?a[r].p(i,n):(a[r]=jl(i),a[r].c(),a[r].m(e,null))}for(;r<a.length;r+=1)a[r].d(1);a.length=o.length}32&n[0]&&(e.loop=t[5]),64&n[0]&&(e.autoplay=t[6]),128&n[0]&&(e.muted=t[7]),256&n[0]&&ke(e,"poster",t[8])},d(n){n&&me(e),ve(a,n),t[27](null),r=!1,Lt(i)}}}function Nl(t){let e,n,r=!t[9]&&Pl(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){t[9]?r&&(hn(),gn(r,1,1,(()=>{r=null})),pn()):r?(r.p(t,n),512&n[0]&&fn(r,1)):(r=Pl(t),r.c(),fn(r,1),r.m(e.parentNode,e))},i(t){n||(fn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function Fl(t,e,n){let r,i,o,a,l,{json:s={}}=e,{templateContext:c}=e,{origJson:u}=e,{layoutParams:d}=e;const h=He(On);let p,f=!1,g=!1;const m=h.getDerivedFromVars(s.video_sources);Yt(t,m,(t=>n(26,l=t)));let v=[];const y=h.getDerivedFromVars(s.repeatable);Yt(t,y,(t=>n(25,a=t)));let $=!1;const _=h.getDerivedFromVars(s.autostart);Yt(t,_,(t=>n(24,o=t)));let b=!1;const w=h.getDerivedFromVars(s.muted);Yt(t,w,(t=>n(23,i=t)));let x=!1;const k=h.getDerivedFromVars(s.preview);let E;Yt(t,k,(t=>n(22,r=t)));const C=s.elapsed_time_variable;let A=C&&h.getVariable(C,"integer")||Nn("temp","integer",0);return A.subscribe((t=>{g?g=!1:p&&n(10,p.currentTime=Number(t)/1e3,p)})),!s.id||f||(null==d?void 0:d.fakeElement)||h.registerInstance(s.id,{pause(){null==p||p.pause()},start(){const t=null==p?void 0:p.play();t&&t.catch((t=>{h.logError(ct(new Error("Video playing error"),{level:"error",additional:{originalText:String(t)}}))}))}}),Le((()=>{!s.id||f||(null==d?void 0:d.fakeElement)||h.unregisterInstance(s.id)})),t.$$set=t=>{"json"in t&&n(0,s=t.json),"templateContext"in t&&n(1,c=t.templateContext),"origJson"in t&&n(2,u=t.origJson),"layoutParams"in t&&n(3,d=t.layoutParams)},t.$$.update=()=>{var e,s;67108880&t.$$.dirty[0]&&(n(4,(e=l,s=v,v=Array.isArray(e)&&e.length?e.filter((t=>"video_source"===(null==t?void 0:t.type)&&"string"==typeof t.url&&"string"==typeof t.mime_type)).map((t=>{const e={src:t.url};return t.mime_type&&(e.type=t.mime_type),e})):s)),v.length?n(9,f=!1):(n(9,f=!0),h.logError(ct(new Error('Missing "video_sources" in "video"'))))),33554464&t.$$.dirty[0]&&n(5,$=ii(a,$)),16777280&t.$$.dirty[0]&&n(6,b=ii(o,b)),8388736&t.$$.dirty[0]&&n(7,x=ii(i,x)),4194560&t.$$.dirty[0]&&n(8,E="string"==typeof r?Gi(r):E)},[s,c,u,d,v,$,b,x,E,f,p,m,y,_,w,k,function(){p&&(g=!0,A.setValue(Math.floor(1e3*p.currentTime)))},function(){const t=h.getJsonWithVars(s.end_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(s.resume_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(s.pause_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(s.buffering_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(s.fatal_actions);h.execAnyActions(t)},r,i,o,a,l,function(t){Ke[t?"unshift":"push"]((()=>{p=t,n(10,p)}))}]}const Il={};function Ml(t){let e,n,r;var i=t[5];function o(t){return{props:{json:t[3],templateContext:t[4],layoutParams:t[2],origJson:t[1]||t[0]}}}return i&&(e=Me(i,o(t))),{c(){e&&wn(e.$$.fragment),n=we()},l(t){e&&xn(e.$$.fragment,t),n=we()},m(t,i){e&&kn(e,t,i),ge(t,n,i),r=!0},p(t,r){const a={};if(8&r&&(a.json=t[3]),16&r&&(a.templateContext=t[4]),4&r&&(a.layoutParams=t[2]),3&r&&(a.origJson=t[1]||t[0]),32&r&&i!==(i=t[5])){if(e){hn();const t=e;gn(t.$$.fragment,1,0,(()=>{En(t,1)})),pn()}i?(e=Me(i,o(t)),wn(e.$$.fragment),fn(e.$$.fragment,1),kn(e,n.parentNode,n)):e=null}else i&&e.$set(a)},i(t){r||(e&&fn(e.$$.fragment,t),r=!0)},o(t){e&&gn(e.$$.fragment,t),r=!1},d(t){t&&me(n),e&&En(e,t)}}}function Tl(t){let e,n,r=t[5]&&Ml(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r?(r.p(t,i),32&i&&fn(r,1)):(r=Ml(t),r.c(),fn(r,1),r.m(e.parentNode,e)):r&&(hn(),gn(r,1,1,(()=>{r=null})),pn())},i(t){n||(fn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function zl(t,e,n){let{div:r}=e,{templateContext:i}=e,{origJson:o}=e,{layoutParams:a}=e;const l=He(On);let s,c,u;return t.$$set=t=>{"div"in t&&n(0,r=t.div),"templateContext"in t&&n(6,i=t.templateContext),"origJson"in t&&n(1,o=t.origJson),"layoutParams"in t&&n(2,a=t.layoutParams)},t.$$.update=()=>{if(121&t.$$.dirty&&(n(3,s=r),n(4,c=i),n(5,u=s&&Il[s.type]||void 0),!u&&(n(4,({templateContext:c,json:s}=l.processTemplate(s,c)),c,(n(3,s),n(0,r),n(6,i),n(5,u),n(4,c))),n(5,u=s&&Il[s.type]||void 0),!u))){let t;t=(null==s?void 0:s.type)&&l.hasTemplate(s.type)?"Recursive template":"Unknown component",l.logError(ct(new Error(t),{additional:{component:(null==s?void 0:s.type)||"<missing>"}}))}},[r,o,a,s,c,u,i]}Il.text=class extends An{constructor(t){super(),Cn(this,t,vi,mi,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Il.container=class extends An{constructor(t){super(),Cn(this,t,Ji,Oi,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Il.separator=class extends An{constructor(t){super(),Cn(this,t,Hi,Wi,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3})}},Il.image=io,Il.gif=io,Il.grid=class extends An{constructor(t){super(),Cn(this,t,go,fo,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Il.gallery=class extends An{constructor(t){super(),Cn(this,t,Po,Do,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},Il.tabs=class extends An{constructor(t){super(),Cn(this,t,qo,Ho,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1,-1])}},Il.state=class extends An{constructor(t){super(),Cn(this,t,Ea,xa,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3})}},Il.pager=class extends An{constructor(t){super(),Cn(this,t,Na,Sa,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Il.indicator=class extends An{constructor(t){super(),Cn(this,t,Ja,Oa,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Il.slider=class extends An{constructor(t){super(),Cn(this,t,tl,Za,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},Il.input=class extends An{constructor(t){super(),Cn(this,t,_l,yl,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},Il.select=class extends An{constructor(t){super(),Cn(this,t,Al,Cl,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Il.video=class extends An{constructor(t){super(),Cn(this,t,Fl,Nl,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}};const Ol=class extends An{constructor(t){super(),Cn(this,t,zl,Tl,Gt,{div:0,templateContext:6,origJson:1,layoutParams:2})}},Jl={"root-svg-filters":"divkit-dc22b"};function Bl(t,e,n){const r=t.slice();r[1]=e[n];const i=r[1].split(":");return r[2]=i[0],r[3]=i[1],r}function Rl(t){let e,n,r,i=[...Object.keys(t[0])],o=[];for(let e=0;e<i.length;e+=1)o[e]=Hl(Bl(t,i,e));return{c(){e=$e("svg"),n=$e("defs");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=Pe(t,"svg",{class:!0,"aria-hidden":!0});var r=Ce(e);n=Pe(r,"defs",{});var i=Ce(n);for(let t=0;t<o.length;t+=1)o[t].l(i);i.forEach(me),r.forEach(me),this.h()},h(){ke(e,"class",r=Jl["root-svg-filters"]),ke(e,"aria-hidden","true")},m(t,r){ge(t,e,r),fe(e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(n,null)},p(t,e){if(1&e){let r;for(i=[...Object.keys(t[0])],r=0;r<i.length;r+=1){const a=Bl(t,i,r);o[r]?o[r].p(a,e):(o[r]=Hl(a),o[r].c(),o[r].m(n,null))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}},d(t){t&&me(e),ve(o,t)}}}function Ul(t){let e,n;return{c(){e=$e("feBlend"),this.h()},l(t){e=Pe(t,"feBlend",{in2:!0,mode:!0}),Ce(e).forEach(me),this.h()},h(){ke(e,"in2","SourceGraphic"),ke(e,"mode",n=t[3])},m(t,n){ge(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&ke(e,"mode",n)},d(t){t&&me(e)}}}function Ll(t){let e;return{c(){e=$e("feComposite"),this.h()},l(t){e=Pe(t,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),Ce(e).forEach(me),this.h()},h(){ke(e,"in2","SourceGraphic"),ke(e,"operator","arithmetic"),ke(e,"k1","1"),ke(e,"k2","0"),ke(e,"k3","0"),ke(e,"k4","0")},m(t,n){ge(t,e,n)},p:Ot,d(t){t&&me(e)}}}function Wl(t){let e,n;return{c(){e=$e("feComposite"),this.h()},l(t){e=Pe(t,"feComposite",{in2:!0,operator:!0}),Ce(e).forEach(me),this.h()},h(){ke(e,"in2","SourceGraphic"),ke(e,"operator",n=t[3].split("_")[1])},m(t,n){ge(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&ke(e,"operator",n)},d(t){t&&me(e)}}}function Hl(t){let e,n,r,i;function o(t,e){return"source_in"===t[3]||"source_atop"===t[3]?Wl:"multiply"===t[3]?Ll:Ul}let a=o(t),l=a(t);return{c(){e=$e("filter"),n=$e("feFlood"),l.c(),this.h()},l(t){e=Pe(t,"filter",{id:!0});var r=Ce(e);n=Pe(r,"feFlood",{"flood-color":!0}),Ce(n).forEach(me),l.l(r),r.forEach(me),this.h()},h(){ke(n,"flood-color",r=t[2]),ke(e,"id",i=t[0][t[1]])},m(t,r){ge(t,e,r),fe(e,n),l.m(e,null)},p(t,s){1&s&&r!==(r=t[2])&&ke(n,"flood-color",r),a===(a=o(t))&&l?l.p(t,s):(l.d(1),l=a(t),l&&(l.c(),l.m(e,null))),1&s&&i!==(i=t[0][t[1]])&&ke(e,"id",i)},d(t){t&&me(e),l.d()}}}function ql(t){let e,n=Object.keys(t[0]).length,r=n&&Rl(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,n){r&&r.m(t,n),ge(t,e,n)},p(t,i){let[o]=i;1&o&&(n=Object.keys(t[0]).length),n?r?r.p(t,o):(r=Rl(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},i:Ot,o:Ot,d(t){r&&r.d(t),t&&me(e)}}}function Gl(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const Kl=class extends An{constructor(t){super(),Cn(this,t,Gl,ql,Gt,{svgFiltersMap:0})}};function Xl(t,e,n,r){const i=n[t.type];if(!i)return r(ct(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let o;const a={};for(o in e)e.hasOwnProperty(o)&&(a[o]=e[o]);for(o in t)"type"!==o&&"__proto__"!==o&&t.hasOwnProperty(o)&&(a[o]=t[o]);const l=function t(e,n){const r=Object.keys(n).filter((t=>"__proto__"!==t)),i=r.filter((t=>"$"!==t.charAt(0))),o=r.filter((t=>"$"===t.charAt(0)));return i.forEach((r=>{const i=n[r];"object"==typeof i&&null!==i?(e[r]=Array.isArray(i)?[]:{},t(e[r],i)):e[r]=i})),o.forEach((t=>{const r=n[t],i=a[r];if(void 0!==i){const n=t.substring(1);e[n]=i}})),e}({},i);for(o in t)"type"!==o&&"__proto__"!==o&&t.hasOwnProperty(o)&&(l[o]=t[o]);return{json:l,templateContext:a}}function Yl(){}function Zl(t){return{subscribe:e=>(e(t),Yl)}}class Ql{constructor(t){this.ast=t}apply(t,e){if(!function(t,e){let n=!1;return w(t,{Variable(t){e.has(t.id.name)||(n=!0)}}),n}(this.ast,t))try{const n=Tn(t,this.ast);n.warnings.forEach(e);const r=n.result;if("error"===r.type)return void e(ct(new Error("Expression execution error"),{additional:{message:r.value}}));const i=r.value;if(i instanceof Date)return A(i);if("boolean"===r.type)return Boolean(i);if("color"===r.type){const t=E(String(i));if(t)return M(t);e(ct(new Error("Expression execution error")))}return"integer"===r.type?i>2147483647||i<-2147483648?void e(ct(new Error("Expression result is out of 32-bit int range"))):Number(i):i}catch(t){return void e(ct(new Error("Expression execution error")))}}}function ts(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=v(t,{startRule:"JsonStringContents"}),r=N(n);return e.vars.push(...r),new Ql(n)}catch(e){return void n(ct(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>ts(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=ts(t[i],e,n);return r}}var r;return t}function es(t,e,n){if(t){if(t instanceof Ql)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>es(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=es(t[i],e,n);return r}}return t}function ns(t,e){const n={vars:[],hasExpression:!1},r=ts(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:t=>es(r,t,e)}}const rs={pagers:function(){return Dn(new Map)}},is=new Map,os=new Map;function as(t){const e=is.get(t)||Dn("");return is.has(t)||is.set(t,e),e}function ls(t){const e=os.get(t)||new Map;return os.has(t)||os.set(t,e),e}class ss{setVariable(t){const e=t.getName(),n=ls(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),as(this).set(e)}getVariable(t){return ls(this).get(t)}}function cs(){return new ss}function us(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ds=new Set(["start","stop","pause","resume","cancel","reset"]);class hs{constructor(t){us(this,"timers",new Map),us(this,"awaitActions",[]),this.logError=t.logError,this.applyVars=t.applyVars,this.hasVariableWithType=t.hasVariableWithType,this.setVariableValue=t.setVariableValue,this.execAnyActions=t.execAnyActions,this.visibilityHandler=()=>{"visible"===document.visibilityState?(this.awaitActions.forEach((t=>{let{id:e,action:n}=t;this.execTimerAction(e,n)})),this.awaitActions=[],this.unholdAll()):this.holdAll()},document.addEventListener("visibilitychange",this.visibilityHandler)}destroy(){document.removeEventListener("visibilitychange",this.visibilityHandler);for(const[t,e]of this.timers)this.stopTimerTimeouts(e)}createTimer(t){null!=t&&t.id?t.duration||t.tick_interval&&(t.value_variable||t.tick_actions)?this.timers.set(t.id,{state:"stopped",definition:t}):this.logError(ct(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(ct(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&ds.has(e)))return void this.logError(ct(new Error("Incorrect timer action"),{additional:{id:t,action:e}}));const n=e;if("visible"!==document.visibilityState)return void this.awaitActions.push({id:t,action:n});const r=this.timers.get(t);this[n](r)}stopTimerTimeouts(t){t.durationTimeout&&(clearTimeout(t.durationTimeout),t.durationTimeout=void 0),t.tickTimeout&&(clearTimeout(t.tickTimeout),t.tickTimeout=void 0)}tickOrUnholdAction(t){const e=performance.now(),n=(t.durationPassed||0)+e-(t.durationStarted||0);t.duration&&n>t.duration||(this.updateVariable(t,n),this.callActions(t,"tick"),void 0!==t.tickCount&&++t.tickCount)}startOrResume(t){t.state="running",t.hold=!1,t.durationStarted=performance.now();const e=t.duration;e&&(t.durationTimeout=window.setTimeout((()=>{this.updateVariable(t,e),t.tickCountPredict&&void 0!==t.tickCount&&t.tickCount<t.tickCountPredict&&this.callActions(t,"tick"),this.stop(t)}),Math.max(0,e-(t.durationPassed||0))));const n=t.tick;if(n){const e=()=>{const r=t.tickStarted=performance.now(),i=Math.max(0,n-(t.tickPassed||0));t.tickTimeout=window.setTimeout((()=>{this.tickOrUnholdAction(t),t.tickPassed=(performance.now()-r-i)%n,e()}),i)};e()}}start(t){if("running"===t.state)return void this.logError(ct(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(ct(new Error("The timer is paused")));const e=t.definition.value_variable;!e||this.hasVariableWithType(e,"integer")?(e&&this.setVariableValue(e,0),t.definition.duration&&(t.duration=this.applyVars(t.definition.duration)),t.definition.tick_interval&&(t.tick=this.applyVars(t.definition.tick_interval)),void 0!==t.duration&&t.duration<0||void 0!==t.tick&&t.tick<=0?this.logError(ct(new Error("Incorrect timer properties"),{additional:{id:t.definition.id}})):(void 0!==t.duration&&void 0!==t.tick&&(t.tickCount=0,t.tickCountPredict=Math.floor(t.duration/t.tick)),this.startOrResume(t))):this.logError(ct(new Error("Cannot find variable"),{additional:{name:e}}))}stop(t){"stopped"!==t.state?(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t),this.callActions(t,"end")):this.logError(ct(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(ct(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(ct(new Error("The timer has already been paused")));t.state="paused",this.stopTimerTimeouts(t);const e=performance.now();t.durationStarted&&(t.durationPassed=(t.durationPassed||0)+e-t.durationStarted),t.tickStarted&&(t.tickPassed=(t.tickPassed||0)+e-t.tickStarted);const n=t.definition.value_variable;n&&t.durationPassed&&this.setVariableValue(n,Math.round(t.durationPassed))}resume(t){"stopped"!==t.state?"running"!==t.state?this.startOrResume(t):this.logError(ct(new Error("The timer is already running"))):this.logError(ct(new Error("The timer has already been stopped")))}cancel(t){"stopped"!==t.state&&(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t))}reset(t){this.cancel(t),this.start(t)}updateVariable(t,e){const n=t.definition.value_variable;n&&this.setVariableValue(n,Math.round(e))}callActions(t,e){const n=t.definition["end"===e?"end_actions":"tick_actions"];if(n){const t=this.applyVars(n);this.execAnyActions(t,!1)}}holdAll(){for(const[t,e]of this.timers)"running"===e.state&&(e.hold=!0,this.stopTimerTimeouts(e))}unholdAll(){for(const[t,e]of this.timers)if("running"===e.state&&e.hold){const t=performance.now();e.durationStarted&&(e.durationPassed=(e.durationPassed||0)+t-e.durationStarted),e.tickStarted&&(e.tickPassed=(e.tickPassed||0)+t-e.tickStarted),e.tick&&this.tickOrUnholdAction(e),this.startOrResume(e)}}}function ps(t){let e,n,r,i,o,a,l,s;return n=new Kl({props:{svgFiltersMap:t[2]}}),i=new Ol({props:{div:t[3],templateContext:t[6]}}),{c(){e=ye("div"),wn(n.$$.fragment),r=be(),wn(i.$$.fragment),this.h()},l(t){e=De(t,"DIV",{class:!0});var o=Ce(e);xn(n.$$.fragment,o),r=Se(o),xn(i.$$.fragment,o),o.forEach(me),this.h()},h(){ke(e,"class",o=""+(zn.root+(t[4]?" ".concat(zn.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):"")))},m(t,o){ge(t,e,o),kn(n,e,null),fe(e,r),kn(i,e,null),a=!0,l||(s=xe(e,"touchstart",gs,{passive:!0}),l=!0)},p(t,r){const l={};4&r[0]&&(l.svgFiltersMap=t[2]),n.$set(l);const s={};8&r[0]&&(s.div=t[3]),i.$set(s),(!a||17&r[0]&&o!==(o=""+(zn.root+(t[4]?" ".concat(zn.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))))&&ke(e,"class",o)},i(t){a||(fn(n.$$.fragment,t),fn(i.$$.fragment,t),a=!0)},o(t){gn(n.$$.fragment,t),gn(i.$$.fragment,t),a=!1},d(t){t&&me(e),En(n),En(i),l=!1,s()}}}function fs(t){let e,n,r=!t[1]&&t[3]&&ps(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){!t[1]&&t[3]?r?(r.p(t,n),10&n[0]&&fn(r,1)):(r=ps(t),r.c(),fn(r,1),r.m(e.parentNode,e)):r&&(hn(),gn(r,1,1,(()=>{r=null})),pn())},i(t){n||(fn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function gs(){}function ms(t,e,n){let r;var i,o,a,l;let{id:s}=e,{json:c={}}=e,{platform:u="auto"}=e,{theme:d="system"}=e,{globalVariablesController:h=new ss}=e,{mix:p=""}=e,{customization:f={}}=e,{builtinProtocols:g=["http","https","tel","mailto","intent"]}=e,{extensions:m=new Map}=e,{onError:y}=e,{onStat:$}=e,{onCustomAction:_}=e,{onComponent:b}=e,{typefaceProvider:w=(t=>"")}=e,x=Dn("desktop"===u);if(Yt(t,x,(t=>n(4,r=t))),"auto"===u&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");x.set(!t.matches),t.addListener((()=>{x.set(!t.matches)}))}let k="light",E=null;function C(){"system"===d&&E&&n(23,k=E.matches?"dark":"light")}const A=new Set(g);let V=!1;c||(V=!0,J(ct(new Error('"json" prop is required')))),s||(V=!0,J(ct(new Error('"id" prop is required'))));let D=function(t){if(!t)return ct(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return ct(new Error("Missing card"));if(!e.states||!e.states.length)return ct(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in Il)return ct(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return ct(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return ct(new Error("Missing state_id"),{additional:{index:t}})}return null}(c);const P=c.templates||{};D&&(V=!0,J(D));const j={stateChange:!1},S=as(h),F=ls(h),I=new Map,M=new Map,T=new Map;let z=null;function O(t){const e=ns(t,J);return e.hasExpression?e.applyVars(M):t}function J(t){y?y({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function B(t,e){$&&$({type:t,action:e})}let R=0;function U(t){return"".concat(s,"-").concat(R++)}let L={},W={};function H(t){const e=t.url?String(t.url):"";if(e)try{const t=e.replace(/div-action:\/\//,""),n=/([^?]+)\?(.+)/.exec(t);if(!n)return;const r=new URLSearchParams(n[2]);switch(n[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=Q,n=t.split("/");if(n=["root",...n],n.length<2||n.length%2!=0)throw new Error("Incorrect state id format");for(let t=0;t<n.length;t+=2){const r=n[t],i=n[t+1];let o=e.getChild(r);if(!o)return;o.setState(i),e=o}}(r.get("state_id"));break;case"set_current_item":!function(t,e){if(!t||!e)throw new Error('Missing data for "set-current-item" action');if(isNaN(Number(e)))throw new Error('Incorrect item for "set-current-item" action');const n=X(t);n&&n.setCurrentItem(Number(e))}(r.get("id"),r.get("item"));break;case"set_previous_item":!function(t,e){if(!t)throw new Error('Missing id for "set-previous-item" action');if(e&&"clamp"!==e&&"ring"!==e)throw new Error('Incorrect overflow value for "set-previous-item" action');e=e||"clamp";const n=X(t);n&&n.setPreviousItem(e)}(r.get("id"),r.get("overflow"));break;case"set_next_item":!function(t,e){if(!t)throw new Error('Missing id for "set-next-item" action');if(e&&"clamp"!==e&&"ring"!==e)throw new Error('Incorrect overflow value for "set-next-item" action');e=e||"clamp";const n=X(t);n&&n.setNextItem(e)}(r.get("id"),r.get("overflow"));break;case"set_variable":const n=r.get("name"),i=r.get("value");if(n&&null!==i){const t=M.get(n);t?"dict"===t.getType()?J(ct(new Error("Setting dict variables is not supported"),{additional:{name:n}})):t.set(i):J(ct(new Error("Cannot find variable"),{additional:{name:n}}))}else J(ct(new Error("Incorrect set_variable_action"),{additional:{url:t}}));break;case"timer":const o=r.get("action"),a=r.get("id");z?z.execTimerAction(a,o):J(ct(new Error("Incorrect timer action"),{additional:{id:a,action:o}}));break;case"video":!function(t,e){if(t){const n=X(t);n?"start"===e?n.start():"pause"===e?n.pause():J(ct(new Error("Unknown video action"),{additional:{id:t,action:e}})):J(ct(new Error("Video component is not found"),{additional:{id:t,action:e}}))}else J(ct(new Error("Missing id in video action"),{additional:{action:e}}))}(r.get("id"),r.get("action"));break;default:J(ct(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){J(ct(t,{additional:{url:e}}))}}async function q(t,e){if(t&&Array.isArray(t)){for(let n=0;n<t.length;++n){let r=t[n];const i=r.url;if(i){const t=Zn(i);if(t)if(Qn(t,A)){if(e)if("_blank"===r.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=i)}else location.href=i}else"div-action"===t?(H(r),await en()):r.log_id&&(G(r),await en())}}t.forEach((t=>{t.log_id&&B("click",t)}))}}function G(t){null==_||_(t)}const K=new Map;function X(t){if(K.has(t))return K.get(t);J(ct(new Error("Missing instance with id"),{additional:{id:t}}))}const Y=new Map;function Z(t){for(const e of t)M.has(e)&&t.delete(e);return t}We(On,{logError:J,logStat:B,hasTemplate:function(t){return t in P},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in P;){if(({json:t,templateContext:e}=Xl(t,e,P,J)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:U,genClass:function(t){return"divkit-".concat(U())},execAction:H,execAnyActions:q,execCustomAction:G,isRunning:function(t){return j[t]},setRunning:function(t,e){j[t]=e},registerInstance:function(t,e){K.has(t)?J(ct(new Error("Duplicate instance id"),{additional:{id:t}})):K.set(t,e)},unregisterInstance:function(t){K.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(W[r]=W[r]||0,++W[r],L[r])return L[r];const i="".concat(U(),"-svg-filter");return n(2,L=Object.assign(Object.assign({},L),{[r]:i})),i},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);W[r]&&0==--W[r]&&n(2,L=Object.keys(L).reduce(((t,e)=>(W[e]&&(t[e]=L[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return Zl(t);const e=ns(t,J);return e.vars.length?Pn(e.vars.map((t=>M.get(t)||function(t){const e=T.get(t)||Dn(void 0);return T.has(t)||T.set(t,e),e}(t))).filter(Hn),(()=>e.applyVars(M))):e.hasExpression?Zl(e.applyVars(M)):Zl(t)},getJsonWithVars:O,getStore:function(t){return Y.has(t)||function(t){Y.has(t)||Y.set(t,rs[t]())}(t),Y.get(t)},getVariable:function(t,e){const n=M.get(t);if(n){const r=n.getType();if(r!==e)return void J(ct(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},getCustomization:function(t){return null==f?void 0:f[t]},getBuiltinProtocols:function(){return A},getExtension:function(t,e){const n=m.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:M,logError:J}},typefaceProvider:w,isDesktop:x,registerComponent:function(t){let{node:e,json:n,origJson:r,templateContext:i}=t;b&&b({type:"mount",node:e,json:n,origJson:r,templateContext:i})},unregisterComponent:function(t){let{node:e}=t;b&&b({type:"destroy",node:e})}}),We(wr,{hasAction:()=>!1});const Q={setState(t){throw new Error("Not implemented")},getChild(t){if(tt&&tt.has(t))return tt.get(t);J(ct(new Error("Missing state block with id"),{additional:{id:t}}))}};let tt=null;We(lr,{registerInstance(t,e){tt||(tt=new Map),tt.has(t)?J(ct(new Error("Duplicate state with id"),{additional:{id:t}})):tt.set(t,e)},unregisterInstance(t){null==tt||tt.delete(t)},runVisibilityTransition:(t,e,n,r,i)=>Promise.resolve(),registerChildWithTransitionIn:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionOut:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionChange:(t,e,n,r)=>Promise.resolve(),hasTransitionChange:t=>!1,registerChild(t){},unregisterChild(t){}});const et=null===(i=null==c?void 0:c.card)||void 0===i?void 0:i.variables;Array.isArray(et)&&et.forEach((t=>{if(t&&t.type in Sn&&t.name){if(I.has(t.name))return void J(ct(new Error("Duplicate variable"),{additional:{name:t.name}}));"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&J(ct(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=Nn(t.name,t.type,t.value);I.set(t.name,e),M.set(t.name,e)}catch(e){J(ct(e,{additional:{name:t.name}}))}}}));const nt=c.palette;nt&&nt[k].forEach((t=>{if(I.has(t.name))J(ct(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=Nn(t.name,"color",t.color);I.set(t.name,e),M.set(t.name,e)}catch(e){J(ct(e,{additional:{name:t.name}}))}}));for(const[t,e]of F)M.has(t)||M.set(t,e);S.subscribe((t=>{if(t&&!M.has(t)){const e=F.get(t);M.set(t,e);const n=T.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const rt=null===(o=null==c?void 0:c.card)||void 0===o?void 0:o.variable_triggers;Array.isArray(rt)&&rt.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void J(ct(new Error("variable_trigger has a condition that is not a string"),{additional:{condition:t.condition}}));const n=t.mode||"on_condition";if("on_variable"===n||"on_condition"===n)try{const r=v(t.condition,{startRule:"JsonStringContents"}),i=N(r);if(!i.length)return void J(ct(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return Z(e),e.size?new Promise((t=>{const n=S.subscribe((()=>{Z(e),e.size||(n(),t())}))})):Promise.resolve()})(i).then((()=>{Pn(i.map((t=>M.get(t))).filter(Hn),(()=>{const t=Tn(M,r);return t.warnings.forEach(J),t.result})).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=O(t);e.log_id&&H(e)})),e=Boolean(r.value)):J(ct(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){J(ct(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else J(ct(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));const it=null===(a=null==c?void 0:c.card)||void 0===a?void 0:a.timers;if(it){const t=z=new hs({logError:J,applyVars:O,hasVariableWithType:function(t,e){const n=M.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=M.get(t);n?n.setValue(e):J(ct(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:q});it.forEach((e=>t.createTimer(e)))}const ot=null===(l=null==c?void 0:c.card)||void 0===l?void 0:l.states;let at;return ot&&!V&&(at={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:ot.map((t=>({state_id:t.state_id.toString(),div:t.div})))}),Le((()=>{z&&z.destroy()})),t.$$set=t=>{"id"in t&&n(8,s=t.id),"json"in t&&n(9,c=t.json),"platform"in t&&n(10,u=t.platform),"theme"in t&&n(7,d=t.theme),"globalVariablesController"in t&&n(11,h=t.globalVariablesController),"mix"in t&&n(0,p=t.mix),"customization"in t&&n(12,f=t.customization),"builtinProtocols"in t&&n(13,g=t.builtinProtocols),"extensions"in t&&n(14,m=t.extensions),"onError"in t&&n(15,y=t.onError),"onStat"in t&&n(16,$=t.onStat),"onCustomAction"in t&&n(17,_=t.onCustomAction),"onComponent"in t&&n(18,b=t.onComponent),"typefaceProvider"in t&&n(19,w=t.typefaceProvider)},t.$$.update=()=>{16777344&t.$$.dirty[0]&&("light"===d||"dark"===d?n(23,k=d):"system"===d?"undefined"!=typeof matchMedia?(E||(n(24,E=matchMedia("(prefers-color-scheme: dark)")),E.addListener(C)),n(23,k=E.matches?"dark":"light")):n(23,k="light"):J(ct(new Error("Unsupported theme")))),8388608&t.$$.dirty[0]&&k&&nt&&nt[k].forEach((t=>{const e=M.get(t.name);e&&e.setValue(t.color)}))},[p,V,L,at,r,x,{},d,s,c,u,h,f,g,m,y,$,_,b,w,function(t){n(7,d=t)},function(){return I},H,k,E]}const vs=class extends An{constructor(t){super(),Cn(this,t,ms,fs,Gt,{id:8,json:9,platform:10,theme:7,globalVariablesController:11,mix:0,customization:12,builtinProtocols:13,extensions:14,onError:15,onStat:16,onCustomAction:17,onComponent:18,typefaceProvider:19,setTheme:20,getDebugVariables:21,execAction:22},null,[-1,-1,-1])}get setTheme(){return this.$$.ctx[20]}get getDebugVariables(){return this.$$.ctx[21]}get execAction(){return this.$$.ctx[22]}};class ys{constructor(t){var e,n,r;e=this,r={},n=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(n="sizeHistory"),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,this.widthVariableName=t.width_variable_name,this.heightVariableName=t.height_variable_name}setVariable(t,e){if(!this.context)return!1;if(t){const n=this.context.variables.get(t);if(n&&"integer"===n.getType()){if(e=Math.round(e),this.sizeHistory[t]||(this.sizeHistory[t]=new Set),!this.sizeHistory[t].has(e))return n.setValue(e),this.sizeHistory[t].add(e),!0}else{const e=new Error("Missing variable");e.level="error",e.additional={variableName:t},this.context.logError(e)}}return!1}recalcProps(){if(!this.node||!this.context)return!1;const t=this.node.getBoundingClientRect(),e=this.setVariable(this.widthVariableName,t.width),n=this.setVariable(this.heightVariableName,t.height);return e||n}mountView(t,e){var n;this.node=t,this.context=e,this.resizeObserver||"undefined"==typeof ResizeObserver||(this.resizeObserver=new ResizeObserver((async()=>{let t=0;for(;this.recalcProps();){if(++t>8){const t=new Error("Recursive layout in size_provider");t.level="warn",t.additional={widthVariableName:this.widthVariableName,heightVariableName:this.heightVariableName},e.logError(t);break}await en()}this.sizeHistory={}}))),null===(n=this.resizeObserver)||void 0===n||n.observe(t),this.recalcProps()}unmountView(t,e){var n;null===(n=this.resizeObserver)||void 0===n||n.disconnect(),this.resizeObserver=void 0}}function $s(t){return t instanceof HTMLElement}function _s(t){return class{constructor(t){this.params=t}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const r=Array.from(e.children).filter($s);r.forEach((t=>{t.style.display="none"})),this.wrapper=document.createElement("div"),this.wrapper.style.width="100%",this.wrapper.style.height="100%",e.appendChild(this.wrapper);const i=Number(this.params.repeat_count||-1),o=this.animItem=t({container:this.wrapper,path:this.params.lottie_url,animationData:this.params.lottie_json,renderer:"svg",loop:!0});if(this.animItem.addEventListener("data_failed",(()=>{var t;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""}));const e=new Error("Failed to load lottie animation");e.level="error",e.additional={url:this.params.lottie_url},n.logError(e)})),"reverse"===this.params.repeat_mode||-1!==i){let t=1,e=0;o.addEventListener("loopComplete",(()=>{++e,-1!==i&&e===i?(o.stop(),o.goToAndStop(o.totalFrames,!0)):("reverse"===this.params.repeat_mode&&(t*=-1,o.setDirection(t)),o.goToAndPlay(1===t?0:o.totalFrames,!0))}))}}unmountView(t,e){var n,r;null===(n=this.animItem)||void 0===n||n.destroy(),this.wrapper&&(null===(r=this.wrapper.parentNode)||void 0===r||r.removeChild(this.wrapper),this.wrapper=void 0)}}}function bs(t){return new vs({target:t.target,props:{id:t.id,json:t.json,globalVariablesController:t.globalVariablesController,mix:t.mix,customization:t.customization,builtinProtocols:t.builtinProtocols,extensions:t.extensions,onStat:t.onStat,onCustomAction:t.onCustomAction,onError:t.onError,onComponent:t.onComponent,typefaceProvider:t.typefaceProvider,platform:t.platform,theme:t.theme},hydrate:t.hydrate})}function ws(t,e){return xs(t,e).result}function xs(t,e){let n;try{n=v(t,{startRule:"json"===(null==e?void 0:e.type)?"JsonStringContents":"start"})}catch(t){return{result:{type:"error",value:"Unable to parse expression"},warnings:[]}}return Tn((null==e?void 0:e.variables)||new Map,n)}function ks(){return Array.from(y.keys())}(window.Ya=window.Ya||{}).Divkit=e})();
1
+ (()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{SizeProvider:()=>Vs,createGlobalVariablesController:()=>gs,createVariable:()=>Nn,evalExpression:()=>Ss,evalExpressionWithFullResult:()=>Ns,functionNames:()=>Fs,lottieExtensionBuilder:()=>Ps,render:()=>js,valToString:()=>V});const n="function"==typeof BigInt;function r(t){return n?BigInt(t):Number(t)}const i=r("9223372036854775807"),o=r("-9223372036854775808");function a(t){const e=r(t);if(e>i||e<o)throw new Error("Integer overflow.");return e}const l=a(0);function s(t){let e=t;return e<0&&(e=-e),e}function c(t){let e=0;return t>0?e=1:t<0&&(e=-1),a(e)}function u(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function d(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function h(t){if(t.every((t=>"string"==typeof t)))return{type:"StringLiteral",value:t.join("")};let e=t.reduce(((t,e)=>("string"==typeof e&&"string"==typeof t[t.length-1]?t[t.length-1]+=e:t.push(e),t)),[]).reduce(((t,e)=>("string"==typeof e?t.quasis.push({type:"StringLiteral",value:e}):(t.quasis.length===t.expressions.length&&t.quasis.push({type:"StringLiteral",value:""}),t.expressions.push(e)),t)),{type:"TemplateLiteral",quasis:[],expressions:[]});return e.quasis.length===e.expressions.length&&e.quasis.push({type:"StringLiteral",value:""}),e}function f(t){try{return a(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function p(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function g(t,e,n,r){var i=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(i,g.prototype),i.expected=e,i.found=n,i.location=r,i.name="SyntaxError",i}function m(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function v(t,e){var n,r={},i=(e=void 0!==e?e:{}).grammarSource,o={start:Ne,JsonStringContents:function(){var t,e,n;for(t=_e,e=[],n=Fe();n!==r;)e.push(n),n=Fe();return be=t,e=Tt(e)}},a=Ne,l="@{",s="}",c="@{}",m="\\",v="?",y=":",$="||",_="&&",b="==",w="!=",x=">=",k=">",E="<=",C="<",A="+",V="-",D="/",P="*",j="%",S="!",N="(",F=")",I=",",M="'",T=".",z="e",O="E",J="true",B="false",R=/^[^}]/,U=/^[^'}]/,L=/^[0-9]/,W=/^[a-zA-Z_0-9.]/,H=/^[a-zA-Z_]/,q=/^[ \t\r\n]/,G=Ae("@{",!1),K=Ae("}",!1),X=Ae("@{}",!1),Y=Ae("\\",!1),Z={type:"any"},Q=Ve(["}"],!0,!1),tt=Ae("?",!1),et=Ae(":",!1),nt=Ae("||",!1),rt=Ae("&&",!1),it=Ae("==",!1),ot=Ae("!=",!1),at=Ae(">=",!1),lt=Ae(">",!1),st=Ae("<=",!1),ct=Ae("<",!1),ut=Ae("+",!1),dt=Ae("-",!1),ht=Ae("/",!1),ft=Ae("*",!1),pt=Ae("%",!1),gt=Ae("!",!1),mt=Ae("(",!1),vt=Ae(")",!1),yt=Ae(",",!1),$t=De("string"),_t=Ae("'",!1),bt=Ve(["'","}"],!0,!1),wt=De("integer"),xt=Ve([["0","9"]],!1,!1),kt=De("number"),Et=Ae(".",!1),Ct=Ae("e",!1),At=Ae("E",!1),Vt=De("boolean"),Dt=Ae("true",!1),Pt=Ae("false",!1),jt=Ve([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),St=De("identifier"),Nt=Ve([["a","z"],["A","Z"],"_"],!1,!1),Ft=De("whitespace"),It=Ve([" ","\t","\r","\n"],!1,!1),Mt=function(t){return t},Tt=function(t){return h(t)},zt=function(t){return t},Ot=function(){return""},Jt=function(){return Ce()},Bt=function(){throw new Error("Error tokenizing '"+t+"'.")},Rt=function(){throw new Error("Error tokenizing '"+t+"'.")},Ut=function(t){return t},Lt=function(t){return p(t)},Wt=function(){throw new Error("Error tokenizing '"+t+"'.")},Ht=function(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}},qt=function(t,e){return d(t,e)},Gt=function(t,e){return d(t,e)},Kt=function(t,e){return u(t,e)},Xt=function(t,e){return u(t,e)},Yt=function(t,e){return u(t,e)},Zt=function(t,e){return u(t,e)},Qt=function(t,e){return{type:"UnaryExpression",operator:t,argument:e}},te=function(t,e){return{type:"CallExpression",callee:t,arguments:e}},ee=function(t){return{type:"Variable",id:t}},ne=function(t,e){return[t,...e]},re=function(t){return t},ie=function(t){return t},oe=function(t){return h(t)},ae=function(t){return t},le=function(){return""},se=function(){return Ce()},ce=function(){throw new Error("Error tokenizing '"+t+"'.")},ue=function(){throw new Error("Error tokenizing '"+t+"'.")},de=function(t){return t},he=function(t){return p(t)},fe=function(){throw new Error("Error tokenizing '"+t+"'.")},pe=function(){return{type:"IntegerLiteral",value:f(Ce())}},ge=function(){return{type:"NumberLiteral",value:parseFloat(Ce())}},me=function(){return{type:"NumberLiteral",value:parseFloat(Ce())}},ve=function(){return{type:"BooleanLiteral",value:!0}},ye=function(){return{type:"BooleanLiteral",value:!1}},$e=function(){return{type:"Identifier",name:Ce()}},_e=0,be=0,we=[{line:1,column:1}],xe=0,ke=[],Ee=0;if("startRule"in e){if(!(e.startRule in o))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=o[e.startRule]}function Ce(){return t.substring(be,_e)}function Ae(t,e){return{type:"literal",text:t,ignoreCase:e}}function Ve(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function De(t){return{type:"other",description:t}}function Pe(e){var n,r=we[e];if(r)return r;for(n=e-1;!we[n];)n--;for(r={line:(r=we[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return we[e]=r,r}function je(t,e,n){var r=Pe(t),o=Pe(e),a={source:i,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:o.line,column:o.column}};return n&&i&&"function"==typeof i.offset&&(a.start=i.offset(a.start),a.end=i.offset(a.end)),a}function Se(t){_e<xe||(_e>xe&&(xe=_e,ke=[]),ke.push(t))}function Ne(){var t,e;return t=_e,qe(),(e=Ie())!==r?(qe(),be=t,t=Mt(e)):(_e=t,t=r),t}function Fe(){var e,n,i,o,a;if(e=_e,t.substr(_e,2)===l?(n=l,_e+=2):(n=r,0===Ee&&Se(G)),n!==r?(i=qe(),(o=Ie())!==r?(qe(),125===t.charCodeAt(_e)?(a=s,_e++):(a=r,0===Ee&&Se(K)),a!==r?(be=e,e=zt(o)):(_e=e,e=r)):(_e=e,e=r)):(_e=e,e=r),e===r&&(e=_e,t.substr(_e,3)===c?(n=c,_e+=3):(n=r,0===Ee&&Se(X)),n!==r&&(be=e,n=Ot()),(e=n)===r&&(e=_e,n=_e,Ee++,92===t.charCodeAt(_e)?(i=m,_e++):(i=r,0===Ee&&Se(Y)),i===r&&(t.substr(_e,2)===l?(i=l,_e+=2):(i=r,0===Ee&&Se(G))),Ee--,i===r?n=void 0:(_e=n,n=r),n!==r?(t.length>_e?(i=t.charAt(_e),_e++):(i=r,0===Ee&&Se(Z)),i!==r?(be=e,e=Jt()):(_e=e,e=r)):(_e=e,e=r),e===r))){if(e=_e,t.substr(_e,2)===l?(n=l,_e+=2):(n=r,0===Ee&&Se(G)),n!==r){if(i=[],R.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=r,0===Ee&&Se(Q)),o!==r)for(;o!==r;)i.push(o),R.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=r,0===Ee&&Se(Q));else i=r;i!==r?(125===t.charCodeAt(_e)?(o=s,_e++):(o=r,0===Ee&&Se(K)),o!==r?(be=e,e=Bt()):(_e=e,e=r)):(_e=e,e=r)}else _e=e,e=r;e===r&&(e=_e,t.substr(_e,2)===l?(n=l,_e+=2):(n=r,0===Ee&&Se(G)),n!==r&&(be=e,n=Rt()),(e=n)===r&&(e=_e,92===t.charCodeAt(_e)?(n=m,_e++):(n=r,0===Ee&&Se(Y)),n!==r?(t.substr(_e,2)===l?(i=l,_e+=2):(i=r,0===Ee&&Se(G)),i!==r?(be=e,e=Ut(i)):(_e=e,e=r)):(_e=e,e=r),e===r&&(e=_e,92===t.charCodeAt(_e)?(n=m,_e++):(n=r,0===Ee&&Se(Y)),n!==r?(t.length>_e?(i=t.charAt(_e),_e++):(i=r,0===Ee&&Se(Z)),i!==r?(be=e,e=Lt(i)):(_e=e,e=r)):(_e=e,e=r),e===r&&(e=_e,92===t.charCodeAt(_e)?(n=m,_e++):(n=r,0===Ee&&Se(Y)),n!==r&&(be=e,n=Wt()),e=n))))}return e}function Ie(){var e,n,i,o,a,l;return e=_e,(n=Me())!==r?(qe(),63===t.charCodeAt(_e)?(i=v,_e++):(i=r,0===Ee&&Se(tt)),i!==r?(qe(),(o=Ie())!==r?(qe(),58===t.charCodeAt(_e)?(a=y,_e++):(a=r,0===Ee&&Se(et)),a!==r?(qe(),(l=Ie())!==r?(be=e,e=Ht(n,o,l)):(_e=e,e=r)):(_e=e,e=r)):(_e=e,e=r)):(_e=e,e=r)):(_e=e,e=r),e===r&&(e=Me()),e}function Me(){var e,n,i,o,a,l,s,c;if(e=_e,(n=Te())!==r){for(i=[],o=_e,a=qe(),t.substr(_e,2)===$?(l=$,_e+=2):(l=r,0===Ee&&Se(nt)),l!==r?(s=qe(),(c=Te())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);o!==r;)i.push(o),o=_e,a=qe(),t.substr(_e,2)===$?(l=$,_e+=2):(l=r,0===Ee&&Se(nt)),l!==r?(s=qe(),(c=Te())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);be=e,e=qt(n,i)}else _e=e,e=r;return e}function Te(){var e,n,i,o,a,l,s,c;if(e=_e,(n=ze())!==r){for(i=[],o=_e,a=qe(),t.substr(_e,2)===_?(l=_,_e+=2):(l=r,0===Ee&&Se(rt)),l!==r?(s=qe(),(c=ze())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);o!==r;)i.push(o),o=_e,a=qe(),t.substr(_e,2)===_?(l=_,_e+=2):(l=r,0===Ee&&Se(rt)),l!==r?(s=qe(),(c=ze())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);be=e,e=Gt(n,i)}else _e=e,e=r;return e}function ze(){var e,n,i,o,a,l,s,c;if(e=_e,(n=Oe())!==r){for(i=[],o=_e,a=qe(),t.substr(_e,2)===b?(l=b,_e+=2):(l=r,0===Ee&&Se(it)),l===r&&(t.substr(_e,2)===w?(l=w,_e+=2):(l=r,0===Ee&&Se(ot))),l!==r?(s=qe(),(c=Oe())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);o!==r;)i.push(o),o=_e,a=qe(),t.substr(_e,2)===b?(l=b,_e+=2):(l=r,0===Ee&&Se(it)),l===r&&(t.substr(_e,2)===w?(l=w,_e+=2):(l=r,0===Ee&&Se(ot))),l!==r?(s=qe(),(c=Oe())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);be=e,e=Kt(n,i)}else _e=e,e=r;return e}function Oe(){var e,n,i,o,a,l,s,c;if(e=_e,(n=Je())!==r){for(i=[],o=_e,a=qe(),t.substr(_e,2)===x?(l=x,_e+=2):(l=r,0===Ee&&Se(at)),l===r&&(62===t.charCodeAt(_e)?(l=k,_e++):(l=r,0===Ee&&Se(lt)),l===r&&(t.substr(_e,2)===E?(l=E,_e+=2):(l=r,0===Ee&&Se(st)),l===r&&(60===t.charCodeAt(_e)?(l=C,_e++):(l=r,0===Ee&&Se(ct))))),l!==r?(s=qe(),(c=Je())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);o!==r;)i.push(o),o=_e,a=qe(),t.substr(_e,2)===x?(l=x,_e+=2):(l=r,0===Ee&&Se(at)),l===r&&(62===t.charCodeAt(_e)?(l=k,_e++):(l=r,0===Ee&&Se(lt)),l===r&&(t.substr(_e,2)===E?(l=E,_e+=2):(l=r,0===Ee&&Se(st)),l===r&&(60===t.charCodeAt(_e)?(l=C,_e++):(l=r,0===Ee&&Se(ct))))),l!==r?(s=qe(),(c=Je())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);be=e,e=Xt(n,i)}else _e=e,e=r;return e}function Je(){var e,n,i,o,a,l,s,c;if(e=_e,(n=Be())!==r){for(i=[],o=_e,a=qe(),43===t.charCodeAt(_e)?(l=A,_e++):(l=r,0===Ee&&Se(ut)),l===r&&(45===t.charCodeAt(_e)?(l=V,_e++):(l=r,0===Ee&&Se(dt))),l!==r?(s=qe(),(c=Be())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);o!==r;)i.push(o),o=_e,a=qe(),43===t.charCodeAt(_e)?(l=A,_e++):(l=r,0===Ee&&Se(ut)),l===r&&(45===t.charCodeAt(_e)?(l=V,_e++):(l=r,0===Ee&&Se(dt))),l!==r?(s=qe(),(c=Be())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);be=e,e=Yt(n,i)}else _e=e,e=r;return e}function Be(){var e,n,i,o,a,l,s,c;if(e=_e,(n=Re())!==r){for(i=[],o=_e,a=qe(),47===t.charCodeAt(_e)?(l=D,_e++):(l=r,0===Ee&&Se(ht)),l===r&&(42===t.charCodeAt(_e)?(l=P,_e++):(l=r,0===Ee&&Se(ft)),l===r&&(37===t.charCodeAt(_e)?(l=j,_e++):(l=r,0===Ee&&Se(pt)))),l!==r?(s=qe(),(c=Re())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);o!==r;)i.push(o),o=_e,a=qe(),47===t.charCodeAt(_e)?(l=D,_e++):(l=r,0===Ee&&Se(ht)),l===r&&(42===t.charCodeAt(_e)?(l=P,_e++):(l=r,0===Ee&&Se(ft)),l===r&&(37===t.charCodeAt(_e)?(l=j,_e++):(l=r,0===Ee&&Se(pt)))),l!==r?(s=qe(),(c=Re())!==r?o=a=[a,l,s,c]:(_e=o,o=r)):(_e=o,o=r);be=e,e=Zt(n,i)}else _e=e,e=r;return e}function Re(){var e,n,i;return(e=We())===r&&(e=Le())===r&&(e=_e,33===t.charCodeAt(_e)?(n=S,_e++):(n=r,0===Ee&&Se(gt)),n===r&&(43===t.charCodeAt(_e)?(n=A,_e++):(n=r,0===Ee&&Se(ut)),n===r&&(45===t.charCodeAt(_e)?(n=V,_e++):(n=r,0===Ee&&Se(dt)))),n!==r?(qe(),(i=Re())!==r?(be=e,e=Qt(n,i)):(_e=e,e=r)):(_e=e,e=r),e===r&&(e=function(){var e,n,i,o,a;return e=_e,(n=He())!==r?(qe(),40===t.charCodeAt(_e)?(i=N,_e++):(i=r,0===Ee&&Se(mt)),i!==r?(qe(),o=function(){var e,n,i,o,a,l;if(e=_e,(n=Ie())!==r){for(i=[],o=_e,qe(),44===t.charCodeAt(_e)?(a=I,_e++):(a=r,0===Ee&&Se(yt)),a!==r?(qe(),(l=Ie())!==r?o=l:(_e=o,o=r)):(_e=o,o=r);o!==r;)i.push(o),o=_e,qe(),44===t.charCodeAt(_e)?(a=I,_e++):(a=r,0===Ee&&Se(yt)),a!==r?(qe(),(l=Ie())!==r?o=l:(_e=o,o=r)):(_e=o,o=r);be=e,e=ne(n,i)}else _e=e,e=r;return e===r&&(e=qe()),e}(),o!==r?(qe(),41===t.charCodeAt(_e)?(a=F,_e++):(a=r,0===Ee&&Se(vt)),a!==r?(be=e,e=te(n,o)):(_e=e,e=r)):(_e=e,e=r)):(_e=e,e=r)):(_e=e,e=r),e===r&&(e=_e,(n=He())!==r&&(be=e,n=ee(n)),(e=n)===r&&(e=function(){var e,n,i,o;return e=function(){var e,n,i,o;return Ee++,e=_e,39===t.charCodeAt(_e)?(n=M,_e++):(n=r,0===Ee&&Se(_t)),n!==r?(i=function(){var t,e,n;for(t=_e,e=[],n=Ue();n!==r;)e.push(n),n=Ue();return be=t,t=e=oe(e)}(),39===t.charCodeAt(_e)?(o=M,_e++):(o=r,0===Ee&&Se(_t)),o!==r?(be=e,e=ie(i)):(_e=e,e=r)):(_e=e,e=r),Ee--,e===r&&(n=r,0===Ee&&Se($t)),e}(),e===r&&(e=We())===r&&(e=Le())===r&&(e=function(){var e,n;return Ee++,e=_e,t.substr(_e,4)===J?(n=J,_e+=4):(n=r,0===Ee&&Se(Dt)),n!==r&&(be=e,n=ve()),(e=n)===r&&(e=_e,t.substr(_e,5)===B?(n=B,_e+=5):(n=r,0===Ee&&Se(Pt)),n!==r&&(be=e,n=ye()),e=n),Ee--,e===r&&(n=r,0===Ee&&Se(Vt)),e}(),e===r&&(e=_e,40===t.charCodeAt(_e)?(n=N,_e++):(n=r,0===Ee&&Se(mt)),n!==r&&(i=Ie())!==r?(41===t.charCodeAt(_e)?(o=F,_e++):(o=r,0===Ee&&Se(vt)),o!==r?(be=e,e=re(i)):(_e=e,e=r)):(_e=e,e=r))),e}())),e}())),e}function Ue(){var e,n,i,o,a;if(e=_e,t.substr(_e,2)===l?(n=l,_e+=2):(n=r,0===Ee&&Se(G)),n!==r?(i=qe(),(o=Ie())!==r?(qe(),125===t.charCodeAt(_e)?(a=s,_e++):(a=r,0===Ee&&Se(K)),a!==r?(be=e,e=ae(o)):(_e=e,e=r)):(_e=e,e=r)):(_e=e,e=r),e===r&&(e=_e,t.substr(_e,3)===c?(n=c,_e+=3):(n=r,0===Ee&&Se(X)),n!==r&&(be=e,n=le()),(e=n)===r&&(e=_e,n=_e,Ee++,92===t.charCodeAt(_e)?(i=m,_e++):(i=r,0===Ee&&Se(Y)),i===r&&(39===t.charCodeAt(_e)?(i=M,_e++):(i=r,0===Ee&&Se(_t)),i===r&&(t.substr(_e,2)===l?(i=l,_e+=2):(i=r,0===Ee&&Se(G)))),Ee--,i===r?n=void 0:(_e=n,n=r),n!==r?(t.length>_e?(i=t.charAt(_e),_e++):(i=r,0===Ee&&Se(Z)),i!==r?(be=e,e=se()):(_e=e,e=r)):(_e=e,e=r),e===r))){if(e=_e,t.substr(_e,2)===l?(n=l,_e+=2):(n=r,0===Ee&&Se(G)),n!==r){if(i=[],U.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=r,0===Ee&&Se(bt)),o!==r)for(;o!==r;)i.push(o),U.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=r,0===Ee&&Se(bt));else i=r;i!==r?(125===t.charCodeAt(_e)?(o=s,_e++):(o=r,0===Ee&&Se(K)),o!==r?(be=e,e=ce()):(_e=e,e=r)):(_e=e,e=r)}else _e=e,e=r;e===r&&(e=_e,t.substr(_e,2)===l?(n=l,_e+=2):(n=r,0===Ee&&Se(G)),n!==r&&(be=e,n=ue()),(e=n)===r&&(e=_e,92===t.charCodeAt(_e)?(n=m,_e++):(n=r,0===Ee&&Se(Y)),n!==r?(t.substr(_e,2)===l?(i=l,_e+=2):(i=r,0===Ee&&Se(G)),i!==r?(be=e,e=de(i)):(_e=e,e=r)):(_e=e,e=r),e===r&&(e=_e,92===t.charCodeAt(_e)?(n=m,_e++):(n=r,0===Ee&&Se(Y)),n!==r?(t.length>_e?(i=t.charAt(_e),_e++):(i=r,0===Ee&&Se(Z)),i!==r?(be=e,e=he(i)):(_e=e,e=r)):(_e=e,e=r),e===r&&(e=_e,92===t.charCodeAt(_e)?(n=m,_e++):(n=r,0===Ee&&Se(Y)),n!==r&&(be=e,n=fe()),e=n))))}return e}function Le(){var e,n,i,o;if(Ee++,e=_e,45===t.charCodeAt(_e)?(n=V,_e++):(n=r,0===Ee&&Se(dt)),n===r&&(n=null),i=[],L.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=r,0===Ee&&Se(xt)),o!==r)for(;o!==r;)i.push(o),L.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=r,0===Ee&&Se(xt));else i=r;return i!==r?(be=e,e=pe()):(_e=e,e=r),Ee--,e===r&&(n=r,0===Ee&&Se(wt)),e}function We(){var e,n,i,o,a,l,s,c,u,d;for(Ee++,e=_e,45===t.charCodeAt(_e)?(n=V,_e++):(n=r,0===Ee&&Se(dt)),n===r&&(n=null),i=[],L.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=r,0===Ee&&Se(xt));o!==r;)i.push(o),L.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=r,0===Ee&&Se(xt));if(46===t.charCodeAt(_e)?(o=T,_e++):(o=r,0===Ee&&Se(Et)),o!==r){if(a=[],L.test(t.charAt(_e))?(l=t.charAt(_e),_e++):(l=r,0===Ee&&Se(xt)),l!==r)for(;l!==r;)a.push(l),L.test(t.charAt(_e))?(l=t.charAt(_e),_e++):(l=r,0===Ee&&Se(xt));else a=r;if(a!==r){if(l=_e,101===t.charCodeAt(_e)?(s=z,_e++):(s=r,0===Ee&&Se(Ct)),s===r&&(69===t.charCodeAt(_e)?(s=O,_e++):(s=r,0===Ee&&Se(At))),s!==r){if(43===t.charCodeAt(_e)?(c=A,_e++):(c=r,0===Ee&&Se(ut)),c===r&&(45===t.charCodeAt(_e)?(c=V,_e++):(c=r,0===Ee&&Se(dt))),c===r&&(c=null),u=[],L.test(t.charAt(_e))?(d=t.charAt(_e),_e++):(d=r,0===Ee&&Se(xt)),d!==r)for(;d!==r;)u.push(d),L.test(t.charAt(_e))?(d=t.charAt(_e),_e++):(d=r,0===Ee&&Se(xt));else u=r;u!==r?l=s=[s,c,u]:(_e=l,l=r)}else _e=l,l=r;l===r&&(l=null),be=e,e=ge()}else _e=e,e=r}else _e=e,e=r;if(e===r){if(e=_e,45===t.charCodeAt(_e)?(n=V,_e++):(n=r,0===Ee&&Se(dt)),n===r&&(n=null),i=[],L.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=r,0===Ee&&Se(xt)),o!==r)for(;o!==r;)i.push(o),L.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=r,0===Ee&&Se(xt));else i=r;if(i!==r)if(101===t.charCodeAt(_e)?(o=z,_e++):(o=r,0===Ee&&Se(Ct)),o===r&&(69===t.charCodeAt(_e)?(o=O,_e++):(o=r,0===Ee&&Se(At))),o!==r){if(43===t.charCodeAt(_e)?(a=A,_e++):(a=r,0===Ee&&Se(ut)),a===r&&(45===t.charCodeAt(_e)?(a=V,_e++):(a=r,0===Ee&&Se(dt))),a===r&&(a=null),l=[],L.test(t.charAt(_e))?(s=t.charAt(_e),_e++):(s=r,0===Ee&&Se(xt)),s!==r)for(;s!==r;)l.push(s),L.test(t.charAt(_e))?(s=t.charAt(_e),_e++):(s=r,0===Ee&&Se(xt));else l=r;l!==r?(be=e,e=me()):(_e=e,e=r)}else _e=e,e=r;else _e=e,e=r}return Ee--,e===r&&(n=r,0===Ee&&Se(kt)),e}function He(){var e,n,i,o,a;if(Ee++,e=_e,n=_e,Ee++,i=function(){var e,n,i,o;return e=_e,t.substr(_e,4)===J?(n=J,_e+=4):(n=r,0===Ee&&Se(Dt)),n===r&&(t.substr(_e,5)===B?(n=B,_e+=5):(n=r,0===Ee&&Se(Pt))),n!==r?(i=_e,Ee++,W.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=r,0===Ee&&Se(jt)),Ee--,o===r?i=void 0:(_e=i,i=r),i!==r?e=n=[n,i]:(_e=e,e=r)):(_e=e,e=r),e}(),Ee--,i===r?n=void 0:(_e=n,n=r),n!==r)if(H.test(t.charAt(_e))?(i=t.charAt(_e),_e++):(i=r,0===Ee&&Se(Nt)),i!==r){for(o=[],W.test(t.charAt(_e))?(a=t.charAt(_e),_e++):(a=r,0===Ee&&Se(jt));a!==r;)o.push(a),W.test(t.charAt(_e))?(a=t.charAt(_e),_e++):(a=r,0===Ee&&Se(jt));be=e,e=$e()}else _e=e,e=r;else _e=e,e=r;return Ee--,e===r&&(n=r,0===Ee&&Se(St)),e}function qe(){var e,n;for(Ee++,e=[],q.test(t.charAt(_e))?(n=t.charAt(_e),_e++):(n=r,0===Ee&&Se(It));n!==r;)e.push(n),q.test(t.charAt(_e))?(n=t.charAt(_e),_e++):(n=r,0===Ee&&Se(It));return Ee--,n=r,0===Ee&&Se(Ft),e}if((n=a())!==r&&_e===t.length)return n;throw n!==r&&_e<t.length&&Se({type:"end"}),function(t,e,n){return new g(g.buildMessage(t,e),t,e,n)}(ke,xe<t.length?t.charAt(xe):null,xe<t.length?je(xe,xe+1):je(xe,xe))}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(g,Error),g.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n,r=null;for(n=0;n<t.length;n++)if(t[n].source===this.location.source){r=t[n].text.split(/\r\n|\n|\r/g);break}var i=this.location.start,o=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(i):i,a=this.location.source+":"+o.line+":"+o.column;if(r){var l=this.location.end,s=m("",o.line.toString().length," "),c=r[i.line-1],u=(i.line===l.line?l.column:c.length+1)-i.column||1;e+="\n --\x3e "+a+"\n"+s+" |\n"+o.line+" | "+c+"\n"+s+" | "+m("",i.column-1," ")+m("",u,"^")}else e+="\n at "+a}return e},g.buildMessage=function(t,e){var n={literal:function(t){return'"'+i(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?o(t[0])+"-"+o(t[1]):o(t)}));return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function r(t){return t.charCodeAt(0).toString(16).toUpperCase()}function i(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function o(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function a(t){return n[t.type](t)}return"Expected "+function(t){var e,n,r=t.map(a);if(r.sort(),r.length>0){for(e=1,n=1;e<r.length;e++)r[e-1]!==r[e]&&(r[n]=r[e],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+function(t){return t?'"'+i(t)+'"':"end of input"}(e)+" found."};const y=new Map,$=new Map;function _(t,e,n){const r={args:e,cb:n},i=y.get(t)||[];y.has(t)||y.set(t,i),i.push(r);const o=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");$.set(o,r)}function b(t,e){let n=t.args.length,r=t.args.length;const i=t.args[t.args.length-1];if("object"==typeof i&&i.isVararg&&(--n,r=1/0),e.length<n)return{type:"few",expected:n,found:e.length};if(e.length>r)return{type:"many",expected:r,found:e.length};for(let n=0;n<e.length;++n){let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];if("object"!=typeof r&&(r={type:r}),r.type!==e[n].type)return{type:"mismatch",expected:r.type,found:e[n].type}}return{type:"match"}}function w(t,e){var n;switch(null===(n=e[t.type])||void 0===n||n.call(e,t),t.type){case"TemplateLiteral":t.expressions.forEach((t=>{w(t,e)}));break;case"BinaryExpression":case"LogicalExpression":w(t.left,e),w(t.right,e);break;case"UnaryExpression":w(t.argument,e);break;case"ConditionalExpression":w(t.test,e),w(t.consequent,e),w(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{w(t,e)}))}}function x(t,e){for(;t.length<e;)t="0"+t;return t}function k(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"transparent";if("#"!==(t=("string"==typeof t&&t||"").toLowerCase()).charAt(0))return n;const r=E(t);return r?(r.a*=e,function(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>x(Math.round(t).toString(16),2))).join("")):"rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat((t.a/255).toFixed(2),")")}(r)):n}function E(t){const e=t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i)||t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);if(e){if(5===e.length){const[t,n,r,i,o]=e,a=2===r.length?r:r+r,l=2===i.length?i:i+i,s=2===o.length?o:o+o,c=2===n.length?n:n+n;return{a:parseInt(c,16),r:parseInt(a,16),g:parseInt(l,16),b:parseInt(s,16)}}const[t,n,r,i]=e,o=2===n.length?n:n+n,a=2===r.length?r:r+r,l=2===i.length?i:i+i;return{a:255,r:parseInt(o,16),g:parseInt(a,16),b:parseInt(l,16)}}return null}function C(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function A(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function V(t){if("string"===t.type)return t.value;if("integer"===t.type)return String(t.value);if("number"===t.type){let e=String(t.value);return e.includes(".")||(e.includes("e")?e=e.replace("e",".0e"):e+=".0"),e=e.replace(/e\+?/i,"E"),e}if("boolean"===t.type)return t.value?"true":"false";if("datetime"===t.type)return A(t.value);if("color"===t.type)return M(I(t.value));if("url"===t.type)return t.value;if("dict"===t.type)return"<dict>";throw new Error("Unexpected type ".concat(t.type))}function D(t){let e=V(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function P(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function j(t,e){if(n)return a(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function S(t,e){if(e<o||e>i)throw new Error("Integer overflow.");!n&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function N(t){const e=[];return w(t,{Variable(t){e.push(t.id.name)}}),e}function F(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function I(t){const e=E(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function M(t){return"#".concat([t.a,t.r,t.g,t.b].map((t=>{if(t<0||t>255)throw new Error("Value out of range 0..1.");return x(Math.round(t).toString(16),2)})).join("").toUpperCase())}function T(t){return M(I(t))}const z=Number.MAX_VALUE,O=Number.MIN_VALUE,J="string",B="integer",R="number",U="boolean",L="color",W="url",H="datetime",q="dict";function G(t,e){return{type:J,value:V(e)}}function K(t,e){const n=Number(e.value);if(isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:R,value:n}}function X(t,e,n,r){const i=t.variables.get(e.value);let o;return o=i&&i.getType()===r?i.getValue():n.value,"color"===r&&(o=T(o)),{type:r,value:o}}function Y(t,e,n){return X(t,e,n,n.type)}function Z(t,e,n){return X(t,e,n,"color")}function Q(t,e,n){return X(t,e,n,"url")}const tt=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:B,value:a(r)}},et=tt("getUTCFullYear"),nt=tt("getUTCMonth"),rt=tt("getUTCDate"),it=tt("getUTCDay"),ot=tt("getUTCHours"),at=tt("getUTCMinutes"),lt=tt("getUTCSeconds"),st=tt("getUTCMilliseconds");function ct(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t;return n.level=e.level||"error",e.additional&&(n.additional=e.additional),n}function ut(t,e,n,r){if(!r.value.length)return t.warnings.push(ct(new Error("String for padding is empty."),{level:"warn"})),"";let i="";const o=e.type===J?e.value:V(e);for(;i.length+o.length<n.value;)i+=r.value;return i.length>0&&i.length+o.length>n.value&&(i=i.substring(0,Number(n.value)-Number(o.length))),i}function dt(t,e,n,r){const i=ut(t,e,n,r);return{type:J,value:i+V(e)}}function ht(t,e,n,r){const i=ut(t,e,n,r);return{type:J,value:V(e)+i}}function ft(t){return(e,n)=>{const r=I(n.value);return{type:R,value:r[t]/255}}}function pt(t){return(e,n,r)=>{const i=I(n.value);return i[t]=255*r.value,{type:L,value:M(i)}}}const gt=ft("a"),mt=ft("r"),vt=ft("g"),yt=ft("b"),$t=pt("a"),_t=pt("r"),bt=pt("g"),wt=pt("b");function xt(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let i=a(e.value)/a(n);return S(t,i),"number"==typeof i&&(i=Math.floor(i)),r&&(i=a(i)%a(r)),{type:B,value:i}}const kt=36e5;function Et(t,e){return function(n,r){for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];let l=function(t,e){let n=t;for(let t=0;t<e.length;++t){if(!n)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));const r=n[e[t]];if(void 0===r)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));n=r}return n}(r.value,o.map((t=>t.value))),s=typeof l;if(s!==t)throw"object"===s&&(s=Array.isArray(l)?"array":null===l?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(s,'".'));if("number"===t&&"integer"===e){if(l!==Math.round(l))throw new Error("Cannot convert value to integer.");S(n,l)}return"string"===t&&"color"===e&&(l=T(l)),{type:e,value:l}}}function Ct(t,e){return function(n,r,i){try{for(var o=arguments.length,a=new Array(o>3?o-3:0),l=3;l<o;l++)a[l-3]=arguments[l];return t(n,i,...a)}catch(t){let n=r.value;return"color"===e&&(n=T(n)),{type:e,value:n}}}}const At=Et("string","string"),Vt=Et("number","number"),Dt=Et("number","integer"),Pt=Et("boolean","boolean"),jt=Et("string","color"),St=Et("string","url"),Nt=Ct(At,"string"),Ft=Ct(Vt,"number"),It=Ct(Dt,"integer"),Mt=Ct(Pt,"boolean"),Tt=Ct(jt,"color"),zt=Ct(St,"url");function Ot(){}const Jt=t=>t;function Bt(t,e){for(const n in e)t[n]=e[n];return t}function Rt(t){return t()}function Ut(){return Object.create(null)}function Lt(t){t.forEach(Rt)}function Wt(t){return"function"==typeof t}let Ht;function qt(t,e){return Ht||(Ht=document.createElement("a")),Ht.href=e,t===Ht.href}function Gt(t,e){return t!=t?e==e:t!==e}function Kt(t){return 0===Object.keys(t).length}function Xt(t,...e){if(null==t)return Ot;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Yt(t,e,n){t.$$.on_destroy.push(Xt(e,n))}function Zt(t,e,n,r){if(t){const i=Qt(t,e,n,r);return t[0](i)}}function Qt(t,e,n,r){return t[1]&&r?Bt(n.ctx.slice(),t[1](r(e))):n.ctx}function te(t,e,n,r){if(t[2]&&r){const i=t[2](r(n));if(void 0===e.dirty)return i;if("object"==typeof i){const t=[],n=Math.max(e.dirty.length,i.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|i[r];return t}return e.dirty|i}return e.dirty}function ee(t,e,n,r,i,o){if(i){const a=Qt(e,n,r,o);t.p(a,i)}}function ne(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function re(t,e,n){return t.set(n),e}function ie(t){return t&&Wt(t.destroy)?t.destroy:Ot}const oe="undefined"!=typeof window;let ae=oe?()=>window.performance.now():()=>Date.now(),le=oe?t=>requestAnimationFrame(t):Ot;const se=new Set;function ce(t){se.forEach((e=>{e.c(t)||(se.delete(e),e.f())})),0!==se.size&&le(ce)}let ue=!1;function de(t,e,n,r){for(;t<e;){const i=t+(e-t>>1);n(i)<=r?t=i+1:e=i}return t}function he(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function fe(t){const e=ye("style");return function(t,e){(function(t,e){t.appendChild(e)})(t.head||t,e),e.sheet}(he(t),e),e.sheet}function pe(t,e){if(ue){for(function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let i=0;for(let t=0;t<e.length;t++){const o=e[t].claim_order,a=(i>0&&e[n[i]].claim_order<=o?i+1:de(1,i,(t=>e[n[t]].claim_order),o))-1;r[t]=n[a]+1;const l=a+1;n[l]=t,i=Math.max(l,i)}const o=[],a=[];let l=e.length-1;for(let t=n[i]+1;0!=t;t=r[t-1]){for(o.push(e[t-1]);l>=t;l--)a.push(e[l]);l--}for(;l>=0;l--)a.push(e[l]);o.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<o.length&&a[e].claim_order>=o[n].claim_order;)n++;const r=n<o.length?o[n]:null;t.insertBefore(a[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function ge(t,e,n){ue&&!n?pe(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function me(t){t.parentNode&&t.parentNode.removeChild(t)}function ve(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function ye(t){return document.createElement(t)}function $e(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function _e(t){return document.createTextNode(t)}function be(){return _e(" ")}function we(){return _e("")}function xe(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function ke(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Ee(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)null==e[r]?t.removeAttribute(r):"style"===r?t.style.cssText=e[r]:"__value"===r?t.value=t[r]=e[r]:n[r]&&n[r].set?t[r]=e[r]:ke(t,r,e[r])}function Ce(t){return Array.from(t.childNodes)}function Ae(t,e,n,r,i=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const o=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const o=t[r];if(e(o)){const e=n(o);return void 0===e?t.splice(r,1):t[r]=e,i||(t.claim_info.last_index=r),o}}for(let r=t.claim_info.last_index-1;r>=0;r--){const o=t[r];if(e(o)){const e=n(o);return void 0===e?t.splice(r,1):t[r]=e,i?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,o}}return r()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function Ve(t,e,n,r){return Ae(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const i=t.attributes[r];n[i.name]||e.push(i.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}function De(t,e,n){return Ve(t,e,n,ye)}function Pe(t,e,n){return Ve(t,e,n,$e)}function je(t,e){return Ae(t,(t=>3===t.nodeType),(t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(()=>_e(e)),!0)}function Se(t){return je(t," ")}function Ne(t,e){e=""+e,t.data!==e&&(t.data=e)}function Fe(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function Ie(t,e,n){for(let n=0;n<t.options.length;n+=1){const r=t.options[n];if(r.__value===e)return void(r.selected=!0)}n&&void 0===e||(t.selectedIndex=-1)}function Me(t,e){return new t(e)}const Te=new Map;let ze,Oe=0;function Je(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),i=n.length-r.length;i&&(t.style.animation=r.join(", "),Oe-=i,Oe||le((()=>{Oe||(Te.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&me(e)})),Te.clear())})))}function Be(t){ze=t}function Re(){if(!ze)throw new Error("Function called outside component initialization");return ze}function Ue(t){Re().$$.on_mount.push(t)}function Le(t){Re().$$.on_destroy.push(t)}function We(t,e){return Re().$$.context.set(t,e),e}function He(t){return Re().$$.context.get(t)}function qe(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const Ge=[],Ke=[];let Xe=[];const Ye=[],Ze=Promise.resolve();let Qe=!1;function tn(){Qe||(Qe=!0,Ze.then(ln))}function en(){return tn(),Ze}function nn(t){Xe.push(t)}const rn=new Set;let on,an=0;function ln(){if(0!==an)return;const t=ze;do{try{for(;an<Ge.length;){const t=Ge[an];an++,Be(t),sn(t.$$)}}catch(t){throw Ge.length=0,an=0,t}for(Be(null),Ge.length=0,an=0;Ke.length;)Ke.pop()();for(let t=0;t<Xe.length;t+=1){const e=Xe[t];rn.has(e)||(rn.add(e),e())}Xe.length=0}while(Ge.length);for(;Ye.length;)Ye.pop()();Qe=!1,rn.clear(),Be(t)}function sn(t){if(null!==t.fragment){t.update(),Lt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(nn)}}function cn(t,e,n){t.dispatchEvent(function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,r,e),i}(`${e?"intro":"outro"}${n}`))}const un=new Set;let dn;function hn(){dn={r:0,c:[],p:dn}}function fn(){dn.r||Lt(dn.c),dn=dn.p}function pn(t,e){t&&t.i&&(un.delete(t),t.i(e))}function gn(t,e,n,r){if(t&&t.o){if(un.has(t))return;un.add(t),dn.c.push((()=>{un.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const mn={duration:0};function vn(t,e,n){const r={direction:"in"};let i,o,a=e(t,n,r),l=!1,s=0;function c(){i&&Je(t,i)}function u(){const{delay:e=0,duration:n=300,easing:r=Jt,tick:u=Ot,css:d}=a||mn;d&&(i=function(t,e,n,r,i,o,a,l=0){const s=16.666/r;let c="{\n";for(let t=0;t<=1;t+=s){const r=e+(n-e)*o(t);c+=100*t+`%{${a(r,1-r)}}\n`}const u=c+`100% {${a(n,1-n)}}\n}`,d=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${l}`,h=he(t),{stylesheet:f,rules:p}=Te.get(h)||function(t,e){const n={stylesheet:fe(e),rules:{}};return Te.set(t,n),n}(h,t);p[d]||(p[d]=!0,f.insertRule(`@keyframes ${d} ${u}`,f.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${d} ${r}ms linear ${i}ms 1 both`,Oe+=1,d}(t,0,1,n,e,r,d,s++)),u(0,1);const h=ae()+e,f=h+n;o&&o.abort(),l=!0,nn((()=>cn(t,!0,"start"))),o=function(t){let e;return 0===se.size&&le(ce),{promise:new Promise((n=>{se.add(e={c:t,f:n})})),abort(){se.delete(e)}}}((e=>{if(l){if(e>=f)return u(1,0),cn(t,!0,"end"),c(),l=!1;if(e>=h){const t=r((e-h)/n);u(t,1-t)}}return l}))}let d=!1;return{start(){d||(d=!0,Je(t),Wt(a)?(a=a(r),(on||(on=Promise.resolve(),on.then((()=>{on=null}))),on).then(u)):u())},invalidate(){d=!1},end(){l&&(c(),l=!1)}}}const yn="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function $n(t,e){gn(t,1,1,(()=>{e.delete(t.key)}))}function _n(t,e){const n={},r={},i={$$scope:1};let o=t.length;for(;o--;){const a=t[o],l=e[o];if(l){for(const t in a)t in l||(r[t]=1);for(const t in l)i[t]||(n[t]=l[t],i[t]=1);t[o]=l}else for(const t in a)i[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let bn;function wn(t){t&&t.c()}function xn(t,e){t&&t.l(e)}function kn(t,e,n,r){const{fragment:i,after_update:o}=t.$$;i&&i.m(e,n),r||nn((()=>{const e=t.$$.on_mount.map(Rt).filter(Wt);t.$$.on_destroy?t.$$.on_destroy.push(...e):Lt(e),t.$$.on_mount=[]})),o.forEach(nn)}function En(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];Xe.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),Xe=e}(n.after_update),Lt(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Cn(t,e,n,r,i,o,a,l=[-1]){const s=ze;Be(t);const c=t.$$={fragment:null,ctx:[],props:o,update:Ot,not_equal:i,bound:Ut(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Ut(),dirty:l,skip_bound:!1,root:e.target||s.$$.root};a&&a(c.root);let u=!1;if(c.ctx=n?n(t,e.props||{},((e,n,...r)=>{const o=r.length?r[0]:n;return c.ctx&&i(c.ctx[e],c.ctx[e]=o)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](o),u&&function(t,e){-1===t.$$.dirty[0]&&(Ge.push(t),tn(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],c.update(),u=!0,Lt(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){ue=!0;const t=Ce(e.target);c.fragment&&c.fragment.l(t),t.forEach(me)}else c.fragment&&c.fragment.c();e.intro&&pn(t.$$.fragment),kn(t,e.target,e.anchor,e.customElement),ue=!1,ln()}Be(s)}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(bn=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(Rt).filter(Wt);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){Lt(this.$$.on_disconnect)}$destroy(){En(this,1),this.$destroy=Ot}$on(t,e){if(!Wt(e))return Ot;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!Kt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class An{$destroy(){En(this,1),this.$destroy=Ot}$on(t,e){if(!Wt(e))return Ot;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!Kt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Vn=[];function Dn(t,e=Ot){let n;const r=new Set;function i(e){if(o=e,((i=t)!=i?o==o:i!==o||i&&"object"==typeof i||"function"==typeof i)&&(t=e,n)){const e=!Vn.length;for(const e of r)e[1](),Vn.push(e,t);if(e){for(let t=0;t<Vn.length;t+=2)Vn[t][0](Vn[t+1]);Vn.length=0}}var i,o}return{set:i,update:function(e){i(e(t))},subscribe:function(o,a=Ot){const l=[o,a];return r.add(l),1===r.size&&(n=e(i)||Ot),o(t),()=>{r.delete(l),0===r.size&&n&&(n(),n=null)}}}}function Pn(t,e,n){const r=!Array.isArray(t),i=r?[t]:t,o=e.length<2;return{subscribe:Dn(n,(t=>{let n=!1;const a=[];let l=0,s=Ot;const c=()=>{if(l)return;s();const n=e(r?a[0]:a,t);o?t(n):s=Wt(n)?n:Ot},u=i.map(((t,e)=>Xt(t,(t=>{a[e]=t,l&=~(1<<e),n&&c()}),(()=>{l|=1<<e}))));return n=!0,c(),function(){Lt(u),s(),n=!1}})).subscribe}}class jn{constructor(t,e){const n=this.convertValue(e);this.name=t,this.value=n}getName(){return this.name}subscribe(t){return this.store||(this.store=Dn(this.value)),this.store.subscribe(t)}set(t){const e=this.fromString(t);this.setValue(e)}setValue(t){const e=this.convertValue(t);this.value=e,this.store&&this.store.set(e)}getValue(){return this.value}}const Sn={string:class extends jn{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}},number:class extends jn{convertValue(t){if("number"!=typeof t||isNaN(t)||!isFinite(t))throw new Error("Incorrect variable value");return t}fromString(t){const e=Number(t);return this.convertValue(e)}getType(){return"number"}},integer:class extends jn{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&(isNaN(t)||t!==Math.round(t))||t>i||t<o)throw new Error("Incorrect variable value");return a(t)}fromString(t){const e=a(t);return this.convertValue(e)}getType(){return"integer"}},boolean:class extends jn{convertValue(t){if(1!==t&&0!==t&&!0!==t&&!1!==t)throw new Error("Incorrect variable value");return Number(t)}fromString(t){if("1"===t||"true"===t)return 1;if("0"===t||"false"===t)return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}},color:class extends jn{convertValue(t){if("string"!=typeof t||!E(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}},url:class extends jn{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}},dict:class extends jn{convertValue(t){if("object"!=typeof t||!t)throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Dict variable does not support setter from string")}getType(){return"dict"}}};function Nn(t,e,n){if(!(e in Sn))throw new Error("Unsupported variable type");return new Sn[e](t,n)}function Fn(t){return t.map(D).join(", ")}_("toString",[B],G),_("toString",[R],G),_("toString",[U],G),_("toString",[L],G),_("toString",[W],G),_("toNumber",[B],K),_("toNumber",[J],K),_("toInteger",[R],(function(t,e){if(e.value>i||e.value<o)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:B,value:a(n)}})),_("toInteger",[J],(function(t,e){let n;try{n=a(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}if("number"==typeof n&&(isNaN(n)||n%1!=0)||n>i||n<o)throw new Error("Unable to convert value to Integer.");return{type:B,value:n}})),_("toInteger",[U],(function(t,e){return{type:B,value:a(e.value?1:0)}})),_("toBoolean",[B],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:U,value:n}})),_("toBoolean",[J],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:U,value:"true"===e.value?1:0}})),_("toColor",[J],(function(t,e){return{type:L,value:T(e.value)}})),_("toUrl",[J],(function(t,e){return{type:W,value:e.value}})),_("encodeUri",[J],(function(t,e){try{return{type:J,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),_("decodeUri",[J],(function(t,e){try{return{type:J,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),_("getIntegerValue",[J,B],Y),_("getNumberValue",[J,R],Y),_("getBooleanValue",[J,U],Y),_("getStringValue",[J,J],Y),_("getColorValue",[J,L],Z),_("getColorValue",[J,J],Z),_("getUrlValue",[J,W],Q),_("getUrlValue",[J,J],Q),_("parseUnixTime",[B],(function(t,e){return{type:H,value:new Date(1e3*Number(e.value))}})),_("nowLocal",[],(function(){return{type:H,value:new Date}})),_("addMillis",[H,B],(function(t,e,n){return{type:H,value:new Date(e.value.getTime()+Number(n.value))}})),_("setYear",[H,B],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:H,value:r}})),_("setMonth",[H,B],(function(t,e,n){const r=Number(n.value);if(r<1||r>12)throw new Error("Expecting month in [1..12], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCMonth(r-1),{type:H,value:i}})),_("setDay",[H,B],(function(t,e,n){const r=new Date(e.value),i=Number(n.value);if(i<=0&&-1!==i||i>function(t){const e=new Date(t);return e.setUTCMonth(e.getUTCMonth()+1),e.setUTCDate(0),e.getUTCDate()}(r))throw new Error("Unable to set day ".concat(i," for date ").concat(V(e),"."));return r.setUTCDate(-1===i?0:i),{type:H,value:r}})),_("setHours",[H,B],(function(t,e,n){const r=Number(n.value);if(r<0||r>23)throw new Error("Expecting hours in [0..23], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCHours(r),{type:H,value:i}})),_("setMinutes",[H,B],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCMinutes(r),{type:H,value:i}})),_("setSeconds",[H,B],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCSeconds(r),{type:H,value:i}})),_("setMillis",[H,B],(function(t,e,n){const r=Number(n.value);if(r<0||r>999)throw new Error("Expecting millis in [0..999], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCMilliseconds(r),{type:H,value:i}})),_("getYear",[H],et),_("getMonth",[H],nt),_("getDay",[H],rt),_("getDayOfWeek",[H],it),_("getHours",[H],ot),_("getMinutes",[H],at),_("getSeconds",[H],lt),_("getMillis",[H],st),_("getIntervalSeconds",[B],(function(t,e){return xt(t,e,1e3,60)})),_("getIntervalTotalSeconds",[B],(function(t,e){return xt(t,e,1e3)})),_("getIntervalMinutes",[B],(function(t,e){return xt(t,e,6e4,60)})),_("getIntervalTotalMinutes",[B],(function(t,e){return xt(t,e,6e4)})),_("getIntervalHours",[B],(function(t,e){return xt(t,e,kt,24)})),_("getIntervalTotalHours",[B],(function(t,e){return xt(t,e,kt)})),_("getIntervalTotalDays",[B],(function(t,e){return xt(t,e,864e5)})),_("getIntervalTotalWeeks",[B],(function(t,e){return xt(t,e,6048e5)})),_("len",[J],(function(t,e){return{type:B,value:a(e.value.length)}})),_("contains",[J,J],(function(t,e,n){return{type:U,value:e.value.includes(n.value)?1:0}})),_("substring",[J,B,B],(function(t,e,n,r){if(r.value<n.value)throw new Error("Indexes should be in ascending order.");if(n.value<0||n.value>e.value.length||r.value<0||r.value>e.value.length)throw new Error("Indexes are out of bounds.");return{type:J,value:e.value.substring(Number(n.value),Number(r.value))}})),_("replaceAll",[J,J,J],(function(t,e,n,r){let i;return i=n.value?e.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(n.value),"g"),r.value):e.value,{type:J,value:i}})),_("index",[J,J],(function(t,e,n){return{type:B,value:a(e.value.indexOf(n.value))}})),_("lastIndex",[J,J],(function(t,e,n){return{type:B,value:a(e.value.lastIndexOf(n.value))}})),_("trim",[J],(function(t,e){return{type:J,value:e.value.trim()}})),_("trimLeft",[J],(function(t,e){return{type:J,value:e.value.replace(/^\s+/,"")}})),_("trimRight",[J],(function(t,e){return{type:J,value:e.value.replace(/\s+$/,"")}})),_("toUpperCase",[J],(function(t,e){return{type:J,value:e.value.toUpperCase()}})),_("toLowerCase",[J],(function(t,e){return{type:J,value:e.value.toLowerCase()}})),_("padStart",[J,B,J],dt),_("padStart",[B,B,J],dt),_("padEnd",[J,B,J],ht),_("padEnd",[B,B,J],ht),_("testRegex",[J,J],(function(t,e,n){let r;try{r=new RegExp(n.value)}catch(t){throw new Error("Invalid regular expression.")}return{type:U,value:r.test(e.value)?1:0}})),_("div",[B,B],(function(t,e,n){if(n.value===l)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=j(0,r),S(t,r),{type:B,value:r}})),_("div",[R,R],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value/n.value;return{type:R,value:r}})),_("mod",[B,B],(function(t,e,n){if(n.value===l)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=j(0,r),S(t,r),{type:B,value:r}})),_("mod",[R,R],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value%n.value;return{type:R,value:r}})),_("mul",[{type:B,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=n.length?n[0].value:l;for(let e=1;e<n.length;++e)i*=n[e].value,i=j(0,i),S(t,i);return{type:B,value:i}})),_("mul",[{type:R,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=n.length?n[0].value:0;for(let t=1;t<n.length;++t)i*=n[t].value;return{type:R,value:i}})),_("sub",[{type:B,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=n.length?n[0].value:l;for(let e=1;e<n.length;++e)i-=n[e].value,i=j(0,i),S(t,i);return{type:B,value:i}})),_("sub",[{type:R,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=n.length?n[0].value:0;for(let t=1;t<n.length;++t)i-=n[t].value;return{type:R,value:i}})),_("sum",[{type:B,isVararg:!0}],(function(t){let e=l;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let n=0;n<r.length;++n)e+=r[n].value,e=j(0,e),S(t,e);return{type:B,value:e}})),_("sum",[{type:R,isVararg:!0}],(function(t){let e=0;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let t=0;t<r.length;++t)e+=r[t].value;return{type:R,value:e}})),_("abs",[B],(function(t,e){const n=s(e.value);return S(t,n),{type:e.type,value:n}})),_("abs",[R],(function(t,e){const n=Math.abs(e.value);return{type:R,value:n}})),_("max",[{type:B,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");let i=n[0].value;for(let t=1;t<n.length;++t)n[t].value>i&&(i=n[t].value);return{type:B,value:i}})),_("max",[{type:R,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");return{type:R,value:Math.max(...n.map((t=>t.value)))}})),_("min",[{type:B,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");let i=n[0].value;for(let t=1;t<n.length;++t)n[t].value<i&&(i=n[t].value);return{type:B,value:i}})),_("min",[{type:R,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");return{type:R,value:Math.min(...n.map((t=>t.value)))}})),_("maxNumber",[],(function(){return{type:R,value:z}})),_("minNumber",[],(function(){return{type:R,value:O}})),_("maxInteger",[],(function(t){return S(t,i),{type:B,value:i}})),_("minInteger",[],(function(t){return S(t,o),{type:B,value:o}})),_("round",[R],(function(t,e){const n=Math.sign(e.value);return{type:R,value:n*Math.round(Math.abs(e.value))}})),_("floor",[R],(function(t,e){return{type:R,value:Math.floor(e.value)}})),_("ceil",[R],(function(t,e){return{type:R,value:Math.ceil(e.value)}})),_("signum",[B],(function(t,e){return{type:B,value:c(e.value)}})),_("signum",[R],(function(t,e){return{type:R,value:Math.sign(e.value)}})),_("copySign",[B,B],(function(t,e,n){let r;if(n.value===l)r=e.value;else if(e.value===l)r=0;else{const t=c(n.value);r=s(e.value)*t}return S(t,r),{type:B,value:r}})),_("copySign",[R,R],(function(t,e,n){let r=Math.sign(n.value);0===r&&(r=Object.is(r,0)?1:-1);const i=Math.abs(e.value)*r;return{type:R,value:i}})),_("getColorAlpha",[J],gt),_("getColorAlpha",[L],gt),_("getColorRed",[J],mt),_("getColorRed",[L],mt),_("getColorGreen",[J],vt),_("getColorGreen",[L],vt),_("getColorBlue",[J],yt),_("getColorBlue",[L],yt),_("setColorAlpha",[J,R],$t),_("setColorAlpha",[L,R],$t),_("setColorRed",[J,R],_t),_("setColorRed",[L,R],_t),_("setColorGreen",[J,R],bt),_("setColorGreen",[L,R],bt),_("setColorBlue",[J,R],wt),_("setColorBlue",[L,R],wt),_("rgb",[R,R,R],(function(t,e,n,r){const i={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:L,value:M(i)}})),_("argb",[R,R,R,R],(function(t,e,n,r,i){const o={a:255*e.value,r:255*n.value,g:255*r.value,b:255*i.value};return{type:L,value:M(o)}})),_("getDictString",[q,{type:J,isVararg:!0}],At),_("getDictNumber",[q,{type:J,isVararg:!0}],Vt),_("getDictInteger",[q,{type:J,isVararg:!0}],Dt),_("getDictBoolean",[q,{type:J,isVararg:!0}],Pt),_("getDictColor",[q,{type:J,isVararg:!0}],jt),_("getDictUrl",[q,{type:J,isVararg:!0}],St),_("getDictOptString",[J,q,{type:J,isVararg:!0}],Nt),_("getDictOptNumber",[R,q,{type:J,isVararg:!0}],Ft),_("getDictOptInteger",[B,q,{type:J,isVararg:!0}],It),_("getDictOptBoolean",[U,q,{type:J,isVararg:!0}],Mt),_("getDictOptColor",[L,q,{type:J,isVararg:!0}],Tt),_("getDictOptColor",[J,q,{type:J,isVararg:!0}],Tt),_("getDictOptUrl",[J,q,{type:J,isVararg:!0}],zt),_("getDictOptUrl",[W,q,{type:J,isVararg:!0}],zt);const In={StringLiteral:function(t,e){return{type:J,value:e.value}},NumberLiteral:function(t,e){return{type:R,value:e.value}},IntegerLiteral:function(t,e){return S(t,e.value),{type:B,value:e.value}},BooleanLiteral:function(t,e){return{type:U,value:e.value?1:0}},UnaryExpression:function(t,e){const n=C(Mn(t,e.argument));switch(e.operator){case"!":if(n.type===U)return{type:U,value:n.value?0:1};F("".concat(e.operator).concat(D(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===B){const e=n.value*a(r);return S(t,e),{type:B,value:e}}if(n.type===R)return{type:R,value:n.value*r};F("".concat(e.operator).concat(D(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=C(Mn(t,e.test));if(n.type===U)return n.value?Mn(t,e.consequent):Mn(t,e.alternate);F("".concat(D(n)," ? ").concat(D(Mn(t,e.consequent))," : ").concat(D(Mn(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return Mn(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=V(Mn(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:J,value:n}},LogicalExpression:function(t,e){const n=C(Mn(t,e.left));if(n.type!==U&&F("".concat(D(n)," ").concat(e.operator," ..."),"'".concat(e.operator,"' must be called with boolean operands.")),"||"===e.operator&&n.value)return n;if("&&"===e.operator&&!n.value)return{type:U,value:0};const r=C(Mn(t,e.right));return r.type!==U&&F("".concat(D(n)," ").concat(e.operator," ").concat(D(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(P(r.type),".")),{type:U,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=Mn(t,e.left),i=Mn(t,e.right);if(r.type!==i.type&&F("".concat(D(r)," ").concat(e.operator," ").concat(D(i)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(P(r.type)," and ").concat(P(i.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===H&&n.type===H?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:U,value:r?1:0}}(n,r,i);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==R&&e.type!==B&&e.type!==H&&F("".concat(D(e)," ").concat(t," ").concat(D(n)),"Operator '".concat(t,"' cannot be applied to ").concat(P(e.type)," type."));const i=e.type===H?e.value.getTime():e.value,o=n.type===H?n.value.getTime():n.value;return r=">"===t?i>o:">="===t?i>=o:"<"===t?i<o:i<=o,{type:U,value:r?1:0}}(n,r,i);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==J&&n.type!==R&&n.type!==B&&F("".concat(D(n)," ").concat(e," ").concat(D(r)),"Operator '".concat(e,"' cannot be applied to ").concat(P(n.type)," type.")),n.type===J)return"-"===e&&F("".concat(D(n)," - ").concat(D(r)),"Operator '".concat(e,"' cannot be applied to ").concat(P(n.type)," type.")),{type:J,value:n.value+r.value};let i="+"===e?n.value+r.value:n.value-r.value;if(n.type===B)try{i=j(0,i),S(t,i)}catch(t){F("".concat(D(n)," ").concat(e," ").concat(D(r)),t.message)}return{type:n.type,value:i}}(t,n,r,i);if("/"===n||"*"===n||"%"===n)return function(t,e,n,r){let i;if(n.type!==B&&n.type!==R&&F("".concat(D(n)," ").concat(e," ").concat(D(r)),"Operator '".concat(e,"' cannot be applied to ").concat(P(n.type)," type.")),"*"===e)i=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&F("".concat(D(n)," ").concat(e," ").concat(D(r)),"Division by zero is not supported."),i="/"===e?n.value/r.value:n.value%r.value}if(n.type===B)try{i=j(0,i),S(t,i)}catch(t){F("".concat(D(n)," ").concat(e," ").concat(D(r)),t.message)}return{type:n.type,value:i}}(t,n,r,i);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;let r;const i=e.arguments.map((e=>Mn(t,e))),o=n+":"+i.map((t=>t.type)).join("#");if($.has(o))r=$.get(o);else{const t=function(t,e){const n=y.get(t);if(!n)return{type:"missing"};let r=null;for(let t=0;t<n.length;++t){const i=b(n[t],e);if("match"===i.type)return n[t];r||(r=i)}if(!r)throw new Error("Missing function");return r}(n,i);if("expected"in t||"type"in t&&"missing"===t.type){const e=i.map((t=>P(t.type))).join(", "),r="".concat(n,"(").concat(Fn(i),")");"few"===t.type&&0===i.length?F(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?F(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):F(r,"Unknown function name: ".concat(n,"."))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(t,...i)}catch(t){F("".concat(n,"(").concat(Fn(i),")"),t.message)}},Variable:function(t,e){const n=e.id.name,r=t.variables.get(n);if(r)return function(t){return{type:t.getType(),value:t.getValue()}}(r);throw new Error("Variable '".concat(n,"' is missing."))}};function Mn(t,e){if(e.type in In)return In[e.type](t,e);throw new Error("Unsupported expression")}function Tn(t,e){try{const n={variables:t,warnings:[],safeIntegerOverflow:!1};!function(t,e){let n="";if(w(e,{Variable(e){n||t.variables.has(e.id.name)||(n=e.id.name)}}),n)throw new Error("Variable '".concat(n,"' is missing."))}(n,e);const r=Mn(n,e);return n.safeIntegerOverflow&&n.warnings.push(ct(new Error("Safe integer overflow, values may lose accuracy."),{level:"warn"})),{result:r,warnings:n.warnings}}catch(t){return{result:{type:"error",value:t.message},warnings:[]}}}const zn={root:"divkit-b023c",root__clickable:"divkit-bd259","root__clickable-no-transition":"divkit-d9099",root__unselectable:"divkit-c016b",root_platform_desktop:"divkit-ee112","root__only-desktop":"divkit-fef1e","root_restrict-scroll":"divkit-aa145","root_disabled-context-menu":"divkit-f0cba"},On=Symbol("root"),Jn={"text-range":"divkit-faf07",text:"divkit-d9b0e",text_halign_left:"divkit-a4cb7",text_halign_center:"divkit-e1659",text_halign_right:"divkit-ea280",text_valign_top:"divkit-d8ce0",text_valign_center:"divkit-ef58e",text_valign_bottom:"divkit-fe8ed",text_valign_baseline:"divkit-e0c6c",text__inner:"divkit-b8528",text_singleline:"divkit-ef11c",text_truncate_none:"divkit-c6ea1",text_multiline:"divkit-ee8e3",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002"},Bn={outer:"divkit-d65a7","outer_hide-on-transition-in":"divkit-a6d12","outer_halign-self_start":"divkit-cc452","outer_halign-self_center":"divkit-b8331","outer_halign-self_end":"divkit-c573c","outer_halign-self_stretch":"divkit-dcc74","outer_valign-self_start":"divkit-e8077","outer_valign-self_center":"divkit-d40a7","outer_valign-self_end":"divkit-e9f84","outer_valign-self_stretch":"divkit-b7aa3","outer_parent-flex_vertical":"divkit-c143f","outer_parent-flex_horizontal":"divkit-ef302","outer_valign-self_baseline":"divkit-e72b5",outer_width_content:"divkit-b8f4d",outer_height_content:"divkit-faa66","outer_width-constrained":"divkit-d3211","outer_parent-grid":"divkit-ff439","outer_height-constrained":"divkit-a5256","outer_parent-overlap":"divkit-dab2d","outer_parent-overlap-absolute":"divkit-d43fb","outer_scroll-snap_center":"divkit-d9e38","outer_scroll-snap_start":"divkit-efd1e",outer__border:"divkit-d4056",outer_visibility_invisible:"divkit-f018b",outer_visibility_gone:"divkit-e784b","outer_has-action-animation":"divkit-f4980","outer_has-custom-focus":"divkit-c7f14"};function Rn(t){if(!t)return;let e="";for(const n in t)if(t.hasOwnProperty(n)){if(!t[n]&&0!==t[n])continue;e&&(e+=";"),e+=n+":"+String(t[n])}return e||void 0}function Un(t){if("number"!=typeof t&&"string"!=typeof t||!t)return"0";const e=Number(t);return isNaN(e)?"0":Math.ceil(1e3*e)/1e4+"em"}function Ln(t){let e=Un(t);return"0"===e&&(e+="em"),e}function Wn(t){let e=String(t);return e.indexOf("&")>-1&&(e=e.replace(/&/g,"&amp;")),e.indexOf("<")>-1&&(e=e.replace(/</g,"&lt;")),e.indexOf(">")>-1&&(e=e.replace(/>/g,"&gt;")),e.indexOf('"')>-1&&(e=e.replace(/"/g,"&quot;")),e}const Hn=Boolean;function qn(t){if(1===t.length&&"solid"===t[0].type)return{color:k(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=k(t.bg.color||"transparent");return{size:void 0,pos:void 0,image:"linear-gradient(to bottom,".concat(e,",").concat(e,")")}}({bg:t}):"gradient"===t.type?function(t){var e;if(!Array.isArray(null===(e=t.bg)||void 0===e?void 0:e.colors))return;const n=t.bg.colors.filter(Hn);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>k(t))).join(",")+")"}:void 0}({bg:t}):"image"===t.type?function(t){var e;const n=null===(e=t.bg)||void 0===e?void 0:e.image_url;if(n)return{size:Xn(t.bg.scale),pos:Yn(t.bg),image:'url("'+Wn(n)+'")'}}({bg:t}):"radial_gradient"===t.type?function(t){var e;if(!Array.isArray(null===(e=t.bg)||void 0===e?void 0:e.colors))return;const n=t.bg.colors.filter(Hn);if(!n.length)return;const r=t.bg.radius;let i;r&&"object"==typeof r&&"type"in r&&void 0!==r.value&&("fixed"===r.type?i=Ln(r.value):"relative"===r.type&&(i=Gn[r.value]));const o=Kn(t.bg.center_x),a=Kn(t.bg.center_y);return{size:void 0,pos:void 0,image:"radial-gradient("+"circle ".concat(i||"farthest-corner"," at ").concat(o," ").concat(a)+","+n.map((t=>k(t))).join(",")+")"}}({bg:t}):void 0)).filter(Hn).reverse().reduce((function(t,e){return t.image.push(e.image),t.size.push(e.size||"auto"),t.position.push(e.pos||"50% 50%"),t}),{image:[],size:[],position:[]});return{image:e.image.join(","),size:e.size.join(","),position:e.position.join(",")}}const Gn={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function Kn(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return Ln(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function Xn(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function Yn(t){let e,n;return e="left"===t.content_alignment_horizontal?"0%":"right"===t.content_alignment_horizontal?"100%":"50%",n="top"===t.content_alignment_vertical?"0%":"bottom"===t.content_alignment_vertical?"100%":"50%",e+" "+n}function Zn(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function Qn(t,e){return e.has(t)}function tr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function er(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tr(Object(n),!0).forEach((function(e){nr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function nr(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rr(t,e,n){return"number"==typeof e&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function ir(t,e){e&&t.push(e)}function or(t,e,n){const r=[];ir(r,e[t]);for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];o&&ir(r,e["".concat(t,"_").concat(i)+("string"==typeof o?"_".concat(o):"")])}return r.join(" ")}const ar=function(t,e){var n;let{json:r,origJson:i,templateContext:o,rootCtx:a}=e;return null===(n=a.registerComponent)||void 0===n||n.call(a,{node:t,json:r,origJson:i,templateContext:o}),{destroy(){var e;null===(e=a.unregisterComponent)||void 0===e||e.call(a,{node:t})}}},lr=Symbol("state");function sr(t){return Un(t.top||0)+" "+Un(t.right||0)+" "+Un(t.bottom||0)+" "+Un(t.left||0)}function cr(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function ur(t){return cr(t)&&t>=0}function dr(t,e){if(!t)return e;const n=[t.top,t.right,t.bottom,t.left];for(let t=0;t<n.length;++t)if(n[t]&&!ur(n[t]))return e;return sr(t)}function hr(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const fr=Object.prototype.hasOwnProperty;function pr(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return Object.is(t,e);const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(!fr.call(e,i)||!pr(t[i],e[i]))return!1}return!0}function gr(t,e){return pr(t,e)?e:t}function mr(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function vr(t,e){const n=Number(t);return isNaN(n)?e:n}function yr(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...yr(t))})):e.push(t),e}function $r(t,e){if(!t||"object"!=typeof t)return e;const n=["top","right","bottom","left"];for(let r=0;r<n.length;++r)if(t[n[r]]&&!ur(t[n[r]]))return e;return t}function _r(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]].map((t=>Un((t||e)/n*10))).join(" ")}function br(){}const wr=Symbol("action");function xr(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function kr(t){var e;let n,r,i,o,a,l,s,c;const u=t[19].default,d=Zt(u,t,t[18],null);let h=[{class:r=t[2]+(t[9]?" ".concat(t[6]?zn.root__clickable:zn["root__clickable-no-transition"]," ").concat(zn.root__unselectable):"")+" "+(null!==(e=t[1])&&void 0!==e&&e.length?zn["root_disabled-context-menu"]:"")},{style:t[3]},{role:i=t[9]?"button":null},{tabindex:o=t[9]?0:null},t[4]],f={};for(let t=0;t<h.length;t+=1)f=Bt(f,h[t]);return{c(){n=ye("span"),d&&d.c(),this.h()},l(t){n=De(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=Ce(n);d&&d.l(e),e.forEach(me),this.h()},h(){Ee(n,f)},m(e,r){ge(e,n,r),d&&d.m(n,null),l=!0,s||(c=[ie(a=t[5].call(null,n)),xe(n,"click",(function(){Wt(t[9]?t[10]:null)&&(t[9]?t[10]:null).apply(this,arguments)})),xe(n,"click",t[23]),xe(n,"dblclick",(function(){var e,n;Wt(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),xe(n,"touchstart",(function(){var e,n;Wt(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),xe(n,"touchmove",(function(){var e,n;Wt(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),xe(n,"touchend",(function(){var e,n;Wt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),xe(n,"touchcancel",(function(){var e,n;Wt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),xe(n,"keydown",t[15]),xe(n,"focus",t[24]),xe(n,"blur",t[25])],s=!0)},p(e,a){var s;t=e,d&&d.p&&(!l||262144&a)&&ee(d,u,t,t[18],l?te(u,t[18],a,null):ne(t[18]),null),Ee(n,f=_n(h,[(!l||582&a&&r!==(r=t[2]+(t[9]?" ".concat(t[6]?zn.root__clickable:zn["root__clickable-no-transition"]," ").concat(zn.root__unselectable):"")+" "+(null!==(s=t[1])&&void 0!==s&&s.length?zn["root_disabled-context-menu"]:"")))&&{class:r},(!l||8&a)&&{style:t[3]},(!l||512&a&&i!==(i=t[9]?"button":null))&&{role:i},(!l||512&a&&o!==(o=t[9]?0:null))&&{tabindex:o},16&a&&t[4]]))},i(t){l||(pn(d,t),l=!0)},o(t){gn(d,t),l=!1},d(t){t&&me(n),d&&d.d(t),s=!1,Lt(c)}}}function Er(t){var e;let n,r,i,o,a,l;const s=t[19].default,c=Zt(s,t,t[18],null);let u=[{href:t[7]},{target:t[8]},{style:t[3]},{class:r=t[2]+" "+(t[6]?zn.root__clickable:zn["root__clickable-no-transition"])+" "+(null!==(e=t[1])&&void 0!==e&&e.length?zn["root_disabled-context-menu"]:"")},t[4]],d={};for(let t=0;t<u.length;t+=1)d=Bt(d,u[t]);return{c(){n=ye("a"),c&&c.c(),this.h()},l(t){n=De(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=Ce(n);c&&c.l(e),e.forEach(me),this.h()},h(){Ee(n,d)},m(e,r){ge(e,n,r),c&&c.m(n,null),o=!0,a||(l=[ie(i=t[5].call(null,n)),xe(n,"click",t[10]),xe(n,"click",t[20]),xe(n,"dblclick",(function(){var e,n;Wt(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),xe(n,"touchstart",(function(){var e,n;Wt(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),xe(n,"touchmove",(function(){var e,n;Wt(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),xe(n,"touchend",(function(){var e,n;Wt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),xe(n,"touchcancel",(function(){var e,n;Wt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),xe(n,"keydown",t[15]),xe(n,"focus",t[21]),xe(n,"blur",t[22])],a=!0)},p(e,i){var a;t=e,c&&c.p&&(!o||262144&i)&&ee(c,s,t,t[18],o?te(s,t[18],i,null):ne(t[18]),null),Ee(n,d=_n(u,[(!o||128&i)&&{href:t[7]},(!o||256&i)&&{target:t[8]},(!o||8&i)&&{style:t[3]},(!o||70&i&&r!==(r=t[2]+" "+(t[6]?zn.root__clickable:zn["root__clickable-no-transition"])+" "+(null!==(a=t[1])&&void 0!==a&&a.length?zn["root_disabled-context-menu"]:"")))&&{class:r},16&i&&t[4]]))},i(t){o||(pn(c,t),o=!0)},o(t){gn(c,t),o=!1},d(t){t&&me(n),c&&c.d(t),a=!1,Lt(l)}}}function Cr(t){let e,n,r,i;const o=[Er,kr],a=[];function l(t,e){return t[7]?0:1}return e=l(t),n=a[e]=o[e](t),{c(){n.c(),r=we()},l(t){n.l(t),r=we()},m(t,n){a[e].m(t,n),ge(t,r,n),i=!0},p(t,i){let[s]=i,c=e;e=l(t),e===c?a[e].p(t,s):(hn(),gn(a[c],1,1,(()=>{a[c]=null})),fn(),n=a[e],n?n.p(t,s):(n=a[e]=o[e](t),n.c()),pn(n,1),n.m(r.parentNode,r))},i(t){i||(pn(n),i=!0)},o(t){gn(n),i=!1},d(t){a[e].d(t),t&&me(r)}}}function Ar(t,e,n){let{$$slots:r={},$$scope:i}=e,{actions:o}=e,{doubleTapActions:a}=e,{longTapActions:l}=e,{cls:s=""}=e,{style:c=null}=e,{attrs:u}=e,{use:d=br}=e,{customAction:h=null}=e,{isNativeActionAnimation:f=!0}=e;const p=He(On),g=He(wr);We(wr,{hasAction:()=>Boolean(g.hasAction()||(null==o?void 0:o.length))});let m,v="",y=-1,$=null,_=!1,b=!1;return t.$$set=t=>{"actions"in t&&n(16,o=t.actions),"doubleTapActions"in t&&n(0,a=t.doubleTapActions),"longTapActions"in t&&n(1,l=t.longTapActions),"cls"in t&&n(2,s=t.cls),"style"in t&&n(3,c=t.style),"attrs"in t&&n(4,u=t.attrs),"use"in t&&n(5,d=t.use),"customAction"in t&&n(17,h=t.customAction),"isNativeActionAnimation"in t&&n(6,f=t.isNativeActionAnimation),"$$scope"in t&&n(18,i=t.$$scope)},t.$$.update=()=>{if(196736&t.$$.dirty){if(Array.isArray(o)&&(null==o?void 0:o.length))for(let t=0;t<o.length;++t){const e=o[t].url;if(e){n(7,v=e),n(8,m=o[t].target||void 0);break}}Array.isArray(o)&&(null==o?void 0:o.length)&&g.hasAction()&&(n(7,v=""),p.logError(ct(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:o}}))),n(9,b=Boolean(h)),v&&!Qn(Zn(v),p.getBuiltinProtocols())?(n(7,v=""),n(9,b=!0)):!v&&Array.isArray(o)&&(null==o?void 0:o.length)&&(n(9,b=!0),p.logError(ct(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:o}})))}},[a,l,s,c,u,d,f,v,m,b,async function(t){g.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==h?void 0:h(t))?t.preventDefault():o&&(o.some((t=>{const e=null==t?void 0:t.url;if(!e)return!1;const n=Zn(e);return n&&!Qn(n,p.getBuiltinProtocols())}))&&t.preventDefault(),p.execAnyActions(o)))},function(t){g.hasAction()||void 0!==t.button&&0!==t.button||p.execAnyActions(a,!0)},function(t){t.touches.length>1||($=xr(t),_=!1,y=Date.now())},function(t){if(!$)return;const e=xr(t);(Math.abs($.x-e.x)>8||Math.abs($.y-e.y)>8)&&(_=!0)},function(){!$||y<0||(!_&&Date.now()-y>=400&&p.execAnyActions(l,!0),$=null,y=-1)},function(t){const e=t.target;e instanceof HTMLElement&&("INPUT"===e.tagName||"true"===e.contentEditable)||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(o)&&o.length&&(p.execAnyActions(o),t.preventDefault())},o,h,i,r,function(e){qe.call(this,t,e)},function(e){qe.call(this,t,e)},function(e){qe.call(this,t,e)},function(e){qe.call(this,t,e)},function(e){qe.call(this,t,e)},function(e){qe.call(this,t,e)}]}const Vr=class extends An{constructor(t){super(),Cn(this,t,Ar,Cr,Gt,{actions:16,doubleTapActions:0,longTapActions:1,cls:2,style:3,attrs:4,use:5,customAction:17,isNativeActionAnimation:6})}},Dr={"outer-background":"divkit-bf253","outer-background_clip":"divkit-dcad7","outer-background__item":"divkit-b921d","outer-background__item_hidden":"divkit-cd613"};function Pr(t){return cr(t)&&t>0}function jr(t,e){return t.map((t=>{if("blur"===(null==t?void 0:t.type)){if(Pr(t.radius))return"blur(".concat(Ln(t.radius/2),")")}else e(ct(new Error("Unknown filter"),{level:"warn",additional:{filter:null==t?void 0:t.type}}))})).filter(Boolean).join(" ")}function Sr(t,e,n){const r=t.slice();return r[5]=e[n],r}function Nr(t){let e,n,r;return{c(){e=ye("span"),this.h()},l(t){e=De(t,"SPAN",{class:!0,style:!0}),Ce(e).forEach(me),this.h()},h(){ke(e,"class",n=Dr["outer-background__item"]),ke(e,"style",r=Rn(t[5].style))},m(t,n){ge(t,e,n)},p(t,n){2&n&&r!==(r=Rn(t[5].style))&&ke(e,"style",r)},d(t){t&&me(e)}}}function Fr(t){let e,n,r,i,o,a;return{c(){e=ye("img"),this.h()},l(t){e=De(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){qt(e.src,n=t[5].image_url)||ke(e,"src",n),ke(e,"alt",""),ke(e,"aria-hidden","true"),ke(e,"loading","lazy"),ke(e,"decoding","async"),ke(e,"class",r=Dr["outer-background__item"]),ke(e,"style",i=Rn(t[5].style))},m(n,r){ge(n,e,r),o||(a=xe(e,"error",t[2]),o=!0)},p(t,r){2&r&&!qt(e.src,n=t[5].image_url)&&ke(e,"src",n),2&r&&i!==(i=Rn(t[5].style))&&ke(e,"style",i)},d(t){t&&me(e),o=!1,a()}}}function Ir(t){let e;function n(t,e){return t[5].image_url?Fr:Nr}let r=n(t),i=r(t);return{c(){i.c(),e=we()},l(t){i.l(t),e=we()},m(t,n){i.m(t,n),ge(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){i.d(t),t&&me(e)}}}function Mr(t){let e,n,r=t[1],i=[];for(let e=0;e<r.length;e+=1)i[e]=Ir(Sr(t,r,e));return{c(){e=ye("span");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=De(t,"SPAN",{class:!0});var n=Ce(e);for(let t=0;t<i.length;t+=1)i[t].l(n);n.forEach(me),this.h()},h(){ke(e,"class",n=Dr["outer-background"]+(t[0]?" "+Dr["outer-background_clip"]:"")),Fe(e,"border-radius",t[0])},m(t,n){ge(t,e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null)},p(t,o){let[a]=o;if(6&a){let n;for(r=t[1],n=0;n<r.length;n+=1){const o=Sr(t,r,n);i[n]?i[n].p(o,a):(i[n]=Ir(o),i[n].c(),i[n].m(e,null))}for(;n<i.length;n+=1)i[n].d(1);i.length=r.length}1&a&&n!==(n=Dr["outer-background"]+(t[0]?" "+Dr["outer-background_clip"]:""))&&ke(e,"class",n),1&a&&Fe(e,"border-radius",t[0])},i:Ot,o:Ot,d(t){t&&me(e),ve(i,t)}}}function Tr(t,e,n){let r,{background:i=[]}=e,{radius:o=""}=e;const a=He(On);return t.$$set=t=>{"background"in t&&n(3,i=t.background),"radius"in t&&n(0,o=t.radius)},t.$$.update=()=>{8&t.$$.dirty&&n(1,r=i.map((t=>{const e={},n={style:e};if("nine_patch_image"===t.type&&t.insets)e["border-image"]='url("'.concat(t.image_url,'") ').concat(t.insets.top||0," ").concat(t.insets.right||0," ").concat(t.insets.bottom||0," ").concat(t.insets.left||0," fill"),e["border-image-width"]="auto";else{const r=qn([t]);"solid"===t.type&&(e["background-color"]=r.color),"gradient"===t.type&&(e["background-image"]=r.image),"image"===t.type&&(e.opacity=Number(t.alpha),n.image_url=t.image_url,e["object-fit"]=r.size,e["object-position"]=r.position,Array.isArray(t.filters)&&t.filters.length&&(e.filter=jr(t.filters,a.logError)))}return n})))},[o,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add(Dr["outer-background__item_hidden"])},i]}const zr=class extends An{constructor(t){super(),Cn(this,t,Tr,Mr,Gt,{background:3,radius:0})}},Or=t=>({hasCustomFocus:64&t[0]}),Jr=t=>({focusHandler:t[36],blurHandler:t[37],hasCustomFocus:t[6]});function Br(t){let e,n;return e=new Vr({props:{use:t[35],cls:t[0]+" "+or("outer",Bn,t[17]),style:Rn(t[15]),actions:t[11],doubleTapActions:t[12],longTapActions:t[13],attrs:t[7],isNativeActionAnimation:!t[5].length||Hr(t[5]),$$slots:{default:[Lr]},$$scope:{ctx:t}}}),e.$on("focus",t[36]),e.$on("blur",t[37]),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};131073&n[0]&&(r.cls=t[0]+" "+or("outer",Bn,t[17])),32768&n[0]&&(r.style=Rn(t[15])),2048&n[0]&&(r.actions=t[11]),4096&n[0]&&(r.doubleTapActions=t[12]),8192&n[0]&&(r.longTapActions=t[13]),128&n[0]&&(r.attrs=t[7]),32&n[0]&&(r.isNativeActionAnimation=!t[5].length||Hr(t[5])),350&n[0]|268435456&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Rr(t){let e,n;return e=new zr({props:{background:t[3],radius:t[2]}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};8&n[0]&&(r.background=t[3]),4&n[0]&&(r.radius=t[2]),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Ur(t){let e,n,r;return{c(){e=ye("span"),this.h()},l(t){e=De(t,"SPAN",{class:!0,style:!0}),Ce(e).forEach(me),this.h()},h(){ke(e,"class",n=Bn.outer__border),ke(e,"style",r=Rn(t[1]))},m(t,n){ge(t,e,n)},p(t,n){2&n[0]&&r!==(r=Rn(t[1]))&&ke(e,"style",r)},d(t){t&&me(e)}}}function Lr(t){let e,n,r,i=t[4]&&Rr(t);const o=t[120].default,a=Zt(o,t,t[121],Jr);let l=t[8]&&Ur(t);return{c(){i&&i.c(),e=we(),a&&a.c(),l&&l.c(),n=we()},l(t){i&&i.l(t),e=we(),a&&a.l(t),l&&l.l(t),n=we()},m(t,o){i&&i.m(t,o),ge(t,e,o),a&&a.m(t,o),l&&l.m(t,o),ge(t,n,o),r=!0},p(t,s){t[4]?i?(i.p(t,s),16&s[0]&&pn(i,1)):(i=Rr(t),i.c(),pn(i,1),i.m(e.parentNode,e)):i&&(hn(),gn(i,1,1,(()=>{i=null})),fn()),a&&a.p&&(!r||64&s[0]|268435456&s[3])&&ee(a,o,t,t[121],r?te(o,t[121],s,Or):ne(t[121]),Jr),t[8]?l?l.p(t,s):(l=Ur(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(t){r||(pn(i),pn(a,t),r=!0)},o(t){gn(i),gn(a,t),r=!1},d(t){i&&i.d(t),t&&me(e),a&&a.d(t),l&&l.d(t),t&&me(n)}}}function Wr(t){let e,n,r=!t[9]&&!t[10]&&Br(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){t[9]||t[10]?r&&(hn(),gn(r,1,1,(()=>{r=null})),fn()):r?(r.p(t,n),1536&n[0]&&pn(r,1)):(r=Br(t),r.c(),pn(r,1),r.m(e.parentNode,e))},i(t){n||(pn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function Hr(t){return t.some((t=>"native"===t.name))}function qr(t,e,n){let r,i,o,a,l,s,c,u,d,h,f,p,g,m,v,y,$,_,b,w,x,E,C,A,V,D,P,j,S,N,F,I,M,T,z,O,J,B,R,U,L,W,H,q,G,K=Ot,X=Ot,Y=Ot,Z=Ot,Q=Ot,tt=Ot,et=Ot,nt=Ot,rt=Ot,it=Ot,ot=Ot,at=Ot,lt=Ot,st=Ot,ut=Ot,dt=Ot,ht=Ot,ft=Ot,pt=Ot;t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>ut())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>ft())),t.$$.on_destroy.push((()=>pt()));let{$$slots:gt={},$$scope:mt}=e;var vt,yt,$t,_t,bt,wt;let{json:xt={}}=e,{origJson:kt}=e,{templateContext:Et}=e,{cls:Ct=""}=e,{style:At}=e,{layoutParams:Vt={}}=e,{customDescription:Dt=!1}=e,{customPaddings:Pt=!1}=e,{customActions:jt=""}=e,{additionalPaddings:St=null}=e,{heightByAspect:Nt=!1}=e,{parentOf:Ft}=e,{replaceItems:It}=e;const Mt={left:"start",center:"center",right:"end"},Tt={top:"start",center:"center",bottom:"end",baseline:"baseline"},zt=He(On),Jt=He(lr);let Bt,Rt,Ut=null,Lt=[];function Wt(t,e){if(!Array.isArray(Ft)||!It)return;const r=Ft.findIndex((e=>(null==e?void 0:e.id)===t)),i=Ft.slice();i.splice(r,1,...e||[]),n(38,Ft=i),It(i)}let Ht,qt,Gt,Kt,Yt,Zt,Qt,te,ee,ne,re={},ie={},oe=!1,ae=1,le="transparent",se=0,ce={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},ue="",de=null,he="",fe={},pe=0,ge=0,me=0,ve=!1,ye=!1,$e={},_e=0,be=0,we=0,xe=!1,ke=!1,Ee=1;const Ce=Vt.fakeElement?[]:xt.transition_triggers||["state_change","visibility_change"],Ae=-1!==Ce.indexOf("state_change")&&xt.id,Ve=-1!==Ce.indexOf("visibility_change")&&xt.id;let De,Pe,je,Se,Ne,Fe,Ie,Me=[],Te=[],ze=[],Oe=[],Je=[],Be=[],Re="";function Ue(t){const e=vr(t.start_value,1),r=vr(t.end_value,1),i=hr(t.start_delay,0),o=hr(t.duration,300),a=mr(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return n(87,Se=e),n(88,Ne=r),"opacity ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"scale":return n(89,Fe=e),n(90,Ie=r),"transform ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"native":case"no_animation":return"";default:return zt.logError(ct(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}let We,qe,Ge,Ke=!1,Xe="visible",Ye=0,Ze=0;return Le((()=>{Lt.forEach((t=>{zt.unregisterParentOf(t)})),n(56,Lt=[])})),t.$$set=t=>{"json"in t&&n(39,xt=t.json),"origJson"in t&&n(40,kt=t.origJson),"templateContext"in t&&n(41,Et=t.templateContext),"cls"in t&&n(0,Ct=t.cls),"style"in t&&n(42,At=t.style),"layoutParams"in t&&n(43,Vt=t.layoutParams),"customDescription"in t&&n(44,Dt=t.customDescription),"customPaddings"in t&&n(45,Pt=t.customPaddings),"customActions"in t&&n(46,jt=t.customActions),"additionalPaddings"in t&&n(47,St=t.additionalPaddings),"heightByAspect"in t&&n(48,Nt=t.heightByAspect),"parentOf"in t&&n(38,Ft=t.parentOf),"replaceItems"in t&&n(49,It=t.replaceItems),"$$scope"in t&&n(121,mt=t.$$scope)},t.$$.update=()=>{if(33554560&t.$$.dirty[1]&&(Lt.forEach((t=>{zt.unregisterParentOf(t)})),n(56,Lt=[]),Ft&&Ft.forEach((t=>{t.id&&(Lt.push(t.id),zt.registerParentOf(t.id,{replaceWith:Wt}))}))),256&t.$$.dirty[1]&&(n(34,r=zt.getDerivedFromVars(xt.focus)),Q(),Q=Xt(r,(t=>n(105,F=t)))),256&t.$$.dirty[1]&&(n(33,i=zt.getDerivedFromVars(xt.border)),pt(),pt=Xt(i,(t=>n(119,G=t)))),66&t.$$.dirty[0]|2113404928&t.$$.dirty[1]|67112960&t.$$.dirty[3]){const t=Ge&&(null==F?void 0:F.border)?F.border:G;let e={},r={},i=!1,o="";if(t){if(t.has_shadow){const r=t.shadow;e["box-shadow"]=r?Un((null===n(51,yt=null===n(50,vt=r.offset)||void 0===vt?void 0:vt.x)||void 0===yt?void 0:yt.value)||0)+" "+Un((null===n(53,_t=null===n(52,$t=r.offset)||void 0===$t?void 0:$t.y)||void 0===_t?void 0:_t.value)||0)+" "+Un(null!==n(54,bt=r.blur)&&void 0!==bt?bt:2)+" "+k(r.color||"#000000",null!==n(55,wt=r.alpha)&&void 0!==wt?wt:.19):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(t.stroke&&(i=!0,n(58,ae=hr(t.stroke.width,ae)),n(59,le=k(t.stroke.color,1,le)),r.border="".concat(Un(ae)," solid ").concat(le)),t.corners_radius?(n(61,ce=function(t,e){const n=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<n.length;++t)if(n[t]&&!ur(n[t]))return e;return t}(t.corners_radius,ce)),r["border-radius"]=e["border-radius"]=_r(ce)):t.corner_radius&&(n(60,se=hr(t.corner_radius,se)),n(61,ce={"top-left":se,"top-right":se,"bottom-right":se,"bottom-left":se}),r["border-radius"]=e["border-radius"]=Un(se)),i&&ae&&(t.corners_radius||t.corner_radius)){let t=Object.assign({},ce);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+ae/2})),o=_r(t)}}n(57,re=gr(e,re)),n(1,ie=gr(r,ie)),n(8,oe=i),n(2,ue=o)}if(256&t.$$.dirty[1]&&(n(32,o=zt.getDerivedFromVars(xt.paddings)),ft(),ft=Xt(o,(t=>n(118,q=t)))),16384&t.$$.dirty[1]|1&t.$$.dirty[2]|33554432&t.$$.dirty[3]&&n(62,de=$r(q&&!Pt?q:void 0,de)),65536&t.$$.dirty[1]|1&t.$$.dirty[2]&&n(98,a=sr(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left"].forEach((r=>{const i=t[r];i&&(n[r]=i);const o=e[r];o&&(n[r]=(n[r]||0)+o)})),n}(de,St))),256&t.$$.dirty[1]&&(n(31,l=zt.getDerivedFromVars(xt.margins)),dt(),dt=Xt(l,(t=>n(116,W=t)))),2&t.$$.dirty[2]|8388608&t.$$.dirty[3]&&n(63,he=dr(W,he)),256&t.$$.dirty[1]&&(n(30,s=zt.getDerivedFromVars(xt.width)),st(),st=Xt(s,(t=>n(114,U=t)))),256&t.$$.dirty[1]&&(n(29,c=zt.getDerivedFromVars(xt.alignment_horizontal)),ht(),ht=Xt(c,(t=>n(117,H=t)))),4096&t.$$.dirty[1]|68&t.$$.dirty[2]|27262976&t.$$.dirty[3]){let t,e,r,i,o={},a=0,l=0,s=!1,c=!1;const u=null==U?void 0:U.type;if("fixed"===u)n(68,pe=hr(null==U?void 0:U.value,pe)),e=Un(pe);else if("wrap_content"!==u&&(Vt.overlapParent||"match_parent"!==u&&u||!Vt.parentHorizontalWrapContent))t="parent","vertical"===Vt.parentContainerOrientation&&Vt.parentContainerWrap&&(c=!0,zt.logError(ct(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===Vt.parentLayoutOrientation?e="calc(100% - ".concat(Ln(((null==W?void 0:W.left)||0)+((null==W?void 0:W.right)||0)),")"):"horizontal"===Vt.parentContainerOrientation&&(a=U&&"weight"in U&&U.weight||1,Vt.parentContainerWrap&&(s=!0));else{if(t="content",("wrap_content"===u&&(null==U?void 0:U.constrained)||("match_parent"===u||!u)&&Vt.parentHorizontalWrapContent)&&(o["width-constrained"]=!0,"horizontal"===Vt.parentContainerOrientation&&(l=1)),"wrap_content"===u){const t=U;t.min_size&&ur(t.min_size.value)&&(r=Un(t.min_size.value)),t.max_size&&ur(t.max_size.value)&&(i=Un(t.max_size.value))}"match_parent"!==u&&u||zt.logError(ct(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}if("parent"===t)o["halign-self"]="stretch";else{const t=H;o["halign-self"]="left"===t||"center"===t||"right"===t?Mt[t]:Vt.parentHAlign||"start"}t&&(o.width=t),n(65,Ht=e),n(66,qt=r),n(67,Gt=i),n(69,ge=a),n(70,me=l),n(64,fe=gr(o,fe)),n(71,ve=s),n(9,ye=c)}if(256&t.$$.dirty[1]&&(n(28,u=zt.getDerivedFromVars(xt.height)),lt(),lt=Xt(u,(t=>n(113,R=t)))),256&t.$$.dirty[1]&&(n(27,d=zt.getDerivedFromVars(xt.alignment_vertical)),ut(),ut=Xt(d,(t=>n(115,L=t)))),135168&t.$$.dirty[1]|17408&t.$$.dirty[2]|13631488&t.$$.dirty[3]){let t,e,r,i,o={},a=0,l=0,s=!1,c=!1;const u=null==R?void 0:R.type;if(Nt);else if("fixed"===u)n(76,_e=hr(null==R?void 0:R.value,_e)),e=Un(_e);else if("match_parent"!==u||!Vt.overlapParent&&Vt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==R?void 0:R.constrained)||"match_parent"===u&&Vt.parentVerticalWrapContent)&&(o["height-constrained"]=!0,"vertical"===Vt.parentContainerOrientation&&(l=1)),"wrap_content"===u){const t=R;(null==t?void 0:t.min_size)&&ur(t.min_size.value)&&(r=Un(t.min_size.value)),(null==t?void 0:t.max_size)&&ur(t.max_size.value)&&(i=Un(t.max_size.value))}"match_parent"===u&&zt.logError(ct(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===Vt.parentContainerOrientation&&Vt.parentContainerWrap&&(c=!0,zt.logError(ct(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===Vt.parentLayoutOrientation?e="calc(100% - ".concat(Ln(((null==W?void 0:W.top)||0)+((null==W?void 0:W.bottom)||0)),")"):"vertical"===Vt.parentContainerOrientation&&(a=(null==R?void 0:R.weight)||1,Vt.parentContainerWrap&&(s=!0));if("parent"===t)o["valign-self"]="stretch";else{const t=L;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===Vt.parentContainerOrientation?o["valign-self"]=Tt[t]:o["valign-self"]=Vt.parentVAlign||"start"}t&&(o.height=t),n(73,Kt=e),n(74,Yt=r),n(75,Zt=i),n(77,be=a),n(78,we=l),n(72,$e=gr(o,$e)),n(79,xe=s),n(10,ke=c)}var e,D;if(4096&t.$$.dirty[1]&&n(101,h=!!Vt.overlapParent||void 0),4096&t.$$.dirty[1]|3145728&t.$$.dirty[3]&&n(100,f=Vt.overlapParent&&(!U||"match_parent"===U.type)&&"match_parent"===(null==R?void 0:R.type)),4096&t.$$.dirty[1]&&n(99,p=Vt.gridArea?"".concat(Vt.gridArea.y+1,"/").concat(Vt.gridArea.x+1,"/span ").concat(Vt.gridArea.rowSpan,"/span ").concat(Vt.gridArea.colSpan):void 0),256&t.$$.dirty[1]&&(n(26,g=zt.getDerivedFromVars(xt.alpha)),at(),at=Xt(g,(t=>n(112,B=t)))),262144&t.$$.dirty[2]|524288&t.$$.dirty[3]&&(n(80,(D=Ee,Ee=!ur(e=B)||void 0===e||e>1?D:Number(e))),n(81,Qt=1===Ee?void 0:Ee)),256&t.$$.dirty[1]&&(n(25,m=zt.getDerivedFromVars(xt.accessibility)),ot(),ot=Xt(m,(t=>n(111,J=t)))),8192&t.$$.dirty[1]|262144&t.$$.dirty[3]&&(n(7,Rt=void 0),J&&!Dt&&J.description&&(n(7,Rt={}),n(7,Rt["aria-label"]=J.description,Rt))),256&t.$$.dirty[1]&&(n(24,v=zt.getDerivedFromVars(xt.background)),it(),it=Xt(v,(t=>n(110,O=t)))),92&t.$$.dirty[0]|135168&t.$$.dirty[3]&&(n(3,te=Ge&&(null==F?void 0:F.background)?F.background:O),n(82,ee={}),n(4,ne=!1),Array.isArray(te)&&(n(4,ne=te.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(ue)),!ne))){const t=qn(te);n(82,ee["background-color"]=t.color,ee),n(82,ee["background-image"]=t.image,ee),n(82,ee["background-size"]=t.size,ee),n(82,ee["background-position"]=t.position,ee),n(82,ee["background-repeat"]="no-repeat",ee)}if(256&t.$$.dirty[1]&&(n(83,De=void 0),Ae&&xt.transition_in&&zt.isRunning("stateChange")&&n(83,De=!0)),256&t.$$.dirty[1]&&(n(85,je=void 0),Ae&&xt.transition_change&&zt.isRunning("stateChange")&&Jt.hasTransitionChange(xt.id)&&n(85,je=!0)),256&t.$$.dirty[1]&&(n(23,y=zt.getDerivedFromVars(xt.action)),nt(),nt=Xt(y,(t=>n(108,T=t)))),256&t.$$.dirty[1]&&(n(22,$=zt.getDerivedFromVars(xt.actions)),rt(),rt=Xt($,(t=>n(109,z=t)))),256&t.$$.dirty[1]&&(n(21,_=zt.getDerivedFromVars(xt.doubletap_actions)),et(),et=Xt(_,(t=>n(107,M=t)))),256&t.$$.dirty[1]&&(n(20,b=zt.getDerivedFromVars(xt.longtap_actions)),tt(),tt=Xt(b,(t=>n(106,I=t)))),36864&t.$$.dirty[1]|126976&t.$$.dirty[3]){let t=z||T&&[T]||[],e=M||[],r=I||[],i=(null==F?void 0:F.on_focus)||[],o=(null==F?void 0:F.on_blur)||[];Vt.fakeElement?(t=[],e=[],r=[],i=[],o=[]):(Array.isArray(t)||(t=[],zt.logError(ct(new Error("Actions should be array")))),Array.isArray(e)||(e=[],zt.logError(ct(new Error("DoubleTapActions should be array")))),Array.isArray(r)||(r=[],zt.logError(ct(new Error("LongTapActions should be array")))),Array.isArray(i)||(i=[],zt.logError(ct(new Error("FocusActions should be array")))),Array.isArray(o)||(o=[],zt.logError(ct(new Error("BlurActions should be array"))))),(t.length||e.length||r.length)&&jt&&(t=[],e=[],r=[],zt.logError(ct(new Error('Cannot use action on component "'.concat(jt,'"'))))),n(11,Me=t),n(12,Te=e),n(13,ze=r),Oe=i,Je=o}if(256&t.$$.dirty[1]&&(n(19,w=zt.getDerivedFromVars(xt.action_animation)),Z(),Z=Xt(w,(t=>n(104,N=t)))),32&t.$$.dirty[0]|2048&t.$$.dirty[3]&&N&&(n(5,Be=yr(N)),n(86,Re=Be.map(Ue).filter(Boolean).join(", "))),256&t.$$.dirty[1]&&(n(18,x=zt.getDerivedFromVars(xt.visibility)),Y(),Y=Xt(x,(t=>n(103,S=t)))),1610612736&t.$$.dirty[2]|1024&t.$$.dirty[3]){const t=Xe,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(S,Xe);t!==e&&(!Ke||"visible"!==Xe&&"visible"!==e?n(92,Xe=e):async function(t){n(92,Xe=t);const e="visible"===t?"in":"out",r="in"===e?xt.transition_in:xt.transition_out;Ve&&r&&(await en(),"in"===e&&n(84,Pe=!0),Jt.runVisibilityTransition(Object.assign(Object.assign({},xt),{visibility:"visible"}),Et,r,Bt,e).then((()=>{"in"===e&&n(84,Pe=!1)})).catch((t=>{throw"in"===e&&n(84,Pe=!1),t})))}(e)),Ke||n(91,Ke=!0)}if(64&t.$$.dirty[0]|4352&t.$$.dirty[1]|1105200132&t.$$.dirty[2]|384&t.$$.dirty[3]&&n(17,E=Object.assign(Object.assign(Object.assign({},fe),$e),{"parent-overlap":h,"parent-overlap-absolute":f,"scroll-snap":Vt.scrollSnap,"hide-on-transition-in":De||Pe||je,visibility:Xe,"has-action-animation":Boolean(Re),"parent-flex":Vt.parentContainerOrientation||void 0,"parent-grid":Boolean(Vt.gridArea)||void 0,"has-custom-focus":Boolean(Ge&&xt.focus)})),256&t.$$.dirty[1]&&(n(16,C=zt.getDerivedFromVars(xt.transform)),X(),X=Xt(C,(t=>n(102,j=t)))),515&t.$$.dirty[3]&&j&&void 0!==j.rotation){const t=j.pivot_x||{type:"pivot-percentage",value:50};n(93,Ye=vr(t.value,Ye));const e="pivot-fixed"===t.type?Un(Ye):"".concat(Ye,"%"),r=j.pivot_y||{type:"pivot-percentage",value:50};n(94,Ze=vr(r.value,Ze));const i="pivot-fixed"===r.type?Un(Ze):"".concat(Ze,"%");n(95,We="".concat(e," ").concat(i)),n(96,qe="rotate(".concat(j.rotation,"deg)"))}164480&t.$$.dirty[2]&&n(97,A=ve||xe?"100%":ge||be?0:void 0),67110912&t.$$.dirty[1]|521779642&t.$$.dirty[2]|124&t.$$.dirty[3]&&n(15,V=Object.assign(Object.assign(Object.assign(Object.assign({},At),ee),re),{width:Ht,"min-width":qt,"max-width":Gt,height:Kt,"min-height":Yt,"max-height":Zt||(null==At?void 0:At["max-height"]),"grid-area":p,padding:a,margin:he,opacity:Qt,transition:Re,"transform-origin":We,transform:qe,"flex-grow":ge||be||void 0,"flex-shrink":me||we?1:void 0,"flex-basis":A,"--divkit-animation-opacity-start":Se,"--divkit-animation-opacity-end":Ne,"--divkit-animation-scale-start":Fe,"--divkit-animation-scale-end":Ie}))},n(14,D=zt.isPointerFocus),K(),K=Xt(D,(t=>n(126,P=t))),[Ct,ie,ue,te,ne,Be,Ge,Rt,oe,ye,ke,Me,Te,ze,D,V,C,E,x,w,b,_,$,y,v,m,g,d,u,c,s,l,o,i,r,function(t){Bt=t,Ae&&xt.transition_in&&Jt.registerChildWithTransitionIn(xt,Et,xt.transition_in,t).then((()=>{n(83,De=!1)})).catch((t=>{throw n(83,De=!1),t})),Ae&&xt.transition_out&&Jt.registerChildWithTransitionOut(xt,Et,xt.transition_out,t),Ae&&xt.transition_change&&Jt.registerChildWithTransitionChange(xt,Et,xt.transition_change,t).then((()=>{n(85,je=!1)})).catch((t=>{throw n(85,je=!1),t}));const e=Vt.fakeElement?[]:xt.visibility_actions||xt.visibility_action&&[xt.visibility_action],r=Vt.fakeElement?[]:xt.disappear_actions;(Array.isArray(e)&&e.length||Array.isArray(r)&&r.length)&&function(t,e){let{visibilityActions:n,disappearActions:r,rootCtx:i}=e;const o=[];n&&n.forEach((t=>{o.push({type:"visibility",index:o.length,action:t,visible:!1,count:0,finished:!1})})),r&&r.forEach((t=>{o.push({type:"disappear",index:o.length,action:t,visible:!1,count:0,finished:!1})}));const a=o.map((t=>{const e="visibility"===t.type,n=i.getJsonWithVars({visibility_percentage:t.action.visibility_percentage,visibility_duration:e?t.action.visibility_duration:t.action.disappear_duration,log_limit:t.action.log_limit});return er(er({},n),{},{visibility_percentage:rr(e,n.visibility_percentage,e?50:0)})})),l=[...new Set(a.map((t=>t.visibility_percentage/100)))];new IntersectionObserver((t=>{t.forEach((t=>{o.forEach((e=>{const n=a[e.index],r="visibility"===e.type;let o;o=0===n.visibility_percentage?t.intersectionRatio>=1e-12:t.intersectionRatio>=n.visibility_percentage/100;const l=r?!e.visible&&o:e.visible&&!o,s=r?!o:o;l?e.finished||(e.timer=setTimeout((()=>{++e.count;const t=0===n.log_limit?1/0:n.log_limit||1;++e.count>=t&&(e.finished=!0);const o=i.getJsonWithVars(e.action),a=o.url;if(a){const t=Zn(a);t&&!Qn(t,i.getBuiltinProtocols())&&("div-action"===t?i.execAction(o):o.log_id&&i.execCustomAction(o))}i.logStat(r?"visible":"disappear",o)}),a[e.index].visibility_duration||800)):s&&e.timer&&clearTimeout(e.timer),e.visible=o}))}))}),{threshold:l}).observe(t)}(t,{visibilityActions:e,disappearActions:r,rootCtx:zt});const i=xt.id;i&&Jt.registerChild(i);let o=null;if(ar&&!Vt.fakeElement&&(o=ar(t,{json:xt,origJson:kt,rootCtx:zt,templateContext:Et})),Array.isArray(xt.extensions)){const e=zt.getExtensionContext();Ut=xt.extensions.map((n=>{var r;const i=zt.getExtension(n.id,n.params);return i&&(null===(r=i.mountView)||void 0===r||r.call(i,t,e)),i})).filter(Hn)}return{destroy(){if(i&&Jt.unregisterChild(i),Ut){const e=zt.getExtensionContext();Ut.forEach((n=>{var r;null===(r=n.unmountView)||void 0===r||r.call(n,t,e)})),Ut=null}o&&o.destroy()}}},function(){xt.focus&&(P||n(6,Ge=!0),zt.execAnyActions(Oe))},function(){xt.focus&&(n(6,Ge=!1),zt.execAnyActions(Je))},Ft,xt,kt,Et,At,Vt,Dt,Pt,jt,St,Nt,It,vt,yt,$t,_t,bt,wt,Lt,re,ae,le,se,ce,de,he,fe,Ht,qt,Gt,pe,ge,me,ve,$e,Kt,Yt,Zt,_e,be,we,xe,Ee,Qt,ee,De,Pe,je,Re,Se,Ne,Fe,Ie,Ke,Xe,Ye,Ze,We,qe,A,a,p,f,h,j,S,N,F,I,M,T,z,O,J,B,R,U,L,W,H,q,G,gt,mt]}const Gr=class extends An{constructor(t){super(),Cn(this,t,qr,Wr,Gt,{json:39,origJson:40,templateContext:41,cls:0,style:42,layoutParams:43,customDescription:44,customPaddings:45,customActions:46,additionalPaddings:47,heightByAspect:48,parentOf:38,replaceItems:49},null,[-1,-1,-1,-1,-1])}},Kr={"text-range":"divkit-faf07","text-range_singleline":"divkit-ccb64","text-range__top-offset":"divkit-d9237","text-range_decoration_both":"divkit-d7e07","text-range_decoration_underline":"divkit-f3dde","text-range_decoration_strike":"divkit-d27b7","text-range_decoration_none":"divkit-c6b0f"};function Xr(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function Yr(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function Zr(t,e){return Yr(t)||e}function Qr(t){let e,n;return{c(){e=ye("span"),this.h()},l(t){e=De(t,"SPAN",{class:!0}),Ce(e).forEach(me),this.h()},h(){ke(e,"class",n=Kr["text-range__top-offset"]),Fe(e,"margin-top",t[4])},m(t,n){ge(t,e,n)},p(t,n){16&n&&Fe(e,"margin-top",t[4])},d(t){t&&me(e)}}}function ti(t){let e;return{c(){e=_e(t[0])},l(n){e=je(n,t[0])},m(t,n){ge(t,e,n)},p(t,n){1&n&&Ne(e,t[0])},d(t){t&&me(e)}}}function ei(t){let e,n,r,i=t[4]&&Qr(t);return n=new Vr({props:{cls:or("text-range",Kr,t[3]),actions:t[1],style:Rn(t[2]),$$slots:{default:[ti]},$$scope:{ctx:t}}}),{c(){i&&i.c(),e=we(),wn(n.$$.fragment)},l(t){i&&i.l(t),e=we(),xn(n.$$.fragment,t)},m(t,o){i&&i.m(t,o),ge(t,e,o),kn(n,t,o),r=!0},p(t,r){let[o]=r;t[4]?i?i.p(t,o):(i=Qr(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null);const a={};8&o&&(a.cls=or("text-range",Kr,t[3])),2&o&&(a.actions=t[1]),4&o&&(a.style=Rn(t[2])),2097153&o&&(a.$$scope={dirty:o,ctx:t}),n.$set(a)},i(t){r||(pn(n.$$.fragment,t),r=!0)},o(t){gn(n.$$.fragment,t),r=!1},d(t){i&&i.d(t),t&&me(e),En(n,t)}}}function ni(t,e,n){let r,i,o,a,l;var s,c;let{text:u}=e,{rootFontSize:d}=e,{textStyles:h={}}=e,{singleline:f=!1}=e,{actions:p}=e;const g=He(On);let m,v="none",y=12,$=1.25,_="",b="",w="",x=null;return t.$$set=t=>{"text"in t&&n(0,u=t.text),"rootFontSize"in t&&n(5,d=t.rootFontSize),"textStyles"in t&&n(6,h=t.textStyles),"singleline"in t&&n(7,f=t.singleline),"actions"in t&&n(1,p=t.actions)},t.$$.update=()=>{if(64&t.$$.dirty){let t="none";(h.underline||h.strike)&&("single"===h.underline&&"single"===h.strike?t="both":"single"===h.underline?t="underline":"single"===h.strike&&(t="strike")),n(10,v=t)}2112&t.$$.dirty&&n(11,y=Xr(h.font_size,y)),2112&t.$$.dirty&&Pr(h.line_height)&&n(12,$=Number(h.line_height)/y),64&t.$$.dirty&&ur(h.letter_spacing)&&n(13,_=Un(h.letter_spacing)),16448&t.$$.dirty&&(n(14,m=Zr(h.font_weight,m)),"string"==typeof h.font_family&&h.font_family?n(15,b=g.typefaceProvider(h.font_family,{fontWeight:m||400})):n(15,b="")),65600&t.$$.dirty&&n(16,w=k(h.text_color,1,w)),64&t.$$.dirty&&n(4,r=h.top_offset?Un(h.top_offset):""),64&t.$$.dirty&&n(19,i=h.background?qn([h.background]):null),320&t.$$.dirty&&((null===n(8,s=h.border)||void 0===s?void 0:s.stroke)&&"transparent"!==k(h.border.stroke.color)&&Pr(h.border.stroke.width)?n(17,x={color:h.border.stroke.color,width:h.border.stroke.width}):n(17,x=null)),576&t.$$.dirty&&n(18,o=Xr(null===n(9,c=h.border)||void 0===c?void 0:c.corner_radius,0)),1152&t.$$.dirty&&n(3,a={singleline:f,decoration:v}),1046560&t.$$.dirty&&n(2,l={"font-size":Un(10*y/d),"line-height":$,"letter-spacing":_,"font-weight":m,"font-family":b,color:w,background:(null==i?void 0:i.color)||void 0,"box-shadow":x?"inset 0 0 0 ".concat(Un(x.width)," ").concat(x.color):void 0,"border-radius":o?Un(o):void 0})},[u,p,l,a,r,d,h,f,s,c,v,y,$,_,m,b,w,x,o,i]}const ri=class extends An{constructor(t){super(),Cn(this,t,ni,ei,Gt,{text:0,rootFontSize:5,textStyles:6,singleline:7,actions:1})}};function ii(t,e){return"left"===t||"center"===t||"right"===t?t:e}function oi(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?t:e}function ai(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}function li(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}const{Boolean:si}=yn;function ci(t,e,n){const r=t.slice();return r[58]=e[n],r[60]=n,r}function ui(t){let e,n;return e=new Gr({props:{cls:or("text",Jn,t[13])+" "+(t[6]?"":zn.root__unselectable),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[vi]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};8256&n[0]&&(r.cls=or("text",Jn,t[13])+" "+(t[6]?"":zn.root__unselectable)),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),268443312&n[0]|1073741824&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function di(t){let e,n;return e=new ri({props:{text:t[4],rootFontSize:t[5],textStyles:t[28],singleline:t[7]}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),268435456&n[0]&&(r.textStyles=t[28]),128&n[0]&&(r.singleline=t[7]),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function hi(t){let e,n,r=t[10],i=[];for(let e=0;e<r.length;e+=1)i[e]=mi(ci(t,r,e));const o=t=>gn(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=we()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=we()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);ge(t,e,r),n=!0},p(t,n){if(536872608&n[0]){let a;for(r=t[10],a=0;a<r.length;a+=1){const o=ci(t,r,a);i[a]?(i[a].p(o,n),pn(i[a],1)):(i[a]=mi(o),i[a].c(),pn(i[a],1),i[a].m(e.parentNode,e))}for(hn(),a=r.length;a<i.length;a+=1)o(a);fn()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)pn(i[t]);n=!0}},o(t){i=i.filter(si);for(let t=0;t<i.length;t+=1)gn(i[t]);n=!1},d(t){ve(i,t),t&&me(e)}}}function fi(t){let e,n,r,i,o,a,l,s;return{c(){e=ye("span"),n=ye("img"),this.h()},l(t){e=De(t,"SPAN",{style:!0});var r=Ce(e);n=De(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),r.forEach(me),this.h()},h(){ke(n,"class",r=Jn.text__image),qt(n.src,i=t[58].image.url)||ke(n,"src",i),ke(n,"loading","lazy"),ke(n,"decoding","async"),ke(n,"aria-hidden","true"),ke(n,"alt",""),ke(n,"style",o=Rn({width:t[58].image.width,height:t[58].image.height,"margin-top":t[9]?"-".concat(t[58].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[58].image.height):void 0,filter:t[58].image.svgFilterId?"url(#".concat(t[58].image.svgFilterId,")"):void 0})),ke(e,"style",a=Rn(t[58].image.wrapperStyle))},m(r,i){ge(r,e,i),pe(e,n),l||(s=xe(n,"error",t[29]),l=!0)},p(t,r){1024&r[0]&&!qt(n.src,i=t[58].image.url)&&ke(n,"src",i),1536&r[0]&&o!==(o=Rn({width:t[58].image.width,height:t[58].image.height,"margin-top":t[9]?"-".concat(t[58].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[58].image.height):void 0,filter:t[58].image.svgFilterId?"url(#".concat(t[58].image.svgFilterId,")"):void 0}))&&ke(n,"style",o),1024&r[0]&&a!==(a=Rn(t[58].image.wrapperStyle))&&ke(e,"style",a)},i:Ot,o:Ot,d(t){t&&me(e),l=!1,s()}}}function pi(t){let e,n,r=t[58].text&&gi(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){t[58].text?r?(r.p(t,n),1024&n[0]&&pn(r,1)):(r=gi(t),r.c(),pn(r,1),r.m(e.parentNode,e)):r&&(hn(),gn(r,1,1,(()=>{r=null})),fn())},i(t){n||(pn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function gi(t){let e,n;return e=new ri({props:{text:t[58].text,rootFontSize:t[5],textStyles:t[58].textStyles,singleline:t[7],actions:t[58].actions}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.text=t[58].text),32&n[0]&&(r.rootFontSize=t[5]),1024&n[0]&&(r.textStyles=t[58].textStyles),128&n[0]&&(r.singleline=t[7]),1024&n[0]&&(r.actions=t[58].actions),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function mi(t){let e,n,r,i;const o=[pi,fi],a=[];function l(t,e){return"text"in t[58]?0:t[58].image?1:-1}return~(e=l(t))&&(n=a[e]=o[e](t)),{c(){n&&n.c(),r=we()},l(t){n&&n.l(t),r=we()},m(t,n){~e&&a[e].m(t,n),ge(t,r,n),i=!0},p(t,i){let s=e;e=l(t),e===s?~e&&a[e].p(t,i):(n&&(hn(),gn(a[s],1,1,(()=>{a[s]=null})),fn()),~e?(n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),pn(n,1),n.m(r.parentNode,r)):n=null)},i(t){i||(pn(n),i=!0)},o(t){gn(n),i=!1},d(t){~e&&a[e].d(t),t&&me(r)}}}function vi(t){let e,n,r,i,o,a;const l=[hi,di],s=[];function c(t,e){return t[10].length?0:1}return n=c(t),r=s[n]=l[n](t),{c(){e=ye("span"),r.c(),this.h()},l(t){e=De(t,"SPAN",{class:!0,style:!0});var n=Ce(e);r.l(n),n.forEach(me),this.h()},h(){ke(e,"class",i=or("text__inner",Jn,t[12])),ke(e,"style",o=Rn(t[11]))},m(t,r){ge(t,e,r),s[n].m(e,null),a=!0},p(t,u){let d=n;n=c(t),n===d?s[n].p(t,u):(hn(),gn(s[d],1,1,(()=>{s[d]=null})),fn(),r=s[n],r?r.p(t,u):(r=s[n]=l[n](t),r.c()),pn(r,1),r.m(e,null)),(!a||4096&u[0]&&i!==(i=or("text__inner",Jn,t[12])))&&ke(e,"class",i),(!a||2048&u[0]&&o!==(o=Rn(t[11])))&&ke(e,"style",o)},i(t){a||(pn(r),a=!0)},o(t){gn(r),a=!1},d(t){t&&me(e),s[n].d()}}}function yi(t){let e,n,r=!t[8]&&ui(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){t[8]?r&&(hn(),gn(r,1,1,(()=>{r=null})),fn()):r?(r.p(t,n),256&n[0]&&pn(r,1)):(r=ui(t),r.c(),pn(r,1),r.m(e.parentNode,e))},i(t){n||(pn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function $i(t,e,n){let r,i,o,a,l,s,c,u,d,h,f,p,g,m,v,y,$,_,b,w,x,E,C,A,V,D,P,j,S,N,F,I,M,T,z,O=Ot,J=Ot,B=Ot,R=Ot,U=Ot,L=Ot,W=Ot,H=Ot,q=Ot,G=Ot,K=Ot,X=Ot,Y=Ot,Z=Ot;t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z()));let{json:Q={}}=e,{templateContext:tt}=e,{origJson:et}=e,{layoutParams:nt}=e;const rt=He(On);let it=!1,ot="",at=12,lt=1.25,st=!1,ut="",dt="",ht=!1,ft="left",pt="top",gt="",mt="",vt="",yt=!1,$t=[],_t=[];return Le((()=>{_t.forEach((t=>{let[e,n]=t;rt.removeSvgFilter(e,n)}))})),t.$$set=t=>{"json"in t&&n(0,Q=t.json),"templateContext"in t&&n(1,tt=t.templateContext),"origJson"in t&&n(2,et=t.origJson),"layoutParams"in t&&n(3,nt=t.layoutParams)},t.$$.update=()=>{var e,tt;if(1&t.$$.dirty[0]&&(n(27,r=rt.getDerivedFromVars(Q.text)),Z(),Z=Xt(r,(t=>n(54,z=t)))),16&t.$$.dirty[0]|8388608&t.$$.dirty[1]&&(n(4,(e=z,tt=ot,ot=String(null!=e?e:"")||tt)),ot?n(8,it=!1):(n(8,it=!0),rt.logError(ct(new Error('Missing "text" prop for div "text"'))))),1&t.$$.dirty[0]&&(n(26,i=rt.getDerivedFromVars(Q.ranges)),J(),J=Xt(i,(t=>n(43,C=t)))),1&t.$$.dirty[0]&&(n(25,o=rt.getDerivedFromVars(Q.images)),O(),O=Xt(o,(t=>n(42,E=t)))),1&t.$$.dirty[0]&&(n(24,a=rt.getDerivedFromVars({font_size:Q.font_size,letter_spacing:Q.letter_spacing,font_weight:Q.font_weight,font_family:Q.font_family,text_color:Q.text_color,underline:Q.underline,strike:Q.strike,line_height:Q.line_height})),B(),B=Xt(a,(t=>n(28,A=t)))),1&t.$$.dirty[0]&&(n(23,l=rt.getDerivedFromVars(Q.font_size)),Y(),Y=Xt(l,(t=>n(53,T=t)))),32&t.$$.dirty[0]|4194304&t.$$.dirty[1]&&n(5,at=Xr(T,at)),1&t.$$.dirty[0]&&(n(22,s=rt.getDerivedFromVars(Q.line_height)),X(),X=Xt(s,(t=>n(52,M=t)))),32&t.$$.dirty[0]|2097152&t.$$.dirty[1]){const t=M;Pr(t)?(n(30,lt=Number(t)/at),n(9,st=!0)):n(9,st=!1)}if(1&t.$$.dirty[0]&&(n(21,c=rt.getDerivedFromVars(Q.max_lines)),q(),q=Xt(c,(t=>n(49,N=t)))),262144&t.$$.dirty[1]&&n(7,u=1===N),1073741824&t.$$.dirty[0]|268288&t.$$.dirty[1]){let t="",e="",r=!1;if(N&&N>1){let n=Number(N);t=n*lt+"em",C||E||(e=n,r=!0)}n(31,ut=t),n(32,dt=e),n(33,ht=r)}if(1&t.$$.dirty[0]&&(n(20,d=rt.getDerivedFromVars(Q.text_alignment_horizontal)),K(),K=Xt(d,(t=>n(51,I=t)))),1048584&t.$$.dirty[1]&&n(34,ft=ii(I,ft)),1&t.$$.dirty[0]&&(n(19,h=rt.getDerivedFromVars(Q.text_alignment_vertical)),G(),G=Xt(h,(t=>n(50,F=t)))),524304&t.$$.dirty[1]&&n(35,pt=oi(F,pt)),16&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(41,f=!C||ot&&1===C.length&&C[0]&&0===C[0].start&&"number"==typeof C[0].end&&C[0].end>=ot.length),1&t.$$.dirty[0]&&(n(18,p=rt.getDerivedFromVars(Q.text_color)),H(),H=Xt(p,(t=>n(48,S=t)))),135168&t.$$.dirty[1]&&n(40,g=Boolean(S)!==Boolean(C&&C[0]&&C[0].text_color)),398880&t.$$.dirty[1]){let t="";N&&f&&g&&(t=k(S||C&&C[0]&&C[0].text_color,1,gt)),n(36,gt=t)}if(1&t.$$.dirty[0]&&(n(17,m=rt.getDerivedFromVars(Q.focused_text_color)),W(),W=Xt(m,(t=>n(47,j=t)))),65600&t.$$.dirty[1]&&n(37,mt=k(j,1,mt)),1&t.$$.dirty[0]&&(n(16,v=rt.getDerivedFromVars(Q.truncate)),L(),L=Xt(v,(t=>n(46,P=t)))),32768&t.$$.dirty[1]&&n(39,y="none"===P?"none":""),1&t.$$.dirty[0]&&(n(15,$=rt.getDerivedFromVars(Q.text_gradient)),U(),U=Xt($,(t=>n(45,D=t)))),16384&t.$$.dirty[1]){let t="";if(D){const e=qn([D]);e.image&&(t=e.image)}n(38,vt=t)}1&t.$$.dirty[0]&&(n(14,_=rt.getDerivedFromVars(Q.selectable)),R(),R=Xt(_,(t=>n(44,V=t)))),64&t.$$.dirty[0]|8192&t.$$.dirty[1]&&n(6,yt=ai(V,yt)),16&t.$$.dirty[0]|6144&t.$$.dirty[1]&&function(t,e,r){let i=[];if(_t.forEach((t=>{let[e,n]=t;rt.removeSvgFilter(e,n)})),_t=[],!(Array.isArray(e)&&e.length||Array.isArray(r)&&r.length&&t))return void n(10,$t=[]);const o=t;let a=e||[{start:0,end:o.length}],l=r||[],s=0,c=[],u=[];a.forEach((t=>{void 0!==t.start&&void 0!==t.end&&(u.push({index:t.start,range:t,type:"rangeStart",isStart:!0}),u.push({index:t.end,range:t,type:"rangeEnd"}))})),l.forEach(((t,e)=>{void 0!==t.start&&t.url&&t.start<=o.length&&u.push({index:t.start,image:t,type:"image",arrayIndex:e})})),u.sort(((t,e)=>t.index===e.index?t.type!==e.type?"image"===t.type?-1:"image"===e.type?1:t.type<e.type?-1:1:"image"===t.type&&"image"===e.type?e.arrayIndex-t.arrayIndex:"rangeStart"===t.type&&"rangeStart"===e.type?t.range.end-e.range.end:"rangeStart"===t.type?1:"rangeStart"===e.type?-1:"image"!==t.type&&"image"!==e.type?t.range.start-e.range.start:0:t.index-e.index)),u.forEach((t=>{var e;let n="image"===t.type?null:t.range,r=t.index;if(r>s){let n=Object.assign(Object.assign({},A),...c);i.push({text:o.substring(s,r),textStyles:n,actions:"rangeEnd"===t.type&&(null===(e=t.range)||void 0===e?void 0:e.actions)||void 0})}if("rangeStart"===t.type&&n)c.push(n);else if("rangeEnd"===t.type)c=c.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},A),...c),n=Un(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=Un(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const o={"font-size":Un(10*(Number(e.font_size)||12)/at)};let a="";const l=t.image.tint_color,s=li(t.image.tint_mode,"source_in");if(l){const e=k(t.image.tint_color);a=rt.addSvgFilter(e,s),_t.push([e,s])}i.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:o,svgFilterId:a}})}s=r})),s<o.length&&i.push({text:o.substring(s),textStyles:Object.assign({},A)}),n(10,$t=i)}(ot,C,E),128&t.$$.dirty[0]|284&t.$$.dirty[1]&&n(13,b={singleline:u,multiline:ht,halign:ft,valign:pt,truncate:y}),128&t.$$.dirty[1]&&n(12,w={gradient:Boolean(vt)}),1073741856&t.$$.dirty[0]|227&t.$$.dirty[1]&&n(11,x={"font-size":Un(at),"line-height":lt,"max-height":ut,"-webkit-line-clamp":dt,color:gt,"background-image":vt,"--divkit-text-focus-color":mt})},[Q,tt,et,nt,ot,at,yt,u,it,st,$t,x,w,b,_,$,v,m,p,h,d,c,s,l,a,o,i,r,A,function(t){t.target&&"classList"in t.target&&t.target.classList.add(Jn.text__image_hidden)},lt,ut,dt,ht,ft,pt,gt,mt,vt,y,g,f,E,C,V,D,P,j,S,N,F,I,M,T,z]}const _i={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_orientation_vertical:"divkit-ddc33",container_valign_top:"divkit-a331a",container_valign_center:"divkit-aae61",container_valign_bottom:"divkit-c2226","container_valign_space-between":"divkit-ce053","container_valign_space-around":"divkit-cf29b","container_valign_space-evenly":"divkit-b4b04",container_halign_left:"divkit-a3091",container_halign_center:"divkit-bac9d",container_halign_right:"divkit-f4230","container_halign_space-between":"divkit-e5c38","container_halign_space-around":"divkit-feff2","container_halign_space-evenly":"divkit-e5e05",container_orientation_horizontal:"divkit-fe458",container_orientation_overlap:"divkit-a644d"};function bi(t){return{top:Number(null==t?void 0:t.top)||0,right:Number(null==t?void 0:t.right)||0,bottom:Number(null==t?void 0:t.bottom)||0,left:Number(null==t?void 0:t.left)||0}}function wi(t,e,n){const r=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),i=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0);null!=e&&e.show_at_start&&(n?t.top=e.style.height+i:t.left=e.style.width+r),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height+i:t.right=e.style.width+r)}function xi(t,e,n){let r;const i=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),o=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0),a=((null==n?void 0:n.margins.left)||0)+((null==n?void 0:n.margins.right)||0),l=((null==n?void 0:n.margins.top)||0)+((null==n?void 0:n.margins.bottom)||0);return r="horizontal"===t?[null!=n&&n.show_between?n.style.height+l:0,null!=e&&e.show_between?e.style.width+i:0]:[null!=e&&e.show_between?e.style.height+o:0,null!=n&&n.show_between?n.style.width+a:0],r.map(Un).join(" ")}function ki(t,e,n){if(!(t&&t.shape&&t.shape.type&&e.includes(t.shape.type)&&"shape_drawable"===t.type))return n;let r;if("rounded_rectangle"===t.shape.type)i=t.shape,r={width:Number((null===(o=i.item_width)||void 0===o?void 0:o.value)||10),height:Number((null===(a=i.item_height)||void 0===a?void 0:a.value)||10),radius:Number(null!==(l=null===(s=i.corner_radius)||void 0===s?void 0:s.value)&&void 0!==l?l:5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*Number((null===(e=t.radius)||void 0===e?void 0:e.value)||10);return{width:n,height:n,radius:n}}(t.shape)}var i,o,a,l,s;return function(t,e,n){var r;const i={},o=e.stroke||(null==n?void 0:n.stroke),a=null!=o&&o.color?k(o.color):"",l=null!=o&&o.width?Number(null!==(r=o.width)&&void 0!==r?r:1):"";i.width=t.width,i.height=t.height,i.borderRadius=t.radius;const s=e.background_color||(null==n?void 0:n.color);return i.background=k(s),a&&l&&(i.boxShadow="inset 0 0 0 ".concat(Un(l)," ").concat(a)),i}(r,t.shape,{color:t.color,stroke:t.stroke})}let Ei;function Ci(){if(void 0!==Ei)return Ei;const t=document.createElement("div");return t.style.position="absolute",t.style.display="flex",t.style.flexDirection="column",t.style.gap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),Ei=1===t.scrollHeight,document.body.removeChild(t),Ei}const Ai={"container-separator":"divkit-a7719","container-separator__item":"divkit-c770e","container-separator__shape":"divkit-f6e9a"};function Vi(t,e,n){const r=t.slice();return r[13]=e[n],r}function Di(t){let e,n,r,i,o,a="".concat(t[13].style.width,"px"),l="".concat(t[13].style.height,"px"),s="".concat(t[13].style.borderRadius,"px"),c="".concat(t[13].left,"px"),u="".concat(t[13].top,"px"),d="".concat(t[13].width,"px"),h="".concat(t[13].height,"px");return{c(){e=ye("div"),n=ye("div"),i=be(),this.h()},l(t){e=De(t,"DIV",{class:!0});var r=Ce(e);n=De(r,"DIV",{class:!0}),Ce(n).forEach(me),i=Se(r),r.forEach(me),this.h()},h(){ke(n,"class",r=Ai["container-separator__shape"]),Fe(n,"width",a),Fe(n,"height",l),Fe(n,"border-radius",s),Fe(n,"background",t[13].style.background),Fe(n,"box-shadow",t[13].style.boxShadow),ke(e,"class",o=Ai["container-separator__item"]),Fe(e,"left",c),Fe(e,"top",u),Fe(e,"width",d),Fe(e,"height",h)},m(t,r){ge(t,e,r),pe(e,n),pe(e,i)},p(t,r){2&r&&a!==(a="".concat(t[13].style.width,"px"))&&Fe(n,"width",a),2&r&&l!==(l="".concat(t[13].style.height,"px"))&&Fe(n,"height",l),2&r&&s!==(s="".concat(t[13].style.borderRadius,"px"))&&Fe(n,"border-radius",s),2&r&&Fe(n,"background",t[13].style.background),2&r&&Fe(n,"box-shadow",t[13].style.boxShadow),2&r&&c!==(c="".concat(t[13].left,"px"))&&Fe(e,"left",c),2&r&&u!==(u="".concat(t[13].top,"px"))&&Fe(e,"top",u),2&r&&d!==(d="".concat(t[13].width,"px"))&&Fe(e,"width",d),2&r&&h!==(h="".concat(t[13].height,"px"))&&Fe(e,"height",h)},d(t){t&&me(e)}}}function Pi(t){let e,n,r,i,o=t[1],a=[];for(let e=0;e<o.length;e+=1)a[e]=Di(Vi(t,o,e));return{c(){e=ye("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){e=De(t,"DIV",{class:!0});var n=Ce(e);for(let t=0;t<a.length;t+=1)a[t].l(n);n.forEach(me),this.h()},h(){ke(e,"class",n=Ai["container-separator"])},m(n,o){ge(n,e,o);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(e,null);t[10](e),r||(i=xe(window,"resize",t[2]),r=!0)},p(t,n){let[r]=n;if(2&r){let n;for(o=t[1],n=0;n<o.length;n+=1){const i=Vi(t,o,n);a[n]?a[n].p(i,r):(a[n]=Di(i),a[n].c(),a[n].m(e,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=o.length}},i:Ot,o:Ot,d(n){n&&me(e),ve(a,n),t[10](null),r=!1,i()}}}function ji(t,e,n,r,i,o){const a=e.margins.left,l=e.margins.right,s=e.margins.top,c=e.margins.bottom;o?t.push({top:n.bottom+s,left:i.left+a,width:Math.max(0,i.right-i.left-a-l),height:r.top-n.bottom-s-c,style:e.style}):t.push({top:i.top+s,left:n.right+a,width:r.left-n.right-a-l,height:Math.max(0,i.bottom-i.top-s-c),style:e.style})}function Si(t,e,n,r){const i={top:Math.min(...n.map((t=>t.top))),right:Math.max(...n.map((t=>t.right))),bottom:Math.max(...n.map((t=>t.bottom))),left:Math.min(...n.map((t=>t.left)))};if((null==e?void 0:e.show_at_start)&&ji(t,e,{top:0,right:n[0].left-e.style.width-e.margins.left-e.margins.right,bottom:n[0].top-e.style.height-e.margins.top-e.margins.bottom,left:0},n[0],i,r),null==e?void 0:e.show_between)for(let o=0;o<n.length-1;++o)ji(t,e,n[o],n[o+1],i,r);if(null==e?void 0:e.show_at_end){const o=n[n.length-1];ji(t,e,o,{top:o.bottom+e.style.height+e.margins.top+e.margins.bottom,right:0,bottom:0,left:o.right+e.style.width+e.margins.left+e.margins.right},i,r)}}function Ni(t,e,n){let r,{orientation:i}=e,{separator:o}=e,{lineSeparator:a}=e;const l=function(t,e){let n,r=0,i=!1;return function(){const e=Date.now();return!r||Math.abs(e-r)>10?(r=e,n=t.apply(this,arguments)):(i||(i=!0,setTimeout((()=>{i=!1,n=t.apply(this,arguments)}),10)),n)}}((function(){if(!r)return;const t=r.getBoundingClientRect();n(1,c=[]);let e=[...r.children].filter((t=>t!==s&&!t.classList.contains(Bn.outer__border))),l=[];for(;e.length;){const t=[],n=e.shift();t.push(n);let r=n.getBoundingClientRect(),o=r.right,a=r.bottom;for(;e.length;){let n=e[0],r=n.getBoundingClientRect();if("vertical"===i){if(r.top<a)break}else if(r.left<o)break;o=Math.max(o,r.right),a=Math.max(a,r.bottom),t.push(n),e.shift()}l.push(t)}const u=[];l.forEach((t=>{const e=t.map((t=>function(t){const e=t.getBoundingClientRect(),n=getComputedStyle(t);return{top:e.top-parseFloat(n.marginTop),right:e.right+parseFloat(n.marginRight),bottom:e.bottom+parseFloat(n.marginBottom),left:e.left-parseFloat(n.marginLeft)}}(t)));o&&Si(c,o,e,"vertical"===i);const n={top:Math.min(...e.map((t=>t.top))),right:Math.max(...e.map((t=>t.right))),bottom:Math.max(...e.map((t=>t.bottom))),left:Math.min(...e.map((t=>t.left)))};u.push(n)})),a&&Si(c,a,u,"horizontal"===i),c.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let s,c=[],u=!1,d=null,h=null;function f(t){t.some((t=>{var e;const n=null===(e=t.target)||void 0===e?void 0:e.classList;return!(null==n?void 0:n.contains(Ai["container-separator__shape"]))&&!(null==n?void 0:n.contains(Ai["container-separator"]))}))&&l()}return Ue((()=>{n(6,u=!0)})),Le((()=>{n(6,u=!1)})),t.$$set=t=>{"orientation"in t&&n(3,i=t.orientation),"separator"in t&&n(4,o=t.separator),"lineSeparator"in t&&n(5,a=t.lineSeparator)},t.$$.update=()=>{1&t.$$.dirty&&n(9,r=(null==s?void 0:s.parentElement)||null),960&t.$$.dirty&&(u&&r||d||h)&&(d&&(d.disconnect(),n(7,d=null)),h&&(h.disconnect(),n(8,h=null)),u&&r&&("undefined"!=typeof MutationObserver&&(n(7,d=new MutationObserver(f)),d.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(8,h=new ResizeObserver(l)),h.observe(r)))),576&t.$$.dirty&&u&&r&&l()},[s,c,l,i,o,a,u,d,h,r,function(t){Ke[t?"unshift":"push"]((()=>{s=t,n(0,s)}))}]}const Fi=class extends An{constructor(t){super(),Cn(this,t,Ni,Pi,Gt,{orientation:3,separator:4,lineSeparator:5})}},{Boolean:Ii}=yn;function Mi(t,e,n){const r=t.slice();return r[47]=e[n],r}function Ti(t){let e,n;return e=new Gr({props:{cls:or("container",_i,t[12]),style:t[10],json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],additionalPaddings:t[16],heightByAspect:Boolean(t[8]),parentOf:t[11],replaceItems:t[24],$$slots:{default:[Bi]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=or("container",_i,t[12])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),65536&n[0]&&(r.additionalPaddings=t[16]),256&n[0]&&(r.heightByAspect=Boolean(t[8])),2048&n[0]&&(r.parentOf=t[11]),8391392&n[0]|524288&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function zi(t){let e,n;return e=new Wl({props:{layoutParams:t[9],div:t[47].json,templateContext:t[47].templateContext,origJson:t[47].origJson}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.layoutParams=t[9]),8388608&n[0]&&(r.div=t[47].json),8388608&n[0]&&(r.templateContext=t[47].templateContext),8388608&n[0]&&(r.origJson=t[47].origJson),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Oi(t){let e,n,r=t[23],i=[];for(let e=0;e<r.length;e+=1)i[e]=zi(Mi(t,r,e));const o=t=>gn(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=we()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=we()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);ge(t,e,r),n=!0},p(t,n){if(8389120&n[0]){let a;for(r=t[23],a=0;a<r.length;a+=1){const o=Mi(t,r,a);i[a]?(i[a].p(o,n),pn(i[a],1)):(i[a]=zi(o),i[a].c(),pn(i[a],1),i[a].m(e.parentNode,e))}for(hn(),a=r.length;a<i.length;a+=1)o(a);fn()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)pn(i[t]);n=!0}},o(t){i=i.filter(Ii);for(let t=0;t<i.length;t+=1)gn(i[t]);n=!1},d(t){ve(i,t),t&&me(e)}}}function Ji(t){let e,n;return e=new Fi({props:{separator:t[6],lineSeparator:t[7],orientation:t[5]}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.separator=t[6]),128&n[0]&&(r.lineSeparator=t[7]),32&n[0]&&(r.orientation=t[5]),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Bi(t){let e,n,r,i=t[11],o=Oi(t),a=(t[6]||t[7])&&Ji(t);return{c(){o.c(),e=be(),a&&a.c(),n=we()},l(t){o.l(t),e=Se(t),a&&a.l(t),n=we()},m(t,i){o.m(t,i),ge(t,e,i),a&&a.m(t,i),ge(t,n,i),r=!0},p(t,r){2048&r[0]&&Gt(i,i=t[11])?(hn(),gn(o,1,1,Ot),fn(),o=Oi(t),o.c(),pn(o,1),o.m(e.parentNode,e)):o.p(t,r),t[6]||t[7]?a?(a.p(t,r),192&r[0]&&pn(a,1)):(a=Ji(t),a.c(),pn(a,1),a.m(n.parentNode,n)):a&&(hn(),gn(a,1,1,(()=>{a=null})),fn())},i(t){r||(pn(o),pn(a),r=!0)},o(t){gn(o),gn(a),r=!1},d(t){o.d(t),t&&me(e),a&&a.d(t),t&&me(n)}}}function Ri(t){let e,n,r=!t[4]&&Ti(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){t[4]?r&&(hn(),gn(r,1,1,(()=>{r=null})),fn()):r?(r.p(t,n),16&n[0]&&pn(r,1)):(r=Ti(t),r.c(),pn(r,1),r.m(e.parentNode,e))},i(t){n||(pn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function Ui(t,e,n){let r,i,o,a,l,s,c,u,d,h,f,p,g,m,v,y,$,_,b,w,x,k,E,C,A=Ot,V=Ot,D=Ot,P=Ot,j=Ot,S=Ot,N=Ot,F=Ot,I=Ot;var M,T,z,O,J,B;t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>I()));let{json:R={}}=e,{templateContext:U}=e,{origJson:L}=e,{layoutParams:W}=e;const H={left:"start",center:"center",right:"end","space-between":"start","space-around":"start","space-evenly":"start"},q={top:"start",center:"center",bottom:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},G=["rounded_rectangle","circle"],K=He(On);let X,Y=!1,Z="vertical",Q="top",tt="left",et=null,nt=null,rt={};return t.$$set=t=>{"json"in t&&n(0,R=t.json),"templateContext"in t&&n(1,U=t.templateContext),"origJson"in t&&n(2,L=t.origJson),"layoutParams"in t&&n(3,W=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(11,r=R.items),2048&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,Y=!1):(n(4,Y=!0),K.logError(ct(new Error('Incorrect or empty "items" prop for div "container"'))))),2066&t.$$.dirty[0]&&n(23,i=(!Y&&r||[]).map((t=>{let e=t,n=U;return({templateContext:n,json:e}=K.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(22,o=K.getDerivedFromVars(R.orientation)),I(),I=Xt(o,(t=>n(42,C=t)))),32&t.$$.dirty[0]|2048&t.$$.dirty[1]&&n(5,Z=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(C,Z)),1&t.$$.dirty[0]&&(n(21,a=K.getDerivedFromVars(R.content_alignment_vertical)),F(),F=Xt(a,(t=>n(41,E=t)))),1025&t.$$.dirty[1]&&n(31,Q=function(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(E,Q)),1&t.$$.dirty[0]&&(n(20,l=K.getDerivedFromVars(R.content_alignment_horizontal)),N(),N=Xt(l,(t=>n(40,k=t)))),514&t.$$.dirty[1]&&n(32,tt=function(t,e){return"left"===t||"center"===t||"right"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(k,tt)),1&t.$$.dirty[0]&&(n(19,s=K.getDerivedFromVars(R.layout_mode)),S(),S=Xt(s,(t=>n(39,x=t)))),256&t.$$.dirty[1]&&n(33,c="wrap"===x),1&t.$$.dirty[0]&&(n(18,u=K.getDerivedFromVars(R.separator)),j(),j=Xt(u,(t=>n(38,w=t)))),234881120&t.$$.dirty[0]|128&t.$$.dirty[1])if((null==w?void 0:w.style)&&"overlap"!==Z&&Ci()){const t=ki(w.style,G,(null==et?void 0:et.style)||null);n(6,et=t?{show_at_start:Boolean(null!==n(25,M=w.show_at_start)&&void 0!==M&&M),show_at_end:Boolean(null!==n(26,T=w.show_at_end)&&void 0!==T&&T),show_between:Boolean(null===n(27,z=w.show_between)||void 0===z||z),style:t,margins:bi(w.margins)}:null)}else n(6,et=null);if(1&t.$$.dirty[0]&&(n(17,d=K.getDerivedFromVars(R.line_separator)),P(),P=Xt(d,(t=>n(37,b=t)))),1879048352&t.$$.dirty[0]|64&t.$$.dirty[1])if((null==b?void 0:b.style)&&"overlap"!==Z&&Ci()){const t=ki(b.style,G,(null==nt?void 0:nt.style)||null);n(7,nt=t?{show_at_start:Boolean(null!==n(28,O=b.show_at_start)&&void 0!==O&&O),show_at_end:Boolean(null!==n(29,J=b.show_at_end)&&void 0!==J&&J),show_between:Boolean(null===n(30,B=b.show_between)||void 0===B||B),style:t,margins:bi(b.margins)}:null)}else n(7,nt=null);if(224&t.$$.dirty[0]&&n(16,h=et||nt?function(t,e,n){const r={};return wi(r,e,"vertical"===t),wi(r,n,"horizontal"===t),r}(Z,et,nt):null),1&t.$$.dirty[0]&&(n(15,f=K.getDerivedFromVars(R.aspect)),D(),D=Xt(f,(t=>n(36,_=t)))),32&t.$$.dirty[1]){const t=null==_?void 0:_.ratio;t&&Pr(t)?n(8,X=t):n(8,X=void 0)}if(1&t.$$.dirty[0]&&(n(14,p=K.getDerivedFromVars(R.width)),A(),A=Xt(p,(t=>n(34,y=t)))),1&t.$$.dirty[0]&&(n(13,g=K.getDerivedFromVars(R.height)),V(),V=Xt(g,(t=>n(35,$=t)))),808&t.$$.dirty[0]|31&t.$$.dirty[1]){let t={};(null==W?void 0:W.fakeElement)&&(t.fakeElement=!0),"overlap"===Z&&(t.overlapParent=!0),"horizontal"!==Z&&(t.parentHAlign=c?"start":H[tt],X||$&&"wrap_content"!==$.type&&("match_parent"!==$.type||!(null==W?void 0:W.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0)),"vertical"!==Z&&(t.parentVAlign=c?"start":q[Q],("wrap_content"===(null==y?void 0:y.type)||"match_parent"===(null==y?void 0:y.type)&&(null==W?void 0:W.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0)),"horizontal"===Z&&(t.parentContainerOrientation="horizontal"),"vertical"===Z&&(t.parentContainerOrientation="vertical"),c&&(t.parentContainerWrap=!0),n(9,rt=gr(t,rt))}32&t.$$.dirty[0]|7&t.$$.dirty[1]&&n(12,m={orientation:Z,valign:Q,halign:tt,wrap:c}),480&t.$$.dirty[0]&&n(10,v={gap:et||nt?xi(Z,et,nt):void 0,"aspect-ratio":X})},[R,U,L,W,Y,Z,et,nt,X,rt,v,r,m,g,p,f,h,d,u,s,l,a,o,i,function(t){n(0,R=Object.assign(Object.assign({},R),{items:t}))},M,T,z,O,J,B,Q,tt,c,y,$,_,b,w,x,k,E,C]}const Li={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function Wi(t,e){return"vertical"===t||"horizontal"===t?t:e}function Hi(t){let e,n,r;return{c(){e=ye("span"),this.h()},l(t){e=De(t,"SPAN",{class:!0,style:!0}),Ce(e).forEach(me),this.h()},h(){ke(e,"class",n=Li.separator__inner),ke(e,"style",r=Rn(t[5]))},m(t,n){ge(t,e,n)},p(t,n){32&n&&r!==(r=Rn(t[5]))&&ke(e,"style",r)},d(t){t&&me(e)}}}function qi(t){let e,n=t[6]&&Hi(t);return{c(){n&&n.c(),e=we()},l(t){n&&n.l(t),e=we()},m(t,r){n&&n.m(t,r),ge(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=Hi(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&me(e)}}}function Gi(t){let e,n;return e=new Gr({props:{cls:or("separator",Li,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[qi]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){let[r]=n;const i={};16&r&&(i.cls=or("separator",Li,t[4])),1&r&&(i.json=t[0]),4&r&&(i.origJson=t[2]),2&r&&(i.templateContext=t[1]),8&r&&(i.layoutParams=t[3]),16480&r&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Ki(t,e,n){let r,i,o,a,l,s,c,u=Ot;t.$$.on_destroy.push((()=>u()));let{json:d={}}=e,{templateContext:h}=e,{origJson:f}=e,{layoutParams:p}=e;const g=He(On);let m="horizontal",v="rgba(0,0,0,0.08)";return t.$$set=t=>{"json"in t&&n(0,d=t.json),"templateContext"in t&&n(1,h=t.templateContext),"origJson"in t&&n(2,f=t.origJson),"layoutParams"in t&&n(3,p=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&(n(7,r=g.getDerivedFromVars(d.delimiter_style)),u(),u=Xt(r,(t=>n(12,c=t)))),4352&t.$$.dirty&&n(8,m=Wi(null==c?void 0:c.orientation,m)),4096&t.$$.dirty&&n(6,i=!((null==c?void 0:c.color)&&("transparent"===c.color||9===c.color.length&&0===c.color.indexOf("#00")))),4608&t.$$.dirty&&n(9,v=k(null==c?void 0:c.color,1,v)),256&t.$$.dirty&&n(11,o="horizontal"===m?"100%":Un(1)),256&t.$$.dirty&&n(10,a="horizontal"===m?Un(1):"100%"),3584&t.$$.dirty&&n(5,l={background:v,width:o,height:a}),256&t.$$.dirty&&n(4,s={orientation:m})},[d,h,f,p,s,l,i,r,m,v,a,o,c]}const Xi={image:"divkit-a448f","image_is-width-content":"divkit-fe14a","image_is-height-content":"divkit-f4d92",image__image:"divkit-ce046",image_error:"divkit-f10d9","image__aspect-wrapper":"divkit-dc808",image_aspect:"divkit-ae784",image_loaded:"divkit-cf4e0","divkit-image-appearance":"divkit-e555f","image_before-appearance":"divkit-ffe8a"};function Yi(t){return t.startsWith("data:")?Wn(t):"data:image/jpg;base64,".concat(Wn(t))}function Zi(t){let e,n;return e=new Gr({props:{cls:or("image",Xi,t[10]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customDescription:!0,$$slots:{default:[no]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=or("image",Xi,t[10])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),67312&n[0]|536870912&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Qi(t){let e,n,r,i,o,a,l;return{c(){e=ye("img"),this.h()},l(t){e=De(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){ke(e,"class",n=Xi.image__image),qt(e.src,r=t[4]===oo?io:t[7])||ke(e,"src",r),ke(e,"loading","lazy"),ke(e,"decoding","async"),ke(e,"style",i=Rn(t[9])),ke(e,"alt",t[16]),ke(e,"aria-hidden",o=t[16]?null:"true")},m(n,r){ge(n,e,r),a||(l=[xe(e,"load",t[26]),xe(e,"error",t[27])],a=!0)},p(t,n){144&n[0]&&!qt(e.src,r=t[4]===oo?io:t[7])&&ke(e,"src",r),512&n[0]&&i!==(i=Rn(t[9]))&&ke(e,"style",i),65536&n[0]&&ke(e,"alt",t[16]),65536&n[0]&&o!==(o=t[16]?null:"true")&&ke(e,"aria-hidden",o)},d(t){t&&me(e),a=!1,Lt(l)}}}function to(t){let e,n,r,i,o,a,l,s,c,u="".concat(t[5],"%");return{c(){e=ye("span"),n=ye("img"),this.h()},l(t){e=De(t,"SPAN",{class:!0});var r=Ce(e);n=De(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(me),this.h()},h(){ke(n,"class",r=Xi.image__image),qt(n.src,i=t[4]===oo?io:t[7])||ke(n,"src",i),ke(n,"loading","lazy"),ke(n,"decoding","async"),ke(n,"style",o=Rn(t[9])),ke(n,"alt",t[16]),ke(n,"aria-hidden",a=t[16]?null:"true"),ke(e,"class",l=Xi["image__aspect-wrapper"]),Fe(e,"padding-bottom",u)},m(r,i){ge(r,e,i),pe(e,n),s||(c=[xe(n,"load",t[26]),xe(n,"error",t[27])],s=!0)},p(t,r){144&r[0]&&!qt(n.src,i=t[4]===oo?io:t[7])&&ke(n,"src",i),512&r[0]&&o!==(o=Rn(t[9]))&&ke(n,"style",o),65536&r[0]&&ke(n,"alt",t[16]),65536&r[0]&&a!==(a=t[16]?null:"true")&&ke(n,"aria-hidden",a),32&r[0]&&u!==(u="".concat(t[5],"%"))&&Fe(e,"padding-bottom",u)},d(t){t&&me(e),s=!1,Lt(c)}}}function eo(t){let e;function n(t,e){return t[10].aspect?to:Qi}let r=n(t),i=r(t);return{c(){i.c(),e=we()},l(t){i.l(t),e=we()},m(t,n){i.m(t,n),ge(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){i.d(t),t&&me(e)}}}function no(t){let e,n=t[6],r=eo(t);return{c(){r.c(),e=we()},l(t){r.l(t),e=we()},m(t,n){r.m(t,n),ge(t,e,n)},p(t,i){64&i[0]&&Gt(n,n=t[6])?(r.d(1),r=eo(t),r.c(),r.m(e.parentNode,e)):r.p(t,i)},d(t){t&&me(e),r.d(t)}}}function ro(t){let e,n,r=!t[8]&&Zi(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){t[8]?r&&(hn(),gn(r,1,1,(()=>{r=null})),fn()):r?(r.p(t,n),256&n[0]&&pn(r,1)):(r=Zi(t),r.c(),pn(r,1),r.m(e.parentNode,e))},i(t){n||(pn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}const io="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",oo=2;function ao(t,e,n){let r,i,o,a,l,s,c,u,d,h,f,p,g,m,v,y,$,_,b,w,x,E,C,A,V,D,P,j,S,N,F,I,M,T,z=Ot,O=Ot,J=Ot,B=Ot,R=Ot,U=Ot,L=Ot,W=Ot,H=Ot,q=Ot,G=Ot,K=Ot,X=Ot,Y=Ot;t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y()));let{json:Z={}}=e,{templateContext:Q}=e,{origJson:tt}=e,{layoutParams:et}=e;const nt=He(On);let rt=0,it="rgba(0,0,0,0.08)",ot=!1,at="",lt="none",st="50% 50%";let ut,dt="0",ht="source_in",ft="",pt="",gt=0,mt=0,vt=0,yt="",$t="";return Le((()=>{nt.removeSvgFilter(ut,ht)})),t.$$set=t=>{"json"in t&&n(0,Z=t.json),"templateContext"in t&&n(1,Q=t.templateContext),"origJson"in t&&n(2,tt=t.origJson),"layoutParams"in t&&n(3,et=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(25,r=nt.getDerivedFromVars(Z.image_url)),Y(),Y=Xt(r,(t=>n(55,T=t)))),1&t.$$.dirty[0]&&(n(24,i=nt.getDerivedFromVars(Z.gif_url)),X(),X=Xt(i,(t=>n(54,M=t)))),25165824&t.$$.dirty[1]&&n(7,o=T||M),128&t.$$.dirty[0]&&n(4,rt=0),128&t.$$.dirty[0]&&(o?n(8,ot=!1):(n(8,ot=!0),nt.logError(ct(new Error('Missing "image_url" for "image"'))))),1&t.$$.dirty[0]&&(n(23,a=nt.getDerivedFromVars(Z.width)),K(),K=Xt(a,(t=>n(53,I=t)))),4194304&t.$$.dirty[1]&&n(41,l="wrap_content"===(null==I?void 0:I.type)),1&t.$$.dirty[0]&&(n(22,s=nt.getDerivedFromVars(Z.height)),G(),G=Xt(s,(t=>n(52,F=t)))),2097152&t.$$.dirty[1]&&n(40,c="wrap_content"===(null==F?void 0:F.type)),1&t.$$.dirty[0]&&(n(21,u=nt.getDerivedFromVars(Z.preview)),q(),q=Xt(u,(t=>n(51,N=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(29,at=0!==rt&&rt!==oo||!N?"":'url("'.concat(Yi(N),'")')),1&t.$$.dirty[0]&&(n(20,d=nt.getDerivedFromVars(Z.placeholder_color)),H(),H=Xt(d,(t=>n(50,S=t)))),16&t.$$.dirty[0]|524288&t.$$.dirty[1]&&function(t,e){n(28,it=0===t||t===oo?k(e,1,it):"")}(rt,S),1&t.$$.dirty[0]&&(n(19,h=nt.getDerivedFromVars(Z.scale)),W(),W=Xt(h,(t=>n(49,j=t)))),1073741824&t.$$.dirty[0]|262144&t.$$.dirty[1]&&n(30,lt=Xn(j)||lt),1&t.$$.dirty[0]&&(n(18,f=nt.getDerivedFromVars({content_alignment_horizontal:Z.content_alignment_horizontal,content_alignment_vertical:Z.content_alignment_vertical})),L(),L=Xt(f,(t=>n(48,P=t)))),131072&t.$$.dirty[1]&&n(31,st=function(t,e){const n=t.content_alignment_horizontal,r=t.content_alignment_vertical;return n&&"left"!==n&&"center"!==n&&"right"!==n||r&&"top"!==r&&"center"!==r&&"bottom"!==r?e:Yn(t)}(P,st)),1&t.$$.dirty[0]&&(n(17,p=nt.getDerivedFromVars(Z.accessibility)),U(),U=Xt(p,(t=>n(47,D=t)))),65536&t.$$.dirty[1]&&n(16,g=(null==D?void 0:D.description)||""),1&t.$$.dirty[0]&&(n(15,m=nt.getDerivedFromVars(Z.aspect)),R(),R=Xt(m,(t=>n(46,V=t)))),32768&t.$$.dirty[1]){const t=null==V?void 0:V.ratio;t&&Pr(t)?n(5,dt=(100/Number(t)).toFixed(2)):n(5,dt="0")}if(1&t.$$.dirty[0]&&(n(14,v=nt.getDerivedFromVars(Z.tint_color)),B(),B=Xt(v,(t=>n(45,A=t)))),1&t.$$.dirty[0]&&(n(13,y=nt.getDerivedFromVars(Z.tint_mode)),J(),J=Xt(y,(t=>n(44,C=t)))),24582&t.$$.dirty[1]){const t=A?k(A):void 0,e=li(C,ht);t===ut&&e===ht||(nt.removeSvgFilter(ut,ht),n(6,ft=t?nt.addSvgFilter(t,e):""),n(32,ut=t),n(33,ht=e))}if(1&t.$$.dirty[0]&&(n(12,$=nt.getDerivedFromVars(Z.appearance_animation)),O(),O=Xt($,(t=>n(43,E=t)))),4096&t.$$.dirty[1]&&E&&"fade"===E.type){const t=E;n(34,pt=mr(t.interpolator,"ease_in_out").replace(/_/g,"-")),n(37,vt=hr(t.duration,300)),n(36,mt=hr(t.start_delay,0)),n(35,gt=hr(t.alpha,0))}if(1&t.$$.dirty[0]&&(n(11,_=nt.getDerivedFromVars(Z.filters)),z(),z=Xt(_,(t=>n(42,x=t)))),2048&t.$$.dirty[1]){let t="",e="";Array.isArray(x)&&x.length&&(t=jr(x,nt.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),n(38,yt=t),n(39,$t=e)}48&t.$$.dirty[0]|1544&t.$$.dirty[1]&&n(10,b={aspect:"0"!==dt,"is-width-content":l,"is-height-content":c,loaded:1===rt,"before-appearance":Boolean(pt)&&0===rt}),1879048272&t.$$.dirty[0]|505&t.$$.dirty[1]&&n(9,w={"background-image":at,"background-color":at?void 0:it,"background-size":lt,"clip-path":$t||void 0,"object-fit":lt,"object-position":st,filter:[1===rt&&ft?"url(#".concat(ft,")"):"",yt].filter(Boolean).join(" "),"--divkit-appearance-interpolator":pt||void 0,"--divkit-appearance-fade-start":pt?gt:void 0,"--divkit-appearance-delay":pt?"".concat(mt,"ms"):void 0,"--divkit-appearance-duration":pt?"".concat(vt,"ms"):void 0})},[Z,Q,tt,et,rt,dt,ft,o,ot,w,b,_,$,y,v,m,g,p,f,h,d,u,s,a,i,r,function(){0===rt&&n(4,rt=1)},function(){0===rt&&n(4,rt=oo)},it,at,lt,st,ut,ht,pt,gt,mt,vt,yt,$t,c,l,x,E,C,A,V,D,P,j,S,N,F,I,M,T]}const lo=class extends An{constructor(t){super(),Cn(this,t,ao,ro,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},so={grid:"divkit-d9080",grid_halign_left:"divkit-f63b3",grid_halign_center:"divkit-a14a6",grid_halign_right:"divkit-b0717",grid_valign_top:"divkit-fbca8",grid_valign_center:"divkit-d4310",grid_valign_bottom:"divkit-e4205"};function co(t){return t>0&&t<1}function uo(t){return String(Math.ceil(1e3*t)/1e3)}function ho(t,e,n){if(t.some(co)){const e=Math.max(...t.filter(co).map((t=>1/t)));t=t.map((t=>t*e))}let r=0,i=0;const o=[];if(t.every(Boolean)){i=t.reduce(((t,e)=>t+e),0);for(let o=0;o<n;++o){if(!e[o])continue;const n=e[o]/t[o]*i;n>r&&(r=n)}}for(let e=0;e<n;++e)r?o[e]="minmax(".concat(Un(r*t[e]/i),",").concat(uo(t[e]),"fr)"):t[e]?o[e]="".concat(uo(t[e]),"fr"):o[e]="auto";return o.join(" ")}function fo(t,e,n){const r=t.slice();return r[30]=e[n],r}function po(t){let e,n;return e=new Gr({props:{cls:or("grid",so,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],parentOf:t[0].items,replaceItems:t[12],$$slots:{default:[vo]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=or("grid",so,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),128&n[0]&&(r.style=t[7]),8&n[0]&&(r.layoutParams=t[3]),1&n[0]&&(r.parentOf=t[0].items),32&n[0]|4&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function go(t){let e,n;return e=new Wl({props:{layoutParams:t[30].layoutParams,div:t[30].json,templateContext:t[30].templateContext,origJson:t[30].origJson}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.layoutParams=t[30].layoutParams),32&n[0]&&(r.div=t[30].json),32&n[0]&&(r.templateContext=t[30].templateContext),32&n[0]&&(r.origJson=t[30].origJson),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function mo(t){let e,n,r=t[5],i=[];for(let e=0;e<r.length;e+=1)i[e]=go(fo(t,r,e));const o=t=>gn(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=we()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=we()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);ge(t,e,r),n=!0},p(t,n){if(32&n[0]){let a;for(r=t[5],a=0;a<r.length;a+=1){const o=fo(t,r,a);i[a]?(i[a].p(o,n),pn(i[a],1)):(i[a]=go(o),i[a].c(),pn(i[a],1),i[a].m(e.parentNode,e))}for(hn(),a=r.length;a<i.length;a+=1)o(a);fn()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)pn(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)gn(i[t]);n=!1},d(t){ve(i,t),t&&me(e)}}}function vo(t){let e,n,r=t[5],i=mo(t);return{c(){i.c(),e=we()},l(t){i.l(t),e=we()},m(t,r){i.m(t,r),ge(t,e,r),n=!0},p(t,n){32&n[0]&&Gt(r,r=t[5])?(hn(),gn(i,1,1,Ot),fn(),i=mo(t),i.c(),pn(i,1),i.m(e.parentNode,e)):i.p(t,n)},i(t){n||(pn(i),n=!0)},o(t){gn(i),n=!1},d(t){t&&me(e),i.d(t)}}}function yo(t){let e,n,r=!t[6]&&po(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){t[6]?r&&(hn(),gn(r,1,1,(()=>{r=null})),fn()):r?(r.p(t,n),64&n[0]&&pn(r,1)):(r=po(t),r.c(),pn(r,1),r.m(e.parentNode,e))},i(t){n||(pn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function $o(t,e,n){let r,i,o,a,l,s,c,u,d,h,f,p,g=Ot,m=Ot,v=Ot,y=Ot;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y()));let{json:$={}}=e,{templateContext:_}=e,{origJson:b}=e,{layoutParams:w}=e;const x=He(On);let k,E,C=!1,A=1,V=[],D=[],P=[],j=[],S=0,N=!1,F="top",I="left";return t.$$set=t=>{"json"in t&&n(0,$=t.json),"templateContext"in t&&n(1,_=t.templateContext),"origJson"in t&&n(2,b=t.origJson),"layoutParams"in t&&n(3,w=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(24,r=$.items),16777216&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(13,C=!1):(n(13,C=!0),x.logError(ct(new Error('Incorrect or empty "items" prop for div "grid"'))))),1&t.$$.dirty[0]&&(n(11,i=x.getDerivedFromVars($.column_count)),y(),y=Xt(i,(t=>n(28,p=t)))),268451840&t.$$.dirty[0]&&n(14,A=Xr(p,A)),16785410&t.$$.dirty[0]&&n(23,o=(!C&&r||[]).map((t=>{let e=t,n=_;return({templateContext:n,json:e}=x.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),8388608&t.$$.dirty[0]){let t=[];o.forEach((e=>{t.push(x.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),n(4,k=Pn(t,(t=>[...t]))),v(),v=Xt(k,(t=>n(27,f=t)))}if(144162824&t.$$.dirty[0]){const t={};let e=0,r=0;n(15,V=[]),n(16,D=[]),n(17,P=[]),n(18,j=[]),n(20,N=!1),n(5,E=o.map(((i,o)=>{var a,l,s,c;const u=f[o],d=Number(u.columnSpan)||1,h=Number(u.rowSpan)||1,p={x:e,y:r,colSpan:d,rowSpan:h},g="match_parent"===(null===(a=u.width)||void 0===a?void 0:a.type)?Number(u.width.weight||1)/d:0,m="match_parent"===(null===(l=u.height)||void 0===l?void 0:l.type)?Number(u.height.weight||1)/h:0,v=1===d&&"fixed"===(null===(s=u.width)||void 0===s?void 0:s.type)&&u.width.value?Number(u.width.value)/d:0,y=1===h&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/h:0;for(let i=e;i<e+d;++i)for(let e=r;e<r+h;++e)t[i+"_"+e]?n(20,N=!0):(t[i+"_"+e]=!0,(!V[i]||V[i]<g)&&n(15,V[i]=g,V),(!D[e]||D[e]<m)&&n(16,D[e]=m,D),(!P[i]||P[i]<v)&&n(17,P[i]=v,P),(!j[e]||j[e]<y)&&n(18,j[e]=y,j));do{++e,e>=A&&(e=0,++r)}while(t[e+"_"+r]);return Object.assign(Object.assign({},i),{layoutParams:{gridArea:p,fakeElement:(null==w?void 0:w.fakeElement)||!1}})}))),0!==e&&n(20,N=!0),N&&x.logError(ct(new Error('Mismatching "grid" rows/columns'))),n(19,S=r)}1&t.$$.dirty[0]&&(n(10,a=x.getDerivedFromVars($.content_alignment_vertical)),m(),m=Xt(a,(t=>n(26,h=t)))),69206016&t.$$.dirty[0]&&n(21,F=oi(h,F)),1&t.$$.dirty[0]&&(n(9,l=x.getDerivedFromVars($.content_alignment_horizontal)),g(),g=Xt(l,(t=>n(25,d=t)))),37748736&t.$$.dirty[0]&&n(22,I=ii(d,I)),6291456&t.$$.dirty[0]&&n(8,s={valign:F,halign:I}),1032192&t.$$.dirty[0]&&n(7,c={"grid-template-columns":ho(V,P,A),"grid-template-rows":ho(D,j,S)}),1056768&t.$$.dirty[0]&&n(6,u=C||N)},[$,_,b,w,k,E,u,c,s,l,a,i,function(t){n(0,$=Object.assign(Object.assign({},$),{items:t}))},C,A,V,D,P,j,S,N,F,I,o,r,d,h,f,p]}const _o={gallery:"divkit-cbb0f",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5",gallery__scroller:"divkit-a4e39","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon":"divkit-d100d",gallery__arrow_left:"divkit-a0a5d",gallery__arrow_right:"divkit-f0f59","gallery__arrow-icon-path":"divkit-b4173"};function bo(t){const e=[];let n=t[0],r=1;for(let i=1;i<=t.length;i++)t[i]!==n?(e.push(r>1?"repeat(".concat(r,", ").concat(n,")"):n),n=t[i],r=1):r++;return e.join(" ")}function wo(t,e){let n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,i),n=null}),e)}}const{Boolean:xo}=yn;function ko(t,e,n){const r=t.slice();return r[73]=e[n],r[74]=e,r[75]=n,r}function Eo(t,e,n){const r=t.slice();return r[76]=e[n],r}function Co(t){let e,n;return e=new Gr({props:{cls:or("gallery",_o,t[17]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",parentOf:t[10],replaceItems:t[32],$$slots:{default:[No]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};131072&n[0]&&(r.cls=or("gallery",_o,t[17])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1024&n[0]&&(r.parentOf=t[10]),671906768&n[0]|131072&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Ao(t){let e,n;return e=new Wl({props:{layoutParams:t[8],div:t[76].json,templateContext:t[76].templateContext,origJson:t[76].origJson}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),134217728&n[0]&&(r.div=t[76].json),134217728&n[0]&&(r.templateContext=t[76].templateContext),134217728&n[0]&&(r.origJson=t[76].origJson),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Vo(t){let e,n,r,i,o,a=t[75],l=t[73],s=[];for(let e=0;e<l.length;e+=1)s[e]=Ao(Eo(t,l,e));const c=t=>gn(s[t],1,1,(()=>{s[t]=null})),u=()=>t[61](e,a),d=()=>t[61](null,a);return{c(){e=ye("div");for(let t=0;t<s.length;t+=1)s[t].c();n=be(),this.h()},l(t){e=De(t,"DIV",{class:!0,style:!0});var r=Ce(e);for(let t=0;t<s.length;t+=1)s[t].l(r);n=Se(r),r.forEach(me),this.h()},h(){ke(e,"class",r=_o.gallery__items),ke(e,"style",i=Rn(t[18]))},m(t,r){ge(t,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);pe(e,n),u(),o=!0},p(r,h){if(t=r,134217984&h[0]){let r;for(l=t[73],r=0;r<l.length;r+=1){const i=Eo(t,l,r);s[r]?(s[r].p(i,h),pn(s[r],1)):(s[r]=Ao(i),s[r].c(),pn(s[r],1),s[r].m(e,n))}for(hn(),r=l.length;r<s.length;r+=1)c(r);fn()}(!o||262144&h[0]&&i!==(i=Rn(t[18])))&&ke(e,"style",i),a!==t[75]&&(d(),a=t[75],u())},i(t){if(!o){for(let t=0;t<l.length;t+=1)pn(s[t]);o=!0}},o(t){s=s.filter(xo);for(let t=0;t<s.length;t+=1)gn(s[t]);o=!1},d(t){t&&me(e),ve(s,t),d()}}}function Do(t){let e,n,r=t[27],i=[];for(let e=0;e<r.length;e+=1)i[e]=Vo(ko(t,r,e));const o=t=>gn(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=we()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=we()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);ge(t,e,r),n=!0},p(t,n){if(134484224&n[0]){let a;for(r=t[27],a=0;a<r.length;a+=1){const o=ko(t,r,a);i[a]?(i[a].p(o,n),pn(i[a],1)):(i[a]=Vo(o),i[a].c(),pn(i[a],1),i[a].m(e.parentNode,e))}for(hn(),a=r.length;a<i.length;a+=1)o(a);fn()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)pn(i[t]);n=!0}},o(t){i=i.filter(xo);for(let t=0;t<i.length;t+=1)gn(i[t]);n=!1},d(t){ve(i,t),t&&me(e)}}}function Po(t){let e,n,r=t[13]&&t[9]&&jo(t),i=t[14]&&t[9]&&So(t);return{c(){r&&r.c(),e=be(),i&&i.c(),n=we()},l(t){r&&r.l(t),e=Se(t),i&&i.l(t),n=we()},m(t,o){r&&r.m(t,o),ge(t,e,o),i&&i.m(t,o),ge(t,n,o)},p(t,o){t[13]&&t[9]?r?r.p(t,o):(r=jo(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[14]&&t[9]?i?i.p(t,o):(i=So(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(t){r&&r.d(t),t&&me(e),i&&i.d(t),t&&me(n)}}}function jo(t){let e,n,r,i,o=!t[30]&&function(t){let e,n,r,i;return{c(){e=$e("svg"),n=$e("path"),this.h()},l(t){e=Pe(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Ce(e);n=Pe(r,"path",{class:!0,d:!0}),Ce(n).forEach(me),r.forEach(me),this.h()},h(){ke(n,"class",r=_o["gallery__arrow-icon-path"]),ke(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),ke(e,"class",i=_o["gallery__arrow-icon"]),ke(e,"xmlns","http://www.w3.org/2000/svg"),ke(e,"width","32"),ke(e,"height","32"),ke(e,"viewBox","0 0 32 32"),ke(e,"fill","none")},m(t,r){ge(t,e,r),pe(e,n)},p:Ot,d(t){t&&me(e)}}}();return{c(){e=ye("div"),o&&o.c(),this.h()},l(t){e=De(t,"DIV",{class:!0});var n=Ce(e);o&&o.l(n),n.forEach(me),this.h()},h(){ke(e,"class",n=t[30]||"".concat(_o.gallery__arrow," ").concat(_o.gallery__arrow_left))},m(n,a){ge(n,e,a),o&&o.m(e,null),r||(i=xe(e,"click",t[64]),r=!0)},p(t,e){t[30]||o.p(t,e)},d(t){t&&me(e),o&&o.d(),r=!1,i()}}}function So(t){let e,n,r,i,o=!t[31]&&function(t){let e,n,r,i;return{c(){e=$e("svg"),n=$e("path"),this.h()},l(t){e=Pe(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Ce(e);n=Pe(r,"path",{class:!0,d:!0}),Ce(n).forEach(me),r.forEach(me),this.h()},h(){ke(n,"class",r=_o["gallery__arrow-icon-path"]),ke(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),ke(e,"class",i=_o["gallery__arrow-icon"]),ke(e,"xmlns","http://www.w3.org/2000/svg"),ke(e,"width","32"),ke(e,"height","32"),ke(e,"viewBox","0 0 32 32"),ke(e,"fill","none")},m(t,r){ge(t,e,r),pe(e,n)},p:Ot,d(t){t&&me(e)}}}();return{c(){e=ye("div"),o&&o.c(),this.h()},l(t){e=De(t,"DIV",{class:!0});var n=Ce(e);o&&o.l(n),n.forEach(me),this.h()},h(){ke(e,"class",n=t[31]||"".concat(_o.gallery__arrow," ").concat(_o.gallery__arrow_right))},m(n,a){ge(n,e,a),o&&o.m(e,null),r||(i=xe(e,"click",t[65]),r=!0)},p(t,e){t[31]||o.p(t,e)},d(t){t&&me(e),o&&o.d(),r=!1,i()}}}function No(t){let e,n,r,i,o,a,l,s,c,u,d,h=t[27],f=Do(t),p="horizontal"===t[6]&&Po(t);return{c(){e=ye("div"),n=ye("div"),f.c(),l=be(),p&&p.c(),s=we(),this.h()},l(t){e=De(t,"DIV",{class:!0,style:!0});var r=Ce(e);n=De(r,"DIV",{class:!0,style:!0});var i=Ce(n);f.l(i),i.forEach(me),r.forEach(me),l=Se(t),p&&p.l(t),s=we(),this.h()},h(){ke(n,"class",r=_o["gallery__items-grid"]),ke(n,"style",i=Rn(t[19])),ke(e,"class",o=_o.gallery__scroller+" "+(t[29]?zn["root_restrict-scroll"]:"")),ke(e,"style",a=Rn(t[7]))},m(r,i){ge(r,e,i),pe(e,n),f.m(n,null),t[62](n),t[63](e),ge(r,l,i),p&&p.m(r,i),ge(r,s,i),c=!0,u||(d=xe(e,"scroll",(function(){Wt(t[9]?t[34]:null)&&(t[9]?t[34]:null).apply(this,arguments)})),u=!0)},p(r,l){t=r,134217728&l[0]&&Gt(h,h=t[27])?(hn(),gn(f,1,1,Ot),fn(),f=Do(t),f.c(),pn(f,1),f.m(n,null)):f.p(t,l),(!c||524288&l[0]&&i!==(i=Rn(t[19])))&&ke(n,"style",i),(!c||536870912&l[0]&&o!==(o=_o.gallery__scroller+" "+(t[29]?zn["root_restrict-scroll"]:"")))&&ke(e,"class",o),(!c||128&l[0]&&a!==(a=Rn(t[7])))&&ke(e,"style",a),"horizontal"===t[6]?p?p.p(t,l):(p=Po(t),p.c(),p.m(s.parentNode,s)):p&&(p.d(1),p=null)},i(t){c||(pn(f),c=!0)},o(t){gn(f),c=!1},d(n){n&&me(e),f.d(n),t[62](null),t[63](null),n&&me(l),p&&p.d(n),n&&me(s),u=!1,d()}}}function Fo(t){let e,n,r,i,o=!t[5]&&Co(t);return{c(){o&&o.c(),e=we()},l(t){o&&o.l(t),e=we()},m(a,l){o&&o.m(a,l),ge(a,e,l),n=!0,r||(i=xe(window,"resize",(function(){Wt(t[9]?t[35]:null)&&(t[9]?t[35]:null).apply(this,arguments)})),r=!0)},p(n,r){(t=n)[5]?o&&(hn(),gn(o,1,1,(()=>{o=null})),fn()):o?(o.p(t,r),32&r[0]&&pn(o,1)):(o=Co(t),o.c(),pn(o,1),o.m(e.parentNode,e))},i(t){n||(pn(o),n=!0)},o(t){gn(o),n=!1},d(t){o&&o.d(t),t&&me(e),r=!1,i()}}}function Io(t,e,n){let r,i,o,a,l,s,c,u,d,h,f,p,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j=Ot,S=Ot,N=Ot,F=Ot,I=Ot,M=Ot,T=Ot,z=Ot,O=Ot,J=Ot;t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>J()));let{json:B={}}=e,{templateContext:R}=e,{origJson:U}=e,{layoutParams:L}=e;const W=He(On);let H,q,G=[],K=!1,X=!1,Y=null,Z=!1;const Q=W.getCustomization("galleryLeftClass"),tt=W.getCustomization("galleryRightClass");let et=!1;const nt=W.isDesktop;Yt(t,nt,(t=>n(60,D=t)));let rt,it,ot,at,lt=1,st="horizontal",ut="start",dt=8,ht="",ft=[],pt={},gt=!1,mt={},vt=0;function yt(){if(!H)return;const t=H.scrollLeft,e=H.scrollWidth,r=H.offsetWidth;n(13,K=t>2),n(14,X=t+r<e-2)}const $t=wo(yt,50);function _t(t){H.scroll({left:H.scrollLeft+.75*H.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function bt(){let t=[],e=G[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<lt;++e){const r=G[e].children[n];r&&t.push(r)}return t}function wt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===st,i=r?"offsetLeft":"offsetTop",o=r?"left":"top";H.scroll({[o]:Math.max(0,t[e][i]+.01-dt/2),behavior:n})}function xt(t){const e=bt(),n=H.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===st?e.left>=t.left&&e.right<=t.right:e.top>=t.top&&e.bottom<=t.bottom}(n,t.getBoundingClientRect())));if(-1!==r)return r;const i=e.map((t=>function(t,e){return"horizontal"===st?e.right>t.left&&t.right>e.left:e.bottom>t.top&&t.bottom>e.top}(n,t.getBoundingClientRect()))),o=i.findIndex(Boolean);return-1!==o?"prev"===t&&2===i.filter(Boolean).length?o+1:o:"prev"===t?1:e.length-2}return!B.id||et||(null==L?void 0:L.fakeElement)||W.registerInstance(B.id,{setCurrentItem(t){const e=bt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');wt(e,t)},setPreviousItem(t){const e=xt("prev"),n=bt();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),wt(n,r)},setNextItem(t){const e="horizontal"===st?H.scrollLeft+H.offsetWidth===H.scrollWidth:H.scrollTop+H.offsetHeight===H.scrollHeight,n=bt();if(e&&"ring"===t)return void wt(n,0);const r=xt("next");let i=r+1;i>n.length-1&&(i="ring"===t?0:r),wt(n,i)}}),Ue((()=>{n(38,Z=!0),!et&&(yt(),vt)&&wt(bt(),vt,"auto")})),Le((()=>{n(38,Z=!1),B.id&&!(null==L?void 0:L.fakeElement)&&W.unregisterInstance(B.id)})),t.$$set=t=>{"json"in t&&n(0,B=t.json),"templateContext"in t&&n(1,R=t.templateContext),"origJson"in t&&n(2,U=t.origJson),"layoutParams"in t&&n(3,L=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(10,r=B.items),1024&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(5,et=!1):(n(5,et=!0),W.logError(ct(new Error('Incorrect or empty "items" prop for div "gallery"'))))),1058&t.$$.dirty[0]&&n(50,i=(!et&&r||[]).map((t=>{let e=t,n=R;return({templateContext:n,json:e}=W.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),32&t.$$.dirty[0]|536871040&t.$$.dirty[1]&&n(9,o=D&&Z&&!et),528&t.$$.dirty[0]|64&t.$$.dirty[1]&&(o?"undefined"!=typeof ResizeObserver&&(n(37,Y=new ResizeObserver((()=>{$t()}))),Y.observe(q)):Y&&(Y.disconnect(),n(37,Y=null))),1&t.$$.dirty[0]&&(n(28,a=W.getDerivedFromVars(B.column_count)),O(),O=Xt(a,(t=>n(59,V=t)))),268435712&t.$$.dirty[1]&&n(39,lt=Xr(V,lt)),524544&t.$$.dirty[1]&&n(27,l=function(t,e){let n=0,r=[];for(let i=0;i<t.length;++i)r[n]||(r[n]=[]),r[n].push(t[i]),++n>=e&&(n=0);return r}(i,lt)),1&t.$$.dirty[0]&&(n(26,s=W.getDerivedFromVars(B.orientation)),z(),z=Xt(s,(t=>n(58,A=t)))),64&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&n(6,st=Wi(A,st)),1&t.$$.dirty[0]&&(n(25,c=W.getDerivedFromVars(B.cross_content_alignment)),T(),T=Xt(c,(t=>n(57,C=t)))),67109376&t.$$.dirty[1]&&n(40,ut=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(C,ut)),1&t.$$.dirty[0]&&(n(24,u=W.getDerivedFromVars(B.item_spacing)),M(),M=Xt(u,(t=>n(56,E=t)))),33556480&t.$$.dirty[1]&&(n(42,dt=hr(E,dt)),n(41,rt=Un(dt))),1&t.$$.dirty[0]&&(n(23,d=W.getDerivedFromVars(B.cross_spacing)),I(),I=Xt(d,(t=>n(55,k=t)))),16787456&t.$$.dirty[1]&&(n(44,ot=hr(k,dt)),n(43,it=Un(ot))),1&t.$$.dirty[0]&&(n(22,h=W.getDerivedFromVars(B.paddings)),F(),F=Xt(h,(t=>n(54,x=t)))),8404992&t.$$.dirty[1]&&n(45,ht=dr(x,ht)),64&t.$$.dirty[0]&&n(49,f="horizontal"===st?"grid-template-columns":"grid-template-rows"),64&t.$$.dirty[0]|524288&t.$$.dirty[1]){let t=[];i.forEach((e=>{const n="horizontal"===st?"width":"height";t.push(W.getDerivedFromVars(e.json[n]))})),n(15,at=Pn(t,(t=>t))),N(),N=Xt(at,(t=>n(53,w=t)))}if(64&t.$$.dirty[0]|4227328&t.$$.dirty[1]&&(n(46,ft=[]),lt>1?ft.push("auto"):w.forEach((t=>{!t&&"horizontal"===st||"match_parent"===(null==t?void 0:t.type)?ft.push("100%"):ft.push("max-content")}))),1&t.$$.dirty[0]&&(n(21,p=W.getDerivedFromVars(B.scroll_mode)),S(),S=Xt(p,(t=>n(52,b=t)))),456&t.$$.dirty[0]|2099968&t.$$.dirty[1]){const t={};let e={};n(47,gt=!1),(null==L?void 0:L.fakeElement)&&(e.fakeElement=!0),"horizontal"===st?e.parentVAlign=ut:e.parentHAlign=ut,"paging"===b&&(n(47,gt=!0),e.scrollSnap="start",t["horizontal"===st?"scroll-padding-left":"scroll-padding-top"]=Un(dt/2)),1===lt&&(e.parentLayoutOrientation=st),n(7,pt=gr(t,pt)),n(8,mt=gr(e,mt))}1&t.$$.dirty[0]&&(n(20,g=W.getDerivedFromVars(B.restrict_parent_scroll)),J(),J=Xt(g,(t=>n(29,P=t)))),20480&t.$$.dirty[1]&&n(19,m={padding:ht,"grid-gap":it}),295936&t.$$.dirty[1]&&n(18,v={"grid-gap":rt,[f]:bo(ft)}),64&t.$$.dirty[0]|65536&t.$$.dirty[1]&&n(17,y={orientation:st,"scroll-snap":gt}),1&t.$$.dirty[0]&&(n(16,$=W.getDerivedFromVars(B.default_item)),j(),j=Xt($,(t=>n(51,_=t)))),1179648&t.$$.dirty[1]&&n(48,vt=hr(_,vt))},[B,R,U,L,q,et,st,pt,mt,o,r,H,G,K,X,at,$,y,v,m,g,p,h,d,u,c,s,l,a,P,Q,tt,function(t){n(0,B=Object.assign(Object.assign({},B),{items:t}))},nt,yt,$t,_t,Y,Z,lt,ut,rt,dt,it,ot,ht,ft,gt,vt,f,i,_,b,w,x,k,E,C,A,V,D,function(t,e){Ke[t?"unshift":"push"]((()=>{G[e]=t,n(12,G)}))},function(t){Ke[t?"unshift":"push"]((()=>{q=t,n(4,q)}))},function(t){Ke[t?"unshift":"push"]((()=>{H=t,n(11,H)}))},()=>_t("left"),()=>_t("right")]}const Mo={tabs:"divkit-e0df5",tabs__list:"divkit-ea19b",tabs__item:"divkit-c25c7",tabs__item_selected:"divkit-d560a",tabs__item_actionable:"divkit-dfda0",tabs__panels:"divkit-f5dc0",tabs__swiper:"divkit-eb42c",tabs__swiper_animated:"divkit-b9f18",tabs__swiper_inited:"divkit-fa574",tabs__panel:"divkit-cc9fb",tabs__panel_visible:"divkit-e7306",tabs__separator:"divkit-b85bf"},To=37,zo=39,Oo=36,Jo=35,{Boolean:Bo}=yn;function Ro(t,e,n){const r=t.slice();r[88]=e[n];const i=r[88].index;return r[89]=i,r}function Uo(t,e,n){const r=t.slice();r[88]=e[n];const i=r[88].index;r[89]=i;const o=r[89]===r[6];return r[92]=o,r}function Lo(t){let e,n;return e=new Gr({props:{cls:or("tabs",Mo,t[46]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",$$slots:{default:[Xo]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),2147483626&n[0]|4137&n[1]|4&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Wo(t){let e,n,r=t[88].title+"";return{c(){e=_e(r),n=be()},l(t){e=je(t,r),n=Se(t)},m(t,r){ge(t,e,r),ge(t,n,r)},p(t,n){524288&n[0]&&r!==(r=t[88].title+"")&&Ne(e,r)},d(t){t&&me(e),t&&me(n)}}}function Ho(t){var e,n,r;let i,o;function a(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[64](t[89],...n)}return i=new Vr({props:{cls:or("tabs__item",Mo,{selected:t[92],actionable:Boolean(t[88].title_click_action)}),actions:!t[88].title_click_action||null!==(e=t[3])&&void 0!==e&&e.fakeElement?[]:[t[88].title_click_action],attrs:{id:"".concat(t[44],"-tab-").concat(t[89]),"aria-controls":"".concat(t[44],"-panel-").concat(t[89]),role:"tab",tabindex:!t[92]||null!==(n=t[3])&&void 0!==n&&n.fakeElement?"-1":t[88].title_click_action?void 0:"0","aria-selected":t[92]?"true":"false"},customAction:null!==(r=t[3])&&void 0!==r&&r.fakeElement?null:a,$$slots:{default:[Wo]},$$scope:{ctx:t}}}),{c(){wn(i.$$.fragment)},l(t){xn(i.$$.fragment,t)},m(t,e){kn(i,t,e),o=!0},p(e,n){var r,o,l;t=e;const s={};524352&n[0]&&(s.cls=or("tabs__item",Mo,{selected:t[92],actionable:Boolean(t[88].title_click_action)})),524296&n[0]&&(s.actions=!t[88].title_click_action||null!==(r=t[3])&&void 0!==r&&r.fakeElement?[]:[t[88].title_click_action]),524360&n[0]&&(s.attrs={id:"".concat(t[44],"-tab-").concat(t[89]),"aria-controls":"".concat(t[44],"-panel-").concat(t[89]),role:"tab",tabindex:!t[92]||null!==(o=t[3])&&void 0!==o&&o.fakeElement?"-1":t[88].title_click_action?void 0:"0","aria-selected":t[92]?"true":"false"}),524296&n[0]&&(s.customAction=null!==(l=t[3])&&void 0!==l&&l.fakeElement?null:a),524288&n[0]|4&n[3]&&(s.$$scope={dirty:n,ctx:t}),i.$set(s)},i(t){o||(pn(i.$$.fragment,t),o=!0)},o(t){gn(i.$$.fragment,t),o=!1},d(t){En(i,t)}}}function qo(t){let e,n,r;return{c(){e=ye("div"),this.h()},l(t){e=De(t,"DIV",{class:!0,style:!0}),Ce(e).forEach(me),this.h()},h(){ke(e,"class",n=Mo.tabs__separator),ke(e,"style",r=Rn(t[36]))},m(t,n){ge(t,e,n)},p(t,n){32&n[1]&&r!==(r=Rn(t[36]))&&ke(e,"style",r)},d(t){t&&me(e)}}}function Go(t){let e,n;return e=new Wl({props:{div:t[18][t[89]].div,templateContext:t[1],layoutParams:t[5]}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};786432&n[0]&&(r.div=t[18][t[89]].div),2&n[0]&&(r.templateContext=t[1]),32&n[0]&&(r.layoutParams=t[5]),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Ko(t){let e,n,r,i,o,a,l=t[30][t[89]]&&Go(t);return{c(){e=ye("div"),l&&l.c(),n=be(),this.h()},l(t){e=De(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=Ce(e);l&&l.l(r),n=Se(r),r.forEach(me),this.h()},h(){ke(e,"class",r=or("tabs__panel",Mo,{visible:t[31][t[89]]})),ke(e,"role","tabpanel"),ke(e,"id",i=t[44]+"-panel-"+t[89]),ke(e,"aria-labelledby",o=t[44]+"-tab-"+t[89]),Fe(e,"left",100*t[89]+"%")},m(t,r){ge(t,e,r),l&&l.m(e,null),pe(e,n),a=!0},p(t,s){t[30][t[89]]?l?(l.p(t,s),1074266112&s[0]&&pn(l,1)):(l=Go(t),l.c(),pn(l,1),l.m(e,n)):l&&(hn(),gn(l,1,1,(()=>{l=null})),fn()),(!a||524288&s[0]|1&s[1]&&r!==(r=or("tabs__panel",Mo,{visible:t[31][t[89]]})))&&ke(e,"class",r),(!a||524288&s[0]&&i!==(i=t[44]+"-panel-"+t[89]))&&ke(e,"id",i),(!a||524288&s[0]&&o!==(o=t[44]+"-tab-"+t[89]))&&ke(e,"aria-labelledby",o),(!a||524288&s[0])&&Fe(e,"left",100*t[89]+"%")},i(t){a||(pn(l),a=!0)},o(t){gn(l),a=!1},d(t){t&&me(e),l&&l.d()}}}function Xo(t){let e,n,r,i,o,a,l,s,c,u,d,h=t[19],f=[];for(let e=0;e<h.length;e+=1)f[e]=Ho(Uo(t,h,e));const p=t=>gn(f[t],1,1,(()=>{f[t]=null}));let g=t[20]&&qo(t),m=t[19],v=[];for(let e=0;e<m.length;e+=1)v[e]=Ko(Ro(t,m,e));const y=t=>gn(v[t],1,1,(()=>{v[t]=null}));return{c(){e=ye("div");for(let t=0;t<f.length;t+=1)f[t].c();r=be(),g&&g.c(),i=be(),o=ye("div"),a=ye("div");for(let t=0;t<v.length;t+=1)v[t].c();this.h()},l(t){e=De(t,"DIV",{class:!0,role:!0});var n=Ce(e);for(let t=0;t<f.length;t+=1)f[t].l(n);n.forEach(me),r=Se(t),g&&g.l(t),i=Se(t),o=De(t,"DIV",{class:!0});var l=Ce(o);a=De(l,"DIV",{class:!0});var s=Ce(a);for(let t=0;t<v.length;t+=1)v[t].l(s);s.forEach(me),l.forEach(me),this.h()},h(){ke(e,"class",n=Mo.tabs__list+" "+(t[43]?zn["root_restrict-scroll"]:"")),ke(e,"role","tablist"),Fe(e,"--divkit-tabs-title-padding",t[17]?sr(t[17]):""),Fe(e,"--divkit-tabs-font-size",Un(t[7])),Fe(e,"--divkit-tabs-paddings",t[8]),Fe(e,"--divkit-tabs-line-height",t[24]),Fe(e,"--divkit-tabs-letter-spacing",t[25]),Fe(e,"--divkit-tabs-active-font-weight",t[10]||""),Fe(e,"--divkit-tabs-inactive-font-weight",t[11]||""),Fe(e,"--divkit-tabs-active-font-family",t[26]||""),Fe(e,"--divkit-tabs-inactive-font-family",t[27]||""),Fe(e,"--divkit-tabs-active-text-color",t[12]),Fe(e,"--divkit-tabs-inactive-text-color",t[13]),Fe(e,"--divkit-tabs-active-background-color",t[14]),Fe(e,"--divkit-tabs-inactive-background-color",t[15]),Fe(e,"--divkit-tabs-border-radius",t[9]),Fe(e,"--divkit-tabs-items-spacing",t[16]?Ln(t[16]):""),ke(a,"class",l=or("tabs__swiper",Mo,{inited:t[28],animated:t[29]})),ke(o,"class",s=Mo.tabs__panels+" "+(t[43]?zn["root_restrict-scroll"]:""))},m(n,l){ge(n,e,l);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(e,null);t[65](e),ge(n,r,l),g&&g.m(n,l),ge(n,i,l),ge(n,o,l),pe(o,a);for(let t=0;t<v.length;t+=1)v[t]&&v[t].m(a,null);t[66](a),t[67](o),c=!0,u||(d=[xe(e,"keydown",t[48]),xe(a,"touchstart",(function(){Wt(t[34]?t[49]:void 0)&&(t[34]?t[49]:void 0).apply(this,arguments)})),xe(a,"touchmove",(function(){Wt(t[34]?t[50]:void 0)&&(t[34]?t[50]:void 0).apply(this,arguments)})),xe(a,"touchend",(function(){Wt(t[34]?t[51]:void 0)&&(t[34]?t[51]:void 0).apply(this,arguments)})),xe(a,"touchcancel",(function(){Wt(t[34]?t[51]:void 0)&&(t[34]?t[51]:void 0).apply(this,arguments)}))],u=!0)},p(r,u){if(t=r,524360&u[0]|73728&u[1]){let n;for(h=t[19],n=0;n<h.length;n+=1){const r=Uo(t,h,n);f[n]?(f[n].p(r,u),pn(f[n],1)):(f[n]=Ho(r),f[n].c(),pn(f[n],1),f[n].m(e,null))}for(hn(),n=h.length;n<f.length;n+=1)p(n);fn()}if((!c||4096&u[1]&&n!==(n=Mo.tabs__list+" "+(t[43]?zn["root_restrict-scroll"]:"")))&&ke(e,"class",n),131072&u[0]&&Fe(e,"--divkit-tabs-title-padding",t[17]?sr(t[17]):""),128&u[0]&&Fe(e,"--divkit-tabs-font-size",Un(t[7])),256&u[0]&&Fe(e,"--divkit-tabs-paddings",t[8]),16777216&u[0]&&Fe(e,"--divkit-tabs-line-height",t[24]),33554432&u[0]&&Fe(e,"--divkit-tabs-letter-spacing",t[25]),1024&u[0]&&Fe(e,"--divkit-tabs-active-font-weight",t[10]||""),2048&u[0]&&Fe(e,"--divkit-tabs-inactive-font-weight",t[11]||""),67108864&u[0]&&Fe(e,"--divkit-tabs-active-font-family",t[26]||""),134217728&u[0]&&Fe(e,"--divkit-tabs-inactive-font-family",t[27]||""),4096&u[0]&&Fe(e,"--divkit-tabs-active-text-color",t[12]),8192&u[0]&&Fe(e,"--divkit-tabs-inactive-text-color",t[13]),16384&u[0]&&Fe(e,"--divkit-tabs-active-background-color",t[14]),32768&u[0]&&Fe(e,"--divkit-tabs-inactive-background-color",t[15]),512&u[0]&&Fe(e,"--divkit-tabs-border-radius",t[9]),65536&u[0]&&Fe(e,"--divkit-tabs-items-spacing",t[16]?Ln(t[16]):""),t[20]?g?g.p(t,u):(g=qo(t),g.c(),g.m(i.parentNode,i)):g&&(g.d(1),g=null),1074528290&u[0]|8193&u[1]){let e;for(m=t[19],e=0;e<m.length;e+=1){const n=Ro(t,m,e);v[e]?(v[e].p(n,u),pn(v[e],1)):(v[e]=Ko(n),v[e].c(),pn(v[e],1),v[e].m(a,null))}for(hn(),e=m.length;e<v.length;e+=1)y(e);fn()}(!c||805306368&u[0]&&l!==(l=or("tabs__swiper",Mo,{inited:t[28],animated:t[29]})))&&ke(a,"class",l),(!c||4096&u[1]&&s!==(s=Mo.tabs__panels+" "+(t[43]?zn["root_restrict-scroll"]:"")))&&ke(o,"class",s)},i(t){if(!c){for(let t=0;t<h.length;t+=1)pn(f[t]);for(let t=0;t<m.length;t+=1)pn(v[t]);c=!0}},o(t){f=f.filter(Bo);for(let t=0;t<f.length;t+=1)gn(f[t]);v=v.filter(Bo);for(let t=0;t<v.length;t+=1)gn(v[t]);c=!1},d(n){n&&me(e),ve(f,n),t[65](null),n&&me(r),g&&g.d(n),n&&me(i),n&&me(o),ve(v,n),t[66](null),t[67](null),u=!1,Lt(d)}}}function Yo(t){let e,n,r=!t[4]&&Lo(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){t[4]?r&&(hn(),gn(r,1,1,(()=>{r=null})),fn()):r?(r.p(t,n),16&n[0]&&pn(r,1)):(r=Lo(t),r.c(),pn(r,1),r.m(e.parentNode,e))},i(t){n||(pn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function Zo(t,e,n){let r,i,o,a,l,s,c,u,d,h,f,p,g,m,v,y,$,_,b,w,x,E,C,A=Ot,V=Ot,D=Ot,P=Ot,j=Ot,S=Ot,N=Ot,F=Ot,I=Ot;var M,T;t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>I()));let{json:z={}}=e,{templateContext:O}=e,{origJson:J}=e,{layoutParams:B}=e;const R=He(On),U=R.genId("tabs");let L=!1,W=Dn([]);Yt(t,W,(t=>n(19,m=t)));let H,q,G,K={};const X=R.getJsonWithVars(z.selected_tab);let Y,Z,Q=X&&Number(X)||0,tt=12,et="",nt="",rt="",it="",ot="",at="",lt="",st="",ut="",dt="",ht=0,ft="",pt="",gt=null,mt=!1,vt=!1,yt=Q,$t=[],_t=[];async function bt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(yt=Q,n(6,Q=t),Vt(),n(29,vt=!0),kt(100*-Q),Et(),async function(){await en();const t=document.getElementById("".concat(U,"-panel-").concat(Q));t&&n(22,q.style.height=Un(t.offsetHeight),q)}(),At(),jt=-Q*q.clientWidth,e){await en();const t=H.querySelector(".".concat(Mo.tabs__item_selected));t&&t.focus()}}function wt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==m?void 0:m.length;if(!n)return;const r=m.map((t=>t.index));let i=r.indexOf(Q)+t;i>=n?i=0:i<0&&(i=n-1),bt(r[i],e)}function xt(t,e){return Q===e||(bt(e),!1)}async function kt(t){await en(),n(23,G.style.transform="translate3d(".concat(t,"%,0,0)"),G)}function Et(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,Q-1):Math.min(Q,yt),i=t?Math.min(r.length-1,Q+1):Math.max(Q,yt);n(30,$t=$t.map(((t,n)=>t||n>=e&&n<=i))),n(31,_t=_t.map(((t,n)=>n>=e&&n<=i)))}let Ct=null;function At(){Ct&&clearTimeout(Ct),Ct=window.setTimeout((()=>{n(31,_t=r.map(((t,e)=>e===Q)))}),400)}function Vt(){mt||(n(28,mt=!0),n(22,q.style.height=Un(q.clientHeight),q),n(23,G.style.transform="translate3d(".concat(100*-yt,"%,0,0)"),G))}let Dt,Pt,jt,St=null,Nt=null,Ft=!1,It=!1;return!z.id||L||(null==B?void 0:B.fakeElement)||R.registerInstance(z.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');bt(t)},setPreviousItem(t){let e=Q-1;e<0&&(e="ring"===t?r.length-1:Q),bt(e)},setNextItem(t){let e=Q+1;e>r.length-1&&(e="ring"===t?0:Q),bt(e)}}),Le((()=>{z.id&&!(null==B?void 0:B.fakeElement)&&R.unregisterInstance(z.id)})),t.$$set=t=>{"json"in t&&n(0,z=t.json),"templateContext"in t&&n(1,O=t.templateContext),"origJson"in t&&n(2,J=t.origJson),"layoutParams"in t&&n(3,B=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(18,r=z.items||[]),262144&t.$$.dirty[0])if(Array.isArray(r)&&r.length){let t=[];r.forEach(((e,n)=>{const r=R.getJsonWithVars({index:n,title:e.title,title_click_action:e.title_click_action});r.title&&"string"==typeof r.title?t.push(r):R.logError(ct(new Error("Incorrect title for the tab"),{additional:{index:n}}))})),W.set(t)}else W.set([]);if(524288&t.$$.dirty[0]&&((null==m?void 0:m.length)?n(4,L=!1):(n(4,L=!0),R.logError(ct(new Error('Incorrect or empty "items" prop for div "tabs"'))))),1&t.$$.dirty[0]&&(n(42,i=R.getDerivedFromVars(z.width)),F(),F=Xt(i,(t=>n(63,E=t)))),1&t.$$.dirty[0]&&(n(41,o=R.getDerivedFromVars(z.height)),N(),N=Xt(o,(t=>n(62,x=t)))),40&t.$$.dirty[0]|3&t.$$.dirty[2]){let t={};(null==B?void 0:B.fakeElement)&&(t.fakeElement=!0),"wrap_content"===(null==E?void 0:E.type)&&(t.parentHorizontalWrapContent=!0),x&&"wrap_content"!==x.type||(t.parentVerticalWrapContent=!0),n(5,K=gr(t,K))}if(262225&t.$$.dirty[0]&&!L&&(Q<0||Q>=r.length)&&(R.logError(ct(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:z.selected_tab,length:r.length}})),n(6,Q=Q<0?0:r.length-1)),524369&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&(L||m.some((t=>Q===t.index))||(R.logError(ct(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:z.selected_tab}})),n(6,Q=(null===n(52,M=m[0])||void 0===M?void 0:M.index)||0))),1&t.$$.dirty[0]&&(n(40,a=R.getDerivedFromVars(z.tab_title_style)),S(),S=Xt(a,(t=>n(61,w=t)))),1073741824&t.$$.dirty[1]&&n(56,l=w||{}),128&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(7,tt=Xr(l.font_size,tt)),384&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(l.font_size||l.paddings)){const t=l.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/tt*10,right:(Number(t.right)||0)/tt*10,bottom:(Number(t.bottom)||0)/tt*10,left:(Number(t.left)||0)/tt*10};n(8,et=dr(e,et))}if(128&t.$$.dirty[0]|33554432&t.$$.dirty[1]){const t=l.line_height;void 0!==t&&Pr(t)&&n(24,nt=Un(t/tt*10))}if(128&t.$$.dirty[0]|33554432&t.$$.dirty[1]){const t=l.letter_spacing;void 0!==t&&ur(t)&&n(25,rt=Un(t/tt*10))}if(640&t.$$.dirty[0]|37748736&t.$$.dirty[1]&&(l.corner_radius||l.corners_radius||l.font_size)){const t=null!==n(53,T=l.corner_radius)&&void 0!==T?T:1e3;l.corners_radius?n(9,it=function(t,e,n,r){const i=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<i.length;++t)if(i[t]&&!ur(i[t]))return r;return _r(t,e,n)}(l.corners_radius,t,tt,it)):ur(t)&&n(9,it=Un(t/tt*10))}1024&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(n(10,Y=Zr(l.active_font_weight||l.font_weight,Y)),l.font_family&&"string"==typeof l.font_family?n(26,ot=R.typefaceProvider(l.font_family,{fontWeight:Y||400})):n(26,ot="")),2048&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(n(11,Z=Zr(l.inactive_font_weight||l.font_weight,Z)),l.font_family&&"string"==typeof l.font_family?n(27,at=R.typefaceProvider(l.font_family,{fontWeight:Z||400})):n(27,at="")),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(12,lt=k(l.active_text_color,1,lt)),8192&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(13,st=k(l.inactive_text_color,1,st)),16384&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(14,ut=k(l.active_background_color,1,ut)),32768&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(15,dt=k(l.inactive_background_color,1,dt)),65536&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(16,ht=hr(l.item_spacing,ht)),1&t.$$.dirty[0]&&(n(39,s=R.getDerivedFromVars(z.has_separator)),j(),j=Xt(s,(t=>n(20,b=t)))),1&t.$$.dirty[0]&&(n(38,c=R.getDerivedFromVars(z.separator_color)),P(),P=Xt(c,(t=>n(60,_=t)))),1&t.$$.dirty[0]&&(n(37,u=R.getDerivedFromVars(z.separator_paddings)),D(),D=Xt(u,(t=>n(59,$=t)))),1048576&t.$$.dirty[0]|830472192&t.$$.dirty[1]&&b&&(_&&n(54,ft=k(_,1,ft)),$&&n(55,pt=dr($,pt))),25165824&t.$$.dirty[1]&&n(36,d={background:ft,margin:pt}),1&t.$$.dirty[0]&&(n(35,h=R.getDerivedFromVars(z.switch_tabs_by_content_swipe_enabled)),V(),V=Xt(h,(t=>n(58,y=t)))),134217728&t.$$.dirty[1]&&n(34,f=void 0===y||Boolean(y)),1&t.$$.dirty[0]&&(n(33,p=R.getDerivedFromVars(z.restrict_parent_scroll)),I(),I=Xt(p,(t=>n(43,C=t)))),1&t.$$.dirty[0]&&(n(32,g=R.getDerivedFromVars(z.title_paddings)),A(),A=Xt(g,(t=>n(57,v=t)))),131072&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&n(17,gt=$r(v||void 0,gt)),262144&t.$$.dirty[0]&&(L||(n(30,$t=r.map(((t,e)=>e===Q))),n(31,_t=r.map(((t,e)=>e===Q)))))},[z,O,J,B,L,K,Q,tt,et,it,Y,Z,lt,st,ut,dt,ht,gt,r,m,b,H,q,G,nt,rt,ot,at,mt,vt,$t,_t,g,p,f,h,d,u,c,s,a,o,i,C,U,W,{},xt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&r){if(t.which===To)wt(-1,!0);else if(t.which===zo)wt(1,!0);else if(t.which===Oo)bt(0,!0);else{if(t.which!==Jo)return;bt(r.length-1,!0)}t.preventDefault()}},function(t){var e;const i=t.target,o=null===(e=null==i?void 0:i.closest)||void 0===e?void 0:e.call(i,".".concat(zn["root_restrict-scroll"]));r.length<2||t.touches.length>1||o&&o!==q||(Ft=!1,It=!1,St=xr(t),Nt=null,Dt=Date.now(),Pt=jt||-Q*q.clientWidth,n(29,vt=!1),Ct&&clearTimeout(Ct))},function(t){const e=xr(t);if(!St||Nt&&Nt.x===e.x&&Nt.y===e.y)return;Nt=e;const n=q.clientWidth;if(Ft){jt=e.x-St.x+Pt;const t=n*r.length;if(jt>0)jt=jt*n/(jt+3*n);else if(-jt+n>t){let e=-jt+n-t;e=e*n/(e+3*n),jt=n-t-e}kt(100*jt/n)}else Math.abs(e.y-St.y)>10?It=!0:!It&&Math.abs(e.x-St.x)>8&&(Vt(),Ft=!0,St=e,kt(100*-Q),Et(!0));Ft&&t.cancelable&&t.preventDefault()},function(){It=!1,St=null;let t=Q;if(!Ft)return;Ft=!1;const e=Math.min(512,q.clientWidth);Math.abs(Pt-jt)>e/4*Math.min(1,(Date.now()-Dt)/750)&&(t+=Pt>jt?1:-1),t>=r.length?t=r.length-1:t<0&&(t=0),t===Q?(jt=-t*e,kt(100*-t),At()):bt(t)},M,T,ft,pt,l,v,y,$,_,w,x,E,(t,e)=>xt(0,t),function(t){Ke[t?"unshift":"push"]((()=>{H=t,n(21,H)}))},function(t){Ke[t?"unshift":"push"]((()=>{G=t,n(23,G)}))},function(t){Ke[t?"unshift":"push"]((()=>{q=t,n(22,q)}))}]}const Qo={state:"divkit-b8efc",state__animations:"divkit-adaae","state__animation-child":"divkit-eb860","state__animation-child-inner":"divkit-e08c6"};function ta(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function ea(t){return t*t*t}function na(t){const e=t-1;return e*e*e+1}function ra(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,r=Math.floor(n),i=n-r;return t[r]*i+t[r+1]*(1-i)}}const ia=ra([.0021,.0045,.0071,.01,.0131,.0165,.0202,.0242,.0284,.033,.0378,.0429,.0483,.054,.0601,.0664,.0731,.08,.0872,.0948,.1026,.1108,.1192,.1279,.1369,.1461,.1556,.1653,.1753,.1855,.1958,.2064,.2171,.2279,.2389,.25,.2612,.2725,.2839,.2952,.3067,.3181,.3295,.341,.3524,.3637,.375,.3863,.3974,.4085,.4195,.4304,.4412,.4519,.4624,.4729,.4832,.4934,.5034,.5133,.5231,.5327,.5422,.5516,.5608,.5699,.5788,.5876,.5963,.6048,.6132,.6214,.6295,.6375,.6453,.653,.6606,.668,.6754,.6825,.6896,.6965,.7034,.7101,.7166,.7231,.7295,.7357,.7418,.7479,.7538,.7596,.7653,.7709,.7764,.7818,.7871,.7923,.7974,.8024,.8073,.8122,.8169,.8216,.8261,.8306,.835,.8394,.8436,.8478,.8518,.8558,.8598,.8636,.8674,.8711,.8747,.8783,.8818,.8852,.8886,.8919,.8951,.8983,.9014,.9044,.9074,.9103,.9131,.9159,.9187,.9213,.924,.9265,.929,.9315,.9339,.9362,.9385,.9408,.943,.9451,.9472,.9492,.9512,.9532,.9551,.9569,.9587,.9605,.9622,.9638,.9655,.967,.9686,.9701,.9715,.9729,.9743,.9756,.9769,.9782,.9794,.9805,.9817,.9828,.9838,.9848,.9858,.9868,.9877,.9886,.9894,.9902,.991,.9917,.9924,.9931,.9937,.9943,.9949,.9954,.9959,.9964,.9969,.9973,.9977,.998,.9983,.9986,.9989,.9991,.9993,.9995,.9997,.9998,.9999,.9999,1,1]),oa=ra([5e-4,.002,.0045,.0078,.0119,.0168,.0224,.0286,.0355,.0429,.0508,.0592,.0681,.0774,.087,.0969,.1072,.1177,.1285,.1395,.1507,.1621,.1736,.1853,.197,.2089,.2208,.2328,.2448,.2569,.2689,.281,.293,.305,.317,.3289,.3408,.3526,.3644,.376,.3876,.3991,.4105,.4218,.433,.444,.455,.4658,.4765,.4871,.4975,.5078,.518,.528,.5379,.5477,.5573,.5668,.5761,.5853,.5944,.6033,.612,.6206,.6291,.6374,.6456,.6537,.6616,.6693,.677,.6845,.6918,.699,.7061,.713,.7199,.7265,.7331,.7395,.7458,.752,.758,.764,.7698,.7755,.781,.7865,.7918,.7971,.8022,.8072,.8121,.8169,.8216,.8262,.8307,.8351,.8394,.8436,.8477,.8517,.8557,.8595,.8633,.8669,.8705,.874,.8775,.8808,.8841,.8873,.8904,.8934,.8964,.8993,.9022,.9049,.9076,.9103,.9129,.9154,.9178,.9202,.9226,.9249,.9271,.9293,.9314,.9335,.9355,.9375,.9394,.9413,.9431,.9449,.9466,.9483,.95,.9516,.9532,.9547,.9562,.9576,.9591,.9605,.9618,.9631,.9644,.9657,.9669,.9681,.9692,.9703,.9714,.9725,.9736,.9746,.9756,.9765,.9775,.9784,.9793,.9802,.981,.9818,.9826,.9834,.9842,.9849,.9856,.9863,.987,.9877,.9883,.989,.9896,.9902,.9908,.9913,.9919,.9924,.993,.9935,.994,.9944,.9949,.9954,.9958,.9963,.9967,.9971,.9975,.9979,.9983,.9986,.999,.9993,.9997,1]),aa={linear:Jt,ease:ia,ease_in:ea,ease_out:na,ease_in_out:ta,spring:oa},la=200,sa=0,ca=0,ua=0;function da(t){return Math.max(...t.map((t=>(Number(t.duration)||la)+(Number(t.start_delay)||sa))))}function ha(t,e){let{transitions:n,elementBbox:r,rootBbox:i,direction:o,maxDuration:a,alpha:l}=e;const s=null!=l?l:1;return{duration:a,css:t=>{const e=t*a,l=n.map((t=>{const n=Number(t.start_delay)||sa,a=Number(t.duration)||la,l=Math.max(0,Math.min(1,(e-n)/a)),c="in"===o?1-l:l,u=(aa[t.interpolator||"ease_in_out"]||ta)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*s+u*(t.alpha||ca)};if("slide"===t.type){var d;const e="top"===t.edge||"left"===t.edge?-1:1,n="top"!==t.edge&&"bottom"!==t.edge&&t.edge?"translateX":"translateY";let o=null===(d=t.distance)||void 0===d?void 0:d.value;void 0===o&&(o="top"!==t.edge&&"bottom"!==t.edge&&t.edge?Math.abs(i["left"===t.edge?"left":"right"]-r["left"===t.edge?"right":"left"]):Math.abs(i["bottom"===t.edge?"bottom":"top"]-r["bottom"===t.edge?"top":"bottom"]));const a=o*u;return{active:u>0&&u<1,translate:"".concat(n,"(").concat(a*e,"px)")}}if("scale"===t.type){var h,f;const e=1-u+u*(t.scale||ua),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,i=null!==(f=t.pivot_y)&&void 0!==f?f:.5,o=(1-e)*r.width*n,a=(1-e)*r.height*i;return{active:u>0&&u<1,scale:"translate(".concat(o,"px, ").concat(a,"px) scale(").concat(e,")")}}return{}})),c=l.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),u=l.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),d=l.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),h=l.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),f=[u,h.length?h[h.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(f||"none",";opacity:").concat(c)}}}function fa(t,e,n){return t*(1-n)+e*n}const pa={linear:Jt,ease:ia,ease_in:ea,ease_out:na,ease_in_out:ta,spring:oa},ga=200,ma=0;function va(t,e){var n,r;let{rootBbox:i,beforeBbox:o,afterBbox:a,transition:l}=e;return{delay:null!==(n=l.start_delay)&&void 0!==n?n:ma,duration:null!==(r=l.duration)&&void 0!==r?r:ga,easing:l.interpolator&&l.interpolator in pa?pa[l.interpolator]:ta,css:t=>["top:".concat(fa(o.top,a.top,t)-i.top,"px"),"left:".concat(fa(o.left,a.left,t)-i.left,"px"),"width:".concat(fa(o.width,a.width,t),"px"),"height:".concat(fa(o.height,a.height,t),"px")].join(";")}}function ya(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...ya(t))})):e.push(t),e}const{Map:$a}=yn;function _a(t,e,n){const r=t.slice();return r[27]=e[n],r}function ba(t){let e,n;return e=new Gr({props:{cls:Qo.state,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Aa]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.json=t[0]),4&n&&(r.origJson=t[2]),2&n&&(r.templateContext=t[1]),8&n&&(r.layoutParams=t[3]),1073742034&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function wa(t){let e,n,r=t[7],i=xa(t);return{c(){i.c(),e=we()},l(t){i.l(t),e=we()},m(t,r){i.m(t,r),ge(t,e,r),n=!0},p(t,n){128&n&&Gt(r,r=t[7])?(hn(),gn(i,1,1,Ot),fn(),i=xa(t),i.c(),pn(i,1),i.m(e.parentNode,e)):i.p(t,n)},i(t){n||(pn(i),n=!0)},o(t){gn(i),n=!1},d(t){t&&me(e),i.d(t)}}}function xa(t){let e,n;return e=new Wl({props:{div:t[7].div,templateContext:t[1]}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};128&n&&(r.div=t[7].div),2&n&&(r.templateContext=t[1]),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function ka(t){let e,n,r,i,o,a,l,s,c,u;function d(){return t[11](t[27])}return r=new Wl({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=ye("div"),n=ye("div"),wn(r.$$.fragment),o=be(),this.h()},l(t){e=De(t,"DIV",{class:!0});var i=Ce(e);n=De(i,"DIV",{class:!0});var a=Ce(n);xn(r.$$.fragment,a),a.forEach(me),o=Se(i),i.forEach(me),this.h()},h(){ke(n,"class",i=Qo["state__animation-child-inner"]),ke(e,"class",a=Qo["state__animation-child"])},m(t,i){ge(t,e,i),pe(e,n),kn(r,n,null),pe(e,o),s=!0,c||(u=xe(e,"introend",d),c=!0)},p(e,n){t=e;const i={};64&n&&(i.div=t[27].json),64&n&&(i.templateContext=t[27].templateContext),r.$set(i)},i(n){s||(pn(r.$$.fragment,n),l||nn((()=>{l=vn(e,va,t[27]),l.start()})),s=!0)},o(t){gn(r.$$.fragment,t),s=!1},d(t){t&&me(e),En(r),c=!1,u()}}}function Ea(t){let e,n,r,i,o,a,l,s,c,u;function d(){return t[10](t[27])}return r=new Wl({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=ye("div"),n=ye("div"),wn(r.$$.fragment),o=be(),this.h()},l(t){e=De(t,"DIV",{class:!0,style:!0});var i=Ce(e);n=De(i,"DIV",{class:!0});var a=Ce(n);xn(r.$$.fragment,a),a.forEach(me),o=Se(i),i.forEach(me),this.h()},h(){ke(n,"class",i=Qo["state__animation-child-inner"]),ke(e,"class",a=Qo["state__animation-child"]),Fe(e,"left",t[27].offsetLeft+"px"),Fe(e,"top",t[27].offsetTop+"px"),Fe(e,"width",t[27].width+"px"),Fe(e,"height",t[27].height+"px")},m(t,i){ge(t,e,i),pe(e,n),kn(r,n,null),pe(e,o),s=!0,c||(u=xe(e,"introend",d),c=!0)},p(n,i){t=n;const o={};64&i&&(o.div=t[27].json),64&i&&(o.templateContext=t[27].templateContext),r.$set(o),(!s||64&i)&&Fe(e,"left",t[27].offsetLeft+"px"),(!s||64&i)&&Fe(e,"top",t[27].offsetTop+"px"),(!s||64&i)&&Fe(e,"width",t[27].width+"px"),(!s||64&i)&&Fe(e,"height",t[27].height+"px")},i(n){s||(pn(r.$$.fragment,n),l||nn((()=>{l=vn(e,ha,t[27]),l.start()})),s=!0)},o(t){gn(r.$$.fragment,t),s=!1},d(t){t&&me(e),En(r),c=!1,u()}}}function Ca(t,e){let n,r,i,o,a;const l=[Ea,ka],s=[];function c(t,e){return"direction"in t[27]?0:1}return r=c(e),i=s[r]=l[r](e),{key:t,first:null,c(){n=we(),i.c(),o=we(),this.h()},l(t){n=we(),i.l(t),o=we(),this.h()},h(){this.first=n},m(t,e){ge(t,n,e),s[r].m(t,e),ge(t,o,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?s[r].p(e,n):(hn(),gn(s[a],1,1,(()=>{s[a]=null})),fn(),i=s[r],i?i.p(e,n):(i=s[r]=l[r](e),i.c()),pn(i,1),i.m(o.parentNode,o))},i(t){a||(pn(i),a=!0)},o(t){gn(i),a=!1},d(t){t&&me(n),s[r].d(t),t&&me(o)}}}function Aa(t){var e;let n,r,i,o,a=[],l=new $a,s=(null===(e=t[7])||void 0===e?void 0:e.div)&&wa(t),c=t[6];const u=t=>t[27];for(let e=0;e<c.length;e+=1){let n=_a(t,c,e),r=u(n);l.set(r,a[e]=Ca(r,n))}return{c(){s&&s.c(),n=be(),r=ye("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){s&&s.l(t),n=Se(t),r=De(t,"DIV",{class:!0,"aria-hidden":!0});var e=Ce(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(me),this.h()},h(){ke(r,"class",i=Qo.state__animations),ke(r,"aria-hidden","true")},m(e,i){s&&s.m(e,i),ge(e,n,i),ge(e,r,i);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(r,null);t[12](r),o=!0},p(t,e){var i;null!==(i=t[7])&&void 0!==i&&i.div?s?(s.p(t,e),128&e&&pn(s,1)):(s=wa(t),s.c(),pn(s,1),s.m(n.parentNode,n)):s&&(hn(),gn(s,1,1,(()=>{s=null})),fn()),320&e&&(c=t[6],hn(),a=function(t,e,n,r,i,o,a,l,s,c,u,d){let h=t.length,f=o.length,p=h;const g={};for(;p--;)g[t[p].key]=p;const m=[],v=new Map,y=new Map,$=[];for(p=f;p--;){const t=d(i,o,p),r=n(t);let l=a.get(r);l?$.push((()=>l.p(t,e))):(l=c(r,t),l.c()),v.set(r,m[p]=l),r in g&&y.set(r,Math.abs(p-g[r]))}const _=new Set,b=new Set;function w(t){pn(t,1),t.m(l,u),a.set(t.key,t),u=t.first,f--}for(;h&&f;){const e=m[f-1],n=t[h-1],r=e.key,i=n.key;e===n?(u=e.first,h--,f--):v.has(i)?!a.has(r)||_.has(r)?w(e):b.has(i)?h--:y.get(r)>y.get(i)?(b.add(r),w(e)):(_.add(i),h--):(s(n,a),h--)}for(;h--;){const e=t[h];v.has(e.key)||s(e,a)}for(;f;)w(m[f-1]);return Lt($),m}(a,e,u,0,t,c,l,r,$n,Ca,null,_a),fn())},i(t){if(!o){pn(s);for(let t=0;t<c.length;t+=1)pn(a[t]);o=!0}},o(t){gn(s);for(let t=0;t<a.length;t+=1)gn(a[t]);o=!1},d(e){s&&s.d(e),e&&me(n),e&&me(r);for(let t=0;t<a.length;t+=1)a[t].d();t[12](null)}}}function Va(t){let e,n,r=!t[5]&&ba(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r&&(hn(),gn(r,1,1,(()=>{r=null})),fn()):r?(r.p(t,i),32&i&&pn(r,1)):(r=ba(t),r.c(),pn(r,1),r.m(e.parentNode,e))},i(t){n||(pn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function Da(t){return"change_bounds"===t.type?t:"set"===t.type?Da(t.items[0]):null}function Pa(t,e,n){let r,{json:i={}}=e,{templateContext:o}=e,{origJson:a}=e,{layoutParams:l}=e;const s=He(On),c=He(lr);let u,d=new Map,h=new Set,f=!1,p=null,g=[],m=[],v=[],y=[];function $(t,e,n){let{json:r,templateContext:i,transitions:o,node:a}=e;r=s.getJsonWithVars(r),o=s.getJsonWithVars(o);const l=ya(o),c=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{margins:void 0,alpha:(u=l,u.some((t=>"fade"===t.type))?void 0:r.alpha)}),templateContext:i,elementBbox:c,rootBbox:t,transitions:l,alpha:r.alpha,width:c.width,height:c.height,offsetTop:c.top-t.top,offsetLeft:c.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node};var u}const _=i.div_id||i.id;let b;_?(null==l?void 0:l.fakeElement)||(c.registerInstance(_,{async setState(t){if(b===t)return;s.setRunning("stateChange",!0);const e=new Set(h);g.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,g=[]);let i=[];if(u){const t=u.getBoundingClientRect();i=v.map((e=>$(t,e,"out")))}y.forEach((t=>{d.set(t.id,t.node.getBoundingClientRect())})),m=[],v=[],y=[];const o=r.find((e=>e.state_id===t))||null;if(o?(b=t,n(7,w=o)):s.logError(ct(new Error("Cannot find state with id"),{additional:{stateId:t}})),await en(),!u)return;const a=u.getBoundingClientRect();let l=m.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>$(a,t,"in")));i=i.filter((t=>{var e;return!(!t.json.id||h.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=i.concat(l),f=c.reduce(((t,e)=>Math.max(t,da(e.transitions))),0),p=y.filter((t=>d.has(t.id))).map((t=>({json:Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}}),templateContext:t.templateContext,rootBbox:a,beforeBbox:d.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:Da(t.transitions),resolvePromise:t.resolvePromise})));n(6,g=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:f}))),...p]),d.clear(),s.setRunning("stateChange",!1)},getChild(t){if(p&&p.has(t))return p.get(t);s.logError(ct(new Error("Missing state block with id"),{additional:{id:t}}))}}),We(lr,{registerInstance(t,e){p||(p=new Map),p.has(t)?s.logError(ct(new Error("Duplicate state with id"),{additional:{id:t}})):p.set(t,e)},unregisterInstance(t){null==p||p.delete(t)},runVisibilityTransition(t,e,r,i,o){if(!u)return Promise.resolve();const a=$(u.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:i},o),l=da(a.transitions),s=Object.assign(Object.assign({},a),{maxDuration:l});return n(6,g=[...g.filter((t=>t.node!==a.node)),s]),new Promise((t=>{s.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return m.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return v.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const i=t.id;if(!i)return Promise.resolve();const o={id:i,json:t,templateContext:e,transitions:n,node:r};return y.push(o),new Promise((t=>{o.resolvePromise=t}))},hasTransitionChange:t=>!!t&&d.has(t),registerChild(t){h.add(t)},unregisterChild(t){h.delete(t)}})):(f=!0,s.logError(ct(new Error('Missing "id" prop for div "state"'))));let w=null;const x=s.getJsonWithVars(i.default_state_id);let k=!1;function E(t){n(6,g=g.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return Le((()=>{_&&!(null==l?void 0:l.fakeElement)&&c.unregisterInstance(_)})),t.$$set=t=>{"json"in t&&n(0,i=t.json),"templateContext"in t&&n(1,o=t.templateContext),"origJson"in t&&n(2,a=t.origJson),"layoutParams"in t&&n(3,l=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&i&&(h=new Set),1&t.$$.dirty&&n(9,r=i.states||[]),512&t.$$.dirty&&((null==r?void 0:r.length)?n(5,f=!1):(n(5,f=!0),s.logError(ct(new Error('Empty "states" prop for div "state"'))))),512&t.$$.dirty&&function(t){k||(k=!0,t.length&&(x?(b=x,n(7,w=t.find((t=>t.state_id===b))||null),w||s.logError(ct(new Error("Cannot find state for default_state_id"),{additional:{selectedId:b}}))):(n(7,w=t[0]),b=w.state_id)))}(r)},[i,o,a,l,u,f,g,w,E,r,t=>E(t),t=>E(t),function(t){Ke[t?"unshift":"push"]((()=>{u=t,n(4,u)}))}]}const ja={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f"},{Boolean:Sa}=yn;function Na(t,e,n){const r=t.slice();return r[49]=e[n],r}function Fa(t){let e,n;return e=new Gr({props:{cls:or("pager",ja,t[8]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,parentOf:t[0].items,replaceItems:t[16],$$slots:{default:[Ta]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=or("pager",ja,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1&n[0]&&(r.parentOf=t[0].items),33336&n[0]|2097152&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Ia(t){var e;let n,r,i,o,a;return r=new Wl({props:{div:t[49].json,templateContext:t[49].templateContext,origJson:t[49].origJson,layoutParams:null!==(e=t[3])&&void 0!==e&&e.fakeElement?{fakeElement:!0}:void 0}}),{c(){n=ye("div"),wn(r.$$.fragment),i=be(),this.h()},l(t){n=De(t,"DIV",{class:!0});var e=Ce(n);xn(r.$$.fragment,e),i=Se(e),e.forEach(me),this.h()},h(){ke(n,"class",o=ja.pager__item)},m(t,e){ge(t,n,e),kn(r,n,null),pe(n,i),a=!0},p(t,e){var n;const i={};16&e[0]&&(i.div=t[49].json),16&e[0]&&(i.templateContext=t[49].templateContext),16&e[0]&&(i.origJson=t[49].origJson),8&e[0]&&(i.layoutParams=null!==(n=t[3])&&void 0!==n&&n.fakeElement?{fakeElement:!0}:void 0),r.$set(i)},i(t){a||(pn(r.$$.fragment,t),a=!0)},o(t){gn(r.$$.fragment,t),a=!1},d(t){t&&me(n),En(r)}}}function Ma(t){let e,n,r=t[4],i=[];for(let e=0;e<r.length;e+=1)i[e]=Ia(Na(t,r,e));const o=t=>gn(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=we()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=we()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);ge(t,e,r),n=!0},p(t,n){if(24&n[0]){let a;for(r=t[4],a=0;a<r.length;a+=1){const o=Na(t,r,a);i[a]?(i[a].p(o,n),pn(i[a],1)):(i[a]=Ia(o),i[a].c(),pn(i[a],1),i[a].m(e.parentNode,e))}for(hn(),a=r.length;a<i.length;a+=1)o(a);fn()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)pn(i[t]);n=!0}},o(t){i=i.filter(Sa);for(let t=0;t<i.length;t+=1)gn(i[t]);n=!1},d(t){ve(i,t),t&&me(e)}}}function Ta(t){let e,n,r,i,o,a,l=t[4],s=Ma(t);return{c(){e=ye("div"),s.c(),this.h()},l(t){e=De(t,"DIV",{class:!0,style:!0});var n=Ce(e);s.l(n),n.forEach(me),this.h()},h(){ke(e,"class",n=ja.pager__items+" "+(t[15]?zn["root_restrict-scroll"]:"")),ke(e,"style",r=Rn(t[9]))},m(n,r){ge(n,e,r),s.m(e,null),t[37](e),i=!0,o||(a=xe(e,"scroll",t[17]),o=!0)},p(t,o){16&o[0]&&Gt(l,l=t[4])?(hn(),gn(s,1,1,Ot),fn(),s=Ma(t),s.c(),pn(s,1),s.m(e,null)):s.p(t,o),(!i||32768&o[0]&&n!==(n=ja.pager__items+" "+(t[15]?zn["root_restrict-scroll"]:"")))&&ke(e,"class",n),(!i||512&o[0]&&r!==(r=Rn(t[9])))&&ke(e,"style",r)},i(t){i||(pn(s),i=!0)},o(t){gn(s),i=!1},d(n){n&&me(e),s.d(n),t[37](null),o=!1,a()}}}function za(t){let e,n,r=!t[7]&&Fa(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){t[7]?r&&(hn(),gn(r,1,1,(()=>{r=null})),fn()):r?(r.p(t,n),128&n[0]&&pn(r,1)):(r=Fa(t),r.c(),pn(r,1),r.m(e.parentNode,e))},i(t){n||(pn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function Oa(t,e,n){let r,i,o,a,l,s,c,u,d,h,f,p,g,m,v,y,$,_=Ot,b=Ot,w=Ot,x=Ot,k=Ot,E=Ot;var C,A,V,D,P,j,S;t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E()));let{json:N={}}=e,{templateContext:F}=e,{origJson:I}=e,{layoutParams:M}=e;const T=He(On),z=T.genId("pager");let O,J=!1,B=!1,R=0,U=0,L=!1,W="horizontal",H="",q="",G="";const K=wo((function(){if(!J)return;const t=function(){const t=Array.from(O.children),e=O.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===W?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:R}();t!==R&&n(26,R=t)}),50);function X(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const r="horizontal"===W,i=O.children[t],o=r?"offsetLeft":"offsetTop",a=r?"left":"top";O.scroll({[a]:i[o],behavior:e}),n(26,R=t)}return N.id&&!(null==M?void 0:M.fakeElement)&&T.registerInstance(N.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');X(t)},setPreviousItem(t){let e=R-1;e<0&&(e="ring"===t?r.length-1:R),X(e)},setNextItem(t){let e=R+1;e>r.length-1&&(e="ring"===t?0:R),X(e)}}),Ue((()=>{if(J=!0,Boolean(document.getElementById("".concat(z,"-tab-0")))){const t=[...O.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(z,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(z,"-tab-").concat(e))}})),Le((()=>{J=!1,N.id&&!(null==M?void 0:M.fakeElement)&&T.unregisterInstance(N.id)})),t.$$set=t=>{"json"in t&&n(0,N=t.json),"templateContext"in t&&n(1,F=t.templateContext),"origJson"in t&&n(2,I=t.origJson),"layoutParams"in t&&n(3,M=t.layoutParams)},t.$$.update=()=>{if(262145&t.$$.dirty[0]&&((null===n(18,C=N.items)||void 0===C?void 0:C.length)&&Array.isArray(N.items)?n(25,B=!1):(n(25,B=!0),T.logError(ct(new Error('Incorrect or empty "items" prop for div "pager"'))))),33554435&t.$$.dirty[0]&&n(4,r=(!B&&N.items||[]).map((t=>{let e=t,n=F;return({templateContext:n,json:e}=T.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(14,i=T.getDerivedFromVars(N.layout_mode)),b(),b=Xt(i,(t=>n(33,g=t)))),4&t.$$.dirty[1]&&(g?"percentage"!==g.type&&"fixed"!==g.type?(n(27,L=!0),T.logError(ct(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):n(27,L=!1):(n(27,L=!0),T.logError(ct(new Error('Empty "layout_mode" prop for div "pager"'))))),1&t.$$.dirty[0]&&(n(13,o=T.getDerivedFromVars(N.orientation)),k(),k=Xt(o,(t=>n(36,y=t)))),268435456&t.$$.dirty[0]|32&t.$$.dirty[1]&&n(28,W=Wi(y,W)),1&t.$$.dirty[0]&&(n(12,a=T.getDerivedFromVars(N.item_spacing)),x(),x=Xt(a,(t=>n(35,v=t)))),16&t.$$.dirty[1]){const t=null==v?void 0:v.value;t&&ur(t)&&n(29,H=Un(t||0))}if(1&t.$$.dirty[0]&&(n(11,l=T.getDerivedFromVars(N.paddings)),w(),w=Xt(l,(t=>n(34,m=t)))),1073741824&t.$$.dirty[0]|8&t.$$.dirty[1]&&n(30,q=dr(m,q)),1&t.$$.dirty[0]&&(n(10,s=T.getDerivedFromVars(N.restrict_parent_scroll)),E(),E=Xt(s,(t=>n(15,$=t)))),268435456&t.$$.dirty[0]&&n(32,c="horizontal"===W?"grid-auto-columns":"grid-auto-rows"),838336513&t.$$.dirty[0]|4&t.$$.dirty[1])if("fixed"===(null==g?void 0:g.type)){const t=Ln("horizontal"===W?((null===n(19,A=N.paddings)||void 0===A?void 0:A.left)||0)+((null===n(20,V=N.paddings)||void 0===V?void 0:V.right)||0):((null===n(21,D=N.paddings)||void 0===D?void 0:D.top)||0)+((null===n(22,P=N.paddings)||void 0===P?void 0:P.bottom)||0)),e=null===n(23,j=g.neighbour_page_width)||void 0===j?void 0:j.value;n(31,G=e?"calc(100% + ".concat(t," - 2 * ").concat(Ln(e)," - 2 * ").concat(H,")"):"100%")}else if("percentage"===(null==g?void 0:g.type)){const t=null===n(24,S=g.page_width)||void 0===S?void 0:S.value;n(31,G="".concat(Number(t),"%"))}1610612736&t.$$.dirty[0]|3&t.$$.dirty[1]&&n(9,u={"grid-gap":H,padding:q,[c]:G}),268435456&t.$$.dirty[0]&&n(8,d={orientation:W}),167772160&t.$$.dirty[0]&&n(7,h=B||L),67108880&t.$$.dirty[0]&&function(t,e){const n=N.id;if(n){const r=new Map(p);re(f,p=r.set(n,{instId:z,size:t,currentItem:e,scrollToPagerItem:X}),p)}}(r.length,R),67108864&t.$$.dirty[0]&&function(t){var e;if(t===U)return;U=t;const n=T.getJsonWithVars(null===(e=r[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&T.execAnyActions(n)}(R)},n(6,f=T.getStore("pagers")),_(),_=Xt(f,(t=>n(40,p=t))),[N,F,I,M,r,O,f,h,d,u,s,l,a,o,i,$,function(t){n(0,N=Object.assign(Object.assign({},N),{items:t}))},K,C,A,V,D,P,j,S,B,R,L,W,H,q,G,c,g,m,v,y,function(t){Ke[t?"unshift":"push"]((()=>{O=t,n(5,O)}))}]}const Ja={indicator:"divkit-d8e3f",indicator__scroller:"divkit-b5db0",indicator__items:"divkit-d5d94",indicator__item:"divkit-f6629",indicator_placement_default:"divkit-c1670",indicator__item_active:"divkit-b39cd",indicator_placement_stretch:"divkit-b6bd3"};function Ba(t,e,n){const r=t.slice();r[43]=e[n],r[46]=n;const i=r[46]===r[12].currentItem;return r[44]=i,r}function Ra(t){let e,n=Array(t[12].size),r=[];for(let e=0;e<n.length;e+=1)r[e]=Ua(Ba(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=we()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=we()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);ge(t,e,n)},p(t,i){if(25169920&i[0]){let o;for(n=Array(t[12].size),o=0;o<n.length;o+=1){const a=Ba(t,n,o);r[o]?r[o].p(a,i):(r[o]=Ua(a),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(t){ve(r,t),t&&me(e)}}}function Ua(t){let e,n,r,i,o,a,l,s;function c(){return t[36](t[46])}return{c(){e=ye("div"),this.h()},l(t){e=De(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),Ce(e).forEach(me),this.h()},h(){ke(e,"class",n=or("indicator__item",Ja,{active:t[44]})+" "+zn.root__clickable),ke(e,"role","tab"),ke(e,"id",r=t[12].instId+"-tab-"+t[46]),ke(e,"aria-controls",i=t[12].instId+"-panel-"+t[46]),ke(e,"aria-selected",o=t[44]?"true":"false"),ke(e,"tabindex",a=t[44]?0:-1)},m(n,r){ge(n,e,r),l||(s=[xe(e,"click",c),xe(e,"keydown",t[24])],l=!0)},p(l,s){t=l,4096&s[0]&&n!==(n=or("indicator__item",Ja,{active:t[44]})+" "+zn.root__clickable)&&ke(e,"class",n),4096&s[0]&&r!==(r=t[12].instId+"-tab-"+t[46])&&ke(e,"id",r),4096&s[0]&&i!==(i=t[12].instId+"-panel-"+t[46])&&ke(e,"aria-controls",i),4096&s[0]&&o!==(o=t[44]?"true":"false")&&ke(e,"aria-selected",o),4096&s[0]&&a!==(a=t[44]?0:-1)&&ke(e,"tabindex",a)},d(t){t&&me(e),l=!1,Lt(s)}}}function La(t){let e,n,r,i,o=t[12]&&Ra(t);return{c(){e=ye("div"),n=ye("div"),o&&o.c(),this.h()},l(t){e=De(t,"DIV",{class:!0});var r=Ce(e);n=De(r,"DIV",{class:!0,role:!0});var i=Ce(n);o&&o.l(i),i.forEach(me),r.forEach(me),this.h()},h(){ke(n,"class",r=Ja.indicator__items),ke(n,"role","tablist"),Fe(n,"margin","default"===t[6]?"0 ".concat(Un(Math.max(0,t[4].width-t[5].width)/2)):""),Fe(n,"--divkit-indicator-inactive-width",Un(t[5].width)),Fe(n,"--divkit-indicator-inactive-height",Un(t[5].height)),Fe(n,"--divkit-indicator-inactive-border-radius",Un(t[5].borderRadius)),Fe(n,"--divkit-indicator-inactive-background",t[5].background||""),Fe(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||""),Fe(n,"--divkit-indicator-active-width",Un(t[4].width)),Fe(n,"--divkit-indicator-active-height",Un(t[4].height)),Fe(n,"--divkit-indicator-active-border-radius",Un(t[4].borderRadius)),Fe(n,"--divkit-indicator-active-background",t[4].background||""),Fe(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||""),Fe(n,"--divkit-indicator-active-scale",t[4].width/t[5].width),Fe(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(Un((t[7]-t[5].width)/2)):""),Fe(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?Un(t[9]):""),Fe(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),Fe(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?Un((t[8]-1)*t[9]):""),ke(e,"class",i=Ja.indicator__scroller)},m(r,i){ge(r,e,i),pe(e,n),o&&o.m(n,null),t[37](n),t[38](e)},p(t,e){t[12]?o?o.p(t,e):(o=Ra(t),o.c(),o.m(n,null)):o&&(o.d(1),o=null),112&e[0]&&Fe(n,"margin","default"===t[6]?"0 ".concat(Un(Math.max(0,t[4].width-t[5].width)/2)):""),32&e[0]&&Fe(n,"--divkit-indicator-inactive-width",Un(t[5].width)),32&e[0]&&Fe(n,"--divkit-indicator-inactive-height",Un(t[5].height)),32&e[0]&&Fe(n,"--divkit-indicator-inactive-border-radius",Un(t[5].borderRadius)),32&e[0]&&Fe(n,"--divkit-indicator-inactive-background",t[5].background||""),32&e[0]&&Fe(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||""),16&e[0]&&Fe(n,"--divkit-indicator-active-width",Un(t[4].width)),16&e[0]&&Fe(n,"--divkit-indicator-active-height",Un(t[4].height)),16&e[0]&&Fe(n,"--divkit-indicator-active-border-radius",Un(t[4].borderRadius)),16&e[0]&&Fe(n,"--divkit-indicator-active-background",t[4].background||""),16&e[0]&&Fe(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||""),48&e[0]&&Fe(n,"--divkit-indicator-active-scale",t[4].width/t[5].width),224&e[0]&&Fe(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(Un((t[7]-t[5].width)/2)):""),576&e[0]&&Fe(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?Un(t[9]):""),320&e[0]&&Fe(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),832&e[0]&&Fe(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?Un((t[8]-1)*t[9]):"")},d(n){n&&me(e),o&&o.d(),t[37](null),t[38](null)}}}function Wa(t){let e,n;return e=new Gr({props:{cls:or("indicator",Ja,t[13]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[La]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=or("indicator",Ja,t[13])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),8176&n[0]|65536&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Ha(t,e,n){let r,i,o,a,l,s,c,u,d,h,f,p,g,m,v,y,$,_,b,w=Ot,x=Ot,E=Ot,C=Ot,A=Ot,V=Ot,D=Ot,P=Ot,j=Ot;var S,N;t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>j()));let{json:F={}}=e,{templateContext:I}=e,{origJson:M}=e,{layoutParams:T}=e;const z=["rounded_rectangle","circle"],O=He(On);let J,B,R,U={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},L={width:10,height:10,borderRadius:5,background:"#33919cb5"},W="default",H=15,q=10,G=5;function K(t){t!==R.currentItem&&R.scrollToPagerItem(t)}async function X(t){R.scrollToPagerItem(t),await en();const e=B.querySelector(".".concat(Ja.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&n(0,F=t.json),"templateContext"in t&&n(1,I=t.templateContext),"origJson"in t&&n(2,M=t.origJson),"layoutParams"in t&&n(3,T=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(22,r=O.getDerivedFromVars(F.shape)),V(),V=Xt(r,(t=>n(32,y=t)))),1&t.$$.dirty[0]&&(n(21,i=O.getDerivedFromVars(F.active_item_color)),C(),C=Xt(i,(t=>n(30,m=t)))),1&t.$$.dirty[0]&&(n(20,o=O.getDerivedFromVars(F.inactive_item_color)),A(),A=Xt(o,(t=>n(31,v=t)))),1&t.$$.dirty[0]&&(n(19,a=O.getDerivedFromVars(F.active_item_size)),D(),D=Xt(a,(t=>n(33,$=t)))),1&t.$$.dirty[0]&&(n(18,l=O.getDerivedFromVars(F.active_shape)),j(),j=Xt(l,(t=>n(35,b=t)))),1&t.$$.dirty[0]&&(n(17,s=O.getDerivedFromVars(F.inactive_shape)),P(),P=Xt(s,(t=>n(34,_=t)))),1073741872&t.$$.dirty[0]|31&t.$$.dirty[1]&&(b&&n(4,U=ki({type:"shape_drawable",shape:b},z,U)),_&&n(5,L=ki({type:"shape_drawable",shape:_},z,L)),!b&&!_&&y)){const t=Xr($,1.3);n(5,L=ki({type:"shape_drawable",shape:y,color:L.background},z,L)),n(5,L.background=k(v,1,L.background),L),n(4,U=Object.assign(Object.assign({},L),{width:L.width*t,height:L.height*t,borderRadius:L.borderRadius*t,background:U.background})),n(4,U.background=k(m,1,U.background),U)}if(1&t.$$.dirty[0]&&(n(16,c=O.getDerivedFromVars(F.space_between_centers)),x(),x=Xt(c,(t=>n(28,p=t)))),1&t.$$.dirty[0]&&(n(15,u=O.getDerivedFromVars(F.items_placement)),E(),E=Xt(u,(t=>n(29,g=t)))),905970624&t.$$.dirty[0])if(!g||"default"!==g.type&&"stretch"!==g.type)n(6,W="default"),p&&n(7,H=hr(p.value,H));else if(n(6,W=g.type),"default"===W)n(7,H=hr(null===n(25,S=g.space_between_centers)||void 0===S?void 0:S.value,H));else if("stretch"===W){const t=g;n(8,q=Xr(t.max_visible_items,q)),n(9,G=hr(null===n(26,N=t.item_spacing)||void 0===N?void 0:N.value,G))}134217728&t.$$.dirty[0]&&async function(t){if(F.pager_id&&t.has(F.pager_id)&&(n(12,R=t.get(F.pager_id)),await en(),B)){const t=B.children[R.currentItem].offsetLeft;J.scroll({left:t-J.clientWidth/2,behavior:"smooth"})}}(f),64&t.$$.dirty[0]&&n(13,h={placement:W})},n(14,d=O.getStore("pagers")),w(),w=Xt(d,(t=>n(27,f=t))),[F,I,M,T,U,L,W,H,q,G,J,B,R,h,d,u,c,s,l,a,o,i,r,K,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=R;if(t.which===To)X(n-1<0?n:n-1);else if(t.which===zo)X(n+1>=e?n:n+1);else if(t.which===Oo)X(0);else{if(t.which!==Jo)return;X(e-1)}t.preventDefault()},S,N,f,p,g,m,v,y,$,_,b,t=>K(t),function(t){Ke[t?"unshift":"push"]((()=>{B=t,n(11,B)}))},function(t){Ke[t?"unshift":"push"]((()=>{J=t,n(10,J)}))}]}const qa={slider:"divkit-ef4f7",slider__input:"divkit-d1d65",slider__input_secondary:"divkit-c7980",slider__thumb:"divkit-f3453",slider__thumb_secondary:"divkit-e1984","slider__tracks-wrapper":"divkit-f7338","slider__tracks-inner":"divkit-ac903",slider__track:"divkit-e956c","slider__active-track":"divkit-ec5bf","slider__thumb-text":"divkit-c4af5","slider__thumb-text_secondary":"divkit-d8821",slider__tick:"divkit-bd9bf",slider__tick_active:"divkit-d8ce2",slider__tick_inactive:"divkit-e71e7"};function Ga(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&k(t.text_color)||"#000",i=Yr(t.font_weight);if(Pr(t.font_size)&&"transparent"!==r){var o,a;const e={fontSize:Un(t.font_size),fontWeight:i,textColor:r};return"number"==typeof(null==n||null===(o=n.x)||void 0===o?void 0:o.value)&&"number"==typeof(null==n||null===(a=n.y)||void 0===a?void 0:a.value)&&(e.offset={x:n.x.value,y:n.y.value}),e}}function Ka(t,e,n){return Math.max(e,Math.min(n,Number(t)))}function Xa(t,e,n){const r=t.slice();return r[78]=e[n],r}function Ya(t,e,n){const r=t.slice();return r[78]=e[n],r}function Za(t){let e,n;return e=new Gr({props:{cls:or("slider",qa,t[21]),style:t[22],customDescription:!0,customActions:"slider",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[rl]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};2097152&n[0]&&(r.cls=or("slider",qa,t[21])),4194304&n[0]&&(r.style=t[22]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),27246576&n[0]|2097152&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Qa(t){let e,n;return{c(){e=ye("div"),this.h()},l(t){e=De(t,"DIV",{class:!0}),Ce(e).forEach(me),this.h()},h(){ke(e,"class",n=qa.slider__tick+" "+qa.slider__tick_active),Fe(e,"--divkit-slider-tick",t[78])},m(t,n){ge(t,e,n)},p(t,n){131072&n[0]&&Fe(e,"--divkit-slider-tick",t[78])},d(t){t&&me(e)}}}function tl(t){let e,n;return{c(){e=ye("div"),this.h()},l(t){e=De(t,"DIV",{class:!0}),Ce(e).forEach(me),this.h()},h(){ke(e,"class",n=qa.slider__tick+" "+qa.slider__tick_inactive),Fe(e,"--divkit-slider-tick",t[78])},m(t,n){ge(t,e,n)},p(t,n){262144&n[0]&&Fe(e,"--divkit-slider-tick",t[78])},d(t){t&&me(e)}}}function el(t){let e,n,r,i,o;return{c(){e=ye("div"),n=ye("div"),r=_e(t[6]),this.h()},l(i){e=De(i,"DIV",{class:!0});var o=Ce(e);n=De(o,"DIV",{class:!0});var a=Ce(n);r=je(a,t[6]),a.forEach(me),o.forEach(me),this.h()},h(){var r,a,l;ke(n,"class",i=qa["slider__thumb-text-inner"]),Fe(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em"),Fe(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||""),Fe(n,"color",(null===(l=t[12])||void 0===l?void 0:l.textColor)||"#000"),ke(e,"class",o=qa["slider__thumb-text"])},m(t,i){ge(t,e,i),pe(e,n),pe(n,r)},p(t,e){var i,o,a;64&e[0]&&Ne(r,t[6]),4096&e[0]&&Fe(n,"font-size",(null===(i=t[12])||void 0===i?void 0:i.fontSize)||"1em"),4096&e[0]&&Fe(n,"font-weight",(null===(o=t[12])||void 0===o?void 0:o.fontWeight)||""),4096&e[0]&&Fe(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&me(e)}}}function nl(t){let e,n,r,i,o;return{c(){e=ye("div"),n=ye("div"),r=_e(t[7]),this.h()},l(i){e=De(i,"DIV",{class:!0});var o=Ce(e);n=De(o,"DIV",{class:!0});var a=Ce(n);r=je(a,t[7]),a.forEach(me),o.forEach(me),this.h()},h(){var r,a,l;ke(n,"class",i=qa["slider__thumb-text-inner"]),Fe(n,"font-size",(null===(r=t[13])||void 0===r?void 0:r.fontSize)||"1em"),Fe(n,"font-weight",(null===(a=t[13])||void 0===a?void 0:a.fontWeight)||""),Fe(n,"color",(null===(l=t[13])||void 0===l?void 0:l.textColor)||"#000"),ke(e,"class",o=qa["slider__thumb-text"]+" "+qa["slider__thumb-text_secondary"])},m(t,i){ge(t,e,i),pe(e,n),pe(n,r)},p(t,e){var i,o,a;128&e[0]&&Ne(r,t[7]),8192&e[0]&&Fe(n,"font-size",(null===(i=t[13])||void 0===i?void 0:i.fontSize)||"1em"),8192&e[0]&&Fe(n,"font-weight",(null===(o=t[13])||void 0===o?void 0:o.fontWeight)||""),8192&e[0]&&Fe(n,"color",(null===(a=t[13])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&me(e)}}}function rl(t){let e,n,r,i,o,a,l,s,c,u,d,h,f,p,g,m,v,y,$,_,b,w,x=t[17],k=[];for(let e=0;e<x.length;e+=1)k[e]=Qa(Ya(t,x,e));let E=t[18],C=[];for(let e=0;e<E.length;e+=1)C[e]=tl(Xa(t,E,e));let A=t[12]&&el(t),V=t[37]&&function(t){let e,n,r=t[13]&&nl(t);return{c(){e=ye("div"),r&&r.c(),this.h()},l(t){e=De(t,"DIV",{class:!0});var n=Ce(e);r&&r.l(n),n.forEach(me),this.h()},h(){ke(e,"class",n=qa.slider__thumb+" "+qa.slider__thumb_secondary),Fe(e,"border-radius",Un(t[9].borderRadius)),Fe(e,"background",t[9].background),Fe(e,"box-shadow",t[9].boxShadow||"")},m(t,n){ge(t,e,n),r&&r.m(e,null)},p(t,n){t[13]?r?r.p(t,n):(r=nl(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),512&n[0]&&Fe(e,"border-radius",Un(t[9].borderRadius)),512&n[0]&&Fe(e,"background",t[9].background),512&n[0]&&Fe(e,"box-shadow",t[9].boxShadow||"")},d(t){t&&me(e),r&&r.d()}}}(t),D=t[37]&&function(t){let e,n,r,i,o;return{c(){e=ye("input"),this.h()},l(t){e=De(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){ke(e,"type","range"),ke(e,"class",n=t[16]?qa.slider__input:"".concat(qa.slider__input," ").concat(qa.slider__input_secondary)),ke(e,"min",t[4]),ke(e,"max",t[5]),ke(e,"step","1"),e.value=r=t[16]?t[6]:t[7],ke(e,"aria-label",t[20])},m(n,r){ge(n,e,r),i||(o=[xe(e,"input",t[68]),xe(e,"mousedown",t[37]?t[40]:null),xe(e,"touchstart",t[37]?t[40]:null)],i=!0)},p(t,i){65536&i[0]&&n!==(n=t[16]?qa.slider__input:"".concat(qa.slider__input," ").concat(qa.slider__input_secondary))&&ke(e,"class",n),16&i[0]&&ke(e,"min",t[4]),32&i[0]&&ke(e,"max",t[5]),65728&i[0]&&r!==(r=t[16]?t[6]:t[7])&&(e.value=r),1048576&i[0]&&ke(e,"aria-label",t[20])},d(t){t&&me(e),i=!1,Lt(o)}}}(t);return{c(){e=ye("div"),n=ye("div"),r=ye("div"),o=be(),a=ye("div"),s=be();for(let t=0;t<k.length;t+=1)k[t].c();c=be();for(let t=0;t<C.length;t+=1)C[t].c();u=be(),d=ye("div"),A&&A.c(),f=be(),V&&V.c(),p=be(),g=ye("input"),y=be(),D&&D.c(),this.h()},l(t){e=De(t,"DIV",{class:!0});var i=Ce(e);n=De(i,"DIV",{class:!0});var l=Ce(n);r=De(l,"DIV",{class:!0}),Ce(r).forEach(me),o=Se(l),a=De(l,"DIV",{class:!0}),Ce(a).forEach(me),s=Se(l);for(let t=0;t<k.length;t+=1)k[t].l(l);c=Se(l);for(let t=0;t<C.length;t+=1)C[t].l(l);u=Se(l),d=De(l,"DIV",{class:!0});var h=Ce(d);A&&A.l(h),h.forEach(me),f=Se(l),V&&V.l(l),p=Se(l),g=De(l,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),y=Se(l),D&&D.l(l),l.forEach(me),i.forEach(me),this.h()},h(){ke(r,"class",i=qa.slider__track),Fe(r,"height",Un(t[10].height)),Fe(r,"border-radius",Un(t[10].borderRadius)),Fe(r,"background",t[10].background),Fe(r,"box-shadow",t[10].boxShadow||""),ke(a,"class",l=qa["slider__active-track"]),Fe(a,"left",(100*t[23]).toFixed(2)+"%"),Fe(a,"width",(100*t[24]).toFixed(2)+"%"),Fe(a,"height",Un(t[11].height)),Fe(a,"border-radius",Un(t[11].borderRadius)),Fe(a,"background",t[11].background),Fe(a,"box-shadow",t[11].boxShadow||""),ke(d,"class",h=qa.slider__thumb),Fe(d,"border-radius",Un(t[8].borderRadius)),Fe(d,"background",t[8].background),Fe(d,"box-shadow",t[8].boxShadow||""),ke(g,"type","range"),ke(g,"class",m=t[16]?"".concat(qa.slider__input," ").concat(qa.slider__input_secondary):qa.slider__input),ke(g,"min",t[4]),ke(g,"max",t[5]),ke(g,"step","1"),g.value=v=t[16]?t[7]:t[6],ke(g,"aria-label",t[19]),ke(n,"class",$=qa["slider__tracks-inner"]),ke(e,"class",_=qa["slider__tracks-wrapper"])},m(i,l){ge(i,e,l),pe(e,n),pe(n,r),pe(n,o),pe(n,a),pe(n,s);for(let t=0;t<k.length;t+=1)k[t]&&k[t].m(n,null);pe(n,c);for(let t=0;t<C.length;t+=1)C[t]&&C[t].m(n,null);pe(n,u),pe(n,d),A&&A.m(d,null),pe(n,f),V&&V.m(n,null),pe(n,p),pe(n,g),pe(n,y),D&&D.m(n,null),t[69](n),b||(w=xe(g,"input",t[67]),b=!0)},p(t,e){if(1024&e[0]&&Fe(r,"height",Un(t[10].height)),1024&e[0]&&Fe(r,"border-radius",Un(t[10].borderRadius)),1024&e[0]&&Fe(r,"background",t[10].background),1024&e[0]&&Fe(r,"box-shadow",t[10].boxShadow||""),8388608&e[0]&&Fe(a,"left",(100*t[23]).toFixed(2)+"%"),16777216&e[0]&&Fe(a,"width",(100*t[24]).toFixed(2)+"%"),2048&e[0]&&Fe(a,"height",Un(t[11].height)),2048&e[0]&&Fe(a,"border-radius",Un(t[11].borderRadius)),2048&e[0]&&Fe(a,"background",t[11].background),2048&e[0]&&Fe(a,"box-shadow",t[11].boxShadow||""),131072&e[0]){let r;for(x=t[17],r=0;r<x.length;r+=1){const i=Ya(t,x,r);k[r]?k[r].p(i,e):(k[r]=Qa(i),k[r].c(),k[r].m(n,c))}for(;r<k.length;r+=1)k[r].d(1);k.length=x.length}if(262144&e[0]){let r;for(E=t[18],r=0;r<E.length;r+=1){const i=Xa(t,E,r);C[r]?C[r].p(i,e):(C[r]=tl(i),C[r].c(),C[r].m(n,u))}for(;r<C.length;r+=1)C[r].d(1);C.length=E.length}t[12]?A?A.p(t,e):(A=el(t),A.c(),A.m(d,null)):A&&(A.d(1),A=null),256&e[0]&&Fe(d,"border-radius",Un(t[8].borderRadius)),256&e[0]&&Fe(d,"background",t[8].background),256&e[0]&&Fe(d,"box-shadow",t[8].boxShadow||""),t[37]&&V.p(t,e),65536&e[0]&&m!==(m=t[16]?"".concat(qa.slider__input," ").concat(qa.slider__input_secondary):qa.slider__input)&&ke(g,"class",m),16&e[0]&&ke(g,"min",t[4]),32&e[0]&&ke(g,"max",t[5]),65728&e[0]&&v!==(v=t[16]?t[7]:t[6])&&(g.value=v),524288&e[0]&&ke(g,"aria-label",t[19]),t[37]&&D.p(t,e)},d(n){n&&me(e),ve(k,n),ve(C,n),A&&A.d(),V&&V.d(),D&&D.d(),t[69](null),b=!1,w()}}}function il(t){let e,n,r,i,o=!t[14]&&Za(t);return{c(){o&&o.c(),e=we()},l(t){o&&o.l(t),e=we()},m(a,l){o&&o.m(a,l),ge(a,e,l),n=!0,r||(i=xe(window,"resize",t[42]),r=!0)},p(t,n){t[14]?o&&(hn(),gn(o,1,1,(()=>{o=null})),fn()):o?(o.p(t,n),16384&n[0]&&pn(o,1)):(o=Za(t),o.c(),pn(o,1),o.m(e.parentNode,e))},i(t){n||(pn(o),n=!0)},o(t){gn(o),n=!1},d(t){o&&o.d(t),t&&me(e),r=!1,i()}}}function ol(t,e,n,r,i){let o=[];if(i)for(let i=t;i<e;++i)o.push((i-n)/(r-n));else{for(let e=n;e<t;++e)o.push((e-n)/(r-n));for(let t=e;t<r+1;++t)o.push((t-n)/(r-n))}return o}function al(t,e,n){let r,i,o,a,l,s,c,u,d,h,f,p,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j,S,N,F,I,M,T=Ot,z=Ot,O=Ot,J=Ot,B=Ot,R=Ot,U=Ot,L=Ot,W=Ot,H=Ot,q=Ot,G=Ot;var K,X,Y,Z;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G()));let{json:Q={}}=e,{templateContext:tt}=e,{origJson:et}=e,{layoutParams:nt}=e;const rt={width:10,height:10,borderRadius:5,background:"#000"},it=["rounded_rectangle","circle"],ot=["rounded_rectangle"],at=He(On),lt=He(wr);let st,ut=!1,dt=0,ht=100;const ft=Q.thumb_value_variable,pt=Q.thumb_secondary_value_variable;let gt=ft&&at.getVariable(ft,"integer")||Nn("temp","integer",0);Yt(t,gt,(t=>n(64,F=t)));let mt=pt&&at.getVariable(pt,"integer")||Nn("temp","integer",0);Yt(t,mt,(t=>n(63,N=t)));let vt,yt,$t,_t=Ka(F||0,dt,ht),bt=Ka(N||0,dt,ht),wt=rt,xt=wt,kt=rt,Et=rt,Ct=null,At=null,Vt=$t,Dt="",Pt="",jt=!1;function St(t,e){const r=Number(t.target.value);ut===("first"===e)?(n(7,bt=r),mt.setValue(r)):(n(6,_t=r),gt.setValue(r))}let Nt=!1;function Ft(){if(!st)return;const t=ht-dt,e=(null==Ct?void 0:Ct.width)||0,n=(null==At?void 0:At.width)||0;Math.max(e,n)*t>=(null==st?void 0:st.clientWidth)?Nt||(at.logError(ct(new Error("Slider ticks overlap each other"),{level:"warn"})),Nt=!0):Nt=!1}const It=wo(Ft,50);return Ue((()=>{Ft()})),t.$$set=t=>{"json"in t&&n(0,Q=t.json),"templateContext"in t&&n(1,tt=t.templateContext),"origJson"in t&&n(2,et=t.origJson),"layoutParams"in t&&n(3,nt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(36,r=at.getDerivedFromVars(Q.min_value)),G(),G=Xt(r,(t=>n(66,M=t)))),1&t.$$.dirty[0]&&(n(35,i=at.getDerivedFromVars(Q.max_value)),q(),q=Xt(i,(t=>n(65,I=t)))),48&t.$$.dirty[0]|24&t.$$.dirty[2]&&(n(4,dt=vr(M,dt)),n(5,ht=vr(I,ht)),Ft()),112&t.$$.dirty[0]|4&t.$$.dirty[2]){const t=Ka(F||0,dt,ht);t!==_t&&n(6,_t=t)}if(176&t.$$.dirty[0]|2&t.$$.dirty[2]){const t=Ka(N||0,dt,ht);t!==bt&&n(7,bt=t)}if(1&t.$$.dirty[0]&&(n(34,o=at.getDerivedFromVars(Q.thumb_style)),H(),H=Xt(o,(t=>n(62,S=t)))),256&t.$$.dirty[0]|1&t.$$.dirty[2]&&n(8,wt=ki(S,it,wt)),1&t.$$.dirty[0]&&(n(33,a=at.getDerivedFromVars(Q.thumb_secondary_style)),W(),W=Xt(a,(t=>n(61,j=t)))),256&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&n(9,xt=ki(j,it,wt)),1&t.$$.dirty[0]&&(n(32,l=at.getDerivedFromVars(Q.track_inactive_style)),L(),L=Xt(l,(t=>n(60,P=t)))),1024&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&n(10,kt=ki(P,ot,kt)),1&t.$$.dirty[0]&&(n(31,s=at.getDerivedFromVars(Q.track_active_style)),U(),U=Xt(s,(t=>n(59,D=t)))),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(11,Et=ki(D,ot,Et)),1&t.$$.dirty[0]&&(n(30,c=at.getDerivedFromVars(Q.tick_mark_active_style)),R(),R=Xt(c,(t=>n(58,V=t)))),134217728&t.$$.dirty[1]){let t=ki(V,it,rt);t!==rt&&n(47,Ct=t)}if(240&t.$$.dirty[0]|65536&t.$$.dirty[1]&&(Ct?(n(17,vt=pt?ol(Math.min(_t,bt),Math.max(_t,bt)+1,dt,ht,!0):ol(dt,_t,dt,ht,!0)),Ft()):n(17,vt=[])),1&t.$$.dirty[0]&&(n(29,u=at.getDerivedFromVars(Q.tick_mark_inactive_style)),B(),B=Xt(u,(t=>n(57,A=t)))),67108864&t.$$.dirty[1]){let t=ki(A,it,rt);t!==rt&&n(48,At=t)}if(240&t.$$.dirty[0]|131072&t.$$.dirty[1]&&(At?(n(18,yt=pt?ol(Math.min(_t,bt),Math.max(_t,bt)+1,dt,ht,!1):ol(_t+1,ht+1,dt,ht,!0)),Ft()):n(18,yt=[])),1&t.$$.dirty[0]&&(n(28,d=at.getDerivedFromVars(Q.thumb_text_style)),J(),J=Xt(d,(t=>n(56,C=t)))),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(12,$t=Ga(C,$t)),1&t.$$.dirty[0]&&(n(27,h=at.getDerivedFromVars(Q.thumb_secondary_text_style)),O(),O=Xt(h,(t=>n(55,E=t)))),4096&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&n(13,Vt=Ga(E,$t)),1&t.$$.dirty[0]&&(n(26,f=at.getDerivedFromVars(Q.accessibility)),z(),z=Xt(f,(t=>n(54,k=t)))),8388608&t.$$.dirty[1]&&((null==k?void 0:k.description)?n(19,Dt=k.description):at.logError(ct(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),1&t.$$.dirty[0]&&(n(25,p=at.getDerivedFromVars(Q.secondary_value_accessibility)),T(),T=Xt(p,(t=>n(53,x=t)))),4194304&t.$$.dirty[1]&&((null==x?void 0:x.description)?n(20,Pt=x.description):pt&&at.logError(ct(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),19712&t.$$.dirty[0]){let t=!1;lt.hasAction()?(at.logError(ct(new Error('Cannot show "slider" inside component with action'))),t=!0):wt===rt?(at.logError(ct(new Error('Missing "thumb_style" in slider'))),t=!0):Et===rt?(at.logError(ct(new Error('Missing "track_active_style" in slider'))),t=!0):kt===rt&&(at.logError(ct(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==jt&&n(14,jt=t)}768&t.$$.dirty[0]&&n(52,g=Un(Math.max(...[wt.width,xt.width,0].filter(ur)))),768&t.$$.dirty[0]&&n(51,m=Un(Math.max(...[wt.height,xt.height,0].filter(ur)))),112&t.$$.dirty[0]&&n(50,v=(_t-dt)/(ht-dt)),176&t.$$.dirty[0]&&n(49,y=pt?(bt-dt)/(ht-dt):void 0),786432&t.$$.dirty[1]&&n(24,$=void 0!==y?Math.abs(y-v):v),786432&t.$$.dirty[1]&&n(23,_=void 0!==y?Math.min(y,v):0),13056&t.$$.dirty[0]|4190208&t.$$.dirty[1]&&n(22,b={"--divkit-slider-thumb-width":Un(wt.width),"--divkit-slider-thumb-height":Un(wt.height),"--divkit-slider-thumb-secondary-width":Un(xt.width),"--divkit-slider-thumb-secondary-height":Un(xt.height),"--divkit-slider-text-offset-x":(null===n(43,K=null==$t?void 0:$t.offset)||void 0===K?void 0:K.x)?Ln($t.offset.x):void 0,"--divkit-slider-text-offset-y":(null===n(44,X=null==$t?void 0:$t.offset)||void 0===X?void 0:X.y)?Ln($t.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===n(45,Y=null==Vt?void 0:Vt.offset)||void 0===Y?void 0:Y.x)?Ln(Vt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===n(46,Z=null==Vt?void 0:Vt.offset)||void 0===Z?void 0:Z.y)?Ln(Vt.offset.y):void 0,"--divkit-slider-tick-active-width":Ct?Un(Ct.width):void 0,"--divkit-slider-tick-active-height":Ct?Un(Ct.height):void 0,"--divkit-slider-tick-active-border-radius":Ct?Un(Ct.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==Ct?void 0:Ct.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==Ct?void 0:Ct.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":At?Un(At.width):void 0,"--divkit-slider-tick-inactive-height":At?Un(At.height):void 0,"--divkit-slider-tick-inactive-border-radius":At?Un(At.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==At?void 0:At.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==At?void 0:At.boxShadow)||void 0,"--divkit-slider-max-thumb-width":g,"--divkit-slider-max-thumb-height":m,"--divkit-slider-track-part":v,"--divkit-slider-track-secondary-part":y})},n(21,w={}),[Q,tt,et,nt,dt,ht,_t,bt,wt,xt,kt,Et,$t,Vt,jt,st,ut,vt,yt,Dt,Pt,w,b,_,$,p,f,h,d,u,c,s,l,a,o,i,r,pt,gt,mt,function(t){var e,r;const i="pageX"in t?t.pageX:null===(r=null===(e=t.changedTouches)||void 0===e?void 0:e[0])||void 0===r?void 0:r.pageX;if(void 0===i)return;const o=st.getBoundingClientRect(),a=(i-o.left)/o.width,l=(ht-dt)*a,s=Math.round(Ka(l,dt,ht));n(16,ut=s<(_t+bt)/2==_t<bt)},St,It,K,X,Y,Z,Ct,At,y,v,m,g,x,k,E,C,A,V,D,P,j,S,N,F,I,M,t=>St(t,"first"),t=>St(t,"second"),function(t){Ke[t?"unshift":"push"]((()=>{st=t,n(15,st)}))}]}const ll={input:"divkit-c3a4c","input_alignment-horizontal_center":"divkit-fc52a","input_alignment-horizontal_right":"divkit-e8038",input__input:"divkit-f11e0",input__placeholder:"divkit-b7593","input_alignment-vertical_top":"divkit-bdccd","input_alignment-vertical_bottom":"divkit-fc670","input_alignment-vertical_baseline":"divkit-dd6af","input_highlight-color":"divkit-cc00f",input__input_singleline:"divkit-ffd1e","input__scroll-wrapper":"divkit-ad8a3",input__input_multiline:"divkit-f61f0","input__input_has-custom-focus":"divkit-e6b50"};function sl(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=sl(e,t);return{start:n.start,added:n.removed,removed:n.added}}let n=0,r=e.length-1;const i=e.length-t.length;for(;n<r&&n<t.length&&t[n]===e[n];)++n;for(;r-i>=n&&t[r-i]===e[r];)--r;return++r,{start:n,added:r-n,removed:r-n-i}}function cl(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class ul{constructor(t){this.char=t}}class dl{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class hl{constructor(t){cl(this,"filters",new Map),cl(this,"destructedValue",[]),cl(this,"cursorPos",0),this.maskData=t,this.updateMaskData(t)}get cursorPosition(){return this.cursorPos}get rawValue(){return this.collectValueRange(0,this.destructedValue.length-1)}get value(){let t="";for(let e=0;e<this.destructedValue.length;++e){const n=this.destructedValue[e];if(n instanceof ul)t+=n.char;else if(n instanceof dl)if(n.char)t+=n.char;else{if(!this.maskData.alwaysVisible)break;t+=n.placeholder}}return t}firstEmptyHolderIndex(){const t=this.destructedValue.findIndex((t=>t instanceof dl&&!t.char));return-1!==t?t:this.destructedValue.length}updateMaskData(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.maskData!==t&&e?this.rawValue:null;this.filters=new Map,this.maskData=t,this.maskData.decoding.forEach((t=>{if(t.filter)try{const e=new RegExp(t.filter);this.filters.set(t.key,e)}catch(e){this.onException(ct(e,{level:"error",additional:{key:t.key}}))}})),this.destructedValue=this.maskData.pattern.split("").map((t=>{const e=this.maskData.decoding.find((e=>e.key===t));return e?new dl(null,this.filters.get(e.key),e.placeholder):new ul(t)})),null!==n&&this.overrideRawValue(n)}overrideRawValue(t){this.clearRange(0,this.destructedValue.length),this.replaceChars(t,0),this.cursorPos=Math.min(this.cursorPos,this.value.length)}applyChangeFrom(t,e){const n=sl(this.value,t);void 0!==e&&(n.start=Math.max(0,e-n.added));const r=this.buildBodySubstring(n,t),i=this.buildTailSubstring(n);this.cleanup(n);const o=this.firstEmptyHolderIndex(),a=this.calculateMaxShift(i,o);this.replaceChars(r,o,a);const l=this.firstEmptyHolderIndex();this.replaceChars(i,l),this.calculateCursorPosition(n,l)}buildBodySubstring(t,e){return e.substring(t.start,t.start+t.added)}buildTailSubstring(t){return this.collectValueRange(t.start+t.removed,this.destructedValue.length-1)}calculateMaxShift(t,e){if(this.filters.size<=1){let n=0,r=e;for(;r<this.destructedValue.length;)this.destructedValue[r]instanceof dl&&++n,++r;return Math.max(0,n-t.length)}const n=this.calculateInsertableSubstring(t,e);let r=0;for(;r<this.destructedValue.length&&n===this.calculateInsertableSubstring(t,e+r);)++r;return Math.max(0,r-1)}cleanup(t){if(0===t.added&&1===t.removed){let e=t.start;for(;e>=0;){const t=this.destructedValue[e];if(t instanceof dl&&null!==t.char){t.char=null;break}--e}}this.clearRange(t.start,this.destructedValue.length)}clearRange(t,e){let n=t;for(;n<e&&n<this.destructedValue.length;){const t=this.destructedValue[n];t instanceof dl&&(t.char=null),++n}}calculateCursorPosition(t,e){const n=this.firstEmptyHolderIndex();let r;r=t.start<n?Math.min(this.firstHolderAfter(e),this.value.length):n,this.cursorPos=r}calculateInsertableSubstring(t,e){let n="",r=e;const i=()=>{for(var t;r<this.destructedValue.length&&!(this.destructedValue[r]instanceof dl);)++r;return null===(t=this.destructedValue[r])||void 0===t?void 0:t.filter};return t.split("").forEach((t=>{const e=i();null!=e&&e.test(t)&&(n+=t,++r)})),n}collectValueRange(t,e){let n="",r=t;for(;r<=e;){const t=this.destructedValue[r];t instanceof dl&&null!==t.char&&(n+=t.char),++r}return n}replaceChars(t,e,n){let r=this.calculateInsertableSubstring(t,e);void 0!==n&&(r=r.substring(0,n));let i=e,o=0;for(;i<this.destructedValue.length&&o<r.length;){const t=this.destructedValue[i],e=r[o];t instanceof dl&&(t.char=e,++o),++i}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof dl);)++e;return e}}class fl extends hl{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function pl(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class gl extends hl{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1?arguments[1]:void 0;super({pattern:"",decoding:[],alwaysVisible:!1}),pl(this,"currencyFormatter",new Intl.NumberFormat),pl(this,"decimalSeparator","."),pl(this,"localeDigits",{}),pl(this,"trimZeroRegExp",new RegExp("")),this.logError=e,this.initFormatter(t)}updateCurrencyParams(t){const e=this.parseFormat(this.rawValue)||0;this.initFormatter(t);const n=e.toString().replace(".",this.decimalSeparator);this.applyChangeFrom(n)}initFormatter(t){try{this.currencyFormatter=new Intl.NumberFormat(t,{minimumFractionDigits:2,maximumFractionDigits:2}),this.decimalSeparator=this.currencyFormatter.format(0)[1],this.localeDigits=new Array(10).fill("").reduce(((t,e,n)=>(t[n]=this.currencyFormatter.format(n)[0],t)),{}),this.trimZeroRegExp=new RegExp("^".concat(this.localeDigits[0],"+"))}catch(e){this.onException(ct(e,{level:"error",additional:{locale:t}}))}}invalidateMaskDataForFormatted(t){const e=this.currencyFormatter.format(t),n=this.formatPattern(e),r=[{key:"#",filter:"[".concat([...Object.values(this.localeDigits)].join(""),"]"),placeholder:this.localeDigits[0]},{key:this.decimalSeparator,filter:"[".concat(this.decimalSeparator,"]"),placeholder:this.decimalSeparator}];this.updateMaskData({pattern:n,decoding:r,alwaysVisible:this.maskData.alwaysVisible},!1)}overrideRawValue(t){const e=this.parseFormat(t)||0;this.invalidateMaskDataForFormatted(e),super.overrideRawValue(t)}applyChangeFrom(t,e){const n=sl(this.value,t),r=this.value.lastIndexOf(this.decimalSeparator),i=t.lastIndexOf(this.decimalSeparator),o=r!==i||-1===r&&-1===i,a=this.validFormat(t,n);this.cleanup(n);const l=this.parseFormat(a)||0;o&&this.invalidateMaskDataForFormatted(l),this.replaceChars(a,0),this.value.length>n.start&&!this.isDigit(this.value[n.start])?this.cursorPos=null!=e?e:this.cursorPosition:this.cursorPos=Math.abs(this.value.length-(t.length-(null!=e?e:this.cursorPosition)))}parseFormat(t){return parseFloat(t.replace(/./g,(t=>this.localeDigits[t]||(t===this.decimalSeparator?".":""))))}formatPattern(t){let e="";for(const n of t)e+=this.isDigit(n)?"#":n;return e}validFormat(t,e){if(!t)return"";let n=-1,r=0;for(;r<t.length;){if(t[r]===this.decimalSeparator&&!this.inDiff(e,r)){n=r;break}r++}let i=-1;1===e.added&&0===e.removed&&[",","."].includes(t[e.start])&&(i=e.start);const o=this.currencyFormatter.resolvedOptions().maximumFractionDigits;let a=o;if(-1!==n)for(r=n;r<t.length;)this.isDigit(t[r])&&!this.inDiff(e,r)&&a--,r++;else{let n=!1;for(let r=0;r<t.length;r++){const i=t[r];i===this.decimalSeparator?n=!0:!this.inDiff(e,r)&&n&&this.isDigit(i)&&a--}}const l=t.includes(this.decimalSeparator)||-1!==i,s=[];r=t.length-1;let c=!1;for(;r>=0;){const u=t[r],d=s.length<=o;this.isDigit(u)?this.inDiff(e,r)&&!c&&l?a>0&&(s.push(u),a--):s.push(u):d&&-1===n&&r===i?(s.push(this.decimalSeparator),c=!0):!d||u!==this.decimalSeparator||n!==r&&-1!==n||(s.push(this.decimalSeparator),c=!0,n=r),r--}return s.reverse().join("").replace(this.trimZeroRegExp,"")}inDiff(t,e){return t.start<=e&&e<t.start+t.added}isDigit(t){return Boolean(this.localeDigits[t])}onException(t){this.logError(t)}}const ml=3;function vl(t){const e=t.textContent;let n=0;return"string"==typeof e&&(n+=e.length,t instanceof HTMLElement&&("DIV"===t.tagName||"BR"===t.tagName)&&++n),n}function yl(t,e){if(t.nodeType!==ml)if(t instanceof HTMLElement&&"BR"===t.tagName)try{const e=window.getSelection();if(e){e.removeAllRanges();const n=document.createRange(),r=t.parentNode,i=Array.from(r.childNodes).indexOf(t)+1;n.setStart(r,i),n.setEnd(r,i),e.addRange(n)}}catch(t){}else for(let n=0,r=t.childNodes.length;n<r;++n){const r=t.childNodes[n],i=vl(r);if(e<=i)return void yl(r,e);e-=i}else try{const n=window.getSelection();if(n){n.removeAllRanges();const r=document.createRange();r.setStart(t,e),r.setEnd(t,e),n.addRange(r)}}catch(t){}}function $l(t){let e,n;return e=new Gr({props:{cls:or("input",ll,t[15]),style:t[14],customDescription:!0,customActions:"input",customPaddings:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[xl,t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return{89:e,90:n,91:r}},t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return[0,0,(e?134217728:0)|(n?268435456:0)|(r?536870912:0)]}]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};32768&n[0]&&(r.cls=or("input",ll,t[15])),16384&n[0]&&(r.style=t[14]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),802672&n[0]|2013265920&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function _l(t){let e,n,r,i,o;return{c(){e=ye("input"),this.h()},l(t){e=De(t,"INPUT",{type:!0,inputmode:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,style:!0,placeholder:!0}),this.h()},h(){ke(e,"type",t[9]),ke(e,"inputmode",t[10]),ke(e,"class",n=or("input__input",ll,{"has-custom-focus":t[91],singleline:!0})),ke(e,"autocomplete","off"),ke(e,"autocapitalize","off"),ke(e,"aria-label",t[11]),ke(e,"style",r=Rn(t[13])),ke(e,"placeholder",t[18]),e.value=t[4]},m(n,r){ge(n,e,r),t[76](e),i||(o=[xe(e,"input",t[37]),xe(e,"mousedown",(function(){Wt(t[19]?t[38]:void 0)&&(t[19]?t[38]:void 0).apply(this,arguments)})),xe(e,"click",(function(){Wt(t[19]?t[39]:void 0)&&(t[19]?t[39]:void 0).apply(this,arguments)})),xe(e,"focus",(function(){Wt(t[89])&&t[89].apply(this,arguments)})),xe(e,"blur",(function(){Wt(t[90])&&t[90].apply(this,arguments)}))],i=!0)},p(i,o){t=i,512&o[0]&&ke(e,"type",t[9]),1024&o[0]&&ke(e,"inputmode",t[10]),536870912&o[2]&&n!==(n=or("input__input",ll,{"has-custom-focus":t[91],singleline:!0}))&&ke(e,"class",n),2048&o[0]&&ke(e,"aria-label",t[11]),8192&o[0]&&r!==(r=Rn(t[13]))&&ke(e,"style",r),262144&o[0]&&ke(e,"placeholder",t[18]),16&o[0]&&e.value!==t[4]&&(e.value=t[4])},d(n){n&&me(e),t[76](null),i=!1,Lt(o)}}}function bl(t){let e,n,r,i,o,a,l,s,c,u,d,h,f=!t[8]&&t[18]&&wl(t);return{c(){e=ye("span"),f&&f.c(),n=be(),r=ye("span"),i=_e("​"),a=be(),l=ye("span"),this.h()},l(t){e=De(t,"SPAN",{class:!0});var o=Ce(e);f&&f.l(o),n=Se(o),r=De(o,"SPAN",{"aria-hidden":!0,style:!0});var s=Ce(r);i=je(s,"​"),s.forEach(me),a=Se(o),l=De(o,"SPAN",{class:!0,autocapitalize:!0,contenteditable:!0,"aria-label":!0,style:!0}),Ce(l).forEach(me),o.forEach(me),this.h()},h(){ke(r,"aria-hidden","true"),ke(r,"style",o=Rn(t[12])),ke(l,"class",s=or("input__input",ll,{"has-custom-focus":t[91],multiline:!0})),ke(l,"autocapitalize","off"),ke(l,"contenteditable","true"),ke(l,"aria-label",t[11]),ke(l,"style",c=Rn(t[13])),void 0===t[8]&&nn((()=>t[75].call(l))),ke(e,"class",u=ll["input__scroll-wrapper"])},m(o,s){ge(o,e,s),f&&f.m(e,null),pe(e,n),pe(e,r),pe(r,i),pe(e,a),pe(e,l),t[74](l),void 0!==t[8]&&(l.innerText=t[8]),d||(h=[xe(l,"input",t[75]),xe(l,"input",t[37]),xe(l,"paste",El),xe(l,"mousedown",(function(){Wt(t[19]?t[38]:void 0)&&(t[19]?t[38]:void 0).apply(this,arguments)})),xe(l,"click",(function(){Wt(t[19]?t[39]:void 0)&&(t[19]?t[39]:void 0).apply(this,arguments)})),xe(l,"focus",(function(){Wt(t[89])&&t[89].apply(this,arguments)})),xe(l,"blur",(function(){Wt(t[90])&&t[90].apply(this,arguments)}))],d=!0)},p(i,a){!(t=i)[8]&&t[18]?f?f.p(t,a):(f=wl(t),f.c(),f.m(e,n)):f&&(f.d(1),f=null),4096&a[0]&&o!==(o=Rn(t[12]))&&ke(r,"style",o),536870912&a[2]&&s!==(s=or("input__input",ll,{"has-custom-focus":t[91],multiline:!0}))&&ke(l,"class",s),2048&a[0]&&ke(l,"aria-label",t[11]),8192&a[0]&&c!==(c=Rn(t[13]))&&ke(l,"style",c),256&a[0]&&t[8]!==l.innerText&&(l.innerText=t[8])},d(n){n&&me(e),f&&f.d(),t[74](null),d=!1,Lt(h)}}}function wl(t){let e,n,r,i;return{c(){e=ye("div"),n=_e(t[18]),this.h()},l(r){e=De(r,"DIV",{class:!0,"aria-hidden":!0,style:!0});var i=Ce(e);n=je(i,t[18]),i.forEach(me),this.h()},h(){ke(e,"class",r=ll.input__placeholder),ke(e,"aria-hidden","true"),ke(e,"style",i=Rn(t[13]))},m(t,r){ge(t,e,r),pe(e,n)},p(t,r){262144&r[0]&&Ne(n,t[18]),8192&r[0]&&i!==(i=Rn(t[13]))&&ke(e,"style",i)},d(t){t&&me(e)}}}function xl(t){let e;function n(t,e){return t[5]?bl:_l}let r=n(t),i=r(t);return{c(){i.c(),e=we()},l(t){i.l(t),e=we()},m(t,n){i.m(t,n),ge(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){i.d(t),t&&me(e)}}}function kl(t){let e,n,r=!t[7]&&$l(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){t[7]?r&&(hn(),gn(r,1,1,(()=>{r=null})),fn()):r?(r.p(t,n),128&n[0]&&pn(r,1)):(r=$l(t),r.c(),pn(r,1),r.m(e.parentNode,e))},i(t){n||(pn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function El(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function Cl(t,e,n){let r,i,o,a,l,s,c,u,d,h,f,p,g,m,v,y,$,_,b,w,x,E,C,A,V,D,P,j=Ot,S=Ot;var N;t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S()));let{json:F={}}=e,{templateContext:I}=e,{origJson:M}=e,{layoutParams:T}=e;const z=He(On);let O,J=!1,B=null;const R=F.text_variable,U=null===(N=F.mask)||void 0===N?void 0:N.raw_text_variable;let L=!1;R||(L=!0,z.logError(ct(new Error('Missing "text_variable" in "input"'))));let W=R&&z.getVariable(R,"string")||Nn("temp","string","");Yt(t,W,(t=>n(56,d=t)));let H=U&&z.getVariable(U,"string")||Nn("temp","string","");Yt(t,H,(t=>n(57,h=t)));let q="",G="";const K=z.getDerivedFromVars(F.mask);Yt(t,K,(t=>n(61,m=t)));const X=z.getDerivedFromVars(F.hint_text);Yt(t,X,(t=>n(73,D=t)));const Y=z.getDerivedFromVars(F.hint_color);Yt(t,Y,(t=>n(72,V=t)));let Z="";const Q=z.getDerivedFromVars(F.font_size);Yt(t,Q,(t=>n(71,A=t)));let tt=12;const et=z.getDerivedFromVars(F.font_weight);Yt(t,et,(t=>n(70,C=t)));const nt=z.getDerivedFromVars(F.font_family);let rt;Yt(t,nt,(t=>n(69,E=t)));let it="";const ot=z.getDerivedFromVars(F.line_height);let at;Yt(t,ot,(t=>n(68,x=t)));const lt=z.getDerivedFromVars(F.letter_spacing);Yt(t,lt,(t=>n(67,w=t)));let st="";const ut=z.getDerivedFromVars(F.text_color);Yt(t,ut,(t=>n(66,b=t)));let dt="#000";const ht=z.getDerivedFromVars(F.highlight_color);Yt(t,ht,(t=>n(65,_=t)));let ft="";const pt=z.getDerivedFromVars(F.text_alignment_horizontal);Yt(t,pt,(t=>n(64,$=t)));let gt="left";const mt=z.getDerivedFromVars(F.text_alignment_vertical);Yt(t,mt,(t=>n(63,y=t)));let vt="center";const yt=z.getDerivedFromVars(F.keyboard_type);Yt(t,yt,(t=>n(62,v=t)));const $t={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};let _t="multi_line_text",bt="text";const wt=document&&"inputMode"in document.createElement("input");let xt;const kt=z.getDerivedFromVars(F.max_visible_lines);Yt(t,kt,(t=>n(60,g=t)));let Et="",Ct=null,At="",Vt="",Dt="";const Pt=z.getDerivedFromVars(F.select_all_on_focus);function jt(t){O instanceof HTMLInputElement?n(6,O.selectionStart=n(6,O.selectionEnd=t,O),O):yl(O,t)}async function St(){if(!O||!B)return;B.overrideRawValue(h),H.set(B.rawValue),re(W,d=n(4,q=n(8,G=B.value)),d);const t=B.cursorPosition;await en(),document.activeElement===O&&jt(t)}return Yt(t,Pt,(t=>n(19,P=t))),Ue((()=>{O&&B&&h&&(B.overrideRawValue(h),re(W,d=n(4,q=n(8,G=B.value)),d))})),t.$$set=t=>{"json"in t&&n(0,F=t.json),"templateContext"in t&&n(1,I=t.templateContext),"origJson"in t&&n(2,M=t.origJson),"layoutParams"in t&&n(3,T=t.layoutParams)},t.$$.update=()=>{if(1073741824&t.$$.dirty[1]&&("fixed_length"===(null==(e=m)?void 0:e.type)?n(40,B=function(t,e,n){if("string"==typeof t.pattern&&Array.isArray(t.pattern_elements)&&t.pattern_elements.every((t=>t.key&&"string"==typeof t.key))){const r={pattern:t.pattern,alwaysVisible:Boolean(t.always_visible),decoding:t.pattern_elements.map((t=>({key:t.key,filter:t.regex&&"string"==typeof t.regex?t.regex:void 0,placeholder:t.placeholder&&"string"==typeof t.placeholder?t.placeholder:"_"})))};return n?(n.updateMaskData(r),n):new fl(r,e)}return n||null}(e,z.logError,B)):"currency"===(null==e?void 0:e.type)&&n(40,B=function(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new gl(t.locale,e)}(e,z.logError,B)),B&&St()),16&t.$$.dirty[0]|33554944&t.$$.dirty[1]&&(B||q===d||n(4,q=n(8,G=d))),67109376&t.$$.dirty[1]&&B&&B.rawValue!==h&&St(),2048&t.$$.dirty[2]&&n(18,r=D),1024&t.$$.dirty[1]|1024&t.$$.dirty[2]&&n(41,Z=k(V,1,Z)),2048&t.$$.dirty[1]|512&t.$$.dirty[2]&&n(42,tt=Xr(A,tt)),4096&t.$$.dirty[1]|384&t.$$.dirty[2]&&(n(43,rt=Zr(C,rt)),n(44,it=E&&"string"==typeof E?z.typefaceProvider(E,{fontWeight:rt||400}):"")),2048&t.$$.dirty[1]|64&t.$$.dirty[2]){const t=x;Pr(t)&&n(45,at=t/tt)}var e;32&t.$$.dirty[2]&&cr(w)&&n(46,st=Un(w)),65536&t.$$.dirty[1]|16&t.$$.dirty[2]&&n(47,dt=k(b,1,dt)),131072&t.$$.dirty[1]|8&t.$$.dirty[2]&&n(48,ft=k(_,1,ft)),262144&t.$$.dirty[1]|4&t.$$.dirty[2]&&n(49,gt=ii($,gt)),524288&t.$$.dirty[1]|2&t.$$.dirty[2]&&n(50,vt=oi(y,vt)),1073741824&t.$$.dirty[1]|1&t.$$.dirty[2]&&(v&&v in $t&&(n(9,bt=$t[v]),n(51,_t=v)),"currency"===(null==m?void 0:m.type)&&(n(9,bt=wt?"text":"tel"),n(10,xt="decimal"))),1048576&t.$$.dirty[1]&&n(5,i="multi_line_text"===_t),1&t.$$.dirty[0]&&(n(17,o=z.getDerivedFromVars(F.paddings)),S(),S=Xt(o,(t=>n(59,p=t)))),809519104&t.$$.dirty[1]&&(Pr(g)&&n(52,Et="calc(".concat(g*(at||1.25)*(tt/10)+"em"," + ").concat(Ln(hr(null==p?void 0:p.top,0)+hr(null==p?void 0:p.bottom,0)),")")),n(53,Ct=$r(p||void 0,Ct)),n(54,At=Ct?sr({top:(Number(Ct.top)||0)/tt*10,right:(Number(Ct.right)||0)/tt*10,bottom:(Number(Ct.bottom)||0)/tt*10,left:(Number(Ct.left)||0)/tt*10}):""),n(55,Vt=Ct?sr({top:(Number(Ct.top)||0)/tt*10,bottom:(Number(Ct.bottom)||0)/tt*10}):"")),1&t.$$.dirty[0]&&(n(16,a=z.getDerivedFromVars(F.accessibility)),j(),j=Xt(a,(t=>n(58,f=t)))),134217728&t.$$.dirty[1]&&((null==f?void 0:f.description)?n(11,Dt=f.description):z.logError(ct(new Error('Missing accessibility "description" for input'),{level:"warn"}))),32&t.$$.dirty[0]|917504&t.$$.dirty[1]&&n(15,l={"highlight-color":Boolean(ft),multiline:i,"alignment-horizontal":gt,"alignment-vertical":vt}),2356224&t.$$.dirty[1]&&n(14,s={"--divkit-input-hint-color":Z,"--divkit-input-highlight-color":ft,"--divkit-input-line-height":at,"font-weight":rt,"font-family":it,"letter-spacing":st,color:dt,"max-height":Et}),8390656&t.$$.dirty[1]&&n(13,c={"font-size":Un(tt),padding:At}),16779264&t.$$.dirty[1]&&n(12,u={"font-size":Un(tt),padding:Vt})},[F,I,M,T,q,i,O,L,G,bt,xt,Dt,u,c,s,l,a,o,r,P,W,H,K,X,Y,Q,et,nt,ot,lt,ut,ht,pt,mt,yt,kt,Pt,function(t){let e=(i?t.target.innerText:t.target.value)||"";"\n"===e&&(e=""),q!==e&&(n(4,q=n(8,G=e)),W.setValue(e),B&&async function(){if(!O||!B)return;B.applyChangeFrom(q,O instanceof HTMLInputElement?null===O.selectionEnd?void 0:O.selectionEnd:function(t){try{let n=0;const r=window.getSelection();if(!r)return 0;const i=r.getRangeAt(0);let o;if(i){if(!i.collapsed)return 0;n+=i.endOffset,o=i.endContainer}if(o instanceof HTMLElement){let t=0;for(let e=0,r=Math.min(n,o.childNodes.length);e<r;++e)t+=vl(o.childNodes[e]);n=t}for(;o&&o!==t;){var e;const t=o.parentNode;if(!t)return 0;const r=Array.from(t.childNodes).indexOf(o);for(let e=0;e<r;++e)n+=vl(t.childNodes[e]);o instanceof HTMLElement&&("DIV"===o.tagName&&(null===(e=t.childNodes[r-1])||void 0===e?void 0:e.nodeType)===ml||"BR"===o.tagName)&&++n,o=t}return n}catch(t){return 0}}(O)),H.set(B.rawValue),re(W,d=n(4,q=n(8,G=B.value)),d);const t=B.cursorPosition;await en(),document.activeElement===O&&jt(t)}())},function(){J=!1,setTimeout((()=>{J=!0}),250)},function(){if(!J)if(O instanceof HTMLInputElement)O.select();else{const t=window.getSelection(),e=document.createRange();e.selectNodeContents(O),t&&(t.removeAllRanges(),t.addRange(e))}},B,Z,tt,rt,it,at,st,dt,ft,gt,vt,_t,Et,Ct,At,Vt,d,h,f,p,g,m,v,y,$,_,b,w,x,E,C,A,V,D,function(t){Ke[t?"unshift":"push"]((()=>{O=t,n(6,O)}))},function(){G=this.innerText,n(8,G),n(40,B),n(4,q),n(56,d)},function(t){Ke[t?"unshift":"push"]((()=>{O=t,n(6,O)}))}]}const Al={select:"divkit-feef3","select__select-text":"divkit-cd862",select_hint:"divkit-a3cf6",select__select:"divkit-bdb72","select__select_has-custom-focused":"divkit-a46ad","has-custom-focused":"divkit-fc5dc",select__option:"divkit-e774b"};function Vl(t,e,n){const r=t.slice();return r[52]=e[n],r}function Dl(t){let e,n;return e=new Gr({props:{cls:or("select",Al,t[11]),style:t[10],customDescription:!0,customActions:"select",customPaddings:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[jl,t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return{49:e,50:n,51:r}},t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return[0,(e?262144:0)|(n?524288:0)|(r?1048576:0)]}]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=or("select",Al,t[11])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),9136&n[0]|18612224&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Pl(t){let e,n,r,i,o=(t[52].text||t[52].value)+"";return{c(){e=ye("option"),n=_e(o),this.h()},l(t){e=De(t,"OPTION",{class:!0});var r=Ce(e);n=je(r,o),r.forEach(me),this.h()},h(){ke(e,"class",r=Al.select__option),e.__value=i=t[52].value,e.value=e.__value},m(t,r){ge(t,e,r),pe(e,n)},p:Ot,d(t){t&&me(e)}}}function jl(t){let e,n,r,i,o,a,l,s,c,u,d=(t[4]||t[13]||"​")+"",h=t[16],f=[];for(let e=0;e<h.length;e+=1)f[e]=Pl(Vl(t,h,e));return{c(){e=ye("span"),n=_e(d),o=be(),a=ye("select");for(let t=0;t<f.length;t+=1)f[t].c();this.h()},l(t){e=De(t,"SPAN",{class:!0,style:!0,"aria-hidden":!0});var r=Ce(e);n=je(r,d),r.forEach(me),o=Se(t),a=De(t,"SELECT",{class:!0,"aria-label":!0,style:!0});var i=Ce(a);for(let t=0;t<f.length;t+=1)f[t].l(i);i.forEach(me),this.h()},h(){ke(e,"class",r=Al["select__select-text"]),ke(e,"style",i=Rn(t[9])),ke(e,"aria-hidden","true"),ke(a,"class",l=or("select__select",Al,{"has-custom-focus":t[49]})),ke(a,"aria-label",t[7]),ke(a,"style",s=Rn(t[8])),void 0===t[5]&&nn((()=>t[44].call(a)))},m(r,i){ge(r,e,i),pe(e,n),ge(r,o,i),ge(r,a,i);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(a,null);Ie(a,t[5],!0),c||(u=[xe(a,"change",t[44]),xe(a,"focus",(function(){Wt(t[50])&&t[50].apply(this,arguments)})),xe(a,"blur",(function(){Wt(t[51])&&t[51].apply(this,arguments)}))],c=!0)},p(r,o){if(t=r,8208&o[0]&&d!==(d=(t[4]||t[13]||"​")+"")&&Ne(n,d),512&o[0]&&i!==(i=Rn(t[9]))&&ke(e,"style",i),65536&o[0]){let e;for(h=t[16],e=0;e<h.length;e+=1){const n=Vl(t,h,e);f[e]?f[e].p(n,o):(f[e]=Pl(n),f[e].c(),f[e].m(a,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=h.length}262144&o[1]&&l!==(l=or("select__select",Al,{"has-custom-focus":t[49]}))&&ke(a,"class",l),128&o[0]&&ke(a,"aria-label",t[7]),256&o[0]&&s!==(s=Rn(t[8]))&&ke(a,"style",s),65568&o[0]&&Ie(a,t[5])},d(t){t&&me(e),t&&me(o),t&&me(a),ve(f,t),c=!1,Lt(u)}}}function Sl(t){let e,n,r=!t[6]&&Dl(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){t[6]?r&&(hn(),gn(r,1,1,(()=>{r=null})),fn()):r?(r.p(t,n),64&n[0]&&pn(r,1)):(r=Dl(t),r.c(),pn(r,1),r.m(e.parentNode,e))},i(t){n||(pn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function Nl(t,e,n){let r,i,o,a,l,s,c,u,d,h,f,p,g,m,v,y,$,_,b=Ot,w=Ot;t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>w()));let{json:x={}}=e,{templateContext:E}=e,{origJson:C}=e,{layoutParams:A}=e;const V=He(On),D=x.value_variable;let P=!1;D||(P=!0,V.logError(ct(new Error('Missing "value_variable" in "select"'))));let j=D&&V.getVariable(D,"string")||Nn("temp","string","");Yt(t,j,(t=>n(5,_=t)));let S="";const N=x.options,F=Array.isArray(N)&&N.filter((t=>"string"==typeof t.value))||[];Array.isArray(F)&&F.length||V.logError(ct(new Error('Empty selection "items" in "select"')));let I="",M=null,T="";const z=V.getDerivedFromVars(x.hint_text);Yt(t,z,(t=>n(42,y=t)));const O=V.getDerivedFromVars(x.hint_color);Yt(t,O,(t=>n(41,v=t)));let J="rgba(0,0,0,.45)";const B=V.getDerivedFromVars(x.font_size);Yt(t,B,(t=>n(40,m=t)));let R=12;const U=V.getDerivedFromVars(x.font_weight);Yt(t,U,(t=>n(39,g=t)));const L=V.getDerivedFromVars(x.font_family);let W;Yt(t,L,(t=>n(38,p=t)));let H="";const q=V.getDerivedFromVars(x.line_height);let G;Yt(t,q,(t=>n(37,f=t)));const K=V.getDerivedFromVars(x.letter_spacing);Yt(t,K,(t=>n(36,h=t)));let X="";const Y=V.getDerivedFromVars(x.text_color);Yt(t,Y,(t=>n(35,d=t)));let Z="#000",Q="";return t.$$set=t=>{"json"in t&&n(0,x=t.json),"templateContext"in t&&n(1,E=t.templateContext),"origJson"in t&&n(2,C=t.origJson),"layoutParams"in t&&n(3,A=t.layoutParams)},t.$$.update=()=>{if(32&t.$$.dirty[0]&&(S=_),32&t.$$.dirty[0]){const t=F.find((t=>t.value===_));t?n(4,I="string"==typeof t.text?t.text:t.value):(n(4,I=""),_&&V.logError(ct(new Error('Value from the variable was not found in the selection items for "select"'))))}if(1&t.$$.dirty[0]&&(n(14,r=V.getDerivedFromVars(x.paddings)),w(),w=Xt(r,(t=>n(43,$=t)))),268435456&t.$$.dirty[0]|512&t.$$.dirty[1]&&n(28,R=Xr(m,R)),301989888&t.$$.dirty[0]|4096&t.$$.dirty[1]&&(n(25,M=$r($||void 0,M)),n(26,T=M?sr({top:(Number(M.top)||0)/R*10,right:(Number(M.right)||0)/R*10,bottom:(Number(M.bottom)||0)/R*10,left:(Number(M.left)||0)/R*10}):"")),2048&t.$$.dirty[1]&&n(13,i=y),134217728&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(27,J=k(v,1,J)),536870912&t.$$.dirty[0]|384&t.$$.dirty[1]&&(n(29,W=Zr(g,W)),n(30,H=p&&"string"==typeof p?V.typefaceProvider(p,{fontWeight:W||400}):"")),268435456&t.$$.dirty[0]|64&t.$$.dirty[1]){const t=f;Pr(t)&&n(31,G=t/R)}268435456&t.$$.dirty[0]|32&t.$$.dirty[1]&&cr(h)&&n(32,X=Un(h/R*10)),20&t.$$.dirty[1]&&n(33,Z=k(d,1,Z)),1&t.$$.dirty[0]&&(n(12,o=V.getDerivedFromVars(x.accessibility)),b(),b=Xt(o,(t=>n(34,u=t)))),8&t.$$.dirty[1]&&((null==u?void 0:u.description)?n(7,Q=u.description):V.logError(ct(new Error('Missing accessibility "description" for select'),{level:"warn"}))),16&t.$$.dirty[0]&&n(11,a={hint:!I}),1744830464&t.$$.dirty[0]|4&t.$$.dirty[1]&&n(10,l={"--divkit-input-hint-color":J,"font-weight":W,"font-family":H,color:Z}),335544320&t.$$.dirty[0]|3&t.$$.dirty[1]&&n(9,s={padding:T,"font-size":Un(R),"line-height":G,"letter-spacing":X}),268435456&t.$$.dirty[0]|3&t.$$.dirty[1]&&n(8,c={"font-size":Un(R),"line-height":G,"letter-spacing":X})},[x,E,C,A,I,_,P,Q,c,s,l,a,o,i,r,j,F,z,O,B,U,L,q,K,Y,M,T,J,R,W,H,G,X,Z,u,d,h,f,p,g,m,v,y,$,function(){_=function(t){const e=t.querySelector(":checked");return e&&e.__value}(this),j.set(_),n(16,F)}]}const Fl={video__video:"divkit-c11f9"};function Il(t,e,n){const r=t.slice();return r[32]=e[n],r}function Ml(t){let e,n;return e=new Gr({props:{cls:Fl.video,customActions:"video",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[zl]},$$scope:{ctx:t}}}),{c(){wn(e.$$.fragment)},l(t){xn(e.$$.fragment,t)},m(t,r){kn(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1520&n[0]|16&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(pn(e.$$.fragment,t),n=!0)},o(t){gn(e.$$.fragment,t),n=!1},d(t){En(e,t)}}}function Tl(t){let e,n,r,i,o;return{c(){e=ye("source"),this.h()},l(t){e=De(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){qt(e.src,n=t[32].src)||ke(e,"src",n),ke(e,"type",r=t[32].type)},m(n,r){ge(n,e,r),i||(o=xe(e,"error",t[21]),i=!0)},p(t,i){16&i[0]&&!qt(e.src,n=t[32].src)&&ke(e,"src",n),16&i[0]&&r!==(r=t[32].type)&&ke(e,"type",r)},d(t){t&&me(e),i=!1,o()}}}function zl(t){let e,n,r,i,o=t[4],a=[];for(let e=0;e<o.length;e+=1)a[e]=Tl(Il(t,o,e));return{c(){e=ye("video");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){e=De(t,"VIDEO",{class:!0,poster:!0});var n=Ce(e);for(let t=0;t<a.length;t+=1)a[t].l(n);n.forEach(me),this.h()},h(){ke(e,"class",n=Fl.video__video),e.playsInline=!0,e.loop=t[5],e.autoplay=t[6],e.muted=t[7],ke(e,"poster",t[8])},m(n,o){ge(n,e,o);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(e,null);t[27](e),r||(i=[xe(e,"timeupdate",t[16]),xe(e,"ended",t[17]),xe(e,"playing",t[18]),xe(e,"pause",t[19]),xe(e,"waiting",t[20]),xe(e,"error",t[21])],r=!0)},p(t,n){if(2097168&n[0]){let r;for(o=t[4],r=0;r<o.length;r+=1){const i=Il(t,o,r);a[r]?a[r].p(i,n):(a[r]=Tl(i),a[r].c(),a[r].m(e,null))}for(;r<a.length;r+=1)a[r].d(1);a.length=o.length}32&n[0]&&(e.loop=t[5]),64&n[0]&&(e.autoplay=t[6]),128&n[0]&&(e.muted=t[7]),256&n[0]&&ke(e,"poster",t[8])},d(n){n&&me(e),ve(a,n),t[27](null),r=!1,Lt(i)}}}function Ol(t){let e,n,r=!t[9]&&Ml(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){t[9]?r&&(hn(),gn(r,1,1,(()=>{r=null})),fn()):r?(r.p(t,n),512&n[0]&&pn(r,1)):(r=Ml(t),r.c(),pn(r,1),r.m(e.parentNode,e))},i(t){n||(pn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function Jl(t,e,n){let r,i,o,a,l,{json:s={}}=e,{templateContext:c}=e,{origJson:u}=e,{layoutParams:d}=e;const h=He(On);let f,p=!1,g=!1;const m=h.getDerivedFromVars(s.video_sources);Yt(t,m,(t=>n(26,l=t)));let v=[];const y=h.getDerivedFromVars(s.repeatable);Yt(t,y,(t=>n(25,a=t)));let $=!1;const _=h.getDerivedFromVars(s.autostart);Yt(t,_,(t=>n(24,o=t)));let b=!1;const w=h.getDerivedFromVars(s.muted);Yt(t,w,(t=>n(23,i=t)));let x=!1;const k=h.getDerivedFromVars(s.preview);let E;Yt(t,k,(t=>n(22,r=t)));const C=s.elapsed_time_variable;let A=C&&h.getVariable(C,"integer")||Nn("temp","integer",0);return A.subscribe((t=>{g?g=!1:f&&n(10,f.currentTime=Number(t)/1e3,f)})),!s.id||p||(null==d?void 0:d.fakeElement)||h.registerInstance(s.id,{pause(){null==f||f.pause()},start(){const t=null==f?void 0:f.play();t&&t.catch((t=>{h.logError(ct(new Error("Video playing error"),{level:"error",additional:{originalText:String(t)}}))}))}}),Le((()=>{!s.id||p||(null==d?void 0:d.fakeElement)||h.unregisterInstance(s.id)})),t.$$set=t=>{"json"in t&&n(0,s=t.json),"templateContext"in t&&n(1,c=t.templateContext),"origJson"in t&&n(2,u=t.origJson),"layoutParams"in t&&n(3,d=t.layoutParams)},t.$$.update=()=>{var e,s;67108880&t.$$.dirty[0]&&(n(4,(e=l,s=v,v=Array.isArray(e)&&e.length?e.filter((t=>"video_source"===(null==t?void 0:t.type)&&"string"==typeof t.url&&"string"==typeof t.mime_type)).map((t=>{const e={src:t.url};return t.mime_type&&(e.type=t.mime_type),e})):s)),v.length?n(9,p=!1):(n(9,p=!0),h.logError(ct(new Error('Missing "video_sources" in "video"'))))),33554464&t.$$.dirty[0]&&n(5,$=ai(a,$)),16777280&t.$$.dirty[0]&&n(6,b=ai(o,b)),8388736&t.$$.dirty[0]&&n(7,x=ai(i,x)),4194560&t.$$.dirty[0]&&n(8,E="string"==typeof r?Yi(r):E)},[s,c,u,d,v,$,b,x,E,p,f,m,y,_,w,k,function(){f&&(g=!0,A.setValue(Math.floor(1e3*f.currentTime)))},function(){const t=h.getJsonWithVars(s.end_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(s.resume_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(s.pause_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(s.buffering_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(s.fatal_actions);h.execAnyActions(t)},r,i,o,a,l,function(t){Ke[t?"unshift":"push"]((()=>{f=t,n(10,f)}))}]}const Bl={};function Rl(t){let e,n,r;var i=t[5];function o(t){return{props:{json:t[3],templateContext:t[4],layoutParams:t[2],origJson:t[1]||t[0]}}}return i&&(e=Me(i,o(t))),{c(){e&&wn(e.$$.fragment),n=we()},l(t){e&&xn(e.$$.fragment,t),n=we()},m(t,i){e&&kn(e,t,i),ge(t,n,i),r=!0},p(t,r){const a={};if(8&r&&(a.json=t[3]),16&r&&(a.templateContext=t[4]),4&r&&(a.layoutParams=t[2]),3&r&&(a.origJson=t[1]||t[0]),32&r&&i!==(i=t[5])){if(e){hn();const t=e;gn(t.$$.fragment,1,0,(()=>{En(t,1)})),fn()}i?(e=Me(i,o(t)),wn(e.$$.fragment),pn(e.$$.fragment,1),kn(e,n.parentNode,n)):e=null}else i&&e.$set(a)},i(t){r||(e&&pn(e.$$.fragment,t),r=!0)},o(t){e&&gn(e.$$.fragment,t),r=!1},d(t){t&&me(n),e&&En(e,t)}}}function Ul(t){let e,n,r=t[5]&&Rl(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r?(r.p(t,i),32&i&&pn(r,1)):(r=Rl(t),r.c(),pn(r,1),r.m(e.parentNode,e)):r&&(hn(),gn(r,1,1,(()=>{r=null})),fn())},i(t){n||(pn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}function Ll(t,e,n){let{div:r}=e,{templateContext:i}=e,{origJson:o}=e,{layoutParams:a}=e;const l=He(On);let s,c,u;return t.$$set=t=>{"div"in t&&n(0,r=t.div),"templateContext"in t&&n(6,i=t.templateContext),"origJson"in t&&n(1,o=t.origJson),"layoutParams"in t&&n(2,a=t.layoutParams)},t.$$.update=()=>{if(121&t.$$.dirty&&(n(3,s=r),n(4,c=i),n(5,u=s&&Bl[s.type]||void 0),!u&&(n(4,({templateContext:c,json:s}=l.processTemplate(s,c)),c,(n(3,s),n(0,r),n(6,i),n(5,u),n(4,c))),n(5,u=s&&Bl[s.type]||void 0),!u))){let t;t=(null==s?void 0:s.type)&&l.hasTemplate(s.type)?"Recursive template":"Unknown component",l.logError(ct(new Error(t),{additional:{component:(null==s?void 0:s.type)||"<missing>"}}))}},[r,o,a,s,c,u,i]}Bl.text=class extends An{constructor(t){super(),Cn(this,t,$i,yi,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Bl.container=class extends An{constructor(t){super(),Cn(this,t,Ui,Ri,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Bl.separator=class extends An{constructor(t){super(),Cn(this,t,Ki,Gi,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3})}},Bl.image=lo,Bl.gif=lo,Bl.grid=class extends An{constructor(t){super(),Cn(this,t,$o,yo,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Bl.gallery=class extends An{constructor(t){super(),Cn(this,t,Io,Fo,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},Bl.tabs=class extends An{constructor(t){super(),Cn(this,t,Zo,Yo,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1,-1])}},Bl.state=class extends An{constructor(t){super(),Cn(this,t,Pa,Va,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3})}},Bl.pager=class extends An{constructor(t){super(),Cn(this,t,Oa,za,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Bl.indicator=class extends An{constructor(t){super(),Cn(this,t,Ha,Wa,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Bl.slider=class extends An{constructor(t){super(),Cn(this,t,al,il,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},Bl.input=class extends An{constructor(t){super(),Cn(this,t,Cl,kl,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},Bl.select=class extends An{constructor(t){super(),Cn(this,t,Nl,Sl,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Bl.video=class extends An{constructor(t){super(),Cn(this,t,Jl,Ol,Gt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}};const Wl=class extends An{constructor(t){super(),Cn(this,t,Ll,Ul,Gt,{div:0,templateContext:6,origJson:1,layoutParams:2})}},Hl={"root-svg-filters":"divkit-dc22b"};function ql(t,e,n){const r=t.slice();r[1]=e[n];const i=r[1].split(":");return r[2]=i[0],r[3]=i[1],r}function Gl(t){let e,n,r,i=[...Object.keys(t[0])],o=[];for(let e=0;e<i.length;e+=1)o[e]=Zl(ql(t,i,e));return{c(){e=$e("svg"),n=$e("defs");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=Pe(t,"svg",{class:!0,"aria-hidden":!0});var r=Ce(e);n=Pe(r,"defs",{});var i=Ce(n);for(let t=0;t<o.length;t+=1)o[t].l(i);i.forEach(me),r.forEach(me),this.h()},h(){ke(e,"class",r=Hl["root-svg-filters"]),ke(e,"aria-hidden","true")},m(t,r){ge(t,e,r),pe(e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(n,null)},p(t,e){if(1&e){let r;for(i=[...Object.keys(t[0])],r=0;r<i.length;r+=1){const a=ql(t,i,r);o[r]?o[r].p(a,e):(o[r]=Zl(a),o[r].c(),o[r].m(n,null))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}},d(t){t&&me(e),ve(o,t)}}}function Kl(t){let e,n;return{c(){e=$e("feBlend"),this.h()},l(t){e=Pe(t,"feBlend",{in2:!0,mode:!0}),Ce(e).forEach(me),this.h()},h(){ke(e,"in2","SourceGraphic"),ke(e,"mode",n=t[3])},m(t,n){ge(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&ke(e,"mode",n)},d(t){t&&me(e)}}}function Xl(t){let e;return{c(){e=$e("feComposite"),this.h()},l(t){e=Pe(t,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),Ce(e).forEach(me),this.h()},h(){ke(e,"in2","SourceGraphic"),ke(e,"operator","arithmetic"),ke(e,"k1","1"),ke(e,"k2","0"),ke(e,"k3","0"),ke(e,"k4","0")},m(t,n){ge(t,e,n)},p:Ot,d(t){t&&me(e)}}}function Yl(t){let e,n;return{c(){e=$e("feComposite"),this.h()},l(t){e=Pe(t,"feComposite",{in2:!0,operator:!0}),Ce(e).forEach(me),this.h()},h(){ke(e,"in2","SourceGraphic"),ke(e,"operator",n=t[3].split("_")[1])},m(t,n){ge(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&ke(e,"operator",n)},d(t){t&&me(e)}}}function Zl(t){let e,n,r,i;function o(t,e){return"source_in"===t[3]||"source_atop"===t[3]?Yl:"multiply"===t[3]?Xl:Kl}let a=o(t),l=a(t);return{c(){e=$e("filter"),n=$e("feFlood"),l.c(),this.h()},l(t){e=Pe(t,"filter",{id:!0});var r=Ce(e);n=Pe(r,"feFlood",{"flood-color":!0}),Ce(n).forEach(me),l.l(r),r.forEach(me),this.h()},h(){ke(n,"flood-color",r=t[2]),ke(e,"id",i=t[0][t[1]])},m(t,r){ge(t,e,r),pe(e,n),l.m(e,null)},p(t,s){1&s&&r!==(r=t[2])&&ke(n,"flood-color",r),a===(a=o(t))&&l?l.p(t,s):(l.d(1),l=a(t),l&&(l.c(),l.m(e,null))),1&s&&i!==(i=t[0][t[1]])&&ke(e,"id",i)},d(t){t&&me(e),l.d()}}}function Ql(t){let e,n=Object.keys(t[0]).length,r=n&&Gl(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,n){r&&r.m(t,n),ge(t,e,n)},p(t,i){let[o]=i;1&o&&(n=Object.keys(t[0]).length),n?r?r.p(t,o):(r=Gl(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},i:Ot,o:Ot,d(t){r&&r.d(t),t&&me(e)}}}function ts(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const es=class extends An{constructor(t){super(),Cn(this,t,ts,Ql,Gt,{svgFiltersMap:0})}};function ns(t,e,n,r){const i=n[t.type];if(!i)return r(ct(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let o;const a={};for(o in e)e.hasOwnProperty(o)&&(a[o]=e[o]);for(o in t)"type"!==o&&"__proto__"!==o&&t.hasOwnProperty(o)&&(a[o]=t[o]);const l=function t(e,n){const r=Object.keys(n).filter((t=>"__proto__"!==t)),i=r.filter((t=>"$"!==t.charAt(0))),o=r.filter((t=>"$"===t.charAt(0)));return i.forEach((r=>{const i=n[r];"object"==typeof i&&null!==i?(e[r]=Array.isArray(i)?[]:{},t(e[r],i)):e[r]=i})),o.forEach((t=>{const r=n[t],i=a[r];if(void 0!==i){const n=t.substring(1);e[n]=i}})),e}({},i);for(o in t)"type"!==o&&"__proto__"!==o&&t.hasOwnProperty(o)&&(l[o]=t[o]);return{json:l,templateContext:a}}function rs(){}function is(t){return{subscribe:e=>(e(t),rs)}}class os{constructor(t){this.ast=t}apply(t,e){if(!function(t,e){let n=!1;return w(t,{Variable(t){e.has(t.id.name)||(n=!0)}}),n}(this.ast,t))try{const n=Tn(t,this.ast);n.warnings.forEach(e);const r=n.result;if("error"===r.type)return void e(ct(new Error("Expression execution error"),{additional:{message:r.value}}));const i=r.value;if(i instanceof Date)return A(i);if("boolean"===r.type)return Boolean(i);if("color"===r.type){const t=E(String(i));if(t)return M(t);e(ct(new Error("Expression execution error")))}return"integer"===r.type?i>2147483647||i<-2147483648?void e(ct(new Error("Expression result is out of 32-bit int range"))):Number(i):i}catch(t){return void e(ct(new Error("Expression execution error")))}}}function as(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=v(t,{startRule:"JsonStringContents"}),r=N(n);return e.vars.push(...r),new os(n)}catch(e){return void n(ct(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>as(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=as(t[i],e,n);return r}}var r;return t}function ls(t,e,n){if(t){if(t instanceof os)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>ls(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=ls(t[i],e,n);return r}}return t}function ss(t,e){const n={vars:[],hasExpression:!1},r=as(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:t=>ls(r,t,e)}}const cs={pagers:function(){return Dn(new Map)}},us=new Map,ds=new Map;function hs(t){const e=us.get(t)||Dn("");return us.has(t)||us.set(t,e),e}function fs(t){const e=ds.get(t)||new Map;return ds.has(t)||ds.set(t,e),e}class ps{setVariable(t){const e=t.getName(),n=fs(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),hs(this).set(e)}getVariable(t){return fs(this).get(t)}}function gs(){return new ps}function ms(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const vs=new Set(["start","stop","pause","resume","cancel","reset"]);class ys{constructor(t){ms(this,"timers",new Map),ms(this,"awaitActions",[]),this.logError=t.logError,this.applyVars=t.applyVars,this.hasVariableWithType=t.hasVariableWithType,this.setVariableValue=t.setVariableValue,this.execAnyActions=t.execAnyActions,this.visibilityHandler=()=>{"visible"===document.visibilityState?(this.awaitActions.forEach((t=>{let{id:e,action:n}=t;this.execTimerAction(e,n)})),this.awaitActions=[],this.unholdAll()):this.holdAll()},document.addEventListener("visibilitychange",this.visibilityHandler)}destroy(){document.removeEventListener("visibilitychange",this.visibilityHandler);for(const[t,e]of this.timers)this.stopTimerTimeouts(e)}createTimer(t){null!=t&&t.id?t.duration||t.tick_interval&&(t.value_variable||t.tick_actions)?this.timers.set(t.id,{state:"stopped",definition:t}):this.logError(ct(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(ct(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&vs.has(e)))return void this.logError(ct(new Error("Incorrect timer action"),{additional:{id:t,action:e}}));const n=e;if("visible"!==document.visibilityState)return void this.awaitActions.push({id:t,action:n});const r=this.timers.get(t);this[n](r)}stopTimerTimeouts(t){t.durationTimeout&&(clearTimeout(t.durationTimeout),t.durationTimeout=void 0),t.tickTimeout&&(clearTimeout(t.tickTimeout),t.tickTimeout=void 0)}tickOrUnholdAction(t){const e=performance.now(),n=(t.durationPassed||0)+e-(t.durationStarted||0);t.duration&&n>t.duration||(this.updateVariable(t,n),this.callActions(t,"tick"),void 0!==t.tickCount&&++t.tickCount)}startOrResume(t){t.state="running",t.hold=!1,t.durationStarted=performance.now();const e=t.duration;e&&(t.durationTimeout=window.setTimeout((()=>{this.updateVariable(t,e),t.tickCountPredict&&void 0!==t.tickCount&&t.tickCount<t.tickCountPredict&&this.callActions(t,"tick"),this.stop(t)}),Math.max(0,e-(t.durationPassed||0))));const n=t.tick;if(n){const e=()=>{const r=t.tickStarted=performance.now(),i=Math.max(0,n-(t.tickPassed||0));t.tickTimeout=window.setTimeout((()=>{this.tickOrUnholdAction(t),t.tickPassed=(performance.now()-r-i)%n,e()}),i)};e()}}start(t){if("running"===t.state)return void this.logError(ct(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(ct(new Error("The timer is paused")));const e=t.definition.value_variable;!e||this.hasVariableWithType(e,"integer")?(e&&this.setVariableValue(e,0),t.definition.duration&&(t.duration=this.applyVars(t.definition.duration)),t.definition.tick_interval&&(t.tick=this.applyVars(t.definition.tick_interval)),void 0!==t.duration&&t.duration<0||void 0!==t.tick&&t.tick<=0?this.logError(ct(new Error("Incorrect timer properties"),{additional:{id:t.definition.id}})):(void 0!==t.duration&&void 0!==t.tick&&(t.tickCount=0,t.tickCountPredict=Math.floor(t.duration/t.tick)),this.startOrResume(t))):this.logError(ct(new Error("Cannot find variable"),{additional:{name:e}}))}stop(t){"stopped"!==t.state?(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t),this.callActions(t,"end")):this.logError(ct(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(ct(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(ct(new Error("The timer has already been paused")));t.state="paused",this.stopTimerTimeouts(t);const e=performance.now();t.durationStarted&&(t.durationPassed=(t.durationPassed||0)+e-t.durationStarted),t.tickStarted&&(t.tickPassed=(t.tickPassed||0)+e-t.tickStarted);const n=t.definition.value_variable;n&&t.durationPassed&&this.setVariableValue(n,Math.round(t.durationPassed))}resume(t){"stopped"!==t.state?"running"!==t.state?this.startOrResume(t):this.logError(ct(new Error("The timer is already running"))):this.logError(ct(new Error("The timer has already been stopped")))}cancel(t){"stopped"!==t.state&&(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t))}reset(t){this.cancel(t),this.start(t)}updateVariable(t,e){const n=t.definition.value_variable;n&&this.setVariableValue(n,Math.round(e))}callActions(t,e){const n=t.definition["end"===e?"end_actions":"tick_actions"];if(n){const t=this.applyVars(n);this.execAnyActions(t,!1)}}holdAll(){for(const[t,e]of this.timers)"running"===e.state&&(e.hold=!0,this.stopTimerTimeouts(e))}unholdAll(){for(const[t,e]of this.timers)if("running"===e.state&&e.hold){const t=performance.now();e.durationStarted&&(e.durationPassed=(e.durationPassed||0)+t-e.durationStarted),e.tickStarted&&(e.tickPassed=(e.tickPassed||0)+t-e.tickStarted),e.tick&&this.tickOrUnholdAction(e),this.startOrResume(e)}}}function $s(t){let e,n,r,i,o,a,l,s;return n=new es({props:{svgFiltersMap:t[2]}}),i=new Wl({props:{div:t[3],templateContext:t[6]}}),{c(){e=ye("div"),wn(n.$$.fragment),r=be(),wn(i.$$.fragment),this.h()},l(t){e=De(t,"DIV",{class:!0});var o=Ce(e);xn(n.$$.fragment,o),r=Se(o),xn(i.$$.fragment,o),o.forEach(me),this.h()},h(){ke(e,"class",o=""+(zn.root+(t[4]?" ".concat(zn.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):"")))},m(t,o){ge(t,e,o),kn(n,e,null),pe(e,r),kn(i,e,null),a=!0,l||(s=xe(e,"touchstart",Es,{passive:!0}),l=!0)},p(t,r){const l={};4&r[0]&&(l.svgFiltersMap=t[2]),n.$set(l);const s={};8&r[0]&&(s.div=t[3]),i.$set(s),(!a||17&r[0]&&o!==(o=""+(zn.root+(t[4]?" ".concat(zn.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))))&&ke(e,"class",o)},i(t){a||(pn(n.$$.fragment,t),pn(i.$$.fragment,t),a=!0)},o(t){gn(n.$$.fragment,t),gn(i.$$.fragment,t),a=!1},d(t){t&&me(e),En(n),En(i),l=!1,s()}}}function _s(t){let e,n,r=!t[1]&&t[3]&&$s(t);return{c(){r&&r.c(),e=we()},l(t){r&&r.l(t),e=we()},m(t,i){r&&r.m(t,i),ge(t,e,i),n=!0},p(t,n){!t[1]&&t[3]?r?(r.p(t,n),10&n[0]&&pn(r,1)):(r=$s(t),r.c(),pn(r,1),r.m(e.parentNode,e)):r&&(hn(),gn(r,1,1,(()=>{r=null})),fn())},i(t){n||(pn(r),n=!0)},o(t){gn(r),n=!1},d(t){r&&r.d(t),t&&me(e)}}}let bs=Dn(!0),ws=0;function xs(){bs.set(!1)}function ks(){bs.set(!0)}function Es(){}function Cs(t,e,n){let r;var i,o,a,l;let{id:s}=e,{json:c={}}=e,{platform:u="auto"}=e,{theme:d="system"}=e,{globalVariablesController:h=new ps}=e,{mix:f=""}=e,{customization:p={}}=e,{builtinProtocols:g=["http","https","tel","mailto","intent"]}=e,{extensions:m=new Map}=e,{onError:y}=e,{onStat:$}=e,{onCustomAction:_}=e,{onComponent:b}=e,{typefaceProvider:w=(t=>"")}=e,{fetchInit:x={}}=e,k=Dn("desktop"===u);if(Yt(t,k,(t=>n(4,r=t))),"auto"===u&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");k.set(!t.matches),t.addListener((()=>{k.set(!t.matches)}))}let E="light",C=null;function A(){"system"===d&&C&&n(24,E=C.matches?"dark":"light")}const V=new Set(g);let D=!1;c||(D=!0,B(ct(new Error('"json" prop is required')))),s||(D=!0,B(ct(new Error('"id" prop is required'))));let P=function(t){if(!t)return ct(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return ct(new Error("Missing card"));if(!e.states||!e.states.length)return ct(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in Bl)return ct(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return ct(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return ct(new Error("Missing state_id"),{additional:{index:t}})}return null}(c);const j=c.templates||{};P&&(D=!0,B(P));const S={stateChange:!1},F=hs(h),I=fs(h),M=new Map,T=new Map,z=new Map;let O=null;function J(t){const e=ss(t,B);return e.hasExpression?e.applyVars(T):t}function B(t){y?y({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function R(t,e){$&&$({type:t,action:e})}let U=0;function L(t){return"".concat(s,"-").concat(U++)}let W={},H={};function q(t){const e=t.url?String(t.url):"";if(e)try{const n=e.replace(/div-action:\/\//,""),r=/([^?]+)\?(.+)/.exec(n);if(!r)return;const i=new URLSearchParams(r[2]);switch(r[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=et,n=t.split("/");if(n=["root",...n],n.length<2||n.length%2!=0)throw new Error("Incorrect state id format");for(let t=0;t<n.length;t+=2){const r=n[t],i=n[t+1];let o=e.getChild(r);if(!o)return;o.setState(i),e=o}}(i.get("state_id"));break;case"set_current_item":!function(t,e){if(!t||!e)throw new Error('Missing data for "set-current-item" action');if(isNaN(Number(e)))throw new Error('Incorrect item for "set-current-item" action');const n=Z(t);n&&n.setCurrentItem(Number(e))}(i.get("id"),i.get("item"));break;case"set_previous_item":!function(t,e){if(!t)throw new Error('Missing id for "set-previous-item" action');if(e&&"clamp"!==e&&"ring"!==e)throw new Error('Incorrect overflow value for "set-previous-item" action');e=e||"clamp";const n=Z(t);n&&n.setPreviousItem(e)}(i.get("id"),i.get("overflow"));break;case"set_next_item":!function(t,e){if(!t)throw new Error('Missing id for "set-next-item" action');if(e&&"clamp"!==e&&"ring"!==e)throw new Error('Incorrect overflow value for "set-next-item" action');e=e||"clamp";const n=Z(t);n&&n.setNextItem(e)}(i.get("id"),i.get("overflow"));break;case"set_variable":const r=i.get("name"),o=i.get("value");if(r&&null!==o){const t=T.get(r);t?"dict"===t.getType()?B(ct(new Error("Setting dict variables is not supported"),{additional:{name:r}})):t.set(o):B(ct(new Error("Cannot find variable"),{additional:{name:r}}))}else B(ct(new Error("Incorrect set_variable_action"),{additional:{url:n}}));break;case"timer":const a=i.get("action"),l=i.get("id");O?O.execTimerAction(l,a):B(ct(new Error("Incorrect timer action"),{additional:{id:l,action:a}}));break;case"video":!function(t,e){if(t){const n=Z(t);n?"start"===e?n.start():"pause"===e?n.pause():B(ct(new Error("Unknown video action"),{additional:{id:t,action:e}})):B(ct(new Error("Video component is not found"),{additional:{id:t,action:e}}))}else B(ct(new Error("Missing id in video action"),{additional:{action:e}}))}(i.get("id"),i.get("action"));break;case"download":!function(t,e){if(t){let n;n="function"==typeof x?x(t):x,fetch(t,n).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})).then((n=>{var r,i,o;if(n){if(n.templates)for(const t in n.templates)j.hasOwnProperty(t)||(j[t]=n.templates[t]);if(Array.isArray(null===(r=n.patch)||void 0===r?void 0:r.changes)){if("transactional"===n.patch.mode){const r=n.patch.changes.find((t=>!Y.has(t.id)));if(r)return B(ct(new Error("Skipping transactional, child is not found"),{additional:{url:t,id:r.id}})),void G(null===(i=e.download_callbacks)||void 0===i?void 0:i.on_fail_actions)}n.patch.changes.forEach((t=>{const e=Y.get(t.id);e&&e.replaceWith(t.id,t.items)})),G(null===(o=e.download_callbacks)||void 0===o?void 0:o.on_success_actions)}}else B(ct(new Error("Incorrect patch"),{additional:{url:t}}))})).catch((n=>{var r;B(ct(new Error("Failed to download the patch"),{additional:{url:t,originalError:n}})),G(null===(r=e.download_callbacks)||void 0===r?void 0:r.on_fail_actions)}))}else B(ct(new Error("Missing url in download action"),{additional:{url:t}}))}(i.get("url"),t);break;default:B(ct(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){B(ct(t,{additional:{url:e}}))}}async function G(t,e){if(t&&Array.isArray(t)){for(let n=0;n<t.length;++n){let r=t[n];const i=r.url;if(i){const t=Zn(i);if(t)if(Qn(t,V)){if(e)if("_blank"===r.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=i)}else location.href=i}else"div-action"===t?(q(r),await en()):r.log_id&&(K(r),await en())}}t.forEach((t=>{t.log_id&&R("click",t)}))}}function K(t){null==_||_(t)}const X=new Map,Y=new Map;function Z(t){if(X.has(t))return X.get(t);B(ct(new Error("Missing instance with id"),{additional:{id:t}}))}const Q=new Map;function tt(t){for(const e of t)T.has(e)&&t.delete(e);return t}We(On,{logError:B,logStat:R,hasTemplate:function(t){return t in j},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in j;){if(({json:t,templateContext:e}=ns(t,e,j,B)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:L,genClass:function(t){return"divkit-".concat(L())},execAction:q,execAnyActions:G,execCustomAction:K,isRunning:function(t){return S[t]},setRunning:function(t,e){S[t]=e},registerInstance:function(t,e){X.has(t)?B(ct(new Error("Duplicate instance id"),{additional:{id:t}})):X.set(t,e)},unregisterInstance:function(t){X.delete(t)},registerParentOf:function(t,e){Y.set(t,e)},unregisterParentOf:function(t){Y.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(H[r]=H[r]||0,++H[r],W[r])return W[r];const i="".concat(L(),"-svg-filter");return n(2,W=Object.assign(Object.assign({},W),{[r]:i})),i},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);H[r]&&0==--H[r]&&n(2,W=Object.keys(W).reduce(((t,e)=>(H[e]&&(t[e]=W[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return is(t);const e=ss(t,B);return e.vars.length?Pn(e.vars.map((t=>T.get(t)||function(t){const e=z.get(t)||Dn(void 0);return z.has(t)||z.set(t,e),e}(t))).filter(Hn),(()=>e.applyVars(T))):e.hasExpression?is(e.applyVars(T)):is(t)},getJsonWithVars:J,getStore:function(t){return Q.has(t)||function(t){Q.has(t)||Q.set(t,cs[t]())}(t),Q.get(t)},getVariable:function(t,e){const n=T.get(t);if(n){const r=n.getType();if(r!==e)return void B(ct(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},getCustomization:function(t){return null==p?void 0:p[t]},getBuiltinProtocols:function(){return V},getExtension:function(t,e){const n=m.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:T,logError:B}},typefaceProvider:w,isDesktop:k,isPointerFocus:bs,registerComponent:function(t){let{node:e,json:n,origJson:r,templateContext:i}=t;b&&b({type:"mount",node:e,json:n,origJson:r,templateContext:i})},unregisterComponent:function(t){let{node:e}=t;b&&b({type:"destroy",node:e})}}),We(wr,{hasAction:()=>!1});const et={setState(t){throw new Error("Not implemented")},getChild(t){if(nt&&nt.has(t))return nt.get(t);B(ct(new Error("Missing state block with id"),{additional:{id:t}}))}};let nt=null;We(lr,{registerInstance(t,e){nt||(nt=new Map),nt.has(t)?B(ct(new Error("Duplicate state with id"),{additional:{id:t}})):nt.set(t,e)},unregisterInstance(t){null==nt||nt.delete(t)},runVisibilityTransition:(t,e,n,r,i)=>Promise.resolve(),registerChildWithTransitionIn:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionOut:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionChange:(t,e,n,r)=>Promise.resolve(),hasTransitionChange:t=>!1,registerChild(t){},unregisterChild(t){}});const rt=null===(i=null==c?void 0:c.card)||void 0===i?void 0:i.variables;Array.isArray(rt)&&rt.forEach((t=>{if(t&&t.type in Sn&&t.name){if(M.has(t.name))return void B(ct(new Error("Duplicate variable"),{additional:{name:t.name}}));"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&B(ct(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=Nn(t.name,t.type,t.value);M.set(t.name,e),T.set(t.name,e)}catch(e){B(ct(e,{additional:{name:t.name}}))}}}));const it=c.palette;it&&it[E].forEach((t=>{if(M.has(t.name))B(ct(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=Nn(t.name,"color",t.color);M.set(t.name,e),T.set(t.name,e)}catch(e){B(ct(e,{additional:{name:t.name}}))}}));for(const[t,e]of I)T.has(t)||T.set(t,e);F.subscribe((t=>{if(t&&!T.has(t)){const e=I.get(t);T.set(t,e);const n=z.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const ot=null===(o=null==c?void 0:c.card)||void 0===o?void 0:o.variable_triggers;Array.isArray(ot)&&ot.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void B(ct(new Error("variable_trigger has a condition that is not a string"),{additional:{condition:t.condition}}));const n=t.mode||"on_condition";if("on_variable"===n||"on_condition"===n)try{const r=v(t.condition,{startRule:"JsonStringContents"}),i=N(r);if(!i.length)return void B(ct(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return tt(e),e.size?new Promise((t=>{const n=F.subscribe((()=>{tt(e),e.size||(n(),t())}))})):Promise.resolve()})(i).then((()=>{Pn(i.map((t=>T.get(t))).filter(Hn),(()=>{const t=Tn(T,r);return t.warnings.forEach(B),t.result})).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=J(t);e.log_id&&q(e)})),e=Boolean(r.value)):B(ct(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){B(ct(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else B(ct(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));const at=null===(a=null==c?void 0:c.card)||void 0===a?void 0:a.timers;if(at){const t=O=new ys({logError:B,applyVars:J,hasVariableWithType:function(t,e){const n=T.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=T.get(t);n?n.setValue(e):B(ct(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:G});at.forEach((e=>t.createTimer(e)))}const lt=null===(l=null==c?void 0:c.card)||void 0===l?void 0:l.states;let st;return lt&&!D&&(st={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:lt.map((t=>({state_id:t.state_id.toString(),div:t.div})))}),Ue((()=>{ws++,1===ws&&(window.addEventListener("keydown",xs),window.addEventListener("pointerdown",ks))})),Le((()=>{ws--,ws||(window.removeEventListener("keydown",xs),window.removeEventListener("pointerdown",ks)),O&&O.destroy()})),t.$$set=t=>{"id"in t&&n(8,s=t.id),"json"in t&&n(9,c=t.json),"platform"in t&&n(10,u=t.platform),"theme"in t&&n(7,d=t.theme),"globalVariablesController"in t&&n(11,h=t.globalVariablesController),"mix"in t&&n(0,f=t.mix),"customization"in t&&n(12,p=t.customization),"builtinProtocols"in t&&n(13,g=t.builtinProtocols),"extensions"in t&&n(14,m=t.extensions),"onError"in t&&n(15,y=t.onError),"onStat"in t&&n(16,$=t.onStat),"onCustomAction"in t&&n(17,_=t.onCustomAction),"onComponent"in t&&n(18,b=t.onComponent),"typefaceProvider"in t&&n(19,w=t.typefaceProvider),"fetchInit"in t&&n(20,x=t.fetchInit)},t.$$.update=()=>{33554560&t.$$.dirty[0]&&("light"===d||"dark"===d?n(24,E=d):"system"===d?"undefined"!=typeof matchMedia?(C||(n(25,C=matchMedia("(prefers-color-scheme: dark)")),C.addListener(A)),n(24,E=C.matches?"dark":"light")):n(24,E="light"):B(ct(new Error("Unsupported theme")))),16777216&t.$$.dirty[0]&&E&&it&&it[E].forEach((t=>{const e=T.get(t.name);e&&e.setValue(t.color)}))},[f,D,W,st,r,k,{},d,s,c,u,h,p,g,m,y,$,_,b,w,x,function(t){n(7,d=t)},function(){return M},q,E,C]}const As=class extends An{constructor(t){super(),Cn(this,t,Cs,_s,Gt,{id:8,json:9,platform:10,theme:7,globalVariablesController:11,mix:0,customization:12,builtinProtocols:13,extensions:14,onError:15,onStat:16,onCustomAction:17,onComponent:18,typefaceProvider:19,fetchInit:20,setTheme:21,getDebugVariables:22,execAction:23},null,[-1,-1,-1])}get setTheme(){return this.$$.ctx[21]}get getDebugVariables(){return this.$$.ctx[22]}get execAction(){return this.$$.ctx[23]}};class Vs{constructor(t){var e,n,r;e=this,r={},n=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(n="sizeHistory"),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,this.widthVariableName=t.width_variable_name,this.heightVariableName=t.height_variable_name}setVariable(t,e){if(!this.context)return!1;if(t){const n=this.context.variables.get(t);if(n&&"integer"===n.getType()){if(e=Math.round(e),this.sizeHistory[t]||(this.sizeHistory[t]=new Set),!this.sizeHistory[t].has(e))return n.setValue(e),this.sizeHistory[t].add(e),!0}else{const e=new Error("Missing variable");e.level="error",e.additional={variableName:t},this.context.logError(e)}}return!1}recalcProps(){if(!this.node||!this.context)return!1;const t=this.node.getBoundingClientRect(),e=this.setVariable(this.widthVariableName,t.width),n=this.setVariable(this.heightVariableName,t.height);return e||n}mountView(t,e){var n;this.node=t,this.context=e,this.resizeObserver||"undefined"==typeof ResizeObserver||(this.resizeObserver=new ResizeObserver((async()=>{let t=0;for(;this.recalcProps();){if(++t>8){const t=new Error("Recursive layout in size_provider");t.level="warn",t.additional={widthVariableName:this.widthVariableName,heightVariableName:this.heightVariableName},e.logError(t);break}await en()}this.sizeHistory={}}))),null===(n=this.resizeObserver)||void 0===n||n.observe(t),this.recalcProps()}unmountView(t,e){var n;null===(n=this.resizeObserver)||void 0===n||n.disconnect(),this.resizeObserver=void 0}}function Ds(t){return t instanceof HTMLElement}function Ps(t){return class{constructor(t){this.params=t}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const r=Array.from(e.children).filter(Ds);r.forEach((t=>{t.style.display="none"})),this.wrapper=document.createElement("div"),this.wrapper.style.width="100%",this.wrapper.style.height="100%",e.appendChild(this.wrapper);const i=Number(this.params.repeat_count||-1),o=this.animItem=t({container:this.wrapper,path:this.params.lottie_url,animationData:this.params.lottie_json,renderer:"svg",loop:!0});if(this.animItem.addEventListener("data_failed",(()=>{var t;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""}));const e=new Error("Failed to load lottie animation");e.level="error",e.additional={url:this.params.lottie_url},n.logError(e)})),"reverse"===this.params.repeat_mode||-1!==i){let t=1,e=0;o.addEventListener("loopComplete",(()=>{++e,-1!==i&&e===i?(o.stop(),o.goToAndStop(o.totalFrames,!0)):("reverse"===this.params.repeat_mode&&(t*=-1,o.setDirection(t)),o.goToAndPlay(1===t?0:o.totalFrames,!0))}))}}unmountView(t,e){var n,r;null===(n=this.animItem)||void 0===n||n.destroy(),this.wrapper&&(null===(r=this.wrapper.parentNode)||void 0===r||r.removeChild(this.wrapper),this.wrapper=void 0)}}}function js(t){return new As({target:t.target,props:{id:t.id,json:t.json,globalVariablesController:t.globalVariablesController,mix:t.mix,customization:t.customization,builtinProtocols:t.builtinProtocols,extensions:t.extensions,onStat:t.onStat,onCustomAction:t.onCustomAction,onError:t.onError,onComponent:t.onComponent,typefaceProvider:t.typefaceProvider,platform:t.platform,theme:t.theme},hydrate:t.hydrate})}function Ss(t,e){return Ns(t,e).result}function Ns(t,e){let n;try{n=v(t,{startRule:"json"===(null==e?void 0:e.type)?"JsonStringContents":"start"})}catch(t){return{result:{type:"error",value:"Unable to parse expression"},warnings:[]}}return Tn((null==e?void 0:e.variables)||new Map,n)}function Fs(){return Array.from(y.keys())}(window.Ya=window.Ya||{}).Divkit=e})();
2
2
  //# sourceMappingURL=client-devtool.js.map