@divkitframework/divkit 17.0.0 → 18.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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(){}t.r(e),t.d(e,{createGlobalVariablesController:()=>Ua,createVariable:()=>ni,render:()=>Ya});const r=t=>t;function o(t,e){for(const n in e)t[n]=e[n];return t}function i(t){return t()}function a(){return Object.create(null)}function l(t){t.forEach(i)}function s(t){return"function"==typeof t}let c;function u(t,e){return c||(c=document.createElement("a")),c.href=e,t===c.href}function d(t,e){return t!=t?e==e:t!==e}function h(t){return 0===Object.keys(t).length}function p(t,...e){if(null==t)return n;const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function f(t,e,n){t.$$.on_destroy.push(p(e,n))}function g(t,e,n,r){if(t){const o=m(t,e,n,r);return t[0](o)}}function m(t,e,n,r){return t[1]&&r?o(n.ctx.slice(),t[1](r(e))):n.ctx}function v(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 y(t,e,n,r,o,i){if(o){const a=m(e,n,r,i);t.p(a,o)}}function $(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 _(t){return t&&s(t.destroy)?t.destroy:n}const b="undefined"!=typeof window;let w=b?()=>window.performance.now():()=>Date.now(),x=b?t=>requestAnimationFrame(t):n;const k=new Set;function E(t){k.forEach((e=>{e.c(t)||(k.delete(e),e.f())})),0!==k.size&&x(E)}let C=!1;function A(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function V(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function j(t){const e=I("style");return function(t,e){!function(t,e){t.appendChild(e)}(t.head||t,e)}(V(t),e),e.sheet}function D(t,e){if(C){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:A(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 P(t,e,n){C&&!n?D(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function S(t){t.parentNode.removeChild(t)}function F(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function I(t){return document.createElement(t)}function N(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function z(t){return document.createTextNode(t)}function M(){return z(" ")}function J(){return z("")}function O(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function T(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function B(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]:T(t,r,e[r])}function R(t){return Array.from(t.childNodes)}function W(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 L(t,e,n,r){return W(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 U(t,e,n){return L(t,e,n,I)}function q(t,e,n){return L(t,e,n,N)}function H(t,e){return W(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}),(()=>z(e)),!0)}function G(t){return H(t," ")}function K(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function X(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}const Y=new Map;let Z,Q=0;function tt(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(", "),Q-=o,Q||x((()=>{Q||(Y.forEach((t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}})),Y.clear())})))}function et(t){Z=t}function nt(){if(!Z)throw new Error("Function called outside component initialization");return Z}function rt(t){nt().$$.on_mount.push(t)}function ot(t){nt().$$.on_destroy.push(t)}function it(t,e){return nt().$$.context.set(t,e),e}function at(t){return nt().$$.context.get(t)}function lt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const st=[],ct=[],ut=[],dt=[],ht=Promise.resolve();let pt=!1;function ft(){pt||(pt=!0,ht.then(_t))}function gt(){return ft(),ht}function mt(t){ut.push(t)}const vt=new Set;let yt,$t=0;function _t(){const t=Z;do{for(;$t<st.length;){const t=st[$t];$t++,et(t),bt(t.$$)}for(et(null),st.length=0,$t=0;ct.length;)ct.pop()();for(let t=0;t<ut.length;t+=1){const e=ut[t];vt.has(e)||(vt.add(e),e())}ut.length=0}while(st.length);for(;dt.length;)dt.pop()();pt=!1,vt.clear(),et(t)}function bt(t){if(null!==t.fragment){t.update(),l(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(mt)}}function wt(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 xt=new Set;let kt;function Et(){kt={r:0,c:[],p:kt}}function Ct(){kt.r||l(kt.c),kt=kt.p}function At(t,e){t&&t.i&&(xt.delete(t),t.i(e))}function Vt(t,e,n,r){if(t&&t.o){if(xt.has(t))return;xt.add(t),kt.c.push((()=>{xt.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const jt={duration:0};function Dt(t,e,o){let i,a,l=e(t,o),c=!1,u=0;function d(){i&&tt(t,i)}function h(){const{delay:e=0,duration:o=300,easing:s=r,tick:h=n,css:p}=l||jt;p&&(i=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=V(t),{stylesheet:p,rules:f}=Y.get(h)||function(t,e){const n={stylesheet:j(e),rules:{}};return Y.set(t,n),n}(h,t);f[d]||(f[d]=!0,p.insertRule(`@keyframes ${d} ${u}`,p.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${d} ${r}ms linear ${o}ms 1 both`,Q+=1,d}(t,0,1,o,e,s,p,u++)),h(0,1);const f=w()+e,g=f+o;a&&a.abort(),c=!0,mt((()=>wt(t,!0,"start"))),a=function(t){let e;return 0===k.size&&x(E),{promise:new Promise((n=>{k.add(e={c:t,f:n})})),abort(){k.delete(e)}}}((e=>{if(c){if(e>=g)return h(1,0),wt(t,!0,"end"),d(),c=!1;if(e>=f){const t=s((e-f)/o);h(t,1-t)}}return c}))}let p=!1;return{start(){p||(p=!0,tt(t),s(l)?(l=l(),(yt||(yt=Promise.resolve(),yt.then((()=>{yt=null}))),yt).then(h)):h())},invalidate(){p=!1},end(){c&&(d(),c=!1)}}}const Pt="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function St(t,e){Vt(t,1,1,(()=>{e.delete(t.key)}))}function Ft(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 It;function Nt(t){t&&t.c()}function zt(t,e){t&&t.l(e)}function Mt(t,e,n,r){const{fragment:o,on_mount:a,on_destroy:c,after_update:u}=t.$$;o&&o.m(e,n),r||mt((()=>{const e=a.map(i).filter(s);c?c.push(...e):l(e),t.$$.on_mount=[]})),u.forEach(mt)}function Jt(t,e){const n=t.$$;null!==n.fragment&&(l(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ot(t,e,r,o,i,s,c,u=[-1]){const d=Z;et(t);const h=t.$$={fragment:null,ctx:null,props:s,update:n,not_equal:i,bound:a(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:a(),dirty:u,skip_bound:!1,root:e.target||d.$$.root};c&&c(h.root);let p=!1;if(h.ctx=r?r(t,e.props||{},((e,n,...r)=>{const o=r.length?r[0]:n;return h.ctx&&i(h.ctx[e],h.ctx[e]=o)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](o),p&&function(t,e){-1===t.$$.dirty[0]&&(st.push(t),ft(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],h.update(),p=!0,l(h.before_update),h.fragment=!!o&&o(h.ctx),e.target){if(e.hydrate){C=!0;const t=R(e.target);h.fragment&&h.fragment.l(t),t.forEach(S)}else h.fragment&&h.fragment.c();e.intro&&At(t.$$.fragment),Mt(t,e.target,e.anchor,e.customElement),C=!1,_t()}et(d)}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&&(It=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(i).filter(s);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){l(this.$$.on_disconnect)}$destroy(){Jt(this,1),this.$destroy=n}$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&&!h(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class Tt{$destroy(){Jt(this,1),this.$destroy=n}$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&&!h(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Bt=[];function Rt(t,e=n){let r;const o=new Set;function i(e){if(i=e,((n=t)!=n?i==i:n!==i||n&&"object"==typeof n||"function"==typeof n)&&(t=e,r)){const e=!Bt.length;for(const e of o)e[1](),Bt.push(e,t);if(e){for(let t=0;t<Bt.length;t+=2)Bt[t][0](Bt[t+1]);Bt.length=0}}var n,i}return{set:i,update:function(e){i(e(t))},subscribe:function(a,l=n){const s=[a,l];return o.add(s),1===o.size&&(r=e(i)||n),a(t),()=>{o.delete(s),0===o.size&&(r(),r=null)}}}}function Wt(t,e,r){const o=!Array.isArray(t),i=o?[t]:t,a=e.length<2;return{subscribe:Rt(r,(t=>{let r=!1;const c=[];let u=0,d=n;const h=()=>{if(u)return;d();const r=e(o?c[0]:c,t);a?t(r):d=s(r)?r:n},f=i.map(((t,e)=>p(t,(t=>{c[e]=t,u&=~(1<<e),r&&h()}),(()=>{u|=1<<e}))));return r=!0,h(),function(){l(f),d()}})).subscribe}}const Lt="divkit-b023",Ut="divkit-bd25",qt="divkit-d909",Ht="divkit-c016",Gt="divkit-ee11",Kt="divkit-aa14",Xt="divkit-f0cb",Yt=Symbol("root");function Zt(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 Qt={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__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"},te={outer:"divkit-d65a","outer_hide-on-transition-in":"divkit-a6d1","outer_halign-self_start":"divkit-cc45","outer_halign-self_center":"divkit-b833","outer_halign-self_end":"divkit-c573","outer_halign-self_stretch":"divkit-dcc7","outer_valign-self_start":"divkit-e807","outer_valign-self_center":"divkit-d40a","outer_valign-self_end":"divkit-e9f8","outer_valign-self_stretch":"divkit-b7aa","outer_parent-flex_vertical":"divkit-c143","outer_parent-flex_horizontal":"divkit-ef30",outer_width_content:"divkit-b8f4",outer_height_content:"divkit-faa6","outer_width-constrained":"divkit-d321","outer_height-constrained":"divkit-a525","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 ee(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 ne(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 re(t){let e=ne(t);return"0"===e&&(e+="em"),e}function oe(t,e){for(;t.length<e;)t="0"+t;return t}function ie(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=le(t);return r?(r.a*=e,ae(r)):n}function ae(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>oe(Math.round(t).toString(16),2))).join("")):"rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat((t.a/255).toFixed(2),")")}function le(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 se(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 ce=Boolean;function ue(t){if(1===t.length&&"solid"===t[0].type)return{color:ie(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=ie(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(ce);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>ie(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:pe(t.bg.scale),pos:fe(t.bg),image:'url("'+se(n)+'")'}}({bg:t}):"radial_gradient"===t.type?function(t){var e;if(!Array.isArray(null===(e=t.bg)||void 0===e?void 0:e.colors))return;const n=t.bg.colors.filter(ce);if(!n.length)return;const r=t.bg.radius;let o;r&&"object"==typeof r&&"type"in r&&void 0!==r.value&&("fixed"===r.type?o=re(r.value):"relative"===r.type&&(o=de[r.value]));const i=he(t.bg.center_x),a=he(t.bg.center_y);return{size:void 0,pos:void 0,image:"radial-gradient("+"circle ".concat(o||"farthest-corner"," at ").concat(i," ").concat(a)+","+n.map((t=>ie(t))).join(",")+")"}}({bg:t}):void 0)).filter(ce).reverse().reduce((function(t,e){return t.image.push(e.image),t.size.push(e.size||"auto"),t.position.push(e.pos||"50% 50%"),t}),{image:[],size:[],position:[]});return{image:e.image.join(","),size:e.size.join(","),position:e.position.join(",")}}const de={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function he(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return re(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function pe(t){return"fill"!==t&&t?"fit"===t?"contain":void 0:"cover"}function fe(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 ge(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}const me=new Set(["http","https","tel","mailto","intent"]);function ve(t){return me.has(t)}function ye(t,e){e&&t.push(e)}function $e(t,e,n){const r=[];ye(r,e[t]);for(const o in n)if(n.hasOwnProperty(o)){const i=n[o];i&&ye(r,e["".concat(t,"_").concat(o)+("string"==typeof i?"_".concat(i):"")])}return r.join(" ")}const _e=Symbol("state");function be(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function we(t){return be(t)&&t>=0}function xe(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]&&!we(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=>ne((t||e)/n*10))).join(" ")}(t,e,n)}function ke(t){return ne(t.top||0)+" "+ne(t.right||0)+" "+ne(t.bottom||0)+" "+ne(t.left||0)}function Ee(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]&&!we(n[t]))return e;return ke(t)}function Ce(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const Ae=Object.prototype.hasOwnProperty;function Ve(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(!Ae.call(e,o)||!Ve(t[o],e[o]))return!1}return!0}function je(t,e){return Ve(t,e)?e:t}function De(){}const Pe=Symbol("action");function Se(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function Fe(t){var e;let n,r,i,a,c,u,d,h;const p=t[19].default,f=g(p,t,t[18],null);let m=[{class:r=t[2]+(t[9]?" ".concat(t[6]?Ut:qt," ").concat(Ht):"")+" "+(null!==(e=t[1])&&void 0!==e&&e.length?Xt:"")},{style:t[3]},{role:i=t[9]?"button":null},{tabindex:a=t[9]?0:null},t[4]],b={};for(let t=0;t<m.length;t+=1)b=o(b,m[t]);return{c(){n=I("span"),f&&f.c(),this.h()},l(t){n=U(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=R(n);f&&f.l(e),e.forEach(S),this.h()},h(){B(n,b)},m(e,r){P(e,n,r),f&&f.m(n,null),u=!0,d||(h=[_(c=t[5].call(null,n)),O(n,"click",(function(){s(t[9]?t[10]:null)&&(t[9]?t[10]:null).apply(this,arguments)})),O(n,"click",t[21]),O(n,"dblclick",(function(){var e,n;s(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),O(n,"touchstart",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),O(n,"touchmove",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),O(n,"touchend",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),O(n,"touchcancel",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),O(n,"keydown",t[15])],d=!0)},p(e,o){var l;t=e,f&&f.p&&(!u||262144&o)&&y(f,p,t,t[18],u?v(p,t[18],o,null):$(t[18]),null),B(n,b=Ft(m,[(!u||582&o&&r!==(r=t[2]+(t[9]?" ".concat(t[6]?Ut:qt," ").concat(Ht):"")+" "+(null!==(l=t[1])&&void 0!==l&&l.length?Xt:"")))&&{class:r},(!u||8&o)&&{style:t[3]},(!u||512&o&&i!==(i=t[9]?"button":null))&&{role:i},(!u||512&o&&a!==(a=t[9]?0:null))&&{tabindex:a},16&o&&t[4]]))},i(t){u||(At(f,t),u=!0)},o(t){Vt(f,t),u=!1},d(t){t&&S(n),f&&f.d(t),d=!1,l(h)}}}function Ie(t){var e;let n,r,i,a,c,u;const d=t[19].default,h=g(d,t,t[18],null);let p=[{href:t[7]},{target:t[8]},{style:t[3]},{class:r=t[2]+" "+(t[6]?Ut:qt)+" "+(null!==(e=t[1])&&void 0!==e&&e.length?Xt:"")},t[4]],f={};for(let t=0;t<p.length;t+=1)f=o(f,p[t]);return{c(){n=I("a"),h&&h.c(),this.h()},l(t){n=U(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=R(n);h&&h.l(e),e.forEach(S),this.h()},h(){B(n,f)},m(e,r){P(e,n,r),h&&h.m(n,null),a=!0,c||(u=[_(i=t[5].call(null,n)),O(n,"click",t[10]),O(n,"click",t[20]),O(n,"dblclick",(function(){var e,n;s(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),O(n,"touchstart",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),O(n,"touchmove",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),O(n,"touchend",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),O(n,"touchcancel",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),O(n,"keydown",t[15])],c=!0)},p(e,o){var i;t=e,h&&h.p&&(!a||262144&o)&&y(h,d,t,t[18],a?v(d,t[18],o,null):$(t[18]),null),B(n,f=Ft(p,[(!a||128&o)&&{href:t[7]},(!a||256&o)&&{target:t[8]},(!a||8&o)&&{style:t[3]},(!a||70&o&&r!==(r=t[2]+" "+(t[6]?Ut:qt)+" "+(null!==(i=t[1])&&void 0!==i&&i.length?Xt:"")))&&{class:r},16&o&&t[4]]))},i(t){a||(At(h,t),a=!0)},o(t){Vt(h,t),a=!1},d(t){t&&S(n),h&&h.d(t),c=!1,l(u)}}}function Ne(t){let e,n,r,o;const i=[Ie,Fe],a=[];function l(t,e){return t[7]?0:1}return e=l(t),n=a[e]=i[e](t),{c(){n.c(),r=J()},l(t){n.l(t),r=J()},m(t,n){a[e].m(t,n),P(t,r,n),o=!0},p(t,o){let[s]=o,c=e;e=l(t),e===c?a[e].p(t,s):(Et(),Vt(a[c],1,1,(()=>{a[c]=null})),Ct(),n=a[e],n?n.p(t,s):(n=a[e]=i[e](t),n.c()),At(n,1),n.m(r.parentNode,r))},i(t){o||(At(n),o=!0)},o(t){Vt(n),o=!1},d(t){a[e].d(t),t&&S(r)}}}function ze(t,e,n){let{$$slots:r={},$$scope:o}=e,{actions:i}=e,{doubleTapActions:a}=e,{longTapActions:l}=e,{cls:s=""}=e,{style:c=null}=e,{attrs:u}=e,{use:d=De}=e,{customAction:h=null}=e,{isNativeActionAnimation:p=!0}=e;const f=at(Yt),g=at(Pe);it(Pe,{hasAction:()=>Boolean(g.hasAction()||(null==i?void 0:i.length))});let m,v="",y=-1,$=null,_=!1;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){v=e,m=i[t].target||void 0;break}}Array.isArray(i)&&(null==i?void 0:i.length)&&g.hasAction()&&(v="",f.logError(Zt(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:i}})));let b=Boolean(h);return v&&!ve(ge(v))&&(v="",b=!0),t.$$set=t=>{"actions"in t&&n(16,i=t.actions),"doubleTapActions"in t&&n(0,a=t.doubleTapActions),"longTapActions"in t&&n(1,l=t.longTapActions),"cls"in t&&n(2,s=t.cls),"style"in t&&n(3,c=t.style),"attrs"in t&&n(4,u=t.attrs),"use"in t&&n(5,d=t.use),"customAction"in t&&n(17,h=t.customAction),"isNativeActionAnimation"in t&&n(6,p=t.isNativeActionAnimation),"$$scope"in t&&n(18,o=t.$$scope)},[a,l,s,c,u,d,p,v,m,b,async function(t){g.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==h?void 0:h(t))?t.preventDefault():i&&(i.some((t=>{const e=null==t?void 0:t.url;if(!e)return!1;const n=ge(e);return n&&!ve(n)}))&&t.preventDefault(),f.execAnyActions(i)))},function(t){g.hasAction()||void 0!==t.button&&0!==t.button||f.execAnyActions(a,!0)},function(t){t.touches.length>1||($=Se(t),_=!1,y=Date.now())},function(t){if(!$)return;const e=Se(t);(Math.abs($.x-e.x)>8||Math.abs($.y-e.y)>8)&&(_=!0)},function(){!$||y<0||(!_&&Date.now()-y>=400&&f.execAnyActions(l,!0),$=null,y=-1)},function(t){t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(i)&&i.length&&(f.execAnyActions(i),t.preventDefault())},i,h,o,r,function(e){lt.call(this,t,e)},function(e){lt.call(this,t,e)}]}const Me=class extends Tt{constructor(t){super(),Ot(this,t,ze,Ne,d,{actions:16,doubleTapActions:0,longTapActions:1,cls:2,style:3,attrs:4,use:5,customAction:17,isNativeActionAnimation:6})}},Je="divkit-b921";function Oe(t){return be(t)&&t>0}function Te(t,e){return t.map((t=>{if("blur"===(null==t?void 0:t.type)){if(Oe(t.radius))return"blur(".concat(re(t.radius/2),")")}else e(Zt(new Error("Unknown filter"),{level:"warn",additional:{filter:null==t?void 0:t.type}}))})).filter(Boolean).join(" ")}function Be(t,e,n){const r=t.slice();return r[4]=e[n],r}function Re(t){let e,r,o;return{c(){e=I("span"),this.h()},l(t){e=U(t,"SPAN",{class:!0,style:!0}),R(e).forEach(S),this.h()},h(){T(e,"class",r=Je),T(e,"style",o=ee(t[4].style))},m(t,n){P(t,e,n)},p:n,d(t){t&&S(e)}}}function We(t){let e,r,o,i,a,l;return{c(){e=I("img"),this.h()},l(t){e=U(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){u(e.src,r=t[4].image_url)||T(e,"src",r),T(e,"alt",""),T(e,"aria-hidden","true"),T(e,"loading","lazy"),T(e,"decoding","async"),T(e,"class",o=Je),T(e,"style",i=ee(t[4].style))},m(n,r){P(n,e,r),a||(l=O(e,"error",t[1]),a=!0)},p:n,d(t){t&&S(e),a=!1,l()}}}function Le(t){let e,n=function(t,e){return t[4].image_url?We:Re}(t),r=n(t);return{c(){r.c(),e=J()},l(t){r.l(t),e=J()},m(t,n){r.m(t,n),P(t,e,n)},p(t,e){r.p(t,e)},d(t){r.d(t),t&&S(e)}}}function Ue(t){let e,r,o=t[0],i=[];for(let e=0;e<o.length;e+=1)i[e]=Le(Be(t,o,e));return{c(){e=I("span");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=U(t,"SPAN",{class:!0});var n=R(e);for(let t=0;t<i.length;t+=1)i[t].l(n);n.forEach(S),this.h()},h(){T(e,"class",r="divkit-bf25")},m(t,n){P(t,e,n);for(let t=0;t<i.length;t+=1)i[t].m(e,null)},p(t,n){let[r]=n;if(3&r){let n;for(o=t[0],n=0;n<o.length;n+=1){const a=Be(t,o,n);i[n]?i[n].p(a,r):(i[n]=Le(a),i[n].c(),i[n].m(e,null))}for(;n<i.length;n+=1)i[n].d(1);i.length=o.length}},i:n,o:n,d(t){t&&S(e),F(i,t)}}}function qe(t,e,n){let{background:r=[]}=e;const o=at(Yt),i=r.map((t=>{const e={},n={style:e};if("nine_patch_image"===t.type&&t.insets)e["border-image"]='url("'.concat(t.image_url,'") ').concat(t.insets.top||0," ").concat(t.insets.right||0," ").concat(t.insets.bottom||0," ").concat(t.insets.left||0," fill"),e["border-image-width"]="auto";else{const r=ue([t]);"solid"===t.type&&(e["background-color"]=r.color),"gradient"===t.type&&(e["background-image"]=r.image),"image"===t.type&&(e.opacity=Number(t.alpha),n.image_url=t.image_url,e["object-fit"]=r.size,e["object-position"]=r.position,Array.isArray(t.filters)&&t.filters.length&&(e.filter=Te(t.filters,o.logError)))}return n}));return t.$$set=t=>{"background"in t&&n(2,r=t.background)},[i,function(t){t.target&&"classList"in t.target&&t.target.classList.add("divkit-cd61")},r]}const He=class extends Tt{constructor(t){super(),Ot(this,t,qe,Ue,d,{background:2})}};function Ge(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function Ke(t,e){const n=Number(t);return isNaN(n)?e:n}function Xe(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Xe(t))})):e.push(t),e}function Ye(t){let e,n;return e=new Me({props:{use:t[31],cls:t[0]+" "+$e("outer",te,t[14]),style:ee(t[12]),actions:t[9],doubleTapActions:t[10],longTapActions:t[11],attrs:t[5],isNativeActionAnimation:!t[3].length||nn(t[3]),$$slots:{default:[tn]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};16385&n[0]&&(r.cls=t[0]+" "+$e("outer",te,t[14])),4096&n[0]&&(r.style=ee(t[12])),512&n[0]&&(r.actions=t[9]),1024&n[0]&&(r.doubleTapActions=t[10]),2048&n[0]&&(r.longTapActions=t[11]),32&n[0]&&(r.attrs=t[5]),8&n[0]&&(r.isNativeActionAnimation=!t[3].length||nn(t[3])),86&n[0]|16384&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function Ze(t){let e,n;return e=new He({props:{background:t[4]}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.background=t[4]),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function Qe(t){let e,n,r;return{c(){e=I("span"),this.h()},l(t){e=U(t,"SPAN",{class:!0,style:!0}),R(e).forEach(S),this.h()},h(){T(e,"class",n=te.outer__border),T(e,"style",r=ee(t[1]))},m(t,n){P(t,e,n)},p(t,n){2&n[0]&&r!==(r=ee(t[1]))&&T(e,"style",r)},d(t){t&&S(e)}}}function tn(t){let e,n,r,o=t[2]&&Ze(t);const i=t[106].default,a=g(i,t,t[107],null);let l=t[6]&&Qe(t);return{c(){o&&o.c(),e=J(),a&&a.c(),l&&l.c(),n=J()},l(t){o&&o.l(t),e=J(),a&&a.l(t),l&&l.l(t),n=J()},m(t,i){o&&o.m(t,i),P(t,e,i),a&&a.m(t,i),l&&l.m(t,i),P(t,n,i),r=!0},p(t,s){t[2]?o?(o.p(t,s),4&s[0]&&At(o,1)):(o=Ze(t),o.c(),At(o,1),o.m(e.parentNode,e)):o&&(Et(),Vt(o,1,1,(()=>{o=null})),Ct()),a&&a.p&&(!r||16384&s[3])&&y(a,i,t,t[107],r?v(i,t[107],s,null):$(t[107]),null),t[6]?l?l.p(t,s):(l=Qe(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(t){r||(At(o),At(a,t),r=!0)},o(t){Vt(o),Vt(a,t),r=!1},d(t){o&&o.d(t),t&&S(e),a&&a.d(t),l&&l.d(t),t&&S(n)}}}function en(t){let e,n,r=!t[7]&&!t[8]&&Ye(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){t[7]||t[8]?r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct()):r?(r.p(t,n),384&n[0]&&At(r,1)):(r=Ye(t),r.c(),At(r,1),r.m(e.parentNode,e))},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}function nn(t){return t.some((t=>"native"===t.name))}function rn(t,e,r){let o,i,a,l,s,c,u,d,h,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,j,D,P,S,F,I,N,z,M,J,O,T,B,R,W,L,U,q=n,H=n,G=n,K=n,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n,it=n,lt=n,st=n,ct=n;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())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>ct()));let{$$slots:ut={},$$scope:dt}=e;var ht,pt,ft,mt,vt,yt;let{json:$t={}}=e,{origJson:_t}=e,{templateContext:bt}=e,{cls:wt=""}=e,{style:xt}=e,{layoutParams:kt={}}=e,{customDescription:Et=!1}=e,{customPaddings:Ct=!1}=e,{customActions:At=""}=e,{forceWidth:Vt=!1}=e,{forceHeight:jt=!1}=e,{additionalPaddings:Dt=null}=e;const Pt={left:"start",center:"center",right:"end"},St={top:"start",center:"center",bottom:"end"},Ft=at(Yt),It=at(_e);let Nt,zt,Mt,Jt,Ot,Tt,Bt,Rt={},Wt={},Lt=!1,Ut=1,qt="transparent",Ht=0,Gt="",Kt=null,Xt="",Qt={},te=0,ee=0,oe=0,ae=!1,le=!1,se={},ce=0,de=0,he=0,pe=!1,fe=!1,me=1;const ye=kt.fakeElement?[]:$t.transition_triggers||["state_change","visibility_change"],$e=-1!==ye.indexOf("state_change")&&$t.id,be=-1!==ye.indexOf("visibility_change")&&$t.id;let Ae,Ve,De,Pe,Se,Fe,Ie,Ne=[],ze=[],Me=[],Je=[],Oe="";function Te(t){const e=Ke(t.start_value,1),n=Ke(t.end_value,1),o=Ce(t.start_delay,0),i=Ce(t.duration,300),a=Ge(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return r(75,Pe=e),r(76,Se=n),"opacity ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"scale":return r(77,Fe=e),r(78,Ie=n),"transform ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"native":case"no_animation":return"";default:return Ft.logError(Zt(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}let Be,Re,We=!1,Le="visible",Ue=0,qe=0;return t.$$set=t=>{"json"in t&&r(32,$t=t.json),"origJson"in t&&r(33,_t=t.origJson),"templateContext"in t&&r(34,bt=t.templateContext),"cls"in t&&r(0,wt=t.cls),"style"in t&&r(35,xt=t.style),"layoutParams"in t&&r(36,kt=t.layoutParams),"customDescription"in t&&r(37,Et=t.customDescription),"customPaddings"in t&&r(38,Ct=t.customPaddings),"customActions"in t&&r(39,At=t.customActions),"forceWidth"in t&&r(40,Vt=t.forceWidth),"forceHeight"in t&&r(41,jt=t.forceHeight),"additionalPaddings"in t&&r(42,Dt=t.additionalPaddings),"$$scope"in t&&r(107,dt=t.$$scope)},t.$$.update=()=>{if(2&t.$$.dirty[1]&&(r(30,o=Ft.getDerivedFromVars($t.border)),ct(),ct=p(o,(t=>r(105,U=t)))),2&t.$$.dirty[0]|8384512&t.$$.dirty[1]|4096&t.$$.dirty[3]){let t={},e={},n=!1;if(U){if(U.has_shadow){const e=U.shadow;t["box-shadow"]=e?ne((null===r(44,pt=null===r(43,ht=e.offset)||void 0===ht?void 0:ht.x)||void 0===pt?void 0:pt.value)||0)+" "+ne((null===r(46,mt=null===r(45,ft=e.offset)||void 0===ft?void 0:ft.y)||void 0===mt?void 0:mt.value)||0)+" "+ne(null!==r(47,vt=e.blur)&&void 0!==vt?vt:2)+" "+ie(e.color||"#000000",null!==r(48,yt=e.alpha)&&void 0!==yt?yt:.19):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}U.stroke&&(n=!0,r(50,Ut=Ce(U.stroke.width,Ut)),r(51,qt=ie(U.stroke.color,1,qt)),e.border="".concat(ne(Ut)," solid ").concat(qt)),U.corners_radius?(r(53,Gt=xe(U.corners_radius,0,10,Gt)),e["border-radius"]=t["border-radius"]=Gt):U.corner_radius&&(r(52,Ht=Ce(U.corner_radius,Ht)),e["border-radius"]=t["border-radius"]=ne(Ht))}r(49,Rt=je(t,Rt)),r(1,Wt=je(e,Wt)),r(6,Lt=n)}if(2&t.$$.dirty[1]&&(r(29,i=Ft.getDerivedFromVars($t.paddings)),st(),st=p(i,(t=>r(104,L=t)))),8388736&t.$$.dirty[1]|2048&t.$$.dirty[3]&&r(54,Kt=function(t,e){if(!t)return e;const n=["top","right","bottom","left"];for(let r=0;r<n.length;++r)if(t[n[r]]&&!we(t[n[r]]))return e;return t}(L&&!Ct?L:void 0,Kt)),8390656&t.$$.dirty[1]&&r(86,a=ke(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left"].forEach((r=>{const o=t[r];o&&(n[r]=o);const i=e[r];i&&(n[r]=(n[r]||0)+i)})),n}(Kt,Dt))),2&t.$$.dirty[1]&&(r(28,l=Ft.getDerivedFromVars($t.margins)),it(),it=p(l,(t=>r(102,R=t)))),16777216&t.$$.dirty[1]|512&t.$$.dirty[3]&&r(55,Xt=Ee(R,Xt)),2&t.$$.dirty[1]&&(r(27,s=Ft.getDerivedFromVars($t.width)),rt(),rt=p(s,(t=>r(100,T=t)))),2&t.$$.dirty[1]&&(r(26,c=Ft.getDerivedFromVars($t.alignment_horizontal)),lt(),lt=p(c,(t=>r(103,W=t)))),167772704&t.$$.dirty[1]|1664&t.$$.dirty[3]){let t,e,n={},o=0,i=0,a=!1,l=!1;const s=null==T?void 0:T.type;if("fixed"===s?(r(58,te=Ce(null==T?void 0:T.value,te)),e=ne(te)):"wrap_content"===s||!kt.overlapParent&&"match_parent"===s&&kt.parentHorizontalWrapContent?(t="content",("wrap_content"===s&&(null==T?void 0:T.constrained)||"match_parent"===s&&kt.parentHorizontalWrapContent)&&(n["width-constrained"]=!0,i=1),"match_parent"===s&&Ft.logError(Zt(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))):(t="parent","vertical"===kt.parentContainerOrientation&&kt.parentContainerWrap&&(l=!0,Ft.logError(Zt(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===kt.parentLayoutOrientation?e="calc(100% - ".concat(re(((null==R?void 0:R.left)||0)+((null==R?void 0:R.right)||0)),")"):"horizontal"===kt.parentContainerOrientation&&(o=T&&"weight"in T&&T.weight||1,kt.parentContainerWrap&&(a=!0))),"content"===t&&Vt&&(t="parent",Ft.logError(Zt(new Error("Incorrect usage of width with value 'wrap_content'"),{level:"warn"}))),"parent"===t)n["halign-self"]="stretch";else{const t=W;n["halign-self"]="left"===t||"center"===t||"right"===t?Pt[t]:kt.parentHAlign||"start"}t&&(n.width=t),r(57,Mt=e),r(59,ee=o),r(60,oe=i),r(56,Qt=je(n,Qt)),r(61,ae=a),r(7,le=l)}if(2&t.$$.dirty[1]&&(r(25,u=Ft.getDerivedFromVars($t.height)),nt(),nt=p(u,(t=>r(99,O=t)))),2&t.$$.dirty[1]&&(r(24,d=Ft.getDerivedFromVars($t.alignment_vertical)),ot(),ot=p(d,(t=>r(101,B=t)))),1056&t.$$.dirty[1]|5&t.$$.dirty[2]|832&t.$$.dirty[3]){let t,e,n={},o=0,i=0,a=!1,l=!1;const s=null==O?void 0:O.type;if("fixed"===s?(r(64,ce=Ce(null==O?void 0:O.value,ce)),e=ne(ce)):"match_parent"!==s||!kt.overlapParent&&kt.parentVerticalWrapContent?(t="content",("wrap_content"===s&&(null==O?void 0:O.constrained)||"match_parent"===s&&kt.parentVerticalWrapContent)&&(n["height-constrained"]=!0,i=1),"match_parent"===s&&Ft.logError(Zt(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))):(t="parent","horizontal"===kt.parentContainerOrientation&&kt.parentContainerWrap&&(l=!0,Ft.logError(Zt(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===kt.parentLayoutOrientation?e="calc(100% - ".concat(re(((null==R?void 0:R.top)||0)+((null==R?void 0:R.bottom)||0)),")"):"vertical"===kt.parentContainerOrientation&&(o=(null==O?void 0:O.weight)||1,kt.parentContainerWrap&&(a=!0))),"content"===t&&jt&&(t="parent",Ft.logError(Zt(new Error("Incorrect usage of height with value 'wrap_content'"),{level:"warn"}))),"parent"===t)n["valign-self"]="stretch";else{const t=B;n["valign-self"]="top"===t||"center"===t||"bottom"===t?St[t]:kt.parentVAlign||"start"}t&&(n.height=t),r(63,Jt=e),r(65,de=o),r(66,he=i),r(62,se=je(n,se)),r(67,pe=a),r(8,fe=l)}var e,n;if(32&t.$$.dirty[1]&&r(89,h=!!kt.overlapParent||void 0),32&t.$$.dirty[1]|192&t.$$.dirty[3]&&r(88,f=kt.overlapParent&&(!T||"match_parent"===T.type)&&"match_parent"===(null==O?void 0:O.type)),32&t.$$.dirty[1]&&r(87,g=kt.gridArea?"".concat(kt.gridArea.y+1,"/").concat(kt.gridArea.x+1,"/span ").concat(kt.gridArea.rowSpan,"/span ").concat(kt.gridArea.colSpan):void 0),2&t.$$.dirty[1]&&(r(23,m=Ft.getDerivedFromVars($t.alpha)),et(),et=p(m,(t=>r(98,J=t)))),64&t.$$.dirty[2]|32&t.$$.dirty[3]&&(r(68,(n=me,me=!we(e=J)||void 0===e||e>1?n:Number(e))),r(69,Ot=1===me?void 0:me)),2&t.$$.dirty[1]&&(r(22,v=Ft.getDerivedFromVars($t.accessibility)),tt(),tt=p(v,(t=>r(97,M=t)))),64&t.$$.dirty[1]|16&t.$$.dirty[3]&&(r(5,zt=void 0),M&&!Et&&M.description&&(r(5,zt={}),r(5,zt["aria-label"]=M.description,zt))),2&t.$$.dirty[1]&&(r(21,y=Ft.getDerivedFromVars($t.background)),Q(),Q=p(y,(t=>r(4,z=t)))),20&t.$$.dirty[0]&&(r(70,Tt={}),r(2,Bt=!1),z&&(r(2,Bt=z.some((t=>"image"===t.type||"nine_patch_image"===t.type))),!Bt))){const t=ue(z);r(70,Tt["background-color"]=t.color,Tt),r(70,Tt["background-image"]=t.image,Tt),r(70,Tt["background-size"]=t.size,Tt),r(70,Tt["background-position"]=t.position,Tt),r(70,Tt["background-repeat"]="no-repeat",Tt)}if(2&t.$$.dirty[1]&&(r(71,Ae=void 0),$e&&$t.transition_in&&Ft.isRunning("stateChange")&&r(71,Ae=!0)),2&t.$$.dirty[1]&&(r(73,De=void 0),$e&&$t.transition_change&&Ft.isRunning("stateChange")&&It.hasTransitionChange($t.id)&&r(73,De=!0)),2&t.$$.dirty[1]&&(r(20,$=Ft.getDerivedFromVars($t.action)),Y(),Y=p($,(t=>r(95,I=t)))),2&t.$$.dirty[1]&&(r(19,_=Ft.getDerivedFromVars($t.actions)),Z(),Z=p(_,(t=>r(96,N=t)))),2&t.$$.dirty[1]&&(r(18,b=Ft.getDerivedFromVars($t.doubletap_actions)),X(),X=p(b,(t=>r(94,F=t)))),2&t.$$.dirty[1]&&(r(17,w=Ft.getDerivedFromVars($t.longtap_actions)),K(),K=p(w,(t=>r(93,S=t)))),288&t.$$.dirty[1]|15&t.$$.dirty[3]){let t=N||I&&[I]||[],e=F||[],n=S||[];kt.fakeElement?(t=[],e=[],n=[]):(Array.isArray(t)||(t=[],Ft.logError(Zt(new Error("Actions should be array")))),Array.isArray(e)||(e=[],Ft.logError(Zt(new Error("DoubleTapActions should be array")))),Array.isArray(n)||(n=[],Ft.logError(Zt(new Error("LongTapActions should be array"))))),(t.length||e.length||n.length)&&At&&(t=[],e=[],n=[],Ft.logError(Zt(new Error('Cannot use action on component "'.concat(At,'"'))))),r(9,Ne=t),r(10,ze=e),r(11,Me=n)}if(2&t.$$.dirty[1]&&(r(16,x=Ft.getDerivedFromVars($t.action_animation)),G(),G=p(x,(t=>r(92,P=t)))),8&t.$$.dirty[0]|1073741824&t.$$.dirty[2]&&P&&(r(3,Je=Xe(P)),r(74,Oe=Je.map(Te).filter(Boolean).join(", "))),2&t.$$.dirty[1]&&(r(15,k=Ft.getDerivedFromVars($t.visibility)),H(),H=p(k,(t=>r(91,D=t)))),537264128&t.$$.dirty[2]){const t=Le,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(D,Le);t!==e&&(!We||"visible"!==Le&&"visible"!==e?r(80,Le=e):async function(t){r(80,Le=t);const e="visible"===t?"in":"out",n="in"===e?$t.transition_in:$t.transition_out;be&&n&&(await gt(),"in"===e&&r(72,Ve=!0),It.runVisibilityTransition(Object.assign(Object.assign({},$t),{visibility:"visible"}),bt,n,Nt,e).then((()=>{"in"===e&&r(72,Ve=!1)})).catch((t=>{throw"in"===e&&r(72,Ve=!1),t})))}(e)),We||r(79,We=!0)}if(33554464&t.$$.dirty[1]|201596417&t.$$.dirty[2]&&r(14,E=Object.assign(Object.assign(Object.assign({},Qt),se),{"parent-overlap":h,"parent-overlap-absolute":f,"scroll-snap":kt.scrollSnap,"hide-on-transition-in":Ae||Ve||De,visibility:Le,"has-action-animation":Boolean(Oe),"parent-flex":kt.parentContainerOrientation||void 0})),2&t.$$.dirty[1]&&(r(13,C=Ft.getDerivedFromVars($t.transform)),q(),q=p(C,(t=>r(90,j=t)))),270008320&t.$$.dirty[2]&&j&&void 0!==j.rotation){const t=j.pivot_x||{type:"pivot-percentage",value:50};r(81,Ue=Ke(t.value,Ue));const e="pivot-fixed"===t.type?ne(Ue):"".concat(Ue,"%"),n=j.pivot_y||{type:"pivot-percentage",value:50};r(82,qe=Ke(n.value,qe));const o="pivot-fixed"===n.type?ne(qe):"".concat(qe,"%");r(83,Be="".concat(e," ").concat(o)),r(84,Re="rotate(".concat(j.rotation,"deg)"))}1342177280&t.$$.dirty[1]|40&t.$$.dirty[2]&&r(85,A=ae||pe?"100%":ee||de?0:void 0),889454608&t.$$.dirty[1]|65139098&t.$$.dirty[2]&&r(12,V=Object.assign(Object.assign(Object.assign(Object.assign({},xt),Tt),Rt),{width:Mt,height:Jt,"grid-area":g,padding:a,margin:Xt,opacity:Ot,transition:Oe,"transform-origin":Be,transform:Re,"flex-grow":ee||de||void 0,"flex-shrink":oe||he?1:void 0,"flex-basis":A,"--divkit-animation-opacity-start":Pe,"--divkit-animation-opacity-end":Se,"--divkit-animation-scale-start":Fe,"--divkit-animation-scale-end":Ie}))},[wt,Wt,Bt,Je,z,zt,Lt,le,fe,Ne,ze,Me,V,C,E,k,x,w,b,_,$,y,v,m,d,u,c,s,l,i,o,function(t){Nt=t,$e&&$t.transition_in&&It.registerChildWithTransitionIn($t,bt,$t.transition_in,t).then((()=>{r(71,Ae=!1)})).catch((t=>{throw r(71,Ae=!1),t})),$e&&$t.transition_out&&It.registerChildWithTransitionOut($t,bt,$t.transition_out,t),$e&&$t.transition_change&&It.registerChildWithTransitionChange($t,bt,$t.transition_change,t).then((()=>{r(73,De=!1)})).catch((t=>{throw r(73,De=!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=ge(n);t&&!ve(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:kt.fakeElement?[]:Ft.getJsonWithVars($t.visibility_actions||$t.visibility_action&&[$t.visibility_action]),rootCtx:Ft});const e=$t.id;e&&It.registerChild(e);let n=null;return{destroy(){e&&It.unregisterChild(e),n&&n.destroy()}}},$t,_t,bt,xt,kt,Et,Ct,At,Vt,jt,Dt,ht,pt,ft,mt,vt,yt,Rt,Ut,qt,Ht,Gt,Kt,Xt,Qt,Mt,te,ee,oe,ae,se,Jt,ce,de,he,pe,me,Ot,Tt,Ae,Ve,De,Oe,Pe,Se,Fe,Ie,We,Le,Ue,qe,Be,Re,A,a,g,f,h,j,D,P,S,F,I,N,M,J,O,T,B,R,W,L,U,ut,dt]}const on=class extends Tt{constructor(t){super(),Ot(this,t,rn,en,d,{json:32,origJson:33,templateContext:34,cls:0,style:35,layoutParams:36,customDescription:37,customPaddings:38,customActions:39,forceWidth:40,forceHeight:41,additionalPaddings:42},null,[-1,-1,-1,-1])}},an={"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 ln(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function sn(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function cn(t,e){return sn(t)||e}function un(t){let e,n;return{c(){e=I("span"),this.h()},l(t){e=U(t,"SPAN",{class:!0}),R(e).forEach(S),this.h()},h(){T(e,"class",n=an["text-range__top-offset"]),X(e,"margin-top",t[4],!1)},m(t,n){P(t,e,n)},p(t,n){16&n&&X(e,"margin-top",t[4],!1)},d(t){t&&S(e)}}}function dn(t){let e;return{c(){e=z(t[0])},l(n){e=H(n,t[0])},m(t,n){P(t,e,n)},p(t,n){1&n&&K(e,t[0])},d(t){t&&S(e)}}}function hn(t){let e,n,r,o=t[4]&&un(t);return n=new Me({props:{cls:$e("text-range",an,t[3]),actions:t[1],style:ee(t[2]),$$slots:{default:[dn]},$$scope:{ctx:t}}}),{c(){o&&o.c(),e=J(),Nt(n.$$.fragment)},l(t){o&&o.l(t),e=J(),zt(n.$$.fragment,t)},m(t,i){o&&o.m(t,i),P(t,e,i),Mt(n,t,i),r=!0},p(t,r){let[i]=r;t[4]?o?o.p(t,i):(o=un(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const a={};8&i&&(a.cls=$e("text-range",an,t[3])),2&i&&(a.actions=t[1]),4&i&&(a.style=ee(t[2])),16385&i&&(a.$$scope={dirty:i,ctx:t}),n.$set(a)},i(t){r||(At(n.$$.fragment,t),r=!0)},o(t){Vt(n.$$.fragment,t),r=!1},d(t){o&&o.d(t),t&&S(e),Jt(n,t)}}}function pn(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",p=12,f=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,p=ln(c.font_size,p)),576&t.$$.dirty&&Oe(c.line_height)&&n(10,f=Number(c.line_height)/p),64&t.$$.dirty&&we(c.letter_spacing)&&n(11,g=ne(c.letter_spacing)),4160&t.$$.dirty&&n(12,a=cn(c.font_weight,a)),8256&t.$$.dirty&&n(13,m=ie(c.text_color,1,m)),64&t.$$.dirty&&n(4,r=c.top_offset?ne(c.top_offset):""),384&t.$$.dirty&&n(3,o={singleline:u,decoration:h}),15904&t.$$.dirty&&n(2,i={"font-size":ne(10*p/s),"line-height":f,"letter-spacing":g,"font-weight":a,color:m})},[l,d,i,o,r,s,c,u,h,p,f,g,a,m]}const fn=class extends Tt{constructor(t){super(),Ot(this,t,pn,hn,d,{text:0,rootFontSize:5,textStyles:6,singleline:7,actions:1})}};function gn(t,e){return"left"===t||"center"===t||"right"===t?t:e}function mn(t,e){return"top"===t||"center"===t||"bottom"===t?t:e}function vn(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}const{Boolean:yn}=Pt;function $n(t,e,n){const r=t.slice();return r[55]=e[n],r[57]=n,r}function _n(t){let e,n;return e=new on({props:{cls:$e("text",Qt,t[13])+" "+(t[6]?"":Ht),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[An]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};8256&n[0]&&(r.cls=$e("text",Qt,t[13])+" "+(t[6]?"":Ht)),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),134225584&n[0]|134217728&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function bn(t){let e,n;return e=new fn({props:{text:t[4],rootFontSize:t[5],textStyles:t[27],singleline:t[7]}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),134217728&n[0]&&(r.textStyles=t[27]),128&n[0]&&(r.singleline=t[7]),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function wn(t){let e,n,r=t[10],o=[];for(let e=0;e<r.length;e+=1)o[e]=Cn($n(t,r,e));const i=t=>Vt(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=J()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=J()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);P(t,e,r),n=!0},p(t,n){if(268437152&n[0]){let a;for(r=t[10],a=0;a<r.length;a+=1){const i=$n(t,r,a);o[a]?(o[a].p(i,n),At(o[a],1)):(o[a]=Cn(i),o[a].c(),At(o[a],1),o[a].m(e.parentNode,e))}for(Et(),a=r.length;a<o.length;a+=1)i(a);Ct()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)At(o[t]);n=!0}},o(t){o=o.filter(yn);for(let t=0;t<o.length;t+=1)Vt(o[t]);n=!1},d(t){F(o,t),t&&S(e)}}}function xn(t){let e,r,o,i,a,l,s,c;return{c(){e=I("span"),r=I("img"),this.h()},l(t){e=U(t,"SPAN",{style:!0});var n=R(e);r=U(n,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),n.forEach(S),this.h()},h(){T(r,"class",o=Qt.text__image),u(r.src,i=t[55].image.url)||T(r,"src",i),T(r,"loading","lazy"),T(r,"decoding","async"),T(r,"aria-hidden","true"),T(r,"alt",""),T(r,"style",a=ee({width:t[55].image.width,height:t[55].image.height,"margin-top":t[9]?"-".concat(t[55].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[55].image.height):void 0,filter:t[55].image.svgFilterId?"url(#".concat(t[55].image.svgFilterId,")"):void 0})),T(e,"style",l=ee(t[55].image.wrapperStyle))},m(n,o){P(n,e,o),D(e,r),s||(c=O(r,"error",t[28]),s=!0)},p(t,n){1024&n[0]&&!u(r.src,i=t[55].image.url)&&T(r,"src",i),1536&n[0]&&a!==(a=ee({width:t[55].image.width,height:t[55].image.height,"margin-top":t[9]?"-".concat(t[55].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[55].image.height):void 0,filter:t[55].image.svgFilterId?"url(#".concat(t[55].image.svgFilterId,")"):void 0}))&&T(r,"style",a),1024&n[0]&&l!==(l=ee(t[55].image.wrapperStyle))&&T(e,"style",l)},i:n,o:n,d(t){t&&S(e),s=!1,c()}}}function kn(t){let e,n,r=t[55].text&&En(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){t[55].text?r?(r.p(t,n),1024&n[0]&&At(r,1)):(r=En(t),r.c(),At(r,1),r.m(e.parentNode,e)):r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct())},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}function En(t){let e,n;return e=new fn({props:{text:t[55].text,rootFontSize:t[5],textStyles:t[55].textStyles,singleline:t[7],actions:t[55].actions}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.text=t[55].text),32&n[0]&&(r.rootFontSize=t[5]),1024&n[0]&&(r.textStyles=t[55].textStyles),128&n[0]&&(r.singleline=t[7]),1024&n[0]&&(r.actions=t[55].actions),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function Cn(t){let e,n,r,o;const i=[kn,xn],a=[];function l(t,e){return"text"in t[55]?0:t[55].image?1:-1}return~(e=l(t))&&(n=a[e]=i[e](t)),{c(){n&&n.c(),r=J()},l(t){n&&n.l(t),r=J()},m(t,n){~e&&a[e].m(t,n),P(t,r,n),o=!0},p(t,o){let s=e;e=l(t),e===s?~e&&a[e].p(t,o):(n&&(Et(),Vt(a[s],1,1,(()=>{a[s]=null})),Ct()),~e?(n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),At(n,1),n.m(r.parentNode,r)):n=null)},i(t){o||(At(n),o=!0)},o(t){Vt(n),o=!1},d(t){~e&&a[e].d(t),t&&S(r)}}}function An(t){let e,n,r,o,i,a;const l=[wn,bn],s=[];function c(t,e){return t[10].length?0:1}return n=c(t),r=s[n]=l[n](t),{c(){e=I("span"),r.c(),this.h()},l(t){e=U(t,"SPAN",{class:!0,style:!0});var n=R(e);r.l(n),n.forEach(S),this.h()},h(){T(e,"class",o=$e("text__inner",Qt,t[12])),T(e,"style",i=ee(t[11]))},m(t,r){P(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):(Et(),Vt(s[d],1,1,(()=>{s[d]=null})),Ct(),r=s[n],r?r.p(t,u):(r=s[n]=l[n](t),r.c()),At(r,1),r.m(e,null)),(!a||4096&u[0]&&o!==(o=$e("text__inner",Qt,t[12])))&&T(e,"class",o),(!a||2048&u[0]&&i!==(i=ee(t[11])))&&T(e,"style",i)},i(t){a||(At(r),a=!0)},o(t){Vt(r),a=!1},d(t){t&&S(e),s[n].d()}}}function Vn(t){let e,n,r=!t[8]&&_n(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){t[8]?r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct()):r?(r.p(t,n),256&n[0]&&At(r,1)):(r=_n(t),r.c(),At(r,1),r.m(e.parentNode,e))},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}function jn(t,e,r){let o,i,a,l,s,c,u,d,h,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,j,D,P,S,F,I,N,z,M,J=n,O=n,T=n,B=n,R=n,W=n,L=n,U=n,q=n,H=n,G=n,K=n,X=n;t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),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{json:Y={}}=e,{templateContext:Z}=e,{origJson:Q}=e,{layoutParams:tt}=e;const et=at(Yt);let nt=!1,rt="",it=12,lt=1.25,st=!1,ct="",ut="",dt=!1,ht="left",pt="top",ft="",gt="",mt=!1,vt=[],yt=[];return ot((()=>{yt.forEach((t=>{let[e,n]=t;et.removeSvgFilter(e,n)}))})),t.$$set=t=>{"json"in t&&r(0,Y=t.json),"templateContext"in t&&r(1,Z=t.templateContext),"origJson"in t&&r(2,Q=t.origJson),"layoutParams"in t&&r(3,tt=t.layoutParams)},t.$$.update=()=>{var e,n;if(1&t.$$.dirty[0]&&(r(26,o=et.getDerivedFromVars(Y.text)),X(),X=p(o,(t=>r(51,M=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&(r(4,(e=M,n=rt,rt=String(null!=e?e:"")||n)),rt?r(8,nt=!1):(r(8,nt=!0),et.logError(Zt(new Error('Missing "text" prop for div "text"'))))),1&t.$$.dirty[0]&&(r(25,i=et.getDerivedFromVars(Y.ranges)),O(),O=p(i,(t=>r(41,C=t)))),1&t.$$.dirty[0]&&(r(24,a=et.getDerivedFromVars(Y.images)),J(),J=p(a,(t=>r(40,E=t)))),1&t.$$.dirty[0]&&(r(23,l=et.getDerivedFromVars({font_size:Y.font_size,letter_spacing:Y.letter_spacing,font_weight:Y.font_weight,text_color:Y.text_color,underline:Y.underline,strike:Y.strike,line_height:Y.line_height})),T(),T=p(l,(t=>r(27,A=t)))),1&t.$$.dirty[0]&&(r(22,s=et.getDerivedFromVars(Y.font_size)),K(),K=p(s,(t=>r(50,z=t)))),32&t.$$.dirty[0]|524288&t.$$.dirty[1]&&r(5,it=ln(z,it)),1&t.$$.dirty[0]&&(r(21,c=et.getDerivedFromVars(Y.line_height)),G(),G=p(c,(t=>r(49,N=t)))),32&t.$$.dirty[0]|262144&t.$$.dirty[1]){const t=N;Oe(t)?(r(29,lt=Number(t)/it),r(9,st=!0)):r(9,st=!1)}if(1&t.$$.dirty[0]&&(r(20,u=et.getDerivedFromVars(Y.max_lines)),U(),U=p(u,(t=>r(46,S=t)))),32768&t.$$.dirty[1]&&r(7,d=1===S),536870912&t.$$.dirty[0]|34304&t.$$.dirty[1]){let t="",e="",n=!1;if(S&&S>1){let r=Number(S);t=r*lt+"em",C||E||(e=r,n=!0)}r(30,ct=t),r(31,ut=e),r(32,dt=n)}if(1&t.$$.dirty[0]&&(r(19,h=et.getDerivedFromVars(Y.text_alignment_horizontal)),H(),H=p(h,(t=>r(48,I=t)))),131076&t.$$.dirty[1]&&r(33,ht=gn(I,ht)),1&t.$$.dirty[0]&&(r(18,f=et.getDerivedFromVars(Y.text_alignment_vertical)),q(),q=p(f,(t=>r(47,F=t)))),65544&t.$$.dirty[1]&&r(34,pt=mn(F,pt)),16&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(39,g=!C||rt&&1===C.length&&C[0]&&0===C[0].start&&"number"==typeof C[0].end&&C[0].end>=rt.length),1&t.$$.dirty[0]&&(r(17,m=et.getDerivedFromVars(Y.text_color)),L(),L=p(m,(t=>r(45,P=t)))),17408&t.$$.dirty[1]&&r(38,v=Boolean(P)!==Boolean(C&&C[0]&&C[0].text_color)),50576&t.$$.dirty[1]){let t="";S&&g&&v&&(t=ie(P||C&&C[0]&&C[0].text_color,1,ft)),r(35,ft=t)}if(1&t.$$.dirty[0]&&(r(16,y=et.getDerivedFromVars(Y.truncate)),W(),W=p(y,(t=>r(44,D=t)))),8192&t.$$.dirty[1]&&r(37,$="none"===D?"none":""),1&t.$$.dirty[0]&&(r(15,_=et.getDerivedFromVars(Y.text_gradient)),R(),R=p(_,(t=>r(43,j=t)))),4096&t.$$.dirty[1]){let t="";if(j){const e=ue([j]);e.image&&(t=e.image)}r(36,gt=t)}1&t.$$.dirty[0]&&(r(14,b=et.getDerivedFromVars(Y.selectable)),B(),B=p(b,(t=>r(42,V=t)))),64&t.$$.dirty[0]|2048&t.$$.dirty[1]&&r(6,mt=function(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}(V,mt)),16&t.$$.dirty[0]|1536&t.$$.dirty[1]&&function(t,e,n){let o=[];if(yt.forEach((t=>{let[e,n]=t;et.removeSvgFilter(e,n)})),yt=[],!(Array.isArray(e)&&e.length||Array.isArray(n)&&n.length&&t))return void r(10,vt=[]);const i=t;let a=e||[{start:0,end:i.length}],l=n||[],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({},A),...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({},A),...c),n=ne(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=ne(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const i={"font-size":ne(10*(Number(e.font_size)||12)/it)};let a="";const l=t.image.tint_color,s=vn(t.image.tint_mode,"source_in");if(l){const e=ie(t.image.tint_color);a=et.addSvgFilter(e,s),yt.push([e,s])}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({},A)}),r(10,vt=o)}(rt,C,E),128&t.$$.dirty[0]|78&t.$$.dirty[1]&&r(13,w={singleline:d,multiline:dt,halign:ht,valign:pt,truncate:$}),32&t.$$.dirty[1]&&r(12,x={gradient:Boolean(gt)}),1610612768&t.$$.dirty[0]|49&t.$$.dirty[1]&&r(11,k={"font-size":ne(it),"line-height":lt,"max-height":ct,"-webkit-line-clamp":ut,color:ft,"background-image":gt})},[Y,Z,Q,tt,rt,it,mt,d,nt,st,vt,k,x,w,b,_,y,m,f,h,u,c,s,l,a,i,o,A,function(t){t.target&&"classList"in t.target&&t.target.classList.add(Qt.text__image_hidden)},lt,ct,ut,dt,ht,pt,ft,gt,$,v,g,E,C,V,j,D,P,S,F,I,N,z,M]}const Dn={container:"divkit-d37d",container_wrap:"divkit-c855",container_orientation_vertical:"divkit-ddc3",container_valign_top:"divkit-a331",container_valign_center:"divkit-aae6",container_valign_bottom:"divkit-c222",container_orientation_horizontal:"divkit-fe45",container_halign_left:"divkit-a309",container_halign_center:"divkit-bac9",container_halign_right:"divkit-f423",container_orientation_overlap:"divkit-a644"};function Pn(t,e,n){if(!(t&&t.shape&&t.color&&t.shape.type&&e.includes(t.shape.type)))return n;const r=ie(t.color);let o,i,a;if("rounded_rectangle"===t.shape.type){var l,s,c,u;o=Number((null===(l=t.shape.item_width)||void 0===l?void 0:l.value)||10),i=Number((null===(s=t.shape.item_height)||void 0===s?void 0:s.value)||10),a=Number(null!==(c=null===(u=t.shape.corner_radius)||void 0===u?void 0:u.value)&&void 0!==c?c:5)}else{if("circle"!==t.shape.type)return n;var d;o=i=a=2*Number((null===(d=t.shape.radius)||void 0===d?void 0:d.value)||10)}if("shape_drawable"===t.type&&"transparent"!==r){var h,p,f;const e={},n=null!==(h=t.stroke)&&void 0!==h&&h.color?ie(t.stroke.color):"",l=null!==(p=t.stroke)&&void 0!==p&&p.width?Number(null!==(f=t.stroke.width)&&void 0!==f?f:1):"";return e.width=o,e.height=i,e.borderRadius=a,e.background=r,n&&l&&(e.boxShadow="inset 0 0 0 ".concat(ne(l)," ").concat(n)),e}return n}function Sn(t,e,n){null!=e&&e.show_at_start&&(n?t.top=e.style.height:t.left=e.style.width),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height:t.right=e.style.width)}function Fn(t,e,n){let r;return r="horizontal"===t?[null!=n&&n.show_between?n.style.height:0,null!=e&&e.show_between?e.style.width:0]:[null!=e&&e.show_between?e.style.height:0,null!=n&&n.show_between?n.style.width:0],r.map(ne).join(" ")}const In="divkit-f6e9";function Nn(t,e,n){const r=t.slice();return r[13]=e[n],r}function zn(t){let e,n,r,o,i,a="".concat(t[13].style.width,"px"),l="".concat(t[13].style.height,"px"),s="".concat(t[13].style.borderRadius,"px"),c="".concat(t[13].left,"px"),u="".concat(t[13].top,"px"),d="".concat(t[13].width,"px"),h="".concat(t[13].height,"px");return{c(){e=I("div"),n=I("div"),o=M(),this.h()},l(t){e=U(t,"DIV",{class:!0});var r=R(e);n=U(r,"DIV",{class:!0}),R(n).forEach(S),o=G(r),r.forEach(S),this.h()},h(){T(n,"class",r=In),X(n,"width",a,!1),X(n,"height",l,!1),X(n,"border-radius",s,!1),X(n,"background",t[13].style.background,!1),X(n,"box-shadow",t[13].style.boxShadow,!1),T(e,"class",i="divkit-c770"),X(e,"left",c,!1),X(e,"top",u,!1),X(e,"width",d,!1),X(e,"height",h,!1)},m(t,r){P(t,e,r),D(e,n),D(e,o)},p(t,r){2&r&&a!==(a="".concat(t[13].style.width,"px"))&&X(n,"width",a,!1),2&r&&l!==(l="".concat(t[13].style.height,"px"))&&X(n,"height",l,!1),2&r&&s!==(s="".concat(t[13].style.borderRadius,"px"))&&X(n,"border-radius",s,!1),2&r&&X(n,"background",t[13].style.background,!1),2&r&&X(n,"box-shadow",t[13].style.boxShadow,!1),2&r&&c!==(c="".concat(t[13].left,"px"))&&X(e,"left",c,!1),2&r&&u!==(u="".concat(t[13].top,"px"))&&X(e,"top",u,!1),2&r&&d!==(d="".concat(t[13].width,"px"))&&X(e,"width",d,!1),2&r&&h!==(h="".concat(t[13].height,"px"))&&X(e,"height",h,!1)},d(t){t&&S(e)}}}function Mn(t){let e,r,o,i=t[1],a=[];for(let e=0;e<i.length;e+=1)a[e]=zn(Nn(t,i,e));return{c(){e=I("div");for(let t=0;t<a.length;t+=1)a[t].c()},l(t){e=U(t,"DIV",{});var n=R(e);for(let t=0;t<a.length;t+=1)a[t].l(n);n.forEach(S)},m(n,i){P(n,e,i);for(let t=0;t<a.length;t+=1)a[t].m(e,null);t[10](e),r||(o=O(window,"resize",t[2]),r=!0)},p(t,n){let[r]=n;if(2&r){let n;for(i=t[1],n=0;n<i.length;n+=1){const o=Nn(t,i,n);a[n]?a[n].p(o,r):(a[n]=zn(o),a[n].c(),a[n].m(e,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=i.length}},i:n,o:n,d(n){n&&S(e),F(a,n),t[10](null),r=!1,o()}}}function Jn(t,e,n,r,o,i){i?t.push({top:n.bottom,left:o.left,width:o.right-o.left,height:r.top-n.bottom,style:e}):t.push({top:o.top,left:n.right,width:r.left-n.right,height:o.bottom-o.top,style:e})}function On(t,e,n,r){const o={top:Math.min(...n.map((t=>t.top))),right:Math.max(...n.map((t=>t.right))),bottom:Math.max(...n.map((t=>t.bottom))),left:Math.min(...n.map((t=>t.left)))};if((null==e?void 0:e.show_at_start)&&Jn(t,e.style,{top:0,right:n[0].left-e.style.width,bottom:n[0].top-e.style.height,left:0},n[0],o,r),null==e?void 0:e.show_between)for(let i=0;i<n.length-1;++i)Jn(t,e.style,n[i],n[i+1],o,r);if(null==e?void 0:e.show_at_end){const i=n[n.length-1];Jn(t,e.style,i,{top:i.bottom+e.style.height,right:0,bottom:0,left:i.right+e.style.width},o,r)}}function Tn(t,e,n){let r,{orientation:o}=e,{separator:i}=e,{lineSeparator:a}=e;const l=function(t,e){let n,r=0,o=!1;return function(){const e=Date.now();return!r||Math.abs(e-r)>10?(r=e,n=t.apply(this,arguments)):(o||(o=!0,setTimeout((()=>{o=!1,n=t.apply(this,arguments)}),10)),n)}}((function(){if(!r)return;const t=r.getBoundingClientRect();n(1,c=[]);let e=[...r.children].filter((t=>t!==s&&!t.classList.contains(te.outer__border))),l=[];for(;e.length;){const t=[],n=e.shift();t.push(n);let r=n.getBoundingClientRect(),i=r.right,a=r.bottom;for(;e.length;){let n=e[0],r=n.getBoundingClientRect();if("vertical"===o){if(r.top<a)break}else if(r.left<i)break;i=Math.max(i,r.right),a=Math.max(a,r.bottom),t.push(n),e.shift()}l.push(t)}const u=[];l.forEach((t=>{const e=t.map((t=>function(t){const e=t.getBoundingClientRect(),n=getComputedStyle(t);return{top:e.top-parseFloat(n.marginTop),right:e.right+parseFloat(n.marginRight),bottom:e.bottom+parseFloat(n.marginBottom),left:e.left-parseFloat(n.marginLeft)}}(t)));i&&On(c,i,e,"vertical"===o);const n={top:Math.min(...e.map((t=>t.top))),right:Math.max(...e.map((t=>t.right))),bottom:Math.max(...e.map((t=>t.bottom))),left:Math.min(...e.map((t=>t.left)))};u.push(n)})),a&&On(c,a,u,"horizontal"===o),c.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let s,c=[],u=!1,d=null,h=null;function p(t){t.some((t=>{var e;const n=null===(e=t.target)||void 0===e?void 0:e.classList;return!(null==n?void 0:n.contains(In))&&!(null==n?void 0:n.contains("divkit-a771"))}))&&l()}return rt((()=>{n(6,u=!0)})),ot((()=>{n(6,u=!1)})),t.$$set=t=>{"orientation"in t&&n(3,o=t.orientation),"separator"in t&&n(4,i=t.separator),"lineSeparator"in t&&n(5,a=t.lineSeparator)},t.$$.update=()=>{1&t.$$.dirty&&n(9,r=(null==s?void 0:s.parentElement)||null),960&t.$$.dirty&&(u&&r||d||h)&&(d&&(d.disconnect(),n(7,d=null)),h&&(h.disconnect(),n(8,h=null)),u&&r&&("undefined"!=typeof MutationObserver&&(n(7,d=new MutationObserver(p)),d.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(8,h=new ResizeObserver(l)),h.observe(r)))),576&t.$$.dirty&&u&&r&&l()},[s,c,l,o,i,a,u,d,h,r,function(t){ct[t?"unshift":"push"]((()=>{s=t,n(0,s)}))}]}const Bn=class extends Tt{constructor(t){super(),Ot(this,t,Tn,Mn,d,{orientation:3,separator:4,lineSeparator:5})}};let Rn;function Wn(){if(void 0!==Rn)return Rn;const t=document.createElement("div");return t.style.position="absolute",t.style.display="flex",t.style.flexDirection="column",t.style.gap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),Rn=1===t.scrollHeight,document.body.removeChild(t),Rn}const{Boolean:Ln}=Pt;function Un(t,e,n){const r=t.slice();return r[43]=e[n],r}function qn(t){let e,n;return e=new on({props:{cls:$e("container",Dn,t[10]),style:t[9],json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],additionalPaddings:t[13],$$slots:{default:[Kn]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=$e("container",Dn,t[10])),512&n[0]&&(r.style=t[9]),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]),8192&n[0]&&(r.additionalPaddings=t[13]),1049056&n[0]|32768&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function Hn(t){let e,n;return e=new Ci({props:{layoutParams:t[8],div:t[43].json,templateContext:t[43].templateContext,origJson:t[43].origJson}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),1048576&n[0]&&(r.div=t[43].json),1048576&n[0]&&(r.templateContext=t[43].templateContext),1048576&n[0]&&(r.origJson=t[43].origJson),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function Gn(t){let e,n;return e=new Bn({props:{separator:t[6],lineSeparator:t[7],orientation:t[5]}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.separator=t[6]),128&n[0]&&(r.lineSeparator=t[7]),32&n[0]&&(r.orientation=t[5]),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function Kn(t){let e,n,r,o=t[20],i=[];for(let e=0;e<o.length;e+=1)i[e]=Hn(Un(t,o,e));const a=t=>Vt(i[t],1,1,(()=>{i[t]=null}));let l=(t[6]||t[7])&&Gn(t);return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=M(),l&&l.c(),n=J()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=G(t),l&&l.l(t),n=J()},m(t,o){for(let e=0;e<i.length;e+=1)i[e].m(t,o);P(t,e,o),l&&l.m(t,o),P(t,n,o),r=!0},p(t,r){if(1048832&r[0]){let n;for(o=t[20],n=0;n<o.length;n+=1){const a=Un(t,o,n);i[n]?(i[n].p(a,r),At(i[n],1)):(i[n]=Hn(a),i[n].c(),At(i[n],1),i[n].m(e.parentNode,e))}for(Et(),n=o.length;n<i.length;n+=1)a(n);Ct()}t[6]||t[7]?l?(l.p(t,r),192&r[0]&&At(l,1)):(l=Gn(t),l.c(),At(l,1),l.m(n.parentNode,n)):l&&(Et(),Vt(l,1,1,(()=>{l=null})),Ct())},i(t){if(!r){for(let t=0;t<o.length;t+=1)At(i[t]);At(l),r=!0}},o(t){i=i.filter(Ln);for(let t=0;t<i.length;t+=1)Vt(i[t]);Vt(l),r=!1},d(t){F(i,t),t&&S(e),l&&l.d(t),t&&S(n)}}}function Xn(t){let e,n,r=!t[4]&&qn(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){t[4]?r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct()):r?(r.p(t,n),16&n[0]&&At(r,1)):(r=qn(t),r.c(),At(r,1),r.m(e.parentNode,e))},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}function Yn(t,e,r){let o,i,a,l,s,c,u,d,h,f,g,m,v,y,$,_,b,w,x,k,E,C,A=n,V=n,j=n,D=n,P=n,S=n,F=n,I=n;var N,z,M,J,O,T;t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>I()));let{json:B={}}=e,{templateContext:R}=e,{origJson:W}=e,{layoutParams:L}=e;const U={left:"start",center:"center",right:"end"},q={top:"start",center:"center",bottom:"end"},H=["rounded_rectangle","circle"],G=at(Yt);let K=!1,X="vertical",Y="top",Z="left",Q=null,tt=null,et={};return t.$$set=t=>{"json"in t&&r(0,B=t.json),"templateContext"in t&&r(1,R=t.templateContext),"origJson"in t&&r(2,W=t.origJson),"layoutParams"in t&&r(3,L=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(30,o=B.items),1073741824&t.$$.dirty[0]&&((null==o?void 0:o.length)&&Array.isArray(o)?r(4,K=!1):(r(4,K=!0),G.logError(Zt(new Error('Incorrect or empty "items" prop for div "container"'))))),1073741842&t.$$.dirty[0]&&r(20,i=(!K&&o||[]).map((t=>{let e=t,n=R;return({templateContext:n,json:e}=G.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(r(19,a=G.getDerivedFromVars(B.orientation)),I(),I=p(a,(t=>r(38,C=t)))),32&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(5,X=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(C,X)),1&t.$$.dirty[0]&&(r(18,l=G.getDerivedFromVars(B.content_alignment_vertical)),F(),F=p(l,(t=>r(37,E=t)))),134217728&t.$$.dirty[0]|64&t.$$.dirty[1]&&r(27,Y=mn(E,Y)),1&t.$$.dirty[0]&&(r(17,s=G.getDerivedFromVars(B.content_alignment_horizontal)),S(),S=p(s,(t=>r(36,k=t)))),268435456&t.$$.dirty[0]|32&t.$$.dirty[1]&&r(28,Z=gn(k,Z)),1&t.$$.dirty[0]&&(r(16,c=G.getDerivedFromVars(B.layout_mode)),P(),P=p(c,(t=>r(35,x=t)))),16&t.$$.dirty[1]&&r(29,u="wrap"===x),1&t.$$.dirty[0]&&(r(15,d=G.getDerivedFromVars(B.separator)),D(),D=p(d,(t=>r(34,w=t)))),14680160&t.$$.dirty[0]|8&t.$$.dirty[1])if((null==w?void 0:w.style)&&"overlap"!==X&&Wn()){const t=Pn(w.style,H,(null==Q?void 0:Q.style)||null);r(6,Q=t?{show_at_start:Boolean(null!==r(21,N=w.show_at_start)&&void 0!==N&&N),show_at_end:Boolean(null!==r(22,z=w.show_at_end)&&void 0!==z&&z),show_between:Boolean(null===r(23,M=w.show_between)||void 0===M||M),style:t}:null)}else r(6,Q=null);if(1&t.$$.dirty[0]&&(r(14,h=G.getDerivedFromVars(B.line_separator)),j(),j=p(h,(t=>r(33,b=t)))),117440672&t.$$.dirty[0]|4&t.$$.dirty[1])if((null==b?void 0:b.style)&&"overlap"!==X&&Wn()){const t=Pn(b.style,H,(null==tt?void 0:tt.style)||null);r(7,tt=t?{show_at_start:Boolean(null!==r(24,J=b.show_at_start)&&void 0!==J&&J),show_at_end:Boolean(null!==r(25,O=b.show_at_end)&&void 0!==O&&O),show_between:Boolean(null===r(26,T=b.show_between)||void 0===T||T),style:t}:null)}else r(7,tt=null);if(224&t.$$.dirty[0]&&r(13,f=Q||tt?function(t,e,n){const r={};return Sn(r,e,"vertical"===t),Sn(r,n,"horizontal"===t),r}(X,Q,tt):null),1&t.$$.dirty[0]&&(r(12,g=G.getDerivedFromVars(B.width)),A(),A=p(g,(t=>r(31,$=t)))),1&t.$$.dirty[0]&&(r(11,m=G.getDerivedFromVars(B.height)),V(),V=p(m,(t=>r(32,_=t)))),939524392&t.$$.dirty[0]|3&t.$$.dirty[1]){let t={};(null==L?void 0:L.fakeElement)&&(t.fakeElement=!0),"overlap"===X&&(t.overlapParent=!0),"horizontal"!==X&&(t.parentHAlign=U[Z],(!_||"wrap_content"===_.type||"match_parent"===_.type&&(null==L?void 0:L.parentVerticalWrapContent))&&(t.parentVerticalWrapContent=!0)),"vertical"!==X&&(t.parentVAlign=q[Y],("wrap_content"===(null==$?void 0:$.type)||"match_parent"===(null==$?void 0:$.type)&&(null==L?void 0:L.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0)),"horizontal"===X&&(t.parentContainerOrientation="horizontal"),"vertical"===X&&(t.parentContainerOrientation="vertical"),u&&(t.parentContainerWrap=!0),r(8,et=je(t,et))}939524128&t.$$.dirty[0]&&r(10,v={orientation:X,valign:Y,halign:Z,wrap:u}),224&t.$$.dirty[0]&&r(9,y={gap:Q||tt?Fn(X,Q,tt):void 0})},[B,R,W,L,K,X,Q,tt,et,y,v,m,g,f,h,d,c,s,l,a,i,N,z,M,J,O,T,Y,Z,u,o,$,_,b,w,x,k,E,C]}const Zn={separator:"divkit-a30b",separator_orientation_horizontal:"divkit-f529",separator_orientation_vertical:"divkit-e9e2",separator__inner:"divkit-db7d"};function Qn(t,e){return"vertical"===t||"horizontal"===t?t:e}function tr(t){let e,n,r;return{c(){e=I("span"),this.h()},l(t){e=U(t,"SPAN",{class:!0,style:!0}),R(e).forEach(S),this.h()},h(){T(e,"class",n=Zn.separator__inner),T(e,"style",r=ee(t[5]))},m(t,n){P(t,e,n)},p(t,n){32&n&&r!==(r=ee(t[5]))&&T(e,"style",r)},d(t){t&&S(e)}}}function er(t){let e,n=t[6]&&tr(t);return{c(){n&&n.c(),e=J()},l(t){n&&n.l(t),e=J()},m(t,r){n&&n.m(t,r),P(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=tr(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&S(e)}}}function nr(t){let e,n;return e=new on({props:{cls:$e("separator",Zn,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[er]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){let[r]=n;const o={};16&r&&(o.cls=$e("separator",Zn,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||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function rr(t,e,r){let o,i,a,l,s,c,u,d=n;t.$$.on_destroy.push((()=>d()));let{json:h={}}=e,{templateContext:f}=e,{origJson:g}=e,{layoutParams:m}=e;const v=at(Yt);let y="horizontal",$="rgba(0,0,0,0.08)";return t.$$set=t=>{"json"in t&&r(0,h=t.json),"templateContext"in t&&r(1,f=t.templateContext),"origJson"in t&&r(2,g=t.origJson),"layoutParams"in t&&r(3,m=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&(r(7,o=v.getDerivedFromVars(h.delimiter_style)),d(),d=p(o,(t=>r(12,u=t)))),4352&t.$$.dirty&&r(8,y=Qn(null==u?void 0:u.orientation,y)),4096&t.$$.dirty&&r(6,i=!((null==u?void 0:u.color)&&("transparent"===u.color||9===u.color.length&&0===u.color.indexOf("#00")))),4608&t.$$.dirty&&r(9,$=ie(null==u?void 0:u.color,1,$)),256&t.$$.dirty&&r(11,a="horizontal"===y?"100%":ne(1)),256&t.$$.dirty&&r(10,l="horizontal"===y?ne(1):"100%"),3584&t.$$.dirty&&r(5,s={background:$,width:a,height:l}),256&t.$$.dirty&&r(4,c={orientation:y})},[h,f,g,m,c,s,i,o,y,$,l,a,u]}const or={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",image_loaded:"divkit-cf4e","divkit-image-appearance":"divkit-e555","image_before-appearance":"divkit-ffe8"};function ir(t){let e,n;return e=new on({props:{cls:$e("image",or,t[10]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],style:t[9],customDescription:!0,$$slots:{default:[sr]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=$e("image",or,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]),512&n[0]&&(r.style=t[9]),66928&n[0]|1073741824&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function ar(t){let e,n,r,o,i,a,s;return{c(){e=I("img"),this.h()},l(t){e=U(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){T(e,"class",n=or.image__image),u(e.src,r=t[4]===dr?ur:t[6])||T(e,"src",r),T(e,"loading","lazy"),T(e,"decoding","async"),T(e,"style",o=ee(t[8])),T(e,"alt",t[16]),T(e,"aria-hidden",i=t[16]?null:"true")},m(n,r){P(n,e,r),a||(s=[O(e,"load",t[26]),O(e,"error",t[27])],a=!0)},p(t,n){80&n[0]&&!u(e.src,r=t[4]===dr?ur:t[6])&&T(e,"src",r),256&n[0]&&o!==(o=ee(t[8]))&&T(e,"style",o),65536&n[0]&&T(e,"alt",t[16]),65536&n[0]&&i!==(i=t[16]?null:"true")&&T(e,"aria-hidden",i)},d(t){t&&S(e),a=!1,l(s)}}}function lr(t){let e,n,r,o,i,a,s,c,d,h="".concat(t[5],"%");return{c(){e=I("span"),n=I("img"),this.h()},l(t){e=U(t,"SPAN",{class:!0});var r=R(e);n=U(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(S),this.h()},h(){T(n,"class",r=or.image__image),u(n.src,o=t[4]===dr?ur:t[6])||T(n,"src",o),T(n,"loading","lazy"),T(n,"decoding","async"),T(n,"style",i=ee(t[8])),T(n,"alt",t[16]),T(n,"aria-hidden",a=t[16]?null:"true"),T(e,"class",s=or["image__aspect-wrapper"]),X(e,"padding-bottom",h,!1)},m(r,o){P(r,e,o),D(e,n),c||(d=[O(n,"load",t[26]),O(n,"error",t[27])],c=!0)},p(t,r){80&r[0]&&!u(n.src,o=t[4]===dr?ur:t[6])&&T(n,"src",o),256&r[0]&&i!==(i=ee(t[8]))&&T(n,"style",i),65536&r[0]&&T(n,"alt",t[16]),65536&r[0]&&a!==(a=t[16]?null:"true")&&T(n,"aria-hidden",a),32&r[0]&&h!==(h="".concat(t[5],"%"))&&X(e,"padding-bottom",h,!1)},d(t){t&&S(e),c=!1,l(d)}}}function sr(t){let e;function n(t,e){return t[10].aspect?lr:ar}let r=n(t),o=r(t);return{c(){o.c(),e=J()},l(t){o.l(t),e=J()},m(t,n){o.m(t,n),P(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&&S(e)}}}function cr(t){let e,n,r=!t[7]&&ir(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){t[7]?r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct()):r?(r.p(t,n),128&n[0]&&At(r,1)):(r=ir(t),r.c(),At(r,1),r.m(e.parentNode,e))},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}const ur="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",dr=2;function hr(t,e,r){let o,i,a,l,s,c,u,d,h,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,j,D,P,S,F,I,N,z,M,J,O,T=n,B=n,R=n,W=n,L=n,U=n,q=n,H=n,G=n,K=n,X=n,Y=n,Z=n,Q=n;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),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{json:tt={}}=e,{templateContext:et}=e,{origJson:nt}=e,{layoutParams:rt}=e;const it=at(Yt);let lt=0,st="rgba(0,0,0,0.08)",ct=!1,ut="",dt="none",ht="50% 50%";let pt,ft="0",gt="source_in",mt="",vt="",yt=0,$t=0,_t=0,bt="",wt="";return ot((()=>{it.removeSvgFilter(pt,gt)})),t.$$set=t=>{"json"in t&&r(0,tt=t.json),"templateContext"in t&&r(1,et=t.templateContext),"origJson"in t&&r(2,nt=t.origJson),"layoutParams"in t&&r(3,rt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(r(25,o=it.getDerivedFromVars(tt.image_url)),Q(),Q=p(o,(t=>r(56,O=t)))),1&t.$$.dirty[0]&&(r(24,i=it.getDerivedFromVars(tt.gif_url)),Z(),Z=p(i,(t=>r(55,J=t)))),50331648&t.$$.dirty[1]&&r(6,a=O||J),64&t.$$.dirty[0]&&r(4,lt=0),64&t.$$.dirty[0]&&(a?r(7,ct=!1):(r(7,ct=!0),it.logError(Zt(new Error('Missing "image_url" for "image"'))))),1&t.$$.dirty[0]&&(r(23,l=it.getDerivedFromVars(tt.width)),Y(),Y=p(l,(t=>r(54,M=t)))),8388608&t.$$.dirty[1]&&r(42,s="wrap_content"===(null==M?void 0:M.type)),1&t.$$.dirty[0]&&(r(22,c=it.getDerivedFromVars(tt.height)),X(),X=p(c,(t=>r(53,z=t)))),4194304&t.$$.dirty[1]&&r(41,u="wrap_content"===(null==z?void 0:z.type)),1&t.$$.dirty[0]&&(r(21,d=it.getDerivedFromVars(tt.preview)),K(),K=p(d,(t=>r(52,N=t)))),16&t.$$.dirty[0]|2097152&t.$$.dirty[1]){const t=N;0!==lt&<!==dr||!t?r(29,ut=""):t.startsWith("data:")?r(29,ut='url("'.concat(se(t),'")')):r(29,ut='url("data:image/jpg;base64,'.concat(se(t),'")'))}if(1&t.$$.dirty[0]&&(r(20,h=it.getDerivedFromVars(tt.placeholder_color)),G(),G=p(h,(t=>r(51,I=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&function(t,e){r(28,st=0===t||t===dr?ie(e,1,st):"")}(lt,I),1&t.$$.dirty[0]&&(r(19,f=it.getDerivedFromVars(tt.scale)),H(),H=p(f,(t=>r(50,F=t)))),1073741824&t.$$.dirty[0]|524288&t.$$.dirty[1]&&r(30,dt=pe(F)||dt),1&t.$$.dirty[0]&&(r(18,g=it.getDerivedFromVars({content_alignment_horizontal:tt.content_alignment_horizontal,content_alignment_vertical:tt.content_alignment_vertical})),q(),q=p(g,(t=>r(49,S=t)))),262144&t.$$.dirty[1]&&r(31,ht=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:fe(t)}(S,ht)),1&t.$$.dirty[0]&&(r(17,m=it.getDerivedFromVars(tt.accessibility)),U(),U=p(m,(t=>r(48,P=t)))),131072&t.$$.dirty[1]&&r(16,v=(null==P?void 0:P.description)||""),1&t.$$.dirty[0]&&(r(15,y=it.getDerivedFromVars(tt.aspect)),L(),L=p(y,(t=>r(47,D=t)))),65536&t.$$.dirty[1]){const t=null==D?void 0:D.ratio;t&&Oe(t)?r(5,ft=(100/Number(t)).toFixed(2)):r(5,ft="0")}if(1&t.$$.dirty[0]&&(r(14,$=it.getDerivedFromVars(tt.tint_color)),W(),W=p($,(t=>r(46,j=t)))),1&t.$$.dirty[0]&&(r(13,_=it.getDerivedFromVars(tt.tint_mode)),R(),R=p(_,(t=>r(45,V=t)))),49158&t.$$.dirty[1]){const t=j,e=t?ie(t):void 0,n=vn(V,gt);e===pt&&n===gt||(it.removeSvgFilter(pt,gt),r(34,mt=e?it.addSvgFilter(e,n):""),r(32,pt=e),r(33,gt=n))}if(1&t.$$.dirty[0]&&(r(12,b=it.getDerivedFromVars(tt.appearance_animation)),B(),B=p(b,(t=>r(44,A=t)))),8192&t.$$.dirty[1]&&A&&"fade"===A.type){const t=A;r(35,vt=Ge(t.interpolator,"ease_in_out").replace(/_/g,"-")),r(38,_t=Ce(t.duration,300)),r(37,$t=Ce(t.start_delay,0)),r(36,yt=Ce(t.alpha,0))}if(1&t.$$.dirty[0]&&(r(11,w=it.getDerivedFromVars(tt.filters)),T(),T=p(w,(t=>r(43,C=t)))),4096&t.$$.dirty[1]){let t="",e="";Array.isArray(C)&&C.length&&(t=Te(C,it.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),r(39,bt=t),r(40,wt=e)}48&t.$$.dirty[0]|3088&t.$$.dirty[1]&&r(10,x={aspect:"0"!==ft,"is-width-content":s,"is-height-content":u,loaded:1===lt,"before-appearance":Boolean(vt)&&0===lt}),805306368&t.$$.dirty[0]&&r(9,k={"background-image":ut,"background-color":st}),1073741840&t.$$.dirty[0]|1017&t.$$.dirty[1]&&r(8,E={"object-fit":dt,"object-position":ht,filter:[1===lt&&mt?"url(#".concat(mt,")"):"",bt].filter(Boolean).join(" "),"clip-path":wt||void 0,"--divkit-appearance-interpolator":vt||void 0,"--divkit-appearance-fade-start":vt?yt:void 0,"--divkit-appearance-delay":vt?"".concat($t,"ms"):void 0,"--divkit-appearance-duration":vt?"".concat(_t,"ms"):void 0})},[tt,et,nt,rt,lt,ft,a,ct,E,k,x,w,b,_,$,y,v,m,g,f,h,d,c,l,i,o,function(){0===lt&&r(4,lt=1)},function(){0===lt&&r(4,lt=dr)},st,ut,dt,ht,pt,gt,mt,vt,yt,$t,_t,bt,wt,u,s,C,A,V,j,D,P,S,F,I,N,z,M,J,O]}const pr=class extends Tt{constructor(t){super(),Ot(this,t,hr,cr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},fr={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 gr(t){return t>0&&t<1}function mr(t){return String(Math.ceil(1e3*t)/1e3)}function vr(t,e,n){if(t.some(gr)){const e=Math.max(...t.filter(gr).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(ne(r*t[e]/o),",").concat(mr(t[e]),"fr)"):t[e]?i[e]="".concat(mr(t[e]),"fr"):i[e]="auto";return i.join(" ")}function yr(t,e,n){const r=t.slice();return r[29]=e[n],r}function $r(t){let e,n;return e=new on({props:{cls:$e("grid",fr,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],$$slots:{default:[br]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=$e("grid",fr,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||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function _r(t){let e,n;return e=new Ci({props:{layoutParams:t[29].layoutParams,div:t[29].json,templateContext:t[29].templateContext,origJson:t[29].origJson}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(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||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function br(t){let e,n,r=t[5],o=[];for(let e=0;e<r.length;e+=1)o[e]=_r(yr(t,r,e));const i=t=>Vt(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=J()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=J()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);P(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=yr(t,r,a);o[a]?(o[a].p(i,n),At(o[a],1)):(o[a]=_r(i),o[a].c(),At(o[a],1),o[a].m(e.parentNode,e))}for(Et(),a=r.length;a<o.length;a+=1)i(a);Ct()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)At(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Vt(o[t]);n=!1},d(t){F(o,t),t&&S(e)}}}function wr(t){let e,n,r=!t[6]&&$r(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){t[6]?r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct()):r?(r.p(t,n),64&n[0]&&At(r,1)):(r=$r(t),r.c(),At(r,1),r.m(e.parentNode,e))},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}function xr(t,e,r){let o,i,a,l,s,c,u,d,h,f,g,m,v=n,y=n,$=n,_=n;t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>_()));let{json:b={}}=e,{templateContext:w}=e,{origJson:x}=e,{layoutParams:k}=e;const E=at(Yt);let C,A,V=!1,j=1,D=[],P=[],S=[],F=[],I=0,N=!1,z="top",M="left";return t.$$set=t=>{"json"in t&&r(0,b=t.json),"templateContext"in t&&r(1,w=t.templateContext),"origJson"in t&&r(2,x=t.origJson),"layoutParams"in t&&r(3,k=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(23,o=b.items),8388608&t.$$.dirty[0]&&((null==o?void 0:o.length)&&Array.isArray(o)?r(12,V=!1):(r(12,V=!0),E.logError(Zt(new Error('Incorrect or empty "items" prop for div "grid"'))))),1&t.$$.dirty[0]&&(r(11,i=E.getDerivedFromVars(b.column_count)),_(),_=p(i,(t=>r(27,m=t)))),134225920&t.$$.dirty[0]&&r(13,j=ln(m,j)),8392706&t.$$.dirty[0]&&r(22,a=(!V&&o||[]).map((t=>{let e=t,n=w;return({templateContext:n,json:e}=E.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4194304&t.$$.dirty[0]){let t=[];a.forEach((e=>{t.push(E.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),r(4,C=Wt(t,(t=>[...t]))),$(),$=p(C,(t=>r(26,g=t)))}if(72081416&t.$$.dirty[0]){const t={};let e=0,n=0;r(14,D=[]),r(15,P=[]),r(16,S=[]),r(17,F=[]),r(19,N=!1),r(5,A=a.map(((o,i)=>{var a,l,s,c;const u=g[i],d=Number(u.columnSpan)||1,h=Number(u.rowSpan)||1,p={x:e,y:n,colSpan:d,rowSpan:h},f="match_parent"===(null===(a=u.width)||void 0===a?void 0:a.type)?Number(u.width.weight||1)/d:0,m="match_parent"===(null===(l=u.height)||void 0===l?void 0:l.type)?Number(u.height.weight||1)/h:0,v=1===d&&"fixed"===(null===(s=u.width)||void 0===s?void 0:s.type)&&u.width.value?Number(u.width.value)/d:0,y=1===h&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/h:0;for(let o=e;o<e+d;++o)for(let e=n;e<n+h;++e)t[o+"_"+e]?r(19,N=!0):(t[o+"_"+e]=!0,(!D[o]||D[o]<f)&&r(14,D[o]=f,D),(!P[e]||P[e]<m)&&r(15,P[e]=m,P),(!S[o]||S[o]<v)&&r(16,S[o]=v,S),(!F[e]||F[e]<y)&&r(17,F[e]=y,F));do{++e,e>=j&&(e=0,++n)}while(t[e+"_"+n]);return Object.assign(Object.assign({},o),{layoutParams:{gridArea:p,fakeElement:(null==k?void 0:k.fakeElement)||!1}})}))),0!==e&&r(19,N=!0),N&&E.logError(Zt(new Error('Mismatching "grid" rows/columns'))),r(18,I=n)}1&t.$$.dirty[0]&&(r(10,l=E.getDerivedFromVars(b.content_alignment_vertical)),y(),y=p(l,(t=>r(25,f=t)))),34603008&t.$$.dirty[0]&&r(20,z=mn(f,z)),1&t.$$.dirty[0]&&(r(9,s=E.getDerivedFromVars(b.content_alignment_horizontal)),v(),v=p(s,(t=>r(24,h=t)))),18874368&t.$$.dirty[0]&&r(21,M=gn(h,M)),3145728&t.$$.dirty[0]&&r(8,c={valign:z,halign:M}),516096&t.$$.dirty[0]&&r(7,u={"grid-template-columns":vr(D,S,j),"grid-template-rows":vr(P,F,I)}),528384&t.$$.dirty[0]&&r(6,d=V||N)},[b,w,x,k,C,A,d,u,c,s,l,i,V,j,D,P,S,F,I,N,z,M,a,o,h,f,g,m]}const kr={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 Er(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(" ")}function Cr(t,e){let n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,o),n=null}),e)}}const{Boolean:Ar}=Pt;function Vr(t,e,n){const r=t.slice();return r[70]=e[n],r[71]=e,r[72]=n,r}function jr(t,e,n){const r=t.slice();return r[73]=e[n],r}function Dr(t){let e,n;return e=new on({props:{cls:$e("gallery",kr,t[16]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",forceHeight:"vertical"===t[6],forceWidth:"horizontal"===t[6],$$slots:{default:[zr]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.cls=$e("gallery",kr,t[16])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),64&n[0]&&(r.forceHeight="vertical"===t[6]),64&n[0]&&(r.forceWidth="horizontal"===t[6]),335953872&n[0]|16384&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function Pr(t){let e,n;return e=new Ci({props:{layoutParams:t[8],div:t[73].json,templateContext:t[73].templateContext,origJson:t[73].origJson}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),67108864&n[0]&&(r.div=t[73].json),67108864&n[0]&&(r.templateContext=t[73].templateContext),67108864&n[0]&&(r.origJson=t[73].origJson),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function Sr(t){let e,n,r,o,i,a=t[72],l=t[70],s=[];for(let e=0;e<l.length;e+=1)s[e]=Pr(jr(t,l,e));const c=t=>Vt(s[t],1,1,(()=>{s[t]=null})),u=()=>t[58](e,a),d=()=>t[58](null,a);return{c(){e=I("div");for(let t=0;t<s.length;t+=1)s[t].c();n=M(),this.h()},l(t){e=U(t,"DIV",{class:!0,style:!0});var r=R(e);for(let t=0;t<s.length;t+=1)s[t].l(r);n=G(r),r.forEach(S),this.h()},h(){T(e,"class",r=kr.gallery__items),T(e,"style",o=ee(t[17]))},m(t,r){P(t,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);D(e,n),u(),i=!0},p(r,h){if(t=r,67109120&h[0]){let r;for(l=t[70],r=0;r<l.length;r+=1){const o=jr(t,l,r);s[r]?(s[r].p(o,h),At(s[r],1)):(s[r]=Pr(o),s[r].c(),At(s[r],1),s[r].m(e,n))}for(Et(),r=l.length;r<s.length;r+=1)c(r);Ct()}(!i||131072&h[0]&&o!==(o=ee(t[17])))&&T(e,"style",o),a!==t[72]&&(d(),a=t[72],u())},i(t){if(!i){for(let t=0;t<l.length;t+=1)At(s[t]);i=!0}},o(t){s=s.filter(Ar);for(let t=0;t<s.length;t+=1)Vt(s[t]);i=!1},d(t){t&&S(e),F(s,t),d()}}}function Fr(t){let e,n,r=t[12]&&t[9]&&Ir(t),o=t[13]&&t[9]&&Nr(t);return{c(){r&&r.c(),e=M(),o&&o.c(),n=J()},l(t){r&&r.l(t),e=G(t),o&&o.l(t),n=J()},m(t,i){r&&r.m(t,i),P(t,e,i),o&&o.m(t,i),P(t,n,i)},p(t,i){t[12]&&t[9]?r?r.p(t,i):(r=Ir(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[13]&&t[9]?o?o.p(t,i):(o=Nr(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){r&&r.d(t),t&&S(e),o&&o.d(t),t&&S(n)}}}function Ir(t){let e,r,o,i,a,l,s,c;return{c(){e=I("div"),r=N("svg"),o=N("path"),this.h()},l(t){e=U(t,"DIV",{class:!0});var n=R(e);r=q(n,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=R(r);o=q(i,"path",{class:!0,d:!0}),R(o).forEach(S),i.forEach(S),n.forEach(S),this.h()},h(){T(o,"class",i=kr["gallery__arrow-icon-path"]),T(o,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),T(r,"class",a=kr["gallery__arrow-icon"]),T(r,"xmlns","http://www.w3.org/2000/svg"),T(r,"width","32"),T(r,"height","32"),T(r,"viewBox","0 0 32 32"),T(r,"fill","none"),T(e,"class",l=kr.gallery__arrow+" "+kr.gallery__arrow_left)},m(n,i){P(n,e,i),D(e,r),D(r,o),s||(c=O(e,"click",t[61]),s=!0)},p:n,d(t){t&&S(e),s=!1,c()}}}function Nr(t){let e,r,o,i,a,l,s,c;return{c(){e=I("div"),r=N("svg"),o=N("path"),this.h()},l(t){e=U(t,"DIV",{class:!0});var n=R(e);r=q(n,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=R(r);o=q(i,"path",{class:!0,d:!0}),R(o).forEach(S),i.forEach(S),n.forEach(S),this.h()},h(){T(o,"class",i=kr["gallery__arrow-icon-path"]),T(o,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),T(r,"class",a=kr["gallery__arrow-icon"]),T(r,"xmlns","http://www.w3.org/2000/svg"),T(r,"width","32"),T(r,"height","32"),T(r,"viewBox","0 0 32 32"),T(r,"fill","none"),T(e,"class",l=kr.gallery__arrow+" "+kr.gallery__arrow_right)},m(n,i){P(n,e,i),D(e,r),D(r,o),s||(c=O(e,"click",t[62]),s=!0)},p:n,d(t){t&&S(e),s=!1,c()}}}function zr(t){let e,n,r,o,i,a,l,c,u,d,h,p=t[26],f=[];for(let e=0;e<p.length;e+=1)f[e]=Sr(Vr(t,p,e));const g=t=>Vt(f[t],1,1,(()=>{f[t]=null}));let m="horizontal"===t[6]&&Fr(t);return{c(){e=I("div"),n=I("div");for(let t=0;t<f.length;t+=1)f[t].c();l=M(),m&&m.c(),c=J(),this.h()},l(t){e=U(t,"DIV",{class:!0,style:!0});var r=R(e);n=U(r,"DIV",{class:!0,style:!0});var o=R(n);for(let t=0;t<f.length;t+=1)f[t].l(o);o.forEach(S),r.forEach(S),l=G(t),m&&m.l(t),c=J(),this.h()},h(){T(n,"class",r=kr["gallery__items-grid"]),T(n,"style",o=ee(t[18])),T(e,"class",i=kr.gallery__scroller+" "+(t[28]?Kt:"")),T(e,"style",a=ee(t[7]))},m(r,o){P(r,e,o),D(e,n);for(let t=0;t<f.length;t+=1)f[t].m(n,null);t[59](n),t[60](e),P(r,l,o),m&&m.m(r,o),P(r,c,o),u=!0,d||(h=O(e,"scroll",(function(){s(t[9]?t[30]:null)&&(t[9]?t[30]:null).apply(this,arguments)})),d=!0)},p(r,l){if(t=r,67242240&l[0]){let e;for(p=t[26],e=0;e<p.length;e+=1){const r=Vr(t,p,e);f[e]?(f[e].p(r,l),At(f[e],1)):(f[e]=Sr(r),f[e].c(),At(f[e],1),f[e].m(n,null))}for(Et(),e=p.length;e<f.length;e+=1)g(e);Ct()}(!u||262144&l[0]&&o!==(o=ee(t[18])))&&T(n,"style",o),(!u||268435456&l[0]&&i!==(i=kr.gallery__scroller+" "+(t[28]?Kt:"")))&&T(e,"class",i),(!u||128&l[0]&&a!==(a=ee(t[7])))&&T(e,"style",a),"horizontal"===t[6]?m?m.p(t,l):(m=Fr(t),m.c(),m.m(c.parentNode,c)):m&&(m.d(1),m=null)},i(t){if(!u){for(let t=0;t<p.length;t+=1)At(f[t]);u=!0}},o(t){f=f.filter(Ar);for(let t=0;t<f.length;t+=1)Vt(f[t]);u=!1},d(n){n&&S(e),F(f,n),t[59](null),t[60](null),n&&S(l),m&&m.d(n),n&&S(c),d=!1,h()}}}function Mr(t){let e,n,r,o,i=!t[5]&&Dr(t);return{c(){i&&i.c(),e=J()},l(t){i&&i.l(t),e=J()},m(a,l){i&&i.m(a,l),P(a,e,l),n=!0,r||(o=O(window,"resize",(function(){s(t[9]?t[31]:null)&&(t[9]?t[31]:null).apply(this,arguments)})),r=!0)},p(n,r){(t=n)[5]?i&&(Et(),Vt(i,1,1,(()=>{i=null})),Ct()):i?(i.p(t,r),32&r[0]&&At(i,1)):(i=Dr(t),i.c(),At(i,1),i.m(e.parentNode,e))},i(t){n||(At(i),n=!0)},o(t){Vt(i),n=!1},d(t){i&&i.d(t),t&&S(e),r=!1,o()}}}function Jr(t,e,r){let o,i,a,l,s,c,u,d,h,g,m,v,y,$,_,b,w,x,k,E,C,A,V,j,D,P,S,F,I=n,N=n,z=n,M=n,J=n,O=n,T=n,B=n,R=n,W=n;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((()=>T())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>W()));let{json:L={}}=e,{templateContext:U}=e,{origJson:q}=e,{layoutParams:H}=e;const G=at(Yt);let K,X,Y=[],Z=!1,Q=!1,tt=null,et=!1,nt=!1;const it=G.isDesktop;f(t,it,(t=>r(57,S=t)));let lt,st,ut,dt,ht=1,pt="horizontal",ft="start",gt=8,mt="",vt=[],yt={},$t=!1,_t={},bt=0;function wt(){const t=K.scrollLeft,e=K.scrollWidth,n=K.offsetWidth;r(12,Z=t>2),r(13,Q=t+n<e-2)}const xt=Cr(wt,50);function kt(t){K.scroll({left:K.scrollLeft+.75*K.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function Et(){let t=[],e=Y[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<ht;++e){const r=Y[e].children[n];r&&t.push(r)}return t}function Ct(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===pt,o=r?"offsetLeft":"offsetTop",i=r?"left":"top";K.scroll({[i]:Math.max(0,t[e][o]-gt/2),behavior:n})}function At(t){const e=Et(),n=K.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===pt?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"===pt?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!L.id||nt||(null==H?void 0:H.fakeElement)||G.registerInstance(L.id,{setCurrentItem(t){const e=Et();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');Ct(e,t)},setPreviousItem(t){const e=At("prev"),n=Et();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),Ct(n,r)},setNextItem(t){const e="horizontal"===pt?K.scrollLeft+K.offsetWidth===K.scrollWidth:K.scrollTop+K.offsetHeight===K.scrollHeight,n=Et();if(e&&"ring"===t)return void Ct(n,0);const r=At("next");let o=r+1;o>n.length-1&&(o="ring"===t?0:r),Ct(n,o)}}),rt((()=>{r(34,et=!0),!nt&&(xt(),bt)&&Ct(Et(),bt,"auto")})),ot((()=>{r(34,et=!1),L.id&&!(null==H?void 0:H.fakeElement)&&G.unregisterInstance(L.id)})),t.$$set=t=>{"json"in t&&r(0,L=t.json),"templateContext"in t&&r(1,U=t.templateContext),"origJson"in t&&r(2,q=t.origJson),"layoutParams"in t&&r(3,H=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(47,o=L.items),65536&t.$$.dirty[1]&&((null==o?void 0:o.length)&&Array.isArray(o)?r(5,nt=!1):(r(5,nt=!0),G.logError(Zt(new Error('Incorrect or empty "items" prop for div "gallery"'))))),34&t.$$.dirty[0]|65536&t.$$.dirty[1]&&r(46,i=(!nt&&o||[]).map((t=>{let e=t,n=U;return({templateContext:n,json:e}=G.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),32&t.$$.dirty[0]|67108872&t.$$.dirty[1]&&r(9,a=S&&et&&!nt),528&t.$$.dirty[0]|4&t.$$.dirty[1]&&(a?"undefined"!=typeof ResizeObserver&&(r(33,tt=new ResizeObserver((()=>{xt()}))),tt.observe(X)):tt&&(tt.disconnect(),r(33,tt=null))),1&t.$$.dirty[0]&&(r(27,l=G.getDerivedFromVars(L.column_count)),R(),R=p(l,(t=>r(56,P=t)))),33554448&t.$$.dirty[1]&&r(35,ht=ln(P,ht)),32784&t.$$.dirty[1]&&r(26,s=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}(i,ht)),1&t.$$.dirty[0]&&(r(25,c=G.getDerivedFromVars(L.orientation)),B(),B=p(c,(t=>r(55,D=t)))),64&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&r(6,pt=Qn(D,pt)),1&t.$$.dirty[0]&&(r(24,u=G.getDerivedFromVars(L.cross_content_alignment)),T(),T=p(u,(t=>r(54,j=t)))),8388640&t.$$.dirty[1]&&r(36,ft=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(j,ft)),1&t.$$.dirty[0]&&(r(23,d=G.getDerivedFromVars(L.item_spacing)),O(),O=p(d,(t=>r(53,V=t)))),4194432&t.$$.dirty[1]&&(r(38,gt=Ce(V,gt)),r(37,lt=ne(gt))),1&t.$$.dirty[0]&&(r(22,h=G.getDerivedFromVars(L.cross_spacing)),J(),J=p(h,(t=>r(52,A=t)))),2097792&t.$$.dirty[1]&&(r(40,ut=Ce(A,gt)),r(39,st=ne(ut))),1&t.$$.dirty[0]&&(r(21,g=G.getDerivedFromVars(L.paddings)),M(),M=p(g,(t=>r(51,C=t)))),1049600&t.$$.dirty[1]&&r(41,mt=Ee(C,mt)),64&t.$$.dirty[0]&&r(45,m="horizontal"===pt?"grid-template-columns":"grid-template-rows"),64&t.$$.dirty[0]|32768&t.$$.dirty[1]){let t=[];i.forEach((e=>{const n="horizontal"===pt?"width":"height";t.push(G.getDerivedFromVars(e.json[n]))})),r(14,dt=Wt(t,(t=>t))),z(),z=p(dt,(t=>r(50,E=t)))}if(64&t.$$.dirty[0]|526352&t.$$.dirty[1]&&(r(42,vt=[]),ht>1?vt.push("auto"):E.forEach((t=>{!t&&"horizontal"===pt||"match_parent"===(null==t?void 0:t.type)?vt.push("100%"):vt.push("max-content")}))),1&t.$$.dirty[0]&&(r(20,v=G.getDerivedFromVars(L.scroll_mode)),N(),N=p(v,(t=>r(49,k=t)))),456&t.$$.dirty[0]|262320&t.$$.dirty[1]){const t={};let e={};r(43,$t=!1),(null==H?void 0:H.fakeElement)&&(e.fakeElement=!0),"horizontal"===pt?e.parentVAlign=ft:e.parentHAlign=ft,"paging"===k&&(r(43,$t=!0),e.scrollSnap="start",t["horizontal"===pt?"scroll-padding-left":"scroll-padding-top"]=ne(gt/2)),1===ht&&(e.parentLayoutOrientation=pt),r(7,yt=je(t,yt)),r(8,_t=je(e,_t))}1&t.$$.dirty[0]&&(r(19,y=G.getDerivedFromVars(L.restrict_parent_scroll)),W(),W=p(y,(t=>r(28,F=t)))),1280&t.$$.dirty[1]&&r(18,$={padding:mt,"grid-gap":st}),18496&t.$$.dirty[1]&&r(17,_={"grid-gap":lt,[m]:Er(vt)}),64&t.$$.dirty[0]|4096&t.$$.dirty[1]&&r(16,b={orientation:pt,"scroll-snap":$t}),1&t.$$.dirty[0]&&(r(15,w=G.getDerivedFromVars(L.default_item)),I(),I=p(w,(t=>r(48,x=t)))),139264&t.$$.dirty[1]&&r(44,bt=Ce(x,bt))},[L,U,q,H,X,nt,pt,yt,_t,a,K,Y,Z,Q,dt,w,b,_,$,y,v,g,h,d,u,c,s,l,F,it,wt,xt,kt,tt,et,ht,ft,lt,gt,st,ut,mt,vt,$t,bt,m,i,o,x,k,E,C,A,V,j,D,P,S,function(t,e){ct[t?"unshift":"push"]((()=>{Y[e]=t,r(11,Y)}))},function(t){ct[t?"unshift":"push"]((()=>{X=t,r(4,X)}))},function(t){ct[t?"unshift":"push"]((()=>{K=t,r(10,K)}))},()=>kt("left"),()=>kt("right")]}const Or={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:Tr}=Pt;function Br(t,e,n){const r=t.slice();return r[79]=e[n],r[81]=n,r}function Rr(t,e,n){const r=t.slice();r[79]=e[n],r[81]=n;const o=r[81]===r[6];return r[82]=o,r}function Wr(t){let e,n;return e=new on({props:{cls:$e("tabs",Or,t[39]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",$$slots:{default:[Kr]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(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]),1476394986&n[0]|64&n[1]|4194304&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function Lr(t){let e,n,r=t[79].title+"";return{c(){e=z(r),n=M()},l(t){e=H(t,r),n=G(t)},m(t,r){P(t,e,r),P(t,n,r)},p(t,n){65536&n[0]&&r!==(r=t[79].title+"")&&K(e,r)},d(t){t&&S(e),t&&S(n)}}}function Ur(t){var e,n,r;let o,i;function a(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[55](t[81],...n)}return o=new Me({props:{cls:$e("tabs__item",Or,{selected:t[82],actionable:Boolean(t[79].title_click_action)}),actions:!t[79].title_click_action||null!==(e=t[3])&&void 0!==e&&e.fakeElement?[]:[t[79].title_click_action],attrs:{id:"".concat(t[38],"-tab-").concat(t[81]),"aria-controls":"".concat(t[38],"-panel-").concat(t[81]),role:"tab",tabindex:!t[82]||null!==(n=t[3])&&void 0!==n&&n.fakeElement?"-1":t[79].title_click_action?void 0:"0","aria-selected":t[82]?"true":"false"},customAction:null!==(r=t[3])&&void 0!==r&&r.fakeElement?null:a,$$slots:{default:[Lr]},$$scope:{ctx:t}}}),{c(){Nt(o.$$.fragment)},l(t){zt(o.$$.fragment,t)},m(t,e){Mt(o,t,e),i=!0},p(e,n){var r,i,l;t=e;const s={};65600&n[0]&&(s.cls=$e("tabs__item",Or,{selected:t[82],actionable:Boolean(t[79].title_click_action)})),65544&n[0]&&(s.actions=!t[79].title_click_action||null!==(r=t[3])&&void 0!==r&&r.fakeElement?[]:[t[79].title_click_action]),65608&n[0]&&(s.attrs={id:"".concat(t[38],"-tab-").concat(t[81]),"aria-controls":"".concat(t[38],"-panel-").concat(t[81]),role:"tab",tabindex:!t[82]||null!==(i=t[3])&&void 0!==i&&i.fakeElement?"-1":t[79].title_click_action?void 0:"0","aria-selected":t[82]?"true":"false"}),8&n[0]&&(s.customAction=null!==(l=t[3])&&void 0!==l&&l.fakeElement?null:a),65536&n[0]|4194304&n[2]&&(s.$$scope={dirty:n,ctx:t}),o.$set(s)},i(t){i||(At(o.$$.fragment,t),i=!0)},o(t){Vt(o.$$.fragment,t),i=!1},d(t){Jt(o,t)}}}function qr(t){let e,n,r;return{c(){e=I("div"),this.h()},l(t){e=U(t,"DIV",{class:!0,style:!0}),R(e).forEach(S),this.h()},h(){T(e,"class",n=Or.tabs__separator),T(e,"style",r=ee(t[30]))},m(t,n){P(t,e,n)},p(t,n){1073741824&n[0]&&r!==(r=ee(t[30]))&&T(e,"style",r)},d(t){t&&S(e)}}}function Hr(t){let e,n;return e=new Ci({props:{div:t[79].div,templateContext:t[1],layoutParams:t[5]}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.div=t[79].div),2&n[0]&&(r.templateContext=t[1]),32&n[0]&&(r.layoutParams=t[5]),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function Gr(t){let e,n,r,o,i,a,l=t[25][t[81]]&&Hr(t);return{c(){e=I("div"),l&&l.c(),n=M(),this.h()},l(t){e=U(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=R(e);l&&l.l(r),n=G(r),r.forEach(S),this.h()},h(){T(e,"class",r=$e("tabs__panel",Or,{visible:t[26][t[81]]})),T(e,"role","tabpanel"),T(e,"id",o=t[38]+"-panel-"+t[81]),T(e,"aria-labelledby",i=t[38]+"-tab-"+t[81]),X(e,"left",100*t[81]+"%")},m(t,r){P(t,e,r),l&&l.m(e,null),D(e,n),a=!0},p(t,o){t[25][t[81]]?l?(l.p(t,o),33554432&o[0]&&At(l,1)):(l=Hr(t),l.c(),At(l,1),l.m(e,n)):l&&(Et(),Vt(l,1,1,(()=>{l=null})),Ct()),(!a||67108864&o[0]&&r!==(r=$e("tabs__panel",Or,{visible:t[26][t[81]]})))&&T(e,"class",r)},i(t){a||(At(l),a=!0)},o(t){Vt(l),a=!1},d(t){t&&S(e),l&&l.d()}}}function Kr(t){let e,n,r,o,i,a,c,u,d,h,p,f=t[16],g=[];for(let e=0;e<f.length;e+=1)g[e]=Ur(Rr(t,f,e));const m=t=>Vt(g[t],1,1,(()=>{g[t]=null}));let v=t[17]&&qr(t),y=t[16],$=[];for(let e=0;e<y.length;e+=1)$[e]=Gr(Br(t,y,e));const _=t=>Vt($[t],1,1,(()=>{$[t]=null}));return{c(){e=I("div");for(let t=0;t<g.length;t+=1)g[t].c();r=M(),v&&v.c(),o=M(),i=I("div"),a=I("div");for(let t=0;t<$.length;t+=1)$[t].c();this.h()},l(t){e=U(t,"DIV",{class:!0,role:!0});var n=R(e);for(let t=0;t<g.length;t+=1)g[t].l(n);n.forEach(S),r=G(t),v&&v.l(t),o=G(t),i=U(t,"DIV",{class:!0});var l=R(i);a=U(l,"DIV",{class:!0});var s=R(a);for(let t=0;t<$.length;t+=1)$[t].l(s);s.forEach(S),l.forEach(S),this.h()},h(){T(e,"class",n=Or.tabs__list+" "+(t[37]?Kt:"")),T(e,"role","tablist"),X(e,"--divkit-tabs-font-size",ne(t[7]),!1),X(e,"--divkit-tabs-paddings",t[8],!1),X(e,"--divkit-tabs-line-height",t[21],!1),X(e,"--divkit-tabs-letter-spacing",t[22],!1),X(e,"--divkit-tabs-active-font-weight",t[10]||"",!1),X(e,"--divkit-tabs-inactive-font-weight",t[11]||"",!1),X(e,"--divkit-tabs-active-text-color",t[12],!1),X(e,"--divkit-tabs-inactive-text-color",t[13],!1),X(e,"--divkit-tabs-active-background-color",t[14],!1),X(e,"--divkit-tabs-inactive-background-color",t[15],!1),X(e,"--divkit-tabs-border-radius",t[9],!1),T(a,"class",c=$e("tabs__swiper",Or,{inited:t[23],animated:t[24]})),T(i,"class",u=Or.tabs__panels+" "+(t[37]?Kt:""))},m(n,l){P(n,e,l);for(let t=0;t<g.length;t+=1)g[t].m(e,null);t[56](e),P(n,r,l),v&&v.m(n,l),P(n,o,l),P(n,i,l),D(i,a);for(let t=0;t<$.length;t+=1)$[t].m(a,null);t[57](a),t[58](i),d=!0,h||(p=[O(e,"keydown",t[41]),O(a,"touchstart",(function(){s(t[28]?t[42]:void 0)&&(t[28]?t[42]:void 0).apply(this,arguments)})),O(a,"touchmove",(function(){s(t[28]?t[43]:void 0)&&(t[28]?t[43]:void 0).apply(this,arguments)})),O(a,"touchend",(function(){s(t[28]?t[44]:void 0)&&(t[28]?t[44]:void 0).apply(this,arguments)})),O(a,"touchcancel",(function(){s(t[28]?t[44]:void 0)&&(t[28]?t[44]:void 0).apply(this,arguments)}))],h=!0)},p(r,l){if(t=r,65608&l[0]|640&l[1]){let n;for(f=t[16],n=0;n<f.length;n+=1){const r=Rr(t,f,n);g[n]?(g[n].p(r,l),At(g[n],1)):(g[n]=Ur(r),g[n].c(),At(g[n],1),g[n].m(e,null))}for(Et(),n=f.length;n<g.length;n+=1)m(n);Ct()}if((!d||64&l[1]&&n!==(n=Or.tabs__list+" "+(t[37]?Kt:"")))&&T(e,"class",n),128&l[0]&&X(e,"--divkit-tabs-font-size",ne(t[7]),!1),256&l[0]&&X(e,"--divkit-tabs-paddings",t[8],!1),2097152&l[0]&&X(e,"--divkit-tabs-line-height",t[21],!1),4194304&l[0]&&X(e,"--divkit-tabs-letter-spacing",t[22],!1),1024&l[0]&&X(e,"--divkit-tabs-active-font-weight",t[10]||"",!1),2048&l[0]&&X(e,"--divkit-tabs-inactive-font-weight",t[11]||"",!1),4096&l[0]&&X(e,"--divkit-tabs-active-text-color",t[12],!1),8192&l[0]&&X(e,"--divkit-tabs-inactive-text-color",t[13],!1),16384&l[0]&&X(e,"--divkit-tabs-active-background-color",t[14],!1),32768&l[0]&&X(e,"--divkit-tabs-inactive-background-color",t[15],!1),512&l[0]&&X(e,"--divkit-tabs-border-radius",t[9],!1),t[17]?v?v.p(t,l):(v=qr(t),v.c(),v.m(o.parentNode,o)):v&&(v.d(1),v=null),100728866&l[0]|128&l[1]){let e;for(y=t[16],e=0;e<y.length;e+=1){const n=Br(t,y,e);$[e]?($[e].p(n,l),At($[e],1)):($[e]=Gr(n),$[e].c(),At($[e],1),$[e].m(a,null))}for(Et(),e=y.length;e<$.length;e+=1)_(e);Ct()}(!d||25165824&l[0]&&c!==(c=$e("tabs__swiper",Or,{inited:t[23],animated:t[24]})))&&T(a,"class",c),(!d||64&l[1]&&u!==(u=Or.tabs__panels+" "+(t[37]?Kt:"")))&&T(i,"class",u)},i(t){if(!d){for(let t=0;t<f.length;t+=1)At(g[t]);for(let t=0;t<y.length;t+=1)At($[t]);d=!0}},o(t){g=g.filter(Tr);for(let t=0;t<g.length;t+=1)Vt(g[t]);$=$.filter(Tr);for(let t=0;t<$.length;t+=1)Vt($[t]);d=!1},d(n){n&&S(e),F(g,n),t[56](null),n&&S(r),v&&v.d(n),n&&S(o),n&&S(i),F($,n),t[57](null),t[58](null),h=!1,l(p)}}}function Xr(t){let e,n,r=!t[4]&&Wr(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){t[4]?r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct()):r?(r.p(t,n),16&n[0]&&At(r,1)):(r=Wr(t),r.c(),At(r,1),r.m(e.parentNode,e))},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}function Yr(t,e,r){let o,i,a,l,s,c,u,d,h,f,g,m,v,y,$,_,b,w,x,k,E=n,C=n,A=n,V=n,j=n,D=n,P=n,S=n;var F;t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S()));let{json:I={}}=e,{templateContext:N}=e,{origJson:z}=e,{layoutParams:M}=e;const J=at(Yt),O=J.genId("tabs");let T,B,R,W=!1,L={};const U=J.getJsonWithVars(I.selected_tab);let q,H,G=U&&Number(U)||0,K=12,X="",Y="",Z="",Q="",tt="",et="",nt="",rt="",it="",lt="",st=!1,ut=!1,dt=G,ht=[],pt=[];async function ft(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(dt=G,r(6,G=t),xt(),yt(),e){await gt();const t=T.querySelector(".".concat(Or.tabs__item_selected));t&&t.focus()}}function mt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==o?void 0:o.length;if(!n)return;let r=G+t;r>=n?r=0:r<0&&(r=n-1),ft(r,e)}function vt(t,e){return G===e||(ft(e),!1)}function yt(){r(24,ut=!0),$t(100*-G),_t(),async function(){await gt();const t=document.getElementById("".concat(O,"-panel-").concat(G));t&&r(19,B.style.height=ne(t.offsetHeight),B)}(),wt(),Ct=-G*B.clientWidth}async function $t(t){await gt(),r(20,R.style.transform="translate3d(".concat(t,"%,0,0)"),R)}function _t(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,G-1):Math.min(G,dt),n=t?Math.min(o.length-1,G+1):Math.max(G,dt);r(25,ht=ht.map(((t,r)=>t||r>=e&&r<=n))),r(26,pt=pt.map(((t,r)=>r>=e&&r<=n)))}let bt=null;function wt(){bt&&clearTimeout(bt),bt=window.setTimeout((()=>{r(26,pt=o.map(((t,e)=>e===G)))}),400)}function xt(){st||(r(23,st=!0),r(19,B.style.height=ne(B.clientHeight),B),r(20,R.style.transform="translate3d(".concat(100*-dt,"%,0,0)"),R))}let kt,Et,Ct,At=null,Vt=null,jt=!1,Dt=!1;return!I.id||W||(null==M?void 0:M.fakeElement)||J.registerInstance(I.id,{setCurrentItem(t){if(t<0||t>o.length-1)throw new Error('Item is out of range in "set-current-item" action');ft(t)},setPreviousItem(t){let e=G-1;e<0&&(e="ring"===t?o.length-1:G),ft(e)},setNextItem(t){let e=G+1;e>o.length-1&&(e="ring"===t?0:G),ft(e)}}),ot((()=>{I.id&&!(null==M?void 0:M.fakeElement)&&J.unregisterInstance(I.id)})),t.$$set=t=>{"json"in t&&r(0,I=t.json),"templateContext"in t&&r(1,N=t.templateContext),"origJson"in t&&r(2,z=t.origJson),"layoutParams"in t&&r(3,M=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(16,o=I.items||[]),65536&t.$$.dirty[0]&&((null==o?void 0:o.length)&&Array.isArray(o)?r(4,W=!1):(r(4,W=!0),J.logError(Zt(new Error('Incorrect or empty "items" prop for div "tabs"'))))),1&t.$$.dirty[0]&&(r(36,i=J.getDerivedFromVars(I.width)),P(),P=p(i,(t=>r(54,x=t)))),1&t.$$.dirty[0]&&(r(35,a=J.getDerivedFromVars(I.height)),D(),D=p(a,(t=>r(53,w=t)))),40&t.$$.dirty[0]|12582912&t.$$.dirty[1]){let t={};(null==M?void 0:M.fakeElement)&&(t.fakeElement=!0),"wrap_content"===(null==x?void 0:x.type)&&(t.parentHorizontalWrapContent=!0),w&&"wrap_content"!==w.type||(t.parentVerticalWrapContent=!0),r(5,L=je(t,L))}if(65617&t.$$.dirty[0]&&!W&&(G<0||G>=o.length)&&(J.logError(Zt(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:I.selected_tab,length:o.length}})),r(6,G=G<0?0:o.length-1)),1&t.$$.dirty[0]&&(r(34,l=J.getDerivedFromVars(I.tab_title_style)),j(),j=p(l,(t=>r(52,b=t)))),2097152&t.$$.dirty[1]&&r(48,s=b||{}),128&t.$$.dirty[0]|131072&t.$$.dirty[1]&&r(7,K=ln(s.font_size,K)),384&t.$$.dirty[0]|131072&t.$$.dirty[1]&&(s.font_size||s.paddings)){const t=s.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/K*10,right:(Number(t.right)||0)/K*10,bottom:(Number(t.bottom)||0)/K*10,left:(Number(t.left)||0)/K*10};r(8,X=Ee(e,X))}if(128&t.$$.dirty[0]|131072&t.$$.dirty[1]){const t=s.line_height;void 0!==t&&Oe(t)&&r(21,Y=ne(t/K*10))}if(128&t.$$.dirty[0]|131072&t.$$.dirty[1]){const t=s.letter_spacing;void 0!==t&&we(t)&&r(22,Z=ne(t/K*10))}if(640&t.$$.dirty[0]|147456&t.$$.dirty[1]&&(s.corner_radius||s.corners_radius||s.font_size)){const t=null!==r(45,F=s.corner_radius)&&void 0!==F?F:1e3;s.corners_radius?r(9,Q=xe(s.corners_radius,t,K,Q)):we(t)&&r(9,Q=ne(t/K*10))}1024&t.$$.dirty[0]|131072&t.$$.dirty[1]&&r(10,q=cn(s.active_font_weight||s.font_weight,q)),2048&t.$$.dirty[0]|131072&t.$$.dirty[1]&&r(11,H=cn(s.inactive_font_weight||s.font_weight,H)),4096&t.$$.dirty[0]|131072&t.$$.dirty[1]&&r(12,tt=ie(s.active_text_color,1,tt)),8192&t.$$.dirty[0]|131072&t.$$.dirty[1]&&r(13,et=ie(s.inactive_text_color,1,et)),16384&t.$$.dirty[0]|131072&t.$$.dirty[1]&&r(14,nt=ie(s.active_background_color,1,nt)),32768&t.$$.dirty[0]|131072&t.$$.dirty[1]&&r(15,rt=ie(s.inactive_background_color,1,rt)),1&t.$$.dirty[0]&&(r(33,c=J.getDerivedFromVars(I.has_separator)),V(),V=p(c,(t=>r(17,_=t)))),1&t.$$.dirty[0]&&(r(32,u=J.getDerivedFromVars(I.separator_color)),A(),A=p(u,(t=>r(51,$=t)))),1&t.$$.dirty[0]&&(r(31,d=J.getDerivedFromVars(I.separator_paddings)),C(),C=p(d,(t=>r(50,y=t)))),131072&t.$$.dirty[0]|1671168&t.$$.dirty[1]&&_&&($&&r(46,it=ie($,1,it)),y&&r(47,lt=Ee(y,lt))),98304&t.$$.dirty[1]&&r(30,h={background:it,margin:lt}),1&t.$$.dirty[0]&&(r(29,f=J.getDerivedFromVars(I.switch_tabs_by_content_swipe_enabled)),E(),E=p(f,(t=>r(49,v=t)))),262144&t.$$.dirty[1]&&r(28,g=void 0===v||Boolean(v)),1&t.$$.dirty[0]&&(r(27,m=J.getDerivedFromVars(I.restrict_parent_scroll)),S(),S=p(m,(t=>r(37,k=t)))),65536&t.$$.dirty[0]&&(W||(r(25,ht=o.map(((t,e)=>e===G))),r(26,pt=o.map(((t,e)=>e===G)))))},[I,N,z,M,W,L,G,K,X,Q,q,H,tt,et,nt,rt,o,_,T,B,R,Y,Z,st,ut,ht,pt,m,g,f,h,d,u,c,l,a,i,k,O,{},vt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&o){if(37===t.which)mt(-1,!0);else if(39===t.which)mt(1,!0);else if(36===t.which)ft(0,!0);else{if(35!==t.which)return;ft(o.length-1,!0)}t.preventDefault()}},function(t){var e;const n=t.target,i=null===(e=null==n?void 0:n.closest)||void 0===e?void 0:e.call(n,".".concat(Kt));o.length<2||t.touches.length>1||i&&i!==B||(jt=!1,Dt=!1,At=Se(t),Vt=null,kt=Date.now(),Et=Ct||-G*B.clientWidth,r(24,ut=!1),bt&&clearTimeout(bt))},function(t){const e=Se(t);if(!At||Vt&&Vt.x===e.x&&Vt.y===e.y)return;Vt=e;const n=B.clientWidth;if(jt){Ct=e.x-At.x+Et;const t=n*o.length;if(Ct>0)Ct=Ct*n/(Ct+3*n);else if(-Ct+n>t){let e=-Ct+n-t;e=e*n/(e+3*n),Ct=n-t-e}$t(100*Ct/n)}else Math.abs(e.y-At.y)>10?Dt=!0:!Dt&&Math.abs(e.x-At.x)>8&&(xt(),jt=!0,At=e,$t(100*-G),_t(!0));jt&&t.cancelable&&t.preventDefault()},function(){Dt=!1,At=null;let t=G;if(!jt)return;jt=!1;const e=Math.min(512,B.clientWidth);Math.abs(Et-Ct)>e/4*Math.min(1,(Date.now()-kt)/750)&&(t+=Et>Ct?1:-1),t>=o.length?t=o.length-1:t<0&&(t=0),t===G?(Ct=-t*e,$t(100*-t),wt()):ft(t)},F,it,lt,s,v,y,$,b,w,x,(t,e)=>vt(0,t),function(t){ct[t?"unshift":"push"]((()=>{T=t,r(18,T)}))},function(t){ct[t?"unshift":"push"]((()=>{R=t,r(20,R)}))},function(t){ct[t?"unshift":"push"]((()=>{B=t,r(19,B)}))}]}const Zr="divkit-eb86",Qr="divkit-e08c";function to(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function eo(t){return t*t*t}function no(t){const e=t-1;return e*e*e+1}function ro(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 oo=ro([.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=ro([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]),ao={linear:r,ease:oo,ease_in:eo,ease_out:no,ease_in_out:to,spring:io};function lo(t){return Math.max(...t.map((t=>(Number(t.duration)||200)+(Number(t.start_delay)||0))))}function so(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=(ao[t.interpolator||"ease_in_out"]||to)(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,p;const e=1-u+u*(t.scale||0),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,o=null!==(p=t.pivot_y)&&void 0!==p?p:.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)),p=[u,h.length?h[h.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(p||"none",";opacity:").concat(c)}}}function co(t,e,n){return t*(1-n)+e*n}const uo={linear:r,ease:oo,ease_in:eo,ease_out:no,ease_in_out:to,spring:io};function ho(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 uo?uo[l.interpolator]:to,css:t=>["top:".concat(co(i.top,a.top,t)-o.top,"px"),"left:".concat(co(i.left,a.left,t)-o.left,"px"),"width:".concat(co(i.width,a.width,t),"px"),"height:".concat(co(i.height,a.height,t),"px")].join(";")}}function po(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...po(t))})):e.push(t),e}const{Map:fo}=Pt;function go(t,e,n){const r=t.slice();return r[27]=e[n],r}function mo(t){let e,n;return e=new on({props:{cls:"divkit-b8ef",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[wo]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.json=t[0]),4&n&&(r.origJson=t[2]),2&n&&(r.templateContext=t[1]),8&n&&(r.layoutParams=t[3]),1073742034&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function vo(t){let e,r,o=t[7],i=yo(t);return{c(){i.c(),e=J()},l(t){i.l(t),e=J()},m(t,n){i.m(t,n),P(t,e,n),r=!0},p(t,r){128&r&&d(o,o=t[7])?(Et(),Vt(i,1,1,n),Ct(),i=yo(t),i.c(),At(i,1),i.m(e.parentNode,e)):i.p(t,r)},i(t){r||(At(i),r=!0)},o(t){Vt(i),r=!1},d(t){t&&S(e),i.d(t)}}}function yo(t){let e,n;return e=new Ci({props:{div:t[7].div,templateContext:t[1]}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(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||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function $o(t){let e,n,r,o,i,a,l,s,c,u;function d(){return t[11](t[27])}return r=new Ci({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=I("div"),n=I("div"),Nt(r.$$.fragment),i=M(),this.h()},l(t){e=U(t,"DIV",{class:!0});var o=R(e);n=U(o,"DIV",{class:!0});var a=R(n);zt(r.$$.fragment,a),a.forEach(S),i=G(o),o.forEach(S),this.h()},h(){T(n,"class",o=Qr),T(e,"class",a=Zr)},m(t,o){P(t,e,o),D(e,n),Mt(r,n,null),D(e,i),s=!0,c||(u=O(e,"introend",d),c=!0)},p(e,n){t=e;const o={};64&n&&(o.div=t[27].json),64&n&&(o.templateContext=t[27].templateContext),r.$set(o)},i(n){s||(At(r.$$.fragment,n),l||mt((()=>{l=Dt(e,ho,t[27]),l.start()})),s=!0)},o(t){Vt(r.$$.fragment,t),s=!1},d(t){t&&S(e),Jt(r),c=!1,u()}}}function _o(t){let e,n,r,o,i,a,l,s,c,u;function d(){return t[10](t[27])}return r=new Ci({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=I("div"),n=I("div"),Nt(r.$$.fragment),i=M(),this.h()},l(t){e=U(t,"DIV",{class:!0,style:!0});var o=R(e);n=U(o,"DIV",{class:!0});var a=R(n);zt(r.$$.fragment,a),a.forEach(S),i=G(o),o.forEach(S),this.h()},h(){T(n,"class",o=Qr),T(e,"class",a=Zr),X(e,"left",t[27].offsetLeft+"px"),X(e,"top",t[27].offsetTop+"px"),X(e,"width",t[27].width+"px"),X(e,"height",t[27].height+"px")},m(t,o){P(t,e,o),D(e,n),Mt(r,n,null),D(e,i),s=!0,c||(u=O(e,"introend",d),c=!0)},p(n,o){t=n;const i={};64&o&&(i.div=t[27].json),64&o&&(i.templateContext=t[27].templateContext),r.$set(i),(!s||64&o)&&X(e,"left",t[27].offsetLeft+"px"),(!s||64&o)&&X(e,"top",t[27].offsetTop+"px"),(!s||64&o)&&X(e,"width",t[27].width+"px"),(!s||64&o)&&X(e,"height",t[27].height+"px")},i(n){s||(At(r.$$.fragment,n),l||mt((()=>{l=Dt(e,so,t[27]),l.start()})),s=!0)},o(t){Vt(r.$$.fragment,t),s=!1},d(t){t&&S(e),Jt(r),c=!1,u()}}}function bo(t,e){let n,r,o,i,a;const l=[_o,$o],s=[];function c(t,e){return"direction"in t[27]?0:1}return r=c(e),o=s[r]=l[r](e),{key:t,first:null,c(){n=J(),o.c(),i=J(),this.h()},l(t){n=J(),o.l(t),i=J(),this.h()},h(){this.first=n},m(t,e){P(t,n,e),s[r].m(t,e),P(t,i,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?s[r].p(e,n):(Et(),Vt(s[a],1,1,(()=>{s[a]=null})),Ct(),o=s[r],o?o.p(e,n):(o=s[r]=l[r](e),o.c()),At(o,1),o.m(i.parentNode,i))},i(t){a||(At(o),a=!0)},o(t){Vt(o),a=!1},d(t){t&&S(n),s[r].d(t),t&&S(i)}}}function wo(t){var e;let n,r,o,i,a=[],l=new fo,s=(null===(e=t[7])||void 0===e?void 0:e.div)&&vo(t),c=t[6];const u=t=>t[27];for(let e=0;e<c.length;e+=1){let n=go(t,c,e),r=u(n);l.set(r,a[e]=bo(r,n))}return{c(){s&&s.c(),n=M(),r=I("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){s&&s.l(t),n=G(t),r=U(t,"DIV",{class:!0,"aria-hidden":!0});var e=R(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(S),this.h()},h(){T(r,"class",o="divkit-adaa"),T(r,"aria-hidden","true")},m(e,o){s&&s.m(e,o),P(e,n,o),P(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&&At(s,1)):(s=vo(t),s.c(),At(s,1),s.m(n.parentNode,n)):s&&(Et(),Vt(s,1,1,(()=>{s=null})),Ct()),320&e&&(c=t[6],Et(),a=function(t,e,n,r,o,i,a,l,s,c,u,d){let h=t.length,p=i.length,f=h;const g={};for(;f--;)g[t[f].key]=f;const m=[],v=new Map,y=new Map;for(f=p;f--;){const t=d(o,i,f),r=n(t);let l=a.get(r);l?l.p(t,e):(l=c(r,t),l.c()),v.set(r,m[f]=l),r in g&&y.set(r,Math.abs(f-g[r]))}const $=new Set,_=new Set;function b(t){At(t,1),t.m(l,u),a.set(t.key,t),u=t.first,p--}for(;h&&p;){const e=m[p-1],n=t[h-1],r=e.key,o=n.key;e===n?(u=e.first,h--,p--):v.has(o)?!a.has(r)||$.has(r)?b(e):_.has(o)?h--:y.get(r)>y.get(o)?(_.add(r),b(e)):($.add(o),h--):(s(n,a),h--)}for(;h--;){const e=t[h];v.has(e.key)||s(e,a)}for(;p;)b(m[p-1]);return m}(a,e,u,0,t,c,l,r,St,bo,null,go),Ct())},i(t){if(!i){At(s);for(let t=0;t<c.length;t+=1)At(a[t]);i=!0}},o(t){Vt(s);for(let t=0;t<a.length;t+=1)Vt(a[t]);i=!1},d(e){s&&s.d(e),e&&S(n),e&&S(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]&&mo(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){let[o]=n;t[5]?r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct()):r?(r.p(t,o),32&o&&At(r,1)):(r=mo(t),r.c(),At(r,1),r.m(e.parentNode,e))},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}function ko(t){return"change_bounds"===t.type?t:"set"===t.type?ko(t.items[0]):null}function Eo(t,e,n){let r,{json:o={}}=e,{templateContext:i}=e,{origJson:a}=e,{layoutParams:l}=e;const s=at(Yt),c=at(_e);let u,d=new Map,h=new Set,p=!1,f=null,g=[],m=[],v=[],y=[];function $(t,e,n){let{json:r,templateContext:o,transitions:i,node:a}=e;r=s.getJsonWithVars(r),i=s.getJsonWithVars(i);const l=po(i),c=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{margins:void 0,alpha:(u=l,u.some((t=>"fade"===t.type))?void 0:r.alpha)}),templateContext: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};var u}const _=o.div_id||o.id;let b;_?(null==l?void 0:l.fakeElement)||(c.registerInstance(_,{async setState(t){if(b===t)return;s.setRunning("stateChange",!0);const e=new Set(h);g.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,g=[]);let o=[];if(u){const t=u.getBoundingClientRect();o=v.map((e=>$(t,e,"out")))}y.forEach((t=>{d.set(t.id,t.node.getBoundingClientRect())})),m=[],v=[],y=[];const i=r.find((e=>e.state_id===t))||null;if(i?(b=t,n(7,w=i)):s.logError(Zt(new Error("Cannot find state with id"),{additional:{stateId:t}})),await gt(),!u)return;const a=u.getBoundingClientRect();let l=m.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>$(a,t,"in")));o=o.filter((t=>{var e;return!(!t.json.id||h.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=o.concat(l),p=c.reduce(((t,e)=>Math.max(t,lo(e.transitions))),0),f=y.filter((t=>d.has(t.id))).map((t=>({json:Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}}),templateContext:t.templateContext,rootBbox:a,beforeBbox:d.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:ko(t.transitions),resolvePromise:t.resolvePromise})));n(6,g=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:p}))),...f]),d.clear(),s.setRunning("stateChange",!1)},getChild(t){if(f&&f.has(t))return f.get(t);s.logError(Zt(new Error("Missing state block with id"),{additional:{id:t}}))}}),it(_e,{registerInstance(t,e){f||(f=new Map),f.has(t)?s.logError(Zt(new Error("Duplicate state with id"),{additional:{id:t}})):f.set(t,e)},unregisterInstance(t){null==f||f.delete(t)},runVisibilityTransition(t,e,r,o,i){if(!u)return Promise.resolve();const a=$(u.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:o},i),l=lo(a.transitions),s=Object.assign(Object.assign({},a),{maxDuration:l});return n(6,g=[...g.filter((t=>t.node!==a.node)),s]),new Promise((t=>{s.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const o={json:t,templateContext:e,transitions:n,node:r};return m.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const o={json:t,templateContext:e,transitions:n,node:r};return v.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 y.push(i),new Promise((t=>{i.resolvePromise=t}))},hasTransitionChange:t=>!!t&&d.has(t),registerChild(t){h.add(t)},unregisterChild(t){h.delete(t)}})):(p=!0,s.logError(Zt(new Error('Missing "id" prop for div "state"'))));let w=null;const x=s.getJsonWithVars(o.default_state_id);let k=!1;function E(t){n(6,g=g.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return ot((()=>{_&&!(null==l?void 0:l.fakeElement)&&c.unregisterInstance(_)})),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&&(h=new Set),1&t.$$.dirty&&n(9,r=o.states||[]),512&t.$$.dirty&&((null==r?void 0:r.length)?n(5,p=!1):(n(5,p=!0),s.logError(Zt(new Error('Empty "states" prop for div "state"'))))),512&t.$$.dirty&&function(t){k||(k=!0,t.length&&(x?(b=x,n(7,w=t.find((t=>t.state_id===b))||null),w||s.logError(Zt(new Error("Cannot find state for default_state_id"),{additional:{selectedId:b}}))):(n(7,w=t[0]),b=w.state_id)))}(r)},[o,i,a,l,u,p,g,w,E,r,t=>E(t),t=>E(t),function(t){ct[t?"unshift":"push"]((()=>{u=t,n(4,u)}))}]}const Co={pager:"divkit-c5fe",pager__items:"divkit-f698",pager__item:"divkit-feca",pager_orientation_horizontal:"divkit-b0a1",pager_orientation_vertical:"divkit-f772"},{Boolean:Ao}=Pt;function Vo(t,e,n){const r=t.slice();return r[47]=e[n],r}function jo(t){let e,n;return e=new on({props:{cls:$e("pager",Co,t[8]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,$$slots:{default:[Po]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=$e("pager",Co,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),33336&n[0]|524288&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function Do(t){var e;let n,r,o,i,a;return r=new Ci({props:{div:t[47].json,templateContext:t[47].templateContext,origJson:t[47].origJson,layoutParams:null!==(e=t[3])&&void 0!==e&&e.fakeElement?{fakeElement:!0}:void 0}}),{c(){n=I("div"),Nt(r.$$.fragment),o=M(),this.h()},l(t){n=U(t,"DIV",{class:!0});var e=R(n);zt(r.$$.fragment,e),o=G(e),e.forEach(S),this.h()},h(){T(n,"class",i=Co.pager__item)},m(t,e){P(t,n,e),Mt(r,n,null),D(n,o),a=!0},p(t,e){var n;const o={};16&e[0]&&(o.div=t[47].json),16&e[0]&&(o.templateContext=t[47].templateContext),16&e[0]&&(o.origJson=t[47].origJson),8&e[0]&&(o.layoutParams=null!==(n=t[3])&&void 0!==n&&n.fakeElement?{fakeElement:!0}:void 0),r.$set(o)},i(t){a||(At(r.$$.fragment,t),a=!0)},o(t){Vt(r.$$.fragment,t),a=!1},d(t){t&&S(n),Jt(r)}}}function Po(t){let e,n,r,o,i,a,l=t[4],s=[];for(let e=0;e<l.length;e+=1)s[e]=Do(Vo(t,l,e));const c=t=>Vt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=I("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=U(t,"DIV",{class:!0,style:!0});var n=R(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(S),this.h()},h(){T(e,"class",n=Co.pager__items+" "+(t[15]?Kt:"")),T(e,"style",r=ee(t[9]))},m(n,r){P(n,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);t[36](e),o=!0,i||(a=O(e,"scroll",t[16]),i=!0)},p(t,i){if(24&i[0]){let n;for(l=t[4],n=0;n<l.length;n+=1){const r=Vo(t,l,n);s[n]?(s[n].p(r,i),At(s[n],1)):(s[n]=Do(r),s[n].c(),At(s[n],1),s[n].m(e,null))}for(Et(),n=l.length;n<s.length;n+=1)c(n);Ct()}(!o||32768&i[0]&&n!==(n=Co.pager__items+" "+(t[15]?Kt:"")))&&T(e,"class",n),(!o||512&i[0]&&r!==(r=ee(t[9])))&&T(e,"style",r)},i(t){if(!o){for(let t=0;t<l.length;t+=1)At(s[t]);o=!0}},o(t){s=s.filter(Ao);for(let t=0;t<s.length;t+=1)Vt(s[t]);o=!1},d(n){n&&S(e),F(s,n),t[36](null),i=!1,a()}}}function So(t){let e,n,r=!t[7]&&jo(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){t[7]?r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct()):r?(r.p(t,n),128&n[0]&&At(r,1)):(r=jo(t),r.c(),At(r,1),r.m(e.parentNode,e))},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}function Fo(t,e,r){let o,i,a,l,s,c,u,d,h,f,g,m,v,y,$,_,b,w=n,x=n,k=n,E=n,C=n,A=n;var V,j,D,P,S,F,I;t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A()));let{json:N={}}=e,{templateContext:z}=e,{origJson:M}=e,{layoutParams:J}=e;const O=at(Yt),T=O.genId("pager");let B,R=!1,W=0,L=0,U=!1,q="horizontal",H="",G="",K="";const X=Cr((function(){const t=function(){const t=Array.from(B.children),e=B.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===q?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:W}();t!==W&&r(25,W=t)}),50);function Y(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===q,o=B.children[t],i=n?"offsetLeft":"offsetTop",a=n?"left":"top";B.scroll({[a]:o[i],behavior:e}),r(25,W=t)}return N.id&&!(null==J?void 0:J.fakeElement)&&O.registerInstance(N.id,{setCurrentItem(t){if(t<0||t>o.length-1)throw new Error('Item is out of range in "set-current-item" action');Y(t)},setPreviousItem(t){let e=W-1;e<0&&(e="ring"===t?o.length-1:W),Y(e)},setNextItem(t){let e=W+1;e>o.length-1&&(e="ring"===t?0:W),Y(e)}}),rt((()=>{if(Boolean(document.getElementById("".concat(T,"-tab-0")))){const t=[...B.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(T,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(T,"-tab-").concat(e))}})),ot((()=>{N.id&&!(null==J?void 0:J.fakeElement)&&O.unregisterInstance(N.id)})),t.$$set=t=>{"json"in t&&r(0,N=t.json),"templateContext"in t&&r(1,z=t.templateContext),"origJson"in t&&r(2,M=t.origJson),"layoutParams"in t&&r(3,J=t.layoutParams)},t.$$.update=()=>{if(131073&t.$$.dirty[0]&&((null===r(17,V=N.items)||void 0===V?void 0:V.length)&&Array.isArray(N.items)?r(24,R=!1):(r(24,R=!0),O.logError(Zt(new Error('Incorrect or empty "items" prop for div "pager"'))))),16777219&t.$$.dirty[0]&&r(4,o=(!R&&N.items||[]).map((t=>{let e=t,n=z;return({templateContext:n,json:e}=O.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(r(14,i=O.getDerivedFromVars(N.layout_mode)),x(),x=p(i,(t=>r(32,v=t)))),2&t.$$.dirty[1]&&(v?"percentage"!==v.type&&"fixed"!==v.type?(r(26,U=!0),O.logError(Zt(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):r(26,U=!1):(r(26,U=!0),O.logError(Zt(new Error('Empty "layout_mode" prop for div "pager"'))))),1&t.$$.dirty[0]&&(r(13,a=O.getDerivedFromVars(N.orientation)),C(),C=p(a,(t=>r(35,_=t)))),134217728&t.$$.dirty[0]|16&t.$$.dirty[1]&&r(27,q=Qn(_,q)),1&t.$$.dirty[0]&&(r(12,l=O.getDerivedFromVars(N.item_spacing)),E(),E=p(l,(t=>r(34,$=t)))),8&t.$$.dirty[1]){const t=null==$?void 0:$.value;t&&we(t)&&r(28,H=ne(t||0))}if(1&t.$$.dirty[0]&&(r(11,s=O.getDerivedFromVars(N.paddings)),k(),k=p(s,(t=>r(33,y=t)))),536870912&t.$$.dirty[0]|4&t.$$.dirty[1]&&r(29,G=Ee(y,G)),1&t.$$.dirty[0]&&(r(10,c=O.getDerivedFromVars(N.restrict_parent_scroll)),A(),A=p(c,(t=>r(15,b=t)))),134217728&t.$$.dirty[0]&&r(31,u="horizontal"===q?"grid-auto-columns":"grid-auto-rows"),419168257&t.$$.dirty[0]|2&t.$$.dirty[1])if("fixed"===(null==v?void 0:v.type)){const t=re("horizontal"===q?((null===r(18,j=N.paddings)||void 0===j?void 0:j.left)||0)+((null===r(19,D=N.paddings)||void 0===D?void 0:D.right)||0):((null===r(20,P=N.paddings)||void 0===P?void 0:P.top)||0)+((null===r(21,S=N.paddings)||void 0===S?void 0:S.bottom)||0)),e=null===r(22,F=v.neighbour_page_width)||void 0===F?void 0:F.value;r(30,K=e?"calc(100% + ".concat(t," - 2 * ").concat(re(e)," - 2 * ").concat(H,")"):"100%")}else if("percentage"===(null==v?void 0:v.type)){const t=null===r(23,I=v.page_width)||void 0===I?void 0:I.value;r(30,K="".concat(Number(t),"%"))}1879048192&t.$$.dirty[0]|1&t.$$.dirty[1]&&r(9,d={"grid-gap":H,padding:G,[u]:K}),134217728&t.$$.dirty[0]&&r(8,h={orientation:q}),83886080&t.$$.dirty[0]&&r(7,f=R||U),33554448&t.$$.dirty[0]&&function(t,e){const n=N.id;if(n){const i=new Map(m);r=g,m=i.set(n,{instId:T,size:t,currentItem:e,scrollToPagerItem:Y}),o=m,r.set(o)}var r,o}(o.length,W),33554432&t.$$.dirty[0]&&function(t){var e;if(t===L)return;L=t;const n=O.getJsonWithVars(null===(e=o[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&O.execAnyActions(n)}(W)},r(6,g=O.getStore("pagers")),w(),w=p(g,(t=>r(38,m=t))),[N,z,M,J,o,B,g,f,h,d,c,s,l,a,i,b,X,V,j,D,P,S,F,I,R,W,U,q,H,G,K,u,v,y,$,_,function(t){ct[t?"unshift":"push"]((()=>{B=t,r(5,B)}))}]}const Io={indicator:"divkit-d8e3",indicator__scroller:"divkit-b5db",indicator__items:"divkit-d5d9",indicator__item:"divkit-f662",indicator__item_active:"divkit-b39c"};function No(t,e,n){const r=t.slice();r[36]=e[n],r[39]=n;const o=r[39]===r[13].currentItem;return r[37]=o,r}function zo(t){let e,n=Array(t[13].size),r=[];for(let e=0;e<n.length;e+=1)r[e]=Mo(No(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=J()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=J()},m(t,n){for(let e=0;e<r.length;e+=1)r[e].m(t,n);P(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=No(t,n,i);r[i]?r[i].p(a,o):(r[i]=Mo(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){F(r,t),t&&S(e)}}}function Mo(t){let e,n,r,o,i,a,s,c;function u(){return t[30](t[39])}return{c(){e=I("div"),this.h()},l(t){e=U(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),R(e).forEach(S),this.h()},h(){T(e,"class",n=$e("indicator__item",Io,{active:t[37]})+" "+Ut),T(e,"role","tab"),T(e,"id",r=t[13].instId+"-tab-"+t[39]),T(e,"aria-controls",o=t[13].instId+"-panel-"+t[39]),T(e,"aria-selected",i=t[37]?"true":"false"),T(e,"tabindex",a=t[37]?0:-1)},m(n,r){P(n,e,r),s||(c=[O(e,"click",u),O(e,"keydown",t[21])],s=!0)},p(l,s){t=l,8192&s[0]&&n!==(n=$e("indicator__item",Io,{active:t[37]})+" "+Ut)&&T(e,"class",n),8192&s[0]&&r!==(r=t[13].instId+"-tab-"+t[39])&&T(e,"id",r),8192&s[0]&&o!==(o=t[13].instId+"-panel-"+t[39])&&T(e,"aria-controls",o),8192&s[0]&&i!==(i=t[37]?"true":"false")&&T(e,"aria-selected",i),8192&s[0]&&a!==(a=t[37]?0:-1)&&T(e,"tabindex",a)},d(t){t&&S(e),s=!1,l(c)}}}function Jo(t){let e,n,r,o,i="0 ".concat(ne((t[10]-1)*t[4]/2)),a="0 ".concat(ne((t[9]-t[4])/2)),l=t[13]&&zo(t);return{c(){e=I("div"),n=I("div"),l&&l.c(),this.h()},l(t){e=U(t,"DIV",{class:!0});var r=R(e);n=U(r,"DIV",{class:!0,role:!0});var o=R(n);l&&l.l(o),o.forEach(S),r.forEach(S),this.h()},h(){T(n,"class",r=Io.indicator__items),T(n,"role","tablist"),X(n,"margin",i,!1),X(n,"--divkit-indicator-width",ne(t[4]),!1),X(n,"--divkit-indicator-height",ne(t[5]),!1),X(n,"--divkit-indicator-border-radius",ne(t[6]),!1),X(n,"--divkit-indicator-active-color",t[7],!1),X(n,"--divkit-indicator-inactive-color",t[8],!1),X(n,"--divkit-indicator-active-scale",t[10],!1),X(n,"--divkit-indicator-margin",a,!1),T(e,"class",o=Io.indicator__scroller)},m(r,o){P(r,e,o),D(e,n),l&&l.m(n,null),t[31](n),t[32](e)},p(t,e){t[13]?l?l.p(t,e):(l=zo(t),l.c(),l.m(n,null)):l&&(l.d(1),l=null),1040&e[0]&&i!==(i="0 ".concat(ne((t[10]-1)*t[4]/2)))&&X(n,"margin",i,!1),16&e[0]&&X(n,"--divkit-indicator-width",ne(t[4]),!1),32&e[0]&&X(n,"--divkit-indicator-height",ne(t[5]),!1),64&e[0]&&X(n,"--divkit-indicator-border-radius",ne(t[6]),!1),128&e[0]&&X(n,"--divkit-indicator-active-color",t[7],!1),256&e[0]&&X(n,"--divkit-indicator-inactive-color",t[8],!1),1024&e[0]&&X(n,"--divkit-indicator-active-scale",t[10],!1),528&e[0]&&a!==(a="0 ".concat(ne((t[9]-t[4])/2)))&&X(n,"--divkit-indicator-margin",a,!1)},d(n){n&&S(e),l&&l.d(),t[31](null),t[32](null)}}}function Oo(t){let e,n;return e=new on({props:{cls:$e("indicator",Io,{}),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Jo]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(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]|512&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function To(t,e,r){let o,i,a,l,s,c,u,d,h,f,g,m,v=n,y=n,$=n,_=n,b=n,w=n;var x;t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>w()));let{json:k={}}=e,{templateContext:E}=e,{origJson:C}=e,{layoutParams:A}=e;const V=at(Yt);let j,D,P,S=5,F=10,I=10,N=5,z="#ffdc60",M=ie("#33919cb5"),J=15,O=1.3;function T(t){t!==P.currentItem&&P.scrollToPagerItem(t)}async function B(t){P.scrollToPagerItem(t),await gt();const e=D.querySelector(".".concat(Io.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&r(0,k=t.json),"templateContext"in t&&r(1,E=t.templateContext),"origJson"in t&&r(2,C=t.origJson),"layoutParams"in t&&r(3,A=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&(r(19,o=V.getDerivedFromVars(k.shape)),w(),w=p(o,(t=>r(29,m=t)))),549453936&t.$$.dirty[0]&&m&&("rounded_rectangle"===m.type?(m.item_width&&r(4,F=Ce(m.item_width.value,F)),m.item_height&&r(5,I=Ce(m.item_height.value,I)),m.corner_radius&&r(6,N=Ce(m.corner_radius.value,N))):"circle"===m.type&&(r(23,S=Ce(null===r(22,x=m.radius)||void 0===x?void 0:x.value,S)),r(4,F=r(5,I=r(6,N=2*S))))),1&t.$$.dirty[0]&&(r(18,i=V.getDerivedFromVars(k.active_item_color)),b(),b=p(i,(t=>r(28,g=t)))),268435584&t.$$.dirty[0]&&r(7,z=ie(g,1,z)),1&t.$$.dirty[0]&&(r(17,a=V.getDerivedFromVars(k.inactive_item_color)),_(),_=p(a,(t=>r(27,f=t)))),134217984&t.$$.dirty[0]&&r(8,M=ie(f,1,M)),1&t.$$.dirty[0]&&(r(16,l=V.getDerivedFromVars(k.space_between_centers)),$(),$=p(l,(t=>r(26,h=t)))),67109376&t.$$.dirty[0]&&h&&r(9,J=Ce(h.value,J)),1&t.$$.dirty[0]&&(r(15,s=V.getDerivedFromVars(k.active_item_size)),y(),y=p(s,(t=>r(25,d=t)))),33555456&t.$$.dirty[0]&&r(10,O=ln(d,O)),16777216&t.$$.dirty[0]&&async function(t){if(k.pager_id&&t.has(k.pager_id)){r(13,P=t.get(k.pager_id)),await gt();const e=D.children[P.currentItem].offsetLeft;j.scroll({left:e-j.clientWidth/2,behavior:"smooth"})}}(u)},r(14,c=V.getStore("pagers")),v(),v=p(c,(t=>r(24,u=t))),[k,E,C,A,F,I,N,z,M,J,O,j,D,P,c,s,l,a,i,o,T,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=P;if(37===t.which)B(n-1<0?n:n-1);else if(39===t.which)B(n+1>=e?n:n+1);else if(36===t.which)B(0);else{if(35!==t.which)return;B(e-1)}t.preventDefault()},x,S,u,d,h,f,g,m,t=>T(t),function(t){ct[t?"unshift":"push"]((()=>{D=t,r(12,D)}))},function(t){ct[t?"unshift":"push"]((()=>{j=t,r(11,j)}))}]}const Bo={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":"divkit-c4af","slider__thumb-text_secondary":"divkit-d882",slider__tick:"divkit-bd9b",slider__tick_active:"divkit-d8ce",slider__tick_inactive:"divkit-e71e"};function Ro(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&ie(t.text_color)||"#000",o=sn(t.font_weight);if(Oe(t.font_size)&&"transparent"!==r){var i,a;const e={fontSize:ne(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 Wo(t,e,n){return Math.max(e,Math.min(n,t))}const Lo=2147483647,Uo=-2147483648,qo=Number.MAX_VALUE,Ho=Number.MIN_VALUE,Go="string",Ko="integer",Xo="number",Yo="boolean",Zo="color",Qo="datetime";class ti{constructor(t,e){const n=this.convertValue(e);this.name=t,this.value=n}getName(){return this.name}subscribe(t){return this.store||(this.store=Rt(this.value)),this.store.subscribe(t)}set(t){const e=this.fromString(t);this.setValue(e)}setValue(t){const e=this.convertValue(t);this.value=e,this.store&&this.store.set(e)}getValue(){return this.value}}const ei={string:class extends ti{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}},number:class extends ti{convertValue(t){if("number"!=typeof t||isNaN(t)||!isFinite(t))throw new Error("Incorrect variable value");return t}fromString(t){const e=Number(t);return this.convertValue(e)}getType(){return"number"}},integer:class extends ti{convertValue(t){if("number"!=typeof t||isNaN(t)||t>Lo||t<Uo||t!==Math.round(t))throw new Error("Incorrect variable value");return t}fromString(t){const e=Number(t);return this.convertValue(e)}getType(){return"integer"}},boolean:class extends ti{convertValue(t){if(1!==t&&0!==t&&!0!==t&&!1!==t)throw new Error("Incorrect variable value");return Number(t)}fromString(t){if("1"===t||"true"===t)return 1;if("0"===t||"false"===t)return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}},color:class extends ti{convertValue(t){if("string"!=typeof t||!le(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}},url:class extends ti{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}}};function ni(t,e,n){if(!(e in ei))throw new Error("Unsupported variable type");return new ei[e](t,n)}function ri(t,e,n){const r=t.slice();return r[78]=e[n],r}function oi(t,e,n){const r=t.slice();return r[78]=e[n],r}function ii(t){let e,n;return e=new on({props:{cls:$e("slider",Bo,t[21]),style:t[22],customDescription:!0,customActions:"slider",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[ui]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};2097152&n[0]&&(r.cls=$e("slider",Bo,t[21])),4194304&n[0]&&(r.style=t[22]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),27246576&n[0]|2097152&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function ai(t){let e,n;return{c(){e=I("div"),this.h()},l(t){e=U(t,"DIV",{class:!0}),R(e).forEach(S),this.h()},h(){T(e,"class",n=Bo.slider__tick+" "+Bo.slider__tick_active),X(e,"--divkit-slider-tick",t[78],!1)},m(t,n){P(t,e,n)},p(t,n){131072&n[0]&&X(e,"--divkit-slider-tick",t[78],!1)},d(t){t&&S(e)}}}function li(t){let e,n;return{c(){e=I("div"),this.h()},l(t){e=U(t,"DIV",{class:!0}),R(e).forEach(S),this.h()},h(){T(e,"class",n=Bo.slider__tick+" "+Bo.slider__tick_inactive),X(e,"--divkit-slider-tick",t[78],!1)},m(t,n){P(t,e,n)},p(t,n){262144&n[0]&&X(e,"--divkit-slider-tick",t[78],!1)},d(t){t&&S(e)}}}function si(t){let e,n,r,o,i;return{c(){e=I("div"),n=I("div"),r=z(t[6]),this.h()},l(o){e=U(o,"DIV",{class:!0});var i=R(e);n=U(i,"DIV",{class:!0});var a=R(n);r=H(a,t[6]),a.forEach(S),i.forEach(S),this.h()},h(){var r,a,l;T(n,"class",o=Bo["slider__thumb-text-inner"]),X(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em",!1),X(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||"",!1),X(n,"color",(null===(l=t[12])||void 0===l?void 0:l.textColor)||"#000",!1),T(e,"class",i=Bo["slider__thumb-text"])},m(t,o){P(t,e,o),D(e,n),D(n,r)},p(t,e){var o,i,a;64&e[0]&&K(r,t[6]),4096&e[0]&&X(n,"font-size",(null===(o=t[12])||void 0===o?void 0:o.fontSize)||"1em",!1),4096&e[0]&&X(n,"font-weight",(null===(i=t[12])||void 0===i?void 0:i.fontWeight)||"",!1),4096&e[0]&&X(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&S(e)}}}function ci(t){let e,n,r,o,i;return{c(){e=I("div"),n=I("div"),r=z(t[7]),this.h()},l(o){e=U(o,"DIV",{class:!0});var i=R(e);n=U(i,"DIV",{class:!0});var a=R(n);r=H(a,t[7]),a.forEach(S),i.forEach(S),this.h()},h(){var r,a,l;T(n,"class",o=Bo["slider__thumb-text-inner"]),X(n,"font-size",(null===(r=t[13])||void 0===r?void 0:r.fontSize)||"1em",!1),X(n,"font-weight",(null===(a=t[13])||void 0===a?void 0:a.fontWeight)||"",!1),X(n,"color",(null===(l=t[13])||void 0===l?void 0:l.textColor)||"#000",!1),T(e,"class",i=Bo["slider__thumb-text"]+" "+Bo["slider__thumb-text_secondary"])},m(t,o){P(t,e,o),D(e,n),D(n,r)},p(t,e){var o,i,a;128&e[0]&&K(r,t[7]),8192&e[0]&&X(n,"font-size",(null===(o=t[13])||void 0===o?void 0:o.fontSize)||"1em",!1),8192&e[0]&&X(n,"font-weight",(null===(i=t[13])||void 0===i?void 0:i.fontWeight)||"",!1),8192&e[0]&&X(n,"color",(null===(a=t[13])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&S(e)}}}function ui(t){let e,n,r,o,i,a,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k=t[17],E=[];for(let e=0;e<k.length;e+=1)E[e]=ai(oi(t,k,e));let C=t[18],A=[];for(let e=0;e<C.length;e+=1)A[e]=li(ri(t,C,e));let V=t[12]&&si(t),j=t[37]&&function(t){let e,n,r=t[13]&&ci(t);return{c(){e=I("div"),r&&r.c(),this.h()},l(t){e=U(t,"DIV",{class:!0});var n=R(e);r&&r.l(n),n.forEach(S),this.h()},h(){T(e,"class",n=Bo.slider__thumb+" "+Bo.slider__thumb_secondary),X(e,"border-radius",ne(t[9].borderRadius),!1),X(e,"background",t[9].background,!1),X(e,"box-shadow",t[9].boxShadow||"",!1)},m(t,n){P(t,e,n),r&&r.m(e,null)},p(t,n){t[13]?r?r.p(t,n):(r=ci(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),512&n[0]&&X(e,"border-radius",ne(t[9].borderRadius),!1),512&n[0]&&X(e,"background",t[9].background,!1),512&n[0]&&X(e,"box-shadow",t[9].boxShadow||"",!1)},d(t){t&&S(e),r&&r.d()}}}(t),N=t[37]&&function(t){let e,n,r,o,i;return{c(){e=I("input"),this.h()},l(t){e=U(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){T(e,"type","range"),T(e,"class",n=t[16]?Bo.slider__input:"".concat(Bo.slider__input," ").concat(Bo.slider__input_secondary)),T(e,"min",t[4]),T(e,"max",t[5]),T(e,"step","1"),e.value=r=t[16]?t[6]:t[7],T(e,"aria-label",t[20])},m(n,r){P(n,e,r),o||(i=[O(e,"input",t[68]),O(e,"mousedown",t[37]?t[40]:null),O(e,"touchstart",t[37]?t[40]:null)],o=!0)},p(t,o){65536&o[0]&&n!==(n=t[16]?Bo.slider__input:"".concat(Bo.slider__input," ").concat(Bo.slider__input_secondary))&&T(e,"class",n),16&o[0]&&T(e,"min",t[4]),32&o[0]&&T(e,"max",t[5]),65728&o[0]&&r!==(r=t[16]?t[6]:t[7])&&(e.value=r),1048576&o[0]&&T(e,"aria-label",t[20])},d(t){t&&S(e),o=!1,l(i)}}}(t);return{c(){e=I("div"),n=I("div"),r=I("div"),i=M(),a=I("div"),c=M();for(let t=0;t<E.length;t+=1)E[t].c();u=M();for(let t=0;t<A.length;t+=1)A[t].c();d=M(),h=I("div"),V&&V.c(),f=M(),j&&j.c(),g=M(),m=I("input"),$=M(),N&&N.c(),this.h()},l(t){e=U(t,"DIV",{class:!0});var o=R(e);n=U(o,"DIV",{class:!0});var l=R(n);r=U(l,"DIV",{class:!0}),R(r).forEach(S),i=G(l),a=U(l,"DIV",{class:!0}),R(a).forEach(S),c=G(l);for(let t=0;t<E.length;t+=1)E[t].l(l);u=G(l);for(let t=0;t<A.length;t+=1)A[t].l(l);d=G(l),h=U(l,"DIV",{class:!0});var s=R(h);V&&V.l(s),s.forEach(S),f=G(l),j&&j.l(l),g=G(l),m=U(l,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),$=G(l),N&&N.l(l),l.forEach(S),o.forEach(S),this.h()},h(){T(r,"class",o=Bo.slider__track),X(r,"height",ne(t[10].height),!1),X(r,"border-radius",ne(t[10].borderRadius),!1),X(r,"background",t[10].background,!1),X(r,"box-shadow",t[10].boxShadow||"",!1),T(a,"class",s=Bo["slider__active-track"]),X(a,"left",(100*t[23]).toFixed(2)+"%",!1),X(a,"width",(100*t[24]).toFixed(2)+"%",!1),X(a,"height",ne(t[11].height),!1),X(a,"border-radius",ne(t[11].borderRadius),!1),X(a,"background",t[11].background,!1),X(a,"box-shadow",t[11].boxShadow||"",!1),T(h,"class",p=Bo.slider__thumb),X(h,"border-radius",ne(t[8].borderRadius),!1),X(h,"background",t[8].background,!1),X(h,"box-shadow",t[8].boxShadow||"",!1),T(m,"type","range"),T(m,"class",v=t[16]?"".concat(Bo.slider__input," ").concat(Bo.slider__input_secondary):Bo.slider__input),T(m,"min",t[4]),T(m,"max",t[5]),T(m,"step","1"),m.value=y=t[16]?t[7]:t[6],T(m,"aria-label",t[19]),T(n,"class",_=Bo["slider__tracks-inner"]),T(e,"class",b=Bo["slider__tracks-wrapper"])},m(o,l){P(o,e,l),D(e,n),D(n,r),D(n,i),D(n,a),D(n,c);for(let t=0;t<E.length;t+=1)E[t].m(n,null);D(n,u);for(let t=0;t<A.length;t+=1)A[t].m(n,null);D(n,d),D(n,h),V&&V.m(h,null),D(n,f),j&&j.m(n,null),D(n,g),D(n,m),D(n,$),N&&N.m(n,null),t[69](n),w||(x=O(m,"input",t[67]),w=!0)},p(t,e){if(1024&e[0]&&X(r,"height",ne(t[10].height),!1),1024&e[0]&&X(r,"border-radius",ne(t[10].borderRadius),!1),1024&e[0]&&X(r,"background",t[10].background,!1),1024&e[0]&&X(r,"box-shadow",t[10].boxShadow||"",!1),8388608&e[0]&&X(a,"left",(100*t[23]).toFixed(2)+"%",!1),16777216&e[0]&&X(a,"width",(100*t[24]).toFixed(2)+"%",!1),2048&e[0]&&X(a,"height",ne(t[11].height),!1),2048&e[0]&&X(a,"border-radius",ne(t[11].borderRadius),!1),2048&e[0]&&X(a,"background",t[11].background,!1),2048&e[0]&&X(a,"box-shadow",t[11].boxShadow||"",!1),131072&e[0]){let r;for(k=t[17],r=0;r<k.length;r+=1){const o=oi(t,k,r);E[r]?E[r].p(o,e):(E[r]=ai(o),E[r].c(),E[r].m(n,u))}for(;r<E.length;r+=1)E[r].d(1);E.length=k.length}if(262144&e[0]){let r;for(C=t[18],r=0;r<C.length;r+=1){const o=ri(t,C,r);A[r]?A[r].p(o,e):(A[r]=li(o),A[r].c(),A[r].m(n,d))}for(;r<A.length;r+=1)A[r].d(1);A.length=C.length}t[12]?V?V.p(t,e):(V=si(t),V.c(),V.m(h,null)):V&&(V.d(1),V=null),256&e[0]&&X(h,"border-radius",ne(t[8].borderRadius),!1),256&e[0]&&X(h,"background",t[8].background,!1),256&e[0]&&X(h,"box-shadow",t[8].boxShadow||"",!1),t[37]&&j.p(t,e),65536&e[0]&&v!==(v=t[16]?"".concat(Bo.slider__input," ").concat(Bo.slider__input_secondary):Bo.slider__input)&&T(m,"class",v),16&e[0]&&T(m,"min",t[4]),32&e[0]&&T(m,"max",t[5]),65728&e[0]&&y!==(y=t[16]?t[7]:t[6])&&(m.value=y),524288&e[0]&&T(m,"aria-label",t[19]),t[37]&&N.p(t,e)},d(n){n&&S(e),F(E,n),F(A,n),V&&V.d(),j&&j.d(),N&&N.d(),t[69](null),w=!1,x()}}}function di(t){let e,n,r,o,i=!t[14]&&ii(t);return{c(){i&&i.c(),e=J()},l(t){i&&i.l(t),e=J()},m(a,l){i&&i.m(a,l),P(a,e,l),n=!0,r||(o=O(window,"resize",t[42]),r=!0)},p(t,n){t[14]?i&&(Et(),Vt(i,1,1,(()=>{i=null})),Ct()):i?(i.p(t,n),16384&n[0]&&At(i,1)):(i=ii(t),i.c(),At(i,1),i.m(e.parentNode,e))},i(t){n||(At(i),n=!0)},o(t){Vt(i),n=!1},d(t){i&&i.d(t),t&&S(e),r=!1,o()}}}function hi(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 pi(t,e,r){let o,i,a,l,s,c,u,d,h,g,m,v,y,$,_,b,w,x,k,E,C,A,V,j,D,P,S,F,I,N,z,M,J,O,T=n,B=n,R=n,W=n,L=n,U=n,q=n,H=n,G=n,K=n,X=n,Y=n;var Z,Q,tt,et;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),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()));let{json:nt={}}=e,{templateContext:ot}=e,{origJson:it}=e,{layoutParams:lt}=e;const st={width:10,height:10,borderRadius:5,background:"#000"},ut=["rounded_rectangle","circle"],dt=["rounded_rectangle"],ht=at(Yt),pt=at(Pe);let ft,gt=!1,mt=0,vt=100;const yt=ht.getJsonWithVars(nt.thumb_value_variable),$t=ht.getJsonWithVars(nt.thumb_secondary_value_variable);let _t=yt&&ht.getVariable(yt,"integer")||ni("temp","integer",0);f(t,_t,(t=>r(64,M=t)));let bt=$t&&ht.getVariable($t,"integer")||ni("temp","integer",0);f(t,bt,(t=>r(63,z=t)));let wt,xt,kt,Et=Wo(M||0,mt,vt),Ct=Wo(z||0,mt,vt),At=st,Vt=At,jt=st,Dt=st,Pt=null,St=null,Ft=kt,It="",Nt="",zt=!1;function Mt(t,e){const n=Number(t.target.value);gt===("first"===e)?(r(7,Ct=n),bt.setValue(n)):(r(6,Et=n),_t.setValue(n))}let Jt=!1;function Ot(){if(!ft)return;const t=vt-mt,e=(null==Pt?void 0:Pt.width)||0,n=(null==St?void 0:St.width)||0;Math.max(e,n)*t>=(null==ft?void 0:ft.clientWidth)?Jt||(ht.logError(Zt(new Error("Slider ticks overlap each other"),{level:"warn"})),Jt=!0):Jt=!1}const Tt=Cr(Ot,50);return rt((()=>{Ot()})),t.$$set=t=>{"json"in t&&r(0,nt=t.json),"templateContext"in t&&r(1,ot=t.templateContext),"origJson"in t&&r(2,it=t.origJson),"layoutParams"in t&&r(3,lt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(r(36,o=ht.getDerivedFromVars(nt.min_value)),Y(),Y=p(o,(t=>r(66,O=t)))),1&t.$$.dirty[0]&&(r(35,i=ht.getDerivedFromVars(nt.max_value)),X(),X=p(i,(t=>r(65,J=t)))),48&t.$$.dirty[0]|24&t.$$.dirty[2]&&(r(4,mt=Ke(O,mt)),r(5,vt=Ke(J,vt)),Ot()),112&t.$$.dirty[0]|4&t.$$.dirty[2]){const t=Wo(M||0,mt,vt);t!==Et&&r(6,Et=t)}if(176&t.$$.dirty[0]|2&t.$$.dirty[2]){const t=Wo(z||0,mt,vt);t!==Ct&&r(7,Ct=t)}if(1&t.$$.dirty[0]&&(r(34,a=ht.getDerivedFromVars(nt.thumb_style)),K(),K=p(a,(t=>r(62,N=t)))),256&t.$$.dirty[0]|1&t.$$.dirty[2]&&r(8,At=Pn(N,ut,At)),1&t.$$.dirty[0]&&(r(33,l=ht.getDerivedFromVars(nt.thumb_secondary_style)),G(),G=p(l,(t=>r(61,I=t)))),256&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&r(9,Vt=Pn(I,ut,At)),1&t.$$.dirty[0]&&(r(32,s=ht.getDerivedFromVars(nt.track_inactive_style)),H(),H=p(s,(t=>r(60,F=t)))),1024&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&r(10,jt=Pn(F,dt,jt)),1&t.$$.dirty[0]&&(r(31,c=ht.getDerivedFromVars(nt.track_active_style)),q(),q=p(c,(t=>r(59,S=t)))),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(11,Dt=Pn(S,dt,Dt)),1&t.$$.dirty[0]&&(r(30,u=ht.getDerivedFromVars(nt.tick_mark_active_style)),U(),U=p(u,(t=>r(58,P=t)))),134217728&t.$$.dirty[1]){let t=Pn(P,ut,st);t!==st&&r(47,Pt=t)}if(240&t.$$.dirty[0]|65536&t.$$.dirty[1]&&(Pt?(r(17,wt=$t?hi(Math.min(Et,Ct),Math.max(Et,Ct)+1,mt,vt,!0):hi(mt,Et,mt,vt,!0)),Ot()):r(17,wt=[])),1&t.$$.dirty[0]&&(r(29,d=ht.getDerivedFromVars(nt.tick_mark_inactive_style)),L(),L=p(d,(t=>r(57,D=t)))),67108864&t.$$.dirty[1]){let t=Pn(D,ut,st);t!==st&&r(48,St=t)}if(240&t.$$.dirty[0]|131072&t.$$.dirty[1]&&(St?(r(18,xt=$t?hi(Math.min(Et,Ct),Math.max(Et,Ct)+1,mt,vt,!1):hi(Et+1,vt+1,mt,vt,!0)),Ot()):r(18,xt=[])),1&t.$$.dirty[0]&&(r(28,h=ht.getDerivedFromVars(nt.thumb_text_style)),W(),W=p(h,(t=>r(56,j=t)))),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(12,kt=Ro(j,kt)),1&t.$$.dirty[0]&&(r(27,g=ht.getDerivedFromVars(nt.thumb_secondary_text_style)),R(),R=p(g,(t=>r(55,V=t)))),4096&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&r(13,Ft=Ro(V,kt)),1&t.$$.dirty[0]&&(r(26,m=ht.getDerivedFromVars(nt.accessibility)),B(),B=p(m,(t=>r(54,A=t)))),8388608&t.$$.dirty[1]&&((null==A?void 0:A.description)?r(19,It=A.description):ht.logError(Zt(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),1&t.$$.dirty[0]&&(r(25,v=ht.getDerivedFromVars(nt.secondary_value_accessibility)),T(),T=p(v,(t=>r(53,C=t)))),4194304&t.$$.dirty[1]&&((null==C?void 0:C.description)?r(20,Nt=C.description):$t&&ht.logError(Zt(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),19712&t.$$.dirty[0]){let t=!1;pt.hasAction()?(ht.logError(Zt(new Error('Cannot show "slider" inside component with action'))),t=!0):At===st?(ht.logError(Zt(new Error('Missing "thumb_style" in slider'))),t=!0):Dt===st?(ht.logError(Zt(new Error('Missing "track_active_style" in slider'))),t=!0):jt===st&&(ht.logError(Zt(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==zt&&r(14,zt=t)}768&t.$$.dirty[0]&&r(52,y=ne(Math.max(...[At.width,Vt.width,0].filter(we)))),768&t.$$.dirty[0]&&r(51,$=ne(Math.max(...[At.height,Vt.height,0].filter(we)))),112&t.$$.dirty[0]&&r(50,_=(Et-mt)/(vt-mt)),176&t.$$.dirty[0]&&r(49,b=$t?(Ct-mt)/(vt-mt):void 0),786432&t.$$.dirty[1]&&r(24,w=void 0!==b?Math.abs(b-_):_),786432&t.$$.dirty[1]&&r(23,x=void 0!==b?Math.min(b,_):0),13056&t.$$.dirty[0]|4190208&t.$$.dirty[1]&&r(22,k={"--divkit-slider-thumb-width":ne(At.width),"--divkit-slider-thumb-height":ne(At.height),"--divkit-slider-thumb-secondary-width":ne(Vt.width),"--divkit-slider-thumb-secondary-height":ne(Vt.height),"--divkit-slider-text-offset-x":(null===r(43,Z=null==kt?void 0:kt.offset)||void 0===Z?void 0:Z.x)?re(kt.offset.x):void 0,"--divkit-slider-text-offset-y":(null===r(44,Q=null==kt?void 0:kt.offset)||void 0===Q?void 0:Q.y)?re(kt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===r(45,tt=null==Ft?void 0:Ft.offset)||void 0===tt?void 0:tt.x)?re(Ft.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===r(46,et=null==Ft?void 0:Ft.offset)||void 0===et?void 0:et.y)?re(Ft.offset.y):void 0,"--divkit-slider-tick-active-width":Pt?ne(Pt.width):void 0,"--divkit-slider-tick-active-height":Pt?ne(Pt.height):void 0,"--divkit-slider-tick-active-border-radius":Pt?ne(Pt.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==Pt?void 0:Pt.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==Pt?void 0:Pt.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":St?ne(St.width):void 0,"--divkit-slider-tick-inactive-height":St?ne(St.height):void 0,"--divkit-slider-tick-inactive-border-radius":St?ne(St.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==St?void 0:St.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==St?void 0:St.boxShadow)||void 0,"--divkit-slider-max-thumb-width":y,"--divkit-slider-max-thumb-height":$,"--divkit-slider-track-part":_,"--divkit-slider-track-secondary-part":b})},r(21,E={}),[nt,ot,it,lt,mt,vt,Et,Ct,At,Vt,jt,Dt,kt,Ft,zt,ft,gt,wt,xt,It,Nt,E,k,x,w,v,m,g,h,d,u,c,s,l,a,i,o,$t,_t,bt,function(t){var e,n;const o="pageX"in t?t.pageX:null===(n=null===(e=t.changedTouches)||void 0===e?void 0:e[0])||void 0===n?void 0:n.pageX;if(void 0===o)return;const i=ft.getBoundingClientRect(),a=(o-i.left)/i.width,l=(vt-mt)*a,s=Math.round(Wo(l,mt,vt));r(16,gt=s<(Et+Ct)/2==Et<Ct)},Mt,Tt,Z,Q,tt,et,Pt,St,b,_,$,y,C,A,V,j,D,P,S,F,I,N,z,M,J,O,t=>Mt(t,"first"),t=>Mt(t,"second"),function(t){ct[t?"unshift":"push"]((()=>{ft=t,r(15,ft)}))}]}const fi={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 gi(t){let e,n;return e=new on({props:{cls:$e("input",fi,t[12]),style:t[11],customDescription:!0,customActions:"input",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[$i]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=$e("input",fi,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||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function mi(t){let e;return{c(){e=z("")},l(t){e=H(t,"")},m(t,n){P(t,e,n)},d(t){t&&S(e)}}}function vi(t){let e,n,r,o;return{c(){e=I("input"),this.h()},l(t){e=U(t,"INPUT",{type:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),this.h()},h(){T(e,"type",t[9]),T(e,"class",n=fi.input__input),T(e,"autocomplete","off"),T(e,"autocapitalize","off"),T(e,"aria-label",t[10]),T(e,"placeholder",t[15]),e.value=t[8]},m(n,i){P(n,e,i),t[57](e),r||(o=[O(e,"input",t[29]),O(e,"mousedown",(function(){s(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),O(e,"click",(function(){s(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]&&T(e,"type",t[9]),1024&r[0]&&T(e,"aria-label",t[10]),32768&r[0]&&T(e,"placeholder",t[15]),256&r[0]&&e.value!==t[8]&&(e.value=t[8])},d(n){n&&S(e),t[57](null),r=!1,l(o)}}}function yi(t){let e,n,r,o;return{c(){e=I("textarea"),this.h()},l(t){e=U(t,"TEXTAREA",{class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),R(e).forEach(S),this.h()},h(){T(e,"class",n=fi.input__input),T(e,"autocomplete","off"),T(e,"autocapitalize","off"),T(e,"aria-label",t[10]),T(e,"placeholder",t[15]),e.value=t[8]},m(n,i){P(n,e,i),t[56](e),r||(o=[O(e,"input",t[29]),O(e,"mousedown",(function(){s(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),O(e,"click",(function(){s(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]&&T(e,"aria-label",t[10]),32768&r[0]&&T(e,"placeholder",t[15]),256&r[0]&&(e.value=t[8])},d(n){n&&S(e),t[56](null),r=!1,l(o)}}}function $i(t){let e,n,r,o,i,a,l=t[8].endsWith("\n")||!t[8],s=l&&mi();function c(t,e){return t[4]?yi:vi}let u=c(t),d=u(t);return{c(){e=I("span"),n=I("span"),r=z(t[8]),s&&s.c(),i=M(),d.c(),this.h()},l(o){e=U(o,"SPAN",{class:!0});var a=R(e);n=U(a,"SPAN",{class:!0,"aria-hidden":!0});var l=R(n);r=H(l,t[8]),s&&s.l(l),l.forEach(S),i=G(a),d.l(a),a.forEach(S),this.h()},h(){T(n,"class",o=fi.input__holder),T(n,"aria-hidden","true"),T(e,"class",a=fi.input__wrapper)},m(o,a){P(o,e,a),D(e,n),D(n,r),s&&s.m(n,null),t[55](n),D(e,i),d.m(e,null)},p(t,o){256&o[0]&&K(r,t[8]),256&o[0]&&(l=t[8].endsWith("\n")||!t[8]),l?s||(s=mi(),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&&S(e),s&&s.d(),t[55](null),d.d()}}}function _i(t){let e,n,r=!t[7]&&gi(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){t[7]?r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct()):r?(r.p(t,n),128&n[0]&&At(r,1)):(r=gi(t),r.c(),At(r,1),r.m(e.parentNode,e))},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}function bi(t,e,r){let o,i,a,l,s,c,u,d,h,g,m,v,y,$,_,b,w,x,k,E,C=n,A=n;t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A()));let{json:V={}}=e,{templateContext:j}=e,{origJson:D}=e,{layoutParams:P}=e;const S=at(Yt);let F,I,N=!1,z=!1;const M=S.getJsonWithVars(V.text_variable);let J=!1;M||(J=!0,S.logError(Zt(new Error('Missing "text_variable" in "input"'))));let O=M&&S.getVariable(M,"string")||ni("temp","string","");f(t,O,(t=>r(54,k=t)));let T="";const B=S.getDerivedFromVars(V.hint_text);f(t,B,(t=>r(53,x=t)));const R=S.getDerivedFromVars(V.hint_color);f(t,R,(t=>r(52,w=t)));let W="";const L=S.getDerivedFromVars(V.font_size);f(t,L,(t=>r(51,b=t)));let U=12;const q=S.getDerivedFromVars(V.font_weight);let H;f(t,q,(t=>r(50,_=t)));const G=S.getDerivedFromVars(V.line_height);let K;f(t,G,(t=>r(49,$=t)));const X=S.getDerivedFromVars(V.letter_spacing);f(t,X,(t=>r(48,y=t)));let Y="";const Z=S.getDerivedFromVars(V.text_color);f(t,Z,(t=>r(47,v=t)));let Q="#000";const tt=S.getDerivedFromVars(V.highlight_color);f(t,tt,(t=>r(46,m=t)));let et="";const nt=S.getDerivedFromVars(V.keyboard_type);f(t,nt,(t=>r(45,g=t)));const ot={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};let it="multi_line_text",lt="text";const st=S.getDerivedFromVars(V.max_visible_lines);f(t,st,(t=>r(44,h=t)));let ut="",dt="";const ht=S.getDerivedFromVars(V.select_all_on_focus);function pt(){r(32,z=I.scrollHeight>I.offsetHeight)}return f(t,ht,(t=>r(16,E=t))),rt((()=>{pt()})),t.$$set=t=>{"json"in t&&r(0,V=t.json),"templateContext"in t&&r(1,j=t.templateContext),"origJson"in t&&r(2,D=t.origJson),"layoutParams"in t&&r(3,P=t.layoutParams)},t.$$.update=()=>{if(8388608&t.$$.dirty[1]&&r(8,T=k),4194304&t.$$.dirty[1]&&r(15,o=x),2097156&t.$$.dirty[1]&&r(33,W=ie(w,1,W)),1048584&t.$$.dirty[1]&&r(34,U=ln(b,U)),524304&t.$$.dirty[1]&&r(35,H=cn(_,H)),262152&t.$$.dirty[1]){const t=$;Oe(t)&&r(36,K=t/U)}131080&t.$$.dirty[1]&&be(y)&&r(37,Y=ne(y/U*10)),65664&t.$$.dirty[1]&&r(38,Q=ie(v,1,Q)),33024&t.$$.dirty[1]&&r(39,et=ie(m,1,et)),16384&t.$$.dirty[1]&&g&&g in ot&&(r(9,lt=ot[g]),r(40,it=g)),512&t.$$.dirty[1]&&r(4,i="multi_line_text"===it),1&t.$$.dirty[0]&&(r(14,a=S.getDerivedFromVars(V.paddings)),A(),A=p(a,(t=>r(43,d=t)))),12320&t.$$.dirty[1]&&Oe(h)&&r(41,ut="calc(".concat(h*(K||1.25)+"em"," + ").concat(re(Ce(null==d?void 0:d.top,0)+Ce(null==d?void 0:d.bottom,0)),")")),1&t.$$.dirty[0]&&(r(13,l=S.getDerivedFromVars(V.accessibility)),C(),C=p(l,(t=>r(42,u=t)))),2048&t.$$.dirty[1]&&((null==u?void 0:u.description)?r(10,dt=u.description):S.logError(Zt(new Error('Missing accessibility "description" for input'),{level:"warn"}))),16&t.$$.dirty[0]|258&t.$$.dirty[1]&&r(12,s={"highlight-color":Boolean(et),"vertical-overflow":z,multiline:i}),1532&t.$$.dirty[1]&&r(11,c={"--divkit-input-hint-color":W,"--divkit-input-highlight-color":et,"font-size":ne(U),"font-weight":H,"line-height":K,"letter-spacing":Y,color:Q,"max-height":ut})},[V,j,D,P,i,F,I,J,T,lt,dt,c,s,l,a,o,E,O,B,R,L,q,G,X,Z,tt,nt,st,ht,function(t){const e=t.target.value||"";O.setValue(e),pt()},function(){N=!1,setTimeout((()=>{N=!0}),250)},function(){N||F.select()},z,W,U,H,K,Y,Q,et,it,ut,u,d,h,g,m,v,y,$,_,b,w,x,k,function(t){ct[t?"unshift":"push"]((()=>{I=t,r(6,I)}))},function(t){ct[t?"unshift":"push"]((()=>{F=t,r(5,F)}))},function(t){ct[t?"unshift":"push"]((()=>{F=t,r(5,F)}))}]}const wi={text:class extends Tt{constructor(t){super(),Ot(this,t,jn,Vn,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},container:class extends Tt{constructor(t){super(),Ot(this,t,Yn,Xn,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},separator:class extends Tt{constructor(t){super(),Ot(this,t,rr,nr,d,{json:0,templateContext:1,origJson:2,layoutParams:3})}},image:pr,gif:pr,grid:class extends Tt{constructor(t){super(),Ot(this,t,xr,wr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},gallery:class extends Tt{constructor(t){super(),Ot(this,t,Jr,Mr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},tabs:class extends Tt{constructor(t){super(),Ot(this,t,Yr,Xr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},state:class extends Tt{constructor(t){super(),Ot(this,t,Eo,xo,d,{json:0,templateContext:1,origJson:2,layoutParams:3})}},pager:class extends Tt{constructor(t){super(),Ot(this,t,Fo,So,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},indicator:class extends Tt{constructor(t){super(),Ot(this,t,To,Oo,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},slider:class extends Tt{constructor(t){super(),Ot(this,t,pi,di,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},input:class extends Tt{constructor(t){super(),Ot(this,t,bi,_i,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}}};function xi(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&&Nt(e.$$.fragment),n=J()},l(t){e&&zt(e.$$.fragment,t),n=J()},m(t,o){e&&Mt(e,t,o),P(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){Et();const t=e;Vt(t.$$.fragment,1,0,(()=>{Jt(t,1)})),Ct()}o?(e=new o(i(t)),Nt(e.$$.fragment),At(e.$$.fragment,1),Mt(e,n.parentNode,n)):e=null}else o&&e.$set(a)},i(t){r||(e&&At(e.$$.fragment,t),r=!0)},o(t){e&&Vt(e.$$.fragment,t),r=!1},d(t){t&&S(n),e&&Jt(e,t)}}}function ki(t){let e,n,r=t[5]&&xi(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){let[o]=n;t[5]?r?(r.p(t,o),32&o&&At(r,1)):(r=xi(t),r.c(),At(r,1),r.m(e.parentNode,e)):r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct())},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}function Ei(t,e,n){let{div:r}=e,{templateContext:o}=e,{origJson:i}=e,{layoutParams:a}=e;const l=at(Yt);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&&wi[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&&wi[s.type]||void 0),!u))){let t;t=(null==s?void 0:s.type)&&l.hasTemplate(s.type)?"Recursive template":"Unknown component",l.logError(Zt(new Error(t),{additional:{component:(null==s?void 0:s.type)||"<missing>"}}))}},[r,i,a,s,c,u,o]}const Ci=class extends Tt{constructor(t){super(),Ot(this,t,Ei,ki,d,{div:0,templateContext:6,origJson:1,layoutParams:2})}};function Ai(t,e,n){const r=t.slice();r[1]=e[n];const o=r[1].split(":");return r[2]=o[0],r[3]=o[1],r}function Vi(t){let e,n,r,o=[...Object.keys(t[0])],i=[];for(let e=0;e<o.length;e+=1)i[e]=Pi(Ai(t,o,e));return{c(){e=N("svg"),n=N("defs");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=q(t,"svg",{class:!0,"aria-hidden":!0});var r=R(e);n=q(r,"defs",{});var o=R(n);for(let t=0;t<i.length;t+=1)i[t].l(o);o.forEach(S),r.forEach(S),this.h()},h(){T(e,"class",r="divkit-dc22"),T(e,"aria-hidden","true")},m(t,r){P(t,e,r),D(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=Ai(t,o,r);i[r]?i[r].p(a,e):(i[r]=Pi(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&&S(e),F(i,t)}}}function ji(t){let e,n;return{c(){e=N("feBlend"),this.h()},l(t){e=q(t,"feBlend",{in2:!0,mode:!0}),R(e).forEach(S),this.h()},h(){T(e,"in2","SourceGraphic"),T(e,"mode",n=t[3])},m(t,n){P(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&T(e,"mode",n)},d(t){t&&S(e)}}}function Di(t){let e,n;return{c(){e=N("feComposite"),this.h()},l(t){e=q(t,"feComposite",{in2:!0,operator:!0}),R(e).forEach(S),this.h()},h(){T(e,"in2","SourceGraphic"),T(e,"operator",n=t[3].split("_")[1])},m(t,n){P(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&T(e,"operator",n)},d(t){t&&S(e)}}}function Pi(t){let e,n,r,o;function i(t,e){return"source_in"===t[3]||"source_atop"===t[3]?Di:ji}let a=i(t),l=a(t);return{c(){e=N("filter"),n=N("feFlood"),l.c(),this.h()},l(t){e=q(t,"filter",{id:!0});var r=R(e);n=q(r,"feFlood",{"flood-color":!0}),R(n).forEach(S),l.l(r),r.forEach(S),this.h()},h(){T(n,"flood-color",r=t[2]),T(e,"id",o=t[0][t[1]])},m(t,r){P(t,e,r),D(e,n),l.m(e,null)},p(t,s){1&s&&r!==(r=t[2])&&T(n,"flood-color",r),a===(a=i(t))&&l?l.p(t,s):(l.d(1),l=a(t),l&&(l.c(),l.m(e,null))),1&s&&o!==(o=t[0][t[1]])&&T(e,"id",o)},d(t){t&&S(e),l.d()}}}function Si(t){let e,r=Object.keys(t[0]).length,o=r&&Vi(t);return{c(){o&&o.c(),e=J()},l(t){o&&o.l(t),e=J()},m(t,n){o&&o.m(t,n),P(t,e,n)},p(t,n){let[i]=n;1&i&&(r=Object.keys(t[0]).length),r?o?o.p(t,i):(o=Vi(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},i:n,o:n,d(t){o&&o.d(t),t&&S(e)}}}function Fi(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const Ii=class extends Tt{constructor(t){super(),Ot(this,t,Fi,Si,d,{svgFiltersMap:0})}};function Ni(t,e,n,r){const o=n[t.type];if(!o)return r(Zt(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(Zt(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 zi(){}function Mi(t){return{subscribe:e=>(e(t),zi)}}function Ji(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function Oi(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function Ti(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 Bi(t){var e=parseInt(t,10);if(e>Lo||e<Uo)throw new Error("Value ".concat(t," can't be converted to Integer type."));return e}function Ri(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function Wi(t,e,n,r){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,Wi.prototype),o.expected=e,o.found=n,o.location=r,o.name="SyntaxError",o}function Li(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function Ui(t,e){var n,r={},o=(e=void 0!==e?e:{}).grammarSource,i={start:jt,JsonStringContents:function(){var t,e,n;for(t=mt,e=[],n=Dt();n!==r;)e.push(n),n=Dt();return vt=t,e=gt(e)}},a=jt,l="@{",s="}",c="@{}",u="\\",d="||",h="&&",p="==",f="!=",g=">=",m="<=",v="+",y="-",$="true",_="false",b=/^[^}]/,w=/^[^'}]/,x=/^[0-9]/,k=/^[a-zA-Z_0-9.]/,E=/^[a-zA-Z_]/,C=/^[ \t\r\n]/,A=xt("@{",!1),V=xt("}",!1),j=xt("@{}",!1),D=xt("\\",!1),P={type:"any"},S=kt(["}"],!0,!1),F=xt("?",!1),I=xt(":",!1),N=xt("||",!1),z=xt("&&",!1),M=xt("==",!1),J=xt("!=",!1),O=xt(">=",!1),T=xt(">",!1),B=xt("<=",!1),R=xt("<",!1),W=xt("+",!1),L=xt("-",!1),U=xt("/",!1),q=xt("*",!1),H=xt("%",!1),G=xt("!",!1),K=xt("(",!1),X=xt(")",!1),Y=xt(",",!1),Z=Et("string"),Q=xt("'",!1),tt=kt(["'","}"],!0,!1),et=Et("integer"),nt=kt([["0","9"]],!1,!1),rt=Et("number"),ot=xt(".",!1),it=xt("e",!1),at=xt("E",!1),lt=Et("boolean"),st=xt("true",!1),ct=xt("false",!1),ut=kt([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),dt=Et("identifier"),ht=kt([["a","z"],["A","Z"],"_"],!1,!1),pt=Et("whitespace"),ft=kt([" ","\t","\r","\n"],!1,!1),gt=function(t){return Ti(t)},mt=0,vt=0,yt=[{line:1,column:1}],$t=0,_t=[],bt=0;if("startRule"in e){if(!(e.startRule in i))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=i[e.startRule]}function wt(){return t.substring(vt,mt)}function xt(t,e){return{type:"literal",text:t,ignoreCase:e}}function kt(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function Et(t){return{type:"other",description:t}}function Ct(e){var n,r=yt[e];if(r)return r;for(n=e-1;!yt[n];)n--;for(r={line:(r=yt[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return yt[e]=r,r}function At(t,e){var n=Ct(t),r=Ct(e);return{source:o,start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:r.line,column:r.column}}}function Vt(t){mt<$t||(mt>$t&&($t=mt,_t=[]),_t.push(t))}function jt(){var t,e;return t=mt,Wt(),(e=Pt())!==r?(Wt(),vt=t,t=e):(mt=t,t=r),t}function Dt(){var e,n,o,i,a;if(e=mt,t.substr(mt,2)===l?(n=l,mt+=2):(n=r,0===bt&&Vt(A)),n!==r?(o=Wt(),(i=Pt())!==r?(Wt(),125===t.charCodeAt(mt)?(a=s,mt++):(a=r,0===bt&&Vt(V)),a!==r?(vt=e,e=i):(mt=e,e=r)):(mt=e,e=r)):(mt=e,e=r),e===r&&(e=mt,t.substr(mt,3)===c?(n=c,mt+=3):(n=r,0===bt&&Vt(j)),n!==r&&(vt=e,n=""),(e=n)===r&&(e=mt,n=mt,bt++,92===t.charCodeAt(mt)?(o=u,mt++):(o=r,0===bt&&Vt(D)),o===r&&(t.substr(mt,2)===l?(o=l,mt+=2):(o=r,0===bt&&Vt(A))),bt--,o===r?n=void 0:(mt=n,n=r),n!==r?(t.length>mt?(o=t.charAt(mt),mt++):(o=r,0===bt&&Vt(P)),o!==r?(vt=e,e=wt()):(mt=e,e=r)):(mt=e,e=r),e===r))){if(e=mt,t.substr(mt,2)===l?(n=l,mt+=2):(n=r,0===bt&&Vt(A)),n!==r){if(o=[],b.test(t.charAt(mt))?(i=t.charAt(mt),mt++):(i=r,0===bt&&Vt(S)),i!==r)for(;i!==r;)o.push(i),b.test(t.charAt(mt))?(i=t.charAt(mt),mt++):(i=r,0===bt&&Vt(S));else o=r;o!==r?(125===t.charCodeAt(mt)?(i=s,mt++):(i=r,0===bt&&Vt(V)),i!==r?(vt=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(mt=e,e=r)):(mt=e,e=r)}else mt=e,e=r;e===r&&(e=mt,t.substr(mt,2)===l?(n=l,mt+=2):(n=r,0===bt&&Vt(A)),n!==r&&(vt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===r&&(e=mt,92===t.charCodeAt(mt)?(n=u,mt++):(n=r,0===bt&&Vt(D)),n!==r?(t.substr(mt,2)===l?(o=l,mt+=2):(o=r,0===bt&&Vt(A)),o!==r?(vt=e,e=o):(mt=e,e=r)):(mt=e,e=r),e===r&&(e=mt,92===t.charCodeAt(mt)?(n=u,mt++):(n=r,0===bt&&Vt(D)),n!==r?(t.length>mt?(o=t.charAt(mt),mt++):(o=r,0===bt&&Vt(P)),o!==r?(vt=e,e=Ri(o)):(mt=e,e=r)):(mt=e,e=r),e===r&&(e=mt,92===t.charCodeAt(mt)?(n=u,mt++):(n=r,0===bt&&Vt(D)),n!==r&&(vt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function Pt(){var e,n,o,i,a,l;return e=mt,(n=St())!==r?(Wt(),63===t.charCodeAt(mt)?(o="?",mt++):(o=r,0===bt&&Vt(F)),o!==r?(Wt(),(i=Pt())!==r?(Wt(),58===t.charCodeAt(mt)?(a=":",mt++):(a=r,0===bt&&Vt(I)),a!==r?(Wt(),(l=Pt())!==r?(vt=e,e={type:"ConditionalExpression",test:n,consequent:i,alternate:l}):(mt=e,e=r)):(mt=e,e=r)):(mt=e,e=r)):(mt=e,e=r)):(mt=e,e=r),e===r&&(e=St()),e}function St(){var e,n,o,i,a,l,s,c;if(e=mt,(n=Ft())!==r){for(o=[],i=mt,a=Wt(),t.substr(mt,2)===d?(l=d,mt+=2):(l=r,0===bt&&Vt(N)),l!==r?(s=Wt(),(c=Ft())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);i!==r;)o.push(i),i=mt,a=Wt(),t.substr(mt,2)===d?(l=d,mt+=2):(l=r,0===bt&&Vt(N)),l!==r?(s=Wt(),(c=Ft())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);vt=e,e=Oi(n,o)}else mt=e,e=r;return e}function Ft(){var e,n,o,i,a,l,s,c;if(e=mt,(n=It())!==r){for(o=[],i=mt,a=Wt(),t.substr(mt,2)===h?(l=h,mt+=2):(l=r,0===bt&&Vt(z)),l!==r?(s=Wt(),(c=It())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);i!==r;)o.push(i),i=mt,a=Wt(),t.substr(mt,2)===h?(l=h,mt+=2):(l=r,0===bt&&Vt(z)),l!==r?(s=Wt(),(c=It())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);vt=e,e=Oi(n,o)}else mt=e,e=r;return e}function It(){var e,n,o,i,a,l,s,c;if(e=mt,(n=Nt())!==r){for(o=[],i=mt,a=Wt(),t.substr(mt,2)===p?(l=p,mt+=2):(l=r,0===bt&&Vt(M)),l===r&&(t.substr(mt,2)===f?(l=f,mt+=2):(l=r,0===bt&&Vt(J))),l!==r?(s=Wt(),(c=Nt())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);i!==r;)o.push(i),i=mt,a=Wt(),t.substr(mt,2)===p?(l=p,mt+=2):(l=r,0===bt&&Vt(M)),l===r&&(t.substr(mt,2)===f?(l=f,mt+=2):(l=r,0===bt&&Vt(J))),l!==r?(s=Wt(),(c=Nt())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);vt=e,e=Ji(n,o)}else mt=e,e=r;return e}function Nt(){var e,n,o,i,a,l,s,c;if(e=mt,(n=zt())!==r){for(o=[],i=mt,a=Wt(),t.substr(mt,2)===g?(l=g,mt+=2):(l=r,0===bt&&Vt(O)),l===r&&(62===t.charCodeAt(mt)?(l=">",mt++):(l=r,0===bt&&Vt(T)),l===r&&(t.substr(mt,2)===m?(l=m,mt+=2):(l=r,0===bt&&Vt(B)),l===r&&(60===t.charCodeAt(mt)?(l="<",mt++):(l=r,0===bt&&Vt(R))))),l!==r?(s=Wt(),(c=zt())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);i!==r;)o.push(i),i=mt,a=Wt(),t.substr(mt,2)===g?(l=g,mt+=2):(l=r,0===bt&&Vt(O)),l===r&&(62===t.charCodeAt(mt)?(l=">",mt++):(l=r,0===bt&&Vt(T)),l===r&&(t.substr(mt,2)===m?(l=m,mt+=2):(l=r,0===bt&&Vt(B)),l===r&&(60===t.charCodeAt(mt)?(l="<",mt++):(l=r,0===bt&&Vt(R))))),l!==r?(s=Wt(),(c=zt())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);vt=e,e=Ji(n,o)}else mt=e,e=r;return e}function zt(){var e,n,o,i,a,l,s,c;if(e=mt,(n=Mt())!==r){for(o=[],i=mt,a=Wt(),43===t.charCodeAt(mt)?(l=v,mt++):(l=r,0===bt&&Vt(W)),l===r&&(45===t.charCodeAt(mt)?(l=y,mt++):(l=r,0===bt&&Vt(L))),l!==r?(s=Wt(),(c=Mt())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);i!==r;)o.push(i),i=mt,a=Wt(),43===t.charCodeAt(mt)?(l=v,mt++):(l=r,0===bt&&Vt(W)),l===r&&(45===t.charCodeAt(mt)?(l=y,mt++):(l=r,0===bt&&Vt(L))),l!==r?(s=Wt(),(c=Mt())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);vt=e,e=Ji(n,o)}else mt=e,e=r;return e}function Mt(){var e,n,o,i,a,l,s,c;if(e=mt,(n=Jt())!==r){for(o=[],i=mt,a=Wt(),47===t.charCodeAt(mt)?(l="/",mt++):(l=r,0===bt&&Vt(U)),l===r&&(42===t.charCodeAt(mt)?(l="*",mt++):(l=r,0===bt&&Vt(q)),l===r&&(37===t.charCodeAt(mt)?(l="%",mt++):(l=r,0===bt&&Vt(H)))),l!==r?(s=Wt(),(c=Jt())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);i!==r;)o.push(i),i=mt,a=Wt(),47===t.charCodeAt(mt)?(l="/",mt++):(l=r,0===bt&&Vt(U)),l===r&&(42===t.charCodeAt(mt)?(l="*",mt++):(l=r,0===bt&&Vt(q)),l===r&&(37===t.charCodeAt(mt)?(l="%",mt++):(l=r,0===bt&&Vt(H)))),l!==r?(s=Wt(),(c=Jt())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);vt=e,e=Ji(n,o)}else mt=e,e=r;return e}function Jt(){var e,n,o;return(e=Bt())===r&&(e=Tt())===r&&(e=mt,33===t.charCodeAt(mt)?(n="!",mt++):(n=r,0===bt&&Vt(G)),n===r&&(43===t.charCodeAt(mt)?(n=v,mt++):(n=r,0===bt&&Vt(W)),n===r&&(45===t.charCodeAt(mt)?(n=y,mt++):(n=r,0===bt&&Vt(L)))),n!==r?(Wt(),(o=Jt())!==r?(vt=e,e={type:"UnaryExpression",operator:n,argument:o}):(mt=e,e=r)):(mt=e,e=r),e===r&&(e=function(){var e,n,o,i,a;return e=mt,(n=Rt())!==r?(Wt(),40===t.charCodeAt(mt)?(o="(",mt++):(o=r,0===bt&&Vt(K)),o!==r?(Wt(),i=function(){var e,n,o,i,a,l,s;if(e=mt,(n=Pt())!==r){for(o=[],i=mt,Wt(),44===t.charCodeAt(mt)?(a=",",mt++):(a=r,0===bt&&Vt(Y)),a!==r?(Wt(),(l=Pt())!==r?i=l:(mt=i,i=r)):(mt=i,i=r);i!==r;)o.push(i),i=mt,Wt(),44===t.charCodeAt(mt)?(a=",",mt++):(a=r,0===bt&&Vt(Y)),a!==r?(Wt(),(l=Pt())!==r?i=l:(mt=i,i=r)):(mt=i,i=r);vt=e,s=o,e=[n,...s]}else mt=e,e=r;return e===r&&(e=Wt()),e}(),i!==r?(Wt(),41===t.charCodeAt(mt)?(a=")",mt++):(a=r,0===bt&&Vt(X)),a!==r?(vt=e,e={type:"CallExpression",callee:n,arguments:i}):(mt=e,e=r)):(mt=e,e=r)):(mt=e,e=r)):(mt=e,e=r),e===r&&(e=mt,(n=Rt())!==r&&(vt=e,n={type:"Variable",id:n}),(e=n)===r&&(e=function(){var e,n,o,i;return e=function(){var e,n,o,i;return bt++,e=mt,39===t.charCodeAt(mt)?(n="'",mt++):(n=r,0===bt&&Vt(Q)),n!==r?(o=function(){var t,e,n;for(t=mt,e=[],n=Ot();n!==r;)e.push(n),n=Ot();return vt=t,e=Ti(e)}(),39===t.charCodeAt(mt)?(i="'",mt++):(i=r,0===bt&&Vt(Q)),i!==r?(vt=e,e=o):(mt=e,e=r)):(mt=e,e=r),bt--,e===r&&(n=r,0===bt&&Vt(Z)),e}(),e===r&&(e=Bt())===r&&(e=Tt())===r&&(e=function(){var e,n;return bt++,e=mt,t.substr(mt,4)===$?(n=$,mt+=4):(n=r,0===bt&&Vt(st)),n!==r&&(vt=e,n={type:"BooleanLiteral",value:!0}),(e=n)===r&&(e=mt,t.substr(mt,5)===_?(n=_,mt+=5):(n=r,0===bt&&Vt(ct)),n!==r&&(vt=e,n={type:"BooleanLiteral",value:!1}),e=n),bt--,e===r&&(n=r,0===bt&&Vt(lt)),e}(),e===r&&(e=mt,40===t.charCodeAt(mt)?(n="(",mt++):(n=r,0===bt&&Vt(K)),n!==r&&(o=Pt())!==r?(41===t.charCodeAt(mt)?(i=")",mt++):(i=r,0===bt&&Vt(X)),i!==r?(vt=e,e=o):(mt=e,e=r)):(mt=e,e=r))),e}())),e}())),e}function Ot(){var e,n,o,i,a;if(e=mt,t.substr(mt,2)===l?(n=l,mt+=2):(n=r,0===bt&&Vt(A)),n!==r?(o=Wt(),(i=Pt())!==r?(Wt(),125===t.charCodeAt(mt)?(a=s,mt++):(a=r,0===bt&&Vt(V)),a!==r?(vt=e,e=i):(mt=e,e=r)):(mt=e,e=r)):(mt=e,e=r),e===r&&(e=mt,t.substr(mt,3)===c?(n=c,mt+=3):(n=r,0===bt&&Vt(j)),n!==r&&(vt=e,n=""),(e=n)===r&&(e=mt,n=mt,bt++,92===t.charCodeAt(mt)?(o=u,mt++):(o=r,0===bt&&Vt(D)),o===r&&(39===t.charCodeAt(mt)?(o="'",mt++):(o=r,0===bt&&Vt(Q)),o===r&&(t.substr(mt,2)===l?(o=l,mt+=2):(o=r,0===bt&&Vt(A)))),bt--,o===r?n=void 0:(mt=n,n=r),n!==r?(t.length>mt?(o=t.charAt(mt),mt++):(o=r,0===bt&&Vt(P)),o!==r?(vt=e,e=wt()):(mt=e,e=r)):(mt=e,e=r),e===r))){if(e=mt,t.substr(mt,2)===l?(n=l,mt+=2):(n=r,0===bt&&Vt(A)),n!==r){if(o=[],w.test(t.charAt(mt))?(i=t.charAt(mt),mt++):(i=r,0===bt&&Vt(tt)),i!==r)for(;i!==r;)o.push(i),w.test(t.charAt(mt))?(i=t.charAt(mt),mt++):(i=r,0===bt&&Vt(tt));else o=r;o!==r?(125===t.charCodeAt(mt)?(i=s,mt++):(i=r,0===bt&&Vt(V)),i!==r?(vt=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(mt=e,e=r)):(mt=e,e=r)}else mt=e,e=r;e===r&&(e=mt,t.substr(mt,2)===l?(n=l,mt+=2):(n=r,0===bt&&Vt(A)),n!==r&&(vt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===r&&(e=mt,92===t.charCodeAt(mt)?(n=u,mt++):(n=r,0===bt&&Vt(D)),n!==r?(t.substr(mt,2)===l?(o=l,mt+=2):(o=r,0===bt&&Vt(A)),o!==r?(vt=e,e=o):(mt=e,e=r)):(mt=e,e=r),e===r&&(e=mt,92===t.charCodeAt(mt)?(n=u,mt++):(n=r,0===bt&&Vt(D)),n!==r?(t.length>mt?(o=t.charAt(mt),mt++):(o=r,0===bt&&Vt(P)),o!==r?(vt=e,e=Ri(o)):(mt=e,e=r)):(mt=e,e=r),e===r&&(e=mt,92===t.charCodeAt(mt)?(n=u,mt++):(n=r,0===bt&&Vt(D)),n!==r&&(vt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function Tt(){var e,n,o,i;if(bt++,e=mt,45===t.charCodeAt(mt)?(n=y,mt++):(n=r,0===bt&&Vt(L)),n===r&&(n=null),o=[],x.test(t.charAt(mt))?(i=t.charAt(mt),mt++):(i=r,0===bt&&Vt(nt)),i!==r)for(;i!==r;)o.push(i),x.test(t.charAt(mt))?(i=t.charAt(mt),mt++):(i=r,0===bt&&Vt(nt));else o=r;return o!==r?(vt=e,e={type:"IntegerLiteral",value:Bi(wt())}):(mt=e,e=r),bt--,e===r&&(n=r,0===bt&&Vt(et)),e}function Bt(){var e,n,o,i,a,l,s,c,u,d;for(bt++,e=mt,45===t.charCodeAt(mt)?(n=y,mt++):(n=r,0===bt&&Vt(L)),n===r&&(n=null),o=[],x.test(t.charAt(mt))?(i=t.charAt(mt),mt++):(i=r,0===bt&&Vt(nt));i!==r;)o.push(i),x.test(t.charAt(mt))?(i=t.charAt(mt),mt++):(i=r,0===bt&&Vt(nt));if(46===t.charCodeAt(mt)?(i=".",mt++):(i=r,0===bt&&Vt(ot)),i!==r){if(a=[],x.test(t.charAt(mt))?(l=t.charAt(mt),mt++):(l=r,0===bt&&Vt(nt)),l!==r)for(;l!==r;)a.push(l),x.test(t.charAt(mt))?(l=t.charAt(mt),mt++):(l=r,0===bt&&Vt(nt));else a=r;if(a!==r){if(l=mt,101===t.charCodeAt(mt)?(s="e",mt++):(s=r,0===bt&&Vt(it)),s===r&&(69===t.charCodeAt(mt)?(s="E",mt++):(s=r,0===bt&&Vt(at))),s!==r){if(43===t.charCodeAt(mt)?(c=v,mt++):(c=r,0===bt&&Vt(W)),c===r&&(45===t.charCodeAt(mt)?(c=y,mt++):(c=r,0===bt&&Vt(L))),c===r&&(c=null),u=[],x.test(t.charAt(mt))?(d=t.charAt(mt),mt++):(d=r,0===bt&&Vt(nt)),d!==r)for(;d!==r;)u.push(d),x.test(t.charAt(mt))?(d=t.charAt(mt),mt++):(d=r,0===bt&&Vt(nt));else u=r;u!==r?l=s=[s,c,u]:(mt=l,l=r)}else mt=l,l=r;l===r&&(l=null),vt=e,e={type:"NumberLiteral",value:parseFloat(wt())}}else mt=e,e=r}else mt=e,e=r;if(e===r){if(e=mt,45===t.charCodeAt(mt)?(n=y,mt++):(n=r,0===bt&&Vt(L)),n===r&&(n=null),o=[],x.test(t.charAt(mt))?(i=t.charAt(mt),mt++):(i=r,0===bt&&Vt(nt)),i!==r)for(;i!==r;)o.push(i),x.test(t.charAt(mt))?(i=t.charAt(mt),mt++):(i=r,0===bt&&Vt(nt));else o=r;if(o!==r)if(101===t.charCodeAt(mt)?(i="e",mt++):(i=r,0===bt&&Vt(it)),i===r&&(69===t.charCodeAt(mt)?(i="E",mt++):(i=r,0===bt&&Vt(at))),i!==r){if(43===t.charCodeAt(mt)?(a=v,mt++):(a=r,0===bt&&Vt(W)),a===r&&(45===t.charCodeAt(mt)?(a=y,mt++):(a=r,0===bt&&Vt(L))),a===r&&(a=null),l=[],x.test(t.charAt(mt))?(s=t.charAt(mt),mt++):(s=r,0===bt&&Vt(nt)),s!==r)for(;s!==r;)l.push(s),x.test(t.charAt(mt))?(s=t.charAt(mt),mt++):(s=r,0===bt&&Vt(nt));else l=r;l!==r?(vt=e,e={type:"NumberLiteral",value:parseFloat(wt())}):(mt=e,e=r)}else mt=e,e=r;else mt=e,e=r}return bt--,e===r&&(n=r,0===bt&&Vt(rt)),e}function Rt(){var e,n,o,i,a;if(bt++,e=mt,n=mt,bt++,o=function(){var e,n,o,i;return e=mt,t.substr(mt,4)===$?(n=$,mt+=4):(n=r,0===bt&&Vt(st)),n===r&&(t.substr(mt,5)===_?(n=_,mt+=5):(n=r,0===bt&&Vt(ct))),n!==r?(o=mt,bt++,k.test(t.charAt(mt))?(i=t.charAt(mt),mt++):(i=r,0===bt&&Vt(ut)),bt--,i===r?o=void 0:(mt=o,o=r),o!==r?e=n=[n,o]:(mt=e,e=r)):(mt=e,e=r),e}(),bt--,o===r?n=void 0:(mt=n,n=r),n!==r)if(E.test(t.charAt(mt))?(o=t.charAt(mt),mt++):(o=r,0===bt&&Vt(ht)),o!==r){for(i=[],k.test(t.charAt(mt))?(a=t.charAt(mt),mt++):(a=r,0===bt&&Vt(ut));a!==r;)i.push(a),k.test(t.charAt(mt))?(a=t.charAt(mt),mt++):(a=r,0===bt&&Vt(ut));vt=e,e={type:"Identifier",name:wt()}}else mt=e,e=r;else mt=e,e=r;return bt--,e===r&&(n=r,0===bt&&Vt(dt)),e}function Wt(){var e,n;for(bt++,e=[],C.test(t.charAt(mt))?(n=t.charAt(mt),mt++):(n=r,0===bt&&Vt(ft));n!==r;)e.push(n),C.test(t.charAt(mt))?(n=t.charAt(mt),mt++):(n=r,0===bt&&Vt(ft));return bt--,n=r,0===bt&&Vt(pt),e}if((n=a())!==r&&mt===t.length)return n;throw n!==r&&mt<t.length&&Vt({type:"end"}),function(t,e,n){return new Wi(Wi.buildMessage(t,e),t,e,n)}(_t,$t<t.length?t.charAt($t):null,$t<t.length?At($t,$t+1):At($t,$t))}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(Wi,Error),Wi.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=Li("",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+" | "+Li("",o.column-1," ")+Li("",c,"^")}else e+="\n at "+i}return e},Wi.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 qi=new Map,Hi=new Map;function Gi(t,e,n){const r={args:e,cb:n},o=qi.get(t)||[];qi.has(t)||qi.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");Hi.set(i,r)}function Ki(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 Xi(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=>{Xi(t,e)}));break;case"BinaryExpression":case"LogicalExpression":Xi(t.left,e),Xi(t.right,e);break;case"UnaryExpression":Xi(t.argument,e);break;case"ConditionalExpression":Xi(t.test,e),Xi(t.consequent,e),Xi(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{Xi(t,e)}))}}function Yi(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function Zi(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function Qi(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 Zi(t.value);if("color"===t.type)return sa(la(t.value));if("url"===t.type)return t.value;throw new Error("Unexpected type ".concat(t.type))}function ta(t){let e=Qi(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\'").replace(/'/g,"\\'")+"'"),e}function ea(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}const na=new Int32Array(1);function ra(t){return na[0]=t,na[0]}function oa(t){if(t<Uo||t>Lo)throw new Error("Integer overflow.")}function ia(t){const e=[];return Xi(t,{Variable(t){e.push(t.id.name)}}),e}function aa(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function la(t){const e=le(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function sa(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 oe(Math.round(t).toString(16),2)})).join("").toUpperCase())}function ca(t){return{type:Go,value:Qi(t)}}function ua(t){const e=Number(t.value);if(isNaN(e)||!Number.isFinite(e))throw new Error("Unable to convert value to Number.");return{type:Xo,value:e}}function da(t,e){if(0===e.value)throw new Error("Division by zero is not supported.");let n=t.value/e.value;return t.type===Ko&&(n=ra(n)),{type:t.type,value:n}}function ha(t,e){if(0===e.value)throw new Error("Division by zero is not supported.");let n=t.value%e.value;return t.type===Ko&&(n=ra(n)),{type:t.type,value:n}}function pa(){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===Ko&&(r=ra(r));return{type:e[0].type,value:r}}function fa(){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===Ko&&(r=ra(r));return{type:e.length?e[0].type:Ko,value:r}}function ga(){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===Ko&&(t=ra(t));return{type:n.length?n[0].type:Ko,value:t}}function ma(t){const e=Math.abs(t.value);return t.type===Ko&&oa(e),{type:t.type,value:e}}function va(){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 for max function.");return{type:e[0].type,value:Math.max(...e.map((t=>t.value)))}}function ya(){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 for min function.");return{type:e[0].type,value:Math.min(...e.map((t=>t.value)))}}function $a(t){return{type:t.type,value:Math.sign(t.value)}}function _a(t,e){let n;if(0===e.value&&t.type===Ko)n=t.value;else if(0===t.value&&t.type===Ko)n=0;else{let r=Math.sign(e.value);t.type===Xo&&0===r&&(r=Object.is(r,0)?1:-1),n=Math.abs(t.value)*r}return t.type===Ko&&oa(n),{type:t.type,value:n}}function ba(t){return e=>{const n=la(e.value);return{type:Xo,value:n[t]/255}}}function wa(t){return(e,n)=>{const r=la(e.value);return r[t]=255*n.value,{type:Zo,value:sa(r)}}}const xa=ba("a"),ka=ba("r"),Ea=ba("g"),Ca=ba("b"),Aa=wa("a"),Va=wa("r"),ja=wa("g"),Da=wa("b");function Pa(t){return t.map(ta).join(", ")}Gi("toString",[Ko],ca),Gi("toString",[Xo],ca),Gi("toString",[Yo],ca),Gi("toString",[Zo],ca),Gi("toString",["url"],ca),Gi("toNumber",[Ko],ua),Gi("toNumber",[Go],ua),Gi("toInteger",[Xo],(function(t){if(t.value>Lo||t.value<Uo)throw new Error("Unable to convert value to Integer.");const e=t.value-t.value%1;return{type:Ko,value:e}})),Gi("toInteger",[Go],(function(t){const e=Number(t.value);if(isNaN(e)||e%1!=0||e>Lo||e<Uo)throw new Error("Unable to convert value to Integer.");return{type:Ko,value:e}})),Gi("toInteger",[Yo],(function(t){return{type:Ko,value:t.value?1:0}})),Gi("toBoolean",[Ko],(function(t){if(1!==t.value&&0!==t.value)throw new Error("Unable to convert value to Boolean.");return{type:Yo,value:t.value}})),Gi("toBoolean",[Go],(function(t){if("true"!==t.value&&"false"!==t.value)throw new Error("Unable to convert value to Boolean.");return{type:Yo,value:"true"===t.value?1:0}})),Gi("encodeUri",[Go],(function(t){try{return{type:Go,value:encodeURIComponent(t.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),Gi("decodeUri",[Go],(function(t){try{return{type:Go,value:decodeURIComponent(t.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),Gi("parseUnixTime",[Ko],(function(t){return{type:Qo,value:new Date(1e3*t.value)}})),Gi("nowLocal",[],(function(){return{type:Qo,value:new Date}})),Gi("addMillis",[Qo,Ko],(function(t,e){return{type:Qo,value:new Date(t.value.getTime()+e.value)}})),Gi("setYear",[Qo,Ko],(function(t,e){const n=new Date(t.value);return n.setFullYear(e.value),{type:Qo,value:n}})),Gi("setMonth",[Qo,Ko],(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:Qo,value:n}})),Gi("setDay",[Qo,Ko],(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(Qi(t),"."));return n.setDate(-1===e.value?0:e.value),{type:Qo,value:n}})),Gi("setHours",[Qo,Ko],(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:Qo,value:n}})),Gi("setMinutes",[Qo,Ko],(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:Qo,value:n}})),Gi("setSeconds",[Qo,Ko],(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:Qo,value:n}})),Gi("setMillis",[Qo,Ko],(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:Qo,value:n}})),Gi("len",[Go],(function(t){return{type:Ko,value:t.value.length}})),Gi("contains",[Go,Go],(function(t,e){return{type:Yo,value:t.value.includes(e.value)?1:0}})),Gi("substring",[Go,Ko,Ko],(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:Go,value:t.value.substring(e.value,n.value)}})),Gi("replaceAll",[Go,Go,Go],(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:Go,value:r}})),Gi("index",[Go,Go],(function(t,e){return{type:Ko,value:t.value.indexOf(e.value)}})),Gi("lastIndex",[Go,Go],(function(t,e){return{type:Ko,value:t.value.lastIndexOf(e.value)}})),Gi("trim",[Go],(function(t){return{type:Go,value:t.value.trim()}})),Gi("trimLeft",[Go],(function(t){return{type:Go,value:t.value.replace(/^\s+/,"")}})),Gi("trimRight",[Go],(function(t){return{type:Go,value:t.value.replace(/\s+$/,"")}})),Gi("toUpperCase",[Go],(function(t){return{type:Go,value:t.value.toUpperCase()}})),Gi("toLowerCase",[Go],(function(t){return{type:Go,value:t.value.toLowerCase()}})),Gi("div",[Ko,Ko],da),Gi("div",[Xo,Xo],da),Gi("mod",[Ko,Ko],ha),Gi("mod",[Xo,Xo],ha),Gi("mul",[{type:Ko,isVararg:!0}],pa),Gi("mul",[{type:Xo,isVararg:!0}],pa),Gi("sub",[{type:Ko,isVararg:!0}],fa),Gi("sub",[{type:Xo,isVararg:!0}],fa),Gi("sum",[{type:Ko,isVararg:!0}],ga),Gi("sum",[{type:Xo,isVararg:!0}],ga),Gi("abs",[Ko],ma),Gi("abs",[Xo],ma),Gi("max",[{type:Ko,isVararg:!0}],va),Gi("max",[{type:Xo,isVararg:!0}],va),Gi("min",[{type:Ko,isVararg:!0}],ya),Gi("min",[{type:Xo,isVararg:!0}],ya),Gi("maxNumber",[],(function(){return{type:Xo,value:qo}})),Gi("minNumber",[],(function(){return{type:Xo,value:Ho}})),Gi("maxInteger",[],(function(){return{type:Ko,value:Lo}})),Gi("minInteger",[],(function(){return{type:Ko,value:Uo}})),Gi("round",[Xo],(function(t){const e=Math.sign(t.value);return{type:Xo,value:e*Math.round(Math.abs(t.value))}})),Gi("floor",[Xo],(function(t){return{type:Xo,value:Math.floor(t.value)}})),Gi("ceil",[Xo],(function(t){return{type:Xo,value:Math.ceil(t.value)}})),Gi("signum",[Xo],$a),Gi("signum",[Ko],$a),Gi("copySign",[Xo,Xo],_a),Gi("copySign",[Ko,Ko],_a),Gi("getColorAlpha",[Go],xa),Gi("getColorAlpha",[Zo],xa),Gi("getColorRed",[Go],ka),Gi("getColorRed",[Zo],ka),Gi("getColorGreen",[Go],Ea),Gi("getColorGreen",[Zo],Ea),Gi("getColorBlue",[Go],Ca),Gi("getColorBlue",[Zo],Ca),Gi("setColorAlpha",[Go,Xo],Aa),Gi("setColorAlpha",[Zo,Xo],Aa),Gi("setColorRed",[Go,Xo],Va),Gi("setColorRed",[Zo,Xo],Va),Gi("setColorGreen",[Go,Xo],ja),Gi("setColorGreen",[Zo,Xo],ja),Gi("setColorBlue",[Go,Xo],Da),Gi("setColorBlue",[Zo,Xo],Da),Gi("rgb",[Xo,Xo,Xo],(function(t,e,n){const r={a:255,r:255*t.value,g:255*e.value,b:255*n.value};return{type:Zo,value:sa(r)}})),Gi("argb",[Xo,Xo,Xo,Xo],(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:Zo,value:sa(o)}}));const Sa={StringLiteral:function(t,e){return{type:Go,value:e.value}},NumberLiteral:function(t,e){return{type:Xo,value:e.value}},IntegerLiteral:function(t,e){return{type:Ko,value:e.value}},BooleanLiteral:function(t,e){return{type:Yo,value:e.value?1:0}},UnaryExpression:function(t,e){const n=Yi(Fa(t,e.argument));switch(e.operator){case"!":if(n.type===Yo)return{type:Yo,value:n.value?0:1};aa("".concat(e.operator).concat(ta(n)),"A Boolean is expected after a unary not.");case"+":case"-":const t="+"===e.operator?1:-1;if(n.type===Ko)return{type:Ko,value:n.value*t};if(n.type===Xo)return{type:Xo,value:n.value*t};aa("".concat(e.operator).concat(ta(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=Yi(Fa(t,e.test));if(n.type===Yo)return n.value?Fa(t,e.consequent):Fa(t,e.alternate);aa("".concat(ta(n)," ? ").concat(ta(Fa(t,e.consequent))," : ").concat(ta(Fa(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 Fa(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=Qi(Fa(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:Go,value:n}},LogicalExpression:function(t,e){const n=Yi(Fa(t,e.left));if(n.type!==Yo&&aa("".concat(ta(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:Yo,value:0};const r=Yi(Fa(t,e.right));return r.type!==Yo&&aa("".concat(ta(n)," ").concat(e.operator," ").concat(ta(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(ea(r.type),".")),{type:Yo,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=Fa(t,e.left),o=Fa(t,e.right);if(r.type!==o.type&&aa("".concat(ta(r)," ").concat(e.operator," ").concat(ta(o)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(ea(r.type)," and ").concat(ea(o.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===Qo&&n.type===Qo?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:Yo,value:r?1:0}}(n,r,o);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==Xo&&e.type!==Ko&&e.type!==Qo&&aa("".concat(ta(e)," ").concat(t," ").concat(ta(n)),"Operator '".concat(t,"' cannot be applied to ").concat(ea(e.type)," type."));const o=e.type===Qo?e.value.getTime():e.value,i=n.type===Qo?n.value.getTime():n.value;return r=">"===t?o>i:">="===t?o>=i:"<"===t?o<i:o<=i,{type:Yo,value:r?1:0}}(n,r,o);if("+"===n||"-"===n)return function(t,e,n){if(e.type!==Go&&e.type!==Xo&&e.type!==Ko&&aa("".concat(ta(e)," ").concat(t," ").concat(ta(n)),"Operator '".concat(t,"' cannot be applied to ").concat(ea(e.type)," type.")),e.type===Go)return"-"===t&&aa("".concat(ta(e)," - ").concat(ta(n)),"Operator '".concat(t,"' cannot be applied to ").concat(ea(e.type)," type.")),{type:Go,value:e.value+n.value};let r="+"===t?e.value+n.value:e.value-n.value;return e.type===Ko&&(r=ra(r)),{type:e.type,value:r}}(n,r,o);if("/"===n||"*"===n||"%"===n)return function(t,e,n){let r;if(e.type!==Ko&&e.type!==Xo&&aa("".concat(ta(e)," ").concat(t," ").concat(ta(n)),"Operator '".concat(t,"' cannot be applied to ").concat(ea(e.type)," type.")),"*"===t)r=e.value*n.value;else{if("/"!==t&&"%"!==t)throw new Error("Unsupported operation ".concat(t));0===n.value&&aa("".concat(ta(e)," ").concat(t," ").concat(ta(n)),"Division by zero is not supported."),r="/"===t?e.value/n.value:e.value%n.value}return e.type===Ko&&(r=ra(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(!qi.has(n))throw new Error("Unknown function name: ".concat(n,"."));let r;const o=e.arguments.map((e=>Fa(t,e))),i=n+":"+o.map((t=>t.type)).join("#");if(Hi.has(i))r=Hi.get(i);else{const t=function(t,e){const n=qi.get(t);if(!n)throw new Error("Missing function");let r=null;for(let t=0;t<n.length;++t){const o=Ki(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=>ea(t.type))).join(", "),r="".concat(n,"(").concat(Pa(o),")");"few"===t.type&&0===o.length?aa(r,"Non empty argument list is required for function '".concat(n,"'.")):(t.type,aa(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){aa("".concat(n,"(").concat(Pa(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 Fa(t,e){if(e.type in Sa)return Sa[e.type](t,e);throw new Error("Unsupported expression")}function Ia(t,e){try{return Fa(t,e)}catch(t){return{type:"error",value:t.message}}}class Na{constructor(t){this.ast=t}apply(t,e){if(!function(t,e){let n=!1;return Xi(t,{Variable(t){e.has(t.id.name)||(n=!0)}}),n}(this.ast,t))try{const n=Ia(t,this.ast);if("error"===n.type)return void e(Zt(new Error("Expression execution error"),{additional:{message:n.value}}));const r=n.value;if(r instanceof Date)return Zi(r);if("boolean"===n.type)return Boolean(r);if("color"===n.type){const t=le(String(r));if(t)return sa(t);e(Zt(new Error("Expression execution error")))}return r}catch(t){return void e(Zt(new Error("Expression execution error")))}}}function za(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=Ui(t,{startRule:"JsonStringContents"}),r=ia(n);return e.vars.push(...r),new Na(n)}catch(e){return void n(Zt(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>za(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=za(t[o],e,n);return r}}var r;return t}function Ma(t,e,n){if(t){if(t instanceof Na)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>Ma(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=Ma(t[o],e,n);return r}}return t}function Ja(t,e){const n={vars:[],hasExpression:!1},r=za(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:t=>Ma(r,t,e)}}const Oa={pagers:function(){return Rt(new Map)}},Ta=new Map,Ba=new Map;function Ra(t){const e=Ta.get(t)||Rt("");return Ta.has(t)||Ta.set(t,e),e}function Wa(t){const e=Ba.get(t)||new Map;return Ba.has(t)||Ba.set(t,e),e}class La{setVariable(t){const e=t.getName(),n=Wa(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),Ra(this).set(e)}getVariable(t){return Wa(this).get(t)}}function Ua(){return new La}function qa(t){let e,n,r,o,i,a,l,s;return n=new Ii({props:{svgFiltersMap:t[1]}}),o=new Ci({props:{div:t[5],templateContext:t[4]}}),{c(){e=I("div"),Nt(n.$$.fragment),r=M(),Nt(o.$$.fragment),this.h()},l(t){e=U(t,"DIV",{class:!0});var i=R(e);zt(n.$$.fragment,i),r=G(i),zt(o.$$.fragment,i),i.forEach(S),this.h()},h(){T(e,"class",i=""+(Lt+(t[2]?" ".concat(Gt):"")))},m(t,i){P(t,e,i),Mt(n,e,null),D(e,r),Mt(o,e,null),a=!0,l||(s=O(e,"touchstart",Ga,{passive:!0}),l=!0)},p(t,r){const o={};2&r[0]&&(o.svgFiltersMap=t[1]),n.$set(o),(!a||4&r[0]&&i!==(i=""+(Lt+(t[2]?" ".concat(Gt):""))))&&T(e,"class",i)},i(t){a||(At(n.$$.fragment,t),At(o.$$.fragment,t),a=!0)},o(t){Vt(n.$$.fragment,t),Vt(o.$$.fragment,t),a=!1},d(t){t&&S(e),Jt(n),Jt(o),l=!1,s()}}}function Ha(t){let e,n,r=!t[0]&&t[5]&&qa(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){!t[0]&&t[5]?r?(r.p(t,n),1&n[0]&&At(r,1)):(r=qa(t),r.c(),At(r,1),r.m(e.parentNode,e)):r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct())},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}function Ga(){}function Ka(t,e,n){let r;var o,i,a;let{id:l}=e,{json:s={}}=e,{platform:c="auto"}=e,{theme:u="system"}=e,{globalVariablesController:d=new La}=e,{onError:h}=e,{onStat:p}=e,{onCustomAction:g}=e,{onComponent:m}=e,v=Rt("desktop"===c);if(f(t,v,(t=>n(2,r=t))),"auto"===c&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");v.set(!t.matches),t.addListener((()=>{v.set(!t.matches)}))}let y="light",$=null;function _(){"system"===u&&$&&n(19,y=$.matches?"dark":"light")}let b=!1;s||(b=!0,P(Zt(new Error('"json" prop is required')))),l||(b=!0,P(Zt(new Error('"id" prop is required'))));let w=function(t){if(!t)return Zt(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return Zt(new Error("Missing card"));if(!e.states||!e.states.length)return Zt(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in wi)return Zt(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return Zt(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return Zt(new Error("Missing state_id"),{additional:{index:t}})}return null}(s);const x=s.templates||{};w&&(b=!0,P(w));const k={stateChange:!1},E=Ra(d),C=Wa(d),A=new Map,V=new Map,j=new Map;function D(t){const e=Ja(t,P);return e.vars.length?e.applyVars(V):t}function P(t){h?h({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function S(t,e){p&&p({type:t,action:e})}let F=0;function I(t){return"".concat(l,"-").concat(F++)}let N={},z={};function M(t){const e=t.url?String(t.url):"";if(e)try{const t=e.replace(/div-action:\/\//,""),n=/([^?]+)\?(.+)/.exec(t);if(!n)return;const r=new URLSearchParams(n[2]);switch(n[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=W,n=t.split("/");if(n=["root",...n],n.length<2||n.length%2!=0)throw new Error("Incorrect state id format");for(let t=0;t<n.length;t+=2){const r=n[t],o=n[t+1];let i=e.getChild(r);if(!i)return;i.setState(o),e=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=T(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=T(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=T(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=V.get(n);t?t.set(o):P(Zt(new Error("Cannot find variable"),{additional:{name:n}}))}else P(Zt(new Error("Incorrect set_variable_action"),{additional:{url:t}}));break;default:P(Zt(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){P(Zt(t,{additional:{url:e}}))}}function J(t){null==g||g(t)}const O=new Map;function T(t){if(O.has(t))return O.get(t);P(Zt(new Error("Missing instance with id"),{additional:{id:t}}))}const B=new Map;function R(t){for(const e of t)V.has(e)&&t.delete(e);return t}it(Yt,{logError:P,logStat:S,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}=Ni(t,e,x,P)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:I,genClass:function(t){return"divkit-".concat(I())},execAction:M,execAnyActions:async function(t,e){if(t){for(let n=0;n<t.length;++n){let r=t[n];const o=r.url;if(o){const t=ge(o);if(t)if(ve(t)){if(e)if("_blank"===r.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=o)}else location.href=o}else"div-action"===t?(M(r),await gt()):r.log_id&&(J(r),await gt())}}t.forEach((t=>{t.log_id&&S("click",t)}))}},execCustomAction:J,isRunning:function(t){return k[t]},setRunning:function(t,e){k[t]=e},registerInstance:function(t,e){O.has(t)?P(Zt(new Error("Duplicate instance id"),{additional:{id:t}})):O.set(t,e)},unregisterInstance:function(t){O.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(z[r]=z[r]||0,++z[r],N[r])return N[r];const o="".concat(I(),"-svg-filter");return n(1,N=Object.assign(Object.assign({},N),{[r]:o})),o},removeSvgFilter:function(t,e){if(!t||!z[t])return;const r="".concat(t,":").concat(e);0==--z[r]&&n(1,N=Object.keys(N).reduce(((t,e)=>(z[e]&&(t[e]=N[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return Mi(t);const e=Ja(t,P);return e.vars.length?Wt(e.vars.map((t=>V.get(t)||function(t){const e=j.get(t)||Rt(void 0);return j.has(t)||j.set(t,e),e}(t))).filter(ce),(()=>e.applyVars(V))):e.hasExpression?Mi(e.applyVars(V)):Mi(t)},getJsonWithVars:D,getStore:function(t){return B.has(t)||function(t){B.has(t)||B.set(t,Oa[t]())}(t),B.get(t)},getVariable:function(t,e){const n=V.get(t);if(n){const r=n.getType();if(r!==e)return void P(Zt(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},isDesktop:v,registerComponent:void 0,unregisterComponent:void 0}),it(Pe,{hasAction:()=>!1});const W={setState(t){throw new Error("Not implemented")},getChild(t){if(L&&L.has(t))return L.get(t);P(Zt(new Error("Missing state block with id"),{additional:{id:t}}))}};let L=null;it(_e,{registerInstance(t,e){L||(L=new Map),L.has(t)?P(Zt(new Error("Duplicate state with id"),{additional:{id:t}})):L.set(t,e)},unregisterInstance(t){null==L||L.delete(t)},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 U=null===(o=null==s?void 0:s.card)||void 0===o?void 0:o.variables;Array.isArray(U)&&U.forEach((t=>{if(t&&t.type in ei&&t.name){if(A.has(t.name))return void P(Zt(new Error("Duplicate variable"),{additional:{name:t.name}}));try{const e=ni(t.name,t.type,t.value);A.set(t.name,e),V.set(t.name,e)}catch(e){P(Zt(e,{additional:{name:t.name}}))}}}));const q=s.palette;q&&q[y].forEach((t=>{if(A.has(t.name))P(Zt(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=ni(t.name,"color",t.color);A.set(t.name,e),V.set(t.name,e)}catch(e){P(Zt(e,{additional:{name:t.name}}))}}));for(const[t,e]of C)V.has(t)||V.set(t,e);E.subscribe((t=>{if(t&&!V.has(t)){const e=C.get(t);V.set(t,e);const n=j.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const H=null===(i=null==s?void 0:s.card)||void 0===i?void 0:i.variable_triggers;Array.isArray(H)&&H.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void P(Zt(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=Ui(t.condition,{startRule:"JsonStringContents"}),o=ia(r);if(!o.length)return void P(Zt(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return R(e),e.size?new Promise((t=>{const n=E.subscribe((()=>{R(e),e.size||(n(),t())}))})):Promise.resolve()})(o).then((()=>{Wt(o.map((t=>V.get(t))).filter(ce),(()=>Ia(V,r))).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=D(t);e.log_id&&M(e)})),e=Boolean(r.value)):P(Zt(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){P(Zt(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else P(Zt(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));const G=null===(a=s.card)||void 0===a?void 0:a.states,K=G&&!b?{type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:G.map((t=>({state_id:t.state_id.toString(),div:t.div})))}:void 0;return t.$$set=t=>{"id"in t&&n(7,l=t.id),"json"in t&&n(8,s=t.json),"platform"in t&&n(9,c=t.platform),"theme"in t&&n(6,u=t.theme),"globalVariablesController"in t&&n(10,d=t.globalVariablesController),"onError"in t&&n(11,h=t.onError),"onStat"in t&&n(12,p=t.onStat),"onCustomAction"in t&&n(13,g=t.onCustomAction),"onComponent"in t&&n(14,m=t.onComponent)},t.$$.update=()=>{1048640&t.$$.dirty[0]&&("light"===u||"dark"===u?n(19,y=u):"system"===u?"undefined"!=typeof matchMedia?($||(n(20,$=matchMedia("(prefers-color-scheme: dark)")),$.addListener(_)),n(19,y=$.matches?"dark":"light")):n(19,y="light"):P(Zt(new Error("Unsupported theme")))),524288&t.$$.dirty[0]&&y&&q&&q[y].forEach((t=>{const e=V.get(t.name);e&&e.setValue(t.color)}))},[b,N,r,v,{},K,u,l,s,c,d,h,p,g,m,function(t){n(6,u=t)},function(t,e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){const n=V.get(t);n&&n.setValue(e)}},function(t){const e=V.get(t);return null==e?void 0:e.getValue()},M,y,$]}const Xa=class extends Tt{constructor(t){super(),Ot(this,t,Ka,Ha,d,{id:7,json:8,platform:9,theme:6,globalVariablesController:10,onError:11,onStat:12,onCustomAction:13,onComponent:14,setTheme:15,setVariable:16,getVariable:17,execAction:18},null,[-1,-1,-1])}get setTheme(){return this.$$.ctx[15]}get setVariable(){return this.$$.ctx[16]}get getVariable(){return this.$$.ctx[17]}get execAction(){return this.$$.ctx[18]}};function Ya(t){return new Xa({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})}(window.Ya=window.Ya||{}).Divkit=e})();
|
|
1
|
+
(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(){}t.r(e),t.d(e,{createGlobalVariablesController:()=>Ha,createVariable:()=>ri,render:()=>Qa});const r=t=>t;function o(t,e){for(const n in e)t[n]=e[n];return t}function i(t){return t()}function a(){return Object.create(null)}function l(t){t.forEach(i)}function s(t){return"function"==typeof t}let c;function u(t,e){return c||(c=document.createElement("a")),c.href=e,t===c.href}function d(t,e){return t!=t?e==e:t!==e}function h(t){return 0===Object.keys(t).length}function p(t,...e){if(null==t)return n;const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function f(t,e,n){t.$$.on_destroy.push(p(e,n))}function g(t,e,n,r){if(t){const o=m(t,e,n,r);return t[0](o)}}function m(t,e,n,r){return t[1]&&r?o(n.ctx.slice(),t[1](r(e))):n.ctx}function v(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 y(t,e,n,r,o,i){if(o){const a=m(e,n,r,i);t.p(a,o)}}function $(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 _(t){return t&&s(t.destroy)?t.destroy:n}const b="undefined"!=typeof window;let w=b?()=>window.performance.now():()=>Date.now(),x=b?t=>requestAnimationFrame(t):n;const k=new Set;function E(t){k.forEach((e=>{e.c(t)||(k.delete(e),e.f())})),0!==k.size&&x(E)}let C=!1;function A(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function V(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function j(t){const e=I("style");return function(t,e){!function(t,e){t.appendChild(e)}(t.head||t,e)}(V(t),e),e.sheet}function D(t,e){if(C){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:A(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 P(t,e,n){C&&!n?D(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function S(t){t.parentNode.removeChild(t)}function F(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function I(t){return document.createElement(t)}function N(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function z(t){return document.createTextNode(t)}function M(){return z(" ")}function J(){return z("")}function O(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function T(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function B(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]:T(t,r,e[r])}function R(t){return Array.from(t.childNodes)}function W(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 L(t,e,n,r){return W(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 U(t,e,n){return L(t,e,n,I)}function q(t,e,n){return L(t,e,n,N)}function H(t,e){return W(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}),(()=>z(e)),!0)}function G(t){return H(t," ")}function K(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function X(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}const Y=new Map;let Z,Q=0;function tt(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(", "),Q-=o,Q||x((()=>{Q||(Y.forEach((t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}})),Y.clear())})))}function et(t){Z=t}function nt(){if(!Z)throw new Error("Function called outside component initialization");return Z}function rt(t){nt().$$.on_mount.push(t)}function ot(t){nt().$$.on_destroy.push(t)}function it(t,e){return nt().$$.context.set(t,e),e}function at(t){return nt().$$.context.get(t)}function lt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const st=[],ct=[],ut=[],dt=[],ht=Promise.resolve();let pt=!1;function ft(){pt||(pt=!0,ht.then(_t))}function gt(){return ft(),ht}function mt(t){ut.push(t)}const vt=new Set;let yt,$t=0;function _t(){const t=Z;do{for(;$t<st.length;){const t=st[$t];$t++,et(t),bt(t.$$)}for(et(null),st.length=0,$t=0;ct.length;)ct.pop()();for(let t=0;t<ut.length;t+=1){const e=ut[t];vt.has(e)||(vt.add(e),e())}ut.length=0}while(st.length);for(;dt.length;)dt.pop()();pt=!1,vt.clear(),et(t)}function bt(t){if(null!==t.fragment){t.update(),l(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(mt)}}function wt(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 xt=new Set;let kt;function Et(){kt={r:0,c:[],p:kt}}function Ct(){kt.r||l(kt.c),kt=kt.p}function At(t,e){t&&t.i&&(xt.delete(t),t.i(e))}function Vt(t,e,n,r){if(t&&t.o){if(xt.has(t))return;xt.add(t),kt.c.push((()=>{xt.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const jt={duration:0};function Dt(t,e,o){let i,a,l=e(t,o),c=!1,u=0;function d(){i&&tt(t,i)}function h(){const{delay:e=0,duration:o=300,easing:s=r,tick:h=n,css:p}=l||jt;p&&(i=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=V(t),{stylesheet:p,rules:f}=Y.get(h)||function(t,e){const n={stylesheet:j(e),rules:{}};return Y.set(t,n),n}(h,t);f[d]||(f[d]=!0,p.insertRule(`@keyframes ${d} ${u}`,p.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${d} ${r}ms linear ${o}ms 1 both`,Q+=1,d}(t,0,1,o,e,s,p,u++)),h(0,1);const f=w()+e,g=f+o;a&&a.abort(),c=!0,mt((()=>wt(t,!0,"start"))),a=function(t){let e;return 0===k.size&&x(E),{promise:new Promise((n=>{k.add(e={c:t,f:n})})),abort(){k.delete(e)}}}((e=>{if(c){if(e>=g)return h(1,0),wt(t,!0,"end"),d(),c=!1;if(e>=f){const t=s((e-f)/o);h(t,1-t)}}return c}))}let p=!1;return{start(){p||(p=!0,tt(t),s(l)?(l=l(),(yt||(yt=Promise.resolve(),yt.then((()=>{yt=null}))),yt).then(h)):h())},invalidate(){p=!1},end(){c&&(d(),c=!1)}}}const Pt="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function St(t,e){Vt(t,1,1,(()=>{e.delete(t.key)}))}function Ft(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 It;function Nt(t){t&&t.c()}function zt(t,e){t&&t.l(e)}function Mt(t,e,n,r){const{fragment:o,on_mount:a,on_destroy:c,after_update:u}=t.$$;o&&o.m(e,n),r||mt((()=>{const e=a.map(i).filter(s);c?c.push(...e):l(e),t.$$.on_mount=[]})),u.forEach(mt)}function Jt(t,e){const n=t.$$;null!==n.fragment&&(l(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ot(t,e,r,o,i,s,c,u=[-1]){const d=Z;et(t);const h=t.$$={fragment:null,ctx:null,props:s,update:n,not_equal:i,bound:a(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:a(),dirty:u,skip_bound:!1,root:e.target||d.$$.root};c&&c(h.root);let p=!1;if(h.ctx=r?r(t,e.props||{},((e,n,...r)=>{const o=r.length?r[0]:n;return h.ctx&&i(h.ctx[e],h.ctx[e]=o)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](o),p&&function(t,e){-1===t.$$.dirty[0]&&(st.push(t),ft(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],h.update(),p=!0,l(h.before_update),h.fragment=!!o&&o(h.ctx),e.target){if(e.hydrate){C=!0;const t=R(e.target);h.fragment&&h.fragment.l(t),t.forEach(S)}else h.fragment&&h.fragment.c();e.intro&&At(t.$$.fragment),Mt(t,e.target,e.anchor,e.customElement),C=!1,_t()}et(d)}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&&(It=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(i).filter(s);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){l(this.$$.on_disconnect)}$destroy(){Jt(this,1),this.$destroy=n}$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&&!h(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class Tt{$destroy(){Jt(this,1),this.$destroy=n}$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&&!h(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Bt=[];function Rt(t,e=n){let r;const o=new Set;function i(e){if(i=e,((n=t)!=n?i==i:n!==i||n&&"object"==typeof n||"function"==typeof n)&&(t=e,r)){const e=!Bt.length;for(const e of o)e[1](),Bt.push(e,t);if(e){for(let t=0;t<Bt.length;t+=2)Bt[t][0](Bt[t+1]);Bt.length=0}}var n,i}return{set:i,update:function(e){i(e(t))},subscribe:function(a,l=n){const s=[a,l];return o.add(s),1===o.size&&(r=e(i)||n),a(t),()=>{o.delete(s),0===o.size&&(r(),r=null)}}}}function Wt(t,e,r){const o=!Array.isArray(t),i=o?[t]:t,a=e.length<2;return{subscribe:Rt(r,(t=>{let r=!1;const c=[];let u=0,d=n;const h=()=>{if(u)return;d();const r=e(o?c[0]:c,t);a?t(r):d=s(r)?r:n},f=i.map(((t,e)=>p(t,(t=>{c[e]=t,u&=~(1<<e),r&&h()}),(()=>{u|=1<<e}))));return r=!0,h(),function(){l(f),d()}})).subscribe}}const Lt="divkit-b023c",Ut="divkit-bd259",qt="divkit-d9099",Ht="divkit-c016b",Gt="divkit-ee112",Kt="divkit-aa145",Xt="divkit-f0cba",Yt=Symbol("root");function Zt(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 Qt={text:"divkit-d9b0e",text_halign_left:"divkit-a4cb7",text_halign_center:"divkit-e1659",text_halign_right:"divkit-ea280",text_valign_top:"divkit-d8ce0",text_valign_center:"divkit-ef58e",text_valign_bottom:"divkit-fe8ed",text_valign_baseline:"divkit-e0c6c",text__inner:"divkit-b8528",text_singleline:"divkit-ef11c",text_truncate_none:"divkit-c6ea1",text_multiline:"divkit-ee8e3",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002"},te={outer:"divkit-d65a7","outer_hide-on-transition-in":"divkit-a6d12","outer_halign-self_start":"divkit-cc452","outer_halign-self_center":"divkit-b8331","outer_halign-self_end":"divkit-c573c","outer_halign-self_stretch":"divkit-dcc74","outer_valign-self_start":"divkit-e8077","outer_valign-self_center":"divkit-d40a7","outer_valign-self_end":"divkit-e9f84","outer_valign-self_stretch":"divkit-b7aa3","outer_parent-flex_vertical":"divkit-c143f","outer_parent-flex_horizontal":"divkit-ef302","outer_valign-self_baseline":"divkit-e72b5",outer_width_content:"divkit-b8f4d",outer_height_content:"divkit-faa66","outer_width-constrained":"divkit-d3211","outer_height-constrained":"divkit-a5256","outer_parent-overlap":"divkit-dab2d","outer_parent-overlap-absolute":"divkit-d43fb","outer_scroll-snap_center":"divkit-d9e38","outer_scroll-snap_start":"divkit-efd1e",outer__border:"divkit-d4056",outer_visibility_invisible:"divkit-f018b",outer_visibility_gone:"divkit-e784b","outer_has-action-animation":"divkit-f4980"};function ee(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 ne(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 re(t){let e=ne(t);return"0"===e&&(e+="em"),e}function oe(t,e){for(;t.length<e;)t="0"+t;return t}function ie(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=le(t);return r?(r.a*=e,ae(r)):n}function ae(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>oe(Math.round(t).toString(16),2))).join("")):"rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat((t.a/255).toFixed(2),")")}function le(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 se(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 ce=Boolean;function ue(t){if(1===t.length&&"solid"===t[0].type)return{color:ie(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=ie(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(ce);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>ie(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:pe(t.bg.scale),pos:fe(t.bg),image:'url("'+se(n)+'")'}}({bg:t}):"radial_gradient"===t.type?function(t){var e;if(!Array.isArray(null===(e=t.bg)||void 0===e?void 0:e.colors))return;const n=t.bg.colors.filter(ce);if(!n.length)return;const r=t.bg.radius;let o;r&&"object"==typeof r&&"type"in r&&void 0!==r.value&&("fixed"===r.type?o=re(r.value):"relative"===r.type&&(o=de[r.value]));const i=he(t.bg.center_x),a=he(t.bg.center_y);return{size:void 0,pos:void 0,image:"radial-gradient("+"circle ".concat(o||"farthest-corner"," at ").concat(i," ").concat(a)+","+n.map((t=>ie(t))).join(",")+")"}}({bg:t}):void 0)).filter(ce).reverse().reduce((function(t,e){return t.image.push(e.image),t.size.push(e.size||"auto"),t.position.push(e.pos||"50% 50%"),t}),{image:[],size:[],position:[]});return{image:e.image.join(","),size:e.size.join(","),position:e.position.join(",")}}const de={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function he(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return re(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function pe(t){return"fill"!==t&&t?"fit"===t?"contain":void 0:"cover"}function fe(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 ge(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}const me=new Set(["http","https","tel","mailto","intent"]);function ve(t){return me.has(t)}function ye(t,e){e&&t.push(e)}function $e(t,e,n){const r=[];ye(r,e[t]);for(const o in n)if(n.hasOwnProperty(o)){const i=n[o];i&&ye(r,e["".concat(t,"_").concat(o)+("string"==typeof i?"_".concat(i):"")])}return r.join(" ")}const _e=Symbol("state");function be(t){return ne(t.top||0)+" "+ne(t.right||0)+" "+ne(t.bottom||0)+" "+ne(t.left||0)}function we(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function xe(t){return we(t)&&t>=0}function ke(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]&&!xe(n[t]))return e;return be(t)}function Ee(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const Ce=Object.prototype.hasOwnProperty;function Ae(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(!Ce.call(e,o)||!Ae(t[o],e[o]))return!1}return!0}function Ve(t,e){return Ae(t,e)?e:t}function je(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function De(t,e){const n=Number(t);return isNaN(n)?e:n}function Pe(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Pe(t))})):e.push(t),e}function Se(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=>ne((t||e)/n*10))).join(" ")}function Fe(){}const Ie=Symbol("action");function Ne(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function ze(t){var e;let n,r,i,a,c,u,d,h;const p=t[19].default,f=g(p,t,t[18],null);let m=[{class:r=t[2]+(t[9]?" ".concat(t[6]?Ut:qt," ").concat(Ht):"")+" "+(null!==(e=t[1])&&void 0!==e&&e.length?Xt:"")},{style:t[3]},{role:i=t[9]?"button":null},{tabindex:a=t[9]?0:null},t[4]],b={};for(let t=0;t<m.length;t+=1)b=o(b,m[t]);return{c(){n=I("span"),f&&f.c(),this.h()},l(t){n=U(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=R(n);f&&f.l(e),e.forEach(S),this.h()},h(){B(n,b)},m(e,r){P(e,n,r),f&&f.m(n,null),u=!0,d||(h=[_(c=t[5].call(null,n)),O(n,"click",(function(){s(t[9]?t[10]:null)&&(t[9]?t[10]:null).apply(this,arguments)})),O(n,"click",t[21]),O(n,"dblclick",(function(){var e,n;s(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),O(n,"touchstart",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),O(n,"touchmove",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),O(n,"touchend",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),O(n,"touchcancel",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),O(n,"keydown",t[15])],d=!0)},p(e,o){var l;t=e,f&&f.p&&(!u||262144&o)&&y(f,p,t,t[18],u?v(p,t[18],o,null):$(t[18]),null),B(n,b=Ft(m,[(!u||582&o&&r!==(r=t[2]+(t[9]?" ".concat(t[6]?Ut:qt," ").concat(Ht):"")+" "+(null!==(l=t[1])&&void 0!==l&&l.length?Xt:"")))&&{class:r},(!u||8&o)&&{style:t[3]},(!u||512&o&&i!==(i=t[9]?"button":null))&&{role:i},(!u||512&o&&a!==(a=t[9]?0:null))&&{tabindex:a},16&o&&t[4]]))},i(t){u||(At(f,t),u=!0)},o(t){Vt(f,t),u=!1},d(t){t&&S(n),f&&f.d(t),d=!1,l(h)}}}function Me(t){var e;let n,r,i,a,c,u;const d=t[19].default,h=g(d,t,t[18],null);let p=[{href:t[7]},{target:t[8]},{style:t[3]},{class:r=t[2]+" "+(t[6]?Ut:qt)+" "+(null!==(e=t[1])&&void 0!==e&&e.length?Xt:"")},t[4]],f={};for(let t=0;t<p.length;t+=1)f=o(f,p[t]);return{c(){n=I("a"),h&&h.c(),this.h()},l(t){n=U(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=R(n);h&&h.l(e),e.forEach(S),this.h()},h(){B(n,f)},m(e,r){P(e,n,r),h&&h.m(n,null),a=!0,c||(u=[_(i=t[5].call(null,n)),O(n,"click",t[10]),O(n,"click",t[20]),O(n,"dblclick",(function(){var e,n;s(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),O(n,"touchstart",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),O(n,"touchmove",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),O(n,"touchend",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),O(n,"touchcancel",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),O(n,"keydown",t[15])],c=!0)},p(e,o){var i;t=e,h&&h.p&&(!a||262144&o)&&y(h,d,t,t[18],a?v(d,t[18],o,null):$(t[18]),null),B(n,f=Ft(p,[(!a||128&o)&&{href:t[7]},(!a||256&o)&&{target:t[8]},(!a||8&o)&&{style:t[3]},(!a||70&o&&r!==(r=t[2]+" "+(t[6]?Ut:qt)+" "+(null!==(i=t[1])&&void 0!==i&&i.length?Xt:"")))&&{class:r},16&o&&t[4]]))},i(t){a||(At(h,t),a=!0)},o(t){Vt(h,t),a=!1},d(t){t&&S(n),h&&h.d(t),c=!1,l(u)}}}function Je(t){let e,n,r,o;const i=[Me,ze],a=[];function l(t,e){return t[7]?0:1}return e=l(t),n=a[e]=i[e](t),{c(){n.c(),r=J()},l(t){n.l(t),r=J()},m(t,n){a[e].m(t,n),P(t,r,n),o=!0},p(t,o){let[s]=o,c=e;e=l(t),e===c?a[e].p(t,s):(Et(),Vt(a[c],1,1,(()=>{a[c]=null})),Ct(),n=a[e],n?n.p(t,s):(n=a[e]=i[e](t),n.c()),At(n,1),n.m(r.parentNode,r))},i(t){o||(At(n),o=!0)},o(t){Vt(n),o=!1},d(t){a[e].d(t),t&&S(r)}}}function Oe(t,e,n){let{$$slots:r={},$$scope:o}=e,{actions:i}=e,{doubleTapActions:a}=e,{longTapActions:l}=e,{cls:s=""}=e,{style:c=null}=e,{attrs:u}=e,{use:d=Fe}=e,{customAction:h=null}=e,{isNativeActionAnimation:p=!0}=e;const f=at(Yt),g=at(Ie);it(Ie,{hasAction:()=>Boolean(g.hasAction()||(null==i?void 0:i.length))});let m,v="",y=-1,$=null,_=!1;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){v=e,m=i[t].target||void 0;break}}Array.isArray(i)&&(null==i?void 0:i.length)&&g.hasAction()&&(v="",f.logError(Zt(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:i}})));let b=Boolean(h);return v&&!ve(ge(v))&&(v="",b=!0),t.$$set=t=>{"actions"in t&&n(16,i=t.actions),"doubleTapActions"in t&&n(0,a=t.doubleTapActions),"longTapActions"in t&&n(1,l=t.longTapActions),"cls"in t&&n(2,s=t.cls),"style"in t&&n(3,c=t.style),"attrs"in t&&n(4,u=t.attrs),"use"in t&&n(5,d=t.use),"customAction"in t&&n(17,h=t.customAction),"isNativeActionAnimation"in t&&n(6,p=t.isNativeActionAnimation),"$$scope"in t&&n(18,o=t.$$scope)},[a,l,s,c,u,d,p,v,m,b,async function(t){g.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==h?void 0:h(t))?t.preventDefault():i&&(i.some((t=>{const e=null==t?void 0:t.url;if(!e)return!1;const n=ge(e);return n&&!ve(n)}))&&t.preventDefault(),f.execAnyActions(i)))},function(t){g.hasAction()||void 0!==t.button&&0!==t.button||f.execAnyActions(a,!0)},function(t){t.touches.length>1||($=Ne(t),_=!1,y=Date.now())},function(t){if(!$)return;const e=Ne(t);(Math.abs($.x-e.x)>8||Math.abs($.y-e.y)>8)&&(_=!0)},function(){!$||y<0||(!_&&Date.now()-y>=400&&f.execAnyActions(l,!0),$=null,y=-1)},function(t){t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(i)&&i.length&&(f.execAnyActions(i),t.preventDefault())},i,h,o,r,function(e){lt.call(this,t,e)},function(e){lt.call(this,t,e)}]}const Te=class extends Tt{constructor(t){super(),Ot(this,t,Oe,Je,d,{actions:16,doubleTapActions:0,longTapActions:1,cls:2,style:3,attrs:4,use:5,customAction:17,isNativeActionAnimation:6})}},Be="divkit-bf253",Re="divkit-b921d";function We(t){return we(t)&&t>0}function Le(t,e){return t.map((t=>{if("blur"===(null==t?void 0:t.type)){if(We(t.radius))return"blur(".concat(re(t.radius/2),")")}else e(Zt(new Error("Unknown filter"),{level:"warn",additional:{filter:null==t?void 0:t.type}}))})).filter(Boolean).join(" ")}function Ue(t,e,n){const r=t.slice();return r[5]=e[n],r}function qe(t){let e,n,r;return{c(){e=I("span"),this.h()},l(t){e=U(t,"SPAN",{class:!0,style:!0}),R(e).forEach(S),this.h()},h(){T(e,"class",n=Re),T(e,"style",r=ee(t[5].style))},m(t,n){P(t,e,n)},p(t,n){2&n&&r!==(r=ee(t[5].style))&&T(e,"style",r)},d(t){t&&S(e)}}}function He(t){let e,n,r,o,i,a;return{c(){e=I("img"),this.h()},l(t){e=U(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){u(e.src,n=t[5].image_url)||T(e,"src",n),T(e,"alt",""),T(e,"aria-hidden","true"),T(e,"loading","lazy"),T(e,"decoding","async"),T(e,"class",r=Re),T(e,"style",o=ee(t[5].style))},m(n,r){P(n,e,r),i||(a=O(e,"error",t[2]),i=!0)},p(t,r){2&r&&!u(e.src,n=t[5].image_url)&&T(e,"src",n),2&r&&o!==(o=ee(t[5].style))&&T(e,"style",o)},d(t){t&&S(e),i=!1,a()}}}function Ge(t){let e;function n(t,e){return t[5].image_url?He:qe}let r=n(t),o=r(t);return{c(){o.c(),e=J()},l(t){o.l(t),e=J()},m(t,n){o.m(t,n),P(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&&S(e)}}}function Ke(t){let e,r,o=t[1],i=[];for(let e=0;e<o.length;e+=1)i[e]=Ge(Ue(t,o,e));return{c(){e=I("span");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=U(t,"SPAN",{class:!0});var n=R(e);for(let t=0;t<i.length;t+=1)i[t].l(n);n.forEach(S),this.h()},h(){T(e,"class",r=Be+(t[0]?" divkit-dcad7":"")),X(e,"border-radius",t[0],!1)},m(t,n){P(t,e,n);for(let t=0;t<i.length;t+=1)i[t].m(e,null)},p(t,n){let[a]=n;if(6&a){let n;for(o=t[1],n=0;n<o.length;n+=1){const r=Ue(t,o,n);i[n]?i[n].p(r,a):(i[n]=Ge(r),i[n].c(),i[n].m(e,null))}for(;n<i.length;n+=1)i[n].d(1);i.length=o.length}1&a&&r!==(r=Be+(t[0]?" divkit-dcad7":""))&&T(e,"class",r),1&a&&X(e,"border-radius",t[0],!1)},i:n,o:n,d(t){t&&S(e),F(i,t)}}}function Xe(t,e,n){let r,{background:o=[]}=e,{radius:i=""}=e;const a=at(Yt);return t.$$set=t=>{"background"in t&&n(3,o=t.background),"radius"in t&&n(0,i=t.radius)},t.$$.update=()=>{8&t.$$.dirty&&n(1,r=o.map((t=>{const e={},n={style:e};if("nine_patch_image"===t.type&&t.insets)e["border-image"]='url("'.concat(t.image_url,'") ').concat(t.insets.top||0," ").concat(t.insets.right||0," ").concat(t.insets.bottom||0," ").concat(t.insets.left||0," fill"),e["border-image-width"]="auto";else{const r=ue([t]);"solid"===t.type&&(e["background-color"]=r.color),"gradient"===t.type&&(e["background-image"]=r.image),"image"===t.type&&(e.opacity=Number(t.alpha),n.image_url=t.image_url,e["object-fit"]=r.size,e["object-position"]=r.position,Array.isArray(t.filters)&&t.filters.length&&(e.filter=Le(t.filters,a.logError)))}return n})))},[i,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add("divkit-cd613")},o]}const Ye=class extends Tt{constructor(t){super(),Ot(this,t,Xe,Ke,d,{background:3,radius:0})}};function Ze(t){let e,n;return e=new Te({props:{use:t[32],cls:t[0]+" "+$e("outer",te,t[15]),style:ee(t[13]),actions:t[10],doubleTapActions:t[11],longTapActions:t[12],attrs:t[6],isNativeActionAnimation:!t[4].length||rn(t[4]),$$slots:{default:[en]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};32769&n[0]&&(r.cls=t[0]+" "+$e("outer",te,t[15])),8192&n[0]&&(r.style=ee(t[13])),1024&n[0]&&(r.actions=t[10]),2048&n[0]&&(r.doubleTapActions=t[11]),4096&n[0]&&(r.longTapActions=t[12]),64&n[0]&&(r.attrs=t[6]),16&n[0]&&(r.isNativeActionAnimation=!t[4].length||rn(t[4])),174&n[0]|32768&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function Qe(t){let e,n;return e=new Ye({props:{background:t[5],radius:t[2]}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.background=t[5]),4&n[0]&&(r.radius=t[2]),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function tn(t){let e,n,r;return{c(){e=I("span"),this.h()},l(t){e=U(t,"SPAN",{class:!0,style:!0}),R(e).forEach(S),this.h()},h(){T(e,"class",n=te.outer__border),T(e,"style",r=ee(t[1]))},m(t,n){P(t,e,n)},p(t,n){2&n[0]&&r!==(r=ee(t[1]))&&T(e,"style",r)},d(t){t&&S(e)}}}function en(t){let e,n,r,o=t[3]&&Qe(t);const i=t[107].default,a=g(i,t,t[108],null);let l=t[7]&&tn(t);return{c(){o&&o.c(),e=J(),a&&a.c(),l&&l.c(),n=J()},l(t){o&&o.l(t),e=J(),a&&a.l(t),l&&l.l(t),n=J()},m(t,i){o&&o.m(t,i),P(t,e,i),a&&a.m(t,i),l&&l.m(t,i),P(t,n,i),r=!0},p(t,s){t[3]?o?(o.p(t,s),8&s[0]&&At(o,1)):(o=Qe(t),o.c(),At(o,1),o.m(e.parentNode,e)):o&&(Et(),Vt(o,1,1,(()=>{o=null})),Ct()),a&&a.p&&(!r||32768&s[3])&&y(a,i,t,t[108],r?v(i,t[108],s,null):$(t[108]),null),t[7]?l?l.p(t,s):(l=tn(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(t){r||(At(o),At(a,t),r=!0)},o(t){Vt(o),Vt(a,t),r=!1},d(t){o&&o.d(t),t&&S(e),a&&a.d(t),l&&l.d(t),t&&S(n)}}}function nn(t){let e,n,r=!t[8]&&!t[9]&&Ze(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){t[8]||t[9]?r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct()):r?(r.p(t,n),768&n[0]&&At(r,1)):(r=Ze(t),r.c(),At(r,1),r.m(e.parentNode,e))},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}function rn(t){return t.some((t=>"native"===t.name))}function on(t,e,r){let o,i,a,l,s,c,u,d,h,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,j,D,P,S,F,I,N,z,M,J,O,T,B,R,W,L,U,q=n,H=n,G=n,K=n,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n,it=n,lt=n,st=n,ct=n;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())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>ct()));let{$$slots:ut={},$$scope:dt}=e;var ht,pt,ft,mt,vt,yt;let{json:$t={}}=e,{origJson:_t}=e,{templateContext:bt}=e,{cls:wt=""}=e,{style:xt}=e,{layoutParams:kt={}}=e,{customDescription:Et=!1}=e,{customPaddings:Ct=!1}=e,{customActions:At=""}=e,{forceWidth:Vt=!1}=e,{forceHeight:jt=!1}=e,{additionalPaddings:Dt=null}=e;const Pt={left:"start",center:"center",right:"end"},St={top:"start",center:"center",bottom:"end",baseline:"baseline"},Ft=at(Yt),It=at(_e);let Nt,zt,Mt,Jt,Ot,Tt,Bt,Rt={},Wt={},Lt=!1,Ut=1,qt="transparent",Ht=0,Gt={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},Kt="",Xt=null,Qt="",te={},ee=0,oe=0,ae=0,le=!1,se=!1,ce={},de=0,he=0,pe=0,fe=!1,me=!1,ye=1;const $e=kt.fakeElement?[]:$t.transition_triggers||["state_change","visibility_change"],we=-1!==$e.indexOf("state_change")&&$t.id,Ce=-1!==$e.indexOf("visibility_change")&&$t.id;let Ae,Fe,Ie,Ne,ze,Me,Je,Oe=[],Te=[],Be=[],Re=[],We="";function Le(t){const e=De(t.start_value,1),n=De(t.end_value,1),o=Ee(t.start_delay,0),i=Ee(t.duration,300),a=je(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return r(76,Ne=e),r(77,ze=n),"opacity ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"scale":return r(78,Me=e),r(79,Je=n),"transform ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"native":case"no_animation":return"";default:return Ft.logError(Zt(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}let Ue,qe,He=!1,Ge="visible",Ke=0,Xe=0;return t.$$set=t=>{"json"in t&&r(33,$t=t.json),"origJson"in t&&r(34,_t=t.origJson),"templateContext"in t&&r(35,bt=t.templateContext),"cls"in t&&r(0,wt=t.cls),"style"in t&&r(36,xt=t.style),"layoutParams"in t&&r(37,kt=t.layoutParams),"customDescription"in t&&r(38,Et=t.customDescription),"customPaddings"in t&&r(39,Ct=t.customPaddings),"customActions"in t&&r(40,At=t.customActions),"forceWidth"in t&&r(41,Vt=t.forceWidth),"forceHeight"in t&&r(42,jt=t.forceHeight),"additionalPaddings"in t&&r(43,Dt=t.additionalPaddings),"$$scope"in t&&r(108,dt=t.$$scope)},t.$$.update=()=>{if(4&t.$$.dirty[1]&&(r(31,o=Ft.getDerivedFromVars($t.border)),ct(),ct=p(o,(t=>r(106,U=t)))),2&t.$$.dirty[0]|16769024&t.$$.dirty[1]|8192&t.$$.dirty[3]){let t={},e={},n=!1,o="";if(U){if(U.has_shadow){const e=U.shadow;t["box-shadow"]=e?ne((null===r(45,pt=null===r(44,ht=e.offset)||void 0===ht?void 0:ht.x)||void 0===pt?void 0:pt.value)||0)+" "+ne((null===r(47,mt=null===r(46,ft=e.offset)||void 0===ft?void 0:ft.y)||void 0===mt?void 0:mt.value)||0)+" "+ne(null!==r(48,vt=e.blur)&&void 0!==vt?vt:2)+" "+ie(e.color||"#000000",null!==r(49,yt=e.alpha)&&void 0!==yt?yt:.19):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(U.stroke&&(n=!0,r(51,Ut=Ee(U.stroke.width,Ut)),r(52,qt=ie(U.stroke.color,1,qt)),e.border="".concat(ne(Ut)," solid ").concat(qt)),U.corners_radius?(r(54,Gt=function(t,e){const n=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<n.length;++t)if(n[t]&&!xe(n[t]))return e;return t}(U.corners_radius,Gt)),e["border-radius"]=t["border-radius"]=Se(Gt)):U.corner_radius&&(r(53,Ht=Ee(U.corner_radius,Ht)),r(54,Gt={"top-left":Ht,"top-right":Ht,"bottom-right":Ht,"bottom-left":Ht}),e["border-radius"]=t["border-radius"]=ne(Ht)),n&&Ut&&(U.corners_radius||U.corner_radius)){let t=Object.assign({},Gt);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+Ut/2})),o=Se(t)}}r(50,Rt=Ve(t,Rt)),r(1,Wt=Ve(e,Wt)),r(7,Lt=n),r(2,Kt=o)}if(4&t.$$.dirty[1]&&(r(30,i=Ft.getDerivedFromVars($t.paddings)),st(),st=p(i,(t=>r(105,L=t)))),16777472&t.$$.dirty[1]|4096&t.$$.dirty[3]&&r(55,Xt=function(t,e){if(!t)return e;const n=["top","right","bottom","left"];for(let r=0;r<n.length;++r)if(t[n[r]]&&!xe(t[n[r]]))return e;return t}(L&&!Ct?L:void 0,Xt)),16781312&t.$$.dirty[1]&&r(87,a=be(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left"].forEach((r=>{const o=t[r];o&&(n[r]=o);const i=e[r];i&&(n[r]=(n[r]||0)+i)})),n}(Xt,Dt))),4&t.$$.dirty[1]&&(r(29,l=Ft.getDerivedFromVars($t.margins)),it(),it=p(l,(t=>r(103,R=t)))),33554432&t.$$.dirty[1]|1024&t.$$.dirty[3]&&r(56,Qt=ke(R,Qt)),4&t.$$.dirty[1]&&(r(28,s=Ft.getDerivedFromVars($t.width)),rt(),rt=p(s,(t=>r(101,T=t)))),4&t.$$.dirty[1]&&(r(27,c=Ft.getDerivedFromVars($t.alignment_horizontal)),lt(),lt=p(c,(t=>r(104,W=t)))),335545408&t.$$.dirty[1]|3328&t.$$.dirty[3]){let t,e,n={},o=0,i=0,a=!1,l=!1;const s=null==T?void 0:T.type;if("fixed"===s?(r(59,ee=Ee(null==T?void 0:T.value,ee)),e=ne(ee)):"wrap_content"===s||!kt.overlapParent&&"match_parent"===s&&kt.parentHorizontalWrapContent?(t="content",("wrap_content"===s&&(null==T?void 0:T.constrained)||"match_parent"===s&&kt.parentHorizontalWrapContent)&&(n["width-constrained"]=!0,i=1),"match_parent"===s&&Ft.logError(Zt(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))):(t="parent","vertical"===kt.parentContainerOrientation&&kt.parentContainerWrap&&(l=!0,Ft.logError(Zt(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===kt.parentLayoutOrientation?e="calc(100% - ".concat(re(((null==R?void 0:R.left)||0)+((null==R?void 0:R.right)||0)),")"):"horizontal"===kt.parentContainerOrientation&&(o=T&&"weight"in T&&T.weight||1,kt.parentContainerWrap&&(a=!0))),"content"===t&&Vt&&(t="parent",Ft.logError(Zt(new Error("Incorrect usage of width with value 'wrap_content'"),{level:"warn"}))),"parent"===t)n["halign-self"]="stretch";else{const t=W;n["halign-self"]="left"===t||"center"===t||"right"===t?Pt[t]:kt.parentHAlign||"start"}t&&(n.width=t),r(58,Mt=e),r(60,oe=o),r(61,ae=i),r(57,te=Ve(n,te)),r(62,le=a),r(8,se=l)}if(4&t.$$.dirty[1]&&(r(26,u=Ft.getDerivedFromVars($t.height)),nt(),nt=p(u,(t=>r(100,O=t)))),4&t.$$.dirty[1]&&(r(25,d=Ft.getDerivedFromVars($t.alignment_vertical)),ot(),ot=p(d,(t=>r(102,B=t)))),2112&t.$$.dirty[1]|10&t.$$.dirty[2]|1664&t.$$.dirty[3]){let t,e,n={},o=0,i=0,a=!1,l=!1;const s=null==O?void 0:O.type;if("fixed"===s?(r(65,de=Ee(null==O?void 0:O.value,de)),e=ne(de)):"match_parent"!==s||!kt.overlapParent&&kt.parentVerticalWrapContent?(t="content",("wrap_content"===s&&(null==O?void 0:O.constrained)||"match_parent"===s&&kt.parentVerticalWrapContent)&&(n["height-constrained"]=!0,i=1),"match_parent"===s&&Ft.logError(Zt(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))):(t="parent","horizontal"===kt.parentContainerOrientation&&kt.parentContainerWrap&&(l=!0,Ft.logError(Zt(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===kt.parentLayoutOrientation?e="calc(100% - ".concat(re(((null==R?void 0:R.top)||0)+((null==R?void 0:R.bottom)||0)),")"):"vertical"===kt.parentContainerOrientation&&(o=(null==O?void 0:O.weight)||1,kt.parentContainerWrap&&(a=!0))),"content"===t&&jt&&(t="parent",Ft.logError(Zt(new Error("Incorrect usage of height with value 'wrap_content'"),{level:"warn"}))),"parent"===t)n["valign-self"]="stretch";else{const t=B;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===kt.parentContainerOrientation?n["valign-self"]=St[t]:n["valign-self"]=kt.parentVAlign||"start"}t&&(n.height=t),r(64,Jt=e),r(66,he=o),r(67,pe=i),r(63,ce=Ve(n,ce)),r(68,fe=a),r(9,me=l)}var e,n;if(64&t.$$.dirty[1]&&r(90,h=!!kt.overlapParent||void 0),64&t.$$.dirty[1]|384&t.$$.dirty[3]&&r(89,f=kt.overlapParent&&(!T||"match_parent"===T.type)&&"match_parent"===(null==O?void 0:O.type)),64&t.$$.dirty[1]&&r(88,g=kt.gridArea?"".concat(kt.gridArea.y+1,"/").concat(kt.gridArea.x+1,"/span ").concat(kt.gridArea.rowSpan,"/span ").concat(kt.gridArea.colSpan):void 0),4&t.$$.dirty[1]&&(r(24,m=Ft.getDerivedFromVars($t.alpha)),et(),et=p(m,(t=>r(99,J=t)))),128&t.$$.dirty[2]|64&t.$$.dirty[3]&&(r(69,(n=ye,ye=!xe(e=J)||void 0===e||e>1?n:Number(e))),r(70,Ot=1===ye?void 0:ye)),4&t.$$.dirty[1]&&(r(23,v=Ft.getDerivedFromVars($t.accessibility)),tt(),tt=p(v,(t=>r(98,M=t)))),128&t.$$.dirty[1]|32&t.$$.dirty[3]&&(r(6,zt=void 0),M&&!Et&&M.description&&(r(6,zt={}),r(6,zt["aria-label"]=M.description,zt))),4&t.$$.dirty[1]&&(r(22,y=Ft.getDerivedFromVars($t.background)),Q(),Q=p(y,(t=>r(5,z=t)))),44&t.$$.dirty[0]&&(r(71,Tt={}),r(3,Bt=!1),z&&(r(3,Bt=z.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(Kt)),!Bt))){const t=ue(z);r(71,Tt["background-color"]=t.color,Tt),r(71,Tt["background-image"]=t.image,Tt),r(71,Tt["background-size"]=t.size,Tt),r(71,Tt["background-position"]=t.position,Tt),r(71,Tt["background-repeat"]="no-repeat",Tt)}if(4&t.$$.dirty[1]&&(r(72,Ae=void 0),we&&$t.transition_in&&Ft.isRunning("stateChange")&&r(72,Ae=!0)),4&t.$$.dirty[1]&&(r(74,Ie=void 0),we&&$t.transition_change&&Ft.isRunning("stateChange")&&It.hasTransitionChange($t.id)&&r(74,Ie=!0)),4&t.$$.dirty[1]&&(r(21,$=Ft.getDerivedFromVars($t.action)),Y(),Y=p($,(t=>r(96,I=t)))),4&t.$$.dirty[1]&&(r(20,_=Ft.getDerivedFromVars($t.actions)),Z(),Z=p(_,(t=>r(97,N=t)))),4&t.$$.dirty[1]&&(r(19,b=Ft.getDerivedFromVars($t.doubletap_actions)),X(),X=p(b,(t=>r(95,F=t)))),4&t.$$.dirty[1]&&(r(18,w=Ft.getDerivedFromVars($t.longtap_actions)),K(),K=p(w,(t=>r(94,S=t)))),576&t.$$.dirty[1]|30&t.$$.dirty[3]){let t=N||I&&[I]||[],e=F||[],n=S||[];kt.fakeElement?(t=[],e=[],n=[]):(Array.isArray(t)||(t=[],Ft.logError(Zt(new Error("Actions should be array")))),Array.isArray(e)||(e=[],Ft.logError(Zt(new Error("DoubleTapActions should be array")))),Array.isArray(n)||(n=[],Ft.logError(Zt(new Error("LongTapActions should be array"))))),(t.length||e.length||n.length)&&At&&(t=[],e=[],n=[],Ft.logError(Zt(new Error('Cannot use action on component "'.concat(At,'"'))))),r(10,Oe=t),r(11,Te=e),r(12,Be=n)}if(4&t.$$.dirty[1]&&(r(17,x=Ft.getDerivedFromVars($t.action_animation)),G(),G=p(x,(t=>r(93,P=t)))),16&t.$$.dirty[0]|1&t.$$.dirty[3]&&P&&(r(4,Re=Pe(P)),r(75,We=Re.map(Le).filter(Boolean).join(", "))),4&t.$$.dirty[1]&&(r(16,k=Ft.getDerivedFromVars($t.visibility)),H(),H=p(k,(t=>r(92,D=t)))),1074528256&t.$$.dirty[2]){const t=Ge,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(D,Ge);t!==e&&(!He||"visible"!==Ge&&"visible"!==e?r(81,Ge=e):async function(t){r(81,Ge=t);const e="visible"===t?"in":"out",n="in"===e?$t.transition_in:$t.transition_out;Ce&&n&&(await gt(),"in"===e&&r(73,Fe=!0),It.runVisibilityTransition(Object.assign(Object.assign({},$t),{visibility:"visible"}),bt,n,Nt,e).then((()=>{"in"===e&&r(73,Fe=!1)})).catch((t=>{throw"in"===e&&r(73,Fe=!1),t})))}(e)),He||r(80,He=!0)}if(67108928&t.$$.dirty[1]|403192834&t.$$.dirty[2]&&r(15,E=Object.assign(Object.assign(Object.assign({},te),ce),{"parent-overlap":h,"parent-overlap-absolute":f,"scroll-snap":kt.scrollSnap,"hide-on-transition-in":Ae||Fe||Ie,visibility:Ge,"has-action-animation":Boolean(We),"parent-flex":kt.parentContainerOrientation||void 0})),4&t.$$.dirty[1]&&(r(14,C=Ft.getDerivedFromVars($t.transform)),q(),q=p(C,(t=>r(91,j=t)))),540016640&t.$$.dirty[2]&&j&&void 0!==j.rotation){const t=j.pivot_x||{type:"pivot-percentage",value:50};r(82,Ke=De(t.value,Ke));const e="pivot-fixed"===t.type?ne(Ke):"".concat(Ke,"%"),n=j.pivot_y||{type:"pivot-percentage",value:50};r(83,Xe=De(n.value,Xe));const o="pivot-fixed"===n.type?ne(Xe):"".concat(Xe,"%");r(84,Ue="".concat(e," ").concat(o)),r(85,qe="rotate(".concat(j.rotation,"deg)"))}536870912&t.$$.dirty[1]|81&t.$$.dirty[2]&&r(86,A=le||fe?"100%":oe||he?0:void 0),1778909216&t.$$.dirty[1]|130278196&t.$$.dirty[2]&&r(13,V=Object.assign(Object.assign(Object.assign(Object.assign({},xt),Tt),Rt),{width:Mt,height:Jt,"grid-area":g,padding:a,margin:Qt,opacity:Ot,transition:We,"transform-origin":Ue,transform:qe,"flex-grow":oe||he||void 0,"flex-shrink":ae||pe?1:void 0,"flex-basis":A,"--divkit-animation-opacity-start":Ne,"--divkit-animation-opacity-end":ze,"--divkit-animation-scale-start":Me,"--divkit-animation-scale-end":Je}))},[wt,Wt,Kt,Bt,Re,z,zt,Lt,se,me,Oe,Te,Be,V,C,E,k,x,w,b,_,$,y,v,m,d,u,c,s,l,i,o,function(t){Nt=t,we&&$t.transition_in&&It.registerChildWithTransitionIn($t,bt,$t.transition_in,t).then((()=>{r(72,Ae=!1)})).catch((t=>{throw r(72,Ae=!1),t})),we&&$t.transition_out&&It.registerChildWithTransitionOut($t,bt,$t.transition_out,t),we&&$t.transition_change&&It.registerChildWithTransitionChange($t,bt,$t.transition_change,t).then((()=>{r(74,Ie=!1)})).catch((t=>{throw r(74,Ie=!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=ge(n);t&&!ve(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:kt.fakeElement?[]:Ft.getJsonWithVars($t.visibility_actions||$t.visibility_action&&[$t.visibility_action]),rootCtx:Ft});const e=$t.id;e&&It.registerChild(e);let n=null;return{destroy(){e&&It.unregisterChild(e),n&&n.destroy()}}},$t,_t,bt,xt,kt,Et,Ct,At,Vt,jt,Dt,ht,pt,ft,mt,vt,yt,Rt,Ut,qt,Ht,Gt,Xt,Qt,te,Mt,ee,oe,ae,le,ce,Jt,de,he,pe,fe,ye,Ot,Tt,Ae,Fe,Ie,We,Ne,ze,Me,Je,He,Ge,Ke,Xe,Ue,qe,A,a,g,f,h,j,D,P,S,F,I,N,M,J,O,T,B,R,W,L,U,ut,dt]}const an=class extends Tt{constructor(t){super(),Ot(this,t,on,nn,d,{json:33,origJson:34,templateContext:35,cls:0,style:36,layoutParams:37,customDescription:38,customPaddings:39,customActions:40,forceWidth:41,forceHeight:42,additionalPaddings:43},null,[-1,-1,-1,-1])}},ln={"text-range":"divkit-faf07","text-range_singleline":"divkit-ccb64","text-range__top-offset":"divkit-d9237","text-range_decoration_both":"divkit-d7e07","text-range_decoration_underline":"divkit-f3dde","text-range_decoration_strike":"divkit-d27b7","text-range_decoration_none":"divkit-c6b0f"};function sn(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function cn(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function un(t,e){return cn(t)||e}function dn(t){let e,n;return{c(){e=I("span"),this.h()},l(t){e=U(t,"SPAN",{class:!0}),R(e).forEach(S),this.h()},h(){T(e,"class",n=ln["text-range__top-offset"]),X(e,"margin-top",t[4],!1)},m(t,n){P(t,e,n)},p(t,n){16&n&&X(e,"margin-top",t[4],!1)},d(t){t&&S(e)}}}function hn(t){let e;return{c(){e=z(t[0])},l(n){e=H(n,t[0])},m(t,n){P(t,e,n)},p(t,n){1&n&&K(e,t[0])},d(t){t&&S(e)}}}function pn(t){let e,n,r,o=t[4]&&dn(t);return n=new Te({props:{cls:$e("text-range",ln,t[3]),actions:t[1],style:ee(t[2]),$$slots:{default:[hn]},$$scope:{ctx:t}}}),{c(){o&&o.c(),e=J(),Nt(n.$$.fragment)},l(t){o&&o.l(t),e=J(),zt(n.$$.fragment,t)},m(t,i){o&&o.m(t,i),P(t,e,i),Mt(n,t,i),r=!0},p(t,r){let[i]=r;t[4]?o?o.p(t,i):(o=dn(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const a={};8&i&&(a.cls=$e("text-range",ln,t[3])),2&i&&(a.actions=t[1]),4&i&&(a.style=ee(t[2])),524289&i&&(a.$$scope={dirty:i,ctx:t}),n.$set(a)},i(t){r||(At(n.$$.fragment,t),r=!0)},o(t){Vt(n.$$.fragment,t),r=!1},d(t){o&&o.d(t),t&&S(e),Jt(n,t)}}}function fn(t,e,n){let r,o,i,a,l;var s,c;let u,{text:d}=e,{rootFontSize:h}=e,{textStyles:p={}}=e,{singleline:f=!1}=e,{actions:g}=e,m="none",v=12,y=1.25,$="",_="",b=null;return t.$$set=t=>{"text"in t&&n(0,d=t.text),"rootFontSize"in t&&n(5,h=t.rootFontSize),"textStyles"in t&&n(6,p=t.textStyles),"singleline"in t&&n(7,f=t.singleline),"actions"in t&&n(1,g=t.actions)},t.$$.update=()=>{if(64&t.$$.dirty){let t="none";(p.underline||p.strike)&&("single"===p.underline&&"single"===p.strike?t="both":"single"===p.underline?t="underline":"single"===p.strike&&(t="strike")),n(10,m=t)}2112&t.$$.dirty&&n(11,v=sn(p.font_size,v)),2112&t.$$.dirty&&We(p.line_height)&&n(12,y=Number(p.line_height)/v),64&t.$$.dirty&&xe(p.letter_spacing)&&n(13,$=ne(p.letter_spacing)),16448&t.$$.dirty&&n(14,u=un(p.font_weight,u)),32832&t.$$.dirty&&n(15,_=ie(p.text_color,1,_)),64&t.$$.dirty&&n(4,r=p.top_offset?ne(p.top_offset):""),64&t.$$.dirty&&n(18,o=p.background?ue([p.background]):null),320&t.$$.dirty&&((null===n(8,s=p.border)||void 0===s?void 0:s.stroke)&&"transparent"!==ie(p.border.stroke.color)&&We(p.border.stroke.width)?n(16,b={color:p.border.stroke.color,width:p.border.stroke.width}):n(16,b=null)),576&t.$$.dirty&&n(17,i=sn(null===n(9,c=p.border)||void 0===c?void 0:c.corner_radius,0)),1152&t.$$.dirty&&n(3,a={singleline:f,decoration:m}),522272&t.$$.dirty&&n(2,l={"font-size":ne(10*v/h),"line-height":y,"letter-spacing":$,"font-weight":u,color:_,background:(null==o?void 0:o.color)||void 0,"box-shadow":b?"inset 0 0 0 ".concat(ne(b.width)," ").concat(b.color):void 0,"border-radius":i?ne(i):void 0})},[d,g,l,a,r,h,p,f,s,c,m,v,y,$,u,_,b,i,o]}const gn=class extends Tt{constructor(t){super(),Ot(this,t,fn,pn,d,{text:0,rootFontSize:5,textStyles:6,singleline:7,actions:1})}};function mn(t,e){return"left"===t||"center"===t||"right"===t?t:e}function vn(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?t:e}function yn(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}const{Boolean:$n}=Pt;function _n(t,e,n){const r=t.slice();return r[55]=e[n],r[57]=n,r}function bn(t){let e,n;return e=new an({props:{cls:$e("text",Qt,t[13])+" "+(t[6]?"":Ht),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Vn]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};8256&n[0]&&(r.cls=$e("text",Qt,t[13])+" "+(t[6]?"":Ht)),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),134225584&n[0]|134217728&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function wn(t){let e,n;return e=new gn({props:{text:t[4],rootFontSize:t[5],textStyles:t[27],singleline:t[7]}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),134217728&n[0]&&(r.textStyles=t[27]),128&n[0]&&(r.singleline=t[7]),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function xn(t){let e,n,r=t[10],o=[];for(let e=0;e<r.length;e+=1)o[e]=An(_n(t,r,e));const i=t=>Vt(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=J()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=J()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);P(t,e,r),n=!0},p(t,n){if(268437152&n[0]){let a;for(r=t[10],a=0;a<r.length;a+=1){const i=_n(t,r,a);o[a]?(o[a].p(i,n),At(o[a],1)):(o[a]=An(i),o[a].c(),At(o[a],1),o[a].m(e.parentNode,e))}for(Et(),a=r.length;a<o.length;a+=1)i(a);Ct()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)At(o[t]);n=!0}},o(t){o=o.filter($n);for(let t=0;t<o.length;t+=1)Vt(o[t]);n=!1},d(t){F(o,t),t&&S(e)}}}function kn(t){let e,r,o,i,a,l,s,c;return{c(){e=I("span"),r=I("img"),this.h()},l(t){e=U(t,"SPAN",{style:!0});var n=R(e);r=U(n,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),n.forEach(S),this.h()},h(){T(r,"class",o=Qt.text__image),u(r.src,i=t[55].image.url)||T(r,"src",i),T(r,"loading","lazy"),T(r,"decoding","async"),T(r,"aria-hidden","true"),T(r,"alt",""),T(r,"style",a=ee({width:t[55].image.width,height:t[55].image.height,"margin-top":t[9]?"-".concat(t[55].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[55].image.height):void 0,filter:t[55].image.svgFilterId?"url(#".concat(t[55].image.svgFilterId,")"):void 0})),T(e,"style",l=ee(t[55].image.wrapperStyle))},m(n,o){P(n,e,o),D(e,r),s||(c=O(r,"error",t[28]),s=!0)},p(t,n){1024&n[0]&&!u(r.src,i=t[55].image.url)&&T(r,"src",i),1536&n[0]&&a!==(a=ee({width:t[55].image.width,height:t[55].image.height,"margin-top":t[9]?"-".concat(t[55].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[55].image.height):void 0,filter:t[55].image.svgFilterId?"url(#".concat(t[55].image.svgFilterId,")"):void 0}))&&T(r,"style",a),1024&n[0]&&l!==(l=ee(t[55].image.wrapperStyle))&&T(e,"style",l)},i:n,o:n,d(t){t&&S(e),s=!1,c()}}}function En(t){let e,n,r=t[55].text&&Cn(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){t[55].text?r?(r.p(t,n),1024&n[0]&&At(r,1)):(r=Cn(t),r.c(),At(r,1),r.m(e.parentNode,e)):r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct())},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}function Cn(t){let e,n;return e=new gn({props:{text:t[55].text,rootFontSize:t[5],textStyles:t[55].textStyles,singleline:t[7],actions:t[55].actions}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.text=t[55].text),32&n[0]&&(r.rootFontSize=t[5]),1024&n[0]&&(r.textStyles=t[55].textStyles),128&n[0]&&(r.singleline=t[7]),1024&n[0]&&(r.actions=t[55].actions),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function An(t){let e,n,r,o;const i=[En,kn],a=[];function l(t,e){return"text"in t[55]?0:t[55].image?1:-1}return~(e=l(t))&&(n=a[e]=i[e](t)),{c(){n&&n.c(),r=J()},l(t){n&&n.l(t),r=J()},m(t,n){~e&&a[e].m(t,n),P(t,r,n),o=!0},p(t,o){let s=e;e=l(t),e===s?~e&&a[e].p(t,o):(n&&(Et(),Vt(a[s],1,1,(()=>{a[s]=null})),Ct()),~e?(n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),At(n,1),n.m(r.parentNode,r)):n=null)},i(t){o||(At(n),o=!0)},o(t){Vt(n),o=!1},d(t){~e&&a[e].d(t),t&&S(r)}}}function Vn(t){let e,n,r,o,i,a;const l=[xn,wn],s=[];function c(t,e){return t[10].length?0:1}return n=c(t),r=s[n]=l[n](t),{c(){e=I("span"),r.c(),this.h()},l(t){e=U(t,"SPAN",{class:!0,style:!0});var n=R(e);r.l(n),n.forEach(S),this.h()},h(){T(e,"class",o=$e("text__inner",Qt,t[12])),T(e,"style",i=ee(t[11]))},m(t,r){P(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):(Et(),Vt(s[d],1,1,(()=>{s[d]=null})),Ct(),r=s[n],r?r.p(t,u):(r=s[n]=l[n](t),r.c()),At(r,1),r.m(e,null)),(!a||4096&u[0]&&o!==(o=$e("text__inner",Qt,t[12])))&&T(e,"class",o),(!a||2048&u[0]&&i!==(i=ee(t[11])))&&T(e,"style",i)},i(t){a||(At(r),a=!0)},o(t){Vt(r),a=!1},d(t){t&&S(e),s[n].d()}}}function jn(t){let e,n,r=!t[8]&&bn(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){t[8]?r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct()):r?(r.p(t,n),256&n[0]&&At(r,1)):(r=bn(t),r.c(),At(r,1),r.m(e.parentNode,e))},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}function Dn(t,e,r){let o,i,a,l,s,c,u,d,h,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,j,D,P,S,F,I,N,z,M,J=n,O=n,T=n,B=n,R=n,W=n,L=n,U=n,q=n,H=n,G=n,K=n,X=n;t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),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{json:Y={}}=e,{templateContext:Z}=e,{origJson:Q}=e,{layoutParams:tt}=e;const et=at(Yt);let nt=!1,rt="",it=12,lt=1.25,st=!1,ct="",ut="",dt=!1,ht="left",pt="top",ft="",gt="",mt=!1,vt=[],yt=[];return ot((()=>{yt.forEach((t=>{let[e,n]=t;et.removeSvgFilter(e,n)}))})),t.$$set=t=>{"json"in t&&r(0,Y=t.json),"templateContext"in t&&r(1,Z=t.templateContext),"origJson"in t&&r(2,Q=t.origJson),"layoutParams"in t&&r(3,tt=t.layoutParams)},t.$$.update=()=>{var e,n;if(1&t.$$.dirty[0]&&(r(26,o=et.getDerivedFromVars(Y.text)),X(),X=p(o,(t=>r(51,M=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&(r(4,(e=M,n=rt,rt=String(null!=e?e:"")||n)),rt?r(8,nt=!1):(r(8,nt=!0),et.logError(Zt(new Error('Missing "text" prop for div "text"'))))),1&t.$$.dirty[0]&&(r(25,i=et.getDerivedFromVars(Y.ranges)),O(),O=p(i,(t=>r(41,C=t)))),1&t.$$.dirty[0]&&(r(24,a=et.getDerivedFromVars(Y.images)),J(),J=p(a,(t=>r(40,E=t)))),1&t.$$.dirty[0]&&(r(23,l=et.getDerivedFromVars({font_size:Y.font_size,letter_spacing:Y.letter_spacing,font_weight:Y.font_weight,text_color:Y.text_color,underline:Y.underline,strike:Y.strike,line_height:Y.line_height})),T(),T=p(l,(t=>r(27,A=t)))),1&t.$$.dirty[0]&&(r(22,s=et.getDerivedFromVars(Y.font_size)),K(),K=p(s,(t=>r(50,z=t)))),32&t.$$.dirty[0]|524288&t.$$.dirty[1]&&r(5,it=sn(z,it)),1&t.$$.dirty[0]&&(r(21,c=et.getDerivedFromVars(Y.line_height)),G(),G=p(c,(t=>r(49,N=t)))),32&t.$$.dirty[0]|262144&t.$$.dirty[1]){const t=N;We(t)?(r(29,lt=Number(t)/it),r(9,st=!0)):r(9,st=!1)}if(1&t.$$.dirty[0]&&(r(20,u=et.getDerivedFromVars(Y.max_lines)),U(),U=p(u,(t=>r(46,S=t)))),32768&t.$$.dirty[1]&&r(7,d=1===S),536870912&t.$$.dirty[0]|34304&t.$$.dirty[1]){let t="",e="",n=!1;if(S&&S>1){let r=Number(S);t=r*lt+"em",C||E||(e=r,n=!0)}r(30,ct=t),r(31,ut=e),r(32,dt=n)}if(1&t.$$.dirty[0]&&(r(19,h=et.getDerivedFromVars(Y.text_alignment_horizontal)),H(),H=p(h,(t=>r(48,I=t)))),131076&t.$$.dirty[1]&&r(33,ht=mn(I,ht)),1&t.$$.dirty[0]&&(r(18,f=et.getDerivedFromVars(Y.text_alignment_vertical)),q(),q=p(f,(t=>r(47,F=t)))),65544&t.$$.dirty[1]&&r(34,pt=vn(F,pt)),16&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(39,g=!C||rt&&1===C.length&&C[0]&&0===C[0].start&&"number"==typeof C[0].end&&C[0].end>=rt.length),1&t.$$.dirty[0]&&(r(17,m=et.getDerivedFromVars(Y.text_color)),L(),L=p(m,(t=>r(45,P=t)))),17408&t.$$.dirty[1]&&r(38,v=Boolean(P)!==Boolean(C&&C[0]&&C[0].text_color)),50576&t.$$.dirty[1]){let t="";S&&g&&v&&(t=ie(P||C&&C[0]&&C[0].text_color,1,ft)),r(35,ft=t)}if(1&t.$$.dirty[0]&&(r(16,y=et.getDerivedFromVars(Y.truncate)),W(),W=p(y,(t=>r(44,D=t)))),8192&t.$$.dirty[1]&&r(37,$="none"===D?"none":""),1&t.$$.dirty[0]&&(r(15,_=et.getDerivedFromVars(Y.text_gradient)),R(),R=p(_,(t=>r(43,j=t)))),4096&t.$$.dirty[1]){let t="";if(j){const e=ue([j]);e.image&&(t=e.image)}r(36,gt=t)}1&t.$$.dirty[0]&&(r(14,b=et.getDerivedFromVars(Y.selectable)),B(),B=p(b,(t=>r(42,V=t)))),64&t.$$.dirty[0]|2048&t.$$.dirty[1]&&r(6,mt=function(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}(V,mt)),16&t.$$.dirty[0]|1536&t.$$.dirty[1]&&function(t,e,n){let o=[];if(yt.forEach((t=>{let[e,n]=t;et.removeSvgFilter(e,n)})),yt=[],!(Array.isArray(e)&&e.length||Array.isArray(n)&&n.length&&t))return void r(10,vt=[]);const i=t;let a=e||[{start:0,end:i.length}],l=n||[],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({},A),...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({},A),...c),n=ne(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=ne(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const i={"font-size":ne(10*(Number(e.font_size)||12)/it)};let a="";const l=t.image.tint_color,s=yn(t.image.tint_mode,"source_in");if(l){const e=ie(t.image.tint_color);a=et.addSvgFilter(e,s),yt.push([e,s])}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({},A)}),r(10,vt=o)}(rt,C,E),128&t.$$.dirty[0]|78&t.$$.dirty[1]&&r(13,w={singleline:d,multiline:dt,halign:ht,valign:pt,truncate:$}),32&t.$$.dirty[1]&&r(12,x={gradient:Boolean(gt)}),1610612768&t.$$.dirty[0]|49&t.$$.dirty[1]&&r(11,k={"font-size":ne(it),"line-height":lt,"max-height":ct,"-webkit-line-clamp":ut,color:ft,"background-image":gt})},[Y,Z,Q,tt,rt,it,mt,d,nt,st,vt,k,x,w,b,_,y,m,f,h,u,c,s,l,a,i,o,A,function(t){t.target&&"classList"in t.target&&t.target.classList.add(Qt.text__image_hidden)},lt,ct,ut,dt,ht,pt,ft,gt,$,v,g,E,C,V,j,D,P,S,F,I,N,z,M]}const Pn={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_orientation_vertical:"divkit-ddc33",container_valign_top:"divkit-a331a",container_valign_center:"divkit-aae61",container_valign_bottom:"divkit-c2226",container_orientation_horizontal:"divkit-fe458",container_halign_left:"divkit-a3091",container_halign_center:"divkit-bac9d",container_halign_right:"divkit-f4230",container_orientation_overlap:"divkit-a644d"};function Sn(t,e,n){if(!(t&&t.shape&&t.color&&t.shape.type&&e.includes(t.shape.type)))return n;const r=ie(t.color);let o,i,a;if("rounded_rectangle"===t.shape.type){var l,s,c,u;o=Number((null===(l=t.shape.item_width)||void 0===l?void 0:l.value)||10),i=Number((null===(s=t.shape.item_height)||void 0===s?void 0:s.value)||10),a=Number(null!==(c=null===(u=t.shape.corner_radius)||void 0===u?void 0:u.value)&&void 0!==c?c:5)}else{if("circle"!==t.shape.type)return n;var d;o=i=a=2*Number((null===(d=t.shape.radius)||void 0===d?void 0:d.value)||10)}if("shape_drawable"===t.type&&"transparent"!==r){var h,p,f;const e={},n=null!==(h=t.stroke)&&void 0!==h&&h.color?ie(t.stroke.color):"",l=null!==(p=t.stroke)&&void 0!==p&&p.width?Number(null!==(f=t.stroke.width)&&void 0!==f?f:1):"";return e.width=o,e.height=i,e.borderRadius=a,e.background=r,n&&l&&(e.boxShadow="inset 0 0 0 ".concat(ne(l)," ").concat(n)),e}return n}function Fn(t,e,n){null!=e&&e.show_at_start&&(n?t.top=e.style.height:t.left=e.style.width),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height:t.right=e.style.width)}function In(t,e,n){let r;return r="horizontal"===t?[null!=n&&n.show_between?n.style.height:0,null!=e&&e.show_between?e.style.width:0]:[null!=e&&e.show_between?e.style.height:0,null!=n&&n.show_between?n.style.width:0],r.map(ne).join(" ")}const Nn="divkit-f6e9a";function zn(t,e,n){const r=t.slice();return r[13]=e[n],r}function Mn(t){let e,n,r,o,i,a="".concat(t[13].style.width,"px"),l="".concat(t[13].style.height,"px"),s="".concat(t[13].style.borderRadius,"px"),c="".concat(t[13].left,"px"),u="".concat(t[13].top,"px"),d="".concat(t[13].width,"px"),h="".concat(t[13].height,"px");return{c(){e=I("div"),n=I("div"),o=M(),this.h()},l(t){e=U(t,"DIV",{class:!0});var r=R(e);n=U(r,"DIV",{class:!0}),R(n).forEach(S),o=G(r),r.forEach(S),this.h()},h(){T(n,"class",r=Nn),X(n,"width",a,!1),X(n,"height",l,!1),X(n,"border-radius",s,!1),X(n,"background",t[13].style.background,!1),X(n,"box-shadow",t[13].style.boxShadow,!1),T(e,"class",i="divkit-c770e"),X(e,"left",c,!1),X(e,"top",u,!1),X(e,"width",d,!1),X(e,"height",h,!1)},m(t,r){P(t,e,r),D(e,n),D(e,o)},p(t,r){2&r&&a!==(a="".concat(t[13].style.width,"px"))&&X(n,"width",a,!1),2&r&&l!==(l="".concat(t[13].style.height,"px"))&&X(n,"height",l,!1),2&r&&s!==(s="".concat(t[13].style.borderRadius,"px"))&&X(n,"border-radius",s,!1),2&r&&X(n,"background",t[13].style.background,!1),2&r&&X(n,"box-shadow",t[13].style.boxShadow,!1),2&r&&c!==(c="".concat(t[13].left,"px"))&&X(e,"left",c,!1),2&r&&u!==(u="".concat(t[13].top,"px"))&&X(e,"top",u,!1),2&r&&d!==(d="".concat(t[13].width,"px"))&&X(e,"width",d,!1),2&r&&h!==(h="".concat(t[13].height,"px"))&&X(e,"height",h,!1)},d(t){t&&S(e)}}}function Jn(t){let e,r,o,i=t[1],a=[];for(let e=0;e<i.length;e+=1)a[e]=Mn(zn(t,i,e));return{c(){e=I("div");for(let t=0;t<a.length;t+=1)a[t].c()},l(t){e=U(t,"DIV",{});var n=R(e);for(let t=0;t<a.length;t+=1)a[t].l(n);n.forEach(S)},m(n,i){P(n,e,i);for(let t=0;t<a.length;t+=1)a[t].m(e,null);t[10](e),r||(o=O(window,"resize",t[2]),r=!0)},p(t,n){let[r]=n;if(2&r){let n;for(i=t[1],n=0;n<i.length;n+=1){const o=zn(t,i,n);a[n]?a[n].p(o,r):(a[n]=Mn(o),a[n].c(),a[n].m(e,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=i.length}},i:n,o:n,d(n){n&&S(e),F(a,n),t[10](null),r=!1,o()}}}function On(t,e,n,r,o,i){i?t.push({top:n.bottom,left:o.left,width:o.right-o.left,height:r.top-n.bottom,style:e}):t.push({top:o.top,left:n.right,width:r.left-n.right,height:o.bottom-o.top,style:e})}function Tn(t,e,n,r){const o={top:Math.min(...n.map((t=>t.top))),right:Math.max(...n.map((t=>t.right))),bottom:Math.max(...n.map((t=>t.bottom))),left:Math.min(...n.map((t=>t.left)))};if((null==e?void 0:e.show_at_start)&&On(t,e.style,{top:0,right:n[0].left-e.style.width,bottom:n[0].top-e.style.height,left:0},n[0],o,r),null==e?void 0:e.show_between)for(let i=0;i<n.length-1;++i)On(t,e.style,n[i],n[i+1],o,r);if(null==e?void 0:e.show_at_end){const i=n[n.length-1];On(t,e.style,i,{top:i.bottom+e.style.height,right:0,bottom:0,left:i.right+e.style.width},o,r)}}function Bn(t,e,n){let r,{orientation:o}=e,{separator:i}=e,{lineSeparator:a}=e;const l=function(t,e){let n,r=0,o=!1;return function(){const e=Date.now();return!r||Math.abs(e-r)>10?(r=e,n=t.apply(this,arguments)):(o||(o=!0,setTimeout((()=>{o=!1,n=t.apply(this,arguments)}),10)),n)}}((function(){if(!r)return;const t=r.getBoundingClientRect();n(1,c=[]);let e=[...r.children].filter((t=>t!==s&&!t.classList.contains(te.outer__border))),l=[];for(;e.length;){const t=[],n=e.shift();t.push(n);let r=n.getBoundingClientRect(),i=r.right,a=r.bottom;for(;e.length;){let n=e[0],r=n.getBoundingClientRect();if("vertical"===o){if(r.top<a)break}else if(r.left<i)break;i=Math.max(i,r.right),a=Math.max(a,r.bottom),t.push(n),e.shift()}l.push(t)}const u=[];l.forEach((t=>{const e=t.map((t=>function(t){const e=t.getBoundingClientRect(),n=getComputedStyle(t);return{top:e.top-parseFloat(n.marginTop),right:e.right+parseFloat(n.marginRight),bottom:e.bottom+parseFloat(n.marginBottom),left:e.left-parseFloat(n.marginLeft)}}(t)));i&&Tn(c,i,e,"vertical"===o);const n={top:Math.min(...e.map((t=>t.top))),right:Math.max(...e.map((t=>t.right))),bottom:Math.max(...e.map((t=>t.bottom))),left:Math.min(...e.map((t=>t.left)))};u.push(n)})),a&&Tn(c,a,u,"horizontal"===o),c.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let s,c=[],u=!1,d=null,h=null;function p(t){t.some((t=>{var e;const n=null===(e=t.target)||void 0===e?void 0:e.classList;return!(null==n?void 0:n.contains(Nn))&&!(null==n?void 0:n.contains("divkit-a7719"))}))&&l()}return rt((()=>{n(6,u=!0)})),ot((()=>{n(6,u=!1)})),t.$$set=t=>{"orientation"in t&&n(3,o=t.orientation),"separator"in t&&n(4,i=t.separator),"lineSeparator"in t&&n(5,a=t.lineSeparator)},t.$$.update=()=>{1&t.$$.dirty&&n(9,r=(null==s?void 0:s.parentElement)||null),960&t.$$.dirty&&(u&&r||d||h)&&(d&&(d.disconnect(),n(7,d=null)),h&&(h.disconnect(),n(8,h=null)),u&&r&&("undefined"!=typeof MutationObserver&&(n(7,d=new MutationObserver(p)),d.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(8,h=new ResizeObserver(l)),h.observe(r)))),576&t.$$.dirty&&u&&r&&l()},[s,c,l,o,i,a,u,d,h,r,function(t){ct[t?"unshift":"push"]((()=>{s=t,n(0,s)}))}]}const Rn=class extends Tt{constructor(t){super(),Ot(this,t,Bn,Jn,d,{orientation:3,separator:4,lineSeparator:5})}};let Wn;function Ln(){if(void 0!==Wn)return Wn;const t=document.createElement("div");return t.style.position="absolute",t.style.display="flex",t.style.flexDirection="column",t.style.gap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),Wn=1===t.scrollHeight,document.body.removeChild(t),Wn}const{Boolean:Un}=Pt;function qn(t,e,n){const r=t.slice();return r[43]=e[n],r}function Hn(t){let e,n;return e=new an({props:{cls:$e("container",Pn,t[10]),style:t[9],json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],additionalPaddings:t[13],$$slots:{default:[Xn]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=$e("container",Pn,t[10])),512&n[0]&&(r.style=t[9]),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]),8192&n[0]&&(r.additionalPaddings=t[13]),1049056&n[0]|32768&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function Gn(t){let e,n;return e=new Ai({props:{layoutParams:t[8],div:t[43].json,templateContext:t[43].templateContext,origJson:t[43].origJson}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),1048576&n[0]&&(r.div=t[43].json),1048576&n[0]&&(r.templateContext=t[43].templateContext),1048576&n[0]&&(r.origJson=t[43].origJson),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function Kn(t){let e,n;return e=new Rn({props:{separator:t[6],lineSeparator:t[7],orientation:t[5]}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.separator=t[6]),128&n[0]&&(r.lineSeparator=t[7]),32&n[0]&&(r.orientation=t[5]),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function Xn(t){let e,n,r,o=t[20],i=[];for(let e=0;e<o.length;e+=1)i[e]=Gn(qn(t,o,e));const a=t=>Vt(i[t],1,1,(()=>{i[t]=null}));let l=(t[6]||t[7])&&Kn(t);return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=M(),l&&l.c(),n=J()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=G(t),l&&l.l(t),n=J()},m(t,o){for(let e=0;e<i.length;e+=1)i[e].m(t,o);P(t,e,o),l&&l.m(t,o),P(t,n,o),r=!0},p(t,r){if(1048832&r[0]){let n;for(o=t[20],n=0;n<o.length;n+=1){const a=qn(t,o,n);i[n]?(i[n].p(a,r),At(i[n],1)):(i[n]=Gn(a),i[n].c(),At(i[n],1),i[n].m(e.parentNode,e))}for(Et(),n=o.length;n<i.length;n+=1)a(n);Ct()}t[6]||t[7]?l?(l.p(t,r),192&r[0]&&At(l,1)):(l=Kn(t),l.c(),At(l,1),l.m(n.parentNode,n)):l&&(Et(),Vt(l,1,1,(()=>{l=null})),Ct())},i(t){if(!r){for(let t=0;t<o.length;t+=1)At(i[t]);At(l),r=!0}},o(t){i=i.filter(Un);for(let t=0;t<i.length;t+=1)Vt(i[t]);Vt(l),r=!1},d(t){F(i,t),t&&S(e),l&&l.d(t),t&&S(n)}}}function Yn(t){let e,n,r=!t[4]&&Hn(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){t[4]?r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct()):r?(r.p(t,n),16&n[0]&&At(r,1)):(r=Hn(t),r.c(),At(r,1),r.m(e.parentNode,e))},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}function Zn(t,e,r){let o,i,a,l,s,c,u,d,h,f,g,m,v,y,$,_,b,w,x,k,E,C,A=n,V=n,j=n,D=n,P=n,S=n,F=n,I=n;var N,z,M,J,O,T;t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>I()));let{json:B={}}=e,{templateContext:R}=e,{origJson:W}=e,{layoutParams:L}=e;const U={left:"start",center:"center",right:"end"},q={top:"start",center:"center",bottom:"end",baseline:"baseline"},H=["rounded_rectangle","circle"],G=at(Yt);let K=!1,X="vertical",Y="top",Z="left",Q=null,tt=null,et={};return t.$$set=t=>{"json"in t&&r(0,B=t.json),"templateContext"in t&&r(1,R=t.templateContext),"origJson"in t&&r(2,W=t.origJson),"layoutParams"in t&&r(3,L=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(30,o=B.items),1073741824&t.$$.dirty[0]&&((null==o?void 0:o.length)&&Array.isArray(o)?r(4,K=!1):(r(4,K=!0),G.logError(Zt(new Error('Incorrect or empty "items" prop for div "container"'))))),1073741842&t.$$.dirty[0]&&r(20,i=(!K&&o||[]).map((t=>{let e=t,n=R;return({templateContext:n,json:e}=G.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(r(19,a=G.getDerivedFromVars(B.orientation)),I(),I=p(a,(t=>r(38,C=t)))),32&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(5,X=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(C,X)),1&t.$$.dirty[0]&&(r(18,l=G.getDerivedFromVars(B.content_alignment_vertical)),F(),F=p(l,(t=>r(37,E=t)))),134217728&t.$$.dirty[0]|64&t.$$.dirty[1]&&r(27,Y=vn(E,Y)),1&t.$$.dirty[0]&&(r(17,s=G.getDerivedFromVars(B.content_alignment_horizontal)),S(),S=p(s,(t=>r(36,k=t)))),268435456&t.$$.dirty[0]|32&t.$$.dirty[1]&&r(28,Z=mn(k,Z)),1&t.$$.dirty[0]&&(r(16,c=G.getDerivedFromVars(B.layout_mode)),P(),P=p(c,(t=>r(35,x=t)))),16&t.$$.dirty[1]&&r(29,u="wrap"===x),1&t.$$.dirty[0]&&(r(15,d=G.getDerivedFromVars(B.separator)),D(),D=p(d,(t=>r(34,w=t)))),14680160&t.$$.dirty[0]|8&t.$$.dirty[1])if((null==w?void 0:w.style)&&"overlap"!==X&&Ln()){const t=Sn(w.style,H,(null==Q?void 0:Q.style)||null);r(6,Q=t?{show_at_start:Boolean(null!==r(21,N=w.show_at_start)&&void 0!==N&&N),show_at_end:Boolean(null!==r(22,z=w.show_at_end)&&void 0!==z&&z),show_between:Boolean(null===r(23,M=w.show_between)||void 0===M||M),style:t}:null)}else r(6,Q=null);if(1&t.$$.dirty[0]&&(r(14,h=G.getDerivedFromVars(B.line_separator)),j(),j=p(h,(t=>r(33,b=t)))),117440672&t.$$.dirty[0]|4&t.$$.dirty[1])if((null==b?void 0:b.style)&&"overlap"!==X&&Ln()){const t=Sn(b.style,H,(null==tt?void 0:tt.style)||null);r(7,tt=t?{show_at_start:Boolean(null!==r(24,J=b.show_at_start)&&void 0!==J&&J),show_at_end:Boolean(null!==r(25,O=b.show_at_end)&&void 0!==O&&O),show_between:Boolean(null===r(26,T=b.show_between)||void 0===T||T),style:t}:null)}else r(7,tt=null);if(224&t.$$.dirty[0]&&r(13,f=Q||tt?function(t,e,n){const r={};return Fn(r,e,"vertical"===t),Fn(r,n,"horizontal"===t),r}(X,Q,tt):null),1&t.$$.dirty[0]&&(r(12,g=G.getDerivedFromVars(B.width)),A(),A=p(g,(t=>r(31,$=t)))),1&t.$$.dirty[0]&&(r(11,m=G.getDerivedFromVars(B.height)),V(),V=p(m,(t=>r(32,_=t)))),939524392&t.$$.dirty[0]|3&t.$$.dirty[1]){let t={};(null==L?void 0:L.fakeElement)&&(t.fakeElement=!0),"overlap"===X&&(t.overlapParent=!0),"horizontal"!==X&&(t.parentHAlign=U[Z],(!_||"wrap_content"===_.type||"match_parent"===_.type&&(null==L?void 0:L.parentVerticalWrapContent))&&(t.parentVerticalWrapContent=!0)),"vertical"!==X&&(t.parentVAlign=q[Y],("wrap_content"===(null==$?void 0:$.type)||"match_parent"===(null==$?void 0:$.type)&&(null==L?void 0:L.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0)),"horizontal"===X&&(t.parentContainerOrientation="horizontal"),"vertical"===X&&(t.parentContainerOrientation="vertical"),u&&(t.parentContainerWrap=!0),r(8,et=Ve(t,et))}939524128&t.$$.dirty[0]&&r(10,v={orientation:X,valign:Y,halign:Z,wrap:u}),224&t.$$.dirty[0]&&r(9,y={gap:Q||tt?In(X,Q,tt):void 0})},[B,R,W,L,K,X,Q,tt,et,y,v,m,g,f,h,d,c,s,l,a,i,N,z,M,J,O,T,Y,Z,u,o,$,_,b,w,x,k,E,C]}const Qn={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function tr(t,e){return"vertical"===t||"horizontal"===t?t:e}function er(t){let e,n,r;return{c(){e=I("span"),this.h()},l(t){e=U(t,"SPAN",{class:!0,style:!0}),R(e).forEach(S),this.h()},h(){T(e,"class",n=Qn.separator__inner),T(e,"style",r=ee(t[5]))},m(t,n){P(t,e,n)},p(t,n){32&n&&r!==(r=ee(t[5]))&&T(e,"style",r)},d(t){t&&S(e)}}}function nr(t){let e,n=t[6]&&er(t);return{c(){n&&n.c(),e=J()},l(t){n&&n.l(t),e=J()},m(t,r){n&&n.m(t,r),P(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=er(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&S(e)}}}function rr(t){let e,n;return e=new an({props:{cls:$e("separator",Qn,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[nr]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){let[r]=n;const o={};16&r&&(o.cls=$e("separator",Qn,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||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function or(t,e,r){let o,i,a,l,s,c,u,d=n;t.$$.on_destroy.push((()=>d()));let{json:h={}}=e,{templateContext:f}=e,{origJson:g}=e,{layoutParams:m}=e;const v=at(Yt);let y="horizontal",$="rgba(0,0,0,0.08)";return t.$$set=t=>{"json"in t&&r(0,h=t.json),"templateContext"in t&&r(1,f=t.templateContext),"origJson"in t&&r(2,g=t.origJson),"layoutParams"in t&&r(3,m=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&(r(7,o=v.getDerivedFromVars(h.delimiter_style)),d(),d=p(o,(t=>r(12,u=t)))),4352&t.$$.dirty&&r(8,y=tr(null==u?void 0:u.orientation,y)),4096&t.$$.dirty&&r(6,i=!((null==u?void 0:u.color)&&("transparent"===u.color||9===u.color.length&&0===u.color.indexOf("#00")))),4608&t.$$.dirty&&r(9,$=ie(null==u?void 0:u.color,1,$)),256&t.$$.dirty&&r(11,a="horizontal"===y?"100%":ne(1)),256&t.$$.dirty&&r(10,l="horizontal"===y?ne(1):"100%"),3584&t.$$.dirty&&r(5,s={background:$,width:a,height:l}),256&t.$$.dirty&&r(4,c={orientation:y})},[h,f,g,m,c,s,i,o,y,$,l,a,u]}const ir={image:"divkit-a448f","image_is-width-content":"divkit-fe14a","image_is-height-content":"divkit-f4d92",image__image:"divkit-ce046",image_error:"divkit-f10d9","image__aspect-wrapper":"divkit-dc808",image_aspect:"divkit-ae784",image_loaded:"divkit-cf4e0","divkit-image-appearance":"divkit-e555f","image_before-appearance":"divkit-ffe8a"};function ar(t){let e,n;return e=new an({props:{cls:$e("image",ir,t[10]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],style:t[9],customDescription:!0,$$slots:{default:[cr]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=$e("image",ir,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]),512&n[0]&&(r.style=t[9]),66928&n[0]|1073741824&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function lr(t){let e,n,r,o,i,a,s;return{c(){e=I("img"),this.h()},l(t){e=U(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){T(e,"class",n=ir.image__image),u(e.src,r=t[4]===hr?dr:t[6])||T(e,"src",r),T(e,"loading","lazy"),T(e,"decoding","async"),T(e,"style",o=ee(t[8])),T(e,"alt",t[16]),T(e,"aria-hidden",i=t[16]?null:"true")},m(n,r){P(n,e,r),a||(s=[O(e,"load",t[26]),O(e,"error",t[27])],a=!0)},p(t,n){80&n[0]&&!u(e.src,r=t[4]===hr?dr:t[6])&&T(e,"src",r),256&n[0]&&o!==(o=ee(t[8]))&&T(e,"style",o),65536&n[0]&&T(e,"alt",t[16]),65536&n[0]&&i!==(i=t[16]?null:"true")&&T(e,"aria-hidden",i)},d(t){t&&S(e),a=!1,l(s)}}}function sr(t){let e,n,r,o,i,a,s,c,d,h="".concat(t[5],"%");return{c(){e=I("span"),n=I("img"),this.h()},l(t){e=U(t,"SPAN",{class:!0});var r=R(e);n=U(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(S),this.h()},h(){T(n,"class",r=ir.image__image),u(n.src,o=t[4]===hr?dr:t[6])||T(n,"src",o),T(n,"loading","lazy"),T(n,"decoding","async"),T(n,"style",i=ee(t[8])),T(n,"alt",t[16]),T(n,"aria-hidden",a=t[16]?null:"true"),T(e,"class",s=ir["image__aspect-wrapper"]),X(e,"padding-bottom",h,!1)},m(r,o){P(r,e,o),D(e,n),c||(d=[O(n,"load",t[26]),O(n,"error",t[27])],c=!0)},p(t,r){80&r[0]&&!u(n.src,o=t[4]===hr?dr:t[6])&&T(n,"src",o),256&r[0]&&i!==(i=ee(t[8]))&&T(n,"style",i),65536&r[0]&&T(n,"alt",t[16]),65536&r[0]&&a!==(a=t[16]?null:"true")&&T(n,"aria-hidden",a),32&r[0]&&h!==(h="".concat(t[5],"%"))&&X(e,"padding-bottom",h,!1)},d(t){t&&S(e),c=!1,l(d)}}}function cr(t){let e;function n(t,e){return t[10].aspect?sr:lr}let r=n(t),o=r(t);return{c(){o.c(),e=J()},l(t){o.l(t),e=J()},m(t,n){o.m(t,n),P(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&&S(e)}}}function ur(t){let e,n,r=!t[7]&&ar(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){t[7]?r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct()):r?(r.p(t,n),128&n[0]&&At(r,1)):(r=ar(t),r.c(),At(r,1),r.m(e.parentNode,e))},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}const dr="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",hr=2;function pr(t,e,r){let o,i,a,l,s,c,u,d,h,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,j,D,P,S,F,I,N,z,M,J,O,T=n,B=n,R=n,W=n,L=n,U=n,q=n,H=n,G=n,K=n,X=n,Y=n,Z=n,Q=n;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),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{json:tt={}}=e,{templateContext:et}=e,{origJson:nt}=e,{layoutParams:rt}=e;const it=at(Yt);let lt=0,st="rgba(0,0,0,0.08)",ct=!1,ut="",dt="none",ht="50% 50%";let pt,ft="0",gt="source_in",mt="",vt="",yt=0,$t=0,_t=0,bt="",wt="";return ot((()=>{it.removeSvgFilter(pt,gt)})),t.$$set=t=>{"json"in t&&r(0,tt=t.json),"templateContext"in t&&r(1,et=t.templateContext),"origJson"in t&&r(2,nt=t.origJson),"layoutParams"in t&&r(3,rt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(r(25,o=it.getDerivedFromVars(tt.image_url)),Q(),Q=p(o,(t=>r(56,O=t)))),1&t.$$.dirty[0]&&(r(24,i=it.getDerivedFromVars(tt.gif_url)),Z(),Z=p(i,(t=>r(55,J=t)))),50331648&t.$$.dirty[1]&&r(6,a=O||J),64&t.$$.dirty[0]&&r(4,lt=0),64&t.$$.dirty[0]&&(a?r(7,ct=!1):(r(7,ct=!0),it.logError(Zt(new Error('Missing "image_url" for "image"'))))),1&t.$$.dirty[0]&&(r(23,l=it.getDerivedFromVars(tt.width)),Y(),Y=p(l,(t=>r(54,M=t)))),8388608&t.$$.dirty[1]&&r(42,s="wrap_content"===(null==M?void 0:M.type)),1&t.$$.dirty[0]&&(r(22,c=it.getDerivedFromVars(tt.height)),X(),X=p(c,(t=>r(53,z=t)))),4194304&t.$$.dirty[1]&&r(41,u="wrap_content"===(null==z?void 0:z.type)),1&t.$$.dirty[0]&&(r(21,d=it.getDerivedFromVars(tt.preview)),K(),K=p(d,(t=>r(52,N=t)))),16&t.$$.dirty[0]|2097152&t.$$.dirty[1]){const t=N;0!==lt&<!==hr||!t?r(29,ut=""):t.startsWith("data:")?r(29,ut='url("'.concat(se(t),'")')):r(29,ut='url("data:image/jpg;base64,'.concat(se(t),'")'))}if(1&t.$$.dirty[0]&&(r(20,h=it.getDerivedFromVars(tt.placeholder_color)),G(),G=p(h,(t=>r(51,I=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&function(t,e){r(28,st=0===t||t===hr?ie(e,1,st):"")}(lt,I),1&t.$$.dirty[0]&&(r(19,f=it.getDerivedFromVars(tt.scale)),H(),H=p(f,(t=>r(50,F=t)))),1073741824&t.$$.dirty[0]|524288&t.$$.dirty[1]&&r(30,dt=pe(F)||dt),1&t.$$.dirty[0]&&(r(18,g=it.getDerivedFromVars({content_alignment_horizontal:tt.content_alignment_horizontal,content_alignment_vertical:tt.content_alignment_vertical})),q(),q=p(g,(t=>r(49,S=t)))),262144&t.$$.dirty[1]&&r(31,ht=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:fe(t)}(S,ht)),1&t.$$.dirty[0]&&(r(17,m=it.getDerivedFromVars(tt.accessibility)),U(),U=p(m,(t=>r(48,P=t)))),131072&t.$$.dirty[1]&&r(16,v=(null==P?void 0:P.description)||""),1&t.$$.dirty[0]&&(r(15,y=it.getDerivedFromVars(tt.aspect)),L(),L=p(y,(t=>r(47,D=t)))),65536&t.$$.dirty[1]){const t=null==D?void 0:D.ratio;t&&We(t)?r(5,ft=(100/Number(t)).toFixed(2)):r(5,ft="0")}if(1&t.$$.dirty[0]&&(r(14,$=it.getDerivedFromVars(tt.tint_color)),W(),W=p($,(t=>r(46,j=t)))),1&t.$$.dirty[0]&&(r(13,_=it.getDerivedFromVars(tt.tint_mode)),R(),R=p(_,(t=>r(45,V=t)))),49158&t.$$.dirty[1]){const t=j,e=t?ie(t):void 0,n=yn(V,gt);e===pt&&n===gt||(it.removeSvgFilter(pt,gt),r(34,mt=e?it.addSvgFilter(e,n):""),r(32,pt=e),r(33,gt=n))}if(1&t.$$.dirty[0]&&(r(12,b=it.getDerivedFromVars(tt.appearance_animation)),B(),B=p(b,(t=>r(44,A=t)))),8192&t.$$.dirty[1]&&A&&"fade"===A.type){const t=A;r(35,vt=je(t.interpolator,"ease_in_out").replace(/_/g,"-")),r(38,_t=Ee(t.duration,300)),r(37,$t=Ee(t.start_delay,0)),r(36,yt=Ee(t.alpha,0))}if(1&t.$$.dirty[0]&&(r(11,w=it.getDerivedFromVars(tt.filters)),T(),T=p(w,(t=>r(43,C=t)))),4096&t.$$.dirty[1]){let t="",e="";Array.isArray(C)&&C.length&&(t=Le(C,it.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),r(39,bt=t),r(40,wt=e)}48&t.$$.dirty[0]|3088&t.$$.dirty[1]&&r(10,x={aspect:"0"!==ft,"is-width-content":s,"is-height-content":u,loaded:1===lt,"before-appearance":Boolean(vt)&&0===lt}),1879048192&t.$$.dirty[0]&&r(9,k={"background-image":ut,"background-color":ut?void 0:st,"background-size":dt}),1073741840&t.$$.dirty[0]|1017&t.$$.dirty[1]&&r(8,E={"object-fit":dt,"object-position":ht,filter:[1===lt&&mt?"url(#".concat(mt,")"):"",bt].filter(Boolean).join(" "),"clip-path":wt||void 0,"--divkit-appearance-interpolator":vt||void 0,"--divkit-appearance-fade-start":vt?yt:void 0,"--divkit-appearance-delay":vt?"".concat($t,"ms"):void 0,"--divkit-appearance-duration":vt?"".concat(_t,"ms"):void 0})},[tt,et,nt,rt,lt,ft,a,ct,E,k,x,w,b,_,$,y,v,m,g,f,h,d,c,l,i,o,function(){0===lt&&r(4,lt=1)},function(){0===lt&&r(4,lt=hr)},st,ut,dt,ht,pt,gt,mt,vt,yt,$t,_t,bt,wt,u,s,C,A,V,j,D,P,S,F,I,N,z,M,J,O]}const fr=class extends Tt{constructor(t){super(),Ot(this,t,pr,ur,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},gr={grid:"divkit-d9080",grid_halign_left:"divkit-f63b3",grid_halign_center:"divkit-a14a6",grid_halign_right:"divkit-b0717",grid_valign_top:"divkit-fbca8",grid_valign_center:"divkit-d4310",grid_valign_bottom:"divkit-e4205"};function mr(t){return t>0&&t<1}function vr(t){return String(Math.ceil(1e3*t)/1e3)}function yr(t,e,n){if(t.some(mr)){const e=Math.max(...t.filter(mr).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(ne(r*t[e]/o),",").concat(vr(t[e]),"fr)"):t[e]?i[e]="".concat(vr(t[e]),"fr"):i[e]="auto";return i.join(" ")}function $r(t,e,n){const r=t.slice();return r[29]=e[n],r}function _r(t){let e,n;return e=new an({props:{cls:$e("grid",gr,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],$$slots:{default:[wr]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=$e("grid",gr,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||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function br(t){let e,n;return e=new Ai({props:{layoutParams:t[29].layoutParams,div:t[29].json,templateContext:t[29].templateContext,origJson:t[29].origJson}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(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||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function wr(t){let e,n,r=t[5],o=[];for(let e=0;e<r.length;e+=1)o[e]=br($r(t,r,e));const i=t=>Vt(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=J()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=J()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);P(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=$r(t,r,a);o[a]?(o[a].p(i,n),At(o[a],1)):(o[a]=br(i),o[a].c(),At(o[a],1),o[a].m(e.parentNode,e))}for(Et(),a=r.length;a<o.length;a+=1)i(a);Ct()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)At(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Vt(o[t]);n=!1},d(t){F(o,t),t&&S(e)}}}function xr(t){let e,n,r=!t[6]&&_r(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){t[6]?r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct()):r?(r.p(t,n),64&n[0]&&At(r,1)):(r=_r(t),r.c(),At(r,1),r.m(e.parentNode,e))},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}function kr(t,e,r){let o,i,a,l,s,c,u,d,h,f,g,m,v=n,y=n,$=n,_=n;t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>_()));let{json:b={}}=e,{templateContext:w}=e,{origJson:x}=e,{layoutParams:k}=e;const E=at(Yt);let C,A,V=!1,j=1,D=[],P=[],S=[],F=[],I=0,N=!1,z="top",M="left";return t.$$set=t=>{"json"in t&&r(0,b=t.json),"templateContext"in t&&r(1,w=t.templateContext),"origJson"in t&&r(2,x=t.origJson),"layoutParams"in t&&r(3,k=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(23,o=b.items),8388608&t.$$.dirty[0]&&((null==o?void 0:o.length)&&Array.isArray(o)?r(12,V=!1):(r(12,V=!0),E.logError(Zt(new Error('Incorrect or empty "items" prop for div "grid"'))))),1&t.$$.dirty[0]&&(r(11,i=E.getDerivedFromVars(b.column_count)),_(),_=p(i,(t=>r(27,m=t)))),134225920&t.$$.dirty[0]&&r(13,j=sn(m,j)),8392706&t.$$.dirty[0]&&r(22,a=(!V&&o||[]).map((t=>{let e=t,n=w;return({templateContext:n,json:e}=E.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4194304&t.$$.dirty[0]){let t=[];a.forEach((e=>{t.push(E.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),r(4,C=Wt(t,(t=>[...t]))),$(),$=p(C,(t=>r(26,g=t)))}if(72081416&t.$$.dirty[0]){const t={};let e=0,n=0;r(14,D=[]),r(15,P=[]),r(16,S=[]),r(17,F=[]),r(19,N=!1),r(5,A=a.map(((o,i)=>{var a,l,s,c;const u=g[i],d=Number(u.columnSpan)||1,h=Number(u.rowSpan)||1,p={x:e,y:n,colSpan:d,rowSpan:h},f="match_parent"===(null===(a=u.width)||void 0===a?void 0:a.type)?Number(u.width.weight||1)/d:0,m="match_parent"===(null===(l=u.height)||void 0===l?void 0:l.type)?Number(u.height.weight||1)/h:0,v=1===d&&"fixed"===(null===(s=u.width)||void 0===s?void 0:s.type)&&u.width.value?Number(u.width.value)/d:0,y=1===h&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/h:0;for(let o=e;o<e+d;++o)for(let e=n;e<n+h;++e)t[o+"_"+e]?r(19,N=!0):(t[o+"_"+e]=!0,(!D[o]||D[o]<f)&&r(14,D[o]=f,D),(!P[e]||P[e]<m)&&r(15,P[e]=m,P),(!S[o]||S[o]<v)&&r(16,S[o]=v,S),(!F[e]||F[e]<y)&&r(17,F[e]=y,F));do{++e,e>=j&&(e=0,++n)}while(t[e+"_"+n]);return Object.assign(Object.assign({},o),{layoutParams:{gridArea:p,fakeElement:(null==k?void 0:k.fakeElement)||!1}})}))),0!==e&&r(19,N=!0),N&&E.logError(Zt(new Error('Mismatching "grid" rows/columns'))),r(18,I=n)}1&t.$$.dirty[0]&&(r(10,l=E.getDerivedFromVars(b.content_alignment_vertical)),y(),y=p(l,(t=>r(25,f=t)))),34603008&t.$$.dirty[0]&&r(20,z=vn(f,z)),1&t.$$.dirty[0]&&(r(9,s=E.getDerivedFromVars(b.content_alignment_horizontal)),v(),v=p(s,(t=>r(24,h=t)))),18874368&t.$$.dirty[0]&&r(21,M=mn(h,M)),3145728&t.$$.dirty[0]&&r(8,c={valign:z,halign:M}),516096&t.$$.dirty[0]&&r(7,u={"grid-template-columns":yr(D,S,j),"grid-template-rows":yr(P,F,I)}),528384&t.$$.dirty[0]&&r(6,d=V||N)},[b,w,x,k,C,A,d,u,c,s,l,i,V,j,D,P,S,F,I,N,z,M,a,o,h,f,g,m]}const Er={gallery:"divkit-cbb0f",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5",gallery__scroller:"divkit-a4e39","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon":"divkit-d100d",gallery__arrow_left:"divkit-a0a5d",gallery__arrow_right:"divkit-f0f59","gallery__arrow-icon-path":"divkit-b4173"};function Cr(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(" ")}function Ar(t,e){let n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,o),n=null}),e)}}const{Boolean:Vr}=Pt;function jr(t,e,n){const r=t.slice();return r[70]=e[n],r[71]=e,r[72]=n,r}function Dr(t,e,n){const r=t.slice();return r[73]=e[n],r}function Pr(t){let e,n;return e=new an({props:{cls:$e("gallery",Er,t[16]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",forceHeight:"vertical"===t[6],forceWidth:"horizontal"===t[6],$$slots:{default:[Mr]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.cls=$e("gallery",Er,t[16])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),64&n[0]&&(r.forceHeight="vertical"===t[6]),64&n[0]&&(r.forceWidth="horizontal"===t[6]),335953872&n[0]|16384&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function Sr(t){let e,n;return e=new Ai({props:{layoutParams:t[8],div:t[73].json,templateContext:t[73].templateContext,origJson:t[73].origJson}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),67108864&n[0]&&(r.div=t[73].json),67108864&n[0]&&(r.templateContext=t[73].templateContext),67108864&n[0]&&(r.origJson=t[73].origJson),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function Fr(t){let e,n,r,o,i,a=t[72],l=t[70],s=[];for(let e=0;e<l.length;e+=1)s[e]=Sr(Dr(t,l,e));const c=t=>Vt(s[t],1,1,(()=>{s[t]=null})),u=()=>t[58](e,a),d=()=>t[58](null,a);return{c(){e=I("div");for(let t=0;t<s.length;t+=1)s[t].c();n=M(),this.h()},l(t){e=U(t,"DIV",{class:!0,style:!0});var r=R(e);for(let t=0;t<s.length;t+=1)s[t].l(r);n=G(r),r.forEach(S),this.h()},h(){T(e,"class",r=Er.gallery__items),T(e,"style",o=ee(t[17]))},m(t,r){P(t,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);D(e,n),u(),i=!0},p(r,h){if(t=r,67109120&h[0]){let r;for(l=t[70],r=0;r<l.length;r+=1){const o=Dr(t,l,r);s[r]?(s[r].p(o,h),At(s[r],1)):(s[r]=Sr(o),s[r].c(),At(s[r],1),s[r].m(e,n))}for(Et(),r=l.length;r<s.length;r+=1)c(r);Ct()}(!i||131072&h[0]&&o!==(o=ee(t[17])))&&T(e,"style",o),a!==t[72]&&(d(),a=t[72],u())},i(t){if(!i){for(let t=0;t<l.length;t+=1)At(s[t]);i=!0}},o(t){s=s.filter(Vr);for(let t=0;t<s.length;t+=1)Vt(s[t]);i=!1},d(t){t&&S(e),F(s,t),d()}}}function Ir(t){let e,n,r=t[12]&&t[9]&&Nr(t),o=t[13]&&t[9]&&zr(t);return{c(){r&&r.c(),e=M(),o&&o.c(),n=J()},l(t){r&&r.l(t),e=G(t),o&&o.l(t),n=J()},m(t,i){r&&r.m(t,i),P(t,e,i),o&&o.m(t,i),P(t,n,i)},p(t,i){t[12]&&t[9]?r?r.p(t,i):(r=Nr(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[13]&&t[9]?o?o.p(t,i):(o=zr(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){r&&r.d(t),t&&S(e),o&&o.d(t),t&&S(n)}}}function Nr(t){let e,r,o,i,a,l,s,c;return{c(){e=I("div"),r=N("svg"),o=N("path"),this.h()},l(t){e=U(t,"DIV",{class:!0});var n=R(e);r=q(n,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=R(r);o=q(i,"path",{class:!0,d:!0}),R(o).forEach(S),i.forEach(S),n.forEach(S),this.h()},h(){T(o,"class",i=Er["gallery__arrow-icon-path"]),T(o,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),T(r,"class",a=Er["gallery__arrow-icon"]),T(r,"xmlns","http://www.w3.org/2000/svg"),T(r,"width","32"),T(r,"height","32"),T(r,"viewBox","0 0 32 32"),T(r,"fill","none"),T(e,"class",l=Er.gallery__arrow+" "+Er.gallery__arrow_left)},m(n,i){P(n,e,i),D(e,r),D(r,o),s||(c=O(e,"click",t[61]),s=!0)},p:n,d(t){t&&S(e),s=!1,c()}}}function zr(t){let e,r,o,i,a,l,s,c;return{c(){e=I("div"),r=N("svg"),o=N("path"),this.h()},l(t){e=U(t,"DIV",{class:!0});var n=R(e);r=q(n,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=R(r);o=q(i,"path",{class:!0,d:!0}),R(o).forEach(S),i.forEach(S),n.forEach(S),this.h()},h(){T(o,"class",i=Er["gallery__arrow-icon-path"]),T(o,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),T(r,"class",a=Er["gallery__arrow-icon"]),T(r,"xmlns","http://www.w3.org/2000/svg"),T(r,"width","32"),T(r,"height","32"),T(r,"viewBox","0 0 32 32"),T(r,"fill","none"),T(e,"class",l=Er.gallery__arrow+" "+Er.gallery__arrow_right)},m(n,i){P(n,e,i),D(e,r),D(r,o),s||(c=O(e,"click",t[62]),s=!0)},p:n,d(t){t&&S(e),s=!1,c()}}}function Mr(t){let e,n,r,o,i,a,l,c,u,d,h,p=t[26],f=[];for(let e=0;e<p.length;e+=1)f[e]=Fr(jr(t,p,e));const g=t=>Vt(f[t],1,1,(()=>{f[t]=null}));let m="horizontal"===t[6]&&Ir(t);return{c(){e=I("div"),n=I("div");for(let t=0;t<f.length;t+=1)f[t].c();l=M(),m&&m.c(),c=J(),this.h()},l(t){e=U(t,"DIV",{class:!0,style:!0});var r=R(e);n=U(r,"DIV",{class:!0,style:!0});var o=R(n);for(let t=0;t<f.length;t+=1)f[t].l(o);o.forEach(S),r.forEach(S),l=G(t),m&&m.l(t),c=J(),this.h()},h(){T(n,"class",r=Er["gallery__items-grid"]),T(n,"style",o=ee(t[18])),T(e,"class",i=Er.gallery__scroller+" "+(t[28]?Kt:"")),T(e,"style",a=ee(t[7]))},m(r,o){P(r,e,o),D(e,n);for(let t=0;t<f.length;t+=1)f[t].m(n,null);t[59](n),t[60](e),P(r,l,o),m&&m.m(r,o),P(r,c,o),u=!0,d||(h=O(e,"scroll",(function(){s(t[9]?t[30]:null)&&(t[9]?t[30]:null).apply(this,arguments)})),d=!0)},p(r,l){if(t=r,67242240&l[0]){let e;for(p=t[26],e=0;e<p.length;e+=1){const r=jr(t,p,e);f[e]?(f[e].p(r,l),At(f[e],1)):(f[e]=Fr(r),f[e].c(),At(f[e],1),f[e].m(n,null))}for(Et(),e=p.length;e<f.length;e+=1)g(e);Ct()}(!u||262144&l[0]&&o!==(o=ee(t[18])))&&T(n,"style",o),(!u||268435456&l[0]&&i!==(i=Er.gallery__scroller+" "+(t[28]?Kt:"")))&&T(e,"class",i),(!u||128&l[0]&&a!==(a=ee(t[7])))&&T(e,"style",a),"horizontal"===t[6]?m?m.p(t,l):(m=Ir(t),m.c(),m.m(c.parentNode,c)):m&&(m.d(1),m=null)},i(t){if(!u){for(let t=0;t<p.length;t+=1)At(f[t]);u=!0}},o(t){f=f.filter(Vr);for(let t=0;t<f.length;t+=1)Vt(f[t]);u=!1},d(n){n&&S(e),F(f,n),t[59](null),t[60](null),n&&S(l),m&&m.d(n),n&&S(c),d=!1,h()}}}function Jr(t){let e,n,r,o,i=!t[5]&&Pr(t);return{c(){i&&i.c(),e=J()},l(t){i&&i.l(t),e=J()},m(a,l){i&&i.m(a,l),P(a,e,l),n=!0,r||(o=O(window,"resize",(function(){s(t[9]?t[31]:null)&&(t[9]?t[31]:null).apply(this,arguments)})),r=!0)},p(n,r){(t=n)[5]?i&&(Et(),Vt(i,1,1,(()=>{i=null})),Ct()):i?(i.p(t,r),32&r[0]&&At(i,1)):(i=Pr(t),i.c(),At(i,1),i.m(e.parentNode,e))},i(t){n||(At(i),n=!0)},o(t){Vt(i),n=!1},d(t){i&&i.d(t),t&&S(e),r=!1,o()}}}function Or(t,e,r){let o,i,a,l,s,c,u,d,h,g,m,v,y,$,_,b,w,x,k,E,C,A,V,j,D,P,S,F,I=n,N=n,z=n,M=n,J=n,O=n,T=n,B=n,R=n,W=n;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((()=>T())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>W()));let{json:L={}}=e,{templateContext:U}=e,{origJson:q}=e,{layoutParams:H}=e;const G=at(Yt);let K,X,Y=[],Z=!1,Q=!1,tt=null,et=!1,nt=!1;const it=G.isDesktop;f(t,it,(t=>r(57,S=t)));let lt,st,ut,dt,ht=1,pt="horizontal",ft="start",gt=8,mt="",vt=[],yt={},$t=!1,_t={},bt=0;function wt(){const t=K.scrollLeft,e=K.scrollWidth,n=K.offsetWidth;r(12,Z=t>2),r(13,Q=t+n<e-2)}const xt=Ar(wt,50);function kt(t){K.scroll({left:K.scrollLeft+.75*K.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function Et(){let t=[],e=Y[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<ht;++e){const r=Y[e].children[n];r&&t.push(r)}return t}function Ct(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===pt,o=r?"offsetLeft":"offsetTop",i=r?"left":"top";K.scroll({[i]:Math.max(0,t[e][o]-gt/2),behavior:n})}function At(t){const e=Et(),n=K.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===pt?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"===pt?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!L.id||nt||(null==H?void 0:H.fakeElement)||G.registerInstance(L.id,{setCurrentItem(t){const e=Et();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');Ct(e,t)},setPreviousItem(t){const e=At("prev"),n=Et();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),Ct(n,r)},setNextItem(t){const e="horizontal"===pt?K.scrollLeft+K.offsetWidth===K.scrollWidth:K.scrollTop+K.offsetHeight===K.scrollHeight,n=Et();if(e&&"ring"===t)return void Ct(n,0);const r=At("next");let o=r+1;o>n.length-1&&(o="ring"===t?0:r),Ct(n,o)}}),rt((()=>{r(34,et=!0),!nt&&(xt(),bt)&&Ct(Et(),bt,"auto")})),ot((()=>{r(34,et=!1),L.id&&!(null==H?void 0:H.fakeElement)&&G.unregisterInstance(L.id)})),t.$$set=t=>{"json"in t&&r(0,L=t.json),"templateContext"in t&&r(1,U=t.templateContext),"origJson"in t&&r(2,q=t.origJson),"layoutParams"in t&&r(3,H=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(47,o=L.items),65536&t.$$.dirty[1]&&((null==o?void 0:o.length)&&Array.isArray(o)?r(5,nt=!1):(r(5,nt=!0),G.logError(Zt(new Error('Incorrect or empty "items" prop for div "gallery"'))))),34&t.$$.dirty[0]|65536&t.$$.dirty[1]&&r(46,i=(!nt&&o||[]).map((t=>{let e=t,n=U;return({templateContext:n,json:e}=G.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),32&t.$$.dirty[0]|67108872&t.$$.dirty[1]&&r(9,a=S&&et&&!nt),528&t.$$.dirty[0]|4&t.$$.dirty[1]&&(a?"undefined"!=typeof ResizeObserver&&(r(33,tt=new ResizeObserver((()=>{xt()}))),tt.observe(X)):tt&&(tt.disconnect(),r(33,tt=null))),1&t.$$.dirty[0]&&(r(27,l=G.getDerivedFromVars(L.column_count)),R(),R=p(l,(t=>r(56,P=t)))),33554448&t.$$.dirty[1]&&r(35,ht=sn(P,ht)),32784&t.$$.dirty[1]&&r(26,s=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}(i,ht)),1&t.$$.dirty[0]&&(r(25,c=G.getDerivedFromVars(L.orientation)),B(),B=p(c,(t=>r(55,D=t)))),64&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&r(6,pt=tr(D,pt)),1&t.$$.dirty[0]&&(r(24,u=G.getDerivedFromVars(L.cross_content_alignment)),T(),T=p(u,(t=>r(54,j=t)))),8388640&t.$$.dirty[1]&&r(36,ft=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(j,ft)),1&t.$$.dirty[0]&&(r(23,d=G.getDerivedFromVars(L.item_spacing)),O(),O=p(d,(t=>r(53,V=t)))),4194432&t.$$.dirty[1]&&(r(38,gt=Ee(V,gt)),r(37,lt=ne(gt))),1&t.$$.dirty[0]&&(r(22,h=G.getDerivedFromVars(L.cross_spacing)),J(),J=p(h,(t=>r(52,A=t)))),2097792&t.$$.dirty[1]&&(r(40,ut=Ee(A,gt)),r(39,st=ne(ut))),1&t.$$.dirty[0]&&(r(21,g=G.getDerivedFromVars(L.paddings)),M(),M=p(g,(t=>r(51,C=t)))),1049600&t.$$.dirty[1]&&r(41,mt=ke(C,mt)),64&t.$$.dirty[0]&&r(45,m="horizontal"===pt?"grid-template-columns":"grid-template-rows"),64&t.$$.dirty[0]|32768&t.$$.dirty[1]){let t=[];i.forEach((e=>{const n="horizontal"===pt?"width":"height";t.push(G.getDerivedFromVars(e.json[n]))})),r(14,dt=Wt(t,(t=>t))),z(),z=p(dt,(t=>r(50,E=t)))}if(64&t.$$.dirty[0]|526352&t.$$.dirty[1]&&(r(42,vt=[]),ht>1?vt.push("auto"):E.forEach((t=>{!t&&"horizontal"===pt||"match_parent"===(null==t?void 0:t.type)?vt.push("100%"):vt.push("max-content")}))),1&t.$$.dirty[0]&&(r(20,v=G.getDerivedFromVars(L.scroll_mode)),N(),N=p(v,(t=>r(49,k=t)))),456&t.$$.dirty[0]|262320&t.$$.dirty[1]){const t={};let e={};r(43,$t=!1),(null==H?void 0:H.fakeElement)&&(e.fakeElement=!0),"horizontal"===pt?e.parentVAlign=ft:e.parentHAlign=ft,"paging"===k&&(r(43,$t=!0),e.scrollSnap="start",t["horizontal"===pt?"scroll-padding-left":"scroll-padding-top"]=ne(gt/2)),1===ht&&(e.parentLayoutOrientation=pt),r(7,yt=Ve(t,yt)),r(8,_t=Ve(e,_t))}1&t.$$.dirty[0]&&(r(19,y=G.getDerivedFromVars(L.restrict_parent_scroll)),W(),W=p(y,(t=>r(28,F=t)))),1280&t.$$.dirty[1]&&r(18,$={padding:mt,"grid-gap":st}),18496&t.$$.dirty[1]&&r(17,_={"grid-gap":lt,[m]:Cr(vt)}),64&t.$$.dirty[0]|4096&t.$$.dirty[1]&&r(16,b={orientation:pt,"scroll-snap":$t}),1&t.$$.dirty[0]&&(r(15,w=G.getDerivedFromVars(L.default_item)),I(),I=p(w,(t=>r(48,x=t)))),139264&t.$$.dirty[1]&&r(44,bt=Ee(x,bt))},[L,U,q,H,X,nt,pt,yt,_t,a,K,Y,Z,Q,dt,w,b,_,$,y,v,g,h,d,u,c,s,l,F,it,wt,xt,kt,tt,et,ht,ft,lt,gt,st,ut,mt,vt,$t,bt,m,i,o,x,k,E,C,A,V,j,D,P,S,function(t,e){ct[t?"unshift":"push"]((()=>{Y[e]=t,r(11,Y)}))},function(t){ct[t?"unshift":"push"]((()=>{X=t,r(4,X)}))},function(t){ct[t?"unshift":"push"]((()=>{K=t,r(10,K)}))},()=>kt("left"),()=>kt("right")]}const Tr={tabs:"divkit-e0df5",tabs__list:"divkit-ea19b",tabs__item:"divkit-c25c7",tabs__item_selected:"divkit-d560a",tabs__item_actionable:"divkit-dfda0",tabs__panels:"divkit-f5dc0",tabs__swiper:"divkit-eb42c",tabs__swiper_animated:"divkit-b9f18",tabs__swiper_inited:"divkit-fa574",tabs__panel:"divkit-cc9fb",tabs__panel_visible:"divkit-e7306",tabs__separator:"divkit-b85bf"},{Boolean:Br}=Pt;function Rr(t,e,n){const r=t.slice();return r[79]=e[n],r[81]=n,r}function Wr(t,e,n){const r=t.slice();r[79]=e[n],r[81]=n;const o=r[81]===r[6];return r[82]=o,r}function Lr(t){let e,n;return e=new an({props:{cls:$e("tabs",Tr,t[39]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",$$slots:{default:[Xr]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(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]),1476394986&n[0]|64&n[1]|4194304&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function Ur(t){let e,n,r=t[79].title+"";return{c(){e=z(r),n=M()},l(t){e=H(t,r),n=G(t)},m(t,r){P(t,e,r),P(t,n,r)},p(t,n){65536&n[0]&&r!==(r=t[79].title+"")&&K(e,r)},d(t){t&&S(e),t&&S(n)}}}function qr(t){var e,n,r;let o,i;function a(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[55](t[81],...n)}return o=new Te({props:{cls:$e("tabs__item",Tr,{selected:t[82],actionable:Boolean(t[79].title_click_action)}),actions:!t[79].title_click_action||null!==(e=t[3])&&void 0!==e&&e.fakeElement?[]:[t[79].title_click_action],attrs:{id:"".concat(t[38],"-tab-").concat(t[81]),"aria-controls":"".concat(t[38],"-panel-").concat(t[81]),role:"tab",tabindex:!t[82]||null!==(n=t[3])&&void 0!==n&&n.fakeElement?"-1":t[79].title_click_action?void 0:"0","aria-selected":t[82]?"true":"false"},customAction:null!==(r=t[3])&&void 0!==r&&r.fakeElement?null:a,$$slots:{default:[Ur]},$$scope:{ctx:t}}}),{c(){Nt(o.$$.fragment)},l(t){zt(o.$$.fragment,t)},m(t,e){Mt(o,t,e),i=!0},p(e,n){var r,i,l;t=e;const s={};65600&n[0]&&(s.cls=$e("tabs__item",Tr,{selected:t[82],actionable:Boolean(t[79].title_click_action)})),65544&n[0]&&(s.actions=!t[79].title_click_action||null!==(r=t[3])&&void 0!==r&&r.fakeElement?[]:[t[79].title_click_action]),65608&n[0]&&(s.attrs={id:"".concat(t[38],"-tab-").concat(t[81]),"aria-controls":"".concat(t[38],"-panel-").concat(t[81]),role:"tab",tabindex:!t[82]||null!==(i=t[3])&&void 0!==i&&i.fakeElement?"-1":t[79].title_click_action?void 0:"0","aria-selected":t[82]?"true":"false"}),8&n[0]&&(s.customAction=null!==(l=t[3])&&void 0!==l&&l.fakeElement?null:a),65536&n[0]|4194304&n[2]&&(s.$$scope={dirty:n,ctx:t}),o.$set(s)},i(t){i||(At(o.$$.fragment,t),i=!0)},o(t){Vt(o.$$.fragment,t),i=!1},d(t){Jt(o,t)}}}function Hr(t){let e,n,r;return{c(){e=I("div"),this.h()},l(t){e=U(t,"DIV",{class:!0,style:!0}),R(e).forEach(S),this.h()},h(){T(e,"class",n=Tr.tabs__separator),T(e,"style",r=ee(t[30]))},m(t,n){P(t,e,n)},p(t,n){1073741824&n[0]&&r!==(r=ee(t[30]))&&T(e,"style",r)},d(t){t&&S(e)}}}function Gr(t){let e,n;return e=new Ai({props:{div:t[79].div,templateContext:t[1],layoutParams:t[5]}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.div=t[79].div),2&n[0]&&(r.templateContext=t[1]),32&n[0]&&(r.layoutParams=t[5]),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function Kr(t){let e,n,r,o,i,a,l=t[25][t[81]]&&Gr(t);return{c(){e=I("div"),l&&l.c(),n=M(),this.h()},l(t){e=U(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=R(e);l&&l.l(r),n=G(r),r.forEach(S),this.h()},h(){T(e,"class",r=$e("tabs__panel",Tr,{visible:t[26][t[81]]})),T(e,"role","tabpanel"),T(e,"id",o=t[38]+"-panel-"+t[81]),T(e,"aria-labelledby",i=t[38]+"-tab-"+t[81]),X(e,"left",100*t[81]+"%")},m(t,r){P(t,e,r),l&&l.m(e,null),D(e,n),a=!0},p(t,o){t[25][t[81]]?l?(l.p(t,o),33554432&o[0]&&At(l,1)):(l=Gr(t),l.c(),At(l,1),l.m(e,n)):l&&(Et(),Vt(l,1,1,(()=>{l=null})),Ct()),(!a||67108864&o[0]&&r!==(r=$e("tabs__panel",Tr,{visible:t[26][t[81]]})))&&T(e,"class",r)},i(t){a||(At(l),a=!0)},o(t){Vt(l),a=!1},d(t){t&&S(e),l&&l.d()}}}function Xr(t){let e,n,r,o,i,a,c,u,d,h,p,f=t[16],g=[];for(let e=0;e<f.length;e+=1)g[e]=qr(Wr(t,f,e));const m=t=>Vt(g[t],1,1,(()=>{g[t]=null}));let v=t[17]&&Hr(t),y=t[16],$=[];for(let e=0;e<y.length;e+=1)$[e]=Kr(Rr(t,y,e));const _=t=>Vt($[t],1,1,(()=>{$[t]=null}));return{c(){e=I("div");for(let t=0;t<g.length;t+=1)g[t].c();r=M(),v&&v.c(),o=M(),i=I("div"),a=I("div");for(let t=0;t<$.length;t+=1)$[t].c();this.h()},l(t){e=U(t,"DIV",{class:!0,role:!0});var n=R(e);for(let t=0;t<g.length;t+=1)g[t].l(n);n.forEach(S),r=G(t),v&&v.l(t),o=G(t),i=U(t,"DIV",{class:!0});var l=R(i);a=U(l,"DIV",{class:!0});var s=R(a);for(let t=0;t<$.length;t+=1)$[t].l(s);s.forEach(S),l.forEach(S),this.h()},h(){T(e,"class",n=Tr.tabs__list+" "+(t[37]?Kt:"")),T(e,"role","tablist"),X(e,"--divkit-tabs-font-size",ne(t[7]),!1),X(e,"--divkit-tabs-paddings",t[8],!1),X(e,"--divkit-tabs-line-height",t[21],!1),X(e,"--divkit-tabs-letter-spacing",t[22],!1),X(e,"--divkit-tabs-active-font-weight",t[10]||"",!1),X(e,"--divkit-tabs-inactive-font-weight",t[11]||"",!1),X(e,"--divkit-tabs-active-text-color",t[12],!1),X(e,"--divkit-tabs-inactive-text-color",t[13],!1),X(e,"--divkit-tabs-active-background-color",t[14],!1),X(e,"--divkit-tabs-inactive-background-color",t[15],!1),X(e,"--divkit-tabs-border-radius",t[9],!1),T(a,"class",c=$e("tabs__swiper",Tr,{inited:t[23],animated:t[24]})),T(i,"class",u=Tr.tabs__panels+" "+(t[37]?Kt:""))},m(n,l){P(n,e,l);for(let t=0;t<g.length;t+=1)g[t].m(e,null);t[56](e),P(n,r,l),v&&v.m(n,l),P(n,o,l),P(n,i,l),D(i,a);for(let t=0;t<$.length;t+=1)$[t].m(a,null);t[57](a),t[58](i),d=!0,h||(p=[O(e,"keydown",t[41]),O(a,"touchstart",(function(){s(t[28]?t[42]:void 0)&&(t[28]?t[42]:void 0).apply(this,arguments)})),O(a,"touchmove",(function(){s(t[28]?t[43]:void 0)&&(t[28]?t[43]:void 0).apply(this,arguments)})),O(a,"touchend",(function(){s(t[28]?t[44]:void 0)&&(t[28]?t[44]:void 0).apply(this,arguments)})),O(a,"touchcancel",(function(){s(t[28]?t[44]:void 0)&&(t[28]?t[44]:void 0).apply(this,arguments)}))],h=!0)},p(r,l){if(t=r,65608&l[0]|640&l[1]){let n;for(f=t[16],n=0;n<f.length;n+=1){const r=Wr(t,f,n);g[n]?(g[n].p(r,l),At(g[n],1)):(g[n]=qr(r),g[n].c(),At(g[n],1),g[n].m(e,null))}for(Et(),n=f.length;n<g.length;n+=1)m(n);Ct()}if((!d||64&l[1]&&n!==(n=Tr.tabs__list+" "+(t[37]?Kt:"")))&&T(e,"class",n),128&l[0]&&X(e,"--divkit-tabs-font-size",ne(t[7]),!1),256&l[0]&&X(e,"--divkit-tabs-paddings",t[8],!1),2097152&l[0]&&X(e,"--divkit-tabs-line-height",t[21],!1),4194304&l[0]&&X(e,"--divkit-tabs-letter-spacing",t[22],!1),1024&l[0]&&X(e,"--divkit-tabs-active-font-weight",t[10]||"",!1),2048&l[0]&&X(e,"--divkit-tabs-inactive-font-weight",t[11]||"",!1),4096&l[0]&&X(e,"--divkit-tabs-active-text-color",t[12],!1),8192&l[0]&&X(e,"--divkit-tabs-inactive-text-color",t[13],!1),16384&l[0]&&X(e,"--divkit-tabs-active-background-color",t[14],!1),32768&l[0]&&X(e,"--divkit-tabs-inactive-background-color",t[15],!1),512&l[0]&&X(e,"--divkit-tabs-border-radius",t[9],!1),t[17]?v?v.p(t,l):(v=Hr(t),v.c(),v.m(o.parentNode,o)):v&&(v.d(1),v=null),100728866&l[0]|128&l[1]){let e;for(y=t[16],e=0;e<y.length;e+=1){const n=Rr(t,y,e);$[e]?($[e].p(n,l),At($[e],1)):($[e]=Kr(n),$[e].c(),At($[e],1),$[e].m(a,null))}for(Et(),e=y.length;e<$.length;e+=1)_(e);Ct()}(!d||25165824&l[0]&&c!==(c=$e("tabs__swiper",Tr,{inited:t[23],animated:t[24]})))&&T(a,"class",c),(!d||64&l[1]&&u!==(u=Tr.tabs__panels+" "+(t[37]?Kt:"")))&&T(i,"class",u)},i(t){if(!d){for(let t=0;t<f.length;t+=1)At(g[t]);for(let t=0;t<y.length;t+=1)At($[t]);d=!0}},o(t){g=g.filter(Br);for(let t=0;t<g.length;t+=1)Vt(g[t]);$=$.filter(Br);for(let t=0;t<$.length;t+=1)Vt($[t]);d=!1},d(n){n&&S(e),F(g,n),t[56](null),n&&S(r),v&&v.d(n),n&&S(o),n&&S(i),F($,n),t[57](null),t[58](null),h=!1,l(p)}}}function Yr(t){let e,n,r=!t[4]&&Lr(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){t[4]?r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct()):r?(r.p(t,n),16&n[0]&&At(r,1)):(r=Lr(t),r.c(),At(r,1),r.m(e.parentNode,e))},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}function Zr(t,e,r){let o,i,a,l,s,c,u,d,h,f,g,m,v,y,$,_,b,w,x,k,E=n,C=n,A=n,V=n,j=n,D=n,P=n,S=n;var F;t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S()));let{json:I={}}=e,{templateContext:N}=e,{origJson:z}=e,{layoutParams:M}=e;const J=at(Yt),O=J.genId("tabs");let T,B,R,W=!1,L={};const U=J.getJsonWithVars(I.selected_tab);let q,H,G=U&&Number(U)||0,K=12,X="",Y="",Z="",Q="",tt="",et="",nt="",rt="",it="",lt="",st=!1,ut=!1,dt=G,ht=[],pt=[];async function ft(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(dt=G,r(6,G=t),xt(),yt(),e){await gt();const t=T.querySelector(".".concat(Tr.tabs__item_selected));t&&t.focus()}}function mt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==o?void 0:o.length;if(!n)return;let r=G+t;r>=n?r=0:r<0&&(r=n-1),ft(r,e)}function vt(t,e){return G===e||(ft(e),!1)}function yt(){r(24,ut=!0),$t(100*-G),_t(),async function(){await gt();const t=document.getElementById("".concat(O,"-panel-").concat(G));t&&r(19,B.style.height=ne(t.offsetHeight),B)}(),wt(),Ct=-G*B.clientWidth}async function $t(t){await gt(),r(20,R.style.transform="translate3d(".concat(t,"%,0,0)"),R)}function _t(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,G-1):Math.min(G,dt),n=t?Math.min(o.length-1,G+1):Math.max(G,dt);r(25,ht=ht.map(((t,r)=>t||r>=e&&r<=n))),r(26,pt=pt.map(((t,r)=>r>=e&&r<=n)))}let bt=null;function wt(){bt&&clearTimeout(bt),bt=window.setTimeout((()=>{r(26,pt=o.map(((t,e)=>e===G)))}),400)}function xt(){st||(r(23,st=!0),r(19,B.style.height=ne(B.clientHeight),B),r(20,R.style.transform="translate3d(".concat(100*-dt,"%,0,0)"),R))}let kt,Et,Ct,At=null,Vt=null,jt=!1,Dt=!1;return!I.id||W||(null==M?void 0:M.fakeElement)||J.registerInstance(I.id,{setCurrentItem(t){if(t<0||t>o.length-1)throw new Error('Item is out of range in "set-current-item" action');ft(t)},setPreviousItem(t){let e=G-1;e<0&&(e="ring"===t?o.length-1:G),ft(e)},setNextItem(t){let e=G+1;e>o.length-1&&(e="ring"===t?0:G),ft(e)}}),ot((()=>{I.id&&!(null==M?void 0:M.fakeElement)&&J.unregisterInstance(I.id)})),t.$$set=t=>{"json"in t&&r(0,I=t.json),"templateContext"in t&&r(1,N=t.templateContext),"origJson"in t&&r(2,z=t.origJson),"layoutParams"in t&&r(3,M=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(16,o=I.items||[]),65536&t.$$.dirty[0]&&((null==o?void 0:o.length)&&Array.isArray(o)?r(4,W=!1):(r(4,W=!0),J.logError(Zt(new Error('Incorrect or empty "items" prop for div "tabs"'))))),1&t.$$.dirty[0]&&(r(36,i=J.getDerivedFromVars(I.width)),P(),P=p(i,(t=>r(54,x=t)))),1&t.$$.dirty[0]&&(r(35,a=J.getDerivedFromVars(I.height)),D(),D=p(a,(t=>r(53,w=t)))),40&t.$$.dirty[0]|12582912&t.$$.dirty[1]){let t={};(null==M?void 0:M.fakeElement)&&(t.fakeElement=!0),"wrap_content"===(null==x?void 0:x.type)&&(t.parentHorizontalWrapContent=!0),w&&"wrap_content"!==w.type||(t.parentVerticalWrapContent=!0),r(5,L=Ve(t,L))}if(65617&t.$$.dirty[0]&&!W&&(G<0||G>=o.length)&&(J.logError(Zt(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:I.selected_tab,length:o.length}})),r(6,G=G<0?0:o.length-1)),1&t.$$.dirty[0]&&(r(34,l=J.getDerivedFromVars(I.tab_title_style)),j(),j=p(l,(t=>r(52,b=t)))),2097152&t.$$.dirty[1]&&r(48,s=b||{}),128&t.$$.dirty[0]|131072&t.$$.dirty[1]&&r(7,K=sn(s.font_size,K)),384&t.$$.dirty[0]|131072&t.$$.dirty[1]&&(s.font_size||s.paddings)){const t=s.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/K*10,right:(Number(t.right)||0)/K*10,bottom:(Number(t.bottom)||0)/K*10,left:(Number(t.left)||0)/K*10};r(8,X=ke(e,X))}if(128&t.$$.dirty[0]|131072&t.$$.dirty[1]){const t=s.line_height;void 0!==t&&We(t)&&r(21,Y=ne(t/K*10))}if(128&t.$$.dirty[0]|131072&t.$$.dirty[1]){const t=s.letter_spacing;void 0!==t&&xe(t)&&r(22,Z=ne(t/K*10))}if(640&t.$$.dirty[0]|147456&t.$$.dirty[1]&&(s.corner_radius||s.corners_radius||s.font_size)){const t=null!==r(45,F=s.corner_radius)&&void 0!==F?F:1e3;s.corners_radius?r(9,Q=function(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]&&!xe(o[t]))return r;return Se(t,e,n)}(s.corners_radius,t,K,Q)):xe(t)&&r(9,Q=ne(t/K*10))}1024&t.$$.dirty[0]|131072&t.$$.dirty[1]&&r(10,q=un(s.active_font_weight||s.font_weight,q)),2048&t.$$.dirty[0]|131072&t.$$.dirty[1]&&r(11,H=un(s.inactive_font_weight||s.font_weight,H)),4096&t.$$.dirty[0]|131072&t.$$.dirty[1]&&r(12,tt=ie(s.active_text_color,1,tt)),8192&t.$$.dirty[0]|131072&t.$$.dirty[1]&&r(13,et=ie(s.inactive_text_color,1,et)),16384&t.$$.dirty[0]|131072&t.$$.dirty[1]&&r(14,nt=ie(s.active_background_color,1,nt)),32768&t.$$.dirty[0]|131072&t.$$.dirty[1]&&r(15,rt=ie(s.inactive_background_color,1,rt)),1&t.$$.dirty[0]&&(r(33,c=J.getDerivedFromVars(I.has_separator)),V(),V=p(c,(t=>r(17,_=t)))),1&t.$$.dirty[0]&&(r(32,u=J.getDerivedFromVars(I.separator_color)),A(),A=p(u,(t=>r(51,$=t)))),1&t.$$.dirty[0]&&(r(31,d=J.getDerivedFromVars(I.separator_paddings)),C(),C=p(d,(t=>r(50,y=t)))),131072&t.$$.dirty[0]|1671168&t.$$.dirty[1]&&_&&($&&r(46,it=ie($,1,it)),y&&r(47,lt=ke(y,lt))),98304&t.$$.dirty[1]&&r(30,h={background:it,margin:lt}),1&t.$$.dirty[0]&&(r(29,f=J.getDerivedFromVars(I.switch_tabs_by_content_swipe_enabled)),E(),E=p(f,(t=>r(49,v=t)))),262144&t.$$.dirty[1]&&r(28,g=void 0===v||Boolean(v)),1&t.$$.dirty[0]&&(r(27,m=J.getDerivedFromVars(I.restrict_parent_scroll)),S(),S=p(m,(t=>r(37,k=t)))),65536&t.$$.dirty[0]&&(W||(r(25,ht=o.map(((t,e)=>e===G))),r(26,pt=o.map(((t,e)=>e===G)))))},[I,N,z,M,W,L,G,K,X,Q,q,H,tt,et,nt,rt,o,_,T,B,R,Y,Z,st,ut,ht,pt,m,g,f,h,d,u,c,l,a,i,k,O,{},vt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&o){if(37===t.which)mt(-1,!0);else if(39===t.which)mt(1,!0);else if(36===t.which)ft(0,!0);else{if(35!==t.which)return;ft(o.length-1,!0)}t.preventDefault()}},function(t){var e;const n=t.target,i=null===(e=null==n?void 0:n.closest)||void 0===e?void 0:e.call(n,".".concat(Kt));o.length<2||t.touches.length>1||i&&i!==B||(jt=!1,Dt=!1,At=Ne(t),Vt=null,kt=Date.now(),Et=Ct||-G*B.clientWidth,r(24,ut=!1),bt&&clearTimeout(bt))},function(t){const e=Ne(t);if(!At||Vt&&Vt.x===e.x&&Vt.y===e.y)return;Vt=e;const n=B.clientWidth;if(jt){Ct=e.x-At.x+Et;const t=n*o.length;if(Ct>0)Ct=Ct*n/(Ct+3*n);else if(-Ct+n>t){let e=-Ct+n-t;e=e*n/(e+3*n),Ct=n-t-e}$t(100*Ct/n)}else Math.abs(e.y-At.y)>10?Dt=!0:!Dt&&Math.abs(e.x-At.x)>8&&(xt(),jt=!0,At=e,$t(100*-G),_t(!0));jt&&t.cancelable&&t.preventDefault()},function(){Dt=!1,At=null;let t=G;if(!jt)return;jt=!1;const e=Math.min(512,B.clientWidth);Math.abs(Et-Ct)>e/4*Math.min(1,(Date.now()-kt)/750)&&(t+=Et>Ct?1:-1),t>=o.length?t=o.length-1:t<0&&(t=0),t===G?(Ct=-t*e,$t(100*-t),wt()):ft(t)},F,it,lt,s,v,y,$,b,w,x,(t,e)=>vt(0,t),function(t){ct[t?"unshift":"push"]((()=>{T=t,r(18,T)}))},function(t){ct[t?"unshift":"push"]((()=>{R=t,r(20,R)}))},function(t){ct[t?"unshift":"push"]((()=>{B=t,r(19,B)}))}]}const Qr="divkit-eb860",to="divkit-e08c6";function eo(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function no(t){return t*t*t}function ro(t){const e=t-1;return e*e*e+1}function oo(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 io=oo([.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]),ao=oo([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]),lo={linear:r,ease:io,ease_in:no,ease_out:ro,ease_in_out:eo,spring:ao};function so(t){return Math.max(...t.map((t=>(Number(t.duration)||200)+(Number(t.start_delay)||0))))}function co(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=(lo[t.interpolator||"ease_in_out"]||eo)(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,p;const e=1-u+u*(t.scale||0),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,o=null!==(p=t.pivot_y)&&void 0!==p?p:.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)),p=[u,h.length?h[h.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(p||"none",";opacity:").concat(c)}}}function uo(t,e,n){return t*(1-n)+e*n}const ho={linear:r,ease:io,ease_in:no,ease_out:ro,ease_in_out:eo,spring:ao};function po(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 ho?ho[l.interpolator]:eo,css:t=>["top:".concat(uo(i.top,a.top,t)-o.top,"px"),"left:".concat(uo(i.left,a.left,t)-o.left,"px"),"width:".concat(uo(i.width,a.width,t),"px"),"height:".concat(uo(i.height,a.height,t),"px")].join(";")}}function fo(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...fo(t))})):e.push(t),e}const{Map:go}=Pt;function mo(t,e,n){const r=t.slice();return r[27]=e[n],r}function vo(t){let e,n;return e=new an({props:{cls:"divkit-b8efc",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[xo]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.json=t[0]),4&n&&(r.origJson=t[2]),2&n&&(r.templateContext=t[1]),8&n&&(r.layoutParams=t[3]),1073742034&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function yo(t){let e,r,o=t[7],i=$o(t);return{c(){i.c(),e=J()},l(t){i.l(t),e=J()},m(t,n){i.m(t,n),P(t,e,n),r=!0},p(t,r){128&r&&d(o,o=t[7])?(Et(),Vt(i,1,1,n),Ct(),i=$o(t),i.c(),At(i,1),i.m(e.parentNode,e)):i.p(t,r)},i(t){r||(At(i),r=!0)},o(t){Vt(i),r=!1},d(t){t&&S(e),i.d(t)}}}function $o(t){let e,n;return e=new Ai({props:{div:t[7].div,templateContext:t[1]}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(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||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function _o(t){let e,n,r,o,i,a,l,s,c,u;function d(){return t[11](t[27])}return r=new Ai({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=I("div"),n=I("div"),Nt(r.$$.fragment),i=M(),this.h()},l(t){e=U(t,"DIV",{class:!0});var o=R(e);n=U(o,"DIV",{class:!0});var a=R(n);zt(r.$$.fragment,a),a.forEach(S),i=G(o),o.forEach(S),this.h()},h(){T(n,"class",o=to),T(e,"class",a=Qr)},m(t,o){P(t,e,o),D(e,n),Mt(r,n,null),D(e,i),s=!0,c||(u=O(e,"introend",d),c=!0)},p(e,n){t=e;const o={};64&n&&(o.div=t[27].json),64&n&&(o.templateContext=t[27].templateContext),r.$set(o)},i(n){s||(At(r.$$.fragment,n),l||mt((()=>{l=Dt(e,po,t[27]),l.start()})),s=!0)},o(t){Vt(r.$$.fragment,t),s=!1},d(t){t&&S(e),Jt(r),c=!1,u()}}}function bo(t){let e,n,r,o,i,a,l,s,c,u;function d(){return t[10](t[27])}return r=new Ai({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=I("div"),n=I("div"),Nt(r.$$.fragment),i=M(),this.h()},l(t){e=U(t,"DIV",{class:!0,style:!0});var o=R(e);n=U(o,"DIV",{class:!0});var a=R(n);zt(r.$$.fragment,a),a.forEach(S),i=G(o),o.forEach(S),this.h()},h(){T(n,"class",o=to),T(e,"class",a=Qr),X(e,"left",t[27].offsetLeft+"px"),X(e,"top",t[27].offsetTop+"px"),X(e,"width",t[27].width+"px"),X(e,"height",t[27].height+"px")},m(t,o){P(t,e,o),D(e,n),Mt(r,n,null),D(e,i),s=!0,c||(u=O(e,"introend",d),c=!0)},p(n,o){t=n;const i={};64&o&&(i.div=t[27].json),64&o&&(i.templateContext=t[27].templateContext),r.$set(i),(!s||64&o)&&X(e,"left",t[27].offsetLeft+"px"),(!s||64&o)&&X(e,"top",t[27].offsetTop+"px"),(!s||64&o)&&X(e,"width",t[27].width+"px"),(!s||64&o)&&X(e,"height",t[27].height+"px")},i(n){s||(At(r.$$.fragment,n),l||mt((()=>{l=Dt(e,co,t[27]),l.start()})),s=!0)},o(t){Vt(r.$$.fragment,t),s=!1},d(t){t&&S(e),Jt(r),c=!1,u()}}}function wo(t,e){let n,r,o,i,a;const l=[bo,_o],s=[];function c(t,e){return"direction"in t[27]?0:1}return r=c(e),o=s[r]=l[r](e),{key:t,first:null,c(){n=J(),o.c(),i=J(),this.h()},l(t){n=J(),o.l(t),i=J(),this.h()},h(){this.first=n},m(t,e){P(t,n,e),s[r].m(t,e),P(t,i,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?s[r].p(e,n):(Et(),Vt(s[a],1,1,(()=>{s[a]=null})),Ct(),o=s[r],o?o.p(e,n):(o=s[r]=l[r](e),o.c()),At(o,1),o.m(i.parentNode,i))},i(t){a||(At(o),a=!0)},o(t){Vt(o),a=!1},d(t){t&&S(n),s[r].d(t),t&&S(i)}}}function xo(t){var e;let n,r,o,i,a=[],l=new go,s=(null===(e=t[7])||void 0===e?void 0:e.div)&&yo(t),c=t[6];const u=t=>t[27];for(let e=0;e<c.length;e+=1){let n=mo(t,c,e),r=u(n);l.set(r,a[e]=wo(r,n))}return{c(){s&&s.c(),n=M(),r=I("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){s&&s.l(t),n=G(t),r=U(t,"DIV",{class:!0,"aria-hidden":!0});var e=R(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(S),this.h()},h(){T(r,"class",o="divkit-adaae"),T(r,"aria-hidden","true")},m(e,o){s&&s.m(e,o),P(e,n,o),P(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&&At(s,1)):(s=yo(t),s.c(),At(s,1),s.m(n.parentNode,n)):s&&(Et(),Vt(s,1,1,(()=>{s=null})),Ct()),320&e&&(c=t[6],Et(),a=function(t,e,n,r,o,i,a,l,s,c,u,d){let h=t.length,p=i.length,f=h;const g={};for(;f--;)g[t[f].key]=f;const m=[],v=new Map,y=new Map;for(f=p;f--;){const t=d(o,i,f),r=n(t);let l=a.get(r);l?l.p(t,e):(l=c(r,t),l.c()),v.set(r,m[f]=l),r in g&&y.set(r,Math.abs(f-g[r]))}const $=new Set,_=new Set;function b(t){At(t,1),t.m(l,u),a.set(t.key,t),u=t.first,p--}for(;h&&p;){const e=m[p-1],n=t[h-1],r=e.key,o=n.key;e===n?(u=e.first,h--,p--):v.has(o)?!a.has(r)||$.has(r)?b(e):_.has(o)?h--:y.get(r)>y.get(o)?(_.add(r),b(e)):($.add(o),h--):(s(n,a),h--)}for(;h--;){const e=t[h];v.has(e.key)||s(e,a)}for(;p;)b(m[p-1]);return m}(a,e,u,0,t,c,l,r,St,wo,null,mo),Ct())},i(t){if(!i){At(s);for(let t=0;t<c.length;t+=1)At(a[t]);i=!0}},o(t){Vt(s);for(let t=0;t<a.length;t+=1)Vt(a[t]);i=!1},d(e){s&&s.d(e),e&&S(n),e&&S(r);for(let t=0;t<a.length;t+=1)a[t].d();t[12](null)}}}function ko(t){let e,n,r=!t[5]&&vo(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){let[o]=n;t[5]?r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct()):r?(r.p(t,o),32&o&&At(r,1)):(r=vo(t),r.c(),At(r,1),r.m(e.parentNode,e))},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}function Eo(t){return"change_bounds"===t.type?t:"set"===t.type?Eo(t.items[0]):null}function Co(t,e,n){let r,{json:o={}}=e,{templateContext:i}=e,{origJson:a}=e,{layoutParams:l}=e;const s=at(Yt),c=at(_e);let u,d=new Map,h=new Set,p=!1,f=null,g=[],m=[],v=[],y=[];function $(t,e,n){let{json:r,templateContext:o,transitions:i,node:a}=e;r=s.getJsonWithVars(r),i=s.getJsonWithVars(i);const l=fo(i),c=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{margins:void 0,alpha:(u=l,u.some((t=>"fade"===t.type))?void 0:r.alpha)}),templateContext: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};var u}const _=o.div_id||o.id;let b;_?(null==l?void 0:l.fakeElement)||(c.registerInstance(_,{async setState(t){if(b===t)return;s.setRunning("stateChange",!0);const e=new Set(h);g.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,g=[]);let o=[];if(u){const t=u.getBoundingClientRect();o=v.map((e=>$(t,e,"out")))}y.forEach((t=>{d.set(t.id,t.node.getBoundingClientRect())})),m=[],v=[],y=[];const i=r.find((e=>e.state_id===t))||null;if(i?(b=t,n(7,w=i)):s.logError(Zt(new Error("Cannot find state with id"),{additional:{stateId:t}})),await gt(),!u)return;const a=u.getBoundingClientRect();let l=m.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>$(a,t,"in")));o=o.filter((t=>{var e;return!(!t.json.id||h.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=o.concat(l),p=c.reduce(((t,e)=>Math.max(t,so(e.transitions))),0),f=y.filter((t=>d.has(t.id))).map((t=>({json:Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}}),templateContext:t.templateContext,rootBbox:a,beforeBbox:d.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:Eo(t.transitions),resolvePromise:t.resolvePromise})));n(6,g=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:p}))),...f]),d.clear(),s.setRunning("stateChange",!1)},getChild(t){if(f&&f.has(t))return f.get(t);s.logError(Zt(new Error("Missing state block with id"),{additional:{id:t}}))}}),it(_e,{registerInstance(t,e){f||(f=new Map),f.has(t)?s.logError(Zt(new Error("Duplicate state with id"),{additional:{id:t}})):f.set(t,e)},unregisterInstance(t){null==f||f.delete(t)},runVisibilityTransition(t,e,r,o,i){if(!u)return Promise.resolve();const a=$(u.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:o},i),l=so(a.transitions),s=Object.assign(Object.assign({},a),{maxDuration:l});return n(6,g=[...g.filter((t=>t.node!==a.node)),s]),new Promise((t=>{s.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const o={json:t,templateContext:e,transitions:n,node:r};return m.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const o={json:t,templateContext:e,transitions:n,node:r};return v.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 y.push(i),new Promise((t=>{i.resolvePromise=t}))},hasTransitionChange:t=>!!t&&d.has(t),registerChild(t){h.add(t)},unregisterChild(t){h.delete(t)}})):(p=!0,s.logError(Zt(new Error('Missing "id" prop for div "state"'))));let w=null;const x=s.getJsonWithVars(o.default_state_id);let k=!1;function E(t){n(6,g=g.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return ot((()=>{_&&!(null==l?void 0:l.fakeElement)&&c.unregisterInstance(_)})),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&&(h=new Set),1&t.$$.dirty&&n(9,r=o.states||[]),512&t.$$.dirty&&((null==r?void 0:r.length)?n(5,p=!1):(n(5,p=!0),s.logError(Zt(new Error('Empty "states" prop for div "state"'))))),512&t.$$.dirty&&function(t){k||(k=!0,t.length&&(x?(b=x,n(7,w=t.find((t=>t.state_id===b))||null),w||s.logError(Zt(new Error("Cannot find state for default_state_id"),{additional:{selectedId:b}}))):(n(7,w=t[0]),b=w.state_id)))}(r)},[o,i,a,l,u,p,g,w,E,r,t=>E(t),t=>E(t),function(t){ct[t?"unshift":"push"]((()=>{u=t,n(4,u)}))}]}const Ao={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f"},{Boolean:Vo}=Pt;function jo(t,e,n){const r=t.slice();return r[47]=e[n],r}function Do(t){let e,n;return e=new an({props:{cls:$e("pager",Ao,t[8]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,$$slots:{default:[So]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=$e("pager",Ao,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),33336&n[0]|524288&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function Po(t){var e;let n,r,o,i,a;return r=new Ai({props:{div:t[47].json,templateContext:t[47].templateContext,origJson:t[47].origJson,layoutParams:null!==(e=t[3])&&void 0!==e&&e.fakeElement?{fakeElement:!0}:void 0}}),{c(){n=I("div"),Nt(r.$$.fragment),o=M(),this.h()},l(t){n=U(t,"DIV",{class:!0});var e=R(n);zt(r.$$.fragment,e),o=G(e),e.forEach(S),this.h()},h(){T(n,"class",i=Ao.pager__item)},m(t,e){P(t,n,e),Mt(r,n,null),D(n,o),a=!0},p(t,e){var n;const o={};16&e[0]&&(o.div=t[47].json),16&e[0]&&(o.templateContext=t[47].templateContext),16&e[0]&&(o.origJson=t[47].origJson),8&e[0]&&(o.layoutParams=null!==(n=t[3])&&void 0!==n&&n.fakeElement?{fakeElement:!0}:void 0),r.$set(o)},i(t){a||(At(r.$$.fragment,t),a=!0)},o(t){Vt(r.$$.fragment,t),a=!1},d(t){t&&S(n),Jt(r)}}}function So(t){let e,n,r,o,i,a,l=t[4],s=[];for(let e=0;e<l.length;e+=1)s[e]=Po(jo(t,l,e));const c=t=>Vt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=I("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=U(t,"DIV",{class:!0,style:!0});var n=R(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(S),this.h()},h(){T(e,"class",n=Ao.pager__items+" "+(t[15]?Kt:"")),T(e,"style",r=ee(t[9]))},m(n,r){P(n,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);t[36](e),o=!0,i||(a=O(e,"scroll",t[16]),i=!0)},p(t,i){if(24&i[0]){let n;for(l=t[4],n=0;n<l.length;n+=1){const r=jo(t,l,n);s[n]?(s[n].p(r,i),At(s[n],1)):(s[n]=Po(r),s[n].c(),At(s[n],1),s[n].m(e,null))}for(Et(),n=l.length;n<s.length;n+=1)c(n);Ct()}(!o||32768&i[0]&&n!==(n=Ao.pager__items+" "+(t[15]?Kt:"")))&&T(e,"class",n),(!o||512&i[0]&&r!==(r=ee(t[9])))&&T(e,"style",r)},i(t){if(!o){for(let t=0;t<l.length;t+=1)At(s[t]);o=!0}},o(t){s=s.filter(Vo);for(let t=0;t<s.length;t+=1)Vt(s[t]);o=!1},d(n){n&&S(e),F(s,n),t[36](null),i=!1,a()}}}function Fo(t){let e,n,r=!t[7]&&Do(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){t[7]?r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct()):r?(r.p(t,n),128&n[0]&&At(r,1)):(r=Do(t),r.c(),At(r,1),r.m(e.parentNode,e))},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}function Io(t,e,r){let o,i,a,l,s,c,u,d,h,f,g,m,v,y,$,_,b,w=n,x=n,k=n,E=n,C=n,A=n;var V,j,D,P,S,F,I;t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A()));let{json:N={}}=e,{templateContext:z}=e,{origJson:M}=e,{layoutParams:J}=e;const O=at(Yt),T=O.genId("pager");let B,R=!1,W=0,L=0,U=!1,q="horizontal",H="",G="",K="";const X=Ar((function(){const t=function(){const t=Array.from(B.children),e=B.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===q?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:W}();t!==W&&r(25,W=t)}),50);function Y(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===q,o=B.children[t],i=n?"offsetLeft":"offsetTop",a=n?"left":"top";B.scroll({[a]:o[i],behavior:e}),r(25,W=t)}return N.id&&!(null==J?void 0:J.fakeElement)&&O.registerInstance(N.id,{setCurrentItem(t){if(t<0||t>o.length-1)throw new Error('Item is out of range in "set-current-item" action');Y(t)},setPreviousItem(t){let e=W-1;e<0&&(e="ring"===t?o.length-1:W),Y(e)},setNextItem(t){let e=W+1;e>o.length-1&&(e="ring"===t?0:W),Y(e)}}),rt((()=>{if(Boolean(document.getElementById("".concat(T,"-tab-0")))){const t=[...B.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(T,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(T,"-tab-").concat(e))}})),ot((()=>{N.id&&!(null==J?void 0:J.fakeElement)&&O.unregisterInstance(N.id)})),t.$$set=t=>{"json"in t&&r(0,N=t.json),"templateContext"in t&&r(1,z=t.templateContext),"origJson"in t&&r(2,M=t.origJson),"layoutParams"in t&&r(3,J=t.layoutParams)},t.$$.update=()=>{if(131073&t.$$.dirty[0]&&((null===r(17,V=N.items)||void 0===V?void 0:V.length)&&Array.isArray(N.items)?r(24,R=!1):(r(24,R=!0),O.logError(Zt(new Error('Incorrect or empty "items" prop for div "pager"'))))),16777219&t.$$.dirty[0]&&r(4,o=(!R&&N.items||[]).map((t=>{let e=t,n=z;return({templateContext:n,json:e}=O.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(r(14,i=O.getDerivedFromVars(N.layout_mode)),x(),x=p(i,(t=>r(32,v=t)))),2&t.$$.dirty[1]&&(v?"percentage"!==v.type&&"fixed"!==v.type?(r(26,U=!0),O.logError(Zt(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):r(26,U=!1):(r(26,U=!0),O.logError(Zt(new Error('Empty "layout_mode" prop for div "pager"'))))),1&t.$$.dirty[0]&&(r(13,a=O.getDerivedFromVars(N.orientation)),C(),C=p(a,(t=>r(35,_=t)))),134217728&t.$$.dirty[0]|16&t.$$.dirty[1]&&r(27,q=tr(_,q)),1&t.$$.dirty[0]&&(r(12,l=O.getDerivedFromVars(N.item_spacing)),E(),E=p(l,(t=>r(34,$=t)))),8&t.$$.dirty[1]){const t=null==$?void 0:$.value;t&&xe(t)&&r(28,H=ne(t||0))}if(1&t.$$.dirty[0]&&(r(11,s=O.getDerivedFromVars(N.paddings)),k(),k=p(s,(t=>r(33,y=t)))),536870912&t.$$.dirty[0]|4&t.$$.dirty[1]&&r(29,G=ke(y,G)),1&t.$$.dirty[0]&&(r(10,c=O.getDerivedFromVars(N.restrict_parent_scroll)),A(),A=p(c,(t=>r(15,b=t)))),134217728&t.$$.dirty[0]&&r(31,u="horizontal"===q?"grid-auto-columns":"grid-auto-rows"),419168257&t.$$.dirty[0]|2&t.$$.dirty[1])if("fixed"===(null==v?void 0:v.type)){const t=re("horizontal"===q?((null===r(18,j=N.paddings)||void 0===j?void 0:j.left)||0)+((null===r(19,D=N.paddings)||void 0===D?void 0:D.right)||0):((null===r(20,P=N.paddings)||void 0===P?void 0:P.top)||0)+((null===r(21,S=N.paddings)||void 0===S?void 0:S.bottom)||0)),e=null===r(22,F=v.neighbour_page_width)||void 0===F?void 0:F.value;r(30,K=e?"calc(100% + ".concat(t," - 2 * ").concat(re(e)," - 2 * ").concat(H,")"):"100%")}else if("percentage"===(null==v?void 0:v.type)){const t=null===r(23,I=v.page_width)||void 0===I?void 0:I.value;r(30,K="".concat(Number(t),"%"))}1879048192&t.$$.dirty[0]|1&t.$$.dirty[1]&&r(9,d={"grid-gap":H,padding:G,[u]:K}),134217728&t.$$.dirty[0]&&r(8,h={orientation:q}),83886080&t.$$.dirty[0]&&r(7,f=R||U),33554448&t.$$.dirty[0]&&function(t,e){const n=N.id;if(n){const i=new Map(m);r=g,m=i.set(n,{instId:T,size:t,currentItem:e,scrollToPagerItem:Y}),o=m,r.set(o)}var r,o}(o.length,W),33554432&t.$$.dirty[0]&&function(t){var e;if(t===L)return;L=t;const n=O.getJsonWithVars(null===(e=o[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&O.execAnyActions(n)}(W)},r(6,g=O.getStore("pagers")),w(),w=p(g,(t=>r(38,m=t))),[N,z,M,J,o,B,g,f,h,d,c,s,l,a,i,b,X,V,j,D,P,S,F,I,R,W,U,q,H,G,K,u,v,y,$,_,function(t){ct[t?"unshift":"push"]((()=>{B=t,r(5,B)}))}]}const No={indicator:"divkit-d8e3f",indicator__scroller:"divkit-b5db0",indicator__items:"divkit-d5d94",indicator__item:"divkit-f6629",indicator__item_active:"divkit-b39cd"};function zo(t,e,n){const r=t.slice();r[36]=e[n],r[39]=n;const o=r[39]===r[13].currentItem;return r[37]=o,r}function Mo(t){let e,n=Array(t[13].size),r=[];for(let e=0;e<n.length;e+=1)r[e]=Jo(zo(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=J()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=J()},m(t,n){for(let e=0;e<r.length;e+=1)r[e].m(t,n);P(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=zo(t,n,i);r[i]?r[i].p(a,o):(r[i]=Jo(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){F(r,t),t&&S(e)}}}function Jo(t){let e,n,r,o,i,a,s,c;function u(){return t[30](t[39])}return{c(){e=I("div"),this.h()},l(t){e=U(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),R(e).forEach(S),this.h()},h(){T(e,"class",n=$e("indicator__item",No,{active:t[37]})+" "+Ut),T(e,"role","tab"),T(e,"id",r=t[13].instId+"-tab-"+t[39]),T(e,"aria-controls",o=t[13].instId+"-panel-"+t[39]),T(e,"aria-selected",i=t[37]?"true":"false"),T(e,"tabindex",a=t[37]?0:-1)},m(n,r){P(n,e,r),s||(c=[O(e,"click",u),O(e,"keydown",t[21])],s=!0)},p(l,s){t=l,8192&s[0]&&n!==(n=$e("indicator__item",No,{active:t[37]})+" "+Ut)&&T(e,"class",n),8192&s[0]&&r!==(r=t[13].instId+"-tab-"+t[39])&&T(e,"id",r),8192&s[0]&&o!==(o=t[13].instId+"-panel-"+t[39])&&T(e,"aria-controls",o),8192&s[0]&&i!==(i=t[37]?"true":"false")&&T(e,"aria-selected",i),8192&s[0]&&a!==(a=t[37]?0:-1)&&T(e,"tabindex",a)},d(t){t&&S(e),s=!1,l(c)}}}function Oo(t){let e,n,r,o,i="0 ".concat(ne((t[10]-1)*t[4]/2)),a="0 ".concat(ne((t[9]-t[4])/2)),l=t[13]&&Mo(t);return{c(){e=I("div"),n=I("div"),l&&l.c(),this.h()},l(t){e=U(t,"DIV",{class:!0});var r=R(e);n=U(r,"DIV",{class:!0,role:!0});var o=R(n);l&&l.l(o),o.forEach(S),r.forEach(S),this.h()},h(){T(n,"class",r=No.indicator__items),T(n,"role","tablist"),X(n,"margin",i,!1),X(n,"--divkit-indicator-width",ne(t[4]),!1),X(n,"--divkit-indicator-height",ne(t[5]),!1),X(n,"--divkit-indicator-border-radius",ne(t[6]),!1),X(n,"--divkit-indicator-active-color",t[7],!1),X(n,"--divkit-indicator-inactive-color",t[8],!1),X(n,"--divkit-indicator-active-scale",t[10],!1),X(n,"--divkit-indicator-margin",a,!1),T(e,"class",o=No.indicator__scroller)},m(r,o){P(r,e,o),D(e,n),l&&l.m(n,null),t[31](n),t[32](e)},p(t,e){t[13]?l?l.p(t,e):(l=Mo(t),l.c(),l.m(n,null)):l&&(l.d(1),l=null),1040&e[0]&&i!==(i="0 ".concat(ne((t[10]-1)*t[4]/2)))&&X(n,"margin",i,!1),16&e[0]&&X(n,"--divkit-indicator-width",ne(t[4]),!1),32&e[0]&&X(n,"--divkit-indicator-height",ne(t[5]),!1),64&e[0]&&X(n,"--divkit-indicator-border-radius",ne(t[6]),!1),128&e[0]&&X(n,"--divkit-indicator-active-color",t[7],!1),256&e[0]&&X(n,"--divkit-indicator-inactive-color",t[8],!1),1024&e[0]&&X(n,"--divkit-indicator-active-scale",t[10],!1),528&e[0]&&a!==(a="0 ".concat(ne((t[9]-t[4])/2)))&&X(n,"--divkit-indicator-margin",a,!1)},d(n){n&&S(e),l&&l.d(),t[31](null),t[32](null)}}}function To(t){let e,n;return e=new an({props:{cls:$e("indicator",No,{}),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Oo]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(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]|512&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function Bo(t,e,r){let o,i,a,l,s,c,u,d,h,f,g,m,v=n,y=n,$=n,_=n,b=n,w=n;var x;t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>w()));let{json:k={}}=e,{templateContext:E}=e,{origJson:C}=e,{layoutParams:A}=e;const V=at(Yt);let j,D,P,S=5,F=10,I=10,N=5,z="#ffdc60",M=ie("#33919cb5"),J=15,O=1.3;function T(t){t!==P.currentItem&&P.scrollToPagerItem(t)}async function B(t){P.scrollToPagerItem(t),await gt();const e=D.querySelector(".".concat(No.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&r(0,k=t.json),"templateContext"in t&&r(1,E=t.templateContext),"origJson"in t&&r(2,C=t.origJson),"layoutParams"in t&&r(3,A=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&(r(19,o=V.getDerivedFromVars(k.shape)),w(),w=p(o,(t=>r(29,m=t)))),549453936&t.$$.dirty[0]&&m&&("rounded_rectangle"===m.type?(m.item_width&&r(4,F=Ee(m.item_width.value,F)),m.item_height&&r(5,I=Ee(m.item_height.value,I)),m.corner_radius&&r(6,N=Ee(m.corner_radius.value,N))):"circle"===m.type&&(r(23,S=Ee(null===r(22,x=m.radius)||void 0===x?void 0:x.value,S)),r(4,F=r(5,I=r(6,N=2*S))))),1&t.$$.dirty[0]&&(r(18,i=V.getDerivedFromVars(k.active_item_color)),b(),b=p(i,(t=>r(28,g=t)))),268435584&t.$$.dirty[0]&&r(7,z=ie(g,1,z)),1&t.$$.dirty[0]&&(r(17,a=V.getDerivedFromVars(k.inactive_item_color)),_(),_=p(a,(t=>r(27,f=t)))),134217984&t.$$.dirty[0]&&r(8,M=ie(f,1,M)),1&t.$$.dirty[0]&&(r(16,l=V.getDerivedFromVars(k.space_between_centers)),$(),$=p(l,(t=>r(26,h=t)))),67109376&t.$$.dirty[0]&&h&&r(9,J=Ee(h.value,J)),1&t.$$.dirty[0]&&(r(15,s=V.getDerivedFromVars(k.active_item_size)),y(),y=p(s,(t=>r(25,d=t)))),33555456&t.$$.dirty[0]&&r(10,O=sn(d,O)),16777216&t.$$.dirty[0]&&async function(t){if(k.pager_id&&t.has(k.pager_id)){r(13,P=t.get(k.pager_id)),await gt();const e=D.children[P.currentItem].offsetLeft;j.scroll({left:e-j.clientWidth/2,behavior:"smooth"})}}(u)},r(14,c=V.getStore("pagers")),v(),v=p(c,(t=>r(24,u=t))),[k,E,C,A,F,I,N,z,M,J,O,j,D,P,c,s,l,a,i,o,T,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=P;if(37===t.which)B(n-1<0?n:n-1);else if(39===t.which)B(n+1>=e?n:n+1);else if(36===t.which)B(0);else{if(35!==t.which)return;B(e-1)}t.preventDefault()},x,S,u,d,h,f,g,m,t=>T(t),function(t){ct[t?"unshift":"push"]((()=>{D=t,r(12,D)}))},function(t){ct[t?"unshift":"push"]((()=>{j=t,r(11,j)}))}]}const Ro={slider:"divkit-ef4f7",slider__input:"divkit-d1d65",slider__input_secondary:"divkit-c7980",slider__thumb:"divkit-f3453",slider__thumb_secondary:"divkit-e1984","slider__tracks-wrapper":"divkit-f7338","slider__tracks-inner":"divkit-ac903",slider__track:"divkit-e956c","slider__active-track":"divkit-ec5bf","slider__thumb-text":"divkit-c4af5","slider__thumb-text_secondary":"divkit-d8821",slider__tick:"divkit-bd9bf",slider__tick_active:"divkit-d8ce2",slider__tick_inactive:"divkit-e71e7"};function Wo(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&ie(t.text_color)||"#000",o=cn(t.font_weight);if(We(t.font_size)&&"transparent"!==r){var i,a;const e={fontSize:ne(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 Lo(t,e,n){return Math.max(e,Math.min(n,t))}const Uo=2147483647,qo=-2147483648,Ho=Number.MAX_VALUE,Go=Number.MIN_VALUE,Ko="string",Xo="integer",Yo="number",Zo="boolean",Qo="color",ti="datetime";class ei{constructor(t,e){const n=this.convertValue(e);this.name=t,this.value=n}getName(){return this.name}subscribe(t){return this.store||(this.store=Rt(this.value)),this.store.subscribe(t)}set(t){const e=this.fromString(t);this.setValue(e)}setValue(t){const e=this.convertValue(t);this.value=e,this.store&&this.store.set(e)}getValue(){return this.value}}const ni={string:class extends ei{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}},number:class extends ei{convertValue(t){if("number"!=typeof t||isNaN(t)||!isFinite(t))throw new Error("Incorrect variable value");return t}fromString(t){const e=Number(t);return this.convertValue(e)}getType(){return"number"}},integer:class extends ei{convertValue(t){if("number"!=typeof t||isNaN(t)||t>Uo||t<qo||t!==Math.round(t))throw new Error("Incorrect variable value");return t}fromString(t){const e=Number(t);return this.convertValue(e)}getType(){return"integer"}},boolean:class extends ei{convertValue(t){if(1!==t&&0!==t&&!0!==t&&!1!==t)throw new Error("Incorrect variable value");return Number(t)}fromString(t){if("1"===t||"true"===t)return 1;if("0"===t||"false"===t)return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}},color:class extends ei{convertValue(t){if("string"!=typeof t||!le(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}},url:class extends ei{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}}};function ri(t,e,n){if(!(e in ni))throw new Error("Unsupported variable type");return new ni[e](t,n)}function oi(t,e,n){const r=t.slice();return r[78]=e[n],r}function ii(t,e,n){const r=t.slice();return r[78]=e[n],r}function ai(t){let e,n;return e=new an({props:{cls:$e("slider",Ro,t[21]),style:t[22],customDescription:!0,customActions:"slider",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[di]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};2097152&n[0]&&(r.cls=$e("slider",Ro,t[21])),4194304&n[0]&&(r.style=t[22]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),27246576&n[0]|2097152&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function li(t){let e,n;return{c(){e=I("div"),this.h()},l(t){e=U(t,"DIV",{class:!0}),R(e).forEach(S),this.h()},h(){T(e,"class",n=Ro.slider__tick+" "+Ro.slider__tick_active),X(e,"--divkit-slider-tick",t[78],!1)},m(t,n){P(t,e,n)},p(t,n){131072&n[0]&&X(e,"--divkit-slider-tick",t[78],!1)},d(t){t&&S(e)}}}function si(t){let e,n;return{c(){e=I("div"),this.h()},l(t){e=U(t,"DIV",{class:!0}),R(e).forEach(S),this.h()},h(){T(e,"class",n=Ro.slider__tick+" "+Ro.slider__tick_inactive),X(e,"--divkit-slider-tick",t[78],!1)},m(t,n){P(t,e,n)},p(t,n){262144&n[0]&&X(e,"--divkit-slider-tick",t[78],!1)},d(t){t&&S(e)}}}function ci(t){let e,n,r,o,i;return{c(){e=I("div"),n=I("div"),r=z(t[6]),this.h()},l(o){e=U(o,"DIV",{class:!0});var i=R(e);n=U(i,"DIV",{class:!0});var a=R(n);r=H(a,t[6]),a.forEach(S),i.forEach(S),this.h()},h(){var r,a,l;T(n,"class",o=Ro["slider__thumb-text-inner"]),X(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em",!1),X(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||"",!1),X(n,"color",(null===(l=t[12])||void 0===l?void 0:l.textColor)||"#000",!1),T(e,"class",i=Ro["slider__thumb-text"])},m(t,o){P(t,e,o),D(e,n),D(n,r)},p(t,e){var o,i,a;64&e[0]&&K(r,t[6]),4096&e[0]&&X(n,"font-size",(null===(o=t[12])||void 0===o?void 0:o.fontSize)||"1em",!1),4096&e[0]&&X(n,"font-weight",(null===(i=t[12])||void 0===i?void 0:i.fontWeight)||"",!1),4096&e[0]&&X(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&S(e)}}}function ui(t){let e,n,r,o,i;return{c(){e=I("div"),n=I("div"),r=z(t[7]),this.h()},l(o){e=U(o,"DIV",{class:!0});var i=R(e);n=U(i,"DIV",{class:!0});var a=R(n);r=H(a,t[7]),a.forEach(S),i.forEach(S),this.h()},h(){var r,a,l;T(n,"class",o=Ro["slider__thumb-text-inner"]),X(n,"font-size",(null===(r=t[13])||void 0===r?void 0:r.fontSize)||"1em",!1),X(n,"font-weight",(null===(a=t[13])||void 0===a?void 0:a.fontWeight)||"",!1),X(n,"color",(null===(l=t[13])||void 0===l?void 0:l.textColor)||"#000",!1),T(e,"class",i=Ro["slider__thumb-text"]+" "+Ro["slider__thumb-text_secondary"])},m(t,o){P(t,e,o),D(e,n),D(n,r)},p(t,e){var o,i,a;128&e[0]&&K(r,t[7]),8192&e[0]&&X(n,"font-size",(null===(o=t[13])||void 0===o?void 0:o.fontSize)||"1em",!1),8192&e[0]&&X(n,"font-weight",(null===(i=t[13])||void 0===i?void 0:i.fontWeight)||"",!1),8192&e[0]&&X(n,"color",(null===(a=t[13])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&S(e)}}}function di(t){let e,n,r,o,i,a,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k=t[17],E=[];for(let e=0;e<k.length;e+=1)E[e]=li(ii(t,k,e));let C=t[18],A=[];for(let e=0;e<C.length;e+=1)A[e]=si(oi(t,C,e));let V=t[12]&&ci(t),j=t[37]&&function(t){let e,n,r=t[13]&&ui(t);return{c(){e=I("div"),r&&r.c(),this.h()},l(t){e=U(t,"DIV",{class:!0});var n=R(e);r&&r.l(n),n.forEach(S),this.h()},h(){T(e,"class",n=Ro.slider__thumb+" "+Ro.slider__thumb_secondary),X(e,"border-radius",ne(t[9].borderRadius),!1),X(e,"background",t[9].background,!1),X(e,"box-shadow",t[9].boxShadow||"",!1)},m(t,n){P(t,e,n),r&&r.m(e,null)},p(t,n){t[13]?r?r.p(t,n):(r=ui(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),512&n[0]&&X(e,"border-radius",ne(t[9].borderRadius),!1),512&n[0]&&X(e,"background",t[9].background,!1),512&n[0]&&X(e,"box-shadow",t[9].boxShadow||"",!1)},d(t){t&&S(e),r&&r.d()}}}(t),N=t[37]&&function(t){let e,n,r,o,i;return{c(){e=I("input"),this.h()},l(t){e=U(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){T(e,"type","range"),T(e,"class",n=t[16]?Ro.slider__input:"".concat(Ro.slider__input," ").concat(Ro.slider__input_secondary)),T(e,"min",t[4]),T(e,"max",t[5]),T(e,"step","1"),e.value=r=t[16]?t[6]:t[7],T(e,"aria-label",t[20])},m(n,r){P(n,e,r),o||(i=[O(e,"input",t[68]),O(e,"mousedown",t[37]?t[40]:null),O(e,"touchstart",t[37]?t[40]:null)],o=!0)},p(t,o){65536&o[0]&&n!==(n=t[16]?Ro.slider__input:"".concat(Ro.slider__input," ").concat(Ro.slider__input_secondary))&&T(e,"class",n),16&o[0]&&T(e,"min",t[4]),32&o[0]&&T(e,"max",t[5]),65728&o[0]&&r!==(r=t[16]?t[6]:t[7])&&(e.value=r),1048576&o[0]&&T(e,"aria-label",t[20])},d(t){t&&S(e),o=!1,l(i)}}}(t);return{c(){e=I("div"),n=I("div"),r=I("div"),i=M(),a=I("div"),c=M();for(let t=0;t<E.length;t+=1)E[t].c();u=M();for(let t=0;t<A.length;t+=1)A[t].c();d=M(),h=I("div"),V&&V.c(),f=M(),j&&j.c(),g=M(),m=I("input"),$=M(),N&&N.c(),this.h()},l(t){e=U(t,"DIV",{class:!0});var o=R(e);n=U(o,"DIV",{class:!0});var l=R(n);r=U(l,"DIV",{class:!0}),R(r).forEach(S),i=G(l),a=U(l,"DIV",{class:!0}),R(a).forEach(S),c=G(l);for(let t=0;t<E.length;t+=1)E[t].l(l);u=G(l);for(let t=0;t<A.length;t+=1)A[t].l(l);d=G(l),h=U(l,"DIV",{class:!0});var s=R(h);V&&V.l(s),s.forEach(S),f=G(l),j&&j.l(l),g=G(l),m=U(l,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),$=G(l),N&&N.l(l),l.forEach(S),o.forEach(S),this.h()},h(){T(r,"class",o=Ro.slider__track),X(r,"height",ne(t[10].height),!1),X(r,"border-radius",ne(t[10].borderRadius),!1),X(r,"background",t[10].background,!1),X(r,"box-shadow",t[10].boxShadow||"",!1),T(a,"class",s=Ro["slider__active-track"]),X(a,"left",(100*t[23]).toFixed(2)+"%",!1),X(a,"width",(100*t[24]).toFixed(2)+"%",!1),X(a,"height",ne(t[11].height),!1),X(a,"border-radius",ne(t[11].borderRadius),!1),X(a,"background",t[11].background,!1),X(a,"box-shadow",t[11].boxShadow||"",!1),T(h,"class",p=Ro.slider__thumb),X(h,"border-radius",ne(t[8].borderRadius),!1),X(h,"background",t[8].background,!1),X(h,"box-shadow",t[8].boxShadow||"",!1),T(m,"type","range"),T(m,"class",v=t[16]?"".concat(Ro.slider__input," ").concat(Ro.slider__input_secondary):Ro.slider__input),T(m,"min",t[4]),T(m,"max",t[5]),T(m,"step","1"),m.value=y=t[16]?t[7]:t[6],T(m,"aria-label",t[19]),T(n,"class",_=Ro["slider__tracks-inner"]),T(e,"class",b=Ro["slider__tracks-wrapper"])},m(o,l){P(o,e,l),D(e,n),D(n,r),D(n,i),D(n,a),D(n,c);for(let t=0;t<E.length;t+=1)E[t].m(n,null);D(n,u);for(let t=0;t<A.length;t+=1)A[t].m(n,null);D(n,d),D(n,h),V&&V.m(h,null),D(n,f),j&&j.m(n,null),D(n,g),D(n,m),D(n,$),N&&N.m(n,null),t[69](n),w||(x=O(m,"input",t[67]),w=!0)},p(t,e){if(1024&e[0]&&X(r,"height",ne(t[10].height),!1),1024&e[0]&&X(r,"border-radius",ne(t[10].borderRadius),!1),1024&e[0]&&X(r,"background",t[10].background,!1),1024&e[0]&&X(r,"box-shadow",t[10].boxShadow||"",!1),8388608&e[0]&&X(a,"left",(100*t[23]).toFixed(2)+"%",!1),16777216&e[0]&&X(a,"width",(100*t[24]).toFixed(2)+"%",!1),2048&e[0]&&X(a,"height",ne(t[11].height),!1),2048&e[0]&&X(a,"border-radius",ne(t[11].borderRadius),!1),2048&e[0]&&X(a,"background",t[11].background,!1),2048&e[0]&&X(a,"box-shadow",t[11].boxShadow||"",!1),131072&e[0]){let r;for(k=t[17],r=0;r<k.length;r+=1){const o=ii(t,k,r);E[r]?E[r].p(o,e):(E[r]=li(o),E[r].c(),E[r].m(n,u))}for(;r<E.length;r+=1)E[r].d(1);E.length=k.length}if(262144&e[0]){let r;for(C=t[18],r=0;r<C.length;r+=1){const o=oi(t,C,r);A[r]?A[r].p(o,e):(A[r]=si(o),A[r].c(),A[r].m(n,d))}for(;r<A.length;r+=1)A[r].d(1);A.length=C.length}t[12]?V?V.p(t,e):(V=ci(t),V.c(),V.m(h,null)):V&&(V.d(1),V=null),256&e[0]&&X(h,"border-radius",ne(t[8].borderRadius),!1),256&e[0]&&X(h,"background",t[8].background,!1),256&e[0]&&X(h,"box-shadow",t[8].boxShadow||"",!1),t[37]&&j.p(t,e),65536&e[0]&&v!==(v=t[16]?"".concat(Ro.slider__input," ").concat(Ro.slider__input_secondary):Ro.slider__input)&&T(m,"class",v),16&e[0]&&T(m,"min",t[4]),32&e[0]&&T(m,"max",t[5]),65728&e[0]&&y!==(y=t[16]?t[7]:t[6])&&(m.value=y),524288&e[0]&&T(m,"aria-label",t[19]),t[37]&&N.p(t,e)},d(n){n&&S(e),F(E,n),F(A,n),V&&V.d(),j&&j.d(),N&&N.d(),t[69](null),w=!1,x()}}}function hi(t){let e,n,r,o,i=!t[14]&&ai(t);return{c(){i&&i.c(),e=J()},l(t){i&&i.l(t),e=J()},m(a,l){i&&i.m(a,l),P(a,e,l),n=!0,r||(o=O(window,"resize",t[42]),r=!0)},p(t,n){t[14]?i&&(Et(),Vt(i,1,1,(()=>{i=null})),Ct()):i?(i.p(t,n),16384&n[0]&&At(i,1)):(i=ai(t),i.c(),At(i,1),i.m(e.parentNode,e))},i(t){n||(At(i),n=!0)},o(t){Vt(i),n=!1},d(t){i&&i.d(t),t&&S(e),r=!1,o()}}}function pi(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 fi(t,e,r){let o,i,a,l,s,c,u,d,h,g,m,v,y,$,_,b,w,x,k,E,C,A,V,j,D,P,S,F,I,N,z,M,J,O,T=n,B=n,R=n,W=n,L=n,U=n,q=n,H=n,G=n,K=n,X=n,Y=n;var Z,Q,tt,et;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),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()));let{json:nt={}}=e,{templateContext:ot}=e,{origJson:it}=e,{layoutParams:lt}=e;const st={width:10,height:10,borderRadius:5,background:"#000"},ut=["rounded_rectangle","circle"],dt=["rounded_rectangle"],ht=at(Yt),pt=at(Ie);let ft,gt=!1,mt=0,vt=100;const yt=ht.getJsonWithVars(nt.thumb_value_variable),$t=ht.getJsonWithVars(nt.thumb_secondary_value_variable);let _t=yt&&ht.getVariable(yt,"integer")||ri("temp","integer",0);f(t,_t,(t=>r(64,M=t)));let bt=$t&&ht.getVariable($t,"integer")||ri("temp","integer",0);f(t,bt,(t=>r(63,z=t)));let wt,xt,kt,Et=Lo(M||0,mt,vt),Ct=Lo(z||0,mt,vt),At=st,Vt=At,jt=st,Dt=st,Pt=null,St=null,Ft=kt,It="",Nt="",zt=!1;function Mt(t,e){const n=Number(t.target.value);gt===("first"===e)?(r(7,Ct=n),bt.setValue(n)):(r(6,Et=n),_t.setValue(n))}let Jt=!1;function Ot(){if(!ft)return;const t=vt-mt,e=(null==Pt?void 0:Pt.width)||0,n=(null==St?void 0:St.width)||0;Math.max(e,n)*t>=(null==ft?void 0:ft.clientWidth)?Jt||(ht.logError(Zt(new Error("Slider ticks overlap each other"),{level:"warn"})),Jt=!0):Jt=!1}const Tt=Ar(Ot,50);return rt((()=>{Ot()})),t.$$set=t=>{"json"in t&&r(0,nt=t.json),"templateContext"in t&&r(1,ot=t.templateContext),"origJson"in t&&r(2,it=t.origJson),"layoutParams"in t&&r(3,lt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(r(36,o=ht.getDerivedFromVars(nt.min_value)),Y(),Y=p(o,(t=>r(66,O=t)))),1&t.$$.dirty[0]&&(r(35,i=ht.getDerivedFromVars(nt.max_value)),X(),X=p(i,(t=>r(65,J=t)))),48&t.$$.dirty[0]|24&t.$$.dirty[2]&&(r(4,mt=De(O,mt)),r(5,vt=De(J,vt)),Ot()),112&t.$$.dirty[0]|4&t.$$.dirty[2]){const t=Lo(M||0,mt,vt);t!==Et&&r(6,Et=t)}if(176&t.$$.dirty[0]|2&t.$$.dirty[2]){const t=Lo(z||0,mt,vt);t!==Ct&&r(7,Ct=t)}if(1&t.$$.dirty[0]&&(r(34,a=ht.getDerivedFromVars(nt.thumb_style)),K(),K=p(a,(t=>r(62,N=t)))),256&t.$$.dirty[0]|1&t.$$.dirty[2]&&r(8,At=Sn(N,ut,At)),1&t.$$.dirty[0]&&(r(33,l=ht.getDerivedFromVars(nt.thumb_secondary_style)),G(),G=p(l,(t=>r(61,I=t)))),256&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&r(9,Vt=Sn(I,ut,At)),1&t.$$.dirty[0]&&(r(32,s=ht.getDerivedFromVars(nt.track_inactive_style)),H(),H=p(s,(t=>r(60,F=t)))),1024&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&r(10,jt=Sn(F,dt,jt)),1&t.$$.dirty[0]&&(r(31,c=ht.getDerivedFromVars(nt.track_active_style)),q(),q=p(c,(t=>r(59,S=t)))),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(11,Dt=Sn(S,dt,Dt)),1&t.$$.dirty[0]&&(r(30,u=ht.getDerivedFromVars(nt.tick_mark_active_style)),U(),U=p(u,(t=>r(58,P=t)))),134217728&t.$$.dirty[1]){let t=Sn(P,ut,st);t!==st&&r(47,Pt=t)}if(240&t.$$.dirty[0]|65536&t.$$.dirty[1]&&(Pt?(r(17,wt=$t?pi(Math.min(Et,Ct),Math.max(Et,Ct)+1,mt,vt,!0):pi(mt,Et,mt,vt,!0)),Ot()):r(17,wt=[])),1&t.$$.dirty[0]&&(r(29,d=ht.getDerivedFromVars(nt.tick_mark_inactive_style)),L(),L=p(d,(t=>r(57,D=t)))),67108864&t.$$.dirty[1]){let t=Sn(D,ut,st);t!==st&&r(48,St=t)}if(240&t.$$.dirty[0]|131072&t.$$.dirty[1]&&(St?(r(18,xt=$t?pi(Math.min(Et,Ct),Math.max(Et,Ct)+1,mt,vt,!1):pi(Et+1,vt+1,mt,vt,!0)),Ot()):r(18,xt=[])),1&t.$$.dirty[0]&&(r(28,h=ht.getDerivedFromVars(nt.thumb_text_style)),W(),W=p(h,(t=>r(56,j=t)))),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(12,kt=Wo(j,kt)),1&t.$$.dirty[0]&&(r(27,g=ht.getDerivedFromVars(nt.thumb_secondary_text_style)),R(),R=p(g,(t=>r(55,V=t)))),4096&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&r(13,Ft=Wo(V,kt)),1&t.$$.dirty[0]&&(r(26,m=ht.getDerivedFromVars(nt.accessibility)),B(),B=p(m,(t=>r(54,A=t)))),8388608&t.$$.dirty[1]&&((null==A?void 0:A.description)?r(19,It=A.description):ht.logError(Zt(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),1&t.$$.dirty[0]&&(r(25,v=ht.getDerivedFromVars(nt.secondary_value_accessibility)),T(),T=p(v,(t=>r(53,C=t)))),4194304&t.$$.dirty[1]&&((null==C?void 0:C.description)?r(20,Nt=C.description):$t&&ht.logError(Zt(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),19712&t.$$.dirty[0]){let t=!1;pt.hasAction()?(ht.logError(Zt(new Error('Cannot show "slider" inside component with action'))),t=!0):At===st?(ht.logError(Zt(new Error('Missing "thumb_style" in slider'))),t=!0):Dt===st?(ht.logError(Zt(new Error('Missing "track_active_style" in slider'))),t=!0):jt===st&&(ht.logError(Zt(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==zt&&r(14,zt=t)}768&t.$$.dirty[0]&&r(52,y=ne(Math.max(...[At.width,Vt.width,0].filter(xe)))),768&t.$$.dirty[0]&&r(51,$=ne(Math.max(...[At.height,Vt.height,0].filter(xe)))),112&t.$$.dirty[0]&&r(50,_=(Et-mt)/(vt-mt)),176&t.$$.dirty[0]&&r(49,b=$t?(Ct-mt)/(vt-mt):void 0),786432&t.$$.dirty[1]&&r(24,w=void 0!==b?Math.abs(b-_):_),786432&t.$$.dirty[1]&&r(23,x=void 0!==b?Math.min(b,_):0),13056&t.$$.dirty[0]|4190208&t.$$.dirty[1]&&r(22,k={"--divkit-slider-thumb-width":ne(At.width),"--divkit-slider-thumb-height":ne(At.height),"--divkit-slider-thumb-secondary-width":ne(Vt.width),"--divkit-slider-thumb-secondary-height":ne(Vt.height),"--divkit-slider-text-offset-x":(null===r(43,Z=null==kt?void 0:kt.offset)||void 0===Z?void 0:Z.x)?re(kt.offset.x):void 0,"--divkit-slider-text-offset-y":(null===r(44,Q=null==kt?void 0:kt.offset)||void 0===Q?void 0:Q.y)?re(kt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===r(45,tt=null==Ft?void 0:Ft.offset)||void 0===tt?void 0:tt.x)?re(Ft.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===r(46,et=null==Ft?void 0:Ft.offset)||void 0===et?void 0:et.y)?re(Ft.offset.y):void 0,"--divkit-slider-tick-active-width":Pt?ne(Pt.width):void 0,"--divkit-slider-tick-active-height":Pt?ne(Pt.height):void 0,"--divkit-slider-tick-active-border-radius":Pt?ne(Pt.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==Pt?void 0:Pt.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==Pt?void 0:Pt.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":St?ne(St.width):void 0,"--divkit-slider-tick-inactive-height":St?ne(St.height):void 0,"--divkit-slider-tick-inactive-border-radius":St?ne(St.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==St?void 0:St.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==St?void 0:St.boxShadow)||void 0,"--divkit-slider-max-thumb-width":y,"--divkit-slider-max-thumb-height":$,"--divkit-slider-track-part":_,"--divkit-slider-track-secondary-part":b})},r(21,E={}),[nt,ot,it,lt,mt,vt,Et,Ct,At,Vt,jt,Dt,kt,Ft,zt,ft,gt,wt,xt,It,Nt,E,k,x,w,v,m,g,h,d,u,c,s,l,a,i,o,$t,_t,bt,function(t){var e,n;const o="pageX"in t?t.pageX:null===(n=null===(e=t.changedTouches)||void 0===e?void 0:e[0])||void 0===n?void 0:n.pageX;if(void 0===o)return;const i=ft.getBoundingClientRect(),a=(o-i.left)/i.width,l=(vt-mt)*a,s=Math.round(Lo(l,mt,vt));r(16,gt=s<(Et+Ct)/2==Et<Ct)},Mt,Tt,Z,Q,tt,et,Pt,St,b,_,$,y,C,A,V,j,D,P,S,F,I,N,z,M,J,O,t=>Mt(t,"first"),t=>Mt(t,"second"),function(t){ct[t?"unshift":"push"]((()=>{ft=t,r(15,ft)}))}]}const gi={input:"divkit-c3a4c",input__wrapper:"divkit-ef7eb",input__holder:"divkit-bb3da",input_multiline:"divkit-e48a3",input__input:"divkit-f11e0","input_highlight-color":"divkit-cc00f","input_vertical-overflow":"divkit-b7075"};function mi(t){let e,n;return e=new an({props:{cls:$e("input",gi,t[12]),style:t[11],customDescription:!0,customActions:"input",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[_i]},$$scope:{ctx:t}}}),{c(){Nt(e.$$.fragment)},l(t){zt(e.$$.fragment,t)},m(t,r){Mt(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=$e("input",gi,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||(At(e.$$.fragment,t),n=!0)},o(t){Vt(e.$$.fragment,t),n=!1},d(t){Jt(e,t)}}}function vi(t){let e;return{c(){e=z("")},l(t){e=H(t,"")},m(t,n){P(t,e,n)},d(t){t&&S(e)}}}function yi(t){let e,n,r,o;return{c(){e=I("input"),this.h()},l(t){e=U(t,"INPUT",{type:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),this.h()},h(){T(e,"type",t[9]),T(e,"class",n=gi.input__input),T(e,"autocomplete","off"),T(e,"autocapitalize","off"),T(e,"aria-label",t[10]),T(e,"placeholder",t[15]),e.value=t[8]},m(n,i){P(n,e,i),t[57](e),r||(o=[O(e,"input",t[29]),O(e,"mousedown",(function(){s(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),O(e,"click",(function(){s(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]&&T(e,"type",t[9]),1024&r[0]&&T(e,"aria-label",t[10]),32768&r[0]&&T(e,"placeholder",t[15]),256&r[0]&&e.value!==t[8]&&(e.value=t[8])},d(n){n&&S(e),t[57](null),r=!1,l(o)}}}function $i(t){let e,n,r,o;return{c(){e=I("textarea"),this.h()},l(t){e=U(t,"TEXTAREA",{class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),R(e).forEach(S),this.h()},h(){T(e,"class",n=gi.input__input),T(e,"autocomplete","off"),T(e,"autocapitalize","off"),T(e,"aria-label",t[10]),T(e,"placeholder",t[15]),e.value=t[8]},m(n,i){P(n,e,i),t[56](e),r||(o=[O(e,"input",t[29]),O(e,"mousedown",(function(){s(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),O(e,"click",(function(){s(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]&&T(e,"aria-label",t[10]),32768&r[0]&&T(e,"placeholder",t[15]),256&r[0]&&(e.value=t[8])},d(n){n&&S(e),t[56](null),r=!1,l(o)}}}function _i(t){let e,n,r,o,i,a,l=t[8].endsWith("\n")||!t[8],s=l&&vi();function c(t,e){return t[4]?$i:yi}let u=c(t),d=u(t);return{c(){e=I("span"),n=I("span"),r=z(t[8]),s&&s.c(),i=M(),d.c(),this.h()},l(o){e=U(o,"SPAN",{class:!0});var a=R(e);n=U(a,"SPAN",{class:!0,"aria-hidden":!0});var l=R(n);r=H(l,t[8]),s&&s.l(l),l.forEach(S),i=G(a),d.l(a),a.forEach(S),this.h()},h(){T(n,"class",o=gi.input__holder),T(n,"aria-hidden","true"),T(e,"class",a=gi.input__wrapper)},m(o,a){P(o,e,a),D(e,n),D(n,r),s&&s.m(n,null),t[55](n),D(e,i),d.m(e,null)},p(t,o){256&o[0]&&K(r,t[8]),256&o[0]&&(l=t[8].endsWith("\n")||!t[8]),l?s||(s=vi(),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&&S(e),s&&s.d(),t[55](null),d.d()}}}function bi(t){let e,n,r=!t[7]&&mi(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){t[7]?r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct()):r?(r.p(t,n),128&n[0]&&At(r,1)):(r=mi(t),r.c(),At(r,1),r.m(e.parentNode,e))},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}function wi(t,e,r){let o,i,a,l,s,c,u,d,h,g,m,v,y,$,_,b,w,x,k,E,C=n,A=n;t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A()));let{json:V={}}=e,{templateContext:j}=e,{origJson:D}=e,{layoutParams:P}=e;const S=at(Yt);let F,I,N=!1,z=!1;const M=S.getJsonWithVars(V.text_variable);let J=!1;M||(J=!0,S.logError(Zt(new Error('Missing "text_variable" in "input"'))));let O=M&&S.getVariable(M,"string")||ri("temp","string","");f(t,O,(t=>r(54,k=t)));let T="";const B=S.getDerivedFromVars(V.hint_text);f(t,B,(t=>r(53,x=t)));const R=S.getDerivedFromVars(V.hint_color);f(t,R,(t=>r(52,w=t)));let W="";const L=S.getDerivedFromVars(V.font_size);f(t,L,(t=>r(51,b=t)));let U=12;const q=S.getDerivedFromVars(V.font_weight);let H;f(t,q,(t=>r(50,_=t)));const G=S.getDerivedFromVars(V.line_height);let K;f(t,G,(t=>r(49,$=t)));const X=S.getDerivedFromVars(V.letter_spacing);f(t,X,(t=>r(48,y=t)));let Y="";const Z=S.getDerivedFromVars(V.text_color);f(t,Z,(t=>r(47,v=t)));let Q="#000";const tt=S.getDerivedFromVars(V.highlight_color);f(t,tt,(t=>r(46,m=t)));let et="";const nt=S.getDerivedFromVars(V.keyboard_type);f(t,nt,(t=>r(45,g=t)));const ot={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};let it="multi_line_text",lt="text";const st=S.getDerivedFromVars(V.max_visible_lines);f(t,st,(t=>r(44,h=t)));let ut="",dt="";const ht=S.getDerivedFromVars(V.select_all_on_focus);function pt(){r(32,z=I.scrollHeight>I.offsetHeight)}return f(t,ht,(t=>r(16,E=t))),rt((()=>{pt()})),t.$$set=t=>{"json"in t&&r(0,V=t.json),"templateContext"in t&&r(1,j=t.templateContext),"origJson"in t&&r(2,D=t.origJson),"layoutParams"in t&&r(3,P=t.layoutParams)},t.$$.update=()=>{if(8388608&t.$$.dirty[1]&&r(8,T=k),4194304&t.$$.dirty[1]&&r(15,o=x),2097156&t.$$.dirty[1]&&r(33,W=ie(w,1,W)),1048584&t.$$.dirty[1]&&r(34,U=sn(b,U)),524304&t.$$.dirty[1]&&r(35,H=un(_,H)),262152&t.$$.dirty[1]){const t=$;We(t)&&r(36,K=t/U)}131080&t.$$.dirty[1]&&we(y)&&r(37,Y=ne(y/U*10)),65664&t.$$.dirty[1]&&r(38,Q=ie(v,1,Q)),33024&t.$$.dirty[1]&&r(39,et=ie(m,1,et)),16384&t.$$.dirty[1]&&g&&g in ot&&(r(9,lt=ot[g]),r(40,it=g)),512&t.$$.dirty[1]&&r(4,i="multi_line_text"===it),1&t.$$.dirty[0]&&(r(14,a=S.getDerivedFromVars(V.paddings)),A(),A=p(a,(t=>r(43,d=t)))),12320&t.$$.dirty[1]&&We(h)&&r(41,ut="calc(".concat(h*(K||1.25)+"em"," + ").concat(re(Ee(null==d?void 0:d.top,0)+Ee(null==d?void 0:d.bottom,0)),")")),1&t.$$.dirty[0]&&(r(13,l=S.getDerivedFromVars(V.accessibility)),C(),C=p(l,(t=>r(42,u=t)))),2048&t.$$.dirty[1]&&((null==u?void 0:u.description)?r(10,dt=u.description):S.logError(Zt(new Error('Missing accessibility "description" for input'),{level:"warn"}))),16&t.$$.dirty[0]|258&t.$$.dirty[1]&&r(12,s={"highlight-color":Boolean(et),"vertical-overflow":z,multiline:i}),1532&t.$$.dirty[1]&&r(11,c={"--divkit-input-hint-color":W,"--divkit-input-highlight-color":et,"font-size":ne(U),"font-weight":H,"line-height":K,"letter-spacing":Y,color:Q,"max-height":ut})},[V,j,D,P,i,F,I,J,T,lt,dt,c,s,l,a,o,E,O,B,R,L,q,G,X,Z,tt,nt,st,ht,function(t){const e=t.target.value||"";O.setValue(e),pt()},function(){N=!1,setTimeout((()=>{N=!0}),250)},function(){N||F.select()},z,W,U,H,K,Y,Q,et,it,ut,u,d,h,g,m,v,y,$,_,b,w,x,k,function(t){ct[t?"unshift":"push"]((()=>{I=t,r(6,I)}))},function(t){ct[t?"unshift":"push"]((()=>{F=t,r(5,F)}))},function(t){ct[t?"unshift":"push"]((()=>{F=t,r(5,F)}))}]}const xi={text:class extends Tt{constructor(t){super(),Ot(this,t,Dn,jn,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},container:class extends Tt{constructor(t){super(),Ot(this,t,Zn,Yn,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},separator:class extends Tt{constructor(t){super(),Ot(this,t,or,rr,d,{json:0,templateContext:1,origJson:2,layoutParams:3})}},image:fr,gif:fr,grid:class extends Tt{constructor(t){super(),Ot(this,t,kr,xr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},gallery:class extends Tt{constructor(t){super(),Ot(this,t,Or,Jr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},tabs:class extends Tt{constructor(t){super(),Ot(this,t,Zr,Yr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},state:class extends Tt{constructor(t){super(),Ot(this,t,Co,ko,d,{json:0,templateContext:1,origJson:2,layoutParams:3})}},pager:class extends Tt{constructor(t){super(),Ot(this,t,Io,Fo,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},indicator:class extends Tt{constructor(t){super(),Ot(this,t,Bo,To,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},slider:class extends Tt{constructor(t){super(),Ot(this,t,fi,hi,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},input:class extends Tt{constructor(t){super(),Ot(this,t,wi,bi,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}}};function ki(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&&Nt(e.$$.fragment),n=J()},l(t){e&&zt(e.$$.fragment,t),n=J()},m(t,o){e&&Mt(e,t,o),P(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){Et();const t=e;Vt(t.$$.fragment,1,0,(()=>{Jt(t,1)})),Ct()}o?(e=new o(i(t)),Nt(e.$$.fragment),At(e.$$.fragment,1),Mt(e,n.parentNode,n)):e=null}else o&&e.$set(a)},i(t){r||(e&&At(e.$$.fragment,t),r=!0)},o(t){e&&Vt(e.$$.fragment,t),r=!1},d(t){t&&S(n),e&&Jt(e,t)}}}function Ei(t){let e,n,r=t[5]&&ki(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){let[o]=n;t[5]?r?(r.p(t,o),32&o&&At(r,1)):(r=ki(t),r.c(),At(r,1),r.m(e.parentNode,e)):r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct())},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}function Ci(t,e,n){let{div:r}=e,{templateContext:o}=e,{origJson:i}=e,{layoutParams:a}=e;const l=at(Yt);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&&xi[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&&xi[s.type]||void 0),!u))){let t;t=(null==s?void 0:s.type)&&l.hasTemplate(s.type)?"Recursive template":"Unknown component",l.logError(Zt(new Error(t),{additional:{component:(null==s?void 0:s.type)||"<missing>"}}))}},[r,i,a,s,c,u,o]}const Ai=class extends Tt{constructor(t){super(),Ot(this,t,Ci,Ei,d,{div:0,templateContext:6,origJson:1,layoutParams:2})}};function Vi(t,e,n){const r=t.slice();r[1]=e[n];const o=r[1].split(":");return r[2]=o[0],r[3]=o[1],r}function ji(t){let e,n,r,o=[...Object.keys(t[0])],i=[];for(let e=0;e<o.length;e+=1)i[e]=Fi(Vi(t,o,e));return{c(){e=N("svg"),n=N("defs");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=q(t,"svg",{class:!0,"aria-hidden":!0});var r=R(e);n=q(r,"defs",{});var o=R(n);for(let t=0;t<i.length;t+=1)i[t].l(o);o.forEach(S),r.forEach(S),this.h()},h(){T(e,"class",r="divkit-dc22b"),T(e,"aria-hidden","true")},m(t,r){P(t,e,r),D(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=Vi(t,o,r);i[r]?i[r].p(a,e):(i[r]=Fi(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&&S(e),F(i,t)}}}function Di(t){let e,n;return{c(){e=N("feBlend"),this.h()},l(t){e=q(t,"feBlend",{in2:!0,mode:!0}),R(e).forEach(S),this.h()},h(){T(e,"in2","SourceGraphic"),T(e,"mode",n=t[3])},m(t,n){P(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&T(e,"mode",n)},d(t){t&&S(e)}}}function Pi(t){let e;return{c(){e=N("feComposite"),this.h()},l(t){e=q(t,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),R(e).forEach(S),this.h()},h(){T(e,"in2","SourceGraphic"),T(e,"operator","arithmetic"),T(e,"k1","1"),T(e,"k2","0"),T(e,"k3","0"),T(e,"k4","0")},m(t,n){P(t,e,n)},p:n,d(t){t&&S(e)}}}function Si(t){let e,n;return{c(){e=N("feComposite"),this.h()},l(t){e=q(t,"feComposite",{in2:!0,operator:!0}),R(e).forEach(S),this.h()},h(){T(e,"in2","SourceGraphic"),T(e,"operator",n=t[3].split("_")[1])},m(t,n){P(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&T(e,"operator",n)},d(t){t&&S(e)}}}function Fi(t){let e,n,r,o;function i(t,e){return"source_in"===t[3]||"source_atop"===t[3]?Si:"multiply"===t[3]?Pi:Di}let a=i(t),l=a(t);return{c(){e=N("filter"),n=N("feFlood"),l.c(),this.h()},l(t){e=q(t,"filter",{id:!0});var r=R(e);n=q(r,"feFlood",{"flood-color":!0}),R(n).forEach(S),l.l(r),r.forEach(S),this.h()},h(){T(n,"flood-color",r=t[2]),T(e,"id",o=t[0][t[1]])},m(t,r){P(t,e,r),D(e,n),l.m(e,null)},p(t,s){1&s&&r!==(r=t[2])&&T(n,"flood-color",r),a===(a=i(t))&&l?l.p(t,s):(l.d(1),l=a(t),l&&(l.c(),l.m(e,null))),1&s&&o!==(o=t[0][t[1]])&&T(e,"id",o)},d(t){t&&S(e),l.d()}}}function Ii(t){let e,r=Object.keys(t[0]).length,o=r&&ji(t);return{c(){o&&o.c(),e=J()},l(t){o&&o.l(t),e=J()},m(t,n){o&&o.m(t,n),P(t,e,n)},p(t,n){let[i]=n;1&i&&(r=Object.keys(t[0]).length),r?o?o.p(t,i):(o=ji(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},i:n,o:n,d(t){o&&o.d(t),t&&S(e)}}}function Ni(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const zi=class extends Tt{constructor(t){super(),Ot(this,t,Ni,Ii,d,{svgFiltersMap:0})}};function Mi(t,e,n,r){const o=n[t.type];if(!o)return r(Zt(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(Zt(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 Ji(){}function Oi(t){return{subscribe:e=>(e(t),Ji)}}function Ti(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function Bi(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function Ri(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 Wi(t){var e=parseInt(t,10);if(e>Uo||e<qo)throw new Error("Value ".concat(t," can't be converted to Integer type."));return e}function Li(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function Ui(t,e,n,r){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,Ui.prototype),o.expected=e,o.found=n,o.location=r,o.name="SyntaxError",o}function qi(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function Hi(t,e){var n,r={},o=(e=void 0!==e?e:{}).grammarSource,i={start:jt,JsonStringContents:function(){var t,e,n;for(t=mt,e=[],n=Dt();n!==r;)e.push(n),n=Dt();return vt=t,e=gt(e)}},a=jt,l="@{",s="}",c="@{}",u="\\",d="||",h="&&",p="==",f="!=",g=">=",m="<=",v="+",y="-",$="true",_="false",b=/^[^}]/,w=/^[^'}]/,x=/^[0-9]/,k=/^[a-zA-Z_0-9.]/,E=/^[a-zA-Z_]/,C=/^[ \t\r\n]/,A=xt("@{",!1),V=xt("}",!1),j=xt("@{}",!1),D=xt("\\",!1),P={type:"any"},S=kt(["}"],!0,!1),F=xt("?",!1),I=xt(":",!1),N=xt("||",!1),z=xt("&&",!1),M=xt("==",!1),J=xt("!=",!1),O=xt(">=",!1),T=xt(">",!1),B=xt("<=",!1),R=xt("<",!1),W=xt("+",!1),L=xt("-",!1),U=xt("/",!1),q=xt("*",!1),H=xt("%",!1),G=xt("!",!1),K=xt("(",!1),X=xt(")",!1),Y=xt(",",!1),Z=Et("string"),Q=xt("'",!1),tt=kt(["'","}"],!0,!1),et=Et("integer"),nt=kt([["0","9"]],!1,!1),rt=Et("number"),ot=xt(".",!1),it=xt("e",!1),at=xt("E",!1),lt=Et("boolean"),st=xt("true",!1),ct=xt("false",!1),ut=kt([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),dt=Et("identifier"),ht=kt([["a","z"],["A","Z"],"_"],!1,!1),pt=Et("whitespace"),ft=kt([" ","\t","\r","\n"],!1,!1),gt=function(t){return Ri(t)},mt=0,vt=0,yt=[{line:1,column:1}],$t=0,_t=[],bt=0;if("startRule"in e){if(!(e.startRule in i))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=i[e.startRule]}function wt(){return t.substring(vt,mt)}function xt(t,e){return{type:"literal",text:t,ignoreCase:e}}function kt(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function Et(t){return{type:"other",description:t}}function Ct(e){var n,r=yt[e];if(r)return r;for(n=e-1;!yt[n];)n--;for(r={line:(r=yt[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return yt[e]=r,r}function At(t,e){var n=Ct(t),r=Ct(e);return{source:o,start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:r.line,column:r.column}}}function Vt(t){mt<$t||(mt>$t&&($t=mt,_t=[]),_t.push(t))}function jt(){var t,e;return t=mt,Wt(),(e=Pt())!==r?(Wt(),vt=t,t=e):(mt=t,t=r),t}function Dt(){var e,n,o,i,a;if(e=mt,t.substr(mt,2)===l?(n=l,mt+=2):(n=r,0===bt&&Vt(A)),n!==r?(o=Wt(),(i=Pt())!==r?(Wt(),125===t.charCodeAt(mt)?(a=s,mt++):(a=r,0===bt&&Vt(V)),a!==r?(vt=e,e=i):(mt=e,e=r)):(mt=e,e=r)):(mt=e,e=r),e===r&&(e=mt,t.substr(mt,3)===c?(n=c,mt+=3):(n=r,0===bt&&Vt(j)),n!==r&&(vt=e,n=""),(e=n)===r&&(e=mt,n=mt,bt++,92===t.charCodeAt(mt)?(o=u,mt++):(o=r,0===bt&&Vt(D)),o===r&&(t.substr(mt,2)===l?(o=l,mt+=2):(o=r,0===bt&&Vt(A))),bt--,o===r?n=void 0:(mt=n,n=r),n!==r?(t.length>mt?(o=t.charAt(mt),mt++):(o=r,0===bt&&Vt(P)),o!==r?(vt=e,e=wt()):(mt=e,e=r)):(mt=e,e=r),e===r))){if(e=mt,t.substr(mt,2)===l?(n=l,mt+=2):(n=r,0===bt&&Vt(A)),n!==r){if(o=[],b.test(t.charAt(mt))?(i=t.charAt(mt),mt++):(i=r,0===bt&&Vt(S)),i!==r)for(;i!==r;)o.push(i),b.test(t.charAt(mt))?(i=t.charAt(mt),mt++):(i=r,0===bt&&Vt(S));else o=r;o!==r?(125===t.charCodeAt(mt)?(i=s,mt++):(i=r,0===bt&&Vt(V)),i!==r?(vt=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(mt=e,e=r)):(mt=e,e=r)}else mt=e,e=r;e===r&&(e=mt,t.substr(mt,2)===l?(n=l,mt+=2):(n=r,0===bt&&Vt(A)),n!==r&&(vt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===r&&(e=mt,92===t.charCodeAt(mt)?(n=u,mt++):(n=r,0===bt&&Vt(D)),n!==r?(t.substr(mt,2)===l?(o=l,mt+=2):(o=r,0===bt&&Vt(A)),o!==r?(vt=e,e=o):(mt=e,e=r)):(mt=e,e=r),e===r&&(e=mt,92===t.charCodeAt(mt)?(n=u,mt++):(n=r,0===bt&&Vt(D)),n!==r?(t.length>mt?(o=t.charAt(mt),mt++):(o=r,0===bt&&Vt(P)),o!==r?(vt=e,e=Li(o)):(mt=e,e=r)):(mt=e,e=r),e===r&&(e=mt,92===t.charCodeAt(mt)?(n=u,mt++):(n=r,0===bt&&Vt(D)),n!==r&&(vt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function Pt(){var e,n,o,i,a,l;return e=mt,(n=St())!==r?(Wt(),63===t.charCodeAt(mt)?(o="?",mt++):(o=r,0===bt&&Vt(F)),o!==r?(Wt(),(i=Pt())!==r?(Wt(),58===t.charCodeAt(mt)?(a=":",mt++):(a=r,0===bt&&Vt(I)),a!==r?(Wt(),(l=Pt())!==r?(vt=e,e={type:"ConditionalExpression",test:n,consequent:i,alternate:l}):(mt=e,e=r)):(mt=e,e=r)):(mt=e,e=r)):(mt=e,e=r)):(mt=e,e=r),e===r&&(e=St()),e}function St(){var e,n,o,i,a,l,s,c;if(e=mt,(n=Ft())!==r){for(o=[],i=mt,a=Wt(),t.substr(mt,2)===d?(l=d,mt+=2):(l=r,0===bt&&Vt(N)),l!==r?(s=Wt(),(c=Ft())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);i!==r;)o.push(i),i=mt,a=Wt(),t.substr(mt,2)===d?(l=d,mt+=2):(l=r,0===bt&&Vt(N)),l!==r?(s=Wt(),(c=Ft())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);vt=e,e=Bi(n,o)}else mt=e,e=r;return e}function Ft(){var e,n,o,i,a,l,s,c;if(e=mt,(n=It())!==r){for(o=[],i=mt,a=Wt(),t.substr(mt,2)===h?(l=h,mt+=2):(l=r,0===bt&&Vt(z)),l!==r?(s=Wt(),(c=It())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);i!==r;)o.push(i),i=mt,a=Wt(),t.substr(mt,2)===h?(l=h,mt+=2):(l=r,0===bt&&Vt(z)),l!==r?(s=Wt(),(c=It())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);vt=e,e=Bi(n,o)}else mt=e,e=r;return e}function It(){var e,n,o,i,a,l,s,c;if(e=mt,(n=Nt())!==r){for(o=[],i=mt,a=Wt(),t.substr(mt,2)===p?(l=p,mt+=2):(l=r,0===bt&&Vt(M)),l===r&&(t.substr(mt,2)===f?(l=f,mt+=2):(l=r,0===bt&&Vt(J))),l!==r?(s=Wt(),(c=Nt())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);i!==r;)o.push(i),i=mt,a=Wt(),t.substr(mt,2)===p?(l=p,mt+=2):(l=r,0===bt&&Vt(M)),l===r&&(t.substr(mt,2)===f?(l=f,mt+=2):(l=r,0===bt&&Vt(J))),l!==r?(s=Wt(),(c=Nt())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);vt=e,e=Ti(n,o)}else mt=e,e=r;return e}function Nt(){var e,n,o,i,a,l,s,c;if(e=mt,(n=zt())!==r){for(o=[],i=mt,a=Wt(),t.substr(mt,2)===g?(l=g,mt+=2):(l=r,0===bt&&Vt(O)),l===r&&(62===t.charCodeAt(mt)?(l=">",mt++):(l=r,0===bt&&Vt(T)),l===r&&(t.substr(mt,2)===m?(l=m,mt+=2):(l=r,0===bt&&Vt(B)),l===r&&(60===t.charCodeAt(mt)?(l="<",mt++):(l=r,0===bt&&Vt(R))))),l!==r?(s=Wt(),(c=zt())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);i!==r;)o.push(i),i=mt,a=Wt(),t.substr(mt,2)===g?(l=g,mt+=2):(l=r,0===bt&&Vt(O)),l===r&&(62===t.charCodeAt(mt)?(l=">",mt++):(l=r,0===bt&&Vt(T)),l===r&&(t.substr(mt,2)===m?(l=m,mt+=2):(l=r,0===bt&&Vt(B)),l===r&&(60===t.charCodeAt(mt)?(l="<",mt++):(l=r,0===bt&&Vt(R))))),l!==r?(s=Wt(),(c=zt())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);vt=e,e=Ti(n,o)}else mt=e,e=r;return e}function zt(){var e,n,o,i,a,l,s,c;if(e=mt,(n=Mt())!==r){for(o=[],i=mt,a=Wt(),43===t.charCodeAt(mt)?(l=v,mt++):(l=r,0===bt&&Vt(W)),l===r&&(45===t.charCodeAt(mt)?(l=y,mt++):(l=r,0===bt&&Vt(L))),l!==r?(s=Wt(),(c=Mt())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);i!==r;)o.push(i),i=mt,a=Wt(),43===t.charCodeAt(mt)?(l=v,mt++):(l=r,0===bt&&Vt(W)),l===r&&(45===t.charCodeAt(mt)?(l=y,mt++):(l=r,0===bt&&Vt(L))),l!==r?(s=Wt(),(c=Mt())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);vt=e,e=Ti(n,o)}else mt=e,e=r;return e}function Mt(){var e,n,o,i,a,l,s,c;if(e=mt,(n=Jt())!==r){for(o=[],i=mt,a=Wt(),47===t.charCodeAt(mt)?(l="/",mt++):(l=r,0===bt&&Vt(U)),l===r&&(42===t.charCodeAt(mt)?(l="*",mt++):(l=r,0===bt&&Vt(q)),l===r&&(37===t.charCodeAt(mt)?(l="%",mt++):(l=r,0===bt&&Vt(H)))),l!==r?(s=Wt(),(c=Jt())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);i!==r;)o.push(i),i=mt,a=Wt(),47===t.charCodeAt(mt)?(l="/",mt++):(l=r,0===bt&&Vt(U)),l===r&&(42===t.charCodeAt(mt)?(l="*",mt++):(l=r,0===bt&&Vt(q)),l===r&&(37===t.charCodeAt(mt)?(l="%",mt++):(l=r,0===bt&&Vt(H)))),l!==r?(s=Wt(),(c=Jt())!==r?i=a=[a,l,s,c]:(mt=i,i=r)):(mt=i,i=r);vt=e,e=Ti(n,o)}else mt=e,e=r;return e}function Jt(){var e,n,o;return(e=Bt())===r&&(e=Tt())===r&&(e=mt,33===t.charCodeAt(mt)?(n="!",mt++):(n=r,0===bt&&Vt(G)),n===r&&(43===t.charCodeAt(mt)?(n=v,mt++):(n=r,0===bt&&Vt(W)),n===r&&(45===t.charCodeAt(mt)?(n=y,mt++):(n=r,0===bt&&Vt(L)))),n!==r?(Wt(),(o=Jt())!==r?(vt=e,e={type:"UnaryExpression",operator:n,argument:o}):(mt=e,e=r)):(mt=e,e=r),e===r&&(e=function(){var e,n,o,i,a;return e=mt,(n=Rt())!==r?(Wt(),40===t.charCodeAt(mt)?(o="(",mt++):(o=r,0===bt&&Vt(K)),o!==r?(Wt(),i=function(){var e,n,o,i,a,l,s;if(e=mt,(n=Pt())!==r){for(o=[],i=mt,Wt(),44===t.charCodeAt(mt)?(a=",",mt++):(a=r,0===bt&&Vt(Y)),a!==r?(Wt(),(l=Pt())!==r?i=l:(mt=i,i=r)):(mt=i,i=r);i!==r;)o.push(i),i=mt,Wt(),44===t.charCodeAt(mt)?(a=",",mt++):(a=r,0===bt&&Vt(Y)),a!==r?(Wt(),(l=Pt())!==r?i=l:(mt=i,i=r)):(mt=i,i=r);vt=e,s=o,e=[n,...s]}else mt=e,e=r;return e===r&&(e=Wt()),e}(),i!==r?(Wt(),41===t.charCodeAt(mt)?(a=")",mt++):(a=r,0===bt&&Vt(X)),a!==r?(vt=e,e={type:"CallExpression",callee:n,arguments:i}):(mt=e,e=r)):(mt=e,e=r)):(mt=e,e=r)):(mt=e,e=r),e===r&&(e=mt,(n=Rt())!==r&&(vt=e,n={type:"Variable",id:n}),(e=n)===r&&(e=function(){var e,n,o,i;return e=function(){var e,n,o,i;return bt++,e=mt,39===t.charCodeAt(mt)?(n="'",mt++):(n=r,0===bt&&Vt(Q)),n!==r?(o=function(){var t,e,n;for(t=mt,e=[],n=Ot();n!==r;)e.push(n),n=Ot();return vt=t,e=Ri(e)}(),39===t.charCodeAt(mt)?(i="'",mt++):(i=r,0===bt&&Vt(Q)),i!==r?(vt=e,e=o):(mt=e,e=r)):(mt=e,e=r),bt--,e===r&&(n=r,0===bt&&Vt(Z)),e}(),e===r&&(e=Bt())===r&&(e=Tt())===r&&(e=function(){var e,n;return bt++,e=mt,t.substr(mt,4)===$?(n=$,mt+=4):(n=r,0===bt&&Vt(st)),n!==r&&(vt=e,n={type:"BooleanLiteral",value:!0}),(e=n)===r&&(e=mt,t.substr(mt,5)===_?(n=_,mt+=5):(n=r,0===bt&&Vt(ct)),n!==r&&(vt=e,n={type:"BooleanLiteral",value:!1}),e=n),bt--,e===r&&(n=r,0===bt&&Vt(lt)),e}(),e===r&&(e=mt,40===t.charCodeAt(mt)?(n="(",mt++):(n=r,0===bt&&Vt(K)),n!==r&&(o=Pt())!==r?(41===t.charCodeAt(mt)?(i=")",mt++):(i=r,0===bt&&Vt(X)),i!==r?(vt=e,e=o):(mt=e,e=r)):(mt=e,e=r))),e}())),e}())),e}function Ot(){var e,n,o,i,a;if(e=mt,t.substr(mt,2)===l?(n=l,mt+=2):(n=r,0===bt&&Vt(A)),n!==r?(o=Wt(),(i=Pt())!==r?(Wt(),125===t.charCodeAt(mt)?(a=s,mt++):(a=r,0===bt&&Vt(V)),a!==r?(vt=e,e=i):(mt=e,e=r)):(mt=e,e=r)):(mt=e,e=r),e===r&&(e=mt,t.substr(mt,3)===c?(n=c,mt+=3):(n=r,0===bt&&Vt(j)),n!==r&&(vt=e,n=""),(e=n)===r&&(e=mt,n=mt,bt++,92===t.charCodeAt(mt)?(o=u,mt++):(o=r,0===bt&&Vt(D)),o===r&&(39===t.charCodeAt(mt)?(o="'",mt++):(o=r,0===bt&&Vt(Q)),o===r&&(t.substr(mt,2)===l?(o=l,mt+=2):(o=r,0===bt&&Vt(A)))),bt--,o===r?n=void 0:(mt=n,n=r),n!==r?(t.length>mt?(o=t.charAt(mt),mt++):(o=r,0===bt&&Vt(P)),o!==r?(vt=e,e=wt()):(mt=e,e=r)):(mt=e,e=r),e===r))){if(e=mt,t.substr(mt,2)===l?(n=l,mt+=2):(n=r,0===bt&&Vt(A)),n!==r){if(o=[],w.test(t.charAt(mt))?(i=t.charAt(mt),mt++):(i=r,0===bt&&Vt(tt)),i!==r)for(;i!==r;)o.push(i),w.test(t.charAt(mt))?(i=t.charAt(mt),mt++):(i=r,0===bt&&Vt(tt));else o=r;o!==r?(125===t.charCodeAt(mt)?(i=s,mt++):(i=r,0===bt&&Vt(V)),i!==r?(vt=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(mt=e,e=r)):(mt=e,e=r)}else mt=e,e=r;e===r&&(e=mt,t.substr(mt,2)===l?(n=l,mt+=2):(n=r,0===bt&&Vt(A)),n!==r&&(vt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===r&&(e=mt,92===t.charCodeAt(mt)?(n=u,mt++):(n=r,0===bt&&Vt(D)),n!==r?(t.substr(mt,2)===l?(o=l,mt+=2):(o=r,0===bt&&Vt(A)),o!==r?(vt=e,e=o):(mt=e,e=r)):(mt=e,e=r),e===r&&(e=mt,92===t.charCodeAt(mt)?(n=u,mt++):(n=r,0===bt&&Vt(D)),n!==r?(t.length>mt?(o=t.charAt(mt),mt++):(o=r,0===bt&&Vt(P)),o!==r?(vt=e,e=Li(o)):(mt=e,e=r)):(mt=e,e=r),e===r&&(e=mt,92===t.charCodeAt(mt)?(n=u,mt++):(n=r,0===bt&&Vt(D)),n!==r&&(vt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function Tt(){var e,n,o,i;if(bt++,e=mt,45===t.charCodeAt(mt)?(n=y,mt++):(n=r,0===bt&&Vt(L)),n===r&&(n=null),o=[],x.test(t.charAt(mt))?(i=t.charAt(mt),mt++):(i=r,0===bt&&Vt(nt)),i!==r)for(;i!==r;)o.push(i),x.test(t.charAt(mt))?(i=t.charAt(mt),mt++):(i=r,0===bt&&Vt(nt));else o=r;return o!==r?(vt=e,e={type:"IntegerLiteral",value:Wi(wt())}):(mt=e,e=r),bt--,e===r&&(n=r,0===bt&&Vt(et)),e}function Bt(){var e,n,o,i,a,l,s,c,u,d;for(bt++,e=mt,45===t.charCodeAt(mt)?(n=y,mt++):(n=r,0===bt&&Vt(L)),n===r&&(n=null),o=[],x.test(t.charAt(mt))?(i=t.charAt(mt),mt++):(i=r,0===bt&&Vt(nt));i!==r;)o.push(i),x.test(t.charAt(mt))?(i=t.charAt(mt),mt++):(i=r,0===bt&&Vt(nt));if(46===t.charCodeAt(mt)?(i=".",mt++):(i=r,0===bt&&Vt(ot)),i!==r){if(a=[],x.test(t.charAt(mt))?(l=t.charAt(mt),mt++):(l=r,0===bt&&Vt(nt)),l!==r)for(;l!==r;)a.push(l),x.test(t.charAt(mt))?(l=t.charAt(mt),mt++):(l=r,0===bt&&Vt(nt));else a=r;if(a!==r){if(l=mt,101===t.charCodeAt(mt)?(s="e",mt++):(s=r,0===bt&&Vt(it)),s===r&&(69===t.charCodeAt(mt)?(s="E",mt++):(s=r,0===bt&&Vt(at))),s!==r){if(43===t.charCodeAt(mt)?(c=v,mt++):(c=r,0===bt&&Vt(W)),c===r&&(45===t.charCodeAt(mt)?(c=y,mt++):(c=r,0===bt&&Vt(L))),c===r&&(c=null),u=[],x.test(t.charAt(mt))?(d=t.charAt(mt),mt++):(d=r,0===bt&&Vt(nt)),d!==r)for(;d!==r;)u.push(d),x.test(t.charAt(mt))?(d=t.charAt(mt),mt++):(d=r,0===bt&&Vt(nt));else u=r;u!==r?l=s=[s,c,u]:(mt=l,l=r)}else mt=l,l=r;l===r&&(l=null),vt=e,e={type:"NumberLiteral",value:parseFloat(wt())}}else mt=e,e=r}else mt=e,e=r;if(e===r){if(e=mt,45===t.charCodeAt(mt)?(n=y,mt++):(n=r,0===bt&&Vt(L)),n===r&&(n=null),o=[],x.test(t.charAt(mt))?(i=t.charAt(mt),mt++):(i=r,0===bt&&Vt(nt)),i!==r)for(;i!==r;)o.push(i),x.test(t.charAt(mt))?(i=t.charAt(mt),mt++):(i=r,0===bt&&Vt(nt));else o=r;if(o!==r)if(101===t.charCodeAt(mt)?(i="e",mt++):(i=r,0===bt&&Vt(it)),i===r&&(69===t.charCodeAt(mt)?(i="E",mt++):(i=r,0===bt&&Vt(at))),i!==r){if(43===t.charCodeAt(mt)?(a=v,mt++):(a=r,0===bt&&Vt(W)),a===r&&(45===t.charCodeAt(mt)?(a=y,mt++):(a=r,0===bt&&Vt(L))),a===r&&(a=null),l=[],x.test(t.charAt(mt))?(s=t.charAt(mt),mt++):(s=r,0===bt&&Vt(nt)),s!==r)for(;s!==r;)l.push(s),x.test(t.charAt(mt))?(s=t.charAt(mt),mt++):(s=r,0===bt&&Vt(nt));else l=r;l!==r?(vt=e,e={type:"NumberLiteral",value:parseFloat(wt())}):(mt=e,e=r)}else mt=e,e=r;else mt=e,e=r}return bt--,e===r&&(n=r,0===bt&&Vt(rt)),e}function Rt(){var e,n,o,i,a;if(bt++,e=mt,n=mt,bt++,o=function(){var e,n,o,i;return e=mt,t.substr(mt,4)===$?(n=$,mt+=4):(n=r,0===bt&&Vt(st)),n===r&&(t.substr(mt,5)===_?(n=_,mt+=5):(n=r,0===bt&&Vt(ct))),n!==r?(o=mt,bt++,k.test(t.charAt(mt))?(i=t.charAt(mt),mt++):(i=r,0===bt&&Vt(ut)),bt--,i===r?o=void 0:(mt=o,o=r),o!==r?e=n=[n,o]:(mt=e,e=r)):(mt=e,e=r),e}(),bt--,o===r?n=void 0:(mt=n,n=r),n!==r)if(E.test(t.charAt(mt))?(o=t.charAt(mt),mt++):(o=r,0===bt&&Vt(ht)),o!==r){for(i=[],k.test(t.charAt(mt))?(a=t.charAt(mt),mt++):(a=r,0===bt&&Vt(ut));a!==r;)i.push(a),k.test(t.charAt(mt))?(a=t.charAt(mt),mt++):(a=r,0===bt&&Vt(ut));vt=e,e={type:"Identifier",name:wt()}}else mt=e,e=r;else mt=e,e=r;return bt--,e===r&&(n=r,0===bt&&Vt(dt)),e}function Wt(){var e,n;for(bt++,e=[],C.test(t.charAt(mt))?(n=t.charAt(mt),mt++):(n=r,0===bt&&Vt(ft));n!==r;)e.push(n),C.test(t.charAt(mt))?(n=t.charAt(mt),mt++):(n=r,0===bt&&Vt(ft));return bt--,n=r,0===bt&&Vt(pt),e}if((n=a())!==r&&mt===t.length)return n;throw n!==r&&mt<t.length&&Vt({type:"end"}),function(t,e,n){return new Ui(Ui.buildMessage(t,e),t,e,n)}(_t,$t<t.length?t.charAt($t):null,$t<t.length?At($t,$t+1):At($t,$t))}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(Ui,Error),Ui.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=qi("",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+" | "+qi("",o.column-1," ")+qi("",c,"^")}else e+="\n at "+i}return e},Ui.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 Gi=new Map,Ki=new Map;function Xi(t,e,n){const r={args:e,cb:n},o=Gi.get(t)||[];Gi.has(t)||Gi.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");Ki.set(i,r)}function Yi(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 Zi(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=>{Zi(t,e)}));break;case"BinaryExpression":case"LogicalExpression":Zi(t.left,e),Zi(t.right,e);break;case"UnaryExpression":Zi(t.argument,e);break;case"ConditionalExpression":Zi(t.test,e),Zi(t.consequent,e),Zi(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{Zi(t,e)}))}}function Qi(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function ta(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function ea(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 ta(t.value);if("color"===t.type)return ua(ca(t.value));if("url"===t.type)return t.value;throw new Error("Unexpected type ".concat(t.type))}function na(t){let e=ea(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\'").replace(/'/g,"\\'")+"'"),e}function ra(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}const oa=new Int32Array(1);function ia(t){return oa[0]=t,oa[0]}function aa(t){if(t<qo||t>Uo)throw new Error("Integer overflow.")}function la(t){const e=[];return Zi(t,{Variable(t){e.push(t.id.name)}}),e}function sa(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function ca(t){const e=le(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function ua(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 oe(Math.round(t).toString(16),2)})).join("").toUpperCase())}function da(t){return{type:Ko,value:ea(t)}}function ha(t){const e=Number(t.value);if(isNaN(e)||!Number.isFinite(e))throw new Error("Unable to convert value to Number.");return{type:Yo,value:e}}function pa(t,e){if(0===e.value)throw new Error("Division by zero is not supported.");let n=t.value/e.value;return t.type===Xo&&(n=ia(n)),{type:t.type,value:n}}function fa(t,e){if(0===e.value)throw new Error("Division by zero is not supported.");let n=t.value%e.value;return t.type===Xo&&(n=ia(n)),{type:t.type,value:n}}function ga(){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===Xo&&(r=ia(r));return{type:e[0].type,value:r}}function ma(){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===Xo&&(r=ia(r));return{type:e.length?e[0].type:Xo,value:r}}function va(){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===Xo&&(t=ia(t));return{type:n.length?n[0].type:Xo,value:t}}function ya(t){const e=Math.abs(t.value);return t.type===Xo&&aa(e),{type:t.type,value:e}}function $a(){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 for max function.");return{type:e[0].type,value:Math.max(...e.map((t=>t.value)))}}function _a(){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 for min function.");return{type:e[0].type,value:Math.min(...e.map((t=>t.value)))}}function ba(t){return{type:t.type,value:Math.sign(t.value)}}function wa(t,e){let n;if(0===e.value&&t.type===Xo)n=t.value;else if(0===t.value&&t.type===Xo)n=0;else{let r=Math.sign(e.value);t.type===Yo&&0===r&&(r=Object.is(r,0)?1:-1),n=Math.abs(t.value)*r}return t.type===Xo&&aa(n),{type:t.type,value:n}}function xa(t){return e=>{const n=ca(e.value);return{type:Yo,value:n[t]/255}}}function ka(t){return(e,n)=>{const r=ca(e.value);return r[t]=255*n.value,{type:Qo,value:ua(r)}}}const Ea=xa("a"),Ca=xa("r"),Aa=xa("g"),Va=xa("b"),ja=ka("a"),Da=ka("r"),Pa=ka("g"),Sa=ka("b");function Fa(t){return t.map(na).join(", ")}Xi("toString",[Xo],da),Xi("toString",[Yo],da),Xi("toString",[Zo],da),Xi("toString",[Qo],da),Xi("toString",["url"],da),Xi("toNumber",[Xo],ha),Xi("toNumber",[Ko],ha),Xi("toInteger",[Yo],(function(t){if(t.value>Uo||t.value<qo)throw new Error("Unable to convert value to Integer.");const e=t.value-t.value%1;return{type:Xo,value:e}})),Xi("toInteger",[Ko],(function(t){const e=Number(t.value);if(isNaN(e)||e%1!=0||e>Uo||e<qo)throw new Error("Unable to convert value to Integer.");return{type:Xo,value:e}})),Xi("toInteger",[Zo],(function(t){return{type:Xo,value:t.value?1:0}})),Xi("toBoolean",[Xo],(function(t){if(1!==t.value&&0!==t.value)throw new Error("Unable to convert value to Boolean.");return{type:Zo,value:t.value}})),Xi("toBoolean",[Ko],(function(t){if("true"!==t.value&&"false"!==t.value)throw new Error("Unable to convert value to Boolean.");return{type:Zo,value:"true"===t.value?1:0}})),Xi("encodeUri",[Ko],(function(t){try{return{type:Ko,value:encodeURIComponent(t.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),Xi("decodeUri",[Ko],(function(t){try{return{type:Ko,value:decodeURIComponent(t.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),Xi("parseUnixTime",[Xo],(function(t){return{type:ti,value:new Date(1e3*t.value)}})),Xi("nowLocal",[],(function(){return{type:ti,value:new Date}})),Xi("addMillis",[ti,Xo],(function(t,e){return{type:ti,value:new Date(t.value.getTime()+e.value)}})),Xi("setYear",[ti,Xo],(function(t,e){const n=new Date(t.value);return n.setFullYear(e.value),{type:ti,value:n}})),Xi("setMonth",[ti,Xo],(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:ti,value:n}})),Xi("setDay",[ti,Xo],(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(ea(t),"."));return n.setDate(-1===e.value?0:e.value),{type:ti,value:n}})),Xi("setHours",[ti,Xo],(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:ti,value:n}})),Xi("setMinutes",[ti,Xo],(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:ti,value:n}})),Xi("setSeconds",[ti,Xo],(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:ti,value:n}})),Xi("setMillis",[ti,Xo],(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:ti,value:n}})),Xi("len",[Ko],(function(t){return{type:Xo,value:t.value.length}})),Xi("contains",[Ko,Ko],(function(t,e){return{type:Zo,value:t.value.includes(e.value)?1:0}})),Xi("substring",[Ko,Xo,Xo],(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:Ko,value:t.value.substring(e.value,n.value)}})),Xi("replaceAll",[Ko,Ko,Ko],(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:Ko,value:r}})),Xi("index",[Ko,Ko],(function(t,e){return{type:Xo,value:t.value.indexOf(e.value)}})),Xi("lastIndex",[Ko,Ko],(function(t,e){return{type:Xo,value:t.value.lastIndexOf(e.value)}})),Xi("trim",[Ko],(function(t){return{type:Ko,value:t.value.trim()}})),Xi("trimLeft",[Ko],(function(t){return{type:Ko,value:t.value.replace(/^\s+/,"")}})),Xi("trimRight",[Ko],(function(t){return{type:Ko,value:t.value.replace(/\s+$/,"")}})),Xi("toUpperCase",[Ko],(function(t){return{type:Ko,value:t.value.toUpperCase()}})),Xi("toLowerCase",[Ko],(function(t){return{type:Ko,value:t.value.toLowerCase()}})),Xi("div",[Xo,Xo],pa),Xi("div",[Yo,Yo],pa),Xi("mod",[Xo,Xo],fa),Xi("mod",[Yo,Yo],fa),Xi("mul",[{type:Xo,isVararg:!0}],ga),Xi("mul",[{type:Yo,isVararg:!0}],ga),Xi("sub",[{type:Xo,isVararg:!0}],ma),Xi("sub",[{type:Yo,isVararg:!0}],ma),Xi("sum",[{type:Xo,isVararg:!0}],va),Xi("sum",[{type:Yo,isVararg:!0}],va),Xi("abs",[Xo],ya),Xi("abs",[Yo],ya),Xi("max",[{type:Xo,isVararg:!0}],$a),Xi("max",[{type:Yo,isVararg:!0}],$a),Xi("min",[{type:Xo,isVararg:!0}],_a),Xi("min",[{type:Yo,isVararg:!0}],_a),Xi("maxNumber",[],(function(){return{type:Yo,value:Ho}})),Xi("minNumber",[],(function(){return{type:Yo,value:Go}})),Xi("maxInteger",[],(function(){return{type:Xo,value:Uo}})),Xi("minInteger",[],(function(){return{type:Xo,value:qo}})),Xi("round",[Yo],(function(t){const e=Math.sign(t.value);return{type:Yo,value:e*Math.round(Math.abs(t.value))}})),Xi("floor",[Yo],(function(t){return{type:Yo,value:Math.floor(t.value)}})),Xi("ceil",[Yo],(function(t){return{type:Yo,value:Math.ceil(t.value)}})),Xi("signum",[Yo],ba),Xi("signum",[Xo],ba),Xi("copySign",[Yo,Yo],wa),Xi("copySign",[Xo,Xo],wa),Xi("getColorAlpha",[Ko],Ea),Xi("getColorAlpha",[Qo],Ea),Xi("getColorRed",[Ko],Ca),Xi("getColorRed",[Qo],Ca),Xi("getColorGreen",[Ko],Aa),Xi("getColorGreen",[Qo],Aa),Xi("getColorBlue",[Ko],Va),Xi("getColorBlue",[Qo],Va),Xi("setColorAlpha",[Ko,Yo],ja),Xi("setColorAlpha",[Qo,Yo],ja),Xi("setColorRed",[Ko,Yo],Da),Xi("setColorRed",[Qo,Yo],Da),Xi("setColorGreen",[Ko,Yo],Pa),Xi("setColorGreen",[Qo,Yo],Pa),Xi("setColorBlue",[Ko,Yo],Sa),Xi("setColorBlue",[Qo,Yo],Sa),Xi("rgb",[Yo,Yo,Yo],(function(t,e,n){const r={a:255,r:255*t.value,g:255*e.value,b:255*n.value};return{type:Qo,value:ua(r)}})),Xi("argb",[Yo,Yo,Yo,Yo],(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:Qo,value:ua(o)}}));const Ia={StringLiteral:function(t,e){return{type:Ko,value:e.value}},NumberLiteral:function(t,e){return{type:Yo,value:e.value}},IntegerLiteral:function(t,e){return{type:Xo,value:e.value}},BooleanLiteral:function(t,e){return{type:Zo,value:e.value?1:0}},UnaryExpression:function(t,e){const n=Qi(Na(t,e.argument));switch(e.operator){case"!":if(n.type===Zo)return{type:Zo,value:n.value?0:1};sa("".concat(e.operator).concat(na(n)),"A Boolean is expected after a unary not.");case"+":case"-":const t="+"===e.operator?1:-1;if(n.type===Xo)return{type:Xo,value:n.value*t};if(n.type===Yo)return{type:Yo,value:n.value*t};sa("".concat(e.operator).concat(na(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=Qi(Na(t,e.test));if(n.type===Zo)return n.value?Na(t,e.consequent):Na(t,e.alternate);sa("".concat(na(n)," ? ").concat(na(Na(t,e.consequent))," : ").concat(na(Na(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 Na(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=ea(Na(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:Ko,value:n}},LogicalExpression:function(t,e){const n=Qi(Na(t,e.left));if(n.type!==Zo&&sa("".concat(na(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:Zo,value:0};const r=Qi(Na(t,e.right));return r.type!==Zo&&sa("".concat(na(n)," ").concat(e.operator," ").concat(na(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(ra(r.type),".")),{type:Zo,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=Na(t,e.left),o=Na(t,e.right);if(r.type!==o.type&&sa("".concat(na(r)," ").concat(e.operator," ").concat(na(o)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(ra(r.type)," and ").concat(ra(o.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===ti&&n.type===ti?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:Zo,value:r?1:0}}(n,r,o);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==Yo&&e.type!==Xo&&e.type!==ti&&sa("".concat(na(e)," ").concat(t," ").concat(na(n)),"Operator '".concat(t,"' cannot be applied to ").concat(ra(e.type)," type."));const o=e.type===ti?e.value.getTime():e.value,i=n.type===ti?n.value.getTime():n.value;return r=">"===t?o>i:">="===t?o>=i:"<"===t?o<i:o<=i,{type:Zo,value:r?1:0}}(n,r,o);if("+"===n||"-"===n)return function(t,e,n){if(e.type!==Ko&&e.type!==Yo&&e.type!==Xo&&sa("".concat(na(e)," ").concat(t," ").concat(na(n)),"Operator '".concat(t,"' cannot be applied to ").concat(ra(e.type)," type.")),e.type===Ko)return"-"===t&&sa("".concat(na(e)," - ").concat(na(n)),"Operator '".concat(t,"' cannot be applied to ").concat(ra(e.type)," type.")),{type:Ko,value:e.value+n.value};let r="+"===t?e.value+n.value:e.value-n.value;return e.type===Xo&&(r=ia(r)),{type:e.type,value:r}}(n,r,o);if("/"===n||"*"===n||"%"===n)return function(t,e,n){let r;if(e.type!==Xo&&e.type!==Yo&&sa("".concat(na(e)," ").concat(t," ").concat(na(n)),"Operator '".concat(t,"' cannot be applied to ").concat(ra(e.type)," type.")),"*"===t)r=e.value*n.value;else{if("/"!==t&&"%"!==t)throw new Error("Unsupported operation ".concat(t));0===n.value&&sa("".concat(na(e)," ").concat(t," ").concat(na(n)),"Division by zero is not supported."),r="/"===t?e.value/n.value:e.value%n.value}return e.type===Xo&&(r=ia(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(!Gi.has(n))throw new Error("Unknown function name: ".concat(n,"."));let r;const o=e.arguments.map((e=>Na(t,e))),i=n+":"+o.map((t=>t.type)).join("#");if(Ki.has(i))r=Ki.get(i);else{const t=function(t,e){const n=Gi.get(t);if(!n)throw new Error("Missing function");let r=null;for(let t=0;t<n.length;++t){const o=Yi(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=>ra(t.type))).join(", "),r="".concat(n,"(").concat(Fa(o),")");"few"===t.type&&0===o.length?sa(r,"Non empty argument list is required for function '".concat(n,"'.")):(t.type,sa(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){sa("".concat(n,"(").concat(Fa(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 Na(t,e){if(e.type in Ia)return Ia[e.type](t,e);throw new Error("Unsupported expression")}function za(t,e){try{return Na(t,e)}catch(t){return{type:"error",value:t.message}}}class Ma{constructor(t){this.ast=t}apply(t,e){if(!function(t,e){let n=!1;return Zi(t,{Variable(t){e.has(t.id.name)||(n=!0)}}),n}(this.ast,t))try{const n=za(t,this.ast);if("error"===n.type)return void e(Zt(new Error("Expression execution error"),{additional:{message:n.value}}));const r=n.value;if(r instanceof Date)return ta(r);if("boolean"===n.type)return Boolean(r);if("color"===n.type){const t=le(String(r));if(t)return ua(t);e(Zt(new Error("Expression execution error")))}return r}catch(t){return void e(Zt(new Error("Expression execution error")))}}}function Ja(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=Hi(t,{startRule:"JsonStringContents"}),r=la(n);return e.vars.push(...r),new Ma(n)}catch(e){return void n(Zt(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>Ja(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=Ja(t[o],e,n);return r}}var r;return t}function Oa(t,e,n){if(t){if(t instanceof Ma)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>Oa(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=Oa(t[o],e,n);return r}}return t}function Ta(t,e){const n={vars:[],hasExpression:!1},r=Ja(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:t=>Oa(r,t,e)}}const Ba={pagers:function(){return Rt(new Map)}},Ra=new Map,Wa=new Map;function La(t){const e=Ra.get(t)||Rt("");return Ra.has(t)||Ra.set(t,e),e}function Ua(t){const e=Wa.get(t)||new Map;return Wa.has(t)||Wa.set(t,e),e}class qa{setVariable(t){const e=t.getName(),n=Ua(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),La(this).set(e)}getVariable(t){return Ua(this).get(t)}}function Ha(){return new qa}function Ga(t){let e,n,r,o,i,a,l,s;return n=new zi({props:{svgFiltersMap:t[1]}}),o=new Ai({props:{div:t[5],templateContext:t[4]}}),{c(){e=I("div"),Nt(n.$$.fragment),r=M(),Nt(o.$$.fragment),this.h()},l(t){e=U(t,"DIV",{class:!0});var i=R(e);zt(n.$$.fragment,i),r=G(i),zt(o.$$.fragment,i),i.forEach(S),this.h()},h(){T(e,"class",i=""+(Lt+(t[2]?" ".concat(Gt):"")))},m(t,i){P(t,e,i),Mt(n,e,null),D(e,r),Mt(o,e,null),a=!0,l||(s=O(e,"touchstart",Xa,{passive:!0}),l=!0)},p(t,r){const o={};2&r[0]&&(o.svgFiltersMap=t[1]),n.$set(o),(!a||4&r[0]&&i!==(i=""+(Lt+(t[2]?" ".concat(Gt):""))))&&T(e,"class",i)},i(t){a||(At(n.$$.fragment,t),At(o.$$.fragment,t),a=!0)},o(t){Vt(n.$$.fragment,t),Vt(o.$$.fragment,t),a=!1},d(t){t&&S(e),Jt(n),Jt(o),l=!1,s()}}}function Ka(t){let e,n,r=!t[0]&&t[5]&&Ga(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,o){r&&r.m(t,o),P(t,e,o),n=!0},p(t,n){!t[0]&&t[5]?r?(r.p(t,n),1&n[0]&&At(r,1)):(r=Ga(t),r.c(),At(r,1),r.m(e.parentNode,e)):r&&(Et(),Vt(r,1,1,(()=>{r=null})),Ct())},i(t){n||(At(r),n=!0)},o(t){Vt(r),n=!1},d(t){r&&r.d(t),t&&S(e)}}}function Xa(){}function Ya(t,e,n){let r;var o,i,a;let{id:l}=e,{json:s={}}=e,{platform:c="auto"}=e,{theme:u="system"}=e,{globalVariablesController:d=new qa}=e,{onError:h}=e,{onStat:p}=e,{onCustomAction:g}=e,{onComponent:m}=e,v=Rt("desktop"===c);if(f(t,v,(t=>n(2,r=t))),"auto"===c&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");v.set(!t.matches),t.addListener((()=>{v.set(!t.matches)}))}let y="light",$=null;function _(){"system"===u&&$&&n(19,y=$.matches?"dark":"light")}let b=!1;s||(b=!0,P(Zt(new Error('"json" prop is required')))),l||(b=!0,P(Zt(new Error('"id" prop is required'))));let w=function(t){if(!t)return Zt(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return Zt(new Error("Missing card"));if(!e.states||!e.states.length)return Zt(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in xi)return Zt(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return Zt(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return Zt(new Error("Missing state_id"),{additional:{index:t}})}return null}(s);const x=s.templates||{};w&&(b=!0,P(w));const k={stateChange:!1},E=La(d),C=Ua(d),A=new Map,V=new Map,j=new Map;function D(t){const e=Ta(t,P);return e.vars.length?e.applyVars(V):t}function P(t){h?h({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function S(t,e){p&&p({type:t,action:e})}let F=0;function I(t){return"".concat(l,"-").concat(F++)}let N={},z={};function M(t){const e=t.url?String(t.url):"";if(e)try{const t=e.replace(/div-action:\/\//,""),n=/([^?]+)\?(.+)/.exec(t);if(!n)return;const r=new URLSearchParams(n[2]);switch(n[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=W,n=t.split("/");if(n=["root",...n],n.length<2||n.length%2!=0)throw new Error("Incorrect state id format");for(let t=0;t<n.length;t+=2){const r=n[t],o=n[t+1];let i=e.getChild(r);if(!i)return;i.setState(o),e=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=T(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=T(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=T(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=V.get(n);t?t.set(o):P(Zt(new Error("Cannot find variable"),{additional:{name:n}}))}else P(Zt(new Error("Incorrect set_variable_action"),{additional:{url:t}}));break;default:P(Zt(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){P(Zt(t,{additional:{url:e}}))}}function J(t){null==g||g(t)}const O=new Map;function T(t){if(O.has(t))return O.get(t);P(Zt(new Error("Missing instance with id"),{additional:{id:t}}))}const B=new Map;function R(t){for(const e of t)V.has(e)&&t.delete(e);return t}it(Yt,{logError:P,logStat:S,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}=Mi(t,e,x,P)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:I,genClass:function(t){return"divkit-".concat(I())},execAction:M,execAnyActions:async function(t,e){if(t){for(let n=0;n<t.length;++n){let r=t[n];const o=r.url;if(o){const t=ge(o);if(t)if(ve(t)){if(e)if("_blank"===r.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=o)}else location.href=o}else"div-action"===t?(M(r),await gt()):r.log_id&&(J(r),await gt())}}t.forEach((t=>{t.log_id&&S("click",t)}))}},execCustomAction:J,isRunning:function(t){return k[t]},setRunning:function(t,e){k[t]=e},registerInstance:function(t,e){O.has(t)?P(Zt(new Error("Duplicate instance id"),{additional:{id:t}})):O.set(t,e)},unregisterInstance:function(t){O.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(z[r]=z[r]||0,++z[r],N[r])return N[r];const o="".concat(I(),"-svg-filter");return n(1,N=Object.assign(Object.assign({},N),{[r]:o})),o},removeSvgFilter:function(t,e){if(!t||!z[t])return;const r="".concat(t,":").concat(e);0==--z[r]&&n(1,N=Object.keys(N).reduce(((t,e)=>(z[e]&&(t[e]=N[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return Oi(t);const e=Ta(t,P);return e.vars.length?Wt(e.vars.map((t=>V.get(t)||function(t){const e=j.get(t)||Rt(void 0);return j.has(t)||j.set(t,e),e}(t))).filter(ce),(()=>e.applyVars(V))):e.hasExpression?Oi(e.applyVars(V)):Oi(t)},getJsonWithVars:D,getStore:function(t){return B.has(t)||function(t){B.has(t)||B.set(t,Ba[t]())}(t),B.get(t)},getVariable:function(t,e){const n=V.get(t);if(n){const r=n.getType();if(r!==e)return void P(Zt(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},isDesktop:v,registerComponent:void 0,unregisterComponent:void 0}),it(Ie,{hasAction:()=>!1});const W={setState(t){throw new Error("Not implemented")},getChild(t){if(L&&L.has(t))return L.get(t);P(Zt(new Error("Missing state block with id"),{additional:{id:t}}))}};let L=null;it(_e,{registerInstance(t,e){L||(L=new Map),L.has(t)?P(Zt(new Error("Duplicate state with id"),{additional:{id:t}})):L.set(t,e)},unregisterInstance(t){null==L||L.delete(t)},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 U=null===(o=null==s?void 0:s.card)||void 0===o?void 0:o.variables;Array.isArray(U)&&U.forEach((t=>{if(t&&t.type in ni&&t.name){if(A.has(t.name))return void P(Zt(new Error("Duplicate variable"),{additional:{name:t.name}}));try{const e=ri(t.name,t.type,t.value);A.set(t.name,e),V.set(t.name,e)}catch(e){P(Zt(e,{additional:{name:t.name}}))}}}));const q=s.palette;q&&q[y].forEach((t=>{if(A.has(t.name))P(Zt(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=ri(t.name,"color",t.color);A.set(t.name,e),V.set(t.name,e)}catch(e){P(Zt(e,{additional:{name:t.name}}))}}));for(const[t,e]of C)V.has(t)||V.set(t,e);E.subscribe((t=>{if(t&&!V.has(t)){const e=C.get(t);V.set(t,e);const n=j.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const H=null===(i=null==s?void 0:s.card)||void 0===i?void 0:i.variable_triggers;Array.isArray(H)&&H.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void P(Zt(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=Hi(t.condition,{startRule:"JsonStringContents"}),o=la(r);if(!o.length)return void P(Zt(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return R(e),e.size?new Promise((t=>{const n=E.subscribe((()=>{R(e),e.size||(n(),t())}))})):Promise.resolve()})(o).then((()=>{Wt(o.map((t=>V.get(t))).filter(ce),(()=>za(V,r))).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=D(t);e.log_id&&M(e)})),e=Boolean(r.value)):P(Zt(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){P(Zt(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else P(Zt(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));const G=null===(a=s.card)||void 0===a?void 0:a.states,K=G&&!b?{type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:G.map((t=>({state_id:t.state_id.toString(),div:t.div})))}:void 0;return t.$$set=t=>{"id"in t&&n(7,l=t.id),"json"in t&&n(8,s=t.json),"platform"in t&&n(9,c=t.platform),"theme"in t&&n(6,u=t.theme),"globalVariablesController"in t&&n(10,d=t.globalVariablesController),"onError"in t&&n(11,h=t.onError),"onStat"in t&&n(12,p=t.onStat),"onCustomAction"in t&&n(13,g=t.onCustomAction),"onComponent"in t&&n(14,m=t.onComponent)},t.$$.update=()=>{1048640&t.$$.dirty[0]&&("light"===u||"dark"===u?n(19,y=u):"system"===u?"undefined"!=typeof matchMedia?($||(n(20,$=matchMedia("(prefers-color-scheme: dark)")),$.addListener(_)),n(19,y=$.matches?"dark":"light")):n(19,y="light"):P(Zt(new Error("Unsupported theme")))),524288&t.$$.dirty[0]&&y&&q&&q[y].forEach((t=>{const e=V.get(t.name);e&&e.setValue(t.color)}))},[b,N,r,v,{},K,u,l,s,c,d,h,p,g,m,function(t){n(6,u=t)},function(t,e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){const n=V.get(t);n&&n.setValue(e)}},function(t){const e=V.get(t);return null==e?void 0:e.getValue()},M,y,$]}const Za=class extends Tt{constructor(t){super(),Ot(this,t,Ya,Ka,d,{id:7,json:8,platform:9,theme:6,globalVariablesController:10,onError:11,onStat:12,onCustomAction:13,onComponent:14,setTheme:15,setVariable:16,getVariable:17,execAction:18},null,[-1,-1,-1])}get setTheme(){return this.$$.ctx[15]}get setVariable(){return this.$$.ctx[16]}get getVariable(){return this.$$.ctx[17]}get execAction(){return this.$$.ctx[18]}};function Qa(t){return new Za({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})}(window.Ya=window.Ya||{}).Divkit=e})();
|
|
2
2
|
//# sourceMappingURL=client-hydratable.js.map
|