@divkitframework/divkit 29.15.0 → 30.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/README.md +1 -1
- 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.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/esm/client-devtool.mjs +1 -1
- package/dist/esm/client-devtool.mjs.map +1 -1
- package/dist/esm/client-hydratable.mjs +1 -1
- package/dist/esm/client-hydratable.mjs.map +1 -1
- package/dist/esm/client.mjs +1 -1
- package/dist/esm/client.mjs.map +1 -1
- package/dist/esm/server.mjs +1 -1
- package/dist/esm/server.mjs.map +1 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -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,{SizeProvider:()=>Fu,createGlobalVariablesController:()=>Wc,createVariable:()=>Wi,lottieExtensionBuilder:()=>Su,render:()=>Nu});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 s(t){t.forEach(i)}function l(t){return"function"==typeof t}let c;function u(t,e){return t===e||(c||(c=document.createElement("a")),c.href=e,t===c.href)}function d(t,e){return t!=t?e==e:t!==e}function p(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(null==t){for(const t of r)t(void 0);return n}const i=t.subscribe(...r);return i.unsubscribe?()=>i.unsubscribe():i}function f(t,e,n){t.$$.on_destroy.push(p(e,n))}function h(t,e,n,r){if(t){const o=g(t,e,n,r);return t[0](o)}}function g(t,e,n,r){return t[1]&&r?o(n.ctx.slice(),t[1](r(e))):n.ctx}function m(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 v(t,e,n,r,o,i){if(o){const a=g(e,n,r,i);t.p(a,o)}}function y(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,e,n){return t.set(n),e}function b(t){return t&&l(t.destroy)?t.destroy:n}function _(t){const e="string"==typeof t&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}const w="undefined"!=typeof window;let x=w?()=>window.performance.now():()=>Date.now(),k=w?t=>requestAnimationFrame(t):n;const C=new Set;function E(t){C.forEach((e=>{e.c(t)||(C.delete(e),e.f())})),0!==C.size&&k(E)}function A(t){let e;return 0===C.size&&k(E),{promise:new Promise((n=>{C.add(e={c:t,f:n})})),abort(){C.delete(e)}}}const j="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function V(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class F{constructor(t){V(this,"_listeners","WeakMap"in j?new WeakMap:void 0),V(this,"_observer",void 0),V(this,"options",void 0),this.options=t}observe(t,e){return this._listeners.set(t,e),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){var t;return null!==(t=this._observer)&&void 0!==t?t:this._observer=new ResizeObserver((t=>{for(const n of t){var e;F.entries.set(n.target,n),null===(e=this._listeners.get(n.target))||void 0===e||e(n)}}))}}F.entries="WeakMap"in j?new WeakMap:void 0;let D=!1;function S(t,e){t.appendChild(e)}function P(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function N(t){const e=T("style");return e.textContent="/* empty */",function(t,e){S(t.head||t,e),e.sheet}(P(t),e),e.sheet}function O(t,e,n){t.insertBefore(e,n||null)}function I(t){t.parentNode&&t.parentNode.removeChild(t)}function M(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function T(t){return document.createElement(t)}function z(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function R(t){return document.createTextNode(t)}function B(){return R(" ")}function L(){return R("")}function U(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function W(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const H=["width","height"];function q(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&&-1===H.indexOf(r)?t[r]=e[r]:W(t,r,e[r])}function J(t,e){Object.keys(e).forEach((n=>{!function(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:W(t,e,n)}(t,n,e[n])}))}function G(t){return/-/.test(t)?J:q}function K(t,e){e=""+e,t.data!==e&&(t.data=e)}function X(t,e){t.value=null==e?"":e}function Y(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function Z(t,e,n){for(let n=0;n<t.options.length;n+=1){const r=t.options[n];if(r.__value===e)return void(r.selected=!0)}n&&void 0===e||(t.selectedIndex=-1)}function Q(t,e){let{bubbles:n=!1,cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}function tt(t,e){return new t(e)}const et=new Map;let nt,rt=0;function ot(t,e,n,r,o,i,a){let s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;const l=16.666/r;let c="{\n";for(let t=0;t<=1;t+=l){const r=e+(n-e)*i(t);c+=100*t+"%{".concat(a(r,1-r),"}\n")}const u=c+"100% {".concat(a(n,1-n),"}\n}"),d="__svelte_".concat(function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u),"_").concat(s),p=P(t),{stylesheet:f,rules:h}=et.get(p)||function(t,e){const n={stylesheet:N(e),rules:{}};return et.set(t,n),n}(p,t);h[d]||(h[d]=!0,f.insertRule("@keyframes ".concat(d," ").concat(u),f.cssRules.length));const g=t.style.animation||"";return t.style.animation="".concat(g?"".concat(g,", "):"").concat(d," ").concat(r,"ms linear ").concat(o,"ms 1 both"),rt+=1,d}function it(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(", "),rt-=o,rt||k((()=>{rt||(et.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&I(e)})),et.clear())})))}function at(t){nt=t}function st(){if(!nt)throw new Error("Function called outside component initialization");return nt}function lt(t){st().$$.on_mount.push(t)}function ct(t){st().$$.after_update.push(t)}function ut(t){st().$$.on_destroy.push(t)}function dt(t,e){return st().$$.context.set(t,e),e}function pt(t){return st().$$.context.get(t)}function ft(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const ht=[],gt=[];let mt=[];const vt=[],yt=Promise.resolve();let $t=!1;function bt(){$t||($t=!0,yt.then(Et))}function _t(){return bt(),yt}function wt(t){mt.push(t)}const xt=new Set;let kt,Ct=0;function Et(){if(0!==Ct)return;const t=nt;do{try{for(;Ct<ht.length;){const t=ht[Ct];Ct++,at(t),At(t.$$)}}catch(t){throw ht.length=0,Ct=0,t}for(at(null),ht.length=0,Ct=0;gt.length;)gt.pop()();for(let t=0;t<mt.length;t+=1){const e=mt[t];xt.has(e)||(xt.add(e),e())}mt.length=0}while(ht.length);for(;vt.length;)vt.pop()();$t=!1,xt.clear(),at(t)}function At(t){if(null!==t.fragment){t.update(),s(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(wt)}}function jt(){return kt||(kt=Promise.resolve(),kt.then((()=>{kt=null}))),kt}function Vt(t,e,n){t.dispatchEvent(Q("".concat(e?"intro":"outro").concat(n)))}const Ft=new Set;let Dt;function St(){Dt={r:0,c:[],p:Dt}}function Pt(){Dt.r||s(Dt.c),Dt=Dt.p}function Nt(t,e){t&&t.i&&(Ft.delete(t),t.i(e))}function Ot(t,e,n,r){if(t&&t.o){if(Ft.has(t))return;Ft.add(t),Dt.c.push((()=>{Ft.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const It={duration:0};function Mt(t,e,o){const i={direction:"in"};let a,s,c=e(t,o,i),u=!1,d=0;function p(){a&&it(t,a)}function f(){const{delay:e=0,duration:o=300,easing:i=r,tick:l=n,css:f}=c||It;f&&(a=ot(t,0,1,o,e,i,f,d++)),l(0,1);const h=x()+e,g=h+o;s&&s.abort(),u=!0,wt((()=>Vt(t,!0,"start"))),s=A((e=>{if(u){if(e>=g)return l(1,0),Vt(t,!0,"end"),p(),u=!1;if(e>=h){const t=i((e-h)/o);l(t,1-t)}}return u}))}let h=!1;return{start(){h||(h=!0,it(t),l(c)?(c=c(i),jt().then(f)):f())},invalidate(){h=!1},end(){u&&(p(),u=!1)}}}function Tt(t,e,o,i){let a,c=e(t,o,{direction:"both"}),u=i?0:1,d=null,p=null,f=null;function h(){f&&it(t,f)}function g(t,e){const n=t.b-u;return e*=Math.abs(n),{a:u,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function m(e){const{delay:o=0,duration:i=300,easing:l=r,tick:m=n,css:v}=c||It,y={start:x()+o,b:e};e||(y.group=Dt,Dt.r+=1),"inert"in t&&(e?void 0!==a&&(t.inert=a):(a=t.inert,t.inert=!0)),d||p?p=y:(v&&(h(),f=ot(t,u,e,i,o,l,v)),e&&m(0,1),d=g(y,i),wt((()=>Vt(t,e,"start"))),A((e=>{if(p&&e>p.start&&(d=g(p,i),p=null,Vt(t,d.b,"start"),v&&(h(),f=ot(t,u,d.b,d.duration,0,l,c.css))),d)if(e>=d.end)m(u=d.b,1-u),Vt(t,d.b,"end"),p||(d.b?h():--d.group.r||s(d.group.c)),d=null;else if(e>=d.start){const t=e-d.start;u=d.a+d.d*l(t/d.duration),m(u,1-u)}return!(!d&&!p)})))}return{run(t){l(c)?jt().then((()=>{c=c({direction:t?"in":"out"}),m(t)})):m(t)},end(){h(),d=p=null}}}function zt(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)}function Rt(t,e){Ot(t,1,1,(()=>{e.delete(t.key)}))}function Bt(t,e,n,r,o,i,a,l,c,u,d,p){let f=t.length,h=i.length,g=f;const m={};for(;g--;)m[t[g].key]=g;const v=[],y=new Map,$=new Map,b=[];for(g=h;g--;){const t=p(o,i,g),s=n(t);let l=a.get(s);l?r&&b.push((()=>l.p(t,e))):(l=u(s,t),l.c()),y.set(s,v[g]=l),s in m&&$.set(s,Math.abs(g-m[s]))}const _=new Set,w=new Set;function x(t){Nt(t,1),t.m(l,d),a.set(t.key,t),d=t.first,h--}for(;f&&h;){const e=v[h-1],n=t[f-1],r=e.key,o=n.key;e===n?(d=e.first,f--,h--):y.has(o)?!a.has(r)||_.has(r)?x(e):w.has(o)?f--:$.get(r)>$.get(o)?(w.add(r),x(e)):(_.add(o),f--):(c(n,a),f--)}for(;f--;){const e=t[f];y.has(e.key)||c(e,a)}for(;h;)x(v[h-1]);return s(b),v}function Lt(t,e){const n={},r={},o={$$scope:1};let i=t.length;for(;i--;){const a=t[i],s=e[i];if(s){for(const t in a)t in s||(r[t]=1);for(const t in s)o[t]||(n[t]=s[t],o[t]=1);t[i]=s}else for(const t in a)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let Ut;function Wt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ht(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Wt(Object(n),!0).forEach((function(e){qt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function qt(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jt(t){t&&t.c()}function Gt(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),wt((()=>{const e=t.$$.on_mount.map(i).filter(l);t.$$.on_destroy?t.$$.on_destroy.push(...e):s(e),t.$$.on_mount=[]})),o.forEach(wt)}function Kt(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];mt.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),mt=e}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Xt(t,e,r,o,i,l,c){let u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const d=nt;at(t);const p=t.$$={fragment:null,ctx:[],props:l,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(p.root);let f=!1;if(p.ctx=r?r(t,e.props||{},(function(e,n){const r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return p.ctx&&i(p.ctx[e],p.ctx[e]=r)&&(!p.skip_bound&&p.bound[e]&&p.bound[e](r),f&&function(t,e){-1===t.$$.dirty[0]&&(ht.push(t),bt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],p.update(),f=!0,s(p.before_update),p.fragment=!!o&&o(p.ctx),e.target){if(e.hydrate){D=!0;const t=(h=e.target,Array.from(h.childNodes));p.fragment&&p.fragment.l(t),t.forEach(I)}else p.fragment&&p.fragment.c();e.intro&&Nt(t.$$.fragment),Gt(t,e.target,e.anchor),D=!1,Et()}var h;at(d)}function Yt(t,e,n,r){var o;const i=null===(o=n[t])||void 0===o?void 0:o.type;if(e="Boolean"===i&&"boolean"!=typeof e?null!=e:e,!r||!n[t])return e;if("toAttribute"===r)switch(i){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(Ut=class extends HTMLElement{constructor(t,e,n){super(),qt(this,"$$ctor",void 0),qt(this,"$$s",void 0),qt(this,"$$c",void 0),qt(this,"$$cn",!1),qt(this,"$$d",{}),qt(this,"$$r",!1),qt(this,"$$p_d",{}),qt(this,"$$l",{}),qt(this,"$$l_u",new Map),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn)return;function t(t){return()=>{let e;return{c:function(){e=T("slot"),"default"!==t&&W(e,"name",t)},m:function(t,n){O(t,e,n)},d:function(t){t&&I(e)}}}}const e={},n=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const o of this.$$s)o in n&&(e[o]=[t(o)]);for(const i of this.attributes){const a=this.$$g_p(i.name);a in this.$$d||(this.$$d[a]=Yt(a,i.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Ht(Ht({},this.$$d),{},{$$slots:e,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=Yt(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const l of this.$$l[s]){const c=this.$$c.$on(s,l);this.$$l_u.set(l,c)}this.$$l={}}}attributeChangedCallback(t,e,n){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Yt(t,n,this.$$p_d,"toProp"),null===(r=this.$$c)||void 0===r||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(t){return Object.keys(this.$$p_d).find((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class Zt{constructor(){qt(this,"$$",void 0),qt(this,"$$set",void 0)}$destroy(){Kt(this,1),this.$destroy=n}$on(t,e){if(!l(e))return n;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Qt=[];function te(t){let e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const o=new Set;function i(n){if(i=n,((r=t)!=r?i==i:r!==i||r&&"object"==typeof r||"function"==typeof r)&&(t=n,e)){const e=!Qt.length;for(const e of o)e[1](),Qt.push(e,t);if(e){for(let t=0;t<Qt.length;t+=2)Qt[t][0](Qt[t+1]);Qt.length=0}}var r,i}function a(e){i(e(t))}return{set:i,update:a,subscribe:function(s){const l=[s,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n];return o.add(l),1===o.size&&(e=r(i,a)||n),s(t),()=>{o.delete(l),0===o.size&&e&&(e(),e=null)}}}}function ee(t,e,r){const o=!Array.isArray(t),i=o?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=e.length<2;return c=(t,r)=>{let c=!1;const u=[];let d=0,f=n;const h=()=>{if(d)return;f();const i=e(o?u[0]:u,t,r);a?t(i):f=l(i)?i:n},g=i.map(((t,e)=>p(t,(t=>{u[e]=t,d&=~(1<<e),c&&h()}),(()=>{d|=1<<e}))));return c=!0,h(),function(){s(g),f(),c=!1}},{subscribe:te(r,c).subscribe};var c}const ne={root:"divkit-b023c",root__clickable:"divkit-bd259","root__clickable-no-transition":"divkit-d9099",root__unselectable:"divkit-c016b",root_platform_desktop:"divkit-ee112","root__only-desktop":"divkit-fef1e","root_restrict-scroll":"divkit-aa145","root_disabled-context-menu":"divkit-f0cba"},re=Symbol("root");function oe(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 ie={"text-range":"divkit-faf07",text:"divkit-d9b0e",text_halign_start:"divkit-e70de",text_halign_center:"divkit-e1659",text_halign_end:"divkit-e48b4",text_valign_start:"divkit-b7b70",text_valign_center:"divkit-ef58e",text_valign_end:"divkit-d4206",text_valign_baseline:"divkit-e0c6c",text__inner:"divkit-b8528",text_singleline:"divkit-ef11c",text_multiline:"divkit-ee8e3",text_truncate_none:"divkit-c6ea1",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002","text_has-focus-color":"divkit-cb341"},ae={outer:"divkit-d65a7","outer_hide-on-transition-in":"divkit-a6d12","outer_halign-self_start":"divkit-cc452","outer_halign-self_center":"divkit-b8331","outer_halign-self_end":"divkit-c573c","outer_halign-self_stretch":"divkit-dcc74","outer_valign-self_start":"divkit-e8077","outer_valign-self_center":"divkit-d40a7","outer_valign-self_end":"divkit-e9f84","outer_valign-self_stretch":"divkit-b7aa3","outer_parent-flex_vertical":"divkit-c143f","outer_parent-flex_horizontal":"divkit-ef302","outer_valign-self_baseline":"divkit-e72b5",outer_width_content:"divkit-b8f4d",outer_height_content:"divkit-faa66","outer_width-constrained":"divkit-d3211","outer_parent-grid":"divkit-ff439","outer_height-constrained":"divkit-a5256","outer_parent-overlap":"divkit-dab2d","outer_parent-overlap-absolute":"divkit-d43fb","outer_scroll-snap_center":"divkit-d9e38","outer_scroll-snap_start":"divkit-efd1e",outer__border:"divkit-d4056",outer_visibility_invisible:"divkit-f018b",outer_visibility_gone:"divkit-e784b","outer_has-action-animation":"divkit-f4980","outer_has-custom-focus":"divkit-c7f14"};function se(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 le(t){if("number"!=typeof t&&"string"!=typeof t||!t)return"0";const e=Number(t);return Number.isNaN(e)?"0":Math.ceil(1e3*e)/1e4+"em"}function ce(t){let e=le(t);return"0"===e&&(e+="em"),e}function ue(t,e){for(;t.length<e;)t="0"+t;return t}function de(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"transparent";if("#"!==(t=("string"==typeof t&&t||"").toLowerCase()).charAt(0))return n;const r=pe(t);return r?(r.a*=e,function(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>ue(Math.round(t).toString(16),2))).join("")):"rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat((t.a/255).toFixed(2),")")}(r)):n}function pe(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,s=2===o.length?o:o+o,l=2===i.length?i:i+i,c=2===n.length?n:n+n;return{a:parseInt(c,16),r:parseInt(a,16),g:parseInt(s,16),b:parseInt(l,16)}}const[t,n,r,o]=e,i=2===n.length?n:n+n,a=2===r.length?r:r+r,s=2===o.length?o:o+o;return{a:255,r:parseInt(i,16),g:parseInt(a,16),b:parseInt(s,16)}}return null}function fe(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 he=Boolean;function ge(t){if(1===t.length&&"solid"===t[0].type)return{color:de(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=de(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(he);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>de(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:ye(t.bg.scale),pos:$e(t.bg),image:'url("'+fe(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(he);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=ce(r.value):"relative"===r.type&&(o=me[r.value]));const i=ve(t.bg.center_x),a=ve(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=>de(t))).join(",")+")"}}({bg:t}):void 0)).filter(he).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 me={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function ve(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return ce(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function ye(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function $e(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 be(t){if(t.startsWith("tel:"))return"tel";const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function _e(t,e){return e.has(t)}function we(t,e){const n=Number(t);return Number.isNaN(n)||n<0?e:n}function xe(t,e,n){return"number"==typeof e&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function ke(t){return 0!==t.is_enabled&&!1!==t.is_enabled&&void 0!==t.index}function Ce(t,e){e&&t.push(e)}function Ee(t,e,n){const r=[];Ce(r,e[t]);for(const o in n)if(n.hasOwnProperty(o)){const i=n[o];i&&Ce(r,e["".concat(t,"_").concat(o)+("string"==typeof i?"_".concat(i):"")])}return r.join(" ")}const Ae=Symbol("state");function je(t,e){var n,r;const o=t.top||0,i=(null!==(n="ltr"===e?t.end:t.start)&&void 0!==n?n:t.right)||0,a=t.bottom||0,s=(null!==(r="ltr"===e?t.start:t.end)&&void 0!==r?r:t.left)||0;return 0===o&&0===i&&0===a&&0===s?"":le(o)+" "+le(i)+" "+le(a)+" "+le(s)}function Ve(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!Number.isNaN(e)}function Fe(t){return Ve(t)&&t>=0}function De(t,e,n){var r,o;if(!t)return n;const i=[t.top,null!==(r="ltr"===e?t.end:t.start)&&void 0!==r?r:t.right,t.bottom,null!==(o="ltr"===e?t.start:t.end)&&void 0!==o?o:t.left];for(let t=0;t<i.length;++t)if(i[t]&&!Fe(i[t]))return n;return je(t,e)}const Se=Object.prototype.hasOwnProperty;function Pe(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(!Se.call(e,o)||!Pe(t[o],e[o]))return!1}return!0}function Ne(t,e){return Pe(t,e)?e:t}function Oe(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function Ie(t,e){const n=Number(t);return Number.isNaN(n)?e:n}function Me(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Me(t))})):e.push(t),e}function Te(t,e){if(!t||"object"!=typeof t)return e;const n=["top","right","bottom","left"];for(let r=0;r<n.length;++r)if(t[n[r]]&&!Fe(t[n[r]]))return e;return t}function ze(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=>le((t||e)/n*10))).join(" ")}function Re(t){return 0!==t.is_enabled&&!1!==t.is_enabled}let Be;function Le(){return"undefined"!=typeof matchMedia&&(Be||(Be=window.matchMedia("(prefers-reduced-motion)")),Be.matches)}function Ue(){}const We=Symbol("action");function He(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function qe(t){var e;let n,r,i,a,l,c,u,d;const p=t[18].default,f=h(p,t,t[17],null);let g=[{class:r=t[1]+(t[8]?" ".concat(t[5]?ne.root__clickable:ne["root__clickable-no-transition"]," ").concat(ne.root__unselectable):"")+" "+(null!==(e=t[0])&&void 0!==e&&e.length?ne["root_disabled-context-menu"]:"")},{style:t[2]},{role:i=t[8]?"button":null},{tabindex:a=t[8]?0:null},t[3]],$={};for(let t=0;t<g.length;t+=1)$=o($,g[t]);return{c(){n=T("span"),f&&f.c(),q(n,$)},m(e,r){O(e,n,r),f&&f.m(n,null),t[26](n),c=!0,u||(d=[b(l=t[4].call(null,n)),U(n,"click",t[22]),U(n,"keydown",t[10]),U(n,"focus",t[23]),U(n,"blur",t[24])],u=!0)},p(t,e){var o;f&&f.p&&(!c||131072&e[0])&&v(f,p,t,t[17],c?m(p,t[17],e,null):y(t[17]),null),q(n,$=Lt(g,[(!c||291&e[0]&&r!==(r=t[1]+(t[8]?" ".concat(t[5]?ne.root__clickable:ne["root__clickable-no-transition"]," ").concat(ne.root__unselectable):"")+" "+(null!==(o=t[0])&&void 0!==o&&o.length?ne["root_disabled-context-menu"]:"")))&&{class:r},(!c||4&e[0])&&{style:t[2]},(!c||256&e[0]&&i!==(i=t[8]?"button":null))&&{role:i},(!c||256&e[0]&&a!==(a=t[8]?0:null))&&{tabindex:a},8&e[0]&&t[3]]))},i(t){c||(Nt(f,t),c=!0)},o(t){Ot(f,t),c=!1},d(e){e&&I(n),f&&f.d(e),t[26](null),u=!1,s(d)}}}function Je(t){var e;let n,r,i,a,l,c;const u=t[18].default,d=h(u,t,t[17],null);let p=[{href:t[7]},{target:t[9]},{style:t[2]},{class:r=t[1]+" "+(t[5]?ne.root__clickable:ne["root__clickable-no-transition"])+" "+(null!==(e=t[0])&&void 0!==e&&e.length?ne["root_disabled-context-menu"]:"")},t[3]],f={};for(let t=0;t<p.length;t+=1)f=o(f,p[t]);return{c(){n=T("a"),d&&d.c(),q(n,f)},m(e,r){O(e,n,r),d&&d.m(n,null),t[25](n),a=!0,l||(c=[b(i=t[4].call(null,n)),U(n,"click",t[19]),U(n,"keydown",t[10]),U(n,"focus",t[20]),U(n,"blur",t[21])],l=!0)},p(t,e){var o;d&&d.p&&(!a||131072&e[0])&&v(d,u,t,t[17],a?m(u,t[17],e,null):y(t[17]),null),q(n,f=Lt(p,[(!a||128&e[0])&&{href:t[7]},(!a||512&e[0])&&{target:t[9]},(!a||4&e[0])&&{style:t[2]},(!a||35&e[0]&&r!==(r=t[1]+" "+(t[5]?ne.root__clickable:ne["root__clickable-no-transition"])+" "+(null!==(o=t[0])&&void 0!==o&&o.length?ne["root_disabled-context-menu"]:"")))&&{class:r},8&e[0]&&t[3]]))},i(t){a||(Nt(d,t),a=!0)},o(t){Ot(d,t),a=!1},d(e){e&&I(n),d&&d.d(e),t[25](null),l=!1,s(c)}}}function Ge(t){let e,n,r,o;const i=[Je,qe],a=[];function s(t,e){return t[7]?0:1}return e=s(t),n=a[e]=i[e](t),{c(){n.c(),r=L()},m(t,n){a[e].m(t,n),O(t,r,n),o=!0},p(t,o){let l=e;e=s(t),e===l?a[e].p(t,o):(St(),Ot(a[l],1,1,(()=>{a[l]=null})),Pt(),n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Nt(n,1),n.m(r.parentNode,r))},i(t){o||(Nt(n),o=!0)},o(t){Ot(n),o=!1},d(t){t&&I(r),a[e].d(t)}}}function Ke(t,e,n){let{$$slots:r={},$$scope:o}=e,{componentContext:i}=e,{id:a=""}=e,{actions:s}=e,{doubleTapActions:l}=e,{longTapActions:c}=e,{cls:u=""}=e,{style:d=null}=e,{attrs:p}=e,{use:f=Ue}=e,{customAction:h=null}=e,{isNativeActionAnimation:g=!0}=e,{hasInnerFocusable:m=!1}=e;const v=pt(re),y=pt(We);let $;dt(We,{hasAction:()=>Boolean(y.hasAction()||(null==s?void 0:s.length))});let b,_,w="",x=-1,k=null,C=!1,E=!1;async function A(t){y.hasAction()||void 0!==t.button&&0!==t.button||(x>0&&Date.now()>x+400||!1===(null==h?void 0:h(t))?t.preventDefault():s&&(s.some((t=>{if(null==t?void 0:t.typed)return!0;const e=null==t?void 0:t.url;if(!e)return!1;const n=be(e);return n&&!_e(n,v.getBuiltinProtocols())}))&&t.preventDefault(),i.execAnyActions(s,{node:$})))}function j(t){y.hasAction()||void 0!==t.button&&0!==t.button||i.execAnyActions(l,{processUrls:!0,node:$})}function V(t){t.touches.length>1||(k=He(t),C=!1,x=Date.now(),clearTimeout(_))}function F(t){if(!k)return;const e=He(t);(Math.abs(k.x-e.x)>8||Math.abs(k.y-e.y)>8)&&(C=!0)}function D(t){!k||x<0||(!C&&Date.now()-x>=400&&(t.stopPropagation(),i.execAnyActions(c,{processUrls:!0,node:$})),clearTimeout(_),_=window.setTimeout((()=>{k=null,x=-1}),100))}return lt((()=>{a&&!m&&v.registerFocusable(a,{focus(){$&&(w||E)&&$.focus()}})})),ut((()=>{a&&!m&&v.unregisterFocusable(a),clearTimeout(_)})),t.$$set=t=>{"componentContext"in t&&n(11,i=t.componentContext),"id"in t&&n(12,a=t.id),"actions"in t&&n(13,s=t.actions),"doubleTapActions"in t&&n(14,l=t.doubleTapActions),"longTapActions"in t&&n(0,c=t.longTapActions),"cls"in t&&n(1,u=t.cls),"style"in t&&n(2,d=t.style),"attrs"in t&&n(3,p=t.attrs),"use"in t&&n(4,f=t.use),"customAction"in t&&n(15,h=t.customAction),"isNativeActionAnimation"in t&&n(5,g=t.isNativeActionAnimation),"hasInnerFocusable"in t&&n(16,m=t.hasInnerFocusable),"$$scope"in t&&n(17,o=t.$$scope)},t.$$.update=()=>{if(43136&t.$$.dirty[0]){if(Array.isArray(s)&&(null==s?void 0:s.length))for(let t=0;t<s.length;++t){const e=s[t].url;if(e){n(7,w=e),n(9,b=s[t].target||void 0);break}}Array.isArray(s)&&(null==s?void 0:s.length)&&y.hasAction()&&(n(7,w=""),i.logError(oe(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:s}}))),n(8,E=Boolean(h)),w&&!_e(be(w),v.getBuiltinProtocols())?(n(7,w=""),n(8,E=!0)):!w&&Array.isArray(s)&&(null==s?void 0:s.length)&&(n(8,E=!0),s.some((t=>t.url||t.typed||t.menu_items))||i.logError(oe(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:s}})))}16833&t.$$.dirty[0]&&$&&(w||E?$.addEventListener("click",A):$.removeEventListener("click",A),(null==l?void 0:l.length)?$.addEventListener("dblclick",j):$.removeEventListener("dblclick",j),(null==c?void 0:c.length)?($.addEventListener("touchstart",V,{passive:!0}),$.addEventListener("touchmove",F,{passive:!0}),$.addEventListener("touchend",D,{passive:!0}),$.addEventListener("touchcancel",D,{passive:!0})):($.removeEventListener("touchstart",V),$.removeEventListener("touchmove",F),$.removeEventListener("touchend",D),$.removeEventListener("touchcancel",D)))},[c,u,d,p,f,g,$,w,E,b,function(t){const e=t.target;e instanceof HTMLElement&&("INPUT"===e.tagName||"true"===e.contentEditable)||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(s)&&s.length&&(i.execAnyActions(s),t.preventDefault())},i,a,s,l,h,m,o,r,function(e){ft.call(this,t,e)},function(e){ft.call(this,t,e)},function(e){ft.call(this,t,e)},function(e){ft.call(this,t,e)},function(e){ft.call(this,t,e)},function(e){ft.call(this,t,e)},function(t){gt[t?"unshift":"push"]((()=>{$=t,n(6,$)}))},function(t){gt[t?"unshift":"push"]((()=>{$=t,n(6,$)}))}]}const Xe=class extends Zt{constructor(t){super(),Xt(this,t,Ke,Ge,d,{componentContext:11,id:12,actions:13,doubleTapActions:14,longTapActions:0,cls:1,style:2,attrs:3,use:4,customAction:15,isNativeActionAnimation:5,hasInnerFocusable:16},null,[-1,-1])}},Ye={"outer-background":"divkit-bf253","outer-background_clip":"divkit-dcad7","outer-background__item":"divkit-b921d","outer-background__item_hidden":"divkit-cd613"};function Ze(t){return Ve(t)&&t>0}function Qe(t,e){return t.map((t=>{if(t)if("blur"===t.type){if(Ze(t.radius))return"blur(".concat(ce(t.radius/2),")")}else{if("rtl_mirror"===t.type)return;e(oe(new Error("Unknown filter"),{level:"warn",additional:{filter:t.type}}))}else e(oe(new Error("Incorrect filter"),{level:"warn"}))})).filter(Boolean).join(" ")}function tn(t,e,n){const r=t.slice();return r[6]=e[n],r}function en(t){let e,n,r;return{c(){e=T("span"),W(e,"class",n=Ye["outer-background__item"]),W(e,"style",r=se(t[6].style))},m(t,n){O(t,e,n)},p(t,n){2&n&&r!==(r=se(t[6].style))&&W(e,"style",r)},d(t){t&&I(e)}}}function nn(t){let e,n,r,o,i,a;return{c(){e=T("img"),u(e.src,n=t[6].image_url)||W(e,"src",n),W(e,"alt",""),W(e,"aria-hidden","true"),W(e,"loading","lazy"),W(e,"decoding","async"),W(e,"class",r=Ye["outer-background__item"]),W(e,"style",o=se(t[6].style))},m(n,r){O(n,e,r),i||(a=U(e,"error",t[2]),i=!0)},p(t,r){2&r&&!u(e.src,n=t[6].image_url)&&W(e,"src",n),2&r&&o!==(o=se(t[6].style))&&W(e,"style",o)},d(t){t&&I(e),i=!1,a()}}}function rn(t){let e;function n(t,e){return t[6].image_url?nn:en}let r=n(t),o=r(t);return{c(){o.c(),e=L()},m(t,n){o.m(t,n),O(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){t&&I(e),o.d(t)}}}function on(t){let e,r,o=zt(t[1]),i=[];for(let e=0;e<o.length;e+=1)i[e]=rn(tn(t,o,e));return{c(){e=T("span");for(let t=0;t<i.length;t+=1)i[t].c();W(e,"class",r=Ye["outer-background"]+(t[0]?" "+Ye["outer-background_clip"]:"")),Y(e,"border-radius",t[0])},m(t,n){O(t,e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null)},p(t,n){let[a]=n;if(6&a){let n;for(o=zt(t[1]),n=0;n<o.length;n+=1){const r=tn(t,o,n);i[n]?i[n].p(r,a):(i[n]=rn(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=Ye["outer-background"]+(t[0]?" "+Ye["outer-background_clip"]:""))&&W(e,"class",r),1&a&&Y(e,"border-radius",t[0])},i:n,o:n,d(t){t&&I(e),M(i,t)}}}function an(t,e,n){let r,{direction:o}=e,{componentContext:i}=e,{background:a=[]}=e,{radius:s=""}=e;return t.$$set=t=>{"direction"in t&&n(3,o=t.direction),"componentContext"in t&&n(4,i=t.componentContext),"background"in t&&n(5,a=t.background),"radius"in t&&n(0,s=t.radius)},t.$$.update=()=>{56&t.$$.dirty&&n(1,r=a.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=ge([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=Qe(t.filters,i.logError),"rtl"===o&&t.filters.some((t=>"rtl_mirror"===t.type))&&(e.transform="scale(-1,1)")))}return n})))},[s,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add(Ye["outer-background__item_hidden"])},o,i,a]}const sn=class extends Zt{constructor(t){super(),Xt(this,t,an,on,d,{direction:3,componentContext:4,background:5,radius:0})}},ln=t=>({hasCustomFocus:256&t[0]}),cn=t=>({focusHandler:t[39],blurHandler:t[40],hasCustomFocus:t[8]});function un(t){let e,n;return e=new Xe({props:{componentContext:t[0],id:t[0].json.id,use:t[38],cls:t[1]+" "+Ee("outer",ae,t[18]),style:se(t[17]),actions:t[14],doubleTapActions:t[15],longTapActions:t[16],attrs:t[10],hasInnerFocusable:t[2],isNativeActionAnimation:!t[7].length||yn(t[7]),$$slots:{default:[fn]},$$scope:{ctx:t}}}),e.$on("focus",t[39]),e.$on("blur",t[40]),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),1&n[0]&&(r.id=t[0].json.id),262146&n[0]&&(r.cls=t[1]+" "+Ee("outer",ae,t[18])),131072&n[0]&&(r.style=se(t[17])),16384&n[0]&&(r.actions=t[14]),32768&n[0]&&(r.doubleTapActions=t[15]),65536&n[0]&&(r.longTapActions=t[16]),1024&n[0]&&(r.attrs=t[10]),4&n[0]&&(r.hasInnerFocusable=t[2]),128&n[0]&&(r.isNativeActionAnimation=!t[7].length||yn(t[7])),2937&n[0]|134217728&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function dn(t){let e,n;return e=new sn({props:{componentContext:t[0],direction:t[9],background:t[5],radius:t[4]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),512&n[0]&&(r.direction=t[9]),32&n[0]&&(r.background=t[5]),16&n[0]&&(r.radius=t[4]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function pn(t){let e,n,r;return{c(){e=T("span"),W(e,"class",n=ae.outer__border),W(e,"style",r=se(t[3]))},m(t,n){O(t,e,n)},p(t,n){8&n[0]&&r!==(r=se(t[3]))&&W(e,"style",r)},d(t){t&&I(e)}}}function fn(t){let e,n,r,o=t[6]&&dn(t);const i=t[119].default,a=h(i,t,t[120],cn);let s=t[11]&&pn(t);return{c(){o&&o.c(),e=L(),a&&a.c(),s&&s.c(),n=L()},m(t,i){o&&o.m(t,i),O(t,e,i),a&&a.m(t,i),s&&s.m(t,i),O(t,n,i),r=!0},p(t,l){t[6]?o?(o.p(t,l),64&l[0]&&Nt(o,1)):(o=dn(t),o.c(),Nt(o,1),o.m(e.parentNode,e)):o&&(St(),Ot(o,1,1,(()=>{o=null})),Pt()),a&&a.p&&(!r||256&l[0]|134217728&l[3])&&v(a,i,t,t[120],r?m(i,t[120],l,ln):y(t[120]),cn),t[11]?s?s.p(t,l):(s=pn(t),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i(t){r||(Nt(o),Nt(a,t),r=!0)},o(t){Ot(o),Ot(a,t),r=!1},d(t){t&&(I(e),I(n)),o&&o.d(t),a&&a.d(t),s&&s.d(t)}}}function hn(t){let e,n,r=!t[12]&&!t[13]&&un(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[12]||t[13]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),12288&n[0]&&Nt(r,1)):(r=un(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}const gn={left:"start",center:"center",right:"end",start:"start",end:"end"},mn={left:"end",center:"center",right:"start",start:"start",end:"end"},vn={top:"start",center:"center",bottom:"end",baseline:"baseline"};function yn(t){return t.some((t=>"native"===t.name))}function $n(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,M,T,z,R,B,L,U,W,H,q,J,G,K,X,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n,it=n,at=n,st=n,lt=n,dt=n,ft=n,ht=n,gt=n,mt=n,vt=n;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((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ft())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>gt())),t.$$.on_destroy.push((()=>mt())),t.$$.on_destroy.push((()=>vt()));let{$$slots:yt={},$$scope:$t}=e,{componentContext:bt}=e,{cls:wt=""}=e,{style:xt}=e,{layoutParams:kt={}}=e,{customDescription:Ct=!1}=e,{customPaddings:Et=!1}=e,{customActions:At=""}=e,{additionalPaddings:jt=null}=e,{heightByAspect:Vt=!1}=e,{parentOf:Ft}=e,{parentOfSimpleMode:Dt}=e,{replaceItems:St}=e,{hasInnerFocusable:Pt=!1}=e;const Nt=pt(re),Ot=pt(Ae),It=Nt.direction;let Mt,Tt;f(t,It,(t=>r(9,J=t)));let zt,Rt,Bt,Lt,Ut,Wt,Ht,qt,Jt,Gt,Kt,Xt,Yt,Zt,Qt,te,ne,ie,ae,se,ue,pe=null,fe=[],me={},ve={},ye=!1,$e=1,Ce="transparent",Ee=0,Ve={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},Se="",Be=null,Ue="",We={},He=0,qe=0,Je=0,Ge=!1,Ke=!1,Xe={},Ye=0,Ze=0,Qe=0,tn=!1,en=!1,nn=1,rn=[],on=!1,an=!1,sn=[],ln=[],cn=[],un=[],dn=[],pn=[],fn="",hn=!1,yn="visible",$n=0,bn=0,_n=!1,wn=null;function xn(t,e){if(!Array.isArray(Ft)||!St)return;if(Dt&&1!==(Array.isArray(e)&&e.length||0))return;const n=Ft.findIndex((e=>(null==e?void 0:e.id)===t)),o=Ft.slice();o.splice(n,1,...e||[]),r(41,Ft=o),St(o)}function kn(t){const e=Ie(t.start_value,1),n=Ie(t.end_value,1),o=we(t.start_delay,0),i=Le()?0:we(t.duration,300),a=Oe(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return r(84,Zt=e),r(85,Qt=n),"opacity ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"scale":return r(86,te=e),r(87,ne=n),"transform ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"native":case"no_animation":return"";default:return bt.logError(oe(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}function Cn(){if(pe&&Mt){const t=Nt.getExtensionContext();pe.forEach((e=>{var n;null===(n=e.unmountView)||void 0===n||n.call(e,Mt,t)})),pe=null}}function En(t){var e;null==ue||ue.destroy(),r(51,Mt=t),on&&bt.json.transition_in&&Ot.registerChildWithTransitionIn(bt.json,bt,bt.json.transition_in,t).then((()=>{r(80,Kt=!1)})).catch((t=>{throw r(80,Kt=!1),t})),on&&bt.json.transition_out&&Ot.registerChildWithTransitionOut(bt.json,bt,bt.json.transition_out,t),on&&bt.json.transition_change&&Ot.registerChildWithTransitionChange(bt.json,bt,bt.json.transition_change,t).then((()=>{r(82,Yt=!1)})).catch((t=>{throw r(82,Yt=!1),t}));const n=bt.fakeElement?[]:bt.json.visibility_actions||bt.json.visibility_action&&[bt.json.visibility_action],o=bt.fakeElement?[]:bt.json.disappear_actions;let i;(Array.isArray(n)&&n.length||Array.isArray(o)&&o.length)&&(i=function(t,e){let{visibilityActions:n,disappearActions:r,rootCtx:o,componentContext:i}=e;const a=[];n&&n.forEach((t=>{a.push({type:"visibility",index:a.length,action:t,visible:!1,count:0,finished:!1})})),r&&r.forEach((t=>{a.push({type:"disappear",index:a.length,action:t,visible:!1,count:0,finished:!1})}));const s=a.map(((t,e)=>{const n="visibility"===t.type;return i.getDerivedFromVars({index:e,visibility_percentage:t.action.visibility_percentage,visibility_duration:n?t.action.visibility_duration:t.action.disappear_duration,log_limit:t.action.log_limit,is_enabled:t.action.is_enabled})}));let l;const c=()=>{l&&l.disconnect(),a.forEach((t=>{t.timer&&clearTimeout(t.timer)}))},u=ee(s,(t=>t));let d;const p=t=>{const e="visibility"===t.type,n=i.getJsonWithVars(t.action),r=n.url,a=n.typed;if(r){const t=be(r);t&&!_e(t,o.getBuiltinProtocols())&&("div-action"===t?o.execAction(n):n.log_id&&o.execCustomAction(n))}else a&&o.execAction(n);o.logStat(e?"visible":"disappear",n)},f=u.subscribe((e=>{d=e.filter(ke);const n={};d.forEach((t=>{n[t.index]=t})),c();const r=[...new Set(d.map((t=>{const e="visibility"===a[t.index].type;return xe(e,t.visibility_percentage,e?50:0)/100})))];r.length&&(l=new IntersectionObserver((t=>{t.forEach((t=>{d.forEach((e=>{const n=a[e.index],r="visibility"===n.type,o=xe(r,e.visibility_percentage,r?50:0);let i;i=0===o?t.intersectionRatio>=1e-12:t.intersectionRatio>=o/100;const s=r?!i:i;(r?!n.visible&&i:n.visible&&!i)?n.finished||(n.timer=setTimeout((()=>{++n.count;const t=0===e.log_limit?1/0:e.log_limit||1;++n.count>=t&&(n.finished=!0),p(n)}),we(e.visibility_duration,800))):s&&n.timer&&clearTimeout(n.timer),n.visible=i}))}))}),{threshold:r}),l.observe(t))}));return{destroy(){var t;null===(t=d)||void 0===t||t.forEach((t=>{const e=a[t.index];e&&"disappear"===e.type&&e.visible&&!e.finished&&o.registerTimeout(window.setTimeout((()=>{p(e)}),t.visibility_duration))})),c(),f()}}}(t,{visibilityActions:n,disappearActions:o,rootCtx:Nt,componentContext:bt}));const a=bt.json.id;return a&&Ot.registerChild(a),null===(e=bt.json.tooltips)||void 0===e||e.forEach((e=>{Nt.registerTooltip(t,e)})),ue={destroy(){a&&Ot.unregisterChild(a),i&&i.destroy(),wn&&wn.destroy()}},ue}return ct((function(){wn&&wn.update(bt)})),ut((()=>{var t;fe.forEach((t=>{Nt.unregisterParentOf(t)})),r(52,fe=[]),null===(t=bt.json.tooltips)||void 0===t||t.forEach((t=>{Nt.unregisterTooltip(t)})),Cn()})),t.$$set=t=>{"componentContext"in t&&r(0,bt=t.componentContext),"cls"in t&&r(1,wt=t.cls),"style"in t&&r(42,xt=t.style),"layoutParams"in t&&r(43,kt=t.layoutParams),"customDescription"in t&&r(44,Ct=t.customDescription),"customPaddings"in t&&r(45,Et=t.customPaddings),"customActions"in t&&r(46,At=t.customActions),"additionalPaddings"in t&&r(47,jt=t.additionalPaddings),"heightByAspect"in t&&r(48,Vt=t.heightByAspect),"parentOf"in t&&r(41,Ft=t.parentOf),"parentOfSimpleMode"in t&&r(49,Dt=t.parentOfSimpleMode),"replaceItems"in t&&r(50,St=t.replaceItems),"hasInnerFocusable"in t&&r(2,Pt=t.hasInnerFocusable),"$$scope"in t&&r(120,$t=t.$$scope)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(100,o=bt.origJson),128&t.$$.dirty[3]&&o&&(r(58,Be=null),r(59,Ue=""),r(76,nn=1),r(88,hn=!1),r(89,yn="visible"),r(90,$n=0),r(91,bn=0),r(92,ie=void 0),r(93,ae=void 0),rn=bt.fakeElement?[]:bt.json.transition_triggers||["state_change","visibility_change"],r(79,on=Boolean(-1!==rn.indexOf("state_change")&&bt.json.id)),an=Boolean(-1!==rn.indexOf("visibility_change")&&bt.json.id),Mt&&En(Mt)),1&t.$$.dirty[0]&&(r(36,i=bt.getDerivedFromVars(bt.json.focus)),tt(),tt=p(i,(t=>r(104,O=t)))),1&t.$$.dirty[0]&&(r(35,a=bt.getDerivedFromVars(bt.json.border)),vt(),vt=p(a,(t=>r(118,X=t)))),1&t.$$.dirty[0]&&(r(34,s=bt.getDerivedFromVars(bt.json.paddings)),mt(),mt=p(s,(t=>r(117,K=t)))),1&t.$$.dirty[0]&&(r(33,l=bt.getDerivedFromVars(bt.json.margins)),ht(),ht=p(l,(t=>r(115,q=t)))),1&t.$$.dirty[0]&&(r(32,c=bt.getDerivedFromVars(bt.json.width)),dt(),dt=p(c,(t=>r(113,W=t)))),1&t.$$.dirty[0]&&(r(31,u=bt.getDerivedFromVars(bt.json.alignment_horizontal)),gt(),gt=p(u,(t=>r(116,G=t)))),1&t.$$.dirty[0]&&(r(30,d=bt.getDerivedFromVars(bt.json.height)),lt(),lt=p(d,(t=>r(112,U=t)))),1&t.$$.dirty[0]&&(r(29,h=bt.getDerivedFromVars(bt.json.alignment_vertical)),ft(),ft=p(h,(t=>r(114,H=t)))),1&t.$$.dirty[0]&&(r(28,g=bt.getDerivedFromVars(bt.json.alpha)),st(),st=p(g,(t=>r(111,L=t)))),1&t.$$.dirty[0]&&(r(27,m=bt.getDerivedFromVars(bt.json.accessibility)),at(),at=p(m,(t=>r(110,B=t)))),1&t.$$.dirty[0]&&(r(26,v=bt.getDerivedFromVars(bt.json.background)),it(),it=p(v,(t=>r(109,R=t)))),1&t.$$.dirty[0]&&(r(25,y=bt.getDerivedFromVars(bt.json.action)),rt(),rt=p(y,(t=>r(107,T=t)))),1&t.$$.dirty[0]&&(r(24,$=bt.getDerivedFromVars(bt.json.actions)),ot(),ot=p($,(t=>r(108,z=t)))),1&t.$$.dirty[0]&&(r(23,b=bt.getDerivedFromVars(bt.json.doubletap_actions)),nt(),nt=p(b,(t=>r(106,M=t)))),1&t.$$.dirty[0]&&(r(22,_=bt.getDerivedFromVars(bt.json.longtap_actions)),et(),et=p(_,(t=>r(105,I=t)))),1&t.$$.dirty[0]&&(r(21,w=bt.getDerivedFromVars(bt.json.action_animation)),Q(),Q=p(w,(t=>r(103,N=t)))),1&t.$$.dirty[0]&&(r(20,x=bt.getDerivedFromVars(bt.json.visibility)),Z(),Z=p(x,(t=>r(102,P=t)))),1&t.$$.dirty[0]&&(r(19,k=bt.getDerivedFromVars(bt.json.transform)),Y(),Y=p(k,(t=>r(101,S=t)))),2360320&t.$$.dirty[1]&&(fe.forEach((t=>{Nt.unregisterParentOf(t)})),r(52,fe=[]),Ft&&Ft.forEach((t=>{(null==t?void 0:t.id)&&(fe.push(t.id),Nt.registerParentOf(t.id,{replaceWith:xn,isSingleMode:Boolean(Dt)}))}))),264&t.$$.dirty[0]|130023424&t.$$.dirty[1]|33556480&t.$$.dirty[3]){const t=_n&&(null==O?void 0:O.border)?O.border:X;let e={},n={},o=!1,i="";if(t){if(t.has_shadow){const n=t.shadow;e["box-shadow"]=n?function(t){var e,n,r,o,i,a;return le((null===(e=t.offset)||void 0===e||null===(n=e.x)||void 0===n?void 0:n.value)||0)+" "+le((null===(r=t.offset)||void 0===r||null===(o=r.y)||void 0===o?void 0:o.value)||0)+" "+le(null!==(i=t.blur)&&void 0!==i?i:2)+" "+de(t.color||"#000000",null!==(a=t.alpha)&&void 0!==a?a:.19)}(n):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(t.stroke&&(o=!0,r(54,$e=we(t.stroke.width,$e)),r(55,Ce=de(t.stroke.color,1,Ce)),n["--divkit-border"]="".concat(le($e+1)," solid ").concat(Ce)),t.corners_radius?(r(57,Ve=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]&&!Fe(n[t]))return e;return t}(t.corners_radius,Ve)),e["border-radius"]=ze(Ve),["top-left","top-right","bottom-right","bottom-left"].forEach((t=>{r(57,Ve[t]=(Ve[t]||0)+1,Ve)})),n["--divkit-border-radius"]=ze(Ve)):t.corner_radius&&(r(56,Ee=we(t.corner_radius,Ee)),r(57,Ve={"top-left":Ee,"top-right":Ee,"bottom-right":Ee,"bottom-left":Ee}),e["border-radius"]=le(Ee),n["--divkit-border-radius"]=le(Ee+1)),o&&$e&&(t.corners_radius||t.corner_radius)){let t=Object.assign({},Ve);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+$e/2})),i=ze(t)}}r(53,me=Ne(e,me)),r(3,ve=Ne(n,ve)),r(11,ye=o),r(4,Se=i)}if(134234112&t.$$.dirty[1]|16777216&t.$$.dirty[3]&&r(58,Be=Te(K&&!Et?K:void 0,Be)),512&t.$$.dirty[0]|134283264&t.$$.dirty[1]&&r(96,C=je(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left","start","end"].forEach((r=>{const o=t[r];o&&(n[r]=o);const i=e[r];i&&(n[r]=(n[r]||0)+i)})),n}(Be,jt),J)),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]|4194304&t.$$.dirty[3]&&r(59,Ue=De(q,J,Ue)),513&t.$$.dirty[0]|536875008&t.$$.dirty[1]|4&t.$$.dirty[2]|13631488&t.$$.dirty[3]){let t,e,n,o,i={},a=0,s=0,l=!1,c=!1;const u=null==W?void 0:W.type;if("fixed"===u)r(64,He=we(null==W?void 0:W.value,He)),e=le(He);else if("wrap_content"===u||("match_parent"===u||!u)&&kt.parentHorizontalWrapContent){if(t="content",("wrap_content"===u&&(null==W?void 0:W.constrained)||("match_parent"===u||!u)&&kt.parentHorizontalWrapContent)&&(i["width-constrained"]=!0,"horizontal"===kt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=W;t.min_size&&Fe(t.min_size.value)&&(n=le(t.min_size.value)),t.max_size&&Fe(t.max_size.value)&&(o=le(t.max_size.value))}"match_parent"!==u&&u||bt.logError(oe(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","vertical"===kt.parentContainerOrientation&&kt.parentContainerWrap&&(c=!0,bt.logError(oe(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===kt.parentLayoutOrientation?e="calc(100% - ".concat(ce(((null==q?void 0:q.left)||0)+((null==q?void 0:q.right)||0)),")"):"horizontal"===kt.parentContainerOrientation&&(a=W&&"weight"in W&&W.weight||1,kt.parentContainerWrap&&(l=!0));if("parent"===t)i["halign-self"]="stretch";else{const t=G;i["halign-self"]="left"===t||"center"===t||"right"===t||"start"===t||"end"===t?("ltr"===J?gn:mn)[t]:kt.parentHAlign||"start"}t&&(i.width=t),r(61,zt=e),r(62,Rt=n),r(63,Bt=o),r(65,qe=a),r(66,Je=s),r(60,We=Ne(i,We)),r(67,Ge=l),r(12,Ke=c)}if(1&t.$$.dirty[0]|135168&t.$$.dirty[1]|1088&t.$$.dirty[2]|6815744&t.$$.dirty[3]){let t,e,n,o,i={},a=0,s=0,l=!1,c=!1;const u=null==U?void 0:U.type;if(Vt);else if("fixed"===u)r(72,Ye=we(null==U?void 0:U.value,Ye)),e=le(Ye);else if("match_parent"!==u||kt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==U?void 0:U.constrained)||"match_parent"===u&&kt.parentVerticalWrapContent)&&(i["height-constrained"]=!0,"vertical"===kt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=U;(null==t?void 0:t.min_size)&&Fe(t.min_size.value)&&(n=le(t.min_size.value)),(null==t?void 0:t.max_size)&&Fe(t.max_size.value)&&(o=le(t.max_size.value))}"match_parent"===u&&bt.logError(oe(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===kt.parentContainerOrientation&&kt.parentContainerWrap&&(c=!0,bt.logError(oe(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===kt.parentLayoutOrientation?e="calc(100% - ".concat(ce(((null==q?void 0:q.top)||0)+((null==q?void 0:q.bottom)||0)),")"):"vertical"===kt.parentContainerOrientation&&(a=(null==U?void 0:U.weight)||1,kt.parentContainerWrap&&(l=!0));if("parent"===t)i["valign-self"]="stretch";else{const t=H;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===kt.parentContainerOrientation?i["valign-self"]=vn[t]:i["valign-self"]=kt.parentVAlign||"start"}t&&(i.height=t),r(69,Lt=e),r(70,Ut=n),r(71,Wt=o),r(73,Ze=a),r(74,Qe=s),r(68,Xe=Ne(i,Xe)),r(75,tn=l),r(13,en=c)}var e,n;if(4096&t.$$.dirty[1]&&r(99,E=!!kt.overlapParent||void 0),4096&t.$$.dirty[1]|1572864&t.$$.dirty[3]&&r(98,A=kt.overlapParent&&(!W||"match_parent"===W.type)&&!kt.parentHorizontalWrapContent&&"match_parent"===(null==U?void 0:U.type)&&!kt.parentVerticalWrapContent),4096&t.$$.dirty[1]&&r(97,j=kt.gridArea?"".concat(kt.gridArea.y+1,"/").concat(kt.gridArea.x+1,"/span ").concat(kt.gridArea.rowSpan,"/span ").concat(kt.gridArea.colSpan):void 0),16384&t.$$.dirty[2]|262144&t.$$.dirty[3]&&(r(76,(n=nn,nn=!Fe(e=L)||void 0===e||e>1?n:Number(e))),r(77,Ht=1===nn?void 0:nn)),8192&t.$$.dirty[1]|131072&t.$$.dirty[3]&&(r(10,Tt=void 0),B&&!Ct&&B.description&&(r(10,Tt={}),r(10,Tt["aria-label"]=B.description,Tt))),368&t.$$.dirty[0]|67584&t.$$.dirty[3]&&(r(5,qt=_n&&(null==O?void 0:O.background)?O.background:R),r(78,Jt={}),r(6,Gt=!1),Array.isArray(qt)&&(r(6,Gt=qt.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(Se)),!Gt))){const t=ge(qt);r(78,Jt["background-color"]=t.color,Jt),r(78,Jt["background-image"]=t.image,Jt),r(78,Jt["background-size"]=t.size,Jt),r(78,Jt["background-position"]=t.position,Jt),r(78,Jt["background-repeat"]="no-repeat",Jt)}if(1&t.$$.dirty[0]|131072&t.$$.dirty[2]&&(r(80,Kt=void 0),on&&bt.json.transition_in&&Nt.isRunning("stateChange")&&r(80,Kt=!0)),1&t.$$.dirty[0]|131072&t.$$.dirty[2]&&(r(82,Yt=void 0),on&&bt.json.transition_change&&Nt.isRunning("stateChange")&&Ot.hasTransitionChange(bt.json.id)&&r(82,Yt=!0)),1&t.$$.dirty[0]|32768&t.$$.dirty[1]|63488&t.$$.dirty[3]){let t=z||T&&[T]||[],e=M||[],n=I||[],o=(null==O?void 0:O.on_focus)||[],i=(null==O?void 0:O.on_blur)||[];bt.fakeElement?(t=[],e=[],n=[],o=[],i=[]):(Array.isArray(t)||(t=[],bt.logError(oe(new Error("Actions should be array")))),Array.isArray(e)||(e=[],bt.logError(oe(new Error("DoubleTapActions should be array")))),Array.isArray(n)||(n=[],bt.logError(oe(new Error("LongTapActions should be array")))),Array.isArray(o)||(o=[],bt.logError(oe(new Error("FocusActions should be array")))),Array.isArray(i)||(i=[],bt.logError(oe(new Error("BlurActions should be array"))))),(t.length||e.length||n.length)&&At&&(t=[],e=[],n=[],bt.logError(oe(new Error('Cannot use action on component "'.concat(At,'"'))))),r(14,sn=t.filter(Re)),r(15,ln=e.filter(Re)),r(16,cn=n.filter(Re)),un=o.filter(Re),dn=i.filter(Re)}if(128&t.$$.dirty[0]|1024&t.$$.dirty[3]&&N&&(r(7,pn=Me(N)),r(83,fn=pn.map(kn).filter(Boolean).join(", "))),201326592&t.$$.dirty[2]|512&t.$$.dirty[3]){const t=yn,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(P,yn);t!==e&&(!hn||"visible"!==yn&&"visible"!==e?r(89,yn=e):async function(t){r(89,yn=t);const e="visible"===t?"in":"out",n="in"===e?bt.json.transition_in:bt.json.transition_out;an&&n&&(await _t(),"in"===e&&r(81,Xt=!0),Ot.runVisibilityTransition(Object.assign(Object.assign({},bt.json),{visibility:"visible"}),bt,n,Mt,e).then((()=>{"in"===e&&r(81,Xt=!1)})).catch((t=>{throw"in"===e&&r(81,Xt=!1),t})))}(e)),hn||r(88,hn=!0)}if(1&t.$$.dirty[0]|1048576&t.$$.dirty[1]|2&t.$$.dirty[3]&&bt.json&&Mt&&!Pe(bt.json.extensions,se)){let t=r(94,se=bt.json.extensions);_t().then((()=>{if(t===se&&Mt&&(Cn(),Array.isArray(bt.json.extensions))){const t=Nt.getExtensionContext();pe=bt.json.extensions.map((e=>{var n;const r=e.id;if(!r)return;const o=Nt.getExtension(r,e.params);return o&&(null===(n=o.mountView)||void 0===n||n.call(o,Mt,t)),o})).filter(he)}}))}if(257&t.$$.dirty[0]|536875008&t.$$.dirty[1]|138149952&t.$$.dirty[2]|96&t.$$.dirty[3]&&r(18,V=Object.assign(Object.assign(Object.assign({},We),Xe),{"parent-overlap":E,"parent-overlap-absolute":A,"scroll-snap":kt.scrollSnap,"hide-on-transition-in":Kt||Xt||Yt,visibility:yn,"has-action-animation":Boolean(fn),"parent-flex":kt.parentContainerOrientation||void 0,"parent-grid":Boolean(kt.gridArea)||void 0,"has-custom-focus":Boolean(_n&&bt.json.focus)})),805306368&t.$$.dirty[2]|256&t.$$.dirty[3]&&S&&void 0!==S.rotation){const t=S.pivot_x||{type:"pivot-percentage",value:50};r(90,$n=Ie(t.value,$n));const e="pivot-fixed"===t.type?le($n):"".concat($n,"%"),n=S.pivot_y||{type:"pivot-percentage",value:50};r(91,bn=Ie(n.value,bn));const o="pivot-fixed"===n.type?le(bn):"".concat(bn,"%");r(92,ie="".concat(e," ").concat(o)),r(93,ae="rotate(".concat(S.rotation,"deg)"))}10280&t.$$.dirty[2]&&r(95,F=Ge||tn?"100%":qe||Ze?0:void 0),1346373632&t.$$.dirty[1]|1138858907&t.$$.dirty[2]|29&t.$$.dirty[3]&&r(17,D=Object.assign(Object.assign(Object.assign(Object.assign({},xt),Jt),me),{width:zt,"min-width":Rt,"max-width":Bt,height:Lt,"min-height":Ut,"max-height":Wt||(null==xt?void 0:xt["max-height"]),"grid-area":j,padding:C,margin:Ue,opacity:Ht,transition:fn,"transform-origin":ie,transform:ae,"flex-grow":qe||Ze||void 0,"flex-shrink":Je||Qe?1:void 0,"flex-basis":F,"--divkit-animation-opacity-start":Zt,"--divkit-animation-opacity-end":Qt,"--divkit-animation-scale-start":te,"--divkit-animation-scale-end":ne}))},[bt,wt,Pt,ve,Se,qt,Gt,pn,_n,J,Tt,ye,Ke,en,sn,ln,cn,D,V,k,x,w,_,b,$,y,v,m,g,h,d,u,c,l,s,a,i,It,En,function(){bt.json.focus&&(function(t){let e;return p(t,(t=>e=t))(),e}(Nt.isPointerFocus)||r(8,_n=!0),bt.execAnyActions(un))},function(){bt.json.focus&&(r(8,_n=!1),bt.execAnyActions(dn))},Ft,xt,kt,Ct,Et,At,jt,Vt,Dt,St,Mt,fe,me,$e,Ce,Ee,Ve,Be,Ue,We,zt,Rt,Bt,He,qe,Je,Ge,Xe,Lt,Ut,Wt,Ye,Ze,Qe,tn,nn,Ht,Jt,on,Kt,Xt,Yt,fn,Zt,Qt,te,ne,hn,yn,$n,bn,ie,ae,se,F,C,j,A,E,o,S,P,N,O,I,M,T,z,R,B,L,U,W,H,q,G,K,X,yt,$t]}const bn=class extends Zt{constructor(t){super(),Xt(this,t,$n,hn,d,{componentContext:0,cls:1,style:42,layoutParams:43,customDescription:44,customPaddings:45,customActions:46,additionalPaddings:47,heightByAspect:48,parentOf:41,parentOfSimpleMode:49,replaceItems:50,hasInnerFocusable:2},null,[-1,-1,-1,-1,-1])}},_n={"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 wn(t,e){const n=Number(t);return Number.isNaN(n)||n<=0?e:n}function xn(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function kn(t,e){return xn(t)||e}function Cn(t){let e,n;return{c(){e=T("span"),W(e,"class",n=_n["text-range__top-offset"]),Y(e,"margin-top",t[5])},m(t,n){O(t,e,n)},p(t,n){32&n&&Y(e,"margin-top",t[5])},d(t){t&&I(e)}}}function En(t){let e;return{c(){e=R(t[1])},m(t,n){O(t,e,n)},p(t,n){2&n&&K(e,t[1])},d(t){t&&I(e)}}}function An(t){let e,n,r,o=t[5]&&Cn(t);return n=new Xe({props:{componentContext:t[0],cls:Ee("text-range",_n,t[4]),actions:t[2],style:se(t[3]),$$slots:{default:[En]},$$scope:{ctx:t}}}),{c(){o&&o.c(),e=L(),Jt(n.$$.fragment)},m(t,i){o&&o.m(t,i),O(t,e,i),Gt(n,t,i),r=!0},p(t,r){let[i]=r;t[5]?o?o.p(t,i):(o=Cn(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const a={};1&i&&(a.componentContext=t[0]),16&i&&(a.cls=Ee("text-range",_n,t[4])),4&i&&(a.actions=t[2]),8&i&&(a.style=se(t[3])),8388610&i&&(a.$$scope={dirty:i,ctx:t}),n.$set(a)},i(t){r||(Nt(n.$$.fragment,t),r=!0)},o(t){Ot(n.$$.fragment,t),r=!1},d(t){t&&I(e),o&&o.d(t),Kt(n,t)}}}function jn(t,e,n){let r,o,i,a,s,l;var c,u;let{componentContext:d}=e,{text:p}=e,{rootFontSize:f}=e,{textStyles:h={}}=e,{singleline:g=!1}=e,{actions:m}=e;const v=pt(re);let y,$="none",b=12,_=1.25,w="",x="",k="",C=null;return t.$$set=t=>{"componentContext"in t&&n(0,d=t.componentContext),"text"in t&&n(1,p=t.text),"rootFontSize"in t&&n(6,f=t.rootFontSize),"textStyles"in t&&n(7,h=t.textStyles),"singleline"in t&&n(8,g=t.singleline),"actions"in t&&n(2,m=t.actions)},t.$$.update=()=>{if(1&t.$$.dirty&&d.json&&(n(11,$="none"),n(12,b=12),n(13,_=1.25),n(14,w=""),n(15,y=void 0),n(16,x=""),n(17,k=""),n(18,C=null)),128&t.$$.dirty){let t="none";(h.underline||h.strike)&&("single"===h.underline&&"single"===h.strike?t="both":"single"===h.underline?t="underline":"single"===h.strike&&(t="strike")),n(11,$=t)}4224&t.$$.dirty&&n(12,b=wn(h.font_size,b)),4224&t.$$.dirty&&Ze(h.line_height)&&n(13,_=Number(h.line_height)/b),128&t.$$.dirty&&Fe(h.letter_spacing)&&n(14,w=le(h.letter_spacing)),32896&t.$$.dirty&&(n(15,y=kn(h.font_weight,y)),"string"==typeof h.font_family&&h.font_family?n(16,x=v.typefaceProvider(h.font_family,{fontWeight:y||400})):n(16,x="")),131200&t.$$.dirty&&n(17,k=de(h.text_color,1,k)),128&t.$$.dirty&&n(5,r=h.top_offset?le(h.top_offset):""),128&t.$$.dirty&&n(20,o=h.background?ge([h.background]):null),640&t.$$.dirty&&((null===n(9,c=h.border)||void 0===c?void 0:c.stroke)&&h.border.stroke.color&&"transparent"!==de(h.border.stroke.color)&&Ze(h.border.stroke.width)?n(18,C={color:h.border.stroke.color,width:h.border.stroke.width}):n(18,C=null)),1152&t.$$.dirty&&n(19,i=wn(null===n(10,u=h.border)||void 0===u?void 0:u.corner_radius,0)),4224&t.$$.dirty&&n(21,a=h.text_shadow?function(t,e){var n,r,o,i,a,s;return"drop-shadow("+de(t.color||"#000000",null!==(n=t.alpha)&&void 0!==n?n:.19)+" "+le(10*((null===(r=t.offset)||void 0===r||null===(o=r.x)||void 0===o?void 0:o.value)||0)/e)+" "+le(10*((null===(i=t.offset)||void 0===i||null===(a=i.y)||void 0===a?void 0:a.value)||0)/e)+" "+le(10*(null!==(s=t.blur)&&void 0!==s?s:2)/e)+")"}(h.text_shadow,b):void 0),2304&t.$$.dirty&&n(4,s={singleline:g,decoration:$}),4190272&t.$$.dirty&&n(3,l={"font-size":le(10*b/f),"line-height":_,"letter-spacing":w,"font-weight":y,"font-family":x,filter:a,color:k,background:(null==o?void 0:o.color)||void 0,"box-shadow":C?"inset 0 0 0 ".concat(le(C.width)," ").concat(C.color):void 0,"border-radius":i?le(i):void 0})},[d,p,m,l,s,r,f,h,g,c,u,$,b,_,w,y,x,k,C,i,o,a]}const Vn=class extends Zt{constructor(t){super(),Xt(this,t,jn,An,d,{componentContext:0,text:1,rootFontSize:6,textStyles:7,singleline:8,actions:2})}};function Fn(t,e,n){return"left"===t||"center"===t||"right"===t||"start"===t||"end"===t?"left"===t?"ltr"===e?"start":"end":"right"===t?"ltr"===e?"end":"start":t:n}function Dn(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?"top"===t?"start":"bottom"===t?"end":t:e}function Sn(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}function Pn(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}function Nn(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)}}function On(t,e){let n=null;const r=()=>{const n=getComputedStyle(t),r=parseFloat(n.lineHeight);t.style.webkitLineClamp="",t.style.maxHeight="";const o=t.offsetHeight;if(t.scrollHeight<=o+1e-9)return;let i=Math.max(1,Math.floor(o/r));e.maxLines&&e.maxLines<i&&(i=e.maxLines),t.style.webkitLineClamp=String(i),t.style.maxHeight=r*i+"px"},o=Nn(r,50),i=()=>{n&&(n.disconnect(),n=null)},a=()=>{if(i(),e.enabled){if(r(),"undefined"!=typeof ResizeObserver){n=new ResizeObserver(o);const e=t.parentElement;e&&n.observe(e)}}else t.style.webkitLineClamp=String(e.lineClamp||"")};return a(),{update(t){e=t,a()},destroy(){i()}}}const{Boolean:In}=j;function Mn(t,e,n){const r=t.slice();return r[60]=e[n],r}function Tn(t){let e,n;return e=new Vn({props:{componentContext:t[0],text:t[2],rootFontSize:t[3],textStyles:t[7],singleline:t[6]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),4&n[0]&&(r.text=t[2]),8&n[0]&&(r.rootFontSize=t[3]),128&n[0]&&(r.textStyles=t[7]),64&n[0]&&(r.singleline=t[6]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function zn(t){let e,n,r=zt(t[11]),o=[];for(let e=0;e<r.length;e+=1)o[e]=Un(Mn(t,r,e));const i=t=>Ot(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=L()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);O(t,e,r),n=!0},p(t,n){if(2633&n[0]|1&n[1]){let a;for(r=zt(t[11]),a=0;a<r.length;a+=1){const i=Mn(t,r,a);o[a]?(o[a].p(i,n),Nt(o[a],1)):(o[a]=Un(i),o[a].c(),Nt(o[a],1),o[a].m(e.parentNode,e))}for(St(),a=r.length;a<o.length;a+=1)i(a);Pt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Nt(o[t]);n=!0}},o(t){o=o.filter(In);for(let t=0;t<o.length;t+=1)Ot(o[t]);n=!1},d(t){t&&I(e),M(o,t)}}}function Rn(t){let e,r,o,i,a,s,l,c,d;return{c(){e=T("span"),r=T("img"),W(r,"class",o=ie.text__image),u(r.src,i=t[60].image.url)||W(r,"src",i),W(r,"loading",a=t[60].image.preloadRequired?"eager":"lazy"),W(r,"decoding","async"),W(r,"aria-hidden","true"),W(r,"alt",""),W(r,"style",s=se({width:t[60].image.width,height:t[60].image.height,"margin-top":t[9]?"-".concat(t[60].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[60].image.height):void 0,filter:t[60].image.svgFilterId?"url(#".concat(t[60].image.svgFilterId,")"):void 0})),W(e,"style",l=se(t[60].image.wrapperStyle))},m(n,o){O(n,e,o),S(e,r),c||(d=U(r,"error",t[31]),c=!0)},p(t,n){2048&n[0]&&!u(r.src,i=t[60].image.url)&&W(r,"src",i),2048&n[0]&&a!==(a=t[60].image.preloadRequired?"eager":"lazy")&&W(r,"loading",a),2560&n[0]&&s!==(s=se({width:t[60].image.width,height:t[60].image.height,"margin-top":t[9]?"-".concat(t[60].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[60].image.height):void 0,filter:t[60].image.svgFilterId?"url(#".concat(t[60].image.svgFilterId,")"):void 0}))&&W(r,"style",s),2048&n[0]&&l!==(l=se(t[60].image.wrapperStyle))&&W(e,"style",l)},i:n,o:n,d(t){t&&I(e),c=!1,d()}}}function Bn(t){let e,n,r=t[60].text&&Ln(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[60].text?r?(r.p(t,n),2048&n[0]&&Nt(r,1)):(r=Ln(t),r.c(),Nt(r,1),r.m(e.parentNode,e)):r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt())},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}function Ln(t){let e,n;return e=new Vn({props:{componentContext:t[0],text:t[60].text,rootFontSize:t[3],textStyles:t[60].textStyles,singleline:t[6],actions:t[60].actions}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),2048&n[0]&&(r.text=t[60].text),8&n[0]&&(r.rootFontSize=t[3]),2048&n[0]&&(r.textStyles=t[60].textStyles),64&n[0]&&(r.singleline=t[6]),2048&n[0]&&(r.actions=t[60].actions),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Un(t){let e,n,r,o;const i=[Bn,Rn],a=[];function s(t,e){return"text"in t[60]?0:t[60].image?1:-1}return~(e=s(t))&&(n=a[e]=i[e](t)),{c(){n&&n.c(),r=L()},m(t,n){~e&&a[e].m(t,n),O(t,r,n),o=!0},p(t,o){let l=e;e=s(t),e===l?~e&&a[e].p(t,o):(n&&(St(),Ot(a[l],1,1,(()=>{a[l]=null})),Pt()),~e?(n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Nt(n,1),n.m(r.parentNode,r)):n=null)},i(t){o||(Nt(n),o=!0)},o(t){Ot(n),o=!1},d(t){t&&I(r),~e&&a[e].d(t)}}}function Wn(t){let e,n,r,o,i,a,s,c,u;const d=[zn,Tn],p=[];function f(t,e){return t[11].length?0:1}return n=f(t),r=p[n]=d[n](t),{c(){e=T("span"),r.c(),W(e,"class",o=Ee("text__inner",ie,t[13])),W(e,"style",i=se(t[12]))},m(r,o){O(r,e,o),p[n].m(e,null),s=!0,c||(u=b(a=On.call(null,e,{enabled:t[8],lineClamp:"number"==typeof t[4]?t[4]:void 0,maxLines:t[10]})),c=!0)},p(t,c){let u=n;n=f(t),n===u?p[n].p(t,c):(St(),Ot(p[u],1,1,(()=>{p[u]=null})),Pt(),r=p[n],r?r.p(t,c):(r=p[n]=d[n](t),r.c()),Nt(r,1),r.m(e,null)),(!s||8192&c[0]&&o!==(o=Ee("text__inner",ie,t[13])))&&W(e,"class",o),(!s||4096&c[0]&&i!==(i=se(t[12])))&&W(e,"style",i),a&&l(a.update)&&1296&c[0]&&a.update.call(null,{enabled:t[8],lineClamp:"number"==typeof t[4]?t[4]:void 0,maxLines:t[10]})},i(t){s||(Nt(r),s=!0)},o(t){Ot(r),s=!1},d(t){t&&I(e),p[n].d(),c=!1,u()}}}function Hn(t){let e,n;return e=new bn({props:{cls:Ee("text",ie,t[14])+" "+(t[5]?"":ne.root__unselectable),componentContext:t[0],layoutParams:t[1],$$slots:{default:[Wn]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};16416&n[0]&&(r.cls=Ee("text",ie,t[14])+" "+(t[5]?"":ne.root__unselectable)),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),16349&n[0]|2&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function qn(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,M,T,z,R,B,L,U,W=n,H=n,q=n,J=n,G=n,K=n,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n;t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),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()));let{componentContext:it}=e,{layoutParams:at}=e;const st=pt(re),lt=st.direction;f(t,lt,(t=>r(52,T=t)));let ct,dt="",ft=12,ht=1.25,gt=!1,mt="",vt="",yt=!1,$t="start",bt="start",_t="",wt="",xt="",kt=!1,Ct=[],Et=[];return ut((()=>{Et.forEach((t=>{let[e,n]=t;st.removeSvgFilter(e,n)}))})),t.$$set=t=>{"componentContext"in t&&r(0,it=t.componentContext),"layoutParams"in t&&r(1,at=t.layoutParams)},t.$$.update=()=>{var e;if(1&t.$$.dirty[0]&&it.json&&(r(3,ft=12),r(32,ht=1.25),r(9,gt=!1),r(33,mt=""),r(10,ct=void 0),r(4,vt=""),r(34,yt=!1),r(35,$t="start"),r(36,bt="start"),r(37,_t=""),r(39,xt=""),r(5,kt=!1)),1&t.$$.dirty[0]&&(r(29,o=it.getDerivedFromVars(it.json.text)),ot(),ot=p(o,(t=>r(56,U=t)))),1&t.$$.dirty[0]&&(r(28,i=it.getDerivedFromVars(it.json.ranges)),q(),q=p(i,(t=>r(44,F=t)))),1&t.$$.dirty[0]&&(r(27,a=it.getDerivedFromVars(it.json.images)),H(),H=p(a,(t=>r(43,V=t)))),1&t.$$.dirty[0]&&(r(26,s=it.getDerivedFromVars({font_size:it.json.font_size,letter_spacing:it.json.letter_spacing,font_weight:it.json.font_weight,font_family:it.json.font_family,text_color:it.json.text_color,underline:it.json.underline,strike:it.json.strike,line_height:it.json.line_height,text_shadow:it.json.text_shadow})),W(),W=p(s,(t=>r(7,j=t)))),1&t.$$.dirty[0]&&(r(25,l=it.getDerivedFromVars(it.json.font_size)),rt(),rt=p(l,(t=>r(55,L=t)))),1&t.$$.dirty[0]&&(r(24,c=it.getDerivedFromVars(it.json.line_height)),nt(),nt=p(c,(t=>r(54,B=t)))),1&t.$$.dirty[0]&&(r(23,u=it.getDerivedFromVars(it.json.max_lines)),Z(),Z=p(u,(t=>r(50,I=t)))),1&t.$$.dirty[0]&&(r(22,d=it.getDerivedFromVars(it.json.text_alignment_horizontal)),tt(),tt=p(d,(t=>r(53,z=t)))),1&t.$$.dirty[0]&&(r(21,h=it.getDerivedFromVars(it.json.text_alignment_vertical)),Q(),Q=p(h,(t=>r(51,M=t)))),1&t.$$.dirty[0]&&(r(20,g=it.getDerivedFromVars(it.json.text_color)),Y(),Y=p(g,(t=>r(49,O=t)))),1&t.$$.dirty[0]&&(r(19,m=it.getDerivedFromVars(it.json.focused_text_color)),X(),X=p(m,(t=>r(48,N=t)))),1&t.$$.dirty[0]&&(r(18,v=it.getDerivedFromVars(it.json.truncate)),K(),K=p(v,(t=>r(47,P=t)))),1&t.$$.dirty[0]&&(r(17,y=it.getDerivedFromVars(it.json.text_gradient)),G(),G=p(y,(t=>r(46,S=t)))),1&t.$$.dirty[0]&&(r(16,$=it.getDerivedFromVars(it.json.selectable)),J(),J=p($,(t=>r(45,D=t)))),1&t.$$.dirty[0]&&(r(15,b=it.getDerivedFromVars(it.json.auto_ellipsize)),et(),et=p(b,(t=>r(8,R=t)))),33554432&t.$$.dirty[1]&&r(2,(e=U,dt=String(null!=e?e:""))),8&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&r(3,ft=wn(L,ft)),8&t.$$.dirty[0]|8388608&t.$$.dirty[1]){const t=B;Ze(t)?(r(32,ht=Number(t)/ft),r(9,gt=!0)):r(9,gt=!1)}if(524288&t.$$.dirty[1]&&r(6,_=1===I),256&t.$$.dirty[0]|524290&t.$$.dirty[1]){let t,e="",n="",o=!1;if(I&&I>1){const r=Number(I);e=r*ht+"em",t=r,n=r,o=!0}else R&&1!==I&&(o=!0);r(33,mt=e),r(10,ct=t),r(4,vt=n),r(34,yt=o)}if(6291472&t.$$.dirty[1]&&r(35,$t=Fn(z,T,$t)),1048608&t.$$.dirty[1]&&r(36,bt=Dn(M,bt)),4&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(42,w=!F||dt&&1===F.length&&F[0]&&0===F[0].start&&"number"==typeof F[0].end&&F[0].end>=dt.length),270336&t.$$.dirty[1]&&r(41,x=Boolean(O)!==Boolean(F&&F[0]&&F[0].text_color)),797760&t.$$.dirty[1]){let t="";I&&w&&x&&(t=de(O||F&&F[0]&&F[0].text_color,1,_t)),r(37,_t=t)}if(131200&t.$$.dirty[1]&&r(38,wt=de(N,1,wt)),65536&t.$$.dirty[1]&&r(40,k="none"===P?"none":""),32768&t.$$.dirty[1]){let t="";if(S){const e=ge([S]);e.image&&(t=e.image)}r(39,xt=t)}32&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(5,kt=Sn(D,kt)),132&t.$$.dirty[0]|12288&t.$$.dirty[1]&&function(t,e,n,o){let i=[];if(Et.forEach((t=>{let[e,n]=t;st.removeSvgFilter(e,n)})),Et=[],!(Array.isArray(e)&&e.length||Array.isArray(n)&&n.length&&t))return void r(11,Ct=[]);const a=t;let s=e||[{start:0,end:a.length}],l=n||[],c=0,u=[],d=[];s.forEach((t=>{void 0!==t.start&&void 0!==t.end&&(d.push({index:t.start,range:t,type:"rangeStart",isStart:!0}),d.push({index:t.end,range:t,type:"rangeEnd"}))})),l.forEach(((t,e)=>{void 0!==t.start&&t.url&&t.start<=a.length&&d.push({index:t.start,image:t,type:"image",arrayIndex:e})})),d.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)),d.forEach((t=>{var e,n;let r="image"===t.type?null:t.range,s=t.index;if(s>c){let r=Object.assign(Object.assign({},o),...u);i.push({text:a.substring(c,s),textStyles:r,actions:"rangeEnd"===t.type&&(null===(n=null===(e=t.range)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.filter(Re))||void 0})}if("rangeStart"===t.type&&r)u.push(r);else if("rangeEnd"===t.type)u=u.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},o),...u),n=le(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=le(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const a={"font-size":le(10*(Number(e.font_size)||12)/ft)};let s="";const l=t.image.tint_color,c=Pn(t.image.tint_mode,"source_in");if(l){const e=de(t.image.tint_color);s=st.addSvgFilter(e,c),Et.push([e,c])}i.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:a,svgFilterId:s,preloadRequired:Boolean(t.image.preload_required)}})}c=s})),c<a.length&&i.push({text:a.substring(c),textStyles:Object.assign({},o)}),r(11,Ct=i)}(dt,F,V,j),64&t.$$.dirty[0]|696&t.$$.dirty[1]&&r(14,C={singleline:_,multiline:yt,halign:$t,valign:bt,truncate:k,"has-focus-color":Boolean(wt)}),256&t.$$.dirty[1]&&r(13,E={gradient:Boolean(xt)}),24&t.$$.dirty[0]|454&t.$$.dirty[1]&&r(12,A={"font-size":le(ft),"line-height":ht,"max-height":mt,"-webkit-line-clamp":vt,color:_t,"background-image":xt,"--divkit-text-focus-color":wt})},[it,at,dt,ft,vt,kt,_,j,R,gt,ct,Ct,A,E,C,b,$,y,v,m,g,h,d,u,c,l,s,a,i,o,lt,function(t){t.target&&"classList"in t.target&&t.target.classList.add(ie.text__image_hidden)},ht,mt,yt,$t,bt,_t,wt,xt,k,x,w,V,F,D,S,P,N,O,I,M,T,z,B,L,U]}const Jn={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_overflow_visible:"divkit-f315a",container_orientation_vertical:"divkit-ddc33",container_valign_start:"divkit-a31f0",container_valign_center:"divkit-aae61",container_valign_end:"divkit-eac00","container_valign_space-between":"divkit-ce053","container_valign_space-around":"divkit-cf29b","container_valign_space-evenly":"divkit-b4b04",container_halign_start:"divkit-efaf5",container_halign_center:"divkit-bac9d",container_halign_end:"divkit-ca36b","container_halign_space-between":"divkit-e5c38","container_halign_space-around":"divkit-feff2","container_halign_space-evenly":"divkit-e5e05",container_orientation_horizontal:"divkit-fe458",container_orientation_overlap:"divkit-a644d"};function Gn(t){return{top:Number(null==t?void 0:t.top)||0,right:Number(null==t?void 0:t.right)||0,bottom:Number(null==t?void 0:t.bottom)||0,left:Number(null==t?void 0:t.left)||0}}function Kn(t,e,n){const r=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),o=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0);null!=e&&e.show_at_start&&(n?t.top=e.style.height+o:t.left=e.style.width+r),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height+o:t.right=e.style.width+r)}function Xn(t,e,n){let r;const o=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),i=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0),a=((null==n?void 0:n.margins.left)||0)+((null==n?void 0:n.margins.right)||0),s=((null==n?void 0:n.margins.top)||0)+((null==n?void 0:n.margins.bottom)||0);return r="horizontal"===t?[null!=n&&n.show_between?n.style.height+s:0,null!=e&&e.show_between?e.style.width+o:0]:[null!=e&&e.show_between?e.style.height+i:0,null!=n&&n.show_between?n.style.width+a:0],r.map(le).join(" ")}function Yn(t){var e;const n=null===(e=t.width)||void 0===e?void 0:e.type;return"wrap_content"===n||"fixed"===n}function Zn(t){var e;return"match_parent"!==(null===(e=t.height)||void 0===e?void 0:e.type)}function Qn(t,e,n){if(!(t&&t.shape&&t.shape.type&&e.includes(t.shape.type)&&"shape_drawable"===t.type))return n;let r;if("rounded_rectangle"===t.shape.type)r={width:we(null===(i=(o=t.shape).item_width)||void 0===i?void 0:i.value,10),height:we(null===(a=o.item_height)||void 0===a?void 0:a.value,10),radius:we(null===(s=o.corner_radius)||void 0===s?void 0:s.value,5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*we(null===(e=t.radius)||void 0===e?void 0:e.value,10);return{width:n,height:n,radius:n}}(t.shape)}var o,i,a,s;return function(t,e,n){var r;const o={},i=e.stroke||(null==n?void 0:n.stroke),a=null!=i&&i.color?de(i.color):"",s=null!=i&&i.width?Number(null!==(r=i.width)&&void 0!==r?r:1):"";o.width=t.width,o.height=t.height,o.borderRadius=t.radius;const l=e.background_color||(null==n?void 0:n.color);return o.background=de(l),a&&s&&(o.boxShadow="inset 0 0 0 ".concat(le(s)," ").concat(a)),o}(r,t.shape,{color:t.color,stroke:t.stroke})}let tr;function er(){if("undefined"==typeof document&&(tr=!0),void 0!==tr)return tr;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),tr=1===t.scrollHeight,document.body.removeChild(t),tr}const nr={"container-separator":"divkit-a7719","container-separator__item":"divkit-c770e","container-separator__shape":"divkit-f6e9a"},{window:rr}=j;function or(t,e,n){const r=t.slice();return r[16]=e[n],r}function ir(t){let e,n,r,o,i,a="".concat(t[16].style.width,"px"),s="".concat(t[16].style.height,"px"),l="".concat(t[16].style.borderRadius,"px"),c="".concat(t[16].left,"px"),u="".concat(t[16].top,"px"),d="".concat(t[16].width,"px"),p="".concat(t[16].height,"px");return{c(){e=T("div"),n=T("div"),o=B(),W(n,"class",r=nr["container-separator__shape"]),Y(n,"width",a),Y(n,"height",s),Y(n,"border-radius",l),Y(n,"background",t[16].style.background),Y(n,"box-shadow",t[16].style.boxShadow),W(e,"class",i=nr["container-separator__item"]),Y(e,"left",c),Y(e,"top",u),Y(e,"width",d),Y(e,"height",p)},m(t,r){O(t,e,r),S(e,n),S(e,o)},p(t,r){2&r&&a!==(a="".concat(t[16].style.width,"px"))&&Y(n,"width",a),2&r&&s!==(s="".concat(t[16].style.height,"px"))&&Y(n,"height",s),2&r&&l!==(l="".concat(t[16].style.borderRadius,"px"))&&Y(n,"border-radius",l),2&r&&Y(n,"background",t[16].style.background),2&r&&Y(n,"box-shadow",t[16].style.boxShadow),2&r&&c!==(c="".concat(t[16].left,"px"))&&Y(e,"left",c),2&r&&u!==(u="".concat(t[16].top,"px"))&&Y(e,"top",u),2&r&&d!==(d="".concat(t[16].width,"px"))&&Y(e,"width",d),2&r&&p!==(p="".concat(t[16].height,"px"))&&Y(e,"height",p)},d(t){t&&I(e)}}}function ar(t){let e,r,o,i,a=zt(t[1]),s=[];for(let e=0;e<a.length;e+=1)s[e]=ir(or(t,a,e));return{c(){e=T("div");for(let t=0;t<s.length;t+=1)s[t].c();W(e,"class",r=nr["container-separator"])},m(n,r){O(n,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);t[13](e),o||(i=U(rr,"resize",t[2]),o=!0)},p(t,n){let[r]=n;if(2&r){let n;for(a=zt(t[1]),n=0;n<a.length;n+=1){const o=or(t,a,n);s[n]?s[n].p(o,r):(s[n]=ir(o),s[n].c(),s[n].m(e,null))}for(;n<s.length;n+=1)s[n].d(1);s.length=a.length}},i:n,o:n,d(n){n&&I(e),M(s,n),t[13](null),o=!1,i()}}}function sr(t,e,n,r,o,i){const a=e.margins.left,s=e.margins.right,l=e.margins.top,c=e.margins.bottom;i?t.push({top:n.bottom+l,left:o.left+a,width:Math.max(0,o.right-o.left-a-s),height:r.top-n.bottom-l-c,style:e.style}):t.push({top:o.top+l,left:n.right+a,width:r.left-n.right-a-s,height:Math.max(0,o.bottom-o.top-l-c),style:e.style})}function lr(t,e,n,r,o,i){const a={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){let s,l;"space-around"===o||"space-evenly"===o?(s=i.left-e.style.width,l=i.top-e.style.height):(s=n[0].left-e.style.width-e.margins.left-e.margins.right,l=n[0].top-e.style.height-e.margins.top-e.margins.bottom),sr(t,e,{top:0,right:s,bottom:l,left:0},n[0],a,r)}if(null==e?void 0:e.show_between)for(let o=0;o<n.length-1;++o)sr(t,e,n[o],n[o+1],a,r);if(null==e?void 0:e.show_at_end){const s=n[n.length-1];let l,c;"space-around"===o||"space-evenly"===o?(l=i.bottom+e.style.height,c=i.right+e.style.width):(l=s.bottom+e.style.height+e.margins.top+e.margins.bottom,c=s.right+e.style.width+e.margins.left+e.margins.right),sr(t,e,s,{top:l,right:0,bottom:0,left:c},a,r)}}function cr(t,e,n){let r,{orientation:o}=e,{separator:i}=e,{lineSeparator:a}=e,{contentHAlign:s}=e,{contentVAlign:l}=e,{direction:c}=e;const u=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(),e=window.getComputedStyle(r),u={top:t.top+parseFloat(e.paddingTop),right:t.right-parseFloat(e.paddingRight),bottom:t.bottom-parseFloat(e.paddingBottom),left:t.left+parseFloat(e.paddingLeft)};n(1,p=[]);let f=[...r.children].filter((t=>t!==d&&!t.classList.contains(ae.outer__border))),h=[];for(;f.length;){const t=[],e=f.shift();t.push(e);let n=e.getBoundingClientRect(),r=n.left,i=n.right,a=n.bottom;for(;f.length;){let e=f[0],n=e.getBoundingClientRect();if("vertical"===o){if(n.top<a)break}else if("ltr"===c?n.left<i:n.right>r)break;i=Math.max(i,n.right),r=Math.min(r,n.left),a=Math.max(a,n.bottom),t.push(e),f.shift()}h.push(t)}const g=[];h.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)));"rtl"===c&&"horizontal"===o&&e.reverse(),i&&lr(p,i,e,"vertical"===o,"vertical"===o?l:s,u);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)))};g.push(n)})),"rtl"===c&&"vertical"===o&&g.reverse(),a&&lr(p,a,g,"horizontal"===o,"vertical"===o?s:l,u),p.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let d,p=[],f=!1,h=null,g=null;function m(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(nr["container-separator__shape"]))&&!(null==n?void 0:n.contains(nr["container-separator"]))}))&&u()}return lt((()=>{n(9,f=!0)})),ut((()=>{n(9,f=!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),"contentHAlign"in t&&n(6,s=t.contentHAlign),"contentVAlign"in t&&n(7,l=t.contentVAlign),"direction"in t&&n(8,c=t.direction)},t.$$.update=()=>{1&t.$$.dirty&&n(12,r=(null==d?void 0:d.parentElement)||null),7680&t.$$.dirty&&(f&&r||h||g)&&(h&&(h.disconnect(),n(10,h=null)),g&&(g.disconnect(),n(11,g=null)),f&&r&&("undefined"!=typeof MutationObserver&&(n(10,h=new MutationObserver(m)),h.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(11,g=new ResizeObserver(u)),g.observe(r)))),4608&t.$$.dirty&&f&&r&&u()},[d,p,u,o,i,a,s,l,c,f,h,g,r,function(t){gt[t?"unshift":"push"]((()=>{d=t,n(0,d)}))}]}const ur=class extends Zt{constructor(t){super(),Xt(this,t,cr,ar,d,{orientation:3,separator:4,lineSeparator:5,contentHAlign:6,contentVAlign:7,direction:8})}},{Boolean:dr}=j;function pr(t,e,n){const r=t.slice();return r[54]=e[n],r}function fr(t){let e,n;return e=new gs({props:{componentContext:t[54],layoutParams:t[8]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.componentContext=t[54]),256&n[0]&&(r.layoutParams=t[8]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function hr(t){let e,n;return e=new ur({props:{direction:t[11],separator:t[5],lineSeparator:t[6],orientation:t[2],contentHAlign:t[4],contentVAlign:t[3]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.direction=t[11]),32&n[0]&&(r.separator=t[5]),64&n[0]&&(r.lineSeparator=t[6]),4&n[0]&&(r.orientation=t[2]),16&n[0]&&(r.contentHAlign=t[4]),8&n[0]&&(r.contentVAlign=t[3]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function gr(t){let e,n,r,o=zt(t[9]),i=[];for(let e=0;e<o.length;e+=1)i[e]=fr(pr(t,o,e));const a=t=>Ot(i[t],1,1,(()=>{i[t]=null}));let s=(t[5]||t[6])&&hr(t);return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=B(),s&&s.c(),n=L()},m(t,o){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,o);O(t,e,o),s&&s.m(t,o),O(t,n,o),r=!0},p(t,r){if(768&r[0]){let n;for(o=zt(t[9]),n=0;n<o.length;n+=1){const a=pr(t,o,n);i[n]?(i[n].p(a,r),Nt(i[n],1)):(i[n]=fr(a),i[n].c(),Nt(i[n],1),i[n].m(e.parentNode,e))}for(St(),n=o.length;n<i.length;n+=1)a(n);Pt()}t[5]||t[6]?s?(s.p(t,r),96&r[0]&&Nt(s,1)):(s=hr(t),s.c(),Nt(s,1),s.m(n.parentNode,n)):s&&(St(),Ot(s,1,1,(()=>{s=null})),Pt())},i(t){if(!r){for(let t=0;t<o.length;t+=1)Nt(i[t]);Nt(s),r=!0}},o(t){i=i.filter(dr);for(let t=0;t<i.length;t+=1)Ot(i[t]);Ot(s),r=!1},d(t){t&&(I(e),I(n)),M(i,t),s&&s.d(t)}}}function mr(t){let e,n;return e=new bn({props:{cls:Ee("container",Jn,t[13]),componentContext:t[0],layoutParams:t[1],style:t[10],additionalPaddings:t[14],heightByAspect:Boolean(t[7]),parentOf:t[9].map(br),replaceItems:t[27],$$slots:{default:[gr]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Ee("container",Jn,t[13])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),1024&n[0]&&(r.style=t[10]),16384&n[0]&&(r.additionalPaddings=t[14]),128&n[0]&&(r.heightByAspect=Boolean(t[7])),512&n[0]&&(r.parentOf=t[9].map(br)),2940&n[0]|67108864&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}const vr={start:"start",center:"center",end:"end","space-between":"start","space-around":"start","space-evenly":"start"},yr={start:"start",center:"center",end:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},$r=["rounded_rectangle","circle"],br=t=>t.json;function _r(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,M,T=n,z=n,R=n,B=n,L=n,U=n,W=n,H=n,q=n,J=n,G=n,K=n;var X,Y,Z,Q,tt,et,nt;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K()));let{componentContext:rt}=e,{layoutParams:ot}=e;const it=pt(re),at=it.direction;let st;f(t,at,(t=>r(11,D=t)));let lt,ct="vertical",ut="start",dt="start",ft=null,ht=null,gt={},mt=[];return t.$$set=t=>{"componentContext"in t&&r(0,rt=t.componentContext),"layoutParams"in t&&r(1,ot=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(39,o=rt.origJson),256&t.$$.dirty[1]&&o&&(r(2,ct="vertical"),r(3,ut="start"),r(4,dt="start"),r(7,lt=void 0)),1&t.$$.dirty[0]&&r(38,i=rt.json.items),268435457&t.$$.dirty[0]&&(r(25,a=rt.getDerivedFromVars(null===r(28,X=rt.json.item_builder)||void 0===X?void 0:X.data,void 0,!0)),K(),K=p(a,(t=>r(51,M=t)))),1&t.$$.dirty[0]&&(r(24,s=rt.getDerivedFromVars(rt.json.orientation)),G(),G=p(s,(t=>r(50,I=t)))),1&t.$$.dirty[0]&&(r(23,l=rt.getDerivedFromVars(rt.json.layout_mode)),J(),J=p(l,(t=>r(49,O=t)))),1&t.$$.dirty[0]&&(r(22,c=rt.getDerivedFromVars(rt.json.content_alignment_vertical)),H(),H=p(c,(t=>r(47,P=t)))),1&t.$$.dirty[0]&&(r(21,u=rt.getDerivedFromVars(rt.json.content_alignment_horizontal)),W(),W=p(u,(t=>r(46,S=t)))),1&t.$$.dirty[0]&&(r(20,d=rt.getDerivedFromVars(rt.json.separator)),U(),U=p(d,(t=>r(45,F=t)))),1&t.$$.dirty[0]&&(r(19,h=rt.getDerivedFromVars(rt.json.line_separator)),L(),L=p(h,(t=>r(44,V=t)))),1&t.$$.dirty[0]&&(r(18,g=rt.getDerivedFromVars(rt.json.aspect)),B(),B=p(g,(t=>r(43,j=t)))),1&t.$$.dirty[0]&&(r(17,m=rt.getDerivedFromVars(rt.json.width)),z(),z=p(m,(t=>r(41,E=t)))),1&t.$$.dirty[0]&&(r(16,v=rt.getDerivedFromVars(rt.json.height)),R(),R=p(v,(t=>r(42,A=t)))),1&t.$$.dirty[0]&&(r(15,y=rt.getDerivedFromVars(rt.json.clip_to_bounds)),T(),T=p(y,(t=>r(40,C=t)))),1&t.$$.dirty[0]|1048704&t.$$.dirty[1]){let t=[];if(rt.json.item_builder&&Array.isArray(M)&&Array.isArray(rt.json.item_builder.prototypes)){const e=rt.json.item_builder;t=[],M.forEach((n=>{if(null===n||"object"!=typeof n)return;const r=it.preparePrototypeVariables(e.data_element_name||"it",n);let o;for(let t=0;t<e.prototypes.length;++t){const n=e.prototypes[t];if(n.div){if(void 0===n.selector){o=n.div;break}if(rt.getJsonWithVars(n.selector,r)){o=n.div;break}}}o&&t.push({div:o,vars:r})}))}else t=(Array.isArray(i)&&i||[]).map((t=>({div:t})));r(9,mt=t.map(((t,e)=>rt.produceChildContext(t.div,{path:e,variables:t.vars}))))}if(513&t.$$.dirty[0]){let t=[];mt.forEach((e=>{t.push(rt.getDerivedFromVars({width:e.json.width,height:e.json.height}))})),r(12,st=ee(t,(t=>[...t]))),q(),q=p(st,(t=>r(48,N=t)))}if(4&t.$$.dirty[0]|524288&t.$$.dirty[1]&&r(2,ct=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(I,ct)),262144&t.$$.dirty[1]&&r(35,$="wrap"===O),4&t.$$.dirty[0]|131088&t.$$.dirty[1]&&r(36,b="horizontal"!==ct&&!$&&N.some(Yn)),4&t.$$.dirty[0]|131088&t.$$.dirty[1]&&r(37,_="vertical"!==ct&&!$&&N.some(Zn)),8&t.$$.dirty[0]|65536&t.$$.dirty[1]&&r(3,ut=function(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?"top"===t?"start":"bottom"===t?"end":t:e}(P,ut)),2064&t.$$.dirty[0]|32768&t.$$.dirty[1]&&r(4,dt=function(t,e,n){return"left"===t||"center"===t||"right"===t||"space-between"===t||"space-around"===t||"space-evenly"===t||"start"===t||"end"===t?"left"===t?"ltr"===e?"start":"end":"right"===t?"ltr"===e?"end":"start":t:n}(S,D,dt)),1610612772&t.$$.dirty[0]|16385&t.$$.dirty[1])if((null==F?void 0:F.style)&&"overlap"!==ct&&er()){const t=Qn(F.style,$r,(null==ft?void 0:ft.style)||null);r(5,ft=t?{show_at_start:Boolean(null!==r(29,Y=F.show_at_start)&&void 0!==Y&&Y),show_at_end:Boolean(null!==r(30,Z=F.show_at_end)&&void 0!==Z&&Z),show_between:Boolean(null===r(31,Q=F.show_between)||void 0===Q||Q),style:t,margins:Gn(F.margins)}:null)}else r(5,ft=null);if(68&t.$$.dirty[0]|8206&t.$$.dirty[1])if((null==V?void 0:V.style)&&"overlap"!==ct&&er()){const t=Qn(V.style,$r,(null==ht?void 0:ht.style)||null);r(6,ht=t?{show_at_start:Boolean(null!==r(32,tt=V.show_at_start)&&void 0!==tt&&tt),show_at_end:Boolean(null!==r(33,et=V.show_at_end)&&void 0!==et&&et),show_between:Boolean(null===r(34,nt=V.show_between)||void 0===nt||nt),style:t,margins:Gn(V.margins)}:null)}else r(6,ht=null);if(100&t.$$.dirty[0]&&r(14,w=ft||ht?function(t,e,n){const r={};return Kn(r,e,"vertical"===t),Kn(r,n,"horizontal"===t),r}(ct,ft,ht):null),4096&t.$$.dirty[1]){const t=null==j?void 0:j.ratio;t&&Ze(t)?r(7,lt=t):r(7,lt=void 0)}if(414&t.$$.dirty[0]|3184&t.$$.dirty[1]){let t={};"overlap"===ct&&(t.overlapParent=!0),"horizontal"!==ct&&(t.parentHAlign=$?"start":vr[dt]),"vertical"!==ct&&(t.parentVAlign=$?"start":yr[ut]),lt||_||A&&"wrap_content"!==A.type&&("match_parent"!==A.type||!(null==ot?void 0:ot.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0),!b&&("wrap_content"===(null==E?void 0:E.type)||"match_parent"===(null==E?void 0:E.type)&&(null==ot?void 0:ot.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0),"horizontal"===ct&&(t.parentContainerOrientation="horizontal"),"vertical"===ct&&(t.parentContainerOrientation="vertical"),$&&(t.parentContainerWrap=!0),r(8,gt=Ne(t,gt))}28&t.$$.dirty[0]|528&t.$$.dirty[1]&&r(13,x={orientation:ct,valign:ut,halign:dt,wrap:$,overflow:!1===C||0===C?"visible":void 0}),228&t.$$.dirty[0]&&r(10,k={gap:ft||ht?Xn(ct,ft,ht):void 0,"aspect-ratio":lt})},[rt,ot,ct,ut,dt,ft,ht,lt,gt,mt,k,D,st,x,w,y,v,m,g,h,d,u,c,l,s,a,at,function(t){r(0,rt=Object.assign(Object.assign({},rt),{json:Object.assign(Object.assign({},rt.json),{items:t.filter(he)})}))},X,Y,Z,Q,tt,et,nt,$,b,_,i,o,C,E,A,j,V,F,S,P,N,O,I,M]}const wr={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function xr(t,e){return"vertical"===t||"horizontal"===t?t:e}function kr(t){let e,n,r;return{c(){e=T("span"),W(e,"class",n=wr.separator__inner),W(e,"style",r=se(t[3]))},m(t,n){O(t,e,n)},p(t,n){8&n&&r!==(r=se(t[3]))&&W(e,"style",r)},d(t){t&&I(e)}}}function Cr(t){let e,n=t[4]&&kr(t);return{c(){n&&n.c(),e=L()},m(t,r){n&&n.m(t,r),O(t,e,r)},p(t,r){t[4]?n?n.p(t,r):(n=kr(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&I(e),n&&n.d(t)}}}function Er(t){let e,n;return e=new bn({props:{cls:Ee("separator",wr,t[2]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[Cr]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){let[r]=n;const o={};4&r&&(o.cls=Ee("separator",wr,t[2])),1&r&&(o.componentContext=t[0]),2&r&&(o.layoutParams=t[1]),8216&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Ar(t,e,r){let o,i,a,s,l,c,u,d,f=n;t.$$.on_destroy.push((()=>f()));let{componentContext:h}=e,{layoutParams:g}=e,m="horizontal",v="rgba(0,0,0,0.08)";return t.$$set=t=>{"componentContext"in t&&r(0,h=t.componentContext),"layoutParams"in t&&r(1,g=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&r(10,o=h.origJson),1024&t.$$.dirty&&o&&(r(6,m="horizontal"),r(7,v="rgba(0,0,0,0.08)")),1&t.$$.dirty&&(r(5,i=h.getDerivedFromVars(h.json.delimiter_style)),f(),f=p(i,(t=>r(11,d=t)))),2112&t.$$.dirty&&r(6,m=xr(null==d?void 0:d.orientation,m)),2048&t.$$.dirty&&r(4,a=!((null==d?void 0:d.color)&&("transparent"===d.color||9===d.color.length&&0===d.color.indexOf("#00")))),2176&t.$$.dirty&&r(7,v=de(null==d?void 0:d.color,1,v)),64&t.$$.dirty&&r(9,s="horizontal"===m?"100%":le(1)),64&t.$$.dirty&&r(8,l="horizontal"===m?le(1):"100%"),896&t.$$.dirty&&r(3,c={background:v,width:s,height:l}),64&t.$$.dirty&&r(2,u={orientation:m})},[h,g,u,c,a,i,m,v,l,s,o,d]}const jr={image:"divkit-a448f","image_is-width-content":"divkit-fe14a","image_is-height-content":"divkit-f4d92",image__image:"divkit-ce046",image_error:"divkit-f10d9","image_is-rtl-mirror":"divkit-ae78c","image__aspect-wrapper":"divkit-dc808",image_aspect:"divkit-ae784",image_loaded:"divkit-cf4e0","divkit-image-appearance":"divkit-e555f","image_before-appearance":"divkit-ffe8a"};function Vr(t){return t.startsWith("data:")?fe(t):"data:image/jpg;base64,".concat(fe(t))}function Fr(t){let e,n;return e=new bn({props:{cls:Ee("image",jr,t[9]),componentContext:t[0],layoutParams:t[1],customDescription:!0,$$slots:{default:[Nr]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.cls=Ee("image",jr,t[9])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),67110780&n[0]|64&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Dr(t){let e,n,r,o,i,a,l,c;return{c(){e=T("img"),W(e,"class",n=jr.image__image),u(e.src,r=t[3]===Mr?Ir:t[4])||W(e,"src",r),W(e,"loading",o=t[26]?"eager":"lazy"),W(e,"decoding","async"),W(e,"style",i=se(t[8])),W(e,"alt",t[10]),W(e,"aria-hidden",a=t[10]?null:"true")},m(n,r){O(n,e,r),t[63](e),l||(c=[U(e,"load",t[28]),U(e,"error",t[29])],l=!0)},p(t,n){24&n[0]&&!u(e.src,r=t[3]===Mr?Ir:t[4])&&W(e,"src",r),67108864&n[0]&&o!==(o=t[26]?"eager":"lazy")&&W(e,"loading",o),256&n[0]&&i!==(i=se(t[8]))&&W(e,"style",i),1024&n[0]&&W(e,"alt",t[10]),1024&n[0]&&a!==(a=t[10]?null:"true")&&W(e,"aria-hidden",a)},d(n){n&&I(e),t[63](null),l=!1,s(c)}}}function Sr(t){let e,n,r,o,i,a,l,c,d,p,f="".concat(t[5],"%");return{c(){e=T("span"),n=T("img"),W(n,"class",r=jr.image__image),u(n.src,o=t[3]===Mr?Ir:t[4])||W(n,"src",o),W(n,"loading",i=t[26]?"eager":"lazy"),W(n,"decoding","async"),W(n,"style",a=se(t[8])),W(n,"alt",t[10]),W(n,"aria-hidden",l=t[10]?null:"true"),W(e,"class",c=jr["image__aspect-wrapper"]),Y(e,"padding-bottom",f)},m(r,o){O(r,e,o),S(e,n),t[62](n),d||(p=[U(n,"load",t[28]),U(n,"error",t[29])],d=!0)},p(t,r){24&r[0]&&!u(n.src,o=t[3]===Mr?Ir:t[4])&&W(n,"src",o),67108864&r[0]&&i!==(i=t[26]?"eager":"lazy")&&W(n,"loading",i),256&r[0]&&a!==(a=se(t[8]))&&W(n,"style",a),1024&r[0]&&W(n,"alt",t[10]),1024&r[0]&&l!==(l=t[10]?null:"true")&&W(n,"aria-hidden",l),32&r[0]&&f!==(f="".concat(t[5],"%"))&&Y(e,"padding-bottom",f)},d(n){n&&I(e),t[62](null),d=!1,s(p)}}}function Pr(t){let e;function n(t,e){return t[9].aspect?Sr:Dr}let r=n(t),o=r(t);return{c(){o.c(),e=L()},m(t,n){o.m(t,n),O(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){t&&I(e),o.d(t)}}}function Nr(t){let e,n=t[6],r=Pr(t);return{c(){r.c(),e=L()},m(t,n){r.m(t,n),O(t,e,n)},p(t,o){64&o[0]&&d(n,n=t[6])?(r.d(1),r=Pr(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&I(e),r.d(t)}}}function Or(t){let e,n,r=!t[7]&&Fr(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[7]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),128&n[0]&&Nt(r,1)):(r=Fr(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}const Ir="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Mr=2;function Tr(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,M,T,z,R,B,L,U=n,W=n,H=n,q=n,J=n,G=n,K=n,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n;t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),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()));let{componentContext:ot}=e,{layoutParams:it}=e;const at=pt(re),st=at.direction;let lt;f(t,st,(t=>r(48,j=t)));let ct,dt,ft=0,ht=!1,mt="rgba(0,0,0,0.08)",vt=!1,yt="",$t="none",bt="50% 50%",_t="0",wt="source_in",xt="",kt="",Ct=0,Et=0,At=0,jt="",Vt="",Ft=!1;return ut((()=>{at.removeSvgFilter(dt,wt)})),t.$$set=t=>{"componentContext"in t&&r(0,ot=t.componentContext),"layoutParams"in t&&r(1,it=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(46,o=ot.origJson),32768&t.$$.dirty[1]&&o&&(r(33,$t="none"),r(34,bt="50% 50%"),r(36,wt="source_in")),1&t.$$.dirty[0]&&(r(25,i=ot.getDerivedFromVars(ot.json.image_url)),et(),et=p(i,(t=>r(60,R=t)))),1&t.$$.dirty[0]&&(r(24,a=ot.getDerivedFromVars(ot.json.gif_url)),nt(),nt=p(a,(t=>r(61,B=t)))),1&t.$$.dirty[0]&&(r(23,s=ot.getDerivedFromVars(ot.json.width)),tt(),tt=p(s,(t=>r(59,z=t)))),1&t.$$.dirty[0]&&(r(22,l=ot.getDerivedFromVars(ot.json.height)),Q(),Q=p(l,(t=>r(58,T=t)))),1&t.$$.dirty[0]&&(r(21,c=ot.getDerivedFromVars(ot.json.preview)),Z(),Z=p(c,(t=>r(57,M=t)))),1&t.$$.dirty[0]&&(r(20,u=ot.getDerivedFromVars(ot.json.placeholder_color)),Y(),Y=p(u,(t=>r(56,I=t)))),1&t.$$.dirty[0]&&(r(19,d=ot.getDerivedFromVars(ot.json.scale)),X(),X=p(d,(t=>r(55,O=t)))),1&t.$$.dirty[0]&&(r(18,h=ot.getDerivedFromVars({content_alignment_horizontal:ot.json.content_alignment_horizontal,content_alignment_vertical:ot.json.content_alignment_vertical})),K(),K=p(h,(t=>r(54,N=t)))),1&t.$$.dirty[0]&&(r(17,g=ot.getDerivedFromVars(ot.json.accessibility)),G(),G=p(g,(t=>r(53,P=t)))),1&t.$$.dirty[0]&&(r(16,m=ot.getDerivedFromVars(ot.json.aspect)),J(),J=p(m,(t=>r(52,S=t)))),1&t.$$.dirty[0]&&(r(15,v=ot.getDerivedFromVars(ot.json.tint_color)),q(),q=p(v,(t=>r(51,D=t)))),1&t.$$.dirty[0]&&(r(14,y=ot.getDerivedFromVars(ot.json.tint_mode)),H(),H=p(y,(t=>r(50,F=t)))),1&t.$$.dirty[0]&&(r(13,$=ot.getDerivedFromVars(ot.json.appearance_animation)),W(),W=p($,(t=>r(49,V=t)))),1&t.$$.dirty[0]&&(r(12,b=ot.getDerivedFromVars(ot.json.filters)),U(),U=p(b,(t=>r(47,A=t)))),1&t.$$.dirty[0]&&(r(11,_=ot.getDerivedFromVars(ot.json.preload_required)),rt(),rt=p(_,(t=>r(26,L=t)))),1073741825&t.$$.dirty[0]|1610612736&t.$$.dirty[1]){let t="gif"===ot.json.type?B:R;r(30,ht="empty://"===t),ht&&(t=Ir),r(4,ct=t)}if(16&t.$$.dirty[0]&&r(3,ft=0),17&t.$$.dirty[0]&&(ct?r(7,vt=!1):(r(7,vt=!0),ot.logError(oe(new Error('Missing "'.concat("gif"===ot.json.type?"gif_url":"image_url",'" for "').concat(ot.json.type,'"')))))),268435456&t.$$.dirty[1]&&r(45,w="wrap_content"===(null==z?void 0:z.type)),134217728&t.$$.dirty[1]&&r(44,x="wrap_content"===(null==T?void 0:T.type)),1073741832&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&r(32,yt=(0===ft||ft===Mr||ht)&&M?'url("'.concat(Vr(M),'")'):""),1073741832&t.$$.dirty[0]|33554433&t.$$.dirty[1]&&r(31,mt=0===ft||ft===Mr||ht?de(I,1,mt):""),16777220&t.$$.dirty[1]&&r(33,$t=ye(O)||$t),8388608&t.$$.dirty[1]&&r(34,bt=function(t,e,n){let r=t.content_alignment_horizontal;const o=t.content_alignment_vertical;return"start"===r?r="ltr"===e?"left":"right":"end"===r&&(r="ltr"===e?"right":"left"),r&&"left"!==r&&"center"!==r&&"right"!==r||o&&"top"!==o&&"center"!==o&&"bottom"!==o?n:$e({content_alignment_horizontal:r,content_alignment_vertical:o})}(N,j,bt)),4194304&t.$$.dirty[1]&&r(10,k=(null==P?void 0:P.description)||""),2097152&t.$$.dirty[1]){const t=null==S?void 0:S.ratio;t&&Ze(t)?r(5,_t=(100/Number(t)).toFixed(2)):r(5,_t="0")}if(1572912&t.$$.dirty[1]){const t=D?de(D):void 0,e=Pn(F,wt);t===dt&&e===wt||(at.removeSvgFilter(dt,wt),r(6,xt=t?at.addSvgFilter(t,e):""),r(35,dt=t),r(36,wt=e))}if(262144&t.$$.dirty[1]&&V&&"fade"===V.type){const t=V;r(37,kt=Oe(t.interpolator,"ease_in_out").replace(/_/g,"-")),r(40,At=we(t.duration,300)),r(39,Et=we(t.start_delay,0)),r(38,Ct=we(t.alpha,0))}if(1&t.$$.dirty[0]|196608&t.$$.dirty[1]){let t="",e="";Array.isArray(A)&&A.length&&(t=Qe(A,ot.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),r(41,jt=t),r(42,Vt=e),r(43,Ft="rtl"===j&&Array.isArray(A)&&A.some((t=>"rtl_mirror"===t.type)))}40&t.$$.dirty[0]|28736&t.$$.dirty[1]&&r(9,C={aspect:"0"!==_t,"is-width-content":w,"is-height-content":x,loaded:1===ft,"before-appearance":Boolean(kt)&&0===ft,"is-rtl-mirror":Ft}),72&t.$$.dirty[0]|4047&t.$$.dirty[1]&&r(8,E={"background-image":yt,"background-color":yt?void 0:mt,"background-size":$t,"clip-path":Vt||void 0,"object-fit":$t,"object-position":bt,filter:[1===ft&&xt?"url(#".concat(xt,")"):"",jt].filter(Boolean).join(" "),"--divkit-appearance-interpolator":kt||void 0,"--divkit-appearance-fade-start":kt?Ct:void 0,"--divkit-appearance-delay":kt?"".concat(Et,"ms"):void 0,"--divkit-appearance-duration":kt?"".concat(At,"ms"):void 0})},[ot,it,lt,ft,ct,_t,xt,vt,E,C,k,_,b,$,y,v,m,g,h,d,u,c,l,s,a,i,L,st,function(){0===ft&&r(3,ft=1)},function(){0===ft&&r(3,ft=Mr)},ht,mt,yt,$t,bt,dt,wt,kt,Ct,Et,At,jt,Vt,Ft,x,w,o,A,j,V,F,D,S,P,N,O,I,M,T,z,R,B,function(t){gt[t?"unshift":"push"]((()=>{lt=t,r(2,lt),r(0,ot),r(61,B),r(60,R),r(30,ht)}))},function(t){gt[t?"unshift":"push"]((()=>{lt=t,r(2,lt),r(0,ot),r(61,B),r(60,R),r(30,ht)}))}]}const zr=class extends Zt{constructor(t){super(),Xt(this,t,Tr,Or,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Rr={grid:"divkit-d9080",grid_halign_start:"divkit-fc24d",grid_halign_center:"divkit-a14a6",grid_halign_end:"divkit-cfd04",grid_valign_start:"divkit-c3106",grid_valign_center:"divkit-d4310",grid_valign_end:"divkit-fa9cf"};function Br(t){return t>0&&t<1}function Lr(t){return String(Math.ceil(1e3*t)/1e3)}function Ur(t,e,n){if(t.some(Br)){const e=Math.max(...t.filter(Br).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(le(r*t[e]/o),",").concat(Lr(t[e]),"fr)"):t[e]?i[e]="".concat(Lr(t[e]),"fr"):i[e]="auto";return i.join(" ")}function Wr(t,e,n){const r=t.slice();return r[31]=e[n],r}function Hr(t){let e,n;return e=new bn({props:{cls:Ee("grid",Rr,t[7]),componentContext:t[0],style:t[6],layoutParams:t[1],parentOf:t[2].map(Kr),replaceItems:t[12],$$slots:{default:[Jr]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.cls=Ee("grid",Rr,t[7])),1&n[0]&&(r.componentContext=t[0]),64&n[0]&&(r.style=t[6]),2&n[0]&&(r.layoutParams=t[1]),4&n[0]&&(r.parentOf=t[2].map(Kr)),16&n[0]|8&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function qr(t){let e,n;return e=new gs({props:{componentContext:t[31].componentContext,layoutParams:t[31].layoutParams}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.componentContext=t[31].componentContext),16&n[0]&&(r.layoutParams=t[31].layoutParams),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Jr(t){let e,n,r=zt(t[4]),o=[];for(let e=0;e<r.length;e+=1)o[e]=qr(Wr(t,r,e));const i=t=>Ot(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=L()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);O(t,e,r),n=!0},p(t,n){if(16&n[0]){let a;for(r=zt(t[4]),a=0;a<r.length;a+=1){const i=Wr(t,r,a);o[a]?(o[a].p(i,n),Nt(o[a],1)):(o[a]=qr(i),o[a].c(),Nt(o[a],1),o[a].m(e.parentNode,e))}for(St(),a=r.length;a<o.length;a+=1)i(a);Pt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Nt(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Ot(o[t]);n=!1},d(t){t&&I(e),M(o,t)}}}function Gr(t){let e,n,r=!t[5]&&Hr(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[5]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),32&n[0]&&Nt(r,1)):(r=Hr(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}const Kr=t=>t.json;function Xr(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b=n,_=n,w=n,x=n;t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x()));let{componentContext:k}=e,{layoutParams:C}=e;const E=pt(re).direction;f(t,E,(t=>r(24,g=t)));let A,j,V=1,F=[],D=[],S=[],P=[],N=0,O=!1,I="start",M="start";return t.$$set=t=>{"componentContext"in t&&r(0,k=t.componentContext),"layoutParams"in t&&r(1,C=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(23,o=k.origJson),8388608&t.$$.dirty[0]&&o&&(r(13,V=1),r(20,I="start"),r(21,M="start")),1&t.$$.dirty[0]&&r(22,i=Array.isArray(k.json.items)&&k.json.items||[]),1&t.$$.dirty[0]&&(r(10,a=k.getDerivedFromVars(k.json.column_count)),x(),x=p(a,(t=>r(28,$=t)))),1&t.$$.dirty[0]&&(r(9,s=k.getDerivedFromVars(k.json.content_alignment_vertical)),_(),_=p(s,(t=>r(26,v=t)))),1&t.$$.dirty[0]&&(r(8,l=k.getDerivedFromVars(k.json.content_alignment_horizontal)),b(),b=p(l,(t=>r(25,m=t)))),268443648&t.$$.dirty[0]&&r(13,V=wn($,V)),4194305&t.$$.dirty[0]&&r(2,c=i.map(((t,e)=>k.produceChildContext(t,{path:e})))),5&t.$$.dirty[0]){let t=[];c.forEach((e=>{t.push(k.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),r(3,A=ee(t,(t=>[...t]))),w(),w=p(A,(t=>r(27,y=t)))}if(134471685&t.$$.dirty[0]){const t={};let e=0,n=0;r(14,F=[]),r(15,D=[]),r(16,S=[]),r(17,P=[]),r(19,O=!1),r(4,j=c.map(((o,i)=>{var a,s,l,c;const u=y[i],d=Number(u.columnSpan)||1,p=Number(u.rowSpan)||1,f={x:e,y:n,colSpan:d,rowSpan:p},h="match_parent"===(null===(a=u.width)||void 0===a?void 0:a.type)?Number(u.width.weight||1)/d:0,g="match_parent"===(null===(s=u.height)||void 0===s?void 0:s.type)?Number(u.height.weight||1)/p:0,m=1===d&&"fixed"===(null===(l=u.width)||void 0===l?void 0:l.type)&&u.width.value?Number(u.width.value)/d:0,v=1===p&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/p:0;for(let o=e;o<e+d;++o)for(let e=n;e<n+p;++e)t[o+"_"+e]?(r(19,O=!0),k.logError(oe(new Error("No space for item at index ".concat(i))))):(t[o+"_"+e]=!0,(!F[o]||F[o]<h)&&r(14,F[o]=h,F),(!D[e]||D[e]<g)&&r(15,D[e]=g,D),(!S[o]||S[o]<m)&&r(16,S[o]=m,S),(!P[e]||P[e]<v)&&r(17,P[e]=v,P));do{++e,e>=V&&(e=0,++n)}while(t[e+"_"+n]);return{componentContext:o,layoutParams:{gridArea:f}}}))),r(18,N=n)}68157440&t.$$.dirty[0]&&r(20,I=Dn(v,I)),52428800&t.$$.dirty[0]&&r(21,M=Fn(m,g,M)),3145728&t.$$.dirty[0]&&r(7,u={valign:I,halign:M}),516096&t.$$.dirty[0]&&r(6,d={"grid-template-columns":Ur(F,S,V),"grid-template-rows":Ur(D,P,N)}),524288&t.$$.dirty[0]&&r(5,h=O)},[k,C,c,A,j,h,d,u,l,s,a,E,function(t){r(0,k=Object.assign(Object.assign({},k),{json:Object.assign(Object.assign({},k.json),{items:t.filter(he)})}))},V,F,D,S,P,N,O,I,M,i,o,g,m,v,y,$]}const Yr={gallery:"divkit-cbb0f",gallery__scroller:"divkit-a4e39",gallery_scrollbar_none:"divkit-f49e7",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon-path":"divkit-b4173"},Zr={arrow:"divkit-bf36b",arrow__icon:"divkit-a67bf",arrow_left:"divkit-e2a31",arrow_right:"divkit-c684b"};function Qr(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 to(t,e){let n=t%e;return n<0&&(n+=e),n}const{Boolean:eo}=j;function no(t,e,n){const r=t.slice();return r[78]=e[n],r[79]=e,r[80]=n,r}function ro(t,e,n){const r=t.slice();return r[81]=e[n],r}function oo(t){let e,n;return e=new gs({props:{componentContext:t[81],layoutParams:t[6]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.componentContext=t[81]),64&n[0]&&(r.layoutParams=t[6]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function io(t){let e,n,r,o,i,a=t[80],s=zt(t[78]),l=[];for(let e=0;e<s.length;e+=1)l[e]=oo(ro(t,s,e));const c=t=>Ot(l[t],1,1,(()=>{l[t]=null})),u=()=>t[64](e,a),d=()=>t[64](null,a);return{c(){e=T("div");for(let t=0;t<l.length;t+=1)l[t].c();n=B(),W(e,"class",r=Yr.gallery__items),W(e,"style",o=se(t[14]))},m(t,r){O(t,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);S(e,n),u(),i=!0},p(r,p){if(t=r,65600&p[0]){let r;for(s=zt(t[78]),r=0;r<s.length;r+=1){const o=ro(t,s,r);l[r]?(l[r].p(o,p),Nt(l[r],1)):(l[r]=oo(o),l[r].c(),Nt(l[r],1),l[r].m(e,n))}for(St(),r=s.length;r<l.length;r+=1)c(r);Pt()}(!i||16384&p[0]&&o!==(o=se(t[14])))&&W(e,"style",o),a!==t[80]&&(d(),a=t[80],u())},i(t){if(!i){for(let t=0;t<s.length;t+=1)Nt(l[t]);i=!0}},o(t){l=l.filter(eo);for(let t=0;t<l.length;t+=1)Ot(l[t]);i=!1},d(t){t&&I(e),M(l,t),d()}}}function ao(t){let e,n,r=t[10]&&t[7]&&so(t),o=t[11]&&t[7]&&lo(t);return{c(){r&&r.c(),e=B(),o&&o.c(),n=L()},m(t,i){r&&r.m(t,i),O(t,e,i),o&&o.m(t,i),O(t,n,i)},p(t,i){t[10]&&t[7]?r?r.p(t,i):(r=so(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[11]&&t[7]?o?o.p(t,i):(o=lo(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){t&&(I(e),I(n)),r&&r.d(t),o&&o.d(t)}}}function so(t){let e,r,o,i,a=!t[29]&&function(t){let e,n,r,o;return{c(){e=z("svg"),n=z("path"),W(n,"class",r=Yr["gallery__arrow-icon-path"]),W(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),W(e,"class",o=Zr.arrow__icon),W(e,"xmlns","http://www.w3.org/2000/svg"),W(e,"width","32"),W(e,"height","32"),W(e,"viewBox","0 0 32 32"),W(e,"fill","none")},m(t,r){O(t,e,r),S(e,n)},d(t){t&&I(e)}}}();return{c(){e=T("div"),a&&a.c(),W(e,"class",r=t[29]||"".concat(Yr.gallery__arrow," ").concat(Zr.arrow," ").concat(Zr.arrow_left))},m(n,r){O(n,e,r),a&&a.m(e,null),o||(i=U(e,"click",t[67]),o=!0)},p:n,d(t){t&&I(e),a&&a.d(),o=!1,i()}}}function lo(t){let e,r,o,i,a=!t[30]&&function(t){let e,n,r,o;return{c(){e=z("svg"),n=z("path"),W(n,"class",r=Yr["gallery__arrow-icon-path"]),W(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),W(e,"class",o=Zr.arrow__icon),W(e,"xmlns","http://www.w3.org/2000/svg"),W(e,"width","32"),W(e,"height","32"),W(e,"viewBox","0 0 32 32"),W(e,"fill","none")},m(t,r){O(t,e,r),S(e,n)},d(t){t&&I(e)}}}();return{c(){e=T("div"),a&&a.c(),W(e,"class",r=t[30]||"".concat(Yr.gallery__arrow," ").concat(Zr.arrow," ").concat(Zr.arrow_right))},m(n,r){O(n,e,r),a&&a.m(e,null),o||(i=U(e,"click",t[68]),o=!0)},p:n,d(t){t&&I(e),a&&a.d(),o=!1,i()}}}function co(t){let e,n,r,o,i,a,s,c,u,d,p,f=zt(t[16]),h=[];for(let e=0;e<f.length;e+=1)h[e]=io(no(t,f,e));const g=t=>Ot(h[t],1,1,(()=>{h[t]=null}));let m="horizontal"===t[4]&&ao(t);return{c(){e=T("div"),n=T("div");for(let t=0;t<h.length;t+=1)h[t].c();s=B(),m&&m.c(),c=L(),W(n,"class",r=Yr["gallery__items-grid"]),W(n,"style",o=se(t[15])),W(e,"class",i=Yr.gallery__scroller+" "+(t[27]?ne["root_restrict-scroll"]:"")),W(e,"style",a=se(t[5]))},m(r,o){O(r,e,o),S(e,n);for(let t=0;t<h.length;t+=1)h[t]&&h[t].m(n,null);t[65](n),t[66](e),O(r,s,o),m&&m.m(r,o),O(r,c,o),u=!0,d||(p=U(e,"scroll",(function(){l(t[7]?t[33]:null)&&(t[7]?t[33]:null).apply(this,arguments)})),d=!0)},p(r,s){if(t=r,82496&s[0]){let e;for(f=zt(t[16]),e=0;e<f.length;e+=1){const r=no(t,f,e);h[e]?(h[e].p(r,s),Nt(h[e],1)):(h[e]=io(r),h[e].c(),Nt(h[e],1),h[e].m(n,null))}for(St(),e=f.length;e<h.length;e+=1)g(e);Pt()}(!u||32768&s[0]&&o!==(o=se(t[15])))&&W(n,"style",o),(!u||134217728&s[0]&&i!==(i=Yr.gallery__scroller+" "+(t[27]?ne["root_restrict-scroll"]:"")))&&W(e,"class",i),(!u||32&s[0]&&a!==(a=se(t[5])))&&W(e,"style",a),"horizontal"===t[4]?m?m.p(t,s):(m=ao(t),m.c(),m.m(c.parentNode,c)):m&&(m.d(1),m=null)},i(t){if(!u){for(let t=0;t<f.length;t+=1)Nt(h[t]);u=!0}},o(t){h=h.filter(eo);for(let t=0;t<h.length;t+=1)Ot(h[t]);u=!1},d(n){n&&(I(e),I(s),I(c)),M(h,n),t[65](null),t[66](null),m&&m.d(n),d=!1,p()}}}function uo(t){let e,n,r,o;return e=new bn({props:{cls:Ee("gallery",Yr,t[13]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,customActions:"gallery",parentOf:t[8],replaceItems:t[31],$$slots:{default:[co]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(i,a){Gt(e,i,a),n=!0,r||(o=U(window,"resize",(function(){l(t[7]?t[34]:null)&&(t[7]?t[34]:null).apply(this,arguments)})),r=!0)},p(n,r){t=n;const o={};8192&r[0]&&(o.cls=Ee("gallery",Yr,t[13])),1&r[0]&&(o.componentContext=t[0]),2&r[0]&&(o.layoutParams=t[1]),256&r[0]&&(o.parentOf=t[8]),134336252&r[0]|4194304&r[2]&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t),r=!1,o()}}}function po(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,M,T=n,z=n,R=n,B=n,L=n,U=n,W=n,H=n,q=n,J=n,G=n;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G()));let{componentContext:K}=e,{layoutParams:X}=e;const Y=pt(re),Z=Y.direction;let Q;f(t,Z,(t=>r(52,C=t)));let tt,et=[],nt=!1,rt=!1,ot=null,it=!1;const at=Y.getCustomization("galleryLeftClass"),st=Y.getCustomization("galleryRightClass");let ct,dt,ft,ht,mt,vt=1,yt="horizontal",$t="start",bt=8,_t="",wt=[],xt={},kt=!1,Ct={},Et=0;const At=Y.isDesktop;function jt(){if(!Q)return;let t=Q.scrollLeft;"rtl"===C&&(t*=-1);const e=Q.scrollWidth,n=Q.offsetWidth;"ltr"===C?(r(10,nt=t>2),r(11,rt=t+n<e-2)):(r(11,rt=t>2),r(10,nt=t+n<e-2))}f(t,At,(t=>r(63,I=t)));const Vt=Nn(jt,50);function Ft(t){Q.scroll({left:Q.scrollLeft+.75*Q.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function Dt(){let t=[],e=et[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<vt;++e){const r=et[e].children[n];r&&t.push(r)}return t}function St(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===yt?"left":"top";Q.scroll({[n]:t,behavior:e})}function Pt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===yt,o=r?"offsetLeft":"offsetTop",i=t[e];if(i){let t;if("ltr"!==C&&r){const e=Q.offsetWidth;t=i[o]+i.offsetWidth+.01-bt/2-e}else t=i[o]+.01-bt/2;St(t,n)}}function Nt(t){const e=Dt(),n=Q.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===yt?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"===yt?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 lt((()=>{r(37,it=!0),jt(),Et&&Pt(Dt(),Et,"auto")})),ut((()=>{r(37,it=!1),ct&&!K.fakeElement&&(Y.unregisterInstance(ct),r(38,ct=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,K=t.componentContext),"layoutParams"in t&&r(1,X=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(51,o=K.origJson),1048576&t.$$.dirty[1]&&o&&(r(39,vt=1),r(4,yt="horizontal"),r(40,$t="start"),r(42,bt=8),r(45,_t="")),1&t.$$.dirty[0]&&r(8,i=Array.isArray(K.json.items)&&K.json.items||[]),1&t.$$.dirty[0]&&(r(26,a=K.getDerivedFromVars(K.json.column_count)),J(),J=p(a,(t=>r(62,O=t)))),1&t.$$.dirty[0]&&(r(25,s=K.getDerivedFromVars(K.json.orientation)),q(),q=p(s,(t=>r(61,N=t)))),1&t.$$.dirty[0]&&(r(24,l=K.getDerivedFromVars(K.json.cross_content_alignment)),H(),H=p(l,(t=>r(60,P=t)))),1&t.$$.dirty[0]&&(r(23,c=K.getDerivedFromVars(K.json.item_spacing)),W(),W=p(c,(t=>r(59,S=t)))),1&t.$$.dirty[0]&&(r(22,u=K.getDerivedFromVars(K.json.cross_spacing)),U(),U=p(u,(t=>r(58,D=t)))),1&t.$$.dirty[0]&&(r(21,d=K.getDerivedFromVars(K.json.paddings)),L(),L=p(d,(t=>r(57,F=t)))),1&t.$$.dirty[0]&&(r(20,h=K.getDerivedFromVars(K.json.scroll_mode)),R(),R=p(h,(t=>r(55,j=t)))),1&t.$$.dirty[0]&&(r(19,g=K.getDerivedFromVars(K.json.restrict_parent_scroll)),G(),G=p(g,(t=>r(27,M=t)))),1&t.$$.dirty[0]&&(r(18,m=K.getDerivedFromVars(K.json.scrollbar)),z(),z=p(m,(t=>r(54,A=t)))),1&t.$$.dirty[0]&&(r(17,v=K.getDerivedFromVars(K.json.default_item)),T(),T=p(v,(t=>r(53,E=t)))),257&t.$$.dirty[0]&&r(50,y=i.map(((t,e)=>K.produceChildContext(t,{path:e})))),64&t.$$.dirty[1]|2&t.$$.dirty[2]&&r(7,$=I&&it),136&t.$$.dirty[0]|32&t.$$.dirty[1]&&($?"undefined"!=typeof ResizeObserver&&(r(36,ot=new ResizeObserver((()=>{Vt()}))),ot.observe(tt)):ot&&(ot.disconnect(),r(36,ot=null))),256&t.$$.dirty[1]|1&t.$$.dirty[2]&&r(39,vt=wn(O,vt)),524544&t.$$.dirty[1]&&r(16,b=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}(y,vt)),16&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&r(4,yt=xr(N,yt)),536871424&t.$$.dirty[1]&&r(40,$t=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(P,$t)),268437504&t.$$.dirty[1]&&(r(42,bt=we(S,bt)),r(41,dt=le(bt))),134227968&t.$$.dirty[1]&&(r(44,ht=we(D,bt)),r(43,ft=le(ht))),69222400&t.$$.dirty[1]&&r(45,_t=De(F,C,_t)),16&t.$$.dirty[0]&&r(49,_="horizontal"===yt?"grid-template-columns":"grid-template-rows"),17&t.$$.dirty[0]|524288&t.$$.dirty[1]){let t=[];y.forEach((e=>{const n="horizontal"===yt?"width":"height";t.push(K.getDerivedFromVars(e.json[n]))})),r(12,mt=ee(t,(t=>t))),B(),B=p(mt,(t=>r(56,V=t)))}if(16&t.$$.dirty[0]|33587456&t.$$.dirty[1]&&(r(46,wt=[]),vt>1?wt.push("auto"):V.forEach((t=>{!t&&"horizontal"===yt||"match_parent"===(null==t?void 0:t.type)?wt.push("100%"):wt.push("max-content")}))),112&t.$$.dirty[0]|16780032&t.$$.dirty[1]){const t={};let e={};r(47,kt=!1),"horizontal"===yt?e.parentVAlign=$t:e.parentHAlign=$t,"paging"===j&&(r(47,kt=!0),e.scrollSnap="start",t["horizontal"===yt?"scroll-padding-left":"scroll-padding-top"]=le(bt/2)),1===vt&&(e.parentLayoutOrientation=yt),r(5,xt=Ne(t,xt)),r(6,Ct=Ne(e,Ct))}20480&t.$$.dirty[1]&&r(15,w={padding:_t,"grid-gap":ft}),295936&t.$$.dirty[1]&&r(14,x={"grid-gap":dt,[_]:Qr(wt)}),16&t.$$.dirty[0]|8454144&t.$$.dirty[1]&&r(13,k={orientation:yt,"scroll-snap":kt,scrollbar:"auto"===A?"auto":"none"}),4325376&t.$$.dirty[1]&&r(48,Et=we(E,Et)),1&t.$$.dirty[0]&&K.json&&Vt(),21&t.$$.dirty[0]|2097280&t.$$.dirty[1]&&K.json&&(ct&&(Y.unregisterInstance(ct),r(38,ct=void 0)),K.json.id&&!K.fakeElement&&(r(38,ct=K.json.id),Y.registerInstance(ct,{setCurrentItem(t){const e=Dt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');Pt(e,t)},setPreviousItem(t,e){const n=Nt("prev"),r=Dt();let o=n-t;o<0&&(o="ring"===e?to(o,r.length):0),Pt(r,o)},setNextItem(t,e){const n="horizontal"===yt,r="ltr"!==C&&n?-1:1,o=n?Q.scrollLeft*r+Q.offsetWidth===Q.scrollWidth:Q.scrollTop+Q.offsetHeight===Q.scrollHeight,i=Dt();if(o&&"ring"===e)return void Pt(i,0);let a=Nt("next")+t;a>i.length-1&&(a="ring"===e?to(a,i.length):i.length-1),Pt(i,a)},scrollToStart(){St(0)},scrollToEnd(){St("ltr"===C||"horizontal"!==yt?1e6:-1e6)},scrollBackward(t,e){const n="horizontal"===yt,r="ltr"!==C&&n?-1:1,o=n?Q.scrollLeft:Q.scrollTop,i=n?Q.scrollWidth-Q.offsetWidth:Q.scrollHeight-Q.offsetHeight;let a=o*r-t;a<0&&("clamp"===e?a=0:"ring"===e&&(a=to(a,i))),St(a*r)},scrollForward(t,e){const n="horizontal"===yt,r="ltr"!==C&&n?-1:1,o=n?Q.scrollLeft:Q.scrollTop,i=n?Q.scrollWidth-Q.offsetWidth:Q.scrollHeight-Q.offsetHeight;let a=o*r+t;a>i&&("clamp"===e?a=i:"ring"===e&&(a=to(a,i))),St(a*r)},scrollToPosition(t){St("ltr"===C||"horizontal"!==yt?t:-t)}})))},[K,X,Q,tt,yt,xt,Ct,$,i,et,nt,rt,mt,k,x,w,b,v,m,g,h,d,u,c,l,s,a,M,Z,at,st,function(t){r(0,K=Object.assign(Object.assign({},K),{json:Object.assign(Object.assign({},K.json),{items:t.filter(he)})}))},At,jt,Vt,Ft,ot,it,ct,vt,$t,dt,bt,ft,ht,_t,wt,kt,Et,_,y,o,C,E,A,j,V,F,D,S,P,N,O,I,function(t,e){gt[t?"unshift":"push"]((()=>{et[e]=t,r(9,et)}))},function(t){gt[t?"unshift":"push"]((()=>{tt=t,r(3,tt)}))},function(t){gt[t?"unshift":"push"]((()=>{Q=t,r(2,Q)}))},()=>Ft("left"),()=>Ft("right")]}const fo={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_height-parent_yes":"divkit-ae594",tabs__separator:"divkit-b85bf"},{Boolean:ho}=j;function go(t,e,n){const r=t.slice();r[93]=e[n];const o=r[93].index;r[94]=o;const i=r[29][r[94]];return r[95]=i,r}function mo(t,e,n){const r=t.slice();r[93]=e[n];const o=r[93].index;r[94]=o;const i=r[94]===r[15];return r[98]=i,r}function vo(t){let e,n;return e=new bn({props:{cls:Ee("tabs",fo,t[22]),componentContext:t[0],layoutParams:t[1],customActions:"tabs",parentOf:t[42],parentOfSimpleMode:!0,replaceItems:t[47],$$slots:{default:[xo]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};4194304&n[0]&&(r.cls=Ee("tabs",fo,t[22])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),2048&n[1]&&(r.parentOf=t[42]),2143289337&n[0]|4099&n[1]|256&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function yo(t){let e,n=t[93].title+"";return{c(){e=R(n)},m(t,n){O(t,e,n)},p(t,r){65536&r[0]&&n!==(n=t[93].title+"")&&K(e,n)},d(t){t&&I(e)}}}function $o(t){let e,n;function r(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[69](t[94],...n)}return e=new Xe({props:{componentContext:t[0],cls:Ee("tabs__item",fo,{selected:t[98],actionable:Boolean(t[93].title_click_action)}),actions:t[93].title_click_action&&!t[0].fakeElement?[t[93].title_click_action].filter(Re):[],attrs:{id:"".concat(t[45],"-tab-").concat(t[94]),"aria-controls":"".concat(t[45],"-panel-").concat(t[94]),role:"tab",tabindex:t[98]&&!t[0].fakeElement?t[93].title_click_action?void 0:"0":"-1","aria-selected":t[98]?"true":"false"},customAction:t[0].fakeElement?null:r,$$slots:{default:[yo]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(n,o){t=n;const i={};1&o[0]&&(i.componentContext=t[0]),98304&o[0]&&(i.cls=Ee("tabs__item",fo,{selected:t[98],actionable:Boolean(t[93].title_click_action)})),65537&o[0]&&(i.actions=t[93].title_click_action&&!t[0].fakeElement?[t[93].title_click_action].filter(Re):[]),98305&o[0]&&(i.attrs={id:"".concat(t[45],"-tab-").concat(t[94]),"aria-controls":"".concat(t[45],"-panel-").concat(t[94]),role:"tab",tabindex:t[98]&&!t[0].fakeElement?t[93].title_click_action?void 0:"0":"-1","aria-selected":t[98]?"true":"false"}),65537&o[0]&&(i.customAction=t[0].fakeElement?null:r),65536&o[0]|256&o[3]&&(i.$$scope={dirty:o,ctx:t}),e.$set(i)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function bo(t){let e,n,r;return{c(){e=T("div"),W(e,"class",n=fo.tabs__separator),W(e,"style",r=se(t[32]))},m(t,n){O(t,e,n)},p(t,n){2&n[1]&&r!==(r=se(t[32]))&&W(e,"style",r)},d(t){t&&I(e)}}}function _o(t){let e,n;return e=new gs({props:{componentContext:t[95],layoutParams:t[3]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};536936448&n[0]&&(r.componentContext=t[95]),8&n[0]&&(r.layoutParams=t[3]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function wo(t){let e,n,r,o,i,a,s=t[95]&&_o(t);return{c(){e=T("div"),s&&s.c(),n=B(),W(e,"class",r=Ee("tabs__panel",fo,{visible:t[30][t[94]]})),W(e,"role","tabpanel"),W(e,"id",o=t[45]+"-panel-"+t[94]),W(e,"aria-labelledby",i=t[45]+"-tab-"+t[94]),Y(e,"left",100*t[94]+"%")},m(t,r){O(t,e,r),s&&s.m(e,null),S(e,n),a=!0},p(t,l){t[95]?s?(s.p(t,l),536936448&l[0]&&Nt(s,1)):(s=_o(t),s.c(),Nt(s,1),s.m(e,n)):s&&(St(),Ot(s,1,1,(()=>{s=null})),Pt()),(!a||1073807360&l[0]&&r!==(r=Ee("tabs__panel",fo,{visible:t[30][t[94]]})))&&W(e,"class",r),(!a||65536&l[0]&&o!==(o=t[45]+"-panel-"+t[94]))&&W(e,"id",o),(!a||65536&l[0]&&i!==(i=t[45]+"-tab-"+t[94]))&&W(e,"aria-labelledby",i),(!a||65536&l[0])&&Y(e,"left",100*t[94]+"%")},i(t){a||(Nt(s),a=!0)},o(t){Ot(s),a=!1},d(t){t&&I(e),s&&s.d()}}}function xo(t){let e,n,r,o,i,a,c,u,d,p,f,h=zt(t[16]),g=[];for(let e=0;e<h.length;e+=1)g[e]=$o(mo(t,h,e));const m=t=>Ot(g[t],1,1,(()=>{g[t]=null}));let v=t[18]&&bo(t),y=zt(t[16]),$=[];for(let e=0;e<y.length;e+=1)$[e]=wo(go(t,y,e));const b=t=>Ot($[t],1,1,(()=>{$[t]=null}));return{c(){e=T("div");for(let t=0;t<g.length;t+=1)g[t].c();r=B(),v&&v.c(),o=B(),i=T("div"),a=T("div");for(let t=0;t<$.length;t+=1)$[t].c();W(e,"class",n=fo.tabs__list+" "+(t[43]?ne["root_restrict-scroll"]:"")),W(e,"role","tablist"),Y(e,"--divkit-tabs-title-padding",t[14]?je(t[14],t[17]):""),Y(e,"--divkit-tabs-font-size",le(t[4])),Y(e,"--divkit-tabs-paddings",t[5]),Y(e,"--divkit-tabs-line-height",t[23]),Y(e,"--divkit-tabs-letter-spacing",t[24]),Y(e,"--divkit-tabs-active-font-weight",t[7]||""),Y(e,"--divkit-tabs-inactive-font-weight",t[8]||""),Y(e,"--divkit-tabs-active-font-family",t[25]||""),Y(e,"--divkit-tabs-inactive-font-family",t[26]||""),Y(e,"--divkit-tabs-active-text-color",t[9]),Y(e,"--divkit-tabs-inactive-text-color",t[10]),Y(e,"--divkit-tabs-active-background-color",t[11]),Y(e,"--divkit-tabs-inactive-background-color",t[12]),Y(e,"--divkit-tabs-border-radius",t[6]),Y(e,"--divkit-tabs-items-spacing",t[13]?ce(10*t[13]/t[4]):""),W(a,"class",c=Ee("tabs__swiper",fo,{inited:t[27],animated:t[28]})),W(i,"class",u=fo.tabs__panels+" "+(t[43]?ne["root_restrict-scroll"]:""))},m(n,s){O(n,e,s);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(e,null);t[70](e),O(n,r,s),v&&v.m(n,s),O(n,o,s),O(n,i,s),S(i,a);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(a,null);t[71](a),t[72](i),d=!0,p||(f=[U(e,"keydown",t[49]),U(i,"touchstart",(function(){l(t[31]?t[50]:void 0)&&(t[31]?t[50]:void 0).apply(this,arguments)})),U(i,"touchmove",(function(){l(t[31]?t[51]:void 0)&&(t[31]?t[51]:void 0).apply(this,arguments)})),U(i,"touchend",(function(){l(t[31]?t[52]:void 0)&&(t[31]?t[52]:void 0).apply(this,arguments)})),U(i,"touchcancel",(function(){l(t[31]?t[52]:void 0)&&(t[31]?t[52]:void 0).apply(this,arguments)}))],p=!0)},p(r,s){if(t=r,98305&s[0]|147456&s[1]){let n;for(h=zt(t[16]),n=0;n<h.length;n+=1){const r=mo(t,h,n);g[n]?(g[n].p(r,s),Nt(g[n],1)):(g[n]=$o(r),g[n].c(),Nt(g[n],1),g[n].m(e,null))}for(St(),n=h.length;n<g.length;n+=1)m(n);Pt()}if((!d||4096&s[1]&&n!==(n=fo.tabs__list+" "+(t[43]?ne["root_restrict-scroll"]:"")))&&W(e,"class",n),147456&s[0]&&Y(e,"--divkit-tabs-title-padding",t[14]?je(t[14],t[17]):""),16&s[0]&&Y(e,"--divkit-tabs-font-size",le(t[4])),32&s[0]&&Y(e,"--divkit-tabs-paddings",t[5]),8388608&s[0]&&Y(e,"--divkit-tabs-line-height",t[23]),16777216&s[0]&&Y(e,"--divkit-tabs-letter-spacing",t[24]),128&s[0]&&Y(e,"--divkit-tabs-active-font-weight",t[7]||""),256&s[0]&&Y(e,"--divkit-tabs-inactive-font-weight",t[8]||""),33554432&s[0]&&Y(e,"--divkit-tabs-active-font-family",t[25]||""),67108864&s[0]&&Y(e,"--divkit-tabs-inactive-font-family",t[26]||""),512&s[0]&&Y(e,"--divkit-tabs-active-text-color",t[9]),1024&s[0]&&Y(e,"--divkit-tabs-inactive-text-color",t[10]),2048&s[0]&&Y(e,"--divkit-tabs-active-background-color",t[11]),4096&s[0]&&Y(e,"--divkit-tabs-inactive-background-color",t[12]),64&s[0]&&Y(e,"--divkit-tabs-border-radius",t[6]),8208&s[0]&&Y(e,"--divkit-tabs-items-spacing",t[13]?ce(10*t[13]/t[4]):""),t[18]?v?v.p(t,s):(v=bo(t),v.c(),v.m(o.parentNode,o)):v&&(v.d(1),v=null),1610678280&s[0]|16384&s[1]){let e;for(y=zt(t[16]),e=0;e<y.length;e+=1){const n=go(t,y,e);$[e]?($[e].p(n,s),Nt($[e],1)):($[e]=wo(n),$[e].c(),Nt($[e],1),$[e].m(a,null))}for(St(),e=y.length;e<$.length;e+=1)b(e);Pt()}(!d||402653184&s[0]&&c!==(c=Ee("tabs__swiper",fo,{inited:t[27],animated:t[28]})))&&W(a,"class",c),(!d||4096&s[1]&&u!==(u=fo.tabs__panels+" "+(t[43]?ne["root_restrict-scroll"]:"")))&&W(i,"class",u)},i(t){if(!d){for(let t=0;t<h.length;t+=1)Nt(g[t]);for(let t=0;t<y.length;t+=1)Nt($[t]);d=!0}},o(t){g=g.filter(ho);for(let t=0;t<g.length;t+=1)Ot(g[t]);$=$.filter(ho);for(let t=0;t<$.length;t+=1)Ot($[t]);d=!1},d(n){n&&(I(e),I(r),I(o),I(i)),M(g,n),t[70](null),v&&v.d(n),M($,n),t[71](null),t[72](null),p=!1,s(f)}}}function ko(t){let e,n,r=!t[2]&&vo(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[2]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),4&n[0]&&Nt(r,1)):(r=vo(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}function Co(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N=n,O=n,I=n,M=n,T=n,z=n,R=n,B=n,L=n;var U,W;t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L()));let{componentContext:H}=e,{layoutParams:q}=e;const J=pt(re),G=J.direction;f(t,G,(t=>r(17,A=t)));const K=J.genId("tabs");let X,Y=!1,Z=te([]);f(t,Z,(t=>r(16,k=t)));let Q,tt,et,nt,rt,ot,it,at,st,lt={},ct={},dt=12,ft="",ht="",mt="",vt="",yt="",$t="",bt="",wt="",xt="",kt="",Ct=0,Et="",At="",jt=null,Vt=!1,Ft=!1,Dt=[],St=[],Pt=null,Nt=null,Ot=null,It=!1,Mt=!1;async function Tt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ot=$,r(15,$=t),Wt(),r(28,Ft=!0),Bt(100*-$),Lt(),async function(){if("match_parent"===(null==x?void 0:x.type))return;await _t();const t=document.getElementById("".concat(K,"-panel-").concat($));t&&r(20,tt.style.height=le(t.offsetHeight),tt)}(),Ut(),st=-$*tt.clientWidth,e){await _t();const t=Q.querySelector(".".concat(fo.tabs__item_selected));t&&t.focus()}}function zt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==k?void 0:k.length;if(!n)return;const r=k.map((t=>t.index));let o=r.indexOf($)+t;o>=n?o=0:o<0&&(o=n-1),Tt(r[o],e)}function Rt(t,e){return $===e||(Tt(e),!1)}async function Bt(t){await _t(),r(21,et.style.transform="translate3d(".concat(t,"%,0,0)"),et)}function Lt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,$-1):Math.min($,null!=ot?ot:$),n=t?Math.min(i.length-1,$+1):Math.max($,null!=ot?ot:$);r(29,Dt=Dt.map(((t,r)=>{var o;return t||(r>=e&&r<=n&&(null===(o=i[r])||void 0===o?void 0:o.div)?H.produceChildContext(i[r].div,{path:r}):void 0)}))),r(30,St=St.map(((t,r)=>r>=e&&r<=n)))}function Ut(){Pt&&clearTimeout(Pt),Pt=window.setTimeout((()=>{r(30,St=i.map(((t,e)=>e===$)))}),400)}function Wt(){Vt||(r(27,Vt=!0),r(20,tt.style.height=le(tt.clientHeight),tt),r(21,et.style.transform="translate3d(".concat(100*-(null!=ot?ot:$),"%,0,0)"),et))}return ut((()=>{X&&(J.unregisterInstance(X),r(55,X=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,H=t.componentContext),"layoutParams"in t&&r(1,q=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(61,o=H.origJson),1073741824&t.$$.dirty[1]&&o&&(r(4,dt=12),r(5,ft=""),r(6,vt=""),r(7,nt=void 0),r(25,yt=""),r(8,rt=void 0),r(26,$t=""),r(9,bt=""),r(10,wt=""),r(11,xt=""),r(12,kt=""),r(13,Ct=0),r(56,Et=""),r(57,At=""),r(14,jt=null)),1&t.$$.dirty[0]&&r(58,i=Array.isArray(H.json.items)&&H.json.items||[]),134217728&t.$$.dirty[1]&&r(42,a=i.map((t=>t.div))),1&t.$$.dirty[0]&&(r(41,s=H.getDerivedFromVars(H.json.width)),B(),B=p(s,(t=>r(68,S=t)))),1&t.$$.dirty[0]&&(r(40,l=H.getDerivedFromVars(H.json.height)),N(),N=p(l,(t=>r(62,x=t)))),1&t.$$.dirty[0]&&r(60,c=H.getJsonWithVars(H.json.selected_tab)),1&t.$$.dirty[0]&&(r(39,u=H.getDerivedFromVars(H.json.tab_title_style)),R(),R=p(u,(t=>r(67,D=t)))),1&t.$$.dirty[0]&&(r(38,d=H.getDerivedFromVars(H.json.has_separator)),z(),z=p(d,(t=>r(18,F=t)))),1&t.$$.dirty[0]&&(r(37,h=H.getDerivedFromVars(H.json.separator_color)),T(),T=p(h,(t=>r(66,V=t)))),1&t.$$.dirty[0]&&(r(36,g=H.getDerivedFromVars(H.json.separator_paddings)),M(),M=p(g,(t=>r(65,j=t)))),1&t.$$.dirty[0]&&(r(35,m=H.getDerivedFromVars(H.json.switch_tabs_by_content_swipe_enabled)),I(),I=p(m,(t=>r(64,E=t)))),1&t.$$.dirty[0]&&(r(34,v=H.getDerivedFromVars(H.json.restrict_parent_scroll)),L(),L=p(v,(t=>r(43,P=t)))),1&t.$$.dirty[0]&&(r(33,y=H.getDerivedFromVars(H.json.title_paddings)),O(),O=p(y,(t=>r(63,C=t)))),536870912&t.$$.dirty[1]&&r(15,$=c&&Number(c)||0),1&t.$$.dirty[0]|134217728&t.$$.dirty[1])if(Array.isArray(i)&&i.length){let t=[];i.forEach(((e,n)=>{const r=H.getJsonWithVars({index:n,title:e.title,title_click_action:e.title_click_action});r.title&&"string"==typeof r.title?t.push(r):H.logError(oe(new Error("Incorrect title for the tab"),{additional:{index:n}}))})),Z.set(t)}else Z.set([]);if(65537&t.$$.dirty[0]&&((null==k?void 0:k.length)?r(2,Y=!1):(r(2,Y=!0),H.logError(oe(new Error('Incorrect or empty "items" prop for div "tabs"'))))),8&t.$$.dirty[0]|65&t.$$.dirty[2]){let t={parentContainerOrientation:"horizontal"};"wrap_content"===(null==S?void 0:S.type)&&(t.parentHorizontalWrapContent=!0),x&&"wrap_content"!==x.type||(t.parentVerticalWrapContent=!0),r(3,lt=Ne(t,lt))}if(32773&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&!Y&&($<0||$>=i.length)&&(H.logError(oe(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:H.json.selected_tab,length:i.length}})),r(15,$=$<0?0:i.length-1)),98309&t.$$.dirty[0]|4194304&t.$$.dirty[1]&&(Y||k.some((t=>$===t.index))||(H.logError(oe(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:H.json.selected_tab}})),r(15,$=(null===r(53,U=k[0])||void 0===U?void 0:U.index)||0))),32&t.$$.dirty[2]&&r(59,b=D||{}),16&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(4,dt=wn(b.font_size,dt)),131120&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(b.font_size||b.paddings)){const t=b.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/dt*10,right:(Number("ltr"===A?t.end:t.start)||Number(t.right)||0)/dt*10,bottom:(Number(t.bottom)||0)/dt*10,left:(Number("ltr"===A?t.start:t.end)||Number(t.left)||0)/dt*10};r(5,ft=De(e,A,ft))}if(16&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=b.line_height;void 0!==t&&Ze(t)&&r(23,ht=le(t/dt*10))}if(16&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=b.letter_spacing;void 0!==t&&Fe(t)&&r(24,mt=le(t/dt*10))}if(80&t.$$.dirty[0]|276824064&t.$$.dirty[1]&&(b.corner_radius||b.corners_radius||b.font_size)){const t=null!==r(54,W=b.corner_radius)&&void 0!==W?W:1e3;b.corners_radius?r(6,vt=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]&&!Fe(o[t]))return r;return ze(t,e,n)}(b.corners_radius,t,dt,vt)):Fe(t)&&r(6,vt=le(t/dt*10))}128&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(7,nt=kn(b.active_font_weight||b.font_weight,nt)),b.font_family&&"string"==typeof b.font_family?r(25,yt=J.typefaceProvider(b.font_family,{fontWeight:nt||400})):r(25,yt="")),256&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(8,rt=kn(b.inactive_font_weight||b.font_weight,rt)),b.font_family&&"string"==typeof b.font_family?r(26,$t=J.typefaceProvider(b.font_family,{fontWeight:rt||400})):r(26,$t="")),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(9,bt=de(b.active_text_color,1,bt)),1024&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(10,wt=de(b.inactive_text_color,1,wt)),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(11,xt=de(b.active_background_color,1,xt)),4096&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(12,kt=de(b.inactive_background_color,1,kt)),8192&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(13,Ct=we(b.item_spacing,Ct)),393216&t.$$.dirty[0]|100663296&t.$$.dirty[1]|24&t.$$.dirty[2]&&F&&(V&&r(56,Et=de(V,1,Et)),j&&r(57,At=De(j,A,At))),100663296&t.$$.dirty[1]&&r(32,_={background:Et,margin:At}),4&t.$$.dirty[2]&&r(31,w=void 0===E||Boolean(E)),16384&t.$$.dirty[0]|2&t.$$.dirty[2]&&r(14,jt=Te(C||void 0,jt)),134217728&t.$$.dirty[1]&&function(t){Y||(r(29,Dt=t.map(((t,e)=>{if(e===$&&(null==t?void 0:t.div))return H.produceChildContext(t.div,{path:e})}))),r(30,St=t.map(((t,e)=>e===$))))}(i),32773&t.$$.dirty[0]|150994944&t.$$.dirty[1]&&H.json&&(X&&(J.unregisterInstance(X),r(55,X=void 0)),!H.json.id||Y||H.fakeElement||(r(55,X=H.json.id),J.registerInstance(X,{setCurrentItem(t){if(t<0||t>i.length-1)throw new Error('Item is out of range in "set-current-item" action');Tt(t)},setPreviousItem(t,e){let n=$-t;n<0&&(n="ring"===e?to(n,i.length):0),Tt(n)},setNextItem(t,e){let n=$+t;n>i.length-1&&(n="ring"===e?to(n,i.length):i.length-1),Tt(n)},scrollToStart(){Tt(0)},scrollToEnd(){Tt(i.length-1)}}))),1&t.$$.dirty[2]&&r(22,ct={"height-parent":"match_parent"===(null==x?void 0:x.type)?"yes":""})},[H,q,Y,lt,dt,ft,vt,nt,rt,bt,wt,xt,kt,Ct,jt,$,k,A,F,Q,tt,et,ct,ht,mt,yt,$t,Vt,Ft,Dt,St,w,_,y,v,m,g,h,d,u,l,s,a,P,G,K,Z,function(t){H.json.items&&r(0,H=Object.assign(Object.assign({},H),{json:Object.assign(Object.assign({},H.json),{items:H.json.items.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})))})}))},Rt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&i){if(37===t.which)zt(-1,!0);else if(39===t.which)zt(1,!0);else if(36===t.which)Tt(0,!0);else{if(35!==t.which)return;Tt(i.length-1,!0)}t.preventDefault()}},function(t){var e;const n=t.target,o=null===(e=null==n?void 0:n.closest)||void 0===e?void 0:e.call(n,".".concat(ne["root_restrict-scroll"]));i.length<2||t.touches.length>1||o&&o!==tt||(It=!1,Mt=!1,Nt=He(t),Ot=null,it=Date.now(),at=st||-$*tt.clientWidth,r(28,Ft=!1),Pt&&clearTimeout(Pt))},function(t){const e=He(t);if(!Nt||Ot&&Ot.x===e.x&&Ot.y===e.y)return;Ot=e;const n=tt.clientWidth;if(It){st=e.x-Nt.x+at;const t=n*i.length;if(st>0)st=st*n/(st+3*n);else if(-st+n>t){let e=-st+n-t;e=e*n/(e+3*n),st=n-t-e}Bt(100*st/n)}else Math.abs(e.y-Nt.y)>10?Mt=!0:!Mt&&Math.abs(e.x-Nt.x)>8&&(Wt(),It=!0,Nt=e,Bt(100*-$),Lt(!0));It&&t.cancelable&&t.preventDefault()},function(){Mt=!1,Nt=null;let t=$;if(!It)return;It=!1;const e=Math.min(512,tt.clientWidth);Math.abs(at-st)>e/4*Math.min(1,(Date.now()-it)/750)&&(t+=at>st?1:-1),t>=i.length?t=i.length-1:t<0&&(t=0),t===$?(r(28,Ft=!0),st=-t*e,Bt(100*-t),Ut()):Tt(t)},U,W,X,Et,At,i,b,c,o,x,C,E,j,V,D,S,(t,e)=>Rt(0,t),function(t){gt[t?"unshift":"push"]((()=>{Q=t,r(19,Q)}))},function(t){gt[t?"unshift":"push"]((()=>{et=t,r(21,et)}))},function(t){gt[t?"unshift":"push"]((()=>{tt=t,r(20,tt)}))}]}const Eo={state:"divkit-b8efc",state__animations:"divkit-adaae","state__animation-child":"divkit-eb860","state__animation-child-inner":"divkit-e08c6"};function Ao(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function jo(t){return t*t*t}function Vo(t){const e=t-1;return e*e*e+1}function Fo(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 Do=Fo([.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]),So=Fo([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]),Po={linear:r,ease:Do,ease_in:jo,ease_out:Vo,ease_in_out:Ao,spring:So},No=200,Oo=0,Io=0,Mo=0;function To(t){return Math.max(...t.map((t=>(Number(t.duration)||No)+(Number(t.start_delay)||Oo))))}function zo(t,e){let{transitions:n,elementBbox:r,rootBbox:o,direction:i,maxDuration:a,alpha:s}=e;const l=null!=s?s:1;return{duration:Le()?0:a,css:t=>{const e=t*a,s=n.map((t=>{const n=Number(t.start_delay)||Oo,a=Number(t.duration)||No,s=Math.max(0,Math.min(1,(e-n)/a)),c="in"===i?1-s:s,u=(Po[t.interpolator||"ease_in_out"]||Ao)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*l+u*(t.alpha||Io)};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 p,f;const e=1-u+u*(t.scale||Mo),n=null!==(p=t.pivot_x)&&void 0!==p?p:.5,o=null!==(f=t.pivot_y)&&void 0!==f?f:.5,i=(1-e)*r.width*n,a=(1-e)*r.height*o;return{active:u>0&&u<1,scale:"translate(".concat(i,"px, ").concat(a,"px) scale(").concat(e,")")}}return{}})),c=s.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),u=s.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),d=s.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),p=s.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),f=[u,p.length?p[p.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(f||"none",";opacity:").concat(c)}}}function Ro(t,e,n){return t*(1-n)+e*n}const Bo={linear:r,ease:Do,ease_in:jo,ease_out:Vo,ease_in_out:Ao,spring:So},Lo=200,Uo=0;function Wo(t,e){var n,r;let{rootBbox:o,beforeBbox:i,afterBbox:a,transition:s}=e;return{delay:null!==(n=s.start_delay)&&void 0!==n?n:Uo,duration:Le()?0:null!==(r=s.duration)&&void 0!==r?r:Lo,easing:s.interpolator&&s.interpolator in Bo?Bo[s.interpolator]:Ao,css:t=>["top:".concat(Ro(i.top,a.top,t)-o.top,"px"),"left:".concat(Ro(i.left,a.left,t)-o.left,"px"),"width:".concat(Ro(i.width,a.width,t),"px"),"height:".concat(Ro(i.height,a.height,t),"px")].join(";")}}function Ho(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...Ho(t))})):e.push(t),e}const{Map:qo}=j;function Jo(t,e,n){const r=t.slice();return r[35]=e[n],r}function Go(t){let e,n;return e=new bn({props:{cls:Eo.state,componentContext:t[0],layoutParams:t[1],parentOf:t[7],parentOfSimpleMode:!0,replaceItems:t[8],$$slots:{default:[ti]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),128&n[0]&&(r.parentOf=t[7]),120&n[0]|128&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Ko(t){let e,r,o=t[5],i=Xo(t);return{c(){i.c(),e=L()},m(t,n){i.m(t,n),O(t,e,n),r=!0},p(t,r){32&r[0]&&d(o,o=t[5])?(St(),Ot(i,1,1,n),Pt(),i=Xo(t),i.c(),Nt(i,1),i.m(e.parentNode,e)):i.p(t,r)},i(t){r||(Nt(i),r=!0)},o(t){Ot(i),r=!1},d(t){t&&I(e),i.d(t)}}}function Xo(t){let e,n;return e=new gs({props:{componentContext:t[6]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.componentContext=t[6]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Yo(t){let e,n,r,o,i,a,s,l,c,u;function d(){return t[17](t[35])}return r=new gs({props:{componentContext:t[35].componentContextCopy}}),{c(){e=T("div"),n=T("div"),Jt(r.$$.fragment),i=B(),W(n,"class",o=Eo["state__animation-child-inner"]),W(e,"class",a=Eo["state__animation-child"])},m(t,o){O(t,e,o),S(e,n),Gt(r,n,null),S(e,i),l=!0,c||(u=U(e,"introend",d),c=!0)},p(e,n){t=e;const o={};16&n[0]&&(o.componentContext=t[35].componentContextCopy),r.$set(o)},i(n){l||(Nt(r.$$.fragment,n),s||wt((()=>{s=Mt(e,Wo,t[35]),s.start()})),l=!0)},o(t){Ot(r.$$.fragment,t),l=!1},d(t){t&&I(e),Kt(r),c=!1,u()}}}function Zo(t){let e,n,r,o,i,a,s,l,c,u,d="".concat(t[35].offsetLeft,"px"),p="".concat(t[35].offsetTop,"px"),f="".concat(t[35].width,"px"),h="".concat(t[35].height,"px");function g(){return t[16](t[35])}return r=new gs({props:{componentContext:t[35].componentContextCopy}}),{c(){e=T("div"),n=T("div"),Jt(r.$$.fragment),i=B(),W(n,"class",o=Eo["state__animation-child-inner"]),W(e,"class",a=Eo["state__animation-child"]),Y(e,"left",d),Y(e,"top",p),Y(e,"width",f),Y(e,"height",h)},m(t,o){O(t,e,o),S(e,n),Gt(r,n,null),S(e,i),l=!0,c||(u=U(e,"introend",g),c=!0)},p(n,o){t=n;const i={};16&o[0]&&(i.componentContext=t[35].componentContextCopy),r.$set(i),16&o[0]&&d!==(d="".concat(t[35].offsetLeft,"px"))&&Y(e,"left",d),16&o[0]&&p!==(p="".concat(t[35].offsetTop,"px"))&&Y(e,"top",p),16&o[0]&&f!==(f="".concat(t[35].width,"px"))&&Y(e,"width",f),16&o[0]&&h!==(h="".concat(t[35].height,"px"))&&Y(e,"height",h)},i(n){l||(Nt(r.$$.fragment,n),s||wt((()=>{s=Mt(e,zo,t[35]),s.start()})),l=!0)},o(t){Ot(r.$$.fragment,t),l=!1},d(t){t&&I(e),Kt(r),c=!1,u()}}}function Qo(t,e){let n,r,o,i,a;const s=[Zo,Yo],l=[];function c(t,e){return"direction"in t[35]?0:1}return r=c(e),o=l[r]=s[r](e),{key:t,first:null,c(){n=L(),o.c(),i=L(),this.first=n},m(t,e){O(t,n,e),l[r].m(t,e),O(t,i,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?l[r].p(e,n):(St(),Ot(l[a],1,1,(()=>{l[a]=null})),Pt(),o=l[r],o?o.p(e,n):(o=l[r]=s[r](e),o.c()),Nt(o,1),o.m(i.parentNode,i))},i(t){a||(Nt(o),a=!0)},o(t){Ot(o),a=!1},d(t){t&&(I(n),I(i)),l[r].d(t)}}}function ti(t){let e,n,r,o,i=[],a=new qo,s=t[6]&&Ko(t),l=zt(t[4]);const c=t=>t[35];for(let e=0;e<l.length;e+=1){let n=Jo(t,l,e),r=c(n);a.set(r,i[e]=Qo(r,n))}return{c(){s&&s.c(),e=B(),n=T("div");for(let t=0;t<i.length;t+=1)i[t].c();W(n,"class",r=Eo.state__animations),W(n,"aria-hidden","true")},m(r,a){s&&s.m(r,a),O(r,e,a),O(r,n,a);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(n,null);t[18](n),o=!0},p(t,r){t[6]?s?(s.p(t,r),64&r[0]&&Nt(s,1)):(s=Ko(t),s.c(),Nt(s,1),s.m(e.parentNode,e)):s&&(St(),Ot(s,1,1,(()=>{s=null})),Pt()),528&r[0]&&(l=zt(t[4]),St(),i=Bt(i,r,c,1,t,l,a,n,Rt,Qo,null,Jo),Pt())},i(t){if(!o){Nt(s);for(let t=0;t<l.length;t+=1)Nt(i[t]);o=!0}},o(t){Ot(s);for(let t=0;t<i.length;t+=1)Ot(i[t]);o=!1},d(r){r&&(I(e),I(n)),s&&s.d(r);for(let t=0;t<i.length;t+=1)i[t].d();t[18](null)}}}function ei(t){let e,n,r=!t[2]&&Go(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[2]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),4&n[0]&&Nt(r,1)):(r=Go(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}function ni(t){return"change_bounds"===t.type?t:"set"===t.type?ni(t.items[0]):null}function ri(t,e,n){let r,o,i,a,s,l,c,{componentContext:u}=e,{layoutParams:d}=e;const p=pt(re),f=pt(Ae);let h,g,m,v,y=!1,$=new Map,b=new Set,_=null,w=[],x=[],k=[],C=[],E=!1;function A(t){n(6,v=(null==t?void 0:t.div)?u.produceChildContext(t.div,{path:t.state_id||"<unknown>"}):void 0)}function j(t,e,n){let{json:r,parentComponentContext:o,transitions:i,node:a}=e;r=u.getJsonWithVars(r),i=u.getJsonWithVars(i);const s=Ho(i),l=a.getBoundingClientRect(),c=Object.assign(Object.assign({},r),{margins:void 0,alpha:(d=s,d.some((t=>"fade"===t.type))?void 0:r.alpha)});var d;return{json:c,componentContextCopy:o.produceChildContext(c,{fake:!0}),elementBbox:l,rootBbox:t,transitions:s,alpha:r.alpha,width:l.width,height:l.height,offsetTop:l.top-t.top,offsetLeft:l.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node}}async function V(t){if(m===t)return;p.setRunning("stateChange",!0);const e=new Set(b);w.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(4,w=[]);let r=[];if(h){const t=h.getBoundingClientRect();r=k.map((e=>j(t,e,"out")))}C.forEach((t=>{$.set(t.id,t.node.getBoundingClientRect())})),x=[],k=[],C=[];const o=l.find((e=>e.state_id===t))||null;if(o?(n(5,m=t),null==a||a.setValue(m),A(o)):u.logError(oe(new Error("Cannot find state with id"),{additional:{stateId:t}})),await _t(),!h)return;const i=h.getBoundingClientRect();let s=x.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=>j(i,t,"in")));r=r.filter((t=>{var e;return!(!t.json.id||b.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=r.concat(s),d=c.reduce(((t,e)=>Math.max(t,To(e.transitions))),0),f=C.filter((t=>$.has(t.id))).map((t=>{const e=Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}});return{json:e,componentContextCopy:t.parentComponentContext.produceChildContext(e,{fake:!0}),rootBbox:i,beforeBbox:$.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:u.getJsonWithVars(ni(t.transitions)),resolvePromise:t.resolvePromise}}));n(4,w=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:d}))),...f]),$.clear(),p.setRunning("stateChange",!1)}function F(t){if(_&&_.has(t))return _.get(t);u.logError(oe(new Error("Missing state block with id"),{additional:{id:t}}))}function D(t){n(4,w=w.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return dt(Ae,{registerInstance(t,e){_||(_=new Map),_.has(t)?u.logError(oe(new Error("Duplicate state with id"),{additional:{id:t}})):_.set(t,e)},unregisterInstance(t){null==_||_.delete(t)},runVisibilityTransition(t,e,r,o,i){if(!h)return Promise.resolve();const a=j(h.getBoundingClientRect(),{json:t,parentComponentContext:e,transitions:r,node:o},i),s=To(a.transitions),l=Object.assign(Object.assign({},a),{maxDuration:s});return n(4,w=[...w.filter((t=>t.node!==a.node)),l]),new Promise((t=>{l.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const o={json:t,parentComponentContext:e,transitions:n,node:r};return x.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const o={json:t,parentComponentContext:e,transitions:n,node:r};return k.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,parentComponentContext:e,transitions:n,node:r};return C.push(i),new Promise((t=>{i.resolvePromise=t}))},hasTransitionChange:t=>!!t&&$.has(t),registerChild(t){b.add(t)},unregisterChild(t){b.delete(t)}}),ut((()=>{g&&f.unregisterInstance(g)})),t.$$set=t=>{"componentContext"in t&&n(0,u=t.componentContext),"layoutParams"in t&&n(1,d=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&n(13,r=u.json.div_id||u.json.id),1&t.$$.dirty[0]&&(o=u.getJsonWithVars(u.json.default_state_id)),1&t.$$.dirty[0]&&n(15,i=u.json.state_id_variable),32769&t.$$.dirty[0]&&(a=i?u.getVariable(i,"string"):null),1&t.$$.dirty[0]&&n(14,s=u.origJson),16384&t.$$.dirty[0]&&s&&n(11,E=!1),8193&t.$$.dirty[0]&&(r?n(2,y=!1):(n(2,y=!0),u.logError(oe(new Error('Missing "id" prop for div "state"'))))),1&t.$$.dirty[0]&&u.json&&(b=new Set),1&t.$$.dirty[0]&&n(12,l=Array.isArray(u.json.states)&&u.json.states||[]),4096&t.$$.dirty[0]&&n(7,c=l.map((t=>t.div))),4097&t.$$.dirty[0]&&((null==l?void 0:l.length)?n(2,y=!1):(n(2,y=!0),u.logError(oe(new Error('Empty "states" prop for div "state"'))))),9217&t.$$.dirty[0]&&u.json&&(g&&(f.unregisterInstance(g),n(10,g=void 0)),r&&!(null==u?void 0:u.fakeElement)&&(n(10,g=r),f.registerInstance(r,{setState:V,getChild:F}))),6144&t.$$.dirty[0]&&!E&&function(t){if(!E&&(n(11,E=!0),t.length)){const e=(null==a?void 0:a.getValue())||o;if(e){n(5,m=e);const r=t.find((t=>t.state_id===m))||null;A(r),r||u.logError(oe(new Error("Cannot find state for default_state_id"),{additional:{selectedId:m}}))}else{const e=t[0];n(5,m=e.state_id),A(e)}a&&(a.setValue(m),a.subscribe((t=>{V(t)})))}}(l)},[u,d,y,h,w,m,v,c,function(t){const e=u.json.states;e&&(n(12,l=e.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})))),n(0,u.json=Object.assign(Object.assign({},u.json),{states:l}),u),m&&A(l.find((t=>t.state_id===m))||null))},D,g,E,l,r,s,i,t=>D(t),t=>D(t),function(t){gt[t?"unshift":"push"]((()=>{h=t,n(3,h)}))}]}const oi={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f",pager__arrow:"divkit-d78c2","pager__arrow-icon-path":"divkit-a94d9"},{Boolean:ii}=j;function ai(t,e,n){const r=t.slice();return r[65]=e[n],r}function si(t){let e,n;return e=new bn({props:{cls:Ee("pager",oi,t[10]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,parentOf:t[2].map(fi),replaceItems:t[23],$$slots:{default:[di]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=Ee("pager",oi,t[10])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),4&n[0]&&(r.parentOf=t[2].map(fi)),134068&n[0]|64&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function li(t){let e,n,r,o,i;return n=new gs({props:{componentContext:t[65]}}),{c(){e=T("div"),Jt(n.$$.fragment),r=B(),W(e,"class",o=oi.pager__item)},m(t,o){O(t,e,o),Gt(n,e,null),S(e,r),i=!0},p(t,e){const r={};4&e[0]&&(r.componentContext=t[65]),n.$set(r)},i(t){i||(Nt(n.$$.fragment,t),i=!0)},o(t){Ot(n.$$.fragment,t),i=!1},d(t){t&&I(e),Kt(n)}}}function ci(t){let e,r,o,i,a=!t[19]&&function(t){let e,n,r,o;return{c(){e=z("svg"),n=z("path"),W(n,"class",r=oi["pager__arrow-icon-path"]),W(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),W(e,"class",o=Zr.arrow__icon),W(e,"xmlns","http://www.w3.org/2000/svg"),W(e,"width","32"),W(e,"height","32"),W(e,"viewBox","0 0 32 32"),W(e,"fill","none")},m(t,r){O(t,e,r),S(e,n)},d(t){t&&I(e)}}}();return{c(){e=T("div"),a&&a.c(),W(e,"class",r=t[19]||"".concat(oi.pager__arrow," ").concat(Zr.arrow," ").concat(Zr.arrow_left))},m(n,r){O(n,e,r),a&&a.m(e,null),o||(i=U(e,"click",t[52]),o=!0)},p:n,d(t){t&&I(e),a&&a.d(),o=!1,i()}}}function ui(t){let e,r,o,i,a=!t[20]&&function(t){let e,n,r,o;return{c(){e=z("svg"),n=z("path"),W(n,"class",r=oi["pager__arrow-icon-path"]),W(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),W(e,"class",o=Zr.arrow__icon),W(e,"xmlns","http://www.w3.org/2000/svg"),W(e,"width","32"),W(e,"height","32"),W(e,"viewBox","0 0 32 32"),W(e,"fill","none")},m(t,r){O(t,e,r),S(e,n)},d(t){t&&I(e)}}}();return{c(){e=T("div"),a&&a.c(),W(e,"class",r=t[20]||"".concat(oi.pager__arrow," ").concat(Zr.arrow," ").concat(Zr.arrow_right))},m(n,r){O(n,e,r),a&&a.m(e,null),o||(i=U(e,"click",t[53]),o=!0)},p:n,d(t){t&&I(e),a&&a.d(),o=!1,i()}}}function di(t){let e,n,r,o,i,a,s,l,c,u=zt(t[2]),d=[];for(let e=0;e<u.length;e+=1)d[e]=li(ai(t,u,e));const p=t=>Ot(d[t],1,1,(()=>{d[t]=null}));let f=t[8]&&t[9]&&ci(t),h=t[7]&&t[9]&&ui(t);return{c(){e=T("div");for(let t=0;t<d.length;t+=1)d[t].c();o=B(),f&&f.c(),i=B(),h&&h.c(),a=L(),W(e,"class",n=oi.pager__items+" "+(t[17]?ne["root_restrict-scroll"]:"")),W(e,"style",r=se(t[11]))},m(n,r){O(n,e,r);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(e,null);t[51](e),O(n,o,r),f&&f.m(n,r),O(n,i,r),h&&h.m(n,r),O(n,a,r),s=!0,l||(c=U(e,"scroll",t[22]),l=!0)},p(t,o){if(4&o[0]){let n;for(u=zt(t[2]),n=0;n<u.length;n+=1){const r=ai(t,u,n);d[n]?(d[n].p(r,o),Nt(d[n],1)):(d[n]=li(r),d[n].c(),Nt(d[n],1),d[n].m(e,null))}for(St(),n=u.length;n<d.length;n+=1)p(n);Pt()}(!s||131072&o[0]&&n!==(n=oi.pager__items+" "+(t[17]?ne["root_restrict-scroll"]:"")))&&W(e,"class",n),(!s||2048&o[0]&&r!==(r=se(t[11])))&&W(e,"style",r),t[8]&&t[9]?f?f.p(t,o):(f=ci(t),f.c(),f.m(i.parentNode,i)):f&&(f.d(1),f=null),t[7]&&t[9]?h?h.p(t,o):(h=ui(t),h.c(),h.m(a.parentNode,a)):h&&(h.d(1),h=null)},i(t){if(!s){for(let t=0;t<u.length;t+=1)Nt(d[t]);s=!0}},o(t){d=d.filter(ii);for(let t=0;t<d.length;t+=1)Ot(d[t]);s=!1},d(n){n&&(I(e),I(o),I(i),I(a)),M(d,n),t[51](null),f&&f.d(n),h&&h.d(n),l=!1,c()}}}function pi(t){let e,n,r=!t[3]&&si(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[3]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),8&n[0]&&Nt(r,1)):(r=si(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}const fi=t=>t.json;function hi(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,b,_,w,x,k,C,E,A,j,V,F=n,D=n,S=n,P=n,N=n,O=n;var I,M,T,z,R,B,L,U,W,H;t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O()));let{componentContext:q}=e,{layoutParams:J}=e;const G=pt(re),K=G.direction;f(t,K,(t=>r(4,x=t)));const X=G.genId("pager"),Y=G.getCustomization("pagerLeftClass"),Z=G.getCustomization("pagerRightClass"),Q=G.isDesktop;f(t,Q,(t=>r(46,k=t)));const tt=Nn((function(){if(!rt)return;const t=function(){const t=Array.from(nt.children),e=nt.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===st?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:ot}();t!==ot&&r(38,ot=t)}),50);let et,nt,rt=!1,ot=0,it=0,at=!1,st="horizontal",ct="",dt="",ft="";function ht(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===st,o=nt.children[t],i=n?"offsetLeft":"offsetTop",a=n?"left":"top";nt.scroll({[a]:o[i],behavior:e}),r(38,ot=t)}function mt(t,e){let n=ot-t;n<0&&(n="ring"===e?to(n,u.length):0),ht(n)}function vt(t,e){let n=ot+t;n>u.length-1&&(n="ring"===e?to(n,u.length):u.length-1),ht(n)}return lt((()=>{if(r(37,rt=!0),Boolean(document.getElementById("".concat(X,"-tab-0")))){const t=[...nt.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(X,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(X,"-tab-").concat(e))}})),ut((()=>{r(37,rt=!1),et&&(G.unregisterInstance(et),r(36,et=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,q=t.componentContext),"layoutParams"in t&&r(1,J=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(45,o=q.origJson),16384&t.$$.dirty[1]&&o&&r(42,dt=""),1&t.$$.dirty[0]&&(r(16,i=q.getDerivedFromVars(q.json.layout_mode)),D(),D=p(i,(t=>r(47,C=t)))),1&t.$$.dirty[0]&&(r(15,a=q.getDerivedFromVars(q.json.orientation)),N(),N=p(a,(t=>r(50,j=t)))),1&t.$$.dirty[0]&&(r(14,s=q.getDerivedFromVars(q.json.item_spacing)),P(),P=p(s,(t=>r(49,A=t)))),1&t.$$.dirty[0]&&(r(13,l=q.getDerivedFromVars(q.json.paddings)),S(),S=p(l,(t=>r(48,E=t)))),1&t.$$.dirty[0]&&(r(12,c=q.getDerivedFromVars(q.json.restrict_parent_scroll)),O(),O=p(c,(t=>r(17,V=t)))),1&t.$$.dirty[0]&&r(2,u=(Array.isArray(q.json.items)&&q.json.items||[]).map(((t,e)=>q.produceChildContext(t,{path:e})))),1&t.$$.dirty[0]|65536&t.$$.dirty[1]&&(C?"percentage"!==C.type&&"fixed"!==C.type?(r(39,at=!0),q.logError(oe(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):r(39,at=!1):(r(39,at=!0),q.logError(oe(new Error('Empty "layout_mode" prop for div "pager"'))))),524800&t.$$.dirty[1]&&r(40,st=xr(j,st)),262144&t.$$.dirty[1]){const t=null==A?void 0:A.value;t&&Fe(t)&&r(41,ct=le(t||0))}if(16&t.$$.dirty[0]|133120&t.$$.dirty[1]&&r(42,dt=De(E,x,dt)),512&t.$$.dirty[1]&&r(44,d="horizontal"===st?"grid-auto-columns":"grid-auto-rows"),2080374801&t.$$.dirty[0]|67103&t.$$.dirty[1])if("fixed"===(null==C?void 0:C.type)){const t=ce("horizontal"===st?(("ltr"===x?null===r(26,I=q.json.paddings)||void 0===I?void 0:I.start:null===r(27,M=q.json.paddings)||void 0===M?void 0:M.end)||(null===r(28,T=q.json.paddings)||void 0===T?void 0:T.left)||0)+(("ltr"===x?null===r(29,z=q.json.paddings)||void 0===z?void 0:z.end:null===r(30,R=q.json.paddings)||void 0===R?void 0:R.start)||(null===r(31,B=q.json.paddings)||void 0===B?void 0:B.right)||0):((null===r(32,L=q.json.paddings)||void 0===L?void 0:L.top)||0)+((null===r(33,U=q.json.paddings)||void 0===U?void 0:U.bottom)||0)),e=null===r(34,W=C.neighbour_page_width)||void 0===W?void 0:W.value;r(43,ft=e?"calc(100% + ".concat(t," - 2 * ").concat(ce(e)," - 2 * ").concat(ct,")"):"100%")}else if("percentage"===(null==C?void 0:C.type)){const t=null===r(35,H=C.page_width)||void 0===H?void 0:H.value;r(43,ft="".concat(Number(t),"%"))}15360&t.$$.dirty[1]&&r(11,h={"grid-gap":ct,padding:dt,[d]:ft}),512&t.$$.dirty[1]&&r(10,g={orientation:st}),256&t.$$.dirty[1]&&r(3,m=at),8&t.$$.dirty[0]|32832&t.$$.dirty[1]&&r(9,v=k&&rt&&!m),20&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(8,y="ltr"===x?ot>0:ot+1<u.length),20&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(7,b="ltr"===x?ot+1<u.length:ot>0),4&t.$$.dirty[0]|128&t.$$.dirty[1]&&function(t,e){const n=q.json.id;if(n){const r=new Map(w);$(_,w=r.set(n,{instId:X,size:t,currentItem:e,scrollToPagerItem:ht}),w)}}(u.length,ot),128&t.$$.dirty[1]&&function(t){var e;if(t===it)return;it=t;const n=q.getJsonWithVars(null===(e=u[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&q.execAnyActions(n)}(ot),5&t.$$.dirty[0]|32&t.$$.dirty[1]&&q.json&&(et&&(G.unregisterInstance(et),r(36,et=void 0)),q.json.id&&!q.fakeElement&&(r(36,et=q.json.id),G.registerInstance(et,{setCurrentItem(t){if(t<0||t>u.length-1)throw new Error('Item is out of range in "set-current-item" action');ht(t)},setPreviousItem:mt,setNextItem:vt,scrollToStart(){ht(0)},scrollToEnd(){ht(u.length-1)}})))},r(6,_=G.getStore("pagers")),F(),F=p(_,(t=>r(55,w=t))),[q,J,u,m,x,nt,_,b,y,v,g,h,c,l,s,a,i,V,K,Y,Z,Q,tt,function(t){r(0,q=Object.assign(Object.assign({},q),{json:Object.assign(Object.assign({},q.json),{items:t.filter(he)})}))},mt,vt,I,M,T,z,R,B,L,U,W,H,et,rt,ot,at,st,ct,dt,ft,d,o,k,C,E,A,j,function(t){gt[t?"unshift":"push"]((()=>{nt=t,r(5,nt)}))},()=>("ltr"===x?mt:vt)(1,"clamp"),()=>("ltr"===x?vt:mt)(1,"clamp")]}const gi={indicator:"divkit-d8e3f",indicator__scroller:"divkit-b5db0",indicator__items:"divkit-d5d94",indicator__item:"divkit-f6629",indicator_placement_default:"divkit-c1670",indicator__item_active:"divkit-b39cd",indicator_direction_ltr:"divkit-a7473",indicator_direction_rtl:"divkit-a7d63",indicator_placement_stretch:"divkit-b6bd3"};function mi(t,e,n){const r=t.slice();r[44]=e[n],r[47]=n;const o=r[47]===r[10].currentItem;return r[45]=o,r}function vi(t){let e,n=zt(Array(t[10].size)),r=[];for(let e=0;e<n.length;e+=1)r[e]=yi(mi(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=L()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);O(t,e,n)},p(t,o){if(12583936&o[0]){let i;for(n=zt(Array(t[10].size)),i=0;i<n.length;i+=1){const a=mi(t,n,i);r[i]?r[i].p(a,o):(r[i]=yi(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){t&&I(e),M(r,t)}}}function yi(t){let e,n,r,o,i,a,l,c;function u(){return t[37](t[47])}return{c(){e=T("div"),W(e,"class",n=Ee("indicator__item",gi,{active:t[45]})+" "+ne.root__clickable),W(e,"role","tab"),W(e,"id",r=t[10].instId+"-tab-"+t[47]),W(e,"aria-controls",o=t[10].instId+"-panel-"+t[47]),W(e,"aria-selected",i=t[45]?"true":"false"),W(e,"tabindex",a=t[45]?0:-1)},m(n,r){O(n,e,r),l||(c=[U(e,"click",u),U(e,"keydown",t[23])],l=!0)},p(s,l){t=s,1024&l[0]&&n!==(n=Ee("indicator__item",gi,{active:t[45]})+" "+ne.root__clickable)&&W(e,"class",n),1024&l[0]&&r!==(r=t[10].instId+"-tab-"+t[47])&&W(e,"id",r),1024&l[0]&&o!==(o=t[10].instId+"-panel-"+t[47])&&W(e,"aria-controls",o),1024&l[0]&&i!==(i=t[45]?"true":"false")&&W(e,"aria-selected",i),1024&l[0]&&a!==(a=t[45]?0:-1)&&W(e,"tabindex",a)},d(t){t&&I(e),l=!1,s(c)}}}function $i(t){let e,n,r,o,i=t[10]&&vi(t);return{c(){e=T("div"),n=T("div"),i&&i.c(),W(n,"class",r=gi.indicator__items),W(n,"role","tablist"),Y(n,"margin","default"===t[4]?"0 ".concat(le(Math.max(0,t[2].width-t[3].width)/2)):""),Y(n,"--divkit-indicator-inactive-width",le(t[3].width)),Y(n,"--divkit-indicator-inactive-height",le(t[3].height)),Y(n,"--divkit-indicator-inactive-border-radius",le(t[3].borderRadius)),Y(n,"--divkit-indicator-inactive-background",t[3].background||""),Y(n,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),Y(n,"--divkit-indicator-active-width",le(t[2].width)),Y(n,"--divkit-indicator-active-height",le(t[2].height)),Y(n,"--divkit-indicator-active-border-radius",le(t[2].borderRadius)),Y(n,"--divkit-indicator-active-background",t[2].background||""),Y(n,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),Y(n,"--divkit-indicator-active-scale",t[2].width/t[3].width),Y(n,"--divkit-indicator-default-margin","default"===t[4]?"0 ".concat(le((t[5]-t[3].width)/2)):""),Y(n,"--divkit-indicator-stretch-margin","stretch"===t[4]?le(t[7]):""),Y(n,"--divkit-indicator-stretch-max-count","stretch"===t[4]?t[6]:""),Y(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[4]?le((t[6]-1)*t[7]):""),W(e,"class",o=gi.indicator__scroller)},m(r,o){O(r,e,o),S(e,n),i&&i.m(n,null),t[38](n),t[39](e)},p(t,e){t[10]?i?i.p(t,e):(i=vi(t),i.c(),i.m(n,null)):i&&(i.d(1),i=null),28&e[0]&&Y(n,"margin","default"===t[4]?"0 ".concat(le(Math.max(0,t[2].width-t[3].width)/2)):""),8&e[0]&&Y(n,"--divkit-indicator-inactive-width",le(t[3].width)),8&e[0]&&Y(n,"--divkit-indicator-inactive-height",le(t[3].height)),8&e[0]&&Y(n,"--divkit-indicator-inactive-border-radius",le(t[3].borderRadius)),8&e[0]&&Y(n,"--divkit-indicator-inactive-background",t[3].background||""),8&e[0]&&Y(n,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),4&e[0]&&Y(n,"--divkit-indicator-active-width",le(t[2].width)),4&e[0]&&Y(n,"--divkit-indicator-active-height",le(t[2].height)),4&e[0]&&Y(n,"--divkit-indicator-active-border-radius",le(t[2].borderRadius)),4&e[0]&&Y(n,"--divkit-indicator-active-background",t[2].background||""),4&e[0]&&Y(n,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),12&e[0]&&Y(n,"--divkit-indicator-active-scale",t[2].width/t[3].width),56&e[0]&&Y(n,"--divkit-indicator-default-margin","default"===t[4]?"0 ".concat(le((t[5]-t[3].width)/2)):""),144&e[0]&&Y(n,"--divkit-indicator-stretch-margin","stretch"===t[4]?le(t[7]):""),80&e[0]&&Y(n,"--divkit-indicator-stretch-max-count","stretch"===t[4]?t[6]:""),208&e[0]&&Y(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[4]?le((t[6]-1)*t[7]):"")},d(n){n&&I(e),i&&i.d(),t[38](null),t[39](null)}}}function bi(t){let e,n;return e=new bn({props:{cls:Ee("indicator",gi,t[11]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[$i]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Ee("indicator",gi,t[11])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),2044&n[0]|131072&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}const _i=["rounded_rectangle","circle"];function wi(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A=n,j=n,V=n,F=n,D=n,S=n,P=n,N=n,O=n;var I,M;t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O()));let{componentContext:T}=e,{layoutParams:z}=e;const R=pt(re),B=R.direction;f(t,B,(t=>r(27,v=t)));let L,U,W,H={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},q={width:10,height:10,borderRadius:5,background:"#33919cb5"},J="default",G=15,K=10,X=5;function Y(t){t!==W.currentItem&&W.scrollToPagerItem(t)}async function Z(t){W.scrollToPagerItem(t),await _t();const e=U.querySelector(".".concat(gi.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"componentContext"in t&&r(0,T=t.componentContext),"layoutParams"in t&&r(1,z=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(26,o=T.origJson),67108864&t.$$.dirty[0]&&o&&(r(4,J="default"),r(5,G=15),r(6,K=10),r(7,X=5),r(2,H={width:13,height:13,borderRadius:6.5,background:"#ffdc60"}),r(3,q={width:10,height:10,borderRadius:5,background:"#33919cb5"})),1&t.$$.dirty[0]&&(r(20,i=T.getDerivedFromVars(T.json.shape)),S(),S=p(i,(t=>r(33,x=t)))),1&t.$$.dirty[0]&&(r(19,a=T.getDerivedFromVars(T.json.active_item_color)),F(),F=p(a,(t=>r(31,_=t)))),1&t.$$.dirty[0]&&(r(18,s=T.getDerivedFromVars(T.json.inactive_item_color)),D(),D=p(s,(t=>r(32,w=t)))),1&t.$$.dirty[0]&&(r(17,l=T.getDerivedFromVars(T.json.active_item_size)),P(),P=p(l,(t=>r(34,k=t)))),1&t.$$.dirty[0]&&(r(16,c=T.getDerivedFromVars(T.json.active_shape)),O(),O=p(c,(t=>r(36,E=t)))),1&t.$$.dirty[0]&&(r(15,u=T.getDerivedFromVars(T.json.inactive_shape)),N(),N=p(u,(t=>r(35,C=t)))),1&t.$$.dirty[0]&&(r(14,d=T.getDerivedFromVars(T.json.space_between_centers)),j(),j=p(d,(t=>r(29,$=t)))),1&t.$$.dirty[0]&&(r(13,h=T.getDerivedFromVars(T.json.items_placement)),V(),V=p(h,(t=>r(30,b=t)))),12&t.$$.dirty[0]|63&t.$$.dirty[1]&&(E&&r(2,H=Qn({type:"shape_drawable",shape:E},_i,H)),C&&r(3,q=Qn({type:"shape_drawable",shape:C},_i,q)),!E&&!C&&x)){const t=wn(k,1.3);r(3,q=Qn({type:"shape_drawable",shape:x,color:q.background},_i,q)),r(3,q.background=de(w,1,q.background),q),r(2,H=Object.assign(Object.assign({},q),{width:q.width*t,height:q.height*t,borderRadius:q.borderRadius*t,background:H.background})),r(2,H.background=de(_,1,H.background),H)}if(1660944624&t.$$.dirty[0])if(!b||"default"!==b.type&&"stretch"!==b.type)r(4,J="default"),$&&r(5,G=we($.value,G));else if(r(4,J=b.type),"default"===J)r(5,G=we(null===r(24,I=b.space_between_centers)||void 0===I?void 0:I.value,G));else if("stretch"===J){const t=b;r(6,K=wn(t.max_visible_items,K)),r(7,X=we(null===r(25,M=t.item_spacing)||void 0===M?void 0:M.value,X))}268435456&t.$$.dirty[0]&&async function(t){if(T.json.pager_id&&t.has(T.json.pager_id)&&(r(10,W=t.get(T.json.pager_id)),await _t(),U)){const t=U.children[W.currentItem];if(t){const e=t.offsetLeft;L.scroll({left:e-L.clientWidth/2,behavior:"smooth"})}}}(y),134217744&t.$$.dirty[0]&&r(11,m={placement:J,direction:v})},r(12,g=R.getStore("pagers")),A(),A=p(g,(t=>r(28,y=t))),[T,z,H,q,J,G,K,X,L,U,W,m,g,h,d,u,c,l,s,a,i,B,Y,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=W;if(37===t.which)Z(n-1<0?n:n-1);else if(39===t.which)Z(n+1>=e?n:n+1);else if(36===t.which)Z(0);else{if(35!==t.which)return;Z(e-1)}t.preventDefault()},I,M,o,v,y,$,b,_,w,x,k,C,E,t=>Y(t),function(t){gt[t?"unshift":"push"]((()=>{U=t,r(9,U)}))},function(t){gt[t?"unshift":"push"]((()=>{L=t,r(8,L)}))}]}const xi={slider:"divkit-ef4f7",slider__input:"divkit-d1d65",slider__input_secondary:"divkit-c7980",slider__thumb:"divkit-f3453",slider_direction_rtl:"divkit-fb7b5",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 ki(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&de(t.text_color)||"#000",o=xn(t.font_weight);if(Ze(t.font_size)&&"transparent"!==r){var i,a;const e={fontSize:le(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 Ci(t,e,n){return Math.max(e,Math.min(n,Number(t)))}const Ei="function"==typeof BigInt;function Ai(t){return Ei?BigInt(t):Number(t)}const ji=Ai("9223372036854775807"),Vi=Ai("-9223372036854775808");function Fi(t){const e=Ai(t);if(e>ji||e<Vi)throw new Error("Integer overflow.");if("number"==typeof e&&(Number.isNaN(e)||e!==Math.round(e)))throw new Error("Incorrect integer value.");return e}const Di=Fi(0);function Si(t){let e=t;return e<0&&(e=-e),e}function Pi(t){let e=0;return t>0?e=1:t<0&&(e=-1),Fi(e)}class Ni{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=te(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}}class Oi extends Ni{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}}class Ii extends Ni{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t)throw new Error("Incorrect variable value");try{return Fi(t)}catch(t){throw new Error("Incorrect variable value")}}fromString(t){try{return Fi(t)}catch(t){throw new Error("Incorrect variable value")}}getType(){return"integer"}}class Mi extends Ni{convertValue(t){if("number"!=typeof t||Number.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"}}class Ti extends Ni{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"}}class zi extends Ni{convertValue(t){if("string"!=typeof t||!pe(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}}class Ri extends Ni{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}}class Bi extends Ni{convertValue(t){if("object"!=typeof t||!t)throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Dict variable does not support setter from string")}getType(){return"dict"}}class Li extends Ni{convertValue(t){if(!Array.isArray(t))throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Array variable does not support setter from string")}getType(){return"array"}}const Ui={string:Oi,number:Mi,integer:Ii,boolean:Ti,color:zi,url:Ri,dict:Bi,array:Li};function Wi(t,e,n){if(!(e in Ui))throw new Error("Unsupported variable type");return new Ui[e](t,n)}function Hi(){}function qi(t){return t(this.value),Hi}function Ji(){throw new Error("Cannot change the value of this type of variable")}const Gi={string:class extends Oi{},number:class extends Mi{},integer:class extends Ii{},boolean:class extends Ti{},color:class extends zi{},url:class extends Ri{},dict:class extends Bi{},array:class extends Li{}};for(const t in Gi){const e=Gi[t];e.prototype.subscribe=qi,e.prototype.set=Ji,e.prototype.setValue=Ji}function Ki(t,e,n){const r=t.slice();return r[82]=e[n],r}function Xi(t,e,n){const r=t.slice();return r[82]=e[n],r}function Yi(t){let e,n;return e=new bn({props:{cls:Ee("slider",xi,t[24]),style:t[25],customDescription:!0,customActions:"slider",hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[oa,t=>{let{focusHandler:e,blurHandler:n}=t;return{80:e,81:n}},t=>{let{focusHandler:e,blurHandler:n}=t;return[0,0,(e?262144:0)|(n?524288:0)]}]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};16777216&n[0]&&(r.cls=Ee("slider",xi,t[24])),33554432&n[0]&&(r.style=t[25]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),205518844&n[0]|34340864&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Zi(t){let e,n;return{c(){e=T("div"),W(e,"class",n=xi.slider__tick+" "+xi.slider__tick_active),Y(e,"--divkit-slider-tick",t[82])},m(t,n){O(t,e,n)},p(t,n){262144&n[0]&&Y(e,"--divkit-slider-tick",t[82])},d(t){t&&I(e)}}}function Qi(t){let e,n;return{c(){e=T("div"),W(e,"class",n=xi.slider__tick+" "+xi.slider__tick_inactive),Y(e,"--divkit-slider-tick",t[82])},m(t,n){O(t,e,n)},p(t,n){524288&n[0]&&Y(e,"--divkit-slider-tick",t[82])},d(t){t&&I(e)}}}function ta(t){let e,n,r,o,i;return{c(){var a,s,l;e=T("div"),n=T("div"),r=R(t[12]),W(n,"class",o=xi["slider__thumb-text-inner"]),Y(n,"font-size",(null===(a=t[9])||void 0===a?void 0:a.fontSize)||"1em"),Y(n,"font-weight",(null===(s=t[9])||void 0===s?void 0:s.fontWeight)||""),Y(n,"color",(null===(l=t[9])||void 0===l?void 0:l.textColor)||"#000"),W(e,"class",i=xi["slider__thumb-text"])},m(t,o){O(t,e,o),S(e,n),S(n,r)},p(t,e){var o,i,a;4096&e[0]&&K(r,t[12]),512&e[0]&&Y(n,"font-size",(null===(o=t[9])||void 0===o?void 0:o.fontSize)||"1em"),512&e[0]&&Y(n,"font-weight",(null===(i=t[9])||void 0===i?void 0:i.fontWeight)||""),512&e[0]&&Y(n,"color",(null===(a=t[9])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&I(e)}}}function ea(t){let e,n,r=t[10]&&na(t);return{c(){e=T("div"),r&&r.c(),W(e,"class",n=xi.slider__thumb+" "+xi.slider__thumb_secondary),Y(e,"border-radius",le(t[6].borderRadius)),Y(e,"background",t[6].background),Y(e,"box-shadow",t[6].boxShadow||"")},m(t,n){O(t,e,n),r&&r.m(e,null)},p(t,n){t[10]?r?r.p(t,n):(r=na(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),64&n[0]&&Y(e,"border-radius",le(t[6].borderRadius)),64&n[0]&&Y(e,"background",t[6].background),64&n[0]&&Y(e,"box-shadow",t[6].boxShadow||"")},d(t){t&&I(e),r&&r.d()}}}function na(t){let e,n,r,o,i;return{c(){var a,s,l;e=T("div"),n=T("div"),r=R(t[13]),W(n,"class",o=xi["slider__thumb-text-inner"]),Y(n,"font-size",(null===(a=t[10])||void 0===a?void 0:a.fontSize)||"1em"),Y(n,"font-weight",(null===(s=t[10])||void 0===s?void 0:s.fontWeight)||""),Y(n,"color",(null===(l=t[10])||void 0===l?void 0:l.textColor)||"#000"),W(e,"class",i=xi["slider__thumb-text"]+" "+xi["slider__thumb-text_secondary"])},m(t,o){O(t,e,o),S(e,n),S(n,r)},p(t,e){var o,i,a;8192&e[0]&&K(r,t[13]),1024&e[0]&&Y(n,"font-size",(null===(o=t[10])||void 0===o?void 0:o.fontSize)||"1em"),1024&e[0]&&Y(n,"font-weight",(null===(i=t[10])||void 0===i?void 0:i.fontWeight)||""),1024&e[0]&&Y(n,"color",(null===(a=t[10])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&I(e)}}}function ra(t){let e,n,r,o,i;return{c(){e=T("input"),W(e,"type","range"),W(e,"class",n=t[17]?xi.slider__input:"".concat(xi.slider__input," ").concat(xi.slider__input_secondary)),W(e,"min",t[3]),W(e,"max",t[4]),W(e,"step","1"),e.value=r=t[17]?t[12]:t[13],W(e,"aria-label",t[21])},m(n,r){O(n,e,r),o||(i=[U(e,"input",t[73]),U(e,"mousedown",(function(){l(t[14]?t[41]:null)&&(t[14]?t[41]:null).apply(this,arguments)})),U(e,"touchstart",(function(){l(t[14]?t[41]:null)&&(t[14]?t[41]:null).apply(this,arguments)})),U(e,"focus",(function(){l(t[80])&&t[80].apply(this,arguments)})),U(e,"blur",(function(){l(t[81])&&t[81].apply(this,arguments)}))],o=!0)},p(o,i){t=o,131072&i[0]&&n!==(n=t[17]?xi.slider__input:"".concat(xi.slider__input," ").concat(xi.slider__input_secondary))&&W(e,"class",n),8&i[0]&&W(e,"min",t[3]),16&i[0]&&W(e,"max",t[4]),143360&i[0]&&r!==(r=t[17]?t[12]:t[13])&&(e.value=r),2097152&i[0]&&W(e,"aria-label",t[21])},d(t){t&&I(e),o=!1,s(i)}}}function oa(t){let e,n,r,o,i,a,c,u,d,p,f,h,g,m,v,y,$,b,_,w,x,k,C=zt(t[18]),E=[];for(let e=0;e<C.length;e+=1)E[e]=Zi(Xi(t,C,e));let A=zt(t[19]),j=[];for(let e=0;e<A.length;e+=1)j[e]=Qi(Ki(t,A,e));let V=t[9]&&ta(t),F=t[14]&&ea(t),D=t[14]&&ra(t);return{c(){e=T("div"),n=T("div"),r=T("div"),i=B(),a=T("div"),u=B();for(let t=0;t<E.length;t+=1)E[t].c();d=B();for(let t=0;t<j.length;t+=1)j[t].c();p=B(),f=T("div"),V&&V.c(),g=B(),F&&F.c(),m=B(),v=T("input"),b=B(),D&&D.c(),W(r,"class",o=xi.slider__track),Y(r,"height",le(t[7].height)),Y(r,"border-radius",le(t[7].borderRadius)),Y(r,"background",t[7].background),Y(r,"box-shadow",t[7].boxShadow||""),W(a,"class",c=xi["slider__active-track"]),Y(a,"left","ltr"===t[15]?(100*t[26]).toFixed(2)+"%":void 0),Y(a,"right","ltr"===t[15]?void 0:(100*t[26]).toFixed(2)+"%"),Y(a,"width",(100*t[27]).toFixed(2)+"%"),Y(a,"height",le(t[8].height)),Y(a,"border-radius",le(t[8].borderRadius)),Y(a,"background",t[8].background),Y(a,"box-shadow",t[8].boxShadow||""),W(f,"class",h=xi.slider__thumb),Y(f,"border-radius",le(t[5].borderRadius)),Y(f,"background",t[5].background),Y(f,"box-shadow",t[5].boxShadow||""),W(v,"type","range"),W(v,"class",y=t[17]?"".concat(xi.slider__input," ").concat(xi.slider__input_secondary):xi.slider__input),W(v,"min",t[3]),W(v,"max",t[4]),W(v,"step","1"),v.value=$=t[17]?t[13]:t[12],W(v,"aria-label",t[20]),W(n,"class",_=xi["slider__tracks-inner"]),W(e,"class",w=xi["slider__tracks-wrapper"])},m(o,s){O(o,e,s),S(e,n),S(n,r),S(n,i),S(n,a),S(n,u);for(let t=0;t<E.length;t+=1)E[t]&&E[t].m(n,null);S(n,d);for(let t=0;t<j.length;t+=1)j[t]&&j[t].m(n,null);S(n,p),S(n,f),V&&V.m(f,null),S(n,g),F&&F.m(n,null),S(n,m),S(n,v),t[72](v),S(n,b),D&&D.m(n,null),t[74](n),x||(k=[U(v,"input",t[71]),U(v,"focus",(function(){l(t[80])&&t[80].apply(this,arguments)})),U(v,"blur",(function(){l(t[81])&&t[81].apply(this,arguments)}))],x=!0)},p(e,o){if(t=e,128&o[0]&&Y(r,"height",le(t[7].height)),128&o[0]&&Y(r,"border-radius",le(t[7].borderRadius)),128&o[0]&&Y(r,"background",t[7].background),128&o[0]&&Y(r,"box-shadow",t[7].boxShadow||""),67141632&o[0]&&Y(a,"left","ltr"===t[15]?(100*t[26]).toFixed(2)+"%":void 0),67141632&o[0]&&Y(a,"right","ltr"===t[15]?void 0:(100*t[26]).toFixed(2)+"%"),134217728&o[0]&&Y(a,"width",(100*t[27]).toFixed(2)+"%"),256&o[0]&&Y(a,"height",le(t[8].height)),256&o[0]&&Y(a,"border-radius",le(t[8].borderRadius)),256&o[0]&&Y(a,"background",t[8].background),256&o[0]&&Y(a,"box-shadow",t[8].boxShadow||""),262144&o[0]){let e;for(C=zt(t[18]),e=0;e<C.length;e+=1){const r=Xi(t,C,e);E[e]?E[e].p(r,o):(E[e]=Zi(r),E[e].c(),E[e].m(n,d))}for(;e<E.length;e+=1)E[e].d(1);E.length=C.length}if(524288&o[0]){let e;for(A=zt(t[19]),e=0;e<A.length;e+=1){const r=Ki(t,A,e);j[e]?j[e].p(r,o):(j[e]=Qi(r),j[e].c(),j[e].m(n,p))}for(;e<j.length;e+=1)j[e].d(1);j.length=A.length}t[9]?V?V.p(t,o):(V=ta(t),V.c(),V.m(f,null)):V&&(V.d(1),V=null),32&o[0]&&Y(f,"border-radius",le(t[5].borderRadius)),32&o[0]&&Y(f,"background",t[5].background),32&o[0]&&Y(f,"box-shadow",t[5].boxShadow||""),t[14]?F?F.p(t,o):(F=ea(t),F.c(),F.m(n,m)):F&&(F.d(1),F=null),131072&o[0]&&y!==(y=t[17]?"".concat(xi.slider__input," ").concat(xi.slider__input_secondary):xi.slider__input)&&W(v,"class",y),8&o[0]&&W(v,"min",t[3]),16&o[0]&&W(v,"max",t[4]),143360&o[0]&&$!==($=t[17]?t[13]:t[12])&&(v.value=$),1048576&o[0]&&W(v,"aria-label",t[20]),t[14]?D?D.p(t,o):(D=ra(t),D.c(),D.m(n,null)):D&&(D.d(1),D=null)},d(n){n&&I(e),M(E,n),M(j,n),V&&V.d(),F&&F.d(),t[72](null),D&&D.d(),t[74](null),x=!1,s(k)}}}function ia(t){let e,n,r,o,i=!t[11]&&Yi(t);return{c(){i&&i.c(),e=L()},m(a,s){i&&i.m(a,s),O(a,e,s),n=!0,r||(o=U(window,"resize",t[43]),r=!0)},p(t,n){t[11]?i&&(St(),Ot(i,1,1,(()=>{i=null})),Pt()):i?(i.p(t,n),2048&n[0]&&Nt(i,1)):(i=Yi(t),i.c(),Nt(i,1),i.m(e.parentNode,e))},i(t){n||(Nt(i),n=!0)},o(t){Ot(i),n=!1},d(t){t&&I(e),i&&i.d(t),r=!1,o()}}}const aa={width:10,height:10,borderRadius:5,background:"#000"},sa=["rounded_rectangle","circle"],la=["rounded_rectangle"];function ca(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 ua(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,M,T,z,R,B,L,U,W,H,q=n,J=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;var at,st,ct,dt;t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),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()));let{componentContext:ft}=e,{layoutParams:ht}=e;const mt=pt(re),vt=pt(We),yt=mt.direction;let $t,bt,_t;f(t,yt,(t=>r(15,D=t)));let wt,xt,kt,Ct=!1,Et=0,At=100,jt=aa,Vt=jt,Ft=aa,Dt=aa,St=null,Pt=null,Nt=kt,Ot="",It="",Mt=!1,Tt=Ci(U||0,Et,At),zt=Ci(L||0,Et,At);function Rt(t,e){const n=Number(t.target.value);Ct===("first"===e)?(r(13,zt=n),l.setValue(n)):(r(12,Tt=n),s.setValue(n))}let Bt=!1;function Lt(){if(!_t)return;const t=At-Et,e=(null==St?void 0:St.width)||0,n=(null==Pt?void 0:Pt.width)||0;Math.max(e,n)*t>=(null==_t?void 0:_t.clientWidth)?Bt||(ft.logError(oe(new Error("Slider ticks overlap each other"),{level:"warn"})),Bt=!0):Bt=!1}const Ut=Nn(Lt,50);return lt((()=>{Lt()})),ut((()=>{$t&&(mt.unregisterFocusable($t),r(48,$t=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,ft=t.componentContext),"layoutParams"in t&&r(1,ht=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(56,o=ft.origJson),33554432&t.$$.dirty[1]&&o&&(r(5,jt=aa),r(6,Vt=jt),r(7,Ft=aa),r(8,Dt=aa),r(49,St=null),r(50,Pt=null),r(9,kt=void 0),r(10,Nt=void 0),r(20,Ot=""),r(21,It="")),1&t.$$.dirty[0]&&r(55,i=ft.json.thumb_value_variable),1&t.$$.dirty[0]&&r(14,a=ft.json.thumb_secondary_value_variable),1&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&(r(22,s=i&&ft.getVariable(i,"integer")||Wi("temp","integer",0)),rt(),rt=p(s,(t=>r(68,U=t)))),16385&t.$$.dirty[0]&&(r(23,l=a&&ft.getVariable(a,"integer")||Wi("temp","integer",0)),nt(),nt=p(l,(t=>r(67,L=t)))),1&t.$$.dirty[0]&&(r(39,c=ft.getDerivedFromVars(ft.json.min_value)),it(),it=p(c,(t=>r(70,H=t)))),1&t.$$.dirty[0]&&(r(38,u=ft.getDerivedFromVars(ft.json.max_value)),ot(),ot=p(u,(t=>r(69,W=t)))),1&t.$$.dirty[0]&&(r(37,d=ft.getDerivedFromVars(ft.json.thumb_style)),et(),et=p(d,(t=>r(66,B=t)))),1&t.$$.dirty[0]&&(r(36,h=ft.getDerivedFromVars(ft.json.thumb_secondary_style)),tt(),tt=p(h,(t=>r(65,R=t)))),1&t.$$.dirty[0]&&(r(35,g=ft.getDerivedFromVars(ft.json.track_inactive_style)),Q(),Q=p(g,(t=>r(64,z=t)))),1&t.$$.dirty[0]&&(r(34,m=ft.getDerivedFromVars(ft.json.track_active_style)),Z(),Z=p(m,(t=>r(63,T=t)))),1&t.$$.dirty[0]&&(r(33,v=ft.getDerivedFromVars(ft.json.tick_mark_active_style)),Y(),Y=p(v,(t=>r(62,M=t)))),1&t.$$.dirty[0]&&(r(32,y=ft.getDerivedFromVars(ft.json.tick_mark_inactive_style)),X(),X=p(y,(t=>r(61,I=t)))),1&t.$$.dirty[0]&&(r(31,$=ft.getDerivedFromVars(ft.json.thumb_text_style)),K(),K=p($,(t=>r(60,O=t)))),1&t.$$.dirty[0]&&(r(30,b=ft.getDerivedFromVars(ft.json.thumb_secondary_text_style)),G(),G=p(b,(t=>r(59,N=t)))),1&t.$$.dirty[0]&&(r(29,_=ft.getDerivedFromVars(ft.json.accessibility)),J(),J=p(_,(t=>r(58,P=t)))),1&t.$$.dirty[0]&&(r(28,w=ft.getDerivedFromVars(ft.json.secondary_value_accessibility)),q(),q=p(w,(t=>r(57,S=t)))),24&t.$$.dirty[0]|384&t.$$.dirty[2]&&(r(3,Et=Ie(H,Et)),r(4,At=Ie(W,At)),Lt()),4120&t.$$.dirty[0]|64&t.$$.dirty[2]){const t=Ci(U||0,Et,At);t!==Tt&&r(12,Tt=t)}if(8216&t.$$.dirty[0]|32&t.$$.dirty[2]){const t=Ci(L||0,Et,At);t!==zt&&r(13,zt=t)}if(32&t.$$.dirty[0]|16&t.$$.dirty[2]&&r(5,jt=Qn(B,sa,jt)),32&t.$$.dirty[0]|8&t.$$.dirty[2]&&r(6,Vt=Qn(R,sa,jt)),128&t.$$.dirty[0]|4&t.$$.dirty[2]&&r(7,Ft=Qn(z,la,Ft)),256&t.$$.dirty[0]|2&t.$$.dirty[2]&&r(8,Dt=Qn(T,la,Dt)),1&t.$$.dirty[2]){let t=Qn(M,sa,aa);t!==aa&&r(49,St=t)}if(28696&t.$$.dirty[0]|262144&t.$$.dirty[1]&&(St?(r(18,wt=a?ca(Math.min(Tt,zt),Math.max(Tt,zt)+1,Et,At,!0):ca(Et,Tt,Et,At,!0)),Lt()):r(18,wt=[])),1073741824&t.$$.dirty[1]){let t=Qn(I,sa,aa);t!==aa&&r(50,Pt=t)}if(28696&t.$$.dirty[0]|524288&t.$$.dirty[1]&&(Pt?(r(19,xt=a?ca(Math.min(Tt,zt),Math.max(Tt,zt)+1,Et,At,!1):ca(Tt+1,At+1,Et,At,!0)),Lt()):r(19,xt=[])),512&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&r(9,kt=ki(O,kt)),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(10,Nt=ki(N,kt)),1&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&((null==P?void 0:P.description)?r(20,Ot=P.description):ft.logError(oe(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),16385&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&((null==S?void 0:S.description)?r(21,It=S.description):a&&ft.logError(oe(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),2465&t.$$.dirty[0]){let t=!1;vt.hasAction()?(ft.logError(oe(new Error('Cannot show "slider" inside component with action'))),t=!0):jt===aa?(ft.logError(oe(new Error('Missing "thumb_style" in slider'))),t=!0):Dt===aa?(ft.logError(oe(new Error('Missing "track_active_style" in slider'))),t=!0):Ft===aa&&(ft.logError(oe(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Mt&&r(11,Mt=t)}96&t.$$.dirty[0]&&r(54,x=le(Math.max(...[jt.width,Vt.width,0].filter(Fe)))),96&t.$$.dirty[0]&&r(53,k=le(Math.max(...[jt.height,Vt.height,0].filter(Fe)))),4120&t.$$.dirty[0]&&r(52,C=(Tt-Et)/(At-Et)),24600&t.$$.dirty[0]&&r(51,E=a?(zt-Et)/(At-Et):void 0),3145728&t.$$.dirty[1]&&r(27,A=void 0!==E?Math.abs(E-C):C),3145728&t.$$.dirty[1]&&r(26,j=void 0!==E?Math.min(E,C):0),1632&t.$$.dirty[0]|16637952&t.$$.dirty[1]&&r(25,V={"--divkit-slider-thumb-width":le(jt.width),"--divkit-slider-thumb-height":le(jt.height),"--divkit-slider-thumb-secondary-width":le(Vt.width),"--divkit-slider-thumb-secondary-height":le(Vt.height),"--divkit-slider-text-offset-x":(null===r(44,at=null==kt?void 0:kt.offset)||void 0===at?void 0:at.x)?ce(kt.offset.x):void 0,"--divkit-slider-text-offset-y":(null===r(45,st=null==kt?void 0:kt.offset)||void 0===st?void 0:st.y)?ce(kt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===r(46,ct=null==Nt?void 0:Nt.offset)||void 0===ct?void 0:ct.x)?ce(Nt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===r(47,dt=null==Nt?void 0:Nt.offset)||void 0===dt?void 0:dt.y)?ce(Nt.offset.y):void 0,"--divkit-slider-tick-active-width":St?le(St.width):void 0,"--divkit-slider-tick-active-height":St?le(St.height):void 0,"--divkit-slider-tick-active-border-radius":St?le(St.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==St?void 0:St.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==St?void 0:St.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Pt?le(Pt.width):void 0,"--divkit-slider-tick-inactive-height":Pt?le(Pt.height):void 0,"--divkit-slider-tick-inactive-border-radius":Pt?le(Pt.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==Pt?void 0:Pt.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==Pt?void 0:Pt.boxShadow)||void 0,"--divkit-slider-max-thumb-width":x,"--divkit-slider-max-thumb-height":k,"--divkit-slider-track-part":C,"--divkit-slider-track-secondary-part":E}),32768&t.$$.dirty[0]&&r(24,F={direction:D}),5&t.$$.dirty[0]|131072&t.$$.dirty[1]&&ft.json&&bt&&($t&&(mt.unregisterFocusable($t),r(48,$t=void 0)),ft.json.id&&!ft.fakeElement&&(r(48,$t=ft.json.id),mt.registerFocusable($t,{focus(){bt&&bt.focus()}})))},[ft,ht,bt,Et,At,jt,Vt,Ft,Dt,kt,Nt,Mt,Tt,zt,a,D,_t,Ct,wt,xt,Ot,It,s,l,F,V,j,A,w,_,b,$,y,v,m,g,h,d,u,c,yt,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=_t.getBoundingClientRect();let a=(o-i.left)/i.width;"rtl"===D&&(a=1-a);const s=Et+(At-Et)*a,l=Math.round(Ci(s,Et,At));r(17,Ct=l<(Tt+zt)/2==Tt<zt)},Rt,Ut,at,st,ct,dt,$t,St,Pt,E,C,k,x,i,o,S,P,N,O,I,M,T,z,R,B,L,U,W,H,t=>Rt(t,"first"),function(t){gt[t?"unshift":"push"]((()=>{bt=t,r(2,bt)}))},t=>Rt(t,"second"),function(t){gt[t?"unshift":"push"]((()=>{_t=t,r(16,_t)}))}]}const da={input:"divkit-c3a4c","input_alignment-horizontal_center":"divkit-fc52a","input_alignment-horizontal_end":"divkit-e9096",input__aligner:"divkit-e0491",input__input:"divkit-f11e0",input__placeholder:"divkit-b7593","input_alignment-vertical_start":"divkit-cd14f","input_alignment-vertical_end":"divkit-cd38f","input_alignment-vertical_baseline":"divkit-dd6af","input_highlight-color":"divkit-cc00f",input__input_singleline:"divkit-ffd1e","input__scroll-wrapper":"divkit-ad8a3",input__input_multiline:"divkit-f61f0","input__input_has-custom-focus":"divkit-e6b50"};function pa(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=pa(e,t);return{start:n.start,added:n.removed,removed:n.added}}let n=0,r=e.length-1;const o=e.length-t.length;for(;n<r&&n<t.length&&t[n]===e[n];)++n;for(;r-o>=n&&t[r-o]===e[r];)--r;return++r,{start:n,added:r-n,removed:r-n-o}}function fa(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class ha{constructor(t){this.char=t}}class ga{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class ma{constructor(t){fa(this,"filters",new Map),fa(this,"destructedValue",[]),fa(this,"cursorPos",0),this.maskData=t,this.updateMaskData(t)}get cursorPosition(){return this.cursorPos}get rawValue(){return this.collectValueRange(0,this.destructedValue.length-1)}get value(){let t="";for(let e=0;e<this.destructedValue.length;++e){const n=this.destructedValue[e];if(n instanceof ha)t+=n.char;else if(n instanceof ga)if(n.char)t+=n.char;else{if(!this.maskData.alwaysVisible)break;t+=n.placeholder}}return t}firstEmptyHolderIndex(){const t=this.destructedValue.findIndex((t=>t instanceof ga&&!t.char));return-1!==t?t:this.destructedValue.length}updateMaskData(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.maskData!==t&&e?this.rawValue:null;this.filters=new Map,this.maskData=t,this.maskData.decoding.forEach((t=>{if(t.filter)try{const e=new RegExp(t.filter);this.filters.set(t.key,e)}catch(e){this.onException(oe(e,{level:"error",additional:{key:t.key}}))}})),this.destructedValue=this.maskData.pattern.split("").map((t=>{const e=this.maskData.decoding.find((e=>e.key===t));return e?new ga(null,this.filters.get(e.key),e.placeholder):new ha(t)})),null!==n&&this.overrideRawValue(n)}overrideRawValue(t){this.clearRange(0,this.destructedValue.length),this.replaceChars(t,0),this.cursorPos=Math.min(this.cursorPos,this.value.length)}applyChangeFrom(t,e){const n=pa(this.value,t);void 0!==e&&(n.start=Math.max(0,e-n.added));const r=this.buildBodySubstring(n,t),o=this.buildTailSubstring(n);this.cleanup(n);const i=this.firstEmptyHolderIndex(),a=o?this.calculateMaxShift(o,i):void 0;this.replaceChars(r,i,a);const s=this.firstEmptyHolderIndex();this.replaceChars(o,s),this.calculateCursorPosition(n,s)}buildBodySubstring(t,e){return e.substring(t.start,t.start+t.added)}buildTailSubstring(t){return this.collectValueRange(t.start+t.removed,this.destructedValue.length-1)}calculateMaxShift(t,e){if(this.filters.size<=1){let n=0,r=e;for(;r<this.destructedValue.length;)this.destructedValue[r]instanceof ga&&++n,++r;return Math.max(0,n-t.length)}const n=this.calculateInsertableSubstring(t,e);let r=0;for(;r<this.destructedValue.length&&n===this.calculateInsertableSubstring(t,e+r);)++r;return Math.max(0,r-1)}cleanup(t){if(0===t.added&&1===t.removed){let e=t.start;for(;e>=0;){const t=this.destructedValue[e];if(t instanceof ga&&null!==t.char){t.char=null;break}--e}}this.clearRange(t.start,this.destructedValue.length)}clearRange(t,e){let n=t;for(;n<e&&n<this.destructedValue.length;){const t=this.destructedValue[n];t instanceof ga&&(t.char=null),++n}}calculateCursorPosition(t,e){const n=this.firstEmptyHolderIndex();let r;r=t.start<n?Math.min(this.firstHolderAfter(e),this.value.length):n,this.cursorPos=r}calculateInsertableSubstring(t,e){let n="",r=e;const o=()=>{for(var t;r<this.destructedValue.length&&!(this.destructedValue[r]instanceof ga);)++r;return null===(t=this.destructedValue[r])||void 0===t?void 0:t.filter};return t.split("").forEach((t=>{const e=o();null!=e&&e.test(t)&&(n+=t,++r)})),n}collectValueRange(t,e){let n="",r=t;for(;r<=e;){const t=this.destructedValue[r];t instanceof ga&&null!==t.char&&(n+=t.char),++r}return n}replaceChars(t,e,n){let r=this.calculateInsertableSubstring(t,e);void 0!==n&&(r=r.substring(0,n));let o=e,i=0;for(;o<this.destructedValue.length&&i<r.length;){const t=this.destructedValue[o],e=r[i];t instanceof ga&&(t.char=e,++i),++o}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof ga);)++e;return e}}class va extends ma{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function ya(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class $a extends ma{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1?arguments[1]:void 0;super({pattern:"",decoding:[],alwaysVisible:!1}),ya(this,"currencyFormatter",new Intl.NumberFormat),ya(this,"decimalSeparator","."),ya(this,"localeDigits",{}),ya(this,"trimZeroRegExp",new RegExp("")),this.logError=e,this.initFormatter(t)}updateCurrencyParams(t){const e=this.parseFormat(this.rawValue)||0;this.initFormatter(t);const n=e.toString().replace(".",this.decimalSeparator);this.applyChangeFrom(n)}initFormatter(t){try{this.currencyFormatter=new Intl.NumberFormat(t,{minimumFractionDigits:2,maximumFractionDigits:2}),this.decimalSeparator=this.currencyFormatter.format(0)[1],this.localeDigits=new Array(10).fill("").reduce(((t,e,n)=>(t[n]=this.currencyFormatter.format(n)[0],t)),{}),this.trimZeroRegExp=new RegExp("^".concat(this.localeDigits[0],"+"))}catch(e){this.onException(oe(e,{level:"error",additional:{locale:t}}))}}invalidateMaskDataForFormatted(t){const e=this.currencyFormatter.format(t),n=this.formatPattern(e),r=[{key:"#",filter:"[".concat([...Object.values(this.localeDigits)].join(""),"]"),placeholder:this.localeDigits[0]},{key:this.decimalSeparator,filter:"[".concat(this.decimalSeparator,"]"),placeholder:this.decimalSeparator}];this.updateMaskData({pattern:n,decoding:r,alwaysVisible:this.maskData.alwaysVisible},!1)}overrideRawValue(t){const e=this.parseFormat(t)||0;this.invalidateMaskDataForFormatted(e),super.overrideRawValue(t)}applyChangeFrom(t,e){const n=pa(this.value,t),r=this.value.lastIndexOf(this.decimalSeparator),o=t.lastIndexOf(this.decimalSeparator),i=r!==o||-1===r&&-1===o,a=this.validFormat(t,n);this.cleanup(n);const s=this.parseFormat(a)||0;i&&this.invalidateMaskDataForFormatted(s),this.replaceChars(a,0),this.value.length>n.start&&!this.isDigit(this.value[n.start])?this.cursorPos=null!=e?e:this.cursorPosition:this.cursorPos=Math.abs(this.value.length-(t.length-(null!=e?e:this.cursorPosition)))}parseFormat(t){return parseFloat(t.replace(/./g,(t=>this.localeDigits[t]||(t===this.decimalSeparator?".":""))))}formatPattern(t){let e="";for(const n of t)e+=this.isDigit(n)?"#":n;return e}validFormat(t,e){if(!t)return"";let n=-1,r=0;for(;r<t.length;){if(t[r]===this.decimalSeparator&&!this.inDiff(e,r)){n=r;break}r++}let o=-1;1===e.added&&0===e.removed&&[",","."].includes(t[e.start])&&(o=e.start);const i=this.currencyFormatter.resolvedOptions().maximumFractionDigits;let a=i;if(-1!==n)for(r=n;r<t.length;)this.isDigit(t[r])&&!this.inDiff(e,r)&&a--,r++;else{let n=!1;for(let r=0;r<t.length;r++){const o=t[r];o===this.decimalSeparator?n=!0:!this.inDiff(e,r)&&n&&this.isDigit(o)&&a--}}const s=t.includes(this.decimalSeparator)||-1!==o,l=[];r=t.length-1;let c=!1;for(;r>=0;){const u=t[r],d=l.length<=i;this.isDigit(u)?this.inDiff(e,r)&&!c&&s?a>0&&(l.push(u),a--):l.push(u):d&&-1===n&&r===o?(l.push(this.decimalSeparator),c=!0):!d||u!==this.decimalSeparator||n!==r&&-1!==n||(l.push(this.decimalSeparator),c=!0,n=r),r--}return l.reverse().join("").replace(this.trimZeroRegExp,"")}inDiff(t,e){return t.start<=e&&e<t.start+t.added}isDigit(t){return Boolean(this.localeDigits[t])}onException(t){this.logError(t)}}const ba=3;function _a(t){const e=t.textContent;let n=0;return"string"==typeof e&&(n+=e.length,t instanceof HTMLElement&&("DIV"===t.tagName||"BR"===t.tagName)&&++n),n}function wa(t,e){if(t.nodeType!==ba)if(t instanceof HTMLElement&&"BR"===t.tagName)try{const e=window.getSelection();if(e){e.removeAllRanges();const n=document.createRange(),r=t.parentNode,o=Array.from(r.childNodes).indexOf(t)+1;n.setStart(r,o),n.setEnd(r,o),e.addRange(n)}}catch(t){}else for(let n=0,r=t.childNodes.length;n<r;++n){const r=t.childNodes[n],o=_a(r);if(e<=o)return void wa(r,e);e-=o}else try{const n=window.getSelection();if(n){n.removeAllRanges();const r=document.createRange();r.setStart(t,e),r.setEnd(t,e),n.addRange(r)}}catch(t){}}function xa(t){let e,n;return e=new bn({props:{cls:Ee("input",da,t[16]),style:t[15],customDescription:!0,customActions:"input",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[Va,t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return{95:e,96:n,97:r}},t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return[0,0,0,(e?4:0)|(n?8:0)|(r?16:0)]}]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.cls=Ee("input",da,t[16])),32768&n[0]&&(r.style=t[15]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),157564&n[0]|32&n[1]|60&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function ka(t){let e,n,r,o,i,a;return{c(){e=T("input"),W(e,"type",t[8]),W(e,"inputmode",t[9]),W(e,"class",n=Ee("input__input",da,{"has-custom-focus":t[97],singleline:!0})),W(e,"autocomplete","off"),W(e,"autocapitalize","off"),W(e,"aria-label",t[10]),W(e,"style",r=se(t[14])),e.disabled=o=!t[4],W(e,"placeholder",t[17]),e.value=t[3]},m(n,r){O(n,e,r),t[86](e),i||(a=[U(e,"input",t[38]),U(e,"mousedown",(function(){l(t[36]?t[39]:void 0)&&(t[36]?t[39]:void 0).apply(this,arguments)})),U(e,"click",(function(){l(t[36]?t[40]:void 0)&&(t[36]?t[40]:void 0).apply(this,arguments)})),U(e,"focus",(function(){l(t[95])&&t[95].apply(this,arguments)})),U(e,"blur",(function(){l(t[96])&&t[96].apply(this,arguments)}))],i=!0)},p(i,a){t=i,256&a[0]&&W(e,"type",t[8]),512&a[0]&&W(e,"inputmode",t[9]),16&a[3]&&n!==(n=Ee("input__input",da,{"has-custom-focus":t[97],singleline:!0}))&&W(e,"class",n),1024&a[0]&&W(e,"aria-label",t[10]),16384&a[0]&&r!==(r=se(t[14]))&&W(e,"style",r),16&a[0]&&o!==(o=!t[4])&&(e.disabled=o),131072&a[0]&&W(e,"placeholder",t[17]),8&a[0]&&e.value!==t[3]&&(e.value=t[3])},d(n){n&&I(e),t[86](null),i=!1,s(a)}}}function Ca(t){let e,n,r,o,i,a,s,l,c=!t[6]&&t[17]&&Ea(t);function u(t,e){return t[4]?ja:Aa}let d=u(t),p=d(t);return{c(){e=T("span"),c&&c.c(),n=B(),r=T("span"),o=R(""),s=B(),p.c(),W(r,"class",i=da.input__aligner),W(r,"aria-hidden","true"),W(r,"style",a=se(t[13])),W(e,"class",l=da["input__scroll-wrapper"])},m(t,i){O(t,e,i),c&&c.m(e,null),S(e,n),S(e,r),S(r,o),S(e,s),p.m(e,null)},p(t,o){!t[6]&&t[17]?c?c.p(t,o):(c=Ea(t),c.c(),c.m(e,n)):c&&(c.d(1),c=null),8192&o[0]&&a!==(a=se(t[13]))&&W(r,"style",a),d===(d=u(t))&&p?p.p(t,o):(p.d(1),p=d(t),p&&(p.c(),p.m(e,null)))},d(t){t&&I(e),c&&c.d(),p.d()}}}function Ea(t){let e,n,r,o;return{c(){e=T("div"),n=R(t[17]),W(e,"class",r=da.input__placeholder),W(e,"aria-hidden","true"),W(e,"style",o=se(t[14]))},m(t,r){O(t,e,r),S(e,n)},p(t,r){131072&r[0]&&K(n,t[17]),16384&r[0]&&o!==(o=se(t[14]))&&W(e,"style",o)},d(t){t&&I(e)}}}function Aa(t){let e,n,r,o,i;return{c(){e=T("span"),W(e,"class",n=Ee("input__input",da,{multiline:!0})),W(e,"autocapitalize","off"),W(e,"contenteditable","false"),W(e,"role","textbox"),W(e,"aria-label",t[10]),W(e,"aria-disabled","true"),W(e,"aria-multiline","true"),W(e,"style",r=se(t[14])),void 0===t[6]&&wt((()=>t[85].call(e)))},m(n,r){O(n,e,r),t[84](e),void 0!==t[6]&&(e.innerText=t[6]),o||(i=U(e,"input",t[85]),o=!0)},p(t,n){1024&n[0]&&W(e,"aria-label",t[10]),16384&n[0]&&r!==(r=se(t[14]))&&W(e,"style",r),64&n[0]&&t[6]!==e.innerText&&(e.innerText=t[6])},d(n){n&&I(e),t[84](null),o=!1,i()}}}function ja(t){let e,n,r,o,i;return{c(){e=T("span"),W(e,"class",n=Ee("input__input",da,{"has-custom-focus":t[97],multiline:!0})),W(e,"autocapitalize","off"),W(e,"contenteditable","true"),W(e,"role","textbox"),W(e,"tabindex","0"),W(e,"aria-label",t[10]),W(e,"aria-multiline","true"),W(e,"style",r=se(t[14])),void 0===t[6]&&wt((()=>t[83].call(e)))},m(n,r){O(n,e,r),t[82](e),void 0!==t[6]&&(e.innerText=t[6]),o||(i=[U(e,"input",t[83]),U(e,"input",t[38]),U(e,"paste",Pa),U(e,"mousedown",(function(){l(t[36]?t[39]:void 0)&&(t[36]?t[39]:void 0).apply(this,arguments)})),U(e,"click",(function(){l(t[36]?t[40]:void 0)&&(t[36]?t[40]:void 0).apply(this,arguments)})),U(e,"focus",(function(){l(t[95])&&t[95].apply(this,arguments)})),U(e,"blur",(function(){l(t[96])&&t[96].apply(this,arguments)}))],o=!0)},p(o,i){t=o,16&i[3]&&n!==(n=Ee("input__input",da,{"has-custom-focus":t[97],multiline:!0}))&&W(e,"class",n),1024&i[0]&&W(e,"aria-label",t[10]),16384&i[0]&&r!==(r=se(t[14]))&&W(e,"style",r),64&i[0]&&t[6]!==e.innerText&&(e.innerText=t[6])},d(n){n&&I(e),t[82](null),o=!1,s(i)}}}function Va(t){let e;function n(t,e){return t[5]?Ca:ka}let r=n(t),o=r(t);return{c(){o.c(),e=L()},m(t,n){o.m(t,n),O(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){t&&I(e),o.d(t)}}}function Fa(t){let e,n,r=!t[7]&&xa(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[7]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),128&n[0]&&Nt(r,1)):(r=xa(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}const Da="undefined"!=typeof document&&"inputMode"in document.createElement("input"),Sa={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url",password:"password"};function Pa(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function Na(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,M,T,z,R,B,L,U,W,H,q,J,G,K,X,Y,Z,Q,tt,et,nt,rt=n,ot=n,it=n,at=n,st=n,ct=n,dt=n,ft=n,ht=n,mt=n,vt=n,yt=n,$t=n,bt=n,wt=n,xt=n,kt=n,Ct=n,Et=n,At=n;var jt;t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>ct())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ft())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>mt())),t.$$.on_destroy.push((()=>vt())),t.$$.on_destroy.push((()=>yt())),t.$$.on_destroy.push((()=>$t())),t.$$.on_destroy.push((()=>bt())),t.$$.on_destroy.push((()=>wt())),t.$$.on_destroy.push((()=>xt())),t.$$.on_destroy.push((()=>kt())),t.$$.on_destroy.push((()=>Ct())),t.$$.on_destroy.push((()=>Et())),t.$$.on_destroy.push((()=>At()));let{componentContext:Vt}=e,{layoutParams:Ft}=e;const Dt=pt(re),St=Dt.direction;let Pt,Nt;f(t,St,(t=>r(65,z=t)));let Ot,It,Mt,Tt=!1,zt=null,Rt="",Bt="",Lt=!1,Ut="",Wt=12,Ht="",qt="",Jt="#000",Gt="",Kt="start",Xt="center",Yt="multi_line_text",Zt="text",Qt="",te=null,ee="",ne="",ie="",ae=!0;function se(t){Nt instanceof HTMLInputElement?r(2,Nt.selectionStart=r(2,Nt.selectionEnd=t,Nt),Nt):wa(Nt,t)}async function ue(){if(!Nt||!zt)return;zt.overrideRawValue(M),l.set(zt.rawValue),$(s,I=r(3,Rt=r(6,Bt=zt.value)),I);const t=zt.cursorPosition;await _t(),document.activeElement===Nt&&se(t)}return lt((()=>{Nt&&zt&&M&&(zt.overrideRawValue(M),$(s,I=r(3,Rt=r(6,Bt=zt.value)),I))})),ut((()=>{Pt&&(Dt.unregisterFocusable(Pt),r(42,Pt=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,Vt=t.componentContext),"layoutParams"in t&&r(1,Ft=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(61,o=Vt.origJson),1073741824&t.$$.dirty[1]&&o&&(r(44,Ut=""),r(45,Wt=12),r(46,Ot=void 0),r(47,Ht=""),r(48,It=void 0),r(50,Jt="#000"),r(51,Gt=""),r(52,Kt="left"),r(53,Xt="center"),r(54,Yt="multi_line_text"),r(8,Zt="text"),r(9,Mt=void 0),r(4,ae=!0)),1&t.$$.dirty[0]&&r(59,i=Vt.json.text_variable),1&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(60,a=null===r(41,jt=Vt.json.mask)||void 0===jt?void 0:jt.raw_text_variable),1&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(12,s=i&&Vt.getVariable(i,"string")||Wi("temp","string","")),rt(),rt=p(s,(t=>r(62,I=t)))),1&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&(r(11,l=a&&Vt.getVariable(a,"string")||Wi("temp","string","")),ot(),ot=p(l,(t=>r(63,M=t)))),1&t.$$.dirty[0]&&(r(35,c=Vt.getDerivedFromVars(Vt.json.hint_text)),Et(),Et=p(c,(t=>r(81,et=t)))),1&t.$$.dirty[0]&&(r(34,u=Vt.getDerivedFromVars(Vt.json.hint_color)),Ct(),Ct=p(u,(t=>r(80,tt=t)))),1&t.$$.dirty[0]&&(r(33,d=Vt.getDerivedFromVars(Vt.json.font_size)),kt(),kt=p(d,(t=>r(79,Q=t)))),1&t.$$.dirty[0]&&(r(32,h=Vt.getDerivedFromVars(Vt.json.font_weight)),xt(),xt=p(h,(t=>r(78,Z=t)))),1&t.$$.dirty[0]&&(r(31,g=Vt.getDerivedFromVars(Vt.json.font_family)),wt(),wt=p(g,(t=>r(77,Y=t)))),1&t.$$.dirty[0]&&(r(30,m=Vt.getDerivedFromVars(Vt.json.line_height)),bt(),bt=p(m,(t=>r(76,X=t)))),1&t.$$.dirty[0]&&(r(29,v=Vt.getDerivedFromVars(Vt.json.letter_spacing)),$t(),$t=p(v,(t=>r(75,K=t)))),1&t.$$.dirty[0]&&(r(28,y=Vt.getDerivedFromVars(Vt.json.text_color)),yt(),yt=p(y,(t=>r(74,G=t)))),1&t.$$.dirty[0]&&(r(27,b=Vt.getDerivedFromVars(Vt.json.highlight_color)),vt(),vt=p(b,(t=>r(73,J=t)))),1&t.$$.dirty[0]&&(r(26,_=Vt.getDerivedFromVars(Vt.json.text_alignment_horizontal)),mt(),mt=p(_,(t=>r(72,q=t)))),1&t.$$.dirty[0]&&(r(25,w=Vt.getDerivedFromVars(Vt.json.text_alignment_vertical)),ht(),ht=p(w,(t=>r(71,H=t)))),1&t.$$.dirty[0]&&(r(24,x=Vt.getDerivedFromVars(Vt.json.keyboard_type)),dt(),dt=p(x,(t=>r(69,U=t)))),1&t.$$.dirty[0]&&(r(23,k=Vt.getDerivedFromVars(Vt.json.mask)),ct(),ct=p(k,(t=>r(68,L=t)))),1&t.$$.dirty[0]&&(r(22,C=Vt.getDerivedFromVars(Vt.json.max_visible_lines)),st(),st=p(C,(t=>r(67,B=t)))),1&t.$$.dirty[0]&&(r(21,E=Vt.getDerivedFromVars(Vt.json.paddings)),at(),at=p(E,(t=>r(66,R=t)))),1&t.$$.dirty[0]&&(r(20,A=Vt.getDerivedFromVars(Vt.json.accessibility)),it(),it=p(A,(t=>r(64,T=t)))),1&t.$$.dirty[0]&&(r(19,j=Vt.getDerivedFromVars(Vt.json.select_all_on_focus)),At(),At=p(j,(t=>r(36,nt=t)))),1&t.$$.dirty[0]&&(r(18,V=Vt.getDerivedFromVars(Vt.json.is_enabled)),ft(),ft=p(V,(t=>r(70,W=t)))),1&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(i?r(7,Lt=!1):(r(7,Lt=!0),Vt.logError(oe(new Error('Missing "text_variable" in "input"'))))),64&t.$$.dirty[2]&&("fixed_length"===(null==(e=L)?void 0:e.type)?r(43,zt=function(t,e,n){if("string"==typeof t.pattern&&Array.isArray(t.pattern_elements)&&t.pattern_elements.every((t=>t.key&&"string"==typeof t.key))){const r={pattern:t.pattern,alwaysVisible:Boolean(t.always_visible),decoding:t.pattern_elements.map((t=>({key:t.key,filter:t.regex&&"string"==typeof t.regex?t.regex:void 0,placeholder:t.placeholder&&"string"==typeof t.placeholder?t.placeholder:"_"})))};return n?(n.updateMaskData(r),n):new va(r,e)}return n||null}(e,Vt.logError,zt)):"currency"===(null==e?void 0:e.type)&&r(43,zt=function(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new $a(t.locale,e)}(e,Vt.logError,zt)),zt&&ue()),8&t.$$.dirty[0]|4096&t.$$.dirty[1]|1&t.$$.dirty[2]&&(zt||Rt===I||r(3,Rt=r(6,Bt=I))),4096&t.$$.dirty[1]|2&t.$$.dirty[2]&&zt&&zt.rawValue!==M&&ue(),524288&t.$$.dirty[2]&&r(17,F=et),8192&t.$$.dirty[1]|262144&t.$$.dirty[2]&&r(44,Ut=de(tt,1,Ut)),16384&t.$$.dirty[1]|131072&t.$$.dirty[2]&&r(45,Wt=wn(Q,Wt)),32768&t.$$.dirty[1]|98304&t.$$.dirty[2]&&(r(46,Ot=kn(Z,Ot)),r(47,Ht=Y&&"string"==typeof Y?Dt.typefaceProvider(Y,{fontWeight:Ot||400}):"")),16384&t.$$.dirty[1]|16384&t.$$.dirty[2]){const t=X;Ze(t)&&r(48,It=t/Wt)}var e;8192&t.$$.dirty[2]&&Ve(K)&&r(49,qt=le(K)),524288&t.$$.dirty[1]|4096&t.$$.dirty[2]&&r(50,Jt=de(G,1,Jt)),1048576&t.$$.dirty[1]|2048&t.$$.dirty[2]&&r(51,Gt=de(J,1,Gt)),2097152&t.$$.dirty[1]|1032&t.$$.dirty[2]&&r(52,Kt=Fn(q,z,Kt)),4194304&t.$$.dirty[1]|512&t.$$.dirty[2]&&r(53,Xt=Dn(H,Xt)),16&t.$$.dirty[0]|256&t.$$.dirty[2]&&r(4,ae=Sn(W,ae)),192&t.$$.dirty[2]&&(U&&U in Sa&&(r(8,Zt=Sa[U]),r(54,Yt=U)),"currency"===(null==L?void 0:L.type)&&(r(8,Zt=Da?"text":"tel"),r(9,Mt="decimal"))),8388608&t.$$.dirty[1]&&r(5,D="multi_line_text"===Yt),33701888&t.$$.dirty[1]|56&t.$$.dirty[2]&&(Ze(B)?r(55,Qt="calc(".concat(B*(It||1.25)*(Wt/10)+"em"," + ").concat(ce(we(null==R?void 0:R.top,0)+we(null==R?void 0:R.bottom,0)),")")):r(55,Qt=""),r(56,te=Te(R||void 0,te)),r(57,ee=te?je({top:(Number(te.top)||0)/Wt*10,right:(Number("ltr"===z?te.end:te.start)||Number(te.right)||0)/Wt*10,bottom:(Number(te.bottom)||0)/Wt*10,left:(Number("ltr"===z?te.start:te.end)||Number(te.left)||0)/Wt*10},z):""),r(58,ne=te?je({top:(Number(te.top)||0)/Wt*10,bottom:(Number(te.bottom)||0)/Wt*10},z):"")),1&t.$$.dirty[0]|4&t.$$.dirty[2]&&((null==T?void 0:T.description)?r(10,ie=T.description):Vt.logError(oe(new Error('Missing accessibility "description" for input'),{level:"warn"}))),32&t.$$.dirty[0]|7340032&t.$$.dirty[1]&&r(16,S={"highlight-color":Boolean(Gt),multiline:D,"alignment-horizontal":Kt,"alignment-vertical":Xt}),18849792&t.$$.dirty[1]&&r(15,P={"--divkit-input-hint-color":Ut,"--divkit-input-highlight-color":Gt,"--divkit-input-line-height":It,"font-weight":Ot,"font-family":Ht,"letter-spacing":qt,color:Jt,"max-height":Qt}),67125248&t.$$.dirty[1]&&r(14,N={"font-size":le(Wt),padding:ee}),134234112&t.$$.dirty[1]&&r(13,O={"font-size":le(Wt),padding:ne}),5&t.$$.dirty[0]|2048&t.$$.dirty[1]&&Nt&&Vt.json&&(Pt&&(Dt.unregisterFocusable(Pt),r(42,Pt=void 0)),Vt.json.id&&!Vt.fakeElement&&(r(42,Pt=Vt.json.id),Dt.registerFocusable(Pt,{focus(){Nt&&Nt.focus()}})))},[Vt,Ft,Nt,Rt,ae,D,Bt,Lt,Zt,Mt,ie,l,s,O,N,P,S,F,V,j,A,E,C,k,x,w,_,b,y,v,m,g,h,d,u,c,nt,St,function(t){let e=(D?t.target.innerText:t.target.value)||"";"\n"===e&&(e=""),Rt!==e&&(r(3,Rt=r(6,Bt=e)),s.setValue(e),zt&&async function(){if(!Nt||!zt)return;zt.applyChangeFrom(Rt,Nt instanceof HTMLInputElement?null===Nt.selectionEnd?void 0:Nt.selectionEnd:function(t){try{let n=0;const r=window.getSelection();if(!r)return 0;const o=r.getRangeAt(0);let i;if(o){if(!o.collapsed)return 0;n+=o.endOffset,i=o.endContainer}if(i instanceof HTMLElement){let t=0;for(let e=0,r=Math.min(n,i.childNodes.length);e<r;++e)t+=_a(i.childNodes[e]);n=t}for(;i&&i!==t;){var e;const t=i.parentNode;if(!t)return 0;const r=Array.from(t.childNodes).indexOf(i);for(let e=0;e<r;++e)n+=_a(t.childNodes[e]);i instanceof HTMLElement&&("DIV"===i.tagName&&(null===(e=t.childNodes[r-1])||void 0===e?void 0:e.nodeType)===ba||"BR"===i.tagName)&&++n,i=t}return n}catch(t){return 0}}(Nt)),l.set(zt.rawValue),$(s,I=r(3,Rt=r(6,Bt=zt.value)),I);const t=zt.cursorPosition;await _t(),document.activeElement===Nt&&se(t)}())},function(){Tt=!1,setTimeout((()=>{Tt=!0}),250)},function(){if(!Tt)if(Nt instanceof HTMLInputElement)Nt.select();else{const t=window.getSelection(),e=document.createRange();e.selectNodeContents(Nt),t&&(t.removeAllRanges(),t.addRange(e))}},jt,Pt,zt,Ut,Wt,Ot,Ht,It,qt,Jt,Gt,Kt,Xt,Yt,Qt,te,ee,ne,i,a,o,I,M,T,z,R,B,L,U,W,H,q,J,G,K,X,Y,Z,Q,tt,et,function(t){gt[t?"unshift":"push"]((()=>{Nt=t,r(2,Nt)}))},function(){Bt=this.innerText,r(6,Bt),r(43,zt),r(3,Rt),r(62,I)},function(t){gt[t?"unshift":"push"]((()=>{Nt=t,r(2,Nt)}))},function(){Bt=this.innerText,r(6,Bt),r(43,zt),r(3,Rt),r(62,I)},function(t){gt[t?"unshift":"push"]((()=>{Nt=t,r(2,Nt)}))}]}const Oa={select:"divkit-feef3","select__select-text":"divkit-cd862",select_hint:"divkit-a3cf6",select__select:"divkit-bdb72","select__select_has-custom-focused":"divkit-a46ad","has-custom-focused":"divkit-fc5dc",select__option:"divkit-e774b"};function Ia(t,e,n){const r=t.slice();return r[55]=e[n],r}function Ma(t){let e,n;return e=new bn({props:{cls:Ee("select",Oa,t[11]),style:t[10],customDescription:!0,customActions:"select",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[za,t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return{52:e,53:n,54:r}},t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return[0,(e?2097152:0)|(n?4194304:0)|(r?8388608:0)]}]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Ee("select",Oa,t[11])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),8389564&n[0]|148897792&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Ta(t){let e,n,r,o,i=(t[55].text||t[55].value)+"";return{c(){e=T("option"),n=R(i),W(e,"class",r=Oa.select__option),e.__value=o=t[55].value,X(e,e.__value)},m(t,r){O(t,e,r),S(e,n)},p(t,r){16&r[0]&&i!==(i=(t[55].text||t[55].value)+"")&&K(n,i),16&r[0]&&o!==(o=t[55].value)&&(e.__value=o,X(e,e.__value))},d(t){t&&I(e)}}}function za(t){let e,n,r,o,i,a,c,u,d,p,f=(t[3]||t[23]||"")+"",h=zt(t[4]),g=[];for(let e=0;e<h.length;e+=1)g[e]=Ta(Ia(t,h,e));return{c(){e=T("span"),n=R(f),i=B(),a=T("select");for(let t=0;t<g.length;t+=1)g[t].c();W(e,"class",r=Oa["select__select-text"]),W(e,"style",o=se(t[9])),W(e,"aria-hidden","true"),W(a,"class",c=Ee("select__select",Oa,{"has-custom-focus":t[52]})),W(a,"aria-label",t[7]),W(a,"style",u=se(t[8])),void 0===t[5]&&wt((()=>t[49].call(a)))},m(r,o){O(r,e,o),S(e,n),O(r,i,o),O(r,a,o);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(a,null);t[48](a),Z(a,t[5],!0),d||(p=[U(a,"change",t[49]),U(a,"focus",(function(){l(t[53])&&t[53].apply(this,arguments)})),U(a,"blur",(function(){l(t[54])&&t[54].apply(this,arguments)}))],d=!0)},p(r,i){if(t=r,8388616&i[0]&&f!==(f=(t[3]||t[23]||"")+"")&&K(n,f),512&i[0]&&o!==(o=se(t[9]))&&W(e,"style",o),16&i[0]){let e;for(h=zt(t[4]),e=0;e<h.length;e+=1){const n=Ia(t,h,e);g[e]?g[e].p(n,i):(g[e]=Ta(n),g[e].c(),g[e].m(a,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=h.length}2097152&i[1]&&c!==(c=Ee("select__select",Oa,{"has-custom-focus":t[52]}))&&W(a,"class",c),128&i[0]&&W(a,"aria-label",t[7]),256&i[0]&&u!==(u=se(t[8]))&&W(a,"style",u),48&i[0]&&Z(a,t[5])},d(n){n&&(I(e),I(i),I(a)),M(g,n),t[48](null),d=!1,s(p)}}}function Ra(t){let e,n,r=!t[6]&&Ma(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[6]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),64&n[0]&&Nt(r,1)):(r=Ma(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}function Ba(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,M=n,T=n,z=n,R=n,B=n,L=n,U=n,W=n,H=n,q=n,J=n;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J()));let{componentContext:G}=e,{layoutParams:K}=e;const X=pt(re),Y=X.direction;let Z,Q;f(t,Y,(t=>r(46,P=t)));let tt,et,nt=!1,rt="",ot=null,it="",at="rgba(0,0,0,.45)",st=12,lt="",ct="",dt="#000",ft="";return ut((()=>{Z&&(X.unregisterFocusable(Z),r(25,Z=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,G=t.componentContext),"layoutParams"in t&&r(1,K=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(37,o=G.origJson),64&t.$$.dirty[1]&&o&&(r(26,ot=null),r(28,at="rgba(0,0,0,.45)"),r(29,st=12),r(30,tt=void 0),r(31,lt=""),r(32,et=void 0),r(33,ct=""),r(34,dt="#000"),r(7,ft="")),1&t.$$.dirty[0]&&r(35,i=G.json.value_variable),1&t.$$.dirty[0]&&r(36,a=G.json.options),32&t.$$.dirty[1]&&r(4,s=Array.isArray(a)&&a.filter((t=>"string"==typeof t.value))||[]),1&t.$$.dirty[0]|16&t.$$.dirty[1]&&(r(22,l=i&&G.getVariable(i,"string")||Wi("temp","string","")),q(),q=p(l,(t=>r(5,O=t)))),1&t.$$.dirty[0]&&(r(21,c=G.getDerivedFromVars(G.json.paddings)),H(),H=p(c,(t=>r(47,N=t)))),1&t.$$.dirty[0]&&(r(20,u=G.getDerivedFromVars(G.json.hint_text)),J(),J=p(u,(t=>r(23,I=t)))),1&t.$$.dirty[0]&&(r(19,d=G.getDerivedFromVars(G.json.hint_color)),W(),W=p(d,(t=>r(45,S=t)))),1&t.$$.dirty[0]&&(r(18,h=G.getDerivedFromVars(G.json.font_size)),U(),U=p(h,(t=>r(44,D=t)))),1&t.$$.dirty[0]&&(r(17,g=G.getDerivedFromVars(G.json.font_weight)),L(),L=p(g,(t=>r(43,F=t)))),1&t.$$.dirty[0]&&(r(16,m=G.getDerivedFromVars(G.json.font_family)),B(),B=p(m,(t=>r(42,V=t)))),1&t.$$.dirty[0]&&(r(15,v=G.getDerivedFromVars(G.json.line_height)),R(),R=p(v,(t=>r(41,j=t)))),1&t.$$.dirty[0]&&(r(14,y=G.getDerivedFromVars(G.json.letter_spacing)),z(),z=p(y,(t=>r(40,A=t)))),1&t.$$.dirty[0]&&(r(13,$=G.getDerivedFromVars(G.json.text_color)),T(),T=p($,(t=>r(39,E=t)))),1&t.$$.dirty[0]&&(r(12,b=G.getDerivedFromVars(G.json.accessibility)),M(),M=p(b,(t=>r(38,C=t)))),17&t.$$.dirty[0]&&(Array.isArray(s)&&s.length||G.logError(oe(new Error('Empty selection "items" in "select"')))),1&t.$$.dirty[0]|16&t.$$.dirty[1]&&(i?r(6,nt=!1):(r(6,nt=!0),G.logError(oe(new Error('Missing "value_variable" in "select"'))))),49&t.$$.dirty[0]){const t=s.find((t=>t.value===O));t?r(3,rt=("string"==typeof t.text?t.text:t.value)||""):(r(3,rt=""),O&&G.logError(oe(new Error('Value from the variable was not found in the selection items for "select"'))))}if(536870912&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(29,st=wn(D,st)),603979776&t.$$.dirty[0]|98304&t.$$.dirty[1]&&(r(26,ot=Te(N||void 0,ot)),r(27,it=ot?je({top:(Number(ot.top)||0)/st*10,right:(Number("ltr"===P?ot.end:ot.start)||Number(ot.right)||0)/st*10,bottom:(Number(ot.bottom)||0)/st*10,left:(Number("ltr"===P?ot.start:ot.end)||Number(ot.left)||0)/st*10},P):"")),268435456&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(28,at=de(S,1,at)),1073741824&t.$$.dirty[0]|6144&t.$$.dirty[1]&&(r(30,tt=kn(F,tt)),r(31,lt=V&&"string"==typeof V?X.typefaceProvider(V,{fontWeight:tt||400}):"")),536870912&t.$$.dirty[0]|1024&t.$$.dirty[1]){const t=j;Ze(t)&&r(32,et=t/st)}536870912&t.$$.dirty[0]|512&t.$$.dirty[1]&&Ve(A)&&r(33,ct=le(A/st*10)),264&t.$$.dirty[1]&&r(34,dt=de(E,1,dt)),1&t.$$.dirty[0]|128&t.$$.dirty[1]&&((null==C?void 0:C.description)?r(7,ft=C.description):G.logError(oe(new Error('Missing accessibility "description" for select'),{level:"warn"}))),8&t.$$.dirty[0]&&r(11,_={hint:!rt}),1342177280&t.$$.dirty[0]|9&t.$$.dirty[1]&&r(10,w={"--divkit-input-hint-color":at,"font-weight":tt,"font-family":lt,color:dt}),671088640&t.$$.dirty[0]|6&t.$$.dirty[1]&&r(9,x={padding:it,"font-size":le(st),"line-height":et,"letter-spacing":ct}),536870912&t.$$.dirty[0]|6&t.$$.dirty[1]&&r(8,k={"font-size":le(st),"line-height":et,"letter-spacing":ct}),33554437&t.$$.dirty[0]&&G.json&&Q&&(Z&&(X.unregisterFocusable(Z),r(25,Z=void 0)),G.json.id&&!G.fakeElement&&(r(25,Z=G.json.id),X.registerFocusable(Z,{focus(){Q&&Q.focus()}})))},[G,K,Q,rt,s,O,nt,ft,k,x,w,_,b,$,y,v,m,g,h,d,u,c,l,I,Y,Z,ot,it,at,st,tt,lt,et,ct,dt,i,a,o,C,E,A,j,V,F,D,S,P,N,function(t){gt[t?"unshift":"push"]((()=>{Q=t,r(2,Q)}))},function(){O=function(t){const e=t.querySelector(":checked");return e&&e.__value}(this),l.set(O),r(4,s),r(36,a),r(0,G)}]}const La={video__video:"divkit-c11f9","video__aspect-wrapper":"divkit-cfe32",video_aspect:"divkit-a4f5c"};function Ua(t,e,n){const r=t.slice();return r[47]=e[n],r}function Wa(t,e,n){const r=t.slice();return r[47]=e[n],r}function Ha(t){let e,n;return e=new bn({props:{cls:Ee("video",La,t[12]),customActions:"video",componentContext:t[0],layoutParams:t[1],$$slots:{default:[Za]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=Ee("video",La,t[12])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),8184&n[0]|2097152&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function qa(t){let e,n,r,o,i,a,l=zt(t[4]),c=[];for(let e=0;e<l.length;e+=1)c[e]=Ka(Ua(t,l,e));return{c(){e=T("video");for(let t=0;t<c.length;t+=1)c[t].c();W(e,"class",n=La.video__video),W(e,"style",r=se(t[11])),e.playsInline=!0,e.loop=t[5],e.autoplay=t[6],e.muted=t[7],W(e,"poster",t[9]),W(e,"preload",o=t[8]?"metadata":"auto")},m(n,r){O(n,e,r);for(let t=0;t<c.length;t+=1)c[t]&&c[t].m(e,null);t[41](e),i||(a=[U(e,"timeupdate",t[21]),U(e,"ended",t[22]),U(e,"playing",t[23]),U(e,"pause",t[24]),U(e,"waiting",t[25]),U(e,"error",t[26])],i=!0)},p(t,n){if(67108880&n[0]){let r;for(l=zt(t[4]),r=0;r<l.length;r+=1){const o=Ua(t,l,r);c[r]?c[r].p(o,n):(c[r]=Ka(o),c[r].c(),c[r].m(e,null))}for(;r<c.length;r+=1)c[r].d(1);c.length=l.length}2048&n[0]&&r!==(r=se(t[11]))&&W(e,"style",r),32&n[0]&&(e.loop=t[5]),64&n[0]&&(e.autoplay=t[6]),128&n[0]&&(e.muted=t[7]),512&n[0]&&W(e,"poster",t[9]),256&n[0]&&o!==(o=t[8]?"metadata":"auto")&&W(e,"preload",o)},d(n){n&&I(e),M(c,n),t[41](null),i=!1,s(a)}}}function Ja(t){let e,n,r,o,i,a,l,c,u="".concat(t[10],"%"),d=zt(t[4]),p=[];for(let e=0;e<d.length;e+=1)p[e]=Ya(Wa(t,d,e));return{c(){e=T("div"),n=T("video");for(let t=0;t<p.length;t+=1)p[t].c();W(n,"class",r=La.video__video),W(n,"style",o=se(t[11])),n.playsInline=!0,n.loop=t[5],n.autoplay=t[6],n.muted=t[7],W(n,"poster",t[9]),W(n,"preload",i=t[8]?"metadata":"auto"),W(e,"class",a=La["video__aspect-wrapper"]),Y(e,"padding-bottom",u)},m(r,o){O(r,e,o),S(e,n);for(let t=0;t<p.length;t+=1)p[t]&&p[t].m(n,null);t[40](n),l||(c=[U(n,"timeupdate",t[21]),U(n,"ended",t[22]),U(n,"playing",t[23]),U(n,"pause",t[24]),U(n,"waiting",t[25]),U(n,"error",t[26])],l=!0)},p(t,r){if(67108880&r[0]){let e;for(d=zt(t[4]),e=0;e<d.length;e+=1){const o=Wa(t,d,e);p[e]?p[e].p(o,r):(p[e]=Ya(o),p[e].c(),p[e].m(n,null))}for(;e<p.length;e+=1)p[e].d(1);p.length=d.length}2048&r[0]&&o!==(o=se(t[11]))&&W(n,"style",o),32&r[0]&&(n.loop=t[5]),64&r[0]&&(n.autoplay=t[6]),128&r[0]&&(n.muted=t[7]),512&r[0]&&W(n,"poster",t[9]),256&r[0]&&i!==(i=t[8]?"metadata":"auto")&&W(n,"preload",i),1024&r[0]&&u!==(u="".concat(t[10],"%"))&&Y(e,"padding-bottom",u)},d(n){n&&I(e),M(p,n),t[40](null),l=!1,s(c)}}}function Ga(t){let e,n,r,o,i;return{c(){e=T("source"),u(e.src,n=t[47].src)||W(e,"src",n),W(e,"type",r=t[47].type)},m(n,r){O(n,e,r),o||(i=U(e,"error",t[26]),o=!0)},p(t,o){16&o[0]&&!u(e.src,n=t[47].src)&&W(e,"src",n),16&o[0]&&r!==(r=t[47].type)&&W(e,"type",r)},d(t){t&&I(e),o=!1,i()}}}function Ka(t){let e,n=t[47],r=Ga(t);return{c(){r.c(),e=L()},m(t,n){r.m(t,n),O(t,e,n)},p(t,o){16&o[0]&&d(n,n=t[47])?(r.d(1),r=Ga(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&I(e),r.d(t)}}}function Xa(t){let e,n,r,o,i;return{c(){e=T("source"),u(e.src,n=t[47].src)||W(e,"src",n),W(e,"type",r=t[47].type)},m(n,r){O(n,e,r),o||(i=U(e,"error",t[26]),o=!0)},p(t,o){16&o[0]&&!u(e.src,n=t[47].src)&&W(e,"src",n),16&o[0]&&r!==(r=t[47].type)&&W(e,"type",r)},d(t){t&&I(e),o=!1,i()}}}function Ya(t){let e,n=t[47],r=Xa(t);return{c(){r.c(),e=L()},m(t,n){r.m(t,n),O(t,e,n)},p(t,o){16&o[0]&&d(n,n=t[47])?(r.d(1),r=Xa(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&I(e),r.d(t)}}}function Za(t){let e;function n(t,e){return t[12].aspect?Ja:qa}let r=n(t),o=r(t);return{c(){o.c(),e=L()},m(t,n){o.m(t,n),O(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){t&&I(e),o.d(t)}}}function Qa(t){let e,n,r=!t[2]&&Ha(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[2]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),4&n[0]&&Nt(r,1)):(r=Ha(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}function ts(t,e,r){let o,i,a,s,l,c,u,d,f,h,g,m,v,y,$,b,_,w,x,k,C=n,E=n,A=n,j=n,V=n,F=n,D=n,S=n;t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>S()));let{componentContext:P}=e,{layoutParams:N}=e;const O=pt(re);let I,M,T,z,R=!1,B=!1,L=[],U=!1,W=!1,H=!1,q=!1,J="fit",G="0";function K(t){B?B=!1:M&&r(3,M.currentTime=Number(t)/1e3,M)}function X(){null==M||M.pause()}function Y(){const t=null==M?void 0:M.play();t&&t.catch((t=>{P.logError(oe(new Error("Video playing error"),{level:"error",additional:{originalText:String(t)}}))}))}return ut((()=>{I&&(O.unregisterInstance(I),r(27,I=void 0)),z&&(z(),r(29,z=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,P=t.componentContext),"layoutParams"in t&&r(1,N=t.layoutParams)},t.$$.update=()=>{var e,n;if(1&t.$$.dirty[0]&&P.json&&(r(5,U=!1),r(6,W=!1),r(7,H=!1),r(8,q=!1),r(9,T=void 0),r(28,J="fit")),1&t.$$.dirty[0]&&r(31,o=P.json.elapsed_time_variable),1&t.$$.dirty[0]|1&t.$$.dirty[1]&&r(30,i=o&&P.getVariable(o,"integer")||Wi("temp","integer",0)),1610612736&t.$$.dirty[0]&&i&&(z&&z(),r(29,z=i.subscribe(K))),1&t.$$.dirty[0]&&(r(20,a=P.getDerivedFromVars(P.json.video_sources)),S(),S=p(a,(t=>r(39,k=t)))),1&t.$$.dirty[0]&&(r(19,s=P.getDerivedFromVars(P.json.repeatable)),D(),D=p(s,(t=>r(38,x=t)))),1&t.$$.dirty[0]&&(r(18,l=P.getDerivedFromVars(P.json.autostart)),C(),C=p(l,(t=>r(32,v=t)))),1&t.$$.dirty[0]&&(r(17,c=P.getDerivedFromVars(P.json.muted)),F(),F=p(c,(t=>r(37,w=t)))),1&t.$$.dirty[0]&&(r(16,u=P.getDerivedFromVars(P.json.preload_required)),V(),V=p(u,(t=>r(36,_=t)))),1&t.$$.dirty[0]&&(r(15,d=P.getDerivedFromVars(P.json.preview)),j(),j=p(d,(t=>r(35,b=t)))),1&t.$$.dirty[0]&&(r(14,f=P.getDerivedFromVars(P.json.scale)),A(),A=p(f,(t=>r(34,$=t)))),1&t.$$.dirty[0]&&(r(13,h=P.getDerivedFromVars(P.json.aspect)),E(),E=p(h,(t=>r(33,y=t)))),17&t.$$.dirty[0]|256&t.$$.dirty[1]&&(r(4,(e=k,n=L,L=Array.isArray(e)&&e.length?e.filter((t=>"video_source"===(null==t?void 0:t.type)&&"string"==typeof t.url&&"string"==typeof t.mime_type)).map((t=>{const e={src:t.url};return t.mime_type&&(e.type=t.mime_type),e})):n)),L.length?r(2,R=!1):(r(2,R=!0),P.logError(oe(new Error('Missing "video_sources" in "video"'))))),32&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(5,U=Sn(x,U)),64&t.$$.dirty[0]|2&t.$$.dirty[1]&&r(6,W=Sn(v,W)),128&t.$$.dirty[0]|64&t.$$.dirty[1]&&r(7,H=Sn(w,H)),256&t.$$.dirty[0]|32&t.$$.dirty[1]&&r(8,q=Sn(_,q)),512&t.$$.dirty[0]|16&t.$$.dirty[1]&&r(9,T="string"==typeof b?Vr(b):T),268435456&t.$$.dirty[0]|8&t.$$.dirty[1]&&r(28,J=function(t){return"fill"===t?"cover":"no_scale"===t?"none":"contain"}($)||J),4&t.$$.dirty[1]){const t=null==y?void 0:y.ratio;t&&Ze(t)?r(10,G=(100/Number(t)).toFixed(2)):r(10,G="0")}134217733&t.$$.dirty[0]&&P.json&&(I&&(O.unregisterInstance(I),r(27,I=void 0)),!P.json.id||R||P.fakeElement||(r(27,I=P.json.id),O.registerInstance(I,{pause:X,start:Y}))),9&t.$$.dirty[0]|2&t.$$.dirty[1]&&P.json&&v&&M&&Y(),1024&t.$$.dirty[0]&&r(12,g={aspect:"0"!==G}),268435456&t.$$.dirty[0]&&r(11,m={"object-fit":J})},[P,N,R,M,L,U,W,H,q,T,G,m,g,h,f,d,u,c,l,s,a,function(){M&&(B=!0,i.setValue(Math.floor(1e3*M.currentTime)))},function(){const t=P.getJsonWithVars(P.json.end_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(P.json.resume_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(P.json.pause_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(P.json.buffering_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(P.json.fatal_actions);P.execAnyActions(t)},I,J,z,i,o,v,y,$,b,_,w,x,k,function(t){gt[t?"unshift":"push"]((()=>{M=t,r(3,M)}))},function(t){gt[t?"unshift":"push"]((()=>{M=t,r(3,M)}))}]}function es(t,e,n){const r=t.slice();return r[12]=e[n],r}function ns(t){let e,n;return e=new bn({props:{componentContext:t[0],layoutParams:t[1],$$slots:{default:[ls]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.componentContext=t[0]),2&n&&(r.layoutParams=t[1]),33277&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function rs(t){let e,n=[t[7]],r={};for(let t=0;t<n.length;t+=1)r=o(r,n[t]);return{c(){e=T("template"),q(e,r)},m(n,r){O(n,e,r),e.content.innerHTML=t[6]},p(t,o){64&o&&(e.content.innerHTML=t[6]),q(e,r=Lt(n,[128&o&&t[7]]))},d(t){t&&I(e)}}}function os(t){let e,r,o=t[4],i=as(t);return{c(){i.c(),e=L()},m(t,n){i.m(t,n),O(t,e,n),r=!0},p(t,r){16&r&&d(o,o=t[4])?(St(),Ot(i,1,1,n),Pt(),i=as(t),i.c(),Nt(i,1),i.m(e.parentNode,e)):i.p(t,r)},i(t){r||(Nt(i),r=!0)},o(t){Ot(i),r=!1},d(t){t&&I(e),i.d(t)}}}function is(t){let e,n;return e=new gs({props:{componentContext:t[12]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};256&n&&(r.componentContext=t[12]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function as(t){let e,n,r=zt(t[8]),o=[];for(let e=0;e<r.length;e+=1)o[e]=is(es(t,r,e));const i=t=>Ot(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=L()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);O(t,e,r),n=!0},p(t,n){if(256&n){let a;for(r=zt(t[8]),a=0;a<r.length;a+=1){const i=es(t,r,a);o[a]?(o[a].p(i,n),Nt(o[a],1)):(o[a]=is(i),o[a].c(),Nt(o[a],1),o[a].m(e.parentNode,e))}for(St(),a=r.length;a<o.length;a+=1)i(a);Pt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Nt(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Ot(o[t]);n=!1},d(t){t&&I(e),M(o,t)}}}function ss(t){let e,n,r,i=t[6]&&rs(t),a=!t[3]&&t[4]&&os(t),s=[t[0].json.custom_props||{}],l={};for(let t=0;t<s.length;t+=1)l=o(l,s[t]);return{c(){e=T(t[2].element),i&&i.c(),n=B(),a&&a.c(),G(t[2].element)(e,l)},m(o,s){O(o,e,s),i&&i.m(e,null),S(e,n),a&&a.m(e,null),t[10](e),r=!0},p(t,r){t[6]?i?i.p(t,r):(i=rs(t),i.c(),i.m(e,n)):i&&(i.d(1),i=null),!t[3]&&t[4]?a?(a.p(t,r),24&r&&Nt(a,1)):(a=os(t),a.c(),Nt(a,1),a.m(e,null)):a&&(St(),Ot(a,1,1,(()=>{a=null})),Pt()),G(t[2].element)(e,l=Lt(s,[1&r&&(t[0].json.custom_props||{})]))},i(t){r||(Nt(a),r=!0)},o(t){Ot(a),r=!1},d(n){n&&I(e),i&&i.d(),a&&a.d(),t[10](null)}}}function ls(t){let e,r,o=t[2].element,i=t[2].element&&ss(t);return{c(){i&&i.c(),e=L()},m(t,n){i&&i.m(t,n),O(t,e,n)},p(t,n){t[2].element?o?d(o,t[2].element)?(i.d(1),i=ss(t),o=t[2].element,i.c(),i.m(e.parentNode,e)):i.p(t,n):(i=ss(t),o=t[2].element,i.c(),i.m(e.parentNode,e)):o&&(i.d(1),i=null,o=t[2].element)},i:n,o(t){Ot(i,t),r=!1},d(t){t&&I(e),i&&i.d(t)}}}function cs(t){let e,n,r=t[2]&&ns(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){let[o]=n;t[2]?r?(r.p(t,o),4&o&&Nt(r,1)):(r=ns(t),r.c(),Nt(r,1),r.m(e.parentNode,e)):r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt())},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}function us(t,e,n){let r,o;var i;let{componentContext:a}=e,{layoutParams:s}=e;const l=pt(re);let c,u=null,d="",p={},f=!1;return lt((()=>{if(c&&"divKitApiCallback"in c&&"function"==typeof c.divKitApiCallback){const t=l.getExtensionContext();c.divKitApiCallback(t)}})),t.$$set=t=>{"componentContext"in t&&n(0,a=t.componentContext),"layoutParams"in t&&n(1,s=t.layoutParams)},t.$$.update=()=>{if(517&t.$$.dirty)if("string"==typeof a.json.custom_type&&a.json.custom_type&&(null===n(9,i=l.customComponents)||void 0===i?void 0:i.has(a.json.custom_type))){if(n(2,u=l.customComponents.get(a.json.custom_type)),"function"==typeof u.template){const t=l.getExtensionContext(),e=new Map;for(const[n,r]of t.variables)e.set(n,r.getValue());n(6,d=u.template({props:a.json.custom_props,variables:e}))}else u.template&&"string"==typeof u.template?n(6,d=u.template):n(6,d="");n(7,p={shadowrootmode:u.shadowRootMode||"open"})}else n(2,u=null),n(6,d=";"),a.logError(oe(new Error('Unknown or incorrect "custom_type" prop for div "custom"')));1&t.$$.dirty&&n(4,r=a.json.items),17&t.$$.dirty&&(void 0===r||Array.isArray(r)?n(3,f=!1):(n(3,f=!0),a.logError(oe(new Error('Incorrect "items" prop for div "custom"'))))),25&t.$$.dirty&&n(8,o=(!f&&r||[]).map(((t,e)=>a.produceChildContext(t,{path:e}))))},[a,s,u,f,r,c,d,p,o,i,function(t){gt[t?"unshift":"push"]((()=>{c=t,n(5,c)}))}]}const ds={};function ps(t){let e,n,r;var o=t[2];function i(t,e){return{props:{componentContext:t[0],layoutParams:t[1]}}}return o&&(e=tt(o,i(t))),{c(){e&&Jt(e.$$.fragment),n=L()},m(t,o){e&&Gt(e,t,o),O(t,n,o),r=!0},p(t,r){if(4&r&&o!==(o=t[2])){if(e){St();const t=e;Ot(t.$$.fragment,1,0,(()=>{Kt(t,1)})),Pt()}o?(e=tt(o,i(t)),Jt(e.$$.fragment),Nt(e.$$.fragment,1),Gt(e,n.parentNode,n)):e=null}else if(o){const n={};1&r&&(n.componentContext=t[0]),2&r&&(n.layoutParams=t[1]),e.$set(n)}},i(t){r||(e&&Nt(e.$$.fragment,t),r=!0)},o(t){e&&Ot(e.$$.fragment,t),r=!1},d(t){t&&I(n),e&&Kt(e,t)}}}function fs(t){let e,n,r=t[2]&&ps(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){let[o]=n;t[2]?r?(r.p(t,o),4&o&&Nt(r,1)):(r=ps(t),r.c(),Nt(r,1),r.m(e.parentNode,e)):r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt())},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}function hs(t,e,n){let{componentContext:r}=e,{layoutParams:o}=e;const i=pt(re);let a;return t.$$set=t=>{"componentContext"in t&&n(0,r=t.componentContext),"layoutParams"in t&&n(1,o=t.layoutParams)},t.$$.update=()=>{if(5&t.$$.dirty){const t=r.json;if(n(2,a=(null==t?void 0:t.type)&&ds[t.type]||void 0),!a){let e;e=(null==t?void 0:t.type)&&i.hasTemplate(t.type)?"Recursive template":"Unknown component",r.logError(oe(new Error(e),{additional:{component:(null==t?void 0:t.type)||"<missing>"}}))}}},[r,o,a]}ds.text=class extends Zt{constructor(t){super(),Xt(this,t,qn,Hn,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},ds.container=class extends Zt{constructor(t){super(),Xt(this,t,_r,mr,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},ds.separator=class extends Zt{constructor(t){super(),Xt(this,t,Ar,Er,d,{componentContext:0,layoutParams:1})}},ds.image=zr,ds.gif=zr,ds.grid=class extends Zt{constructor(t){super(),Xt(this,t,Xr,Gr,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},ds.gallery=class extends Zt{constructor(t){super(),Xt(this,t,po,uo,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},ds.tabs=class extends Zt{constructor(t){super(),Xt(this,t,Co,ko,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}},ds.state=class extends Zt{constructor(t){super(),Xt(this,t,ri,ei,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},ds.pager=class extends Zt{constructor(t){super(),Xt(this,t,hi,pi,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},ds.indicator=class extends Zt{constructor(t){super(),Xt(this,t,wi,bi,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},ds.slider=class extends Zt{constructor(t){super(),Xt(this,t,ua,ia,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},ds.input=class extends Zt{constructor(t){super(),Xt(this,t,Na,Fa,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}},ds.select=class extends Zt{constructor(t){super(),Xt(this,t,Ba,Ra,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},ds.video=class extends Zt{constructor(t){super(),Xt(this,t,ts,Qa,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},ds.custom=class extends Zt{constructor(t){super(),Xt(this,t,us,cs,d,{componentContext:0,layoutParams:1})}};const gs=class extends Zt{constructor(t){super(),Xt(this,t,hs,fs,d,{componentContext:0,layoutParams:1})}},ms={"root-svg-filters":"divkit-dc22b"};function vs(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 ys(t){let e,n,r,o=zt([...Object.keys(t[0])]),i=[];for(let e=0;e<o.length;e+=1)i[e]=ws(vs(t,o,e));return{c(){e=z("svg"),n=z("defs");for(let t=0;t<i.length;t+=1)i[t].c();W(e,"class",r=ms["root-svg-filters"]),W(e,"aria-hidden","true")},m(t,r){O(t,e,r),S(e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(n,null)},p(t,e){if(1&e){let r;for(o=zt([...Object.keys(t[0])]),r=0;r<o.length;r+=1){const a=vs(t,o,r);i[r]?i[r].p(a,e):(i[r]=ws(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&&I(e),M(i,t)}}}function $s(t){let e,n;return{c(){e=z("feBlend"),W(e,"in2","SourceGraphic"),W(e,"mode",n=t[3])},m(t,n){O(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&W(e,"mode",n)},d(t){t&&I(e)}}}function bs(t){let e;return{c(){e=z("feComposite"),W(e,"in2","SourceGraphic"),W(e,"operator","arithmetic"),W(e,"k1","1"),W(e,"k2","0"),W(e,"k3","0"),W(e,"k4","0")},m(t,n){O(t,e,n)},p:n,d(t){t&&I(e)}}}function _s(t){let e,n;return{c(){e=z("feComposite"),W(e,"in2","SourceGraphic"),W(e,"operator",n=t[3].split("_")[1])},m(t,n){O(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&W(e,"operator",n)},d(t){t&&I(e)}}}function ws(t){let e,n,r,o;function i(t,e){return"source_in"===t[3]||"source_atop"===t[3]?_s:"multiply"===t[3]?bs:$s}let a=i(t),s=a(t);return{c(){e=z("filter"),n=z("feFlood"),s.c(),W(n,"flood-color",r=t[2]),W(e,"id",o=t[0][t[1]])},m(t,r){O(t,e,r),S(e,n),s.m(e,null)},p(t,l){1&l&&r!==(r=t[2])&&W(n,"flood-color",r),a===(a=i(t))&&s?s.p(t,l):(s.d(1),s=a(t),s&&(s.c(),s.m(e,null))),1&l&&o!==(o=t[0][t[1]])&&W(e,"id",o)},d(t){t&&I(e),s.d()}}}function xs(t){let e,r=Object.keys(t[0]).length,o=r&&ys(t);return{c(){o&&o.c(),e=L()},m(t,n){o&&o.m(t,n),O(t,e,n)},p(t,n){let[i]=n;1&i&&(r=Object.keys(t[0]).length),r?o?o.p(t,i):(o=ys(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},i:n,o:n,d(t){t&&I(e),o&&o.d(t)}}}function ks(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const Cs=class extends Zt{constructor(t){super(),Xt(this,t,ks,xs,d,{svgFiltersMap:0})}};function Es(t,e,n,r){const o=n[t.type];if(!o)return r(oe(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 s=function t(e,n){const r=Object.keys(n).filter((t=>"__proto__"!==t)),o=r.filter((t=>"$"!==t.charAt(0))),i=r.filter((t=>"$"===t.charAt(0)));return o.forEach((r=>{const o=n[r];"object"==typeof o&&null!==o?(e[r]=Array.isArray(o)?[]:{},t(e[r],o)):e[r]=o})),i.forEach((t=>{const r=n[t],o=a[r];if(void 0!==o){const n=t.substring(1);e[n]=o}})),e}({},o);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(s[i]=t[i]);return{json:s,templateContext:a}}function As(){}function js(t){return{subscribe:e=>(e(t),As)}}function Vs(t,e){return e.length?e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t):t}function Fs(t,e){return e.length?e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t):t}function Ds(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 Ss(t){try{return Fi(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function Ps(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function Ns(t,e,n,r){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,Ns.prototype),o.expected=e,o.found=n,o.location=r,o.name="SyntaxError",o}function Os(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function Is(t,e){var n,r={},o=(e=void 0!==e?e:{}).grammarSource,i={start:Ce,JsonStringContents:function(){var t,e,n;for(t=pe,e=[],n=Ee();n!==r;)e.push(n),n=Ee();return fe=t,e=At(e)}},a=Ce,s="@{",l="}",c="@{}",u="\\",d="?",p=":",f="!:",h="||",g="&&",m="==",v="!=",y=">=",$=">",b="<=",_="<",w="+",x="-",k="/",C="*",E="%",A="!",j=".",V="(",F=")",D=",",S="'",P="e",N="E",O=/^[^}]/,I=/^[^'}]/,M=/^[0-9]/,T=/^[a-zA-Z_]/,z=/^[a-zA-Z_0-9]/,R=/^[ \t\r\n]/,B=$e("@{",!1),L=$e("}",!1),U=$e("@{}",!1),W=$e("\\",!1),H={type:"any"},q=be(["}"],!0,!1),J=$e("?",!1),G=$e(":",!1),K=$e("!:",!1),X=$e("||",!1),Y=$e("&&",!1),Z=$e("==",!1),Q=$e("!=",!1),tt=$e(">=",!1),et=$e(">",!1),nt=$e("<=",!1),rt=$e("<",!1),ot=$e("+",!1),it=$e("-",!1),at=$e("/",!1),st=$e("*",!1),lt=$e("%",!1),ct=$e("!",!1),ut=$e(".",!1),dt=$e("(",!1),pt=$e(")",!1),ft=$e(",",!1),ht=_e("string"),gt=$e("'",!1),mt=be(["'","}"],!0,!1),vt=_e("integer"),yt=be([["0","9"]],!1,!1),$t=_e("number"),bt=$e("e",!1),_t=$e("E",!1),wt=be([["a","z"],["A","Z"],"_"],!1,!1),xt=be([["a","z"],["A","Z"],"_",["0","9"]],!1,!1),kt=_e("whitespace"),Ct=be([" ","\t","\r","\n"],!1,!1),Et=function(t){return t},At=function(t){return Ds(t)},jt=function(t){return t},Vt=function(){return""},Ft=function(){return ye()},Dt=function(){throw new Error("Error tokenizing '"+t+"'.")},St=function(){throw new Error("Error tokenizing '"+t+"'.")},Pt=function(t){return t},Nt=function(t){return Ps(t)},Ot=function(){throw new Error("Error tokenizing '"+t+"'.")},It=function(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}},Mt=function(t,e){return{type:"TryExpression",test:t,alternate:e}},Tt=function(t,e){return Fs(t,e)},zt=function(t,e){return Fs(t,e)},Rt=function(t,e){return Vs(t,e)},Bt=function(t,e){return Vs(t,e)},Lt=function(t,e){return Vs(t,e)},Ut=function(t,e){return Vs(t,e)},Wt=function(t){return t},Ht=function(t){return t},qt=function(t,e){return{type:"UnaryExpression",operator:t,argument:e}},Jt=function(t,e){return function(t,e){return e.length?e.reduce(((t,e)=>{if(!e[5])throw new Error("Method expected after .");return{type:"MethodExpression",object:t,method:e[3],arguments:e[5][2]}}),t):t}(t,e)},Gt=function(t,e){return{type:"CallExpression",callee:t,arguments:e}},Kt=function(t,e){return[t,...e]},Xt=function(t){return t},Yt=function(t){return t},Zt=function(t){return Ds(t)},Qt=function(t){return t},te=function(){return""},ee=function(){return ye()},ne=function(){throw new Error("Error tokenizing '"+t+"'.")},re=function(){throw new Error("Error tokenizing '"+t+"'.")},oe=function(t){return t},ie=function(t){return Ps(t)},ae=function(){throw new Error("Error tokenizing '"+t+"'.")},se=function(){return{type:"IntegerLiteral",value:Ss(ye())}},le=function(){return{type:"NumberLiteral",value:parseFloat(ye())}},ce=function(){return{type:"NumberLiteral",value:parseFloat(ye())}},ue=function(){return"true"===(t=ye())||"false"===t?{type:"BooleanLiteral",value:"true"===t}:{type:"Variable",id:{type:"Identifier",name:t}};var t},de=function(){return{type:"Identifier",name:ye()}},pe=0,fe=0,he=[{line:1,column:1}],ge=0,me=[],ve=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 ye(){return t.substring(fe,pe)}function $e(t,e){return{type:"literal",text:t,ignoreCase:e}}function be(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function _e(t){return{type:"other",description:t}}function we(e){var n,r=he[e];if(r)return r;for(n=e-1;!he[n];)n--;for(r={line:(r=he[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return he[e]=r,r}function xe(t,e,n){var r=we(t),i=we(e),a={source:o,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:i.line,column:i.column}};return n&&o&&"function"==typeof o.offset&&(a.start=o.offset(a.start),a.end=o.offset(a.end)),a}function ke(t){pe<ge||(pe>ge&&(ge=pe,me=[]),me.push(t))}function Ce(){var t,e;return t=pe,Le(),(e=Ae())!==r?(Le(),fe=t,t=Et(e)):(pe=t,t=r),t}function Ee(){var e,n,o,i,a;if(e=pe,t.substr(pe,2)===s?(n=s,pe+=2):(n=r,0===ve&&ke(B)),n!==r?(o=Le(),(i=Ae())!==r?(Le(),125===t.charCodeAt(pe)?(a=l,pe++):(a=r,0===ve&&ke(L)),a!==r?(fe=e,e=jt(i)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,t.substr(pe,3)===c?(n=c,pe+=3):(n=r,0===ve&&ke(U)),n!==r&&(fe=e,n=Vt()),(e=n)===r&&(e=pe,n=pe,ve++,92===t.charCodeAt(pe)?(o=u,pe++):(o=r,0===ve&&ke(W)),o===r&&(t.substr(pe,2)===s?(o=s,pe+=2):(o=r,0===ve&&ke(B))),ve--,o===r?n=void 0:(pe=n,n=r),n!==r?(t.length>pe?(o=t.charAt(pe),pe++):(o=r,0===ve&&ke(H)),o!==r?(fe=e,e=Ft()):(pe=e,e=r)):(pe=e,e=r),e===r))){if(e=pe,t.substr(pe,2)===s?(n=s,pe+=2):(n=r,0===ve&&ke(B)),n!==r){if(o=[],O.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(q)),i!==r)for(;i!==r;)o.push(i),O.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(q));else o=r;o!==r?(125===t.charCodeAt(pe)?(i=l,pe++):(i=r,0===ve&&ke(L)),i!==r?(fe=e,e=Dt()):(pe=e,e=r)):(pe=e,e=r)}else pe=e,e=r;e===r&&(e=pe,t.substr(pe,2)===s?(n=s,pe+=2):(n=r,0===ve&&ke(B)),n!==r&&(fe=e,n=St()),(e=n)===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===ve&&ke(W)),n!==r?(t.substr(pe,2)===s?(o=s,pe+=2):(o=r,0===ve&&ke(B)),o!==r?(fe=e,e=Pt(o)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===ve&&ke(W)),n!==r?(t.length>pe?(o=t.charAt(pe),pe++):(o=r,0===ve&&ke(H)),o!==r?(fe=e,e=Nt(o)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===ve&&ke(W)),n!==r&&(fe=e,n=Ot()),e=n))))}return e}function Ae(){var e,n,o,i,a,s;return e=pe,(n=je())!==r?(Le(),63===t.charCodeAt(pe)?(o=d,pe++):(o=r,0===ve&&ke(J)),o!==r?(Le(),(i=Ae())!==r?(Le(),58===t.charCodeAt(pe)?(a=p,pe++):(a=r,0===ve&&ke(G)),a!==r?(Le(),(s=Ae())!==r?(fe=e,e=It(n,i,s)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=je()),e}function je(){var e,n,o,i;return e=pe,(n=Ve())!==r?(Le(),t.substr(pe,2)===f?(o=f,pe+=2):(o=r,0===ve&&ke(K)),o!==r?(Le(),(i=Ae())!==r?(fe=e,e=Mt(n,i)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=Ve()),e}function Ve(){var e,n,o,i,a,s,l,c;if(e=pe,(n=Fe())!==r){for(o=[],i=pe,a=Le(),t.substr(pe,2)===h?(s=h,pe+=2):(s=r,0===ve&&ke(X)),s!==r?(l=Le(),(c=Fe())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,a=Le(),t.substr(pe,2)===h?(s=h,pe+=2):(s=r,0===ve&&ke(X)),s!==r?(l=Le(),(c=Fe())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);fe=e,e=Tt(n,o)}else pe=e,e=r;return e}function Fe(){var e,n,o,i,a,s,l,c;if(e=pe,(n=De())!==r){for(o=[],i=pe,a=Le(),t.substr(pe,2)===g?(s=g,pe+=2):(s=r,0===ve&&ke(Y)),s!==r?(l=Le(),(c=De())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,a=Le(),t.substr(pe,2)===g?(s=g,pe+=2):(s=r,0===ve&&ke(Y)),s!==r?(l=Le(),(c=De())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);fe=e,e=zt(n,o)}else pe=e,e=r;return e}function De(){var e,n,o,i,a,s,l,c;if(e=pe,(n=Se())!==r){for(o=[],i=pe,a=Le(),t.substr(pe,2)===m?(s=m,pe+=2):(s=r,0===ve&&ke(Z)),s===r&&(t.substr(pe,2)===v?(s=v,pe+=2):(s=r,0===ve&&ke(Q))),s!==r?(l=Le(),(c=Se())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,a=Le(),t.substr(pe,2)===m?(s=m,pe+=2):(s=r,0===ve&&ke(Z)),s===r&&(t.substr(pe,2)===v?(s=v,pe+=2):(s=r,0===ve&&ke(Q))),s!==r?(l=Le(),(c=Se())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);fe=e,e=Rt(n,o)}else pe=e,e=r;return e}function Se(){var e,n,o,i,a,s,l,c;if(e=pe,(n=Pe())!==r){for(o=[],i=pe,a=Le(),t.substr(pe,2)===y?(s=y,pe+=2):(s=r,0===ve&&ke(tt)),s===r&&(62===t.charCodeAt(pe)?(s=$,pe++):(s=r,0===ve&&ke(et)),s===r&&(t.substr(pe,2)===b?(s=b,pe+=2):(s=r,0===ve&&ke(nt)),s===r&&(60===t.charCodeAt(pe)?(s=_,pe++):(s=r,0===ve&&ke(rt))))),s!==r?(l=Le(),(c=Pe())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,a=Le(),t.substr(pe,2)===y?(s=y,pe+=2):(s=r,0===ve&&ke(tt)),s===r&&(62===t.charCodeAt(pe)?(s=$,pe++):(s=r,0===ve&&ke(et)),s===r&&(t.substr(pe,2)===b?(s=b,pe+=2):(s=r,0===ve&&ke(nt)),s===r&&(60===t.charCodeAt(pe)?(s=_,pe++):(s=r,0===ve&&ke(rt))))),s!==r?(l=Le(),(c=Pe())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);fe=e,e=Bt(n,o)}else pe=e,e=r;return e}function Pe(){var e,n,o,i,a,s,l,c;if(e=pe,(n=Ne())!==r){for(o=[],i=pe,a=Le(),43===t.charCodeAt(pe)?(s=w,pe++):(s=r,0===ve&&ke(ot)),s===r&&(45===t.charCodeAt(pe)?(s=x,pe++):(s=r,0===ve&&ke(it))),s!==r?(l=Le(),(c=Ne())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,a=Le(),43===t.charCodeAt(pe)?(s=w,pe++):(s=r,0===ve&&ke(ot)),s===r&&(45===t.charCodeAt(pe)?(s=x,pe++):(s=r,0===ve&&ke(it))),s!==r?(l=Le(),(c=Ne())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);fe=e,e=Lt(n,o)}else pe=e,e=r;return e}function Ne(){var e,n,o,i,a,s,l,c;if(e=pe,(n=Oe())!==r){for(o=[],i=pe,a=Le(),47===t.charCodeAt(pe)?(s=k,pe++):(s=r,0===ve&&ke(at)),s===r&&(42===t.charCodeAt(pe)?(s=C,pe++):(s=r,0===ve&&ke(st)),s===r&&(37===t.charCodeAt(pe)?(s=E,pe++):(s=r,0===ve&&ke(lt)))),s!==r?(l=Le(),(c=Oe())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,a=Le(),47===t.charCodeAt(pe)?(s=k,pe++):(s=r,0===ve&&ke(at)),s===r&&(42===t.charCodeAt(pe)?(s=C,pe++):(s=r,0===ve&&ke(st)),s===r&&(37===t.charCodeAt(pe)?(s=E,pe++):(s=r,0===ve&&ke(lt)))),s!==r?(l=Le(),(c=Oe())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);fe=e,e=Ut(n,o)}else pe=e,e=r;return e}function Oe(){var e,n,o,i;return e=pe,n=pe,ve++,45===t.charCodeAt(pe)?(o=x,pe++):(o=r,0===ve&&ke(it)),ve--,o!==r?(pe=n,n=void 0):n=r,n!==r&&(o=Re())!==r?(fe=e,e=Wt(o)):(pe=e,e=r),e===r&&(e=pe,n=pe,ve++,45===t.charCodeAt(pe)?(o=x,pe++):(o=r,0===ve&&ke(it)),ve--,o!==r?(pe=n,n=void 0):n=r,n!==r&&(o=ze())!==r?(fe=e,e=Ht(o)):(pe=e,e=r),e===r&&(e=pe,33===t.charCodeAt(pe)?(n=A,pe++):(n=r,0===ve&&ke(ct)),n===r&&(43===t.charCodeAt(pe)?(n=w,pe++):(n=r,0===ve&&ke(ot)),n===r&&(45===t.charCodeAt(pe)?(n=x,pe++):(n=r,0===ve&&ke(it)))),n!==r?(o=Le(),(i=Ie())!==r?(fe=e,e=qt(n,i)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=Ie()))),e}function Ie(){var e,n,o,i,a,s,l,c,u,d,p,f,h,g,m;if(e=pe,n=function(){var e,n,o,i,a;return e=pe,(n=Be())!==r?(Le(),40===t.charCodeAt(pe)?(o=V,pe++):(o=r,0===ve&&ke(dt)),o!==r?(Le(),(i=Me())!==r?(Le(),41===t.charCodeAt(pe)?(a=F,pe++):(a=r,0===ve&&ke(pt)),a!==r?(fe=e,e=Gt(n,i)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=function(){var e,n,o,i;return e=function(){var e,n,o,i,a,s,l,c,u,d,p;if(e=pe,T.test(t.charAt(pe))?(n=t.charAt(pe),pe++):(n=r,0===ve&&ke(wt)),n!==r){if(o=[],i=[],z.test(t.charAt(pe))?(a=t.charAt(pe),pe++):(a=r,0===ve&&ke(xt)),a!==r)for(;a!==r;)i.push(a),z.test(t.charAt(pe))?(a=t.charAt(pe),pe++):(a=r,0===ve&&ke(xt));else i=r;for(i===r&&(i=pe,46===t.charCodeAt(pe)?(a=j,pe++):(a=r,0===ve&&ke(ut)),a!==r?(s=pe,ve++,l=pe,c=Le(),(u=Be())!==r?(d=Le(),40===t.charCodeAt(pe)?(p=V,pe++):(p=r,0===ve&&ke(dt)),p!==r?l=c=[c,u,d,p]:(pe=l,l=r)):(pe=l,l=r),ve--,l===r?s=void 0:(pe=s,s=r),s!==r?i=a=[a,s]:(pe=i,i=r)):(pe=i,i=r));i!==r;){if(o.push(i),i=[],z.test(t.charAt(pe))?(a=t.charAt(pe),pe++):(a=r,0===ve&&ke(xt)),a!==r)for(;a!==r;)i.push(a),z.test(t.charAt(pe))?(a=t.charAt(pe),pe++):(a=r,0===ve&&ke(xt));else i=r;i===r&&(i=pe,46===t.charCodeAt(pe)?(a=j,pe++):(a=r,0===ve&&ke(ut)),a!==r?(s=pe,ve++,l=pe,c=Le(),(u=Be())!==r?(d=Le(),40===t.charCodeAt(pe)?(p=V,pe++):(p=r,0===ve&&ke(dt)),p!==r?l=c=[c,u,d,p]:(pe=l,l=r)):(pe=l,l=r),ve--,l===r?s=void 0:(pe=s,s=r),s!==r?i=a=[a,s]:(pe=i,i=r)):(pe=i,i=r))}fe=e,e=ue()}else pe=e,e=r;return e}(),e===r&&(e=function(){var e,n,o,i;return ve++,e=pe,39===t.charCodeAt(pe)?(n=S,pe++):(n=r,0===ve&&ke(gt)),n!==r?(o=function(){var t,e,n;for(t=pe,e=[],n=Te();n!==r;)e.push(n),n=Te();return fe=t,t=e=Zt(e)}(),39===t.charCodeAt(pe)?(i=S,pe++):(i=r,0===ve&&ke(gt)),i!==r?(fe=e,e=Yt(o)):(pe=e,e=r)):(pe=e,e=r),ve--,e===r&&(n=r,0===ve&&ke(ht)),e}(),e===r&&(e=Re())===r&&(e=ze())===r&&(e=pe,40===t.charCodeAt(pe)?(n=V,pe++):(n=r,0===ve&&ke(dt)),n!==r?(Le(),(o=Ae())!==r?(Le(),41===t.charCodeAt(pe)?(i=F,pe++):(i=r,0===ve&&ke(pt)),i!==r?(fe=e,e=Xt(o)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r))),e}()),e}(),n!==r){for(o=[],i=pe,a=Le(),46===t.charCodeAt(pe)?(s=j,pe++):(s=r,0===ve&&ke(ut)),s!==r?(l=Le(),(c=Be())!==r?(u=Le(),d=pe,40===t.charCodeAt(pe)?(p=V,pe++):(p=r,0===ve&&ke(dt)),p!==r?(f=Le(),(h=Me())!==r?(g=Le(),41===t.charCodeAt(pe)?(m=F,pe++):(m=r,0===ve&&ke(pt)),m!==r?d=p=[p,f,h,g,m]:(pe=d,d=r)):(pe=d,d=r)):(pe=d,d=r),d===r&&(d=null),i=a=[a,s,l,c,u,d]):(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,a=Le(),46===t.charCodeAt(pe)?(s=j,pe++):(s=r,0===ve&&ke(ut)),s!==r?(l=Le(),(c=Be())!==r?(u=Le(),d=pe,40===t.charCodeAt(pe)?(p=V,pe++):(p=r,0===ve&&ke(dt)),p!==r?(f=Le(),(h=Me())!==r?(g=Le(),41===t.charCodeAt(pe)?(m=F,pe++):(m=r,0===ve&&ke(pt)),m!==r?d=p=[p,f,h,g,m]:(pe=d,d=r)):(pe=d,d=r)):(pe=d,d=r),d===r&&(d=null),i=a=[a,s,l,c,u,d]):(pe=i,i=r)):(pe=i,i=r);fe=e,e=Jt(n,o)}else pe=e,e=r;return e}function Me(){var e,n,o,i,a,s;if(e=pe,(n=Ae())!==r){for(o=[],i=pe,Le(),44===t.charCodeAt(pe)?(a=D,pe++):(a=r,0===ve&&ke(ft)),a!==r?(Le(),(s=Ae())!==r?i=s:(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,Le(),44===t.charCodeAt(pe)?(a=D,pe++):(a=r,0===ve&&ke(ft)),a!==r?(Le(),(s=Ae())!==r?i=s:(pe=i,i=r)):(pe=i,i=r);fe=e,e=Kt(n,o)}else pe=e,e=r;return e===r&&(e=Le()),e}function Te(){var e,n,o,i,a;if(e=pe,t.substr(pe,2)===s?(n=s,pe+=2):(n=r,0===ve&&ke(B)),n!==r?(o=Le(),(i=Ae())!==r?(Le(),125===t.charCodeAt(pe)?(a=l,pe++):(a=r,0===ve&&ke(L)),a!==r?(fe=e,e=Qt(i)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,t.substr(pe,3)===c?(n=c,pe+=3):(n=r,0===ve&&ke(U)),n!==r&&(fe=e,n=te()),(e=n)===r&&(e=pe,n=pe,ve++,92===t.charCodeAt(pe)?(o=u,pe++):(o=r,0===ve&&ke(W)),o===r&&(39===t.charCodeAt(pe)?(o=S,pe++):(o=r,0===ve&&ke(gt)),o===r&&(t.substr(pe,2)===s?(o=s,pe+=2):(o=r,0===ve&&ke(B)))),ve--,o===r?n=void 0:(pe=n,n=r),n!==r?(t.length>pe?(o=t.charAt(pe),pe++):(o=r,0===ve&&ke(H)),o!==r?(fe=e,e=ee()):(pe=e,e=r)):(pe=e,e=r),e===r))){if(e=pe,t.substr(pe,2)===s?(n=s,pe+=2):(n=r,0===ve&&ke(B)),n!==r){if(o=[],I.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(mt)),i!==r)for(;i!==r;)o.push(i),I.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(mt));else o=r;o!==r?(125===t.charCodeAt(pe)?(i=l,pe++):(i=r,0===ve&&ke(L)),i!==r?(fe=e,e=ne()):(pe=e,e=r)):(pe=e,e=r)}else pe=e,e=r;e===r&&(e=pe,t.substr(pe,2)===s?(n=s,pe+=2):(n=r,0===ve&&ke(B)),n!==r&&(fe=e,n=re()),(e=n)===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===ve&&ke(W)),n!==r?(t.substr(pe,2)===s?(o=s,pe+=2):(o=r,0===ve&&ke(B)),o!==r?(fe=e,e=oe(o)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===ve&&ke(W)),n!==r?(t.length>pe?(o=t.charAt(pe),pe++):(o=r,0===ve&&ke(H)),o!==r?(fe=e,e=ie(o)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===ve&&ke(W)),n!==r&&(fe=e,n=ae()),e=n))))}return e}function ze(){var e,n,o,i;if(ve++,e=pe,45===t.charCodeAt(pe)?(n=x,pe++):(n=r,0===ve&&ke(it)),n===r&&(n=null),o=[],M.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(yt)),i!==r)for(;i!==r;)o.push(i),M.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(yt));else o=r;return o!==r?(fe=e,e=se()):(pe=e,e=r),ve--,e===r&&(n=r,0===ve&&ke(vt)),e}function Re(){var e,n,o,i,a,s,l,c,u,d;for(ve++,e=pe,45===t.charCodeAt(pe)?(n=x,pe++):(n=r,0===ve&&ke(it)),n===r&&(n=null),o=[],M.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(yt));i!==r;)o.push(i),M.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(yt));if(46===t.charCodeAt(pe)?(i=j,pe++):(i=r,0===ve&&ke(ut)),i!==r){if(a=[],M.test(t.charAt(pe))?(s=t.charAt(pe),pe++):(s=r,0===ve&&ke(yt)),s!==r)for(;s!==r;)a.push(s),M.test(t.charAt(pe))?(s=t.charAt(pe),pe++):(s=r,0===ve&&ke(yt));else a=r;if(a!==r){if(s=pe,101===t.charCodeAt(pe)?(l=P,pe++):(l=r,0===ve&&ke(bt)),l===r&&(69===t.charCodeAt(pe)?(l=N,pe++):(l=r,0===ve&&ke(_t))),l!==r){if(43===t.charCodeAt(pe)?(c=w,pe++):(c=r,0===ve&&ke(ot)),c===r&&(45===t.charCodeAt(pe)?(c=x,pe++):(c=r,0===ve&&ke(it))),c===r&&(c=null),u=[],M.test(t.charAt(pe))?(d=t.charAt(pe),pe++):(d=r,0===ve&&ke(yt)),d!==r)for(;d!==r;)u.push(d),M.test(t.charAt(pe))?(d=t.charAt(pe),pe++):(d=r,0===ve&&ke(yt));else u=r;u!==r?s=l=[l,c,u]:(pe=s,s=r)}else pe=s,s=r;s===r&&(s=null),fe=e,e=le()}else pe=e,e=r}else pe=e,e=r;if(e===r){if(e=pe,45===t.charCodeAt(pe)?(n=x,pe++):(n=r,0===ve&&ke(it)),n===r&&(n=null),o=[],M.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(yt)),i!==r)for(;i!==r;)o.push(i),M.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(yt));else o=r;if(o!==r)if(101===t.charCodeAt(pe)?(i=P,pe++):(i=r,0===ve&&ke(bt)),i===r&&(69===t.charCodeAt(pe)?(i=N,pe++):(i=r,0===ve&&ke(_t))),i!==r){if(43===t.charCodeAt(pe)?(a=w,pe++):(a=r,0===ve&&ke(ot)),a===r&&(45===t.charCodeAt(pe)?(a=x,pe++):(a=r,0===ve&&ke(it))),a===r&&(a=null),s=[],M.test(t.charAt(pe))?(l=t.charAt(pe),pe++):(l=r,0===ve&&ke(yt)),l!==r)for(;l!==r;)s.push(l),M.test(t.charAt(pe))?(l=t.charAt(pe),pe++):(l=r,0===ve&&ke(yt));else s=r;s!==r?(fe=e,e=ce()):(pe=e,e=r)}else pe=e,e=r;else pe=e,e=r}return ve--,e===r&&(n=r,0===ve&&ke($t)),e}function Be(){var e,n,o,i;if(e=pe,T.test(t.charAt(pe))?(n=t.charAt(pe),pe++):(n=r,0===ve&&ke(wt)),n!==r){for(o=[],z.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(xt));i!==r;)o.push(i),z.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(xt));fe=e,e=de()}else pe=e,e=r;return e}function Le(){var e,n;for(ve++,e=[],R.test(t.charAt(pe))?(n=t.charAt(pe),pe++):(n=r,0===ve&&ke(Ct));n!==r;)e.push(n),R.test(t.charAt(pe))?(n=t.charAt(pe),pe++):(n=r,0===ve&&ke(Ct));return ve--,n=r,0===ve&&ke(kt),e}if((n=a())!==r&&pe===t.length)return n;throw n!==r&&pe<t.length&&ke({type:"end"}),function(t,e,n){return new Ns(Ns.buildMessage(t,e),t,e,n)}(me,ge<t.length?t.charAt(ge):null,ge<t.length?xe(ge,ge+1):xe(ge,ge))}js(void 0),function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(Ns,Error),Ns.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&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,a=this.location.source+":"+i.line+":"+i.column;if(r){var s=this.location.end,l=Os("",i.line.toString().length," "),c=r[o.line-1],u=(o.line===s.line?s.column:c.length+1)-o.column||1;e+="\n --\x3e "+a+"\n"+l+" |\n"+i.line+" | "+c+"\n"+l+" | "+Os("",o.column-1," ")+Os("",u,"^")}else e+="\n at "+a}return e},Ns.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 Ms=Number.MAX_VALUE,Ts=Number.MIN_VALUE,zs="string",Rs="integer",Bs="number",Ls="boolean",Us="color",Ws="url",Hs="datetime",qs="dict",Js="array";function Gs(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=>{Gs(t,e)}));break;case"BinaryExpression":case"LogicalExpression":Gs(t.left,e),Gs(t.right,e);break;case"UnaryExpression":Gs(t.argument,e);break;case"ConditionalExpression":Gs(t.test,e),Gs(t.consequent,e),Gs(t.alternate,e);break;case"TryExpression":Gs(t.test,e),Gs(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{Gs(t,e)}))}}function Ks(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function Xs(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function Ys(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 Xs(t.value);if("color"===t.type)return il(ol(t.value));if("url"===t.type)return t.value;if("dict"===t.type)return"<dict>";if("array"===t.type)return"<array>";throw new Error("Unexpected type ".concat(t.type))}function Zs(t){let e=Ys(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function Qs(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function tl(t,e){if(Ei)return Fi(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function el(t,e){if(e<Vi||e>ji)throw new Error("Integer overflow.");!Ei&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function nl(t){const e=[];return Gs(t,{Variable(t){e.push(t.id.name)}}),e}function rl(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function ol(t){const e=pe(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function il(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 ue(Math.round(t).toString(16),2)})).join("").toUpperCase())}function al(t){return il(ol(t))}function sl(t){return{type:Bs,value:Number(t.value)}}const ll={string:"string",number:"number",integer:"number",boolean:"boolean",color:"string",url:"string",array:"array",dict:"object"};function cl(t,e,n){const r=ll[n];let o=typeof e;if("array"===r&&!Array.isArray(e)||"array"!==r&&o!==r||"object"===o&&null===e)throw"object"===o&&(o=Array.isArray(e)?"array":null===e?"null":"dict"),new Error('Incorrect value type: expected "'.concat(n,'", got "').concat(o,'".'));if("number"===r&&"integer"===n){el(t,e);try{e=Fi(e)}catch(t){throw new Error("Cannot convert value to integer.")}}return"string"===r&&"color"===n&&(e=al(e)),{type:n,value:e}}const ul=new Map,dl=new Map,pl=new Map,fl=new Map;function hl(t,e,n){const r={args:e,cb:n},o=ul.get(t)||[];ul.has(t)||ul.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");dl.set(i,r)}function gl(t,e,n){const r={args:e,cb:n},o=pl.get(t)||[];pl.has(t)||pl.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");fl.set(i,r)}function ml(t,e){const n=t.args.length;let r=t.args.length,o=0;const i=t.args[t.args.length-1];if("object"==typeof i&&i.isVararg&&(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!==Bs||e[n].type!==Rs){if(r.type!==e[n].type)return{type:"mismatch",expected:r.type,found:e[n].type}}else++o}return{type:"match",conversions:o}}function vl(t,e,n){const r=("function"===t?ul:pl).get(e);if(!r)return{type:"missing"};let o=null,i=null;for(let t=0;t<r.length;++t){const e=ml(r[t],n);"match"!==e.type?o||(o=e):(!i||i.conversions>e.conversions)&&(i={func:r[t],conversions:e.conversions})}if(!i){if(o)return o;throw new Error("Missing function")}return i}function yl(t,e){return e.map(((e,n)=>{let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];return"object"!=typeof r&&(r={type:r}),r.type===Bs&&e.type===Rs?sl(e):e}))}function $l(t,e){return{type:zs,value:Ys(e)}}function bl(t,e){const n=Number(e.value);if(Number.isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:Bs,value:n}}function _l(t,e,n,r){const o=t.variables.get(e.value);let i;return i=o&&o.getType()===r?o.getValue():n.value,"color"===r&&(i=al(i)),{type:r,value:i}}function wl(t,e,n){return _l(t,e,n,n.type)}function xl(t,e,n){return _l(t,e,n,"color")}function kl(t,e,n){return _l(t,e,n,"url")}const Cl=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:Rs,value:Fi(r)}},El=Cl("getUTCFullYear"),Al=Cl("getUTCMonth"),jl=Cl("getUTCDate"),Vl=Cl("getUTCDay"),Fl=Cl("getUTCHours"),Dl=Cl("getUTCMinutes"),Sl=Cl("getUTCSeconds"),Pl=Cl("getUTCMilliseconds");function Nl(t,e,n,r){if(!r.value.length)return t.warnings.push(oe(new Error("String for padding is empty."),{level:"warn"})),"";let o="";const i=e.type===zs?e.value:Ys(e);for(;o.length+i.length<n.value;)o+=r.value;return o.length>0&&o.length+i.length>n.value&&(o=o.substring(0,Number(n.value)-Number(i.length))),o}function Ol(t,e,n,r){const o=Nl(t,e,n,r);return{type:zs,value:o+Ys(e)}}function Il(t,e,n,r){const o=Nl(t,e,n,r);return{type:zs,value:Ys(e)+o}}function Ml(t){return(e,n)=>{const r=ol(n.value);return{type:Bs,value:r[t]/255}}}function Tl(t){return(e,n,r)=>{const o=ol(n.value);return o[t]=255*r.value,{type:Us,value:il(o)}}}const zl=Ml("a"),Rl=Ml("r"),Bl=Ml("g"),Ll=Ml("b"),Ul=Tl("a"),Wl=Tl("r"),Hl=Tl("g"),ql=Tl("b");function Jl(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let o=Fi(e.value)/Fi(n);return el(t,o),"number"==typeof o&&(o=Math.floor(o)),r&&(o=Fi(o)%Fi(r)),{type:Rs,value:o}}const Gl=36e5;function Kl(t){return function(e,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];if(0===o.length)throw new Error("Non empty argument list is required.");const a=function(t,e){let n=t;for(let t=0;t<e.length;++t){if(!n)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));const r=n[e[t]];if(void 0===r)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));n=r}return n}(n.value,o.map((t=>t.value)));return cl(e,a,t)}}function Xl(t,e){return function(n,r,o){try{for(var i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return t(n,o,...a)}catch(t){let n=r.value;return"color"===e&&(n=al(n)),{type:e,value:n}}}}const Yl=Kl(zs),Zl=Kl(Bs),Ql=Kl(Rs),tc=Kl(Ls),ec=Kl(Us),nc=Kl(Ws),rc=Kl(Js),oc=Kl(qs),ic=Xl(Yl,zs),ac=Xl(Zl,Bs),sc=Xl(Ql,Rs),lc=Xl(tc,Ls),cc=Xl(ec,Us),uc=Xl(nc,Ws);function dc(t,e){try{for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return rc(t,e,...r)}catch(t){return{type:Js,value:[]}}}function pc(t,e){try{for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return oc(t,e,...r)}catch(t){return{type:qs,value:{}}}}function fc(t,e){return(n,r,o)=>{if(o.value<0||o.value>=r.value.length)throw new Error("Requested index (".concat(o.value,") out of bounds array size (").concat(r.value.length,")."));let i=r.value[Number(o.value)],a=typeof i;if("array"===t&&!Array.isArray(i)||"array"!==t&&a!==t||"object"===a&&null===i)throw"object"===a&&(a=Array.isArray(i)?"array":null===i?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(a,'".'));if("number"===t&&"integer"===e){el(n,i);try{i=Fi(i)}catch(t){throw new Error("Cannot convert value to integer.")}}return"string"===t&&"color"===e&&(i=al(i)),{type:e,value:i}}}function hc(t,e){return(n,r,o,i)=>{try{return t(n,r,o)}catch(t){let n=i.value;return"color"===e&&(n=al(n)),{type:e,value:n}}}}const gc=fc("string","string"),mc=fc("number","number"),vc=fc("number","integer"),yc=fc("boolean","boolean"),$c=fc("string","color"),bc=fc("string","url"),_c=fc("array","array"),wc=fc("object","dict"),xc=hc(gc,"string"),kc=hc(mc,"number"),Cc=hc(vc,"integer"),Ec=hc(yc,"boolean"),Ac=hc($c,"color"),jc=hc(bc,"url");function Vc(t){return(e,n,r)=>{if(!e.store)return{type:t,value:r.value};let o;o="boolean"===t?"boolean":"number"===t||"integer"===t?"number":"string";const i=e.store.getValue(n.value,o);return void 0===i?{type:t,value:r.value}:cl(e,i,t)}}function Fc(t){return t.map(Zs).join(", ")}hl("toString",[Rs],$l),hl("toString",[Bs],$l),hl("toString",[Ls],$l),hl("toString",[Us],$l),hl("toString",[Ws],$l),hl("toString",[zs],$l),hl("toNumber",[Rs],bl),hl("toNumber",[zs],bl),hl("toInteger",[Bs],(function(t,e){if(e.value>ji||e.value<Vi)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:Rs,value:Fi(n)}})),hl("toInteger",[zs],(function(t,e){let n;try{n=Fi(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}return{type:Rs,value:n}})),hl("toInteger",[Ls],(function(t,e){return{type:Rs,value:Fi(e.value?1:0)}})),hl("toBoolean",[Rs],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:Ls,value:n}})),hl("toBoolean",[zs],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:Ls,value:"true"===e.value?1:0}})),hl("toColor",[zs],(function(t,e){return{type:Us,value:al(e.value)}})),hl("toUrl",[zs],(function(t,e){return{type:Ws,value:e.value}})),hl("encodeUri",[zs],(function(t,e){try{return{type:zs,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),hl("decodeUri",[zs],(function(t,e){try{return{type:zs,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),hl("getIntegerValue",[zs,Rs],wl),hl("getNumberValue",[zs,Bs],wl),hl("getBooleanValue",[zs,Ls],wl),hl("getStringValue",[zs,zs],wl),hl("getColorValue",[zs,Us],xl),hl("getColorValue",[zs,zs],xl),hl("getUrlValue",[zs,Ws],kl),hl("getUrlValue",[zs,zs],kl),gl("toString",[Rs],$l),gl("toString",[Bs],$l),gl("toString",[Ls],$l),gl("toString",[Us],$l),gl("toString",[Ws],$l),gl("toString",[zs],$l),hl("parseUnixTime",[Rs],(function(t,e){return{type:Hs,value:new Date(1e3*Number(e.value))}})),hl("nowLocal",[],(function(){return{type:Hs,value:new Date}})),hl("addMillis",[Hs,Rs],(function(t,e,n){return{type:Hs,value:new Date(e.value.getTime()+Number(n.value))}})),hl("setYear",[Hs,Rs],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:Hs,value:r}})),hl("setMonth",[Hs,Rs],(function(t,e,n){const r=Number(n.value);if(r<1||r>12)throw new Error("Expecting month in [1..12], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMonth(r-1),{type:Hs,value:o}})),hl("setDay",[Hs,Rs],(function(t,e,n){const r=new Date(e.value),o=Number(n.value);if(o<=0&&-1!==o||o>function(t){const e=new Date(t);return e.setUTCMonth(e.getUTCMonth()+1),e.setUTCDate(0),e.getUTCDate()}(r))throw new Error("Unable to set day ".concat(o," for date ").concat(Ys(e),"."));return r.setUTCDate(-1===o?0:o),{type:Hs,value:r}})),hl("setHours",[Hs,Rs],(function(t,e,n){const r=Number(n.value);if(r<0||r>23)throw new Error("Expecting hours in [0..23], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCHours(r),{type:Hs,value:o}})),hl("setMinutes",[Hs,Rs],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMinutes(r),{type:Hs,value:o}})),hl("setSeconds",[Hs,Rs],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCSeconds(r),{type:Hs,value:o}})),hl("setMillis",[Hs,Rs],(function(t,e,n){const r=Number(n.value);if(r<0||r>999)throw new Error("Expecting millis in [0..999], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMilliseconds(r),{type:Hs,value:o}})),hl("getYear",[Hs],El),hl("getMonth",[Hs],Al),hl("getDay",[Hs],jl),hl("getDayOfWeek",[Hs],Vl),hl("getHours",[Hs],Fl),hl("getMinutes",[Hs],Dl),hl("getSeconds",[Hs],Sl),hl("getMillis",[Hs],Pl),hl("getIntervalSeconds",[Rs],(function(t,e){return Jl(t,e,1e3,60)})),hl("getIntervalTotalSeconds",[Rs],(function(t,e){return Jl(t,e,1e3)})),hl("getIntervalMinutes",[Rs],(function(t,e){return Jl(t,e,6e4,60)})),hl("getIntervalTotalMinutes",[Rs],(function(t,e){return Jl(t,e,6e4)})),hl("getIntervalHours",[Rs],(function(t,e){return Jl(t,e,Gl,24)})),hl("getIntervalTotalHours",[Rs],(function(t,e){return Jl(t,e,Gl)})),hl("getIntervalTotalDays",[Rs],(function(t,e){return Jl(t,e,864e5)})),hl("getIntervalTotalWeeks",[Rs],(function(t,e){return Jl(t,e,6048e5)})),hl("len",[zs],(function(t,e){return{type:Rs,value:Fi(e.value.length)}})),hl("contains",[zs,zs],(function(t,e,n){return{type:Ls,value:e.value.includes(n.value)?1:0}})),hl("substring",[zs,Rs,Rs],(function(t,e,n,r){if(r.value<n.value)throw new Error("Indexes should be in ascending order.");if(n.value<0||n.value>e.value.length||r.value<0||r.value>e.value.length)throw new Error("Indexes are out of bounds.");return{type:zs,value:e.value.substring(Number(n.value),Number(r.value))}})),hl("replaceAll",[zs,zs,zs],(function(t,e,n,r){let o;return o=n.value?e.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(n.value),"g"),r.value):e.value,{type:zs,value:o}})),hl("index",[zs,zs],(function(t,e,n){return{type:Rs,value:Fi(e.value.indexOf(n.value))}})),hl("lastIndex",[zs,zs],(function(t,e,n){return{type:Rs,value:Fi(e.value.lastIndexOf(n.value))}})),hl("trim",[zs],(function(t,e){return{type:zs,value:e.value.trim()}})),hl("trimLeft",[zs],(function(t,e){return{type:zs,value:e.value.replace(/^\s+/,"")}})),hl("trimRight",[zs],(function(t,e){return{type:zs,value:e.value.replace(/\s+$/,"")}})),hl("toUpperCase",[zs],(function(t,e){return{type:zs,value:e.value.toUpperCase()}})),hl("toLowerCase",[zs],(function(t,e){return{type:zs,value:e.value.toLowerCase()}})),hl("padStart",[zs,Rs,zs],Ol),hl("padStart",[Rs,Rs,zs],Ol),hl("padEnd",[zs,Rs,zs],Il),hl("padEnd",[Rs,Rs,zs],Il),hl("testRegex",[zs,zs],(function(t,e,n){let r;try{r=new RegExp(n.value)}catch(t){throw new Error("Invalid regular expression.")}return{type:Ls,value:r.test(e.value)?1:0}})),hl("div",[Rs,Rs],(function(t,e,n){if(n.value===Di)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=tl(0,r),el(t,r),{type:Rs,value:r}})),hl("div",[Bs,Bs],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value/n.value;return{type:Bs,value:r}})),hl("mod",[Rs,Rs],(function(t,e,n){if(n.value===Di)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=tl(0,r),el(t,r),{type:Rs,value:r}})),hl("mod",[Bs,Bs],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value%n.value;return{type:Bs,value:r}})),hl("mul",[{type:Rs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:Di;for(let e=1;e<n.length;++e)o*=n[e].value,o=tl(0,o),el(t,o);return{type:Rs,value:o}})),hl("mul",[{type:Bs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:0;for(let t=1;t<n.length;++t)o*=n[t].value;return{type:Bs,value:o}})),hl("sub",[{type:Rs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:Di;for(let e=1;e<n.length;++e)o-=n[e].value,o=tl(0,o),el(t,o);return{type:Rs,value:o}})),hl("sub",[{type:Bs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:0;for(let t=1;t<n.length;++t)o-=n[t].value;return{type:Bs,value:o}})),hl("sum",[{type:Rs,isVararg:!0}],(function(t){let e=Di;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let n=0;n<r.length;++n)e+=r[n].value,e=tl(0,e),el(t,e);return{type:Rs,value:e}})),hl("sum",[{type:Bs,isVararg:!0}],(function(t){let e=0;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let t=0;t<r.length;++t)e+=r[t].value;return{type:Bs,value:e}})),hl("abs",[Rs],(function(t,e){const n=Si(e.value);return el(t,n),{type:e.type,value:n}})),hl("abs",[Bs],(function(t,e){const n=Math.abs(e.value);return{type:Bs,value:n}})),hl("max",[{type:Rs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");let o=n[0].value;for(let t=1;t<n.length;++t)n[t].value>o&&(o=n[t].value);return{type:Rs,value:o}})),hl("max",[{type:Bs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");return{type:Bs,value:Math.max(...n.map((t=>t.value)))}})),hl("min",[{type:Rs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");let o=n[0].value;for(let t=1;t<n.length;++t)n[t].value<o&&(o=n[t].value);return{type:Rs,value:o}})),hl("min",[{type:Bs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");return{type:Bs,value:Math.min(...n.map((t=>t.value)))}})),hl("maxNumber",[],(function(){return{type:Bs,value:Ms}})),hl("minNumber",[],(function(){return{type:Bs,value:Ts}})),hl("maxInteger",[],(function(t){return el(t,ji),{type:Rs,value:ji}})),hl("minInteger",[],(function(t){return el(t,Vi),{type:Rs,value:Vi}})),hl("round",[Bs],(function(t,e){const n=Math.sign(e.value);return{type:Bs,value:n*Math.round(Math.abs(e.value))}})),hl("floor",[Bs],(function(t,e){return{type:Bs,value:Math.floor(e.value)}})),hl("ceil",[Bs],(function(t,e){return{type:Bs,value:Math.ceil(e.value)}})),hl("signum",[Rs],(function(t,e){return{type:Rs,value:Pi(e.value)}})),hl("signum",[Bs],(function(t,e){return{type:Bs,value:Math.sign(e.value)}})),hl("copySign",[Rs,Rs],(function(t,e,n){let r;if(n.value===Di)r=e.value;else if(e.value===Di)r=Fi(0);else{const t=Pi(n.value);r=Si(e.value)*t}return el(t,r),{type:Rs,value:r}})),hl("copySign",[Bs,Bs],(function(t,e,n){let r=Math.sign(n.value);0===r&&(r=Object.is(r,0)?1:-1);const o=Math.abs(e.value)*r;return{type:Bs,value:o}})),hl("getColorAlpha",[zs],zl),hl("getColorAlpha",[Us],zl),hl("getColorRed",[zs],Rl),hl("getColorRed",[Us],Rl),hl("getColorGreen",[zs],Bl),hl("getColorGreen",[Us],Bl),hl("getColorBlue",[zs],Ll),hl("getColorBlue",[Us],Ll),hl("setColorAlpha",[zs,Bs],Ul),hl("setColorAlpha",[Us,Bs],Ul),hl("setColorRed",[zs,Bs],Wl),hl("setColorRed",[Us,Bs],Wl),hl("setColorGreen",[zs,Bs],Hl),hl("setColorGreen",[Us,Bs],Hl),hl("setColorBlue",[zs,Bs],ql),hl("setColorBlue",[Us,Bs],ql),hl("rgb",[Bs,Bs,Bs],(function(t,e,n,r){const o={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:Us,value:il(o)}})),hl("argb",[Bs,Bs,Bs,Bs],(function(t,e,n,r,o){const i={a:255*e.value,r:255*n.value,g:255*r.value,b:255*o.value};return{type:Us,value:il(i)}})),function(){const t={type:zs,isVararg:!0};hl("getDictString",[qs,t],Yl),hl("getStringFromDict",[qs,t],Yl),hl("getDictNumber",[qs,t],Zl),hl("getNumberFromDict",[qs,t],Zl),hl("getDictInteger",[qs,t],Ql),hl("getIntegerFromDict",[qs,t],Ql),hl("getDictBoolean",[qs,t],tc),hl("getBooleanFromDict",[qs,t],tc),hl("getDictColor",[qs,t],ec),hl("getColorFromDict",[qs,t],ec),hl("getDictUrl",[qs,t],nc),hl("getUrlFromDict",[qs,t],nc),hl("getDictOptString",[zs,qs,t],ic),hl("getOptStringFromDict",[zs,qs,t],ic),hl("getDictOptNumber",[Bs,qs,t],ac),hl("getOptNumberFromDict",[Bs,qs,t],ac),hl("getDictOptInteger",[Rs,qs,t],sc),hl("getOptIntegerFromDict",[Rs,qs,t],sc),hl("getDictOptBoolean",[Ls,qs,t],lc),hl("getOptBooleanFromDict",[Ls,qs,t],lc),hl("getDictOptColor",[Us,qs,t],cc),hl("getOptColorFromDict",[Us,qs,t],cc),hl("getDictOptColor",[zs,qs,t],cc),hl("getOptColorFromDict",[zs,qs,t],cc),hl("getDictOptUrl",[zs,qs,t],uc),hl("getOptUrlFromDict",[zs,qs,t],uc),hl("getDictOptUrl",[Ws,qs,t],uc),hl("getOptUrlFromDict",[Ws,qs,t],uc),hl("getDictFromDict",[qs,t],oc),hl("getArrayFromDict",[qs,t],rc),hl("getOptArrayFromDict",[qs,t],dc),hl("getOptDictFromDict",[qs,t],pc),gl("getString",[qs,t],Yl),gl("getBoolean",[qs,t],tc),gl("getInteger",[qs,t],Ql),gl("getNumber",[qs,t],Zl),gl("getUrl",[qs,t],nc),gl("getColor",[qs,t],ec),gl("getArray",[qs,t],rc),gl("getDict",[qs,t],oc)}(),hl("getArrayString",[Js,Rs],gc),hl("getStringFromArray",[Js,Rs],gc),hl("getArrayNumber",[Js,Rs],mc),hl("getNumberFromArray",[Js,Rs],mc),hl("getArrayInteger",[Js,Rs],vc),hl("getIntegerFromArray",[Js,Rs],vc),hl("getArrayBoolean",[Js,Rs],yc),hl("getBooleanFromArray",[Js,Rs],yc),hl("getArrayColor",[Js,Rs],$c),hl("getColorFromArray",[Js,Rs],$c),hl("getArrayUrl",[Js,Rs],bc),hl("getUrlFromArray",[Js,Rs],bc),hl("getArrayFromArray",[Js,Rs],_c),hl("getDictFromArray",[Js,Rs],wc),hl("getArrayOptString",[Js,Rs,zs],xc),hl("getOptStringFromArray",[Js,Rs,zs],xc),hl("getArrayOptNumber",[Js,Rs,Bs],kc),hl("getOptNumberFromArray",[Js,Rs,Bs],kc),hl("getArrayOptInteger",[Js,Rs,Rs],Cc),hl("getOptIntegerFromArray",[Js,Rs,Rs],Cc),hl("getArrayOptBoolean",[Js,Rs,Ls],Ec),hl("getOptBooleanFromArray",[Js,Rs,Ls],Ec),hl("getArrayOptColor",[Js,Rs,Us],Ac),hl("getOptColorFromArray",[Js,Rs,Us],Ac),hl("getArrayOptColor",[Js,Rs,zs],Ac),hl("getOptColorFromArray",[Js,Rs,zs],Ac),hl("getArrayOptUrl",[Js,Rs,Ws],jc),hl("getOptUrlFromArray",[Js,Rs,Ws],jc),hl("getArrayOptUrl",[Js,Rs,zs],jc),hl("getOptUrlFromArray",[Js,Rs,zs],jc),hl("getOptArrayFromArray",[Js,Rs],(function(t,e,n){try{return _c(t,e,n)}catch(t){return{type:Js,value:[]}}})),hl("getOptDictFromArray",[Js,Rs],(function(t,e,n){try{return wc(t,e,n)}catch(t){return{type:qs,value:{}}}})),hl("len",[Js],(function(t,e){return{type:Rs,value:Fi(e.value.length)}})),gl("getString",[Js,Rs],gc),gl("getInteger",[Js,Rs],vc),gl("getNumber",[Js,Rs],mc),gl("getBoolean",[Js,Rs],yc),gl("getUrl",[Js,Rs],bc),gl("getColor",[Js,Rs],$c),gl("getArray",[Js,Rs],_c),gl("getDict",[Js,Rs],wc),hl("getStoredIntegerValue",[zs,Rs],Vc(Rs)),hl("getStoredNumberValue",[zs,Bs],Vc(Bs)),hl("getStoredStringValue",[zs,zs],Vc(zs)),hl("getStoredUrlValue",[zs,Ws],Vc(Ws)),hl("getStoredUrlValue",[zs,zs],Vc(Ws)),hl("getStoredColorValue",[zs,Us],Vc(Us)),hl("getStoredColorValue",[zs,zs],Vc(Us)),hl("getStoredBooleanValue",[zs,Ls],Vc(Ls));const Dc={StringLiteral:function(t,e){return{type:zs,value:e.value}},NumberLiteral:function(t,e){return{type:Bs,value:e.value}},IntegerLiteral:function(t,e){return el(t,e.value),{type:Rs,value:e.value}},BooleanLiteral:function(t,e){return{type:Ls,value:e.value?1:0}},UnaryExpression:function(t,e){const n=Ks(Sc(t,e.argument));switch(e.operator){case"!":if(n.type===Ls)return{type:Ls,value:n.value?0:1};rl("".concat(e.operator).concat(Zs(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===Rs){const e=n.value*Fi(r);return el(t,e),{type:Rs,value:e}}if(n.type===Bs)return{type:Bs,value:n.value*r};rl("".concat(e.operator).concat(Zs(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=Ks(Sc(t,e.test));if(n.type===Ls)return n.value?Sc(t,e.consequent):Sc(t,e.alternate);rl("".concat(Zs(n)," ? ").concat(Zs(Sc(t,e.consequent))," : ").concat(Zs(Sc(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TryExpression:function(t,e){try{return Sc(t,e.test)}catch(n){return Sc(t,e.alternate)}},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return Sc(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=Ys(Sc(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:zs,value:n}},LogicalExpression:function(t,e){const n=Ks(Sc(t,e.left));if(n.type!==Ls&&rl("".concat(Zs(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:Ls,value:0};const r=Ks(Sc(t,e.right));return r.type!==Ls&&rl("".concat(Zs(n)," ").concat(e.operator," ").concat(Zs(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(Qs(r.type),".")),{type:Ls,value:r.value}},BinaryExpression:function(t,e){const n=e.operator;let r=Sc(t,e.left),o=Sc(t,e.right);if(("number"===r.type&&"integer"===o.type||"integer"===r.type&&"number"===o.type)&&("integer"===r.type?r=sl(r):"integer"===o.type&&(o=sl(o))),r.type!==o.type&&rl("".concat(Zs(r)," ").concat(e.operator," ").concat(Zs(o)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(Qs(r.type)," and ").concat(Qs(o.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===Hs&&n.type===Hs?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:Ls,value:r?1:0}}(n,r,o);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==Bs&&e.type!==Rs&&e.type!==Hs&&rl("".concat(Zs(e)," ").concat(t," ").concat(Zs(n)),"Operator '".concat(t,"' cannot be applied to ").concat(Qs(e.type)," type."));const o=e.type===Hs?e.value.getTime():e.value,i=n.type===Hs?n.value.getTime():n.value;return r=">"===t?o>i:">="===t?o>=i:"<"===t?o<i:o<=i,{type:Ls,value:r?1:0}}(n,r,o);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==zs&&n.type!==Bs&&n.type!==Rs&&rl("".concat(Zs(n)," ").concat(e," ").concat(Zs(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Qs(n.type)," type.")),n.type===zs)return"-"===e&&rl("".concat(Zs(n)," - ").concat(Zs(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Qs(n.type)," type.")),{type:zs,value:n.value+r.value};let o="+"===e?n.value+r.value:n.value-r.value;if(n.type===Rs)try{o=tl(0,o),el(t,o)}catch(t){rl("".concat(Zs(n)," ").concat(e," ").concat(Zs(r)),t.message)}return{type:n.type,value:o}}(t,n,r,o);if("/"===n||"*"===n||"%"===n)return function(t,e,n,r){let o;if(n.type!==Rs&&n.type!==Bs&&rl("".concat(Zs(n)," ").concat(e," ").concat(Zs(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Qs(n.type)," type.")),"*"===e)o=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&rl("".concat(Zs(n)," ").concat(e," ").concat(Zs(r)),"Division by zero is not supported."),o="/"===e?n.value/r.value:n.value%r.value}if(n.type===Rs)try{o=tl(0,o),el(t,o)}catch(t){rl("".concat(Zs(n)," ").concat(e," ").concat(Zs(r)),t.message)}return{type:n.type,value:o}}(t,n,r,o);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;let r,o=e.arguments.map((e=>Sc(t,e)));const i=n+":"+o.map((t=>t.type)).join("#");if(dl.has(i))r=dl.get(i);else{const t=vl("function",n,o);if("expected"in t||"type"in t&&"missing"===t.type){const e=o.map((t=>Qs(t.type))).join(", "),r="".concat(n,"(").concat(Fc(o),")");"few"===t.type&&0===o.length?rl(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?rl(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):rl(r,"Unknown function name: ".concat(n,"."))}r=t.func,t.conversions&&(o=yl(r,o))}if(!r)throw new Error("Function not found");try{return r.cb(t,...o)}catch(t){rl("".concat(n,"(").concat(Fc(o),")"),t.message)}},MethodExpression:function(t,e){const n=e.method.name;let r;e.arguments.unshift(e.object);let o=e.arguments.map((e=>Sc(t,e)));const i=n+":"+o.map((t=>t.type)).join("#");if(fl.has(i))r=fl.get(i);else{const t=vl("method",n,o);if("expected"in t||"type"in t&&"missing"===t.type){const e=o.slice(1).map((t=>Qs(t.type))).join(", "),r="".concat(n,"(").concat(Fc(o.slice(1)),")");"few"===t.type&&1===o.length?rl(r,"Non empty argument list is required for method '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?rl(r,"Method '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):rl(r,"Unknown method name: ".concat(n,"."))}r=t.func,t.conversions&&(o=yl(r,o))}if(!r)throw new Error("Method not found");try{return r.cb(t,...o)}catch(t){rl("".concat(n,"(").concat(Fc(o.slice(1)),")"),t.message)}},Variable:function(t,e){const n=e.id.name,r=t.variables.get(n);if(r)return function(t){return{type:t.getType(),value:t.getValue()}}(r);throw new Error("Variable '".concat(n,"' is missing."))}};function Sc(t,e){if(e.type in Dc)return Dc[e.type](t,e);throw new Error("Unsupported expression")}function Pc(t,e,n){try{const r={variables:t,warnings:[],safeIntegerOverflow:!1,store:e},o=Sc(r,n);return r.safeIntegerOverflow&&r.warnings.push(oe(new Error("Safe integer overflow, values may lose accuracy."),{level:"warn"})),{result:o,warnings:r.warnings}}catch(t){return{result:{type:"error",value:t.message},warnings:[]}}}class Nc{constructor(t){this.ast=t}apply(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];try{const o=Pc(t,n,this.ast);o.warnings.forEach(e);const i=o.result;if("error"===i.type)return void e(oe(new Error("Expression execution error"),{additional:{message:i.value}}));const a=i.value;if(a instanceof Date)return Xs(a);if("boolean"===i.type)return Boolean(a);if("color"===i.type){const t=pe(String(a));if(t)return il(t);e(oe(new Error("Expression execution error")))}if("integer"===i.type)return a>2147483647||a<-2147483648?void e(oe(new Error("Expression result is out of 32-bit int range"))):Number(a);if(!r&&("array"===i.type||"dict"===i.type))try{return JSON.stringify(a)}catch(t){return e(oe(new Error("Failed to stringify ".concat(i.type)))),"<".concat(i.type,">")}return a}catch(t){return void e(oe(new Error("Expression execution error")))}}}function Oc(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=Is(t,{startRule:"JsonStringContents"}),r=nl(n);return e.vars.push(...r),new Nc(n)}catch(e){return void n(oe(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>Oc(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=Oc(t[o],e,n);return r}}var r;return t}function Ic(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(t){if(t instanceof Nc)return t.apply(e,n,r,o);if(Array.isArray(t))return t.map((t=>Ic(t,e,n,r)));if("object"==typeof t){const o={};for(const i in t)o[i]=Ic(t[i],e,n,r);return o}}return t}function Mc(t,e,n){const r={vars:[],hasExpression:!1},o=Oc(t,r,e);return{vars:[...new Set(r.vars)],hasExpression:r.hasExpression,applyVars:(t,r)=>Ic(o,t,e,n,r)}}const Tc={pagers:function(){return te(new Map)}},zc=new Map,Rc=new Map;function Bc(t){const e=zc.get(t)||te("");return zc.has(t)||zc.set(t,e),e}function Lc(t){const e=Rc.get(t)||new Map;return Rc.has(t)||Rc.set(t,e),e}class Uc{setVariable(t){const e=t.getName(),n=Lc(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),Bc(this).set(e)}getVariable(t){return Lc(this).get(t)}list(){return Lc(this).values()}}function Wc(){return new Uc}function Hc(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const qc=new Set(["start","stop","pause","resume","cancel","reset"]);class Jc{constructor(t){Hc(this,"timers",new Map),Hc(this,"awaitActions",[]),this.logError=t.logError,this.applyVars=t.applyVars,this.hasVariableWithType=t.hasVariableWithType,this.setVariableValue=t.setVariableValue,this.execAnyActions=t.execAnyActions,this.visibilityHandler=()=>{"visible"===document.visibilityState?(this.awaitActions.forEach((t=>{let{id:e,action:n}=t;this.execTimerAction(e,n)})),this.awaitActions=[],this.unholdAll()):this.holdAll()},document.addEventListener("visibilitychange",this.visibilityHandler)}destroy(){document.removeEventListener("visibilitychange",this.visibilityHandler);for(const[t,e]of this.timers)this.stopTimerTimeouts(e)}createTimer(t){null!=t&&t.id?t.duration||t.tick_interval&&(t.value_variable||t.tick_actions)?this.timers.set(t.id,{state:"stopped",definition:t}):this.logError(oe(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(oe(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&qc.has(e)))return void this.logError(oe(new Error("Incorrect timer action"),{additional:{id:t,action:e}}));const n=e;if("visible"!==document.visibilityState)return void this.awaitActions.push({id:t,action:n});const r=this.timers.get(t);this[n](r)}stopTimerTimeouts(t){t.durationTimeout&&(clearTimeout(t.durationTimeout),t.durationTimeout=void 0),t.tickTimeout&&(clearTimeout(t.tickTimeout),t.tickTimeout=void 0)}async tickOrUnholdAction(t){const e=performance.now(),n=(t.durationPassed||0)+e-(t.durationStarted||0);t.duration&&n>t.duration||(this.updateVariable(t,n),await this.callActions(t,"tick"),void 0!==t.tickCount&&++t.tickCount)}startOrResume(t){t.state="running",t.hold=!1,t.durationStarted=performance.now();const e=t.duration;e&&(t.durationTimeout=window.setTimeout((async()=>{this.updateVariable(t,e),t.tickCountPredict&&void 0!==t.tickCount&&t.tickCount<t.tickCountPredict&&await this.callActions(t,"tick"),this.stop(t)}),Math.max(0,e-(t.durationPassed||0))));const n=t.tick;if(n){const e=()=>{const r=t.tickStarted=performance.now(),o=Math.max(0,n-(t.tickPassed||0));t.tickTimeout=window.setTimeout((async()=>{await this.tickOrUnholdAction(t),t.tickPassed=(performance.now()-r-o)%n,"running"===t.state&&e()}),o)};e()}}start(t){if("running"===t.state)return void this.logError(oe(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(oe(new Error("The timer is paused")));const e=t.definition.value_variable;!e||this.hasVariableWithType(e,"integer")?(e&&this.setVariableValue(e,0),t.definition.duration&&(t.duration=this.applyVars(t.definition.duration)),t.definition.tick_interval&&(t.tick=this.applyVars(t.definition.tick_interval)),void 0!==t.duration&&t.duration<0||void 0!==t.tick&&t.tick<=0?this.logError(oe(new Error("Incorrect timer properties"),{additional:{id:t.definition.id}})):(void 0!==t.duration&&void 0!==t.tick&&(t.tickCount=0,t.tickCountPredict=Math.floor(t.duration/t.tick)),this.startOrResume(t))):this.logError(oe(new Error("Cannot find variable"),{additional:{name:e}}))}stop(t){"stopped"!==t.state?(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t),this.callActions(t,"end")):this.logError(oe(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(oe(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(oe(new Error("The timer has already been paused")));t.state="paused",this.stopTimerTimeouts(t);const e=performance.now();t.durationStarted&&(t.durationPassed=(t.durationPassed||0)+e-t.durationStarted),t.tickStarted&&(t.tickPassed=(t.tickPassed||0)+e-t.tickStarted);const n=t.definition.value_variable;n&&t.durationPassed&&this.setVariableValue(n,Math.round(t.durationPassed))}resume(t){"stopped"!==t.state?"running"!==t.state?this.startOrResume(t):this.logError(oe(new Error("The timer is already running"))):this.logError(oe(new Error("The timer has already been stopped")))}cancel(t){"stopped"!==t.state&&(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t))}reset(t){this.cancel(t),this.start(t)}updateVariable(t,e){const n=t.definition.value_variable;n&&this.setVariableValue(n,Math.round(e))}async callActions(t,e){const n=t.definition["end"===e?"end_actions":"tick_actions"];if(n){const t=this.applyVars(n);return this.execAnyActions(t,{processUrls:!1})}}holdAll(){for(const[t,e]of this.timers)"running"===e.state&&(e.hold=!0,this.stopTimerTimeouts(e))}async unholdAll(){for(const[t,e]of this.timers)if("running"===e.state&&e.hold){const t=performance.now();e.durationStarted&&(e.durationPassed=(e.durationPassed||0)+t-e.durationStarted),e.tickStarted&&(e.tickPassed=(e.tickPassed||0)+t-e.tickStarted),e.tick&&await this.tickOrUnholdAction(e),this.startOrResume(e)}}}function Gc(t,e,n,r){const{variable_name:o}=n;if(!o)return void e(oe(new Error("Incorrect ".concat(n.type," action")),{additional:{name:o}}));const i=t.get(o);if(!i)return void e(oe(new Error("Cannot find variable"),{additional:{name:o}}));const a=i.getType();"array"===a?r(i):e(oe(new Error("Trying to insert value into the non-array"),{additional:{name:o,type:a}}))}const Kc={tooltip:"divkit-f1907",tooltip_visible:"divkit-e5914"},Xc={linear:r,ease:Do,ease_in:jo,ease_out:Vo,ease_in_out:Ao,spring:So},Yc=300,Zc=0;function Qc(t,e){let{animations:n,direction:r}=e;if(!n)return{};const o=Me(n),i=(a=o,Math.max(...a.map((t=>(Number(t.duration)||Yc)+(Number(t.start_delay)||Zc)))));var a;return o.some((t=>"no_animation"===t.name))?{}:{duration:Le()?0:i,css:t=>{const e=t*i,n=o.map((t=>{const n=Number(t.start_delay)||Zc,o=Number(t.duration)||Yc,i=Math.max(0,Math.min(1,(e-n)/o)),a=(Xc[t.interpolator||"ease_in_out"]||Ao)(i);var s,l;if("fade"===t.name)return{active:a>0&&a<1,opacity:(1-a)*("in"===r&&null!==(s=t.start_value)&&void 0!==s?s:0)+a*("in"===r?1:null!==(l=t.end_value)&&void 0!==l?l:1)};if("translate"===t.name){var c,u;const e=-("in"===r&&null!==(c=t.start_value)&&void 0!==c?c:10),n=-("in"===r?0:null!==(u=t.end_value)&&void 0!==u?u:0);return{active:a>0&&a<1,translate:"translateY(".concat((1-a)*e+a*n).concat("in"===r&&void 0!==t.start_value||"out"===r&&void 0!==t.end_value?"%":"px",")")}}if("scale"===t.name){var d,p;const e="in"===r&&null!==(d=t.start_value)&&void 0!==d?d:0,n="in"===r?1:null!==(p=t.end_value)&&void 0!==p?p:1;return{active:a>0&&a<1,scale:"scale(".concat((1-a)*e+a*n,")")}}return{}})),a=n.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),s=n.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),l=n.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),c=n.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),u=[s,c.length?c[c.length-1]:l].filter(Boolean).join(" ");return"transform:".concat(u||"none",";opacity:").concat(a)}}}const{window:tu}=j;function eu(t){let e,o,i,a,c,u,d,p;return o=new gs({props:{componentContext:t[11]}}),{c(){e=T("div"),Jt(o.$$.fragment),W(e,"class",i=Ee("tooltip",Kc,t[5])+" "+(t[12]?ne.root_platform_desktop:"")),Y(e,"top",t[2]),Y(e,"left",t[1]),Y(e,"width",t[3]),Y(e,"height",t[4])},m(n,r){O(n,e,r),Gt(o,e,null),t[27](e),u=!0,d||(p=[U(tu,"click",t[16]),U(tu,"resize",t[17])],d=!0)},p(n,r){t=n;const a={};2048&r[0]&&(a.componentContext=t[11]),o.$set(a),(!u||4128&r[0]&&i!==(i=Ee("tooltip",Kc,t[5])+" "+(t[12]?ne.root_platform_desktop:"")))&&W(e,"class",i),4&r[0]&&Y(e,"top",t[2]),2&r[0]&&Y(e,"left",t[1]),8&r[0]&&Y(e,"width",t[3]),16&r[0]&&Y(e,"height",t[4])},i(n){u||(Nt(o.$$.fragment,n),n&&wt((()=>{u&&(c&&c.end(1),a=Mt(e,Qc,{animations:t[13]||nu,direction:"in"}),a.start())})),u=!0)},o(i){Ot(o.$$.fragment,i),a&&a.invalidate(),i&&(c=function(t,e,o){const i={direction:"out"};let a,c=e(t,o,i),u=!0;const d=Dt;let p;function f(){const{delay:e=0,duration:o=300,easing:i=r,tick:l=n,css:f}=c||It;f&&(a=ot(t,1,0,o,e,i,f));const h=x()+e,g=h+o;wt((()=>Vt(t,!1,"start"))),"inert"in t&&(p=t.inert,t.inert=!0),A((e=>{if(u){if(e>=g)return l(0,1),Vt(t,!1,"end"),--d.r||s(d.c),!1;if(e>=h){const t=i((e-h)/o);l(1-t,t)}}return u}))}return d.r+=1,l(c)?jt().then((()=>{c=c(i),f()})):f(),{end(e){e&&"inert"in t&&(t.inert=p),e&&c.tick&&c.tick(1,0),u&&(a&&it(t,a),u=!1)}}}(e,Qc,{animations:t[14]||nu,direction:"out"})),u=!1},d(n){n&&I(e),Kt(o),t[27](null),n&&c&&c.end(),d=!1,s(p)}}}const nu={name:"set",items:[{name:"translate"},{name:"fade"}]};function ru(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$=n,b=n,_=n,w=n,x=n;var k,C,E,A;t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x()));let{ownerNode:j}=e,{data:V}=e,{internalId:F}=e,{parentComponentContext:D}=e;const S=pt(re),P=S.isDesktop;f(t,P,(t=>r(12,m=t)));const N=Date.now();let O,I=!1,M="",T="",z="",R="",B=null;function L(){var t,e;if(!O||!j)return;const n=O.parentElement;if(!n)return;const o=O.style.cssText;r(0,O.style.cssText+=";transform: none !important",O);const i=j.getBoundingClientRect(),a=O.getBoundingClientRect(),s=n.getBoundingClientRect();r(0,O.style.cssText=o,O);let l=0,c=0,u=null,p=null,f=0,m=0;const v=D.getJsonWithVars(null===(t=V.div)||void 0===t?void 0:t.width),y=D.getJsonWithVars(null===(e=V.div)||void 0===e?void 0:e.width);if(f=v&&"match_parent"!==v.type?"fixed"===v.type&&v.value?u=v.value:a.width:u=i.width,m="match_parent"===(null==y?void 0:y.type)?p=i.height:"fixed"===(null==y?void 0:y.type)&&y.value?p=y.value:a.height,"left"===g||"bottom-left"===g||"top-left"===g)l=i.left-f;else if("top"===g||"bottom"===g||"center"===g)l=(i.left+i.right)/2-f/2;else{if("right"!==g&&"bottom-right"!==g&&"top-right"!==g)return;l=i.right}if("top"===g||"top-left"===g||"top-right"===g)c=i.top-m;else if("left"===g||"right"===g||"center"===g)c=(i.top+i.bottom)/2-m/2;else{if("bottom-left"!==g&&"bottom"!==g&&"bottom-right"!==g)return;c=i.bottom}l-=s.left,c-=s.top,l+=h||0,c+=d||0,r(1,M="".concat(l,"px")),r(2,T="".concat(c,"px")),r(3,z=null!==u?"".concat(u,"px"):""),r(4,R=null!==p?"".concat(p,"px"):""),r(26,I=!0),null===u||null===p?"undefined"==typeof ResizeObserver||B||(B=new ResizeObserver((()=>{requestAnimationFrame(L)})),B.observe(O)):null==B||B.disconnect()}return lt((()=>{if(S.tooltipRoot){const t=window.getComputedStyle(O);r(0,O.style.fontSize=t.fontSize,O),r(0,O.style.fontFamily=t.fontFamily,O),r(0,O.style.lineHeight=t.lineHeight,O),S.tooltipRoot.appendChild(O)}})),ct((()=>{I||L()})),ut((()=>{null==B||B.disconnect()})),t.$$set=t=>{"ownerNode"in t&&r(18,j=t.ownerNode),"data"in t&&r(19,V=t.data),"internalId"in t&&r(20,F=t.internalId),"parentComponentContext"in t&&r(21,D=t.parentComponentContext)},t.$$.update=()=>{2621440&t.$$.dirty[0]&&r(11,o=D.produceChildContext(V.div)),2621440&t.$$.dirty[0]&&(r(10,i=D.getDerivedFromVars(V.position)),_(),_=p(i,(t=>r(31,g=t)))),15204352&t.$$.dirty[0]&&(r(9,a=D.getDerivedFromVars(null===r(23,C=null===r(22,k=V.offset)||void 0===k?void 0:k.x)||void 0===C?void 0:C.value)),b(),b=p(a,(t=>r(30,h=t)))),52953088&t.$$.dirty[0]&&(r(8,s=D.getDerivedFromVars(null===r(25,A=null===r(24,E=V.offset)||void 0===E?void 0:E.y)||void 0===A?void 0:A.value)),$(),$=p(s,(t=>r(29,d=t)))),2621440&t.$$.dirty[0]&&(r(7,l=D.getDerivedFromVars(V.animation_in)),w(),w=p(l,(t=>r(13,v=t)))),2621440&t.$$.dirty[0]&&(r(6,c=D.getDerivedFromVars(V.animation_out)),x(),x=p(c,(t=>r(14,y=t)))),67108864&t.$$.dirty[0]&&r(5,u={visible:I})},[O,M,T,z,R,u,c,l,s,a,i,o,m,v,y,P,function(t){Date.now()-N<100||t.composedPath().includes(O)||S.onTooltipClose(F)},function(){L()},j,V,F,D,k,C,E,A,I,function(t){gt[t?"unshift":"push"]((()=>{O=t,r(0,O)}))}]}const ou=class extends Zt{constructor(t){super(),Xt(this,t,ru,eu,d,{ownerNode:18,data:19,internalId:20,parentComponentContext:21},null,[-1,-1])}};function iu(t){let{delay:e=0,duration:n=400,easing:r=Vo,x:o=0,y:i=0,opacity:a=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=getComputedStyle(t),l=+s.opacity,c="none"===s.transform?"":s.transform,u=l*(1-a),[d,p]=_(o),[f,h]=_(i);return{delay:e,duration:n,easing:r,css:(t,e)=>"\n\t\t\ttransform: ".concat(c," translate(").concat((1-t)*d).concat(p,", ").concat((1-t)*f).concat(h,");\n\t\t\topacity: ").concat(l-u*e)}}const au={root_platform_desktop:"divkit-ee112",menu:"divkit-cedbe",menu_visible:"divkit-e4801",menu__list:"divkit-c8df2",menu__item:"divkit-ffd4a"},{window:su}=j;function lu(t,e,n){const r=t.slice();return r[23]=e[n],r}function cu(t){let e,n=t[23].text+"";return{c(){e=R(n)},m(t,n){O(t,e,n)},p(t,r){1&r&&n!==(n=t[23].text+"")&&K(e,n)},d(t){t&&I(e)}}}function uu(t){let e,n,r,o;return n=new Xe({props:{componentContext:t[1],actions:t[23].actions||t[23].action&&[t[23].action],cls:au.menu__item+" "+t[10],customAction:t[14],$$slots:{default:[cu]},$$scope:{ctx:t}}}),{c(){e=T("li"),Jt(n.$$.fragment),r=B()},m(t,i){O(t,e,i),Gt(n,e,null),S(e,r),o=!0},p(t,e){const r={};2&e&&(r.componentContext=t[1]),1&e&&(r.actions=t[23].actions||t[23].action&&[t[23].action]),67108865&e&&(r.$$scope={dirty:e,ctx:t}),n.$set(r)},i(t){o||(Nt(n.$$.fragment,t),o=!0)},o(t){Ot(n.$$.fragment,t),o=!1},d(t){t&&I(e),Kt(n)}}}function du(t){let e,n,r,o,i,a,l,c,u=zt(t[0]),d=[];for(let e=0;e<u.length;e+=1)d[e]=uu(lu(t,u,e));const p=t=>Ot(d[t],1,1,(()=>{d[t]=null}));return{c(){e=T("div"),n=T("ul");for(let t=0;t<d.length;t+=1)d[t].c();W(n,"class",r=au.menu__list),W(e,"class",o=Ee("menu",au,t[7])+" "+(t[8]?ne.root_platform_desktop:"")+" "+t[9]),Y(e,"top",t[4]),Y(e,"left",t[3]),Y(e,"width",t[5]),Y(e,"height",t[6])},m(r,o){O(r,e,o),S(e,n);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(n,null);t[17](e),a=!0,l||(c=[U(su,"click",t[12]),U(su,"resize",t[13])],l=!0)},p(t,r){let[i]=r;if(17411&i){let e;for(u=zt(t[0]),e=0;e<u.length;e+=1){const r=lu(t,u,e);d[e]?(d[e].p(r,i),Nt(d[e],1)):(d[e]=uu(r),d[e].c(),Nt(d[e],1),d[e].m(n,null))}for(St(),e=u.length;e<d.length;e+=1)p(e);Pt()}(!a||384&i&&o!==(o=Ee("menu",au,t[7])+" "+(t[8]?ne.root_platform_desktop:"")+" "+t[9]))&&W(e,"class",o),16&i&&Y(e,"top",t[4]),8&i&&Y(e,"left",t[3]),32&i&&Y(e,"width",t[5]),64&i&&Y(e,"height",t[6])},i(t){if(!a){for(let t=0;t<u.length;t+=1)Nt(d[t]);t&&wt((()=>{a&&(i||(i=Tt(e,iu,{y:20},!0)),i.run(1))})),a=!0}},o(t){d=d.filter(Boolean);for(let t=0;t<d.length;t+=1)Ot(d[t]);t&&(i||(i=Tt(e,iu,{y:20},!1)),i.run(0)),a=!1},d(n){n&&I(e),M(d,n),t[17](null),n&&i&&i.end(),l=!1,s(c)}}}function pu(t,e,n){let r,o,{ownerNode:i}=e,{items:a}=e,{parentComponentContext:s}=e;const l=pt(re),c=l.getCustomization("menuPopupClass")||"",u=l.getCustomization("menuItemClass")||"",d=l.isDesktop;f(t,d,(t=>n(8,o=t)));const p=Date.now(),h=function(){const t=st();return function(e,n){let{cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=t.$$.callbacks[e];if(o){const i=Q(e,n,{cancelable:r});return o.slice().forEach((e=>{e.call(t,i)})),!i.defaultPrevented}return!0}}();let g,m=!1,v="",y="",$="",b="",_=null;function w(){if(!g||!i)return;const t=g.parentElement;if(!t)return;const e=i.getBoundingClientRect(),r=g.getBoundingClientRect(),o=t.getBoundingClientRect(),a=window.innerWidth,s=window.innerHeight;let l=0,c=0,u=r.width,d=r.height;l=e.left-o.left,c=e.bottom-o.top,l+u>a&&(l=a-u),l<0&&(l=0),c+d>s&&(c=e.top-o.top-d>0?e.top-o.top-d:s-d),c<0&&(c=0),n(3,v="".concat(l,"px")),n(4,y="".concat(c,"px")),n(5,$=""),n(6,b=""),n(16,m=!0),"undefined"==typeof ResizeObserver||_||(_=new ResizeObserver((()=>{requestAnimationFrame(w)})),_.observe(g))}return lt((()=>{if(l.tooltipRoot){const t=window.getComputedStyle(g);n(2,g.style.fontSize=t.fontSize,g),n(2,g.style.fontFamily=t.fontFamily,g),n(2,g.style.lineHeight=t.lineHeight,g),l.tooltipRoot.appendChild(g)}})),ct((()=>{m||w()})),ut((()=>{null==_||_.disconnect()})),t.$$set=t=>{"ownerNode"in t&&n(15,i=t.ownerNode),"items"in t&&n(0,a=t.items),"parentComponentContext"in t&&n(1,s=t.parentComponentContext)},t.$$.update=()=>{65536&t.$$.dirty&&n(7,r={visible:m})},[a,s,g,v,y,$,b,r,o,c,u,d,function(t){Date.now()-p<100||t.composedPath().includes(g)||h("close")},function(){w()},function(){return h("close"),!0},i,m,function(t){gt[t?"unshift":"push"]((()=>{g=t,n(2,g)}))}]}const fu=class extends Zt{constructor(t){super(),Xt(this,t,pu,du,d,{ownerNode:15,items:0,parentComponentContext:1})}},{Map:hu}=j;function gu(t,e,n){const r=t.slice();return r[115]=e[n],r}function mu(t){let e,n,r,o,i,a,s,l,c,u;n=new Cs({props:{svgFiltersMap:t[5]}}),o=new gs({props:{componentContext:t[6]}});let d=t[3]&&vu(t),p=t[4]&&$u(t);return{c(){e=T("div"),Jt(n.$$.fragment),r=B(),Jt(o.$$.fragment),i=B(),d&&d.c(),a=B(),p&&p.c(),W(e,"class",s=""+(ne.root+(t[7]?" ".concat(ne.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))),W(e,"dir",t[8])},m(t,s){O(t,e,s),Gt(n,e,null),S(e,r),Gt(o,e,null),S(e,i),d&&d.m(e,null),S(e,a),p&&p.m(e,null),l=!0,c||(u=U(e,"touchstart",Au,{passive:!0}),c=!0)},p(t,r){const i={};32&r[0]&&(i.svgFiltersMap=t[5]),n.$set(i);const c={};64&r[0]&&(c.componentContext=t[6]),o.$set(c),t[3]?d?(d.p(t,r),8&r[0]&&Nt(d,1)):(d=vu(t),d.c(),Nt(d,1),d.m(e,a)):d&&(St(),Ot(d,1,1,(()=>{d=null})),Pt()),t[4]?p?(p.p(t,r),16&r[0]&&Nt(p,1)):(p=$u(t),p.c(),Nt(p,1),p.m(e,null)):p&&(St(),Ot(p,1,1,(()=>{p=null})),Pt()),(!l||129&r[0]&&s!==(s=""+(ne.root+(t[7]?" ".concat(ne.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))))&&W(e,"class",s),(!l||256&r[0])&&W(e,"dir",t[8])},i(t){l||(Nt(n.$$.fragment,t),Nt(o.$$.fragment,t),Nt(d),Nt(p),l=!0)},o(t){Ot(n.$$.fragment,t),Ot(o.$$.fragment,t),Ot(d),Ot(p),l=!1},d(t){t&&I(e),Kt(n),Kt(o),d&&d.d(),p&&p.d(),c=!1,u()}}}function vu(t){let e,n,r=[],o=new hu,i=zt(t[3]);const a=t=>t[115].internalId;for(let e=0;e<i.length;e+=1){let n=gu(t,i,e),s=a(n);o.set(s,r[e]=yu(s,n))}return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=L()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);O(t,e,o),n=!0},p(t,n){72&n[0]&&(i=zt(t[3]),St(),r=Bt(r,n,a,1,t,i,o,e.parentNode,Rt,yu,e,gu),Pt())},i(t){if(!n){for(let t=0;t<i.length;t+=1)Nt(r[t]);n=!0}},o(t){for(let t=0;t<r.length;t+=1)Ot(r[t]);n=!1},d(t){t&&I(e);for(let e=0;e<r.length;e+=1)r[e].d(t)}}}function yu(t,e){let n,r,o;return r=new ou({props:{ownerNode:e[115].ownerNode,data:e[115].desc,internalId:e[115].internalId,parentComponentContext:e[6]}}),{key:t,first:null,c(){n=L(),Jt(r.$$.fragment),this.first=n},m(t,e){O(t,n,e),Gt(r,t,e),o=!0},p(t,n){e=t;const o={};8&n[0]&&(o.ownerNode=e[115].ownerNode),8&n[0]&&(o.data=e[115].desc),8&n[0]&&(o.internalId=e[115].internalId),64&n[0]&&(o.parentComponentContext=e[6]),r.$set(o)},i(t){o||(Nt(r.$$.fragment,t),o=!0)},o(t){Ot(r.$$.fragment,t),o=!1},d(t){t&&I(n),Kt(r,t)}}}function $u(t){let e,n;return e=new fu({props:{ownerNode:t[4].node,items:t[4].items,parentComponentContext:t[6]}}),e.$on("close",t[39]),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.ownerNode=t[4].node),16&n[0]&&(r.items=t[4].items),64&n[0]&&(r.parentComponentContext=t[6]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function bu(t){let e,n,r=!t[1]&&!t[2]&&t[6]&&mu(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[1]||t[2]||!t[6]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),70&n[0]&&Nt(r,1)):(r=mu(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}let _u=te(!0),wu=0;function xu(){_u.set(!1)}function ku(){_u.set(!0)}const Cu=new Set(["string","integer","number","url","color","boolean"]);function Eu(t,e){return t&&e?new Map([...t,...e]):t||e||void 0}function Au(){}function ju(t,e,n){let r,o,i,a;var s,l,c,u;let{id:d}=e,{json:p={}}=e,{platform:h="auto"}=e,{theme:g="system"}=e,{globalVariablesController:m=new Uc}=e,{mix:v=""}=e,{customization:y={}}=e,{builtinProtocols:$=["http","https","tel","mailto","intent"]}=e,{extensions:b=new Map}=e,{onError:_}=e,{onStat:w}=e,{onCustomAction:x}=e,{onComponent:k}=e,{typefaceProvider:C=(t=>"")}=e,{fetchInit:E={}}=e,{tooltipRoot:A}=e,{customComponents:j}=e,{direction:V="ltr"}=e,{store:F}=e,D=te("desktop"===h);if(f(t,D,(t=>n(7,i=t))),"auto"===h&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");D.set(!t.matches),t.addListener((()=>{D.set(!t.matches)}))}let S="light",P=null;const N=te("rtl"===V?"rtl":"ltr");function O(){"system"===g&&P&&n(36,S=P.matches?"dark":"light")}f(t,N,(t=>n(8,a=t)));const I=new Set($);let M=!1,T=!1;d||(T=!0,Y(oe(new Error('"id" prop is required'))));const z={stateChange:!1},R=Bc(m),B=Lc(m),L=new Map,U=new Map,W=new Map;let H,q=null,J=0,G=[];const K=[];function X(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=Mc(e,t,F);if(!o.hasExpression)return e;const i=Eu(U,n);return o.applyVars(i,r)}function Y(t){_?_({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function Z(t,e){w&&w({type:t,action:e})}function Q(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type&&t.type in r;){if(({json:t,templateContext:e}=Es(t,e,r,Y)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}}let tt=0;function et(t){return"".concat(d,"-").concat(tt++)}let nt={},rt={};async function ot(t,e){const o=t.url?String(t.url):"",i=t.typed;if(!Re(t))return;const a=(null==e?void 0:e.logError)||Y;if(o)try{const i=o.replace(/div-action:\/\//,""),s=/([^?]+)\?(.+)/.exec(i);if(!s)return;const l=new URLSearchParams(s[2]);switch(s[1]){case"set_state":await async function(t){if(!t)throw new Error("Missing state id");let e=vt,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;await i.setState(o),e=i}}(l.get("state_id"));break;case"set_current_item":case"set_previous_item":case"set_next_item":case"scroll_to_start":case"scroll_to_end":case"scroll_backward":case"scroll_forward":case"scroll_to_position":!function(t,e,n){let{item:r,step:o,overflow:i}=n;var a,s,l,c,u;if(!e)throw new Error('Missing id for "'.concat(t,'" action'));const d=Number(r);if("set_current_item"===t&&Number.isNaN(d))throw new Error('Incorrect item for "'.concat(t,'" action'));let p=Number(o);if(o||"set_previous_item"!==t&&"set_next_item"!==t||(p=1),!o&&("scroll_backward"===t||"scroll_forward"===t||"scroll_to_position"===t)||Number.isNaN(p))throw new Error('Incorrect step value for "'.concat(t,'" action'));if(i&&"clamp"!==i&&"ring"!==i)throw new Error('Incorrect overflow value for "'.concat(t,'" action'));i=i||"clamp";const f=ht(e);if(f)switch(t){case"set_current_item":return void f.setCurrentItem(d);case"set_previous_item":return void f.setPreviousItem(p,i);case"set_next_item":return void f.setNextItem(p,i);case"scroll_to_start":return void(null===(a=f.scrollToStart)||void 0===a||a.call(f));case"scroll_to_end":return void(null===(s=f.scrollToEnd)||void 0===s||s.call(f));case"scroll_backward":return void(null===(l=f.scrollBackward)||void 0===l||l.call(f,p,i));case"scroll_forward":return void(null===(c=f.scrollForward)||void 0===c||c.call(f,p,i));case"scroll_to_position":null===(u=f.scrollToPosition)||void 0===u||u.call(f,p)}}(s[1],l.get("id"),{item:l.get("item"),step:l.get("step"),overflow:l.get("overflow")});break;case"set_variable":const c=l.get("name"),u=l.get("value");if(c&&null!==u){const t=U.get(c);if(t){const e=t.getType();"dict"===e||"array"===e?a(oe(new Error("Setting ".concat(e," variables is not supported")),{additional:{name:c}})):t.set(u)}else a(oe(new Error("Cannot find variable"),{additional:{name:c}}))}else a(oe(new Error("Incorrect set_variable_action"),{additional:{url:i}}));break;case"timer":const d=l.get("action"),p=l.get("id");q?q.execTimerAction(p,d):a(oe(new Error("Incorrect timer action"),{additional:{id:p,action:d}}));break;case"video":!function(t,e,n){const r=(null==n?void 0:n.logError)||Y;if(t){const n=ht(t);n?"start"===e?n.start():"pause"===e?n.pause():r(oe(new Error("Unknown video action"),{additional:{id:t,action:e}})):r(oe(new Error("Video component is not found"),{additional:{id:t,action:e}}))}else r(oe(new Error("Missing id in video action"),{additional:{action:e}}))}(l.get("id"),l.get("action"),e);break;case"download":!function(t,e,n){const o=(null==n?void 0:n.logError)||Y;if(t){let n;n="function"==typeof E?E(t):E,fetch(t,n).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})).then((n=>{var i,a,s;if(n){if(n.templates)for(const t in n.templates)r.hasOwnProperty(t)||(r[t]=n.templates[t]);if(Array.isArray(null===(i=n.patch)||void 0===i?void 0:i.changes)){if("transactional"===n.patch.mode){const r=n.patch.changes.find((t=>{const e=ct.get(t.id);if(!e)return!0;const n=Array.isArray(t.items)?t.items.length:0;return!(!e.isSingleMode||1===n)}));if(r)return o(oe(new Error("Skipping transactional, child is not found or broken"),{additional:{url:t,id:r.id}})),void it(null===(a=e.download_callbacks)||void 0===a?void 0:a.on_fail_actions)}n.patch.changes.forEach((t=>{const e=ct.get(t.id);e&&e.replaceWith(t.id,t.items)})),it(null===(s=e.download_callbacks)||void 0===s?void 0:s.on_success_actions)}}else o(oe(new Error("Incorrect patch"),{additional:{url:t}}))})).catch((n=>{var r;o(oe(new Error("Failed to download the patch"),{additional:{url:t,originalError:n}})),it(null===(r=e.download_callbacks)||void 0===r?void 0:r.on_fail_actions)}))}else o(oe(new Error("Missing url in download action"),{additional:{url:t}}))}(l.get("url"),t,e);break;case"show_tooltip":!function(t,e,r){var o;const i=(null==r?void 0:r.logError)||Y;if(!t)return void i(oe(new Error("Missing id in show_tooltip action")));const a=ft.get(t);if(!a)return void i(oe(new Error("Tooltip with the provided id is not found"),{additional:{id:t}}));if("true"!==e&&G.some((e=>e.desc.id===t)))return;const s={internalId:++J,ownerNode:a.onwerNode,desc:a.tooltip,timeoutId:0};n(3,G=[...G,s]);const l=null!==(o=a.tooltip.duration)&&void 0!==o?o:5e3;l&&(s.timeoutId=window.setTimeout((()=>{s.timeoutId=0,n(3,G=G.filter((t=>t.internalId!==s.internalId)))}),l))}(l.get("id"),l.get("multiple"),e);break;case"hide_tooltip":!function(t,e){const r=(null==e?void 0:e.logError)||Y;t?n(3,G=G.filter((e=>{const n=e.desc.id!==t;return!n&&e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null),n}))):r(oe(new Error("Missing id in hide_tooltip action")))}(l.get("id"),e);break;case"set_stored_value":!function(t,e,n,r,o){const i=(null==t?void 0:t.logError)||Y;if(!F)return void i(oe(new Error("Store is not configured")));let a=n;e&&a&&r&&o?Cu.has(r)?("integer"===r||"number"===r?a=Number(a):"boolean"===r&&(a="true"===a),F.setValue(e,r,a,Number(o))):i(oe(new Error("Incorrect stored type"))):i(oe(new Error("Missing required params for set_stored_value")))}(e,l.get("name"),l.get("value"),l.get("type"),l.get("lifetime"));break;default:a(oe(new Error("Unknown type of action"),{additional:{url:o}}))}}catch(t){a(oe(t,{additional:{url:o}}))}else if(i)switch(i.type){case"set_variable":{const{variable_name:t,value:e}=i;if(t&&e){const n=U.get(t);n?n.getType()===e.type?n.setValue(e.value):a(oe(new Error("Trying to set value with invalid type"),{additional:{name:t,type:e.type}})):a(oe(new Error("Cannot find variable"),{additional:{name:t}}))}else a(oe(new Error("Incorrect set_variable action"),{additional:{name:t}}));break}case"array_insert_value":!function(t,e,n){const{variable_name:r,index:o,value:i}=n;!i||"number"!=typeof o&&void 0!==o?e(oe(new Error("Incorrect array_insert_value action"),{additional:{name:r}})):Gc(t,e,n,(t=>{const a=t.getValue();if("number"==typeof o&&(o<0||o>a.length))e(oe(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:o,length:a.length}}));else{const e=a.slice();"number"==typeof o?e.splice(o,0,i.value):e.push(i.value),t.setValue(e)}}))}(U,a,i);break;case"array_remove_value":!function(t,e,n){const{variable_name:r,index:o}=n;"number"==typeof o?Gc(t,e,n,(t=>{const i=t.getValue();if("number"==typeof o&&(o<0||o>=i.length))e(oe(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:o,length:i.length}}));else{const e=i.slice();e.splice(o,1),t.setValue(e)}})):e(oe(new Error("Incorrect array_remove_value action"),{additional:{name:r}}))}(U,a,i);break;case"copy_to_clipboard":!function(t,e){!e.content||"text"!==e.content.type&&"url"!==e.content.type||"string"!=typeof e.content.value?t(oe(new Error("Incorrect action"),{additional:{action:e}})):"undefined"!=typeof navigator&&"clipboard"in navigator&&navigator.clipboard&&"writeText"in navigator.clipboard&&"function"==typeof navigator.clipboard.writeText?navigator.clipboard.writeText(e.content.value).catch((e=>{t(oe(new Error("Failed to copy to the clipboard"),{additional:{originalError:String(e)}}))})):t(oe(new Error("Clipboard is unavailable"),{additional:{action:e}}))}(a,i);break;case"focus_element":{const t=i.element_id&&pt.get(i.element_id);t?t.focus():a(oe(new Error("Incorrect focus_element action"),{additional:{elementId:i.element_id}}));break}case"clear_focus":try{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}catch(t){}break;default:a(oe(new Error("Unknown type of action"),{additional:{type:i.type}}))}}async function it(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||!Array.isArray(t))return;const r=t.filter(Re);for(let t=0;t<r.length;++t){let o=r[t];const i=o.url,a=o.typed;if(i){const t=be(i);if(t)if(_e(t,I)){if(e.processUrls)if("_blank"===o.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=i)}else location.href=i}else"div-action"===t?(await ot(o,e.componentContext),await _t()):o.log_id&&(at(o),await _t())}else a?await ot(o,e.componentContext):e.node&&Array.isArray(o.menu_items)&&o.menu_items.length&&n(4,H={items:o.menu_items,node:e.node})}r.forEach((t=>{t.log_id&&Z("click",t)}))}function at(t){null==x||x(t)}const st=new Map,ct=new Map,pt=new Map,ft=new Map;function ht(t){if(st.has(t))return st.get(t);Y(oe(new Error("Missing instance with id"),{additional:{id:t}}))}const gt=new Map;function mt(t){const e=W.get(t)||te(void 0);return W.has(t)||W.set(t,e),e}dt(re,{logStat:Z,hasTemplate:function(t){return t in r},processTemplate:Q,genId:et,genClass:function(t){return"divkit-".concat(et())},execAction:ot,execCustomAction:at,isRunning:function(t){return z[t]},setRunning:function(t,e){z[t]=e},registerInstance:function(t,e){st.has(t)?Y(oe(new Error("Duplicate instance id"),{additional:{id:t}})):st.set(t,e)},unregisterInstance:function(t){st.delete(t)},registerParentOf:function(t,e){ct.set(t,e)},unregisterParentOf:function(t){ct.delete(t)},registerTooltip:function(t,e){const n=e.id;n&&(ft.has(n)&&Y(oe(new Error("Duplicate tooltip id"),{additional:{id:n}})),ft.set(n,{onwerNode:t,tooltip:e}))},unregisterTooltip:function(t){const e=t.id;e&&(ft.delete(e),G.some((t=>t.desc.id===e))&&n(3,G=G.filter((t=>t.desc.id!==e))))},onTooltipClose:function(t){n(3,G=G.filter((e=>e.internalId!==t)))},tooltipRoot:A,registerFocusable:function(t,e){pt.set(t,e)},unregisterFocusable:function(t){pt.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(rt[r]=rt[r]||0,++rt[r],nt[r])return nt[r];const o="".concat(et(),"-svg-filter");return n(5,nt=Object.assign(Object.assign({},nt),{[r]:o})),o},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);rt[r]&&0==--rt[r]&&n(5,nt=Object.keys(nt).reduce(((t,e)=>(rt[e]&&(t[e]=nt[e]),t)),{}))},preparePrototypeVariables:function(t,e){const n=new Map,r=function(t,e,n){if(!(e in Gi))throw new Error("Unsupported variable type");return new Gi[e](t,n)}(t,"dict",e);return n.set(t,r),n},getStore:function(t){return gt.has(t)||function(t){gt.has(t)||gt.set(t,Tc[t]())}(t),gt.get(t)},getCustomization:function(t){return null==y?void 0:y[t]},getBuiltinProtocols:function(){return I},getExtension:function(t,e){const n=b.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:U,logError:Y}},registerTimeout:function(t){K.push(t)},typefaceProvider:C,isDesktop:D,isPointerFocus:_u,customComponents:j,direction:N,componentDevtool:void 0}),dt(We,{hasAction:()=>!1});const vt={setState(t){throw new Error("Not implemented")},getChild(t){if(yt&&yt.has(t))return yt.get(t);Y(oe(new Error("Missing state block with id"),{additional:{id:t}}))}};let yt=null;function $t(t){if(t.type in Ui){"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&Y(oe(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=Wi(t.name,t.type,t.value);L.set(t.name,e),U.set(t.name,e)}catch(e){Y(oe(e,{additional:{name:t.name}}))}}}dt(Ae,{registerInstance(t,e){yt||(yt=new Map),yt.has(t)?Y(oe(new Error("Duplicate state with id"),{additional:{id:t}})):yt.set(t,e)},unregisterInstance(t){null==yt||yt.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 bt=null===(s=null==p?void 0:p.card)||void 0===s?void 0:s.variables;Array.isArray(bt)&&bt.forEach((t=>{if(t&&t.name){if(L.has(t.name))return void Y(oe(new Error("Duplicate variable"),{additional:{name:t.name}}));$t(t)}}));const wt=p.palette;wt&&wt[S].forEach((t=>{if(L.has(t.name))Y(oe(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=Wi(t.name,"color",t.color);L.set(t.name,e),U.set(t.name,e)}catch(e){Y(oe(e,{additional:{name:t.name}}))}}));for(const[t,e]of B)U.has(t)||U.set(t,e);R.subscribe((t=>{if(t&&!U.has(t)){const e=B.get(t);U.set(t,e);const n=W.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const xt=null===(c=null==p?void 0:p.card)||void 0===c?void 0:c.timers;if(xt&&"undefined"!=typeof document){const t=q=new Jc({logError:Y,applyVars:t=>X(Y,t),hasVariableWithType:function(t,e){const n=U.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=U.get(t);n?n.setValue(e):Y(oe(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:it});xt.forEach((e=>t.createTimer(e)))}const kt=function t(e){const n={json:{},path:[],templateContext:{},logError(t){t.additional=t.additional||{},t.additional.path=n.path.join("/"),Y(t)},execAnyActions(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return it(t,{componentContext:n,processUrls:e.processUrls,node:e.node})},getDerivedFromVars(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return js(e);const o=Eu(U,n),i=Mc(e,t,F);return i.vars.length?ee(i.vars.map((t=>o.get(t)||mt(t))).filter(he),(()=>i.applyVars(o,r))):i.hasExpression?js(i.applyVars(o)):js(e)}(n.logError,t,Eu(n.variables,e),r)},getJsonWithVars(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return X(n.logError,t,Eu(n.variables,e),r)},produceChildContext(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=t(n);let i=e,a=n.templateContext;const{templateContext:s,json:l}=Q(i,a);return o.json=l,o.templateContext=s,o.origJson=e,void 0!==r.path&&o.path.push(String(r.path)),e.type&&!r.isRootState&&o.path.push(e.type),o.variables=Eu(n.variables,r.variables),r.fake&&(o.fakeElement=!0),r.isRootState&&(o.isRootState=!0),o},getVariable(t,e){const r=(n.variables||U).get(t);if(r){const o=r.getType();if(o!==e)return void n.logError(oe(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:o}}))}return r}};return e?(n.parent=e,n.path=e.path.slice(),e.fakeElement&&(n.fakeElement=!0)):(n.json={type:"root"},n.isRootState=!0),n}();let Ct;return lt((()=>{wu++,1===wu&&(window.addEventListener("keydown",xu),window.addEventListener("pointerdown",ku)),(()=>{var t;const e=null===(t=null==p?void 0:p.card)||void 0===t?void 0:t.variable_triggers;Array.isArray(e)&&e.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void Y(oe(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=Is(t.condition,{startRule:"JsonStringContents"}),o=nl(r);if(!o.length)return void Y(oe(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));ee(o.map((t=>U.get(t)||mt(t))),(()=>{const t=Pc(U,F,r);return t.warnings.forEach(Y),t.result})).subscribe((async r=>{if("error"!==r.type){if(r.value&&("on_variable"===n||"on_condition"===n&&!1===e))for(const e of t.actions){const t=X(Y,e);t.log_id&&await ot(t)}e=Boolean(r.value)}else Y(oe(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}catch(e){Y(oe(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else Y(oe(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}))})()})),ut((()=>{wu--,wu||(window.removeEventListener("keydown",xu),window.removeEventListener("pointerdown",ku)),q&&q.destroy(),G.forEach((t=>{t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=null)})),K.forEach((t=>{clearTimeout(t)}))})),t.$$set=t=>{"id"in t&&n(13,d=t.id),"json"in t&&n(11,p=t.json),"platform"in t&&n(14,h=t.platform),"theme"in t&&n(12,g=t.theme),"globalVariablesController"in t&&n(15,m=t.globalVariablesController),"mix"in t&&n(0,v=t.mix),"customization"in t&&n(16,y=t.customization),"builtinProtocols"in t&&n(17,$=t.builtinProtocols),"extensions"in t&&n(18,b=t.extensions),"onError"in t&&n(19,_=t.onError),"onStat"in t&&n(20,w=t.onStat),"onCustomAction"in t&&n(21,x=t.onCustomAction),"onComponent"in t&&n(22,k=t.onComponent),"typefaceProvider"in t&&n(23,C=t.typefaceProvider),"fetchInit"in t&&n(24,E=t.fetchInit),"tooltipRoot"in t&&n(25,A=t.tooltipRoot),"customComponents"in t&&n(26,j=t.customComponents),"direction"in t&&n(27,V=t.direction),"store"in t&&n(28,F=t.store)},t.$$.update=()=>{if(4096&t.$$.dirty[0]|64&t.$$.dirty[1]&&("light"===g||"dark"===g?n(36,S=g):"system"===g?"undefined"!=typeof matchMedia?(P||(n(37,P=matchMedia("(prefers-color-scheme: dark)")),P.addListener(O)),n(36,S=P.matches?"dark":"light")):n(36,S="light"):Y(oe(new Error("Unsupported theme")))),32&t.$$.dirty[1]&&S&&(wt&&wt[S].forEach((t=>{const e=U.get(t.name);e&&e.setValue(t.color)}))),2048&t.$$.dirty[0]){n(1,M=!1);const t=function(t){if(!t)return oe(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return oe(new Error("Missing card"));if(!e.states||!e.states.length)return oe(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in ds)return oe(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return oe(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return oe(new Error("Missing state_id"),{additional:{index:t}})}return null}(p);t&&(n(1,M=!0),Y(t))}if(2048&t.$$.dirty[0]&&(r=p.templates||{}),2048&t.$$.dirty[0]|8&t.$$.dirty[1]&&(null===n(34,l=null==p?void 0:p.card)||void 0===l?void 0:l.variables)&&Array.isArray(p.card.variables)&&p.card.variables!==bt&&p.card.variables.forEach((t=>{t&&t.name&&!L.has(t.name)&&$t(t)})),2048&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(38,o=null===n(35,u=null==p?void 0:p.card)||void 0===u?void 0:u.states),6&t.$$.dirty[0]|128&t.$$.dirty[1]&&o&&!M&&!T){const t={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:o.map((t=>({state_id:t.state_id.toString(),div:t.div})))};n(6,Ct=kt.produceChildContext(t,{isRootState:!0}))}},[v,M,T,G,H,nt,Ct,i,a,D,N,p,g,d,h,m,y,$,b,_,w,x,k,C,E,A,j,V,F,function(t){n(12,g=t)},function(){return new Map},function(){return new Map},function(t){n(11,p=t)},function(t){ot(X(Y,t))},l,u,S,P,o,()=>n(4,H=void 0)]}const Vu=class extends Zt{constructor(t){super(),Xt(this,t,ju,bu,d,{id:13,json:11,platform:14,theme:12,globalVariablesController:15,mix:0,customization:16,builtinProtocols:17,extensions:18,onError:19,onStat:20,onCustomAction:21,onComponent:22,typefaceProvider:23,fetchInit:24,tooltipRoot:25,customComponents:26,direction:27,store:28,setTheme:29,getDebugVariables:30,getDebugAllVariables:31,setData:32,execAction:33},null,[-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[29]}get getDebugVariables(){return this.$$.ctx[30]}get getDebugAllVariables(){return this.$$.ctx[31]}get setData(){return this.$$.ctx[32]}get execAction(){return this.$$.ctx[33]}};class Fu{constructor(t){var e,n,r;e=this,r={},n=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(n="sizeHistory"),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,this.widthVariableName=t.width_variable_name,this.heightVariableName=t.height_variable_name}setVariable(t,e){if(!this.context)return!1;if(t){const n=this.context.variables.get(t);if(n&&"integer"===n.getType()){if(e=Math.round(e),this.sizeHistory[t]||(this.sizeHistory[t]=new Set),!this.sizeHistory[t].has(e))return n.setValue(e),this.sizeHistory[t].add(e),!0}else{const e=new Error("Missing variable");e.level="error",e.additional={variableName:t},this.context.logError(e)}}return!1}recalcProps(){if(!this.node||!this.context)return!1;const t=this.node.getBoundingClientRect(),e=this.setVariable(this.widthVariableName,t.width),n=this.setVariable(this.heightVariableName,t.height);return e||n}mountView(t,e){var n;this.node=t,this.context=e,this.resizeObserver||"undefined"==typeof ResizeObserver||(this.resizeObserver=new ResizeObserver((async()=>{let t=0;for(;this.recalcProps();){if(++t>8){const t=new Error("Recursive layout in size_provider");t.level="warn",t.additional={widthVariableName:this.widthVariableName,heightVariableName:this.heightVariableName},e.logError(t);break}await _t()}this.sizeHistory={}}))),null===(n=this.resizeObserver)||void 0===n||n.observe(t),this.recalcProps()}unmountView(t,e){var n;null===(n=this.resizeObserver)||void 0===n||n.disconnect(),this.resizeObserver=void 0}}function Du(t){return t instanceof HTMLElement}function Su(t){return class{constructor(t){this.params=t}loadData(){if(this.params.lottie_json)return Promise.resolve(this.params.lottie_json);const t=this.params.lottie_url;return t?fetch(t).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})):Promise.reject("Missing data")}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const r=Array.from(e.children).filter(Du);r.forEach((t=>{t.style.display="none"})),e.setAttribute("data-lottie","true");const o=this.wrapper=document.createElement("div");this.wrapper.style.width="100%",this.wrapper.style.height="100%",e.appendChild(this.wrapper);const i=Number(this.params.repeat_count||-1),a=()=>{var t,o;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""})),e.removeAttribute("data-lottie"),this.wrapper&&(null===(o=this.wrapper.parentNode)||void 0===o||o.removeChild(this.wrapper),this.wrapper=void 0);const i=new Error("Failed to load lottie animation");i.level="error",i.additional={url:this.params.lottie_url},n.logError(i)};this.loadData().then((e=>{const n=this.animItem=t({container:o,animationData:e,renderer:"svg",loop:!0});if(this.animItem.addEventListener("data_failed",a),"reverse"===this.params.repeat_mode||-1!==i){let t=1,e=0;n.addEventListener("loopComplete",(()=>{++e,-1!==i&&e===i?(n.stop(),n.goToAndStop(n.totalFrames,!0)):("reverse"===this.params.repeat_mode&&(t*=-1,n.setDirection(t)),n.goToAndPlay(1===t?0:n.totalFrames,!0))}))}})).catch(a)}unmountView(t,e){var n,r;null===(n=this.animItem)||void 0===n||n.destroy(),this.wrapper&&(null===(r=this.wrapper.parentNode)||void 0===r||r.removeChild(this.wrapper),this.wrapper=void 0),t.removeAttribute("data-lottie")}}}const Pu=["target","hydrate"];function Nu(t){const{target:e,hydrate:n}=t,r=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Pu),o=new Vu({target:e,props:r,hydrate:n});return{$destroy(){o.$destroy()},execAction(t){o.execAction(t)},setTheme(t){o.setTheme(t)},setData(t){o.setData(t)}}}var Ou=exports;for(var Iu in e)Ou[Iu]=e[Iu];e.__esModule&&Object.defineProperty(Ou,"__esModule",{value:!0})})();
|
|
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,{SizeProvider:()=>Fu,createGlobalVariablesController:()=>Wc,createVariable:()=>Wi,lottieExtensionBuilder:()=>Su,render:()=>Nu});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 s(t){t.forEach(i)}function l(t){return"function"==typeof t}let c;function u(t,e){return t===e||(c||(c=document.createElement("a")),c.href=e,t===c.href)}function d(t,e){return t!=t?e==e:t!==e}function p(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(null==t){for(const t of r)t(void 0);return n}const i=t.subscribe(...r);return i.unsubscribe?()=>i.unsubscribe():i}function f(t,e,n){t.$$.on_destroy.push(p(e,n))}function h(t,e,n,r){if(t){const o=g(t,e,n,r);return t[0](o)}}function g(t,e,n,r){return t[1]&&r?o(n.ctx.slice(),t[1](r(e))):n.ctx}function m(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 v(t,e,n,r,o,i){if(o){const a=g(e,n,r,i);t.p(a,o)}}function y(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,e,n){return t.set(n),e}function b(t){return t&&l(t.destroy)?t.destroy:n}function _(t){const e="string"==typeof t&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}const w="undefined"!=typeof window;let x=w?()=>window.performance.now():()=>Date.now(),k=w?t=>requestAnimationFrame(t):n;const C=new Set;function E(t){C.forEach((e=>{e.c(t)||(C.delete(e),e.f())})),0!==C.size&&k(E)}function A(t){let e;return 0===C.size&&k(E),{promise:new Promise((n=>{C.add(e={c:t,f:n})})),abort(){C.delete(e)}}}const j="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function V(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class F{constructor(t){V(this,"_listeners","WeakMap"in j?new WeakMap:void 0),V(this,"_observer",void 0),V(this,"options",void 0),this.options=t}observe(t,e){return this._listeners.set(t,e),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){var t;return null!==(t=this._observer)&&void 0!==t?t:this._observer=new ResizeObserver((t=>{for(const n of t){var e;F.entries.set(n.target,n),null===(e=this._listeners.get(n.target))||void 0===e||e(n)}}))}}F.entries="WeakMap"in j?new WeakMap:void 0;let D=!1;function S(t,e){t.appendChild(e)}function P(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function N(t){const e=T("style");return e.textContent="/* empty */",function(t,e){S(t.head||t,e),e.sheet}(P(t),e),e.sheet}function O(t,e,n){t.insertBefore(e,n||null)}function I(t){t.parentNode&&t.parentNode.removeChild(t)}function M(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function T(t){return document.createElement(t)}function z(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function R(t){return document.createTextNode(t)}function B(){return R(" ")}function L(){return R("")}function U(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function W(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const H=["width","height"];function q(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&&-1===H.indexOf(r)?t[r]=e[r]:W(t,r,e[r])}function J(t,e){Object.keys(e).forEach((n=>{!function(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:W(t,e,n)}(t,n,e[n])}))}function G(t){return/-/.test(t)?J:q}function K(t,e){e=""+e,t.data!==e&&(t.data=e)}function X(t,e){t.value=null==e?"":e}function Y(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function Z(t,e,n){for(let n=0;n<t.options.length;n+=1){const r=t.options[n];if(r.__value===e)return void(r.selected=!0)}n&&void 0===e||(t.selectedIndex=-1)}function Q(t,e){let{bubbles:n=!1,cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}function tt(t,e){return new t(e)}const et=new Map;let nt,rt=0;function ot(t,e,n,r,o,i,a){let s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;const l=16.666/r;let c="{\n";for(let t=0;t<=1;t+=l){const r=e+(n-e)*i(t);c+=100*t+"%{".concat(a(r,1-r),"}\n")}const u=c+"100% {".concat(a(n,1-n),"}\n}"),d="__svelte_".concat(function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u),"_").concat(s),p=P(t),{stylesheet:f,rules:h}=et.get(p)||function(t,e){const n={stylesheet:N(e),rules:{}};return et.set(t,n),n}(p,t);h[d]||(h[d]=!0,f.insertRule("@keyframes ".concat(d," ").concat(u),f.cssRules.length));const g=t.style.animation||"";return t.style.animation="".concat(g?"".concat(g,", "):"").concat(d," ").concat(r,"ms linear ").concat(o,"ms 1 both"),rt+=1,d}function it(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(", "),rt-=o,rt||k((()=>{rt||(et.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&I(e)})),et.clear())})))}function at(t){nt=t}function st(){if(!nt)throw new Error("Function called outside component initialization");return nt}function lt(t){st().$$.on_mount.push(t)}function ct(t){st().$$.after_update.push(t)}function ut(t){st().$$.on_destroy.push(t)}function dt(t,e){return st().$$.context.set(t,e),e}function pt(t){return st().$$.context.get(t)}function ft(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const ht=[],gt=[];let mt=[];const vt=[],yt=Promise.resolve();let $t=!1;function bt(){$t||($t=!0,yt.then(Et))}function _t(){return bt(),yt}function wt(t){mt.push(t)}const xt=new Set;let kt,Ct=0;function Et(){if(0!==Ct)return;const t=nt;do{try{for(;Ct<ht.length;){const t=ht[Ct];Ct++,at(t),At(t.$$)}}catch(t){throw ht.length=0,Ct=0,t}for(at(null),ht.length=0,Ct=0;gt.length;)gt.pop()();for(let t=0;t<mt.length;t+=1){const e=mt[t];xt.has(e)||(xt.add(e),e())}mt.length=0}while(ht.length);for(;vt.length;)vt.pop()();$t=!1,xt.clear(),at(t)}function At(t){if(null!==t.fragment){t.update(),s(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(wt)}}function jt(){return kt||(kt=Promise.resolve(),kt.then((()=>{kt=null}))),kt}function Vt(t,e,n){t.dispatchEvent(Q("".concat(e?"intro":"outro").concat(n)))}const Ft=new Set;let Dt;function St(){Dt={r:0,c:[],p:Dt}}function Pt(){Dt.r||s(Dt.c),Dt=Dt.p}function Nt(t,e){t&&t.i&&(Ft.delete(t),t.i(e))}function Ot(t,e,n,r){if(t&&t.o){if(Ft.has(t))return;Ft.add(t),Dt.c.push((()=>{Ft.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const It={duration:0};function Mt(t,e,o){const i={direction:"in"};let a,s,c=e(t,o,i),u=!1,d=0;function p(){a&&it(t,a)}function f(){const{delay:e=0,duration:o=300,easing:i=r,tick:l=n,css:f}=c||It;f&&(a=ot(t,0,1,o,e,i,f,d++)),l(0,1);const h=x()+e,g=h+o;s&&s.abort(),u=!0,wt((()=>Vt(t,!0,"start"))),s=A((e=>{if(u){if(e>=g)return l(1,0),Vt(t,!0,"end"),p(),u=!1;if(e>=h){const t=i((e-h)/o);l(t,1-t)}}return u}))}let h=!1;return{start(){h||(h=!0,it(t),l(c)?(c=c(i),jt().then(f)):f())},invalidate(){h=!1},end(){u&&(p(),u=!1)}}}function Tt(t,e,o,i){let a,c=e(t,o,{direction:"both"}),u=i?0:1,d=null,p=null,f=null;function h(){f&&it(t,f)}function g(t,e){const n=t.b-u;return e*=Math.abs(n),{a:u,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function m(e){const{delay:o=0,duration:i=300,easing:l=r,tick:m=n,css:v}=c||It,y={start:x()+o,b:e};e||(y.group=Dt,Dt.r+=1),"inert"in t&&(e?void 0!==a&&(t.inert=a):(a=t.inert,t.inert=!0)),d||p?p=y:(v&&(h(),f=ot(t,u,e,i,o,l,v)),e&&m(0,1),d=g(y,i),wt((()=>Vt(t,e,"start"))),A((e=>{if(p&&e>p.start&&(d=g(p,i),p=null,Vt(t,d.b,"start"),v&&(h(),f=ot(t,u,d.b,d.duration,0,l,c.css))),d)if(e>=d.end)m(u=d.b,1-u),Vt(t,d.b,"end"),p||(d.b?h():--d.group.r||s(d.group.c)),d=null;else if(e>=d.start){const t=e-d.start;u=d.a+d.d*l(t/d.duration),m(u,1-u)}return!(!d&&!p)})))}return{run(t){l(c)?jt().then((()=>{c=c({direction:t?"in":"out"}),m(t)})):m(t)},end(){h(),d=p=null}}}function zt(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)}function Rt(t,e){Ot(t,1,1,(()=>{e.delete(t.key)}))}function Bt(t,e,n,r,o,i,a,l,c,u,d,p){let f=t.length,h=i.length,g=f;const m={};for(;g--;)m[t[g].key]=g;const v=[],y=new Map,$=new Map,b=[];for(g=h;g--;){const t=p(o,i,g),s=n(t);let l=a.get(s);l?r&&b.push((()=>l.p(t,e))):(l=u(s,t),l.c()),y.set(s,v[g]=l),s in m&&$.set(s,Math.abs(g-m[s]))}const _=new Set,w=new Set;function x(t){Nt(t,1),t.m(l,d),a.set(t.key,t),d=t.first,h--}for(;f&&h;){const e=v[h-1],n=t[f-1],r=e.key,o=n.key;e===n?(d=e.first,f--,h--):y.has(o)?!a.has(r)||_.has(r)?x(e):w.has(o)?f--:$.get(r)>$.get(o)?(w.add(r),x(e)):(_.add(o),f--):(c(n,a),f--)}for(;f--;){const e=t[f];y.has(e.key)||c(e,a)}for(;h;)x(v[h-1]);return s(b),v}function Lt(t,e){const n={},r={},o={$$scope:1};let i=t.length;for(;i--;){const a=t[i],s=e[i];if(s){for(const t in a)t in s||(r[t]=1);for(const t in s)o[t]||(n[t]=s[t],o[t]=1);t[i]=s}else for(const t in a)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let Ut;function Wt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ht(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Wt(Object(n),!0).forEach((function(e){qt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function qt(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jt(t){t&&t.c()}function Gt(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),wt((()=>{const e=t.$$.on_mount.map(i).filter(l);t.$$.on_destroy?t.$$.on_destroy.push(...e):s(e),t.$$.on_mount=[]})),o.forEach(wt)}function Kt(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];mt.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),mt=e}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Xt(t,e,r,o,i,l,c){let u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const d=nt;at(t);const p=t.$$={fragment:null,ctx:[],props:l,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(p.root);let f=!1;if(p.ctx=r?r(t,e.props||{},(function(e,n){const r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return p.ctx&&i(p.ctx[e],p.ctx[e]=r)&&(!p.skip_bound&&p.bound[e]&&p.bound[e](r),f&&function(t,e){-1===t.$$.dirty[0]&&(ht.push(t),bt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],p.update(),f=!0,s(p.before_update),p.fragment=!!o&&o(p.ctx),e.target){if(e.hydrate){D=!0;const t=(h=e.target,Array.from(h.childNodes));p.fragment&&p.fragment.l(t),t.forEach(I)}else p.fragment&&p.fragment.c();e.intro&&Nt(t.$$.fragment),Gt(t,e.target,e.anchor),D=!1,Et()}var h;at(d)}function Yt(t,e,n,r){var o;const i=null===(o=n[t])||void 0===o?void 0:o.type;if(e="Boolean"===i&&"boolean"!=typeof e?null!=e:e,!r||!n[t])return e;if("toAttribute"===r)switch(i){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(Ut=class extends HTMLElement{constructor(t,e,n){super(),qt(this,"$$ctor",void 0),qt(this,"$$s",void 0),qt(this,"$$c",void 0),qt(this,"$$cn",!1),qt(this,"$$d",{}),qt(this,"$$r",!1),qt(this,"$$p_d",{}),qt(this,"$$l",{}),qt(this,"$$l_u",new Map),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn)return;function t(t){return()=>{let e;return{c:function(){e=T("slot"),"default"!==t&&W(e,"name",t)},m:function(t,n){O(t,e,n)},d:function(t){t&&I(e)}}}}const e={},n=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const o of this.$$s)o in n&&(e[o]=[t(o)]);for(const i of this.attributes){const a=this.$$g_p(i.name);a in this.$$d||(this.$$d[a]=Yt(a,i.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Ht(Ht({},this.$$d),{},{$$slots:e,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=Yt(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const l of this.$$l[s]){const c=this.$$c.$on(s,l);this.$$l_u.set(l,c)}this.$$l={}}}attributeChangedCallback(t,e,n){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Yt(t,n,this.$$p_d,"toProp"),null===(r=this.$$c)||void 0===r||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(t){return Object.keys(this.$$p_d).find((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class Zt{constructor(){qt(this,"$$",void 0),qt(this,"$$set",void 0)}$destroy(){Kt(this,1),this.$destroy=n}$on(t,e){if(!l(e))return n;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Qt=[];function te(t){let e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const o=new Set;function i(n){if(i=n,((r=t)!=r?i==i:r!==i||r&&"object"==typeof r||"function"==typeof r)&&(t=n,e)){const e=!Qt.length;for(const e of o)e[1](),Qt.push(e,t);if(e){for(let t=0;t<Qt.length;t+=2)Qt[t][0](Qt[t+1]);Qt.length=0}}var r,i}function a(e){i(e(t))}return{set:i,update:a,subscribe:function(s){const l=[s,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n];return o.add(l),1===o.size&&(e=r(i,a)||n),s(t),()=>{o.delete(l),0===o.size&&e&&(e(),e=null)}}}}function ee(t,e,r){const o=!Array.isArray(t),i=o?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=e.length<2;return c=(t,r)=>{let c=!1;const u=[];let d=0,f=n;const h=()=>{if(d)return;f();const i=e(o?u[0]:u,t,r);a?t(i):f=l(i)?i:n},g=i.map(((t,e)=>p(t,(t=>{u[e]=t,d&=~(1<<e),c&&h()}),(()=>{d|=1<<e}))));return c=!0,h(),function(){s(g),f(),c=!1}},{subscribe:te(r,c).subscribe};var c}const ne={root:"divkit-b023c",root__clickable:"divkit-bd259","root__clickable-no-transition":"divkit-d9099",root__unselectable:"divkit-c016b",root_platform_desktop:"divkit-ee112","root__only-desktop":"divkit-fef1e","root_restrict-scroll":"divkit-aa145","root_disabled-context-menu":"divkit-f0cba"},re=Symbol("root");function oe(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 ie={"text-range":"divkit-faf07",text:"divkit-d9b0e",text_halign_start:"divkit-e70de",text_halign_center:"divkit-e1659",text_halign_end:"divkit-e48b4",text_valign_start:"divkit-b7b70",text_valign_center:"divkit-ef58e",text_valign_end:"divkit-d4206",text_valign_baseline:"divkit-e0c6c",text__inner:"divkit-b8528",text_singleline:"divkit-ef11c",text_multiline:"divkit-ee8e3",text_truncate_none:"divkit-c6ea1",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002","text_has-focus-color":"divkit-cb341"},ae={outer:"divkit-d65a7","outer_hide-on-transition-in":"divkit-a6d12","outer_halign-self_start":"divkit-cc452","outer_halign-self_center":"divkit-b8331","outer_halign-self_end":"divkit-c573c","outer_halign-self_stretch":"divkit-dcc74","outer_valign-self_start":"divkit-e8077","outer_valign-self_center":"divkit-d40a7","outer_valign-self_end":"divkit-e9f84","outer_valign-self_stretch":"divkit-b7aa3","outer_parent-flex_vertical":"divkit-c143f","outer_parent-flex_horizontal":"divkit-ef302","outer_valign-self_baseline":"divkit-e72b5",outer_width_content:"divkit-b8f4d",outer_height_content:"divkit-faa66","outer_width-constrained":"divkit-d3211","outer_parent-grid":"divkit-ff439","outer_height-constrained":"divkit-a5256","outer_parent-overlap":"divkit-dab2d","outer_parent-overlap-absolute":"divkit-d43fb","outer_scroll-snap_center":"divkit-d9e38","outer_scroll-snap_start":"divkit-efd1e",outer__border:"divkit-d4056",outer_visibility_invisible:"divkit-f018b",outer_visibility_gone:"divkit-e784b","outer_has-action-animation":"divkit-f4980","outer_has-custom-focus":"divkit-c7f14"};function se(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 le(t){if("number"!=typeof t&&"string"!=typeof t||!t)return"0";const e=Number(t);return Number.isNaN(e)?"0":Math.ceil(1e3*e)/1e4+"em"}function ce(t){let e=le(t);return"0"===e&&(e+="em"),e}function ue(t,e){for(;t.length<e;)t="0"+t;return t}function de(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"transparent";if("#"!==(t=("string"==typeof t&&t||"").toLowerCase()).charAt(0))return n;const r=pe(t);return r?(r.a*=e,function(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>ue(Math.round(t).toString(16),2))).join("")):"rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat((t.a/255).toFixed(2),")")}(r)):n}function pe(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,s=2===o.length?o:o+o,l=2===i.length?i:i+i,c=2===n.length?n:n+n;return{a:parseInt(c,16),r:parseInt(a,16),g:parseInt(s,16),b:parseInt(l,16)}}const[t,n,r,o]=e,i=2===n.length?n:n+n,a=2===r.length?r:r+r,s=2===o.length?o:o+o;return{a:255,r:parseInt(i,16),g:parseInt(a,16),b:parseInt(s,16)}}return null}function fe(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 he=Boolean;function ge(t){if(1===t.length&&"solid"===t[0].type)return{color:de(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=de(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(he);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>de(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:ye(t.bg.scale),pos:$e(t.bg),image:'url("'+fe(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(he);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=ce(r.value):"relative"===r.type&&(o=me[r.value]));const i=ve(t.bg.center_x),a=ve(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=>de(t))).join(",")+")"}}({bg:t}):void 0)).filter(he).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 me={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function ve(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return ce(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function ye(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function $e(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 be(t){if(t.startsWith("tel:"))return"tel";const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function _e(t,e){return e.has(t)}function we(t,e){const n=Number(t);return Number.isNaN(n)||n<0?e:n}function xe(t,e,n){return"number"==typeof e&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function ke(t){return 0!==t.is_enabled&&!1!==t.is_enabled&&void 0!==t.index}function Ce(t,e){e&&t.push(e)}function Ee(t,e,n){const r=[];Ce(r,e[t]);for(const o in n)if(n.hasOwnProperty(o)){const i=n[o];i&&Ce(r,e["".concat(t,"_").concat(o)+("string"==typeof i?"_".concat(i):"")])}return r.join(" ")}const Ae=Symbol("state");function je(t,e){var n,r;const o=t.top||0,i=(null!==(n="ltr"===e?t.end:t.start)&&void 0!==n?n:t.right)||0,a=t.bottom||0,s=(null!==(r="ltr"===e?t.start:t.end)&&void 0!==r?r:t.left)||0;return 0===o&&0===i&&0===a&&0===s?"":le(o)+" "+le(i)+" "+le(a)+" "+le(s)}function Ve(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!Number.isNaN(e)}function Fe(t){return Ve(t)&&t>=0}function De(t,e,n){var r,o;if(!t)return n;const i=[t.top,null!==(r="ltr"===e?t.end:t.start)&&void 0!==r?r:t.right,t.bottom,null!==(o="ltr"===e?t.start:t.end)&&void 0!==o?o:t.left];for(let t=0;t<i.length;++t)if(i[t]&&!Fe(i[t]))return n;return je(t,e)}const Se=Object.prototype.hasOwnProperty;function Pe(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(!Se.call(e,o)||!Pe(t[o],e[o]))return!1}return!0}function Ne(t,e){return Pe(t,e)?e:t}function Oe(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function Ie(t,e){const n=Number(t);return Number.isNaN(n)?e:n}function Me(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Me(t))})):e.push(t),e}function Te(t,e){if(!t||"object"!=typeof t)return e;const n=["top","right","bottom","left"];for(let r=0;r<n.length;++r)if(t[n[r]]&&!Fe(t[n[r]]))return e;return t}function ze(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=>le((t||e)/n*10))).join(" ")}function Re(t){return 0!==t.is_enabled&&!1!==t.is_enabled}let Be;function Le(){return"undefined"!=typeof matchMedia&&(Be||(Be=window.matchMedia("(prefers-reduced-motion)")),Be.matches)}function Ue(){}const We=Symbol("action");function He(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function qe(t){var e;let n,r,i,a,l,c,u,d;const p=t[18].default,f=h(p,t,t[17],null);let g=[{class:r=t[1]+(t[8]?" ".concat(t[5]?ne.root__clickable:ne["root__clickable-no-transition"]," ").concat(ne.root__unselectable):"")+" "+(null!==(e=t[0])&&void 0!==e&&e.length?ne["root_disabled-context-menu"]:"")},{style:t[2]},{role:i=t[8]?"button":null},{tabindex:a=t[8]?0:null},t[3]],$={};for(let t=0;t<g.length;t+=1)$=o($,g[t]);return{c(){n=T("span"),f&&f.c(),q(n,$)},m(e,r){O(e,n,r),f&&f.m(n,null),t[26](n),c=!0,u||(d=[b(l=t[4].call(null,n)),U(n,"click",t[22]),U(n,"keydown",t[10]),U(n,"focus",t[23]),U(n,"blur",t[24])],u=!0)},p(t,e){var o;f&&f.p&&(!c||131072&e[0])&&v(f,p,t,t[17],c?m(p,t[17],e,null):y(t[17]),null),q(n,$=Lt(g,[(!c||291&e[0]&&r!==(r=t[1]+(t[8]?" ".concat(t[5]?ne.root__clickable:ne["root__clickable-no-transition"]," ").concat(ne.root__unselectable):"")+" "+(null!==(o=t[0])&&void 0!==o&&o.length?ne["root_disabled-context-menu"]:"")))&&{class:r},(!c||4&e[0])&&{style:t[2]},(!c||256&e[0]&&i!==(i=t[8]?"button":null))&&{role:i},(!c||256&e[0]&&a!==(a=t[8]?0:null))&&{tabindex:a},8&e[0]&&t[3]]))},i(t){c||(Nt(f,t),c=!0)},o(t){Ot(f,t),c=!1},d(e){e&&I(n),f&&f.d(e),t[26](null),u=!1,s(d)}}}function Je(t){var e;let n,r,i,a,l,c;const u=t[18].default,d=h(u,t,t[17],null);let p=[{href:t[7]},{target:t[9]},{style:t[2]},{class:r=t[1]+" "+(t[5]?ne.root__clickable:ne["root__clickable-no-transition"])+" "+(null!==(e=t[0])&&void 0!==e&&e.length?ne["root_disabled-context-menu"]:"")},t[3]],f={};for(let t=0;t<p.length;t+=1)f=o(f,p[t]);return{c(){n=T("a"),d&&d.c(),q(n,f)},m(e,r){O(e,n,r),d&&d.m(n,null),t[25](n),a=!0,l||(c=[b(i=t[4].call(null,n)),U(n,"click",t[19]),U(n,"keydown",t[10]),U(n,"focus",t[20]),U(n,"blur",t[21])],l=!0)},p(t,e){var o;d&&d.p&&(!a||131072&e[0])&&v(d,u,t,t[17],a?m(u,t[17],e,null):y(t[17]),null),q(n,f=Lt(p,[(!a||128&e[0])&&{href:t[7]},(!a||512&e[0])&&{target:t[9]},(!a||4&e[0])&&{style:t[2]},(!a||35&e[0]&&r!==(r=t[1]+" "+(t[5]?ne.root__clickable:ne["root__clickable-no-transition"])+" "+(null!==(o=t[0])&&void 0!==o&&o.length?ne["root_disabled-context-menu"]:"")))&&{class:r},8&e[0]&&t[3]]))},i(t){a||(Nt(d,t),a=!0)},o(t){Ot(d,t),a=!1},d(e){e&&I(n),d&&d.d(e),t[25](null),l=!1,s(c)}}}function Ge(t){let e,n,r,o;const i=[Je,qe],a=[];function s(t,e){return t[7]?0:1}return e=s(t),n=a[e]=i[e](t),{c(){n.c(),r=L()},m(t,n){a[e].m(t,n),O(t,r,n),o=!0},p(t,o){let l=e;e=s(t),e===l?a[e].p(t,o):(St(),Ot(a[l],1,1,(()=>{a[l]=null})),Pt(),n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Nt(n,1),n.m(r.parentNode,r))},i(t){o||(Nt(n),o=!0)},o(t){Ot(n),o=!1},d(t){t&&I(r),a[e].d(t)}}}function Ke(t,e,n){let{$$slots:r={},$$scope:o}=e,{componentContext:i}=e,{id:a=""}=e,{actions:s}=e,{doubleTapActions:l}=e,{longTapActions:c}=e,{cls:u=""}=e,{style:d=null}=e,{attrs:p}=e,{use:f=Ue}=e,{customAction:h=null}=e,{isNativeActionAnimation:g=!0}=e,{hasInnerFocusable:m=!1}=e;const v=pt(re),y=pt(We);let $;dt(We,{hasAction:()=>Boolean(y.hasAction()||(null==s?void 0:s.length))});let b,_,w="",x=-1,k=null,C=!1,E=!1;async function A(t){y.hasAction()||void 0!==t.button&&0!==t.button||(x>0&&Date.now()>x+400||!1===(null==h?void 0:h(t))?t.preventDefault():s&&(s.some((t=>{if(null==t?void 0:t.typed)return!0;const e=null==t?void 0:t.url;if(!e)return!1;const n=be(e);return n&&!_e(n,v.getBuiltinProtocols())}))&&t.preventDefault(),i.execAnyActions(s,{node:$})))}function j(t){y.hasAction()||void 0!==t.button&&0!==t.button||i.execAnyActions(l,{processUrls:!0,node:$})}function V(t){t.touches.length>1||(k=He(t),C=!1,x=Date.now(),clearTimeout(_))}function F(t){if(!k)return;const e=He(t);(Math.abs(k.x-e.x)>8||Math.abs(k.y-e.y)>8)&&(C=!0)}function D(t){!k||x<0||(!C&&Date.now()-x>=400&&(t.stopPropagation(),i.execAnyActions(c,{processUrls:!0,node:$})),clearTimeout(_),_=window.setTimeout((()=>{k=null,x=-1}),100))}return lt((()=>{a&&!m&&v.registerFocusable(a,{focus(){$&&(w||E)&&$.focus()}})})),ut((()=>{a&&!m&&v.unregisterFocusable(a),clearTimeout(_)})),t.$$set=t=>{"componentContext"in t&&n(11,i=t.componentContext),"id"in t&&n(12,a=t.id),"actions"in t&&n(13,s=t.actions),"doubleTapActions"in t&&n(14,l=t.doubleTapActions),"longTapActions"in t&&n(0,c=t.longTapActions),"cls"in t&&n(1,u=t.cls),"style"in t&&n(2,d=t.style),"attrs"in t&&n(3,p=t.attrs),"use"in t&&n(4,f=t.use),"customAction"in t&&n(15,h=t.customAction),"isNativeActionAnimation"in t&&n(5,g=t.isNativeActionAnimation),"hasInnerFocusable"in t&&n(16,m=t.hasInnerFocusable),"$$scope"in t&&n(17,o=t.$$scope)},t.$$.update=()=>{if(43136&t.$$.dirty[0]){if(Array.isArray(s)&&(null==s?void 0:s.length))for(let t=0;t<s.length;++t){const e=s[t].url;if(e){n(7,w=e),n(9,b=s[t].target||void 0);break}}Array.isArray(s)&&(null==s?void 0:s.length)&&y.hasAction()&&(n(7,w=""),i.logError(oe(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:s}}))),n(8,E=Boolean(h)),w&&!_e(be(w),v.getBuiltinProtocols())?(n(7,w=""),n(8,E=!0)):!w&&Array.isArray(s)&&(null==s?void 0:s.length)&&(n(8,E=!0),s.some((t=>t.url||t.typed||t.menu_items))||i.logError(oe(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:s}})))}16833&t.$$.dirty[0]&&$&&(w||E?$.addEventListener("click",A):$.removeEventListener("click",A),(null==l?void 0:l.length)?$.addEventListener("dblclick",j):$.removeEventListener("dblclick",j),(null==c?void 0:c.length)?($.addEventListener("touchstart",V,{passive:!0}),$.addEventListener("touchmove",F,{passive:!0}),$.addEventListener("touchend",D,{passive:!0}),$.addEventListener("touchcancel",D,{passive:!0})):($.removeEventListener("touchstart",V),$.removeEventListener("touchmove",F),$.removeEventListener("touchend",D),$.removeEventListener("touchcancel",D)))},[c,u,d,p,f,g,$,w,E,b,function(t){const e=t.target;e instanceof HTMLElement&&("INPUT"===e.tagName||"true"===e.contentEditable)||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(s)&&s.length&&(i.execAnyActions(s),t.preventDefault())},i,a,s,l,h,m,o,r,function(e){ft.call(this,t,e)},function(e){ft.call(this,t,e)},function(e){ft.call(this,t,e)},function(e){ft.call(this,t,e)},function(e){ft.call(this,t,e)},function(e){ft.call(this,t,e)},function(t){gt[t?"unshift":"push"]((()=>{$=t,n(6,$)}))},function(t){gt[t?"unshift":"push"]((()=>{$=t,n(6,$)}))}]}const Xe=class extends Zt{constructor(t){super(),Xt(this,t,Ke,Ge,d,{componentContext:11,id:12,actions:13,doubleTapActions:14,longTapActions:0,cls:1,style:2,attrs:3,use:4,customAction:15,isNativeActionAnimation:5,hasInnerFocusable:16},null,[-1,-1])}},Ye={"outer-background":"divkit-bf253","outer-background_clip":"divkit-dcad7","outer-background__item":"divkit-b921d","outer-background__item_hidden":"divkit-cd613"};function Ze(t){return Ve(t)&&t>0}function Qe(t,e){return t.map((t=>{if(t)if("blur"===t.type){if(Ze(t.radius))return"blur(".concat(ce(t.radius/2),")")}else{if("rtl_mirror"===t.type)return;e(oe(new Error("Unknown filter"),{level:"warn",additional:{filter:t.type}}))}else e(oe(new Error("Incorrect filter"),{level:"warn"}))})).filter(Boolean).join(" ")}function tn(t,e,n){const r=t.slice();return r[6]=e[n],r}function en(t){let e,n,r;return{c(){e=T("span"),W(e,"class",n=Ye["outer-background__item"]),W(e,"style",r=se(t[6].style))},m(t,n){O(t,e,n)},p(t,n){2&n&&r!==(r=se(t[6].style))&&W(e,"style",r)},d(t){t&&I(e)}}}function nn(t){let e,n,r,o,i,a;return{c(){e=T("img"),u(e.src,n=t[6].image_url)||W(e,"src",n),W(e,"alt",""),W(e,"aria-hidden","true"),W(e,"loading","lazy"),W(e,"decoding","async"),W(e,"class",r=Ye["outer-background__item"]),W(e,"style",o=se(t[6].style))},m(n,r){O(n,e,r),i||(a=U(e,"error",t[2]),i=!0)},p(t,r){2&r&&!u(e.src,n=t[6].image_url)&&W(e,"src",n),2&r&&o!==(o=se(t[6].style))&&W(e,"style",o)},d(t){t&&I(e),i=!1,a()}}}function rn(t){let e;function n(t,e){return t[6].image_url?nn:en}let r=n(t),o=r(t);return{c(){o.c(),e=L()},m(t,n){o.m(t,n),O(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){t&&I(e),o.d(t)}}}function on(t){let e,r,o=zt(t[1]),i=[];for(let e=0;e<o.length;e+=1)i[e]=rn(tn(t,o,e));return{c(){e=T("span");for(let t=0;t<i.length;t+=1)i[t].c();W(e,"class",r=Ye["outer-background"]+(t[0]?" "+Ye["outer-background_clip"]:"")),Y(e,"border-radius",t[0])},m(t,n){O(t,e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null)},p(t,n){let[a]=n;if(6&a){let n;for(o=zt(t[1]),n=0;n<o.length;n+=1){const r=tn(t,o,n);i[n]?i[n].p(r,a):(i[n]=rn(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=Ye["outer-background"]+(t[0]?" "+Ye["outer-background_clip"]:""))&&W(e,"class",r),1&a&&Y(e,"border-radius",t[0])},i:n,o:n,d(t){t&&I(e),M(i,t)}}}function an(t,e,n){let r,{direction:o}=e,{componentContext:i}=e,{background:a=[]}=e,{radius:s=""}=e;return t.$$set=t=>{"direction"in t&&n(3,o=t.direction),"componentContext"in t&&n(4,i=t.componentContext),"background"in t&&n(5,a=t.background),"radius"in t&&n(0,s=t.radius)},t.$$.update=()=>{56&t.$$.dirty&&n(1,r=a.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=ge([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=Qe(t.filters,i.logError),"rtl"===o&&t.filters.some((t=>"rtl_mirror"===t.type))&&(e.transform="scale(-1,1)")))}return n})))},[s,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add(Ye["outer-background__item_hidden"])},o,i,a]}const sn=class extends Zt{constructor(t){super(),Xt(this,t,an,on,d,{direction:3,componentContext:4,background:5,radius:0})}},ln=t=>({hasCustomFocus:256&t[0]}),cn=t=>({focusHandler:t[39],blurHandler:t[40],hasCustomFocus:t[8]});function un(t){let e,n;return e=new Xe({props:{componentContext:t[0],id:t[0].json.id,use:t[38],cls:t[1]+" "+Ee("outer",ae,t[18]),style:se(t[17]),actions:t[14],doubleTapActions:t[15],longTapActions:t[16],attrs:t[10],hasInnerFocusable:t[2],isNativeActionAnimation:!t[7].length||yn(t[7]),$$slots:{default:[fn]},$$scope:{ctx:t}}}),e.$on("focus",t[39]),e.$on("blur",t[40]),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),1&n[0]&&(r.id=t[0].json.id),262146&n[0]&&(r.cls=t[1]+" "+Ee("outer",ae,t[18])),131072&n[0]&&(r.style=se(t[17])),16384&n[0]&&(r.actions=t[14]),32768&n[0]&&(r.doubleTapActions=t[15]),65536&n[0]&&(r.longTapActions=t[16]),1024&n[0]&&(r.attrs=t[10]),4&n[0]&&(r.hasInnerFocusable=t[2]),128&n[0]&&(r.isNativeActionAnimation=!t[7].length||yn(t[7])),2937&n[0]|134217728&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function dn(t){let e,n;return e=new sn({props:{componentContext:t[0],direction:t[9],background:t[5],radius:t[4]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),512&n[0]&&(r.direction=t[9]),32&n[0]&&(r.background=t[5]),16&n[0]&&(r.radius=t[4]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function pn(t){let e,n,r;return{c(){e=T("span"),W(e,"class",n=ae.outer__border),W(e,"style",r=se(t[3]))},m(t,n){O(t,e,n)},p(t,n){8&n[0]&&r!==(r=se(t[3]))&&W(e,"style",r)},d(t){t&&I(e)}}}function fn(t){let e,n,r,o=t[6]&&dn(t);const i=t[119].default,a=h(i,t,t[120],cn);let s=t[11]&&pn(t);return{c(){o&&o.c(),e=L(),a&&a.c(),s&&s.c(),n=L()},m(t,i){o&&o.m(t,i),O(t,e,i),a&&a.m(t,i),s&&s.m(t,i),O(t,n,i),r=!0},p(t,l){t[6]?o?(o.p(t,l),64&l[0]&&Nt(o,1)):(o=dn(t),o.c(),Nt(o,1),o.m(e.parentNode,e)):o&&(St(),Ot(o,1,1,(()=>{o=null})),Pt()),a&&a.p&&(!r||256&l[0]|134217728&l[3])&&v(a,i,t,t[120],r?m(i,t[120],l,ln):y(t[120]),cn),t[11]?s?s.p(t,l):(s=pn(t),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i(t){r||(Nt(o),Nt(a,t),r=!0)},o(t){Ot(o),Ot(a,t),r=!1},d(t){t&&(I(e),I(n)),o&&o.d(t),a&&a.d(t),s&&s.d(t)}}}function hn(t){let e,n,r=!t[12]&&!t[13]&&un(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[12]||t[13]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),12288&n[0]&&Nt(r,1)):(r=un(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}const gn={left:"start",center:"center",right:"end",start:"start",end:"end"},mn={left:"end",center:"center",right:"start",start:"start",end:"end"},vn={top:"start",center:"center",bottom:"end",baseline:"baseline"};function yn(t){return t.some((t=>"native"===t.name))}function $n(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,M,T,z,R,B,L,U,W,H,q,J,G,K,X,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n,it=n,at=n,st=n,lt=n,dt=n,ft=n,ht=n,gt=n,mt=n,vt=n;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((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ft())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>gt())),t.$$.on_destroy.push((()=>mt())),t.$$.on_destroy.push((()=>vt()));let{$$slots:yt={},$$scope:$t}=e,{componentContext:bt}=e,{cls:wt=""}=e,{style:xt}=e,{layoutParams:kt={}}=e,{customDescription:Ct=!1}=e,{customPaddings:Et=!1}=e,{customActions:At=""}=e,{additionalPaddings:jt=null}=e,{heightByAspect:Vt=!1}=e,{parentOf:Ft}=e,{parentOfSimpleMode:Dt}=e,{replaceItems:St}=e,{hasInnerFocusable:Pt=!1}=e;const Nt=pt(re),Ot=pt(Ae),It=Nt.direction;let Mt,Tt;f(t,It,(t=>r(9,J=t)));let zt,Rt,Bt,Lt,Ut,Wt,Ht,qt,Jt,Gt,Kt,Xt,Yt,Zt,Qt,te,ne,ie,ae,se,ue,pe=null,fe=[],me={},ve={},ye=!1,$e=1,Ce="transparent",Ee=0,Ve={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},Se="",Be=null,Ue="",We={},He=0,qe=0,Je=0,Ge=!1,Ke=!1,Xe={},Ye=0,Ze=0,Qe=0,tn=!1,en=!1,nn=1,rn=[],on=!1,an=!1,sn=[],ln=[],cn=[],un=[],dn=[],pn=[],fn="",hn=!1,yn="visible",$n=0,bn=0,_n=!1,wn=null;function xn(t,e){if(!Array.isArray(Ft)||!St)return;if(Dt&&1!==(Array.isArray(e)&&e.length||0))return;const n=Ft.findIndex((e=>(null==e?void 0:e.id)===t)),o=Ft.slice();o.splice(n,1,...e||[]),r(41,Ft=o),St(o)}function kn(t){const e=Ie(t.start_value,1),n=Ie(t.end_value,1),o=we(t.start_delay,0),i=Le()?0:we(t.duration,300),a=Oe(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return r(84,Zt=e),r(85,Qt=n),"opacity ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"scale":return r(86,te=e),r(87,ne=n),"transform ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"native":case"no_animation":return"";default:return bt.logError(oe(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}function Cn(){if(pe&&Mt){const t=Nt.getExtensionContext();pe.forEach((e=>{var n;null===(n=e.unmountView)||void 0===n||n.call(e,Mt,t)})),pe=null}}function En(t){var e;null==ue||ue.destroy(),r(51,Mt=t),on&&bt.json.transition_in&&Ot.registerChildWithTransitionIn(bt.json,bt,bt.json.transition_in,t).then((()=>{r(80,Kt=!1)})).catch((t=>{throw r(80,Kt=!1),t})),on&&bt.json.transition_out&&Ot.registerChildWithTransitionOut(bt.json,bt,bt.json.transition_out,t),on&&bt.json.transition_change&&Ot.registerChildWithTransitionChange(bt.json,bt,bt.json.transition_change,t).then((()=>{r(82,Yt=!1)})).catch((t=>{throw r(82,Yt=!1),t}));const n=bt.fakeElement?[]:bt.json.visibility_actions||bt.json.visibility_action&&[bt.json.visibility_action],o=bt.fakeElement?[]:bt.json.disappear_actions;let i;(Array.isArray(n)&&n.length||Array.isArray(o)&&o.length)&&(i=function(t,e){let{visibilityActions:n,disappearActions:r,rootCtx:o,componentContext:i}=e;const a=[];n&&n.forEach((t=>{a.push({type:"visibility",index:a.length,action:t,visible:!1,count:0,finished:!1})})),r&&r.forEach((t=>{a.push({type:"disappear",index:a.length,action:t,visible:!1,count:0,finished:!1})}));const s=a.map(((t,e)=>{const n="visibility"===t.type;return i.getDerivedFromVars({index:e,visibility_percentage:t.action.visibility_percentage,visibility_duration:n?t.action.visibility_duration:t.action.disappear_duration,log_limit:t.action.log_limit,is_enabled:t.action.is_enabled})}));let l;const c=()=>{l&&l.disconnect(),a.forEach((t=>{t.timer&&clearTimeout(t.timer)}))},u=ee(s,(t=>t));let d;const p=t=>{const e="visibility"===t.type,n=i.getJsonWithVars(t.action),r=n.url,a=n.typed;if(r){const t=be(r);t&&!_e(t,o.getBuiltinProtocols())&&("div-action"===t?o.execAction(n):n.log_id&&o.execCustomAction(n))}else a&&o.execAction(n);o.logStat(e?"visible":"disappear",n)},f=u.subscribe((e=>{d=e.filter(ke);const n={};d.forEach((t=>{n[t.index]=t})),c();const r=[...new Set(d.map((t=>{const e="visibility"===a[t.index].type;return xe(e,t.visibility_percentage,e?50:0)/100})))];r.length&&(l=new IntersectionObserver((t=>{t.forEach((t=>{d.forEach((e=>{const n=a[e.index],r="visibility"===n.type,o=xe(r,e.visibility_percentage,r?50:0);let i;i=0===o?t.intersectionRatio>=1e-12:t.intersectionRatio>=o/100;const s=r?!i:i;(r?!n.visible&&i:n.visible&&!i)?n.finished||(n.timer=setTimeout((()=>{++n.count;const t=0===e.log_limit?1/0:e.log_limit||1;++n.count>=t&&(n.finished=!0),p(n)}),we(e.visibility_duration,800))):s&&n.timer&&clearTimeout(n.timer),n.visible=i}))}))}),{threshold:r}),l.observe(t))}));return{destroy(){var t;null===(t=d)||void 0===t||t.forEach((t=>{const e=a[t.index];e&&"disappear"===e.type&&e.visible&&!e.finished&&o.registerTimeout(window.setTimeout((()=>{p(e)}),t.visibility_duration))})),c(),f()}}}(t,{visibilityActions:n,disappearActions:o,rootCtx:Nt,componentContext:bt}));const a=bt.json.id;return a&&Ot.registerChild(a),null===(e=bt.json.tooltips)||void 0===e||e.forEach((e=>{Nt.registerTooltip(t,e)})),ue={destroy(){a&&Ot.unregisterChild(a),i&&i.destroy(),wn&&wn.destroy()}},ue}return ct((function(){wn&&wn.update(bt)})),ut((()=>{var t;fe.forEach((t=>{Nt.unregisterParentOf(t)})),r(52,fe=[]),null===(t=bt.json.tooltips)||void 0===t||t.forEach((t=>{Nt.unregisterTooltip(t)})),Cn()})),t.$$set=t=>{"componentContext"in t&&r(0,bt=t.componentContext),"cls"in t&&r(1,wt=t.cls),"style"in t&&r(42,xt=t.style),"layoutParams"in t&&r(43,kt=t.layoutParams),"customDescription"in t&&r(44,Ct=t.customDescription),"customPaddings"in t&&r(45,Et=t.customPaddings),"customActions"in t&&r(46,At=t.customActions),"additionalPaddings"in t&&r(47,jt=t.additionalPaddings),"heightByAspect"in t&&r(48,Vt=t.heightByAspect),"parentOf"in t&&r(41,Ft=t.parentOf),"parentOfSimpleMode"in t&&r(49,Dt=t.parentOfSimpleMode),"replaceItems"in t&&r(50,St=t.replaceItems),"hasInnerFocusable"in t&&r(2,Pt=t.hasInnerFocusable),"$$scope"in t&&r(120,$t=t.$$scope)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(100,o=bt.origJson),128&t.$$.dirty[3]&&o&&(r(58,Be=null),r(59,Ue=""),r(76,nn=1),r(88,hn=!1),r(89,yn="visible"),r(90,$n=0),r(91,bn=0),r(92,ie=void 0),r(93,ae=void 0),rn=bt.fakeElement?[]:bt.json.transition_triggers||["state_change","visibility_change"],r(79,on=Boolean(-1!==rn.indexOf("state_change")&&bt.json.id)),an=Boolean(-1!==rn.indexOf("visibility_change")&&bt.json.id),Mt&&En(Mt)),1&t.$$.dirty[0]&&(r(36,i=bt.getDerivedFromVars(bt.json.focus)),tt(),tt=p(i,(t=>r(104,O=t)))),1&t.$$.dirty[0]&&(r(35,a=bt.getDerivedFromVars(bt.json.border)),vt(),vt=p(a,(t=>r(118,X=t)))),1&t.$$.dirty[0]&&(r(34,s=bt.getDerivedFromVars(bt.json.paddings)),mt(),mt=p(s,(t=>r(117,K=t)))),1&t.$$.dirty[0]&&(r(33,l=bt.getDerivedFromVars(bt.json.margins)),ht(),ht=p(l,(t=>r(115,q=t)))),1&t.$$.dirty[0]&&(r(32,c=bt.getDerivedFromVars(bt.json.width)),dt(),dt=p(c,(t=>r(113,W=t)))),1&t.$$.dirty[0]&&(r(31,u=bt.getDerivedFromVars(bt.json.alignment_horizontal)),gt(),gt=p(u,(t=>r(116,G=t)))),1&t.$$.dirty[0]&&(r(30,d=bt.getDerivedFromVars(bt.json.height)),lt(),lt=p(d,(t=>r(112,U=t)))),1&t.$$.dirty[0]&&(r(29,h=bt.getDerivedFromVars(bt.json.alignment_vertical)),ft(),ft=p(h,(t=>r(114,H=t)))),1&t.$$.dirty[0]&&(r(28,g=bt.getDerivedFromVars(bt.json.alpha)),st(),st=p(g,(t=>r(111,L=t)))),1&t.$$.dirty[0]&&(r(27,m=bt.getDerivedFromVars(bt.json.accessibility)),at(),at=p(m,(t=>r(110,B=t)))),1&t.$$.dirty[0]&&(r(26,v=bt.getDerivedFromVars(bt.json.background)),it(),it=p(v,(t=>r(109,R=t)))),1&t.$$.dirty[0]&&(r(25,y=bt.getDerivedFromVars(bt.json.action)),rt(),rt=p(y,(t=>r(107,T=t)))),1&t.$$.dirty[0]&&(r(24,$=bt.getDerivedFromVars(bt.json.actions)),ot(),ot=p($,(t=>r(108,z=t)))),1&t.$$.dirty[0]&&(r(23,b=bt.getDerivedFromVars(bt.json.doubletap_actions)),nt(),nt=p(b,(t=>r(106,M=t)))),1&t.$$.dirty[0]&&(r(22,_=bt.getDerivedFromVars(bt.json.longtap_actions)),et(),et=p(_,(t=>r(105,I=t)))),1&t.$$.dirty[0]&&(r(21,w=bt.getDerivedFromVars(bt.json.action_animation)),Q(),Q=p(w,(t=>r(103,N=t)))),1&t.$$.dirty[0]&&(r(20,x=bt.getDerivedFromVars(bt.json.visibility)),Z(),Z=p(x,(t=>r(102,P=t)))),1&t.$$.dirty[0]&&(r(19,k=bt.getDerivedFromVars(bt.json.transform)),Y(),Y=p(k,(t=>r(101,S=t)))),2360320&t.$$.dirty[1]&&(fe.forEach((t=>{Nt.unregisterParentOf(t)})),r(52,fe=[]),Ft&&Ft.forEach((t=>{(null==t?void 0:t.id)&&(fe.push(t.id),Nt.registerParentOf(t.id,{replaceWith:xn,isSingleMode:Boolean(Dt)}))}))),264&t.$$.dirty[0]|130023424&t.$$.dirty[1]|33556480&t.$$.dirty[3]){const t=_n&&(null==O?void 0:O.border)?O.border:X;let e={},n={},o=!1,i="";if(t){if(t.has_shadow){const n=t.shadow;e["box-shadow"]=n?function(t){var e,n,r,o,i,a;return le((null===(e=t.offset)||void 0===e||null===(n=e.x)||void 0===n?void 0:n.value)||0)+" "+le((null===(r=t.offset)||void 0===r||null===(o=r.y)||void 0===o?void 0:o.value)||0)+" "+le(null!==(i=t.blur)&&void 0!==i?i:2)+" "+de(t.color||"#000000",null!==(a=t.alpha)&&void 0!==a?a:.19)}(n):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(t.stroke&&(o=!0,r(54,$e=we(t.stroke.width,$e)),r(55,Ce=de(t.stroke.color,1,Ce)),n["--divkit-border"]="".concat(le($e+1)," solid ").concat(Ce)),t.corners_radius?(r(57,Ve=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]&&!Fe(n[t]))return e;return t}(t.corners_radius,Ve)),e["border-radius"]=ze(Ve),["top-left","top-right","bottom-right","bottom-left"].forEach((t=>{r(57,Ve[t]=(Ve[t]||0)+1,Ve)})),n["--divkit-border-radius"]=ze(Ve)):t.corner_radius&&(r(56,Ee=we(t.corner_radius,Ee)),r(57,Ve={"top-left":Ee,"top-right":Ee,"bottom-right":Ee,"bottom-left":Ee}),e["border-radius"]=le(Ee),n["--divkit-border-radius"]=le(Ee+1)),o&&$e&&(t.corners_radius||t.corner_radius)){let t=Object.assign({},Ve);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+$e/2})),i=ze(t)}}r(53,me=Ne(e,me)),r(3,ve=Ne(n,ve)),r(11,ye=o),r(4,Se=i)}if(134234112&t.$$.dirty[1]|16777216&t.$$.dirty[3]&&r(58,Be=Te(K&&!Et?K:void 0,Be)),512&t.$$.dirty[0]|134283264&t.$$.dirty[1]&&r(96,C=je(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left","start","end"].forEach((r=>{const o=t[r];o&&(n[r]=o);const i=e[r];i&&(n[r]=(n[r]||0)+i)})),n}(Be,jt),J)),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]|4194304&t.$$.dirty[3]&&r(59,Ue=De(q,J,Ue)),513&t.$$.dirty[0]|536875008&t.$$.dirty[1]|4&t.$$.dirty[2]|13631488&t.$$.dirty[3]){let t,e,n,o,i={},a=0,s=0,l=!1,c=!1;const u=null==W?void 0:W.type;if("fixed"===u)r(64,He=we(null==W?void 0:W.value,He)),e=le(He);else if("wrap_content"===u||("match_parent"===u||!u)&&kt.parentHorizontalWrapContent){if(t="content",("wrap_content"===u&&(null==W?void 0:W.constrained)||("match_parent"===u||!u)&&kt.parentHorizontalWrapContent)&&(i["width-constrained"]=!0,"horizontal"===kt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=W;t.min_size&&Fe(t.min_size.value)&&(n=le(t.min_size.value)),t.max_size&&Fe(t.max_size.value)&&(o=le(t.max_size.value))}"match_parent"!==u&&u||bt.logError(oe(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","vertical"===kt.parentContainerOrientation&&kt.parentContainerWrap&&(c=!0,bt.logError(oe(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===kt.parentLayoutOrientation?e="calc(100% - ".concat(ce(((null==q?void 0:q.left)||0)+((null==q?void 0:q.right)||0)),")"):"horizontal"===kt.parentContainerOrientation&&(a=W&&"weight"in W&&W.weight||1,kt.parentContainerWrap&&(l=!0));if("parent"===t)i["halign-self"]="stretch";else{const t=G;i["halign-self"]="left"===t||"center"===t||"right"===t||"start"===t||"end"===t?("ltr"===J?gn:mn)[t]:kt.parentHAlign||"start"}t&&(i.width=t),r(61,zt=e),r(62,Rt=n),r(63,Bt=o),r(65,qe=a),r(66,Je=s),r(60,We=Ne(i,We)),r(67,Ge=l),r(12,Ke=c)}if(1&t.$$.dirty[0]|135168&t.$$.dirty[1]|1088&t.$$.dirty[2]|6815744&t.$$.dirty[3]){let t,e,n,o,i={},a=0,s=0,l=!1,c=!1;const u=null==U?void 0:U.type;if(Vt);else if("fixed"===u)r(72,Ye=we(null==U?void 0:U.value,Ye)),e=le(Ye);else if("match_parent"!==u||kt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==U?void 0:U.constrained)||"match_parent"===u&&kt.parentVerticalWrapContent)&&(i["height-constrained"]=!0,"vertical"===kt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=U;(null==t?void 0:t.min_size)&&Fe(t.min_size.value)&&(n=le(t.min_size.value)),(null==t?void 0:t.max_size)&&Fe(t.max_size.value)&&(o=le(t.max_size.value))}"match_parent"===u&&bt.logError(oe(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===kt.parentContainerOrientation&&kt.parentContainerWrap&&(c=!0,bt.logError(oe(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===kt.parentLayoutOrientation?e="calc(100% - ".concat(ce(((null==q?void 0:q.top)||0)+((null==q?void 0:q.bottom)||0)),")"):"vertical"===kt.parentContainerOrientation&&(a=(null==U?void 0:U.weight)||1,kt.parentContainerWrap&&(l=!0));if("parent"===t)i["valign-self"]="stretch";else{const t=H;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===kt.parentContainerOrientation?i["valign-self"]=vn[t]:i["valign-self"]=kt.parentVAlign||"start"}t&&(i.height=t),r(69,Lt=e),r(70,Ut=n),r(71,Wt=o),r(73,Ze=a),r(74,Qe=s),r(68,Xe=Ne(i,Xe)),r(75,tn=l),r(13,en=c)}var e,n;if(4096&t.$$.dirty[1]&&r(99,E=!!kt.overlapParent||void 0),4096&t.$$.dirty[1]|1572864&t.$$.dirty[3]&&r(98,A=kt.overlapParent&&(!W||"match_parent"===W.type)&&!kt.parentHorizontalWrapContent&&"match_parent"===(null==U?void 0:U.type)&&!kt.parentVerticalWrapContent),4096&t.$$.dirty[1]&&r(97,j=kt.gridArea?"".concat(kt.gridArea.y+1,"/").concat(kt.gridArea.x+1,"/span ").concat(kt.gridArea.rowSpan,"/span ").concat(kt.gridArea.colSpan):void 0),16384&t.$$.dirty[2]|262144&t.$$.dirty[3]&&(r(76,(n=nn,nn=!Fe(e=L)||void 0===e||e>1?n:Number(e))),r(77,Ht=1===nn?void 0:nn)),8192&t.$$.dirty[1]|131072&t.$$.dirty[3]&&(r(10,Tt=void 0),B&&!Ct&&B.description&&(r(10,Tt={}),r(10,Tt["aria-label"]=B.description,Tt))),368&t.$$.dirty[0]|67584&t.$$.dirty[3]&&(r(5,qt=_n&&(null==O?void 0:O.background)?O.background:R),r(78,Jt={}),r(6,Gt=!1),Array.isArray(qt)&&(r(6,Gt=qt.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(Se)),!Gt))){const t=ge(qt);r(78,Jt["background-color"]=t.color,Jt),r(78,Jt["background-image"]=t.image,Jt),r(78,Jt["background-size"]=t.size,Jt),r(78,Jt["background-position"]=t.position,Jt),r(78,Jt["background-repeat"]="no-repeat",Jt)}if(1&t.$$.dirty[0]|131072&t.$$.dirty[2]&&(r(80,Kt=void 0),on&&bt.json.transition_in&&Nt.isRunning("stateChange")&&r(80,Kt=!0)),1&t.$$.dirty[0]|131072&t.$$.dirty[2]&&(r(82,Yt=void 0),on&&bt.json.transition_change&&Nt.isRunning("stateChange")&&Ot.hasTransitionChange(bt.json.id)&&r(82,Yt=!0)),1&t.$$.dirty[0]|32768&t.$$.dirty[1]|63488&t.$$.dirty[3]){let t=z||T&&[T]||[],e=M||[],n=I||[],o=(null==O?void 0:O.on_focus)||[],i=(null==O?void 0:O.on_blur)||[];bt.fakeElement?(t=[],e=[],n=[],o=[],i=[]):(Array.isArray(t)||(t=[],bt.logError(oe(new Error("Actions should be array")))),Array.isArray(e)||(e=[],bt.logError(oe(new Error("DoubleTapActions should be array")))),Array.isArray(n)||(n=[],bt.logError(oe(new Error("LongTapActions should be array")))),Array.isArray(o)||(o=[],bt.logError(oe(new Error("FocusActions should be array")))),Array.isArray(i)||(i=[],bt.logError(oe(new Error("BlurActions should be array"))))),(t.length||e.length||n.length)&&At&&(t=[],e=[],n=[],bt.logError(oe(new Error('Cannot use action on component "'.concat(At,'"'))))),r(14,sn=t.filter(Re)),r(15,ln=e.filter(Re)),r(16,cn=n.filter(Re)),un=o.filter(Re),dn=i.filter(Re)}if(128&t.$$.dirty[0]|1024&t.$$.dirty[3]&&N&&(r(7,pn=Me(N)),r(83,fn=pn.map(kn).filter(Boolean).join(", "))),201326592&t.$$.dirty[2]|512&t.$$.dirty[3]){const t=yn,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(P,yn);t!==e&&(!hn||"visible"!==yn&&"visible"!==e?r(89,yn=e):async function(t){r(89,yn=t);const e="visible"===t?"in":"out",n="in"===e?bt.json.transition_in:bt.json.transition_out;an&&n&&(await _t(),"in"===e&&r(81,Xt=!0),Ot.runVisibilityTransition(Object.assign(Object.assign({},bt.json),{visibility:"visible"}),bt,n,Mt,e).then((()=>{"in"===e&&r(81,Xt=!1)})).catch((t=>{throw"in"===e&&r(81,Xt=!1),t})))}(e)),hn||r(88,hn=!0)}if(1&t.$$.dirty[0]|1048576&t.$$.dirty[1]|2&t.$$.dirty[3]&&bt.json&&Mt&&!Pe(bt.json.extensions,se)){let t=r(94,se=bt.json.extensions);_t().then((()=>{if(t===se&&Mt&&(Cn(),Array.isArray(bt.json.extensions))){const t=Nt.getExtensionContext();pe=bt.json.extensions.map((e=>{var n;const r=e.id;if(!r)return;const o=Nt.getExtension(r,e.params);return o&&(null===(n=o.mountView)||void 0===n||n.call(o,Mt,t)),o})).filter(he)}}))}if(257&t.$$.dirty[0]|536875008&t.$$.dirty[1]|138149952&t.$$.dirty[2]|96&t.$$.dirty[3]&&r(18,V=Object.assign(Object.assign(Object.assign({},We),Xe),{"parent-overlap":E,"parent-overlap-absolute":A,"scroll-snap":kt.scrollSnap,"hide-on-transition-in":Kt||Xt||Yt,visibility:yn,"has-action-animation":Boolean(fn),"parent-flex":kt.parentContainerOrientation||void 0,"parent-grid":Boolean(kt.gridArea)||void 0,"has-custom-focus":Boolean(_n&&bt.json.focus)})),805306368&t.$$.dirty[2]|256&t.$$.dirty[3]&&S&&void 0!==S.rotation){const t=S.pivot_x||{type:"pivot-percentage",value:50};r(90,$n=Ie(t.value,$n));const e="pivot-fixed"===t.type?le($n):"".concat($n,"%"),n=S.pivot_y||{type:"pivot-percentage",value:50};r(91,bn=Ie(n.value,bn));const o="pivot-fixed"===n.type?le(bn):"".concat(bn,"%");r(92,ie="".concat(e," ").concat(o)),r(93,ae="rotate(".concat(S.rotation,"deg)"))}10280&t.$$.dirty[2]&&r(95,F=Ge||tn?"100%":qe||Ze?0:void 0),1346373632&t.$$.dirty[1]|1138858907&t.$$.dirty[2]|29&t.$$.dirty[3]&&r(17,D=Object.assign(Object.assign(Object.assign(Object.assign({},xt),Jt),me),{width:zt,"min-width":Rt,"max-width":Bt,height:Lt,"min-height":Ut,"max-height":Wt||(null==xt?void 0:xt["max-height"]),"grid-area":j,padding:C,margin:Ue,opacity:Ht,transition:fn,"transform-origin":ie,transform:ae,"flex-grow":qe||Ze||void 0,"flex-shrink":Je||Qe?1:void 0,"flex-basis":F,"--divkit-animation-opacity-start":Zt,"--divkit-animation-opacity-end":Qt,"--divkit-animation-scale-start":te,"--divkit-animation-scale-end":ne}))},[bt,wt,Pt,ve,Se,qt,Gt,pn,_n,J,Tt,ye,Ke,en,sn,ln,cn,D,V,k,x,w,_,b,$,y,v,m,g,h,d,u,c,l,s,a,i,It,En,function(){bt.json.focus&&(function(t){let e;return p(t,(t=>e=t))(),e}(Nt.isPointerFocus)||r(8,_n=!0),bt.execAnyActions(un))},function(){bt.json.focus&&(r(8,_n=!1),bt.execAnyActions(dn))},Ft,xt,kt,Ct,Et,At,jt,Vt,Dt,St,Mt,fe,me,$e,Ce,Ee,Ve,Be,Ue,We,zt,Rt,Bt,He,qe,Je,Ge,Xe,Lt,Ut,Wt,Ye,Ze,Qe,tn,nn,Ht,Jt,on,Kt,Xt,Yt,fn,Zt,Qt,te,ne,hn,yn,$n,bn,ie,ae,se,F,C,j,A,E,o,S,P,N,O,I,M,T,z,R,B,L,U,W,H,q,G,K,X,yt,$t]}const bn=class extends Zt{constructor(t){super(),Xt(this,t,$n,hn,d,{componentContext:0,cls:1,style:42,layoutParams:43,customDescription:44,customPaddings:45,customActions:46,additionalPaddings:47,heightByAspect:48,parentOf:41,parentOfSimpleMode:49,replaceItems:50,hasInnerFocusable:2},null,[-1,-1,-1,-1,-1])}},_n={"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 wn(t,e){const n=Number(t);return Number.isNaN(n)||n<=0?e:n}function xn(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function kn(t,e){return xn(t)||e}function Cn(t){let e,n;return{c(){e=T("span"),W(e,"class",n=_n["text-range__top-offset"]),Y(e,"margin-top",t[5])},m(t,n){O(t,e,n)},p(t,n){32&n&&Y(e,"margin-top",t[5])},d(t){t&&I(e)}}}function En(t){let e;return{c(){e=R(t[1])},m(t,n){O(t,e,n)},p(t,n){2&n&&K(e,t[1])},d(t){t&&I(e)}}}function An(t){let e,n,r,o=t[5]&&Cn(t);return n=new Xe({props:{componentContext:t[0],cls:Ee("text-range",_n,t[4]),actions:t[2],style:se(t[3]),$$slots:{default:[En]},$$scope:{ctx:t}}}),{c(){o&&o.c(),e=L(),Jt(n.$$.fragment)},m(t,i){o&&o.m(t,i),O(t,e,i),Gt(n,t,i),r=!0},p(t,r){let[i]=r;t[5]?o?o.p(t,i):(o=Cn(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const a={};1&i&&(a.componentContext=t[0]),16&i&&(a.cls=Ee("text-range",_n,t[4])),4&i&&(a.actions=t[2]),8&i&&(a.style=se(t[3])),8388610&i&&(a.$$scope={dirty:i,ctx:t}),n.$set(a)},i(t){r||(Nt(n.$$.fragment,t),r=!0)},o(t){Ot(n.$$.fragment,t),r=!1},d(t){t&&I(e),o&&o.d(t),Kt(n,t)}}}function jn(t,e,n){let r,o,i,a,s,l;var c,u;let{componentContext:d}=e,{text:p}=e,{rootFontSize:f}=e,{textStyles:h={}}=e,{singleline:g=!1}=e,{actions:m}=e;const v=pt(re);let y,$="none",b=12,_=1.25,w="",x="",k="",C=null;return t.$$set=t=>{"componentContext"in t&&n(0,d=t.componentContext),"text"in t&&n(1,p=t.text),"rootFontSize"in t&&n(6,f=t.rootFontSize),"textStyles"in t&&n(7,h=t.textStyles),"singleline"in t&&n(8,g=t.singleline),"actions"in t&&n(2,m=t.actions)},t.$$.update=()=>{if(1&t.$$.dirty&&d.json&&(n(11,$="none"),n(12,b=12),n(13,_=1.25),n(14,w=""),n(15,y=void 0),n(16,x=""),n(17,k=""),n(18,C=null)),128&t.$$.dirty){let t="none";(h.underline||h.strike)&&("single"===h.underline&&"single"===h.strike?t="both":"single"===h.underline?t="underline":"single"===h.strike&&(t="strike")),n(11,$=t)}4224&t.$$.dirty&&n(12,b=wn(h.font_size,b)),4224&t.$$.dirty&&Ze(h.line_height)&&n(13,_=Number(h.line_height)/b),128&t.$$.dirty&&Fe(h.letter_spacing)&&n(14,w=le(h.letter_spacing)),32896&t.$$.dirty&&(n(15,y=kn(h.font_weight,y)),"string"==typeof h.font_family&&h.font_family?n(16,x=v.typefaceProvider(h.font_family,{fontWeight:y||400})):n(16,x="")),131200&t.$$.dirty&&n(17,k=de(h.text_color,1,k)),128&t.$$.dirty&&n(5,r=h.top_offset?le(h.top_offset):""),128&t.$$.dirty&&n(20,o=h.background?ge([h.background]):null),640&t.$$.dirty&&((null===n(9,c=h.border)||void 0===c?void 0:c.stroke)&&h.border.stroke.color&&"transparent"!==de(h.border.stroke.color)&&Ze(h.border.stroke.width)?n(18,C={color:h.border.stroke.color,width:h.border.stroke.width}):n(18,C=null)),1152&t.$$.dirty&&n(19,i=wn(null===n(10,u=h.border)||void 0===u?void 0:u.corner_radius,0)),4224&t.$$.dirty&&n(21,a=h.text_shadow?function(t,e){var n,r,o,i,a,s;return"drop-shadow("+de(t.color||"#000000",null!==(n=t.alpha)&&void 0!==n?n:.19)+" "+le(10*((null===(r=t.offset)||void 0===r||null===(o=r.x)||void 0===o?void 0:o.value)||0)/e)+" "+le(10*((null===(i=t.offset)||void 0===i||null===(a=i.y)||void 0===a?void 0:a.value)||0)/e)+" "+le(10*(null!==(s=t.blur)&&void 0!==s?s:2)/e)+")"}(h.text_shadow,b):void 0),2304&t.$$.dirty&&n(4,s={singleline:g,decoration:$}),4190272&t.$$.dirty&&n(3,l={"font-size":le(10*b/f),"line-height":_,"letter-spacing":w,"font-weight":y,"font-family":x,filter:a,color:k,background:(null==o?void 0:o.color)||void 0,"box-shadow":C?"inset 0 0 0 ".concat(le(C.width)," ").concat(C.color):void 0,"border-radius":i?le(i):void 0})},[d,p,m,l,s,r,f,h,g,c,u,$,b,_,w,y,x,k,C,i,o,a]}const Vn=class extends Zt{constructor(t){super(),Xt(this,t,jn,An,d,{componentContext:0,text:1,rootFontSize:6,textStyles:7,singleline:8,actions:2})}};function Fn(t,e,n){return"left"===t||"center"===t||"right"===t||"start"===t||"end"===t?"left"===t?"ltr"===e?"start":"end":"right"===t?"ltr"===e?"end":"start":t:n}function Dn(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?"top"===t?"start":"bottom"===t?"end":t:e}function Sn(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}function Pn(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}function Nn(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)}}function On(t,e){let n=null;const r=()=>{const n=getComputedStyle(t),r=parseFloat(n.lineHeight);t.style.webkitLineClamp="",t.style.maxHeight="";const o=t.offsetHeight;if(t.scrollHeight<=o+1e-9)return;let i=Math.max(1,Math.floor(o/r));e.maxLines&&e.maxLines<i&&(i=e.maxLines),t.style.webkitLineClamp=String(i),t.style.maxHeight=r*i+"px"},o=Nn(r,50),i=()=>{n&&(n.disconnect(),n=null)},a=()=>{if(i(),e.enabled){if(r(),"undefined"!=typeof ResizeObserver){n=new ResizeObserver(o);const e=t.parentElement;e&&n.observe(e)}}else t.style.webkitLineClamp=String(e.lineClamp||"")};return a(),{update(t){e=t,a()},destroy(){i()}}}const{Boolean:In}=j;function Mn(t,e,n){const r=t.slice();return r[60]=e[n],r}function Tn(t){let e,n;return e=new Vn({props:{componentContext:t[0],text:t[2],rootFontSize:t[3],textStyles:t[7],singleline:t[6]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),4&n[0]&&(r.text=t[2]),8&n[0]&&(r.rootFontSize=t[3]),128&n[0]&&(r.textStyles=t[7]),64&n[0]&&(r.singleline=t[6]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function zn(t){let e,n,r=zt(t[11]),o=[];for(let e=0;e<r.length;e+=1)o[e]=Un(Mn(t,r,e));const i=t=>Ot(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=L()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);O(t,e,r),n=!0},p(t,n){if(2633&n[0]|1&n[1]){let a;for(r=zt(t[11]),a=0;a<r.length;a+=1){const i=Mn(t,r,a);o[a]?(o[a].p(i,n),Nt(o[a],1)):(o[a]=Un(i),o[a].c(),Nt(o[a],1),o[a].m(e.parentNode,e))}for(St(),a=r.length;a<o.length;a+=1)i(a);Pt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Nt(o[t]);n=!0}},o(t){o=o.filter(In);for(let t=0;t<o.length;t+=1)Ot(o[t]);n=!1},d(t){t&&I(e),M(o,t)}}}function Rn(t){let e,r,o,i,a,s,l,c,d;return{c(){e=T("span"),r=T("img"),W(r,"class",o=ie.text__image),u(r.src,i=t[60].image.url)||W(r,"src",i),W(r,"loading",a=t[60].image.preloadRequired?"eager":"lazy"),W(r,"decoding","async"),W(r,"aria-hidden","true"),W(r,"alt",""),W(r,"style",s=se({width:t[60].image.width,height:t[60].image.height,"margin-top":t[9]?"-".concat(t[60].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[60].image.height):void 0,filter:t[60].image.svgFilterId?"url(#".concat(t[60].image.svgFilterId,")"):void 0})),W(e,"style",l=se(t[60].image.wrapperStyle))},m(n,o){O(n,e,o),S(e,r),c||(d=U(r,"error",t[31]),c=!0)},p(t,n){2048&n[0]&&!u(r.src,i=t[60].image.url)&&W(r,"src",i),2048&n[0]&&a!==(a=t[60].image.preloadRequired?"eager":"lazy")&&W(r,"loading",a),2560&n[0]&&s!==(s=se({width:t[60].image.width,height:t[60].image.height,"margin-top":t[9]?"-".concat(t[60].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[60].image.height):void 0,filter:t[60].image.svgFilterId?"url(#".concat(t[60].image.svgFilterId,")"):void 0}))&&W(r,"style",s),2048&n[0]&&l!==(l=se(t[60].image.wrapperStyle))&&W(e,"style",l)},i:n,o:n,d(t){t&&I(e),c=!1,d()}}}function Bn(t){let e,n,r=t[60].text&&Ln(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[60].text?r?(r.p(t,n),2048&n[0]&&Nt(r,1)):(r=Ln(t),r.c(),Nt(r,1),r.m(e.parentNode,e)):r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt())},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}function Ln(t){let e,n;return e=new Vn({props:{componentContext:t[0],text:t[60].text,rootFontSize:t[3],textStyles:t[60].textStyles,singleline:t[6],actions:t[60].actions}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),2048&n[0]&&(r.text=t[60].text),8&n[0]&&(r.rootFontSize=t[3]),2048&n[0]&&(r.textStyles=t[60].textStyles),64&n[0]&&(r.singleline=t[6]),2048&n[0]&&(r.actions=t[60].actions),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Un(t){let e,n,r,o;const i=[Bn,Rn],a=[];function s(t,e){return"text"in t[60]?0:t[60].image?1:-1}return~(e=s(t))&&(n=a[e]=i[e](t)),{c(){n&&n.c(),r=L()},m(t,n){~e&&a[e].m(t,n),O(t,r,n),o=!0},p(t,o){let l=e;e=s(t),e===l?~e&&a[e].p(t,o):(n&&(St(),Ot(a[l],1,1,(()=>{a[l]=null})),Pt()),~e?(n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Nt(n,1),n.m(r.parentNode,r)):n=null)},i(t){o||(Nt(n),o=!0)},o(t){Ot(n),o=!1},d(t){t&&I(r),~e&&a[e].d(t)}}}function Wn(t){let e,n,r,o,i,a,s,c,u;const d=[zn,Tn],p=[];function f(t,e){return t[11].length?0:1}return n=f(t),r=p[n]=d[n](t),{c(){e=T("span"),r.c(),W(e,"class",o=Ee("text__inner",ie,t[13])),W(e,"style",i=se(t[12]))},m(r,o){O(r,e,o),p[n].m(e,null),s=!0,c||(u=b(a=On.call(null,e,{enabled:t[8],lineClamp:"number"==typeof t[4]?t[4]:void 0,maxLines:t[10]})),c=!0)},p(t,c){let u=n;n=f(t),n===u?p[n].p(t,c):(St(),Ot(p[u],1,1,(()=>{p[u]=null})),Pt(),r=p[n],r?r.p(t,c):(r=p[n]=d[n](t),r.c()),Nt(r,1),r.m(e,null)),(!s||8192&c[0]&&o!==(o=Ee("text__inner",ie,t[13])))&&W(e,"class",o),(!s||4096&c[0]&&i!==(i=se(t[12])))&&W(e,"style",i),a&&l(a.update)&&1296&c[0]&&a.update.call(null,{enabled:t[8],lineClamp:"number"==typeof t[4]?t[4]:void 0,maxLines:t[10]})},i(t){s||(Nt(r),s=!0)},o(t){Ot(r),s=!1},d(t){t&&I(e),p[n].d(),c=!1,u()}}}function Hn(t){let e,n;return e=new bn({props:{cls:Ee("text",ie,t[14])+" "+(t[5]?"":ne.root__unselectable),componentContext:t[0],layoutParams:t[1],$$slots:{default:[Wn]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};16416&n[0]&&(r.cls=Ee("text",ie,t[14])+" "+(t[5]?"":ne.root__unselectable)),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),16349&n[0]|2&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function qn(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,M,T,z,R,B,L,U,W=n,H=n,q=n,J=n,G=n,K=n,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n;t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),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()));let{componentContext:it}=e,{layoutParams:at}=e;const st=pt(re),lt=st.direction;f(t,lt,(t=>r(52,T=t)));let ct,dt="",ft=12,ht=1.25,gt=!1,mt="",vt="",yt=!1,$t="start",bt="start",_t="",wt="",xt="",kt=!1,Ct=[],Et=[];return ut((()=>{Et.forEach((t=>{let[e,n]=t;st.removeSvgFilter(e,n)}))})),t.$$set=t=>{"componentContext"in t&&r(0,it=t.componentContext),"layoutParams"in t&&r(1,at=t.layoutParams)},t.$$.update=()=>{var e;if(1&t.$$.dirty[0]&&it.json&&(r(3,ft=12),r(32,ht=1.25),r(9,gt=!1),r(33,mt=""),r(10,ct=void 0),r(4,vt=""),r(34,yt=!1),r(35,$t="start"),r(36,bt="start"),r(37,_t=""),r(39,xt=""),r(5,kt=!1)),1&t.$$.dirty[0]&&(r(29,o=it.getDerivedFromVars(it.json.text)),ot(),ot=p(o,(t=>r(56,U=t)))),1&t.$$.dirty[0]&&(r(28,i=it.getDerivedFromVars(it.json.ranges)),q(),q=p(i,(t=>r(44,F=t)))),1&t.$$.dirty[0]&&(r(27,a=it.getDerivedFromVars(it.json.images)),H(),H=p(a,(t=>r(43,V=t)))),1&t.$$.dirty[0]&&(r(26,s=it.getDerivedFromVars({font_size:it.json.font_size,letter_spacing:it.json.letter_spacing,font_weight:it.json.font_weight,font_family:it.json.font_family,text_color:it.json.text_color,underline:it.json.underline,strike:it.json.strike,line_height:it.json.line_height,text_shadow:it.json.text_shadow})),W(),W=p(s,(t=>r(7,j=t)))),1&t.$$.dirty[0]&&(r(25,l=it.getDerivedFromVars(it.json.font_size)),rt(),rt=p(l,(t=>r(55,L=t)))),1&t.$$.dirty[0]&&(r(24,c=it.getDerivedFromVars(it.json.line_height)),nt(),nt=p(c,(t=>r(54,B=t)))),1&t.$$.dirty[0]&&(r(23,u=it.getDerivedFromVars(it.json.max_lines)),Z(),Z=p(u,(t=>r(50,I=t)))),1&t.$$.dirty[0]&&(r(22,d=it.getDerivedFromVars(it.json.text_alignment_horizontal)),tt(),tt=p(d,(t=>r(53,z=t)))),1&t.$$.dirty[0]&&(r(21,h=it.getDerivedFromVars(it.json.text_alignment_vertical)),Q(),Q=p(h,(t=>r(51,M=t)))),1&t.$$.dirty[0]&&(r(20,g=it.getDerivedFromVars(it.json.text_color)),Y(),Y=p(g,(t=>r(49,O=t)))),1&t.$$.dirty[0]&&(r(19,m=it.getDerivedFromVars(it.json.focused_text_color)),X(),X=p(m,(t=>r(48,N=t)))),1&t.$$.dirty[0]&&(r(18,v=it.getDerivedFromVars(it.json.truncate)),K(),K=p(v,(t=>r(47,P=t)))),1&t.$$.dirty[0]&&(r(17,y=it.getDerivedFromVars(it.json.text_gradient)),G(),G=p(y,(t=>r(46,S=t)))),1&t.$$.dirty[0]&&(r(16,$=it.getDerivedFromVars(it.json.selectable)),J(),J=p($,(t=>r(45,D=t)))),1&t.$$.dirty[0]&&(r(15,b=it.getDerivedFromVars(it.json.auto_ellipsize)),et(),et=p(b,(t=>r(8,R=t)))),33554432&t.$$.dirty[1]&&r(2,(e=U,dt=String(null!=e?e:""))),8&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&r(3,ft=wn(L,ft)),8&t.$$.dirty[0]|8388608&t.$$.dirty[1]){const t=B;Ze(t)?(r(32,ht=Number(t)/ft),r(9,gt=!0)):r(9,gt=!1)}if(524288&t.$$.dirty[1]&&r(6,_=1===I),256&t.$$.dirty[0]|524290&t.$$.dirty[1]){let t,e="",n="",o=!1;if(I&&I>1){const r=Number(I);e=r*ht+"em",t=r,n=r,o=!0}else R&&1!==I&&(o=!0);r(33,mt=e),r(10,ct=t),r(4,vt=n),r(34,yt=o)}if(6291472&t.$$.dirty[1]&&r(35,$t=Fn(z,T,$t)),1048608&t.$$.dirty[1]&&r(36,bt=Dn(M,bt)),4&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(42,w=!F||dt&&1===F.length&&F[0]&&0===F[0].start&&"number"==typeof F[0].end&&F[0].end>=dt.length),270336&t.$$.dirty[1]&&r(41,x=Boolean(O)!==Boolean(F&&F[0]&&F[0].text_color)),797760&t.$$.dirty[1]){let t="";I&&w&&x&&(t=de(O||F&&F[0]&&F[0].text_color,1,_t)),r(37,_t=t)}if(131200&t.$$.dirty[1]&&r(38,wt=de(N,1,wt)),65536&t.$$.dirty[1]&&r(40,k="none"===P?"none":""),32768&t.$$.dirty[1]){let t="";if(S){const e=ge([S]);e.image&&(t=e.image)}r(39,xt=t)}32&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(5,kt=Sn(D,kt)),132&t.$$.dirty[0]|12288&t.$$.dirty[1]&&function(t,e,n,o){let i=[];if(Et.forEach((t=>{let[e,n]=t;st.removeSvgFilter(e,n)})),Et=[],!(Array.isArray(e)&&e.length||Array.isArray(n)&&n.length&&t))return void r(11,Ct=[]);const a=t;let s=e||[{start:0,end:a.length}],l=n||[],c=0,u=[],d=[];s.forEach((t=>{void 0!==t.start&&void 0!==t.end&&(d.push({index:t.start,range:t,type:"rangeStart",isStart:!0}),d.push({index:t.end,range:t,type:"rangeEnd"}))})),l.forEach(((t,e)=>{void 0!==t.start&&t.url&&t.start<=a.length&&d.push({index:t.start,image:t,type:"image",arrayIndex:e})})),d.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)),d.forEach((t=>{var e,n;let r="image"===t.type?null:t.range,s=t.index;if(s>c){let r=Object.assign(Object.assign({},o),...u);i.push({text:a.substring(c,s),textStyles:r,actions:"rangeEnd"===t.type&&(null===(n=null===(e=t.range)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.filter(Re))||void 0})}if("rangeStart"===t.type&&r)u.push(r);else if("rangeEnd"===t.type)u=u.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},o),...u),n=le(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=le(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const a={"font-size":le(10*(Number(e.font_size)||12)/ft)};let s="";const l=t.image.tint_color,c=Pn(t.image.tint_mode,"source_in");if(l){const e=de(t.image.tint_color);s=st.addSvgFilter(e,c),Et.push([e,c])}i.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:a,svgFilterId:s,preloadRequired:Boolean(t.image.preload_required)}})}c=s})),c<a.length&&i.push({text:a.substring(c),textStyles:Object.assign({},o)}),r(11,Ct=i)}(dt,F,V,j),64&t.$$.dirty[0]|696&t.$$.dirty[1]&&r(14,C={singleline:_,multiline:yt,halign:$t,valign:bt,truncate:k,"has-focus-color":Boolean(wt)}),256&t.$$.dirty[1]&&r(13,E={gradient:Boolean(xt)}),24&t.$$.dirty[0]|454&t.$$.dirty[1]&&r(12,A={"font-size":le(ft),"line-height":ht,"max-height":mt,"-webkit-line-clamp":vt,color:_t,"background-image":xt,"--divkit-text-focus-color":wt})},[it,at,dt,ft,vt,kt,_,j,R,gt,ct,Ct,A,E,C,b,$,y,v,m,g,h,d,u,c,l,s,a,i,o,lt,function(t){t.target&&"classList"in t.target&&t.target.classList.add(ie.text__image_hidden)},ht,mt,yt,$t,bt,_t,wt,xt,k,x,w,V,F,D,S,P,N,O,I,M,T,z,B,L,U]}const Jn={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_overflow_visible:"divkit-f315a",container_orientation_vertical:"divkit-ddc33",container_valign_start:"divkit-a31f0",container_valign_center:"divkit-aae61",container_valign_end:"divkit-eac00","container_valign_space-between":"divkit-ce053","container_valign_space-around":"divkit-cf29b","container_valign_space-evenly":"divkit-b4b04",container_halign_start:"divkit-efaf5",container_halign_center:"divkit-bac9d",container_halign_end:"divkit-ca36b","container_halign_space-between":"divkit-e5c38","container_halign_space-around":"divkit-feff2","container_halign_space-evenly":"divkit-e5e05",container_orientation_horizontal:"divkit-fe458",container_orientation_overlap:"divkit-a644d"};function Gn(t){return{top:Number(null==t?void 0:t.top)||0,right:Number(null==t?void 0:t.right)||0,bottom:Number(null==t?void 0:t.bottom)||0,left:Number(null==t?void 0:t.left)||0}}function Kn(t,e,n){const r=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),o=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0);null!=e&&e.show_at_start&&(n?t.top=e.style.height+o:t.left=e.style.width+r),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height+o:t.right=e.style.width+r)}function Xn(t,e,n){let r;const o=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),i=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0),a=((null==n?void 0:n.margins.left)||0)+((null==n?void 0:n.margins.right)||0),s=((null==n?void 0:n.margins.top)||0)+((null==n?void 0:n.margins.bottom)||0);return r="horizontal"===t?[null!=n&&n.show_between?n.style.height+s:0,null!=e&&e.show_between?e.style.width+o:0]:[null!=e&&e.show_between?e.style.height+i:0,null!=n&&n.show_between?n.style.width+a:0],r.map(le).join(" ")}function Yn(t){var e;const n=null===(e=t.width)||void 0===e?void 0:e.type;return"wrap_content"===n||"fixed"===n}function Zn(t){var e;return"match_parent"!==(null===(e=t.height)||void 0===e?void 0:e.type)}function Qn(t,e,n){if(!(t&&t.shape&&t.shape.type&&e.includes(t.shape.type)&&"shape_drawable"===t.type))return n;let r;if("rounded_rectangle"===t.shape.type)r={width:we(null===(i=(o=t.shape).item_width)||void 0===i?void 0:i.value,10),height:we(null===(a=o.item_height)||void 0===a?void 0:a.value,10),radius:we(null===(s=o.corner_radius)||void 0===s?void 0:s.value,5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*we(null===(e=t.radius)||void 0===e?void 0:e.value,10);return{width:n,height:n,radius:n}}(t.shape)}var o,i,a,s;return function(t,e,n){var r;const o={},i=e.stroke||(null==n?void 0:n.stroke),a=null!=i&&i.color?de(i.color):"",s=null!=i&&i.width?Number(null!==(r=i.width)&&void 0!==r?r:1):"";o.width=t.width,o.height=t.height,o.borderRadius=t.radius;const l=e.background_color||(null==n?void 0:n.color);return o.background=de(l),a&&s&&(o.boxShadow="inset 0 0 0 ".concat(le(s)," ").concat(a)),o}(r,t.shape,{color:t.color,stroke:t.stroke})}let tr;function er(){if("undefined"==typeof document&&(tr=!0),void 0!==tr)return tr;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),tr=1===t.scrollHeight,document.body.removeChild(t),tr}const nr={"container-separator":"divkit-a7719","container-separator__item":"divkit-c770e","container-separator__shape":"divkit-f6e9a"},{window:rr}=j;function or(t,e,n){const r=t.slice();return r[16]=e[n],r}function ir(t){let e,n,r,o,i,a="".concat(t[16].style.width,"px"),s="".concat(t[16].style.height,"px"),l="".concat(t[16].style.borderRadius,"px"),c="".concat(t[16].left,"px"),u="".concat(t[16].top,"px"),d="".concat(t[16].width,"px"),p="".concat(t[16].height,"px");return{c(){e=T("div"),n=T("div"),o=B(),W(n,"class",r=nr["container-separator__shape"]),Y(n,"width",a),Y(n,"height",s),Y(n,"border-radius",l),Y(n,"background",t[16].style.background),Y(n,"box-shadow",t[16].style.boxShadow),W(e,"class",i=nr["container-separator__item"]),Y(e,"left",c),Y(e,"top",u),Y(e,"width",d),Y(e,"height",p)},m(t,r){O(t,e,r),S(e,n),S(e,o)},p(t,r){2&r&&a!==(a="".concat(t[16].style.width,"px"))&&Y(n,"width",a),2&r&&s!==(s="".concat(t[16].style.height,"px"))&&Y(n,"height",s),2&r&&l!==(l="".concat(t[16].style.borderRadius,"px"))&&Y(n,"border-radius",l),2&r&&Y(n,"background",t[16].style.background),2&r&&Y(n,"box-shadow",t[16].style.boxShadow),2&r&&c!==(c="".concat(t[16].left,"px"))&&Y(e,"left",c),2&r&&u!==(u="".concat(t[16].top,"px"))&&Y(e,"top",u),2&r&&d!==(d="".concat(t[16].width,"px"))&&Y(e,"width",d),2&r&&p!==(p="".concat(t[16].height,"px"))&&Y(e,"height",p)},d(t){t&&I(e)}}}function ar(t){let e,r,o,i,a=zt(t[1]),s=[];for(let e=0;e<a.length;e+=1)s[e]=ir(or(t,a,e));return{c(){e=T("div");for(let t=0;t<s.length;t+=1)s[t].c();W(e,"class",r=nr["container-separator"])},m(n,r){O(n,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);t[13](e),o||(i=U(rr,"resize",t[2]),o=!0)},p(t,n){let[r]=n;if(2&r){let n;for(a=zt(t[1]),n=0;n<a.length;n+=1){const o=or(t,a,n);s[n]?s[n].p(o,r):(s[n]=ir(o),s[n].c(),s[n].m(e,null))}for(;n<s.length;n+=1)s[n].d(1);s.length=a.length}},i:n,o:n,d(n){n&&I(e),M(s,n),t[13](null),o=!1,i()}}}function sr(t,e,n,r,o,i){const a=e.margins.left,s=e.margins.right,l=e.margins.top,c=e.margins.bottom;i?t.push({top:n.bottom+l,left:o.left+a,width:Math.max(0,o.right-o.left-a-s),height:r.top-n.bottom-l-c,style:e.style}):t.push({top:o.top+l,left:n.right+a,width:r.left-n.right-a-s,height:Math.max(0,o.bottom-o.top-l-c),style:e.style})}function lr(t,e,n,r,o,i){const a={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){let s,l;"space-around"===o||"space-evenly"===o?(s=i.left-e.style.width,l=i.top-e.style.height):(s=n[0].left-e.style.width-e.margins.left-e.margins.right,l=n[0].top-e.style.height-e.margins.top-e.margins.bottom),sr(t,e,{top:0,right:s,bottom:l,left:0},n[0],a,r)}if(null==e?void 0:e.show_between)for(let o=0;o<n.length-1;++o)sr(t,e,n[o],n[o+1],a,r);if(null==e?void 0:e.show_at_end){const s=n[n.length-1];let l,c;"space-around"===o||"space-evenly"===o?(l=i.bottom+e.style.height,c=i.right+e.style.width):(l=s.bottom+e.style.height+e.margins.top+e.margins.bottom,c=s.right+e.style.width+e.margins.left+e.margins.right),sr(t,e,s,{top:l,right:0,bottom:0,left:c},a,r)}}function cr(t,e,n){let r,{orientation:o}=e,{separator:i}=e,{lineSeparator:a}=e,{contentHAlign:s}=e,{contentVAlign:l}=e,{direction:c}=e;const u=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(),e=window.getComputedStyle(r),u={top:t.top+parseFloat(e.paddingTop),right:t.right-parseFloat(e.paddingRight),bottom:t.bottom-parseFloat(e.paddingBottom),left:t.left+parseFloat(e.paddingLeft)};n(1,p=[]);let f=[...r.children].filter((t=>t!==d&&!t.classList.contains(ae.outer__border))),h=[];for(;f.length;){const t=[],e=f.shift();t.push(e);let n=e.getBoundingClientRect(),r=n.left,i=n.right,a=n.bottom;for(;f.length;){let e=f[0],n=e.getBoundingClientRect();if("vertical"===o){if(n.top<a)break}else if("ltr"===c?n.left<i:n.right>r)break;i=Math.max(i,n.right),r=Math.min(r,n.left),a=Math.max(a,n.bottom),t.push(e),f.shift()}h.push(t)}const g=[];h.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)));"rtl"===c&&"horizontal"===o&&e.reverse(),i&&lr(p,i,e,"vertical"===o,"vertical"===o?l:s,u);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)))};g.push(n)})),"rtl"===c&&"vertical"===o&&g.reverse(),a&&lr(p,a,g,"horizontal"===o,"vertical"===o?s:l,u),p.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let d,p=[],f=!1,h=null,g=null;function m(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(nr["container-separator__shape"]))&&!(null==n?void 0:n.contains(nr["container-separator"]))}))&&u()}return lt((()=>{n(9,f=!0)})),ut((()=>{n(9,f=!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),"contentHAlign"in t&&n(6,s=t.contentHAlign),"contentVAlign"in t&&n(7,l=t.contentVAlign),"direction"in t&&n(8,c=t.direction)},t.$$.update=()=>{1&t.$$.dirty&&n(12,r=(null==d?void 0:d.parentElement)||null),7680&t.$$.dirty&&(f&&r||h||g)&&(h&&(h.disconnect(),n(10,h=null)),g&&(g.disconnect(),n(11,g=null)),f&&r&&("undefined"!=typeof MutationObserver&&(n(10,h=new MutationObserver(m)),h.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(11,g=new ResizeObserver(u)),g.observe(r)))),4608&t.$$.dirty&&f&&r&&u()},[d,p,u,o,i,a,s,l,c,f,h,g,r,function(t){gt[t?"unshift":"push"]((()=>{d=t,n(0,d)}))}]}const ur=class extends Zt{constructor(t){super(),Xt(this,t,cr,ar,d,{orientation:3,separator:4,lineSeparator:5,contentHAlign:6,contentVAlign:7,direction:8})}},{Boolean:dr}=j;function pr(t,e,n){const r=t.slice();return r[54]=e[n],r}function fr(t){let e,n;return e=new gs({props:{componentContext:t[54],layoutParams:t[8]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.componentContext=t[54]),256&n[0]&&(r.layoutParams=t[8]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function hr(t){let e,n;return e=new ur({props:{direction:t[11],separator:t[5],lineSeparator:t[6],orientation:t[2],contentHAlign:t[4],contentVAlign:t[3]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.direction=t[11]),32&n[0]&&(r.separator=t[5]),64&n[0]&&(r.lineSeparator=t[6]),4&n[0]&&(r.orientation=t[2]),16&n[0]&&(r.contentHAlign=t[4]),8&n[0]&&(r.contentVAlign=t[3]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function gr(t){let e,n,r,o=zt(t[9]),i=[];for(let e=0;e<o.length;e+=1)i[e]=fr(pr(t,o,e));const a=t=>Ot(i[t],1,1,(()=>{i[t]=null}));let s=(t[5]||t[6])&&hr(t);return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=B(),s&&s.c(),n=L()},m(t,o){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,o);O(t,e,o),s&&s.m(t,o),O(t,n,o),r=!0},p(t,r){if(768&r[0]){let n;for(o=zt(t[9]),n=0;n<o.length;n+=1){const a=pr(t,o,n);i[n]?(i[n].p(a,r),Nt(i[n],1)):(i[n]=fr(a),i[n].c(),Nt(i[n],1),i[n].m(e.parentNode,e))}for(St(),n=o.length;n<i.length;n+=1)a(n);Pt()}t[5]||t[6]?s?(s.p(t,r),96&r[0]&&Nt(s,1)):(s=hr(t),s.c(),Nt(s,1),s.m(n.parentNode,n)):s&&(St(),Ot(s,1,1,(()=>{s=null})),Pt())},i(t){if(!r){for(let t=0;t<o.length;t+=1)Nt(i[t]);Nt(s),r=!0}},o(t){i=i.filter(dr);for(let t=0;t<i.length;t+=1)Ot(i[t]);Ot(s),r=!1},d(t){t&&(I(e),I(n)),M(i,t),s&&s.d(t)}}}function mr(t){let e,n;return e=new bn({props:{cls:Ee("container",Jn,t[13]),componentContext:t[0],layoutParams:t[1],style:t[10],additionalPaddings:t[14],heightByAspect:Boolean(t[7]),parentOf:t[9].map(br),replaceItems:t[27],$$slots:{default:[gr]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Ee("container",Jn,t[13])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),1024&n[0]&&(r.style=t[10]),16384&n[0]&&(r.additionalPaddings=t[14]),128&n[0]&&(r.heightByAspect=Boolean(t[7])),512&n[0]&&(r.parentOf=t[9].map(br)),2940&n[0]|67108864&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}const vr={start:"start",center:"center",end:"end","space-between":"start","space-around":"start","space-evenly":"start"},yr={start:"start",center:"center",end:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},$r=["rounded_rectangle","circle"],br=t=>t.json;function _r(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,M,T=n,z=n,R=n,B=n,L=n,U=n,W=n,H=n,q=n,J=n,G=n,K=n;var X,Y,Z,Q,tt,et,nt;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K()));let{componentContext:rt}=e,{layoutParams:ot}=e;const it=pt(re),at=it.direction;let st;f(t,at,(t=>r(11,D=t)));let lt,ct="vertical",ut="start",dt="start",ft=null,ht=null,gt={},mt=[];return t.$$set=t=>{"componentContext"in t&&r(0,rt=t.componentContext),"layoutParams"in t&&r(1,ot=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(39,o=rt.origJson),256&t.$$.dirty[1]&&o&&(r(2,ct="vertical"),r(3,ut="start"),r(4,dt="start"),r(7,lt=void 0)),1&t.$$.dirty[0]&&r(38,i=rt.json.items),268435457&t.$$.dirty[0]&&(r(25,a=rt.getDerivedFromVars(null===r(28,X=rt.json.item_builder)||void 0===X?void 0:X.data,void 0,!0)),K(),K=p(a,(t=>r(51,M=t)))),1&t.$$.dirty[0]&&(r(24,s=rt.getDerivedFromVars(rt.json.orientation)),G(),G=p(s,(t=>r(50,I=t)))),1&t.$$.dirty[0]&&(r(23,l=rt.getDerivedFromVars(rt.json.layout_mode)),J(),J=p(l,(t=>r(49,O=t)))),1&t.$$.dirty[0]&&(r(22,c=rt.getDerivedFromVars(rt.json.content_alignment_vertical)),H(),H=p(c,(t=>r(47,P=t)))),1&t.$$.dirty[0]&&(r(21,u=rt.getDerivedFromVars(rt.json.content_alignment_horizontal)),W(),W=p(u,(t=>r(46,S=t)))),1&t.$$.dirty[0]&&(r(20,d=rt.getDerivedFromVars(rt.json.separator)),U(),U=p(d,(t=>r(45,F=t)))),1&t.$$.dirty[0]&&(r(19,h=rt.getDerivedFromVars(rt.json.line_separator)),L(),L=p(h,(t=>r(44,V=t)))),1&t.$$.dirty[0]&&(r(18,g=rt.getDerivedFromVars(rt.json.aspect)),B(),B=p(g,(t=>r(43,j=t)))),1&t.$$.dirty[0]&&(r(17,m=rt.getDerivedFromVars(rt.json.width)),z(),z=p(m,(t=>r(41,E=t)))),1&t.$$.dirty[0]&&(r(16,v=rt.getDerivedFromVars(rt.json.height)),R(),R=p(v,(t=>r(42,A=t)))),1&t.$$.dirty[0]&&(r(15,y=rt.getDerivedFromVars(rt.json.clip_to_bounds)),T(),T=p(y,(t=>r(40,C=t)))),1&t.$$.dirty[0]|1048704&t.$$.dirty[1]){let t=[];if(rt.json.item_builder&&Array.isArray(M)&&Array.isArray(rt.json.item_builder.prototypes)){const e=rt.json.item_builder;t=[],M.forEach((n=>{if(null===n||"object"!=typeof n)return;const r=it.preparePrototypeVariables(e.data_element_name||"it",n);let o;for(let t=0;t<e.prototypes.length;++t){const n=e.prototypes[t];if(n.div){if(void 0===n.selector){o=n.div;break}if(rt.getJsonWithVars(n.selector,r)){o=n.div;break}}}o&&t.push({div:o,vars:r})}))}else t=(Array.isArray(i)&&i||[]).map((t=>({div:t})));r(9,mt=t.map(((t,e)=>rt.produceChildContext(t.div,{path:e,variables:t.vars}))))}if(513&t.$$.dirty[0]){let t=[];mt.forEach((e=>{t.push(rt.getDerivedFromVars({width:e.json.width,height:e.json.height}))})),r(12,st=ee(t,(t=>[...t]))),q(),q=p(st,(t=>r(48,N=t)))}if(4&t.$$.dirty[0]|524288&t.$$.dirty[1]&&r(2,ct=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(I,ct)),262144&t.$$.dirty[1]&&r(35,$="wrap"===O),4&t.$$.dirty[0]|131088&t.$$.dirty[1]&&r(36,b="horizontal"!==ct&&!$&&N.some(Yn)),4&t.$$.dirty[0]|131088&t.$$.dirty[1]&&r(37,_="vertical"!==ct&&!$&&N.some(Zn)),8&t.$$.dirty[0]|65536&t.$$.dirty[1]&&r(3,ut=function(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?"top"===t?"start":"bottom"===t?"end":t:e}(P,ut)),2064&t.$$.dirty[0]|32768&t.$$.dirty[1]&&r(4,dt=function(t,e,n){return"left"===t||"center"===t||"right"===t||"space-between"===t||"space-around"===t||"space-evenly"===t||"start"===t||"end"===t?"left"===t?"ltr"===e?"start":"end":"right"===t?"ltr"===e?"end":"start":t:n}(S,D,dt)),1610612772&t.$$.dirty[0]|16385&t.$$.dirty[1])if((null==F?void 0:F.style)&&"overlap"!==ct&&er()){const t=Qn(F.style,$r,(null==ft?void 0:ft.style)||null);r(5,ft=t?{show_at_start:Boolean(null!==r(29,Y=F.show_at_start)&&void 0!==Y&&Y),show_at_end:Boolean(null!==r(30,Z=F.show_at_end)&&void 0!==Z&&Z),show_between:Boolean(null===r(31,Q=F.show_between)||void 0===Q||Q),style:t,margins:Gn(F.margins)}:null)}else r(5,ft=null);if(68&t.$$.dirty[0]|8206&t.$$.dirty[1])if((null==V?void 0:V.style)&&"overlap"!==ct&&er()){const t=Qn(V.style,$r,(null==ht?void 0:ht.style)||null);r(6,ht=t?{show_at_start:Boolean(null!==r(32,tt=V.show_at_start)&&void 0!==tt&&tt),show_at_end:Boolean(null!==r(33,et=V.show_at_end)&&void 0!==et&&et),show_between:Boolean(null===r(34,nt=V.show_between)||void 0===nt||nt),style:t,margins:Gn(V.margins)}:null)}else r(6,ht=null);if(100&t.$$.dirty[0]&&r(14,w=ft||ht?function(t,e,n){const r={};return Kn(r,e,"vertical"===t),Kn(r,n,"horizontal"===t),r}(ct,ft,ht):null),4096&t.$$.dirty[1]){const t=null==j?void 0:j.ratio;t&&Ze(t)?r(7,lt=t):r(7,lt=void 0)}if(414&t.$$.dirty[0]|3184&t.$$.dirty[1]){let t={};"overlap"===ct&&(t.overlapParent=!0),"horizontal"!==ct&&(t.parentHAlign=$?"start":vr[dt]),"vertical"!==ct&&(t.parentVAlign=$?"start":yr[ut]),lt||_||A&&"wrap_content"!==A.type&&("match_parent"!==A.type||!(null==ot?void 0:ot.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0),!b&&("wrap_content"===(null==E?void 0:E.type)||"match_parent"===(null==E?void 0:E.type)&&(null==ot?void 0:ot.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0),"horizontal"===ct&&(t.parentContainerOrientation="horizontal"),"vertical"===ct&&(t.parentContainerOrientation="vertical"),$&&(t.parentContainerWrap=!0),r(8,gt=Ne(t,gt))}28&t.$$.dirty[0]|528&t.$$.dirty[1]&&r(13,x={orientation:ct,valign:ut,halign:dt,wrap:$,overflow:!1===C||0===C?"visible":void 0}),228&t.$$.dirty[0]&&r(10,k={gap:ft||ht?Xn(ct,ft,ht):void 0,"aspect-ratio":lt})},[rt,ot,ct,ut,dt,ft,ht,lt,gt,mt,k,D,st,x,w,y,v,m,g,h,d,u,c,l,s,a,at,function(t){r(0,rt=Object.assign(Object.assign({},rt),{json:Object.assign(Object.assign({},rt.json),{items:t.filter(he)})}))},X,Y,Z,Q,tt,et,nt,$,b,_,i,o,C,E,A,j,V,F,S,P,N,O,I,M]}const wr={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function xr(t,e){return"vertical"===t||"horizontal"===t?t:e}function kr(t){let e,n,r;return{c(){e=T("span"),W(e,"class",n=wr.separator__inner),W(e,"style",r=se(t[3]))},m(t,n){O(t,e,n)},p(t,n){8&n&&r!==(r=se(t[3]))&&W(e,"style",r)},d(t){t&&I(e)}}}function Cr(t){let e,n=t[4]&&kr(t);return{c(){n&&n.c(),e=L()},m(t,r){n&&n.m(t,r),O(t,e,r)},p(t,r){t[4]?n?n.p(t,r):(n=kr(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&I(e),n&&n.d(t)}}}function Er(t){let e,n;return e=new bn({props:{cls:Ee("separator",wr,t[2]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[Cr]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){let[r]=n;const o={};4&r&&(o.cls=Ee("separator",wr,t[2])),1&r&&(o.componentContext=t[0]),2&r&&(o.layoutParams=t[1]),8216&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Ar(t,e,r){let o,i,a,s,l,c,u,d,f=n;t.$$.on_destroy.push((()=>f()));let{componentContext:h}=e,{layoutParams:g}=e,m="horizontal",v="rgba(0,0,0,0.08)";return t.$$set=t=>{"componentContext"in t&&r(0,h=t.componentContext),"layoutParams"in t&&r(1,g=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&r(10,o=h.origJson),1024&t.$$.dirty&&o&&(r(6,m="horizontal"),r(7,v="rgba(0,0,0,0.08)")),1&t.$$.dirty&&(r(5,i=h.getDerivedFromVars(h.json.delimiter_style)),f(),f=p(i,(t=>r(11,d=t)))),2112&t.$$.dirty&&r(6,m=xr(null==d?void 0:d.orientation,m)),2048&t.$$.dirty&&r(4,a=!((null==d?void 0:d.color)&&("transparent"===d.color||9===d.color.length&&0===d.color.indexOf("#00")))),2176&t.$$.dirty&&r(7,v=de(null==d?void 0:d.color,1,v)),64&t.$$.dirty&&r(9,s="horizontal"===m?"100%":le(1)),64&t.$$.dirty&&r(8,l="horizontal"===m?le(1):"100%"),896&t.$$.dirty&&r(3,c={background:v,width:s,height:l}),64&t.$$.dirty&&r(2,u={orientation:m})},[h,g,u,c,a,i,m,v,l,s,o,d]}const jr={image:"divkit-a448f","image_is-width-content":"divkit-fe14a","image_is-height-content":"divkit-f4d92",image__image:"divkit-ce046",image_error:"divkit-f10d9","image_is-rtl-mirror":"divkit-ae78c","image__aspect-wrapper":"divkit-dc808",image_aspect:"divkit-ae784",image_loaded:"divkit-cf4e0","divkit-image-appearance":"divkit-e555f","image_before-appearance":"divkit-ffe8a"};function Vr(t){return t.startsWith("data:")?fe(t):"data:image/jpg;base64,".concat(fe(t))}function Fr(t){let e,n;return e=new bn({props:{cls:Ee("image",jr,t[9]),componentContext:t[0],layoutParams:t[1],customDescription:!0,$$slots:{default:[Nr]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.cls=Ee("image",jr,t[9])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),67110780&n[0]|64&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Dr(t){let e,n,r,o,i,a,l,c;return{c(){e=T("img"),W(e,"class",n=jr.image__image),u(e.src,r=t[3]===Mr?Ir:t[4])||W(e,"src",r),W(e,"loading",o=t[26]?"eager":"lazy"),W(e,"decoding","async"),W(e,"style",i=se(t[8])),W(e,"alt",t[10]),W(e,"aria-hidden",a=t[10]?null:"true")},m(n,r){O(n,e,r),t[63](e),l||(c=[U(e,"load",t[28]),U(e,"error",t[29])],l=!0)},p(t,n){24&n[0]&&!u(e.src,r=t[3]===Mr?Ir:t[4])&&W(e,"src",r),67108864&n[0]&&o!==(o=t[26]?"eager":"lazy")&&W(e,"loading",o),256&n[0]&&i!==(i=se(t[8]))&&W(e,"style",i),1024&n[0]&&W(e,"alt",t[10]),1024&n[0]&&a!==(a=t[10]?null:"true")&&W(e,"aria-hidden",a)},d(n){n&&I(e),t[63](null),l=!1,s(c)}}}function Sr(t){let e,n,r,o,i,a,l,c,d,p,f="".concat(t[5],"%");return{c(){e=T("span"),n=T("img"),W(n,"class",r=jr.image__image),u(n.src,o=t[3]===Mr?Ir:t[4])||W(n,"src",o),W(n,"loading",i=t[26]?"eager":"lazy"),W(n,"decoding","async"),W(n,"style",a=se(t[8])),W(n,"alt",t[10]),W(n,"aria-hidden",l=t[10]?null:"true"),W(e,"class",c=jr["image__aspect-wrapper"]),Y(e,"padding-bottom",f)},m(r,o){O(r,e,o),S(e,n),t[62](n),d||(p=[U(n,"load",t[28]),U(n,"error",t[29])],d=!0)},p(t,r){24&r[0]&&!u(n.src,o=t[3]===Mr?Ir:t[4])&&W(n,"src",o),67108864&r[0]&&i!==(i=t[26]?"eager":"lazy")&&W(n,"loading",i),256&r[0]&&a!==(a=se(t[8]))&&W(n,"style",a),1024&r[0]&&W(n,"alt",t[10]),1024&r[0]&&l!==(l=t[10]?null:"true")&&W(n,"aria-hidden",l),32&r[0]&&f!==(f="".concat(t[5],"%"))&&Y(e,"padding-bottom",f)},d(n){n&&I(e),t[62](null),d=!1,s(p)}}}function Pr(t){let e;function n(t,e){return t[9].aspect?Sr:Dr}let r=n(t),o=r(t);return{c(){o.c(),e=L()},m(t,n){o.m(t,n),O(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){t&&I(e),o.d(t)}}}function Nr(t){let e,n=t[6],r=Pr(t);return{c(){r.c(),e=L()},m(t,n){r.m(t,n),O(t,e,n)},p(t,o){64&o[0]&&d(n,n=t[6])?(r.d(1),r=Pr(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&I(e),r.d(t)}}}function Or(t){let e,n,r=!t[7]&&Fr(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[7]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),128&n[0]&&Nt(r,1)):(r=Fr(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}const Ir="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Mr=2;function Tr(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,M,T,z,R,B,L,U=n,W=n,H=n,q=n,J=n,G=n,K=n,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n;t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),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()));let{componentContext:ot}=e,{layoutParams:it}=e;const at=pt(re),st=at.direction;let lt;f(t,st,(t=>r(48,j=t)));let ct,dt,ft=0,ht=!1,mt="rgba(0,0,0,0.08)",vt=!1,yt="",$t="none",bt="50% 50%",_t="0",wt="source_in",xt="",kt="",Ct=0,Et=0,At=0,jt="",Vt="",Ft=!1;return ut((()=>{at.removeSvgFilter(dt,wt)})),t.$$set=t=>{"componentContext"in t&&r(0,ot=t.componentContext),"layoutParams"in t&&r(1,it=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(46,o=ot.origJson),32768&t.$$.dirty[1]&&o&&(r(33,$t="none"),r(34,bt="50% 50%"),r(36,wt="source_in")),1&t.$$.dirty[0]&&(r(25,i=ot.getDerivedFromVars(ot.json.image_url)),et(),et=p(i,(t=>r(60,R=t)))),1&t.$$.dirty[0]&&(r(24,a=ot.getDerivedFromVars(ot.json.gif_url)),nt(),nt=p(a,(t=>r(61,B=t)))),1&t.$$.dirty[0]&&(r(23,s=ot.getDerivedFromVars(ot.json.width)),tt(),tt=p(s,(t=>r(59,z=t)))),1&t.$$.dirty[0]&&(r(22,l=ot.getDerivedFromVars(ot.json.height)),Q(),Q=p(l,(t=>r(58,T=t)))),1&t.$$.dirty[0]&&(r(21,c=ot.getDerivedFromVars(ot.json.preview)),Z(),Z=p(c,(t=>r(57,M=t)))),1&t.$$.dirty[0]&&(r(20,u=ot.getDerivedFromVars(ot.json.placeholder_color)),Y(),Y=p(u,(t=>r(56,I=t)))),1&t.$$.dirty[0]&&(r(19,d=ot.getDerivedFromVars(ot.json.scale)),X(),X=p(d,(t=>r(55,O=t)))),1&t.$$.dirty[0]&&(r(18,h=ot.getDerivedFromVars({content_alignment_horizontal:ot.json.content_alignment_horizontal,content_alignment_vertical:ot.json.content_alignment_vertical})),K(),K=p(h,(t=>r(54,N=t)))),1&t.$$.dirty[0]&&(r(17,g=ot.getDerivedFromVars(ot.json.accessibility)),G(),G=p(g,(t=>r(53,P=t)))),1&t.$$.dirty[0]&&(r(16,m=ot.getDerivedFromVars(ot.json.aspect)),J(),J=p(m,(t=>r(52,S=t)))),1&t.$$.dirty[0]&&(r(15,v=ot.getDerivedFromVars(ot.json.tint_color)),q(),q=p(v,(t=>r(51,D=t)))),1&t.$$.dirty[0]&&(r(14,y=ot.getDerivedFromVars(ot.json.tint_mode)),H(),H=p(y,(t=>r(50,F=t)))),1&t.$$.dirty[0]&&(r(13,$=ot.getDerivedFromVars(ot.json.appearance_animation)),W(),W=p($,(t=>r(49,V=t)))),1&t.$$.dirty[0]&&(r(12,b=ot.getDerivedFromVars(ot.json.filters)),U(),U=p(b,(t=>r(47,A=t)))),1&t.$$.dirty[0]&&(r(11,_=ot.getDerivedFromVars(ot.json.preload_required)),rt(),rt=p(_,(t=>r(26,L=t)))),1073741825&t.$$.dirty[0]|1610612736&t.$$.dirty[1]){let t="gif"===ot.json.type?B:R;r(30,ht="empty://"===t),ht&&(t=Ir),r(4,ct=t)}if(16&t.$$.dirty[0]&&r(3,ft=0),17&t.$$.dirty[0]&&(ct?r(7,vt=!1):(r(7,vt=!0),ot.logError(oe(new Error('Missing "'.concat("gif"===ot.json.type?"gif_url":"image_url",'" for "').concat(ot.json.type,'"')))))),268435456&t.$$.dirty[1]&&r(45,w="wrap_content"===(null==z?void 0:z.type)),134217728&t.$$.dirty[1]&&r(44,x="wrap_content"===(null==T?void 0:T.type)),1073741832&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&r(32,yt=(0===ft||ft===Mr||ht)&&M?'url("'.concat(Vr(M),'")'):""),1073741832&t.$$.dirty[0]|33554433&t.$$.dirty[1]&&r(31,mt=0===ft||ft===Mr||ht?de(I,1,mt):""),16777220&t.$$.dirty[1]&&r(33,$t=ye(O)||$t),8388608&t.$$.dirty[1]&&r(34,bt=function(t,e,n){let r=t.content_alignment_horizontal;const o=t.content_alignment_vertical;return"start"===r?r="ltr"===e?"left":"right":"end"===r&&(r="ltr"===e?"right":"left"),r&&"left"!==r&&"center"!==r&&"right"!==r||o&&"top"!==o&&"center"!==o&&"bottom"!==o?n:$e({content_alignment_horizontal:r,content_alignment_vertical:o})}(N,j,bt)),4194304&t.$$.dirty[1]&&r(10,k=(null==P?void 0:P.description)||""),2097152&t.$$.dirty[1]){const t=null==S?void 0:S.ratio;t&&Ze(t)?r(5,_t=(100/Number(t)).toFixed(2)):r(5,_t="0")}if(1572912&t.$$.dirty[1]){const t=D?de(D):void 0,e=Pn(F,wt);t===dt&&e===wt||(at.removeSvgFilter(dt,wt),r(6,xt=t?at.addSvgFilter(t,e):""),r(35,dt=t),r(36,wt=e))}if(262144&t.$$.dirty[1]&&V&&"fade"===V.type){const t=V;r(37,kt=Oe(t.interpolator,"ease_in_out").replace(/_/g,"-")),r(40,At=we(t.duration,300)),r(39,Et=we(t.start_delay,0)),r(38,Ct=we(t.alpha,0))}if(1&t.$$.dirty[0]|196608&t.$$.dirty[1]){let t="",e="";Array.isArray(A)&&A.length&&(t=Qe(A,ot.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),r(41,jt=t),r(42,Vt=e),r(43,Ft="rtl"===j&&Array.isArray(A)&&A.some((t=>"rtl_mirror"===t.type)))}40&t.$$.dirty[0]|28736&t.$$.dirty[1]&&r(9,C={aspect:"0"!==_t,"is-width-content":w,"is-height-content":x,loaded:1===ft,"before-appearance":Boolean(kt)&&0===ft,"is-rtl-mirror":Ft}),72&t.$$.dirty[0]|4047&t.$$.dirty[1]&&r(8,E={"background-image":yt,"background-color":yt?void 0:mt,"background-size":$t,"clip-path":Vt||void 0,"object-fit":$t,"object-position":bt,filter:[1===ft&&xt?"url(#".concat(xt,")"):"",jt].filter(Boolean).join(" "),"--divkit-appearance-interpolator":kt||void 0,"--divkit-appearance-fade-start":kt?Ct:void 0,"--divkit-appearance-delay":kt?"".concat(Et,"ms"):void 0,"--divkit-appearance-duration":kt?"".concat(At,"ms"):void 0})},[ot,it,lt,ft,ct,_t,xt,vt,E,C,k,_,b,$,y,v,m,g,h,d,u,c,l,s,a,i,L,st,function(){0===ft&&r(3,ft=1)},function(){0===ft&&r(3,ft=Mr)},ht,mt,yt,$t,bt,dt,wt,kt,Ct,Et,At,jt,Vt,Ft,x,w,o,A,j,V,F,D,S,P,N,O,I,M,T,z,R,B,function(t){gt[t?"unshift":"push"]((()=>{lt=t,r(2,lt),r(0,ot),r(61,B),r(60,R),r(30,ht)}))},function(t){gt[t?"unshift":"push"]((()=>{lt=t,r(2,lt),r(0,ot),r(61,B),r(60,R),r(30,ht)}))}]}const zr=class extends Zt{constructor(t){super(),Xt(this,t,Tr,Or,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Rr={grid:"divkit-d9080",grid_halign_start:"divkit-fc24d",grid_halign_center:"divkit-a14a6",grid_halign_end:"divkit-cfd04",grid_valign_start:"divkit-c3106",grid_valign_center:"divkit-d4310",grid_valign_end:"divkit-fa9cf"};function Br(t){return t>0&&t<1}function Lr(t){return String(Math.ceil(1e3*t)/1e3)}function Ur(t,e,n){if(t.some(Br)){const e=Math.max(...t.filter(Br).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(le(r*t[e]/o),",").concat(Lr(t[e]),"fr)"):t[e]?i[e]="".concat(Lr(t[e]),"fr"):i[e]="auto";return i.join(" ")}function Wr(t,e,n){const r=t.slice();return r[31]=e[n],r}function Hr(t){let e,n;return e=new bn({props:{cls:Ee("grid",Rr,t[7]),componentContext:t[0],style:t[6],layoutParams:t[1],parentOf:t[2].map(Kr),replaceItems:t[12],$$slots:{default:[Jr]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.cls=Ee("grid",Rr,t[7])),1&n[0]&&(r.componentContext=t[0]),64&n[0]&&(r.style=t[6]),2&n[0]&&(r.layoutParams=t[1]),4&n[0]&&(r.parentOf=t[2].map(Kr)),16&n[0]|8&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function qr(t){let e,n;return e=new gs({props:{componentContext:t[31].componentContext,layoutParams:t[31].layoutParams}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.componentContext=t[31].componentContext),16&n[0]&&(r.layoutParams=t[31].layoutParams),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Jr(t){let e,n,r=zt(t[4]),o=[];for(let e=0;e<r.length;e+=1)o[e]=qr(Wr(t,r,e));const i=t=>Ot(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=L()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);O(t,e,r),n=!0},p(t,n){if(16&n[0]){let a;for(r=zt(t[4]),a=0;a<r.length;a+=1){const i=Wr(t,r,a);o[a]?(o[a].p(i,n),Nt(o[a],1)):(o[a]=qr(i),o[a].c(),Nt(o[a],1),o[a].m(e.parentNode,e))}for(St(),a=r.length;a<o.length;a+=1)i(a);Pt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Nt(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Ot(o[t]);n=!1},d(t){t&&I(e),M(o,t)}}}function Gr(t){let e,n,r=!t[5]&&Hr(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[5]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),32&n[0]&&Nt(r,1)):(r=Hr(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}const Kr=t=>t.json;function Xr(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b=n,_=n,w=n,x=n;t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x()));let{componentContext:k}=e,{layoutParams:C}=e;const E=pt(re).direction;f(t,E,(t=>r(24,g=t)));let A,j,V=1,F=[],D=[],S=[],P=[],N=0,O=!1,I="start",M="start";return t.$$set=t=>{"componentContext"in t&&r(0,k=t.componentContext),"layoutParams"in t&&r(1,C=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(23,o=k.origJson),8388608&t.$$.dirty[0]&&o&&(r(13,V=1),r(20,I="start"),r(21,M="start")),1&t.$$.dirty[0]&&r(22,i=Array.isArray(k.json.items)&&k.json.items||[]),1&t.$$.dirty[0]&&(r(10,a=k.getDerivedFromVars(k.json.column_count)),x(),x=p(a,(t=>r(28,$=t)))),1&t.$$.dirty[0]&&(r(9,s=k.getDerivedFromVars(k.json.content_alignment_vertical)),_(),_=p(s,(t=>r(26,v=t)))),1&t.$$.dirty[0]&&(r(8,l=k.getDerivedFromVars(k.json.content_alignment_horizontal)),b(),b=p(l,(t=>r(25,m=t)))),268443648&t.$$.dirty[0]&&r(13,V=wn($,V)),4194305&t.$$.dirty[0]&&r(2,c=i.map(((t,e)=>k.produceChildContext(t,{path:e})))),5&t.$$.dirty[0]){let t=[];c.forEach((e=>{t.push(k.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),r(3,A=ee(t,(t=>[...t]))),w(),w=p(A,(t=>r(27,y=t)))}if(134471685&t.$$.dirty[0]){const t={};let e=0,n=0;r(14,F=[]),r(15,D=[]),r(16,S=[]),r(17,P=[]),r(19,O=!1),r(4,j=c.map(((o,i)=>{var a,s,l,c;const u=y[i],d=Number(u.columnSpan)||1,p=Number(u.rowSpan)||1,f={x:e,y:n,colSpan:d,rowSpan:p},h="match_parent"===(null===(a=u.width)||void 0===a?void 0:a.type)?Number(u.width.weight||1)/d:0,g="match_parent"===(null===(s=u.height)||void 0===s?void 0:s.type)?Number(u.height.weight||1)/p:0,m=1===d&&"fixed"===(null===(l=u.width)||void 0===l?void 0:l.type)&&u.width.value?Number(u.width.value)/d:0,v=1===p&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/p:0;for(let o=e;o<e+d;++o)for(let e=n;e<n+p;++e)t[o+"_"+e]?(r(19,O=!0),k.logError(oe(new Error("No space for item at index ".concat(i))))):(t[o+"_"+e]=!0,(!F[o]||F[o]<h)&&r(14,F[o]=h,F),(!D[e]||D[e]<g)&&r(15,D[e]=g,D),(!S[o]||S[o]<m)&&r(16,S[o]=m,S),(!P[e]||P[e]<v)&&r(17,P[e]=v,P));do{++e,e>=V&&(e=0,++n)}while(t[e+"_"+n]);return{componentContext:o,layoutParams:{gridArea:f}}}))),r(18,N=n)}68157440&t.$$.dirty[0]&&r(20,I=Dn(v,I)),52428800&t.$$.dirty[0]&&r(21,M=Fn(m,g,M)),3145728&t.$$.dirty[0]&&r(7,u={valign:I,halign:M}),516096&t.$$.dirty[0]&&r(6,d={"grid-template-columns":Ur(F,S,V),"grid-template-rows":Ur(D,P,N)}),524288&t.$$.dirty[0]&&r(5,h=O)},[k,C,c,A,j,h,d,u,l,s,a,E,function(t){r(0,k=Object.assign(Object.assign({},k),{json:Object.assign(Object.assign({},k.json),{items:t.filter(he)})}))},V,F,D,S,P,N,O,I,M,i,o,g,m,v,y,$]}const Yr={gallery:"divkit-cbb0f",gallery__scroller:"divkit-a4e39",gallery_scrollbar_none:"divkit-f49e7",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon-path":"divkit-b4173"},Zr={arrow:"divkit-bf36b",arrow__icon:"divkit-a67bf",arrow_left:"divkit-e2a31",arrow_right:"divkit-c684b"};function Qr(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 to(t,e){let n=t%e;return n<0&&(n+=e),n}const{Boolean:eo}=j;function no(t,e,n){const r=t.slice();return r[78]=e[n],r[79]=e,r[80]=n,r}function ro(t,e,n){const r=t.slice();return r[81]=e[n],r}function oo(t){let e,n;return e=new gs({props:{componentContext:t[81],layoutParams:t[6]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.componentContext=t[81]),64&n[0]&&(r.layoutParams=t[6]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function io(t){let e,n,r,o,i,a=t[80],s=zt(t[78]),l=[];for(let e=0;e<s.length;e+=1)l[e]=oo(ro(t,s,e));const c=t=>Ot(l[t],1,1,(()=>{l[t]=null})),u=()=>t[64](e,a),d=()=>t[64](null,a);return{c(){e=T("div");for(let t=0;t<l.length;t+=1)l[t].c();n=B(),W(e,"class",r=Yr.gallery__items),W(e,"style",o=se(t[14]))},m(t,r){O(t,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);S(e,n),u(),i=!0},p(r,p){if(t=r,65600&p[0]){let r;for(s=zt(t[78]),r=0;r<s.length;r+=1){const o=ro(t,s,r);l[r]?(l[r].p(o,p),Nt(l[r],1)):(l[r]=oo(o),l[r].c(),Nt(l[r],1),l[r].m(e,n))}for(St(),r=s.length;r<l.length;r+=1)c(r);Pt()}(!i||16384&p[0]&&o!==(o=se(t[14])))&&W(e,"style",o),a!==t[80]&&(d(),a=t[80],u())},i(t){if(!i){for(let t=0;t<s.length;t+=1)Nt(l[t]);i=!0}},o(t){l=l.filter(eo);for(let t=0;t<l.length;t+=1)Ot(l[t]);i=!1},d(t){t&&I(e),M(l,t),d()}}}function ao(t){let e,n,r=t[10]&&t[7]&&so(t),o=t[11]&&t[7]&&lo(t);return{c(){r&&r.c(),e=B(),o&&o.c(),n=L()},m(t,i){r&&r.m(t,i),O(t,e,i),o&&o.m(t,i),O(t,n,i)},p(t,i){t[10]&&t[7]?r?r.p(t,i):(r=so(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[11]&&t[7]?o?o.p(t,i):(o=lo(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){t&&(I(e),I(n)),r&&r.d(t),o&&o.d(t)}}}function so(t){let e,r,o,i,a=!t[29]&&function(t){let e,n,r,o;return{c(){e=z("svg"),n=z("path"),W(n,"class",r=Yr["gallery__arrow-icon-path"]),W(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),W(e,"class",o=Zr.arrow__icon),W(e,"xmlns","http://www.w3.org/2000/svg"),W(e,"width","32"),W(e,"height","32"),W(e,"viewBox","0 0 32 32"),W(e,"fill","none")},m(t,r){O(t,e,r),S(e,n)},d(t){t&&I(e)}}}();return{c(){e=T("div"),a&&a.c(),W(e,"class",r=t[29]||"".concat(Yr.gallery__arrow," ").concat(Zr.arrow," ").concat(Zr.arrow_left))},m(n,r){O(n,e,r),a&&a.m(e,null),o||(i=U(e,"click",t[67]),o=!0)},p:n,d(t){t&&I(e),a&&a.d(),o=!1,i()}}}function lo(t){let e,r,o,i,a=!t[30]&&function(t){let e,n,r,o;return{c(){e=z("svg"),n=z("path"),W(n,"class",r=Yr["gallery__arrow-icon-path"]),W(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),W(e,"class",o=Zr.arrow__icon),W(e,"xmlns","http://www.w3.org/2000/svg"),W(e,"width","32"),W(e,"height","32"),W(e,"viewBox","0 0 32 32"),W(e,"fill","none")},m(t,r){O(t,e,r),S(e,n)},d(t){t&&I(e)}}}();return{c(){e=T("div"),a&&a.c(),W(e,"class",r=t[30]||"".concat(Yr.gallery__arrow," ").concat(Zr.arrow," ").concat(Zr.arrow_right))},m(n,r){O(n,e,r),a&&a.m(e,null),o||(i=U(e,"click",t[68]),o=!0)},p:n,d(t){t&&I(e),a&&a.d(),o=!1,i()}}}function co(t){let e,n,r,o,i,a,s,c,u,d,p,f=zt(t[16]),h=[];for(let e=0;e<f.length;e+=1)h[e]=io(no(t,f,e));const g=t=>Ot(h[t],1,1,(()=>{h[t]=null}));let m="horizontal"===t[4]&&ao(t);return{c(){e=T("div"),n=T("div");for(let t=0;t<h.length;t+=1)h[t].c();s=B(),m&&m.c(),c=L(),W(n,"class",r=Yr["gallery__items-grid"]),W(n,"style",o=se(t[15])),W(e,"class",i=Yr.gallery__scroller+" "+(t[27]?ne["root_restrict-scroll"]:"")),W(e,"style",a=se(t[5]))},m(r,o){O(r,e,o),S(e,n);for(let t=0;t<h.length;t+=1)h[t]&&h[t].m(n,null);t[65](n),t[66](e),O(r,s,o),m&&m.m(r,o),O(r,c,o),u=!0,d||(p=U(e,"scroll",(function(){l(t[7]?t[33]:null)&&(t[7]?t[33]:null).apply(this,arguments)})),d=!0)},p(r,s){if(t=r,82496&s[0]){let e;for(f=zt(t[16]),e=0;e<f.length;e+=1){const r=no(t,f,e);h[e]?(h[e].p(r,s),Nt(h[e],1)):(h[e]=io(r),h[e].c(),Nt(h[e],1),h[e].m(n,null))}for(St(),e=f.length;e<h.length;e+=1)g(e);Pt()}(!u||32768&s[0]&&o!==(o=se(t[15])))&&W(n,"style",o),(!u||134217728&s[0]&&i!==(i=Yr.gallery__scroller+" "+(t[27]?ne["root_restrict-scroll"]:"")))&&W(e,"class",i),(!u||32&s[0]&&a!==(a=se(t[5])))&&W(e,"style",a),"horizontal"===t[4]?m?m.p(t,s):(m=ao(t),m.c(),m.m(c.parentNode,c)):m&&(m.d(1),m=null)},i(t){if(!u){for(let t=0;t<f.length;t+=1)Nt(h[t]);u=!0}},o(t){h=h.filter(eo);for(let t=0;t<h.length;t+=1)Ot(h[t]);u=!1},d(n){n&&(I(e),I(s),I(c)),M(h,n),t[65](null),t[66](null),m&&m.d(n),d=!1,p()}}}function uo(t){let e,n,r,o;return e=new bn({props:{cls:Ee("gallery",Yr,t[13]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,customActions:"gallery",parentOf:t[8],replaceItems:t[31],$$slots:{default:[co]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(i,a){Gt(e,i,a),n=!0,r||(o=U(window,"resize",(function(){l(t[7]?t[34]:null)&&(t[7]?t[34]:null).apply(this,arguments)})),r=!0)},p(n,r){t=n;const o={};8192&r[0]&&(o.cls=Ee("gallery",Yr,t[13])),1&r[0]&&(o.componentContext=t[0]),2&r[0]&&(o.layoutParams=t[1]),256&r[0]&&(o.parentOf=t[8]),134336252&r[0]|4194304&r[2]&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t),r=!1,o()}}}function po(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,M,T=n,z=n,R=n,B=n,L=n,U=n,W=n,H=n,q=n,J=n,G=n;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G()));let{componentContext:K}=e,{layoutParams:X}=e;const Y=pt(re),Z=Y.direction;let Q;f(t,Z,(t=>r(52,C=t)));let tt,et=[],nt=!1,rt=!1,ot=null,it=!1;const at=Y.getCustomization("galleryLeftClass"),st=Y.getCustomization("galleryRightClass");let ct,dt,ft,ht,mt,vt=1,yt="horizontal",$t="start",bt=8,_t="",wt=[],xt={},kt=!1,Ct={},Et=0;const At=Y.isDesktop;function jt(){if(!Q)return;let t=Q.scrollLeft;"rtl"===C&&(t*=-1);const e=Q.scrollWidth,n=Q.offsetWidth;"ltr"===C?(r(10,nt=t>2),r(11,rt=t+n<e-2)):(r(11,rt=t>2),r(10,nt=t+n<e-2))}f(t,At,(t=>r(63,I=t)));const Vt=Nn(jt,50);function Ft(t){Q.scroll({left:Q.scrollLeft+.75*Q.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function Dt(){let t=[],e=et[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<vt;++e){const r=et[e].children[n];r&&t.push(r)}return t}function St(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===yt?"left":"top";Q.scroll({[n]:t,behavior:e})}function Pt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===yt,o=r?"offsetLeft":"offsetTop",i=t[e];if(i){let t;if("ltr"!==C&&r){const e=Q.offsetWidth;t=i[o]+i.offsetWidth+.01-bt/2-e}else t=i[o]+.01-bt/2;St(t,n)}}function Nt(t){const e=Dt(),n=Q.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===yt?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"===yt?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 lt((()=>{r(37,it=!0),jt(),Et&&Pt(Dt(),Et,"auto")})),ut((()=>{r(37,it=!1),ct&&!K.fakeElement&&(Y.unregisterInstance(ct),r(38,ct=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,K=t.componentContext),"layoutParams"in t&&r(1,X=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(51,o=K.origJson),1048576&t.$$.dirty[1]&&o&&(r(39,vt=1),r(4,yt="horizontal"),r(40,$t="start"),r(42,bt=8),r(45,_t="")),1&t.$$.dirty[0]&&r(8,i=Array.isArray(K.json.items)&&K.json.items||[]),1&t.$$.dirty[0]&&(r(26,a=K.getDerivedFromVars(K.json.column_count)),J(),J=p(a,(t=>r(62,O=t)))),1&t.$$.dirty[0]&&(r(25,s=K.getDerivedFromVars(K.json.orientation)),q(),q=p(s,(t=>r(61,N=t)))),1&t.$$.dirty[0]&&(r(24,l=K.getDerivedFromVars(K.json.cross_content_alignment)),H(),H=p(l,(t=>r(60,P=t)))),1&t.$$.dirty[0]&&(r(23,c=K.getDerivedFromVars(K.json.item_spacing)),W(),W=p(c,(t=>r(59,S=t)))),1&t.$$.dirty[0]&&(r(22,u=K.getDerivedFromVars(K.json.cross_spacing)),U(),U=p(u,(t=>r(58,D=t)))),1&t.$$.dirty[0]&&(r(21,d=K.getDerivedFromVars(K.json.paddings)),L(),L=p(d,(t=>r(57,F=t)))),1&t.$$.dirty[0]&&(r(20,h=K.getDerivedFromVars(K.json.scroll_mode)),R(),R=p(h,(t=>r(55,j=t)))),1&t.$$.dirty[0]&&(r(19,g=K.getDerivedFromVars(K.json.restrict_parent_scroll)),G(),G=p(g,(t=>r(27,M=t)))),1&t.$$.dirty[0]&&(r(18,m=K.getDerivedFromVars(K.json.scrollbar)),z(),z=p(m,(t=>r(54,A=t)))),1&t.$$.dirty[0]&&(r(17,v=K.getDerivedFromVars(K.json.default_item)),T(),T=p(v,(t=>r(53,E=t)))),257&t.$$.dirty[0]&&r(50,y=i.map(((t,e)=>K.produceChildContext(t,{path:e})))),64&t.$$.dirty[1]|2&t.$$.dirty[2]&&r(7,$=I&&it),136&t.$$.dirty[0]|32&t.$$.dirty[1]&&($?"undefined"!=typeof ResizeObserver&&(r(36,ot=new ResizeObserver((()=>{Vt()}))),ot.observe(tt)):ot&&(ot.disconnect(),r(36,ot=null))),256&t.$$.dirty[1]|1&t.$$.dirty[2]&&r(39,vt=wn(O,vt)),524544&t.$$.dirty[1]&&r(16,b=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}(y,vt)),16&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&r(4,yt=xr(N,yt)),536871424&t.$$.dirty[1]&&r(40,$t=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(P,$t)),268437504&t.$$.dirty[1]&&(r(42,bt=we(S,bt)),r(41,dt=le(bt))),134227968&t.$$.dirty[1]&&(r(44,ht=we(D,bt)),r(43,ft=le(ht))),69222400&t.$$.dirty[1]&&r(45,_t=De(F,C,_t)),16&t.$$.dirty[0]&&r(49,_="horizontal"===yt?"grid-template-columns":"grid-template-rows"),17&t.$$.dirty[0]|524288&t.$$.dirty[1]){let t=[];y.forEach((e=>{const n="horizontal"===yt?"width":"height";t.push(K.getDerivedFromVars(e.json[n]))})),r(12,mt=ee(t,(t=>t))),B(),B=p(mt,(t=>r(56,V=t)))}if(16&t.$$.dirty[0]|33587456&t.$$.dirty[1]&&(r(46,wt=[]),vt>1?wt.push("auto"):V.forEach((t=>{!t&&"horizontal"===yt||"match_parent"===(null==t?void 0:t.type)?wt.push("100%"):wt.push("max-content")}))),112&t.$$.dirty[0]|16780032&t.$$.dirty[1]){const t={};let e={};r(47,kt=!1),"horizontal"===yt?e.parentVAlign=$t:e.parentHAlign=$t,"paging"===j&&(r(47,kt=!0),e.scrollSnap="start",t["horizontal"===yt?"scroll-padding-left":"scroll-padding-top"]=le(bt/2)),1===vt&&(e.parentLayoutOrientation=yt),r(5,xt=Ne(t,xt)),r(6,Ct=Ne(e,Ct))}20480&t.$$.dirty[1]&&r(15,w={padding:_t,"grid-gap":ft}),295936&t.$$.dirty[1]&&r(14,x={"grid-gap":dt,[_]:Qr(wt)}),16&t.$$.dirty[0]|8454144&t.$$.dirty[1]&&r(13,k={orientation:yt,"scroll-snap":kt,scrollbar:"auto"===A?"auto":"none"}),4325376&t.$$.dirty[1]&&r(48,Et=we(E,Et)),1&t.$$.dirty[0]&&K.json&&Vt(),21&t.$$.dirty[0]|2097280&t.$$.dirty[1]&&K.json&&(ct&&(Y.unregisterInstance(ct),r(38,ct=void 0)),K.json.id&&!K.fakeElement&&(r(38,ct=K.json.id),Y.registerInstance(ct,{setCurrentItem(t){const e=Dt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');Pt(e,t)},setPreviousItem(t,e){const n=Nt("prev"),r=Dt();let o=n-t;o<0&&(o="ring"===e?to(o,r.length):0),Pt(r,o)},setNextItem(t,e){const n="horizontal"===yt,r="ltr"!==C&&n?-1:1,o=n?Q.scrollLeft*r+Q.offsetWidth===Q.scrollWidth:Q.scrollTop+Q.offsetHeight===Q.scrollHeight,i=Dt();if(o&&"ring"===e)return void Pt(i,0);let a=Nt("next")+t;a>i.length-1&&(a="ring"===e?to(a,i.length):i.length-1),Pt(i,a)},scrollToStart(){St(0)},scrollToEnd(){St("ltr"===C||"horizontal"!==yt?1e6:-1e6)},scrollBackward(t,e){const n="horizontal"===yt,r="ltr"!==C&&n?-1:1,o=n?Q.scrollLeft:Q.scrollTop,i=n?Q.scrollWidth-Q.offsetWidth:Q.scrollHeight-Q.offsetHeight;let a=o*r-t;a<0&&("clamp"===e?a=0:"ring"===e&&(a=to(a,i))),St(a*r)},scrollForward(t,e){const n="horizontal"===yt,r="ltr"!==C&&n?-1:1,o=n?Q.scrollLeft:Q.scrollTop,i=n?Q.scrollWidth-Q.offsetWidth:Q.scrollHeight-Q.offsetHeight;let a=o*r+t;a>i&&("clamp"===e?a=i:"ring"===e&&(a=to(a,i))),St(a*r)},scrollToPosition(t){St("ltr"===C||"horizontal"!==yt?t:-t)}})))},[K,X,Q,tt,yt,xt,Ct,$,i,et,nt,rt,mt,k,x,w,b,v,m,g,h,d,u,c,l,s,a,M,Z,at,st,function(t){r(0,K=Object.assign(Object.assign({},K),{json:Object.assign(Object.assign({},K.json),{items:t.filter(he)})}))},At,jt,Vt,Ft,ot,it,ct,vt,$t,dt,bt,ft,ht,_t,wt,kt,Et,_,y,o,C,E,A,j,V,F,D,S,P,N,O,I,function(t,e){gt[t?"unshift":"push"]((()=>{et[e]=t,r(9,et)}))},function(t){gt[t?"unshift":"push"]((()=>{tt=t,r(3,tt)}))},function(t){gt[t?"unshift":"push"]((()=>{Q=t,r(2,Q)}))},()=>Ft("left"),()=>Ft("right")]}const fo={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_height-parent_yes":"divkit-ae594",tabs__separator:"divkit-b85bf"},{Boolean:ho}=j;function go(t,e,n){const r=t.slice();r[93]=e[n];const o=r[93].index;r[94]=o;const i=r[29][r[94]];return r[95]=i,r}function mo(t,e,n){const r=t.slice();r[93]=e[n];const o=r[93].index;r[94]=o;const i=r[94]===r[15];return r[98]=i,r}function vo(t){let e,n;return e=new bn({props:{cls:Ee("tabs",fo,t[22]),componentContext:t[0],layoutParams:t[1],customActions:"tabs",parentOf:t[42],parentOfSimpleMode:!0,replaceItems:t[47],$$slots:{default:[xo]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};4194304&n[0]&&(r.cls=Ee("tabs",fo,t[22])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),2048&n[1]&&(r.parentOf=t[42]),2143289337&n[0]|4099&n[1]|256&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function yo(t){let e,n=t[93].title+"";return{c(){e=R(n)},m(t,n){O(t,e,n)},p(t,r){65536&r[0]&&n!==(n=t[93].title+"")&&K(e,n)},d(t){t&&I(e)}}}function $o(t){let e,n;function r(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[69](t[94],...n)}return e=new Xe({props:{componentContext:t[0],cls:Ee("tabs__item",fo,{selected:t[98],actionable:Boolean(t[93].title_click_action)}),actions:t[93].title_click_action&&!t[0].fakeElement?[t[93].title_click_action].filter(Re):[],attrs:{id:"".concat(t[45],"-tab-").concat(t[94]),"aria-controls":"".concat(t[45],"-panel-").concat(t[94]),role:"tab",tabindex:t[98]&&!t[0].fakeElement?t[93].title_click_action?void 0:"0":"-1","aria-selected":t[98]?"true":"false"},customAction:t[0].fakeElement?null:r,$$slots:{default:[yo]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(n,o){t=n;const i={};1&o[0]&&(i.componentContext=t[0]),98304&o[0]&&(i.cls=Ee("tabs__item",fo,{selected:t[98],actionable:Boolean(t[93].title_click_action)})),65537&o[0]&&(i.actions=t[93].title_click_action&&!t[0].fakeElement?[t[93].title_click_action].filter(Re):[]),98305&o[0]&&(i.attrs={id:"".concat(t[45],"-tab-").concat(t[94]),"aria-controls":"".concat(t[45],"-panel-").concat(t[94]),role:"tab",tabindex:t[98]&&!t[0].fakeElement?t[93].title_click_action?void 0:"0":"-1","aria-selected":t[98]?"true":"false"}),65537&o[0]&&(i.customAction=t[0].fakeElement?null:r),65536&o[0]|256&o[3]&&(i.$$scope={dirty:o,ctx:t}),e.$set(i)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function bo(t){let e,n,r;return{c(){e=T("div"),W(e,"class",n=fo.tabs__separator),W(e,"style",r=se(t[32]))},m(t,n){O(t,e,n)},p(t,n){2&n[1]&&r!==(r=se(t[32]))&&W(e,"style",r)},d(t){t&&I(e)}}}function _o(t){let e,n;return e=new gs({props:{componentContext:t[95],layoutParams:t[3]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};536936448&n[0]&&(r.componentContext=t[95]),8&n[0]&&(r.layoutParams=t[3]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function wo(t){let e,n,r,o,i,a,s=t[95]&&_o(t);return{c(){e=T("div"),s&&s.c(),n=B(),W(e,"class",r=Ee("tabs__panel",fo,{visible:t[30][t[94]]})),W(e,"role","tabpanel"),W(e,"id",o=t[45]+"-panel-"+t[94]),W(e,"aria-labelledby",i=t[45]+"-tab-"+t[94]),Y(e,"left",100*t[94]+"%")},m(t,r){O(t,e,r),s&&s.m(e,null),S(e,n),a=!0},p(t,l){t[95]?s?(s.p(t,l),536936448&l[0]&&Nt(s,1)):(s=_o(t),s.c(),Nt(s,1),s.m(e,n)):s&&(St(),Ot(s,1,1,(()=>{s=null})),Pt()),(!a||1073807360&l[0]&&r!==(r=Ee("tabs__panel",fo,{visible:t[30][t[94]]})))&&W(e,"class",r),(!a||65536&l[0]&&o!==(o=t[45]+"-panel-"+t[94]))&&W(e,"id",o),(!a||65536&l[0]&&i!==(i=t[45]+"-tab-"+t[94]))&&W(e,"aria-labelledby",i),(!a||65536&l[0])&&Y(e,"left",100*t[94]+"%")},i(t){a||(Nt(s),a=!0)},o(t){Ot(s),a=!1},d(t){t&&I(e),s&&s.d()}}}function xo(t){let e,n,r,o,i,a,c,u,d,p,f,h=zt(t[16]),g=[];for(let e=0;e<h.length;e+=1)g[e]=$o(mo(t,h,e));const m=t=>Ot(g[t],1,1,(()=>{g[t]=null}));let v=t[18]&&bo(t),y=zt(t[16]),$=[];for(let e=0;e<y.length;e+=1)$[e]=wo(go(t,y,e));const b=t=>Ot($[t],1,1,(()=>{$[t]=null}));return{c(){e=T("div");for(let t=0;t<g.length;t+=1)g[t].c();r=B(),v&&v.c(),o=B(),i=T("div"),a=T("div");for(let t=0;t<$.length;t+=1)$[t].c();W(e,"class",n=fo.tabs__list+" "+(t[43]?ne["root_restrict-scroll"]:"")),W(e,"role","tablist"),Y(e,"--divkit-tabs-title-padding",t[14]?je(t[14],t[17]):""),Y(e,"--divkit-tabs-font-size",le(t[4])),Y(e,"--divkit-tabs-paddings",t[5]),Y(e,"--divkit-tabs-line-height",t[23]),Y(e,"--divkit-tabs-letter-spacing",t[24]),Y(e,"--divkit-tabs-active-font-weight",t[7]||""),Y(e,"--divkit-tabs-inactive-font-weight",t[8]||""),Y(e,"--divkit-tabs-active-font-family",t[25]||""),Y(e,"--divkit-tabs-inactive-font-family",t[26]||""),Y(e,"--divkit-tabs-active-text-color",t[9]),Y(e,"--divkit-tabs-inactive-text-color",t[10]),Y(e,"--divkit-tabs-active-background-color",t[11]),Y(e,"--divkit-tabs-inactive-background-color",t[12]),Y(e,"--divkit-tabs-border-radius",t[6]),Y(e,"--divkit-tabs-items-spacing",t[13]?ce(10*t[13]/t[4]):""),W(a,"class",c=Ee("tabs__swiper",fo,{inited:t[27],animated:t[28]})),W(i,"class",u=fo.tabs__panels+" "+(t[43]?ne["root_restrict-scroll"]:""))},m(n,s){O(n,e,s);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(e,null);t[70](e),O(n,r,s),v&&v.m(n,s),O(n,o,s),O(n,i,s),S(i,a);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(a,null);t[71](a),t[72](i),d=!0,p||(f=[U(e,"keydown",t[49]),U(i,"touchstart",(function(){l(t[31]?t[50]:void 0)&&(t[31]?t[50]:void 0).apply(this,arguments)})),U(i,"touchmove",(function(){l(t[31]?t[51]:void 0)&&(t[31]?t[51]:void 0).apply(this,arguments)})),U(i,"touchend",(function(){l(t[31]?t[52]:void 0)&&(t[31]?t[52]:void 0).apply(this,arguments)})),U(i,"touchcancel",(function(){l(t[31]?t[52]:void 0)&&(t[31]?t[52]:void 0).apply(this,arguments)}))],p=!0)},p(r,s){if(t=r,98305&s[0]|147456&s[1]){let n;for(h=zt(t[16]),n=0;n<h.length;n+=1){const r=mo(t,h,n);g[n]?(g[n].p(r,s),Nt(g[n],1)):(g[n]=$o(r),g[n].c(),Nt(g[n],1),g[n].m(e,null))}for(St(),n=h.length;n<g.length;n+=1)m(n);Pt()}if((!d||4096&s[1]&&n!==(n=fo.tabs__list+" "+(t[43]?ne["root_restrict-scroll"]:"")))&&W(e,"class",n),147456&s[0]&&Y(e,"--divkit-tabs-title-padding",t[14]?je(t[14],t[17]):""),16&s[0]&&Y(e,"--divkit-tabs-font-size",le(t[4])),32&s[0]&&Y(e,"--divkit-tabs-paddings",t[5]),8388608&s[0]&&Y(e,"--divkit-tabs-line-height",t[23]),16777216&s[0]&&Y(e,"--divkit-tabs-letter-spacing",t[24]),128&s[0]&&Y(e,"--divkit-tabs-active-font-weight",t[7]||""),256&s[0]&&Y(e,"--divkit-tabs-inactive-font-weight",t[8]||""),33554432&s[0]&&Y(e,"--divkit-tabs-active-font-family",t[25]||""),67108864&s[0]&&Y(e,"--divkit-tabs-inactive-font-family",t[26]||""),512&s[0]&&Y(e,"--divkit-tabs-active-text-color",t[9]),1024&s[0]&&Y(e,"--divkit-tabs-inactive-text-color",t[10]),2048&s[0]&&Y(e,"--divkit-tabs-active-background-color",t[11]),4096&s[0]&&Y(e,"--divkit-tabs-inactive-background-color",t[12]),64&s[0]&&Y(e,"--divkit-tabs-border-radius",t[6]),8208&s[0]&&Y(e,"--divkit-tabs-items-spacing",t[13]?ce(10*t[13]/t[4]):""),t[18]?v?v.p(t,s):(v=bo(t),v.c(),v.m(o.parentNode,o)):v&&(v.d(1),v=null),1610678280&s[0]|16384&s[1]){let e;for(y=zt(t[16]),e=0;e<y.length;e+=1){const n=go(t,y,e);$[e]?($[e].p(n,s),Nt($[e],1)):($[e]=wo(n),$[e].c(),Nt($[e],1),$[e].m(a,null))}for(St(),e=y.length;e<$.length;e+=1)b(e);Pt()}(!d||402653184&s[0]&&c!==(c=Ee("tabs__swiper",fo,{inited:t[27],animated:t[28]})))&&W(a,"class",c),(!d||4096&s[1]&&u!==(u=fo.tabs__panels+" "+(t[43]?ne["root_restrict-scroll"]:"")))&&W(i,"class",u)},i(t){if(!d){for(let t=0;t<h.length;t+=1)Nt(g[t]);for(let t=0;t<y.length;t+=1)Nt($[t]);d=!0}},o(t){g=g.filter(ho);for(let t=0;t<g.length;t+=1)Ot(g[t]);$=$.filter(ho);for(let t=0;t<$.length;t+=1)Ot($[t]);d=!1},d(n){n&&(I(e),I(r),I(o),I(i)),M(g,n),t[70](null),v&&v.d(n),M($,n),t[71](null),t[72](null),p=!1,s(f)}}}function ko(t){let e,n,r=!t[2]&&vo(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[2]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),4&n[0]&&Nt(r,1)):(r=vo(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}function Co(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N=n,O=n,I=n,M=n,T=n,z=n,R=n,B=n,L=n;var U,W;t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L()));let{componentContext:H}=e,{layoutParams:q}=e;const J=pt(re),G=J.direction;f(t,G,(t=>r(17,A=t)));const K=J.genId("tabs");let X,Y=!1,Z=te([]);f(t,Z,(t=>r(16,k=t)));let Q,tt,et,nt,rt,ot,it,at,st,lt={},ct={},dt=12,ft="",ht="",mt="",vt="",yt="",$t="",bt="",wt="",xt="",kt="",Ct=0,Et="",At="",jt=null,Vt=!1,Ft=!1,Dt=[],St=[],Pt=null,Nt=null,Ot=null,It=!1,Mt=!1;async function Tt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ot=$,r(15,$=t),Wt(),r(28,Ft=!0),Bt(100*-$),Lt(),async function(){if("match_parent"===(null==x?void 0:x.type))return;await _t();const t=document.getElementById("".concat(K,"-panel-").concat($));t&&r(20,tt.style.height=le(t.offsetHeight),tt)}(),Ut(),st=-$*tt.clientWidth,e){await _t();const t=Q.querySelector(".".concat(fo.tabs__item_selected));t&&t.focus()}}function zt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==k?void 0:k.length;if(!n)return;const r=k.map((t=>t.index));let o=r.indexOf($)+t;o>=n?o=0:o<0&&(o=n-1),Tt(r[o],e)}function Rt(t,e){return $===e||(Tt(e),!1)}async function Bt(t){await _t(),r(21,et.style.transform="translate3d(".concat(t,"%,0,0)"),et)}function Lt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,$-1):Math.min($,null!=ot?ot:$),n=t?Math.min(i.length-1,$+1):Math.max($,null!=ot?ot:$);r(29,Dt=Dt.map(((t,r)=>{var o;return t||(r>=e&&r<=n&&(null===(o=i[r])||void 0===o?void 0:o.div)?H.produceChildContext(i[r].div,{path:r}):void 0)}))),r(30,St=St.map(((t,r)=>r>=e&&r<=n)))}function Ut(){Pt&&clearTimeout(Pt),Pt=window.setTimeout((()=>{r(30,St=i.map(((t,e)=>e===$)))}),400)}function Wt(){Vt||(r(27,Vt=!0),r(20,tt.style.height=le(tt.clientHeight),tt),r(21,et.style.transform="translate3d(".concat(100*-(null!=ot?ot:$),"%,0,0)"),et))}return ut((()=>{X&&(J.unregisterInstance(X),r(55,X=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,H=t.componentContext),"layoutParams"in t&&r(1,q=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(61,o=H.origJson),1073741824&t.$$.dirty[1]&&o&&(r(4,dt=12),r(5,ft=""),r(6,vt=""),r(7,nt=void 0),r(25,yt=""),r(8,rt=void 0),r(26,$t=""),r(9,bt=""),r(10,wt=""),r(11,xt=""),r(12,kt=""),r(13,Ct=0),r(56,Et=""),r(57,At=""),r(14,jt=null)),1&t.$$.dirty[0]&&r(58,i=Array.isArray(H.json.items)&&H.json.items||[]),134217728&t.$$.dirty[1]&&r(42,a=i.map((t=>t.div))),1&t.$$.dirty[0]&&(r(41,s=H.getDerivedFromVars(H.json.width)),B(),B=p(s,(t=>r(68,S=t)))),1&t.$$.dirty[0]&&(r(40,l=H.getDerivedFromVars(H.json.height)),N(),N=p(l,(t=>r(62,x=t)))),1&t.$$.dirty[0]&&r(60,c=H.getJsonWithVars(H.json.selected_tab)),1&t.$$.dirty[0]&&(r(39,u=H.getDerivedFromVars(H.json.tab_title_style)),R(),R=p(u,(t=>r(67,D=t)))),1&t.$$.dirty[0]&&(r(38,d=H.getDerivedFromVars(H.json.has_separator)),z(),z=p(d,(t=>r(18,F=t)))),1&t.$$.dirty[0]&&(r(37,h=H.getDerivedFromVars(H.json.separator_color)),T(),T=p(h,(t=>r(66,V=t)))),1&t.$$.dirty[0]&&(r(36,g=H.getDerivedFromVars(H.json.separator_paddings)),M(),M=p(g,(t=>r(65,j=t)))),1&t.$$.dirty[0]&&(r(35,m=H.getDerivedFromVars(H.json.switch_tabs_by_content_swipe_enabled)),I(),I=p(m,(t=>r(64,E=t)))),1&t.$$.dirty[0]&&(r(34,v=H.getDerivedFromVars(H.json.restrict_parent_scroll)),L(),L=p(v,(t=>r(43,P=t)))),1&t.$$.dirty[0]&&(r(33,y=H.getDerivedFromVars(H.json.title_paddings)),O(),O=p(y,(t=>r(63,C=t)))),536870912&t.$$.dirty[1]&&r(15,$=c&&Number(c)||0),1&t.$$.dirty[0]|134217728&t.$$.dirty[1])if(Array.isArray(i)&&i.length){let t=[];i.forEach(((e,n)=>{const r=H.getJsonWithVars({index:n,title:e.title,title_click_action:e.title_click_action});r.title&&"string"==typeof r.title?t.push(r):H.logError(oe(new Error("Incorrect title for the tab"),{additional:{index:n}}))})),Z.set(t)}else Z.set([]);if(65537&t.$$.dirty[0]&&((null==k?void 0:k.length)?r(2,Y=!1):(r(2,Y=!0),H.logError(oe(new Error('Incorrect or empty "items" prop for div "tabs"'))))),8&t.$$.dirty[0]|65&t.$$.dirty[2]){let t={parentContainerOrientation:"horizontal"};"wrap_content"===(null==S?void 0:S.type)&&(t.parentHorizontalWrapContent=!0),x&&"wrap_content"!==x.type||(t.parentVerticalWrapContent=!0),r(3,lt=Ne(t,lt))}if(32773&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&!Y&&($<0||$>=i.length)&&(H.logError(oe(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:H.json.selected_tab,length:i.length}})),r(15,$=$<0?0:i.length-1)),98309&t.$$.dirty[0]|4194304&t.$$.dirty[1]&&(Y||k.some((t=>$===t.index))||(H.logError(oe(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:H.json.selected_tab}})),r(15,$=(null===r(53,U=k[0])||void 0===U?void 0:U.index)||0))),32&t.$$.dirty[2]&&r(59,b=D||{}),16&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(4,dt=wn(b.font_size,dt)),131120&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(b.font_size||b.paddings)){const t=b.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/dt*10,right:(Number("ltr"===A?t.end:t.start)||Number(t.right)||0)/dt*10,bottom:(Number(t.bottom)||0)/dt*10,left:(Number("ltr"===A?t.start:t.end)||Number(t.left)||0)/dt*10};r(5,ft=De(e,A,ft))}if(16&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=b.line_height;void 0!==t&&Ze(t)&&r(23,ht=le(t/dt*10))}if(16&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=b.letter_spacing;void 0!==t&&Fe(t)&&r(24,mt=le(t/dt*10))}if(80&t.$$.dirty[0]|276824064&t.$$.dirty[1]&&(b.corner_radius||b.corners_radius||b.font_size)){const t=null!==r(54,W=b.corner_radius)&&void 0!==W?W:1e3;b.corners_radius?r(6,vt=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]&&!Fe(o[t]))return r;return ze(t,e,n)}(b.corners_radius,t,dt,vt)):Fe(t)&&r(6,vt=le(t/dt*10))}128&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(7,nt=kn(b.active_font_weight||b.font_weight,nt)),b.font_family&&"string"==typeof b.font_family?r(25,yt=J.typefaceProvider(b.font_family,{fontWeight:nt||400})):r(25,yt="")),256&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(8,rt=kn(b.inactive_font_weight||b.font_weight,rt)),b.font_family&&"string"==typeof b.font_family?r(26,$t=J.typefaceProvider(b.font_family,{fontWeight:rt||400})):r(26,$t="")),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(9,bt=de(b.active_text_color,1,bt)),1024&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(10,wt=de(b.inactive_text_color,1,wt)),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(11,xt=de(b.active_background_color,1,xt)),4096&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(12,kt=de(b.inactive_background_color,1,kt)),8192&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(13,Ct=we(b.item_spacing,Ct)),393216&t.$$.dirty[0]|100663296&t.$$.dirty[1]|24&t.$$.dirty[2]&&F&&(V&&r(56,Et=de(V,1,Et)),j&&r(57,At=De(j,A,At))),100663296&t.$$.dirty[1]&&r(32,_={background:Et,margin:At}),4&t.$$.dirty[2]&&r(31,w=void 0===E||Boolean(E)),16384&t.$$.dirty[0]|2&t.$$.dirty[2]&&r(14,jt=Te(C||void 0,jt)),134217728&t.$$.dirty[1]&&function(t){Y||(r(29,Dt=t.map(((t,e)=>{if(e===$&&(null==t?void 0:t.div))return H.produceChildContext(t.div,{path:e})}))),r(30,St=t.map(((t,e)=>e===$))))}(i),32773&t.$$.dirty[0]|150994944&t.$$.dirty[1]&&H.json&&(X&&(J.unregisterInstance(X),r(55,X=void 0)),!H.json.id||Y||H.fakeElement||(r(55,X=H.json.id),J.registerInstance(X,{setCurrentItem(t){if(t<0||t>i.length-1)throw new Error('Item is out of range in "set-current-item" action');Tt(t)},setPreviousItem(t,e){let n=$-t;n<0&&(n="ring"===e?to(n,i.length):0),Tt(n)},setNextItem(t,e){let n=$+t;n>i.length-1&&(n="ring"===e?to(n,i.length):i.length-1),Tt(n)},scrollToStart(){Tt(0)},scrollToEnd(){Tt(i.length-1)}}))),1&t.$$.dirty[2]&&r(22,ct={"height-parent":"match_parent"===(null==x?void 0:x.type)?"yes":""})},[H,q,Y,lt,dt,ft,vt,nt,rt,bt,wt,xt,kt,Ct,jt,$,k,A,F,Q,tt,et,ct,ht,mt,yt,$t,Vt,Ft,Dt,St,w,_,y,v,m,g,h,d,u,l,s,a,P,G,K,Z,function(t){H.json.items&&r(0,H=Object.assign(Object.assign({},H),{json:Object.assign(Object.assign({},H.json),{items:H.json.items.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})))})}))},Rt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&i){if(37===t.which)zt(-1,!0);else if(39===t.which)zt(1,!0);else if(36===t.which)Tt(0,!0);else{if(35!==t.which)return;Tt(i.length-1,!0)}t.preventDefault()}},function(t){var e;const n=t.target,o=null===(e=null==n?void 0:n.closest)||void 0===e?void 0:e.call(n,".".concat(ne["root_restrict-scroll"]));i.length<2||t.touches.length>1||o&&o!==tt||(It=!1,Mt=!1,Nt=He(t),Ot=null,it=Date.now(),at=st||-$*tt.clientWidth,r(28,Ft=!1),Pt&&clearTimeout(Pt))},function(t){const e=He(t);if(!Nt||Ot&&Ot.x===e.x&&Ot.y===e.y)return;Ot=e;const n=tt.clientWidth;if(It){st=e.x-Nt.x+at;const t=n*i.length;if(st>0)st=st*n/(st+3*n);else if(-st+n>t){let e=-st+n-t;e=e*n/(e+3*n),st=n-t-e}Bt(100*st/n)}else Math.abs(e.y-Nt.y)>10?Mt=!0:!Mt&&Math.abs(e.x-Nt.x)>8&&(Wt(),It=!0,Nt=e,Bt(100*-$),Lt(!0));It&&t.cancelable&&t.preventDefault()},function(){Mt=!1,Nt=null;let t=$;if(!It)return;It=!1;const e=Math.min(512,tt.clientWidth);Math.abs(at-st)>e/4*Math.min(1,(Date.now()-it)/750)&&(t+=at>st?1:-1),t>=i.length?t=i.length-1:t<0&&(t=0),t===$?(r(28,Ft=!0),st=-t*e,Bt(100*-t),Ut()):Tt(t)},U,W,X,Et,At,i,b,c,o,x,C,E,j,V,D,S,(t,e)=>Rt(0,t),function(t){gt[t?"unshift":"push"]((()=>{Q=t,r(19,Q)}))},function(t){gt[t?"unshift":"push"]((()=>{et=t,r(21,et)}))},function(t){gt[t?"unshift":"push"]((()=>{tt=t,r(20,tt)}))}]}const Eo={state:"divkit-b8efc",state__animations:"divkit-adaae","state__animation-child":"divkit-eb860","state__animation-child-inner":"divkit-e08c6"};function Ao(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function jo(t){return t*t*t}function Vo(t){const e=t-1;return e*e*e+1}function Fo(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 Do=Fo([.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]),So=Fo([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]),Po={linear:r,ease:Do,ease_in:jo,ease_out:Vo,ease_in_out:Ao,spring:So},No=200,Oo=0,Io=0,Mo=0;function To(t){return Math.max(...t.map((t=>(Number(t.duration)||No)+(Number(t.start_delay)||Oo))))}function zo(t,e){let{transitions:n,elementBbox:r,rootBbox:o,direction:i,maxDuration:a,alpha:s}=e;const l=null!=s?s:1;return{duration:Le()?0:a,css:t=>{const e=t*a,s=n.map((t=>{const n=Number(t.start_delay)||Oo,a=Number(t.duration)||No,s=Math.max(0,Math.min(1,(e-n)/a)),c="in"===i?1-s:s,u=(Po[t.interpolator||"ease_in_out"]||Ao)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*l+u*(t.alpha||Io)};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 p,f;const e=1-u+u*(t.scale||Mo),n=null!==(p=t.pivot_x)&&void 0!==p?p:.5,o=null!==(f=t.pivot_y)&&void 0!==f?f:.5,i=(1-e)*r.width*n,a=(1-e)*r.height*o;return{active:u>0&&u<1,scale:"translate(".concat(i,"px, ").concat(a,"px) scale(").concat(e,")")}}return{}})),c=s.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),u=s.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),d=s.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),p=s.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),f=[u,p.length?p[p.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(f||"none",";opacity:").concat(c)}}}function Ro(t,e,n){return t*(1-n)+e*n}const Bo={linear:r,ease:Do,ease_in:jo,ease_out:Vo,ease_in_out:Ao,spring:So},Lo=200,Uo=0;function Wo(t,e){var n,r;let{rootBbox:o,beforeBbox:i,afterBbox:a,transition:s}=e;return{delay:null!==(n=s.start_delay)&&void 0!==n?n:Uo,duration:Le()?0:null!==(r=s.duration)&&void 0!==r?r:Lo,easing:s.interpolator&&s.interpolator in Bo?Bo[s.interpolator]:Ao,css:t=>["top:".concat(Ro(i.top,a.top,t)-o.top,"px"),"left:".concat(Ro(i.left,a.left,t)-o.left,"px"),"width:".concat(Ro(i.width,a.width,t),"px"),"height:".concat(Ro(i.height,a.height,t),"px")].join(";")}}function Ho(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...Ho(t))})):e.push(t),e}const{Map:qo}=j;function Jo(t,e,n){const r=t.slice();return r[35]=e[n],r}function Go(t){let e,n;return e=new bn({props:{cls:Eo.state,componentContext:t[0],layoutParams:t[1],parentOf:t[7],parentOfSimpleMode:!0,replaceItems:t[8],$$slots:{default:[ti]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),128&n[0]&&(r.parentOf=t[7]),120&n[0]|128&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Ko(t){let e,r,o=t[5],i=Xo(t);return{c(){i.c(),e=L()},m(t,n){i.m(t,n),O(t,e,n),r=!0},p(t,r){32&r[0]&&d(o,o=t[5])?(St(),Ot(i,1,1,n),Pt(),i=Xo(t),i.c(),Nt(i,1),i.m(e.parentNode,e)):i.p(t,r)},i(t){r||(Nt(i),r=!0)},o(t){Ot(i),r=!1},d(t){t&&I(e),i.d(t)}}}function Xo(t){let e,n;return e=new gs({props:{componentContext:t[6]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.componentContext=t[6]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Yo(t){let e,n,r,o,i,a,s,l,c,u;function d(){return t[17](t[35])}return r=new gs({props:{componentContext:t[35].componentContextCopy}}),{c(){e=T("div"),n=T("div"),Jt(r.$$.fragment),i=B(),W(n,"class",o=Eo["state__animation-child-inner"]),W(e,"class",a=Eo["state__animation-child"])},m(t,o){O(t,e,o),S(e,n),Gt(r,n,null),S(e,i),l=!0,c||(u=U(e,"introend",d),c=!0)},p(e,n){t=e;const o={};16&n[0]&&(o.componentContext=t[35].componentContextCopy),r.$set(o)},i(n){l||(Nt(r.$$.fragment,n),s||wt((()=>{s=Mt(e,Wo,t[35]),s.start()})),l=!0)},o(t){Ot(r.$$.fragment,t),l=!1},d(t){t&&I(e),Kt(r),c=!1,u()}}}function Zo(t){let e,n,r,o,i,a,s,l,c,u,d="".concat(t[35].offsetLeft,"px"),p="".concat(t[35].offsetTop,"px"),f="".concat(t[35].width,"px"),h="".concat(t[35].height,"px");function g(){return t[16](t[35])}return r=new gs({props:{componentContext:t[35].componentContextCopy}}),{c(){e=T("div"),n=T("div"),Jt(r.$$.fragment),i=B(),W(n,"class",o=Eo["state__animation-child-inner"]),W(e,"class",a=Eo["state__animation-child"]),Y(e,"left",d),Y(e,"top",p),Y(e,"width",f),Y(e,"height",h)},m(t,o){O(t,e,o),S(e,n),Gt(r,n,null),S(e,i),l=!0,c||(u=U(e,"introend",g),c=!0)},p(n,o){t=n;const i={};16&o[0]&&(i.componentContext=t[35].componentContextCopy),r.$set(i),16&o[0]&&d!==(d="".concat(t[35].offsetLeft,"px"))&&Y(e,"left",d),16&o[0]&&p!==(p="".concat(t[35].offsetTop,"px"))&&Y(e,"top",p),16&o[0]&&f!==(f="".concat(t[35].width,"px"))&&Y(e,"width",f),16&o[0]&&h!==(h="".concat(t[35].height,"px"))&&Y(e,"height",h)},i(n){l||(Nt(r.$$.fragment,n),s||wt((()=>{s=Mt(e,zo,t[35]),s.start()})),l=!0)},o(t){Ot(r.$$.fragment,t),l=!1},d(t){t&&I(e),Kt(r),c=!1,u()}}}function Qo(t,e){let n,r,o,i,a;const s=[Zo,Yo],l=[];function c(t,e){return"direction"in t[35]?0:1}return r=c(e),o=l[r]=s[r](e),{key:t,first:null,c(){n=L(),o.c(),i=L(),this.first=n},m(t,e){O(t,n,e),l[r].m(t,e),O(t,i,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?l[r].p(e,n):(St(),Ot(l[a],1,1,(()=>{l[a]=null})),Pt(),o=l[r],o?o.p(e,n):(o=l[r]=s[r](e),o.c()),Nt(o,1),o.m(i.parentNode,i))},i(t){a||(Nt(o),a=!0)},o(t){Ot(o),a=!1},d(t){t&&(I(n),I(i)),l[r].d(t)}}}function ti(t){let e,n,r,o,i=[],a=new qo,s=t[6]&&Ko(t),l=zt(t[4]);const c=t=>t[35];for(let e=0;e<l.length;e+=1){let n=Jo(t,l,e),r=c(n);a.set(r,i[e]=Qo(r,n))}return{c(){s&&s.c(),e=B(),n=T("div");for(let t=0;t<i.length;t+=1)i[t].c();W(n,"class",r=Eo.state__animations),W(n,"aria-hidden","true")},m(r,a){s&&s.m(r,a),O(r,e,a),O(r,n,a);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(n,null);t[18](n),o=!0},p(t,r){t[6]?s?(s.p(t,r),64&r[0]&&Nt(s,1)):(s=Ko(t),s.c(),Nt(s,1),s.m(e.parentNode,e)):s&&(St(),Ot(s,1,1,(()=>{s=null})),Pt()),528&r[0]&&(l=zt(t[4]),St(),i=Bt(i,r,c,1,t,l,a,n,Rt,Qo,null,Jo),Pt())},i(t){if(!o){Nt(s);for(let t=0;t<l.length;t+=1)Nt(i[t]);o=!0}},o(t){Ot(s);for(let t=0;t<i.length;t+=1)Ot(i[t]);o=!1},d(r){r&&(I(e),I(n)),s&&s.d(r);for(let t=0;t<i.length;t+=1)i[t].d();t[18](null)}}}function ei(t){let e,n,r=!t[2]&&Go(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[2]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),4&n[0]&&Nt(r,1)):(r=Go(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}function ni(t){return"change_bounds"===t.type?t:"set"===t.type?ni(t.items[0]):null}function ri(t,e,n){let r,o,i,a,s,l,c,{componentContext:u}=e,{layoutParams:d}=e;const p=pt(re),f=pt(Ae);let h,g,m,v,y=!1,$=new Map,b=new Set,_=null,w=[],x=[],k=[],C=[],E=!1;function A(t){n(6,v=(null==t?void 0:t.div)?u.produceChildContext(t.div,{path:t.state_id||"<unknown>"}):void 0)}function j(t,e,n){let{json:r,parentComponentContext:o,transitions:i,node:a}=e;r=u.getJsonWithVars(r),i=u.getJsonWithVars(i);const s=Ho(i),l=a.getBoundingClientRect(),c=Object.assign(Object.assign({},r),{margins:void 0,alpha:(d=s,d.some((t=>"fade"===t.type))?void 0:r.alpha)});var d;return{json:c,componentContextCopy:o.produceChildContext(c,{fake:!0}),elementBbox:l,rootBbox:t,transitions:s,alpha:r.alpha,width:l.width,height:l.height,offsetTop:l.top-t.top,offsetLeft:l.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node}}async function V(t){if(m===t)return;p.setRunning("stateChange",!0);const e=new Set(b);w.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(4,w=[]);let r=[];if(h){const t=h.getBoundingClientRect();r=k.map((e=>j(t,e,"out")))}C.forEach((t=>{$.set(t.id,t.node.getBoundingClientRect())})),x=[],k=[],C=[];const o=l.find((e=>e.state_id===t))||null;if(o?(n(5,m=t),null==a||a.setValue(m),A(o)):u.logError(oe(new Error("Cannot find state with id"),{additional:{stateId:t}})),await _t(),!h)return;const i=h.getBoundingClientRect();let s=x.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=>j(i,t,"in")));r=r.filter((t=>{var e;return!(!t.json.id||b.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=r.concat(s),d=c.reduce(((t,e)=>Math.max(t,To(e.transitions))),0),f=C.filter((t=>$.has(t.id))).map((t=>{const e=Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}});return{json:e,componentContextCopy:t.parentComponentContext.produceChildContext(e,{fake:!0}),rootBbox:i,beforeBbox:$.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:u.getJsonWithVars(ni(t.transitions)),resolvePromise:t.resolvePromise}}));n(4,w=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:d}))),...f]),$.clear(),p.setRunning("stateChange",!1)}function F(t){if(_&&_.has(t))return _.get(t);u.logError(oe(new Error("Missing state block with id"),{additional:{id:t}}))}function D(t){n(4,w=w.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return dt(Ae,{registerInstance(t,e){_||(_=new Map),_.has(t)?u.logError(oe(new Error("Duplicate state with id"),{additional:{id:t}})):_.set(t,e)},unregisterInstance(t){null==_||_.delete(t)},runVisibilityTransition(t,e,r,o,i){if(!h)return Promise.resolve();const a=j(h.getBoundingClientRect(),{json:t,parentComponentContext:e,transitions:r,node:o},i),s=To(a.transitions),l=Object.assign(Object.assign({},a),{maxDuration:s});return n(4,w=[...w.filter((t=>t.node!==a.node)),l]),new Promise((t=>{l.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const o={json:t,parentComponentContext:e,transitions:n,node:r};return x.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const o={json:t,parentComponentContext:e,transitions:n,node:r};return k.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,parentComponentContext:e,transitions:n,node:r};return C.push(i),new Promise((t=>{i.resolvePromise=t}))},hasTransitionChange:t=>!!t&&$.has(t),registerChild(t){b.add(t)},unregisterChild(t){b.delete(t)}}),ut((()=>{g&&f.unregisterInstance(g)})),t.$$set=t=>{"componentContext"in t&&n(0,u=t.componentContext),"layoutParams"in t&&n(1,d=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&n(13,r=u.json.div_id||u.json.id),1&t.$$.dirty[0]&&(o=u.getJsonWithVars(u.json.default_state_id)),1&t.$$.dirty[0]&&n(15,i=u.json.state_id_variable),32769&t.$$.dirty[0]&&(a=i?u.getVariable(i,"string"):null),1&t.$$.dirty[0]&&n(14,s=u.origJson),16384&t.$$.dirty[0]&&s&&n(11,E=!1),8193&t.$$.dirty[0]&&(r?n(2,y=!1):(n(2,y=!0),u.logError(oe(new Error('Missing "id" prop for div "state"'))))),1&t.$$.dirty[0]&&u.json&&(b=new Set),1&t.$$.dirty[0]&&n(12,l=Array.isArray(u.json.states)&&u.json.states||[]),4096&t.$$.dirty[0]&&n(7,c=l.map((t=>t.div))),4097&t.$$.dirty[0]&&((null==l?void 0:l.length)?n(2,y=!1):(n(2,y=!0),u.logError(oe(new Error('Empty "states" prop for div "state"'))))),9217&t.$$.dirty[0]&&u.json&&(g&&(f.unregisterInstance(g),n(10,g=void 0)),r&&!(null==u?void 0:u.fakeElement)&&(n(10,g=r),f.registerInstance(r,{setState:V,getChild:F}))),6144&t.$$.dirty[0]&&!E&&function(t){if(!E&&(n(11,E=!0),t.length)){const e=(null==a?void 0:a.getValue())||o;if(e){n(5,m=e);const r=t.find((t=>t.state_id===m))||null;A(r),r||u.logError(oe(new Error("Cannot find state for default_state_id"),{additional:{selectedId:m}}))}else{const e=t[0];n(5,m=e.state_id),A(e)}a&&(a.setValue(m),a.subscribe((t=>{V(t)})))}}(l)},[u,d,y,h,w,m,v,c,function(t){const e=u.json.states;e&&(n(12,l=e.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})))),n(0,u.json=Object.assign(Object.assign({},u.json),{states:l}),u),m&&A(l.find((t=>t.state_id===m))||null))},D,g,E,l,r,s,i,t=>D(t),t=>D(t),function(t){gt[t?"unshift":"push"]((()=>{h=t,n(3,h)}))}]}const oi={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f",pager__arrow:"divkit-d78c2","pager__arrow-icon-path":"divkit-a94d9"},{Boolean:ii}=j;function ai(t,e,n){const r=t.slice();return r[65]=e[n],r}function si(t){let e,n;return e=new bn({props:{cls:Ee("pager",oi,t[10]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,parentOf:t[2].map(fi),replaceItems:t[23],$$slots:{default:[di]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=Ee("pager",oi,t[10])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),4&n[0]&&(r.parentOf=t[2].map(fi)),134068&n[0]|64&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function li(t){let e,n,r,o,i;return n=new gs({props:{componentContext:t[65]}}),{c(){e=T("div"),Jt(n.$$.fragment),r=B(),W(e,"class",o=oi.pager__item)},m(t,o){O(t,e,o),Gt(n,e,null),S(e,r),i=!0},p(t,e){const r={};4&e[0]&&(r.componentContext=t[65]),n.$set(r)},i(t){i||(Nt(n.$$.fragment,t),i=!0)},o(t){Ot(n.$$.fragment,t),i=!1},d(t){t&&I(e),Kt(n)}}}function ci(t){let e,r,o,i,a=!t[19]&&function(t){let e,n,r,o;return{c(){e=z("svg"),n=z("path"),W(n,"class",r=oi["pager__arrow-icon-path"]),W(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),W(e,"class",o=Zr.arrow__icon),W(e,"xmlns","http://www.w3.org/2000/svg"),W(e,"width","32"),W(e,"height","32"),W(e,"viewBox","0 0 32 32"),W(e,"fill","none")},m(t,r){O(t,e,r),S(e,n)},d(t){t&&I(e)}}}();return{c(){e=T("div"),a&&a.c(),W(e,"class",r=t[19]||"".concat(oi.pager__arrow," ").concat(Zr.arrow," ").concat(Zr.arrow_left))},m(n,r){O(n,e,r),a&&a.m(e,null),o||(i=U(e,"click",t[52]),o=!0)},p:n,d(t){t&&I(e),a&&a.d(),o=!1,i()}}}function ui(t){let e,r,o,i,a=!t[20]&&function(t){let e,n,r,o;return{c(){e=z("svg"),n=z("path"),W(n,"class",r=oi["pager__arrow-icon-path"]),W(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),W(e,"class",o=Zr.arrow__icon),W(e,"xmlns","http://www.w3.org/2000/svg"),W(e,"width","32"),W(e,"height","32"),W(e,"viewBox","0 0 32 32"),W(e,"fill","none")},m(t,r){O(t,e,r),S(e,n)},d(t){t&&I(e)}}}();return{c(){e=T("div"),a&&a.c(),W(e,"class",r=t[20]||"".concat(oi.pager__arrow," ").concat(Zr.arrow," ").concat(Zr.arrow_right))},m(n,r){O(n,e,r),a&&a.m(e,null),o||(i=U(e,"click",t[53]),o=!0)},p:n,d(t){t&&I(e),a&&a.d(),o=!1,i()}}}function di(t){let e,n,r,o,i,a,s,l,c,u=zt(t[2]),d=[];for(let e=0;e<u.length;e+=1)d[e]=li(ai(t,u,e));const p=t=>Ot(d[t],1,1,(()=>{d[t]=null}));let f=t[8]&&t[9]&&ci(t),h=t[7]&&t[9]&&ui(t);return{c(){e=T("div");for(let t=0;t<d.length;t+=1)d[t].c();o=B(),f&&f.c(),i=B(),h&&h.c(),a=L(),W(e,"class",n=oi.pager__items+" "+(t[17]?ne["root_restrict-scroll"]:"")),W(e,"style",r=se(t[11]))},m(n,r){O(n,e,r);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(e,null);t[51](e),O(n,o,r),f&&f.m(n,r),O(n,i,r),h&&h.m(n,r),O(n,a,r),s=!0,l||(c=U(e,"scroll",t[22]),l=!0)},p(t,o){if(4&o[0]){let n;for(u=zt(t[2]),n=0;n<u.length;n+=1){const r=ai(t,u,n);d[n]?(d[n].p(r,o),Nt(d[n],1)):(d[n]=li(r),d[n].c(),Nt(d[n],1),d[n].m(e,null))}for(St(),n=u.length;n<d.length;n+=1)p(n);Pt()}(!s||131072&o[0]&&n!==(n=oi.pager__items+" "+(t[17]?ne["root_restrict-scroll"]:"")))&&W(e,"class",n),(!s||2048&o[0]&&r!==(r=se(t[11])))&&W(e,"style",r),t[8]&&t[9]?f?f.p(t,o):(f=ci(t),f.c(),f.m(i.parentNode,i)):f&&(f.d(1),f=null),t[7]&&t[9]?h?h.p(t,o):(h=ui(t),h.c(),h.m(a.parentNode,a)):h&&(h.d(1),h=null)},i(t){if(!s){for(let t=0;t<u.length;t+=1)Nt(d[t]);s=!0}},o(t){d=d.filter(ii);for(let t=0;t<d.length;t+=1)Ot(d[t]);s=!1},d(n){n&&(I(e),I(o),I(i),I(a)),M(d,n),t[51](null),f&&f.d(n),h&&h.d(n),l=!1,c()}}}function pi(t){let e,n,r=!t[3]&&si(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[3]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),8&n[0]&&Nt(r,1)):(r=si(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}const fi=t=>t.json;function hi(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,b,_,w,x,k,C,E,A,j,V,F=n,D=n,S=n,P=n,N=n,O=n;var I,M,T,z,R,B,L,U,W,H;t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O()));let{componentContext:q}=e,{layoutParams:J}=e;const G=pt(re),K=G.direction;f(t,K,(t=>r(4,x=t)));const X=G.genId("pager"),Y=G.getCustomization("pagerLeftClass"),Z=G.getCustomization("pagerRightClass"),Q=G.isDesktop;f(t,Q,(t=>r(46,k=t)));const tt=Nn((function(){if(!rt)return;const t=function(){const t=Array.from(nt.children),e=nt.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===st?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:ot}();t!==ot&&r(38,ot=t)}),50);let et,nt,rt=!1,ot=0,it=0,at=!1,st="horizontal",ct="",dt="",ft="";function ht(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===st,o=nt.children[t],i=n?"offsetLeft":"offsetTop",a=n?"left":"top";nt.scroll({[a]:o[i],behavior:e}),r(38,ot=t)}function mt(t,e){let n=ot-t;n<0&&(n="ring"===e?to(n,u.length):0),ht(n)}function vt(t,e){let n=ot+t;n>u.length-1&&(n="ring"===e?to(n,u.length):u.length-1),ht(n)}return lt((()=>{if(r(37,rt=!0),Boolean(document.getElementById("".concat(X,"-tab-0")))){const t=[...nt.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(X,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(X,"-tab-").concat(e))}})),ut((()=>{r(37,rt=!1),et&&(G.unregisterInstance(et),r(36,et=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,q=t.componentContext),"layoutParams"in t&&r(1,J=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(45,o=q.origJson),16384&t.$$.dirty[1]&&o&&r(42,dt=""),1&t.$$.dirty[0]&&(r(16,i=q.getDerivedFromVars(q.json.layout_mode)),D(),D=p(i,(t=>r(47,C=t)))),1&t.$$.dirty[0]&&(r(15,a=q.getDerivedFromVars(q.json.orientation)),N(),N=p(a,(t=>r(50,j=t)))),1&t.$$.dirty[0]&&(r(14,s=q.getDerivedFromVars(q.json.item_spacing)),P(),P=p(s,(t=>r(49,A=t)))),1&t.$$.dirty[0]&&(r(13,l=q.getDerivedFromVars(q.json.paddings)),S(),S=p(l,(t=>r(48,E=t)))),1&t.$$.dirty[0]&&(r(12,c=q.getDerivedFromVars(q.json.restrict_parent_scroll)),O(),O=p(c,(t=>r(17,V=t)))),1&t.$$.dirty[0]&&r(2,u=(Array.isArray(q.json.items)&&q.json.items||[]).map(((t,e)=>q.produceChildContext(t,{path:e})))),1&t.$$.dirty[0]|65536&t.$$.dirty[1]&&(C?"percentage"!==C.type&&"fixed"!==C.type?(r(39,at=!0),q.logError(oe(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):r(39,at=!1):(r(39,at=!0),q.logError(oe(new Error('Empty "layout_mode" prop for div "pager"'))))),524800&t.$$.dirty[1]&&r(40,st=xr(j,st)),262144&t.$$.dirty[1]){const t=null==A?void 0:A.value;t&&Fe(t)&&r(41,ct=le(t||0))}if(16&t.$$.dirty[0]|133120&t.$$.dirty[1]&&r(42,dt=De(E,x,dt)),512&t.$$.dirty[1]&&r(44,d="horizontal"===st?"grid-auto-columns":"grid-auto-rows"),2080374801&t.$$.dirty[0]|67103&t.$$.dirty[1])if("fixed"===(null==C?void 0:C.type)){const t=ce("horizontal"===st?(("ltr"===x?null===r(26,I=q.json.paddings)||void 0===I?void 0:I.start:null===r(27,M=q.json.paddings)||void 0===M?void 0:M.end)||(null===r(28,T=q.json.paddings)||void 0===T?void 0:T.left)||0)+(("ltr"===x?null===r(29,z=q.json.paddings)||void 0===z?void 0:z.end:null===r(30,R=q.json.paddings)||void 0===R?void 0:R.start)||(null===r(31,B=q.json.paddings)||void 0===B?void 0:B.right)||0):((null===r(32,L=q.json.paddings)||void 0===L?void 0:L.top)||0)+((null===r(33,U=q.json.paddings)||void 0===U?void 0:U.bottom)||0)),e=null===r(34,W=C.neighbour_page_width)||void 0===W?void 0:W.value;r(43,ft=e?"calc(100% + ".concat(t," - 2 * ").concat(ce(e)," - 2 * ").concat(ct,")"):"100%")}else if("percentage"===(null==C?void 0:C.type)){const t=null===r(35,H=C.page_width)||void 0===H?void 0:H.value;r(43,ft="".concat(Number(t),"%"))}15360&t.$$.dirty[1]&&r(11,h={"grid-gap":ct,padding:dt,[d]:ft}),512&t.$$.dirty[1]&&r(10,g={orientation:st}),256&t.$$.dirty[1]&&r(3,m=at),8&t.$$.dirty[0]|32832&t.$$.dirty[1]&&r(9,v=k&&rt&&!m),20&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(8,y="ltr"===x?ot>0:ot+1<u.length),20&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(7,b="ltr"===x?ot+1<u.length:ot>0),4&t.$$.dirty[0]|128&t.$$.dirty[1]&&function(t,e){const n=q.json.id;if(n){const r=new Map(w);$(_,w=r.set(n,{instId:X,size:t,currentItem:e,scrollToPagerItem:ht}),w)}}(u.length,ot),128&t.$$.dirty[1]&&function(t){var e;if(t===it)return;it=t;const n=q.getJsonWithVars(null===(e=u[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&q.execAnyActions(n)}(ot),5&t.$$.dirty[0]|32&t.$$.dirty[1]&&q.json&&(et&&(G.unregisterInstance(et),r(36,et=void 0)),q.json.id&&!q.fakeElement&&(r(36,et=q.json.id),G.registerInstance(et,{setCurrentItem(t){if(t<0||t>u.length-1)throw new Error('Item is out of range in "set-current-item" action');ht(t)},setPreviousItem:mt,setNextItem:vt,scrollToStart(){ht(0)},scrollToEnd(){ht(u.length-1)}})))},r(6,_=G.getStore("pagers")),F(),F=p(_,(t=>r(55,w=t))),[q,J,u,m,x,nt,_,b,y,v,g,h,c,l,s,a,i,V,K,Y,Z,Q,tt,function(t){r(0,q=Object.assign(Object.assign({},q),{json:Object.assign(Object.assign({},q.json),{items:t.filter(he)})}))},mt,vt,I,M,T,z,R,B,L,U,W,H,et,rt,ot,at,st,ct,dt,ft,d,o,k,C,E,A,j,function(t){gt[t?"unshift":"push"]((()=>{nt=t,r(5,nt)}))},()=>("ltr"===x?mt:vt)(1,"clamp"),()=>("ltr"===x?vt:mt)(1,"clamp")]}const gi={indicator:"divkit-d8e3f",indicator__scroller:"divkit-b5db0",indicator__items:"divkit-d5d94",indicator__item:"divkit-f6629",indicator_placement_default:"divkit-c1670",indicator__item_active:"divkit-b39cd",indicator_direction_ltr:"divkit-a7473",indicator_direction_rtl:"divkit-a7d63",indicator_placement_stretch:"divkit-b6bd3"};function mi(t,e,n){const r=t.slice();r[44]=e[n],r[47]=n;const o=r[47]===r[10].currentItem;return r[45]=o,r}function vi(t){let e,n=zt(Array(t[10].size)),r=[];for(let e=0;e<n.length;e+=1)r[e]=yi(mi(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=L()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);O(t,e,n)},p(t,o){if(12583936&o[0]){let i;for(n=zt(Array(t[10].size)),i=0;i<n.length;i+=1){const a=mi(t,n,i);r[i]?r[i].p(a,o):(r[i]=yi(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){t&&I(e),M(r,t)}}}function yi(t){let e,n,r,o,i,a,l,c;function u(){return t[37](t[47])}return{c(){e=T("div"),W(e,"class",n=Ee("indicator__item",gi,{active:t[45]})+" "+ne.root__clickable),W(e,"role","tab"),W(e,"id",r=t[10].instId+"-tab-"+t[47]),W(e,"aria-controls",o=t[10].instId+"-panel-"+t[47]),W(e,"aria-selected",i=t[45]?"true":"false"),W(e,"tabindex",a=t[45]?0:-1)},m(n,r){O(n,e,r),l||(c=[U(e,"click",u),U(e,"keydown",t[23])],l=!0)},p(s,l){t=s,1024&l[0]&&n!==(n=Ee("indicator__item",gi,{active:t[45]})+" "+ne.root__clickable)&&W(e,"class",n),1024&l[0]&&r!==(r=t[10].instId+"-tab-"+t[47])&&W(e,"id",r),1024&l[0]&&o!==(o=t[10].instId+"-panel-"+t[47])&&W(e,"aria-controls",o),1024&l[0]&&i!==(i=t[45]?"true":"false")&&W(e,"aria-selected",i),1024&l[0]&&a!==(a=t[45]?0:-1)&&W(e,"tabindex",a)},d(t){t&&I(e),l=!1,s(c)}}}function $i(t){let e,n,r,o,i=t[10]&&vi(t);return{c(){e=T("div"),n=T("div"),i&&i.c(),W(n,"class",r=gi.indicator__items),W(n,"role","tablist"),Y(n,"margin","default"===t[4]?"0 ".concat(le(Math.max(0,t[2].width-t[3].width)/2)):""),Y(n,"--divkit-indicator-inactive-width",le(t[3].width)),Y(n,"--divkit-indicator-inactive-height",le(t[3].height)),Y(n,"--divkit-indicator-inactive-border-radius",le(t[3].borderRadius)),Y(n,"--divkit-indicator-inactive-background",t[3].background||""),Y(n,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),Y(n,"--divkit-indicator-active-width",le(t[2].width)),Y(n,"--divkit-indicator-active-height",le(t[2].height)),Y(n,"--divkit-indicator-active-border-radius",le(t[2].borderRadius)),Y(n,"--divkit-indicator-active-background",t[2].background||""),Y(n,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),Y(n,"--divkit-indicator-active-scale",t[2].width/t[3].width),Y(n,"--divkit-indicator-default-margin","default"===t[4]?"0 ".concat(le((t[5]-t[3].width)/2)):""),Y(n,"--divkit-indicator-stretch-margin","stretch"===t[4]?le(t[7]):""),Y(n,"--divkit-indicator-stretch-max-count","stretch"===t[4]?t[6]:""),Y(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[4]?le((t[6]-1)*t[7]):""),W(e,"class",o=gi.indicator__scroller)},m(r,o){O(r,e,o),S(e,n),i&&i.m(n,null),t[38](n),t[39](e)},p(t,e){t[10]?i?i.p(t,e):(i=vi(t),i.c(),i.m(n,null)):i&&(i.d(1),i=null),28&e[0]&&Y(n,"margin","default"===t[4]?"0 ".concat(le(Math.max(0,t[2].width-t[3].width)/2)):""),8&e[0]&&Y(n,"--divkit-indicator-inactive-width",le(t[3].width)),8&e[0]&&Y(n,"--divkit-indicator-inactive-height",le(t[3].height)),8&e[0]&&Y(n,"--divkit-indicator-inactive-border-radius",le(t[3].borderRadius)),8&e[0]&&Y(n,"--divkit-indicator-inactive-background",t[3].background||""),8&e[0]&&Y(n,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),4&e[0]&&Y(n,"--divkit-indicator-active-width",le(t[2].width)),4&e[0]&&Y(n,"--divkit-indicator-active-height",le(t[2].height)),4&e[0]&&Y(n,"--divkit-indicator-active-border-radius",le(t[2].borderRadius)),4&e[0]&&Y(n,"--divkit-indicator-active-background",t[2].background||""),4&e[0]&&Y(n,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),12&e[0]&&Y(n,"--divkit-indicator-active-scale",t[2].width/t[3].width),56&e[0]&&Y(n,"--divkit-indicator-default-margin","default"===t[4]?"0 ".concat(le((t[5]-t[3].width)/2)):""),144&e[0]&&Y(n,"--divkit-indicator-stretch-margin","stretch"===t[4]?le(t[7]):""),80&e[0]&&Y(n,"--divkit-indicator-stretch-max-count","stretch"===t[4]?t[6]:""),208&e[0]&&Y(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[4]?le((t[6]-1)*t[7]):"")},d(n){n&&I(e),i&&i.d(),t[38](null),t[39](null)}}}function bi(t){let e,n;return e=new bn({props:{cls:Ee("indicator",gi,t[11]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[$i]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Ee("indicator",gi,t[11])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),2044&n[0]|131072&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}const _i=["rounded_rectangle","circle"];function wi(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A=n,j=n,V=n,F=n,D=n,S=n,P=n,N=n,O=n;var I,M;t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O()));let{componentContext:T}=e,{layoutParams:z}=e;const R=pt(re),B=R.direction;f(t,B,(t=>r(27,v=t)));let L,U,W,H={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},q={width:10,height:10,borderRadius:5,background:"#33919cb5"},J="default",G=15,K=10,X=5;function Y(t){t!==W.currentItem&&W.scrollToPagerItem(t)}async function Z(t){W.scrollToPagerItem(t),await _t();const e=U.querySelector(".".concat(gi.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"componentContext"in t&&r(0,T=t.componentContext),"layoutParams"in t&&r(1,z=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(26,o=T.origJson),67108864&t.$$.dirty[0]&&o&&(r(4,J="default"),r(5,G=15),r(6,K=10),r(7,X=5),r(2,H={width:13,height:13,borderRadius:6.5,background:"#ffdc60"}),r(3,q={width:10,height:10,borderRadius:5,background:"#33919cb5"})),1&t.$$.dirty[0]&&(r(20,i=T.getDerivedFromVars(T.json.shape)),S(),S=p(i,(t=>r(33,x=t)))),1&t.$$.dirty[0]&&(r(19,a=T.getDerivedFromVars(T.json.active_item_color)),F(),F=p(a,(t=>r(31,_=t)))),1&t.$$.dirty[0]&&(r(18,s=T.getDerivedFromVars(T.json.inactive_item_color)),D(),D=p(s,(t=>r(32,w=t)))),1&t.$$.dirty[0]&&(r(17,l=T.getDerivedFromVars(T.json.active_item_size)),P(),P=p(l,(t=>r(34,k=t)))),1&t.$$.dirty[0]&&(r(16,c=T.getDerivedFromVars(T.json.active_shape)),O(),O=p(c,(t=>r(36,E=t)))),1&t.$$.dirty[0]&&(r(15,u=T.getDerivedFromVars(T.json.inactive_shape)),N(),N=p(u,(t=>r(35,C=t)))),1&t.$$.dirty[0]&&(r(14,d=T.getDerivedFromVars(T.json.space_between_centers)),j(),j=p(d,(t=>r(29,$=t)))),1&t.$$.dirty[0]&&(r(13,h=T.getDerivedFromVars(T.json.items_placement)),V(),V=p(h,(t=>r(30,b=t)))),12&t.$$.dirty[0]|63&t.$$.dirty[1]&&(E&&r(2,H=Qn({type:"shape_drawable",shape:E},_i,H)),C&&r(3,q=Qn({type:"shape_drawable",shape:C},_i,q)),!E&&!C&&x)){const t=wn(k,1.3);r(3,q=Qn({type:"shape_drawable",shape:x,color:q.background},_i,q)),r(3,q.background=de(w,1,q.background),q),r(2,H=Object.assign(Object.assign({},q),{width:q.width*t,height:q.height*t,borderRadius:q.borderRadius*t,background:H.background})),r(2,H.background=de(_,1,H.background),H)}if(1660944624&t.$$.dirty[0])if(!b||"default"!==b.type&&"stretch"!==b.type)r(4,J="default"),$&&r(5,G=we($.value,G));else if(r(4,J=b.type),"default"===J)r(5,G=we(null===r(24,I=b.space_between_centers)||void 0===I?void 0:I.value,G));else if("stretch"===J){const t=b;r(6,K=wn(t.max_visible_items,K)),r(7,X=we(null===r(25,M=t.item_spacing)||void 0===M?void 0:M.value,X))}268435456&t.$$.dirty[0]&&async function(t){if(T.json.pager_id&&t.has(T.json.pager_id)&&(r(10,W=t.get(T.json.pager_id)),await _t(),U)){const t=U.children[W.currentItem];if(t){const e=t.offsetLeft;L.scroll({left:e-L.clientWidth/2,behavior:"smooth"})}}}(y),134217744&t.$$.dirty[0]&&r(11,m={placement:J,direction:v})},r(12,g=R.getStore("pagers")),A(),A=p(g,(t=>r(28,y=t))),[T,z,H,q,J,G,K,X,L,U,W,m,g,h,d,u,c,l,s,a,i,B,Y,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=W;if(37===t.which)Z(n-1<0?n:n-1);else if(39===t.which)Z(n+1>=e?n:n+1);else if(36===t.which)Z(0);else{if(35!==t.which)return;Z(e-1)}t.preventDefault()},I,M,o,v,y,$,b,_,w,x,k,C,E,t=>Y(t),function(t){gt[t?"unshift":"push"]((()=>{U=t,r(9,U)}))},function(t){gt[t?"unshift":"push"]((()=>{L=t,r(8,L)}))}]}const xi={slider:"divkit-ef4f7",slider__input:"divkit-d1d65",slider__input_secondary:"divkit-c7980",slider__thumb:"divkit-f3453",slider_direction_rtl:"divkit-fb7b5",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 ki(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&de(t.text_color)||"#000",o=xn(t.font_weight);if(Ze(t.font_size)&&"transparent"!==r){var i,a;const e={fontSize:le(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 Ci(t,e,n){return Math.max(e,Math.min(n,Number(t)))}const Ei="function"==typeof BigInt;function Ai(t){return Ei?BigInt(t):Number(t)}const ji=Ai("9223372036854775807"),Vi=Ai("-9223372036854775808");function Fi(t){const e=Ai(t);if(e>ji||e<Vi)throw new Error("Integer overflow.");if("number"==typeof e&&(Number.isNaN(e)||e!==Math.round(e)))throw new Error("Incorrect integer value.");return e}const Di=Fi(0);function Si(t){let e=t;return e<0&&(e=-e),e}function Pi(t){let e=0;return t>0?e=1:t<0&&(e=-1),Fi(e)}class Ni{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=te(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}}class Oi extends Ni{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}}class Ii extends Ni{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t)throw new Error("Incorrect variable value");try{return Fi(t)}catch(t){throw new Error("Incorrect variable value")}}fromString(t){try{return Fi(t)}catch(t){throw new Error("Incorrect variable value")}}getType(){return"integer"}}class Mi extends Ni{convertValue(t){if("number"!=typeof t||Number.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"}}class Ti extends Ni{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"}}class zi extends Ni{convertValue(t){if("string"!=typeof t||!pe(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}}class Ri extends Ni{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}}class Bi extends Ni{convertValue(t){if("object"!=typeof t||!t)throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Dict variable does not support setter from string")}getType(){return"dict"}}class Li extends Ni{convertValue(t){if(!Array.isArray(t))throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Array variable does not support setter from string")}getType(){return"array"}}const Ui={string:Oi,number:Mi,integer:Ii,boolean:Ti,color:zi,url:Ri,dict:Bi,array:Li};function Wi(t,e,n){if(!(e in Ui))throw new Error("Unsupported variable type");return new Ui[e](t,n)}function Hi(){}function qi(t){return t(this.value),Hi}function Ji(){throw new Error("Cannot change the value of this type of variable")}const Gi={string:class extends Oi{},number:class extends Mi{},integer:class extends Ii{},boolean:class extends Ti{},color:class extends zi{},url:class extends Ri{},dict:class extends Bi{},array:class extends Li{}};for(const t in Gi){const e=Gi[t];e.prototype.subscribe=qi,e.prototype.set=Ji,e.prototype.setValue=Ji}function Ki(t,e,n){const r=t.slice();return r[82]=e[n],r}function Xi(t,e,n){const r=t.slice();return r[82]=e[n],r}function Yi(t){let e,n;return e=new bn({props:{cls:Ee("slider",xi,t[24]),style:t[25],customDescription:!0,customActions:"slider",hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[oa,t=>{let{focusHandler:e,blurHandler:n}=t;return{80:e,81:n}},t=>{let{focusHandler:e,blurHandler:n}=t;return[0,0,(e?262144:0)|(n?524288:0)]}]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};16777216&n[0]&&(r.cls=Ee("slider",xi,t[24])),33554432&n[0]&&(r.style=t[25]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),205518844&n[0]|34340864&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Zi(t){let e,n;return{c(){e=T("div"),W(e,"class",n=xi.slider__tick+" "+xi.slider__tick_active),Y(e,"--divkit-slider-tick",t[82])},m(t,n){O(t,e,n)},p(t,n){262144&n[0]&&Y(e,"--divkit-slider-tick",t[82])},d(t){t&&I(e)}}}function Qi(t){let e,n;return{c(){e=T("div"),W(e,"class",n=xi.slider__tick+" "+xi.slider__tick_inactive),Y(e,"--divkit-slider-tick",t[82])},m(t,n){O(t,e,n)},p(t,n){524288&n[0]&&Y(e,"--divkit-slider-tick",t[82])},d(t){t&&I(e)}}}function ta(t){let e,n,r,o,i;return{c(){var a,s,l;e=T("div"),n=T("div"),r=R(t[12]),W(n,"class",o=xi["slider__thumb-text-inner"]),Y(n,"font-size",(null===(a=t[9])||void 0===a?void 0:a.fontSize)||"1em"),Y(n,"font-weight",(null===(s=t[9])||void 0===s?void 0:s.fontWeight)||""),Y(n,"color",(null===(l=t[9])||void 0===l?void 0:l.textColor)||"#000"),W(e,"class",i=xi["slider__thumb-text"])},m(t,o){O(t,e,o),S(e,n),S(n,r)},p(t,e){var o,i,a;4096&e[0]&&K(r,t[12]),512&e[0]&&Y(n,"font-size",(null===(o=t[9])||void 0===o?void 0:o.fontSize)||"1em"),512&e[0]&&Y(n,"font-weight",(null===(i=t[9])||void 0===i?void 0:i.fontWeight)||""),512&e[0]&&Y(n,"color",(null===(a=t[9])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&I(e)}}}function ea(t){let e,n,r=t[10]&&na(t);return{c(){e=T("div"),r&&r.c(),W(e,"class",n=xi.slider__thumb+" "+xi.slider__thumb_secondary),Y(e,"border-radius",le(t[6].borderRadius)),Y(e,"background",t[6].background),Y(e,"box-shadow",t[6].boxShadow||"")},m(t,n){O(t,e,n),r&&r.m(e,null)},p(t,n){t[10]?r?r.p(t,n):(r=na(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),64&n[0]&&Y(e,"border-radius",le(t[6].borderRadius)),64&n[0]&&Y(e,"background",t[6].background),64&n[0]&&Y(e,"box-shadow",t[6].boxShadow||"")},d(t){t&&I(e),r&&r.d()}}}function na(t){let e,n,r,o,i;return{c(){var a,s,l;e=T("div"),n=T("div"),r=R(t[13]),W(n,"class",o=xi["slider__thumb-text-inner"]),Y(n,"font-size",(null===(a=t[10])||void 0===a?void 0:a.fontSize)||"1em"),Y(n,"font-weight",(null===(s=t[10])||void 0===s?void 0:s.fontWeight)||""),Y(n,"color",(null===(l=t[10])||void 0===l?void 0:l.textColor)||"#000"),W(e,"class",i=xi["slider__thumb-text"]+" "+xi["slider__thumb-text_secondary"])},m(t,o){O(t,e,o),S(e,n),S(n,r)},p(t,e){var o,i,a;8192&e[0]&&K(r,t[13]),1024&e[0]&&Y(n,"font-size",(null===(o=t[10])||void 0===o?void 0:o.fontSize)||"1em"),1024&e[0]&&Y(n,"font-weight",(null===(i=t[10])||void 0===i?void 0:i.fontWeight)||""),1024&e[0]&&Y(n,"color",(null===(a=t[10])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&I(e)}}}function ra(t){let e,n,r,o,i;return{c(){e=T("input"),W(e,"type","range"),W(e,"class",n=t[17]?xi.slider__input:"".concat(xi.slider__input," ").concat(xi.slider__input_secondary)),W(e,"min",t[3]),W(e,"max",t[4]),W(e,"step","1"),e.value=r=t[17]?t[12]:t[13],W(e,"aria-label",t[21])},m(n,r){O(n,e,r),o||(i=[U(e,"input",t[73]),U(e,"mousedown",(function(){l(t[14]?t[41]:null)&&(t[14]?t[41]:null).apply(this,arguments)})),U(e,"touchstart",(function(){l(t[14]?t[41]:null)&&(t[14]?t[41]:null).apply(this,arguments)})),U(e,"focus",(function(){l(t[80])&&t[80].apply(this,arguments)})),U(e,"blur",(function(){l(t[81])&&t[81].apply(this,arguments)}))],o=!0)},p(o,i){t=o,131072&i[0]&&n!==(n=t[17]?xi.slider__input:"".concat(xi.slider__input," ").concat(xi.slider__input_secondary))&&W(e,"class",n),8&i[0]&&W(e,"min",t[3]),16&i[0]&&W(e,"max",t[4]),143360&i[0]&&r!==(r=t[17]?t[12]:t[13])&&(e.value=r),2097152&i[0]&&W(e,"aria-label",t[21])},d(t){t&&I(e),o=!1,s(i)}}}function oa(t){let e,n,r,o,i,a,c,u,d,p,f,h,g,m,v,y,$,b,_,w,x,k,C=zt(t[18]),E=[];for(let e=0;e<C.length;e+=1)E[e]=Zi(Xi(t,C,e));let A=zt(t[19]),j=[];for(let e=0;e<A.length;e+=1)j[e]=Qi(Ki(t,A,e));let V=t[9]&&ta(t),F=t[14]&&ea(t),D=t[14]&&ra(t);return{c(){e=T("div"),n=T("div"),r=T("div"),i=B(),a=T("div"),u=B();for(let t=0;t<E.length;t+=1)E[t].c();d=B();for(let t=0;t<j.length;t+=1)j[t].c();p=B(),f=T("div"),V&&V.c(),g=B(),F&&F.c(),m=B(),v=T("input"),b=B(),D&&D.c(),W(r,"class",o=xi.slider__track),Y(r,"height",le(t[7].height)),Y(r,"border-radius",le(t[7].borderRadius)),Y(r,"background",t[7].background),Y(r,"box-shadow",t[7].boxShadow||""),W(a,"class",c=xi["slider__active-track"]),Y(a,"left","ltr"===t[15]?(100*t[26]).toFixed(2)+"%":void 0),Y(a,"right","ltr"===t[15]?void 0:(100*t[26]).toFixed(2)+"%"),Y(a,"width",(100*t[27]).toFixed(2)+"%"),Y(a,"height",le(t[8].height)),Y(a,"border-radius",le(t[8].borderRadius)),Y(a,"background",t[8].background),Y(a,"box-shadow",t[8].boxShadow||""),W(f,"class",h=xi.slider__thumb),Y(f,"border-radius",le(t[5].borderRadius)),Y(f,"background",t[5].background),Y(f,"box-shadow",t[5].boxShadow||""),W(v,"type","range"),W(v,"class",y=t[17]?"".concat(xi.slider__input," ").concat(xi.slider__input_secondary):xi.slider__input),W(v,"min",t[3]),W(v,"max",t[4]),W(v,"step","1"),v.value=$=t[17]?t[13]:t[12],W(v,"aria-label",t[20]),W(n,"class",_=xi["slider__tracks-inner"]),W(e,"class",w=xi["slider__tracks-wrapper"])},m(o,s){O(o,e,s),S(e,n),S(n,r),S(n,i),S(n,a),S(n,u);for(let t=0;t<E.length;t+=1)E[t]&&E[t].m(n,null);S(n,d);for(let t=0;t<j.length;t+=1)j[t]&&j[t].m(n,null);S(n,p),S(n,f),V&&V.m(f,null),S(n,g),F&&F.m(n,null),S(n,m),S(n,v),t[72](v),S(n,b),D&&D.m(n,null),t[74](n),x||(k=[U(v,"input",t[71]),U(v,"focus",(function(){l(t[80])&&t[80].apply(this,arguments)})),U(v,"blur",(function(){l(t[81])&&t[81].apply(this,arguments)}))],x=!0)},p(e,o){if(t=e,128&o[0]&&Y(r,"height",le(t[7].height)),128&o[0]&&Y(r,"border-radius",le(t[7].borderRadius)),128&o[0]&&Y(r,"background",t[7].background),128&o[0]&&Y(r,"box-shadow",t[7].boxShadow||""),67141632&o[0]&&Y(a,"left","ltr"===t[15]?(100*t[26]).toFixed(2)+"%":void 0),67141632&o[0]&&Y(a,"right","ltr"===t[15]?void 0:(100*t[26]).toFixed(2)+"%"),134217728&o[0]&&Y(a,"width",(100*t[27]).toFixed(2)+"%"),256&o[0]&&Y(a,"height",le(t[8].height)),256&o[0]&&Y(a,"border-radius",le(t[8].borderRadius)),256&o[0]&&Y(a,"background",t[8].background),256&o[0]&&Y(a,"box-shadow",t[8].boxShadow||""),262144&o[0]){let e;for(C=zt(t[18]),e=0;e<C.length;e+=1){const r=Xi(t,C,e);E[e]?E[e].p(r,o):(E[e]=Zi(r),E[e].c(),E[e].m(n,d))}for(;e<E.length;e+=1)E[e].d(1);E.length=C.length}if(524288&o[0]){let e;for(A=zt(t[19]),e=0;e<A.length;e+=1){const r=Ki(t,A,e);j[e]?j[e].p(r,o):(j[e]=Qi(r),j[e].c(),j[e].m(n,p))}for(;e<j.length;e+=1)j[e].d(1);j.length=A.length}t[9]?V?V.p(t,o):(V=ta(t),V.c(),V.m(f,null)):V&&(V.d(1),V=null),32&o[0]&&Y(f,"border-radius",le(t[5].borderRadius)),32&o[0]&&Y(f,"background",t[5].background),32&o[0]&&Y(f,"box-shadow",t[5].boxShadow||""),t[14]?F?F.p(t,o):(F=ea(t),F.c(),F.m(n,m)):F&&(F.d(1),F=null),131072&o[0]&&y!==(y=t[17]?"".concat(xi.slider__input," ").concat(xi.slider__input_secondary):xi.slider__input)&&W(v,"class",y),8&o[0]&&W(v,"min",t[3]),16&o[0]&&W(v,"max",t[4]),143360&o[0]&&$!==($=t[17]?t[13]:t[12])&&(v.value=$),1048576&o[0]&&W(v,"aria-label",t[20]),t[14]?D?D.p(t,o):(D=ra(t),D.c(),D.m(n,null)):D&&(D.d(1),D=null)},d(n){n&&I(e),M(E,n),M(j,n),V&&V.d(),F&&F.d(),t[72](null),D&&D.d(),t[74](null),x=!1,s(k)}}}function ia(t){let e,n,r,o,i=!t[11]&&Yi(t);return{c(){i&&i.c(),e=L()},m(a,s){i&&i.m(a,s),O(a,e,s),n=!0,r||(o=U(window,"resize",t[43]),r=!0)},p(t,n){t[11]?i&&(St(),Ot(i,1,1,(()=>{i=null})),Pt()):i?(i.p(t,n),2048&n[0]&&Nt(i,1)):(i=Yi(t),i.c(),Nt(i,1),i.m(e.parentNode,e))},i(t){n||(Nt(i),n=!0)},o(t){Ot(i),n=!1},d(t){t&&I(e),i&&i.d(t),r=!1,o()}}}const aa={width:10,height:10,borderRadius:5,background:"#000"},sa=["rounded_rectangle","circle"],la=["rounded_rectangle"];function ca(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 ua(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,M,T,z,R,B,L,U,W,H,q=n,J=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;var at,st,ct,dt;t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),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()));let{componentContext:ft}=e,{layoutParams:ht}=e;const mt=pt(re),vt=pt(We),yt=mt.direction;let $t,bt,_t;f(t,yt,(t=>r(15,D=t)));let wt,xt,kt,Ct=!1,Et=0,At=100,jt=aa,Vt=jt,Ft=aa,Dt=aa,St=null,Pt=null,Nt=kt,Ot="",It="",Mt=!1,Tt=Ci(U||0,Et,At),zt=Ci(L||0,Et,At);function Rt(t,e){const n=Number(t.target.value);Ct===("first"===e)?(r(13,zt=n),l.setValue(n)):(r(12,Tt=n),s.setValue(n))}let Bt=!1;function Lt(){if(!_t)return;const t=At-Et,e=(null==St?void 0:St.width)||0,n=(null==Pt?void 0:Pt.width)||0;Math.max(e,n)*t>=(null==_t?void 0:_t.clientWidth)?Bt||(ft.logError(oe(new Error("Slider ticks overlap each other"),{level:"warn"})),Bt=!0):Bt=!1}const Ut=Nn(Lt,50);return lt((()=>{Lt()})),ut((()=>{$t&&(mt.unregisterFocusable($t),r(48,$t=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,ft=t.componentContext),"layoutParams"in t&&r(1,ht=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(56,o=ft.origJson),33554432&t.$$.dirty[1]&&o&&(r(5,jt=aa),r(6,Vt=jt),r(7,Ft=aa),r(8,Dt=aa),r(49,St=null),r(50,Pt=null),r(9,kt=void 0),r(10,Nt=void 0),r(20,Ot=""),r(21,It="")),1&t.$$.dirty[0]&&r(55,i=ft.json.thumb_value_variable),1&t.$$.dirty[0]&&r(14,a=ft.json.thumb_secondary_value_variable),1&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&(r(22,s=i&&ft.getVariable(i,"integer")||Wi("temp","integer",0)),rt(),rt=p(s,(t=>r(68,U=t)))),16385&t.$$.dirty[0]&&(r(23,l=a&&ft.getVariable(a,"integer")||Wi("temp","integer",0)),nt(),nt=p(l,(t=>r(67,L=t)))),1&t.$$.dirty[0]&&(r(39,c=ft.getDerivedFromVars(ft.json.min_value)),it(),it=p(c,(t=>r(70,H=t)))),1&t.$$.dirty[0]&&(r(38,u=ft.getDerivedFromVars(ft.json.max_value)),ot(),ot=p(u,(t=>r(69,W=t)))),1&t.$$.dirty[0]&&(r(37,d=ft.getDerivedFromVars(ft.json.thumb_style)),et(),et=p(d,(t=>r(66,B=t)))),1&t.$$.dirty[0]&&(r(36,h=ft.getDerivedFromVars(ft.json.thumb_secondary_style)),tt(),tt=p(h,(t=>r(65,R=t)))),1&t.$$.dirty[0]&&(r(35,g=ft.getDerivedFromVars(ft.json.track_inactive_style)),Q(),Q=p(g,(t=>r(64,z=t)))),1&t.$$.dirty[0]&&(r(34,m=ft.getDerivedFromVars(ft.json.track_active_style)),Z(),Z=p(m,(t=>r(63,T=t)))),1&t.$$.dirty[0]&&(r(33,v=ft.getDerivedFromVars(ft.json.tick_mark_active_style)),Y(),Y=p(v,(t=>r(62,M=t)))),1&t.$$.dirty[0]&&(r(32,y=ft.getDerivedFromVars(ft.json.tick_mark_inactive_style)),X(),X=p(y,(t=>r(61,I=t)))),1&t.$$.dirty[0]&&(r(31,$=ft.getDerivedFromVars(ft.json.thumb_text_style)),K(),K=p($,(t=>r(60,O=t)))),1&t.$$.dirty[0]&&(r(30,b=ft.getDerivedFromVars(ft.json.thumb_secondary_text_style)),G(),G=p(b,(t=>r(59,N=t)))),1&t.$$.dirty[0]&&(r(29,_=ft.getDerivedFromVars(ft.json.accessibility)),J(),J=p(_,(t=>r(58,P=t)))),1&t.$$.dirty[0]&&(r(28,w=ft.getDerivedFromVars(ft.json.secondary_value_accessibility)),q(),q=p(w,(t=>r(57,S=t)))),24&t.$$.dirty[0]|384&t.$$.dirty[2]&&(r(3,Et=Ie(H,Et)),r(4,At=Ie(W,At)),Lt()),4120&t.$$.dirty[0]|64&t.$$.dirty[2]){const t=Ci(U||0,Et,At);t!==Tt&&r(12,Tt=t)}if(8216&t.$$.dirty[0]|32&t.$$.dirty[2]){const t=Ci(L||0,Et,At);t!==zt&&r(13,zt=t)}if(32&t.$$.dirty[0]|16&t.$$.dirty[2]&&r(5,jt=Qn(B,sa,jt)),32&t.$$.dirty[0]|8&t.$$.dirty[2]&&r(6,Vt=Qn(R,sa,jt)),128&t.$$.dirty[0]|4&t.$$.dirty[2]&&r(7,Ft=Qn(z,la,Ft)),256&t.$$.dirty[0]|2&t.$$.dirty[2]&&r(8,Dt=Qn(T,la,Dt)),1&t.$$.dirty[2]){let t=Qn(M,sa,aa);t!==aa&&r(49,St=t)}if(28696&t.$$.dirty[0]|262144&t.$$.dirty[1]&&(St?(r(18,wt=a?ca(Math.min(Tt,zt),Math.max(Tt,zt)+1,Et,At,!0):ca(Et,Tt,Et,At,!0)),Lt()):r(18,wt=[])),1073741824&t.$$.dirty[1]){let t=Qn(I,sa,aa);t!==aa&&r(50,Pt=t)}if(28696&t.$$.dirty[0]|524288&t.$$.dirty[1]&&(Pt?(r(19,xt=a?ca(Math.min(Tt,zt),Math.max(Tt,zt)+1,Et,At,!1):ca(Tt+1,At+1,Et,At,!0)),Lt()):r(19,xt=[])),512&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&r(9,kt=ki(O,kt)),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(10,Nt=ki(N,kt)),1&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&((null==P?void 0:P.description)?r(20,Ot=P.description):ft.logError(oe(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),16385&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&((null==S?void 0:S.description)?r(21,It=S.description):a&&ft.logError(oe(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),2465&t.$$.dirty[0]){let t=!1;vt.hasAction()?(ft.logError(oe(new Error('Cannot show "slider" inside component with action'))),t=!0):jt===aa?(ft.logError(oe(new Error('Missing "thumb_style" in slider'))),t=!0):Dt===aa?(ft.logError(oe(new Error('Missing "track_active_style" in slider'))),t=!0):Ft===aa&&(ft.logError(oe(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Mt&&r(11,Mt=t)}96&t.$$.dirty[0]&&r(54,x=le(Math.max(...[jt.width,Vt.width,0].filter(Fe)))),96&t.$$.dirty[0]&&r(53,k=le(Math.max(...[jt.height,Vt.height,0].filter(Fe)))),4120&t.$$.dirty[0]&&r(52,C=(Tt-Et)/(At-Et)),24600&t.$$.dirty[0]&&r(51,E=a?(zt-Et)/(At-Et):void 0),3145728&t.$$.dirty[1]&&r(27,A=void 0!==E?Math.abs(E-C):C),3145728&t.$$.dirty[1]&&r(26,j=void 0!==E?Math.min(E,C):0),1632&t.$$.dirty[0]|16637952&t.$$.dirty[1]&&r(25,V={"--divkit-slider-thumb-width":le(jt.width),"--divkit-slider-thumb-height":le(jt.height),"--divkit-slider-thumb-secondary-width":le(Vt.width),"--divkit-slider-thumb-secondary-height":le(Vt.height),"--divkit-slider-text-offset-x":(null===r(44,at=null==kt?void 0:kt.offset)||void 0===at?void 0:at.x)?ce(kt.offset.x):void 0,"--divkit-slider-text-offset-y":(null===r(45,st=null==kt?void 0:kt.offset)||void 0===st?void 0:st.y)?ce(kt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===r(46,ct=null==Nt?void 0:Nt.offset)||void 0===ct?void 0:ct.x)?ce(Nt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===r(47,dt=null==Nt?void 0:Nt.offset)||void 0===dt?void 0:dt.y)?ce(Nt.offset.y):void 0,"--divkit-slider-tick-active-width":St?le(St.width):void 0,"--divkit-slider-tick-active-height":St?le(St.height):void 0,"--divkit-slider-tick-active-border-radius":St?le(St.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==St?void 0:St.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==St?void 0:St.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Pt?le(Pt.width):void 0,"--divkit-slider-tick-inactive-height":Pt?le(Pt.height):void 0,"--divkit-slider-tick-inactive-border-radius":Pt?le(Pt.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==Pt?void 0:Pt.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==Pt?void 0:Pt.boxShadow)||void 0,"--divkit-slider-max-thumb-width":x,"--divkit-slider-max-thumb-height":k,"--divkit-slider-track-part":C,"--divkit-slider-track-secondary-part":E}),32768&t.$$.dirty[0]&&r(24,F={direction:D}),5&t.$$.dirty[0]|131072&t.$$.dirty[1]&&ft.json&&bt&&($t&&(mt.unregisterFocusable($t),r(48,$t=void 0)),ft.json.id&&!ft.fakeElement&&(r(48,$t=ft.json.id),mt.registerFocusable($t,{focus(){bt&&bt.focus()}})))},[ft,ht,bt,Et,At,jt,Vt,Ft,Dt,kt,Nt,Mt,Tt,zt,a,D,_t,Ct,wt,xt,Ot,It,s,l,F,V,j,A,w,_,b,$,y,v,m,g,h,d,u,c,yt,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=_t.getBoundingClientRect();let a=(o-i.left)/i.width;"rtl"===D&&(a=1-a);const s=Et+(At-Et)*a,l=Math.round(Ci(s,Et,At));r(17,Ct=l<(Tt+zt)/2==Tt<zt)},Rt,Ut,at,st,ct,dt,$t,St,Pt,E,C,k,x,i,o,S,P,N,O,I,M,T,z,R,B,L,U,W,H,t=>Rt(t,"first"),function(t){gt[t?"unshift":"push"]((()=>{bt=t,r(2,bt)}))},t=>Rt(t,"second"),function(t){gt[t?"unshift":"push"]((()=>{_t=t,r(16,_t)}))}]}const da={input:"divkit-c3a4c","input_alignment-horizontal_center":"divkit-fc52a","input_alignment-horizontal_end":"divkit-e9096",input__aligner:"divkit-e0491",input__input:"divkit-f11e0",input__placeholder:"divkit-b7593","input_alignment-vertical_start":"divkit-cd14f","input_alignment-vertical_end":"divkit-cd38f","input_alignment-vertical_baseline":"divkit-dd6af","input_highlight-color":"divkit-cc00f",input__input_singleline:"divkit-ffd1e","input__scroll-wrapper":"divkit-ad8a3",input__input_multiline:"divkit-f61f0","input__input_has-custom-focus":"divkit-e6b50"};function pa(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=pa(e,t);return{start:n.start,added:n.removed,removed:n.added}}let n=0,r=e.length-1;const o=e.length-t.length;for(;n<r&&n<t.length&&t[n]===e[n];)++n;for(;r-o>=n&&t[r-o]===e[r];)--r;return++r,{start:n,added:r-n,removed:r-n-o}}function fa(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class ha{constructor(t){this.char=t}}class ga{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class ma{constructor(t){fa(this,"filters",new Map),fa(this,"destructedValue",[]),fa(this,"cursorPos",0),this.maskData=t,this.updateMaskData(t)}get cursorPosition(){return this.cursorPos}get rawValue(){return this.collectValueRange(0,this.destructedValue.length-1)}get value(){let t="";for(let e=0;e<this.destructedValue.length;++e){const n=this.destructedValue[e];if(n instanceof ha)t+=n.char;else if(n instanceof ga)if(n.char)t+=n.char;else{if(!this.maskData.alwaysVisible)break;t+=n.placeholder}}return t}firstEmptyHolderIndex(){const t=this.destructedValue.findIndex((t=>t instanceof ga&&!t.char));return-1!==t?t:this.destructedValue.length}updateMaskData(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.maskData!==t&&e?this.rawValue:null;this.filters=new Map,this.maskData=t,this.maskData.decoding.forEach((t=>{if(t.filter)try{const e=new RegExp(t.filter);this.filters.set(t.key,e)}catch(e){this.onException(oe(e,{level:"error",additional:{key:t.key}}))}})),this.destructedValue=this.maskData.pattern.split("").map((t=>{const e=this.maskData.decoding.find((e=>e.key===t));return e?new ga(null,this.filters.get(e.key),e.placeholder):new ha(t)})),null!==n&&this.overrideRawValue(n)}overrideRawValue(t){this.clearRange(0,this.destructedValue.length),this.replaceChars(t,0),this.cursorPos=Math.min(this.cursorPos,this.value.length)}applyChangeFrom(t,e){const n=pa(this.value,t);void 0!==e&&(n.start=Math.max(0,e-n.added));const r=this.buildBodySubstring(n,t),o=this.buildTailSubstring(n);this.cleanup(n);const i=this.firstEmptyHolderIndex(),a=o?this.calculateMaxShift(o,i):void 0;this.replaceChars(r,i,a);const s=this.firstEmptyHolderIndex();this.replaceChars(o,s),this.calculateCursorPosition(n,s)}buildBodySubstring(t,e){return e.substring(t.start,t.start+t.added)}buildTailSubstring(t){return this.collectValueRange(t.start+t.removed,this.destructedValue.length-1)}calculateMaxShift(t,e){if(this.filters.size<=1){let n=0,r=e;for(;r<this.destructedValue.length;)this.destructedValue[r]instanceof ga&&++n,++r;return Math.max(0,n-t.length)}const n=this.calculateInsertableSubstring(t,e);let r=0;for(;r<this.destructedValue.length&&n===this.calculateInsertableSubstring(t,e+r);)++r;return Math.max(0,r-1)}cleanup(t){if(0===t.added&&1===t.removed){let e=t.start;for(;e>=0;){const t=this.destructedValue[e];if(t instanceof ga&&null!==t.char){t.char=null;break}--e}}this.clearRange(t.start,this.destructedValue.length)}clearRange(t,e){let n=t;for(;n<e&&n<this.destructedValue.length;){const t=this.destructedValue[n];t instanceof ga&&(t.char=null),++n}}calculateCursorPosition(t,e){const n=this.firstEmptyHolderIndex();let r;r=t.start<n?Math.min(this.firstHolderAfter(e),this.value.length):n,this.cursorPos=r}calculateInsertableSubstring(t,e){let n="",r=e;const o=()=>{for(var t;r<this.destructedValue.length&&!(this.destructedValue[r]instanceof ga);)++r;return null===(t=this.destructedValue[r])||void 0===t?void 0:t.filter};return t.split("").forEach((t=>{const e=o();null!=e&&e.test(t)&&(n+=t,++r)})),n}collectValueRange(t,e){let n="",r=t;for(;r<=e;){const t=this.destructedValue[r];t instanceof ga&&null!==t.char&&(n+=t.char),++r}return n}replaceChars(t,e,n){let r=this.calculateInsertableSubstring(t,e);void 0!==n&&(r=r.substring(0,n));let o=e,i=0;for(;o<this.destructedValue.length&&i<r.length;){const t=this.destructedValue[o],e=r[i];t instanceof ga&&(t.char=e,++i),++o}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof ga);)++e;return e}}class va extends ma{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function ya(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class $a extends ma{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1?arguments[1]:void 0;super({pattern:"",decoding:[],alwaysVisible:!1}),ya(this,"currencyFormatter",new Intl.NumberFormat),ya(this,"decimalSeparator","."),ya(this,"localeDigits",{}),ya(this,"trimZeroRegExp",new RegExp("")),this.logError=e,this.initFormatter(t)}updateCurrencyParams(t){const e=this.parseFormat(this.rawValue)||0;this.initFormatter(t);const n=e.toString().replace(".",this.decimalSeparator);this.applyChangeFrom(n)}initFormatter(t){try{this.currencyFormatter=new Intl.NumberFormat(t,{minimumFractionDigits:2,maximumFractionDigits:2}),this.decimalSeparator=this.currencyFormatter.format(0)[1],this.localeDigits=new Array(10).fill("").reduce(((t,e,n)=>(t[n]=this.currencyFormatter.format(n)[0],t)),{}),this.trimZeroRegExp=new RegExp("^".concat(this.localeDigits[0],"+"))}catch(e){this.onException(oe(e,{level:"error",additional:{locale:t}}))}}invalidateMaskDataForFormatted(t){const e=this.currencyFormatter.format(t),n=this.formatPattern(e),r=[{key:"#",filter:"[".concat([...Object.values(this.localeDigits)].join(""),"]"),placeholder:this.localeDigits[0]},{key:this.decimalSeparator,filter:"[".concat(this.decimalSeparator,"]"),placeholder:this.decimalSeparator}];this.updateMaskData({pattern:n,decoding:r,alwaysVisible:this.maskData.alwaysVisible},!1)}overrideRawValue(t){const e=this.parseFormat(t)||0;this.invalidateMaskDataForFormatted(e),super.overrideRawValue(t)}applyChangeFrom(t,e){const n=pa(this.value,t),r=this.value.lastIndexOf(this.decimalSeparator),o=t.lastIndexOf(this.decimalSeparator),i=r!==o||-1===r&&-1===o,a=this.validFormat(t,n);this.cleanup(n);const s=this.parseFormat(a)||0;i&&this.invalidateMaskDataForFormatted(s),this.replaceChars(a,0),this.value.length>n.start&&!this.isDigit(this.value[n.start])?this.cursorPos=null!=e?e:this.cursorPosition:this.cursorPos=Math.abs(this.value.length-(t.length-(null!=e?e:this.cursorPosition)))}parseFormat(t){return parseFloat(t.replace(/./g,(t=>this.localeDigits[t]||(t===this.decimalSeparator?".":""))))}formatPattern(t){let e="";for(const n of t)e+=this.isDigit(n)?"#":n;return e}validFormat(t,e){if(!t)return"";let n=-1,r=0;for(;r<t.length;){if(t[r]===this.decimalSeparator&&!this.inDiff(e,r)){n=r;break}r++}let o=-1;1===e.added&&0===e.removed&&[",","."].includes(t[e.start])&&(o=e.start);const i=this.currencyFormatter.resolvedOptions().maximumFractionDigits;let a=i;if(-1!==n)for(r=n;r<t.length;)this.isDigit(t[r])&&!this.inDiff(e,r)&&a--,r++;else{let n=!1;for(let r=0;r<t.length;r++){const o=t[r];o===this.decimalSeparator?n=!0:!this.inDiff(e,r)&&n&&this.isDigit(o)&&a--}}const s=t.includes(this.decimalSeparator)||-1!==o,l=[];r=t.length-1;let c=!1;for(;r>=0;){const u=t[r],d=l.length<=i;this.isDigit(u)?this.inDiff(e,r)&&!c&&s?a>0&&(l.push(u),a--):l.push(u):d&&-1===n&&r===o?(l.push(this.decimalSeparator),c=!0):!d||u!==this.decimalSeparator||n!==r&&-1!==n||(l.push(this.decimalSeparator),c=!0,n=r),r--}return l.reverse().join("").replace(this.trimZeroRegExp,"")}inDiff(t,e){return t.start<=e&&e<t.start+t.added}isDigit(t){return Boolean(this.localeDigits[t])}onException(t){this.logError(t)}}const ba=3;function _a(t){const e=t.textContent;let n=0;return"string"==typeof e&&(n+=e.length,t instanceof HTMLElement&&("DIV"===t.tagName||"BR"===t.tagName)&&++n),n}function wa(t,e){if(t.nodeType!==ba)if(t instanceof HTMLElement&&"BR"===t.tagName)try{const e=window.getSelection();if(e){e.removeAllRanges();const n=document.createRange(),r=t.parentNode,o=Array.from(r.childNodes).indexOf(t)+1;n.setStart(r,o),n.setEnd(r,o),e.addRange(n)}}catch(t){}else for(let n=0,r=t.childNodes.length;n<r;++n){const r=t.childNodes[n],o=_a(r);if(e<=o)return void wa(r,e);e-=o}else try{const n=window.getSelection();if(n){n.removeAllRanges();const r=document.createRange();r.setStart(t,e),r.setEnd(t,e),n.addRange(r)}}catch(t){}}function xa(t){let e,n;return e=new bn({props:{cls:Ee("input",da,t[16]),style:t[15],customDescription:!0,customActions:"input",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[Va,t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return{95:e,96:n,97:r}},t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return[0,0,0,(e?4:0)|(n?8:0)|(r?16:0)]}]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.cls=Ee("input",da,t[16])),32768&n[0]&&(r.style=t[15]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),157564&n[0]|32&n[1]|60&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function ka(t){let e,n,r,o,i,a;return{c(){e=T("input"),W(e,"type",t[8]),W(e,"inputmode",t[9]),W(e,"class",n=Ee("input__input",da,{"has-custom-focus":t[97],singleline:!0})),W(e,"autocomplete","off"),W(e,"autocapitalize","off"),W(e,"aria-label",t[10]),W(e,"style",r=se(t[14])),e.disabled=o=!t[4],W(e,"placeholder",t[17]),e.value=t[3]},m(n,r){O(n,e,r),t[86](e),i||(a=[U(e,"input",t[38]),U(e,"mousedown",(function(){l(t[36]?t[39]:void 0)&&(t[36]?t[39]:void 0).apply(this,arguments)})),U(e,"click",(function(){l(t[36]?t[40]:void 0)&&(t[36]?t[40]:void 0).apply(this,arguments)})),U(e,"focus",(function(){l(t[95])&&t[95].apply(this,arguments)})),U(e,"blur",(function(){l(t[96])&&t[96].apply(this,arguments)}))],i=!0)},p(i,a){t=i,256&a[0]&&W(e,"type",t[8]),512&a[0]&&W(e,"inputmode",t[9]),16&a[3]&&n!==(n=Ee("input__input",da,{"has-custom-focus":t[97],singleline:!0}))&&W(e,"class",n),1024&a[0]&&W(e,"aria-label",t[10]),16384&a[0]&&r!==(r=se(t[14]))&&W(e,"style",r),16&a[0]&&o!==(o=!t[4])&&(e.disabled=o),131072&a[0]&&W(e,"placeholder",t[17]),8&a[0]&&e.value!==t[3]&&(e.value=t[3])},d(n){n&&I(e),t[86](null),i=!1,s(a)}}}function Ca(t){let e,n,r,o,i,a,s,l,c=!t[6]&&t[17]&&Ea(t);function u(t,e){return t[4]?ja:Aa}let d=u(t),p=d(t);return{c(){e=T("span"),c&&c.c(),n=B(),r=T("span"),o=R(""),s=B(),p.c(),W(r,"class",i=da.input__aligner),W(r,"aria-hidden","true"),W(r,"style",a=se(t[13])),W(e,"class",l=da["input__scroll-wrapper"])},m(t,i){O(t,e,i),c&&c.m(e,null),S(e,n),S(e,r),S(r,o),S(e,s),p.m(e,null)},p(t,o){!t[6]&&t[17]?c?c.p(t,o):(c=Ea(t),c.c(),c.m(e,n)):c&&(c.d(1),c=null),8192&o[0]&&a!==(a=se(t[13]))&&W(r,"style",a),d===(d=u(t))&&p?p.p(t,o):(p.d(1),p=d(t),p&&(p.c(),p.m(e,null)))},d(t){t&&I(e),c&&c.d(),p.d()}}}function Ea(t){let e,n,r,o;return{c(){e=T("div"),n=R(t[17]),W(e,"class",r=da.input__placeholder),W(e,"aria-hidden","true"),W(e,"style",o=se(t[14]))},m(t,r){O(t,e,r),S(e,n)},p(t,r){131072&r[0]&&K(n,t[17]),16384&r[0]&&o!==(o=se(t[14]))&&W(e,"style",o)},d(t){t&&I(e)}}}function Aa(t){let e,n,r,o,i;return{c(){e=T("span"),W(e,"class",n=Ee("input__input",da,{multiline:!0})),W(e,"autocapitalize","off"),W(e,"contenteditable","false"),W(e,"role","textbox"),W(e,"aria-label",t[10]),W(e,"aria-disabled","true"),W(e,"aria-multiline","true"),W(e,"style",r=se(t[14])),void 0===t[6]&&wt((()=>t[85].call(e)))},m(n,r){O(n,e,r),t[84](e),void 0!==t[6]&&(e.innerText=t[6]),o||(i=U(e,"input",t[85]),o=!0)},p(t,n){1024&n[0]&&W(e,"aria-label",t[10]),16384&n[0]&&r!==(r=se(t[14]))&&W(e,"style",r),64&n[0]&&t[6]!==e.innerText&&(e.innerText=t[6])},d(n){n&&I(e),t[84](null),o=!1,i()}}}function ja(t){let e,n,r,o,i;return{c(){e=T("span"),W(e,"class",n=Ee("input__input",da,{"has-custom-focus":t[97],multiline:!0})),W(e,"autocapitalize","off"),W(e,"contenteditable","true"),W(e,"role","textbox"),W(e,"tabindex","0"),W(e,"aria-label",t[10]),W(e,"aria-multiline","true"),W(e,"style",r=se(t[14])),void 0===t[6]&&wt((()=>t[83].call(e)))},m(n,r){O(n,e,r),t[82](e),void 0!==t[6]&&(e.innerText=t[6]),o||(i=[U(e,"input",t[83]),U(e,"input",t[38]),U(e,"paste",Pa),U(e,"mousedown",(function(){l(t[36]?t[39]:void 0)&&(t[36]?t[39]:void 0).apply(this,arguments)})),U(e,"click",(function(){l(t[36]?t[40]:void 0)&&(t[36]?t[40]:void 0).apply(this,arguments)})),U(e,"focus",(function(){l(t[95])&&t[95].apply(this,arguments)})),U(e,"blur",(function(){l(t[96])&&t[96].apply(this,arguments)}))],o=!0)},p(o,i){t=o,16&i[3]&&n!==(n=Ee("input__input",da,{"has-custom-focus":t[97],multiline:!0}))&&W(e,"class",n),1024&i[0]&&W(e,"aria-label",t[10]),16384&i[0]&&r!==(r=se(t[14]))&&W(e,"style",r),64&i[0]&&t[6]!==e.innerText&&(e.innerText=t[6])},d(n){n&&I(e),t[82](null),o=!1,s(i)}}}function Va(t){let e;function n(t,e){return t[5]?Ca:ka}let r=n(t),o=r(t);return{c(){o.c(),e=L()},m(t,n){o.m(t,n),O(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){t&&I(e),o.d(t)}}}function Fa(t){let e,n,r=!t[7]&&xa(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[7]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),128&n[0]&&Nt(r,1)):(r=xa(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}const Da="undefined"!=typeof document&&"inputMode"in document.createElement("input"),Sa={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url",password:"password"};function Pa(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function Na(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,M,T,z,R,B,L,U,W,H,q,J,G,K,X,Y,Z,Q,tt,et,nt,rt=n,ot=n,it=n,at=n,st=n,ct=n,dt=n,ft=n,ht=n,mt=n,vt=n,yt=n,$t=n,bt=n,wt=n,xt=n,kt=n,Ct=n,Et=n,At=n;var jt;t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>ct())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ft())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>mt())),t.$$.on_destroy.push((()=>vt())),t.$$.on_destroy.push((()=>yt())),t.$$.on_destroy.push((()=>$t())),t.$$.on_destroy.push((()=>bt())),t.$$.on_destroy.push((()=>wt())),t.$$.on_destroy.push((()=>xt())),t.$$.on_destroy.push((()=>kt())),t.$$.on_destroy.push((()=>Ct())),t.$$.on_destroy.push((()=>Et())),t.$$.on_destroy.push((()=>At()));let{componentContext:Vt}=e,{layoutParams:Ft}=e;const Dt=pt(re),St=Dt.direction;let Pt,Nt;f(t,St,(t=>r(65,z=t)));let Ot,It,Mt,Tt=!1,zt=null,Rt="",Bt="",Lt=!1,Ut="",Wt=12,Ht="",qt="",Jt="#000",Gt="",Kt="start",Xt="center",Yt="multi_line_text",Zt="text",Qt="",te=null,ee="",ne="",ie="",ae=!0;function se(t){Nt instanceof HTMLInputElement?r(2,Nt.selectionStart=r(2,Nt.selectionEnd=t,Nt),Nt):wa(Nt,t)}async function ue(){if(!Nt||!zt)return;zt.overrideRawValue(M),l.set(zt.rawValue),$(s,I=r(3,Rt=r(6,Bt=zt.value)),I);const t=zt.cursorPosition;await _t(),document.activeElement===Nt&&se(t)}return lt((()=>{Nt&&zt&&M&&(zt.overrideRawValue(M),$(s,I=r(3,Rt=r(6,Bt=zt.value)),I))})),ut((()=>{Pt&&(Dt.unregisterFocusable(Pt),r(42,Pt=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,Vt=t.componentContext),"layoutParams"in t&&r(1,Ft=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(61,o=Vt.origJson),1073741824&t.$$.dirty[1]&&o&&(r(44,Ut=""),r(45,Wt=12),r(46,Ot=void 0),r(47,Ht=""),r(48,It=void 0),r(50,Jt="#000"),r(51,Gt=""),r(52,Kt="left"),r(53,Xt="center"),r(54,Yt="multi_line_text"),r(8,Zt="text"),r(9,Mt=void 0),r(4,ae=!0)),1&t.$$.dirty[0]&&r(59,i=Vt.json.text_variable),1&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(60,a=null===r(41,jt=Vt.json.mask)||void 0===jt?void 0:jt.raw_text_variable),1&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(12,s=i&&Vt.getVariable(i,"string")||Wi("temp","string","")),rt(),rt=p(s,(t=>r(62,I=t)))),1&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&(r(11,l=a&&Vt.getVariable(a,"string")||Wi("temp","string","")),ot(),ot=p(l,(t=>r(63,M=t)))),1&t.$$.dirty[0]&&(r(35,c=Vt.getDerivedFromVars(Vt.json.hint_text)),Et(),Et=p(c,(t=>r(81,et=t)))),1&t.$$.dirty[0]&&(r(34,u=Vt.getDerivedFromVars(Vt.json.hint_color)),Ct(),Ct=p(u,(t=>r(80,tt=t)))),1&t.$$.dirty[0]&&(r(33,d=Vt.getDerivedFromVars(Vt.json.font_size)),kt(),kt=p(d,(t=>r(79,Q=t)))),1&t.$$.dirty[0]&&(r(32,h=Vt.getDerivedFromVars(Vt.json.font_weight)),xt(),xt=p(h,(t=>r(78,Z=t)))),1&t.$$.dirty[0]&&(r(31,g=Vt.getDerivedFromVars(Vt.json.font_family)),wt(),wt=p(g,(t=>r(77,Y=t)))),1&t.$$.dirty[0]&&(r(30,m=Vt.getDerivedFromVars(Vt.json.line_height)),bt(),bt=p(m,(t=>r(76,X=t)))),1&t.$$.dirty[0]&&(r(29,v=Vt.getDerivedFromVars(Vt.json.letter_spacing)),$t(),$t=p(v,(t=>r(75,K=t)))),1&t.$$.dirty[0]&&(r(28,y=Vt.getDerivedFromVars(Vt.json.text_color)),yt(),yt=p(y,(t=>r(74,G=t)))),1&t.$$.dirty[0]&&(r(27,b=Vt.getDerivedFromVars(Vt.json.highlight_color)),vt(),vt=p(b,(t=>r(73,J=t)))),1&t.$$.dirty[0]&&(r(26,_=Vt.getDerivedFromVars(Vt.json.text_alignment_horizontal)),mt(),mt=p(_,(t=>r(72,q=t)))),1&t.$$.dirty[0]&&(r(25,w=Vt.getDerivedFromVars(Vt.json.text_alignment_vertical)),ht(),ht=p(w,(t=>r(71,H=t)))),1&t.$$.dirty[0]&&(r(24,x=Vt.getDerivedFromVars(Vt.json.keyboard_type)),dt(),dt=p(x,(t=>r(69,U=t)))),1&t.$$.dirty[0]&&(r(23,k=Vt.getDerivedFromVars(Vt.json.mask)),ct(),ct=p(k,(t=>r(68,L=t)))),1&t.$$.dirty[0]&&(r(22,C=Vt.getDerivedFromVars(Vt.json.max_visible_lines)),st(),st=p(C,(t=>r(67,B=t)))),1&t.$$.dirty[0]&&(r(21,E=Vt.getDerivedFromVars(Vt.json.paddings)),at(),at=p(E,(t=>r(66,R=t)))),1&t.$$.dirty[0]&&(r(20,A=Vt.getDerivedFromVars(Vt.json.accessibility)),it(),it=p(A,(t=>r(64,T=t)))),1&t.$$.dirty[0]&&(r(19,j=Vt.getDerivedFromVars(Vt.json.select_all_on_focus)),At(),At=p(j,(t=>r(36,nt=t)))),1&t.$$.dirty[0]&&(r(18,V=Vt.getDerivedFromVars(Vt.json.is_enabled)),ft(),ft=p(V,(t=>r(70,W=t)))),1&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(i?r(7,Lt=!1):(r(7,Lt=!0),Vt.logError(oe(new Error('Missing "text_variable" in "input"'))))),64&t.$$.dirty[2]&&("fixed_length"===(null==(e=L)?void 0:e.type)?r(43,zt=function(t,e,n){if("string"==typeof t.pattern&&Array.isArray(t.pattern_elements)&&t.pattern_elements.every((t=>t.key&&"string"==typeof t.key))){const r={pattern:t.pattern,alwaysVisible:Boolean(t.always_visible),decoding:t.pattern_elements.map((t=>({key:t.key,filter:t.regex&&"string"==typeof t.regex?t.regex:void 0,placeholder:t.placeholder&&"string"==typeof t.placeholder?t.placeholder:"_"})))};return n?(n.updateMaskData(r),n):new va(r,e)}return n||null}(e,Vt.logError,zt)):"currency"===(null==e?void 0:e.type)&&r(43,zt=function(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new $a(t.locale,e)}(e,Vt.logError,zt)),zt&&ue()),8&t.$$.dirty[0]|4096&t.$$.dirty[1]|1&t.$$.dirty[2]&&(zt||Rt===I||r(3,Rt=r(6,Bt=I))),4096&t.$$.dirty[1]|2&t.$$.dirty[2]&&zt&&zt.rawValue!==M&&ue(),524288&t.$$.dirty[2]&&r(17,F=et),8192&t.$$.dirty[1]|262144&t.$$.dirty[2]&&r(44,Ut=de(tt,1,Ut)),16384&t.$$.dirty[1]|131072&t.$$.dirty[2]&&r(45,Wt=wn(Q,Wt)),32768&t.$$.dirty[1]|98304&t.$$.dirty[2]&&(r(46,Ot=kn(Z,Ot)),r(47,Ht=Y&&"string"==typeof Y?Dt.typefaceProvider(Y,{fontWeight:Ot||400}):"")),16384&t.$$.dirty[1]|16384&t.$$.dirty[2]){const t=X;Ze(t)&&r(48,It=t/Wt)}var e;8192&t.$$.dirty[2]&&Ve(K)&&r(49,qt=le(K)),524288&t.$$.dirty[1]|4096&t.$$.dirty[2]&&r(50,Jt=de(G,1,Jt)),1048576&t.$$.dirty[1]|2048&t.$$.dirty[2]&&r(51,Gt=de(J,1,Gt)),2097152&t.$$.dirty[1]|1032&t.$$.dirty[2]&&r(52,Kt=Fn(q,z,Kt)),4194304&t.$$.dirty[1]|512&t.$$.dirty[2]&&r(53,Xt=Dn(H,Xt)),16&t.$$.dirty[0]|256&t.$$.dirty[2]&&r(4,ae=Sn(W,ae)),192&t.$$.dirty[2]&&(U&&U in Sa&&(r(8,Zt=Sa[U]),r(54,Yt=U)),"currency"===(null==L?void 0:L.type)&&(r(8,Zt=Da?"text":"tel"),r(9,Mt="decimal"))),8388608&t.$$.dirty[1]&&r(5,D="multi_line_text"===Yt),33701888&t.$$.dirty[1]|56&t.$$.dirty[2]&&(Ze(B)?r(55,Qt="calc(".concat(B*(It||1.25)*(Wt/10)+"em"," + ").concat(ce(we(null==R?void 0:R.top,0)+we(null==R?void 0:R.bottom,0)),")")):r(55,Qt=""),r(56,te=Te(R||void 0,te)),r(57,ee=te?je({top:(Number(te.top)||0)/Wt*10,right:(Number("ltr"===z?te.end:te.start)||Number(te.right)||0)/Wt*10,bottom:(Number(te.bottom)||0)/Wt*10,left:(Number("ltr"===z?te.start:te.end)||Number(te.left)||0)/Wt*10},z):""),r(58,ne=te?je({top:(Number(te.top)||0)/Wt*10,bottom:(Number(te.bottom)||0)/Wt*10},z):"")),1&t.$$.dirty[0]|4&t.$$.dirty[2]&&((null==T?void 0:T.description)?r(10,ie=T.description):Vt.logError(oe(new Error('Missing accessibility "description" for input'),{level:"warn"}))),32&t.$$.dirty[0]|7340032&t.$$.dirty[1]&&r(16,S={"highlight-color":Boolean(Gt),multiline:D,"alignment-horizontal":Kt,"alignment-vertical":Xt}),18849792&t.$$.dirty[1]&&r(15,P={"--divkit-input-hint-color":Ut,"--divkit-input-highlight-color":Gt,"--divkit-input-line-height":It,"font-weight":Ot,"font-family":Ht,"letter-spacing":qt,color:Jt,"max-height":Qt}),67125248&t.$$.dirty[1]&&r(14,N={"font-size":le(Wt),padding:ee}),134234112&t.$$.dirty[1]&&r(13,O={"font-size":le(Wt),padding:ne}),5&t.$$.dirty[0]|2048&t.$$.dirty[1]&&Nt&&Vt.json&&(Pt&&(Dt.unregisterFocusable(Pt),r(42,Pt=void 0)),Vt.json.id&&!Vt.fakeElement&&(r(42,Pt=Vt.json.id),Dt.registerFocusable(Pt,{focus(){Nt&&Nt.focus()}})))},[Vt,Ft,Nt,Rt,ae,D,Bt,Lt,Zt,Mt,ie,l,s,O,N,P,S,F,V,j,A,E,C,k,x,w,_,b,y,v,m,g,h,d,u,c,nt,St,function(t){let e=(D?t.target.innerText:t.target.value)||"";"\n"===e&&(e=""),Rt!==e&&(r(3,Rt=r(6,Bt=e)),s.setValue(e),zt&&async function(){if(!Nt||!zt)return;zt.applyChangeFrom(Rt,Nt instanceof HTMLInputElement?null===Nt.selectionEnd?void 0:Nt.selectionEnd:function(t){try{let n=0;const r=window.getSelection();if(!r)return 0;const o=r.getRangeAt(0);let i;if(o){if(!o.collapsed)return 0;n+=o.endOffset,i=o.endContainer}if(i instanceof HTMLElement){let t=0;for(let e=0,r=Math.min(n,i.childNodes.length);e<r;++e)t+=_a(i.childNodes[e]);n=t}for(;i&&i!==t;){var e;const t=i.parentNode;if(!t)return 0;const r=Array.from(t.childNodes).indexOf(i);for(let e=0;e<r;++e)n+=_a(t.childNodes[e]);i instanceof HTMLElement&&("DIV"===i.tagName&&(null===(e=t.childNodes[r-1])||void 0===e?void 0:e.nodeType)===ba||"BR"===i.tagName)&&++n,i=t}return n}catch(t){return 0}}(Nt)),l.set(zt.rawValue),$(s,I=r(3,Rt=r(6,Bt=zt.value)),I);const t=zt.cursorPosition;await _t(),document.activeElement===Nt&&se(t)}())},function(){Tt=!1,setTimeout((()=>{Tt=!0}),250)},function(){if(!Tt)if(Nt instanceof HTMLInputElement)Nt.select();else{const t=window.getSelection(),e=document.createRange();e.selectNodeContents(Nt),t&&(t.removeAllRanges(),t.addRange(e))}},jt,Pt,zt,Ut,Wt,Ot,Ht,It,qt,Jt,Gt,Kt,Xt,Yt,Qt,te,ee,ne,i,a,o,I,M,T,z,R,B,L,U,W,H,q,J,G,K,X,Y,Z,Q,tt,et,function(t){gt[t?"unshift":"push"]((()=>{Nt=t,r(2,Nt)}))},function(){Bt=this.innerText,r(6,Bt),r(43,zt),r(3,Rt),r(62,I)},function(t){gt[t?"unshift":"push"]((()=>{Nt=t,r(2,Nt)}))},function(){Bt=this.innerText,r(6,Bt),r(43,zt),r(3,Rt),r(62,I)},function(t){gt[t?"unshift":"push"]((()=>{Nt=t,r(2,Nt)}))}]}const Oa={select:"divkit-feef3","select__select-text":"divkit-cd862",select_hint:"divkit-a3cf6",select__select:"divkit-bdb72","select__select_has-custom-focused":"divkit-a46ad","has-custom-focused":"divkit-fc5dc",select__option:"divkit-e774b"};function Ia(t,e,n){const r=t.slice();return r[55]=e[n],r}function Ma(t){let e,n;return e=new bn({props:{cls:Ee("select",Oa,t[11]),style:t[10],customDescription:!0,customActions:"select",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[za,t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return{52:e,53:n,54:r}},t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return[0,(e?2097152:0)|(n?4194304:0)|(r?8388608:0)]}]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Ee("select",Oa,t[11])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),8389564&n[0]|148897792&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Ta(t){let e,n,r,o,i=(t[55].text||t[55].value)+"";return{c(){e=T("option"),n=R(i),W(e,"class",r=Oa.select__option),e.__value=o=t[55].value,X(e,e.__value)},m(t,r){O(t,e,r),S(e,n)},p(t,r){16&r[0]&&i!==(i=(t[55].text||t[55].value)+"")&&K(n,i),16&r[0]&&o!==(o=t[55].value)&&(e.__value=o,X(e,e.__value))},d(t){t&&I(e)}}}function za(t){let e,n,r,o,i,a,c,u,d,p,f=(t[3]||t[23]||"")+"",h=zt(t[4]),g=[];for(let e=0;e<h.length;e+=1)g[e]=Ta(Ia(t,h,e));return{c(){e=T("span"),n=R(f),i=B(),a=T("select");for(let t=0;t<g.length;t+=1)g[t].c();W(e,"class",r=Oa["select__select-text"]),W(e,"style",o=se(t[9])),W(e,"aria-hidden","true"),W(a,"class",c=Ee("select__select",Oa,{"has-custom-focus":t[52]})),W(a,"aria-label",t[7]),W(a,"style",u=se(t[8])),void 0===t[5]&&wt((()=>t[49].call(a)))},m(r,o){O(r,e,o),S(e,n),O(r,i,o),O(r,a,o);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(a,null);t[48](a),Z(a,t[5],!0),d||(p=[U(a,"change",t[49]),U(a,"focus",(function(){l(t[53])&&t[53].apply(this,arguments)})),U(a,"blur",(function(){l(t[54])&&t[54].apply(this,arguments)}))],d=!0)},p(r,i){if(t=r,8388616&i[0]&&f!==(f=(t[3]||t[23]||"")+"")&&K(n,f),512&i[0]&&o!==(o=se(t[9]))&&W(e,"style",o),16&i[0]){let e;for(h=zt(t[4]),e=0;e<h.length;e+=1){const n=Ia(t,h,e);g[e]?g[e].p(n,i):(g[e]=Ta(n),g[e].c(),g[e].m(a,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=h.length}2097152&i[1]&&c!==(c=Ee("select__select",Oa,{"has-custom-focus":t[52]}))&&W(a,"class",c),128&i[0]&&W(a,"aria-label",t[7]),256&i[0]&&u!==(u=se(t[8]))&&W(a,"style",u),48&i[0]&&Z(a,t[5])},d(n){n&&(I(e),I(i),I(a)),M(g,n),t[48](null),d=!1,s(p)}}}function Ra(t){let e,n,r=!t[6]&&Ma(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[6]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),64&n[0]&&Nt(r,1)):(r=Ma(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}function Ba(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,M=n,T=n,z=n,R=n,B=n,L=n,U=n,W=n,H=n,q=n,J=n;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J()));let{componentContext:G}=e,{layoutParams:K}=e;const X=pt(re),Y=X.direction;let Z,Q;f(t,Y,(t=>r(46,P=t)));let tt,et,nt=!1,rt="",ot=null,it="",at="rgba(0,0,0,.45)",st=12,lt="",ct="",dt="#000",ft="";return ut((()=>{Z&&(X.unregisterFocusable(Z),r(25,Z=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,G=t.componentContext),"layoutParams"in t&&r(1,K=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(37,o=G.origJson),64&t.$$.dirty[1]&&o&&(r(26,ot=null),r(28,at="rgba(0,0,0,.45)"),r(29,st=12),r(30,tt=void 0),r(31,lt=""),r(32,et=void 0),r(33,ct=""),r(34,dt="#000"),r(7,ft="")),1&t.$$.dirty[0]&&r(35,i=G.json.value_variable),1&t.$$.dirty[0]&&r(36,a=G.json.options),32&t.$$.dirty[1]&&r(4,s=Array.isArray(a)&&a.filter((t=>"string"==typeof t.value))||[]),1&t.$$.dirty[0]|16&t.$$.dirty[1]&&(r(22,l=i&&G.getVariable(i,"string")||Wi("temp","string","")),q(),q=p(l,(t=>r(5,O=t)))),1&t.$$.dirty[0]&&(r(21,c=G.getDerivedFromVars(G.json.paddings)),H(),H=p(c,(t=>r(47,N=t)))),1&t.$$.dirty[0]&&(r(20,u=G.getDerivedFromVars(G.json.hint_text)),J(),J=p(u,(t=>r(23,I=t)))),1&t.$$.dirty[0]&&(r(19,d=G.getDerivedFromVars(G.json.hint_color)),W(),W=p(d,(t=>r(45,S=t)))),1&t.$$.dirty[0]&&(r(18,h=G.getDerivedFromVars(G.json.font_size)),U(),U=p(h,(t=>r(44,D=t)))),1&t.$$.dirty[0]&&(r(17,g=G.getDerivedFromVars(G.json.font_weight)),L(),L=p(g,(t=>r(43,F=t)))),1&t.$$.dirty[0]&&(r(16,m=G.getDerivedFromVars(G.json.font_family)),B(),B=p(m,(t=>r(42,V=t)))),1&t.$$.dirty[0]&&(r(15,v=G.getDerivedFromVars(G.json.line_height)),R(),R=p(v,(t=>r(41,j=t)))),1&t.$$.dirty[0]&&(r(14,y=G.getDerivedFromVars(G.json.letter_spacing)),z(),z=p(y,(t=>r(40,A=t)))),1&t.$$.dirty[0]&&(r(13,$=G.getDerivedFromVars(G.json.text_color)),T(),T=p($,(t=>r(39,E=t)))),1&t.$$.dirty[0]&&(r(12,b=G.getDerivedFromVars(G.json.accessibility)),M(),M=p(b,(t=>r(38,C=t)))),17&t.$$.dirty[0]&&(Array.isArray(s)&&s.length||G.logError(oe(new Error('Empty selection "items" in "select"')))),1&t.$$.dirty[0]|16&t.$$.dirty[1]&&(i?r(6,nt=!1):(r(6,nt=!0),G.logError(oe(new Error('Missing "value_variable" in "select"'))))),49&t.$$.dirty[0]){const t=s.find((t=>t.value===O));t?r(3,rt=("string"==typeof t.text?t.text:t.value)||""):(r(3,rt=""),O&&G.logError(oe(new Error('Value from the variable was not found in the selection items for "select"'))))}if(536870912&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(29,st=wn(D,st)),603979776&t.$$.dirty[0]|98304&t.$$.dirty[1]&&(r(26,ot=Te(N||void 0,ot)),r(27,it=ot?je({top:(Number(ot.top)||0)/st*10,right:(Number("ltr"===P?ot.end:ot.start)||Number(ot.right)||0)/st*10,bottom:(Number(ot.bottom)||0)/st*10,left:(Number("ltr"===P?ot.start:ot.end)||Number(ot.left)||0)/st*10},P):"")),268435456&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(28,at=de(S,1,at)),1073741824&t.$$.dirty[0]|6144&t.$$.dirty[1]&&(r(30,tt=kn(F,tt)),r(31,lt=V&&"string"==typeof V?X.typefaceProvider(V,{fontWeight:tt||400}):"")),536870912&t.$$.dirty[0]|1024&t.$$.dirty[1]){const t=j;Ze(t)&&r(32,et=t/st)}536870912&t.$$.dirty[0]|512&t.$$.dirty[1]&&Ve(A)&&r(33,ct=le(A/st*10)),264&t.$$.dirty[1]&&r(34,dt=de(E,1,dt)),1&t.$$.dirty[0]|128&t.$$.dirty[1]&&((null==C?void 0:C.description)?r(7,ft=C.description):G.logError(oe(new Error('Missing accessibility "description" for select'),{level:"warn"}))),8&t.$$.dirty[0]&&r(11,_={hint:!rt}),1342177280&t.$$.dirty[0]|9&t.$$.dirty[1]&&r(10,w={"--divkit-input-hint-color":at,"font-weight":tt,"font-family":lt,color:dt}),671088640&t.$$.dirty[0]|6&t.$$.dirty[1]&&r(9,x={padding:it,"font-size":le(st),"line-height":et,"letter-spacing":ct}),536870912&t.$$.dirty[0]|6&t.$$.dirty[1]&&r(8,k={"font-size":le(st),"line-height":et,"letter-spacing":ct}),33554437&t.$$.dirty[0]&&G.json&&Q&&(Z&&(X.unregisterFocusable(Z),r(25,Z=void 0)),G.json.id&&!G.fakeElement&&(r(25,Z=G.json.id),X.registerFocusable(Z,{focus(){Q&&Q.focus()}})))},[G,K,Q,rt,s,O,nt,ft,k,x,w,_,b,$,y,v,m,g,h,d,u,c,l,I,Y,Z,ot,it,at,st,tt,lt,et,ct,dt,i,a,o,C,E,A,j,V,F,D,S,P,N,function(t){gt[t?"unshift":"push"]((()=>{Q=t,r(2,Q)}))},function(){O=function(t){const e=t.querySelector(":checked");return e&&e.__value}(this),l.set(O),r(4,s),r(36,a),r(0,G)}]}const La={video__video:"divkit-c11f9","video__aspect-wrapper":"divkit-cfe32",video_aspect:"divkit-a4f5c"};function Ua(t,e,n){const r=t.slice();return r[47]=e[n],r}function Wa(t,e,n){const r=t.slice();return r[47]=e[n],r}function Ha(t){let e,n;return e=new bn({props:{cls:Ee("video",La,t[12]),customActions:"video",componentContext:t[0],layoutParams:t[1],$$slots:{default:[Za]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=Ee("video",La,t[12])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),8184&n[0]|2097152&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function qa(t){let e,n,r,o,i,a,l=zt(t[4]),c=[];for(let e=0;e<l.length;e+=1)c[e]=Ka(Ua(t,l,e));return{c(){e=T("video");for(let t=0;t<c.length;t+=1)c[t].c();W(e,"class",n=La.video__video),W(e,"style",r=se(t[11])),e.playsInline=!0,e.loop=t[5],e.autoplay=t[6],e.muted=t[7],W(e,"poster",t[9]),W(e,"preload",o=t[8]?"metadata":"auto")},m(n,r){O(n,e,r);for(let t=0;t<c.length;t+=1)c[t]&&c[t].m(e,null);t[41](e),i||(a=[U(e,"timeupdate",t[21]),U(e,"ended",t[22]),U(e,"playing",t[23]),U(e,"pause",t[24]),U(e,"waiting",t[25]),U(e,"error",t[26])],i=!0)},p(t,n){if(67108880&n[0]){let r;for(l=zt(t[4]),r=0;r<l.length;r+=1){const o=Ua(t,l,r);c[r]?c[r].p(o,n):(c[r]=Ka(o),c[r].c(),c[r].m(e,null))}for(;r<c.length;r+=1)c[r].d(1);c.length=l.length}2048&n[0]&&r!==(r=se(t[11]))&&W(e,"style",r),32&n[0]&&(e.loop=t[5]),64&n[0]&&(e.autoplay=t[6]),128&n[0]&&(e.muted=t[7]),512&n[0]&&W(e,"poster",t[9]),256&n[0]&&o!==(o=t[8]?"metadata":"auto")&&W(e,"preload",o)},d(n){n&&I(e),M(c,n),t[41](null),i=!1,s(a)}}}function Ja(t){let e,n,r,o,i,a,l,c,u="".concat(t[10],"%"),d=zt(t[4]),p=[];for(let e=0;e<d.length;e+=1)p[e]=Ya(Wa(t,d,e));return{c(){e=T("div"),n=T("video");for(let t=0;t<p.length;t+=1)p[t].c();W(n,"class",r=La.video__video),W(n,"style",o=se(t[11])),n.playsInline=!0,n.loop=t[5],n.autoplay=t[6],n.muted=t[7],W(n,"poster",t[9]),W(n,"preload",i=t[8]?"metadata":"auto"),W(e,"class",a=La["video__aspect-wrapper"]),Y(e,"padding-bottom",u)},m(r,o){O(r,e,o),S(e,n);for(let t=0;t<p.length;t+=1)p[t]&&p[t].m(n,null);t[40](n),l||(c=[U(n,"timeupdate",t[21]),U(n,"ended",t[22]),U(n,"playing",t[23]),U(n,"pause",t[24]),U(n,"waiting",t[25]),U(n,"error",t[26])],l=!0)},p(t,r){if(67108880&r[0]){let e;for(d=zt(t[4]),e=0;e<d.length;e+=1){const o=Wa(t,d,e);p[e]?p[e].p(o,r):(p[e]=Ya(o),p[e].c(),p[e].m(n,null))}for(;e<p.length;e+=1)p[e].d(1);p.length=d.length}2048&r[0]&&o!==(o=se(t[11]))&&W(n,"style",o),32&r[0]&&(n.loop=t[5]),64&r[0]&&(n.autoplay=t[6]),128&r[0]&&(n.muted=t[7]),512&r[0]&&W(n,"poster",t[9]),256&r[0]&&i!==(i=t[8]?"metadata":"auto")&&W(n,"preload",i),1024&r[0]&&u!==(u="".concat(t[10],"%"))&&Y(e,"padding-bottom",u)},d(n){n&&I(e),M(p,n),t[40](null),l=!1,s(c)}}}function Ga(t){let e,n,r,o,i;return{c(){e=T("source"),u(e.src,n=t[47].src)||W(e,"src",n),W(e,"type",r=t[47].type)},m(n,r){O(n,e,r),o||(i=U(e,"error",t[26]),o=!0)},p(t,o){16&o[0]&&!u(e.src,n=t[47].src)&&W(e,"src",n),16&o[0]&&r!==(r=t[47].type)&&W(e,"type",r)},d(t){t&&I(e),o=!1,i()}}}function Ka(t){let e,n=t[47],r=Ga(t);return{c(){r.c(),e=L()},m(t,n){r.m(t,n),O(t,e,n)},p(t,o){16&o[0]&&d(n,n=t[47])?(r.d(1),r=Ga(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&I(e),r.d(t)}}}function Xa(t){let e,n,r,o,i;return{c(){e=T("source"),u(e.src,n=t[47].src)||W(e,"src",n),W(e,"type",r=t[47].type)},m(n,r){O(n,e,r),o||(i=U(e,"error",t[26]),o=!0)},p(t,o){16&o[0]&&!u(e.src,n=t[47].src)&&W(e,"src",n),16&o[0]&&r!==(r=t[47].type)&&W(e,"type",r)},d(t){t&&I(e),o=!1,i()}}}function Ya(t){let e,n=t[47],r=Xa(t);return{c(){r.c(),e=L()},m(t,n){r.m(t,n),O(t,e,n)},p(t,o){16&o[0]&&d(n,n=t[47])?(r.d(1),r=Xa(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&I(e),r.d(t)}}}function Za(t){let e;function n(t,e){return t[12].aspect?Ja:qa}let r=n(t),o=r(t);return{c(){o.c(),e=L()},m(t,n){o.m(t,n),O(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){t&&I(e),o.d(t)}}}function Qa(t){let e,n,r=!t[2]&&Ha(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[2]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),4&n[0]&&Nt(r,1)):(r=Ha(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}function ts(t,e,r){let o,i,a,s,l,c,u,d,f,h,g,m,v,y,$,b,_,w,x,k,C=n,E=n,A=n,j=n,V=n,F=n,D=n,S=n;t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>S()));let{componentContext:P}=e,{layoutParams:N}=e;const O=pt(re);let I,M,T,z,R=!1,B=!1,L=[],U=!1,W=!1,H=!1,q=!1,J="fit",G="0";function K(t){B?B=!1:M&&r(3,M.currentTime=Number(t)/1e3,M)}function X(){null==M||M.pause()}function Y(){const t=null==M?void 0:M.play();t&&t.catch((t=>{P.logError(oe(new Error("Video playing error"),{level:"error",additional:{originalText:String(t)}}))}))}return ut((()=>{I&&(O.unregisterInstance(I),r(27,I=void 0)),z&&(z(),r(29,z=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,P=t.componentContext),"layoutParams"in t&&r(1,N=t.layoutParams)},t.$$.update=()=>{var e,n;if(1&t.$$.dirty[0]&&P.json&&(r(5,U=!1),r(6,W=!1),r(7,H=!1),r(8,q=!1),r(9,T=void 0),r(28,J="fit")),1&t.$$.dirty[0]&&r(31,o=P.json.elapsed_time_variable),1&t.$$.dirty[0]|1&t.$$.dirty[1]&&r(30,i=o&&P.getVariable(o,"integer")||Wi("temp","integer",0)),1610612736&t.$$.dirty[0]&&i&&(z&&z(),r(29,z=i.subscribe(K))),1&t.$$.dirty[0]&&(r(20,a=P.getDerivedFromVars(P.json.video_sources)),S(),S=p(a,(t=>r(39,k=t)))),1&t.$$.dirty[0]&&(r(19,s=P.getDerivedFromVars(P.json.repeatable)),D(),D=p(s,(t=>r(38,x=t)))),1&t.$$.dirty[0]&&(r(18,l=P.getDerivedFromVars(P.json.autostart)),C(),C=p(l,(t=>r(32,v=t)))),1&t.$$.dirty[0]&&(r(17,c=P.getDerivedFromVars(P.json.muted)),F(),F=p(c,(t=>r(37,w=t)))),1&t.$$.dirty[0]&&(r(16,u=P.getDerivedFromVars(P.json.preload_required)),V(),V=p(u,(t=>r(36,_=t)))),1&t.$$.dirty[0]&&(r(15,d=P.getDerivedFromVars(P.json.preview)),j(),j=p(d,(t=>r(35,b=t)))),1&t.$$.dirty[0]&&(r(14,f=P.getDerivedFromVars(P.json.scale)),A(),A=p(f,(t=>r(34,$=t)))),1&t.$$.dirty[0]&&(r(13,h=P.getDerivedFromVars(P.json.aspect)),E(),E=p(h,(t=>r(33,y=t)))),17&t.$$.dirty[0]|256&t.$$.dirty[1]&&(r(4,(e=k,n=L,L=Array.isArray(e)&&e.length?e.filter((t=>"video_source"===(null==t?void 0:t.type)&&"string"==typeof t.url&&"string"==typeof t.mime_type)).map((t=>{const e={src:t.url};return t.mime_type&&(e.type=t.mime_type),e})):n)),L.length?r(2,R=!1):(r(2,R=!0),P.logError(oe(new Error('Missing "video_sources" in "video"'))))),32&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(5,U=Sn(x,U)),64&t.$$.dirty[0]|2&t.$$.dirty[1]&&r(6,W=Sn(v,W)),128&t.$$.dirty[0]|64&t.$$.dirty[1]&&r(7,H=Sn(w,H)),256&t.$$.dirty[0]|32&t.$$.dirty[1]&&r(8,q=Sn(_,q)),512&t.$$.dirty[0]|16&t.$$.dirty[1]&&r(9,T="string"==typeof b?Vr(b):T),268435456&t.$$.dirty[0]|8&t.$$.dirty[1]&&r(28,J=function(t){return"fill"===t?"cover":"no_scale"===t?"none":"contain"}($)||J),4&t.$$.dirty[1]){const t=null==y?void 0:y.ratio;t&&Ze(t)?r(10,G=(100/Number(t)).toFixed(2)):r(10,G="0")}134217733&t.$$.dirty[0]&&P.json&&(I&&(O.unregisterInstance(I),r(27,I=void 0)),!P.json.id||R||P.fakeElement||(r(27,I=P.json.id),O.registerInstance(I,{pause:X,start:Y}))),9&t.$$.dirty[0]|2&t.$$.dirty[1]&&P.json&&v&&M&&Y(),1024&t.$$.dirty[0]&&r(12,g={aspect:"0"!==G}),268435456&t.$$.dirty[0]&&r(11,m={"object-fit":J})},[P,N,R,M,L,U,W,H,q,T,G,m,g,h,f,d,u,c,l,s,a,function(){M&&(B=!0,i.setValue(Math.floor(1e3*M.currentTime)))},function(){const t=P.getJsonWithVars(P.json.end_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(P.json.resume_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(P.json.pause_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(P.json.buffering_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(P.json.fatal_actions);P.execAnyActions(t)},I,J,z,i,o,v,y,$,b,_,w,x,k,function(t){gt[t?"unshift":"push"]((()=>{M=t,r(3,M)}))},function(t){gt[t?"unshift":"push"]((()=>{M=t,r(3,M)}))}]}function es(t,e,n){const r=t.slice();return r[12]=e[n],r}function ns(t){let e,n;return e=new bn({props:{componentContext:t[0],layoutParams:t[1],$$slots:{default:[ls]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.componentContext=t[0]),2&n&&(r.layoutParams=t[1]),33277&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function rs(t){let e,n=[t[7]],r={};for(let t=0;t<n.length;t+=1)r=o(r,n[t]);return{c(){e=T("template"),q(e,r)},m(n,r){O(n,e,r),e.content.innerHTML=t[6]},p(t,o){64&o&&(e.content.innerHTML=t[6]),q(e,r=Lt(n,[128&o&&t[7]]))},d(t){t&&I(e)}}}function os(t){let e,r,o=t[4],i=as(t);return{c(){i.c(),e=L()},m(t,n){i.m(t,n),O(t,e,n),r=!0},p(t,r){16&r&&d(o,o=t[4])?(St(),Ot(i,1,1,n),Pt(),i=as(t),i.c(),Nt(i,1),i.m(e.parentNode,e)):i.p(t,r)},i(t){r||(Nt(i),r=!0)},o(t){Ot(i),r=!1},d(t){t&&I(e),i.d(t)}}}function is(t){let e,n;return e=new gs({props:{componentContext:t[12]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};256&n&&(r.componentContext=t[12]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function as(t){let e,n,r=zt(t[8]),o=[];for(let e=0;e<r.length;e+=1)o[e]=is(es(t,r,e));const i=t=>Ot(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=L()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);O(t,e,r),n=!0},p(t,n){if(256&n){let a;for(r=zt(t[8]),a=0;a<r.length;a+=1){const i=es(t,r,a);o[a]?(o[a].p(i,n),Nt(o[a],1)):(o[a]=is(i),o[a].c(),Nt(o[a],1),o[a].m(e.parentNode,e))}for(St(),a=r.length;a<o.length;a+=1)i(a);Pt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Nt(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Ot(o[t]);n=!1},d(t){t&&I(e),M(o,t)}}}function ss(t){let e,n,r,i=t[6]&&rs(t),a=!t[3]&&t[4]&&os(t),s=[t[0].json.custom_props||{}],l={};for(let t=0;t<s.length;t+=1)l=o(l,s[t]);return{c(){e=T(t[2].element),i&&i.c(),n=B(),a&&a.c(),G(t[2].element)(e,l)},m(o,s){O(o,e,s),i&&i.m(e,null),S(e,n),a&&a.m(e,null),t[10](e),r=!0},p(t,r){t[6]?i?i.p(t,r):(i=rs(t),i.c(),i.m(e,n)):i&&(i.d(1),i=null),!t[3]&&t[4]?a?(a.p(t,r),24&r&&Nt(a,1)):(a=os(t),a.c(),Nt(a,1),a.m(e,null)):a&&(St(),Ot(a,1,1,(()=>{a=null})),Pt()),G(t[2].element)(e,l=Lt(s,[1&r&&(t[0].json.custom_props||{})]))},i(t){r||(Nt(a),r=!0)},o(t){Ot(a),r=!1},d(n){n&&I(e),i&&i.d(),a&&a.d(),t[10](null)}}}function ls(t){let e,r,o=t[2].element,i=t[2].element&&ss(t);return{c(){i&&i.c(),e=L()},m(t,n){i&&i.m(t,n),O(t,e,n)},p(t,n){t[2].element?o?d(o,t[2].element)?(i.d(1),i=ss(t),o=t[2].element,i.c(),i.m(e.parentNode,e)):i.p(t,n):(i=ss(t),o=t[2].element,i.c(),i.m(e.parentNode,e)):o&&(i.d(1),i=null,o=t[2].element)},i:n,o(t){Ot(i,t),r=!1},d(t){t&&I(e),i&&i.d(t)}}}function cs(t){let e,n,r=t[2]&&ns(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){let[o]=n;t[2]?r?(r.p(t,o),4&o&&Nt(r,1)):(r=ns(t),r.c(),Nt(r,1),r.m(e.parentNode,e)):r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt())},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}function us(t,e,n){let r,o;var i;let{componentContext:a}=e,{layoutParams:s}=e;const l=pt(re);let c,u=null,d="",p={},f=!1;return lt((()=>{if(c&&"divKitApiCallback"in c&&"function"==typeof c.divKitApiCallback){const t=l.getExtensionContext();c.divKitApiCallback(t)}})),t.$$set=t=>{"componentContext"in t&&n(0,a=t.componentContext),"layoutParams"in t&&n(1,s=t.layoutParams)},t.$$.update=()=>{if(517&t.$$.dirty)if("string"==typeof a.json.custom_type&&a.json.custom_type&&(null===n(9,i=l.customComponents)||void 0===i?void 0:i.has(a.json.custom_type))){if(n(2,u=l.customComponents.get(a.json.custom_type)),"function"==typeof u.template){const t=l.getExtensionContext(),e=new Map;for(const[n,r]of t.variables)e.set(n,r.getValue());n(6,d=u.template({props:a.json.custom_props,variables:e}))}else u.template&&"string"==typeof u.template?n(6,d=u.template):n(6,d="");n(7,p={shadowrootmode:u.shadowRootMode||"open"})}else n(2,u=null),n(6,d=";"),a.logError(oe(new Error('Unknown or incorrect "custom_type" prop for div "custom"')));1&t.$$.dirty&&n(4,r=a.json.items),17&t.$$.dirty&&(void 0===r||Array.isArray(r)?n(3,f=!1):(n(3,f=!0),a.logError(oe(new Error('Incorrect "items" prop for div "custom"'))))),25&t.$$.dirty&&n(8,o=(!f&&r||[]).map(((t,e)=>a.produceChildContext(t,{path:e}))))},[a,s,u,f,r,c,d,p,o,i,function(t){gt[t?"unshift":"push"]((()=>{c=t,n(5,c)}))}]}const ds={};function ps(t){let e,n,r;var o=t[2];function i(t,e){return{props:{componentContext:t[0],layoutParams:t[1]}}}return o&&(e=tt(o,i(t))),{c(){e&&Jt(e.$$.fragment),n=L()},m(t,o){e&&Gt(e,t,o),O(t,n,o),r=!0},p(t,r){if(4&r&&o!==(o=t[2])){if(e){St();const t=e;Ot(t.$$.fragment,1,0,(()=>{Kt(t,1)})),Pt()}o?(e=tt(o,i(t)),Jt(e.$$.fragment),Nt(e.$$.fragment,1),Gt(e,n.parentNode,n)):e=null}else if(o){const n={};1&r&&(n.componentContext=t[0]),2&r&&(n.layoutParams=t[1]),e.$set(n)}},i(t){r||(e&&Nt(e.$$.fragment,t),r=!0)},o(t){e&&Ot(e.$$.fragment,t),r=!1},d(t){t&&I(n),e&&Kt(e,t)}}}function fs(t){let e,n,r=t[2]&&ps(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){let[o]=n;t[2]?r?(r.p(t,o),4&o&&Nt(r,1)):(r=ps(t),r.c(),Nt(r,1),r.m(e.parentNode,e)):r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt())},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}function hs(t,e,n){let{componentContext:r}=e,{layoutParams:o}=e;const i=pt(re);let a;return t.$$set=t=>{"componentContext"in t&&n(0,r=t.componentContext),"layoutParams"in t&&n(1,o=t.layoutParams)},t.$$.update=()=>{if(5&t.$$.dirty){const t=r.json;if(n(2,a=(null==t?void 0:t.type)&&ds[t.type]||void 0),!a){let e;e=(null==t?void 0:t.type)&&i.hasTemplate(t.type)?"Recursive template":"Unknown component",r.logError(oe(new Error(e),{additional:{component:(null==t?void 0:t.type)||"<missing>"}}))}}},[r,o,a]}ds.text=class extends Zt{constructor(t){super(),Xt(this,t,qn,Hn,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},ds.container=class extends Zt{constructor(t){super(),Xt(this,t,_r,mr,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},ds.separator=class extends Zt{constructor(t){super(),Xt(this,t,Ar,Er,d,{componentContext:0,layoutParams:1})}},ds.image=zr,ds.gif=zr,ds.grid=class extends Zt{constructor(t){super(),Xt(this,t,Xr,Gr,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},ds.gallery=class extends Zt{constructor(t){super(),Xt(this,t,po,uo,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},ds.tabs=class extends Zt{constructor(t){super(),Xt(this,t,Co,ko,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}},ds.state=class extends Zt{constructor(t){super(),Xt(this,t,ri,ei,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},ds.pager=class extends Zt{constructor(t){super(),Xt(this,t,hi,pi,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},ds.indicator=class extends Zt{constructor(t){super(),Xt(this,t,wi,bi,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},ds.slider=class extends Zt{constructor(t){super(),Xt(this,t,ua,ia,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},ds.input=class extends Zt{constructor(t){super(),Xt(this,t,Na,Fa,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}},ds.select=class extends Zt{constructor(t){super(),Xt(this,t,Ba,Ra,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},ds.video=class extends Zt{constructor(t){super(),Xt(this,t,ts,Qa,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},ds.custom=class extends Zt{constructor(t){super(),Xt(this,t,us,cs,d,{componentContext:0,layoutParams:1})}};const gs=class extends Zt{constructor(t){super(),Xt(this,t,hs,fs,d,{componentContext:0,layoutParams:1})}},ms={"root-svg-filters":"divkit-dc22b"};function vs(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 ys(t){let e,n,r,o=zt([...Object.keys(t[0])]),i=[];for(let e=0;e<o.length;e+=1)i[e]=ws(vs(t,o,e));return{c(){e=z("svg"),n=z("defs");for(let t=0;t<i.length;t+=1)i[t].c();W(e,"class",r=ms["root-svg-filters"]),W(e,"aria-hidden","true")},m(t,r){O(t,e,r),S(e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(n,null)},p(t,e){if(1&e){let r;for(o=zt([...Object.keys(t[0])]),r=0;r<o.length;r+=1){const a=vs(t,o,r);i[r]?i[r].p(a,e):(i[r]=ws(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&&I(e),M(i,t)}}}function $s(t){let e,n;return{c(){e=z("feBlend"),W(e,"in2","SourceGraphic"),W(e,"mode",n=t[3])},m(t,n){O(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&W(e,"mode",n)},d(t){t&&I(e)}}}function bs(t){let e;return{c(){e=z("feComposite"),W(e,"in2","SourceGraphic"),W(e,"operator","arithmetic"),W(e,"k1","1"),W(e,"k2","0"),W(e,"k3","0"),W(e,"k4","0")},m(t,n){O(t,e,n)},p:n,d(t){t&&I(e)}}}function _s(t){let e,n;return{c(){e=z("feComposite"),W(e,"in2","SourceGraphic"),W(e,"operator",n=t[3].split("_")[1])},m(t,n){O(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&W(e,"operator",n)},d(t){t&&I(e)}}}function ws(t){let e,n,r,o;function i(t,e){return"source_in"===t[3]||"source_atop"===t[3]?_s:"multiply"===t[3]?bs:$s}let a=i(t),s=a(t);return{c(){e=z("filter"),n=z("feFlood"),s.c(),W(n,"flood-color",r=t[2]),W(e,"id",o=t[0][t[1]])},m(t,r){O(t,e,r),S(e,n),s.m(e,null)},p(t,l){1&l&&r!==(r=t[2])&&W(n,"flood-color",r),a===(a=i(t))&&s?s.p(t,l):(s.d(1),s=a(t),s&&(s.c(),s.m(e,null))),1&l&&o!==(o=t[0][t[1]])&&W(e,"id",o)},d(t){t&&I(e),s.d()}}}function xs(t){let e,r=Object.keys(t[0]).length,o=r&&ys(t);return{c(){o&&o.c(),e=L()},m(t,n){o&&o.m(t,n),O(t,e,n)},p(t,n){let[i]=n;1&i&&(r=Object.keys(t[0]).length),r?o?o.p(t,i):(o=ys(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},i:n,o:n,d(t){t&&I(e),o&&o.d(t)}}}function ks(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const Cs=class extends Zt{constructor(t){super(),Xt(this,t,ks,xs,d,{svgFiltersMap:0})}};function Es(t,e,n,r){const o=n[t.type];if(!o)return r(oe(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 s=function t(e,n){const r=Object.keys(n).filter((t=>"__proto__"!==t)),o=r.filter((t=>"$"!==t.charAt(0))),i=r.filter((t=>"$"===t.charAt(0)));return o.forEach((r=>{const o=n[r];"object"==typeof o&&null!==o?(e[r]=Array.isArray(o)?[]:{},t(e[r],o)):e[r]=o})),i.forEach((t=>{const r=n[t],o=a[r];if(void 0!==o){const n=t.substring(1);e[n]=o}})),e}({},o);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(s[i]=t[i]);return{json:s,templateContext:a}}function As(){}function js(t){return{subscribe:e=>(e(t),As)}}function Vs(t,e){return e.length?e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t):t}function Fs(t,e){return e.length?e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t):t}function Ds(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 Ss(t){try{return Fi(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function Ps(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function Ns(t,e,n,r){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,Ns.prototype),o.expected=e,o.found=n,o.location=r,o.name="SyntaxError",o}function Os(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function Is(t,e){var n,r={},o=(e=void 0!==e?e:{}).grammarSource,i={start:Ce,JsonStringContents:function(){var t,e,n;for(t=pe,e=[],n=Ee();n!==r;)e.push(n),n=Ee();return fe=t,e=At(e)}},a=Ce,s="@{",l="}",c="@{}",u="\\",d="?",p=":",f="!:",h="||",g="&&",m="==",v="!=",y=">=",$=">",b="<=",_="<",w="+",x="-",k="/",C="*",E="%",A="!",j=".",V="(",F=")",D=",",S="'",P="e",N="E",O=/^[^}]/,I=/^[^'}]/,M=/^[0-9]/,T=/^[a-zA-Z_]/,z=/^[a-zA-Z_0-9]/,R=/^[ \t\r\n]/,B=$e("@{",!1),L=$e("}",!1),U=$e("@{}",!1),W=$e("\\",!1),H={type:"any"},q=be(["}"],!0,!1),J=$e("?",!1),G=$e(":",!1),K=$e("!:",!1),X=$e("||",!1),Y=$e("&&",!1),Z=$e("==",!1),Q=$e("!=",!1),tt=$e(">=",!1),et=$e(">",!1),nt=$e("<=",!1),rt=$e("<",!1),ot=$e("+",!1),it=$e("-",!1),at=$e("/",!1),st=$e("*",!1),lt=$e("%",!1),ct=$e("!",!1),ut=$e(".",!1),dt=$e("(",!1),pt=$e(")",!1),ft=$e(",",!1),ht=_e("string"),gt=$e("'",!1),mt=be(["'","}"],!0,!1),vt=_e("integer"),yt=be([["0","9"]],!1,!1),$t=_e("number"),bt=$e("e",!1),_t=$e("E",!1),wt=be([["a","z"],["A","Z"],"_"],!1,!1),xt=be([["a","z"],["A","Z"],"_",["0","9"]],!1,!1),kt=_e("whitespace"),Ct=be([" ","\t","\r","\n"],!1,!1),Et=function(t){return t},At=function(t){return Ds(t)},jt=function(t){return t},Vt=function(){return""},Ft=function(){return ye()},Dt=function(){throw new Error("Error tokenizing '"+t+"'.")},St=function(){throw new Error("Error tokenizing '"+t+"'.")},Pt=function(t){return t},Nt=function(t){return Ps(t)},Ot=function(){throw new Error("Error tokenizing '"+t+"'.")},It=function(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}},Mt=function(t,e){return{type:"TryExpression",test:t,alternate:e}},Tt=function(t,e){return Fs(t,e)},zt=function(t,e){return Fs(t,e)},Rt=function(t,e){return Vs(t,e)},Bt=function(t,e){return Vs(t,e)},Lt=function(t,e){return Vs(t,e)},Ut=function(t,e){return Vs(t,e)},Wt=function(t){return t},Ht=function(t){return t},qt=function(t,e){return{type:"UnaryExpression",operator:t,argument:e}},Jt=function(t,e){return function(t,e){return e.length?e.reduce(((t,e)=>{if(!e[5])throw new Error("Method expected after .");return{type:"MethodExpression",object:t,method:e[3],arguments:e[5][2]}}),t):t}(t,e)},Gt=function(t,e){return{type:"CallExpression",callee:t,arguments:e}},Kt=function(t,e){return[t,...e]},Xt=function(t){return t},Yt=function(t){return t},Zt=function(t){return Ds(t)},Qt=function(t){return t},te=function(){return""},ee=function(){return ye()},ne=function(){throw new Error("Error tokenizing '"+t+"'.")},re=function(){throw new Error("Error tokenizing '"+t+"'.")},oe=function(t){return t},ie=function(t){return Ps(t)},ae=function(){throw new Error("Error tokenizing '"+t+"'.")},se=function(){return{type:"IntegerLiteral",value:Ss(ye())}},le=function(){return{type:"NumberLiteral",value:parseFloat(ye())}},ce=function(){return{type:"NumberLiteral",value:parseFloat(ye())}},ue=function(){const t=ye();if(/\.\./.test(t)||/\.$/.test(t))throw new Error("Unexpected token: .");return function(t){return"true"===t||"false"===t?{type:"BooleanLiteral",value:"true"===t}:{type:"Variable",id:{type:"Identifier",name:t}}}(t)},de=function(){return{type:"Identifier",name:ye()}},pe=0,fe=0,he=[{line:1,column:1}],ge=0,me=[],ve=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 ye(){return t.substring(fe,pe)}function $e(t,e){return{type:"literal",text:t,ignoreCase:e}}function be(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function _e(t){return{type:"other",description:t}}function we(e){var n,r=he[e];if(r)return r;for(n=e-1;!he[n];)n--;for(r={line:(r=he[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return he[e]=r,r}function xe(t,e,n){var r=we(t),i=we(e),a={source:o,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:i.line,column:i.column}};return n&&o&&"function"==typeof o.offset&&(a.start=o.offset(a.start),a.end=o.offset(a.end)),a}function ke(t){pe<ge||(pe>ge&&(ge=pe,me=[]),me.push(t))}function Ce(){var t,e;return t=pe,Le(),(e=Ae())!==r?(Le(),fe=t,t=Et(e)):(pe=t,t=r),t}function Ee(){var e,n,o,i,a;if(e=pe,t.substr(pe,2)===s?(n=s,pe+=2):(n=r,0===ve&&ke(B)),n!==r?(o=Le(),(i=Ae())!==r?(Le(),125===t.charCodeAt(pe)?(a=l,pe++):(a=r,0===ve&&ke(L)),a!==r?(fe=e,e=jt(i)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,t.substr(pe,3)===c?(n=c,pe+=3):(n=r,0===ve&&ke(U)),n!==r&&(fe=e,n=Vt()),(e=n)===r&&(e=pe,n=pe,ve++,92===t.charCodeAt(pe)?(o=u,pe++):(o=r,0===ve&&ke(W)),o===r&&(t.substr(pe,2)===s?(o=s,pe+=2):(o=r,0===ve&&ke(B))),ve--,o===r?n=void 0:(pe=n,n=r),n!==r?(t.length>pe?(o=t.charAt(pe),pe++):(o=r,0===ve&&ke(H)),o!==r?(fe=e,e=Ft()):(pe=e,e=r)):(pe=e,e=r),e===r))){if(e=pe,t.substr(pe,2)===s?(n=s,pe+=2):(n=r,0===ve&&ke(B)),n!==r){if(o=[],O.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(q)),i!==r)for(;i!==r;)o.push(i),O.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(q));else o=r;o!==r?(125===t.charCodeAt(pe)?(i=l,pe++):(i=r,0===ve&&ke(L)),i!==r?(fe=e,e=Dt()):(pe=e,e=r)):(pe=e,e=r)}else pe=e,e=r;e===r&&(e=pe,t.substr(pe,2)===s?(n=s,pe+=2):(n=r,0===ve&&ke(B)),n!==r&&(fe=e,n=St()),(e=n)===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===ve&&ke(W)),n!==r?(t.substr(pe,2)===s?(o=s,pe+=2):(o=r,0===ve&&ke(B)),o!==r?(fe=e,e=Pt(o)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===ve&&ke(W)),n!==r?(t.length>pe?(o=t.charAt(pe),pe++):(o=r,0===ve&&ke(H)),o!==r?(fe=e,e=Nt(o)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===ve&&ke(W)),n!==r&&(fe=e,n=Ot()),e=n))))}return e}function Ae(){var e,n,o,i,a,s;return e=pe,(n=je())!==r?(Le(),63===t.charCodeAt(pe)?(o=d,pe++):(o=r,0===ve&&ke(J)),o!==r?(Le(),(i=Ae())!==r?(Le(),58===t.charCodeAt(pe)?(a=p,pe++):(a=r,0===ve&&ke(G)),a!==r?(Le(),(s=Ae())!==r?(fe=e,e=It(n,i,s)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=je()),e}function je(){var e,n,o,i;return e=pe,(n=Ve())!==r?(Le(),t.substr(pe,2)===f?(o=f,pe+=2):(o=r,0===ve&&ke(K)),o!==r?(Le(),(i=Ae())!==r?(fe=e,e=Mt(n,i)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=Ve()),e}function Ve(){var e,n,o,i,a,s,l,c;if(e=pe,(n=Fe())!==r){for(o=[],i=pe,a=Le(),t.substr(pe,2)===h?(s=h,pe+=2):(s=r,0===ve&&ke(X)),s!==r?(l=Le(),(c=Fe())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,a=Le(),t.substr(pe,2)===h?(s=h,pe+=2):(s=r,0===ve&&ke(X)),s!==r?(l=Le(),(c=Fe())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);fe=e,e=Tt(n,o)}else pe=e,e=r;return e}function Fe(){var e,n,o,i,a,s,l,c;if(e=pe,(n=De())!==r){for(o=[],i=pe,a=Le(),t.substr(pe,2)===g?(s=g,pe+=2):(s=r,0===ve&&ke(Y)),s!==r?(l=Le(),(c=De())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,a=Le(),t.substr(pe,2)===g?(s=g,pe+=2):(s=r,0===ve&&ke(Y)),s!==r?(l=Le(),(c=De())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);fe=e,e=zt(n,o)}else pe=e,e=r;return e}function De(){var e,n,o,i,a,s,l,c;if(e=pe,(n=Se())!==r){for(o=[],i=pe,a=Le(),t.substr(pe,2)===m?(s=m,pe+=2):(s=r,0===ve&&ke(Z)),s===r&&(t.substr(pe,2)===v?(s=v,pe+=2):(s=r,0===ve&&ke(Q))),s!==r?(l=Le(),(c=Se())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,a=Le(),t.substr(pe,2)===m?(s=m,pe+=2):(s=r,0===ve&&ke(Z)),s===r&&(t.substr(pe,2)===v?(s=v,pe+=2):(s=r,0===ve&&ke(Q))),s!==r?(l=Le(),(c=Se())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);fe=e,e=Rt(n,o)}else pe=e,e=r;return e}function Se(){var e,n,o,i,a,s,l,c;if(e=pe,(n=Pe())!==r){for(o=[],i=pe,a=Le(),t.substr(pe,2)===y?(s=y,pe+=2):(s=r,0===ve&&ke(tt)),s===r&&(62===t.charCodeAt(pe)?(s=$,pe++):(s=r,0===ve&&ke(et)),s===r&&(t.substr(pe,2)===b?(s=b,pe+=2):(s=r,0===ve&&ke(nt)),s===r&&(60===t.charCodeAt(pe)?(s=_,pe++):(s=r,0===ve&&ke(rt))))),s!==r?(l=Le(),(c=Pe())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,a=Le(),t.substr(pe,2)===y?(s=y,pe+=2):(s=r,0===ve&&ke(tt)),s===r&&(62===t.charCodeAt(pe)?(s=$,pe++):(s=r,0===ve&&ke(et)),s===r&&(t.substr(pe,2)===b?(s=b,pe+=2):(s=r,0===ve&&ke(nt)),s===r&&(60===t.charCodeAt(pe)?(s=_,pe++):(s=r,0===ve&&ke(rt))))),s!==r?(l=Le(),(c=Pe())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);fe=e,e=Bt(n,o)}else pe=e,e=r;return e}function Pe(){var e,n,o,i,a,s,l,c;if(e=pe,(n=Ne())!==r){for(o=[],i=pe,a=Le(),43===t.charCodeAt(pe)?(s=w,pe++):(s=r,0===ve&&ke(ot)),s===r&&(45===t.charCodeAt(pe)?(s=x,pe++):(s=r,0===ve&&ke(it))),s!==r?(l=Le(),(c=Ne())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,a=Le(),43===t.charCodeAt(pe)?(s=w,pe++):(s=r,0===ve&&ke(ot)),s===r&&(45===t.charCodeAt(pe)?(s=x,pe++):(s=r,0===ve&&ke(it))),s!==r?(l=Le(),(c=Ne())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);fe=e,e=Lt(n,o)}else pe=e,e=r;return e}function Ne(){var e,n,o,i,a,s,l,c;if(e=pe,(n=Oe())!==r){for(o=[],i=pe,a=Le(),47===t.charCodeAt(pe)?(s=k,pe++):(s=r,0===ve&&ke(at)),s===r&&(42===t.charCodeAt(pe)?(s=C,pe++):(s=r,0===ve&&ke(st)),s===r&&(37===t.charCodeAt(pe)?(s=E,pe++):(s=r,0===ve&&ke(lt)))),s!==r?(l=Le(),(c=Oe())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,a=Le(),47===t.charCodeAt(pe)?(s=k,pe++):(s=r,0===ve&&ke(at)),s===r&&(42===t.charCodeAt(pe)?(s=C,pe++):(s=r,0===ve&&ke(st)),s===r&&(37===t.charCodeAt(pe)?(s=E,pe++):(s=r,0===ve&&ke(lt)))),s!==r?(l=Le(),(c=Oe())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);fe=e,e=Ut(n,o)}else pe=e,e=r;return e}function Oe(){var e,n,o,i;return e=pe,n=pe,ve++,45===t.charCodeAt(pe)?(o=x,pe++):(o=r,0===ve&&ke(it)),ve--,o!==r?(pe=n,n=void 0):n=r,n!==r&&(o=Re())!==r?(fe=e,e=Wt(o)):(pe=e,e=r),e===r&&(e=pe,n=pe,ve++,45===t.charCodeAt(pe)?(o=x,pe++):(o=r,0===ve&&ke(it)),ve--,o!==r?(pe=n,n=void 0):n=r,n!==r&&(o=ze())!==r?(fe=e,e=Ht(o)):(pe=e,e=r),e===r&&(e=pe,33===t.charCodeAt(pe)?(n=A,pe++):(n=r,0===ve&&ke(ct)),n===r&&(43===t.charCodeAt(pe)?(n=w,pe++):(n=r,0===ve&&ke(ot)),n===r&&(45===t.charCodeAt(pe)?(n=x,pe++):(n=r,0===ve&&ke(it)))),n!==r?(o=Le(),(i=Ie())!==r?(fe=e,e=qt(n,i)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=Ie()))),e}function Ie(){var e,n,o,i,a,s,l,c,u,d,p,f,h,g,m;if(e=pe,n=function(){var e,n,o,i,a;return e=pe,(n=Be())!==r?(Le(),40===t.charCodeAt(pe)?(o=V,pe++):(o=r,0===ve&&ke(dt)),o!==r?(Le(),(i=Me())!==r?(Le(),41===t.charCodeAt(pe)?(a=F,pe++):(a=r,0===ve&&ke(pt)),a!==r?(fe=e,e=Gt(n,i)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=function(){var e,n,o,i;return e=function(){var e,n,o,i,a,s,l,c,u,d,p;if(e=pe,T.test(t.charAt(pe))?(n=t.charAt(pe),pe++):(n=r,0===ve&&ke(wt)),n!==r){if(o=[],i=[],z.test(t.charAt(pe))?(a=t.charAt(pe),pe++):(a=r,0===ve&&ke(xt)),a!==r)for(;a!==r;)i.push(a),z.test(t.charAt(pe))?(a=t.charAt(pe),pe++):(a=r,0===ve&&ke(xt));else i=r;for(i===r&&(i=pe,46===t.charCodeAt(pe)?(a=j,pe++):(a=r,0===ve&&ke(ut)),a!==r?(s=pe,ve++,l=pe,c=Le(),(u=Be())!==r?(d=Le(),40===t.charCodeAt(pe)?(p=V,pe++):(p=r,0===ve&&ke(dt)),p!==r?l=c=[c,u,d,p]:(pe=l,l=r)):(pe=l,l=r),ve--,l===r?s=void 0:(pe=s,s=r),s!==r?i=a=[a,s]:(pe=i,i=r)):(pe=i,i=r));i!==r;){if(o.push(i),i=[],z.test(t.charAt(pe))?(a=t.charAt(pe),pe++):(a=r,0===ve&&ke(xt)),a!==r)for(;a!==r;)i.push(a),z.test(t.charAt(pe))?(a=t.charAt(pe),pe++):(a=r,0===ve&&ke(xt));else i=r;i===r&&(i=pe,46===t.charCodeAt(pe)?(a=j,pe++):(a=r,0===ve&&ke(ut)),a!==r?(s=pe,ve++,l=pe,c=Le(),(u=Be())!==r?(d=Le(),40===t.charCodeAt(pe)?(p=V,pe++):(p=r,0===ve&&ke(dt)),p!==r?l=c=[c,u,d,p]:(pe=l,l=r)):(pe=l,l=r),ve--,l===r?s=void 0:(pe=s,s=r),s!==r?i=a=[a,s]:(pe=i,i=r)):(pe=i,i=r))}fe=e,e=ue()}else pe=e,e=r;return e}(),e===r&&(e=function(){var e,n,o,i;return ve++,e=pe,39===t.charCodeAt(pe)?(n=S,pe++):(n=r,0===ve&&ke(gt)),n!==r?(o=function(){var t,e,n;for(t=pe,e=[],n=Te();n!==r;)e.push(n),n=Te();return fe=t,t=e=Zt(e)}(),39===t.charCodeAt(pe)?(i=S,pe++):(i=r,0===ve&&ke(gt)),i!==r?(fe=e,e=Yt(o)):(pe=e,e=r)):(pe=e,e=r),ve--,e===r&&(n=r,0===ve&&ke(ht)),e}(),e===r&&(e=Re())===r&&(e=ze())===r&&(e=pe,40===t.charCodeAt(pe)?(n=V,pe++):(n=r,0===ve&&ke(dt)),n!==r?(Le(),(o=Ae())!==r?(Le(),41===t.charCodeAt(pe)?(i=F,pe++):(i=r,0===ve&&ke(pt)),i!==r?(fe=e,e=Xt(o)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r))),e}()),e}(),n!==r){for(o=[],i=pe,a=Le(),46===t.charCodeAt(pe)?(s=j,pe++):(s=r,0===ve&&ke(ut)),s!==r?(l=Le(),(c=Be())!==r?(u=Le(),d=pe,40===t.charCodeAt(pe)?(p=V,pe++):(p=r,0===ve&&ke(dt)),p!==r?(f=Le(),(h=Me())!==r?(g=Le(),41===t.charCodeAt(pe)?(m=F,pe++):(m=r,0===ve&&ke(pt)),m!==r?d=p=[p,f,h,g,m]:(pe=d,d=r)):(pe=d,d=r)):(pe=d,d=r),d===r&&(d=null),i=a=[a,s,l,c,u,d]):(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,a=Le(),46===t.charCodeAt(pe)?(s=j,pe++):(s=r,0===ve&&ke(ut)),s!==r?(l=Le(),(c=Be())!==r?(u=Le(),d=pe,40===t.charCodeAt(pe)?(p=V,pe++):(p=r,0===ve&&ke(dt)),p!==r?(f=Le(),(h=Me())!==r?(g=Le(),41===t.charCodeAt(pe)?(m=F,pe++):(m=r,0===ve&&ke(pt)),m!==r?d=p=[p,f,h,g,m]:(pe=d,d=r)):(pe=d,d=r)):(pe=d,d=r),d===r&&(d=null),i=a=[a,s,l,c,u,d]):(pe=i,i=r)):(pe=i,i=r);fe=e,e=Jt(n,o)}else pe=e,e=r;return e}function Me(){var e,n,o,i,a,s;if(e=pe,(n=Ae())!==r){for(o=[],i=pe,Le(),44===t.charCodeAt(pe)?(a=D,pe++):(a=r,0===ve&&ke(ft)),a!==r?(Le(),(s=Ae())!==r?i=s:(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,Le(),44===t.charCodeAt(pe)?(a=D,pe++):(a=r,0===ve&&ke(ft)),a!==r?(Le(),(s=Ae())!==r?i=s:(pe=i,i=r)):(pe=i,i=r);fe=e,e=Kt(n,o)}else pe=e,e=r;return e===r&&(e=Le()),e}function Te(){var e,n,o,i,a;if(e=pe,t.substr(pe,2)===s?(n=s,pe+=2):(n=r,0===ve&&ke(B)),n!==r?(o=Le(),(i=Ae())!==r?(Le(),125===t.charCodeAt(pe)?(a=l,pe++):(a=r,0===ve&&ke(L)),a!==r?(fe=e,e=Qt(i)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,t.substr(pe,3)===c?(n=c,pe+=3):(n=r,0===ve&&ke(U)),n!==r&&(fe=e,n=te()),(e=n)===r&&(e=pe,n=pe,ve++,92===t.charCodeAt(pe)?(o=u,pe++):(o=r,0===ve&&ke(W)),o===r&&(39===t.charCodeAt(pe)?(o=S,pe++):(o=r,0===ve&&ke(gt)),o===r&&(t.substr(pe,2)===s?(o=s,pe+=2):(o=r,0===ve&&ke(B)))),ve--,o===r?n=void 0:(pe=n,n=r),n!==r?(t.length>pe?(o=t.charAt(pe),pe++):(o=r,0===ve&&ke(H)),o!==r?(fe=e,e=ee()):(pe=e,e=r)):(pe=e,e=r),e===r))){if(e=pe,t.substr(pe,2)===s?(n=s,pe+=2):(n=r,0===ve&&ke(B)),n!==r){if(o=[],I.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(mt)),i!==r)for(;i!==r;)o.push(i),I.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(mt));else o=r;o!==r?(125===t.charCodeAt(pe)?(i=l,pe++):(i=r,0===ve&&ke(L)),i!==r?(fe=e,e=ne()):(pe=e,e=r)):(pe=e,e=r)}else pe=e,e=r;e===r&&(e=pe,t.substr(pe,2)===s?(n=s,pe+=2):(n=r,0===ve&&ke(B)),n!==r&&(fe=e,n=re()),(e=n)===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===ve&&ke(W)),n!==r?(t.substr(pe,2)===s?(o=s,pe+=2):(o=r,0===ve&&ke(B)),o!==r?(fe=e,e=oe(o)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===ve&&ke(W)),n!==r?(t.length>pe?(o=t.charAt(pe),pe++):(o=r,0===ve&&ke(H)),o!==r?(fe=e,e=ie(o)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===ve&&ke(W)),n!==r&&(fe=e,n=ae()),e=n))))}return e}function ze(){var e,n,o,i;if(ve++,e=pe,45===t.charCodeAt(pe)?(n=x,pe++):(n=r,0===ve&&ke(it)),n===r&&(n=null),o=[],M.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(yt)),i!==r)for(;i!==r;)o.push(i),M.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(yt));else o=r;return o!==r?(fe=e,e=se()):(pe=e,e=r),ve--,e===r&&(n=r,0===ve&&ke(vt)),e}function Re(){var e,n,o,i,a,s,l,c,u,d;for(ve++,e=pe,45===t.charCodeAt(pe)?(n=x,pe++):(n=r,0===ve&&ke(it)),n===r&&(n=null),o=[],M.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(yt));i!==r;)o.push(i),M.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(yt));if(46===t.charCodeAt(pe)?(i=j,pe++):(i=r,0===ve&&ke(ut)),i!==r){if(a=[],M.test(t.charAt(pe))?(s=t.charAt(pe),pe++):(s=r,0===ve&&ke(yt)),s!==r)for(;s!==r;)a.push(s),M.test(t.charAt(pe))?(s=t.charAt(pe),pe++):(s=r,0===ve&&ke(yt));else a=r;if(a!==r){if(s=pe,101===t.charCodeAt(pe)?(l=P,pe++):(l=r,0===ve&&ke(bt)),l===r&&(69===t.charCodeAt(pe)?(l=N,pe++):(l=r,0===ve&&ke(_t))),l!==r){if(43===t.charCodeAt(pe)?(c=w,pe++):(c=r,0===ve&&ke(ot)),c===r&&(45===t.charCodeAt(pe)?(c=x,pe++):(c=r,0===ve&&ke(it))),c===r&&(c=null),u=[],M.test(t.charAt(pe))?(d=t.charAt(pe),pe++):(d=r,0===ve&&ke(yt)),d!==r)for(;d!==r;)u.push(d),M.test(t.charAt(pe))?(d=t.charAt(pe),pe++):(d=r,0===ve&&ke(yt));else u=r;u!==r?s=l=[l,c,u]:(pe=s,s=r)}else pe=s,s=r;s===r&&(s=null),fe=e,e=le()}else pe=e,e=r}else pe=e,e=r;if(e===r){if(e=pe,45===t.charCodeAt(pe)?(n=x,pe++):(n=r,0===ve&&ke(it)),n===r&&(n=null),o=[],M.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(yt)),i!==r)for(;i!==r;)o.push(i),M.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(yt));else o=r;if(o!==r)if(101===t.charCodeAt(pe)?(i=P,pe++):(i=r,0===ve&&ke(bt)),i===r&&(69===t.charCodeAt(pe)?(i=N,pe++):(i=r,0===ve&&ke(_t))),i!==r){if(43===t.charCodeAt(pe)?(a=w,pe++):(a=r,0===ve&&ke(ot)),a===r&&(45===t.charCodeAt(pe)?(a=x,pe++):(a=r,0===ve&&ke(it))),a===r&&(a=null),s=[],M.test(t.charAt(pe))?(l=t.charAt(pe),pe++):(l=r,0===ve&&ke(yt)),l!==r)for(;l!==r;)s.push(l),M.test(t.charAt(pe))?(l=t.charAt(pe),pe++):(l=r,0===ve&&ke(yt));else s=r;s!==r?(fe=e,e=ce()):(pe=e,e=r)}else pe=e,e=r;else pe=e,e=r}return ve--,e===r&&(n=r,0===ve&&ke($t)),e}function Be(){var e,n,o,i;if(e=pe,T.test(t.charAt(pe))?(n=t.charAt(pe),pe++):(n=r,0===ve&&ke(wt)),n!==r){for(o=[],z.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(xt));i!==r;)o.push(i),z.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(xt));fe=e,e=de()}else pe=e,e=r;return e}function Le(){var e,n;for(ve++,e=[],R.test(t.charAt(pe))?(n=t.charAt(pe),pe++):(n=r,0===ve&&ke(Ct));n!==r;)e.push(n),R.test(t.charAt(pe))?(n=t.charAt(pe),pe++):(n=r,0===ve&&ke(Ct));return ve--,n=r,0===ve&&ke(kt),e}if((n=a())!==r&&pe===t.length)return n;throw n!==r&&pe<t.length&&ke({type:"end"}),function(t,e,n){return new Ns(Ns.buildMessage(t,e),t,e,n)}(me,ge<t.length?t.charAt(ge):null,ge<t.length?xe(ge,ge+1):xe(ge,ge))}js(void 0),function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(Ns,Error),Ns.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&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,a=this.location.source+":"+i.line+":"+i.column;if(r){var s=this.location.end,l=Os("",i.line.toString().length," "),c=r[o.line-1],u=(o.line===s.line?s.column:c.length+1)-o.column||1;e+="\n --\x3e "+a+"\n"+l+" |\n"+i.line+" | "+c+"\n"+l+" | "+Os("",o.column-1," ")+Os("",u,"^")}else e+="\n at "+a}return e},Ns.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 Ms=Number.MAX_VALUE,Ts=Number.MIN_VALUE,zs="string",Rs="integer",Bs="number",Ls="boolean",Us="color",Ws="url",Hs="datetime",qs="dict",Js="array";function Gs(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=>{Gs(t,e)}));break;case"BinaryExpression":case"LogicalExpression":Gs(t.left,e),Gs(t.right,e);break;case"UnaryExpression":Gs(t.argument,e);break;case"ConditionalExpression":Gs(t.test,e),Gs(t.consequent,e),Gs(t.alternate,e);break;case"TryExpression":Gs(t.test,e),Gs(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{Gs(t,e)}))}}function Ks(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function Xs(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function Ys(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 Xs(t.value);if("color"===t.type)return il(ol(t.value));if("url"===t.type)return t.value;if("dict"===t.type)return"<dict>";if("array"===t.type)return"<array>";throw new Error("Unexpected type ".concat(t.type))}function Zs(t){let e=Ys(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function Qs(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function tl(t,e){if(Ei)return Fi(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function el(t,e){if(e<Vi||e>ji)throw new Error("Integer overflow.");!Ei&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function nl(t){const e=[];return Gs(t,{Variable(t){e.push(t.id.name)}}),e}function rl(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function ol(t){const e=pe(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function il(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 ue(Math.round(t).toString(16),2)})).join("").toUpperCase())}function al(t){return il(ol(t))}function sl(t){return{type:Bs,value:Number(t.value)}}const ll={string:"string",number:"number",integer:"number",boolean:"boolean",color:"string",url:"string",array:"array",dict:"object"};function cl(t,e,n){const r=ll[n];let o=typeof e;if("array"===r&&!Array.isArray(e)||"array"!==r&&o!==r||"object"===o&&null===e)throw"object"===o&&(o=Array.isArray(e)?"array":null===e?"null":"dict"),new Error('Incorrect value type: expected "'.concat(n,'", got "').concat(o,'".'));if("number"===r&&"integer"===n){el(t,e);try{e=Fi(e)}catch(t){throw new Error("Cannot convert value to integer.")}}return"string"===r&&"color"===n&&(e=al(e)),{type:n,value:e}}const ul=new Map,dl=new Map,pl=new Map,fl=new Map;function hl(t,e,n){const r={args:e,cb:n},o=ul.get(t)||[];ul.has(t)||ul.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");dl.set(i,r)}function gl(t,e,n){const r={args:e,cb:n},o=pl.get(t)||[];pl.has(t)||pl.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");fl.set(i,r)}function ml(t,e){const n=t.args.length;let r=t.args.length,o=0;const i=t.args[t.args.length-1];if("object"==typeof i&&i.isVararg&&(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!==Bs||e[n].type!==Rs){if(r.type!==e[n].type)return{type:"mismatch",expected:r.type,found:e[n].type}}else++o}return{type:"match",conversions:o}}function vl(t,e,n){const r=("function"===t?ul:pl).get(e);if(!r)return{type:"missing"};let o=null,i=null;for(let t=0;t<r.length;++t){const e=ml(r[t],n);"match"!==e.type?o||(o=e):(!i||i.conversions>e.conversions)&&(i={func:r[t],conversions:e.conversions})}if(!i){if(o)return o;throw new Error("Missing function")}return i}function yl(t,e){return e.map(((e,n)=>{let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];return"object"!=typeof r&&(r={type:r}),r.type===Bs&&e.type===Rs?sl(e):e}))}function $l(t,e){return{type:zs,value:Ys(e)}}function bl(t,e){const n=Number(e.value);if(Number.isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:Bs,value:n}}function _l(t,e,n,r){const o=t.variables.get(e.value);let i;return i=o&&o.getType()===r?o.getValue():n.value,"color"===r&&(i=al(i)),{type:r,value:i}}function wl(t,e,n){return _l(t,e,n,n.type)}function xl(t,e,n){return _l(t,e,n,"color")}function kl(t,e,n){return _l(t,e,n,"url")}const Cl=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:Rs,value:Fi(r)}},El=Cl("getUTCFullYear"),Al=Cl("getUTCMonth"),jl=Cl("getUTCDate"),Vl=Cl("getUTCDay"),Fl=Cl("getUTCHours"),Dl=Cl("getUTCMinutes"),Sl=Cl("getUTCSeconds"),Pl=Cl("getUTCMilliseconds");function Nl(t,e,n,r){if(!r.value.length)return t.warnings.push(oe(new Error("String for padding is empty."),{level:"warn"})),"";let o="";const i=e.type===zs?e.value:Ys(e);for(;o.length+i.length<n.value;)o+=r.value;return o.length>0&&o.length+i.length>n.value&&(o=o.substring(0,Number(n.value)-Number(i.length))),o}function Ol(t,e,n,r){const o=Nl(t,e,n,r);return{type:zs,value:o+Ys(e)}}function Il(t,e,n,r){const o=Nl(t,e,n,r);return{type:zs,value:Ys(e)+o}}function Ml(t){return(e,n)=>{const r=ol(n.value);return{type:Bs,value:r[t]/255}}}function Tl(t){return(e,n,r)=>{const o=ol(n.value);return o[t]=255*r.value,{type:Us,value:il(o)}}}const zl=Ml("a"),Rl=Ml("r"),Bl=Ml("g"),Ll=Ml("b"),Ul=Tl("a"),Wl=Tl("r"),Hl=Tl("g"),ql=Tl("b");function Jl(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let o=Fi(e.value)/Fi(n);return el(t,o),"number"==typeof o&&(o=Math.floor(o)),r&&(o=Fi(o)%Fi(r)),{type:Rs,value:o}}const Gl=36e5;function Kl(t){return function(e,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];if(0===o.length)throw new Error("Non empty argument list is required.");const a=function(t,e){let n=t;for(let t=0;t<e.length;++t){if(!n)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));const r=n[e[t]];if(void 0===r)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));n=r}return n}(n.value,o.map((t=>t.value)));return cl(e,a,t)}}function Xl(t,e){return function(n,r,o){try{for(var i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return t(n,o,...a)}catch(t){let n=r.value;return"color"===e&&(n=al(n)),{type:e,value:n}}}}const Yl=Kl(zs),Zl=Kl(Bs),Ql=Kl(Rs),tc=Kl(Ls),ec=Kl(Us),nc=Kl(Ws),rc=Kl(Js),oc=Kl(qs),ic=Xl(Yl,zs),ac=Xl(Zl,Bs),sc=Xl(Ql,Rs),lc=Xl(tc,Ls),cc=Xl(ec,Us),uc=Xl(nc,Ws);function dc(t,e){try{for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return rc(t,e,...r)}catch(t){return{type:Js,value:[]}}}function pc(t,e){try{for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return oc(t,e,...r)}catch(t){return{type:qs,value:{}}}}function fc(t,e){return(n,r,o)=>{if(o.value<0||o.value>=r.value.length)throw new Error("Requested index (".concat(o.value,") out of bounds array size (").concat(r.value.length,")."));let i=r.value[Number(o.value)],a=typeof i;if("array"===t&&!Array.isArray(i)||"array"!==t&&a!==t||"object"===a&&null===i)throw"object"===a&&(a=Array.isArray(i)?"array":null===i?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(a,'".'));if("number"===t&&"integer"===e){el(n,i);try{i=Fi(i)}catch(t){throw new Error("Cannot convert value to integer.")}}return"string"===t&&"color"===e&&(i=al(i)),{type:e,value:i}}}function hc(t,e){return(n,r,o,i)=>{try{return t(n,r,o)}catch(t){let n=i.value;return"color"===e&&(n=al(n)),{type:e,value:n}}}}const gc=fc("string","string"),mc=fc("number","number"),vc=fc("number","integer"),yc=fc("boolean","boolean"),$c=fc("string","color"),bc=fc("string","url"),_c=fc("array","array"),wc=fc("object","dict"),xc=hc(gc,"string"),kc=hc(mc,"number"),Cc=hc(vc,"integer"),Ec=hc(yc,"boolean"),Ac=hc($c,"color"),jc=hc(bc,"url");function Vc(t){return(e,n,r)=>{if(!e.store)return{type:t,value:r.value};let o;o="boolean"===t?"boolean":"number"===t||"integer"===t?"number":"string";const i=e.store.getValue(n.value,o);return void 0===i?{type:t,value:r.value}:cl(e,i,t)}}function Fc(t){return t.map(Zs).join(", ")}hl("toString",[Rs],$l),hl("toString",[Bs],$l),hl("toString",[Ls],$l),hl("toString",[Us],$l),hl("toString",[Ws],$l),hl("toString",[zs],$l),hl("toNumber",[Rs],bl),hl("toNumber",[zs],bl),hl("toInteger",[Bs],(function(t,e){if(e.value>ji||e.value<Vi)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:Rs,value:Fi(n)}})),hl("toInteger",[zs],(function(t,e){let n;try{n=Fi(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}return{type:Rs,value:n}})),hl("toInteger",[Ls],(function(t,e){return{type:Rs,value:Fi(e.value?1:0)}})),hl("toBoolean",[Rs],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:Ls,value:n}})),hl("toBoolean",[zs],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:Ls,value:"true"===e.value?1:0}})),hl("toColor",[zs],(function(t,e){return{type:Us,value:al(e.value)}})),hl("toUrl",[zs],(function(t,e){return{type:Ws,value:e.value}})),hl("encodeUri",[zs],(function(t,e){try{return{type:zs,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),hl("decodeUri",[zs],(function(t,e){try{return{type:zs,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),hl("getIntegerValue",[zs,Rs],wl),hl("getNumberValue",[zs,Bs],wl),hl("getBooleanValue",[zs,Ls],wl),hl("getStringValue",[zs,zs],wl),hl("getColorValue",[zs,Us],xl),hl("getColorValue",[zs,zs],xl),hl("getUrlValue",[zs,Ws],kl),hl("getUrlValue",[zs,zs],kl),gl("toString",[Rs],$l),gl("toString",[Bs],$l),gl("toString",[Ls],$l),gl("toString",[Us],$l),gl("toString",[Ws],$l),gl("toString",[zs],$l),hl("parseUnixTime",[Rs],(function(t,e){return{type:Hs,value:new Date(1e3*Number(e.value))}})),hl("nowLocal",[],(function(){return{type:Hs,value:new Date}})),hl("addMillis",[Hs,Rs],(function(t,e,n){return{type:Hs,value:new Date(e.value.getTime()+Number(n.value))}})),hl("setYear",[Hs,Rs],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:Hs,value:r}})),hl("setMonth",[Hs,Rs],(function(t,e,n){const r=Number(n.value);if(r<1||r>12)throw new Error("Expecting month in [1..12], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMonth(r-1),{type:Hs,value:o}})),hl("setDay",[Hs,Rs],(function(t,e,n){const r=new Date(e.value),o=Number(n.value);if(o<=0&&-1!==o||o>function(t){const e=new Date(t);return e.setUTCMonth(e.getUTCMonth()+1),e.setUTCDate(0),e.getUTCDate()}(r))throw new Error("Unable to set day ".concat(o," for date ").concat(Ys(e),"."));return r.setUTCDate(-1===o?0:o),{type:Hs,value:r}})),hl("setHours",[Hs,Rs],(function(t,e,n){const r=Number(n.value);if(r<0||r>23)throw new Error("Expecting hours in [0..23], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCHours(r),{type:Hs,value:o}})),hl("setMinutes",[Hs,Rs],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMinutes(r),{type:Hs,value:o}})),hl("setSeconds",[Hs,Rs],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCSeconds(r),{type:Hs,value:o}})),hl("setMillis",[Hs,Rs],(function(t,e,n){const r=Number(n.value);if(r<0||r>999)throw new Error("Expecting millis in [0..999], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMilliseconds(r),{type:Hs,value:o}})),hl("getYear",[Hs],El),hl("getMonth",[Hs],Al),hl("getDay",[Hs],jl),hl("getDayOfWeek",[Hs],Vl),hl("getHours",[Hs],Fl),hl("getMinutes",[Hs],Dl),hl("getSeconds",[Hs],Sl),hl("getMillis",[Hs],Pl),hl("getIntervalSeconds",[Rs],(function(t,e){return Jl(t,e,1e3,60)})),hl("getIntervalTotalSeconds",[Rs],(function(t,e){return Jl(t,e,1e3)})),hl("getIntervalMinutes",[Rs],(function(t,e){return Jl(t,e,6e4,60)})),hl("getIntervalTotalMinutes",[Rs],(function(t,e){return Jl(t,e,6e4)})),hl("getIntervalHours",[Rs],(function(t,e){return Jl(t,e,Gl,24)})),hl("getIntervalTotalHours",[Rs],(function(t,e){return Jl(t,e,Gl)})),hl("getIntervalTotalDays",[Rs],(function(t,e){return Jl(t,e,864e5)})),hl("getIntervalTotalWeeks",[Rs],(function(t,e){return Jl(t,e,6048e5)})),hl("len",[zs],(function(t,e){return{type:Rs,value:Fi(e.value.length)}})),hl("contains",[zs,zs],(function(t,e,n){return{type:Ls,value:e.value.includes(n.value)?1:0}})),hl("substring",[zs,Rs,Rs],(function(t,e,n,r){if(r.value<n.value)throw new Error("Indexes should be in ascending order.");if(n.value<0||n.value>e.value.length||r.value<0||r.value>e.value.length)throw new Error("Indexes are out of bounds.");return{type:zs,value:e.value.substring(Number(n.value),Number(r.value))}})),hl("replaceAll",[zs,zs,zs],(function(t,e,n,r){let o;return o=n.value?e.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(n.value),"g"),r.value):e.value,{type:zs,value:o}})),hl("index",[zs,zs],(function(t,e,n){return{type:Rs,value:Fi(e.value.indexOf(n.value))}})),hl("lastIndex",[zs,zs],(function(t,e,n){return{type:Rs,value:Fi(e.value.lastIndexOf(n.value))}})),hl("trim",[zs],(function(t,e){return{type:zs,value:e.value.trim()}})),hl("trimLeft",[zs],(function(t,e){return{type:zs,value:e.value.replace(/^\s+/,"")}})),hl("trimRight",[zs],(function(t,e){return{type:zs,value:e.value.replace(/\s+$/,"")}})),hl("toUpperCase",[zs],(function(t,e){return{type:zs,value:e.value.toUpperCase()}})),hl("toLowerCase",[zs],(function(t,e){return{type:zs,value:e.value.toLowerCase()}})),hl("padStart",[zs,Rs,zs],Ol),hl("padStart",[Rs,Rs,zs],Ol),hl("padEnd",[zs,Rs,zs],Il),hl("padEnd",[Rs,Rs,zs],Il),hl("testRegex",[zs,zs],(function(t,e,n){let r;try{r=new RegExp(n.value)}catch(t){throw new Error("Invalid regular expression.")}return{type:Ls,value:r.test(e.value)?1:0}})),hl("div",[Rs,Rs],(function(t,e,n){if(n.value===Di)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=tl(0,r),el(t,r),{type:Rs,value:r}})),hl("div",[Bs,Bs],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value/n.value;return{type:Bs,value:r}})),hl("mod",[Rs,Rs],(function(t,e,n){if(n.value===Di)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=tl(0,r),el(t,r),{type:Rs,value:r}})),hl("mod",[Bs,Bs],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value%n.value;return{type:Bs,value:r}})),hl("mul",[{type:Rs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:Di;for(let e=1;e<n.length;++e)o*=n[e].value,o=tl(0,o),el(t,o);return{type:Rs,value:o}})),hl("mul",[{type:Bs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:0;for(let t=1;t<n.length;++t)o*=n[t].value;return{type:Bs,value:o}})),hl("sub",[{type:Rs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:Di;for(let e=1;e<n.length;++e)o-=n[e].value,o=tl(0,o),el(t,o);return{type:Rs,value:o}})),hl("sub",[{type:Bs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:0;for(let t=1;t<n.length;++t)o-=n[t].value;return{type:Bs,value:o}})),hl("sum",[{type:Rs,isVararg:!0}],(function(t){let e=Di;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let n=0;n<r.length;++n)e+=r[n].value,e=tl(0,e),el(t,e);return{type:Rs,value:e}})),hl("sum",[{type:Bs,isVararg:!0}],(function(t){let e=0;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let t=0;t<r.length;++t)e+=r[t].value;return{type:Bs,value:e}})),hl("abs",[Rs],(function(t,e){const n=Si(e.value);return el(t,n),{type:e.type,value:n}})),hl("abs",[Bs],(function(t,e){const n=Math.abs(e.value);return{type:Bs,value:n}})),hl("max",[{type:Rs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");let o=n[0].value;for(let t=1;t<n.length;++t)n[t].value>o&&(o=n[t].value);return{type:Rs,value:o}})),hl("max",[{type:Bs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");return{type:Bs,value:Math.max(...n.map((t=>t.value)))}})),hl("min",[{type:Rs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");let o=n[0].value;for(let t=1;t<n.length;++t)n[t].value<o&&(o=n[t].value);return{type:Rs,value:o}})),hl("min",[{type:Bs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");return{type:Bs,value:Math.min(...n.map((t=>t.value)))}})),hl("maxNumber",[],(function(){return{type:Bs,value:Ms}})),hl("minNumber",[],(function(){return{type:Bs,value:Ts}})),hl("maxInteger",[],(function(t){return el(t,ji),{type:Rs,value:ji}})),hl("minInteger",[],(function(t){return el(t,Vi),{type:Rs,value:Vi}})),hl("round",[Bs],(function(t,e){const n=Math.sign(e.value);return{type:Bs,value:n*Math.round(Math.abs(e.value))}})),hl("floor",[Bs],(function(t,e){return{type:Bs,value:Math.floor(e.value)}})),hl("ceil",[Bs],(function(t,e){return{type:Bs,value:Math.ceil(e.value)}})),hl("signum",[Rs],(function(t,e){return{type:Rs,value:Pi(e.value)}})),hl("signum",[Bs],(function(t,e){return{type:Bs,value:Math.sign(e.value)}})),hl("copySign",[Rs,Rs],(function(t,e,n){let r;if(n.value===Di)r=e.value;else if(e.value===Di)r=Fi(0);else{const t=Pi(n.value);r=Si(e.value)*t}return el(t,r),{type:Rs,value:r}})),hl("copySign",[Bs,Bs],(function(t,e,n){let r=Math.sign(n.value);0===r&&(r=Object.is(r,0)?1:-1);const o=Math.abs(e.value)*r;return{type:Bs,value:o}})),hl("getColorAlpha",[zs],zl),hl("getColorAlpha",[Us],zl),hl("getColorRed",[zs],Rl),hl("getColorRed",[Us],Rl),hl("getColorGreen",[zs],Bl),hl("getColorGreen",[Us],Bl),hl("getColorBlue",[zs],Ll),hl("getColorBlue",[Us],Ll),hl("setColorAlpha",[zs,Bs],Ul),hl("setColorAlpha",[Us,Bs],Ul),hl("setColorRed",[zs,Bs],Wl),hl("setColorRed",[Us,Bs],Wl),hl("setColorGreen",[zs,Bs],Hl),hl("setColorGreen",[Us,Bs],Hl),hl("setColorBlue",[zs,Bs],ql),hl("setColorBlue",[Us,Bs],ql),hl("rgb",[Bs,Bs,Bs],(function(t,e,n,r){const o={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:Us,value:il(o)}})),hl("argb",[Bs,Bs,Bs,Bs],(function(t,e,n,r,o){const i={a:255*e.value,r:255*n.value,g:255*r.value,b:255*o.value};return{type:Us,value:il(i)}})),function(){const t={type:zs,isVararg:!0};hl("getDictString",[qs,t],Yl),hl("getStringFromDict",[qs,t],Yl),hl("getDictNumber",[qs,t],Zl),hl("getNumberFromDict",[qs,t],Zl),hl("getDictInteger",[qs,t],Ql),hl("getIntegerFromDict",[qs,t],Ql),hl("getDictBoolean",[qs,t],tc),hl("getBooleanFromDict",[qs,t],tc),hl("getDictColor",[qs,t],ec),hl("getColorFromDict",[qs,t],ec),hl("getDictUrl",[qs,t],nc),hl("getUrlFromDict",[qs,t],nc),hl("getDictOptString",[zs,qs,t],ic),hl("getOptStringFromDict",[zs,qs,t],ic),hl("getDictOptNumber",[Bs,qs,t],ac),hl("getOptNumberFromDict",[Bs,qs,t],ac),hl("getDictOptInteger",[Rs,qs,t],sc),hl("getOptIntegerFromDict",[Rs,qs,t],sc),hl("getDictOptBoolean",[Ls,qs,t],lc),hl("getOptBooleanFromDict",[Ls,qs,t],lc),hl("getDictOptColor",[Us,qs,t],cc),hl("getOptColorFromDict",[Us,qs,t],cc),hl("getDictOptColor",[zs,qs,t],cc),hl("getOptColorFromDict",[zs,qs,t],cc),hl("getDictOptUrl",[zs,qs,t],uc),hl("getOptUrlFromDict",[zs,qs,t],uc),hl("getDictOptUrl",[Ws,qs,t],uc),hl("getOptUrlFromDict",[Ws,qs,t],uc),hl("getDictFromDict",[qs,t],oc),hl("getArrayFromDict",[qs,t],rc),hl("getOptArrayFromDict",[qs,t],dc),hl("getOptDictFromDict",[qs,t],pc),gl("getString",[qs,t],Yl),gl("getBoolean",[qs,t],tc),gl("getInteger",[qs,t],Ql),gl("getNumber",[qs,t],Zl),gl("getUrl",[qs,t],nc),gl("getColor",[qs,t],ec),gl("getArray",[qs,t],rc),gl("getDict",[qs,t],oc)}(),hl("getArrayString",[Js,Rs],gc),hl("getStringFromArray",[Js,Rs],gc),hl("getArrayNumber",[Js,Rs],mc),hl("getNumberFromArray",[Js,Rs],mc),hl("getArrayInteger",[Js,Rs],vc),hl("getIntegerFromArray",[Js,Rs],vc),hl("getArrayBoolean",[Js,Rs],yc),hl("getBooleanFromArray",[Js,Rs],yc),hl("getArrayColor",[Js,Rs],$c),hl("getColorFromArray",[Js,Rs],$c),hl("getArrayUrl",[Js,Rs],bc),hl("getUrlFromArray",[Js,Rs],bc),hl("getArrayFromArray",[Js,Rs],_c),hl("getDictFromArray",[Js,Rs],wc),hl("getArrayOptString",[Js,Rs,zs],xc),hl("getOptStringFromArray",[Js,Rs,zs],xc),hl("getArrayOptNumber",[Js,Rs,Bs],kc),hl("getOptNumberFromArray",[Js,Rs,Bs],kc),hl("getArrayOptInteger",[Js,Rs,Rs],Cc),hl("getOptIntegerFromArray",[Js,Rs,Rs],Cc),hl("getArrayOptBoolean",[Js,Rs,Ls],Ec),hl("getOptBooleanFromArray",[Js,Rs,Ls],Ec),hl("getArrayOptColor",[Js,Rs,Us],Ac),hl("getOptColorFromArray",[Js,Rs,Us],Ac),hl("getArrayOptColor",[Js,Rs,zs],Ac),hl("getOptColorFromArray",[Js,Rs,zs],Ac),hl("getArrayOptUrl",[Js,Rs,Ws],jc),hl("getOptUrlFromArray",[Js,Rs,Ws],jc),hl("getArrayOptUrl",[Js,Rs,zs],jc),hl("getOptUrlFromArray",[Js,Rs,zs],jc),hl("getOptArrayFromArray",[Js,Rs],(function(t,e,n){try{return _c(t,e,n)}catch(t){return{type:Js,value:[]}}})),hl("getOptDictFromArray",[Js,Rs],(function(t,e,n){try{return wc(t,e,n)}catch(t){return{type:qs,value:{}}}})),hl("len",[Js],(function(t,e){return{type:Rs,value:Fi(e.value.length)}})),gl("getString",[Js,Rs],gc),gl("getInteger",[Js,Rs],vc),gl("getNumber",[Js,Rs],mc),gl("getBoolean",[Js,Rs],yc),gl("getUrl",[Js,Rs],bc),gl("getColor",[Js,Rs],$c),gl("getArray",[Js,Rs],_c),gl("getDict",[Js,Rs],wc),hl("getStoredIntegerValue",[zs,Rs],Vc(Rs)),hl("getStoredNumberValue",[zs,Bs],Vc(Bs)),hl("getStoredStringValue",[zs,zs],Vc(zs)),hl("getStoredUrlValue",[zs,Ws],Vc(Ws)),hl("getStoredUrlValue",[zs,zs],Vc(Ws)),hl("getStoredColorValue",[zs,Us],Vc(Us)),hl("getStoredColorValue",[zs,zs],Vc(Us)),hl("getStoredBooleanValue",[zs,Ls],Vc(Ls));const Dc={StringLiteral:function(t,e){return{type:zs,value:e.value}},NumberLiteral:function(t,e){return{type:Bs,value:e.value}},IntegerLiteral:function(t,e){return el(t,e.value),{type:Rs,value:e.value}},BooleanLiteral:function(t,e){return{type:Ls,value:e.value?1:0}},UnaryExpression:function(t,e){const n=Ks(Sc(t,e.argument));switch(e.operator){case"!":if(n.type===Ls)return{type:Ls,value:n.value?0:1};rl("".concat(e.operator).concat(Zs(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===Rs){const e=n.value*Fi(r);return el(t,e),{type:Rs,value:e}}if(n.type===Bs)return{type:Bs,value:n.value*r};rl("".concat(e.operator).concat(Zs(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=Ks(Sc(t,e.test));if(n.type===Ls)return n.value?Sc(t,e.consequent):Sc(t,e.alternate);rl("".concat(Zs(n)," ? ").concat(Zs(Sc(t,e.consequent))," : ").concat(Zs(Sc(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TryExpression:function(t,e){try{return Sc(t,e.test)}catch(n){return Sc(t,e.alternate)}},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return Sc(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=Ys(Sc(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:zs,value:n}},LogicalExpression:function(t,e){const n=Ks(Sc(t,e.left));if(n.type!==Ls&&rl("".concat(Zs(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:Ls,value:0};const r=Ks(Sc(t,e.right));return r.type!==Ls&&rl("".concat(Zs(n)," ").concat(e.operator," ").concat(Zs(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(Qs(r.type),".")),{type:Ls,value:r.value}},BinaryExpression:function(t,e){const n=e.operator;let r=Sc(t,e.left),o=Sc(t,e.right);if(("number"===r.type&&"integer"===o.type||"integer"===r.type&&"number"===o.type)&&("integer"===r.type?r=sl(r):"integer"===o.type&&(o=sl(o))),r.type!==o.type&&rl("".concat(Zs(r)," ").concat(e.operator," ").concat(Zs(o)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(Qs(r.type)," and ").concat(Qs(o.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===Hs&&n.type===Hs?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:Ls,value:r?1:0}}(n,r,o);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==Bs&&e.type!==Rs&&e.type!==Hs&&rl("".concat(Zs(e)," ").concat(t," ").concat(Zs(n)),"Operator '".concat(t,"' cannot be applied to ").concat(Qs(e.type)," type."));const o=e.type===Hs?e.value.getTime():e.value,i=n.type===Hs?n.value.getTime():n.value;return r=">"===t?o>i:">="===t?o>=i:"<"===t?o<i:o<=i,{type:Ls,value:r?1:0}}(n,r,o);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==zs&&n.type!==Bs&&n.type!==Rs&&rl("".concat(Zs(n)," ").concat(e," ").concat(Zs(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Qs(n.type)," type.")),n.type===zs)return"-"===e&&rl("".concat(Zs(n)," - ").concat(Zs(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Qs(n.type)," type.")),{type:zs,value:n.value+r.value};let o="+"===e?n.value+r.value:n.value-r.value;if(n.type===Rs)try{o=tl(0,o),el(t,o)}catch(t){rl("".concat(Zs(n)," ").concat(e," ").concat(Zs(r)),t.message)}return{type:n.type,value:o}}(t,n,r,o);if("/"===n||"*"===n||"%"===n)return function(t,e,n,r){let o;if(n.type!==Rs&&n.type!==Bs&&rl("".concat(Zs(n)," ").concat(e," ").concat(Zs(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Qs(n.type)," type.")),"*"===e)o=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&rl("".concat(Zs(n)," ").concat(e," ").concat(Zs(r)),"Division by zero is not supported."),o="/"===e?n.value/r.value:n.value%r.value}if(n.type===Rs)try{o=tl(0,o),el(t,o)}catch(t){rl("".concat(Zs(n)," ").concat(e," ").concat(Zs(r)),t.message)}return{type:n.type,value:o}}(t,n,r,o);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;let r,o=e.arguments.map((e=>Sc(t,e)));const i=n+":"+o.map((t=>t.type)).join("#");if(dl.has(i))r=dl.get(i);else{const t=vl("function",n,o);if("expected"in t||"type"in t&&"missing"===t.type){const e=o.map((t=>Qs(t.type))).join(", "),r="".concat(n,"(").concat(Fc(o),")");"few"===t.type&&0===o.length?rl(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?rl(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):rl(r,"Unknown function name: ".concat(n,"."))}r=t.func,t.conversions&&(o=yl(r,o))}if(!r)throw new Error("Function not found");try{return r.cb(t,...o)}catch(t){rl("".concat(n,"(").concat(Fc(o),")"),t.message)}},MethodExpression:function(t,e){const n=e.method.name;let r;e.arguments.unshift(e.object);let o=e.arguments.map((e=>Sc(t,e)));const i=n+":"+o.map((t=>t.type)).join("#");if(fl.has(i))r=fl.get(i);else{const t=vl("method",n,o);if("expected"in t||"type"in t&&"missing"===t.type){const e=o.slice(1).map((t=>Qs(t.type))).join(", "),r="".concat(n,"(").concat(Fc(o.slice(1)),")");"few"===t.type&&1===o.length?rl(r,"Non empty argument list is required for method '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?rl(r,"Method '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):rl(r,"Unknown method name: ".concat(n,"."))}r=t.func,t.conversions&&(o=yl(r,o))}if(!r)throw new Error("Method not found");try{return r.cb(t,...o)}catch(t){rl("".concat(n,"(").concat(Fc(o.slice(1)),")"),t.message)}},Variable:function(t,e){const n=e.id.name,r=t.variables.get(n);if(r)return function(t){return{type:t.getType(),value:t.getValue()}}(r);throw new Error("Variable '".concat(n,"' is missing."))}};function Sc(t,e){if(e.type in Dc)return Dc[e.type](t,e);throw new Error("Unsupported expression")}function Pc(t,e,n){try{const r={variables:t,warnings:[],safeIntegerOverflow:!1,store:e},o=Sc(r,n);return r.safeIntegerOverflow&&r.warnings.push(oe(new Error("Safe integer overflow, values may lose accuracy."),{level:"warn"})),{result:o,warnings:r.warnings}}catch(t){return{result:{type:"error",value:t.message},warnings:[]}}}class Nc{constructor(t){this.ast=t}apply(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];try{const o=Pc(t,n,this.ast);o.warnings.forEach(e);const i=o.result;if("error"===i.type)return void e(oe(new Error("Expression execution error"),{additional:{message:i.value}}));const a=i.value;if(a instanceof Date)return Xs(a);if("boolean"===i.type)return Boolean(a);if("color"===i.type){const t=pe(String(a));if(t)return il(t);e(oe(new Error("Expression execution error")))}if("integer"===i.type)return a>2147483647||a<-2147483648?void e(oe(new Error("Expression result is out of 32-bit int range"))):Number(a);if(!r&&("array"===i.type||"dict"===i.type))try{return JSON.stringify(a)}catch(t){return e(oe(new Error("Failed to stringify ".concat(i.type)))),"<".concat(i.type,">")}return a}catch(t){return void e(oe(new Error("Expression execution error")))}}}function Oc(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=Is(t,{startRule:"JsonStringContents"}),r=nl(n);return e.vars.push(...r),new Nc(n)}catch(e){return void n(oe(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>Oc(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=Oc(t[o],e,n);return r}}var r;return t}function Ic(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(t){if(t instanceof Nc)return t.apply(e,n,r,o);if(Array.isArray(t))return t.map((t=>Ic(t,e,n,r)));if("object"==typeof t){const o={};for(const i in t)o[i]=Ic(t[i],e,n,r);return o}}return t}function Mc(t,e,n){const r={vars:[],hasExpression:!1},o=Oc(t,r,e);return{vars:[...new Set(r.vars)],hasExpression:r.hasExpression,applyVars:(t,r)=>Ic(o,t,e,n,r)}}const Tc={pagers:function(){return te(new Map)}},zc=new Map,Rc=new Map;function Bc(t){const e=zc.get(t)||te("");return zc.has(t)||zc.set(t,e),e}function Lc(t){const e=Rc.get(t)||new Map;return Rc.has(t)||Rc.set(t,e),e}class Uc{setVariable(t){const e=t.getName(),n=Lc(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),Bc(this).set(e)}getVariable(t){return Lc(this).get(t)}list(){return Lc(this).values()}}function Wc(){return new Uc}function Hc(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const qc=new Set(["start","stop","pause","resume","cancel","reset"]);class Jc{constructor(t){Hc(this,"timers",new Map),Hc(this,"awaitActions",[]),this.logError=t.logError,this.applyVars=t.applyVars,this.hasVariableWithType=t.hasVariableWithType,this.setVariableValue=t.setVariableValue,this.execAnyActions=t.execAnyActions,this.visibilityHandler=()=>{"visible"===document.visibilityState?(this.awaitActions.forEach((t=>{let{id:e,action:n}=t;this.execTimerAction(e,n)})),this.awaitActions=[],this.unholdAll()):this.holdAll()},document.addEventListener("visibilitychange",this.visibilityHandler)}destroy(){document.removeEventListener("visibilitychange",this.visibilityHandler);for(const[t,e]of this.timers)this.stopTimerTimeouts(e)}createTimer(t){null!=t&&t.id?t.duration||t.tick_interval&&(t.value_variable||t.tick_actions)?this.timers.set(t.id,{state:"stopped",definition:t}):this.logError(oe(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(oe(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&qc.has(e)))return void this.logError(oe(new Error("Incorrect timer action"),{additional:{id:t,action:e}}));const n=e;if("visible"!==document.visibilityState)return void this.awaitActions.push({id:t,action:n});const r=this.timers.get(t);this[n](r)}stopTimerTimeouts(t){t.durationTimeout&&(clearTimeout(t.durationTimeout),t.durationTimeout=void 0),t.tickTimeout&&(clearTimeout(t.tickTimeout),t.tickTimeout=void 0)}async tickOrUnholdAction(t){const e=performance.now(),n=(t.durationPassed||0)+e-(t.durationStarted||0);t.duration&&n>t.duration||(this.updateVariable(t,n),await this.callActions(t,"tick"),void 0!==t.tickCount&&++t.tickCount)}startOrResume(t){t.state="running",t.hold=!1,t.durationStarted=performance.now();const e=t.duration;e&&(t.durationTimeout=window.setTimeout((async()=>{this.updateVariable(t,e),t.tickCountPredict&&void 0!==t.tickCount&&t.tickCount<t.tickCountPredict&&await this.callActions(t,"tick"),this.stop(t)}),Math.max(0,e-(t.durationPassed||0))));const n=t.tick;if(n){const e=()=>{const r=t.tickStarted=performance.now(),o=Math.max(0,n-(t.tickPassed||0));t.tickTimeout=window.setTimeout((async()=>{await this.tickOrUnholdAction(t),t.tickPassed=(performance.now()-r-o)%n,"running"===t.state&&e()}),o)};e()}}start(t){if("running"===t.state)return void this.logError(oe(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(oe(new Error("The timer is paused")));const e=t.definition.value_variable;!e||this.hasVariableWithType(e,"integer")?(e&&this.setVariableValue(e,0),t.definition.duration&&(t.duration=this.applyVars(t.definition.duration)),t.definition.tick_interval&&(t.tick=this.applyVars(t.definition.tick_interval)),void 0!==t.duration&&t.duration<0||void 0!==t.tick&&t.tick<=0?this.logError(oe(new Error("Incorrect timer properties"),{additional:{id:t.definition.id}})):(void 0!==t.duration&&void 0!==t.tick&&(t.tickCount=0,t.tickCountPredict=Math.floor(t.duration/t.tick)),this.startOrResume(t))):this.logError(oe(new Error("Cannot find variable"),{additional:{name:e}}))}stop(t){"stopped"!==t.state?(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t),this.callActions(t,"end")):this.logError(oe(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(oe(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(oe(new Error("The timer has already been paused")));t.state="paused",this.stopTimerTimeouts(t);const e=performance.now();t.durationStarted&&(t.durationPassed=(t.durationPassed||0)+e-t.durationStarted),t.tickStarted&&(t.tickPassed=(t.tickPassed||0)+e-t.tickStarted);const n=t.definition.value_variable;n&&t.durationPassed&&this.setVariableValue(n,Math.round(t.durationPassed))}resume(t){"stopped"!==t.state?"running"!==t.state?this.startOrResume(t):this.logError(oe(new Error("The timer is already running"))):this.logError(oe(new Error("The timer has already been stopped")))}cancel(t){"stopped"!==t.state&&(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t))}reset(t){this.cancel(t),this.start(t)}updateVariable(t,e){const n=t.definition.value_variable;n&&this.setVariableValue(n,Math.round(e))}async callActions(t,e){const n=t.definition["end"===e?"end_actions":"tick_actions"];if(n){const t=this.applyVars(n);return this.execAnyActions(t,{processUrls:!1})}}holdAll(){for(const[t,e]of this.timers)"running"===e.state&&(e.hold=!0,this.stopTimerTimeouts(e))}async unholdAll(){for(const[t,e]of this.timers)if("running"===e.state&&e.hold){const t=performance.now();e.durationStarted&&(e.durationPassed=(e.durationPassed||0)+t-e.durationStarted),e.tickStarted&&(e.tickPassed=(e.tickPassed||0)+t-e.tickStarted),e.tick&&await this.tickOrUnholdAction(e),this.startOrResume(e)}}}function Gc(t,e,n,r){const{variable_name:o}=n;if(!o)return void e(oe(new Error("Incorrect ".concat(n.type," action")),{additional:{name:o}}));const i=t.get(o);if(!i)return void e(oe(new Error("Cannot find variable"),{additional:{name:o}}));const a=i.getType();"array"===a?r(i):e(oe(new Error("Trying to insert value into the non-array"),{additional:{name:o,type:a}}))}const Kc={tooltip:"divkit-f1907",tooltip_visible:"divkit-e5914"},Xc={linear:r,ease:Do,ease_in:jo,ease_out:Vo,ease_in_out:Ao,spring:So},Yc=300,Zc=0;function Qc(t,e){let{animations:n,direction:r}=e;if(!n)return{};const o=Me(n),i=(a=o,Math.max(...a.map((t=>(Number(t.duration)||Yc)+(Number(t.start_delay)||Zc)))));var a;return o.some((t=>"no_animation"===t.name))?{}:{duration:Le()?0:i,css:t=>{const e=t*i,n=o.map((t=>{const n=Number(t.start_delay)||Zc,o=Number(t.duration)||Yc,i=Math.max(0,Math.min(1,(e-n)/o)),a=(Xc[t.interpolator||"ease_in_out"]||Ao)(i);var s,l;if("fade"===t.name)return{active:a>0&&a<1,opacity:(1-a)*("in"===r&&null!==(s=t.start_value)&&void 0!==s?s:0)+a*("in"===r?1:null!==(l=t.end_value)&&void 0!==l?l:1)};if("translate"===t.name){var c,u;const e=-("in"===r&&null!==(c=t.start_value)&&void 0!==c?c:10),n=-("in"===r?0:null!==(u=t.end_value)&&void 0!==u?u:0);return{active:a>0&&a<1,translate:"translateY(".concat((1-a)*e+a*n).concat("in"===r&&void 0!==t.start_value||"out"===r&&void 0!==t.end_value?"%":"px",")")}}if("scale"===t.name){var d,p;const e="in"===r&&null!==(d=t.start_value)&&void 0!==d?d:0,n="in"===r?1:null!==(p=t.end_value)&&void 0!==p?p:1;return{active:a>0&&a<1,scale:"scale(".concat((1-a)*e+a*n,")")}}return{}})),a=n.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),s=n.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),l=n.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),c=n.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),u=[s,c.length?c[c.length-1]:l].filter(Boolean).join(" ");return"transform:".concat(u||"none",";opacity:").concat(a)}}}const{window:tu}=j;function eu(t){let e,o,i,a,c,u,d,p;return o=new gs({props:{componentContext:t[11]}}),{c(){e=T("div"),Jt(o.$$.fragment),W(e,"class",i=Ee("tooltip",Kc,t[5])+" "+(t[12]?ne.root_platform_desktop:"")),Y(e,"top",t[2]),Y(e,"left",t[1]),Y(e,"width",t[3]),Y(e,"height",t[4])},m(n,r){O(n,e,r),Gt(o,e,null),t[27](e),u=!0,d||(p=[U(tu,"click",t[16]),U(tu,"resize",t[17])],d=!0)},p(n,r){t=n;const a={};2048&r[0]&&(a.componentContext=t[11]),o.$set(a),(!u||4128&r[0]&&i!==(i=Ee("tooltip",Kc,t[5])+" "+(t[12]?ne.root_platform_desktop:"")))&&W(e,"class",i),4&r[0]&&Y(e,"top",t[2]),2&r[0]&&Y(e,"left",t[1]),8&r[0]&&Y(e,"width",t[3]),16&r[0]&&Y(e,"height",t[4])},i(n){u||(Nt(o.$$.fragment,n),n&&wt((()=>{u&&(c&&c.end(1),a=Mt(e,Qc,{animations:t[13]||nu,direction:"in"}),a.start())})),u=!0)},o(i){Ot(o.$$.fragment,i),a&&a.invalidate(),i&&(c=function(t,e,o){const i={direction:"out"};let a,c=e(t,o,i),u=!0;const d=Dt;let p;function f(){const{delay:e=0,duration:o=300,easing:i=r,tick:l=n,css:f}=c||It;f&&(a=ot(t,1,0,o,e,i,f));const h=x()+e,g=h+o;wt((()=>Vt(t,!1,"start"))),"inert"in t&&(p=t.inert,t.inert=!0),A((e=>{if(u){if(e>=g)return l(0,1),Vt(t,!1,"end"),--d.r||s(d.c),!1;if(e>=h){const t=i((e-h)/o);l(1-t,t)}}return u}))}return d.r+=1,l(c)?jt().then((()=>{c=c(i),f()})):f(),{end(e){e&&"inert"in t&&(t.inert=p),e&&c.tick&&c.tick(1,0),u&&(a&&it(t,a),u=!1)}}}(e,Qc,{animations:t[14]||nu,direction:"out"})),u=!1},d(n){n&&I(e),Kt(o),t[27](null),n&&c&&c.end(),d=!1,s(p)}}}const nu={name:"set",items:[{name:"translate"},{name:"fade"}]};function ru(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$=n,b=n,_=n,w=n,x=n;var k,C,E,A;t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x()));let{ownerNode:j}=e,{data:V}=e,{internalId:F}=e,{parentComponentContext:D}=e;const S=pt(re),P=S.isDesktop;f(t,P,(t=>r(12,m=t)));const N=Date.now();let O,I=!1,M="",T="",z="",R="",B=null;function L(){var t,e;if(!O||!j)return;const n=O.parentElement;if(!n)return;const o=O.style.cssText;r(0,O.style.cssText+=";transform: none !important",O);const i=j.getBoundingClientRect(),a=O.getBoundingClientRect(),s=n.getBoundingClientRect();r(0,O.style.cssText=o,O);let l=0,c=0,u=null,p=null,f=0,m=0;const v=D.getJsonWithVars(null===(t=V.div)||void 0===t?void 0:t.width),y=D.getJsonWithVars(null===(e=V.div)||void 0===e?void 0:e.width);if(f=v&&"match_parent"!==v.type?"fixed"===v.type&&v.value?u=v.value:a.width:u=i.width,m="match_parent"===(null==y?void 0:y.type)?p=i.height:"fixed"===(null==y?void 0:y.type)&&y.value?p=y.value:a.height,"left"===g||"bottom-left"===g||"top-left"===g)l=i.left-f;else if("top"===g||"bottom"===g||"center"===g)l=(i.left+i.right)/2-f/2;else{if("right"!==g&&"bottom-right"!==g&&"top-right"!==g)return;l=i.right}if("top"===g||"top-left"===g||"top-right"===g)c=i.top-m;else if("left"===g||"right"===g||"center"===g)c=(i.top+i.bottom)/2-m/2;else{if("bottom-left"!==g&&"bottom"!==g&&"bottom-right"!==g)return;c=i.bottom}l-=s.left,c-=s.top,l+=h||0,c+=d||0,r(1,M="".concat(l,"px")),r(2,T="".concat(c,"px")),r(3,z=null!==u?"".concat(u,"px"):""),r(4,R=null!==p?"".concat(p,"px"):""),r(26,I=!0),null===u||null===p?"undefined"==typeof ResizeObserver||B||(B=new ResizeObserver((()=>{requestAnimationFrame(L)})),B.observe(O)):null==B||B.disconnect()}return lt((()=>{if(S.tooltipRoot){const t=window.getComputedStyle(O);r(0,O.style.fontSize=t.fontSize,O),r(0,O.style.fontFamily=t.fontFamily,O),r(0,O.style.lineHeight=t.lineHeight,O),S.tooltipRoot.appendChild(O)}})),ct((()=>{I||L()})),ut((()=>{null==B||B.disconnect()})),t.$$set=t=>{"ownerNode"in t&&r(18,j=t.ownerNode),"data"in t&&r(19,V=t.data),"internalId"in t&&r(20,F=t.internalId),"parentComponentContext"in t&&r(21,D=t.parentComponentContext)},t.$$.update=()=>{2621440&t.$$.dirty[0]&&r(11,o=D.produceChildContext(V.div)),2621440&t.$$.dirty[0]&&(r(10,i=D.getDerivedFromVars(V.position)),_(),_=p(i,(t=>r(31,g=t)))),15204352&t.$$.dirty[0]&&(r(9,a=D.getDerivedFromVars(null===r(23,C=null===r(22,k=V.offset)||void 0===k?void 0:k.x)||void 0===C?void 0:C.value)),b(),b=p(a,(t=>r(30,h=t)))),52953088&t.$$.dirty[0]&&(r(8,s=D.getDerivedFromVars(null===r(25,A=null===r(24,E=V.offset)||void 0===E?void 0:E.y)||void 0===A?void 0:A.value)),$(),$=p(s,(t=>r(29,d=t)))),2621440&t.$$.dirty[0]&&(r(7,l=D.getDerivedFromVars(V.animation_in)),w(),w=p(l,(t=>r(13,v=t)))),2621440&t.$$.dirty[0]&&(r(6,c=D.getDerivedFromVars(V.animation_out)),x(),x=p(c,(t=>r(14,y=t)))),67108864&t.$$.dirty[0]&&r(5,u={visible:I})},[O,M,T,z,R,u,c,l,s,a,i,o,m,v,y,P,function(t){Date.now()-N<100||t.composedPath().includes(O)||S.onTooltipClose(F)},function(){L()},j,V,F,D,k,C,E,A,I,function(t){gt[t?"unshift":"push"]((()=>{O=t,r(0,O)}))}]}const ou=class extends Zt{constructor(t){super(),Xt(this,t,ru,eu,d,{ownerNode:18,data:19,internalId:20,parentComponentContext:21},null,[-1,-1])}};function iu(t){let{delay:e=0,duration:n=400,easing:r=Vo,x:o=0,y:i=0,opacity:a=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=getComputedStyle(t),l=+s.opacity,c="none"===s.transform?"":s.transform,u=l*(1-a),[d,p]=_(o),[f,h]=_(i);return{delay:e,duration:n,easing:r,css:(t,e)=>"\n\t\t\ttransform: ".concat(c," translate(").concat((1-t)*d).concat(p,", ").concat((1-t)*f).concat(h,");\n\t\t\topacity: ").concat(l-u*e)}}const au={root_platform_desktop:"divkit-ee112",menu:"divkit-cedbe",menu_visible:"divkit-e4801",menu__list:"divkit-c8df2",menu__item:"divkit-ffd4a"},{window:su}=j;function lu(t,e,n){const r=t.slice();return r[23]=e[n],r}function cu(t){let e,n=t[23].text+"";return{c(){e=R(n)},m(t,n){O(t,e,n)},p(t,r){1&r&&n!==(n=t[23].text+"")&&K(e,n)},d(t){t&&I(e)}}}function uu(t){let e,n,r,o;return n=new Xe({props:{componentContext:t[1],actions:t[23].actions||t[23].action&&[t[23].action],cls:au.menu__item+" "+t[10],customAction:t[14],$$slots:{default:[cu]},$$scope:{ctx:t}}}),{c(){e=T("li"),Jt(n.$$.fragment),r=B()},m(t,i){O(t,e,i),Gt(n,e,null),S(e,r),o=!0},p(t,e){const r={};2&e&&(r.componentContext=t[1]),1&e&&(r.actions=t[23].actions||t[23].action&&[t[23].action]),67108865&e&&(r.$$scope={dirty:e,ctx:t}),n.$set(r)},i(t){o||(Nt(n.$$.fragment,t),o=!0)},o(t){Ot(n.$$.fragment,t),o=!1},d(t){t&&I(e),Kt(n)}}}function du(t){let e,n,r,o,i,a,l,c,u=zt(t[0]),d=[];for(let e=0;e<u.length;e+=1)d[e]=uu(lu(t,u,e));const p=t=>Ot(d[t],1,1,(()=>{d[t]=null}));return{c(){e=T("div"),n=T("ul");for(let t=0;t<d.length;t+=1)d[t].c();W(n,"class",r=au.menu__list),W(e,"class",o=Ee("menu",au,t[7])+" "+(t[8]?ne.root_platform_desktop:"")+" "+t[9]),Y(e,"top",t[4]),Y(e,"left",t[3]),Y(e,"width",t[5]),Y(e,"height",t[6])},m(r,o){O(r,e,o),S(e,n);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(n,null);t[17](e),a=!0,l||(c=[U(su,"click",t[12]),U(su,"resize",t[13])],l=!0)},p(t,r){let[i]=r;if(17411&i){let e;for(u=zt(t[0]),e=0;e<u.length;e+=1){const r=lu(t,u,e);d[e]?(d[e].p(r,i),Nt(d[e],1)):(d[e]=uu(r),d[e].c(),Nt(d[e],1),d[e].m(n,null))}for(St(),e=u.length;e<d.length;e+=1)p(e);Pt()}(!a||384&i&&o!==(o=Ee("menu",au,t[7])+" "+(t[8]?ne.root_platform_desktop:"")+" "+t[9]))&&W(e,"class",o),16&i&&Y(e,"top",t[4]),8&i&&Y(e,"left",t[3]),32&i&&Y(e,"width",t[5]),64&i&&Y(e,"height",t[6])},i(t){if(!a){for(let t=0;t<u.length;t+=1)Nt(d[t]);t&&wt((()=>{a&&(i||(i=Tt(e,iu,{y:20},!0)),i.run(1))})),a=!0}},o(t){d=d.filter(Boolean);for(let t=0;t<d.length;t+=1)Ot(d[t]);t&&(i||(i=Tt(e,iu,{y:20},!1)),i.run(0)),a=!1},d(n){n&&I(e),M(d,n),t[17](null),n&&i&&i.end(),l=!1,s(c)}}}function pu(t,e,n){let r,o,{ownerNode:i}=e,{items:a}=e,{parentComponentContext:s}=e;const l=pt(re),c=l.getCustomization("menuPopupClass")||"",u=l.getCustomization("menuItemClass")||"",d=l.isDesktop;f(t,d,(t=>n(8,o=t)));const p=Date.now(),h=function(){const t=st();return function(e,n){let{cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=t.$$.callbacks[e];if(o){const i=Q(e,n,{cancelable:r});return o.slice().forEach((e=>{e.call(t,i)})),!i.defaultPrevented}return!0}}();let g,m=!1,v="",y="",$="",b="",_=null;function w(){if(!g||!i)return;const t=g.parentElement;if(!t)return;const e=i.getBoundingClientRect(),r=g.getBoundingClientRect(),o=t.getBoundingClientRect(),a=window.innerWidth,s=window.innerHeight;let l=0,c=0,u=r.width,d=r.height;l=e.left-o.left,c=e.bottom-o.top,l+u>a&&(l=a-u),l<0&&(l=0),c+d>s&&(c=e.top-o.top-d>0?e.top-o.top-d:s-d),c<0&&(c=0),n(3,v="".concat(l,"px")),n(4,y="".concat(c,"px")),n(5,$=""),n(6,b=""),n(16,m=!0),"undefined"==typeof ResizeObserver||_||(_=new ResizeObserver((()=>{requestAnimationFrame(w)})),_.observe(g))}return lt((()=>{if(l.tooltipRoot){const t=window.getComputedStyle(g);n(2,g.style.fontSize=t.fontSize,g),n(2,g.style.fontFamily=t.fontFamily,g),n(2,g.style.lineHeight=t.lineHeight,g),l.tooltipRoot.appendChild(g)}})),ct((()=>{m||w()})),ut((()=>{null==_||_.disconnect()})),t.$$set=t=>{"ownerNode"in t&&n(15,i=t.ownerNode),"items"in t&&n(0,a=t.items),"parentComponentContext"in t&&n(1,s=t.parentComponentContext)},t.$$.update=()=>{65536&t.$$.dirty&&n(7,r={visible:m})},[a,s,g,v,y,$,b,r,o,c,u,d,function(t){Date.now()-p<100||t.composedPath().includes(g)||h("close")},function(){w()},function(){return h("close"),!0},i,m,function(t){gt[t?"unshift":"push"]((()=>{g=t,n(2,g)}))}]}const fu=class extends Zt{constructor(t){super(),Xt(this,t,pu,du,d,{ownerNode:15,items:0,parentComponentContext:1})}},{Map:hu}=j;function gu(t,e,n){const r=t.slice();return r[115]=e[n],r}function mu(t){let e,n,r,o,i,a,s,l,c,u;n=new Cs({props:{svgFiltersMap:t[5]}}),o=new gs({props:{componentContext:t[6]}});let d=t[3]&&vu(t),p=t[4]&&$u(t);return{c(){e=T("div"),Jt(n.$$.fragment),r=B(),Jt(o.$$.fragment),i=B(),d&&d.c(),a=B(),p&&p.c(),W(e,"class",s=""+(ne.root+(t[7]?" ".concat(ne.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))),W(e,"dir",t[8])},m(t,s){O(t,e,s),Gt(n,e,null),S(e,r),Gt(o,e,null),S(e,i),d&&d.m(e,null),S(e,a),p&&p.m(e,null),l=!0,c||(u=U(e,"touchstart",Au,{passive:!0}),c=!0)},p(t,r){const i={};32&r[0]&&(i.svgFiltersMap=t[5]),n.$set(i);const c={};64&r[0]&&(c.componentContext=t[6]),o.$set(c),t[3]?d?(d.p(t,r),8&r[0]&&Nt(d,1)):(d=vu(t),d.c(),Nt(d,1),d.m(e,a)):d&&(St(),Ot(d,1,1,(()=>{d=null})),Pt()),t[4]?p?(p.p(t,r),16&r[0]&&Nt(p,1)):(p=$u(t),p.c(),Nt(p,1),p.m(e,null)):p&&(St(),Ot(p,1,1,(()=>{p=null})),Pt()),(!l||129&r[0]&&s!==(s=""+(ne.root+(t[7]?" ".concat(ne.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))))&&W(e,"class",s),(!l||256&r[0])&&W(e,"dir",t[8])},i(t){l||(Nt(n.$$.fragment,t),Nt(o.$$.fragment,t),Nt(d),Nt(p),l=!0)},o(t){Ot(n.$$.fragment,t),Ot(o.$$.fragment,t),Ot(d),Ot(p),l=!1},d(t){t&&I(e),Kt(n),Kt(o),d&&d.d(),p&&p.d(),c=!1,u()}}}function vu(t){let e,n,r=[],o=new hu,i=zt(t[3]);const a=t=>t[115].internalId;for(let e=0;e<i.length;e+=1){let n=gu(t,i,e),s=a(n);o.set(s,r[e]=yu(s,n))}return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=L()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);O(t,e,o),n=!0},p(t,n){72&n[0]&&(i=zt(t[3]),St(),r=Bt(r,n,a,1,t,i,o,e.parentNode,Rt,yu,e,gu),Pt())},i(t){if(!n){for(let t=0;t<i.length;t+=1)Nt(r[t]);n=!0}},o(t){for(let t=0;t<r.length;t+=1)Ot(r[t]);n=!1},d(t){t&&I(e);for(let e=0;e<r.length;e+=1)r[e].d(t)}}}function yu(t,e){let n,r,o;return r=new ou({props:{ownerNode:e[115].ownerNode,data:e[115].desc,internalId:e[115].internalId,parentComponentContext:e[6]}}),{key:t,first:null,c(){n=L(),Jt(r.$$.fragment),this.first=n},m(t,e){O(t,n,e),Gt(r,t,e),o=!0},p(t,n){e=t;const o={};8&n[0]&&(o.ownerNode=e[115].ownerNode),8&n[0]&&(o.data=e[115].desc),8&n[0]&&(o.internalId=e[115].internalId),64&n[0]&&(o.parentComponentContext=e[6]),r.$set(o)},i(t){o||(Nt(r.$$.fragment,t),o=!0)},o(t){Ot(r.$$.fragment,t),o=!1},d(t){t&&I(n),Kt(r,t)}}}function $u(t){let e,n;return e=new fu({props:{ownerNode:t[4].node,items:t[4].items,parentComponentContext:t[6]}}),e.$on("close",t[39]),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.ownerNode=t[4].node),16&n[0]&&(r.items=t[4].items),64&n[0]&&(r.parentComponentContext=t[6]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function bu(t){let e,n,r=!t[1]&&!t[2]&&t[6]&&mu(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[1]||t[2]||!t[6]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),70&n[0]&&Nt(r,1)):(r=mu(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}let _u=te(!0),wu=0;function xu(){_u.set(!1)}function ku(){_u.set(!0)}const Cu=new Set(["string","integer","number","url","color","boolean"]);function Eu(t,e){return t&&e?new Map([...t,...e]):t||e||void 0}function Au(){}function ju(t,e,n){let r,o,i,a;var s,l,c,u;let{id:d}=e,{json:p={}}=e,{platform:h="auto"}=e,{theme:g="system"}=e,{globalVariablesController:m=new Uc}=e,{mix:v=""}=e,{customization:y={}}=e,{builtinProtocols:$=["http","https","tel","mailto","intent"]}=e,{extensions:b=new Map}=e,{onError:_}=e,{onStat:w}=e,{onCustomAction:x}=e,{onComponent:k}=e,{typefaceProvider:C=(t=>"")}=e,{fetchInit:E={}}=e,{tooltipRoot:A}=e,{customComponents:j}=e,{direction:V="ltr"}=e,{store:F}=e,D=te("desktop"===h);if(f(t,D,(t=>n(7,i=t))),"auto"===h&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");D.set(!t.matches),t.addListener((()=>{D.set(!t.matches)}))}let S="light",P=null;const N=te("rtl"===V?"rtl":"ltr");function O(){"system"===g&&P&&n(36,S=P.matches?"dark":"light")}f(t,N,(t=>n(8,a=t)));const I=new Set($);let M=!1,T=!1;d||(T=!0,Y(oe(new Error('"id" prop is required'))));const z={stateChange:!1},R=Bc(m),B=Lc(m),L=new Map,U=new Map,W=new Map;let H,q=null,J=0,G=[];const K=[];function X(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=Mc(e,t,F);if(!o.hasExpression)return e;const i=Eu(U,n);return o.applyVars(i,r)}function Y(t){_?_({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function Z(t,e){w&&w({type:t,action:e})}function Q(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type&&t.type in r;){if(({json:t,templateContext:e}=Es(t,e,r,Y)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}}let tt=0;function et(t){return"".concat(d,"-").concat(tt++)}let nt={},rt={};async function ot(t,e){const o=t.url?String(t.url):"",i=t.typed;if(!Re(t))return;const a=(null==e?void 0:e.logError)||Y;if(o)try{const i=o.replace(/div-action:\/\//,""),s=/([^?]+)\?(.+)/.exec(i);if(!s)return;const l=new URLSearchParams(s[2]);switch(s[1]){case"set_state":await async function(t){if(!t)throw new Error("Missing state id");let e=vt,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;await i.setState(o),e=i}}(l.get("state_id"));break;case"set_current_item":case"set_previous_item":case"set_next_item":case"scroll_to_start":case"scroll_to_end":case"scroll_backward":case"scroll_forward":case"scroll_to_position":!function(t,e,n){let{item:r,step:o,overflow:i}=n;var a,s,l,c,u;if(!e)throw new Error('Missing id for "'.concat(t,'" action'));const d=Number(r);if("set_current_item"===t&&Number.isNaN(d))throw new Error('Incorrect item for "'.concat(t,'" action'));let p=Number(o);if(o||"set_previous_item"!==t&&"set_next_item"!==t||(p=1),!o&&("scroll_backward"===t||"scroll_forward"===t||"scroll_to_position"===t)||Number.isNaN(p))throw new Error('Incorrect step value for "'.concat(t,'" action'));if(i&&"clamp"!==i&&"ring"!==i)throw new Error('Incorrect overflow value for "'.concat(t,'" action'));i=i||"clamp";const f=ht(e);if(f)switch(t){case"set_current_item":return void f.setCurrentItem(d);case"set_previous_item":return void f.setPreviousItem(p,i);case"set_next_item":return void f.setNextItem(p,i);case"scroll_to_start":return void(null===(a=f.scrollToStart)||void 0===a||a.call(f));case"scroll_to_end":return void(null===(s=f.scrollToEnd)||void 0===s||s.call(f));case"scroll_backward":return void(null===(l=f.scrollBackward)||void 0===l||l.call(f,p,i));case"scroll_forward":return void(null===(c=f.scrollForward)||void 0===c||c.call(f,p,i));case"scroll_to_position":null===(u=f.scrollToPosition)||void 0===u||u.call(f,p)}}(s[1],l.get("id"),{item:l.get("item"),step:l.get("step"),overflow:l.get("overflow")});break;case"set_variable":const c=l.get("name"),u=l.get("value");if(c&&null!==u){const t=U.get(c);if(t){const e=t.getType();"dict"===e||"array"===e?a(oe(new Error("Setting ".concat(e," variables is not supported")),{additional:{name:c}})):t.set(u)}else a(oe(new Error("Cannot find variable"),{additional:{name:c}}))}else a(oe(new Error("Incorrect set_variable_action"),{additional:{url:i}}));break;case"timer":const d=l.get("action"),p=l.get("id");q?q.execTimerAction(p,d):a(oe(new Error("Incorrect timer action"),{additional:{id:p,action:d}}));break;case"video":!function(t,e,n){const r=(null==n?void 0:n.logError)||Y;if(t){const n=ht(t);n?"start"===e?n.start():"pause"===e?n.pause():r(oe(new Error("Unknown video action"),{additional:{id:t,action:e}})):r(oe(new Error("Video component is not found"),{additional:{id:t,action:e}}))}else r(oe(new Error("Missing id in video action"),{additional:{action:e}}))}(l.get("id"),l.get("action"),e);break;case"download":!function(t,e,n){const o=(null==n?void 0:n.logError)||Y;if(t){let n;n="function"==typeof E?E(t):E,fetch(t,n).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})).then((n=>{var i,a,s;if(n){if(n.templates)for(const t in n.templates)r.hasOwnProperty(t)||(r[t]=n.templates[t]);if(Array.isArray(null===(i=n.patch)||void 0===i?void 0:i.changes)){if("transactional"===n.patch.mode){const r=n.patch.changes.find((t=>{const e=ct.get(t.id);if(!e)return!0;const n=Array.isArray(t.items)?t.items.length:0;return!(!e.isSingleMode||1===n)}));if(r)return o(oe(new Error("Skipping transactional, child is not found or broken"),{additional:{url:t,id:r.id}})),void it(null===(a=e.download_callbacks)||void 0===a?void 0:a.on_fail_actions)}n.patch.changes.forEach((t=>{const e=ct.get(t.id);e&&e.replaceWith(t.id,t.items)})),it(null===(s=e.download_callbacks)||void 0===s?void 0:s.on_success_actions)}}else o(oe(new Error("Incorrect patch"),{additional:{url:t}}))})).catch((n=>{var r;o(oe(new Error("Failed to download the patch"),{additional:{url:t,originalError:n}})),it(null===(r=e.download_callbacks)||void 0===r?void 0:r.on_fail_actions)}))}else o(oe(new Error("Missing url in download action"),{additional:{url:t}}))}(l.get("url"),t,e);break;case"show_tooltip":!function(t,e,r){var o;const i=(null==r?void 0:r.logError)||Y;if(!t)return void i(oe(new Error("Missing id in show_tooltip action")));const a=ft.get(t);if(!a)return void i(oe(new Error("Tooltip with the provided id is not found"),{additional:{id:t}}));if("true"!==e&&G.some((e=>e.desc.id===t)))return;const s={internalId:++J,ownerNode:a.onwerNode,desc:a.tooltip,timeoutId:0};n(3,G=[...G,s]);const l=null!==(o=a.tooltip.duration)&&void 0!==o?o:5e3;l&&(s.timeoutId=window.setTimeout((()=>{s.timeoutId=0,n(3,G=G.filter((t=>t.internalId!==s.internalId)))}),l))}(l.get("id"),l.get("multiple"),e);break;case"hide_tooltip":!function(t,e){const r=(null==e?void 0:e.logError)||Y;t?n(3,G=G.filter((e=>{const n=e.desc.id!==t;return!n&&e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null),n}))):r(oe(new Error("Missing id in hide_tooltip action")))}(l.get("id"),e);break;case"set_stored_value":!function(t,e,n,r,o){const i=(null==t?void 0:t.logError)||Y;if(!F)return void i(oe(new Error("Store is not configured")));let a=n;e&&a&&r&&o?Cu.has(r)?("integer"===r||"number"===r?a=Number(a):"boolean"===r&&(a="true"===a),F.setValue(e,r,a,Number(o))):i(oe(new Error("Incorrect stored type"))):i(oe(new Error("Missing required params for set_stored_value")))}(e,l.get("name"),l.get("value"),l.get("type"),l.get("lifetime"));break;default:a(oe(new Error("Unknown type of action"),{additional:{url:o}}))}}catch(t){a(oe(t,{additional:{url:o}}))}else if(i)switch(i.type){case"set_variable":{const{variable_name:t,value:e}=i;if(t&&e){const n=U.get(t);n?n.getType()===e.type?n.setValue(e.value):a(oe(new Error("Trying to set value with invalid type"),{additional:{name:t,type:e.type}})):a(oe(new Error("Cannot find variable"),{additional:{name:t}}))}else a(oe(new Error("Incorrect set_variable action"),{additional:{name:t}}));break}case"array_insert_value":!function(t,e,n){const{variable_name:r,index:o,value:i}=n;!i||"number"!=typeof o&&void 0!==o?e(oe(new Error("Incorrect array_insert_value action"),{additional:{name:r}})):Gc(t,e,n,(t=>{const a=t.getValue();if("number"==typeof o&&(o<0||o>a.length))e(oe(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:o,length:a.length}}));else{const e=a.slice();"number"==typeof o?e.splice(o,0,i.value):e.push(i.value),t.setValue(e)}}))}(U,a,i);break;case"array_remove_value":!function(t,e,n){const{variable_name:r,index:o}=n;"number"==typeof o?Gc(t,e,n,(t=>{const i=t.getValue();if("number"==typeof o&&(o<0||o>=i.length))e(oe(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:o,length:i.length}}));else{const e=i.slice();e.splice(o,1),t.setValue(e)}})):e(oe(new Error("Incorrect array_remove_value action"),{additional:{name:r}}))}(U,a,i);break;case"copy_to_clipboard":!function(t,e){!e.content||"text"!==e.content.type&&"url"!==e.content.type||"string"!=typeof e.content.value?t(oe(new Error("Incorrect action"),{additional:{action:e}})):"undefined"!=typeof navigator&&"clipboard"in navigator&&navigator.clipboard&&"writeText"in navigator.clipboard&&"function"==typeof navigator.clipboard.writeText?navigator.clipboard.writeText(e.content.value).catch((e=>{t(oe(new Error("Failed to copy to the clipboard"),{additional:{originalError:String(e)}}))})):t(oe(new Error("Clipboard is unavailable"),{additional:{action:e}}))}(a,i);break;case"focus_element":{const t=i.element_id&&pt.get(i.element_id);t?t.focus():a(oe(new Error("Incorrect focus_element action"),{additional:{elementId:i.element_id}}));break}case"clear_focus":try{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}catch(t){}break;default:a(oe(new Error("Unknown type of action"),{additional:{type:i.type}}))}}async function it(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||!Array.isArray(t))return;const r=t.filter(Re);for(let t=0;t<r.length;++t){let o=r[t];const i=o.url,a=o.typed;if(i){const t=be(i);if(t)if(_e(t,I)){if(e.processUrls)if("_blank"===o.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=i)}else location.href=i}else"div-action"===t?(await ot(o,e.componentContext),await _t()):o.log_id&&(at(o),await _t())}else a?await ot(o,e.componentContext):e.node&&Array.isArray(o.menu_items)&&o.menu_items.length&&n(4,H={items:o.menu_items,node:e.node})}r.forEach((t=>{t.log_id&&Z("click",t)}))}function at(t){null==x||x(t)}const st=new Map,ct=new Map,pt=new Map,ft=new Map;function ht(t){if(st.has(t))return st.get(t);Y(oe(new Error("Missing instance with id"),{additional:{id:t}}))}const gt=new Map;function mt(t){const e=W.get(t)||te(void 0);return W.has(t)||W.set(t,e),e}dt(re,{logStat:Z,hasTemplate:function(t){return t in r},processTemplate:Q,genId:et,genClass:function(t){return"divkit-".concat(et())},execAction:ot,execCustomAction:at,isRunning:function(t){return z[t]},setRunning:function(t,e){z[t]=e},registerInstance:function(t,e){st.has(t)?Y(oe(new Error("Duplicate instance id"),{additional:{id:t}})):st.set(t,e)},unregisterInstance:function(t){st.delete(t)},registerParentOf:function(t,e){ct.set(t,e)},unregisterParentOf:function(t){ct.delete(t)},registerTooltip:function(t,e){const n=e.id;n&&(ft.has(n)&&Y(oe(new Error("Duplicate tooltip id"),{additional:{id:n}})),ft.set(n,{onwerNode:t,tooltip:e}))},unregisterTooltip:function(t){const e=t.id;e&&(ft.delete(e),G.some((t=>t.desc.id===e))&&n(3,G=G.filter((t=>t.desc.id!==e))))},onTooltipClose:function(t){n(3,G=G.filter((e=>e.internalId!==t)))},tooltipRoot:A,registerFocusable:function(t,e){pt.set(t,e)},unregisterFocusable:function(t){pt.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(rt[r]=rt[r]||0,++rt[r],nt[r])return nt[r];const o="".concat(et(),"-svg-filter");return n(5,nt=Object.assign(Object.assign({},nt),{[r]:o})),o},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);rt[r]&&0==--rt[r]&&n(5,nt=Object.keys(nt).reduce(((t,e)=>(rt[e]&&(t[e]=nt[e]),t)),{}))},preparePrototypeVariables:function(t,e){const n=new Map,r=function(t,e,n){if(!(e in Gi))throw new Error("Unsupported variable type");return new Gi[e](t,n)}(t,"dict",e);return n.set(t,r),n},getStore:function(t){return gt.has(t)||function(t){gt.has(t)||gt.set(t,Tc[t]())}(t),gt.get(t)},getCustomization:function(t){return null==y?void 0:y[t]},getBuiltinProtocols:function(){return I},getExtension:function(t,e){const n=b.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:U,logError:Y}},registerTimeout:function(t){K.push(t)},typefaceProvider:C,isDesktop:D,isPointerFocus:_u,customComponents:j,direction:N,componentDevtool:void 0}),dt(We,{hasAction:()=>!1});const vt={setState(t){throw new Error("Not implemented")},getChild(t){if(yt&&yt.has(t))return yt.get(t);Y(oe(new Error("Missing state block with id"),{additional:{id:t}}))}};let yt=null;function $t(t){if(t.type in Ui){"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&Y(oe(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=Wi(t.name,t.type,t.value);L.set(t.name,e),U.set(t.name,e)}catch(e){Y(oe(e,{additional:{name:t.name}}))}}}dt(Ae,{registerInstance(t,e){yt||(yt=new Map),yt.has(t)?Y(oe(new Error("Duplicate state with id"),{additional:{id:t}})):yt.set(t,e)},unregisterInstance(t){null==yt||yt.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 bt=null===(s=null==p?void 0:p.card)||void 0===s?void 0:s.variables;Array.isArray(bt)&&bt.forEach((t=>{if(t&&t.name){if(L.has(t.name))return void Y(oe(new Error("Duplicate variable"),{additional:{name:t.name}}));$t(t)}}));const wt=p.palette;wt&&wt[S].forEach((t=>{if(L.has(t.name))Y(oe(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=Wi(t.name,"color",t.color);L.set(t.name,e),U.set(t.name,e)}catch(e){Y(oe(e,{additional:{name:t.name}}))}}));for(const[t,e]of B)U.has(t)||U.set(t,e);R.subscribe((t=>{if(t&&!U.has(t)){const e=B.get(t);U.set(t,e);const n=W.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const xt=null===(c=null==p?void 0:p.card)||void 0===c?void 0:c.timers;if(xt&&"undefined"!=typeof document){const t=q=new Jc({logError:Y,applyVars:t=>X(Y,t),hasVariableWithType:function(t,e){const n=U.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=U.get(t);n?n.setValue(e):Y(oe(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:it});xt.forEach((e=>t.createTimer(e)))}const kt=function t(e){const n={json:{},path:[],templateContext:{},logError(t){t.additional=t.additional||{},t.additional.path=n.path.join("/"),Y(t)},execAnyActions(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return it(t,{componentContext:n,processUrls:e.processUrls,node:e.node})},getDerivedFromVars(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return js(e);const o=Eu(U,n),i=Mc(e,t,F);return i.vars.length?ee(i.vars.map((t=>o.get(t)||mt(t))).filter(he),(()=>i.applyVars(o,r))):i.hasExpression?js(i.applyVars(o)):js(e)}(n.logError,t,Eu(n.variables,e),r)},getJsonWithVars(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return X(n.logError,t,Eu(n.variables,e),r)},produceChildContext(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=t(n);let i=e,a=n.templateContext;const{templateContext:s,json:l}=Q(i,a);return o.json=l,o.templateContext=s,o.origJson=e,void 0!==r.path&&o.path.push(String(r.path)),e.type&&!r.isRootState&&o.path.push(e.type),o.variables=Eu(n.variables,r.variables),r.fake&&(o.fakeElement=!0),r.isRootState&&(o.isRootState=!0),o},getVariable(t,e){const r=(n.variables||U).get(t);if(r){const o=r.getType();if(o!==e)return void n.logError(oe(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:o}}))}return r}};return e?(n.parent=e,n.path=e.path.slice(),e.fakeElement&&(n.fakeElement=!0)):(n.json={type:"root"},n.isRootState=!0),n}();let Ct;return lt((()=>{wu++,1===wu&&(window.addEventListener("keydown",xu),window.addEventListener("pointerdown",ku)),(()=>{var t;const e=null===(t=null==p?void 0:p.card)||void 0===t?void 0:t.variable_triggers;Array.isArray(e)&&e.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void Y(oe(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=Is(t.condition,{startRule:"JsonStringContents"}),o=nl(r);if(!o.length)return void Y(oe(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));ee(o.map((t=>U.get(t)||mt(t))),(()=>{const t=Pc(U,F,r);return t.warnings.forEach(Y),t.result})).subscribe((async r=>{if("error"!==r.type){if(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)){const e=[];for(const n of t.actions){const t=X(Y,n);t.log_id&&(await ot(t),e.push(t))}for(const t of e)Z("trigger",t)}e=Boolean(r.value)}else Y(oe(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}catch(e){Y(oe(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else Y(oe(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}))})()})),ut((()=>{wu--,wu||(window.removeEventListener("keydown",xu),window.removeEventListener("pointerdown",ku)),q&&q.destroy(),G.forEach((t=>{t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=null)})),K.forEach((t=>{clearTimeout(t)}))})),t.$$set=t=>{"id"in t&&n(13,d=t.id),"json"in t&&n(11,p=t.json),"platform"in t&&n(14,h=t.platform),"theme"in t&&n(12,g=t.theme),"globalVariablesController"in t&&n(15,m=t.globalVariablesController),"mix"in t&&n(0,v=t.mix),"customization"in t&&n(16,y=t.customization),"builtinProtocols"in t&&n(17,$=t.builtinProtocols),"extensions"in t&&n(18,b=t.extensions),"onError"in t&&n(19,_=t.onError),"onStat"in t&&n(20,w=t.onStat),"onCustomAction"in t&&n(21,x=t.onCustomAction),"onComponent"in t&&n(22,k=t.onComponent),"typefaceProvider"in t&&n(23,C=t.typefaceProvider),"fetchInit"in t&&n(24,E=t.fetchInit),"tooltipRoot"in t&&n(25,A=t.tooltipRoot),"customComponents"in t&&n(26,j=t.customComponents),"direction"in t&&n(27,V=t.direction),"store"in t&&n(28,F=t.store)},t.$$.update=()=>{if(4096&t.$$.dirty[0]|64&t.$$.dirty[1]&&("light"===g||"dark"===g?n(36,S=g):"system"===g?"undefined"!=typeof matchMedia?(P||(n(37,P=matchMedia("(prefers-color-scheme: dark)")),P.addListener(O)),n(36,S=P.matches?"dark":"light")):n(36,S="light"):Y(oe(new Error("Unsupported theme")))),32&t.$$.dirty[1]&&S&&(wt&&wt[S].forEach((t=>{const e=U.get(t.name);e&&e.setValue(t.color)}))),2048&t.$$.dirty[0]){n(1,M=!1);const t=function(t){if(!t)return oe(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return oe(new Error("Missing card"));if(!e.states||!e.states.length)return oe(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in ds)return oe(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return oe(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return oe(new Error("Missing state_id"),{additional:{index:t}})}return null}(p);t&&(n(1,M=!0),Y(t))}if(2048&t.$$.dirty[0]&&(r=p.templates||{}),2048&t.$$.dirty[0]|8&t.$$.dirty[1]&&(null===n(34,l=null==p?void 0:p.card)||void 0===l?void 0:l.variables)&&Array.isArray(p.card.variables)&&p.card.variables!==bt&&p.card.variables.forEach((t=>{t&&t.name&&!L.has(t.name)&&$t(t)})),2048&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(38,o=null===n(35,u=null==p?void 0:p.card)||void 0===u?void 0:u.states),6&t.$$.dirty[0]|128&t.$$.dirty[1]&&o&&!M&&!T){const t={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:o.map((t=>({state_id:t.state_id.toString(),div:t.div})))};n(6,Ct=kt.produceChildContext(t,{isRootState:!0}))}},[v,M,T,G,H,nt,Ct,i,a,D,N,p,g,d,h,m,y,$,b,_,w,x,k,C,E,A,j,V,F,function(t){n(12,g=t)},function(){return new Map},function(){return new Map},function(t){n(11,p=t)},function(t){ot(X(Y,t))},l,u,S,P,o,()=>n(4,H=void 0)]}const Vu=class extends Zt{constructor(t){super(),Xt(this,t,ju,bu,d,{id:13,json:11,platform:14,theme:12,globalVariablesController:15,mix:0,customization:16,builtinProtocols:17,extensions:18,onError:19,onStat:20,onCustomAction:21,onComponent:22,typefaceProvider:23,fetchInit:24,tooltipRoot:25,customComponents:26,direction:27,store:28,setTheme:29,getDebugVariables:30,getDebugAllVariables:31,setData:32,execAction:33},null,[-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[29]}get getDebugVariables(){return this.$$.ctx[30]}get getDebugAllVariables(){return this.$$.ctx[31]}get setData(){return this.$$.ctx[32]}get execAction(){return this.$$.ctx[33]}};class Fu{constructor(t){var e,n,r;e=this,r={},n=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(n="sizeHistory"),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,this.widthVariableName=t.width_variable_name,this.heightVariableName=t.height_variable_name}setVariable(t,e){if(!this.context)return!1;if(t){const n=this.context.variables.get(t);if(n&&"integer"===n.getType()){if(e=Math.round(e),this.sizeHistory[t]||(this.sizeHistory[t]=new Set),!this.sizeHistory[t].has(e))return n.setValue(e),this.sizeHistory[t].add(e),!0}else{const e=new Error("Missing variable");e.level="error",e.additional={variableName:t},this.context.logError(e)}}return!1}recalcProps(){if(!this.node||!this.context)return!1;const t=this.node.getBoundingClientRect(),e=this.setVariable(this.widthVariableName,t.width),n=this.setVariable(this.heightVariableName,t.height);return e||n}mountView(t,e){var n;this.node=t,this.context=e,this.resizeObserver||"undefined"==typeof ResizeObserver||(this.resizeObserver=new ResizeObserver((async()=>{let t=0;for(;this.recalcProps();){if(++t>8){const t=new Error("Recursive layout in size_provider");t.level="warn",t.additional={widthVariableName:this.widthVariableName,heightVariableName:this.heightVariableName},e.logError(t);break}await _t()}this.sizeHistory={}}))),null===(n=this.resizeObserver)||void 0===n||n.observe(t),this.recalcProps()}unmountView(t,e){var n;null===(n=this.resizeObserver)||void 0===n||n.disconnect(),this.resizeObserver=void 0}}function Du(t){return t instanceof HTMLElement}function Su(t){return class{constructor(t){this.params=t}loadData(){if(this.params.lottie_json)return Promise.resolve(this.params.lottie_json);const t=this.params.lottie_url;return t?fetch(t).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})):Promise.reject("Missing data")}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const r=Array.from(e.children).filter(Du);r.forEach((t=>{t.style.display="none"})),e.setAttribute("data-lottie","true");const o=this.wrapper=document.createElement("div");this.wrapper.style.width="100%",this.wrapper.style.height="100%",e.appendChild(this.wrapper);const i=Number(this.params.repeat_count||-1),a=()=>{var t,o;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""})),e.removeAttribute("data-lottie"),this.wrapper&&(null===(o=this.wrapper.parentNode)||void 0===o||o.removeChild(this.wrapper),this.wrapper=void 0);const i=new Error("Failed to load lottie animation");i.level="error",i.additional={url:this.params.lottie_url},n.logError(i)};this.loadData().then((e=>{const n=this.animItem=t({container:o,animationData:e,renderer:"svg",loop:!0});if(this.animItem.addEventListener("data_failed",a),"reverse"===this.params.repeat_mode||-1!==i){let t=1,e=0;n.addEventListener("loopComplete",(()=>{++e,-1!==i&&e===i?(n.stop(),n.goToAndStop(n.totalFrames,!0)):("reverse"===this.params.repeat_mode&&(t*=-1,n.setDirection(t)),n.goToAndPlay(1===t?0:n.totalFrames,!0))}))}})).catch(a)}unmountView(t,e){var n,r;null===(n=this.animItem)||void 0===n||n.destroy(),this.wrapper&&(null===(r=this.wrapper.parentNode)||void 0===r||r.removeChild(this.wrapper),this.wrapper=void 0),t.removeAttribute("data-lottie")}}}const Pu=["target","hydrate"];function Nu(t){const{target:e,hydrate:n}=t,r=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Pu),o=new Vu({target:e,props:r,hydrate:n});return{$destroy(){o.$destroy()},execAction(t){o.execAction(t)},setTheme(t){o.setTheme(t)},setData(t){o.setData(t)}}}var Ou=exports;for(var Iu in e)Ou[Iu]=e[Iu];e.__esModule&&Object.defineProperty(Ou,"__esModule",{value:!0})})();
|
|
2
2
|
//# sourceMappingURL=client.js.map
|