UNPKG

@divkitframework/divkit

Version:
8 lines 458 kB
/*! DivKit v32.61.0 https://github.com/divkit/divkit @licence Apache-2.0 */(function(){"use strict";var wy=Object.defineProperty;var vy=(T,ni,Xn)=>ni in T?wy(T,ni,{enumerable:!0,configurable:!0,writable:!0,value:Xn}):T[ni]=Xn;var Ar=(T,ni,Xn)=>vy(T,typeof ni!="symbol"?ni+"":ni,Xn);function T(){}const ni=e=>e;function Xn(e,r){for(const t in r)e[t]=r[t];return e}function oa(e){return e()}function sa(){return Object.create(null)}function $r(e){e.forEach(oa)}function Br(e){return typeof e=="function"}function Wd(e,r){return e!=e?r==r:e!==r||e&&typeof e=="object"||typeof e=="function"}let Uo;function hi(e,r){return e===r?!0:(Uo||(Uo=document.createElement("a")),Uo.href=r,e===Uo.href)}function Or(e,r){return e!=e?r==r:e!==r}function Ud(e){return Object.keys(e).length===0}function H(e,...r){if(e==null){for(const n of r)n(void 0);return T}const t=e.subscribe(...r);return t.unsubscribe?()=>t.unsubscribe():t}function Zs(e){let r;return H(e,t=>r=t)(),r}function bn(e,r,t){e.$$.on_destroy.push(H(r,t))}function Go(e,r,t,n){if(e){const i=la(e,r,t,n);return e[0](i)}}function la(e,r,t,n){return e[1]&&n?Xn(t.ctx.slice(),e[1](n(r))):t.ctx}function Yo(e,r,t,n){if(e[2]&&n){const i=e[2](n(t));if(r.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(r.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=r.dirty[a]|i[a];return o}return r.dirty|i}return r.dirty}function qo(e,r,t,n,i,o){if(i){const s=la(r,t,n,o);e.p(s,i)}}function Ko(e){if(e.ctx.length>32){const r=[],t=e.ctx.length/32;for(let n=0;n<t;n++)r[n]=-1;return r}return-1}function Qs(e,r,t){return e.set(t),r}function Jo(e){return e&&Br(e.destroy)?e.destroy:T}function aa(e){const r=typeof e=="string"&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return r?[parseFloat(r[1]),r[2]||"px"]:[e,"px"]}const ca=typeof window<"u";let xs=ca?()=>window.performance.now():()=>Date.now(),$s=ca?e=>requestAnimationFrame(e):T;const co=new Set;function ua(e){co.forEach(r=>{r.c(e)||(co.delete(r),r.f())}),co.size!==0&&$s(ua)}function el(e){let r;return co.size===0&&$s(ua),{promise:new Promise(t=>{co.add(r={c:e,f:t})}),abort(){co.delete(r)}}}const yi=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function Mt(e,r){e.appendChild(r)}function fa(e){if(!e)return document;const r=e.getRootNode?e.getRootNode():e.ownerDocument;return r&&r.host?r:e.ownerDocument}function Gd(e){const r=Pe("style");return r.textContent="/* empty */",Yd(fa(e),r),r.sheet}function Yd(e,r){return Mt(e.head||e,r),r.sheet}function ee(e,r,t){e.insertBefore(r,t||null)}function $(e){e.parentNode&&e.parentNode.removeChild(e)}function kn(e,r){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(r)}function Pe(e){return document.createElement(e)}function jn(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ii(e){return document.createTextNode(e)}function wr(){return ii(" ")}function hr(){return ii("")}function Ne(e,r,t,n){return e.addEventListener(r,t,n),()=>e.removeEventListener(r,t,n)}function y(e,r,t){t==null?e.removeAttribute(r):e.getAttribute(r)!==t&&e.setAttribute(r,t)}const qd=["width","height"];function gi(e,r){const t=Object.getOwnPropertyDescriptors(e.__proto__);for(const n in r)r[n]==null?e.removeAttribute(n):n==="style"?e.style.cssText=r[n]:n==="__value"?e.value=e[n]=r[n]:t[n]&&t[n].set&&qd.indexOf(n)===-1?e[n]=r[n]:y(e,n,r[n])}function Kd(e,r){Object.keys(r).forEach(t=>{Jd(e,t,r[t])})}function Jd(e,r,t){const n=r.toLowerCase();n in e?e[n]=typeof e[n]=="boolean"&&t===""?!0:t:r in e?e[r]=typeof e[r]=="boolean"&&t===""?!0:t:y(e,r,t)}function da(e){return/-/.test(e)?Kd:gi}function Xd(e){return Array.from(e.childNodes)}function Di(e,r){r=""+r,e.data!==r&&(e.data=r)}function _a(e,r){e.value=r==null?"":r}function Y(e,r,t,n){t==null?e.style.removeProperty(r):e.style.setProperty(r,t,"")}function ha(e,r,t){for(let n=0;n<e.options.length;n+=1){const i=e.options[n];if(i.__value===r){i.selected=!0;return}}(!t||r!==void 0)&&(e.selectedIndex=-1)}function Zd(e){const r=e.querySelector(":checked");return r&&r.__value}function ga(e,r,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(e,{detail:r,bubbles:t,cancelable:n})}function pa(e,r){return new e(r)}const Xo=new Map;let Zo=0;function Qd(e){let r=5381,t=e.length;for(;t--;)r=(r<<5)-r^e.charCodeAt(t);return r>>>0}function xd(e,r){const t={stylesheet:Gd(r),rules:{}};return Xo.set(e,t),t}function Qo(e,r,t,n,i,o,s,a=0){const l=16.666/n;let c=`{ `;for(let v=0;v<=1;v+=l){const E=r+(t-r)*o(v);c+=v*100+`%{${s(E,1-E)}} `}const u=c+`100% {${s(t,1-t)}} }`,d=`__svelte_${Qd(u)}_${a}`,h=fa(e),{stylesheet:g,rules:m}=Xo.get(h)||xd(h,e);m[d]||(m[d]=!0,g.insertRule(`@keyframes ${d} ${u}`,g.cssRules.length));const _=e.style.animation||"";return e.style.animation=`${_?`${_}, `:""}${d} ${n}ms linear ${i}ms 1 both`,Zo+=1,d}function xo(e,r){const t=(e.style.animation||"").split(", "),n=t.filter(r?o=>o.indexOf(r)<0:o=>o.indexOf("__svelte")===-1),i=t.length-n.length;i&&(e.style.animation=n.join(", "),Zo-=i,Zo||$d())}function $d(){$s(()=>{Zo||(Xo.forEach(e=>{const{ownerNode:r}=e.stylesheet;r&&$(r)}),Xo.clear())})}let Do;function To(e){Do=e}function uo(){if(!Do)throw new Error("Function called outside component initialization");return Do}function ei(e){uo().$$.on_mount.push(e)}function $o(e){uo().$$.after_update.push(e)}function En(e){uo().$$.on_destroy.push(e)}function e_(){const e=uo();return(r,t,{cancelable:n=!1}={})=>{const i=e.$$.callbacks[r];if(i){const o=ga(r,t,{cancelable:n});return i.slice().forEach(s=>{s.call(e,o)}),!o.defaultPrevented}return!0}}function Ti(e,r){return uo().$$.context.set(e,r),r}function Xr(e){return uo().$$.context.get(e)}function Nn(e,r){const t=e.$$.callbacks[r.type];t&&t.slice().forEach(n=>n.call(this,r))}const fo=[],Tr=[];let _o=[];const ma=[],ba=Promise.resolve();let tl=!1;function ya(){tl||(tl=!0,ba.then(wa))}function Vn(){return ya(),ba}function Zn(e){_o.push(e)}const rl=new Set;let ho=0;function wa(){if(ho!==0)return;const e=Do;do{try{for(;ho<fo.length;){const r=fo[ho];ho++,To(r),t_(r.$$)}}catch(r){throw fo.length=0,ho=0,r}for(To(null),fo.length=0,ho=0;Tr.length;)Tr.pop()();for(let r=0;r<_o.length;r+=1){const t=_o[r];rl.has(t)||(rl.add(t),t())}_o.length=0}while(fo.length);for(;ma.length;)ma.pop()();tl=!1,rl.clear(),To(e)}function t_(e){if(e.fragment!==null){e.update(),$r(e.before_update);const r=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,r),e.after_update.forEach(Zn)}}function r_(e){const r=[],t=[];_o.forEach(n=>e.indexOf(n)===-1?r.push(n):t.push(n)),t.forEach(n=>n()),_o=r}let Fo;function nl(){return Fo||(Fo=Promise.resolve(),Fo.then(()=>{Fo=null})),Fo}function Ji(e,r,t){e.dispatchEvent(ga(`${r?"intro":"outro"}${t}`))}const es=new Set;let wi;function vr(){wi={r:0,c:[],p:wi}}function kr(){wi.r||$r(wi.c),wi=wi.p}function Z(e,r){e&&e.i&&(es.delete(e),e.i(r))}function ie(e,r,t,n){if(e&&e.o){if(es.has(e))return;es.add(e),wi.c.push(()=>{es.delete(e),n&&(t&&e.d(1),n())}),e.o(r)}else n&&n()}const il={duration:0};function ts(e,r,t){const n={direction:"in"};let i=r(e,t,n),o=!1,s,a,l=0;function c(){s&&xo(e,s)}function u(){const{delay:h=0,duration:g=300,easing:m=ni,tick:_=T,css:v}=i||il;v&&(s=Qo(e,0,1,g,h,m,v,l++)),_(0,1);const E=xs()+h,q=E+g;a&&a.abort(),o=!0,Zn(()=>Ji(e,!0,"start")),a=el(Q=>{if(o){if(Q>=q)return _(1,0),Ji(e,!0,"end"),c(),o=!1;if(Q>=E){const K=m((Q-E)/g);_(K,1-K)}}return o})}let d=!1;return{start(){d||(d=!0,xo(e),Br(i)?(i=i(n),nl().then(u)):u())},invalidate(){d=!1},end(){o&&(c(),o=!1)}}}function va(e,r,t){const n={direction:"out"};let i=r(e,t,n),o=!0,s;const a=wi;a.r+=1;let l;function c(){const{delay:u=0,duration:d=300,easing:h=ni,tick:g=T,css:m}=i||il;m&&(s=Qo(e,1,0,d,u,h,m));const _=xs()+u,v=_+d;Zn(()=>Ji(e,!1,"start")),"inert"in e&&(l=e.inert,e.inert=!0),el(E=>{if(o){if(E>=v)return g(0,1),Ji(e,!1,"end"),--a.r||$r(a.c),!1;if(E>=_){const q=h((E-_)/d);g(1-q,q)}}return o})}return Br(i)?nl().then(()=>{i=i(n),c()}):c(),{end(u){u&&"inert"in e&&(e.inert=l),u&&i.tick&&i.tick(1,0),o&&(s&&xo(e,s),o=!1)}}}function ka(e,r,t,n){let o=r(e,t,{direction:"both"}),s=n?0:1,a=null,l=null,c=null,u;function d(){c&&xo(e,c)}function h(m,_){const v=m.b-s;return _*=Math.abs(v),{a:s,b:m.b,d:v,duration:_,start:m.start,end:m.start+_,group:m.group}}function g(m){const{delay:_=0,duration:v=300,easing:E=ni,tick:q=T,css:Q}=o||il,K={start:xs()+_,b:m};m||(K.group=wi,wi.r+=1),"inert"in e&&(m?u!==void 0&&(e.inert=u):(u=e.inert,e.inert=!0)),a||l?l=K:(Q&&(d(),c=Qo(e,s,m,v,_,E,Q)),m&&q(0,1),a=h(K,v),Zn(()=>Ji(e,m,"start")),el(de=>{if(l&&de>l.start&&(a=h(l,v),l=null,Ji(e,a.b,"start"),Q&&(d(),c=Qo(e,s,a.b,a.duration,0,E,o.css))),a){if(de>=a.end)q(s=a.b,1-s),Ji(e,a.b,"end"),l||(a.b?d():--a.group.r||$r(a.group.c)),a=null;else if(de>=a.start){const se=de-a.start;s=a.a+a.d*E(se/a.duration),q(s,1-s)}}return!!(a||l)}))}return{run(m){Br(o)?nl().then(()=>{o=o({direction:m?"in":"out"}),g(m)}):g(m)},end(){d(),a=l=null}}}function gr(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Ea(e,r){ie(e,1,1,()=>{r.delete(e.key)})}function Aa(e,r,t,n,i,o,s,a,l,c,u,d){let h=e.length,g=o.length,m=h;const _={};for(;m--;)_[e[m].key]=m;const v=[],E=new Map,q=new Map,Q=[];for(m=g;m--;){const W=d(i,o,m),X=t(W);let le=s.get(X);le?Q.push(()=>le.p(W,r)):(le=c(X,W),le.c()),E.set(X,v[m]=le),X in _&&q.set(X,Math.abs(m-_[X]))}const K=new Set,de=new Set;function se(W){Z(W,1),W.m(a,u),s.set(W.key,W),u=W.first,g--}for(;h&&g;){const W=v[g-1],X=e[h-1],le=W.key,R=X.key;W===X?(u=W.first,h--,g--):E.has(R)?!s.has(le)||K.has(le)?se(W):de.has(R)?h--:q.get(le)>q.get(R)?(de.add(le),se(W)):(K.add(R),h--):(l(X,s),h--)}for(;h--;){const W=e[h];E.has(W.key)||l(W,s)}for(;g;)se(v[g-1]);return $r(Q),v}function zi(e,r){const t={},n={},i={$$scope:1};let o=e.length;for(;o--;){const s=e[o],a=r[o];if(a){for(const l in s)l in a||(n[l]=1);for(const l in a)i[l]||(t[l]=a[l],i[l]=1);e[o]=a}else for(const l in s)i[l]=1}for(const s in n)s in t||(t[s]=void 0);return t}function Ca(e){return typeof e=="object"&&e!==null?e:{}}function nr(e){e&&e.c()}function er(e,r,t){const{fragment:n,after_update:i}=e.$$;n&&n.m(r,t),Zn(()=>{const o=e.$$.on_mount.map(oa).filter(Br);e.$$.on_destroy?e.$$.on_destroy.push(...o):$r(o),e.$$.on_mount=[]}),i.forEach(Zn)}function tr(e,r){const t=e.$$;t.fragment!==null&&(r_(t.after_update),$r(t.on_destroy),t.fragment&&t.fragment.d(r),t.on_destroy=t.fragment=null,t.ctx=[])}function n_(e,r){e.$$.dirty[0]===-1&&(fo.push(e),ya(),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31}function en(e,r,t,n,i,o,s=null,a=[-1]){const l=Do;To(e);const c=e.$$={fragment:null,ctx:[],props:o,update:T,not_equal:i,bound:sa(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(l?l.$$.context:[])),callbacks:sa(),dirty:a,skip_bound:!1,root:r.target||l.$$.root};s&&s(c.root);let u=!1;if(c.ctx=t?t(e,r.props||{},(d,h,...g)=>{const m=g.length?g[0]:h;return c.ctx&&i(c.ctx[d],c.ctx[d]=m)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](m),u&&n_(e,d)),h}):[],c.update(),u=!0,$r(c.before_update),c.fragment=n?n(c.ctx):!1,r.target){if(r.hydrate){const d=Xd(r.target);c.fragment&&c.fragment.l(d),d.forEach($)}else c.fragment&&c.fragment.c();r.intro&&Z(e.$$.fragment),er(e,r.target,r.anchor),wa()}To(l)}class tn{constructor(){Ar(this,"$$");Ar(this,"$$set")}$destroy(){tr(this,1),this.$destroy=T}$on(r,t){if(!Br(t))return T;const n=this.$$.callbacks[r]||(this.$$.callbacks[r]=[]);return n.push(t),()=>{const i=n.indexOf(t);i!==-1&&n.splice(i,1)}}$set(r){this.$$set&&!Ud(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}}const i_="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(i_);const go=[];function o_(e,r){return{subscribe:pi(e,r).subscribe}}function pi(e,r=T){let t;const n=new Set;function i(a){if(Wd(e,a)&&(e=a,t)){const l=!go.length;for(const c of n)c[1](),go.push(c,e);if(l){for(let c=0;c<go.length;c+=2)go[c][0](go[c+1]);go.length=0}}}function o(a){i(a(e))}function s(a,l=T){const c=[a,l];return n.add(c),n.size===1&&(t=r(i,o)||T),a(e),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:i,update:o,subscribe:s}}function Xi(e,r,t){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=r.length<2;return o_(t,(s,a)=>{let l=!1;const c=[];let u=0,d=T;const h=()=>{if(u)return;d();const m=r(n?c[0]:c,s,a);o?s(m):d=Br(m)?m:T},g=i.map((m,_)=>H(m,v=>{c[_]=v,u&=~(1<<_),l&&h()},()=>{u|=1<<_}));return l=!0,h(),function(){$r(g),d(),l=!1}})}const br={root_platform_desktop:"divkit-6d515",root__clickable:"divkit-27458","root__clickable-no-transition":"divkit-3bb57","root__any-actions":"divkit-ba614",root:"divkit-82db1",root__selectable:"divkit-be734",root__unselectable:"divkit-9a652","root__only-desktop":"divkit-316e7","root_restrict-scroll":"divkit-0a135","root_disabled-context-menu":"divkit-f5cb3"},yn=Symbol("root");function B(e,r={}){const t=e;return t.level=r.level||"error",r.additional&&(t.additional=r.additional),t}const rs={outer:"divkit-bf0ea",outer_width_content:"divkit-bab07",outer_height_content:"divkit-07f20",root__clickable:"divkit-27458","root__clickable-no-transition":"divkit-3bb57","outer_hide-on-transition-in":"divkit-c5f24","outer_halign-self_start":"divkit-002ec","outer_halign-self_center":"divkit-204f8","outer_halign-self_end":"divkit-bd7ba","outer_halign-self_stretch":"divkit-02d12","outer_valign-self_start":"divkit-fd8aa","outer_valign-self_center":"divkit-62df2","outer_valign-self_end":"divkit-819a0","outer_valign-self_stretch":"divkit-8a331","outer_parent-flex_vertical":"divkit-46b27","outer_parent-flex_horizontal":"divkit-be075","outer_valign-self_baseline":"divkit-2b876","outer_width-constrained":"divkit-5bdb7","outer_parent-grid":"divkit-47ef2","outer_height-constrained":"divkit-351c8","outer_parent-overlap":"divkit-747b0","outer_scroll-snap_start":"divkit-91fd4","outer_scroll-snap_center":"divkit-c525d","outer_scroll-snap_end":"divkit-67470",outer__border:"divkit-90c49",outer_visibility_invisible:"divkit-b33bc",outer_visibility_gone:"divkit-f6ff9","outer_has-action-animation":"divkit-4d4f3","outer_has-custom-focus":"divkit-b630e"};function Kt(e){if(!e)return;let r="";for(const t in e)if(e.hasOwnProperty(t)){if(!e[t]&&e[t]!==0)continue;r&&(r+=";"),r+=t+":"+String(e[t])}return r||void 0}function Oe(e){if(typeof e!="number"&&typeof e!="string"||!e)return"0";const r=Number(e);return Number.isNaN(r)?"0":Math.ceil(r*1e3)/1e4+"em"}function xr(e){let r=Oe(e);return r==="0"&&(r+="em"),r}function ja(e,r){for(;e.length<r;)e="0"+e;return e}function Lr(e,r=1,t="transparent"){if(e=(typeof e=="string"&&e||"").toLowerCase(),e.charAt(0)!=="#")return t;const n=oi(e);return n?(n.a*=r,ol(n)):t}function s_(e,r,t="transparent"){if(e=(typeof e=="string"&&e||"").toLowerCase(),e.charAt(0)!=="#")return t;const n=oi(e);return n?(n.a=r,ol(n)):t}function ol(e){return e.a===255?`#${[e.r,e.g,e.b].map(r=>ja(Math.round(r).toString(16),2)).join("")}`:`rgba(${e.r},${e.g},${e.b},${(e.a/255).toFixed(2)})`}function oi(e){const r=e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||e.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i)||e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||e.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);if(r){if(r.length===5){const[c,u,d,h,g]=r,m=d.length===2?d:d+d,_=h.length===2?h:h+h,v=g.length===2?g:g+g,E=u.length===2?u:u+u;return{a:parseInt(E,16),r:parseInt(m,16),g:parseInt(_,16),b:parseInt(v,16)}}const[t,n,i,o]=r,s=n.length===2?n:n+n,a=i.length===2?i:i+i,l=o.length===2?o:o+o;return{a:255,r:parseInt(s,16),g:parseInt(a,16),b:parseInt(l,16)}}return null}function sl(e){let r=String(e);return r.indexOf("&")>-1&&(r=r.replace(/&/g,"&amp;")),r.indexOf("<")>-1&&(r=r.replace(/</g,"&lt;")),r.indexOf(">")>-1&&(r=r.replace(/>/g,"&gt;")),r.indexOf('"')>-1&&(r=r.replace(/"/g,"&quot;")),r}const vi=Boolean;function ns(e,r){if(e.length===1&&e[0].type==="solid")return a_({bg:e[0]});const t=e.map(n=>{if(n.type==="solid")return l_({bg:n});if(n.type==="gradient")return c_({bg:n});if(n.type==="image")return d_({bg:n,direction:r});if(n.type==="radial_gradient")return f_({bg:n})}).filter(vi).reverse().reduce(function(n,i){return n.image.push(i.image),n.size.push(i.size||"auto"),n.position.push(i.pos||"50% 50%"),n},{image:[],size:[],position:[]});return{image:t.image.join(","),size:t.size.join(","),position:t.position.join(",")}}function l_(e){const r=Lr(e.bg.color||"transparent");return{size:void 0,pos:void 0,image:`linear-gradient(to bottom,${r},${r})`}}function a_(e){return{color:Lr(e.bg.color||"transparent"),size:"auto",position:"50% 50%"}}function Sa(e){return e.every(n=>n.color&&typeof n.position=="number"&&n.position>=0&&n.position<=1)?e.sort((n,i)=>Math.abs(n.position-i.position)<1e-6?0:n.position-i.position).map(n=>`${Lr(n.color)} ${(n.position*100).toFixed(2)}%`).join(","):void 0}function c_(e){var n,i,o,s;if(!Array.isArray((n=e.bg)==null?void 0:n.colors)&&!Array.isArray((i=e.bg)==null?void 0:i.color_map))return;const r=(o=e.bg.colors)==null?void 0:o.filter(vi);if(!(r!=null&&r.length)&&!((s=e.bg)!=null&&s.color_map))return;let t;if(e.bg.color_map){const a=Sa(e.bg.color_map);if(!a)return;t="linear-gradient("+(90-Number(e.bg.angle||0)+"deg")+","+a+")"}else{if(!r)return;t="linear-gradient("+(90-Number(e.bg.angle||0)+"deg")+","+r.map(a=>Lr(a)).join(",")+")"}return{size:void 0,pos:void 0,image:t}}const u_={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function Va(e){if(e&&typeof e=="object"&&"type"in e&&e.value!==void 0){if(e.type==="fixed")return xr(e.value);if(e.type==="relative")return`${Number(e.value)*100}%`}return"50%"}function f_(e){var a,l,c,u;if(!Array.isArray((a=e.bg)==null?void 0:a.colors)&&!Array.isArray((l=e.bg)==null?void 0:l.color_map))return;const r=(c=e.bg.colors)==null?void 0:c.filter(vi);if(!(r!=null&&r.length)&&!((u=e.bg)!=null&&u.color_map))return;let t;if(e.bg.color_map?t=Sa(e.bg.color_map):r&&(t=r.map(d=>Lr(d)).join(",")),!t)return;const n=e.bg.radius;let i;n&&typeof n=="object"&&"type"in n&&n.value!==void 0&&(n.type==="fixed"?i=xr(n.value):n.type==="relative"&&(i=u_[n.value]));const o=Va(e.bg.center_x),s=Va(e.bg.center_y);return{size:void 0,pos:void 0,image:`radial-gradient(circle ${i||"farthest-corner"} at ${o} ${s},`+t+")"}}function d_(e){var t;const r=(t=e.bg)==null?void 0:t.image_url;if(r)return{size:Ia(e.bg.scale),pos:Da(e.bg,e.direction),image:'url("'+sl(r)+'")'}}function Ia(e){return e==="fit"?"contain":e==="stretch"?"fill":e==="no_scale"?"none":"cover"}function __(e){return e==="none"?"auto":e==="fill"?"100% 100%":e}function Da(e,r){let t,n;return e.content_alignment_horizontal==="left"||r==="ltr"&&e.content_alignment_horizontal==="start"||r==="rtl"&&e.content_alignment_horizontal==="end"?t="0%":e.content_alignment_horizontal==="right"||r==="ltr"&&e.content_alignment_horizontal==="end"||r==="rtl"&&e.content_alignment_horizontal==="start"?t="100%":t="50%",e.content_alignment_vertical==="top"?n="0%":e.content_alignment_vertical==="bottom"?n="100%":n="50%",t+" "+n}function nn(e,r){const t=Number(e);return Number.isNaN(t)||t<0?r:t}function Ta(e,r,t){return typeof r=="number"&&(e&&r>0&&r<=100||!e&&r>=0&&r<100)?r:t}function h_(e){return e.is_enabled!==0&&e.is_enabled!==!1&&e.index!==void 0}function g_(e,{visibilityActions:r,disappearActions:t,rootCtx:n,componentContext:i}){const o=[];r&&r.forEach(g=>{o.push({type:"visibility",index:o.length,action:g,visible:!1,count:0,finished:!1})}),t&&t.forEach(g=>{o.push({type:"disappear",index:o.length,action:g,visible:!1,count:0,finished:!1})});const s=o.map((g,m)=>{const _=g.type==="visibility";return i.getDerivedFromVars({index:m,visibility_percentage:g.action.visibility_percentage,visibility_duration:_?g.action.visibility_duration:g.action.disappear_duration,log_limit:g.action.log_limit,is_enabled:g.action.is_enabled},void 0,!0)});let a;const l=()=>{a&&a.disconnect(),o.forEach(g=>{g.timer&&clearTimeout(g.timer)})},c=Xi(s,g=>g);let u;const d=g=>{const m=g.type==="visibility";i.execAnyActions([g.action],{logType:m?"visible":"disappear",node:e,processUrls:!1})},h=c.subscribe(g=>{u=g.filter(h_);const m={};u.forEach(E=>{m[E.index]=E}),l();const _=[...new Set(u.map(E=>{const q=o[E.index].type==="visibility";return Ta(q,E.visibility_percentage,q?50:0)/100}))];if(!_.length)return;const v=E=>{E.forEach(q=>{u.forEach(Q=>{const K=o[Q.index],de=K.type==="visibility",se=Ta(de,Q.visibility_percentage,de?50:0);let W;se===0?W=q.intersectionRatio>=1e-12:W=q.intersectionRatio>=se/100,(de?!K.visible&&W:K.visible&&!W)?K.finished||(K.timer=setTimeout(()=>{++K.count;const R=Q.log_limit===0?1/0:Q.log_limit||1;K.count>=R&&(K.finished=!0),d(K)},nn(Q.visibility_duration,800))):(de?!W:W)&&K.timer&&clearTimeout(K.timer),K.visible=W})})};a=new IntersectionObserver(v,{threshold:_}),a.observe(e)});return{destroy(){u==null||u.forEach(g=>{const m=o[g.index];!m||m.type!=="disappear"||!m.visible||m.finished||n.registerTimeout(window.setTimeout(()=>{d(m)},g.visibility_duration))}),l(),h()}}}function Fa(e,r){r&&e.push(r)}function Ct(e,r,t){const n=[];Fa(n,r[e]);for(const i in t)if(t.hasOwnProperty(i)){const o=t[i];if(o){const s=`${e}_${i}`+(typeof o=="string"?`_${o}`:"");Fa(n,r[s])}}return n.join(" ")}const ll=Symbol("state");function si(e,r){var s,a;const t=e.top||0,n=((s=r==="ltr"?e.end:e.start)!=null?s:e.right)||0,i=e.bottom||0,o=((a=r==="ltr"?e.start:e.end)!=null?a:e.left)||0;return t===0&&n===0&&i===0&&o===0?"":Oe(t)+" "+Oe(n)+" "+Oe(i)+" "+Oe(o)}function po(e){if(typeof e!="number"&&typeof e!="string")return!1;const r=Number(e);return!Number.isNaN(r)}function Bn(e){return po(e)&&e>=0}function is(e,r,t){var i,o;if(!e)return t;const n=[e.top,(i=r==="ltr"?e.end:e.start)!=null?i:e.right,e.bottom,(o=r==="ltr"?e.start:e.end)!=null?o:e.left];for(let s=0;s<n.length;++s)if(n[s]&&!Bn(n[s]))return t;return si(e,r)}function p_(e,r){return!Bn(e)||e===void 0||e>1?r:Number(e)}const m_=Object.prototype.hasOwnProperty;function mo(e,r){if(Object.is(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return Object.is(e,r);const t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){const o=t[i];if(!m_.call(r,o)||!mo(e[o],r[o]))return!1}return!0}function Oi(e,r){return mo(e,r)?r:e}function b_(e,r){return e==="visible"||e==="invisible"||e==="gone"?e:r}function Ma(e,r){return e==="linear"||e==="ease"||e==="ease_in_out"||e==="ease_in"||e==="ease_out"?e:r}function os(e,r){const t=Number(e);return Number.isNaN(t)?r:t}function Mo(e){const r=[];return e.name==="set"?(e.items||[]).forEach(t=>{r.push(...Mo(t))}):r.push(e),r}function Zi(e,r){if(!e||typeof e!="object")return r;const t=["top","right","bottom","left"];for(let n=0;n<t.length;++n)if(e[t[n]]&&!Bn(e[t[n]]))return r;return e}function y_(e,r){if(!e&&!r)return{};if(!r)return e;if(!e)return r;const t={};return["top","right","bottom","left","start","end"].forEach(n=>{const i=e[n];i&&(t[n]=i);const o=r[n];o&&(t[n]=(t[n]||0)+o)}),t}function w_(e,r){const t=[e["top-left"],e["top-right"],e["bottom-right"],e["bottom-left"]];for(let n=0;n<t.length;++n)if(t[n]&&!Bn(t[n]))return r;return e}function ss(e,r=0,t=10){return[e["top-left"],e["top-right"],e["bottom-right"],e["bottom-left"]].map(n=>Oe((n||r)/t*10)).join(" ")}function v_(e){var r,t,n,i,o,s;return Oe(((t=(r=e.offset)==null?void 0:r.x)==null?void 0:t.value)||0)+" "+Oe(((i=(n=e.offset)==null?void 0:n.y)==null?void 0:i.value)||0)+" "+Oe((o=e.blur)!=null?o:2)+" "+Lr(e.color||"#000000",(s=e.alpha)!=null?s:.19)}function k_(e,r){var t,n,i,o,s,a;return"drop-shadow("+Lr(e.color||"#000000",(t=e.alpha)!=null?t:.19)+" "+Oe((((i=(n=e.offset)==null?void 0:n.x)==null?void 0:i.value)||0)*10/r)+" "+Oe((((s=(o=e.offset)==null?void 0:o.y)==null?void 0:s.value)||0)*10/r)+" "+Oe(((a=e.blur)!=null?a:2)*10/r)+")"}let al;function Qi(){return typeof matchMedia>"u"?!1:(al||(al=window.matchMedia("(prefers-reduced-motion)")),al.matches)}const E_=8,A_=(e,r,t,n)=>{let i;return(t||n)&&typeof ResizeObserver<"u"&&(i=new ResizeObserver(async()=>{let o=0;const s={},a=(c,u)=>{if(c){const d=r.getVariable(c,"integer");if(d){if(u=Math.round(u),s[c]||(s[c]=new Set),!s[c].has(u))return d.setValue(u),s[c].add(u),!0}else{const h=new Error("Missing variable");h.level="error",h.additional={variableName:c},r.logError(h)}}return!1},l=()=>{if(!e)return!1;const c=e.getBoundingClientRect(),u=a(t,c.width),d=a(n,c.height);return u||d};for(;l();){if(++o>E_){const c=new Error("Recursive layout in size_provider");c.level="warn",c.additional={widthVariableName:t,heightVariableName:n},r.logError(c);break}await Vn()}}),i.observe(e)),i},cl=Symbol("enabled");function zn(e,r){return e===1||e===0||e===!1||e===!0?!!e:r}function bo(e){return[e.state_description,e.description,e.hint].filter(Boolean).join(", ")}const Pa=1,Li=2;function Na(e,r=1){if(!(!e||typeof e.value!="number")){if(e.type==="translation-fixed")return Oe(e.value*r);if(e.type==="translation-percentage")return`${e.value*r}%`}}function ls(e,r=1){if(!(!e||typeof e.value!="number")){if(e.type==="pivot-fixed")return Oe(e.value*r);if(e.type==="pivot-percentage")return`${e.value*r}%`}}function C_(e){return e.map(r=>{if(r.type==="rotation"){if(typeof r.angle=="number"){const t=ls(r.pivot_x)||"50%",n=ls(r.pivot_y)||"50%",i=ls(r.pivot_x,-1)||"-50%",o=ls(r.pivot_y,-1)||"-50%";return`translate(${t}, ${n}) rotate(${r.angle}deg) translate(${i}, ${o})`}}else if(r.type==="translation"){const t=Na(r.x)||0,n=Na(r.y)||0;return`translate(${t}, ${n})`}}).filter(Boolean).join(" ")}const ul=Symbol("visibility"),za={actionable__button:"divkit-ee5cc"};function j_(){}const xi=Symbol("action");function fl(e){if(e.startsWith("tel:"))return"tel";if(e.startsWith("/"))return"https";const r=/^([^/]+):\/\//.exec(e);return r&&r[1]||""}function dl(e,r){return r.has(e)}function S_(e){var d;let r,t,n,i,o,s;const a=e[30].default,l=Go(a,e,e[29],null);let c=[{class:t=e[2]+" "+((d=e[1])!=null&&d.length?br["root_disabled-context-menu"]:"")+" "+(e[13]?br["root__any-actions"]:"")},{style:e[3]},{role:e[10]},{"aria-checked":e[14]},{"aria-hidden":n=e[11]||void 0},e[4]],u={};for(let h=0;h<c.length;h+=1)u=Xn(u,c[h]);return{c(){r=Pe("span"),l&&l.c(),gi(r,u)},m(h,g){ee(h,r,g),l&&l.m(r,null),e[48](r),i=!0,o||(s=[Jo(e[5].call(null,r)),Ne(r,"click",e[41]),Ne(r,"keydown",e[16]),Ne(r,"focus",e[42]),Ne(r,"blur",e[43]),Ne(r,"pointerdown",e[44]),Ne(r,"wheel",e[45])],o=!0)},p(h,g){var m;l&&l.p&&(!i||g[0]&536870912)&&qo(l,a,h,h[29],i?Yo(a,h[29],g,null):Ko(h[29]),null),gi(r,u=zi(c,[(!i||g[0]&8198&&t!==(t=h[2]+" "+((m=h[1])!=null&&m.length?br["root_disabled-context-menu"]:"")+" "+(h[13]?br["root__any-actions"]:"")))&&{class:t},(!i||g[0]&8)&&{style:h[3]},(!i||g[0]&1024)&&{role:h[10]},(!i||g[0]&16384)&&{"aria-checked":h[14]},(!i||g[0]&2048&&n!==(n=h[11]||void 0))&&{"aria-hidden":n},g[0]&16&&h[4]]))},i(h){i||(Z(l,h),i=!0)},o(h){ie(l,h),i=!1},d(h){h&&$(r),l&&l.d(h),e[48](null),o=!1,$r(s)}}}function V_(e){var d;let r,t,n,i,o,s;const a=e[30].default,l=Go(a,e,e[29],null);let c=[{class:t=e[2]+" "+za.actionable__button+" "+br["root__any-actions"]+` ${e[6]?br.root__clickable:br["root__clickable-no-transition"]} ${br.root__unselectable} `+((d=e[1])!=null&&d.length?br["root_disabled-context-menu"]:"")},{style:e[3]},{role:e[10]},{"aria-checked":e[14]},{type:"button"},{tabindex:n=e[0].fakeElement===Li?-1:null},e[4]],u={};for(let h=0;h<c.length;h+=1)u=Xn(u,c[h]);return{c(){r=Pe("button"),l&&l.c(),gi(r,u)},m(h,g){ee(h,r,g),l&&l.m(r,null),r.autofocus&&r.focus(),e[47](r),i=!0,o||(s=[Jo(e[5].call(null,r)),Ne(r,"click",e[36]),Ne(r,"keydown",e[16]),Ne(r,"focus",e[37]),Ne(r,"blur",e[38]),Ne(r,"pointerdown",e[39]),Ne(r,"wheel",e[40])],o=!0)},p(h,g){var m;l&&l.p&&(!i||g[0]&536870912)&&qo(l,a,h,h[29],i?Yo(a,h[29],g,null):Ko(h[29]),null),gi(r,u=zi(c,[(!i||g[0]&70&&t!==(t=h[2]+" "+za.actionable__button+" "+br["root__any-actions"]+` ${h[6]?br.root__clickable:br["root__clickable-no-transition"]} ${br.root__unselectable} `+((m=h[1])!=null&&m.length?br["root_disabled-context-menu"]:"")))&&{class:t},(!i||g[0]&8)&&{style:h[3]},(!i||g[0]&1024)&&{role:h[10]},(!i||g[0]&16384)&&{"aria-checked":h[14]},{type:"button"},(!i||g[0]&1&&n!==(n=h[0].fakeElement===Li?-1:null))&&{tabindex:n},g[0]&16&&h[4]]))},i(h){i||(Z(l,h),i=!0)},o(h){ie(l,h),i=!1},d(h){h&&$(r),l&&l.d(h),e[47](null),o=!1,$r(s)}}}function I_(e){var d;let r,t,n,i,o,s;const a=e[30].default,l=Go(a,e,e[29],null);let c=[{href:e[8]},{target:e[12]},{style:e[3]},{role:e[10]},{"aria-checked":e[14]},{class:t=e[2]+" "+br["root__any-actions"]+" "+(e[6]?br.root__clickable:br["root__clickable-no-transition"])+" "+((d=e[1])!=null&&d.length?br["root_disabled-context-menu"]:"")},{tabindex:n=e[0].fakeElement===Li?-1:null},e[4]],u={};for(let h=0;h<c.length;h+=1)u=Xn(u,c[h]);return{c(){r=Pe("a"),l&&l.c(),gi(r,u)},m(h,g){ee(h,r,g),l&&l.m(r,null),e[46](r),i=!0,o||(s=[Jo(e[5].call(null,r)),Ne(r,"click",e[31]),Ne(r,"keydown",e[16]),Ne(r,"focus",e[32]),Ne(r,"blur",e[33]),Ne(r,"pointerdown",e[34]),Ne(r,"wheel",e[35])],o=!0)},p(h,g){var m;l&&l.p&&(!i||g[0]&536870912)&&qo(l,a,h,h[29],i?Yo(a,h[29],g,null):Ko(h[29]),null),gi(r,u=zi(c,[(!i||g[0]&256)&&{href:h[8]},(!i||g[0]&4096)&&{target:h[12]},(!i||g[0]&8)&&{style:h[3]},(!i||g[0]&1024)&&{role:h[10]},(!i||g[0]&16384)&&{"aria-checked":h[14]},(!i||g[0]&70&&t!==(t=h[2]+" "+br["root__any-actions"]+" "+(h[6]?br.root__clickable:br["root__clickable-no-transition"])+" "+((m=h[1])!=null&&m.length?br["root_disabled-context-menu"]:"")))&&{class:t},(!i||g[0]&1&&n!==(n=h[0].fakeElement===Li?-1:null))&&{tabindex:n},g[0]&16&&h[4]]))},i(h){i||(Z(l,h),i=!0)},o(h){ie(l,h),i=!1},d(h){h&&$(r),l&&l.d(h),e[46](null),o=!1,$r(s)}}}function D_(e){let r,t,n,i;const o=[I_,V_,S_],s=[];function a(l,c){return l[8]?0:l[9]?1:2}return r=a(e),t=s[r]=o[r](e),{c(){t.c(),n=hr()},m(l,c){s[r].m(l,c),ee(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?s[r].p(l,c):(vr(),ie(s[u],1,1,()=>{s[u]=null}),kr(),t=s[r],t?t.p(l,c):(t=s[r]=o[r](l),t.c()),Z(t,1),t.m(n.parentNode,n))},i(l){i||(Z(t),i=!0)},o(l){ie(t),i=!1},d(l){l&&$(n),s[r].d(l)}}}const Oa=8,La=400,_l=400,T_=new Set(["button","image","checkbox","radio","header"]);function Ra(e){e.preventDefault()}function F_(e,r,t){let n,i,o=T,s=()=>(o(),o=H(n,z=>t(28,i=z)),n);e.$$.on_destroy.push(()=>o());let{$$slots:a={},$$scope:l}=r,{componentContext:c}=r,{id:u=""}=r,{actions:d=void 0}=r,{doubleTapActions:h=void 0}=r,{longTapActions:g=void 0}=r,{pressStartActions:m=void 0}=r,{pressEndActions:_=void 0}=r,{hoverStartActions:v=void 0}=r,{hoverEndActions:E=void 0}=r,{cls:q=""}=r,{style:Q=null}=r,{attrs:K=void 0}=r,{use:de=j_}=r,{customAction:se=null}=r,{isNativeActionAnimation:W=!0}=r,{hasInnerFocusable:X=!1}=r,{customAccessibility:le=void 0}=r,{captureFocusOnAction:R=!0}=r;const N=Xr(yn),F=Xr(xi);Ti(xi,{hasAction(){return!!(F.hasAction()||d!=null&&d.length||(le==null?void 0:le.mode)==="exclude")}});let L,Ee="",$e,We=-1,Ue=-1,be=null,Ce=!1,Be=!1,ht=!1,xe,ye,Xe,Pt,ge=!1;function ze(){return(i==null?void 0:i.some(z=>{if(z!=null&&z.typed)return!0;const Le=z==null?void 0:z.url;if(!Le)return!1;const wt=fl(Le);return wt&&!dl(wt,N.getBuiltinProtocols())}))||!1}async function ve(z,Le){d&&(z&&ze()&&z.preventDefault(),c.execAnyActions(d,{node:L,processUrls:Le}))}async function te(z){if(F.hasAction()||z.button!==void 0&&z.button!==0)return;const Le=Date.now();if(We>0&&Le>We+La){z.preventDefault();return}if(h!=null&&h.length&&Ue>0&&Le-Ue<_l){z.preventDefault(),c.execAnyActions(h,{processUrls:!0,node:L}),Ue=-1;return}if(Ue=Le,h!=null&&h.length&&We>0&&Le<We+_l){z.preventDefault(),clearTimeout(ye),ye=window.setTimeout(()=>{ve(void 0,!0)},_l);return}(se==null?void 0:se(z))===!1?z.preventDefault():ve(z,!1)}function Ge(z){F.hasAction()||(be={x:z.clientX,y:z.clientY},Ce=!1,We=Date.now(),xe&&clearTimeout(xe),clearTimeout(ye),c.execAnyActions(m,{node:L}))}function st(z){be&&(Math.abs(be.x-z.clientX)>Oa||Math.abs(be.y-z.clientY)>Oa)&&(Ce=!0)}function Se(z){F.hasAction()||!be||We<0||(!Ce&&Date.now()-We>=La&&(z.stopImmediatePropagation(),c.execAnyActions(g,{processUrls:!0,node:L})),xe&&clearTimeout(xe),xe=window.setTimeout(()=>{be=null,We=-1},100),c.execAnyActions(_,{node:L}))}function jt(){F.hasAction()||c.execAnyActions(v,{node:L})}function it(){F.hasAction()||c.execAnyActions(E,{node:L})}function G(z){const Le=z.target;Le instanceof HTMLElement&&(Le.tagName==="INPUT"||Le.contentEditable==="true")||z.ctrlKey||z.metaKey||z.altKey||z.shiftKey||z.key==="Enter"&&Array.isArray(d)&&d.length&&(c.execAnyActions(d),z.preventDefault())}ei(()=>{u&&!X&&c.attachViewInfo("focus",()=>{L&&(Ee||Be)&&L.focus()})}),En(()=>{typeof window<"u"&&(window.removeEventListener("pointermove",st),window.removeEventListener("pointerup",Se),window.removeEventListener("pointercancel",Se)),u&&!X&&c.detachViewInfo("focus"),xe&&clearTimeout(xe),ye&&clearTimeout(ye)});function at(z){Nn.call(this,e,z)}function Gt(z){Nn.call(this,e,z)}function Je(z){Nn.call(this,e,z)}function Ve(z){Nn.call(this,e,z)}function Ot(z){Nn.call(this,e,z)}function rt(z){Nn.call(this,e,z)}function ut(z){Nn.call(this,e,z)}function Cr(z){Nn.call(this,e,z)}function Ft(z){Nn.call(this,e,z)}function Ut(z){Nn.call(this,e,z)}function Fe(z){Nn.call(this,e,z)}function oe(z){Nn.call(this,e,z)}function je(z){Nn.call(this,e,z)}function Wt(z){Nn.call(this,e,z)}function ot(z){Nn.call(this,e,z)}function De(z){Tr[z?"unshift":"push"](()=>{L=z,t(7,L)})}function cr(z){Tr[z?"unshift":"push"](()=>{L=z,t(7,L)})}function Me(z){Tr[z?"unshift":"push"](()=>{L=z,t(7,L)})}return e.$$set=z=>{"componentContext"in z&&t(0,c=z.componentContext),"id"in z&&t(17,u=z.id),"actions"in z&&t(18,d=z.actions),"doubleTapActions"in z&&t(19,h=z.doubleTapActions),"longTapActions"in z&&t(1,g=z.longTapActions),"pressStartActions"in z&&t(20,m=z.pressStartActions),"pressEndActions"in z&&t(21,_=z.pressEndActions),"hoverStartActions"in z&&t(22,v=z.hoverStartActions),"hoverEndActions"in z&&t(23,E=z.hoverEndActions),"cls"in z&&t(2,q=z.cls),"style"in z&&t(3,Q=z.style),"attrs"in z&&t(4,K=z.attrs),"use"in z&&t(5,de=z.use),"customAction"in z&&t(24,se=z.customAction),"isNativeActionAnimation"in z&&t(6,W=z.isNativeActionAnimation),"hasInnerFocusable"in z&&t(25,X=z.hasInnerFocusable),"customAccessibility"in z&&t(26,le=z.customAccessibility),"captureFocusOnAction"in z&&t(27,R=z.captureFocusOnAction),"$$scope"in z&&t(29,l=z.$$scope)},e.$$.update=()=>{if(e.$$.dirty[0]&67108864&&t(11,ge=(le==null?void 0:le.mode)==="exclude"),e.$$.dirty[0]&262145&&s(t(15,n=c.getDerivedFromVars(d,void 0,!0))),e.$$.dirty[0]&285214977){if(Array.isArray(i)&&(i!=null&&i.length))for(let z=0;z<i.length;++z){const Le=i[z].url;if(Le){t(8,Ee=Le),t(12,$e=i[z].target||void 0);break}}t(9,Be=!!se),(Ee||Array.isArray(i)&&(i!=null&&i.length))&&(F.hasAction()||ge)?(t(8,Ee=""),c.logError(B(new Error("Actionable element is forbidden inside other actionable element or inside accessibility mode=exlucde"),{level:"warn",additional:{actions:i}}))):Ee&&!dl(fl(Ee),N.getBuiltinProtocols())?(t(8,Ee=""),t(9,Be=!0)):!Ee&&Array.isArray(i)&&(i!=null&&i.length)&&(t(9,Be=!0),i.some(z=>z.url||z.typed||z.menu_items)||c.logError(B(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:i}})))}e.$$.dirty[0]&67110656&&(le!=null&&le.type&&T_.has(le.type)?le.type==="header"?t(10,Xe="heading"):le.type==="image"?t(10,Xe="img"):t(10,Xe=le.type):Ee?t(10,Xe=void 0):Be&&t(10,Xe="button"),(Xe==="checkbox"||Xe==="radio")&&typeof(le==null?void 0:le.is_checked)=="boolean"?t(14,Pt=le.is_checked):t(14,Pt=void 0)),e.$$.dirty[0]&150471554&&L&&(Ee||Be||h!=null&&h.length?L.addEventListener("click",te):L.removeEventListener("click",te),h!=null&&h.length||g!=null&&g.length||m!=null&&m.length||_!=null&&_.length?(L.addEventListener("pointerdown",Ge,{passive:!0}),window.addEventListener("pointermove",st,{passive:!0}),window.addEventListener("pointerup",Se,{passive:!0}),window.addEventListener("pointercancel",Se,{passive:!0})):(L.removeEventListener("pointerdown",Ge),window.removeEventListener("pointerup",Se),window.removeEventListener("pointermove",st),window.removeEventListener("pointercancel",Se)),v!=null&&v.length?L.addEventListener("pointerenter",jt):L.removeEventListener("pointerenter",jt),E!=null&&E.length?L.addEventListener("pointerleave",it):L.removeEventListener("pointerleave",it),R===!1?L.addEventListener("mousedown",Ra):L.removeEventListener("mousedown",Ra),t(13,ht=!!(Ee||Be||h!=null&&h.length||g!=null&&g.length||m!=null&&m.length||_!=null&&_.length||v!=null&&v.length||E!=null&&E.length)))},[c,g,q,Q,K,de,W,L,Ee,Be,Xe,ge,$e,ht,Pt,n,G,u,d,h,m,_,v,E,se,X,le,R,i,l,a,at,Gt,Je,Ve,Ot,rt,ut,Cr,Ft,Ut,Fe,oe,je,Wt,ot,De,cr,Me]}class as extends tn{constructor(r){super(),en(this,r,F_,D_,Or,{componentContext:0,id:17,actions:18,doubleTapActions:19,longTapActions:1,pressStartActions:20,pressEndActions:21,hoverStartActions:22,hoverEndActions:23,cls:2,style:3,attrs:4,use:5,customAction:24,isNativeActionAnimation:6,hasInnerFocusable:25,customAccessibility:26,captureFocusOnAction:27},null,[-1,-1,-1])}}const $i={"outer-background":"divkit-7b038","outer-background_clip":"divkit-8fdbd","outer-background__item":"divkit-f9881","outer-background__item_hidden":"divkit-ea047"};function Gn(e){return po(e)&&e>0}function Ba(e,r){return e.map(t=>{if(!t){r(B(new Error("Incorrect filter"),{level:"warn"}));return}if(t.type==="blur"){if(Gn(t.radius))return`blur(${xr(t.radius/2)})`}else{if(t.type==="rtl_mirror")return;r(B(new Error("Unknown filter"),{level:"warn",additional:{filter:t.type}}))}}).filter(Boolean).join(" ")}function Ha(e,r,t){const n=e.slice();return n[6]=r[t],n}function M_(e){let r,t;return{c(){r=Pe("span"),y(r,"class",$i["outer-background__item"]),y(r,"style",t=Kt(e[6].style))},m(n,i){ee(n,r,i)},p(n,i){i&2&&t!==(t=Kt(n[6].style))&&y(r,"style",t)},d(n){n&&$(r)}}}function P_(e){let r,t,n,i,o;return{c(){r=Pe("img"),hi(r.src,t=e[6].image_url)||y(r,"src",t),y(r,"alt",""),y(r,"aria-hidden","true"),y(r,"loading","lazy"),y(r,"decoding","async"),y(r,"class",$i["outer-background__item"]),y(r,"style",n=Kt(e[6].style))},m(s,a){ee(s,r,a),i||(o=Ne(r,"error",e[2]),i=!0)},p(s,a){a&2&&!hi(r.src,t=s[6].image_url)&&y(r,"src",t),a&2&&n!==(n=Kt(s[6].style))&&y(r,"style",n)},d(s){s&&$(r),i=!1,o()}}}function Wa(e){let r;function t(o,s){return o[6].image_url?P_:M_}let n=t(e),i=n(e);return{c(){i.c(),r=hr()},m(o,s){i.m(o,s),ee(o,r,s)},p(o,s){n===(n=t(o))&&i?i.p(o,s):(i.d(1),i=n(o),i&&(i.c(),i.m(r.parentNode,r)))},d(o){o&&$(r),i.d(o)}}}function N_(e){let r,t,n=gr(e[1]),i=[];for(let o=0;o<n.length;o+=1)i[o]=Wa(Ha(e,n,o));return{c(){r=Pe("span");for(let o=0;o<i.length;o+=1)i[o].c();y(r,"class",t=$i["outer-background"]+(e[0]?" "+$i["outer-background_clip"]:"")),Y(r,"border-radius",e[0])},m(o,s){ee(o,r,s);for(let a=0;a<i.length;a+=1)i[a]&&i[a].m(r,null)},p(o,[s]){if(s&6){n=gr(o[1]);let a;for(a=0;a<n.length;a+=1){const l=Ha(o,n,a);i[a]?i[a].p(l,s):(i[a]=Wa(l),i[a].c(),i[a].m(r,null))}for(;a<i.length;a+=1)i[a].d(1);i.length=n.length}s&1&&t!==(t=$i["outer-background"]+(o[0]?" "+$i["outer-background_clip"]:""))&&y(r,"class",t),s&1&&Y(r,"border-radius",o[0])},i:T,o:T,d(o){o&&$(r),kn(i,o)}}}function z_(e,r,t){let n,{direction:i}=r,{componentContext:o}=r,{background:s=[]}=r,{radius:a=""}=r;function l(c){c.target&&"classList"in c.target&&c.target.classList.add($i["outer-background__item_hidden"])}return e.$$set=c=>{"direction"in c&&t(3,i=c.direction),"componentContext"in c&&t(4,o=c.componentContext),"background"in c&&t(5,s=c.background),"radius"in c&&t(0,a=c.radius)},e.$$.update=()=>{e.$$.dirty&56&&t(1,n=s.map(c=>{const u={},d={style:u};if(c.type==="nine_patch_image"&&c.insets)u["border-image"]=`url("${c.image_url}") ${c.insets.top||0} ${c.insets.right||0} ${c.insets.bottom||0} ${c.insets.left||0} fill`,u["border-image-width"]="auto";else{const h=ns([c],i);c.type==="solid"&&(u["background-color"]=h.color),c.type==="gradient"&&(u["background-image"]=h.image),c.type==="image"&&(u.opacity=Number(c.alpha),d.image_url=c.image_url,u["object-fit"]=h.size,u["object-position"]=h.position,Array.isArray(c.filters)&&c.filters.length&&(u.filter=Ba(c.filters,o.logError),i==="rtl"&&c.filters.some(g=>g.type==="rtl_mirror")&&(u.transform="scale(-1,1)")))}return d}))},[a,n,l,i,o,s]}class O_ extends tn{constructor(r){super(),en(this,r,z_,N_,Or,{direction:3,componentContext:4,background:5,radius:0})}}const L_=e=>({hasCustomFocus:e[0]&4096,widthMin:e[0]&32,widthMax:e[0]&64,heightMin:e[0]&128,heightMax:e[0]&256}),Ua=e=>({focusHandler:e[50],blurHandler:e[51],hasCustomFocus:e[12],widthMin:e[5],widthMax:e[6],heightMin:e[7],heightMax:e[8]});function Ga(e){let r,t;return r=new as({props:{componentContext:e[0],id:e[0].json.id,use:e[49],cls:e[1]+" "+Ct("outer",rs,e[29]),style:Kt(e[28]),actions:e[20],doubleTapActions:e[21],longTapActions:e[22],pressStartActions:e[23],pressEndActions:e[24],hoverStartActions:e[25],hoverEndActions:e[26],attrs:e[15],hasInnerFocusable:e[2],isNativeActionAnimation:!e[11].length||Ka(e[11]),customAccessibility:e[14],captureFocusOnAction:e[27],$$slots:{default:[R_]},$$scope:{ctx:e}}}),r.$on("focus",e[50]),r.$on("blur",e[51]),r.$on("pointerdown",e[129]),r.$on("wheel",e[130]),{c(){nr(r.$$.fragment)},m(n,i){er(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&1&&(o.id=n[0].json.id),i[0]&536870914&&(o.cls=n[1]+" "+Ct("outer",rs,n[29])),i[0]&268435456&&(o.style=Kt(n[28])),i[0]&1048576&&(o.actions=n[20]),i[0]&2097152&&(o.doubleTapActions=n[21]),i[0]&4194304&&(o.longTapActions=n[22]),i[0]&8388608&&(o.pressStartActions=n[23]),i[0]&16777216&&(o.pressEndActions=n[24]),i[0]&33554432&&(o.hoverStartActions=n[25]),i[0]&67108864&&(o.hoverEndActions=n[26]),i[0]&32768&&(o.attrs=n[15]),i[0]&4&&(o.hasInnerFocusable=n[2]),i[0]&2048&&(o.isNativeActionAnimation=!n[11].length||Ka(n[11])),i[0]&16384&&(o.customAccessibility=n[14]),i[0]&134217728&&(o.captureFocusOnAction=n[27]),i[0]&145401|i[4]&128&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(Z(r.$$.fragment,n),t=!0)},o(n){ie(r.$$.fragment,n),t=!1},d(n){tr(r,n)}}}function Ya(e){let r,t;return r=new O_({props:{componentContext:e[0],direction:e[13],background:e[9],radius:e[4]}}),{c(){nr(r.$$.fragment)},m(n,i){er(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&8192&&(o.direction=n[13]),i[0]&512&&(o.background=n[9]),i[0]&16&&(o.radius=n[4]),r.$set(o)},i(n){t||(Z(r.$$.fragment,n),t=!0)},o(n){ie(r.$$.fragment,n),t=!1},d(n){tr(r,n)}}}function qa(e){let r,t;return{c(){r=Pe("span"),y(r,"class",rs.outer__border),y(r,"style",t=Kt(e[3]))},m(n,i){ee(n,r,i)},p(n,i){i[0]&8&&t!==(t=Kt(n[3]))&&y(r,"style",t)},d(n){n&&$(r)}}}function R_(e){let r,t,n,i=e[10]&&Ya(e);const o=e[128].default,s=Go(o,e,e[131],Ua);let a=e[17]&&qa(e);return{c(){i&&i.c(),r=hr(),s&&s.c(),a&&a.c(),t=hr()},m(l,c){i&&i.m(l,c),ee(l,r,c),s&&s.m(l,c),a&&a.m(l,c),ee(l,t,c),n=!0},p(l,c){l[10]?i?(i.p(l,c),c[0]&1024&&Z(i,1)):(i=Ya(l),i.c(),Z(i,1),i.m(r.parentNode,r)):i&&(vr(),ie(i,1,1,()=>{i=null}),kr()),s&&s.p&&(!n||c[0]&4576|c[4]&128)&&qo(s,o,l,l[131],n?Yo(o,l[131],c,L_):Ko(l[131]),Ua),l[17]?a?a.p(l,c):(a=qa(l),a.c(),a.m(t.parentNode,t)):a&&(a.d(1),a=null)},i(l){n||(Z(i),Z(s,l),n=!0)},o(l){ie(i),ie(s,l),n=!1},d(l){l&&($(r),$(t)),i&&i.d(l),s&&s.d(l),a&&a.d(l)}}}function B_(e){let r,t,n=!e[18]&&!e[19]&&Ga(e);return{c(){n&&n.c(),r=hr()},m(i,o){n&&n.m(i,o),ee(i,r,o),t=!0},p(i,o){!i[18]&&!i[19]?n?(n.p(i,o),o[0]&786432&&Z(n,1)):(n=Ga(i),n.c(),Z(n,1),n.m(r.parentNode,r)):n&&(vr(),ie(n,1,1,()=>{n=null}),kr())},i(i){t||(Z(n),t=!0)},o(i){ie(n),t=!1},d(i){i&&$(r),n&&n.d(i)}}}const H_={left:"start",center:"center",right:"end",start:"start",end:"end"},W_={left:"end",center:"center",right:"start",start:"start",end:"end"},U_={top:"start",center:"center",bottom:"end",baseline:"baseline"},hl=e=>`The component id with the "${e}" property for state change is missing. Either specify the id, or specify the "transition_trigger" property without "state_change" value.`;function Ka(e){return e.some(r=>r.name==="native")}function G_(e,r,t){let n,i,o,s,a,l,c,u,d,h,g,m,_,v,E,q,Q,K,de,se,W,X,le,R,N,F,L=T,Ee=()=>(L(),L=H(E,Re=>t(110,F=Re)),E),$e,We=T,Ue=()=>(We(),We=H(q,Re=>t(111,$e=Re)),q),be,Ce=T,Be=()=>(Ce(),Ce=H(Zr,Re=>t(112,be=Re)),Zr),ht,xe,ye=T,Xe=()=>(ye(),ye=H(v,Re=>t(114,xe=Re)),v),Pt,ge=T,ze=()=>(ge(),ge=H(Q,Re=>t(115,Pt=Re)),Q),ve,te=T,Ge=()=>(te(),te=H(_,Re=>t(116,ve=Re)),_),st,Se,jt=T,it=()=>(jt(),jt=H(m,Re=>t(117,Se=Re)),m),G,at=T,Gt=()=>(at(),at=H(i,Re=>t(118,G=Re)),i),Je,Ve=T,Ot=()=>(Ve(),Ve=H(g,Re=>t(14,Je=Re)),g),rt,ut=T,Cr=()=>(ut(),ut=H(h,Re=>t(119,rt=Re)),h),Ft,Ut=T,Fe=()=>(Ut(),Ut=H(d,Re=>t(120,Ft=Re)),d),oe,je=T,Wt=()=>(je(),je=H(u,Re=>t(121,oe=Re)),u),ot,De=T,cr=()=>(De(),De=H(a,Re=>t(122,ot=Re)),a),Me,z=T,Le=()=>(z(),z=H(c,Re=>t(123,Me=Re)),c),wt,he=T,ct=()=>(he(),he=H(l,Re=>t(124,wt=Re)),l),gt,Tt=T,ft=()=>(Tt(),Tt=H(s,Re=>t(125,gt=Re)),s),ke,At=T,vt=()=>(At(),At=H(o,Re=>t(126,ke=Re)),o),Nt;e.$$.on_destroy.push(()=>L()),e.$$.on_destroy.push(()=>We()),e.$$.on_destroy.push(()=>Ce()),e.$$.on_destroy.push(()=>ye()),e.$$.on_destroy.push(()=>ge()),e.$$.on_destroy.push(()=>te()),e.$$.on_destroy.push(()=>jt()),e.$$.on_destroy.push(()=>at()),e.$$.on_destroy.push(()=>Ve()),e.$$.on_destroy.push(()=>ut()),e.$$.on_destroy.push(()=>Ut()),e.$$.on_destroy.push(()=>je()),e.$$.on_destroy.push(()=>De()),e.$$.on_destroy.push(()=>z()),e.$$.on_destroy.push(()=>he()),e.$$.on_destroy.push(()=>Tt()),e.$$.on_destroy.push(()=>At());let{$$slots:It={},$$scope:xt}=r,{componentContext:V}=r,{cls:Rt=""}=r,{style:Te=void 0}=r,{layoutParams:A={}}=r,{customDescription:Yt=!1}=r,{customPaddings:lr=!1}=r,{customActions:fr=""}=r,{additionalPaddings:Er=null}=r,{heightByAspect:pr=!1}=r,{parentOf:ir=void 0}=r,{parentOfSimpleMode:Fr=void 0}=r,{replaceItems:St=void 0}=r,{hasInnerFocusable:dt=!1}=r,{alwaysCustomFocus:Bt=!1}=r,{devapi:qt=void 0}=r;const yt=Xr(yn),lt=Xr(ll),{isEnabled:mr}=Xr(cl);bn(e,mr,Re=>t(127,Nt=Re));const or=Xr(ul),Mr=yt.direction;bn(e,Mr,Re=>t(13,st=Re));let Lt,jr,dr=null,Zr,Jr,Jt=[],rn={},un={},P=!1,Ze=1,Xt="transparent",mt=0,zt={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},_e="",Ye=null,J="",f={},C,Ae,qe,_t=0,w=0,ue=0,pe=!1,fe=!1,nt={},kt,Ir,sr,Yr=0,Cn=0,ae=0,Sr=!1,b=!1,k=1,j,U,D,x,we=[],He=!1,et=!1,Dt,tt,Qe,ar=[],rr=[],Wr=[],Dr=[],qr=[],ln=[],gn=[],Ht=[],yr=[],$t=[],an="",Rn,Et,p,S,O=!1,I="visible",ne,re,pt=!1,bt=!0,_r,Vr,Nr,pn;function Ii(){t(72,Ye=null),t(73,J=""),t(86,k=1),t(98,O=!1),t(99,I="visible"),t(100,ne=void 0),t(27,bt=!0),we=V.fakeElement?[]:V.json.transition_triggers||["state_change","visibility_change"],t(89,He=we.indexOf("state_change")!==-1),et=we.indexOf("visibility_change")!==-1,Lt&&Ki(Lt),_r==null||_r(),Nt&&t(101,_r=yt.processVariableTriggers(V,V.json.variable_triggers))}function qi(Re,Ur){if(!Array.isArray(ir)||!St||Fr&&(Array.isArray(Ur)?Ur.length:0)!==1)return;const wn=ir.findIndex(fn=>(fn==null?void 0:fn.id)===Re),Jn=ir.slice();Jn.splice(wn,1,...(Ur||[]).map(fn=>({json:fn,id:fn==null?void 0:fn.id}))),t(52,ir=Jn),St(Jn.map(fn=>fn==null?void 0:fn.json))}function _i(Re){const Ur=os(Re.start_value,1),wn=os(Re.end_value,1),Jn=nn(Re.start_delay,0),fn=Qi()?0:nn(Re.duration,300),Wo=Ma(Re.interpolator,"ease_in_out").replace(/_/g,"-");switch(Re.name){case"fade":return t(94,Rn=Ur),t(95,Et=wn),`opacity ${fn}ms ${Wo} ${Jn}ms`;case"scale":return t(96,p=Ur),t(97,S=wn),`transform ${fn}ms ${Wo} ${Jn}ms`;case"native":case"no_animation":return"";default:return V.logError(B(new Error("Unknown action_animation name"),{additional:{animation:Re.name}})),""}}const Ks=or.visible;bn(e,Ks,Re=>t(113,ht=Re));const Js=pi(W);Ti(ul,{visible:Js});async function Ie(Re){const Ur=Re==="visible"?"in":"out",wn=Ur==="in"?V.json.transition_in:V.json.transition_out;if(et&&wn){let Jn;Re==="gone"&&(Jn=Lt.getBoundingClientRect()),await Vn(),Ur==="in"&&t(91,tt=!0),lt.runVisibilityTransition({...V.json,visibility:"visible"},V,wn,Lt,Ur,Jn).then(()=>{Ur==="in"&&t(91,tt=!1)}).catch(fn=>{throw Ur==="in"&&t(91,tt=!1),fn})}}function ur(){if(dr&&Lt){const Re=yt.getExtensionContext(V);dr.forEach(Ur=>{var wn;(wn=Ur.unmountView)==null||wn.call(Ur,Lt,Re)}),dr=null}}function on(){if(dr!=null&&dr.length){const Re=yt.getExtensionContext(V);dr.forEach(Ur=>{var wn;(wn=Ur.updateView)==null||wn.call(Ur,Lt,Re)})}}function Ki(Re){var wn,Jn;Vr==null||Vr.destroy(),t(64,Lt=Re),He&&V.json.transition_in&&(V.id?lt.registerChildWithTransitionIn(V.json,V,V.json.transition_in,Re).then(()=>{t(90,Dt=!1)}).catch(fn=>{throw t(90,Dt=!1),fn}):V.logError(B(new Error(hl("transition_in")),{level:"warn"}))),He&&V.json.transition_out&&(V.id?lt.registerChildWithTransitionOut(V.json,V,V.json.transition_out,Re):V.logError(B(new Error(hl("transition_out")),{level:"warn"}))),V.fakeElement||(V.json.transition_change&&!V.id&&V.logError(B(new Error(hl("transition_change")),{level:"warn"})),lt.registerChildWithTransitionChange(V.json,V,V.json.transition_change,Re).then(()=>{t(92,Qe=!1)}).catch(fn=>{throw t(92,Qe=!1),fn}));const Ur=V.id;return Ur&&(Nr==null||Nr(),Nr=yt.registerId(Ur,{context:()=>V,node:()=>Lt}),lt.registerChild(Ur)),V.json.tooltips&&V.attachViewInfo("tooltips",V.json.tooltips),re&&(re.disconnect(),re=void 0),re=A_(Lt,V,(wn=V.json.layout_provider)==null?void 0:wn.width_variable_name,(Jn=V.json.layout_provider)==null?void 0:Jn.height_variable_name),V.attachViewInfo("node",()=>Re),Vr={destroy(){V.detachViewInfo("node"),Nr&&(Nr(),Nr=void 0),Ur&&lt.unregisterChild(Ur),pn&&pn.destroy()}},Vr}function Xs(){pn==null||pn.destroy();const Re=!V.fakeElement||V.fakeElement===Li,Ur=Re?V.json.visibility_actions||V.json.visibility_action&&[V.json.visibility_action]:[],wn=Re?V.json.disappear_actions:[];Array.isArray(Ur)&&Ur.length||Array.isArray(wn)&&wn.length?t(102,pn=g_(Lt,{visibilityActions:Ur,disappearActions:wn,rootCtx:yt,componentContext:V})):t(102,pn=void 0)}function Tn(){V.json.focus&&((Bt||!Zs(yt.isPointerFocus))&&t(12,pt=!0),V.execAnyActions(Dr))}function Ho(){V.json.focus&&(t(12,pt=!1),V.execAnyActions(qr))}$o(on),En(()=>{Jt.forEach(Re=>{yt.unregisterParentOf(Re)}),t(66,Jt=[]),re&&(re.disconnect(),re=void 0),V.detachViewInfo("tooltips"),_r==null||_r(),ur()});function ao(Re){Nn.call(this,e,Re)}function Io(Re){Nn.call(this,e,Re)}re