@divkitframework/divkit 5.0.0 → 7.0.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.
- package/dist/browser/client-devtool.js +1 -1
- package/dist/browser/client-devtool.js.map +1 -1
- package/dist/browser/client-hydratable.js +1 -1
- package/dist/browser/client-hydratable.js.map +1 -1
- package/dist/browser/client.js +1 -1
- package/dist/browser/client.js.map +1 -1
- package/dist/client-devtool.js +1 -1
- package/dist/client-devtool.js.map +1 -1
- package/dist/client-hydratable.js +1 -1
- package/dist/client-hydratable.js.map +1 -1
- package/dist/client.css +1 -1
- package/dist/client.css.map +1 -1
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/esm/client-devtool.mjs +1 -1
- package/dist/esm/client-devtool.mjs.map +1 -1
- package/dist/esm/client-hydratable.mjs +1 -1
- package/dist/esm/client-hydratable.mjs.map +1 -1
- package/dist/esm/client.mjs +1 -1
- package/dist/esm/client.mjs.map +1 -1
- package/dist/esm/server.mjs +1 -1
- package/dist/esm/server.mjs.map +1 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
- package/typings/common.d.ts +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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)},e={};t.d(e,{M:()=>ca,Os:()=>Ze,fz:()=>ma,e4:()=>va,sY:()=>ga,Z3:()=>D});const n=-2147483648,r=Number.MAX_VALUE,o=Number.MIN_VALUE,i="string",a="integer",l="number",s="boolean",c="color",u="datetime";function d(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function h(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function f(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){var e=parseInt(t,10);if(e>2147483647||e<n)throw new Error("Value ".concat(t," can't be converted to Integer type."));return e}function g(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function m(t,e,n,r){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,m.prototype),o.expected=e,o.found=n,o.location=r,o.name="SyntaxError",o}function v(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function $(t,e){var n,r,o,i,a={},l=(e=void 0!==e?e:{}).grammarSource,s={start:Jt,JsonStringContents:function(){var t,e,n;for(t=Ct,e=[],n=Ot();n!==a;)e.push(n),n=Ot();return Et=t,e=kt(e)}},c=Jt,u="@{",v="}",$="@{}",y="\\",_="||",b="&&",x="==",w="!=",k=">=",C="<=",E="+",A="-",j="true",V="false",D=/^[^}]/,P=/^[^'}]/,S=/^[0-9]/,I=/^[a-zA-Z_0-9.]/,F=/^[a-zA-Z_]/,N=/^[ \t\r\n]/,z=St("@{",!1),M=St("}",!1),J=St("@{}",!1),O=St("\\",!1),B={type:"any"},T=It(["}"],!0,!1),R=St("?",!1),L=St(":",!1),W=St("||",!1),U=St("&&",!1),q=St("==",!1),H=St("!=",!1),G=St(">=",!1),K=St(">",!1),X=St("<=",!1),Y=St("<",!1),Z=St("+",!1),Q=St("-",!1),tt=St("/",!1),et=St("*",!1),nt=St("%",!1),rt=St("!",!1),ot=St("(",!1),it=St(")",!1),at=St(",",!1),lt=Ft("string"),st=St("'",!1),ct=It(["'","}"],!0,!1),ut=Ft("integer"),dt=It([["0","9"]],!1,!1),ht=Ft("number"),ft=St(".",!1),pt=St("e",!1),gt=St("E",!1),mt=Ft("boolean"),vt=St("true",!1),$t=St("false",!1),yt=It([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),_t=Ft("identifier"),bt=It([["a","z"],["A","Z"],"_"],!1,!1),xt=Ft("whitespace"),wt=It([" ","\t","\r","\n"],!1,!1),kt=function(t){return f(t)},Ct=0,Et=0,At=[{line:1,column:1}],jt=0,Vt=[],Dt=0;if("startRule"in e){if(!(e.startRule in s))throw new Error("Can't start parsing from rule \""+e.startRule+'".');c=s[e.startRule]}function Pt(){return t.substring(Et,Ct)}function St(t,e){return{type:"literal",text:t,ignoreCase:e}}function It(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function Ft(t){return{type:"other",description:t}}function Nt(e){var n,r=At[e];if(r)return r;for(n=e-1;!At[n];)n--;for(r={line:(r=At[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return At[e]=r,r}function zt(t,e){var n=Nt(t),r=Nt(e);return{source:l,start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:r.line,column:r.column}}}function Mt(t){Ct<jt||(Ct>jt&&(jt=Ct,Vt=[]),Vt.push(t))}function Jt(){var t,e;return t=Ct,Zt(),(e=Bt())!==a?(Zt(),Et=t,t=e):(Ct=t,t=a),t}function Ot(){var e,n,r,o,i;if(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a?(r=Zt(),(o=Bt())!==a?(Zt(),125===t.charCodeAt(Ct)?(i=v,Ct++):(i=a,0===Dt&&Mt(M)),i!==a?(Et=e,e=o):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,t.substr(Ct,3)===$?(n=$,Ct+=3):(n=a,0===Dt&&Mt(J)),n!==a&&(Et=e,n=""),(e=n)===a&&(e=Ct,n=Ct,Dt++,92===t.charCodeAt(Ct)?(r=y,Ct++):(r=a,0===Dt&&Mt(O)),r===a&&(t.substr(Ct,2)===u?(r=u,Ct+=2):(r=a,0===Dt&&Mt(z))),Dt--,r===a?n=void 0:(Ct=n,n=a),n!==a?(t.length>Ct?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(B)),r!==a?(Et=e,e=Pt()):(Ct=e,e=a)):(Ct=e,e=a),e===a))){if(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a){if(r=[],D.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(T)),o!==a)for(;o!==a;)r.push(o),D.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(T));else r=a;r!==a?(125===t.charCodeAt(Ct)?(o=v,Ct++):(o=a,0===Dt&&Mt(M)),o!==a?(Et=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(Ct=e,e=a)):(Ct=e,e=a)}else Ct=e,e=a;e===a&&(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a&&(Et=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a?(t.substr(Ct,2)===u?(r=u,Ct+=2):(r=a,0===Dt&&Mt(z)),r!==a?(Et=e,e=r):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a?(t.length>Ct?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(B)),r!==a?(Et=e,e=g(r)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a&&(Et=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function Bt(){var e,n,r,o,i,l;return e=Ct,(n=Tt())!==a?(Zt(),63===t.charCodeAt(Ct)?(r="?",Ct++):(r=a,0===Dt&&Mt(R)),r!==a?(Zt(),(o=Bt())!==a?(Zt(),58===t.charCodeAt(Ct)?(i=":",Ct++):(i=a,0===Dt&&Mt(L)),i!==a?(Zt(),(l=Bt())!==a?(Et=e,e={type:"ConditionalExpression",test:n,consequent:o,alternate:l}):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Tt()),e}function Tt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Rt())!==a){for(r=[],o=Ct,i=Zt(),t.substr(Ct,2)===_?(l=_,Ct+=2):(l=a,0===Dt&&Mt(W)),l!==a?(s=Zt(),(c=Rt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),t.substr(Ct,2)===_?(l=_,Ct+=2):(l=a,0===Dt&&Mt(W)),l!==a?(s=Zt(),(c=Rt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=h(n,r)}else Ct=e,e=a;return e}function Rt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Lt())!==a){for(r=[],o=Ct,i=Zt(),t.substr(Ct,2)===b?(l=b,Ct+=2):(l=a,0===Dt&&Mt(U)),l!==a?(s=Zt(),(c=Lt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),t.substr(Ct,2)===b?(l=b,Ct+=2):(l=a,0===Dt&&Mt(U)),l!==a?(s=Zt(),(c=Lt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=h(n,r)}else Ct=e,e=a;return e}function Lt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Wt())!==a){for(r=[],o=Ct,i=Zt(),t.substr(Ct,2)===x?(l=x,Ct+=2):(l=a,0===Dt&&Mt(q)),l===a&&(t.substr(Ct,2)===w?(l=w,Ct+=2):(l=a,0===Dt&&Mt(H))),l!==a?(s=Zt(),(c=Wt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),t.substr(Ct,2)===x?(l=x,Ct+=2):(l=a,0===Dt&&Mt(q)),l===a&&(t.substr(Ct,2)===w?(l=w,Ct+=2):(l=a,0===Dt&&Mt(H))),l!==a?(s=Zt(),(c=Wt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=d(n,r)}else Ct=e,e=a;return e}function Wt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Ut())!==a){for(r=[],o=Ct,i=Zt(),t.substr(Ct,2)===k?(l=k,Ct+=2):(l=a,0===Dt&&Mt(G)),l===a&&(62===t.charCodeAt(Ct)?(l=">",Ct++):(l=a,0===Dt&&Mt(K)),l===a&&(t.substr(Ct,2)===C?(l=C,Ct+=2):(l=a,0===Dt&&Mt(X)),l===a&&(60===t.charCodeAt(Ct)?(l="<",Ct++):(l=a,0===Dt&&Mt(Y))))),l!==a?(s=Zt(),(c=Ut())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),t.substr(Ct,2)===k?(l=k,Ct+=2):(l=a,0===Dt&&Mt(G)),l===a&&(62===t.charCodeAt(Ct)?(l=">",Ct++):(l=a,0===Dt&&Mt(K)),l===a&&(t.substr(Ct,2)===C?(l=C,Ct+=2):(l=a,0===Dt&&Mt(X)),l===a&&(60===t.charCodeAt(Ct)?(l="<",Ct++):(l=a,0===Dt&&Mt(Y))))),l!==a?(s=Zt(),(c=Ut())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=d(n,r)}else Ct=e,e=a;return e}function Ut(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=qt())!==a){for(r=[],o=Ct,i=Zt(),43===t.charCodeAt(Ct)?(l=E,Ct++):(l=a,0===Dt&&Mt(Z)),l===a&&(45===t.charCodeAt(Ct)?(l=A,Ct++):(l=a,0===Dt&&Mt(Q))),l!==a?(s=Zt(),(c=qt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),43===t.charCodeAt(Ct)?(l=E,Ct++):(l=a,0===Dt&&Mt(Z)),l===a&&(45===t.charCodeAt(Ct)?(l=A,Ct++):(l=a,0===Dt&&Mt(Q))),l!==a?(s=Zt(),(c=qt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=d(n,r)}else Ct=e,e=a;return e}function qt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Ht())!==a){for(r=[],o=Ct,i=Zt(),47===t.charCodeAt(Ct)?(l="/",Ct++):(l=a,0===Dt&&Mt(tt)),l===a&&(42===t.charCodeAt(Ct)?(l="*",Ct++):(l=a,0===Dt&&Mt(et)),l===a&&(37===t.charCodeAt(Ct)?(l="%",Ct++):(l=a,0===Dt&&Mt(nt)))),l!==a?(s=Zt(),(c=Ht())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),47===t.charCodeAt(Ct)?(l="/",Ct++):(l=a,0===Dt&&Mt(tt)),l===a&&(42===t.charCodeAt(Ct)?(l="*",Ct++):(l=a,0===Dt&&Mt(et)),l===a&&(37===t.charCodeAt(Ct)?(l="%",Ct++):(l=a,0===Dt&&Mt(nt)))),l!==a?(s=Zt(),(c=Ht())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=d(n,r)}else Ct=e,e=a;return e}function Ht(){var e,n,r;return(e=Xt())===a&&(e=Kt())===a&&(e=Ct,33===t.charCodeAt(Ct)?(n="!",Ct++):(n=a,0===Dt&&Mt(rt)),n===a&&(43===t.charCodeAt(Ct)?(n=E,Ct++):(n=a,0===Dt&&Mt(Z)),n===a&&(45===t.charCodeAt(Ct)?(n=A,Ct++):(n=a,0===Dt&&Mt(Q)))),n!==a?(Zt(),(r=Ht())!==a?(Et=e,e={type:"UnaryExpression",operator:n,argument:r}):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=function(){var e,n,r,o,i;return e=Ct,(n=Yt())!==a?(Zt(),40===t.charCodeAt(Ct)?(r="(",Ct++):(r=a,0===Dt&&Mt(ot)),r!==a?(Zt(),o=function(){var e,n,r,o,i,l,s;if(e=Ct,(n=Bt())!==a){for(r=[],o=Ct,Zt(),44===t.charCodeAt(Ct)?(i=",",Ct++):(i=a,0===Dt&&Mt(at)),i!==a?(Zt(),(l=Bt())!==a?o=l:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,Zt(),44===t.charCodeAt(Ct)?(i=",",Ct++):(i=a,0===Dt&&Mt(at)),i!==a?(Zt(),(l=Bt())!==a?o=l:(Ct=o,o=a)):(Ct=o,o=a);Et=e,s=r,e=[n,...s]}else Ct=e,e=a;return e===a&&(e=Zt()),e}(),o!==a?(Zt(),41===t.charCodeAt(Ct)?(i=")",Ct++):(i=a,0===Dt&&Mt(it)),i!==a?(Et=e,e={type:"CallExpression",callee:n,arguments:o}):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,(n=Yt())!==a&&(Et=e,n={type:"Variable",id:n}),(e=n)===a&&(e=function(){var e,n,r,o;return e=function(){var e,n,r,o;return Dt++,e=Ct,39===t.charCodeAt(Ct)?(n="'",Ct++):(n=a,0===Dt&&Mt(st)),n!==a?(r=function(){var t,e,n;for(t=Ct,e=[],n=Gt();n!==a;)e.push(n),n=Gt();return Et=t,e=f(e)}(),39===t.charCodeAt(Ct)?(o="'",Ct++):(o=a,0===Dt&&Mt(st)),o!==a?(Et=e,e=r):(Ct=e,e=a)):(Ct=e,e=a),Dt--,e===a&&(n=a,0===Dt&&Mt(lt)),e}(),e===a&&(e=Xt())===a&&(e=Kt())===a&&(e=function(){var e,n;return Dt++,e=Ct,t.substr(Ct,4)===j?(n=j,Ct+=4):(n=a,0===Dt&&Mt(vt)),n!==a&&(Et=e,n={type:"BooleanLiteral",value:!0}),(e=n)===a&&(e=Ct,t.substr(Ct,5)===V?(n=V,Ct+=5):(n=a,0===Dt&&Mt($t)),n!==a&&(Et=e,n={type:"BooleanLiteral",value:!1}),e=n),Dt--,e===a&&(n=a,0===Dt&&Mt(mt)),e}(),e===a&&(e=Ct,40===t.charCodeAt(Ct)?(n="(",Ct++):(n=a,0===Dt&&Mt(ot)),n!==a&&(r=Bt())!==a?(41===t.charCodeAt(Ct)?(o=")",Ct++):(o=a,0===Dt&&Mt(it)),o!==a?(Et=e,e=r):(Ct=e,e=a)):(Ct=e,e=a))),e}())),e}())),e}function Gt(){var e,n,r,o,i;if(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a?(r=Zt(),(o=Bt())!==a?(Zt(),125===t.charCodeAt(Ct)?(i=v,Ct++):(i=a,0===Dt&&Mt(M)),i!==a?(Et=e,e=o):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,t.substr(Ct,3)===$?(n=$,Ct+=3):(n=a,0===Dt&&Mt(J)),n!==a&&(Et=e,n=""),(e=n)===a&&(e=Ct,n=Ct,Dt++,92===t.charCodeAt(Ct)?(r=y,Ct++):(r=a,0===Dt&&Mt(O)),r===a&&(39===t.charCodeAt(Ct)?(r="'",Ct++):(r=a,0===Dt&&Mt(st)),r===a&&(t.substr(Ct,2)===u?(r=u,Ct+=2):(r=a,0===Dt&&Mt(z)))),Dt--,r===a?n=void 0:(Ct=n,n=a),n!==a?(t.length>Ct?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(B)),r!==a?(Et=e,e=Pt()):(Ct=e,e=a)):(Ct=e,e=a),e===a))){if(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a){if(r=[],P.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(ct)),o!==a)for(;o!==a;)r.push(o),P.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(ct));else r=a;r!==a?(125===t.charCodeAt(Ct)?(o=v,Ct++):(o=a,0===Dt&&Mt(M)),o!==a?(Et=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(Ct=e,e=a)):(Ct=e,e=a)}else Ct=e,e=a;e===a&&(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a&&(Et=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a?(t.substr(Ct,2)===u?(r=u,Ct+=2):(r=a,0===Dt&&Mt(z)),r!==a?(Et=e,e=r):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a?(t.length>Ct?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(B)),r!==a?(Et=e,e=g(r)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a&&(Et=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function Kt(){var e,n,r,o;if(Dt++,e=Ct,45===t.charCodeAt(Ct)?(n=A,Ct++):(n=a,0===Dt&&Mt(Q)),n===a&&(n=null),r=[],S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt)),o!==a)for(;o!==a;)r.push(o),S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt));else r=a;return r!==a?(Et=e,e={type:"IntegerLiteral",value:p(Pt())}):(Ct=e,e=a),Dt--,e===a&&(n=a,0===Dt&&Mt(ut)),e}function Xt(){var e,n,r,o,i,l,s,c,u,d;for(Dt++,e=Ct,45===t.charCodeAt(Ct)?(n=A,Ct++):(n=a,0===Dt&&Mt(Q)),n===a&&(n=null),r=[],S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt));o!==a;)r.push(o),S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt));if(46===t.charCodeAt(Ct)?(o=".",Ct++):(o=a,0===Dt&&Mt(ft)),o!==a){if(i=[],S.test(t.charAt(Ct))?(l=t.charAt(Ct),Ct++):(l=a,0===Dt&&Mt(dt)),l!==a)for(;l!==a;)i.push(l),S.test(t.charAt(Ct))?(l=t.charAt(Ct),Ct++):(l=a,0===Dt&&Mt(dt));else i=a;if(i!==a){if(l=Ct,101===t.charCodeAt(Ct)?(s="e",Ct++):(s=a,0===Dt&&Mt(pt)),s===a&&(69===t.charCodeAt(Ct)?(s="E",Ct++):(s=a,0===Dt&&Mt(gt))),s!==a){if(43===t.charCodeAt(Ct)?(c=E,Ct++):(c=a,0===Dt&&Mt(Z)),c===a&&(45===t.charCodeAt(Ct)?(c=A,Ct++):(c=a,0===Dt&&Mt(Q))),c===a&&(c=null),u=[],S.test(t.charAt(Ct))?(d=t.charAt(Ct),Ct++):(d=a,0===Dt&&Mt(dt)),d!==a)for(;d!==a;)u.push(d),S.test(t.charAt(Ct))?(d=t.charAt(Ct),Ct++):(d=a,0===Dt&&Mt(dt));else u=a;u!==a?l=s=[s,c,u]:(Ct=l,l=a)}else Ct=l,l=a;l===a&&(l=null),Et=e,e={type:"NumberLiteral",value:parseFloat(Pt())}}else Ct=e,e=a}else Ct=e,e=a;if(e===a){if(e=Ct,45===t.charCodeAt(Ct)?(n=A,Ct++):(n=a,0===Dt&&Mt(Q)),n===a&&(n=null),r=[],S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt)),o!==a)for(;o!==a;)r.push(o),S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt));else r=a;if(r!==a)if(101===t.charCodeAt(Ct)?(o="e",Ct++):(o=a,0===Dt&&Mt(pt)),o===a&&(69===t.charCodeAt(Ct)?(o="E",Ct++):(o=a,0===Dt&&Mt(gt))),o!==a){if(43===t.charCodeAt(Ct)?(i=E,Ct++):(i=a,0===Dt&&Mt(Z)),i===a&&(45===t.charCodeAt(Ct)?(i=A,Ct++):(i=a,0===Dt&&Mt(Q))),i===a&&(i=null),l=[],S.test(t.charAt(Ct))?(s=t.charAt(Ct),Ct++):(s=a,0===Dt&&Mt(dt)),s!==a)for(;s!==a;)l.push(s),S.test(t.charAt(Ct))?(s=t.charAt(Ct),Ct++):(s=a,0===Dt&&Mt(dt));else l=a;l!==a?(Et=e,e={type:"NumberLiteral",value:parseFloat(Pt())}):(Ct=e,e=a)}else Ct=e,e=a;else Ct=e,e=a}return Dt--,e===a&&(n=a,0===Dt&&Mt(ht)),e}function Yt(){var e,n,r,o,i;if(Dt++,e=Ct,n=Ct,Dt++,r=function(){var e,n,r,o;return e=Ct,t.substr(Ct,4)===j?(n=j,Ct+=4):(n=a,0===Dt&&Mt(vt)),n===a&&(t.substr(Ct,5)===V?(n=V,Ct+=5):(n=a,0===Dt&&Mt($t))),n!==a?(r=Ct,Dt++,I.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(yt)),Dt--,o===a?r=void 0:(Ct=r,r=a),r!==a?e=n=[n,r]:(Ct=e,e=a)):(Ct=e,e=a),e}(),Dt--,r===a?n=void 0:(Ct=n,n=a),n!==a)if(F.test(t.charAt(Ct))?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(bt)),r!==a){for(o=[],I.test(t.charAt(Ct))?(i=t.charAt(Ct),Ct++):(i=a,0===Dt&&Mt(yt));i!==a;)o.push(i),I.test(t.charAt(Ct))?(i=t.charAt(Ct),Ct++):(i=a,0===Dt&&Mt(yt));Et=e,e={type:"Identifier",name:Pt()}}else Ct=e,e=a;else Ct=e,e=a;return Dt--,e===a&&(n=a,0===Dt&&Mt(_t)),e}function Zt(){var e,n;for(Dt++,e=[],N.test(t.charAt(Ct))?(n=t.charAt(Ct),Ct++):(n=a,0===Dt&&Mt(wt));n!==a;)e.push(n),N.test(t.charAt(Ct))?(n=t.charAt(Ct),Ct++):(n=a,0===Dt&&Mt(wt));return Dt--,n=a,0===Dt&&Mt(xt),e}if((n=c())!==a&&Ct===t.length)return n;throw n!==a&&Ct<t.length&&Mt({type:"end"}),r=Vt,o=jt<t.length?t.charAt(jt):null,i=jt<t.length?zt(jt,jt+1):zt(jt,jt),new m(m.buildMessage(r,o),r,o,i)}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(m,Error),m.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 o=this.location.start,i=this.location.source+":"+o.line+":"+o.column;if(r){var a=this.location.end,l=v("",o.line.toString().length," "),s=r[o.line-1],c=(o.line===a.line?a.column:s.length+1)-o.column||1;e+="\n --\x3e "+i+"\n"+l+" |\n"+o.line+" | "+s+"\n"+l+" | "+v("",o.column-1," ")+v("",c,"^")}else e+="\n at "+i}return e},m.buildMessage=function(t,e){var n={literal:function(t){return'"'+o(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?i(t[0])+"-"+i(t[1]):i(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 o(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 i(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?'"'+o(t)+'"':"end of input"}(e)+" found."};const y=new Map,_=new Map;function b(t,e,n){const r={args:e,cb:n},o=y.get(t)||[];y.has(t)||y.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");_.set(i,r)}function x(t,e){let n=t.args.length,r=t.args.length;const o=t.args[t.args.length-1];if("object"==typeof o&&o.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 k(t,e){for(;t.length<e;)t="0"+t;return t}function C(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=(t||"").toLowerCase()).charAt(0))return n;const r=A(t);return r?(r.a*=e,E(r)):n}function E(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>k(Math.round(t).toString(16),2))).join("")):"rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat((t.a/255).toFixed(2),")")}function A(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,o,i]=e,a=2===r.length?r:r+r,l=2===o.length?o:o+o,s=2===i.length?i:i+i,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,o]=e,i=2===n.length?n:n+n,a=2===r.length?r:r+r,l=2===o.length?o:o+o;return{a:255,r:parseInt(i,16),g:parseInt(a,16),b:parseInt(l,16)}}return null}function j(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function V(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function D(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 V(t.value);if("color"===t.type)return O(J(t.value));if("url"===t.type)return t.value;throw new Error("Unexpected type ".concat(t.type))}function P(t){let e=D(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\'").replace(/'/g,"\\'")+"'"),e}function S(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}const I=new Int32Array(1);function F(t){return I[0]=t,I[0]}function N(t){if(t<n||t>2147483647)throw new Error("Integer overflow.")}function z(t){const e=[];return w(t,{Variable(t){e.push(t.id.name)}}),e}function M(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function J(t){const e=A(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function O(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 k(Math.round(t).toString(16),2)})).join("").toUpperCase())}function B(t){return{type:i,value:D(t)}}function T(t){const e=Number(t.value);if(isNaN(e)||!Number.isFinite(e))throw new Error("Unable to convert value to Number.");return{type:l,value:e}}function R(t,e){if(0===e.value)throw new Error("Division by zero is not supported.");let n=t.value/e.value;return t.type===a&&(n=F(n)),{type:t.type,value:n}}function L(t,e){if(0===e.value)throw new Error("Division by zero is not supported.");let n=t.value%e.value;return t.type===a&&(n=F(n)),{type:t.type,value:n}}function W(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];let r=e.length?e[0].value:0;for(let t=1;t<e.length;++t)r*=e[t].value,e[0].type===a&&(r=F(r));return{type:e[0].type,value:r}}function U(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];let r=e.length?e[0].value:0;for(let t=1;t<e.length;++t)r-=e[t].value,e[0].type===a&&(r=F(r));return{type:e.length?e[0].type:a,value:r}}function q(){let t=0;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(let e=0;e<n.length;++e)t+=n[e].value,n[0].type===a&&(t=F(t));return{type:n.length?n[0].type:a,value:t}}function H(t){const e=Math.abs(t.value);return t.type===a&&N(e),{type:t.type,value:e}}function G(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)throw new Error("Non empty argument list is required.");return{type:e[0].type,value:Math.max(...e.map((t=>t.value)))}}function K(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)throw new Error("Non empty argument list is required.");return{type:e[0].type,value:Math.min(...e.map((t=>t.value)))}}function X(t){return{type:t.type,value:Math.sign(t.value)}}function Y(t,e){let n;if(0===e.value&&t.type===a)n=t.value;else if(0===t.value&&t.type===a)n=0;else{let r=Math.sign(e.value);t.type===l&&0===r&&(r=Object.is(r,0)?1:-1),n=Math.abs(t.value)*r}return t.type===a&&N(n),{type:t.type,value:n}}function Z(t){return e=>{const n=J(e.value);return{type:l,value:n[t]/255}}}function Q(t){return(e,n)=>{const r=J(e.value);return r[t]=255*n.value,{type:e.type,value:O(r)}}}const tt=Z("a"),et=Z("r"),nt=Z("g"),rt=Z("b"),ot=Q("a"),it=Q("r"),at=Q("g"),lt=Q("b");function st(){}const ct=t=>t;function ut(t,e){for(const n in e)t[n]=e[n];return t}function dt(t){return t()}function ht(){return Object.create(null)}function ft(t){t.forEach(dt)}function pt(t){return"function"==typeof t}let gt;function mt(t,e){return gt||(gt=document.createElement("a")),gt.href=e,t===gt.href}function vt(t,e){return t!=t?e==e:t!==e}function $t(t){return 0===Object.keys(t).length}function yt(t,...e){if(null==t)return st;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function _t(t,e,n){t.$$.on_destroy.push(yt(e,n))}function bt(t,e,n,r){if(t){const o=xt(t,e,n,r);return t[0](o)}}function xt(t,e,n,r){return t[1]&&r?ut(n.ctx.slice(),t[1](r(e))):n.ctx}function wt(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}function kt(t,e,n,r,o,i){if(o){const a=xt(e,n,r,i);t.p(a,o)}}function Ct(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 Et(t){return t&&pt(t.destroy)?t.destroy:st}const At="undefined"!=typeof window;let jt=At?()=>window.performance.now():()=>Date.now(),Vt=At?t=>requestAnimationFrame(t):st;const Dt=new Set;function Pt(t){Dt.forEach((e=>{e.c(t)||(Dt.delete(e),e.f())})),0!==Dt.size&&Vt(Pt)}let St=!1;function It(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function Ft(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Nt(t){const e=Bt("style");return function(t,e){!function(t,e){t.appendChild(e)}(t.head||t,e)}(Ft(t),e),e.sheet}function zt(t,e){if(St){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 o=0;for(let t=0;t<e.length;t++){const i=e[t].claim_order,a=(o>0&&e[n[o]].claim_order<=i?o+1:It(1,o,(t=>e[n[t]].claim_order),i))-1;r[t]=n[a]+1;const l=a+1;n[l]=t,o=Math.max(l,o)}const i=[],a=[];let l=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(i.push(e[t-1]);l>=t;l--)a.push(e[l]);l--}for(;l>=0;l--)a.push(e[l]);i.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<i.length&&a[e].claim_order>=i[n].claim_order;)n++;const r=n<i.length?i[n]:null;t.insertBefore(a[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==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 Mt(t,e,n){St&&!n?zt(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function Jt(t){t.parentNode.removeChild(t)}function Ot(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function Bt(t){return document.createElement(t)}function Tt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Rt(t){return document.createTextNode(t)}function Lt(){return Rt(" ")}function Wt(){return Rt("")}function Ut(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function qt(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Ht(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]:qt(t,r,e[r])}function Gt(t){return Array.from(t.childNodes)}function Kt(t,e,n,r,o=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const i=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o||(t.claim_info.last_index=r),i}}for(let r=t.claim_info.last_index-1;r>=0;r--){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,i}}return r()})();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function Xt(t,e,n,r){return Kt(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}function Yt(t,e,n){return Xt(t,e,n,Bt)}function Zt(t,e,n){return Xt(t,e,n,Tt)}function Qt(t,e){return Kt(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}),(()=>Rt(e)),!0)}function te(t){return Qt(t," ")}function ee(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function ne(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}const re=new Map;let oe,ie=0;function ae(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),o=n.length-r.length;o&&(t.style.animation=r.join(", "),ie-=o,ie||Vt((()=>{ie||(re.forEach((t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}})),re.clear())})))}function le(t){oe=t}function se(){if(!oe)throw new Error("Function called outside component initialization");return oe}function ce(t){se().$$.on_mount.push(t)}function ue(t){se().$$.on_destroy.push(t)}function de(t,e){return se().$$.context.set(t,e),e}function he(t){return se().$$.context.get(t)}function fe(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const pe=[],ge=[],me=[],ve=[],$e=Promise.resolve();let ye=!1;function _e(){ye||(ye=!0,$e.then(Ee))}function be(){return _e(),$e}function xe(t){me.push(t)}const we=new Set;let ke,Ce=0;function Ee(){const t=oe;do{for(;Ce<pe.length;){const t=pe[Ce];Ce++,le(t),Ae(t.$$)}for(le(null),pe.length=0,Ce=0;ge.length;)ge.pop()();for(let t=0;t<me.length;t+=1){const e=me[t];we.has(e)||(we.add(e),e())}me.length=0}while(pe.length);for(;ve.length;)ve.pop()();ye=!1,we.clear(),le(t)}function Ae(t){if(null!==t.fragment){t.update(),ft(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(xe)}}function je(t,e,n){t.dispatchEvent(function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,r,e),o}(`${e?"intro":"outro"}${n}`))}const Ve=new Set;let De;function Pe(){De={r:0,c:[],p:De}}function Se(){De.r||ft(De.c),De=De.p}function Ie(t,e){t&&t.i&&(Ve.delete(t),t.i(e))}function Fe(t,e,n,r){if(t&&t.o){if(Ve.has(t))return;Ve.add(t),De.c.push((()=>{Ve.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const Ne={duration:0};function ze(t,e,n){let r,o,i=e(t,n),a=!1,l=0;function s(){r&&ae(t,r)}function c(){const{delay:e=0,duration:n=300,easing:c=ct,tick:u=st,css:d}=i||Ne;d&&(r=function(t,e,n,r,o,i,a,l=0){const s=16.666/r;let c="{\n";for(let t=0;t<=1;t+=s){const r=e+(n-e)*i(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=Ft(t),{stylesheet:f,rules:p}=re.get(h)||function(t,e){const n={stylesheet:Nt(e),rules:{}};return re.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 ${o}ms 1 both`,ie+=1,d}(t,0,1,n,e,c,d,l++)),u(0,1);const h=jt()+e,f=h+n;o&&o.abort(),a=!0,xe((()=>je(t,!0,"start"))),o=function(t){let e;return 0===Dt.size&&Vt(Pt),{promise:new Promise((n=>{Dt.add(e={c:t,f:n})})),abort(){Dt.delete(e)}}}((e=>{if(a){if(e>=f)return u(1,0),je(t,!0,"end"),s(),a=!1;if(e>=h){const t=c((e-h)/n);u(t,1-t)}}return a}))}let u=!1;return{start(){u||(u=!0,ae(t),pt(i)?(i=i(),(ke||(ke=Promise.resolve(),ke.then((()=>{ke=null}))),ke).then(c)):c())},invalidate(){u=!1},end(){a&&(s(),a=!1)}}}const Me="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function Je(t,e){Fe(t,1,1,(()=>{e.delete(t.key)}))}function Oe(t,e){const n={},r={},o={$$scope:1};let i=t.length;for(;i--;){const a=t[i],l=e[i];if(l){for(const t in a)t in l||(r[t]=1);for(const t in l)o[t]||(n[t]=l[t],o[t]=1);t[i]=l}else for(const t in a)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let Be;function Te(t){t&&t.c()}function Re(t,e){t&&t.l(e)}function Le(t,e,n,r){const{fragment:o,on_mount:i,on_destroy:a,after_update:l}=t.$$;o&&o.m(e,n),r||xe((()=>{const e=i.map(dt).filter(pt);a?a.push(...e):ft(e),t.$$.on_mount=[]})),l.forEach(xe)}function We(t,e){const n=t.$$;null!==n.fragment&&(ft(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ue(t,e,n,r,o,i,a,l=[-1]){const s=oe;le(t);const c=t.$$={fragment:null,ctx:null,props:i,update:st,not_equal:o,bound:ht(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:ht(),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 i=r.length?r[0]:n;return c.ctx&&o(c.ctx[e],c.ctx[e]=i)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](i),u&&function(t,e){-1===t.$$.dirty[0]&&(pe.push(t),_e(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],c.update(),u=!0,ft(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){St=!0;const t=Gt(e.target);c.fragment&&c.fragment.l(t),t.forEach(Jt)}else c.fragment&&c.fragment.c();e.intro&&Ie(t.$$.fragment),Le(t,e.target,e.anchor,e.customElement),St=!1,Ee()}le(s)}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(Be=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(dt).filter(pt);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){ft(this.$$.on_disconnect)}$destroy(){We(this,1),this.$destroy=st}$on(t,e){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&&!$t(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class qe{$destroy(){We(this,1),this.$destroy=st}$on(t,e){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&&!$t(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const He=[];function Ge(t,e=st){let n;const r=new Set;function o(e){if(i=e,((o=t)!=o?i==i:o!==i||o&&"object"==typeof o||"function"==typeof o)&&(t=e,n)){const e=!He.length;for(const e of r)e[1](),He.push(e,t);if(e){for(let t=0;t<He.length;t+=2)He[t][0](He[t+1]);He.length=0}}var o,i}return{set:o,update:function(e){o(e(t))},subscribe:function(i,a=st){const l=[i,a];return r.add(l),1===r.size&&(n=e(o)||st),i(t),()=>{r.delete(l),0===r.size&&(n(),n=null)}}}}function Ke(t,e,n){const r=!Array.isArray(t),o=r?[t]:t,i=e.length<2;return{subscribe:Ge(n,(t=>{let n=!1;const a=[];let l=0,s=st;const c=()=>{if(l)return;s();const n=e(r?a[0]:a,t);i?t(n):s=pt(n)?n:st},u=o.map(((t,e)=>yt(t,(t=>{a[e]=t,l&=~(1<<e),n&&c()}),(()=>{l|=1<<e}))));return n=!0,c(),function(){ft(u),s()}})).subscribe}}class Xe{constructor(t,e){this.checkValue(e),this.name=t,this.value=e}getName(){return this.name}subscribe(t){return this.store||(this.store=Ge(this.value)),this.store.subscribe(t)}set(t){const e=this.fromString(t);this.setValue(e)}setValue(t){this.checkValue(t),this.value=t,this.store&&this.store.set(t)}getValue(){return this.value}}const Ye={string:class extends Xe{checkValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value")}fromString(t){return t}getType(){return"string"}},number:class extends Xe{checkValue(t){if("number"!=typeof t||isNaN(t)||!isFinite(t))throw new Error("Incorrect variable value")}fromString(t){const e=Number(t);return this.checkValue(e),e}getType(){return"number"}},integer:class extends Xe{checkValue(t){if("number"!=typeof t||isNaN(t)||t>2147483647||t<n||t!==Math.round(t))throw new Error("Incorrect variable value")}fromString(t){const e=Number(t);return this.checkValue(e),e}getType(){return"integer"}},boolean:class extends Xe{checkValue(t){if(1!==t&&0!==t)throw new Error("Incorrect variable value")}fromString(t){if("1"===t)return 1;if("0"===t)return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}},color:class extends Xe{checkValue(t){if("string"!=typeof t||!A(t))throw new Error("Incorrect variable value")}fromString(t){return this.checkValue(t),t}getType(){return"color"}},url:class extends Xe{checkValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value")}fromString(t){return t}getType(){return"url"}}};function Ze(t,e,n){if(!(e in Ye))throw new Error("Unsupported variable type");return new Ye[e](t,n)}function Qe(t){return t.map(P).join(", ")}b("toString",[a],B),b("toString",[l],B),b("toString",[s],B),b("toString",[c],B),b("toString",["url"],B),b("toNumber",[a],T),b("toNumber",[i],T),b("toInteger",[l],(function(t){if(t.value>2147483647||t.value<n)throw new Error("Unable to convert value to Integer.");const e=t.value-t.value%1;return{type:a,value:e}})),b("toInteger",[i],(function(t){const e=Number(t.value);if(isNaN(e)||e%1!=0||e>2147483647||e<n)throw new Error("Unable to convert value to Integer.");return{type:a,value:e}})),b("toInteger",[s],(function(t){return{type:a,value:t.value?1:0}})),b("toBoolean",[a],(function(t){if(1!==t.value&&0!==t.value)throw new Error("Unable to convert value to Boolean.");return{type:s,value:t.value}})),b("toBoolean",[i],(function(t){if("true"!==t.value&&"false"!==t.value)throw new Error("Unable to convert value to Boolean.");return{type:s,value:"true"===t.value?1:0}})),b("encodeUri",[i],(function(t){try{return{type:i,value:encodeURIComponent(t.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),b("decodeUri",[i],(function(t){try{return{type:i,value:decodeURIComponent(t.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),b("parseUnixTime",[a],(function(t){return{type:u,value:new Date(1e3*t.value)}})),b("nowLocal",[],(function(){return{type:u,value:new Date}})),b("addMillis",[u,a],(function(t,e){return{type:u,value:new Date(t.value.getTime()+e.value)}})),b("setYear",[u,a],(function(t,e){const n=new Date(t.value);return n.setFullYear(e.value),{type:u,value:n}})),b("setMonth",[u,a],(function(t,e){if(e.value<1||e.value>12)throw new Error("Expecting month in [1..12], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setMonth(e.value-1),{type:u,value:n}})),b("setDay",[u,a],(function(t,e){const n=new Date(t.value);if(e.value<=0&&-1!==e.value||e.value>function(t){const e=new Date(t);return e.setMonth(e.getMonth()+1),e.setDate(0),e.getDate()}(n))throw new Error("Unable to set day ".concat(e.value," for date ").concat(D(t),"."));return n.setDate(-1===e.value?0:e.value),{type:u,value:n}})),b("setHours",[u,a],(function(t,e){if(e.value<0||e.value>23)throw new Error("Expecting hours in [0..23], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setHours(e.value-n.getTimezoneOffset()/60),{type:u,value:n}})),b("setMinutes",[u,a],(function(t,e){if(e.value<0||e.value>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setMinutes(e.value),{type:u,value:n}})),b("setSeconds",[u,a],(function(t,e){if(e.value<0||e.value>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setSeconds(e.value),{type:u,value:n}})),b("setMillis",[u,a],(function(t,e){if(e.value<0||e.value>999)throw new Error("Expecting millis in [0..999], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setMilliseconds(e.value),{type:u,value:n}})),b("len",[i],(function(t){return{type:a,value:t.value.length}})),b("contains",[i,i],(function(t,e){return{type:s,value:t.value.includes(e.value)?1:0}})),b("substring",[i,a,a],(function(t,e,n){if(n.value<e.value)throw new Error("Indexes should be in ascending order.");if(e.value<0||e.value>t.value.length||n.value<0||n.value>t.value.length)throw new Error("Indexes are out of bounds.");return{type:i,value:t.value.substring(e.value,n.value)}})),b("replaceAll",[i,i,i],(function(t,e,n){let r;return r=e.value?t.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(e.value),"g"),n.value):t.value,{type:i,value:r}})),b("index",[i,i],(function(t,e){return{type:a,value:t.value.indexOf(e.value)}})),b("lastIndex",[i,i],(function(t,e){return{type:a,value:t.value.lastIndexOf(e.value)}})),b("trim",[i],(function(t){return{type:i,value:t.value.trim()}})),b("trimLeft",[i],(function(t){return{type:i,value:t.value.replace(/^\s+/,"")}})),b("trimRight",[i],(function(t){return{type:i,value:t.value.replace(/\s+$/,"")}})),b("toUpperCase",[i],(function(t){return{type:i,value:t.value.toUpperCase()}})),b("toLowerCase",[i],(function(t){return{type:i,value:t.value.toLowerCase()}})),b("div",[a,a],R),b("div",[l,l],R),b("mod",[a,a],L),b("mod",[l,l],L),b("mul",[{type:a,isVararg:!0}],W),b("mul",[{type:l,isVararg:!0}],W),b("sub",[{type:a,isVararg:!0}],U),b("sub",[{type:l,isVararg:!0}],U),b("sum",[{type:a,isVararg:!0}],q),b("sum",[{type:l,isVararg:!0}],q),b("abs",[a],H),b("abs",[l],H),b("max",[{type:a,isVararg:!0}],G),b("max",[{type:l,isVararg:!0}],G),b("min",[{type:a,isVararg:!0}],K),b("min",[{type:l,isVararg:!0}],K),b("maxNumber",[],(function(){return{type:l,value:r}})),b("minNumber",[],(function(){return{type:l,value:o}})),b("maxInteger",[],(function(){return{type:a,value:2147483647}})),b("minInteger",[],(function(){return{type:a,value:n}})),b("round",[l],(function(t){const e=Math.sign(t.value);return{type:l,value:e*Math.round(Math.abs(t.value))}})),b("floor",[l],(function(t){return{type:l,value:Math.floor(t.value)}})),b("ceil",[l],(function(t){return{type:l,value:Math.ceil(t.value)}})),b("signum",[l],X),b("signum",[a],X),b("copySign",[l,l],Y),b("copySign",[a,a],Y),b("getColorAlpha",[i],tt),b("getColorAlpha",[c],tt),b("getColorRed",[i],et),b("getColorRed",[c],et),b("getColorGreen",[i],nt),b("getColorGreen",[c],nt),b("getColorBlue",[i],rt),b("getColorBlue",[c],rt),b("setColorAlpha",[i,l],ot),b("setColorAlpha",[c,l],ot),b("setColorRed",[i,l],it),b("setColorRed",[c,l],it),b("setColorGreen",[i,l],at),b("setColorGreen",[c,l],at),b("setColorBlue",[i,l],lt),b("setColorBlue",[c,l],lt),b("rgb",[l,l,l],(function(t,e,n){const r={a:255,r:255*t.value,g:255*e.value,b:255*n.value};return{type:i,value:O(r)}})),b("argb",[l,l,l,l],(function(t,e,n,r){const o={a:255*t.value,r:255*e.value,g:255*n.value,b:255*r.value};return{type:i,value:O(o)}}));const tn={StringLiteral:function(t,e){return{type:i,value:e.value}},NumberLiteral:function(t,e){return{type:l,value:e.value}},IntegerLiteral:function(t,e){return{type:a,value:e.value}},BooleanLiteral:function(t,e){return{type:s,value:e.value?1:0}},UnaryExpression:function(t,e){const n=j(en(t,e.argument));switch(e.operator){case"!":if(n.type===s)return{type:s,value:n.value?0:1};M("".concat(e.operator).concat(P(n)),"A Boolean is expected after a unary not.");case"+":case"-":const t="+"===e.operator?1:-1;if(n.type===a)return{type:a,value:n.value*t};if(n.type===l)return{type:l,value:n.value*t};M("".concat(e.operator).concat(P(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=j(en(t,e.test));if(n.type===s)return n.value?en(t,e.consequent):en(t,e.alternate);M("".concat(P(n)," ? ").concat(P(en(t,e.consequent))," : ").concat(P(en(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 en(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=D(en(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:i,value:n}},LogicalExpression:function(t,e){const n=j(en(t,e.left));if(n.type!==s&&M("".concat(P(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:s,value:0};const r=j(en(t,e.right));return r.type!==s&&M("".concat(P(n)," ").concat(e.operator," ").concat(P(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(S(r.type),".")),{type:s,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=en(t,e.left),o=en(t,e.right);if(r.type!==o.type&&M("".concat(P(r)," ").concat(e.operator," ").concat(P(o)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(S(r.type)," and ").concat(S(o.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===u&&n.type===u?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:s,value:r?1:0}}(n,r,o);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==l&&e.type!==a&&e.type!==u&&M("".concat(P(e)," ").concat(t," ").concat(P(n)),"Operator '".concat(t,"' cannot be applied to ").concat(S(e.type)," type."));const o=e.type===u?e.value.getTime():e.value,i=n.type===u?n.value.getTime():n.value;return r=">"===t?o>i:">="===t?o>=i:"<"===t?o<i:o<=i,{type:s,value:r?1:0}}(n,r,o);if("+"===n||"-"===n)return function(t,e,n){if(e.type!==i&&e.type!==l&&e.type!==a&&M("".concat(P(e)," ").concat(t," ").concat(P(n)),"Operator '".concat(t,"' cannot be applied to ").concat(S(e.type)," type.")),e.type===i)return"-"===t&&M("".concat(P(e)," - ").concat(P(n)),"Operator '".concat(t,"' cannot be applied to ").concat(S(e.type)," type.")),{type:i,value:e.value+n.value};let r="+"===t?e.value+n.value:e.value-n.value;return e.type===a&&(r=F(r)),{type:e.type,value:r}}(n,r,o);if("/"===n||"*"===n||"%"===n)return function(t,e,n){let r;if(e.type!==a&&e.type!==l&&M("".concat(P(e)," ").concat(t," ").concat(P(n)),"Operator '".concat(t,"' cannot be applied to ").concat(S(e.type)," type.")),"*"===t)r=e.value*n.value;else{if("/"!==t&&"%"!==t)throw new Error("Unsupported operation ".concat(t));0===n.value&&M("".concat(P(e)," ").concat(t," ").concat(P(n)),"Division by zero is not supported."),r="/"===t?e.value/n.value:e.value%n.value}return e.type===a&&(r=F(r)),{type:e.type,value:r}}(n,r,o);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;if(!y.has(n))throw new Error("Unknown function name: ".concat(n,"."));let r;const o=e.arguments.map((e=>en(t,e))),i=n+":"+o.map((t=>t.type)).join("#");if(_.has(i))r=_.get(i);else{const t=function(t,e){const n=y.get(t);if(!n)throw new Error("Missing function");let r=null;for(let t=0;t<n.length;++t){const o=x(n[t],e);if("match"===o.type)return n[t];r||(r=o)}if(!r)throw new Error("Missing function");return r}(n,o);if("expected"in t){const e=o.map((t=>S(t.type))).join(", "),r="".concat(n,"(").concat(Qe(o),")");"few"===t.type&&0===o.length?M(r,"Non empty argument list is required for function '".concat(n,"'.")):(t.type,M(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(...o)}catch(t){M("".concat(n,"(").concat(Qe(o),")"),t.message)}},Variable:function(t,e){const n=e.id.name,r=t.get(n);if(r)return function(t){return{type:t.getType(),value:t.getValue()}}(r);throw new Error("Variable '".concat(n,"' has value null"))}};function en(t,e){if(e.type in tn)return tn[e.type](t,e);throw new Error("Unsupported expression")}function nn(t,e){try{return en(t,e)}catch(t){return{type:"error",value:t.message}}}const rn=Symbol("root");function on(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}const an={text:"divkit-fef8",text_halign_left:"divkit-e0bf",text_halign_center:"divkit-c327",text_halign_right:"divkit-a48a",text_valign_top:"divkit-d635",text_valign_center:"divkit-e988",text_valign_bottom:"divkit-a8d7",text_width_content:"divkit-e9f3",text_height_content:"divkit-a24b",text__inner:"divkit-ae2f",text_singleline:"divkit-c706",text_truncate_none:"divkit-f885",text_multiline:"divkit-cf02",text__inner_gradient:"divkit-d36b",text__image:"divkit-b09a",text__image_hidden:"divkit-cfc5"},ln={outer:"divkit-dc5c","outer_hide-on-transition-in":"divkit-e230","outer_valign-self_top":"divkit-b302","outer_valign-self_default":"divkit-b81a","outer_valign-self_center":"divkit-a073","outer_valign-self_bottom":"divkit-a5cd","outer_halign-self_left":"divkit-e861","outer_halign-self_default":"divkit-bb7a","outer_halign-self_center":"divkit-c82e","outer_halign-self_right":"divkit-c901",outer_width_parent:"divkit-e456",outer_height_parent:"divkit-b04c","outer_width-constrained":"divkit-f7df","outer_height-constrained":"divkit-dbd5","outer_parent-halign_start":"divkit-c31a","outer_parent-halign_center":"divkit-d199","outer_parent-halign_end":"divkit-f4f6","outer_parent-valign_start":"divkit-f60c","outer_parent-valign_center":"divkit-c2a9","outer_parent-valign_end":"divkit-e9ce","outer_parent-overlap":"divkit-b0a8","outer_parent-overlap-absolute":"divkit-c646","outer_scroll-snap_center":"divkit-bdc6","outer_scroll-snap_start":"divkit-acc3",outer__border:"divkit-f031",outer_visibility_invisible:"divkit-d189",outer_visibility_gone:"divkit-c8d2","outer_has-action-animation":"divkit-f411"};function sn(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 cn(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 un(t){let e=cn(t);return"0"===e&&(e+="em"),e}function dn(t){let e=String(t);return e.indexOf("&")>-1&&(e=e.replace(/&/g,"&")),e.indexOf("<")>-1&&(e=e.replace(/</g,"<")),e.indexOf(">")>-1&&(e=e.replace(/>/g,">")),e.indexOf('"')>-1&&(e=e.replace(/"/g,""")),e}const hn=Boolean;function fn(t){if(1===t.length&&"solid"===t[0].type)return{color:C(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=C(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=>C(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:pn(t.bg.scale),pos:gn(t.bg),image:'url("'+dn(n)+'")'}}({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(",")}}function pn(t){return"fill"!==t&&t?"fit"===t?"contain":void 0:"cover"}function gn(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 mn(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}const vn=new Set(["http","https","tel","mailto","intent"]);function $n(t){return vn.has(t)}function yn(t,e){e&&t.push(e)}function _n(t,e,n){const r=[];yn(r,e[t]);for(const o in n)if(n.hasOwnProperty(o)){const i=n[o];i&&yn(r,e["".concat(t,"_").concat(o)+("string"==typeof i?"_".concat(i):"")])}return r.join(" ")}const bn=function(t,e){var n;let{json:r,origJson:o,templateContext:i,rootCtx:a}=e;return null===(n=a.registerComponent)||void 0===n||n.call(a,{node:t,json:r,origJson:o,templateContext:i}),{destroy(){var e;null===(e=a.unregisterComponent)||void 0===e||e.call(a,{node:t})}}},xn=Symbol("state");function wn(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function kn(t){return wn(t)&&t>=0}function Cn(t,e,n,r){const o=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<o.length;++t)if(o[t]&&!kn(o[t]))return r;return function(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=>cn((t||e)/n*10))).join(" ")}(t,e,n)}function En(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]&&!kn(n[t]))return e;return function(t){return cn(t.top||0)+" "+cn(t.right||0)+" "+cn(t.bottom||0)+" "+cn(t.left||0)}(t)}function An(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const jn=Object.prototype.hasOwnProperty;function Vn(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 o=n[r];if(!jn.call(e,o)||!Vn(t[o],e[o]))return!1}return!0}function Dn(t,e){return Vn(t,e)?e:t}function Pn(){}const Sn=Symbol("action");function In(t){let e,n,r,o,i,a,l;const s=t[12].default,c=bt(s,t,t[11],null);let u=[{class:n=""+(t[0]+(t[7]?" ".concat(t[4]?"":"divkit-e1c6"," ").concat("divkit-b338"):""))},{style:t[1]},{role:r=t[7]?"button":null},t[2]],d={};for(let t=0;t<u.length;t+=1)d=ut(d,u[t]);return{c(){e=Bt("span"),c&&c.c(),this.h()},l(t){e=Yt(t,"SPAN",{class:!0,style:!0,role:!0});var n=Gt(e);c&&c.l(n),n.forEach(Jt),this.h()},h(){Ht(e,d)},m(n,r){Mt(n,e,r),c&&c.m(e,null),i=!0,a||(l=[Et(o=t[3].call(null,e)),Ut(e,"click",(function(){pt(t[7]?t[8]:null)&&(t[7]?t[8]:null).apply(this,arguments)})),Ut(e,"click",t[15]),Ut(e,"keydown",t[16])],a=!0)},p(o,a){t=o,c&&c.p&&(!i||2048&a)&&kt(c,s,t,t[11],i?wt(s,t[11],a,null):Ct(t[11]),null),Ht(e,d=Oe(u,[(!i||145&a&&n!==(n=""+(t[0]+(t[7]?" ".concat(t[4]?"":"divkit-e1c6"," ").concat("divkit-b338"):""))))&&{class:n},(!i||2&a)&&{style:t[1]},(!i||128&a&&r!==(r=t[7]?"button":null))&&{role:r},4&a&&t[2]]))},i(t){i||(Ie(c,t),i=!0)},o(t){Fe(c,t),i=!1},d(t){t&&Jt(e),c&&c.d(t),a=!1,ft(l)}}}function Fn(t){let e,n,r,o,i,a;const l=t[12].default,s=bt(l,t,t[11],null);let c=[{href:t[5]},{target:t[6]},{style:t[1]},{class:n=t[0]+" "+(t[4]?"":"divkit-e1c6")},t[2]],u={};for(let t=0;t<c.length;t+=1)u=ut(u,c[t]);return{c(){e=Bt("a"),s&&s.c(),this.h()},l(t){e=Yt(t,"A",{href:!0,target:!0,style:!0,class:!0});var n=Gt(e);s&&s.l(n),n.forEach(Jt),this.h()},h(){Ht(e,u)},m(n,l){Mt(n,e,l),s&&s.m(e,null),o=!0,i||(a=[Et(r=t[3].call(null,e)),Ut(e,"click",t[8]),Ut(e,"click",t[13]),Ut(e,"keydown",t[14])],i=!0)},p(t,r){s&&s.p&&(!o||2048&r)&&kt(s,l,t,t[11],o?wt(l,t[11],r,null):Ct(t[11]),null),Ht(e,u=Oe(c,[(!o||32&r)&&{href:t[5]},(!o||64&r)&&{target:t[6]},(!o||2&r)&&{style:t[1]},(!o||17&r&&n!==(n=t[0]+" "+(t[4]?"":"divkit-e1c6")))&&{class:n},4&r&&t[2]]))},i(t){o||(Ie(s,t),o=!0)},o(t){Fe(s,t),o=!1},d(t){t&&Jt(e),s&&s.d(t),i=!1,ft(a)}}}function Nn(t){let e,n,r,o;const i=[Fn,In],a=[];function l(t,e){return t[5]?0:1}return e=l(t),n=a[e]=i[e](t),{c(){n.c(),r=Wt()},l(t){n.l(t),r=Wt()},m(t,n){a[e].m(t,n),Mt(t,r,n),o=!0},p(t,o){let[s]=o,c=e;e=l(t),e===c?a[e].p(t,s):(Pe(),Fe(a[c],1,1,(()=>{a[c]=null})),Se(),n=a[e],n?n.p(t,s):(n=a[e]=i[e](t),n.c()),Ie(n,1),n.m(r.parentNode,r))},i(t){o||(Ie(n),o=!0)},o(t){Fe(n),o=!1},d(t){a[e].d(t),t&&Jt(r)}}}function zn(t,e,n){let{$$slots:r={},$$scope:o}=e,{actions:i}=e,{cls:a=""}=e,{style:l=null}=e,{attrs:s}=e,{use:c=Pn}=e,{customAction:u=null}=e,{hasActionAnimation:d=!1}=e;const h=he(rn),f=he(Sn);de(Sn,{hasAction:()=>Boolean(f.hasAction()||(null==i?void 0:i.length))});let p,g="";if(Array.isArray(i)&&(null==i?void 0:i.length))for(let t=0;t<i.length;++t){const e=i[t].url;if(e){g=e,p=i[t].target||void 0;break}}Array.isArray(i)&&(null==i?void 0:i.length)&&f.hasAction()&&(g="",h.logError(on(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:i}})));let m=Boolean(u);return g&&!$n(mn(g))&&(g="",m=!0),t.$$set=t=>{"actions"in t&&n(9,i=t.actions),"cls"in t&&n(0,a=t.cls),"style"in t&&n(1,l=t.style),"attrs"in t&&n(2,s=t.attrs),"use"in t&&n(3,c=t.use),"customAction"in t&&n(10,u=t.customAction),"hasActionAnimation"in t&&n(4,d=t.hasActionAnimation),"$$scope"in t&&n(11,o=t.$$scope)},[a,l,s,c,d,g,p,m,function(t){f.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==u?void 0:u(t))?t.preventDefault():i&&(i.forEach((e=>{const n=e.url;if(n){const r=mn(n);r&&!$n(r)&&(t.preventDefault(),"div-action"===r?h.execAction(e):e.log_id&&h.execCustomAction(e))}})),i.forEach((t=>{h.logStat("click",t)}))))},i,u,o,r,function(e){fe.call(this,t,e)},function(e){fe.call(this,t,e)},function(e){fe.call(this,t,e)},function(e){fe.call(this,t,e)}]}const Mn=class extends qe{constructor(t){super(),Ue(this,t,zn,Nn,vt,{actions:9,cls:0,style:1,attrs:2,use:3,customAction:10,hasActionAnimation:4})}};function Jn(t,e,n){const r=t.slice();return r[3]=e[n],r}function On(t){let e,n,r;return{c(){e=Bt("span"),this.h()},l(t){e=Yt(t,"SPAN",{class:!0,style:!0}),Gt(e).forEach(Jt),this.h()},h(){qt(e,"class",n="divkit-ce67"),qt(e,"style",r=sn(t[3].style))},m(t,n){Mt(t,e,n)},p:st,d(t){t&&Jt(e)}}}function Bn(t){let e,n,r,o,i,a;return{c(){e=Bt("img"),this.h()},l(t){e=Yt(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){mt(e.src,n=t[3].image_url)||qt(e,"src",n),qt(e,"alt",""),qt(e,"aria-hidden","true"),qt(e,"loading","lazy"),qt(e,"decoding","async"),qt(e,"class",r="divkit-ce67"),qt(e,"style",o=sn(t[3].style))},m(n,r){Mt(n,e,r),i||(a=Ut(e,"error",t[1]),i=!0)},p:st,d(t){t&&Jt(e),i=!1,a()}}}function Tn(t){let e,n=function(t,e){return t[3].image_url?Bn:On}(t),r=n(t);return{c(){r.c(),e=Wt()},l(t){r.l(t),e=Wt()},m(t,n){r.m(t,n),Mt(t,e,n)},p(t,e){r.p(t,e)},d(t){r.d(t),t&&Jt(e)}}}function Rn(t){let e,n,r=t[0],o=[];for(let e=0;e<r.length;e+=1)o[e]=Tn(Jn(t,r,e));return{c(){e=Bt("span");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=Yt(t,"SPAN",{class:!0});var n=Gt(e);for(let t=0;t<o.length;t+=1)o[t].l(n);n.forEach(Jt),this.h()},h(){qt(e,"class",n="divkit-f9ac")},m(t,n){Mt(t,e,n);for(let t=0;t<o.length;t+=1)o[t].m(e,null)},p(t,n){let[i]=n;if(3&i){let n;for(r=t[0],n=0;n<r.length;n+=1){const a=Jn(t,r,n);o[n]?o[n].p(a,i):(o[n]=Tn(a),o[n].c(),o[n].m(e,null))}for(;n<o.length;n+=1)o[n].d(1);o.length=r.length}},i:st,o:st,d(t){t&&Jt(e),Ot(o,t)}}}function Ln(t,e,n){let{background:r=[]}=e;const o=r.map((t=>{const e={},n=fn([t]),r={style:e};return"solid"===t.type&&(e["background-color"]=n.color),"gradient"===t.type&&(e["background-image"]=n.image),"image"===t.type&&(e.opacity=Number(t.alpha),r.image_url=t.image_url,e["object-fit"]=n.size,e["object-position"]=n.position),r}));return t.$$set=t=>{"background"in t&&n(2,r=t.background)},[o,function(t){t.target&&"classList"in t.target&&t.target.classList.add("divkit-fc42")},r]}const Wn=class extends qe{constructor(t){super(),Ue(this,t,Ln,Rn,vt,{background:2})}};function Un(t){let e,n;return e=new Wn({props:{background:t[4]}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.background=t[4]),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function qn(t){let e,n,r;return{c(){e=Bt("span"),this.h()},l(t){e=Yt(t,"SPAN",{class:!0,style:!0}),Gt(e).forEach(Jt),this.h()},h(){qt(e,"class",n=ln.outer__border),qt(e,"style",r=sn(t[1]))},m(t,n){Mt(t,e,n)},p(t,n){2&n[0]&&r!==(r=sn(t[1]))&&qt(e,"style",r)},d(t){t&&Jt(e)}}}function Hn(t){let e,n,r,o=t[2]&&Un(t);const i=t[84].default,a=bt(i,t,t[85],null);let l=t[6]&&qn(t);return{c(){o&&o.c(),e=Wt(),a&&a.c(),l&&l.c(),n=Wt()},l(t){o&&o.l(t),e=Wt(),a&&a.l(t),l&&l.l(t),n=Wt()},m(t,i){o&&o.m(t,i),Mt(t,e,i),a&&a.m(t,i),l&&l.m(t,i),Mt(t,n,i),r=!0},p(t,s){t[2]?o?(o.p(t,s),4&s[0]&&Ie(o,1)):(o=Un(t),o.c(),Ie(o,1),o.m(e.parentNode,e)):o&&(Pe(),Fe(o,1,1,(()=>{o=null})),Se()),a&&a.p&&(!r||8388608&s[2])&&kt(a,i,t,t[85],r?wt(i,t[85],s,null):Ct(t[85]),null),t[6]?l?l.p(t,s):(l=qn(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(t){r||(Ie(o),Ie(a,t),r=!0)},o(t){Fe(o),Fe(a,t),r=!1},d(t){o&&o.d(t),t&&Jt(e),a&&a.d(t),l&&l.d(t),t&&Jt(n)}}}function Gn(t){let e,n;return e=new Mn({props:{use:t[24],cls:t[0]+" "+_n("outer",ln,t[9]),style:sn(t[8]),actions:t[7],attrs:t[5],hasActionAnimation:Boolean(t[3]),$$slots:{default:[Hn]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};513&n[0]&&(r.cls=t[0]+" "+_n("outer",ln,t[9])),256&n[0]&&(r.style=sn(t[8])),128&n[0]&&(r.actions=t[7]),32&n[0]&&(r.attrs=t[5]),8&n[0]&&(r.hasActionAnimation=Boolean(t[3])),86&n[0]|8388608&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function Kn(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,E,A,j,V,D,P,S,I,F,N,z,M=st,J=st,O=st,B=st,T=st,R=st,L=st,W=st,U=st,q=st,H=st,G=st,K=st,X=st;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X()));let{$$slots:Y={},$$scope:Z}=e;var Q,tt,et,nt,rt,ot;let{json:it={}}=e,{origJson:at}=e,{templateContext:lt}=e,{cls:ct=""}=e,{style:ut}=e,{layoutParams:dt={}}=e,{customDescription:ht=!1}=e,{customPaddings:ft=!1}=e,{customActions:pt=""}=e,{forceWidth:gt=!1}=e,{forceHeight:mt=!1}=e;const vt=he(rn),$t=he(xn);let _t,bt,xt,wt,kt,Ct,Et,At={},jt={},Vt=!1,Dt=1,Pt="transparent",St=0,It="",Ft="",Nt="",zt={},Mt=0,Jt="default",Ot={},Bt=0,Tt="default",Rt=1;const Lt=it.transition_triggers||["state_change","visibility_change"],Wt=-1!==Lt.indexOf("state_change"),Ut=-1!==Lt.indexOf("visibility_change");let qt,Ht,Gt,Kt,Xt,Yt,Zt,Qt=[],te="";function ee(t){var e;const r=t.start_value||1,o=t.end_value||1,i=t.start_delay||0,a=t.duration||300,l=function(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:"ease_in_out"}(t.interpolator).replace(/_/g,"-");switch(t.name){case"fade":return n(62,Kt=r),n(63,Xt=o),"opacity ".concat(a,"ms ").concat(l," ").concat(i,"ms");case"scale":return n(64,Yt=r),n(65,Zt=o),"transform ".concat(a,"ms ").concat(l," ").concat(i,"ms");case"set":return(null===(e=t.items)||void 0===e?void 0:e.length)?t.items.map(ee).join(", "):(vt.logError(on(new Error("Empty items value for action_animation with name='set'"))),"");default:return vt.logError(on(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}let ne=!1,re="visible";return t.$$set=t=>{"json"in t&&n(25,it=t.json),"origJson"in t&&n(26,at=t.origJson),"templateContext"in t&&n(27,lt=t.templateContext),"cls"in t&&n(0,ct=t.cls),"style"in t&&n(28,ut=t.style),"layoutParams"in t&&n(29,dt=t.layoutParams),"customDescription"in t&&n(30,ht=t.customDescription),"customPaddings"in t&&n(31,ft=t.customPaddings),"customActions"in t&&n(32,pt=t.customActions),"forceWidth"in t&&n(33,gt=t.forceWidth),"forceHeight"in t&&n(34,mt=t.forceHeight),"$$scope"in t&&n(85,Z=t.$$scope)},t.$$.update=()=>{if(33554432&t.$$.dirty[0]&&(n(23,r=vt.getDerivedFromVars(it.border)),X(),X=yt(r,(t=>n(83,z=t)))),2&t.$$.dirty[0]|32752&t.$$.dirty[1]|2097152&t.$$.dirty[2]){let t={},e={},r=!1;if(z){if(z.has_shadow){const e=z.shadow;t["box-shadow"]=e?cn((null===n(36,tt=null===n(35,Q=e.offset)||void 0===Q?void 0:Q.x)||void 0===tt?void 0:tt.value)||0)+" "+cn((null===n(38,nt=null===n(37,et=e.offset)||void 0===et?void 0:et.y)||void 0===nt?void 0:nt.value)||0)+" "+cn(null!==n(39,rt=e.blur)&&void 0!==rt?rt:2)+" "+C(e.color||"#000000",null!==n(40,ot=e.alpha)&&void 0!==ot?ot:.19):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}z.stroke&&(r=!0,n(42,Dt=An(z.stroke.width,Dt)),n(43,Pt=C(z.stroke.color,1,Pt)),e.border="".concat(cn(Dt)," solid ").concat(Pt)),z.corners_radius?(n(45,It=Cn(z.corners_radius,0,10,It)),e["border-radius"]=t["border-radius"]=It):z.corner_radius&&(n(44,St=An(z.corner_radius,St)),e["border-radius"]=t["border-radius"]=cn(St))}n(41,At=Dn(t,At)),n(1,jt=Dn(e,jt)),n(6,Vt=r)}if(33554432&t.$$.dirty[0]&&(n(22,o=vt.getDerivedFromVars(it.paddings)),K(),K=yt(o,(t=>n(82,N=t)))),32769&t.$$.dirty[1]|1048576&t.$$.dirty[2]&&n(46,Ft=En(N&&!ft?N:void 0,Ft)),33554432&t.$$.dirty[0]&&(n(21,i=vt.getDerivedFromVars(it.margins)),H(),H=yt(i,(t=>n(80,I=t)))),65536&t.$$.dirty[1]|262144&t.$$.dirty[2]&&n(47,Nt=En(I,Nt)),33554432&t.$$.dirty[0]&&(n(20,a=vt.getDerivedFromVars(it.width)),U(),U=yt(a,(t=>n(78,P=t)))),33554432&t.$$.dirty[0]&&(n(19,l=vt.getDerivedFromVars(it.alignment_horizontal)),G(),G=yt(l,(t=>n(81,F=t)))),536870912&t.$$.dirty[0]|1703940&t.$$.dirty[1]|851968&t.$$.dirty[2]){let t,e,r={};P?"fixed"===P.type?(n(50,Mt=An(P.value,Mt)),e=cn(Mt)):"wrap_content"===P.type||!dt.overlapParent&&"match_parent"===P.type&&dt.parentHorizontalWrapContent?(t="content",("wrap_content"===P.type&&P.constrained||"match_parent"===P.type&&dt.parentHorizontalWrapContent)&&(r["width-constrained"]=!0)):"match_parent"===P.type&&(t="parent","vertical"===dt.parentLayoutOrientation&&(e="calc(100% - ".concat(un(((null==I?void 0:I.left)||0)+((null==I?void 0:I.right)||0)),")"))):t="parent","content"===t&>&&(t="parent",vt.logError(on(new Error("Incorrect usage of width with value 'wrap_content'"),{level:"warn"}))),t&&(r.width=t);const o=F;"left"===o||"center"===o||"right"===o?r["halign-self"]=n(51,Jt=o):(r["halign-self"]=Jt,"parent"!==t&&dt.parentHAlign&&(r["parent-halign"]=dt.parentHAlign)),n(49,xt=e),n(48,zt=Dn(r,zt))}if(33554432&t.$$.dirty[0]&&(n(18,s=vt.getDerivedFromVars(it.height)),W(),W=yt(s,(t=>n(77,D=t)))),33554432&t.$$.dirty[0]&&(n(17,c=vt.getDerivedFromVars(it.alignment_vertical)),q(),q=yt(c,(t=>n(79,S=t)))),536870912&t.$$.dirty[0]|27262984&t.$$.dirty[1]|425984&t.$$.dirty[2]){let t,e,r={};D?"fixed"===D.type?(n(54,Bt=An(D.value,Bt)),e=cn(Bt)):"wrap_content"===D.type||!dt.overlapParent&&"match_parent"===D.type&&dt.parentVerticalWrapContent?(t="content",("wrap_content"===D.type&&D.constrained||"match_parent"===D.type&&dt.parentVerticalWrapContent)&&(r["height-constrained"]=!0)):"match_parent"===D.type&&(t="parent","horizontal"===dt.parentLayoutOrientation&&(e="calc(100% - ".concat(un(((null==I?void 0:I.top)||0)+((null==I?void 0:I.bottom)||0)),")"))):t="content","content"===t&&mt&&(t="parent",vt.logError(on(new Error("Incorrect usage of height with value 'wrap_content'"),{level:"warn"}))),t&&(r.height=t);const o=S;"top"===o||"center"===o||"bottom"===o?r["valign-self"]=n(55,Tt=o):(r["valign-self"]=Tt,"parent"!==t&&dt.parentVAlign&&(r["parent-valign"]=dt.parentVAlign)),n(53,wt=e),n(52,Ot=Dn(r,Ot))}var e,Y;if(536870912&t.$$.dirty[0]&&n(70,u=!!dt.overlapParent||void 0),536870912&t.$$.dirty[0]|98304&t.$$.dirty[2]&&n(69,d=dt.overlapParent&&(!P||"match_parent"===P.type)&&"match_parent"===(null==D?void 0:D.type)),536870912&t.$$.dirty[0]&&n(68,h=dt.gridArea?"".concat(dt.gridArea.y+1,"/").concat(dt.gridArea.x+1,"/span ").concat(dt.gridArea.rowSpan,"/span ").concat(dt.gridArea.colSpan):void 0),33554432&t.$$.dirty[0]&&(n(16,f=vt.getDerivedFromVars(it.alpha)),L(),L=yt(f,(t=>n(76,V=t)))),33554432&t.$$.dirty[1]|16384&t.$$.dirty[2]&&(n(56,(Y=Rt,Rt=!kn(e=V)||void 0===e||e>1?Y:Number(e))),n(57,kt=1===Rt?void 0:Rt)),33554432&t.$$.dirty[0]&&(n(15,p=vt.getDerivedFromVars(it.accessibility)),R(),R=yt(p,(t=>n(75,j=t)))),1073741824&t.$$.dirty[0]|8192&t.$$.dirty[2]&&(n(5,bt=void 0),j&&!ht&&j.description&&(n(5,bt={}),n(5,bt["aria-label"]=j.description,bt))),33554432&t.$$.dirty[0]&&(n(14,g=vt.getDerivedFromVars(it.background)),T(),T=yt(g,(t=>n(4,A=t)))),20&t.$$.dirty[0]&&(n(58,Ct={}),n(2,Et=!1),A&&(n(2,Et=A.some((t=>"image"===t.type))),!Et))){const t=fn(A);n(58,Ct["background-color"]=t.color,Ct),n(58,Ct["background-image"]=t.image,Ct),n(58,Ct["background-size"]=t.size,Ct),n(58,Ct["background-position"]=t.position,Ct),n(58,Ct["background-repeat"]="no-repeat",Ct)}if(33554432&t.$$.dirty[0]&&(n(59,qt=void 0),Wt&&it.transition_in&&vt.isRunning("stateChange")&&n(59,qt=!0)),33554432&t.$$.dirty[0]&&(n(61,Gt=void 0),Wt&&it.transition_change&&vt.isRunning("stateChange")&&$t.hasTransitionChange(it.id)&&n(61,Gt=!0)),33554432&t.$$.dirty[0]&&(n(13,m=vt.getDerivedFromVars(it.action)),O(),O=yt(m,(t=>n(73,k=t)))),33554432&t.$$.dirty[0]&&(n(12,v=vt.getDerivedFromVars(it.actions)),B(),B=yt(v,(t=>n(74,E=t)))),2&t.$$.dirty[1]|6144&t.$$.dirty[2]){let t=E||k&&[k]||[];Array.isArray(t)?t.length&&pt&&(t=[],vt.logError(on(new Error('Cannot use action on component "'.concat(pt,'"'))))):(t=[],vt.logError(on(new Error("Actions should be array")))),n(7,Qt=t)}if(33554432&t.$$.dirty[0]&&(n(11,$=vt.getDerivedFromVars(it.action_animation)),J(),J=yt($,(t=>n(72,w=t)))),1024&t.$$.dirty[2]&&w&&n(3,te=ee(w)),33554432&t.$$.dirty[0]&&(n(10,y=vt.getDerivedFromVars(it.visibility)),M(),M=yt(y,(t=>n(71,x=t)))),560&t.$$.dirty[2]){const t=re,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(x,re);t!==e&&(!ne||"visible"!==re&&"visible"!==e?n(67,re=e):async function(t){n(67,re=t);const e="visible"===t?"in":"out",r="in"===e?it.transition_in:it.transition_out;Ut&&r&&(await be(),"in"===e&&n(60,Ht=!0),$t.runVisibilityTransition(Object.assign(Object.assign({},it),{visibility:"visible"}),lt,r,_t,e).then((()=>{"in"===e&&n(60,Ht=!1)})).catch((t=>{throw"in"===e&&n(60,Ht=!1),t})))}(e)),ne||n(66,ne=!0)}536870920&t.$$.dirty[0]|1881276416&t.$$.dirty[1]|416&t.$$.dirty[2]&&n(9,_=Object.assign(Object.assign(Object.assign({},zt),Ot),{"parent-overlap":u,"parent-overlap-absolute":d,"scroll-snap":dt.scrollSnap,"hide-on-transition-in":qt||Ht||Gt,visibility:re,"has-action-animation":Boolean(te)})),268435464&t.$$.dirty[0]|205882368&t.$$.dirty[1]|79&t.$$.dirty[2]&&n(8,b=Object.assign(Object.assign(Object.assign(Object.assign({},ut),Ct),At),{width:xt,height:wt,"grid-area":h,padding:Ft,margin:Nt,opacity:kt,transition:te,"--divkit-animation-opacity-start":Kt,"--divkit-animation-opacity-end":Xt,"--divkit-animation-scale-start":Yt,"--divkit-animation-scale-end":Zt}))},[ct,jt,Et,te,A,bt,Vt,Qt,b,_,y,$,v,m,g,p,f,c,s,l,a,i,o,r,function(t){if(_t=t,Wt&&it.transition_in&&$t.registerChildWithTransitionIn(it,lt,it.transition_in,t).then((()=>{n(59,qt=!1)})).catch((t=>{throw n(59,qt=!1),t})),Wt&&it.transition_out&&$t.registerChildWithTransitionOut(it,lt,it.transition_out,t),Wt&&it.transition_change&&$t.registerChildWithTransitionChange(it,lt,it.transition_change,t).then((()=>{n(61,Gt=!1)})).catch((t=>{throw n(61,Gt=!1),t})),function(t,e){let{visibilityActions:n,rootCtx:r}=e;if(null==n||!n.length)return;const o=n.map((t=>({action:t,visible:!1,count:0,finished:!1}))),i=[...new Set([...n.map((t=>(t.visibility_percentage||50)/100))])];new IntersectionObserver((t=>{t.forEach((t=>{o.forEach((e=>{const n=t.intersectionRatio>=(e.action.visibility_percentage||50)/100;!e.visible&&n?e.finished||(e.timer=setTimeout((()=>{++e.count;const t=0===e.action.log_limit?1/0:e.action.log_limit||1;++e.count>=t&&(e.finished=!0);const n=e.action.url;if(n){const t=mn(n);t&&!$n(t)&&("div-action"===t?r.execAction(e.action):e.action.log_id&&r.execCustomAction(e.action))}r.logStat("visible",e.action)}),e.action.visibility_duration||800)):n||e.timer&&clearTimeout(e.timer),e.visible=n}))}))}),{threshold:i}).observe(t)}(t,{visibilityActions:vt.getJsonWithVars(it.visibility_actions||it.visibility_action&&[it.visibility_action]),rootCtx:vt}),bn){const e=bn(t,{json:it,origJson:at,rootCtx:vt,templateContext:lt});return{destroy(){e.destroy()}}}},it,at,lt,ut,dt,ht,ft,pt,gt,mt,Q,tt,et,nt,rt,ot,At,Dt,Pt,St,It,Ft,Nt,zt,xt,Mt,Jt,Ot,wt,Bt,Tt,Rt,kt,Ct,qt,Ht,Gt,Kt,Xt,Yt,Zt,ne,re,h,d,u,x,w,k,E,j,V,D,P,S,I,F,N,z,Y,Z]}const Xn=class extends qe{constructor(t){super(),Ue(this,t,Kn,Gn,vt,{json:25,origJson:26,templateContext:27,cls:0,style:28,layoutParams:29,customDescription:30,customPaddings:31,customActions:32,forceWidth:33,forceHeight:34},null,[-1,-1,-1,-1])}},Yn={"text-range":"divkit-e716","text-range_singleline":"divkit-a0c8","text-range__top-offset":"divkit-c590","text-range_decoration_both":"divkit-bf15","text-range_decoration_underline":"divkit-b1ec","text-range_decoration_strike":"divkit-d25f","text-range_decoration_none":"divkit-e2dd"};function Zn(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function Qn(t){return wn(t)&&t>0}function tr(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function er(t,e){return tr(t)||e}function nr(t){let e,n;return{c(){e=Bt("span"),this.h()},l(t){e=Yt(t,"SPAN",{class:!0}),Gt(e).forEach(Jt),this.h()},h(){qt(e,"class",n=Yn["text-range__top-offset"]),ne(e,"margin-top",t[4],!1)},m(t,n){Mt(t,e,n)},p(t,n){16&n&&ne(e,"margin-top",t[4],!1)},d(t){t&&Jt(e)}}}function rr(t){let e;return{c(){e=Rt(t[0])},l(n){e=Qt(n,t[0])},m(t,n){Mt(t,e,n)},p(t,n){1&n&&ee(e,t[0])},d(t){t&&Jt(e)}}}function or(t){let e,n,r,o=t[4]&&nr(t);return n=new Mn({props:{cls:_n("text-range",Yn,t[3]),actions:t[1],style:sn(t[2]),$$slots:{default:[rr]},$$scope:{ctx:t}}}),{c(){o&&o.c(),e=Wt(),Te(n.$$.fragment)},l(t){o&&o.l(t),e=Wt(),Re(n.$$.fragment,t)},m(t,i){o&&o.m(t,i),Mt(t,e,i),Le(n,t,i),r=!0},p(t,r){let[i]=r;t[4]?o?o.p(t,i):(o=nr(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const a={};8&i&&(a.cls=_n("text-range",Yn,t[3])),2&i&&(a.actions=t[1]),4&i&&(a.style=sn(t[2])),16385&i&&(a.$$scope={dirty:i,ctx:t}),n.$set(a)},i(t){r||(Ie(n.$$.fragment,t),r=!0)},o(t){Fe(n.$$.fragment,t),r=!1},d(t){o&&o.d(t),t&&Jt(e),We(n,t)}}}function ir(t,e,n){let r,o,i,a,{text:l}=e,{rootFontSize:s}=e,{textStyles:c={}}=e,{singleline:u=!1}=e,{actions:d}=e,h="none",f=12,p=1.25,g="",m="";return t.$$set=t=>{"text"in t&&n(0,l=t.text),"rootFontSize"in t&&n(5,s=t.rootFontSize),"textStyles"in t&&n(6,c=t.textStyles),"singleline"in t&&n(7,u=t.singleline),"actions"in t&&n(1,d=t.actions)},t.$$.update=()=>{if(64&t.$$.dirty){let t="none";(c.underline||c.strike)&&("single"===c.underline&&"single"===c.strike?t="both":"single"===c.underline?t="underline":"single"===c.strike&&(t="strike")),n(8,h=t)}576&t.$$.dirty&&n(9,f=Zn(c.font_size,f)),576&t.$$.dirty&&Qn(c.line_height)&&n(10,p=Number(c.line_height)/f),64&t.$$.dirty&&kn(c.letter_spacing)&&n(11,g=cn(c.letter_spacing)),4160&t.$$.dirty&&n(12,a=er(c.font_weight,a)),8256&t.$$.dirty&&n(13,m=C(c.text_color,1,m)),64&t.$$.dirty&&n(4,r=c.top_offset?cn(c.top_offset):""),384&t.$$.dirty&&n(3,o={singleline:u,decoration:h}),15904&t.$$.dirty&&n(2,i={"font-size":cn(10*f/s),"line-height":p,"letter-spacing":g,"font-weight":a,color:m})},[l,d,i,o,r,s,c,u,h,f,p,g,a,m]}const ar=class extends qe{constructor(t){super(),Ue(this,t,ir,or,vt,{text:0,rootFontSize:5,textStyles:6,singleline:7,actions:1})}};function lr(t,e){return"left"===t||"center"===t||"right"===t?t:e}function sr(t,e){return"top"===t||"center"===t||"bottom"===t?t:e}const{Boolean:cr}=Me;function ur(t,e,n){const r=t.slice();return r[59]=e[n],r[61]=n,r}function dr(t){let e,n;return e=new Xn({props:{cls:_n("text",an,t[13])+" "+(t[6]?"":"divkit-b338"),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[$r]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};8256&n[0]&&(r.cls=_n("text",an,t[13])+" "+(t[6]?"":"divkit-b338")),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]),536878768&n[0]|1&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function hr(t){let e,n;return e=new ar({props:{text:t[4],rootFontSize:t[5],textStyles:t[29],singleline:t[7]}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),536870912&n[0]&&(r.textStyles=t[29]),128&n[0]&&(r.singleline=t[7]),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function fr(t){let e,n,r=t[10],o=[];for(let e=0;e<r.length;e+=1)o[e]=vr(ur(t,r,e));const i=t=>Fe(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Wt()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Wt()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);Mt(t,e,r),n=!0},p(t,n){if(1073743520&n[0]){let a;for(r=t[10],a=0;a<r.length;a+=1){const i=ur(t,r,a);o[a]?(o[a].p(i,n),Ie(o[a],1)):(o[a]=vr(i),o[a].c(),Ie(o[a],1),o[a].m(e.parentNode,e))}for(Pe(),a=r.length;a<o.length;a+=1)i(a);Se()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ie(o[t]);n=!0}},o(t){o=o.filter(cr);for(let t=0;t<o.length;t+=1)Fe(o[t]);n=!1},d(t){Ot(o,t),t&&Jt(e)}}}function pr(t){let e,n,r,o,i,a,l,s;return{c(){e=Bt("span"),n=Bt("img"),this.h()},l(t){e=Yt(t,"SPAN",{style:!0});var r=Gt(e);n=Yt(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),r.forEach(Jt),this.h()},h(){qt(n,"class",r=an.text__image),mt(n.src,o=t[59].image.url)||qt(n,"src",o),qt(n,"loading","lazy"),qt(n,"decoding","async"),qt(n,"aria-hidden","true"),qt(n,"alt",""),qt(n,"style",i=sn({width:t[59].image.width,height:t[59].image.height,"margin-top":t[9]?"-".concat(t[59].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[59].image.height):void 0,filter:t[59].image.svgFilterId?"url(#".concat(t[59].image.svgFilterId,")"):void 0})),qt(e,"style",a=sn(t[59].image.wrapperStyle))},m(r,o){Mt(r,e,o),zt(e,n),l||(s=Ut(n,"error",t[30]),l=!0)},p(t,r){1024&r[0]&&!mt(n.src,o=t[59].image.url)&&qt(n,"src",o),1536&r[0]&&i!==(i=sn({width:t[59].image.width,height:t[59].image.height,"margin-top":t[9]?"-".concat(t[59].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[59].image.height):void 0,filter:t[59].image.svgFilterId?"url(#".concat(t[59].image.svgFilterId,")"):void 0}))&&qt(n,"style",i),1024&r[0]&&a!==(a=sn(t[59].image.wrapperStyle))&&qt(e,"style",a)},i:st,o:st,d(t){t&&Jt(e),l=!1,s()}}}function gr(t){let e,n,r=t[59].text&&mr(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){t[59].text?r?(r.p(t,n),1024&n[0]&&Ie(r,1)):(r=mr(t),r.c(),Ie(r,1),r.m(e.parentNode,e)):r&&(Pe(),Fe(r,1,1,(()=>{r=null})),Se())},i(t){n||(Ie(r),n=!0)},o(t){Fe(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function mr(t){let e,n;return e=new ar({props:{text:t[59].text,rootFontSize:t[5],textStyles:t[59].textStyles,singleline:t[7],actions:t[59].actions}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.text=t[59].text),32&n[0]&&(r.rootFontSize=t[5]),1024&n[0]&&(r.textStyles=t[59].textStyles),128&n[0]&&(r.singleline=t[7]),1024&n[0]&&(r.actions=t[59].actions),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function vr(t){let e,n,r,o;const i=[gr,pr],a=[];function l(t,e){return"text"in t[59]?0:t[59].image?1:-1}return~(e=l(t))&&(n=a[e]=i[e](t)),{c(){n&&n.c(),r=Wt()},l(t){n&&n.l(t),r=Wt()},m(t,n){~e&&a[e].m(t,n),Mt(t,r,n),o=!0},p(t,o){let s=e;e=l(t),e===s?~e&&a[e].p(t,o):(n&&(Pe(),Fe(a[s],1,1,(()=>{a[s]=null})),Se()),~e?(n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Ie(n,1),n.m(r.parentNode,r)):n=null)},i(t){o||(Ie(n),o=!0)},o(t){Fe(n),o=!1},d(t){~e&&a[e].d(t),t&&Jt(r)}}}function $r(t){let e,n,r,o,i,a;const l=[fr,hr],s=[];function c(t,e){return t[10].length?0:1}return n=c(t),r=s[n]=l[n](t),{c(){e=Bt("span"),r.c(),this.h()},l(t){e=Yt(t,"SPAN",{class:!0,style:!0});var n=Gt(e);r.l(n),n.forEach(Jt),this.h()},h(){qt(e,"class",o=_n("text__inner",an,t[12])),qt(e,"style",i=sn(t[11]))},m(t,r){Mt(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):(Pe(),Fe(s[d],1,1,(()=>{s[d]=null})),Se(),r=s[n],r?r.p(t,u):(r=s[n]=l[n](t),r.c()),Ie(r,1),r.m(e,null)),(!a||4096&u[0]&&o!==(o=_n("text__inner",an,t[12])))&&qt(e,"class",o),(!a||2048&u[0]&&i!==(i=sn(t[11])))&&qt(e,"style",i)},i(t){a||(Ie(r),a=!0)},o(t){Fe(r),a=!1},d(t){t&&Jt(e),s[n].d()}}}function yr(t){let e,n,r=!t[8]&&dr(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){t[8]?r&&(Pe(),Fe(r,1,1,(()=>{r=null})),Se()):r?(r.p(t,n),256&n[0]&&Ie(r,1)):(r=dr(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Fe(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function _r(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,E,A,j,V,D,P,S,I,F,N,z,M,J,O,B,T=st,R=st,L=st,W=st,U=st,q=st,H=st,G=st,K=st,X=st,Y=st,Z=st,Q=st,tt=st,et=st;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),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()));let{json:nt={}}=e,{templateContext:rt}=e,{origJson:ot}=e,{layoutParams:it}=e;const at=he(rn);let lt=!1,ct="",ut=12,dt=1.25,ht=!1,ft="",pt="",gt=!1,mt="left",vt="top",$t="",_t="",bt=!1,xt=[],wt=[];return ue((()=>{wt.forEach((t=>{at.removeSvgFilter(t)}))})),t.$$set=t=>{"json"in t&&n(0,nt=t.json),"templateContext"in t&&n(1,rt=t.templateContext),"origJson"in t&&n(2,ot=t.origJson),"layoutParams"in t&&n(3,it=t.layoutParams)},t.$$.update=()=>{var e,rt;if(1&t.$$.dirty[0]&&(n(28,r=at.getDerivedFromVars(nt.text)),et(),et=yt(r,(t=>n(55,B=t)))),16&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&(n(4,(e=B,rt=ct,ct=String(null!=e?e:"")||rt)),ct?n(8,lt=!1):(n(8,lt=!0),at.logError(on(new Error('Missing "text" prop for div "text"'))))),1&t.$$.dirty[0]&&(n(27,o=at.getDerivedFromVars(nt.ranges)),W(),W=yt(o,(t=>n(45,V=t)))),1&t.$$.dirty[0]&&(n(26,i=at.getDerivedFromVars(nt.images)),L(),L=yt(i,(t=>n(44,j=t)))),1&t.$$.dirty[0]&&(n(25,a=at.getDerivedFromVars({font_size:nt.font_size,letter_spacing:nt.letter_spacing,font_weight:nt.font_weight,text_color:nt.text_color,underline:nt.underline,strike:nt.strike,line_height:nt.line_height})),U(),U=yt(a,(t=>n(29,D=t)))),1&t.$$.dirty[0]&&(n(24,l=at.getDerivedFromVars(nt.font_size)),tt(),tt=yt(l,(t=>n(54,O=t)))),32&t.$$.dirty[0]|8388608&t.$$.dirty[1]&&n(5,ut=Zn(O,ut)),1&t.$$.dirty[0]&&(n(23,s=at.getDerivedFromVars(nt.line_height)),Q(),Q=yt(s,(t=>n(53,J=t)))),32&t.$$.dirty[0]|4194304&t.$$.dirty[1]){const t=J;Qn(t)?(n(31,dt=Number(t)/ut),n(9,ht=!0)):n(9,ht=!1)}if(1&t.$$.dirty[0]&&(n(22,c=at.getDerivedFromVars(nt.max_lines)),X(),X=yt(c,(t=>n(50,N=t)))),524288&t.$$.dirty[1]&&n(7,u=1===N),548865&t.$$.dirty[1]){let t="",e="",r=!1;if(N&&N>1){let n=Number(N);t=n*dt+"em",V||j||(e=n,r=!0)}n(32,ft=t),n(33,pt=e),n(34,gt=r)}if(1&t.$$.dirty[0]&&(n(21,d=at.getDerivedFromVars(nt.text_alignment_horizontal)),Z(),Z=yt(d,(t=>n(52,M=t)))),2097168&t.$$.dirty[1]&&n(35,mt=lr(M,mt)),1&t.$$.dirty[0]&&(n(20,h=at.getDerivedFromVars(nt.text_alignment_vertical)),Y(),Y=yt(h,(t=>n(51,z=t)))),1048608&t.$$.dirty[1]&&n(36,vt=sr(z,vt)),16&t.$$.dirty[0]|16384&t.$$.dirty[1]&&n(41,f=!V||ct&&1===V.length&&V[0]&&0===V[0].start&&"number"==typeof V[0].end&&V[0].end>=ct.length),1&t.$$.dirty[0]&&(n(19,p=at.getDerivedFromVars(nt.text_color)),K(),K=yt(p,(t=>n(49,F=t)))),278528&t.$$.dirty[1]&&n(40,g=Boolean(F)!==Boolean(V&&V[0]&&V[0].text_color)),804416&t.$$.dirty[1]){let t="";N&&f&&g&&(t=C(F||V&&V[0]&&V[0].text_color,1,$t)),n(37,$t=t)}if(1&t.$$.dirty[0]&&(n(18,m=at.getDerivedFromVars(nt.truncate)),G(),G=yt(m,(t=>n(48,I=t)))),131072&t.$$.dirty[1]&&n(39,v="none"===I?"none":""),1&t.$$.dirty[0]&&(n(17,$=at.getDerivedFromVars(nt.text_gradient)),H(),H=yt($,(t=>n(47,S=t)))),65536&t.$$.dirty[1]){let t="";if(S){const e=fn([S]);e.image&&(t=e.image)}n(38,_t=t)}1&t.$$.dirty[0]&&(n(16,y=at.getDerivedFromVars(nt.selectable)),q(),q=yt(y,(t=>n(46,P=t)))),64&t.$$.dirty[0]|32768&t.$$.dirty[1]&&n(6,bt=function(t,e){return 1===t||0===t?Boolean(t):e}(P,bt)),1&t.$$.dirty[0]&&(n(15,_=at.getDerivedFromVars(nt.width)),R(),R=yt(_,(t=>n(43,A=t)))),1&t.$$.dirty[0]&&(n(14,b=at.getDerivedFromVars(nt.height)),T(),T=yt(b,(t=>n(42,E=t)))),16&t.$$.dirty[0]|24576&t.$$.dirty[1]&&function(t,e,r){let o=[];if(wt.forEach((t=>{at.removeSvgFilter(t)})),wt=[],!(Array.isArray(e)&&e.length||Array.isArray(r)&&r.length&&t))return void n(10,xt=[]);const i=t;let a=e||[{start:0,end:i.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<=i.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({},D),...c);o.push({text:i.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({},D),...c),n=cn(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=cn(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const i={"font-size":cn(10*(Number(e.font_size)||12)/ut)};let a="";if(t.image.tint_color){const e=C(t.image.tint_color);a=at.addSvgFilter(e),wt.push(e)}o.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:i,svgFilterId:a}})}s=r})),s<i.length&&o.push({text:i.substring(s),textStyles:Object.assign({},D)}),n(10,xt=o)}(ct,V,j),128&t.$$.dirty[0]|6456&t.$$.dirty[1]&&n(13,x={singleline:u,multiline:gt,halign:mt,valign:vt,truncate:v,width:"wrap_content"!==(null==A?void 0:A.type)||A.constrained?"":"content",height:!E||"wrap_content"===E.type&&!E.constrained?"content":""}),128&t.$$.dirty[1]&&n(12,w={gradient:Boolean(_t)}),32&t.$$.dirty[0]|199&t.$$.dirty[1]&&n(11,k={"font-size":cn(ut),"line-height":dt,"max-height":ft,"-webkit-line-clamp":pt,color:$t,"background-image":_t})},[nt,rt,ot,it,ct,ut,bt,u,lt,ht,xt,k,w,x,b,_,y,$,m,p,h,d,c,s,l,a,i,o,r,D,function(t){t.target&&"classList"in t.target&&t.target.classList.add(an.text__image_hidden)},dt,ft,pt,gt,mt,vt,$t,_t,v,g,f,E,A,j,V,P,S,I,F,N,z,M,J,O,B]}const br={container:"divkit-f58f",container_orientation_vertical:"divkit-ea36",container_valign_top:"divkit-f632",container_valign_center:"divkit-f5fa",container_valign_bottom:"divkit-d2c9",container_halign_left:"divkit-d487",container_halign_center:"divkit-a1a6",container_halign_right:"divkit-ead3",container_orientation_horizontal:"divkit-bd1b",container_orientation_overlap:"divkit-a856"};function xr(t,e,n){const r=t.slice();return r[28]=e[n],r}function wr(t){let e,n;return e=new Xn({props:{cls:_n("container",br,t[9]),json:t[0],origJson:t[2],templateContext:t[1],style:t[6],layoutParams:t[3],$$slots:{default:[Cr]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.cls=_n("container",br,t[9])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),64&n[0]&&(r.style=t[6]),8&n[0]&&(r.layoutParams=t[3]),160&n[0]|1&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function kr(t){let e,n;return e=new Ri({props:{layoutParams:t[5],div:t[28].json,templateContext:t[28].templateContext,origJson:t[28].origJson}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.layoutParams=t[5]),128&n[0]&&(r.div=t[28].json),128&n[0]&&(r.templateContext=t[28].templateContext),128&n[0]&&(r.origJson=t[28].origJson),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function Cr(t){let e,n,r=t[7],o=[];for(let e=0;e<r.length;e+=1)o[e]=kr(xr(t,r,e));const i=t=>Fe(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Wt()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Wt()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);Mt(t,e,r),n=!0},p(t,n){if(160&n[0]){let a;for(r=t[7],a=0;a<r.length;a+=1){const i=xr(t,r,a);o[a]?(o[a].p(i,n),Ie(o[a],1)):(o[a]=kr(i),o[a].c(),Ie(o[a],1),o[a].m(e.parentNode,e))}for(Pe(),a=r.length;a<o.length;a+=1)i(a);Se()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ie(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Fe(o[t]);n=!1},d(t){Ot(o,t),t&&Jt(e)}}}function Er(t){let e,n,r=!t[4]&&wr(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){t[4]?r&&(Pe(),Fe(r,1,1,(()=>{r=null})),Se()):r?(r.p(t,n),16&n[0]&&Ie(r,1)):(r=wr(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Fe(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function Ar(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v=st,$=st,y=st,_=st,b=st,x=st;t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>x()));let{json:w={}}=e,{templateContext:k}=e,{origJson:C}=e,{layoutParams:E}=e;const A={left:"start",center:"center",right:"end"},j={top:"start",center:"center",bottom:"end"},V=he(rn);let D,P=!1,S="vertical",I="top",F="left",N={},z={};return t.$$set=t=>{"json"in t&&n(0,w=t.json),"templateContext"in t&&n(1,k=t.templateContext),"origJson"in t&&n(2,C=t.origJson),"layoutParams"in t&&n(3,E=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(18,r=w.items),262144&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,P=!1):(n(4,P=!0),V.logError(on(new Error('Incorrect or empty "items" prop for div "container"'))))),262162&t.$$.dirty[0]&&n(7,o=(!P&&r||[]).map((t=>{let e=t,n=k;return({templateContext:n,json:e}=V.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(14,i=V.getDerivedFromVars(w.orientation)),x(),x=yt(i,(t=>n(24,m=t)))),16809984&t.$$.dirty[0]&&n(15,S=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(m,S)),1&t.$$.dirty[0]&&(n(13,a=V.getDerivedFromVars(w.content_alignment_vertical)),b(),b=yt(a,(t=>n(23,g=t)))),8454144&t.$$.dirty[0]&&n(16,I=sr(g,I)),1&t.$$.dirty[0]&&(n(12,l=V.getDerivedFromVars(w.content_alignment_horizontal)),_(),_=yt(l,(t=>n(22,p=t)))),4325376&t.$$.dirty[0]&&n(17,F=lr(p,F)),1&t.$$.dirty[0]&&(n(11,s=V.getDerivedFromVars(w.width)),$(),$=yt(s,(t=>n(20,h=t)))),1&t.$$.dirty[0]&&(n(10,c=V.getDerivedFromVars(w.height)),y(),y=yt(c,(t=>n(21,f=t)))),3375136&t.$$.dirty[0]){let t={};"overlap"===S&&(t.overlapParent=!0),"horizontal"!==S&&(t.parentHAlign=A[F],"wrap_content"!==(null==f?void 0:f.type)&&f||(t.parentVerticalWrapContent=!0)),"vertical"!==S&&(t.parentVAlign=j[I],"wrap_content"===(null==h?void 0:h.type)&&(t.parentHorizontalWrapContent=!0)),"horizontal"===S&&(t.parentLayoutOrientation="horizontal"),"vertical"===S&&(t.parentLayoutOrientation="vertical"),n(5,N=Dn(t,N))}if(32896&t.$$.dirty[0]){let t=[];if("overlap"!==S){const e="vertical"===S?"height":"width";o.forEach((n=>{const r=V.getDerivedFromVars(n.json[e]);t.push(r)}))}n(8,D=Ke(t,(t=>t))),v(),v=yt(D,(t=>n(19,d=t)))}if(3702848&t.$$.dirty[0]){let t={};if("overlap"!==S){const e="vertical"===S?"height":"width",n="vertical"===S?"wrap_content"===(null==f?void 0:f.type)||!f:"wrap_content"===(null==h?void 0:h.type);let r=d.map((t=>!t&&"width"===e||"match_parent"===(null==t?void 0:t.type)?n?(V.logError(on(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"})),"minmax(0, auto)"):(Number(null==t?void 0:t.weight)||1)+"fr":t&&"wrap_content"===t.type&&t.constrained?"minmax(0, auto)":"auto")).join(" ");t["vertical"===S?"grid-template-rows":"grid-template-columns"]=r}n(6,z=Dn(t,z))}229376&t.$$.dirty[0]&&n(9,u={orientation:S,valign:I,halign:F})},[w,k,C,E,P,N,z,o,D,u,c,s,l,a,i,S,I,F,r,d,h,f,p,g,m]}const jr={separator:"divkit-f114",separator_orientation_horizontal:"divkit-c1e7",separator_orientation_vertical:"divkit-d0ee",separator__inner:"divkit-e617"};function Vr(t,e){return"vertical"===t||"horizontal"===t?t:e}function Dr(t){let e,n,r;return{c(){e=Bt("span"),this.h()},l(t){e=Yt(t,"SPAN",{class:!0,style:!0}),Gt(e).forEach(Jt),this.h()},h(){qt(e,"class",n=jr.separator__inner),qt(e,"style",r=sn(t[5]))},m(t,n){Mt(t,e,n)},p(t,n){32&n&&r!==(r=sn(t[5]))&&qt(e,"style",r)},d(t){t&&Jt(e)}}}function Pr(t){let e,n=t[6]&&Dr(t);return{c(){n&&n.c(),e=Wt()},l(t){n&&n.l(t),e=Wt()},m(t,r){n&&n.m(t,r),Mt(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=Dr(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&Jt(e)}}}function Sr(t){let e,n;return e=new Xn({props:{cls:_n("separator",jr,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Pr]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){let[r]=n;const o={};16&r&&(o.cls=_n("separator",jr,t[4])),1&r&&(o.json=t[0]),4&r&&(o.origJson=t[2]),2&r&&(o.templateContext=t[1]),8&r&&(o.layoutParams=t[3]),16480&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function Ir(t,e,n){let r,o,i,a,l,s,c,u=st;t.$$.on_destroy.push((()=>u()));let{json:d={}}=e,{templateContext:h}=e,{origJson:f}=e,{layoutParams:p}=e;const g=he(rn);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=yt(r,(t=>n(12,c=t)))),4352&t.$$.dirty&&n(8,m=Vr(null==c?void 0:c.orientation,m)),4096&t.$$.dirty&&n(6,o=!((null==c?void 0:c.color)&&("transparent"===c.color||9===c.color.length&&0===c.color.indexOf("#00")))),4608&t.$$.dirty&&n(9,v=C(null==c?void 0:c.color,1,v)),256&t.$$.dirty&&n(11,i="horizontal"===m?"100%":cn(1)),256&t.$$.dirty&&n(10,a="horizontal"===m?cn(1):"100%"),3584&t.$$.dirty&&n(5,l={background:v,width:i,height:a}),256&t.$$.dirty&&n(4,s={orientation:m})},[d,h,f,p,s,l,o,r,m,v,a,i,c]}const Fr={image:"divkit-ed18","image_is-width-content":"divkit-b4c7","image_is-height-content":"divkit-a3dd",image__image:"divkit-bf9c",image_error:"divkit-c22a","image__aspect-wrapper":"divkit-ba6f",image_aspect:"divkit-df3a"};function Nr(t){let e,n;return e=new Xn({props:{cls:_n("image",Fr,t[10]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customDescription:!0,$$slots:{default:[Jr]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=_n("image",Fr,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]),9968&n[0]|262144&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function zr(t){let e,n,r,o,i,a,l;return{c(){e=Bt("img"),this.h()},l(t){e=Yt(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){qt(e,"class",n=Fr.image__image),mt(e.src,r=t[4]?Br:t[7])||qt(e,"src",r),qt(e,"loading","lazy"),qt(e,"decoding","async"),qt(e,"style",o=sn(t[6])),qt(e,"alt",t[13]),qt(e,"aria-hidden",i=t[13]?null:"true")},m(n,r){Mt(n,e,r),a||(l=[Ut(e,"load",t[23]),Ut(e,"error",t[24])],a=!0)},p(t,n){144&n[0]&&!mt(e.src,r=t[4]?Br:t[7])&&qt(e,"src",r),64&n[0]&&o!==(o=sn(t[6]))&&qt(e,"style",o),8192&n[0]&&qt(e,"alt",t[13]),8192&n[0]&&i!==(i=t[13]?null:"true")&&qt(e,"aria-hidden",i)},d(t){t&&Jt(e),a=!1,ft(l)}}}function Mr(t){let e,n,r,o,i,a,l,s,c="".concat(t[5],"%");return{c(){e=Bt("span"),n=Bt("img"),this.h()},l(t){e=Yt(t,"SPAN",{class:!0});var r=Gt(e);n=Yt(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(Jt),this.h()},h(){qt(n,"class",r=Fr.image__image),mt(n.src,o=t[4]?Br:t[7])||qt(n,"src",o),qt(n,"loading","lazy"),qt(n,"decoding","async"),qt(n,"style",t[9]),qt(n,"alt",t[13]),qt(n,"aria-hidden",i=t[13]?null:"true"),qt(e,"class",a=Fr["image__aspect-wrapper"]),ne(e,"padding-bottom",c,!1)},m(r,o){Mt(r,e,o),zt(e,n),l||(s=[Ut(n,"load",t[23]),Ut(n,"error",t[24])],l=!0)},p(t,r){144&r[0]&&!mt(n.src,o=t[4]?Br:t[7])&&qt(n,"src",o),512&r[0]&&qt(n,"style",t[9]),8192&r[0]&&qt(n,"alt",t[13]),8192&r[0]&&i!==(i=t[13]?null:"true")&&qt(n,"aria-hidden",i),32&r[0]&&c!==(c="".concat(t[5],"%"))&&ne(e,"padding-bottom",c,!1)},d(t){t&&Jt(e),l=!1,ft(s)}}}function Jr(t){let e;function n(t,e){return t[10].aspect?Mr:zr}let r=n(t),o=r(t);return{c(){o.c(),e=Wt()},l(t){o.l(t),e=Wt()},m(t,n){o.m(t,n),Mt(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){o.d(t),t&&Jt(e)}}}function Or(t){let e,n,r=!t[8]&&Nr(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){t[8]?r&&(Pe(),Fe(r,1,1,(()=>{r=null})),Se()):r?(r.p(t,n),256&n[0]&&Ie(r,1)):(r=Nr(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Fe(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}const Br="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";function Tr(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,E,A,j,V,D,P,S,I=st,F=st,N=st,z=st,M=st,J=st,O=st,B=st,T=st,R=st,L=st;t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L()));let{json:W={}}=e,{templateContext:U}=e,{origJson:q}=e,{layoutParams:H}=e;const G=he(rn);let K=!1,X=!0,Y="rgba(0,0,0,0.08)",Z=!1,Q="",tt="none",et="50% 50%";let nt,rt="0",ot="";return ue((()=>{G.removeSvgFilter(nt)})),t.$$set=t=>{"json"in t&&n(0,W=t.json),"templateContext"in t&&n(1,U=t.templateContext),"origJson"in t&&n(2,q=t.origJson),"layoutParams"in t&&n(3,H=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(22,r=G.getDerivedFromVars(W.image_url)),L(),L=yt(r,(t=>n(44,S=t)))),1&t.$$.dirty[0]&&(n(21,o=G.getDerivedFromVars(W.gif_url)),R(),R=yt(o,(t=>n(43,P=t)))),12288&t.$$.dirty[1]&&n(7,i=S||P),128&t.$$.dirty[0]&&(n(25,X=!0),n(4,K=!1)),128&t.$$.dirty[0]&&(i?n(8,Z=!1):(n(8,Z=!0),G.logError(on(new Error('Missing "image_url" for "image"'))))),1&t.$$.dirty[0]&&(n(20,a=G.getDerivedFromVars(W.width)),T(),T=yt(a,(t=>n(42,D=t)))),2048&t.$$.dirty[1]&&n(33,l="wrap_content"===(null==D?void 0:D.type)),1&t.$$.dirty[0]&&(n(19,s=G.getDerivedFromVars(W.height)),B(),B=yt(s,(t=>n(41,V=t)))),1024&t.$$.dirty[1]&&n(32,c="wrap_content"===(null==V?void 0:V.type)),1&t.$$.dirty[0]&&(n(18,u=G.getDerivedFromVars(W.preview)),O(),O=yt(u,(t=>n(40,j=t)))),33554448&t.$$.dirty[0]|512&t.$$.dirty[1]){const t=j;(X||K)&&t?t.startsWith("data:")?n(27,Q='url("'.concat(dn(t),'")')):n(27,Q='url("data:image/jpg;base64,'.concat(dn(t),'")')):n(27,Q="")}if(1&t.$$.dirty[0]&&(n(17,d=G.getDerivedFromVars(W.placeholder_color)),J(),J=yt(d,(t=>n(39,A=t)))),33554448&t.$$.dirty[0]|256&t.$$.dirty[1]&&function(t,e,r){n(26,Y=t||e?C(r,1,Y):"")}(X,K,A),1&t.$$.dirty[0]&&(n(16,h=G.getDerivedFromVars(W.scale)),M(),M=yt(h,(t=>n(38,E=t)))),268435456&t.$$.dirty[0]|128&t.$$.dirty[1]&&n(28,tt=pn(E)||tt),1&t.$$.dirty[0]&&(n(15,f=G.getDerivedFromVars({content_alignment_horizontal:W.content_alignment_horizontal,content_alignment_vertical:W.content_alignment_vertical})),z(),z=yt(f,(t=>n(37,k=t)))),64&t.$$.dirty[1]&&n(29,et=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:gn(t)}(k,et)),1&t.$$.dirty[0]&&(n(14,p=G.getDerivedFromVars(W.accessibility)),N(),N=yt(p,(t=>n(36,w=t)))),32&t.$$.dirty[1]&&n(13,g=(null==w?void 0:w.description)||""),1&t.$$.dirty[0]&&(n(12,m=G.getDerivedFromVars(W.aspect)),F(),F=yt(m,(t=>n(35,x=t)))),16&t.$$.dirty[1]){const t=null==x?void 0:x.ratio;t&&Qn(t)?n(5,rt=(100/Number(t)).toFixed(2)):n(5,rt="0")}if(1&t.$$.dirty[0]&&(n(11,v=G.getDerivedFromVars(W.tint_color)),I(),I=yt(v,(t=>n(34,b=t)))),1073741824&t.$$.dirty[0]|8&t.$$.dirty[1]){const t=b,e=t?C(t):void 0;e!==nt&&(G.removeSvgFilter(nt),n(31,ot=e?G.addSvgFilter(e):""),n(30,nt=e))}32&t.$$.dirty[0]|6&t.$$.dirty[1]&&n(10,$={aspect:"0"!==rt,"is-width-content":l,"is-height-content":c}),1040187408&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(6,y={"background-image":Q,"background-color":Y,"object-fit":tt,"object-position":et,filter:X||K||!ot?"":"url(#".concat(ot,")")}),64&t.$$.dirty[0]&&n(9,_=sn(y))},[W,U,q,H,K,rt,y,i,Z,_,$,v,m,g,p,f,h,d,u,s,a,o,r,function(){n(25,X=!1)},function(){n(4,K=!0)},X,Y,Q,tt,et,nt,ot,c,l,b,x,w,k,E,A,j,V,D,P,S]}const Rr=class extends qe{constructor(t){super(),Ue(this,t,Tr,Or,vt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Lr={grid:"divkit-ac38",grid_halign_left:"divkit-fb4d",grid_halign_center:"divkit-df0f",grid_halign_right:"divkit-eea1",grid_valign_top:"divkit-b55f",grid_valign_center:"divkit-b446",grid_valign_bottom:"divkit-b6c4"};function Wr(t){return t>0&&t<1}function Ur(t){return String(Math.ceil(1e3*t)/1e3)}function qr(t,e,n){if(t.some(Wr)){const e=Math.max(...t.filter(Wr).map((t=>1/t)));t=t.map((t=>t*e))}let r=0,o=0;const i=[];if(t.every(Boolean)){o=t.reduce(((t,e)=>t+e),0);for(let i=0;i<n;++i){if(!e[i])continue;const n=e[i]/t[i]*o;n>r&&(r=n)}}for(let e=0;e<n;++e)r?i[e]="minmax(".concat(cn(r*t[e]/o),",").concat(Ur(t[e]),"fr)"):t[e]?i[e]="".concat(Ur(t[e]),"fr"):i[e]="auto";return i.join(" ")}function Hr(t,e,n){const r=t.slice();return r[29]=e[n],r}function Gr(t){let e,n;return e=new Xn({props:{cls:_n("grid",Lr,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],$$slots:{default:[Xr]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=_n("grid",Lr,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||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function Kr(t){let e,n;return e=new Ri({props:{layoutParams:t[29].layoutParams,div:t[29].json,templateContext:t[29].templateContext,origJson:t[29].origJson}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(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||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function Xr(t){let e,n,r=t[5],o=[];for(let e=0;e<r.length;e+=1)o[e]=Kr(Hr(t,r,e));const i=t=>Fe(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Wt()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Wt()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);Mt(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 i=Hr(t,r,a);o[a]?(o[a].p(i,n),Ie(o[a],1)):(o[a]=Kr(i),o[a].c(),Ie(o[a],1),o[a].m(e.parentNode,e))}for(Pe(),a=r.length;a<o.length;a+=1)i(a);Se()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ie(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Fe(o[t]);n=!1},d(t){Ot(o,t),t&&Jt(e)}}}function Yr(t){let e,n,r=!t[6]&&Gr(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){t[6]?r&&(Pe(),Fe(r,1,1,(()=>{r=null})),Se()):r?(r.p(t,n),64&n[0]&&Ie(r,1)):(r=Gr(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Fe(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function Zr(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g=st,m=st,v=st,$=st;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>$()));let{json:y={}}=e,{templateContext:_}=e,{origJson:b}=e,{layoutParams:x}=e;const w=he(rn);let k,C,E=!1,A=1,j=[],V=[],D=[],P=[],S=0,I=!1,F="top",N="left";return t.$$set=t=>{"json"in t&&n(0,y=t.json),"templateContext"in t&&n(1,_=t.templateContext),"origJson"in t&&n(2,b=t.origJson),"layoutParams"in t&&n(3,x=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(23,r=y.items),8388608&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(12,E=!1):(n(12,E=!0),w.logError(on(new Error('Incorrect or empty "items" prop for div "grid"'))))),1&t.$$.dirty[0]&&(n(11,o=w.getDerivedFromVars(y.column_count)),$(),$=yt(o,(t=>n(27,p=t)))),134225920&t.$$.dirty[0]&&n(13,A=Zn(p,A)),8392706&t.$$.dirty[0]&&n(22,i=(!E&&r||[]).map((t=>{let e=t,n=_;return({templateContext:n,json:e}=w.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4194304&t.$$.dirty[0]){let t=[];i.forEach((e=>{t.push(w.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),n(4,k=Ke(t,(t=>t))),v(),v=yt(k,(t=>n(26,f=t)))}if(72081408&t.$$.dirty[0]){const t={};let e=0,r=0;n(14,j=[]),n(15,V=[]),n(16,D=[]),n(17,P=[]),n(19,I=!1),n(5,C=i.map(((o,i)=>{var a,l,s,c;const u=f[i],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,$=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 o=e;o<e+d;++o)for(let e=r;e<r+h;++e)t[o+"_"+e]?n(19,I=!0):(t[o+"_"+e]=!0,(!j[o]||j[o]<g)&&n(14,j[o]=g,j),(!V[e]||V[e]<m)&&n(15,V[e]=m,V),(!D[o]||D[o]<v)&&n(16,D[o]=v,D),(!P[e]||P[e]<$)&&n(17,P[e]=$,P));do{++e,e>=A&&(e=0,++r)}while(t[e+"_"+r]);return Object.assign(Object.assign({},o),{layoutParams:{gridArea:p}})}))),0!==e&&n(19,I=!0),I&&w.logError(on(new Error('Mismatching "grid" rows/columns'))),n(18,S=r)}1&t.$$.dirty[0]&&(n(10,a=w.getDerivedFromVars(y.content_alignment_vertical)),m(),m=yt(a,(t=>n(25,h=t)))),34603008&t.$$.dirty[0]&&n(20,F=sr(h,F)),1&t.$$.dirty[0]&&(n(9,l=w.getDerivedFromVars(y.content_alignment_horizontal)),g(),g=yt(l,(t=>n(24,d=t)))),18874368&t.$$.dirty[0]&&n(21,N=lr(d,N)),3145728&t.$$.dirty[0]&&n(8,s={valign:F,halign:N}),516096&t.$$.dirty[0]&&n(7,c={"grid-template-columns":qr(j,D,A),"grid-template-rows":qr(V,P,S)}),528384&t.$$.dirty[0]&&n(6,u=E||I)},[y,_,b,x,k,C,u,c,s,l,a,o,E,A,j,V,D,P,S,I,F,N,i,r,d,h,f,p]}const Qr={gallery:"divkit-ebe2",gallery_orientation_horizontal:"divkit-ad47",gallery_orientation_vertical:"divkit-b707",gallery__scroller:"divkit-ab84","gallery_scroll-snap":"divkit-de10","gallery__items-grid":"divkit-aeb5",gallery__items:"divkit-a294",gallery__arrow:"divkit-a4a3","gallery__arrow-icon":"divkit-d14c",gallery__arrow_left:"divkit-fadc",gallery__arrow_right:"divkit-c1d2","gallery__arrow-icon-path":"divkit-c56d"};function to(t){const e=[];let n=t[0],r=1;for(let o=1;o<=t.length;o++)t[o]!==n?(e.push(r>1?"repeat(".concat(r,", ").concat(n,")"):n),n=t[o],r=1):r++;return e.join(" ")}const{Boolean:eo}=Me;function no(t,e,n){const r=t.slice();return r[57]=e[n],r[58]=e,r[59]=n,r}function ro(t,e,n){const r=t.slice();return r[60]=e[n],r}function oo(t){let e,n;return e=new Xn({props:{cls:_n("gallery",Qr,t[14]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",forceHeight:"vertical"===t[5],forceWidth:"horizontal"===t[5],$$slots:{default:[uo]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};16384&n[0]&&(r.cls=_n("gallery",Qr,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]),32&n[0]&&(r.forceHeight="vertical"===t[5]),32&n[0]&&(r.forceWidth="horizontal"===t[5]),4296672&n[0]|2&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function io(t){let e,n;return e=new Ri({props:{layoutParams:t[7],div:t[60].json,templateContext:t[60].templateContext,origJson:t[60].origJson}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.layoutParams=t[7]),4194304&n[0]&&(r.div=t[60].json),4194304&n[0]&&(r.templateContext=t[60].templateContext),4194304&n[0]&&(r.origJson=t[60].origJson),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function ao(t){let e,n,r,o,i,a=t[59],l=t[57],s=[];for(let e=0;e<l.length;e+=1)s[e]=io(ro(t,l,e));const c=t=>Fe(s[t],1,1,(()=>{s[t]=null})),u=()=>t[45](e,a),d=()=>t[45](null,a);return{c(){e=Bt("div");for(let t=0;t<s.length;t+=1)s[t].c();n=Lt(),this.h()},l(t){e=Yt(t,"DIV",{class:!0,style:!0});var r=Gt(e);for(let t=0;t<s.length;t+=1)s[t].l(r);n=te(r),r.forEach(Jt),this.h()},h(){qt(e,"class",r=Qr.gallery__items),qt(e,"style",o=sn(t[15]))},m(t,r){Mt(t,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);zt(e,n),u(),i=!0},p(r,h){if(t=r,4194432&h[0]){let r;for(l=t[57],r=0;r<l.length;r+=1){const o=ro(t,l,r);s[r]?(s[r].p(o,h),Ie(s[r],1)):(s[r]=io(o),s[r].c(),Ie(s[r],1),s[r].m(e,n))}for(Pe(),r=l.length;r<s.length;r+=1)c(r);Se()}(!i||32768&h[0]&&o!==(o=sn(t[15])))&&qt(e,"style",o),a!==t[59]&&(d(),a=t[59],u())},i(t){if(!i){for(let t=0;t<l.length;t+=1)Ie(s[t]);i=!0}},o(t){s=s.filter(eo);for(let t=0;t<s.length;t+=1)Fe(s[t]);i=!1},d(t){t&&Jt(e),Ot(s,t),d()}}}function lo(t){let e,n,r=t[10]&&so(t),o=t[11]&&co(t);return{c(){r&&r.c(),e=Lt(),o&&o.c(),n=Wt()},l(t){r&&r.l(t),e=te(t),o&&o.l(t),n=Wt()},m(t,i){r&&r.m(t,i),Mt(t,e,i),o&&o.m(t,i),Mt(t,n,i)},p(t,i){t[10]?r?r.p(t,i):(r=so(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[11]?o?o.p(t,i):(o=co(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){r&&r.d(t),t&&Jt(e),o&&o.d(t),t&&Jt(n)}}}function so(t){let e,n,r,o,i,a,l,s;return{c(){e=Bt("div"),n=Tt("svg"),r=Tt("path"),this.h()},l(t){e=Yt(t,"DIV",{class:!0});var o=Gt(e);n=Zt(o,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=Gt(n);r=Zt(i,"path",{class:!0,d:!0}),Gt(r).forEach(Jt),i.forEach(Jt),o.forEach(Jt),this.h()},h(){qt(r,"class",o=Qr["gallery__arrow-icon-path"]),qt(r,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),qt(n,"class",i=Qr["gallery__arrow-icon"]),qt(n,"xmlns","http://www.w3.org/2000/svg"),qt(n,"width","32"),qt(n,"height","32"),qt(n,"viewBox","0 0 32 32"),qt(n,"fill","none"),qt(e,"class",a=Qr.gallery__arrow+" "+Qr.gallery__arrow_left+" divkit-cabf")},m(o,i){Mt(o,e,i),zt(e,n),zt(n,r),l||(s=Ut(e,"click",t[47]),l=!0)},p:st,d(t){t&&Jt(e),l=!1,s()}}}function co(t){let e,n,r,o,i,a,l,s;return{c(){e=Bt("div"),n=Tt("svg"),r=Tt("path"),this.h()},l(t){e=Yt(t,"DIV",{class:!0});var o=Gt(e);n=Zt(o,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=Gt(n);r=Zt(i,"path",{class:!0,d:!0}),Gt(r).forEach(Jt),i.forEach(Jt),o.forEach(Jt),this.h()},h(){qt(r,"class",o=Qr["gallery__arrow-icon-path"]),qt(r,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),qt(n,"class",i=Qr["gallery__arrow-icon"]),qt(n,"xmlns","http://www.w3.org/2000/svg"),qt(n,"width","32"),qt(n,"height","32"),qt(n,"viewBox","0 0 32 32"),qt(n,"fill","none"),qt(e,"class",a=Qr.gallery__arrow+" "+Qr.gallery__arrow_right+" divkit-cabf")},m(o,i){Mt(o,e,i),zt(e,n),zt(n,r),l||(s=Ut(e,"click",t[48]),l=!0)},p:st,d(t){t&&Jt(e),l=!1,s()}}}function uo(t){let e,n,r,o,i,a,l,s,c,u,d,h=t[22],f=[];for(let e=0;e<h.length;e+=1)f[e]=ao(no(t,h,e));const p=t=>Fe(f[t],1,1,(()=>{f[t]=null}));let g="horizontal"===t[5]&&lo(t);return{c(){e=Bt("div"),n=Bt("div");for(let t=0;t<f.length;t+=1)f[t].c();l=Lt(),g&&g.c(),s=Wt(),this.h()},l(t){e=Yt(t,"DIV",{class:!0,style:!0});var r=Gt(e);n=Yt(r,"DIV",{class:!0,style:!0});var o=Gt(n);for(let t=0;t<f.length;t+=1)f[t].l(o);o.forEach(Jt),r.forEach(Jt),l=te(t),g&&g.l(t),s=Wt(),this.h()},h(){qt(n,"class",r=Qr["gallery__items-grid"]),qt(n,"style",o=sn(t[16])),qt(e,"class",i=Qr.gallery__scroller),qt(e,"style",a=sn(t[6]))},m(r,o){Mt(r,e,o),zt(e,n);for(let t=0;t<f.length;t+=1)f[t].m(n,null);t[46](e),Mt(r,l,o),g&&g.m(r,o),Mt(r,s,o),c=!0,u||(d=Ut(e,"scroll",t[25]),u=!0)},p(t,r){if(4227712&r[0]){let e;for(h=t[22],e=0;e<h.length;e+=1){const o=no(t,h,e);f[e]?(f[e].p(o,r),Ie(f[e],1)):(f[e]=ao(o),f[e].c(),Ie(f[e],1),f[e].m(n,null))}for(Pe(),e=h.length;e<f.length;e+=1)p(e);Se()}(!c||65536&r[0]&&o!==(o=sn(t[16])))&&qt(n,"style",o),(!c||64&r[0]&&a!==(a=sn(t[6])))&&qt(e,"style",a),"horizontal"===t[5]?g?g.p(t,r):(g=lo(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)Ie(f[t]);c=!0}},o(t){f=f.filter(eo);for(let t=0;t<f.length;t+=1)Fe(f[t]);c=!1},d(n){n&&Jt(e),Ot(f,n),t[46](null),n&&Jt(l),g&&g.d(n),n&&Jt(s),u=!1,d()}}}function ho(t){let e,n,r=!t[4]&&oo(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){t[4]?r&&(Pe(),Fe(r,1,1,(()=>{r=null})),Se()):r?(r.p(t,n),16&n[0]&&Ie(r,1)):(r=oo(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Fe(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function fo(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,C=st,E=st,A=st,j=st,V=st,D=st,P=st,S=st;t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S()));let{json:I={}}=e,{templateContext:F}=e,{origJson:N}=e,{layoutParams:z}=e;const M=he(rn);let J,O,B,T=[],R=!1,L=!1,W=!1,U=1,q="horizontal",H="start",G=8,K="",X=[],Y={},Z=!1,Q={},tt=0;function et(){const t=J.scrollLeft,e=J.scrollWidth,r=J.offsetWidth;n(10,R=t>2),n(11,L=t+r<e-2)}function nt(t){J.scroll({left:J.scrollLeft+.75*J.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function rt(){let t=[],e=T[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<U;++e){const r=T[e].children[n];r&&t.push(r)}return t}function ot(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===q,o=r?"offsetLeft":"offsetTop",i=r?"left":"top";J.scroll({[i]:Math.max(0,t[e][o]-G/2),behavior:n})}function it(t){const e=rt(),n=J.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===q?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 o=e.map((t=>function(t,e){return"horizontal"===q?e.right>t.left&&t.right>e.left:e.bottom>t.top&&t.bottom>e.top}(n,t.getBoundingClientRect()))),i=o.findIndex(Boolean);return-1!==i?"prev"===t&&2===o.filter(Boolean).length?i+1:i:"prev"===t?1:e.length-2}return ce((()=>{!W&&(et(),tt)&&ot(rt(),tt,"auto")})),I.id&&!W&&M.registerInstance(I.id,{setCurrentItem(t){const e=rt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');ot(e,t)},setPreviousItem(t){const e=it("prev"),n=rt();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),ot(n,r)},setNextItem(t){const e="horizontal"===q?J.scrollLeft+J.offsetWidth===J.scrollWidth:J.scrollTop+J.offsetHeight===J.scrollHeight,n=rt();if(e&&"ring"===t)return void ot(n,0);const r=it("next");let o=r+1;o>n.length-1&&(o="ring"===t?0:r),ot(n,o)}}),t.$$set=t=>{"json"in t&&n(0,I=t.json),"templateContext"in t&&n(1,F=t.templateContext),"origJson"in t&&n(2,N=t.origJson),"layoutParams"in t&&n(3,z=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(36,r=I.items),32&t.$$.dirty[1]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,W=!1):(n(4,W=!0),M.logError(on(new Error('Incorrect or empty "items" prop for div "gallery"'))))),18&t.$$.dirty[0]|32&t.$$.dirty[1]&&n(35,o=(!W&&r||[]).map((t=>{let e=t,n=F;return({templateContext:n,json:e}=M.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(23,i=M.getDerivedFromVars(I.column_count)),S(),S=yt(i,(t=>n(44,k=t)))),67108864&t.$$.dirty[0]|8192&t.$$.dirty[1]&&n(26,U=Zn(k,U)),67108864&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(22,a=function(t,e){let n=0,r=[];for(let o=0;o<t.length;++o)r[n]||(r[n]=[]),r[n].push(t[o]),++n>=e&&(n=0);return r}(o,U)),1&t.$$.dirty[0]&&(n(21,l=M.getDerivedFromVars(I.orientation)),P(),P=yt(l,(t=>n(43,w=t)))),32&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(5,q=Vr(w,q)),1&t.$$.dirty[0]&&(n(20,s=M.getDerivedFromVars(I.cross_content_alignment)),D(),D=yt(s,(t=>n(42,x=t)))),134217728&t.$$.dirty[0]|2048&t.$$.dirty[1]&&n(27,H=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(x,H)),1&t.$$.dirty[0]&&(n(19,c=M.getDerivedFromVars(I.item_spacing)),V(),V=yt(c,(t=>n(41,b=t)))),536870912&t.$$.dirty[0]|1024&t.$$.dirty[1]&&(n(29,G=An(b,G)),n(28,O=cn(G))),1&t.$$.dirty[0]&&(n(18,u=M.getDerivedFromVars(I.paddings)),j(),j=yt(u,(t=>n(40,_=t)))),1073741824&t.$$.dirty[0]|512&t.$$.dirty[1]&&n(30,K=En(_,K)),32&t.$$.dirty[0]&&n(34,d="horizontal"===q?"grid-template-columns":"grid-template-rows"),32&t.$$.dirty[0]|16&t.$$.dirty[1]){let t=[];o.forEach((e=>{const n="horizontal"===q?"width":"height";t.push(M.getDerivedFromVars(e.json[n]))})),n(12,B=Ke(t,(t=>t))),A(),A=yt(B,(t=>n(39,y=t)))}if(67108896&t.$$.dirty[0]|257&t.$$.dirty[1]&&(n(31,X=[]),U>1?X.push("auto"):y.forEach((t=>{!t&&"horizontal"===q||"match_parent"===(null==t?void 0:t.type)?X.push("100%"):X.push("max-content")}))),1&t.$$.dirty[0]&&(n(17,h=M.getDerivedFromVars(I.scroll_mode)),E(),E=yt(h,(t=>n(38,$=t)))),738197728&t.$$.dirty[0]|128&t.$$.dirty[1]){const t={};let e={};n(32,Z=!1),"horizontal"===q?e.parentVAlign=H:e.parentHAlign=H,"paging"===$&&(n(32,Z=!0),e.scrollSnap="start",t["horizontal"===q?"scroll-padding-left":"scroll-padding-top"]=cn(G/2)),1===U&&(e.parentLayoutOrientation=q),n(6,Y=Dn(t,Y)),n(7,Q=Dn(e,Q))}1342177280&t.$$.dirty[0]&&n(16,f={padding:K,"grid-gap":O}),268435456&t.$$.dirty[0]|9&t.$$.dirty[1]&&n(15,p={"grid-gap":O,[d]:to(X)}),32&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(14,g={orientation:q,"scroll-snap":Z}),1&t.$$.dirty[0]&&(n(13,m=M.getDerivedFromVars(I.default_item)),C(),C=yt(m,(t=>n(37,v=t)))),68&t.$$.dirty[1]&&n(33,tt=An(v,tt))},[I,F,N,z,W,q,Y,Q,J,T,R,L,B,m,g,p,f,h,u,c,s,l,a,i,nt,function(){et()},U,H,O,G,K,X,Z,tt,d,o,r,v,$,y,_,b,x,w,k,function(t,e){ge[t?"unshift":"push"]((()=>{T[e]=t,n(9,T)}))},function(t){ge[t?"unshift":"push"]((()=>{J=t,n(8,J)}))},()=>nt("left"),()=>nt("right")]}const po={tabs:"divkit-cd15",tabs__list:"divkit-a1af",tabs__item:"divkit-cf7f",tabs__item_selected:"divkit-fef3",tabs__item_actionable:"divkit-ddb7",tabs__panels:"divkit-ec4c",tabs__swiper:"divkit-b85f",tabs__swiper_animated:"divkit-e369",tabs__swiper_inited:"divkit-f3b2",tabs__panel:"divkit-b243",tabs__panel_visible:"divkit-be30",tabs__separator:"divkit-f022"},{Boolean:go}=Me;function mo(t,e,n){const r=t.slice();return r[72]=e[n],r[74]=n,r}function vo(t,e,n){const r=t.slice();r[72]=e[n],r[74]=n;const o=r[74]===r[5];return r[75]=o,r}function $o(t){let e,n;return e=new Xn({props:{cls:_n("tabs",po,t[34]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",$$slots:{default:[ko]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(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]),402653154&n[0]|32768&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function yo(t){let e,n,r=t[72].title+"";return{c(){e=Rt(r),n=Lt()},l(t){e=Qt(t,r),n=te(t)},m(t,r){Mt(t,e,r),Mt(t,n,r)},p(t,n){32768&n[0]&&r!==(r=t[72].title+"")&&ee(e,r)},d(t){t&&Jt(e),t&&Jt(n)}}}function _o(t){let e,n;return e=new Mn({props:{cls:_n("tabs__item",po,{selected:t[75],actionable:Boolean(t[72].title_click_action)}),actions:t[72].title_click_action?[t[72].title_click_action]:[],attrs:{id:"".concat(t[33],"-tab-").concat(t[74]),"aria-controls":"".concat(t[33],"-panel-").concat(t[74]),role:"tab",tabindex:t[75]?t[72].title_click_action?void 0:"0":"-1","aria-selected":t[75]?"true":"false"},customAction:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[48](t[74],...n)},$$slots:{default:[yo]},$$scope:{ctx:t}}}),e.$on("keydown",t[36]),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(n,r){t=n;const o={};32800&r[0]&&(o.cls=_n("tabs__item",po,{selected:t[75],actionable:Boolean(t[72].title_click_action)})),32768&r[0]&&(o.actions=t[72].title_click_action?[t[72].title_click_action]:[]),32800&r[0]&&(o.attrs={id:"".concat(t[33],"-tab-").concat(t[74]),"aria-controls":"".concat(t[33],"-panel-").concat(t[74]),role:"tab",tabindex:t[75]?t[72].title_click_action?void 0:"0":"-1","aria-selected":t[75]?"true":"false"}),32768&r[0]|32768&r[2]&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function bo(t){let e,n,r;return{c(){e=Bt("div"),this.h()},l(t){e=Yt(t,"DIV",{class:!0,style:!0}),Gt(e).forEach(Jt),this.h()},h(){qt(e,"class",n=po.tabs__separator),qt(e,"style",r=sn(t[28]))},m(t,n){Mt(t,e,n)},p(t,n){268435456&n[0]&&r!==(r=sn(t[28]))&&qt(e,"style",r)},d(t){t&&Jt(e)}}}function xo(t){let e,n;return e=new Ri({props:{div:t[72].div,templateContext:t[1]}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};32768&n[0]&&(r.div=t[72].div),2&n[0]&&(r.templateContext=t[1]),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function wo(t){let e,n,r,o,i,a,l=t[24][t[74]]&&xo(t);return{c(){e=Bt("div"),l&&l.c(),n=Lt(),this.h()},l(t){e=Yt(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=Gt(e);l&&l.l(r),n=te(r),r.forEach(Jt),this.h()},h(){qt(e,"class",r=_n("tabs__panel",po,{visible:t[25][t[74]]})),qt(e,"role","tabpanel"),qt(e,"id",o=t[33]+"-panel-"+t[74]),qt(e,"aria-labelledby",i=t[33]+"-tab-"+t[74]),ne(e,"left",100*t[74]+"%")},m(t,r){Mt(t,e,r),l&&l.m(e,null),zt(e,n),a=!0},p(t,o){t[24][t[74]]?l?(l.p(t,o),16777216&o[0]&&Ie(l,1)):(l=xo(t),l.c(),Ie(l,1),l.m(e,n)):l&&(Pe(),Fe(l,1,1,(()=>{l=null})),Se()),(!a||33554432&o[0]&&r!==(r=_n("tabs__panel",po,{visible:t[25][t[74]]})))&&qt(e,"class",r)},i(t){a||(Ie(l),a=!0)},o(t){Fe(l),a=!1},d(t){t&&Jt(e),l&&l.d()}}}function ko(t){let e,n,r,o,i,a,l,s,c,u,d,h=t[15],f=[];for(let e=0;e<h.length;e+=1)f[e]=_o(vo(t,h,e));const p=t=>Fe(f[t],1,1,(()=>{f[t]=null}));let g=t[16]&&bo(t),m=t[15],v=[];for(let e=0;e<m.length;e+=1)v[e]=wo(mo(t,m,e));const $=t=>Fe(v[t],1,1,(()=>{v[t]=null}));return{c(){e=Bt("div");for(let t=0;t<f.length;t+=1)f[t].c();r=Lt(),g&&g.c(),o=Lt(),i=Bt("div"),a=Bt("div");for(let t=0;t<v.length;t+=1)v[t].c();this.h()},l(t){e=Yt(t,"DIV",{class:!0,role:!0});var n=Gt(e);for(let t=0;t<f.length;t+=1)f[t].l(n);n.forEach(Jt),r=te(t),g&&g.l(t),o=te(t),i=Yt(t,"DIV",{class:!0});var l=Gt(i);a=Yt(l,"DIV",{class:!0});var s=Gt(a);for(let t=0;t<v.length;t+=1)v[t].l(s);s.forEach(Jt),l.forEach(Jt),this.h()},h(){qt(e,"class",n=po.tabs__list),qt(e,"role","tablist"),ne(e,"--divkit-tabs-font-size",cn(t[6]),!1),ne(e,"--divkit-tabs-paddings",t[7],!1),ne(e,"--divkit-tabs-line-height",t[20],!1),ne(e,"--divkit-tabs-letter-spacing",t[21],!1),ne(e,"--divkit-tabs-active-font-weight",t[9]||"",!1),ne(e,"--divkit-tabs-inactive-font-weight",t[10]||"",!1),ne(e,"--divkit-tabs-active-text-color",t[11],!1),ne(e,"--divkit-tabs-inactive-text-color",t[12],!1),ne(e,"--divkit-tabs-active-background-color",t[13],!1),ne(e,"--divkit-tabs-inactive-background-color",t[14],!1),ne(e,"--divkit-tabs-border-radius",t[8],!1),qt(a,"class",l=_n("tabs__swiper",po,{inited:t[22],animated:t[23]})),qt(i,"class",s=po.tabs__panels)},m(n,l){Mt(n,e,l);for(let t=0;t<f.length;t+=1)f[t].m(e,null);t[49](e),Mt(n,r,l),g&&g.m(n,l),Mt(n,o,l),Mt(n,i,l),zt(i,a);for(let t=0;t<v.length;t+=1)v[t].m(a,null);t[50](a),t[51](i),c=!0,u||(d=[Ut(a,"touchstart",(function(){pt(t[26]?t[37]:void 0)&&(t[26]?t[37]:void 0).apply(this,arguments)})),Ut(a,"touchmove",(function(){pt(t[26]?t[38]:void 0)&&(t[26]?t[38]:void 0).apply(this,arguments)})),Ut(a,"touchend",(function(){pt(t[26]?t[39]:void 0)&&(t[26]?t[39]:void 0).apply(this,arguments)})),Ut(a,"touchcancel",(function(){pt(t[26]?t[39]:void 0)&&(t[26]?t[39]:void 0).apply(this,arguments)}))],u=!0)},p(n,r){if(t=n,32800&r[0]|52&r[1]){let n;for(h=t[15],n=0;n<h.length;n+=1){const o=vo(t,h,n);f[n]?(f[n].p(o,r),Ie(f[n],1)):(f[n]=_o(o),f[n].c(),Ie(f[n],1),f[n].m(e,null))}for(Pe(),n=h.length;n<f.length;n+=1)p(n);Se()}if(64&r[0]&&ne(e,"--divkit-tabs-font-size",cn(t[6]),!1),128&r[0]&&ne(e,"--divkit-tabs-paddings",t[7],!1),1048576&r[0]&&ne(e,"--divkit-tabs-line-height",t[20],!1),2097152&r[0]&&ne(e,"--divkit-tabs-letter-spacing",t[21],!1),512&r[0]&&ne(e,"--divkit-tabs-active-font-weight",t[9]||"",!1),1024&r[0]&&ne(e,"--divkit-tabs-inactive-font-weight",t[10]||"",!1),2048&r[0]&&ne(e,"--divkit-tabs-active-text-color",t[11],!1),4096&r[0]&&ne(e,"--divkit-tabs-inactive-text-color",t[12],!1),8192&r[0]&&ne(e,"--divkit-tabs-active-background-color",t[13],!1),16384&r[0]&&ne(e,"--divkit-tabs-inactive-background-color",t[14],!1),256&r[0]&&ne(e,"--divkit-tabs-border-radius",t[8],!1),t[16]?g?g.p(t,r):(g=bo(t),g.c(),g.m(o.parentNode,o)):g&&(g.d(1),g=null),50364418&r[0]|4&r[1]){let e;for(m=t[15],e=0;e<m.length;e+=1){const n=mo(t,m,e);v[e]?(v[e].p(n,r),Ie(v[e],1)):(v[e]=wo(n),v[e].c(),Ie(v[e],1),v[e].m(a,null))}for(Pe(),e=m.length;e<v.length;e+=1)$(e);Se()}(!c||12582912&r[0]&&l!==(l=_n("tabs__swiper",po,{inited:t[22],animated:t[23]})))&&qt(a,"class",l)},i(t){if(!c){for(let t=0;t<h.length;t+=1)Ie(f[t]);for(let t=0;t<m.length;t+=1)Ie(v[t]);c=!0}},o(t){f=f.filter(go);for(let t=0;t<f.length;t+=1)Fe(f[t]);v=v.filter(go);for(let t=0;t<v.length;t+=1)Fe(v[t]);c=!1},d(n){n&&Jt(e),Ot(f,n),t[49](null),n&&Jt(r),g&&g.d(n),n&&Jt(o),n&&Jt(i),Ot(v,n),t[50](null),t[51](null),u=!1,ft(d)}}}function Co(t){let e,n,r=!t[4]&&$o(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){t[4]?r&&(Pe(),Fe(r,1,1,(()=>{r=null})),Se()):r?(r.p(t,n),16&n[0]&&Ie(r,1)):(r=$o(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Fe(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function Eo(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function Ao(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v=st,$=st,y=st,_=st,b=st;var x;t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b()));let{json:w={}}=e,{templateContext:k}=e,{origJson:E}=e,{layoutParams:A}=e;const j=he(rn),V=j.genId("tabs");let D,P,S,I=!1;const F=j.getJsonWithVars(w.selected_tab);let N,z,M=F&&Number(F)||0,J=12,O="",B="",T="",R="",L="",W="",U="",q="",H="",G="",K=!1,X=!1,Y=M,Z=[],Q=[];async function tt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Y=M,n(5,M=t),ct(),rt(),e){await be();const t=D.querySelector(".".concat(po.tabs__item_selected));t&&t.focus()}}function et(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==r?void 0:r.length;if(!n)return;let o=M+t;o>=n?o=0:o<0&&(o=n-1),tt(o,e)}function nt(t,e){return M===e||(tt(e),!1)}function rt(){n(23,X=!0),ot(100*-M),it(),async function(){await be();const t=document.getElementById("".concat(V,"-panel-").concat(M));t&&n(18,P.style.height=cn(t.offsetHeight),P)}(),lt(),ht=-M*P.clientWidth}async function ot(t){await be(),n(19,S.style.transform="translate3d(".concat(t,"%,0,0)"),S)}function it(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,M-1):Math.min(M,Y),o=t?Math.min(r.length-1,M+1):Math.max(M,Y);n(24,Z=Z.map(((t,n)=>t||n>=e&&n<=o))),n(25,Q=Q.map(((t,n)=>n>=e&&n<=o)))}let at=null;function lt(){at&&clearTimeout(at),at=window.setTimeout((()=>{n(25,Q=r.map(((t,e)=>e===M)))}),400)}function ct(){K||(n(22,K=!0),n(18,P.style.height=cn(P.clientHeight),P),n(19,S.style.transform="translate3d(".concat(100*-Y,"%,0,0)"),S))}let ut,dt,ht,ft=null,pt=null,gt=!1,mt=!1;return w.id&&!I&&j.registerInstance(w.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');tt(t)},setPreviousItem(t){let e=M-1;e<0&&(e="ring"===t?r.length-1:M),tt(e)},setNextItem(t){let e=M+1;e>r.length-1&&(e="ring"===t?0:M),tt(e)}}),t.$$set=t=>{"json"in t&&n(0,w=t.json),"templateContext"in t&&n(1,k=t.templateContext),"origJson"in t&&n(2,E=t.origJson),"layoutParams"in t&&n(3,A=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(15,r=w.items||[]),32768&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,I=!1):(n(4,I=!0),j.logError(on(new Error('Incorrect or empty "items" prop for div "tabs"'))))),32817&t.$$.dirty[0]&&!I&&(M<0||M>=r.length)&&(j.logError(on(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:w.selected_tab,length:r.length}})),n(5,M=M<0?0:r.length-1)),1&t.$$.dirty[0]&&(n(32,o=j.getDerivedFromVars(w.tab_title_style)),b(),b=yt(o,(t=>n(47,m=t)))),65536&t.$$.dirty[1]&&n(43,i=m||{}),64&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(6,J=Zn(i.font_size,J)),192&t.$$.dirty[0]|4096&t.$$.dirty[1]&&(i.font_size||i.paddings)){const t=i.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/J*10,right:(Number(t.right)||0)/J*10,bottom:(Number(t.bottom)||0)/J*10,left:(Number(t.left)||0)/J*10};n(7,O=En(e,O))}if(64&t.$$.dirty[0]|4096&t.$$.dirty[1]){const t=i.line_height;void 0!==t&&Qn(t)&&n(20,B=cn(t/J*10))}if(64&t.$$.dirty[0]|4096&t.$$.dirty[1]){const t=i.letter_spacing;void 0!==t&&kn(t)&&n(21,T=cn(t/J*10))}if(320&t.$$.dirty[0]|4608&t.$$.dirty[1]&&(i.corner_radius||i.corners_radius||i.font_size)){const t=null!==n(40,x=i.corner_radius)&&void 0!==x?x:1e3;i.corners_radius?n(8,R=Cn(i.corners_radius,t,J,R)):kn(t)&&n(8,R=cn(t/J*10))}512&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(9,N=er(i.active_font_weight||i.font_weight,N)),1024&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(10,z=er(i.inactive_font_weight||i.font_weight,z)),2048&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(11,L=C(i.active_text_color,1,L)),4096&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(12,W=C(i.inactive_text_color,1,W)),8192&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(13,U=C(i.active_background_color,1,U)),16384&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(14,q=C(i.inactive_background_color,1,q)),1&t.$$.dirty[0]&&(n(31,a=j.getDerivedFromVars(w.has_separator)),_(),_=yt(a,(t=>n(16,g=t)))),1&t.$$.dirty[0]&&(n(30,l=j.getDerivedFromVars(w.separator_color)),y(),y=yt(l,(t=>n(46,p=t)))),1&t.$$.dirty[0]&&(n(29,s=j.getDerivedFromVars(w.separator_paddings)),$(),$=yt(s,(t=>n(45,f=t)))),65536&t.$$.dirty[0]|52224&t.$$.dirty[1]&&g&&(p&&n(41,H=C(p,1,H)),f&&n(42,G=En(f,G))),3072&t.$$.dirty[1]&&n(28,c={background:H,margin:G}),1&t.$$.dirty[0]&&(n(27,u=j.getDerivedFromVars(w.switch_tabs_by_content_swipe_enabled)),v(),v=yt(u,(t=>n(44,h=t)))),8192&t.$$.dirty[1]&&n(26,d=void 0===h||Boolean(h)),32768&t.$$.dirty[0]&&(I||(n(24,Z=r.map(((t,e)=>e===M))),n(25,Q=r.map(((t,e)=>e===M)))))},[w,k,E,A,I,M,J,O,R,N,z,L,W,U,q,r,g,D,P,S,B,T,K,X,Z,Q,d,u,c,s,l,a,o,V,{},nt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&r){if(37===t.which)et(-1,!0);else if(39===t.which)et(1,!0);else if(36===t.which)tt(0,!0);else{if(35!==t.which)return;tt(r.length-1,!0)}t.preventDefault()}},function(t){r.length<2||t.touches.length>1||(gt=!1,mt=!1,ft=Eo(t),pt=null,ut=Date.now(),dt=ht||-M*P.clientWidth,n(23,X=!1),at&&clearTimeout(at))},function(t){const e=Eo(t);if(!ft||pt&&pt.x===e.x&&pt.y===e.y)return;pt=e;const n=P.clientWidth;if(gt){ht=e.x-ft.x+dt;const t=n*r.length;if(ht>0)ht=ht*n/(ht+3*n);else if(-ht+n>t){let e=-ht+n-t;e=e*n/(e+3*n),ht=n-t-e}ot(100*ht/n)}else Math.abs(e.y-ft.y)>10?mt=!0:!mt&&Math.abs(e.x-ft.x)>8&&(ct(),gt=!0,ft=e,ot(100*-M),it(!0));gt&&t.cancelable&&t.preventDefault()},function(){mt=!1,ft=null;let t=M;if(!gt)return;gt=!1;const e=Math.min(512,P.clientWidth);Math.abs(dt-ht)>e/4*Math.min(1,(Date.now()-ut)/750)&&(t+=dt>ht?1:-1),t>=r.length?t=r.length-1:t<0&&(t=0),t===M?(ht=-t*e,ot(100*-t),lt()):tt(t)},x,H,G,i,h,f,p,m,(t,e)=>nt(0,t),function(t){ge[t?"unshift":"push"]((()=>{D=t,n(17,D)}))},function(t){ge[t?"unshift":"push"]((()=>{S=t,n(19,S)}))},function(t){ge[t?"unshift":"push"]((()=>{P=t,n(18,P)}))}]}function jo(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function Vo(t){return t*t*t}function Do(t){const e=t-1;return e*e*e+1}function Po(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,r=Math.floor(n),o=n-r;return t[r]*o+t[r+1]*(1-o)}}const So=Po([.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]),Io=Po([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]),Fo={linear:ct,ease:So,ease_in:Vo,ease_out:Do,ease_in_out:jo,spring:Io};function No(t){return Math.max(...t.map((t=>(Number(t.duration)||200)+(Number(t.start_delay)||0))))}function zo(t,e){let{transitions:n,elementBbox:r,rootBbox:o,direction:i,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)||0,a=Number(t.duration)||200,l=Math.max(0,Math.min(1,(e-n)/a)),c="in"===i?1-l:l,u=(Fo[t.interpolator||"ease_in_out"]||jo)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*s+u*(t.alpha||0)};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 i=null===(d=t.distance)||void 0===d?void 0:d.value;void 0===i&&(i="top"!==t.edge&&"bottom"!==t.edge&&t.edge?Math.abs(o["left"===t.edge?"left":"right"]-r["left"===t.edge?"right":"left"]):Math.abs(o["bottom"===t.edge?"bottom":"top"]-r["bottom"===t.edge?"top":"bottom"]));const a=i*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||0),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,o=null!==(f=t.pivot_y)&&void 0!==f?f:.5,i=(1-e)*r.width*n,a=(1-e)*r.height*o;return{active:u>0&&u<1,scale:"translate(".concat(i,"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 Mo(t,e,n){return t*(1-n)+e*n}const Jo={linear:ct,ease:So,ease_in:Vo,ease_out:Do,ease_in_out:jo,spring:Io};function Oo(t,e){var n,r;let{rootBbox:o,beforeBbox:i,afterBbox:a,transition:l}=e;return{delay:null!==(n=l.start_delay)&&void 0!==n?n:0,duration:null!==(r=l.duration)&&void 0!==r?r:200,easing:l.interpolator&&l.interpolator in Jo?Jo[l.interpolator]:jo,css:t=>["top:".concat(Mo(i.top,a.top,t)-o.top,"px"),"left:".concat(Mo(i.left,a.left,t)-o.left,"px"),"width:".concat(Mo(i.width,a.width,t),"px"),"height:".concat(Mo(i.height,a.height,t),"px")].join(";")}}function Bo(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...Bo(t))})):e.push(t),e}const{Map:To}=Me;function Ro(t,e,n){const r=t.slice();return r[25]=e[n],r}function Lo(t){let e,n;return e=new Xn({props:{cls:"divkit-eb28",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ko]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(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]),268435666&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function Wo(t){let e,n,r=t[7],o=Uo(t);return{c(){o.c(),e=Wt()},l(t){o.l(t),e=Wt()},m(t,r){o.m(t,r),Mt(t,e,r),n=!0},p(t,n){128&n&&vt(r,r=t[7])?(Pe(),Fe(o,1,1,st),Se(),o=Uo(t),o.c(),Ie(o,1),o.m(e.parentNode,e)):o.p(t,n)},i(t){n||(Ie(o),n=!0)},o(t){Fe(o),n=!1},d(t){t&&Jt(e),o.d(t)}}}function Uo(t){let e,n;return e=new Ri({props:{div:t[7].div,templateContext:t[1]}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(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||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function qo(t){let e,n,r,o,i,a,l,s,c,u;function d(){return t[11](t[25])}return r=new Ri({props:{div:t[25].json,templateContext:t[25].templateContext}}),{c(){e=Bt("div"),n=Bt("div"),Te(r.$$.fragment),i=Lt(),this.h()},l(t){e=Yt(t,"DIV",{class:!0});var o=Gt(e);n=Yt(o,"DIV",{class:!0});var a=Gt(n);Re(r.$$.fragment,a),a.forEach(Jt),i=te(o),o.forEach(Jt),this.h()},h(){qt(n,"class",o="divkit-db2e"),qt(e,"class",a="divkit-be08")},m(t,o){Mt(t,e,o),zt(e,n),Le(r,n,null),zt(e,i),s=!0,c||(u=Ut(e,"introend",d),c=!0)},p(e,n){t=e;const o={};64&n&&(o.div=t[25].json),64&n&&(o.templateContext=t[25].templateContext),r.$set(o)},i(n){s||(Ie(r.$$.fragment,n),l||xe((()=>{l=ze(e,Oo,t[25]),l.start()})),s=!0)},o(t){Fe(r.$$.fragment,t),s=!1},d(t){t&&Jt(e),We(r),c=!1,u()}}}function Ho(t){let e,n,r,o,i,a,l,s,c,u;function d(){return t[10](t[25])}return r=new Ri({props:{div:t[25].json,templateContext:t[25].templateContext}}),{c(){e=Bt("div"),n=Bt("div"),Te(r.$$.fragment),i=Lt(),this.h()},l(t){e=Yt(t,"DIV",{class:!0,style:!0});var o=Gt(e);n=Yt(o,"DIV",{class:!0});var a=Gt(n);Re(r.$$.fragment,a),a.forEach(Jt),i=te(o),o.forEach(Jt),this.h()},h(){qt(n,"class",o="divkit-db2e"),qt(e,"class",a="divkit-be08"),ne(e,"left",t[25].offsetLeft+"px"),ne(e,"top",t[25].offsetTop+"px"),ne(e,"width",t[25].width+"px"),ne(e,"height",t[25].height+"px")},m(t,o){Mt(t,e,o),zt(e,n),Le(r,n,null),zt(e,i),s=!0,c||(u=Ut(e,"introend",d),c=!0)},p(n,o){t=n;const i={};64&o&&(i.div=t[25].json),64&o&&(i.templateContext=t[25].templateContext),r.$set(i),(!s||64&o)&&ne(e,"left",t[25].offsetLeft+"px"),(!s||64&o)&&ne(e,"top",t[25].offsetTop+"px"),(!s||64&o)&&ne(e,"width",t[25].width+"px"),(!s||64&o)&&ne(e,"height",t[25].height+"px")},i(n){s||(Ie(r.$$.fragment,n),l||xe((()=>{l=ze(e,zo,t[25]),l.start()})),s=!0)},o(t){Fe(r.$$.fragment,t),s=!1},d(t){t&&Jt(e),We(r),c=!1,u()}}}function Go(t,e){let n,r,o,i,a;const l=[Ho,qo],s=[];function c(t,e){return"direction"in t[25]?0:1}return r=c(e),o=s[r]=l[r](e),{key:t,first:null,c(){n=Wt(),o.c(),i=Wt(),this.h()},l(t){n=Wt(),o.l(t),i=Wt(),this.h()},h(){this.first=n},m(t,e){Mt(t,n,e),s[r].m(t,e),Mt(t,i,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?s[r].p(e,n):(Pe(),Fe(s[a],1,1,(()=>{s[a]=null})),Se(),o=s[r],o?o.p(e,n):(o=s[r]=l[r](e),o.c()),Ie(o,1),o.m(i.parentNode,i))},i(t){a||(Ie(o),a=!0)},o(t){Fe(o),a=!1},d(t){t&&Jt(n),s[r].d(t),t&&Jt(i)}}}function Ko(t){var e;let n,r,o,i,a=[],l=new To,s=(null===(e=t[7])||void 0===e?void 0:e.div)&&Wo(t),c=t[6];const u=t=>t[25];for(let e=0;e<c.length;e+=1){let n=Ro(t,c,e),r=u(n);l.set(r,a[e]=Go(r,n))}return{c(){s&&s.c(),n=Lt(),r=Bt("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){s&&s.l(t),n=te(t),r=Yt(t,"DIV",{class:!0});var e=Gt(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(Jt),this.h()},h(){qt(r,"class",o="divkit-d65a")},m(e,o){s&&s.m(e,o),Mt(e,n,o),Mt(e,r,o);for(let t=0;t<a.length;t+=1)a[t].m(r,null);t[12](r),i=!0},p(t,e){var o;null!==(o=t[7])&&void 0!==o&&o.div?s?(s.p(t,e),128&e&&Ie(s,1)):(s=Wo(t),s.c(),Ie(s,1),s.m(n.parentNode,n)):s&&(Pe(),Fe(s,1,1,(()=>{s=null})),Se()),320&e&&(c=t[6],Pe(),a=function(t,e,n,r,o,i,a,l,s,c,u,d){let h=t.length,f=i.length,p=h;const g={};for(;p--;)g[t[p].key]=p;const m=[],v=new Map,$=new Map;for(p=f;p--;){const t=d(o,i,p),r=n(t);let l=a.get(r);l?l.p(t,e):(l=c(r,t),l.c()),v.set(r,m[p]=l),r in g&&$.set(r,Math.abs(p-g[r]))}const y=new Set,_=new Set;function b(t){Ie(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,o=n.key;e===n?(u=e.first,h--,f--):v.has(o)?!a.has(r)||y.has(r)?b(e):_.has(o)?h--:$.get(r)>$.get(o)?(_.add(r),b(e)):(y.add(o),h--):(s(n,a),h--)}for(;h--;){const e=t[h];v.has(e.key)||s(e,a)}for(;f;)b(m[f-1]);return m}(a,e,u,0,t,c,l,r,Je,Go,null,Ro),Se())},i(t){if(!i){Ie(s);for(let t=0;t<c.length;t+=1)Ie(a[t]);i=!0}},o(t){Fe(s);for(let t=0;t<a.length;t+=1)Fe(a[t]);i=!1},d(e){s&&s.d(e),e&&Jt(n),e&&Jt(r);for(let t=0;t<a.length;t+=1)a[t].d();t[12](null)}}}function Xo(t){let e,n,r=!t[5]&&Lo(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){let[o]=n;t[5]?r&&(Pe(),Fe(r,1,1,(()=>{r=null})),Se()):r?(r.p(t,o),32&o&&Ie(r,1)):(r=Lo(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Fe(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function Yo(t){return"change_bounds"===t.type?t:"set"===t.type?Yo(t.items[0]):null}function Zo(t,e,n){let r,{json:o={}}=e,{templateContext:i}=e,{origJson:a}=e,{layoutParams:l}=e;const s=he(rn);let c,u=new Map,d=!1,h=null,f=[],p=[],g=[],m=[];function v(t,e,n){let{json:r,templateContext:o,transitions:i,node:a}=e;r=s.getJsonWithVars(r),i=s.getJsonWithVars(i);const l=Bo(i),c=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{transition_in:void 0,transition_out:void 0,transition_change:void 0,margins:void 0,alpha:void 0}),templateContext:o,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}}const $=o.div_id||o.id;$?(he(xn).registerInstance($,{async setState(t){if(y===t)return;s.setRunning("stateChange",!0),f.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,f=[]);let e=[];if(c){const t=c.getBoundingClientRect();e=g.map((e=>v(t,e,"out")))}m.forEach((t=>{u.set(t.id,t.node.getBoundingClientRect())})),p=[],g=[],m=[];const o=r.find((e=>e.state_id===t))||null;if(o?(y=t,n(7,_=o)):s.logError(on(new Error("Cannot find state with id"),{additional:{stateId:t}})),await be(),!c)return;const i=c.getBoundingClientRect();let a=p.map((t=>v(i,t,"in")));const l=e.concat(a),d=l.reduce(((t,e)=>Math.max(t,No(e.transitions))),0),h=m.filter((t=>u.has(t.id))).map((t=>({json:Object.assign(Object.assign({},t.json),{transition_in:void 0,transition_out:void 0,transition_change:void 0,margins:void 0,alpha:void 0,width:{type:"match_parent"},height:{type:"match_parent"}}),templateContext:t.templateContext,rootBbox:i,beforeBbox:u.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:Yo(t.transitions),resolvePromise:t.resolvePromise})));n(6,f=[...l.map((t=>Object.assign(Object.assign({},t),{maxDuration:d}))),...h]),u.clear(),s.setRunning("stateChange",!1)},getChild(t){if(h&&h.has(t))return h.get(t);s.logError(on(new Error("Missing state block with id"),{additional:{id:t}}))}}),de(xn,{registerInstance(t,e){h||(h=new Map),h.has(t)?s.logError(on(new Error("Duplicate state with id"),{additional:{id:t}})):h.set(t,e)},runVisibilityTransition(t,e,r,o,i){if(!c)return Promise.resolve();const a=v(c.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:o},i),l=No(a.transitions),s=Object.assign(Object.assign({},a),{maxDuration:l});return n(6,f=[...f.filter((t=>t.node!==a.node)),s]),new Promise((t=>{s.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const o={json:t,templateContext:e,transitions:n,node:r};return p.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const o={json:t,templateContext:e,transitions:n,node:r};return g.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const o=t.id;if(!o)return Promise.resolve();const i={id:o,json:t,templateContext:e,transitions:n,node:r};return m.push(i),new Promise((t=>{i.resolvePromise=t}))},hasTransitionChange:t=>!!t&&u.has(t)})):(d=!0,s.logError(on(new Error('Missing "id" prop for div "state"'))));let y,_=null;const b=s.getJsonWithVars(o.default_state_id);let x=!1;function w(t){n(6,f=f.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return t.$$set=t=>{"json"in t&&n(0,o=t.json),"templateContext"in t&&n(1,i=t.templateContext),"origJson"in t&&n(2,a=t.origJson),"layoutParams"in t&&n(3,l=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&n(9,r=o.states||[]),512&t.$$.dirty&&((null==r?void 0:r.length)?n(5,d=!1):(n(5,d=!0),s.logError(on(new Error('Empty "states" prop for div "state"'))))),512&t.$$.dirty&&function(t){x||(x=!0,t.length&&(b?(y=b,n(7,_=t.find((t=>t.state_id===y))||null),_||s.logError(on(new Error("Cannot find state for default_state_id"),{additional:{selectedId:y}}))):(n(7,_=t[0]),y=_.state_id)))}(r)},[o,i,a,l,c,d,f,_,w,r,t=>w(t),t=>w(t),function(t){ge[t?"unshift":"push"]((()=>{c=t,n(4,c)}))}]}const Qo={pager:"divkit-c069",pager__items:"divkit-e14c",pager_orientation_horizontal:"divkit-f1e2",pager_orientation_vertical:"divkit-da83"},{Boolean:ti}=Me;function ei(t,e,n){const r=t.slice();return r[44]=e[n],r}function ni(t){let e,n;return e=new Xn({props:{cls:_n("pager",Qo,t[8]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,$$slots:{default:[oi]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=_n("pager",Qo,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]),560&n[0]|65536&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function ri(t){let e,n;return e=new Ri({props:{layoutParams:t[14],div:t[44].json,templateContext:t[44].templateContext,origJson:t[44].origJson}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.div=t[44].json),16&n[0]&&(r.templateContext=t[44].templateContext),16&n[0]&&(r.origJson=t[44].origJson),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function oi(t){let e,n,r,o,i,a,l=t[4],s=[];for(let e=0;e<l.length;e+=1)s[e]=ri(ei(t,l,e));const c=t=>Fe(s[t],1,1,(()=>{s[t]=null}));return{c(){e=Bt("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=Yt(t,"DIV",{class:!0,style:!0});var n=Gt(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(Jt),this.h()},h(){qt(e,"class",n=Qo.pager__items),qt(e,"style",r=sn(t[9]))},m(n,r){Mt(n,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);t[35](e),o=!0,i||(a=Ut(e,"scroll",t[15]),i=!0)},p(t,n){if(16400&n[0]){let r;for(l=t[4],r=0;r<l.length;r+=1){const o=ei(t,l,r);s[r]?(s[r].p(o,n),Ie(s[r],1)):(s[r]=ri(o),s[r].c(),Ie(s[r],1),s[r].m(e,null))}for(Pe(),r=l.length;r<s.length;r+=1)c(r);Se()}(!o||512&n[0]&&r!==(r=sn(t[9])))&&qt(e,"style",r)},i(t){if(!o){for(let t=0;t<l.length;t+=1)Ie(s[t]);o=!0}},o(t){s=s.filter(ti);for(let t=0;t<s.length;t+=1)Fe(s[t]);o=!1},d(n){n&&Jt(e),Ot(s,n),t[35](null),i=!1,a()}}}function ii(t){let e,n,r=!t[7]&&ni(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){t[7]?r&&(Pe(),Fe(r,1,1,(()=>{r=null})),Se()):r?(r.p(t,n),128&n[0]&&Ie(r,1)):(r=ni(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Fe(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function ai(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$=st,y=st,_=st,b=st,x=st;var w,k,C,E,A,j,V;t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>x()));let{json:D={}}=e,{templateContext:P}=e,{origJson:S}=e,{layoutParams:I}=e;const F=he(rn),N=F.genId("pager");let z,M=!1,J=0,O=!1,B="horizontal",T="",R="",L="";const W=function(t,e){let n;return function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,r),n=null}),50)}}((function(){const t=function(){const t=Array.from(z.children),e=z.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===B?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:J}();t!==J&&n(24,J=t)}));function U(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const r="horizontal"===B,o=z.children[t],i=r?"offsetLeft":"offsetTop",a=r?"left":"top";z.scroll({[a]:o[i],behavior:e}),n(24,J=t)}return D.id&&F.registerInstance(D.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');U(t)},setPreviousItem(t){let e=J-1;e<0&&(e="ring"===t?r.length-1:J),U(e)},setNextItem(t){let e=J+1;e>r.length-1&&(e="ring"===t?0:J),U(e)}}),ce((()=>{if(Boolean(document.getElementById("".concat(N,"-tab-0")))){const t=[...z.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(N,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(N,"-tab-").concat(e))}})),t.$$set=t=>{"json"in t&&n(0,D=t.json),"templateContext"in t&&n(1,P=t.templateContext),"origJson"in t&&n(2,S=t.origJson),"layoutParams"in t&&n(3,I=t.layoutParams)},t.$$.update=()=>{if(65537&t.$$.dirty[0]&&((null===n(16,w=D.items)||void 0===w?void 0:w.length)&&Array.isArray(D.items)?n(23,M=!1):(n(23,M=!0),F.logError(on(new Error('Incorrect or empty "items" prop for div "pager"'))))),8388611&t.$$.dirty[0]&&n(4,r=(!M&&D.items||[]).map((t=>{let e=t,n=P;return({templateContext:n,json:e}=F.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(13,o=F.getDerivedFromVars(D.layout_mode)),y(),y=yt(o,(t=>n(31,p=t)))),1&t.$$.dirty[1]&&(p?"percentage"!==p.type&&"fixed"!==p.type?(n(25,O=!0),F.logError(on(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):n(25,O=!1):(n(25,O=!0),F.logError(on(new Error('Empty "layout_mode" prop for div "pager"'))))),1&t.$$.dirty[0]&&(n(12,i=F.getDerivedFromVars(D.orientation)),x(),x=yt(i,(t=>n(34,v=t)))),67108864&t.$$.dirty[0]|8&t.$$.dirty[1]&&n(26,B=Vr(v,B)),1&t.$$.dirty[0]&&(n(11,a=F.getDerivedFromVars(D.item_spacing)),b(),b=yt(a,(t=>n(33,m=t)))),4&t.$$.dirty[1]){const t=null==m?void 0:m.value;t&&kn(t)&&n(27,T=cn(t||0))}if(1&t.$$.dirty[0]&&(n(10,l=F.getDerivedFromVars(D.paddings)),_(),_=yt(l,(t=>n(32,g=t)))),268435456&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(28,R=En(g,R)),67108864&t.$$.dirty[0]&&n(30,s="horizontal"===B?"grid-auto-columns":"grid-auto-rows"),209584129&t.$$.dirty[0]|1&t.$$.dirty[1])if("fixed"===(null==p?void 0:p.type)){const t=un("horizontal"===B?((null===n(17,k=D.paddings)||void 0===k?void 0:k.left)||0)+((null===n(18,C=D.paddings)||void 0===C?void 0:C.right)||0):((null===n(19,E=D.paddings)||void 0===E?void 0:E.top)||0)+((null===n(20,A=D.paddings)||void 0===A?void 0:A.bottom)||0)),e=null===n(21,j=p.neighbour_page_width)||void 0===j?void 0:j.value;n(29,L=e?"calc(100% + ".concat(t," - 2 * ").concat(un(e)," - 2 * ").concat(T,")"):"100%")}else if("percentage"===(null==p?void 0:p.type)){const t=null===n(22,V=p.page_width)||void 0===V?void 0:V.value;n(29,L="".concat(Number(t),"%"))}2013265920&t.$$.dirty[0]&&n(9,c={"grid-gap":T,padding:R,[s]:L}),67108864&t.$$.dirty[0]&&n(8,u={orientation:B}),41943040&t.$$.dirty[0]&&n(7,d=M||O),16777232&t.$$.dirty[0]&&function(t,e){const n=D.id;if(n){const i=new Map(f);r=h,f=i.set(n,{instId:N,size:t,currentItem:e,scrollToPagerItem:U}),o=f,r.set(o)}var r,o}(r.length,J)},n(6,h=F.getStore("pagers")),$(),$=yt(h,(t=>n(36,f=t))),[D,P,S,I,r,z,h,d,u,c,l,a,i,o,{scrollSnap:"center"},W,w,k,C,E,A,j,V,M,J,O,B,T,R,L,s,p,g,m,v,function(t){ge[t?"unshift":"push"]((()=>{z=t,n(5,z)}))}]}const li={indicator:"divkit-ed9b",indicator__scroller:"divkit-cd97",indicator__items:"divkit-c99a",indicator__item:"divkit-d5f7",indicator__item_active:"divkit-a1e0"};function si(t,e,n){const r=t.slice();r[34]=e[n],r[37]=n;const o=r[37]===r[13].currentItem;return r[35]=o,r}function ci(t){let e,n=Array(t[13].size),r=[];for(let e=0;e<n.length;e+=1)r[e]=ui(si(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=Wt()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=Wt()},m(t,n){for(let e=0;e<r.length;e+=1)r[e].m(t,n);Mt(t,e,n)},p(t,o){if(3153920&o[0]){let i;for(n=Array(t[13].size),i=0;i<n.length;i+=1){const a=si(t,n,i);r[i]?r[i].p(a,o):(r[i]=ui(a),r[i].c(),r[i].m(e.parentNode,e))}for(;i<r.length;i+=1)r[i].d(1);r.length=n.length}},d(t){Ot(r,t),t&&Jt(e)}}}function ui(t){let e,n,r,o,i,a,l,s;function c(){return t[28](t[37])}return{c(){e=Bt("div"),this.h()},l(t){e=Yt(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),Gt(e).forEach(Jt),this.h()},h(){qt(e,"class",n=_n("indicator__item",li,{active:t[35]})+" divkit-e1c6"),qt(e,"role","tab"),qt(e,"id",r=t[13].instId+"-tab-"+t[37]),qt(e,"aria-controls",o=t[13].instId+"-panel-"+t[37]),qt(e,"aria-selected",i=t[35]?"true":"false"),qt(e,"tabindex",a=t[35]?0:-1)},m(n,r){Mt(n,e,r),l||(s=[Ut(e,"click",c),Ut(e,"keydown",t[21])],l=!0)},p(l,s){t=l,8192&s[0]&&n!==(n=_n("indicator__item",li,{active:t[35]})+" divkit-e1c6")&&qt(e,"class",n),8192&s[0]&&r!==(r=t[13].instId+"-tab-"+t[37])&&qt(e,"id",r),8192&s[0]&&o!==(o=t[13].instId+"-panel-"+t[37])&&qt(e,"aria-controls",o),8192&s[0]&&i!==(i=t[35]?"true":"false")&&qt(e,"aria-selected",i),8192&s[0]&&a!==(a=t[35]?0:-1)&&qt(e,"tabindex",a)},d(t){t&&Jt(e),l=!1,ft(s)}}}function di(t){let e,n,r,o,i="0 ".concat(cn((t[10]-1)*t[4]/2)),a="0 ".concat(cn((t[9]-t[4])/2)),l=t[13]&&ci(t);return{c(){e=Bt("div"),n=Bt("div"),l&&l.c(),this.h()},l(t){e=Yt(t,"DIV",{class:!0});var r=Gt(e);n=Yt(r,"DIV",{class:!0,role:!0});var o=Gt(n);l&&l.l(o),o.forEach(Jt),r.forEach(Jt),this.h()},h(){qt(n,"class",r=li.indicator__items),qt(n,"role","tablist"),ne(n,"margin",i,!1),ne(n,"--divkit-indicator-width",cn(t[4]),!1),ne(n,"--divkit-indicator-height",cn(t[5]),!1),ne(n,"--divkit-indicator-border-radius",cn(t[6]),!1),ne(n,"--divkit-indicator-active-color",t[7],!1),ne(n,"--divkit-indicator-inactive-color",t[8],!1),ne(n,"--divkit-indicator-active-scale",t[10],!1),ne(n,"--divkit-indicator-margin",a,!1),qt(e,"class",o=li.indicator__scroller)},m(r,o){Mt(r,e,o),zt(e,n),l&&l.m(n,null),t[29](n),t[30](e)},p(t,e){t[13]?l?l.p(t,e):(l=ci(t),l.c(),l.m(n,null)):l&&(l.d(1),l=null),1040&e[0]&&i!==(i="0 ".concat(cn((t[10]-1)*t[4]/2)))&&ne(n,"margin",i,!1),16&e[0]&&ne(n,"--divkit-indicator-width",cn(t[4]),!1),32&e[0]&&ne(n,"--divkit-indicator-height",cn(t[5]),!1),64&e[0]&&ne(n,"--divkit-indicator-border-radius",cn(t[6]),!1),128&e[0]&&ne(n,"--divkit-indicator-active-color",t[7],!1),256&e[0]&&ne(n,"--divkit-indicator-inactive-color",t[8],!1),1024&e[0]&&ne(n,"--divkit-indicator-active-scale",t[10],!1),528&e[0]&&a!==(a="0 ".concat(cn((t[9]-t[4])/2)))&&ne(n,"--divkit-indicator-margin",a,!1)},d(n){n&&Jt(e),l&&l.d(),t[29](null),t[30](null)}}}function hi(t){let e,n;return e=new Xn({props:{cls:_n("indicator",li,{}),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[di]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(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]),16368&n[0]|128&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function fi(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g=st,m=st,v=st,$=st,y=st,_=st;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>_()));let{json:b={}}=e,{templateContext:x}=e,{origJson:w}=e,{layoutParams:k}=e;const E=he(rn);let A,j,V,D=10,P=10,S=5,I="#ffdc60",F=C("#33919cb5"),N=15,z=1.3;function M(t){t!==V.currentItem&&V.scrollToPagerItem(t)}async function J(t){V.scrollToPagerItem(t),await be();const e=j.querySelector(".".concat(li.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&n(0,b=t.json),"templateContext"in t&&n(1,x=t.templateContext),"origJson"in t&&n(2,w=t.origJson),"layoutParams"in t&&n(3,k=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&(n(19,r=E.getDerivedFromVars(b.shape)),_(),_=yt(r,(t=>n(27,p=t)))),134217840&t.$$.dirty[0]&&p&&(p.item_width&&n(4,D=An(p.item_width.value,D)),p.item_height&&n(5,P=An(p.item_height.value,P)),p.corner_radius&&n(6,S=An(p.corner_radius.value,S))),1&t.$$.dirty[0]&&(n(18,o=E.getDerivedFromVars(b.active_item_color)),y(),y=yt(o,(t=>n(26,f=t)))),67108992&t.$$.dirty[0]&&n(7,I=C(f,1,I)),1&t.$$.dirty[0]&&(n(17,i=E.getDerivedFromVars(b.inactive_item_color)),$(),$=yt(i,(t=>n(25,h=t)))),33554688&t.$$.dirty[0]&&n(8,F=C(h,1,F)),1&t.$$.dirty[0]&&(n(16,a=E.getDerivedFromVars(b.space_between_centers)),v(),v=yt(a,(t=>n(24,d=t)))),16777728&t.$$.dirty[0]&&d&&n(9,N=An(d.value,N)),1&t.$$.dirty[0]&&(n(15,l=E.getDerivedFromVars(b.active_item_size)),m(),m=yt(l,(t=>n(23,u=t)))),8389632&t.$$.dirty[0]&&n(10,z=Zn(u,z)),4194304&t.$$.dirty[0]&&async function(t){if(b.pager_id&&t.has(b.pager_id)){n(13,V=t.get(b.pager_id)),await be();const e=j.children[V.currentItem].offsetLeft;A.scroll({left:e-A.clientWidth/2,behavior:"smooth"})}}(c)},n(14,s=E.getStore("pagers")),g(),g=yt(s,(t=>n(22,c=t))),[b,x,w,k,D,P,S,I,F,N,z,A,j,V,s,l,a,i,o,r,M,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=V;if(37===t.which)J(n-1<0?n:n-1);else if(39===t.which)J(n+1>=e?n:n+1);else if(36===t.which)J(0);else{if(35!==t.which)return;J(e-1)}t.preventDefault()},c,u,d,h,f,p,t=>M(t),function(t){ge[t?"unshift":"push"]((()=>{j=t,n(12,j)}))},function(t){ge[t?"unshift":"push"]((()=>{A=t,n(11,A)}))}]}const pi={slider:"divkit-daa6",slider__input:"divkit-ae7e",slider__input_secondary:"divkit-dc1a",slider__thumb:"divkit-d5c2",slider__thumb_secondary:"divkit-b18f","slider__tracks-wrapper":"divkit-ef47","slider__tracks-inner":"divkit-af46",slider__track:"divkit-d9b7","slider__active-track":"divkit-dd03","slider__thumb-text-wrapper":"divkit-a896","slider__thumb-text":"divkit-bfb6","slider__thumb-text_secondary":"divkit-f946",slider__tick:"divkit-fffa",slider__tick_active:"divkit-cb8f",slider__tick_inactive:"divkit-c7bc"};function gi(t,e){var n,r,o;if(!t||!t.shape||!t.color)return e;const i=C(t.color),a=Number((null===(n=t.shape.item_width)||void 0===n?void 0:n.value)||10),l=Number((null===(r=t.shape.item_height)||void 0===r?void 0:r.value)||10),s=Number((null===(o=t.shape.corner_radius)||void 0===o?void 0:o.value)||5);if("shape_drawable"===t.type&&"transparent"!==i&&"rounded_rectangle"===t.shape.type){var c,u;const e={},n=null!==(c=t.stroke)&&void 0!==c&&c.color?C(t.stroke.color):"",r=null!==(u=t.stroke)&&void 0!==u&&u.width?Number(t.stroke.width||1):"";return e.width=a,e.height=l,e.borderRadius=s,e.background=i,n&&r&&(e.boxShadow="inset 0 0 0 ".concat(cn(r)," ").concat(n)),e}return e}function mi(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&C(t.text_color)||"#000",o=tr(t.font_weight);if(Qn(t.font_size)&&"transparent"!==r){var i,a;const e={fontSize:cn(t.font_size),fontWeight:o,textColor:r};return"number"==typeof(null==n||null===(i=n.x)||void 0===i?void 0:i.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 vi(t,e,n){return Math.max(e,Math.min(n,t))}function $i(t,e){const n=Number(t);return isNaN(n)?e:n}function yi(t,e,n){const r=t.slice();return r[81]=e[n],r}function _i(t,e,n){const r=t.slice();return r[81]=e[n],r}function bi(t){let e,n;return e=new Xn({props:{cls:_n("slider",pi,t[21]),style:t[22],customDescription:!0,customActions:"slider",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ei]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};2097152&n[0]&&(r.cls=_n("slider",pi,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]|16777216&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function xi(t){let e,n,r,o=t[12]&&wi(t),i=t[37]&&function(t){let e,n,r,o,i;return{c(){e=Bt("div"),n=Bt("div"),r=Rt(t[7]),this.h()},l(o){e=Yt(o,"DIV",{class:!0});var i=Gt(e);n=Yt(i,"DIV",{class:!0});var a=Gt(n);r=Qt(a,t[7]),a.forEach(Jt),i.forEach(Jt),this.h()},h(){var r,a,l;qt(n,"class",o=pi["slider__thumb-text-inner"]),ne(n,"font-size",(null===(r=t[13])||void 0===r?void 0:r.fontSize)||"1em",!1),ne(n,"font-weight",(null===(a=t[13])||void 0===a?void 0:a.fontWeight)||"",!1),ne(n,"color",(null===(l=t[13])||void 0===l?void 0:l.textColor)||"#000",!1),qt(e,"class",i=pi["slider__thumb-text"]+" "+pi["slider__thumb-text_secondary"])},m(t,o){Mt(t,e,o),zt(e,n),zt(n,r)},p(t,e){var o,i,a;128&e[0]&&ee(r,t[7]),8192&e[0]&&ne(n,"font-size",(null===(o=t[13])||void 0===o?void 0:o.fontSize)||"1em",!1),8192&e[0]&&ne(n,"font-weight",(null===(i=t[13])||void 0===i?void 0:i.fontWeight)||"",!1),8192&e[0]&&ne(n,"color",(null===(a=t[13])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&Jt(e)}}}(t);return{c(){e=Bt("div"),o&&o.c(),n=Lt(),i&&i.c(),this.h()},l(t){e=Yt(t,"DIV",{class:!0,"aria-hidden":!0});var r=Gt(e);o&&o.l(r),n=te(r),i&&i.l(r),r.forEach(Jt),this.h()},h(){qt(e,"class",r=pi["slider__thumb-text-wrapper"]),qt(e,"aria-hidden","true")},m(t,r){Mt(t,e,r),o&&o.m(e,null),zt(e,n),i&&i.m(e,null)},p(t,r){t[12]?o?o.p(t,r):(o=wi(t),o.c(),o.m(e,n)):o&&(o.d(1),o=null),t[37]&&i.p(t,r)},d(t){t&&Jt(e),o&&o.d(),i&&i.d()}}}function wi(t){let e,n,r,o,i;return{c(){e=Bt("div"),n=Bt("div"),r=Rt(t[6]),this.h()},l(o){e=Yt(o,"DIV",{class:!0});var i=Gt(e);n=Yt(i,"DIV",{class:!0});var a=Gt(n);r=Qt(a,t[6]),a.forEach(Jt),i.forEach(Jt),this.h()},h(){var r,a,l;qt(n,"class",o=pi["slider__thumb-text-inner"]),ne(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em",!1),ne(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||"",!1),ne(n,"color",(null===(l=t[12])||void 0===l?void 0:l.textColor)||"#000",!1),qt(e,"class",i=pi["slider__thumb-text"])},m(t,o){Mt(t,e,o),zt(e,n),zt(n,r)},p(t,e){var o,i,a;64&e[0]&&ee(r,t[6]),4096&e[0]&&ne(n,"font-size",(null===(o=t[12])||void 0===o?void 0:o.fontSize)||"1em",!1),4096&e[0]&&ne(n,"font-weight",(null===(i=t[12])||void 0===i?void 0:i.fontWeight)||"",!1),4096&e[0]&&ne(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&Jt(e)}}}function ki(t){let e,n;return{c(){e=Bt("div"),this.h()},l(t){e=Yt(t,"DIV",{class:!0}),Gt(e).forEach(Jt),this.h()},h(){qt(e,"class",n=pi.slider__tick+" "+pi.slider__tick_active),ne(e,"--divkit-slider-tick",t[81],!1)},m(t,n){Mt(t,e,n)},p(t,n){131072&n[0]&&ne(e,"--divkit-slider-tick",t[81],!1)},d(t){t&&Jt(e)}}}function Ci(t){let e,n;return{c(){e=Bt("div"),this.h()},l(t){e=Yt(t,"DIV",{class:!0}),Gt(e).forEach(Jt),this.h()},h(){qt(e,"class",n=pi.slider__tick+" "+pi.slider__tick_inactive),ne(e,"--divkit-slider-tick",t[81],!1)},m(t,n){Mt(t,e,n)},p(t,n){262144&n[0]&&ne(e,"--divkit-slider-tick",t[81],!1)},d(t){t&&Jt(e)}}}function Ei(t){let e,n,r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k=(t[12]||t[37]&&t[13])&&xi(t),C=t[17],E=[];for(let e=0;e<C.length;e+=1)E[e]=ki(_i(t,C,e));let A=t[18],j=[];for(let e=0;e<A.length;e+=1)j[e]=Ci(yi(t,A,e));let V=t[37]&&function(t){let e,n;return{c(){e=Bt("div"),this.h()},l(t){e=Yt(t,"DIV",{class:!0}),Gt(e).forEach(Jt),this.h()},h(){qt(e,"class",n=pi.slider__thumb+" "+pi.slider__thumb_secondary),ne(e,"border-radius",cn(t[9].borderRadius),!1),ne(e,"background",t[9].background,!1),ne(e,"box-shadow",t[9].boxShadow||"",!1)},m(t,n){Mt(t,e,n)},p(t,n){512&n[0]&&ne(e,"border-radius",cn(t[9].borderRadius),!1),512&n[0]&&ne(e,"background",t[9].background,!1),512&n[0]&&ne(e,"box-shadow",t[9].boxShadow||"",!1)},d(t){t&&Jt(e)}}}(t),D=t[37]&&function(t){let e,n,r,o,i;return{c(){e=Bt("input"),this.h()},l(t){e=Yt(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){qt(e,"type","range"),qt(e,"class",n=t[16]?pi.slider__input:"".concat(pi.slider__input," ").concat(pi.slider__input_secondary)),qt(e,"min",t[4]),qt(e,"max",t[5]),qt(e,"step","1"),e.value=r=t[16]?t[6]:t[7],qt(e,"aria-label",t[20])},m(n,r){Mt(n,e,r),o||(i=[Ut(e,"input",t[75]),Ut(e,"mousedown",t[37]?t[40]:null),Ut(e,"touchstart",t[37]?t[40]:null)],o=!0)},p(t,o){65536&o[0]&&n!==(n=t[16]?pi.slider__input:"".concat(pi.slider__input," ").concat(pi.slider__input_secondary))&&qt(e,"class",n),16&o[0]&&qt(e,"min",t[4]),32&o[0]&&qt(e,"max",t[5]),65728&o[0]&&r!==(r=t[16]?t[6]:t[7])&&(e.value=r),1048576&o[0]&&qt(e,"aria-label",t[20])},d(t){t&&Jt(e),o=!1,ft(i)}}}(t);return{c(){e=Bt("div"),k&&k.c(),n=Lt(),r=Bt("div"),o=Bt("div"),a=Lt(),l=Bt("div"),c=Lt();for(let t=0;t<E.length;t+=1)E[t].c();u=Lt();for(let t=0;t<j.length;t+=1)j[t].c();d=Lt(),h=Bt("div"),p=Lt(),V&&V.c(),g=Lt(),m=Bt("input"),y=Lt(),D&&D.c(),this.h()},l(t){e=Yt(t,"DIV",{class:!0});var i=Gt(e);k&&k.l(i),n=te(i),r=Yt(i,"DIV",{class:!0});var s=Gt(r);o=Yt(s,"DIV",{class:!0}),Gt(o).forEach(Jt),a=te(s),l=Yt(s,"DIV",{class:!0}),Gt(l).forEach(Jt),c=te(s);for(let t=0;t<E.length;t+=1)E[t].l(s);u=te(s);for(let t=0;t<j.length;t+=1)j[t].l(s);d=te(s),h=Yt(s,"DIV",{class:!0}),Gt(h).forEach(Jt),p=te(s),V&&V.l(s),g=te(s),m=Yt(s,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),y=te(s),D&&D.l(s),s.forEach(Jt),i.forEach(Jt),this.h()},h(){qt(o,"class",i=pi.slider__track),ne(o,"height",cn(t[10].height),!1),ne(o,"border-radius",cn(t[10].borderRadius),!1),ne(o,"background",t[10].background,!1),ne(o,"box-shadow",t[10].boxShadow||"",!1),qt(l,"class",s=pi["slider__active-track"]),ne(l,"left",(100*t[23]).toFixed(2)+"%",!1),ne(l,"width",(100*t[24]).toFixed(2)+"%",!1),ne(l,"height",cn(t[11].height),!1),ne(l,"border-radius",cn(t[11].borderRadius),!1),ne(l,"background",t[11].background,!1),ne(l,"box-shadow",t[11].boxShadow||"",!1),qt(h,"class",f=pi.slider__thumb),ne(h,"border-radius",cn(t[8].borderRadius),!1),ne(h,"background",t[8].background,!1),ne(h,"box-shadow",t[8].boxShadow||"",!1),qt(m,"type","range"),qt(m,"class",v=t[16]?"".concat(pi.slider__input," ").concat(pi.slider__input_secondary):pi.slider__input),qt(m,"min",t[4]),qt(m,"max",t[5]),qt(m,"step","1"),m.value=$=t[16]?t[7]:t[6],qt(m,"aria-label",t[19]),qt(r,"class",_=pi["slider__tracks-inner"]),qt(e,"class",b=pi["slider__tracks-wrapper"])},m(i,s){Mt(i,e,s),k&&k.m(e,null),zt(e,n),zt(e,r),zt(r,o),zt(r,a),zt(r,l),zt(r,c);for(let t=0;t<E.length;t+=1)E[t].m(r,null);zt(r,u);for(let t=0;t<j.length;t+=1)j[t].m(r,null);zt(r,d),zt(r,h),zt(r,p),V&&V.m(r,null),zt(r,g),zt(r,m),zt(r,y),D&&D.m(r,null),t[76](r),x||(w=Ut(m,"input",t[74]),x=!0)},p(t,i){if(t[12]||t[37]&&t[13]?k?k.p(t,i):(k=xi(t),k.c(),k.m(e,n)):k&&(k.d(1),k=null),1024&i[0]&&ne(o,"height",cn(t[10].height),!1),1024&i[0]&&ne(o,"border-radius",cn(t[10].borderRadius),!1),1024&i[0]&&ne(o,"background",t[10].background,!1),1024&i[0]&&ne(o,"box-shadow",t[10].boxShadow||"",!1),8388608&i[0]&&ne(l,"left",(100*t[23]).toFixed(2)+"%",!1),16777216&i[0]&&ne(l,"width",(100*t[24]).toFixed(2)+"%",!1),2048&i[0]&&ne(l,"height",cn(t[11].height),!1),2048&i[0]&&ne(l,"border-radius",cn(t[11].borderRadius),!1),2048&i[0]&&ne(l,"background",t[11].background,!1),2048&i[0]&&ne(l,"box-shadow",t[11].boxShadow||"",!1),131072&i[0]){let e;for(C=t[17],e=0;e<C.length;e+=1){const n=_i(t,C,e);E[e]?E[e].p(n,i):(E[e]=ki(n),E[e].c(),E[e].m(r,u))}for(;e<E.length;e+=1)E[e].d(1);E.length=C.length}if(262144&i[0]){let e;for(A=t[18],e=0;e<A.length;e+=1){const n=yi(t,A,e);j[e]?j[e].p(n,i):(j[e]=Ci(n),j[e].c(),j[e].m(r,d))}for(;e<j.length;e+=1)j[e].d(1);j.length=A.length}256&i[0]&&ne(h,"border-radius",cn(t[8].borderRadius),!1),256&i[0]&&ne(h,"background",t[8].background,!1),256&i[0]&&ne(h,"box-shadow",t[8].boxShadow||"",!1),t[37]&&V.p(t,i),65536&i[0]&&v!==(v=t[16]?"".concat(pi.slider__input," ").concat(pi.slider__input_secondary):pi.slider__input)&&qt(m,"class",v),16&i[0]&&qt(m,"min",t[4]),32&i[0]&&qt(m,"max",t[5]),65728&i[0]&&$!==($=t[16]?t[7]:t[6])&&(m.value=$),524288&i[0]&&qt(m,"aria-label",t[19]),t[37]&&D.p(t,i)},d(n){n&&Jt(e),k&&k.d(),Ot(E,n),Ot(j,n),V&&V.d(),D&&D.d(),t[76](null),x=!1,w()}}}function Ai(t){let e,n,r=!t[14]&&bi(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){t[14]?r&&(Pe(),Fe(r,1,1,(()=>{r=null})),Se()):r?(r.p(t,n),16384&n[0]&&Ie(r,1)):(r=bi(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Fe(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function ji(t,e,n,r,o){let i=[];if(o)for(let o=t;o<e;++o)i.push((o-n)/(r-n));else{for(let e=n;e<t;++e)i.push((e-n)/(r-n));for(let t=e;t<r+1;++t)i.push((t-n)/(r-n))}return i}function Vi(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,C,E,A,j,V,D,P,S,I,F,N,z,M,J,O,B,T=st,R=st,L=st,W=st,U=st,q=st,H=st,G=st,K=st,X=st,Y=st,Z=st;var Q,tt,et,nt,rt,ot,it,at;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),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:lt={}}=e,{templateContext:ct}=e,{origJson:ut}=e,{layoutParams:dt}=e;const ht={width:10,height:10,borderRadius:5,background:"#000"},ft=he(rn),pt=he(Sn);let gt,mt=!1,vt=0,$t=100;const bt=ft.getJsonWithVars(lt.thumb_value_variable),xt=ft.getJsonWithVars(lt.thumb_secondary_value_variable);let wt=bt&&ft.getVariable(bt,"integer")||Ze("temp","integer",0);_t(t,wt,(t=>n(71,J=t)));let kt=xt&&ft.getVariable(xt,"integer")||Ze("temp","integer",0);_t(t,kt,(t=>n(70,M=t)));let Ct,Et,At,jt=vi(J||0,vt,$t),Vt=vi(M||0,vt,$t),Dt=ht,Pt=Dt,St=ht,It=ht,Ft=null,Nt=null,zt=At,Mt="",Jt="",Ot=!1;function Bt(t,e){const r=Number(t.target.value);mt===("first"===e)?(n(7,Vt=r),kt.setValue(r)):(n(6,jt=r),wt.setValue(r))}return t.$$set=t=>{"json"in t&&n(0,lt=t.json),"templateContext"in t&&n(1,ct=t.templateContext),"origJson"in t&&n(2,ut=t.origJson),"layoutParams"in t&&n(3,dt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(36,r=ft.getDerivedFromVars(lt.min_value)),Z(),Z=yt(r,(t=>n(73,B=t)))),1&t.$$.dirty[0]&&(n(35,o=ft.getDerivedFromVars(lt.max_value)),Y(),Y=yt(o,(t=>n(72,O=t)))),48&t.$$.dirty[0]|3072&t.$$.dirty[2]&&(n(4,vt=$i(B,vt)),n(5,$t=$i(O,$t))),112&t.$$.dirty[0]|512&t.$$.dirty[2]){const t=vi(J||0,vt,$t);t!==jt&&n(6,jt=t)}if(176&t.$$.dirty[0]|256&t.$$.dirty[2]){const t=vi(M||0,vt,$t);t!==Vt&&n(7,Vt=t)}if(1&t.$$.dirty[0]&&(n(34,i=ft.getDerivedFromVars(lt.thumb_style)),X(),X=yt(i,(t=>n(69,z=t)))),256&t.$$.dirty[0]|128&t.$$.dirty[2]&&n(8,Dt=gi(z,Dt)),1&t.$$.dirty[0]&&(n(33,a=ft.getDerivedFromVars(lt.thumb_secondary_style)),K(),K=yt(a,(t=>n(68,N=t)))),256&t.$$.dirty[0]|64&t.$$.dirty[2]&&n(9,Pt=gi(N,Dt)),1&t.$$.dirty[0]&&(n(32,l=ft.getDerivedFromVars(lt.track_inactive_style)),G(),G=yt(l,(t=>n(67,F=t)))),1024&t.$$.dirty[0]|32&t.$$.dirty[2]&&n(10,St=gi(F,St)),1&t.$$.dirty[0]&&(n(31,s=ft.getDerivedFromVars(lt.track_active_style)),H(),H=yt(s,(t=>n(66,I=t)))),2048&t.$$.dirty[0]|16&t.$$.dirty[2]&&n(11,It=gi(I,It)),48&t.$$.dirty[0]&&n(59,c=$t-vt+1<=20),1&t.$$.dirty[0]&&(n(30,u=ft.getDerivedFromVars(lt.tick_mark_active_style)),q(),q=yt(u,(t=>n(65,S=t)))),268435456&t.$$.dirty[1]|8&t.$$.dirty[2])if(c){let t=gi(S,ht);t!==ht&&n(50,Ft=t)}else n(50,Ft=null);if(240&t.$$.dirty[0]|524288&t.$$.dirty[1]&&n(17,Ct=Ft?xt?ji(Math.min(jt,Vt),Math.max(jt,Vt)+1,vt,$t,!0):ji(vt,jt,vt,$t,!0):[]),1&t.$$.dirty[0]&&(n(29,d=ft.getDerivedFromVars(lt.tick_mark_inactive_style)),U(),U=yt(d,(t=>n(64,P=t)))),268435456&t.$$.dirty[1]|4&t.$$.dirty[2])if(c){let t=gi(P,ht);t!==ht&&n(51,Nt=t)}else n(51,Nt=null);if(240&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(18,Et=Nt?xt?ji(Math.min(jt,Vt),Math.max(jt,Vt)+1,vt,$t,!1):ji(jt+1,$t+1,vt,$t,!0):[]),1&t.$$.dirty[0]&&(n(28,h=ft.getDerivedFromVars(lt.thumb_text_style)),W(),W=yt(h,(t=>n(63,D=t)))),4096&t.$$.dirty[0]|2&t.$$.dirty[2]&&n(12,At=mi(D,At)),1&t.$$.dirty[0]&&(n(27,f=ft.getDerivedFromVars(lt.thumb_secondary_text_style)),L(),L=yt(f,(t=>n(62,V=t)))),4096&t.$$.dirty[0]|1&t.$$.dirty[2]&&n(13,zt=mi(V,At)),1&t.$$.dirty[0]&&(n(26,p=ft.getDerivedFromVars(lt.accessibility)),R(),R=yt(p,(t=>n(61,j=t)))),1073741824&t.$$.dirty[1]&&((null==j?void 0:j.description)?n(19,Mt=j.description):ft.logError(on(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),1&t.$$.dirty[0]&&(n(25,g=ft.getDerivedFromVars(lt.secondary_value_accessibility)),T(),T=yt(g,(t=>n(60,A=t)))),536870912&t.$$.dirty[1]&&((null==A?void 0:A.description)?n(20,Jt=A.description):xt&&ft.logError(on(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),19712&t.$$.dirty[0]){let t=!1;pt.hasAction()?(ft.logError(on(new Error('Cannot show "slider" inside component with action'))),t=!0):Dt===ht?(ft.logError(on(new Error('Missing "thumb_style" in slider'))),t=!0):It===ht?(ft.logError(on(new Error('Missing "track_active_style" in slider'))),t=!0):St===ht&&(ft.logError(on(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Ot&&n(14,Ot=t)}3840&t.$$.dirty[0]&&n(58,m=Math.max(...[Dt.height,Pt.height,St.height,It.height,0].filter(kn))),768&t.$$.dirty[0]&&n(57,v=cn(Math.max(...[Dt.width,Pt.width,0].filter(kn)))),768&t.$$.dirty[0]&&n(56,$=cn(Math.max(...[Dt.height,Pt.height,0].filter(kn)))),112&t.$$.dirty[0]&&n(55,y=(jt-vt)/($t-vt)),176&t.$$.dirty[0]&&n(54,_=xt?(Vt-vt)/($t-vt):void 0),25165824&t.$$.dirty[1]&&n(24,b=void 0!==_?Math.abs(_-y):y),25165824&t.$$.dirty[1]&&n(23,x=void 0!==_?Math.min(_,y):0),13056&t.$$.dirty[0]|134223872&t.$$.dirty[1]&&n(53,w=-Math.min(...[(m-Dt.height)/2+((null===n(42,Q=null==At?void 0:At.offset)||void 0===Q?void 0:Q.y)||0),xt?(m-Pt.height)/2+((null===n(43,tt=null==zt?void 0:zt.offset)||void 0===tt?void 0:tt.y)||0):0,0].filter((t=>void 0!==t&&"number"==typeof t&&!isNaN(t))))),13056&t.$$.dirty[0]|134242304&t.$$.dirty[1]&&n(52,k=Math.max(...[((null===n(44,et=null==At?void 0:At.offset)||void 0===et?void 0:et.y)||0)-(m-Dt.height)/2,xt?((null===n(45,nt=null==zt?void 0:zt.offset)||void 0===nt?void 0:nt.y)||0)-(m-Pt.height)/2:0,0].filter((t=>void 0!==t&&"number"==typeof t&&!isNaN(t))))),13056&t.$$.dirty[0]|268402688&t.$$.dirty[1]&&n(22,C={"--divkit-slider-thumb-width":cn(Dt.width),"--divkit-slider-thumb-height":cn(Dt.height),"--divkit-slider-thumb-secondary-width":cn(Pt.width),"--divkit-slider-thumb-secondary-height":cn(Pt.height),"--divkit-slider-text-offset-x":(null===n(46,rt=null==At?void 0:At.offset)||void 0===rt?void 0:rt.x)?un(At.offset.x):void 0,"--divkit-slider-text-offset-y":(null===n(47,ot=null==At?void 0:At.offset)||void 0===ot?void 0:ot.y)?un(At.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===n(48,it=null==zt?void 0:zt.offset)||void 0===it?void 0:it.x)?un(zt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===n(49,at=null==zt?void 0:zt.offset)||void 0===at?void 0:at.y)?un(zt.offset.y):void 0,"--divkit-slider-tick-active-width":Ft?cn(Ft.width):void 0,"--divkit-slider-tick-active-height":Ft?cn(Ft.height):void 0,"--divkit-slider-tick-active-border-radius":Ft?cn(Ft.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==Ft?void 0:Ft.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==Ft?void 0:Ft.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Nt?cn(Nt.width):void 0,"--divkit-slider-tick-inactive-height":Nt?cn(Nt.height):void 0,"--divkit-slider-tick-inactive-border-radius":Nt?cn(Nt.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==Nt?void 0:Nt.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==Nt?void 0:Nt.boxShadow)||void 0,"--divkit-slider-max-height":cn(m),"--divkit-slider-max-thumb-width":v,"--divkit-slider-max-thumb-height":$,"--divkit-slider-track-part":y,"--divkit-slider-track-secondary-part":_,"--divkit-slider-offset-top":un(w),"--divkit-slider-offset-bottom":un(k)})},n(21,E={}),[lt,ct,ut,dt,vt,$t,jt,Vt,Dt,Pt,St,It,At,zt,Ot,gt,mt,Ct,Et,Mt,Jt,E,C,x,b,g,p,f,h,d,u,s,l,a,i,o,r,xt,wt,kt,function(t){var e,r;const o="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===o)return;const i=gt.getBoundingClientRect(),a=(o-i.left)/i.width,l=($t-vt)*a,s=Math.round(vi(l,vt,$t));n(16,mt=s<(jt+Vt)/2==jt<Vt)},Bt,Q,tt,et,nt,rt,ot,it,at,Ft,Nt,k,w,_,y,$,v,m,c,A,j,V,D,P,S,I,F,N,z,M,J,O,B,t=>Bt(t,"first"),t=>Bt(t,"second"),function(t){ge[t?"unshift":"push"]((()=>{gt=t,n(15,gt)}))}]}const Di={input:"divkit-b29a",input__wrapper:"divkit-d3bd",input__holder:"divkit-a764",input_multiline:"divkit-fb6e",input__input:"divkit-ae67","input_highlight-color":"divkit-f093","input_vertical-overflow":"divkit-b215"};function Pi(t){let e,n;return e=new Xn({props:{cls:_n("input",Di,t[12]),style:t[11],customDescription:!0,customActions:"input",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ni]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=_n("input",Di,t[12])),2048&n[0]&&(r.style=t[11]),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]),50928&n[0]|536870912&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Fe(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function Si(t){let e;return{c(){e=Rt("")},l(t){e=Qt(t,"")},m(t,n){Mt(t,e,n)},d(t){t&&Jt(e)}}}function Ii(t){let e,n,r,o;return{c(){e=Bt("input"),this.h()},l(t){e=Yt(t,"INPUT",{type:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),this.h()},h(){qt(e,"type",t[4]),qt(e,"class",n=Di.input__input),qt(e,"autocomplete","off"),qt(e,"autocapitalize","off"),qt(e,"aria-label",t[10]),qt(e,"placeholder",t[14]),e.value=t[9]},m(n,i){Mt(n,e,i),t[54](e),r||(o=[Ut(e,"input",t[28]),Ut(e,"mousedown",(function(){pt(t[15]?t[29]:void 0)&&(t[15]?t[29]:void 0).apply(this,arguments)})),Ut(e,"click",(function(){pt(t[15]?t[30]:void 0)&&(t[15]?t[30]:void 0).apply(this,arguments)}))],r=!0)},p(n,r){t=n,16&r[0]&&qt(e,"type",t[4]),1024&r[0]&&qt(e,"aria-label",t[10]),16384&r[0]&&qt(e,"placeholder",t[14]),512&r[0]&&e.value!==t[9]&&(e.value=t[9])},d(n){n&&Jt(e),t[54](null),r=!1,ft(o)}}}function Fi(t){let e,n,r,o;return{c(){e=Bt("textarea"),this.h()},l(t){e=Yt(t,"TEXTAREA",{class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),Gt(e).forEach(Jt),this.h()},h(){qt(e,"class",n=Di.input__input),qt(e,"autocomplete","off"),qt(e,"autocapitalize","off"),qt(e,"aria-label",t[10]),qt(e,"placeholder",t[14]),e.value=t[9]},m(n,i){Mt(n,e,i),t[53](e),r||(o=[Ut(e,"input",t[28]),Ut(e,"mousedown",(function(){pt(t[15]?t[29]:void 0)&&(t[15]?t[29]:void 0).apply(this,arguments)})),Ut(e,"click",(function(){pt(t[15]?t[30]:void 0)&&(t[15]?t[30]:void 0).apply(this,arguments)}))],r=!0)},p(n,r){t=n,1024&r[0]&&qt(e,"aria-label",t[10]),16384&r[0]&&qt(e,"placeholder",t[14]),512&r[0]&&(e.value=t[9])},d(n){n&&Jt(e),t[53](null),r=!1,ft(o)}}}function Ni(t){let e,n,r,o,i,a,l=t[9].endsWith("\n")||!t[9],s=l&&Si();function c(t,e){return t[5]?Fi:Ii}let u=c(t),d=u(t);return{c(){e=Bt("span"),n=Bt("span"),r=Rt(t[9]),s&&s.c(),i=Lt(),d.c(),this.h()},l(o){e=Yt(o,"SPAN",{class:!0});var a=Gt(e);n=Yt(a,"SPAN",{class:!0,"aria-hidden":!0});var l=Gt(n);r=Qt(l,t[9]),s&&s.l(l),l.forEach(Jt),i=te(a),d.l(a),a.forEach(Jt),this.h()},h(){qt(n,"class",o=Di.input__holder),qt(n,"aria-hidden","true"),qt(e,"class",a=Di.input__wrapper)},m(o,a){Mt(o,e,a),zt(e,n),zt(n,r),s&&s.m(n,null),t[52](n),zt(e,i),d.m(e,null)},p(t,o){512&o[0]&&ee(r,t[9]),512&o[0]&&(l=t[9].endsWith("\n")||!t[9]),l?s||(s=Si(),s.c(),s.m(n,null)):s&&(s.d(1),s=null),u===(u=c(t))&&d?d.p(t,o):(d.d(1),d=u(t),d&&(d.c(),d.m(e,null)))},d(n){n&&Jt(e),s&&s.d(),t[52](null),d.d()}}}function zi(t){let e,n,r=!t[8]&&Pi(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){t[8]?r&&(Pe(),Fe(r,1,1,(()=>{r=null})),Se()):r?(r.p(t,n),256&n[0]&&Ie(r,1)):(r=Pi(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Fe(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function Mi(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b=st;t.$$.on_destroy.push((()=>b()));let{json:x={}}=e,{templateContext:w}=e,{origJson:k}=e,{layoutParams:E}=e;const A=he(rn);let j,V,D=!1,P=!1;const S=A.getJsonWithVars(x.text_variable);let I=!1;S||(I=!0,A.logError(on(new Error('Missing "text_variable" in "input"'))));let F=S&&A.getVariable(S,"string")||Ze("temp","string","");_t(t,F,(t=>n(51,y=t)));let N="";const z=A.getDerivedFromVars(x.hint_text);_t(t,z,(t=>n(50,$=t)));const M=A.getDerivedFromVars(x.hint_color);_t(t,M,(t=>n(49,v=t)));let J="";const O=A.getDerivedFromVars(x.font_size);_t(t,O,(t=>n(48,m=t)));let B=12;const T=A.getDerivedFromVars(x.font_weight);let R;_t(t,T,(t=>n(47,g=t)));const L=A.getDerivedFromVars(x.line_height);let W;_t(t,L,(t=>n(46,p=t)));const U=A.getDerivedFromVars(x.letter_spacing);_t(t,U,(t=>n(45,f=t)));let q="";const H=A.getDerivedFromVars(x.text_color);_t(t,H,(t=>n(44,h=t)));let G="";const K=A.getDerivedFromVars(x.highlight_color);_t(t,K,(t=>n(43,d=t)));let X="";const Y=A.getDerivedFromVars(x.keyboard_type);_t(t,Y,(t=>n(42,u=t)));const Z={email:"email",number:"number",phone:"tel",text:"text",uri:"url"};let Q="text";const tt=A.getDerivedFromVars(x.max_lines);_t(t,tt,(t=>n(41,c=t)));let et="",nt="";const rt=A.getDerivedFromVars(x.select_all_on_focus);function ot(){n(31,P=V.scrollHeight>V.offsetHeight)}return _t(t,rt,(t=>n(15,_=t))),ce((()=>{ot()})),t.$$set=t=>{"json"in t&&n(0,x=t.json),"templateContext"in t&&n(1,w=t.templateContext),"origJson"in t&&n(2,k=t.origJson),"layoutParams"in t&&n(3,E=t.layoutParams)},t.$$.update=()=>{if(1048576&t.$$.dirty[1]&&n(9,N=y),524288&t.$$.dirty[1]&&n(14,r=$),262146&t.$$.dirty[1]&&n(32,J=C(v,1,J)),131076&t.$$.dirty[1]&&n(33,B=Zn(m,B)),65544&t.$$.dirty[1]&&n(34,R=er(g,R)),32772&t.$$.dirty[1]){const t=p;Qn(t)&&n(35,W=t/B)}16388&t.$$.dirty[1]&&wn(f)&&n(36,q=cn(f/B*10)),8256&t.$$.dirty[1]&&n(37,G=C(h,1,G)),4224&t.$$.dirty[1]&&n(38,X=C(d,1,X)),2048&t.$$.dirty[1]&&u&&u in Z&&n(4,Q=Z[u]),16&t.$$.dirty[0]&&n(5,o="text"===Q),1040&t.$$.dirty[1]&&Qn(c)&&n(39,et=c*(W||1.25)+"em"),1&t.$$.dirty[0]&&(n(13,i=A.getDerivedFromVars(x.accessibility)),b(),b=yt(i,(t=>n(40,s=t)))),512&t.$$.dirty[1]&&((null==s?void 0:s.description)?n(10,nt=s.description):A.logError(on(new Error('Missing accessibility "description" for input'),{level:"warn"}))),32&t.$$.dirty[0]|129&t.$$.dirty[1]&&n(12,a={"highlight-color":Boolean(X),"vertical-overflow":P,multiline:o}),510&t.$$.dirty[1]&&n(11,l={"--divkit-input-hint-color":J,"--divkit-input-highlight-color":X,"font-size":cn(B),"font-weight":R,"line-height":W,"letter-spacing":q,color:G,"max-height":et})},[x,w,k,E,Q,o,j,V,I,N,nt,l,a,i,r,_,F,z,M,O,T,L,U,H,K,Y,tt,rt,function(t){const e=t.target.value||"";F.setValue(e),ot()},function(){D=!1,setTimeout((()=>{D=!0}),250)},function(){D||j.select()},P,J,B,R,W,q,G,X,et,s,c,u,d,h,f,p,g,m,v,$,y,function(t){ge[t?"unshift":"push"]((()=>{V=t,n(7,V)}))},function(t){ge[t?"unshift":"push"]((()=>{j=t,n(6,j)}))},function(t){ge[t?"unshift":"push"]((()=>{j=t,n(6,j)}))}]}const Ji={text:class extends qe{constructor(t){super(),Ue(this,t,_r,yr,vt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},container:class extends qe{constructor(t){super(),Ue(this,t,Ar,Er,vt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},separator:class extends qe{constructor(t){super(),Ue(this,t,Ir,Sr,vt,{json:0,templateContext:1,origJson:2,layoutParams:3})}},image:Rr,gif:Rr,grid:class extends qe{constructor(t){super(),Ue(this,t,Zr,Yr,vt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},gallery:class extends qe{constructor(t){super(),Ue(this,t,fo,ho,vt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},tabs:class extends qe{constructor(t){super(),Ue(this,t,Ao,Co,vt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},state:class extends qe{constructor(t){super(),Ue(this,t,Zo,Xo,vt,{json:0,templateContext:1,origJson:2,layoutParams:3})}},pager:class extends qe{constructor(t){super(),Ue(this,t,ai,ii,vt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},indicator:class extends qe{constructor(t){super(),Ue(this,t,fi,hi,vt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},slider:class extends qe{constructor(t){super(),Ue(this,t,Vi,Ai,vt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},input:class extends qe{constructor(t){super(),Ue(this,t,Mi,zi,vt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}}};function Oi(t){let e,n,r;var o=t[5];function i(t){return{props:{json:t[3],templateContext:t[4],layoutParams:t[2],origJson:t[1]||t[0]}}}return o&&(e=new o(i(t))),{c(){e&&Te(e.$$.fragment),n=Wt()},l(t){e&&Re(e.$$.fragment,t),n=Wt()},m(t,o){e&&Le(e,t,o),Mt(t,n,o),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]),o!==(o=t[5])){if(e){Pe();const t=e;Fe(t.$$.fragment,1,0,(()=>{We(t,1)})),Se()}o?(e=new o(i(t)),Te(e.$$.fragment),Ie(e.$$.fragment,1),Le(e,n.parentNode,n)):e=null}else o&&e.$set(a)},i(t){r||(e&&Ie(e.$$.fragment,t),r=!0)},o(t){e&&Fe(e.$$.fragment,t),r=!1},d(t){t&&Jt(n),e&&We(e,t)}}}function Bi(t){let e,n,r=t[5]&&Oi(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){let[o]=n;t[5]?r?(r.p(t,o),32&o&&Ie(r,1)):(r=Oi(t),r.c(),Ie(r,1),r.m(e.parentNode,e)):r&&(Pe(),Fe(r,1,1,(()=>{r=null})),Se())},i(t){n||(Ie(r),n=!0)},o(t){Fe(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function Ti(t,e,n){let{div:r}=e,{templateContext:o}=e,{origJson:i}=e,{layoutParams:a}=e;const l=he(rn);let s,c,u;return t.$$set=t=>{"div"in t&&n(0,r=t.div),"templateContext"in t&&n(6,o=t.templateContext),"origJson"in t&&n(1,i=t.origJson),"layoutParams"in t&&n(2,a=t.layoutParams)},t.$$.update=()=>{if(121&t.$$.dirty&&(n(3,s=r),n(4,c=o),n(5,u=s&&Ji[s.type]||void 0),!u&&(n(4,({templateContext:c,json:s}=l.processTemplate(s,c)),c,(n(3,s),n(0,r),n(6,o),n(5,u),n(4,c))),n(5,u=s&&Ji[s.type]||void 0),!u))){let t;t=(null==s?void 0:s.type)&&l.hasTemplate(s.type)?"Recursive template":"Unknown component",l.logError(on(new Error(t),{additional:{component:(null==s?void 0:s.type)||"<missing>"}}))}},[r,i,a,s,c,u,o]}const Ri=class extends qe{constructor(t){super(),Ue(this,t,Ti,Bi,vt,{div:0,templateContext:6,origJson:1,layoutParams:2})}};function Li(t,e,n){const r=t.slice();return r[1]=e[n],r}function Wi(t){let e,n,r,o=[...Object.keys(t[0])],i=[];for(let e=0;e<o.length;e+=1)i[e]=Ui(Li(t,o,e));return{c(){e=Tt("svg"),n=Tt("defs");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=Zt(t,"svg",{class:!0,"aria-hidden":!0});var r=Gt(e);n=Zt(r,"defs",{});var o=Gt(n);for(let t=0;t<i.length;t+=1)i[t].l(o);o.forEach(Jt),r.forEach(Jt),this.h()},h(){qt(e,"class",r="divkit-f189"),qt(e,"aria-hidden","true")},m(t,r){Mt(t,e,r),zt(e,n);for(let t=0;t<i.length;t+=1)i[t].m(n,null)},p(t,e){if(1&e){let r;for(o=[...Object.keys(t[0])],r=0;r<o.length;r+=1){const a=Li(t,o,r);i[r]?i[r].p(a,e):(i[r]=Ui(a),i[r].c(),i[r].m(n,null))}for(;r<i.length;r+=1)i[r].d(1);i.length=o.length}},d(t){t&&Jt(e),Ot(i,t)}}}function Ui(t){let e,n,r,o,i;return{c(){e=Tt("filter"),n=Tt("feFlood"),o=Tt("feComposite"),this.h()},l(t){e=Zt(t,"filter",{id:!0});var r=Gt(e);n=Zt(r,"feFlood",{"flood-color":!0}),Gt(n).forEach(Jt),o=Zt(r,"feComposite",{in2:!0,operator:!0}),Gt(o).forEach(Jt),r.forEach(Jt),this.h()},h(){qt(n,"flood-color",r=t[1]),qt(o,"in2","SourceGraphic"),qt(o,"operator","in"),qt(e,"id",i=t[0][t[1]])},m(t,r){Mt(t,e,r),zt(e,n),zt(e,o)},p(t,o){1&o&&r!==(r=t[1])&&qt(n,"flood-color",r),1&o&&i!==(i=t[0][t[1]])&&qt(e,"id",i)},d(t){t&&Jt(e)}}}function qi(t){let e,n=Object.keys(t[0]).length,r=n&&Wi(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,n){r&&r.m(t,n),Mt(t,e,n)},p(t,o){let[i]=o;1&i&&(n=Object.keys(t[0]).length),n?r?r.p(t,i):(r=Wi(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},i:st,o:st,d(t){r&&r.d(t),t&&Jt(e)}}}function Hi(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const Gi=class extends qe{constructor(t){super(),Ue(this,t,Hi,qi,vt,{svgFiltersMap:0})}};function Ki(t,e,n,r){const o=n[t.type];if(!o)return r(on(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let i;const a={};for(i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(a[i]=t[i]);const l=function e(n,o){const i=Object.keys(o).filter((t=>"__proto__"!==t)),l=i.filter((t=>"$"!==t.charAt(0))),s=i.filter((t=>"$"===t.charAt(0)));return l.forEach((t=>{const r=o[t];"object"==typeof r&&null!==r?(n[t]=Array.isArray(r)?[]:{},e(n[t],r)):n[t]=r})),s.forEach((e=>{const i=o[e],l=a[i];if(void 0!==l){const t=e.substring(1);n[t]=l}else r(on(new Error("Missing template field"),{level:"warn",additional:{key:e,template:t.type}}))})),n}({},o);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(l[i]=t[i]);return{json:l,templateContext:a}}function Xi(){}function Yi(t){return{subscribe:e=>(e(t),Xi)}}const Zi=/(?:[^\\]|^)@{.+}/i;class Qi{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=nn(t,this.ast);if("error"===n.type)return void e(on(new Error("Expression execution error"),{additional:{message:n.value}}));const r=n.value;return r instanceof Date?V(r):r}catch(t){return void e(on(new Error("Expression execution error")))}}}function ta(t,e,n){if(t)if("string"==typeof t){if(r=t,Zi.test(r))try{const n=$(t,{startRule:"JsonStringContents"}),r=z(n);return e.push(...r),new Qi(n)}catch(e){return void n(on(new Error("Unable to parse expression"),{additional:{expression:t}}))}}else{if(Array.isArray(t))return t.map((t=>ta(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=ta(t[o],e,n);return r}}var r;return t}function ea(t,e,n){if(t){if(t instanceof Qi)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>ea(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=ea(t[o],e,n);return r}}return t}function na(t,e){let n=[];const r=ta(t,n,e);return n=[...new Set(n)],{vars:n,applyVars:t=>ea(r,t,e)}}const ra={pagers:function(){return Ge(new Map)}},oa=new Map,ia=new Map;function aa(t){const e=oa.get(t)||Ge("");return oa.has(t)||oa.set(t,e),e}function la(t){const e=ia.get(t)||new Map;return ia.has(t)||ia.set(t,e),e}class sa{setVariable(t){const e=t.getName(),n=la(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),aa(this).set(e)}getVariable(t){return la(this).get(t)}}function ca(){return new sa}function ua(t){let e,n,r,o,i,a,l,s;return n=new Gi({props:{svgFiltersMap:t[2]}}),o=new Ri({props:{div:t[4],templateContext:t[3]}}),{c(){e=Bt("div"),Te(n.$$.fragment),r=Lt(),Te(o.$$.fragment),this.h()},l(t){e=Yt(t,"DIV",{class:!0});var i=Gt(e);Re(n.$$.fragment,i),r=te(i),Re(o.$$.fragment,i),i.forEach(Jt),this.h()},h(){qt(e,"class",i="divkit-c77c"+(t[0]?" ".concat("divkit-b078"):""))},m(t,i){Mt(t,e,i),Le(n,e,null),zt(e,r),Le(o,e,null),a=!0,l||(s=Ut(e,"touchstart",ha,{passive:!0}),l=!0)},p(t,r){const o={};4&r[0]&&(o.svgFiltersMap=t[2]),n.$set(o),(!a||1&r[0]&&i!==(i="divkit-c77c"+(t[0]?" ".concat("divkit-b078"):"")))&&qt(e,"class",i)},i(t){a||(Ie(n.$$.fragment,t),Ie(o.$$.fragment,t),a=!0)},o(t){Fe(n.$$.fragment,t),Fe(o.$$.fragment,t),a=!1},d(t){t&&Jt(e),We(n),We(o),l=!1,s()}}}function da(t){let e,n,r=!t[1]&&t[4]&&ua(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){!t[1]&&t[4]?r?(r.p(t,n),2&n[0]&&Ie(r,1)):(r=ua(t),r.c(),Ie(r,1),r.m(e.parentNode,e)):r&&(Pe(),Fe(r,1,1,(()=>{r=null})),Se())},i(t){n||(Ie(r),n=!0)},o(t){Fe(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function ha(){}function fa(t,e,n){var r,o,i,a,l;let{id:s}=e,{json:c={}}=e,{platform:u="auto"}=e,{theme:d="system"}=e,{globalVariablesController:h=new sa}=e,{onError:f}=e,{onStat:p}=e,{onCustomAction:g}=e,{onComponent:m}=e,v="desktop"===u;if("auto"===u&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");v=!t.matches,t.addListener((()=>{n(0,v=!t.matches)}))}let y="light";if("light"===d||"dark"===d)y=d;else if("system"===d)if("undefined"!=typeof matchMedia){const t=matchMedia("(prefers-color-scheme: dark)");y=t.matches?"dark":"light",t.addListener((()=>{y=t.matches?"dark":"light",W&&W[y].forEach((t=>{const e=A.get(t.name);e&&e.setValue(t.color)}))}))}else y="light";else D(on(new Error("Unsupported theme")));let _=!1;c||(_=!0,D(on(new Error('"json" prop is required')))),s||(_=!0,D(on(new Error('"id" prop is required'))));let b=function(t){if(!t)return on(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return on(new Error("Missing card"));if(!e.states||!e.states.length)return on(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in Ji)return on(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t)if(!e.states[t].div)return on(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});return null}(c);const x=c.templates||{};b&&(_=!0,D(b));const w={stateChange:!1},k=aa(h),C=la(h),E=new Map,A=new Map,j=new Map;function V(t){const e=na(t,D);return e.vars.length?e.applyVars(A):t}function D(t){f?f({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}let P=0;function S(t){return"".concat(s,"-").concat(P++)}let I={},F={};function N(t){const e=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=t.split("/");const n=e.shift()||"";if(e=[n,"root","0",...e],e.length<5||e.length%2!=1)throw new Error("Incorrect state id format");let r=T;for(let t=1;t<e.length;t+=2){const n=e[t],o=e[t+1];let i=r.getChild(n);if(!i)return;i.setState(o),r=i}}(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=J(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=J(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=J(t);n&&n.setNextItem(e)}(r.get("id"),r.get("overflow"));break;case"set_variable":const n=r.get("name"),o=r.get("value");if(n&&null!==o){const t=A.get(n);t?t.set(o):D(on(new Error("Cannot find variable"),{additional:{name:n}}))}else D(on(new Error("Incorrect set_variable_action"),{additional:{url:t}}));break;default:D(on(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){D(on(t,{additional:{url:e}}))}}const M=new Map;function J(t){if(M.has(t))return M.get(t);D(on(new Error("Missing instance with id"),{additional:{id:t}}))}const O=new Map;function B(t){for(const e of t)A.has(e)&&t.delete(e);return t}de(rn,{logError:D,logStat:function(t,e){p&&p({type:t,action:e})},hasTemplate:function(t){return t in x},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in x;){if(({json:t,templateContext:e}=Ki(t,e,x,D)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:S,genClass:function(t){return"divkit-".concat(S())},execAction:N,execCustomAction:function(t){null==g||g(t)},isRunning:function(t){return w[t]},setRunning:function(t,e){w[t]=e},registerInstance:function(t,e){M.has(t)?D(on(new Error("Duplicate instance id"),{additional:{id:t}})):M.set(t,e)},addSvgFilter:function(t){if(F[t]=F[t]||0,++F[t],I[t])return I[t];const e="".concat(S(),"-svg-filter");return n(2,I=Object.assign(Object.assign({},I),{[t]:e})),e},removeSvgFilter:function(t){t&&F[t]&&0==--F[t]&&n(2,I=Object.keys(I).reduce(((t,e)=>(F[e]&&(t[e]=I[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return Yi(t);const e=na(t,D);return e.vars.length?Ke(e.vars.map((t=>A.get(t)||function(t){const e=j.get(t)||Ge(void 0);return j.has(t)||j.set(t,e),e}(t))).filter(hn),(()=>e.applyVars(A))):Yi(t)},getJsonWithVars:V,getStore:function(t){return O.has(t)||function(t){O.has(t)||O.set(t,ra[t]())}(t),O.get(t)},getVariable:function(t,e){const n=A.get(t);if(n){const r=n.getType();if(r!==e)return void D(on(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},registerComponent:function(t){let{node:e,json:n,origJson:r,templateContext:o}=t;m&&m({type:"mount",node:e,json:n,origJson:r,templateContext:o})},unregisterComponent:function(t){let{node:e}=t;m&&m({type:"destroy",node:e})}}),de(Sn,{hasAction:()=>!1});const T={setState(t){throw new Error("Not implemented")},getChild(t){if(R&&R.has(t))return R.get(t);D(on(new Error("Missing state block with id"),{additional:{id:t}}))}};let R=null;de(xn,{registerInstance(t,e){R||(R=new Map),R.has(t)?D(on(new Error("Duplicate state with id"),{additional:{id:t}})):R.set(t,e)},runVisibilityTransition:(t,e,n,r,o)=>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});const L=null===(r=null==c?void 0:c.card)||void 0===r?void 0:r.variables;Array.isArray(L)&&L.forEach((t=>{if(t&&t.type in Ye&&t.name){if(E.has(t.name))return void D(on(new Error("Duplicate variable"),{additional:{name:t.name}}));try{const e=Ze(t.name,t.type,t.value);E.set(t.name,e),A.set(t.name,e)}catch(e){D(on(e,{additional:{name:t.name}}))}}}));const W=c.palette;W&&W[y].forEach((t=>{if(E.has(t.name))D(on(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=Ze(t.name,"color",t.color);E.set(t.name,e),A.set(t.name,e)}catch(e){D(on(e,{additional:{name:t.name}}))}}));for(const[t,e]of C)A.has(t)||A.set(t,e);k.subscribe((t=>{if(t&&!A.has(t)){const e=C.get(t);A.set(t,e);const n=j.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const U=null===(o=null==c?void 0:c.card)||void 0===o?void 0:o.variable_triggers;Array.isArray(U)&&U.forEach((t=>{let e=!1;if("string"==typeof t.condition)if("on_variable"===t.mode||"on_condition"===t.mode)try{const n=$(t.condition,{startRule:"JsonStringContents"}),r=z(n);if(!r.length)return void D(on(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return B(e),e.size?new Promise((t=>{const n=k.subscribe((()=>{B(e),e.size||(n(),t())}))})):Promise.resolve()})(r).then((()=>{Ke(r.map((t=>A.get(t))).filter(hn),(()=>nn(A,n))).subscribe((n=>{"error"!==n.type?(n.value&&("on_variable"===t.mode||"on_condition"===t.mode&&!1===e)&&t.actions.forEach((t=>{const e=V(t);e.log_id&&N(e)})),e=Boolean(n.value)):D(on(new Error("variable_trigger condition execution error"),{additional:{message:n.value}}))}))}))}catch(e){D(on(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else D(on(new Error("variable_trigger has an unsupported mode"),{additional:{mode:t.mode}}));else D(on(new Error("variable_trigger has a condition that is not a string"),{additional:{condition:t.condition}}))}));let q=null===(l=null===(a=null===(i=null==c?void 0:c.card)||void 0===i?void 0:i.states)||void 0===a?void 0:a[0])||void 0===l?void 0:l.div,H=q&&{type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:[{state_id:"0",div:q}]};return t.$$set=t=>{"id"in t&&n(5,s=t.id),"json"in t&&n(6,c=t.json),"platform"in t&&n(7,u=t.platform),"theme"in t&&n(8,d=t.theme),"globalVariablesController"in t&&n(9,h=t.globalVariablesController),"onError"in t&&n(10,f=t.onError),"onStat"in t&&n(11,p=t.onStat),"onCustomAction"in t&&n(12,g=t.onCustomAction),"onComponent"in t&&n(13,m=t.onComponent)},[v,_,I,{},H,s,c,u,d,h,f,p,g,m,function(t,e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){const n=A.get(t);n&&n.setValue(e)}},function(t){const e=A.get(t);return null==e?void 0:e.getValue()},N]}const pa=class extends qe{constructor(t){super(),Ue(this,t,fa,da,vt,{id:5,json:6,platform:7,theme:8,globalVariablesController:9,onError:10,onStat:11,onCustomAction:12,onComponent:13,setVariable:14,getVariable:15,execAction:16},null,[-1,-1,-1])}get setVariable(){return this.$$.ctx[14]}get getVariable(){return this.$$.ctx[15]}get execAction(){return this.$$.ctx[16]}};function ga(t){return new pa({target:t.target,props:{id:t.id,json:t.json,globalVariablesController:t.globalVariablesController,onStat:t.onStat,onCustomAction:t.onCustomAction,onError:t.onError,onComponent:t.onComponent,platform:t.platform,theme:t.theme},hydrate:t.hydrate})}function ma(t,e){let n;try{n=$(t,{startRule:"json"===(null==e?void 0:e.type)?"JsonStringContents":"start"})}catch(t){return{type:"error",value:"Unable to parse expression"}}return nn((null==e?void 0:e.variables)||new Map,n)}function va(){return Array.from(y.keys())}var $a=e.M,ya=e.Os,_a=e.fz,ba=e.e4,xa=e.sY,wa=e.Z3;export{$a as createGlobalVariablesController,ya as createVariable,_a as evalExpression,ba as functionNames,xa as render,wa as valToString};
|
|
1
|
+
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)},e={};t.d(e,{M:()=>ca,Os:()=>Ze,fz:()=>ma,e4:()=>va,sY:()=>ga,Z3:()=>D});const n=-2147483648,r=Number.MAX_VALUE,o=Number.MIN_VALUE,i="string",a="integer",l="number",s="boolean",c="color",u="datetime";function d(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function h(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function f(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){var e=parseInt(t,10);if(e>2147483647||e<n)throw new Error("Value ".concat(t," can't be converted to Integer type."));return e}function g(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function m(t,e,n,r){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,m.prototype),o.expected=e,o.found=n,o.location=r,o.name="SyntaxError",o}function v(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function $(t,e){var n,r,o,i,a={},l=(e=void 0!==e?e:{}).grammarSource,s={start:Jt,JsonStringContents:function(){var t,e,n;for(t=Ct,e=[],n=Ot();n!==a;)e.push(n),n=Ot();return Et=t,e=kt(e)}},c=Jt,u="@{",v="}",$="@{}",y="\\",_="||",b="&&",x="==",w="!=",k=">=",C="<=",E="+",A="-",j="true",V="false",D=/^[^}]/,P=/^[^'}]/,S=/^[0-9]/,F=/^[a-zA-Z_0-9.]/,I=/^[a-zA-Z_]/,N=/^[ \t\r\n]/,z=St("@{",!1),M=St("}",!1),J=St("@{}",!1),O=St("\\",!1),B={type:"any"},T=Ft(["}"],!0,!1),R=St("?",!1),L=St(":",!1),W=St("||",!1),U=St("&&",!1),q=St("==",!1),H=St("!=",!1),G=St(">=",!1),K=St(">",!1),X=St("<=",!1),Y=St("<",!1),Z=St("+",!1),Q=St("-",!1),tt=St("/",!1),et=St("*",!1),nt=St("%",!1),rt=St("!",!1),ot=St("(",!1),it=St(")",!1),at=St(",",!1),lt=It("string"),st=St("'",!1),ct=Ft(["'","}"],!0,!1),ut=It("integer"),dt=Ft([["0","9"]],!1,!1),ht=It("number"),ft=St(".",!1),pt=St("e",!1),gt=St("E",!1),mt=It("boolean"),vt=St("true",!1),$t=St("false",!1),yt=Ft([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),_t=It("identifier"),bt=Ft([["a","z"],["A","Z"],"_"],!1,!1),xt=It("whitespace"),wt=Ft([" ","\t","\r","\n"],!1,!1),kt=function(t){return f(t)},Ct=0,Et=0,At=[{line:1,column:1}],jt=0,Vt=[],Dt=0;if("startRule"in e){if(!(e.startRule in s))throw new Error("Can't start parsing from rule \""+e.startRule+'".');c=s[e.startRule]}function Pt(){return t.substring(Et,Ct)}function St(t,e){return{type:"literal",text:t,ignoreCase:e}}function Ft(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function It(t){return{type:"other",description:t}}function Nt(e){var n,r=At[e];if(r)return r;for(n=e-1;!At[n];)n--;for(r={line:(r=At[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return At[e]=r,r}function zt(t,e){var n=Nt(t),r=Nt(e);return{source:l,start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:r.line,column:r.column}}}function Mt(t){Ct<jt||(Ct>jt&&(jt=Ct,Vt=[]),Vt.push(t))}function Jt(){var t,e;return t=Ct,Zt(),(e=Bt())!==a?(Zt(),Et=t,t=e):(Ct=t,t=a),t}function Ot(){var e,n,r,o,i;if(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a?(r=Zt(),(o=Bt())!==a?(Zt(),125===t.charCodeAt(Ct)?(i=v,Ct++):(i=a,0===Dt&&Mt(M)),i!==a?(Et=e,e=o):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,t.substr(Ct,3)===$?(n=$,Ct+=3):(n=a,0===Dt&&Mt(J)),n!==a&&(Et=e,n=""),(e=n)===a&&(e=Ct,n=Ct,Dt++,92===t.charCodeAt(Ct)?(r=y,Ct++):(r=a,0===Dt&&Mt(O)),r===a&&(t.substr(Ct,2)===u?(r=u,Ct+=2):(r=a,0===Dt&&Mt(z))),Dt--,r===a?n=void 0:(Ct=n,n=a),n!==a?(t.length>Ct?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(B)),r!==a?(Et=e,e=Pt()):(Ct=e,e=a)):(Ct=e,e=a),e===a))){if(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a){if(r=[],D.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(T)),o!==a)for(;o!==a;)r.push(o),D.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(T));else r=a;r!==a?(125===t.charCodeAt(Ct)?(o=v,Ct++):(o=a,0===Dt&&Mt(M)),o!==a?(Et=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(Ct=e,e=a)):(Ct=e,e=a)}else Ct=e,e=a;e===a&&(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a&&(Et=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a?(t.substr(Ct,2)===u?(r=u,Ct+=2):(r=a,0===Dt&&Mt(z)),r!==a?(Et=e,e=r):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a?(t.length>Ct?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(B)),r!==a?(Et=e,e=g(r)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a&&(Et=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function Bt(){var e,n,r,o,i,l;return e=Ct,(n=Tt())!==a?(Zt(),63===t.charCodeAt(Ct)?(r="?",Ct++):(r=a,0===Dt&&Mt(R)),r!==a?(Zt(),(o=Bt())!==a?(Zt(),58===t.charCodeAt(Ct)?(i=":",Ct++):(i=a,0===Dt&&Mt(L)),i!==a?(Zt(),(l=Bt())!==a?(Et=e,e={type:"ConditionalExpression",test:n,consequent:o,alternate:l}):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Tt()),e}function Tt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Rt())!==a){for(r=[],o=Ct,i=Zt(),t.substr(Ct,2)===_?(l=_,Ct+=2):(l=a,0===Dt&&Mt(W)),l!==a?(s=Zt(),(c=Rt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),t.substr(Ct,2)===_?(l=_,Ct+=2):(l=a,0===Dt&&Mt(W)),l!==a?(s=Zt(),(c=Rt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=h(n,r)}else Ct=e,e=a;return e}function Rt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Lt())!==a){for(r=[],o=Ct,i=Zt(),t.substr(Ct,2)===b?(l=b,Ct+=2):(l=a,0===Dt&&Mt(U)),l!==a?(s=Zt(),(c=Lt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),t.substr(Ct,2)===b?(l=b,Ct+=2):(l=a,0===Dt&&Mt(U)),l!==a?(s=Zt(),(c=Lt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=h(n,r)}else Ct=e,e=a;return e}function Lt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Wt())!==a){for(r=[],o=Ct,i=Zt(),t.substr(Ct,2)===x?(l=x,Ct+=2):(l=a,0===Dt&&Mt(q)),l===a&&(t.substr(Ct,2)===w?(l=w,Ct+=2):(l=a,0===Dt&&Mt(H))),l!==a?(s=Zt(),(c=Wt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),t.substr(Ct,2)===x?(l=x,Ct+=2):(l=a,0===Dt&&Mt(q)),l===a&&(t.substr(Ct,2)===w?(l=w,Ct+=2):(l=a,0===Dt&&Mt(H))),l!==a?(s=Zt(),(c=Wt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=d(n,r)}else Ct=e,e=a;return e}function Wt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Ut())!==a){for(r=[],o=Ct,i=Zt(),t.substr(Ct,2)===k?(l=k,Ct+=2):(l=a,0===Dt&&Mt(G)),l===a&&(62===t.charCodeAt(Ct)?(l=">",Ct++):(l=a,0===Dt&&Mt(K)),l===a&&(t.substr(Ct,2)===C?(l=C,Ct+=2):(l=a,0===Dt&&Mt(X)),l===a&&(60===t.charCodeAt(Ct)?(l="<",Ct++):(l=a,0===Dt&&Mt(Y))))),l!==a?(s=Zt(),(c=Ut())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),t.substr(Ct,2)===k?(l=k,Ct+=2):(l=a,0===Dt&&Mt(G)),l===a&&(62===t.charCodeAt(Ct)?(l=">",Ct++):(l=a,0===Dt&&Mt(K)),l===a&&(t.substr(Ct,2)===C?(l=C,Ct+=2):(l=a,0===Dt&&Mt(X)),l===a&&(60===t.charCodeAt(Ct)?(l="<",Ct++):(l=a,0===Dt&&Mt(Y))))),l!==a?(s=Zt(),(c=Ut())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=d(n,r)}else Ct=e,e=a;return e}function Ut(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=qt())!==a){for(r=[],o=Ct,i=Zt(),43===t.charCodeAt(Ct)?(l=E,Ct++):(l=a,0===Dt&&Mt(Z)),l===a&&(45===t.charCodeAt(Ct)?(l=A,Ct++):(l=a,0===Dt&&Mt(Q))),l!==a?(s=Zt(),(c=qt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),43===t.charCodeAt(Ct)?(l=E,Ct++):(l=a,0===Dt&&Mt(Z)),l===a&&(45===t.charCodeAt(Ct)?(l=A,Ct++):(l=a,0===Dt&&Mt(Q))),l!==a?(s=Zt(),(c=qt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=d(n,r)}else Ct=e,e=a;return e}function qt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Ht())!==a){for(r=[],o=Ct,i=Zt(),47===t.charCodeAt(Ct)?(l="/",Ct++):(l=a,0===Dt&&Mt(tt)),l===a&&(42===t.charCodeAt(Ct)?(l="*",Ct++):(l=a,0===Dt&&Mt(et)),l===a&&(37===t.charCodeAt(Ct)?(l="%",Ct++):(l=a,0===Dt&&Mt(nt)))),l!==a?(s=Zt(),(c=Ht())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),47===t.charCodeAt(Ct)?(l="/",Ct++):(l=a,0===Dt&&Mt(tt)),l===a&&(42===t.charCodeAt(Ct)?(l="*",Ct++):(l=a,0===Dt&&Mt(et)),l===a&&(37===t.charCodeAt(Ct)?(l="%",Ct++):(l=a,0===Dt&&Mt(nt)))),l!==a?(s=Zt(),(c=Ht())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=d(n,r)}else Ct=e,e=a;return e}function Ht(){var e,n,r;return(e=Xt())===a&&(e=Kt())===a&&(e=Ct,33===t.charCodeAt(Ct)?(n="!",Ct++):(n=a,0===Dt&&Mt(rt)),n===a&&(43===t.charCodeAt(Ct)?(n=E,Ct++):(n=a,0===Dt&&Mt(Z)),n===a&&(45===t.charCodeAt(Ct)?(n=A,Ct++):(n=a,0===Dt&&Mt(Q)))),n!==a?(Zt(),(r=Ht())!==a?(Et=e,e={type:"UnaryExpression",operator:n,argument:r}):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=function(){var e,n,r,o,i;return e=Ct,(n=Yt())!==a?(Zt(),40===t.charCodeAt(Ct)?(r="(",Ct++):(r=a,0===Dt&&Mt(ot)),r!==a?(Zt(),o=function(){var e,n,r,o,i,l,s;if(e=Ct,(n=Bt())!==a){for(r=[],o=Ct,Zt(),44===t.charCodeAt(Ct)?(i=",",Ct++):(i=a,0===Dt&&Mt(at)),i!==a?(Zt(),(l=Bt())!==a?o=l:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,Zt(),44===t.charCodeAt(Ct)?(i=",",Ct++):(i=a,0===Dt&&Mt(at)),i!==a?(Zt(),(l=Bt())!==a?o=l:(Ct=o,o=a)):(Ct=o,o=a);Et=e,s=r,e=[n,...s]}else Ct=e,e=a;return e===a&&(e=Zt()),e}(),o!==a?(Zt(),41===t.charCodeAt(Ct)?(i=")",Ct++):(i=a,0===Dt&&Mt(it)),i!==a?(Et=e,e={type:"CallExpression",callee:n,arguments:o}):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,(n=Yt())!==a&&(Et=e,n={type:"Variable",id:n}),(e=n)===a&&(e=function(){var e,n,r,o;return e=function(){var e,n,r,o;return Dt++,e=Ct,39===t.charCodeAt(Ct)?(n="'",Ct++):(n=a,0===Dt&&Mt(st)),n!==a?(r=function(){var t,e,n;for(t=Ct,e=[],n=Gt();n!==a;)e.push(n),n=Gt();return Et=t,e=f(e)}(),39===t.charCodeAt(Ct)?(o="'",Ct++):(o=a,0===Dt&&Mt(st)),o!==a?(Et=e,e=r):(Ct=e,e=a)):(Ct=e,e=a),Dt--,e===a&&(n=a,0===Dt&&Mt(lt)),e}(),e===a&&(e=Xt())===a&&(e=Kt())===a&&(e=function(){var e,n;return Dt++,e=Ct,t.substr(Ct,4)===j?(n=j,Ct+=4):(n=a,0===Dt&&Mt(vt)),n!==a&&(Et=e,n={type:"BooleanLiteral",value:!0}),(e=n)===a&&(e=Ct,t.substr(Ct,5)===V?(n=V,Ct+=5):(n=a,0===Dt&&Mt($t)),n!==a&&(Et=e,n={type:"BooleanLiteral",value:!1}),e=n),Dt--,e===a&&(n=a,0===Dt&&Mt(mt)),e}(),e===a&&(e=Ct,40===t.charCodeAt(Ct)?(n="(",Ct++):(n=a,0===Dt&&Mt(ot)),n!==a&&(r=Bt())!==a?(41===t.charCodeAt(Ct)?(o=")",Ct++):(o=a,0===Dt&&Mt(it)),o!==a?(Et=e,e=r):(Ct=e,e=a)):(Ct=e,e=a))),e}())),e}())),e}function Gt(){var e,n,r,o,i;if(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a?(r=Zt(),(o=Bt())!==a?(Zt(),125===t.charCodeAt(Ct)?(i=v,Ct++):(i=a,0===Dt&&Mt(M)),i!==a?(Et=e,e=o):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,t.substr(Ct,3)===$?(n=$,Ct+=3):(n=a,0===Dt&&Mt(J)),n!==a&&(Et=e,n=""),(e=n)===a&&(e=Ct,n=Ct,Dt++,92===t.charCodeAt(Ct)?(r=y,Ct++):(r=a,0===Dt&&Mt(O)),r===a&&(39===t.charCodeAt(Ct)?(r="'",Ct++):(r=a,0===Dt&&Mt(st)),r===a&&(t.substr(Ct,2)===u?(r=u,Ct+=2):(r=a,0===Dt&&Mt(z)))),Dt--,r===a?n=void 0:(Ct=n,n=a),n!==a?(t.length>Ct?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(B)),r!==a?(Et=e,e=Pt()):(Ct=e,e=a)):(Ct=e,e=a),e===a))){if(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a){if(r=[],P.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(ct)),o!==a)for(;o!==a;)r.push(o),P.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(ct));else r=a;r!==a?(125===t.charCodeAt(Ct)?(o=v,Ct++):(o=a,0===Dt&&Mt(M)),o!==a?(Et=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(Ct=e,e=a)):(Ct=e,e=a)}else Ct=e,e=a;e===a&&(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a&&(Et=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a?(t.substr(Ct,2)===u?(r=u,Ct+=2):(r=a,0===Dt&&Mt(z)),r!==a?(Et=e,e=r):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a?(t.length>Ct?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(B)),r!==a?(Et=e,e=g(r)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a&&(Et=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function Kt(){var e,n,r,o;if(Dt++,e=Ct,45===t.charCodeAt(Ct)?(n=A,Ct++):(n=a,0===Dt&&Mt(Q)),n===a&&(n=null),r=[],S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt)),o!==a)for(;o!==a;)r.push(o),S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt));else r=a;return r!==a?(Et=e,e={type:"IntegerLiteral",value:p(Pt())}):(Ct=e,e=a),Dt--,e===a&&(n=a,0===Dt&&Mt(ut)),e}function Xt(){var e,n,r,o,i,l,s,c,u,d;for(Dt++,e=Ct,45===t.charCodeAt(Ct)?(n=A,Ct++):(n=a,0===Dt&&Mt(Q)),n===a&&(n=null),r=[],S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt));o!==a;)r.push(o),S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt));if(46===t.charCodeAt(Ct)?(o=".",Ct++):(o=a,0===Dt&&Mt(ft)),o!==a){if(i=[],S.test(t.charAt(Ct))?(l=t.charAt(Ct),Ct++):(l=a,0===Dt&&Mt(dt)),l!==a)for(;l!==a;)i.push(l),S.test(t.charAt(Ct))?(l=t.charAt(Ct),Ct++):(l=a,0===Dt&&Mt(dt));else i=a;if(i!==a){if(l=Ct,101===t.charCodeAt(Ct)?(s="e",Ct++):(s=a,0===Dt&&Mt(pt)),s===a&&(69===t.charCodeAt(Ct)?(s="E",Ct++):(s=a,0===Dt&&Mt(gt))),s!==a){if(43===t.charCodeAt(Ct)?(c=E,Ct++):(c=a,0===Dt&&Mt(Z)),c===a&&(45===t.charCodeAt(Ct)?(c=A,Ct++):(c=a,0===Dt&&Mt(Q))),c===a&&(c=null),u=[],S.test(t.charAt(Ct))?(d=t.charAt(Ct),Ct++):(d=a,0===Dt&&Mt(dt)),d!==a)for(;d!==a;)u.push(d),S.test(t.charAt(Ct))?(d=t.charAt(Ct),Ct++):(d=a,0===Dt&&Mt(dt));else u=a;u!==a?l=s=[s,c,u]:(Ct=l,l=a)}else Ct=l,l=a;l===a&&(l=null),Et=e,e={type:"NumberLiteral",value:parseFloat(Pt())}}else Ct=e,e=a}else Ct=e,e=a;if(e===a){if(e=Ct,45===t.charCodeAt(Ct)?(n=A,Ct++):(n=a,0===Dt&&Mt(Q)),n===a&&(n=null),r=[],S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt)),o!==a)for(;o!==a;)r.push(o),S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt));else r=a;if(r!==a)if(101===t.charCodeAt(Ct)?(o="e",Ct++):(o=a,0===Dt&&Mt(pt)),o===a&&(69===t.charCodeAt(Ct)?(o="E",Ct++):(o=a,0===Dt&&Mt(gt))),o!==a){if(43===t.charCodeAt(Ct)?(i=E,Ct++):(i=a,0===Dt&&Mt(Z)),i===a&&(45===t.charCodeAt(Ct)?(i=A,Ct++):(i=a,0===Dt&&Mt(Q))),i===a&&(i=null),l=[],S.test(t.charAt(Ct))?(s=t.charAt(Ct),Ct++):(s=a,0===Dt&&Mt(dt)),s!==a)for(;s!==a;)l.push(s),S.test(t.charAt(Ct))?(s=t.charAt(Ct),Ct++):(s=a,0===Dt&&Mt(dt));else l=a;l!==a?(Et=e,e={type:"NumberLiteral",value:parseFloat(Pt())}):(Ct=e,e=a)}else Ct=e,e=a;else Ct=e,e=a}return Dt--,e===a&&(n=a,0===Dt&&Mt(ht)),e}function Yt(){var e,n,r,o,i;if(Dt++,e=Ct,n=Ct,Dt++,r=function(){var e,n,r,o;return e=Ct,t.substr(Ct,4)===j?(n=j,Ct+=4):(n=a,0===Dt&&Mt(vt)),n===a&&(t.substr(Ct,5)===V?(n=V,Ct+=5):(n=a,0===Dt&&Mt($t))),n!==a?(r=Ct,Dt++,F.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(yt)),Dt--,o===a?r=void 0:(Ct=r,r=a),r!==a?e=n=[n,r]:(Ct=e,e=a)):(Ct=e,e=a),e}(),Dt--,r===a?n=void 0:(Ct=n,n=a),n!==a)if(I.test(t.charAt(Ct))?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(bt)),r!==a){for(o=[],F.test(t.charAt(Ct))?(i=t.charAt(Ct),Ct++):(i=a,0===Dt&&Mt(yt));i!==a;)o.push(i),F.test(t.charAt(Ct))?(i=t.charAt(Ct),Ct++):(i=a,0===Dt&&Mt(yt));Et=e,e={type:"Identifier",name:Pt()}}else Ct=e,e=a;else Ct=e,e=a;return Dt--,e===a&&(n=a,0===Dt&&Mt(_t)),e}function Zt(){var e,n;for(Dt++,e=[],N.test(t.charAt(Ct))?(n=t.charAt(Ct),Ct++):(n=a,0===Dt&&Mt(wt));n!==a;)e.push(n),N.test(t.charAt(Ct))?(n=t.charAt(Ct),Ct++):(n=a,0===Dt&&Mt(wt));return Dt--,n=a,0===Dt&&Mt(xt),e}if((n=c())!==a&&Ct===t.length)return n;throw n!==a&&Ct<t.length&&Mt({type:"end"}),r=Vt,o=jt<t.length?t.charAt(jt):null,i=jt<t.length?zt(jt,jt+1):zt(jt,jt),new m(m.buildMessage(r,o),r,o,i)}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(m,Error),m.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 o=this.location.start,i=this.location.source+":"+o.line+":"+o.column;if(r){var a=this.location.end,l=v("",o.line.toString().length," "),s=r[o.line-1],c=(o.line===a.line?a.column:s.length+1)-o.column||1;e+="\n --\x3e "+i+"\n"+l+" |\n"+o.line+" | "+s+"\n"+l+" | "+v("",o.column-1," ")+v("",c,"^")}else e+="\n at "+i}return e},m.buildMessage=function(t,e){var n={literal:function(t){return'"'+o(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?i(t[0])+"-"+i(t[1]):i(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 o(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 i(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?'"'+o(t)+'"':"end of input"}(e)+" found."};const y=new Map,_=new Map;function b(t,e,n){const r={args:e,cb:n},o=y.get(t)||[];y.has(t)||y.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");_.set(i,r)}function x(t,e){let n=t.args.length,r=t.args.length;const o=t.args[t.args.length-1];if("object"==typeof o&&o.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 k(t,e){for(;t.length<e;)t="0"+t;return t}function C(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=(t||"").toLowerCase()).charAt(0))return n;const r=A(t);return r?(r.a*=e,E(r)):n}function E(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>k(Math.round(t).toString(16),2))).join("")):"rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat((t.a/255).toFixed(2),")")}function A(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,o,i]=e,a=2===r.length?r:r+r,l=2===o.length?o:o+o,s=2===i.length?i:i+i,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,o]=e,i=2===n.length?n:n+n,a=2===r.length?r:r+r,l=2===o.length?o:o+o;return{a:255,r:parseInt(i,16),g:parseInt(a,16),b:parseInt(l,16)}}return null}function j(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function V(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function D(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 V(t.value);if("color"===t.type)return O(J(t.value));if("url"===t.type)return t.value;throw new Error("Unexpected type ".concat(t.type))}function P(t){let e=D(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\'").replace(/'/g,"\\'")+"'"),e}function S(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}const F=new Int32Array(1);function I(t){return F[0]=t,F[0]}function N(t){if(t<n||t>2147483647)throw new Error("Integer overflow.")}function z(t){const e=[];return w(t,{Variable(t){e.push(t.id.name)}}),e}function M(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function J(t){const e=A(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function O(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 k(Math.round(t).toString(16),2)})).join("").toUpperCase())}function B(t){return{type:i,value:D(t)}}function T(t){const e=Number(t.value);if(isNaN(e)||!Number.isFinite(e))throw new Error("Unable to convert value to Number.");return{type:l,value:e}}function R(t,e){if(0===e.value)throw new Error("Division by zero is not supported.");let n=t.value/e.value;return t.type===a&&(n=I(n)),{type:t.type,value:n}}function L(t,e){if(0===e.value)throw new Error("Division by zero is not supported.");let n=t.value%e.value;return t.type===a&&(n=I(n)),{type:t.type,value:n}}function W(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];let r=e.length?e[0].value:0;for(let t=1;t<e.length;++t)r*=e[t].value,e[0].type===a&&(r=I(r));return{type:e[0].type,value:r}}function U(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];let r=e.length?e[0].value:0;for(let t=1;t<e.length;++t)r-=e[t].value,e[0].type===a&&(r=I(r));return{type:e.length?e[0].type:a,value:r}}function q(){let t=0;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(let e=0;e<n.length;++e)t+=n[e].value,n[0].type===a&&(t=I(t));return{type:n.length?n[0].type:a,value:t}}function H(t){const e=Math.abs(t.value);return t.type===a&&N(e),{type:t.type,value:e}}function G(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)throw new Error("Non empty argument list is required.");return{type:e[0].type,value:Math.max(...e.map((t=>t.value)))}}function K(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)throw new Error("Non empty argument list is required.");return{type:e[0].type,value:Math.min(...e.map((t=>t.value)))}}function X(t){return{type:t.type,value:Math.sign(t.value)}}function Y(t,e){let n;if(0===e.value&&t.type===a)n=t.value;else if(0===t.value&&t.type===a)n=0;else{let r=Math.sign(e.value);t.type===l&&0===r&&(r=Object.is(r,0)?1:-1),n=Math.abs(t.value)*r}return t.type===a&&N(n),{type:t.type,value:n}}function Z(t){return e=>{const n=J(e.value);return{type:l,value:n[t]/255}}}function Q(t){return(e,n)=>{const r=J(e.value);return r[t]=255*n.value,{type:e.type,value:O(r)}}}const tt=Z("a"),et=Z("r"),nt=Z("g"),rt=Z("b"),ot=Q("a"),it=Q("r"),at=Q("g"),lt=Q("b");function st(){}const ct=t=>t;function ut(t,e){for(const n in e)t[n]=e[n];return t}function dt(t){return t()}function ht(){return Object.create(null)}function ft(t){t.forEach(dt)}function pt(t){return"function"==typeof t}let gt;function mt(t,e){return gt||(gt=document.createElement("a")),gt.href=e,t===gt.href}function vt(t,e){return t!=t?e==e:t!==e}function $t(t){return 0===Object.keys(t).length}function yt(t,...e){if(null==t)return st;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function _t(t,e,n){t.$$.on_destroy.push(yt(e,n))}function bt(t,e,n,r){if(t){const o=xt(t,e,n,r);return t[0](o)}}function xt(t,e,n,r){return t[1]&&r?ut(n.ctx.slice(),t[1](r(e))):n.ctx}function wt(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}function kt(t,e,n,r,o,i){if(o){const a=xt(e,n,r,i);t.p(a,o)}}function Ct(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 Et(t){return t&&pt(t.destroy)?t.destroy:st}const At="undefined"!=typeof window;let jt=At?()=>window.performance.now():()=>Date.now(),Vt=At?t=>requestAnimationFrame(t):st;const Dt=new Set;function Pt(t){Dt.forEach((e=>{e.c(t)||(Dt.delete(e),e.f())})),0!==Dt.size&&Vt(Pt)}let St=!1;function Ft(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function It(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Nt(t){const e=Bt("style");return function(t,e){!function(t,e){t.appendChild(e)}(t.head||t,e)}(It(t),e),e.sheet}function zt(t,e){if(St){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 o=0;for(let t=0;t<e.length;t++){const i=e[t].claim_order,a=(o>0&&e[n[o]].claim_order<=i?o+1:Ft(1,o,(t=>e[n[t]].claim_order),i))-1;r[t]=n[a]+1;const l=a+1;n[l]=t,o=Math.max(l,o)}const i=[],a=[];let l=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(i.push(e[t-1]);l>=t;l--)a.push(e[l]);l--}for(;l>=0;l--)a.push(e[l]);i.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<i.length&&a[e].claim_order>=i[n].claim_order;)n++;const r=n<i.length?i[n]:null;t.insertBefore(a[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==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 Mt(t,e,n){St&&!n?zt(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function Jt(t){t.parentNode.removeChild(t)}function Ot(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function Bt(t){return document.createElement(t)}function Tt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Rt(t){return document.createTextNode(t)}function Lt(){return Rt(" ")}function Wt(){return Rt("")}function Ut(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function qt(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Ht(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]:qt(t,r,e[r])}function Gt(t){return Array.from(t.childNodes)}function Kt(t,e,n,r,o=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const i=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o||(t.claim_info.last_index=r),i}}for(let r=t.claim_info.last_index-1;r>=0;r--){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,i}}return r()})();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function Xt(t,e,n,r){return Kt(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}function Yt(t,e,n){return Xt(t,e,n,Bt)}function Zt(t,e,n){return Xt(t,e,n,Tt)}function Qt(t,e){return Kt(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}),(()=>Rt(e)),!0)}function te(t){return Qt(t," ")}function ee(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function ne(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}const re=new Map;let oe,ie=0;function ae(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),o=n.length-r.length;o&&(t.style.animation=r.join(", "),ie-=o,ie||Vt((()=>{ie||(re.forEach((t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}})),re.clear())})))}function le(t){oe=t}function se(){if(!oe)throw new Error("Function called outside component initialization");return oe}function ce(t){se().$$.on_mount.push(t)}function ue(t){se().$$.on_destroy.push(t)}function de(t,e){return se().$$.context.set(t,e),e}function he(t){return se().$$.context.get(t)}function fe(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const pe=[],ge=[],me=[],ve=[],$e=Promise.resolve();let ye=!1;function _e(){ye||(ye=!0,$e.then(Ee))}function be(){return _e(),$e}function xe(t){me.push(t)}const we=new Set;let ke,Ce=0;function Ee(){const t=oe;do{for(;Ce<pe.length;){const t=pe[Ce];Ce++,le(t),Ae(t.$$)}for(le(null),pe.length=0,Ce=0;ge.length;)ge.pop()();for(let t=0;t<me.length;t+=1){const e=me[t];we.has(e)||(we.add(e),e())}me.length=0}while(pe.length);for(;ve.length;)ve.pop()();ye=!1,we.clear(),le(t)}function Ae(t){if(null!==t.fragment){t.update(),ft(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(xe)}}function je(t,e,n){t.dispatchEvent(function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,r,e),o}(`${e?"intro":"outro"}${n}`))}const Ve=new Set;let De;function Pe(){De={r:0,c:[],p:De}}function Se(){De.r||ft(De.c),De=De.p}function Fe(t,e){t&&t.i&&(Ve.delete(t),t.i(e))}function Ie(t,e,n,r){if(t&&t.o){if(Ve.has(t))return;Ve.add(t),De.c.push((()=>{Ve.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const Ne={duration:0};function ze(t,e,n){let r,o,i=e(t,n),a=!1,l=0;function s(){r&&ae(t,r)}function c(){const{delay:e=0,duration:n=300,easing:c=ct,tick:u=st,css:d}=i||Ne;d&&(r=function(t,e,n,r,o,i,a,l=0){const s=16.666/r;let c="{\n";for(let t=0;t<=1;t+=s){const r=e+(n-e)*i(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=It(t),{stylesheet:f,rules:p}=re.get(h)||function(t,e){const n={stylesheet:Nt(e),rules:{}};return re.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 ${o}ms 1 both`,ie+=1,d}(t,0,1,n,e,c,d,l++)),u(0,1);const h=jt()+e,f=h+n;o&&o.abort(),a=!0,xe((()=>je(t,!0,"start"))),o=function(t){let e;return 0===Dt.size&&Vt(Pt),{promise:new Promise((n=>{Dt.add(e={c:t,f:n})})),abort(){Dt.delete(e)}}}((e=>{if(a){if(e>=f)return u(1,0),je(t,!0,"end"),s(),a=!1;if(e>=h){const t=c((e-h)/n);u(t,1-t)}}return a}))}let u=!1;return{start(){u||(u=!0,ae(t),pt(i)?(i=i(),(ke||(ke=Promise.resolve(),ke.then((()=>{ke=null}))),ke).then(c)):c())},invalidate(){u=!1},end(){a&&(s(),a=!1)}}}const Me="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function Je(t,e){Ie(t,1,1,(()=>{e.delete(t.key)}))}function Oe(t,e){const n={},r={},o={$$scope:1};let i=t.length;for(;i--;){const a=t[i],l=e[i];if(l){for(const t in a)t in l||(r[t]=1);for(const t in l)o[t]||(n[t]=l[t],o[t]=1);t[i]=l}else for(const t in a)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let Be;function Te(t){t&&t.c()}function Re(t,e){t&&t.l(e)}function Le(t,e,n,r){const{fragment:o,on_mount:i,on_destroy:a,after_update:l}=t.$$;o&&o.m(e,n),r||xe((()=>{const e=i.map(dt).filter(pt);a?a.push(...e):ft(e),t.$$.on_mount=[]})),l.forEach(xe)}function We(t,e){const n=t.$$;null!==n.fragment&&(ft(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ue(t,e,n,r,o,i,a,l=[-1]){const s=oe;le(t);const c=t.$$={fragment:null,ctx:null,props:i,update:st,not_equal:o,bound:ht(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:ht(),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 i=r.length?r[0]:n;return c.ctx&&o(c.ctx[e],c.ctx[e]=i)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](i),u&&function(t,e){-1===t.$$.dirty[0]&&(pe.push(t),_e(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],c.update(),u=!0,ft(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){St=!0;const t=Gt(e.target);c.fragment&&c.fragment.l(t),t.forEach(Jt)}else c.fragment&&c.fragment.c();e.intro&&Fe(t.$$.fragment),Le(t,e.target,e.anchor,e.customElement),St=!1,Ee()}le(s)}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(Be=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(dt).filter(pt);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){ft(this.$$.on_disconnect)}$destroy(){We(this,1),this.$destroy=st}$on(t,e){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&&!$t(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class qe{$destroy(){We(this,1),this.$destroy=st}$on(t,e){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&&!$t(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const He=[];function Ge(t,e=st){let n;const r=new Set;function o(e){if(i=e,((o=t)!=o?i==i:o!==i||o&&"object"==typeof o||"function"==typeof o)&&(t=e,n)){const e=!He.length;for(const e of r)e[1](),He.push(e,t);if(e){for(let t=0;t<He.length;t+=2)He[t][0](He[t+1]);He.length=0}}var o,i}return{set:o,update:function(e){o(e(t))},subscribe:function(i,a=st){const l=[i,a];return r.add(l),1===r.size&&(n=e(o)||st),i(t),()=>{r.delete(l),0===r.size&&(n(),n=null)}}}}function Ke(t,e,n){const r=!Array.isArray(t),o=r?[t]:t,i=e.length<2;return{subscribe:Ge(n,(t=>{let n=!1;const a=[];let l=0,s=st;const c=()=>{if(l)return;s();const n=e(r?a[0]:a,t);i?t(n):s=pt(n)?n:st},u=o.map(((t,e)=>yt(t,(t=>{a[e]=t,l&=~(1<<e),n&&c()}),(()=>{l|=1<<e}))));return n=!0,c(),function(){ft(u),s()}})).subscribe}}class Xe{constructor(t,e){this.checkValue(e),this.name=t,this.value=e}getName(){return this.name}subscribe(t){return this.store||(this.store=Ge(this.value)),this.store.subscribe(t)}set(t){const e=this.fromString(t);this.setValue(e)}setValue(t){this.checkValue(t),this.value=t,this.store&&this.store.set(t)}getValue(){return this.value}}const Ye={string:class extends Xe{checkValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value")}fromString(t){return t}getType(){return"string"}},number:class extends Xe{checkValue(t){if("number"!=typeof t||isNaN(t)||!isFinite(t))throw new Error("Incorrect variable value")}fromString(t){const e=Number(t);return this.checkValue(e),e}getType(){return"number"}},integer:class extends Xe{checkValue(t){if("number"!=typeof t||isNaN(t)||t>2147483647||t<n||t!==Math.round(t))throw new Error("Incorrect variable value")}fromString(t){const e=Number(t);return this.checkValue(e),e}getType(){return"integer"}},boolean:class extends Xe{checkValue(t){if(1!==t&&0!==t)throw new Error("Incorrect variable value")}fromString(t){if("1"===t)return 1;if("0"===t)return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}},color:class extends Xe{checkValue(t){if("string"!=typeof t||!A(t))throw new Error("Incorrect variable value")}fromString(t){return this.checkValue(t),t}getType(){return"color"}},url:class extends Xe{checkValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value")}fromString(t){return t}getType(){return"url"}}};function Ze(t,e,n){if(!(e in Ye))throw new Error("Unsupported variable type");return new Ye[e](t,n)}function Qe(t){return t.map(P).join(", ")}b("toString",[a],B),b("toString",[l],B),b("toString",[s],B),b("toString",[c],B),b("toString",["url"],B),b("toNumber",[a],T),b("toNumber",[i],T),b("toInteger",[l],(function(t){if(t.value>2147483647||t.value<n)throw new Error("Unable to convert value to Integer.");const e=t.value-t.value%1;return{type:a,value:e}})),b("toInteger",[i],(function(t){const e=Number(t.value);if(isNaN(e)||e%1!=0||e>2147483647||e<n)throw new Error("Unable to convert value to Integer.");return{type:a,value:e}})),b("toInteger",[s],(function(t){return{type:a,value:t.value?1:0}})),b("toBoolean",[a],(function(t){if(1!==t.value&&0!==t.value)throw new Error("Unable to convert value to Boolean.");return{type:s,value:t.value}})),b("toBoolean",[i],(function(t){if("true"!==t.value&&"false"!==t.value)throw new Error("Unable to convert value to Boolean.");return{type:s,value:"true"===t.value?1:0}})),b("encodeUri",[i],(function(t){try{return{type:i,value:encodeURIComponent(t.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),b("decodeUri",[i],(function(t){try{return{type:i,value:decodeURIComponent(t.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),b("parseUnixTime",[a],(function(t){return{type:u,value:new Date(1e3*t.value)}})),b("nowLocal",[],(function(){return{type:u,value:new Date}})),b("addMillis",[u,a],(function(t,e){return{type:u,value:new Date(t.value.getTime()+e.value)}})),b("setYear",[u,a],(function(t,e){const n=new Date(t.value);return n.setFullYear(e.value),{type:u,value:n}})),b("setMonth",[u,a],(function(t,e){if(e.value<1||e.value>12)throw new Error("Expecting month in [1..12], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setMonth(e.value-1),{type:u,value:n}})),b("setDay",[u,a],(function(t,e){const n=new Date(t.value);if(e.value<=0&&-1!==e.value||e.value>function(t){const e=new Date(t);return e.setMonth(e.getMonth()+1),e.setDate(0),e.getDate()}(n))throw new Error("Unable to set day ".concat(e.value," for date ").concat(D(t),"."));return n.setDate(-1===e.value?0:e.value),{type:u,value:n}})),b("setHours",[u,a],(function(t,e){if(e.value<0||e.value>23)throw new Error("Expecting hours in [0..23], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setHours(e.value-n.getTimezoneOffset()/60),{type:u,value:n}})),b("setMinutes",[u,a],(function(t,e){if(e.value<0||e.value>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setMinutes(e.value),{type:u,value:n}})),b("setSeconds",[u,a],(function(t,e){if(e.value<0||e.value>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setSeconds(e.value),{type:u,value:n}})),b("setMillis",[u,a],(function(t,e){if(e.value<0||e.value>999)throw new Error("Expecting millis in [0..999], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setMilliseconds(e.value),{type:u,value:n}})),b("len",[i],(function(t){return{type:a,value:t.value.length}})),b("contains",[i,i],(function(t,e){return{type:s,value:t.value.includes(e.value)?1:0}})),b("substring",[i,a,a],(function(t,e,n){if(n.value<e.value)throw new Error("Indexes should be in ascending order.");if(e.value<0||e.value>t.value.length||n.value<0||n.value>t.value.length)throw new Error("Indexes are out of bounds.");return{type:i,value:t.value.substring(e.value,n.value)}})),b("replaceAll",[i,i,i],(function(t,e,n){let r;return r=e.value?t.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(e.value),"g"),n.value):t.value,{type:i,value:r}})),b("index",[i,i],(function(t,e){return{type:a,value:t.value.indexOf(e.value)}})),b("lastIndex",[i,i],(function(t,e){return{type:a,value:t.value.lastIndexOf(e.value)}})),b("trim",[i],(function(t){return{type:i,value:t.value.trim()}})),b("trimLeft",[i],(function(t){return{type:i,value:t.value.replace(/^\s+/,"")}})),b("trimRight",[i],(function(t){return{type:i,value:t.value.replace(/\s+$/,"")}})),b("toUpperCase",[i],(function(t){return{type:i,value:t.value.toUpperCase()}})),b("toLowerCase",[i],(function(t){return{type:i,value:t.value.toLowerCase()}})),b("div",[a,a],R),b("div",[l,l],R),b("mod",[a,a],L),b("mod",[l,l],L),b("mul",[{type:a,isVararg:!0}],W),b("mul",[{type:l,isVararg:!0}],W),b("sub",[{type:a,isVararg:!0}],U),b("sub",[{type:l,isVararg:!0}],U),b("sum",[{type:a,isVararg:!0}],q),b("sum",[{type:l,isVararg:!0}],q),b("abs",[a],H),b("abs",[l],H),b("max",[{type:a,isVararg:!0}],G),b("max",[{type:l,isVararg:!0}],G),b("min",[{type:a,isVararg:!0}],K),b("min",[{type:l,isVararg:!0}],K),b("maxNumber",[],(function(){return{type:l,value:r}})),b("minNumber",[],(function(){return{type:l,value:o}})),b("maxInteger",[],(function(){return{type:a,value:2147483647}})),b("minInteger",[],(function(){return{type:a,value:n}})),b("round",[l],(function(t){const e=Math.sign(t.value);return{type:l,value:e*Math.round(Math.abs(t.value))}})),b("floor",[l],(function(t){return{type:l,value:Math.floor(t.value)}})),b("ceil",[l],(function(t){return{type:l,value:Math.ceil(t.value)}})),b("signum",[l],X),b("signum",[a],X),b("copySign",[l,l],Y),b("copySign",[a,a],Y),b("getColorAlpha",[i],tt),b("getColorAlpha",[c],tt),b("getColorRed",[i],et),b("getColorRed",[c],et),b("getColorGreen",[i],nt),b("getColorGreen",[c],nt),b("getColorBlue",[i],rt),b("getColorBlue",[c],rt),b("setColorAlpha",[i,l],ot),b("setColorAlpha",[c,l],ot),b("setColorRed",[i,l],it),b("setColorRed",[c,l],it),b("setColorGreen",[i,l],at),b("setColorGreen",[c,l],at),b("setColorBlue",[i,l],lt),b("setColorBlue",[c,l],lt),b("rgb",[l,l,l],(function(t,e,n){const r={a:255,r:255*t.value,g:255*e.value,b:255*n.value};return{type:i,value:O(r)}})),b("argb",[l,l,l,l],(function(t,e,n,r){const o={a:255*t.value,r:255*e.value,g:255*n.value,b:255*r.value};return{type:i,value:O(o)}}));const tn={StringLiteral:function(t,e){return{type:i,value:e.value}},NumberLiteral:function(t,e){return{type:l,value:e.value}},IntegerLiteral:function(t,e){return{type:a,value:e.value}},BooleanLiteral:function(t,e){return{type:s,value:e.value?1:0}},UnaryExpression:function(t,e){const n=j(en(t,e.argument));switch(e.operator){case"!":if(n.type===s)return{type:s,value:n.value?0:1};M("".concat(e.operator).concat(P(n)),"A Boolean is expected after a unary not.");case"+":case"-":const t="+"===e.operator?1:-1;if(n.type===a)return{type:a,value:n.value*t};if(n.type===l)return{type:l,value:n.value*t};M("".concat(e.operator).concat(P(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=j(en(t,e.test));if(n.type===s)return n.value?en(t,e.consequent):en(t,e.alternate);M("".concat(P(n)," ? ").concat(P(en(t,e.consequent))," : ").concat(P(en(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 en(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=D(en(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:i,value:n}},LogicalExpression:function(t,e){const n=j(en(t,e.left));if(n.type!==s&&M("".concat(P(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:s,value:0};const r=j(en(t,e.right));return r.type!==s&&M("".concat(P(n)," ").concat(e.operator," ").concat(P(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(S(r.type),".")),{type:s,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=en(t,e.left),o=en(t,e.right);if(r.type!==o.type&&M("".concat(P(r)," ").concat(e.operator," ").concat(P(o)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(S(r.type)," and ").concat(S(o.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===u&&n.type===u?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:s,value:r?1:0}}(n,r,o);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==l&&e.type!==a&&e.type!==u&&M("".concat(P(e)," ").concat(t," ").concat(P(n)),"Operator '".concat(t,"' cannot be applied to ").concat(S(e.type)," type."));const o=e.type===u?e.value.getTime():e.value,i=n.type===u?n.value.getTime():n.value;return r=">"===t?o>i:">="===t?o>=i:"<"===t?o<i:o<=i,{type:s,value:r?1:0}}(n,r,o);if("+"===n||"-"===n)return function(t,e,n){if(e.type!==i&&e.type!==l&&e.type!==a&&M("".concat(P(e)," ").concat(t," ").concat(P(n)),"Operator '".concat(t,"' cannot be applied to ").concat(S(e.type)," type.")),e.type===i)return"-"===t&&M("".concat(P(e)," - ").concat(P(n)),"Operator '".concat(t,"' cannot be applied to ").concat(S(e.type)," type.")),{type:i,value:e.value+n.value};let r="+"===t?e.value+n.value:e.value-n.value;return e.type===a&&(r=I(r)),{type:e.type,value:r}}(n,r,o);if("/"===n||"*"===n||"%"===n)return function(t,e,n){let r;if(e.type!==a&&e.type!==l&&M("".concat(P(e)," ").concat(t," ").concat(P(n)),"Operator '".concat(t,"' cannot be applied to ").concat(S(e.type)," type.")),"*"===t)r=e.value*n.value;else{if("/"!==t&&"%"!==t)throw new Error("Unsupported operation ".concat(t));0===n.value&&M("".concat(P(e)," ").concat(t," ").concat(P(n)),"Division by zero is not supported."),r="/"===t?e.value/n.value:e.value%n.value}return e.type===a&&(r=I(r)),{type:e.type,value:r}}(n,r,o);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;if(!y.has(n))throw new Error("Unknown function name: ".concat(n,"."));let r;const o=e.arguments.map((e=>en(t,e))),i=n+":"+o.map((t=>t.type)).join("#");if(_.has(i))r=_.get(i);else{const t=function(t,e){const n=y.get(t);if(!n)throw new Error("Missing function");let r=null;for(let t=0;t<n.length;++t){const o=x(n[t],e);if("match"===o.type)return n[t];r||(r=o)}if(!r)throw new Error("Missing function");return r}(n,o);if("expected"in t){const e=o.map((t=>S(t.type))).join(", "),r="".concat(n,"(").concat(Qe(o),")");"few"===t.type&&0===o.length?M(r,"Non empty argument list is required for function '".concat(n,"'.")):(t.type,M(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(...o)}catch(t){M("".concat(n,"(").concat(Qe(o),")"),t.message)}},Variable:function(t,e){const n=e.id.name,r=t.get(n);if(r)return function(t){return{type:t.getType(),value:t.getValue()}}(r);throw new Error("Variable '".concat(n,"' has value null"))}};function en(t,e){if(e.type in tn)return tn[e.type](t,e);throw new Error("Unsupported expression")}function nn(t,e){try{return en(t,e)}catch(t){return{type:"error",value:t.message}}}const rn=Symbol("root");function on(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}const an={text:"divkit-d9b0",text_halign_left:"divkit-a4cb",text_halign_center:"divkit-e165",text_halign_right:"divkit-ea28",text_valign_top:"divkit-d8ce",text_valign_center:"divkit-ef58",text_valign_bottom:"divkit-fe8e",text_width_content:"divkit-f41f",text_height_content:"divkit-ea52",text__inner:"divkit-b852",text_singleline:"divkit-ef11",text_truncate_none:"divkit-c6ea",text_multiline:"divkit-ee8e",text__inner_gradient:"divkit-cb8e",text__image:"divkit-bf6e",text__image_hidden:"divkit-f100"},ln={outer:"divkit-d65a","outer_hide-on-transition-in":"divkit-a6d1","outer_valign-self_top":"divkit-b8d7","outer_valign-self_default":"divkit-e369","outer_valign-self_center":"divkit-d40a","outer_valign-self_bottom":"divkit-f550","outer_halign-self_left":"divkit-e896","outer_halign-self_default":"divkit-d42d","outer_halign-self_center":"divkit-b833","outer_halign-self_right":"divkit-a1de",outer_width_parent:"divkit-ad44",outer_height_parent:"divkit-b896","outer_width-constrained":"divkit-d321","outer_height-constrained":"divkit-a525","outer_parent-halign_start":"divkit-eec1","outer_parent-halign_center":"divkit-a094","outer_parent-halign_end":"divkit-daf0","outer_parent-valign_start":"divkit-a4d2","outer_parent-valign_center":"divkit-da31","outer_parent-valign_end":"divkit-df47","outer_parent-overlap":"divkit-dab2","outer_parent-overlap-absolute":"divkit-d43f","outer_scroll-snap_center":"divkit-d9e3","outer_scroll-snap_start":"divkit-efd1",outer__border:"divkit-d405",outer_visibility_invisible:"divkit-f018",outer_visibility_gone:"divkit-e784","outer_has-action-animation":"divkit-f498"};function sn(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 cn(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 un(t){let e=cn(t);return"0"===e&&(e+="em"),e}function dn(t){let e=String(t);return e.indexOf("&")>-1&&(e=e.replace(/&/g,"&")),e.indexOf("<")>-1&&(e=e.replace(/</g,"<")),e.indexOf(">")>-1&&(e=e.replace(/>/g,">")),e.indexOf('"')>-1&&(e=e.replace(/"/g,""")),e}const hn=Boolean;function fn(t){if(1===t.length&&"solid"===t[0].type)return{color:C(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=C(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=>C(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:pn(t.bg.scale),pos:gn(t.bg),image:'url("'+dn(n)+'")'}}({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(",")}}function pn(t){return"fill"!==t&&t?"fit"===t?"contain":void 0:"cover"}function gn(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 mn(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}const vn=new Set(["http","https","tel","mailto","intent"]);function $n(t){return vn.has(t)}function yn(t,e){e&&t.push(e)}function _n(t,e,n){const r=[];yn(r,e[t]);for(const o in n)if(n.hasOwnProperty(o)){const i=n[o];i&&yn(r,e["".concat(t,"_").concat(o)+("string"==typeof i?"_".concat(i):"")])}return r.join(" ")}const bn=function(t,e){var n;let{json:r,origJson:o,templateContext:i,rootCtx:a}=e;return null===(n=a.registerComponent)||void 0===n||n.call(a,{node:t,json:r,origJson:o,templateContext:i}),{destroy(){var e;null===(e=a.unregisterComponent)||void 0===e||e.call(a,{node:t})}}},xn=Symbol("state");function wn(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function kn(t){return wn(t)&&t>=0}function Cn(t,e,n,r){const o=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<o.length;++t)if(o[t]&&!kn(o[t]))return r;return function(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=>cn((t||e)/n*10))).join(" ")}(t,e,n)}function En(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]&&!kn(n[t]))return e;return function(t){return cn(t.top||0)+" "+cn(t.right||0)+" "+cn(t.bottom||0)+" "+cn(t.left||0)}(t)}function An(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const jn=Object.prototype.hasOwnProperty;function Vn(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 o=n[r];if(!jn.call(e,o)||!Vn(t[o],e[o]))return!1}return!0}function Dn(t,e){return Vn(t,e)?e:t}function Pn(){}const Sn=Symbol("action");function Fn(t){let e,n,r,o,i,a,l;const s=t[12].default,c=bt(s,t,t[11],null);let u=[{class:n=""+(t[0]+(t[7]?" ".concat(t[4]?"":"divkit-bd25"," ").concat("divkit-c016"):""))},{style:t[1]},{role:r=t[7]?"button":null},t[2]],d={};for(let t=0;t<u.length;t+=1)d=ut(d,u[t]);return{c(){e=Bt("span"),c&&c.c(),this.h()},l(t){e=Yt(t,"SPAN",{class:!0,style:!0,role:!0});var n=Gt(e);c&&c.l(n),n.forEach(Jt),this.h()},h(){Ht(e,d)},m(n,r){Mt(n,e,r),c&&c.m(e,null),i=!0,a||(l=[Et(o=t[3].call(null,e)),Ut(e,"click",(function(){pt(t[7]?t[8]:null)&&(t[7]?t[8]:null).apply(this,arguments)})),Ut(e,"click",t[15]),Ut(e,"keydown",t[16])],a=!0)},p(o,a){t=o,c&&c.p&&(!i||2048&a)&&kt(c,s,t,t[11],i?wt(s,t[11],a,null):Ct(t[11]),null),Ht(e,d=Oe(u,[(!i||145&a&&n!==(n=""+(t[0]+(t[7]?" ".concat(t[4]?"":"divkit-bd25"," ").concat("divkit-c016"):""))))&&{class:n},(!i||2&a)&&{style:t[1]},(!i||128&a&&r!==(r=t[7]?"button":null))&&{role:r},4&a&&t[2]]))},i(t){i||(Fe(c,t),i=!0)},o(t){Ie(c,t),i=!1},d(t){t&&Jt(e),c&&c.d(t),a=!1,ft(l)}}}function In(t){let e,n,r,o,i,a;const l=t[12].default,s=bt(l,t,t[11],null);let c=[{href:t[5]},{target:t[6]},{style:t[1]},{class:n=t[0]+" "+(t[4]?"":"divkit-bd25")},t[2]],u={};for(let t=0;t<c.length;t+=1)u=ut(u,c[t]);return{c(){e=Bt("a"),s&&s.c(),this.h()},l(t){e=Yt(t,"A",{href:!0,target:!0,style:!0,class:!0});var n=Gt(e);s&&s.l(n),n.forEach(Jt),this.h()},h(){Ht(e,u)},m(n,l){Mt(n,e,l),s&&s.m(e,null),o=!0,i||(a=[Et(r=t[3].call(null,e)),Ut(e,"click",t[8]),Ut(e,"click",t[13]),Ut(e,"keydown",t[14])],i=!0)},p(t,r){s&&s.p&&(!o||2048&r)&&kt(s,l,t,t[11],o?wt(l,t[11],r,null):Ct(t[11]),null),Ht(e,u=Oe(c,[(!o||32&r)&&{href:t[5]},(!o||64&r)&&{target:t[6]},(!o||2&r)&&{style:t[1]},(!o||17&r&&n!==(n=t[0]+" "+(t[4]?"":"divkit-bd25")))&&{class:n},4&r&&t[2]]))},i(t){o||(Fe(s,t),o=!0)},o(t){Ie(s,t),o=!1},d(t){t&&Jt(e),s&&s.d(t),i=!1,ft(a)}}}function Nn(t){let e,n,r,o;const i=[In,Fn],a=[];function l(t,e){return t[5]?0:1}return e=l(t),n=a[e]=i[e](t),{c(){n.c(),r=Wt()},l(t){n.l(t),r=Wt()},m(t,n){a[e].m(t,n),Mt(t,r,n),o=!0},p(t,o){let[s]=o,c=e;e=l(t),e===c?a[e].p(t,s):(Pe(),Ie(a[c],1,1,(()=>{a[c]=null})),Se(),n=a[e],n?n.p(t,s):(n=a[e]=i[e](t),n.c()),Fe(n,1),n.m(r.parentNode,r))},i(t){o||(Fe(n),o=!0)},o(t){Ie(n),o=!1},d(t){a[e].d(t),t&&Jt(r)}}}function zn(t,e,n){let{$$slots:r={},$$scope:o}=e,{actions:i}=e,{cls:a=""}=e,{style:l=null}=e,{attrs:s}=e,{use:c=Pn}=e,{customAction:u=null}=e,{hasActionAnimation:d=!1}=e;const h=he(rn),f=he(Sn);de(Sn,{hasAction:()=>Boolean(f.hasAction()||(null==i?void 0:i.length))});let p,g="";if(Array.isArray(i)&&(null==i?void 0:i.length))for(let t=0;t<i.length;++t){const e=i[t].url;if(e){g=e,p=i[t].target||void 0;break}}Array.isArray(i)&&(null==i?void 0:i.length)&&f.hasAction()&&(g="",h.logError(on(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:i}})));let m=Boolean(u);return g&&!$n(mn(g))&&(g="",m=!0),t.$$set=t=>{"actions"in t&&n(9,i=t.actions),"cls"in t&&n(0,a=t.cls),"style"in t&&n(1,l=t.style),"attrs"in t&&n(2,s=t.attrs),"use"in t&&n(3,c=t.use),"customAction"in t&&n(10,u=t.customAction),"hasActionAnimation"in t&&n(4,d=t.hasActionAnimation),"$$scope"in t&&n(11,o=t.$$scope)},[a,l,s,c,d,g,p,m,function(t){f.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==u?void 0:u(t))?t.preventDefault():i&&(i.forEach((e=>{const n=e.url;if(n){const r=mn(n);r&&!$n(r)&&(t.preventDefault(),"div-action"===r?h.execAction(e):e.log_id&&h.execCustomAction(e))}})),i.forEach((t=>{h.logStat("click",t)}))))},i,u,o,r,function(e){fe.call(this,t,e)},function(e){fe.call(this,t,e)},function(e){fe.call(this,t,e)},function(e){fe.call(this,t,e)}]}const Mn=class extends qe{constructor(t){super(),Ue(this,t,zn,Nn,vt,{actions:9,cls:0,style:1,attrs:2,use:3,customAction:10,hasActionAnimation:4})}};function Jn(t,e,n){const r=t.slice();return r[3]=e[n],r}function On(t){let e,n,r;return{c(){e=Bt("span"),this.h()},l(t){e=Yt(t,"SPAN",{class:!0,style:!0}),Gt(e).forEach(Jt),this.h()},h(){qt(e,"class",n="divkit-b921"),qt(e,"style",r=sn(t[3].style))},m(t,n){Mt(t,e,n)},p:st,d(t){t&&Jt(e)}}}function Bn(t){let e,n,r,o,i,a;return{c(){e=Bt("img"),this.h()},l(t){e=Yt(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){mt(e.src,n=t[3].image_url)||qt(e,"src",n),qt(e,"alt",""),qt(e,"aria-hidden","true"),qt(e,"loading","lazy"),qt(e,"decoding","async"),qt(e,"class",r="divkit-b921"),qt(e,"style",o=sn(t[3].style))},m(n,r){Mt(n,e,r),i||(a=Ut(e,"error",t[1]),i=!0)},p:st,d(t){t&&Jt(e),i=!1,a()}}}function Tn(t){let e,n=function(t,e){return t[3].image_url?Bn:On}(t),r=n(t);return{c(){r.c(),e=Wt()},l(t){r.l(t),e=Wt()},m(t,n){r.m(t,n),Mt(t,e,n)},p(t,e){r.p(t,e)},d(t){r.d(t),t&&Jt(e)}}}function Rn(t){let e,n,r=t[0],o=[];for(let e=0;e<r.length;e+=1)o[e]=Tn(Jn(t,r,e));return{c(){e=Bt("span");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=Yt(t,"SPAN",{class:!0});var n=Gt(e);for(let t=0;t<o.length;t+=1)o[t].l(n);n.forEach(Jt),this.h()},h(){qt(e,"class",n="divkit-bf25")},m(t,n){Mt(t,e,n);for(let t=0;t<o.length;t+=1)o[t].m(e,null)},p(t,n){let[i]=n;if(3&i){let n;for(r=t[0],n=0;n<r.length;n+=1){const a=Jn(t,r,n);o[n]?o[n].p(a,i):(o[n]=Tn(a),o[n].c(),o[n].m(e,null))}for(;n<o.length;n+=1)o[n].d(1);o.length=r.length}},i:st,o:st,d(t){t&&Jt(e),Ot(o,t)}}}function Ln(t,e,n){let{background:r=[]}=e;const o=r.map((t=>{const e={},n=fn([t]),r={style:e};return"solid"===t.type&&(e["background-color"]=n.color),"gradient"===t.type&&(e["background-image"]=n.image),"image"===t.type&&(e.opacity=Number(t.alpha),r.image_url=t.image_url,e["object-fit"]=n.size,e["object-position"]=n.position),r}));return t.$$set=t=>{"background"in t&&n(2,r=t.background)},[o,function(t){t.target&&"classList"in t.target&&t.target.classList.add("divkit-cd61")},r]}const Wn=class extends qe{constructor(t){super(),Ue(this,t,Ln,Rn,vt,{background:2})}};function Un(t,e){const n=Number(t);return isNaN(n)?e:n}function qn(t){let e,n;return e=new Wn({props:{background:t[4]}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.background=t[4]),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function Hn(t){let e,n,r;return{c(){e=Bt("span"),this.h()},l(t){e=Yt(t,"SPAN",{class:!0,style:!0}),Gt(e).forEach(Jt),this.h()},h(){qt(e,"class",n=ln.outer__border),qt(e,"style",r=sn(t[1]))},m(t,n){Mt(t,e,n)},p(t,n){2&n[0]&&r!==(r=sn(t[1]))&&qt(e,"style",r)},d(t){t&&Jt(e)}}}function Gn(t){let e,n,r,o=t[2]&&qn(t);const i=t[90].default,a=bt(i,t,t[91],null);let l=t[6]&&Hn(t);return{c(){o&&o.c(),e=Wt(),a&&a.c(),l&&l.c(),n=Wt()},l(t){o&&o.l(t),e=Wt(),a&&a.l(t),l&&l.l(t),n=Wt()},m(t,i){o&&o.m(t,i),Mt(t,e,i),a&&a.m(t,i),l&&l.m(t,i),Mt(t,n,i),r=!0},p(t,s){t[2]?o?(o.p(t,s),4&s[0]&&Fe(o,1)):(o=qn(t),o.c(),Fe(o,1),o.m(e.parentNode,e)):o&&(Pe(),Ie(o,1,1,(()=>{o=null})),Se()),a&&a.p&&(!r||536870912&s[2])&&kt(a,i,t,t[91],r?wt(i,t[91],s,null):Ct(t[91]),null),t[6]?l?l.p(t,s):(l=Hn(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(t){r||(Fe(o),Fe(a,t),r=!0)},o(t){Ie(o),Ie(a,t),r=!1},d(t){o&&o.d(t),t&&Jt(e),a&&a.d(t),l&&l.d(t),t&&Jt(n)}}}function Kn(t){let e,n;return e=new Mn({props:{use:t[25],cls:t[0]+" "+_n("outer",ln,t[10]),style:sn(t[8]),actions:t[7],attrs:t[5],hasActionAnimation:Boolean(t[3]),$$slots:{default:[Gn]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};1025&n[0]&&(r.cls=t[0]+" "+_n("outer",ln,t[10])),256&n[0]&&(r.style=sn(t[8])),128&n[0]&&(r.actions=t[7]),32&n[0]&&(r.attrs=t[5]),8&n[0]&&(r.hasActionAnimation=Boolean(t[3])),86&n[0]|536870912&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function Xn(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,E,A,j,V,D,P,S,F,I,N,z,M,J,O=st,B=st,T=st,R=st,L=st,W=st,U=st,q=st,H=st,G=st,K=st,X=st,Y=st,Z=st,Q=st;t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),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()));let{$$slots:tt={},$$scope:et}=e;var nt,rt,ot,it,at,lt;let{json:ct={}}=e,{origJson:ut}=e,{templateContext:dt}=e,{cls:ht=""}=e,{style:ft}=e,{layoutParams:pt={}}=e,{customDescription:gt=!1}=e,{customPaddings:mt=!1}=e,{customActions:vt=""}=e,{forceWidth:$t=!1}=e,{forceHeight:_t=!1}=e;const bt=he(rn),xt=he(xn);let wt,kt,Ct,Et,At,jt,Vt,Dt={},Pt={},St=!1,Ft=1,It="transparent",Nt=0,zt="",Mt="",Jt="",Ot={},Bt=0,Tt="default",Rt={},Lt=0,Wt="default",Ut=1;const qt=ct.transition_triggers||["state_change","visibility_change"],Ht=-1!==qt.indexOf("state_change")&&ct.id,Gt=-1!==qt.indexOf("visibility_change")&&ct.id;let Kt,Xt,Yt,Zt,Qt,te,ee,ne=[],re="";function oe(t){var e;const r=t.start_value||1,o=t.end_value||1,i=t.start_delay||0,a=t.duration||300,l=function(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:"ease_in_out"}(t.interpolator).replace(/_/g,"-");switch(t.name){case"fade":return n(63,Zt=r),n(64,Qt=o),"opacity ".concat(a,"ms ").concat(l," ").concat(i,"ms");case"scale":return n(65,te=r),n(66,ee=o),"transform ".concat(a,"ms ").concat(l," ").concat(i,"ms");case"set":return(null===(e=t.items)||void 0===e?void 0:e.length)?t.items.map(oe).join(", "):(bt.logError(on(new Error("Empty items value for action_animation with name='set'"))),"");default:return bt.logError(on(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}let ie,ae,le=!1,se="visible",ce=0,ue=0;return t.$$set=t=>{"json"in t&&n(26,ct=t.json),"origJson"in t&&n(27,ut=t.origJson),"templateContext"in t&&n(28,dt=t.templateContext),"cls"in t&&n(0,ht=t.cls),"style"in t&&n(29,ft=t.style),"layoutParams"in t&&n(30,pt=t.layoutParams),"customDescription"in t&&n(31,gt=t.customDescription),"customPaddings"in t&&n(32,mt=t.customPaddings),"customActions"in t&&n(33,vt=t.customActions),"forceWidth"in t&&n(34,$t=t.forceWidth),"forceHeight"in t&&n(35,_t=t.forceHeight),"$$scope"in t&&n(91,et=t.$$scope)},t.$$.update=()=>{if(67108864&t.$$.dirty[0]&&(n(24,r=bt.getDerivedFromVars(ct.border)),Q(),Q=yt(r,(t=>n(89,J=t)))),2&t.$$.dirty[0]|65504&t.$$.dirty[1]|134217728&t.$$.dirty[2]){let t={},e={},r=!1;if(J){if(J.has_shadow){const e=J.shadow;t["box-shadow"]=e?cn((null===n(37,rt=null===n(36,nt=e.offset)||void 0===nt?void 0:nt.x)||void 0===rt?void 0:rt.value)||0)+" "+cn((null===n(39,it=null===n(38,ot=e.offset)||void 0===ot?void 0:ot.y)||void 0===it?void 0:it.value)||0)+" "+cn(null!==n(40,at=e.blur)&&void 0!==at?at:2)+" "+C(e.color||"#000000",null!==n(41,lt=e.alpha)&&void 0!==lt?lt:.19):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}J.stroke&&(r=!0,n(43,Ft=An(J.stroke.width,Ft)),n(44,It=C(J.stroke.color,1,It)),e.border="".concat(cn(Ft)," solid ").concat(It)),J.corners_radius?(n(46,zt=Cn(J.corners_radius,0,10,zt)),e["border-radius"]=t["border-radius"]=zt):J.corner_radius&&(n(45,Nt=An(J.corner_radius,Nt)),e["border-radius"]=t["border-radius"]=cn(Nt))}n(42,Dt=Dn(t,Dt)),n(1,Pt=Dn(e,Pt)),n(6,St=r)}if(67108864&t.$$.dirty[0]&&(n(23,o=bt.getDerivedFromVars(ct.paddings)),Z(),Z=yt(o,(t=>n(88,M=t)))),65538&t.$$.dirty[1]|67108864&t.$$.dirty[2]&&n(47,Mt=En(M&&!mt?M:void 0,Mt)),67108864&t.$$.dirty[0]&&(n(22,i=bt.getDerivedFromVars(ct.margins)),X(),X=yt(i,(t=>n(86,N=t)))),131072&t.$$.dirty[1]|16777216&t.$$.dirty[2]&&n(48,Jt=En(N,Jt)),67108864&t.$$.dirty[0]&&(n(21,a=bt.getDerivedFromVars(ct.width)),G(),G=yt(a,(t=>n(84,F=t)))),67108864&t.$$.dirty[0]&&(n(20,l=bt.getDerivedFromVars(ct.alignment_horizontal)),Y(),Y=yt(l,(t=>n(87,z=t)))),1073741824&t.$$.dirty[0]|3407880&t.$$.dirty[1]|54525952&t.$$.dirty[2]){let t,e,r={};F?"fixed"===F.type?(n(51,Bt=An(F.value,Bt)),e=cn(Bt)):"wrap_content"===F.type||!pt.overlapParent&&"match_parent"===F.type&&pt.parentHorizontalWrapContent?(t="content",("wrap_content"===F.type&&F.constrained||"match_parent"===F.type&&pt.parentHorizontalWrapContent)&&(r["width-constrained"]=!0)):"match_parent"===F.type&&(t="parent","vertical"===pt.parentLayoutOrientation&&(e="calc(100% - ".concat(un(((null==N?void 0:N.left)||0)+((null==N?void 0:N.right)||0)),")"))):t="parent","content"===t&&$t&&(t="parent",bt.logError(on(new Error("Incorrect usage of width with value 'wrap_content'"),{level:"warn"}))),t&&(r.width=t);const o=z;"left"===o||"center"===o||"right"===o?r["halign-self"]=n(52,Tt=o):(r["halign-self"]=Tt,"parent"!==t&&pt.parentHAlign&&(r["parent-halign"]=pt.parentHAlign)),n(50,Ct=e),n(49,Ot=Dn(r,Ot))}if(67108864&t.$$.dirty[0]&&(n(19,s=bt.getDerivedFromVars(ct.height)),H(),H=yt(s,(t=>n(83,S=t)))),67108864&t.$$.dirty[0]&&(n(18,c=bt.getDerivedFromVars(ct.alignment_vertical)),K(),K=yt(c,(t=>n(85,I=t)))),1073741824&t.$$.dirty[0]|54525968&t.$$.dirty[1]|27262976&t.$$.dirty[2]){let t,e,r={};S?"fixed"===S.type?(n(55,Lt=An(S.value,Lt)),e=cn(Lt)):"wrap_content"===S.type||!pt.overlapParent&&"match_parent"===S.type&&pt.parentVerticalWrapContent?(t="content",("wrap_content"===S.type&&S.constrained||"match_parent"===S.type&&pt.parentVerticalWrapContent)&&(r["height-constrained"]=!0)):"match_parent"===S.type&&(t="parent","horizontal"===pt.parentLayoutOrientation&&(e="calc(100% - ".concat(un(((null==N?void 0:N.top)||0)+((null==N?void 0:N.bottom)||0)),")"))):t="content","content"===t&&_t&&(t="parent",bt.logError(on(new Error("Incorrect usage of height with value 'wrap_content'"),{level:"warn"}))),t&&(r.height=t);const o=I;"top"===o||"center"===o||"bottom"===o?r["valign-self"]=n(56,Wt=o):(r["valign-self"]=Wt,"parent"!==t&&pt.parentVAlign&&(r["parent-valign"]=pt.parentVAlign)),n(54,Et=e),n(53,Rt=Dn(r,Rt))}var e,tt;if(1073741824&t.$$.dirty[0]&&n(75,u=!!pt.overlapParent||void 0),1073741824&t.$$.dirty[0]|6291456&t.$$.dirty[2]&&n(74,d=pt.overlapParent&&(!F||"match_parent"===F.type)&&"match_parent"===(null==S?void 0:S.type)),1073741824&t.$$.dirty[0]&&n(73,h=pt.gridArea?"".concat(pt.gridArea.y+1,"/").concat(pt.gridArea.x+1,"/span ").concat(pt.gridArea.rowSpan,"/span ").concat(pt.gridArea.colSpan):void 0),67108864&t.$$.dirty[0]&&(n(17,f=bt.getDerivedFromVars(ct.alpha)),q(),q=yt(f,(t=>n(82,P=t)))),67108864&t.$$.dirty[1]|1048576&t.$$.dirty[2]&&(n(57,(tt=Ut,Ut=!kn(e=P)||void 0===e||e>1?tt:Number(e))),n(58,At=1===Ut?void 0:Ut)),67108864&t.$$.dirty[0]&&(n(16,p=bt.getDerivedFromVars(ct.accessibility)),U(),U=yt(p,(t=>n(81,D=t)))),1&t.$$.dirty[1]|524288&t.$$.dirty[2]&&(n(5,kt=void 0),D&&!gt&&D.description&&(n(5,kt={}),n(5,kt["aria-label"]=D.description,kt))),67108864&t.$$.dirty[0]&&(n(15,g=bt.getDerivedFromVars(ct.background)),W(),W=yt(g,(t=>n(4,V=t)))),20&t.$$.dirty[0]&&(n(59,jt={}),n(2,Vt=!1),V&&(n(2,Vt=V.some((t=>"image"===t.type))),!Vt))){const t=fn(V);n(59,jt["background-color"]=t.color,jt),n(59,jt["background-image"]=t.image,jt),n(59,jt["background-size"]=t.size,jt),n(59,jt["background-position"]=t.position,jt),n(59,jt["background-repeat"]="no-repeat",jt)}if(67108864&t.$$.dirty[0]&&(n(60,Kt=void 0),Ht&&ct.transition_in&&bt.isRunning("stateChange")&&n(60,Kt=!0)),67108864&t.$$.dirty[0]&&(n(62,Yt=void 0),Ht&&ct.transition_change&&bt.isRunning("stateChange")&&xt.hasTransitionChange(ct.id)&&n(62,Yt=!0)),67108864&t.$$.dirty[0]&&(n(14,m=bt.getDerivedFromVars(ct.action)),R(),R=yt(m,(t=>n(79,A=t)))),67108864&t.$$.dirty[0]&&(n(13,v=bt.getDerivedFromVars(ct.actions)),L(),L=yt(v,(t=>n(80,j=t)))),4&t.$$.dirty[1]|393216&t.$$.dirty[2]){let t=j||A&&[A]||[];Array.isArray(t)?t.length&&vt&&(t=[],bt.logError(on(new Error('Cannot use action on component "'.concat(vt,'"'))))):(t=[],bt.logError(on(new Error("Actions should be array")))),n(7,ne=t)}if(67108864&t.$$.dirty[0]&&(n(12,$=bt.getDerivedFromVars(ct.action_animation)),T(),T=yt($,(t=>n(78,E=t)))),65536&t.$$.dirty[2]&&E&&n(3,re=oe(E)),67108864&t.$$.dirty[0]&&(n(11,y=bt.getDerivedFromVars(ct.visibility)),B(),B=yt(y,(t=>n(77,k=t)))),32864&t.$$.dirty[2]){const t=se,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(k,se);t!==e&&(!le||"visible"!==se&&"visible"!==e?n(68,se=e):async function(t){n(68,se=t);const e="visible"===t?"in":"out",r="in"===e?ct.transition_in:ct.transition_out;Gt&&r&&(await be(),"in"===e&&n(61,Xt=!0),xt.runVisibilityTransition(Object.assign(Object.assign({},ct),{visibility:"visible"}),dt,r,wt,e).then((()=>{"in"===e&&n(61,Xt=!1)})).catch((t=>{throw"in"===e&&n(61,Xt=!1),t})))}(e)),le||n(67,le=!0)}if(1073741832&t.$$.dirty[0]|1615069184&t.$$.dirty[1]|12353&t.$$.dirty[2]&&n(10,_=Object.assign(Object.assign(Object.assign({},Ot),Rt),{"parent-overlap":u,"parent-overlap-absolute":d,"scroll-snap":pt.scrollSnap,"hide-on-transition-in":Kt||Xt||Yt,visibility:se,"has-action-animation":Boolean(re)})),67108864&t.$$.dirty[0]&&(n(9,b=bt.getDerivedFromVars(ct.transform)),O(),O=yt(b,(t=>n(76,w=t)))),16768&t.$$.dirty[2]&&w&&void 0!==w.rotation){const t=w.pivot_x||{type:"pivot-percentage",value:50};n(69,ce=Un(t.value,ce));const e="pivot-fixed"===t.type?cn(ce):"".concat(ce,"%"),r=w.pivot_y||{type:"pivot-percentage",value:50};n(70,ue=Un(r.value,ue));const o="pivot-fixed"===r.type?cn(ue):"".concat(ue,"%");n(71,ie="".concat(e," ").concat(o)),n(72,ae="rotate(".concat(w.rotation,"deg)"))}536870920&t.$$.dirty[0]|411764736&t.$$.dirty[1]|3614&t.$$.dirty[2]&&n(8,x=Object.assign(Object.assign(Object.assign(Object.assign({},ft),jt),Dt),{width:Ct,height:Et,"grid-area":h,padding:Mt,margin:Jt,opacity:At,transition:re,"transform-origin":ie,transform:ae,"--divkit-animation-opacity-start":Zt,"--divkit-animation-opacity-end":Qt,"--divkit-animation-scale-start":te,"--divkit-animation-scale-end":ee}))},[ht,Pt,Vt,re,V,kt,St,ne,x,b,_,y,$,v,m,g,p,f,c,s,l,a,i,o,r,function(t){wt=t,Ht&&ct.transition_in&&xt.registerChildWithTransitionIn(ct,dt,ct.transition_in,t).then((()=>{n(60,Kt=!1)})).catch((t=>{throw n(60,Kt=!1),t})),Ht&&ct.transition_out&&xt.registerChildWithTransitionOut(ct,dt,ct.transition_out,t),Ht&&ct.transition_change&&xt.registerChildWithTransitionChange(ct,dt,ct.transition_change,t).then((()=>{n(62,Yt=!1)})).catch((t=>{throw n(62,Yt=!1),t})),function(t,e){let{visibilityActions:n,rootCtx:r}=e;if(null==n||!n.length)return;const o=n.map((t=>({action:t,visible:!1,count:0,finished:!1}))),i=[...new Set([...n.map((t=>(t.visibility_percentage||50)/100))])];new IntersectionObserver((t=>{t.forEach((t=>{o.forEach((e=>{const n=t.intersectionRatio>=(e.action.visibility_percentage||50)/100;!e.visible&&n?e.finished||(e.timer=setTimeout((()=>{++e.count;const t=0===e.action.log_limit?1/0:e.action.log_limit||1;++e.count>=t&&(e.finished=!0);const n=e.action.url;if(n){const t=mn(n);t&&!$n(t)&&("div-action"===t?r.execAction(e.action):e.action.log_id&&r.execCustomAction(e.action))}r.logStat("visible",e.action)}),e.action.visibility_duration||800)):n||e.timer&&clearTimeout(e.timer),e.visible=n}))}))}),{threshold:i}).observe(t)}(t,{visibilityActions:bt.getJsonWithVars(ct.visibility_actions||ct.visibility_action&&[ct.visibility_action]),rootCtx:bt});const e=ct.id;e&&xt.registerChild(e);let r=null;return bn&&(r=bn(t,{json:ct,origJson:ut,rootCtx:bt,templateContext:dt})),{destroy(){e&&xt.unregisterChild(e),r&&r.destroy()}}},ct,ut,dt,ft,pt,gt,mt,vt,$t,_t,nt,rt,ot,it,at,lt,Dt,Ft,It,Nt,zt,Mt,Jt,Ot,Ct,Bt,Tt,Rt,Et,Lt,Wt,Ut,At,jt,Kt,Xt,Yt,Zt,Qt,te,ee,le,se,ce,ue,ie,ae,h,d,u,w,k,E,A,j,D,P,S,F,I,N,z,M,J,tt,et]}const Yn=class extends qe{constructor(t){super(),Ue(this,t,Xn,Kn,vt,{json:26,origJson:27,templateContext:28,cls:0,style:29,layoutParams:30,customDescription:31,customPaddings:32,customActions:33,forceWidth:34,forceHeight:35},null,[-1,-1,-1,-1])}},Zn={"text-range":"divkit-faf0","text-range_singleline":"divkit-ccb6","text-range__top-offset":"divkit-d923","text-range_decoration_both":"divkit-d7e0","text-range_decoration_underline":"divkit-f3dd","text-range_decoration_strike":"divkit-d27b","text-range_decoration_none":"divkit-c6b0"};function Qn(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function tr(t){return wn(t)&&t>0}function er(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function nr(t,e){return er(t)||e}function rr(t){let e,n;return{c(){e=Bt("span"),this.h()},l(t){e=Yt(t,"SPAN",{class:!0}),Gt(e).forEach(Jt),this.h()},h(){qt(e,"class",n=Zn["text-range__top-offset"]),ne(e,"margin-top",t[4],!1)},m(t,n){Mt(t,e,n)},p(t,n){16&n&&ne(e,"margin-top",t[4],!1)},d(t){t&&Jt(e)}}}function or(t){let e;return{c(){e=Rt(t[0])},l(n){e=Qt(n,t[0])},m(t,n){Mt(t,e,n)},p(t,n){1&n&&ee(e,t[0])},d(t){t&&Jt(e)}}}function ir(t){let e,n,r,o=t[4]&&rr(t);return n=new Mn({props:{cls:_n("text-range",Zn,t[3]),actions:t[1],style:sn(t[2]),$$slots:{default:[or]},$$scope:{ctx:t}}}),{c(){o&&o.c(),e=Wt(),Te(n.$$.fragment)},l(t){o&&o.l(t),e=Wt(),Re(n.$$.fragment,t)},m(t,i){o&&o.m(t,i),Mt(t,e,i),Le(n,t,i),r=!0},p(t,r){let[i]=r;t[4]?o?o.p(t,i):(o=rr(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const a={};8&i&&(a.cls=_n("text-range",Zn,t[3])),2&i&&(a.actions=t[1]),4&i&&(a.style=sn(t[2])),16385&i&&(a.$$scope={dirty:i,ctx:t}),n.$set(a)},i(t){r||(Fe(n.$$.fragment,t),r=!0)},o(t){Ie(n.$$.fragment,t),r=!1},d(t){o&&o.d(t),t&&Jt(e),We(n,t)}}}function ar(t,e,n){let r,o,i,a,{text:l}=e,{rootFontSize:s}=e,{textStyles:c={}}=e,{singleline:u=!1}=e,{actions:d}=e,h="none",f=12,p=1.25,g="",m="";return t.$$set=t=>{"text"in t&&n(0,l=t.text),"rootFontSize"in t&&n(5,s=t.rootFontSize),"textStyles"in t&&n(6,c=t.textStyles),"singleline"in t&&n(7,u=t.singleline),"actions"in t&&n(1,d=t.actions)},t.$$.update=()=>{if(64&t.$$.dirty){let t="none";(c.underline||c.strike)&&("single"===c.underline&&"single"===c.strike?t="both":"single"===c.underline?t="underline":"single"===c.strike&&(t="strike")),n(8,h=t)}576&t.$$.dirty&&n(9,f=Qn(c.font_size,f)),576&t.$$.dirty&&tr(c.line_height)&&n(10,p=Number(c.line_height)/f),64&t.$$.dirty&&kn(c.letter_spacing)&&n(11,g=cn(c.letter_spacing)),4160&t.$$.dirty&&n(12,a=nr(c.font_weight,a)),8256&t.$$.dirty&&n(13,m=C(c.text_color,1,m)),64&t.$$.dirty&&n(4,r=c.top_offset?cn(c.top_offset):""),384&t.$$.dirty&&n(3,o={singleline:u,decoration:h}),15904&t.$$.dirty&&n(2,i={"font-size":cn(10*f/s),"line-height":p,"letter-spacing":g,"font-weight":a,color:m})},[l,d,i,o,r,s,c,u,h,f,p,g,a,m]}const lr=class extends qe{constructor(t){super(),Ue(this,t,ar,ir,vt,{text:0,rootFontSize:5,textStyles:6,singleline:7,actions:1})}};function sr(t,e){return"left"===t||"center"===t||"right"===t?t:e}function cr(t,e){return"top"===t||"center"===t||"bottom"===t?t:e}const{Boolean:ur}=Me;function dr(t,e,n){const r=t.slice();return r[59]=e[n],r[61]=n,r}function hr(t){let e,n;return e=new Yn({props:{cls:_n("text",an,t[13])+" "+(t[6]?"":"divkit-c016"),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[yr]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};8256&n[0]&&(r.cls=_n("text",an,t[13])+" "+(t[6]?"":"divkit-c016")),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]),536878768&n[0]|1&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function fr(t){let e,n;return e=new lr({props:{text:t[4],rootFontSize:t[5],textStyles:t[29],singleline:t[7]}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),536870912&n[0]&&(r.textStyles=t[29]),128&n[0]&&(r.singleline=t[7]),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function pr(t){let e,n,r=t[10],o=[];for(let e=0;e<r.length;e+=1)o[e]=$r(dr(t,r,e));const i=t=>Ie(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Wt()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Wt()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);Mt(t,e,r),n=!0},p(t,n){if(1073743520&n[0]){let a;for(r=t[10],a=0;a<r.length;a+=1){const i=dr(t,r,a);o[a]?(o[a].p(i,n),Fe(o[a],1)):(o[a]=$r(i),o[a].c(),Fe(o[a],1),o[a].m(e.parentNode,e))}for(Pe(),a=r.length;a<o.length;a+=1)i(a);Se()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Fe(o[t]);n=!0}},o(t){o=o.filter(ur);for(let t=0;t<o.length;t+=1)Ie(o[t]);n=!1},d(t){Ot(o,t),t&&Jt(e)}}}function gr(t){let e,n,r,o,i,a,l,s;return{c(){e=Bt("span"),n=Bt("img"),this.h()},l(t){e=Yt(t,"SPAN",{style:!0});var r=Gt(e);n=Yt(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),r.forEach(Jt),this.h()},h(){qt(n,"class",r=an.text__image),mt(n.src,o=t[59].image.url)||qt(n,"src",o),qt(n,"loading","lazy"),qt(n,"decoding","async"),qt(n,"aria-hidden","true"),qt(n,"alt",""),qt(n,"style",i=sn({width:t[59].image.width,height:t[59].image.height,"margin-top":t[9]?"-".concat(t[59].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[59].image.height):void 0,filter:t[59].image.svgFilterId?"url(#".concat(t[59].image.svgFilterId,")"):void 0})),qt(e,"style",a=sn(t[59].image.wrapperStyle))},m(r,o){Mt(r,e,o),zt(e,n),l||(s=Ut(n,"error",t[30]),l=!0)},p(t,r){1024&r[0]&&!mt(n.src,o=t[59].image.url)&&qt(n,"src",o),1536&r[0]&&i!==(i=sn({width:t[59].image.width,height:t[59].image.height,"margin-top":t[9]?"-".concat(t[59].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[59].image.height):void 0,filter:t[59].image.svgFilterId?"url(#".concat(t[59].image.svgFilterId,")"):void 0}))&&qt(n,"style",i),1024&r[0]&&a!==(a=sn(t[59].image.wrapperStyle))&&qt(e,"style",a)},i:st,o:st,d(t){t&&Jt(e),l=!1,s()}}}function mr(t){let e,n,r=t[59].text&&vr(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){t[59].text?r?(r.p(t,n),1024&n[0]&&Fe(r,1)):(r=vr(t),r.c(),Fe(r,1),r.m(e.parentNode,e)):r&&(Pe(),Ie(r,1,1,(()=>{r=null})),Se())},i(t){n||(Fe(r),n=!0)},o(t){Ie(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function vr(t){let e,n;return e=new lr({props:{text:t[59].text,rootFontSize:t[5],textStyles:t[59].textStyles,singleline:t[7],actions:t[59].actions}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.text=t[59].text),32&n[0]&&(r.rootFontSize=t[5]),1024&n[0]&&(r.textStyles=t[59].textStyles),128&n[0]&&(r.singleline=t[7]),1024&n[0]&&(r.actions=t[59].actions),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function $r(t){let e,n,r,o;const i=[mr,gr],a=[];function l(t,e){return"text"in t[59]?0:t[59].image?1:-1}return~(e=l(t))&&(n=a[e]=i[e](t)),{c(){n&&n.c(),r=Wt()},l(t){n&&n.l(t),r=Wt()},m(t,n){~e&&a[e].m(t,n),Mt(t,r,n),o=!0},p(t,o){let s=e;e=l(t),e===s?~e&&a[e].p(t,o):(n&&(Pe(),Ie(a[s],1,1,(()=>{a[s]=null})),Se()),~e?(n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Fe(n,1),n.m(r.parentNode,r)):n=null)},i(t){o||(Fe(n),o=!0)},o(t){Ie(n),o=!1},d(t){~e&&a[e].d(t),t&&Jt(r)}}}function yr(t){let e,n,r,o,i,a;const l=[pr,fr],s=[];function c(t,e){return t[10].length?0:1}return n=c(t),r=s[n]=l[n](t),{c(){e=Bt("span"),r.c(),this.h()},l(t){e=Yt(t,"SPAN",{class:!0,style:!0});var n=Gt(e);r.l(n),n.forEach(Jt),this.h()},h(){qt(e,"class",o=_n("text__inner",an,t[12])),qt(e,"style",i=sn(t[11]))},m(t,r){Mt(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):(Pe(),Ie(s[d],1,1,(()=>{s[d]=null})),Se(),r=s[n],r?r.p(t,u):(r=s[n]=l[n](t),r.c()),Fe(r,1),r.m(e,null)),(!a||4096&u[0]&&o!==(o=_n("text__inner",an,t[12])))&&qt(e,"class",o),(!a||2048&u[0]&&i!==(i=sn(t[11])))&&qt(e,"style",i)},i(t){a||(Fe(r),a=!0)},o(t){Ie(r),a=!1},d(t){t&&Jt(e),s[n].d()}}}function _r(t){let e,n,r=!t[8]&&hr(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){t[8]?r&&(Pe(),Ie(r,1,1,(()=>{r=null})),Se()):r?(r.p(t,n),256&n[0]&&Fe(r,1)):(r=hr(t),r.c(),Fe(r,1),r.m(e.parentNode,e))},i(t){n||(Fe(r),n=!0)},o(t){Ie(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function br(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,E,A,j,V,D,P,S,F,I,N,z,M,J,O,B,T=st,R=st,L=st,W=st,U=st,q=st,H=st,G=st,K=st,X=st,Y=st,Z=st,Q=st,tt=st,et=st;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),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()));let{json:nt={}}=e,{templateContext:rt}=e,{origJson:ot}=e,{layoutParams:it}=e;const at=he(rn);let lt=!1,ct="",ut=12,dt=1.25,ht=!1,ft="",pt="",gt=!1,mt="left",vt="top",$t="",_t="",bt=!1,xt=[],wt=[];return ue((()=>{wt.forEach((t=>{at.removeSvgFilter(t)}))})),t.$$set=t=>{"json"in t&&n(0,nt=t.json),"templateContext"in t&&n(1,rt=t.templateContext),"origJson"in t&&n(2,ot=t.origJson),"layoutParams"in t&&n(3,it=t.layoutParams)},t.$$.update=()=>{var e,rt;if(1&t.$$.dirty[0]&&(n(28,r=at.getDerivedFromVars(nt.text)),et(),et=yt(r,(t=>n(55,B=t)))),16&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&(n(4,(e=B,rt=ct,ct=String(null!=e?e:"")||rt)),ct?n(8,lt=!1):(n(8,lt=!0),at.logError(on(new Error('Missing "text" prop for div "text"'))))),1&t.$$.dirty[0]&&(n(27,o=at.getDerivedFromVars(nt.ranges)),W(),W=yt(o,(t=>n(45,V=t)))),1&t.$$.dirty[0]&&(n(26,i=at.getDerivedFromVars(nt.images)),L(),L=yt(i,(t=>n(44,j=t)))),1&t.$$.dirty[0]&&(n(25,a=at.getDerivedFromVars({font_size:nt.font_size,letter_spacing:nt.letter_spacing,font_weight:nt.font_weight,text_color:nt.text_color,underline:nt.underline,strike:nt.strike,line_height:nt.line_height})),U(),U=yt(a,(t=>n(29,D=t)))),1&t.$$.dirty[0]&&(n(24,l=at.getDerivedFromVars(nt.font_size)),tt(),tt=yt(l,(t=>n(54,O=t)))),32&t.$$.dirty[0]|8388608&t.$$.dirty[1]&&n(5,ut=Qn(O,ut)),1&t.$$.dirty[0]&&(n(23,s=at.getDerivedFromVars(nt.line_height)),Q(),Q=yt(s,(t=>n(53,J=t)))),32&t.$$.dirty[0]|4194304&t.$$.dirty[1]){const t=J;tr(t)?(n(31,dt=Number(t)/ut),n(9,ht=!0)):n(9,ht=!1)}if(1&t.$$.dirty[0]&&(n(22,c=at.getDerivedFromVars(nt.max_lines)),X(),X=yt(c,(t=>n(50,N=t)))),524288&t.$$.dirty[1]&&n(7,u=1===N),548865&t.$$.dirty[1]){let t="",e="",r=!1;if(N&&N>1){let n=Number(N);t=n*dt+"em",V||j||(e=n,r=!0)}n(32,ft=t),n(33,pt=e),n(34,gt=r)}if(1&t.$$.dirty[0]&&(n(21,d=at.getDerivedFromVars(nt.text_alignment_horizontal)),Z(),Z=yt(d,(t=>n(52,M=t)))),2097168&t.$$.dirty[1]&&n(35,mt=sr(M,mt)),1&t.$$.dirty[0]&&(n(20,h=at.getDerivedFromVars(nt.text_alignment_vertical)),Y(),Y=yt(h,(t=>n(51,z=t)))),1048608&t.$$.dirty[1]&&n(36,vt=cr(z,vt)),16&t.$$.dirty[0]|16384&t.$$.dirty[1]&&n(41,f=!V||ct&&1===V.length&&V[0]&&0===V[0].start&&"number"==typeof V[0].end&&V[0].end>=ct.length),1&t.$$.dirty[0]&&(n(19,p=at.getDerivedFromVars(nt.text_color)),K(),K=yt(p,(t=>n(49,I=t)))),278528&t.$$.dirty[1]&&n(40,g=Boolean(I)!==Boolean(V&&V[0]&&V[0].text_color)),804416&t.$$.dirty[1]){let t="";N&&f&&g&&(t=C(I||V&&V[0]&&V[0].text_color,1,$t)),n(37,$t=t)}if(1&t.$$.dirty[0]&&(n(18,m=at.getDerivedFromVars(nt.truncate)),G(),G=yt(m,(t=>n(48,F=t)))),131072&t.$$.dirty[1]&&n(39,v="none"===F?"none":""),1&t.$$.dirty[0]&&(n(17,$=at.getDerivedFromVars(nt.text_gradient)),H(),H=yt($,(t=>n(47,S=t)))),65536&t.$$.dirty[1]){let t="";if(S){const e=fn([S]);e.image&&(t=e.image)}n(38,_t=t)}1&t.$$.dirty[0]&&(n(16,y=at.getDerivedFromVars(nt.selectable)),q(),q=yt(y,(t=>n(46,P=t)))),64&t.$$.dirty[0]|32768&t.$$.dirty[1]&&n(6,bt=function(t,e){return 1===t||0===t?Boolean(t):e}(P,bt)),1&t.$$.dirty[0]&&(n(15,_=at.getDerivedFromVars(nt.width)),R(),R=yt(_,(t=>n(43,A=t)))),1&t.$$.dirty[0]&&(n(14,b=at.getDerivedFromVars(nt.height)),T(),T=yt(b,(t=>n(42,E=t)))),16&t.$$.dirty[0]|24576&t.$$.dirty[1]&&function(t,e,r){let o=[];if(wt.forEach((t=>{at.removeSvgFilter(t)})),wt=[],!(Array.isArray(e)&&e.length||Array.isArray(r)&&r.length&&t))return void n(10,xt=[]);const i=t;let a=e||[{start:0,end:i.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<=i.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({},D),...c);o.push({text:i.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({},D),...c),n=cn(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=cn(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const i={"font-size":cn(10*(Number(e.font_size)||12)/ut)};let a="";if(t.image.tint_color){const e=C(t.image.tint_color);a=at.addSvgFilter(e),wt.push(e)}o.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:i,svgFilterId:a}})}s=r})),s<i.length&&o.push({text:i.substring(s),textStyles:Object.assign({},D)}),n(10,xt=o)}(ct,V,j),128&t.$$.dirty[0]|6456&t.$$.dirty[1]&&n(13,x={singleline:u,multiline:gt,halign:mt,valign:vt,truncate:v,width:"wrap_content"!==(null==A?void 0:A.type)||A.constrained?"":"content",height:!E||"wrap_content"===E.type&&!E.constrained?"content":""}),128&t.$$.dirty[1]&&n(12,w={gradient:Boolean(_t)}),32&t.$$.dirty[0]|199&t.$$.dirty[1]&&n(11,k={"font-size":cn(ut),"line-height":dt,"max-height":ft,"-webkit-line-clamp":pt,color:$t,"background-image":_t})},[nt,rt,ot,it,ct,ut,bt,u,lt,ht,xt,k,w,x,b,_,y,$,m,p,h,d,c,s,l,a,i,o,r,D,function(t){t.target&&"classList"in t.target&&t.target.classList.add(an.text__image_hidden)},dt,ft,pt,gt,mt,vt,$t,_t,v,g,f,E,A,j,V,P,S,F,I,N,z,M,J,O,B]}const xr={container:"divkit-d37d",container_orientation_vertical:"divkit-ddc3",container_valign_top:"divkit-a331",container_valign_center:"divkit-aae6",container_valign_bottom:"divkit-c222",container_halign_left:"divkit-a309",container_halign_center:"divkit-bac9",container_halign_right:"divkit-f423",container_orientation_horizontal:"divkit-fe45",container_orientation_overlap:"divkit-a644"};function wr(t,e,n){const r=t.slice();return r[28]=e[n],r}function kr(t){let e,n;return e=new Yn({props:{cls:_n("container",xr,t[9]),json:t[0],origJson:t[2],templateContext:t[1],style:t[6],layoutParams:t[3],$$slots:{default:[Er]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.cls=_n("container",xr,t[9])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),64&n[0]&&(r.style=t[6]),8&n[0]&&(r.layoutParams=t[3]),160&n[0]|1&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function Cr(t){let e,n;return e=new Ri({props:{layoutParams:t[5],div:t[28].json,templateContext:t[28].templateContext,origJson:t[28].origJson}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.layoutParams=t[5]),128&n[0]&&(r.div=t[28].json),128&n[0]&&(r.templateContext=t[28].templateContext),128&n[0]&&(r.origJson=t[28].origJson),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function Er(t){let e,n,r=t[7],o=[];for(let e=0;e<r.length;e+=1)o[e]=Cr(wr(t,r,e));const i=t=>Ie(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Wt()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Wt()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);Mt(t,e,r),n=!0},p(t,n){if(160&n[0]){let a;for(r=t[7],a=0;a<r.length;a+=1){const i=wr(t,r,a);o[a]?(o[a].p(i,n),Fe(o[a],1)):(o[a]=Cr(i),o[a].c(),Fe(o[a],1),o[a].m(e.parentNode,e))}for(Pe(),a=r.length;a<o.length;a+=1)i(a);Se()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Fe(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Ie(o[t]);n=!1},d(t){Ot(o,t),t&&Jt(e)}}}function Ar(t){let e,n,r=!t[4]&&kr(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){t[4]?r&&(Pe(),Ie(r,1,1,(()=>{r=null})),Se()):r?(r.p(t,n),16&n[0]&&Fe(r,1)):(r=kr(t),r.c(),Fe(r,1),r.m(e.parentNode,e))},i(t){n||(Fe(r),n=!0)},o(t){Ie(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function jr(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v=st,$=st,y=st,_=st,b=st,x=st;t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>x()));let{json:w={}}=e,{templateContext:k}=e,{origJson:C}=e,{layoutParams:E}=e;const A={left:"start",center:"center",right:"end"},j={top:"start",center:"center",bottom:"end"},V=he(rn);let D,P=!1,S="vertical",F="top",I="left",N={},z={};return t.$$set=t=>{"json"in t&&n(0,w=t.json),"templateContext"in t&&n(1,k=t.templateContext),"origJson"in t&&n(2,C=t.origJson),"layoutParams"in t&&n(3,E=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(18,r=w.items),262144&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,P=!1):(n(4,P=!0),V.logError(on(new Error('Incorrect or empty "items" prop for div "container"'))))),262162&t.$$.dirty[0]&&n(7,o=(!P&&r||[]).map((t=>{let e=t,n=k;return({templateContext:n,json:e}=V.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(14,i=V.getDerivedFromVars(w.orientation)),x(),x=yt(i,(t=>n(24,m=t)))),16809984&t.$$.dirty[0]&&n(15,S=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(m,S)),1&t.$$.dirty[0]&&(n(13,a=V.getDerivedFromVars(w.content_alignment_vertical)),b(),b=yt(a,(t=>n(23,g=t)))),8454144&t.$$.dirty[0]&&n(16,F=cr(g,F)),1&t.$$.dirty[0]&&(n(12,l=V.getDerivedFromVars(w.content_alignment_horizontal)),_(),_=yt(l,(t=>n(22,p=t)))),4325376&t.$$.dirty[0]&&n(17,I=sr(p,I)),1&t.$$.dirty[0]&&(n(11,s=V.getDerivedFromVars(w.width)),$(),$=yt(s,(t=>n(20,h=t)))),1&t.$$.dirty[0]&&(n(10,c=V.getDerivedFromVars(w.height)),y(),y=yt(c,(t=>n(21,f=t)))),3375136&t.$$.dirty[0]){let t={};"overlap"===S&&(t.overlapParent=!0),"horizontal"!==S&&(t.parentHAlign=A[I],"wrap_content"!==(null==f?void 0:f.type)&&f||(t.parentVerticalWrapContent=!0)),"vertical"!==S&&(t.parentVAlign=j[F],"wrap_content"===(null==h?void 0:h.type)&&(t.parentHorizontalWrapContent=!0)),"horizontal"===S&&(t.parentLayoutOrientation="horizontal"),"vertical"===S&&(t.parentLayoutOrientation="vertical"),n(5,N=Dn(t,N))}if(32896&t.$$.dirty[0]){let t=[];if("overlap"!==S){const e="vertical"===S?"height":"width";o.forEach((n=>{const r=V.getDerivedFromVars(n.json[e]);t.push(r)}))}n(8,D=Ke(t,(t=>t))),v(),v=yt(D,(t=>n(19,d=t)))}if(3702848&t.$$.dirty[0]){let t={};if("overlap"!==S){const e="vertical"===S?"height":"width",n="vertical"===S?"wrap_content"===(null==f?void 0:f.type)||!f:"wrap_content"===(null==h?void 0:h.type);let r=d.map((t=>!t&&"width"===e||"match_parent"===(null==t?void 0:t.type)?n?(V.logError(on(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"})),"minmax(0, auto)"):(Number(null==t?void 0:t.weight)||1)+"fr":t&&"wrap_content"===t.type&&t.constrained?"minmax(0, auto)":"auto")).join(" ");t["vertical"===S?"grid-template-rows":"grid-template-columns"]=r}n(6,z=Dn(t,z))}229376&t.$$.dirty[0]&&n(9,u={orientation:S,valign:F,halign:I})},[w,k,C,E,P,N,z,o,D,u,c,s,l,a,i,S,F,I,r,d,h,f,p,g,m]}const Vr={separator:"divkit-a30b",separator_orientation_horizontal:"divkit-f529",separator_orientation_vertical:"divkit-e9e2",separator__inner:"divkit-db7d"};function Dr(t,e){return"vertical"===t||"horizontal"===t?t:e}function Pr(t){let e,n,r;return{c(){e=Bt("span"),this.h()},l(t){e=Yt(t,"SPAN",{class:!0,style:!0}),Gt(e).forEach(Jt),this.h()},h(){qt(e,"class",n=Vr.separator__inner),qt(e,"style",r=sn(t[5]))},m(t,n){Mt(t,e,n)},p(t,n){32&n&&r!==(r=sn(t[5]))&&qt(e,"style",r)},d(t){t&&Jt(e)}}}function Sr(t){let e,n=t[6]&&Pr(t);return{c(){n&&n.c(),e=Wt()},l(t){n&&n.l(t),e=Wt()},m(t,r){n&&n.m(t,r),Mt(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=Pr(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&Jt(e)}}}function Fr(t){let e,n;return e=new Yn({props:{cls:_n("separator",Vr,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Sr]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){let[r]=n;const o={};16&r&&(o.cls=_n("separator",Vr,t[4])),1&r&&(o.json=t[0]),4&r&&(o.origJson=t[2]),2&r&&(o.templateContext=t[1]),8&r&&(o.layoutParams=t[3]),16480&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function Ir(t,e,n){let r,o,i,a,l,s,c,u=st;t.$$.on_destroy.push((()=>u()));let{json:d={}}=e,{templateContext:h}=e,{origJson:f}=e,{layoutParams:p}=e;const g=he(rn);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=yt(r,(t=>n(12,c=t)))),4352&t.$$.dirty&&n(8,m=Dr(null==c?void 0:c.orientation,m)),4096&t.$$.dirty&&n(6,o=!((null==c?void 0:c.color)&&("transparent"===c.color||9===c.color.length&&0===c.color.indexOf("#00")))),4608&t.$$.dirty&&n(9,v=C(null==c?void 0:c.color,1,v)),256&t.$$.dirty&&n(11,i="horizontal"===m?"100%":cn(1)),256&t.$$.dirty&&n(10,a="horizontal"===m?cn(1):"100%"),3584&t.$$.dirty&&n(5,l={background:v,width:i,height:a}),256&t.$$.dirty&&n(4,s={orientation:m})},[d,h,f,p,s,l,o,r,m,v,a,i,c]}const Nr={image:"divkit-a448","image_is-width-content":"divkit-fe14","image_is-height-content":"divkit-f4d9",image__image:"divkit-ce04",image_error:"divkit-f10d","image__aspect-wrapper":"divkit-dc80",image_aspect:"divkit-ae78"};function zr(t){let e,n;return e=new Yn({props:{cls:_n("image",Nr,t[10]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customDescription:!0,$$slots:{default:[Or]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=_n("image",Nr,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]),9968&n[0]|262144&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function Mr(t){let e,n,r,o,i,a,l;return{c(){e=Bt("img"),this.h()},l(t){e=Yt(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){qt(e,"class",n=Nr.image__image),mt(e.src,r=t[4]?Tr:t[7])||qt(e,"src",r),qt(e,"loading","lazy"),qt(e,"decoding","async"),qt(e,"style",o=sn(t[6])),qt(e,"alt",t[13]),qt(e,"aria-hidden",i=t[13]?null:"true")},m(n,r){Mt(n,e,r),a||(l=[Ut(e,"load",t[23]),Ut(e,"error",t[24])],a=!0)},p(t,n){144&n[0]&&!mt(e.src,r=t[4]?Tr:t[7])&&qt(e,"src",r),64&n[0]&&o!==(o=sn(t[6]))&&qt(e,"style",o),8192&n[0]&&qt(e,"alt",t[13]),8192&n[0]&&i!==(i=t[13]?null:"true")&&qt(e,"aria-hidden",i)},d(t){t&&Jt(e),a=!1,ft(l)}}}function Jr(t){let e,n,r,o,i,a,l,s,c="".concat(t[5],"%");return{c(){e=Bt("span"),n=Bt("img"),this.h()},l(t){e=Yt(t,"SPAN",{class:!0});var r=Gt(e);n=Yt(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(Jt),this.h()},h(){qt(n,"class",r=Nr.image__image),mt(n.src,o=t[4]?Tr:t[7])||qt(n,"src",o),qt(n,"loading","lazy"),qt(n,"decoding","async"),qt(n,"style",t[9]),qt(n,"alt",t[13]),qt(n,"aria-hidden",i=t[13]?null:"true"),qt(e,"class",a=Nr["image__aspect-wrapper"]),ne(e,"padding-bottom",c,!1)},m(r,o){Mt(r,e,o),zt(e,n),l||(s=[Ut(n,"load",t[23]),Ut(n,"error",t[24])],l=!0)},p(t,r){144&r[0]&&!mt(n.src,o=t[4]?Tr:t[7])&&qt(n,"src",o),512&r[0]&&qt(n,"style",t[9]),8192&r[0]&&qt(n,"alt",t[13]),8192&r[0]&&i!==(i=t[13]?null:"true")&&qt(n,"aria-hidden",i),32&r[0]&&c!==(c="".concat(t[5],"%"))&&ne(e,"padding-bottom",c,!1)},d(t){t&&Jt(e),l=!1,ft(s)}}}function Or(t){let e;function n(t,e){return t[10].aspect?Jr:Mr}let r=n(t),o=r(t);return{c(){o.c(),e=Wt()},l(t){o.l(t),e=Wt()},m(t,n){o.m(t,n),Mt(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){o.d(t),t&&Jt(e)}}}function Br(t){let e,n,r=!t[8]&&zr(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){t[8]?r&&(Pe(),Ie(r,1,1,(()=>{r=null})),Se()):r?(r.p(t,n),256&n[0]&&Fe(r,1)):(r=zr(t),r.c(),Fe(r,1),r.m(e.parentNode,e))},i(t){n||(Fe(r),n=!0)},o(t){Ie(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}const Tr="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";function Rr(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,E,A,j,V,D,P,S,F=st,I=st,N=st,z=st,M=st,J=st,O=st,B=st,T=st,R=st,L=st;t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L()));let{json:W={}}=e,{templateContext:U}=e,{origJson:q}=e,{layoutParams:H}=e;const G=he(rn);let K=!1,X=!0,Y="rgba(0,0,0,0.08)",Z=!1,Q="",tt="none",et="50% 50%";let nt,rt="0",ot="";return ue((()=>{G.removeSvgFilter(nt)})),t.$$set=t=>{"json"in t&&n(0,W=t.json),"templateContext"in t&&n(1,U=t.templateContext),"origJson"in t&&n(2,q=t.origJson),"layoutParams"in t&&n(3,H=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(22,r=G.getDerivedFromVars(W.image_url)),L(),L=yt(r,(t=>n(44,S=t)))),1&t.$$.dirty[0]&&(n(21,o=G.getDerivedFromVars(W.gif_url)),R(),R=yt(o,(t=>n(43,P=t)))),12288&t.$$.dirty[1]&&n(7,i=S||P),128&t.$$.dirty[0]&&(n(25,X=!0),n(4,K=!1)),128&t.$$.dirty[0]&&(i?n(8,Z=!1):(n(8,Z=!0),G.logError(on(new Error('Missing "image_url" for "image"'))))),1&t.$$.dirty[0]&&(n(20,a=G.getDerivedFromVars(W.width)),T(),T=yt(a,(t=>n(42,D=t)))),2048&t.$$.dirty[1]&&n(33,l="wrap_content"===(null==D?void 0:D.type)),1&t.$$.dirty[0]&&(n(19,s=G.getDerivedFromVars(W.height)),B(),B=yt(s,(t=>n(41,V=t)))),1024&t.$$.dirty[1]&&n(32,c="wrap_content"===(null==V?void 0:V.type)),1&t.$$.dirty[0]&&(n(18,u=G.getDerivedFromVars(W.preview)),O(),O=yt(u,(t=>n(40,j=t)))),33554448&t.$$.dirty[0]|512&t.$$.dirty[1]){const t=j;(X||K)&&t?t.startsWith("data:")?n(27,Q='url("'.concat(dn(t),'")')):n(27,Q='url("data:image/jpg;base64,'.concat(dn(t),'")')):n(27,Q="")}if(1&t.$$.dirty[0]&&(n(17,d=G.getDerivedFromVars(W.placeholder_color)),J(),J=yt(d,(t=>n(39,A=t)))),33554448&t.$$.dirty[0]|256&t.$$.dirty[1]&&function(t,e,r){n(26,Y=t||e?C(r,1,Y):"")}(X,K,A),1&t.$$.dirty[0]&&(n(16,h=G.getDerivedFromVars(W.scale)),M(),M=yt(h,(t=>n(38,E=t)))),268435456&t.$$.dirty[0]|128&t.$$.dirty[1]&&n(28,tt=pn(E)||tt),1&t.$$.dirty[0]&&(n(15,f=G.getDerivedFromVars({content_alignment_horizontal:W.content_alignment_horizontal,content_alignment_vertical:W.content_alignment_vertical})),z(),z=yt(f,(t=>n(37,k=t)))),64&t.$$.dirty[1]&&n(29,et=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:gn(t)}(k,et)),1&t.$$.dirty[0]&&(n(14,p=G.getDerivedFromVars(W.accessibility)),N(),N=yt(p,(t=>n(36,w=t)))),32&t.$$.dirty[1]&&n(13,g=(null==w?void 0:w.description)||""),1&t.$$.dirty[0]&&(n(12,m=G.getDerivedFromVars(W.aspect)),I(),I=yt(m,(t=>n(35,x=t)))),16&t.$$.dirty[1]){const t=null==x?void 0:x.ratio;t&&tr(t)?n(5,rt=(100/Number(t)).toFixed(2)):n(5,rt="0")}if(1&t.$$.dirty[0]&&(n(11,v=G.getDerivedFromVars(W.tint_color)),F(),F=yt(v,(t=>n(34,b=t)))),1073741824&t.$$.dirty[0]|8&t.$$.dirty[1]){const t=b,e=t?C(t):void 0;e!==nt&&(G.removeSvgFilter(nt),n(31,ot=e?G.addSvgFilter(e):""),n(30,nt=e))}32&t.$$.dirty[0]|6&t.$$.dirty[1]&&n(10,$={aspect:"0"!==rt,"is-width-content":l,"is-height-content":c}),1040187408&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(6,y={"background-image":Q,"background-color":Y,"object-fit":tt,"object-position":et,filter:X||K||!ot?"":"url(#".concat(ot,")")}),64&t.$$.dirty[0]&&n(9,_=sn(y))},[W,U,q,H,K,rt,y,i,Z,_,$,v,m,g,p,f,h,d,u,s,a,o,r,function(){n(25,X=!1)},function(){n(4,K=!0)},X,Y,Q,tt,et,nt,ot,c,l,b,x,w,k,E,A,j,V,D,P,S]}const Lr=class extends qe{constructor(t){super(),Ue(this,t,Rr,Br,vt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Wr={grid:"divkit-d908",grid_halign_left:"divkit-f63b",grid_halign_center:"divkit-a14a",grid_halign_right:"divkit-b071",grid_valign_top:"divkit-fbca",grid_valign_center:"divkit-d431",grid_valign_bottom:"divkit-e420"};function Ur(t){return t>0&&t<1}function qr(t){return String(Math.ceil(1e3*t)/1e3)}function Hr(t,e,n){if(t.some(Ur)){const e=Math.max(...t.filter(Ur).map((t=>1/t)));t=t.map((t=>t*e))}let r=0,o=0;const i=[];if(t.every(Boolean)){o=t.reduce(((t,e)=>t+e),0);for(let i=0;i<n;++i){if(!e[i])continue;const n=e[i]/t[i]*o;n>r&&(r=n)}}for(let e=0;e<n;++e)r?i[e]="minmax(".concat(cn(r*t[e]/o),",").concat(qr(t[e]),"fr)"):t[e]?i[e]="".concat(qr(t[e]),"fr"):i[e]="auto";return i.join(" ")}function Gr(t,e,n){const r=t.slice();return r[29]=e[n],r}function Kr(t){let e,n;return e=new Yn({props:{cls:_n("grid",Wr,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],$$slots:{default:[Yr]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=_n("grid",Wr,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||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function Xr(t){let e,n;return e=new Ri({props:{layoutParams:t[29].layoutParams,div:t[29].json,templateContext:t[29].templateContext,origJson:t[29].origJson}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(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||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function Yr(t){let e,n,r=t[5],o=[];for(let e=0;e<r.length;e+=1)o[e]=Xr(Gr(t,r,e));const i=t=>Ie(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Wt()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Wt()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);Mt(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 i=Gr(t,r,a);o[a]?(o[a].p(i,n),Fe(o[a],1)):(o[a]=Xr(i),o[a].c(),Fe(o[a],1),o[a].m(e.parentNode,e))}for(Pe(),a=r.length;a<o.length;a+=1)i(a);Se()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Fe(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Ie(o[t]);n=!1},d(t){Ot(o,t),t&&Jt(e)}}}function Zr(t){let e,n,r=!t[6]&&Kr(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){t[6]?r&&(Pe(),Ie(r,1,1,(()=>{r=null})),Se()):r?(r.p(t,n),64&n[0]&&Fe(r,1)):(r=Kr(t),r.c(),Fe(r,1),r.m(e.parentNode,e))},i(t){n||(Fe(r),n=!0)},o(t){Ie(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function Qr(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g=st,m=st,v=st,$=st;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>$()));let{json:y={}}=e,{templateContext:_}=e,{origJson:b}=e,{layoutParams:x}=e;const w=he(rn);let k,C,E=!1,A=1,j=[],V=[],D=[],P=[],S=0,F=!1,I="top",N="left";return t.$$set=t=>{"json"in t&&n(0,y=t.json),"templateContext"in t&&n(1,_=t.templateContext),"origJson"in t&&n(2,b=t.origJson),"layoutParams"in t&&n(3,x=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(23,r=y.items),8388608&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(12,E=!1):(n(12,E=!0),w.logError(on(new Error('Incorrect or empty "items" prop for div "grid"'))))),1&t.$$.dirty[0]&&(n(11,o=w.getDerivedFromVars(y.column_count)),$(),$=yt(o,(t=>n(27,p=t)))),134225920&t.$$.dirty[0]&&n(13,A=Qn(p,A)),8392706&t.$$.dirty[0]&&n(22,i=(!E&&r||[]).map((t=>{let e=t,n=_;return({templateContext:n,json:e}=w.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4194304&t.$$.dirty[0]){let t=[];i.forEach((e=>{t.push(w.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),n(4,k=Ke(t,(t=>t))),v(),v=yt(k,(t=>n(26,f=t)))}if(72081408&t.$$.dirty[0]){const t={};let e=0,r=0;n(14,j=[]),n(15,V=[]),n(16,D=[]),n(17,P=[]),n(19,F=!1),n(5,C=i.map(((o,i)=>{var a,l,s,c;const u=f[i],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,$=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 o=e;o<e+d;++o)for(let e=r;e<r+h;++e)t[o+"_"+e]?n(19,F=!0):(t[o+"_"+e]=!0,(!j[o]||j[o]<g)&&n(14,j[o]=g,j),(!V[e]||V[e]<m)&&n(15,V[e]=m,V),(!D[o]||D[o]<v)&&n(16,D[o]=v,D),(!P[e]||P[e]<$)&&n(17,P[e]=$,P));do{++e,e>=A&&(e=0,++r)}while(t[e+"_"+r]);return Object.assign(Object.assign({},o),{layoutParams:{gridArea:p}})}))),0!==e&&n(19,F=!0),F&&w.logError(on(new Error('Mismatching "grid" rows/columns'))),n(18,S=r)}1&t.$$.dirty[0]&&(n(10,a=w.getDerivedFromVars(y.content_alignment_vertical)),m(),m=yt(a,(t=>n(25,h=t)))),34603008&t.$$.dirty[0]&&n(20,I=cr(h,I)),1&t.$$.dirty[0]&&(n(9,l=w.getDerivedFromVars(y.content_alignment_horizontal)),g(),g=yt(l,(t=>n(24,d=t)))),18874368&t.$$.dirty[0]&&n(21,N=sr(d,N)),3145728&t.$$.dirty[0]&&n(8,s={valign:I,halign:N}),516096&t.$$.dirty[0]&&n(7,c={"grid-template-columns":Hr(j,D,A),"grid-template-rows":Hr(V,P,S)}),528384&t.$$.dirty[0]&&n(6,u=E||F)},[y,_,b,x,k,C,u,c,s,l,a,o,E,A,j,V,D,P,S,F,I,N,i,r,d,h,f,p]}const to={gallery:"divkit-cbb0",gallery_orientation_horizontal:"divkit-c9be",gallery_orientation_vertical:"divkit-a72d",gallery__scroller:"divkit-a4e3","gallery_scroll-snap":"divkit-f606","gallery__items-grid":"divkit-eb4a",gallery__items:"divkit-af27",gallery__arrow:"divkit-b72d","gallery__arrow-icon":"divkit-d100",gallery__arrow_left:"divkit-a0a5",gallery__arrow_right:"divkit-f0f5","gallery__arrow-icon-path":"divkit-b417"};function eo(t){const e=[];let n=t[0],r=1;for(let o=1;o<=t.length;o++)t[o]!==n?(e.push(r>1?"repeat(".concat(r,", ").concat(n,")"):n),n=t[o],r=1):r++;return e.join(" ")}const{Boolean:no}=Me;function ro(t,e,n){const r=t.slice();return r[57]=e[n],r[58]=e,r[59]=n,r}function oo(t,e,n){const r=t.slice();return r[60]=e[n],r}function io(t){let e,n;return e=new Yn({props:{cls:_n("gallery",to,t[14]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",forceHeight:"vertical"===t[5],forceWidth:"horizontal"===t[5],$$slots:{default:[ho]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};16384&n[0]&&(r.cls=_n("gallery",to,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]),32&n[0]&&(r.forceHeight="vertical"===t[5]),32&n[0]&&(r.forceWidth="horizontal"===t[5]),4296672&n[0]|2&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function ao(t){let e,n;return e=new Ri({props:{layoutParams:t[7],div:t[60].json,templateContext:t[60].templateContext,origJson:t[60].origJson}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.layoutParams=t[7]),4194304&n[0]&&(r.div=t[60].json),4194304&n[0]&&(r.templateContext=t[60].templateContext),4194304&n[0]&&(r.origJson=t[60].origJson),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function lo(t){let e,n,r,o,i,a=t[59],l=t[57],s=[];for(let e=0;e<l.length;e+=1)s[e]=ao(oo(t,l,e));const c=t=>Ie(s[t],1,1,(()=>{s[t]=null})),u=()=>t[45](e,a),d=()=>t[45](null,a);return{c(){e=Bt("div");for(let t=0;t<s.length;t+=1)s[t].c();n=Lt(),this.h()},l(t){e=Yt(t,"DIV",{class:!0,style:!0});var r=Gt(e);for(let t=0;t<s.length;t+=1)s[t].l(r);n=te(r),r.forEach(Jt),this.h()},h(){qt(e,"class",r=to.gallery__items),qt(e,"style",o=sn(t[15]))},m(t,r){Mt(t,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);zt(e,n),u(),i=!0},p(r,h){if(t=r,4194432&h[0]){let r;for(l=t[57],r=0;r<l.length;r+=1){const o=oo(t,l,r);s[r]?(s[r].p(o,h),Fe(s[r],1)):(s[r]=ao(o),s[r].c(),Fe(s[r],1),s[r].m(e,n))}for(Pe(),r=l.length;r<s.length;r+=1)c(r);Se()}(!i||32768&h[0]&&o!==(o=sn(t[15])))&&qt(e,"style",o),a!==t[59]&&(d(),a=t[59],u())},i(t){if(!i){for(let t=0;t<l.length;t+=1)Fe(s[t]);i=!0}},o(t){s=s.filter(no);for(let t=0;t<s.length;t+=1)Ie(s[t]);i=!1},d(t){t&&Jt(e),Ot(s,t),d()}}}function so(t){let e,n,r=t[10]&&co(t),o=t[11]&&uo(t);return{c(){r&&r.c(),e=Lt(),o&&o.c(),n=Wt()},l(t){r&&r.l(t),e=te(t),o&&o.l(t),n=Wt()},m(t,i){r&&r.m(t,i),Mt(t,e,i),o&&o.m(t,i),Mt(t,n,i)},p(t,i){t[10]?r?r.p(t,i):(r=co(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[11]?o?o.p(t,i):(o=uo(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){r&&r.d(t),t&&Jt(e),o&&o.d(t),t&&Jt(n)}}}function co(t){let e,n,r,o,i,a,l,s;return{c(){e=Bt("div"),n=Tt("svg"),r=Tt("path"),this.h()},l(t){e=Yt(t,"DIV",{class:!0});var o=Gt(e);n=Zt(o,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=Gt(n);r=Zt(i,"path",{class:!0,d:!0}),Gt(r).forEach(Jt),i.forEach(Jt),o.forEach(Jt),this.h()},h(){qt(r,"class",o=to["gallery__arrow-icon-path"]),qt(r,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),qt(n,"class",i=to["gallery__arrow-icon"]),qt(n,"xmlns","http://www.w3.org/2000/svg"),qt(n,"width","32"),qt(n,"height","32"),qt(n,"viewBox","0 0 32 32"),qt(n,"fill","none"),qt(e,"class",a=to.gallery__arrow+" "+to.gallery__arrow_left+" divkit-fef1")},m(o,i){Mt(o,e,i),zt(e,n),zt(n,r),l||(s=Ut(e,"click",t[47]),l=!0)},p:st,d(t){t&&Jt(e),l=!1,s()}}}function uo(t){let e,n,r,o,i,a,l,s;return{c(){e=Bt("div"),n=Tt("svg"),r=Tt("path"),this.h()},l(t){e=Yt(t,"DIV",{class:!0});var o=Gt(e);n=Zt(o,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=Gt(n);r=Zt(i,"path",{class:!0,d:!0}),Gt(r).forEach(Jt),i.forEach(Jt),o.forEach(Jt),this.h()},h(){qt(r,"class",o=to["gallery__arrow-icon-path"]),qt(r,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),qt(n,"class",i=to["gallery__arrow-icon"]),qt(n,"xmlns","http://www.w3.org/2000/svg"),qt(n,"width","32"),qt(n,"height","32"),qt(n,"viewBox","0 0 32 32"),qt(n,"fill","none"),qt(e,"class",a=to.gallery__arrow+" "+to.gallery__arrow_right+" divkit-fef1")},m(o,i){Mt(o,e,i),zt(e,n),zt(n,r),l||(s=Ut(e,"click",t[48]),l=!0)},p:st,d(t){t&&Jt(e),l=!1,s()}}}function ho(t){let e,n,r,o,i,a,l,s,c,u,d,h=t[22],f=[];for(let e=0;e<h.length;e+=1)f[e]=lo(ro(t,h,e));const p=t=>Ie(f[t],1,1,(()=>{f[t]=null}));let g="horizontal"===t[5]&&so(t);return{c(){e=Bt("div"),n=Bt("div");for(let t=0;t<f.length;t+=1)f[t].c();l=Lt(),g&&g.c(),s=Wt(),this.h()},l(t){e=Yt(t,"DIV",{class:!0,style:!0});var r=Gt(e);n=Yt(r,"DIV",{class:!0,style:!0});var o=Gt(n);for(let t=0;t<f.length;t+=1)f[t].l(o);o.forEach(Jt),r.forEach(Jt),l=te(t),g&&g.l(t),s=Wt(),this.h()},h(){qt(n,"class",r=to["gallery__items-grid"]),qt(n,"style",o=sn(t[16])),qt(e,"class",i=to.gallery__scroller),qt(e,"style",a=sn(t[6]))},m(r,o){Mt(r,e,o),zt(e,n);for(let t=0;t<f.length;t+=1)f[t].m(n,null);t[46](e),Mt(r,l,o),g&&g.m(r,o),Mt(r,s,o),c=!0,u||(d=Ut(e,"scroll",t[25]),u=!0)},p(t,r){if(4227712&r[0]){let e;for(h=t[22],e=0;e<h.length;e+=1){const o=ro(t,h,e);f[e]?(f[e].p(o,r),Fe(f[e],1)):(f[e]=lo(o),f[e].c(),Fe(f[e],1),f[e].m(n,null))}for(Pe(),e=h.length;e<f.length;e+=1)p(e);Se()}(!c||65536&r[0]&&o!==(o=sn(t[16])))&&qt(n,"style",o),(!c||64&r[0]&&a!==(a=sn(t[6])))&&qt(e,"style",a),"horizontal"===t[5]?g?g.p(t,r):(g=so(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)Fe(f[t]);c=!0}},o(t){f=f.filter(no);for(let t=0;t<f.length;t+=1)Ie(f[t]);c=!1},d(n){n&&Jt(e),Ot(f,n),t[46](null),n&&Jt(l),g&&g.d(n),n&&Jt(s),u=!1,d()}}}function fo(t){let e,n,r=!t[4]&&io(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){t[4]?r&&(Pe(),Ie(r,1,1,(()=>{r=null})),Se()):r?(r.p(t,n),16&n[0]&&Fe(r,1)):(r=io(t),r.c(),Fe(r,1),r.m(e.parentNode,e))},i(t){n||(Fe(r),n=!0)},o(t){Ie(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function po(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,C=st,E=st,A=st,j=st,V=st,D=st,P=st,S=st;t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S()));let{json:F={}}=e,{templateContext:I}=e,{origJson:N}=e,{layoutParams:z}=e;const M=he(rn);let J,O,B,T=[],R=!1,L=!1,W=!1,U=1,q="horizontal",H="start",G=8,K="",X=[],Y={},Z=!1,Q={},tt=0;function et(){const t=J.scrollLeft,e=J.scrollWidth,r=J.offsetWidth;n(10,R=t>2),n(11,L=t+r<e-2)}function nt(t){J.scroll({left:J.scrollLeft+.75*J.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function rt(){let t=[],e=T[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<U;++e){const r=T[e].children[n];r&&t.push(r)}return t}function ot(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===q,o=r?"offsetLeft":"offsetTop",i=r?"left":"top";J.scroll({[i]:Math.max(0,t[e][o]-G/2),behavior:n})}function it(t){const e=rt(),n=J.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===q?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 o=e.map((t=>function(t,e){return"horizontal"===q?e.right>t.left&&t.right>e.left:e.bottom>t.top&&t.bottom>e.top}(n,t.getBoundingClientRect()))),i=o.findIndex(Boolean);return-1!==i?"prev"===t&&2===o.filter(Boolean).length?i+1:i:"prev"===t?1:e.length-2}return ce((()=>{!W&&(et(),tt)&&ot(rt(),tt,"auto")})),F.id&&!W&&M.registerInstance(F.id,{setCurrentItem(t){const e=rt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');ot(e,t)},setPreviousItem(t){const e=it("prev"),n=rt();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),ot(n,r)},setNextItem(t){const e="horizontal"===q?J.scrollLeft+J.offsetWidth===J.scrollWidth:J.scrollTop+J.offsetHeight===J.scrollHeight,n=rt();if(e&&"ring"===t)return void ot(n,0);const r=it("next");let o=r+1;o>n.length-1&&(o="ring"===t?0:r),ot(n,o)}}),t.$$set=t=>{"json"in t&&n(0,F=t.json),"templateContext"in t&&n(1,I=t.templateContext),"origJson"in t&&n(2,N=t.origJson),"layoutParams"in t&&n(3,z=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(36,r=F.items),32&t.$$.dirty[1]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,W=!1):(n(4,W=!0),M.logError(on(new Error('Incorrect or empty "items" prop for div "gallery"'))))),18&t.$$.dirty[0]|32&t.$$.dirty[1]&&n(35,o=(!W&&r||[]).map((t=>{let e=t,n=I;return({templateContext:n,json:e}=M.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(23,i=M.getDerivedFromVars(F.column_count)),S(),S=yt(i,(t=>n(44,k=t)))),67108864&t.$$.dirty[0]|8192&t.$$.dirty[1]&&n(26,U=Qn(k,U)),67108864&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(22,a=function(t,e){let n=0,r=[];for(let o=0;o<t.length;++o)r[n]||(r[n]=[]),r[n].push(t[o]),++n>=e&&(n=0);return r}(o,U)),1&t.$$.dirty[0]&&(n(21,l=M.getDerivedFromVars(F.orientation)),P(),P=yt(l,(t=>n(43,w=t)))),32&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(5,q=Dr(w,q)),1&t.$$.dirty[0]&&(n(20,s=M.getDerivedFromVars(F.cross_content_alignment)),D(),D=yt(s,(t=>n(42,x=t)))),134217728&t.$$.dirty[0]|2048&t.$$.dirty[1]&&n(27,H=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(x,H)),1&t.$$.dirty[0]&&(n(19,c=M.getDerivedFromVars(F.item_spacing)),V(),V=yt(c,(t=>n(41,b=t)))),536870912&t.$$.dirty[0]|1024&t.$$.dirty[1]&&(n(29,G=An(b,G)),n(28,O=cn(G))),1&t.$$.dirty[0]&&(n(18,u=M.getDerivedFromVars(F.paddings)),j(),j=yt(u,(t=>n(40,_=t)))),1073741824&t.$$.dirty[0]|512&t.$$.dirty[1]&&n(30,K=En(_,K)),32&t.$$.dirty[0]&&n(34,d="horizontal"===q?"grid-template-columns":"grid-template-rows"),32&t.$$.dirty[0]|16&t.$$.dirty[1]){let t=[];o.forEach((e=>{const n="horizontal"===q?"width":"height";t.push(M.getDerivedFromVars(e.json[n]))})),n(12,B=Ke(t,(t=>t))),A(),A=yt(B,(t=>n(39,y=t)))}if(67108896&t.$$.dirty[0]|257&t.$$.dirty[1]&&(n(31,X=[]),U>1?X.push("auto"):y.forEach((t=>{!t&&"horizontal"===q||"match_parent"===(null==t?void 0:t.type)?X.push("100%"):X.push("max-content")}))),1&t.$$.dirty[0]&&(n(17,h=M.getDerivedFromVars(F.scroll_mode)),E(),E=yt(h,(t=>n(38,$=t)))),738197728&t.$$.dirty[0]|128&t.$$.dirty[1]){const t={};let e={};n(32,Z=!1),"horizontal"===q?e.parentVAlign=H:e.parentHAlign=H,"paging"===$&&(n(32,Z=!0),e.scrollSnap="start",t["horizontal"===q?"scroll-padding-left":"scroll-padding-top"]=cn(G/2)),1===U&&(e.parentLayoutOrientation=q),n(6,Y=Dn(t,Y)),n(7,Q=Dn(e,Q))}1342177280&t.$$.dirty[0]&&n(16,f={padding:K,"grid-gap":O}),268435456&t.$$.dirty[0]|9&t.$$.dirty[1]&&n(15,p={"grid-gap":O,[d]:eo(X)}),32&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(14,g={orientation:q,"scroll-snap":Z}),1&t.$$.dirty[0]&&(n(13,m=M.getDerivedFromVars(F.default_item)),C(),C=yt(m,(t=>n(37,v=t)))),68&t.$$.dirty[1]&&n(33,tt=An(v,tt))},[F,I,N,z,W,q,Y,Q,J,T,R,L,B,m,g,p,f,h,u,c,s,l,a,i,nt,function(){et()},U,H,O,G,K,X,Z,tt,d,o,r,v,$,y,_,b,x,w,k,function(t,e){ge[t?"unshift":"push"]((()=>{T[e]=t,n(9,T)}))},function(t){ge[t?"unshift":"push"]((()=>{J=t,n(8,J)}))},()=>nt("left"),()=>nt("right")]}const go={tabs:"divkit-e0df",tabs__list:"divkit-ea19",tabs__item:"divkit-c25c",tabs__item_selected:"divkit-d560",tabs__item_actionable:"divkit-dfda",tabs__panels:"divkit-f5dc",tabs__swiper:"divkit-eb42",tabs__swiper_animated:"divkit-b9f1",tabs__swiper_inited:"divkit-fa57",tabs__panel:"divkit-cc9f",tabs__panel_visible:"divkit-e730",tabs__separator:"divkit-b85b"},{Boolean:mo}=Me;function vo(t,e,n){const r=t.slice();return r[72]=e[n],r[74]=n,r}function $o(t,e,n){const r=t.slice();r[72]=e[n],r[74]=n;const o=r[74]===r[5];return r[75]=o,r}function yo(t){let e,n;return e=new Yn({props:{cls:_n("tabs",go,t[34]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",$$slots:{default:[Co]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(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]),402653154&n[0]|32768&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function _o(t){let e,n,r=t[72].title+"";return{c(){e=Rt(r),n=Lt()},l(t){e=Qt(t,r),n=te(t)},m(t,r){Mt(t,e,r),Mt(t,n,r)},p(t,n){32768&n[0]&&r!==(r=t[72].title+"")&&ee(e,r)},d(t){t&&Jt(e),t&&Jt(n)}}}function bo(t){let e,n;return e=new Mn({props:{cls:_n("tabs__item",go,{selected:t[75],actionable:Boolean(t[72].title_click_action)}),actions:t[72].title_click_action?[t[72].title_click_action]:[],attrs:{id:"".concat(t[33],"-tab-").concat(t[74]),"aria-controls":"".concat(t[33],"-panel-").concat(t[74]),role:"tab",tabindex:t[75]?t[72].title_click_action?void 0:"0":"-1","aria-selected":t[75]?"true":"false"},customAction:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[48](t[74],...n)},$$slots:{default:[_o]},$$scope:{ctx:t}}}),e.$on("keydown",t[36]),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(n,r){t=n;const o={};32800&r[0]&&(o.cls=_n("tabs__item",go,{selected:t[75],actionable:Boolean(t[72].title_click_action)})),32768&r[0]&&(o.actions=t[72].title_click_action?[t[72].title_click_action]:[]),32800&r[0]&&(o.attrs={id:"".concat(t[33],"-tab-").concat(t[74]),"aria-controls":"".concat(t[33],"-panel-").concat(t[74]),role:"tab",tabindex:t[75]?t[72].title_click_action?void 0:"0":"-1","aria-selected":t[75]?"true":"false"}),32768&r[0]|32768&r[2]&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function xo(t){let e,n,r;return{c(){e=Bt("div"),this.h()},l(t){e=Yt(t,"DIV",{class:!0,style:!0}),Gt(e).forEach(Jt),this.h()},h(){qt(e,"class",n=go.tabs__separator),qt(e,"style",r=sn(t[28]))},m(t,n){Mt(t,e,n)},p(t,n){268435456&n[0]&&r!==(r=sn(t[28]))&&qt(e,"style",r)},d(t){t&&Jt(e)}}}function wo(t){let e,n;return e=new Ri({props:{div:t[72].div,templateContext:t[1]}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};32768&n[0]&&(r.div=t[72].div),2&n[0]&&(r.templateContext=t[1]),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function ko(t){let e,n,r,o,i,a,l=t[24][t[74]]&&wo(t);return{c(){e=Bt("div"),l&&l.c(),n=Lt(),this.h()},l(t){e=Yt(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=Gt(e);l&&l.l(r),n=te(r),r.forEach(Jt),this.h()},h(){qt(e,"class",r=_n("tabs__panel",go,{visible:t[25][t[74]]})),qt(e,"role","tabpanel"),qt(e,"id",o=t[33]+"-panel-"+t[74]),qt(e,"aria-labelledby",i=t[33]+"-tab-"+t[74]),ne(e,"left",100*t[74]+"%")},m(t,r){Mt(t,e,r),l&&l.m(e,null),zt(e,n),a=!0},p(t,o){t[24][t[74]]?l?(l.p(t,o),16777216&o[0]&&Fe(l,1)):(l=wo(t),l.c(),Fe(l,1),l.m(e,n)):l&&(Pe(),Ie(l,1,1,(()=>{l=null})),Se()),(!a||33554432&o[0]&&r!==(r=_n("tabs__panel",go,{visible:t[25][t[74]]})))&&qt(e,"class",r)},i(t){a||(Fe(l),a=!0)},o(t){Ie(l),a=!1},d(t){t&&Jt(e),l&&l.d()}}}function Co(t){let e,n,r,o,i,a,l,s,c,u,d,h=t[15],f=[];for(let e=0;e<h.length;e+=1)f[e]=bo($o(t,h,e));const p=t=>Ie(f[t],1,1,(()=>{f[t]=null}));let g=t[16]&&xo(t),m=t[15],v=[];for(let e=0;e<m.length;e+=1)v[e]=ko(vo(t,m,e));const $=t=>Ie(v[t],1,1,(()=>{v[t]=null}));return{c(){e=Bt("div");for(let t=0;t<f.length;t+=1)f[t].c();r=Lt(),g&&g.c(),o=Lt(),i=Bt("div"),a=Bt("div");for(let t=0;t<v.length;t+=1)v[t].c();this.h()},l(t){e=Yt(t,"DIV",{class:!0,role:!0});var n=Gt(e);for(let t=0;t<f.length;t+=1)f[t].l(n);n.forEach(Jt),r=te(t),g&&g.l(t),o=te(t),i=Yt(t,"DIV",{class:!0});var l=Gt(i);a=Yt(l,"DIV",{class:!0});var s=Gt(a);for(let t=0;t<v.length;t+=1)v[t].l(s);s.forEach(Jt),l.forEach(Jt),this.h()},h(){qt(e,"class",n=go.tabs__list),qt(e,"role","tablist"),ne(e,"--divkit-tabs-font-size",cn(t[6]),!1),ne(e,"--divkit-tabs-paddings",t[7],!1),ne(e,"--divkit-tabs-line-height",t[20],!1),ne(e,"--divkit-tabs-letter-spacing",t[21],!1),ne(e,"--divkit-tabs-active-font-weight",t[9]||"",!1),ne(e,"--divkit-tabs-inactive-font-weight",t[10]||"",!1),ne(e,"--divkit-tabs-active-text-color",t[11],!1),ne(e,"--divkit-tabs-inactive-text-color",t[12],!1),ne(e,"--divkit-tabs-active-background-color",t[13],!1),ne(e,"--divkit-tabs-inactive-background-color",t[14],!1),ne(e,"--divkit-tabs-border-radius",t[8],!1),qt(a,"class",l=_n("tabs__swiper",go,{inited:t[22],animated:t[23]})),qt(i,"class",s=go.tabs__panels)},m(n,l){Mt(n,e,l);for(let t=0;t<f.length;t+=1)f[t].m(e,null);t[49](e),Mt(n,r,l),g&&g.m(n,l),Mt(n,o,l),Mt(n,i,l),zt(i,a);for(let t=0;t<v.length;t+=1)v[t].m(a,null);t[50](a),t[51](i),c=!0,u||(d=[Ut(a,"touchstart",(function(){pt(t[26]?t[37]:void 0)&&(t[26]?t[37]:void 0).apply(this,arguments)})),Ut(a,"touchmove",(function(){pt(t[26]?t[38]:void 0)&&(t[26]?t[38]:void 0).apply(this,arguments)})),Ut(a,"touchend",(function(){pt(t[26]?t[39]:void 0)&&(t[26]?t[39]:void 0).apply(this,arguments)})),Ut(a,"touchcancel",(function(){pt(t[26]?t[39]:void 0)&&(t[26]?t[39]:void 0).apply(this,arguments)}))],u=!0)},p(n,r){if(t=n,32800&r[0]|52&r[1]){let n;for(h=t[15],n=0;n<h.length;n+=1){const o=$o(t,h,n);f[n]?(f[n].p(o,r),Fe(f[n],1)):(f[n]=bo(o),f[n].c(),Fe(f[n],1),f[n].m(e,null))}for(Pe(),n=h.length;n<f.length;n+=1)p(n);Se()}if(64&r[0]&&ne(e,"--divkit-tabs-font-size",cn(t[6]),!1),128&r[0]&&ne(e,"--divkit-tabs-paddings",t[7],!1),1048576&r[0]&&ne(e,"--divkit-tabs-line-height",t[20],!1),2097152&r[0]&&ne(e,"--divkit-tabs-letter-spacing",t[21],!1),512&r[0]&&ne(e,"--divkit-tabs-active-font-weight",t[9]||"",!1),1024&r[0]&&ne(e,"--divkit-tabs-inactive-font-weight",t[10]||"",!1),2048&r[0]&&ne(e,"--divkit-tabs-active-text-color",t[11],!1),4096&r[0]&&ne(e,"--divkit-tabs-inactive-text-color",t[12],!1),8192&r[0]&&ne(e,"--divkit-tabs-active-background-color",t[13],!1),16384&r[0]&&ne(e,"--divkit-tabs-inactive-background-color",t[14],!1),256&r[0]&&ne(e,"--divkit-tabs-border-radius",t[8],!1),t[16]?g?g.p(t,r):(g=xo(t),g.c(),g.m(o.parentNode,o)):g&&(g.d(1),g=null),50364418&r[0]|4&r[1]){let e;for(m=t[15],e=0;e<m.length;e+=1){const n=vo(t,m,e);v[e]?(v[e].p(n,r),Fe(v[e],1)):(v[e]=ko(n),v[e].c(),Fe(v[e],1),v[e].m(a,null))}for(Pe(),e=m.length;e<v.length;e+=1)$(e);Se()}(!c||12582912&r[0]&&l!==(l=_n("tabs__swiper",go,{inited:t[22],animated:t[23]})))&&qt(a,"class",l)},i(t){if(!c){for(let t=0;t<h.length;t+=1)Fe(f[t]);for(let t=0;t<m.length;t+=1)Fe(v[t]);c=!0}},o(t){f=f.filter(mo);for(let t=0;t<f.length;t+=1)Ie(f[t]);v=v.filter(mo);for(let t=0;t<v.length;t+=1)Ie(v[t]);c=!1},d(n){n&&Jt(e),Ot(f,n),t[49](null),n&&Jt(r),g&&g.d(n),n&&Jt(o),n&&Jt(i),Ot(v,n),t[50](null),t[51](null),u=!1,ft(d)}}}function Eo(t){let e,n,r=!t[4]&&yo(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){t[4]?r&&(Pe(),Ie(r,1,1,(()=>{r=null})),Se()):r?(r.p(t,n),16&n[0]&&Fe(r,1)):(r=yo(t),r.c(),Fe(r,1),r.m(e.parentNode,e))},i(t){n||(Fe(r),n=!0)},o(t){Ie(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function Ao(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function jo(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v=st,$=st,y=st,_=st,b=st;var x;t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b()));let{json:w={}}=e,{templateContext:k}=e,{origJson:E}=e,{layoutParams:A}=e;const j=he(rn),V=j.genId("tabs");let D,P,S,F=!1;const I=j.getJsonWithVars(w.selected_tab);let N,z,M=I&&Number(I)||0,J=12,O="",B="",T="",R="",L="",W="",U="",q="",H="",G="",K=!1,X=!1,Y=M,Z=[],Q=[];async function tt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Y=M,n(5,M=t),ct(),rt(),e){await be();const t=D.querySelector(".".concat(go.tabs__item_selected));t&&t.focus()}}function et(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==r?void 0:r.length;if(!n)return;let o=M+t;o>=n?o=0:o<0&&(o=n-1),tt(o,e)}function nt(t,e){return M===e||(tt(e),!1)}function rt(){n(23,X=!0),ot(100*-M),it(),async function(){await be();const t=document.getElementById("".concat(V,"-panel-").concat(M));t&&n(18,P.style.height=cn(t.offsetHeight),P)}(),lt(),ht=-M*P.clientWidth}async function ot(t){await be(),n(19,S.style.transform="translate3d(".concat(t,"%,0,0)"),S)}function it(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,M-1):Math.min(M,Y),o=t?Math.min(r.length-1,M+1):Math.max(M,Y);n(24,Z=Z.map(((t,n)=>t||n>=e&&n<=o))),n(25,Q=Q.map(((t,n)=>n>=e&&n<=o)))}let at=null;function lt(){at&&clearTimeout(at),at=window.setTimeout((()=>{n(25,Q=r.map(((t,e)=>e===M)))}),400)}function ct(){K||(n(22,K=!0),n(18,P.style.height=cn(P.clientHeight),P),n(19,S.style.transform="translate3d(".concat(100*-Y,"%,0,0)"),S))}let ut,dt,ht,ft=null,pt=null,gt=!1,mt=!1;return w.id&&!F&&j.registerInstance(w.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');tt(t)},setPreviousItem(t){let e=M-1;e<0&&(e="ring"===t?r.length-1:M),tt(e)},setNextItem(t){let e=M+1;e>r.length-1&&(e="ring"===t?0:M),tt(e)}}),t.$$set=t=>{"json"in t&&n(0,w=t.json),"templateContext"in t&&n(1,k=t.templateContext),"origJson"in t&&n(2,E=t.origJson),"layoutParams"in t&&n(3,A=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(15,r=w.items||[]),32768&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,F=!1):(n(4,F=!0),j.logError(on(new Error('Incorrect or empty "items" prop for div "tabs"'))))),32817&t.$$.dirty[0]&&!F&&(M<0||M>=r.length)&&(j.logError(on(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:w.selected_tab,length:r.length}})),n(5,M=M<0?0:r.length-1)),1&t.$$.dirty[0]&&(n(32,o=j.getDerivedFromVars(w.tab_title_style)),b(),b=yt(o,(t=>n(47,m=t)))),65536&t.$$.dirty[1]&&n(43,i=m||{}),64&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(6,J=Qn(i.font_size,J)),192&t.$$.dirty[0]|4096&t.$$.dirty[1]&&(i.font_size||i.paddings)){const t=i.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/J*10,right:(Number(t.right)||0)/J*10,bottom:(Number(t.bottom)||0)/J*10,left:(Number(t.left)||0)/J*10};n(7,O=En(e,O))}if(64&t.$$.dirty[0]|4096&t.$$.dirty[1]){const t=i.line_height;void 0!==t&&tr(t)&&n(20,B=cn(t/J*10))}if(64&t.$$.dirty[0]|4096&t.$$.dirty[1]){const t=i.letter_spacing;void 0!==t&&kn(t)&&n(21,T=cn(t/J*10))}if(320&t.$$.dirty[0]|4608&t.$$.dirty[1]&&(i.corner_radius||i.corners_radius||i.font_size)){const t=null!==n(40,x=i.corner_radius)&&void 0!==x?x:1e3;i.corners_radius?n(8,R=Cn(i.corners_radius,t,J,R)):kn(t)&&n(8,R=cn(t/J*10))}512&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(9,N=nr(i.active_font_weight||i.font_weight,N)),1024&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(10,z=nr(i.inactive_font_weight||i.font_weight,z)),2048&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(11,L=C(i.active_text_color,1,L)),4096&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(12,W=C(i.inactive_text_color,1,W)),8192&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(13,U=C(i.active_background_color,1,U)),16384&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(14,q=C(i.inactive_background_color,1,q)),1&t.$$.dirty[0]&&(n(31,a=j.getDerivedFromVars(w.has_separator)),_(),_=yt(a,(t=>n(16,g=t)))),1&t.$$.dirty[0]&&(n(30,l=j.getDerivedFromVars(w.separator_color)),y(),y=yt(l,(t=>n(46,p=t)))),1&t.$$.dirty[0]&&(n(29,s=j.getDerivedFromVars(w.separator_paddings)),$(),$=yt(s,(t=>n(45,f=t)))),65536&t.$$.dirty[0]|52224&t.$$.dirty[1]&&g&&(p&&n(41,H=C(p,1,H)),f&&n(42,G=En(f,G))),3072&t.$$.dirty[1]&&n(28,c={background:H,margin:G}),1&t.$$.dirty[0]&&(n(27,u=j.getDerivedFromVars(w.switch_tabs_by_content_swipe_enabled)),v(),v=yt(u,(t=>n(44,h=t)))),8192&t.$$.dirty[1]&&n(26,d=void 0===h||Boolean(h)),32768&t.$$.dirty[0]&&(F||(n(24,Z=r.map(((t,e)=>e===M))),n(25,Q=r.map(((t,e)=>e===M)))))},[w,k,E,A,F,M,J,O,R,N,z,L,W,U,q,r,g,D,P,S,B,T,K,X,Z,Q,d,u,c,s,l,a,o,V,{},nt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&r){if(37===t.which)et(-1,!0);else if(39===t.which)et(1,!0);else if(36===t.which)tt(0,!0);else{if(35!==t.which)return;tt(r.length-1,!0)}t.preventDefault()}},function(t){r.length<2||t.touches.length>1||(gt=!1,mt=!1,ft=Ao(t),pt=null,ut=Date.now(),dt=ht||-M*P.clientWidth,n(23,X=!1),at&&clearTimeout(at))},function(t){const e=Ao(t);if(!ft||pt&&pt.x===e.x&&pt.y===e.y)return;pt=e;const n=P.clientWidth;if(gt){ht=e.x-ft.x+dt;const t=n*r.length;if(ht>0)ht=ht*n/(ht+3*n);else if(-ht+n>t){let e=-ht+n-t;e=e*n/(e+3*n),ht=n-t-e}ot(100*ht/n)}else Math.abs(e.y-ft.y)>10?mt=!0:!mt&&Math.abs(e.x-ft.x)>8&&(ct(),gt=!0,ft=e,ot(100*-M),it(!0));gt&&t.cancelable&&t.preventDefault()},function(){mt=!1,ft=null;let t=M;if(!gt)return;gt=!1;const e=Math.min(512,P.clientWidth);Math.abs(dt-ht)>e/4*Math.min(1,(Date.now()-ut)/750)&&(t+=dt>ht?1:-1),t>=r.length?t=r.length-1:t<0&&(t=0),t===M?(ht=-t*e,ot(100*-t),lt()):tt(t)},x,H,G,i,h,f,p,m,(t,e)=>nt(0,t),function(t){ge[t?"unshift":"push"]((()=>{D=t,n(17,D)}))},function(t){ge[t?"unshift":"push"]((()=>{S=t,n(19,S)}))},function(t){ge[t?"unshift":"push"]((()=>{P=t,n(18,P)}))}]}function Vo(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function Do(t){return t*t*t}function Po(t){const e=t-1;return e*e*e+1}function So(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,r=Math.floor(n),o=n-r;return t[r]*o+t[r+1]*(1-o)}}const Fo=So([.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]),Io=So([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]),No={linear:ct,ease:Fo,ease_in:Do,ease_out:Po,ease_in_out:Vo,spring:Io};function zo(t){return Math.max(...t.map((t=>(Number(t.duration)||200)+(Number(t.start_delay)||0))))}function Mo(t,e){let{transitions:n,elementBbox:r,rootBbox:o,direction:i,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)||0,a=Number(t.duration)||200,l=Math.max(0,Math.min(1,(e-n)/a)),c="in"===i?1-l:l,u=(No[t.interpolator||"ease_in_out"]||Vo)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*s+u*(t.alpha||0)};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 i=null===(d=t.distance)||void 0===d?void 0:d.value;void 0===i&&(i="top"!==t.edge&&"bottom"!==t.edge&&t.edge?Math.abs(o["left"===t.edge?"left":"right"]-r["left"===t.edge?"right":"left"]):Math.abs(o["bottom"===t.edge?"bottom":"top"]-r["bottom"===t.edge?"top":"bottom"]));const a=i*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||0),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,o=null!==(f=t.pivot_y)&&void 0!==f?f:.5,i=(1-e)*r.width*n,a=(1-e)*r.height*o;return{active:u>0&&u<1,scale:"translate(".concat(i,"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 Jo(t,e,n){return t*(1-n)+e*n}const Oo={linear:ct,ease:Fo,ease_in:Do,ease_out:Po,ease_in_out:Vo,spring:Io};function Bo(t,e){var n,r;let{rootBbox:o,beforeBbox:i,afterBbox:a,transition:l}=e;return{delay:null!==(n=l.start_delay)&&void 0!==n?n:0,duration:null!==(r=l.duration)&&void 0!==r?r:200,easing:l.interpolator&&l.interpolator in Oo?Oo[l.interpolator]:Vo,css:t=>["top:".concat(Jo(i.top,a.top,t)-o.top,"px"),"left:".concat(Jo(i.left,a.left,t)-o.left,"px"),"width:".concat(Jo(i.width,a.width,t),"px"),"height:".concat(Jo(i.height,a.height,t),"px")].join(";")}}function To(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...To(t))})):e.push(t),e}const{Map:Ro}=Me;function Lo(t,e,n){const r=t.slice();return r[26]=e[n],r}function Wo(t){let e,n;return e=new Yn({props:{cls:"divkit-b8ef",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Xo]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(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]),536871122&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function Uo(t){let e,n,r=t[7],o=qo(t);return{c(){o.c(),e=Wt()},l(t){o.l(t),e=Wt()},m(t,r){o.m(t,r),Mt(t,e,r),n=!0},p(t,n){128&n&&vt(r,r=t[7])?(Pe(),Ie(o,1,1,st),Se(),o=qo(t),o.c(),Fe(o,1),o.m(e.parentNode,e)):o.p(t,n)},i(t){n||(Fe(o),n=!0)},o(t){Ie(o),n=!1},d(t){t&&Jt(e),o.d(t)}}}function qo(t){let e,n;return e=new Ri({props:{div:t[7].div,templateContext:t[1]}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(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||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function Ho(t){let e,n,r,o,i,a,l,s,c,u;function d(){return t[11](t[26])}return r=new Ri({props:{div:t[26].json,templateContext:t[26].templateContext}}),{c(){e=Bt("div"),n=Bt("div"),Te(r.$$.fragment),i=Lt(),this.h()},l(t){e=Yt(t,"DIV",{class:!0});var o=Gt(e);n=Yt(o,"DIV",{class:!0});var a=Gt(n);Re(r.$$.fragment,a),a.forEach(Jt),i=te(o),o.forEach(Jt),this.h()},h(){qt(n,"class",o="divkit-e08c"),qt(e,"class",a="divkit-eb86")},m(t,o){Mt(t,e,o),zt(e,n),Le(r,n,null),zt(e,i),s=!0,c||(u=Ut(e,"introend",d),c=!0)},p(e,n){t=e;const o={};64&n&&(o.div=t[26].json),64&n&&(o.templateContext=t[26].templateContext),r.$set(o)},i(n){s||(Fe(r.$$.fragment,n),l||xe((()=>{l=ze(e,Bo,t[26]),l.start()})),s=!0)},o(t){Ie(r.$$.fragment,t),s=!1},d(t){t&&Jt(e),We(r),c=!1,u()}}}function Go(t){let e,n,r,o,i,a,l,s,c,u;function d(){return t[10](t[26])}return r=new Ri({props:{div:t[26].json,templateContext:t[26].templateContext}}),{c(){e=Bt("div"),n=Bt("div"),Te(r.$$.fragment),i=Lt(),this.h()},l(t){e=Yt(t,"DIV",{class:!0,style:!0});var o=Gt(e);n=Yt(o,"DIV",{class:!0});var a=Gt(n);Re(r.$$.fragment,a),a.forEach(Jt),i=te(o),o.forEach(Jt),this.h()},h(){qt(n,"class",o="divkit-e08c"),qt(e,"class",a="divkit-eb86"),ne(e,"left",t[26].offsetLeft+"px"),ne(e,"top",t[26].offsetTop+"px"),ne(e,"width",t[26].width+"px"),ne(e,"height",t[26].height+"px")},m(t,o){Mt(t,e,o),zt(e,n),Le(r,n,null),zt(e,i),s=!0,c||(u=Ut(e,"introend",d),c=!0)},p(n,o){t=n;const i={};64&o&&(i.div=t[26].json),64&o&&(i.templateContext=t[26].templateContext),r.$set(i),(!s||64&o)&&ne(e,"left",t[26].offsetLeft+"px"),(!s||64&o)&&ne(e,"top",t[26].offsetTop+"px"),(!s||64&o)&&ne(e,"width",t[26].width+"px"),(!s||64&o)&&ne(e,"height",t[26].height+"px")},i(n){s||(Fe(r.$$.fragment,n),l||xe((()=>{l=ze(e,Mo,t[26]),l.start()})),s=!0)},o(t){Ie(r.$$.fragment,t),s=!1},d(t){t&&Jt(e),We(r),c=!1,u()}}}function Ko(t,e){let n,r,o,i,a;const l=[Go,Ho],s=[];function c(t,e){return"direction"in t[26]?0:1}return r=c(e),o=s[r]=l[r](e),{key:t,first:null,c(){n=Wt(),o.c(),i=Wt(),this.h()},l(t){n=Wt(),o.l(t),i=Wt(),this.h()},h(){this.first=n},m(t,e){Mt(t,n,e),s[r].m(t,e),Mt(t,i,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?s[r].p(e,n):(Pe(),Ie(s[a],1,1,(()=>{s[a]=null})),Se(),o=s[r],o?o.p(e,n):(o=s[r]=l[r](e),o.c()),Fe(o,1),o.m(i.parentNode,i))},i(t){a||(Fe(o),a=!0)},o(t){Ie(o),a=!1},d(t){t&&Jt(n),s[r].d(t),t&&Jt(i)}}}function Xo(t){var e;let n,r,o,i,a=[],l=new Ro,s=(null===(e=t[7])||void 0===e?void 0:e.div)&&Uo(t),c=t[6];const u=t=>t[26];for(let e=0;e<c.length;e+=1){let n=Lo(t,c,e),r=u(n);l.set(r,a[e]=Ko(r,n))}return{c(){s&&s.c(),n=Lt(),r=Bt("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){s&&s.l(t),n=te(t),r=Yt(t,"DIV",{class:!0});var e=Gt(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(Jt),this.h()},h(){qt(r,"class",o="divkit-adaa")},m(e,o){s&&s.m(e,o),Mt(e,n,o),Mt(e,r,o);for(let t=0;t<a.length;t+=1)a[t].m(r,null);t[12](r),i=!0},p(t,e){var o;null!==(o=t[7])&&void 0!==o&&o.div?s?(s.p(t,e),128&e&&Fe(s,1)):(s=Uo(t),s.c(),Fe(s,1),s.m(n.parentNode,n)):s&&(Pe(),Ie(s,1,1,(()=>{s=null})),Se()),320&e&&(c=t[6],Pe(),a=function(t,e,n,r,o,i,a,l,s,c,u,d){let h=t.length,f=i.length,p=h;const g={};for(;p--;)g[t[p].key]=p;const m=[],v=new Map,$=new Map;for(p=f;p--;){const t=d(o,i,p),r=n(t);let l=a.get(r);l?l.p(t,e):(l=c(r,t),l.c()),v.set(r,m[p]=l),r in g&&$.set(r,Math.abs(p-g[r]))}const y=new Set,_=new Set;function b(t){Fe(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,o=n.key;e===n?(u=e.first,h--,f--):v.has(o)?!a.has(r)||y.has(r)?b(e):_.has(o)?h--:$.get(r)>$.get(o)?(_.add(r),b(e)):(y.add(o),h--):(s(n,a),h--)}for(;h--;){const e=t[h];v.has(e.key)||s(e,a)}for(;f;)b(m[f-1]);return m}(a,e,u,0,t,c,l,r,Je,Ko,null,Lo),Se())},i(t){if(!i){Fe(s);for(let t=0;t<c.length;t+=1)Fe(a[t]);i=!0}},o(t){Ie(s);for(let t=0;t<a.length;t+=1)Ie(a[t]);i=!1},d(e){s&&s.d(e),e&&Jt(n),e&&Jt(r);for(let t=0;t<a.length;t+=1)a[t].d();t[12](null)}}}function Yo(t){let e,n,r=!t[5]&&Wo(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){let[o]=n;t[5]?r&&(Pe(),Ie(r,1,1,(()=>{r=null})),Se()):r?(r.p(t,o),32&o&&Fe(r,1)):(r=Wo(t),r.c(),Fe(r,1),r.m(e.parentNode,e))},i(t){n||(Fe(r),n=!0)},o(t){Ie(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function Zo(t){return"change_bounds"===t.type?t:"set"===t.type?Zo(t.items[0]):null}function Qo(t,e,n){let r,{json:o={}}=e,{templateContext:i}=e,{origJson:a}=e,{layoutParams:l}=e;const s=he(rn);let c,u=new Map,d=new Set,h=!1,f=null,p=[],g=[],m=[],v=[];function $(t,e,n){let{json:r,templateContext:o,transitions:i,node:a}=e;r=s.getJsonWithVars(r),i=s.getJsonWithVars(i);const l=To(i),c=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{transition_in:void 0,transition_out:void 0,transition_change:void 0,margins:void 0,alpha:void 0}),templateContext:o,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}}const y=o.div_id||o.id;y?(he(xn).registerInstance(y,{async setState(t){if(_===t)return;s.setRunning("stateChange",!0);const e=new Set(d);p.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,p=[]);let o=[];if(c){const t=c.getBoundingClientRect();o=m.map((e=>$(t,e,"out")))}v.forEach((t=>{u.set(t.id,t.node.getBoundingClientRect())})),g=[],m=[],v=[];const i=r.find((e=>e.state_id===t))||null;if(i?(_=t,n(7,b=i)):s.logError(on(new Error("Cannot find state with id"),{additional:{stateId:t}})),await be(),!c)return;const a=c.getBoundingClientRect();let l=g.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")));o=o.filter((t=>{var e;return!(!t.json.id||d.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const h=o.concat(l),f=h.reduce(((t,e)=>Math.max(t,zo(e.transitions))),0),y=v.filter((t=>u.has(t.id))).map((t=>({json:Object.assign(Object.assign({},t.json),{transition_in:void 0,transition_out:void 0,transition_change:void 0,margins:void 0,alpha:void 0,width:{type:"match_parent"},height:{type:"match_parent"}}),templateContext:t.templateContext,rootBbox:a,beforeBbox:u.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:Zo(t.transitions),resolvePromise:t.resolvePromise})));n(6,p=[...h.map((t=>Object.assign(Object.assign({},t),{maxDuration:f}))),...y]),u.clear(),s.setRunning("stateChange",!1)},getChild(t){if(f&&f.has(t))return f.get(t);s.logError(on(new Error("Missing state block with id"),{additional:{id:t}}))}}),de(xn,{registerInstance(t,e){f||(f=new Map),f.has(t)?s.logError(on(new Error("Duplicate state with id"),{additional:{id:t}})):f.set(t,e)},runVisibilityTransition(t,e,r,o,i){if(!c)return Promise.resolve();const a=$(c.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:o},i),l=zo(a.transitions),s=Object.assign(Object.assign({},a),{maxDuration:l});return n(6,p=[...p.filter((t=>t.node!==a.node)),s]),new Promise((t=>{s.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const o={json:t,templateContext:e,transitions:n,node:r};return g.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const o={json:t,templateContext:e,transitions:n,node:r};return m.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const o=t.id;if(!o)return Promise.resolve();const i={id:o,json:t,templateContext:e,transitions:n,node:r};return v.push(i),new Promise((t=>{i.resolvePromise=t}))},hasTransitionChange:t=>!!t&&u.has(t),registerChild(t){d.add(t)},unregisterChild(t){d.delete(t)}})):(h=!0,s.logError(on(new Error('Missing "id" prop for div "state"'))));let _,b=null;const x=s.getJsonWithVars(o.default_state_id);let w=!1;function k(t){n(6,p=p.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return t.$$set=t=>{"json"in t&&n(0,o=t.json),"templateContext"in t&&n(1,i=t.templateContext),"origJson"in t&&n(2,a=t.origJson),"layoutParams"in t&&n(3,l=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&o&&(d=new Set),1&t.$$.dirty&&n(9,r=o.states||[]),512&t.$$.dirty&&((null==r?void 0:r.length)?n(5,h=!1):(n(5,h=!0),s.logError(on(new Error('Empty "states" prop for div "state"'))))),512&t.$$.dirty&&function(t){w||(w=!0,t.length&&(x?(_=x,n(7,b=t.find((t=>t.state_id===_))||null),b||s.logError(on(new Error("Cannot find state for default_state_id"),{additional:{selectedId:_}}))):(n(7,b=t[0]),_=b.state_id)))}(r)},[o,i,a,l,c,h,p,b,k,r,t=>k(t),t=>k(t),function(t){ge[t?"unshift":"push"]((()=>{c=t,n(4,c)}))}]}const ti={pager:"divkit-c5fe",pager__items:"divkit-f698",pager_orientation_horizontal:"divkit-b0a1",pager_orientation_vertical:"divkit-f772"},{Boolean:ei}=Me;function ni(t,e,n){const r=t.slice();return r[44]=e[n],r}function ri(t){let e,n;return e=new Yn({props:{cls:_n("pager",ti,t[8]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,$$slots:{default:[ii]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=_n("pager",ti,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]),560&n[0]|65536&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function oi(t){let e,n;return e=new Ri({props:{layoutParams:t[14],div:t[44].json,templateContext:t[44].templateContext,origJson:t[44].origJson}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.div=t[44].json),16&n[0]&&(r.templateContext=t[44].templateContext),16&n[0]&&(r.origJson=t[44].origJson),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function ii(t){let e,n,r,o,i,a,l=t[4],s=[];for(let e=0;e<l.length;e+=1)s[e]=oi(ni(t,l,e));const c=t=>Ie(s[t],1,1,(()=>{s[t]=null}));return{c(){e=Bt("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=Yt(t,"DIV",{class:!0,style:!0});var n=Gt(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(Jt),this.h()},h(){qt(e,"class",n=ti.pager__items),qt(e,"style",r=sn(t[9]))},m(n,r){Mt(n,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);t[35](e),o=!0,i||(a=Ut(e,"scroll",t[15]),i=!0)},p(t,n){if(16400&n[0]){let r;for(l=t[4],r=0;r<l.length;r+=1){const o=ni(t,l,r);s[r]?(s[r].p(o,n),Fe(s[r],1)):(s[r]=oi(o),s[r].c(),Fe(s[r],1),s[r].m(e,null))}for(Pe(),r=l.length;r<s.length;r+=1)c(r);Se()}(!o||512&n[0]&&r!==(r=sn(t[9])))&&qt(e,"style",r)},i(t){if(!o){for(let t=0;t<l.length;t+=1)Fe(s[t]);o=!0}},o(t){s=s.filter(ei);for(let t=0;t<s.length;t+=1)Ie(s[t]);o=!1},d(n){n&&Jt(e),Ot(s,n),t[35](null),i=!1,a()}}}function ai(t){let e,n,r=!t[7]&&ri(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){t[7]?r&&(Pe(),Ie(r,1,1,(()=>{r=null})),Se()):r?(r.p(t,n),128&n[0]&&Fe(r,1)):(r=ri(t),r.c(),Fe(r,1),r.m(e.parentNode,e))},i(t){n||(Fe(r),n=!0)},o(t){Ie(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function li(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$=st,y=st,_=st,b=st,x=st;var w,k,C,E,A,j,V;t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>x()));let{json:D={}}=e,{templateContext:P}=e,{origJson:S}=e,{layoutParams:F}=e;const I=he(rn),N=I.genId("pager");let z,M=!1,J=0,O=!1,B="horizontal",T="",R="",L="";const W=function(t,e){let n;return function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,r),n=null}),50)}}((function(){const t=function(){const t=Array.from(z.children),e=z.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===B?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:J}();t!==J&&n(24,J=t)}));function U(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const r="horizontal"===B,o=z.children[t],i=r?"offsetLeft":"offsetTop",a=r?"left":"top";z.scroll({[a]:o[i],behavior:e}),n(24,J=t)}return D.id&&I.registerInstance(D.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');U(t)},setPreviousItem(t){let e=J-1;e<0&&(e="ring"===t?r.length-1:J),U(e)},setNextItem(t){let e=J+1;e>r.length-1&&(e="ring"===t?0:J),U(e)}}),ce((()=>{if(Boolean(document.getElementById("".concat(N,"-tab-0")))){const t=[...z.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(N,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(N,"-tab-").concat(e))}})),t.$$set=t=>{"json"in t&&n(0,D=t.json),"templateContext"in t&&n(1,P=t.templateContext),"origJson"in t&&n(2,S=t.origJson),"layoutParams"in t&&n(3,F=t.layoutParams)},t.$$.update=()=>{if(65537&t.$$.dirty[0]&&((null===n(16,w=D.items)||void 0===w?void 0:w.length)&&Array.isArray(D.items)?n(23,M=!1):(n(23,M=!0),I.logError(on(new Error('Incorrect or empty "items" prop for div "pager"'))))),8388611&t.$$.dirty[0]&&n(4,r=(!M&&D.items||[]).map((t=>{let e=t,n=P;return({templateContext:n,json:e}=I.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(13,o=I.getDerivedFromVars(D.layout_mode)),y(),y=yt(o,(t=>n(31,p=t)))),1&t.$$.dirty[1]&&(p?"percentage"!==p.type&&"fixed"!==p.type?(n(25,O=!0),I.logError(on(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):n(25,O=!1):(n(25,O=!0),I.logError(on(new Error('Empty "layout_mode" prop for div "pager"'))))),1&t.$$.dirty[0]&&(n(12,i=I.getDerivedFromVars(D.orientation)),x(),x=yt(i,(t=>n(34,v=t)))),67108864&t.$$.dirty[0]|8&t.$$.dirty[1]&&n(26,B=Dr(v,B)),1&t.$$.dirty[0]&&(n(11,a=I.getDerivedFromVars(D.item_spacing)),b(),b=yt(a,(t=>n(33,m=t)))),4&t.$$.dirty[1]){const t=null==m?void 0:m.value;t&&kn(t)&&n(27,T=cn(t||0))}if(1&t.$$.dirty[0]&&(n(10,l=I.getDerivedFromVars(D.paddings)),_(),_=yt(l,(t=>n(32,g=t)))),268435456&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(28,R=En(g,R)),67108864&t.$$.dirty[0]&&n(30,s="horizontal"===B?"grid-auto-columns":"grid-auto-rows"),209584129&t.$$.dirty[0]|1&t.$$.dirty[1])if("fixed"===(null==p?void 0:p.type)){const t=un("horizontal"===B?((null===n(17,k=D.paddings)||void 0===k?void 0:k.left)||0)+((null===n(18,C=D.paddings)||void 0===C?void 0:C.right)||0):((null===n(19,E=D.paddings)||void 0===E?void 0:E.top)||0)+((null===n(20,A=D.paddings)||void 0===A?void 0:A.bottom)||0)),e=null===n(21,j=p.neighbour_page_width)||void 0===j?void 0:j.value;n(29,L=e?"calc(100% + ".concat(t," - 2 * ").concat(un(e)," - 2 * ").concat(T,")"):"100%")}else if("percentage"===(null==p?void 0:p.type)){const t=null===n(22,V=p.page_width)||void 0===V?void 0:V.value;n(29,L="".concat(Number(t),"%"))}2013265920&t.$$.dirty[0]&&n(9,c={"grid-gap":T,padding:R,[s]:L}),67108864&t.$$.dirty[0]&&n(8,u={orientation:B}),41943040&t.$$.dirty[0]&&n(7,d=M||O),16777232&t.$$.dirty[0]&&function(t,e){const n=D.id;if(n){const i=new Map(f);r=h,f=i.set(n,{instId:N,size:t,currentItem:e,scrollToPagerItem:U}),o=f,r.set(o)}var r,o}(r.length,J)},n(6,h=I.getStore("pagers")),$(),$=yt(h,(t=>n(36,f=t))),[D,P,S,F,r,z,h,d,u,c,l,a,i,o,{scrollSnap:"center"},W,w,k,C,E,A,j,V,M,J,O,B,T,R,L,s,p,g,m,v,function(t){ge[t?"unshift":"push"]((()=>{z=t,n(5,z)}))}]}const si={indicator:"divkit-d8e3",indicator__scroller:"divkit-b5db",indicator__items:"divkit-d5d9",indicator__item:"divkit-f662",indicator__item_active:"divkit-b39c"};function ci(t,e,n){const r=t.slice();r[34]=e[n],r[37]=n;const o=r[37]===r[13].currentItem;return r[35]=o,r}function ui(t){let e,n=Array(t[13].size),r=[];for(let e=0;e<n.length;e+=1)r[e]=di(ci(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=Wt()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=Wt()},m(t,n){for(let e=0;e<r.length;e+=1)r[e].m(t,n);Mt(t,e,n)},p(t,o){if(3153920&o[0]){let i;for(n=Array(t[13].size),i=0;i<n.length;i+=1){const a=ci(t,n,i);r[i]?r[i].p(a,o):(r[i]=di(a),r[i].c(),r[i].m(e.parentNode,e))}for(;i<r.length;i+=1)r[i].d(1);r.length=n.length}},d(t){Ot(r,t),t&&Jt(e)}}}function di(t){let e,n,r,o,i,a,l,s;function c(){return t[28](t[37])}return{c(){e=Bt("div"),this.h()},l(t){e=Yt(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),Gt(e).forEach(Jt),this.h()},h(){qt(e,"class",n=_n("indicator__item",si,{active:t[35]})+" divkit-bd25"),qt(e,"role","tab"),qt(e,"id",r=t[13].instId+"-tab-"+t[37]),qt(e,"aria-controls",o=t[13].instId+"-panel-"+t[37]),qt(e,"aria-selected",i=t[35]?"true":"false"),qt(e,"tabindex",a=t[35]?0:-1)},m(n,r){Mt(n,e,r),l||(s=[Ut(e,"click",c),Ut(e,"keydown",t[21])],l=!0)},p(l,s){t=l,8192&s[0]&&n!==(n=_n("indicator__item",si,{active:t[35]})+" divkit-bd25")&&qt(e,"class",n),8192&s[0]&&r!==(r=t[13].instId+"-tab-"+t[37])&&qt(e,"id",r),8192&s[0]&&o!==(o=t[13].instId+"-panel-"+t[37])&&qt(e,"aria-controls",o),8192&s[0]&&i!==(i=t[35]?"true":"false")&&qt(e,"aria-selected",i),8192&s[0]&&a!==(a=t[35]?0:-1)&&qt(e,"tabindex",a)},d(t){t&&Jt(e),l=!1,ft(s)}}}function hi(t){let e,n,r,o,i="0 ".concat(cn((t[10]-1)*t[4]/2)),a="0 ".concat(cn((t[9]-t[4])/2)),l=t[13]&&ui(t);return{c(){e=Bt("div"),n=Bt("div"),l&&l.c(),this.h()},l(t){e=Yt(t,"DIV",{class:!0});var r=Gt(e);n=Yt(r,"DIV",{class:!0,role:!0});var o=Gt(n);l&&l.l(o),o.forEach(Jt),r.forEach(Jt),this.h()},h(){qt(n,"class",r=si.indicator__items),qt(n,"role","tablist"),ne(n,"margin",i,!1),ne(n,"--divkit-indicator-width",cn(t[4]),!1),ne(n,"--divkit-indicator-height",cn(t[5]),!1),ne(n,"--divkit-indicator-border-radius",cn(t[6]),!1),ne(n,"--divkit-indicator-active-color",t[7],!1),ne(n,"--divkit-indicator-inactive-color",t[8],!1),ne(n,"--divkit-indicator-active-scale",t[10],!1),ne(n,"--divkit-indicator-margin",a,!1),qt(e,"class",o=si.indicator__scroller)},m(r,o){Mt(r,e,o),zt(e,n),l&&l.m(n,null),t[29](n),t[30](e)},p(t,e){t[13]?l?l.p(t,e):(l=ui(t),l.c(),l.m(n,null)):l&&(l.d(1),l=null),1040&e[0]&&i!==(i="0 ".concat(cn((t[10]-1)*t[4]/2)))&&ne(n,"margin",i,!1),16&e[0]&&ne(n,"--divkit-indicator-width",cn(t[4]),!1),32&e[0]&&ne(n,"--divkit-indicator-height",cn(t[5]),!1),64&e[0]&&ne(n,"--divkit-indicator-border-radius",cn(t[6]),!1),128&e[0]&&ne(n,"--divkit-indicator-active-color",t[7],!1),256&e[0]&&ne(n,"--divkit-indicator-inactive-color",t[8],!1),1024&e[0]&&ne(n,"--divkit-indicator-active-scale",t[10],!1),528&e[0]&&a!==(a="0 ".concat(cn((t[9]-t[4])/2)))&&ne(n,"--divkit-indicator-margin",a,!1)},d(n){n&&Jt(e),l&&l.d(),t[29](null),t[30](null)}}}function fi(t){let e,n;return e=new Yn({props:{cls:_n("indicator",si,{}),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[hi]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(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]),16368&n[0]|128&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function pi(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g=st,m=st,v=st,$=st,y=st,_=st;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>_()));let{json:b={}}=e,{templateContext:x}=e,{origJson:w}=e,{layoutParams:k}=e;const E=he(rn);let A,j,V,D=10,P=10,S=5,F="#ffdc60",I=C("#33919cb5"),N=15,z=1.3;function M(t){t!==V.currentItem&&V.scrollToPagerItem(t)}async function J(t){V.scrollToPagerItem(t),await be();const e=j.querySelector(".".concat(si.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&n(0,b=t.json),"templateContext"in t&&n(1,x=t.templateContext),"origJson"in t&&n(2,w=t.origJson),"layoutParams"in t&&n(3,k=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&(n(19,r=E.getDerivedFromVars(b.shape)),_(),_=yt(r,(t=>n(27,p=t)))),134217840&t.$$.dirty[0]&&p&&(p.item_width&&n(4,D=An(p.item_width.value,D)),p.item_height&&n(5,P=An(p.item_height.value,P)),p.corner_radius&&n(6,S=An(p.corner_radius.value,S))),1&t.$$.dirty[0]&&(n(18,o=E.getDerivedFromVars(b.active_item_color)),y(),y=yt(o,(t=>n(26,f=t)))),67108992&t.$$.dirty[0]&&n(7,F=C(f,1,F)),1&t.$$.dirty[0]&&(n(17,i=E.getDerivedFromVars(b.inactive_item_color)),$(),$=yt(i,(t=>n(25,h=t)))),33554688&t.$$.dirty[0]&&n(8,I=C(h,1,I)),1&t.$$.dirty[0]&&(n(16,a=E.getDerivedFromVars(b.space_between_centers)),v(),v=yt(a,(t=>n(24,d=t)))),16777728&t.$$.dirty[0]&&d&&n(9,N=An(d.value,N)),1&t.$$.dirty[0]&&(n(15,l=E.getDerivedFromVars(b.active_item_size)),m(),m=yt(l,(t=>n(23,u=t)))),8389632&t.$$.dirty[0]&&n(10,z=Qn(u,z)),4194304&t.$$.dirty[0]&&async function(t){if(b.pager_id&&t.has(b.pager_id)){n(13,V=t.get(b.pager_id)),await be();const e=j.children[V.currentItem].offsetLeft;A.scroll({left:e-A.clientWidth/2,behavior:"smooth"})}}(c)},n(14,s=E.getStore("pagers")),g(),g=yt(s,(t=>n(22,c=t))),[b,x,w,k,D,P,S,F,I,N,z,A,j,V,s,l,a,i,o,r,M,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=V;if(37===t.which)J(n-1<0?n:n-1);else if(39===t.which)J(n+1>=e?n:n+1);else if(36===t.which)J(0);else{if(35!==t.which)return;J(e-1)}t.preventDefault()},c,u,d,h,f,p,t=>M(t),function(t){ge[t?"unshift":"push"]((()=>{j=t,n(12,j)}))},function(t){ge[t?"unshift":"push"]((()=>{A=t,n(11,A)}))}]}const gi={slider:"divkit-ef4f",slider__input:"divkit-d1d6",slider__input_secondary:"divkit-c798",slider__thumb:"divkit-f345",slider__thumb_secondary:"divkit-e198","slider__tracks-wrapper":"divkit-f733","slider__tracks-inner":"divkit-ac90",slider__track:"divkit-e956","slider__active-track":"divkit-ec5b","slider__thumb-text-wrapper":"divkit-ee57","slider__thumb-text":"divkit-c4af","slider__thumb-text_secondary":"divkit-d882",slider__tick:"divkit-bd9b",slider__tick_active:"divkit-d8ce",slider__tick_inactive:"divkit-e71e"};function mi(t,e){var n,r,o;if(!t||!t.shape||!t.color)return e;const i=C(t.color),a=Number((null===(n=t.shape.item_width)||void 0===n?void 0:n.value)||10),l=Number((null===(r=t.shape.item_height)||void 0===r?void 0:r.value)||10),s=Number((null===(o=t.shape.corner_radius)||void 0===o?void 0:o.value)||5);if("shape_drawable"===t.type&&"transparent"!==i&&"rounded_rectangle"===t.shape.type){var c,u;const e={},n=null!==(c=t.stroke)&&void 0!==c&&c.color?C(t.stroke.color):"",r=null!==(u=t.stroke)&&void 0!==u&&u.width?Number(t.stroke.width||1):"";return e.width=a,e.height=l,e.borderRadius=s,e.background=i,n&&r&&(e.boxShadow="inset 0 0 0 ".concat(cn(r)," ").concat(n)),e}return e}function vi(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&C(t.text_color)||"#000",o=er(t.font_weight);if(tr(t.font_size)&&"transparent"!==r){var i,a;const e={fontSize:cn(t.font_size),fontWeight:o,textColor:r};return"number"==typeof(null==n||null===(i=n.x)||void 0===i?void 0:i.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 $i(t,e,n){return Math.max(e,Math.min(n,t))}function yi(t,e,n){const r=t.slice();return r[81]=e[n],r}function _i(t,e,n){const r=t.slice();return r[81]=e[n],r}function bi(t){let e,n;return e=new Yn({props:{cls:_n("slider",gi,t[21]),style:t[22],customDescription:!0,customActions:"slider",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ei]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};2097152&n[0]&&(r.cls=_n("slider",gi,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]|16777216&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function xi(t){let e,n,r,o=t[12]&&wi(t),i=t[37]&&function(t){let e,n,r,o,i;return{c(){e=Bt("div"),n=Bt("div"),r=Rt(t[7]),this.h()},l(o){e=Yt(o,"DIV",{class:!0});var i=Gt(e);n=Yt(i,"DIV",{class:!0});var a=Gt(n);r=Qt(a,t[7]),a.forEach(Jt),i.forEach(Jt),this.h()},h(){var r,a,l;qt(n,"class",o=gi["slider__thumb-text-inner"]),ne(n,"font-size",(null===(r=t[13])||void 0===r?void 0:r.fontSize)||"1em",!1),ne(n,"font-weight",(null===(a=t[13])||void 0===a?void 0:a.fontWeight)||"",!1),ne(n,"color",(null===(l=t[13])||void 0===l?void 0:l.textColor)||"#000",!1),qt(e,"class",i=gi["slider__thumb-text"]+" "+gi["slider__thumb-text_secondary"])},m(t,o){Mt(t,e,o),zt(e,n),zt(n,r)},p(t,e){var o,i,a;128&e[0]&&ee(r,t[7]),8192&e[0]&&ne(n,"font-size",(null===(o=t[13])||void 0===o?void 0:o.fontSize)||"1em",!1),8192&e[0]&&ne(n,"font-weight",(null===(i=t[13])||void 0===i?void 0:i.fontWeight)||"",!1),8192&e[0]&&ne(n,"color",(null===(a=t[13])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&Jt(e)}}}(t);return{c(){e=Bt("div"),o&&o.c(),n=Lt(),i&&i.c(),this.h()},l(t){e=Yt(t,"DIV",{class:!0,"aria-hidden":!0});var r=Gt(e);o&&o.l(r),n=te(r),i&&i.l(r),r.forEach(Jt),this.h()},h(){qt(e,"class",r=gi["slider__thumb-text-wrapper"]),qt(e,"aria-hidden","true")},m(t,r){Mt(t,e,r),o&&o.m(e,null),zt(e,n),i&&i.m(e,null)},p(t,r){t[12]?o?o.p(t,r):(o=wi(t),o.c(),o.m(e,n)):o&&(o.d(1),o=null),t[37]&&i.p(t,r)},d(t){t&&Jt(e),o&&o.d(),i&&i.d()}}}function wi(t){let e,n,r,o,i;return{c(){e=Bt("div"),n=Bt("div"),r=Rt(t[6]),this.h()},l(o){e=Yt(o,"DIV",{class:!0});var i=Gt(e);n=Yt(i,"DIV",{class:!0});var a=Gt(n);r=Qt(a,t[6]),a.forEach(Jt),i.forEach(Jt),this.h()},h(){var r,a,l;qt(n,"class",o=gi["slider__thumb-text-inner"]),ne(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em",!1),ne(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||"",!1),ne(n,"color",(null===(l=t[12])||void 0===l?void 0:l.textColor)||"#000",!1),qt(e,"class",i=gi["slider__thumb-text"])},m(t,o){Mt(t,e,o),zt(e,n),zt(n,r)},p(t,e){var o,i,a;64&e[0]&&ee(r,t[6]),4096&e[0]&&ne(n,"font-size",(null===(o=t[12])||void 0===o?void 0:o.fontSize)||"1em",!1),4096&e[0]&&ne(n,"font-weight",(null===(i=t[12])||void 0===i?void 0:i.fontWeight)||"",!1),4096&e[0]&&ne(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&Jt(e)}}}function ki(t){let e,n;return{c(){e=Bt("div"),this.h()},l(t){e=Yt(t,"DIV",{class:!0}),Gt(e).forEach(Jt),this.h()},h(){qt(e,"class",n=gi.slider__tick+" "+gi.slider__tick_active),ne(e,"--divkit-slider-tick",t[81],!1)},m(t,n){Mt(t,e,n)},p(t,n){131072&n[0]&&ne(e,"--divkit-slider-tick",t[81],!1)},d(t){t&&Jt(e)}}}function Ci(t){let e,n;return{c(){e=Bt("div"),this.h()},l(t){e=Yt(t,"DIV",{class:!0}),Gt(e).forEach(Jt),this.h()},h(){qt(e,"class",n=gi.slider__tick+" "+gi.slider__tick_inactive),ne(e,"--divkit-slider-tick",t[81],!1)},m(t,n){Mt(t,e,n)},p(t,n){262144&n[0]&&ne(e,"--divkit-slider-tick",t[81],!1)},d(t){t&&Jt(e)}}}function Ei(t){let e,n,r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k=(t[12]||t[37]&&t[13])&&xi(t),C=t[17],E=[];for(let e=0;e<C.length;e+=1)E[e]=ki(_i(t,C,e));let A=t[18],j=[];for(let e=0;e<A.length;e+=1)j[e]=Ci(yi(t,A,e));let V=t[37]&&function(t){let e,n;return{c(){e=Bt("div"),this.h()},l(t){e=Yt(t,"DIV",{class:!0}),Gt(e).forEach(Jt),this.h()},h(){qt(e,"class",n=gi.slider__thumb+" "+gi.slider__thumb_secondary),ne(e,"border-radius",cn(t[9].borderRadius),!1),ne(e,"background",t[9].background,!1),ne(e,"box-shadow",t[9].boxShadow||"",!1)},m(t,n){Mt(t,e,n)},p(t,n){512&n[0]&&ne(e,"border-radius",cn(t[9].borderRadius),!1),512&n[0]&&ne(e,"background",t[9].background,!1),512&n[0]&&ne(e,"box-shadow",t[9].boxShadow||"",!1)},d(t){t&&Jt(e)}}}(t),D=t[37]&&function(t){let e,n,r,o,i;return{c(){e=Bt("input"),this.h()},l(t){e=Yt(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){qt(e,"type","range"),qt(e,"class",n=t[16]?gi.slider__input:"".concat(gi.slider__input," ").concat(gi.slider__input_secondary)),qt(e,"min",t[4]),qt(e,"max",t[5]),qt(e,"step","1"),e.value=r=t[16]?t[6]:t[7],qt(e,"aria-label",t[20])},m(n,r){Mt(n,e,r),o||(i=[Ut(e,"input",t[75]),Ut(e,"mousedown",t[37]?t[40]:null),Ut(e,"touchstart",t[37]?t[40]:null)],o=!0)},p(t,o){65536&o[0]&&n!==(n=t[16]?gi.slider__input:"".concat(gi.slider__input," ").concat(gi.slider__input_secondary))&&qt(e,"class",n),16&o[0]&&qt(e,"min",t[4]),32&o[0]&&qt(e,"max",t[5]),65728&o[0]&&r!==(r=t[16]?t[6]:t[7])&&(e.value=r),1048576&o[0]&&qt(e,"aria-label",t[20])},d(t){t&&Jt(e),o=!1,ft(i)}}}(t);return{c(){e=Bt("div"),k&&k.c(),n=Lt(),r=Bt("div"),o=Bt("div"),a=Lt(),l=Bt("div"),c=Lt();for(let t=0;t<E.length;t+=1)E[t].c();u=Lt();for(let t=0;t<j.length;t+=1)j[t].c();d=Lt(),h=Bt("div"),p=Lt(),V&&V.c(),g=Lt(),m=Bt("input"),y=Lt(),D&&D.c(),this.h()},l(t){e=Yt(t,"DIV",{class:!0});var i=Gt(e);k&&k.l(i),n=te(i),r=Yt(i,"DIV",{class:!0});var s=Gt(r);o=Yt(s,"DIV",{class:!0}),Gt(o).forEach(Jt),a=te(s),l=Yt(s,"DIV",{class:!0}),Gt(l).forEach(Jt),c=te(s);for(let t=0;t<E.length;t+=1)E[t].l(s);u=te(s);for(let t=0;t<j.length;t+=1)j[t].l(s);d=te(s),h=Yt(s,"DIV",{class:!0}),Gt(h).forEach(Jt),p=te(s),V&&V.l(s),g=te(s),m=Yt(s,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),y=te(s),D&&D.l(s),s.forEach(Jt),i.forEach(Jt),this.h()},h(){qt(o,"class",i=gi.slider__track),ne(o,"height",cn(t[10].height),!1),ne(o,"border-radius",cn(t[10].borderRadius),!1),ne(o,"background",t[10].background,!1),ne(o,"box-shadow",t[10].boxShadow||"",!1),qt(l,"class",s=gi["slider__active-track"]),ne(l,"left",(100*t[23]).toFixed(2)+"%",!1),ne(l,"width",(100*t[24]).toFixed(2)+"%",!1),ne(l,"height",cn(t[11].height),!1),ne(l,"border-radius",cn(t[11].borderRadius),!1),ne(l,"background",t[11].background,!1),ne(l,"box-shadow",t[11].boxShadow||"",!1),qt(h,"class",f=gi.slider__thumb),ne(h,"border-radius",cn(t[8].borderRadius),!1),ne(h,"background",t[8].background,!1),ne(h,"box-shadow",t[8].boxShadow||"",!1),qt(m,"type","range"),qt(m,"class",v=t[16]?"".concat(gi.slider__input," ").concat(gi.slider__input_secondary):gi.slider__input),qt(m,"min",t[4]),qt(m,"max",t[5]),qt(m,"step","1"),m.value=$=t[16]?t[7]:t[6],qt(m,"aria-label",t[19]),qt(r,"class",_=gi["slider__tracks-inner"]),qt(e,"class",b=gi["slider__tracks-wrapper"])},m(i,s){Mt(i,e,s),k&&k.m(e,null),zt(e,n),zt(e,r),zt(r,o),zt(r,a),zt(r,l),zt(r,c);for(let t=0;t<E.length;t+=1)E[t].m(r,null);zt(r,u);for(let t=0;t<j.length;t+=1)j[t].m(r,null);zt(r,d),zt(r,h),zt(r,p),V&&V.m(r,null),zt(r,g),zt(r,m),zt(r,y),D&&D.m(r,null),t[76](r),x||(w=Ut(m,"input",t[74]),x=!0)},p(t,i){if(t[12]||t[37]&&t[13]?k?k.p(t,i):(k=xi(t),k.c(),k.m(e,n)):k&&(k.d(1),k=null),1024&i[0]&&ne(o,"height",cn(t[10].height),!1),1024&i[0]&&ne(o,"border-radius",cn(t[10].borderRadius),!1),1024&i[0]&&ne(o,"background",t[10].background,!1),1024&i[0]&&ne(o,"box-shadow",t[10].boxShadow||"",!1),8388608&i[0]&&ne(l,"left",(100*t[23]).toFixed(2)+"%",!1),16777216&i[0]&&ne(l,"width",(100*t[24]).toFixed(2)+"%",!1),2048&i[0]&&ne(l,"height",cn(t[11].height),!1),2048&i[0]&&ne(l,"border-radius",cn(t[11].borderRadius),!1),2048&i[0]&&ne(l,"background",t[11].background,!1),2048&i[0]&&ne(l,"box-shadow",t[11].boxShadow||"",!1),131072&i[0]){let e;for(C=t[17],e=0;e<C.length;e+=1){const n=_i(t,C,e);E[e]?E[e].p(n,i):(E[e]=ki(n),E[e].c(),E[e].m(r,u))}for(;e<E.length;e+=1)E[e].d(1);E.length=C.length}if(262144&i[0]){let e;for(A=t[18],e=0;e<A.length;e+=1){const n=yi(t,A,e);j[e]?j[e].p(n,i):(j[e]=Ci(n),j[e].c(),j[e].m(r,d))}for(;e<j.length;e+=1)j[e].d(1);j.length=A.length}256&i[0]&&ne(h,"border-radius",cn(t[8].borderRadius),!1),256&i[0]&&ne(h,"background",t[8].background,!1),256&i[0]&&ne(h,"box-shadow",t[8].boxShadow||"",!1),t[37]&&V.p(t,i),65536&i[0]&&v!==(v=t[16]?"".concat(gi.slider__input," ").concat(gi.slider__input_secondary):gi.slider__input)&&qt(m,"class",v),16&i[0]&&qt(m,"min",t[4]),32&i[0]&&qt(m,"max",t[5]),65728&i[0]&&$!==($=t[16]?t[7]:t[6])&&(m.value=$),524288&i[0]&&qt(m,"aria-label",t[19]),t[37]&&D.p(t,i)},d(n){n&&Jt(e),k&&k.d(),Ot(E,n),Ot(j,n),V&&V.d(),D&&D.d(),t[76](null),x=!1,w()}}}function Ai(t){let e,n,r=!t[14]&&bi(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){t[14]?r&&(Pe(),Ie(r,1,1,(()=>{r=null})),Se()):r?(r.p(t,n),16384&n[0]&&Fe(r,1)):(r=bi(t),r.c(),Fe(r,1),r.m(e.parentNode,e))},i(t){n||(Fe(r),n=!0)},o(t){Ie(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function ji(t,e,n,r,o){let i=[];if(o)for(let o=t;o<e;++o)i.push((o-n)/(r-n));else{for(let e=n;e<t;++e)i.push((e-n)/(r-n));for(let t=e;t<r+1;++t)i.push((t-n)/(r-n))}return i}function Vi(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,C,E,A,j,V,D,P,S,F,I,N,z,M,J,O,B,T=st,R=st,L=st,W=st,U=st,q=st,H=st,G=st,K=st,X=st,Y=st,Z=st;var Q,tt,et,nt,rt,ot,it,at;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),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:lt={}}=e,{templateContext:ct}=e,{origJson:ut}=e,{layoutParams:dt}=e;const ht={width:10,height:10,borderRadius:5,background:"#000"},ft=he(rn),pt=he(Sn);let gt,mt=!1,vt=0,$t=100;const bt=ft.getJsonWithVars(lt.thumb_value_variable),xt=ft.getJsonWithVars(lt.thumb_secondary_value_variable);let wt=bt&&ft.getVariable(bt,"integer")||Ze("temp","integer",0);_t(t,wt,(t=>n(71,J=t)));let kt=xt&&ft.getVariable(xt,"integer")||Ze("temp","integer",0);_t(t,kt,(t=>n(70,M=t)));let Ct,Et,At,jt=$i(J||0,vt,$t),Vt=$i(M||0,vt,$t),Dt=ht,Pt=Dt,St=ht,Ft=ht,It=null,Nt=null,zt=At,Mt="",Jt="",Ot=!1;function Bt(t,e){const r=Number(t.target.value);mt===("first"===e)?(n(7,Vt=r),kt.setValue(r)):(n(6,jt=r),wt.setValue(r))}return t.$$set=t=>{"json"in t&&n(0,lt=t.json),"templateContext"in t&&n(1,ct=t.templateContext),"origJson"in t&&n(2,ut=t.origJson),"layoutParams"in t&&n(3,dt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(36,r=ft.getDerivedFromVars(lt.min_value)),Z(),Z=yt(r,(t=>n(73,B=t)))),1&t.$$.dirty[0]&&(n(35,o=ft.getDerivedFromVars(lt.max_value)),Y(),Y=yt(o,(t=>n(72,O=t)))),48&t.$$.dirty[0]|3072&t.$$.dirty[2]&&(n(4,vt=Un(B,vt)),n(5,$t=Un(O,$t))),112&t.$$.dirty[0]|512&t.$$.dirty[2]){const t=$i(J||0,vt,$t);t!==jt&&n(6,jt=t)}if(176&t.$$.dirty[0]|256&t.$$.dirty[2]){const t=$i(M||0,vt,$t);t!==Vt&&n(7,Vt=t)}if(1&t.$$.dirty[0]&&(n(34,i=ft.getDerivedFromVars(lt.thumb_style)),X(),X=yt(i,(t=>n(69,z=t)))),256&t.$$.dirty[0]|128&t.$$.dirty[2]&&n(8,Dt=mi(z,Dt)),1&t.$$.dirty[0]&&(n(33,a=ft.getDerivedFromVars(lt.thumb_secondary_style)),K(),K=yt(a,(t=>n(68,N=t)))),256&t.$$.dirty[0]|64&t.$$.dirty[2]&&n(9,Pt=mi(N,Dt)),1&t.$$.dirty[0]&&(n(32,l=ft.getDerivedFromVars(lt.track_inactive_style)),G(),G=yt(l,(t=>n(67,I=t)))),1024&t.$$.dirty[0]|32&t.$$.dirty[2]&&n(10,St=mi(I,St)),1&t.$$.dirty[0]&&(n(31,s=ft.getDerivedFromVars(lt.track_active_style)),H(),H=yt(s,(t=>n(66,F=t)))),2048&t.$$.dirty[0]|16&t.$$.dirty[2]&&n(11,Ft=mi(F,Ft)),48&t.$$.dirty[0]&&n(59,c=$t-vt+1<=20),1&t.$$.dirty[0]&&(n(30,u=ft.getDerivedFromVars(lt.tick_mark_active_style)),q(),q=yt(u,(t=>n(65,S=t)))),268435456&t.$$.dirty[1]|8&t.$$.dirty[2])if(c){let t=mi(S,ht);t!==ht&&n(50,It=t)}else n(50,It=null);if(240&t.$$.dirty[0]|524288&t.$$.dirty[1]&&n(17,Ct=It?xt?ji(Math.min(jt,Vt),Math.max(jt,Vt)+1,vt,$t,!0):ji(vt,jt,vt,$t,!0):[]),1&t.$$.dirty[0]&&(n(29,d=ft.getDerivedFromVars(lt.tick_mark_inactive_style)),U(),U=yt(d,(t=>n(64,P=t)))),268435456&t.$$.dirty[1]|4&t.$$.dirty[2])if(c){let t=mi(P,ht);t!==ht&&n(51,Nt=t)}else n(51,Nt=null);if(240&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(18,Et=Nt?xt?ji(Math.min(jt,Vt),Math.max(jt,Vt)+1,vt,$t,!1):ji(jt+1,$t+1,vt,$t,!0):[]),1&t.$$.dirty[0]&&(n(28,h=ft.getDerivedFromVars(lt.thumb_text_style)),W(),W=yt(h,(t=>n(63,D=t)))),4096&t.$$.dirty[0]|2&t.$$.dirty[2]&&n(12,At=vi(D,At)),1&t.$$.dirty[0]&&(n(27,f=ft.getDerivedFromVars(lt.thumb_secondary_text_style)),L(),L=yt(f,(t=>n(62,V=t)))),4096&t.$$.dirty[0]|1&t.$$.dirty[2]&&n(13,zt=vi(V,At)),1&t.$$.dirty[0]&&(n(26,p=ft.getDerivedFromVars(lt.accessibility)),R(),R=yt(p,(t=>n(61,j=t)))),1073741824&t.$$.dirty[1]&&((null==j?void 0:j.description)?n(19,Mt=j.description):ft.logError(on(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),1&t.$$.dirty[0]&&(n(25,g=ft.getDerivedFromVars(lt.secondary_value_accessibility)),T(),T=yt(g,(t=>n(60,A=t)))),536870912&t.$$.dirty[1]&&((null==A?void 0:A.description)?n(20,Jt=A.description):xt&&ft.logError(on(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),19712&t.$$.dirty[0]){let t=!1;pt.hasAction()?(ft.logError(on(new Error('Cannot show "slider" inside component with action'))),t=!0):Dt===ht?(ft.logError(on(new Error('Missing "thumb_style" in slider'))),t=!0):Ft===ht?(ft.logError(on(new Error('Missing "track_active_style" in slider'))),t=!0):St===ht&&(ft.logError(on(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Ot&&n(14,Ot=t)}3840&t.$$.dirty[0]&&n(58,m=Math.max(...[Dt.height,Pt.height,St.height,Ft.height,0].filter(kn))),768&t.$$.dirty[0]&&n(57,v=cn(Math.max(...[Dt.width,Pt.width,0].filter(kn)))),768&t.$$.dirty[0]&&n(56,$=cn(Math.max(...[Dt.height,Pt.height,0].filter(kn)))),112&t.$$.dirty[0]&&n(55,y=(jt-vt)/($t-vt)),176&t.$$.dirty[0]&&n(54,_=xt?(Vt-vt)/($t-vt):void 0),25165824&t.$$.dirty[1]&&n(24,b=void 0!==_?Math.abs(_-y):y),25165824&t.$$.dirty[1]&&n(23,x=void 0!==_?Math.min(_,y):0),13056&t.$$.dirty[0]|134223872&t.$$.dirty[1]&&n(53,w=-Math.min(...[(m-Dt.height)/2+((null===n(42,Q=null==At?void 0:At.offset)||void 0===Q?void 0:Q.y)||0),xt?(m-Pt.height)/2+((null===n(43,tt=null==zt?void 0:zt.offset)||void 0===tt?void 0:tt.y)||0):0,0].filter((t=>void 0!==t&&"number"==typeof t&&!isNaN(t))))),13056&t.$$.dirty[0]|134242304&t.$$.dirty[1]&&n(52,k=Math.max(...[((null===n(44,et=null==At?void 0:At.offset)||void 0===et?void 0:et.y)||0)-(m-Dt.height)/2,xt?((null===n(45,nt=null==zt?void 0:zt.offset)||void 0===nt?void 0:nt.y)||0)-(m-Pt.height)/2:0,0].filter((t=>void 0!==t&&"number"==typeof t&&!isNaN(t))))),13056&t.$$.dirty[0]|268402688&t.$$.dirty[1]&&n(22,C={"--divkit-slider-thumb-width":cn(Dt.width),"--divkit-slider-thumb-height":cn(Dt.height),"--divkit-slider-thumb-secondary-width":cn(Pt.width),"--divkit-slider-thumb-secondary-height":cn(Pt.height),"--divkit-slider-text-offset-x":(null===n(46,rt=null==At?void 0:At.offset)||void 0===rt?void 0:rt.x)?un(At.offset.x):void 0,"--divkit-slider-text-offset-y":(null===n(47,ot=null==At?void 0:At.offset)||void 0===ot?void 0:ot.y)?un(At.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===n(48,it=null==zt?void 0:zt.offset)||void 0===it?void 0:it.x)?un(zt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===n(49,at=null==zt?void 0:zt.offset)||void 0===at?void 0:at.y)?un(zt.offset.y):void 0,"--divkit-slider-tick-active-width":It?cn(It.width):void 0,"--divkit-slider-tick-active-height":It?cn(It.height):void 0,"--divkit-slider-tick-active-border-radius":It?cn(It.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==It?void 0:It.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==It?void 0:It.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Nt?cn(Nt.width):void 0,"--divkit-slider-tick-inactive-height":Nt?cn(Nt.height):void 0,"--divkit-slider-tick-inactive-border-radius":Nt?cn(Nt.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==Nt?void 0:Nt.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==Nt?void 0:Nt.boxShadow)||void 0,"--divkit-slider-max-height":cn(m),"--divkit-slider-max-thumb-width":v,"--divkit-slider-max-thumb-height":$,"--divkit-slider-track-part":y,"--divkit-slider-track-secondary-part":_,"--divkit-slider-offset-top":un(w),"--divkit-slider-offset-bottom":un(k)})},n(21,E={}),[lt,ct,ut,dt,vt,$t,jt,Vt,Dt,Pt,St,Ft,At,zt,Ot,gt,mt,Ct,Et,Mt,Jt,E,C,x,b,g,p,f,h,d,u,s,l,a,i,o,r,xt,wt,kt,function(t){var e,r;const o="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===o)return;const i=gt.getBoundingClientRect(),a=(o-i.left)/i.width,l=($t-vt)*a,s=Math.round($i(l,vt,$t));n(16,mt=s<(jt+Vt)/2==jt<Vt)},Bt,Q,tt,et,nt,rt,ot,it,at,It,Nt,k,w,_,y,$,v,m,c,A,j,V,D,P,S,F,I,N,z,M,J,O,B,t=>Bt(t,"first"),t=>Bt(t,"second"),function(t){ge[t?"unshift":"push"]((()=>{gt=t,n(15,gt)}))}]}const Di={input:"divkit-c3a4",input__wrapper:"divkit-ef7e",input__holder:"divkit-bb3d",input_multiline:"divkit-e48a",input__input:"divkit-f11e","input_highlight-color":"divkit-cc00","input_vertical-overflow":"divkit-b707"};function Pi(t){let e,n;return e=new Yn({props:{cls:_n("input",Di,t[12]),style:t[11],customDescription:!0,customActions:"input",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ni]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(t){Re(e.$$.fragment,t)},m(t,r){Le(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=_n("input",Di,t[12])),2048&n[0]&&(r.style=t[11]),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]),100208&n[0]|2&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ie(e.$$.fragment,t),n=!1},d(t){We(e,t)}}}function Si(t){let e;return{c(){e=Rt("")},l(t){e=Qt(t,"")},m(t,n){Mt(t,e,n)},d(t){t&&Jt(e)}}}function Fi(t){let e,n,r,o;return{c(){e=Bt("input"),this.h()},l(t){e=Yt(t,"INPUT",{type:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),this.h()},h(){qt(e,"type",t[9]),qt(e,"class",n=Di.input__input),qt(e,"autocomplete","off"),qt(e,"autocapitalize","off"),qt(e,"aria-label",t[10]),qt(e,"placeholder",t[15]),e.value=t[8]},m(n,i){Mt(n,e,i),t[57](e),r||(o=[Ut(e,"input",t[29]),Ut(e,"mousedown",(function(){pt(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),Ut(e,"click",(function(){pt(t[16]?t[31]:void 0)&&(t[16]?t[31]:void 0).apply(this,arguments)}))],r=!0)},p(n,r){t=n,512&r[0]&&qt(e,"type",t[9]),1024&r[0]&&qt(e,"aria-label",t[10]),32768&r[0]&&qt(e,"placeholder",t[15]),256&r[0]&&e.value!==t[8]&&(e.value=t[8])},d(n){n&&Jt(e),t[57](null),r=!1,ft(o)}}}function Ii(t){let e,n,r,o;return{c(){e=Bt("textarea"),this.h()},l(t){e=Yt(t,"TEXTAREA",{class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),Gt(e).forEach(Jt),this.h()},h(){qt(e,"class",n=Di.input__input),qt(e,"autocomplete","off"),qt(e,"autocapitalize","off"),qt(e,"aria-label",t[10]),qt(e,"placeholder",t[15]),e.value=t[8]},m(n,i){Mt(n,e,i),t[56](e),r||(o=[Ut(e,"input",t[29]),Ut(e,"mousedown",(function(){pt(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),Ut(e,"click",(function(){pt(t[16]?t[31]:void 0)&&(t[16]?t[31]:void 0).apply(this,arguments)}))],r=!0)},p(n,r){t=n,1024&r[0]&&qt(e,"aria-label",t[10]),32768&r[0]&&qt(e,"placeholder",t[15]),256&r[0]&&(e.value=t[8])},d(n){n&&Jt(e),t[56](null),r=!1,ft(o)}}}function Ni(t){let e,n,r,o,i,a,l=t[8].endsWith("\n")||!t[8],s=l&&Si();function c(t,e){return t[4]?Ii:Fi}let u=c(t),d=u(t);return{c(){e=Bt("span"),n=Bt("span"),r=Rt(t[8]),s&&s.c(),i=Lt(),d.c(),this.h()},l(o){e=Yt(o,"SPAN",{class:!0});var a=Gt(e);n=Yt(a,"SPAN",{class:!0,"aria-hidden":!0});var l=Gt(n);r=Qt(l,t[8]),s&&s.l(l),l.forEach(Jt),i=te(a),d.l(a),a.forEach(Jt),this.h()},h(){qt(n,"class",o=Di.input__holder),qt(n,"aria-hidden","true"),qt(e,"class",a=Di.input__wrapper)},m(o,a){Mt(o,e,a),zt(e,n),zt(n,r),s&&s.m(n,null),t[55](n),zt(e,i),d.m(e,null)},p(t,o){256&o[0]&&ee(r,t[8]),256&o[0]&&(l=t[8].endsWith("\n")||!t[8]),l?s||(s=Si(),s.c(),s.m(n,null)):s&&(s.d(1),s=null),u===(u=c(t))&&d?d.p(t,o):(d.d(1),d=u(t),d&&(d.c(),d.m(e,null)))},d(n){n&&Jt(e),s&&s.d(),t[55](null),d.d()}}}function zi(t){let e,n,r=!t[7]&&Pi(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){t[7]?r&&(Pe(),Ie(r,1,1,(()=>{r=null})),Se()):r?(r.p(t,n),128&n[0]&&Fe(r,1)):(r=Pi(t),r.c(),Fe(r,1),r.m(e.parentNode,e))},i(t){n||(Fe(r),n=!0)},o(t){Ie(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function Mi(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w=st,k=st;t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>k()));let{json:E={}}=e,{templateContext:A}=e,{origJson:j}=e,{layoutParams:V}=e;const D=he(rn);let P,S,F=!1,I=!1;const N=D.getJsonWithVars(E.text_variable);let z=!1;N||(z=!0,D.logError(on(new Error('Missing "text_variable" in "input"'))));let M=N&&D.getVariable(N,"string")||Ze("temp","string","");_t(t,M,(t=>n(54,b=t)));let J="";const O=D.getDerivedFromVars(E.hint_text);_t(t,O,(t=>n(53,_=t)));const B=D.getDerivedFromVars(E.hint_color);_t(t,B,(t=>n(52,y=t)));let T="";const R=D.getDerivedFromVars(E.font_size);_t(t,R,(t=>n(51,$=t)));let L=12;const W=D.getDerivedFromVars(E.font_weight);let U;_t(t,W,(t=>n(50,v=t)));const q=D.getDerivedFromVars(E.line_height);let H;_t(t,q,(t=>n(49,m=t)));const G=D.getDerivedFromVars(E.letter_spacing);_t(t,G,(t=>n(48,g=t)));let K="";const X=D.getDerivedFromVars(E.text_color);_t(t,X,(t=>n(47,p=t)));let Y="#000";const Z=D.getDerivedFromVars(E.highlight_color);_t(t,Z,(t=>n(46,f=t)));let Q="";const tt=D.getDerivedFromVars(E.keyboard_type);_t(t,tt,(t=>n(45,h=t)));const et={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};let nt="multi_line_text",rt="text";const ot=D.getDerivedFromVars(E.max_visible_lines);_t(t,ot,(t=>n(44,d=t)));let it="",at="";const lt=D.getDerivedFromVars(E.select_all_on_focus);function ct(){n(32,I=S.scrollHeight>S.offsetHeight)}return _t(t,lt,(t=>n(16,x=t))),ce((()=>{ct()})),t.$$set=t=>{"json"in t&&n(0,E=t.json),"templateContext"in t&&n(1,A=t.templateContext),"origJson"in t&&n(2,j=t.origJson),"layoutParams"in t&&n(3,V=t.layoutParams)},t.$$.update=()=>{if(8388608&t.$$.dirty[1]&&n(8,J=b),4194304&t.$$.dirty[1]&&n(15,r=_),2097156&t.$$.dirty[1]&&n(33,T=C(y,1,T)),1048584&t.$$.dirty[1]&&n(34,L=Qn($,L)),524304&t.$$.dirty[1]&&n(35,U=nr(v,U)),262152&t.$$.dirty[1]){const t=m;tr(t)&&n(36,H=t/L)}131080&t.$$.dirty[1]&&wn(g)&&n(37,K=cn(g/L*10)),65664&t.$$.dirty[1]&&n(38,Y=C(p,1,Y)),33024&t.$$.dirty[1]&&n(39,Q=C(f,1,Q)),16384&t.$$.dirty[1]&&h&&h in et&&(n(9,rt=et[h]),n(40,nt=h)),512&t.$$.dirty[1]&&n(4,o="multi_line_text"===nt),1&t.$$.dirty[0]&&(n(14,i=D.getDerivedFromVars(E.paddings)),k(),k=yt(i,(t=>n(43,u=t)))),12320&t.$$.dirty[1]&&tr(d)&&n(41,it="calc(".concat(d*(H||1.25)+"em"," + ").concat(un(An(null==u?void 0:u.top,0)+An(null==u?void 0:u.bottom,0)),")")),1&t.$$.dirty[0]&&(n(13,a=D.getDerivedFromVars(E.accessibility)),w(),w=yt(a,(t=>n(42,c=t)))),2048&t.$$.dirty[1]&&((null==c?void 0:c.description)?n(10,at=c.description):D.logError(on(new Error('Missing accessibility "description" for input'),{level:"warn"}))),16&t.$$.dirty[0]|258&t.$$.dirty[1]&&n(12,l={"highlight-color":Boolean(Q),"vertical-overflow":I,multiline:o}),1532&t.$$.dirty[1]&&n(11,s={"--divkit-input-hint-color":T,"--divkit-input-highlight-color":Q,"font-size":cn(L),"font-weight":U,"line-height":H,"letter-spacing":K,color:Y,"max-height":it})},[E,A,j,V,o,P,S,z,J,rt,at,s,l,a,i,r,x,M,O,B,R,W,q,G,X,Z,tt,ot,lt,function(t){const e=t.target.value||"";M.setValue(e),ct()},function(){F=!1,setTimeout((()=>{F=!0}),250)},function(){F||P.select()},I,T,L,U,H,K,Y,Q,nt,it,c,u,d,h,f,p,g,m,v,$,y,_,b,function(t){ge[t?"unshift":"push"]((()=>{S=t,n(6,S)}))},function(t){ge[t?"unshift":"push"]((()=>{P=t,n(5,P)}))},function(t){ge[t?"unshift":"push"]((()=>{P=t,n(5,P)}))}]}const Ji={text:class extends qe{constructor(t){super(),Ue(this,t,br,_r,vt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},container:class extends qe{constructor(t){super(),Ue(this,t,jr,Ar,vt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},separator:class extends qe{constructor(t){super(),Ue(this,t,Ir,Fr,vt,{json:0,templateContext:1,origJson:2,layoutParams:3})}},image:Lr,gif:Lr,grid:class extends qe{constructor(t){super(),Ue(this,t,Qr,Zr,vt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},gallery:class extends qe{constructor(t){super(),Ue(this,t,po,fo,vt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},tabs:class extends qe{constructor(t){super(),Ue(this,t,jo,Eo,vt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},state:class extends qe{constructor(t){super(),Ue(this,t,Qo,Yo,vt,{json:0,templateContext:1,origJson:2,layoutParams:3})}},pager:class extends qe{constructor(t){super(),Ue(this,t,li,ai,vt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},indicator:class extends qe{constructor(t){super(),Ue(this,t,pi,fi,vt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},slider:class extends qe{constructor(t){super(),Ue(this,t,Vi,Ai,vt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},input:class extends qe{constructor(t){super(),Ue(this,t,Mi,zi,vt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}}};function Oi(t){let e,n,r;var o=t[5];function i(t){return{props:{json:t[3],templateContext:t[4],layoutParams:t[2],origJson:t[1]||t[0]}}}return o&&(e=new o(i(t))),{c(){e&&Te(e.$$.fragment),n=Wt()},l(t){e&&Re(e.$$.fragment,t),n=Wt()},m(t,o){e&&Le(e,t,o),Mt(t,n,o),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]),o!==(o=t[5])){if(e){Pe();const t=e;Ie(t.$$.fragment,1,0,(()=>{We(t,1)})),Se()}o?(e=new o(i(t)),Te(e.$$.fragment),Fe(e.$$.fragment,1),Le(e,n.parentNode,n)):e=null}else o&&e.$set(a)},i(t){r||(e&&Fe(e.$$.fragment,t),r=!0)},o(t){e&&Ie(e.$$.fragment,t),r=!1},d(t){t&&Jt(n),e&&We(e,t)}}}function Bi(t){let e,n,r=t[5]&&Oi(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){let[o]=n;t[5]?r?(r.p(t,o),32&o&&Fe(r,1)):(r=Oi(t),r.c(),Fe(r,1),r.m(e.parentNode,e)):r&&(Pe(),Ie(r,1,1,(()=>{r=null})),Se())},i(t){n||(Fe(r),n=!0)},o(t){Ie(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function Ti(t,e,n){let{div:r}=e,{templateContext:o}=e,{origJson:i}=e,{layoutParams:a}=e;const l=he(rn);let s,c,u;return t.$$set=t=>{"div"in t&&n(0,r=t.div),"templateContext"in t&&n(6,o=t.templateContext),"origJson"in t&&n(1,i=t.origJson),"layoutParams"in t&&n(2,a=t.layoutParams)},t.$$.update=()=>{if(121&t.$$.dirty&&(n(3,s=r),n(4,c=o),n(5,u=s&&Ji[s.type]||void 0),!u&&(n(4,({templateContext:c,json:s}=l.processTemplate(s,c)),c,(n(3,s),n(0,r),n(6,o),n(5,u),n(4,c))),n(5,u=s&&Ji[s.type]||void 0),!u))){let t;t=(null==s?void 0:s.type)&&l.hasTemplate(s.type)?"Recursive template":"Unknown component",l.logError(on(new Error(t),{additional:{component:(null==s?void 0:s.type)||"<missing>"}}))}},[r,i,a,s,c,u,o]}const Ri=class extends qe{constructor(t){super(),Ue(this,t,Ti,Bi,vt,{div:0,templateContext:6,origJson:1,layoutParams:2})}};function Li(t,e,n){const r=t.slice();return r[1]=e[n],r}function Wi(t){let e,n,r,o=[...Object.keys(t[0])],i=[];for(let e=0;e<o.length;e+=1)i[e]=Ui(Li(t,o,e));return{c(){e=Tt("svg"),n=Tt("defs");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=Zt(t,"svg",{class:!0,"aria-hidden":!0});var r=Gt(e);n=Zt(r,"defs",{});var o=Gt(n);for(let t=0;t<i.length;t+=1)i[t].l(o);o.forEach(Jt),r.forEach(Jt),this.h()},h(){qt(e,"class",r="divkit-dc22"),qt(e,"aria-hidden","true")},m(t,r){Mt(t,e,r),zt(e,n);for(let t=0;t<i.length;t+=1)i[t].m(n,null)},p(t,e){if(1&e){let r;for(o=[...Object.keys(t[0])],r=0;r<o.length;r+=1){const a=Li(t,o,r);i[r]?i[r].p(a,e):(i[r]=Ui(a),i[r].c(),i[r].m(n,null))}for(;r<i.length;r+=1)i[r].d(1);i.length=o.length}},d(t){t&&Jt(e),Ot(i,t)}}}function Ui(t){let e,n,r,o,i;return{c(){e=Tt("filter"),n=Tt("feFlood"),o=Tt("feComposite"),this.h()},l(t){e=Zt(t,"filter",{id:!0});var r=Gt(e);n=Zt(r,"feFlood",{"flood-color":!0}),Gt(n).forEach(Jt),o=Zt(r,"feComposite",{in2:!0,operator:!0}),Gt(o).forEach(Jt),r.forEach(Jt),this.h()},h(){qt(n,"flood-color",r=t[1]),qt(o,"in2","SourceGraphic"),qt(o,"operator","in"),qt(e,"id",i=t[0][t[1]])},m(t,r){Mt(t,e,r),zt(e,n),zt(e,o)},p(t,o){1&o&&r!==(r=t[1])&&qt(n,"flood-color",r),1&o&&i!==(i=t[0][t[1]])&&qt(e,"id",i)},d(t){t&&Jt(e)}}}function qi(t){let e,n=Object.keys(t[0]).length,r=n&&Wi(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,n){r&&r.m(t,n),Mt(t,e,n)},p(t,o){let[i]=o;1&i&&(n=Object.keys(t[0]).length),n?r?r.p(t,i):(r=Wi(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},i:st,o:st,d(t){r&&r.d(t),t&&Jt(e)}}}function Hi(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const Gi=class extends qe{constructor(t){super(),Ue(this,t,Hi,qi,vt,{svgFiltersMap:0})}};function Ki(t,e,n,r){const o=n[t.type];if(!o)return r(on(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let i;const a={};for(i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(a[i]=t[i]);const l=function e(n,o){const i=Object.keys(o).filter((t=>"__proto__"!==t)),l=i.filter((t=>"$"!==t.charAt(0))),s=i.filter((t=>"$"===t.charAt(0)));return l.forEach((t=>{const r=o[t];"object"==typeof r&&null!==r?(n[t]=Array.isArray(r)?[]:{},e(n[t],r)):n[t]=r})),s.forEach((e=>{const i=o[e],l=a[i];if(void 0!==l){const t=e.substring(1);n[t]=l}else r(on(new Error("Missing template field"),{level:"warn",additional:{key:e,template:t.type}}))})),n}({},o);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(l[i]=t[i]);return{json:l,templateContext:a}}function Xi(){}function Yi(t){return{subscribe:e=>(e(t),Xi)}}const Zi=/(?:[^\\]|^)@{.+}/i;class Qi{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=nn(t,this.ast);if("error"===n.type)return void e(on(new Error("Expression execution error"),{additional:{message:n.value}}));const r=n.value;return r instanceof Date?V(r):r}catch(t){return void e(on(new Error("Expression execution error")))}}}function ta(t,e,n){if(t)if("string"==typeof t){if(r=t,Zi.test(r))try{const n=$(t,{startRule:"JsonStringContents"}),r=z(n);return e.push(...r),new Qi(n)}catch(e){return void n(on(new Error("Unable to parse expression"),{additional:{expression:t}}))}}else{if(Array.isArray(t))return t.map((t=>ta(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=ta(t[o],e,n);return r}}var r;return t}function ea(t,e,n){if(t){if(t instanceof Qi)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>ea(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=ea(t[o],e,n);return r}}return t}function na(t,e){let n=[];const r=ta(t,n,e);return n=[...new Set(n)],{vars:n,applyVars:t=>ea(r,t,e)}}const ra={pagers:function(){return Ge(new Map)}},oa=new Map,ia=new Map;function aa(t){const e=oa.get(t)||Ge("");return oa.has(t)||oa.set(t,e),e}function la(t){const e=ia.get(t)||new Map;return ia.has(t)||ia.set(t,e),e}class sa{setVariable(t){const e=t.getName(),n=la(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),aa(this).set(e)}getVariable(t){return la(this).get(t)}}function ca(){return new sa}function ua(t){let e,n,r,o,i,a,l,s;return n=new Gi({props:{svgFiltersMap:t[2]}}),o=new Ri({props:{div:t[4],templateContext:t[3]}}),{c(){e=Bt("div"),Te(n.$$.fragment),r=Lt(),Te(o.$$.fragment),this.h()},l(t){e=Yt(t,"DIV",{class:!0});var i=Gt(e);Re(n.$$.fragment,i),r=te(i),Re(o.$$.fragment,i),i.forEach(Jt),this.h()},h(){qt(e,"class",i="divkit-b023"+(t[0]?" ".concat("divkit-ee11"):""))},m(t,i){Mt(t,e,i),Le(n,e,null),zt(e,r),Le(o,e,null),a=!0,l||(s=Ut(e,"touchstart",ha,{passive:!0}),l=!0)},p(t,r){const o={};4&r[0]&&(o.svgFiltersMap=t[2]),n.$set(o),(!a||1&r[0]&&i!==(i="divkit-b023"+(t[0]?" ".concat("divkit-ee11"):"")))&&qt(e,"class",i)},i(t){a||(Fe(n.$$.fragment,t),Fe(o.$$.fragment,t),a=!0)},o(t){Ie(n.$$.fragment,t),Ie(o.$$.fragment,t),a=!1},d(t){t&&Jt(e),We(n),We(o),l=!1,s()}}}function da(t){let e,n,r=!t[1]&&t[4]&&ua(t);return{c(){r&&r.c(),e=Wt()},l(t){r&&r.l(t),e=Wt()},m(t,o){r&&r.m(t,o),Mt(t,e,o),n=!0},p(t,n){!t[1]&&t[4]?r?(r.p(t,n),2&n[0]&&Fe(r,1)):(r=ua(t),r.c(),Fe(r,1),r.m(e.parentNode,e)):r&&(Pe(),Ie(r,1,1,(()=>{r=null})),Se())},i(t){n||(Fe(r),n=!0)},o(t){Ie(r),n=!1},d(t){r&&r.d(t),t&&Jt(e)}}}function ha(){}function fa(t,e,n){var r,o,i,a,l;let{id:s}=e,{json:c={}}=e,{platform:u="auto"}=e,{theme:d="system"}=e,{globalVariablesController:h=new sa}=e,{onError:f}=e,{onStat:p}=e,{onCustomAction:g}=e,{onComponent:m}=e,v="desktop"===u;if("auto"===u&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");v=!t.matches,t.addListener((()=>{n(0,v=!t.matches)}))}let y="light";if("light"===d||"dark"===d)y=d;else if("system"===d)if("undefined"!=typeof matchMedia){const t=matchMedia("(prefers-color-scheme: dark)");y=t.matches?"dark":"light",t.addListener((()=>{y=t.matches?"dark":"light",W&&W[y].forEach((t=>{const e=A.get(t.name);e&&e.setValue(t.color)}))}))}else y="light";else D(on(new Error("Unsupported theme")));let _=!1;c||(_=!0,D(on(new Error('"json" prop is required')))),s||(_=!0,D(on(new Error('"id" prop is required'))));let b=function(t){if(!t)return on(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return on(new Error("Missing card"));if(!e.states||!e.states.length)return on(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in Ji)return on(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t)if(!e.states[t].div)return on(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});return null}(c);const x=c.templates||{};b&&(_=!0,D(b));const w={stateChange:!1},k=aa(h),C=la(h),E=new Map,A=new Map,j=new Map;function V(t){const e=na(t,D);return e.vars.length?e.applyVars(A):t}function D(t){f?f({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}let P=0;function S(t){return"".concat(s,"-").concat(P++)}let F={},I={};function N(t){const e=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=t.split("/");const n=e.shift()||"";if(e=[n,"root","0",...e],e.length<5||e.length%2!=1)throw new Error("Incorrect state id format");let r=T;for(let t=1;t<e.length;t+=2){const n=e[t],o=e[t+1];let i=r.getChild(n);if(!i)return;i.setState(o),r=i}}(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=J(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=J(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=J(t);n&&n.setNextItem(e)}(r.get("id"),r.get("overflow"));break;case"set_variable":const n=r.get("name"),o=r.get("value");if(n&&null!==o){const t=A.get(n);t?t.set(o):D(on(new Error("Cannot find variable"),{additional:{name:n}}))}else D(on(new Error("Incorrect set_variable_action"),{additional:{url:t}}));break;default:D(on(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){D(on(t,{additional:{url:e}}))}}const M=new Map;function J(t){if(M.has(t))return M.get(t);D(on(new Error("Missing instance with id"),{additional:{id:t}}))}const O=new Map;function B(t){for(const e of t)A.has(e)&&t.delete(e);return t}de(rn,{logError:D,logStat:function(t,e){p&&p({type:t,action:e})},hasTemplate:function(t){return t in x},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in x;){if(({json:t,templateContext:e}=Ki(t,e,x,D)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:S,genClass:function(t){return"divkit-".concat(S())},execAction:N,execCustomAction:function(t){null==g||g(t)},isRunning:function(t){return w[t]},setRunning:function(t,e){w[t]=e},registerInstance:function(t,e){M.has(t)?D(on(new Error("Duplicate instance id"),{additional:{id:t}})):M.set(t,e)},addSvgFilter:function(t){if(I[t]=I[t]||0,++I[t],F[t])return F[t];const e="".concat(S(),"-svg-filter");return n(2,F=Object.assign(Object.assign({},F),{[t]:e})),e},removeSvgFilter:function(t){t&&I[t]&&0==--I[t]&&n(2,F=Object.keys(F).reduce(((t,e)=>(I[e]&&(t[e]=F[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return Yi(t);const e=na(t,D);return e.vars.length?Ke(e.vars.map((t=>A.get(t)||function(t){const e=j.get(t)||Ge(void 0);return j.has(t)||j.set(t,e),e}(t))).filter(hn),(()=>e.applyVars(A))):Yi(t)},getJsonWithVars:V,getStore:function(t){return O.has(t)||function(t){O.has(t)||O.set(t,ra[t]())}(t),O.get(t)},getVariable:function(t,e){const n=A.get(t);if(n){const r=n.getType();if(r!==e)return void D(on(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},registerComponent:function(t){let{node:e,json:n,origJson:r,templateContext:o}=t;m&&m({type:"mount",node:e,json:n,origJson:r,templateContext:o})},unregisterComponent:function(t){let{node:e}=t;m&&m({type:"destroy",node:e})}}),de(Sn,{hasAction:()=>!1});const T={setState(t){throw new Error("Not implemented")},getChild(t){if(R&&R.has(t))return R.get(t);D(on(new Error("Missing state block with id"),{additional:{id:t}}))}};let R=null;de(xn,{registerInstance(t,e){R||(R=new Map),R.has(t)?D(on(new Error("Duplicate state with id"),{additional:{id:t}})):R.set(t,e)},runVisibilityTransition:(t,e,n,r,o)=>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 L=null===(r=null==c?void 0:c.card)||void 0===r?void 0:r.variables;Array.isArray(L)&&L.forEach((t=>{if(t&&t.type in Ye&&t.name){if(E.has(t.name))return void D(on(new Error("Duplicate variable"),{additional:{name:t.name}}));try{const e=Ze(t.name,t.type,t.value);E.set(t.name,e),A.set(t.name,e)}catch(e){D(on(e,{additional:{name:t.name}}))}}}));const W=c.palette;W&&W[y].forEach((t=>{if(E.has(t.name))D(on(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=Ze(t.name,"color",t.color);E.set(t.name,e),A.set(t.name,e)}catch(e){D(on(e,{additional:{name:t.name}}))}}));for(const[t,e]of C)A.has(t)||A.set(t,e);k.subscribe((t=>{if(t&&!A.has(t)){const e=C.get(t);A.set(t,e);const n=j.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const U=null===(o=null==c?void 0:c.card)||void 0===o?void 0:o.variable_triggers;Array.isArray(U)&&U.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void D(on(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=$(t.condition,{startRule:"JsonStringContents"}),o=z(r);if(!o.length)return void D(on(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return B(e),e.size?new Promise((t=>{const n=k.subscribe((()=>{B(e),e.size||(n(),t())}))})):Promise.resolve()})(o).then((()=>{Ke(o.map((t=>A.get(t))).filter(hn),(()=>nn(A,r))).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=V(t);e.log_id&&N(e)})),e=Boolean(r.value)):D(on(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){D(on(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else D(on(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));let q=null===(l=null===(a=null===(i=null==c?void 0:c.card)||void 0===i?void 0:i.states)||void 0===a?void 0:a[0])||void 0===l?void 0:l.div,H=q&&{type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:[{state_id:"0",div:q}]};return t.$$set=t=>{"id"in t&&n(5,s=t.id),"json"in t&&n(6,c=t.json),"platform"in t&&n(7,u=t.platform),"theme"in t&&n(8,d=t.theme),"globalVariablesController"in t&&n(9,h=t.globalVariablesController),"onError"in t&&n(10,f=t.onError),"onStat"in t&&n(11,p=t.onStat),"onCustomAction"in t&&n(12,g=t.onCustomAction),"onComponent"in t&&n(13,m=t.onComponent)},[v,_,F,{},H,s,c,u,d,h,f,p,g,m,function(t,e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){const n=A.get(t);n&&n.setValue(e)}},function(t){const e=A.get(t);return null==e?void 0:e.getValue()},N]}const pa=class extends qe{constructor(t){super(),Ue(this,t,fa,da,vt,{id:5,json:6,platform:7,theme:8,globalVariablesController:9,onError:10,onStat:11,onCustomAction:12,onComponent:13,setVariable:14,getVariable:15,execAction:16},null,[-1,-1,-1])}get setVariable(){return this.$$.ctx[14]}get getVariable(){return this.$$.ctx[15]}get execAction(){return this.$$.ctx[16]}};function ga(t){return new pa({target:t.target,props:{id:t.id,json:t.json,globalVariablesController:t.globalVariablesController,onStat:t.onStat,onCustomAction:t.onCustomAction,onError:t.onError,onComponent:t.onComponent,platform:t.platform,theme:t.theme},hydrate:t.hydrate})}function ma(t,e){let n;try{n=$(t,{startRule:"json"===(null==e?void 0:e.type)?"JsonStringContents":"start"})}catch(t){return{type:"error",value:"Unable to parse expression"}}return nn((null==e?void 0:e.variables)||new Map,n)}function va(){return Array.from(y.keys())}var $a=e.M,ya=e.Os,_a=e.fz,ba=e.e4,xa=e.sY,wa=e.Z3;export{$a as createGlobalVariablesController,ya as createVariable,_a as evalExpression,ba as functionNames,xa as render,wa as valToString};
|
|
2
2
|
//# sourceMappingURL=client-devtool.mjs.map
|