UNPKG

@divkitframework/divkit

Version:
8 lines 468 kB
"use strict";var qd=Object.defineProperty;var Kd=(t,r,e)=>r in t?qd(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e;var gr=(t,r,e)=>Kd(t,typeof r!="symbol"?r+"":r,e);/*! DivKit v32.51.0 https://github.com/divkit/divkit @licence Apache-2.0 */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function F(){}const Ps=t=>t;function Li(t,r){for(const e in r)t[e]=r[e];return t}function Mf(t){return t()}function ha(){return Object.create(null)}function on(t){t.forEach(Mf)}function qr(t){return typeof t=="function"}function Jd(t,r){return t!=t?r==r:t!==r||t&&typeof t=="object"||typeof t=="function"}let Go;function bi(t,r){return t===r?!0:(Go||(Go=document.createElement("a")),Go.href=r,t===Go.href)}function Gr(t,r){return t!=t?r==r:t!==r}function Xd(t){return Object.keys(t).length===0}function H(t,...r){if(t==null){for(const n of r)n(void 0);return F}const e=t.subscribe(...r);return e.unsubscribe?()=>e.unsubscribe():e}function dl(t){let r;return H(t,e=>r=e)(),r}function bn(t,r,e){t.$$.on_destroy.push(H(r,e))}function Ns(t,r,e,n){if(t){const i=Pf(t,r,e,n);return t[0](i)}}function Pf(t,r,e,n){return t[1]&&n?Li(e.ctx.slice(),t[1](n(r))):e.ctx}function zs(t,r,e,n){if(t[2]&&n){const i=t[2](n(e));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 Os(t,r,e,n,i,o){if(i){const s=Pf(r,e,n,o);t.p(s,i)}}function Ls(t){if(t.ctx.length>32){const r=[],e=t.ctx.length/32;for(let n=0;n<e;n++)r[n]=-1;return r}return-1}function $s(t,r,e){return t.set(e),r}function Rs(t){return t&&qr(t.destroy)?t.destroy:F}function _a(t){const r=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return r?[parseFloat(r[1]),r[2]||"px"]:[t,"px"]}const Nf=typeof window<"u";let Rl=Nf?()=>window.performance.now():()=>Date.now(),Bl=Nf?t=>requestAnimationFrame(t):F;const go=new Set;function zf(t){go.forEach(r=>{r.c(t)||(go.delete(r),r.f())}),go.size!==0&&Bl(zf)}function Hl(t){let r;return go.size===0&&Bl(zf),{promise:new Promise(e=>{go.add(r={c:t,f:e})}),abort(){go.delete(r)}}}const Vi=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;let Bs=!1;function Zd(){Bs=!0}function Qd(){Bs=!1}function xd(t,r,e,n){for(;t<r;){const i=t+(r-t>>1);e(i)<=n?t=i+1:r=i}return t}function $d(t){if(t.hydrate_init)return;t.hydrate_init=!0;let r=t.childNodes;if(t.nodeName==="HEAD"){const l=[];for(let u=0;u<r.length;u++){const c=r[u];c.claim_order!==void 0&&l.push(c)}r=l}const e=new Int32Array(r.length+1),n=new Int32Array(r.length);e[0]=-1;let i=0;for(let l=0;l<r.length;l++){const u=r[l].claim_order,c=(i>0&&r[e[i]].claim_order<=u?i+1:xd(1,i,_=>r[e[_]].claim_order,u))-1;n[l]=e[c]+1;const f=c+1;e[f]=l,i=Math.max(f,i)}const o=[],s=[];let a=r.length-1;for(let l=e[i]+1;l!=0;l=n[l-1]){for(o.push(r[l-1]);a>=l;a--)s.push(r[a]);a--}for(;a>=0;a--)s.push(r[a]);o.reverse(),s.sort((l,u)=>l.claim_order-u.claim_order);for(let l=0,u=0;l<s.length;l++){for(;u<o.length&&s[l].claim_order>=o[u].claim_order;)u++;const c=u<o.length?o[u]:null;t.insertBefore(s[l],c)}}function eh(t,r){t.appendChild(r)}function Of(t){if(!t)return document;const r=t.getRootNode?t.getRootNode():t.ownerDocument;return r&&r.host?r:t.ownerDocument}function th(t){const r=Pe("style");return r.textContent="/* empty */",rh(Of(t),r),r.sheet}function rh(t,r){return eh(t.head||t,r),r.sheet}function Ht(t,r){if(Bs){for($d(t),(t.actual_end_child===void 0||t.actual_end_child!==null&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);t.actual_end_child!==null&&t.actual_end_child.claim_order===void 0;)t.actual_end_child=t.actual_end_child.nextSibling;r!==t.actual_end_child?(r.claim_order!==void 0||r.parentNode!==t)&&t.insertBefore(r,t.actual_end_child):t.actual_end_child=r.nextSibling}else(r.parentNode!==t||r.nextSibling!==null)&&t.appendChild(r)}function nh(t,r,e){t.insertBefore(r,e||null)}function x(t,r,e){Bs&&!e?Ht(t,r):(r.parentNode!==t||r.nextSibling!=e)&&t.insertBefore(r,e||null)}function k(t){t.parentNode&&t.parentNode.removeChild(t)}function An(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function Pe(t){return document.createElement(t)}function mn(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ii(t){return document.createTextNode(t)}function Sr(){return ii(" ")}function tt(){return ii("")}function Le(t,r,e,n){return t.addEventListener(r,e,n),()=>t.removeEventListener(r,e,n)}function b(t,r,e){e==null?t.removeAttribute(r):t.getAttribute(r)!==e&&t.setAttribute(r,e)}const ih=["width","height"];function yi(t,r){const e=Object.getOwnPropertyDescriptors(t.__proto__);for(const n in r)r[n]==null?t.removeAttribute(n):n==="style"?t.style.cssText=r[n]:n==="__value"?t.value=t[n]=r[n]:e[n]&&e[n].set&&ih.indexOf(n)===-1?t[n]=r[n]:b(t,n,r[n])}function oh(t,r){Object.keys(r).forEach(e=>{sh(t,e,r[e])})}function sh(t,r,e){const n=r.toLowerCase();n in t?t[n]=typeof t[n]=="boolean"&&e===""?!0:e:r in t?t[r]=typeof t[r]=="boolean"&&e===""?!0:e:b(t,r,e)}function ga(t){return/-/.test(t)?oh:yi}function Ve(t){return Array.from(t.childNodes)}function Lf(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function Rf(t,r,e,n,i=!1){Lf(t);const o=(()=>{for(let s=t.claim_info.last_index;s<t.length;s++){const a=t[s];if(r(a)){const l=e(a);return l===void 0?t.splice(s,1):t[s]=l,i||(t.claim_info.last_index=s),a}}for(let s=t.claim_info.last_index-1;s>=0;s--){const a=t[s];if(r(a)){const l=e(a);return l===void 0?t.splice(s,1):t[s]=l,i?l===void 0&&t.claim_info.last_index--:t.claim_info.last_index=s,a}}return n()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function Bf(t,r,e,n){return Rf(t,i=>i.nodeName===r,i=>{const o=[];for(let s=0;s<i.attributes.length;s++){const a=i.attributes[s];e[a.name]||o.push(a.name)}o.forEach(s=>i.removeAttribute(s))},()=>n(r))}function Re(t,r,e){return Bf(t,r,e,Pe)}function Sn(t,r,e){return Bf(t,r,e,mn)}function wi(t,r){return Rf(t,e=>e.nodeType===3,e=>{const n=""+r;if(e.data.startsWith(n)){if(e.data.length!==n.length)return e.splitText(n.length)}else e.data=n},()=>ii(r),!0)}function Vr(t){return wi(t," ")}function pa(t,r,e){for(let n=e;n<t.length;n+=1){const i=t[n];if(i.nodeType===8&&i.textContent.trim()===r)return n}return-1}function Wl(t,r){const e=pa(t,"HTML_TAG_START",0),n=pa(t,"HTML_TAG_END",e+1);if(e===-1||n===-1)return new po(r);Lf(t);const i=t.splice(e,n-e+1);k(i[0]),k(i[i.length-1]);const o=i.slice(1,i.length-1);if(o.length===0)return new po(r);for(const s of o)s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new po(r,o)}function Ri(t,r){r=""+r,t.data!==r&&(t.data=r)}function ma(t,r){t.value=r==null?"":r}function W(t,r,e,n){e==null?t.style.removeProperty(r):t.style.setProperty(r,e,"")}function ba(t,r,e){for(let n=0;n<t.options.length;n+=1){const i=t.options[n];if(i.__value===r){i.selected=!0;return}}(!e||r!==void 0)&&(t.selectedIndex=-1)}function lh(t){const r=t.querySelector(":checked");return r&&r.__value}function Hf(t,r,{bubbles:e=!1,cancelable:n=!1}={}){return new CustomEvent(t,{detail:r,bubbles:e,cancelable:n})}class ah{constructor(r=!1){gr(this,"is_svg",!1);gr(this,"e");gr(this,"n");gr(this,"t");gr(this,"a");this.is_svg=r,this.e=this.n=null}c(r){this.h(r)}m(r,e,n=null){this.e||(this.is_svg?this.e=mn(e.nodeName):this.e=Pe(e.nodeType===11?"TEMPLATE":e.nodeName),this.t=e.tagName!=="TEMPLATE"?e:e.content,this.c(r)),this.i(n)}h(r){this.e.innerHTML=r,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(r){for(let e=0;e<this.n.length;e+=1)nh(this.t,this.n[e],r)}p(r){this.d(),this.h(r),this.i(this.a)}d(){this.n.forEach(k)}}class po extends ah{constructor(e=!1,n){super(e);gr(this,"l");this.e=this.n=null,this.l=n}c(e){this.l?this.n=this.l:super.c(e)}i(e){for(let n=0;n<this.n.length;n+=1)x(this.t,this.n[n],e)}}function ya(t,r){return new t(r)}const vs=new Map;let ws=0;function uh(t){let r=5381,e=t.length;for(;e--;)r=(r<<5)-r^t.charCodeAt(e);return r>>>0}function ch(t,r){const e={stylesheet:th(r),rules:{}};return vs.set(t,e),e}function ks(t,r,e,n,i,o,s,a=0){const l=16.666/n;let u=`{ `;for(let v=0;v<=1;v+=l){const w=r+(e-r)*o(v);u+=v*100+`%{${s(w,1-w)}} `}const c=u+`100% {${s(e,1-e)}} }`,f=`__svelte_${uh(c)}_${a}`,_=Of(t),{stylesheet:g,rules:p}=vs.get(_)||ch(_,t);p[f]||(p[f]=!0,g.insertRule(`@keyframes ${f} ${c}`,g.cssRules.length));const h=t.style.animation||"";return t.style.animation=`${h?`${h}, `:""}${f} ${n}ms linear ${i}ms 1 both`,ws+=1,f}function Es(t,r){const e=(t.style.animation||"").split(", "),n=e.filter(r?o=>o.indexOf(r)<0:o=>o.indexOf("__svelte")===-1),i=e.length-n.length;i&&(t.style.animation=n.join(", "),ws-=i,ws||fh())}function fh(){Bl(()=>{ws||(vs.forEach(t=>{const{ownerNode:r}=t.stylesheet;r&&k(r)}),vs.clear())})}let Oo;function No(t){Oo=t}function Co(){if(!Oo)throw new Error("Function called outside component initialization");return Oo}function oi(t){Co().$$.on_mount.push(t)}function Hs(t){Co().$$.after_update.push(t)}function Cn(t){Co().$$.on_destroy.push(t)}function dh(){const t=Co();return(r,e,{cancelable:n=!1}={})=>{const i=t.$$.callbacks[r];if(i){const o=Hf(r,e,{cancelable:n});return i.slice().forEach(s=>{s.call(t,o)}),!o.defaultPrevented}return!0}}function Ni(t,r){return Co().$$.context.set(t,r),r}function xr(t){return Co().$$.context.get(t)}function Rn(t,r){const e=t.$$.callbacks[r.type];e&&e.slice().forEach(n=>n.call(this,r))}const ho=[],Lr=[];let mo=[];const va=[],Wf=Promise.resolve();let hl=!1;function Uf(){hl||(hl=!0,Wf.then(Gf))}function Mn(){return Uf(),Wf}function ei(t){mo.push(t)}const el=new Set;let uo=0;function Gf(){if(uo!==0)return;const t=Oo;do{try{for(;uo<ho.length;){const r=ho[uo];uo++,No(r),hh(r.$$)}}catch(r){throw ho.length=0,uo=0,r}for(No(null),ho.length=0,uo=0;Lr.length;)Lr.pop()();for(let r=0;r<mo.length;r+=1){const e=mo[r];el.has(e)||(el.add(e),e())}mo.length=0}while(ho.length);for(;va.length;)va.pop()();hl=!1,el.clear(),No(t)}function hh(t){if(t.fragment!==null){t.update(),on(t.before_update);const r=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,r),t.after_update.forEach(ei)}}function _h(t){const r=[],e=[];mo.forEach(n=>t.indexOf(n)===-1?r.push(n):e.push(n)),e.forEach(n=>n()),mo=r}let Fo;function Ul(){return Fo||(Fo=Promise.resolve(),Fo.then(()=>{Fo=null})),Fo}function eo(t,r,e){t.dispatchEvent(Hf(`${r?"intro":"outro"}${e}`))}const rs=new Set;let Ci;function kr(){Ci={r:0,c:[],p:Ci}}function Er(){Ci.r||on(Ci.c),Ci=Ci.p}function J(t,r){t&&t.i&&(rs.delete(t),t.i(r))}function se(t,r,e,n){if(t&&t.o){if(rs.has(t))return;rs.add(t),Ci.c.push(()=>{rs.delete(t),n&&(e&&t.d(1),n())}),t.o(r)}else n&&n()}const Gl={duration:0};function Ws(t,r,e){const n={direction:"in"};let i=r(t,e,n),o=!1,s,a,l=0;function u(){s&&Es(t,s)}function c(){const{delay:_=0,duration:g=300,easing:p=Ps,tick:h=F,css:v}=i||Gl;v&&(s=ks(t,0,1,g,_,p,v,l++)),h(0,1);const w=Rl()+_,G=w+g;a&&a.abort(),o=!0,ei(()=>eo(t,!0,"start")),a=Hl(X=>{if(o){if(X>=G)return h(1,0),eo(t,!0,"end"),u(),o=!1;if(X>=w){const B=p((X-w)/g);h(B,1-B)}}return o})}let f=!1;return{start(){f||(f=!0,Es(t),qr(i)?(i=i(n),Ul().then(c)):c())},invalidate(){f=!1},end(){o&&(u(),o=!1)}}}function Yf(t,r,e){const n={direction:"out"};let i=r(t,e,n),o=!0,s;const a=Ci;a.r+=1;let l;function u(){const{delay:c=0,duration:f=300,easing:_=Ps,tick:g=F,css:p}=i||Gl;p&&(s=ks(t,1,0,f,c,_,p));const h=Rl()+c,v=h+f;ei(()=>eo(t,!1,"start")),"inert"in t&&(l=t.inert,t.inert=!0),Hl(w=>{if(o){if(w>=v)return g(0,1),eo(t,!1,"end"),--a.r||on(a.c),!1;if(w>=h){const G=_((w-h)/f);g(1-G,G)}}return o})}return qr(i)?Ul().then(()=>{i=i(n),u()}):u(),{end(c){c&&"inert"in t&&(t.inert=l),c&&i.tick&&i.tick(1,0),o&&(s&&Es(t,s),o=!1)}}}function wa(t,r,e,n){let o=r(t,e,{direction:"both"}),s=n?0:1,a=null,l=null,u=null,c;function f(){u&&Es(t,u)}function _(p,h){const v=p.b-s;return h*=Math.abs(v),{a:s,b:p.b,d:v,duration:h,start:p.start,end:p.start+h,group:p.group}}function g(p){const{delay:h=0,duration:v=300,easing:w=Ps,tick:G=F,css:X}=o||Gl,B={start:Rl()+h,b:p};p||(B.group=Ci,Ci.r+=1),"inert"in t&&(p?c!==void 0&&(t.inert=c):(c=t.inert,t.inert=!0)),a||l?l=B:(X&&(f(),u=ks(t,s,p,v,h,w,X)),p&&G(0,1),a=_(B,v),ei(()=>eo(t,p,"start")),Hl($=>{if(l&&$>l.start&&(a=_(l,v),l=null,eo(t,a.b,"start"),X&&(f(),u=ks(t,s,a.b,a.duration,0,w,o.css))),a){if($>=a.end)G(s=a.b,1-s),eo(t,a.b,"end"),l||(a.b?f():--a.group.r||on(a.group.c)),a=null;else if($>=a.start){const _e=$-a.start;s=a.a+a.d*w(_e/a.duration),G(s,1-s)}}return!!(a||l)}))}return{run(p){qr(o)?Ul().then(()=>{o=o({direction:p?"in":"out"}),g(p)}):g(p)},end(){f(),a=l=null}}}function mr(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function qf(t,r){se(t,1,1,()=>{r.delete(t.key)})}function Kf(t,r,e,n,i,o,s,a,l,u,c,f){let _=t.length,g=o.length,p=_;const h={};for(;p--;)h[t[p].key]=p;const v=[],w=new Map,G=new Map,X=[];for(p=g;p--;){const Y=f(i,o,p),Q=e(Y);let ie=s.get(Q);ie?X.push(()=>ie.p(Y,r)):(ie=u(Q,Y),ie.c()),w.set(Q,v[p]=ie),Q in h&&G.set(Q,Math.abs(p-h[Q]))}const B=new Set,$=new Set;function _e(Y){J(Y,1),Y.m(a,c),s.set(Y.key,Y),c=Y.first,g--}for(;_&&g;){const Y=v[g-1],Q=t[_-1],ie=Y.key,D=Q.key;Y===Q?(c=Y.first,_--,g--):w.has(D)?!s.has(ie)||B.has(ie)?_e(Y):$.has(D)?_--:G.get(ie)>G.get(D)?($.add(ie),_e(Y)):(B.add(D),_--):(l(Q,s),_--)}for(;_--;){const Y=t[_];w.has(Y.key)||l(Y,s)}for(;g;)_e(v[g-1]);return on(X),v}function Yi(t,r){const e={},n={},i={$$scope:1};let o=t.length;for(;o--;){const s=t[o],a=r[o];if(a){for(const l in s)l in a||(n[l]=1);for(const l in a)i[l]||(e[l]=a[l],i[l]=1);t[o]=a}else for(const l in s)i[l]=1}for(const s in n)s in e||(e[s]=void 0);return e}function Jf(t){return typeof t=="object"&&t!==null?t:{}}function cr(t){t&&t.c()}function dr(t,r){t&&t.l(r)}function sr(t,r,e){const{fragment:n,after_update:i}=t.$$;n&&n.m(r,e),ei(()=>{const o=t.$$.on_mount.map(Mf).filter(qr);t.$$.on_destroy?t.$$.on_destroy.push(...o):on(o),t.$$.on_mount=[]}),i.forEach(ei)}function lr(t,r){const e=t.$$;e.fragment!==null&&(_h(e.after_update),on(e.on_destroy),e.fragment&&e.fragment.d(r),e.on_destroy=e.fragment=null,e.ctx=[])}function gh(t,r){t.$$.dirty[0]===-1&&(ho.push(t),Uf(),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31}function sn(t,r,e,n,i,o,s=null,a=[-1]){const l=Oo;No(t);const u=t.$$={fragment:null,ctx:[],props:o,update:F,not_equal:i,bound:ha(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(l?l.$$.context:[])),callbacks:ha(),dirty:a,skip_bound:!1,root:r.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=e?e(t,r.props||{},(f,_,...g)=>{const p=g.length?g[0]:_;return u.ctx&&i(u.ctx[f],u.ctx[f]=p)&&(!u.skip_bound&&u.bound[f]&&u.bound[f](p),c&&gh(t,f)),_}):[],u.update(),c=!0,on(u.before_update),u.fragment=n?n(u.ctx):!1,r.target){if(r.hydrate){Zd();const f=Ve(r.target);u.fragment&&u.fragment.l(f),f.forEach(k)}else u.fragment&&u.fragment.c();r.intro&&J(t.$$.fragment),sr(t,r.target,r.anchor),Qd(),Gf()}No(l)}class ln{constructor(){gr(this,"$$");gr(this,"$$set")}$destroy(){lr(this,1),this.$destroy=F}$on(r,e){if(!qr(e))return F;const n=this.$$.callbacks[r]||(this.$$.callbacks[r]=[]);return n.push(e),()=>{const i=n.indexOf(e);i!==-1&&n.splice(i,1)}}$set(r){this.$$set&&!Xd(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}}const ph="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ph);const co=[];function mh(t,r){return{subscribe:gi(t,r).subscribe}}function gi(t,r=F){let e;const n=new Set;function i(a){if(Jd(t,a)&&(t=a,e)){const l=!co.length;for(const u of n)u[1](),co.push(u,t);if(l){for(let u=0;u<co.length;u+=2)co[u][0](co[u+1]);co.length=0}}}function o(a){i(a(t))}function s(a,l=F){const u=[a,l];return n.add(u),n.size===1&&(e=r(i,o)||F),a(t),()=>{n.delete(u),n.size===0&&e&&(e(),e=null)}}return{set:i,update:o,subscribe:s}}function jo(t,r,e){const n=!Array.isArray(t),i=n?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=r.length<2;return mh(e,(s,a)=>{let l=!1;const u=[];let c=0,f=F;const _=()=>{if(c)return;f();const p=r(n?u[0]:u,s,a);o?s(p):f=qr(p)?p:F},g=i.map((p,h)=>H(p,v=>{u[h]=v,c&=~(1<<h),l&&_()},()=>{c|=1<<h}));return l=!0,_(),function(){on(g),f(),l=!1}})}const bh="divkit-6d515",yh="divkit-27458",vh="divkit-82db1",wh="divkit-be734",kh="divkit-9a652",vr={root_platform_desktop:bh,root__clickable:yh,"root__clickable-no-transition":"divkit-3bb57","root__any-actions":"divkit-ba614",root:vh,root__selectable:wh,root__unselectable:kh,"root__only-desktop":"divkit-316e7","root_restrict-scroll":"divkit-0a135","root_disabled-context-menu":"divkit-f5cb3"},yn=Symbol("root");function R(t,r={}){const e=t;return e.level=r.level||"error",r.additional&&(e.additional=r.additional),e}const Eh="divkit-bf0ea",Ah="divkit-bab07",Ch="divkit-07f20",jh="divkit-27458",Sh="divkit-90c49",Vh="divkit-b33bc",Ih="divkit-f6ff9",As={outer:Eh,outer_width_content:Ah,outer_height_content:Ch,root__clickable:jh,"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:Sh,outer_visibility_invisible:Vh,outer_visibility_gone:Ih,"outer_has-action-animation":"divkit-4d4f3","outer_has-custom-focus":"divkit-b630e"};function er(t){if(!t)return;let r="";for(const e in t)if(t.hasOwnProperty(e)){if(!t[e]&&t[e]!==0)continue;r&&(r+=";"),r+=e+":"+String(t[e])}return r||void 0}function Ge(t){if(typeof t!="number"&&typeof t!="string"||!t)return"0";const r=Number(t);return Number.isNaN(r)?"0":Math.ceil(r*1e3)/1e4+"em"}function _n(t){let r=Ge(t);return r==="0"&&(r+="em"),r}function Xf(t,r){for(;t.length<r;)t="0"+t;return t}function Ur(t,r=1,e="transparent"){if(t=(typeof t=="string"&&t||"").toLowerCase(),t.charAt(0)!=="#")return e;const n=ci(t);return n?(n.a*=r,Yl(n)):e}function Dh(t,r,e="transparent"){if(t=(typeof t=="string"&&t||"").toLowerCase(),t.charAt(0)!=="#")return e;const n=ci(t);return n?(n.a=r,Yl(n)):e}function Yl(t){return t.a===255?`#${[t.r,t.g,t.b].map(r=>Xf(Math.round(r).toString(16),2)).join("")}`:`rgba(${t.r},${t.g},${t.b},${(t.a/255).toFixed(2)})`}function ci(t){const r=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(r){if(r.length===5){const[u,c,f,_,g]=r,p=f.length===2?f:f+f,h=_.length===2?_:_+_,v=g.length===2?g:g+g,w=c.length===2?c:c+c;return{a:parseInt(w,16),r:parseInt(p,16),g:parseInt(h,16),b:parseInt(v,16)}}const[e,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 _l(t){let r=String(t);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 Ii=Boolean;function Us(t,r){if(t.length===1&&t[0].type==="solid")return Fh({bg:t[0]});const e=t.map(n=>{if(n.type==="solid")return Th({bg:n});if(n.type==="gradient")return Mh({bg:n});if(n.type==="image")return zh({bg:n,direction:r});if(n.type==="radial_gradient")return Nh({bg:n})}).filter(Ii).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:e.image.join(","),size:e.size.join(","),position:e.position.join(",")}}function Th(t){const r=Ur(t.bg.color||"transparent");return{size:void 0,pos:void 0,image:`linear-gradient(to bottom,${r},${r})`}}function Fh(t){return{color:Ur(t.bg.color||"transparent"),size:"auto",position:"50% 50%"}}function Zf(t){return t.every(n=>n.color&&typeof n.position=="number"&&n.position>=0&&n.position<=1)?t.sort((n,i)=>Math.abs(n.position-i.position)<1e-6?0:n.position-i.position).map(n=>`${Ur(n.color)} ${(n.position*100).toFixed(2)}%`).join(","):void 0}function Mh(t){var n,i,o,s;if(!Array.isArray((n=t.bg)==null?void 0:n.colors)&&!Array.isArray((i=t.bg)==null?void 0:i.color_map))return;const r=(o=t.bg.colors)==null?void 0:o.filter(Ii);if(!(r!=null&&r.length)&&!((s=t.bg)!=null&&s.color_map))return;let e;if(t.bg.color_map){const a=Zf(t.bg.color_map);if(!a)return;e="linear-gradient("+(90-Number(t.bg.angle||0)+"deg")+","+a+")"}else{if(!r)return;e="linear-gradient("+(90-Number(t.bg.angle||0)+"deg")+","+r.map(a=>Ur(a)).join(",")+")"}return{size:void 0,pos:void 0,image:e}}const Ph={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function ka(t){if(t&&typeof t=="object"&&"type"in t&&t.value!==void 0){if(t.type==="fixed")return _n(t.value);if(t.type==="relative")return`${Number(t.value)*100}%`}return"50%"}function Nh(t){var a,l,u,c;if(!Array.isArray((a=t.bg)==null?void 0:a.colors)&&!Array.isArray((l=t.bg)==null?void 0:l.color_map))return;const r=(u=t.bg.colors)==null?void 0:u.filter(Ii);if(!(r!=null&&r.length)&&!((c=t.bg)!=null&&c.color_map))return;let e;if(t.bg.color_map?e=Zf(t.bg.color_map):r&&(e=r.map(f=>Ur(f)).join(",")),!e)return;const n=t.bg.radius;let i;n&&typeof n=="object"&&"type"in n&&n.value!==void 0&&(n.type==="fixed"?i=_n(n.value):n.type==="relative"&&(i=Ph[n.value]));const o=ka(t.bg.center_x),s=ka(t.bg.center_y);return{size:void 0,pos:void 0,image:`radial-gradient(circle ${i||"farthest-corner"} at ${o} ${s},`+e+")"}}function zh(t){var e;const r=(e=t.bg)==null?void 0:e.image_url;if(r)return{size:Qf(t.bg.scale),pos:xf(t.bg,t.direction),image:'url("'+_l(r)+'")'}}function Qf(t){return t==="fit"?"contain":t==="stretch"?"fill":t==="no_scale"?"none":"cover"}function Oh(t){return t==="none"?"auto":t==="fill"?"100% 100%":t}function xf(t,r){let e,n;return t.content_alignment_horizontal==="left"||r==="ltr"&&t.content_alignment_horizontal==="start"||r==="rtl"&&t.content_alignment_horizontal==="end"?e="0%":t.content_alignment_horizontal==="right"||r==="ltr"&&t.content_alignment_horizontal==="end"||r==="rtl"&&t.content_alignment_horizontal==="start"?e="100%":e="50%",t.content_alignment_vertical==="top"?n="0%":t.content_alignment_vertical==="bottom"?n="100%":n="50%",e+" "+n}function fn(t,r){const e=Number(t);return Number.isNaN(e)||e<0?r:e}function Ea(t,r,e){return typeof r=="number"&&(t&&r>0&&r<=100||!t&&r>=0&&r<100)?r:e}function Lh(t){return t.is_enabled!==0&&t.is_enabled!==!1&&t.index!==void 0}function Rh(t,{visibilityActions:r,disappearActions:e,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})}),e&&e.forEach(g=>{o.push({type:"disappear",index:o.length,action:g,visible:!1,count:0,finished:!1})});const s=o.map((g,p)=>{const h=g.type==="visibility";return i.getDerivedFromVars({index:p,visibility_percentage:g.action.visibility_percentage,visibility_duration:h?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)})},u=jo(s,g=>g);let c;const f=g=>{const p=g.type==="visibility";i.execAnyActions([g.action],{logType:p?"visible":"disappear",node:t,processUrls:!1})},_=u.subscribe(g=>{c=g.filter(Lh);const p={};c.forEach(w=>{p[w.index]=w}),l();const h=[...new Set(c.map(w=>{const G=o[w.index].type==="visibility";return Ea(G,w.visibility_percentage,G?50:0)/100}))];if(!h.length)return;const v=w=>{w.forEach(G=>{c.forEach(X=>{const B=o[X.index],$=B.type==="visibility",_e=Ea($,X.visibility_percentage,$?50:0);let Y;_e===0?Y=G.intersectionRatio>=1e-12:Y=G.intersectionRatio>=_e/100,($?!B.visible&&Y:B.visible&&!Y)?B.finished||(B.timer=setTimeout(()=>{++B.count;const D=X.log_limit===0?1/0:X.log_limit||1;B.count>=D&&(B.finished=!0),f(B)},fn(X.visibility_duration,800))):($?!Y:Y)&&B.timer&&clearTimeout(B.timer),B.visible=Y})})};a=new IntersectionObserver(v,{threshold:h}),a.observe(t)});return{destroy(){c==null||c.forEach(g=>{const p=o[g.index];!p||p.type!=="disappear"||!p.visible||p.finished||n.registerTimeout(window.setTimeout(()=>{f(p)},g.visibility_duration))}),l(),_()}}}function Aa(t,r){r&&t.push(r)}function Ft(t,r,e){const n=[];Aa(n,r[t]);for(const i in e)if(e.hasOwnProperty(i)){const o=e[i];if(o){const s=`${t}_${i}`+(typeof o=="string"?`_${o}`:"");Aa(n,r[s])}}return n.join(" ")}const ql=Symbol("state");function vi(t,r){var s,a;const e=t.top||0,n=((s=r==="ltr"?t.end:t.start)!=null?s:t.right)||0,i=t.bottom||0,o=((a=r==="ltr"?t.start:t.end)!=null?a:t.left)||0;return e===0&&n===0&&i===0&&o===0?"":Ge(e)+" "+Ge(n)+" "+Ge(i)+" "+Ge(o)}function So(t){if(typeof t!="number"&&typeof t!="string")return!1;const r=Number(t);return!Number.isNaN(r)}function qn(t){return So(t)&&t>=0}function Cs(t,r,e){var i,o;if(!t)return e;const n=[t.top,(i=r==="ltr"?t.end:t.start)!=null?i:t.right,t.bottom,(o=r==="ltr"?t.start:t.end)!=null?o:t.left];for(let s=0;s<n.length;++s)if(n[s]&&!qn(n[s]))return e;return vi(t,r)}function Bh(t,r){return!qn(t)||t===void 0||t>1?r:Number(t)}const Hh=Object.prototype.hasOwnProperty;function Vo(t,r){if(Object.is(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return Object.is(t,r);const e=Object.keys(t),n=Object.keys(r);if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++){const o=e[i];if(!Hh.call(r,o)||!Vo(t[o],r[o]))return!1}return!0}function Ui(t,r){return Vo(t,r)?r:t}function Wh(t,r){return t==="visible"||t==="invisible"||t==="gone"?t:r}function $f(t,r){return t==="linear"||t==="ease"||t==="ease_in_out"||t==="ease_in"||t==="ease_out"?t:r}function js(t,r){const e=Number(t);return Number.isNaN(e)?r:e}function Lo(t){const r=[];return t.name==="set"?(t.items||[]).forEach(e=>{r.push(...Lo(e))}):r.push(t),r}function Io(t,r){if(!t||typeof t!="object")return r;const e=["top","right","bottom","left"];for(let n=0;n<e.length;++n)if(t[e[n]]&&!qn(t[e[n]]))return r;return t}function Uh(t,r){if(!t&&!r)return{};if(!r)return t;if(!t)return r;const e={};return["top","right","bottom","left","start","end"].forEach(n=>{const i=t[n];i&&(e[n]=i);const o=r[n];o&&(e[n]=(e[n]||0)+o)}),e}function Gh(t,r){const e=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let n=0;n<e.length;++n)if(e[n]&&!qn(e[n]))return r;return t}function ns(t,r=0,e=10){return[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]].map(n=>Ge((n||r)/e*10)).join(" ")}function Yh(t){var r,e,n,i,o,s;return Ge(((e=(r=t.offset)==null?void 0:r.x)==null?void 0:e.value)||0)+" "+Ge(((i=(n=t.offset)==null?void 0:n.y)==null?void 0:i.value)||0)+" "+Ge((o=t.blur)!=null?o:2)+" "+Ur(t.color||"#000000",(s=t.alpha)!=null?s:.19)}function qh(t,r){var e,n,i,o,s,a;return"drop-shadow("+Ur(t.color||"#000000",(e=t.alpha)!=null?e:.19)+" "+Ge((((i=(n=t.offset)==null?void 0:n.x)==null?void 0:i.value)||0)*10/r)+" "+Ge((((s=(o=t.offset)==null?void 0:o.y)==null?void 0:s.value)||0)*10/r)+" "+Ge(((a=t.blur)!=null?a:2)*10/r)+")"}let tl;function yo(){return typeof matchMedia>"u"?!1:(tl||(tl=window.matchMedia("(prefers-reduced-motion)")),tl.matches)}const Kh=8,Jh=(t,r,e,n)=>{let i;return(e||n)&&typeof ResizeObserver<"u"&&(i=new ResizeObserver(async()=>{let o=0;const s={},a=(u,c)=>{if(u){const f=r.getVariable(u,"integer");if(f){if(c=Math.round(c),s[u]||(s[u]=new Set),!s[u].has(c))return f.setValue(c),s[u].add(c),!0}else{const _=new Error("Missing variable");_.level="error",_.additional={variableName:u},r.logError(_)}}return!1},l=()=>{if(!t)return!1;const u=t.getBoundingClientRect(),c=a(e,u.width),f=a(n,u.height);return c||f};for(;l();){if(++o>Kh){const u=new Error("Recursive layout in size_provider");u.level="warn",u.additional={widthVariableName:e,heightVariableName:n},r.logError(u);break}await Mn()}}),i.observe(t)),i},Kl=Symbol("enabled");function Bn(t,r){return t===1||t===0||t===!1||t===!0?!!t:r}function vo(t){return[t.state_description,t.description,t.hint].filter(Boolean).join(", ")}const Ca=1,Gi=2;function ja(t,r=1){if(!(!t||typeof t.value!="number")){if(t.type==="translation-fixed")return Ge(t.value*r);if(t.type==="translation-percentage")return`${t.value*r}%`}}function Yo(t,r=1){if(!(!t||typeof t.value!="number")){if(t.type==="pivot-fixed")return Ge(t.value*r);if(t.type==="pivot-percentage")return`${t.value*r}%`}}function Xh(t){return t.map(r=>{if(r.type==="rotation"){if(typeof r.angle=="number"){const e=Yo(r.pivot_x)||"50%",n=Yo(r.pivot_y)||"50%",i=Yo(r.pivot_x,-1)||"-50%",o=Yo(r.pivot_y,-1)||"-50%";return`translate(${e}, ${n}) rotate(${r.angle}deg) translate(${i}, ${o})`}}else if(r.type==="translation"){const e=ja(r.x)||0,n=ja(r.y)||0;return`translate(${e}, ${n})`}}).filter(Boolean).join(" ")}const gl=Symbol("visibility"),Zh="divkit-ee5cc",Sa={actionable__button:Zh};function Qh(){}const to=Symbol("action");function pl(t){if(t.startsWith("tel:"))return"tel";if(t.startsWith("/"))return"https";const r=/^([^/]+):\/\//.exec(t);return r&&r[1]||""}function ml(t,r){return r.has(t)}function xh(t){var f;let r,e,n,i,o,s;const a=t[30].default,l=Ns(a,t,t[29],null);let u=[{class:e=t[2]+" "+((f=t[1])!=null&&f.length?vr["root_disabled-context-menu"]:"")+" "+(t[13]?vr["root__any-actions"]:"")},{style:t[3]},{role:t[10]},{"aria-checked":t[14]},{"aria-hidden":n=t[11]||void 0},t[4]],c={};for(let _=0;_<u.length;_+=1)c=Li(c,u[_]);return{c(){r=Pe("span"),l&&l.c(),this.h()},l(_){r=Re(_,"SPAN",{class:!0,style:!0,role:!0,"aria-checked":!0,"aria-hidden":!0});var g=Ve(r);l&&l.l(g),g.forEach(k),this.h()},h(){yi(r,c)},m(_,g){x(_,r,g),l&&l.m(r,null),t[48](r),i=!0,o||(s=[Rs(t[5].call(null,r)),Le(r,"click",t[41]),Le(r,"keydown",t[16]),Le(r,"focus",t[42]),Le(r,"blur",t[43]),Le(r,"pointerdown",t[44]),Le(r,"wheel",t[45])],o=!0)},p(_,g){var p;l&&l.p&&(!i||g[0]&536870912)&&Os(l,a,_,_[29],i?zs(a,_[29],g,null):Ls(_[29]),null),yi(r,c=Yi(u,[(!i||g[0]&8198&&e!==(e=_[2]+" "+((p=_[1])!=null&&p.length?vr["root_disabled-context-menu"]:"")+" "+(_[13]?vr["root__any-actions"]:"")))&&{class:e},(!i||g[0]&8)&&{style:_[3]},(!i||g[0]&1024)&&{role:_[10]},(!i||g[0]&16384)&&{"aria-checked":_[14]},(!i||g[0]&2048&&n!==(n=_[11]||void 0))&&{"aria-hidden":n},g[0]&16&&_[4]]))},i(_){i||(J(l,_),i=!0)},o(_){se(l,_),i=!1},d(_){_&&k(r),l&&l.d(_),t[48](null),o=!1,on(s)}}}function $h(t){var f;let r,e,n,i,o,s;const a=t[30].default,l=Ns(a,t,t[29],null);let u=[{class:e=t[2]+" "+Sa.actionable__button+" "+vr["root__any-actions"]+` ${t[6]?vr.root__clickable:vr["root__clickable-no-transition"]} ${vr.root__unselectable} `+((f=t[1])!=null&&f.length?vr["root_disabled-context-menu"]:"")},{style:t[3]},{role:t[10]},{"aria-checked":t[14]},{type:"button"},{tabindex:n=t[0].fakeElement===Gi?-1:null},t[4]],c={};for(let _=0;_<u.length;_+=1)c=Li(c,u[_]);return{c(){r=Pe("button"),l&&l.c(),this.h()},l(_){r=Re(_,"BUTTON",{class:!0,style:!0,role:!0,"aria-checked":!0,type:!0,tabindex:!0});var g=Ve(r);l&&l.l(g),g.forEach(k),this.h()},h(){yi(r,c)},m(_,g){x(_,r,g),l&&l.m(r,null),r.autofocus&&r.focus(),t[47](r),i=!0,o||(s=[Rs(t[5].call(null,r)),Le(r,"click",t[36]),Le(r,"keydown",t[16]),Le(r,"focus",t[37]),Le(r,"blur",t[38]),Le(r,"pointerdown",t[39]),Le(r,"wheel",t[40])],o=!0)},p(_,g){var p;l&&l.p&&(!i||g[0]&536870912)&&Os(l,a,_,_[29],i?zs(a,_[29],g,null):Ls(_[29]),null),yi(r,c=Yi(u,[(!i||g[0]&70&&e!==(e=_[2]+" "+Sa.actionable__button+" "+vr["root__any-actions"]+` ${_[6]?vr.root__clickable:vr["root__clickable-no-transition"]} ${vr.root__unselectable} `+((p=_[1])!=null&&p.length?vr["root_disabled-context-menu"]:"")))&&{class:e},(!i||g[0]&8)&&{style:_[3]},(!i||g[0]&1024)&&{role:_[10]},(!i||g[0]&16384)&&{"aria-checked":_[14]},{type:"button"},(!i||g[0]&1&&n!==(n=_[0].fakeElement===Gi?-1:null))&&{tabindex:n},g[0]&16&&_[4]]))},i(_){i||(J(l,_),i=!0)},o(_){se(l,_),i=!1},d(_){_&&k(r),l&&l.d(_),t[47](null),o=!1,on(s)}}}function e_(t){var f;let r,e,n,i,o,s;const a=t[30].default,l=Ns(a,t,t[29],null);let u=[{href:t[8]},{target:t[12]},{style:t[3]},{role:t[10]},{"aria-checked":t[14]},{class:e=t[2]+" "+vr["root__any-actions"]+" "+(t[6]?vr.root__clickable:vr["root__clickable-no-transition"])+" "+((f=t[1])!=null&&f.length?vr["root_disabled-context-menu"]:"")},{tabindex:n=t[0].fakeElement===Gi?-1:null},t[4]],c={};for(let _=0;_<u.length;_+=1)c=Li(c,u[_]);return{c(){r=Pe("a"),l&&l.c(),this.h()},l(_){r=Re(_,"A",{href:!0,target:!0,style:!0,role:!0,"aria-checked":!0,class:!0,tabindex:!0});var g=Ve(r);l&&l.l(g),g.forEach(k),this.h()},h(){yi(r,c)},m(_,g){x(_,r,g),l&&l.m(r,null),t[46](r),i=!0,o||(s=[Rs(t[5].call(null,r)),Le(r,"click",t[31]),Le(r,"keydown",t[16]),Le(r,"focus",t[32]),Le(r,"blur",t[33]),Le(r,"pointerdown",t[34]),Le(r,"wheel",t[35])],o=!0)},p(_,g){var p;l&&l.p&&(!i||g[0]&536870912)&&Os(l,a,_,_[29],i?zs(a,_[29],g,null):Ls(_[29]),null),yi(r,c=Yi(u,[(!i||g[0]&256)&&{href:_[8]},(!i||g[0]&4096)&&{target:_[12]},(!i||g[0]&8)&&{style:_[3]},(!i||g[0]&1024)&&{role:_[10]},(!i||g[0]&16384)&&{"aria-checked":_[14]},(!i||g[0]&70&&e!==(e=_[2]+" "+vr["root__any-actions"]+" "+(_[6]?vr.root__clickable:vr["root__clickable-no-transition"])+" "+((p=_[1])!=null&&p.length?vr["root_disabled-context-menu"]:"")))&&{class:e},(!i||g[0]&1&&n!==(n=_[0].fakeElement===Gi?-1:null))&&{tabindex:n},g[0]&16&&_[4]]))},i(_){i||(J(l,_),i=!0)},o(_){se(l,_),i=!1},d(_){_&&k(r),l&&l.d(_),t[46](null),o=!1,on(s)}}}function t_(t){let r,e,n,i;const o=[e_,$h,xh],s=[];function a(l,u){return l[8]?0:l[9]?1:2}return r=a(t),e=s[r]=o[r](t),{c(){e.c(),n=tt()},l(l){e.l(l),n=tt()},m(l,u){s[r].m(l,u),x(l,n,u),i=!0},p(l,u){let c=r;r=a(l),r===c?s[r].p(l,u):(kr(),se(s[c],1,1,()=>{s[c]=null}),Er(),e=s[r],e?e.p(l,u):(e=s[r]=o[r](l),e.c()),J(e,1),e.m(n.parentNode,n))},i(l){i||(J(e),i=!0)},o(l){se(e),i=!1},d(l){l&&k(n),s[r].d(l)}}}const Va=8,Ia=400,rl=400,r_=new Set(["button","image","checkbox","radio","header"]);function Da(t){t.preventDefault()}function n_(t,r,e){let n,i,o=F,s=()=>(o(),o=H(n,T=>e(28,i=T)),n);t.$$.on_destroy.push(()=>o());let{$$slots:a={},$$scope:l}=r,{componentContext:u}=r,{id:c=""}=r,{actions:f=void 0}=r,{doubleTapActions:_=void 0}=r,{longTapActions:g=void 0}=r,{pressStartActions:p=void 0}=r,{pressEndActions:h=void 0}=r,{hoverStartActions:v=void 0}=r,{hoverEndActions:w=void 0}=r,{cls:G=""}=r,{style:X=null}=r,{attrs:B=void 0}=r,{use:$=Qh}=r,{customAction:_e=null}=r,{isNativeActionAnimation:Y=!0}=r,{hasInnerFocusable:Q=!1}=r,{customAccessibility:ie=void 0}=r,{captureFocusOnAction:D=!0}=r;const V=xr(yn),M=xr(to);Ni(to,{hasAction(){return!!(M.hasAction()||f!=null&&f.length||(ie==null?void 0:ie.mode)==="exclude")}});let N,pe="",$e,Ae=-1,Ne=-1,le=null,Je=!1,Be=!1,bt=!1,et,at,be,zt,ke=!1;function De(){return(i==null?void 0:i.some(T=>{if(T!=null&&T.typed)return!0;const qe=T==null?void 0:T.url;if(!qe)return!1;const Zt=pl(qe);return Zt&&!ml(Zt,V.getBuiltinProtocols())}))||!1}async function we(T,qe){f&&(T&&De()&&T.preventDefault(),u.execAnyActions(f,{node:N,processUrls:qe}))}async function re(T){if(M.hasAction()||T.button!==void 0&&T.button!==0)return;const qe=Date.now();if(Ae>0&&qe>Ae+Ia){T.preventDefault();return}if(_!=null&&_.length&&Ne>0&&qe-Ne<rl){T.preventDefault(),u.execAnyActions(_,{processUrls:!0,node:N}),Ne=-1;return}if(Ne=qe,_!=null&&_.length&&Ae>0&&qe<Ae+rl){T.preventDefault(),clearTimeout(at),at=window.setTimeout(()=>{we(void 0,!0)},rl);return}(_e==null?void 0:_e(T))===!1?T.preventDefault():we(T,!1)}function Ze(T){M.hasAction()||(le={x:T.clientX,y:T.clientY},Je=!1,Ae=Date.now(),et&&clearTimeout(et),clearTimeout(at),u.execAnyActions(p,{node:N}))}function it(T){le&&(Math.abs(le.x-T.clientX)>Va||Math.abs(le.y-T.clientY)>Va)&&(Je=!0)}function He(T){M.hasAction()||!le||Ae<0||(!Je&&Date.now()-Ae>=Ia&&(T.stopImmediatePropagation(),u.execAnyActions(g,{processUrls:!0,node:N})),et&&clearTimeout(et),et=window.setTimeout(()=>{le=null,Ae=-1},100),u.execAnyActions(h,{node:N}))}function Mt(){M.hasAction()||u.execAnyActions(v,{node:N})}function st(){M.hasAction()||u.execAnyActions(w,{node:N})}function Z(T){const qe=T.target;qe instanceof HTMLElement&&(qe.tagName==="INPUT"||qe.contentEditable==="true")||T.ctrlKey||T.metaKey||T.altKey||T.shiftKey||T.key==="Enter"&&Array.isArray(f)&&f.length&&(u.execAnyActions(f),T.preventDefault())}oi(()=>{c&&!Q&&V.registerFocusable(c,{focus(){N&&(pe||Be)&&N.focus()}})}),Cn(()=>{typeof window<"u"&&(window.removeEventListener("pointermove",it),window.removeEventListener("pointerup",He),window.removeEventListener("pointercancel",He)),c&&!Q&&V.unregisterFocusable(c),et&&clearTimeout(et),at&&clearTimeout(at)});function ut(T){Rn.call(this,t,T)}function Me(T){Rn.call(this,t,T)}function dt(T){Rn.call(this,t,T)}function ht(T){Rn.call(this,t,T)}function tr(T){Rn.call(this,t,T)}function mt(T){Rn.call(this,t,T)}function ge(T){Rn.call(this,t,T)}function Gt(T){Rn.call(this,t,T)}function Pt(T){Rn.call(this,t,T)}function Kt(T){Rn.call(this,t,T)}function q(T){Rn.call(this,t,T)}function pt(T){Rn.call(this,t,T)}function Ie(T){Rn.call(this,t,T)}function ce(T){Rn.call(this,t,T)}function vt(T){Rn.call(this,t,T)}function Bt(T){Lr[T?"unshift":"push"](()=>{N=T,e(7,N)})}function Te(T){Lr[T?"unshift":"push"](()=>{N=T,e(7,N)})}function ze(T){Lr[T?"unshift":"push"](()=>{N=T,e(7,N)})}return t.$$set=T=>{"componentContext"in T&&e(0,u=T.componentContext),"id"in T&&e(17,c=T.id),"actions"in T&&e(18,f=T.actions),"doubleTapActions"in T&&e(19,_=T.doubleTapActions),"longTapActions"in T&&e(1,g=T.longTapActions),"pressStartActions"in T&&e(20,p=T.pressStartActions),"pressEndActions"in T&&e(21,h=T.pressEndActions),"hoverStartActions"in T&&e(22,v=T.hoverStartActions),"hoverEndActions"in T&&e(23,w=T.hoverEndActions),"cls"in T&&e(2,G=T.cls),"style"in T&&e(3,X=T.style),"attrs"in T&&e(4,B=T.attrs),"use"in T&&e(5,$=T.use),"customAction"in T&&e(24,_e=T.customAction),"isNativeActionAnimation"in T&&e(6,Y=T.isNativeActionAnimation),"hasInnerFocusable"in T&&e(25,Q=T.hasInnerFocusable),"customAccessibility"in T&&e(26,ie=T.customAccessibility),"captureFocusOnAction"in T&&e(27,D=T.captureFocusOnAction),"$$scope"in T&&e(29,l=T.$$scope)},t.$$.update=()=>{if(t.$$.dirty[0]&67108864&&e(11,ke=(ie==null?void 0:ie.mode)==="exclude"),t.$$.dirty[0]&262145&&s(e(15,n=u.getDerivedFromVars(f,void 0,!0))),t.$$.dirty[0]&285214977){if(Array.isArray(i)&&(i!=null&&i.length))for(let T=0;T<i.length;++T){const qe=i[T].url;if(qe){e(8,pe=qe),e(12,$e=i[T].target||void 0);break}}e(9,Be=!!_e),(pe||Array.isArray(i)&&(i!=null&&i.length))&&(M.hasAction()||ke)?(e(8,pe=""),u.logError(R(new Error("Actionable element is forbidden inside other actionable element or inside accessibility mode=exlucde"),{level:"warn",additional:{actions:i}}))):pe&&!ml(pl(pe),V.getBuiltinProtocols())?(e(8,pe=""),e(9,Be=!0)):!pe&&Array.isArray(i)&&(i!=null&&i.length)&&(e(9,Be=!0),i.some(T=>T.url||T.typed||T.menu_items)||u.logError(R(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:i}})))}t.$$.dirty[0]&67110656&&(ie!=null&&ie.type&&r_.has(ie.type)?ie.type==="header"?e(10,be="heading"):ie.type==="image"?e(10,be="img"):e(10,be=ie.type):pe?e(10,be=void 0):Be&&e(10,be="button"),(be==="checkbox"||be==="radio")&&typeof(ie==null?void 0:ie.is_checked)=="boolean"?e(14,zt=ie.is_checked):e(14,zt=void 0)),t.$$.dirty[0]&150471554&&N&&(pe||Be||_!=null&&_.length?N.addEventListener("click",re):N.removeEventListener("click",re),_!=null&&_.length||g!=null&&g.length||p!=null&&p.length||h!=null&&h.length?(N.addEventListener("pointerdown",Ze,{passive:!0}),window.addEventListener("pointermove",it,{passive:!0}),window.addEventListener("pointerup",He,{passive:!0}),window.addEventListener("pointercancel",He,{passive:!0})):(N.removeEventListener("pointerdown",Ze),window.removeEventListener("pointerup",He),window.removeEventListener("pointermove",it),window.removeEventListener("pointercancel",He)),v!=null&&v.length?N.addEventListener("pointerenter",Mt):N.removeEventListener("pointerenter",Mt),w!=null&&w.length?N.addEventListener("pointerleave",st):N.removeEventListener("pointerleave",st),D===!1?N.addEventListener("mousedown",Da):N.removeEventListener("mousedown",Da),e(13,bt=!!(pe||Be||_!=null&&_.length||g!=null&&g.length||p!=null&&p.length||h!=null&&h.length||v!=null&&v.length||w!=null&&w.length)))},[u,g,G,X,B,$,Y,N,pe,Be,be,ke,$e,bt,zt,n,Z,c,f,_,p,h,v,w,_e,Q,ie,D,i,l,a,ut,Me,dt,ht,tr,mt,ge,Gt,Pt,Kt,q,pt,Ie,ce,vt,Bt,Te,ze]}class Gs extends ln{constructor(r){super(),sn(this,r,n_,t_,Gr,{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 Qn(t){return So(t)&&t>0}function ed(t,r){return t.map(e=>{if(!e){r(R(new Error("Incorrect filter"),{level:"warn"}));return}if(e.type==="blur"){if(Qn(e.radius))return`blur(${_n(e.radius/2)})`}else{if(e.type==="rtl_mirror")return;r(R(new Error("Unknown filter"),{level:"warn",additional:{filter:e.type}}))}}).filter(Boolean).join(" ")}function Ta(t,r,e){const n=t.slice();return n[6]=r[e],n}function i_(t){let r,e;return{c(){r=Pe("span"),this.h()},l(n){r=Re(n,"SPAN",{class:!0,style:!0}),Ve(r).forEach(k),this.h()},h(){b(r,"class",$i["outer-background__item"]),b(r,"style",e=er(t[6].style))},m(n,i){x(n,r,i)},p(n,i){i&2&&e!==(e=er(n[6].style))&&b(r,"style",e)},d(n){n&&k(r)}}}function o_(t){let r,e,n,i,o;return{c(){r=Pe("img"),this.h()},l(s){r=Re(s,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){bi(r.src,e=t[6].image_url)||b(r,"src",e),b(r,"alt",""),b(r,"aria-hidden","true"),b(r,"loading","lazy"),b(r,"decoding","async"),b(r,"class",$i["outer-background__item"]),b(r,"style",n=er(t[6].style))},m(s,a){x(s,r,a),i||(o=Le(r,"error",t[2]),i=!0)},p(s,a){a&2&&!bi(r.src,e=s[6].image_url)&&b(r,"src",e),a&2&&n!==(n=er(s[6].style))&&b(r,"style",n)},d(s){s&&k(r),i=!1,o()}}}function Fa(t){let r;function e(o,s){return o[6].image_url?o_:i_}let n=e(t),i=n(t);return{c(){i.c(),r=tt()},l(o){i.l(o),r=tt()},m(o,s){i.m(o,s),x(o,r,s)},p(o,s){n===(n=e(o))&&i?i.p(o,s):(i.d(1),i=n(o),i&&(i.c(),i.m(r.parentNode,r)))},d(o){o&&k(r),i.d(o)}}}function s_(t){let r,e,n=mr(t[1]),i=[];for(let o=0;o<n.length;o+=1)i[o]=Fa(Ta(t,n,o));return{c(){r=Pe("span");for(let o=0;o<i.length;o+=1)i[o].c();this.h()},l(o){r=Re(o,"SPAN",{class:!0});var s=Ve(r);for(let a=0;a<i.length;a+=1)i[a].l(s);s.forEach(k),this.h()},h(){b(r,"class",e=$i["outer-background"]+(t[0]?" "+$i["outer-background_clip"]:"")),W(r,"border-radius",t[0])},m(o,s){x(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=mr(o[1]);let a;for(a=0;a<n.length;a+=1){const l=Ta(o,n,a);i[a]?i[a].p(l,s):(i[a]=Fa(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&&e!==(e=$i["outer-background"]+(o[0]?" "+$i["outer-background_clip"]:""))&&b(r,"class",e),s&1&&W(r,"border-radius",o[0])},i:F,o:F,d(o){o&&k(r),An(i,o)}}}function l_(t,r,e){let n,{direction:i}=r,{componentContext:o}=r,{background:s=[]}=r,{radius:a=""}=r;function l(u){u.target&&"classList"in u.target&&u.target.classList.add($i["outer-background__item_hidden"])}return t.$$set=u=>{"direction"in u&&e(3,i=u.direction),"componentContext"in u&&e(4,o=u.componentContext),"background"in u&&e(5,s=u.background),"radius"in u&&e(0,a=u.radius)},t.$$.update=()=>{t.$$.dirty&56&&e(1,n=s.map(u=>{const c={},f={style:c};if(u.type==="nine_patch_image"&&u.insets)c["border-image"]=`url("${u.image_url}") ${u.insets.top||0} ${u.insets.right||0} ${u.insets.bottom||0} ${u.insets.left||0} fill`,c["border-image-width"]="auto";else{const _=Us([u],i);u.type==="solid"&&(c["background-color"]=_.color),u.type==="gradient"&&(c["background-image"]=_.image),u.type==="image"&&(c.opacity=Number(u.alpha),f.image_url=u.image_url,c["object-fit"]=_.size,c["object-position"]=_.position,Array.isArray(u.filters)&&u.filters.length&&(c.filter=ed(u.filters,o.logError),i==="rtl"&&u.filters.some(g=>g.type==="rtl_mirror")&&(c.transform="scale(-1,1)")))}return f}))},[a,n,l,i,o,s]}class a_ extends ln{constructor(r){super(),sn(this,r,l_,s_,Gr,{direction:3,componentContext:4,background:5,radius:0})}}const u_=t=>({hasCustomFocus:t[0]&65536,widthMin:t[0]&32,widthMax:t[0]&64,heightMin:t[0]&128,heightMax:t[0]&256}),Ma=t=>({focusHandler:t[49],blurHandler:t[50],hasCustomFocus:t[16],widthMin:t[5],widthMax:t[6],heightMin:t[7],heightMax:t[8]});function Pa(t){let r,e;return r=new Gs({props:{componentContext:t[0],id:t[0].json.id,use:t[48],cls:t[1]+" "+Ft("outer",As,t[28]),style:er(t[27]),actions:t[23],doubleTapActions:t[24],longTapActions:t[25],pressStartActions:t[11],pressEndActions:t[12],hoverStartActions:t[13],hoverEndActions:t[14],attrs:t[19],hasInnerFocusable:t[2],isNativeActionAnimation:!t[15].length||Oa(t[15]),customAccessibility:t[18],captureFocusOnAction:t[26],$$slots:{default:[c_]},$$scope:{ctx:t}}}),r.$on("focus",t[49]),r.$on("blur",t[50]),r.$on("pointerdown",t[126]),r.$on("wheel",t[127]),{c(){cr(r.$$.fragment)},l(n){dr(r.$$.fragment,n)},m(n,i){sr(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&1&&(o.id=n[0].json.id),i[0]&268435458&&(o.cls=n[1]+" "+Ft("outer",As,n[28])),i[0]&134217728&&(o.style=er(n[27])),i[0]&8388608&&(o.actions=n[23]),i[0]&16777216&&(o.doubleTapActions=n[24]),i[0]&33554432&&(o.longTapActions=n[25]),i[0]&2048&&(o.pressStartActions=n[11]),i[0]&4096&&(o.pressEndActions=n[12]),i[0]&8192&&(o.hoverStartActions=n[13]),i[0]&16384&&(o.hoverEndActions=n[14]),i[0]&524288&&(o.attrs=n[19]),i[0]&4&&(o.hasInnerFocusable=n[2]),i[0]&32768&&(o.isNativeActionAnimation=!n[15].length||Oa(n[15])),i[0]&262144&&(o.customAccessibility=n[18]),i[0]&67108864&&(o.captureFocusOnAction=n[26]),i[0]&1247225|i[4]&16&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(J(r.$$.fragment,n),e=!0)},o(n){se(r.$$.fragment,n),e=!1},d(n){lr(r,n)}}}function Na(t){let r,e;return r=new a_({props:{componentContext:t[0],direction:t[17],background:t[9],radius:t[4]}}),{c(){cr(r.$$.fragment)},l(n){dr(r.$$.fragment,n)},m(n,i){sr(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&131072&&(o.direction=n[17]),i[0]&512&&(o.background=n[9]),i[0]&16&&(o.radius=n[4]),r.$set(o)},i(n){e||(J(r.$$.fragment,n),e=!0)},o(n){se(r.$$.fragment,n),e=!1},d(n){lr(r,n)}}}function za(t){let r,e;return{c(){r=Pe("span"),this.h()},l(n){r=Re(n,"SPAN",{class:!0,style:!0}),Ve(r).forEach(k),this.h()},h(){b(r,"class",As.outer__border),b(r,"style",e=er(t[3]))},m(n,i){x(n,r,i)},p(n,i){i[0]&8&&e!==(e=er(n[3]))&&b(r,"style",e)},d(n){n&&k(r)}}}function c_(t){let r,e,n,i=t[10]&&Na(t);const o=t[125].default,s=Ns(o,t,t[128],Ma);let a=t[20]&&za(t);return{c(){i&&i.c(),r=tt(),s&&s.c(),a&&a.c(),e=tt()},l(l){i&&i.l(l),r=tt(),s&&s.l(l),a&&a.l(l),e=tt()},m(l,u){i&&i.m(l,u),x(l,r,u),s&&s.m(l,u),a&&a.m(l,u),x(l,e,u),n=!0},p(l,u){l[10]?i?(i.p(l,u),u[0]&1024&&J(i,1)):(i=Na(l),i.c(),J(i,1),i.m(r.parentNode,r)):i&&(kr(),se(i,1,1,()=>{i=null}),Er()),s&&s.p&&(!n||u[0]&66016|u[4]&16)&&Os(s,o,l,l[128],n?zs(o,l[128],u,u_):Ls(l[128]),Ma),l[20]?a?a.p(l,u):(a=za(l),a.c(),a.m(e.parentNode,e)):a&&(a.d(1),a=null)},i(l){n||(J(i),J(s,l),n=!0)},o(l){se(i),se(s,l),n=!1},d(l){l&&(k(r),k(e)),i&&i.d(l),s&&s.d(l),a&&a.d(l)}}}function f_(t){let r,e,n=!t[21]&&!t[22]&&Pa(t);return{c(){n&&n.c(),r=tt()},l(i){n&&n.l(i),r=tt()},m(i,o){n&&n.m(i,o),x(i,r,o),e=!0},p(i,o){!i[21]&&!i[22]?n?(n.p(i,o),o[0]&6291456&&J(n,1)):(n=Pa(i),n.c(),J(n,1),n.m(r.parentNode,r)):n&&(kr(),se(n,1,1,()=>{n=null}),Er())},i(i){e||(J(n),e=!0)},o(i){se(n),e=!1},d(i){i&&k(r),n&&n.d(i)}}}const d_={left:"start",center:"center",right:"end",start:"start",end:"end"},h_={left:"end",center:"center",right:"start",start:"start",end:"end"},__={top:"start",center:"center",bottom:"end",baseline:"baseline"},nl=t=>`The component id with the "${t}" property for state change is missing. Either specify the id, or specify the "transition_trigger" property without "state_change" value.`;function Oa(t){return t.some(r=>r.name==="native")}function g_(t,r,e){let n,i,o,s,a,l,u,c,f,_,g,p,h,v,w,G,X,B,$,_e,Y,Q,ie,D,V,M=F,N=()=>(M(),M=H(w,Fe=>e(108,V=Fe)),w),pe,$e=F,Ae=()=>($e(),$e=H(G,Fe=>e(109,pe=Fe)),G),Ne,le,Je=F,Be=()=>(Je(),Je=H(v,Fe=>e(111,le=Fe)),v),bt,et=F,at=()=>(et(),et=H(X,Fe=>e(112,bt=Fe)),X),be,zt=F,ke=()=>(zt(),zt=H(h,Fe=>e(113,be=Fe)),h),De,we,re=F,Ze=()=>(re(),re=H(p,Fe=>e(114,we=Fe)),p),it,He=F,Mt=()=>(He(),He=H(i,Fe=>e(115,it=Fe)),i),st,Z=F,ut=()=>(Z(),Z=H(g,Fe=>e(18,st=Fe)),g),Me,dt=F,ht=()=>(dt(),dt=H(_,Fe=>e(116,Me=Fe)),_),tr,mt=F,ge=()=>(mt(),mt=H(f,Fe=>e(117,tr=Fe)),f),Gt,Pt=F,Kt=()=>(Pt(),Pt=H(c,Fe=>e(118,Gt=Fe)),c),q,pt=F,Ie=()=>(pt(),pt=H(a,Fe=>e(119,q=Fe)),a),ce,vt=F,Bt=()=>(vt(),vt=H(u,Fe=>e(120,ce=Fe)),u),Te,ze=F,T=()=>(ze(),ze=H(l,Fe=>e(121,Te=Fe)),l),qe,Zt=F,ct=()=>(Zt(),Zt=H(s,Fe=>e(122,qe=Fe)),s),Dt,Jt=F,ve=()=>(Jt(),Jt=H(o,Fe=>e(123,Dt=Fe)),o),At;t.$$.on_destroy.push(()=>M()),t.$$.on_destroy.push(()=>$e()),t.$$.on_destroy.push(()=>Je()),t.$$.on_destroy.push(()=>et()),t.$$.on_destroy.push(()=>zt()),t.$$.on_destroy.push(()=>re()),t.$$.on_destroy.push(()=>He()),t.$$.on_destroy.push(()=>Z()),t.$$.on_destroy.push(()=>dt()),t.$$.on_destroy.push(()=>mt()),t.$$.on_destroy.push(()=>Pt()),t.$$.on_destroy.push(()=>pt()),t.$$.on_destroy.push(()=>vt()),t.$$.on_destroy.push(()=>ze()),t.$$.on_destroy.push(()=>Zt())