@divkitframework/divkit 31.1.0 → 31.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/client-devtool.js +1 -1
- package/dist/browser/client-hydratable.js +12 -12
- package/dist/browser/client-hydratable.js.map +1 -1
- package/dist/browser/client.js +1 -1
- package/dist/client-devtool.js +1 -1
- package/dist/client-hydratable.js +13 -13
- package/dist/client-hydratable.js.map +1 -1
- package/dist/client.js +1 -1
- package/dist/esm/client-devtool.mjs +1 -1
- package/dist/esm/client-hydratable.mjs +12176 -10838
- package/dist/esm/client-hydratable.mjs.map +1 -1
- package/dist/esm/client.mjs +1 -1
- package/dist/esm/server.mjs +1 -1
- package/dist/server.js +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
DivKit v31.
|
|
2
|
+
DivKit v31.2.0
|
|
3
3
|
https://github.com/divkit/divkit
|
|
4
4
|
@licence Apache-2.0
|
|
5
|
-
*/(function(){"use strict";var
|
|
6
|
-
`;for(let
|
|
7
|
-
`}const u=c+`100% {${s(
|
|
8
|
-
}`,f=`__svelte_${id(u)}_${l}`,_=Jl(e),{stylesheet:m,rules:y}=Lo.get(_)||od(_,e);y[f]||(y[f]=!0,m.insertRule(`@keyframes ${f} ${u}`,m.cssRules.length));const h=e.style.animation||"";return e.style.animation=`${h?`${h}, `:""}${f} ${n}ms linear ${i}ms 1 both`,Bo+=1,f}function Wo(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(", "),Bo-=i,Bo||sd())}function sd(){Os(()=>{Bo||(Lo.forEach(e=>{const{ownerNode:r}=e.stylesheet;r&&re(r)}),Lo.clear())})}let mo;function bo(e){mo=e}function eo(){if(!mo)throw new Error("Function called outside component initialization");return mo}function Xn(e){eo().$$.on_mount.push(e)}function Uo(e){eo().$$.after_update.push(e)}function on(e){eo().$$.on_destroy.push(e)}function ld(){const e=eo();return(r,t,{cancelable:n=!1}={})=>{const i=e.$$.callbacks[r];if(i){const o=Zl(r,t,{cancelable:n});return i.slice().forEach(s=>{s.call(e,o)}),!o.defaultPrevented}return!0}}function Oi(e,r){return eo().$$.context.set(e,r),r}function Wr(e){return eo().$$.context.get(e)}function mi(e,r){const t=e.$$.callbacks[r.type];t&&t.slice().forEach(n=>n.call(this,r))}const to=[],Tr=[];let ro=[];const xl=[],$l=Promise.resolve();let Ls=!1;function ea(){Ls||(Ls=!0,$l.then(ta))}function gn(){return ea(),$l}function Fn(e){ro.push(e)}const Bs=new Set;let no=0;function ta(){if(no!==0)return;const e=mo;do{try{for(;no<to.length;){const r=to[no];no++,bo(r),ad(r.$$)}}catch(r){throw to.length=0,no=0,r}for(bo(null),to.length=0,no=0;Tr.length;)Tr.pop()();for(let r=0;r<ro.length;r+=1){const t=ro[r];Bs.has(t)||(Bs.add(t),t())}ro.length=0}while(to.length);for(;xl.length;)xl.pop()();Ls=!1,Bs.clear(),bo(e)}function ad(e){if(e.fragment!==null){e.update(),Hr(e.before_update);const r=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,r),e.after_update.forEach(Fn)}}function cd(e){const r=[],t=[];ro.forEach(n=>e.indexOf(n)===-1?r.push(n):t.push(n)),t.forEach(n=>n()),ro=r}let yo;function Hs(){return yo||(yo=Promise.resolve(),yo.then(()=>{yo=null})),yo}function Ri(e,r,t){e.dispatchEvent(Zl(`${r?"intro":"outro"}${t}`))}const Go=new Set;let ii;function tr(){ii={r:0,c:[],p:ii}}function rr(){ii.r||Hr(ii.c),ii=ii.p}function B(e,r){e&&e.i&&(Go.delete(e),e.i(r))}function $(e,r,t,n){if(e&&e.o){if(Go.has(e))return;Go.add(e),ii.c.push(()=>{Go.delete(e),n&&(t&&e.d(1),n())}),e.o(r)}else n&&n()}const Ws={duration:0};function Us(e,r,t){const n={direction:"in"};let i=r(e,t,n),o=!1,s,l,a=0;function c(){s&&Wo(e,s)}function u(){const{delay:_=0,duration:m=300,easing:y=Ln,tick:h=C,css:w}=i||Ws;w&&(s=Ho(e,0,1,m,_,y,w,a++)),h(0,1);const v=zs()+_,R=v+m;l&&l.abort(),o=!0,Fn(()=>Ri(e,!0,"start")),l=Rs(N=>{if(o){if(N>=R)return h(1,0),Ri(e,!0,"end"),c(),o=!1;if(N>=v){const V=y((N-v)/m);h(V,1-V)}}return o})}let f=!1;return{start(){f||(f=!0,Wo(e),vr(i)?(i=i(n),Hs().then(u)):u())},invalidate(){f=!1},end(){o&&(c(),o=!1)}}}function ud(e,r,t){const n={direction:"out"};let i=r(e,t,n),o=!0,s;const l=ii;l.r+=1;let a;function c(){const{delay:u=0,duration:f=300,easing:_=Ln,tick:m=C,css:y}=i||Ws;y&&(s=Ho(e,1,0,f,u,_,y));const h=zs()+u,w=h+f;Fn(()=>Ri(e,!1,"start")),"inert"in e&&(a=e.inert,e.inert=!0),Rs(v=>{if(o){if(v>=w)return m(0,1),Ri(e,!1,"end"),--l.r||Hr(l.c),!1;if(v>=h){const R=_((v-h)/f);m(1-R,R)}}return o})}return vr(i)?Hs().then(()=>{i=i(n),c()}):c(),{end(u){u&&"inert"in e&&(e.inert=a),u&&i.tick&&i.tick(1,0),o&&(s&&Wo(e,s),o=!1)}}}function ra(e,r,t,n){let o=r(e,t,{direction:"both"}),s=n?0:1,l=null,a=null,c=null,u;function f(){c&&Wo(e,c)}function _(y,h){const w=y.b-s;return h*=Math.abs(w),{a:s,b:y.b,d:w,duration:h,start:y.start,end:y.start+h,group:y.group}}function m(y){const{delay:h=0,duration:w=300,easing:v=Ln,tick:R=C,css:N}=o||Ws,V={start:zs()+h,b:y};y||(V.group=ii,ii.r+=1),"inert"in e&&(y?u!==void 0&&(e.inert=u):(u=e.inert,e.inert=!0)),l||a?a=V:(N&&(f(),c=Ho(e,s,y,w,h,v,N)),y&&R(0,1),l=_(V,w),Fn(()=>Ri(e,y,"start")),Rs(D=>{if(a&&D>a.start&&(l=_(a,w),a=null,Ri(e,l.b,"start"),N&&(f(),c=Ho(e,s,l.b,l.duration,0,v,o.css))),l){if(D>=l.end)R(s=l.b,1-s),Ri(e,l.b,"end"),a||(l.b?f():--l.group.r||Hr(l.group.c)),l=null;else if(D>=l.start){const te=D-l.start;s=l.a+l.d*v(te/l.duration),R(s,1-s)}}return!!(l||a)}))}return{run(y){vr(o)?Hs().then(()=>{o=o({direction:y?"in":"out"}),m(y)}):m(y)},end(){f(),l=a=null}}}function nr(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function na(e,r){$(e,1,1,()=>{r.delete(e.key)})}function ia(e,r,t,n,i,o,s,l,a,c,u,f){let _=e.length,m=o.length,y=_;const h={};for(;y--;)h[e[y].key]=y;const w=[],v=new Map,R=new Map,N=[];for(y=m;y--;){const F=f(i,o,y),Y=t(F);let X=s.get(Y);X?N.push(()=>X.p(F,r)):(X=c(Y,F),X.c()),v.set(Y,w[y]=X),Y in h&&R.set(Y,Math.abs(y-h[Y]))}const V=new Set,D=new Set;function te(F){B(F,1),F.m(l,u),s.set(F.key,F),u=F.first,m--}for(;_&&m;){const F=w[m-1],Y=e[_-1],X=F.key,H=Y.key;F===Y?(u=F.first,_--,m--):v.has(H)?!s.has(X)||V.has(X)?te(F):D.has(H)?_--:R.get(X)>R.get(H)?(D.add(X),te(F)):(V.add(H),_--):(a(Y,s),_--)}for(;_--;){const F=e[_];v.has(F.key)||a(F,s)}for(;m;)te(w[m-1]);return Hr(N),w}function io(e,r){const t={},n={},i={$$scope:1};let o=e.length;for(;o--;){const s=e[o],l=r[o];if(l){for(const a in s)a in l||(n[a]=1);for(const a in l)i[a]||(t[a]=l[a],i[a]=1);e[o]=l}else for(const a in s)i[a]=1}for(const s in n)s in t||(t[s]=void 0);return t}function Bt(e){e&&e.c()}function Pt(e,r,t){const{fragment:n,after_update:i}=e.$$;n&&n.m(r,t),Fn(()=>{const o=e.$$.on_mount.map(Bl).filter(vr);e.$$.on_destroy?e.$$.on_destroy.push(...o):Hr(o),e.$$.on_mount=[]}),i.forEach(Fn)}function Nt(e,r){const t=e.$$;t.fragment!==null&&(cd(t.after_update),Hr(t.on_destroy),t.fragment&&t.fragment.d(r),t.on_destroy=t.fragment=null,t.ctx=[])}function fd(e,r){e.$$.dirty[0]===-1&&(to.push(e),ea(),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31}function zr(e,r,t,n,i,o,s=null,l=[-1]){const a=mo;bo(e);const c=e.$$={fragment:null,ctx:[],props:o,update:C,not_equal:i,bound:Hl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(a?a.$$.context:[])),callbacks:Hl(),dirty:l,skip_bound:!1,root:r.target||a.$$.root};s&&s(c.root);let u=!1;if(c.ctx=t?t(e,r.props||{},(f,_,...m)=>{const y=m.length?m[0]:_;return c.ctx&&i(c.ctx[f],c.ctx[f]=y)&&(!c.skip_bound&&c.bound[f]&&c.bound[f](y),u&&fd(e,f)),_}):[],c.update(),u=!0,Hr(c.before_update),c.fragment=n?n(c.ctx):!1,r.target){if(r.hydrate){const f=rd(r.target);c.fragment&&c.fragment.l(f),f.forEach(re)}else c.fragment&&c.fragment.c();r.intro&&B(e.$$.fragment),Pt(e,r.target,r.anchor),ta()}bo(a)}class Or{constructor(){gr(this,"$$");gr(this,"$$set")}$destroy(){Nt(this,1),this.$destroy=C}$on(r,t){if(!vr(t))return C;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&&!Xf(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}}const dd="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(dd);const oo=[];function _d(e,r){return{subscribe:oi(e,r).subscribe}}function oi(e,r=C){let t;const n=new Set;function i(l){if(Kf(e,l)&&(e=l,t)){const a=!oo.length;for(const c of n)c[1](),oo.push(c,e);if(a){for(let c=0;c<oo.length;c+=2)oo[c][0](oo[c+1]);oo.length=0}}}function o(l){i(l(e))}function s(l,a=C){const c=[l,a];return n.add(c),n.size===1&&(t=r(i,o)||C),l(e),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:i,update:o,subscribe:s}}function Li(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 _d(t,(s,l)=>{let a=!1;const c=[];let u=0,f=C;const _=()=>{if(u)return;f();const y=r(n?c[0]:c,s,l);o?s(y):f=vr(y)?y:C},m=i.map((y,h)=>M(y,w=>{c[h]=w,u&=~(1<<h),a&&_()},()=>{u|=1<<h}));return a=!0,_(),function(){Hr(m),f(),a=!1}})}const xt={root_platform_desktop:"divkit-6d515",root__clickable:"divkit-27458","root__clickable-no-transition":"divkit-3bb57",root:"divkit-82db1","root__any-actions":"divkit-3b9c1",root__selectable:"divkit-be734",root__unselectable:"divkit-9a652","root__only-desktop":"divkit-316e7","root_restrict-scroll":"divkit-0a135","root_disabled-context-menu":"divkit-f5cb3"},Xr=Symbol("root");function Q(e,r={}){const t=e;return t.level=r.level||"error",r.additional&&(t.additional=r.additional),t}const Yo={outer:"divkit-bf0ea",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_content:"divkit-05991",outer_height_content:"divkit-80cac","outer_width-constrained":"divkit-5bdb7","outer_parent-grid":"divkit-47ef2","outer_height-constrained":"divkit-351c8","outer_parent-overlap":"divkit-747b0","outer_scroll-snap_center":"divkit-c525d","outer_scroll-snap_start":"divkit-91fd4",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 Ct(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 we(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 pn(e){let r=we(e);return r==="0"&&(r+="em"),r}function oa(e,r){for(;e.length<r;)e="0"+e;return e}function Cr(e,r=1,t="transparent"){if(e=(typeof e=="string"&&e||"").toLowerCase(),e.charAt(0)!=="#")return t;const n=bi(e);return n?(n.a*=r,Gs(n)):t}function hd(e,r,t="transparent"){if(e=(typeof e=="string"&&e||"").toLowerCase(),e.charAt(0)!=="#")return t;const n=bi(e);return n?(n.a=r,Gs(n)):t}function Gs(e){return e.a===255?`#${[e.r,e.g,e.b].map(r=>oa(Math.round(r).toString(16),2)).join("")}`:`rgba(${e.r},${e.g},${e.b},${(e.a/255).toFixed(2)})`}function bi(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,f,_,m]=r,y=f.length===2?f:f+f,h=_.length===2?_:_+_,w=m.length===2?m:m+m,v=u.length===2?u:u+u;return{a:parseInt(v,16),r:parseInt(y,16),g:parseInt(h,16),b:parseInt(w,16)}}const[t,n,i,o]=r,s=n.length===2?n:n+n,l=i.length===2?i:i+i,a=o.length===2?o:o+o;return{a:255,r:parseInt(s,16),g:parseInt(l,16),b:parseInt(a,16)}}return null}function Ys(e){let r=String(e);return r.indexOf("&")>-1&&(r=r.replace(/&/g,"&")),r.indexOf("<")>-1&&(r=r.replace(/</g,"<")),r.indexOf(">")>-1&&(r=r.replace(/>/g,">")),r.indexOf('"')>-1&&(r=r.replace(/"/g,""")),r}const yi=Boolean;function Jo(e){if(e.length===1&&e[0].type==="solid")return pd({bg:e[0]});const r=e.map(t=>{if(t.type==="solid")return gd({bg:t});if(t.type==="gradient")return md({bg:t});if(t.type==="image")return wd({bg:t});if(t.type==="radial_gradient")return yd({bg:t})}).filter(yi).reverse().reduce(function(t,n){return t.image.push(n.image),t.size.push(n.size||"auto"),t.position.push(n.pos||"50% 50%"),t},{image:[],size:[],position:[]});return{image:r.image.join(","),size:r.size.join(","),position:r.position.join(",")}}function gd(e){const r=Cr(e.bg.color||"transparent");return{size:void 0,pos:void 0,image:`linear-gradient(to bottom,${r},${r})`}}function pd(e){return{color:Cr(e.bg.color||"transparent"),size:"auto",position:"50% 50%"}}function md(e){var t;if(!Array.isArray((t=e.bg)==null?void 0:t.colors))return;const r=e.bg.colors.filter(yi);if(r.length)return{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(e.bg.angle||0)+"deg")+","+r.map(n=>Cr(n)).join(",")+")"}}const bd={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function sa(e){if(e&&typeof e=="object"&&"type"in e&&e.value!==void 0){if(e.type==="fixed")return pn(e.value);if(e.type==="relative")return`${Number(e.value)*100}%`}return"50%"}function yd(e){var s;if(!Array.isArray((s=e.bg)==null?void 0:s.colors))return;const r=e.bg.colors.filter(yi);if(!r.length)return;const t=e.bg.radius;let n;t&&typeof t=="object"&&"type"in t&&t.value!==void 0&&(t.type==="fixed"?n=pn(t.value):t.type==="relative"&&(n=bd[t.value]));const i=sa(e.bg.center_x),o=sa(e.bg.center_y);return{size:void 0,pos:void 0,image:`radial-gradient(circle ${n||"farthest-corner"} at ${i} ${o},`+r.map(l=>Cr(l)).join(",")+")"}}function wd(e){var t;const r=(t=e.bg)==null?void 0:t.image_url;if(r)return{size:la(e.bg.scale),pos:aa(e.bg),image:'url("'+Ys(r)+'")'}}function la(e){return e==="fit"?"contain":e==="stretch"?"fill":e==="no_scale"?"none":"cover"}function aa(e){let r,t;return e.content_alignment_horizontal==="left"?r="0%":e.content_alignment_horizontal==="right"?r="100%":r="50%",e.content_alignment_vertical==="top"?t="0%":e.content_alignment_vertical==="bottom"?t="100%":t="50%",r+" "+t}function Ur(e,r){const t=Number(e);return Number.isNaN(t)||t<0?r:t}function ca(e,r,t){return typeof r=="number"&&(e&&r>0&&r<=100||!e&&r>=0&&r<100)?r:t}function vd(e){return e.is_enabled!==0&&e.is_enabled!==!1&&e.index!==void 0}function kd(e,{visibilityActions:r,disappearActions:t,rootCtx:n,componentContext:i}){const o=[];r&&r.forEach(m=>{o.push({type:"visibility",index:o.length,action:m,visible:!1,count:0,finished:!1})}),t&&t.forEach(m=>{o.push({type:"disappear",index:o.length,action:m,visible:!1,count:0,finished:!1})});const s=o.map((m,y)=>{const h=m.type==="visibility";return i.getDerivedFromVars({index:y,visibility_percentage:m.action.visibility_percentage,visibility_duration:h?m.action.visibility_duration:m.action.disappear_duration,log_limit:m.action.log_limit,is_enabled:m.action.is_enabled})});let l;const a=()=>{l&&l.disconnect(),o.forEach(m=>{m.timer&&clearTimeout(m.timer)})},c=Li(s,m=>m);let u;const f=m=>{const y=m.type==="visibility",h=i.getJsonWithVars(m.action);i.execAnyActions([h],{logType:y?"visible":"disappear",node:e,processUrls:!1})},_=c.subscribe(m=>{u=m.filter(vd);const y={};u.forEach(v=>{y[v.index]=v}),a();const h=[...new Set(u.map(v=>{const R=o[v.index].type==="visibility";return ca(R,v.visibility_percentage,R?50:0)/100}))];if(!h.length)return;const w=v=>{v.forEach(R=>{u.forEach(N=>{const V=o[N.index],D=V.type==="visibility",te=ca(D,N.visibility_percentage,D?50:0);let F;te===0?F=R.intersectionRatio>=1e-12:F=R.intersectionRatio>=te/100,(D?!V.visible&&F:V.visible&&!F)?V.finished||(V.timer=setTimeout(()=>{++V.count;const H=N.log_limit===0?1/0:N.log_limit||1;++V.count>=H&&(V.finished=!0),f(V)},Ur(N.visibility_duration,800))):(D?!F:F)&&V.timer&&clearTimeout(V.timer),V.visible=F})})};l=new IntersectionObserver(w,{threshold:h}),l.observe(e)});return{destroy(){u==null||u.forEach(m=>{const y=o[m.index];!y||y.type!=="disappear"||!y.visible||y.finished||n.registerTimeout(window.setTimeout(()=>{f(y)},m.visibility_duration))}),a(),_()}}}function ua(e,r){r&&e.push(r)}function gt(e,r,t){const n=[];ua(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}`:"");ua(n,r[s])}}return n.join(" ")}const Js=Symbol("state");function si(e,r){var s,l;const t=e.top||0,n=((s=r==="ltr"?e.end:e.start)!=null?s:e.right)||0,i=e.bottom||0,o=((l=r==="ltr"?e.start:e.end)!=null?l:e.left)||0;return t===0&&n===0&&i===0&&o===0?"":we(t)+" "+we(n)+" "+we(i)+" "+we(o)}function qo(e){if(typeof e!="number"&&typeof e!="string")return!1;const r=Number(e);return!Number.isNaN(r)}function An(e){return qo(e)&&e>=0}function wo(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]&&!An(n[s]))return t;return si(e,r)}function Ad(e,r){return!An(e)||e===void 0||e>1?r:Number(e)}const jd=Object.prototype.hasOwnProperty;function qs(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(!jd.call(r,o)||!qs(e[o],r[o]))return!1}return!0}function Si(e,r){return qs(e,r)?r:e}function Cd(e,r){return e==="visible"||e==="invisible"||e==="gone"?e:r}function fa(e,r){return e==="linear"||e==="ease"||e==="ease_in_out"||e==="ease_in"||e==="ease_out"?e:r}function so(e,r){const t=Number(e);return Number.isNaN(t)?r:t}function Ks(e){const r=[];return e.name==="set"?(e.items||[]).forEach(t=>{r.push(...Ks(t))}):r.push(e),r}function vo(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]]&&!An(e[t[n]]))return r;return e}function Ed(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 Sd(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]&&!An(t[n]))return r;return e}function Ko(e,r=0,t=10){return[e["top-left"],e["top-right"],e["bottom-right"],e["bottom-left"]].map(n=>we((n||r)/t*10)).join(" ")}function Vd(e){var r,t,n,i,o,s;return we(((t=(r=e.offset)==null?void 0:r.x)==null?void 0:t.value)||0)+" "+we(((i=(n=e.offset)==null?void 0:n.y)==null?void 0:i.value)||0)+" "+we((o=e.blur)!=null?o:2)+" "+Cr(e.color||"#000000",(s=e.alpha)!=null?s:.19)}function Id(e,r){var t,n,i,o,s,l;return"drop-shadow("+Cr(e.color||"#000000",(t=e.alpha)!=null?t:.19)+" "+we((((i=(n=e.offset)==null?void 0:n.x)==null?void 0:i.value)||0)*10/r)+" "+we((((s=(o=e.offset)==null?void 0:o.y)==null?void 0:s.value)||0)*10/r)+" "+we(((l=e.blur)!=null?l:2)*10/r)+")"}function jn(e){return e.is_enabled!==0&&e.is_enabled!==!1}let Xs;function Xo(){return typeof matchMedia>"u"?!1:(Xs||(Xs=window.matchMedia("(prefers-reduced-motion)")),Xs.matches)}const Td=8,Dd=(e,r,t,n)=>{let i;return(t||n)&&typeof ResizeObserver<"u"&&(i=new ResizeObserver(async()=>{let o=0;const s={},l=(c,u)=>{if(c){const f=r.getVariable(c,"integer");if(f){if(u=Math.round(u),s[c]||(s[c]=new Set),!s[c].has(u))return f.setValue(u),s[c].add(u),!0}else{const _=new Error("Missing variable");_.level="error",_.additional={variableName:c},r.logError(_)}}return!1},a=()=>{if(!e)return!1;const c=e.getBoundingClientRect(),u=l(t,c.width),f=l(n,c.height);return u||f};for(;a();){if(++o>Td){const c=new Error("Recursive layout in size_provider");c.level="warn",c.additional={widthVariableName:t,heightVariableName:n},r.logError(c);break}await gn()}}),i.observe(e)),i},Zs=Symbol("enabled");function Zn(e,r){return e===1||e===0||e===!1||e===!0?!!e:r}const da={actionable__button:"divkit-ee5cc"};function Fd(){}const Zo=Symbol("action");function Qs(e){if(e.startsWith("tel:"))return"tel";const r=/^([^/]+):\/\//.exec(e);return r&&r[1]||""}function xs(e,r){return r.has(e)}function Md(e){var u;let r,t,n,i,o;const s=e[26].default,l=Mo(s,e,e[25],null);let a=[{class:t=e[1]+" "+((u=e[0])!=null&&u.length?xt["root_disabled-context-menu"]:"")+" "+(e[11]?xt["root__any-actions"]:"")},{style:e[2]},{role:e[9]},{"aria-checked":e[12]},e[3]],c={};for(let f=0;f<a.length;f+=1)c=Bn(c,a[f]);return{c(){r=Le("span"),l&&l.c(),Kn(r,c)},m(f,_){ie(f,r,_),l&&l.m(r,null),e[38](r),n=!0,i||(o=[Ro(e[4].call(null,r)),He(r,"click",e[33]),He(r,"keydown",e[13]),He(r,"focus",e[34]),He(r,"blur",e[35])],i=!0)},p(f,_){var m;l&&l.p&&(!n||_[0]&33554432)&&No(l,s,f,f[25],n?Po(s,f[25],_,null):zo(f[25]),null),Kn(r,c=io(a,[(!n||_[0]&2051&&t!==(t=f[1]+" "+((m=f[0])!=null&&m.length?xt["root_disabled-context-menu"]:"")+" "+(f[11]?xt["root__any-actions"]:"")))&&{class:t},(!n||_[0]&4)&&{style:f[2]},(!n||_[0]&512)&&{role:f[9]},(!n||_[0]&4096)&&{"aria-checked":f[12]},_[0]&8&&f[3]]))},i(f){n||(B(l,f),n=!0)},o(f){$(l,f),n=!1},d(f){f&&re(r),l&&l.d(f),e[38](null),i=!1,Hr(o)}}}function Pd(e){var u;let r,t,n,i,o;const s=e[26].default,l=Mo(s,e,e[25],null);let a=[{class:t=e[1]+" "+da.actionable__button+" "+xt["root__any-actions"]+` ${e[5]?xt.root__clickable:xt["root__clickable-no-transition"]} ${xt.root__unselectable} `+((u=e[0])!=null&&u.length?xt["root_disabled-context-menu"]:"")},{style:e[2]},{role:e[9]},{"aria-checked":e[12]},{type:"button"},e[3]],c={};for(let f=0;f<a.length;f+=1)c=Bn(c,a[f]);return{c(){r=Le("button"),l&&l.c(),Kn(r,c)},m(f,_){ie(f,r,_),l&&l.m(r,null),r.autofocus&&r.focus(),e[37](r),n=!0,i||(o=[Ro(e[4].call(null,r)),He(r,"click",e[30]),He(r,"keydown",e[13]),He(r,"focus",e[31]),He(r,"blur",e[32])],i=!0)},p(f,_){var m;l&&l.p&&(!n||_[0]&33554432)&&No(l,s,f,f[25],n?Po(s,f[25],_,null):zo(f[25]),null),Kn(r,c=io(a,[(!n||_[0]&35&&t!==(t=f[1]+" "+da.actionable__button+" "+xt["root__any-actions"]+` ${f[5]?xt.root__clickable:xt["root__clickable-no-transition"]} ${xt.root__unselectable} `+((m=f[0])!=null&&m.length?xt["root_disabled-context-menu"]:"")))&&{class:t},(!n||_[0]&4)&&{style:f[2]},(!n||_[0]&512)&&{role:f[9]},(!n||_[0]&4096)&&{"aria-checked":f[12]},{type:"button"},_[0]&8&&f[3]]))},i(f){n||(B(l,f),n=!0)},o(f){$(l,f),n=!1},d(f){f&&re(r),l&&l.d(f),e[37](null),i=!1,Hr(o)}}}function Nd(e){var u;let r,t,n,i,o;const s=e[26].default,l=Mo(s,e,e[25],null);let a=[{href:e[7]},{target:e[10]},{style:e[2]},{role:e[9]},{"aria-checked":e[12]},{class:t=e[1]+" "+xt["root__any-actions"]+" "+(e[5]?xt.root__clickable:xt["root__clickable-no-transition"])+" "+((u=e[0])!=null&&u.length?xt["root_disabled-context-menu"]:"")},e[3]],c={};for(let f=0;f<a.length;f+=1)c=Bn(c,a[f]);return{c(){r=Le("a"),l&&l.c(),Kn(r,c)},m(f,_){ie(f,r,_),l&&l.m(r,null),e[36](r),n=!0,i||(o=[Ro(e[4].call(null,r)),He(r,"click",e[27]),He(r,"keydown",e[13]),He(r,"focus",e[28]),He(r,"blur",e[29])],i=!0)},p(f,_){var m;l&&l.p&&(!n||_[0]&33554432)&&No(l,s,f,f[25],n?Po(s,f[25],_,null):zo(f[25]),null),Kn(r,c=io(a,[(!n||_[0]&128)&&{href:f[7]},(!n||_[0]&1024)&&{target:f[10]},(!n||_[0]&4)&&{style:f[2]},(!n||_[0]&512)&&{role:f[9]},(!n||_[0]&4096)&&{"aria-checked":f[12]},(!n||_[0]&35&&t!==(t=f[1]+" "+xt["root__any-actions"]+" "+(f[5]?xt.root__clickable:xt["root__clickable-no-transition"])+" "+((m=f[0])!=null&&m.length?xt["root_disabled-context-menu"]:"")))&&{class:t},_[0]&8&&f[3]]))},i(f){n||(B(l,f),n=!0)},o(f){$(l,f),n=!1},d(f){f&&re(r),l&&l.d(f),e[36](null),i=!1,Hr(o)}}}function zd(e){let r,t,n,i;const o=[Nd,Pd,Md],s=[];function l(a,c){return a[7]?0:a[8]?1:2}return r=l(e),t=s[r]=o[r](e),{c(){t.c(),n=Zt()},m(a,c){s[r].m(a,c),ie(a,n,c),i=!0},p(a,c){let u=r;r=l(a),r===u?s[r].p(a,c):(tr(),$(s[u],1,1,()=>{s[u]=null}),rr(),t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n))},i(a){i||(B(t),i=!0)},o(a){$(t),i=!1},d(a){a&&re(n),s[r].d(a)}}}const _a=8,ha=400,$s=400,Od=new Set(["button","image","checkbox","radio"]);function Rd(e,r,t){let{$$slots:n={},$$scope:i}=r,{componentContext:o}=r,{id:s=""}=r,{actions:l=void 0}=r,{doubleTapActions:a=void 0}=r,{longTapActions:c=void 0}=r,{pressStartActions:u=void 0}=r,{pressEndActions:f=void 0}=r,{hoverStartActions:_=void 0}=r,{hoverEndActions:m=void 0}=r,{cls:y=""}=r,{style:h=null}=r,{attrs:w=void 0}=r,{use:v=Fd}=r,{customAction:R=null}=r,{isNativeActionAnimation:N=!0}=r,{hasInnerFocusable:V=!1}=r,{customAccessibility:D=void 0}=r;const te=Wr(Xr),F=Wr(Zo);Oi(Zo,{hasAction(){return!!(F.hasAction()||l!=null&&l.length)}});let Y,X="",H,W=-1,U=-1,he=null,Ie=!1,Te=!1,_e=!1,be,_t,We,Oe;function Fe(){return(l==null?void 0:l.some(E=>{if(E!=null&&E.typed)return!0;const $e=E==null?void 0:E.url;if(!$e)return!1;const le=Qs($e);return le&&!xs(le,te.getBuiltinProtocols())}))||!1}async function qe(E,$e){l&&(E&&Fe()&&E.preventDefault(),o.execAnyActions(l,{node:Y,processUrls:$e}))}async function Qe(E){if(F.hasAction()||E.button!==void 0&&E.button!==0)return;const $e=Date.now();if(W>0&&$e>W+ha){E.preventDefault();return}if(a!=null&&a.length&&U>0&&$e-U<$s){E.preventDefault(),o.execAnyActions(a,{processUrls:!0,node:Y}),U=-1;return}if(U=$e,a!=null&&a.length&&W>0&&$e<W+$s){E.preventDefault(),clearTimeout(_t),_t=window.setTimeout(()=>{qe(void 0,!0)},$s);return}(R==null?void 0:R(E))===!1?E.preventDefault():qe(E,!1)}function Z(E){F.hasAction()||(he={x:E.clientX,y:E.clientY},Ie=!1,W=Date.now(),be&&clearTimeout(be),clearTimeout(_t),o.execAnyActions(u,{node:Y}))}function Ae(E){he&&(Math.abs(he.x-E.clientX)>_a||Math.abs(he.y-E.clientY)>_a)&&(Ie=!0)}function ge(E){F.hasAction()||!he||W<0||(!Ie&&Date.now()-W>=ha&&(E.stopImmediatePropagation(),o.execAnyActions(c,{processUrls:!0,node:Y})),be&&clearTimeout(be),be=window.setTimeout(()=>{he=null,W=-1},100),o.execAnyActions(f,{node:Y}))}function et(){F.hasAction()||o.execAnyActions(_,{node:Y})}function G(){F.hasAction()||o.execAnyActions(m,{node:Y})}function Ee(E){const $e=E.target;$e instanceof HTMLElement&&($e.tagName==="INPUT"||$e.contentEditable==="true")||E.ctrlKey||E.metaKey||E.altKey||E.shiftKey||E.key==="Enter"&&Array.isArray(l)&&l.length&&(o.execAnyActions(l),E.preventDefault())}Xn(()=>{s&&!V&&te.registerFocusable(s,{focus(){Y&&(X||Te)&&Y.focus()}})}),on(()=>{typeof window<"u"&&(window.removeEventListener("pointermove",Ae),window.removeEventListener("pointerup",ge),window.removeEventListener("pointercancel",ge)),s&&!V&&te.unregisterFocusable(s),be&&clearTimeout(be),_t&&clearTimeout(_t)});function Ue(E){mi.call(this,e,E)}function ne(E){mi.call(this,e,E)}function it(E){mi.call(this,e,E)}function je(E){mi.call(this,e,E)}function Ve(E){mi.call(this,e,E)}function yt(E){mi.call(this,e,E)}function Vt(E){mi.call(this,e,E)}function ee(E){mi.call(this,e,E)}function tt(E){mi.call(this,e,E)}function lt(E){Tr[E?"unshift":"push"](()=>{Y=E,t(6,Y)})}function dt(E){Tr[E?"unshift":"push"](()=>{Y=E,t(6,Y)})}function Ge(E){Tr[E?"unshift":"push"](()=>{Y=E,t(6,Y)})}return e.$$set=E=>{"componentContext"in E&&t(14,o=E.componentContext),"id"in E&&t(15,s=E.id),"actions"in E&&t(16,l=E.actions),"doubleTapActions"in E&&t(17,a=E.doubleTapActions),"longTapActions"in E&&t(0,c=E.longTapActions),"pressStartActions"in E&&t(18,u=E.pressStartActions),"pressEndActions"in E&&t(19,f=E.pressEndActions),"hoverStartActions"in E&&t(20,_=E.hoverStartActions),"hoverEndActions"in E&&t(21,m=E.hoverEndActions),"cls"in E&&t(1,y=E.cls),"style"in E&&t(2,h=E.style),"attrs"in E&&t(3,w=E.attrs),"use"in E&&t(4,v=E.use),"customAction"in E&&t(22,R=E.customAction),"isNativeActionAnimation"in E&&t(5,N=E.isNativeActionAnimation),"hasInnerFocusable"in E&&t(23,V=E.hasInnerFocusable),"customAccessibility"in E&&t(24,D=E.customAccessibility),"$$scope"in E&&t(25,i=E.$$scope)},e.$$.update=()=>{if(e.$$.dirty[0]&4276352){if(Array.isArray(l)&&(l!=null&&l.length))for(let E=0;E<l.length;++E){const $e=l[E].url;if($e){t(7,X=$e),t(10,H=l[E].target||void 0);break}}Array.isArray(l)&&(l!=null&&l.length)&&F.hasAction()&&(t(7,X=""),o.logError(Q(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:l}}))),t(8,Te=!!R),X&&!xs(Qs(X),te.getBuiltinProtocols())?(t(7,X=""),t(8,Te=!0)):!X&&Array.isArray(l)&&(l!=null&&l.length)&&(t(8,Te=!0),l.some(E=>E.url||E.typed||E.menu_items)||o.logError(Q(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:l}})))}e.$$.dirty[0]&16778112&&(D!=null&&D.type&&Od.has(D.type)?t(9,We=D.type):X?t(9,We=void 0):Te&&t(9,We="button"),(We==="checkbox"||We==="radio")&&typeof(D==null?void 0:D.is_checked)=="boolean"?t(12,Oe=D.is_checked):t(12,Oe=void 0)),e.$$.dirty[0]&4063681&&Y&&(X||Te||a!=null&&a.length?Y.addEventListener("click",Qe):Y.removeEventListener("click",Qe),a!=null&&a.length||c!=null&&c.length||u!=null&&u.length||f!=null&&f.length?(Y.addEventListener("pointerdown",Z,{passive:!0}),window.addEventListener("pointermove",Ae,{passive:!0}),window.addEventListener("pointerup",ge,{passive:!0}),window.addEventListener("pointercancel",ge,{passive:!0})):(Y.removeEventListener("pointerdown",Z),window.removeEventListener("pointerup",ge),window.removeEventListener("pointermove",Ae),window.removeEventListener("pointercancel",ge)),_!=null&&_.length?Y.addEventListener("pointerenter",et):Y.removeEventListener("pointerenter",et),m!=null&&m.length?Y.addEventListener("pointerleave",G):Y.removeEventListener("pointerleave",G),t(11,_e=!!(X||Te||a!=null&&a.length||c!=null&&c.length||u!=null&&u.length||f!=null&&f.length||_!=null&&_.length||m!=null&&m.length)))},[c,y,h,w,v,N,Y,X,Te,We,H,_e,Oe,Ee,o,s,l,a,u,f,_,m,R,V,D,i,n,Ue,ne,it,je,Ve,yt,Vt,ee,tt,lt,dt,Ge]}class Qo extends Or{constructor(r){super(),zr(this,r,Rd,zd,mr,{componentContext:14,id:15,actions:16,doubleTapActions:17,longTapActions:0,pressStartActions:18,pressEndActions:19,hoverStartActions:20,hoverEndActions:21,cls:1,style:2,attrs:3,use:4,customAction:22,isNativeActionAnimation:5,hasInnerFocusable:23,customAccessibility:24},null,[-1,-1])}}const Bi={"outer-background":"divkit-7b038","outer-background_clip":"divkit-8fdbd","outer-background__item":"divkit-f9881","outer-background__item_hidden":"divkit-ea047"};function In(e){return qo(e)&&e>0}function ga(e,r){return e.map(t=>{if(!t){r(Q(new Error("Incorrect filter"),{level:"warn"}));return}if(t.type==="blur"){if(In(t.radius))return`blur(${pn(t.radius/2)})`}else{if(t.type==="rtl_mirror")return;r(Q(new Error("Unknown filter"),{level:"warn",additional:{filter:t.type}}))}}).filter(Boolean).join(" ")}function pa(e,r,t){const n=e.slice();return n[6]=r[t],n}function Ld(e){let r,t;return{c(){r=Le("span"),p(r,"class",Bi["outer-background__item"]),p(r,"style",t=Ct(e[6].style))},m(n,i){ie(n,r,i)},p(n,i){i&2&&t!==(t=Ct(n[6].style))&&p(r,"style",t)},d(n){n&&re(r)}}}function Bd(e){let r,t,n,i,o;return{c(){r=Le("img"),Dn(r.src,t=e[6].image_url)||p(r,"src",t),p(r,"alt",""),p(r,"aria-hidden","true"),p(r,"loading","lazy"),p(r,"decoding","async"),p(r,"class",Bi["outer-background__item"]),p(r,"style",n=Ct(e[6].style))},m(s,l){ie(s,r,l),i||(o=He(r,"error",e[2]),i=!0)},p(s,l){l&2&&!Dn(r.src,t=s[6].image_url)&&p(r,"src",t),l&2&&n!==(n=Ct(s[6].style))&&p(r,"style",n)},d(s){s&&re(r),i=!1,o()}}}function ma(e){let r;function t(o,s){return o[6].image_url?Bd:Ld}let n=t(e),i=n(e);return{c(){i.c(),r=Zt()},m(o,s){i.m(o,s),ie(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&&re(r),i.d(o)}}}function Hd(e){let r,t,n=nr(e[1]),i=[];for(let o=0;o<n.length;o+=1)i[o]=ma(pa(e,n,o));return{c(){r=Le("span");for(let o=0;o<i.length;o+=1)i[o].c();p(r,"class",t=Bi["outer-background"]+(e[0]?" "+Bi["outer-background_clip"]:"")),O(r,"border-radius",e[0])},m(o,s){ie(o,r,s);for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(r,null)},p(o,[s]){if(s&6){n=nr(o[1]);let l;for(l=0;l<n.length;l+=1){const a=pa(o,n,l);i[l]?i[l].p(a,s):(i[l]=ma(a),i[l].c(),i[l].m(r,null))}for(;l<i.length;l+=1)i[l].d(1);i.length=n.length}s&1&&t!==(t=Bi["outer-background"]+(o[0]?" "+Bi["outer-background_clip"]:""))&&p(r,"class",t),s&1&&O(r,"border-radius",o[0])},i:C,o:C,d(o){o&&re(r),ln(i,o)}}}function Wd(e,r,t){let n,{direction:i}=r,{componentContext:o}=r,{background:s=[]}=r,{radius:l=""}=r;function a(c){c.target&&"classList"in c.target&&c.target.classList.add(Bi["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,l=c.radius)},e.$$.update=()=>{e.$$.dirty&56&&t(1,n=s.map(c=>{const u={},f={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 _=Jo([c]);c.type==="solid"&&(u["background-color"]=_.color),c.type==="gradient"&&(u["background-image"]=_.image),c.type==="image"&&(u.opacity=Number(c.alpha),f.image_url=c.image_url,u["object-fit"]=_.size,u["object-position"]=_.position,Array.isArray(c.filters)&&c.filters.length&&(u.filter=ga(c.filters,o.logError),i==="rtl"&&c.filters.some(m=>m.type==="rtl_mirror")&&(u.transform="scale(-1,1)")))}return f}))},[l,n,a,i,o,s]}class Ud extends Or{constructor(r){super(),zr(this,r,Wd,Hd,mr,{direction:3,componentContext:4,background:5,radius:0})}}const Gd=e=>({hasCustomFocus:e[0]&4096}),ba=e=>({focusHandler:e[49],blurHandler:e[50],hasCustomFocus:e[12]});function ya(e){let r,t;return r=new Qo({props:{componentContext:e[0],id:e[0].json.id,use:e[48],cls:e[1]+" "+gt("outer",Yo,e[23]),style:Ct(e[22]),actions:e[19],doubleTapActions:e[20],longTapActions:e[21],pressStartActions:e[7],pressEndActions:e[8],hoverStartActions:e[9],hoverEndActions:e[10],attrs:e[15],hasInnerFocusable:e[2],isNativeActionAnimation:!e[11].length||ka(e[11]),customAccessibility:e[13],$$slots:{default:[Yd]},$$scope:{ctx:e}}}),r.$on("focus",e[49]),r.$on("blur",e[50]),{c(){Bt(r.$$.fragment)},m(n,i){Pt(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]&8388610&&(o.cls=n[1]+" "+gt("outer",Yo,n[23])),i[0]&4194304&&(o.style=Ct(n[22])),i[0]&524288&&(o.actions=n[19]),i[0]&1048576&&(o.doubleTapActions=n[20]),i[0]&2097152&&(o.longTapActions=n[21]),i[0]&128&&(o.pressStartActions=n[7]),i[0]&256&&(o.pressEndActions=n[8]),i[0]&512&&(o.hoverStartActions=n[9]),i[0]&1024&&(o.hoverEndActions=n[10]),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]&8192&&(o.customAccessibility=n[13]),i[0]&86137|i[4]&1024&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function wa(e){let r,t;return r=new Ud({props:{componentContext:e[0],direction:e[14],background:e[5],radius:e[4]}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&16384&&(o.direction=n[14]),i[0]&32&&(o.background=n[5]),i[0]&16&&(o.radius=n[4]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function va(e){let r,t;return{c(){r=Le("span"),p(r,"class",Yo.outer__border),p(r,"style",t=Ct(e[3]))},m(n,i){ie(n,r,i)},p(n,i){i[0]&8&&t!==(t=Ct(n[3]))&&p(r,"style",t)},d(n){n&&re(r)}}}function Yd(e){let r,t,n,i=e[6]&&wa(e);const o=e[133].default,s=Mo(o,e,e[134],ba);let l=e[16]&&va(e);return{c(){i&&i.c(),r=Zt(),s&&s.c(),l&&l.c(),t=Zt()},m(a,c){i&&i.m(a,c),ie(a,r,c),s&&s.m(a,c),l&&l.m(a,c),ie(a,t,c),n=!0},p(a,c){a[6]?i?(i.p(a,c),c[0]&64&&B(i,1)):(i=wa(a),i.c(),B(i,1),i.m(r.parentNode,r)):i&&(tr(),$(i,1,1,()=>{i=null}),rr()),s&&s.p&&(!n||c[0]&4096|c[4]&1024)&&No(s,o,a,a[134],n?Po(o,a[134],c,Gd):zo(a[134]),ba),a[16]?l?l.p(a,c):(l=va(a),l.c(),l.m(t.parentNode,t)):l&&(l.d(1),l=null)},i(a){n||(B(i),B(s,a),n=!0)},o(a){$(i),$(s,a),n=!1},d(a){a&&(re(r),re(t)),i&&i.d(a),s&&s.d(a),l&&l.d(a)}}}function Jd(e){let r,t,n=!e[17]&&!e[18]&&ya(e);return{c(){n&&n.c(),r=Zt()},m(i,o){n&&n.m(i,o),ie(i,r,o),t=!0},p(i,o){!i[17]&&!i[18]?n?(n.p(i,o),o[0]&393216&&B(n,1)):(n=ya(i),n.c(),B(n,1),n.m(r.parentNode,r)):n&&(tr(),$(n,1,1,()=>{n=null}),rr())},i(i){t||(B(n),t=!0)},o(i){$(n),t=!1},d(i){i&&re(r),n&&n.d(i)}}}const qd={left:"start",center:"center",right:"end",start:"start",end:"end"},Kd={left:"end",center:"center",right:"start",start:"start",end:"end"},Xd={top:"start",center:"center",bottom:"end",baseline:"baseline"};function ka(e){return e.some(r=>r.name==="native")}function Zd(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R,N,V,D,te,F,Y,X,H,W,U,he,Ie,Te,_e,be=C,_t=()=>(be(),be=M(X,ye=>t(111,_e=ye)),X),We,Oe=C,Fe=()=>(Oe(),Oe=M(Y,ye=>t(112,We=ye)),Y),qe,Qe=C,Z=()=>(Qe(),Qe=M(F,ye=>t(113,qe=ye)),F),Ae,ge=C,et=()=>(ge(),ge=M(te,ye=>t(114,Ae=ye)),te),G,Ee=C,Ue=()=>(Ee(),Ee=M(D,ye=>t(115,G=ye)),D),ne,it=C,je=()=>(it(),it=M(V,ye=>t(116,ne=ye)),V),Ve,yt=C,Vt=()=>(yt(),yt=M(N,ye=>t(117,Ve=ye)),N),ee,tt=C,lt=()=>(tt(),tt=M(i,ye=>t(118,ee=ye)),i),dt,Ge=C,E=()=>(Ge(),Ge=M(R,ye=>t(119,dt=ye)),R),$e,le=C,Ke=()=>(le(),le=M(v,ye=>t(120,$e=ye)),v),wt,fe=C,me=()=>(fe(),fe=M(h,ye=>t(121,wt=ye)),h),at,Ze=C,$t=()=>(Ze(),Ze=M(w,ye=>t(122,at=ye)),w),Mt,qt=C,Pe=()=>(qt(),qt=M(y,ye=>t(123,Mt=ye)),y),pt,Ut=C,Ht=()=>(Ut(),Ut=M(m,ye=>t(13,pt=ye)),m),Gt,L=C,ae=()=>(L(),L=M(_,ye=>t(124,Gt=ye)),_),ar,ve=C,Et=()=>(ve(),ve=M(f,ye=>t(125,ar=ye)),f),Re,mt=C,Ne=()=>(mt(),mt=M(u,ye=>t(126,Re=ye)),u),ot,vt=C,De=()=>(vt(),vt=M(l,ye=>t(127,ot=ye)),l),ct,Yt,sr=C,dr=()=>(sr(),sr=M(c,ye=>t(128,Yt=ye)),c),Wt,ut=C,St=()=>(ut(),ut=M(a,ye=>t(129,Wt=ye)),a),Ft,er=C,ir=()=>(er(),er=M(s,ye=>t(130,Ft=ye)),s),wr,Pr=C,Jr=()=>(Pr(),Pr=M(o,ye=>t(131,wr=ye)),o),Je;e.$$.on_destroy.push(()=>be()),e.$$.on_destroy.push(()=>Oe()),e.$$.on_destroy.push(()=>Qe()),e.$$.on_destroy.push(()=>ge()),e.$$.on_destroy.push(()=>Ee()),e.$$.on_destroy.push(()=>it()),e.$$.on_destroy.push(()=>yt()),e.$$.on_destroy.push(()=>tt()),e.$$.on_destroy.push(()=>Ge()),e.$$.on_destroy.push(()=>le()),e.$$.on_destroy.push(()=>fe()),e.$$.on_destroy.push(()=>Ze()),e.$$.on_destroy.push(()=>qt()),e.$$.on_destroy.push(()=>Ut()),e.$$.on_destroy.push(()=>L()),e.$$.on_destroy.push(()=>ve()),e.$$.on_destroy.push(()=>mt()),e.$$.on_destroy.push(()=>vt()),e.$$.on_destroy.push(()=>sr()),e.$$.on_destroy.push(()=>ut()),e.$$.on_destroy.push(()=>er()),e.$$.on_destroy.push(()=>Pr());let{$$slots:cr={},$$scope:ke}=r,{componentContext:q}=r,{cls:kr=""}=r,{style:Ar=void 0}=r,{layoutParams:zt={}}=r,{customDescription:Zr=!1}=r,{customPaddings:Se=!1}=r,{customActions:Ot=""}=r,{additionalPaddings:ur=null}=r,{heightByAspect:Xe=!1}=r,{parentOf:It=void 0}=r,{parentOfSimpleMode:ze=void 0}=r,{replaceItems:ht=void 0}=r,{hasInnerFocusable:st=!1}=r;const jt=Wr(Xr),Jt=Wr(Js),{isEnabled:I}=Wr(Zs);rn(e,I,ye=>t(132,Je=ye));const rt=jt.direction;rn(e,rt,ye=>t(14,ct=ye));let de,d,Me=null,kt=[],Fr={},lr={},z=!1,Er=1,xr="transparent",b=0,A={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},K="",oe=null,se="",Ce={},bt,P,Ye,Rt=0,Tt=0,Lt=0,or=!1,sn=!1,Nr={},dn,$r,Gn,vn=0,en=0,_n=0,Yn=!1,ei=!1,En=1,Jn,ti,cn,Pi,Ni=[],ri=!1,Qi=!1,_i,zn,ft,g=[],k=[],T=[],j=[],x=[],J=[],xe=[],nt=[],Sr=[],_r=[],jr="",hi,ue,Qt,hr,On=!1,Rn="visible",qr=0,gi=0,pi,Ai,xi,po=!1,Ns,Sn,To;function eb(){t(68,oe=null),t(69,se=""),t(86,En=1),t(98,On=!1),t(99,Rn="visible"),t(100,qr=0),t(101,gi=0),t(102,pi=void 0),t(103,Ai=void 0),Ni=q.fakeElement?[]:q.json.transition_triggers||["state_change","visibility_change"],t(89,ri=!!(Ni.indexOf("state_change")!==-1&&q.id)),Qi=Ni.indexOf("visibility_change")!==-1,de&&qf(de),Sn==null||Sn(),Je&&t(105,Sn=jt.processVariableTriggers(q,q.json.variable_triggers))}function tb(ye,Vr){if(!Array.isArray(It)||!ht||ze&&(Array.isArray(Vr)&&Vr.length||0)!==1)return;const an=It.findIndex(Rr=>(Rr==null?void 0:Rr.id)===ye),kn=It.slice();kn.splice(an,1,...(Vr||[]).map(Rr=>({json:Rr,id:Rr==null?void 0:Rr.id}))),t(51,It=kn),ht(kn.map(Rr=>Rr==null?void 0:Rr.json))}function rb(ye){const Vr=so(ye.start_value,1),an=so(ye.end_value,1),kn=Ur(ye.start_delay,0),Rr=Xo()?0:Ur(ye.duration,300),zi=fa(ye.interpolator,"ease_in_out").replace(/_/g,"-");switch(ye.name){case"fade":return t(94,hi=Vr),t(95,ue=an),`opacity ${Rr}ms ${zi} ${kn}ms`;case"scale":return t(96,Qt=Vr),t(97,hr=an),`transform ${Rr}ms ${zi} ${kn}ms`;case"native":case"no_animation":return"";default:return q.logError(Q(new Error("Unknown action_animation name"),{additional:{animation:ye.name}})),""}}async function nb(ye){t(99,Rn=ye);const Vr=ye==="visible"?"in":"out",an=Vr==="in"?q.json.transition_in:q.json.transition_out;if(Qi&&an){let kn;ye==="gone"&&(kn=de.getBoundingClientRect()),await gn(),Vr==="in"&&t(91,zn=!0),Jt.runVisibilityTransition({...q.json,visibility:"visible"},q,an,de,Vr,kn).then(()=>{Vr==="in"&&t(91,zn=!1)}).catch(Rr=>{throw Vr==="in"&&t(91,zn=!1),Rr})}}function Jf(){if(Me&&de){const ye=jt.getExtensionContext(q);Me.forEach(Vr=>{var an;(an=Vr.unmountView)==null||an.call(Vr,de,ye)}),Me=null}}function ib(){if(Me!=null&&Me.length){const ye=jt.getExtensionContext(q);Me.forEach(Vr=>{var an;(an=Vr.updateView)==null||an.call(Vr,de,ye)})}}function qf(ye){var zi,Dt,br;To==null||To.destroy(),t(61,de=ye),ri&&q.json.transition_in&&Jt.registerChildWithTransitionIn(q.json,q,q.json.transition_in,ye).then(()=>{t(90,_i=!1)}).catch(Ir=>{throw t(90,_i=!1),Ir}),ri&&q.json.transition_out&&Jt.registerChildWithTransitionOut(q.json,q,q.json.transition_out,ye),q.fakeElement||Jt.registerChildWithTransitionChange(q.json,q,q.json.transition_change,ye).then(()=>{t(92,ft=!1)}).catch(Ir=>{throw t(92,ft=!1),Ir});const Vr=q.fakeElement?[]:q.json.visibility_actions||q.json.visibility_action&&[q.json.visibility_action],an=q.fakeElement?[]:q.json.disappear_actions;let kn;(Array.isArray(Vr)&&Vr.length||Array.isArray(an)&&an.length)&&(kn=kd(ye,{visibilityActions:Vr,disappearActions:an,rootCtx:jt,componentContext:q}));const Rr=q.id;return Rr&&(jt.registerId(Rr,()=>de),Jt.registerChild(Rr)),(zi=q.json.tooltips)==null||zi.forEach(Ir=>{jt.registerTooltip(ye,Ir)}),xi&&(xi.disconnect(),xi=void 0),xi=Dd(de,q,(Dt=q.json.layout_provider)==null?void 0:Dt.width_variable_name,(br=q.json.layout_provider)==null?void 0:br.height_variable_name),To={destroy(){Rr&&(jt.unregisterId(Rr),Jt.unregisterChild(Rr)),kn&&kn.destroy()}},To}function ob(){q.json.focus&&(Zf(jt.isPointerFocus)||t(12,po=!0),q.execAnyActions(j))}function sb(){q.json.focus&&(t(12,po=!1),q.execAnyActions(x))}return Uo(ib),on(()=>{var ye;kt.forEach(Vr=>{jt.unregisterParentOf(Vr)}),t(62,kt=[]),xi&&(xi.disconnect(),xi=void 0),(ye=q.json.tooltips)==null||ye.forEach(Vr=>{jt.unregisterTooltip(Vr)}),Sn==null||Sn(),Jf()}),e.$$set=ye=>{"componentContext"in ye&&t(0,q=ye.componentContext),"cls"in ye&&t(1,kr=ye.cls),"style"in ye&&t(52,Ar=ye.style),"layoutParams"in ye&&t(53,zt=ye.layoutParams),"customDescription"in ye&&t(54,Zr=ye.customDescription),"customPaddings"in ye&&t(55,Se=ye.customPaddings),"customActions"in ye&&t(56,Ot=ye.customActions),"additionalPaddings"in ye&&t(57,ur=ye.additionalPaddings),"heightByAspect"in ye&&t(58,Xe=ye.heightByAspect),"parentOf"in ye&&t(51,It=ye.parentOf),"parentOfSimpleMode"in ye&&t(59,ze=ye.parentOfSimpleMode),"replaceItems"in ye&&t(60,ht=ye.replaceItems),"hasInnerFocusable"in ye&&t(2,st=ye.hasInnerFocusable),"$$scope"in ye&&t(134,ke=ye.$$scope)},e.$$.update=()=>{var ye,Vr,an,kn,Rr,zi;if(e.$$.dirty[0]&1&&t(110,n=q.origJson),e.$$.dirty[3]&131072&&n&&eb(),e.$$.dirty[0]&1|e.$$.dirty[3]&4096|e.$$.dirty[4]&256&&(Je?(Sn==null||Sn(),t(105,Sn=jt.processVariableTriggers(q,q.json.variable_triggers))):Sn==null||Sn()),e.$$.dirty[0]&1&<(t(45,i=q.getDerivedFromVars(q.json.focus))),e.$$.dirty[0]&1&&Jr(t(44,o=q.getDerivedFromVars(q.json.border))),e.$$.dirty[0]&1&&ir(t(43,s=q.getDerivedFromVars(q.json.paddings))),e.$$.dirty[0]&1&&De(t(42,l=q.getDerivedFromVars(q.json.margins))),e.$$.dirty[0]&1&&St(t(41,a=q.getDerivedFromVars(q.json.width))),e.$$.dirty[0]&1&&dr(t(40,c=q.getDerivedFromVars(q.json.alignment_horizontal))),e.$$.dirty[0]&1&&Ne(t(39,u=q.getDerivedFromVars(q.json.height))),e.$$.dirty[0]&1&&Et(t(38,f=q.getDerivedFromVars(q.json.alignment_vertical))),e.$$.dirty[0]&1&&ae(t(37,_=q.getDerivedFromVars(q.json.alpha))),e.$$.dirty[0]&1&&Ht(t(36,m=q.getDerivedFromVars(q.json.accessibility))),e.$$.dirty[0]&1&&Pe(t(35,y=q.getDerivedFromVars(q.json.background))),e.$$.dirty[0]&1&&me(t(34,h=q.getDerivedFromVars(q.json.action))),e.$$.dirty[0]&1&&$t(t(33,w=q.getDerivedFromVars(q.json.actions))),e.$$.dirty[0]&1&&Ke(t(32,v=q.getDerivedFromVars(q.json.doubletap_actions))),e.$$.dirty[0]&1&&E(t(31,R=q.getDerivedFromVars(q.json.longtap_actions))),e.$$.dirty[0]&1&&Vt(t(30,N=q.getDerivedFromVars(q.json.press_start_actions))),e.$$.dirty[0]&1&&je(t(29,V=q.getDerivedFromVars(q.json.press_end_actions))),e.$$.dirty[0]&1&&Ue(t(28,D=q.getDerivedFromVars(q.json.hover_start_actions))),e.$$.dirty[0]&1&&et(t(27,te=q.getDerivedFromVars(q.json.hover_end_actions))),e.$$.dirty[0]&1&&Z(t(26,F=q.getDerivedFromVars(q.json.action_animation))),e.$$.dirty[0]&1&&Fe(t(25,Y=q.getDerivedFromVars(q.json.visibility))),e.$$.dirty[0]&1&&_t(t(24,X=q.getDerivedFromVars(q.json.transform))),e.$$.dirty[1]&269484032|e.$$.dirty[2]&1&&(kt.forEach(Dt=>{jt.unregisterParentOf(Dt)}),t(62,kt=[]),It&&It.forEach(Dt=>{Dt!=null&&Dt.id&&(kt.push(Dt.id),jt.registerParentOf(Dt.id,{replaceWith:tb,isSingleMode:!!ze}))})),e.$$.dirty[0]&4104|e.$$.dirty[2]&62|e.$$.dirty[3]&33554432|e.$$.dirty[4]&128){const Dt=po&&(ee!=null&&ee.border)?ee.border:wr;let br={},Ir={},un=!1,Br="";if(Dt){if(Zn(Dt.has_shadow,!1)){const tn=Dt.shadow;tn?br["box-shadow"]=Vd(tn):br["box-shadow"]="0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(Dt.stroke&&(un=!0,t(64,Er=Ur(Dt.stroke.width,Er)),t(65,xr=Cr(Dt.stroke.color,1,xr)),Ir["--divkit-border"]=`${we(Er+1)} solid ${xr}`),Dt.corners_radius&&typeof Dt.corners_radius=="object"){t(67,A=Sd(Dt.corners_radius,A)),br["border-radius"]=Ko(A);const tn={};["top-left","top-right","bottom-right","bottom-left"].forEach(Vn=>{tn[Vn]=(A[Vn]||0)+1}),Ir["--divkit-border-radius"]=Ko(tn)}else Dt.corner_radius&&(t(66,b=Ur(Dt.corner_radius,b)),t(67,A={"top-left":b,"top-right":b,"bottom-right":b,"bottom-left":b}),br["border-radius"]=we(b),Ir["--divkit-border-radius"]=we(b+1));if(un&&Er&&(Dt.corners_radius||Dt.corner_radius)){let tn={...A};["top-left","top-right","bottom-right","bottom-left"].forEach(Vn=>{tn[Vn]=(tn[Vn]||0)+Er/2}),Br=Ko(tn)}}t(63,Fr=Si(br,Fr)),t(3,lr=Si(Ir,lr)),t(16,z=un),t(4,K=Br)}if(e.$$.dirty[1]&16777216|e.$$.dirty[2]&64|e.$$.dirty[4]&64&&t(68,oe=vo(Ft&&!Se?Ft:void 0,oe)),e.$$.dirty[0]&16384|e.$$.dirty[1]&67108864|e.$$.dirty[2]&64&&t(107,H=si(Ed(oe,ur),ct)),e.$$.dirty[0]&16384|e.$$.dirty[2]&128|e.$$.dirty[4]&8&&t(69,se=wo(ot,ct,se)),e.$$.dirty[0]&16385|e.$$.dirty[1]&4194304|e.$$.dirty[2]&4352|e.$$.dirty[4]&56){let Dt,br,Ir,un,Br={},tn=0,Vn=0,ji=!1,Ci=!1;const hn=Wt==null?void 0:Wt.type;if(hn==="fixed")t(74,Rt=Ur(Wt==null?void 0:Wt.value,Rt)),br=we(Rt);else if(hn==="wrap_content"||(hn==="match_parent"||!hn)&&zt.parentHorizontalWrapContent){if(Dt="content",(hn==="wrap_content"&&(Wt!=null&&Wt.constrained)||(hn==="match_parent"||!hn)&&zt.parentHorizontalWrapContent)&&(Br["width-constrained"]=!0,zt.parentContainerOrientation==="horizontal"&&(Vn=1)),hn==="wrap_content"){const yr=Wt;yr.min_size&&An(yr.min_size.value)&&(Ir=we(yr.min_size.value)),yr.max_size&&An(yr.max_size.value)&&(un=we(yr.max_size.value))}(hn==="match_parent"||!hn)&&q.logError(Q(new Error("Incorrect child size. Container with wrap_content size contains child with match_parent size along the main axis"),{level:"warn"}))}else if(Dt="parent",zt.parentContainerOrientation==="vertical"&&zt.parentContainerWrap&&(Ci=!0,q.logError(Q(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),zt.parentLayoutOrientation==="vertical"||zt.stretchWidth){const yr=(Vr=(ye=ct==="ltr"?ot==null?void 0:ot.start:ot==null?void 0:ot.end)!=null?ye:ot==null?void 0:ot.left)!=null?Vr:0,Ll=(kn=(an=ct==="ltr"?ot==null?void 0:ot.end:ot==null?void 0:ot.start)!=null?an:ot==null?void 0:ot.right)!=null?kn:0,Do=`calc(100% - ${pn(yr+Ll)})`;zt.stretchWidth?(br="0",Ir=Do):br=Do}else zt.parentContainerOrientation==="horizontal"&&(tn=Wt&&"weight"in Wt&&Wt.weight||1,zt.parentContainerWrap&&(ji=!0));if(Dt==="parent")Br["halign-self"]="stretch";else{const yr=Yt;yr==="left"||yr==="center"||yr==="right"||yr==="start"||yr==="end"?Br["halign-self"]=(ct==="ltr"?qd:Kd)[yr]:Br["halign-self"]=zt.parentHAlign||"start"}Dt&&(Br.width=Dt),t(71,bt=br),t(72,P=Ir),t(73,Ye=un),t(75,Tt=tn),t(76,Lt=Vn),t(70,Ce=Si(Br,Ce)),t(77,or=ji),t(17,sn=Ci)}if(e.$$.dirty[0]&1|e.$$.dirty[1]&138412032|e.$$.dirty[2]&1114112|e.$$.dirty[4]&14){let Dt,br,Ir,un,Br={},tn=0,Vn=0,ji=!1,Ci=!1;const hn=Re==null?void 0:Re.type;if(!Xe)if(hn==="fixed")t(82,vn=Ur(Re==null?void 0:Re.value,vn)),br=we(vn);else if(hn==="match_parent"&&!zt.parentVerticalWrapContent)if(Dt="parent",zt.parentContainerOrientation==="horizontal"&&zt.parentContainerWrap&&(Ci=!0,q.logError(Q(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),zt.parentLayoutOrientation==="horizontal"||zt.stretchHeight){const yr=(Rr=ot==null?void 0:ot.top)!=null?Rr:0,Ll=(zi=ot==null?void 0:ot.bottom)!=null?zi:0,Do=`calc(100% - ${pn(yr+Ll)})`;zt.stretchHeight?(br="0",Ir=Do):br=Do}else zt.parentContainerOrientation==="vertical"&&(tn=(Re==null?void 0:Re.weight)||1,zt.parentContainerWrap&&(ji=!0));else{if(Dt="content",(hn==="wrap_content"&&(Re!=null&&Re.constrained)||hn==="match_parent"&&zt.parentVerticalWrapContent)&&(Br["height-constrained"]=!0,zt.parentContainerOrientation==="vertical"&&(Vn=1)),hn==="wrap_content"){const yr=Re;yr!=null&&yr.min_size&&An(yr.min_size.value)&&(Ir=we(yr.min_size.value)),yr!=null&&yr.max_size&&An(yr.max_size.value)&&(un=we(yr.max_size.value))}hn==="match_parent"&&q.logError(Q(new Error("Incorrect child size. Container with wrap_content size contains child with match_parent size along the main axis"),{level:"warn"}))}if(Dt==="parent")Br["valign-self"]="stretch";else{const yr=ar;yr==="top"||yr==="center"||yr==="bottom"||yr==="baseline"&&zt.parentContainerOrientation==="horizontal"?Br["valign-self"]=Xd[yr]:Br["valign-self"]=zt.parentVAlign||"start"}Dt&&(Br.height=Dt),t(79,dn=br),t(80,$r=Ir),t(81,Gn=un),t(83,en=tn),t(84,_n=Vn),t(78,Nr=Si(Br,Nr)),t(85,Yn=ji),t(18,ei=Ci)}if(e.$$.dirty[1]&4194304&&t(109,W=zt.overlapParent?!0:void 0),e.$$.dirty[1]&4194304&&t(108,U=zt.gridArea?`${zt.gridArea.y+1}/${zt.gridArea.x+1}/span ${zt.gridArea.rowSpan}/span ${zt.gridArea.colSpan}`:void 0),e.$$.dirty[2]&16777216|e.$$.dirty[4]&1&&(t(86,En=Ad(Gt,En)),t(87,Jn=En===1?void 0:En)),e.$$.dirty[0]&8192|e.$$.dirty[1]&8388608&&(t(15,d=void 0),pt&&!Zr&&pt.description&&(t(15,d={}),t(15,d["aria-label"]=pt.description,d))),e.$$.dirty[0]&4208|e.$$.dirty[3]&1107296256&&(t(5,ti=po&&(ee!=null&&ee.background)?ee.background:Mt),t(88,cn={}),t(6,Pi=!1),Array.isArray(ti)&&(t(6,Pi=ti.some(Dt=>Dt.type==="image"||Dt.type==="nine_patch_image")||!!K),!Pi))){const Dt=Jo(ti);t(88,cn["background-color"]=Dt.color,cn),t(88,cn["background-image"]=Dt.image,cn),t(88,cn["background-size"]=Dt.size,cn),t(88,cn["background-position"]=Dt.position,cn),t(88,cn["background-repeat"]="no-repeat",cn)}if(e.$$.dirty[0]&1|e.$$.dirty[2]&134217728&&(t(90,_i=void 0),ri&&q.json.transition_in&&jt.isRunning("stateChange")&&t(90,_i=!0)),e.$$.dirty[0]&1|e.$$.dirty[2]&134217728&&(t(92,ft=void 0),ri&&jt.isRunning("stateChange")&&Jt.hasTransitionChange(q.id)&&t(92,ft=!0)),e.$$.dirty[0]&1921|e.$$.dirty[1]&33554432|e.$$.dirty[3]&1071644672){let Dt=at||wt&&[wt]||[],br=$e||[],Ir=dt||[],un=(ee==null?void 0:ee.on_focus)||[],Br=(ee==null?void 0:ee.on_blur)||[],tn=Ve||[],Vn=ne||[],ji=G||[],Ci=Ae||[];q.fakeElement?(Dt=[],br=[],Ir=[],un=[],Br=[]):(Array.isArray(Dt)||(Dt=[],q.logError(Q(new Error("Actions should be array")))),Array.isArray(br)||(br=[],q.logError(Q(new Error("DoubleTapActions should be array")))),Array.isArray(Ir)||(Ir=[],q.logError(Q(new Error("LongTapActions should be array")))),Array.isArray(un)||(un=[],q.logError(Q(new Error("FocusActions should be array")))),Array.isArray(Br)||(Br=[],q.logError(Q(new Error("BlurActions should be array")))),Array.isArray(tn)||(tn=[],q.logError(Q(new Error("PressStartActions should be array")))),Array.isArray(Vn)||(Vn=[],q.logError(Q(new Error("PressEndActions should be array")))),Array.isArray(ji)||(ji=[],q.logError(Q(new Error("HoverStartActions should be array")))),Array.isArray(Ci)||(Ci=[],q.logError(Q(new Error("HoverEndActions should be array"))))),(Dt.length||br.length||Ir.length||J.length||xe.length||nt.length||Sr.length)&&Ot&&(Dt=[],br=[],Ir=[],t(7,J=[]),t(8,xe=[]),t(9,nt=[]),t(10,Sr=[]),q.logError(Q(new Error(`Cannot use action on component "${Ot}"`)))),t(19,g=Dt.filter(jn)),t(20,k=br.filter(jn)),t(21,T=Ir.filter(jn)),j=un.filter(jn),x=Br.filter(jn),t(7,J=tn.filter(jn)),t(8,xe=Vn.filter(jn)),t(9,nt=ji.filter(jn)),t(10,Sr=Ci.filter(jn))}if(e.$$.dirty[0]&2048|e.$$.dirty[3]&1048576&&qe&&(t(11,_r=Ks(qe)),t(93,jr=_r.map(rb).filter(Boolean).join(", "))),e.$$.dirty[3]&524384){const Dt=Rn,br=Cd(We,Rn);Dt!==br&&(On&&(Rn==="visible"||br==="visible")?nb(br):t(99,Rn=br)),On||t(98,On=!0)}if(e.$$.dirty[0]&1|e.$$.dirty[1]&1073741824|e.$$.dirty[3]&2048&&q.json&&de&&!qs(q.json.extensions,Ns)){let Dt=t(104,Ns=q.json.extensions);gn().then(()=>{if(!(Dt!==Ns||!de)&&(Jf(),Array.isArray(q.json.extensions))){const br=jt.getExtensionContext(q);Me=q.json.extensions.map(Ir=>{var tn;const un=Ir.id;if(!un)return;const Br=jt.getExtension(un,Ir.params);return Br&&((tn=Br.mountView)==null||tn.call(Br,de,br)),Br}).filter(yi)}})}if(e.$$.dirty[0]&4097|e.$$.dirty[1]&4194304|e.$$.dirty[2]&1879113984|e.$$.dirty[3]&65601&&t(23,he={...Ce,...Nr,"parent-overlap":W,"scroll-snap":zt.scrollSnap,"hide-on-transition-in":_i||zn||ft,visibility:Rn,"has-action-animation":!!jr,"parent-flex":zt.parentContainerOrientation||void 0,"parent-grid":!!zt.gridArea||void 0,"has-custom-focus":!!(po&&q.json.focus)}),e.$$.dirty[3]&262528&&_e&&_e.rotation!==void 0){const Dt=_e.pivot_x||{type:"pivot-percentage",value:50};t(100,qr=so(Dt.value,qr));const br=Dt.type==="pivot-fixed"?we(qr):`${qr}%`,Ir=_e.pivot_y||{type:"pivot-percentage",value:50};t(101,gi=so(Ir.value,gi));const un=Ir.type==="pivot-fixed"?we(gi):`${gi}%`;t(102,pi=`${br} ${un}`),t(103,Ai=`rotate(${_e.rotation}deg)`)}e.$$.dirty[2]&10526720&&t(106,Ie=or||Yn?"100%":Tt||en?0:void 0),e.$$.dirty[1]&2097152|e.$$.dirty[2]&107900546|e.$$.dirty[3]&58911&&t(22,Te={...Ar,...cn,...Fr,width:bt,"min-width":P,"max-width":Ye,height:dn,"min-height":$r,"max-height":Gn||(Ar==null?void 0:Ar["max-height"]),"grid-area":U,padding:H,margin:se,opacity:Jn,transition:jr,"transform-origin":pi,transform:Ai,"flex-grow":Tt||en||void 0,"flex-shrink":Lt||_n?1:void 0,"flex-basis":Ie,"--divkit-animation-opacity-start":hi,"--divkit-animation-opacity-end":ue,"--divkit-animation-scale-start":Qt,"--divkit-animation-scale-end":hr})},[q,kr,st,lr,K,ti,Pi,J,xe,nt,Sr,_r,po,pt,ct,d,z,sn,ei,g,k,T,Te,he,X,Y,F,te,D,V,N,R,v,w,h,y,m,_,f,u,c,a,l,s,o,i,I,rt,qf,ob,sb,It,Ar,zt,Zr,Se,Ot,ur,Xe,ze,ht,de,kt,Fr,Er,xr,b,A,oe,se,Ce,bt,P,Ye,Rt,Tt,Lt,or,Nr,dn,$r,Gn,vn,en,_n,Yn,En,Jn,cn,ri,_i,zn,ft,jr,hi,ue,Qt,hr,On,Rn,qr,gi,pi,Ai,Ns,Sn,Ie,H,U,W,n,_e,We,qe,Ae,G,ne,Ve,ee,dt,$e,wt,at,Mt,Gt,ar,Re,ot,Yt,Wt,Ft,wr,Je,cr,ke]}class mn extends Or{constructor(r){super(),zr(this,r,Zd,Jd,mr,{componentContext:0,cls:1,style:52,layoutParams:53,customDescription:54,customPaddings:55,customActions:56,additionalPaddings:57,heightByAspect:58,parentOf:51,parentOfSimpleMode:59,replaceItems:60,hasInnerFocusable:2},null,[-1,-1,-1,-1,-1])}}const Hn={"text-range":"divkit-251c6",text:"divkit-6d029",text_halign_start:"divkit-d7771",text_halign_center:"divkit-11aee",text_halign_end:"divkit-a2b0d",text_valign_start:"divkit-b93c2",text_valign_center:"divkit-a5aa6",text_valign_end:"divkit-02228",text_valign_baseline:"divkit-c5739",text__inner:"divkit-ccc67",text_singleline:"divkit-a6f25",text_multiline:"divkit-b9e37",text_truncate_none:"divkit-fa1ec","text__inner_has-cloud-bg":"divkit-e75f8","text__inner_cloud-bg":"divkit-ca4e7",text__inner_gradient:"divkit-3f0b7","text__image-wrapper":"divkit-632c6","text__image-wrapper_crop":"divkit-9125a","text__image-wrapper_align_top":"divkit-6956e","text__image-wrapper_align_center":"divkit-2be31","text__image-wrapper_align_bottom":"divkit-1719d","text__image-wrapper_align_baseline":"divkit-a0e9f",text__image:"divkit-d491d",text__image_hidden:"divkit-f6859","text_has-focus-color":"divkit-32858"},xo={"text-range":"divkit-251c6","text-range_cloud":"divkit-96ef6","text-range_singleline":"divkit-645b9","text-range__top-offset":"divkit-13a2b","text-range_decoration_both":"divkit-9d257","text-range_decoration_underline":"divkit-c65cf","text-range_decoration_strike":"divkit-d264e","text-range_decoration_none":"divkit-2cfc4","text-range_align_top":"divkit-cb312","text-range_align_center":"divkit-640d4","text-range_align_bottom":"divkit-069e7","text-range_align_baseline":"divkit-3f853","text-range__cloud-svg":"divkit-82b28","text-range_relative-vertical-align":"divkit-98760"};function Wn(e,r){const t=Number(e);return Number.isNaN(t)||t<=0?r:t}function Qd(e){if(e==="light"||e==="medium"||e==="bold"||e==="regular")return e==="medium"?500:e==="bold"?700:e==="light"?300:400}function lo(e,r,t){return typeof r=="number"&&r>0?r:Qd(e)||t}function el(e,r){if(!e)return{};const t={};for(const n of["left","top","right","bottom","start","end"]){const i=e[n];i&&(t[n]=i*r)}return t}function Aa(e){let r,t,n,i,o,s,l;return{c(){r=nn("svg"),t=nn("defs"),n=nn("filter"),i=nn("feGaussianBlur"),o=nn("feColorMatrix"),l=nn("feBlend"),p(i,"in","SourceGraphic"),p(i,"result","blurred"),p(i,"stdDeviation","3"),p(o,"in","blurred"),p(o,"result","withMatrix"),p(o,"type","matrix"),p(o,"values",s="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 "+2*e[4]+" -"+e[4]),p(l,"in","SourceGraphic"),p(l,"in2","withMatrix"),p(n,"id",e[10]),p(r,"class",xo["text-range__cloud-svg"])},m(a,c){ie(a,r,c),At(r,t),At(t,n),At(n,i),At(n,o),At(n,l)},p(a,c){c&16&&s!==(s="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 "+2*a[4]+" -"+a[4])&&p(o,"values",s)},d(a){a&&re(r)}}}function ja(e){let r;return{c(){r=Le("span"),p(r,"class",xo["text-range__top-offset"]),O(r,"margin-top",e[8])},m(t,n){ie(t,r,n)},p(t,n){n&256&&O(r,"margin-top",t[8])},d(t){t&&re(r)}}}function xd(e){let r;return{c(){r=qn(e[1])},m(t,n){ie(t,r,n)},p(t,n){n&2&&Ei(r,t[1])},d(t){t&&re(r)}}}function $d(e){let r,t,n,i,o=e[3]&&e[5]&&Aa(e),s=e[8]&&ja(e);return n=new Qo({props:{componentContext:e[0],cls:gt("text-range",xo,e[7]),actions:e[2],style:Ct(e[6]),$$slots:{default:[xd]},$$scope:{ctx:e}}}),{c(){o&&o.c(),r=Zt(),s&&s.c(),t=Zt(),Bt(n.$$.fragment)},m(l,a){o&&o.m(l,a),ie(l,r,a),s&&s.m(l,a),ie(l,t,a),Pt(n,l,a),i=!0},p(l,[a]){l[3]&&l[5]?o?o.p(l,a):(o=Aa(l),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null),l[8]?s?s.p(l,a):(s=ja(l),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null);const c={};a&1&&(c.componentContext=l[0]),a&128&&(c.cls=gt("text-range",xo,l[7])),a&4&&(c.actions=l[2]),a&64&&(c.style=Ct(l[6])),a&1073741826&&(c.$$scope={dirty:a,ctx:l}),n.$set(c)},i(l){i||(B(n.$$.fragment,l),i=!0)},o(l){$(n.$$.fragment,l),i=!1},d(l){l&&(re(r),re(t)),o&&o.d(l),s&&s.d(l),Nt(n,l)}}}function e_(e,r,t){let n,i,o,s,l,a,c,u,f,_,{componentContext:m}=r,{text:y}=r,{rootFontSize:h}=r,{textStyles:w={}}=r,{singleline:v=!1}=r,{actions:R=void 0}=r,{cloudBg:N=!1}=r,{customLineHeight:V=null}=r;const D=Wr(Xr),te=D.direction;rn(e,te,be=>t(28,_=be));const F=N&&D.genId("text-range")||"";let Y="none",X=12,H=1.25,W="",U,he="",Ie="",Te=null,_e;return e.$$set=be=>{"componentContext"in be&&t(0,m=be.componentContext),"text"in be&&t(1,y=be.text),"rootFontSize"in be&&t(11,h=be.rootFontSize),"textStyles"in be&&t(12,w=be.textStyles),"singleline"in be&&t(13,v=be.singleline),"actions"in be&&t(2,R=be.actions),"cloudBg"in be&&t(3,N=be.cloudBg),"customLineHeight"in be&&t(14,V=be.customLineHeight)},e.$$.update=()=>{var be,_t,We,Oe,Fe,qe,Qe;if(e.$$.dirty&1&&m.json&&(t(15,Y="none"),t(16,X=12),t(17,H=1.25),t(18,W=""),t(19,U=void 0),t(20,he=""),t(21,Ie=""),t(22,Te=null),t(23,_e=void 0)),e.$$.dirty&4096){let Z="none";(w.underline||w.strike)&&(w.underline==="single"&&w.strike==="single"?Z="both":w.underline==="single"?Z="underline":w.strike==="single"&&(Z="strike")),t(15,Y=Z)}e.$$.dirty&69632&&t(16,X=Wn(w.font_size,X)),e.$$.dirty&69632&&In(w.line_height)&&t(17,H=Number(w.line_height)/X),e.$$.dirty&4096&&An(w.letter_spacing)&&t(18,W=we(w.letter_spacing)),e.$$.dirty&528384&&(t(19,U=lo(w.font_weight,w.font_weight_value,U)),typeof w.font_family=="string"&&w.font_family?t(20,he=D.typefaceProvider(w.font_family,{fontWeight:U||400})):t(20,he="")),e.$$.dirty&2101256&&t(21,Ie=N?"transparent":Cr(w.text_color,1,Ie)),e.$$.dirty&4096&&t(8,n=w.top_offset?we(w.top_offset):""),e.$$.dirty&4096&&t(5,i=((be=w.background)==null?void 0:be.type)==="cloud"),e.$$.dirty&4096&&t(26,o=((_t=w.background)==null?void 0:_t.type)==="cloud"?w.background.paddings:void 0),e.$$.dirty&4096&&t(24,s=((We=w.background)==null?void 0:We.type)==="solid"?Jo([w.background]):null),e.$$.dirty&4096&&((Oe=w.border)!=null&&Oe.stroke&&w.border.stroke.color&&Cr(w.border.stroke.color)!=="transparent"&&In(w.border.stroke.width)&&((Fe=w.background)==null?void 0:Fe.type)!=="cloud"?t(22,Te={color:w.border.stroke.color,width:w.border.stroke.width,corner_radius:w.border.corner_radius}):t(22,Te=null)),e.$$.dirty&4198440&&t(4,l=N?i&&w.background.corner_radius||0:Te?Wn(Te.corner_radius,0):0),e.$$.dirty&69632&&t(25,a=w.text_shadow?Id(w.text_shadow,X):void 0),e.$$.dirty&4096&&typeof w.baseline_offset=="number"&&t(23,_e=w.baseline_offset),e.$$.dirty&4096&&t(27,c=typeof w.baseline_offset=="number"?void 0:w.alignment_vertical),e.$$.dirty&142663712&&t(7,u={singleline:v,decoration:Y,align:c,cloud:i,"relative-vertical-align":!!(V&&_e)}),e.$$.dirty&536827960&&t(6,f={"font-size":we(X*10/h),"line-height":c?"normal":H,"letter-spacing":W,"font-weight":U,"font-family":he,"vertical-align":V||_e===void 0?void 0:we(_e*10/X),top:V&&_e!==void 0?we(-_e*10/X):void 0,margin:o?si(el(o,-10/X),_):void 0,padding:o?si(el(o,10/X),_):void 0,filter:N&&i?`url(#${F})`:a,color:Ie,background:N?i?hd(w.background.color,255,"transparent"):void 0:(s==null?void 0:s.color)||void 0,opacity:N&&i?((Qe=(qe=bi(w.background.color))==null?void 0:qe.a)!=null?Qe:255)/255:void 0,"box-shadow":Te?`inset 0 0 0 ${we(Te.width*10/X)} ${Te.color}`:void 0,"border-radius":l?we(l*10/X):void 0,"font-feature-settings":w.font_feature_settings||void 0})},[m,y,R,N,l,i,f,u,n,te,F,h,w,v,V,Y,X,H,W,U,he,Ie,Te,_e,s,a,o,c,_]}class tl extends Or{constructor(r){super(),zr(this,r,e_,$d,mr,{componentContext:0,text:1,rootFontSize:11,textStyles:12,singleline:13,actions:2,cloudBg:3,customLineHeight:14})}}function rl(e,r,t){return e==="left"||e==="center"||e==="right"||e==="start"||e==="end"?e==="left"?r==="ltr"?"start":"end":e==="right"?r==="ltr"?"end":"start":e:t}function nl(e,r){return e==="top"||e==="center"||e==="bottom"||e==="baseline"?e==="top"?"start":e==="bottom"?"end":e:r}function t_(e){return String(e!=null?e:"")}function Ca(e,r){return e==="source_in"||e==="source_atop"||e==="darken"||e==="lighten"||e==="multiply"||e==="screen"?e:r}function $o(e,r){let t;return function(...n){t!==null&&clearTimeout(t),t=setTimeout(()=>{e.apply(this,n),t=null},r)}}function r_(e,r){let t=null;const n=()=>{const l=getComputedStyle(e),a=parseFloat(l.lineHeight);e.style.webkitLineClamp="",e.style.maxHeight="";const c=e.offsetHeight,u=e.scrollHeight;let f=Math.max(1,Math.floor(c/a));r.maxLines&&r.maxLines<f&&(f=r.maxLines),u>f*a+1e-9&&(e.style.webkitLineClamp=String(f),e.style.maxHeight=a*f+"px")},i=$o(n,50),o=()=>{t&&(t.disconnect(),t=null)},s=()=>{if(o(),r.enabled){if(n(),typeof ResizeObserver<"u"){t=new ResizeObserver(i);const l=e.parentElement;l&&t.observe(l)}}else e.style.webkitLineClamp=String(r.lineClamp||"")};return s(),{update(l){r=l,s()},destroy(){o()}}}const{Boolean:Ea}=ni;function Sa(e,r,t){const n=e.slice();return n[64]=r[t],n}function Va(e,r,t){const n=e.slice();return n[64]=r[t],n}function Ia(e){let r,t,n,i,o=nr(e[12]),s=[];for(let a=0;a<o.length;a+=1)s[a]=Da(Va(e,o,a));const l=a=>$(s[a],1,1,()=>{s[a]=null});return{c(){r=Le("span");for(let a=0;a<s.length;a+=1)s[a].c();p(r,"class",t=gt("text__inner",Hn,{...e[15],"cloud-bg":!0})),p(r,"style",n=Ct({...e[14],padding:e[13]}))},m(a,c){ie(a,r,c);for(let u=0;u<s.length;u+=1)s[u]&&s[u].m(r,null);i=!0},p(a,c){if(c[0]&5257){o=nr(a[12]);let u;for(u=0;u<o.length;u+=1){const f=Va(a,o,u);s[u]?(s[u].p(f,c),B(s[u],1)):(s[u]=Da(f),s[u].c(),B(s[u],1),s[u].m(r,null))}for(tr(),u=o.length;u<s.length;u+=1)l(u);rr()}(!i||c[0]&32768&&t!==(t=gt("text__inner",Hn,{...a[15],"cloud-bg":!0})))&&p(r,"class",t),(!i||c[0]&24576&&n!==(n=Ct({...a[14],padding:a[13]})))&&p(r,"style",n)},i(a){if(!i){for(let c=0;c<o.length;c+=1)B(s[c]);i=!0}},o(a){s=s.filter(Ea);for(let c=0;c<s.length;c+=1)$(s[c]);i=!1},d(a){a&&re(r),ln(s,a)}}}function n_(e){let r,t,n,i,o;return{c(){r=Le("span"),t=Le("span"),p(t,"class",n=gt("text__image-wrapper",Hn,{align:e[64].image.verticalAlign,crop:e[10]!==null})),p(t,"style",i=Ct({width:e[64].image.width,height:e[10]&&e[64].image.verticalAlign!=="baseline"?e[10]+"em":void 0})),p(r,"style",o=Ct(e[64].image.wrapperStyle))},m(s,l){ie(s,r,l),At(r,t)},p(s,l){l[0]&5120&&n!==(n=gt("text__image-wrapper",Hn,{align:s[64].image.verticalAlign,crop:s[10]!==null}))&&p(t,"class",n),l[0]&5120&&i!==(i=Ct({width:s[64].image.width,height:s[10]&&s[64].image.verticalAlign!=="baseline"?s[10]+"em":void 0}))&&p(t,"style",i),l[0]&4096&&o!==(o=Ct(s[64].image.wrapperStyle))&&p(r,"style",o)},i:C,o:C,d(s){s&&re(r)}}}function i_(e){let r,t,n=e[64].text&&Ta(e);return{c(){n&&n.c(),r=Zt()},m(i,o){n&&n.m(i,o),ie(i,r,o),t=!0},p(i,o){i[64].text?n?(n.p(i,o),o[0]&4096&&B(n,1)):(n=Ta(i),n.c(),B(n,1),n.m(r.parentNode,r)):n&&(tr(),$(n,1,1,()=>{n=null}),rr())},i(i){t||(B(n),t=!0)},o(i){$(n),t=!1},d(i){i&&re(r),n&&n.d(i)}}}function Ta(e){let r,t;return r=new tl({props:{componentContext:e[0],text:e[64].text,rootFontSize:e[3],textStyles:e[64].textStyles,singleline:e[7],cloudBg:!0}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&4096&&(o.text=n[64].text),i[0]&8&&(o.rootFontSize=n[3]),i[0]&4096&&(o.textStyles=n[64].textStyles),i[0]&128&&(o.singleline=n[7]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function Da(e){let r,t,n,i;const o=[i_,n_],s=[];function l(a,c){return"text"in a[64]?0:a[64].image?1:-1}return~(r=l(e))&&(t=s[r]=o[r](e)),{c(){t&&t.c(),n=Zt()},m(a,c){~r&&s[r].m(a,c),ie(a,n,c),i=!0},p(a,c){let u=r;r=l(a),r===u?~r&&s[r].p(a,c):(t&&(tr(),$(s[u],1,1,()=>{s[u]=null}),rr()),~r?(t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(B(t),i=!0)},o(a){$(t),i=!1},d(a){a&&re(n),~r&&s[r].d(a)}}}function o_(e){let r,t;return r=new tl({props:{componentContext:e[0],text:e[2],rootFontSize:e[3],textStyles:e[8],singleline:e[7],customLineHeight:e[10]}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&4&&(o.text=n[2]),i[0]&8&&(o.rootFontSize=n[3]),i[0]&256&&(o.textStyles=n[8]),i[0]&128&&(o.singleline=n[7]),i[0]&1024&&(o.customLineHeight=n[10]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function s_(e){let r,t,n=nr(e[12]),i=[];for(let s=0;s<n.length;s+=1)i[s]=Ma(Sa(e,n,s));const o=s=>$(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();r=Zt()},m(s,l){for(let a=0;a<i.length;a+=1)i[a]&&i[a].m(s,l);ie(s,r,l),t=!0},p(s,l){if(l[0]&5257|l[1]&8){n=nr(s[12]);let a;for(a=0;a<n.length;a+=1){const c=Sa(s,n,a);i[a]?(i[a].p(c,l),B(i[a],1)):(i[a]=Ma(c),i[a].c(),B(i[a],1),i[a].m(r.parentNode,r))}for(tr(),a=n.length;a<i.length;a+=1)o(a);rr()}},i(s){if(!t){for(let l=0;l<n.length;l+=1)B(i[l]);t=!0}},o(s){i=i.filter(Ea);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(s){s&&re(r),ln(i,s)}}}function l_(e){let r,t,n,i,o,s,l,a,c,u,f,_,m,y=[{class:i=Hn.text__image},{src:o=e[64].image.url},{loading:s=e[64].image.preloadRequired?"eager":"lazy"},{decoding:"async"},{alt:l=e[64].image.description},e[64].image.a11yAttrs,{style:a=Ct({height:e[64].image.height,filter:e[64].image.svgFilterId?`url(#${e[64].image.svgFilterId})`:void 0})}],h={};for(let w=0;w<y.length;w+=1)h=Bn(h,y[w]);return{c(){r=Le("span"),t=Le("span"),n=Le("img"),Kn(n,h),p(t,"class",c=gt("text__image-wrapper",Hn,{align:e[64].image.verticalAlign,crop:e[10]!==null})),p(t,"style",u=Ct({width:e[64].image.width,height:e[10]&&e[64].image.verticalAlign!=="baseline"?e[10]+"em":void 0})),p(r,"style",f=Ct(e[64].image.wrapperStyle))},m(w,v){ie(w,r,v),At(r,t),At(t,n),_||(m=He(n,"error",e[34]),_=!0)},p(w,v){Kn(n,h=io(y,[{class:i},v[0]&4096&&!Dn(n.src,o=w[64].image.url)&&{src:o},v[0]&4096&&s!==(s=w[64].image.preloadRequired?"eager":"lazy")&&{loading:s},{decoding:"async"},v[0]&4096&&l!==(l=w[64].image.description)&&{alt:l},v[0]&4096&&w[64].image.a11yAttrs,v[0]&4096&&a!==(a=Ct({height:w[64].image.height,filter:w[64].image.svgFilterId?`url(#${w[64].image.svgFilterId})`:void 0}))&&{style:a}])),v[0]&5120&&c!==(c=gt("text__image-wrapper",Hn,{align:w[64].image.verticalAlign,crop:w[10]!==null}))&&p(t,"class",c),v[0]&5120&&u!==(u=Ct({width:w[64].image.width,height:w[10]&&w[64].image.verticalAlign!=="baseline"?w[10]+"em":void 0}))&&p(t,"style",u),v[0]&4096&&f!==(f=Ct(w[64].image.wrapperStyle))&&p(r,"style",f)},i:C,o:C,d(w){w&&re(r),_=!1,m()}}}function a_(e){let r,t,n=e[64].text&&Fa(e);return{c(){n&&n.c(),r=Zt()},m(i,o){n&&n.m(i,o),ie(i,r,o),t=!0},p(i,o){i[64].text?n?(n.p(i,o),o[0]&4096&&B(n,1)):(n=Fa(i),n.c(),B(n,1),n.m(r.parentNode,r)):n&&(tr(),$(n,1,1,()=>{n=null}),rr())},i(i){t||(B(n),t=!0)},o(i){$(n),t=!1},d(i){i&&re(r),n&&n.d(i)}}}function Fa(e){let r,t;return r=new tl({props:{componentContext:e[0],text:e[64].text,rootFontSize:e[3],textStyles:e[64].textStyles,singleline:e[7],actions:e[64].actions,customLineHeight:e[10]}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&4096&&(o.text=n[64].text),i[0]&8&&(o.rootFontSize=n[3]),i[0]&4096&&(o.textStyles=n[64].textStyles),i[0]&128&&(o.singleline=n[7]),i[0]&4096&&(o.actions=n[64].actions),i[0]&1024&&(o.customLineHeight=n[10]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function Ma(e){let r,t,n,i;const o=[a_,l_],s=[];function l(a,c){return"text"in a[64]?0:a[64].image?1:-1}return~(r=l(e))&&(t=s[r]=o[r](e)),{c(){t&&t.c(),n=Zt()},m(a,c){~r&&s[r].m(a,c),ie(a,n,c),i=!0},p(a,c){let u=r;r=l(a),r===u?~r&&s[r].p(a,c):(t&&(tr(),$(s[u],1,1,()=>{s[u]=null}),rr()),~r?(t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(B(t),i=!0)},o(a){$(t),i=!1},d(a){a&&re(n),~r&&s[r].d(a)}}}function c_(e){let r,t,n,i,o,s,l,a,c,u,f=e[6]&&Ia(e);const _=[s_,o_],m=[];function y(h,w){return h[12].length?0:1}return n=y(e),i=m[n]=_[n](e),{c(){f&&f.c(),r=pr(),t=Le("span"),i.c(),p(t,"class",o=gt("text__inner",Hn,e[15])),p(t,"style",s=Ct(e[14]))},m(h,w){f&&f.m(h,w),ie(h,r,w),ie(h,t,w),m[n].m(t,null),a=!0,c||(u=Ro(l=r_.call(null,t,{enabled:e[9],lineClamp:typeof e[4]=="number"?e[4]:void 0,maxLines:e[11]})),c=!0)},p(h,w){h[6]?f?(f.p(h,w),w[0]&64&&B(f,1)):(f=Ia(h),f.c(),B(f,1),f.m(r.parentNode,r)):f&&(tr(),$(f,1,1,()=>{f=null}),rr());let v=n;n=y(h),n===v?m[n].p(h,w):(tr(),$(m[v],1,1,()=>{m[v]=null}),rr(),i=m[n],i?i.p(h,w):(i=m[n]=_[n](h),i.c()),B(i,1),i.m(t,null)),(!a||w[0]&32768&&o!==(o=gt("text__inner",Hn,h[15])))&&p(t,"class",o),(!a||w[0]&16384&&s!==(s=Ct(h[14])))&&p(t,"style",s),l&&vr(l.update)&&w[0]&2576&&l.update.call(null,{enabled:h[9],lineClamp:typeof h[4]=="number"?h[4]:void 0,maxLines:h[11]})},i(h){a||(B(f),B(i),a=!0)},o(h){$(f),$(i),a=!1},d(h){h&&(re(r),re(t)),f&&f.d(h),m[n].d(),c=!1,u()}}}function u_(e){let r,t;return r=new mn({props:{cls:gt("text",Hn,e[16])+" "+(e[5]?xt.root__selectable:xt.root__unselectable),componentContext:e[0],layoutParams:e[1],$$slots:{default:[c_]},$$scope:{ctx:e}}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&65568&&(o.cls=gt("text",Hn,n[16])+" "+(n[5]?xt.root__selectable:xt.root__unselectable)),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&65501|i[2]&128&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function f_(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R,N,V,D,te,F,Y,X,H,W,U,he=C,Ie=()=>(he(),he=M(R,Je=>t(47,U=Je)),R),Te,_e=C,be=()=>(_e(),_e=M(s,Je=>t(8,Te=Je)),s),_t,We=C,Oe=()=>(We(),We=M(o,Je=>t(48,_t=Je)),o),Fe,qe=C,Qe=()=>(qe(),qe=M(i,Je=>t(49,Fe=Je)),i),Z,Ae=C,ge=()=>(Ae(),Ae=M(w,Je=>t(50,Z=Je)),w),et,G=C,Ee=()=>(G(),G=M(h,Je=>t(51,et=Je)),h),Ue,ne=C,it=()=>(ne(),ne=M(y,Je=>t(52,Ue=Je)),y),je,Ve=C,yt=()=>(Ve(),Ve=M(m,Je=>t(53,je=Je)),m),Vt,ee=C,tt=()=>(ee(),ee=M(_,Je=>t(54,Vt=Je)),_),lt,dt=C,Ge=()=>(dt(),dt=M(c,Je=>t(55,lt=Je)),c),E,$e=C,le=()=>($e(),$e=M(f,Je=>t(56,E=Je)),f),Ke,wt=C,fe=()=>(wt(),wt=M(u,Je=>t(57,Ke=Je)),u),me,at=C,Ze=()=>(at(),at=M(v,Je=>t(9,me=Je)),v),$t,Mt=C,qt=()=>(Mt(),Mt=M(a,Je=>t(58,$t=Je)),a),Pe,pt=C,Ut=()=>(pt(),pt=M(l,Je=>t(59,Pe=Je)),l),Ht,Gt=C,L=()=>(Gt(),Gt=M(n,Je=>t(60,Ht=Je)),n);e.$$.on_destroy.push(()=>he()),e.$$.on_destroy.push(()=>_e()),e.$$.on_destroy.push(()=>We()),e.$$.on_destroy.push(()=>qe()),e.$$.on_destroy.push(()=>Ae()),e.$$.on_destroy.push(()=>G()),e.$$.on_destroy.push(()=>ne()),e.$$.on_destroy.push(()=>Ve()),e.$$.on_destroy.push(()=>ee()),e.$$.on_destroy.push(()=>dt()),e.$$.on_destroy.push(()=>$e()),e.$$.on_destroy.push(()=>wt()),e.$$.on_destroy.push(()=>at()),e.$$.on_destroy.push(()=>Mt()),e.$$.on_destroy.push(()=>pt()),e.$$.on_destroy.push(()=>Gt());let{componentContext:ae}=r,{layoutParams:ar=void 0}=r;const ve=Wr(Xr),Et=ve.direction;rn(e,Et,Je=>t(46,W=Je));let Re="",mt=12,Ne=1.25,ot=null,vt="",De,ct="",Yt=!1,sr="start",dr="start",Wt="",ut="",St="",Ft=!1,er=[],ir=!1,wr=[];function Pr(Je,cr,ke,q){let kr=[];if(wr.forEach(([Xe,It])=>{ve.removeSvgFilter(Xe,It)}),wr=[],!(Array.isArray(cr)&&cr.length||Array.isArray(ke)&&ke.length&&Je)){t(12,er=[]);return}const Ar=Je;let zt=cr||[{start:0,end:Ar.length}],Zr=ke||[],Se=0,Ot=[],ur=[];zt.forEach(Xe=>{const It=Xe.start||0,ze=Xe.end||Je.length,ht={top_offset:0,...Xe,start:It,end:ze};ur.push({index:It,range:ht,type:"rangeStart",isStart:!0}),ur.push({index:ze,range:ht,type:"rangeEnd"})}),Zr.forEach((Xe,It)=>{Xe.start!==void 0&&Xe.url&&Xe.start<=Ar.length&&ur.push({index:Xe.indexing_direction==="reversed"?Je.length-Xe.start:Xe.start,image:Xe,type:"image",arrayIndex:It})}),ur.sort((Xe,It)=>Xe.index===It.index?Xe.type!==It.type?Xe.type==="image"?-1:It.type==="image"?1:Xe.type<It.type?-1:1:Xe.type==="image"&&It.type==="image"?It.arrayIndex-Xe.arrayIndex:Xe.type==="rangeStart"&&It.type==="rangeStart"?Xe.range.end-It.range.end:Xe.type==="rangeStart"?1:It.type==="rangeStart"?-1:Xe.type!=="image"&&It.type!=="image"?Xe.range.start-It.range.start:0:Xe.index-It.index),ur.forEach(Xe=>{var ht,st,jt,Jt;let It=Xe.type==="image"?null:Xe.range,ze=Xe.index;if(ze>Se){let I=Object.assign({...q},...Ot);Ot.length&&Ot[Ot.length-1].start!==Se&&(I.top_offset=0),kr.push({text:Ar.substring(Se,ze),textStyles:I,actions:Xe.type==="rangeEnd"&&((st=(ht=Xe.range)==null?void 0:ht.actions)==null?void 0:st.filter(jn))||void 0})}if(Xe.type==="rangeStart"&&It)Ot.push(It);else if(Xe.type==="rangeEnd")Ot=Ot.filter(I=>I!==Xe.range);else if(Xe.type==="image"){let I=Object.assign({...q},...Ot),rt=we((Xe.image.width&&Xe.image.width.value||20)*10/(I.font_size||12)),de=we((Xe.image.height&&Xe.image.height.value||20)*10/(I.font_size||12));const d={"font-size":we((Number(I.font_size)||12)*10/mt)};let Me="";const kt=Xe.image.tint_color,Fr=Ca(Xe.image.tint_mode,"source_in");if(kt){const xr=Cr(Xe.image.tint_color);Me=ve.addSvgFilter(xr,Fr),wr.push([xr,Fr])}const lr={},z=(jt=Xe.image.accessibility)==null?void 0:jt.type,Er=((Jt=Xe.image.accessibility)==null?void 0:Jt.description)||"";(z==="button"||z==="image")&&Er?lr.role=z:(!Er||z==="none")&&(lr["aria-hidden"]="true"),kr.push({image:{url:Xe.image.url,width:rt,height:de,wrapperStyle:d,svgFilterId:Me,preloadRequired:!!Xe.image.preload_required,verticalAlign:Xe.image.alignment_vertical,description:Er,a11yAttrs:lr}})}Se=ze}),Se<Ar.length&&kr.push({text:Ar.substring(Se),textStyles:{...q}}),t(12,er=kr),t(6,ir=kr.some(Xe=>{var It;return"text"in Xe&&((It=Xe.textStyles.background)==null?void 0:It.type)==="cloud"}))}function Jr(Je){Je.target&&"classList"in Je.target&&Je.target.classList.add(Hn.text__image_hidden)}return on(()=>{wr.forEach(([Je,cr])=>{ve.removeSvgFilter(Je,cr)})}),e.$$set=Je=>{"componentContext"in Je&&t(0,ae=Je.componentContext),"layoutParams"in Je&&t(1,ar=Je.layoutParams)},e.$$.update=()=>{if(e.$$.dirty[0]&1&&ae.json&&(t(3,mt=12),t(35,Ne=1.25),t(10,ot=null),t(36,vt=""),t(11,De=void 0),t(4,ct=""),t(37,Yt=!1),t(38,sr="start"),t(39,dr="start"),t(40,Wt=""),t(42,St=""),t(5,Ft=!1)),e.$$.dirty[0]&1&&L(t(32,n=ae.getDerivedFromVars(ae.json.text))),e.$$.dirty[0]&1&&Qe(t(31,i=ae.getDerivedFromVars(ae.json.ranges))),e.$$.dirty[0]&1&&Oe(t(30,o=ae.getDerivedFromVars(ae.json.images))),e.$$.dirty[0]&1&&be(t(29,s=ae.getDerivedFromVars({font_size:ae.json.font_size,letter_spacing:ae.json.letter_spacing,font_weight:ae.json.font_weight,font_weight_value:ae.json.font_weight_value,font_family:ae.json.font_family,text_color:ae.json.text_color,underline:ae.json.underline,strike:ae.json.strike,line_height:ae.json.line_height,text_shadow:ae.json.text_shadow,font_feature_settings:ae.json.font_feature_settings}))),e.$$.dirty[0]&1&&Ut(t(28,l=ae.getDerivedFromVars(ae.json.font_size))),e.$$.dirty[0]&1&&qt(t(27,a=ae.getDerivedFromVars(ae.json.line_height))),e.$$.dirty[0]&1&&Ge(t(26,c=ae.getDerivedFromVars(ae.json.max_lines))),e.$$.dirty[0]&1&&fe(t(25,u=ae.getDerivedFromVars(ae.json.text_alignment_horizontal))),e.$$.dirty[0]&1&&le(t(24,f=ae.getDerivedFromVars(ae.json.text_alignment_vertical))),e.$$.dirty[0]&1&&tt(t(23,_=ae.getDerivedFromVars(ae.json.text_color))),e.$$.dirty[0]&1&&yt(t(22,m=ae.getDerivedFromVars(ae.json.focused_text_color))),e.$$.dirty[0]&1&&it(t(21,y=ae.getDerivedFromVars(ae.json.truncate))),e.$$.dirty[0]&1&&Ee(t(20,h=ae.getDerivedFromVars(ae.json.text_gradient))),e.$$.dirty[0]&1&&ge(t(19,w=ae.getDerivedFromVars(ae.json.selectable))),e.$$.dirty[0]&1&&Ze(t(18,v=ae.getDerivedFromVars(ae.json.auto_ellipsize))),e.$$.dirty[0]&1&&Ie(t(17,R=ae.getDerivedFromVars(ae.json.paddings))),e.$$.dirty[0]&1|e.$$.dirty[1]&536870912&&(typeof ae.json.text=="string"?t(2,Re=t_(Ht)):(t(2,Re=""),ae.logError(Q(new Error("Incorrect text value type"))))),e.$$.dirty[0]&8|e.$$.dirty[1]&268435456&&t(3,mt=Wn(Pe,mt)),e.$$.dirty[0]&8|e.$$.dirty[1]&134217744){const Je=$t;In(Je)?(t(35,Ne=Number(Je)/mt),t(10,ot=Ne)):t(10,ot=null)}if(e.$$.dirty[1]&16777216&&t(7,N=lt===1),e.$$.dirty[0]&512|e.$$.dirty[1]&16777232){let Je="",cr,ke="",q=!1;if(lt&<>1){const kr=Number(lt);Je=kr*Ne+"em",cr=kr,ke=kr,q=!0}else me&<!==1&&(q=!0);t(36,vt=Je),t(11,De=cr),t(4,ct=ke),t(37,Yt=q)}if(e.$$.dirty[1]&67141760&&t(38,sr=rl(Ke,W,sr)),e.$$.dirty[1]&33554688&&t(39,dr=nl(E,dr)),e.$$.dirty[0]&4|e.$$.dirty[1]&262144&&t(45,V=!Fe||Re&&Fe.length===1&&Fe[0]&&(!Fe[0].start||Fe[0].start===0)&&(!Fe[0].end||typeof Fe[0].end=="number"&&Fe[0].end>=Re.length)),e.$$.dirty[1]&8650752&&t(44,D=!!Vt!=!!(Fe&&Fe[0]&&Fe[0].text_color)),e.$$.dirty[1]&25453056){let Je="";lt&&V&&D&&(Je=Cr(Vt||Fe&&Fe[0]&&Fe[0].text_color,1,Wt)),t(40,Wt=Je)}if(e.$$.dirty[1]&4195328&&t(41,ut=Cr(je,1,ut)),e.$$.dirty[1]&2097152&&t(43,te=Ue==="none"?"none":""),e.$$.dirty[1]&1048576){let Je="";if(et){const cr=Jo([et]);cr.image&&(Je=cr.image)}t(42,St=Je)}e.$$.dirty[0]&32|e.$$.dirty[1]&524288&&t(5,Ft=Zn(Z,Ft)),e.$$.dirty[0]&260|e.$$.dirty[1]&393216&&Pr(Re,Fe,_t,Te),e.$$.dirty[0]&128|e.$$.dirty[1]&5568&&t(16,F={singleline:N,multiline:Yt,halign:sr,valign:dr,truncate:te,"has-focus-color":!!ut}),e.$$.dirty[0]&64|e.$$.dirty[1]&2048&&t(15,Y={gradient:!!St,"has-cloud-bg":ir}),e.$$.dirty[0]&24|e.$$.dirty[1]&3632&&t(14,X={"font-size":we(mt),"line-height":Ne,"max-height":vt,"-webkit-line-clamp":ct,color:Wt,"background-image":St,"--divkit-text-focus-color":ut}),e.$$.dirty[0]&8|e.$$.dirty[1]&98304&&t(13,H=si(el(vo(U,{})||{},10/mt),W))},[ae,ar,Re,mt,ct,Ft,ir,N,Te,me,ot,De,er,H,X,Y,F,R,v,w,h,y,m,_,f,u,c,a,l,s,o,i,n,Et,Jr,Ne,vt,Yt,sr,dr,Wt,ut,St,te,D,V,W,U,_t,Fe,Z,et,Ue,je,Vt,lt,E,Ke,$t,Pe,Ht]}class d_ extends Or{constructor(r){super(),zr(this,r,f_,u_,mr,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const Pa={container:"divkit-a6270",container_wrap:"divkit-758dd",container_overflow_visible:"divkit-34175",container_orientation_vertical:"divkit-5d3b3",container_valign_start:"divkit-76f26",container_valign_center:"divkit-71fc3",container_valign_end:"divkit-d66e1","container_valign_space-between":"divkit-4aa6d","container_valign_space-around":"divkit-846d1","container_valign_space-evenly":"divkit-e04b5",container_halign_start:"divkit-4d9fa",container_halign_center:"divkit-f82bf",container_halign_end:"divkit-221f7","container_halign_space-between":"divkit-2daed","container_halign_space-around":"divkit-359ca","container_halign_space-evenly":"divkit-82605",container_orientation_horizontal:"divkit-88fee",container_orientation_overlap:"divkit-825b7"};function Na(e){return{top:Number(e==null?void 0:e.top)||0,right:Number(e==null?void 0:e.right)||0,bottom:Number(e==null?void 0:e.bottom)||0,left:Number(e==null?void 0:e.left)||0}}function za(e,r,t){const n=((r==null?void 0:r.margins.left)||0)+((r==null?void 0:r.margins.right)||0),i=((r==null?void 0:r.margins.top)||0)+((r==null?void 0:r.margins.bottom)||0);r!=null&&r.show_at_start&&(t?e.top=r.style.height+i:e.left=r.style.width+n),r!=null&&r.show_at_end&&(t?e.bottom=r.style.height+i:e.right=r.style.width+n)}function __(e,r,t){const n={};return za(n,r,e==="vertical"),za(n,t,e==="horizontal"),n}function h_(e,r,t){let n;const i=((r==null?void 0:r.margins.left)||0)+((r==null?void 0:r.margins.right)||0),o=((r==null?void 0:r.margins.top)||0)+((r==null?void 0:r.margins.bottom)||0),s=((t==null?void 0:t.margins.left)||0)+((t==null?void 0:t.margins.right)||0),l=((t==null?void 0:t.margins.top)||0)+((t==null?void 0:t.margins.bottom)||0);return e==="horizontal"?n=[t!=null&&t.show_between?t.style.height+l:0,r!=null&&r.show_between?r.style.width+i:0]:n=[r!=null&&r.show_between?r.style.height+o:0,t!=null&&t.show_between?t.style.width+s:0],n.map(we).join(" ")}function g_(e){var t;const r=(t=e.width)==null?void 0:t.type;return r!=="wrap_content"&&r!=="fixed"}function p_(e){var t;return((t=e.height)==null?void 0:t.type)==="match_parent"}function m_(e,r){return e==="vertical"||e==="horizontal"||e==="overlap"?e:r}function b_(e){var r,t,n;return{width:Ur((r=e.item_width)==null?void 0:r.value,10),height:Ur((t=e.item_height)==null?void 0:t.value,10),radius:Ur((n=e.corner_radius)==null?void 0:n.value,5)}}function y_(e){var t;const r=Ur((t=e.radius)==null?void 0:t.value,10)*2;return{width:r,height:r,radius:r}}function w_(e,r,t){var a;const n={},i=r.stroke||(t==null?void 0:t.stroke),o=i!=null&&i.color?Cr(i.color):"",s=i!=null&&i.width?Number((a=i.width)!=null?a:1):"";n.width=e.width,n.height=e.height,n.borderRadius=e.radius;const l=r.background_color||(t==null?void 0:t.color);return n.background=Cr(l),o&&s&&(n.boxShadow=`inset 0 0 0 ${we(s)} ${o}`),n}function Qn(e,r,t){if(!e||!e.shape||!e.shape.type||!r.includes(e.shape.type)||e.type!=="shape_drawable")return t;let n;if(e.shape.type==="rounded_rectangle")n=b_(e.shape);else if(e.shape.type==="circle")n=y_(e.shape);else return t;return w_(n,e.shape,{color:e.color,stroke:e.stroke})}let ko;function Oa(){if(typeof document>"u"&&(ko=!0),ko!==void 0)return ko;const e=document.createElement("div");return e.style.position="absolute",e.style.display="flex",e.style.flexDirection="column",e.style.gap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),ko=e.scrollHeight===1,document.body.removeChild(e),ko}function v_(e,r){return e==="top"||e==="center"||e==="bottom"||e==="baseline"||e==="space-between"||e==="space-around"||e==="space-evenly"?e==="top"?"start":e==="bottom"?"end":e:r}function k_(e,r,t){return e==="left"||e==="center"||e==="right"||e==="space-between"||e==="space-around"||e==="space-evenly"||e==="start"||e==="end"?e==="left"?r==="ltr"?"start":"end":e==="right"?r==="ltr"?"end":"start":e:t}function A_(){}function Hi(e){return{subscribe(r){return r(e),A_}}}function il(e,r,t,n){const i=[],o=n.prototypes;return o&&e.forEach((s,l)=>{if(s===null||typeof s!="object")return;const a=r.preparePrototypeVariables(n.data_element_name||"it",s,l);let c,u;for(let f=0;f<o.length;++f){const _=o[f];if(!_.div)continue;if(_.selector===void 0){c=_.div,u=t.getJsonWithVars(_.id,a);break}if(t.getJsonWithVars(_.selector,a)){c=_.div,u=t.getJsonWithVars(_.id,a);break}}c&&i.push({div:c,id:u,vars:a})}),i}const Ao={"container-separator":"divkit-e4041","container-separator__item":"divkit-566e3","container-separator__shape":"divkit-4178a"};function j_(e,r){let t=0,n,i=!1;return function(){const o=Date.now();return!t||Math.abs(o-t)>r?(t=o,n=e.apply(this,arguments)):(i||(i=!0,setTimeout(()=>{i=!1,n=e.apply(this,arguments)},r)),n)}}function C_(e){const r=e.getBoundingClientRect(),t=getComputedStyle(e);return{top:r.top-parseFloat(t.marginTop),right:r.right+parseFloat(t.marginRight),bottom:r.bottom+parseFloat(t.marginBottom),left:r.left-parseFloat(t.marginLeft)}}const{window:E_}=ni;function Ra(e,r,t){const n=e.slice();return n[16]=r[t],n}function La(e){let r,t,n=`${e[16].style.width}px`,i=`${e[16].style.height}px`,o=`${e[16].style.borderRadius}px`,s,l=`${e[16].left}px`,a=`${e[16].top}px`,c=`${e[16].width}px`,u=`${e[16].height}px`;return{c(){r=Le("div"),t=Le("div"),s=pr(),p(t,"class",Ao["container-separator__shape"]),O(t,"width",n),O(t,"height",i),O(t,"border-radius",o),O(t,"background",e[16].style.background),O(t,"box-shadow",e[16].style.boxShadow),p(r,"class",Ao["container-separator__item"]),O(r,"left",l),O(r,"top",a),O(r,"width",c),O(r,"height",u)},m(f,_){ie(f,r,_),At(r,t),At(r,s)},p(f,_){_&2&&n!==(n=`${f[16].style.width}px`)&&O(t,"width",n),_&2&&i!==(i=`${f[16].style.height}px`)&&O(t,"height",i),_&2&&o!==(o=`${f[16].style.borderRadius}px`)&&O(t,"border-radius",o),_&2&&O(t,"background",f[16].style.background),_&2&&O(t,"box-shadow",f[16].style.boxShadow),_&2&&l!==(l=`${f[16].left}px`)&&O(r,"left",l),_&2&&a!==(a=`${f[16].top}px`)&&O(r,"top",a),_&2&&c!==(c=`${f[16].width}px`)&&O(r,"width",c),_&2&&u!==(u=`${f[16].height}px`)&&O(r,"height",u)},d(f){f&&re(r)}}}function S_(e){let r,t,n,i=nr(e[1]),o=[];for(let s=0;s<i.length;s+=1)o[s]=La(Ra(e,i,s));return{c(){r=Le("div");for(let s=0;s<o.length;s+=1)o[s].c();p(r,"class",Ao["container-separator"])},m(s,l){ie(s,r,l);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(r,null);e[13](r),t||(n=He(E_,"resize",e[2]),t=!0)},p(s,[l]){if(l&2){i=nr(s[1]);let a;for(a=0;a<i.length;a+=1){const c=Ra(s,i,a);o[a]?o[a].p(c,l):(o[a]=La(c),o[a].c(),o[a].m(r,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=i.length}},i:C,o:C,d(s){s&&re(r),ln(o,s),e[13](null),t=!1,n()}}}const V_=10;function ol(e,r,t,n,i,o){const s=r.margins.left,l=r.margins.right,a=r.margins.top,c=r.margins.bottom;o?e.push({top:t.bottom+a,left:i.left+s,width:Math.max(0,i.right-i.left-s-l),height:n.top-t.bottom-a-c,style:r.style}):e.push({top:i.top+a,left:t.right+s,width:n.left-t.right-s-l,height:Math.max(0,i.bottom-i.top-a-c),style:r.style})}function Ba(e,r,t,n,i,o){const s={top:Math.min(...t.map(l=>l.top)),right:Math.max(...t.map(l=>l.right)),bottom:Math.max(...t.map(l=>l.bottom)),left:Math.min(...t.map(l=>l.left))};if(r!=null&&r.show_at_start){let l,a;i==="space-around"||i==="space-evenly"?(l=o.left-r.style.width,a=o.top-r.style.height):(l=t[0].left-r.style.width-r.margins.left-r.margins.right,a=t[0].top-r.style.height-r.margins.top-r.margins.bottom),ol(e,r,{top:0,right:l,bottom:a,left:0},t[0],s,n)}if(r!=null&&r.show_between)for(let l=0;l<t.length-1;++l)ol(e,r,t[l],t[l+1],s,n);if(r!=null&&r.show_at_end){const l=t[t.length-1];let a,c;i==="space-around"||i==="space-evenly"?(a=o.bottom+r.style.height,c=o.right+r.style.width):(a=l.bottom+r.style.height+r.margins.top+r.margins.bottom,c=l.right+r.style.width+r.margins.left+r.margins.right),ol(e,r,l,{top:a,right:0,bottom:0,left:c},s,n)}}function I_(e,r,t){let n,{orientation:i}=r,{separator:o}=r,{lineSeparator:s}=r,{contentHAlign:l}=r,{contentVAlign:a}=r,{direction:c}=r;const u=j_(v,V_);let f=[],_,m=!1,y=null,h=null;function w(N){N.some(V=>{var te;const D=(te=V.target)==null?void 0:te.classList;return!(D!=null&&D.contains(Ao["container-separator__shape"]))&&!(D!=null&&D.contains(Ao["container-separator"]))})&&u()}function v(){if(!n)return;const N=n.getBoundingClientRect(),V=window.getComputedStyle(n),D={top:N.top+parseFloat(V.paddingTop),right:N.right-parseFloat(V.paddingRight),bottom:N.bottom-parseFloat(V.paddingBottom),left:N.left+parseFloat(V.paddingLeft)};t(1,f=[]);let te=[...n.children].filter(X=>X!==_&&!X.classList.contains(Yo.outer__border)),F=[];for(;te.length;){const X=[],H=te.shift();X.push(H);let W=H.getBoundingClientRect(),U=W.left,he=W.right,Ie=W.bottom;for(;te.length;){let Te=te[0],_e=Te.getBoundingClientRect();if(i==="vertical"){if(_e.top<Ie)break}else if(c==="ltr"?_e.left<he:_e.right>U)break;he=Math.max(he,_e.right),U=Math.min(U,_e.left),Ie=Math.max(Ie,_e.bottom),X.push(Te),te.shift()}F.push(X)}const Y=[];F.forEach(X=>{const H=X.map(U=>C_(U));c==="rtl"&&i==="horizontal"&&H.reverse(),o&&Ba(f,o,H,i==="vertical",i==="vertical"?a:l,D);const W={top:Math.min(...H.map(U=>U.top)),right:Math.max(...H.map(U=>U.right)),bottom:Math.max(...H.map(U=>U.bottom)),left:Math.min(...H.map(U=>U.left))};Y.push(W)}),c==="rtl"&&i==="vertical"&&Y.reverse(),s&&Ba(f,s,Y,i==="horizontal",i==="vertical"?l:a,D),f.forEach(X=>{X.top-=N.top,X.left-=N.left})}Xn(()=>{t(9,m=!0)}),on(()=>{t(9,m=!1)});function R(N){Tr[N?"unshift":"push"](()=>{_=N,t(0,_)})}return e.$$set=N=>{"orientation"in N&&t(3,i=N.orientation),"separator"in N&&t(4,o=N.separator),"lineSeparator"in N&&t(5,s=N.lineSeparator),"contentHAlign"in N&&t(6,l=N.contentHAlign),"contentVAlign"in N&&t(7,a=N.contentVAlign),"direction"in N&&t(8,c=N.direction)},e.$$.update=()=>{e.$$.dirty&1&&t(12,n=(_==null?void 0:_.parentElement)||null),e.$$.dirty&7680&&(m&&n||y||h)&&(y&&(y.disconnect(),t(10,y=null)),h&&(h.disconnect(),t(11,h=null)),m&&n&&(typeof MutationObserver<"u"&&(t(10,y=new MutationObserver(w)),y.observe(n,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),typeof ResizeObserver<"u"&&(t(11,h=new ResizeObserver(u)),h.observe(n)))),e.$$.dirty&4608&&m&&n&&u()},[_,f,u,i,o,s,l,a,c,m,y,h,n,R]}class T_ extends Or{constructor(r){super(),zr(this,r,I_,S_,mr,{orientation:3,separator:4,lineSeparator:5,contentHAlign:6,contentVAlign:7,direction:8})}}const{Boolean:D_}=ni;function Ha(e,r,t){const n=e.slice();return n[49]=r[t],n}function Wa(e){let r,t;return r=new $n({props:{componentContext:e[49],layoutParams:e[8]}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&512&&(o.componentContext=n[49]),i[0]&256&&(o.layoutParams=n[8]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function Ua(e){let r,t;return r=new T_({props:{direction:e[10],separator:e[5],lineSeparator:e[6],orientation:e[2],contentHAlign:e[4],contentVAlign:e[3]}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&1024&&(o.direction=n[10]),i[0]&32&&(o.separator=n[5]),i[0]&64&&(o.lineSeparator=n[6]),i[0]&4&&(o.orientation=n[2]),i[0]&16&&(o.contentHAlign=n[4]),i[0]&8&&(o.contentVAlign=n[3]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function F_(e){let r,t,n,i=nr(e[9]),o=[];for(let a=0;a<i.length;a+=1)o[a]=Wa(Ha(e,i,a));const s=a=>$(o[a],1,1,()=>{o[a]=null});let l=(e[5]||e[6])&&Ua(e);return{c(){for(let a=0;a<o.length;a+=1)o[a].c();r=pr(),l&&l.c(),t=Zt()},m(a,c){for(let u=0;u<o.length;u+=1)o[u]&&o[u].m(a,c);ie(a,r,c),l&&l.m(a,c),ie(a,t,c),n=!0},p(a,c){if(c[0]&768){i=nr(a[9]);let u;for(u=0;u<i.length;u+=1){const f=Ha(a,i,u);o[u]?(o[u].p(f,c),B(o[u],1)):(o[u]=Wa(f),o[u].c(),B(o[u],1),o[u].m(r.parentNode,r))}for(tr(),u=i.length;u<o.length;u+=1)s(u);rr()}a[5]||a[6]?l?(l.p(a,c),c[0]&96&&B(l,1)):(l=Ua(a),l.c(),B(l,1),l.m(t.parentNode,t)):l&&(tr(),$(l,1,1,()=>{l=null}),rr())},i(a){if(!n){for(let c=0;c<i.length;c+=1)B(o[c]);B(l),n=!0}},o(a){o=o.filter(D_);for(let c=0;c<o.length;c+=1)$(o[c]);$(l),n=!1},d(a){a&&(re(r),re(t)),ln(o,a),l&&l.d(a)}}}function M_(e){let r,t;return r=new mn({props:{cls:gt("container",Pa,e[13]),componentContext:e[0],layoutParams:e[1],style:e[12],additionalPaddings:e[14],heightByAspect:!!e[7],parentOf:e[9],replaceItems:e[27],$$slots:{default:[F_]},$$scope:{ctx:e}}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&8192&&(o.cls=gt("container",Pa,n[13])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&4096&&(o.style=n[12]),i[0]&16384&&(o.additionalPaddings=n[14]),i[0]&128&&(o.heightByAspect=!!n[7]),i[0]&512&&(o.parentOf=n[9]),i[0]&1916|i[1]&2097152&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}const P_={start:"start",center:"center",end:"end","space-between":"start","space-around":"start","space-evenly":"start"},N_={start:"start",center:"center",end:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},Ga=["rounded_rectangle","circle"];function z_(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R,N,V,D,te,F,Y,X=C,H=()=>(X(),X=M(h,ae=>t(35,Y=ae)),h),W,U=C,he=()=>(U(),U=M(y,ae=>t(36,W=ae)),y),Ie,Te=C,_e=()=>(Te(),Te=M(m,ae=>t(37,Ie=ae)),m),be,_t=C,We=()=>(_t(),_t=M(_,ae=>t(38,be=ae)),_),Oe,Fe=C,qe=()=>(Fe(),Fe=M(f,ae=>t(39,Oe=ae)),f),Qe,Z=C,Ae=()=>(Z(),Z=M(u,ae=>t(40,Qe=ae)),u),ge,et,G=C,Ee=()=>(G(),G=M(c,ae=>t(41,et=ae)),c),Ue,ne=C,it=()=>(ne(),ne=M(a,ae=>t(42,Ue=ae)),a),je,Ve=C,yt=()=>(Ve(),Ve=M(at,ae=>t(43,je=ae)),at),Vt,ee=C,tt=()=>(ee(),ee=M(l,ae=>t(44,Vt=ae)),l),lt,dt=C,Ge=()=>(dt(),dt=M(s,ae=>t(45,lt=ae)),s),E,$e=C,le=()=>($e(),$e=M(o,ae=>t(46,E=ae)),o);e.$$.on_destroy.push(()=>X()),e.$$.on_destroy.push(()=>U()),e.$$.on_destroy.push(()=>Te()),e.$$.on_destroy.push(()=>_t()),e.$$.on_destroy.push(()=>Fe()),e.$$.on_destroy.push(()=>Z()),e.$$.on_destroy.push(()=>G()),e.$$.on_destroy.push(()=>ne()),e.$$.on_destroy.push(()=>Ve()),e.$$.on_destroy.push(()=>ee()),e.$$.on_destroy.push(()=>dt()),e.$$.on_destroy.push(()=>$e());let{componentContext:Ke}=r,{layoutParams:wt=void 0}=r;const fe=Wr(Xr),me=fe.direction;rn(e,me,ae=>t(10,ge=ae));let at,Ze="vertical",$t="start",Mt="start",qt=null,Pe=null,pt,Ut={};function Ht(){t(2,Ze="vertical"),t(3,$t="start"),t(4,Mt="start"),t(7,pt=void 0)}function Gt(ae){t(0,Ke={...Ke,json:{...Ke.json,items:ae.filter(yi)}})}let L=[];return on(()=>{L.forEach(ae=>{ae.destroy()})}),e.$$set=ae=>{"componentContext"in ae&&t(0,Ke=ae.componentContext),"layoutParams"in ae&&t(1,wt=ae.layoutParams)},e.$$.update=()=>{var ae,ar,ve,Et,Re,mt,Ne,ot,vt;if(e.$$.dirty[0]&1&&t(34,n=Ke.origJson),e.$$.dirty[1]&8&&n&&Ht(),e.$$.dirty[0]&1&&t(33,i=Ke.json.items),e.$$.dirty[0]&1&&le(t(25,o=typeof((ae=Ke.json.item_builder)==null?void 0:ae.data)=="string"?Ke.getDerivedFromVars((ar=Ke.json.item_builder)==null?void 0:ar.data,void 0,!0):(ve=Ke.json.item_builder)!=null&&ve.data?Hi(Ke.json.item_builder.data):void 0)),e.$$.dirty[0]&1&&Ge(t(24,s=Ke.getDerivedFromVars(Ke.json.orientation))),e.$$.dirty[0]&1&&tt(t(23,l=Ke.getDerivedFromVars(Ke.json.layout_mode))),e.$$.dirty[0]&1&&it(t(22,a=Ke.getDerivedFromVars(Ke.json.content_alignment_vertical))),e.$$.dirty[0]&1&&Ee(t(21,c=Ke.getDerivedFromVars(Ke.json.content_alignment_horizontal))),e.$$.dirty[0]&1&&Ae(t(20,u=Ke.getDerivedFromVars(Ke.json.separator))),e.$$.dirty[0]&1&&qe(t(19,f=Ke.getDerivedFromVars(Ke.json.line_separator))),e.$$.dirty[0]&1&&We(t(18,_=Ke.getDerivedFromVars(Ke.json.aspect))),e.$$.dirty[0]&1&&_e(t(17,m=Ke.getDerivedFromVars(Ke.json.width))),e.$$.dirty[0]&1&&he(t(16,y=Ke.getDerivedFromVars(Ke.json.height))),e.$$.dirty[0]&1&&H(t(15,h=Ke.getDerivedFromVars(Ke.json.clip_to_bounds))),e.$$.dirty[0]&513|e.$$.dirty[1]&32772){let De=[];if(Ke.json.item_builder&&Array.isArray(E)&&Array.isArray(Ke.json.item_builder.prototypes)){const ct=Ke.json.item_builder;De=il(E,fe,Ke,ct)}else De=(Array.isArray(i)&&i||[]).map(ct=>({div:ct}));L.forEach(ct=>{ct.destroy()}),t(9,L=De.map((ct,Yt)=>Ke.produceChildContext(ct.div,{path:Yt,variables:ct.vars,id:ct.id})))}if(e.$$.dirty[0]&513){let De=[];L.forEach(ct=>{De.push(Ke.getDerivedFromVars({width:ct.json.width,height:ct.json.height}))}),yt(t(11,at=Li(De,ct=>[...ct])))}if(e.$$.dirty[0]&4|e.$$.dirty[1]&16384&&t(2,Ze=m_(lt,Ze)),e.$$.dirty[1]&8192&&t(28,w=Vt==="wrap"),e.$$.dirty[0]&268435460&&t(32,v=Ze!=="horizontal"&&!w),e.$$.dirty[0]&268435460&&t(31,R=Ze!=="vertical"&&!w),e.$$.dirty[0]&4|e.$$.dirty[1]&4096&&t(30,N=Ze==="overlap"&&!je.every(g_)),e.$$.dirty[0]&4|e.$$.dirty[1]&4096&&t(29,V=Ze==="overlap"&&!je.every(p_)),e.$$.dirty[0]&8|e.$$.dirty[1]&2048&&t(3,$t=v_(Ue,$t)),e.$$.dirty[0]&1040|e.$$.dirty[1]&1024&&t(4,Mt=k_(et,ge,Mt)),e.$$.dirty[0]&36|e.$$.dirty[1]&512)if(Qe!=null&&Qe.style&&Ze!=="overlap"&&Oa()){const De=Qn(Qe.style,Ga,(qt==null?void 0:qt.style)||null);De?t(5,qt={show_at_start:!!((Et=Qe.show_at_start)!=null&&Et),show_at_end:!!((Re=Qe.show_at_end)!=null&&Re),show_between:!!((mt=Qe.show_between)==null||mt),style:De,margins:Na(Qe.margins)}):t(5,qt=null)}else t(5,qt=null);if(e.$$.dirty[0]&68|e.$$.dirty[1]&256)if(Oe!=null&&Oe.style&&Ze!=="overlap"&&Oa()){const De=Qn(Oe.style,Ga,(Pe==null?void 0:Pe.style)||null);De?t(6,Pe={show_at_start:!!((Ne=Oe.show_at_start)!=null&&Ne),show_at_end:!!((ot=Oe.show_at_end)!=null&&ot),show_between:!!((vt=Oe.show_between)==null||vt),style:De,margins:Na(Oe.margins)}):t(6,Pe=null)}else t(6,Pe=null);if(e.$$.dirty[0]&100&&t(14,D=qt||Pe?__(Ze,qt,Pe):null),e.$$.dirty[1]&128){const De=be==null?void 0:be.ratio;De&&In(De)?t(7,pt=De):t(7,pt=void 0)}if(e.$$.dirty[0]&1879048606|e.$$.dirty[1]&99){let De={};Ze==="overlap"&&(De.overlapParent=!0),Ze!=="horizontal"&&(De.parentHAlign=w?"start":P_[Mt]),Ze!=="vertical"&&(De.parentVAlign=w?"start":N_[$t]);const ct=(Ie==null?void 0:Ie.type)==="wrap_content"||(Ie==null?void 0:Ie.type)==="match_parent"&&(wt==null?void 0:wt.parentHorizontalWrapContent),Yt=!W||W.type==="wrap_content"||W.type==="match_parent"&&(wt==null?void 0:wt.parentVerticalWrapContent);!v&&ct&&(De.parentHorizontalWrapContent=!0),!pt&&!R&&Yt&&(De.parentVerticalWrapContent=!0),De.stretchWidth=N,De.stretchHeight=V,Ze==="horizontal"&&(De.parentContainerOrientation="horizontal"),Ze==="vertical"&&(De.parentContainerOrientation="vertical"),w&&(De.parentContainerWrap=!0),t(8,Ut=Si(De,Ut))}e.$$.dirty[0]&268435484|e.$$.dirty[1]&16&&t(13,te={orientation:Ze,valign:$t,halign:Mt,wrap:w,overflow:Y===!1||Y===0?"visible":void 0}),e.$$.dirty[0]&228&&t(12,F={gap:qt||Pe?h_(Ze,qt,Pe):void 0,"aspect-ratio":pt})},[Ke,wt,Ze,$t,Mt,qt,Pe,pt,Ut,L,ge,at,F,te,D,h,y,m,_,f,u,c,a,l,s,o,me,Gt,w,V,N,R,v,i,n,Y,W,Ie,be,Oe,Qe,et,Ue,je,Vt,lt,E]}class O_ extends Or{constructor(r){super(),zr(this,r,z_,M_,mr,{componentContext:0,layoutParams:1},null,[-1,-1])}}const sl={separator:"divkit-5196a",separator_orientation_horizontal:"divkit-8d569",separator_orientation_vertical:"divkit-f0c05",separator__inner:"divkit-563bc"};function ll(e,r){return e==="vertical"||e==="horizontal"?e:r}function Ya(e){let r,t;return{c(){r=Le("span"),p(r,"class",sl.separator__inner),p(r,"style",t=Ct(e[3]))},m(n,i){ie(n,r,i)},p(n,i){i&8&&t!==(t=Ct(n[3]))&&p(r,"style",t)},d(n){n&&re(r)}}}function R_(e){let r,t=e[4]&&Ya(e);return{c(){t&&t.c(),r=Zt()},m(n,i){t&&t.m(n,i),ie(n,r,i)},p(n,i){n[4]?t?t.p(n,i):(t=Ya(n),t.c(),t.m(r.parentNode,r)):t&&(t.d(1),t=null)},d(n){n&&re(r),t&&t.d(n)}}}function L_(e){let r,t;return r=new mn({props:{cls:gt("separator",sl,e[2]),componentContext:e[0],layoutParams:e[1],$$slots:{default:[R_]},$$scope:{ctx:e}}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,[i]){const o={};i&4&&(o.cls=gt("separator",sl,n[2])),i&1&&(o.componentContext=n[0]),i&2&&(o.layoutParams=n[1]),i&8216&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function B_(e,r,t){let n,i,o,s,l,a,c,u,f=C,_=()=>(f(),f=M(i,R=>t(11,u=R)),i);e.$$.on_destroy.push(()=>f());let{componentContext:m}=r,{layoutParams:y=void 0}=r,h="horizontal",w="rgba(0,0,0,0.08)";function v(){t(6,h="horizontal"),t(7,w="rgba(0,0,0,0.08)")}return e.$$set=R=>{"componentContext"in R&&t(0,m=R.componentContext),"layoutParams"in R&&t(1,y=R.layoutParams)},e.$$.update=()=>{e.$$.dirty&1&&t(10,n=m.origJson),e.$$.dirty&1024&&n&&v(),e.$$.dirty&1&&_(t(5,i=m.getDerivedFromVars(m.json.delimiter_style))),e.$$.dirty&2112&&t(6,h=ll(u==null?void 0:u.orientation,h)),e.$$.dirty&2048&&t(4,o=!(u!=null&&u.color&&(u.color==="transparent"||u.color.length===9&&u.color.indexOf("#00")===0))),e.$$.dirty&2176&&t(7,w=Cr(u==null?void 0:u.color,1,w)),e.$$.dirty&64&&t(9,s=h==="horizontal"?"100%":we(1)),e.$$.dirty&64&&t(8,l=h==="horizontal"?we(1):"100%"),e.$$.dirty&896&&t(3,a={background:w,width:s,height:l}),e.$$.dirty&64&&t(2,c={orientation:h})},[m,y,c,a,o,i,h,w,l,s,n,u]}class H_ extends Or{constructor(r){super(),zr(this,r,B_,L_,mr,{componentContext:0,layoutParams:1})}}const jo={image:"divkit-8ae57","image_is-width-content":"divkit-0a28e","image_is-height-content":"divkit-f167b",image__image:"divkit-4eb06",image_error:"divkit-eba6b","image_is-rtl-mirror":"divkit-1b179","image__aspect-wrapper":"divkit-1afad",image_aspect:"divkit-37495",image_loaded:"divkit-cdd4f","divkit-image-appearance":"divkit-e49b3","image_before-appearance":"divkit-8ea57"};function W_(e,r,t){let n=e.content_alignment_horizontal;const i=e.content_alignment_vertical;return n==="start"?n=r==="ltr"?"left":"right":n==="end"&&(n=r==="ltr"?"right":"left"),n&&n!=="left"&&n!=="center"&&n!=="right"||i&&i!=="top"&&i!=="center"&&i!=="bottom"?t:aa({content_alignment_horizontal:n,content_alignment_vertical:i})}function Ja(e){return e.startsWith("data:")?Ys(e):`data:image/jpg;base64,${Ys(e)}`}function U_(e,r,t){let{componentContext:n}=r;Wr(Xr);function i(){}return Xn(()=>{}),Uo(i),on(()=>{}),e.$$set=o=>{"componentContext"in o&&t(0,n=o.componentContext)},[n]}class li extends Or{constructor(r){super(),zr(this,r,U_,null,mr,{componentContext:0})}}function G_(e){let r,t;return r=new li({props:{componentContext:e[0]}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function Y_(e){let r,t;return r=new mn({props:{cls:gt("image",jo,e[9]),componentContext:e[0],layoutParams:e[1],customDescription:!0,$$slots:{default:[K_]},$$scope:{ctx:e}}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&512&&(o.cls=gt("image",jo,n[9])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&67110780|i[2]&64&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function J_(e){let r,t,n,i,o,s,l;return{c(){r=Le("img"),p(r,"class",jo.image__image),Dn(r.src,t=e[2]===Ui?Co:e[3])||p(r,"src",t),p(r,"loading",n=e[26]?"eager":"lazy"),p(r,"decoding","async"),p(r,"style",i=Ct(e[8])),p(r,"alt",e[10]),p(r,"aria-hidden",o=e[10]?null:"true")},m(a,c){ie(a,r,c),e[63](r),s||(l=[He(r,"load",e[28]),He(r,"error",e[29])],s=!0)},p(a,c){c[0]&12&&!Dn(r.src,t=a[2]===Ui?Co:a[3])&&p(r,"src",t),c[0]&67108864&&n!==(n=a[26]?"eager":"lazy")&&p(r,"loading",n),c[0]&256&&i!==(i=Ct(a[8]))&&p(r,"style",i),c[0]&1024&&p(r,"alt",a[10]),c[0]&1024&&o!==(o=a[10]?null:"true")&&p(r,"aria-hidden",o)},d(a){a&&re(r),e[63](null),s=!1,Hr(l)}}}function q_(e){let r,t,n,i,o,s,l=`${e[4]}%`,a,c;return{c(){r=Le("span"),t=Le("img"),p(t,"class",jo.image__image),Dn(t.src,n=e[2]===Ui?Co:e[3])||p(t,"src",n),p(t,"loading",i=e[26]?"eager":"lazy"),p(t,"decoding","async"),p(t,"style",o=Ct(e[8])),p(t,"alt",e[10]),p(t,"aria-hidden",s=e[10]?null:"true"),p(r,"class",jo["image__aspect-wrapper"]),O(r,"padding-bottom",l)},m(u,f){ie(u,r,f),At(r,t),e[62](t),a||(c=[He(t,"load",e[28]),He(t,"error",e[29])],a=!0)},p(u,f){f[0]&12&&!Dn(t.src,n=u[2]===Ui?Co:u[3])&&p(t,"src",n),f[0]&67108864&&i!==(i=u[26]?"eager":"lazy")&&p(t,"loading",i),f[0]&256&&o!==(o=Ct(u[8]))&&p(t,"style",o),f[0]&1024&&p(t,"alt",u[10]),f[0]&1024&&s!==(s=u[10]?null:"true")&&p(t,"aria-hidden",s),f[0]&16&&l!==(l=`${u[4]}%`)&&O(r,"padding-bottom",l)},d(u){u&&re(r),e[62](null),a=!1,Hr(c)}}}function qa(e){let r;function t(o,s){return o[9].aspect?q_:J_}let n=t(e),i=n(e);return{c(){i.c(),r=Zt()},m(o,s){i.m(o,s),ie(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&&re(r),i.d(o)}}}function K_(e){let r=e[5],t,n=qa(e);return{c(){n.c(),t=Zt()},m(i,o){n.m(i,o),ie(i,t,o)},p(i,o){o[0]&32&&mr(r,r=i[5])?(n.d(1),n=qa(i),n.c(),n.m(t.parentNode,t)):n.p(i,o)},d(i){i&&re(t),n.d(i)}}}function X_(e){let r,t,n,i;const o=[Y_,G_],s=[];function l(a,c){return a[7]?-1:0}return~(r=l(e))&&(t=s[r]=o[r](e)),{c(){t&&t.c(),n=Zt()},m(a,c){~r&&s[r].m(a,c),ie(a,n,c),i=!0},p(a,c){let u=r;r=l(a),r===u?~r&&s[r].p(a,c):(t&&(tr(),$(s[u],1,1,()=>{s[u]=null}),rr()),~r?(t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(B(t),i=!0)},o(a){$(t),i=!1},d(a){a&&re(n),~r&&s[r].d(a)}}}const Co="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Z_="empty://",Q_="rgba(0,0,0,0.08)",Wi=0,al=1,Ui=2;function x_(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R,N,V,D,te,F,Y,X=C,H=()=>(X(),X=M(v,ke=>t(47,Y=ke)),v),W,U,he=C,Ie=()=>(he(),he=M(w,ke=>t(49,U=ke)),w),Te,_e=C,be=()=>(_e(),_e=M(h,ke=>t(50,Te=ke)),h),_t,We=C,Oe=()=>(We(),We=M(y,ke=>t(51,_t=ke)),y),Fe,qe=C,Qe=()=>(qe(),qe=M(m,ke=>t(52,Fe=ke)),m),Z,Ae=C,ge=()=>(Ae(),Ae=M(_,ke=>t(53,Z=ke)),_),et,G=C,Ee=()=>(G(),G=M(f,ke=>t(54,et=ke)),f),Ue,ne=C,it=()=>(ne(),ne=M(u,ke=>t(55,Ue=ke)),u),je,Ve=C,yt=()=>(Ve(),Ve=M(c,ke=>t(56,je=ke)),c),Vt,ee=C,tt=()=>(ee(),ee=M(a,ke=>t(57,Vt=ke)),a),lt,dt=C,Ge=()=>(dt(),dt=M(l,ke=>t(58,lt=ke)),l),E,$e=C,le=()=>($e(),$e=M(s,ke=>t(59,E=ke)),s),Ke,wt=C,fe=()=>(wt(),wt=M(i,ke=>t(60,Ke=ke)),i),me,at=C,Ze=()=>(at(),at=M(o,ke=>t(61,me=ke)),o),$t,Mt=C,qt=()=>(Mt(),Mt=M(R,ke=>t(26,$t=ke)),R);e.$$.on_destroy.push(()=>X()),e.$$.on_destroy.push(()=>he()),e.$$.on_destroy.push(()=>_e()),e.$$.on_destroy.push(()=>We()),e.$$.on_destroy.push(()=>qe()),e.$$.on_destroy.push(()=>Ae()),e.$$.on_destroy.push(()=>G()),e.$$.on_destroy.push(()=>ne()),e.$$.on_destroy.push(()=>Ve()),e.$$.on_destroy.push(()=>ee()),e.$$.on_destroy.push(()=>dt()),e.$$.on_destroy.push(()=>$e()),e.$$.on_destroy.push(()=>wt()),e.$$.on_destroy.push(()=>at()),e.$$.on_destroy.push(()=>Mt());let{componentContext:Pe}=r,{layoutParams:pt=void 0}=r;const Ut=Wr(Xr),Ht=Ut.direction;rn(e,Ht,ke=>t(48,W=ke));let Gt,L=Wi,ae=!1,ar=Q_,ve=!1,Et,Re="",mt="none",Ne="50% 50%",ot="0",vt,De="source_in",ct="",Yt="",sr=0,dr=0,Wt=0,ut="",St="",Ft=!1;function er(){t(33,mt="none"),t(34,Ne="50% 50%"),t(36,De="source_in")}function ir(ke){t(2,L=Wi)}function wr(ke){t(34,Ne=W_(ke,W,Ne))}function Pr(){L===Wi&&t(2,L=al)}function Jr(){L===Wi&&t(2,L=Ui)}on(()=>{Ut.removeSvgFilter(vt,De)});function Je(ke){Tr[ke?"unshift":"push"](()=>{Gt=ke,t(6,Gt)})}function cr(ke){Tr[ke?"unshift":"push"](()=>{Gt=ke,t(6,Gt)})}return e.$$set=ke=>{"componentContext"in ke&&t(0,Pe=ke.componentContext),"layoutParams"in ke&&t(1,pt=ke.layoutParams)},e.$$.update=()=>{if(e.$$.dirty[0]&1&&t(46,n=Pe.origJson),e.$$.dirty[1]&32768&&n&&er(),e.$$.dirty[0]&1&&fe(t(25,i=Pe.getDerivedFromVars(Pe.json.image_url))),e.$$.dirty[0]&1&&Ze(t(24,o=Pe.getDerivedFromVars(Pe.json.gif_url))),e.$$.dirty[0]&1&&le(t(23,s=Pe.getDerivedFromVars(Pe.json.width))),e.$$.dirty[0]&1&&Ge(t(22,l=Pe.getDerivedFromVars(Pe.json.height))),e.$$.dirty[0]&1&&tt(t(21,a=Pe.getDerivedFromVars(Pe.json.preview))),e.$$.dirty[0]&1&&yt(t(20,c=Pe.getDerivedFromVars(Pe.json.placeholder_color))),e.$$.dirty[0]&1&&it(t(19,u=Pe.getDerivedFromVars(Pe.json.scale))),e.$$.dirty[0]&1&&Ee(t(18,f=Pe.getDerivedFromVars({content_alignment_horizontal:Pe.json.content_alignment_horizontal,content_alignment_vertical:Pe.json.content_alignment_vertical}))),e.$$.dirty[0]&1&&ge(t(17,_=Pe.getDerivedFromVars(Pe.json.accessibility))),e.$$.dirty[0]&1&&Qe(t(16,m=Pe.getDerivedFromVars(Pe.json.aspect))),e.$$.dirty[0]&1&&Oe(t(15,y=Pe.getDerivedFromVars(Pe.json.tint_color))),e.$$.dirty[0]&1&&be(t(14,h=Pe.getDerivedFromVars(Pe.json.tint_mode))),e.$$.dirty[0]&1&&Ie(t(13,w=Pe.getDerivedFromVars(Pe.json.appearance_animation))),e.$$.dirty[0]&1&&H(t(12,v=Pe.getDerivedFromVars(Pe.json.filters))),e.$$.dirty[0]&1&&qt(t(11,R=Pe.getDerivedFromVars(Pe.json.preload_required))),e.$$.dirty[0]&1073741825|e.$$.dirty[1]&1610612736){let ke=Pe.json.type==="gif"?me:Ke;t(30,ae=ke===Z_),ae&&(ke=Co),t(3,Et=ke)}if(e.$$.dirty[0]&8&&ir(),e.$$.dirty[0]&9&&(Et?t(7,ve=!1):(t(7,ve=!0),Pe.logError(Q(new Error(`Missing "${Pe.json.type==="gif"?"gif_url":"image_url"}" for "${Pe.json.type}"`))))),e.$$.dirty[1]&268435456&&t(45,N=(E==null?void 0:E.type)==="wrap_content"),e.$$.dirty[1]&134217728&&t(44,V=(lt==null?void 0:lt.type)==="wrap_content"),e.$$.dirty[0]&1073741828|e.$$.dirty[1]&67108864){const ke=Vt;(L===Wi||L===Ui||ae)&&ke?t(32,Re=`url("${Ja(ke)}")`):t(32,Re="")}if(e.$$.dirty[0]&1073741828|e.$$.dirty[1]&33554433&&(L===Wi||L===Ui||ae?t(31,ar=Cr(je,1,ar)):t(31,ar="")),e.$$.dirty[1]&16777220&&t(33,mt=la(Ue)||mt),e.$$.dirty[1]&8388608&&wr(et),e.$$.dirty[1]&4194304&&t(10,D=(Z==null?void 0:Z.description)||""),e.$$.dirty[1]&2097152){const ke=Fe==null?void 0:Fe.ratio;ke&&In(ke)?t(4,ot=(100/Number(ke)).toFixed(2)):t(4,ot="0")}if(e.$$.dirty[1]&1572912){const ke=_t,q=ke?Cr(ke):void 0,kr=Ca(Te,De);(q!==vt||kr!==De)&&(Ut.removeSvgFilter(vt,De),t(5,ct=q?Ut.addSvgFilter(q,kr):""),t(35,vt=q),t(36,De=kr))}if(e.$$.dirty[1]&262144&&U&&U.type==="fade"){const ke=U;t(37,Yt=fa(ke.interpolator,"ease_in_out").replace(/_/g,"-")),t(40,Wt=Ur(ke.duration,300)),t(39,dr=Ur(ke.start_delay,0)),t(38,sr=Ur(ke.alpha,0))}if(e.$$.dirty[0]&1|e.$$.dirty[1]&196608){let ke="",q="";Array.isArray(Y)&&Y.length&&(ke=ga(Y,Pe.logError)),ke&&(q="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),t(41,ut=ke),t(42,St=q),t(43,Ft=W==="rtl"&&Array.isArray(Y)&&Y.some(kr=>kr.type==="rtl_mirror"))}e.$$.dirty[0]&20|e.$$.dirty[1]&28736&&t(9,te={aspect:ot!=="0","is-width-content":N,"is-height-content":V,loaded:L===al,"before-appearance":!!Yt&&L===Wi,"is-rtl-mirror":Ft}),e.$$.dirty[0]&36|e.$$.dirty[1]&4047&&t(8,F={"background-image":Re,"background-color":Re?void 0:ar,"background-size":mt,"clip-path":St||void 0,"object-fit":mt,"object-position":Ne,filter:[L===al&&ct?`url(#${ct})`:"",ut].filter(Boolean).join(" "),"--divkit-appearance-interpolator":Yt||void 0,"--divkit-appearance-fade-start":Yt?sr:void 0,"--divkit-appearance-delay":Yt?`${dr}ms`:void 0,"--divkit-appearance-duration":Yt?`${Wt}ms`:void 0})},[Pe,pt,L,Et,ot,ct,Gt,ve,F,te,D,R,v,w,h,y,m,_,f,u,c,a,l,s,o,i,$t,Ht,Pr,Jr,ae,ar,Re,mt,Ne,vt,De,Yt,sr,dr,Wt,ut,St,Ft,V,N,n,Y,W,U,Te,_t,Fe,Z,et,Ue,je,Vt,lt,E,Ke,me,Je,cr]}class Ka extends Or{constructor(r){super(),zr(this,r,x_,X_,mr,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const Xa={grid:"divkit-ec408",grid_halign_start:"divkit-fde92",grid_halign_center:"divkit-800a9",grid_halign_end:"divkit-74c34",grid_valign_start:"divkit-82c25",grid_valign_center:"divkit-6ea46",grid_valign_end:"divkit-96d7e"};function Za(e){return e>0&&e<1}function Qa(e){return String(Math.ceil(e*1e3)/1e3)}function xa(e,r,t){if(e.some(Za)){const l=Math.max(...e.filter(Za).map(a=>1/a));e=e.map(a=>a*l)}const n=e.every(Boolean);let i=0,o=0;const s=[];if(n){o=e.reduce((l,a)=>l+a,0);for(let l=0;l<t;++l){if(!r[l])continue;const a=r[l]/e[l]*o;a>i&&(i=a)}}for(let l=0;l<t;++l)i?s[l]=`minmax(${we(i*e[l]/o)},${Qa(e[l])}fr)`:e[l]?s[l]=`${Qa(e[l])}fr`:s[l]="auto";return s.join(" ")}function $a(e,r,t){const n=e.slice();return n[29]=r[t],n}function ec(e){let r,t;return r=new $n({props:{componentContext:e[29].componentContext,layoutParams:e[29].layoutParams}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&16&&(o.componentContext=n[29].componentContext),i[0]&16&&(o.layoutParams=n[29].layoutParams),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function $_(e){let r,t,n=nr(e[4]),i=[];for(let s=0;s<n.length;s+=1)i[s]=ec($a(e,n,s));const o=s=>$(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();r=Zt()},m(s,l){for(let a=0;a<i.length;a+=1)i[a]&&i[a].m(s,l);ie(s,r,l),t=!0},p(s,l){if(l[0]&16){n=nr(s[4]);let a;for(a=0;a<n.length;a+=1){const c=$a(s,n,a);i[a]?(i[a].p(c,l),B(i[a],1)):(i[a]=ec(c),i[a].c(),B(i[a],1),i[a].m(r.parentNode,r))}for(tr(),a=n.length;a<i.length;a+=1)o(a);rr()}},i(s){if(!t){for(let l=0;l<n.length;l+=1)B(i[l]);t=!0}},o(s){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(s){s&&re(r),ln(i,s)}}}function eh(e){let r,t;return r=new mn({props:{cls:gt("grid",Xa,e[6]),componentContext:e[0],style:e[5],layoutParams:e[1],parentOf:e[2],replaceItems:e[11],$$slots:{default:[$_]},$$scope:{ctx:e}}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&64&&(o.cls=gt("grid",Xa,n[6])),i[0]&1&&(o.componentContext=n[0]),i[0]&32&&(o.style=n[5]),i[0]&2&&(o.layoutParams=n[1]),i[0]&4&&(o.parentOf=n[2]),i[0]&16|i[1]&2&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function th(e,r,t){let n,i,o,s,l,a,c,u,f,_=C,m=()=>(_(),_=M(l,Z=>t(23,f=Z)),l),y,h=C,w=()=>(h(),h=M(s,Z=>t(24,y=Z)),s),v,R=C,N=()=>(R(),R=M(U,Z=>t(25,v=Z)),U),V,D=C,te=()=>(D(),D=M(o,Z=>t(26,V=Z)),o);e.$$.on_destroy.push(()=>_()),e.$$.on_destroy.push(()=>h()),e.$$.on_destroy.push(()=>R()),e.$$.on_destroy.push(()=>D());let{componentContext:F}=r,{layoutParams:Y=void 0}=r;const H=Wr(Xr).direction;rn(e,H,Z=>t(22,u=Z));let W=1,U,he,Ie=[],Te=[],_e=[],be=[],_t=0,We="start",Oe="start",Fe=[];function qe(){t(12,W=1),t(18,We="start"),t(19,Oe="start")}function Qe(Z){t(0,F={...F,json:{...F.json,items:Z.filter(yi)}})}return on(()=>{Fe.forEach(Z=>{Z.destroy()})}),e.$$set=Z=>{"componentContext"in Z&&t(0,F=Z.componentContext),"layoutParams"in Z&&t(1,Y=Z.layoutParams)},e.$$.update=()=>{if(e.$$.dirty[0]&1&&t(21,n=F.origJson),e.$$.dirty[0]&2097152&&n&&qe(),e.$$.dirty[0]&1&&t(20,i=Array.isArray(F.json.items)&&F.json.items||[]),e.$$.dirty[0]&1&&te(t(9,o=F.getDerivedFromVars(F.json.column_count))),e.$$.dirty[0]&1&&w(t(8,s=F.getDerivedFromVars(F.json.content_alignment_vertical))),e.$$.dirty[0]&1&&m(t(7,l=F.getDerivedFromVars(F.json.content_alignment_horizontal))),e.$$.dirty[0]&67112960&&t(12,W=Wn(V,W)),e.$$.dirty[0]&1048581&&(Fe.forEach(Z=>{Z.destroy()}),t(2,Fe=i.map((Z,Ae)=>F.produceChildContext(Z,{path:Ae})))),e.$$.dirty[0]&5){let Z=[];Fe.forEach(Ae=>{Z.push(F.getDerivedFromVars({rowSpan:Ae.json.row_span,columnSpan:Ae.json.column_span,width:Ae.json.width,height:Ae.json.height}))}),N(t(3,U=Li(Z,Ae=>[...Ae])))}if(e.$$.dirty[0]&33681412){const Z={};let Ae=0,ge=0;t(13,Ie=[]),t(14,Te=[]),t(15,_e=[]),t(16,be=[]),t(4,he=Fe.map((et,G)=>{var ee,tt,lt,dt;const Ee=v[G],Ue=Math.min(W,Number(Ee.columnSpan)||1),ne=Number(Ee.rowSpan)||1,it=((ee=Ee.width)==null?void 0:ee.type)==="match_parent"?Number(Ee.width.weight||1)/Ue:0,je=((tt=Ee.height)==null?void 0:tt.type)==="match_parent"?Number(Ee.height.weight||1)/ne:0,Ve=Ue===1&&((lt=Ee.width)==null?void 0:lt.type)==="fixed"&&Ee.width.value?Number(Ee.width.value)/Ue:0,yt=ne===1&&((dt=Ee.height)==null?void 0:dt.type)==="fixed"&&Ee.height.value?Number(Ee.height.value)/ne:0;for(;;){let Ge=!0;e:for(let E=Ae;E<Ae+Ue;++E)for(let $e=ge;$e<ge+ne;++$e)if(Z[E+"_"+$e]){Ge=!1;break e}if(Ge)break;++Ae,Ae>W-Ue&&(Ae=0,++ge)}const Vt={x:Ae,y:ge,colSpan:Ue,rowSpan:ne};for(let Ge=Ae;Ge<Ae+Ue;++Ge)for(let E=ge;E<ge+ne;++E)Z[Ge+"_"+E]=!0,(!Ie[Ge]||Ie[Ge]<it)&&t(13,Ie[Ge]=it,Ie),(!Te[E]||Te[E]<je)&&t(14,Te[E]=je,Te),(!_e[Ge]||_e[Ge]<Ve)&&t(15,_e[Ge]=Ve,_e),(!be[E]||be[E]<yt)&&t(16,be[E]=yt,be);return{componentContext:et,layoutParams:{gridArea:Vt}}})),t(17,_t=ge+1)}e.$$.dirty[0]&17039360&&t(18,We=nl(y,We)),e.$$.dirty[0]&13107200&&t(19,Oe=rl(f,u,Oe)),e.$$.dirty[0]&786432&&t(6,a={valign:We,halign:Oe}),e.$$.dirty[0]&258048&&t(5,c={"grid-template-columns":xa(Ie,_e,W),"grid-template-rows":xa(Te,be,_t)})},[F,Y,Fe,U,he,c,a,l,s,o,H,Qe,W,Ie,Te,_e,be,_t,We,Oe,i,n,u,f,y,v,V]}class rh extends Or{constructor(r){super(),zr(this,r,th,eh,mr,{componentContext:0,layoutParams:1},null,[-1,-1])}}const xn={gallery:"divkit-0bfe5",gallery__scroller:"divkit-2b11a",gallery_scrollbar_none:"divkit-dbcd8",gallery_orientation_horizontal:"divkit-6df4b",gallery_orientation_vertical:"divkit-47152","gallery_scroll-snap":"divkit-e6acd","gallery__items-grid":"divkit-2d0b9",gallery__items:"divkit-23231",gallery__arrow:"divkit-b29e2","gallery__arrow-icon-path":"divkit-9bb64"},Un={arrow:"divkit-ff821",arrow__icon:"divkit-baff3",arrow_left:"divkit-70d07",arrow_right:"divkit-da11c"};function nh(e,r){return e==="start"||e==="center"||e==="end"?e:r}function ih(e){const r=[];let t=e[0],n=1;for(let i=1;i<=e.length;i++)e[i]!==t?(r.push(n>1?`repeat(${n}, ${t})`:t),t=e[i],n=1):n++;return r.join(" ")}function Vi(e,r){let t=e%r;return t<0&&(t+=r),t}const{Boolean:tc}=ni;function rc(e,r,t){const n=e.slice();return n[80]=r[t],n[81]=r,n[82]=t,n}function nc(e,r,t){const n=e.slice();return n[83]=r[t],n}function ic(e){let r;return{c(){r=Le("div"),p(r,"class",xn.gallery__gap),O(r,"width",e[4]==="horizontal"?e[12]:void 0),O(r,"height",e[4]!=="horizontal"?e[12]:void 0)},m(t,n){ie(t,r,n)},p(t,n){n[0]&4112&&O(r,"width",t[4]==="horizontal"?t[12]:void 0),n[0]&4112&&O(r,"height",t[4]!=="horizontal"?t[12]:void 0)},d(t){t&&re(r)}}}function oc(e){let r,t,n,i=e[83].hasGapBefore&&ic(e);return t=new $n({props:{componentContext:e[83].componentContext,layoutParams:e[6]}}),{c(){i&&i.c(),r=pr(),Bt(t.$$.fragment)},m(o,s){i&&i.m(o,s),ie(o,r,s),Pt(t,o,s),n=!0},p(o,s){o[83].hasGapBefore?i?i.p(o,s):(i=ic(o),i.c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null);const l={};s[0]&262144&&(l.componentContext=o[83].componentContext),s[0]&64&&(l.layoutParams=o[6]),t.$set(l)},i(o){n||(B(t.$$.fragment,o),n=!0)},o(o){$(t.$$.fragment,o),n=!1},d(o){o&&re(r),i&&i.d(o),Nt(t,o)}}}function sc(e){let r,t,n,i,o,s,l=e[82],a,c=nr(e[80]),u=[];for(let y=0;y<c.length;y+=1)u[y]=oc(nc(e,c,y));const f=y=>$(u[y],1,1,()=>{u[y]=null}),_=()=>e[67](r,l),m=()=>e[67](null,l);return{c(){r=Le("div");for(let y=0;y<u.length;y+=1)u[y].c();t=pr(),n=Le("div"),o=pr(),p(n,"style",i=Ct(e[13])),p(r,"class",xn.gallery__items),p(r,"style",s=Ct(e[16]))},m(y,h){ie(y,r,h);for(let w=0;w<u.length;w+=1)u[w]&&u[w].m(r,null);At(r,t),At(r,n),At(r,o),_(),a=!0},p(y,h){if(e=y,h[0]&266320){c=nr(e[80]);let w;for(w=0;w<c.length;w+=1){const v=nc(e,c,w);u[w]?(u[w].p(v,h),B(u[w],1)):(u[w]=oc(v),u[w].c(),B(u[w],1),u[w].m(r,t))}for(tr(),w=c.length;w<u.length;w+=1)f(w);rr()}(!a||h[0]&8192&&i!==(i=Ct(e[13])))&&p(n,"style",i),(!a||h[0]&65536&&s!==(s=Ct(e[16])))&&p(r,"style",s),l!==e[82]&&(m(),l=e[82],_())},i(y){if(!a){for(let h=0;h<c.length;h+=1)B(u[h]);a=!0}},o(y){u=u.filter(tc);for(let h=0;h<u.length;h+=1)$(u[h]);a=!1},d(y){y&&re(r),ln(u,y),m()}}}function lc(e){let r,t,n=e[10]&&e[8]&&ac(e),i=e[11]&&e[8]&&cc(e);return{c(){n&&n.c(),r=pr(),i&&i.c(),t=Zt()},m(o,s){n&&n.m(o,s),ie(o,r,s),i&&i.m(o,s),ie(o,t,s)},p(o,s){o[10]&&o[8]?n?n.p(o,s):(n=ac(o),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null),o[11]&&o[8]?i?i.p(o,s):(i=cc(o),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(o){o&&(re(r),re(t)),n&&n.d(o),i&&i.d(o)}}}function ac(e){let r,t,n,i=!e[32]&&oh();return{c(){r=Le("div"),i&&i.c(),p(r,"class",e[32]||`${xn.gallery__arrow} ${Un.arrow} ${Un.arrow_left}`)},m(o,s){ie(o,r,s),i&&i.m(r,null),t||(n=He(r,"click",e[70]),t=!0)},p:C,d(o){o&&re(r),i&&i.d(),t=!1,n()}}}function oh(e){let r,t;return{c(){r=nn("svg"),t=nn("path"),p(t,"class",xn["gallery__arrow-icon-path"]),p(t,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),p(r,"class",Un.arrow__icon),p(r,"xmlns","http://www.w3.org/2000/svg"),p(r,"width","32"),p(r,"height","32"),p(r,"viewBox","0 0 32 32"),p(r,"fill","none")},m(n,i){ie(n,r,i),At(r,t)},d(n){n&&re(r)}}}function cc(e){let r,t,n,i=!e[33]&&sh();return{c(){r=Le("div"),i&&i.c(),p(r,"class",e[33]||`${xn.gallery__arrow} ${Un.arrow} ${Un.arrow_right}`)},m(o,s){ie(o,r,s),i&&i.m(r,null),t||(n=He(r,"click",e[71]),t=!0)},p:C,d(o){o&&re(r),i&&i.d(),t=!1,n()}}}function sh(e){let r,t;return{c(){r=nn("svg"),t=nn("path"),p(t,"class",xn["gallery__arrow-icon-path"]),p(t,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),p(r,"class",Un.arrow__icon),p(r,"xmlns","http://www.w3.org/2000/svg"),p(r,"width","32"),p(r,"height","32"),p(r,"viewBox","0 0 32 32"),p(r,"fill","none")},m(n,i){ie(n,r,i),At(r,t)},d(n){n&&re(r)}}}function lh(e){let r,t,n,i,o,s,l,a,c,u,f=nr(e[18]),_=[];for(let h=0;h<f.length;h+=1)_[h]=sc(rc(e,f,h));const m=h=>$(_[h],1,1,()=>{_[h]=null});let y=e[4]==="horizontal"&&lc(e);return{c(){r=Le("div"),t=Le("div");for(let h=0;h<_.length;h+=1)_[h].c();s=pr(),y&&y.c(),l=Zt(),p(t,"class",xn["gallery__items-grid"]),p(t,"style",n=Ct(e[17])),p(r,"class",i=xn.gallery__scroller+" "+(e[30]?xt["root_restrict-scroll"]:"")),p(r,"style",o=Ct(e[5]))},m(h,w){ie(h,r,w),At(r,t);for(let v=0;v<_.length;v+=1)_[v]&&_[v].m(t,null);e[68](t),e[69](r),ie(h,s,w),y&&y.m(h,w),ie(h,l,w),a=!0,c||(u=He(r,"scroll",function(){vr(e[8]?e[36]:null)&&(e[8]?e[36]:null).apply(this,arguments)}),c=!0)},p(h,w){if(e=h,w[0]&340560){f=nr(e[18]);let v;for(v=0;v<f.length;v+=1){const R=rc(e,f,v);_[v]?(_[v].p(R,w),B(_[v],1)):(_[v]=sc(R),_[v].c(),B(_[v],1),_[v].m(t,null))}for(tr(),v=f.length;v<_.length;v+=1)m(v);rr()}(!a||w[0]&131072&&n!==(n=Ct(e[17])))&&p(t,"style",n),(!a||w[0]&1073741824&&i!==(i=xn.gallery__scroller+" "+(e[30]?xt["root_restrict-scroll"]:"")))&&p(r,"class",i),(!a||w[0]&32&&o!==(o=Ct(e[5])))&&p(r,"style",o),e[4]==="horizontal"?y?y.p(e,w):(y=lc(e),y.c(),y.m(l.parentNode,l)):y&&(y.d(1),y=null)},i(h){if(!a){for(let w=0;w<f.length;w+=1)B(_[w]);a=!0}},o(h){_=_.filter(tc);for(let w=0;w<_.length;w+=1)$(_[w]);a=!1},d(h){h&&(re(r),re(s),re(l)),ln(_,h),e[68](null),e[69](null),y&&y.d(h),c=!1,u()}}}function ah(e){let r,t,n,i;return r=new mn({props:{cls:gt("gallery",xn,e[15]),componentContext:e[0],layoutParams:e[1],customPaddings:!0,customActions:"gallery",parentOf:e[7],replaceItems:e[34],$$slots:{default:[lh]},$$scope:{ctx:e}}}),{c(){Bt(r.$$.fragment)},m(o,s){Pt(r,o,s),t=!0,n||(i=He(window,"resize",function(){vr(e[8]?e[37]:null)&&(e[8]?e[37]:null).apply(this,arguments)}),n=!0)},p(o,s){e=o;const l={};s[0]&32768&&(l.cls=gt("gallery",xn,e[15])),s[0]&1&&(l.componentContext=e[0]),s[0]&2&&(l.layoutParams=e[1]),s[0]&128&&(l.parentOf=e[7]),s[0]&1074216828|s[2]&16777216&&(l.$$scope={dirty:s,ctx:e}),r.$set(l)},i(o){t||(B(r.$$.fragment,o),t=!0)},o(o){$(r.$$.fragment,o),t=!1},d(o){Nt(r,o),n=!1,i()}}}function ch(e,r,t){let n=0,i=[],o=[];for(let s=0;s<e.length;++s)i[n]||(i[n]=[]),i[n].push({index:s,hasGapBefore:o[n]&&r[s].visibility!=="gone",componentContext:e[s]}),!o[n]&&r[s].visibility!=="gone"&&(o[n]=!0),++n>=t&&(n=0);return i}function uh(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R,N,V,D,te,F,Y=C,X=()=>(Y(),Y=M(h,Se=>t(55,F=Se)),h),H,W=C,U=()=>(W(),W=M(y,Se=>t(56,H=Se)),y),he,Ie=C,Te=()=>(Ie(),Ie=M(_,Se=>t(57,he=Se)),_),_e,be=C,_t=()=>(be(),be=M(vt,Se=>t(58,_e=Se)),vt),We,Oe=C,Fe=()=>(Oe(),Oe=M(f,Se=>t(59,We=Se)),f),qe,Qe=C,Z=()=>(Qe(),Qe=M(u,Se=>t(60,qe=Se)),u),Ae,ge=C,et=()=>(ge(),ge=M(c,Se=>t(61,Ae=Se)),c),G,Ee=C,Ue=()=>(Ee(),Ee=M(a,Se=>t(62,G=Se)),a),ne,it=C,je=()=>(it(),it=M(l,Se=>t(63,ne=Se)),l),Ve,yt=C,Vt=()=>(yt(),yt=M(s,Se=>t(64,Ve=Se)),s),ee,tt,lt=C,dt=()=>(lt(),lt=M(o,Se=>t(66,tt=Se)),o),Ge,E=C,$e=()=>(E(),E=M(m,Se=>t(30,Ge=Se)),m);e.$$.on_destroy.push(()=>Y()),e.$$.on_destroy.push(()=>W()),e.$$.on_destroy.push(()=>Ie()),e.$$.on_destroy.push(()=>be()),e.$$.on_destroy.push(()=>Oe()),e.$$.on_destroy.push(()=>Qe()),e.$$.on_destroy.push(()=>ge()),e.$$.on_destroy.push(()=>Ee()),e.$$.on_destroy.push(()=>it()),e.$$.on_destroy.push(()=>yt()),e.$$.on_destroy.push(()=>lt()),e.$$.on_destroy.push(()=>E());let{componentContext:le}=r,{layoutParams:Ke=void 0}=r;const wt=Wr(Xr),fe=wt.direction;rn(e,fe,Se=>t(54,te=Se));let me,at=[],Ze=!1,$t=!1,Mt=null,qt,Pe=!1;const pt=wt.getCustomization("galleryLeftClass"),Ut=wt.getCustomization("galleryRightClass");let Ht,Gt=1,L="horizontal",ae="start",ar,ve=8,Et,Re,mt="",Ne,ot=[],vt,De={},ct=!1,Yt={},sr=0;function dr(){t(42,Gt=1),t(4,L="horizontal"),t(43,ae="start"),t(44,ve=8),t(47,mt="")}function Wt(Se){t(0,le={...le,json:{...le.json,items:Se.filter(yi)}})}const ut=wt.isDesktop;rn(e,ut,Se=>t(65,ee=Se));let St=[];function Ft(){if(!me)return;let Se=me.scrollLeft;te==="rtl"&&(Se*=-1);const Ot=me.scrollWidth,ur=me.offsetWidth;te==="ltr"?(t(10,Ze=Se>2),t(11,$t=Se+ur<Ot-2)):(t(11,$t=Se>2),t(10,Ze=Se+ur<Ot-2))}const er=$o(Ft,50);function ir(Se){me.scroll({left:me.scrollLeft+me.offsetWidth*.75*(Se==="right"?1:-1),behavior:"smooth"})}function wr(){let Se=[],Ot=at[0].children.length;for(let ur=0;ur<Ot;ur+=2)for(let Xe=0;Xe<Gt;++Xe){const It=at[Xe].children[ur];It&&Se.push(It)}return Se}function Pr(Se,Ot="smooth"){const Xe=L==="horizontal"?"left":"top";me.scroll({[Xe]:Se,behavior:Ot})}function Jr(Se,Ot,ur="smooth"){const Xe=L==="horizontal",It=Xe?"offsetLeft":"offsetTop",ze=Se[Ot];if(ze){let ht;if(te==="ltr"||!Xe)ht=ze[It]+.01-ve/2;else{const st=me.offsetWidth;ht=ze[It]+ze.offsetWidth+.01-ve/2-st}Pr(ht,ur)}}function Je(Se,Ot){return L==="horizontal"?Ot.right>Se.left&&Se.right>Ot.left:Ot.bottom>Se.top&&Se.bottom>Ot.top}function cr(Se,Ot){return L==="horizontal"?Ot.left>=Se.left&&Ot.right<=Se.right:Ot.top>=Se.top&&Ot.bottom<=Se.bottom}function ke(Se){const Ot=wr(),ur=me.getBoundingClientRect(),Xe=Ot.findIndex(ht=>cr(ur,ht.getBoundingClientRect()));if(Xe!==-1)return Xe;const It=Ot.map(ht=>Je(ur,ht.getBoundingClientRect())),ze=It.findIndex(Boolean);return ze!==-1?Se==="prev"&&It.filter(Boolean).length===2?ze+1:ze:Se==="prev"?1:Ot.length-2}Xn(()=>{if(t(40,Pe=!0),Ft(),sr){const Se=wr();Jr(Se,sr,"auto")}}),on(()=>{t(40,Pe=!1),St.forEach(Se=>{Se.destroy()}),Ht&&!le.fakeElement&&(wt.unregisterInstance(Ht),t(41,Ht=void 0))});function q(Se,Ot){Tr[Se?"unshift":"push"](()=>{at[Ot]=Se,t(9,at)})}function kr(Se){Tr[Se?"unshift":"push"](()=>{qt=Se,t(3,qt)})}function Ar(Se){Tr[Se?"unshift":"push"](()=>{me=Se,t(2,me)})}const zt=()=>ir("left"),Zr=()=>ir("right");return e.$$set=Se=>{"componentContext"in Se&&t(0,le=Se.componentContext),"layoutParams"in Se&&t(1,Ke=Se.layoutParams)},e.$$.update=()=>{var Se,Ot,ur,Xe,It,ze;if(e.$$.dirty[0]&1&&t(53,n=le.origJson),e.$$.dirty[1]&4194304&&n&&dr(),e.$$.dirty[0]&1&&t(52,i=Array.isArray(le.json.items)&&le.json.items||[]),e.$$.dirty[0]&1&&dt(t(29,o=typeof((Se=le.json.item_builder)==null?void 0:Se.data)=="string"?le.getDerivedFromVars((Ot=le.json.item_builder)==null?void 0:Ot.data,void 0,!0):(ur=le.json.item_builder)!=null&&ur.data?Hi(le.json.item_builder.data):void 0)),e.$$.dirty[0]&1&&Vt(t(28,s=le.getDerivedFromVars(le.json.column_count))),e.$$.dirty[0]&1&&je(t(27,l=le.getDerivedFromVars(le.json.orientation))),e.$$.dirty[0]&1&&Ue(t(26,a=le.getDerivedFromVars(le.json.cross_content_alignment))),e.$$.dirty[0]&1&&et(t(25,c=le.getDerivedFromVars(le.json.item_spacing))),e.$$.dirty[0]&1&&Z(t(24,u=le.getDerivedFromVars(le.json.cross_spacing))),e.$$.dirty[0]&1&&Fe(t(23,f=le.getDerivedFromVars(le.json.paddings))),e.$$.dirty[0]&1&&Te(t(22,_=le.getDerivedFromVars(le.json.scroll_mode))),e.$$.dirty[0]&1&&$e(t(21,m=le.getDerivedFromVars(le.json.restrict_parent_scroll))),e.$$.dirty[0]&1&&U(t(20,y=le.getDerivedFromVars(le.json.scrollbar))),e.$$.dirty[0]&1&&X(t(19,h=le.getDerivedFromVars(le.json.default_item))),e.$$.dirty[0]&129|e.$$.dirty[1]&2097152|e.$$.dirty[2]&16){let ht=[];if(le.json.item_builder&&Array.isArray(tt)&&Array.isArray(le.json.item_builder.prototypes)){const st=le.json.item_builder;ht=il(tt,wt,le,st)}else ht=(Array.isArray(i)&&i||[]).map(st=>({div:st}));St.forEach(st=>{st.destroy()}),t(7,St=ht.map((st,jt)=>le.produceChildContext(st.div,{path:jt,variables:st.vars,id:st.id})))}if(e.$$.dirty[1]&512|e.$$.dirty[2]&8&&t(8,w=ee&&Pe),e.$$.dirty[0]&264|e.$$.dirty[1]&256&&(w?typeof ResizeObserver<"u"&&(t(39,Mt=new ResizeObserver(()=>{er()})),Mt.observe(qt)):Mt&&(Mt.disconnect(),t(39,Mt=null))),e.$$.dirty[1]&2048|e.$$.dirty[2]&4&&t(42,Gt=Wn(Ve,Gt)),e.$$.dirty[0]&16|e.$$.dirty[2]&2&&t(4,L=ll(ne,L)),e.$$.dirty[1]&4096|e.$$.dirty[2]&1&&t(43,ae=nh(G,ae)),e.$$.dirty[1]&1073750016&&(t(44,ve=Ur(Ae,ve)),t(12,ar=we(ve))),e.$$.dirty[1]&536911872&&(t(46,Re=Ur(qe,ve)),t(45,Et=we(Re))),e.$$.dirty[0]&16|e.$$.dirty[1]&276889600){t(47,mt=wo(We,te,mt));const ht=L==="horizontal"?(It=(Xe=We==null?void 0:We.end)!=null?Xe:We==null?void 0:We[te==="ltr"?"right":"left"])!=null?It:0:(ze=We==null?void 0:We.bottom)!=null?ze:0,st=we(ht);t(13,Ne={width:L==="horizontal"?st:"1px",height:L==="horizontal"?"1px":st,"margin-right":L==="horizontal"&&te==="ltr"?"-"+st:void 0,"margin-left":L==="horizontal"&&te==="rtl"?"-"+st:void 0,"margin-bottom":L==="vertical"?"-"+st:void 0})}if(e.$$.dirty[0]&16&&t(51,v=L==="horizontal"?"grid-template-columns":"grid-template-rows"),e.$$.dirty[0]&145){let ht=[];St.forEach(st=>{const jt=L==="horizontal"?"width":"height";ht.push(le.getDerivedFromVars({size:st.json[jt],visibility:st.json.visibility}))}),_t(t(14,vt=Li(ht,st=>[...st])))}if(e.$$.dirty[0]&128|e.$$.dirty[1]&134219776&&t(18,R=ch(St,_e,Gt)),e.$$.dirty[0]&16|e.$$.dirty[1]&134350848&&(t(48,ot=[]),Gt>1||_e.forEach((ht,st)=>{var jt;ht.visibility!=="gone"&&(!ht.size&&L==="horizontal"||((jt=ht.size)==null?void 0:jt.type)==="match_parent"?ot.push("100%"):ot.push("max-content"),st+1<_e.length&&ot.push("auto"))}),ot.push("auto")),e.$$.dirty[0]&112|e.$$.dirty[1]&67123200){const ht={};let st={};if(t(49,ct=!1),L==="horizontal"?st.parentVAlign=ae:st.parentHAlign=ae,he==="paging"){t(49,ct=!0),st.scrollSnap="start";const jt=L==="horizontal"?"scroll-padding-left":"scroll-padding-top";ht[jt]=we(ve/2)}Gt===1&&(st.parentLayoutOrientation=L),t(5,De=Si(ht,De)),t(6,Yt=Si(st,Yt))}e.$$.dirty[1]&81920&&t(17,N={padding:mt,"grid-gap":Et}),e.$$.dirty[1]&1179648&&t(16,V={[v]:ih(ot)}),e.$$.dirty[0]&16|e.$$.dirty[1]&33816576&&t(15,D={orientation:L,"scroll-snap":ct,scrollbar:H==="auto"?"auto":"none"}),e.$$.dirty[1]&17301504&&t(50,sr=Ur(F,sr)),e.$$.dirty[0]&1&&le.json&&er(),e.$$.dirty[0]&21|e.$$.dirty[1]&8389632&&le.json&&(Ht&&(wt.unregisterInstance(Ht),t(41,Ht=void 0)),le.id&&!le.fakeElement&&(t(41,Ht=le.id),wt.registerInstance(Ht,{setCurrentItem(ht){const st=wr();if(ht<0||ht>st.length-1)throw new Error('Item is out of range in "set-current-item" action');Jr(st,ht)},setPreviousItem(ht,st){const jt=ke("prev"),Jt=wr();let I=jt-ht;I<0&&(I=st==="ring"?Vi(I,Jt.length):0),Jr(Jt,I)},setNextItem(ht,st){const jt=L==="horizontal",Jt=te==="ltr"||!jt?1:-1,I=jt?me.scrollLeft*Jt+me.offsetWidth===me.scrollWidth:me.scrollTop+me.offsetHeight===me.scrollHeight,rt=wr();if(I&&st==="ring"){Jr(rt,0);return}let d=ke("next")+ht;d>rt.length-1&&(d=st==="ring"?Vi(d,rt.length):rt.length-1),Jr(rt,d)},scrollToStart(){Pr(0)},scrollToEnd(){Pr(te==="ltr"||L!=="horizontal"?1e6:-1e6)},scrollBackward(ht,st){const jt=L==="horizontal",Jt=te==="ltr"||!jt?1:-1,I=jt?me.scrollLeft:me.scrollTop,rt=jt?me.scrollWidth-me.offsetWidth:me.scrollHeight-me.offsetHeight;let de=I*Jt-ht;de<0&&(st==="clamp"?de=0:st==="ring"&&(de=Vi(de,rt))),Pr(de*Jt)},scrollForward(ht,st){const jt=L==="horizontal",Jt=te==="ltr"||!jt?1:-1,I=jt?me.scrollLeft:me.scrollTop,rt=jt?me.scrollWidth-me.offsetWidth:me.scrollHeight-me.offsetHeight;let de=I*Jt+ht;de>rt&&(st==="clamp"?de=rt:st==="ring"&&(de=Vi(de,rt))),Pr(de*Jt)},scrollToPosition(ht){Pr(te==="ltr"||L!=="horizontal"?ht:-ht)}})))},[le,Ke,me,qt,L,De,Yt,St,w,at,Ze,$t,ar,Ne,vt,D,V,N,R,h,y,m,_,f,u,c,a,l,s,o,Ge,fe,pt,Ut,Wt,ut,Ft,er,ir,Mt,Pe,Ht,Gt,ae,ve,Et,Re,mt,ot,ct,sr,v,i,n,te,F,H,he,_e,We,qe,Ae,G,ne,Ve,ee,tt,q,kr,Ar,zt,Zr]}class fh extends Or{constructor(r){super(),zr(this,r,uh,ah,mr,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const Cn={outer:"divkit-bf0ea",tabs:"divkit-8a75d",tabs__list:"divkit-26f55",tabs__item:"divkit-a22f9",tabs__item_selected:"divkit-4108d",tabs__item_actionable:"divkit-4f7ae",tabs__panels:"divkit-daded",tabs__swiper:"divkit-5c791",tabs__swiper_animated:"divkit-763f3",tabs__swiper_inited:"divkit-c3cc6",tabs__panel:"divkit-4ca7a",tabs__panel_visible:"divkit-0c7b1","tabs_height-parent_yes":"divkit-ceaff",tabs__separator:"divkit-41351",tabs__delimitier:"divkit-37bf2"};function dh(e,r){var n,i;if(!e||!e.image_url||typeof e.image_url!="string")return r;const t={url:e.image_url};return((n=e.width)==null?void 0:n.type)==="fixed"&&In(e.width.value)&&(t.width=e.width.value),((i=e.height)==null?void 0:i.type)==="fixed"&&In(e.height.value)&&(t.height=e.height.value),t}const uc=37,fc=39,dc=36,_c=35;function _h(e,r,t,n){const i=[e["top-left"],e["top-right"],e["bottom-right"],e["bottom-left"]];for(let o=0;o<i.length;++o)if(i[o]&&!An(i[o]))return n;return Ko(e,r,t)}function hc(e){const r=e.touches[0],t=r.clientX||r.pageX,n=r.clientY||r.pageY;return{x:t,y:n}}function hh(e){let r,t;return r=new $n({props:{componentContext:e[0],layoutParams:e[1]}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,[i]){const o={};i&1&&(o.componentContext=n[0]),i&2&&(o.layoutParams=n[1]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function gh(e,r,t){let{componentContext:n}=r,{layoutParams:i=void 0}=r,{enabled:o}=r;const s=oi(o);return Oi(Zs,{isEnabled:s}),e.$$set=l=>{"componentContext"in l&&t(0,n=l.componentContext),"layoutParams"in l&&t(1,i=l.layoutParams),"enabled"in l&&t(2,o=l.enabled)},e.$$.update=()=>{e.$$.dirty&4&&s.set(o)},[n,i,o]}class ph extends Or{constructor(r){super(),zr(this,r,gh,hh,mr,{componentContext:0,layoutParams:1,enabled:2})}}const{Boolean:gc}=ni;function pc(e,r,t){const n=e.slice();n[94]=r[t];const i=n[94].index;n[95]=i;const o=n[30][n[95]];return n[96]=o,n}function mc(e,r,t){const n=e.slice();n[94]=r[t];const i=n[94].index;n[95]=i;const o=n[95]===n[16];return n[99]=o,n}function mh(e){let r,t;return r=new li({props:{componentContext:e[0]}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function bh(e){let r,t;return r=new mn({props:{cls:gt("tabs",Cn,e[23]),componentContext:e[0],layoutParams:e[1],customActions:"tabs",parentOf:e[44],parentOfSimpleMode:!0,replaceItems:e[49],$$slots:{default:[wh]},$$scope:{ctx:e}}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&8388608&&(o.cls=gt("tabs",Cn,n[23])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[1]&8192&&(o.parentOf=n[44]),i[0]&2139095033|i[1]&16391|i[3]&512&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function bc(e){let r,t;return{c(){r=Le("img"),p(r,"class",Cn.tabs__delimitier),p(r,"alt",""),p(r,"loading","lazy"),p(r,"decoding","async"),Dn(r.src,t=e[15].url)||p(r,"src",t),O(r,"width",e[15].width?we(e[15].width):void 0),O(r,"height",e[15].height?we(e[15].height):void 0)},m(n,i){ie(n,r,i)},p(n,i){i[0]&32768&&!Dn(r.src,t=n[15].url)&&p(r,"src",t),i[0]&32768&&O(r,"width",n[15].width?we(n[15].width):void 0),i[0]&32768&&O(r,"height",n[15].height?we(n[15].height):void 0)},d(n){n&&re(r)}}}function yh(e){let r=e[94].title+"",t;return{c(){t=qn(r)},m(n,i){ie(n,t,i)},p(n,i){i[0]&131072&&r!==(r=n[94].title+"")&&Ei(t,r)},d(n){n&&re(t)}}}function yc(e){let r,t,n,i=e[15]&&e[95]>0&&bc(e);function o(...s){return e[70](e[95],...s)}return t=new Qo({props:{componentContext:e[0],cls:gt("tabs__item",Cn,{selected:e[99],actionable:!!e[94].title_click_action}),actions:e[94].title_click_action&&!e[0].fakeElement?[e[94].title_click_action].filter(jn):[],attrs:{id:`${e[47]}-tab-${e[95]}`,"aria-controls":`${e[47]}-panel-${e[95]}`,role:"tab",tabindex:e[99]&&!e[0].fakeElement?e[94].title_click_action?void 0:"0":"-1","aria-selected":e[99]?"true":"false"},customAction:e[0].fakeElement?null:o,$$slots:{default:[yh]},$$scope:{ctx:e}}}),{c(){i&&i.c(),r=pr(),Bt(t.$$.fragment)},m(s,l){i&&i.m(s,l),ie(s,r,l),Pt(t,s,l),n=!0},p(s,l){e=s,e[15]&&e[95]>0?i?i.p(e,l):(i=bc(e),i.c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null);const a={};l[0]&1&&(a.componentContext=e[0]),l[0]&196608&&(a.cls=gt("tabs__item",Cn,{selected:e[99],actionable:!!e[94].title_click_action})),l[0]&131073&&(a.actions=e[94].title_click_action&&!e[0].fakeElement?[e[94].title_click_action].filter(jn):[]),l[0]&196609&&(a.attrs={id:`${e[47]}-tab-${e[95]}`,"aria-controls":`${e[47]}-panel-${e[95]}`,role:"tab",tabindex:e[99]&&!e[0].fakeElement?e[94].title_click_action?void 0:"0":"-1","aria-selected":e[99]?"true":"false"}),l[0]&131073&&(a.customAction=e[0].fakeElement?null:o),l[0]&131072|l[3]&512&&(a.$$scope={dirty:l,ctx:e}),t.$set(a)},i(s){n||(B(t.$$.fragment,s),n=!0)},o(s){$(t.$$.fragment,s),n=!1},d(s){s&&re(r),i&&i.d(s),Nt(t,s)}}}function wc(e){let r,t;return{c(){r=Le("div"),p(r,"class",Cn.tabs__separator),p(r,"style",t=Ct(e[33]))},m(n,i){ie(n,r,i)},p(n,i){i[1]&4&&t!==(t=Ct(n[33]))&&p(r,"style",t)},d(n){n&&re(r)}}}function vc(e){let r,t;return r=new ph({props:{componentContext:e[96],layoutParams:e[3],enabled:e[95]===e[16]}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&1073872896&&(o.componentContext=n[96]),i[0]&8&&(o.layoutParams=n[3]),i[0]&196608&&(o.enabled=n[95]===n[16]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function kc(e){let r,t,n,i,o,s,l=e[96]&&vc(e);return{c(){r=Le("div"),l&&l.c(),t=pr(),p(r,"class",n=gt("tabs__panel",Cn,{visible:e[31][e[95]]})),p(r,"role","tabpanel"),p(r,"id",i=e[47]+"-panel-"+e[95]),p(r,"aria-labelledby",o=e[47]+"-tab-"+e[95]),O(r,"left",e[95]*100+"%")},m(a,c){ie(a,r,c),l&&l.m(r,null),At(r,t),s=!0},p(a,c){a[96]?l?(l.p(a,c),c[0]&1073872896&&B(l,1)):(l=vc(a),l.c(),B(l,1),l.m(r,t)):l&&(tr(),$(l,1,1,()=>{l=null}),rr()),(!s||c[0]&131072|c[1]&1&&n!==(n=gt("tabs__panel",Cn,{visible:a[31][a[95]]})))&&p(r,"class",n),(!s||c[0]&131072&&i!==(i=a[47]+"-panel-"+a[95]))&&p(r,"id",i),(!s||c[0]&131072&&o!==(o=a[47]+"-tab-"+a[95]))&&p(r,"aria-labelledby",o),(!s||c[0]&131072)&&O(r,"left",a[95]*100+"%")},i(a){s||(B(l),s=!0)},o(a){$(l),s=!1},d(a){a&&re(r),l&&l.d()}}}function wh(e){let r,t,n,i,o,s,l,a,c,u,f,_=nr(e[17]),m=[];for(let N=0;N<_.length;N+=1)m[N]=yc(mc(e,_,N));const y=N=>$(m[N],1,1,()=>{m[N]=null});let h=e[19]&&wc(e),w=nr(e[17]),v=[];for(let N=0;N<w.length;N+=1)v[N]=kc(pc(e,w,N));const R=N=>$(v[N],1,1,()=>{v[N]=null});return{c(){r=Le("div");for(let N=0;N<m.length;N+=1)m[N].c();n=pr(),h&&h.c(),i=pr(),o=Le("div"),s=Le("div");for(let N=0;N<v.length;N+=1)v[N].c();p(r,"class",t=Cn.tabs__list+" "+(e[45]?xt["root_restrict-scroll"]:"")),p(r,"role","tablist"),O(r,"--divkit-tabs-title-padding",e[14]?si(e[14],e[18]):""),O(r,"--divkit-tabs-font-size",we(e[4])),O(r,"--divkit-tabs-paddings",e[5]),O(r,"--divkit-tabs-line-height",e[24]),O(r,"--divkit-tabs-letter-spacing",e[25]),O(r,"--divkit-tabs-active-font-weight",e[7]||""),O(r,"--divkit-tabs-inactive-font-weight",e[8]||""),O(r,"--divkit-tabs-active-font-family",e[26]||""),O(r,"--divkit-tabs-inactive-font-family",e[27]||""),O(r,"--divkit-tabs-active-text-color",e[9]),O(r,"--divkit-tabs-inactive-text-color",e[10]),O(r,"--divkit-tabs-active-background-color",e[11]),O(r,"--divkit-tabs-inactive-background-color",e[12]),O(r,"--divkit-tabs-border-radius",e[6]),O(r,"--divkit-tabs-items-spacing",e[13]?pn(e[13]*10/e[4]):""),p(s,"class",l=gt("tabs__swiper",Cn,{inited:e[28],animated:e[29]})),p(o,"class",a=Cn.tabs__panels+" "+(e[45]?xt["root_restrict-scroll"]:""))},m(N,V){ie(N,r,V);for(let D=0;D<m.length;D+=1)m[D]&&m[D].m(r,null);e[71](r),ie(N,n,V),h&&h.m(N,V),ie(N,i,V),ie(N,o,V),At(o,s);for(let D=0;D<v.length;D+=1)v[D]&&v[D].m(s,null);e[72](s),e[73](o),c=!0,u||(f=[He(r,"keydown",e[51]),He(o,"touchstart",function(){vr(e[32]?e[52]:void 0)&&(e[32]?e[52]:void 0).apply(this,arguments)}),He(o,"touchmove",function(){vr(e[32]?e[53]:void 0)&&(e[32]?e[53]:void 0).apply(this,arguments)}),He(o,"touchend",function(){vr(e[32]?e[54]:void 0)&&(e[32]?e[54]:void 0).apply(this,arguments)}),He(o,"touchcancel",function(){vr(e[32]?e[54]:void 0)&&(e[32]?e[54]:void 0).apply(this,arguments)})],u=!0)},p(N,V){if(e=N,V[0]&229377|V[1]&589824){_=nr(e[17]);let D;for(D=0;D<_.length;D+=1){const te=mc(e,_,D);m[D]?(m[D].p(te,V),B(m[D],1)):(m[D]=yc(te),m[D].c(),B(m[D],1),m[D].m(r,null))}for(tr(),D=_.length;D<m.length;D+=1)y(D);rr()}if((!c||V[1]&16384&&t!==(t=Cn.tabs__list+" "+(e[45]?xt["root_restrict-scroll"]:"")))&&p(r,"class",t),V[0]&278528&&O(r,"--divkit-tabs-title-padding",e[14]?si(e[14],e[18]):""),V[0]&16&&O(r,"--divkit-tabs-font-size",we(e[4])),V[0]&32&&O(r,"--divkit-tabs-paddings",e[5]),V[0]&16777216&&O(r,"--divkit-tabs-line-height",e[24]),V[0]&33554432&&O(r,"--divkit-tabs-letter-spacing",e[25]),V[0]&128&&O(r,"--divkit-tabs-active-font-weight",e[7]||""),V[0]&256&&O(r,"--divkit-tabs-inactive-font-weight",e[8]||""),V[0]&67108864&&O(r,"--divkit-tabs-active-font-family",e[26]||""),V[0]&134217728&&O(r,"--divkit-tabs-inactive-font-family",e[27]||""),V[0]&512&&O(r,"--divkit-tabs-active-text-color",e[9]),V[0]&1024&&O(r,"--divkit-tabs-inactive-text-color",e[10]),V[0]&2048&&O(r,"--divkit-tabs-active-background-color",e[11]),V[0]&4096&&O(r,"--divkit-tabs-inactive-background-color",e[12]),V[0]&64&&O(r,"--divkit-tabs-border-radius",e[6]),V[0]&8208&&O(r,"--divkit-tabs-items-spacing",e[13]?pn(e[13]*10/e[4]):""),e[19]?h?h.p(e,V):(h=wc(e),h.c(),h.m(i.parentNode,i)):h&&(h.d(1),h=null),V[0]&1073938440|V[1]&65537){w=nr(e[17]);let D;for(D=0;D<w.length;D+=1){const te=pc(e,w,D);v[D]?(v[D].p(te,V),B(v[D],1)):(v[D]=kc(te),v[D].c(),B(v[D],1),v[D].m(s,null))}for(tr(),D=w.length;D<v.length;D+=1)R(D);rr()}(!c||V[0]&805306368&&l!==(l=gt("tabs__swiper",Cn,{inited:e[28],animated:e[29]})))&&p(s,"class",l),(!c||V[1]&16384&&a!==(a=Cn.tabs__panels+" "+(e[45]?xt["root_restrict-scroll"]:"")))&&p(o,"class",a)},i(N){if(!c){for(let V=0;V<_.length;V+=1)B(m[V]);for(let V=0;V<w.length;V+=1)B(v[V]);c=!0}},o(N){m=m.filter(gc);for(let V=0;V<m.length;V+=1)$(m[V]);v=v.filter(gc);for(let V=0;V<v.length;V+=1)$(v[V]);c=!1},d(N){N&&(re(r),re(n),re(i),re(o)),ln(m,N),e[71](null),h&&h.d(N),ln(v,N),e[72](null),e[73](null),u=!1,Hr(f)}}}function vh(e){let r,t,n,i;const o=[bh,mh],s=[];function l(a,c){return a[2]?-1:0}return~(r=l(e))&&(t=s[r]=o[r](e)),{c(){t&&t.c(),n=Zt()},m(a,c){~r&&s[r].m(a,c),ie(a,n,c),i=!0},p(a,c){let u=r;r=l(a),r===u?~r&&s[r].p(a,c):(t&&(tr(),$(s[u],1,1,()=>{s[u]=null}),rr()),~r?(t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(B(t),i=!0)},o(a){$(t),i=!1},d(a){a&&re(n),~r&&s[r].d(a)}}}function kh(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R,N,V,D,te=C,F=()=>(te(),te=M(l,I=>t(62,D=I)),l),Y,X,H=C,W=()=>(H(),H=M(w,I=>t(63,X=I)),w),U,he=C,Ie=()=>(he(),he=M(h,I=>t(64,U=I)),h),Te,_e=C,be=()=>(_e(),_e=M(m,I=>t(65,Te=I)),m),_t,We,Oe=C,Fe=()=>(Oe(),Oe=M(_,I=>t(66,We=I)),_),qe,Qe=C,Z=()=>(Qe(),Qe=M(f,I=>t(67,qe=I)),f),Ae,ge=C,et=()=>(ge(),ge=M(u,I=>t(19,Ae=I)),u),G,Ee=C,Ue=()=>(Ee(),Ee=M(c,I=>t(68,G=I)),c),ne,it=C,je=()=>(it(),it=M(s,I=>t(69,ne=I)),s),Ve,yt=C,Vt=()=>(yt(),yt=M(y,I=>t(45,Ve=I)),y);e.$$.on_destroy.push(()=>te()),e.$$.on_destroy.push(()=>H()),e.$$.on_destroy.push(()=>he()),e.$$.on_destroy.push(()=>_e()),e.$$.on_destroy.push(()=>Oe()),e.$$.on_destroy.push(()=>Qe()),e.$$.on_destroy.push(()=>ge()),e.$$.on_destroy.push(()=>Ee()),e.$$.on_destroy.push(()=>it()),e.$$.on_destroy.push(()=>yt());let{componentContext:ee}=r,{layoutParams:tt=void 0}=r;const lt=Wr(Xr),dt=lt.direction;rn(e,dt,I=>t(18,_t=I));const Ge=lt.genId("tabs");let E,$e=!1,le=oi([]);rn(e,le,I=>t(17,Y=I));let Ke={},wt,fe,me,at={},Ze=12,$t="",Mt="",qt="",Pe="",pt,Ut="",Ht,Gt="",L="",ae="",ar="",ve="",Et=0,Re="",mt="",Ne=null,ot=!1,vt=!1,De,ct=[],Yt=[],sr=null,dr=null,Wt=null,ut,St=!1,Ft=!1,er,ir,wr;function Pr(){t(4,Ze=12),t(5,$t=""),t(6,Pe=""),t(7,pt=void 0),t(26,Ut=""),t(8,Ht=void 0),t(27,Gt=""),t(9,L=""),t(10,ae=""),t(11,ar=""),t(12,ve=""),t(13,Et=0),t(56,Re=""),t(57,mt=""),t(14,Ne=null),t(15,wr=void 0)}function Jr(I){ee.json.items&&t(0,ee={...ee,json:{...ee.json,items:ee.json.items.map((rt,de)=>({...rt,div:I[de]}))}})}function Je(I){$e||(ct.forEach(rt=>{rt==null||rt.destroy()}),t(30,ct=I.map((rt,de)=>{if(de===v&&(rt!=null&&rt.div))return ee.produceChildContext(rt.div,{path:de})})),t(31,Yt=I.map((rt,de)=>de===v)))}async function cr(I,rt=!1){if(De=v,t(16,v=I),ur(),kr(),rt){await gn();const de=wt.querySelector(`.${Cn.tabs__item_selected}`);de&&de.focus()}}function ke(I,rt=!1){const de=Y==null?void 0:Y.length;if(!de)return;const d=Y.map(lr=>lr.index);let kt=d.indexOf(v)+I;kt>=de?kt=0:kt<0&&(kt=de-1);const Fr=d[kt];cr(Fr,rt)}function q(I,rt){return v!==rt?(cr(rt),!1):!0}function kr(){t(29,vt=!0),Ar(-v*100),zt(),Zr(),Se(),ir=-v*fe.clientWidth}async function Ar(I){await gn(),t(22,me.style.transform=`translate3d(${I}%,0,0)`,me)}function zt(I=!1){const rt=I?Math.max(0,v-1):Math.min(v,De!=null?De:v),de=I?Math.min(i.length-1,v+1):Math.max(v,De!=null?De:v);ct.forEach(d=>{d==null||d.destroy()}),t(30,ct=ct.map((d,Me)=>{var Fr;if(d)return d;const kt=(Fr=i[Me])==null?void 0:Fr.div;if(Me>=rt&&Me<=de&&kt)return ee.produceChildContext(kt,{path:Me})})),t(31,Yt=Yt.map((d,Me)=>Me>=rt&&Me<=de))}async function Zr(){if((D==null?void 0:D.type)==="match_parent")return;await gn();const I=document.getElementById(`${Ge}-panel-${v}`);I&&t(21,fe.style.height=we(I.offsetHeight),fe)}function Se(){sr&&clearTimeout(sr),sr=window.setTimeout(()=>{t(31,Yt=i.map((I,rt)=>rt===v))},400)}function Ot(I){if(!(I.ctrlKey||I.shiftKey||I.altKey||I.metaKey)&&i){if(I.which===uc)ke(-1,!0);else if(I.which===fc)ke(1,!0);else if(I.which===dc)cr(0,!0);else if(I.which===_c)cr(i.length-1,!0);else return;I.preventDefault()}}function ur(){ot||(t(28,ot=!0),t(21,fe.style.height=we(fe.clientHeight),fe),t(22,me.style.transform=`translate3d(${-(De!=null?De:v)*100}%,0,0)`,me))}function Xe(I){var d;const rt=I.target,de=(d=rt==null?void 0:rt.closest)==null?void 0:d.call(rt,`.${xt["root_restrict-scroll"]}`);i.length<2||I.touches.length>1||de&&de!==fe||(St=!1,Ft=!1,dr=hc(I),Wt=null,ut=Date.now(),er=ir||-v*fe.clientWidth,t(29,vt=!1),sr&&clearTimeout(sr))}function It(I){const rt=hc(I);if(!dr||Wt&&Wt.x===rt.x&&Wt.y===rt.y)return;Wt=rt;const de=fe.clientWidth;if(St){ir=rt.x-dr.x+er;const d=de*i.length;if(ir>0)ir=ir*de/(ir+de*3);else if(-ir+de>d){let Me=-ir+de-d;Me=Me*de/(Me+de*3),ir=de-d-Me}Ar(ir*100/de)}else Math.abs(rt.y-dr.y)>10?Ft=!0:!Ft&&Math.abs(rt.x-dr.x)>8&&(ur(),St=!0,dr=rt,Ar(-v*100),zt(!0));St&&I.cancelable&&I.preventDefault()}function ze(){Ft=!1,dr=null;let I=v;if(!St)return;St=!1;const rt=Math.min(512,fe.clientWidth),de=Math.abs(er-ir),d=Math.min(1,(Date.now()-ut)/750);de>rt/4*d&&(I+=er>ir?1:-1),I>=i.length?I=i.length-1:I<0&&(I=0),I===v?(t(29,vt=!0),ir=-I*rt,Ar(-I*100),Se()):cr(I)}on(()=>{ct.forEach(I=>{I==null||I.destroy()}),E&&(lt.unregisterInstance(E),t(55,E=void 0))});const ht=(I,rt)=>q(rt,I);function st(I){Tr[I?"unshift":"push"](()=>{wt=I,t(20,wt)})}function jt(I){Tr[I?"unshift":"push"](()=>{me=I,t(22,me)})}function Jt(I){Tr[I?"unshift":"push"](()=>{fe=I,t(21,fe)})}return e.$$set=I=>{"componentContext"in I&&t(0,ee=I.componentContext),"layoutParams"in I&&t(1,tt=I.layoutParams)},e.$$.update=()=>{var I,rt;if(e.$$.dirty[0]&1&&t(61,n=ee.origJson),e.$$.dirty[1]&1073741824&&n&&Pr(),e.$$.dirty[0]&1&&t(58,i=Array.isArray(ee.json.items)&&ee.json.items||[]),e.$$.dirty[1]&134217728&&t(44,o=i.map(de=>{var d;return{json:de.div,id:(d=de.div)==null?void 0:d.id}})),e.$$.dirty[0]&1&&je(t(43,s=ee.getDerivedFromVars(ee.json.width))),e.$$.dirty[0]&1&&F(t(42,l=ee.getDerivedFromVars(ee.json.height))),e.$$.dirty[0]&1&&t(60,a=ee.getJsonWithVars(ee.json.selected_tab)),e.$$.dirty[0]&1&&Ue(t(41,c=ee.getDerivedFromVars(ee.json.tab_title_style))),e.$$.dirty[0]&1&&et(t(40,u=ee.getDerivedFromVars(ee.json.has_separator))),e.$$.dirty[0]&1&&Z(t(39,f=ee.getDerivedFromVars(ee.json.separator_color))),e.$$.dirty[0]&1&&Fe(t(38,_=ee.getDerivedFromVars(ee.json.separator_paddings))),e.$$.dirty[0]&1&&be(t(37,m=ee.getDerivedFromVars(ee.json.switch_tabs_by_content_swipe_enabled))),e.$$.dirty[0]&1&&Vt(t(36,y=ee.getDerivedFromVars(ee.json.restrict_parent_scroll))),e.$$.dirty[0]&1&&Ie(t(35,h=ee.getDerivedFromVars(ee.json.title_paddings))),e.$$.dirty[0]&1&&W(t(34,w=ee.getDerivedFromVars(ee.json.tab_title_delimiter))),e.$$.dirty[1]&536870912&&t(16,v=a&&Number(a)||0),e.$$.dirty[0]&1|e.$$.dirty[1]&134217728)if(Array.isArray(i)&&i.length){let de=[];i.forEach((d,Me)=>{const kt=ee.getJsonWithVars({index:Me,title:d.title,title_click_action:d.title_click_action});kt.title&&typeof kt.title=="string"?de.push(kt):ee.logError(Q(new Error("Incorrect title for the tab"),{additional:{index:Me}}))}),le.set(de)}else le.set([]);if(e.$$.dirty[0]&131073&&(Y!=null&&Y.length?t(2,$e=!1):(t(2,$e=!0),ee.logError(Q(new Error('Incorrect or empty "items" prop for div "tabs"'))))),e.$$.dirty[0]&8|e.$$.dirty[2]&129){let de={parentContainerOrientation:"horizontal"};(ne==null?void 0:ne.type)==="wrap_content"&&(de.parentHorizontalWrapContent=!0),(!D||D.type==="wrap_content")&&(de.parentVerticalWrapContent=!0),t(3,Ke=Si(de,Ke))}if(e.$$.dirty[0]&65541|e.$$.dirty[1]&134217728&&!$e&&(v<0||v>=i.length)&&(ee.logError(Q(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:ee.json.selected_tab,length:i.length}})),t(16,v=v<0?0:i.length-1)),e.$$.dirty[0]&196613&&!$e&&!Y.some(de=>v===de.index)&&(ee.logError(Q(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:ee.json.selected_tab}})),t(16,v=((I=Y[0])==null?void 0:I.index)||0)),e.$$.dirty[2]&64&&t(59,R=G||{}),e.$$.dirty[0]&16|e.$$.dirty[1]&268435456&&t(4,Ze=Wn(R.font_size,Ze)),e.$$.dirty[0]&262192|e.$$.dirty[1]&268435456&&(R.font_size||R.paddings)){const de=R.paddings||{top:6,right:8,bottom:6,left:8},d={top:(Number(de.top)||0)/Ze*10,right:(Number(_t==="ltr"?de.end:de.start)||Number(de.right)||0)/Ze*10,bottom:(Number(de.bottom)||0)/Ze*10,left:(Number(_t==="ltr"?de.start:de.end)||Number(de.left)||0)/Ze*10};t(5,$t=wo(d,_t,$t))}if(e.$$.dirty[0]&16|e.$$.dirty[1]&268435456){const de=R.line_height;de!==void 0&&In(de)&&t(24,Mt=we(de/Ze*10))}if(e.$$.dirty[0]&16|e.$$.dirty[1]&268435456){const de=R.letter_spacing;de!==void 0&&An(de)&&t(25,qt=we(de/Ze*10))}if(e.$$.dirty[0]&80|e.$$.dirty[1]&268435456&&(R.corner_radius||R.corners_radius||R.font_size)){const de=(rt=R.corner_radius)!=null?rt:1e3;R.corners_radius?t(6,Pe=_h(R.corners_radius,de,Ze,Pe)):An(de)&&t(6,Pe=we(de/Ze*10))}e.$$.dirty[0]&128|e.$$.dirty[1]&268435456&&(t(7,pt=lo(R.active_font_weight||R.font_weight,void 0,pt)),R.font_family&&typeof R.font_family=="string"?t(26,Ut=lt.typefaceProvider(R.font_family,{fontWeight:pt||400})):t(26,Ut="")),e.$$.dirty[0]&256|e.$$.dirty[1]&268435456&&(t(8,Ht=lo(R.inactive_font_weight||R.font_weight,void 0,Ht)),R.font_family&&typeof R.font_family=="string"?t(27,Gt=lt.typefaceProvider(R.font_family,{fontWeight:Ht||400})):t(27,Gt="")),e.$$.dirty[0]&512|e.$$.dirty[1]&268435456&&t(9,L=Cr(R.active_text_color,1,L)),e.$$.dirty[0]&1024|e.$$.dirty[1]&268435456&&t(10,ae=Cr(R.inactive_text_color,1,ae)),e.$$.dirty[0]&2048|e.$$.dirty[1]&268435456&&t(11,ar=Cr(R.active_background_color,1,ar)),e.$$.dirty[0]&4096|e.$$.dirty[1]&268435456&&t(12,ve=Cr(R.inactive_background_color,1,ve)),e.$$.dirty[0]&8192|e.$$.dirty[1]&268435456&&t(13,Et=Ur(R.item_spacing,Et)),e.$$.dirty[0]&786432|e.$$.dirty[1]&100663296|e.$$.dirty[2]&48&&Ae&&(qe&&t(56,Re=Cr(qe,1,Re)),We&&t(57,mt=wo(We,_t,mt))),e.$$.dirty[1]&100663296&&t(33,N={background:Re,margin:mt}),e.$$.dirty[2]&8&&t(32,V=typeof Te>"u"?!0:!!Te),e.$$.dirty[0]&16384|e.$$.dirty[2]&4&&t(14,Ne=vo(U||void 0,Ne)),e.$$.dirty[0]&32768|e.$$.dirty[2]&2&&t(15,wr=dh(X,wr)),e.$$.dirty[1]&134217728&&Je(i),e.$$.dirty[0]&65541|e.$$.dirty[1]&150994944&&ee.json&&(E&&(lt.unregisterInstance(E),t(55,E=void 0)),ee.id&&!$e&&!ee.fakeElement&&(t(55,E=ee.id),lt.registerInstance(E,{setCurrentItem(de){if(de<0||de>i.length-1)throw new Error('Item is out of range in "set-current-item" action');cr(de)},setPreviousItem(de,d){let Me=v-de;Me<0&&(Me=d==="ring"?Vi(Me,i.length):0),cr(Me)},setNextItem(de,d){let Me=v+de;Me>i.length-1&&(Me=d==="ring"?Vi(Me,i.length):i.length-1),cr(Me)},scrollToStart(){cr(0)},scrollToEnd(){cr(i.length-1)}}))),e.$$.dirty[2]&1&&t(23,at={"height-parent":(D==null?void 0:D.type)==="match_parent"?"yes":""})},[ee,tt,$e,Ke,Ze,$t,Pe,pt,Ht,L,ae,ar,ve,Et,Ne,wr,v,Y,_t,Ae,wt,fe,me,at,Mt,qt,Ut,Gt,ot,vt,ct,Yt,V,N,w,h,y,m,_,f,u,c,l,s,o,Ve,dt,Ge,le,Jr,q,Ot,Xe,It,ze,E,Re,mt,i,R,a,n,D,X,U,Te,We,qe,G,ne,ht,st,jt,Jt]}class Ah extends Or{constructor(r){super(),zr(this,r,kh,vh,mr,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}}const Gi={state:"divkit-31140",state_overflow_visible:"divkit-bace1",state__animations:"divkit-8524e","state__animation-child":"divkit-dcc79","state__animation-child-inner":"divkit-aa7dd"};function es(e){return e<.5?4*e*e*e:.5*Math.pow(2*e-2,3)+1}function jh(e){return e*e*e}function Ac(e){const r=e-1;return r*r*r+1}function jc(e){return r=>{if(r<=0)return 0;if(r>=1)return 1;const t=r*e.length,n=Math.floor(t),i=e[n],o=e[n+1],s=t-n;return i*s+o*(1-s)}}const Ch=jc([.0021,.0045,.0071,.01,.0131,.0165,.0202,.0242,.0284,.033,.0378,.0429,.0483,.054,.0601,.0664,.0731,.08,.0872,.0948,.1026,.1108,.1192,.1279,.1369,.1461,.1556,.1653,.1753,.1855,.1958,.2064,.2171,.2279,.2389,.25,.2612,.2725,.2839,.2952,.3067,.3181,.3295,.341,.3524,.3637,.375,.3863,.3974,.4085,.4195,.4304,.4412,.4519,.4624,.4729,.4832,.4934,.5034,.5133,.5231,.5327,.5422,.5516,.5608,.5699,.5788,.5876,.5963,.6048,.6132,.6214,.6295,.6375,.6453,.653,.6606,.668,.6754,.6825,.6896,.6965,.7034,.7101,.7166,.7231,.7295,.7357,.7418,.7479,.7538,.7596,.7653,.7709,.7764,.7818,.7871,.7923,.7974,.8024,.8073,.8122,.8169,.8216,.8261,.8306,.835,.8394,.8436,.8478,.8518,.8558,.8598,.8636,.8674,.8711,.8747,.8783,.8818,.8852,.8886,.8919,.8951,.8983,.9014,.9044,.9074,.9103,.9131,.9159,.9187,.9213,.924,.9265,.929,.9315,.9339,.9362,.9385,.9408,.943,.9451,.9472,.9492,.9512,.9532,.9551,.9569,.9587,.9605,.9622,.9638,.9655,.967,.9686,.9701,.9715,.9729,.9743,.9756,.9769,.9782,.9794,.9805,.9817,.9828,.9838,.9848,.9858,.9868,.9877,.9886,.9894,.9902,.991,.9917,.9924,.9931,.9937,.9943,.9949,.9954,.9959,.9964,.9969,.9973,.9977,.998,.9983,.9986,.9989,.9991,.9993,.9995,.9997,.9998,.9999,.9999,1,1]),Eh=jc([5e-4,.002,.0045,.0078,.0119,.0168,.0224,.0286,.0355,.0429,.0508,.0592,.0681,.0774,.087,.0969,.1072,.1177,.1285,.1395,.1507,.1621,.1736,.1853,.197,.2089,.2208,.2328,.2448,.2569,.2689,.281,.293,.305,.317,.3289,.3408,.3526,.3644,.376,.3876,.3991,.4105,.4218,.433,.444,.455,.4658,.4765,.4871,.4975,.5078,.518,.528,.5379,.5477,.5573,.5668,.5761,.5853,.5944,.6033,.612,.6206,.6291,.6374,.6456,.6537,.6616,.6693,.677,.6845,.6918,.699,.7061,.713,.7199,.7265,.7331,.7395,.7458,.752,.758,.764,.7698,.7755,.781,.7865,.7918,.7971,.8022,.8072,.8121,.8169,.8216,.8262,.8307,.8351,.8394,.8436,.8477,.8517,.8557,.8595,.8633,.8669,.8705,.874,.8775,.8808,.8841,.8873,.8904,.8934,.8964,.8993,.9022,.9049,.9076,.9103,.9129,.9154,.9178,.9202,.9226,.9249,.9271,.9293,.9314,.9335,.9355,.9375,.9394,.9413,.9431,.9449,.9466,.9483,.95,.9516,.9532,.9547,.9562,.9576,.9591,.9605,.9618,.9631,.9644,.9657,.9669,.9681,.9692,.9703,.9714,.9725,.9736,.9746,.9756,.9765,.9775,.9784,.9793,.9802,.981,.9818,.9826,.9834,.9842,.9849,.9856,.9863,.987,.9877,.9883,.989,.9896,.9902,.9908,.9913,.9919,.9924,.993,.9935,.994,.9944,.9949,.9954,.9958,.9963,.9967,.9971,.9975,.9979,.9983,.9986,.999,.9993,.9997,1]),cl={linear:Ln,ease:Ch,ease_in:jh,ease_out:Ac,ease_in_out:es,spring:Eh};function ul(e){return cl[e]}const Cc=200,Ec=0,Sh=0,Vh=0;function Sc(e){return Math.max(...e.map(r=>(Number(r.duration)||Cc)+(Number(r.start_delay)||Ec)))}function Ih(e,{transitions:r,elementBbox:t,rootBbox:n,direction:i,maxDuration:o,alpha:s}){const l=s!=null?s:1;return{duration:Xo()?0:o,css:a=>{const c=a*o,u=r.map(v=>{var Y,X,H;const R=Number(v.start_delay)||Ec,N=Number(v.duration)||Cc,V=Math.max(0,Math.min(1,(c-R)/N)),D=i==="in"?1-V:V,F=(ul(v.interpolator||"ease_in_out")||es)(D);if(v.type==="fade")return F>=1?{active:!1,opacity:0}:{active:F>0&&F<1,opacity:(1-F)*l+F*(v.alpha||Sh)};if(v.type==="slide"){const W=v.edge==="top"||v.edge==="left"?-1:1,U=v.edge==="top"||v.edge==="bottom"||!v.edge?"translateY":"translateX";let he=(Y=v.distance)==null?void 0:Y.value;he===void 0&&(v.edge==="top"||v.edge==="bottom"||!v.edge?he=Math.abs(n[v.edge==="bottom"?"bottom":"top"]-t[v.edge==="bottom"?"top":"bottom"]):he=Math.abs(n[v.edge==="left"?"left":"right"]-t[v.edge==="left"?"right":"left"]));const Ie=he*F;return{active:F>0&&F<1,translate:`${U}(${Ie*W}px)`}}else if(v.type==="scale"){const W=1-F+F*(v.scale||Vh),U=(X=v.pivot_x)!=null?X:.5,he=(H=v.pivot_y)!=null?H:.5,Ie=(1-W)*t.width*U,Te=(1-W)*t.height*he;return{active:F>0&&F<1,scale:`translate(${Ie}px, ${Te}px) scale(${W})`}}return{}}),f=u.map(v=>v.opacity).filter(v=>v!==void 0).reduce((v,R)=>v*R,1),_=u.map(v=>v.translate).filter(v=>v!==void 0).join(" "),m=u.map(v=>v.scale).filter(v=>v!==void 0).join(" "),y=u.filter(v=>v.active).map(v=>v.scale).filter(v=>v!==void 0),h=y.length?y[y.length-1]:m;return`transform:${[_,h].filter(Boolean).join(" ")||"none"};opacity:${f}`}}}function wi(e,r,t){return e*(1-t)+r*t}const Th=200,Dh=0;function Fh(e,{rootBbox:r,beforeBbox:t,afterBbox:n,transition:i}){var o,s;return{delay:(o=i.start_delay)!=null?o:Dh,duration:Xo()?0:(s=i.duration)!=null?s:Th,easing:i.interpolator&&i.interpolator in cl?cl[i.interpolator]:es,css:l=>[`top:${wi(t.top,n.top,l)-r.top}px`,`left:${wi(t.left,n.left,l)-r.left}px`,`width:${wi(t.width,n.width,l)}px`,`height:${wi(t.height,n.height,l)}px`].join(";")}}function Vc(e){const r=[];return e.type==="set"?(e.items||[]).forEach(t=>{r.push(...Vc(t))}):r.push(e),r}const{Map:Mh}=ni;function Ic(e,r,t){const n=e.slice();return n[35]=r[t],n}function Ph(e){let r,t;return r=new li({props:{componentContext:e[0]}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function Nh(e){let r,t;return r=new mn({props:{cls:gt("state",Gi,e[7]),componentContext:e[0],layoutParams:e[1],parentOf:e[8],parentOfSimpleMode:!0,replaceItems:e[10],$$slots:{default:[Rh]},$$scope:{ctx:e}}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&128&&(o.cls=gt("state",Gi,n[7])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&256&&(o.parentOf=n[8]),i[0]&120|i[1]&128&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function Tc(e){let r=e[5],t,n,i=Dc(e);return{c(){i.c(),t=Zt()},m(o,s){i.m(o,s),ie(o,t,s),n=!0},p(o,s){s[0]&32&&mr(r,r=o[5])?(tr(),$(i,1,1,C),rr(),i=Dc(o),i.c(),B(i,1),i.m(t.parentNode,t)):i.p(o,s)},i(o){n||(B(i),n=!0)},o(o){$(i),n=!1},d(o){o&&re(t),i.d(o)}}}function Dc(e){let r,t;return r=new $n({props:{componentContext:e[6]}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&64&&(o.componentContext=n[6]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function zh(e){let r,t,n,i,o,s,l,a;n=new $n({props:{componentContext:e[35].componentContextCopy}});function c(){return e[20](e[35])}return{c(){r=Le("div"),t=Le("div"),Bt(n.$$.fragment),i=pr(),p(t,"class",Gi["state__animation-child-inner"]),p(r,"class",Gi["state__animation-child"])},m(u,f){ie(u,r,f),At(r,t),Pt(n,t,null),At(r,i),s=!0,l||(a=He(r,"introend",c),l=!0)},p(u,f){e=u;const _={};f[0]&16&&(_.componentContext=e[35].componentContextCopy),n.$set(_)},i(u){s||(B(n.$$.fragment,u),o||Fn(()=>{o=Us(r,Fh,e[35]),o.start()}),s=!0)},o(u){$(n.$$.fragment,u),s=!1},d(u){u&&re(r),Nt(n),l=!1,a()}}}function Oh(e){let r,t,n,i,o,s=`${e[35].offsetLeft}px`,l=`${e[35].offsetTop}px`,a=`${e[35].width}px`,c=`${e[35].height}px`,u,f,_;n=new $n({props:{componentContext:e[35].componentContextCopy}});function m(){return e[19](e[35])}return{c(){r=Le("div"),t=Le("div"),Bt(n.$$.fragment),i=pr(),p(t,"class",Gi["state__animation-child-inner"]),p(r,"class",Gi["state__animation-child"]),O(r,"left",s),O(r,"top",l),O(r,"width",a),O(r,"height",c)},m(y,h){ie(y,r,h),At(r,t),Pt(n,t,null),At(r,i),u=!0,f||(_=He(r,"introend",m),f=!0)},p(y,h){e=y;const w={};h[0]&16&&(w.componentContext=e[35].componentContextCopy),n.$set(w),h[0]&16&&s!==(s=`${e[35].offsetLeft}px`)&&O(r,"left",s),h[0]&16&&l!==(l=`${e[35].offsetTop}px`)&&O(r,"top",l),h[0]&16&&a!==(a=`${e[35].width}px`)&&O(r,"width",a),h[0]&16&&c!==(c=`${e[35].height}px`)&&O(r,"height",c)},i(y){u||(B(n.$$.fragment,y),o||Fn(()=>{o=Us(r,Ih,e[35]),o.start()}),u=!0)},o(y){$(n.$$.fragment,y),u=!1},d(y){y&&re(r),Nt(n),f=!1,_()}}}function Fc(e,r){let t,n,i,o,s;const l=[Oh,zh],a=[];function c(u,f){return"direction"in u[35]?0:1}return n=c(r),i=a[n]=l[n](r),{key:e,first:null,c(){t=Zt(),i.c(),o=Zt(),this.first=t},m(u,f){ie(u,t,f),a[n].m(u,f),ie(u,o,f),s=!0},p(u,f){r=u;let _=n;n=c(r),n===_?a[n].p(r,f):(tr(),$(a[_],1,1,()=>{a[_]=null}),rr(),i=a[n],i?i.p(r,f):(i=a[n]=l[n](r),i.c()),B(i,1),i.m(o.parentNode,o))},i(u){s||(B(i),s=!0)},o(u){$(i),s=!1},d(u){u&&(re(t),re(o)),a[n].d(u)}}}function Rh(e){let r,t,n=[],i=new Mh,o,s=e[6]&&Tc(e),l=nr(e[4]);const a=c=>c[35];for(let c=0;c<l.length;c+=1){let u=Ic(e,l,c),f=a(u);i.set(f,n[c]=Fc(f,u))}return{c(){s&&s.c(),r=pr(),t=Le("div");for(let c=0;c<n.length;c+=1)n[c].c();p(t,"class",Gi.state__animations),p(t,"aria-hidden","true")},m(c,u){s&&s.m(c,u),ie(c,r,u),ie(c,t,u);for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(t,null);e[21](t),o=!0},p(c,u){c[6]?s?(s.p(c,u),u[0]&64&&B(s,1)):(s=Tc(c),s.c(),B(s,1),s.m(r.parentNode,r)):s&&(tr(),$(s,1,1,()=>{s=null}),rr()),u[0]&2064&&(l=nr(c[4]),tr(),n=ia(n,u,a,1,c,l,i,t,na,Fc,null,Ic),rr())},i(c){if(!o){B(s);for(let u=0;u<l.length;u+=1)B(n[u]);o=!0}},o(c){$(s);for(let u=0;u<n.length;u+=1)$(n[u]);o=!1},d(c){c&&(re(r),re(t)),s&&s.d(c);for(let u=0;u<n.length;u+=1)n[u].d();e[21](null)}}}function Lh(e){let r,t,n,i;const o=[Nh,Ph],s=[];function l(a,c){return a[2]?-1:0}return~(r=l(e))&&(t=s[r]=o[r](e)),{c(){t&&t.c(),n=Zt()},m(a,c){~r&&s[r].m(a,c),ie(a,n,c),i=!0},p(a,c){let u=r;r=l(a),r===u?~r&&s[r].p(a,c):(t&&(tr(),$(s[u],1,1,()=>{s[u]=null}),rr()),~r?(t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(B(t),i=!0)},o(a){$(t),i=!1},d(a){a&&re(n),~r&&s[r].d(a)}}}function Bh(e){return e.some(r=>r.type==="fade")}function Mc(e){return e.type==="change_bounds"?e:e.type==="set"?Mc(e.items[0]):null}function Hh(e,r,t){let n,i,o,s,l,a,c,u,f,_,m=C,y=()=>(m(),m=M(o,Z=>t(18,_=Z)),o);e.$$.on_destroy.push(()=>m());let{componentContext:h}=r,{layoutParams:w=void 0}=r;const v=Wr(Xr);let R=!1,N,V=new Map,D=new Set,te=[],F=[],Y=[],X=[],H,W,U,he=!1;function Ie(){t(13,he=!1)}function Te(Z){U&&U.destroy(),t(6,U=Z!=null&&Z.div?h.produceChildContext(Z.div,{path:Z.state_id||"<unknown>"}):void 0)}function _e(Z){const Ae=h.json.states;Ae&&(t(14,c=Ae.map((ge,et)=>({...ge,div:Z[et]}))),t(0,h.json={...h.json,states:c},h),W&&Te(c.find(ge=>ge.state_id===W)||null))}function be(Z,Ae,ge){let{json:et,parentComponentContext:G,transitions:Ee,node:Ue}=Ae;et=h.getJsonWithVars(et),Ee=h.getJsonWithVars(Ee);const ne=Vc(Ee),it=Ae.bbox||Ue.getBoundingClientRect(),je={...et,margins:void 0,alpha:Bh(ne)?void 0:et.alpha};return{id:G.id||"",json:je,componentContextCopy:G.produceChildContext(je,{fake:!0}),elementBbox:it,rootBbox:Z,transitions:ne,alpha:et.alpha,width:it.width,height:it.height,offsetTop:it.top-Z.top,offsetLeft:it.left-Z.left,direction:ge,resolvePromise:Ae.resolvePromise,node:Ae.node}}async function _t(Z){if(W===Z)return h;v.setRunning("stateChange",!0);const Ae=new Set(D);te.forEach(je=>{je.resolvePromise&&je.resolvePromise()}),t(4,te=[]);let ge=[];if(N){const je=N.getBoundingClientRect();ge=Y.map(Ve=>be(je,Ve,"out"))}X.forEach(je=>{je.transitions&&V.set(je.id,{transitions:je.transitions,rect:je.node.getBoundingClientRect()})}),F=[],Y=[],X=[];const et=c.find(je=>je.state_id===Z)||null;if(et?(t(5,W=Z),l==null||l.setValue(W),Te(et)):h.logError(Q(new Error("Cannot find state with id"),{additional:{stateId:Z}})),await gn(),!N)return;const G=N.getBoundingClientRect();let Ee=F.filter(je=>{var Ve;return je.parentComponentContext.id&&!Ae.has(je.parentComponentContext.id)?!0:((Ve=je.resolvePromise)==null||Ve.call(je),!1)}).map(je=>be(G,je,"in"));ge=ge.filter(je=>{var Ve;return je.id&&!D.has(je.id)?!0:((Ve=je.resolvePromise)==null||Ve.call(je),!1)});const Ue=ge.concat(Ee),ne=Ue.reduce((je,Ve)=>Math.max(je,Sc(Ve.transitions)),0),it=X.filter(je=>V.has(je.id)).map(je=>{const Ve={...je.json,margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}},yt=V.get(je.id);return{id:je.parentComponentContext.id||"",json:Ve,componentContextCopy:je.parentComponentContext.produceChildContext(Ve,{fake:!0}),rootBbox:G,beforeBbox:yt.rect,afterBbox:je.node.getBoundingClientRect(),node:je.node,transition:h.getJsonWithVars(Mc(yt.transitions)),resolvePromise:je.resolvePromise}});return t(4,te=[...Ue.map(je=>({...je,maxDuration:ne})),...it]),V.clear(),v.setRunning("stateChange",!1),h}Oi(Js,{runVisibilityTransition(Z,Ae,ge,et,G,Ee){if(!N)return Promise.resolve();const Ue=N.getBoundingClientRect(),ne=be(Ue,{json:Z,parentComponentContext:Ae,transitions:ge,node:et,bbox:Ee},G),it=Sc(ne.transitions),je={...ne,maxDuration:it};return t(4,te=[...te.filter(Ve=>Ve.node!==ne.node),je]),new Promise(Ve=>{je.resolvePromise=Ve})},registerChildWithTransitionIn(Z,Ae,ge,et){const G={json:Z,parentComponentContext:Ae,transitions:ge,node:et};return F.push(G),new Promise(Ee=>{G.resolvePromise=Ee})},registerChildWithTransitionOut(Z,Ae,ge,et){const G={json:Z,parentComponentContext:Ae,transitions:ge,node:et};return Y.push(G),new Promise(Ee=>{G.resolvePromise=Ee})},registerChildWithTransitionChange(Z,Ae,ge,et){const G=Ae.id;if(!G)return Promise.resolve();const Ee={id:G,json:Z,parentComponentContext:Ae,transitions:ge,node:et};return X.push(Ee),new Promise(Ue=>{Ee.resolvePromise=Ue})},hasTransitionChange(Z){return Z?V.has(Z):!1},registerChild(Z){D.add(Z)},unregisterChild(Z){D.delete(Z)}});function We(Z){if(!he&&(t(13,he=!0),Z.length)){const Ae=(l==null?void 0:l.getValue())||i;if(Ae){t(5,W=Ae);const ge=Z.find(et=>et.state_id===W)||null;Te(ge),ge||h.logError(Q(new Error("Cannot find state for default_state_id"),{additional:{selectedId:W}}))}else{const ge=Z[0];t(5,W=ge.state_id),Te(ge)}l&&(l.setValue(W),l.subscribe(ge=>{_t(ge)}))}}function Oe(Z){t(4,te=te.filter(Ae=>Ae!==Z)),Z.resolvePromise&&Z.resolvePromise()}on(()=>{U&&U.destroy(),H&&h.unregisterState(H)});const Fe=Z=>Oe(Z),qe=Z=>Oe(Z);function Qe(Z){Tr[Z?"unshift":"push"](()=>{N=Z,t(3,N)})}return e.$$set=Z=>{"componentContext"in Z&&t(0,h=Z.componentContext),"layoutParams"in Z&&t(1,w=Z.layoutParams)},e.$$.update=()=>{e.$$.dirty[0]&1&&t(15,n=h.json.div_id||h.id),e.$$.dirty[0]&1&&(i=h.getJsonWithVars(h.json.default_state_id)),e.$$.dirty[0]&1&&y(t(9,o=h.getDerivedFromVars(h.json.clip_to_bounds))),e.$$.dirty[0]&1&&t(17,s=h.json.state_id_variable),e.$$.dirty[0]&131073&&(l=s?h.getVariable(s,"string"):null),e.$$.dirty[0]&1&&t(16,a=h.origJson),e.$$.dirty[0]&65536&&a&&Ie(),e.$$.dirty[0]&32769&&(n?t(2,R=!1):(t(2,R=!0),h.logError(Q(new Error('Missing "id" prop for div "state"'))))),e.$$.dirty[0]&1&&h.json&&(D=new Set),e.$$.dirty[0]&1&&t(14,c=Array.isArray(h.json.states)&&h.json.states||[]),e.$$.dirty[0]&16384&&t(8,u=c.map(Z=>{var Ae;return{json:Z.div,id:(Ae=Z.div)==null?void 0:Ae.id}})),e.$$.dirty[0]&16385&&(c!=null&&c.length?t(2,R=!1):(t(2,R=!0),h.logError(Q(new Error('Empty "states" prop for div "state"'))))),e.$$.dirty[0]&36865&&h.json&&(H&&(h.unregisterState(n),t(12,H=void 0)),n&&!(h!=null&&h.fakeElement)&&(t(12,H=n),h.registerState(n,_t))),e.$$.dirty[0]&24576&&!he&&We(c),e.$$.dirty[0]&262144&&t(7,f={overflow:_===!1||_===0?"visible":void 0})},[h,w,R,N,te,W,U,f,u,o,_e,Oe,H,he,c,n,a,s,_,Fe,qe,Qe]}class Wh extends Or{constructor(r){super(),zr(this,r,Hh,Lh,mr,{componentContext:0,layoutParams:1},null,[-1,-1])}}const ai={pager:"divkit-4e617",pager__items:"divkit-2d4e4",pager__item:"divkit-834e0",pager_orientation_horizontal:"divkit-9cc96",pager_orientation_vertical:"divkit-e886e",pager__item_height_content:"divkit-e1525",pager__item_height_fixed:"divkit-3af1f","pager__item_height-constrained":"divkit-d5bd8",pager__item_width_content:"divkit-8d520",pager__item_width_fixed:"divkit-4e248","pager__item_width-constrained":"divkit-6a541",pager__arrow:"divkit-c6702","pager__arrow-icon-path":"divkit-97cb5"},{Boolean:Uh}=ni;function Pc(e,r,t){const n=e.slice();return n[59]=r[t],n[61]=t,n}function Gh(e){let r,t;return r=new li({props:{componentContext:e[0]}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function Yh(e){let r,t;return r=new mn({props:{cls:gt("pager",ai,e[12]),componentContext:e[0],layoutParams:e[1],customPaddings:!0,parentOf:e[3],replaceItems:e[27],$$slots:{default:[Kh]},$$scope:{ctx:e}}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&4096&&(o.cls=gt("pager",ai,n[12])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&8&&(o.parentOf=n[3]),i[0]&3157612|i[2]&1&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function Nc(e){let r,t,n,i,o;return t=new $n({props:{componentContext:e[59]}}),{c(){r=Le("div"),Bt(t.$$.fragment),n=pr(),p(r,"class",i=gt("pager__item",ai,Rc(e[2],e[21][e[61]])))},m(s,l){ie(s,r,l),Pt(t,r,null),At(r,n),o=!0},p(s,l){const a={};l[0]&8&&(a.componentContext=s[59]),t.$set(a),(!o||l[0]&2097156&&i!==(i=gt("pager__item",ai,Rc(s[2],s[21][s[61]]))))&&p(r,"class",i)},i(s){o||(B(t.$$.fragment,s),o=!0)},o(s){$(t.$$.fragment,s),o=!1},d(s){s&&re(r),Nt(t)}}}function zc(e){let r,t,n,i=!e[23]&&Jh();return{c(){r=Le("div"),i&&i.c(),p(r,"class",e[23]||`${ai.pager__arrow} ${Un.arrow} ${Un.arrow_left}`)},m(o,s){ie(o,r,s),i&&i.m(r,null),t||(n=He(r,"click",e[46]),t=!0)},p:C,d(o){o&&re(r),i&&i.d(),t=!1,n()}}}function Jh(e){let r,t;return{c(){r=nn("svg"),t=nn("path"),p(t,"class",ai["pager__arrow-icon-path"]),p(t,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),p(r,"class",Un.arrow__icon),p(r,"xmlns","http://www.w3.org/2000/svg"),p(r,"width","32"),p(r,"height","32"),p(r,"viewBox","0 0 32 32"),p(r,"fill","none")},m(n,i){ie(n,r,i),At(r,t)},d(n){n&&re(r)}}}function Oc(e){let r,t,n,i=!e[24]&&qh();return{c(){r=Le("div"),i&&i.c(),p(r,"class",e[24]||`${ai.pager__arrow} ${Un.arrow} ${Un.arrow_right}`)},m(o,s){ie(o,r,s),i&&i.m(r,null),t||(n=He(r,"click",e[47]),t=!0)},p:C,d(o){o&&re(r),i&&i.d(),t=!1,n()}}}function qh(e){let r,t;return{c(){r=nn("svg"),t=nn("path"),p(t,"class",ai["pager__arrow-icon-path"]),p(t,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),p(r,"class",Un.arrow__icon),p(r,"xmlns","http://www.w3.org/2000/svg"),p(r,"width","32"),p(r,"height","32"),p(r,"viewBox","0 0 32 32"),p(r,"fill","none")},m(n,i){ie(n,r,i),At(r,t)},d(n){n&&re(r)}}}function Kh(e){let r,t,n,i,o,s,l,a,c,u=nr(e[3]),f=[];for(let h=0;h<u.length;h+=1)f[h]=Nc(Pc(e,u,h));const _=h=>$(f[h],1,1,()=>{f[h]=null});let m=e[10]&&e[11]&&zc(e),y=e[9]&&e[11]&&Oc(e);return{c(){r=Le("div");for(let h=0;h<f.length;h+=1)f[h].c();i=pr(),m&&m.c(),o=pr(),y&&y.c(),s=Zt(),p(r,"class",t=ai.pager__items+" "+(e[20]?xt["root_restrict-scroll"]:"")),p(r,"style",n=Ct(e[13]))},m(h,w){ie(h,r,w);for(let v=0;v<f.length;v+=1)f[v]&&f[v].m(r,null);e[45](r),ie(h,i,w),m&&m.m(h,w),ie(h,o,w),y&&y.m(h,w),ie(h,s,w),l=!0,a||(c=He(r,"scroll",e[26]),a=!0)},p(h,w){if(w[0]&2097164){u=nr(h[3]);let v;for(v=0;v<u.length;v+=1){const R=Pc(h,u,v);f[v]?(f[v].p(R,w),B(f[v],1)):(f[v]=Nc(R),f[v].c(),B(f[v],1),f[v].m(r,null))}for(tr(),v=u.length;v<f.length;v+=1)_(v);rr()}(!l||w[0]&1048576&&t!==(t=ai.pager__items+" "+(h[20]?xt["root_restrict-scroll"]:"")))&&p(r,"class",t),(!l||w[0]&8192&&n!==(n=Ct(h[13])))&&p(r,"style",n),h[10]&&h[11]?m?m.p(h,w):(m=zc(h),m.c(),m.m(o.parentNode,o)):m&&(m.d(1),m=null),h[9]&&h[11]?y?y.p(h,w):(y=Oc(h),y.c(),y.m(s.parentNode,s)):y&&(y.d(1),y=null)},i(h){if(!l){for(let w=0;w<u.length;w+=1)B(f[w]);l=!0}},o(h){f=f.filter(Uh);for(let w=0;w<f.length;w+=1)$(f[w]);l=!1},d(h){h&&(re(r),re(i),re(o),re(s)),ln(f,h),e[45](null),m&&m.d(h),y&&y.d(h),a=!1,c()}}}function Xh(e){let r,t,n,i;const o=[Yh,Gh],s=[];function l(a,c){return a[4]?-1:0}return~(r=l(e))&&(t=s[r]=o[r](e)),{c(){t&&t.c(),n=Zt()},m(a,c){~r&&s[r].m(a,c),ie(a,n,c),i=!0},p(a,c){let u=r;r=l(a),r===u?~r&&s[r].p(a,c):(t&&(tr(),$(s[u],1,1,()=>{s[u]=null}),rr()),~r?(t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(B(t),i=!0)},o(a){$(t),i=!1},d(a){a&&re(n),~r&&s[r].d(a)}}}const ts={wrap_content:"content",fixed:"fixed",match_parent:"parent"};function Rc(e,r){var n,i,o,s;if(e==="horizontal"){const l=((n=r.height)==null?void 0:n.type)||"";return{height:l in ts?ts[l]:"content","height-constrained":((i=r.height)==null?void 0:i.type)==="wrap_content"?Zn(r.height.constrained,!1):!1}}const t=((o=r.width)==null?void 0:o.type)||"";return{width:t in ts?ts[t]:"parent","width-constrained":((s=r.width)==null?void 0:s.type)==="wrap_content"?Zn(r.width.constrained,!1):!1}}function Zh(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R,N=C,V=()=>(N(),N=M(v,ve=>t(49,R=ve)),v),D,te,F,Y=C,X=()=>(Y(),Y=M(o,ve=>t(40,F=ve)),o),H,W=C,U=()=>(W(),W=M(a,ve=>t(41,H=ve)),a),he,Ie=C,Te=()=>(Ie(),Ie=M(l,ve=>t(42,he=ve)),l),_e,be=C,_t=()=>(be(),be=M(s,ve=>t(43,_e=ve)),s),We,Oe=C,Fe=()=>(Oe(),Oe=M(i,ve=>t(44,We=ve)),i),qe,Qe=C,Z=()=>(Qe(),Qe=M(c,ve=>t(20,qe=ve)),c),Ae,ge=C,et=()=>(ge(),ge=M(dt,ve=>t(21,Ae=ve)),dt);e.$$.on_destroy.push(()=>N()),e.$$.on_destroy.push(()=>Y()),e.$$.on_destroy.push(()=>W()),e.$$.on_destroy.push(()=>Ie()),e.$$.on_destroy.push(()=>be()),e.$$.on_destroy.push(()=>Oe()),e.$$.on_destroy.push(()=>Qe()),e.$$.on_destroy.push(()=>ge());let{componentContext:G}=r,{layoutParams:Ee=void 0}=r;const Ue=Wr(Xr),ne=Ue.direction;rn(e,ne,ve=>t(5,D=ve));const it=Ue.genId("pager"),je=Ue.getCustomization("pagerLeftClass"),Ve=Ue.getCustomization("pagerRightClass"),yt=Ue.isDesktop;rn(e,yt,ve=>t(39,te=ve));const Vt=$o(qt,50);let ee,tt,lt=!1,dt,Ge=0,E=0,$e=!1,le="horizontal",Ke="0em",wt="",fe="",me=[];function at(){t(35,wt="")}function Ze(ve){t(0,G={...G,json:{...G.json,items:ve.filter(yi)}})}function $t(ve,Et){return le==="horizontal"?Et.left>=ve.left&&Et.right<=ve.right:Et.top>=ve.top&&Et.bottom<=ve.bottom}function Mt(){const ve=Array.from(tt.children),Et=tt.getBoundingClientRect(),Re=ve.findIndex(mt=>$t(Et,mt.getBoundingClientRect()));return Re!==-1?Re:Ge}function qt(){if(!lt)return;const ve=Mt();ve!==Ge&&t(32,Ge=ve)}function Pe(ve,Et){const Re=G.id;if(Re){const mt=new Map(R);Oo(v,R=mt.set(Re,{instId:it,size:ve,currentItem:Et,scrollToPagerItem:Ut}),R)}}function pt(ve){var Re;if(ve===E)return;E=ve;const Et=G.getJsonWithVars((Re=me[ve].json)==null?void 0:Re.selected_actions);Et!=null&&Et.length&&G.execAnyActions(Et)}function Ut(ve,Et="smooth"){const Re=le==="horizontal",mt=tt.children[ve],Ne=Re?"offsetLeft":"offsetTop",ot=Re?"offsetWidth":"offsetHeight",vt=Re?"left":"top",De=mt[Ne]+mt[ot]/2-tt[ot]/2;tt.scroll({[vt]:De,behavior:Et}),t(32,Ge=ve)}function Ht(ve,Et){let Re=Ge-ve;Re<0&&(Re=Et==="ring"?Vi(Re,me.length):0),Ut(Re)}function Gt(ve,Et){let Re=Ge+ve;Re>me.length-1&&(Re=Et==="ring"?Vi(Re,me.length):me.length-1),Ut(Re)}Xn(()=>{if(t(31,lt=!0),!!document.getElementById(`${it}-tab-0`)){const Et=[...tt.children];for(const[Re,mt]of Et.entries())mt.setAttribute("role","tabpanel"),mt.setAttribute("id",`${it}-panel-${Re}`),mt.setAttribute("aria-labelledby",`${it}-tab-${Re}`)}Ge>0&&Ut(Ge,"instant")}),on(()=>{t(31,lt=!1),me.forEach(ve=>{ve.destroy()}),ee&&(Ue.unregisterInstance(ee),t(30,ee=void 0))});function L(ve){Tr[ve?"unshift":"push"](()=>{tt=ve,t(6,tt)})}const ae=()=>(D==="ltr"?Ht:Gt)(1,"clamp"),ar=()=>(D==="ltr"?Gt:Ht)(1,"clamp");return e.$$set=ve=>{"componentContext"in ve&&t(0,G=ve.componentContext),"layoutParams"in ve&&t(1,Ee=ve.layoutParams)},e.$$.update=()=>{var ve,Et,Re,mt,Ne,ot,vt,De,ct,Yt,sr,dr,Wt;if(e.$$.dirty[0]&1&&t(38,n=G.origJson),e.$$.dirty[1]&128&&n&&at(),e.$$.dirty[0]&1&&Fe(t(19,i=typeof((ve=G.json.item_builder)==null?void 0:ve.data)=="string"?G.getDerivedFromVars((Et=G.json.item_builder)==null?void 0:Et.data,void 0,!0):(Re=G.json.item_builder)!=null&&Re.data?Hi(G.json.item_builder.data):void 0)),e.$$.dirty[0]&1&&X(t(18,o=G.getDerivedFromVars(G.json.layout_mode))),e.$$.dirty[0]&1&&_t(t(17,s=G.getDerivedFromVars(G.json.orientation))),e.$$.dirty[0]&1&&Te(t(16,l=G.getDerivedFromVars(G.json.item_spacing))),e.$$.dirty[0]&1&&U(t(15,a=G.getDerivedFromVars(G.json.paddings))),e.$$.dirty[0]&1&&Z(t(14,c=G.getDerivedFromVars(G.json.restrict_parent_scroll))),e.$$.dirty[0]&9|e.$$.dirty[1]&8192){let ut=[];if(G.json.item_builder&&Array.isArray(We)&&Array.isArray(G.json.item_builder.prototypes)){const St=G.json.item_builder;ut=il(We,Ue,G,St)}else ut=(Array.isArray(G.json.items)&&G.json.items||[]).map(St=>({div:St}));me.forEach(St=>{St.destroy()}),t(3,me=ut.map((St,Ft)=>G.produceChildContext(St.div,{path:Ft,variables:St.vars,id:St.id})))}if(e.$$.dirty[0]&9){let ut=[];me.forEach(St=>{ut.push(G.getDerivedFromVars({width:St.json.width,height:St.json.height}))}),et(t(7,dt=Li(ut,St=>[...St])))}if(e.$$.dirty[0]&1|e.$$.dirty[1]&512&&(F?F.type!=="percentage"&&F.type!=="fixed"?(t(33,$e=!0),G.logError(Q(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):t(33,$e=!1):(t(33,$e=!0),G.logError(Q(new Error('Empty "layout_mode" prop for div "pager"'))))),e.$$.dirty[0]&4|e.$$.dirty[1]&4096&&t(2,le=ll(_e,le)),e.$$.dirty[1]&2048){const ut=he==null?void 0:he.value;ut&&An(ut)&&t(34,Ke=pn(ut||0))}if(e.$$.dirty[0]&32|e.$$.dirty[1]&1040&&t(35,wt=wo(H,D,wt)),e.$$.dirty[0]&4&&t(37,u=le==="horizontal"?"grid-auto-columns":"grid-auto-rows"),e.$$.dirty[0]&37|e.$$.dirty[1]&520){if((F==null?void 0:F.type)==="fixed"){const ut=pn(le==="horizontal"?((D==="ltr"?(mt=G.json.paddings)==null?void 0:mt.start:(Ne=G.json.paddings)==null?void 0:Ne.end)||((ot=G.json.paddings)==null?void 0:ot.left)||0)+((D==="ltr"?(vt=G.json.paddings)==null?void 0:vt.end:(De=G.json.paddings)==null?void 0:De.start)||((ct=G.json.paddings)==null?void 0:ct.right)||0):(((Yt=G.json.paddings)==null?void 0:Yt.top)||0)+(((sr=G.json.paddings)==null?void 0:sr.bottom)||0)),St=(dr=F.neighbour_page_width)==null?void 0:dr.value;t(36,fe=St?`calc(100% + ${ut} - 2 * ${pn(St)} - 2 * ${Ke})`:"100%")}else if((F==null?void 0:F.type)==="percentage"){const ut=(Wt=F.page_width)==null?void 0:Wt.value;t(36,fe=`${Number(ut)}%`)}}if(e.$$.dirty[1]&120&&t(13,f={"grid-gap":Ke,padding:wt,[u]:fe}),e.$$.dirty[0]&4&&t(12,_={orientation:le}),e.$$.dirty[1]&4&&t(4,m=$e),e.$$.dirty[0]&16|e.$$.dirty[1]&257&&t(11,y=te&<&&!m),e.$$.dirty[0]&1073741833&&G.json){const ut=G.getJsonWithVars(G.json.default_item);typeof ut=="number"&&ut>=0&&ut<me.length&&t(32,Ge=E=ut),ee&&(Ue.unregisterInstance(ee),t(30,ee=void 0)),G.id&&!G.fakeElement&&(t(30,ee=G.id),Ue.registerInstance(ee,{setCurrentItem(St){if(St<0||St>me.length-1)throw new Error('Item is out of range in "set-current-item" action');Ut(St)},setPreviousItem:Ht,setNextItem:Gt,scrollToStart(){Ut(0)},scrollToEnd(){Ut(me.length-1)}}))}e.$$.dirty[0]&40|e.$$.dirty[1]&2&&t(10,h=D==="ltr"?Ge>0:Ge+1<me.length),e.$$.dirty[0]&40|e.$$.dirty[1]&2&&t(9,w=D==="ltr"?Ge+1<me.length:Ge>0),e.$$.dirty[0]&8|e.$$.dirty[1]&2&&Pe(me.length,Ge),e.$$.dirty[1]&2&&pt(Ge)},V(t(8,v=Ue.getStore("pagers"))),[G,Ee,le,me,m,D,tt,dt,v,w,h,y,_,f,c,a,l,s,o,i,qe,Ae,ne,je,Ve,yt,Vt,Ze,Ht,Gt,ee,lt,Ge,$e,Ke,wt,fe,u,n,te,F,H,he,_e,We,L,ae,ar]}class Qh extends Or{constructor(r){super(),zr(this,r,Zh,Xh,mr,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const Yi={indicator:"divkit-7560c",indicator__scroller:"divkit-42240",indicator__items:"divkit-49790",indicator__item:"divkit-2da15",indicator_placement_default:"divkit-eb5df",indicator__item_active:"divkit-c146b",indicator_direction_ltr:"divkit-bae27",indicator_direction_rtl:"divkit-58b11",indicator_placement_stretch:"divkit-b49a3"};function Lc(e,r,t){const n=e.slice();n[42]=r[t],n[45]=t;const i=n[45]===n[10].currentItem;return n[43]=i,n}function Bc(e){let r,t=nr(Array(e[10].size)),n=[];for(let i=0;i<t.length;i+=1)n[i]=Hc(Lc(e,t,i));return{c(){for(let i=0;i<n.length;i+=1)n[i].c();r=Zt()},m(i,o){for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(i,o);ie(i,r,o)},p(i,o){if(o[0]&12583936){t=nr(Array(i[10].size));let s;for(s=0;s<t.length;s+=1){const l=Lc(i,t,s);n[s]?n[s].p(l,o):(n[s]=Hc(l),n[s].c(),n[s].m(r.parentNode,r))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(i){i&&re(r),ln(n,i)}}}function Hc(e){let r,t,n,i,o,s,l,a;function c(){return e[35](e[45])}return{c(){r=Le("div"),p(r,"class",t=gt("indicator__item",Yi,{active:e[43]})+" "+xt.root__clickable),p(r,"role","tab"),p(r,"id",n=e[10].instId+"-tab-"+e[45]),p(r,"aria-controls",i=e[10].instId+"-panel-"+e[45]),p(r,"aria-selected",o=e[43]?"true":"false"),p(r,"tabindex",s=e[43]?0:-1)},m(u,f){ie(u,r,f),l||(a=[He(r,"click",c),He(r,"keydown",e[23])],l=!0)},p(u,f){e=u,f[0]&1024&&t!==(t=gt("indicator__item",Yi,{active:e[43]})+" "+xt.root__clickable)&&p(r,"class",t),f[0]&1024&&n!==(n=e[10].instId+"-tab-"+e[45])&&p(r,"id",n),f[0]&1024&&i!==(i=e[10].instId+"-panel-"+e[45])&&p(r,"aria-controls",i),f[0]&1024&&o!==(o=e[43]?"true":"false")&&p(r,"aria-selected",o),f[0]&1024&&s!==(s=e[43]?0:-1)&&p(r,"tabindex",s)},d(u){u&&re(r),l=!1,Hr(a)}}}function xh(e){let r,t,n=e[10]&&Bc(e);return{c(){r=Le("div"),t=Le("div"),n&&n.c(),p(t,"class",Yi.indicator__items),p(t,"role","tablist"),O(t,"margin",e[4]==="default"?`0 ${we(Math.max(0,e[2].width-e[3].width)/2)}`:""),O(t,"--divkit-indicator-inactive-width",we(e[3].width)),O(t,"--divkit-indicator-inactive-height",we(e[3].height)),O(t,"--divkit-indicator-inactive-border-radius",we(e[3].borderRadius)),O(t,"--divkit-indicator-inactive-background",e[3].background||""),O(t,"--divkit-indicator-inactive-box-shadow",e[3].boxShadow||""),O(t,"--divkit-indicator-active-width",we(e[2].width)),O(t,"--divkit-indicator-active-height",we(e[2].height)),O(t,"--divkit-indicator-active-border-radius",we(e[2].borderRadius)),O(t,"--divkit-indicator-active-background",e[2].background||""),O(t,"--divkit-indicator-active-box-shadow",e[2].boxShadow||""),O(t,"--divkit-indicator-active-scale",e[2].width/e[3].width),O(t,"--divkit-indicator-default-margin",e[4]==="default"?`0 ${we((e[5]-e[3].width)/2)}`:""),O(t,"--divkit-indicator-stretch-margin",e[4]==="stretch"?we(e[7]):""),O(t,"--divkit-indicator-stretch-max-count",e[4]==="stretch"?e[6]:""),O(t,"--divkit-indicator-stretch-max-spacer",e[4]==="stretch"?we((e[6]-1)*e[7]):""),p(r,"class",Yi.indicator__scroller)},m(i,o){ie(i,r,o),At(r,t),n&&n.m(t,null),e[36](t),e[37](r)},p(i,o){i[10]?n?n.p(i,o):(n=Bc(i),n.c(),n.m(t,null)):n&&(n.d(1),n=null),o[0]&28&&O(t,"margin",i[4]==="default"?`0 ${we(Math.max(0,i[2].width-i[3].width)/2)}`:""),o[0]&8&&O(t,"--divkit-indicator-inactive-width",we(i[3].width)),o[0]&8&&O(t,"--divkit-indicator-inactive-height",we(i[3].height)),o[0]&8&&O(t,"--divkit-indicator-inactive-border-radius",we(i[3].borderRadius)),o[0]&8&&O(t,"--divkit-indicator-inactive-background",i[3].background||""),o[0]&8&&O(t,"--divkit-indicator-inactive-box-shadow",i[3].boxShadow||""),o[0]&4&&O(t,"--divkit-indicator-active-width",we(i[2].width)),o[0]&4&&O(t,"--divkit-indicator-active-height",we(i[2].height)),o[0]&4&&O(t,"--divkit-indicator-active-border-radius",we(i[2].borderRadius)),o[0]&4&&O(t,"--divkit-indicator-active-background",i[2].background||""),o[0]&4&&O(t,"--divkit-indicator-active-box-shadow",i[2].boxShadow||""),o[0]&12&&O(t,"--divkit-indicator-active-scale",i[2].width/i[3].width),o[0]&56&&O(t,"--divkit-indicator-default-margin",i[4]==="default"?`0 ${we((i[5]-i[3].width)/2)}`:""),o[0]&144&&O(t,"--divkit-indicator-stretch-margin",i[4]==="stretch"?we(i[7]):""),o[0]&80&&O(t,"--divkit-indicator-stretch-max-count",i[4]==="stretch"?i[6]:""),o[0]&208&&O(t,"--divkit-indicator-stretch-max-spacer",i[4]==="stretch"?we((i[6]-1)*i[7]):"")},d(i){i&&re(r),n&&n.d(),e[36](null),e[37](null)}}}function $h(e){let r,t;return r=new mn({props:{cls:gt("indicator",Yi,e[11]),componentContext:e[0],layoutParams:e[1],$$slots:{default:[xh]},$$scope:{ctx:e}}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&2048&&(o.cls=gt("indicator",Yi,n[11])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&2044|i[1]&32768&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}const fl=["rounded_rectangle","circle"];function eg(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w=C,v=()=>(w(),w=M(_,fe=>t(26,h=fe)),_),R,N=C,V=()=>(N(),N=M(u,fe=>t(27,R=fe)),u),D,te=C,F=()=>(te(),te=M(f,fe=>t(28,D=fe)),f),Y,X=C,H=()=>(X(),X=M(o,fe=>t(29,Y=fe)),o),W,U=C,he=()=>(U(),U=M(s,fe=>t(30,W=fe)),s),Ie,Te=C,_e=()=>(Te(),Te=M(i,fe=>t(31,Ie=fe)),i),be,_t=C,We=()=>(_t(),_t=M(l,fe=>t(32,be=fe)),l),Oe,Fe=C,qe=()=>(Fe(),Fe=M(c,fe=>t(33,Oe=fe)),c),Qe,Z=C,Ae=()=>(Z(),Z=M(a,fe=>t(34,Qe=fe)),a);e.$$.on_destroy.push(()=>w()),e.$$.on_destroy.push(()=>N()),e.$$.on_destroy.push(()=>te()),e.$$.on_destroy.push(()=>X()),e.$$.on_destroy.push(()=>U()),e.$$.on_destroy.push(()=>Te()),e.$$.on_destroy.push(()=>_t()),e.$$.on_destroy.push(()=>Fe()),e.$$.on_destroy.push(()=>Z());let{componentContext:ge}=r,{layoutParams:et=void 0}=r;const G=Wr(Xr),Ee=G.direction;rn(e,Ee,fe=>t(25,y=fe));let Ue={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},ne={width:10,height:10,borderRadius:5,background:"#33919cb5"},it="default",je=15,Ve=10,yt=5,Vt,ee,tt;function lt(){t(4,it="default"),t(5,je=15),t(6,Ve=10),t(7,yt=5),t(2,Ue={width:13,height:13,borderRadius:6.5,background:"#ffdc60"}),t(3,ne={width:10,height:10,borderRadius:5,background:"#33919cb5"})}async function dt(fe){if(ge.json.pager_id&&fe.has(ge.json.pager_id)&&(t(10,tt=fe.get(ge.json.pager_id)),await gn(),ee)){const me=ee.children[tt.currentItem];if(me){const at=me.offsetLeft;Vt.scroll({left:at-Vt.clientWidth/2,behavior:"smooth"})}}}function Ge(fe){fe!==tt.currentItem&&tt.scrollToPagerItem(fe)}function E(fe){if(fe.ctrlKey||fe.shiftKey||fe.altKey||fe.metaKey)return;const{size:me,currentItem:at}=tt;if(fe.which===uc){const Ze=at-1<0?at:at-1;$e(Ze)}else if(fe.which===fc){const Ze=at+1>=me?at:at+1;$e(Ze)}else if(fe.which===dc)$e(0);else if(fe.which===_c)$e(me-1);else return;fe.preventDefault()}async function $e(fe){tt.scrollToPagerItem(fe),await gn();const me=ee.querySelector(`.${Yi.indicator__item_active}`);me&&me.focus()}const le=fe=>Ge(fe);function Ke(fe){Tr[fe?"unshift":"push"](()=>{ee=fe,t(9,ee)})}function wt(fe){Tr[fe?"unshift":"push"](()=>{Vt=fe,t(8,Vt)})}return e.$$set=fe=>{"componentContext"in fe&&t(0,ge=fe.componentContext),"layoutParams"in fe&&t(1,et=fe.layoutParams)},e.$$.update=()=>{var fe,me;if(e.$$.dirty[0]&1&&t(24,n=ge.origJson),e.$$.dirty[0]&16777216&&n&<(),e.$$.dirty[0]&1&&_e(t(20,i=ge.getDerivedFromVars(ge.json.shape))),e.$$.dirty[0]&1&&H(t(19,o=ge.getDerivedFromVars(ge.json.active_item_color))),e.$$.dirty[0]&1&&he(t(18,s=ge.getDerivedFromVars(ge.json.inactive_item_color))),e.$$.dirty[0]&1&&We(t(17,l=ge.getDerivedFromVars(ge.json.active_item_size))),e.$$.dirty[0]&1&&Ae(t(16,a=ge.getDerivedFromVars(ge.json.active_shape))),e.$$.dirty[0]&1&&qe(t(15,c=ge.getDerivedFromVars(ge.json.inactive_shape))),e.$$.dirty[0]&1&&V(t(14,u=ge.getDerivedFromVars(ge.json.space_between_centers))),e.$$.dirty[0]&1&&F(t(13,f=ge.getDerivedFromVars(ge.json.items_placement))),e.$$.dirty[0]&1610612748|e.$$.dirty[1]&15&&(Qe&&t(2,Ue=Qn({type:"shape_drawable",shape:Qe},fl,Ue)),Oe&&t(3,ne=Qn({type:"shape_drawable",shape:Oe},fl,ne)),!Qe&&!Oe&&Ie)){const at=Wn(be,1.3);t(3,ne=Qn({type:"shape_drawable",shape:Ie,color:ne.background},fl,ne)),t(3,ne.background=Cr(W,1,ne.background),ne),t(2,Ue={...ne,width:ne.width*at,height:ne.height*at,borderRadius:ne.borderRadius*at,background:Ue.background}),t(2,Ue.background=Cr(Y,1,Ue.background),Ue)}if(e.$$.dirty[0]&402653424)if(D&&(D.type==="default"||D.type==="stretch")){if(t(4,it=D.type),it==="default")t(5,je=Ur((fe=D.space_between_centers)==null?void 0:fe.value,je));else if(it==="stretch"){const at=D;t(6,Ve=Wn(at.max_visible_items,Ve)),t(7,yt=Ur((me=at.item_spacing)==null?void 0:me.value,yt))}}else t(4,it="default"),R&&t(5,je=Ur(R.value,je));e.$$.dirty[0]&67108864&&dt(h),e.$$.dirty[0]&33554448&&t(11,m={placement:it,direction:y})},v(t(12,_=G.getStore("pagers"))),[ge,et,Ue,ne,it,je,Ve,yt,Vt,ee,tt,m,_,f,u,c,a,l,s,o,i,Ee,Ge,E,n,y,h,R,D,Y,W,Ie,be,Oe,Qe,le,Ke,wt]}class tg extends Or{constructor(r){super(),zr(this,r,eg,$h,mr,{componentContext:0,layoutParams:1},null,[-1,-1])}}const Dr={slider:"divkit-99f56",slider__input:"divkit-96503",slider__input_secondary:"divkit-1ee78",slider__thumb:"divkit-67789",slider_direction_rtl:"divkit-38304",slider__thumb_secondary:"divkit-c5ec2","slider__tracks-wrapper":"divkit-d7767","slider__tracks-inner":"divkit-fd4b7",slider__track:"divkit-5332e","slider__active-track":"divkit-5d67f","slider__thumb-text":"divkit-23468","slider__thumb-text_secondary":"divkit-f2ab9",slider__tick:"divkit-f188a",slider__tick_active:"divkit-cdb6d",slider__tick_inactive:"divkit-dbdf0"};function Wc(e,r){var o,s;if(!e||!e.font_size)return r;const t=e.offset,n=e.text_color&&Cr(e.text_color)||"#000",i=lo(e.font_weight,e.font_weight_value,void 0);if(In(e.font_size)&&n!=="transparent"){const l={fontSize:we(e.font_size),fontWeight:i,textColor:n};return typeof((o=t==null?void 0:t.x)==null?void 0:o.value)=="number"&&typeof((s=t==null?void 0:t.y)==null?void 0:s.value)=="number"&&(l.offset={x:t.x.value,y:t.y.value}),l}}function vi(e,r,t){return Math.max(r,Math.min(t,Number(e)))}function dl(e){return BigInt(e)}const Eo=dl("9223372036854775807"),So=dl("-9223372036854775808");function Qr(e){const r=dl(e);if(r>Eo||r<So)throw new Error("Integer overflow.");return r}const Ji=Qr(0);function Uc(e){let r=e;return r<0&&(r=-r),r}function Gc(e){let r=0;return e>0?r=1:e<0&&(r=-1),Qr(r)}class ki{constructor(r,t){gr(this,"name");gr(this,"value");gr(this,"store");const n=this.convertValue(t);this.name=r,this.value=n}getName(){return this.name}subscribe(r){return this.store||(this.store=oi(this.value)),this.store.subscribe(r)}set(r){const t=this.fromString(r);this.setValue(t)}setValue(r){const t=this.convertValue(r);this.value=t,this.store&&this.store.set(t)}getValue(){return this.value}}class Yc extends ki{convertValue(r){if(typeof r!="string")throw new Error("Incorrect variable value");return r}fromString(r){return r}getType(){return"string"}}class Jc extends ki{convertValue(r){if(typeof r!="bigint"&&typeof r!="number")throw new Error("Incorrect variable value");try{return Qr(r)}catch{throw new Error("Incorrect variable value")}}fromString(r){try{return Qr(r)}catch{throw new Error("Incorrect variable value")}}getType(){return"integer"}}class qc extends ki{convertValue(r){if(typeof r!="number"||Number.isNaN(r)||!isFinite(r))throw new Error("Incorrect variable value");return r}fromString(r){const t=Number(r);return this.convertValue(t)}getType(){return"number"}}class Kc extends ki{convertValue(r){if(r!==1&&r!==0&&r!==!0&&r!==!1)throw new Error("Incorrect variable value");return Number(r)}fromString(r){if(r==="1"||r==="true")return 1;if(r==="0"||r==="false")return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}}class Xc extends ki{convertValue(r){if(typeof r!="string"||!bi(r))throw new Error("Incorrect variable value");return r}fromString(r){return this.convertValue(r)}getType(){return"color"}}class Zc extends ki{convertValue(r){if(typeof r!="string")throw new Error("Incorrect variable value");return r}fromString(r){return r}getType(){return"url"}}class Qc extends ki{convertValue(r){if(typeof r!="object"||!r)throw new Error("Incorrect variable value");return r}fromString(r){throw new Error("Dict variable does not support setter from string")}getType(){return"dict"}}class xc extends ki{convertValue(r){if(!Array.isArray(r))throw new Error("Incorrect variable value");return r}fromString(r){throw new Error("Array variable does not support setter from string")}getType(){return"array"}}const _l={string:Yc,number:qc,integer:Jc,boolean:Kc,color:Xc,url:Zc,dict:Qc,array:xc};function ci(e,r,t){if(!(r in _l))throw new Error("Unsupported variable type");return new _l[r](e,t)}function rg(){}function ng(e){return e(this.value),rg}function $c(){throw new Error("Cannot change the value of this type of variable")}class ig extends Yc{}class og extends qc{}class sg extends Jc{}class lg extends Kc{}class ag extends Xc{}class cg extends Zc{}class ug extends Qc{}class fg extends xc{}class dg extends ki{convertValue(r){if(!(r instanceof Date))throw new Error("Incorrect variable value");return r}fromString(){throw new Error("Datetime variable does not support setter from string")}getType(){return"datetime"}}const rs={string:ig,number:og,integer:sg,boolean:lg,color:ag,url:cg,dict:ug,array:fg,datetime:dg};for(const e in rs){const r=rs[e];r.prototype.subscribe=ng,r.prototype.set=$c,r.prototype.setValue=$c}function hl(e,r,t){if(!(r in rs))throw new Error("Unsupported variable type");return new rs[r](e,t)}function _g(e){return{type:e.getType(),value:e.getValue()}}function eu(e,r,t){const n=e.slice();return n[81]=r[t],n}function tu(e,r,t){const n=e.slice();return n[81]=r[t],n}function hg(e){let r,t;return r=new li({props:{componentContext:e[0]}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function gg(e){let r,t;return r=new mn({props:{cls:gt("slider",Dr,e[25]),style:e[26],customDescription:!0,customActions:"slider",hasInnerFocusable:!0,componentContext:e[0],layoutParams:e[1],$$slots:{default:[pg,({focusHandler:n,blurHandler:i})=>({79:n,80:i}),({focusHandler:n,blurHandler:i})=>[0,0,(n?131072:0)|(i?262144:0)]]},$$scope:{ctx:e}}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&33554432&&(o.cls=gt("slider",Dr,n[25])),i[0]&67108864&&(o.style=n[26]),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&411037692|i[2]&17170432&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function ru(e){let r;return{c(){r=Le("div"),p(r,"class",Dr.slider__tick+" "+Dr.slider__tick_active),O(r,"--divkit-slider-tick",e[81])},m(t,n){ie(t,r,n)},p(t,n){n[0]&524288&&O(r,"--divkit-slider-tick",t[81])},d(t){t&&re(r)}}}function nu(e){let r;return{c(){r=Le("div"),p(r,"class",Dr.slider__tick+" "+Dr.slider__tick_inactive),O(r,"--divkit-slider-tick",e[81])},m(t,n){ie(t,r,n)},p(t,n){n[0]&1048576&&O(r,"--divkit-slider-tick",t[81])},d(t){t&&re(r)}}}function iu(e){let r,t,n;return{c(){var i,o,s;r=Le("div"),t=Le("div"),n=qn(e[13]),p(t,"class",Dr["slider__thumb-text-inner"]),O(t,"font-size",((i=e[9])==null?void 0:i.fontSize)||"1em"),O(t,"font-weight",((o=e[9])==null?void 0:o.fontWeight)||""),O(t,"color",((s=e[9])==null?void 0:s.textColor)||"#000"),p(r,"class",Dr["slider__thumb-text"])},m(i,o){ie(i,r,o),At(r,t),At(t,n)},p(i,o){var s,l,a;o[0]&8192&&Ei(n,i[13]),o[0]&512&&O(t,"font-size",((s=i[9])==null?void 0:s.fontSize)||"1em"),o[0]&512&&O(t,"font-weight",((l=i[9])==null?void 0:l.fontWeight)||""),o[0]&512&&O(t,"color",((a=i[9])==null?void 0:a.textColor)||"#000")},d(i){i&&re(r)}}}function ou(e){let r,t=e[10]&&su(e);return{c(){r=Le("div"),t&&t.c(),p(r,"class",Dr.slider__thumb+" "+Dr.slider__thumb_secondary),O(r,"border-radius",we(e[6].borderRadius)),O(r,"background",e[6].background),O(r,"box-shadow",e[6].boxShadow||"")},m(n,i){ie(n,r,i),t&&t.m(r,null)},p(n,i){n[10]?t?t.p(n,i):(t=su(n),t.c(),t.m(r,null)):t&&(t.d(1),t=null),i[0]&64&&O(r,"border-radius",we(n[6].borderRadius)),i[0]&64&&O(r,"background",n[6].background),i[0]&64&&O(r,"box-shadow",n[6].boxShadow||"")},d(n){n&&re(r),t&&t.d()}}}function su(e){let r,t,n;return{c(){var i,o,s;r=Le("div"),t=Le("div"),n=qn(e[14]),p(t,"class",Dr["slider__thumb-text-inner"]),O(t,"font-size",((i=e[10])==null?void 0:i.fontSize)||"1em"),O(t,"font-weight",((o=e[10])==null?void 0:o.fontWeight)||""),O(t,"color",((s=e[10])==null?void 0:s.textColor)||"#000"),p(r,"class",Dr["slider__thumb-text"]+" "+Dr["slider__thumb-text_secondary"])},m(i,o){ie(i,r,o),At(r,t),At(t,n)},p(i,o){var s,l,a;o[0]&16384&&Ei(n,i[14]),o[0]&1024&&O(t,"font-size",((s=i[10])==null?void 0:s.fontSize)||"1em"),o[0]&1024&&O(t,"font-weight",((l=i[10])==null?void 0:l.fontWeight)||""),o[0]&1024&&O(t,"color",((a=i[10])==null?void 0:a.textColor)||"#000")},d(i){i&&re(r)}}}function lu(e){let r,t,n,i,o,s;return{c(){r=Le("input"),p(r,"type","range"),p(r,"class",t=e[18]?Dr.slider__input:`${Dr.slider__input} ${Dr.slider__input_secondary}`),p(r,"min",e[3]),p(r,"max",e[4]),p(r,"step","1"),r.value=n=e[18]?e[13]:e[14],r.disabled=i=!e[11],p(r,"aria-label",e[22])},m(l,a){ie(l,r,a),o||(s=[He(r,"input",e[72]),He(r,"mousedown",function(){vr(e[15]?e[43]:null)&&(e[15]?e[43]:null).apply(this,arguments)}),He(r,"touchstart",function(){vr(e[15]?e[43]:null)&&(e[15]?e[43]:null).apply(this,arguments)}),He(r,"focus",function(){vr(e[79])&&e[79].apply(this,arguments)}),He(r,"blur",function(){vr(e[80])&&e[80].apply(this,arguments)})],o=!0)},p(l,a){e=l,a[0]&262144&&t!==(t=e[18]?Dr.slider__input:`${Dr.slider__input} ${Dr.slider__input_secondary}`)&&p(r,"class",t),a[0]&8&&p(r,"min",e[3]),a[0]&16&&p(r,"max",e[4]),a[0]&286720&&n!==(n=e[18]?e[13]:e[14])&&(r.value=n),a[0]&2048&&i!==(i=!e[11])&&(r.disabled=i),a[0]&4194304&&p(r,"aria-label",e[22])},d(l){l&&re(r),o=!1,Hr(s)}}}function pg(e){let r,t,n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R,N=nr(e[19]),V=[];for(let H=0;H<N.length;H+=1)V[H]=ru(tu(e,N,H));let D=nr(e[20]),te=[];for(let H=0;H<D.length;H+=1)te[H]=nu(eu(e,D,H));let F=e[9]&&iu(e),Y=e[15]&&ou(e),X=e[15]&&lu(e);return{c(){r=Le("div"),t=Le("div"),n=Le("div"),i=pr(),o=Le("div"),s=pr();for(let H=0;H<V.length;H+=1)V[H].c();l=pr();for(let H=0;H<te.length;H+=1)te[H].c();a=pr(),c=Le("div"),F&&F.c(),u=pr(),Y&&Y.c(),f=pr(),_=Le("input"),w=pr(),X&&X.c(),p(n,"class",Dr.slider__track),O(n,"height",we(e[7].height)),O(n,"border-radius",we(e[7].borderRadius)),O(n,"background",e[7].background),O(n,"box-shadow",e[7].boxShadow||""),p(o,"class",Dr["slider__active-track"]),O(o,"left",e[16]==="ltr"?(e[27]*100).toFixed(2)+"%":void 0),O(o,"right",e[16]==="ltr"?void 0:(e[27]*100).toFixed(2)+"%"),O(o,"width",(e[28]*100).toFixed(2)+"%"),O(o,"height",we(e[8].height)),O(o,"border-radius",we(e[8].borderRadius)),O(o,"background",e[8].background),O(o,"box-shadow",e[8].boxShadow||""),p(c,"class",Dr.slider__thumb),O(c,"border-radius",we(e[5].borderRadius)),O(c,"background",e[5].background),O(c,"box-shadow",e[5].boxShadow||""),p(_,"type","range"),p(_,"class",m=e[18]?`${Dr.slider__input} ${Dr.slider__input_secondary}`:Dr.slider__input),p(_,"min",e[3]),p(_,"max",e[4]),p(_,"step","1"),_.value=y=e[18]?e[14]:e[13],_.disabled=h=!e[11],p(_,"aria-label",e[21]),p(t,"class",Dr["slider__tracks-inner"]),p(r,"class",Dr["slider__tracks-wrapper"])},m(H,W){ie(H,r,W),At(r,t),At(t,n),At(t,i),At(t,o),At(t,s);for(let U=0;U<V.length;U+=1)V[U]&&V[U].m(t,null);At(t,l);for(let U=0;U<te.length;U+=1)te[U]&&te[U].m(t,null);At(t,a),At(t,c),F&&F.m(c,null),At(t,u),Y&&Y.m(t,null),At(t,f),At(t,_),e[71](_),At(t,w),X&&X.m(t,null),e[73](t),v||(R=[He(_,"input",e[70]),He(_,"focus",function(){vr(e[79])&&e[79].apply(this,arguments)}),He(_,"blur",function(){vr(e[80])&&e[80].apply(this,arguments)})],v=!0)},p(H,W){if(e=H,W[0]&128&&O(n,"height",we(e[7].height)),W[0]&128&&O(n,"border-radius",we(e[7].borderRadius)),W[0]&128&&O(n,"background",e[7].background),W[0]&128&&O(n,"box-shadow",e[7].boxShadow||""),W[0]&134283264&&O(o,"left",e[16]==="ltr"?(e[27]*100).toFixed(2)+"%":void 0),W[0]&134283264&&O(o,"right",e[16]==="ltr"?void 0:(e[27]*100).toFixed(2)+"%"),W[0]&268435456&&O(o,"width",(e[28]*100).toFixed(2)+"%"),W[0]&256&&O(o,"height",we(e[8].height)),W[0]&256&&O(o,"border-radius",we(e[8].borderRadius)),W[0]&256&&O(o,"background",e[8].background),W[0]&256&&O(o,"box-shadow",e[8].boxShadow||""),W[0]&524288){N=nr(e[19]);let U;for(U=0;U<N.length;U+=1){const he=tu(e,N,U);V[U]?V[U].p(he,W):(V[U]=ru(he),V[U].c(),V[U].m(t,l))}for(;U<V.length;U+=1)V[U].d(1);V.length=N.length}if(W[0]&1048576){D=nr(e[20]);let U;for(U=0;U<D.length;U+=1){const he=eu(e,D,U);te[U]?te[U].p(he,W):(te[U]=nu(he),te[U].c(),te[U].m(t,a))}for(;U<te.length;U+=1)te[U].d(1);te.length=D.length}e[9]?F?F.p(e,W):(F=iu(e),F.c(),F.m(c,null)):F&&(F.d(1),F=null),W[0]&32&&O(c,"border-radius",we(e[5].borderRadius)),W[0]&32&&O(c,"background",e[5].background),W[0]&32&&O(c,"box-shadow",e[5].boxShadow||""),e[15]?Y?Y.p(e,W):(Y=ou(e),Y.c(),Y.m(t,f)):Y&&(Y.d(1),Y=null),W[0]&262144&&m!==(m=e[18]?`${Dr.slider__input} ${Dr.slider__input_secondary}`:Dr.slider__input)&&p(_,"class",m),W[0]&8&&p(_,"min",e[3]),W[0]&16&&p(_,"max",e[4]),W[0]&286720&&y!==(y=e[18]?e[14]:e[13])&&(_.value=y),W[0]&2048&&h!==(h=!e[11])&&(_.disabled=h),W[0]&2097152&&p(_,"aria-label",e[21]),e[15]?X?X.p(e,W):(X=lu(e),X.c(),X.m(t,null)):X&&(X.d(1),X=null)},d(H){H&&re(r),ln(V,H),ln(te,H),F&&F.d(),Y&&Y.d(),e[71](null),X&&X.d(),e[73](null),v=!1,Hr(R)}}}function mg(e){let r,t,n,i,o,s;const l=[gg,hg],a=[];function c(u,f){return u[12]?-1:0}return~(r=c(e))&&(t=a[r]=l[r](e)),{c(){t&&t.c(),n=Zt()},m(u,f){~r&&a[r].m(u,f),ie(u,n,f),i=!0,o||(s=He(window,"resize",e[45]),o=!0)},p(u,f){let _=r;r=c(u),r===_?~r&&a[r].p(u,f):(t&&(tr(),$(a[_],1,1,()=>{a[_]=null}),rr()),~r?(t=a[r],t?t.p(u,f):(t=a[r]=l[r](u),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(u){i||(B(t),i=!0)},o(u){$(t),i=!1},d(u){u&&re(n),~r&&a[r].d(u),o=!1,s()}}}const Mn={width:10,height:10,borderRadius:5,background:"#000"},ns=["rounded_rectangle","circle"],au=["rounded_rectangle"];function is(e,r,t,n,i){let o=[];if(i)for(let s=e;s<r;++s)o.push((s-t)/(n-t));else{for(let s=t;s<e;++s)o.push((s-t)/(n-t));for(let s=r;s<n+1;++s)o.push((s-t)/(n-t))}return o}function bg(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R,N,V,D,te,F,Y,X,H,W,U,he,Ie,Te=C,_e=()=>(Te(),Te=M(N,ze=>t(55,Ie=ze)),N),be,_t=C,We=()=>(_t(),_t=M(V,ze=>t(56,be=ze)),V),Oe,Fe=C,qe=()=>(Fe(),Fe=M(R,ze=>t(57,Oe=ze)),R),Qe,Z=C,Ae=()=>(Z(),Z=M(v,ze=>t(58,Qe=ze)),v),ge,et=C,G=()=>(et(),et=M(w,ze=>t(59,ge=ze)),w),Ee,Ue=C,ne=()=>(Ue(),Ue=M(h,ze=>t(60,Ee=ze)),h),it,je=C,Ve=()=>(je(),je=M(y,ze=>t(61,it=ze)),y),yt,Vt=C,ee=()=>(Vt(),Vt=M(m,ze=>t(62,yt=ze)),m),tt,lt=C,dt=()=>(lt(),lt=M(_,ze=>t(63,tt=ze)),_),Ge,E=C,$e=()=>(E(),E=M(f,ze=>t(64,Ge=ze)),f),le,Ke=C,wt=()=>(Ke(),Ke=M(u,ze=>t(65,le=ze)),u),fe,me=C,at=()=>(me(),me=M(l,ze=>t(66,fe=ze)),l),Ze,$t=C,Mt=()=>($t(),$t=M(s,ze=>t(67,Ze=ze)),s),qt,Pe=C,pt=()=>(Pe(),Pe=M(c,ze=>t(68,qt=ze)),c),Ut,Ht=C,Gt=()=>(Ht(),Ht=M(a,ze=>t(69,Ut=ze)),a);e.$$.on_destroy.push(()=>Te()),e.$$.on_destroy.push(()=>_t()),e.$$.on_destroy.push(()=>Fe()),e.$$.on_destroy.push(()=>Z()),e.$$.on_destroy.push(()=>et()),e.$$.on_destroy.push(()=>Ue()),e.$$.on_destroy.push(()=>je()),e.$$.on_destroy.push(()=>Vt()),e.$$.on_destroy.push(()=>lt()),e.$$.on_destroy.push(()=>E()),e.$$.on_destroy.push(()=>Ke()),e.$$.on_destroy.push(()=>me()),e.$$.on_destroy.push(()=>$t()),e.$$.on_destroy.push(()=>Pe()),e.$$.on_destroy.push(()=>Ht());let{componentContext:L}=r,{layoutParams:ae=void 0}=r;const ar=Wr(Xr),ve=Wr(Zo),Et=ar.direction;rn(e,Et,ze=>t(16,he=ze));let Re,mt,Ne,ot=!1,vt=0,De=100,ct=Mn,Yt=ct,sr=Mn,dr=Mn,Wt,ut=null,St,Ft=null,er,ir=er,wr="",Pr="",Jr=!0,Je=!1;function cr(){t(5,ct=Mn),t(6,Yt=ct),t(7,sr=Mn),t(8,dr=Mn),t(47,ut=null),t(48,Ft=null),t(9,er=void 0),t(10,ir=void 0),t(21,wr=""),t(11,Jr=!0),t(22,Pr="")}let ke=vi(Ze||0,vt,De),q=vi(fe||0,vt,De);function kr(ze){var de,d;if(!Jr)return;const ht="pageX"in ze?ze.pageX:(d=(de=ze.changedTouches)==null?void 0:de[0])==null?void 0:d.pageX;if(ht===void 0)return;const st=Ne.getBoundingClientRect();let jt=(ht-st.left)/st.width;he==="rtl"&&(jt=1-jt);const Jt=vt+(De-vt)*jt,I=Math.round(vi(Jt,vt,De)),rt=(ke+q)/2;t(18,ot=I<rt==ke<q)}function Ar(ze,ht){const st=Number(ze.target.value);ot===(ht==="first")?(t(14,q=st),l.setValue(st)):(t(13,ke=st),s.setValue(st))}let zt=!1;function Zr(){if(!Ne)return;const ze=De-vt,ht=(ut==null?void 0:ut.width)||0,st=(Ft==null?void 0:Ft.width)||0;Math.max(ht,st)*ze>=(Ne==null?void 0:Ne.clientWidth)?zt||(L.logError(Q(new Error("Slider ticks overlap each other"),{level:"warn"})),zt=!0):zt=!1}const Se=$o(Zr,50);Xn(()=>{Zr()}),on(()=>{Re&&(ar.unregisterFocusable(Re),t(46,Re=void 0))});const Ot=ze=>Ar(ze,"first");function ur(ze){Tr[ze?"unshift":"push"](()=>{mt=ze,t(2,mt)})}const Xe=ze=>Ar(ze,"second");function It(ze){Tr[ze?"unshift":"push"](()=>{Ne=ze,t(17,Ne)})}return e.$$set=ze=>{"componentContext"in ze&&t(0,L=ze.componentContext),"layoutParams"in ze&&t(1,ae=ze.layoutParams)},e.$$.update=()=>{var ze,ht,st,jt;if(e.$$.dirty[0]&1&&t(54,n=L.origJson),e.$$.dirty[1]&8388608&&n&&cr(),e.$$.dirty[0]&1&&t(53,i=L.json.thumb_value_variable),e.$$.dirty[0]&1&&t(15,o=L.json.thumb_secondary_value_variable),e.$$.dirty[0]&1|e.$$.dirty[1]&4194304&&Mt(t(23,s=i&&L.getVariable(i,"integer")||ci("temp","integer",0))),e.$$.dirty[0]&32769&&at(t(24,l=o&&L.getVariable(o,"integer")||ci("temp","integer",0))),e.$$.dirty[0]&1&&Gt(t(41,a=L.getDerivedFromVars(L.json.min_value))),e.$$.dirty[0]&1&&pt(t(40,c=L.getDerivedFromVars(L.json.max_value))),e.$$.dirty[0]&1&&wt(t(39,u=L.getDerivedFromVars(L.json.thumb_style))),e.$$.dirty[0]&1&&$e(t(38,f=L.getDerivedFromVars(L.json.thumb_secondary_style))),e.$$.dirty[0]&1&&dt(t(37,_=L.getDerivedFromVars(L.json.track_inactive_style))),e.$$.dirty[0]&1&&ee(t(36,m=L.getDerivedFromVars(L.json.track_active_style))),e.$$.dirty[0]&1&&Ve(t(35,y=L.getDerivedFromVars(L.json.tick_mark_active_style))),e.$$.dirty[0]&1&&ne(t(34,h=L.getDerivedFromVars(L.json.tick_mark_inactive_style))),e.$$.dirty[0]&1&&G(t(33,w=L.getDerivedFromVars(L.json.thumb_text_style))),e.$$.dirty[0]&1&&Ae(t(32,v=L.getDerivedFromVars(L.json.thumb_secondary_text_style))),e.$$.dirty[0]&1&&qe(t(31,R=L.getDerivedFromVars(L.json.accessibility))),e.$$.dirty[0]&1&&_e(t(30,N=L.getDerivedFromVars(L.json.secondary_value_accessibility))),e.$$.dirty[0]&1&&We(t(29,V=L.getDerivedFromVars(L.json.is_enabled))),e.$$.dirty[0]&24|e.$$.dirty[2]&192&&(t(3,vt=so(Ut,vt)),t(4,De=so(qt,De)),Zr()),e.$$.dirty[0]&8216|e.$$.dirty[2]&32){const Jt=vi(Ze||0,vt,De);Jt!==ke&&t(13,ke=Jt)}if(e.$$.dirty[0]&16408|e.$$.dirty[2]&16){const Jt=vi(fe||0,vt,De);Jt!==q&&t(14,q=Jt)}if(e.$$.dirty[0]&32|e.$$.dirty[2]&8&&t(5,ct=Qn(le,ns,ct)),e.$$.dirty[0]&32|e.$$.dirty[2]&4&&t(6,Yt=Qn(Ge,ns,ct)),e.$$.dirty[0]&128|e.$$.dirty[2]&2&&t(7,sr=Qn(tt,au,sr)),e.$$.dirty[0]&256|e.$$.dirty[2]&1&&t(8,dr=Qn(yt,au,dr)),e.$$.dirty[1]&1073741824){let Jt=Qn(it,ns,Mn);Jt!==Mn&&t(47,ut=Jt)}if(e.$$.dirty[0]&57368|e.$$.dirty[1]&65536&&(ut?(t(19,Wt=o?is(Math.min(ke,q),Math.max(ke,q)+1,vt,De,!0):is(vt,ke,vt,De,!0)),Zr()):t(19,Wt=[])),e.$$.dirty[1]&536870912){let Jt=Qn(Ee,ns,Mn);Jt!==Mn&&t(48,Ft=Jt)}if(e.$$.dirty[0]&57368|e.$$.dirty[1]&131072&&(Ft?(t(20,St=o?is(Math.min(ke,q),Math.max(ke,q)+1,vt,De,!1):is(ke+1,De+1,vt,De,!0)),Zr()):t(20,St=[])),e.$$.dirty[0]&512|e.$$.dirty[1]&268435456&&t(9,er=Wc(ge,er)),e.$$.dirty[0]&512|e.$$.dirty[1]&134217728&&t(10,ir=Wc(Qe,er)),e.$$.dirty[0]&1|e.$$.dirty[1]&67108864&&(Oe!=null&&Oe.description?t(21,wr=Oe.description):L.logError(Q(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),e.$$.dirty[0]&2048|e.$$.dirty[1]&33554432&&t(11,Jr=Zn(be,Jr)),e.$$.dirty[0]&32769|e.$$.dirty[1]&16777216&&(Ie!=null&&Ie.description?t(22,Pr=Ie.description):o&&L.logError(Q(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),e.$$.dirty[0]&4513){let Jt=!1;ve.hasAction()?(L.logError(Q(new Error('Cannot show "slider" inside component with action'))),Jt=!0):ct===Mn?(L.logError(Q(new Error('Missing "thumb_style" in slider'))),Jt=!0):dr===Mn?(L.logError(Q(new Error('Missing "track_active_style" in slider'))),Jt=!0):sr===Mn&&(L.logError(Q(new Error('Missing "track_inactive_style" in slider'))),Jt=!0),Jt!==Je&&t(12,Je=Jt)}e.$$.dirty[0]&96&&t(52,D=we(Math.max(...[ct.width,Yt.width,0].filter(An)))),e.$$.dirty[0]&96&&t(51,te=we(Math.max(...[ct.height,Yt.height,0].filter(An)))),e.$$.dirty[0]&8216&&t(50,F=(ke-vt)/(De-vt)),e.$$.dirty[0]&49176&&t(49,Y=o?(q-vt)/(De-vt):void 0),e.$$.dirty[1]&786432&&t(28,X=Y!==void 0?Math.abs(Y-F):F),e.$$.dirty[1]&786432&&t(27,H=Y!==void 0?Math.min(Y,F):0),e.$$.dirty[0]&1632|e.$$.dirty[1]&4128768&&t(26,W={"--divkit-slider-thumb-width":we(ct.width),"--divkit-slider-thumb-height":we(ct.height),"--divkit-slider-thumb-secondary-width":we(Yt.width),"--divkit-slider-thumb-secondary-height":we(Yt.height),"--divkit-slider-text-offset-x":(ze=er==null?void 0:er.offset)!=null&&ze.x?pn(er.offset.x):void 0,"--divkit-slider-text-offset-y":(ht=er==null?void 0:er.offset)!=null&&ht.y?pn(er.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(st=ir==null?void 0:ir.offset)!=null&&st.x?pn(ir.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(jt=ir==null?void 0:ir.offset)!=null&&jt.y?pn(ir.offset.y):void 0,"--divkit-slider-tick-active-width":ut?we(ut.width):void 0,"--divkit-slider-tick-active-height":ut?we(ut.height):void 0,"--divkit-slider-tick-active-border-radius":ut?we(ut.borderRadius):void 0,"--divkit-slider-tick-active-background":(ut==null?void 0:ut.background)||void 0,"--divkit-slider-tick-active-box-shadow":(ut==null?void 0:ut.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Ft?we(Ft.width):void 0,"--divkit-slider-tick-inactive-height":Ft?we(Ft.height):void 0,"--divkit-slider-tick-inactive-border-radius":Ft?we(Ft.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(Ft==null?void 0:Ft.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(Ft==null?void 0:Ft.boxShadow)||void 0,"--divkit-slider-max-thumb-width":D,"--divkit-slider-max-thumb-height":te,"--divkit-slider-track-part":F,"--divkit-slider-track-secondary-part":Y}),e.$$.dirty[0]&65536&&t(25,U={direction:he}),e.$$.dirty[0]&5|e.$$.dirty[1]&32768&&L.json&&mt&&(Re&&(ar.unregisterFocusable(Re),t(46,Re=void 0)),L.id&&!L.fakeElement&&(t(46,Re=L.id),ar.registerFocusable(Re,{focus(){mt&&mt.focus()}})))},[L,ae,mt,vt,De,ct,Yt,sr,dr,er,ir,Jr,Je,ke,q,o,he,Ne,ot,Wt,St,wr,Pr,s,l,U,W,H,X,V,N,R,v,w,h,y,m,_,f,u,c,a,Et,kr,Ar,Se,Re,ut,Ft,Y,F,te,D,i,n,Ie,be,Oe,Qe,ge,Ee,it,yt,tt,Ge,le,fe,Ze,qt,Ut,Ot,ur,Xe,It]}class yg extends Or{constructor(r){super(),zr(this,r,bg,mg,mr,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const ui={input:"divkit-49edd","input_alignment-horizontal_center":"divkit-e82eb","input_alignment-horizontal_end":"divkit-cfa85",input__aligner:"divkit-cadcd",input__input:"divkit-0dfa7",input__placeholder:"divkit-88914","input_alignment-vertical_start":"divkit-492f7","input_alignment-vertical_end":"divkit-4c2c2","input_alignment-vertical_baseline":"divkit-3545c","input_highlight-color":"divkit-2db43",input__input_singleline:"divkit-e1c57","input__scroll-wrapper":"divkit-20542",input__input_multiline:"divkit-11674","input__input_has-custom-focus":"divkit-26a87"};function gl(e,r){if(e===r)return{start:e.length,added:0,removed:0};if(e.length>r.length){const o=gl(r,e);return{start:o.start,added:o.removed,removed:o.added}}let t=0,n=r.length-1;const i=r.length-e.length;for(;t<n&&t<e.length&&e[t]===r[t];)++t;for(;n-i>=t&&e[n-i]===r[n];)--n;return++n,{start:t,added:n-t,removed:n-t-i}}class cu{constructor(r){this.char=r}}class fi{constructor(r,t,n){this.char=r,this.filter=t,this.placeholder=n}}class uu{constructor(r){gr(this,"maskData");gr(this,"filters",new Map);gr(this,"destructedValue",[]);gr(this,"cursorPos",0);this.maskData=r,this.updateMaskData(r)}get cursorPosition(){return this.cursorPos}get rawValue(){return this.collectValueRange(0,this.destructedValue.length-1)}get value(){let r="";for(let t=0;t<this.destructedValue.length;++t){const n=this.destructedValue[t];if(n instanceof cu)r+=n.char;else if(n instanceof fi)if(n.char)r+=n.char;else if(this.maskData.alwaysVisible)r+=n.placeholder;else break}return r}firstEmptyHolderIndex(){const r=this.destructedValue.findIndex(t=>t instanceof fi&&!t.char);return r!==-1?r:this.destructedValue.length}updateMaskData(r,t=!0){const n=this.maskData!==r&&t?this.rawValue:null;this.filters=new Map,this.maskData=r,this.maskData.decoding.forEach(i=>{if(i.filter)try{const o=new RegExp(i.filter);this.filters.set(i.key,o)}catch(o){this.onException(Q(o,{level:"error",additional:{key:i.key}}))}}),this.destructedValue=this.maskData.pattern.split("").map(i=>{const o=this.maskData.decoding.find(s=>s.key===i);return o?new fi(null,this.filters.get(o.key),o.placeholder):new cu(i)}),n!==null&&this.overrideRawValue(n)}overrideRawValue(r){this.clearRange(0,this.destructedValue.length),this.replaceChars(r,0),this.cursorPos=Math.min(this.cursorPos,this.value.length)}applyChangeFrom(r,t){const n=gl(this.value,r);t!==void 0&&(n.start=Math.max(0,t-n.added));const i=this.buildBodySubstring(n,r),o=this.buildTailSubstring(n);this.cleanup(n);const s=this.firstEmptyHolderIndex(),l=o?this.calculateMaxShift(o,s):void 0;this.replaceChars(i,s,l);const a=this.firstEmptyHolderIndex();this.replaceChars(o,a),this.calculateCursorPosition(n,a)}buildBodySubstring(r,t){return t.substring(r.start,r.start+r.added)}buildTailSubstring(r){return this.collectValueRange(r.start+r.removed,this.destructedValue.length-1)}calculateMaxShift(r,t){if(this.filters.size<=1){let o=0,s=t;for(;s<this.destructedValue.length;)this.destructedValue[s]instanceof fi&&++o,++s;return Math.max(0,o-r.length)}const n=this.calculateInsertableSubstring(r,t);let i=0;for(;i<this.destructedValue.length&&n===this.calculateInsertableSubstring(r,t+i);)++i;return Math.max(0,i-1)}cleanup(r){if(r.added===0&&r.removed===1){let t=r.start;for(;t>=0;){const n=this.destructedValue[t];if(n instanceof fi&&n.char!==null){n.char=null;break}else--t}}this.clearRange(r.start,this.destructedValue.length)}clearRange(r,t){let n=r;for(;n<t&&n<this.destructedValue.length;){const i=this.destructedValue[n];i instanceof fi&&(i.char=null),++n}}calculateCursorPosition(r,t){const n=this.firstEmptyHolderIndex();let i;r.start<n?i=Math.min(this.firstHolderAfter(t),this.value.length):i=n,this.cursorPos=i}calculateInsertableSubstring(r,t){let n="",i=t;const o=()=>{var s;for(;i<this.destructedValue.length&&!(this.destructedValue[i]instanceof fi);)++i;return(s=this.destructedValue[i])==null?void 0:s.filter};return r.split("").forEach(s=>{const l=o();l!=null&&l.test(s)&&(n+=s,++i)}),n}collectValueRange(r,t){let n="",i=r;for(;i<=t;){const o=this.destructedValue[i];o instanceof fi&&o.char!==null&&(n+=o.char),++i}return n}replaceChars(r,t,n){let i=this.calculateInsertableSubstring(r,t);n!==void 0&&(i=i.substring(0,n));let o=t,s=0;for(;o<this.destructedValue.length&&s<i.length;){const l=this.destructedValue[o],a=i[s];l instanceof fi&&(l.char=a,++s),++o}}firstHolderAfter(r){let t=r;for(;t<this.destructedValue.length&&!(this.destructedValue[t]instanceof fi);)++t;return t}}class wg extends uu{constructor(r,t){super(r),this.logError=t}onException(r){this.logError(r)}}function vg(e,r,t){if(typeof e.pattern=="string"&&Array.isArray(e.pattern_elements)&&e.pattern_elements.every(n=>n.key&&typeof n.key=="string")){const n={pattern:e.pattern,alwaysVisible:!!e.always_visible,decoding:e.pattern_elements.map(i=>({key:i.key,filter:i.regex&&typeof i.regex=="string"?i.regex:void 0,placeholder:i.placeholder&&typeof i.placeholder=="string"?i.placeholder:"_"}))};return t?(t.updateMaskData(n),t):new wg(n,r)}return t||null}class kg extends uu{constructor(t=void 0,n){super({pattern:"",decoding:[],alwaysVisible:!1});gr(this,"currencyFormatter",new Intl.NumberFormat);gr(this,"decimalSeparator",".");gr(this,"localeDigits",{});gr(this,"trimZeroRegExp",new RegExp(""));this.logError=n,this.initFormatter(t)}updateCurrencyParams(t){const n=this.parseFormat(this.rawValue)||0;this.initFormatter(t);const i=n.toString().replace(".",this.decimalSeparator);this.applyChangeFrom(i)}initFormatter(t){try{this.currencyFormatter=new Intl.NumberFormat(t,{minimumFractionDigits:2,maximumFractionDigits:2}),this.decimalSeparator=this.currencyFormatter.format(0)[1],this.localeDigits=new Array(10).fill("").reduce((n,i,o)=>(n[o]=this.currencyFormatter.format(o)[0],n),{}),this.trimZeroRegExp=new RegExp(`^${this.localeDigits[0]}+`)}catch(n){this.onException(Q(n,{level:"error",additional:{locale:t}}))}}invalidateMaskDataForFormatted(t){const n=this.currencyFormatter.format(t),i=this.formatPattern(n),o=[{key:"#",filter:`[${[...Object.values(this.localeDigits)].join("")}]`,placeholder:this.localeDigits[0]},{key:this.decimalSeparator,filter:`[${this.decimalSeparator}]`,placeholder:this.decimalSeparator}];this.updateMaskData({pattern:i,decoding:o,alwaysVisible:this.maskData.alwaysVisible},!1)}overrideRawValue(t){const n=this.parseFormat(t)||0;this.invalidateMaskDataForFormatted(n),super.overrideRawValue(t)}applyChangeFrom(t,n){const i=gl(this.value,t),o=this.value.lastIndexOf(this.decimalSeparator),s=t.lastIndexOf(this.decimalSeparator),l=o!==s||o===-1&&s===-1,a=this.validFormat(t,i);this.cleanup(i);const c=this.parseFormat(a)||0;l&&this.invalidateMaskDataForFormatted(c),this.replaceChars(a,0),this.value.length>i.start&&!this.isDigit(this.value[i.start])?this.cursorPos=n!=null?n:this.cursorPosition:this.cursorPos=Math.abs(this.value.length-(t.length-(n!=null?n:this.cursorPosition)))}parseFormat(t){return parseFloat(t.replace(/./g,n=>{const i=this.localeDigits[n];return i||(n===this.decimalSeparator?".":"")}))}formatPattern(t){let n="";for(const i of t)n+=this.isDigit(i)?"#":i;return n}validFormat(t,n){if(!t)return"";let i=-1,o=0;for(;o<t.length;){if(t[o]===this.decimalSeparator&&!this.inDiff(n,o)){i=o;break}o++}let s=-1;n.added===1&&n.removed===0&&[",","."].includes(t[n.start])&&(s=n.start);const l=this.currencyFormatter.resolvedOptions().maximumFractionDigits||0;let a=l;if(i!==-1)for(o=i;o<t.length;)this.isDigit(t[o])&&!this.inDiff(n,o)&&a--,o++;else{let _=!1;for(let m=0;m<t.length;m++){const y=t[m];y===this.decimalSeparator?_=!0:!this.inDiff(n,m)&&_&&this.isDigit(y)&&a--}}const c=t.includes(this.decimalSeparator)||s!==-1,u=[];o=t.length-1;let f=!1;for(;o>=0;){const _=t[o],m=u.length<=l;this.isDigit(_)?this.inDiff(n,o)&&!f&&c?a>0&&(u.push(_),a--):u.push(_):m&&i===-1&&o===s?(u.push(this.decimalSeparator),f=!0):m&&_===this.decimalSeparator&&(i===o||i===-1)&&(u.push(this.decimalSeparator),f=!0,i=o),o--}return u.reverse().join("").replace(this.trimZeroRegExp,"")}inDiff(t,n){return t.start<=n&&n<t.start+t.added}isDigit(t){return!!this.localeDigits[t]}onException(t){this.logError(t)}}function Ag(e,r,t){return t?(t.updateCurrencyParams(e.locale),t):new kg(e.locale,r)}const fu=3;function pl(e){const r=e.textContent;let t=0;return typeof r=="string"&&(t+=r.length,e instanceof HTMLElement&&(e.tagName==="DIV"||e.tagName==="BR")&&++t),t}function du(e,r){var t;try{let n=0;const i=window.getSelection();if(!i)return 0;const o=i.getRangeAt(0);let s;if(o&&(n+=r==="end"?o.endOffset:o.startOffset,s=r==="end"?o.endContainer:o.startContainer),s instanceof HTMLElement){let l=0;for(let a=0,c=Math.min(n,s.childNodes.length);a<c;++a)l+=pl(s.childNodes[a]);n=l}for(;s&&s!==e;){const l=s.parentNode;if(!l)return 0;const a=Array.from(l.childNodes).indexOf(s);for(let c=0;c<a;++c){const u=l.childNodes[c];n+=pl(u)}s instanceof HTMLElement&&(s.tagName==="DIV"&&((t=l.childNodes[a-1])==null?void 0:t.nodeType)===fu||s.tagName==="BR")&&++n,s=l}return n}catch{return 0}}function ml(e,r,t,n){if(e.nodeType===fu){try{t==="start"?r.setStart(e,n):r.setEnd(e,n)}catch{}return}if(e instanceof HTMLElement&&e.tagName==="BR"){try{const i=window.getSelection();if(i){i.removeAllRanges();const o=document.createRange(),s=e.parentNode,l=Array.from(s.childNodes).indexOf(e)+1;o.setStart(s,l),o.setEnd(s,l),i.addRange(o)}}catch{}return}for(let i=0,o=e.childNodes.length;i<o;++i){const s=e.childNodes[i],l=pl(s);if(n<=l){ml(s,r,t,n);return}n-=l}}function jg(e){let r,t;return r=new li({props:{componentContext:e[0]}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function Cg(e){let r,t;return r=new mn({props:{cls:gt("input",ui,e[20]),style:e[19],customDescription:!0,customActions:"input",customPaddings:!0,hasInnerFocusable:!0,componentContext:e[0],layoutParams:e[1],$$slots:{default:[Tg,({focusHandler:n,blurHandler:i,hasCustomFocus:o})=>({119:n,120:i,121:o}),({focusHandler:n,blurHandler:i,hasCustomFocus:o})=>[0,0,0,(n?67108864:0)|(i?134217728:0)|(o?268435456:0)]]},$$scope:{ctx:e}}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&1048576&&(o.cls=gt("input",ui,n[20])),i[0]&524288&&(o.style=n[19]),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&2555324|i[1]&32768|i[3]&1006632960&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function Eg(e){let r,t,n,i,o,s,l,a,c;return{c(){r=Le("input"),p(r,"type",e[10]),p(r,"inputmode",e[11]),p(r,"class",t=gt("input__input",ui,{"has-custom-focus":e[121],singleline:!0})),p(r,"autocomplete","off"),p(r,"autocapitalize",e[13]),p(r,"aria-label",e[12]),p(r,"aria-describedby",n=e[15]||void 0),p(r,"style",i=Ct(e[18])),r.disabled=o=!e[4],p(r,"maxlength",s=e[5]===1/0?void 0:e[5]),p(r,"placeholder",e[21]),r.value=e[3],p(r,"enterkeyhint",l=e[14]==="default"?void 0:e[14])},m(u,f){ie(u,r,f),e[103](r),a||(c=[He(r,"input",e[48]),He(r,"keydown",e[50]),He(r,"mousedown",function(){vr(e[46]?e[51]:void 0)&&(e[46]?e[51]:void 0).apply(this,arguments)}),He(r,"click",function(){vr(e[46]?e[52]:void 0)&&(e[46]?e[52]:void 0).apply(this,arguments)}),He(r,"focus",function(){vr(e[119])&&e[119].apply(this,arguments)}),He(r,"blur",function(){vr(e[120])&&e[120].apply(this,arguments)})],a=!0)},p(u,f){e=u,f[0]&1024&&p(r,"type",e[10]),f[0]&2048&&p(r,"inputmode",e[11]),f[3]&268435456&&t!==(t=gt("input__input",ui,{"has-custom-focus":e[121],singleline:!0}))&&p(r,"class",t),f[0]&8192&&p(r,"autocapitalize",e[13]),f[0]&4096&&p(r,"aria-label",e[12]),f[0]&32768&&n!==(n=e[15]||void 0)&&p(r,"aria-describedby",n),f[0]&262144&&i!==(i=Ct(e[18]))&&p(r,"style",i),f[0]&16&&o!==(o=!e[4])&&(r.disabled=o),f[0]&32&&s!==(s=e[5]===1/0?void 0:e[5])&&p(r,"maxlength",s),f[0]&2097152&&p(r,"placeholder",e[21]),f[0]&8&&r.value!==e[3]&&(r.value=e[3]),f[0]&16384&&l!==(l=e[14]==="default"?void 0:e[14])&&p(r,"enterkeyhint",l)},d(u){u&&re(r),e[103](null),a=!1,Hr(c)}}}function Sg(e){let r,t,n,i,o,s,l=!e[8]&&e[21]&&_u(e);function a(f,_){return f[4]?Ig:Vg}let c=a(e),u=c(e);return{c(){r=Le("span"),l&&l.c(),t=pr(),n=Le("span"),i=qn(""),s=pr(),u.c(),p(n,"class",ui.input__aligner),p(n,"aria-hidden","true"),p(n,"style",o=Ct(e[17])),p(r,"class",ui["input__scroll-wrapper"])},m(f,_){ie(f,r,_),l&&l.m(r,null),At(r,t),At(r,n),At(n,i),At(r,s),u.m(r,null)},p(f,_){!f[8]&&f[21]?l?l.p(f,_):(l=_u(f),l.c(),l.m(r,t)):l&&(l.d(1),l=null),_[0]&131072&&o!==(o=Ct(f[17]))&&p(n,"style",o),c===(c=a(f))&&u?u.p(f,_):(u.d(1),u=c(f),u&&(u.c(),u.m(r,null)))},d(f){f&&re(r),l&&l.d(),u.d()}}}function _u(e){let r,t,n;return{c(){r=Le("div"),t=qn(e[21]),p(r,"class",ui.input__placeholder),p(r,"aria-hidden","true"),p(r,"style",n=Ct(e[18]))},m(i,o){ie(i,r,o),At(r,t)},p(i,o){o[0]&2097152&&Ei(t,i[21]),o[0]&262144&&n!==(n=Ct(i[18]))&&p(r,"style",n)},d(i){i&&re(r)}}}function Vg(e){let r,t,n,i,o;return{c(){r=Le("span"),p(r,"class",gt("input__input",ui,{multiline:!0})),p(r,"autocapitalize",e[13]),p(r,"contenteditable","false"),p(r,"role","textbox"),p(r,"aria-label",e[12]),p(r,"aria-disabled","true"),p(r,"aria-multiline","true"),p(r,"aria-describedby",t=e[15]||void 0),p(r,"style",n=Ct(e[18])),e[8]===void 0&&Fn(()=>e[102].call(r))},m(s,l){ie(s,r,l),e[101](r),e[8]!==void 0&&(r.innerText=e[8]),i||(o=He(r,"input",e[102]),i=!0)},p(s,l){l[0]&8192&&p(r,"autocapitalize",s[13]),l[0]&4096&&p(r,"aria-label",s[12]),l[0]&32768&&t!==(t=s[15]||void 0)&&p(r,"aria-describedby",t),l[0]&262144&&n!==(n=Ct(s[18]))&&p(r,"style",n),l[0]&256&&s[8]!==r.innerText&&(r.innerText=s[8])},d(s){s&&re(r),e[101](null),i=!1,o()}}}function Ig(e){let r,t,n,i,o,s,l;return{c(){r=Le("span"),p(r,"class",t=gt("input__input",ui,{"has-custom-focus":e[121],multiline:!0})),p(r,"autocapitalize",e[13]),p(r,"contenteditable","true"),p(r,"role","textbox"),p(r,"tabindex","0"),p(r,"aria-label",e[12]),p(r,"aria-multiline","true"),p(r,"enterkeyhint",n=e[14]==="default"?void 0:e[14]),p(r,"aria-describedby",i=e[15]||void 0),p(r,"style",o=Ct(e[18])),e[8]===void 0&&Fn(()=>e[100].call(r))},m(a,c){ie(a,r,c),e[99](r),e[8]!==void 0&&(r.innerText=e[8]),s||(l=[He(r,"input",e[100]),He(r,"input",e[48]),He(r,"keydown",e[49]),He(r,"keydown",e[50]),He(r,"paste",Pg),He(r,"mousedown",function(){vr(e[46]?e[51]:void 0)&&(e[46]?e[51]:void 0).apply(this,arguments)}),He(r,"click",function(){vr(e[46]?e[52]:void 0)&&(e[46]?e[52]:void 0).apply(this,arguments)}),He(r,"focus",function(){vr(e[119])&&e[119].apply(this,arguments)}),He(r,"blur",function(){vr(e[120])&&e[120].apply(this,arguments)})],s=!0)},p(a,c){e=a,c[3]&268435456&&t!==(t=gt("input__input",ui,{"has-custom-focus":e[121],multiline:!0}))&&p(r,"class",t),c[0]&8192&&p(r,"autocapitalize",e[13]),c[0]&4096&&p(r,"aria-label",e[12]),c[0]&16384&&n!==(n=e[14]==="default"?void 0:e[14])&&p(r,"enterkeyhint",n),c[0]&32768&&i!==(i=e[15]||void 0)&&p(r,"aria-describedby",i),c[0]&262144&&o!==(o=Ct(e[18]))&&p(r,"style",o),c[0]&256&&e[8]!==r.innerText&&(r.innerText=e[8])},d(a){a&&re(r),e[99](null),s=!1,Hr(l)}}}function Tg(e){let r;function t(o,s){return o[7]?Sg:Eg}let n=t(e),i=n(e);return{c(){i.c(),r=Zt()},m(o,s){i.m(o,s),ie(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&&re(r),i.d(o)}}}function Dg(e){let r,t,n,i;const o=[Cg,jg],s=[];function l(a,c){return a[9]?-1:0}return~(r=l(e))&&(t=s[r]=o[r](e)),{c(){t&&t.c(),n=Zt()},m(a,c){~r&&s[r].m(a,c),ie(a,n,c),i=!0},p(a,c){let u=r;r=l(a),r===u?~r&&s[r].p(a,c):(t&&(tr(),$(s[u],1,1,()=>{s[u]=null}),rr()),~r?(t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(B(t),i=!0)},o(a){$(t),i=!1},d(a){a&&re(n),~r&&s[r].d(a)}}}const Fg=typeof document<"u"&&"inputMode"in document.createElement("input"),hu={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url",password:"password"},Mg=new Set(["Backspace","Delete","Tab","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","Control","Shift","Alt","Command","Meta","Escape"]);function Pg(e){if(e.preventDefault(),e.clipboardData){let r=e.clipboardData.getData("text/plain");r=r.trim(),document.execCommand("inserttext",!1,r)}}function Ng(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R,N,V,D,te,F,Y,X,H,W,U,he,Ie,Te,_e,be,_t,We,Oe,Fe,qe,Qe=C,Z=()=>(Qe(),Qe=M(s,ue=>t(74,qe=ue)),s),Ae,ge=C,et=()=>(ge(),ge=M(l,ue=>t(75,Ae=ue)),l),G,Ee=C,Ue=()=>(Ee(),Ee=M(Te,ue=>t(108,G=ue)),Te),ne,it=C,je=()=>(it(),it=M(he,ue=>t(76,ne=ue)),he),Ve,yt=C,Vt=()=>(yt(),yt=M(Y,ue=>t(77,Ve=ue)),Y),ee,tt=C,lt=()=>(tt(),tt=M(U,ue=>t(78,ee=ue)),U),dt,Ge,E=C,$e=()=>(E(),E=M(F,ue=>t(80,Ge=ue)),F),le,Ke=C,wt=()=>(Ke(),Ke=M(te,ue=>t(81,le=ue)),te),fe,me=C,at=()=>(me(),me=M(D,ue=>t(82,fe=ue)),D),Ze,$t=C,Mt=()=>($t(),$t=M(V,ue=>t(83,Ze=ue)),V),qt,Pe=C,pt=()=>(Pe(),Pe=M(W,ue=>t(84,qt=ue)),W),Ut,Ht=C,Gt=()=>(Ht(),Ht=M(H,ue=>t(85,Ut=ue)),H),L,ae=C,ar=()=>(ae(),ae=M(N,ue=>t(86,L=ue)),N),ve,Et=C,Re=()=>(Et(),Et=M(R,ue=>t(87,ve=ue)),R),mt,Ne=C,ot=()=>(Ne(),Ne=M(v,ue=>t(88,mt=ue)),v),vt,De=C,ct=()=>(De(),De=M(w,ue=>t(89,vt=ue)),w),Yt,sr=C,dr=()=>(sr(),sr=M(h,ue=>t(90,Yt=ue)),h),Wt,ut=C,St=()=>(ut(),ut=M(y,ue=>t(91,Wt=ue)),y),Ft,er=C,ir=()=>(er(),er=M(m,ue=>t(92,Ft=ue)),m),wr,Pr=C,Jr=()=>(Pr(),Pr=M(_,ue=>t(93,wr=ue)),_),Je,cr=C,ke=()=>(cr(),cr=M(f,ue=>t(94,Je=ue)),f),q,kr=C,Ar=()=>(kr(),kr=M(u,ue=>t(95,q=ue)),u),zt,Zr=C,Se=()=>(Zr(),Zr=M(c,ue=>t(96,zt=ue)),c),Ot,ur=C,Xe=()=>(ur(),ur=M(a,ue=>t(97,Ot=ue)),a),It,ze=C,ht=()=>(ze(),ze=M(Ie,ue=>t(98,It=ue)),Ie),st,jt=C,Jt=()=>(jt(),jt=M(X,ue=>t(46,st=ue)),X);e.$$.on_destroy.push(()=>Qe()),e.$$.on_destroy.push(()=>ge()),e.$$.on_destroy.push(()=>Ee()),e.$$.on_destroy.push(()=>it()),e.$$.on_destroy.push(()=>yt()),e.$$.on_destroy.push(()=>tt()),e.$$.on_destroy.push(()=>E()),e.$$.on_destroy.push(()=>Ke()),e.$$.on_destroy.push(()=>me()),e.$$.on_destroy.push(()=>$t()),e.$$.on_destroy.push(()=>Pe()),e.$$.on_destroy.push(()=>Ht()),e.$$.on_destroy.push(()=>ae()),e.$$.on_destroy.push(()=>Et()),e.$$.on_destroy.push(()=>Ne()),e.$$.on_destroy.push(()=>De()),e.$$.on_destroy.push(()=>sr()),e.$$.on_destroy.push(()=>ut()),e.$$.on_destroy.push(()=>er()),e.$$.on_destroy.push(()=>Pr()),e.$$.on_destroy.push(()=>cr()),e.$$.on_destroy.push(()=>kr()),e.$$.on_destroy.push(()=>Zr()),e.$$.on_destroy.push(()=>ur()),e.$$.on_destroy.push(()=>ze()),e.$$.on_destroy.push(()=>jt());let{componentContext:I}=r,{layoutParams:rt=void 0}=r;const de=Wr(Xr),d=de.direction;rn(e,d,ue=>t(79,dt=ue));let Me,kt,Fr=!1,lr=null,z="",Er="",xr=!1,b="",A=12,K,oe="",se,Ce="",bt="#000",P="",Ye="start",Rt="center",Tt="multi_line_text",Lt="text",or,sn="",Nr=null,dn="",$r="",Gn="",vn=!0,en=1/0,_n="off",Yn="default",ei="",En=!1,Jn=!0,ti=0,cn=0;function Pi(){t(55,b=""),t(56,A=12),t(57,K=void 0),t(58,oe=""),t(59,se=void 0),t(61,bt="#000"),t(62,P=""),t(63,Ye="left"),t(64,Rt="center"),t(65,Tt="multi_line_text"),t(10,Lt="text"),t(11,or=void 0),t(4,vn=!0),t(5,en=1/0),t(13,_n="off"),t(14,Yn="default"),t(15,ei=""),ti=0,cn=0}function Ni(ue){(ue==null?void 0:ue.type)==="fixed_length"?t(54,lr=vg(ue,I.logError,lr)):(ue==null?void 0:ue.type)==="currency"&&t(54,lr=Ag(ue,I.logError,lr)),lr&&J()}function ri(ue){if(!Array.isArray(G)||!ue)return!0;for(const Qt of G)if(Qt){if(Qt.type==="regex")try{if(!new RegExp("^"+(Qt.pattern||"")+"$").test(ue))return!1}catch(hr){return I.logError(Q(new Error("Failed to create a regex"),{additional:{originalError:String(hr)}})),!0}else if(Qt.type==="expression"&&!Qt.condition)return!1}return!0}function Qi(ue){const Qt=ue.target;let hr=(be?Qt.innerText:Qt.value)||"";hr===`
|
|
9
|
-
`&&(hr=""),hr.length>en&&(hr=t(8,Er=z),Qt instanceof HTMLInputElement&&(Qt.value=hr)),z!==hr&&(ri(hr)?(t(3,z=t(8,Er=hr)),s.setValue(hr),lr&&x(),xe()):(t(3,z=t(8,Er=hr)),Qt instanceof HTMLInputElement&&(Qt.value=hr),gn().then(()=>{j(ti,cn)})))}function _i(ue){z.length>=en&&!Mg.has(ue.key)&&!(ue.ctrlKey||ue.altKey||ue.metaKey)&&ue.preventDefault()}function zn(ue){if(ti=k()||0,cn=T()||0,ue.ctrlKey||ue.metaKey||ue.altKey||ue.shiftKey)return;const Qt=I.json.enter_key_actions;if(ue.key==="Enter"&&Array.isArray(Qt)&&Qt.length){const On=I.getJsonWithVars(Qt).filter(Rn=>Rn.log_id).filter(jn);ue.preventDefault(),I.execAnyActions(On)}}function ft(){Fr=!1,setTimeout(()=>{Fr=!0},250)}function g(){if(!Fr)if(kt instanceof HTMLInputElement)kt.select();else{const ue=window.getSelection(),Qt=document.createRange();Qt.selectNodeContents(kt),ue&&(ue.removeAllRanges(),ue.addRange(Qt))}}function k(){return kt instanceof HTMLInputElement?kt.selectionStart===null?void 0:kt.selectionStart:du(kt,"start")}function T(){return kt instanceof HTMLInputElement?kt.selectionEnd===null?void 0:kt.selectionEnd:du(kt,"end")}function j(ue,Qt){if(kt instanceof HTMLInputElement)t(2,kt.selectionStart=ue,kt),t(2,kt.selectionEnd=Qt,kt);else{const hr=window.getSelection();if(hr){hr.removeAllRanges();const On=document.createRange();ml(kt,On,"start",ue),ml(kt,On,"end",Qt),hr.addRange(On)}}}async function x(){if(!kt||!lr)return;const ue=k()||0,Qt=T()||0;lr.applyChangeFrom(z,Qt===ue?Qt:0),l.set(lr.rawValue),Oo(s,qe=t(3,z=t(8,Er=lr.value)),qe);const hr=lr.cursorPosition;await gn(),document.activeElement===kt&&j(hr,hr)}async function J(){if(!kt||!lr)return;lr.overrideRawValue(Ae),l.set(lr.rawValue),Oo(s,qe=t(3,z=t(8,Er=lr.value)),qe);const ue=lr.cursorPosition;await gn(),document.activeElement===kt&&j(ue,ue)}function xe(){const ue=Jn;Jn=!1;const Qt=I.json.validators;if(!Array.isArray(Qt)||!Qt.length)return;const On=I.getJsonWithVars(Qt).filter(qr=>(qr.type==="regex"||qr.type==="expression")&&qr.label_id&&qr.variable),Rn=[];On.forEach(qr=>{const gi=I.getVariable(qr.variable);if(!gi)return;if(gi.getType()!=="boolean"){ue&&I.logError(Q(new Error("Incorrect variable type for the validator"),{additional:{variable:qr.variable}}));return}let pi=!1;if(z===""&&(qr.allow_empty===!0||qr.allow_empty===1))pi=!0;else if(qr.type==="regex"){if(!qr.pattern||typeof qr.pattern!="string")return;try{pi=new RegExp("^"+qr.pattern+"$").test(z)}catch{ue&&I.logError(Q(new Error("Failed to create a regular expression using the validator pattern"),{additional:{pattern:qr.pattern}}));return}}else if(qr.type==="expression")pi=qr.condition===!0||qr.condition===1;else return;if(gi.setValue(pi),!pi){const Ai=de.getComponentId(qr.label_id);Ai&&Rn.push(Ai)}}),t(15,ei=Rn.join(" "))}Xn(()=>{t(70,En=!0),kt&&lr&&Ae&&(lr.overrideRawValue(Ae),Oo(s,qe=t(3,z=t(8,Er=lr.value)),qe))}),on(()=>{t(70,En=!1),Me&&(de.unregisterFocusable(Me),t(53,Me=void 0))});function nt(ue){Tr[ue?"unshift":"push"](()=>{kt=ue,t(2,kt)})}function Sr(){Er=this.innerText,t(8,Er),t(54,lr),t(3,z),t(74,qe),t(5,en),t(6,s),t(84,qt),t(71,i),t(0,I)}function _r(ue){Tr[ue?"unshift":"push"](()=>{kt=ue,t(2,kt)})}function jr(){Er=this.innerText,t(8,Er),t(54,lr),t(3,z),t(74,qe),t(5,en),t(6,s),t(84,qt),t(71,i),t(0,I)}function hi(ue){Tr[ue?"unshift":"push"](()=>{kt=ue,t(2,kt)})}return e.$$set=ue=>{"componentContext"in ue&&t(0,I=ue.componentContext),"layoutParams"in ue&&t(1,rt=ue.layoutParams)},e.$$.update=()=>{var ue;if(e.$$.dirty[0]&1&&t(73,n=I.origJson),e.$$.dirty[2]&2048&&n&&Pi(),e.$$.dirty[0]&1&&t(71,i=I.json.text_variable),e.$$.dirty[0]&1&&t(72,o=(ue=I.json.mask)==null?void 0:ue.raw_text_variable),e.$$.dirty[0]&1|e.$$.dirty[2]&512&&Z(t(6,s=i&&I.getVariable(i,"string")||ci("temp","string",""))),e.$$.dirty[0]&1|e.$$.dirty[2]&1024&&et(t(16,l=o&&I.getVariable(o,"string")||ci("temp","string",""))),e.$$.dirty[0]&1&&Xe(t(45,a=I.getDerivedFromVars(I.json.hint_text))),e.$$.dirty[0]&1&&Se(t(44,c=I.getDerivedFromVars(I.json.hint_color))),e.$$.dirty[0]&1&&Ar(t(43,u=I.getDerivedFromVars(I.json.font_size))),e.$$.dirty[0]&1&&ke(t(42,f=I.getDerivedFromVars(I.json.font_weight))),e.$$.dirty[0]&1&&Jr(t(41,_=I.getDerivedFromVars(I.json.font_weight_value))),e.$$.dirty[0]&1&&ir(t(40,m=I.getDerivedFromVars(I.json.font_family))),e.$$.dirty[0]&1&&St(t(39,y=I.getDerivedFromVars(I.json.line_height))),e.$$.dirty[0]&1&&dr(t(38,h=I.getDerivedFromVars(I.json.letter_spacing))),e.$$.dirty[0]&1&&ct(t(37,w=I.getDerivedFromVars(I.json.text_color))),e.$$.dirty[0]&1&&ot(t(36,v=I.getDerivedFromVars(I.json.highlight_color))),e.$$.dirty[0]&1&&Re(t(35,R=I.getDerivedFromVars(I.json.text_alignment_horizontal))),e.$$.dirty[0]&1&&ar(t(34,N=I.getDerivedFromVars(I.json.text_alignment_vertical))),e.$$.dirty[0]&1&&Mt(t(33,V=I.getDerivedFromVars(I.json.keyboard_type))),e.$$.dirty[0]&1&&at(t(32,D=I.getDerivedFromVars(I.json.mask))),e.$$.dirty[0]&1&&wt(t(31,te=I.getDerivedFromVars(I.json.max_visible_lines))),e.$$.dirty[0]&1&&$e(t(30,F=I.getDerivedFromVars(I.json.paddings))),e.$$.dirty[0]&1&&Vt(t(29,Y=I.getDerivedFromVars(I.json.accessibility))),e.$$.dirty[0]&1&&Jt(t(28,X=I.getDerivedFromVars(I.json.select_all_on_focus))),e.$$.dirty[0]&1&&Gt(t(27,H=I.getDerivedFromVars(I.json.is_enabled))),e.$$.dirty[0]&1&&pt(t(26,W=I.getDerivedFromVars(I.json.max_length))),e.$$.dirty[0]&1&<(t(25,U=I.getDerivedFromVars(I.json.autocapitalization))),e.$$.dirty[0]&1&&je(t(24,he=I.getDerivedFromVars(I.json.enter_key_type))),e.$$.dirty[0]&1&&ht(t(23,Ie=I.getDerivedFromVars(I.json.validators))),e.$$.dirty[0]&1&&Ue(t(22,Te=I.getDerivedFromVars(I.json.filters))),e.$$.dirty[0]&1|e.$$.dirty[2]&512&&(i?t(9,xr=!1):(t(9,xr=!0),I.logError(Q(new Error('Missing "text_variable" in "input"'))))),e.$$.dirty[2]&1048576&&Ni(fe),e.$$.dirty[0]&32|e.$$.dirty[2]&4194304&&t(5,en=Wn(qt,en)),e.$$.dirty[0]&104|e.$$.dirty[1]&8388608|e.$$.dirty[2]&4096&&!lr&&z!==qe){let Qt=qe;Qt.length>en&&(Qt=Qt.slice(0,en),s.setValue(Qt)),t(3,z=t(8,Er=Qt)),xe()}if(e.$$.dirty[1]&8388608|e.$$.dirty[2]&8192&&lr&&lr.rawValue!==Ae&&(J(),xe()),e.$$.dirty[2]&256|e.$$.dirty[3]&32&&It&&En&&xe(),e.$$.dirty[3]&16&&t(21,_e=Ot),e.$$.dirty[1]&16777216|e.$$.dirty[3]&8&&t(55,b=Cr(zt,1,b)),e.$$.dirty[1]&33554432|e.$$.dirty[3]&4&&t(56,A=Wn(q,A)),e.$$.dirty[1]&67108864|e.$$.dirty[2]&1073741824|e.$$.dirty[3]&3&&(t(57,K=lo(Je,wr,K)),Ft&&typeof Ft=="string"?t(58,oe=de.typefaceProvider(Ft,{fontWeight:K||400})):t(58,oe="")),e.$$.dirty[1]&33554432|e.$$.dirty[2]&536870912){const Qt=Wt;In(Qt)&&t(59,se=Qt/A)}e.$$.dirty[2]&268435456&&qo(Yt)&&t(60,Ce=we(Yt)),e.$$.dirty[1]&1073741824|e.$$.dirty[2]&134217728&&t(61,bt=Cr(vt,1,bt)),e.$$.dirty[2]&67108865&&t(62,P=Cr(mt,1,P)),e.$$.dirty[2]&33685506&&t(63,Ye=rl(ve,dt,Ye)),e.$$.dirty[2]&16777220&&t(64,Rt=nl(L,Rt)),e.$$.dirty[0]&16|e.$$.dirty[2]&8388608&&t(4,vn=Zn(Ut,vn)),e.$$.dirty[2]&3145728&&(Ze&&Ze in hu&&(t(10,Lt=hu[Ze]),t(65,Tt=Ze)),(fe==null?void 0:fe.type)==="currency"&&(t(10,Lt=Fg?"text":"tel"),t(11,or="decimal"))),e.$$.dirty[2]&8&&t(7,be=Tt==="multi_line_text"),e.$$.dirty[1]&301989888|e.$$.dirty[2]&917536&&(In(le)?t(66,sn=`calc(${le*(se||1.25)*(A/10)+"em"} + ${pn(Ur(Ge==null?void 0:Ge.top,0)+Ur(Ge==null?void 0:Ge.bottom,0))})`):t(66,sn=""),t(67,Nr=vo(Ge||void 0,Nr)),t(68,dn=Nr?si({top:(Number(Nr.top)||0)/A*10,right:(Number(dt==="ltr"?Nr.end:Nr.start)||Number(Nr.right)||0)/A*10,bottom:(Number(Nr.bottom)||0)/A*10,left:(Number(dt==="ltr"?Nr.start:Nr.end)||Number(Nr.left)||0)/A*10},dt):""),t(69,$r=Nr?si({top:(Number(Nr.top)||0)/A*10,bottom:(Number(Nr.bottom)||0)/A*10},dt):"")),e.$$.dirty[2]&65536&&(ee==="all_characters"?t(13,_n="characters"):ee==="sentences"?t(13,_n="sentences"):ee==="words"?t(13,_n="words"):(ee==="none"||ee==="auto")&&t(13,_n="off")),e.$$.dirty[0]&1|e.$$.dirty[2]&32768&&(Ve!=null&&Ve.description?t(12,Gn=Ve.description):I.logError(Q(new Error('Missing accessibility "description" for input'),{level:"warn"}))),e.$$.dirty[2]&16384&&(ne==="default"||ne==="done"||ne==="go"||ne==="search"||ne==="send")&&t(14,Yn=ne),e.$$.dirty[0]&128|e.$$.dirty[2]&7&&t(20,_t={"highlight-color":!!P,multiline:be,"alignment-horizontal":Ye,"alignment-vertical":Rt}),e.$$.dirty[1]&2097152e3|e.$$.dirty[2]&17&&t(19,We={"--divkit-input-hint-color":b,"--divkit-input-highlight-color":P,"--divkit-input-line-height":se,"font-weight":K,"font-family":oe,"letter-spacing":Ce,color:bt,"max-height":sn}),e.$$.dirty[1]&33554432|e.$$.dirty[2]&64&&t(18,Oe={"font-size":we(A),padding:dn}),e.$$.dirty[1]&33554432|e.$$.dirty[2]&128&&t(17,Fe={"font-size":we(A),padding:$r}),e.$$.dirty[0]&13|e.$$.dirty[1]&4194304&&kt&&I.json&&(Me&&(de.unregisterFocusable(Me),t(53,Me=void 0)),I.id&&!I.fakeElement&&(t(53,Me=I.id),de.registerFocusable(Me,{focus(){kt&&(kt.focus(),j(z.length,z.length))}})))},[I,rt,kt,z,vn,en,s,be,Er,xr,Lt,or,Gn,_n,Yn,ei,l,Fe,Oe,We,_t,_e,Te,Ie,he,U,W,H,X,Y,F,te,D,V,N,R,v,w,h,y,m,_,f,u,c,a,st,d,Qi,_i,zn,ft,g,Me,lr,b,A,K,oe,se,Ce,bt,P,Ye,Rt,Tt,sn,Nr,dn,$r,En,i,o,n,qe,Ae,ne,Ve,ee,dt,Ge,le,fe,Ze,qt,Ut,L,ve,mt,vt,Yt,Wt,Ft,wr,Je,q,zt,Ot,It,nt,Sr,_r,jr,hi]}class zg extends Or{constructor(r){super(),zr(this,r,Ng,Dg,mr,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}}const ao={select:"divkit-ae558","select__select-text":"divkit-c1610",select_hint:"divkit-f3d02",select__select:"divkit-e7d17","select__select_has-custom-focused":"divkit-2e9c1","has-custom-focused":"divkit-d2243",select__option:"divkit-72083"};function gu(e,r,t){const n=e.slice();return n[58]=r[t],n}function Og(e){let r,t;return r=new li({props:{componentContext:e[0]}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function Rg(e){let r,t;return r=new mn({props:{cls:gt("select",ao,e[11]),style:e[10],customDescription:!0,customActions:"select",customPaddings:!0,hasInnerFocusable:!0,componentContext:e[0],layoutParams:e[1],$$slots:{default:[Lg,({hasCustomFocus:n,focusHandler:i,blurHandler:o})=>({55:n,56:i,57:o}),({hasCustomFocus:n,focusHandler:i,blurHandler:o})=>[0,(n?16777216:0)|(i?33554432:0)|(o?67108864:0)]]},$$scope:{ctx:e}}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&2048&&(o.cls=gt("select",ao,n[11])),i[0]&1024&&(o.style=n[10]),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&16778172|i[1]&1191182336&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function pu(e){let r,t=(e[58].text||e[58].value)+"",n,i;return{c(){r=Le("option"),n=qn(t),p(r,"class",ao.select__option),r.__value=i=e[58].value,Kl(r,r.__value)},m(o,s){ie(o,r,s),At(r,n)},p(o,s){s[0]&16&&t!==(t=(o[58].text||o[58].value)+"")&&Ei(n,t),s[0]&16&&i!==(i=o[58].value)&&(r.__value=i,Kl(r,r.__value))},d(o){o&&re(r)}}}function Lg(e){let r,t=(e[3]||e[24]||"")+"",n,i,o,s,l,a,c,u,f=nr(e[4]),_=[];for(let m=0;m<f.length;m+=1)_[m]=pu(gu(e,f,m));return{c(){r=Le("span"),n=qn(t),o=pr(),s=Le("select");for(let m=0;m<_.length;m+=1)_[m].c();p(r,"class",ao["select__select-text"]),p(r,"style",i=Ct(e[9])),p(r,"aria-hidden","true"),p(s,"class",l=gt("select__select",ao,{"has-custom-focus":e[55]})),p(s,"aria-label",e[7]),p(s,"style",a=Ct(e[8])),e[5]===void 0&&Fn(()=>e[52].call(s))},m(m,y){ie(m,r,y),At(r,n),ie(m,o,y),ie(m,s,y);for(let h=0;h<_.length;h+=1)_[h]&&_[h].m(s,null);e[51](s),Xl(s,e[5],!0),c||(u=[He(s,"change",e[52]),He(s,"focus",function(){vr(e[56])&&e[56].apply(this,arguments)}),He(s,"blur",function(){vr(e[57])&&e[57].apply(this,arguments)})],c=!0)},p(m,y){if(e=m,y[0]&16777224&&t!==(t=(e[3]||e[24]||"")+"")&&Ei(n,t),y[0]&512&&i!==(i=Ct(e[9]))&&p(r,"style",i),y[0]&16){f=nr(e[4]);let h;for(h=0;h<f.length;h+=1){const w=gu(e,f,h);_[h]?_[h].p(w,y):(_[h]=pu(w),_[h].c(),_[h].m(s,null))}for(;h<_.length;h+=1)_[h].d(1);_.length=f.length}y[1]&16777216&&l!==(l=gt("select__select",ao,{"has-custom-focus":e[55]}))&&p(s,"class",l),y[0]&128&&p(s,"aria-label",e[7]),y[0]&256&&a!==(a=Ct(e[8]))&&p(s,"style",a),y[0]&48&&Xl(s,e[5])},d(m){m&&(re(r),re(o),re(s)),ln(_,m),e[51](null),c=!1,Hr(u)}}}function Bg(e){let r,t,n,i;const o=[Rg,Og],s=[];function l(a,c){return a[6]?-1:0}return~(r=l(e))&&(t=s[r]=o[r](e)),{c(){t&&t.c(),n=Zt()},m(a,c){~r&&s[r].m(a,c),ie(a,n,c),i=!0},p(a,c){let u=r;r=l(a),r===u?~r&&s[r].p(a,c):(t&&(tr(),$(s[u],1,1,()=>{s[u]=null}),rr()),~r?(t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(B(t),i=!0)},o(a){$(t),i=!1},d(a){a&&re(n),~r&&s[r].d(a)}}}function Hg(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R,N,V,D,te,F,Y=C,X=()=>(Y(),Y=M(R,Ne=>t(40,F=Ne)),R),H,W=C,U=()=>(W(),W=M(v,Ne=>t(41,H=Ne)),v),he,Ie=C,Te=()=>(Ie(),Ie=M(w,Ne=>t(42,he=Ne)),w),_e,be=C,_t=()=>(be(),be=M(h,Ne=>t(43,_e=Ne)),h),We,Oe=C,Fe=()=>(Oe(),Oe=M(y,Ne=>t(44,We=Ne)),y),qe,Qe=C,Z=()=>(Qe(),Qe=M(m,Ne=>t(45,qe=Ne)),m),Ae,ge=C,et=()=>(ge(),ge=M(_,Ne=>t(46,Ae=Ne)),_),G,Ee=C,Ue=()=>(Ee(),Ee=M(f,Ne=>t(47,G=Ne)),f),ne,it=C,je=()=>(it(),it=M(u,Ne=>t(48,ne=Ne)),u),Ve,yt,Vt=C,ee=()=>(Vt(),Vt=M(a,Ne=>t(50,yt=Ne)),a),tt,lt=C,dt=()=>(lt(),lt=M(l,Ne=>t(5,tt=Ne)),l),Ge,E=C,$e=()=>(E(),E=M(c,Ne=>t(24,Ge=Ne)),c);e.$$.on_destroy.push(()=>Y()),e.$$.on_destroy.push(()=>W()),e.$$.on_destroy.push(()=>Ie()),e.$$.on_destroy.push(()=>be()),e.$$.on_destroy.push(()=>Oe()),e.$$.on_destroy.push(()=>Qe()),e.$$.on_destroy.push(()=>ge()),e.$$.on_destroy.push(()=>Ee()),e.$$.on_destroy.push(()=>it()),e.$$.on_destroy.push(()=>Vt()),e.$$.on_destroy.push(()=>lt()),e.$$.on_destroy.push(()=>E());let{componentContext:le}=r,{layoutParams:Ke=void 0}=r;const wt=Wr(Xr),fe=wt.direction;rn(e,fe,Ne=>t(49,Ve=Ne));let me,at,Ze=!1,$t="",Mt=null,qt="",Pe="rgba(0,0,0,.45)",pt=12,Ut,Ht="",Gt,L="",ae="#000",ar="",ve;function Et(){t(27,Mt=null),t(29,Pe="rgba(0,0,0,.45)"),t(30,pt=12),t(31,Ut=void 0),t(32,Ht=""),t(33,Gt=void 0),t(34,L=""),t(35,ae="#000"),t(7,ar="")}on(()=>{me&&(wt.unregisterFocusable(me),t(26,me=void 0))});function Re(Ne){Tr[Ne?"unshift":"push"](()=>{at=Ne,t(2,at)})}function mt(){tt=nd(this),l.set(tt),t(4,s),t(38,o),t(0,le)}return e.$$set=Ne=>{"componentContext"in Ne&&t(0,le=Ne.componentContext),"layoutParams"in Ne&&t(1,Ke=Ne.layoutParams)},e.$$.update=()=>{if(e.$$.dirty[0]&1&&t(39,n=le.origJson),e.$$.dirty[1]&256&&n&&Et(),e.$$.dirty[0]&1&&t(37,i=le.json.value_variable),e.$$.dirty[0]&1&&t(38,o=le.json.options),e.$$.dirty[1]&128&&t(4,s=Array.isArray(o)&&o.filter(Ne=>typeof Ne.value=="string")||[]),e.$$.dirty[0]&1|e.$$.dirty[1]&64&&dt(t(23,l=i&&le.getVariable(i,"string")||ci("temp","string",""))),e.$$.dirty[0]&1&&ee(t(22,a=le.getDerivedFromVars(le.json.paddings))),e.$$.dirty[0]&1&&$e(t(21,c=le.getDerivedFromVars(le.json.hint_text))),e.$$.dirty[0]&1&&je(t(20,u=le.getDerivedFromVars(le.json.hint_color))),e.$$.dirty[0]&1&&Ue(t(19,f=le.getDerivedFromVars(le.json.font_size))),e.$$.dirty[0]&1&&et(t(18,_=le.getDerivedFromVars(le.json.font_weight))),e.$$.dirty[0]&1&&Z(t(17,m=le.getDerivedFromVars(le.json.font_weight_value))),e.$$.dirty[0]&1&&Fe(t(16,y=le.getDerivedFromVars(le.json.font_family))),e.$$.dirty[0]&1&&_t(t(15,h=le.getDerivedFromVars(le.json.line_height))),e.$$.dirty[0]&1&&Te(t(14,w=le.getDerivedFromVars(le.json.letter_spacing))),e.$$.dirty[0]&1&&U(t(13,v=le.getDerivedFromVars(le.json.text_color))),e.$$.dirty[0]&1&&X(t(12,R=le.getDerivedFromVars(le.json.accessibility))),e.$$.dirty[0]&17&&(Array.isArray(s)&&s.length||le.logError(Q(new Error('Empty selection "items" in "select"')))),e.$$.dirty[0]&1|e.$$.dirty[1]&64&&(i?t(6,Ze=!1):(t(6,Ze=!0),le.logError(Q(new Error('Missing "value_variable" in "select"'))))),e.$$.dirty[0]&49|e.$$.dirty[1]&32){const Ne=s.find(ot=>ot.value===tt);Ne?t(3,$t=(typeof Ne.text=="string"?Ne.text:Ne.value)||""):(t(3,$t=""),tt&&ve!==tt&&(t(36,ve=tt),le.logError(Q(new Error('Value from the variable was not found in the selection items for "select"')))))}if(e.$$.dirty[0]&1073741824|e.$$.dirty[1]&65536&&t(30,pt=Wn(G,pt)),e.$$.dirty[0]&1207959552|e.$$.dirty[1]&786432&&(t(27,Mt=vo(yt||void 0,Mt)),t(28,qt=Mt?si({top:(Number(Mt.top)||0)/pt*10,right:(Number(Ve==="ltr"?Mt.end:Mt.start)||Number(Mt.right)||0)/pt*10,bottom:(Number(Mt.bottom)||0)/pt*10,left:(Number(Ve==="ltr"?Mt.start:Mt.end)||Number(Mt.left)||0)/pt*10},Ve):"")),e.$$.dirty[0]&536870912|e.$$.dirty[1]&131072&&t(29,Pe=Cr(ne,1,Pe)),e.$$.dirty[1]&57345&&(t(31,Ut=lo(Ae,qe,Ut)),We&&typeof We=="string"?t(32,Ht=wt.typefaceProvider(We,{fontWeight:Ut||400})):t(32,Ht="")),e.$$.dirty[0]&1073741824|e.$$.dirty[1]&4096){const Ne=_e;In(Ne)&&t(33,Gt=Ne/pt)}e.$$.dirty[0]&1073741824|e.$$.dirty[1]&2048&&qo(he)&&t(34,L=we(he/pt*10)),e.$$.dirty[1]&1040&&t(35,ae=Cr(H,1,ae)),e.$$.dirty[0]&1|e.$$.dirty[1]&512&&(F!=null&&F.description?t(7,ar=F.description):le.logError(Q(new Error('Missing accessibility "description" for select'),{level:"warn"}))),e.$$.dirty[0]&8&&t(11,N={hint:!$t}),e.$$.dirty[0]&536870912|e.$$.dirty[1]&19&&t(10,V={"--divkit-input-hint-color":Pe,"font-weight":Ut,"font-family":Ht,color:ae}),e.$$.dirty[0]&1342177280|e.$$.dirty[1]&12&&t(9,D={padding:qt,"font-size":we(pt),"line-height":Gt,"letter-spacing":L}),e.$$.dirty[0]&1073741824|e.$$.dirty[1]&12&&t(8,te={"font-size":we(pt),"line-height":Gt,"letter-spacing":L}),e.$$.dirty[0]&67108869&&le.json&&at&&(me&&(wt.unregisterFocusable(me),t(26,me=void 0)),le.id&&!le.fakeElement&&(t(26,me=le.id),wt.registerFocusable(me,{focus(){at&&at.focus()}})))},[le,Ke,at,$t,s,tt,Ze,ar,te,D,V,N,R,v,w,h,y,m,_,f,u,c,a,l,Ge,fe,me,Mt,qt,Pe,pt,Ut,Ht,Gt,L,ae,ve,i,o,n,F,H,he,_e,We,qe,Ae,G,ne,Ve,yt,Re,mt]}class Wg extends Or{constructor(r){super(),zr(this,r,Hg,Bg,mr,{componentContext:0,layoutParams:1},null,[-1,-1])}}const Vo={video__video:"divkit-b382f","video__aspect-wrapper":"divkit-04542",video_absolute:"divkit-2205d"};function Ug(e,r){return Array.isArray(e)&&e.length?e.filter(t=>(t==null?void 0:t.type)==="video_source"&&typeof t.url=="string"&&typeof t.mime_type=="string").map(t=>{const n={src:t.url};return t.mime_type&&(n.type=t.mime_type),n}):r}function Gg(e){return e==="fill"?"cover":e==="no_scale"?"none":"contain"}function mu(e,r,t){const n=e.slice();return n[52]=r[t],n}function bu(e,r,t){const n=e.slice();return n[52]=r[t],n}function Yg(e){let r,t;return r=new li({props:{componentContext:e[0]}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function Jg(e){let r,t;return r=new mn({props:{cls:gt("video",Vo,e[12]),customActions:"video",componentContext:e[0],layoutParams:e[1],heightByAspect:e[10]!=="0",$$slots:{default:[Xg]},$$scope:{ctx:e}}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&4096&&(o.cls=gt("video",Vo,n[12])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&1024&&(o.heightByAspect=n[10]!=="0"),i[0]&4088|i[1]&67108864&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function qg(e){let r,t,n,i,o,s=nr(e[4]),l=[];for(let a=0;a<s.length;a+=1)l[a]=wu(mu(e,s,a));return{c(){r=Le("video");for(let a=0;a<l.length;a+=1)l[a].c();p(r,"class",Vo.video__video),p(r,"style",t=Ct(e[11])),r.playsInline=!0,r.loop=e[5],r.autoplay=e[6],r.muted=e[7],p(r,"poster",e[9]),p(r,"preload",n=e[8]?"metadata":"auto")},m(a,c){ie(a,r,c);for(let u=0;u<l.length;u+=1)l[u]&&l[u].m(r,null);e[46](r),i||(o=[He(r,"timeupdate",e[23]),He(r,"ended",e[24]),He(r,"playing",e[25]),He(r,"pause",e[26]),He(r,"waiting",e[27]),He(r,"error",e[28])],i=!0)},p(a,c){if(c[0]&268435472){s=nr(a[4]);let u;for(u=0;u<s.length;u+=1){const f=mu(a,s,u);l[u]?l[u].p(f,c):(l[u]=wu(f),l[u].c(),l[u].m(r,null))}for(;u<l.length;u+=1)l[u].d(1);l.length=s.length}c[0]&2048&&t!==(t=Ct(a[11]))&&p(r,"style",t),c[0]&32&&(r.loop=a[5]),c[0]&64&&(r.autoplay=a[6]),c[0]&128&&(r.muted=a[7]),c[0]&512&&p(r,"poster",a[9]),c[0]&256&&n!==(n=a[8]?"metadata":"auto")&&p(r,"preload",n)},d(a){a&&re(r),ln(l,a),e[46](null),i=!1,Hr(o)}}}function Kg(e){let r,t,n,i,o=`${e[10]}%`,s,l,a=nr(e[4]),c=[];for(let u=0;u<a.length;u+=1)c[u]=ku(bu(e,a,u));return{c(){r=Le("div"),t=Le("video");for(let u=0;u<c.length;u+=1)c[u].c();p(t,"class",Vo.video__video),p(t,"style",n=Ct(e[11])),t.playsInline=!0,t.loop=e[5],t.autoplay=e[6],t.muted=e[7],p(t,"poster",e[9]),p(t,"preload",i=e[8]?"metadata":"auto"),p(r,"class",Vo["video__aspect-wrapper"]),O(r,"padding-bottom",o)},m(u,f){ie(u,r,f),At(r,t);for(let _=0;_<c.length;_+=1)c[_]&&c[_].m(t,null);e[45](t),s||(l=[He(t,"timeupdate",e[23]),He(t,"ended",e[24]),He(t,"playing",e[25]),He(t,"pause",e[26]),He(t,"waiting",e[27]),He(t,"error",e[28])],s=!0)},p(u,f){if(f[0]&268435472){a=nr(u[4]);let _;for(_=0;_<a.length;_+=1){const m=bu(u,a,_);c[_]?c[_].p(m,f):(c[_]=ku(m),c[_].c(),c[_].m(t,null))}for(;_<c.length;_+=1)c[_].d(1);c.length=a.length}f[0]&2048&&n!==(n=Ct(u[11]))&&p(t,"style",n),f[0]&32&&(t.loop=u[5]),f[0]&64&&(t.autoplay=u[6]),f[0]&128&&(t.muted=u[7]),f[0]&512&&p(t,"poster",u[9]),f[0]&256&&i!==(i=u[8]?"metadata":"auto")&&p(t,"preload",i),f[0]&1024&&o!==(o=`${u[10]}%`)&&O(r,"padding-bottom",o)},d(u){u&&re(r),ln(c,u),e[45](null),s=!1,Hr(l)}}}function yu(e){let r,t,n,i,o;return{c(){r=Le("source"),Dn(r.src,t=e[52].src)||p(r,"src",t),p(r,"type",n=e[52].type)},m(s,l){ie(s,r,l),i||(o=He(r,"error",e[28]),i=!0)},p(s,l){l[0]&16&&!Dn(r.src,t=s[52].src)&&p(r,"src",t),l[0]&16&&n!==(n=s[52].type)&&p(r,"type",n)},d(s){s&&re(r),i=!1,o()}}}function wu(e){let r=e[52],t,n=yu(e);return{c(){n.c(),t=Zt()},m(i,o){n.m(i,o),ie(i,t,o)},p(i,o){o[0]&16&&mr(r,r=i[52])?(n.d(1),n=yu(i),n.c(),n.m(t.parentNode,t)):n.p(i,o)},d(i){i&&re(t),n.d(i)}}}function vu(e){let r,t,n,i,o;return{c(){r=Le("source"),Dn(r.src,t=e[52].src)||p(r,"src",t),p(r,"type",n=e[52].type)},m(s,l){ie(s,r,l),i||(o=He(r,"error",e[28]),i=!0)},p(s,l){l[0]&16&&!Dn(r.src,t=s[52].src)&&p(r,"src",t),l[0]&16&&n!==(n=s[52].type)&&p(r,"type",n)},d(s){s&&re(r),i=!1,o()}}}function ku(e){let r=e[52],t,n=vu(e);return{c(){n.c(),t=Zt()},m(i,o){n.m(i,o),ie(i,t,o)},p(i,o){o[0]&16&&mr(r,r=i[52])?(n.d(1),n=vu(i),n.c(),n.m(t.parentNode,t)):n.p(i,o)},d(i){i&&re(t),n.d(i)}}}function Xg(e){let r;function t(o,s){return o[10]!=="0"?Kg:qg}let n=t(e),i=n(e);return{c(){i.c(),r=Zt()},m(o,s){i.m(o,s),ie(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&&re(r),i.d(o)}}}function Zg(e){let r,t,n,i;const o=[Jg,Yg],s=[];function l(a,c){return a[2]?-1:0}return~(r=l(e))&&(t=s[r]=o[r](e)),{c(){t&&t.c(),n=Zt()},m(a,c){~r&&s[r].m(a,c),ie(a,n,c),i=!0},p(a,c){let u=r;r=l(a),r===u?~r&&s[r].p(a,c):(t&&(tr(),$(s[u],1,1,()=>{s[u]=null}),rr()),~r?(t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(B(t),i=!0)},o(a){$(t),i=!1},d(a){a&&re(n),~r&&s[r].d(a)}}}function Qg(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R=C,N=()=>(R(),R=M(l,L=>t(35,v=L)),l),V,D=C,te=()=>(D(),D=M(y,L=>t(36,V=L)),y),F,Y=C,X=()=>(Y(),Y=M(m,L=>t(37,F=L)),m),H,W=C,U=()=>(W(),W=M(_,L=>t(38,H=L)),_),he,Ie=C,Te=()=>(Ie(),Ie=M(f,L=>t(39,he=L)),f),_e,be=C,_t=()=>(be(),be=M(u,L=>t(40,_e=L)),u),We,Oe=C,Fe=()=>(Oe(),Oe=M(c,L=>t(41,We=L)),c),qe,Qe=C,Z=()=>(Qe(),Qe=M(a,L=>t(42,qe=L)),a),Ae,ge=C,et=()=>(ge(),ge=M(s,L=>t(43,Ae=L)),s),G,Ee=C,Ue=()=>(Ee(),Ee=M(o,L=>t(44,G=L)),o);e.$$.on_destroy.push(()=>R()),e.$$.on_destroy.push(()=>D()),e.$$.on_destroy.push(()=>Y()),e.$$.on_destroy.push(()=>W()),e.$$.on_destroy.push(()=>Ie()),e.$$.on_destroy.push(()=>be()),e.$$.on_destroy.push(()=>Oe()),e.$$.on_destroy.push(()=>Qe()),e.$$.on_destroy.push(()=>ge()),e.$$.on_destroy.push(()=>Ee());let{componentContext:ne}=r,{layoutParams:it=void 0}=r;const je=Wr(Xr);let Ve,yt=!1,Vt=!1,ee,tt=[],lt=!1,dt=!1,Ge=!1,E=!1,$e,le="fit",Ke="0",wt=!1,fe;function me(L){if(Vt){Vt=!1;return}ee&&t(3,ee.currentTime=Number(L)/1e3,ee)}function at(){ee==null||ee.pause()}function Ze(){const L=ee==null?void 0:ee.play();L&&L.catch(ae=>{ne.logError(Q(new Error("Video playing error"),{level:"error",additional:{originalText:String(ae)}}))})}function $t(){ee&&(Vt=!0,i.setValue(Math.floor(ee.currentTime*1e3)))}function Mt(){const L=ne.getJsonWithVars(ne.json.end_actions);ne.execAnyActions(L)}function qt(){const L=ne.getJsonWithVars(ne.json.resume_actions);ne.execAnyActions(L)}function Pe(){const L=ne.getJsonWithVars(ne.json.pause_actions);ne.execAnyActions(L)}function pt(){const L=ne.getJsonWithVars(ne.json.buffering_actions);ne.execAnyActions(L)}function Ut(){const L=ne.getJsonWithVars(ne.json.fatal_actions);ne.execAnyActions(L)}on(()=>{Ve&&(je.unregisterInstance(Ve),t(29,Ve=void 0)),fe&&(fe(),t(32,fe=void 0))});function Ht(L){Tr[L?"unshift":"push"](()=>{ee=L,t(3,ee)})}function Gt(L){Tr[L?"unshift":"push"](()=>{ee=L,t(3,ee)})}return e.$$set=L=>{"componentContext"in L&&t(0,ne=L.componentContext),"layoutParams"in L&&t(1,it=L.layoutParams)},e.$$.update=()=>{if(e.$$.dirty[0]&1&&ne.json&&(t(5,lt=!1),t(6,dt=!1),t(7,Ge=!1),t(8,E=!1),t(9,$e=void 0),t(30,le="fit"),t(31,wt=!1)),e.$$.dirty[0]&1&&t(34,n=ne.json.elapsed_time_variable),e.$$.dirty[0]&1|e.$$.dirty[1]&8&&t(33,i=n&&ne.getVariable(n,"integer")||ci("temp","integer",0)),e.$$.dirty[1]&6&&i&&(fe&&fe(),t(32,fe=i.subscribe(me))),e.$$.dirty[0]&1&&Ue(t(22,o=ne.getDerivedFromVars(ne.json.video_sources))),e.$$.dirty[0]&1&&et(t(21,s=ne.getDerivedFromVars(ne.json.repeatable))),e.$$.dirty[0]&1&&N(t(20,l=ne.getDerivedFromVars(ne.json.autostart))),e.$$.dirty[0]&1&&Z(t(19,a=ne.getDerivedFromVars(ne.json.muted))),e.$$.dirty[0]&1&&Fe(t(18,c=ne.getDerivedFromVars(ne.json.preload_required))),e.$$.dirty[0]&1&&_t(t(17,u=ne.getDerivedFromVars(ne.json.preview))),e.$$.dirty[0]&1&&Te(t(16,f=ne.getDerivedFromVars(ne.json.scale))),e.$$.dirty[0]&1&&U(t(15,_=ne.getDerivedFromVars(ne.json.aspect))),e.$$.dirty[0]&1&&X(t(14,m=ne.getDerivedFromVars(ne.json.width))),e.$$.dirty[0]&1&&te(t(13,y=ne.getDerivedFromVars(ne.json.height))),e.$$.dirty[0]&17|e.$$.dirty[1]&8192&&(t(4,tt=Ug(G,tt)),tt.length?t(2,yt=!1):(t(2,yt=!0),ne.logError(Q(new Error('Missing "video_sources" in "video"'))))),e.$$.dirty[0]&32|e.$$.dirty[1]&4096&&t(5,lt=Zn(Ae,lt)),e.$$.dirty[0]&64|e.$$.dirty[1]&16&&t(6,dt=Zn(v,dt)),e.$$.dirty[0]&128|e.$$.dirty[1]&2048&&t(7,Ge=Zn(qe,Ge)),e.$$.dirty[0]&256|e.$$.dirty[1]&1024&&t(8,E=Zn(We,E)),e.$$.dirty[0]&512|e.$$.dirty[1]&512&&t(9,$e=typeof _e=="string"?Ja(_e):$e),e.$$.dirty[0]&1073741824|e.$$.dirty[1]&256&&t(30,le=Gg(he)||le),e.$$.dirty[1]&224){const L=H==null?void 0:H.ratio;L&&In(L)?(t(10,Ke=(100/Number(L)).toFixed(2)),t(31,wt=!0)):(t(10,Ke="0"),t(31,wt=(!F||F.type==="match_parent")&&(V==null?void 0:V.type)==="match_parent"))}e.$$.dirty[0]&536870917&&ne.json&&(Ve&&(je.unregisterInstance(Ve),t(29,Ve=void 0)),ne.id&&!yt&&!ne.fakeElement&&(t(29,Ve=ne.id),je.registerInstance(Ve,{pause:at,start:Ze}))),e.$$.dirty[0]&9|e.$$.dirty[1]&16&&ne.json&&v&&ee&&Ze(),e.$$.dirty[1]&1&&t(12,h={absolute:wt}),e.$$.dirty[0]&1073741824&&t(11,w={"object-fit":le})},[ne,it,yt,ee,tt,lt,dt,Ge,E,$e,Ke,w,h,y,m,_,f,u,c,a,l,s,o,$t,Mt,qt,Pe,pt,Ut,Ve,le,wt,fe,i,n,v,V,F,H,he,_e,We,qe,Ae,G,Ht,Gt]}class xg extends Or{constructor(r){super(),zr(this,r,Qg,Zg,mr,{componentContext:0,layoutParams:1},null,[-1,-1])}}const qi={switch:"divkit-03a3a",switch__tumbler:"divkit-adc72",switch__tumbler_checked:"divkit-385c4",switch_disabled:"divkit-3c049",switch__thumb:"divkit-ed159",switch__input:"divkit-f630c"};function bl(e){return e===!0||e===1}function $g(e){let r,t;return r=new li({props:{componentContext:e[0]}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i&1&&(o.componentContext=n[0]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function ep(e){let r,t;return r=new mn({props:{cls:gt("switch",qi,e[9]),style:e[8],customDescription:!0,customActions:"switch",hasInnerFocusable:!0,componentContext:e[0],layoutParams:e[1],$$slots:{default:[tp,({focusHandler:n,blurHandler:i,hasCustomFocus:o})=>({26:n,27:i,28:o}),({focusHandler:n,blurHandler:i,hasCustomFocus:o})=>(n?67108864:0)|(i?134217728:0)|(o?268435456:0)]},$$scope:{ctx:e}}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i&512&&(o.cls=gt("switch",qi,n[9])),i&256&&(o.style=n[8]),i&1&&(o.componentContext=n[0]),i&2&&(o.layoutParams=n[1]),i&1006633052&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function tp(e){let r,t,n,i,o,s,l,a,c;return{c(){r=Le("div"),t=Le("div"),i=pr(),o=Le("input"),p(t,"class",qi.switch__thumb),p(r,"class",n=gt("switch__tumbler",qi,{checked:e[3]})),p(o,"type","checkbox"),p(o,"class",s=gt("switch__input",qi,{"has-custom-focus":e[28]})),p(o,"autocomplete","off"),p(o,"aria-label",e[6]),o.disabled=l=!e[4],o.checked=e[3]},m(u,f){ie(u,r,f),At(r,t),ie(u,i,f),ie(u,o,f),e[23](o),a||(c=[He(o,"input",e[13]),He(o,"focus",function(){vr(e[26])&&e[26].apply(this,arguments)}),He(o,"blur",function(){vr(e[27])&&e[27].apply(this,arguments)})],a=!0)},p(u,f){e=u,f&8&&n!==(n=gt("switch__tumbler",qi,{checked:e[3]}))&&p(r,"class",n),f&268435456&&s!==(s=gt("switch__input",qi,{"has-custom-focus":e[28]}))&&p(o,"class",s),f&64&&p(o,"aria-label",e[6]),f&16&&l!==(l=!e[4])&&(o.disabled=l),f&8&&(o.checked=e[3])},d(u){u&&(re(r),re(i),re(o)),e[23](null),a=!1,Hr(c)}}}function rp(e){let r,t,n,i;const o=[ep,$g],s=[];function l(a,c){return a[5]?-1:0}return~(r=l(e))&&(t=s[r]=o[r](e)),{c(){t&&t.c(),n=Zt()},m(a,c){~r&&s[r].m(a,c),ie(a,n,c),i=!0},p(a,[c]){let u=r;r=l(a),r===u?~r&&s[r].p(a,c):(t&&(tr(),$(s[u],1,1,()=>{s[u]=null}),rr()),~r?(t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(B(t),i=!0)},o(a){$(t),i=!1},d(a){a&&re(n),~r&&s[r].d(a)}}}function np(e,r,t){let n,i,o,s,l,a,c,u,f,_=C,m=()=>(_(),_=M(s,Fe=>t(19,f=Fe)),s),y,h=C,w=()=>(h(),h=M(a,Fe=>t(20,y=Fe)),a),v,R=C,N=()=>(R(),R=M(l,Fe=>t(21,v=Fe)),l),V,D=C,te=()=>(D(),D=M(o,Fe=>t(22,V=Fe)),o);e.$$.on_destroy.push(()=>_()),e.$$.on_destroy.push(()=>h()),e.$$.on_destroy.push(()=>R()),e.$$.on_destroy.push(()=>D());let{componentContext:F}=r,{layoutParams:Y=void 0}=r;const X=Wr(Xr);let H,W,U=!1,he=!1,Ie="",Te=!0,_e="#129386",be="#1293864c";function _t(){t(4,Te=!0),t(15,_e="#129386"),t(16,be="#1293864c")}function We(Fe){t(3,U=Fe.target.checked),o.setValue(U)}on(()=>{H&&(X.unregisterFocusable(H),t(14,H=void 0))});function Oe(Fe){Tr[Fe?"unshift":"push"](()=>{W=Fe,t(2,W)})}return e.$$set=Fe=>{"componentContext"in Fe&&t(0,F=Fe.componentContext),"layoutParams"in Fe&&t(1,Y=Fe.layoutParams)},e.$$.update=()=>{if(e.$$.dirty&1&&t(18,n=F.origJson),e.$$.dirty&262144&&n&&_t(),e.$$.dirty&1&&t(17,i=F.json.is_on_variable),e.$$.dirty&131073&&te(t(7,o=i&&F.getVariable(i,"boolean")||ci("temp","boolean",!1))),e.$$.dirty&1&&m(t(12,s=F.getDerivedFromVars(F.json.accessibility))),e.$$.dirty&1&&N(t(11,l=F.getDerivedFromVars(F.json.is_enabled))),e.$$.dirty&1&&w(t(10,a=F.getDerivedFromVars(F.json.on_color))),e.$$.dirty&131073&&(i?t(5,he=!1):(t(5,he=!0),F.logError(Q(new Error('Missing "is_on_variable" in "switch"'))))),e.$$.dirty&4194312&&bl(U)!==bl(V)&&t(3,U=bl(V)),e.$$.dirty&2097168&&t(4,Te=Zn(v,Te)),e.$$.dirty&1081344&&(t(15,_e=Cr(y,1,_e)),typeof y=="string")){const Fe=bi(y);Fe&&(Fe.a*=.3,t(16,be=Gs(Fe)))}e.$$.dirty&524289&&(f!=null&&f.description?t(6,Ie=f.description):F.logError(Q(new Error('Missing accessibility "description" for switch'),{level:"warn"}))),e.$$.dirty&16&&t(9,c={disabled:!Te}),e.$$.dirty&98304&&t(8,u={"--divkit-switch-on-color":_e,"--divkit-switch-on-sub-color":be}),e.$$.dirty&16389&&W&&F.json&&(H&&(X.unregisterFocusable(H),t(14,H=void 0)),F.id&&!F.fakeElement&&(t(14,H=F.id),X.registerFocusable(H,{focus(){W&&W.focus()}})))},[F,Y,W,U,Te,he,Ie,o,u,c,a,l,s,We,H,_e,be,i,n,f,y,v,V,Oe]}class ip extends Or{constructor(r){super(),zr(this,r,np,rp,mr,{componentContext:0,layoutParams:1})}}function Au(e,r,t){const n=e.slice();return n[11]=r[t],n}function op(e){let r,t;return r=new li({props:{componentContext:e[0]}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i&1&&(o.componentContext=n[0]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function sp(e){let r,t;return r=new mn({props:{componentContext:e[0],layoutParams:e[1],$$slots:{default:[lp]},$$scope:{ctx:e}}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i&1&&(o.componentContext=n[0]),i&2&&(o.layoutParams=n[1]),i&16893&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function ju(e){let r,t=[e[8]],n={};for(let i=0;i<t.length;i+=1)n=Bn(n,t[i]);return{c(){r=Le("template"),Kn(r,n)},m(i,o){ie(i,r,o),r.content.innerHTML=e[7]},p(i,o){o&128&&(r.content.innerHTML=i[7]),Kn(r,n=io(t,[o&256&&i[8]]))},d(i){i&&re(r)}}}function Cu(e){let r=e[5],t,n,i=Su(e);return{c(){i.c(),t=Zt()},m(o,s){i.m(o,s),ie(o,t,s),n=!0},p(o,s){s&32&&mr(r,r=o[5])?(tr(),$(i,1,1,C),rr(),i=Su(o),i.c(),B(i,1),i.m(t.parentNode,t)):i.p(o,s)},i(o){n||(B(i),n=!0)},o(o){$(i),n=!1},d(o){o&&re(t),i.d(o)}}}function Eu(e){let r,t;return r=new $n({props:{componentContext:e[11]}}),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i&8&&(o.componentContext=n[11]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function Su(e){let r,t,n=nr(e[3]),i=[];for(let s=0;s<n.length;s+=1)i[s]=Eu(Au(e,n,s));const o=s=>$(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();r=Zt()},m(s,l){for(let a=0;a<i.length;a+=1)i[a]&&i[a].m(s,l);ie(s,r,l),t=!0},p(s,l){if(l&8){n=nr(s[3]);let a;for(a=0;a<n.length;a+=1){const c=Au(s,n,a);i[a]?(i[a].p(c,l),B(i[a],1)):(i[a]=Eu(c),i[a].c(),B(i[a],1),i[a].m(r.parentNode,r))}for(tr(),a=n.length;a<i.length;a+=1)o(a);rr()}},i(s){if(!t){for(let l=0;l<n.length;l+=1)B(i[l]);t=!0}},o(s){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(s){s&&re(r),ln(i,s)}}}function yl(e){let r,t,n,i=e[7]&&ju(e),o=!e[4]&&e[5]&&Cu(e),s=[e[0].json.custom_props||{}],l={};for(let a=0;a<s.length;a+=1)l=Bn(l,s[a]);return{c(){r=Le(e[2].element),i&&i.c(),t=pr(),o&&o.c(),ql(e[2].element)(r,l)},m(a,c){ie(a,r,c),i&&i.m(r,null),At(r,t),o&&o.m(r,null),e[9](r),n=!0},p(a,c){a[7]?i?i.p(a,c):(i=ju(a),i.c(),i.m(r,t)):i&&(i.d(1),i=null),!a[4]&&a[5]?o?(o.p(a,c),c&48&&B(o,1)):(o=Cu(a),o.c(),B(o,1),o.m(r,null)):o&&(tr(),$(o,1,1,()=>{o=null}),rr()),ql(a[2].element)(r,l=io(s,[c&1&&(a[0].json.custom_props||{})]))},i(a){n||(B(o),n=!0)},o(a){$(o),n=!1},d(a){a&&re(r),i&&i.d(),o&&o.d(),e[9](null)}}}function lp(e){let r=e[2].element,t,n=e[2].element&&yl(e);return{c(){n&&n.c(),t=Zt()},m(i,o){n&&n.m(i,o),ie(i,t,o)},p(i,o){i[2].element?r?mr(r,i[2].element)?(n.d(1),n=yl(i),r=i[2].element,n.c(),n.m(t.parentNode,t)):n.p(i,o):(n=yl(i),r=i[2].element,n.c(),n.m(t.parentNode,t)):r&&(n.d(1),n=null,r=i[2].element)},i:C,o(i){$(n,i)},d(i){i&&re(t),n&&n.d(i)}}}function ap(e){let r,t,n,i;const o=[sp,op],s=[];function l(a,c){return a[2]?0:-1}return~(r=l(e))&&(t=s[r]=o[r](e)),{c(){t&&t.c(),n=Zt()},m(a,c){~r&&s[r].m(a,c),ie(a,n,c),i=!0},p(a,[c]){let u=r;r=l(a),r===u?~r&&s[r].p(a,c):(t&&(tr(),$(s[u],1,1,()=>{s[u]=null}),rr()),~r?(t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(B(t),i=!0)},o(a){$(t),i=!1},d(a){a&&re(n),~r&&s[r].d(a)}}}function cp(e,r,t){let n,{componentContext:i}=r,{layoutParams:o=void 0}=r;const s=Wr(Xr);let l,a=null,c="",u={},f=[],_=!1;Xn(()=>{if(l&&"divKitApiCallback"in l&&typeof l.divKitApiCallback=="function"){const y=s.getExtensionContext(i);l.divKitApiCallback(y)}}),on(()=>{f.forEach(y=>{y.destroy()})});function m(y){Tr[y?"unshift":"push"](()=>{l=y,t(6,l)})}return e.$$set=y=>{"componentContext"in y&&t(0,i=y.componentContext),"layoutParams"in y&&t(1,o=y.layoutParams)},e.$$.update=()=>{var y;if(e.$$.dirty&5)if(typeof i.json.custom_type=="string"&&i.json.custom_type&&((y=s.customComponents)!=null&&y.has(i.json.custom_type))){if(t(2,a=s.customComponents.get(i.json.custom_type)),typeof a.template=="function"){const h=s.getExtensionContext(i),w=new Map;for(const[v,R]of h.variables)w.set(v,R.getValue());t(7,c=a.template({props:i.json.custom_props,variables:w}))}else a.template&&typeof a.template=="string"?t(7,c=a.template):t(7,c="");t(8,u={shadowrootmode:a.shadowRootMode||"open"})}else t(2,a=null),t(7,c=";"),i.logError(Q(new Error('Unknown or incorrect "custom_type" prop for div "custom"')));e.$$.dirty&1&&t(5,n=i.json.items),e.$$.dirty&33&&(n!==void 0&&!Array.isArray(n)?(t(4,_=!0),i.logError(Q(new Error('Incorrect "items" prop for div "custom"')))):t(4,_=!1)),e.$$.dirty&57&&(f.forEach(h=>{h.destroy()}),t(3,f=(!_&&n||[]).map((h,w)=>i.produceChildContext(h,{path:w}))))},[i,o,a,f,_,n,l,c,u,m]}class up extends Or{constructor(r){super(),zr(this,r,cp,ap,mr,{componentContext:0,layoutParams:1})}}const Vu={text:d_,container:O_,separator:H_,image:Ka,gif:Ka,grid:rh,gallery:fh,tabs:Ah,state:Wh,pager:Qh,indicator:tg,slider:yg,input:zg,select:Wg,video:xg,switch:ip,custom:up};function Iu(e){let r,t,n;var i=e[2];function o(s,l){return{props:{componentContext:s[0],layoutParams:s[1]}}}return i&&(r=Ql(i,o(e))),{c(){r&&Bt(r.$$.fragment),t=Zt()},m(s,l){r&&Pt(r,s,l),ie(s,t,l),n=!0},p(s,l){if(l&4&&i!==(i=s[2])){if(r){tr();const a=r;$(a.$$.fragment,1,0,()=>{Nt(a,1)}),rr()}i?(r=Ql(i,o(s)),Bt(r.$$.fragment),B(r.$$.fragment,1),Pt(r,t.parentNode,t)):r=null}else if(i){const a={};l&1&&(a.componentContext=s[0]),l&2&&(a.layoutParams=s[1]),r.$set(a)}},i(s){n||(r&&B(r.$$.fragment,s),n=!0)},o(s){r&&$(r.$$.fragment,s),n=!1},d(s){s&&re(t),r&&Nt(r,s)}}}function fp(e){let r,t,n=e[2]&&Iu(e);return{c(){n&&n.c(),r=Zt()},m(i,o){n&&n.m(i,o),ie(i,r,o),t=!0},p(i,[o]){i[2]?n?(n.p(i,o),o&4&&B(n,1)):(n=Iu(i),n.c(),B(n,1),n.m(r.parentNode,r)):n&&(tr(),$(n,1,1,()=>{n=null}),rr())},i(i){t||(B(n),t=!0)},o(i){$(n),t=!1},d(i){i&&re(r),n&&n.d(i)}}}function dp(e,r,t){let{componentContext:n}=r,{layoutParams:i=void 0}=r;const o=Wr(Xr);let s;return e.$$set=l=>{"componentContext"in l&&t(0,n=l.componentContext),"layoutParams"in l&&t(1,i=l.layoutParams)},e.$$.update=()=>{if(e.$$.dirty&5){const l=n.json;if(t(2,s=(l==null?void 0:l.type)&&Vu[l.type]||void 0),!s){let a;l!=null&&l.type&&o.hasTemplate(l.type)?a="Recursive template":a="Unknown component",n.logError(Q(new Error(a),{additional:{component:(l==null?void 0:l.type)||"<missing>"}}))}}},[n,i,s]}class $n extends Or{constructor(r){super(),zr(this,r,dp,fp,mr,{componentContext:0,layoutParams:1})}}const _p={"root-svg-filters":"divkit-44365"};function Tu(e,r,t){const n=e.slice();n[1]=r[t];const i=n[1].split(":");return n[2]=i[0],n[3]=i[1],n}function Du(e){let r,t,n=nr([...Object.keys(e[0])]),i=[];for(let o=0;o<n.length;o+=1)i[o]=Fu(Tu(e,n,o));return{c(){r=nn("svg"),t=nn("defs");for(let o=0;o<i.length;o+=1)i[o].c();p(r,"class",_p["root-svg-filters"]),p(r,"aria-hidden","true")},m(o,s){ie(o,r,s),At(r,t);for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(t,null)},p(o,s){if(s&1){n=nr([...Object.keys(o[0])]);let l;for(l=0;l<n.length;l+=1){const a=Tu(o,n,l);i[l]?i[l].p(a,s):(i[l]=Fu(a),i[l].c(),i[l].m(t,null))}for(;l<i.length;l+=1)i[l].d(1);i.length=n.length}},d(o){o&&re(r),ln(i,o)}}}function hp(e){let r,t;return{c(){r=nn("feBlend"),p(r,"in2","SourceGraphic"),p(r,"mode",t=e[3])},m(n,i){ie(n,r,i)},p(n,i){i&1&&t!==(t=n[3])&&p(r,"mode",t)},d(n){n&&re(r)}}}function gp(e){let r;return{c(){r=nn("feComposite"),p(r,"in2","SourceGraphic"),p(r,"operator","arithmetic"),p(r,"k1","1"),p(r,"k2","0"),p(r,"k3","0"),p(r,"k4","0")},m(t,n){ie(t,r,n)},p:C,d(t){t&&re(r)}}}function pp(e){let r,t;return{c(){r=nn("feComposite"),p(r,"in2","SourceGraphic"),p(r,"operator",t=e[3].split("_")[1])},m(n,i){ie(n,r,i)},p(n,i){i&1&&t!==(t=n[3].split("_")[1])&&p(r,"operator",t)},d(n){n&&re(r)}}}function Fu(e){let r,t,n,i;function o(a,c){return a[3]==="source_in"||a[3]==="source_atop"?pp:a[3]==="multiply"?gp:hp}let s=o(e),l=s(e);return{c(){r=nn("filter"),t=nn("feFlood"),l.c(),p(t,"flood-color",n=e[2]),p(r,"id",i=e[0][e[1]])},m(a,c){ie(a,r,c),At(r,t),l.m(r,null)},p(a,c){c&1&&n!==(n=a[2])&&p(t,"flood-color",n),s===(s=o(a))&&l?l.p(a,c):(l.d(1),l=s(a),l&&(l.c(),l.m(r,null))),c&1&&i!==(i=a[0][a[1]])&&p(r,"id",i)},d(a){a&&re(r),l.d()}}}function mp(e){let r=Object.keys(e[0]).length,t,n=r&&Du(e);return{c(){n&&n.c(),t=Zt()},m(i,o){n&&n.m(i,o),ie(i,t,o)},p(i,[o]){o&1&&(r=Object.keys(i[0]).length),r?n?n.p(i,o):(n=Du(i),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:C,o:C,d(i){i&&re(t),n&&n.d(i)}}}function bp(e,r,t){let{svgFiltersMap:n}=r;return e.$$set=i=>{"svgFiltersMap"in i&&t(0,n=i.svgFiltersMap)},[n]}class yp extends Or{constructor(r){super(),zr(this,r,bp,mp,mr,{svgFiltersMap:0})}}function wp(e,r,t,n){const i=t[e.type];if(!i)return n(Q(new Error("No such template"),{additional:{template:e.type}})),{json:e,templateContext:r};let o;const s={};for(o in r)r.hasOwnProperty(o)&&(s[o]=r[o]);for(o in e)o==="type"||o==="__proto__"||e.hasOwnProperty(o)&&(s[o]=e[o]);function l(c,u){const f=Object.keys(u).filter(y=>y!=="__proto__"),_=f.filter(y=>y.charAt(0)!=="$"),m=f.filter(y=>y.charAt(0)==="$");return _.forEach(y=>{const h=u[y];typeof h=="object"&&h!==null?(c[y]=Array.isArray(h)?[]:{},l(c[y],h)):c[y]=h}),m.forEach(y=>{const h=u[y],w=s[h];if(w!==void 0){const v=y.substring(1);c[v]=w}}),c}const a=l({},i);for(o in e)o==="type"||o==="__proto__"||e.hasOwnProperty(o)&&(a[o]=e[o]);return{json:a,templateContext:s}}const vp=2147483647,kp=-2147483648,Ap=Number.MAX_VALUE,jp=Number.MIN_VALUE,pe="string",ce="integer",Be="number",Mr="boolean",Kr="color",Pn="url",fr="datetime",Kt="dict",Xt="array";function Nn(e,r){var t;switch((t=r[e.type])==null||t.call(r,e),e.type){case"TemplateLiteral":e.expressions.forEach(n=>{Nn(n,r)});break;case"BinaryExpression":case"LogicalExpression":Nn(e.left,r),Nn(e.right,r);break;case"UnaryExpression":Nn(e.argument,r);break;case"ConditionalExpression":Nn(e.test,r),Nn(e.consequent,r),Nn(e.alternate,r);break;case"TryExpression":Nn(e.test,r),Nn(e.alternate,r);break;case"CallExpression":e.arguments.forEach(n=>{Nn(n,r)});break;case"MethodExpression":Nn(e.object,r),e.arguments.forEach(n=>{Nn(n,r)});break}}function os(e){return e.type==="url"||e.type==="color"?{type:"string",value:e.value}:e}function Mu(e){return e.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function Ki(e){if(e.type==="string")return e.value;if(e.type==="integer")return String(e.value);if(e.type==="number"){let r=String(e.value);return r.includes(".")||(r.includes("e")?r=r.replace("e",".0e"):r+=".0"),r=r.replace(/e\+?/i,"E"),r}else{if(e.type==="boolean")return e.value?"true":"false";if(e.type==="datetime")return Mu(e.value);if(e.type==="color")return Zi(ss(e.value));if(e.type==="url")return e.value;if(e.type==="dict")return"<dict>";if(e.type==="array")return"<array>"}throw new Error(`Unexpected type ${e.type}`)}function Gr(e){let r=Ki(e);return e.type==="string"&&(r="'"+r.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),r}function Tn(e){return e==="datetime"?"DateTime":e.charAt(0).toUpperCase()+e.substring(1)}function Xi(e,r){return Qr(r)}function bn(e,r){if(r<So||r>Eo)throw new Error("Integer overflow.")}function Pu(e){const r=new Set;return Nn(e,{Variable(t){r.add(t.id.name)}}),[...r]}function Yr(e,r){throw new Error(`Failed to evaluate [${e}]. ${r}`)}function ss(e){const r=bi(e);if(r)return r;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function Zi(e){return`#${[e.a,e.r,e.g,e.b].map(r=>{if(r<0||r>255)throw new Error("Value out of range 0..1.");return oa(Math.round(r).toString(16),2)}).join("").toUpperCase()}`}function co(e){return Zi(ss(e))}function wl(e){return{type:Be,value:Number(e.value)}}const Cp={string:"string",number:"number",integer:"number",boolean:"boolean",color:"string",url:"string",array:"array",dict:"object"};function Nu(e,r,t){const n=Cp[t];let i=typeof r;if(n==="array"&&!Array.isArray(r)||n!=="array"&&i!==n||i==="object"&&r===null)throw i==="object"&&(Array.isArray(r)?i="array":r===null?i="null":i="dict"),new Error(`Incorrect value type: expected ${Tn(t)}, got ${Tn(i)}.`);if(n==="number"&&t==="integer"){bn(e,r);try{r=Qr(r)}catch{throw new Error("Cannot convert value to integer.")}}return n==="string"&&t==="color"&&(r=co(r)),{type:t,value:r}}const Io=new Map,vl=new Map,ls=new Map,kl=new Map;function S(e,r,t){const n={args:r,cb:t},i=Io.get(e)||[];Io.has(e)||Io.set(e,i),i.push(n);const o=e+":"+r.map(s=>typeof s=="object"?s.type:s).join("#");vl.set(o,n)}function Lr(e,r,t){const n={args:r,cb:t},i=ls.get(e)||[];ls.has(e)||ls.set(e,i),i.push(n);const o=e+":"+r.map(s=>typeof s=="object"?s.type:s).join("#");kl.set(o,n)}function Ep(e,r){const t=e.args.length;let n=e.args.length,i=0;const o=e.args[e.args.length-1];if(typeof o=="object"&&o.isVararg&&(n=1/0),r.length<t)return{type:"few",expected:t,found:r.length};if(r.length>n)return{type:"many",expected:n,found:r.length};for(let s=0;s<r.length;++s){let l=s>=e.args.length?e.args[e.args.length-1]:e.args[s];if(typeof l!="object"&&(l={type:l}),l.type===Be&&r[s].type===ce){++i;continue}if(l.type!==r[s].type)return{type:"mismatch",expected:l.type,found:r[s].type}}return{type:"match",conversions:i}}function Al(e,r,t){const n=e.get(r);if(!n)return{type:"missing"};let i=null,o=null;for(let s=0;s<n.length;++s){const l=Ep(n[s],t);if(l.type==="match"){(!o||o.conversions>l.conversions)&&(o={func:n[s],conversions:l.conversions});continue}i||(i=l)}if(!o){if(i)return i;throw new Error("Missing function")}return o}function zu(e,r){return r.map((t,n)=>{let i=n>=e.args.length?e.args[e.args.length-1]:e.args[n];return typeof i!="object"&&(i={type:i}),i.type===Be&&t.type===ce?wl(t):t})}function Ou(e,r){return e+":"+r.args.map(t=>typeof t=="string"?t:t.type).join("#")}function yn(e,r){return r.type===Xt||r.type===Kt?{type:pe,value:JSON.stringify(r.value)}:{type:pe,value:Ki(r)}}function Ru(e,r){const t=Number(r.value);if(Number.isNaN(t)||!Number.isFinite(t))throw new Error("Unable to convert value to Number.");if(r.value==="")throw new Error("Unable to convert value to Number.");return{type:Be,value:t}}function Sp(e,r){if(r.value>Eo||r.value<So)throw new Error("Unable to convert value to Integer.");const t=r.value-r.value%1;return{type:ce,value:Qr(t)}}function Vp(e,r){let t;try{t=Qr(r.value)}catch{throw new Error("Unable to convert value to Integer.")}return{type:ce,value:t}}function Ip(e,r){return{type:ce,value:Qr(r.value?1:0)}}function Tp(e,r){const t=Number(r.value);if(t!==1&&t!==0)throw new Error("Unable to convert value to Boolean.");return{type:Mr,value:t}}function Dp(e,r){if(r.value!=="true"&&r.value!=="false")throw new Error("Unable to convert value to Boolean.");return{type:Mr,value:r.value==="true"?1:0}}function Fp(e,r){return{type:Kr,value:co(r.value)}}function Mp(e,r){return{type:Pn,value:r.value}}function Pp(e,r){try{return{type:pe,value:encodeURIComponent(r.value)}}catch{throw new Error("Unable to encodeUri string.")}}function Np(e,r){try{return{type:pe,value:decodeURIComponent(r.value)}}catch{throw new Error("Unable to decodeUri string.")}}function jl(e,r,t,n){const i=e.variables.get(r.value);let o;return i&&i.getType()===n?o=i.getValue():o=t.value,n==="color"&&(o=co(o)),{type:n,value:o}}function as(e,r,t){return jl(e,r,t,t.type)}function Lu(e,r,t){return jl(e,r,t,"color")}function Bu(e,r,t){return jl(e,r,t,"url")}function zp(){S("toString",[ce],yn),S("toString",[Be],yn),S("toString",[Mr],yn),S("toString",[Kr],yn),S("toString",[Pn],yn),S("toString",[pe],yn),S("toString",[Xt],yn),S("toString",[Kt],yn),S("toNumber",[ce],Ru),S("toNumber",[pe],Ru),S("toInteger",[Be],Sp),S("toInteger",[pe],Vp),S("toInteger",[Mr],Ip),S("toBoolean",[ce],Tp),S("toBoolean",[pe],Dp),S("toColor",[pe],Fp),S("toUrl",[pe],Mp),S("encodeUri",[pe],Pp),S("decodeUri",[pe],Np),S("getIntegerValue",[pe,ce],as),S("getNumberValue",[pe,Be],as),S("getBooleanValue",[pe,Mr],as),S("getStringValue",[pe,pe],as),S("getColorValue",[pe,Kr],Lu),S("getColorValue",[pe,pe],Lu),S("getUrlValue",[pe,Pn],Bu),S("getUrlValue",[pe,pe],Bu),Lr("toString",[ce],yn),Lr("toString",[Be],yn),Lr("toString",[Mr],yn),Lr("toString",[Kr],yn),Lr("toString",[Pn],yn),Lr("toString",[pe],yn),Lr("toString",[Xt],yn),Lr("toString",[Kt],yn)}function wn(e,r){return!e||!r?e:e.padStart(r,"0")}const Cl={G(e,r){let t;return e<4?t="short":e===5?t="narrow":t="long",r({era:t},"era")},d(e,r){return wn(r({day:"numeric"},"day"),e>1?e:0)},D(e,r){return wn(r({},"dayofyear"),e>1?e:0)},F(e,r){return wn(r({},"dayofweekinmonth"),e>1?e:0)},M(e,r){let t;return e===1?t="numeric":e===2?t="2-digit":e===3?t="short":e===5?t="narrow":t="long",r({month:t,day:"numeric"},"month")},y(e,r){return wn(r({year:e===2?"2-digit":"numeric"},"year"),e>2?e:void 0)},Y(e,r){return wn(r({year:e===2?"2-digit":"numeric"},"weekyear"),e>2?e:void 0)},u(e,r){return wn(r({year:"numeric"},"extendedyear"),e>1?e:void 0)},E(e,r){let t;return e<=3?t="short":e===5?t="narrow":t="long",r({weekday:t},"weekday")},e(e,r){return e>2?Cl.E(e,r):wn(r({},"weekdaynumeric"),e>1?e:void 0)},w(e,r){return wn(r({},"week"),e>1?e:void 0)},W(e,r){return wn(r({},"weekofmonth"),e>1?e:void 0)},H(e,r){const t=r({hour:"numeric",hour12:!1,hourCycle:"h23"},"hour");if(!t)return;const n=String(Number(t)%24);return wn(n,e>1?e:void 0)},h(e,r){return wn(r({hour:"numeric",hour12:!0,hourCycle:"h12"},"hour"),e>1?e:void 0)},K(e,r){const t=r({hour:"numeric",hour12:!0,hourCycle:"h11"},"hour");if(!t)return;const n=String(Number(t)%12);return wn(n,e>1?e:void 0)},k(e,r){return wn(r({hour:"numeric",hour12:!1,hourCycle:"h24"},"hour"),e>2?e:void 0)},a(e,r){return r({hour:"numeric",hour12:!0,hourCycle:"h11",dayPeriod:void 0},"dayPeriod")},m(e,r){return wn(r({minute:"numeric"},"minute"),e>1?e:void 0)},s(e,r){return wn(r({second:"numeric"},"second"),e>1?e:void 0)},S(e,r){const t=r({fractionalSecondDigits:Math.min(3,e)},"fractionalSecond");return t&&e>3?t.padEnd(e,"0"):t},z(e,r){return r({timeZoneName:e===4?"long":"short"},"timeZoneName")},Z(e,r){const t=-Number(r({},"timezoneoffset")),n=Math.abs(t/60),i=Math.floor(n)*100+(n-Math.floor(n))*60;return(t>=0?"+":"-")+wn(String(i),4)}},Op=/(\w)\1*|''|'(''|[^'])+('|$)|./g,Rp=/^'([^]*?)'?$/,Lp=/''/g,Bp=/[a-zA-Z]/,El=1e3*60*60*24;function Hp(e){const r=e.match(Rp);return r?r[1].replace(Lp,"'"):e}function Sl(e,r,t){const n=e[r?"getUTCDay":"getDay"](),i=n<t?t-n-7:t-n;return new Date(e.getTime()+El*i)}function Hu(e,r,t){const n=new Date(e);return n[r?"setUTCDate":"setDate"](1),n[r?"setUTCMonth":"setMonth"](0),Sl(n,r,t)}function Wu(e,r){return Math.round((e.getTime()-r.getTime())/El)}function Uu(e,r,t){let n=0;const i=Hu(e,r||!1,t),o=new Date(e);o[r?"setUTCFullYear":"setFullYear"](e[r?"getUTCFullYear":"getFullYear"]()+1);const s=Hu(o,r||!1,t),l=e.getTime()<i.getTime(),a=e.getTime()>=s.getTime();let c=e[r?"getUTCFullYear":"getFullYear"]();if(l){--c,i[r?"setUTCFullYear":"setFullYear"](i[r?"getUTCFullYear":"getFullYear"]()-1);const u=Wu(Sl(e,r,t),i);n=Math.round(u/7)+1}else if(a)++c,n=1;else{const u=Wu(Sl(e,r,t),i);n=Math.round(u/7)+1}return{week:n,year:c}}function Wp(e,r,{locale:t,isUTC:n,weekStartDay:i=0}={}){const o=(s,l)=>{if(l==="week"){const{week:u}=Uu(e,n||!1,i);return String(u)}if(l==="weekofmonth"){const u=e[n?"getUTCDay":"getDay"](),f=new Date(e);f[n?"setUTCDate":"setDate"](1);const _=f[n?"getUTCDay":"getDay"](),m=e[n?"getUTCDate":"getDate"]();return String(Math.ceil(m/7)+(u<_?1:0))}if(l==="dayofweekinmonth"){const u=e[n?"getUTCDate":"getDate"]();return String(Math.ceil(u/7))}if(l==="weekdaynumeric"){let u=e[n?"getUTCDay":"getDay"]();return u<i&&(u+=7),String(u-i+1)}if(l==="dayofyear"){const u=new Date(e);u[n?"setUTCMonth":"setMonth"](0),u[n?"setUTCDate":"setDate"](1),u[n?"setUTCHours":"setHours"](1),u[n?"setUTCMinutes":"setMinutes"](1),u[n?"setUTCSeconds":"setSeconds"](1);const f=Math.ceil((e.getTime()-u.getTime())/El);return String(f)}if(l==="weekyear"){let{year:u}=Uu(e,n||!1,i);return u<1&&(u=1-u),s.year==="2-digit"?String(u%100):String(u)}if(l==="extendedyear"){const u=e[n?"getUTCFullYear":"getFullYear"]();return s.year==="2-digit"?String(u%100):String(u)}if(l==="timezoneoffset")return n?"0":String(e.getTimezoneOffset());n&&(s.timeZone="UTC");const c=new Intl.DateTimeFormat(t,s).formatToParts(e);for(let u=0;u<c.length;++u)if(c[u].type===l)return c[u].value};return(r.match(Op)||[]).map(s=>{if(s==="''")return"'";const l=s[0];if(l==="'")return Hp(s);if(Cl[l])return Cl[l](s.length,o);if(l.match(Bp))throw new Error(`Format string contains an unescaped latin alphabet character "${l}"`);return s}).join("")}function Up(e){const r=new Date(e);return r.setUTCMonth(r.getUTCMonth()+1),r.setUTCDate(0),r.getUTCDate()}function Gp(e,r){return{type:fr,value:new Date(Number(r.value)*1e3)}}function Yp(e,r){const t=new Date(Number(r.value)*1e3),n=t.getTimezoneOffset();return t.setMinutes(t.getMinutes()-n),{type:fr,value:t}}function Jp(){return{type:fr,value:new Date}}function qp(e,r,t){return{type:fr,value:new Date(r.value.getTime()+Number(t.value))}}function Kp(e,r,t){const n=new Date(r.value);return n.setUTCFullYear(Number(t.value)),{type:fr,value:n}}function Xp(e,r,t){const n=Number(t.value);if(n<1||n>12)throw new Error(`Expecting month in [1..12], instead got ${n}.`);const i=new Date(r.value);return i.setUTCMonth(n-1),{type:fr,value:i}}function Zp(e,r,t){const n=new Date(r.value),i=Number(t.value);if(i<=0&&i!==-1||i>Up(n))throw new Error(`Unable to set day ${i} for date ${Ki(r)}.`);return n.setUTCDate(i===-1?0:i),{type:fr,value:n}}function Qp(e,r,t){const n=Number(t.value);if(n<0||n>23)throw new Error(`Expecting hours in [0..23], instead got ${n}.`);const i=new Date(r.value);return i.setUTCHours(n),{type:fr,value:i}}function xp(e,r,t){const n=Number(t.value);if(n<0||n>59)throw new Error(`Expecting minutes in [0..59], instead got ${n}.`);const i=new Date(r.value);return i.setUTCMinutes(n),{type:fr,value:i}}function $p(e,r,t){const n=Number(t.value);if(n<0||n>59)throw new Error(`Expecting seconds in [0..59], instead got ${n}.`);const i=new Date(r.value);return i.setUTCSeconds(n),{type:fr,value:i}}function e0(e,r,t){const n=Number(t.value);if(n<0||n>999)throw new Error(`Expecting millis in [0..999], instead got ${n}.`);const i=new Date(r.value);return i.setUTCMilliseconds(n),{type:fr,value:i}}const Ii=e=>(r,t)=>{let i=new Date(t.value.getTime())[e]();return e==="getUTCMonth"?++i:e==="getUTCDay"&&i===0&&(i=7),{type:ce,value:Qr(i)}};function Gu(e){return(r,t,n,i)=>({type:pe,value:Wp(t.value,n.value,{locale:i==null?void 0:i.value,isUTC:e,weekStartDay:r.weekStartDay})})}const t0=Ii("getUTCFullYear"),r0=Ii("getUTCMonth"),n0=Ii("getUTCDate"),i0=Ii("getUTCDay"),o0=Ii("getUTCHours"),s0=Ii("getUTCMinutes"),l0=Ii("getUTCSeconds"),a0=Ii("getUTCMilliseconds"),Yu=Gu(!1),Ju=Gu(!0);function c0(){S("parseUnixTime",[ce],Gp),S("parseUnixTimeAsLocal",[ce],Yp),S("nowLocal",[],Jp),S("addMillis",[fr,ce],qp),S("setYear",[fr,ce],Kp),S("setMonth",[fr,ce],Xp),S("setDay",[fr,ce],Zp),S("setHours",[fr,ce],Qp),S("setMinutes",[fr,ce],xp),S("setSeconds",[fr,ce],$p),S("setMillis",[fr,ce],e0),S("getYear",[fr],t0),S("getMonth",[fr],r0),S("getDay",[fr],n0),S("getDayOfWeek",[fr],i0),S("getHours",[fr],o0),S("getMinutes",[fr],s0),S("getSeconds",[fr],l0),S("getMillis",[fr],a0),S("formatDateAsLocal",[fr,pe],Yu),S("formatDateAsUTC",[fr,pe],Ju),S("formatDateAsLocalWithLocale",[fr,pe,pe],Yu),S("formatDateAsUTCWithLocale",[fr,pe,pe],Ju)}function u0(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function f0(e,r){return{type:ce,value:Qr(r.value.length)}}function d0(e,r,t){return{type:Mr,value:r.value.includes(t.value)?1:0}}function _0(e,r,t,n){if(n.value<t.value)throw new Error("Indexes should be in ascending order.");if(t.value<0||t.value>r.value.length||n.value<0||n.value>r.value.length)throw new Error("Indexes are out of bounds.");return{type:pe,value:r.value.substring(Number(t.value),Number(n.value))}}function h0(e,r,t,n){let i;return t.value?i=r.value.replace(new RegExp(u0(t.value),"g"),n.value):i=r.value,{type:pe,value:i}}function g0(e,r,t){return{type:ce,value:Qr(r.value.indexOf(t.value))}}function p0(e,r,t){return{type:ce,value:Qr(r.value.lastIndexOf(t.value))}}function m0(e,r){return{type:pe,value:r.value.trim()}}function b0(e,r){return{type:pe,value:r.value.replace(/^\s+/,"")}}function y0(e,r){return{type:pe,value:r.value.replace(/\s+$/,"")}}function w0(e,r){return{type:pe,value:r.value.toUpperCase()}}function v0(e,r){return{type:pe,value:r.value.toLowerCase()}}function qu(e,r,t,n){if(!n.value.length)return e.warnings.push(Q(new Error("String for padding is empty."),{level:"warn"})),"";let i="";const o=r.type===pe?r.value:Ki(r);for(;i.length+o.length<t.value;)i+=n.value;return i.length>0&&i.length+o.length>t.value&&(i=i.substring(0,Number(t.value)-Number(o.length))),i}function Ku(e,r,t,n){const i=qu(e,r,t,n);return{type:pe,value:i+Ki(r)}}function Xu(e,r,t,n){const i=qu(e,r,t,n);return{type:pe,value:Ki(r)+i}}function k0(e,r,t){let n;try{n=new RegExp(t.value)}catch{throw new Error("Invalid regular expression.")}return{type:Mr,value:n.test(r.value)?1:0}}function A0(e,r){return{type:pe,value:r.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}function j0(){S("len",[pe],f0),S("contains",[pe,pe],d0),S("substring",[pe,ce,ce],_0),S("replaceAll",[pe,pe,pe],h0),S("index",[pe,pe],g0),S("lastIndex",[pe,pe],p0),S("trim",[pe],m0),S("trimLeft",[pe],b0),S("trimRight",[pe],y0),S("toUpperCase",[pe],w0),S("toLowerCase",[pe],v0),S("padStart",[pe,ce,pe],Ku),S("padStart",[ce,ce,pe],Ku),S("padEnd",[pe,ce,pe],Xu),S("padEnd",[ce,ce,pe],Xu),S("testRegex",[pe,pe],k0),S("encodeRegex",[pe],A0)}function C0(e,r,t){if(t.value===Ji)throw new Error("Division by zero is not supported.");let n=r.value/t.value;return n=Xi(e,n),bn(e,n),{type:ce,value:n}}function E0(e,r,t){if(t.value===0)throw new Error("Division by zero is not supported.");const n=r.value/t.value;return{type:Be,value:n}}function S0(e,r,t){if(t.value===Ji)throw new Error("Division by zero is not supported.");let n=r.value%t.value;return n=Xi(e,n),bn(e,n),{type:ce,value:n}}function V0(e,r,t){if(t.value===0)throw new Error("Division by zero is not supported.");const n=r.value%t.value;return{type:Be,value:n}}function I0(e,...r){let t=r.length?r[0].value:Ji;for(let n=1;n<r.length;++n)t*=r[n].value,t=Xi(e,t),bn(e,t);return{type:ce,value:t}}function T0(e,...r){let t=r.length?r[0].value:0;for(let n=1;n<r.length;++n)t*=r[n].value;return{type:Be,value:t}}function D0(e,...r){let t=r.length?r[0].value:Ji;for(let n=1;n<r.length;++n)t-=r[n].value,t=Xi(e,t),bn(e,t);return{type:ce,value:t}}function F0(e,...r){let t=r.length?r[0].value:0;for(let n=1;n<r.length;++n)t-=r[n].value;return{type:Be,value:t}}function M0(e,...r){let t=Ji;for(let n=0;n<r.length;++n)t+=r[n].value,t=Xi(e,t),bn(e,t);return{type:ce,value:t}}function P0(e,...r){let t=0;for(let n=0;n<r.length;++n)t+=r[n].value;return{type:Be,value:t}}function N0(e,r){const t=Uc(r.value);return bn(e,t),{type:r.type,value:t}}function z0(e,r){const t=Math.abs(r.value);return{type:Be,value:t}}function O0(e,...r){if(!r.length)throw new Error("Function requires non empty argument list.");let t=r[0].value;for(let n=1;n<r.length;++n)r[n].value>t&&(t=r[n].value);return{type:ce,value:t}}function R0(e,...r){if(!r.length)throw new Error("Function requires non empty argument list.");return{type:Be,value:Math.max(...r.map(t=>t.value))}}function L0(e,...r){if(!r.length)throw new Error("Function requires non empty argument list.");let t=r[0].value;for(let n=1;n<r.length;++n)r[n].value<t&&(t=r[n].value);return{type:ce,value:t}}function B0(e,...r){if(!r.length)throw new Error("Function requires non empty argument list.");return{type:Be,value:Math.min(...r.map(t=>t.value))}}function H0(){return{type:Be,value:Ap}}function W0(){return{type:Be,value:jp}}function U0(e){return bn(e,Eo),{type:ce,value:Eo}}function G0(e){return bn(e,So),{type:ce,value:So}}function Y0(e,r){const t=Math.sign(r.value);return{type:Be,value:t*Math.round(Math.abs(r.value))}}function J0(e,r){return{type:Be,value:Math.floor(r.value)}}function q0(e,r){return{type:Be,value:Math.ceil(r.value)}}function K0(e,r){return{type:ce,value:Gc(r.value)}}function X0(e,r){return{type:Be,value:Math.sign(r.value)}}function Z0(e,r,t){let n;if(t.value===Ji)n=r.value;else if(r.value===Ji)n=Qr(0);else{const i=Gc(t.value);n=Uc(r.value)*i}return bn(e,n),{type:ce,value:n}}function Q0(e,r,t){let n=Math.sign(t.value);n===0&&(n=Object.is(n,0)?1:-1);const i=Math.abs(r.value)*n;return{type:Be,value:i}}function x0(){S("div",[ce,ce],C0),S("div",[Be,Be],E0),S("mod",[ce,ce],S0),S("mod",[Be,Be],V0),S("mul",[{type:ce,isVararg:!0}],I0),S("mul",[{type:Be,isVararg:!0}],T0),S("sub",[{type:ce,isVararg:!0}],D0),S("sub",[{type:Be,isVararg:!0}],F0),S("sum",[{type:ce,isVararg:!0}],M0),S("sum",[{type:Be,isVararg:!0}],P0),S("abs",[ce],N0),S("abs",[Be],z0),S("max",[{type:ce,isVararg:!0}],O0),S("max",[{type:Be,isVararg:!0}],R0),S("min",[{type:ce,isVararg:!0}],L0),S("min",[{type:Be,isVararg:!0}],B0),S("maxNumber",[],H0),S("minNumber",[],W0),S("maxInteger",[],U0),S("minInteger",[],G0),S("round",[Be],Y0),S("floor",[Be],J0),S("ceil",[Be],q0),S("signum",[ce],K0),S("signum",[Be],X0),S("copySign",[ce,ce],Z0),S("copySign",[Be,Be],Q0)}function cs(e){return(r,t)=>{const n=ss(t.value);return{type:Be,value:n[e]/255}}}function us(e){return(r,t,n)=>{const i=ss(t.value);return i[e]=n.value*255,{type:Kr,value:Zi(i)}}}const Zu=cs("a"),Qu=cs("r"),xu=cs("g"),$u=cs("b"),ef=us("a"),tf=us("r"),rf=us("g"),nf=us("b");function $0(e,r,t,n){const i={a:255,r:r.value*255,g:t.value*255,b:n.value*255};return{type:Kr,value:Zi(i)}}function em(e,r,t,n,i){const o={a:r.value*255,r:t.value*255,g:n.value*255,b:i.value*255};return{type:Kr,value:Zi(o)}}function tm(){S("getColorAlpha",[pe],Zu),S("getColorAlpha",[Kr],Zu),S("getColorRed",[pe],Qu),S("getColorRed",[Kr],Qu),S("getColorGreen",[pe],xu),S("getColorGreen",[Kr],xu),S("getColorBlue",[pe],$u),S("getColorBlue",[Kr],$u),S("setColorAlpha",[pe,Be],ef),S("setColorAlpha",[Kr,Be],ef),S("setColorRed",[pe,Be],tf),S("setColorRed",[Kr,Be],tf),S("setColorGreen",[pe,Be],rf),S("setColorGreen",[Kr,Be],rf),S("setColorBlue",[pe,Be],nf),S("setColorBlue",[Kr,Be],nf),S("rgb",[Be,Be,Be],$0),S("argb",[Be,Be,Be,Be],em)}function Ti(e,r,t,n){if(r.value<0)throw new Error("Expecting non-negative number of milliseconds.");let i=Qr(r.value)/Qr(t);return bn(e,i),n&&(i=Qr(i)%Qr(n)),{type:ce,value:i}}const of=1e3,rm=60,sf=1e3*60,nm=60,lf=1e3*60*60,im=24,om=1e3*60*60*24,sm=1e3*60*60*24*7;function lm(e,r){return Ti(e,r,of,rm)}function am(e,r){return Ti(e,r,of)}function cm(e,r){return Ti(e,r,sf,nm)}function um(e,r){return Ti(e,r,sf)}function fm(e,r){return Ti(e,r,lf,im)}function dm(e,r){return Ti(e,r,lf)}function _m(e,r){return Ti(e,r,om)}function hm(e,r){return Ti(e,r,sm)}function gm(){S("getIntervalSeconds",[ce],lm),S("getIntervalTotalSeconds",[ce],am),S("getIntervalMinutes",[ce],cm),S("getIntervalTotalMinutes",[ce],um),S("getIntervalHours",[ce],fm),S("getIntervalTotalHours",[ce],dm),S("getIntervalTotalDays",[ce],_m),S("getIntervalTotalWeeks",[ce],hm)}function pm(e,r){let t=e;for(let n=0;n<r.length;++n){if(!t)throw new Error(`Missing property "${r[n]}" in the dict.`);const i=t[r[n]];if(i===void 0)throw new Error(`Missing property "${r[n]}" in the dict.`);t=i}return t}function Di(e){return(r,t,...n)=>{if(n.length===0)throw new Error("Non empty argument list is required.");const i=pm(t.value,n.map(o=>o.value));return Nu(r,i,e)}}function uo(e,r){return(t,n,i,...o)=>{try{return e(t,i,...o)}catch{let l=n.value;return r==="color"&&(l=co(l)),{type:r,value:l}}}}const fs=Di(pe),ds=Di(Be),_s=Di(ce),hs=Di(Mr),gs=Di(Kr),ps=Di(Pn),Vl=Di(Xt),Il=Di(Kt),af=uo(fs,pe),cf=uo(ds,Be),uf=uo(_s,ce),ff=uo(hs,Mr),ms=uo(gs,Kr),bs=uo(ps,Pn);function mm(e,r,...t){try{return Vl(e,r,...t)}catch{return{type:Xt,value:[]}}}function bm(e,r,...t){try{return Il(e,r,...t)}catch{return{type:Kt,value:{}}}}function ym(e,r,t){return{type:Mr,value:t.value in r.value?1:0}}function wm(e,r){return{type:Mr,value:Object.keys(r.value).length?0:1}}function vm(){const e={type:pe,isVararg:!0};S("getDictString",[Kt,e],fs),S("getStringFromDict",[Kt,e],fs),S("getDictNumber",[Kt,e],ds),S("getNumberFromDict",[Kt,e],ds),S("getDictInteger",[Kt,e],_s),S("getIntegerFromDict",[Kt,e],_s),S("getDictBoolean",[Kt,e],hs),S("getBooleanFromDict",[Kt,e],hs),S("getDictColor",[Kt,e],gs),S("getColorFromDict",[Kt,e],gs),S("getDictUrl",[Kt,e],ps),S("getUrlFromDict",[Kt,e],ps),S("getDictOptString",[pe,Kt,e],af),S("getOptStringFromDict",[pe,Kt,e],af),S("getDictOptNumber",[Be,Kt,e],cf),S("getOptNumberFromDict",[Be,Kt,e],cf),S("getDictOptInteger",[ce,Kt,e],uf),S("getOptIntegerFromDict",[ce,Kt,e],uf),S("getDictOptBoolean",[Mr,Kt,e],ff),S("getOptBooleanFromDict",[Mr,Kt,e],ff),S("getDictOptColor",[Kr,Kt,e],ms),S("getOptColorFromDict",[Kr,Kt,e],ms),S("getDictOptColor",[pe,Kt,e],ms),S("getOptColorFromDict",[pe,Kt,e],ms),S("getDictOptUrl",[pe,Kt,e],bs),S("getOptUrlFromDict",[pe,Kt,e],bs),S("getDictOptUrl",[Pn,Kt,e],bs),S("getOptUrlFromDict",[Pn,Kt,e],bs),S("getDictFromDict",[Kt,e],Il),S("getArrayFromDict",[Kt,e],Vl),S("getOptArrayFromDict",[Kt,e],mm),S("getOptDictFromDict",[Kt,e],bm),Lr("getString",[Kt,e],fs),Lr("getBoolean",[Kt,e],hs),Lr("getInteger",[Kt,e],_s),Lr("getNumber",[Kt,e],ds),Lr("getUrl",[Kt,e],ps),Lr("getColor",[Kt,e],gs),Lr("getArray",[Kt,e],Vl),Lr("getDict",[Kt,e],Il),Lr("containsKey",[Kt,pe],ym),Lr("isEmpty",[Kt],wm)}function Fi(e,r){return(t,n,i)=>{if(i.value<0||i.value>=n.value.length)throw new Error(`Requested index (${i.value}) out of bounds array size (${n.value.length}).`);let o=n.value[Number(i.value)],s=typeof o;if(e==="array"&&!Array.isArray(o)||e!=="array"&&s!==e||s==="object"&&o===null)throw s==="object"&&(Array.isArray(o)?s="Array":o===null?s="Null":s="Dict"),new Error(`Incorrect value type: expected ${Tn(r)}, got ${Tn(s)}.`);if(e==="number"&&r==="integer"){bn(t,o);try{o=Qr(o)}catch{throw new Error("Cannot convert value to integer.")}}return e==="string"&&r==="color"&&(o=co(o)),{type:r,value:o}}}function fo(e,r){return(t,n,i,o)=>{try{return e(t,n,i)}catch{let l=o.value;return r==="color"&&(l=co(l)),{type:r,value:l}}}}const ys=Fi("string","string"),ws=Fi("number","number"),vs=Fi("number","integer"),ks=Fi("boolean","boolean"),As=Fi("string","color"),js=Fi("string","url"),Tl=Fi("array","array"),Dl=Fi("object","dict"),df=fo(ys,"string"),_f=fo(ws,"number"),hf=fo(vs,"integer"),gf=fo(ks,"boolean"),Cs=fo(As,"color"),Es=fo(js,"url");function km(e,r,t){try{return Tl(e,r,t)}catch{return{type:Xt,value:[]}}}function Am(e,r,t){try{return Dl(e,r,t)}catch{return{type:Kt,value:{}}}}function jm(e,r){return{type:ce,value:Qr(r.value.length)}}function Cm(e,r){return{type:Mr,value:r.value.length===0?1:0}}function Em(){S("getArrayString",[Xt,ce],ys),S("getStringFromArray",[Xt,ce],ys),S("getArrayNumber",[Xt,ce],ws),S("getNumberFromArray",[Xt,ce],ws),S("getArrayInteger",[Xt,ce],vs),S("getIntegerFromArray",[Xt,ce],vs),S("getArrayBoolean",[Xt,ce],ks),S("getBooleanFromArray",[Xt,ce],ks),S("getArrayColor",[Xt,ce],As),S("getColorFromArray",[Xt,ce],As),S("getArrayUrl",[Xt,ce],js),S("getUrlFromArray",[Xt,ce],js),S("getArrayFromArray",[Xt,ce],Tl),S("getDictFromArray",[Xt,ce],Dl),S("getArrayOptString",[Xt,ce,pe],df),S("getOptStringFromArray",[Xt,ce,pe],df),S("getArrayOptNumber",[Xt,ce,Be],_f),S("getOptNumberFromArray",[Xt,ce,Be],_f),S("getArrayOptInteger",[Xt,ce,ce],hf),S("getOptIntegerFromArray",[Xt,ce,ce],hf),S("getArrayOptBoolean",[Xt,ce,Mr],gf),S("getOptBooleanFromArray",[Xt,ce,Mr],gf),S("getArrayOptColor",[Xt,ce,Kr],Cs),S("getOptColorFromArray",[Xt,ce,Kr],Cs),S("getArrayOptColor",[Xt,ce,pe],Cs),S("getOptColorFromArray",[Xt,ce,pe],Cs),S("getArrayOptUrl",[Xt,ce,Pn],Es),S("getOptUrlFromArray",[Xt,ce,Pn],Es),S("getArrayOptUrl",[Xt,ce,pe],Es),S("getOptUrlFromArray",[Xt,ce,pe],Es),S("getOptArrayFromArray",[Xt,ce],km),S("getOptDictFromArray",[Xt,ce],Am),S("len",[Xt],jm),Lr("getString",[Xt,ce],ys),Lr("getInteger",[Xt,ce],vs),Lr("getNumber",[Xt,ce],ws),Lr("getBoolean",[Xt,ce],ks),Lr("getUrl",[Xt,ce],js),Lr("getColor",[Xt,ce],As),Lr("getArray",[Xt,ce],Tl),Lr("getDict",[Xt,ce],Dl),Lr("isEmpty",[Xt],Cm)}function di(e){return(r,t,n)=>{if(!r.store){if(!n)throw new Error("Missing value.");return{type:e,value:n.value}}let i;e==="boolean"?i="boolean":e==="number"||e==="integer"?i="number":i="string";let o;if(r.store.get?o=r.store.get(t.value,e):r.store.getValue&&(o=r.store.getValue(t.value,i)),o===void 0){if(!n)throw new Error("Missing value.");return{type:e,value:n.value}}return Nu(r,o,e)}}function Sm(){S("getStoredIntegerValue",[pe,ce],di(ce)),S("getStoredNumberValue",[pe,Be],di(Be)),S("getStoredStringValue",[pe,pe],di(pe)),S("getStoredUrlValue",[pe,Pn],di(Pn)),S("getStoredUrlValue",[pe,pe],di(Pn)),S("getStoredColorValue",[pe,Kr],di(Kr)),S("getStoredColorValue",[pe,pe],di(Kr)),S("getStoredBooleanValue",[pe,Mr],di(Mr)),S("getStoredArrayValue",[pe],di(Xt)),S("getStoredDictValue",[pe],di(Kt))}function Vm(){return{type:Be,value:Math.PI}}function Im(e,r){return{type:Be,value:r.value/180*Math.PI}}function Tm(e,r){return{type:Be,value:r.value/Math.PI*180}}function Dm(e,r){return{type:Be,value:Math.sin(r.value)}}function Fm(e,r){return{type:Be,value:Math.cos(r.value)}}function Mm(e,r){return{type:Be,value:Math.tan(r.value)}}function Pm(e,r){return{type:Be,value:Math.atan(r.value)}}function Nm(e,r){if(r.value>1||r.value<-1)throw new Error("Arcsine is undefined for the given value.");return{type:Be,value:Math.asin(r.value)}}function zm(e,r){if(r.value>1||r.value<-1)throw new Error("Arccosine is undefined for the given value.");return{type:Be,value:Math.acos(r.value)}}function Om(){S("pi",[],Vm),S("toRadians",[Be],Im),S("toDegrees",[Be],Tm),S("sin",[Be],Dm),S("cos",[Be],Fm),S("tan",[Be],Mm),S("atan",[Be],Pm),S("asin",[Be],Nm),S("acos",[Be],zm)}function Rm(){zp(),c0(),gm(),j0(),x0(),tm(),vm(),Em(),Sm(),Om()}Rm();function Lm(e,r){return{type:pe,value:r.value}}function Bm(e,r){return{type:Be,value:r.value}}function Hm(e,r){return bn(e,r.value),{type:ce,value:r.value}}function Wm(e,r){return{type:Mr,value:r.value?1:0}}function Um(e,r){const t=os(fn(e,r.argument));switch(r.operator){case"!":if(t.type===Mr)return{type:Mr,value:t.value?0:1};Yr(`${r.operator}${Gr(t)}`,"A Boolean is expected after a unary not.");case"+":case"-":const n=r.operator==="+"?1:-1;if(t.type===ce){const i=t.value*Qr(n);return bn(e,i),{type:ce,value:i}}else{if(t.type===Be)return{type:Be,value:t.value*n};Yr(`${r.operator}${Gr(t)}`,`A Number is expected after a unary ${r.operator==="+"?"plus":"minus"}.`)}}}function Gm(e,r){const t=os(fn(e,r.test));if(t.type===Mr)return t.value?fn(e,r.consequent):fn(e,r.alternate);Yr(`${Gr(t)} ? ${Gr(fn(e,r.consequent))} : ${Gr(fn(e,r.alternate))}`,"Ternary must be called with a Boolean value as a condition.")}function Ym(e,r){try{return fn(e,r.test)}catch{return fn(e,r.alternate)}}function Jm(e,r){let t="";if(r.quasis.length===2&&r.quasis[0].value===""&&r.quasis[1].value==="")return fn(e,r.expressions[0]);for(let n=0;n<r.expressions.length;++n)t+=r.quasis[n].value,t+=Ki(fn(e,r.expressions[n]));return t+=r.quasis[r.quasis.length-1].value,{type:pe,value:t}}function qm(e,r){const t=os(fn(e,r.left));if(t.type!==Mr&&Yr(`${Gr(t)} ${r.operator} ...`,`'${r.operator}' must be called with boolean operands.`),r.operator==="||"&&t.value)return t;if(r.operator==="&&"&&!t.value)return{type:Mr,value:0};const n=os(fn(e,r.right));return n.type!==Mr&&Yr(`${Gr(t)} ${r.operator} ${Gr(n)}`,`Operator '${r.operator}' cannot be applied to different types: Boolean and ${Tn(n.type)}.`),{type:Mr,value:n.value}}function Km(e,r,t){let n;return r.type===fr&&t.type===fr?n=r.value.getTime()===t.value.getTime():n=r.value===t.value,e==="!="&&(n=!n),{type:Mr,value:n?1:0}}function Xm(e,r,t){(r.type!==Be&&r.type!==ce&&r.type!==fr||t.type!==Be&&t.type!==ce&&t.type!==fr)&&Yr(`${Gr(r)} ${e} ${Gr(t)}`,`Operator '${e}' cannot be applied to ${Tn(r.type)} type.`);let n;const i=r.type===fr?r.value.getTime():r.value,o=t.type===fr?t.value.getTime():t.value;return e===">"?n=i>o:e===">="?n=i>=o:e==="<"?n=i<o:n=i<=o,{type:Mr,value:n?1:0}}function Zm(e,r,t,n){if(t.type!==pe&&t.type!==Be&&t.type!==ce&&Yr(`${Gr(t)} ${r} ${Gr(n)}`,`Operator '${r}' cannot be applied to ${Tn(t.type)} type.`),t.type===pe)return r==="-"&&Yr(`${Gr(t)} - ${Gr(n)}`,`Operator '${r}' cannot be applied to ${Tn(t.type)} type.`),{type:pe,value:t.value+n.value};let i=r==="+"?t.value+n.value:t.value-n.value;if(t.type===ce)try{i=Xi(e,i),bn(e,i)}catch(o){Yr(`${Gr(t)} ${r} ${Gr(n)}`,o.message)}return{type:t.type,value:i}}function Qm(e,r,t,n){t.type!==ce&&t.type!==Be&&Yr(`${Gr(t)} ${r} ${Gr(n)}`,`Operator '${r}' cannot be applied to ${Tn(t.type)} type.`);let i;if(r==="*")i=t.value*n.value;else if(r==="/"||r==="%")Number(n.value)===0&&Yr(`${Gr(t)} ${r} ${Gr(n)}`,"Division by zero is not supported."),r==="/"?i=t.value/n.value:i=t.value%n.value;else throw new Error(`Unsupported operation ${r}`);if(t.type===ce)try{i=Xi(e,i),bn(e,i)}catch(o){Yr(`${Gr(t)} ${r} ${Gr(n)}`,o.message)}return{type:t.type,value:i}}function xm(e,r){const t=r.operator;let n=fn(e,r.left),i=fn(e,r.right);if((n.type==="number"&&i.type==="integer"||n.type==="integer"&&i.type==="number")&&(n.type==="integer"?n=wl(n):i.type==="integer"&&(i=wl(i))),n.type!==i.type&&Yr(`${Gr(n)} ${r.operator} ${Gr(i)}`,`Operator '${t}' cannot be applied to different types: ${Tn(n.type)} and ${Tn(i.type)}.`),t==="=="||t==="!=")return Km(t,n,i);if(t===">"||t===">="||t==="<"||t==="<=")return Xm(t,n,i);if(t==="+"||t==="-")return Zm(e,t,n,i);if(t==="/"||t==="*"||t==="%")return Qm(e,t,n,i);throw new Error(`Unsupported operation ${t}`)}function Ss(e){return e.map(Gr).join(", ")}function $m(e,r){const t=r.callee.name;let n,i=r.arguments.map(l=>fn(e,l));const o=t+":"+i.map(l=>l.type).join("#");let s;if(e.customFunctions&&(s=Al(e.customFunctions,t,i)),!s||!("func"in s))if(vl.has(o))s={func:vl.get(o),conversions:0};else{const l=Al(Io,t,i);("func"in l||!s)&&(s=l)}if(s&&(("expected"in s||"type"in s&&s.type==="missing")&&e1(t,i,s),n=s.func,s.conversions&&(i=zu(n,i))),!n)throw new Error("Function not found");try{return n.cb(e,...i)}catch(l){const a=`${t}(${Ss(i)})`;Yr(a,l.message)}}function e1(e,r,t){const n=r.map(a=>Tn(a.type)).join(", "),i=`${e}(${Ss(r)})`,o=Io.get(e)||[],s=o[0],l=o.length>1;if(t.type==="few"&&r.length===0&&l)Yr(i,"Function requires non empty argument list.");else if(s&&(t.type==="many"||t.type==="few"||t.type==="mismatch"))if(l)Yr(i,`Function has no matching overload for given argument types: ${n}.`);else if(t.type==="many"||t.type==="few")s.args.some(a=>typeof a=="object"&&a.isVararg)?Yr(i,`At least ${s.args.length} argument(s) expected.`):Yr(i,`Exactly ${s.args.length} argument(s) expected.`);else{const a=s.args.map(c=>Tn(typeof c=="string"?c:c.type)).join(", ");Yr(i,`Invalid argument type: expected ${a}, got ${n}.`)}else Yr(i,`Unknown function name: ${e}.`)}function t1(e,r){const t=r.method.name;let n,i=[r.object,...r.arguments].map(s=>fn(e,s));const o=t+":"+i.map(s=>s.type).join("#");if(kl.has(o))n=kl.get(o);else{const s=Al(ls,t,i);if("expected"in s||"type"in s&&s.type==="missing"){const l=i.slice(1).map(c=>Tn(c.type)).join(", "),a=`${t}(${Ss(i.slice(1))})`;s.type==="few"&&i.length===1?Yr(a,"Method requires non empty argument list."):s.type==="many"?Yr(a,`Method has no matching overload for given argument types: ${l}.`):s.type==="few"||s.type==="mismatch"?Yr(a,`Method has no matching overload for given argument types: ${l}.`):Yr(a,`Unknown method name: ${t}.`)}n=s.func,s.conversions&&(i=zu(n,i))}if(!n)throw new Error("Method not found");try{return n.cb(e,...i)}catch(s){const l=`${t}(${Ss(i.slice(1))})`;Yr(l,s.message)}}function r1(e,r){const t=r.id.name,n=e.variables.get(t);if(n)return _g(n);throw new Error(`Variable '${t}' is missing.`)}const pf={StringLiteral:Lm,NumberLiteral:Bm,IntegerLiteral:Hm,BooleanLiteral:Wm,UnaryExpression:Um,ConditionalExpression:Gm,TryExpression:Ym,TemplateLiteral:Jm,LogicalExpression:qm,BinaryExpression:xm,CallExpression:$m,MethodExpression:t1,Variable:r1};function fn(e,r){if(r.type in pf)return pf[r.type](e,r);throw new Error("Unsupported expression")}function Vs(e,r,t,n,i){try{const o={variables:e,customFunctions:r,warnings:[],store:t,weekStartDay:(i==null?void 0:i.weekStartDay)||0};return{result:fn(o,n),warnings:o.warnings}}catch(o){return{result:{type:"error",value:o.message},warnings:[]}}}function n1(e,r){return r&&r[3]&&r[7]?{type:"ConditionalExpression",test:e,consequent:r[3],alternate:r[7]}:e}function i1(e,r){return r&&r[3]?{type:"TryExpression",test:e,alternate:r[3]}:e}function Is(e,r){return r.length?r.reduce((t,n)=>({type:"BinaryExpression",operator:n[1],left:t,right:n[3]}),e):e}function mf(e,r){return r.length?r.reduce((t,n)=>({type:"LogicalExpression",operator:n[1],left:t,right:n[3]}),e):e}function o1(e,r){return r.length?r.reduce((t,n)=>{if(!n[5])throw new Error("Method expected after .");return{type:"MethodExpression",object:t,method:n[3],arguments:n[5][2]}},e):e}function s1(e){return e==="true"||e==="false"?{type:"BooleanLiteral",value:e==="true"}:{type:"Variable",id:{type:"Identifier",name:e}}}function bf(e){if(e.every(t=>typeof t=="string"))return{type:"StringLiteral",value:e.join("")};let r=e.reduce((t,n)=>(typeof n=="string"&&typeof t[t.length-1]=="string"?t[t.length-1]+=n:t.push(n),t),[]).reduce((t,n)=>(typeof n=="string"?t.quasis.push({type:"StringLiteral",value:n}):(t.quasis.length===t.expressions.length&&t.quasis.push({type:"StringLiteral",value:""}),t.expressions.push(n)),t),{type:"TemplateLiteral",quasis:[],expressions:[]});return r.quasis.length===r.expressions.length&&r.quasis.push({type:"StringLiteral",value:""}),r}function l1(e){try{return Qr(e)}catch{throw new Error(`Value ${e} can't be converted to Integer type.`)}}function yf(e){if(e==="'"||e==="\\")return e;throw new Error("Incorrect string escape")}function a1(e,r){function t(){this.constructor=e}t.prototype=r.prototype,e.prototype=new t}function _o(e,r,t,n){var i=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(i,_o.prototype),i.expected=r,i.found=t,i.location=n,i.name="SyntaxError",i}a1(_o,Error);function Fl(e,r,t){return t=t||" ",e.length>r?e:(r-=e.length,t+=t.repeat(r),e+t.slice(0,r))}_o.prototype.format=function(e){var r="Error: "+this.message;if(this.location){var t=null,n;for(n=0;n<e.length;n++)if(e[n].source===this.location.source){t=e[n].text.split(/\r\n|\n|\r/g);break}var i=this.location.start,o=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(i):i,s=this.location.source+":"+o.line+":"+o.column;if(t){var l=this.location.end,a=Fl("",o.line.toString().length," "),c=t[i.line-1],u=i.line===l.line?l.column:c.length+1,f=u-i.column||1;r+=`
|
|
5
|
+
*/(function(){"use strict";var Cb=Object.defineProperty;var Sb=(C,Gn,Yn)=>Gn in C?Cb(C,Gn,{enumerable:!0,configurable:!0,writable:!0,value:Yn}):C[Gn]=Yn;var ur=(C,Gn,Yn)=>Sb(C,typeof Gn!="symbol"?Gn+"":Gn,Yn);function C(){}const Gn=t=>t;function Yn(t,r){for(const e in r)t[e]=r[e];return t}function Kl(t){return t()}function Xl(){return Object.create(null)}function Yr(t){t.forEach(Kl)}function jr(t){return typeof t=="function"}function sd(t,r){return t!=t?r==r:t!==r||t&&typeof t=="object"||typeof t=="function"}let Lo;function On(t,r){return t===r?!0:(Lo||(Lo=document.createElement("a")),Lo.href=r,t===Lo.href)}function wr(t,r){return t!=t?r==r:t!==r}function ld(t){return Object.keys(t).length===0}function P(t,...r){if(t==null){for(const n of r)n(void 0);return C}const e=t.subscribe(...r);return e.unsubscribe?()=>e.unsubscribe():e}function ad(t){let r;return P(t,e=>r=e)(),r}function an(t,r,e){t.$$.on_destroy.push(P(r,e))}function Ro(t,r,e,n){if(t){const i=Zl(t,r,e,n);return t[0](i)}}function Zl(t,r,e,n){return t[1]&&n?Yn(e.ctx.slice(),t[1](n(r))):e.ctx}function Bo(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 Ho(t,r,e,n,i,o){if(i){const s=Zl(r,e,n,o);t.p(s,i)}}function Wo(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 Uo(t,r,e){return t.set(e),r}function Go(t){return t&&jr(t.destroy)?t.destroy:C}function Ql(t){const r=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return r?[parseFloat(r[1]),r[2]||"px"]:[t,"px"]}const xl=typeof window<"u";let Gs=xl?()=>window.performance.now():()=>Date.now(),Ys=xl?t=>requestAnimationFrame(t):C;const oo=new Set;function $l(t){oo.forEach(r=>{r.c(t)||(oo.delete(r),r.f())}),oo.size!==0&&Ys($l)}function Js(t){let r;return oo.size===0&&Ys($l),{promise:new Promise(e=>{oo.add(r={c:t,f:e})}),abort(){oo.delete(r)}}}const ai=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;let Yo=!1;function cd(){Yo=!0}function ud(){Yo=!1}function fd(t,r,e,n){for(;t<r;){const i=t+(r-t>>1);e(i)<=n?t=i+1:r=i}return t}function dd(t){if(t.hydrate_init)return;t.hydrate_init=!0;let r=t.childNodes;if(t.nodeName==="HEAD"){const l=[];for(let c=0;c<r.length;c++){const u=r[c];u.claim_order!==void 0&&l.push(u)}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 c=r[l].claim_order,u=(i>0&&r[e[i]].claim_order<=c?i+1:fd(1,i,h=>r[e[h]].claim_order,c))-1;n[l]=e[u]+1;const f=u+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,c)=>l.claim_order-c.claim_order);for(let l=0,c=0;l<s.length;l++){for(;c<o.length&&s[l].claim_order>=o[c].claim_order;)c++;const u=c<o.length?o[c]:null;t.insertBefore(s[l],u)}}function hd(t,r){t.appendChild(r)}function ea(t){if(!t)return document;const r=t.getRootNode?t.getRootNode():t.ownerDocument;return r&&r.host?r:t.ownerDocument}function _d(t){const r=Be("style");return r.textContent="/* empty */",gd(ea(t),r),r.sheet}function gd(t,r){return hd(t.head||t,r),r.sheet}function Ct(t,r){if(Yo){for(dd(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 pd(t,r,e){t.insertBefore(r,e||null)}function ie(t,r,e){Yo&&!e?Ct(t,r):(r.parentNode!==t||r.nextSibling!=e)&&t.insertBefore(r,e||null)}function E(t){t.parentNode&&t.parentNode.removeChild(t)}function dn(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function Be(t){return document.createElement(t)}function $r(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Jn(t){return document.createTextNode(t)}function yr(){return Jn(" ")}function Pe(){return Jn("")}function Ue(t,r,e,n){return t.addEventListener(r,e,n),()=>t.removeEventListener(r,e,n)}function m(t,r,e){e==null?t.removeAttribute(r):t.getAttribute(r)!==e&&t.setAttribute(r,e)}const md=["width","height"];function $n(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&&md.indexOf(n)===-1?t[n]=r[n]:m(t,n,r[n])}function bd(t,r){Object.keys(r).forEach(e=>{yd(t,e,r[e])})}function yd(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:m(t,r,e)}function ta(t){return/-/.test(t)?bd:$n}function De(t){return Array.from(t.childNodes)}function ra(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function na(t,r,e,n,i=!1){ra(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 ia(t,r,e,n){return na(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 Ge(t,r,e){return ia(t,r,e,Be)}function cn(t,r,e){return ia(t,r,e,$r)}function ci(t,r){return na(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},()=>Jn(r),!0)}function vr(t){return ci(t," ")}function oa(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 vd(t,r){const e=oa(t,"HTML_TAG_START",0),n=oa(t,"HTML_TAG_END",e+1);if(e===-1||n===-1)return new Jo(r);ra(t);const i=t.splice(e,n-e+1);E(i[0]),E(i[i.length-1]);const o=i.slice(1,i.length-1);if(o.length===0)return new Jo(r);for(const s of o)s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new Jo(r,o)}function Fi(t,r){r=""+r,t.data!==r&&(t.data=r)}function sa(t,r){t.value=r==null?"":r}function B(t,r,e,n){e==null?t.style.removeProperty(r):t.style.setProperty(r,e,"")}function la(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 wd(t){const r=t.querySelector(":checked");return r&&r.__value}function aa(t,r,{bubbles:e=!1,cancelable:n=!1}={}){return new CustomEvent(t,{detail:r,bubbles:e,cancelable:n})}class kd{constructor(r=!1){ur(this,"is_svg",!1);ur(this,"e");ur(this,"n");ur(this,"t");ur(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=$r(e.nodeName):this.e=Be(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)pd(this.t,this.n[e],r)}p(r){this.d(),this.h(r),this.i(this.a)}d(){this.n.forEach(E)}}class Jo extends kd{constructor(e=!1,n){super(e);ur(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)ie(this.t,this.n[n],e)}}function ca(t,r){return new t(r)}const qo=new Map;let Ko=0;function Ad(t){let r=5381,e=t.length;for(;e--;)r=(r<<5)-r^t.charCodeAt(e);return r>>>0}function Ed(t,r){const e={stylesheet:_d(r),rules:{}};return qo.set(t,e),e}function Xo(t,r,e,n,i,o,s,a=0){const l=16.666/n;let c=`{
|
|
6
|
+
`;for(let v=0;v<=1;v+=l){const w=r+(e-r)*o(v);c+=v*100+`%{${s(w,1-w)}}
|
|
7
|
+
`}const u=c+`100% {${s(e,1-e)}}
|
|
8
|
+
}`,f=`__svelte_${Ad(u)}_${a}`,h=ea(t),{stylesheet:p,rules:b}=qo.get(h)||Ed(h,t);b[f]||(b[f]=!0,p.insertRule(`@keyframes ${f} ${u}`,p.cssRules.length));const _=t.style.animation||"";return t.style.animation=`${_?`${_}, `:""}${f} ${n}ms linear ${i}ms 1 both`,Ko+=1,f}function Zo(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(", "),Ko-=i,Ko||jd())}function jd(){Ys(()=>{Ko||(qo.forEach(t=>{const{ownerNode:r}=t.stylesheet;r&&E(r)}),qo.clear())})}let Ao;function Eo(t){Ao=t}function so(){if(!Ao)throw new Error("Function called outside component initialization");return Ao}function ei(t){so().$$.on_mount.push(t)}function Qo(t){so().$$.after_update.push(t)}function un(t){so().$$.on_destroy.push(t)}function Cd(){const t=so();return(r,e,{cancelable:n=!1}={})=>{const i=t.$$.callbacks[r];if(i){const o=aa(r,e,{cancelable:n});return i.slice().forEach(s=>{s.call(t,o)}),!o.defaultPrevented}return!0}}function Ui(t,r){return so().$$.context.set(t,r),r}function Jr(t){return so().$$.context.get(t)}function Ai(t,r){const e=t.$$.callbacks[r.type];e&&e.slice().forEach(n=>n.call(this,r))}const lo=[],Pr=[];let ao=[];const ua=[],fa=Promise.resolve();let qs=!1;function da(){qs||(qs=!0,fa.then(ha))}function vn(){return da(),fa}function zn(t){ao.push(t)}const Ks=new Set;let co=0;function ha(){if(co!==0)return;const t=Ao;do{try{for(;co<lo.length;){const r=lo[co];co++,Eo(r),Sd(r.$$)}}catch(r){throw lo.length=0,co=0,r}for(Eo(null),lo.length=0,co=0;Pr.length;)Pr.pop()();for(let r=0;r<ao.length;r+=1){const e=ao[r];Ks.has(e)||(Ks.add(e),e())}ao.length=0}while(lo.length);for(;ua.length;)ua.pop()();qs=!1,Ks.clear(),Eo(t)}function Sd(t){if(t.fragment!==null){t.update(),Yr(t.before_update);const r=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,r),t.after_update.forEach(zn)}}function Vd(t){const r=[],e=[];ao.forEach(n=>t.indexOf(n)===-1?r.push(n):e.push(n)),e.forEach(n=>n()),ao=r}let jo;function Xs(){return jo||(jo=Promise.resolve(),jo.then(()=>{jo=null})),jo}function Gi(t,r,e){t.dispatchEvent(aa(`${r?"intro":"outro"}${e}`))}const xo=new Set;let ui;function ir(){ui={r:0,c:[],p:ui}}function or(){ui.r||Yr(ui.c),ui=ui.p}function U(t,r){t&&t.i&&(xo.delete(t),t.i(r))}function te(t,r,e,n){if(t&&t.o){if(xo.has(t))return;xo.add(t),ui.c.push(()=>{xo.delete(t),n&&(e&&t.d(1),n())}),t.o(r)}else n&&n()}const Zs={duration:0};function Qs(t,r,e){const n={direction:"in"};let i=r(t,e,n),o=!1,s,a,l=0;function c(){s&&Zo(t,s)}function u(){const{delay:h=0,duration:p=300,easing:b=Gn,tick:_=C,css:v}=i||Zs;v&&(s=Xo(t,0,1,p,h,b,v,l++)),_(0,1);const w=Gs()+h,L=w+p;a&&a.abort(),o=!0,zn(()=>Gi(t,!0,"start")),a=Js(N=>{if(o){if(N>=L)return _(1,0),Gi(t,!0,"end"),c(),o=!1;if(N>=w){const V=b((N-w)/p);_(V,1-V)}}return o})}let f=!1;return{start(){f||(f=!0,Zo(t),jr(i)?(i=i(n),Xs().then(u)):u())},invalidate(){f=!1},end(){o&&(c(),o=!1)}}}function Id(t,r,e){const n={direction:"out"};let i=r(t,e,n),o=!0,s;const a=ui;a.r+=1;let l;function c(){const{delay:u=0,duration:f=300,easing:h=Gn,tick:p=C,css:b}=i||Zs;b&&(s=Xo(t,1,0,f,u,h,b));const _=Gs()+u,v=_+f;zn(()=>Gi(t,!1,"start")),"inert"in t&&(l=t.inert,t.inert=!0),Js(w=>{if(o){if(w>=v)return p(0,1),Gi(t,!1,"end"),--a.r||Yr(a.c),!1;if(w>=_){const L=h((w-_)/f);p(1-L,L)}}return o})}return jr(i)?Xs().then(()=>{i=i(n),c()}):c(),{end(u){u&&"inert"in t&&(t.inert=l),u&&i.tick&&i.tick(1,0),o&&(s&&Zo(t,s),o=!1)}}}function _a(t,r,e,n){let o=r(t,e,{direction:"both"}),s=n?0:1,a=null,l=null,c=null,u;function f(){c&&Zo(t,c)}function h(b,_){const v=b.b-s;return _*=Math.abs(v),{a:s,b:b.b,d:v,duration:_,start:b.start,end:b.start+_,group:b.group}}function p(b){const{delay:_=0,duration:v=300,easing:w=Gn,tick:L=C,css:N}=o||Zs,V={start:Gs()+_,b};b||(V.group=ui,ui.r+=1),"inert"in t&&(b?u!==void 0&&(t.inert=u):(u=t.inert,t.inert=!0)),a||l?l=V:(N&&(f(),c=Xo(t,s,b,v,_,w,N)),b&&L(0,1),a=h(V,v),zn(()=>Gi(t,b,"start")),Js(F=>{if(l&&F>l.start&&(a=h(l,v),l=null,Gi(t,a.b,"start"),N&&(f(),c=Xo(t,s,a.b,a.duration,0,w,o.css))),a){if(F>=a.end)L(s=a.b,1-s),Gi(t,a.b,"end"),l||(a.b?f():--a.group.r||Yr(a.group.c)),a=null;else if(F>=a.start){const $=F-a.start;s=a.a+a.d*w($/a.duration),L(s,1-s)}}return!!(a||l)}))}return{run(b){jr(o)?Xs().then(()=>{o=o({direction:b?"in":"out"}),p(b)}):p(b)},end(){f(),a=l=null}}}function sr(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function ga(t,r){te(t,1,1,()=>{r.delete(t.key)})}function pa(t,r,e,n,i,o,s,a,l,c,u,f){let h=t.length,p=o.length,b=h;const _={};for(;b--;)_[t[b].key]=b;const v=[],w=new Map,L=new Map,N=[];for(b=p;b--;){const D=f(i,o,b),J=e(D);let Z=s.get(J);Z?N.push(()=>Z.p(D,r)):(Z=c(J,D),Z.c()),w.set(J,v[b]=Z),J in _&&L.set(J,Math.abs(b-_[J]))}const V=new Set,F=new Set;function $(D){U(D,1),D.m(a,u),s.set(D.key,D),u=D.first,p--}for(;h&&p;){const D=v[p-1],J=t[h-1],Z=D.key,W=J.key;D===J?(u=D.first,h--,p--):w.has(W)?!s.has(Z)||V.has(Z)?$(D):F.has(W)?h--:L.get(Z)>L.get(W)?(F.add(Z),$(D)):(V.add(W),h--):(l(J,s),h--)}for(;h--;){const D=t[h];w.has(D.key)||l(D,s)}for(;p;)$(v[p-1]);return Yr(N),v}function uo(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 Ut(t){t&&t.c()}function Jt(t,r){t&&t.l(r)}function zt(t,r,e){const{fragment:n,after_update:i}=t.$$;n&&n.m(r,e),zn(()=>{const o=t.$$.on_mount.map(Kl).filter(jr);t.$$.on_destroy?t.$$.on_destroy.push(...o):Yr(o),t.$$.on_mount=[]}),i.forEach(zn)}function Lt(t,r){const e=t.$$;e.fragment!==null&&(Vd(e.after_update),Yr(e.on_destroy),e.fragment&&e.fragment.d(r),e.on_destroy=e.fragment=null,e.ctx=[])}function Dd(t,r){t.$$.dirty[0]===-1&&(lo.push(t),da(),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31}function Br(t,r,e,n,i,o,s=null,a=[-1]){const l=Ao;Eo(t);const c=t.$$={fragment:null,ctx:[],props:o,update:C,not_equal:i,bound:Xl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(l?l.$$.context:[])),callbacks:Xl(),dirty:a,skip_bound:!1,root:r.target||l.$$.root};s&&s(c.root);let u=!1;if(c.ctx=e?e(t,r.props||{},(f,h,...p)=>{const b=p.length?p[0]:h;return c.ctx&&i(c.ctx[f],c.ctx[f]=b)&&(!c.skip_bound&&c.bound[f]&&c.bound[f](b),u&&Dd(t,f)),h}):[],c.update(),u=!0,Yr(c.before_update),c.fragment=n?n(c.ctx):!1,r.target){if(r.hydrate){cd();const f=De(r.target);c.fragment&&c.fragment.l(f),f.forEach(E)}else c.fragment&&c.fragment.c();r.intro&&U(t.$$.fragment),zt(t,r.target,r.anchor),ud(),ha()}Eo(l)}class Hr{constructor(){ur(this,"$$");ur(this,"$$set")}$destroy(){Lt(this,1),this.$destroy=C}$on(r,e){if(!jr(e))return C;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&&!ld(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}}const Td="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Td);const fo=[];function Fd(t,r){return{subscribe:fi(t,r).subscribe}}function fi(t,r=C){let e;const n=new Set;function i(a){if(sd(t,a)&&(t=a,e)){const l=!fo.length;for(const c of n)c[1](),fo.push(c,t);if(l){for(let c=0;c<fo.length;c+=2)fo[c][0](fo[c+1]);fo.length=0}}}function o(a){i(a(t))}function s(a,l=C){const c=[a,l];return n.add(c),n.size===1&&(e=r(i,o)||C),a(t),()=>{n.delete(c),n.size===0&&e&&(e(),e=null)}}return{set:i,update:o,subscribe:s}}function Yi(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 Fd(e,(s,a)=>{let l=!1;const c=[];let u=0,f=C;const h=()=>{if(u)return;f();const b=r(n?c[0]:c,s,a);o?s(b):f=jr(b)?b:C},p=i.map((b,_)=>P(b,v=>{c[_]=v,u&=~(1<<_),l&&h()},()=>{u|=1<<_}));return l=!0,h(),function(){Yr(p),f(),l=!1}})}const tr={root_platform_desktop:"divkit-6d515",root__clickable:"divkit-27458","root__clickable-no-transition":"divkit-3bb57",root:"divkit-82db1","root__any-actions":"divkit-3b9c1",root__selectable:"divkit-be734",root__unselectable:"divkit-9a652","root__only-desktop":"divkit-316e7","root_restrict-scroll":"divkit-0a135","root_disabled-context-menu":"divkit-f5cb3"},en=Symbol("root");function x(t,r={}){const e=t;return e.level=r.level||"error",r.additional&&(e.additional=r.additional),e}const $o={outer:"divkit-bf0ea",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_content:"divkit-05991",outer_height_content:"divkit-80cac","outer_width-constrained":"divkit-5bdb7","outer_parent-grid":"divkit-47ef2","outer_height-constrained":"divkit-351c8","outer_parent-overlap":"divkit-747b0","outer_scroll-snap_center":"divkit-c525d","outer_scroll-snap_start":"divkit-91fd4",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 Vt(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 we(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 wn(t){let r=we(t);return r==="0"&&(r+="em"),r}function ma(t,r){for(;t.length<r;)t="0"+t;return t}function Ir(t,r=1,e="transparent"){if(t=(typeof t=="string"&&t||"").toLowerCase(),t.charAt(0)!=="#")return e;const n=Ei(t);return n?(n.a*=r,xs(n)):e}function Md(t,r,e="transparent"){if(t=(typeof t=="string"&&t||"").toLowerCase(),t.charAt(0)!=="#")return e;const n=Ei(t);return n?(n.a=r,xs(n)):e}function xs(t){return t.a===255?`#${[t.r,t.g,t.b].map(r=>ma(Math.round(r).toString(16),2)).join("")}`:`rgba(${t.r},${t.g},${t.b},${(t.a/255).toFixed(2)})`}function Ei(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[c,u,f,h,p]=r,b=f.length===2?f:f+f,_=h.length===2?h:h+h,v=p.length===2?p:p+p,w=u.length===2?u:u+u;return{a:parseInt(w,16),r:parseInt(b,16),g:parseInt(_,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 $s(t){let r=String(t);return r.indexOf("&")>-1&&(r=r.replace(/&/g,"&")),r.indexOf("<")>-1&&(r=r.replace(/</g,"<")),r.indexOf(">")>-1&&(r=r.replace(/>/g,">")),r.indexOf('"')>-1&&(r=r.replace(/"/g,""")),r}const ji=Boolean;function es(t){if(t.length===1&&t[0].type==="solid")return Nd({bg:t[0]});const r=t.map(e=>{if(e.type==="solid")return Pd({bg:e});if(e.type==="gradient")return Od({bg:e});if(e.type==="image")return Rd({bg:e});if(e.type==="radial_gradient")return Ld({bg:e})}).filter(ji).reverse().reduce(function(e,n){return e.image.push(n.image),e.size.push(n.size||"auto"),e.position.push(n.pos||"50% 50%"),e},{image:[],size:[],position:[]});return{image:r.image.join(","),size:r.size.join(","),position:r.position.join(",")}}function Pd(t){const r=Ir(t.bg.color||"transparent");return{size:void 0,pos:void 0,image:`linear-gradient(to bottom,${r},${r})`}}function Nd(t){return{color:Ir(t.bg.color||"transparent"),size:"auto",position:"50% 50%"}}function Od(t){var e;if(!Array.isArray((e=t.bg)==null?void 0:e.colors))return;const r=t.bg.colors.filter(ji);if(r.length)return{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0)+"deg")+","+r.map(n=>Ir(n)).join(",")+")"}}const zd={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function ba(t){if(t&&typeof t=="object"&&"type"in t&&t.value!==void 0){if(t.type==="fixed")return wn(t.value);if(t.type==="relative")return`${Number(t.value)*100}%`}return"50%"}function Ld(t){var s;if(!Array.isArray((s=t.bg)==null?void 0:s.colors))return;const r=t.bg.colors.filter(ji);if(!r.length)return;const e=t.bg.radius;let n;e&&typeof e=="object"&&"type"in e&&e.value!==void 0&&(e.type==="fixed"?n=wn(e.value):e.type==="relative"&&(n=zd[e.value]));const i=ba(t.bg.center_x),o=ba(t.bg.center_y);return{size:void 0,pos:void 0,image:`radial-gradient(circle ${n||"farthest-corner"} at ${i} ${o},`+r.map(a=>Ir(a)).join(",")+")"}}function Rd(t){var e;const r=(e=t.bg)==null?void 0:e.image_url;if(r)return{size:ya(t.bg.scale),pos:va(t.bg),image:'url("'+$s(r)+'")'}}function ya(t){return t==="fit"?"contain":t==="stretch"?"fill":t==="no_scale"?"none":"cover"}function va(t){let r,e;return t.content_alignment_horizontal==="left"?r="0%":t.content_alignment_horizontal==="right"?r="100%":r="50%",t.content_alignment_vertical==="top"?e="0%":t.content_alignment_vertical==="bottom"?e="100%":e="50%",r+" "+e}function qr(t,r){const e=Number(t);return Number.isNaN(e)||e<0?r:e}function wa(t,r,e){return typeof r=="number"&&(t&&r>0&&r<=100||!t&&r>=0&&r<100)?r:e}function Bd(t){return t.is_enabled!==0&&t.is_enabled!==!1&&t.index!==void 0}function Hd(t,{visibilityActions:r,disappearActions:e,rootCtx:n,componentContext:i}){const o=[];r&&r.forEach(p=>{o.push({type:"visibility",index:o.length,action:p,visible:!1,count:0,finished:!1})}),e&&e.forEach(p=>{o.push({type:"disappear",index:o.length,action:p,visible:!1,count:0,finished:!1})});const s=o.map((p,b)=>{const _=p.type==="visibility";return i.getDerivedFromVars({index:b,visibility_percentage:p.action.visibility_percentage,visibility_duration:_?p.action.visibility_duration:p.action.disappear_duration,log_limit:p.action.log_limit,is_enabled:p.action.is_enabled})});let a;const l=()=>{a&&a.disconnect(),o.forEach(p=>{p.timer&&clearTimeout(p.timer)})},c=Yi(s,p=>p);let u;const f=p=>{const b=p.type==="visibility",_=i.getJsonWithVars(p.action);i.execAnyActions([_],{logType:b?"visible":"disappear",node:t,processUrls:!1})},h=c.subscribe(p=>{u=p.filter(Bd);const b={};u.forEach(w=>{b[w.index]=w}),l();const _=[...new Set(u.map(w=>{const L=o[w.index].type==="visibility";return wa(L,w.visibility_percentage,L?50:0)/100}))];if(!_.length)return;const v=w=>{w.forEach(L=>{u.forEach(N=>{const V=o[N.index],F=V.type==="visibility",$=wa(F,N.visibility_percentage,F?50:0);let D;$===0?D=L.intersectionRatio>=1e-12:D=L.intersectionRatio>=$/100,(F?!V.visible&&D:V.visible&&!D)?V.finished||(V.timer=setTimeout(()=>{++V.count;const W=N.log_limit===0?1/0:N.log_limit||1;++V.count>=W&&(V.finished=!0),f(V)},qr(N.visibility_duration,800))):(F?!D:D)&&V.timer&&clearTimeout(V.timer),V.visible=D})})};a=new IntersectionObserver(v,{threshold:_}),a.observe(t)});return{destroy(){u==null||u.forEach(p=>{const b=o[p.index];!b||b.type!=="disappear"||!b.visible||b.finished||n.registerTimeout(window.setTimeout(()=>{f(b)},p.visibility_duration))}),l(),h()}}}function ka(t,r){r&&t.push(r)}function bt(t,r,e){const n=[];ka(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}`:"");ka(n,r[s])}}return n.join(" ")}const el=Symbol("state");function di(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?"":we(e)+" "+we(n)+" "+we(i)+" "+we(o)}function ts(t){if(typeof t!="number"&&typeof t!="string")return!1;const r=Number(t);return!Number.isNaN(r)}function Vn(t){return ts(t)&&t>=0}function Co(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]&&!Vn(n[s]))return e;return di(t,r)}function Wd(t,r){return!Vn(t)||t===void 0||t>1?r:Number(t)}const Ud=Object.prototype.hasOwnProperty;function tl(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(!Ud.call(r,o)||!tl(t[o],r[o]))return!1}return!0}function Mi(t,r){return tl(t,r)?r:t}function Gd(t,r){return t==="visible"||t==="invisible"||t==="gone"?t:r}function Aa(t,r){return t==="linear"||t==="ease"||t==="ease_in_out"||t==="ease_in"||t==="ease_out"?t:r}function ho(t,r){const e=Number(t);return Number.isNaN(e)?r:e}function rl(t){const r=[];return t.name==="set"?(t.items||[]).forEach(e=>{r.push(...rl(e))}):r.push(t),r}function So(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]]&&!Vn(t[e[n]]))return r;return t}function Yd(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 Jd(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]&&!Vn(e[n]))return r;return t}function rs(t,r=0,e=10){return[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]].map(n=>we((n||r)/e*10)).join(" ")}function qd(t){var r,e,n,i,o,s;return we(((e=(r=t.offset)==null?void 0:r.x)==null?void 0:e.value)||0)+" "+we(((i=(n=t.offset)==null?void 0:n.y)==null?void 0:i.value)||0)+" "+we((o=t.blur)!=null?o:2)+" "+Ir(t.color||"#000000",(s=t.alpha)!=null?s:.19)}function Kd(t,r){var e,n,i,o,s,a;return"drop-shadow("+Ir(t.color||"#000000",(e=t.alpha)!=null?e:.19)+" "+we((((i=(n=t.offset)==null?void 0:n.x)==null?void 0:i.value)||0)*10/r)+" "+we((((s=(o=t.offset)==null?void 0:o.y)==null?void 0:s.value)||0)*10/r)+" "+we(((a=t.blur)!=null?a:2)*10/r)+")"}function In(t){return t.is_enabled!==0&&t.is_enabled!==!1}let nl;function ns(){return typeof matchMedia>"u"?!1:(nl||(nl=window.matchMedia("(prefers-reduced-motion)")),nl.matches)}const Xd=8,Zd=(t,r,e,n)=>{let i;return(e||n)&&typeof ResizeObserver<"u"&&(i=new ResizeObserver(async()=>{let o=0;const s={},a=(c,u)=>{if(c){const f=r.getVariable(c,"integer");if(f){if(u=Math.round(u),s[c]||(s[c]=new Set),!s[c].has(u))return f.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(!t)return!1;const c=t.getBoundingClientRect(),u=a(e,c.width),f=a(n,c.height);return u||f};for(;l();){if(++o>Xd){const c=new Error("Recursive layout in size_provider");c.level="warn",c.additional={widthVariableName:e,heightVariableName:n},r.logError(c);break}await vn()}}),i.observe(t)),i},il=Symbol("enabled");function ti(t,r){return t===1||t===0||t===!1||t===!0?!!t:r}const Ea={actionable__button:"divkit-ee5cc"};function Qd(){}const is=Symbol("action");function ol(t){if(t.startsWith("tel:"))return"tel";const r=/^([^/]+):\/\//.exec(t);return r&&r[1]||""}function sl(t,r){return r.has(t)}function xd(t){var u;let r,e,n,i,o;const s=t[26].default,a=Ro(s,t,t[25],null);let l=[{class:e=t[1]+" "+((u=t[0])!=null&&u.length?tr["root_disabled-context-menu"]:"")+" "+(t[11]?tr["root__any-actions"]:"")},{style:t[2]},{role:t[9]},{"aria-checked":t[12]},t[3]],c={};for(let f=0;f<l.length;f+=1)c=Yn(c,l[f]);return{c(){r=Be("span"),a&&a.c(),this.h()},l(f){r=Ge(f,"SPAN",{class:!0,style:!0,role:!0,"aria-checked":!0});var h=De(r);a&&a.l(h),h.forEach(E),this.h()},h(){$n(r,c)},m(f,h){ie(f,r,h),a&&a.m(r,null),t[38](r),n=!0,i||(o=[Go(t[4].call(null,r)),Ue(r,"click",t[33]),Ue(r,"keydown",t[13]),Ue(r,"focus",t[34]),Ue(r,"blur",t[35])],i=!0)},p(f,h){var p;a&&a.p&&(!n||h[0]&33554432)&&Ho(a,s,f,f[25],n?Bo(s,f[25],h,null):Wo(f[25]),null),$n(r,c=uo(l,[(!n||h[0]&2051&&e!==(e=f[1]+" "+((p=f[0])!=null&&p.length?tr["root_disabled-context-menu"]:"")+" "+(f[11]?tr["root__any-actions"]:"")))&&{class:e},(!n||h[0]&4)&&{style:f[2]},(!n||h[0]&512)&&{role:f[9]},(!n||h[0]&4096)&&{"aria-checked":f[12]},h[0]&8&&f[3]]))},i(f){n||(U(a,f),n=!0)},o(f){te(a,f),n=!1},d(f){f&&E(r),a&&a.d(f),t[38](null),i=!1,Yr(o)}}}function $d(t){var u;let r,e,n,i,o;const s=t[26].default,a=Ro(s,t,t[25],null);let l=[{class:e=t[1]+" "+Ea.actionable__button+" "+tr["root__any-actions"]+` ${t[5]?tr.root__clickable:tr["root__clickable-no-transition"]} ${tr.root__unselectable} `+((u=t[0])!=null&&u.length?tr["root_disabled-context-menu"]:"")},{style:t[2]},{role:t[9]},{"aria-checked":t[12]},{type:"button"},t[3]],c={};for(let f=0;f<l.length;f+=1)c=Yn(c,l[f]);return{c(){r=Be("button"),a&&a.c(),this.h()},l(f){r=Ge(f,"BUTTON",{class:!0,style:!0,role:!0,"aria-checked":!0,type:!0});var h=De(r);a&&a.l(h),h.forEach(E),this.h()},h(){$n(r,c)},m(f,h){ie(f,r,h),a&&a.m(r,null),r.autofocus&&r.focus(),t[37](r),n=!0,i||(o=[Go(t[4].call(null,r)),Ue(r,"click",t[30]),Ue(r,"keydown",t[13]),Ue(r,"focus",t[31]),Ue(r,"blur",t[32])],i=!0)},p(f,h){var p;a&&a.p&&(!n||h[0]&33554432)&&Ho(a,s,f,f[25],n?Bo(s,f[25],h,null):Wo(f[25]),null),$n(r,c=uo(l,[(!n||h[0]&35&&e!==(e=f[1]+" "+Ea.actionable__button+" "+tr["root__any-actions"]+` ${f[5]?tr.root__clickable:tr["root__clickable-no-transition"]} ${tr.root__unselectable} `+((p=f[0])!=null&&p.length?tr["root_disabled-context-menu"]:"")))&&{class:e},(!n||h[0]&4)&&{style:f[2]},(!n||h[0]&512)&&{role:f[9]},(!n||h[0]&4096)&&{"aria-checked":f[12]},{type:"button"},h[0]&8&&f[3]]))},i(f){n||(U(a,f),n=!0)},o(f){te(a,f),n=!1},d(f){f&&E(r),a&&a.d(f),t[37](null),i=!1,Yr(o)}}}function eh(t){var u;let r,e,n,i,o;const s=t[26].default,a=Ro(s,t,t[25],null);let l=[{href:t[7]},{target:t[10]},{style:t[2]},{role:t[9]},{"aria-checked":t[12]},{class:e=t[1]+" "+tr["root__any-actions"]+" "+(t[5]?tr.root__clickable:tr["root__clickable-no-transition"])+" "+((u=t[0])!=null&&u.length?tr["root_disabled-context-menu"]:"")},t[3]],c={};for(let f=0;f<l.length;f+=1)c=Yn(c,l[f]);return{c(){r=Be("a"),a&&a.c(),this.h()},l(f){r=Ge(f,"A",{href:!0,target:!0,style:!0,role:!0,"aria-checked":!0,class:!0});var h=De(r);a&&a.l(h),h.forEach(E),this.h()},h(){$n(r,c)},m(f,h){ie(f,r,h),a&&a.m(r,null),t[36](r),n=!0,i||(o=[Go(t[4].call(null,r)),Ue(r,"click",t[27]),Ue(r,"keydown",t[13]),Ue(r,"focus",t[28]),Ue(r,"blur",t[29])],i=!0)},p(f,h){var p;a&&a.p&&(!n||h[0]&33554432)&&Ho(a,s,f,f[25],n?Bo(s,f[25],h,null):Wo(f[25]),null),$n(r,c=uo(l,[(!n||h[0]&128)&&{href:f[7]},(!n||h[0]&1024)&&{target:f[10]},(!n||h[0]&4)&&{style:f[2]},(!n||h[0]&512)&&{role:f[9]},(!n||h[0]&4096)&&{"aria-checked":f[12]},(!n||h[0]&35&&e!==(e=f[1]+" "+tr["root__any-actions"]+" "+(f[5]?tr.root__clickable:tr["root__clickable-no-transition"])+" "+((p=f[0])!=null&&p.length?tr["root_disabled-context-menu"]:"")))&&{class:e},h[0]&8&&f[3]]))},i(f){n||(U(a,f),n=!0)},o(f){te(a,f),n=!1},d(f){f&&E(r),a&&a.d(f),t[36](null),i=!1,Yr(o)}}}function th(t){let r,e,n,i;const o=[eh,$d,xd],s=[];function a(l,c){return l[7]?0:l[8]?1:2}return r=a(t),e=s[r]=o[r](t),{c(){e.c(),n=Pe()},l(l){e.l(l),n=Pe()},m(l,c){s[r].m(l,c),ie(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?s[r].p(l,c):(ir(),te(s[u],1,1,()=>{s[u]=null}),or(),e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n))},i(l){i||(U(e),i=!0)},o(l){te(e),i=!1},d(l){l&&E(n),s[r].d(l)}}}const ja=8,Ca=400,ll=400,rh=new Set(["button","image","checkbox","radio"]);function nh(t,r,e){let{$$slots:n={},$$scope:i}=r,{componentContext:o}=r,{id:s=""}=r,{actions:a=void 0}=r,{doubleTapActions:l=void 0}=r,{longTapActions:c=void 0}=r,{pressStartActions:u=void 0}=r,{pressEndActions:f=void 0}=r,{hoverStartActions:h=void 0}=r,{hoverEndActions:p=void 0}=r,{cls:b=""}=r,{style:_=null}=r,{attrs:v=void 0}=r,{use:w=Qd}=r,{customAction:L=null}=r,{isNativeActionAnimation:N=!0}=r,{hasInnerFocusable:V=!1}=r,{customAccessibility:F=void 0}=r;const $=Jr(en),D=Jr(is);Ui(is,{hasAction(){return!!(D.hasAction()||a!=null&&a.length)}});let J,Z="",W,G=-1,z=-1,he=null,ye=!1,Te=!1,_e=!1,be,pt,Ye,Re;function Me(){return(a==null?void 0:a.some(S=>{if(S!=null&&S.typed)return!0;const rt=S==null?void 0:S.url;if(!rt)return!1;const le=ol(rt);return le&&!sl(le,$.getBuiltinProtocols())}))||!1}async function Ze(S,rt){a&&(S&&Me()&&S.preventDefault(),o.execAnyActions(a,{node:J,processUrls:rt}))}async function et(S){if(D.hasAction()||S.button!==void 0&&S.button!==0)return;const rt=Date.now();if(G>0&&rt>G+Ca){S.preventDefault();return}if(l!=null&&l.length&&z>0&&rt-z<ll){S.preventDefault(),o.execAnyActions(l,{processUrls:!0,node:J}),z=-1;return}if(z=rt,l!=null&&l.length&&G>0&&rt<G+ll){S.preventDefault(),clearTimeout(pt),pt=window.setTimeout(()=>{Ze(void 0,!0)},ll);return}(L==null?void 0:L(S))===!1?S.preventDefault():Ze(S,!1)}function Q(S){D.hasAction()||(he={x:S.clientX,y:S.clientY},ye=!1,G=Date.now(),be&&clearTimeout(be),clearTimeout(pt),o.execAnyActions(u,{node:J}))}function Ee(S){he&&(Math.abs(he.x-S.clientX)>ja||Math.abs(he.y-S.clientY)>ja)&&(ye=!0)}function ge(S){D.hasAction()||!he||G<0||(!ye&&Date.now()-G>=Ca&&(S.stopImmediatePropagation(),o.execAnyActions(c,{processUrls:!0,node:J})),be&&clearTimeout(be),be=window.setTimeout(()=>{he=null,G=-1},100),o.execAnyActions(f,{node:J}))}function nt(){D.hasAction()||o.execAnyActions(h,{node:J})}function Y(){D.hasAction()||o.execAnyActions(p,{node:J})}function Se(S){const rt=S.target;rt instanceof HTMLElement&&(rt.tagName==="INPUT"||rt.contentEditable==="true")||S.ctrlKey||S.metaKey||S.altKey||S.shiftKey||S.key==="Enter"&&Array.isArray(a)&&a.length&&(o.execAnyActions(a),S.preventDefault())}ei(()=>{s&&!V&&$.registerFocusable(s,{focus(){J&&(Z||Te)&&J.focus()}})}),un(()=>{typeof window<"u"&&(window.removeEventListener("pointermove",Ee),window.removeEventListener("pointerup",ge),window.removeEventListener("pointercancel",ge)),s&&!V&&$.unregisterFocusable(s),be&&clearTimeout(be),pt&&clearTimeout(pt)});function Je(S){Ai.call(this,t,S)}function ne(S){Ai.call(this,t,S)}function lt(S){Ai.call(this,t,S)}function je(S){Ai.call(this,t,S)}function Ie(S){Ai.call(this,t,S)}function kt(S){Ai.call(this,t,S)}function Tt(S){Ai.call(this,t,S)}function re(S){Ai.call(this,t,S)}function it(S){Ai.call(this,t,S)}function ut(S){Pr[S?"unshift":"push"](()=>{J=S,e(6,J)})}function gt(S){Pr[S?"unshift":"push"](()=>{J=S,e(6,J)})}function qe(S){Pr[S?"unshift":"push"](()=>{J=S,e(6,J)})}return t.$$set=S=>{"componentContext"in S&&e(14,o=S.componentContext),"id"in S&&e(15,s=S.id),"actions"in S&&e(16,a=S.actions),"doubleTapActions"in S&&e(17,l=S.doubleTapActions),"longTapActions"in S&&e(0,c=S.longTapActions),"pressStartActions"in S&&e(18,u=S.pressStartActions),"pressEndActions"in S&&e(19,f=S.pressEndActions),"hoverStartActions"in S&&e(20,h=S.hoverStartActions),"hoverEndActions"in S&&e(21,p=S.hoverEndActions),"cls"in S&&e(1,b=S.cls),"style"in S&&e(2,_=S.style),"attrs"in S&&e(3,v=S.attrs),"use"in S&&e(4,w=S.use),"customAction"in S&&e(22,L=S.customAction),"isNativeActionAnimation"in S&&e(5,N=S.isNativeActionAnimation),"hasInnerFocusable"in S&&e(23,V=S.hasInnerFocusable),"customAccessibility"in S&&e(24,F=S.customAccessibility),"$$scope"in S&&e(25,i=S.$$scope)},t.$$.update=()=>{if(t.$$.dirty[0]&4276352){if(Array.isArray(a)&&(a!=null&&a.length))for(let S=0;S<a.length;++S){const rt=a[S].url;if(rt){e(7,Z=rt),e(10,W=a[S].target||void 0);break}}Array.isArray(a)&&(a!=null&&a.length)&&D.hasAction()&&(e(7,Z=""),o.logError(x(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:a}}))),e(8,Te=!!L),Z&&!sl(ol(Z),$.getBuiltinProtocols())?(e(7,Z=""),e(8,Te=!0)):!Z&&Array.isArray(a)&&(a!=null&&a.length)&&(e(8,Te=!0),a.some(S=>S.url||S.typed||S.menu_items)||o.logError(x(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:a}})))}t.$$.dirty[0]&16778112&&(F!=null&&F.type&&rh.has(F.type)?e(9,Ye=F.type):Z?e(9,Ye=void 0):Te&&e(9,Ye="button"),(Ye==="checkbox"||Ye==="radio")&&typeof(F==null?void 0:F.is_checked)=="boolean"?e(12,Re=F.is_checked):e(12,Re=void 0)),t.$$.dirty[0]&4063681&&J&&(Z||Te||l!=null&&l.length?J.addEventListener("click",et):J.removeEventListener("click",et),l!=null&&l.length||c!=null&&c.length||u!=null&&u.length||f!=null&&f.length?(J.addEventListener("pointerdown",Q,{passive:!0}),window.addEventListener("pointermove",Ee,{passive:!0}),window.addEventListener("pointerup",ge,{passive:!0}),window.addEventListener("pointercancel",ge,{passive:!0})):(J.removeEventListener("pointerdown",Q),window.removeEventListener("pointerup",ge),window.removeEventListener("pointermove",Ee),window.removeEventListener("pointercancel",ge)),h!=null&&h.length?J.addEventListener("pointerenter",nt):J.removeEventListener("pointerenter",nt),p!=null&&p.length?J.addEventListener("pointerleave",Y):J.removeEventListener("pointerleave",Y),e(11,_e=!!(Z||Te||l!=null&&l.length||c!=null&&c.length||u!=null&&u.length||f!=null&&f.length||h!=null&&h.length||p!=null&&p.length)))},[c,b,_,v,w,N,J,Z,Te,Ye,W,_e,Re,Se,o,s,a,l,u,f,h,p,L,V,F,i,n,Je,ne,lt,je,Ie,kt,Tt,re,it,ut,gt,qe]}class os extends Hr{constructor(r){super(),Br(this,r,nh,th,wr,{componentContext:14,id:15,actions:16,doubleTapActions:17,longTapActions:0,pressStartActions:18,pressEndActions:19,hoverStartActions:20,hoverEndActions:21,cls:1,style:2,attrs:3,use:4,customAction:22,isNativeActionAnimation:5,hasInnerFocusable:23,customAccessibility:24},null,[-1,-1])}}const Ji={"outer-background":"divkit-7b038","outer-background_clip":"divkit-8fdbd","outer-background__item":"divkit-f9881","outer-background__item_hidden":"divkit-ea047"};function Pn(t){return ts(t)&&t>0}function Sa(t,r){return t.map(e=>{if(!e){r(x(new Error("Incorrect filter"),{level:"warn"}));return}if(e.type==="blur"){if(Pn(e.radius))return`blur(${wn(e.radius/2)})`}else{if(e.type==="rtl_mirror")return;r(x(new Error("Unknown filter"),{level:"warn",additional:{filter:e.type}}))}}).filter(Boolean).join(" ")}function Va(t,r,e){const n=t.slice();return n[6]=r[e],n}function ih(t){let r,e;return{c(){r=Be("span"),this.h()},l(n){r=Ge(n,"SPAN",{class:!0,style:!0}),De(r).forEach(E),this.h()},h(){m(r,"class",Ji["outer-background__item"]),m(r,"style",e=Vt(t[6].style))},m(n,i){ie(n,r,i)},p(n,i){i&2&&e!==(e=Vt(n[6].style))&&m(r,"style",e)},d(n){n&&E(r)}}}function oh(t){let r,e,n,i,o;return{c(){r=Be("img"),this.h()},l(s){r=Ge(s,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){On(r.src,e=t[6].image_url)||m(r,"src",e),m(r,"alt",""),m(r,"aria-hidden","true"),m(r,"loading","lazy"),m(r,"decoding","async"),m(r,"class",Ji["outer-background__item"]),m(r,"style",n=Vt(t[6].style))},m(s,a){ie(s,r,a),i||(o=Ue(r,"error",t[2]),i=!0)},p(s,a){a&2&&!On(r.src,e=s[6].image_url)&&m(r,"src",e),a&2&&n!==(n=Vt(s[6].style))&&m(r,"style",n)},d(s){s&&E(r),i=!1,o()}}}function Ia(t){let r;function e(o,s){return o[6].image_url?oh:ih}let n=e(t),i=n(t);return{c(){i.c(),r=Pe()},l(o){i.l(o),r=Pe()},m(o,s){i.m(o,s),ie(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&&E(r),i.d(o)}}}function sh(t){let r,e,n=sr(t[1]),i=[];for(let o=0;o<n.length;o+=1)i[o]=Ia(Va(t,n,o));return{c(){r=Be("span");for(let o=0;o<i.length;o+=1)i[o].c();this.h()},l(o){r=Ge(o,"SPAN",{class:!0});var s=De(r);for(let a=0;a<i.length;a+=1)i[a].l(s);s.forEach(E),this.h()},h(){m(r,"class",e=Ji["outer-background"]+(t[0]?" "+Ji["outer-background_clip"]:"")),B(r,"border-radius",t[0])},m(o,s){ie(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=sr(o[1]);let a;for(a=0;a<n.length;a+=1){const l=Va(o,n,a);i[a]?i[a].p(l,s):(i[a]=Ia(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=Ji["outer-background"]+(o[0]?" "+Ji["outer-background_clip"]:""))&&m(r,"class",e),s&1&&B(r,"border-radius",o[0])},i:C,o:C,d(o){o&&E(r),dn(i,o)}}}function lh(t,r,e){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(Ji["outer-background__item_hidden"])}return t.$$set=c=>{"direction"in c&&e(3,i=c.direction),"componentContext"in c&&e(4,o=c.componentContext),"background"in c&&e(5,s=c.background),"radius"in c&&e(0,a=c.radius)},t.$$.update=()=>{t.$$.dirty&56&&e(1,n=s.map(c=>{const u={},f={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=es([c]);c.type==="solid"&&(u["background-color"]=h.color),c.type==="gradient"&&(u["background-image"]=h.image),c.type==="image"&&(u.opacity=Number(c.alpha),f.image_url=c.image_url,u["object-fit"]=h.size,u["object-position"]=h.position,Array.isArray(c.filters)&&c.filters.length&&(u.filter=Sa(c.filters,o.logError),i==="rtl"&&c.filters.some(p=>p.type==="rtl_mirror")&&(u.transform="scale(-1,1)")))}return f}))},[a,n,l,i,o,s]}class ah extends Hr{constructor(r){super(),Br(this,r,lh,sh,wr,{direction:3,componentContext:4,background:5,radius:0})}}const ch=t=>({hasCustomFocus:t[0]&4096}),Da=t=>({focusHandler:t[49],blurHandler:t[50],hasCustomFocus:t[12]});function Ta(t){let r,e;return r=new os({props:{componentContext:t[0],id:t[0].json.id,use:t[48],cls:t[1]+" "+bt("outer",$o,t[23]),style:Vt(t[22]),actions:t[19],doubleTapActions:t[20],longTapActions:t[21],pressStartActions:t[7],pressEndActions:t[8],hoverStartActions:t[9],hoverEndActions:t[10],attrs:t[15],hasInnerFocusable:t[2],isNativeActionAnimation:!t[11].length||Pa(t[11]),customAccessibility:t[13],$$slots:{default:[uh]},$$scope:{ctx:t}}}),r.$on("focus",t[49]),r.$on("blur",t[50]),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(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]&8388610&&(o.cls=n[1]+" "+bt("outer",$o,n[23])),i[0]&4194304&&(o.style=Vt(n[22])),i[0]&524288&&(o.actions=n[19]),i[0]&1048576&&(o.doubleTapActions=n[20]),i[0]&2097152&&(o.longTapActions=n[21]),i[0]&128&&(o.pressStartActions=n[7]),i[0]&256&&(o.pressEndActions=n[8]),i[0]&512&&(o.hoverStartActions=n[9]),i[0]&1024&&(o.hoverEndActions=n[10]),i[0]&32768&&(o.attrs=n[15]),i[0]&4&&(o.hasInnerFocusable=n[2]),i[0]&2048&&(o.isNativeActionAnimation=!n[11].length||Pa(n[11])),i[0]&8192&&(o.customAccessibility=n[13]),i[0]&86137|i[4]&1024&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function Fa(t){let r,e;return r=new ah({props:{componentContext:t[0],direction:t[14],background:t[5],radius:t[4]}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&16384&&(o.direction=n[14]),i[0]&32&&(o.background=n[5]),i[0]&16&&(o.radius=n[4]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function Ma(t){let r,e;return{c(){r=Be("span"),this.h()},l(n){r=Ge(n,"SPAN",{class:!0,style:!0}),De(r).forEach(E),this.h()},h(){m(r,"class",$o.outer__border),m(r,"style",e=Vt(t[3]))},m(n,i){ie(n,r,i)},p(n,i){i[0]&8&&e!==(e=Vt(n[3]))&&m(r,"style",e)},d(n){n&&E(r)}}}function uh(t){let r,e,n,i=t[6]&&Fa(t);const o=t[133].default,s=Ro(o,t,t[134],Da);let a=t[16]&&Ma(t);return{c(){i&&i.c(),r=Pe(),s&&s.c(),a&&a.c(),e=Pe()},l(l){i&&i.l(l),r=Pe(),s&&s.l(l),a&&a.l(l),e=Pe()},m(l,c){i&&i.m(l,c),ie(l,r,c),s&&s.m(l,c),a&&a.m(l,c),ie(l,e,c),n=!0},p(l,c){l[6]?i?(i.p(l,c),c[0]&64&&U(i,1)):(i=Fa(l),i.c(),U(i,1),i.m(r.parentNode,r)):i&&(ir(),te(i,1,1,()=>{i=null}),or()),s&&s.p&&(!n||c[0]&4096|c[4]&1024)&&Ho(s,o,l,l[134],n?Bo(o,l[134],c,ch):Wo(l[134]),Da),l[16]?a?a.p(l,c):(a=Ma(l),a.c(),a.m(e.parentNode,e)):a&&(a.d(1),a=null)},i(l){n||(U(i),U(s,l),n=!0)},o(l){te(i),te(s,l),n=!1},d(l){l&&(E(r),E(e)),i&&i.d(l),s&&s.d(l),a&&a.d(l)}}}function fh(t){let r,e,n=!t[17]&&!t[18]&&Ta(t);return{c(){n&&n.c(),r=Pe()},l(i){n&&n.l(i),r=Pe()},m(i,o){n&&n.m(i,o),ie(i,r,o),e=!0},p(i,o){!i[17]&&!i[18]?n?(n.p(i,o),o[0]&393216&&U(n,1)):(n=Ta(i),n.c(),U(n,1),n.m(r.parentNode,r)):n&&(ir(),te(n,1,1,()=>{n=null}),or())},i(i){e||(U(n),e=!0)},o(i){te(n),e=!1},d(i){i&&E(r),n&&n.d(i)}}}const dh={left:"start",center:"center",right:"end",start:"start",end:"end"},hh={left:"end",center:"center",right:"start",start:"start",end:"end"},_h={top:"start",center:"center",bottom:"end",baseline:"baseline"};function Pa(t){return t.some(r=>r.name==="native")}function gh(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L,N,V,F,$,D,J,Z,W,G,z,he,ye,Te,_e,be=C,pt=()=>(be(),be=P(Z,ve=>e(111,_e=ve)),Z),Ye,Re=C,Me=()=>(Re(),Re=P(J,ve=>e(112,Ye=ve)),J),Ze,et=C,Q=()=>(et(),et=P(D,ve=>e(113,Ze=ve)),D),Ee,ge=C,nt=()=>(ge(),ge=P($,ve=>e(114,Ee=ve)),$),Y,Se=C,Je=()=>(Se(),Se=P(F,ve=>e(115,Y=ve)),F),ne,lt=C,je=()=>(lt(),lt=P(V,ve=>e(116,ne=ve)),V),Ie,kt=C,Tt=()=>(kt(),kt=P(N,ve=>e(117,Ie=ve)),N),re,it=C,ut=()=>(it(),it=P(i,ve=>e(118,re=ve)),i),gt,qe=C,S=()=>(qe(),qe=P(L,ve=>e(119,gt=ve)),L),rt,le=C,Qe=()=>(le(),le=P(w,ve=>e(120,rt=ve)),w),At,fe=C,me=()=>(fe(),fe=P(_,ve=>e(121,At=ve)),_),ft,$e=C,rr=()=>($e(),$e=P(v,ve=>e(122,ft=ve)),v),Ot,Qt=C,Oe=()=>(Qt(),Qt=P(b,ve=>e(123,Ot=ve)),b),yt,qt=C,Gt=()=>(qt(),qt=P(p,ve=>e(13,yt=ve)),p),Kt,H=C,ae=()=>(H(),H=P(h,ve=>e(124,Kt=ve)),h),dr,ke=C,It=()=>(ke(),ke=P(f,ve=>e(125,dr=ve)),f),He,vt=C,ze=()=>(vt(),vt=P(u,ve=>e(126,He=ve)),u),at,Et=C,Fe=()=>(Et(),Et=P(a,ve=>e(127,at=ve)),a),dt,Xt,cr=C,pr=()=>(cr(),cr=P(c,ve=>e(128,Xt=ve)),c),Yt,ht=C,Dt=()=>(ht(),ht=P(l,ve=>e(129,Yt=ve)),l),Nt,nr=C,lr=()=>(nr(),nr=P(s,ve=>e(130,Nt=ve)),s),Er,Lr=C,Zr=()=>(Lr(),Lr=P(o,ve=>e(131,Er=ve)),o),Xe;t.$$.on_destroy.push(()=>be()),t.$$.on_destroy.push(()=>Re()),t.$$.on_destroy.push(()=>et()),t.$$.on_destroy.push(()=>ge()),t.$$.on_destroy.push(()=>Se()),t.$$.on_destroy.push(()=>lt()),t.$$.on_destroy.push(()=>kt()),t.$$.on_destroy.push(()=>it()),t.$$.on_destroy.push(()=>qe()),t.$$.on_destroy.push(()=>le()),t.$$.on_destroy.push(()=>fe()),t.$$.on_destroy.push(()=>$e()),t.$$.on_destroy.push(()=>Qt()),t.$$.on_destroy.push(()=>qt()),t.$$.on_destroy.push(()=>H()),t.$$.on_destroy.push(()=>ke()),t.$$.on_destroy.push(()=>vt()),t.$$.on_destroy.push(()=>Et()),t.$$.on_destroy.push(()=>cr()),t.$$.on_destroy.push(()=>ht()),t.$$.on_destroy.push(()=>nr()),t.$$.on_destroy.push(()=>Lr());let{$$slots:hr={},$$scope:Ae}=r,{componentContext:K}=r,{cls:Cr=""}=r,{style:Sr=void 0}=r,{layoutParams:Rt={}}=r,{customDescription:tn=!1}=r,{customPaddings:Ve=!1}=r,{customActions:Bt=""}=r,{additionalPaddings:_r=null}=r,{heightByAspect:xe=!1}=r,{parentOf:Ft=void 0}=r,{parentOfSimpleMode:Le=void 0}=r,{replaceItems:mt=void 0}=r,{hasInnerFocusable:ct=!1}=r;const St=Jr(en),Zt=Jr(el),{isEnabled:T}=Jr(il);an(t,T,ve=>e(132,Xe=ve));const ot=St.direction;an(t,ot,ve=>e(14,dt=ve));let de,d,Ne=null,jt=[],Or={},fr={},R=!1,Dr=1,nn="transparent",y=0,A={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},X="",oe=null,se="",Ce={},wt,O,Ke,Ht=0,Mt=0,Wt=0,ar=!1,fn=!1,Rr={},mn,on,Zn,Cn=0,sn=0,bn=0,Qn=!1,oi=!1,Tn=1,xn,si,_n,Bi,Hi=[],li=!1,no=!1,yi,Hn,_t,g=[],k=[],M=[],j=[],ee=[],q=[],tt=[],st=[],Tr=[],mr=[],Vr="",vi,ue,er,br,Wn=!1,Un="visible",Qr=0,wi=0,ki,Ii,io,ko=!1,Us,Fn,Oo;function yb(){e(68,oe=null),e(69,se=""),e(86,Tn=1),e(98,Wn=!1),e(99,Un="visible"),e(100,Qr=0),e(101,wi=0),e(102,ki=void 0),e(103,Ii=void 0),Hi=K.fakeElement?[]:K.json.transition_triggers||["state_change","visibility_change"],e(89,li=!!(Hi.indexOf("state_change")!==-1&&K.id)),no=Hi.indexOf("visibility_change")!==-1,de&&od(de),Fn==null||Fn(),Xe&&e(105,Fn=St.processVariableTriggers(K,K.json.variable_triggers))}function vb(ve,Fr){if(!Array.isArray(Ft)||!mt||Le&&(Array.isArray(Fr)&&Fr.length||0)!==1)return;const hn=Ft.findIndex(Wr=>(Wr==null?void 0:Wr.id)===ve),Sn=Ft.slice();Sn.splice(hn,1,...(Fr||[]).map(Wr=>({json:Wr,id:Wr==null?void 0:Wr.id}))),e(51,Ft=Sn),mt(Sn.map(Wr=>Wr==null?void 0:Wr.json))}function wb(ve){const Fr=ho(ve.start_value,1),hn=ho(ve.end_value,1),Sn=qr(ve.start_delay,0),Wr=ns()?0:qr(ve.duration,300),Wi=Aa(ve.interpolator,"ease_in_out").replace(/_/g,"-");switch(ve.name){case"fade":return e(94,vi=Fr),e(95,ue=hn),`opacity ${Wr}ms ${Wi} ${Sn}ms`;case"scale":return e(96,er=Fr),e(97,br=hn),`transform ${Wr}ms ${Wi} ${Sn}ms`;case"native":case"no_animation":return"";default:return K.logError(x(new Error("Unknown action_animation name"),{additional:{animation:ve.name}})),""}}async function kb(ve){e(99,Un=ve);const Fr=ve==="visible"?"in":"out",hn=Fr==="in"?K.json.transition_in:K.json.transition_out;if(no&&hn){let Sn;ve==="gone"&&(Sn=de.getBoundingClientRect()),await vn(),Fr==="in"&&e(91,Hn=!0),Zt.runVisibilityTransition({...K.json,visibility:"visible"},K,hn,de,Fr,Sn).then(()=>{Fr==="in"&&e(91,Hn=!1)}).catch(Wr=>{throw Fr==="in"&&e(91,Hn=!1),Wr})}}function id(){if(Ne&&de){const ve=St.getExtensionContext(K);Ne.forEach(Fr=>{var hn;(hn=Fr.unmountView)==null||hn.call(Fr,de,ve)}),Ne=null}}function Ab(){if(Ne!=null&&Ne.length){const ve=St.getExtensionContext(K);Ne.forEach(Fr=>{var hn;(hn=Fr.updateView)==null||hn.call(Fr,de,ve)})}}function od(ve){var Wi,Pt,kr;Oo==null||Oo.destroy(),e(61,de=ve),li&&K.json.transition_in&&Zt.registerChildWithTransitionIn(K.json,K,K.json.transition_in,ve).then(()=>{e(90,yi=!1)}).catch(Mr=>{throw e(90,yi=!1),Mr}),li&&K.json.transition_out&&Zt.registerChildWithTransitionOut(K.json,K,K.json.transition_out,ve),K.fakeElement||Zt.registerChildWithTransitionChange(K.json,K,K.json.transition_change,ve).then(()=>{e(92,_t=!1)}).catch(Mr=>{throw e(92,_t=!1),Mr});const Fr=K.fakeElement?[]:K.json.visibility_actions||K.json.visibility_action&&[K.json.visibility_action],hn=K.fakeElement?[]:K.json.disappear_actions;let Sn;(Array.isArray(Fr)&&Fr.length||Array.isArray(hn)&&hn.length)&&(Sn=Hd(ve,{visibilityActions:Fr,disappearActions:hn,rootCtx:St,componentContext:K}));const Wr=K.id;return Wr&&(St.registerId(Wr,()=>de),Zt.registerChild(Wr)),(Wi=K.json.tooltips)==null||Wi.forEach(Mr=>{St.registerTooltip(ve,Mr)}),io&&(io.disconnect(),io=void 0),io=Zd(de,K,(Pt=K.json.layout_provider)==null?void 0:Pt.width_variable_name,(kr=K.json.layout_provider)==null?void 0:kr.height_variable_name),Oo={destroy(){Wr&&(St.unregisterId(Wr),Zt.unregisterChild(Wr)),Sn&&Sn.destroy()}},Oo}function Eb(){K.json.focus&&(ad(St.isPointerFocus)||e(12,ko=!0),K.execAnyActions(j))}function jb(){K.json.focus&&(e(12,ko=!1),K.execAnyActions(ee))}return Qo(Ab),un(()=>{var ve;jt.forEach(Fr=>{St.unregisterParentOf(Fr)}),e(62,jt=[]),io&&(io.disconnect(),io=void 0),(ve=K.json.tooltips)==null||ve.forEach(Fr=>{St.unregisterTooltip(Fr)}),Fn==null||Fn(),id()}),t.$$set=ve=>{"componentContext"in ve&&e(0,K=ve.componentContext),"cls"in ve&&e(1,Cr=ve.cls),"style"in ve&&e(52,Sr=ve.style),"layoutParams"in ve&&e(53,Rt=ve.layoutParams),"customDescription"in ve&&e(54,tn=ve.customDescription),"customPaddings"in ve&&e(55,Ve=ve.customPaddings),"customActions"in ve&&e(56,Bt=ve.customActions),"additionalPaddings"in ve&&e(57,_r=ve.additionalPaddings),"heightByAspect"in ve&&e(58,xe=ve.heightByAspect),"parentOf"in ve&&e(51,Ft=ve.parentOf),"parentOfSimpleMode"in ve&&e(59,Le=ve.parentOfSimpleMode),"replaceItems"in ve&&e(60,mt=ve.replaceItems),"hasInnerFocusable"in ve&&e(2,ct=ve.hasInnerFocusable),"$$scope"in ve&&e(134,Ae=ve.$$scope)},t.$$.update=()=>{var ve,Fr,hn,Sn,Wr,Wi;if(t.$$.dirty[0]&1&&e(110,n=K.origJson),t.$$.dirty[3]&131072&&n&&yb(),t.$$.dirty[0]&1|t.$$.dirty[3]&4096|t.$$.dirty[4]&256&&(Xe?(Fn==null||Fn(),e(105,Fn=St.processVariableTriggers(K,K.json.variable_triggers))):Fn==null||Fn()),t.$$.dirty[0]&1&&ut(e(45,i=K.getDerivedFromVars(K.json.focus))),t.$$.dirty[0]&1&&Zr(e(44,o=K.getDerivedFromVars(K.json.border))),t.$$.dirty[0]&1&&lr(e(43,s=K.getDerivedFromVars(K.json.paddings))),t.$$.dirty[0]&1&&Fe(e(42,a=K.getDerivedFromVars(K.json.margins))),t.$$.dirty[0]&1&&Dt(e(41,l=K.getDerivedFromVars(K.json.width))),t.$$.dirty[0]&1&&pr(e(40,c=K.getDerivedFromVars(K.json.alignment_horizontal))),t.$$.dirty[0]&1&&ze(e(39,u=K.getDerivedFromVars(K.json.height))),t.$$.dirty[0]&1&&It(e(38,f=K.getDerivedFromVars(K.json.alignment_vertical))),t.$$.dirty[0]&1&&ae(e(37,h=K.getDerivedFromVars(K.json.alpha))),t.$$.dirty[0]&1&&Gt(e(36,p=K.getDerivedFromVars(K.json.accessibility))),t.$$.dirty[0]&1&&Oe(e(35,b=K.getDerivedFromVars(K.json.background))),t.$$.dirty[0]&1&&me(e(34,_=K.getDerivedFromVars(K.json.action))),t.$$.dirty[0]&1&&rr(e(33,v=K.getDerivedFromVars(K.json.actions))),t.$$.dirty[0]&1&&Qe(e(32,w=K.getDerivedFromVars(K.json.doubletap_actions))),t.$$.dirty[0]&1&&S(e(31,L=K.getDerivedFromVars(K.json.longtap_actions))),t.$$.dirty[0]&1&&Tt(e(30,N=K.getDerivedFromVars(K.json.press_start_actions))),t.$$.dirty[0]&1&&je(e(29,V=K.getDerivedFromVars(K.json.press_end_actions))),t.$$.dirty[0]&1&&Je(e(28,F=K.getDerivedFromVars(K.json.hover_start_actions))),t.$$.dirty[0]&1&&nt(e(27,$=K.getDerivedFromVars(K.json.hover_end_actions))),t.$$.dirty[0]&1&&Q(e(26,D=K.getDerivedFromVars(K.json.action_animation))),t.$$.dirty[0]&1&&Me(e(25,J=K.getDerivedFromVars(K.json.visibility))),t.$$.dirty[0]&1&&pt(e(24,Z=K.getDerivedFromVars(K.json.transform))),t.$$.dirty[1]&269484032|t.$$.dirty[2]&1&&(jt.forEach(Pt=>{St.unregisterParentOf(Pt)}),e(62,jt=[]),Ft&&Ft.forEach(Pt=>{Pt!=null&&Pt.id&&(jt.push(Pt.id),St.registerParentOf(Pt.id,{replaceWith:vb,isSingleMode:!!Le}))})),t.$$.dirty[0]&4104|t.$$.dirty[2]&62|t.$$.dirty[3]&33554432|t.$$.dirty[4]&128){const Pt=ko&&(re!=null&&re.border)?re.border:Er;let kr={},Mr={},gn=!1,Gr="";if(Pt){if(ti(Pt.has_shadow,!1)){const ln=Pt.shadow;ln?kr["box-shadow"]=qd(ln):kr["box-shadow"]="0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(Pt.stroke&&(gn=!0,e(64,Dr=qr(Pt.stroke.width,Dr)),e(65,nn=Ir(Pt.stroke.color,1,nn)),Mr["--divkit-border"]=`${we(Dr+1)} solid ${nn}`),Pt.corners_radius&&typeof Pt.corners_radius=="object"){e(67,A=Jd(Pt.corners_radius,A)),kr["border-radius"]=rs(A);const ln={};["top-left","top-right","bottom-right","bottom-left"].forEach(Mn=>{ln[Mn]=(A[Mn]||0)+1}),Mr["--divkit-border-radius"]=rs(ln)}else Pt.corner_radius&&(e(66,y=qr(Pt.corner_radius,y)),e(67,A={"top-left":y,"top-right":y,"bottom-right":y,"bottom-left":y}),kr["border-radius"]=we(y),Mr["--divkit-border-radius"]=we(y+1));if(gn&&Dr&&(Pt.corners_radius||Pt.corner_radius)){let ln={...A};["top-left","top-right","bottom-right","bottom-left"].forEach(Mn=>{ln[Mn]=(ln[Mn]||0)+Dr/2}),Gr=rs(ln)}}e(63,Or=Mi(kr,Or)),e(3,fr=Mi(Mr,fr)),e(16,R=gn),e(4,X=Gr)}if(t.$$.dirty[1]&16777216|t.$$.dirty[2]&64|t.$$.dirty[4]&64&&e(68,oe=So(Nt&&!Ve?Nt:void 0,oe)),t.$$.dirty[0]&16384|t.$$.dirty[1]&67108864|t.$$.dirty[2]&64&&e(107,W=di(Yd(oe,_r),dt)),t.$$.dirty[0]&16384|t.$$.dirty[2]&128|t.$$.dirty[4]&8&&e(69,se=Co(at,dt,se)),t.$$.dirty[0]&16385|t.$$.dirty[1]&4194304|t.$$.dirty[2]&4352|t.$$.dirty[4]&56){let Pt,kr,Mr,gn,Gr={},ln=0,Mn=0,Di=!1,Ti=!1;const yn=Yt==null?void 0:Yt.type;if(yn==="fixed")e(74,Ht=qr(Yt==null?void 0:Yt.value,Ht)),kr=we(Ht);else if(yn==="wrap_content"||(yn==="match_parent"||!yn)&&Rt.parentHorizontalWrapContent){if(Pt="content",(yn==="wrap_content"&&(Yt!=null&&Yt.constrained)||(yn==="match_parent"||!yn)&&Rt.parentHorizontalWrapContent)&&(Gr["width-constrained"]=!0,Rt.parentContainerOrientation==="horizontal"&&(Mn=1)),yn==="wrap_content"){const Ar=Yt;Ar.min_size&&Vn(Ar.min_size.value)&&(Mr=we(Ar.min_size.value)),Ar.max_size&&Vn(Ar.max_size.value)&&(gn=we(Ar.max_size.value))}(yn==="match_parent"||!yn)&&K.logError(x(new Error("Incorrect child size. Container with wrap_content size contains child with match_parent size along the main axis"),{level:"warn"}))}else if(Pt="parent",Rt.parentContainerOrientation==="vertical"&&Rt.parentContainerWrap&&(Ti=!0,K.logError(x(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),Rt.parentLayoutOrientation==="vertical"||Rt.stretchWidth){const Ar=(Fr=(ve=dt==="ltr"?at==null?void 0:at.start:at==null?void 0:at.end)!=null?ve:at==null?void 0:at.left)!=null?Fr:0,ql=(Sn=(hn=dt==="ltr"?at==null?void 0:at.end:at==null?void 0:at.start)!=null?hn:at==null?void 0:at.right)!=null?Sn:0,zo=`calc(100% - ${wn(Ar+ql)})`;Rt.stretchWidth?(kr="0",Mr=zo):kr=zo}else Rt.parentContainerOrientation==="horizontal"&&(ln=Yt&&"weight"in Yt&&Yt.weight||1,Rt.parentContainerWrap&&(Di=!0));if(Pt==="parent")Gr["halign-self"]="stretch";else{const Ar=Xt;Ar==="left"||Ar==="center"||Ar==="right"||Ar==="start"||Ar==="end"?Gr["halign-self"]=(dt==="ltr"?dh:hh)[Ar]:Gr["halign-self"]=Rt.parentHAlign||"start"}Pt&&(Gr.width=Pt),e(71,wt=kr),e(72,O=Mr),e(73,Ke=gn),e(75,Mt=ln),e(76,Wt=Mn),e(70,Ce=Mi(Gr,Ce)),e(77,ar=Di),e(17,fn=Ti)}if(t.$$.dirty[0]&1|t.$$.dirty[1]&138412032|t.$$.dirty[2]&1114112|t.$$.dirty[4]&14){let Pt,kr,Mr,gn,Gr={},ln=0,Mn=0,Di=!1,Ti=!1;const yn=He==null?void 0:He.type;if(!xe)if(yn==="fixed")e(82,Cn=qr(He==null?void 0:He.value,Cn)),kr=we(Cn);else if(yn==="match_parent"&&!Rt.parentVerticalWrapContent)if(Pt="parent",Rt.parentContainerOrientation==="horizontal"&&Rt.parentContainerWrap&&(Ti=!0,K.logError(x(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),Rt.parentLayoutOrientation==="horizontal"||Rt.stretchHeight){const Ar=(Wr=at==null?void 0:at.top)!=null?Wr:0,ql=(Wi=at==null?void 0:at.bottom)!=null?Wi:0,zo=`calc(100% - ${wn(Ar+ql)})`;Rt.stretchHeight?(kr="0",Mr=zo):kr=zo}else Rt.parentContainerOrientation==="vertical"&&(ln=(He==null?void 0:He.weight)||1,Rt.parentContainerWrap&&(Di=!0));else{if(Pt="content",(yn==="wrap_content"&&(He!=null&&He.constrained)||yn==="match_parent"&&Rt.parentVerticalWrapContent)&&(Gr["height-constrained"]=!0,Rt.parentContainerOrientation==="vertical"&&(Mn=1)),yn==="wrap_content"){const Ar=He;Ar!=null&&Ar.min_size&&Vn(Ar.min_size.value)&&(Mr=we(Ar.min_size.value)),Ar!=null&&Ar.max_size&&Vn(Ar.max_size.value)&&(gn=we(Ar.max_size.value))}yn==="match_parent"&&K.logError(x(new Error("Incorrect child size. Container with wrap_content size contains child with match_parent size along the main axis"),{level:"warn"}))}if(Pt==="parent")Gr["valign-self"]="stretch";else{const Ar=dr;Ar==="top"||Ar==="center"||Ar==="bottom"||Ar==="baseline"&&Rt.parentContainerOrientation==="horizontal"?Gr["valign-self"]=_h[Ar]:Gr["valign-self"]=Rt.parentVAlign||"start"}Pt&&(Gr.height=Pt),e(79,mn=kr),e(80,on=Mr),e(81,Zn=gn),e(83,sn=ln),e(84,bn=Mn),e(78,Rr=Mi(Gr,Rr)),e(85,Qn=Di),e(18,oi=Ti)}if(t.$$.dirty[1]&4194304&&e(109,G=Rt.overlapParent?!0:void 0),t.$$.dirty[1]&4194304&&e(108,z=Rt.gridArea?`${Rt.gridArea.y+1}/${Rt.gridArea.x+1}/span ${Rt.gridArea.rowSpan}/span ${Rt.gridArea.colSpan}`:void 0),t.$$.dirty[2]&16777216|t.$$.dirty[4]&1&&(e(86,Tn=Wd(Kt,Tn)),e(87,xn=Tn===1?void 0:Tn)),t.$$.dirty[0]&8192|t.$$.dirty[1]&8388608&&(e(15,d=void 0),yt&&!tn&&yt.description&&(e(15,d={}),e(15,d["aria-label"]=yt.description,d))),t.$$.dirty[0]&4208|t.$$.dirty[3]&1107296256&&(e(5,si=ko&&(re!=null&&re.background)?re.background:Ot),e(88,_n={}),e(6,Bi=!1),Array.isArray(si)&&(e(6,Bi=si.some(Pt=>Pt.type==="image"||Pt.type==="nine_patch_image")||!!X),!Bi))){const Pt=es(si);e(88,_n["background-color"]=Pt.color,_n),e(88,_n["background-image"]=Pt.image,_n),e(88,_n["background-size"]=Pt.size,_n),e(88,_n["background-position"]=Pt.position,_n),e(88,_n["background-repeat"]="no-repeat",_n)}if(t.$$.dirty[0]&1|t.$$.dirty[2]&134217728&&(e(90,yi=void 0),li&&K.json.transition_in&&St.isRunning("stateChange")&&e(90,yi=!0)),t.$$.dirty[0]&1|t.$$.dirty[2]&134217728&&(e(92,_t=void 0),li&&St.isRunning("stateChange")&&Zt.hasTransitionChange(K.id)&&e(92,_t=!0)),t.$$.dirty[0]&1921|t.$$.dirty[1]&33554432|t.$$.dirty[3]&1071644672){let Pt=ft||At&&[At]||[],kr=rt||[],Mr=gt||[],gn=(re==null?void 0:re.on_focus)||[],Gr=(re==null?void 0:re.on_blur)||[],ln=Ie||[],Mn=ne||[],Di=Y||[],Ti=Ee||[];K.fakeElement?(Pt=[],kr=[],Mr=[],gn=[],Gr=[]):(Array.isArray(Pt)||(Pt=[],K.logError(x(new Error("Actions should be array")))),Array.isArray(kr)||(kr=[],K.logError(x(new Error("DoubleTapActions should be array")))),Array.isArray(Mr)||(Mr=[],K.logError(x(new Error("LongTapActions should be array")))),Array.isArray(gn)||(gn=[],K.logError(x(new Error("FocusActions should be array")))),Array.isArray(Gr)||(Gr=[],K.logError(x(new Error("BlurActions should be array")))),Array.isArray(ln)||(ln=[],K.logError(x(new Error("PressStartActions should be array")))),Array.isArray(Mn)||(Mn=[],K.logError(x(new Error("PressEndActions should be array")))),Array.isArray(Di)||(Di=[],K.logError(x(new Error("HoverStartActions should be array")))),Array.isArray(Ti)||(Ti=[],K.logError(x(new Error("HoverEndActions should be array"))))),(Pt.length||kr.length||Mr.length||q.length||tt.length||st.length||Tr.length)&&Bt&&(Pt=[],kr=[],Mr=[],e(7,q=[]),e(8,tt=[]),e(9,st=[]),e(10,Tr=[]),K.logError(x(new Error(`Cannot use action on component "${Bt}"`)))),e(19,g=Pt.filter(In)),e(20,k=kr.filter(In)),e(21,M=Mr.filter(In)),j=gn.filter(In),ee=Gr.filter(In),e(7,q=ln.filter(In)),e(8,tt=Mn.filter(In)),e(9,st=Di.filter(In)),e(10,Tr=Ti.filter(In))}if(t.$$.dirty[0]&2048|t.$$.dirty[3]&1048576&&Ze&&(e(11,mr=rl(Ze)),e(93,Vr=mr.map(wb).filter(Boolean).join(", "))),t.$$.dirty[3]&524384){const Pt=Un,kr=Gd(Ye,Un);Pt!==kr&&(Wn&&(Un==="visible"||kr==="visible")?kb(kr):e(99,Un=kr)),Wn||e(98,Wn=!0)}if(t.$$.dirty[0]&1|t.$$.dirty[1]&1073741824|t.$$.dirty[3]&2048&&K.json&&de&&!tl(K.json.extensions,Us)){let Pt=e(104,Us=K.json.extensions);vn().then(()=>{if(!(Pt!==Us||!de)&&(id(),Array.isArray(K.json.extensions))){const kr=St.getExtensionContext(K);Ne=K.json.extensions.map(Mr=>{var ln;const gn=Mr.id;if(!gn)return;const Gr=St.getExtension(gn,Mr.params);return Gr&&((ln=Gr.mountView)==null||ln.call(Gr,de,kr)),Gr}).filter(ji)}})}if(t.$$.dirty[0]&4097|t.$$.dirty[1]&4194304|t.$$.dirty[2]&1879113984|t.$$.dirty[3]&65601&&e(23,he={...Ce,...Rr,"parent-overlap":G,"scroll-snap":Rt.scrollSnap,"hide-on-transition-in":yi||Hn||_t,visibility:Un,"has-action-animation":!!Vr,"parent-flex":Rt.parentContainerOrientation||void 0,"parent-grid":!!Rt.gridArea||void 0,"has-custom-focus":!!(ko&&K.json.focus)}),t.$$.dirty[3]&262528&&_e&&_e.rotation!==void 0){const Pt=_e.pivot_x||{type:"pivot-percentage",value:50};e(100,Qr=ho(Pt.value,Qr));const kr=Pt.type==="pivot-fixed"?we(Qr):`${Qr}%`,Mr=_e.pivot_y||{type:"pivot-percentage",value:50};e(101,wi=ho(Mr.value,wi));const gn=Mr.type==="pivot-fixed"?we(wi):`${wi}%`;e(102,ki=`${kr} ${gn}`),e(103,Ii=`rotate(${_e.rotation}deg)`)}t.$$.dirty[2]&10526720&&e(106,ye=ar||Qn?"100%":Mt||sn?0:void 0),t.$$.dirty[1]&2097152|t.$$.dirty[2]&107900546|t.$$.dirty[3]&58911&&e(22,Te={...Sr,..._n,...Or,width:wt,"min-width":O,"max-width":Ke,height:mn,"min-height":on,"max-height":Zn||(Sr==null?void 0:Sr["max-height"]),"grid-area":z,padding:W,margin:se,opacity:xn,transition:Vr,"transform-origin":ki,transform:Ii,"flex-grow":Mt||sn||void 0,"flex-shrink":Wt||bn?1:void 0,"flex-basis":ye,"--divkit-animation-opacity-start":vi,"--divkit-animation-opacity-end":ue,"--divkit-animation-scale-start":er,"--divkit-animation-scale-end":br})},[K,Cr,ct,fr,X,si,Bi,q,tt,st,Tr,mr,ko,yt,dt,d,R,fn,oi,g,k,M,Te,he,Z,J,D,$,F,V,N,L,w,v,_,b,p,h,f,u,c,l,a,s,o,i,T,ot,od,Eb,jb,Ft,Sr,Rt,tn,Ve,Bt,_r,xe,Le,mt,de,jt,Or,Dr,nn,y,A,oe,se,Ce,wt,O,Ke,Ht,Mt,Wt,ar,Rr,mn,on,Zn,Cn,sn,bn,Qn,Tn,xn,_n,li,yi,Hn,_t,Vr,vi,ue,er,br,Wn,Un,Qr,wi,ki,Ii,Us,Fn,ye,W,z,G,n,_e,Ye,Ze,Ee,Y,ne,Ie,re,gt,rt,At,ft,Ot,Kt,dr,He,at,Xt,Yt,Nt,Er,Xe,hr,Ae]}class kn extends Hr{constructor(r){super(),Br(this,r,gh,fh,wr,{componentContext:0,cls:1,style:52,layoutParams:53,customDescription:54,customPaddings:55,customActions:56,additionalPaddings:57,heightByAspect:58,parentOf:51,parentOfSimpleMode:59,replaceItems:60,hasInnerFocusable:2},null,[-1,-1,-1,-1,-1])}}const qn={"text-range":"divkit-251c6",text:"divkit-6d029",text_halign_start:"divkit-d7771",text_halign_center:"divkit-11aee",text_halign_end:"divkit-a2b0d",text_valign_start:"divkit-b93c2",text_valign_center:"divkit-a5aa6",text_valign_end:"divkit-02228",text_valign_baseline:"divkit-c5739",text__inner:"divkit-ccc67",text_singleline:"divkit-a6f25",text_multiline:"divkit-b9e37",text_truncate_none:"divkit-fa1ec","text__inner_has-cloud-bg":"divkit-e75f8","text__inner_cloud-bg":"divkit-ca4e7",text__inner_gradient:"divkit-3f0b7","text__image-wrapper":"divkit-632c6","text__image-wrapper_crop":"divkit-9125a","text__image-wrapper_align_top":"divkit-6956e","text__image-wrapper_align_center":"divkit-2be31","text__image-wrapper_align_bottom":"divkit-1719d","text__image-wrapper_align_baseline":"divkit-a0e9f",text__image:"divkit-d491d",text__image_hidden:"divkit-f6859","text_has-focus-color":"divkit-32858"},ss={"text-range":"divkit-251c6","text-range_cloud":"divkit-96ef6","text-range_singleline":"divkit-645b9","text-range__top-offset":"divkit-13a2b","text-range_decoration_both":"divkit-9d257","text-range_decoration_underline":"divkit-c65cf","text-range_decoration_strike":"divkit-d264e","text-range_decoration_none":"divkit-2cfc4","text-range_align_top":"divkit-cb312","text-range_align_center":"divkit-640d4","text-range_align_bottom":"divkit-069e7","text-range_align_baseline":"divkit-3f853","text-range__cloud-svg":"divkit-82b28","text-range_relative-vertical-align":"divkit-98760"};function Kn(t,r){const e=Number(t);return Number.isNaN(e)||e<=0?r:e}function ph(t){if(t==="light"||t==="medium"||t==="bold"||t==="regular")return t==="medium"?500:t==="bold"?700:t==="light"?300:400}function _o(t,r,e){return typeof r=="number"&&r>0?r:ph(t)||e}function al(t,r){if(!t)return{};const e={};for(const n of["left","top","right","bottom","start","end"]){const i=t[n];i&&(e[n]=i*r)}return e}function Na(t){let r,e,n,i,o,s,a;return{c(){r=$r("svg"),e=$r("defs"),n=$r("filter"),i=$r("feGaussianBlur"),o=$r("feColorMatrix"),a=$r("feBlend"),this.h()},l(l){r=cn(l,"svg",{class:!0});var c=De(r);e=cn(c,"defs",{});var u=De(e);n=cn(u,"filter",{id:!0});var f=De(n);i=cn(f,"feGaussianBlur",{in:!0,result:!0,stdDeviation:!0}),De(i).forEach(E),o=cn(f,"feColorMatrix",{in:!0,result:!0,type:!0,values:!0}),De(o).forEach(E),a=cn(f,"feBlend",{in:!0,in2:!0}),De(a).forEach(E),f.forEach(E),u.forEach(E),c.forEach(E),this.h()},h(){m(i,"in","SourceGraphic"),m(i,"result","blurred"),m(i,"stdDeviation","3"),m(o,"in","blurred"),m(o,"result","withMatrix"),m(o,"type","matrix"),m(o,"values",s="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 "+2*t[4]+" -"+t[4]),m(a,"in","SourceGraphic"),m(a,"in2","withMatrix"),m(n,"id",t[10]),m(r,"class",ss["text-range__cloud-svg"])},m(l,c){ie(l,r,c),Ct(r,e),Ct(e,n),Ct(n,i),Ct(n,o),Ct(n,a)},p(l,c){c&16&&s!==(s="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 "+2*l[4]+" -"+l[4])&&m(o,"values",s)},d(l){l&&E(r)}}}function Oa(t){let r;return{c(){r=Be("span"),this.h()},l(e){r=Ge(e,"SPAN",{class:!0}),De(r).forEach(E),this.h()},h(){m(r,"class",ss["text-range__top-offset"]),B(r,"margin-top",t[8])},m(e,n){ie(e,r,n)},p(e,n){n&256&&B(r,"margin-top",e[8])},d(e){e&&E(r)}}}function mh(t){let r;return{c(){r=Jn(t[1])},l(e){r=ci(e,t[1])},m(e,n){ie(e,r,n)},p(e,n){n&2&&Fi(r,e[1])},d(e){e&&E(r)}}}function bh(t){let r,e,n,i,o=t[3]&&t[5]&&Na(t),s=t[8]&&Oa(t);return n=new os({props:{componentContext:t[0],cls:bt("text-range",ss,t[7]),actions:t[2],style:Vt(t[6]),$$slots:{default:[mh]},$$scope:{ctx:t}}}),{c(){o&&o.c(),r=Pe(),s&&s.c(),e=Pe(),Ut(n.$$.fragment)},l(a){o&&o.l(a),r=Pe(),s&&s.l(a),e=Pe(),Jt(n.$$.fragment,a)},m(a,l){o&&o.m(a,l),ie(a,r,l),s&&s.m(a,l),ie(a,e,l),zt(n,a,l),i=!0},p(a,[l]){a[3]&&a[5]?o?o.p(a,l):(o=Na(a),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null),a[8]?s?s.p(a,l):(s=Oa(a),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null);const c={};l&1&&(c.componentContext=a[0]),l&128&&(c.cls=bt("text-range",ss,a[7])),l&4&&(c.actions=a[2]),l&64&&(c.style=Vt(a[6])),l&1073741826&&(c.$$scope={dirty:l,ctx:a}),n.$set(c)},i(a){i||(U(n.$$.fragment,a),i=!0)},o(a){te(n.$$.fragment,a),i=!1},d(a){a&&(E(r),E(e)),o&&o.d(a),s&&s.d(a),Lt(n,a)}}}function yh(t,r,e){let n,i,o,s,a,l,c,u,f,h,{componentContext:p}=r,{text:b}=r,{rootFontSize:_}=r,{textStyles:v={}}=r,{singleline:w=!1}=r,{actions:L=void 0}=r,{cloudBg:N=!1}=r,{customLineHeight:V=null}=r;const F=Jr(en),$=F.direction;an(t,$,be=>e(28,h=be));const D=N&&F.genId("text-range")||"";let J="none",Z=12,W=1.25,G="",z,he="",ye="",Te=null,_e;return t.$$set=be=>{"componentContext"in be&&e(0,p=be.componentContext),"text"in be&&e(1,b=be.text),"rootFontSize"in be&&e(11,_=be.rootFontSize),"textStyles"in be&&e(12,v=be.textStyles),"singleline"in be&&e(13,w=be.singleline),"actions"in be&&e(2,L=be.actions),"cloudBg"in be&&e(3,N=be.cloudBg),"customLineHeight"in be&&e(14,V=be.customLineHeight)},t.$$.update=()=>{var be,pt,Ye,Re,Me,Ze,et;if(t.$$.dirty&1&&p.json&&(e(15,J="none"),e(16,Z=12),e(17,W=1.25),e(18,G=""),e(19,z=void 0),e(20,he=""),e(21,ye=""),e(22,Te=null),e(23,_e=void 0)),t.$$.dirty&4096){let Q="none";(v.underline||v.strike)&&(v.underline==="single"&&v.strike==="single"?Q="both":v.underline==="single"?Q="underline":v.strike==="single"&&(Q="strike")),e(15,J=Q)}t.$$.dirty&69632&&e(16,Z=Kn(v.font_size,Z)),t.$$.dirty&69632&&Pn(v.line_height)&&e(17,W=Number(v.line_height)/Z),t.$$.dirty&4096&&Vn(v.letter_spacing)&&e(18,G=we(v.letter_spacing)),t.$$.dirty&528384&&(e(19,z=_o(v.font_weight,v.font_weight_value,z)),typeof v.font_family=="string"&&v.font_family?e(20,he=F.typefaceProvider(v.font_family,{fontWeight:z||400})):e(20,he="")),t.$$.dirty&2101256&&e(21,ye=N?"transparent":Ir(v.text_color,1,ye)),t.$$.dirty&4096&&e(8,n=v.top_offset?we(v.top_offset):""),t.$$.dirty&4096&&e(5,i=((be=v.background)==null?void 0:be.type)==="cloud"),t.$$.dirty&4096&&e(26,o=((pt=v.background)==null?void 0:pt.type)==="cloud"?v.background.paddings:void 0),t.$$.dirty&4096&&e(24,s=((Ye=v.background)==null?void 0:Ye.type)==="solid"?es([v.background]):null),t.$$.dirty&4096&&((Re=v.border)!=null&&Re.stroke&&v.border.stroke.color&&Ir(v.border.stroke.color)!=="transparent"&&Pn(v.border.stroke.width)&&((Me=v.background)==null?void 0:Me.type)!=="cloud"?e(22,Te={color:v.border.stroke.color,width:v.border.stroke.width,corner_radius:v.border.corner_radius}):e(22,Te=null)),t.$$.dirty&4198440&&e(4,a=N?i&&v.background.corner_radius||0:Te?Kn(Te.corner_radius,0):0),t.$$.dirty&69632&&e(25,l=v.text_shadow?Kd(v.text_shadow,Z):void 0),t.$$.dirty&4096&&typeof v.baseline_offset=="number"&&e(23,_e=v.baseline_offset),t.$$.dirty&4096&&e(27,c=typeof v.baseline_offset=="number"?void 0:v.alignment_vertical),t.$$.dirty&142663712&&e(7,u={singleline:w,decoration:J,align:c,cloud:i,"relative-vertical-align":!!(V&&_e)}),t.$$.dirty&536827960&&e(6,f={"font-size":we(Z*10/_),"line-height":c?"normal":W,"letter-spacing":G,"font-weight":z,"font-family":he,"vertical-align":V||_e===void 0?void 0:we(_e*10/Z),top:V&&_e!==void 0?we(-_e*10/Z):void 0,margin:o?di(al(o,-10/Z),h):void 0,padding:o?di(al(o,10/Z),h):void 0,filter:N&&i?`url(#${D})`:l,color:ye,background:N?i?Md(v.background.color,255,"transparent"):void 0:(s==null?void 0:s.color)||void 0,opacity:N&&i?((et=(Ze=Ei(v.background.color))==null?void 0:Ze.a)!=null?et:255)/255:void 0,"box-shadow":Te?`inset 0 0 0 ${we(Te.width*10/Z)} ${Te.color}`:void 0,"border-radius":a?we(a*10/Z):void 0,"font-feature-settings":v.font_feature_settings||void 0})},[p,b,L,N,a,i,f,u,n,$,D,_,v,w,V,J,Z,W,G,z,he,ye,Te,_e,s,l,o,c,h]}class cl extends Hr{constructor(r){super(),Br(this,r,yh,bh,wr,{componentContext:0,text:1,rootFontSize:11,textStyles:12,singleline:13,actions:2,cloudBg:3,customLineHeight:14})}}function ul(t,r,e){return t==="left"||t==="center"||t==="right"||t==="start"||t==="end"?t==="left"?r==="ltr"?"start":"end":t==="right"?r==="ltr"?"end":"start":t:e}function fl(t,r){return t==="top"||t==="center"||t==="bottom"||t==="baseline"?t==="top"?"start":t==="bottom"?"end":t:r}function vh(t){return String(t!=null?t:"")}function za(t,r){return t==="source_in"||t==="source_atop"||t==="darken"||t==="lighten"||t==="multiply"||t==="screen"?t:r}function ls(t,r){let e;return function(...n){e!==null&&clearTimeout(e),e=setTimeout(()=>{t.apply(this,n),e=null},r)}}function wh(t,r){let e=null;const n=()=>{const a=getComputedStyle(t),l=parseFloat(a.lineHeight);t.style.webkitLineClamp="",t.style.maxHeight="";const c=t.offsetHeight,u=t.scrollHeight;let f=Math.max(1,Math.floor(c/l));r.maxLines&&r.maxLines<f&&(f=r.maxLines),u>f*l+1e-9&&(t.style.webkitLineClamp=String(f),t.style.maxHeight=l*f+"px")},i=ls(n,50),o=()=>{e&&(e.disconnect(),e=null)},s=()=>{if(o(),r.enabled){if(n(),typeof ResizeObserver<"u"){e=new ResizeObserver(i);const a=t.parentElement;a&&e.observe(a)}}else t.style.webkitLineClamp=String(r.lineClamp||"")};return s(),{update(a){r=a,s()},destroy(){o()}}}const{Boolean:La}=ai;function Ra(t,r,e){const n=t.slice();return n[64]=r[e],n}function Ba(t,r,e){const n=t.slice();return n[64]=r[e],n}function Ha(t){let r,e,n,i,o=sr(t[12]),s=[];for(let l=0;l<o.length;l+=1)s[l]=Ua(Ba(t,o,l));const a=l=>te(s[l],1,1,()=>{s[l]=null});return{c(){r=Be("span");for(let l=0;l<s.length;l+=1)s[l].c();this.h()},l(l){r=Ge(l,"SPAN",{class:!0,style:!0});var c=De(r);for(let u=0;u<s.length;u+=1)s[u].l(c);c.forEach(E),this.h()},h(){m(r,"class",e=bt("text__inner",qn,{...t[15],"cloud-bg":!0})),m(r,"style",n=Vt({...t[14],padding:t[13]}))},m(l,c){ie(l,r,c);for(let u=0;u<s.length;u+=1)s[u]&&s[u].m(r,null);i=!0},p(l,c){if(c[0]&5257){o=sr(l[12]);let u;for(u=0;u<o.length;u+=1){const f=Ba(l,o,u);s[u]?(s[u].p(f,c),U(s[u],1)):(s[u]=Ua(f),s[u].c(),U(s[u],1),s[u].m(r,null))}for(ir(),u=o.length;u<s.length;u+=1)a(u);or()}(!i||c[0]&32768&&e!==(e=bt("text__inner",qn,{...l[15],"cloud-bg":!0})))&&m(r,"class",e),(!i||c[0]&24576&&n!==(n=Vt({...l[14],padding:l[13]})))&&m(r,"style",n)},i(l){if(!i){for(let c=0;c<o.length;c+=1)U(s[c]);i=!0}},o(l){s=s.filter(La);for(let c=0;c<s.length;c+=1)te(s[c]);i=!1},d(l){l&&E(r),dn(s,l)}}}function kh(t){let r,e,n,i,o;return{c(){r=Be("span"),e=Be("span"),this.h()},l(s){r=Ge(s,"SPAN",{style:!0});var a=De(r);e=Ge(a,"SPAN",{class:!0,style:!0}),De(e).forEach(E),a.forEach(E),this.h()},h(){m(e,"class",n=bt("text__image-wrapper",qn,{align:t[64].image.verticalAlign,crop:t[10]!==null})),m(e,"style",i=Vt({width:t[64].image.width,height:t[10]&&t[64].image.verticalAlign!=="baseline"?t[10]+"em":void 0})),m(r,"style",o=Vt(t[64].image.wrapperStyle))},m(s,a){ie(s,r,a),Ct(r,e)},p(s,a){a[0]&5120&&n!==(n=bt("text__image-wrapper",qn,{align:s[64].image.verticalAlign,crop:s[10]!==null}))&&m(e,"class",n),a[0]&5120&&i!==(i=Vt({width:s[64].image.width,height:s[10]&&s[64].image.verticalAlign!=="baseline"?s[10]+"em":void 0}))&&m(e,"style",i),a[0]&4096&&o!==(o=Vt(s[64].image.wrapperStyle))&&m(r,"style",o)},i:C,o:C,d(s){s&&E(r)}}}function Ah(t){let r,e,n=t[64].text&&Wa(t);return{c(){n&&n.c(),r=Pe()},l(i){n&&n.l(i),r=Pe()},m(i,o){n&&n.m(i,o),ie(i,r,o),e=!0},p(i,o){i[64].text?n?(n.p(i,o),o[0]&4096&&U(n,1)):(n=Wa(i),n.c(),U(n,1),n.m(r.parentNode,r)):n&&(ir(),te(n,1,1,()=>{n=null}),or())},i(i){e||(U(n),e=!0)},o(i){te(n),e=!1},d(i){i&&E(r),n&&n.d(i)}}}function Wa(t){let r,e;return r=new cl({props:{componentContext:t[0],text:t[64].text,rootFontSize:t[3],textStyles:t[64].textStyles,singleline:t[7],cloudBg:!0}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&4096&&(o.text=n[64].text),i[0]&8&&(o.rootFontSize=n[3]),i[0]&4096&&(o.textStyles=n[64].textStyles),i[0]&128&&(o.singleline=n[7]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function Ua(t){let r,e,n,i;const o=[Ah,kh],s=[];function a(l,c){return"text"in l[64]?0:l[64].image?1:-1}return~(r=a(t))&&(e=s[r]=o[r](t)),{c(){e&&e.c(),n=Pe()},l(l){e&&e.l(l),n=Pe()},m(l,c){~r&&s[r].m(l,c),ie(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?~r&&s[r].p(l,c):(e&&(ir(),te(s[u],1,1,()=>{s[u]=null}),or()),~r?(e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(l){i||(U(e),i=!0)},o(l){te(e),i=!1},d(l){l&&E(n),~r&&s[r].d(l)}}}function Eh(t){let r,e;return r=new cl({props:{componentContext:t[0],text:t[2],rootFontSize:t[3],textStyles:t[8],singleline:t[7],customLineHeight:t[10]}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&4&&(o.text=n[2]),i[0]&8&&(o.rootFontSize=n[3]),i[0]&256&&(o.textStyles=n[8]),i[0]&128&&(o.singleline=n[7]),i[0]&1024&&(o.customLineHeight=n[10]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function jh(t){let r,e,n=sr(t[12]),i=[];for(let s=0;s<n.length;s+=1)i[s]=Ya(Ra(t,n,s));const o=s=>te(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();r=Pe()},l(s){for(let a=0;a<i.length;a+=1)i[a].l(s);r=Pe()},m(s,a){for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(s,a);ie(s,r,a),e=!0},p(s,a){if(a[0]&5257|a[1]&8){n=sr(s[12]);let l;for(l=0;l<n.length;l+=1){const c=Ra(s,n,l);i[l]?(i[l].p(c,a),U(i[l],1)):(i[l]=Ya(c),i[l].c(),U(i[l],1),i[l].m(r.parentNode,r))}for(ir(),l=n.length;l<i.length;l+=1)o(l);or()}},i(s){if(!e){for(let a=0;a<n.length;a+=1)U(i[a]);e=!0}},o(s){i=i.filter(La);for(let a=0;a<i.length;a+=1)te(i[a]);e=!1},d(s){s&&E(r),dn(i,s)}}}function Ch(t){let r,e,n,i,o,s,a,l,c,u,f,h,p,b=[{class:i=qn.text__image},{src:o=t[64].image.url},{loading:s=t[64].image.preloadRequired?"eager":"lazy"},{decoding:"async"},{alt:a=t[64].image.description},t[64].image.a11yAttrs,{style:l=Vt({height:t[64].image.height,filter:t[64].image.svgFilterId?`url(#${t[64].image.svgFilterId})`:void 0})}],_={};for(let v=0;v<b.length;v+=1)_=Yn(_,b[v]);return{c(){r=Be("span"),e=Be("span"),n=Be("img"),this.h()},l(v){r=Ge(v,"SPAN",{style:!0});var w=De(r);e=Ge(w,"SPAN",{class:!0,style:!0});var L=De(e);n=Ge(L,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,alt:!0,style:!0}),L.forEach(E),w.forEach(E),this.h()},h(){$n(n,_),m(e,"class",c=bt("text__image-wrapper",qn,{align:t[64].image.verticalAlign,crop:t[10]!==null})),m(e,"style",u=Vt({width:t[64].image.width,height:t[10]&&t[64].image.verticalAlign!=="baseline"?t[10]+"em":void 0})),m(r,"style",f=Vt(t[64].image.wrapperStyle))},m(v,w){ie(v,r,w),Ct(r,e),Ct(e,n),h||(p=Ue(n,"error",t[34]),h=!0)},p(v,w){$n(n,_=uo(b,[{class:i},w[0]&4096&&!On(n.src,o=v[64].image.url)&&{src:o},w[0]&4096&&s!==(s=v[64].image.preloadRequired?"eager":"lazy")&&{loading:s},{decoding:"async"},w[0]&4096&&a!==(a=v[64].image.description)&&{alt:a},w[0]&4096&&v[64].image.a11yAttrs,w[0]&4096&&l!==(l=Vt({height:v[64].image.height,filter:v[64].image.svgFilterId?`url(#${v[64].image.svgFilterId})`:void 0}))&&{style:l}])),w[0]&5120&&c!==(c=bt("text__image-wrapper",qn,{align:v[64].image.verticalAlign,crop:v[10]!==null}))&&m(e,"class",c),w[0]&5120&&u!==(u=Vt({width:v[64].image.width,height:v[10]&&v[64].image.verticalAlign!=="baseline"?v[10]+"em":void 0}))&&m(e,"style",u),w[0]&4096&&f!==(f=Vt(v[64].image.wrapperStyle))&&m(r,"style",f)},i:C,o:C,d(v){v&&E(r),h=!1,p()}}}function Sh(t){let r,e,n=t[64].text&&Ga(t);return{c(){n&&n.c(),r=Pe()},l(i){n&&n.l(i),r=Pe()},m(i,o){n&&n.m(i,o),ie(i,r,o),e=!0},p(i,o){i[64].text?n?(n.p(i,o),o[0]&4096&&U(n,1)):(n=Ga(i),n.c(),U(n,1),n.m(r.parentNode,r)):n&&(ir(),te(n,1,1,()=>{n=null}),or())},i(i){e||(U(n),e=!0)},o(i){te(n),e=!1},d(i){i&&E(r),n&&n.d(i)}}}function Ga(t){let r,e;return r=new cl({props:{componentContext:t[0],text:t[64].text,rootFontSize:t[3],textStyles:t[64].textStyles,singleline:t[7],actions:t[64].actions,customLineHeight:t[10]}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&4096&&(o.text=n[64].text),i[0]&8&&(o.rootFontSize=n[3]),i[0]&4096&&(o.textStyles=n[64].textStyles),i[0]&128&&(o.singleline=n[7]),i[0]&4096&&(o.actions=n[64].actions),i[0]&1024&&(o.customLineHeight=n[10]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function Ya(t){let r,e,n,i;const o=[Sh,Ch],s=[];function a(l,c){return"text"in l[64]?0:l[64].image?1:-1}return~(r=a(t))&&(e=s[r]=o[r](t)),{c(){e&&e.c(),n=Pe()},l(l){e&&e.l(l),n=Pe()},m(l,c){~r&&s[r].m(l,c),ie(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?~r&&s[r].p(l,c):(e&&(ir(),te(s[u],1,1,()=>{s[u]=null}),or()),~r?(e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(l){i||(U(e),i=!0)},o(l){te(e),i=!1},d(l){l&&E(n),~r&&s[r].d(l)}}}function Vh(t){let r,e,n,i,o,s,a,l,c,u,f=t[6]&&Ha(t);const h=[jh,Eh],p=[];function b(_,v){return _[12].length?0:1}return n=b(t),i=p[n]=h[n](t),{c(){f&&f.c(),r=yr(),e=Be("span"),i.c(),this.h()},l(_){f&&f.l(_),r=vr(_),e=Ge(_,"SPAN",{class:!0,style:!0});var v=De(e);i.l(v),v.forEach(E),this.h()},h(){m(e,"class",o=bt("text__inner",qn,t[15])),m(e,"style",s=Vt(t[14]))},m(_,v){f&&f.m(_,v),ie(_,r,v),ie(_,e,v),p[n].m(e,null),l=!0,c||(u=Go(a=wh.call(null,e,{enabled:t[9],lineClamp:typeof t[4]=="number"?t[4]:void 0,maxLines:t[11]})),c=!0)},p(_,v){_[6]?f?(f.p(_,v),v[0]&64&&U(f,1)):(f=Ha(_),f.c(),U(f,1),f.m(r.parentNode,r)):f&&(ir(),te(f,1,1,()=>{f=null}),or());let w=n;n=b(_),n===w?p[n].p(_,v):(ir(),te(p[w],1,1,()=>{p[w]=null}),or(),i=p[n],i?i.p(_,v):(i=p[n]=h[n](_),i.c()),U(i,1),i.m(e,null)),(!l||v[0]&32768&&o!==(o=bt("text__inner",qn,_[15])))&&m(e,"class",o),(!l||v[0]&16384&&s!==(s=Vt(_[14])))&&m(e,"style",s),a&&jr(a.update)&&v[0]&2576&&a.update.call(null,{enabled:_[9],lineClamp:typeof _[4]=="number"?_[4]:void 0,maxLines:_[11]})},i(_){l||(U(f),U(i),l=!0)},o(_){te(f),te(i),l=!1},d(_){_&&(E(r),E(e)),f&&f.d(_),p[n].d(),c=!1,u()}}}function Ih(t){let r,e;return r=new kn({props:{cls:bt("text",qn,t[16])+" "+(t[5]?tr.root__selectable:tr.root__unselectable),componentContext:t[0],layoutParams:t[1],$$slots:{default:[Vh]},$$scope:{ctx:t}}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&65568&&(o.cls=bt("text",qn,n[16])+" "+(n[5]?tr.root__selectable:tr.root__unselectable)),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&65501|i[2]&128&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function Dh(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L,N,V,F,$,D,J,Z,W,G,z,he=C,ye=()=>(he(),he=P(L,Xe=>e(47,z=Xe)),L),Te,_e=C,be=()=>(_e(),_e=P(s,Xe=>e(8,Te=Xe)),s),pt,Ye=C,Re=()=>(Ye(),Ye=P(o,Xe=>e(48,pt=Xe)),o),Me,Ze=C,et=()=>(Ze(),Ze=P(i,Xe=>e(49,Me=Xe)),i),Q,Ee=C,ge=()=>(Ee(),Ee=P(v,Xe=>e(50,Q=Xe)),v),nt,Y=C,Se=()=>(Y(),Y=P(_,Xe=>e(51,nt=Xe)),_),Je,ne=C,lt=()=>(ne(),ne=P(b,Xe=>e(52,Je=Xe)),b),je,Ie=C,kt=()=>(Ie(),Ie=P(p,Xe=>e(53,je=Xe)),p),Tt,re=C,it=()=>(re(),re=P(h,Xe=>e(54,Tt=Xe)),h),ut,gt=C,qe=()=>(gt(),gt=P(c,Xe=>e(55,ut=Xe)),c),S,rt=C,le=()=>(rt(),rt=P(f,Xe=>e(56,S=Xe)),f),Qe,At=C,fe=()=>(At(),At=P(u,Xe=>e(57,Qe=Xe)),u),me,ft=C,$e=()=>(ft(),ft=P(w,Xe=>e(9,me=Xe)),w),rr,Ot=C,Qt=()=>(Ot(),Ot=P(l,Xe=>e(58,rr=Xe)),l),Oe,yt=C,qt=()=>(yt(),yt=P(a,Xe=>e(59,Oe=Xe)),a),Gt,Kt=C,H=()=>(Kt(),Kt=P(n,Xe=>e(60,Gt=Xe)),n);t.$$.on_destroy.push(()=>he()),t.$$.on_destroy.push(()=>_e()),t.$$.on_destroy.push(()=>Ye()),t.$$.on_destroy.push(()=>Ze()),t.$$.on_destroy.push(()=>Ee()),t.$$.on_destroy.push(()=>Y()),t.$$.on_destroy.push(()=>ne()),t.$$.on_destroy.push(()=>Ie()),t.$$.on_destroy.push(()=>re()),t.$$.on_destroy.push(()=>gt()),t.$$.on_destroy.push(()=>rt()),t.$$.on_destroy.push(()=>At()),t.$$.on_destroy.push(()=>ft()),t.$$.on_destroy.push(()=>Ot()),t.$$.on_destroy.push(()=>yt()),t.$$.on_destroy.push(()=>Kt());let{componentContext:ae}=r,{layoutParams:dr=void 0}=r;const ke=Jr(en),It=ke.direction;an(t,It,Xe=>e(46,G=Xe));let He="",vt=12,ze=1.25,at=null,Et="",Fe,dt="",Xt=!1,cr="start",pr="start",Yt="",ht="",Dt="",Nt=!1,nr=[],lr=!1,Er=[];function Lr(Xe,hr,Ae,K){let Cr=[];if(Er.forEach(([xe,Ft])=>{ke.removeSvgFilter(xe,Ft)}),Er=[],!(Array.isArray(hr)&&hr.length||Array.isArray(Ae)&&Ae.length&&Xe)){e(12,nr=[]);return}const Sr=Xe;let Rt=hr||[{start:0,end:Sr.length}],tn=Ae||[],Ve=0,Bt=[],_r=[];Rt.forEach(xe=>{const Ft=xe.start||0,Le=xe.end||Xe.length,mt={top_offset:0,...xe,start:Ft,end:Le};_r.push({index:Ft,range:mt,type:"rangeStart",isStart:!0}),_r.push({index:Le,range:mt,type:"rangeEnd"})}),tn.forEach((xe,Ft)=>{xe.start!==void 0&&xe.url&&xe.start<=Sr.length&&_r.push({index:xe.indexing_direction==="reversed"?Xe.length-xe.start:xe.start,image:xe,type:"image",arrayIndex:Ft})}),_r.sort((xe,Ft)=>xe.index===Ft.index?xe.type!==Ft.type?xe.type==="image"?-1:Ft.type==="image"?1:xe.type<Ft.type?-1:1:xe.type==="image"&&Ft.type==="image"?Ft.arrayIndex-xe.arrayIndex:xe.type==="rangeStart"&&Ft.type==="rangeStart"?xe.range.end-Ft.range.end:xe.type==="rangeStart"?1:Ft.type==="rangeStart"?-1:xe.type!=="image"&&Ft.type!=="image"?xe.range.start-Ft.range.start:0:xe.index-Ft.index),_r.forEach(xe=>{var mt,ct,St,Zt;let Ft=xe.type==="image"?null:xe.range,Le=xe.index;if(Le>Ve){let T=Object.assign({...K},...Bt);Bt.length&&Bt[Bt.length-1].start!==Ve&&(T.top_offset=0),Cr.push({text:Sr.substring(Ve,Le),textStyles:T,actions:xe.type==="rangeEnd"&&((ct=(mt=xe.range)==null?void 0:mt.actions)==null?void 0:ct.filter(In))||void 0})}if(xe.type==="rangeStart"&&Ft)Bt.push(Ft);else if(xe.type==="rangeEnd")Bt=Bt.filter(T=>T!==xe.range);else if(xe.type==="image"){let T=Object.assign({...K},...Bt),ot=we((xe.image.width&&xe.image.width.value||20)*10/(T.font_size||12)),de=we((xe.image.height&&xe.image.height.value||20)*10/(T.font_size||12));const d={"font-size":we((Number(T.font_size)||12)*10/vt)};let Ne="";const jt=xe.image.tint_color,Or=za(xe.image.tint_mode,"source_in");if(jt){const nn=Ir(xe.image.tint_color);Ne=ke.addSvgFilter(nn,Or),Er.push([nn,Or])}const fr={},R=(St=xe.image.accessibility)==null?void 0:St.type,Dr=((Zt=xe.image.accessibility)==null?void 0:Zt.description)||"";(R==="button"||R==="image")&&Dr?fr.role=R:(!Dr||R==="none")&&(fr["aria-hidden"]="true"),Cr.push({image:{url:xe.image.url,width:ot,height:de,wrapperStyle:d,svgFilterId:Ne,preloadRequired:!!xe.image.preload_required,verticalAlign:xe.image.alignment_vertical,description:Dr,a11yAttrs:fr}})}Ve=Le}),Ve<Sr.length&&Cr.push({text:Sr.substring(Ve),textStyles:{...K}}),e(12,nr=Cr),e(6,lr=Cr.some(xe=>{var Ft;return"text"in xe&&((Ft=xe.textStyles.background)==null?void 0:Ft.type)==="cloud"}))}function Zr(Xe){Xe.target&&"classList"in Xe.target&&Xe.target.classList.add(qn.text__image_hidden)}return un(()=>{Er.forEach(([Xe,hr])=>{ke.removeSvgFilter(Xe,hr)})}),t.$$set=Xe=>{"componentContext"in Xe&&e(0,ae=Xe.componentContext),"layoutParams"in Xe&&e(1,dr=Xe.layoutParams)},t.$$.update=()=>{if(t.$$.dirty[0]&1&&ae.json&&(e(3,vt=12),e(35,ze=1.25),e(10,at=null),e(36,Et=""),e(11,Fe=void 0),e(4,dt=""),e(37,Xt=!1),e(38,cr="start"),e(39,pr="start"),e(40,Yt=""),e(42,Dt=""),e(5,Nt=!1)),t.$$.dirty[0]&1&&H(e(32,n=ae.getDerivedFromVars(ae.json.text))),t.$$.dirty[0]&1&&et(e(31,i=ae.getDerivedFromVars(ae.json.ranges))),t.$$.dirty[0]&1&&Re(e(30,o=ae.getDerivedFromVars(ae.json.images))),t.$$.dirty[0]&1&&be(e(29,s=ae.getDerivedFromVars({font_size:ae.json.font_size,letter_spacing:ae.json.letter_spacing,font_weight:ae.json.font_weight,font_weight_value:ae.json.font_weight_value,font_family:ae.json.font_family,text_color:ae.json.text_color,underline:ae.json.underline,strike:ae.json.strike,line_height:ae.json.line_height,text_shadow:ae.json.text_shadow,font_feature_settings:ae.json.font_feature_settings}))),t.$$.dirty[0]&1&&qt(e(28,a=ae.getDerivedFromVars(ae.json.font_size))),t.$$.dirty[0]&1&&Qt(e(27,l=ae.getDerivedFromVars(ae.json.line_height))),t.$$.dirty[0]&1&&qe(e(26,c=ae.getDerivedFromVars(ae.json.max_lines))),t.$$.dirty[0]&1&&fe(e(25,u=ae.getDerivedFromVars(ae.json.text_alignment_horizontal))),t.$$.dirty[0]&1&&le(e(24,f=ae.getDerivedFromVars(ae.json.text_alignment_vertical))),t.$$.dirty[0]&1&&it(e(23,h=ae.getDerivedFromVars(ae.json.text_color))),t.$$.dirty[0]&1&&kt(e(22,p=ae.getDerivedFromVars(ae.json.focused_text_color))),t.$$.dirty[0]&1&<(e(21,b=ae.getDerivedFromVars(ae.json.truncate))),t.$$.dirty[0]&1&&Se(e(20,_=ae.getDerivedFromVars(ae.json.text_gradient))),t.$$.dirty[0]&1&&ge(e(19,v=ae.getDerivedFromVars(ae.json.selectable))),t.$$.dirty[0]&1&&$e(e(18,w=ae.getDerivedFromVars(ae.json.auto_ellipsize))),t.$$.dirty[0]&1&&ye(e(17,L=ae.getDerivedFromVars(ae.json.paddings))),t.$$.dirty[0]&1|t.$$.dirty[1]&536870912&&(typeof ae.json.text=="string"?e(2,He=vh(Gt)):(e(2,He=""),ae.logError(x(new Error("Incorrect text value type"))))),t.$$.dirty[0]&8|t.$$.dirty[1]&268435456&&e(3,vt=Kn(Oe,vt)),t.$$.dirty[0]&8|t.$$.dirty[1]&134217744){const Xe=rr;Pn(Xe)?(e(35,ze=Number(Xe)/vt),e(10,at=ze)):e(10,at=null)}if(t.$$.dirty[1]&16777216&&e(7,N=ut===1),t.$$.dirty[0]&512|t.$$.dirty[1]&16777232){let Xe="",hr,Ae="",K=!1;if(ut&&ut>1){const Cr=Number(ut);Xe=Cr*ze+"em",hr=Cr,Ae=Cr,K=!0}else me&&ut!==1&&(K=!0);e(36,Et=Xe),e(11,Fe=hr),e(4,dt=Ae),e(37,Xt=K)}if(t.$$.dirty[1]&67141760&&e(38,cr=ul(Qe,G,cr)),t.$$.dirty[1]&33554688&&e(39,pr=fl(S,pr)),t.$$.dirty[0]&4|t.$$.dirty[1]&262144&&e(45,V=!Me||He&&Me.length===1&&Me[0]&&(!Me[0].start||Me[0].start===0)&&(!Me[0].end||typeof Me[0].end=="number"&&Me[0].end>=He.length)),t.$$.dirty[1]&8650752&&e(44,F=!!Tt!=!!(Me&&Me[0]&&Me[0].text_color)),t.$$.dirty[1]&25453056){let Xe="";ut&&V&&F&&(Xe=Ir(Tt||Me&&Me[0]&&Me[0].text_color,1,Yt)),e(40,Yt=Xe)}if(t.$$.dirty[1]&4195328&&e(41,ht=Ir(je,1,ht)),t.$$.dirty[1]&2097152&&e(43,$=Je==="none"?"none":""),t.$$.dirty[1]&1048576){let Xe="";if(nt){const hr=es([nt]);hr.image&&(Xe=hr.image)}e(42,Dt=Xe)}t.$$.dirty[0]&32|t.$$.dirty[1]&524288&&e(5,Nt=ti(Q,Nt)),t.$$.dirty[0]&260|t.$$.dirty[1]&393216&&Lr(He,Me,pt,Te),t.$$.dirty[0]&128|t.$$.dirty[1]&5568&&e(16,D={singleline:N,multiline:Xt,halign:cr,valign:pr,truncate:$,"has-focus-color":!!ht}),t.$$.dirty[0]&64|t.$$.dirty[1]&2048&&e(15,J={gradient:!!Dt,"has-cloud-bg":lr}),t.$$.dirty[0]&24|t.$$.dirty[1]&3632&&e(14,Z={"font-size":we(vt),"line-height":ze,"max-height":Et,"-webkit-line-clamp":dt,color:Yt,"background-image":Dt,"--divkit-text-focus-color":ht}),t.$$.dirty[0]&8|t.$$.dirty[1]&98304&&e(13,W=di(al(So(z,{})||{},10/vt),G))},[ae,dr,He,vt,dt,Nt,lr,N,Te,me,at,Fe,nr,W,Z,J,D,L,w,v,_,b,p,h,f,u,c,l,a,s,o,i,n,It,Zr,ze,Et,Xt,cr,pr,Yt,ht,Dt,$,F,V,G,z,pt,Me,Q,nt,Je,je,Tt,ut,S,Qe,rr,Oe,Gt]}class Th extends Hr{constructor(r){super(),Br(this,r,Dh,Ih,wr,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const Ja={container:"divkit-a6270",container_wrap:"divkit-758dd",container_overflow_visible:"divkit-34175",container_orientation_vertical:"divkit-5d3b3",container_valign_start:"divkit-76f26",container_valign_center:"divkit-71fc3",container_valign_end:"divkit-d66e1","container_valign_space-between":"divkit-4aa6d","container_valign_space-around":"divkit-846d1","container_valign_space-evenly":"divkit-e04b5",container_halign_start:"divkit-4d9fa",container_halign_center:"divkit-f82bf",container_halign_end:"divkit-221f7","container_halign_space-between":"divkit-2daed","container_halign_space-around":"divkit-359ca","container_halign_space-evenly":"divkit-82605",container_orientation_horizontal:"divkit-88fee",container_orientation_overlap:"divkit-825b7"};function qa(t){return{top:Number(t==null?void 0:t.top)||0,right:Number(t==null?void 0:t.right)||0,bottom:Number(t==null?void 0:t.bottom)||0,left:Number(t==null?void 0:t.left)||0}}function Ka(t,r,e){const n=((r==null?void 0:r.margins.left)||0)+((r==null?void 0:r.margins.right)||0),i=((r==null?void 0:r.margins.top)||0)+((r==null?void 0:r.margins.bottom)||0);r!=null&&r.show_at_start&&(e?t.top=r.style.height+i:t.left=r.style.width+n),r!=null&&r.show_at_end&&(e?t.bottom=r.style.height+i:t.right=r.style.width+n)}function Fh(t,r,e){const n={};return Ka(n,r,t==="vertical"),Ka(n,e,t==="horizontal"),n}function Mh(t,r,e){let n;const i=((r==null?void 0:r.margins.left)||0)+((r==null?void 0:r.margins.right)||0),o=((r==null?void 0:r.margins.top)||0)+((r==null?void 0:r.margins.bottom)||0),s=((e==null?void 0:e.margins.left)||0)+((e==null?void 0:e.margins.right)||0),a=((e==null?void 0:e.margins.top)||0)+((e==null?void 0:e.margins.bottom)||0);return t==="horizontal"?n=[e!=null&&e.show_between?e.style.height+a:0,r!=null&&r.show_between?r.style.width+i:0]:n=[r!=null&&r.show_between?r.style.height+o:0,e!=null&&e.show_between?e.style.width+s:0],n.map(we).join(" ")}function Ph(t){var e;const r=(e=t.width)==null?void 0:e.type;return r!=="wrap_content"&&r!=="fixed"}function Nh(t){var e;return((e=t.height)==null?void 0:e.type)==="match_parent"}function Oh(t,r){return t==="vertical"||t==="horizontal"||t==="overlap"?t:r}function zh(t){var r,e,n;return{width:qr((r=t.item_width)==null?void 0:r.value,10),height:qr((e=t.item_height)==null?void 0:e.value,10),radius:qr((n=t.corner_radius)==null?void 0:n.value,5)}}function Lh(t){var e;const r=qr((e=t.radius)==null?void 0:e.value,10)*2;return{width:r,height:r,radius:r}}function Rh(t,r,e){var l;const n={},i=r.stroke||(e==null?void 0:e.stroke),o=i!=null&&i.color?Ir(i.color):"",s=i!=null&&i.width?Number((l=i.width)!=null?l:1):"";n.width=t.width,n.height=t.height,n.borderRadius=t.radius;const a=r.background_color||(e==null?void 0:e.color);return n.background=Ir(a),o&&s&&(n.boxShadow=`inset 0 0 0 ${we(s)} ${o}`),n}function ri(t,r,e){if(!t||!t.shape||!t.shape.type||!r.includes(t.shape.type)||t.type!=="shape_drawable")return e;let n;if(t.shape.type==="rounded_rectangle")n=zh(t.shape);else if(t.shape.type==="circle")n=Lh(t.shape);else return e;return Rh(n,t.shape,{color:t.color,stroke:t.stroke})}let Vo;function Xa(){if(typeof document>"u"&&(Vo=!0),Vo!==void 0)return Vo;const t=document.createElement("div");return t.style.position="absolute",t.style.display="flex",t.style.flexDirection="column",t.style.gap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),Vo=t.scrollHeight===1,document.body.removeChild(t),Vo}function Bh(t,r){return t==="top"||t==="center"||t==="bottom"||t==="baseline"||t==="space-between"||t==="space-around"||t==="space-evenly"?t==="top"?"start":t==="bottom"?"end":t:r}function Hh(t,r,e){return t==="left"||t==="center"||t==="right"||t==="space-between"||t==="space-around"||t==="space-evenly"||t==="start"||t==="end"?t==="left"?r==="ltr"?"start":"end":t==="right"?r==="ltr"?"end":"start":t:e}function Wh(){}function qi(t){return{subscribe(r){return r(t),Wh}}}function dl(t,r,e,n){const i=[],o=n.prototypes;return o&&t.forEach((s,a)=>{if(s===null||typeof s!="object")return;const l=r.preparePrototypeVariables(n.data_element_name||"it",s,a);let c,u;for(let f=0;f<o.length;++f){const h=o[f];if(!h.div)continue;if(h.selector===void 0){c=h.div,u=e.getJsonWithVars(h.id,l);break}if(e.getJsonWithVars(h.selector,l)){c=h.div,u=e.getJsonWithVars(h.id,l);break}}c&&i.push({div:c,id:u,vars:l})}),i}const Io={"container-separator":"divkit-e4041","container-separator__item":"divkit-566e3","container-separator__shape":"divkit-4178a"};function Uh(t,r){let e=0,n,i=!1;return function(){const o=Date.now();return!e||Math.abs(o-e)>r?(e=o,n=t.apply(this,arguments)):(i||(i=!0,setTimeout(()=>{i=!1,n=t.apply(this,arguments)},r)),n)}}function Gh(t){const r=t.getBoundingClientRect(),e=getComputedStyle(t);return{top:r.top-parseFloat(e.marginTop),right:r.right+parseFloat(e.marginRight),bottom:r.bottom+parseFloat(e.marginBottom),left:r.left-parseFloat(e.marginLeft)}}const{window:Yh}=ai;function Za(t,r,e){const n=t.slice();return n[16]=r[e],n}function Qa(t){let r,e,n=`${t[16].style.width}px`,i=`${t[16].style.height}px`,o=`${t[16].style.borderRadius}px`,s,a=`${t[16].left}px`,l=`${t[16].top}px`,c=`${t[16].width}px`,u=`${t[16].height}px`;return{c(){r=Be("div"),e=Be("div"),s=yr(),this.h()},l(f){r=Ge(f,"DIV",{class:!0});var h=De(r);e=Ge(h,"DIV",{class:!0}),De(e).forEach(E),s=vr(h),h.forEach(E),this.h()},h(){m(e,"class",Io["container-separator__shape"]),B(e,"width",n),B(e,"height",i),B(e,"border-radius",o),B(e,"background",t[16].style.background),B(e,"box-shadow",t[16].style.boxShadow),m(r,"class",Io["container-separator__item"]),B(r,"left",a),B(r,"top",l),B(r,"width",c),B(r,"height",u)},m(f,h){ie(f,r,h),Ct(r,e),Ct(r,s)},p(f,h){h&2&&n!==(n=`${f[16].style.width}px`)&&B(e,"width",n),h&2&&i!==(i=`${f[16].style.height}px`)&&B(e,"height",i),h&2&&o!==(o=`${f[16].style.borderRadius}px`)&&B(e,"border-radius",o),h&2&&B(e,"background",f[16].style.background),h&2&&B(e,"box-shadow",f[16].style.boxShadow),h&2&&a!==(a=`${f[16].left}px`)&&B(r,"left",a),h&2&&l!==(l=`${f[16].top}px`)&&B(r,"top",l),h&2&&c!==(c=`${f[16].width}px`)&&B(r,"width",c),h&2&&u!==(u=`${f[16].height}px`)&&B(r,"height",u)},d(f){f&&E(r)}}}function Jh(t){let r,e,n,i=sr(t[1]),o=[];for(let s=0;s<i.length;s+=1)o[s]=Qa(Za(t,i,s));return{c(){r=Be("div");for(let s=0;s<o.length;s+=1)o[s].c();this.h()},l(s){r=Ge(s,"DIV",{class:!0});var a=De(r);for(let l=0;l<o.length;l+=1)o[l].l(a);a.forEach(E),this.h()},h(){m(r,"class",Io["container-separator"])},m(s,a){ie(s,r,a);for(let l=0;l<o.length;l+=1)o[l]&&o[l].m(r,null);t[13](r),e||(n=Ue(Yh,"resize",t[2]),e=!0)},p(s,[a]){if(a&2){i=sr(s[1]);let l;for(l=0;l<i.length;l+=1){const c=Za(s,i,l);o[l]?o[l].p(c,a):(o[l]=Qa(c),o[l].c(),o[l].m(r,null))}for(;l<o.length;l+=1)o[l].d(1);o.length=i.length}},i:C,o:C,d(s){s&&E(r),dn(o,s),t[13](null),e=!1,n()}}}const qh=10;function hl(t,r,e,n,i,o){const s=r.margins.left,a=r.margins.right,l=r.margins.top,c=r.margins.bottom;o?t.push({top:e.bottom+l,left:i.left+s,width:Math.max(0,i.right-i.left-s-a),height:n.top-e.bottom-l-c,style:r.style}):t.push({top:i.top+l,left:e.right+s,width:n.left-e.right-s-a,height:Math.max(0,i.bottom-i.top-l-c),style:r.style})}function xa(t,r,e,n,i,o){const s={top:Math.min(...e.map(a=>a.top)),right:Math.max(...e.map(a=>a.right)),bottom:Math.max(...e.map(a=>a.bottom)),left:Math.min(...e.map(a=>a.left))};if(r!=null&&r.show_at_start){let a,l;i==="space-around"||i==="space-evenly"?(a=o.left-r.style.width,l=o.top-r.style.height):(a=e[0].left-r.style.width-r.margins.left-r.margins.right,l=e[0].top-r.style.height-r.margins.top-r.margins.bottom),hl(t,r,{top:0,right:a,bottom:l,left:0},e[0],s,n)}if(r!=null&&r.show_between)for(let a=0;a<e.length-1;++a)hl(t,r,e[a],e[a+1],s,n);if(r!=null&&r.show_at_end){const a=e[e.length-1];let l,c;i==="space-around"||i==="space-evenly"?(l=o.bottom+r.style.height,c=o.right+r.style.width):(l=a.bottom+r.style.height+r.margins.top+r.margins.bottom,c=a.right+r.style.width+r.margins.left+r.margins.right),hl(t,r,a,{top:l,right:0,bottom:0,left:c},s,n)}}function Kh(t,r,e){let n,{orientation:i}=r,{separator:o}=r,{lineSeparator:s}=r,{contentHAlign:a}=r,{contentVAlign:l}=r,{direction:c}=r;const u=Uh(w,qh);let f=[],h,p=!1,b=null,_=null;function v(N){N.some(V=>{var $;const F=($=V.target)==null?void 0:$.classList;return!(F!=null&&F.contains(Io["container-separator__shape"]))&&!(F!=null&&F.contains(Io["container-separator"]))})&&u()}function w(){if(!n)return;const N=n.getBoundingClientRect(),V=window.getComputedStyle(n),F={top:N.top+parseFloat(V.paddingTop),right:N.right-parseFloat(V.paddingRight),bottom:N.bottom-parseFloat(V.paddingBottom),left:N.left+parseFloat(V.paddingLeft)};e(1,f=[]);let $=[...n.children].filter(Z=>Z!==h&&!Z.classList.contains($o.outer__border)),D=[];for(;$.length;){const Z=[],W=$.shift();Z.push(W);let G=W.getBoundingClientRect(),z=G.left,he=G.right,ye=G.bottom;for(;$.length;){let Te=$[0],_e=Te.getBoundingClientRect();if(i==="vertical"){if(_e.top<ye)break}else if(c==="ltr"?_e.left<he:_e.right>z)break;he=Math.max(he,_e.right),z=Math.min(z,_e.left),ye=Math.max(ye,_e.bottom),Z.push(Te),$.shift()}D.push(Z)}const J=[];D.forEach(Z=>{const W=Z.map(z=>Gh(z));c==="rtl"&&i==="horizontal"&&W.reverse(),o&&xa(f,o,W,i==="vertical",i==="vertical"?l:a,F);const G={top:Math.min(...W.map(z=>z.top)),right:Math.max(...W.map(z=>z.right)),bottom:Math.max(...W.map(z=>z.bottom)),left:Math.min(...W.map(z=>z.left))};J.push(G)}),c==="rtl"&&i==="vertical"&&J.reverse(),s&&xa(f,s,J,i==="horizontal",i==="vertical"?a:l,F),f.forEach(Z=>{Z.top-=N.top,Z.left-=N.left})}ei(()=>{e(9,p=!0)}),un(()=>{e(9,p=!1)});function L(N){Pr[N?"unshift":"push"](()=>{h=N,e(0,h)})}return t.$$set=N=>{"orientation"in N&&e(3,i=N.orientation),"separator"in N&&e(4,o=N.separator),"lineSeparator"in N&&e(5,s=N.lineSeparator),"contentHAlign"in N&&e(6,a=N.contentHAlign),"contentVAlign"in N&&e(7,l=N.contentVAlign),"direction"in N&&e(8,c=N.direction)},t.$$.update=()=>{t.$$.dirty&1&&e(12,n=(h==null?void 0:h.parentElement)||null),t.$$.dirty&7680&&(p&&n||b||_)&&(b&&(b.disconnect(),e(10,b=null)),_&&(_.disconnect(),e(11,_=null)),p&&n&&(typeof MutationObserver<"u"&&(e(10,b=new MutationObserver(v)),b.observe(n,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),typeof ResizeObserver<"u"&&(e(11,_=new ResizeObserver(u)),_.observe(n)))),t.$$.dirty&4608&&p&&n&&u()},[h,f,u,i,o,s,a,l,c,p,b,_,n,L]}class Xh extends Hr{constructor(r){super(),Br(this,r,Kh,Jh,wr,{orientation:3,separator:4,lineSeparator:5,contentHAlign:6,contentVAlign:7,direction:8})}}const{Boolean:Zh}=ai;function $a(t,r,e){const n=t.slice();return n[49]=r[e],n}function ec(t){let r,e;return r=new ii({props:{componentContext:t[49],layoutParams:t[8]}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&512&&(o.componentContext=n[49]),i[0]&256&&(o.layoutParams=n[8]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function tc(t){let r,e;return r=new Xh({props:{direction:t[10],separator:t[5],lineSeparator:t[6],orientation:t[2],contentHAlign:t[4],contentVAlign:t[3]}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&1024&&(o.direction=n[10]),i[0]&32&&(o.separator=n[5]),i[0]&64&&(o.lineSeparator=n[6]),i[0]&4&&(o.orientation=n[2]),i[0]&16&&(o.contentHAlign=n[4]),i[0]&8&&(o.contentVAlign=n[3]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function Qh(t){let r,e,n,i=sr(t[9]),o=[];for(let l=0;l<i.length;l+=1)o[l]=ec($a(t,i,l));const s=l=>te(o[l],1,1,()=>{o[l]=null});let a=(t[5]||t[6])&&tc(t);return{c(){for(let l=0;l<o.length;l+=1)o[l].c();r=yr(),a&&a.c(),e=Pe()},l(l){for(let c=0;c<o.length;c+=1)o[c].l(l);r=vr(l),a&&a.l(l),e=Pe()},m(l,c){for(let u=0;u<o.length;u+=1)o[u]&&o[u].m(l,c);ie(l,r,c),a&&a.m(l,c),ie(l,e,c),n=!0},p(l,c){if(c[0]&768){i=sr(l[9]);let u;for(u=0;u<i.length;u+=1){const f=$a(l,i,u);o[u]?(o[u].p(f,c),U(o[u],1)):(o[u]=ec(f),o[u].c(),U(o[u],1),o[u].m(r.parentNode,r))}for(ir(),u=i.length;u<o.length;u+=1)s(u);or()}l[5]||l[6]?a?(a.p(l,c),c[0]&96&&U(a,1)):(a=tc(l),a.c(),U(a,1),a.m(e.parentNode,e)):a&&(ir(),te(a,1,1,()=>{a=null}),or())},i(l){if(!n){for(let c=0;c<i.length;c+=1)U(o[c]);U(a),n=!0}},o(l){o=o.filter(Zh);for(let c=0;c<o.length;c+=1)te(o[c]);te(a),n=!1},d(l){l&&(E(r),E(e)),dn(o,l),a&&a.d(l)}}}function xh(t){let r,e;return r=new kn({props:{cls:bt("container",Ja,t[13]),componentContext:t[0],layoutParams:t[1],style:t[12],additionalPaddings:t[14],heightByAspect:!!t[7],parentOf:t[9],replaceItems:t[27],$$slots:{default:[Qh]},$$scope:{ctx:t}}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&8192&&(o.cls=bt("container",Ja,n[13])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&4096&&(o.style=n[12]),i[0]&16384&&(o.additionalPaddings=n[14]),i[0]&128&&(o.heightByAspect=!!n[7]),i[0]&512&&(o.parentOf=n[9]),i[0]&1916|i[1]&2097152&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}const $h={start:"start",center:"center",end:"end","space-between":"start","space-around":"start","space-evenly":"start"},e_={start:"start",center:"center",end:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},rc=["rounded_rectangle","circle"];function t_(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L,N,V,F,$,D,J,Z=C,W=()=>(Z(),Z=P(_,ae=>e(35,J=ae)),_),G,z=C,he=()=>(z(),z=P(b,ae=>e(36,G=ae)),b),ye,Te=C,_e=()=>(Te(),Te=P(p,ae=>e(37,ye=ae)),p),be,pt=C,Ye=()=>(pt(),pt=P(h,ae=>e(38,be=ae)),h),Re,Me=C,Ze=()=>(Me(),Me=P(f,ae=>e(39,Re=ae)),f),et,Q=C,Ee=()=>(Q(),Q=P(u,ae=>e(40,et=ae)),u),ge,nt,Y=C,Se=()=>(Y(),Y=P(c,ae=>e(41,nt=ae)),c),Je,ne=C,lt=()=>(ne(),ne=P(l,ae=>e(42,Je=ae)),l),je,Ie=C,kt=()=>(Ie(),Ie=P(ft,ae=>e(43,je=ae)),ft),Tt,re=C,it=()=>(re(),re=P(a,ae=>e(44,Tt=ae)),a),ut,gt=C,qe=()=>(gt(),gt=P(s,ae=>e(45,ut=ae)),s),S,rt=C,le=()=>(rt(),rt=P(o,ae=>e(46,S=ae)),o);t.$$.on_destroy.push(()=>Z()),t.$$.on_destroy.push(()=>z()),t.$$.on_destroy.push(()=>Te()),t.$$.on_destroy.push(()=>pt()),t.$$.on_destroy.push(()=>Me()),t.$$.on_destroy.push(()=>Q()),t.$$.on_destroy.push(()=>Y()),t.$$.on_destroy.push(()=>ne()),t.$$.on_destroy.push(()=>Ie()),t.$$.on_destroy.push(()=>re()),t.$$.on_destroy.push(()=>gt()),t.$$.on_destroy.push(()=>rt());let{componentContext:Qe}=r,{layoutParams:At=void 0}=r;const fe=Jr(en),me=fe.direction;an(t,me,ae=>e(10,ge=ae));let ft,$e="vertical",rr="start",Ot="start",Qt=null,Oe=null,yt,qt={};function Gt(){e(2,$e="vertical"),e(3,rr="start"),e(4,Ot="start"),e(7,yt=void 0)}function Kt(ae){e(0,Qe={...Qe,json:{...Qe.json,items:ae.filter(ji)}})}let H=[];return un(()=>{H.forEach(ae=>{ae.destroy()})}),t.$$set=ae=>{"componentContext"in ae&&e(0,Qe=ae.componentContext),"layoutParams"in ae&&e(1,At=ae.layoutParams)},t.$$.update=()=>{var ae,dr,ke,It,He,vt,ze,at,Et;if(t.$$.dirty[0]&1&&e(34,n=Qe.origJson),t.$$.dirty[1]&8&&n&&Gt(),t.$$.dirty[0]&1&&e(33,i=Qe.json.items),t.$$.dirty[0]&1&&le(e(25,o=typeof((ae=Qe.json.item_builder)==null?void 0:ae.data)=="string"?Qe.getDerivedFromVars((dr=Qe.json.item_builder)==null?void 0:dr.data,void 0,!0):(ke=Qe.json.item_builder)!=null&&ke.data?qi(Qe.json.item_builder.data):void 0)),t.$$.dirty[0]&1&&qe(e(24,s=Qe.getDerivedFromVars(Qe.json.orientation))),t.$$.dirty[0]&1&&it(e(23,a=Qe.getDerivedFromVars(Qe.json.layout_mode))),t.$$.dirty[0]&1&<(e(22,l=Qe.getDerivedFromVars(Qe.json.content_alignment_vertical))),t.$$.dirty[0]&1&&Se(e(21,c=Qe.getDerivedFromVars(Qe.json.content_alignment_horizontal))),t.$$.dirty[0]&1&&Ee(e(20,u=Qe.getDerivedFromVars(Qe.json.separator))),t.$$.dirty[0]&1&&Ze(e(19,f=Qe.getDerivedFromVars(Qe.json.line_separator))),t.$$.dirty[0]&1&&Ye(e(18,h=Qe.getDerivedFromVars(Qe.json.aspect))),t.$$.dirty[0]&1&&_e(e(17,p=Qe.getDerivedFromVars(Qe.json.width))),t.$$.dirty[0]&1&&he(e(16,b=Qe.getDerivedFromVars(Qe.json.height))),t.$$.dirty[0]&1&&W(e(15,_=Qe.getDerivedFromVars(Qe.json.clip_to_bounds))),t.$$.dirty[0]&513|t.$$.dirty[1]&32772){let Fe=[];if(Qe.json.item_builder&&Array.isArray(S)&&Array.isArray(Qe.json.item_builder.prototypes)){const dt=Qe.json.item_builder;Fe=dl(S,fe,Qe,dt)}else Fe=(Array.isArray(i)&&i||[]).map(dt=>({div:dt}));H.forEach(dt=>{dt.destroy()}),e(9,H=Fe.map((dt,Xt)=>Qe.produceChildContext(dt.div,{path:Xt,variables:dt.vars,id:dt.id})))}if(t.$$.dirty[0]&513){let Fe=[];H.forEach(dt=>{Fe.push(Qe.getDerivedFromVars({width:dt.json.width,height:dt.json.height}))}),kt(e(11,ft=Yi(Fe,dt=>[...dt])))}if(t.$$.dirty[0]&4|t.$$.dirty[1]&16384&&e(2,$e=Oh(ut,$e)),t.$$.dirty[1]&8192&&e(28,v=Tt==="wrap"),t.$$.dirty[0]&268435460&&e(32,w=$e!=="horizontal"&&!v),t.$$.dirty[0]&268435460&&e(31,L=$e!=="vertical"&&!v),t.$$.dirty[0]&4|t.$$.dirty[1]&4096&&e(30,N=$e==="overlap"&&!je.every(Ph)),t.$$.dirty[0]&4|t.$$.dirty[1]&4096&&e(29,V=$e==="overlap"&&!je.every(Nh)),t.$$.dirty[0]&8|t.$$.dirty[1]&2048&&e(3,rr=Bh(Je,rr)),t.$$.dirty[0]&1040|t.$$.dirty[1]&1024&&e(4,Ot=Hh(nt,ge,Ot)),t.$$.dirty[0]&36|t.$$.dirty[1]&512)if(et!=null&&et.style&&$e!=="overlap"&&Xa()){const Fe=ri(et.style,rc,(Qt==null?void 0:Qt.style)||null);Fe?e(5,Qt={show_at_start:!!((It=et.show_at_start)!=null&&It),show_at_end:!!((He=et.show_at_end)!=null&&He),show_between:!!((vt=et.show_between)==null||vt),style:Fe,margins:qa(et.margins)}):e(5,Qt=null)}else e(5,Qt=null);if(t.$$.dirty[0]&68|t.$$.dirty[1]&256)if(Re!=null&&Re.style&&$e!=="overlap"&&Xa()){const Fe=ri(Re.style,rc,(Oe==null?void 0:Oe.style)||null);Fe?e(6,Oe={show_at_start:!!((ze=Re.show_at_start)!=null&&ze),show_at_end:!!((at=Re.show_at_end)!=null&&at),show_between:!!((Et=Re.show_between)==null||Et),style:Fe,margins:qa(Re.margins)}):e(6,Oe=null)}else e(6,Oe=null);if(t.$$.dirty[0]&100&&e(14,F=Qt||Oe?Fh($e,Qt,Oe):null),t.$$.dirty[1]&128){const Fe=be==null?void 0:be.ratio;Fe&&Pn(Fe)?e(7,yt=Fe):e(7,yt=void 0)}if(t.$$.dirty[0]&1879048606|t.$$.dirty[1]&99){let Fe={};$e==="overlap"&&(Fe.overlapParent=!0),$e!=="horizontal"&&(Fe.parentHAlign=v?"start":$h[Ot]),$e!=="vertical"&&(Fe.parentVAlign=v?"start":e_[rr]);const dt=(ye==null?void 0:ye.type)==="wrap_content"||(ye==null?void 0:ye.type)==="match_parent"&&(At==null?void 0:At.parentHorizontalWrapContent),Xt=!G||G.type==="wrap_content"||G.type==="match_parent"&&(At==null?void 0:At.parentVerticalWrapContent);!w&&dt&&(Fe.parentHorizontalWrapContent=!0),!yt&&!L&&Xt&&(Fe.parentVerticalWrapContent=!0),Fe.stretchWidth=N,Fe.stretchHeight=V,$e==="horizontal"&&(Fe.parentContainerOrientation="horizontal"),$e==="vertical"&&(Fe.parentContainerOrientation="vertical"),v&&(Fe.parentContainerWrap=!0),e(8,qt=Mi(Fe,qt))}t.$$.dirty[0]&268435484|t.$$.dirty[1]&16&&e(13,$={orientation:$e,valign:rr,halign:Ot,wrap:v,overflow:J===!1||J===0?"visible":void 0}),t.$$.dirty[0]&228&&e(12,D={gap:Qt||Oe?Mh($e,Qt,Oe):void 0,"aspect-ratio":yt})},[Qe,At,$e,rr,Ot,Qt,Oe,yt,qt,H,ge,ft,D,$,F,_,b,p,h,f,u,c,l,a,s,o,me,Kt,v,V,N,L,w,i,n,J,G,ye,be,Re,et,nt,Je,je,Tt,ut,S]}class r_ extends Hr{constructor(r){super(),Br(this,r,t_,xh,wr,{componentContext:0,layoutParams:1},null,[-1,-1])}}const _l={separator:"divkit-5196a",separator_orientation_horizontal:"divkit-8d569",separator_orientation_vertical:"divkit-f0c05",separator__inner:"divkit-563bc"};function gl(t,r){return t==="vertical"||t==="horizontal"?t:r}function nc(t){let r,e;return{c(){r=Be("span"),this.h()},l(n){r=Ge(n,"SPAN",{class:!0,style:!0}),De(r).forEach(E),this.h()},h(){m(r,"class",_l.separator__inner),m(r,"style",e=Vt(t[3]))},m(n,i){ie(n,r,i)},p(n,i){i&8&&e!==(e=Vt(n[3]))&&m(r,"style",e)},d(n){n&&E(r)}}}function n_(t){let r,e=t[4]&&nc(t);return{c(){e&&e.c(),r=Pe()},l(n){e&&e.l(n),r=Pe()},m(n,i){e&&e.m(n,i),ie(n,r,i)},p(n,i){n[4]?e?e.p(n,i):(e=nc(n),e.c(),e.m(r.parentNode,r)):e&&(e.d(1),e=null)},d(n){n&&E(r),e&&e.d(n)}}}function i_(t){let r,e;return r=new kn({props:{cls:bt("separator",_l,t[2]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[n_]},$$scope:{ctx:t}}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,[i]){const o={};i&4&&(o.cls=bt("separator",_l,n[2])),i&1&&(o.componentContext=n[0]),i&2&&(o.layoutParams=n[1]),i&8216&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function o_(t,r,e){let n,i,o,s,a,l,c,u,f=C,h=()=>(f(),f=P(i,L=>e(11,u=L)),i);t.$$.on_destroy.push(()=>f());let{componentContext:p}=r,{layoutParams:b=void 0}=r,_="horizontal",v="rgba(0,0,0,0.08)";function w(){e(6,_="horizontal"),e(7,v="rgba(0,0,0,0.08)")}return t.$$set=L=>{"componentContext"in L&&e(0,p=L.componentContext),"layoutParams"in L&&e(1,b=L.layoutParams)},t.$$.update=()=>{t.$$.dirty&1&&e(10,n=p.origJson),t.$$.dirty&1024&&n&&w(),t.$$.dirty&1&&h(e(5,i=p.getDerivedFromVars(p.json.delimiter_style))),t.$$.dirty&2112&&e(6,_=gl(u==null?void 0:u.orientation,_)),t.$$.dirty&2048&&e(4,o=!(u!=null&&u.color&&(u.color==="transparent"||u.color.length===9&&u.color.indexOf("#00")===0))),t.$$.dirty&2176&&e(7,v=Ir(u==null?void 0:u.color,1,v)),t.$$.dirty&64&&e(9,s=_==="horizontal"?"100%":we(1)),t.$$.dirty&64&&e(8,a=_==="horizontal"?we(1):"100%"),t.$$.dirty&896&&e(3,l={background:v,width:s,height:a}),t.$$.dirty&64&&e(2,c={orientation:_})},[p,b,c,l,o,i,_,v,a,s,n,u]}class s_ extends Hr{constructor(r){super(),Br(this,r,o_,i_,wr,{componentContext:0,layoutParams:1})}}const Do={image:"divkit-8ae57","image_is-width-content":"divkit-0a28e","image_is-height-content":"divkit-f167b",image__image:"divkit-4eb06",image_error:"divkit-eba6b","image_is-rtl-mirror":"divkit-1b179","image__aspect-wrapper":"divkit-1afad",image_aspect:"divkit-37495",image_loaded:"divkit-cdd4f","divkit-image-appearance":"divkit-e49b3","image_before-appearance":"divkit-8ea57"};function l_(t,r,e){let n=t.content_alignment_horizontal;const i=t.content_alignment_vertical;return n==="start"?n=r==="ltr"?"left":"right":n==="end"&&(n=r==="ltr"?"right":"left"),n&&n!=="left"&&n!=="center"&&n!=="right"||i&&i!=="top"&&i!=="center"&&i!=="bottom"?e:va({content_alignment_horizontal:n,content_alignment_vertical:i})}function ic(t){return t.startsWith("data:")?$s(t):`data:image/jpg;base64,${$s(t)}`}function a_(t,r,e){let{componentContext:n}=r;Jr(en);function i(){}return ei(()=>{}),Qo(i),un(()=>{}),t.$$set=o=>{"componentContext"in o&&e(0,n=o.componentContext)},[n]}class hi extends Hr{constructor(r){super(),Br(this,r,a_,null,wr,{componentContext:0})}}function c_(t){let r,e;return r=new hi({props:{componentContext:t[0]}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function u_(t){let r,e;return r=new kn({props:{cls:bt("image",Do,t[9]),componentContext:t[0],layoutParams:t[1],customDescription:!0,$$slots:{default:[h_]},$$scope:{ctx:t}}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&512&&(o.cls=bt("image",Do,n[9])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&67110780|i[2]&64&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function f_(t){let r,e,n,i,o,s,a;return{c(){r=Be("img"),this.h()},l(l){r=Ge(l,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){m(r,"class",Do.image__image),On(r.src,e=t[2]===Xi?To:t[3])||m(r,"src",e),m(r,"loading",n=t[26]?"eager":"lazy"),m(r,"decoding","async"),m(r,"style",i=Vt(t[8])),m(r,"alt",t[10]),m(r,"aria-hidden",o=t[10]?null:"true")},m(l,c){ie(l,r,c),t[63](r),s||(a=[Ue(r,"load",t[28]),Ue(r,"error",t[29])],s=!0)},p(l,c){c[0]&12&&!On(r.src,e=l[2]===Xi?To:l[3])&&m(r,"src",e),c[0]&67108864&&n!==(n=l[26]?"eager":"lazy")&&m(r,"loading",n),c[0]&256&&i!==(i=Vt(l[8]))&&m(r,"style",i),c[0]&1024&&m(r,"alt",l[10]),c[0]&1024&&o!==(o=l[10]?null:"true")&&m(r,"aria-hidden",o)},d(l){l&&E(r),t[63](null),s=!1,Yr(a)}}}function d_(t){let r,e,n,i,o,s,a=`${t[4]}%`,l,c;return{c(){r=Be("span"),e=Be("img"),this.h()},l(u){r=Ge(u,"SPAN",{class:!0});var f=De(r);e=Ge(f,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),f.forEach(E),this.h()},h(){m(e,"class",Do.image__image),On(e.src,n=t[2]===Xi?To:t[3])||m(e,"src",n),m(e,"loading",i=t[26]?"eager":"lazy"),m(e,"decoding","async"),m(e,"style",o=Vt(t[8])),m(e,"alt",t[10]),m(e,"aria-hidden",s=t[10]?null:"true"),m(r,"class",Do["image__aspect-wrapper"]),B(r,"padding-bottom",a)},m(u,f){ie(u,r,f),Ct(r,e),t[62](e),l||(c=[Ue(e,"load",t[28]),Ue(e,"error",t[29])],l=!0)},p(u,f){f[0]&12&&!On(e.src,n=u[2]===Xi?To:u[3])&&m(e,"src",n),f[0]&67108864&&i!==(i=u[26]?"eager":"lazy")&&m(e,"loading",i),f[0]&256&&o!==(o=Vt(u[8]))&&m(e,"style",o),f[0]&1024&&m(e,"alt",u[10]),f[0]&1024&&s!==(s=u[10]?null:"true")&&m(e,"aria-hidden",s),f[0]&16&&a!==(a=`${u[4]}%`)&&B(r,"padding-bottom",a)},d(u){u&&E(r),t[62](null),l=!1,Yr(c)}}}function oc(t){let r;function e(o,s){return o[9].aspect?d_:f_}let n=e(t),i=n(t);return{c(){i.c(),r=Pe()},l(o){i.l(o),r=Pe()},m(o,s){i.m(o,s),ie(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&&E(r),i.d(o)}}}function h_(t){let r=t[5],e,n=oc(t);return{c(){n.c(),e=Pe()},l(i){n.l(i),e=Pe()},m(i,o){n.m(i,o),ie(i,e,o)},p(i,o){o[0]&32&&wr(r,r=i[5])?(n.d(1),n=oc(i),n.c(),n.m(e.parentNode,e)):n.p(i,o)},d(i){i&&E(e),n.d(i)}}}function __(t){let r,e,n,i;const o=[u_,c_],s=[];function a(l,c){return l[7]?-1:0}return~(r=a(t))&&(e=s[r]=o[r](t)),{c(){e&&e.c(),n=Pe()},l(l){e&&e.l(l),n=Pe()},m(l,c){~r&&s[r].m(l,c),ie(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?~r&&s[r].p(l,c):(e&&(ir(),te(s[u],1,1,()=>{s[u]=null}),or()),~r?(e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(l){i||(U(e),i=!0)},o(l){te(e),i=!1},d(l){l&&E(n),~r&&s[r].d(l)}}}const To="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",g_="empty://",p_="rgba(0,0,0,0.08)",Ki=0,pl=1,Xi=2;function m_(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L,N,V,F,$,D,J,Z=C,W=()=>(Z(),Z=P(w,Ae=>e(47,J=Ae)),w),G,z,he=C,ye=()=>(he(),he=P(v,Ae=>e(49,z=Ae)),v),Te,_e=C,be=()=>(_e(),_e=P(_,Ae=>e(50,Te=Ae)),_),pt,Ye=C,Re=()=>(Ye(),Ye=P(b,Ae=>e(51,pt=Ae)),b),Me,Ze=C,et=()=>(Ze(),Ze=P(p,Ae=>e(52,Me=Ae)),p),Q,Ee=C,ge=()=>(Ee(),Ee=P(h,Ae=>e(53,Q=Ae)),h),nt,Y=C,Se=()=>(Y(),Y=P(f,Ae=>e(54,nt=Ae)),f),Je,ne=C,lt=()=>(ne(),ne=P(u,Ae=>e(55,Je=Ae)),u),je,Ie=C,kt=()=>(Ie(),Ie=P(c,Ae=>e(56,je=Ae)),c),Tt,re=C,it=()=>(re(),re=P(l,Ae=>e(57,Tt=Ae)),l),ut,gt=C,qe=()=>(gt(),gt=P(a,Ae=>e(58,ut=Ae)),a),S,rt=C,le=()=>(rt(),rt=P(s,Ae=>e(59,S=Ae)),s),Qe,At=C,fe=()=>(At(),At=P(i,Ae=>e(60,Qe=Ae)),i),me,ft=C,$e=()=>(ft(),ft=P(o,Ae=>e(61,me=Ae)),o),rr,Ot=C,Qt=()=>(Ot(),Ot=P(L,Ae=>e(26,rr=Ae)),L);t.$$.on_destroy.push(()=>Z()),t.$$.on_destroy.push(()=>he()),t.$$.on_destroy.push(()=>_e()),t.$$.on_destroy.push(()=>Ye()),t.$$.on_destroy.push(()=>Ze()),t.$$.on_destroy.push(()=>Ee()),t.$$.on_destroy.push(()=>Y()),t.$$.on_destroy.push(()=>ne()),t.$$.on_destroy.push(()=>Ie()),t.$$.on_destroy.push(()=>re()),t.$$.on_destroy.push(()=>gt()),t.$$.on_destroy.push(()=>rt()),t.$$.on_destroy.push(()=>At()),t.$$.on_destroy.push(()=>ft()),t.$$.on_destroy.push(()=>Ot());let{componentContext:Oe}=r,{layoutParams:yt=void 0}=r;const qt=Jr(en),Gt=qt.direction;an(t,Gt,Ae=>e(48,G=Ae));let Kt,H=Ki,ae=!1,dr=p_,ke=!1,It,He="",vt="none",ze="50% 50%",at="0",Et,Fe="source_in",dt="",Xt="",cr=0,pr=0,Yt=0,ht="",Dt="",Nt=!1;function nr(){e(33,vt="none"),e(34,ze="50% 50%"),e(36,Fe="source_in")}function lr(Ae){e(2,H=Ki)}function Er(Ae){e(34,ze=l_(Ae,G,ze))}function Lr(){H===Ki&&e(2,H=pl)}function Zr(){H===Ki&&e(2,H=Xi)}un(()=>{qt.removeSvgFilter(Et,Fe)});function Xe(Ae){Pr[Ae?"unshift":"push"](()=>{Kt=Ae,e(6,Kt)})}function hr(Ae){Pr[Ae?"unshift":"push"](()=>{Kt=Ae,e(6,Kt)})}return t.$$set=Ae=>{"componentContext"in Ae&&e(0,Oe=Ae.componentContext),"layoutParams"in Ae&&e(1,yt=Ae.layoutParams)},t.$$.update=()=>{if(t.$$.dirty[0]&1&&e(46,n=Oe.origJson),t.$$.dirty[1]&32768&&n&&nr(),t.$$.dirty[0]&1&&fe(e(25,i=Oe.getDerivedFromVars(Oe.json.image_url))),t.$$.dirty[0]&1&&$e(e(24,o=Oe.getDerivedFromVars(Oe.json.gif_url))),t.$$.dirty[0]&1&&le(e(23,s=Oe.getDerivedFromVars(Oe.json.width))),t.$$.dirty[0]&1&&qe(e(22,a=Oe.getDerivedFromVars(Oe.json.height))),t.$$.dirty[0]&1&&it(e(21,l=Oe.getDerivedFromVars(Oe.json.preview))),t.$$.dirty[0]&1&&kt(e(20,c=Oe.getDerivedFromVars(Oe.json.placeholder_color))),t.$$.dirty[0]&1&<(e(19,u=Oe.getDerivedFromVars(Oe.json.scale))),t.$$.dirty[0]&1&&Se(e(18,f=Oe.getDerivedFromVars({content_alignment_horizontal:Oe.json.content_alignment_horizontal,content_alignment_vertical:Oe.json.content_alignment_vertical}))),t.$$.dirty[0]&1&&ge(e(17,h=Oe.getDerivedFromVars(Oe.json.accessibility))),t.$$.dirty[0]&1&&et(e(16,p=Oe.getDerivedFromVars(Oe.json.aspect))),t.$$.dirty[0]&1&&Re(e(15,b=Oe.getDerivedFromVars(Oe.json.tint_color))),t.$$.dirty[0]&1&&be(e(14,_=Oe.getDerivedFromVars(Oe.json.tint_mode))),t.$$.dirty[0]&1&&ye(e(13,v=Oe.getDerivedFromVars(Oe.json.appearance_animation))),t.$$.dirty[0]&1&&W(e(12,w=Oe.getDerivedFromVars(Oe.json.filters))),t.$$.dirty[0]&1&&Qt(e(11,L=Oe.getDerivedFromVars(Oe.json.preload_required))),t.$$.dirty[0]&1073741825|t.$$.dirty[1]&1610612736){let Ae=Oe.json.type==="gif"?me:Qe;e(30,ae=Ae===g_),ae&&(Ae=To),e(3,It=Ae)}if(t.$$.dirty[0]&8&&lr(),t.$$.dirty[0]&9&&(It?e(7,ke=!1):(e(7,ke=!0),Oe.logError(x(new Error(`Missing "${Oe.json.type==="gif"?"gif_url":"image_url"}" for "${Oe.json.type}"`))))),t.$$.dirty[1]&268435456&&e(45,N=(S==null?void 0:S.type)==="wrap_content"),t.$$.dirty[1]&134217728&&e(44,V=(ut==null?void 0:ut.type)==="wrap_content"),t.$$.dirty[0]&1073741828|t.$$.dirty[1]&67108864){const Ae=Tt;(H===Ki||H===Xi||ae)&&Ae?e(32,He=`url("${ic(Ae)}")`):e(32,He="")}if(t.$$.dirty[0]&1073741828|t.$$.dirty[1]&33554433&&(H===Ki||H===Xi||ae?e(31,dr=Ir(je,1,dr)):e(31,dr="")),t.$$.dirty[1]&16777220&&e(33,vt=ya(Je)||vt),t.$$.dirty[1]&8388608&&Er(nt),t.$$.dirty[1]&4194304&&e(10,F=(Q==null?void 0:Q.description)||""),t.$$.dirty[1]&2097152){const Ae=Me==null?void 0:Me.ratio;Ae&&Pn(Ae)?e(4,at=(100/Number(Ae)).toFixed(2)):e(4,at="0")}if(t.$$.dirty[1]&1572912){const Ae=pt,K=Ae?Ir(Ae):void 0,Cr=za(Te,Fe);(K!==Et||Cr!==Fe)&&(qt.removeSvgFilter(Et,Fe),e(5,dt=K?qt.addSvgFilter(K,Cr):""),e(35,Et=K),e(36,Fe=Cr))}if(t.$$.dirty[1]&262144&&z&&z.type==="fade"){const Ae=z;e(37,Xt=Aa(Ae.interpolator,"ease_in_out").replace(/_/g,"-")),e(40,Yt=qr(Ae.duration,300)),e(39,pr=qr(Ae.start_delay,0)),e(38,cr=qr(Ae.alpha,0))}if(t.$$.dirty[0]&1|t.$$.dirty[1]&196608){let Ae="",K="";Array.isArray(J)&&J.length&&(Ae=Sa(J,Oe.logError)),Ae&&(K="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),e(41,ht=Ae),e(42,Dt=K),e(43,Nt=G==="rtl"&&Array.isArray(J)&&J.some(Cr=>Cr.type==="rtl_mirror"))}t.$$.dirty[0]&20|t.$$.dirty[1]&28736&&e(9,$={aspect:at!=="0","is-width-content":N,"is-height-content":V,loaded:H===pl,"before-appearance":!!Xt&&H===Ki,"is-rtl-mirror":Nt}),t.$$.dirty[0]&36|t.$$.dirty[1]&4047&&e(8,D={"background-image":He,"background-color":He?void 0:dr,"background-size":vt,"clip-path":Dt||void 0,"object-fit":vt,"object-position":ze,filter:[H===pl&&dt?`url(#${dt})`:"",ht].filter(Boolean).join(" "),"--divkit-appearance-interpolator":Xt||void 0,"--divkit-appearance-fade-start":Xt?cr:void 0,"--divkit-appearance-delay":Xt?`${pr}ms`:void 0,"--divkit-appearance-duration":Xt?`${Yt}ms`:void 0})},[Oe,yt,H,It,at,dt,Kt,ke,D,$,F,L,w,v,_,b,p,h,f,u,c,l,a,s,o,i,rr,Gt,Lr,Zr,ae,dr,He,vt,ze,Et,Fe,Xt,cr,pr,Yt,ht,Dt,Nt,V,N,n,J,G,z,Te,pt,Me,Q,nt,Je,je,Tt,ut,S,Qe,me,Xe,hr]}class sc extends Hr{constructor(r){super(),Br(this,r,m_,__,wr,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const lc={grid:"divkit-ec408",grid_halign_start:"divkit-fde92",grid_halign_center:"divkit-800a9",grid_halign_end:"divkit-74c34",grid_valign_start:"divkit-82c25",grid_valign_center:"divkit-6ea46",grid_valign_end:"divkit-96d7e"};function ac(t){return t>0&&t<1}function cc(t){return String(Math.ceil(t*1e3)/1e3)}function uc(t,r,e){if(t.some(ac)){const a=Math.max(...t.filter(ac).map(l=>1/l));t=t.map(l=>l*a)}const n=t.every(Boolean);let i=0,o=0;const s=[];if(n){o=t.reduce((a,l)=>a+l,0);for(let a=0;a<e;++a){if(!r[a])continue;const l=r[a]/t[a]*o;l>i&&(i=l)}}for(let a=0;a<e;++a)i?s[a]=`minmax(${we(i*t[a]/o)},${cc(t[a])}fr)`:t[a]?s[a]=`${cc(t[a])}fr`:s[a]="auto";return s.join(" ")}function fc(t,r,e){const n=t.slice();return n[29]=r[e],n}function dc(t){let r,e;return r=new ii({props:{componentContext:t[29].componentContext,layoutParams:t[29].layoutParams}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&16&&(o.componentContext=n[29].componentContext),i[0]&16&&(o.layoutParams=n[29].layoutParams),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function b_(t){let r,e,n=sr(t[4]),i=[];for(let s=0;s<n.length;s+=1)i[s]=dc(fc(t,n,s));const o=s=>te(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();r=Pe()},l(s){for(let a=0;a<i.length;a+=1)i[a].l(s);r=Pe()},m(s,a){for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(s,a);ie(s,r,a),e=!0},p(s,a){if(a[0]&16){n=sr(s[4]);let l;for(l=0;l<n.length;l+=1){const c=fc(s,n,l);i[l]?(i[l].p(c,a),U(i[l],1)):(i[l]=dc(c),i[l].c(),U(i[l],1),i[l].m(r.parentNode,r))}for(ir(),l=n.length;l<i.length;l+=1)o(l);or()}},i(s){if(!e){for(let a=0;a<n.length;a+=1)U(i[a]);e=!0}},o(s){i=i.filter(Boolean);for(let a=0;a<i.length;a+=1)te(i[a]);e=!1},d(s){s&&E(r),dn(i,s)}}}function y_(t){let r,e;return r=new kn({props:{cls:bt("grid",lc,t[6]),componentContext:t[0],style:t[5],layoutParams:t[1],parentOf:t[2],replaceItems:t[11],$$slots:{default:[b_]},$$scope:{ctx:t}}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&64&&(o.cls=bt("grid",lc,n[6])),i[0]&1&&(o.componentContext=n[0]),i[0]&32&&(o.style=n[5]),i[0]&2&&(o.layoutParams=n[1]),i[0]&4&&(o.parentOf=n[2]),i[0]&16|i[1]&2&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function v_(t,r,e){let n,i,o,s,a,l,c,u,f,h=C,p=()=>(h(),h=P(a,Q=>e(23,f=Q)),a),b,_=C,v=()=>(_(),_=P(s,Q=>e(24,b=Q)),s),w,L=C,N=()=>(L(),L=P(z,Q=>e(25,w=Q)),z),V,F=C,$=()=>(F(),F=P(o,Q=>e(26,V=Q)),o);t.$$.on_destroy.push(()=>h()),t.$$.on_destroy.push(()=>_()),t.$$.on_destroy.push(()=>L()),t.$$.on_destroy.push(()=>F());let{componentContext:D}=r,{layoutParams:J=void 0}=r;const W=Jr(en).direction;an(t,W,Q=>e(22,u=Q));let G=1,z,he,ye=[],Te=[],_e=[],be=[],pt=0,Ye="start",Re="start",Me=[];function Ze(){e(12,G=1),e(18,Ye="start"),e(19,Re="start")}function et(Q){e(0,D={...D,json:{...D.json,items:Q.filter(ji)}})}return un(()=>{Me.forEach(Q=>{Q.destroy()})}),t.$$set=Q=>{"componentContext"in Q&&e(0,D=Q.componentContext),"layoutParams"in Q&&e(1,J=Q.layoutParams)},t.$$.update=()=>{if(t.$$.dirty[0]&1&&e(21,n=D.origJson),t.$$.dirty[0]&2097152&&n&&Ze(),t.$$.dirty[0]&1&&e(20,i=Array.isArray(D.json.items)&&D.json.items||[]),t.$$.dirty[0]&1&&$(e(9,o=D.getDerivedFromVars(D.json.column_count))),t.$$.dirty[0]&1&&v(e(8,s=D.getDerivedFromVars(D.json.content_alignment_vertical))),t.$$.dirty[0]&1&&p(e(7,a=D.getDerivedFromVars(D.json.content_alignment_horizontal))),t.$$.dirty[0]&67112960&&e(12,G=Kn(V,G)),t.$$.dirty[0]&1048581&&(Me.forEach(Q=>{Q.destroy()}),e(2,Me=i.map((Q,Ee)=>D.produceChildContext(Q,{path:Ee})))),t.$$.dirty[0]&5){let Q=[];Me.forEach(Ee=>{Q.push(D.getDerivedFromVars({rowSpan:Ee.json.row_span,columnSpan:Ee.json.column_span,width:Ee.json.width,height:Ee.json.height}))}),N(e(3,z=Yi(Q,Ee=>[...Ee])))}if(t.$$.dirty[0]&33681412){const Q={};let Ee=0,ge=0;e(13,ye=[]),e(14,Te=[]),e(15,_e=[]),e(16,be=[]),e(4,he=Me.map((nt,Y)=>{var re,it,ut,gt;const Se=w[Y],Je=Math.min(G,Number(Se.columnSpan)||1),ne=Number(Se.rowSpan)||1,lt=((re=Se.width)==null?void 0:re.type)==="match_parent"?Number(Se.width.weight||1)/Je:0,je=((it=Se.height)==null?void 0:it.type)==="match_parent"?Number(Se.height.weight||1)/ne:0,Ie=Je===1&&((ut=Se.width)==null?void 0:ut.type)==="fixed"&&Se.width.value?Number(Se.width.value)/Je:0,kt=ne===1&&((gt=Se.height)==null?void 0:gt.type)==="fixed"&&Se.height.value?Number(Se.height.value)/ne:0;for(;;){let qe=!0;e:for(let S=Ee;S<Ee+Je;++S)for(let rt=ge;rt<ge+ne;++rt)if(Q[S+"_"+rt]){qe=!1;break e}if(qe)break;++Ee,Ee>G-Je&&(Ee=0,++ge)}const Tt={x:Ee,y:ge,colSpan:Je,rowSpan:ne};for(let qe=Ee;qe<Ee+Je;++qe)for(let S=ge;S<ge+ne;++S)Q[qe+"_"+S]=!0,(!ye[qe]||ye[qe]<lt)&&e(13,ye[qe]=lt,ye),(!Te[S]||Te[S]<je)&&e(14,Te[S]=je,Te),(!_e[qe]||_e[qe]<Ie)&&e(15,_e[qe]=Ie,_e),(!be[S]||be[S]<kt)&&e(16,be[S]=kt,be);return{componentContext:nt,layoutParams:{gridArea:Tt}}})),e(17,pt=ge+1)}t.$$.dirty[0]&17039360&&e(18,Ye=fl(b,Ye)),t.$$.dirty[0]&13107200&&e(19,Re=ul(f,u,Re)),t.$$.dirty[0]&786432&&e(6,l={valign:Ye,halign:Re}),t.$$.dirty[0]&258048&&e(5,c={"grid-template-columns":uc(ye,_e,G),"grid-template-rows":uc(Te,be,pt)})},[D,J,Me,z,he,c,l,a,s,o,W,et,G,ye,Te,_e,be,pt,Ye,Re,i,n,u,f,b,w,V]}class w_ extends Hr{constructor(r){super(),Br(this,r,v_,y_,wr,{componentContext:0,layoutParams:1},null,[-1,-1])}}const ni={gallery:"divkit-0bfe5",gallery__scroller:"divkit-2b11a",gallery_scrollbar_none:"divkit-dbcd8",gallery_orientation_horizontal:"divkit-6df4b",gallery_orientation_vertical:"divkit-47152","gallery_scroll-snap":"divkit-e6acd","gallery__items-grid":"divkit-2d0b9",gallery__items:"divkit-23231",gallery__arrow:"divkit-b29e2","gallery__arrow-icon-path":"divkit-9bb64"},Xn={arrow:"divkit-ff821",arrow__icon:"divkit-baff3",arrow_left:"divkit-70d07",arrow_right:"divkit-da11c"};function k_(t,r){return t==="start"||t==="center"||t==="end"?t:r}function A_(t){const r=[];let e=t[0],n=1;for(let i=1;i<=t.length;i++)t[i]!==e?(r.push(n>1?`repeat(${n}, ${e})`:e),e=t[i],n=1):n++;return r.join(" ")}function Pi(t,r){let e=t%r;return e<0&&(e+=r),e}const{Boolean:hc}=ai;function _c(t,r,e){const n=t.slice();return n[80]=r[e],n[81]=r,n[82]=e,n}function gc(t,r,e){const n=t.slice();return n[83]=r[e],n}function pc(t){let r;return{c(){r=Be("div"),this.h()},l(e){r=Ge(e,"DIV",{class:!0}),De(r).forEach(E),this.h()},h(){m(r,"class",ni.gallery__gap),B(r,"width",t[4]==="horizontal"?t[12]:void 0),B(r,"height",t[4]!=="horizontal"?t[12]:void 0)},m(e,n){ie(e,r,n)},p(e,n){n[0]&4112&&B(r,"width",e[4]==="horizontal"?e[12]:void 0),n[0]&4112&&B(r,"height",e[4]!=="horizontal"?e[12]:void 0)},d(e){e&&E(r)}}}function mc(t){let r,e,n,i=t[83].hasGapBefore&&pc(t);return e=new ii({props:{componentContext:t[83].componentContext,layoutParams:t[6]}}),{c(){i&&i.c(),r=yr(),Ut(e.$$.fragment)},l(o){i&&i.l(o),r=vr(o),Jt(e.$$.fragment,o)},m(o,s){i&&i.m(o,s),ie(o,r,s),zt(e,o,s),n=!0},p(o,s){o[83].hasGapBefore?i?i.p(o,s):(i=pc(o),i.c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null);const a={};s[0]&262144&&(a.componentContext=o[83].componentContext),s[0]&64&&(a.layoutParams=o[6]),e.$set(a)},i(o){n||(U(e.$$.fragment,o),n=!0)},o(o){te(e.$$.fragment,o),n=!1},d(o){o&&E(r),i&&i.d(o),Lt(e,o)}}}function bc(t){let r,e,n,i,o,s,a=t[82],l,c=sr(t[80]),u=[];for(let b=0;b<c.length;b+=1)u[b]=mc(gc(t,c,b));const f=b=>te(u[b],1,1,()=>{u[b]=null}),h=()=>t[67](r,a),p=()=>t[67](null,a);return{c(){r=Be("div");for(let b=0;b<u.length;b+=1)u[b].c();e=yr(),n=Be("div"),o=yr(),this.h()},l(b){r=Ge(b,"DIV",{class:!0,style:!0});var _=De(r);for(let v=0;v<u.length;v+=1)u[v].l(_);e=vr(_),n=Ge(_,"DIV",{style:!0}),De(n).forEach(E),o=vr(_),_.forEach(E),this.h()},h(){m(n,"style",i=Vt(t[13])),m(r,"class",ni.gallery__items),m(r,"style",s=Vt(t[16]))},m(b,_){ie(b,r,_);for(let v=0;v<u.length;v+=1)u[v]&&u[v].m(r,null);Ct(r,e),Ct(r,n),Ct(r,o),h(),l=!0},p(b,_){if(t=b,_[0]&266320){c=sr(t[80]);let v;for(v=0;v<c.length;v+=1){const w=gc(t,c,v);u[v]?(u[v].p(w,_),U(u[v],1)):(u[v]=mc(w),u[v].c(),U(u[v],1),u[v].m(r,e))}for(ir(),v=c.length;v<u.length;v+=1)f(v);or()}(!l||_[0]&8192&&i!==(i=Vt(t[13])))&&m(n,"style",i),(!l||_[0]&65536&&s!==(s=Vt(t[16])))&&m(r,"style",s),a!==t[82]&&(p(),a=t[82],h())},i(b){if(!l){for(let _=0;_<c.length;_+=1)U(u[_]);l=!0}},o(b){u=u.filter(hc);for(let _=0;_<u.length;_+=1)te(u[_]);l=!1},d(b){b&&E(r),dn(u,b),p()}}}function yc(t){let r,e,n=t[10]&&t[8]&&vc(t),i=t[11]&&t[8]&&wc(t);return{c(){n&&n.c(),r=yr(),i&&i.c(),e=Pe()},l(o){n&&n.l(o),r=vr(o),i&&i.l(o),e=Pe()},m(o,s){n&&n.m(o,s),ie(o,r,s),i&&i.m(o,s),ie(o,e,s)},p(o,s){o[10]&&o[8]?n?n.p(o,s):(n=vc(o),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null),o[11]&&o[8]?i?i.p(o,s):(i=wc(o),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},d(o){o&&(E(r),E(e)),n&&n.d(o),i&&i.d(o)}}}function vc(t){let r,e,n,i=!t[32]&&E_();return{c(){r=Be("div"),i&&i.c(),this.h()},l(o){r=Ge(o,"DIV",{class:!0});var s=De(r);i&&i.l(s),s.forEach(E),this.h()},h(){m(r,"class",t[32]||`${ni.gallery__arrow} ${Xn.arrow} ${Xn.arrow_left}`)},m(o,s){ie(o,r,s),i&&i.m(r,null),e||(n=Ue(r,"click",t[70]),e=!0)},p:C,d(o){o&&E(r),i&&i.d(),e=!1,n()}}}function E_(t){let r,e;return{c(){r=$r("svg"),e=$r("path"),this.h()},l(n){r=cn(n,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=De(r);e=cn(i,"path",{class:!0,d:!0}),De(e).forEach(E),i.forEach(E),this.h()},h(){m(e,"class",ni["gallery__arrow-icon-path"]),m(e,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),m(r,"class",Xn.arrow__icon),m(r,"xmlns","http://www.w3.org/2000/svg"),m(r,"width","32"),m(r,"height","32"),m(r,"viewBox","0 0 32 32"),m(r,"fill","none")},m(n,i){ie(n,r,i),Ct(r,e)},d(n){n&&E(r)}}}function wc(t){let r,e,n,i=!t[33]&&j_();return{c(){r=Be("div"),i&&i.c(),this.h()},l(o){r=Ge(o,"DIV",{class:!0});var s=De(r);i&&i.l(s),s.forEach(E),this.h()},h(){m(r,"class",t[33]||`${ni.gallery__arrow} ${Xn.arrow} ${Xn.arrow_right}`)},m(o,s){ie(o,r,s),i&&i.m(r,null),e||(n=Ue(r,"click",t[71]),e=!0)},p:C,d(o){o&&E(r),i&&i.d(),e=!1,n()}}}function j_(t){let r,e;return{c(){r=$r("svg"),e=$r("path"),this.h()},l(n){r=cn(n,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=De(r);e=cn(i,"path",{class:!0,d:!0}),De(e).forEach(E),i.forEach(E),this.h()},h(){m(e,"class",ni["gallery__arrow-icon-path"]),m(e,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),m(r,"class",Xn.arrow__icon),m(r,"xmlns","http://www.w3.org/2000/svg"),m(r,"width","32"),m(r,"height","32"),m(r,"viewBox","0 0 32 32"),m(r,"fill","none")},m(n,i){ie(n,r,i),Ct(r,e)},d(n){n&&E(r)}}}function C_(t){let r,e,n,i,o,s,a,l,c,u,f=sr(t[18]),h=[];for(let _=0;_<f.length;_+=1)h[_]=bc(_c(t,f,_));const p=_=>te(h[_],1,1,()=>{h[_]=null});let b=t[4]==="horizontal"&&yc(t);return{c(){r=Be("div"),e=Be("div");for(let _=0;_<h.length;_+=1)h[_].c();s=yr(),b&&b.c(),a=Pe(),this.h()},l(_){r=Ge(_,"DIV",{class:!0,style:!0});var v=De(r);e=Ge(v,"DIV",{class:!0,style:!0});var w=De(e);for(let L=0;L<h.length;L+=1)h[L].l(w);w.forEach(E),v.forEach(E),s=vr(_),b&&b.l(_),a=Pe(),this.h()},h(){m(e,"class",ni["gallery__items-grid"]),m(e,"style",n=Vt(t[17])),m(r,"class",i=ni.gallery__scroller+" "+(t[30]?tr["root_restrict-scroll"]:"")),m(r,"style",o=Vt(t[5]))},m(_,v){ie(_,r,v),Ct(r,e);for(let w=0;w<h.length;w+=1)h[w]&&h[w].m(e,null);t[68](e),t[69](r),ie(_,s,v),b&&b.m(_,v),ie(_,a,v),l=!0,c||(u=Ue(r,"scroll",function(){jr(t[8]?t[36]:null)&&(t[8]?t[36]:null).apply(this,arguments)}),c=!0)},p(_,v){if(t=_,v[0]&340560){f=sr(t[18]);let w;for(w=0;w<f.length;w+=1){const L=_c(t,f,w);h[w]?(h[w].p(L,v),U(h[w],1)):(h[w]=bc(L),h[w].c(),U(h[w],1),h[w].m(e,null))}for(ir(),w=f.length;w<h.length;w+=1)p(w);or()}(!l||v[0]&131072&&n!==(n=Vt(t[17])))&&m(e,"style",n),(!l||v[0]&1073741824&&i!==(i=ni.gallery__scroller+" "+(t[30]?tr["root_restrict-scroll"]:"")))&&m(r,"class",i),(!l||v[0]&32&&o!==(o=Vt(t[5])))&&m(r,"style",o),t[4]==="horizontal"?b?b.p(t,v):(b=yc(t),b.c(),b.m(a.parentNode,a)):b&&(b.d(1),b=null)},i(_){if(!l){for(let v=0;v<f.length;v+=1)U(h[v]);l=!0}},o(_){h=h.filter(hc);for(let v=0;v<h.length;v+=1)te(h[v]);l=!1},d(_){_&&(E(r),E(s),E(a)),dn(h,_),t[68](null),t[69](null),b&&b.d(_),c=!1,u()}}}function S_(t){let r,e,n,i;return r=new kn({props:{cls:bt("gallery",ni,t[15]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,customActions:"gallery",parentOf:t[7],replaceItems:t[34],$$slots:{default:[C_]},$$scope:{ctx:t}}}),{c(){Ut(r.$$.fragment)},l(o){Jt(r.$$.fragment,o)},m(o,s){zt(r,o,s),e=!0,n||(i=Ue(window,"resize",function(){jr(t[8]?t[37]:null)&&(t[8]?t[37]:null).apply(this,arguments)}),n=!0)},p(o,s){t=o;const a={};s[0]&32768&&(a.cls=bt("gallery",ni,t[15])),s[0]&1&&(a.componentContext=t[0]),s[0]&2&&(a.layoutParams=t[1]),s[0]&128&&(a.parentOf=t[7]),s[0]&1074216828|s[2]&16777216&&(a.$$scope={dirty:s,ctx:t}),r.$set(a)},i(o){e||(U(r.$$.fragment,o),e=!0)},o(o){te(r.$$.fragment,o),e=!1},d(o){Lt(r,o),n=!1,i()}}}function V_(t,r,e){let n=0,i=[],o=[];for(let s=0;s<t.length;++s)i[n]||(i[n]=[]),i[n].push({index:s,hasGapBefore:o[n]&&r[s].visibility!=="gone",componentContext:t[s]}),!o[n]&&r[s].visibility!=="gone"&&(o[n]=!0),++n>=e&&(n=0);return i}function I_(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L,N,V,F,$,D,J=C,Z=()=>(J(),J=P(_,Ve=>e(55,D=Ve)),_),W,G=C,z=()=>(G(),G=P(b,Ve=>e(56,W=Ve)),b),he,ye=C,Te=()=>(ye(),ye=P(h,Ve=>e(57,he=Ve)),h),_e,be=C,pt=()=>(be(),be=P(Et,Ve=>e(58,_e=Ve)),Et),Ye,Re=C,Me=()=>(Re(),Re=P(f,Ve=>e(59,Ye=Ve)),f),Ze,et=C,Q=()=>(et(),et=P(u,Ve=>e(60,Ze=Ve)),u),Ee,ge=C,nt=()=>(ge(),ge=P(c,Ve=>e(61,Ee=Ve)),c),Y,Se=C,Je=()=>(Se(),Se=P(l,Ve=>e(62,Y=Ve)),l),ne,lt=C,je=()=>(lt(),lt=P(a,Ve=>e(63,ne=Ve)),a),Ie,kt=C,Tt=()=>(kt(),kt=P(s,Ve=>e(64,Ie=Ve)),s),re,it,ut=C,gt=()=>(ut(),ut=P(o,Ve=>e(66,it=Ve)),o),qe,S=C,rt=()=>(S(),S=P(p,Ve=>e(30,qe=Ve)),p);t.$$.on_destroy.push(()=>J()),t.$$.on_destroy.push(()=>G()),t.$$.on_destroy.push(()=>ye()),t.$$.on_destroy.push(()=>be()),t.$$.on_destroy.push(()=>Re()),t.$$.on_destroy.push(()=>et()),t.$$.on_destroy.push(()=>ge()),t.$$.on_destroy.push(()=>Se()),t.$$.on_destroy.push(()=>lt()),t.$$.on_destroy.push(()=>kt()),t.$$.on_destroy.push(()=>ut()),t.$$.on_destroy.push(()=>S());let{componentContext:le}=r,{layoutParams:Qe=void 0}=r;const At=Jr(en),fe=At.direction;an(t,fe,Ve=>e(54,$=Ve));let me,ft=[],$e=!1,rr=!1,Ot=null,Qt,Oe=!1;const yt=At.getCustomization("galleryLeftClass"),qt=At.getCustomization("galleryRightClass");let Gt,Kt=1,H="horizontal",ae="start",dr,ke=8,It,He,vt="",ze,at=[],Et,Fe={},dt=!1,Xt={},cr=0;function pr(){e(42,Kt=1),e(4,H="horizontal"),e(43,ae="start"),e(44,ke=8),e(47,vt="")}function Yt(Ve){e(0,le={...le,json:{...le.json,items:Ve.filter(ji)}})}const ht=At.isDesktop;an(t,ht,Ve=>e(65,re=Ve));let Dt=[];function Nt(){if(!me)return;let Ve=me.scrollLeft;$==="rtl"&&(Ve*=-1);const Bt=me.scrollWidth,_r=me.offsetWidth;$==="ltr"?(e(10,$e=Ve>2),e(11,rr=Ve+_r<Bt-2)):(e(11,rr=Ve>2),e(10,$e=Ve+_r<Bt-2))}const nr=ls(Nt,50);function lr(Ve){me.scroll({left:me.scrollLeft+me.offsetWidth*.75*(Ve==="right"?1:-1),behavior:"smooth"})}function Er(){let Ve=[],Bt=ft[0].children.length;for(let _r=0;_r<Bt;_r+=2)for(let xe=0;xe<Kt;++xe){const Ft=ft[xe].children[_r];Ft&&Ve.push(Ft)}return Ve}function Lr(Ve,Bt="smooth"){const xe=H==="horizontal"?"left":"top";me.scroll({[xe]:Ve,behavior:Bt})}function Zr(Ve,Bt,_r="smooth"){const xe=H==="horizontal",Ft=xe?"offsetLeft":"offsetTop",Le=Ve[Bt];if(Le){let mt;if($==="ltr"||!xe)mt=Le[Ft]+.01-ke/2;else{const ct=me.offsetWidth;mt=Le[Ft]+Le.offsetWidth+.01-ke/2-ct}Lr(mt,_r)}}function Xe(Ve,Bt){return H==="horizontal"?Bt.right>Ve.left&&Ve.right>Bt.left:Bt.bottom>Ve.top&&Ve.bottom>Bt.top}function hr(Ve,Bt){return H==="horizontal"?Bt.left>=Ve.left&&Bt.right<=Ve.right:Bt.top>=Ve.top&&Bt.bottom<=Ve.bottom}function Ae(Ve){const Bt=Er(),_r=me.getBoundingClientRect(),xe=Bt.findIndex(mt=>hr(_r,mt.getBoundingClientRect()));if(xe!==-1)return xe;const Ft=Bt.map(mt=>Xe(_r,mt.getBoundingClientRect())),Le=Ft.findIndex(Boolean);return Le!==-1?Ve==="prev"&&Ft.filter(Boolean).length===2?Le+1:Le:Ve==="prev"?1:Bt.length-2}ei(()=>{if(e(40,Oe=!0),Nt(),cr){const Ve=Er();Zr(Ve,cr,"auto")}}),un(()=>{e(40,Oe=!1),Dt.forEach(Ve=>{Ve.destroy()}),Gt&&!le.fakeElement&&(At.unregisterInstance(Gt),e(41,Gt=void 0))});function K(Ve,Bt){Pr[Ve?"unshift":"push"](()=>{ft[Bt]=Ve,e(9,ft)})}function Cr(Ve){Pr[Ve?"unshift":"push"](()=>{Qt=Ve,e(3,Qt)})}function Sr(Ve){Pr[Ve?"unshift":"push"](()=>{me=Ve,e(2,me)})}const Rt=()=>lr("left"),tn=()=>lr("right");return t.$$set=Ve=>{"componentContext"in Ve&&e(0,le=Ve.componentContext),"layoutParams"in Ve&&e(1,Qe=Ve.layoutParams)},t.$$.update=()=>{var Ve,Bt,_r,xe,Ft,Le;if(t.$$.dirty[0]&1&&e(53,n=le.origJson),t.$$.dirty[1]&4194304&&n&&pr(),t.$$.dirty[0]&1&&e(52,i=Array.isArray(le.json.items)&&le.json.items||[]),t.$$.dirty[0]&1&>(e(29,o=typeof((Ve=le.json.item_builder)==null?void 0:Ve.data)=="string"?le.getDerivedFromVars((Bt=le.json.item_builder)==null?void 0:Bt.data,void 0,!0):(_r=le.json.item_builder)!=null&&_r.data?qi(le.json.item_builder.data):void 0)),t.$$.dirty[0]&1&&Tt(e(28,s=le.getDerivedFromVars(le.json.column_count))),t.$$.dirty[0]&1&&je(e(27,a=le.getDerivedFromVars(le.json.orientation))),t.$$.dirty[0]&1&&Je(e(26,l=le.getDerivedFromVars(le.json.cross_content_alignment))),t.$$.dirty[0]&1&&nt(e(25,c=le.getDerivedFromVars(le.json.item_spacing))),t.$$.dirty[0]&1&&Q(e(24,u=le.getDerivedFromVars(le.json.cross_spacing))),t.$$.dirty[0]&1&&Me(e(23,f=le.getDerivedFromVars(le.json.paddings))),t.$$.dirty[0]&1&&Te(e(22,h=le.getDerivedFromVars(le.json.scroll_mode))),t.$$.dirty[0]&1&&rt(e(21,p=le.getDerivedFromVars(le.json.restrict_parent_scroll))),t.$$.dirty[0]&1&&z(e(20,b=le.getDerivedFromVars(le.json.scrollbar))),t.$$.dirty[0]&1&&Z(e(19,_=le.getDerivedFromVars(le.json.default_item))),t.$$.dirty[0]&129|t.$$.dirty[1]&2097152|t.$$.dirty[2]&16){let mt=[];if(le.json.item_builder&&Array.isArray(it)&&Array.isArray(le.json.item_builder.prototypes)){const ct=le.json.item_builder;mt=dl(it,At,le,ct)}else mt=(Array.isArray(i)&&i||[]).map(ct=>({div:ct}));Dt.forEach(ct=>{ct.destroy()}),e(7,Dt=mt.map((ct,St)=>le.produceChildContext(ct.div,{path:St,variables:ct.vars,id:ct.id})))}if(t.$$.dirty[1]&512|t.$$.dirty[2]&8&&e(8,v=re&&Oe),t.$$.dirty[0]&264|t.$$.dirty[1]&256&&(v?typeof ResizeObserver<"u"&&(e(39,Ot=new ResizeObserver(()=>{nr()})),Ot.observe(Qt)):Ot&&(Ot.disconnect(),e(39,Ot=null))),t.$$.dirty[1]&2048|t.$$.dirty[2]&4&&e(42,Kt=Kn(Ie,Kt)),t.$$.dirty[0]&16|t.$$.dirty[2]&2&&e(4,H=gl(ne,H)),t.$$.dirty[1]&4096|t.$$.dirty[2]&1&&e(43,ae=k_(Y,ae)),t.$$.dirty[1]&1073750016&&(e(44,ke=qr(Ee,ke)),e(12,dr=we(ke))),t.$$.dirty[1]&536911872&&(e(46,He=qr(Ze,ke)),e(45,It=we(He))),t.$$.dirty[0]&16|t.$$.dirty[1]&276889600){e(47,vt=Co(Ye,$,vt));const mt=H==="horizontal"?(Ft=(xe=Ye==null?void 0:Ye.end)!=null?xe:Ye==null?void 0:Ye[$==="ltr"?"right":"left"])!=null?Ft:0:(Le=Ye==null?void 0:Ye.bottom)!=null?Le:0,ct=we(mt);e(13,ze={width:H==="horizontal"?ct:"1px",height:H==="horizontal"?"1px":ct,"margin-right":H==="horizontal"&&$==="ltr"?"-"+ct:void 0,"margin-left":H==="horizontal"&&$==="rtl"?"-"+ct:void 0,"margin-bottom":H==="vertical"?"-"+ct:void 0})}if(t.$$.dirty[0]&16&&e(51,w=H==="horizontal"?"grid-template-columns":"grid-template-rows"),t.$$.dirty[0]&145){let mt=[];Dt.forEach(ct=>{const St=H==="horizontal"?"width":"height";mt.push(le.getDerivedFromVars({size:ct.json[St],visibility:ct.json.visibility}))}),pt(e(14,Et=Yi(mt,ct=>[...ct])))}if(t.$$.dirty[0]&128|t.$$.dirty[1]&134219776&&e(18,L=V_(Dt,_e,Kt)),t.$$.dirty[0]&16|t.$$.dirty[1]&134350848&&(e(48,at=[]),Kt>1||_e.forEach((mt,ct)=>{var St;mt.visibility!=="gone"&&(!mt.size&&H==="horizontal"||((St=mt.size)==null?void 0:St.type)==="match_parent"?at.push("100%"):at.push("max-content"),ct+1<_e.length&&at.push("auto"))}),at.push("auto")),t.$$.dirty[0]&112|t.$$.dirty[1]&67123200){const mt={};let ct={};if(e(49,dt=!1),H==="horizontal"?ct.parentVAlign=ae:ct.parentHAlign=ae,he==="paging"){e(49,dt=!0),ct.scrollSnap="start";const St=H==="horizontal"?"scroll-padding-left":"scroll-padding-top";mt[St]=we(ke/2)}Kt===1&&(ct.parentLayoutOrientation=H),e(5,Fe=Mi(mt,Fe)),e(6,Xt=Mi(ct,Xt))}t.$$.dirty[1]&81920&&e(17,N={padding:vt,"grid-gap":It}),t.$$.dirty[1]&1179648&&e(16,V={[w]:A_(at)}),t.$$.dirty[0]&16|t.$$.dirty[1]&33816576&&e(15,F={orientation:H,"scroll-snap":dt,scrollbar:W==="auto"?"auto":"none"}),t.$$.dirty[1]&17301504&&e(50,cr=qr(D,cr)),t.$$.dirty[0]&1&&le.json&&nr(),t.$$.dirty[0]&21|t.$$.dirty[1]&8389632&&le.json&&(Gt&&(At.unregisterInstance(Gt),e(41,Gt=void 0)),le.id&&!le.fakeElement&&(e(41,Gt=le.id),At.registerInstance(Gt,{setCurrentItem(mt){const ct=Er();if(mt<0||mt>ct.length-1)throw new Error('Item is out of range in "set-current-item" action');Zr(ct,mt)},setPreviousItem(mt,ct){const St=Ae("prev"),Zt=Er();let T=St-mt;T<0&&(T=ct==="ring"?Pi(T,Zt.length):0),Zr(Zt,T)},setNextItem(mt,ct){const St=H==="horizontal",Zt=$==="ltr"||!St?1:-1,T=St?me.scrollLeft*Zt+me.offsetWidth===me.scrollWidth:me.scrollTop+me.offsetHeight===me.scrollHeight,ot=Er();if(T&&ct==="ring"){Zr(ot,0);return}let d=Ae("next")+mt;d>ot.length-1&&(d=ct==="ring"?Pi(d,ot.length):ot.length-1),Zr(ot,d)},scrollToStart(){Lr(0)},scrollToEnd(){Lr($==="ltr"||H!=="horizontal"?1e6:-1e6)},scrollBackward(mt,ct){const St=H==="horizontal",Zt=$==="ltr"||!St?1:-1,T=St?me.scrollLeft:me.scrollTop,ot=St?me.scrollWidth-me.offsetWidth:me.scrollHeight-me.offsetHeight;let de=T*Zt-mt;de<0&&(ct==="clamp"?de=0:ct==="ring"&&(de=Pi(de,ot))),Lr(de*Zt)},scrollForward(mt,ct){const St=H==="horizontal",Zt=$==="ltr"||!St?1:-1,T=St?me.scrollLeft:me.scrollTop,ot=St?me.scrollWidth-me.offsetWidth:me.scrollHeight-me.offsetHeight;let de=T*Zt+mt;de>ot&&(ct==="clamp"?de=ot:ct==="ring"&&(de=Pi(de,ot))),Lr(de*Zt)},scrollToPosition(mt){Lr($==="ltr"||H!=="horizontal"?mt:-mt)}})))},[le,Qe,me,Qt,H,Fe,Xt,Dt,v,ft,$e,rr,dr,ze,Et,F,V,N,L,_,b,p,h,f,u,c,l,a,s,o,qe,fe,yt,qt,Yt,ht,Nt,nr,lr,Ot,Oe,Gt,Kt,ae,ke,It,He,vt,at,dt,cr,w,i,n,$,D,W,he,_e,Ye,Ze,Ee,Y,ne,Ie,re,it,K,Cr,Sr,Rt,tn]}class D_ extends Hr{constructor(r){super(),Br(this,r,I_,S_,wr,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const Dn={outer:"divkit-bf0ea",tabs:"divkit-8a75d",tabs__list:"divkit-26f55",tabs__item:"divkit-a22f9",tabs__item_selected:"divkit-4108d",tabs__item_actionable:"divkit-4f7ae",tabs__panels:"divkit-daded",tabs__swiper:"divkit-5c791",tabs__swiper_animated:"divkit-763f3",tabs__swiper_inited:"divkit-c3cc6",tabs__panel:"divkit-4ca7a",tabs__panel_visible:"divkit-0c7b1","tabs_height-parent_yes":"divkit-ceaff",tabs__separator:"divkit-41351",tabs__delimitier:"divkit-37bf2"};function T_(t,r){var n,i;if(!t||!t.image_url||typeof t.image_url!="string")return r;const e={url:t.image_url};return((n=t.width)==null?void 0:n.type)==="fixed"&&Pn(t.width.value)&&(e.width=t.width.value),((i=t.height)==null?void 0:i.type)==="fixed"&&Pn(t.height.value)&&(e.height=t.height.value),e}const kc=37,Ac=39,Ec=36,jc=35;function F_(t,r,e,n){const i=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let o=0;o<i.length;++o)if(i[o]&&!Vn(i[o]))return n;return rs(t,r,e)}function Cc(t){const r=t.touches[0],e=r.clientX||r.pageX,n=r.clientY||r.pageY;return{x:e,y:n}}function M_(t){let r,e;return r=new ii({props:{componentContext:t[0],layoutParams:t[1]}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,[i]){const o={};i&1&&(o.componentContext=n[0]),i&2&&(o.layoutParams=n[1]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function P_(t,r,e){let{componentContext:n}=r,{layoutParams:i=void 0}=r,{enabled:o}=r;const s=fi(o);return Ui(il,{isEnabled:s}),t.$$set=a=>{"componentContext"in a&&e(0,n=a.componentContext),"layoutParams"in a&&e(1,i=a.layoutParams),"enabled"in a&&e(2,o=a.enabled)},t.$$.update=()=>{t.$$.dirty&4&&s.set(o)},[n,i,o]}class N_ extends Hr{constructor(r){super(),Br(this,r,P_,M_,wr,{componentContext:0,layoutParams:1,enabled:2})}}const{Boolean:Sc}=ai;function Vc(t,r,e){const n=t.slice();n[94]=r[e];const i=n[94].index;n[95]=i;const o=n[30][n[95]];return n[96]=o,n}function Ic(t,r,e){const n=t.slice();n[94]=r[e];const i=n[94].index;n[95]=i;const o=n[95]===n[16];return n[99]=o,n}function O_(t){let r,e;return r=new hi({props:{componentContext:t[0]}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function z_(t){let r,e;return r=new kn({props:{cls:bt("tabs",Dn,t[23]),componentContext:t[0],layoutParams:t[1],customActions:"tabs",parentOf:t[44],parentOfSimpleMode:!0,replaceItems:t[49],$$slots:{default:[R_]},$$scope:{ctx:t}}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&8388608&&(o.cls=bt("tabs",Dn,n[23])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[1]&8192&&(o.parentOf=n[44]),i[0]&2139095033|i[1]&16391|i[3]&512&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function Dc(t){let r,e;return{c(){r=Be("img"),this.h()},l(n){r=Ge(n,"IMG",{class:!0,alt:!0,loading:!0,decoding:!0,src:!0}),this.h()},h(){m(r,"class",Dn.tabs__delimitier),m(r,"alt",""),m(r,"loading","lazy"),m(r,"decoding","async"),On(r.src,e=t[15].url)||m(r,"src",e),B(r,"width",t[15].width?we(t[15].width):void 0),B(r,"height",t[15].height?we(t[15].height):void 0)},m(n,i){ie(n,r,i)},p(n,i){i[0]&32768&&!On(r.src,e=n[15].url)&&m(r,"src",e),i[0]&32768&&B(r,"width",n[15].width?we(n[15].width):void 0),i[0]&32768&&B(r,"height",n[15].height?we(n[15].height):void 0)},d(n){n&&E(r)}}}function L_(t){let r=t[94].title+"",e;return{c(){e=Jn(r)},l(n){e=ci(n,r)},m(n,i){ie(n,e,i)},p(n,i){i[0]&131072&&r!==(r=n[94].title+"")&&Fi(e,r)},d(n){n&&E(e)}}}function Tc(t){let r,e,n,i=t[15]&&t[95]>0&&Dc(t);function o(...s){return t[70](t[95],...s)}return e=new os({props:{componentContext:t[0],cls:bt("tabs__item",Dn,{selected:t[99],actionable:!!t[94].title_click_action}),actions:t[94].title_click_action&&!t[0].fakeElement?[t[94].title_click_action].filter(In):[],attrs:{id:`${t[47]}-tab-${t[95]}`,"aria-controls":`${t[47]}-panel-${t[95]}`,role:"tab",tabindex:t[99]&&!t[0].fakeElement?t[94].title_click_action?void 0:"0":"-1","aria-selected":t[99]?"true":"false"},customAction:t[0].fakeElement?null:o,$$slots:{default:[L_]},$$scope:{ctx:t}}}),{c(){i&&i.c(),r=yr(),Ut(e.$$.fragment)},l(s){i&&i.l(s),r=vr(s),Jt(e.$$.fragment,s)},m(s,a){i&&i.m(s,a),ie(s,r,a),zt(e,s,a),n=!0},p(s,a){t=s,t[15]&&t[95]>0?i?i.p(t,a):(i=Dc(t),i.c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null);const l={};a[0]&1&&(l.componentContext=t[0]),a[0]&196608&&(l.cls=bt("tabs__item",Dn,{selected:t[99],actionable:!!t[94].title_click_action})),a[0]&131073&&(l.actions=t[94].title_click_action&&!t[0].fakeElement?[t[94].title_click_action].filter(In):[]),a[0]&196609&&(l.attrs={id:`${t[47]}-tab-${t[95]}`,"aria-controls":`${t[47]}-panel-${t[95]}`,role:"tab",tabindex:t[99]&&!t[0].fakeElement?t[94].title_click_action?void 0:"0":"-1","aria-selected":t[99]?"true":"false"}),a[0]&131073&&(l.customAction=t[0].fakeElement?null:o),a[0]&131072|a[3]&512&&(l.$$scope={dirty:a,ctx:t}),e.$set(l)},i(s){n||(U(e.$$.fragment,s),n=!0)},o(s){te(e.$$.fragment,s),n=!1},d(s){s&&E(r),i&&i.d(s),Lt(e,s)}}}function Fc(t){let r,e;return{c(){r=Be("div"),this.h()},l(n){r=Ge(n,"DIV",{class:!0,style:!0}),De(r).forEach(E),this.h()},h(){m(r,"class",Dn.tabs__separator),m(r,"style",e=Vt(t[33]))},m(n,i){ie(n,r,i)},p(n,i){i[1]&4&&e!==(e=Vt(n[33]))&&m(r,"style",e)},d(n){n&&E(r)}}}function Mc(t){let r,e;return r=new N_({props:{componentContext:t[96],layoutParams:t[3],enabled:t[95]===t[16]}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&1073872896&&(o.componentContext=n[96]),i[0]&8&&(o.layoutParams=n[3]),i[0]&196608&&(o.enabled=n[95]===n[16]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function Pc(t){let r,e,n,i,o,s,a=t[96]&&Mc(t);return{c(){r=Be("div"),a&&a.c(),e=yr(),this.h()},l(l){r=Ge(l,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var c=De(r);a&&a.l(c),e=vr(c),c.forEach(E),this.h()},h(){m(r,"class",n=bt("tabs__panel",Dn,{visible:t[31][t[95]]})),m(r,"role","tabpanel"),m(r,"id",i=t[47]+"-panel-"+t[95]),m(r,"aria-labelledby",o=t[47]+"-tab-"+t[95]),B(r,"left",t[95]*100+"%")},m(l,c){ie(l,r,c),a&&a.m(r,null),Ct(r,e),s=!0},p(l,c){l[96]?a?(a.p(l,c),c[0]&1073872896&&U(a,1)):(a=Mc(l),a.c(),U(a,1),a.m(r,e)):a&&(ir(),te(a,1,1,()=>{a=null}),or()),(!s||c[0]&131072|c[1]&1&&n!==(n=bt("tabs__panel",Dn,{visible:l[31][l[95]]})))&&m(r,"class",n),(!s||c[0]&131072&&i!==(i=l[47]+"-panel-"+l[95]))&&m(r,"id",i),(!s||c[0]&131072&&o!==(o=l[47]+"-tab-"+l[95]))&&m(r,"aria-labelledby",o),(!s||c[0]&131072)&&B(r,"left",l[95]*100+"%")},i(l){s||(U(a),s=!0)},o(l){te(a),s=!1},d(l){l&&E(r),a&&a.d()}}}function R_(t){let r,e,n,i,o,s,a,l,c,u,f,h=sr(t[17]),p=[];for(let N=0;N<h.length;N+=1)p[N]=Tc(Ic(t,h,N));const b=N=>te(p[N],1,1,()=>{p[N]=null});let _=t[19]&&Fc(t),v=sr(t[17]),w=[];for(let N=0;N<v.length;N+=1)w[N]=Pc(Vc(t,v,N));const L=N=>te(w[N],1,1,()=>{w[N]=null});return{c(){r=Be("div");for(let N=0;N<p.length;N+=1)p[N].c();n=yr(),_&&_.c(),i=yr(),o=Be("div"),s=Be("div");for(let N=0;N<w.length;N+=1)w[N].c();this.h()},l(N){r=Ge(N,"DIV",{class:!0,role:!0});var V=De(r);for(let D=0;D<p.length;D+=1)p[D].l(V);V.forEach(E),n=vr(N),_&&_.l(N),i=vr(N),o=Ge(N,"DIV",{class:!0});var F=De(o);s=Ge(F,"DIV",{class:!0});var $=De(s);for(let D=0;D<w.length;D+=1)w[D].l($);$.forEach(E),F.forEach(E),this.h()},h(){m(r,"class",e=Dn.tabs__list+" "+(t[45]?tr["root_restrict-scroll"]:"")),m(r,"role","tablist"),B(r,"--divkit-tabs-title-padding",t[14]?di(t[14],t[18]):""),B(r,"--divkit-tabs-font-size",we(t[4])),B(r,"--divkit-tabs-paddings",t[5]),B(r,"--divkit-tabs-line-height",t[24]),B(r,"--divkit-tabs-letter-spacing",t[25]),B(r,"--divkit-tabs-active-font-weight",t[7]||""),B(r,"--divkit-tabs-inactive-font-weight",t[8]||""),B(r,"--divkit-tabs-active-font-family",t[26]||""),B(r,"--divkit-tabs-inactive-font-family",t[27]||""),B(r,"--divkit-tabs-active-text-color",t[9]),B(r,"--divkit-tabs-inactive-text-color",t[10]),B(r,"--divkit-tabs-active-background-color",t[11]),B(r,"--divkit-tabs-inactive-background-color",t[12]),B(r,"--divkit-tabs-border-radius",t[6]),B(r,"--divkit-tabs-items-spacing",t[13]?wn(t[13]*10/t[4]):""),m(s,"class",a=bt("tabs__swiper",Dn,{inited:t[28],animated:t[29]})),m(o,"class",l=Dn.tabs__panels+" "+(t[45]?tr["root_restrict-scroll"]:""))},m(N,V){ie(N,r,V);for(let F=0;F<p.length;F+=1)p[F]&&p[F].m(r,null);t[71](r),ie(N,n,V),_&&_.m(N,V),ie(N,i,V),ie(N,o,V),Ct(o,s);for(let F=0;F<w.length;F+=1)w[F]&&w[F].m(s,null);t[72](s),t[73](o),c=!0,u||(f=[Ue(r,"keydown",t[51]),Ue(o,"touchstart",function(){jr(t[32]?t[52]:void 0)&&(t[32]?t[52]:void 0).apply(this,arguments)}),Ue(o,"touchmove",function(){jr(t[32]?t[53]:void 0)&&(t[32]?t[53]:void 0).apply(this,arguments)}),Ue(o,"touchend",function(){jr(t[32]?t[54]:void 0)&&(t[32]?t[54]:void 0).apply(this,arguments)}),Ue(o,"touchcancel",function(){jr(t[32]?t[54]:void 0)&&(t[32]?t[54]:void 0).apply(this,arguments)})],u=!0)},p(N,V){if(t=N,V[0]&229377|V[1]&589824){h=sr(t[17]);let F;for(F=0;F<h.length;F+=1){const $=Ic(t,h,F);p[F]?(p[F].p($,V),U(p[F],1)):(p[F]=Tc($),p[F].c(),U(p[F],1),p[F].m(r,null))}for(ir(),F=h.length;F<p.length;F+=1)b(F);or()}if((!c||V[1]&16384&&e!==(e=Dn.tabs__list+" "+(t[45]?tr["root_restrict-scroll"]:"")))&&m(r,"class",e),V[0]&278528&&B(r,"--divkit-tabs-title-padding",t[14]?di(t[14],t[18]):""),V[0]&16&&B(r,"--divkit-tabs-font-size",we(t[4])),V[0]&32&&B(r,"--divkit-tabs-paddings",t[5]),V[0]&16777216&&B(r,"--divkit-tabs-line-height",t[24]),V[0]&33554432&&B(r,"--divkit-tabs-letter-spacing",t[25]),V[0]&128&&B(r,"--divkit-tabs-active-font-weight",t[7]||""),V[0]&256&&B(r,"--divkit-tabs-inactive-font-weight",t[8]||""),V[0]&67108864&&B(r,"--divkit-tabs-active-font-family",t[26]||""),V[0]&134217728&&B(r,"--divkit-tabs-inactive-font-family",t[27]||""),V[0]&512&&B(r,"--divkit-tabs-active-text-color",t[9]),V[0]&1024&&B(r,"--divkit-tabs-inactive-text-color",t[10]),V[0]&2048&&B(r,"--divkit-tabs-active-background-color",t[11]),V[0]&4096&&B(r,"--divkit-tabs-inactive-background-color",t[12]),V[0]&64&&B(r,"--divkit-tabs-border-radius",t[6]),V[0]&8208&&B(r,"--divkit-tabs-items-spacing",t[13]?wn(t[13]*10/t[4]):""),t[19]?_?_.p(t,V):(_=Fc(t),_.c(),_.m(i.parentNode,i)):_&&(_.d(1),_=null),V[0]&1073938440|V[1]&65537){v=sr(t[17]);let F;for(F=0;F<v.length;F+=1){const $=Vc(t,v,F);w[F]?(w[F].p($,V),U(w[F],1)):(w[F]=Pc($),w[F].c(),U(w[F],1),w[F].m(s,null))}for(ir(),F=v.length;F<w.length;F+=1)L(F);or()}(!c||V[0]&805306368&&a!==(a=bt("tabs__swiper",Dn,{inited:t[28],animated:t[29]})))&&m(s,"class",a),(!c||V[1]&16384&&l!==(l=Dn.tabs__panels+" "+(t[45]?tr["root_restrict-scroll"]:"")))&&m(o,"class",l)},i(N){if(!c){for(let V=0;V<h.length;V+=1)U(p[V]);for(let V=0;V<v.length;V+=1)U(w[V]);c=!0}},o(N){p=p.filter(Sc);for(let V=0;V<p.length;V+=1)te(p[V]);w=w.filter(Sc);for(let V=0;V<w.length;V+=1)te(w[V]);c=!1},d(N){N&&(E(r),E(n),E(i),E(o)),dn(p,N),t[71](null),_&&_.d(N),dn(w,N),t[72](null),t[73](null),u=!1,Yr(f)}}}function B_(t){let r,e,n,i;const o=[z_,O_],s=[];function a(l,c){return l[2]?-1:0}return~(r=a(t))&&(e=s[r]=o[r](t)),{c(){e&&e.c(),n=Pe()},l(l){e&&e.l(l),n=Pe()},m(l,c){~r&&s[r].m(l,c),ie(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?~r&&s[r].p(l,c):(e&&(ir(),te(s[u],1,1,()=>{s[u]=null}),or()),~r?(e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(l){i||(U(e),i=!0)},o(l){te(e),i=!1},d(l){l&&E(n),~r&&s[r].d(l)}}}function H_(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L,N,V,F,$=C,D=()=>($(),$=P(a,T=>e(62,F=T)),a),J,Z,W=C,G=()=>(W(),W=P(v,T=>e(63,Z=T)),v),z,he=C,ye=()=>(he(),he=P(_,T=>e(64,z=T)),_),Te,_e=C,be=()=>(_e(),_e=P(p,T=>e(65,Te=T)),p),pt,Ye,Re=C,Me=()=>(Re(),Re=P(h,T=>e(66,Ye=T)),h),Ze,et=C,Q=()=>(et(),et=P(f,T=>e(67,Ze=T)),f),Ee,ge=C,nt=()=>(ge(),ge=P(u,T=>e(19,Ee=T)),u),Y,Se=C,Je=()=>(Se(),Se=P(c,T=>e(68,Y=T)),c),ne,lt=C,je=()=>(lt(),lt=P(s,T=>e(69,ne=T)),s),Ie,kt=C,Tt=()=>(kt(),kt=P(b,T=>e(45,Ie=T)),b);t.$$.on_destroy.push(()=>$()),t.$$.on_destroy.push(()=>W()),t.$$.on_destroy.push(()=>he()),t.$$.on_destroy.push(()=>_e()),t.$$.on_destroy.push(()=>Re()),t.$$.on_destroy.push(()=>et()),t.$$.on_destroy.push(()=>ge()),t.$$.on_destroy.push(()=>Se()),t.$$.on_destroy.push(()=>lt()),t.$$.on_destroy.push(()=>kt());let{componentContext:re}=r,{layoutParams:it=void 0}=r;const ut=Jr(en),gt=ut.direction;an(t,gt,T=>e(18,pt=T));const qe=ut.genId("tabs");let S,rt=!1,le=fi([]);an(t,le,T=>e(17,J=T));let Qe={},At,fe,me,ft={},$e=12,rr="",Ot="",Qt="",Oe="",yt,qt="",Gt,Kt="",H="",ae="",dr="",ke="",It=0,He="",vt="",ze=null,at=!1,Et=!1,Fe,dt=[],Xt=[],cr=null,pr=null,Yt=null,ht,Dt=!1,Nt=!1,nr,lr,Er;function Lr(){e(4,$e=12),e(5,rr=""),e(6,Oe=""),e(7,yt=void 0),e(26,qt=""),e(8,Gt=void 0),e(27,Kt=""),e(9,H=""),e(10,ae=""),e(11,dr=""),e(12,ke=""),e(13,It=0),e(56,He=""),e(57,vt=""),e(14,ze=null),e(15,Er=void 0)}function Zr(T){re.json.items&&e(0,re={...re,json:{...re.json,items:re.json.items.map((ot,de)=>({...ot,div:T[de]}))}})}function Xe(T){rt||(dt.forEach(ot=>{ot==null||ot.destroy()}),e(30,dt=T.map((ot,de)=>{if(de===w&&(ot!=null&&ot.div))return re.produceChildContext(ot.div,{path:de})})),e(31,Xt=T.map((ot,de)=>de===w)))}async function hr(T,ot=!1){if(Fe=w,e(16,w=T),_r(),Cr(),ot){await vn();const de=At.querySelector(`.${Dn.tabs__item_selected}`);de&&de.focus()}}function Ae(T,ot=!1){const de=J==null?void 0:J.length;if(!de)return;const d=J.map(fr=>fr.index);let jt=d.indexOf(w)+T;jt>=de?jt=0:jt<0&&(jt=de-1);const Or=d[jt];hr(Or,ot)}function K(T,ot){return w!==ot?(hr(ot),!1):!0}function Cr(){e(29,Et=!0),Sr(-w*100),Rt(),tn(),Ve(),lr=-w*fe.clientWidth}async function Sr(T){await vn(),e(22,me.style.transform=`translate3d(${T}%,0,0)`,me)}function Rt(T=!1){const ot=T?Math.max(0,w-1):Math.min(w,Fe!=null?Fe:w),de=T?Math.min(i.length-1,w+1):Math.max(w,Fe!=null?Fe:w);dt.forEach(d=>{d==null||d.destroy()}),e(30,dt=dt.map((d,Ne)=>{var Or;if(d)return d;const jt=(Or=i[Ne])==null?void 0:Or.div;if(Ne>=ot&&Ne<=de&&jt)return re.produceChildContext(jt,{path:Ne})})),e(31,Xt=Xt.map((d,Ne)=>Ne>=ot&&Ne<=de))}async function tn(){if((F==null?void 0:F.type)==="match_parent")return;await vn();const T=document.getElementById(`${qe}-panel-${w}`);T&&e(21,fe.style.height=we(T.offsetHeight),fe)}function Ve(){cr&&clearTimeout(cr),cr=window.setTimeout(()=>{e(31,Xt=i.map((T,ot)=>ot===w))},400)}function Bt(T){if(!(T.ctrlKey||T.shiftKey||T.altKey||T.metaKey)&&i){if(T.which===kc)Ae(-1,!0);else if(T.which===Ac)Ae(1,!0);else if(T.which===Ec)hr(0,!0);else if(T.which===jc)hr(i.length-1,!0);else return;T.preventDefault()}}function _r(){at||(e(28,at=!0),e(21,fe.style.height=we(fe.clientHeight),fe),e(22,me.style.transform=`translate3d(${-(Fe!=null?Fe:w)*100}%,0,0)`,me))}function xe(T){var d;const ot=T.target,de=(d=ot==null?void 0:ot.closest)==null?void 0:d.call(ot,`.${tr["root_restrict-scroll"]}`);i.length<2||T.touches.length>1||de&&de!==fe||(Dt=!1,Nt=!1,pr=Cc(T),Yt=null,ht=Date.now(),nr=lr||-w*fe.clientWidth,e(29,Et=!1),cr&&clearTimeout(cr))}function Ft(T){const ot=Cc(T);if(!pr||Yt&&Yt.x===ot.x&&Yt.y===ot.y)return;Yt=ot;const de=fe.clientWidth;if(Dt){lr=ot.x-pr.x+nr;const d=de*i.length;if(lr>0)lr=lr*de/(lr+de*3);else if(-lr+de>d){let Ne=-lr+de-d;Ne=Ne*de/(Ne+de*3),lr=de-d-Ne}Sr(lr*100/de)}else Math.abs(ot.y-pr.y)>10?Nt=!0:!Nt&&Math.abs(ot.x-pr.x)>8&&(_r(),Dt=!0,pr=ot,Sr(-w*100),Rt(!0));Dt&&T.cancelable&&T.preventDefault()}function Le(){Nt=!1,pr=null;let T=w;if(!Dt)return;Dt=!1;const ot=Math.min(512,fe.clientWidth),de=Math.abs(nr-lr),d=Math.min(1,(Date.now()-ht)/750);de>ot/4*d&&(T+=nr>lr?1:-1),T>=i.length?T=i.length-1:T<0&&(T=0),T===w?(e(29,Et=!0),lr=-T*ot,Sr(-T*100),Ve()):hr(T)}un(()=>{dt.forEach(T=>{T==null||T.destroy()}),S&&(ut.unregisterInstance(S),e(55,S=void 0))});const mt=(T,ot)=>K(ot,T);function ct(T){Pr[T?"unshift":"push"](()=>{At=T,e(20,At)})}function St(T){Pr[T?"unshift":"push"](()=>{me=T,e(22,me)})}function Zt(T){Pr[T?"unshift":"push"](()=>{fe=T,e(21,fe)})}return t.$$set=T=>{"componentContext"in T&&e(0,re=T.componentContext),"layoutParams"in T&&e(1,it=T.layoutParams)},t.$$.update=()=>{var T,ot;if(t.$$.dirty[0]&1&&e(61,n=re.origJson),t.$$.dirty[1]&1073741824&&n&&Lr(),t.$$.dirty[0]&1&&e(58,i=Array.isArray(re.json.items)&&re.json.items||[]),t.$$.dirty[1]&134217728&&e(44,o=i.map(de=>{var d;return{json:de.div,id:(d=de.div)==null?void 0:d.id}})),t.$$.dirty[0]&1&&je(e(43,s=re.getDerivedFromVars(re.json.width))),t.$$.dirty[0]&1&&D(e(42,a=re.getDerivedFromVars(re.json.height))),t.$$.dirty[0]&1&&e(60,l=re.getJsonWithVars(re.json.selected_tab)),t.$$.dirty[0]&1&&Je(e(41,c=re.getDerivedFromVars(re.json.tab_title_style))),t.$$.dirty[0]&1&&nt(e(40,u=re.getDerivedFromVars(re.json.has_separator))),t.$$.dirty[0]&1&&Q(e(39,f=re.getDerivedFromVars(re.json.separator_color))),t.$$.dirty[0]&1&&Me(e(38,h=re.getDerivedFromVars(re.json.separator_paddings))),t.$$.dirty[0]&1&&be(e(37,p=re.getDerivedFromVars(re.json.switch_tabs_by_content_swipe_enabled))),t.$$.dirty[0]&1&&Tt(e(36,b=re.getDerivedFromVars(re.json.restrict_parent_scroll))),t.$$.dirty[0]&1&&ye(e(35,_=re.getDerivedFromVars(re.json.title_paddings))),t.$$.dirty[0]&1&&G(e(34,v=re.getDerivedFromVars(re.json.tab_title_delimiter))),t.$$.dirty[1]&536870912&&e(16,w=l&&Number(l)||0),t.$$.dirty[0]&1|t.$$.dirty[1]&134217728)if(Array.isArray(i)&&i.length){let de=[];i.forEach((d,Ne)=>{const jt=re.getJsonWithVars({index:Ne,title:d.title,title_click_action:d.title_click_action});jt.title&&typeof jt.title=="string"?de.push(jt):re.logError(x(new Error("Incorrect title for the tab"),{additional:{index:Ne}}))}),le.set(de)}else le.set([]);if(t.$$.dirty[0]&131073&&(J!=null&&J.length?e(2,rt=!1):(e(2,rt=!0),re.logError(x(new Error('Incorrect or empty "items" prop for div "tabs"'))))),t.$$.dirty[0]&8|t.$$.dirty[2]&129){let de={parentContainerOrientation:"horizontal"};(ne==null?void 0:ne.type)==="wrap_content"&&(de.parentHorizontalWrapContent=!0),(!F||F.type==="wrap_content")&&(de.parentVerticalWrapContent=!0),e(3,Qe=Mi(de,Qe))}if(t.$$.dirty[0]&65541|t.$$.dirty[1]&134217728&&!rt&&(w<0||w>=i.length)&&(re.logError(x(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:re.json.selected_tab,length:i.length}})),e(16,w=w<0?0:i.length-1)),t.$$.dirty[0]&196613&&!rt&&!J.some(de=>w===de.index)&&(re.logError(x(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:re.json.selected_tab}})),e(16,w=((T=J[0])==null?void 0:T.index)||0)),t.$$.dirty[2]&64&&e(59,L=Y||{}),t.$$.dirty[0]&16|t.$$.dirty[1]&268435456&&e(4,$e=Kn(L.font_size,$e)),t.$$.dirty[0]&262192|t.$$.dirty[1]&268435456&&(L.font_size||L.paddings)){const de=L.paddings||{top:6,right:8,bottom:6,left:8},d={top:(Number(de.top)||0)/$e*10,right:(Number(pt==="ltr"?de.end:de.start)||Number(de.right)||0)/$e*10,bottom:(Number(de.bottom)||0)/$e*10,left:(Number(pt==="ltr"?de.start:de.end)||Number(de.left)||0)/$e*10};e(5,rr=Co(d,pt,rr))}if(t.$$.dirty[0]&16|t.$$.dirty[1]&268435456){const de=L.line_height;de!==void 0&&Pn(de)&&e(24,Ot=we(de/$e*10))}if(t.$$.dirty[0]&16|t.$$.dirty[1]&268435456){const de=L.letter_spacing;de!==void 0&&Vn(de)&&e(25,Qt=we(de/$e*10))}if(t.$$.dirty[0]&80|t.$$.dirty[1]&268435456&&(L.corner_radius||L.corners_radius||L.font_size)){const de=(ot=L.corner_radius)!=null?ot:1e3;L.corners_radius?e(6,Oe=F_(L.corners_radius,de,$e,Oe)):Vn(de)&&e(6,Oe=we(de/$e*10))}t.$$.dirty[0]&128|t.$$.dirty[1]&268435456&&(e(7,yt=_o(L.active_font_weight||L.font_weight,void 0,yt)),L.font_family&&typeof L.font_family=="string"?e(26,qt=ut.typefaceProvider(L.font_family,{fontWeight:yt||400})):e(26,qt="")),t.$$.dirty[0]&256|t.$$.dirty[1]&268435456&&(e(8,Gt=_o(L.inactive_font_weight||L.font_weight,void 0,Gt)),L.font_family&&typeof L.font_family=="string"?e(27,Kt=ut.typefaceProvider(L.font_family,{fontWeight:Gt||400})):e(27,Kt="")),t.$$.dirty[0]&512|t.$$.dirty[1]&268435456&&e(9,H=Ir(L.active_text_color,1,H)),t.$$.dirty[0]&1024|t.$$.dirty[1]&268435456&&e(10,ae=Ir(L.inactive_text_color,1,ae)),t.$$.dirty[0]&2048|t.$$.dirty[1]&268435456&&e(11,dr=Ir(L.active_background_color,1,dr)),t.$$.dirty[0]&4096|t.$$.dirty[1]&268435456&&e(12,ke=Ir(L.inactive_background_color,1,ke)),t.$$.dirty[0]&8192|t.$$.dirty[1]&268435456&&e(13,It=qr(L.item_spacing,It)),t.$$.dirty[0]&786432|t.$$.dirty[1]&100663296|t.$$.dirty[2]&48&&Ee&&(Ze&&e(56,He=Ir(Ze,1,He)),Ye&&e(57,vt=Co(Ye,pt,vt))),t.$$.dirty[1]&100663296&&e(33,N={background:He,margin:vt}),t.$$.dirty[2]&8&&e(32,V=typeof Te>"u"?!0:!!Te),t.$$.dirty[0]&16384|t.$$.dirty[2]&4&&e(14,ze=So(z||void 0,ze)),t.$$.dirty[0]&32768|t.$$.dirty[2]&2&&e(15,Er=T_(Z,Er)),t.$$.dirty[1]&134217728&&Xe(i),t.$$.dirty[0]&65541|t.$$.dirty[1]&150994944&&re.json&&(S&&(ut.unregisterInstance(S),e(55,S=void 0)),re.id&&!rt&&!re.fakeElement&&(e(55,S=re.id),ut.registerInstance(S,{setCurrentItem(de){if(de<0||de>i.length-1)throw new Error('Item is out of range in "set-current-item" action');hr(de)},setPreviousItem(de,d){let Ne=w-de;Ne<0&&(Ne=d==="ring"?Pi(Ne,i.length):0),hr(Ne)},setNextItem(de,d){let Ne=w+de;Ne>i.length-1&&(Ne=d==="ring"?Pi(Ne,i.length):i.length-1),hr(Ne)},scrollToStart(){hr(0)},scrollToEnd(){hr(i.length-1)}}))),t.$$.dirty[2]&1&&e(23,ft={"height-parent":(F==null?void 0:F.type)==="match_parent"?"yes":""})},[re,it,rt,Qe,$e,rr,Oe,yt,Gt,H,ae,dr,ke,It,ze,Er,w,J,pt,Ee,At,fe,me,ft,Ot,Qt,qt,Kt,at,Et,dt,Xt,V,N,v,_,b,p,h,f,u,c,a,s,o,Ie,gt,qe,le,Zr,K,Bt,xe,Ft,Le,S,He,vt,i,L,l,n,F,Z,z,Te,Ye,Ze,Y,ne,mt,ct,St,Zt]}class W_ extends Hr{constructor(r){super(),Br(this,r,H_,B_,wr,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}}const Zi={state:"divkit-31140",state_overflow_visible:"divkit-bace1",state__animations:"divkit-8524e","state__animation-child":"divkit-dcc79","state__animation-child-inner":"divkit-aa7dd"};function as(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function U_(t){return t*t*t}function Nc(t){const r=t-1;return r*r*r+1}function Oc(t){return r=>{if(r<=0)return 0;if(r>=1)return 1;const e=r*t.length,n=Math.floor(e),i=t[n],o=t[n+1],s=e-n;return i*s+o*(1-s)}}const G_=Oc([.0021,.0045,.0071,.01,.0131,.0165,.0202,.0242,.0284,.033,.0378,.0429,.0483,.054,.0601,.0664,.0731,.08,.0872,.0948,.1026,.1108,.1192,.1279,.1369,.1461,.1556,.1653,.1753,.1855,.1958,.2064,.2171,.2279,.2389,.25,.2612,.2725,.2839,.2952,.3067,.3181,.3295,.341,.3524,.3637,.375,.3863,.3974,.4085,.4195,.4304,.4412,.4519,.4624,.4729,.4832,.4934,.5034,.5133,.5231,.5327,.5422,.5516,.5608,.5699,.5788,.5876,.5963,.6048,.6132,.6214,.6295,.6375,.6453,.653,.6606,.668,.6754,.6825,.6896,.6965,.7034,.7101,.7166,.7231,.7295,.7357,.7418,.7479,.7538,.7596,.7653,.7709,.7764,.7818,.7871,.7923,.7974,.8024,.8073,.8122,.8169,.8216,.8261,.8306,.835,.8394,.8436,.8478,.8518,.8558,.8598,.8636,.8674,.8711,.8747,.8783,.8818,.8852,.8886,.8919,.8951,.8983,.9014,.9044,.9074,.9103,.9131,.9159,.9187,.9213,.924,.9265,.929,.9315,.9339,.9362,.9385,.9408,.943,.9451,.9472,.9492,.9512,.9532,.9551,.9569,.9587,.9605,.9622,.9638,.9655,.967,.9686,.9701,.9715,.9729,.9743,.9756,.9769,.9782,.9794,.9805,.9817,.9828,.9838,.9848,.9858,.9868,.9877,.9886,.9894,.9902,.991,.9917,.9924,.9931,.9937,.9943,.9949,.9954,.9959,.9964,.9969,.9973,.9977,.998,.9983,.9986,.9989,.9991,.9993,.9995,.9997,.9998,.9999,.9999,1,1]),Y_=Oc([5e-4,.002,.0045,.0078,.0119,.0168,.0224,.0286,.0355,.0429,.0508,.0592,.0681,.0774,.087,.0969,.1072,.1177,.1285,.1395,.1507,.1621,.1736,.1853,.197,.2089,.2208,.2328,.2448,.2569,.2689,.281,.293,.305,.317,.3289,.3408,.3526,.3644,.376,.3876,.3991,.4105,.4218,.433,.444,.455,.4658,.4765,.4871,.4975,.5078,.518,.528,.5379,.5477,.5573,.5668,.5761,.5853,.5944,.6033,.612,.6206,.6291,.6374,.6456,.6537,.6616,.6693,.677,.6845,.6918,.699,.7061,.713,.7199,.7265,.7331,.7395,.7458,.752,.758,.764,.7698,.7755,.781,.7865,.7918,.7971,.8022,.8072,.8121,.8169,.8216,.8262,.8307,.8351,.8394,.8436,.8477,.8517,.8557,.8595,.8633,.8669,.8705,.874,.8775,.8808,.8841,.8873,.8904,.8934,.8964,.8993,.9022,.9049,.9076,.9103,.9129,.9154,.9178,.9202,.9226,.9249,.9271,.9293,.9314,.9335,.9355,.9375,.9394,.9413,.9431,.9449,.9466,.9483,.95,.9516,.9532,.9547,.9562,.9576,.9591,.9605,.9618,.9631,.9644,.9657,.9669,.9681,.9692,.9703,.9714,.9725,.9736,.9746,.9756,.9765,.9775,.9784,.9793,.9802,.981,.9818,.9826,.9834,.9842,.9849,.9856,.9863,.987,.9877,.9883,.989,.9896,.9902,.9908,.9913,.9919,.9924,.993,.9935,.994,.9944,.9949,.9954,.9958,.9963,.9967,.9971,.9975,.9979,.9983,.9986,.999,.9993,.9997,1]),ml={linear:Gn,ease:G_,ease_in:U_,ease_out:Nc,ease_in_out:as,spring:Y_};function bl(t){return ml[t]}const zc=200,Lc=0,J_=0,q_=0;function Rc(t){return Math.max(...t.map(r=>(Number(r.duration)||zc)+(Number(r.start_delay)||Lc)))}function K_(t,{transitions:r,elementBbox:e,rootBbox:n,direction:i,maxDuration:o,alpha:s}){const a=s!=null?s:1;return{duration:ns()?0:o,css:l=>{const c=l*o,u=r.map(w=>{var J,Z,W;const L=Number(w.start_delay)||Lc,N=Number(w.duration)||zc,V=Math.max(0,Math.min(1,(c-L)/N)),F=i==="in"?1-V:V,D=(bl(w.interpolator||"ease_in_out")||as)(F);if(w.type==="fade")return D>=1?{active:!1,opacity:0}:{active:D>0&&D<1,opacity:(1-D)*a+D*(w.alpha||J_)};if(w.type==="slide"){const G=w.edge==="top"||w.edge==="left"?-1:1,z=w.edge==="top"||w.edge==="bottom"||!w.edge?"translateY":"translateX";let he=(J=w.distance)==null?void 0:J.value;he===void 0&&(w.edge==="top"||w.edge==="bottom"||!w.edge?he=Math.abs(n[w.edge==="bottom"?"bottom":"top"]-e[w.edge==="bottom"?"top":"bottom"]):he=Math.abs(n[w.edge==="left"?"left":"right"]-e[w.edge==="left"?"right":"left"]));const ye=he*D;return{active:D>0&&D<1,translate:`${z}(${ye*G}px)`}}else if(w.type==="scale"){const G=1-D+D*(w.scale||q_),z=(Z=w.pivot_x)!=null?Z:.5,he=(W=w.pivot_y)!=null?W:.5,ye=(1-G)*e.width*z,Te=(1-G)*e.height*he;return{active:D>0&&D<1,scale:`translate(${ye}px, ${Te}px) scale(${G})`}}return{}}),f=u.map(w=>w.opacity).filter(w=>w!==void 0).reduce((w,L)=>w*L,1),h=u.map(w=>w.translate).filter(w=>w!==void 0).join(" "),p=u.map(w=>w.scale).filter(w=>w!==void 0).join(" "),b=u.filter(w=>w.active).map(w=>w.scale).filter(w=>w!==void 0),_=b.length?b[b.length-1]:p;return`transform:${[h,_].filter(Boolean).join(" ")||"none"};opacity:${f}`}}}function Ci(t,r,e){return t*(1-e)+r*e}const X_=200,Z_=0;function Q_(t,{rootBbox:r,beforeBbox:e,afterBbox:n,transition:i}){var o,s;return{delay:(o=i.start_delay)!=null?o:Z_,duration:ns()?0:(s=i.duration)!=null?s:X_,easing:i.interpolator&&i.interpolator in ml?ml[i.interpolator]:as,css:a=>[`top:${Ci(e.top,n.top,a)-r.top}px`,`left:${Ci(e.left,n.left,a)-r.left}px`,`width:${Ci(e.width,n.width,a)}px`,`height:${Ci(e.height,n.height,a)}px`].join(";")}}function Bc(t){const r=[];return t.type==="set"?(t.items||[]).forEach(e=>{r.push(...Bc(e))}):r.push(t),r}const{Map:x_}=ai;function Hc(t,r,e){const n=t.slice();return n[35]=r[e],n}function $_(t){let r,e;return r=new hi({props:{componentContext:t[0]}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function eg(t){let r,e;return r=new kn({props:{cls:bt("state",Zi,t[7]),componentContext:t[0],layoutParams:t[1],parentOf:t[8],parentOfSimpleMode:!0,replaceItems:t[10],$$slots:{default:[ng]},$$scope:{ctx:t}}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&128&&(o.cls=bt("state",Zi,n[7])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&256&&(o.parentOf=n[8]),i[0]&120|i[1]&128&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function Wc(t){let r=t[5],e,n,i=Uc(t);return{c(){i.c(),e=Pe()},l(o){i.l(o),e=Pe()},m(o,s){i.m(o,s),ie(o,e,s),n=!0},p(o,s){s[0]&32&&wr(r,r=o[5])?(ir(),te(i,1,1,C),or(),i=Uc(o),i.c(),U(i,1),i.m(e.parentNode,e)):i.p(o,s)},i(o){n||(U(i),n=!0)},o(o){te(i),n=!1},d(o){o&&E(e),i.d(o)}}}function Uc(t){let r,e;return r=new ii({props:{componentContext:t[6]}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&64&&(o.componentContext=n[6]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function tg(t){let r,e,n,i,o,s,a,l;n=new ii({props:{componentContext:t[35].componentContextCopy}});function c(){return t[20](t[35])}return{c(){r=Be("div"),e=Be("div"),Ut(n.$$.fragment),i=yr(),this.h()},l(u){r=Ge(u,"DIV",{class:!0});var f=De(r);e=Ge(f,"DIV",{class:!0});var h=De(e);Jt(n.$$.fragment,h),h.forEach(E),i=vr(f),f.forEach(E),this.h()},h(){m(e,"class",Zi["state__animation-child-inner"]),m(r,"class",Zi["state__animation-child"])},m(u,f){ie(u,r,f),Ct(r,e),zt(n,e,null),Ct(r,i),s=!0,a||(l=Ue(r,"introend",c),a=!0)},p(u,f){t=u;const h={};f[0]&16&&(h.componentContext=t[35].componentContextCopy),n.$set(h)},i(u){s||(U(n.$$.fragment,u),o||zn(()=>{o=Qs(r,Q_,t[35]),o.start()}),s=!0)},o(u){te(n.$$.fragment,u),s=!1},d(u){u&&E(r),Lt(n),a=!1,l()}}}function rg(t){let r,e,n,i,o,s=`${t[35].offsetLeft}px`,a=`${t[35].offsetTop}px`,l=`${t[35].width}px`,c=`${t[35].height}px`,u,f,h;n=new ii({props:{componentContext:t[35].componentContextCopy}});function p(){return t[19](t[35])}return{c(){r=Be("div"),e=Be("div"),Ut(n.$$.fragment),i=yr(),this.h()},l(b){r=Ge(b,"DIV",{class:!0});var _=De(r);e=Ge(_,"DIV",{class:!0});var v=De(e);Jt(n.$$.fragment,v),v.forEach(E),i=vr(_),_.forEach(E),this.h()},h(){m(e,"class",Zi["state__animation-child-inner"]),m(r,"class",Zi["state__animation-child"]),B(r,"left",s),B(r,"top",a),B(r,"width",l),B(r,"height",c)},m(b,_){ie(b,r,_),Ct(r,e),zt(n,e,null),Ct(r,i),u=!0,f||(h=Ue(r,"introend",p),f=!0)},p(b,_){t=b;const v={};_[0]&16&&(v.componentContext=t[35].componentContextCopy),n.$set(v),_[0]&16&&s!==(s=`${t[35].offsetLeft}px`)&&B(r,"left",s),_[0]&16&&a!==(a=`${t[35].offsetTop}px`)&&B(r,"top",a),_[0]&16&&l!==(l=`${t[35].width}px`)&&B(r,"width",l),_[0]&16&&c!==(c=`${t[35].height}px`)&&B(r,"height",c)},i(b){u||(U(n.$$.fragment,b),o||zn(()=>{o=Qs(r,K_,t[35]),o.start()}),u=!0)},o(b){te(n.$$.fragment,b),u=!1},d(b){b&&E(r),Lt(n),f=!1,h()}}}function Gc(t,r){let e,n,i,o,s;const a=[rg,tg],l=[];function c(u,f){return"direction"in u[35]?0:1}return n=c(r),i=l[n]=a[n](r),{key:t,first:null,c(){e=Pe(),i.c(),o=Pe(),this.h()},l(u){e=Pe(),i.l(u),o=Pe(),this.h()},h(){this.first=e},m(u,f){ie(u,e,f),l[n].m(u,f),ie(u,o,f),s=!0},p(u,f){r=u;let h=n;n=c(r),n===h?l[n].p(r,f):(ir(),te(l[h],1,1,()=>{l[h]=null}),or(),i=l[n],i?i.p(r,f):(i=l[n]=a[n](r),i.c()),U(i,1),i.m(o.parentNode,o))},i(u){s||(U(i),s=!0)},o(u){te(i),s=!1},d(u){u&&(E(e),E(o)),l[n].d(u)}}}function ng(t){let r,e,n=[],i=new x_,o,s=t[6]&&Wc(t),a=sr(t[4]);const l=c=>c[35];for(let c=0;c<a.length;c+=1){let u=Hc(t,a,c),f=l(u);i.set(f,n[c]=Gc(f,u))}return{c(){s&&s.c(),r=yr(),e=Be("div");for(let c=0;c<n.length;c+=1)n[c].c();this.h()},l(c){s&&s.l(c),r=vr(c),e=Ge(c,"DIV",{class:!0,"aria-hidden":!0});var u=De(e);for(let f=0;f<n.length;f+=1)n[f].l(u);u.forEach(E),this.h()},h(){m(e,"class",Zi.state__animations),m(e,"aria-hidden","true")},m(c,u){s&&s.m(c,u),ie(c,r,u),ie(c,e,u);for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(e,null);t[21](e),o=!0},p(c,u){c[6]?s?(s.p(c,u),u[0]&64&&U(s,1)):(s=Wc(c),s.c(),U(s,1),s.m(r.parentNode,r)):s&&(ir(),te(s,1,1,()=>{s=null}),or()),u[0]&2064&&(a=sr(c[4]),ir(),n=pa(n,u,l,1,c,a,i,e,ga,Gc,null,Hc),or())},i(c){if(!o){U(s);for(let u=0;u<a.length;u+=1)U(n[u]);o=!0}},o(c){te(s);for(let u=0;u<n.length;u+=1)te(n[u]);o=!1},d(c){c&&(E(r),E(e)),s&&s.d(c);for(let u=0;u<n.length;u+=1)n[u].d();t[21](null)}}}function ig(t){let r,e,n,i;const o=[eg,$_],s=[];function a(l,c){return l[2]?-1:0}return~(r=a(t))&&(e=s[r]=o[r](t)),{c(){e&&e.c(),n=Pe()},l(l){e&&e.l(l),n=Pe()},m(l,c){~r&&s[r].m(l,c),ie(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?~r&&s[r].p(l,c):(e&&(ir(),te(s[u],1,1,()=>{s[u]=null}),or()),~r?(e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(l){i||(U(e),i=!0)},o(l){te(e),i=!1},d(l){l&&E(n),~r&&s[r].d(l)}}}function og(t){return t.some(r=>r.type==="fade")}function Yc(t){return t.type==="change_bounds"?t:t.type==="set"?Yc(t.items[0]):null}function sg(t,r,e){let n,i,o,s,a,l,c,u,f,h,p=C,b=()=>(p(),p=P(o,Q=>e(18,h=Q)),o);t.$$.on_destroy.push(()=>p());let{componentContext:_}=r,{layoutParams:v=void 0}=r;const w=Jr(en);let L=!1,N,V=new Map,F=new Set,$=[],D=[],J=[],Z=[],W,G,z,he=!1;function ye(){e(13,he=!1)}function Te(Q){z&&z.destroy(),e(6,z=Q!=null&&Q.div?_.produceChildContext(Q.div,{path:Q.state_id||"<unknown>"}):void 0)}function _e(Q){const Ee=_.json.states;Ee&&(e(14,c=Ee.map((ge,nt)=>({...ge,div:Q[nt]}))),e(0,_.json={..._.json,states:c},_),G&&Te(c.find(ge=>ge.state_id===G)||null))}function be(Q,Ee,ge){let{json:nt,parentComponentContext:Y,transitions:Se,node:Je}=Ee;nt=_.getJsonWithVars(nt),Se=_.getJsonWithVars(Se);const ne=Bc(Se),lt=Ee.bbox||Je.getBoundingClientRect(),je={...nt,margins:void 0,alpha:og(ne)?void 0:nt.alpha};return{id:Y.id||"",json:je,componentContextCopy:Y.produceChildContext(je,{fake:!0}),elementBbox:lt,rootBbox:Q,transitions:ne,alpha:nt.alpha,width:lt.width,height:lt.height,offsetTop:lt.top-Q.top,offsetLeft:lt.left-Q.left,direction:ge,resolvePromise:Ee.resolvePromise,node:Ee.node}}async function pt(Q){if(G===Q)return _;w.setRunning("stateChange",!0);const Ee=new Set(F);$.forEach(je=>{je.resolvePromise&&je.resolvePromise()}),e(4,$=[]);let ge=[];if(N){const je=N.getBoundingClientRect();ge=J.map(Ie=>be(je,Ie,"out"))}Z.forEach(je=>{je.transitions&&V.set(je.id,{transitions:je.transitions,rect:je.node.getBoundingClientRect()})}),D=[],J=[],Z=[];const nt=c.find(je=>je.state_id===Q)||null;if(nt?(e(5,G=Q),a==null||a.setValue(G),Te(nt)):_.logError(x(new Error("Cannot find state with id"),{additional:{stateId:Q}})),await vn(),!N)return;const Y=N.getBoundingClientRect();let Se=D.filter(je=>{var Ie;return je.parentComponentContext.id&&!Ee.has(je.parentComponentContext.id)?!0:((Ie=je.resolvePromise)==null||Ie.call(je),!1)}).map(je=>be(Y,je,"in"));ge=ge.filter(je=>{var Ie;return je.id&&!F.has(je.id)?!0:((Ie=je.resolvePromise)==null||Ie.call(je),!1)});const Je=ge.concat(Se),ne=Je.reduce((je,Ie)=>Math.max(je,Rc(Ie.transitions)),0),lt=Z.filter(je=>V.has(je.id)).map(je=>{const Ie={...je.json,margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}},kt=V.get(je.id);return{id:je.parentComponentContext.id||"",json:Ie,componentContextCopy:je.parentComponentContext.produceChildContext(Ie,{fake:!0}),rootBbox:Y,beforeBbox:kt.rect,afterBbox:je.node.getBoundingClientRect(),node:je.node,transition:_.getJsonWithVars(Yc(kt.transitions)),resolvePromise:je.resolvePromise}});return e(4,$=[...Je.map(je=>({...je,maxDuration:ne})),...lt]),V.clear(),w.setRunning("stateChange",!1),_}Ui(el,{runVisibilityTransition(Q,Ee,ge,nt,Y,Se){if(!N)return Promise.resolve();const Je=N.getBoundingClientRect(),ne=be(Je,{json:Q,parentComponentContext:Ee,transitions:ge,node:nt,bbox:Se},Y),lt=Rc(ne.transitions),je={...ne,maxDuration:lt};return e(4,$=[...$.filter(Ie=>Ie.node!==ne.node),je]),new Promise(Ie=>{je.resolvePromise=Ie})},registerChildWithTransitionIn(Q,Ee,ge,nt){const Y={json:Q,parentComponentContext:Ee,transitions:ge,node:nt};return D.push(Y),new Promise(Se=>{Y.resolvePromise=Se})},registerChildWithTransitionOut(Q,Ee,ge,nt){const Y={json:Q,parentComponentContext:Ee,transitions:ge,node:nt};return J.push(Y),new Promise(Se=>{Y.resolvePromise=Se})},registerChildWithTransitionChange(Q,Ee,ge,nt){const Y=Ee.id;if(!Y)return Promise.resolve();const Se={id:Y,json:Q,parentComponentContext:Ee,transitions:ge,node:nt};return Z.push(Se),new Promise(Je=>{Se.resolvePromise=Je})},hasTransitionChange(Q){return Q?V.has(Q):!1},registerChild(Q){F.add(Q)},unregisterChild(Q){F.delete(Q)}});function Ye(Q){if(!he&&(e(13,he=!0),Q.length)){const Ee=(a==null?void 0:a.getValue())||i;if(Ee){e(5,G=Ee);const ge=Q.find(nt=>nt.state_id===G)||null;Te(ge),ge||_.logError(x(new Error("Cannot find state for default_state_id"),{additional:{selectedId:G}}))}else{const ge=Q[0];e(5,G=ge.state_id),Te(ge)}a&&(a.setValue(G),a.subscribe(ge=>{pt(ge)}))}}function Re(Q){e(4,$=$.filter(Ee=>Ee!==Q)),Q.resolvePromise&&Q.resolvePromise()}un(()=>{z&&z.destroy(),W&&_.unregisterState(W)});const Me=Q=>Re(Q),Ze=Q=>Re(Q);function et(Q){Pr[Q?"unshift":"push"](()=>{N=Q,e(3,N)})}return t.$$set=Q=>{"componentContext"in Q&&e(0,_=Q.componentContext),"layoutParams"in Q&&e(1,v=Q.layoutParams)},t.$$.update=()=>{t.$$.dirty[0]&1&&e(15,n=_.json.div_id||_.id),t.$$.dirty[0]&1&&(i=_.getJsonWithVars(_.json.default_state_id)),t.$$.dirty[0]&1&&b(e(9,o=_.getDerivedFromVars(_.json.clip_to_bounds))),t.$$.dirty[0]&1&&e(17,s=_.json.state_id_variable),t.$$.dirty[0]&131073&&(a=s?_.getVariable(s,"string"):null),t.$$.dirty[0]&1&&e(16,l=_.origJson),t.$$.dirty[0]&65536&&l&&ye(),t.$$.dirty[0]&32769&&(n?e(2,L=!1):(e(2,L=!0),_.logError(x(new Error('Missing "id" prop for div "state"'))))),t.$$.dirty[0]&1&&_.json&&(F=new Set),t.$$.dirty[0]&1&&e(14,c=Array.isArray(_.json.states)&&_.json.states||[]),t.$$.dirty[0]&16384&&e(8,u=c.map(Q=>{var Ee;return{json:Q.div,id:(Ee=Q.div)==null?void 0:Ee.id}})),t.$$.dirty[0]&16385&&(c!=null&&c.length?e(2,L=!1):(e(2,L=!0),_.logError(x(new Error('Empty "states" prop for div "state"'))))),t.$$.dirty[0]&36865&&_.json&&(W&&(_.unregisterState(n),e(12,W=void 0)),n&&!(_!=null&&_.fakeElement)&&(e(12,W=n),_.registerState(n,pt))),t.$$.dirty[0]&24576&&!he&&Ye(c),t.$$.dirty[0]&262144&&e(7,f={overflow:h===!1||h===0?"visible":void 0})},[_,v,L,N,$,G,z,f,u,o,_e,Re,W,he,c,n,l,s,h,Me,Ze,et]}class lg extends Hr{constructor(r){super(),Br(this,r,sg,ig,wr,{componentContext:0,layoutParams:1},null,[-1,-1])}}const _i={pager:"divkit-4e617",pager__items:"divkit-2d4e4",pager__item:"divkit-834e0",pager_orientation_horizontal:"divkit-9cc96",pager_orientation_vertical:"divkit-e886e",pager__item_height_content:"divkit-e1525",pager__item_height_fixed:"divkit-3af1f","pager__item_height-constrained":"divkit-d5bd8",pager__item_width_content:"divkit-8d520",pager__item_width_fixed:"divkit-4e248","pager__item_width-constrained":"divkit-6a541",pager__arrow:"divkit-c6702","pager__arrow-icon-path":"divkit-97cb5"},{Boolean:ag}=ai;function Jc(t,r,e){const n=t.slice();return n[59]=r[e],n[61]=e,n}function cg(t){let r,e;return r=new hi({props:{componentContext:t[0]}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function ug(t){let r,e;return r=new kn({props:{cls:bt("pager",_i,t[12]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,parentOf:t[3],replaceItems:t[27],$$slots:{default:[hg]},$$scope:{ctx:t}}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&4096&&(o.cls=bt("pager",_i,n[12])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&8&&(o.parentOf=n[3]),i[0]&3157612|i[2]&1&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function qc(t){let r,e,n,i,o;return e=new ii({props:{componentContext:t[59]}}),{c(){r=Be("div"),Ut(e.$$.fragment),n=yr(),this.h()},l(s){r=Ge(s,"DIV",{class:!0});var a=De(r);Jt(e.$$.fragment,a),n=vr(a),a.forEach(E),this.h()},h(){m(r,"class",i=bt("pager__item",_i,Zc(t[2],t[21][t[61]])))},m(s,a){ie(s,r,a),zt(e,r,null),Ct(r,n),o=!0},p(s,a){const l={};a[0]&8&&(l.componentContext=s[59]),e.$set(l),(!o||a[0]&2097156&&i!==(i=bt("pager__item",_i,Zc(s[2],s[21][s[61]]))))&&m(r,"class",i)},i(s){o||(U(e.$$.fragment,s),o=!0)},o(s){te(e.$$.fragment,s),o=!1},d(s){s&&E(r),Lt(e)}}}function Kc(t){let r,e,n,i=!t[23]&&fg();return{c(){r=Be("div"),i&&i.c(),this.h()},l(o){r=Ge(o,"DIV",{class:!0});var s=De(r);i&&i.l(s),s.forEach(E),this.h()},h(){m(r,"class",t[23]||`${_i.pager__arrow} ${Xn.arrow} ${Xn.arrow_left}`)},m(o,s){ie(o,r,s),i&&i.m(r,null),e||(n=Ue(r,"click",t[46]),e=!0)},p:C,d(o){o&&E(r),i&&i.d(),e=!1,n()}}}function fg(t){let r,e;return{c(){r=$r("svg"),e=$r("path"),this.h()},l(n){r=cn(n,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=De(r);e=cn(i,"path",{class:!0,d:!0}),De(e).forEach(E),i.forEach(E),this.h()},h(){m(e,"class",_i["pager__arrow-icon-path"]),m(e,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),m(r,"class",Xn.arrow__icon),m(r,"xmlns","http://www.w3.org/2000/svg"),m(r,"width","32"),m(r,"height","32"),m(r,"viewBox","0 0 32 32"),m(r,"fill","none")},m(n,i){ie(n,r,i),Ct(r,e)},d(n){n&&E(r)}}}function Xc(t){let r,e,n,i=!t[24]&&dg();return{c(){r=Be("div"),i&&i.c(),this.h()},l(o){r=Ge(o,"DIV",{class:!0});var s=De(r);i&&i.l(s),s.forEach(E),this.h()},h(){m(r,"class",t[24]||`${_i.pager__arrow} ${Xn.arrow} ${Xn.arrow_right}`)},m(o,s){ie(o,r,s),i&&i.m(r,null),e||(n=Ue(r,"click",t[47]),e=!0)},p:C,d(o){o&&E(r),i&&i.d(),e=!1,n()}}}function dg(t){let r,e;return{c(){r=$r("svg"),e=$r("path"),this.h()},l(n){r=cn(n,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=De(r);e=cn(i,"path",{class:!0,d:!0}),De(e).forEach(E),i.forEach(E),this.h()},h(){m(e,"class",_i["pager__arrow-icon-path"]),m(e,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),m(r,"class",Xn.arrow__icon),m(r,"xmlns","http://www.w3.org/2000/svg"),m(r,"width","32"),m(r,"height","32"),m(r,"viewBox","0 0 32 32"),m(r,"fill","none")},m(n,i){ie(n,r,i),Ct(r,e)},d(n){n&&E(r)}}}function hg(t){let r,e,n,i,o,s,a,l,c,u=sr(t[3]),f=[];for(let _=0;_<u.length;_+=1)f[_]=qc(Jc(t,u,_));const h=_=>te(f[_],1,1,()=>{f[_]=null});let p=t[10]&&t[11]&&Kc(t),b=t[9]&&t[11]&&Xc(t);return{c(){r=Be("div");for(let _=0;_<f.length;_+=1)f[_].c();i=yr(),p&&p.c(),o=yr(),b&&b.c(),s=Pe(),this.h()},l(_){r=Ge(_,"DIV",{class:!0,style:!0});var v=De(r);for(let w=0;w<f.length;w+=1)f[w].l(v);v.forEach(E),i=vr(_),p&&p.l(_),o=vr(_),b&&b.l(_),s=Pe(),this.h()},h(){m(r,"class",e=_i.pager__items+" "+(t[20]?tr["root_restrict-scroll"]:"")),m(r,"style",n=Vt(t[13]))},m(_,v){ie(_,r,v);for(let w=0;w<f.length;w+=1)f[w]&&f[w].m(r,null);t[45](r),ie(_,i,v),p&&p.m(_,v),ie(_,o,v),b&&b.m(_,v),ie(_,s,v),a=!0,l||(c=Ue(r,"scroll",t[26]),l=!0)},p(_,v){if(v[0]&2097164){u=sr(_[3]);let w;for(w=0;w<u.length;w+=1){const L=Jc(_,u,w);f[w]?(f[w].p(L,v),U(f[w],1)):(f[w]=qc(L),f[w].c(),U(f[w],1),f[w].m(r,null))}for(ir(),w=u.length;w<f.length;w+=1)h(w);or()}(!a||v[0]&1048576&&e!==(e=_i.pager__items+" "+(_[20]?tr["root_restrict-scroll"]:"")))&&m(r,"class",e),(!a||v[0]&8192&&n!==(n=Vt(_[13])))&&m(r,"style",n),_[10]&&_[11]?p?p.p(_,v):(p=Kc(_),p.c(),p.m(o.parentNode,o)):p&&(p.d(1),p=null),_[9]&&_[11]?b?b.p(_,v):(b=Xc(_),b.c(),b.m(s.parentNode,s)):b&&(b.d(1),b=null)},i(_){if(!a){for(let v=0;v<u.length;v+=1)U(f[v]);a=!0}},o(_){f=f.filter(ag);for(let v=0;v<f.length;v+=1)te(f[v]);a=!1},d(_){_&&(E(r),E(i),E(o),E(s)),dn(f,_),t[45](null),p&&p.d(_),b&&b.d(_),l=!1,c()}}}function _g(t){let r,e,n,i;const o=[ug,cg],s=[];function a(l,c){return l[4]?-1:0}return~(r=a(t))&&(e=s[r]=o[r](t)),{c(){e&&e.c(),n=Pe()},l(l){e&&e.l(l),n=Pe()},m(l,c){~r&&s[r].m(l,c),ie(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?~r&&s[r].p(l,c):(e&&(ir(),te(s[u],1,1,()=>{s[u]=null}),or()),~r?(e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(l){i||(U(e),i=!0)},o(l){te(e),i=!1},d(l){l&&E(n),~r&&s[r].d(l)}}}const cs={wrap_content:"content",fixed:"fixed",match_parent:"parent"};function Zc(t,r){var n,i,o,s;if(t==="horizontal"){const a=((n=r.height)==null?void 0:n.type)||"";return{height:a in cs?cs[a]:"content","height-constrained":((i=r.height)==null?void 0:i.type)==="wrap_content"?ti(r.height.constrained,!1):!1}}const e=((o=r.width)==null?void 0:o.type)||"";return{width:e in cs?cs[e]:"parent","width-constrained":((s=r.width)==null?void 0:s.type)==="wrap_content"?ti(r.width.constrained,!1):!1}}function gg(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L,N=C,V=()=>(N(),N=P(w,ke=>e(49,L=ke)),w),F,$,D,J=C,Z=()=>(J(),J=P(o,ke=>e(40,D=ke)),o),W,G=C,z=()=>(G(),G=P(l,ke=>e(41,W=ke)),l),he,ye=C,Te=()=>(ye(),ye=P(a,ke=>e(42,he=ke)),a),_e,be=C,pt=()=>(be(),be=P(s,ke=>e(43,_e=ke)),s),Ye,Re=C,Me=()=>(Re(),Re=P(i,ke=>e(44,Ye=ke)),i),Ze,et=C,Q=()=>(et(),et=P(c,ke=>e(20,Ze=ke)),c),Ee,ge=C,nt=()=>(ge(),ge=P(gt,ke=>e(21,Ee=ke)),gt);t.$$.on_destroy.push(()=>N()),t.$$.on_destroy.push(()=>J()),t.$$.on_destroy.push(()=>G()),t.$$.on_destroy.push(()=>ye()),t.$$.on_destroy.push(()=>be()),t.$$.on_destroy.push(()=>Re()),t.$$.on_destroy.push(()=>et()),t.$$.on_destroy.push(()=>ge());let{componentContext:Y}=r,{layoutParams:Se=void 0}=r;const Je=Jr(en),ne=Je.direction;an(t,ne,ke=>e(5,F=ke));const lt=Je.genId("pager"),je=Je.getCustomization("pagerLeftClass"),Ie=Je.getCustomization("pagerRightClass"),kt=Je.isDesktop;an(t,kt,ke=>e(39,$=ke));const Tt=ls(Qt,50);let re,it,ut=!1,gt,qe=0,S=0,rt=!1,le="horizontal",Qe="0em",At="",fe="",me=[];function ft(){e(35,At="")}function $e(ke){e(0,Y={...Y,json:{...Y.json,items:ke.filter(ji)}})}function rr(ke,It){return le==="horizontal"?It.left>=ke.left&&It.right<=ke.right:It.top>=ke.top&&It.bottom<=ke.bottom}function Ot(){const ke=Array.from(it.children),It=it.getBoundingClientRect(),He=ke.findIndex(vt=>rr(It,vt.getBoundingClientRect()));return He!==-1?He:qe}function Qt(){if(!ut)return;const ke=Ot();ke!==qe&&e(32,qe=ke)}function Oe(ke,It){const He=Y.id;if(He){const vt=new Map(L);Uo(w,L=vt.set(He,{instId:lt,size:ke,currentItem:It,scrollToPagerItem:qt}),L)}}function yt(ke){var He;if(ke===S)return;S=ke;const It=Y.getJsonWithVars((He=me[ke].json)==null?void 0:He.selected_actions);It!=null&&It.length&&Y.execAnyActions(It)}function qt(ke,It="smooth"){const He=le==="horizontal",vt=it.children[ke],ze=He?"offsetLeft":"offsetTop",at=He?"offsetWidth":"offsetHeight",Et=He?"left":"top",Fe=vt[ze]+vt[at]/2-it[at]/2;it.scroll({[Et]:Fe,behavior:It}),e(32,qe=ke)}function Gt(ke,It){let He=qe-ke;He<0&&(He=It==="ring"?Pi(He,me.length):0),qt(He)}function Kt(ke,It){let He=qe+ke;He>me.length-1&&(He=It==="ring"?Pi(He,me.length):me.length-1),qt(He)}ei(()=>{if(e(31,ut=!0),!!document.getElementById(`${lt}-tab-0`)){const It=[...it.children];for(const[He,vt]of It.entries())vt.setAttribute("role","tabpanel"),vt.setAttribute("id",`${lt}-panel-${He}`),vt.setAttribute("aria-labelledby",`${lt}-tab-${He}`)}qe>0&&qt(qe,"instant")}),un(()=>{e(31,ut=!1),me.forEach(ke=>{ke.destroy()}),re&&(Je.unregisterInstance(re),e(30,re=void 0))});function H(ke){Pr[ke?"unshift":"push"](()=>{it=ke,e(6,it)})}const ae=()=>(F==="ltr"?Gt:Kt)(1,"clamp"),dr=()=>(F==="ltr"?Kt:Gt)(1,"clamp");return t.$$set=ke=>{"componentContext"in ke&&e(0,Y=ke.componentContext),"layoutParams"in ke&&e(1,Se=ke.layoutParams)},t.$$.update=()=>{var ke,It,He,vt,ze,at,Et,Fe,dt,Xt,cr,pr,Yt;if(t.$$.dirty[0]&1&&e(38,n=Y.origJson),t.$$.dirty[1]&128&&n&&ft(),t.$$.dirty[0]&1&&Me(e(19,i=typeof((ke=Y.json.item_builder)==null?void 0:ke.data)=="string"?Y.getDerivedFromVars((It=Y.json.item_builder)==null?void 0:It.data,void 0,!0):(He=Y.json.item_builder)!=null&&He.data?qi(Y.json.item_builder.data):void 0)),t.$$.dirty[0]&1&&Z(e(18,o=Y.getDerivedFromVars(Y.json.layout_mode))),t.$$.dirty[0]&1&&pt(e(17,s=Y.getDerivedFromVars(Y.json.orientation))),t.$$.dirty[0]&1&&Te(e(16,a=Y.getDerivedFromVars(Y.json.item_spacing))),t.$$.dirty[0]&1&&z(e(15,l=Y.getDerivedFromVars(Y.json.paddings))),t.$$.dirty[0]&1&&Q(e(14,c=Y.getDerivedFromVars(Y.json.restrict_parent_scroll))),t.$$.dirty[0]&9|t.$$.dirty[1]&8192){let ht=[];if(Y.json.item_builder&&Array.isArray(Ye)&&Array.isArray(Y.json.item_builder.prototypes)){const Dt=Y.json.item_builder;ht=dl(Ye,Je,Y,Dt)}else ht=(Array.isArray(Y.json.items)&&Y.json.items||[]).map(Dt=>({div:Dt}));me.forEach(Dt=>{Dt.destroy()}),e(3,me=ht.map((Dt,Nt)=>Y.produceChildContext(Dt.div,{path:Nt,variables:Dt.vars,id:Dt.id})))}if(t.$$.dirty[0]&9){let ht=[];me.forEach(Dt=>{ht.push(Y.getDerivedFromVars({width:Dt.json.width,height:Dt.json.height}))}),nt(e(7,gt=Yi(ht,Dt=>[...Dt])))}if(t.$$.dirty[0]&1|t.$$.dirty[1]&512&&(D?D.type!=="percentage"&&D.type!=="fixed"?(e(33,rt=!0),Y.logError(x(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):e(33,rt=!1):(e(33,rt=!0),Y.logError(x(new Error('Empty "layout_mode" prop for div "pager"'))))),t.$$.dirty[0]&4|t.$$.dirty[1]&4096&&e(2,le=gl(_e,le)),t.$$.dirty[1]&2048){const ht=he==null?void 0:he.value;ht&&Vn(ht)&&e(34,Qe=wn(ht||0))}if(t.$$.dirty[0]&32|t.$$.dirty[1]&1040&&e(35,At=Co(W,F,At)),t.$$.dirty[0]&4&&e(37,u=le==="horizontal"?"grid-auto-columns":"grid-auto-rows"),t.$$.dirty[0]&37|t.$$.dirty[1]&520){if((D==null?void 0:D.type)==="fixed"){const ht=wn(le==="horizontal"?((F==="ltr"?(vt=Y.json.paddings)==null?void 0:vt.start:(ze=Y.json.paddings)==null?void 0:ze.end)||((at=Y.json.paddings)==null?void 0:at.left)||0)+((F==="ltr"?(Et=Y.json.paddings)==null?void 0:Et.end:(Fe=Y.json.paddings)==null?void 0:Fe.start)||((dt=Y.json.paddings)==null?void 0:dt.right)||0):(((Xt=Y.json.paddings)==null?void 0:Xt.top)||0)+(((cr=Y.json.paddings)==null?void 0:cr.bottom)||0)),Dt=(pr=D.neighbour_page_width)==null?void 0:pr.value;e(36,fe=Dt?`calc(100% + ${ht} - 2 * ${wn(Dt)} - 2 * ${Qe})`:"100%")}else if((D==null?void 0:D.type)==="percentage"){const ht=(Yt=D.page_width)==null?void 0:Yt.value;e(36,fe=`${Number(ht)}%`)}}if(t.$$.dirty[1]&120&&e(13,f={"grid-gap":Qe,padding:At,[u]:fe}),t.$$.dirty[0]&4&&e(12,h={orientation:le}),t.$$.dirty[1]&4&&e(4,p=rt),t.$$.dirty[0]&16|t.$$.dirty[1]&257&&e(11,b=$&&ut&&!p),t.$$.dirty[0]&1073741833&&Y.json){const ht=Y.getJsonWithVars(Y.json.default_item);typeof ht=="number"&&ht>=0&&ht<me.length&&e(32,qe=S=ht),re&&(Je.unregisterInstance(re),e(30,re=void 0)),Y.id&&!Y.fakeElement&&(e(30,re=Y.id),Je.registerInstance(re,{setCurrentItem(Dt){if(Dt<0||Dt>me.length-1)throw new Error('Item is out of range in "set-current-item" action');qt(Dt)},setPreviousItem:Gt,setNextItem:Kt,scrollToStart(){qt(0)},scrollToEnd(){qt(me.length-1)}}))}t.$$.dirty[0]&40|t.$$.dirty[1]&2&&e(10,_=F==="ltr"?qe>0:qe+1<me.length),t.$$.dirty[0]&40|t.$$.dirty[1]&2&&e(9,v=F==="ltr"?qe+1<me.length:qe>0),t.$$.dirty[0]&8|t.$$.dirty[1]&2&&Oe(me.length,qe),t.$$.dirty[1]&2&&yt(qe)},V(e(8,w=Je.getStore("pagers"))),[Y,Se,le,me,p,F,it,gt,w,v,_,b,h,f,c,l,a,s,o,i,Ze,Ee,ne,je,Ie,kt,Tt,$e,Gt,Kt,re,ut,qe,rt,Qe,At,fe,u,n,$,D,W,he,_e,Ye,H,ae,dr]}class pg extends Hr{constructor(r){super(),Br(this,r,gg,_g,wr,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const Qi={indicator:"divkit-7560c",indicator__scroller:"divkit-42240",indicator__items:"divkit-49790",indicator__item:"divkit-2da15",indicator_placement_default:"divkit-eb5df",indicator__item_active:"divkit-c146b",indicator_direction_ltr:"divkit-bae27",indicator_direction_rtl:"divkit-58b11",indicator_placement_stretch:"divkit-b49a3"};function Qc(t,r,e){const n=t.slice();n[42]=r[e],n[45]=e;const i=n[45]===n[10].currentItem;return n[43]=i,n}function xc(t){let r,e=sr(Array(t[10].size)),n=[];for(let i=0;i<e.length;i+=1)n[i]=$c(Qc(t,e,i));return{c(){for(let i=0;i<n.length;i+=1)n[i].c();r=Pe()},l(i){for(let o=0;o<n.length;o+=1)n[o].l(i);r=Pe()},m(i,o){for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(i,o);ie(i,r,o)},p(i,o){if(o[0]&12583936){e=sr(Array(i[10].size));let s;for(s=0;s<e.length;s+=1){const a=Qc(i,e,s);n[s]?n[s].p(a,o):(n[s]=$c(a),n[s].c(),n[s].m(r.parentNode,r))}for(;s<n.length;s+=1)n[s].d(1);n.length=e.length}},d(i){i&&E(r),dn(n,i)}}}function $c(t){let r,e,n,i,o,s,a,l;function c(){return t[35](t[45])}return{c(){r=Be("div"),this.h()},l(u){r=Ge(u,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),De(r).forEach(E),this.h()},h(){m(r,"class",e=bt("indicator__item",Qi,{active:t[43]})+" "+tr.root__clickable),m(r,"role","tab"),m(r,"id",n=t[10].instId+"-tab-"+t[45]),m(r,"aria-controls",i=t[10].instId+"-panel-"+t[45]),m(r,"aria-selected",o=t[43]?"true":"false"),m(r,"tabindex",s=t[43]?0:-1)},m(u,f){ie(u,r,f),a||(l=[Ue(r,"click",c),Ue(r,"keydown",t[23])],a=!0)},p(u,f){t=u,f[0]&1024&&e!==(e=bt("indicator__item",Qi,{active:t[43]})+" "+tr.root__clickable)&&m(r,"class",e),f[0]&1024&&n!==(n=t[10].instId+"-tab-"+t[45])&&m(r,"id",n),f[0]&1024&&i!==(i=t[10].instId+"-panel-"+t[45])&&m(r,"aria-controls",i),f[0]&1024&&o!==(o=t[43]?"true":"false")&&m(r,"aria-selected",o),f[0]&1024&&s!==(s=t[43]?0:-1)&&m(r,"tabindex",s)},d(u){u&&E(r),a=!1,Yr(l)}}}function mg(t){let r,e,n=t[10]&&xc(t);return{c(){r=Be("div"),e=Be("div"),n&&n.c(),this.h()},l(i){r=Ge(i,"DIV",{class:!0});var o=De(r);e=Ge(o,"DIV",{class:!0,role:!0});var s=De(e);n&&n.l(s),s.forEach(E),o.forEach(E),this.h()},h(){m(e,"class",Qi.indicator__items),m(e,"role","tablist"),B(e,"margin",t[4]==="default"?`0 ${we(Math.max(0,t[2].width-t[3].width)/2)}`:""),B(e,"--divkit-indicator-inactive-width",we(t[3].width)),B(e,"--divkit-indicator-inactive-height",we(t[3].height)),B(e,"--divkit-indicator-inactive-border-radius",we(t[3].borderRadius)),B(e,"--divkit-indicator-inactive-background",t[3].background||""),B(e,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),B(e,"--divkit-indicator-active-width",we(t[2].width)),B(e,"--divkit-indicator-active-height",we(t[2].height)),B(e,"--divkit-indicator-active-border-radius",we(t[2].borderRadius)),B(e,"--divkit-indicator-active-background",t[2].background||""),B(e,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),B(e,"--divkit-indicator-active-scale",t[2].width/t[3].width),B(e,"--divkit-indicator-default-margin",t[4]==="default"?`0 ${we((t[5]-t[3].width)/2)}`:""),B(e,"--divkit-indicator-stretch-margin",t[4]==="stretch"?we(t[7]):""),B(e,"--divkit-indicator-stretch-max-count",t[4]==="stretch"?t[6]:""),B(e,"--divkit-indicator-stretch-max-spacer",t[4]==="stretch"?we((t[6]-1)*t[7]):""),m(r,"class",Qi.indicator__scroller)},m(i,o){ie(i,r,o),Ct(r,e),n&&n.m(e,null),t[36](e),t[37](r)},p(i,o){i[10]?n?n.p(i,o):(n=xc(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null),o[0]&28&&B(e,"margin",i[4]==="default"?`0 ${we(Math.max(0,i[2].width-i[3].width)/2)}`:""),o[0]&8&&B(e,"--divkit-indicator-inactive-width",we(i[3].width)),o[0]&8&&B(e,"--divkit-indicator-inactive-height",we(i[3].height)),o[0]&8&&B(e,"--divkit-indicator-inactive-border-radius",we(i[3].borderRadius)),o[0]&8&&B(e,"--divkit-indicator-inactive-background",i[3].background||""),o[0]&8&&B(e,"--divkit-indicator-inactive-box-shadow",i[3].boxShadow||""),o[0]&4&&B(e,"--divkit-indicator-active-width",we(i[2].width)),o[0]&4&&B(e,"--divkit-indicator-active-height",we(i[2].height)),o[0]&4&&B(e,"--divkit-indicator-active-border-radius",we(i[2].borderRadius)),o[0]&4&&B(e,"--divkit-indicator-active-background",i[2].background||""),o[0]&4&&B(e,"--divkit-indicator-active-box-shadow",i[2].boxShadow||""),o[0]&12&&B(e,"--divkit-indicator-active-scale",i[2].width/i[3].width),o[0]&56&&B(e,"--divkit-indicator-default-margin",i[4]==="default"?`0 ${we((i[5]-i[3].width)/2)}`:""),o[0]&144&&B(e,"--divkit-indicator-stretch-margin",i[4]==="stretch"?we(i[7]):""),o[0]&80&&B(e,"--divkit-indicator-stretch-max-count",i[4]==="stretch"?i[6]:""),o[0]&208&&B(e,"--divkit-indicator-stretch-max-spacer",i[4]==="stretch"?we((i[6]-1)*i[7]):"")},d(i){i&&E(r),n&&n.d(),t[36](null),t[37](null)}}}function bg(t){let r,e;return r=new kn({props:{cls:bt("indicator",Qi,t[11]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[mg]},$$scope:{ctx:t}}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&2048&&(o.cls=bt("indicator",Qi,n[11])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&2044|i[1]&32768&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}const yl=["rounded_rectangle","circle"];function yg(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v=C,w=()=>(v(),v=P(h,fe=>e(26,_=fe)),h),L,N=C,V=()=>(N(),N=P(u,fe=>e(27,L=fe)),u),F,$=C,D=()=>($(),$=P(f,fe=>e(28,F=fe)),f),J,Z=C,W=()=>(Z(),Z=P(o,fe=>e(29,J=fe)),o),G,z=C,he=()=>(z(),z=P(s,fe=>e(30,G=fe)),s),ye,Te=C,_e=()=>(Te(),Te=P(i,fe=>e(31,ye=fe)),i),be,pt=C,Ye=()=>(pt(),pt=P(a,fe=>e(32,be=fe)),a),Re,Me=C,Ze=()=>(Me(),Me=P(c,fe=>e(33,Re=fe)),c),et,Q=C,Ee=()=>(Q(),Q=P(l,fe=>e(34,et=fe)),l);t.$$.on_destroy.push(()=>v()),t.$$.on_destroy.push(()=>N()),t.$$.on_destroy.push(()=>$()),t.$$.on_destroy.push(()=>Z()),t.$$.on_destroy.push(()=>z()),t.$$.on_destroy.push(()=>Te()),t.$$.on_destroy.push(()=>pt()),t.$$.on_destroy.push(()=>Me()),t.$$.on_destroy.push(()=>Q());let{componentContext:ge}=r,{layoutParams:nt=void 0}=r;const Y=Jr(en),Se=Y.direction;an(t,Se,fe=>e(25,b=fe));let Je={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},ne={width:10,height:10,borderRadius:5,background:"#33919cb5"},lt="default",je=15,Ie=10,kt=5,Tt,re,it;function ut(){e(4,lt="default"),e(5,je=15),e(6,Ie=10),e(7,kt=5),e(2,Je={width:13,height:13,borderRadius:6.5,background:"#ffdc60"}),e(3,ne={width:10,height:10,borderRadius:5,background:"#33919cb5"})}async function gt(fe){if(ge.json.pager_id&&fe.has(ge.json.pager_id)&&(e(10,it=fe.get(ge.json.pager_id)),await vn(),re)){const me=re.children[it.currentItem];if(me){const ft=me.offsetLeft;Tt.scroll({left:ft-Tt.clientWidth/2,behavior:"smooth"})}}}function qe(fe){fe!==it.currentItem&&it.scrollToPagerItem(fe)}function S(fe){if(fe.ctrlKey||fe.shiftKey||fe.altKey||fe.metaKey)return;const{size:me,currentItem:ft}=it;if(fe.which===kc){const $e=ft-1<0?ft:ft-1;rt($e)}else if(fe.which===Ac){const $e=ft+1>=me?ft:ft+1;rt($e)}else if(fe.which===Ec)rt(0);else if(fe.which===jc)rt(me-1);else return;fe.preventDefault()}async function rt(fe){it.scrollToPagerItem(fe),await vn();const me=re.querySelector(`.${Qi.indicator__item_active}`);me&&me.focus()}const le=fe=>qe(fe);function Qe(fe){Pr[fe?"unshift":"push"](()=>{re=fe,e(9,re)})}function At(fe){Pr[fe?"unshift":"push"](()=>{Tt=fe,e(8,Tt)})}return t.$$set=fe=>{"componentContext"in fe&&e(0,ge=fe.componentContext),"layoutParams"in fe&&e(1,nt=fe.layoutParams)},t.$$.update=()=>{var fe,me;if(t.$$.dirty[0]&1&&e(24,n=ge.origJson),t.$$.dirty[0]&16777216&&n&&ut(),t.$$.dirty[0]&1&&_e(e(20,i=ge.getDerivedFromVars(ge.json.shape))),t.$$.dirty[0]&1&&W(e(19,o=ge.getDerivedFromVars(ge.json.active_item_color))),t.$$.dirty[0]&1&&he(e(18,s=ge.getDerivedFromVars(ge.json.inactive_item_color))),t.$$.dirty[0]&1&&Ye(e(17,a=ge.getDerivedFromVars(ge.json.active_item_size))),t.$$.dirty[0]&1&&Ee(e(16,l=ge.getDerivedFromVars(ge.json.active_shape))),t.$$.dirty[0]&1&&Ze(e(15,c=ge.getDerivedFromVars(ge.json.inactive_shape))),t.$$.dirty[0]&1&&V(e(14,u=ge.getDerivedFromVars(ge.json.space_between_centers))),t.$$.dirty[0]&1&&D(e(13,f=ge.getDerivedFromVars(ge.json.items_placement))),t.$$.dirty[0]&1610612748|t.$$.dirty[1]&15&&(et&&e(2,Je=ri({type:"shape_drawable",shape:et},yl,Je)),Re&&e(3,ne=ri({type:"shape_drawable",shape:Re},yl,ne)),!et&&!Re&&ye)){const ft=Kn(be,1.3);e(3,ne=ri({type:"shape_drawable",shape:ye,color:ne.background},yl,ne)),e(3,ne.background=Ir(G,1,ne.background),ne),e(2,Je={...ne,width:ne.width*ft,height:ne.height*ft,borderRadius:ne.borderRadius*ft,background:Je.background}),e(2,Je.background=Ir(J,1,Je.background),Je)}if(t.$$.dirty[0]&402653424)if(F&&(F.type==="default"||F.type==="stretch")){if(e(4,lt=F.type),lt==="default")e(5,je=qr((fe=F.space_between_centers)==null?void 0:fe.value,je));else if(lt==="stretch"){const ft=F;e(6,Ie=Kn(ft.max_visible_items,Ie)),e(7,kt=qr((me=ft.item_spacing)==null?void 0:me.value,kt))}}else e(4,lt="default"),L&&e(5,je=qr(L.value,je));t.$$.dirty[0]&67108864&>(_),t.$$.dirty[0]&33554448&&e(11,p={placement:lt,direction:b})},w(e(12,h=Y.getStore("pagers"))),[ge,nt,Je,ne,lt,je,Ie,kt,Tt,re,it,p,h,f,u,c,l,a,s,o,i,Se,qe,S,n,b,_,L,F,J,G,ye,be,Re,et,le,Qe,At]}class vg extends Hr{constructor(r){super(),Br(this,r,yg,bg,wr,{componentContext:0,layoutParams:1},null,[-1,-1])}}const Nr={slider:"divkit-99f56",slider__input:"divkit-96503",slider__input_secondary:"divkit-1ee78",slider__thumb:"divkit-67789",slider_direction_rtl:"divkit-38304",slider__thumb_secondary:"divkit-c5ec2","slider__tracks-wrapper":"divkit-d7767","slider__tracks-inner":"divkit-fd4b7",slider__track:"divkit-5332e","slider__active-track":"divkit-5d67f","slider__thumb-text":"divkit-23468","slider__thumb-text_secondary":"divkit-f2ab9",slider__tick:"divkit-f188a",slider__tick_active:"divkit-cdb6d",slider__tick_inactive:"divkit-dbdf0"};function eu(t,r){var o,s;if(!t||!t.font_size)return r;const e=t.offset,n=t.text_color&&Ir(t.text_color)||"#000",i=_o(t.font_weight,t.font_weight_value,void 0);if(Pn(t.font_size)&&n!=="transparent"){const a={fontSize:we(t.font_size),fontWeight:i,textColor:n};return typeof((o=e==null?void 0:e.x)==null?void 0:o.value)=="number"&&typeof((s=e==null?void 0:e.y)==null?void 0:s.value)=="number"&&(a.offset={x:e.x.value,y:e.y.value}),a}}function Si(t,r,e){return Math.max(r,Math.min(e,Number(t)))}function vl(t){return BigInt(t)}const Fo=vl("9223372036854775807"),Mo=vl("-9223372036854775808");function rn(t){const r=vl(t);if(r>Fo||r<Mo)throw new Error("Integer overflow.");return r}const xi=rn(0);function tu(t){let r=t;return r<0&&(r=-r),r}function ru(t){let r=0;return t>0?r=1:t<0&&(r=-1),rn(r)}class Vi{constructor(r,e){ur(this,"name");ur(this,"value");ur(this,"store");const n=this.convertValue(e);this.name=r,this.value=n}getName(){return this.name}subscribe(r){return this.store||(this.store=fi(this.value)),this.store.subscribe(r)}set(r){const e=this.fromString(r);this.setValue(e)}setValue(r){const e=this.convertValue(r);this.value=e,this.store&&this.store.set(e)}getValue(){return this.value}}class nu extends Vi{convertValue(r){if(typeof r!="string")throw new Error("Incorrect variable value");return r}fromString(r){return r}getType(){return"string"}}class iu extends Vi{convertValue(r){if(typeof r!="bigint"&&typeof r!="number")throw new Error("Incorrect variable value");try{return rn(r)}catch{throw new Error("Incorrect variable value")}}fromString(r){try{return rn(r)}catch{throw new Error("Incorrect variable value")}}getType(){return"integer"}}class ou extends Vi{convertValue(r){if(typeof r!="number"||Number.isNaN(r)||!isFinite(r))throw new Error("Incorrect variable value");return r}fromString(r){const e=Number(r);return this.convertValue(e)}getType(){return"number"}}class su extends Vi{convertValue(r){if(r!==1&&r!==0&&r!==!0&&r!==!1)throw new Error("Incorrect variable value");return Number(r)}fromString(r){if(r==="1"||r==="true")return 1;if(r==="0"||r==="false")return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}}class lu extends Vi{convertValue(r){if(typeof r!="string"||!Ei(r))throw new Error("Incorrect variable value");return r}fromString(r){return this.convertValue(r)}getType(){return"color"}}class au extends Vi{convertValue(r){if(typeof r!="string")throw new Error("Incorrect variable value");return r}fromString(r){return r}getType(){return"url"}}class cu extends Vi{convertValue(r){if(typeof r!="object"||!r)throw new Error("Incorrect variable value");return r}fromString(r){throw new Error("Dict variable does not support setter from string")}getType(){return"dict"}}class uu extends Vi{convertValue(r){if(!Array.isArray(r))throw new Error("Incorrect variable value");return r}fromString(r){throw new Error("Array variable does not support setter from string")}getType(){return"array"}}const wl={string:nu,number:ou,integer:iu,boolean:su,color:lu,url:au,dict:cu,array:uu};function gi(t,r,e){if(!(r in wl))throw new Error("Unsupported variable type");return new wl[r](t,e)}function wg(){}function kg(t){return t(this.value),wg}function fu(){throw new Error("Cannot change the value of this type of variable")}class Ag extends nu{}class Eg extends ou{}class jg extends iu{}class Cg extends su{}class Sg extends lu{}class Vg extends au{}class Ig extends cu{}class Dg extends uu{}class Tg extends Vi{convertValue(r){if(!(r instanceof Date))throw new Error("Incorrect variable value");return r}fromString(){throw new Error("Datetime variable does not support setter from string")}getType(){return"datetime"}}const us={string:Ag,number:Eg,integer:jg,boolean:Cg,color:Sg,url:Vg,dict:Ig,array:Dg,datetime:Tg};for(const t in us){const r=us[t];r.prototype.subscribe=kg,r.prototype.set=fu,r.prototype.setValue=fu}function kl(t,r,e){if(!(r in us))throw new Error("Unsupported variable type");return new us[r](t,e)}function Fg(t){return{type:t.getType(),value:t.getValue()}}function du(t,r,e){const n=t.slice();return n[81]=r[e],n}function hu(t,r,e){const n=t.slice();return n[81]=r[e],n}function Mg(t){let r,e;return r=new hi({props:{componentContext:t[0]}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function Pg(t){let r,e;return r=new kn({props:{cls:bt("slider",Nr,t[25]),style:t[26],customDescription:!0,customActions:"slider",hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[Ng,({focusHandler:n,blurHandler:i})=>({79:n,80:i}),({focusHandler:n,blurHandler:i})=>[0,0,(n?131072:0)|(i?262144:0)]]},$$scope:{ctx:t}}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&33554432&&(o.cls=bt("slider",Nr,n[25])),i[0]&67108864&&(o.style=n[26]),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&411037692|i[2]&17170432&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function _u(t){let r;return{c(){r=Be("div"),this.h()},l(e){r=Ge(e,"DIV",{class:!0}),De(r).forEach(E),this.h()},h(){m(r,"class",Nr.slider__tick+" "+Nr.slider__tick_active),B(r,"--divkit-slider-tick",t[81])},m(e,n){ie(e,r,n)},p(e,n){n[0]&524288&&B(r,"--divkit-slider-tick",e[81])},d(e){e&&E(r)}}}function gu(t){let r;return{c(){r=Be("div"),this.h()},l(e){r=Ge(e,"DIV",{class:!0}),De(r).forEach(E),this.h()},h(){m(r,"class",Nr.slider__tick+" "+Nr.slider__tick_inactive),B(r,"--divkit-slider-tick",t[81])},m(e,n){ie(e,r,n)},p(e,n){n[0]&1048576&&B(r,"--divkit-slider-tick",e[81])},d(e){e&&E(r)}}}function pu(t){let r,e,n;return{c(){r=Be("div"),e=Be("div"),n=Jn(t[13]),this.h()},l(i){r=Ge(i,"DIV",{class:!0});var o=De(r);e=Ge(o,"DIV",{class:!0});var s=De(e);n=ci(s,t[13]),s.forEach(E),o.forEach(E),this.h()},h(){var i,o,s;m(e,"class",Nr["slider__thumb-text-inner"]),B(e,"font-size",((i=t[9])==null?void 0:i.fontSize)||"1em"),B(e,"font-weight",((o=t[9])==null?void 0:o.fontWeight)||""),B(e,"color",((s=t[9])==null?void 0:s.textColor)||"#000"),m(r,"class",Nr["slider__thumb-text"])},m(i,o){ie(i,r,o),Ct(r,e),Ct(e,n)},p(i,o){var s,a,l;o[0]&8192&&Fi(n,i[13]),o[0]&512&&B(e,"font-size",((s=i[9])==null?void 0:s.fontSize)||"1em"),o[0]&512&&B(e,"font-weight",((a=i[9])==null?void 0:a.fontWeight)||""),o[0]&512&&B(e,"color",((l=i[9])==null?void 0:l.textColor)||"#000")},d(i){i&&E(r)}}}function mu(t){let r,e=t[10]&&bu(t);return{c(){r=Be("div"),e&&e.c(),this.h()},l(n){r=Ge(n,"DIV",{class:!0});var i=De(r);e&&e.l(i),i.forEach(E),this.h()},h(){m(r,"class",Nr.slider__thumb+" "+Nr.slider__thumb_secondary),B(r,"border-radius",we(t[6].borderRadius)),B(r,"background",t[6].background),B(r,"box-shadow",t[6].boxShadow||"")},m(n,i){ie(n,r,i),e&&e.m(r,null)},p(n,i){n[10]?e?e.p(n,i):(e=bu(n),e.c(),e.m(r,null)):e&&(e.d(1),e=null),i[0]&64&&B(r,"border-radius",we(n[6].borderRadius)),i[0]&64&&B(r,"background",n[6].background),i[0]&64&&B(r,"box-shadow",n[6].boxShadow||"")},d(n){n&&E(r),e&&e.d()}}}function bu(t){let r,e,n;return{c(){r=Be("div"),e=Be("div"),n=Jn(t[14]),this.h()},l(i){r=Ge(i,"DIV",{class:!0});var o=De(r);e=Ge(o,"DIV",{class:!0});var s=De(e);n=ci(s,t[14]),s.forEach(E),o.forEach(E),this.h()},h(){var i,o,s;m(e,"class",Nr["slider__thumb-text-inner"]),B(e,"font-size",((i=t[10])==null?void 0:i.fontSize)||"1em"),B(e,"font-weight",((o=t[10])==null?void 0:o.fontWeight)||""),B(e,"color",((s=t[10])==null?void 0:s.textColor)||"#000"),m(r,"class",Nr["slider__thumb-text"]+" "+Nr["slider__thumb-text_secondary"])},m(i,o){ie(i,r,o),Ct(r,e),Ct(e,n)},p(i,o){var s,a,l;o[0]&16384&&Fi(n,i[14]),o[0]&1024&&B(e,"font-size",((s=i[10])==null?void 0:s.fontSize)||"1em"),o[0]&1024&&B(e,"font-weight",((a=i[10])==null?void 0:a.fontWeight)||""),o[0]&1024&&B(e,"color",((l=i[10])==null?void 0:l.textColor)||"#000")},d(i){i&&E(r)}}}function yu(t){let r,e,n,i,o,s;return{c(){r=Be("input"),this.h()},l(a){r=Ge(a,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){m(r,"type","range"),m(r,"class",e=t[18]?Nr.slider__input:`${Nr.slider__input} ${Nr.slider__input_secondary}`),m(r,"min",t[3]),m(r,"max",t[4]),m(r,"step","1"),r.value=n=t[18]?t[13]:t[14],r.disabled=i=!t[11],m(r,"aria-label",t[22])},m(a,l){ie(a,r,l),o||(s=[Ue(r,"input",t[72]),Ue(r,"mousedown",function(){jr(t[15]?t[43]:null)&&(t[15]?t[43]:null).apply(this,arguments)}),Ue(r,"touchstart",function(){jr(t[15]?t[43]:null)&&(t[15]?t[43]:null).apply(this,arguments)}),Ue(r,"focus",function(){jr(t[79])&&t[79].apply(this,arguments)}),Ue(r,"blur",function(){jr(t[80])&&t[80].apply(this,arguments)})],o=!0)},p(a,l){t=a,l[0]&262144&&e!==(e=t[18]?Nr.slider__input:`${Nr.slider__input} ${Nr.slider__input_secondary}`)&&m(r,"class",e),l[0]&8&&m(r,"min",t[3]),l[0]&16&&m(r,"max",t[4]),l[0]&286720&&n!==(n=t[18]?t[13]:t[14])&&(r.value=n),l[0]&2048&&i!==(i=!t[11])&&(r.disabled=i),l[0]&4194304&&m(r,"aria-label",t[22])},d(a){a&&E(r),o=!1,Yr(s)}}}function Ng(t){let r,e,n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L,N=sr(t[19]),V=[];for(let W=0;W<N.length;W+=1)V[W]=_u(hu(t,N,W));let F=sr(t[20]),$=[];for(let W=0;W<F.length;W+=1)$[W]=gu(du(t,F,W));let D=t[9]&&pu(t),J=t[15]&&mu(t),Z=t[15]&&yu(t);return{c(){r=Be("div"),e=Be("div"),n=Be("div"),i=yr(),o=Be("div"),s=yr();for(let W=0;W<V.length;W+=1)V[W].c();a=yr();for(let W=0;W<$.length;W+=1)$[W].c();l=yr(),c=Be("div"),D&&D.c(),u=yr(),J&&J.c(),f=yr(),h=Be("input"),v=yr(),Z&&Z.c(),this.h()},l(W){r=Ge(W,"DIV",{class:!0});var G=De(r);e=Ge(G,"DIV",{class:!0});var z=De(e);n=Ge(z,"DIV",{class:!0}),De(n).forEach(E),i=vr(z),o=Ge(z,"DIV",{class:!0}),De(o).forEach(E),s=vr(z);for(let ye=0;ye<V.length;ye+=1)V[ye].l(z);a=vr(z);for(let ye=0;ye<$.length;ye+=1)$[ye].l(z);l=vr(z),c=Ge(z,"DIV",{class:!0});var he=De(c);D&&D.l(he),he.forEach(E),u=vr(z),J&&J.l(z),f=vr(z),h=Ge(z,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),v=vr(z),Z&&Z.l(z),z.forEach(E),G.forEach(E),this.h()},h(){m(n,"class",Nr.slider__track),B(n,"height",we(t[7].height)),B(n,"border-radius",we(t[7].borderRadius)),B(n,"background",t[7].background),B(n,"box-shadow",t[7].boxShadow||""),m(o,"class",Nr["slider__active-track"]),B(o,"left",t[16]==="ltr"?(t[27]*100).toFixed(2)+"%":void 0),B(o,"right",t[16]==="ltr"?void 0:(t[27]*100).toFixed(2)+"%"),B(o,"width",(t[28]*100).toFixed(2)+"%"),B(o,"height",we(t[8].height)),B(o,"border-radius",we(t[8].borderRadius)),B(o,"background",t[8].background),B(o,"box-shadow",t[8].boxShadow||""),m(c,"class",Nr.slider__thumb),B(c,"border-radius",we(t[5].borderRadius)),B(c,"background",t[5].background),B(c,"box-shadow",t[5].boxShadow||""),m(h,"type","range"),m(h,"class",p=t[18]?`${Nr.slider__input} ${Nr.slider__input_secondary}`:Nr.slider__input),m(h,"min",t[3]),m(h,"max",t[4]),m(h,"step","1"),h.value=b=t[18]?t[14]:t[13],h.disabled=_=!t[11],m(h,"aria-label",t[21]),m(e,"class",Nr["slider__tracks-inner"]),m(r,"class",Nr["slider__tracks-wrapper"])},m(W,G){ie(W,r,G),Ct(r,e),Ct(e,n),Ct(e,i),Ct(e,o),Ct(e,s);for(let z=0;z<V.length;z+=1)V[z]&&V[z].m(e,null);Ct(e,a);for(let z=0;z<$.length;z+=1)$[z]&&$[z].m(e,null);Ct(e,l),Ct(e,c),D&&D.m(c,null),Ct(e,u),J&&J.m(e,null),Ct(e,f),Ct(e,h),t[71](h),Ct(e,v),Z&&Z.m(e,null),t[73](e),w||(L=[Ue(h,"input",t[70]),Ue(h,"focus",function(){jr(t[79])&&t[79].apply(this,arguments)}),Ue(h,"blur",function(){jr(t[80])&&t[80].apply(this,arguments)})],w=!0)},p(W,G){if(t=W,G[0]&128&&B(n,"height",we(t[7].height)),G[0]&128&&B(n,"border-radius",we(t[7].borderRadius)),G[0]&128&&B(n,"background",t[7].background),G[0]&128&&B(n,"box-shadow",t[7].boxShadow||""),G[0]&134283264&&B(o,"left",t[16]==="ltr"?(t[27]*100).toFixed(2)+"%":void 0),G[0]&134283264&&B(o,"right",t[16]==="ltr"?void 0:(t[27]*100).toFixed(2)+"%"),G[0]&268435456&&B(o,"width",(t[28]*100).toFixed(2)+"%"),G[0]&256&&B(o,"height",we(t[8].height)),G[0]&256&&B(o,"border-radius",we(t[8].borderRadius)),G[0]&256&&B(o,"background",t[8].background),G[0]&256&&B(o,"box-shadow",t[8].boxShadow||""),G[0]&524288){N=sr(t[19]);let z;for(z=0;z<N.length;z+=1){const he=hu(t,N,z);V[z]?V[z].p(he,G):(V[z]=_u(he),V[z].c(),V[z].m(e,a))}for(;z<V.length;z+=1)V[z].d(1);V.length=N.length}if(G[0]&1048576){F=sr(t[20]);let z;for(z=0;z<F.length;z+=1){const he=du(t,F,z);$[z]?$[z].p(he,G):($[z]=gu(he),$[z].c(),$[z].m(e,l))}for(;z<$.length;z+=1)$[z].d(1);$.length=F.length}t[9]?D?D.p(t,G):(D=pu(t),D.c(),D.m(c,null)):D&&(D.d(1),D=null),G[0]&32&&B(c,"border-radius",we(t[5].borderRadius)),G[0]&32&&B(c,"background",t[5].background),G[0]&32&&B(c,"box-shadow",t[5].boxShadow||""),t[15]?J?J.p(t,G):(J=mu(t),J.c(),J.m(e,f)):J&&(J.d(1),J=null),G[0]&262144&&p!==(p=t[18]?`${Nr.slider__input} ${Nr.slider__input_secondary}`:Nr.slider__input)&&m(h,"class",p),G[0]&8&&m(h,"min",t[3]),G[0]&16&&m(h,"max",t[4]),G[0]&286720&&b!==(b=t[18]?t[14]:t[13])&&(h.value=b),G[0]&2048&&_!==(_=!t[11])&&(h.disabled=_),G[0]&2097152&&m(h,"aria-label",t[21]),t[15]?Z?Z.p(t,G):(Z=yu(t),Z.c(),Z.m(e,null)):Z&&(Z.d(1),Z=null)},d(W){W&&E(r),dn(V,W),dn($,W),D&&D.d(),J&&J.d(),t[71](null),Z&&Z.d(),t[73](null),w=!1,Yr(L)}}}function Og(t){let r,e,n,i,o,s;const a=[Pg,Mg],l=[];function c(u,f){return u[12]?-1:0}return~(r=c(t))&&(e=l[r]=a[r](t)),{c(){e&&e.c(),n=Pe()},l(u){e&&e.l(u),n=Pe()},m(u,f){~r&&l[r].m(u,f),ie(u,n,f),i=!0,o||(s=Ue(window,"resize",t[45]),o=!0)},p(u,f){let h=r;r=c(u),r===h?~r&&l[r].p(u,f):(e&&(ir(),te(l[h],1,1,()=>{l[h]=null}),or()),~r?(e=l[r],e?e.p(u,f):(e=l[r]=a[r](u),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(u){i||(U(e),i=!0)},o(u){te(e),i=!1},d(u){u&&E(n),~r&&l[r].d(u),o=!1,s()}}}const Ln={width:10,height:10,borderRadius:5,background:"#000"},fs=["rounded_rectangle","circle"],vu=["rounded_rectangle"];function ds(t,r,e,n,i){let o=[];if(i)for(let s=t;s<r;++s)o.push((s-e)/(n-e));else{for(let s=e;s<t;++s)o.push((s-e)/(n-e));for(let s=r;s<n+1;++s)o.push((s-e)/(n-e))}return o}function zg(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L,N,V,F,$,D,J,Z,W,G,z,he,ye,Te=C,_e=()=>(Te(),Te=P(N,Le=>e(55,ye=Le)),N),be,pt=C,Ye=()=>(pt(),pt=P(V,Le=>e(56,be=Le)),V),Re,Me=C,Ze=()=>(Me(),Me=P(L,Le=>e(57,Re=Le)),L),et,Q=C,Ee=()=>(Q(),Q=P(w,Le=>e(58,et=Le)),w),ge,nt=C,Y=()=>(nt(),nt=P(v,Le=>e(59,ge=Le)),v),Se,Je=C,ne=()=>(Je(),Je=P(_,Le=>e(60,Se=Le)),_),lt,je=C,Ie=()=>(je(),je=P(b,Le=>e(61,lt=Le)),b),kt,Tt=C,re=()=>(Tt(),Tt=P(p,Le=>e(62,kt=Le)),p),it,ut=C,gt=()=>(ut(),ut=P(h,Le=>e(63,it=Le)),h),qe,S=C,rt=()=>(S(),S=P(f,Le=>e(64,qe=Le)),f),le,Qe=C,At=()=>(Qe(),Qe=P(u,Le=>e(65,le=Le)),u),fe,me=C,ft=()=>(me(),me=P(a,Le=>e(66,fe=Le)),a),$e,rr=C,Ot=()=>(rr(),rr=P(s,Le=>e(67,$e=Le)),s),Qt,Oe=C,yt=()=>(Oe(),Oe=P(c,Le=>e(68,Qt=Le)),c),qt,Gt=C,Kt=()=>(Gt(),Gt=P(l,Le=>e(69,qt=Le)),l);t.$$.on_destroy.push(()=>Te()),t.$$.on_destroy.push(()=>pt()),t.$$.on_destroy.push(()=>Me()),t.$$.on_destroy.push(()=>Q()),t.$$.on_destroy.push(()=>nt()),t.$$.on_destroy.push(()=>Je()),t.$$.on_destroy.push(()=>je()),t.$$.on_destroy.push(()=>Tt()),t.$$.on_destroy.push(()=>ut()),t.$$.on_destroy.push(()=>S()),t.$$.on_destroy.push(()=>Qe()),t.$$.on_destroy.push(()=>me()),t.$$.on_destroy.push(()=>rr()),t.$$.on_destroy.push(()=>Oe()),t.$$.on_destroy.push(()=>Gt());let{componentContext:H}=r,{layoutParams:ae=void 0}=r;const dr=Jr(en),ke=Jr(is),It=dr.direction;an(t,It,Le=>e(16,he=Le));let He,vt,ze,at=!1,Et=0,Fe=100,dt=Ln,Xt=dt,cr=Ln,pr=Ln,Yt,ht=null,Dt,Nt=null,nr,lr=nr,Er="",Lr="",Zr=!0,Xe=!1;function hr(){e(5,dt=Ln),e(6,Xt=dt),e(7,cr=Ln),e(8,pr=Ln),e(47,ht=null),e(48,Nt=null),e(9,nr=void 0),e(10,lr=void 0),e(21,Er=""),e(11,Zr=!0),e(22,Lr="")}let Ae=Si($e||0,Et,Fe),K=Si(fe||0,Et,Fe);function Cr(Le){var de,d;if(!Zr)return;const mt="pageX"in Le?Le.pageX:(d=(de=Le.changedTouches)==null?void 0:de[0])==null?void 0:d.pageX;if(mt===void 0)return;const ct=ze.getBoundingClientRect();let St=(mt-ct.left)/ct.width;he==="rtl"&&(St=1-St);const Zt=Et+(Fe-Et)*St,T=Math.round(Si(Zt,Et,Fe)),ot=(Ae+K)/2;e(18,at=T<ot==Ae<K)}function Sr(Le,mt){const ct=Number(Le.target.value);at===(mt==="first")?(e(14,K=ct),a.setValue(ct)):(e(13,Ae=ct),s.setValue(ct))}let Rt=!1;function tn(){if(!ze)return;const Le=Fe-Et,mt=(ht==null?void 0:ht.width)||0,ct=(Nt==null?void 0:Nt.width)||0;Math.max(mt,ct)*Le>=(ze==null?void 0:ze.clientWidth)?Rt||(H.logError(x(new Error("Slider ticks overlap each other"),{level:"warn"})),Rt=!0):Rt=!1}const Ve=ls(tn,50);ei(()=>{tn()}),un(()=>{He&&(dr.unregisterFocusable(He),e(46,He=void 0))});const Bt=Le=>Sr(Le,"first");function _r(Le){Pr[Le?"unshift":"push"](()=>{vt=Le,e(2,vt)})}const xe=Le=>Sr(Le,"second");function Ft(Le){Pr[Le?"unshift":"push"](()=>{ze=Le,e(17,ze)})}return t.$$set=Le=>{"componentContext"in Le&&e(0,H=Le.componentContext),"layoutParams"in Le&&e(1,ae=Le.layoutParams)},t.$$.update=()=>{var Le,mt,ct,St;if(t.$$.dirty[0]&1&&e(54,n=H.origJson),t.$$.dirty[1]&8388608&&n&&hr(),t.$$.dirty[0]&1&&e(53,i=H.json.thumb_value_variable),t.$$.dirty[0]&1&&e(15,o=H.json.thumb_secondary_value_variable),t.$$.dirty[0]&1|t.$$.dirty[1]&4194304&&Ot(e(23,s=i&&H.getVariable(i,"integer")||gi("temp","integer",0))),t.$$.dirty[0]&32769&&ft(e(24,a=o&&H.getVariable(o,"integer")||gi("temp","integer",0))),t.$$.dirty[0]&1&&Kt(e(41,l=H.getDerivedFromVars(H.json.min_value))),t.$$.dirty[0]&1&&yt(e(40,c=H.getDerivedFromVars(H.json.max_value))),t.$$.dirty[0]&1&&At(e(39,u=H.getDerivedFromVars(H.json.thumb_style))),t.$$.dirty[0]&1&&rt(e(38,f=H.getDerivedFromVars(H.json.thumb_secondary_style))),t.$$.dirty[0]&1&>(e(37,h=H.getDerivedFromVars(H.json.track_inactive_style))),t.$$.dirty[0]&1&&re(e(36,p=H.getDerivedFromVars(H.json.track_active_style))),t.$$.dirty[0]&1&&Ie(e(35,b=H.getDerivedFromVars(H.json.tick_mark_active_style))),t.$$.dirty[0]&1&&ne(e(34,_=H.getDerivedFromVars(H.json.tick_mark_inactive_style))),t.$$.dirty[0]&1&&Y(e(33,v=H.getDerivedFromVars(H.json.thumb_text_style))),t.$$.dirty[0]&1&&Ee(e(32,w=H.getDerivedFromVars(H.json.thumb_secondary_text_style))),t.$$.dirty[0]&1&&Ze(e(31,L=H.getDerivedFromVars(H.json.accessibility))),t.$$.dirty[0]&1&&_e(e(30,N=H.getDerivedFromVars(H.json.secondary_value_accessibility))),t.$$.dirty[0]&1&&Ye(e(29,V=H.getDerivedFromVars(H.json.is_enabled))),t.$$.dirty[0]&24|t.$$.dirty[2]&192&&(e(3,Et=ho(qt,Et)),e(4,Fe=ho(Qt,Fe)),tn()),t.$$.dirty[0]&8216|t.$$.dirty[2]&32){const Zt=Si($e||0,Et,Fe);Zt!==Ae&&e(13,Ae=Zt)}if(t.$$.dirty[0]&16408|t.$$.dirty[2]&16){const Zt=Si(fe||0,Et,Fe);Zt!==K&&e(14,K=Zt)}if(t.$$.dirty[0]&32|t.$$.dirty[2]&8&&e(5,dt=ri(le,fs,dt)),t.$$.dirty[0]&32|t.$$.dirty[2]&4&&e(6,Xt=ri(qe,fs,dt)),t.$$.dirty[0]&128|t.$$.dirty[2]&2&&e(7,cr=ri(it,vu,cr)),t.$$.dirty[0]&256|t.$$.dirty[2]&1&&e(8,pr=ri(kt,vu,pr)),t.$$.dirty[1]&1073741824){let Zt=ri(lt,fs,Ln);Zt!==Ln&&e(47,ht=Zt)}if(t.$$.dirty[0]&57368|t.$$.dirty[1]&65536&&(ht?(e(19,Yt=o?ds(Math.min(Ae,K),Math.max(Ae,K)+1,Et,Fe,!0):ds(Et,Ae,Et,Fe,!0)),tn()):e(19,Yt=[])),t.$$.dirty[1]&536870912){let Zt=ri(Se,fs,Ln);Zt!==Ln&&e(48,Nt=Zt)}if(t.$$.dirty[0]&57368|t.$$.dirty[1]&131072&&(Nt?(e(20,Dt=o?ds(Math.min(Ae,K),Math.max(Ae,K)+1,Et,Fe,!1):ds(Ae+1,Fe+1,Et,Fe,!0)),tn()):e(20,Dt=[])),t.$$.dirty[0]&512|t.$$.dirty[1]&268435456&&e(9,nr=eu(ge,nr)),t.$$.dirty[0]&512|t.$$.dirty[1]&134217728&&e(10,lr=eu(et,nr)),t.$$.dirty[0]&1|t.$$.dirty[1]&67108864&&(Re!=null&&Re.description?e(21,Er=Re.description):H.logError(x(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),t.$$.dirty[0]&2048|t.$$.dirty[1]&33554432&&e(11,Zr=ti(be,Zr)),t.$$.dirty[0]&32769|t.$$.dirty[1]&16777216&&(ye!=null&&ye.description?e(22,Lr=ye.description):o&&H.logError(x(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),t.$$.dirty[0]&4513){let Zt=!1;ke.hasAction()?(H.logError(x(new Error('Cannot show "slider" inside component with action'))),Zt=!0):dt===Ln?(H.logError(x(new Error('Missing "thumb_style" in slider'))),Zt=!0):pr===Ln?(H.logError(x(new Error('Missing "track_active_style" in slider'))),Zt=!0):cr===Ln&&(H.logError(x(new Error('Missing "track_inactive_style" in slider'))),Zt=!0),Zt!==Xe&&e(12,Xe=Zt)}t.$$.dirty[0]&96&&e(52,F=we(Math.max(...[dt.width,Xt.width,0].filter(Vn)))),t.$$.dirty[0]&96&&e(51,$=we(Math.max(...[dt.height,Xt.height,0].filter(Vn)))),t.$$.dirty[0]&8216&&e(50,D=(Ae-Et)/(Fe-Et)),t.$$.dirty[0]&49176&&e(49,J=o?(K-Et)/(Fe-Et):void 0),t.$$.dirty[1]&786432&&e(28,Z=J!==void 0?Math.abs(J-D):D),t.$$.dirty[1]&786432&&e(27,W=J!==void 0?Math.min(J,D):0),t.$$.dirty[0]&1632|t.$$.dirty[1]&4128768&&e(26,G={"--divkit-slider-thumb-width":we(dt.width),"--divkit-slider-thumb-height":we(dt.height),"--divkit-slider-thumb-secondary-width":we(Xt.width),"--divkit-slider-thumb-secondary-height":we(Xt.height),"--divkit-slider-text-offset-x":(Le=nr==null?void 0:nr.offset)!=null&&Le.x?wn(nr.offset.x):void 0,"--divkit-slider-text-offset-y":(mt=nr==null?void 0:nr.offset)!=null&&mt.y?wn(nr.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(ct=lr==null?void 0:lr.offset)!=null&&ct.x?wn(lr.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(St=lr==null?void 0:lr.offset)!=null&&St.y?wn(lr.offset.y):void 0,"--divkit-slider-tick-active-width":ht?we(ht.width):void 0,"--divkit-slider-tick-active-height":ht?we(ht.height):void 0,"--divkit-slider-tick-active-border-radius":ht?we(ht.borderRadius):void 0,"--divkit-slider-tick-active-background":(ht==null?void 0:ht.background)||void 0,"--divkit-slider-tick-active-box-shadow":(ht==null?void 0:ht.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Nt?we(Nt.width):void 0,"--divkit-slider-tick-inactive-height":Nt?we(Nt.height):void 0,"--divkit-slider-tick-inactive-border-radius":Nt?we(Nt.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(Nt==null?void 0:Nt.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(Nt==null?void 0:Nt.boxShadow)||void 0,"--divkit-slider-max-thumb-width":F,"--divkit-slider-max-thumb-height":$,"--divkit-slider-track-part":D,"--divkit-slider-track-secondary-part":J}),t.$$.dirty[0]&65536&&e(25,z={direction:he}),t.$$.dirty[0]&5|t.$$.dirty[1]&32768&&H.json&&vt&&(He&&(dr.unregisterFocusable(He),e(46,He=void 0)),H.id&&!H.fakeElement&&(e(46,He=H.id),dr.registerFocusable(He,{focus(){vt&&vt.focus()}})))},[H,ae,vt,Et,Fe,dt,Xt,cr,pr,nr,lr,Zr,Xe,Ae,K,o,he,ze,at,Yt,Dt,Er,Lr,s,a,z,G,W,Z,V,N,L,w,v,_,b,p,h,f,u,c,l,It,Cr,Sr,Ve,He,ht,Nt,J,D,$,F,i,n,ye,be,Re,et,ge,Se,lt,kt,it,qe,le,fe,$e,Qt,qt,Bt,_r,xe,Ft]}class Lg extends Hr{constructor(r){super(),Br(this,r,zg,Og,wr,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const pi={input:"divkit-49edd","input_alignment-horizontal_center":"divkit-e82eb","input_alignment-horizontal_end":"divkit-cfa85",input__aligner:"divkit-cadcd",input__input:"divkit-0dfa7",input__placeholder:"divkit-88914","input_alignment-vertical_start":"divkit-492f7","input_alignment-vertical_end":"divkit-4c2c2","input_alignment-vertical_baseline":"divkit-3545c","input_highlight-color":"divkit-2db43",input__input_singleline:"divkit-e1c57","input__scroll-wrapper":"divkit-20542",input__input_multiline:"divkit-11674","input__input_has-custom-focus":"divkit-26a87"};function Al(t,r){if(t===r)return{start:t.length,added:0,removed:0};if(t.length>r.length){const o=Al(r,t);return{start:o.start,added:o.removed,removed:o.added}}let e=0,n=r.length-1;const i=r.length-t.length;for(;e<n&&e<t.length&&t[e]===r[e];)++e;for(;n-i>=e&&t[n-i]===r[n];)--n;return++n,{start:e,added:n-e,removed:n-e-i}}class wu{constructor(r){this.char=r}}class mi{constructor(r,e,n){this.char=r,this.filter=e,this.placeholder=n}}class ku{constructor(r){ur(this,"maskData");ur(this,"filters",new Map);ur(this,"destructedValue",[]);ur(this,"cursorPos",0);this.maskData=r,this.updateMaskData(r)}get cursorPosition(){return this.cursorPos}get rawValue(){return this.collectValueRange(0,this.destructedValue.length-1)}get value(){let r="";for(let e=0;e<this.destructedValue.length;++e){const n=this.destructedValue[e];if(n instanceof wu)r+=n.char;else if(n instanceof mi)if(n.char)r+=n.char;else if(this.maskData.alwaysVisible)r+=n.placeholder;else break}return r}firstEmptyHolderIndex(){const r=this.destructedValue.findIndex(e=>e instanceof mi&&!e.char);return r!==-1?r:this.destructedValue.length}updateMaskData(r,e=!0){const n=this.maskData!==r&&e?this.rawValue:null;this.filters=new Map,this.maskData=r,this.maskData.decoding.forEach(i=>{if(i.filter)try{const o=new RegExp(i.filter);this.filters.set(i.key,o)}catch(o){this.onException(x(o,{level:"error",additional:{key:i.key}}))}}),this.destructedValue=this.maskData.pattern.split("").map(i=>{const o=this.maskData.decoding.find(s=>s.key===i);return o?new mi(null,this.filters.get(o.key),o.placeholder):new wu(i)}),n!==null&&this.overrideRawValue(n)}overrideRawValue(r){this.clearRange(0,this.destructedValue.length),this.replaceChars(r,0),this.cursorPos=Math.min(this.cursorPos,this.value.length)}applyChangeFrom(r,e){const n=Al(this.value,r);e!==void 0&&(n.start=Math.max(0,e-n.added));const i=this.buildBodySubstring(n,r),o=this.buildTailSubstring(n);this.cleanup(n);const s=this.firstEmptyHolderIndex(),a=o?this.calculateMaxShift(o,s):void 0;this.replaceChars(i,s,a);const l=this.firstEmptyHolderIndex();this.replaceChars(o,l),this.calculateCursorPosition(n,l)}buildBodySubstring(r,e){return e.substring(r.start,r.start+r.added)}buildTailSubstring(r){return this.collectValueRange(r.start+r.removed,this.destructedValue.length-1)}calculateMaxShift(r,e){if(this.filters.size<=1){let o=0,s=e;for(;s<this.destructedValue.length;)this.destructedValue[s]instanceof mi&&++o,++s;return Math.max(0,o-r.length)}const n=this.calculateInsertableSubstring(r,e);let i=0;for(;i<this.destructedValue.length&&n===this.calculateInsertableSubstring(r,e+i);)++i;return Math.max(0,i-1)}cleanup(r){if(r.added===0&&r.removed===1){let e=r.start;for(;e>=0;){const n=this.destructedValue[e];if(n instanceof mi&&n.char!==null){n.char=null;break}else--e}}this.clearRange(r.start,this.destructedValue.length)}clearRange(r,e){let n=r;for(;n<e&&n<this.destructedValue.length;){const i=this.destructedValue[n];i instanceof mi&&(i.char=null),++n}}calculateCursorPosition(r,e){const n=this.firstEmptyHolderIndex();let i;r.start<n?i=Math.min(this.firstHolderAfter(e),this.value.length):i=n,this.cursorPos=i}calculateInsertableSubstring(r,e){let n="",i=e;const o=()=>{var s;for(;i<this.destructedValue.length&&!(this.destructedValue[i]instanceof mi);)++i;return(s=this.destructedValue[i])==null?void 0:s.filter};return r.split("").forEach(s=>{const a=o();a!=null&&a.test(s)&&(n+=s,++i)}),n}collectValueRange(r,e){let n="",i=r;for(;i<=e;){const o=this.destructedValue[i];o instanceof mi&&o.char!==null&&(n+=o.char),++i}return n}replaceChars(r,e,n){let i=this.calculateInsertableSubstring(r,e);n!==void 0&&(i=i.substring(0,n));let o=e,s=0;for(;o<this.destructedValue.length&&s<i.length;){const a=this.destructedValue[o],l=i[s];a instanceof mi&&(a.char=l,++s),++o}}firstHolderAfter(r){let e=r;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof mi);)++e;return e}}class Rg extends ku{constructor(r,e){super(r),this.logError=e}onException(r){this.logError(r)}}function Bg(t,r,e){if(typeof t.pattern=="string"&&Array.isArray(t.pattern_elements)&&t.pattern_elements.every(n=>n.key&&typeof n.key=="string")){const n={pattern:t.pattern,alwaysVisible:!!t.always_visible,decoding:t.pattern_elements.map(i=>({key:i.key,filter:i.regex&&typeof i.regex=="string"?i.regex:void 0,placeholder:i.placeholder&&typeof i.placeholder=="string"?i.placeholder:"_"}))};return e?(e.updateMaskData(n),e):new Rg(n,r)}return e||null}class Hg extends ku{constructor(e=void 0,n){super({pattern:"",decoding:[],alwaysVisible:!1});ur(this,"currencyFormatter",new Intl.NumberFormat);ur(this,"decimalSeparator",".");ur(this,"localeDigits",{});ur(this,"trimZeroRegExp",new RegExp(""));this.logError=n,this.initFormatter(e)}updateCurrencyParams(e){const n=this.parseFormat(this.rawValue)||0;this.initFormatter(e);const i=n.toString().replace(".",this.decimalSeparator);this.applyChangeFrom(i)}initFormatter(e){try{this.currencyFormatter=new Intl.NumberFormat(e,{minimumFractionDigits:2,maximumFractionDigits:2}),this.decimalSeparator=this.currencyFormatter.format(0)[1],this.localeDigits=new Array(10).fill("").reduce((n,i,o)=>(n[o]=this.currencyFormatter.format(o)[0],n),{}),this.trimZeroRegExp=new RegExp(`^${this.localeDigits[0]}+`)}catch(n){this.onException(x(n,{level:"error",additional:{locale:e}}))}}invalidateMaskDataForFormatted(e){const n=this.currencyFormatter.format(e),i=this.formatPattern(n),o=[{key:"#",filter:`[${[...Object.values(this.localeDigits)].join("")}]`,placeholder:this.localeDigits[0]},{key:this.decimalSeparator,filter:`[${this.decimalSeparator}]`,placeholder:this.decimalSeparator}];this.updateMaskData({pattern:i,decoding:o,alwaysVisible:this.maskData.alwaysVisible},!1)}overrideRawValue(e){const n=this.parseFormat(e)||0;this.invalidateMaskDataForFormatted(n),super.overrideRawValue(e)}applyChangeFrom(e,n){const i=Al(this.value,e),o=this.value.lastIndexOf(this.decimalSeparator),s=e.lastIndexOf(this.decimalSeparator),a=o!==s||o===-1&&s===-1,l=this.validFormat(e,i);this.cleanup(i);const c=this.parseFormat(l)||0;a&&this.invalidateMaskDataForFormatted(c),this.replaceChars(l,0),this.value.length>i.start&&!this.isDigit(this.value[i.start])?this.cursorPos=n!=null?n:this.cursorPosition:this.cursorPos=Math.abs(this.value.length-(e.length-(n!=null?n:this.cursorPosition)))}parseFormat(e){return parseFloat(e.replace(/./g,n=>{const i=this.localeDigits[n];return i||(n===this.decimalSeparator?".":"")}))}formatPattern(e){let n="";for(const i of e)n+=this.isDigit(i)?"#":i;return n}validFormat(e,n){if(!e)return"";let i=-1,o=0;for(;o<e.length;){if(e[o]===this.decimalSeparator&&!this.inDiff(n,o)){i=o;break}o++}let s=-1;n.added===1&&n.removed===0&&[",","."].includes(e[n.start])&&(s=n.start);const a=this.currencyFormatter.resolvedOptions().maximumFractionDigits||0;let l=a;if(i!==-1)for(o=i;o<e.length;)this.isDigit(e[o])&&!this.inDiff(n,o)&&l--,o++;else{let h=!1;for(let p=0;p<e.length;p++){const b=e[p];b===this.decimalSeparator?h=!0:!this.inDiff(n,p)&&h&&this.isDigit(b)&&l--}}const c=e.includes(this.decimalSeparator)||s!==-1,u=[];o=e.length-1;let f=!1;for(;o>=0;){const h=e[o],p=u.length<=a;this.isDigit(h)?this.inDiff(n,o)&&!f&&c?l>0&&(u.push(h),l--):u.push(h):p&&i===-1&&o===s?(u.push(this.decimalSeparator),f=!0):p&&h===this.decimalSeparator&&(i===o||i===-1)&&(u.push(this.decimalSeparator),f=!0,i=o),o--}return u.reverse().join("").replace(this.trimZeroRegExp,"")}inDiff(e,n){return e.start<=n&&n<e.start+e.added}isDigit(e){return!!this.localeDigits[e]}onException(e){this.logError(e)}}function Wg(t,r,e){return e?(e.updateCurrencyParams(t.locale),e):new Hg(t.locale,r)}const Au=3;function El(t){const r=t.textContent;let e=0;return typeof r=="string"&&(e+=r.length,t instanceof HTMLElement&&(t.tagName==="DIV"||t.tagName==="BR")&&++e),e}function Eu(t,r){var e;try{let n=0;const i=window.getSelection();if(!i)return 0;const o=i.getRangeAt(0);let s;if(o&&(n+=r==="end"?o.endOffset:o.startOffset,s=r==="end"?o.endContainer:o.startContainer),s instanceof HTMLElement){let a=0;for(let l=0,c=Math.min(n,s.childNodes.length);l<c;++l)a+=El(s.childNodes[l]);n=a}for(;s&&s!==t;){const a=s.parentNode;if(!a)return 0;const l=Array.from(a.childNodes).indexOf(s);for(let c=0;c<l;++c){const u=a.childNodes[c];n+=El(u)}s instanceof HTMLElement&&(s.tagName==="DIV"&&((e=a.childNodes[l-1])==null?void 0:e.nodeType)===Au||s.tagName==="BR")&&++n,s=a}return n}catch{return 0}}function jl(t,r,e,n){if(t.nodeType===Au){try{e==="start"?r.setStart(t,n):r.setEnd(t,n)}catch{}return}if(t instanceof HTMLElement&&t.tagName==="BR"){try{const i=window.getSelection();if(i){i.removeAllRanges();const o=document.createRange(),s=t.parentNode,a=Array.from(s.childNodes).indexOf(t)+1;o.setStart(s,a),o.setEnd(s,a),i.addRange(o)}}catch{}return}for(let i=0,o=t.childNodes.length;i<o;++i){const s=t.childNodes[i],a=El(s);if(n<=a){jl(s,r,e,n);return}n-=a}}function Ug(t){let r,e;return r=new hi({props:{componentContext:t[0]}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function Gg(t){let r,e;return r=new kn({props:{cls:bt("input",pi,t[20]),style:t[19],customDescription:!0,customActions:"input",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[Xg,({focusHandler:n,blurHandler:i,hasCustomFocus:o})=>({119:n,120:i,121:o}),({focusHandler:n,blurHandler:i,hasCustomFocus:o})=>[0,0,0,(n?67108864:0)|(i?134217728:0)|(o?268435456:0)]]},$$scope:{ctx:t}}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&1048576&&(o.cls=bt("input",pi,n[20])),i[0]&524288&&(o.style=n[19]),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&2555324|i[1]&32768|i[3]&1006632960&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function Yg(t){let r,e,n,i,o,s,a,l,c;return{c(){r=Be("input"),this.h()},l(u){r=Ge(u,"INPUT",{type:!0,inputmode:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,"aria-describedby":!0,style:!0,maxlength:!0,placeholder:!0,enterkeyhint:!0}),this.h()},h(){m(r,"type",t[10]),m(r,"inputmode",t[11]),m(r,"class",e=bt("input__input",pi,{"has-custom-focus":t[121],singleline:!0})),m(r,"autocomplete","off"),m(r,"autocapitalize",t[13]),m(r,"aria-label",t[12]),m(r,"aria-describedby",n=t[15]||void 0),m(r,"style",i=Vt(t[18])),r.disabled=o=!t[4],m(r,"maxlength",s=t[5]===1/0?void 0:t[5]),m(r,"placeholder",t[21]),r.value=t[3],m(r,"enterkeyhint",a=t[14]==="default"?void 0:t[14])},m(u,f){ie(u,r,f),t[103](r),l||(c=[Ue(r,"input",t[48]),Ue(r,"keydown",t[50]),Ue(r,"mousedown",function(){jr(t[46]?t[51]:void 0)&&(t[46]?t[51]:void 0).apply(this,arguments)}),Ue(r,"click",function(){jr(t[46]?t[52]:void 0)&&(t[46]?t[52]:void 0).apply(this,arguments)}),Ue(r,"focus",function(){jr(t[119])&&t[119].apply(this,arguments)}),Ue(r,"blur",function(){jr(t[120])&&t[120].apply(this,arguments)})],l=!0)},p(u,f){t=u,f[0]&1024&&m(r,"type",t[10]),f[0]&2048&&m(r,"inputmode",t[11]),f[3]&268435456&&e!==(e=bt("input__input",pi,{"has-custom-focus":t[121],singleline:!0}))&&m(r,"class",e),f[0]&8192&&m(r,"autocapitalize",t[13]),f[0]&4096&&m(r,"aria-label",t[12]),f[0]&32768&&n!==(n=t[15]||void 0)&&m(r,"aria-describedby",n),f[0]&262144&&i!==(i=Vt(t[18]))&&m(r,"style",i),f[0]&16&&o!==(o=!t[4])&&(r.disabled=o),f[0]&32&&s!==(s=t[5]===1/0?void 0:t[5])&&m(r,"maxlength",s),f[0]&2097152&&m(r,"placeholder",t[21]),f[0]&8&&r.value!==t[3]&&(r.value=t[3]),f[0]&16384&&a!==(a=t[14]==="default"?void 0:t[14])&&m(r,"enterkeyhint",a)},d(u){u&&E(r),t[103](null),l=!1,Yr(c)}}}function Jg(t){let r,e,n,i,o,s,a=!t[8]&&t[21]&&ju(t);function l(f,h){return f[4]?Kg:qg}let c=l(t),u=c(t);return{c(){r=Be("span"),a&&a.c(),e=yr(),n=Be("span"),i=Jn(""),s=yr(),u.c(),this.h()},l(f){r=Ge(f,"SPAN",{class:!0});var h=De(r);a&&a.l(h),e=vr(h),n=Ge(h,"SPAN",{class:!0,"aria-hidden":!0,style:!0});var p=De(n);i=ci(p,""),p.forEach(E),s=vr(h),u.l(h),h.forEach(E),this.h()},h(){m(n,"class",pi.input__aligner),m(n,"aria-hidden","true"),m(n,"style",o=Vt(t[17])),m(r,"class",pi["input__scroll-wrapper"])},m(f,h){ie(f,r,h),a&&a.m(r,null),Ct(r,e),Ct(r,n),Ct(n,i),Ct(r,s),u.m(r,null)},p(f,h){!f[8]&&f[21]?a?a.p(f,h):(a=ju(f),a.c(),a.m(r,e)):a&&(a.d(1),a=null),h[0]&131072&&o!==(o=Vt(f[17]))&&m(n,"style",o),c===(c=l(f))&&u?u.p(f,h):(u.d(1),u=c(f),u&&(u.c(),u.m(r,null)))},d(f){f&&E(r),a&&a.d(),u.d()}}}function ju(t){let r,e,n;return{c(){r=Be("div"),e=Jn(t[21]),this.h()},l(i){r=Ge(i,"DIV",{class:!0,"aria-hidden":!0,style:!0});var o=De(r);e=ci(o,t[21]),o.forEach(E),this.h()},h(){m(r,"class",pi.input__placeholder),m(r,"aria-hidden","true"),m(r,"style",n=Vt(t[18]))},m(i,o){ie(i,r,o),Ct(r,e)},p(i,o){o[0]&2097152&&Fi(e,i[21]),o[0]&262144&&n!==(n=Vt(i[18]))&&m(r,"style",n)},d(i){i&&E(r)}}}function qg(t){let r,e,n,i,o;return{c(){r=Be("span"),this.h()},l(s){r=Ge(s,"SPAN",{class:!0,autocapitalize:!0,contenteditable:!0,role:!0,"aria-label":!0,"aria-disabled":!0,"aria-multiline":!0,"aria-describedby":!0,style:!0});var a=De(r);a.forEach(E),this.h()},h(){m(r,"class",bt("input__input",pi,{multiline:!0})),m(r,"autocapitalize",t[13]),m(r,"contenteditable","false"),m(r,"role","textbox"),m(r,"aria-label",t[12]),m(r,"aria-disabled","true"),m(r,"aria-multiline","true"),m(r,"aria-describedby",e=t[15]||void 0),m(r,"style",n=Vt(t[18])),t[8]===void 0&&zn(()=>t[102].call(r))},m(s,a){ie(s,r,a),t[101](r),t[8]!==void 0&&(r.innerText=t[8]),i||(o=Ue(r,"input",t[102]),i=!0)},p(s,a){a[0]&8192&&m(r,"autocapitalize",s[13]),a[0]&4096&&m(r,"aria-label",s[12]),a[0]&32768&&e!==(e=s[15]||void 0)&&m(r,"aria-describedby",e),a[0]&262144&&n!==(n=Vt(s[18]))&&m(r,"style",n),a[0]&256&&s[8]!==r.innerText&&(r.innerText=s[8])},d(s){s&&E(r),t[101](null),i=!1,o()}}}function Kg(t){let r,e,n,i,o,s,a;return{c(){r=Be("span"),this.h()},l(l){r=Ge(l,"SPAN",{class:!0,autocapitalize:!0,contenteditable:!0,role:!0,tabindex:!0,"aria-label":!0,"aria-multiline":!0,enterkeyhint:!0,"aria-describedby":!0,style:!0});var c=De(r);c.forEach(E),this.h()},h(){m(r,"class",e=bt("input__input",pi,{"has-custom-focus":t[121],multiline:!0})),m(r,"autocapitalize",t[13]),m(r,"contenteditable","true"),m(r,"role","textbox"),m(r,"tabindex","0"),m(r,"aria-label",t[12]),m(r,"aria-multiline","true"),m(r,"enterkeyhint",n=t[14]==="default"?void 0:t[14]),m(r,"aria-describedby",i=t[15]||void 0),m(r,"style",o=Vt(t[18])),t[8]===void 0&&zn(()=>t[100].call(r))},m(l,c){ie(l,r,c),t[99](r),t[8]!==void 0&&(r.innerText=t[8]),s||(a=[Ue(r,"input",t[100]),Ue(r,"input",t[48]),Ue(r,"keydown",t[49]),Ue(r,"keydown",t[50]),Ue(r,"paste",$g),Ue(r,"mousedown",function(){jr(t[46]?t[51]:void 0)&&(t[46]?t[51]:void 0).apply(this,arguments)}),Ue(r,"click",function(){jr(t[46]?t[52]:void 0)&&(t[46]?t[52]:void 0).apply(this,arguments)}),Ue(r,"focus",function(){jr(t[119])&&t[119].apply(this,arguments)}),Ue(r,"blur",function(){jr(t[120])&&t[120].apply(this,arguments)})],s=!0)},p(l,c){t=l,c[3]&268435456&&e!==(e=bt("input__input",pi,{"has-custom-focus":t[121],multiline:!0}))&&m(r,"class",e),c[0]&8192&&m(r,"autocapitalize",t[13]),c[0]&4096&&m(r,"aria-label",t[12]),c[0]&16384&&n!==(n=t[14]==="default"?void 0:t[14])&&m(r,"enterkeyhint",n),c[0]&32768&&i!==(i=t[15]||void 0)&&m(r,"aria-describedby",i),c[0]&262144&&o!==(o=Vt(t[18]))&&m(r,"style",o),c[0]&256&&t[8]!==r.innerText&&(r.innerText=t[8])},d(l){l&&E(r),t[99](null),s=!1,Yr(a)}}}function Xg(t){let r;function e(o,s){return o[7]?Jg:Yg}let n=e(t),i=n(t);return{c(){i.c(),r=Pe()},l(o){i.l(o),r=Pe()},m(o,s){i.m(o,s),ie(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&&E(r),i.d(o)}}}function Zg(t){let r,e,n,i;const o=[Gg,Ug],s=[];function a(l,c){return l[9]?-1:0}return~(r=a(t))&&(e=s[r]=o[r](t)),{c(){e&&e.c(),n=Pe()},l(l){e&&e.l(l),n=Pe()},m(l,c){~r&&s[r].m(l,c),ie(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?~r&&s[r].p(l,c):(e&&(ir(),te(s[u],1,1,()=>{s[u]=null}),or()),~r?(e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(l){i||(U(e),i=!0)},o(l){te(e),i=!1},d(l){l&&E(n),~r&&s[r].d(l)}}}const Qg=typeof document<"u"&&"inputMode"in document.createElement("input"),Cu={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url",password:"password"},xg=new Set(["Backspace","Delete","Tab","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","Control","Shift","Alt","Command","Meta","Escape"]);function $g(t){if(t.preventDefault(),t.clipboardData){let r=t.clipboardData.getData("text/plain");r=r.trim(),document.execCommand("inserttext",!1,r)}}function ep(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L,N,V,F,$,D,J,Z,W,G,z,he,ye,Te,_e,be,pt,Ye,Re,Me,Ze,et=C,Q=()=>(et(),et=P(s,ue=>e(74,Ze=ue)),s),Ee,ge=C,nt=()=>(ge(),ge=P(a,ue=>e(75,Ee=ue)),a),Y,Se=C,Je=()=>(Se(),Se=P(Te,ue=>e(108,Y=ue)),Te),ne,lt=C,je=()=>(lt(),lt=P(he,ue=>e(76,ne=ue)),he),Ie,kt=C,Tt=()=>(kt(),kt=P(J,ue=>e(77,Ie=ue)),J),re,it=C,ut=()=>(it(),it=P(z,ue=>e(78,re=ue)),z),gt,qe,S=C,rt=()=>(S(),S=P(D,ue=>e(80,qe=ue)),D),le,Qe=C,At=()=>(Qe(),Qe=P($,ue=>e(81,le=ue)),$),fe,me=C,ft=()=>(me(),me=P(F,ue=>e(82,fe=ue)),F),$e,rr=C,Ot=()=>(rr(),rr=P(V,ue=>e(83,$e=ue)),V),Qt,Oe=C,yt=()=>(Oe(),Oe=P(G,ue=>e(84,Qt=ue)),G),qt,Gt=C,Kt=()=>(Gt(),Gt=P(W,ue=>e(85,qt=ue)),W),H,ae=C,dr=()=>(ae(),ae=P(N,ue=>e(86,H=ue)),N),ke,It=C,He=()=>(It(),It=P(L,ue=>e(87,ke=ue)),L),vt,ze=C,at=()=>(ze(),ze=P(w,ue=>e(88,vt=ue)),w),Et,Fe=C,dt=()=>(Fe(),Fe=P(v,ue=>e(89,Et=ue)),v),Xt,cr=C,pr=()=>(cr(),cr=P(_,ue=>e(90,Xt=ue)),_),Yt,ht=C,Dt=()=>(ht(),ht=P(b,ue=>e(91,Yt=ue)),b),Nt,nr=C,lr=()=>(nr(),nr=P(p,ue=>e(92,Nt=ue)),p),Er,Lr=C,Zr=()=>(Lr(),Lr=P(h,ue=>e(93,Er=ue)),h),Xe,hr=C,Ae=()=>(hr(),hr=P(f,ue=>e(94,Xe=ue)),f),K,Cr=C,Sr=()=>(Cr(),Cr=P(u,ue=>e(95,K=ue)),u),Rt,tn=C,Ve=()=>(tn(),tn=P(c,ue=>e(96,Rt=ue)),c),Bt,_r=C,xe=()=>(_r(),_r=P(l,ue=>e(97,Bt=ue)),l),Ft,Le=C,mt=()=>(Le(),Le=P(ye,ue=>e(98,Ft=ue)),ye),ct,St=C,Zt=()=>(St(),St=P(Z,ue=>e(46,ct=ue)),Z);t.$$.on_destroy.push(()=>et()),t.$$.on_destroy.push(()=>ge()),t.$$.on_destroy.push(()=>Se()),t.$$.on_destroy.push(()=>lt()),t.$$.on_destroy.push(()=>kt()),t.$$.on_destroy.push(()=>it()),t.$$.on_destroy.push(()=>S()),t.$$.on_destroy.push(()=>Qe()),t.$$.on_destroy.push(()=>me()),t.$$.on_destroy.push(()=>rr()),t.$$.on_destroy.push(()=>Oe()),t.$$.on_destroy.push(()=>Gt()),t.$$.on_destroy.push(()=>ae()),t.$$.on_destroy.push(()=>It()),t.$$.on_destroy.push(()=>ze()),t.$$.on_destroy.push(()=>Fe()),t.$$.on_destroy.push(()=>cr()),t.$$.on_destroy.push(()=>ht()),t.$$.on_destroy.push(()=>nr()),t.$$.on_destroy.push(()=>Lr()),t.$$.on_destroy.push(()=>hr()),t.$$.on_destroy.push(()=>Cr()),t.$$.on_destroy.push(()=>tn()),t.$$.on_destroy.push(()=>_r()),t.$$.on_destroy.push(()=>Le()),t.$$.on_destroy.push(()=>St());let{componentContext:T}=r,{layoutParams:ot=void 0}=r;const de=Jr(en),d=de.direction;an(t,d,ue=>e(79,gt=ue));let Ne,jt,Or=!1,fr=null,R="",Dr="",nn=!1,y="",A=12,X,oe="",se,Ce="",wt="#000",O="",Ke="start",Ht="center",Mt="multi_line_text",Wt="text",ar,fn="",Rr=null,mn="",on="",Zn="",Cn=!0,sn=1/0,bn="off",Qn="default",oi="",Tn=!1,xn=!0,si=0,_n=0;function Bi(){e(55,y=""),e(56,A=12),e(57,X=void 0),e(58,oe=""),e(59,se=void 0),e(61,wt="#000"),e(62,O=""),e(63,Ke="left"),e(64,Ht="center"),e(65,Mt="multi_line_text"),e(10,Wt="text"),e(11,ar=void 0),e(4,Cn=!0),e(5,sn=1/0),e(13,bn="off"),e(14,Qn="default"),e(15,oi=""),si=0,_n=0}function Hi(ue){(ue==null?void 0:ue.type)==="fixed_length"?e(54,fr=Bg(ue,T.logError,fr)):(ue==null?void 0:ue.type)==="currency"&&e(54,fr=Wg(ue,T.logError,fr)),fr&&q()}function li(ue){if(!Array.isArray(Y)||!ue)return!0;for(const er of Y)if(er){if(er.type==="regex")try{if(!new RegExp("^"+(er.pattern||"")+"$").test(ue))return!1}catch(br){return T.logError(x(new Error("Failed to create a regex"),{additional:{originalError:String(br)}})),!0}else if(er.type==="expression"&&!er.condition)return!1}return!0}function no(ue){const er=ue.target;let br=(be?er.innerText:er.value)||"";br===`
|
|
9
|
+
`&&(br=""),br.length>sn&&(br=e(8,Dr=R),er instanceof HTMLInputElement&&(er.value=br)),R!==br&&(li(br)?(e(3,R=e(8,Dr=br)),s.setValue(br),fr&&ee(),tt()):(e(3,R=e(8,Dr=br)),er instanceof HTMLInputElement&&(er.value=br),vn().then(()=>{j(si,_n)})))}function yi(ue){R.length>=sn&&!xg.has(ue.key)&&!(ue.ctrlKey||ue.altKey||ue.metaKey)&&ue.preventDefault()}function Hn(ue){if(si=k()||0,_n=M()||0,ue.ctrlKey||ue.metaKey||ue.altKey||ue.shiftKey)return;const er=T.json.enter_key_actions;if(ue.key==="Enter"&&Array.isArray(er)&&er.length){const Wn=T.getJsonWithVars(er).filter(Un=>Un.log_id).filter(In);ue.preventDefault(),T.execAnyActions(Wn)}}function _t(){Or=!1,setTimeout(()=>{Or=!0},250)}function g(){if(!Or)if(jt instanceof HTMLInputElement)jt.select();else{const ue=window.getSelection(),er=document.createRange();er.selectNodeContents(jt),ue&&(ue.removeAllRanges(),ue.addRange(er))}}function k(){return jt instanceof HTMLInputElement?jt.selectionStart===null?void 0:jt.selectionStart:Eu(jt,"start")}function M(){return jt instanceof HTMLInputElement?jt.selectionEnd===null?void 0:jt.selectionEnd:Eu(jt,"end")}function j(ue,er){if(jt instanceof HTMLInputElement)e(2,jt.selectionStart=ue,jt),e(2,jt.selectionEnd=er,jt);else{const br=window.getSelection();if(br){br.removeAllRanges();const Wn=document.createRange();jl(jt,Wn,"start",ue),jl(jt,Wn,"end",er),br.addRange(Wn)}}}async function ee(){if(!jt||!fr)return;const ue=k()||0,er=M()||0;fr.applyChangeFrom(R,er===ue?er:0),a.set(fr.rawValue),Uo(s,Ze=e(3,R=e(8,Dr=fr.value)),Ze);const br=fr.cursorPosition;await vn(),document.activeElement===jt&&j(br,br)}async function q(){if(!jt||!fr)return;fr.overrideRawValue(Ee),a.set(fr.rawValue),Uo(s,Ze=e(3,R=e(8,Dr=fr.value)),Ze);const ue=fr.cursorPosition;await vn(),document.activeElement===jt&&j(ue,ue)}function tt(){const ue=xn;xn=!1;const er=T.json.validators;if(!Array.isArray(er)||!er.length)return;const Wn=T.getJsonWithVars(er).filter(Qr=>(Qr.type==="regex"||Qr.type==="expression")&&Qr.label_id&&Qr.variable),Un=[];Wn.forEach(Qr=>{const wi=T.getVariable(Qr.variable);if(!wi)return;if(wi.getType()!=="boolean"){ue&&T.logError(x(new Error("Incorrect variable type for the validator"),{additional:{variable:Qr.variable}}));return}let ki=!1;if(R===""&&(Qr.allow_empty===!0||Qr.allow_empty===1))ki=!0;else if(Qr.type==="regex"){if(!Qr.pattern||typeof Qr.pattern!="string")return;try{ki=new RegExp("^"+Qr.pattern+"$").test(R)}catch{ue&&T.logError(x(new Error("Failed to create a regular expression using the validator pattern"),{additional:{pattern:Qr.pattern}}));return}}else if(Qr.type==="expression")ki=Qr.condition===!0||Qr.condition===1;else return;if(wi.setValue(ki),!ki){const Ii=de.getComponentId(Qr.label_id);Ii&&Un.push(Ii)}}),e(15,oi=Un.join(" "))}ei(()=>{e(70,Tn=!0),jt&&fr&&Ee&&(fr.overrideRawValue(Ee),Uo(s,Ze=e(3,R=e(8,Dr=fr.value)),Ze))}),un(()=>{e(70,Tn=!1),Ne&&(de.unregisterFocusable(Ne),e(53,Ne=void 0))});function st(ue){Pr[ue?"unshift":"push"](()=>{jt=ue,e(2,jt)})}function Tr(){Dr=this.innerText,e(8,Dr),e(54,fr),e(3,R),e(74,Ze),e(5,sn),e(6,s),e(84,Qt),e(71,i),e(0,T)}function mr(ue){Pr[ue?"unshift":"push"](()=>{jt=ue,e(2,jt)})}function Vr(){Dr=this.innerText,e(8,Dr),e(54,fr),e(3,R),e(74,Ze),e(5,sn),e(6,s),e(84,Qt),e(71,i),e(0,T)}function vi(ue){Pr[ue?"unshift":"push"](()=>{jt=ue,e(2,jt)})}return t.$$set=ue=>{"componentContext"in ue&&e(0,T=ue.componentContext),"layoutParams"in ue&&e(1,ot=ue.layoutParams)},t.$$.update=()=>{var ue;if(t.$$.dirty[0]&1&&e(73,n=T.origJson),t.$$.dirty[2]&2048&&n&&Bi(),t.$$.dirty[0]&1&&e(71,i=T.json.text_variable),t.$$.dirty[0]&1&&e(72,o=(ue=T.json.mask)==null?void 0:ue.raw_text_variable),t.$$.dirty[0]&1|t.$$.dirty[2]&512&&Q(e(6,s=i&&T.getVariable(i,"string")||gi("temp","string",""))),t.$$.dirty[0]&1|t.$$.dirty[2]&1024&&nt(e(16,a=o&&T.getVariable(o,"string")||gi("temp","string",""))),t.$$.dirty[0]&1&&xe(e(45,l=T.getDerivedFromVars(T.json.hint_text))),t.$$.dirty[0]&1&&Ve(e(44,c=T.getDerivedFromVars(T.json.hint_color))),t.$$.dirty[0]&1&&Sr(e(43,u=T.getDerivedFromVars(T.json.font_size))),t.$$.dirty[0]&1&&Ae(e(42,f=T.getDerivedFromVars(T.json.font_weight))),t.$$.dirty[0]&1&&Zr(e(41,h=T.getDerivedFromVars(T.json.font_weight_value))),t.$$.dirty[0]&1&&lr(e(40,p=T.getDerivedFromVars(T.json.font_family))),t.$$.dirty[0]&1&&Dt(e(39,b=T.getDerivedFromVars(T.json.line_height))),t.$$.dirty[0]&1&&pr(e(38,_=T.getDerivedFromVars(T.json.letter_spacing))),t.$$.dirty[0]&1&&dt(e(37,v=T.getDerivedFromVars(T.json.text_color))),t.$$.dirty[0]&1&&at(e(36,w=T.getDerivedFromVars(T.json.highlight_color))),t.$$.dirty[0]&1&&He(e(35,L=T.getDerivedFromVars(T.json.text_alignment_horizontal))),t.$$.dirty[0]&1&&dr(e(34,N=T.getDerivedFromVars(T.json.text_alignment_vertical))),t.$$.dirty[0]&1&&Ot(e(33,V=T.getDerivedFromVars(T.json.keyboard_type))),t.$$.dirty[0]&1&&ft(e(32,F=T.getDerivedFromVars(T.json.mask))),t.$$.dirty[0]&1&&At(e(31,$=T.getDerivedFromVars(T.json.max_visible_lines))),t.$$.dirty[0]&1&&rt(e(30,D=T.getDerivedFromVars(T.json.paddings))),t.$$.dirty[0]&1&&Tt(e(29,J=T.getDerivedFromVars(T.json.accessibility))),t.$$.dirty[0]&1&&Zt(e(28,Z=T.getDerivedFromVars(T.json.select_all_on_focus))),t.$$.dirty[0]&1&&Kt(e(27,W=T.getDerivedFromVars(T.json.is_enabled))),t.$$.dirty[0]&1&&yt(e(26,G=T.getDerivedFromVars(T.json.max_length))),t.$$.dirty[0]&1&&ut(e(25,z=T.getDerivedFromVars(T.json.autocapitalization))),t.$$.dirty[0]&1&&je(e(24,he=T.getDerivedFromVars(T.json.enter_key_type))),t.$$.dirty[0]&1&&mt(e(23,ye=T.getDerivedFromVars(T.json.validators))),t.$$.dirty[0]&1&&Je(e(22,Te=T.getDerivedFromVars(T.json.filters))),t.$$.dirty[0]&1|t.$$.dirty[2]&512&&(i?e(9,nn=!1):(e(9,nn=!0),T.logError(x(new Error('Missing "text_variable" in "input"'))))),t.$$.dirty[2]&1048576&&Hi(fe),t.$$.dirty[0]&32|t.$$.dirty[2]&4194304&&e(5,sn=Kn(Qt,sn)),t.$$.dirty[0]&104|t.$$.dirty[1]&8388608|t.$$.dirty[2]&4096&&!fr&&R!==Ze){let er=Ze;er.length>sn&&(er=er.slice(0,sn),s.setValue(er)),e(3,R=e(8,Dr=er)),tt()}if(t.$$.dirty[1]&8388608|t.$$.dirty[2]&8192&&fr&&fr.rawValue!==Ee&&(q(),tt()),t.$$.dirty[2]&256|t.$$.dirty[3]&32&&Ft&&Tn&&tt(),t.$$.dirty[3]&16&&e(21,_e=Bt),t.$$.dirty[1]&16777216|t.$$.dirty[3]&8&&e(55,y=Ir(Rt,1,y)),t.$$.dirty[1]&33554432|t.$$.dirty[3]&4&&e(56,A=Kn(K,A)),t.$$.dirty[1]&67108864|t.$$.dirty[2]&1073741824|t.$$.dirty[3]&3&&(e(57,X=_o(Xe,Er,X)),Nt&&typeof Nt=="string"?e(58,oe=de.typefaceProvider(Nt,{fontWeight:X||400})):e(58,oe="")),t.$$.dirty[1]&33554432|t.$$.dirty[2]&536870912){const er=Yt;Pn(er)&&e(59,se=er/A)}t.$$.dirty[2]&268435456&&ts(Xt)&&e(60,Ce=we(Xt)),t.$$.dirty[1]&1073741824|t.$$.dirty[2]&134217728&&e(61,wt=Ir(Et,1,wt)),t.$$.dirty[2]&67108865&&e(62,O=Ir(vt,1,O)),t.$$.dirty[2]&33685506&&e(63,Ke=ul(ke,gt,Ke)),t.$$.dirty[2]&16777220&&e(64,Ht=fl(H,Ht)),t.$$.dirty[0]&16|t.$$.dirty[2]&8388608&&e(4,Cn=ti(qt,Cn)),t.$$.dirty[2]&3145728&&($e&&$e in Cu&&(e(10,Wt=Cu[$e]),e(65,Mt=$e)),(fe==null?void 0:fe.type)==="currency"&&(e(10,Wt=Qg?"text":"tel"),e(11,ar="decimal"))),t.$$.dirty[2]&8&&e(7,be=Mt==="multi_line_text"),t.$$.dirty[1]&301989888|t.$$.dirty[2]&917536&&(Pn(le)?e(66,fn=`calc(${le*(se||1.25)*(A/10)+"em"} + ${wn(qr(qe==null?void 0:qe.top,0)+qr(qe==null?void 0:qe.bottom,0))})`):e(66,fn=""),e(67,Rr=So(qe||void 0,Rr)),e(68,mn=Rr?di({top:(Number(Rr.top)||0)/A*10,right:(Number(gt==="ltr"?Rr.end:Rr.start)||Number(Rr.right)||0)/A*10,bottom:(Number(Rr.bottom)||0)/A*10,left:(Number(gt==="ltr"?Rr.start:Rr.end)||Number(Rr.left)||0)/A*10},gt):""),e(69,on=Rr?di({top:(Number(Rr.top)||0)/A*10,bottom:(Number(Rr.bottom)||0)/A*10},gt):"")),t.$$.dirty[2]&65536&&(re==="all_characters"?e(13,bn="characters"):re==="sentences"?e(13,bn="sentences"):re==="words"?e(13,bn="words"):(re==="none"||re==="auto")&&e(13,bn="off")),t.$$.dirty[0]&1|t.$$.dirty[2]&32768&&(Ie!=null&&Ie.description?e(12,Zn=Ie.description):T.logError(x(new Error('Missing accessibility "description" for input'),{level:"warn"}))),t.$$.dirty[2]&16384&&(ne==="default"||ne==="done"||ne==="go"||ne==="search"||ne==="send")&&e(14,Qn=ne),t.$$.dirty[0]&128|t.$$.dirty[2]&7&&e(20,pt={"highlight-color":!!O,multiline:be,"alignment-horizontal":Ke,"alignment-vertical":Ht}),t.$$.dirty[1]&2097152e3|t.$$.dirty[2]&17&&e(19,Ye={"--divkit-input-hint-color":y,"--divkit-input-highlight-color":O,"--divkit-input-line-height":se,"font-weight":X,"font-family":oe,"letter-spacing":Ce,color:wt,"max-height":fn}),t.$$.dirty[1]&33554432|t.$$.dirty[2]&64&&e(18,Re={"font-size":we(A),padding:mn}),t.$$.dirty[1]&33554432|t.$$.dirty[2]&128&&e(17,Me={"font-size":we(A),padding:on}),t.$$.dirty[0]&13|t.$$.dirty[1]&4194304&&jt&&T.json&&(Ne&&(de.unregisterFocusable(Ne),e(53,Ne=void 0)),T.id&&!T.fakeElement&&(e(53,Ne=T.id),de.registerFocusable(Ne,{focus(){jt&&(jt.focus(),j(R.length,R.length))}})))},[T,ot,jt,R,Cn,sn,s,be,Dr,nn,Wt,ar,Zn,bn,Qn,oi,a,Me,Re,Ye,pt,_e,Te,ye,he,z,G,W,Z,J,D,$,F,V,N,L,w,v,_,b,p,h,f,u,c,l,ct,d,no,yi,Hn,_t,g,Ne,fr,y,A,X,oe,se,Ce,wt,O,Ke,Ht,Mt,fn,Rr,mn,on,Tn,i,o,n,Ze,Ee,ne,Ie,re,gt,qe,le,fe,$e,Qt,qt,H,ke,vt,Et,Xt,Yt,Nt,Er,Xe,K,Rt,Bt,Ft,st,Tr,mr,Vr,vi]}class tp extends Hr{constructor(r){super(),Br(this,r,ep,Zg,wr,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}}const go={select:"divkit-ae558","select__select-text":"divkit-c1610",select_hint:"divkit-f3d02",select__select:"divkit-e7d17","select__select_has-custom-focused":"divkit-2e9c1","has-custom-focused":"divkit-d2243",select__option:"divkit-72083"};function Su(t,r,e){const n=t.slice();return n[58]=r[e],n}function rp(t){let r,e;return r=new hi({props:{componentContext:t[0]}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function np(t){let r,e;return r=new kn({props:{cls:bt("select",go,t[11]),style:t[10],customDescription:!0,customActions:"select",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[ip,({hasCustomFocus:n,focusHandler:i,blurHandler:o})=>({55:n,56:i,57:o}),({hasCustomFocus:n,focusHandler:i,blurHandler:o})=>[0,(n?16777216:0)|(i?33554432:0)|(o?67108864:0)]]},$$scope:{ctx:t}}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&2048&&(o.cls=bt("select",go,n[11])),i[0]&1024&&(o.style=n[10]),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&16778172|i[1]&1191182336&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function Vu(t){let r,e=(t[58].text||t[58].value)+"",n,i;return{c(){r=Be("option"),n=Jn(e),this.h()},l(o){r=Ge(o,"OPTION",{class:!0});var s=De(r);n=ci(s,e),s.forEach(E),this.h()},h(){m(r,"class",go.select__option),r.__value=i=t[58].value,sa(r,r.__value)},m(o,s){ie(o,r,s),Ct(r,n)},p(o,s){s[0]&16&&e!==(e=(o[58].text||o[58].value)+"")&&Fi(n,e),s[0]&16&&i!==(i=o[58].value)&&(r.__value=i,sa(r,r.__value))},d(o){o&&E(r)}}}function ip(t){let r,e=(t[3]||t[24]||"")+"",n,i,o,s,a,l,c,u,f=sr(t[4]),h=[];for(let p=0;p<f.length;p+=1)h[p]=Vu(Su(t,f,p));return{c(){r=Be("span"),n=Jn(e),o=yr(),s=Be("select");for(let p=0;p<h.length;p+=1)h[p].c();this.h()},l(p){r=Ge(p,"SPAN",{class:!0,style:!0,"aria-hidden":!0});var b=De(r);n=ci(b,e),b.forEach(E),o=vr(p),s=Ge(p,"SELECT",{class:!0,"aria-label":!0,style:!0});var _=De(s);for(let v=0;v<h.length;v+=1)h[v].l(_);_.forEach(E),this.h()},h(){m(r,"class",go["select__select-text"]),m(r,"style",i=Vt(t[9])),m(r,"aria-hidden","true"),m(s,"class",a=bt("select__select",go,{"has-custom-focus":t[55]})),m(s,"aria-label",t[7]),m(s,"style",l=Vt(t[8])),t[5]===void 0&&zn(()=>t[52].call(s))},m(p,b){ie(p,r,b),Ct(r,n),ie(p,o,b),ie(p,s,b);for(let _=0;_<h.length;_+=1)h[_]&&h[_].m(s,null);t[51](s),la(s,t[5],!0),c||(u=[Ue(s,"change",t[52]),Ue(s,"focus",function(){jr(t[56])&&t[56].apply(this,arguments)}),Ue(s,"blur",function(){jr(t[57])&&t[57].apply(this,arguments)})],c=!0)},p(p,b){if(t=p,b[0]&16777224&&e!==(e=(t[3]||t[24]||"")+"")&&Fi(n,e),b[0]&512&&i!==(i=Vt(t[9]))&&m(r,"style",i),b[0]&16){f=sr(t[4]);let _;for(_=0;_<f.length;_+=1){const v=Su(t,f,_);h[_]?h[_].p(v,b):(h[_]=Vu(v),h[_].c(),h[_].m(s,null))}for(;_<h.length;_+=1)h[_].d(1);h.length=f.length}b[1]&16777216&&a!==(a=bt("select__select",go,{"has-custom-focus":t[55]}))&&m(s,"class",a),b[0]&128&&m(s,"aria-label",t[7]),b[0]&256&&l!==(l=Vt(t[8]))&&m(s,"style",l),b[0]&48&&la(s,t[5])},d(p){p&&(E(r),E(o),E(s)),dn(h,p),t[51](null),c=!1,Yr(u)}}}function op(t){let r,e,n,i;const o=[np,rp],s=[];function a(l,c){return l[6]?-1:0}return~(r=a(t))&&(e=s[r]=o[r](t)),{c(){e&&e.c(),n=Pe()},l(l){e&&e.l(l),n=Pe()},m(l,c){~r&&s[r].m(l,c),ie(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?~r&&s[r].p(l,c):(e&&(ir(),te(s[u],1,1,()=>{s[u]=null}),or()),~r?(e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(l){i||(U(e),i=!0)},o(l){te(e),i=!1},d(l){l&&E(n),~r&&s[r].d(l)}}}function sp(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L,N,V,F,$,D,J=C,Z=()=>(J(),J=P(L,ze=>e(40,D=ze)),L),W,G=C,z=()=>(G(),G=P(w,ze=>e(41,W=ze)),w),he,ye=C,Te=()=>(ye(),ye=P(v,ze=>e(42,he=ze)),v),_e,be=C,pt=()=>(be(),be=P(_,ze=>e(43,_e=ze)),_),Ye,Re=C,Me=()=>(Re(),Re=P(b,ze=>e(44,Ye=ze)),b),Ze,et=C,Q=()=>(et(),et=P(p,ze=>e(45,Ze=ze)),p),Ee,ge=C,nt=()=>(ge(),ge=P(h,ze=>e(46,Ee=ze)),h),Y,Se=C,Je=()=>(Se(),Se=P(f,ze=>e(47,Y=ze)),f),ne,lt=C,je=()=>(lt(),lt=P(u,ze=>e(48,ne=ze)),u),Ie,kt,Tt=C,re=()=>(Tt(),Tt=P(l,ze=>e(50,kt=ze)),l),it,ut=C,gt=()=>(ut(),ut=P(a,ze=>e(5,it=ze)),a),qe,S=C,rt=()=>(S(),S=P(c,ze=>e(24,qe=ze)),c);t.$$.on_destroy.push(()=>J()),t.$$.on_destroy.push(()=>G()),t.$$.on_destroy.push(()=>ye()),t.$$.on_destroy.push(()=>be()),t.$$.on_destroy.push(()=>Re()),t.$$.on_destroy.push(()=>et()),t.$$.on_destroy.push(()=>ge()),t.$$.on_destroy.push(()=>Se()),t.$$.on_destroy.push(()=>lt()),t.$$.on_destroy.push(()=>Tt()),t.$$.on_destroy.push(()=>ut()),t.$$.on_destroy.push(()=>S());let{componentContext:le}=r,{layoutParams:Qe=void 0}=r;const At=Jr(en),fe=At.direction;an(t,fe,ze=>e(49,Ie=ze));let me,ft,$e=!1,rr="",Ot=null,Qt="",Oe="rgba(0,0,0,.45)",yt=12,qt,Gt="",Kt,H="",ae="#000",dr="",ke;function It(){e(27,Ot=null),e(29,Oe="rgba(0,0,0,.45)"),e(30,yt=12),e(31,qt=void 0),e(32,Gt=""),e(33,Kt=void 0),e(34,H=""),e(35,ae="#000"),e(7,dr="")}un(()=>{me&&(At.unregisterFocusable(me),e(26,me=void 0))});function He(ze){Pr[ze?"unshift":"push"](()=>{ft=ze,e(2,ft)})}function vt(){it=wd(this),a.set(it),e(4,s),e(38,o),e(0,le)}return t.$$set=ze=>{"componentContext"in ze&&e(0,le=ze.componentContext),"layoutParams"in ze&&e(1,Qe=ze.layoutParams)},t.$$.update=()=>{if(t.$$.dirty[0]&1&&e(39,n=le.origJson),t.$$.dirty[1]&256&&n&&It(),t.$$.dirty[0]&1&&e(37,i=le.json.value_variable),t.$$.dirty[0]&1&&e(38,o=le.json.options),t.$$.dirty[1]&128&&e(4,s=Array.isArray(o)&&o.filter(ze=>typeof ze.value=="string")||[]),t.$$.dirty[0]&1|t.$$.dirty[1]&64&>(e(23,a=i&&le.getVariable(i,"string")||gi("temp","string",""))),t.$$.dirty[0]&1&&re(e(22,l=le.getDerivedFromVars(le.json.paddings))),t.$$.dirty[0]&1&&rt(e(21,c=le.getDerivedFromVars(le.json.hint_text))),t.$$.dirty[0]&1&&je(e(20,u=le.getDerivedFromVars(le.json.hint_color))),t.$$.dirty[0]&1&&Je(e(19,f=le.getDerivedFromVars(le.json.font_size))),t.$$.dirty[0]&1&&nt(e(18,h=le.getDerivedFromVars(le.json.font_weight))),t.$$.dirty[0]&1&&Q(e(17,p=le.getDerivedFromVars(le.json.font_weight_value))),t.$$.dirty[0]&1&&Me(e(16,b=le.getDerivedFromVars(le.json.font_family))),t.$$.dirty[0]&1&&pt(e(15,_=le.getDerivedFromVars(le.json.line_height))),t.$$.dirty[0]&1&&Te(e(14,v=le.getDerivedFromVars(le.json.letter_spacing))),t.$$.dirty[0]&1&&z(e(13,w=le.getDerivedFromVars(le.json.text_color))),t.$$.dirty[0]&1&&Z(e(12,L=le.getDerivedFromVars(le.json.accessibility))),t.$$.dirty[0]&17&&(Array.isArray(s)&&s.length||le.logError(x(new Error('Empty selection "items" in "select"')))),t.$$.dirty[0]&1|t.$$.dirty[1]&64&&(i?e(6,$e=!1):(e(6,$e=!0),le.logError(x(new Error('Missing "value_variable" in "select"'))))),t.$$.dirty[0]&49|t.$$.dirty[1]&32){const ze=s.find(at=>at.value===it);ze?e(3,rr=(typeof ze.text=="string"?ze.text:ze.value)||""):(e(3,rr=""),it&&ke!==it&&(e(36,ke=it),le.logError(x(new Error('Value from the variable was not found in the selection items for "select"')))))}if(t.$$.dirty[0]&1073741824|t.$$.dirty[1]&65536&&e(30,yt=Kn(Y,yt)),t.$$.dirty[0]&1207959552|t.$$.dirty[1]&786432&&(e(27,Ot=So(kt||void 0,Ot)),e(28,Qt=Ot?di({top:(Number(Ot.top)||0)/yt*10,right:(Number(Ie==="ltr"?Ot.end:Ot.start)||Number(Ot.right)||0)/yt*10,bottom:(Number(Ot.bottom)||0)/yt*10,left:(Number(Ie==="ltr"?Ot.start:Ot.end)||Number(Ot.left)||0)/yt*10},Ie):"")),t.$$.dirty[0]&536870912|t.$$.dirty[1]&131072&&e(29,Oe=Ir(ne,1,Oe)),t.$$.dirty[1]&57345&&(e(31,qt=_o(Ee,Ze,qt)),Ye&&typeof Ye=="string"?e(32,Gt=At.typefaceProvider(Ye,{fontWeight:qt||400})):e(32,Gt="")),t.$$.dirty[0]&1073741824|t.$$.dirty[1]&4096){const ze=_e;Pn(ze)&&e(33,Kt=ze/yt)}t.$$.dirty[0]&1073741824|t.$$.dirty[1]&2048&&ts(he)&&e(34,H=we(he/yt*10)),t.$$.dirty[1]&1040&&e(35,ae=Ir(W,1,ae)),t.$$.dirty[0]&1|t.$$.dirty[1]&512&&(D!=null&&D.description?e(7,dr=D.description):le.logError(x(new Error('Missing accessibility "description" for select'),{level:"warn"}))),t.$$.dirty[0]&8&&e(11,N={hint:!rr}),t.$$.dirty[0]&536870912|t.$$.dirty[1]&19&&e(10,V={"--divkit-input-hint-color":Oe,"font-weight":qt,"font-family":Gt,color:ae}),t.$$.dirty[0]&1342177280|t.$$.dirty[1]&12&&e(9,F={padding:Qt,"font-size":we(yt),"line-height":Kt,"letter-spacing":H}),t.$$.dirty[0]&1073741824|t.$$.dirty[1]&12&&e(8,$={"font-size":we(yt),"line-height":Kt,"letter-spacing":H}),t.$$.dirty[0]&67108869&&le.json&&ft&&(me&&(At.unregisterFocusable(me),e(26,me=void 0)),le.id&&!le.fakeElement&&(e(26,me=le.id),At.registerFocusable(me,{focus(){ft&&ft.focus()}})))},[le,Qe,ft,rr,s,it,$e,dr,$,F,V,N,L,w,v,_,b,p,h,f,u,c,l,a,qe,fe,me,Ot,Qt,Oe,yt,qt,Gt,Kt,H,ae,ke,i,o,n,D,W,he,_e,Ye,Ze,Ee,Y,ne,Ie,kt,He,vt]}class lp extends Hr{constructor(r){super(),Br(this,r,sp,op,wr,{componentContext:0,layoutParams:1},null,[-1,-1])}}const Po={video__video:"divkit-b382f","video__aspect-wrapper":"divkit-04542",video_absolute:"divkit-2205d"};function ap(t,r){return Array.isArray(t)&&t.length?t.filter(e=>(e==null?void 0:e.type)==="video_source"&&typeof e.url=="string"&&typeof e.mime_type=="string").map(e=>{const n={src:e.url};return e.mime_type&&(n.type=e.mime_type),n}):r}function cp(t){return t==="fill"?"cover":t==="no_scale"?"none":"contain"}function Iu(t,r,e){const n=t.slice();return n[52]=r[e],n}function Du(t,r,e){const n=t.slice();return n[52]=r[e],n}function up(t){let r,e;return r=new hi({props:{componentContext:t[0]}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function fp(t){let r,e;return r=new kn({props:{cls:bt("video",Po,t[12]),customActions:"video",componentContext:t[0],layoutParams:t[1],heightByAspect:t[10]!=="0",$$slots:{default:[_p]},$$scope:{ctx:t}}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&4096&&(o.cls=bt("video",Po,n[12])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&1024&&(o.heightByAspect=n[10]!=="0"),i[0]&4088|i[1]&67108864&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function dp(t){let r,e,n,i,o,s=sr(t[4]),a=[];for(let l=0;l<s.length;l+=1)a[l]=Fu(Iu(t,s,l));return{c(){r=Be("video");for(let l=0;l<a.length;l+=1)a[l].c();this.h()},l(l){r=Ge(l,"VIDEO",{class:!0,style:!0,poster:!0,preload:!0});var c=De(r);for(let u=0;u<a.length;u+=1)a[u].l(c);c.forEach(E),this.h()},h(){m(r,"class",Po.video__video),m(r,"style",e=Vt(t[11])),r.playsInline=!0,r.loop=t[5],r.autoplay=t[6],r.muted=t[7],m(r,"poster",t[9]),m(r,"preload",n=t[8]?"metadata":"auto")},m(l,c){ie(l,r,c);for(let u=0;u<a.length;u+=1)a[u]&&a[u].m(r,null);t[46](r),i||(o=[Ue(r,"timeupdate",t[23]),Ue(r,"ended",t[24]),Ue(r,"playing",t[25]),Ue(r,"pause",t[26]),Ue(r,"waiting",t[27]),Ue(r,"error",t[28])],i=!0)},p(l,c){if(c[0]&268435472){s=sr(l[4]);let u;for(u=0;u<s.length;u+=1){const f=Iu(l,s,u);a[u]?a[u].p(f,c):(a[u]=Fu(f),a[u].c(),a[u].m(r,null))}for(;u<a.length;u+=1)a[u].d(1);a.length=s.length}c[0]&2048&&e!==(e=Vt(l[11]))&&m(r,"style",e),c[0]&32&&(r.loop=l[5]),c[0]&64&&(r.autoplay=l[6]),c[0]&128&&(r.muted=l[7]),c[0]&512&&m(r,"poster",l[9]),c[0]&256&&n!==(n=l[8]?"metadata":"auto")&&m(r,"preload",n)},d(l){l&&E(r),dn(a,l),t[46](null),i=!1,Yr(o)}}}function hp(t){let r,e,n,i,o=`${t[10]}%`,s,a,l=sr(t[4]),c=[];for(let u=0;u<l.length;u+=1)c[u]=Pu(Du(t,l,u));return{c(){r=Be("div"),e=Be("video");for(let u=0;u<c.length;u+=1)c[u].c();this.h()},l(u){r=Ge(u,"DIV",{class:!0});var f=De(r);e=Ge(f,"VIDEO",{class:!0,style:!0,poster:!0,preload:!0});var h=De(e);for(let p=0;p<c.length;p+=1)c[p].l(h);h.forEach(E),f.forEach(E),this.h()},h(){m(e,"class",Po.video__video),m(e,"style",n=Vt(t[11])),e.playsInline=!0,e.loop=t[5],e.autoplay=t[6],e.muted=t[7],m(e,"poster",t[9]),m(e,"preload",i=t[8]?"metadata":"auto"),m(r,"class",Po["video__aspect-wrapper"]),B(r,"padding-bottom",o)},m(u,f){ie(u,r,f),Ct(r,e);for(let h=0;h<c.length;h+=1)c[h]&&c[h].m(e,null);t[45](e),s||(a=[Ue(e,"timeupdate",t[23]),Ue(e,"ended",t[24]),Ue(e,"playing",t[25]),Ue(e,"pause",t[26]),Ue(e,"waiting",t[27]),Ue(e,"error",t[28])],s=!0)},p(u,f){if(f[0]&268435472){l=sr(u[4]);let h;for(h=0;h<l.length;h+=1){const p=Du(u,l,h);c[h]?c[h].p(p,f):(c[h]=Pu(p),c[h].c(),c[h].m(e,null))}for(;h<c.length;h+=1)c[h].d(1);c.length=l.length}f[0]&2048&&n!==(n=Vt(u[11]))&&m(e,"style",n),f[0]&32&&(e.loop=u[5]),f[0]&64&&(e.autoplay=u[6]),f[0]&128&&(e.muted=u[7]),f[0]&512&&m(e,"poster",u[9]),f[0]&256&&i!==(i=u[8]?"metadata":"auto")&&m(e,"preload",i),f[0]&1024&&o!==(o=`${u[10]}%`)&&B(r,"padding-bottom",o)},d(u){u&&E(r),dn(c,u),t[45](null),s=!1,Yr(a)}}}function Tu(t){let r,e,n,i,o;return{c(){r=Be("source"),this.h()},l(s){r=Ge(s,"SOURCE",{src:!0,type:!0}),this.h()},h(){On(r.src,e=t[52].src)||m(r,"src",e),m(r,"type",n=t[52].type)},m(s,a){ie(s,r,a),i||(o=Ue(r,"error",t[28]),i=!0)},p(s,a){a[0]&16&&!On(r.src,e=s[52].src)&&m(r,"src",e),a[0]&16&&n!==(n=s[52].type)&&m(r,"type",n)},d(s){s&&E(r),i=!1,o()}}}function Fu(t){let r=t[52],e,n=Tu(t);return{c(){n.c(),e=Pe()},l(i){n.l(i),e=Pe()},m(i,o){n.m(i,o),ie(i,e,o)},p(i,o){o[0]&16&&wr(r,r=i[52])?(n.d(1),n=Tu(i),n.c(),n.m(e.parentNode,e)):n.p(i,o)},d(i){i&&E(e),n.d(i)}}}function Mu(t){let r,e,n,i,o;return{c(){r=Be("source"),this.h()},l(s){r=Ge(s,"SOURCE",{src:!0,type:!0}),this.h()},h(){On(r.src,e=t[52].src)||m(r,"src",e),m(r,"type",n=t[52].type)},m(s,a){ie(s,r,a),i||(o=Ue(r,"error",t[28]),i=!0)},p(s,a){a[0]&16&&!On(r.src,e=s[52].src)&&m(r,"src",e),a[0]&16&&n!==(n=s[52].type)&&m(r,"type",n)},d(s){s&&E(r),i=!1,o()}}}function Pu(t){let r=t[52],e,n=Mu(t);return{c(){n.c(),e=Pe()},l(i){n.l(i),e=Pe()},m(i,o){n.m(i,o),ie(i,e,o)},p(i,o){o[0]&16&&wr(r,r=i[52])?(n.d(1),n=Mu(i),n.c(),n.m(e.parentNode,e)):n.p(i,o)},d(i){i&&E(e),n.d(i)}}}function _p(t){let r;function e(o,s){return o[10]!=="0"?hp:dp}let n=e(t),i=n(t);return{c(){i.c(),r=Pe()},l(o){i.l(o),r=Pe()},m(o,s){i.m(o,s),ie(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&&E(r),i.d(o)}}}function gp(t){let r,e,n,i;const o=[fp,up],s=[];function a(l,c){return l[2]?-1:0}return~(r=a(t))&&(e=s[r]=o[r](t)),{c(){e&&e.c(),n=Pe()},l(l){e&&e.l(l),n=Pe()},m(l,c){~r&&s[r].m(l,c),ie(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?~r&&s[r].p(l,c):(e&&(ir(),te(s[u],1,1,()=>{s[u]=null}),or()),~r?(e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(l){i||(U(e),i=!0)},o(l){te(e),i=!1},d(l){l&&E(n),~r&&s[r].d(l)}}}function pp(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L=C,N=()=>(L(),L=P(a,H=>e(35,w=H)),a),V,F=C,$=()=>(F(),F=P(b,H=>e(36,V=H)),b),D,J=C,Z=()=>(J(),J=P(p,H=>e(37,D=H)),p),W,G=C,z=()=>(G(),G=P(h,H=>e(38,W=H)),h),he,ye=C,Te=()=>(ye(),ye=P(f,H=>e(39,he=H)),f),_e,be=C,pt=()=>(be(),be=P(u,H=>e(40,_e=H)),u),Ye,Re=C,Me=()=>(Re(),Re=P(c,H=>e(41,Ye=H)),c),Ze,et=C,Q=()=>(et(),et=P(l,H=>e(42,Ze=H)),l),Ee,ge=C,nt=()=>(ge(),ge=P(s,H=>e(43,Ee=H)),s),Y,Se=C,Je=()=>(Se(),Se=P(o,H=>e(44,Y=H)),o);t.$$.on_destroy.push(()=>L()),t.$$.on_destroy.push(()=>F()),t.$$.on_destroy.push(()=>J()),t.$$.on_destroy.push(()=>G()),t.$$.on_destroy.push(()=>ye()),t.$$.on_destroy.push(()=>be()),t.$$.on_destroy.push(()=>Re()),t.$$.on_destroy.push(()=>et()),t.$$.on_destroy.push(()=>ge()),t.$$.on_destroy.push(()=>Se());let{componentContext:ne}=r,{layoutParams:lt=void 0}=r;const je=Jr(en);let Ie,kt=!1,Tt=!1,re,it=[],ut=!1,gt=!1,qe=!1,S=!1,rt,le="fit",Qe="0",At=!1,fe;function me(H){if(Tt){Tt=!1;return}re&&e(3,re.currentTime=Number(H)/1e3,re)}function ft(){re==null||re.pause()}function $e(){const H=re==null?void 0:re.play();H&&H.catch(ae=>{ne.logError(x(new Error("Video playing error"),{level:"error",additional:{originalText:String(ae)}}))})}function rr(){re&&(Tt=!0,i.setValue(Math.floor(re.currentTime*1e3)))}function Ot(){const H=ne.getJsonWithVars(ne.json.end_actions);ne.execAnyActions(H)}function Qt(){const H=ne.getJsonWithVars(ne.json.resume_actions);ne.execAnyActions(H)}function Oe(){const H=ne.getJsonWithVars(ne.json.pause_actions);ne.execAnyActions(H)}function yt(){const H=ne.getJsonWithVars(ne.json.buffering_actions);ne.execAnyActions(H)}function qt(){const H=ne.getJsonWithVars(ne.json.fatal_actions);ne.execAnyActions(H)}un(()=>{Ie&&(je.unregisterInstance(Ie),e(29,Ie=void 0)),fe&&(fe(),e(32,fe=void 0))});function Gt(H){Pr[H?"unshift":"push"](()=>{re=H,e(3,re)})}function Kt(H){Pr[H?"unshift":"push"](()=>{re=H,e(3,re)})}return t.$$set=H=>{"componentContext"in H&&e(0,ne=H.componentContext),"layoutParams"in H&&e(1,lt=H.layoutParams)},t.$$.update=()=>{if(t.$$.dirty[0]&1&&ne.json&&(e(5,ut=!1),e(6,gt=!1),e(7,qe=!1),e(8,S=!1),e(9,rt=void 0),e(30,le="fit"),e(31,At=!1)),t.$$.dirty[0]&1&&e(34,n=ne.json.elapsed_time_variable),t.$$.dirty[0]&1|t.$$.dirty[1]&8&&e(33,i=n&&ne.getVariable(n,"integer")||gi("temp","integer",0)),t.$$.dirty[1]&6&&i&&(fe&&fe(),e(32,fe=i.subscribe(me))),t.$$.dirty[0]&1&&Je(e(22,o=ne.getDerivedFromVars(ne.json.video_sources))),t.$$.dirty[0]&1&&nt(e(21,s=ne.getDerivedFromVars(ne.json.repeatable))),t.$$.dirty[0]&1&&N(e(20,a=ne.getDerivedFromVars(ne.json.autostart))),t.$$.dirty[0]&1&&Q(e(19,l=ne.getDerivedFromVars(ne.json.muted))),t.$$.dirty[0]&1&&Me(e(18,c=ne.getDerivedFromVars(ne.json.preload_required))),t.$$.dirty[0]&1&&pt(e(17,u=ne.getDerivedFromVars(ne.json.preview))),t.$$.dirty[0]&1&&Te(e(16,f=ne.getDerivedFromVars(ne.json.scale))),t.$$.dirty[0]&1&&z(e(15,h=ne.getDerivedFromVars(ne.json.aspect))),t.$$.dirty[0]&1&&Z(e(14,p=ne.getDerivedFromVars(ne.json.width))),t.$$.dirty[0]&1&&$(e(13,b=ne.getDerivedFromVars(ne.json.height))),t.$$.dirty[0]&17|t.$$.dirty[1]&8192&&(e(4,it=ap(Y,it)),it.length?e(2,kt=!1):(e(2,kt=!0),ne.logError(x(new Error('Missing "video_sources" in "video"'))))),t.$$.dirty[0]&32|t.$$.dirty[1]&4096&&e(5,ut=ti(Ee,ut)),t.$$.dirty[0]&64|t.$$.dirty[1]&16&&e(6,gt=ti(w,gt)),t.$$.dirty[0]&128|t.$$.dirty[1]&2048&&e(7,qe=ti(Ze,qe)),t.$$.dirty[0]&256|t.$$.dirty[1]&1024&&e(8,S=ti(Ye,S)),t.$$.dirty[0]&512|t.$$.dirty[1]&512&&e(9,rt=typeof _e=="string"?ic(_e):rt),t.$$.dirty[0]&1073741824|t.$$.dirty[1]&256&&e(30,le=cp(he)||le),t.$$.dirty[1]&224){const H=W==null?void 0:W.ratio;H&&Pn(H)?(e(10,Qe=(100/Number(H)).toFixed(2)),e(31,At=!0)):(e(10,Qe="0"),e(31,At=(!D||D.type==="match_parent")&&(V==null?void 0:V.type)==="match_parent"))}t.$$.dirty[0]&536870917&&ne.json&&(Ie&&(je.unregisterInstance(Ie),e(29,Ie=void 0)),ne.id&&!kt&&!ne.fakeElement&&(e(29,Ie=ne.id),je.registerInstance(Ie,{pause:ft,start:$e}))),t.$$.dirty[0]&9|t.$$.dirty[1]&16&&ne.json&&w&&re&&$e(),t.$$.dirty[1]&1&&e(12,_={absolute:At}),t.$$.dirty[0]&1073741824&&e(11,v={"object-fit":le})},[ne,lt,kt,re,it,ut,gt,qe,S,rt,Qe,v,_,b,p,h,f,u,c,l,a,s,o,rr,Ot,Qt,Oe,yt,qt,Ie,le,At,fe,i,n,w,V,D,W,he,_e,Ye,Ze,Ee,Y,Gt,Kt]}class mp extends Hr{constructor(r){super(),Br(this,r,pp,gp,wr,{componentContext:0,layoutParams:1},null,[-1,-1])}}const $i={switch:"divkit-03a3a",switch__tumbler:"divkit-adc72",switch__tumbler_checked:"divkit-385c4",switch_disabled:"divkit-3c049",switch__thumb:"divkit-ed159",switch__input:"divkit-f630c"};function Cl(t){return t===!0||t===1}function bp(t){let r,e;return r=new hi({props:{componentContext:t[0]}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i&1&&(o.componentContext=n[0]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function yp(t){let r,e;return r=new kn({props:{cls:bt("switch",$i,t[9]),style:t[8],customDescription:!0,customActions:"switch",hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[vp,({focusHandler:n,blurHandler:i,hasCustomFocus:o})=>({26:n,27:i,28:o}),({focusHandler:n,blurHandler:i,hasCustomFocus:o})=>(n?67108864:0)|(i?134217728:0)|(o?268435456:0)]},$$scope:{ctx:t}}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i&512&&(o.cls=bt("switch",$i,n[9])),i&256&&(o.style=n[8]),i&1&&(o.componentContext=n[0]),i&2&&(o.layoutParams=n[1]),i&1006633052&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function vp(t){let r,e,n,i,o,s,a,l,c;return{c(){r=Be("div"),e=Be("div"),i=yr(),o=Be("input"),this.h()},l(u){r=Ge(u,"DIV",{class:!0});var f=De(r);e=Ge(f,"DIV",{class:!0}),De(e).forEach(E),f.forEach(E),i=vr(u),o=Ge(u,"INPUT",{type:!0,class:!0,autocomplete:!0,"aria-label":!0}),this.h()},h(){m(e,"class",$i.switch__thumb),m(r,"class",n=bt("switch__tumbler",$i,{checked:t[3]})),m(o,"type","checkbox"),m(o,"class",s=bt("switch__input",$i,{"has-custom-focus":t[28]})),m(o,"autocomplete","off"),m(o,"aria-label",t[6]),o.disabled=a=!t[4],o.checked=t[3]},m(u,f){ie(u,r,f),Ct(r,e),ie(u,i,f),ie(u,o,f),t[23](o),l||(c=[Ue(o,"input",t[13]),Ue(o,"focus",function(){jr(t[26])&&t[26].apply(this,arguments)}),Ue(o,"blur",function(){jr(t[27])&&t[27].apply(this,arguments)})],l=!0)},p(u,f){t=u,f&8&&n!==(n=bt("switch__tumbler",$i,{checked:t[3]}))&&m(r,"class",n),f&268435456&&s!==(s=bt("switch__input",$i,{"has-custom-focus":t[28]}))&&m(o,"class",s),f&64&&m(o,"aria-label",t[6]),f&16&&a!==(a=!t[4])&&(o.disabled=a),f&8&&(o.checked=t[3])},d(u){u&&(E(r),E(i),E(o)),t[23](null),l=!1,Yr(c)}}}function wp(t){let r,e,n,i;const o=[yp,bp],s=[];function a(l,c){return l[5]?-1:0}return~(r=a(t))&&(e=s[r]=o[r](t)),{c(){e&&e.c(),n=Pe()},l(l){e&&e.l(l),n=Pe()},m(l,c){~r&&s[r].m(l,c),ie(l,n,c),i=!0},p(l,[c]){let u=r;r=a(l),r===u?~r&&s[r].p(l,c):(e&&(ir(),te(s[u],1,1,()=>{s[u]=null}),or()),~r?(e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(l){i||(U(e),i=!0)},o(l){te(e),i=!1},d(l){l&&E(n),~r&&s[r].d(l)}}}function kp(t,r,e){let n,i,o,s,a,l,c,u,f,h=C,p=()=>(h(),h=P(s,Me=>e(19,f=Me)),s),b,_=C,v=()=>(_(),_=P(l,Me=>e(20,b=Me)),l),w,L=C,N=()=>(L(),L=P(a,Me=>e(21,w=Me)),a),V,F=C,$=()=>(F(),F=P(o,Me=>e(22,V=Me)),o);t.$$.on_destroy.push(()=>h()),t.$$.on_destroy.push(()=>_()),t.$$.on_destroy.push(()=>L()),t.$$.on_destroy.push(()=>F());let{componentContext:D}=r,{layoutParams:J=void 0}=r;const Z=Jr(en);let W,G,z=!1,he=!1,ye="",Te=!0,_e="#129386",be="#1293864c";function pt(){e(4,Te=!0),e(15,_e="#129386"),e(16,be="#1293864c")}function Ye(Me){e(3,z=Me.target.checked),o.setValue(z)}un(()=>{W&&(Z.unregisterFocusable(W),e(14,W=void 0))});function Re(Me){Pr[Me?"unshift":"push"](()=>{G=Me,e(2,G)})}return t.$$set=Me=>{"componentContext"in Me&&e(0,D=Me.componentContext),"layoutParams"in Me&&e(1,J=Me.layoutParams)},t.$$.update=()=>{if(t.$$.dirty&1&&e(18,n=D.origJson),t.$$.dirty&262144&&n&&pt(),t.$$.dirty&1&&e(17,i=D.json.is_on_variable),t.$$.dirty&131073&&$(e(7,o=i&&D.getVariable(i,"boolean")||gi("temp","boolean",!1))),t.$$.dirty&1&&p(e(12,s=D.getDerivedFromVars(D.json.accessibility))),t.$$.dirty&1&&N(e(11,a=D.getDerivedFromVars(D.json.is_enabled))),t.$$.dirty&1&&v(e(10,l=D.getDerivedFromVars(D.json.on_color))),t.$$.dirty&131073&&(i?e(5,he=!1):(e(5,he=!0),D.logError(x(new Error('Missing "is_on_variable" in "switch"'))))),t.$$.dirty&4194312&&Cl(z)!==Cl(V)&&e(3,z=Cl(V)),t.$$.dirty&2097168&&e(4,Te=ti(w,Te)),t.$$.dirty&1081344&&(e(15,_e=Ir(b,1,_e)),typeof b=="string")){const Me=Ei(b);Me&&(Me.a*=.3,e(16,be=xs(Me)))}t.$$.dirty&524289&&(f!=null&&f.description?e(6,ye=f.description):D.logError(x(new Error('Missing accessibility "description" for switch'),{level:"warn"}))),t.$$.dirty&16&&e(9,c={disabled:!Te}),t.$$.dirty&98304&&e(8,u={"--divkit-switch-on-color":_e,"--divkit-switch-on-sub-color":be}),t.$$.dirty&16389&&G&&D.json&&(W&&(Z.unregisterFocusable(W),e(14,W=void 0)),D.id&&!D.fakeElement&&(e(14,W=D.id),Z.registerFocusable(W,{focus(){G&&G.focus()}})))},[D,J,G,z,Te,he,ye,o,u,c,l,a,s,Ye,W,_e,be,i,n,f,b,w,V,Re]}class Ap extends Hr{constructor(r){super(),Br(this,r,kp,wp,wr,{componentContext:0,layoutParams:1})}}function Nu(t,r,e){const n=t.slice();return n[11]=r[e],n}function Ep(t){let r,e;return r=new hi({props:{componentContext:t[0]}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i&1&&(o.componentContext=n[0]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function jp(t){let r,e;return r=new kn({props:{componentContext:t[0],layoutParams:t[1],$$slots:{default:[Cp]},$$scope:{ctx:t}}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i&1&&(o.componentContext=n[0]),i&2&&(o.layoutParams=n[1]),i&16893&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function Ou(t){let r,e,n=[t[8]],i={};for(let o=0;o<n.length;o+=1)i=Yn(i,n[o]);return{c(){r=Be("template"),e=new Jo(!1),this.h()},l(o){r=Ge(o,"TEMPLATE",{});var s=De(r.content);e=vd(s,!1),s.forEach(E),this.h()},h(){e.a=null,$n(r,i)},m(o,s){ie(o,r,s),e.m(t[7],r.content)},p(o,s){s&128&&e.p(o[7]),$n(r,i=uo(n,[s&256&&o[8]]))},d(o){o&&E(r)}}}function zu(t){let r=t[5],e,n,i=Ru(t);return{c(){i.c(),e=Pe()},l(o){i.l(o),e=Pe()},m(o,s){i.m(o,s),ie(o,e,s),n=!0},p(o,s){s&32&&wr(r,r=o[5])?(ir(),te(i,1,1,C),or(),i=Ru(o),i.c(),U(i,1),i.m(e.parentNode,e)):i.p(o,s)},i(o){n||(U(i),n=!0)},o(o){te(i),n=!1},d(o){o&&E(e),i.d(o)}}}function Lu(t){let r,e;return r=new ii({props:{componentContext:t[11]}}),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i&8&&(o.componentContext=n[11]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function Ru(t){let r,e,n=sr(t[3]),i=[];for(let s=0;s<n.length;s+=1)i[s]=Lu(Nu(t,n,s));const o=s=>te(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();r=Pe()},l(s){for(let a=0;a<i.length;a+=1)i[a].l(s);r=Pe()},m(s,a){for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(s,a);ie(s,r,a),e=!0},p(s,a){if(a&8){n=sr(s[3]);let l;for(l=0;l<n.length;l+=1){const c=Nu(s,n,l);i[l]?(i[l].p(c,a),U(i[l],1)):(i[l]=Lu(c),i[l].c(),U(i[l],1),i[l].m(r.parentNode,r))}for(ir(),l=n.length;l<i.length;l+=1)o(l);or()}},i(s){if(!e){for(let a=0;a<n.length;a+=1)U(i[a]);e=!0}},o(s){i=i.filter(Boolean);for(let a=0;a<i.length;a+=1)te(i[a]);e=!1},d(s){s&&E(r),dn(i,s)}}}function Sl(t){let r,e,n,i=t[7]&&Ou(t),o=!t[4]&&t[5]&&zu(t),s=[t[0].json.custom_props||{}],a={};for(let l=0;l<s.length;l+=1)a=Yn(a,s[l]);return{c(){r=Be(t[2].element),i&&i.c(),e=yr(),o&&o.c(),this.h()},l(l){r=Ge(l,(t[2].element||"null").toUpperCase(),{});var c=De(r);i&&i.l(c),e=vr(c),o&&o.l(c),c.forEach(E),this.h()},h(){ta(t[2].element)(r,a)},m(l,c){ie(l,r,c),i&&i.m(r,null),Ct(r,e),o&&o.m(r,null),t[9](r),n=!0},p(l,c){l[7]?i?i.p(l,c):(i=Ou(l),i.c(),i.m(r,e)):i&&(i.d(1),i=null),!l[4]&&l[5]?o?(o.p(l,c),c&48&&U(o,1)):(o=zu(l),o.c(),U(o,1),o.m(r,null)):o&&(ir(),te(o,1,1,()=>{o=null}),or()),ta(l[2].element)(r,a=uo(s,[c&1&&(l[0].json.custom_props||{})]))},i(l){n||(U(o),n=!0)},o(l){te(o),n=!1},d(l){l&&E(r),i&&i.d(),o&&o.d(),t[9](null)}}}function Cp(t){let r=t[2].element,e,n=t[2].element&&Sl(t);return{c(){n&&n.c(),e=Pe()},l(i){n&&n.l(i),e=Pe()},m(i,o){n&&n.m(i,o),ie(i,e,o)},p(i,o){i[2].element?r?wr(r,i[2].element)?(n.d(1),n=Sl(i),r=i[2].element,n.c(),n.m(e.parentNode,e)):n.p(i,o):(n=Sl(i),r=i[2].element,n.c(),n.m(e.parentNode,e)):r&&(n.d(1),n=null,r=i[2].element)},i:C,o(i){te(n,i)},d(i){i&&E(e),n&&n.d(i)}}}function Sp(t){let r,e,n,i;const o=[jp,Ep],s=[];function a(l,c){return l[2]?0:-1}return~(r=a(t))&&(e=s[r]=o[r](t)),{c(){e&&e.c(),n=Pe()},l(l){e&&e.l(l),n=Pe()},m(l,c){~r&&s[r].m(l,c),ie(l,n,c),i=!0},p(l,[c]){let u=r;r=a(l),r===u?~r&&s[r].p(l,c):(e&&(ir(),te(s[u],1,1,()=>{s[u]=null}),or()),~r?(e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(l){i||(U(e),i=!0)},o(l){te(e),i=!1},d(l){l&&E(n),~r&&s[r].d(l)}}}function Vp(t,r,e){let n,{componentContext:i}=r,{layoutParams:o=void 0}=r;const s=Jr(en);let a,l=null,c="",u={},f=[],h=!1;ei(()=>{if(a&&"divKitApiCallback"in a&&typeof a.divKitApiCallback=="function"){const b=s.getExtensionContext(i);a.divKitApiCallback(b)}}),un(()=>{f.forEach(b=>{b.destroy()})});function p(b){Pr[b?"unshift":"push"](()=>{a=b,e(6,a)})}return t.$$set=b=>{"componentContext"in b&&e(0,i=b.componentContext),"layoutParams"in b&&e(1,o=b.layoutParams)},t.$$.update=()=>{var b;if(t.$$.dirty&5)if(typeof i.json.custom_type=="string"&&i.json.custom_type&&((b=s.customComponents)!=null&&b.has(i.json.custom_type))){if(e(2,l=s.customComponents.get(i.json.custom_type)),typeof l.template=="function"){const _=s.getExtensionContext(i),v=new Map;for(const[w,L]of _.variables)v.set(w,L.getValue());e(7,c=l.template({props:i.json.custom_props,variables:v}))}else l.template&&typeof l.template=="string"?e(7,c=l.template):e(7,c="");e(8,u={shadowrootmode:l.shadowRootMode||"open"})}else e(2,l=null),e(7,c=";"),i.logError(x(new Error('Unknown or incorrect "custom_type" prop for div "custom"')));t.$$.dirty&1&&e(5,n=i.json.items),t.$$.dirty&33&&(n!==void 0&&!Array.isArray(n)?(e(4,h=!0),i.logError(x(new Error('Incorrect "items" prop for div "custom"')))):e(4,h=!1)),t.$$.dirty&57&&(f.forEach(_=>{_.destroy()}),e(3,f=(!h&&n||[]).map((_,v)=>i.produceChildContext(_,{path:v}))))},[i,o,l,f,h,n,a,c,u,p]}class Ip extends Hr{constructor(r){super(),Br(this,r,Vp,Sp,wr,{componentContext:0,layoutParams:1})}}const Bu={text:Th,container:r_,separator:s_,image:sc,gif:sc,grid:w_,gallery:D_,tabs:W_,state:lg,pager:pg,indicator:vg,slider:Lg,input:tp,select:lp,video:mp,switch:Ap,custom:Ip};function Hu(t){let r,e,n;var i=t[2];function o(s,a){return{props:{componentContext:s[0],layoutParams:s[1]}}}return i&&(r=ca(i,o(t))),{c(){r&&Ut(r.$$.fragment),e=Pe()},l(s){r&&Jt(r.$$.fragment,s),e=Pe()},m(s,a){r&&zt(r,s,a),ie(s,e,a),n=!0},p(s,a){if(a&4&&i!==(i=s[2])){if(r){ir();const l=r;te(l.$$.fragment,1,0,()=>{Lt(l,1)}),or()}i?(r=ca(i,o(s)),Ut(r.$$.fragment),U(r.$$.fragment,1),zt(r,e.parentNode,e)):r=null}else if(i){const l={};a&1&&(l.componentContext=s[0]),a&2&&(l.layoutParams=s[1]),r.$set(l)}},i(s){n||(r&&U(r.$$.fragment,s),n=!0)},o(s){r&&te(r.$$.fragment,s),n=!1},d(s){s&&E(e),r&&Lt(r,s)}}}function Dp(t){let r,e,n=t[2]&&Hu(t);return{c(){n&&n.c(),r=Pe()},l(i){n&&n.l(i),r=Pe()},m(i,o){n&&n.m(i,o),ie(i,r,o),e=!0},p(i,[o]){i[2]?n?(n.p(i,o),o&4&&U(n,1)):(n=Hu(i),n.c(),U(n,1),n.m(r.parentNode,r)):n&&(ir(),te(n,1,1,()=>{n=null}),or())},i(i){e||(U(n),e=!0)},o(i){te(n),e=!1},d(i){i&&E(r),n&&n.d(i)}}}function Tp(t,r,e){let{componentContext:n}=r,{layoutParams:i=void 0}=r;const o=Jr(en);let s;return t.$$set=a=>{"componentContext"in a&&e(0,n=a.componentContext),"layoutParams"in a&&e(1,i=a.layoutParams)},t.$$.update=()=>{if(t.$$.dirty&5){const a=n.json;if(e(2,s=(a==null?void 0:a.type)&&Bu[a.type]||void 0),!s){let l;a!=null&&a.type&&o.hasTemplate(a.type)?l="Recursive template":l="Unknown component",n.logError(x(new Error(l),{additional:{component:(a==null?void 0:a.type)||"<missing>"}}))}}},[n,i,s]}class ii extends Hr{constructor(r){super(),Br(this,r,Tp,Dp,wr,{componentContext:0,layoutParams:1})}}const Fp={"root-svg-filters":"divkit-44365"};function Wu(t,r,e){const n=t.slice();n[1]=r[e];const i=n[1].split(":");return n[2]=i[0],n[3]=i[1],n}function Uu(t){let r,e,n=sr([...Object.keys(t[0])]),i=[];for(let o=0;o<n.length;o+=1)i[o]=Gu(Wu(t,n,o));return{c(){r=$r("svg"),e=$r("defs");for(let o=0;o<i.length;o+=1)i[o].c();this.h()},l(o){r=cn(o,"svg",{class:!0,"aria-hidden":!0});var s=De(r);e=cn(s,"defs",{});var a=De(e);for(let l=0;l<i.length;l+=1)i[l].l(a);a.forEach(E),s.forEach(E),this.h()},h(){m(r,"class",Fp["root-svg-filters"]),m(r,"aria-hidden","true")},m(o,s){ie(o,r,s),Ct(r,e);for(let a=0;a<i.length;a+=1)i[a]&&i[a].m(e,null)},p(o,s){if(s&1){n=sr([...Object.keys(o[0])]);let a;for(a=0;a<n.length;a+=1){const l=Wu(o,n,a);i[a]?i[a].p(l,s):(i[a]=Gu(l),i[a].c(),i[a].m(e,null))}for(;a<i.length;a+=1)i[a].d(1);i.length=n.length}},d(o){o&&E(r),dn(i,o)}}}function Mp(t){let r,e;return{c(){r=$r("feBlend"),this.h()},l(n){r=cn(n,"feBlend",{in2:!0,mode:!0}),De(r).forEach(E),this.h()},h(){m(r,"in2","SourceGraphic"),m(r,"mode",e=t[3])},m(n,i){ie(n,r,i)},p(n,i){i&1&&e!==(e=n[3])&&m(r,"mode",e)},d(n){n&&E(r)}}}function Pp(t){let r;return{c(){r=$r("feComposite"),this.h()},l(e){r=cn(e,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),De(r).forEach(E),this.h()},h(){m(r,"in2","SourceGraphic"),m(r,"operator","arithmetic"),m(r,"k1","1"),m(r,"k2","0"),m(r,"k3","0"),m(r,"k4","0")},m(e,n){ie(e,r,n)},p:C,d(e){e&&E(r)}}}function Np(t){let r,e;return{c(){r=$r("feComposite"),this.h()},l(n){r=cn(n,"feComposite",{in2:!0,operator:!0}),De(r).forEach(E),this.h()},h(){m(r,"in2","SourceGraphic"),m(r,"operator",e=t[3].split("_")[1])},m(n,i){ie(n,r,i)},p(n,i){i&1&&e!==(e=n[3].split("_")[1])&&m(r,"operator",e)},d(n){n&&E(r)}}}function Gu(t){let r,e,n,i;function o(l,c){return l[3]==="source_in"||l[3]==="source_atop"?Np:l[3]==="multiply"?Pp:Mp}let s=o(t),a=s(t);return{c(){r=$r("filter"),e=$r("feFlood"),a.c(),this.h()},l(l){r=cn(l,"filter",{id:!0});var c=De(r);e=cn(c,"feFlood",{"flood-color":!0}),De(e).forEach(E),a.l(c),c.forEach(E),this.h()},h(){m(e,"flood-color",n=t[2]),m(r,"id",i=t[0][t[1]])},m(l,c){ie(l,r,c),Ct(r,e),a.m(r,null)},p(l,c){c&1&&n!==(n=l[2])&&m(e,"flood-color",n),s===(s=o(l))&&a?a.p(l,c):(a.d(1),a=s(l),a&&(a.c(),a.m(r,null))),c&1&&i!==(i=l[0][l[1]])&&m(r,"id",i)},d(l){l&&E(r),a.d()}}}function Op(t){let r=Object.keys(t[0]).length,e,n=r&&Uu(t);return{c(){n&&n.c(),e=Pe()},l(i){n&&n.l(i),e=Pe()},m(i,o){n&&n.m(i,o),ie(i,e,o)},p(i,[o]){o&1&&(r=Object.keys(i[0]).length),r?n?n.p(i,o):(n=Uu(i),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},i:C,o:C,d(i){i&&E(e),n&&n.d(i)}}}function zp(t,r,e){let{svgFiltersMap:n}=r;return t.$$set=i=>{"svgFiltersMap"in i&&e(0,n=i.svgFiltersMap)},[n]}class Lp extends Hr{constructor(r){super(),Br(this,r,zp,Op,wr,{svgFiltersMap:0})}}function Rp(t,r,e,n){const i=e[t.type];if(!i)return n(x(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:r};let o;const s={};for(o in r)r.hasOwnProperty(o)&&(s[o]=r[o]);for(o in t)o==="type"||o==="__proto__"||t.hasOwnProperty(o)&&(s[o]=t[o]);function a(c,u){const f=Object.keys(u).filter(b=>b!=="__proto__"),h=f.filter(b=>b.charAt(0)!=="$"),p=f.filter(b=>b.charAt(0)==="$");return h.forEach(b=>{const _=u[b];typeof _=="object"&&_!==null?(c[b]=Array.isArray(_)?[]:{},a(c[b],_)):c[b]=_}),p.forEach(b=>{const _=u[b],v=s[_];if(v!==void 0){const w=b.substring(1);c[w]=v}}),c}const l=a({},i);for(o in t)o==="type"||o==="__proto__"||t.hasOwnProperty(o)&&(l[o]=t[o]);return{json:l,templateContext:s}}const Bp=2147483647,Hp=-2147483648,Wp=Number.MAX_VALUE,Up=Number.MIN_VALUE,pe="string",ce="integer",We="number",zr="boolean",xr="color",Rn="url",gr="datetime",xt="dict",$t="array";function Bn(t,r){var e;switch((e=r[t.type])==null||e.call(r,t),t.type){case"TemplateLiteral":t.expressions.forEach(n=>{Bn(n,r)});break;case"BinaryExpression":case"LogicalExpression":Bn(t.left,r),Bn(t.right,r);break;case"UnaryExpression":Bn(t.argument,r);break;case"ConditionalExpression":Bn(t.test,r),Bn(t.consequent,r),Bn(t.alternate,r);break;case"TryExpression":Bn(t.test,r),Bn(t.alternate,r);break;case"CallExpression":t.arguments.forEach(n=>{Bn(n,r)});break;case"MethodExpression":Bn(t.object,r),t.arguments.forEach(n=>{Bn(n,r)});break}}function hs(t){return t.type==="url"||t.type==="color"?{type:"string",value:t.value}:t}function Yu(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function eo(t){if(t.type==="string")return t.value;if(t.type==="integer")return String(t.value);if(t.type==="number"){let r=String(t.value);return r.includes(".")||(r.includes("e")?r=r.replace("e",".0e"):r+=".0"),r=r.replace(/e\+?/i,"E"),r}else{if(t.type==="boolean")return t.value?"true":"false";if(t.type==="datetime")return Yu(t.value);if(t.type==="color")return ro(_s(t.value));if(t.type==="url")return t.value;if(t.type==="dict")return"<dict>";if(t.type==="array")return"<array>"}throw new Error(`Unexpected type ${t.type}`)}function Kr(t){let r=eo(t);return t.type==="string"&&(r="'"+r.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),r}function Nn(t){return t==="datetime"?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function to(t,r){return rn(r)}function An(t,r){if(r<Mo||r>Fo)throw new Error("Integer overflow.")}function Ju(t){const r=new Set;return Bn(t,{Variable(e){r.add(e.id.name)}}),[...r]}function Xr(t,r){throw new Error(`Failed to evaluate [${t}]. ${r}`)}function _s(t){const r=Ei(t);if(r)return r;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function ro(t){return`#${[t.a,t.r,t.g,t.b].map(r=>{if(r<0||r>255)throw new Error("Value out of range 0..1.");return ma(Math.round(r).toString(16),2)}).join("").toUpperCase()}`}function po(t){return ro(_s(t))}function Vl(t){return{type:We,value:Number(t.value)}}const Gp={string:"string",number:"number",integer:"number",boolean:"boolean",color:"string",url:"string",array:"array",dict:"object"};function qu(t,r,e){const n=Gp[e];let i=typeof r;if(n==="array"&&!Array.isArray(r)||n!=="array"&&i!==n||i==="object"&&r===null)throw i==="object"&&(Array.isArray(r)?i="array":r===null?i="null":i="dict"),new Error(`Incorrect value type: expected ${Nn(e)}, got ${Nn(i)}.`);if(n==="number"&&e==="integer"){An(t,r);try{r=rn(r)}catch{throw new Error("Cannot convert value to integer.")}}return n==="string"&&e==="color"&&(r=po(r)),{type:e,value:r}}const No=new Map,Il=new Map,gs=new Map,Dl=new Map;function I(t,r,e){const n={args:r,cb:e},i=No.get(t)||[];No.has(t)||No.set(t,i),i.push(n);const o=t+":"+r.map(s=>typeof s=="object"?s.type:s).join("#");Il.set(o,n)}function Ur(t,r,e){const n={args:r,cb:e},i=gs.get(t)||[];gs.has(t)||gs.set(t,i),i.push(n);const o=t+":"+r.map(s=>typeof s=="object"?s.type:s).join("#");Dl.set(o,n)}function Yp(t,r){const e=t.args.length;let n=t.args.length,i=0;const o=t.args[t.args.length-1];if(typeof o=="object"&&o.isVararg&&(n=1/0),r.length<e)return{type:"few",expected:e,found:r.length};if(r.length>n)return{type:"many",expected:n,found:r.length};for(let s=0;s<r.length;++s){let a=s>=t.args.length?t.args[t.args.length-1]:t.args[s];if(typeof a!="object"&&(a={type:a}),a.type===We&&r[s].type===ce){++i;continue}if(a.type!==r[s].type)return{type:"mismatch",expected:a.type,found:r[s].type}}return{type:"match",conversions:i}}function Tl(t,r,e){const n=t.get(r);if(!n)return{type:"missing"};let i=null,o=null;for(let s=0;s<n.length;++s){const a=Yp(n[s],e);if(a.type==="match"){(!o||o.conversions>a.conversions)&&(o={func:n[s],conversions:a.conversions});continue}i||(i=a)}if(!o){if(i)return i;throw new Error("Missing function")}return o}function Ku(t,r){return r.map((e,n)=>{let i=n>=t.args.length?t.args[t.args.length-1]:t.args[n];return typeof i!="object"&&(i={type:i}),i.type===We&&e.type===ce?Vl(e):e})}function Xu(t,r){return t+":"+r.args.map(e=>typeof e=="string"?e:e.type).join("#")}function En(t,r){return r.type===$t||r.type===xt?{type:pe,value:JSON.stringify(r.value)}:{type:pe,value:eo(r)}}function Zu(t,r){const e=Number(r.value);if(Number.isNaN(e)||!Number.isFinite(e))throw new Error("Unable to convert value to Number.");if(r.value==="")throw new Error("Unable to convert value to Number.");return{type:We,value:e}}function Jp(t,r){if(r.value>Fo||r.value<Mo)throw new Error("Unable to convert value to Integer.");const e=r.value-r.value%1;return{type:ce,value:rn(e)}}function qp(t,r){let e;try{e=rn(r.value)}catch{throw new Error("Unable to convert value to Integer.")}return{type:ce,value:e}}function Kp(t,r){return{type:ce,value:rn(r.value?1:0)}}function Xp(t,r){const e=Number(r.value);if(e!==1&&e!==0)throw new Error("Unable to convert value to Boolean.");return{type:zr,value:e}}function Zp(t,r){if(r.value!=="true"&&r.value!=="false")throw new Error("Unable to convert value to Boolean.");return{type:zr,value:r.value==="true"?1:0}}function Qp(t,r){return{type:xr,value:po(r.value)}}function xp(t,r){return{type:Rn,value:r.value}}function $p(t,r){try{return{type:pe,value:encodeURIComponent(r.value)}}catch{throw new Error("Unable to encodeUri string.")}}function em(t,r){try{return{type:pe,value:decodeURIComponent(r.value)}}catch{throw new Error("Unable to decodeUri string.")}}function Fl(t,r,e,n){const i=t.variables.get(r.value);let o;return i&&i.getType()===n?o=i.getValue():o=e.value,n==="color"&&(o=po(o)),{type:n,value:o}}function ps(t,r,e){return Fl(t,r,e,e.type)}function Qu(t,r,e){return Fl(t,r,e,"color")}function xu(t,r,e){return Fl(t,r,e,"url")}function tm(){I("toString",[ce],En),I("toString",[We],En),I("toString",[zr],En),I("toString",[xr],En),I("toString",[Rn],En),I("toString",[pe],En),I("toString",[$t],En),I("toString",[xt],En),I("toNumber",[ce],Zu),I("toNumber",[pe],Zu),I("toInteger",[We],Jp),I("toInteger",[pe],qp),I("toInteger",[zr],Kp),I("toBoolean",[ce],Xp),I("toBoolean",[pe],Zp),I("toColor",[pe],Qp),I("toUrl",[pe],xp),I("encodeUri",[pe],$p),I("decodeUri",[pe],em),I("getIntegerValue",[pe,ce],ps),I("getNumberValue",[pe,We],ps),I("getBooleanValue",[pe,zr],ps),I("getStringValue",[pe,pe],ps),I("getColorValue",[pe,xr],Qu),I("getColorValue",[pe,pe],Qu),I("getUrlValue",[pe,Rn],xu),I("getUrlValue",[pe,pe],xu),Ur("toString",[ce],En),Ur("toString",[We],En),Ur("toString",[zr],En),Ur("toString",[xr],En),Ur("toString",[Rn],En),Ur("toString",[pe],En),Ur("toString",[$t],En),Ur("toString",[xt],En)}function jn(t,r){return!t||!r?t:t.padStart(r,"0")}const Ml={G(t,r){let e;return t<4?e="short":t===5?e="narrow":e="long",r({era:e},"era")},d(t,r){return jn(r({day:"numeric"},"day"),t>1?t:0)},D(t,r){return jn(r({},"dayofyear"),t>1?t:0)},F(t,r){return jn(r({},"dayofweekinmonth"),t>1?t:0)},M(t,r){let e;return t===1?e="numeric":t===2?e="2-digit":t===3?e="short":t===5?e="narrow":e="long",r({month:e,day:"numeric"},"month")},y(t,r){return jn(r({year:t===2?"2-digit":"numeric"},"year"),t>2?t:void 0)},Y(t,r){return jn(r({year:t===2?"2-digit":"numeric"},"weekyear"),t>2?t:void 0)},u(t,r){return jn(r({year:"numeric"},"extendedyear"),t>1?t:void 0)},E(t,r){let e;return t<=3?e="short":t===5?e="narrow":e="long",r({weekday:e},"weekday")},e(t,r){return t>2?Ml.E(t,r):jn(r({},"weekdaynumeric"),t>1?t:void 0)},w(t,r){return jn(r({},"week"),t>1?t:void 0)},W(t,r){return jn(r({},"weekofmonth"),t>1?t:void 0)},H(t,r){const e=r({hour:"numeric",hour12:!1,hourCycle:"h23"},"hour");if(!e)return;const n=String(Number(e)%24);return jn(n,t>1?t:void 0)},h(t,r){return jn(r({hour:"numeric",hour12:!0,hourCycle:"h12"},"hour"),t>1?t:void 0)},K(t,r){const e=r({hour:"numeric",hour12:!0,hourCycle:"h11"},"hour");if(!e)return;const n=String(Number(e)%12);return jn(n,t>1?t:void 0)},k(t,r){return jn(r({hour:"numeric",hour12:!1,hourCycle:"h24"},"hour"),t>2?t:void 0)},a(t,r){return r({hour:"numeric",hour12:!0,hourCycle:"h11",dayPeriod:void 0},"dayPeriod")},m(t,r){return jn(r({minute:"numeric"},"minute"),t>1?t:void 0)},s(t,r){return jn(r({second:"numeric"},"second"),t>1?t:void 0)},S(t,r){const e=r({fractionalSecondDigits:Math.min(3,t)},"fractionalSecond");return e&&t>3?e.padEnd(t,"0"):e},z(t,r){return r({timeZoneName:t===4?"long":"short"},"timeZoneName")},Z(t,r){const e=-Number(r({},"timezoneoffset")),n=Math.abs(e/60),i=Math.floor(n)*100+(n-Math.floor(n))*60;return(e>=0?"+":"-")+jn(String(i),4)}},rm=/(\w)\1*|''|'(''|[^'])+('|$)|./g,nm=/^'([^]*?)'?$/,im=/''/g,om=/[a-zA-Z]/,Pl=1e3*60*60*24;function sm(t){const r=t.match(nm);return r?r[1].replace(im,"'"):t}function Nl(t,r,e){const n=t[r?"getUTCDay":"getDay"](),i=n<e?e-n-7:e-n;return new Date(t.getTime()+Pl*i)}function $u(t,r,e){const n=new Date(t);return n[r?"setUTCDate":"setDate"](1),n[r?"setUTCMonth":"setMonth"](0),Nl(n,r,e)}function ef(t,r){return Math.round((t.getTime()-r.getTime())/Pl)}function tf(t,r,e){let n=0;const i=$u(t,r||!1,e),o=new Date(t);o[r?"setUTCFullYear":"setFullYear"](t[r?"getUTCFullYear":"getFullYear"]()+1);const s=$u(o,r||!1,e),a=t.getTime()<i.getTime(),l=t.getTime()>=s.getTime();let c=t[r?"getUTCFullYear":"getFullYear"]();if(a){--c,i[r?"setUTCFullYear":"setFullYear"](i[r?"getUTCFullYear":"getFullYear"]()-1);const u=ef(Nl(t,r,e),i);n=Math.round(u/7)+1}else if(l)++c,n=1;else{const u=ef(Nl(t,r,e),i);n=Math.round(u/7)+1}return{week:n,year:c}}function lm(t,r,{locale:e,isUTC:n,weekStartDay:i=0}={}){const o=(s,a)=>{if(a==="week"){const{week:u}=tf(t,n||!1,i);return String(u)}if(a==="weekofmonth"){const u=t[n?"getUTCDay":"getDay"](),f=new Date(t);f[n?"setUTCDate":"setDate"](1);const h=f[n?"getUTCDay":"getDay"](),p=t[n?"getUTCDate":"getDate"]();return String(Math.ceil(p/7)+(u<h?1:0))}if(a==="dayofweekinmonth"){const u=t[n?"getUTCDate":"getDate"]();return String(Math.ceil(u/7))}if(a==="weekdaynumeric"){let u=t[n?"getUTCDay":"getDay"]();return u<i&&(u+=7),String(u-i+1)}if(a==="dayofyear"){const u=new Date(t);u[n?"setUTCMonth":"setMonth"](0),u[n?"setUTCDate":"setDate"](1),u[n?"setUTCHours":"setHours"](1),u[n?"setUTCMinutes":"setMinutes"](1),u[n?"setUTCSeconds":"setSeconds"](1);const f=Math.ceil((t.getTime()-u.getTime())/Pl);return String(f)}if(a==="weekyear"){let{year:u}=tf(t,n||!1,i);return u<1&&(u=1-u),s.year==="2-digit"?String(u%100):String(u)}if(a==="extendedyear"){const u=t[n?"getUTCFullYear":"getFullYear"]();return s.year==="2-digit"?String(u%100):String(u)}if(a==="timezoneoffset")return n?"0":String(t.getTimezoneOffset());n&&(s.timeZone="UTC");const c=new Intl.DateTimeFormat(e,s).formatToParts(t);for(let u=0;u<c.length;++u)if(c[u].type===a)return c[u].value};return(r.match(rm)||[]).map(s=>{if(s==="''")return"'";const a=s[0];if(a==="'")return sm(s);if(Ml[a])return Ml[a](s.length,o);if(a.match(om))throw new Error(`Format string contains an unescaped latin alphabet character "${a}"`);return s}).join("")}function am(t){const r=new Date(t);return r.setUTCMonth(r.getUTCMonth()+1),r.setUTCDate(0),r.getUTCDate()}function cm(t,r){return{type:gr,value:new Date(Number(r.value)*1e3)}}function um(t,r){const e=new Date(Number(r.value)*1e3),n=e.getTimezoneOffset();return e.setMinutes(e.getMinutes()-n),{type:gr,value:e}}function fm(){return{type:gr,value:new Date}}function dm(t,r,e){return{type:gr,value:new Date(r.value.getTime()+Number(e.value))}}function hm(t,r,e){const n=new Date(r.value);return n.setUTCFullYear(Number(e.value)),{type:gr,value:n}}function _m(t,r,e){const n=Number(e.value);if(n<1||n>12)throw new Error(`Expecting month in [1..12], instead got ${n}.`);const i=new Date(r.value);return i.setUTCMonth(n-1),{type:gr,value:i}}function gm(t,r,e){const n=new Date(r.value),i=Number(e.value);if(i<=0&&i!==-1||i>am(n))throw new Error(`Unable to set day ${i} for date ${eo(r)}.`);return n.setUTCDate(i===-1?0:i),{type:gr,value:n}}function pm(t,r,e){const n=Number(e.value);if(n<0||n>23)throw new Error(`Expecting hours in [0..23], instead got ${n}.`);const i=new Date(r.value);return i.setUTCHours(n),{type:gr,value:i}}function mm(t,r,e){const n=Number(e.value);if(n<0||n>59)throw new Error(`Expecting minutes in [0..59], instead got ${n}.`);const i=new Date(r.value);return i.setUTCMinutes(n),{type:gr,value:i}}function bm(t,r,e){const n=Number(e.value);if(n<0||n>59)throw new Error(`Expecting seconds in [0..59], instead got ${n}.`);const i=new Date(r.value);return i.setUTCSeconds(n),{type:gr,value:i}}function ym(t,r,e){const n=Number(e.value);if(n<0||n>999)throw new Error(`Expecting millis in [0..999], instead got ${n}.`);const i=new Date(r.value);return i.setUTCMilliseconds(n),{type:gr,value:i}}const Ni=t=>(r,e)=>{let i=new Date(e.value.getTime())[t]();return t==="getUTCMonth"?++i:t==="getUTCDay"&&i===0&&(i=7),{type:ce,value:rn(i)}};function rf(t){return(r,e,n,i)=>({type:pe,value:lm(e.value,n.value,{locale:i==null?void 0:i.value,isUTC:t,weekStartDay:r.weekStartDay})})}const vm=Ni("getUTCFullYear"),wm=Ni("getUTCMonth"),km=Ni("getUTCDate"),Am=Ni("getUTCDay"),Em=Ni("getUTCHours"),jm=Ni("getUTCMinutes"),Cm=Ni("getUTCSeconds"),Sm=Ni("getUTCMilliseconds"),nf=rf(!1),of=rf(!0);function Vm(){I("parseUnixTime",[ce],cm),I("parseUnixTimeAsLocal",[ce],um),I("nowLocal",[],fm),I("addMillis",[gr,ce],dm),I("setYear",[gr,ce],hm),I("setMonth",[gr,ce],_m),I("setDay",[gr,ce],gm),I("setHours",[gr,ce],pm),I("setMinutes",[gr,ce],mm),I("setSeconds",[gr,ce],bm),I("setMillis",[gr,ce],ym),I("getYear",[gr],vm),I("getMonth",[gr],wm),I("getDay",[gr],km),I("getDayOfWeek",[gr],Am),I("getHours",[gr],Em),I("getMinutes",[gr],jm),I("getSeconds",[gr],Cm),I("getMillis",[gr],Sm),I("formatDateAsLocal",[gr,pe],nf),I("formatDateAsUTC",[gr,pe],of),I("formatDateAsLocalWithLocale",[gr,pe,pe],nf),I("formatDateAsUTCWithLocale",[gr,pe,pe],of)}function Im(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Dm(t,r){return{type:ce,value:rn(r.value.length)}}function Tm(t,r,e){return{type:zr,value:r.value.includes(e.value)?1:0}}function Fm(t,r,e,n){if(n.value<e.value)throw new Error("Indexes should be in ascending order.");if(e.value<0||e.value>r.value.length||n.value<0||n.value>r.value.length)throw new Error("Indexes are out of bounds.");return{type:pe,value:r.value.substring(Number(e.value),Number(n.value))}}function Mm(t,r,e,n){let i;return e.value?i=r.value.replace(new RegExp(Im(e.value),"g"),n.value):i=r.value,{type:pe,value:i}}function Pm(t,r,e){return{type:ce,value:rn(r.value.indexOf(e.value))}}function Nm(t,r,e){return{type:ce,value:rn(r.value.lastIndexOf(e.value))}}function Om(t,r){return{type:pe,value:r.value.trim()}}function zm(t,r){return{type:pe,value:r.value.replace(/^\s+/,"")}}function Lm(t,r){return{type:pe,value:r.value.replace(/\s+$/,"")}}function Rm(t,r){return{type:pe,value:r.value.toUpperCase()}}function Bm(t,r){return{type:pe,value:r.value.toLowerCase()}}function sf(t,r,e,n){if(!n.value.length)return t.warnings.push(x(new Error("String for padding is empty."),{level:"warn"})),"";let i="";const o=r.type===pe?r.value:eo(r);for(;i.length+o.length<e.value;)i+=n.value;return i.length>0&&i.length+o.length>e.value&&(i=i.substring(0,Number(e.value)-Number(o.length))),i}function lf(t,r,e,n){const i=sf(t,r,e,n);return{type:pe,value:i+eo(r)}}function af(t,r,e,n){const i=sf(t,r,e,n);return{type:pe,value:eo(r)+i}}function Hm(t,r,e){let n;try{n=new RegExp(e.value)}catch{throw new Error("Invalid regular expression.")}return{type:zr,value:n.test(r.value)?1:0}}function Wm(t,r){return{type:pe,value:r.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}function Um(){I("len",[pe],Dm),I("contains",[pe,pe],Tm),I("substring",[pe,ce,ce],Fm),I("replaceAll",[pe,pe,pe],Mm),I("index",[pe,pe],Pm),I("lastIndex",[pe,pe],Nm),I("trim",[pe],Om),I("trimLeft",[pe],zm),I("trimRight",[pe],Lm),I("toUpperCase",[pe],Rm),I("toLowerCase",[pe],Bm),I("padStart",[pe,ce,pe],lf),I("padStart",[ce,ce,pe],lf),I("padEnd",[pe,ce,pe],af),I("padEnd",[ce,ce,pe],af),I("testRegex",[pe,pe],Hm),I("encodeRegex",[pe],Wm)}function Gm(t,r,e){if(e.value===xi)throw new Error("Division by zero is not supported.");let n=r.value/e.value;return n=to(t,n),An(t,n),{type:ce,value:n}}function Ym(t,r,e){if(e.value===0)throw new Error("Division by zero is not supported.");const n=r.value/e.value;return{type:We,value:n}}function Jm(t,r,e){if(e.value===xi)throw new Error("Division by zero is not supported.");let n=r.value%e.value;return n=to(t,n),An(t,n),{type:ce,value:n}}function qm(t,r,e){if(e.value===0)throw new Error("Division by zero is not supported.");const n=r.value%e.value;return{type:We,value:n}}function Km(t,...r){let e=r.length?r[0].value:xi;for(let n=1;n<r.length;++n)e*=r[n].value,e=to(t,e),An(t,e);return{type:ce,value:e}}function Xm(t,...r){let e=r.length?r[0].value:0;for(let n=1;n<r.length;++n)e*=r[n].value;return{type:We,value:e}}function Zm(t,...r){let e=r.length?r[0].value:xi;for(let n=1;n<r.length;++n)e-=r[n].value,e=to(t,e),An(t,e);return{type:ce,value:e}}function Qm(t,...r){let e=r.length?r[0].value:0;for(let n=1;n<r.length;++n)e-=r[n].value;return{type:We,value:e}}function xm(t,...r){let e=xi;for(let n=0;n<r.length;++n)e+=r[n].value,e=to(t,e),An(t,e);return{type:ce,value:e}}function $m(t,...r){let e=0;for(let n=0;n<r.length;++n)e+=r[n].value;return{type:We,value:e}}function e0(t,r){const e=tu(r.value);return An(t,e),{type:r.type,value:e}}function t0(t,r){const e=Math.abs(r.value);return{type:We,value:e}}function r0(t,...r){if(!r.length)throw new Error("Function requires non empty argument list.");let e=r[0].value;for(let n=1;n<r.length;++n)r[n].value>e&&(e=r[n].value);return{type:ce,value:e}}function n0(t,...r){if(!r.length)throw new Error("Function requires non empty argument list.");return{type:We,value:Math.max(...r.map(e=>e.value))}}function i0(t,...r){if(!r.length)throw new Error("Function requires non empty argument list.");let e=r[0].value;for(let n=1;n<r.length;++n)r[n].value<e&&(e=r[n].value);return{type:ce,value:e}}function o0(t,...r){if(!r.length)throw new Error("Function requires non empty argument list.");return{type:We,value:Math.min(...r.map(e=>e.value))}}function s0(){return{type:We,value:Wp}}function l0(){return{type:We,value:Up}}function a0(t){return An(t,Fo),{type:ce,value:Fo}}function c0(t){return An(t,Mo),{type:ce,value:Mo}}function u0(t,r){const e=Math.sign(r.value);return{type:We,value:e*Math.round(Math.abs(r.value))}}function f0(t,r){return{type:We,value:Math.floor(r.value)}}function d0(t,r){return{type:We,value:Math.ceil(r.value)}}function h0(t,r){return{type:ce,value:ru(r.value)}}function _0(t,r){return{type:We,value:Math.sign(r.value)}}function g0(t,r,e){let n;if(e.value===xi)n=r.value;else if(r.value===xi)n=rn(0);else{const i=ru(e.value);n=tu(r.value)*i}return An(t,n),{type:ce,value:n}}function p0(t,r,e){let n=Math.sign(e.value);n===0&&(n=Object.is(n,0)?1:-1);const i=Math.abs(r.value)*n;return{type:We,value:i}}function m0(){I("div",[ce,ce],Gm),I("div",[We,We],Ym),I("mod",[ce,ce],Jm),I("mod",[We,We],qm),I("mul",[{type:ce,isVararg:!0}],Km),I("mul",[{type:We,isVararg:!0}],Xm),I("sub",[{type:ce,isVararg:!0}],Zm),I("sub",[{type:We,isVararg:!0}],Qm),I("sum",[{type:ce,isVararg:!0}],xm),I("sum",[{type:We,isVararg:!0}],$m),I("abs",[ce],e0),I("abs",[We],t0),I("max",[{type:ce,isVararg:!0}],r0),I("max",[{type:We,isVararg:!0}],n0),I("min",[{type:ce,isVararg:!0}],i0),I("min",[{type:We,isVararg:!0}],o0),I("maxNumber",[],s0),I("minNumber",[],l0),I("maxInteger",[],a0),I("minInteger",[],c0),I("round",[We],u0),I("floor",[We],f0),I("ceil",[We],d0),I("signum",[ce],h0),I("signum",[We],_0),I("copySign",[ce,ce],g0),I("copySign",[We,We],p0)}function ms(t){return(r,e)=>{const n=_s(e.value);return{type:We,value:n[t]/255}}}function bs(t){return(r,e,n)=>{const i=_s(e.value);return i[t]=n.value*255,{type:xr,value:ro(i)}}}const cf=ms("a"),uf=ms("r"),ff=ms("g"),df=ms("b"),hf=bs("a"),_f=bs("r"),gf=bs("g"),pf=bs("b");function b0(t,r,e,n){const i={a:255,r:r.value*255,g:e.value*255,b:n.value*255};return{type:xr,value:ro(i)}}function y0(t,r,e,n,i){const o={a:r.value*255,r:e.value*255,g:n.value*255,b:i.value*255};return{type:xr,value:ro(o)}}function v0(){I("getColorAlpha",[pe],cf),I("getColorAlpha",[xr],cf),I("getColorRed",[pe],uf),I("getColorRed",[xr],uf),I("getColorGreen",[pe],ff),I("getColorGreen",[xr],ff),I("getColorBlue",[pe],df),I("getColorBlue",[xr],df),I("setColorAlpha",[pe,We],hf),I("setColorAlpha",[xr,We],hf),I("setColorRed",[pe,We],_f),I("setColorRed",[xr,We],_f),I("setColorGreen",[pe,We],gf),I("setColorGreen",[xr,We],gf),I("setColorBlue",[pe,We],pf),I("setColorBlue",[xr,We],pf),I("rgb",[We,We,We],b0),I("argb",[We,We,We,We],y0)}function Oi(t,r,e,n){if(r.value<0)throw new Error("Expecting non-negative number of milliseconds.");let i=rn(r.value)/rn(e);return An(t,i),n&&(i=rn(i)%rn(n)),{type:ce,value:i}}const mf=1e3,w0=60,bf=1e3*60,k0=60,yf=1e3*60*60,A0=24,E0=1e3*60*60*24,j0=1e3*60*60*24*7;function C0(t,r){return Oi(t,r,mf,w0)}function S0(t,r){return Oi(t,r,mf)}function V0(t,r){return Oi(t,r,bf,k0)}function I0(t,r){return Oi(t,r,bf)}function D0(t,r){return Oi(t,r,yf,A0)}function T0(t,r){return Oi(t,r,yf)}function F0(t,r){return Oi(t,r,E0)}function M0(t,r){return Oi(t,r,j0)}function P0(){I("getIntervalSeconds",[ce],C0),I("getIntervalTotalSeconds",[ce],S0),I("getIntervalMinutes",[ce],V0),I("getIntervalTotalMinutes",[ce],I0),I("getIntervalHours",[ce],D0),I("getIntervalTotalHours",[ce],T0),I("getIntervalTotalDays",[ce],F0),I("getIntervalTotalWeeks",[ce],M0)}function N0(t,r){let e=t;for(let n=0;n<r.length;++n){if(!e)throw new Error(`Missing property "${r[n]}" in the dict.`);const i=e[r[n]];if(i===void 0)throw new Error(`Missing property "${r[n]}" in the dict.`);e=i}return e}function zi(t){return(r,e,...n)=>{if(n.length===0)throw new Error("Non empty argument list is required.");const i=N0(e.value,n.map(o=>o.value));return qu(r,i,t)}}function mo(t,r){return(e,n,i,...o)=>{try{return t(e,i,...o)}catch{let a=n.value;return r==="color"&&(a=po(a)),{type:r,value:a}}}}const ys=zi(pe),vs=zi(We),ws=zi(ce),ks=zi(zr),As=zi(xr),Es=zi(Rn),Ol=zi($t),zl=zi(xt),vf=mo(ys,pe),wf=mo(vs,We),kf=mo(ws,ce),Af=mo(ks,zr),js=mo(As,xr),Cs=mo(Es,Rn);function O0(t,r,...e){try{return Ol(t,r,...e)}catch{return{type:$t,value:[]}}}function z0(t,r,...e){try{return zl(t,r,...e)}catch{return{type:xt,value:{}}}}function L0(t,r,e){return{type:zr,value:e.value in r.value?1:0}}function R0(t,r){return{type:zr,value:Object.keys(r.value).length?0:1}}function B0(){const t={type:pe,isVararg:!0};I("getDictString",[xt,t],ys),I("getStringFromDict",[xt,t],ys),I("getDictNumber",[xt,t],vs),I("getNumberFromDict",[xt,t],vs),I("getDictInteger",[xt,t],ws),I("getIntegerFromDict",[xt,t],ws),I("getDictBoolean",[xt,t],ks),I("getBooleanFromDict",[xt,t],ks),I("getDictColor",[xt,t],As),I("getColorFromDict",[xt,t],As),I("getDictUrl",[xt,t],Es),I("getUrlFromDict",[xt,t],Es),I("getDictOptString",[pe,xt,t],vf),I("getOptStringFromDict",[pe,xt,t],vf),I("getDictOptNumber",[We,xt,t],wf),I("getOptNumberFromDict",[We,xt,t],wf),I("getDictOptInteger",[ce,xt,t],kf),I("getOptIntegerFromDict",[ce,xt,t],kf),I("getDictOptBoolean",[zr,xt,t],Af),I("getOptBooleanFromDict",[zr,xt,t],Af),I("getDictOptColor",[xr,xt,t],js),I("getOptColorFromDict",[xr,xt,t],js),I("getDictOptColor",[pe,xt,t],js),I("getOptColorFromDict",[pe,xt,t],js),I("getDictOptUrl",[pe,xt,t],Cs),I("getOptUrlFromDict",[pe,xt,t],Cs),I("getDictOptUrl",[Rn,xt,t],Cs),I("getOptUrlFromDict",[Rn,xt,t],Cs),I("getDictFromDict",[xt,t],zl),I("getArrayFromDict",[xt,t],Ol),I("getOptArrayFromDict",[xt,t],O0),I("getOptDictFromDict",[xt,t],z0),Ur("getString",[xt,t],ys),Ur("getBoolean",[xt,t],ks),Ur("getInteger",[xt,t],ws),Ur("getNumber",[xt,t],vs),Ur("getUrl",[xt,t],Es),Ur("getColor",[xt,t],As),Ur("getArray",[xt,t],Ol),Ur("getDict",[xt,t],zl),Ur("containsKey",[xt,pe],L0),Ur("isEmpty",[xt],R0)}function Li(t,r){return(e,n,i)=>{if(i.value<0||i.value>=n.value.length)throw new Error(`Requested index (${i.value}) out of bounds array size (${n.value.length}).`);let o=n.value[Number(i.value)],s=typeof o;if(t==="array"&&!Array.isArray(o)||t!=="array"&&s!==t||s==="object"&&o===null)throw s==="object"&&(Array.isArray(o)?s="Array":o===null?s="Null":s="Dict"),new Error(`Incorrect value type: expected ${Nn(r)}, got ${Nn(s)}.`);if(t==="number"&&r==="integer"){An(e,o);try{o=rn(o)}catch{throw new Error("Cannot convert value to integer.")}}return t==="string"&&r==="color"&&(o=po(o)),{type:r,value:o}}}function bo(t,r){return(e,n,i,o)=>{try{return t(e,n,i)}catch{let a=o.value;return r==="color"&&(a=po(a)),{type:r,value:a}}}}const Ss=Li("string","string"),Vs=Li("number","number"),Is=Li("number","integer"),Ds=Li("boolean","boolean"),Ts=Li("string","color"),Fs=Li("string","url"),Ll=Li("array","array"),Rl=Li("object","dict"),Ef=bo(Ss,"string"),jf=bo(Vs,"number"),Cf=bo(Is,"integer"),Sf=bo(Ds,"boolean"),Ms=bo(Ts,"color"),Ps=bo(Fs,"url");function H0(t,r,e){try{return Ll(t,r,e)}catch{return{type:$t,value:[]}}}function W0(t,r,e){try{return Rl(t,r,e)}catch{return{type:xt,value:{}}}}function U0(t,r){return{type:ce,value:rn(r.value.length)}}function G0(t,r){return{type:zr,value:r.value.length===0?1:0}}function Y0(){I("getArrayString",[$t,ce],Ss),I("getStringFromArray",[$t,ce],Ss),I("getArrayNumber",[$t,ce],Vs),I("getNumberFromArray",[$t,ce],Vs),I("getArrayInteger",[$t,ce],Is),I("getIntegerFromArray",[$t,ce],Is),I("getArrayBoolean",[$t,ce],Ds),I("getBooleanFromArray",[$t,ce],Ds),I("getArrayColor",[$t,ce],Ts),I("getColorFromArray",[$t,ce],Ts),I("getArrayUrl",[$t,ce],Fs),I("getUrlFromArray",[$t,ce],Fs),I("getArrayFromArray",[$t,ce],Ll),I("getDictFromArray",[$t,ce],Rl),I("getArrayOptString",[$t,ce,pe],Ef),I("getOptStringFromArray",[$t,ce,pe],Ef),I("getArrayOptNumber",[$t,ce,We],jf),I("getOptNumberFromArray",[$t,ce,We],jf),I("getArrayOptInteger",[$t,ce,ce],Cf),I("getOptIntegerFromArray",[$t,ce,ce],Cf),I("getArrayOptBoolean",[$t,ce,zr],Sf),I("getOptBooleanFromArray",[$t,ce,zr],Sf),I("getArrayOptColor",[$t,ce,xr],Ms),I("getOptColorFromArray",[$t,ce,xr],Ms),I("getArrayOptColor",[$t,ce,pe],Ms),I("getOptColorFromArray",[$t,ce,pe],Ms),I("getArrayOptUrl",[$t,ce,Rn],Ps),I("getOptUrlFromArray",[$t,ce,Rn],Ps),I("getArrayOptUrl",[$t,ce,pe],Ps),I("getOptUrlFromArray",[$t,ce,pe],Ps),I("getOptArrayFromArray",[$t,ce],H0),I("getOptDictFromArray",[$t,ce],W0),I("len",[$t],U0),Ur("getString",[$t,ce],Ss),Ur("getInteger",[$t,ce],Is),Ur("getNumber",[$t,ce],Vs),Ur("getBoolean",[$t,ce],Ds),Ur("getUrl",[$t,ce],Fs),Ur("getColor",[$t,ce],Ts),Ur("getArray",[$t,ce],Ll),Ur("getDict",[$t,ce],Rl),Ur("isEmpty",[$t],G0)}function bi(t){return(r,e,n)=>{if(!r.store){if(!n)throw new Error("Missing value.");return{type:t,value:n.value}}let i;t==="boolean"?i="boolean":t==="number"||t==="integer"?i="number":i="string";let o;if(r.store.get?o=r.store.get(e.value,t):r.store.getValue&&(o=r.store.getValue(e.value,i)),o===void 0){if(!n)throw new Error("Missing value.");return{type:t,value:n.value}}return qu(r,o,t)}}function J0(){I("getStoredIntegerValue",[pe,ce],bi(ce)),I("getStoredNumberValue",[pe,We],bi(We)),I("getStoredStringValue",[pe,pe],bi(pe)),I("getStoredUrlValue",[pe,Rn],bi(Rn)),I("getStoredUrlValue",[pe,pe],bi(Rn)),I("getStoredColorValue",[pe,xr],bi(xr)),I("getStoredColorValue",[pe,pe],bi(xr)),I("getStoredBooleanValue",[pe,zr],bi(zr)),I("getStoredArrayValue",[pe],bi($t)),I("getStoredDictValue",[pe],bi(xt))}function q0(){return{type:We,value:Math.PI}}function K0(t,r){return{type:We,value:r.value/180*Math.PI}}function X0(t,r){return{type:We,value:r.value/Math.PI*180}}function Z0(t,r){return{type:We,value:Math.sin(r.value)}}function Q0(t,r){return{type:We,value:Math.cos(r.value)}}function x0(t,r){return{type:We,value:Math.tan(r.value)}}function $0(t,r){return{type:We,value:Math.atan(r.value)}}function e1(t,r){if(r.value>1||r.value<-1)throw new Error("Arcsine is undefined for the given value.");return{type:We,value:Math.asin(r.value)}}function t1(t,r){if(r.value>1||r.value<-1)throw new Error("Arccosine is undefined for the given value.");return{type:We,value:Math.acos(r.value)}}function r1(){I("pi",[],q0),I("toRadians",[We],K0),I("toDegrees",[We],X0),I("sin",[We],Z0),I("cos",[We],Q0),I("tan",[We],x0),I("atan",[We],$0),I("asin",[We],e1),I("acos",[We],t1)}function n1(){tm(),Vm(),P0(),Um(),m0(),v0(),B0(),Y0(),J0(),r1()}n1();function i1(t,r){return{type:pe,value:r.value}}function o1(t,r){return{type:We,value:r.value}}function s1(t,r){return An(t,r.value),{type:ce,value:r.value}}function l1(t,r){return{type:zr,value:r.value?1:0}}function a1(t,r){const e=hs(pn(t,r.argument));switch(r.operator){case"!":if(e.type===zr)return{type:zr,value:e.value?0:1};Xr(`${r.operator}${Kr(e)}`,"A Boolean is expected after a unary not.");case"+":case"-":const n=r.operator==="+"?1:-1;if(e.type===ce){const i=e.value*rn(n);return An(t,i),{type:ce,value:i}}else{if(e.type===We)return{type:We,value:e.value*n};Xr(`${r.operator}${Kr(e)}`,`A Number is expected after a unary ${r.operator==="+"?"plus":"minus"}.`)}}}function c1(t,r){const e=hs(pn(t,r.test));if(e.type===zr)return e.value?pn(t,r.consequent):pn(t,r.alternate);Xr(`${Kr(e)} ? ${Kr(pn(t,r.consequent))} : ${Kr(pn(t,r.alternate))}`,"Ternary must be called with a Boolean value as a condition.")}function u1(t,r){try{return pn(t,r.test)}catch{return pn(t,r.alternate)}}function f1(t,r){let e="";if(r.quasis.length===2&&r.quasis[0].value===""&&r.quasis[1].value==="")return pn(t,r.expressions[0]);for(let n=0;n<r.expressions.length;++n)e+=r.quasis[n].value,e+=eo(pn(t,r.expressions[n]));return e+=r.quasis[r.quasis.length-1].value,{type:pe,value:e}}function d1(t,r){const e=hs(pn(t,r.left));if(e.type!==zr&&Xr(`${Kr(e)} ${r.operator} ...`,`'${r.operator}' must be called with boolean operands.`),r.operator==="||"&&e.value)return e;if(r.operator==="&&"&&!e.value)return{type:zr,value:0};const n=hs(pn(t,r.right));return n.type!==zr&&Xr(`${Kr(e)} ${r.operator} ${Kr(n)}`,`Operator '${r.operator}' cannot be applied to different types: Boolean and ${Nn(n.type)}.`),{type:zr,value:n.value}}function h1(t,r,e){let n;return r.type===gr&&e.type===gr?n=r.value.getTime()===e.value.getTime():n=r.value===e.value,t==="!="&&(n=!n),{type:zr,value:n?1:0}}function _1(t,r,e){(r.type!==We&&r.type!==ce&&r.type!==gr||e.type!==We&&e.type!==ce&&e.type!==gr)&&Xr(`${Kr(r)} ${t} ${Kr(e)}`,`Operator '${t}' cannot be applied to ${Nn(r.type)} type.`);let n;const i=r.type===gr?r.value.getTime():r.value,o=e.type===gr?e.value.getTime():e.value;return t===">"?n=i>o:t===">="?n=i>=o:t==="<"?n=i<o:n=i<=o,{type:zr,value:n?1:0}}function g1(t,r,e,n){if(e.type!==pe&&e.type!==We&&e.type!==ce&&Xr(`${Kr(e)} ${r} ${Kr(n)}`,`Operator '${r}' cannot be applied to ${Nn(e.type)} type.`),e.type===pe)return r==="-"&&Xr(`${Kr(e)} - ${Kr(n)}`,`Operator '${r}' cannot be applied to ${Nn(e.type)} type.`),{type:pe,value:e.value+n.value};let i=r==="+"?e.value+n.value:e.value-n.value;if(e.type===ce)try{i=to(t,i),An(t,i)}catch(o){Xr(`${Kr(e)} ${r} ${Kr(n)}`,o.message)}return{type:e.type,value:i}}function p1(t,r,e,n){e.type!==ce&&e.type!==We&&Xr(`${Kr(e)} ${r} ${Kr(n)}`,`Operator '${r}' cannot be applied to ${Nn(e.type)} type.`);let i;if(r==="*")i=e.value*n.value;else if(r==="/"||r==="%")Number(n.value)===0&&Xr(`${Kr(e)} ${r} ${Kr(n)}`,"Division by zero is not supported."),r==="/"?i=e.value/n.value:i=e.value%n.value;else throw new Error(`Unsupported operation ${r}`);if(e.type===ce)try{i=to(t,i),An(t,i)}catch(o){Xr(`${Kr(e)} ${r} ${Kr(n)}`,o.message)}return{type:e.type,value:i}}function m1(t,r){const e=r.operator;let n=pn(t,r.left),i=pn(t,r.right);if((n.type==="number"&&i.type==="integer"||n.type==="integer"&&i.type==="number")&&(n.type==="integer"?n=Vl(n):i.type==="integer"&&(i=Vl(i))),n.type!==i.type&&Xr(`${Kr(n)} ${r.operator} ${Kr(i)}`,`Operator '${e}' cannot be applied to different types: ${Nn(n.type)} and ${Nn(i.type)}.`),e==="=="||e==="!=")return h1(e,n,i);if(e===">"||e===">="||e==="<"||e==="<=")return _1(e,n,i);if(e==="+"||e==="-")return g1(t,e,n,i);if(e==="/"||e==="*"||e==="%")return p1(t,e,n,i);throw new Error(`Unsupported operation ${e}`)}function Ns(t){return t.map(Kr).join(", ")}function b1(t,r){const e=r.callee.name;let n,i=r.arguments.map(a=>pn(t,a));const o=e+":"+i.map(a=>a.type).join("#");let s;if(t.customFunctions&&(s=Tl(t.customFunctions,e,i)),!s||!("func"in s))if(Il.has(o))s={func:Il.get(o),conversions:0};else{const a=Tl(No,e,i);("func"in a||!s)&&(s=a)}if(s&&(("expected"in s||"type"in s&&s.type==="missing")&&y1(e,i,s),n=s.func,s.conversions&&(i=Ku(n,i))),!n)throw new Error("Function not found");try{return n.cb(t,...i)}catch(a){const l=`${e}(${Ns(i)})`;Xr(l,a.message)}}function y1(t,r,e){const n=r.map(l=>Nn(l.type)).join(", "),i=`${t}(${Ns(r)})`,o=No.get(t)||[],s=o[0],a=o.length>1;if(e.type==="few"&&r.length===0&&a)Xr(i,"Function requires non empty argument list.");else if(s&&(e.type==="many"||e.type==="few"||e.type==="mismatch"))if(a)Xr(i,`Function has no matching overload for given argument types: ${n}.`);else if(e.type==="many"||e.type==="few")s.args.some(l=>typeof l=="object"&&l.isVararg)?Xr(i,`At least ${s.args.length} argument(s) expected.`):Xr(i,`Exactly ${s.args.length} argument(s) expected.`);else{const l=s.args.map(c=>Nn(typeof c=="string"?c:c.type)).join(", ");Xr(i,`Invalid argument type: expected ${l}, got ${n}.`)}else Xr(i,`Unknown function name: ${t}.`)}function v1(t,r){const e=r.method.name;let n,i=[r.object,...r.arguments].map(s=>pn(t,s));const o=e+":"+i.map(s=>s.type).join("#");if(Dl.has(o))n=Dl.get(o);else{const s=Tl(gs,e,i);if("expected"in s||"type"in s&&s.type==="missing"){const a=i.slice(1).map(c=>Nn(c.type)).join(", "),l=`${e}(${Ns(i.slice(1))})`;s.type==="few"&&i.length===1?Xr(l,"Method requires non empty argument list."):s.type==="many"?Xr(l,`Method has no matching overload for given argument types: ${a}.`):s.type==="few"||s.type==="mismatch"?Xr(l,`Method has no matching overload for given argument types: ${a}.`):Xr(l,`Unknown method name: ${e}.`)}n=s.func,s.conversions&&(i=Ku(n,i))}if(!n)throw new Error("Method not found");try{return n.cb(t,...i)}catch(s){const a=`${e}(${Ns(i.slice(1))})`;Xr(a,s.message)}}function w1(t,r){const e=r.id.name,n=t.variables.get(e);if(n)return Fg(n);throw new Error(`Variable '${e}' is missing.`)}const Vf={StringLiteral:i1,NumberLiteral:o1,IntegerLiteral:s1,BooleanLiteral:l1,UnaryExpression:a1,ConditionalExpression:c1,TryExpression:u1,TemplateLiteral:f1,LogicalExpression:d1,BinaryExpression:m1,CallExpression:b1,MethodExpression:v1,Variable:w1};function pn(t,r){if(r.type in Vf)return Vf[r.type](t,r);throw new Error("Unsupported expression")}function Os(t,r,e,n,i){try{const o={variables:t,customFunctions:r,warnings:[],store:e,weekStartDay:(i==null?void 0:i.weekStartDay)||0};return{result:pn(o,n),warnings:o.warnings}}catch(o){return{result:{type:"error",value:o.message},warnings:[]}}}function k1(t,r){return r&&r[3]&&r[7]?{type:"ConditionalExpression",test:t,consequent:r[3],alternate:r[7]}:t}function A1(t,r){return r&&r[3]?{type:"TryExpression",test:t,alternate:r[3]}:t}function zs(t,r){return r.length?r.reduce((e,n)=>({type:"BinaryExpression",operator:n[1],left:e,right:n[3]}),t):t}function If(t,r){return r.length?r.reduce((e,n)=>({type:"LogicalExpression",operator:n[1],left:e,right:n[3]}),t):t}function E1(t,r){return r.length?r.reduce((e,n)=>{if(!n[5])throw new Error("Method expected after .");return{type:"MethodExpression",object:e,method:n[3],arguments:n[5][2]}},t):t}function j1(t){return t==="true"||t==="false"?{type:"BooleanLiteral",value:t==="true"}:{type:"Variable",id:{type:"Identifier",name:t}}}function Df(t){if(t.every(e=>typeof e=="string"))return{type:"StringLiteral",value:t.join("")};let r=t.reduce((e,n)=>(typeof n=="string"&&typeof e[e.length-1]=="string"?e[e.length-1]+=n:e.push(n),e),[]).reduce((e,n)=>(typeof n=="string"?e.quasis.push({type:"StringLiteral",value:n}):(e.quasis.length===e.expressions.length&&e.quasis.push({type:"StringLiteral",value:""}),e.expressions.push(n)),e),{type:"TemplateLiteral",quasis:[],expressions:[]});return r.quasis.length===r.expressions.length&&r.quasis.push({type:"StringLiteral",value:""}),r}function C1(t){try{return rn(t)}catch{throw new Error(`Value ${t} can't be converted to Integer type.`)}}function Tf(t){if(t==="'"||t==="\\")return t;throw new Error("Incorrect string escape")}function S1(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function yo(t,r,e,n){var i=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(i,yo.prototype),i.expected=r,i.found=e,i.location=n,i.name="SyntaxError",i}S1(yo,Error);function Bl(t,r,e){return e=e||" ",t.length>r?t:(r-=t.length,e+=e.repeat(r),t+e.slice(0,r))}yo.prototype.format=function(t){var r="Error: "+this.message;if(this.location){var e=null,n;for(n=0;n<t.length;n++)if(t[n].source===this.location.source){e=t[n].text.split(/\r\n|\n|\r/g);break}var i=this.location.start,o=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(i):i,s=this.location.source+":"+o.line+":"+o.column;if(e){var a=this.location.end,l=Bl("",o.line.toString().length," "),c=e[i.line-1],u=i.line===a.line?a.column:c.length+1,f=u-i.column||1;r+=`
|
|
10
10
|
--> `+s+`
|
|
11
|
-
`+
|
|
11
|
+
`+l+` |
|
|
12
12
|
`+o.line+" | "+c+`
|
|
13
|
-
`+
|
|
14
|
-
at `+s}return r},
|
|
15
|
-
`],!1,!1),Et=function(g){return g},Re=function(g){return bf(g)},mt=function(g){return g},Ne=function(){return""},ot=function(){return xr()},vt=function(){throw new Error("Error tokenizing '"+e+"'.")},De=function(){throw new Error("Error tokenizing '"+e+"'.")},ct=function(g){return g},Yt=function(g){return yf(g)},sr=function(){throw new Error("Error tokenizing '"+e+"'.")},dr=function(g,k){return n1(g,k)},Wt=function(g,k){return i1(g,k)},ut=function(g,k){return mf(g,k)},St=function(g,k){return mf(g,k)},Ft=function(g,k){return Is(g,k)},er=function(g,k){return Is(g,k)},ir=function(g,k){return Is(g,k)},wr=function(g,k){return Is(g,k)},Pr=function(g){return g},Jr=function(g){return g},Je=function(g,k){return{type:"UnaryExpression",operator:g,argument:k}},cr=function(){throw new Error("Incorrect unary operator")},ke=function(g,k){return o1(g,k)},q=function(g,k){return{type:"CallExpression",callee:g,arguments:k}},kr=function(g,k){return[g,...k]},Ar=function(g){return g},zt=function(g){return g},Zr=function(g){return bf(g)},Se=function(g){return g},Ot=function(){return""},ur=function(){return xr()},Xe=function(){throw new Error("Error tokenizing '"+e+"'.")},It=function(){throw new Error("Error tokenizing '"+e+"'.")},ze=function(g){return g},ht=function(g){return yf(g)},st=function(){throw new Error("Error tokenizing '"+e+"'.")},jt=function(){return{type:"IntegerLiteral",value:l1(xr())}},Jt=function(){return{type:"NumberLiteral",value:parseFloat(xr())}},I=function(){return{type:"NumberLiteral",value:parseFloat(xr())}},rt=function(){const g=xr();if(/\.\./.test(g)||/\.$/.test(g))throw new Error("Unexpected token: .");return s1(g)},de=function(){return{type:"Identifier",name:xr()}},d=0,Me=0,kt=[{line:1,column:1}],Fr=0,lr=[],z=0,Er;if("startRule"in r){if(!(r.startRule in i))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');o=i[r.startRule]}function xr(){return e.substring(Me,d)}function b(g,k){return{type:"literal",text:g,ignoreCase:k}}function A(g,k,T){return{type:"class",parts:g,inverted:k,ignoreCase:T}}function K(){return{type:"any"}}function oe(){return{type:"end"}}function se(g){return{type:"other",description:g}}function Ce(g){var k=kt[g],T;if(k)return k;for(T=g-1;!kt[T];)T--;for(k=kt[T],k={line:k.line,column:k.column};T<g;)e.charCodeAt(T)===10?(k.line++,k.column=1):k.column++,T++;return kt[g]=k,k}function bt(g,k,T){var j=Ce(g),x=Ce(k),J={source:n,start:{offset:g,line:j.line,column:j.column},end:{offset:k,line:x.line,column:x.column}};return J}function P(g){d<Fr||(d>Fr&&(Fr=d,lr=[]),lr.push(g))}function Ye(g,k,T){return new _o(_o.buildMessage(g,k),g,k,T)}function Rt(){var g,k;return g=d,ft(),k=or(),k!==t?(ft(),Me=g,g=Et(k)):(d=g,g=t),g}function Tt(){var g,k,T;for(g=d,k=[],T=Lt();T!==t;)k.push(T),T=Lt();return Me=g,k=Re(k),g=k,g}function Lt(){var g,k,T,j,x;if(g=d,e.substr(d,2)===s?(k=s,d+=2):(k=t,z===0&&P(Z)),k!==t?(T=ft(),j=or(),j!==t?(ft(),e.charCodeAt(d)===125?(x=l,d++):(x=t,z===0&&P(Ae)),x!==t?(Me=g,g=mt(j)):(d=g,g=t)):(d=g,g=t)):(d=g,g=t),g===t&&(g=d,e.substr(d,3)===a?(k=a,d+=3):(k=t,z===0&&P(ge)),k!==t&&(Me=g,k=Ne()),g=k,g===t&&(g=d,k=d,z++,e.charCodeAt(d)===92?(T=c,d++):(T=t,z===0&&P(et)),T===t&&(e.substr(d,2)===s?(T=s,d+=2):(T=t,z===0&&P(Z))),z--,T===t?k=void 0:(d=k,k=t),k!==t?(e.length>d?(T=e.charAt(d),d++):(T=t,z===0&&P(G)),T!==t?(Me=g,g=ot()):(d=g,g=t)):(d=g,g=t),g===t))){if(g=d,e.substr(d,2)===s?(k=s,d+=2):(k=t,z===0&&P(Z)),k!==t){if(T=[],_t.test(e.charAt(d))?(j=e.charAt(d),d++):(j=t,z===0&&P(Ee)),j!==t)for(;j!==t;)T.push(j),_t.test(e.charAt(d))?(j=e.charAt(d),d++):(j=t,z===0&&P(Ee));else T=t;T!==t?(e.charCodeAt(d)===125?(j=l,d++):(j=t,z===0&&P(Ae)),j!==t?(Me=g,g=vt()):(d=g,g=t)):(d=g,g=t)}else d=g,g=t;g===t&&(g=d,e.substr(d,2)===s?(k=s,d+=2):(k=t,z===0&&P(Z)),k!==t&&(Me=g,k=De()),g=k,g===t&&(g=d,e.charCodeAt(d)===92?(k=c,d++):(k=t,z===0&&P(et)),k!==t?(e.substr(d,2)===s?(T=s,d+=2):(T=t,z===0&&P(Z)),T!==t?(Me=g,g=ct(T)):(d=g,g=t)):(d=g,g=t),g===t&&(g=d,e.charCodeAt(d)===92?(k=c,d++):(k=t,z===0&&P(et)),k!==t?(e.length>d?(T=e.charAt(d),d++):(T=t,z===0&&P(G)),T!==t?(Me=g,g=Yt(T)):(d=g,g=t)):(d=g,g=t),g===t&&(g=d,e.charCodeAt(d)===92?(k=c,d++):(k=t,z===0&&P(et)),k!==t&&(Me=g,k=sr()),g=k))))}return g}function or(){var g,k,T,j,x,J,xe,nt,Sr,_r,jr;return g=d,k=sn(),k!==t?(T=d,j=ft(),e.charCodeAt(d)===63?(x=u,d++):(x=t,z===0&&P(Ue)),x!==t?(J=ft(),xe=or(),xe!==t?(nt=ft(),e.charCodeAt(d)===58?(Sr=f,d++):(Sr=t,z===0&&P(ne)),Sr!==t?(_r=ft(),jr=or(),jr!==t?(j=[j,x,J,xe,nt,Sr,_r,jr],T=j):(d=T,T=t)):(d=T,T=t)):(d=T,T=t)):(d=T,T=t),T===t&&(T=null),Me=g,g=dr(k,T)):(d=g,g=t),g}function sn(){var g,k,T,j,x,J,xe;return g=d,k=Nr(),k!==t?(T=d,j=ft(),e.substr(d,2)===_?(x=_,d+=2):(x=t,z===0&&P(it)),x!==t?(J=ft(),xe=or(),xe!==t?(j=[j,x,J,xe],T=j):(d=T,T=t)):(d=T,T=t),T===t&&(T=null),Me=g,g=Wt(k,T)):(d=g,g=t),g}function Nr(){var g,k,T,j,x,J,xe,nt;if(g=d,k=dn(),k!==t){for(T=[],j=d,x=ft(),e.substr(d,2)===m?(J=m,d+=2):(J=t,z===0&&P(je)),J!==t?(xe=ft(),nt=dn(),nt!==t?(x=[x,J,xe,nt],j=x):(d=j,j=t)):(d=j,j=t);j!==t;)T.push(j),j=d,x=ft(),e.substr(d,2)===m?(J=m,d+=2):(J=t,z===0&&P(je)),J!==t?(xe=ft(),nt=dn(),nt!==t?(x=[x,J,xe,nt],j=x):(d=j,j=t)):(d=j,j=t);Me=g,g=ut(k,T)}else d=g,g=t;return g}function dn(){var g,k,T,j,x,J,xe,nt;if(g=d,k=$r(),k!==t){for(T=[],j=d,x=ft(),e.substr(d,2)===y?(J=y,d+=2):(J=t,z===0&&P(Ve)),J!==t?(xe=ft(),nt=$r(),nt!==t?(x=[x,J,xe,nt],j=x):(d=j,j=t)):(d=j,j=t);j!==t;)T.push(j),j=d,x=ft(),e.substr(d,2)===y?(J=y,d+=2):(J=t,z===0&&P(Ve)),J!==t?(xe=ft(),nt=$r(),nt!==t?(x=[x,J,xe,nt],j=x):(d=j,j=t)):(d=j,j=t);Me=g,g=St(k,T)}else d=g,g=t;return g}function $r(){var g,k,T,j,x,J,xe,nt;if(g=d,k=Gn(),k!==t){for(T=[],j=d,x=ft(),e.substr(d,2)===h?(J=h,d+=2):(J=t,z===0&&P(yt)),J===t&&(e.substr(d,2)===w?(J=w,d+=2):(J=t,z===0&&P(Vt))),J!==t?(xe=ft(),nt=Gn(),nt!==t?(x=[x,J,xe,nt],j=x):(d=j,j=t)):(d=j,j=t);j!==t;)T.push(j),j=d,x=ft(),e.substr(d,2)===h?(J=h,d+=2):(J=t,z===0&&P(yt)),J===t&&(e.substr(d,2)===w?(J=w,d+=2):(J=t,z===0&&P(Vt))),J!==t?(xe=ft(),nt=Gn(),nt!==t?(x=[x,J,xe,nt],j=x):(d=j,j=t)):(d=j,j=t);Me=g,g=Ft(k,T)}else d=g,g=t;return g}function Gn(){var g,k,T,j,x,J,xe,nt;if(g=d,k=vn(),k!==t){for(T=[],j=d,x=ft(),e.substr(d,2)===v?(J=v,d+=2):(J=t,z===0&&P(ee)),J===t&&(e.charCodeAt(d)===62?(J=R,d++):(J=t,z===0&&P(tt)),J===t&&(e.substr(d,2)===N?(J=N,d+=2):(J=t,z===0&&P(lt)),J===t&&(e.charCodeAt(d)===60?(J=V,d++):(J=t,z===0&&P(dt))))),J!==t?(xe=ft(),nt=vn(),nt!==t?(x=[x,J,xe,nt],j=x):(d=j,j=t)):(d=j,j=t);j!==t;)T.push(j),j=d,x=ft(),e.substr(d,2)===v?(J=v,d+=2):(J=t,z===0&&P(ee)),J===t&&(e.charCodeAt(d)===62?(J=R,d++):(J=t,z===0&&P(tt)),J===t&&(e.substr(d,2)===N?(J=N,d+=2):(J=t,z===0&&P(lt)),J===t&&(e.charCodeAt(d)===60?(J=V,d++):(J=t,z===0&&P(dt))))),J!==t?(xe=ft(),nt=vn(),nt!==t?(x=[x,J,xe,nt],j=x):(d=j,j=t)):(d=j,j=t);Me=g,g=er(k,T)}else d=g,g=t;return g}function vn(){var g,k,T,j,x,J,xe,nt;if(g=d,k=en(),k!==t){for(T=[],j=d,x=ft(),e.charCodeAt(d)===43?(J=D,d++):(J=t,z===0&&P(Ge)),J===t&&(e.charCodeAt(d)===45?(J=te,d++):(J=t,z===0&&P(E))),J!==t?(xe=ft(),nt=en(),nt!==t?(x=[x,J,xe,nt],j=x):(d=j,j=t)):(d=j,j=t);j!==t;)T.push(j),j=d,x=ft(),e.charCodeAt(d)===43?(J=D,d++):(J=t,z===0&&P(Ge)),J===t&&(e.charCodeAt(d)===45?(J=te,d++):(J=t,z===0&&P(E))),J!==t?(xe=ft(),nt=en(),nt!==t?(x=[x,J,xe,nt],j=x):(d=j,j=t)):(d=j,j=t);Me=g,g=ir(k,T)}else d=g,g=t;return g}function en(){var g,k,T,j,x,J,xe,nt;if(g=d,k=_n(),k!==t){for(T=[],j=d,x=ft(),e.charCodeAt(d)===47?(J=F,d++):(J=t,z===0&&P($e)),J===t&&(e.charCodeAt(d)===42?(J=Y,d++):(J=t,z===0&&P(le)),J===t&&(e.charCodeAt(d)===37?(J=X,d++):(J=t,z===0&&P(Ke)))),J!==t?(xe=ft(),nt=_n(),nt!==t?(x=[x,J,xe,nt],j=x):(d=j,j=t)):(d=j,j=t);j!==t;)T.push(j),j=d,x=ft(),e.charCodeAt(d)===47?(J=F,d++):(J=t,z===0&&P($e)),J===t&&(e.charCodeAt(d)===42?(J=Y,d++):(J=t,z===0&&P(le)),J===t&&(e.charCodeAt(d)===37?(J=X,d++):(J=t,z===0&&P(Ke)))),J!==t?(xe=ft(),nt=_n(),nt!==t?(x=[x,J,xe,nt],j=x):(d=j,j=t)):(d=j,j=t);Me=g,g=wr(k,T)}else d=g,g=t;return g}function _n(){var g,k,T,j;return g=d,k=d,z++,e.charCodeAt(d)===45?(T=te,d++):(T=t,z===0&&P(E)),z--,T!==t?(d=k,k=void 0):k=t,k!==t?(T=Qi(),T!==t?(Me=g,g=Pr(T)):(d=g,g=t)):(d=g,g=t),g===t&&(g=d,k=d,z++,e.charCodeAt(d)===45?(T=te,d++):(T=t,z===0&&P(E)),z--,T!==t?(d=k,k=void 0):k=t,k!==t?(T=ri(),T!==t?(Me=g,g=Jr(T)):(d=g,g=t)):(d=g,g=t),g===t&&(g=d,e.charCodeAt(d)===33?(k=H,d++):(k=t,z===0&&P(wt)),k===t&&(e.charCodeAt(d)===43?(k=D,d++):(k=t,z===0&&P(Ge)),k===t&&(e.charCodeAt(d)===45?(k=te,d++):(k=t,z===0&&P(E)))),k!==t?(T=ft(),j=Yn(),j===t&&(j=ei()),j!==t?(Me=g,g=Je(k,j)):(d=g,g=t)):(d=g,g=t),g===t&&(g=ei()))),g}function Yn(){var g,k;return g=d,e.charCodeAt(d)===43?(k=D,d++):(k=t,z===0&&P(Ge)),k===t&&(e.charCodeAt(d)===45?(k=te,d++):(k=t,z===0&&P(E))),k!==t&&(Me=g,k=cr()),g=k,g}function ei(){var g,k,T,j,x,J,xe,nt,Sr,_r,jr,hi,ue,Qt,hr;if(g=d,k=En(),k!==t){for(T=[],j=d,x=ft(),e.charCodeAt(d)===46?(J=W,d++):(J=t,z===0&&P(fe)),J!==t?(xe=ft(),nt=zn(),nt!==t?(Sr=ft(),_r=d,e.charCodeAt(d)===40?(jr=U,d++):(jr=t,z===0&&P(me)),jr!==t?(hi=ft(),ue=Jn(),ue!==t?(Qt=ft(),e.charCodeAt(d)===41?(hr=he,d++):(hr=t,z===0&&P(at)),hr!==t?(jr=[jr,hi,ue,Qt,hr],_r=jr):(d=_r,_r=t)):(d=_r,_r=t)):(d=_r,_r=t),_r===t&&(_r=null),x=[x,J,xe,nt,Sr,_r],j=x):(d=j,j=t)):(d=j,j=t);j!==t;)T.push(j),j=d,x=ft(),e.charCodeAt(d)===46?(J=W,d++):(J=t,z===0&&P(fe)),J!==t?(xe=ft(),nt=zn(),nt!==t?(Sr=ft(),_r=d,e.charCodeAt(d)===40?(jr=U,d++):(jr=t,z===0&&P(me)),jr!==t?(hi=ft(),ue=Jn(),ue!==t?(Qt=ft(),e.charCodeAt(d)===41?(hr=he,d++):(hr=t,z===0&&P(at)),hr!==t?(jr=[jr,hi,ue,Qt,hr],_r=jr):(d=_r,_r=t)):(d=_r,_r=t)):(d=_r,_r=t),_r===t&&(_r=null),x=[x,J,xe,nt,Sr,_r],j=x):(d=j,j=t)):(d=j,j=t);Me=g,g=ke(k,T)}else d=g,g=t;return g}function En(){var g,k,T,j,x;return g=d,k=zn(),k!==t?(ft(),e.charCodeAt(d)===40?(T=U,d++):(T=t,z===0&&P(me)),T!==t?(ft(),j=Jn(),j!==t?(ft(),e.charCodeAt(d)===41?(x=he,d++):(x=t,z===0&&P(at)),x!==t?(Me=g,g=q(k,j)):(d=g,g=t)):(d=g,g=t)):(d=g,g=t)):(d=g,g=t),g===t&&(g=ti()),g}function Jn(){var g,k,T,j,x,J;if(g=d,k=or(),k!==t){for(T=[],j=d,ft(),e.charCodeAt(d)===44?(x=Ie,d++):(x=t,z===0&&P(Ze)),x!==t?(ft(),J=or(),J!==t?j=J:(d=j,j=t)):(d=j,j=t);j!==t;)T.push(j),j=d,ft(),e.charCodeAt(d)===44?(x=Ie,d++):(x=t,z===0&&P(Ze)),x!==t?(ft(),J=or(),J!==t?j=J:(d=j,j=t)):(d=j,j=t);Me=g,g=kr(k,T)}else d=g,g=t;return g===t&&(g=ft()),g}function ti(){var g,k,T,j;return g=_i(),g===t&&(g=cn(),g===t&&(g=Qi(),g===t&&(g=ri(),g===t&&(g=d,e.charCodeAt(d)===40?(k=U,d++):(k=t,z===0&&P(me)),k!==t?(ft(),T=or(),T!==t?(ft(),e.charCodeAt(d)===41?(j=he,d++):(j=t,z===0&&P(at)),j!==t?(Me=g,g=Ar(T)):(d=g,g=t)):(d=g,g=t)):(d=g,g=t))))),g}function cn(){var g,k,T,j;return z++,g=d,e.charCodeAt(d)===39?(k=Te,d++):(k=t,z===0&&P(Mt)),k!==t?(T=Pi(),e.charCodeAt(d)===39?(j=Te,d++):(j=t,z===0&&P(Mt)),j!==t?(Me=g,g=zt(T)):(d=g,g=t)):(d=g,g=t),z--,g===t&&(k=t,z===0&&P($t)),g}function Pi(){var g,k,T;for(g=d,k=[],T=Ni();T!==t;)k.push(T),T=Ni();return Me=g,k=Zr(k),g=k,g}function Ni(){var g,k,T,j,x;if(g=d,e.substr(d,2)===s?(k=s,d+=2):(k=t,z===0&&P(Z)),k!==t?(T=ft(),j=or(),j!==t?(ft(),e.charCodeAt(d)===125?(x=l,d++):(x=t,z===0&&P(Ae)),x!==t?(Me=g,g=Se(j)):(d=g,g=t)):(d=g,g=t)):(d=g,g=t),g===t&&(g=d,e.substr(d,3)===a?(k=a,d+=3):(k=t,z===0&&P(ge)),k!==t&&(Me=g,k=Ot()),g=k,g===t&&(g=d,k=d,z++,e.charCodeAt(d)===92?(T=c,d++):(T=t,z===0&&P(et)),T===t&&(e.charCodeAt(d)===39?(T=Te,d++):(T=t,z===0&&P(Mt)),T===t&&(e.substr(d,2)===s?(T=s,d+=2):(T=t,z===0&&P(Z)))),z--,T===t?k=void 0:(d=k,k=t),k!==t?(e.length>d?(T=e.charAt(d),d++):(T=t,z===0&&P(G)),T!==t?(Me=g,g=ur()):(d=g,g=t)):(d=g,g=t),g===t))){if(g=d,e.substr(d,2)===s?(k=s,d+=2):(k=t,z===0&&P(Z)),k!==t){if(T=[],We.test(e.charAt(d))?(j=e.charAt(d),d++):(j=t,z===0&&P(qt)),j!==t)for(;j!==t;)T.push(j),We.test(e.charAt(d))?(j=e.charAt(d),d++):(j=t,z===0&&P(qt));else T=t;T!==t?(e.charCodeAt(d)===125?(j=l,d++):(j=t,z===0&&P(Ae)),j!==t?(Me=g,g=Xe()):(d=g,g=t)):(d=g,g=t)}else d=g,g=t;g===t&&(g=d,e.substr(d,2)===s?(k=s,d+=2):(k=t,z===0&&P(Z)),k!==t&&(Me=g,k=It()),g=k,g===t&&(g=d,e.charCodeAt(d)===92?(k=c,d++):(k=t,z===0&&P(et)),k!==t?(e.substr(d,2)===s?(T=s,d+=2):(T=t,z===0&&P(Z)),T!==t?(Me=g,g=ze(T)):(d=g,g=t)):(d=g,g=t),g===t&&(g=d,e.charCodeAt(d)===92?(k=c,d++):(k=t,z===0&&P(et)),k!==t?(e.length>d?(T=e.charAt(d),d++):(T=t,z===0&&P(G)),T!==t?(Me=g,g=ht(T)):(d=g,g=t)):(d=g,g=t),g===t&&(g=d,e.charCodeAt(d)===92?(k=c,d++):(k=t,z===0&&P(et)),k!==t&&(Me=g,k=st()),g=k))))}return g}function ri(){var g,k,T;if(z++,g=d,e.charCodeAt(d)===45?d++:z===0&&P(E),k=[],Oe.test(e.charAt(d))?(T=e.charAt(d),d++):(T=t,z===0&&P(pt)),T!==t)for(;T!==t;)k.push(T),Oe.test(e.charAt(d))?(T=e.charAt(d),d++):(T=t,z===0&&P(pt));else k=t;return k!==t?(Me=g,g=jt()):(d=g,g=t),z--,g===t&&z===0&&P(Pe),g}function Qi(){var g,k,T,j,x,J,xe,nt,Sr;for(z++,g=d,e.charCodeAt(d)===45?d++:z===0&&P(E),k=[],Oe.test(e.charAt(d))?(T=e.charAt(d),d++):(T=t,z===0&&P(pt));T!==t;)k.push(T),Oe.test(e.charAt(d))?(T=e.charAt(d),d++):(T=t,z===0&&P(pt));if(e.charCodeAt(d)===46?(T=W,d++):(T=t,z===0&&P(fe)),T!==t){if(j=[],Oe.test(e.charAt(d))?(x=e.charAt(d),d++):(x=t,z===0&&P(pt)),x!==t)for(;x!==t;)j.push(x),Oe.test(e.charAt(d))?(x=e.charAt(d),d++):(x=t,z===0&&P(pt));else j=t;if(j!==t){if(x=d,e.charCodeAt(d)===101?(J=_e,d++):(J=t,z===0&&P(Ht)),J===t&&(e.charCodeAt(d)===69?(J=be,d++):(J=t,z===0&&P(Gt))),J!==t){if(e.charCodeAt(d)===43?(xe=D,d++):(xe=t,z===0&&P(Ge)),xe===t&&(e.charCodeAt(d)===45?(xe=te,d++):(xe=t,z===0&&P(E))),xe===t&&(xe=null),nt=[],Oe.test(e.charAt(d))?(Sr=e.charAt(d),d++):(Sr=t,z===0&&P(pt)),Sr!==t)for(;Sr!==t;)nt.push(Sr),Oe.test(e.charAt(d))?(Sr=e.charAt(d),d++):(Sr=t,z===0&&P(pt));else nt=t;nt!==t?(J=[J,xe,nt],x=J):(d=x,x=t)}else d=x,x=t;x===t&&(x=null),Me=g,g=Jt()}else d=g,g=t}else d=g,g=t;if(g===t){if(g=d,e.charCodeAt(d)===45?d++:z===0&&P(E),k=[],Oe.test(e.charAt(d))?(T=e.charAt(d),d++):(T=t,z===0&&P(pt)),T!==t)for(;T!==t;)k.push(T),Oe.test(e.charAt(d))?(T=e.charAt(d),d++):(T=t,z===0&&P(pt));else k=t;if(k!==t)if(e.charCodeAt(d)===101?(T=_e,d++):(T=t,z===0&&P(Ht)),T===t&&(e.charCodeAt(d)===69?(T=be,d++):(T=t,z===0&&P(Gt))),T!==t){if(e.charCodeAt(d)===43?(j=D,d++):(j=t,z===0&&P(Ge)),j===t&&(e.charCodeAt(d)===45?(j=te,d++):(j=t,z===0&&P(E))),j===t&&(j=null),x=[],Oe.test(e.charAt(d))?(J=e.charAt(d),d++):(J=t,z===0&&P(pt)),J!==t)for(;J!==t;)x.push(J),Oe.test(e.charAt(d))?(J=e.charAt(d),d++):(J=t,z===0&&P(pt));else x=t;x!==t?(Me=g,g=I()):(d=g,g=t)}else d=g,g=t;else d=g,g=t}return z--,g===t&&z===0&&P(Ut),g}function _i(){var g,k,T,j,x,J,xe,nt,Sr,_r,jr;if(g=d,Fe.test(e.charAt(d))?(k=e.charAt(d),d++):(k=t,z===0&&P(L)),k!==t){if(T=[],j=[],qe.test(e.charAt(d))?(x=e.charAt(d),d++):(x=t,z===0&&P(ae)),x!==t)for(;x!==t;)j.push(x),qe.test(e.charAt(d))?(x=e.charAt(d),d++):(x=t,z===0&&P(ae));else j=t;for(j===t&&(j=d,e.charCodeAt(d)===46?(x=W,d++):(x=t,z===0&&P(fe)),x!==t?(J=d,z++,xe=d,nt=ft(),Sr=zn(),Sr!==t?(_r=ft(),e.charCodeAt(d)===40?(jr=U,d++):(jr=t,z===0&&P(me)),jr!==t?(nt=[nt,Sr,_r,jr],xe=nt):(d=xe,xe=t)):(d=xe,xe=t),z--,xe===t?J=void 0:(d=J,J=t),J!==t?(x=[x,J],j=x):(d=j,j=t)):(d=j,j=t));j!==t;){if(T.push(j),j=[],qe.test(e.charAt(d))?(x=e.charAt(d),d++):(x=t,z===0&&P(ae)),x!==t)for(;x!==t;)j.push(x),qe.test(e.charAt(d))?(x=e.charAt(d),d++):(x=t,z===0&&P(ae));else j=t;j===t&&(j=d,e.charCodeAt(d)===46?(x=W,d++):(x=t,z===0&&P(fe)),x!==t?(J=d,z++,xe=d,nt=ft(),Sr=zn(),Sr!==t?(_r=ft(),e.charCodeAt(d)===40?(jr=U,d++):(jr=t,z===0&&P(me)),jr!==t?(nt=[nt,Sr,_r,jr],xe=nt):(d=xe,xe=t)):(d=xe,xe=t),z--,xe===t?J=void 0:(d=J,J=t),J!==t?(x=[x,J],j=x):(d=j,j=t)):(d=j,j=t))}Me=g,g=rt()}else d=g,g=t;return g}function zn(){var g,k,T,j;if(g=d,Fe.test(e.charAt(d))?(k=e.charAt(d),d++):(k=t,z===0&&P(L)),k!==t){for(T=[],qe.test(e.charAt(d))?(j=e.charAt(d),d++):(j=t,z===0&&P(ae));j!==t;)T.push(j),qe.test(e.charAt(d))?(j=e.charAt(d),d++):(j=t,z===0&&P(ae));Me=g,g=de()}else d=g,g=t;return g}function ft(){var g,k;for(z++,g=[],Qe.test(e.charAt(d))?(k=e.charAt(d),d++):(k=t,z===0&&P(ve));k!==t;)g.push(k),Qe.test(e.charAt(d))?(k=e.charAt(d),d++):(k=t,z===0&&P(ve));return z--,k=t,z===0&&P(ar),g}if(Er=o(),Er!==t&&d===e.length)return Er;throw Er!==t&&d<e.length&&P(oe()),Ye(lr,Fr<e.length?e.charAt(Fr):null,Fr<e.length?bt(Fr,Fr+1):bt(Fr,Fr))}const c1=128,ho=new Map;let wf;function vf(e){return ho.get(e)}function kf(e,r){e!==wf&&(ho.delete(e),ho.size>=c1&&ho.delete(ho.keys().next().value),ho.set(e,r),wf=e)}const Af=new Set(["string","integer","number","boolean","datetime","color","url","dict","array"]);function u1(e){if(!(typeof e.name=="string"&&e.name))throw new Error("Incorrect function name");if(!(typeof e.body=="string"&&e.body))throw new Error("Incorrect function body");if(!(e.return_type&&Af.has(e.return_type)))throw new Error("Incorrect function return_type");if(!Array.isArray(e.arguments))throw new Error("Incorrect function arguments");const r=new Set;e.arguments.forEach(t=>{if(!(typeof t.name=="string"&&t.name))throw new Error("Incorrect argument name");if(!(t.type&&Af.has(t.type)))throw new Error("Incorrect argument type");if(r.has(t.name))throw new Error("Duplicate argument name");r.add(t.name)})}function f1(e){let r;return{args:e.arguments.map(t=>({type:t.type})),cb(t,...n){r||(r=vf(e.body)||Ml(e.body,{startRule:"JsonStringContents"}),kf(e.body,r));const i=new Map;n.forEach((l,a)=>{const c=hl(e.arguments[a].name,l.type,l.value);i.set(c.getName(),c)});const o=Vs(i,t.customFunctions,t.store,r,{weekStartDay:t.weekStartDay});o.warnings.forEach(l=>{t.warnings.push(l)});const s=o.result;if(s.type==="error")throw new Error(s.value);if(s.type!==e.return_type)throw new Error("Incorrect function return_type");return s}}}function d1(e,r){if(!e)return r||void 0;if(!r)return;const t=new Map,n=new Set;for(const[i,o]of r){for(const s of o){const l=Ou(i,s);n.add(l)}t.set(i,o)}for(const[i,o]of e)for(const s of o){const l=Ou(i,s);if(!n.has(l)){n.add(l);const a=t.get(i)||[];a.push(s),t.set(i,a)}}return t}function _1(e){if(!e)return Q(new Error("Missing object"));const r=e.card,t=e.templates||{};if(!r)return Q(new Error("Missing card"));if(!r.states||!r.states.length)return Q(new Error("Missing states"));for(const n in t)if(t.hasOwnProperty(n)&&n in Vu)return Q(new Error("Template name collision"),{additional:{templateName:n}});for(let n=0;n<r.states.length;++n){if(!r.states[n].div)return Q(new Error("Missing state div"),{additional:{stateId:r.states[n].state_id}});if(typeof r.states[n].state_id!="number")return Q(new Error("Missing state_id"),{additional:{index:n}})}return null}function h1(e){return[...new Set(e)]}class jf{constructor(r){gr(this,"ast");this.ast=r}apply({variables:r,customFunctions:t,logError:n,store:i,weekStartDay:o,keepComplex:s}){try{const l=Vs(r,t,i,this.ast,{weekStartDay:o});l.warnings.forEach(n);const a=l.result;if(a.type==="error"){n(Q(new Error("Expression execution error"),{additional:{message:a.value}}));return}const c=a.value;if(c instanceof Date)return Mu(c);if(a.type==="boolean")return!!c;if(a.type==="color"){const u=bi(String(c));if(u)return Zi(u);n(Q(new Error("Expression execution error")))}if(a.type==="integer"){if(c>vp||c<kp){n(Q(new Error("Expression result is out of 32-bit int range")));return}return Number(c)}if(!s&&(a.type==="array"||a.type==="dict"))try{return JSON.stringify(c)}catch{return n(Q(new Error(`Failed to stringify ${a.type}`))),`<${a.type}>`}return c}catch{n(Q(new Error("Expression execution error")));return}}}function g1(e){return e.indexOf("@{")>-1||e.indexOf("\\")>-1}function Pl(e,r,t){if(e)if(typeof e=="string"){if(g1(e)){r.hasExpression=!0;try{const n=vf(e)||Ml(e,{startRule:"JsonStringContents"});kf(e,n);const i=Pu(n);return r.vars.push(...i),new jf(n)}catch{t(Q(new Error("Unable to parse expression"),{additional:{expression:e}}));return}}}else{if(Array.isArray(e))return e.map(n=>Pl(n,r,t));if(typeof e=="object"){const n={};for(const i in e)n[i]=Pl(e[i],r,t);return n}}return e}function Nl(e,r){if(e){if(e instanceof jf)return e.apply(r);if(Array.isArray(e))return e.map(t=>Nl(t,r));if(typeof e=="object"){const t={};for(const n in e)t[n]=Nl(e[n],r);return t}}return e}function Cf(e,r,t,n){const i={vars:[],hasExpression:!1},o=Pl(e,i,r);return{vars:h1(i.vars),hasExpression:i.hasExpression,applyVars(l,a,c){return Nl(o,{variables:l,customFunctions:a,logError:r,store:t,weekStartDay:n,keepComplex:c})}}}function p1(){return oi(new Map)}const m1={pagers:p1},Ts=new Map,Ds=new Map;function Ef(e){const r=Ts.get(e)||oi("");return Ts.has(e)||Ts.set(e,r),r}function b1(e){Ts.delete(e),Ds.delete(e)}function Fs(e){const r=Ds.get(e)||new Map;return Ds.has(e)||Ds.set(e,r),r}class Sf{setVariable(r){const t=r.getName(),n=Fs(this);if(n.has(t))throw new Error("Variable with the same name already exist");n.set(t,r),Ef(this).set(t)}getVariable(r){return Fs(this).get(r)}list(){return Fs(this).values()}}function y1(){return new Sf}const w1=["start","stop","pause","resume","cancel","reset"],v1=new Set(w1);class k1{constructor(r){gr(this,"timers",new Map);gr(this,"logError");gr(this,"applyVars");gr(this,"hasVariableWithType");gr(this,"setVariableValue");gr(this,"execAnyActions");gr(this,"visibilityHandler");gr(this,"awaitActions",[]);this.logError=r.logError,this.applyVars=r.applyVars,this.hasVariableWithType=r.hasVariableWithType,this.setVariableValue=r.setVariableValue,this.execAnyActions=r.execAnyActions,this.visibilityHandler=()=>{document.visibilityState==="visible"?(this.awaitActions.forEach(({id:t,action:n})=>{this.execTimerAction(t,n)}),this.awaitActions=[],this.unholdAll()):this.holdAll()},document.addEventListener("visibilitychange",this.visibilityHandler)}destroy(){document.removeEventListener("visibilitychange",this.visibilityHandler);for(const[r,t]of this.timers)this.stopTimerTimeouts(t)}createTimer(r){if(!(r!=null&&r.id)){this.logError(Q(new Error("Missing timer id")));return}if(!(r.duration||r.tick_interval&&(r.value_variable||r.tick_actions))){this.logError(Q(new Error("Misconfigured timer"),{additional:{id:r.id}}));return}this.timers.set(r.id,{state:"stopped",definition:r})}execTimerAction(r,t){if(!r||!t||!this.timers.has(r)||!v1.has(t)){this.logError(Q(new Error("Incorrect timer action"),{additional:{id:r,action:t}}));return}const n=t;if(document.visibilityState!=="visible"){this.awaitActions.push({id:r,action:n});return}const i=this.timers.get(r);this[n](i)}stopTimerTimeouts(r){r.durationTimeout&&(clearTimeout(r.durationTimeout),r.durationTimeout=void 0),r.tickTimeout&&(clearTimeout(r.tickTimeout),r.tickTimeout=void 0)}async tickOrUnholdAction(r){const t=performance.now(),n=(r.durationPassed||0)+t-(r.durationStarted||0);r.duration&&n>r.duration||(this.updateVariable(r,n),await this.callActions(r,"tick"),r.tickCount!==void 0&&++r.tickCount)}startOrResume(r){r.state="running",r.hold=!1,r.durationStarted=performance.now();const t=r.duration;t&&(r.durationTimeout=window.setTimeout(async()=>{this.updateVariable(r,t),r.tickCountPredict&&r.tickCount!==void 0&&r.tickCount<r.tickCountPredict&&await this.callActions(r,"tick"),this.stop(r)},Math.max(0,t-(r.durationPassed||0))));const n=r.tick;if(n){const i=()=>{const o=r.tickStarted=performance.now(),s=Math.max(0,n-(r.tickPassed||0));r.tickTimeout=window.setTimeout(async()=>{await this.tickOrUnholdAction(r),r.tickPassed=(performance.now()-o-s)%n,r.state==="running"&&i()},s)};i()}}start(r){if(r.state==="running"){this.logError(Q(new Error("The timer is already running")));return}else if(r.state==="paused"){this.logError(Q(new Error("The timer is paused")));return}const t=r.definition.value_variable;if(t&&!this.hasVariableWithType(t,"integer")){this.logError(Q(new Error("Cannot find variable"),{additional:{name:t}}));return}if(t&&this.setVariableValue(t,0),r.definition.duration&&(r.duration=this.applyVars(r.definition.duration)),r.definition.tick_interval&&(r.tick=this.applyVars(r.definition.tick_interval)),r.duration!==void 0&&r.duration<0||r.tick!==void 0&&r.tick<=0){this.logError(Q(new Error("Incorrect timer properties"),{additional:{id:r.definition.id}}));return}r.duration!==void 0&&r.tick!==void 0&&(r.tickCount=0,r.tickCountPredict=Math.floor(r.duration/r.tick)),this.startOrResume(r)}stop(r){if(r.state==="stopped"){this.logError(Q(new Error("The timer has already been stopped")));return}r.state="stopped",r.durationPassed=0,r.tickPassed=0,this.stopTimerTimeouts(r),this.callActions(r,"end")}pause(r){if(r.state==="stopped"){this.logError(Q(new Error("The timer has already been stopped")));return}else if(r.state==="paused"){this.logError(Q(new Error("The timer has already been paused")));return}r.state="paused",this.stopTimerTimeouts(r);const t=performance.now();r.durationStarted&&(r.durationPassed=(r.durationPassed||0)+t-r.durationStarted),r.tickStarted&&(r.tickPassed=(r.tickPassed||0)+t-r.tickStarted);const n=r.definition.value_variable;n&&r.durationPassed&&this.setVariableValue(n,Math.round(r.durationPassed))}resume(r){if(r.state==="stopped"){this.logError(Q(new Error("The timer has already been stopped")));return}else if(r.state==="running"){this.logError(Q(new Error("The timer is already running")));return}this.startOrResume(r)}cancel(r){r.state!=="stopped"&&(r.state="stopped",r.durationPassed=0,r.tickPassed=0,this.stopTimerTimeouts(r))}reset(r){this.cancel(r),this.start(r)}updateVariable(r,t){const n=r.definition.value_variable;n&&this.setVariableValue(n,Math.round(t))}async callActions(r,t){const n=r.definition[t==="end"?"end_actions":"tick_actions"];if(n){const i=this.applyVars(n);return this.execAnyActions(i,{processUrls:!1})}}holdAll(){for(const[r,t]of this.timers)t.state==="running"&&(t.hold=!0,this.stopTimerTimeouts(t))}async unholdAll(){for(const[r,t]of this.timers)if(t.state==="running"&&t.hold){const n=performance.now();t.durationStarted&&(t.durationPassed=(t.durationPassed||0)+n-t.durationStarted),t.tickStarted&&(t.tickPassed=(t.tickPassed||0)+n-t.tickStarted),t.tick&&await this.tickOrUnholdAction(t),this.startOrResume(t)}}}function A1(e,r,t,n){const{variable_name:i,index:o,value:s}=n;if(!s||typeof o!="number"&&o!==void 0){t(Q(new Error("Incorrect array_insert_value action"),{additional:{name:i}}));return}zl(e,r,t,n,l=>{const a=l.getValue();if(typeof o=="number"&&(o<0||o>a.length))t(Q(new Error(`Index out of bound for mutation ${n.type}`),{additional:{name:i,index:o,length:a.length}}));else{const c=a.slice();typeof o=="number"?c.splice(o,0,s.value):c.push(s.value),l.setValue(c)}})}function j1(e,r,t,n){const{variable_name:i,index:o}=n;if(typeof o!="number"){t(Q(new Error("Incorrect array_remove_value action"),{additional:{name:i}}));return}zl(e,r,t,n,s=>{const l=s.getValue();if(typeof o=="number"&&(o<0||o>=l.length))t(Q(new Error(`Index out of bound for mutation ${n.type}`),{additional:{name:i,index:o,length:l.length}}));else{const a=l.slice();a.splice(o,1),s.setValue(a)}})}function C1(e,r,t,n){const{variable_name:i,index:o,value:s}=n;if(!s||typeof o!="number"){t(Q(new Error("Incorrect array_set_value action"),{additional:{name:i}}));return}zl(e,r,t,n,l=>{const a=l.getValue();if(typeof o=="number"&&(o<0||o>=a.length))t(Q(new Error(`Index out of bound for mutation ${n.type}`),{additional:{name:i,index:o,length:a.length}}));else{const c=a.slice();c[o]=s.value,l.setValue(c)}})}function zl(e,r,t,n,i){const{variable_name:o}=n;if(!o){t(Q(new Error(`Incorrect ${n.type} action`),{additional:{name:o}}));return}const s=(e==null?void 0:e.getVariable(o))||r.get(o);if(!s){t(Q(new Error("Cannot find variable"),{additional:{name:o}}));return}const l=s.getType();l==="array"?i(s):t(Q(new Error("Trying to insert value into the non-array"),{additional:{name:o,type:l}}))}function E1(e,r,t,n){const{variable_name:i,key:o,value:s}=n;if(typeof o!="string"){t(Q(new Error("Incorrect dict_set_value action"),{additional:{name:i}}));return}if(!i){t(Q(new Error(`Incorrect ${n.type} action`),{additional:{name:i}}));return}const l=(e==null?void 0:e.getVariable(i))||r.get(i);if(!l){t(Q(new Error("Cannot find variable"),{additional:{name:i}}));return}const a=l.getType();if(a==="dict"){const u={...l.getValue()};s?u[o]=s.value:delete u[o],l.setValue(u)}else t(Q(new Error("Trying to set value into the non-dict"),{additional:{name:i,type:a}}))}function S1(e,r){if(!(r.content&&(r.content.type==="text"||r.content.type==="url")&&typeof r.content.value=="string")){e(Q(new Error("Incorrect action"),{additional:{action:r}}));return}if(!(typeof navigator<"u"&&"clipboard"in navigator&&navigator.clipboard&&"writeText"in navigator.clipboard&&typeof navigator.clipboard.writeText=="function")){e(Q(new Error("Clipboard is unavailable"),{additional:{action:r}}));return}navigator.clipboard.writeText(r.content.value).catch(t=>{e(Q(new Error("Failed to copy to the clipboard"),{additional:{originalError:String(t)}}))})}function V1(e){if(e==="normal"||e==="reverse"||e==="alternate"||e==="alternate_reverse")return e}function I1(e,r,t,n){var N,V,D,te;const i=Wn(e.duration,0);if(!i||e.type!=="color_animator"&&e.type!=="number_animator")return;const o=(N=e.start_value_typed?e.start_value_typed.value:e.start_value)!=null?N:r.getValue(),s=e.end_value_typed?e.end_value_typed.value:e.end_value;if(o===void 0||s===void 0||e.type==="color_animator"&&(typeof o!="string"&&o!==void 0||typeof s!="string")||e.type==="number_animator"&&(typeof o!="number"&&o!==void 0||typeof s!="number"))return;const l=e.type==="color_animator"&&bi(o),a=e.type==="color_animator"&&bi(s);if(e.type==="color_animator"&&(!l||!a))return;const c=Ur(e.start_delay,0),u=ul(e.interpolator||"linear"),f=V1(e.direction)||"normal",_=((V=e.repeat_count)==null?void 0:V.type)==="infinity"?1/0:((D=e.repeat_count)==null?void 0:D.type)==="fixed"?Ur((te=e.repeat_count)==null?void 0:te.value,1):1;let m=0,y=performance.now();const h=_===1/0?1/0:_*i+c;function w(F){if(e.type==="color_animator"){if(!l||!a)throw new Error("Missing start/end value");return Zi({a:vi(wi(l.a,a.a,F),0,255),r:vi(wi(l.r,a.r,F),0,255),g:vi(wi(l.g,a.g,F),0,255),b:vi(wi(l.b,a.b,F),0,255)})}return wi(o,s,F)}function v(F){const Y=F-y;if(y=F,m+=Y,m>=c){let X=Math.floor((m-c)/i),H=(m-c-X*i)/i;X>=_&&(X=_-1,H=1);let W;f==="normal"||f==="alternate"&&X%2===0||f==="alternate_reverse"&&X%2===1?W="normal":W="reverse",W==="reverse"&&(H=1-H);const U=w(u(H));r.setValue(U)}m<h?R=requestAnimationFrame(v):(t(),n(e.end_actions))}let R=requestAnimationFrame(v);return{stop(){cancelAnimationFrame(R),n(e.cancel_actions),n(e.end_actions)}}}function T1(e){let r=e;for(;r&&!r.isTooltipRoot;)r=r.parent;return r}function Vf(e){let r=e;for(;r!=null&&r.parent&&r.json.type!=="state"&&!r.isRootState&&!r.isTooltipRoot;)r=r.parent;return r}const Ol={outer:"divkit-bf0ea",root__clickable:"divkit-27458","root__clickable-no-transition":"divkit-3bb57",root__selectable:"undefined",tooltip:"divkit-e2fee",tooltip_visible:"divkit-04d22",tooltip__overlay:"divkit-00335"},If=300,Tf=0;function D1(e){return Math.max(...e.map(r=>(Number(r.duration)||If)+(Number(r.start_delay)||Tf)))}function Df(e,{animations:r,direction:t}){if(!r)return{};const n=Ks(r),i=D1(n);return n.some(s=>s.name==="no_animation")?{}:{duration:Xo()?0:i,css:s=>{const l=s*i,a=n.map(h=>{var D,te,F,Y,X,H;const w=Number(h.start_delay)||Tf,v=Number(h.duration)||If,R=Math.max(0,Math.min(1,(l-w)/v)),V=(ul(h.interpolator||"ease_in_out")||es)(R);if(h.name==="fade"){const W=t==="in"&&(D=h.start_value)!=null?D:0,U=t==="in"?1:(te=h.end_value)!=null?te:1;return{active:V>0&&V<1,opacity:(1-V)*W+V*U}}else if(h.name==="translate"){const W=-(t==="in"&&(F=h.start_value)!=null?F:10),U=-(t==="in"?0:(Y=h.end_value)!=null?Y:0);return{active:V>0&&V<1,translate:`translateY(${(1-V)*W+V*U}${t==="in"&&h.start_value!==void 0||t==="out"&&h.end_value!==void 0?"%":"px"})`}}else if(h.name==="scale"){const W=t==="in"&&(X=h.start_value)!=null?X:0,U=t==="in"?1:(H=h.end_value)!=null?H:1;return{active:V>0&&V<1,scale:`scale(${(1-V)*W+V*U})`}}return{}}),c=a.map(h=>h.opacity).filter(h=>h!==void 0).reduce((h,w)=>h*w,1),u=a.map(h=>h.translate).filter(h=>h!==void 0).join(" "),f=a.map(h=>h.scale).filter(h=>h!==void 0).join(" "),_=a.filter(h=>h.active).map(h=>h.scale).filter(h=>h!==void 0),m=_.length?_[_.length-1]:f;return`transform:${[u,m].filter(Boolean).join(" ")||"none"};opacity:${c}`}}}const{window:Ff}=ni;function Mf(e){let r,t,n;return{c(){r=Le("div"),p(r,"class",Ol.tooltip__overlay)},m(i,o){ie(i,r,o),t||(n=He(r,"click",e[17]),t=!0)},p:C,d(i){i&&re(r),t=!1,n()}}}function F1(e){let r,t,n,i,o,s,l,a,c,u=e[0]&&Mf(e);return n=new $n({props:{componentContext:e[1]}}),{c(){u&&u.c(),r=pr(),t=Le("div"),Bt(n.$$.fragment),p(t,"class",i=gt("tooltip",Ol,e[7])+" "+(e[13]?xt.root_platform_desktop:"")),O(t,"top",e[4]),O(t,"left",e[3]),O(t,"width",e[5]),O(t,"height",e[6])},m(f,_){u&&u.m(f,_),ie(f,r,_),ie(f,t,_),Pt(n,t,null),e[23](t),l=!0,a||(c=[He(Ff,"click",e[17]),He(Ff,"resize",e[18])],a=!0)},p(f,[_]){e=f,e[0]?u?u.p(e,_):(u=Mf(e),u.c(),u.m(r.parentNode,r)):u&&(u.d(1),u=null);const m={};_&2&&(m.componentContext=e[1]),n.$set(m),(!l||_&8320&&i!==(i=gt("tooltip",Ol,e[7])+" "+(e[13]?xt.root_platform_desktop:"")))&&p(t,"class",i),_&16&&O(t,"top",e[4]),_&8&&O(t,"left",e[3]),_&32&&O(t,"width",e[5]),_&64&&O(t,"height",e[6])},i(f){l||(B(n.$$.fragment,f),f&&Fn(()=>{l&&(s&&s.end(1),o=Us(t,Df,{animations:e[14]||Pf,direction:"in"}),o.start())}),l=!0)},o(f){$(n.$$.fragment,f),o&&o.invalidate(),f&&(s=ud(t,Df,{animations:e[15]||Pf,direction:"out"})),l=!1},d(f){f&&(re(r),re(t)),u&&u.d(f),Nt(n),e[23](null),f&&s&&s.end(),a=!1,Hr(c)}}}const Pf={name:"set",items:[{name:"translate"},{name:"fade"}]};function M1(e,r,t){let n,i,o,s,l,a,c,u=C,f=()=>(u(),u=M(o,G=>t(25,c=G)),o),_,m=C,y=()=>(m(),m=M(i,G=>t(26,_=G)),i),h,w=C,v=()=>(w(),w=M(n,G=>t(27,h=G)),n),R,N,V=C,D=()=>(V(),V=M(s,G=>t(14,N=G)),s),te,F=C,Y=()=>(F(),F=M(l,G=>t(15,te=G)),l);e.$$.on_destroy.push(()=>u()),e.$$.on_destroy.push(()=>m()),e.$$.on_destroy.push(()=>w()),e.$$.on_destroy.push(()=>V()),e.$$.on_destroy.push(()=>F());let{ownerNode:X}=r,{data:H}=r,{internalId:W}=r,{parentComponentContext:U}=r;const he=Wr(Xr),Ie=he.isDesktop;rn(e,Ie,G=>t(13,R=G));const Te=Date.now();let _e,be=!1,_t="",We="",Oe="",Fe="",qe=null,Qe;function Z(){var Ge,E;if(!_e||!X)return;const G=_e.parentElement;if(!G)return;const Ee=_e.style.cssText;t(2,_e.style.cssText+=";transform: none !important",_e);const Ue=X.getBoundingClientRect(),ne=_e.getBoundingClientRect(),it=G.getBoundingClientRect();t(2,_e.style.cssText=Ee,_e);let je=0,Ve=0,yt=null,Vt=null,ee=0,tt=0;const lt=U.getJsonWithVars((Ge=H.div)==null?void 0:Ge.width),dt=U.getJsonWithVars((E=H.div)==null?void 0:E.width);if(!lt||lt.type==="match_parent"?ee=yt=window.innerWidth:lt.type==="fixed"&<.value?ee=yt=lt.value:ee=ne.width,(dt==null?void 0:dt.type)==="match_parent"?tt=Vt=window.innerHeight:(dt==null?void 0:dt.type)==="fixed"&&dt.value?tt=Vt=dt.value:tt=ne.height,h==="left"||h==="bottom-left"||h==="top-left")je=Ue.left-ee;else if(h==="top"||h==="bottom"||h==="center")je=(Ue.left+Ue.right)/2-ee/2;else if(h==="right"||h==="bottom-right"||h==="top-right")je=Ue.right;else return;if(h==="top"||h==="top-left"||h==="top-right")Ve=Ue.top-tt;else if(h==="left"||h==="right"||h==="center")Ve=(Ue.top+Ue.bottom)/2-tt/2;else if(h==="bottom-left"||h==="bottom"||h==="bottom-right")Ve=Ue.bottom;else return;je-=it.left,Ve-=it.top,je+=_||0,Ve+=c||0,t(3,_t=`${je}px`),t(4,We=`${Ve}px`),t(5,Oe=yt!==null?`${yt}px`:""),t(6,Fe=Vt!==null?`${Vt}px`:""),t(0,be=!0),yt===null||Vt===null?typeof ResizeObserver<"u"&&!qe&&(qe=new ResizeObserver(()=>{requestAnimationFrame(Z)}),qe.observe(_e)):qe==null||qe.disconnect()}function Ae(G){Date.now()-Te<100||G.composedPath().includes(_e)||(G.stopPropagation(),G.preventDefault(),he.onTooltipClose(W))}function ge(){Z()}Xn(()=>{if(he.tooltipRoot){const G=window.getComputedStyle(_e);t(2,_e.style.fontSize=G.fontSize,_e),t(2,_e.style.fontFamily=G.fontFamily,_e),t(2,_e.style.lineHeight=G.lineHeight,_e),he.tooltipRoot.appendChild(_e)}}),Uo(()=>{be||Z()}),on(()=>{Qe&&Qe.destroy(),qe==null||qe.disconnect()});function et(G){Tr[G?"unshift":"push"](()=>{_e=G,t(2,_e)})}return e.$$set=G=>{"ownerNode"in G&&t(19,X=G.ownerNode),"data"in G&&t(20,H=G.data),"internalId"in G&&t(21,W=G.internalId),"parentComponentContext"in G&&t(22,U=G.parentComponentContext)},e.$$.update=()=>{var G,Ee,Ue,ne;e.$$.dirty&5242882&&(Qe&&Qe.destroy(),t(1,Qe=U.produceChildContext(H.div||{},{isTooltipRoot:!0}))),e.$$.dirty&5242880&&v(t(12,n=U.getDerivedFromVars(H.position))),e.$$.dirty&5242880&&y(t(11,i=U.getDerivedFromVars((Ee=(G=H.offset)==null?void 0:G.x)==null?void 0:Ee.value))),e.$$.dirty&5242880&&f(t(10,o=U.getDerivedFromVars((ne=(Ue=H.offset)==null?void 0:Ue.y)==null?void 0:ne.value))),e.$$.dirty&5242880&&D(t(9,s=U.getDerivedFromVars(H.animation_in))),e.$$.dirty&5242880&&Y(t(8,l=U.getDerivedFromVars(H.animation_out))),e.$$.dirty&1&&t(7,a={visible:be})},[be,Qe,_e,_t,We,Oe,Fe,a,l,s,o,i,n,R,N,te,Ie,Ae,ge,X,H,W,U,et]}class P1 extends Or{constructor(r){super(),zr(this,r,M1,F1,mr,{ownerNode:19,data:20,internalId:21,parentComponentContext:22})}}function Nf(e,{delay:r=0,duration:t=400,easing:n=Ac,x:i=0,y:o=0,opacity:s=0}={}){const l=getComputedStyle(e),a=+l.opacity,c=l.transform==="none"?"":l.transform,u=a*(1-s),[f,_]=Ul(i),[m,y]=Ul(o);return{delay:r,duration:t,easing:n,css:(h,w)=>`
|
|
16
|
-
transform: ${c} translate(${(1-
|
|
17
|
-
opacity: ${a-u*w}`}}const Ms={root_platform_desktop:"divkit-6d515",menu:"divkit-8767a",menu_visible:"divkit-7481b",menu__list:"divkit-60a10",menu__item:"divkit-3133d"},{window:zf}=ni;function Of(e,r,t){const n=e.slice();return n[23]=r[t],n}function N1(e){let r=e[23].text+"",t;return{c(){t=qn(r)},m(n,i){ie(n,t,i)},p(n,i){i&1&&r!==(r=n[23].text+"")&&Ei(t,r)},d(n){n&&re(t)}}}function Rf(e){let r,t,n,i;return t=new Qo({props:{componentContext:e[1],actions:e[23].actions||e[23].action&&[e[23].action],cls:Ms.menu__item+" "+e[10],customAction:e[14],$$slots:{default:[N1]},$$scope:{ctx:e}}}),{c(){r=Le("li"),Bt(t.$$.fragment),n=pr()},m(o,s){ie(o,r,s),Pt(t,r,null),At(r,n),i=!0},p(o,s){const l={};s&2&&(l.componentContext=o[1]),s&1&&(l.actions=o[23].actions||o[23].action&&[o[23].action]),s&67108865&&(l.$$scope={dirty:s,ctx:o}),t.$set(l)},i(o){i||(B(t.$$.fragment,o),i=!0)},o(o){$(t.$$.fragment,o),i=!1},d(o){o&&re(r),Nt(t)}}}function z1(e){let r,t,n,i,o,s,l,a=nr(e[0]),c=[];for(let f=0;f<a.length;f+=1)c[f]=Rf(Of(e,a,f));const u=f=>$(c[f],1,1,()=>{c[f]=null});return{c(){r=Le("div"),t=Le("ul");for(let f=0;f<c.length;f+=1)c[f].c();p(t,"class",Ms.menu__list),p(r,"class",n=gt("menu",Ms,e[7])+" "+(e[8]?xt.root_platform_desktop:"")+" "+e[9]),O(r,"top",e[4]),O(r,"left",e[3]),O(r,"width",e[5]),O(r,"height",e[6])},m(f,_){ie(f,r,_),At(r,t);for(let m=0;m<c.length;m+=1)c[m]&&c[m].m(t,null);e[17](r),o=!0,s||(l=[He(zf,"click",e[12]),He(zf,"resize",e[13])],s=!0)},p(f,[_]){if(_&17411){a=nr(f[0]);let m;for(m=0;m<a.length;m+=1){const y=Of(f,a,m);c[m]?(c[m].p(y,_),B(c[m],1)):(c[m]=Rf(y),c[m].c(),B(c[m],1),c[m].m(t,null))}for(tr(),m=a.length;m<c.length;m+=1)u(m);rr()}(!o||_&384&&n!==(n=gt("menu",Ms,f[7])+" "+(f[8]?xt.root_platform_desktop:"")+" "+f[9]))&&p(r,"class",n),_&16&&O(r,"top",f[4]),_&8&&O(r,"left",f[3]),_&32&&O(r,"width",f[5]),_&64&&O(r,"height",f[6])},i(f){if(!o){for(let _=0;_<a.length;_+=1)B(c[_]);f&&Fn(()=>{o&&(i||(i=ra(r,Nf,{y:20},!0)),i.run(1))}),o=!0}},o(f){c=c.filter(Boolean);for(let _=0;_<c.length;_+=1)$(c[_]);f&&(i||(i=ra(r,Nf,{y:20},!1)),i.run(0)),o=!1},d(f){f&&re(r),ln(c,f),e[17](null),f&&i&&i.end(),s=!1,Hr(l)}}}function O1(e,r,t){let n,i,{ownerNode:o}=r,{items:s}=r,{parentComponentContext:l}=r;const a=Wr(Xr),c=a.getCustomization("menuPopupClass")||"",u=a.getCustomization("menuItemClass")||"",f=a.isDesktop;rn(e,f,H=>t(8,i=H));const _=Date.now(),m=ld();let y,h=!1,w="",v="",R="",N="",V=null;function D(){if(!y||!o)return;const H=y.parentElement;if(!H)return;const W=o.getBoundingClientRect(),U=y.getBoundingClientRect(),he=H.getBoundingClientRect(),Ie=window.innerWidth,Te=window.innerHeight;let _e=0,be=0,_t=U.width,We=U.height;_e=W.left-he.left,be=W.bottom-he.top,_e+_t>Ie&&(_e=Ie-_t),_e<0&&(_e=0),be+We>Te&&(W.top-he.top-We>0?be=W.top-he.top-We:be=Te-We),be<0&&(be=0),t(3,w=`${_e}px`),t(4,v=`${be}px`),t(5,R=""),t(6,N=""),t(16,h=!0),typeof ResizeObserver<"u"&&!V&&(V=new ResizeObserver(()=>{requestAnimationFrame(D)}),V.observe(y))}function te(H){Date.now()-_<100||H.composedPath().includes(y)||m("close")}function F(){D()}function Y(){return m("close"),!0}Xn(()=>{if(a.tooltipRoot){const H=window.getComputedStyle(y);t(2,y.style.fontSize=H.fontSize,y),t(2,y.style.fontFamily=H.fontFamily,y),t(2,y.style.lineHeight=H.lineHeight,y),a.tooltipRoot.appendChild(y)}}),Uo(()=>{h||D()}),on(()=>{V==null||V.disconnect()});function X(H){Tr[H?"unshift":"push"](()=>{y=H,t(2,y)})}return e.$$set=H=>{"ownerNode"in H&&t(15,o=H.ownerNode),"items"in H&&t(0,s=H.items),"parentComponentContext"in H&&t(1,l=H.parentComponentContext)},e.$$.update=()=>{e.$$.dirty&65536&&t(7,n={visible:h})},[s,l,y,w,v,R,N,n,i,c,u,f,te,F,Y,o,h,X]}class R1 extends Or{constructor(r){super(),zr(this,r,O1,z1,mr,{ownerNode:15,items:0,parentComponentContext:1})}}const{Map:L1}=ni;function Lf(e,r,t){const n=e.slice();return n[124]=r[t],n}function Bf(e){let r,t,n,i,o,s,l,a,c,u;t=new yp({props:{svgFiltersMap:e[5]}}),i=new $n({props:{componentContext:e[6]}});let f=e[3]&&Hf(e),_=e[4]&&Uf(e);return{c(){r=Le("div"),Bt(t.$$.fragment),n=pr(),Bt(i.$$.fragment),o=pr(),f&&f.c(),s=pr(),_&&_.c(),p(r,"class",l=xt.root+(e[7]?` ${xt.root_platform_desktop}`:"")+(e[0]?` ${e[0]}`:"")),p(r,"dir",e[8])},m(m,y){ie(m,r,y),Pt(t,r,null),At(r,n),Pt(i,r,null),At(r,o),f&&f.m(r,null),At(r,s),_&&_.m(r,null),a=!0,c||(u=He(r,"touchstart",U1,{passive:!0}),c=!0)},p(m,y){const h={};y[0]&32&&(h.svgFiltersMap=m[5]),t.$set(h);const w={};y[0]&64&&(w.componentContext=m[6]),i.$set(w),m[3]?f?(f.p(m,y),y[0]&8&&B(f,1)):(f=Hf(m),f.c(),B(f,1),f.m(r,s)):f&&(tr(),$(f,1,1,()=>{f=null}),rr()),m[4]?_?(_.p(m,y),y[0]&16&&B(_,1)):(_=Uf(m),_.c(),B(_,1),_.m(r,null)):_&&(tr(),$(_,1,1,()=>{_=null}),rr()),(!a||y[0]&129&&l!==(l=xt.root+(m[7]?` ${xt.root_platform_desktop}`:"")+(m[0]?` ${m[0]}`:"")))&&p(r,"class",l),(!a||y[0]&256)&&p(r,"dir",m[8])},i(m){a||(B(t.$$.fragment,m),B(i.$$.fragment,m),B(f),B(_),a=!0)},o(m){$(t.$$.fragment,m),$(i.$$.fragment,m),$(f),$(_),a=!1},d(m){m&&re(r),Nt(t),Nt(i),f&&f.d(),_&&_.d(),c=!1,u()}}}function Hf(e){let r=[],t=new L1,n,i,o=nr(e[3]);const s=l=>l[124].internalId;for(let l=0;l<o.length;l+=1){let a=Lf(e,o,l),c=s(a);t.set(c,r[l]=Wf(c,a))}return{c(){for(let l=0;l<r.length;l+=1)r[l].c();n=Zt()},m(l,a){for(let c=0;c<r.length;c+=1)r[c]&&r[c].m(l,a);ie(l,n,a),i=!0},p(l,a){a[0]&72&&(o=nr(l[3]),tr(),r=ia(r,a,s,1,l,o,t,n.parentNode,na,Wf,n,Lf),rr())},i(l){if(!i){for(let a=0;a<o.length;a+=1)B(r[a]);i=!0}},o(l){for(let a=0;a<r.length;a+=1)$(r[a]);i=!1},d(l){l&&re(n);for(let a=0;a<r.length;a+=1)r[a].d(l)}}}function Wf(e,r){let t,n,i;return n=new P1({props:{ownerNode:r[124].ownerNode,data:r[124].desc,internalId:r[124].internalId,parentComponentContext:r[124].componentContext||r[6]}}),{key:e,first:null,c(){t=Zt(),Bt(n.$$.fragment),this.first=t},m(o,s){ie(o,t,s),Pt(n,o,s),i=!0},p(o,s){r=o;const l={};s[0]&8&&(l.ownerNode=r[124].ownerNode),s[0]&8&&(l.data=r[124].desc),s[0]&8&&(l.internalId=r[124].internalId),s[0]&72&&(l.parentComponentContext=r[124].componentContext||r[6]),n.$set(l)},i(o){i||(B(n.$$.fragment,o),i=!0)},o(o){$(n.$$.fragment,o),i=!1},d(o){o&&re(t),Nt(n,o)}}}function Uf(e){let r,t;return r=new R1({props:{ownerNode:e[4].node,items:e[4].items,parentComponentContext:e[4].componentContext||e[6]}}),r.$on("close",e[38]),{c(){Bt(r.$$.fragment)},m(n,i){Pt(r,n,i),t=!0},p(n,i){const o={};i[0]&16&&(o.ownerNode=n[4].node),i[0]&16&&(o.items=n[4].items),i[0]&80&&(o.parentComponentContext=n[4].componentContext||n[6]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){$(r.$$.fragment,n),t=!1},d(n){Nt(r,n)}}}function B1(e){let r,t,n=!e[1]&&!e[2]&&e[6]&&Bf(e);return{c(){n&&n.c(),r=Zt()},m(i,o){n&&n.m(i,o),ie(i,r,o),t=!0},p(i,o){!i[1]&&!i[2]&&i[6]?n?(n.p(i,o),o[0]&70&&B(n,1)):(n=Bf(i),n.c(),B(n,1),n.m(r.parentNode,r)):n&&(tr(),$(n,1,1,()=>{n=null}),rr())},i(i){t||(B(n),t=!0)},o(i){$(n),t=!1},d(i){i&&re(r),n&&n.d(i)}}}let Rl=oi(!0),Ps=0;function Gf(){Rl.set(!1)}function Yf(){Rl.set(!0)}const H1=new Set(["string","integer","number","url","color","boolean"]),W1=new Set(["string","integer","number","url","color","boolean","array","dict"]);function Mi(e,r){if(e&&r)return new Map([...e,...r]);if(e)return e;if(r)return r}function U1(){}function G1(e,r,t){var Er,xr;let n,i,o,s,{id:l}=r,{json:a={}}=r,{platform:c="auto"}=r,{theme:u="system"}=r,{globalVariablesController:f=void 0}=r,{mix:_=""}=r,{customization:m={}}=r,{builtinProtocols:y=["http","https","tel","mailto","intent"]}=r,{extensions:h=new Map}=r,{onError:w=void 0}=r,{onStat:v=void 0}=r,{onCustomAction:R=void 0}=r,{onComponent:N=void 0}=r,{typefaceProvider:V=b=>""}=r,{fetchInit:D={}}=r,{tooltipRoot:te=void 0}=r,{customComponents:F=void 0}=r,{direction:Y="ltr"}=r,{store:X=void 0}=r,{weekStartDay:H=0}=r,W=!0,U=oi(c==="desktop");if(rn(e,U,b=>t(7,o=b)),c==="auto"&&typeof matchMedia<"u"){const b=matchMedia("(any-pointer: coarse)");U.set(!b.matches),b.addListener(()=>{U.set(!b.matches)})}let he="light",Ie=null;const Te=oi(Y==="rtl"?"rtl":"ltr");rn(e,Te,b=>t(8,s=b));function _e(){u!=="system"||!Ie||t(35,he=Ie.matches?"dark":"light")}function be(b){t(12,u=b)}function _t(){return new Map}function We(){return new Map}function Oe(b){t(11,a=b)}const Fe=new Set(y);let qe=!1,Qe=!1;l||(Qe=!0,E(Q(new Error('"id" prop is required'))));const Z={stateChange:!1},Ae=f||new Sf,ge=Ef(Ae),et=Fs(Ae),G=new Map,Ee=new Map,Ue=new Map;let ne=null;const it=new Map;let je=0,Ve=[];const yt=new Set;let Vt;const ee=[];function tt(b){return m==null?void 0:m[b]}function lt(b,A,K,oe=!1,se=void 0){if(!A)return Hi(A);const Ce=Mi(Ee,K),bt=Cf(A,b,X,H);if(!bt.vars.length)return bt.hasExpression?Hi(bt.applyVars(Ce,se)):Hi(A);const P=bt.vars.map(Ye=>Ce.get(Ye)||Se(Ye)).filter(yi);return Li(P,()=>bt.applyVars(Ce,se,oe))}function dt(b,A,K,oe=!1,se=void 0){const Ce=Cf(A,b,X,H);if(!Ce.hasExpression)return A;const bt=Mi(Ee,K);return Ce.applyVars(bt,se,oe)}function Ge(b,A,K){const oe=new Map,se=hl(b,"dict",A);oe.set(b,se);const Ce=hl("index","integer",K);return oe.set("index",Ce),oe}function E(b){w?w({error:b}):(b==null?void 0:b.level)==="warn"?console.warn(b):console.error(b)}function $e(b,A){v&&v({type:b,action:A})}function le(b){return b in n}function Ke(b,A){if(!b)return{json:b,templateContext:A};const K=new Set([b.type]);for(;b.type&&b.type in n;){if({json:b,templateContext:A}=wp(b,A,n,E),K.has(b.type))return{json:b,templateContext:A};K.add(b.type)}return{json:b,templateContext:A}}let wt=0;function fe(b){return`${l}-${wt++}`}function me(b){return`divkit-${fe()}`}let at={},Ze={};function $t(b,A){const K=`${b}:${A}`;if(Ze[K]=Ze[K]||0,++Ze[K],at[K])return at[K];const oe=`${fe()}-svg-filter`;return t(5,at={...at,[K]:oe}),oe}function Mt(b,A){if(!b)return;const K=`${b}:${A}`;Ze[K]&&--Ze[K]===0&&t(5,at=Object.keys(at).reduce((oe,se)=>(Ze[se]&&(oe[se]=at[se]),oe),{}))}const qt=fe()+"-id-",Pe=new Map,pt=new Map;function Ut(b){return qt+b}function Ht(b,A){Pe.set(b,A)}function Gt(b){Pe.delete(b);const A=Ut(b);pt.has(A)&&pt.delete(A)}function L(b){var K;const A=(K=Pe.get(b))==null?void 0:K();if(A){const oe=Ut(b),se=pt.get(oe);return se&&se!==A&&se.removeAttribute("id"),A.setAttribute("id",oe),pt.set(oe,A),oe}return""}async function ae(b,A){var Ce,bt,P;if(!b)throw new Error("Missing state id");let K=b.split("/");const oe=K.length%2===0&&T1(A);let se=oe||kt;if(!oe)if((Ce=se.states)!=null&&Ce.root){if(se=await se.states.root(K[0]),!se)return;K=K.slice(1)}else return;for(let Ye=0;Ye<K.length;Ye+=2){const Rt=K[Ye],Tt=K[Ye+1];if((bt=se.states)!=null&&bt[Rt]){if(se=await((P=se.states)==null?void 0:P[Rt](Tt)),!se)return}else return}}function ar(b,A,{item:K,step:oe,overflow:se}){var Ye,Rt,Tt,Lt,or;if(!A)throw new Error(`Missing id for "${b}" action`);const Ce=Number(K);if(b==="set_current_item"&&Number.isNaN(Ce))throw new Error(`Incorrect item for "${b}" action`);let bt=Number(oe);if(!oe&&(b==="set_previous_item"||b==="set_next_item")&&(bt=1),!oe&&(b==="scroll_backward"||b==="scroll_forward"||b==="scroll_to_position")||Number.isNaN(bt))throw new Error(`Incorrect step value for "${b}" action`);if(se&&se!=="clamp"&&se!=="ring")throw new Error(`Incorrect overflow value for "${b}" action`);se=se||"clamp";const P=Pr(A);if(P)switch(b){case"set_current_item":P.setCurrentItem(Ce);return;case"set_previous_item":P.setPreviousItem(bt,se);return;case"set_next_item":P.setNextItem(bt,se);return;case"scroll_to_start":(Ye=P.scrollToStart)==null||Ye.call(P);return;case"scroll_to_end":(Rt=P.scrollToEnd)==null||Rt.call(P);return;case"scroll_backward":(Tt=P.scrollBackward)==null||Tt.call(P,bt,se);return;case"scroll_forward":(Lt=P.scrollForward)==null||Lt.call(P,bt,se);return;case"scroll_to_position":(or=P.scrollToPosition)==null||or.call(P,bt);return}}function ve(b,A,K){const oe=(K==null?void 0:K.logError)||E;if(b){const se=Pr(b);se?A==="start"?se.start():A==="pause"?se.pause():oe(Q(new Error("Unknown video action"),{additional:{id:b,action:A}})):oe(Q(new Error("Video component is not found"),{additional:{id:b,action:A}}))}else oe(Q(new Error("Missing id in video action"),{additional:{action:A}}))}function Et(b,A,K){const oe=(K==null?void 0:K.logError)||E;if(b){let se;typeof D=="function"?se=D(b):se=D,fetch(b,se).then(Ce=>{if(!Ce.ok)throw new Error("Response is not ok");return Ce.json()}).then(Ce=>{var bt,P,Ye;if(!Ce){oe(Q(new Error("Incorrect patch"),{additional:{url:b}}));return}if(Ce.templates)for(const Rt in Ce.templates)n.hasOwnProperty(Rt)||(n[Rt]=Ce.templates[Rt]);if(Array.isArray((bt=Ce.patch)==null?void 0:bt.changes)){if(Ce.patch.mode==="transactional"){const Rt=Ce.patch.changes.find(Tt=>{const Lt=ut.get(Tt.id);if(!Lt)return!0;const or=Array.isArray(Tt.items)?Tt.items.length:0;return!!(Lt.isSingleMode&&or!==1)});if(Rt){oe(Q(new Error("Skipping transactional, child is not found or broken"),{additional:{url:b,id:Rt.id}})),De((P=Ce.patch)==null?void 0:P.on_failed_actions),De(A==null?void 0:A.on_fail_actions);return}}Ce.patch.changes.forEach(Rt=>{const Tt=ut.get(Rt.id);Tt&&Tt.replaceWith(Rt.id,Rt.items)}),De((Ye=Ce.patch)==null?void 0:Ye.on_applied_actions),De(A==null?void 0:A.on_success_actions)}}).catch(Ce=>{oe(Q(new Error("Failed to download the patch"),{additional:{url:b,originalError:Ce}})),De(A==null?void 0:A.on_fail_actions)})}else oe(Q(new Error("Missing url in download action"),{additional:{url:b}}))}function Re(b,A,K){var P;const oe=(K==null?void 0:K.logError)||E;if(!b){oe(Q(new Error("Missing id in show_tooltip action")));return}const se=Ft.get(b);if(!se){oe(Q(new Error("Tooltip with the provided id is not found"),{additional:{id:b}}));return}if(A!=="true"&&A!==!0&&yt.has(b))return;yt.add(b);const Ce={internalId:++je,ownerNode:se.onwerNode,desc:se.tooltip,timeoutId:0,componentContext:K};t(3,Ve=[...Ve,Ce]);const bt=(P=se.tooltip.duration)!=null?P:5e3;bt&&(Ce.timeoutId=window.setTimeout(()=>{Ce.timeoutId=0,t(3,Ve=Ve.filter(Ye=>Ye.internalId!==Ce.internalId))},bt))}function mt(b,A){const K=(A==null?void 0:A.logError)||E;if(!b){K(Q(new Error("Missing id in hide_tooltip action")));return}t(3,Ve=Ve.filter(oe=>{const se=oe.desc.id!==b;return!se&&oe.timeoutId&&(clearTimeout(oe.timeoutId),oe.timeoutId=null),se}))}function Ne(b,A,K,oe,se){const Ce=(b==null?void 0:b.logError)||E;if(!X){Ce(Q(new Error("Store is not configured")));return}let bt=K;if(!A||!bt||!oe||!se){Ce(Q(new Error("Missing required params for set_stored_value")));return}if(!W1.has(oe)){Ce(Q(new Error("Incorrect stored type")));return}if(oe==="boolean"&&(bt=bt==="true"||bt==="1"),X.set)X.set(A,oe,bt,Number(se));else if(X.setValue){if(!H1.has(oe)){Ce(Q(new Error("Incorrect stored type")));return}if(typeof bt!="string"&&typeof bt!="number"&&typeof bt!="boolean"){Ce(Q(new Error("Incorrect stored value")));return}(oe==="integer"||oe==="number")&&(bt=Number(bt)),X.setValue(A,oe,bt,Number(se))}}function ot(b){vt(dt(E,b))}async function vt(b,A){var bt,P;const K=b.scope_id,oe=(A==null?void 0:A.logError)||E;if(K){const Ye=er.get(K);if(Ye&&(Ye==null?void 0:Ye.size)>1)oe(Q(new Error(`Ambiguous scope id. There are ${Ye.size} divs with id '${K}'`),{additional:{count:Ye.size,scopeId:K}}));else if((Ye==null?void 0:Ye.size)===1){const Rt=Ye.values().next().value;Rt&&(A=Rt)}}const se=b.url?String(b.url):"",Ce=b.typed;if(jn(b)){if(se)try{const Ye=se.replace(/div-action:\/\//,""),Rt=/([^?]+)\?(.+)/.exec(Ye);if(!Rt)return;const Tt=new URLSearchParams(Rt[2]);switch(Rt[1]){case"set_state":await ae(Tt.get("state_id"),A);break;case"set_current_item":case"set_previous_item":case"set_next_item":case"scroll_to_start":case"scroll_to_end":case"scroll_backward":case"scroll_forward":case"scroll_to_position":ar(Rt[1],Tt.get("id"),{item:Tt.get("item"),step:Tt.get("step"),overflow:Tt.get("overflow")});break;case"set_variable":const Lt=Tt.get("name"),or=Tt.get("value");if(Lt&&or!==null){const dn=(A==null?void 0:A.getVariable(Lt))||Ee.get(Lt);if(dn){const $r=dn.getType();$r==="dict"||$r==="array"?oe(Q(new Error(`Setting ${$r} variables is not supported`),{additional:{name:Lt}})):dn.set(or)}else oe(Q(new Error("Cannot find variable"),{additional:{name:Lt}}))}else oe(Q(new Error("Incorrect set_variable_action"),{additional:{url:Ye}}));break;case"timer":const sn=Tt.get("action"),Nr=Tt.get("id");ne?ne.execTimerAction(Nr,sn):oe(Q(new Error("Incorrect timer action"),{additional:{id:Nr,action:sn}}));break;case"video":ve(Tt.get("id"),Tt.get("action"),A);break;case"download":Et(Tt.get("url"),b.download_callbacks,A);break;case"show_tooltip":Re(Tt.get("id"),Tt.get("multiple"),A);break;case"hide_tooltip":mt(Tt.get("id"),A);break;case"set_stored_value":{Ne(A,Tt.get("name"),Tt.get("value"),Tt.get("type"),Tt.get("lifetime"));break}default:oe(Q(new Error("Unknown type of action"),{additional:{url:se}}))}}catch(Ye){oe(Q(Ye,{additional:{url:se}}))}else if(Ce)switch(Ce.type){case"set_variable":{const{variable_name:Ye,value:Rt}=Ce;if(Ye&&Rt){const Tt=(A==null?void 0:A.getVariable(Ye))||Ee.get(Ye);Tt?Tt.getType()===Rt.type?Tt.setValue(Rt.value):oe(Q(new Error("Trying to set value with invalid type"),{additional:{name:Ye,type:Rt.type}})):oe(Q(new Error("Cannot find variable"),{additional:{name:Ye}}))}else oe(Q(new Error("Incorrect set_variable action"),{additional:{name:Ye}}));break}case"array_insert_value":A1(A,Ee,oe,Ce);break;case"array_remove_value":j1(A,Ee,oe,Ce);break;case"array_set_value":C1(A,Ee,oe,Ce);break;case"copy_to_clipboard":S1(oe,Ce);break;case"focus_element":{const Ye=Ce.element_id&&St.get(Ce.element_id);Ye?Ye.focus():oe(Q(new Error("Incorrect focus_element action"),{additional:{elementId:Ce.element_id}}));break}case"clear_focus":{try{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}catch{}break}case"dict_set_value":{E1(A,Ee,oe,Ce);break}case"animator_start":{const Ye=Ce.animator_id&&(A==null?void 0:A.getAnimator(Ce.animator_id));if(!Ye){oe(Q(new Error("Missing animator"),{additional:{animator_id:Ce.animator_id}}));return}const{duration:Rt,start_delay:Tt,interpolator:Lt,direction:or,repeat_count:sn,start_value:Nr,end_value:dn}=Ce,$r=A?A.getJsonWithVars(Ye):dt(E,Ye),Gn={...$r,end_actions:Ye.end_actions,cancel_actions:Ye.cancel_actions,duration:Rt!==void 0?Rt:$r.duration,start_delay:Tt!==void 0?Tt:$r.start_delay,interpolator:Lt!==void 0?Lt:$r.interpolator,direction:or!==void 0?or:$r.direction,repeat_count:sn!==void 0?sn:$r.repeat_count,start_value_typed:Nr,end_value_typed:dn},vn=Ye.variable_name&&((A==null?void 0:A.getVariable(Ye.variable_name))||Ee.get(Ye.variable_name));if(!vn)return;const en=it.get(Ye.id);en&&en.stop();const _n=I1(Gn,vn,()=>{it.delete(Ye.id)},(Yn,ei)=>{const En=(A==null?void 0:A.execAnyActions)||De,Jn=A?A.getJsonWithVars(Yn):dt(E,Yn);return En(Jn,ei)});_n&&it.set(Ye.id,_n);break}case"animator_stop":{const Ye=it.get(Ce.animator_id);Ye&&(Ye.stop(),it.delete(Ce.animator_id));break}case"show_tooltip":{Re(Ce.id,Ce.multiple,A);break}case"hide_tooltip":{mt(Ce.id,A);break}case"timer":{ne?ne.execTimerAction(Ce.id,Ce.action):oe(Q(new Error("Incorrect timer action"),{additional:{id:Ce.id,action:Ce.action}}));break}case"download":{Et(Ce.url,Ce,A);break}case"video":{ve(Ce.id,Ce.action,A);break}case"set_stored_value":{Ne(A,Ce.name,(bt=Ce.value)==null?void 0:bt.value,(P=Ce.value)==null?void 0:P.type,Ce.lifetime);break}case"set_state":{await ae(Ce.state_id,A);break}default:oe(Q(new Error("Unknown type of action"),{additional:{type:Ce.type}}))}}}async function De(b,A={}){if(!b||!Array.isArray(b))return;const K=b.filter(jn);for(let oe=0;oe<K.length;++oe){let se=K[oe];const Ce=se.url,bt=se.typed;if(Ce){const P=Qs(Ce);if(P)if(xs(P,Fe)){if(A.processUrls)if(se.target==="_blank"){const Ye=window.open("","_blank");Ye&&(Ye.opener=null,Ye.location=Ce)}else location.href=Ce}else P==="div-action"?(await vt(se,A.componentContext),await gn()):se.log_id&&(ct(se),await gn())}else bt?await vt(se,A.componentContext):A.node&&Array.isArray(se.menu_items)&&se.menu_items.length&&t(4,Vt={items:se.menu_items,node:A.node,componentContext:A.componentContext})}K.forEach(oe=>{oe.log_id&&$e(A.logType||"click",oe)})}function ct(b){R==null||R(b)}function Yt(b,A){const K=(b==null?void 0:b.logError)||E;if(!Array.isArray(A)||!A.length)return;const oe=[];return A.forEach(se=>{let Ce=!1;if(typeof se.condition!="string"){K(Q(new Error("variable_trigger has a condition that is not a string"),{additional:{condition:se.condition}}));return}if(!Array.isArray(se.actions)){K(Q(new Error("variable_trigger has no actions"),{additional:{condition:se.condition}}));return}const bt=se.mode||"on_condition";if(bt!=="on_variable"&&bt!=="on_condition"){K(Q(new Error("variable_trigger has an unsupported mode"),{additional:{mode:bt}}));return}try{const P=Ml(se.condition,{startRule:"JsonStringContents"}),Ye=Pu(P);if(!Ye.length){K(Q(new Error("variable_trigger must have variables in the condition"),{additional:{condition:se.condition}}));return}const Rt=Ye.map(Lt=>(b==null?void 0:b.getVariable(Lt))||Ee.get(Lt)||Se(Lt)),Tt=Li(Rt,()=>{const Lt=b?b.evalExpression(X,P,{weekStartDay:H}):Vs(Ee,void 0,X,P,{weekStartDay:H});return Lt.warnings.forEach(E),Lt.result}).subscribe(async Lt=>{if(Lt.type==="error"){K(Q(new Error("variable_trigger condition execution error"),{additional:{message:Lt.value}}));return}if(Lt.value&&(bt==="on_variable"||bt==="on_condition"&&Ce===!1)){Ce=!!Lt.value;const or=se.actions.map(sn=>b?b.getJsonWithVars(sn):dt(E,sn));b?await b.execAnyActions(or,{logType:"trigger"}):await De(or,{logType:"trigger"})}else Ce=!!Lt.value});oe.push(Tt)}catch{K(Q(new Error("Unable to parse variable_trigger"),{additional:{condition:se.condition}}))}}),()=>{oe.forEach(se=>{se()})}}function sr(b){return Z[b]}function dr(b,A){Z[b]=A}const Wt=new Map,ut=new Map,St=new Map,Ft=new Map,er=new Map;function ir(b,A){if(Wt.has(b)){E(Q(new Error("Duplicate instance id"),{additional:{id:b}}));return}Wt.set(b,A)}function wr(b){Wt.delete(b)}function Pr(b){if(!Wt.has(b)){E(Q(new Error("Missing instance with id"),{additional:{id:b}}));return}return Wt.get(b)}function Jr(b,A){ut.set(b,A)}function Je(b){ut.delete(b)}function cr(b,A){St.set(b,A)}function ke(b){St.delete(b)}function q(b,A){const K=A.id;K&&(Ft.has(K)&&E(Q(new Error("Duplicate tooltip id"),{additional:{id:K}})),Ft.set(K,{onwerNode:b,tooltip:A}))}function kr(b){const A=b.id;A&&(Ft.delete(A),Ve.some(K=>K.desc.id===A)&&t(3,Ve=Ve.filter(K=>K.desc.id!==A)))}const Ar=new Map;function zt(b){Ar.has(b)||Ar.set(b,m1[b]())}function Zr(b){return Ar.has(b)||zt(b),Ar.get(b)}function Se(b){const A=Ue.get(b)||oi(void 0);return Ue.has(b)||Ue.set(b,A),A}function Ot(){if(!de)return;de[he].forEach(A=>{const K=Ee.get(A.name);K&&K.setValue(A.color)})}function ur(){return Fe}function Xe(b,A){const K=h.get(b);if(K)return new K(A||{})}function It(b){return{variables:Mi(Ee,b.variables),processExpressions(A){return dt(E,A)},execAction:ot,logError:E,getComponentProperty(A){return b.getJsonWithVars(b.json[A])},direction:Y}}function ze(b){const A={id:"",json:{},path:[],templateContext:{},logError(K){K.additional=K.additional||{},K.additional.path=A.path.join("/"),E(K)},execAnyActions(K,oe={}){return De(K,{componentContext:A,processUrls:oe.processUrls,node:oe.node,logType:oe.logType})},getDerivedFromVars(K,oe,se=!1){return lt(A.logError,K,Mi(A.variables,oe),se,A.customFunctions)},getJsonWithVars(K,oe,se=!1){return dt(A.logError,K,Mi(A.variables,oe),se,A.customFunctions)},evalExpression(K,oe,se){return Vs(Mi(Ee,A.variables),A.customFunctions,K,oe,se)},produceChildContext(K,oe={}){const se=ze(A);let Ce=K,bt=A.templateContext;const{templateContext:P,json:Ye}=Ke(Ce,bt);if(se.json=Ye,se.templateContext=P,se.origJson=K,se.id=oe.id||Ye.id||"",se.id){let Lt=er.get(se.id);Lt||(Lt=new Set,er.set(se.id,Lt)),Lt.add(se)}oe.path!==void 0&&se.path.push(String(oe.path)),K.type&&!oe.isRootState&&se.path.push(K.type),oe.isTooltipRoot&&(se.isTooltipRoot=!0);let Rt;Array.isArray(Ye.variables)&&(Rt=new Map,Ye.variables.forEach(Lt=>{const or=Jt(Lt);or&&Rt&&Rt.set(or.getName(),or)})),se.variables=Mi(A.variables,Mi(Rt,oe.variables));let Tt;return Array.isArray(Ye.functions)&&(Tt=new Map,Ye.functions.forEach(Lt=>{if(Tt){try{u1(Lt)}catch(Nr){A.logError(Q(Nr));return}const or=Lt,sn=Tt.get(or.name)||[];sn.push(f1(or)),Tt.set(or.name,sn)}})),se.customFunctions=d1(A.customFunctions,Tt),Array.isArray(Ye.animators)&&(A.animators=Ye.animators.reduce((Lt,or)=>(or.id&&(Lt[or.id]=or),Lt),{})),oe.fake&&(se.fakeElement=!0),oe.isRootState&&(se.isRootState=!0),se},getVariable(K,oe){var Ce;const se=((Ce=A.variables)==null?void 0:Ce.get(K))||Ee.get(K);if(se){const bt=se.getType();if(oe&&bt!==oe){A.logError(Q(new Error(`Variable should have type "${oe}"`),{additional:{name:K,foundType:bt}}));return}}return se},getAnimator(K){var oe,se;return((oe=A.animators)==null?void 0:oe[K])||((se=A.parent)==null?void 0:se.getAnimator(K))||void 0},registerState(K,oe){const se=Vf(A.parent);se&&(se.states=se.states||{},se.states[K]=oe)},unregisterState(K){const oe=Vf(A.parent);oe!=null&&oe.states&&delete oe.states[K]},destroy(){const K=er.get(A.id);K&&(K.delete(A),K.size||er.delete(A.id))}};return b?(A.parent=b,A.path=b.path.slice(),b.fakeElement&&(A.fakeElement=!0)):(A.json={type:"root"},A.isRootState=!0),A}function ht(b){W?ee.push(b):clearTimeout(b)}Oi(Xr,{logStat:$e,hasTemplate:le,genId:fe,genClass:me,execCustomAction:ct,processVariableTriggers:Yt,isRunning:sr,setRunning:dr,registerInstance:ir,unregisterInstance:wr,registerParentOf:Jr,unregisterParentOf:Je,registerTooltip:q,unregisterTooltip:kr,onTooltipClose:lr,tooltipRoot:te,registerFocusable:cr,unregisterFocusable:ke,addSvgFilter:$t,removeSvgFilter:Mt,registerId:Ht,unregisterId:Gt,getComponentId:L,preparePrototypeVariables:Ge,getStore:Zr,getCustomization:tt,getBuiltinProtocols:ur,getExtension:Xe,getExtensionContext:It,registerTimeout:ht,typefaceProvider:V,isDesktop:U,isPointerFocus:Rl,customComponents:F,direction:Te,componentDevtool:void 0}),Oi(Zo,{hasAction(){return!1}}),Oi(Js,{runVisibilityTransition(b,A,K,oe,se){return Promise.resolve()},registerChildWithTransitionIn(b,A,K,oe){return Promise.resolve()},registerChildWithTransitionOut(b,A,K,oe){return Promise.resolve()},registerChildWithTransitionChange(b,A,K,oe){return Promise.resolve()},hasTransitionChange(b){return!1},registerChild(b){},unregisterChild(b){}}),Oi(Zs,{isEnabled:Hi(!0)});function st(b,A){const K=Ee.get(b);return(K==null?void 0:K.getType())===A}function jt(b,A){const K=Ee.get(b);K?K.setValue(A):E(Q(new Error("Cannot find variable"),{additional:{name:b}}))}function Jt(b){if(!(!b.type||!b.name||!(b.type in _l))){b.type==="integer"&&typeof b.value=="number"&&(b.value>Number.MAX_SAFE_INTEGER||b.value<Number.MIN_SAFE_INTEGER)&&E(Q(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:b.name,value:b.value}}));try{return ci(b.name,b.type,b.value)}catch(A){E(Q(A,{additional:{name:b.name}}))}}}function I(b){const A=Jt(b);A&&(G.set(b.name,A),Ee.set(b.name,A))}const rt=(Er=a==null?void 0:a.card)==null?void 0:Er.variables;Array.isArray(rt)&&rt.forEach(b=>{if(b&&b.name){if(G.has(b.name)){E(Q(new Error("Duplicate variable"),{additional:{name:b.name}}));return}I(b)}});const de=a.palette;de&&de[he].forEach(A=>{if(G.has(A.name)){E(Q(new Error("Duplicate variable"),{additional:{name:A.name}}));return}try{const K=ci(A.name,"color",A.color);G.set(A.name,K),Ee.set(A.name,K)}catch(K){E(Q(K,{additional:{name:A.name}}))}});for(const[b,A]of et)Ee.has(b)||Ee.set(b,A);ge.subscribe(b=>{if(b&&!Ee.has(b)){const A=et.get(b);Ee.set(b,A);const K=Ue.get(b);if(K){let oe=0;A.subscribe(()=>{K.set(++oe)})}}});const d=()=>{var b;Yt(void 0,(b=a==null?void 0:a.card)==null?void 0:b.variable_triggers)},Me=(xr=a==null?void 0:a.card)==null?void 0:xr.timers;if(Me&&typeof document<"u"){const b=ne=new k1({logError:E,applyVars:A=>dt(E,A),hasVariableWithType:st,setVariableValue:jt,execAnyActions:De});Me.forEach(A=>b.createTimer(A))}const kt=ze();let Fr;function lr(b){t(3,Ve=Ve.filter(A=>A.internalId!==b))}Xn(()=>{Ps++,Ps===1&&(window.addEventListener("keydown",Gf),window.addEventListener("pointerdown",Yf)),gn().then(()=>{W&&d()})}),on(()=>{W=!1,Ps--,Ps||(window.removeEventListener("keydown",Gf),window.removeEventListener("pointerdown",Yf));for(const[b,A]of it)A.stop();ne&&ne.destroy(),Ve.forEach(b=>{b.timeoutId&&(clearTimeout(b.timeoutId),b.timeoutId=null)}),ee.forEach(b=>{clearTimeout(b)}),f||b1(Ae)});const z=()=>t(4,Vt=void 0);return e.$$set=b=>{"id"in b&&t(13,l=b.id),"json"in b&&t(11,a=b.json),"platform"in b&&t(14,c=b.platform),"theme"in b&&t(12,u=b.theme),"globalVariablesController"in b&&t(15,f=b.globalVariablesController),"mix"in b&&t(0,_=b.mix),"customization"in b&&t(16,m=b.customization),"builtinProtocols"in b&&t(17,y=b.builtinProtocols),"extensions"in b&&t(18,h=b.extensions),"onError"in b&&t(19,w=b.onError),"onStat"in b&&t(20,v=b.onStat),"onCustomAction"in b&&t(21,R=b.onCustomAction),"onComponent"in b&&t(22,N=b.onComponent),"typefaceProvider"in b&&t(23,V=b.typefaceProvider),"fetchInit"in b&&t(24,D=b.fetchInit),"tooltipRoot"in b&&t(25,te=b.tooltipRoot),"customComponents"in b&&t(26,F=b.customComponents),"direction"in b&&t(27,Y=b.direction),"store"in b&&t(28,X=b.store),"weekStartDay"in b&&t(29,H=b.weekStartDay)},e.$$.update=()=>{var b,A;if(e.$$.dirty[0]&4096|e.$$.dirty[1]&32&&(u==="light"||u==="dark"?t(35,he=u):u==="system"?typeof matchMedia<"u"?(Ie||(t(36,Ie=matchMedia("(prefers-color-scheme: dark)")),Ie.addListener(_e)),t(35,he=Ie.matches?"dark":"light")):t(35,he="light"):E(Q(new Error("Unsupported theme")))),e.$$.dirty[1]&16&&he&&Ot(),e.$$.dirty[0]&2048){t(1,qe=!1);const K=_1(a);K&&(t(1,qe=!0),E(K))}if(e.$$.dirty[0]&2048&&(n=a.templates||{}),e.$$.dirty[0]&2048&&(b=a==null?void 0:a.card)!=null&&b.variables&&Array.isArray(a.card.variables)&&a.card.variables!==rt&&a.card.variables.forEach(K=>{K&&K.name&&!G.has(K.name)&&I(K)}),e.$$.dirty[0]&2048&&t(37,i=(A=a==null?void 0:a.card)==null?void 0:A.states),e.$$.dirty[0]&6|e.$$.dirty[1]&64&&i&&!qe&&!Qe){const K={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:i.map(oe=>({state_id:oe.state_id.toString(),div:oe.div}))};t(6,Fr=kt.produceChildContext(K,{isRootState:!0}))}},[_,qe,Qe,Ve,Vt,at,Fr,o,s,U,Te,a,u,l,c,f,m,y,h,w,v,R,N,V,D,te,F,Y,X,H,be,_t,We,Oe,ot,he,Ie,i,z]}class Y1 extends Or{constructor(r){super(),zr(this,r,G1,B1,mr,{id:13,json:11,platform:14,theme:12,globalVariablesController:15,mix:0,customization:16,builtinProtocols:17,extensions:18,onError:19,onStat:20,onCustomAction:21,onComponent:22,typefaceProvider:23,fetchInit:24,tooltipRoot:25,customComponents:26,direction:27,store:28,weekStartDay:29,setTheme:30,getDebugVariables:31,getDebugAllVariables:32,setData:33,execAction:34},null,[-1,-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[30]}get getDebugVariables(){return this.$$.ctx[31]}get getDebugAllVariables(){return this.$$.ctx[32]}get setData(){return this.$$.ctx[33]}get execAction(){return this.$$.ctx[34]}}const J1=8;class q1{constructor(r){gr(this,"widthVariableName");gr(this,"heightVariableName");gr(this,"resizeObserver");gr(this,"context");gr(this,"node");gr(this,"sizeHistory",{});this.widthVariableName=r.width_variable_name,this.heightVariableName=r.height_variable_name}setVariable(r,t){if(!this.context)return!1;if(r){const n=this.context.variables.get(r);if(n&&n.getType()==="integer"){if(t=Math.round(t),this.sizeHistory[r]||(this.sizeHistory[r]=new Set),!this.sizeHistory[r].has(t))return n.setValue(t),this.sizeHistory[r].add(t),!0}else{const i=new Error("Missing variable");i.level="error",i.additional={variableName:r},this.context.logError(i)}}return!1}recalcProps(){if(!this.node||!this.context)return!1;const r=this.node.getBoundingClientRect(),t=this.setVariable(this.widthVariableName,r.width),n=this.setVariable(this.heightVariableName,r.height);return t||n}mountView(r,t){var n;this.node=r,this.context=t,!this.resizeObserver&&typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver(async()=>{let i=0;for(;this.recalcProps();){if(++i>J1){const o=new Error("Recursive layout in size_provider");o.level="warn",o.additional={widthVariableName:this.widthVariableName,heightVariableName:this.heightVariableName},t.logError(o);break}await gn()}this.sizeHistory={}})),(n=this.resizeObserver)==null||n.observe(r),this.recalcProps()}unmountView(r,t){var n;(n=this.resizeObserver)==null||n.disconnect(),this.resizeObserver=void 0}}const go=8;class K1{constructor(r){gr(this,"context");gr(this,"params");gr(this,"startCoords");this.params=r,this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this)}processActions(r){const t=this.params[r];Array.isArray(t)&&t.length&&this.context&&this.context.processExpressions(t).forEach(i=>{var o;(o=this.context)==null||o.execAction(i)})}onPointerDown(r){this.startCoords={pageX:r.pageX,pageY:r.pageY}}onPointerMove(r){if(!this.startCoords)return;const t=r.pageX-this.startCoords.pageX,n=r.pageY-this.startCoords.pageY;(Math.abs(t)>go||Math.abs(n)>go)&&(Math.abs(t)>Math.abs(n)?t>go?this.processActions("swipe_right"):t<-go&&this.processActions("swipe_left"):n>go?this.processActions("swipe_down"):n<-go&&this.processActions("swipe_up"),this.startCoords=void 0)}onPointerUp(){this.startCoords=void 0}mountView(r,t){this.context=t,r.addEventListener("pointerdown",this.onPointerDown),r.addEventListener("pointermove",this.onPointerMove),r.addEventListener("pointerup",this.onPointerUp),r.addEventListener("pointercancel",this.onPointerUp),r.style.pointerEvents="auto"}updateView(r){r.style.pointerEvents="auto"}unmountView(r,t){r.removeEventListener("pointerdown",this.onPointerDown),r.removeEventListener("pointermove",this.onPointerMove),r.removeEventListener("pointerup",this.onPointerUp),r.removeEventListener("pointercancel",this.onPointerUp),r.style.pointerEvents=""}}function X1(e){return e instanceof HTMLElement}function Z1(e){return class{constructor(t){gr(this,"params");gr(this,"animItem");gr(this,"wrapper");this.params=t}loadData(){if(this.params.lottie_json)return Promise.resolve(this.params.lottie_json);const t=this.params.lottie_url;return t?fetch(t).then(n=>{if(!n.ok)throw new Error("Response is not ok");return n.json()}):Promise.reject("Missing data")}getRatio(t){var i;const n=(i=t.getComponentProperty("aspect"))==null?void 0:i.ratio;if(typeof n=="number"&&n>0)return n}getScale(t){const n=t.getComponentProperty("scale");if(n==="stretch")return{attribute:"none",noScale:!1,hAlign:"center",vAlign:"center"};let i=t.getComponentProperty("content_alignment_horizontal"),o=t.getComponentProperty("content_alignment_vertical"),s="Mid",l="Mid";return i==="start"?i=t.direction==="ltr"?"start":"end":i==="end"?i=t.direction==="ltr"?"end":"start":i==="left"?i="start":i==="right"?i="end":i="center",o==="top"?o="start":o==="bottom"?o="end":o="center",n==="no_scale"?{attribute:"xMidYMid meet",noScale:!0,hAlign:i,vAlign:o}:(i==="start"?s="Min":i==="end"&&(s="Max"),o==="start"?l="Min":o==="end"&&(l="Max"),n==="fit"||n==="no_scale"?{attribute:`x${s}Y${l} meet`,noScale:!1,hAlign:i,vAlign:o}:{attribute:`x${s}Y${l} slice`,noScale:!1,hAlign:i,vAlign:o})}getSvg(){var n;const t=(n=this.wrapper)==null?void 0:n.firstElementChild;if(t instanceof SVGElement)return t}setWrapperScale(t){this.wrapper&&(t.noScale?(this.wrapper.style.display="flex",this.wrapper.style.alignItems=t.vAlign,this.wrapper.style.justifyContent=t.hAlign):(this.wrapper.style.display="",this.wrapper.style.alignItems="",this.wrapper.style.justifyContent=""))}setSvgScale(t){const n=this.getSvg();n&&(t.noScale?(n.style.flex="0 0 auto",n.style.width="",n.style.height=""):(n.style.flex="",n.style.width="100%",n.style.height="100%"))}mountView(t,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const i=Array.from(t.children).filter(X1);i.forEach(u=>{u.style.display="none"}),t.setAttribute("data-lottie","true");const o=this.wrapper=document.createElement("div");this.wrapper.style.width="100%",this.wrapper.style.height="100%";const s=this.getRatio(n),l=this.getScale(n);s&&(this.wrapper.style.aspectRatio=String(s)),this.setWrapperScale(l),t.appendChild(this.wrapper);const a=Number(this.params.repeat_count||-1),c=()=>{var f,_;(f=this.animItem)==null||f.destroy(),i.forEach(m=>{m.style.display=""}),t.removeAttribute("data-lottie"),this.wrapper&&((_=this.wrapper.parentNode)==null||_.removeChild(this.wrapper),this.wrapper=void 0);const u=new Error("Failed to load lottie animation");u.level="error",u.additional={url:this.params.lottie_url},n.logError(u)};this.loadData().then(u=>{const f=this.animItem=e({container:o,animationData:u,renderer:"svg",loop:!0,rendererSettings:{preserveAspectRatio:l.attribute}});if(this.setSvgScale(l),this.animItem.addEventListener("data_failed",c),this.params.repeat_mode==="reverse"||a!==-1){let _=1,m=0;f.addEventListener("loopComplete",()=>{++m,a!==-1&&m===a?(f.stop(),f.goToAndStop(f.totalFrames,!0)):(this.params.repeat_mode==="reverse"&&(_*=-1,f.setDirection(_)),f.goToAndPlay(_===1?0:f.totalFrames,!0))})}}).catch(c)}updateView(t,n){if(!this.wrapper)return;const i=this.getRatio(n);i&&(this.wrapper.style.aspectRatio=String(i));const o=this.getSvg();if(o){const s=this.getScale(n);this.setWrapperScale(s),this.setSvgScale(s),o.setAttribute("preserveAspectRatio",s.attribute)}}unmountView(t,n){var i,o;(i=this.animItem)==null||i.destroy(),this.wrapper&&((o=this.wrapper.parentNode)==null||o.removeChild(this.wrapper),this.wrapper=void 0),t.removeAttribute("data-lottie")}}}function Q1(e,r={}){return class{constructor(){gr(this,"prevDOM",null)}recalc(n,i){const o=n.firstElementChild,s=o==null?void 0:o.firstElementChild;if(!s)return;this.prevDOM=o.cloneNode(!0);const l=i.getComponentProperty("text")||"",a=e(l),c=document.createElement("div");c.innerHTML=a,r!=null&&r.cssClass&&c.classList.add(r.cssClass);const u=Array.from(o.childNodes);for(let f=0,_=u.length;f<_;++f){const m=u[f];(m.nodeType!==1||m!==s)&&o.removeChild(m)}s.innerHTML="",s.appendChild(c)}mountView(n,i){this.recalc(n,i)}updateView(n,i){this.recalc(n,i)}unmountView(n){if(this.prevDOM){const i=n.firstElementChild;i&&i.replaceWith(this.prevDOM),this.prevDOM=null}}}}function x1(e){const{target:r,hydrate:t,...n}=e,i=new Y1({target:r,props:n,hydrate:t});return{$destroy(){i.$destroy()},execAction(o){i.execAction(o)},setTheme(o){i.setTheme(o)},setData(o){i.setData(o)}}}const $1=Object.freeze(Object.defineProperty({__proto__:null,Gesture:K1,SizeProvider:q1,createGlobalVariablesController:y1,createVariable:ci,lottieExtensionBuilder:Z1,markdownExtensionBuilder:Q1,render:x1},Symbol.toStringTag,{value:"Module"}));window.Ya=window.Ya||{},window.Ya.Divkit=window.Ya.DivKit=$1})();
|
|
13
|
+
`+l+" | "+Bl("",i.column-1," ")+Bl("",f,"^")}else r+=`
|
|
14
|
+
at `+s}return r},yo.buildMessage=function(t,r){var e={literal:function(c){return'"'+i(c.text)+'"'},class:function(c){var u=c.parts.map(function(f){return Array.isArray(f)?o(f[0])+"-"+o(f[1]):o(f)});return"["+(c.inverted?"^":"")+u.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(c){return c.description}};function n(c){return c.charCodeAt(0).toString(16).toUpperCase()}function i(c){return c.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(u){return"\\x0"+n(u)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(u){return"\\x"+n(u)})}function o(c){return c.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(u){return"\\x0"+n(u)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(u){return"\\x"+n(u)})}function s(c){return e[c.type](c)}function a(c){var u=c.map(s),f,h;if(u.sort(),u.length>0){for(f=1,h=1;f<u.length;f++)u[f-1]!==u[f]&&(u[h]=u[f],h++);u.length=h}switch(u.length){case 1:return u[0];case 2:return u[0]+" or "+u[1];default:return u.slice(0,-1).join(", ")+", or "+u[u.length-1]}}function l(c){return c?'"'+i(c)+'"':"end of input"}return"Expected "+a(t)+" but "+l(r)+" found."};function Hl(t,r){r=r!==void 0?r:{};var e={},n=r.grammarSource,i={start:Ht,JsonStringContents:Mt},o=Ht,s="@{",a="}",l="@{}",c="\\",u="?",f=":",h="!:",p="||",b="&&",_="==",v="!=",w=">=",L=">",N="<=",V="<",F="+",$="-",D="/",J="*",Z="%",W="!",G=".",z="(",he=")",ye=",",Te="'",_e="e",be="E",pt=/^[^}]/,Ye=/^[^'}]/,Re=/^[0-9]/,Me=/^[a-zA-Z_]/,Ze=/^[a-zA-Z_0-9]/,et=/^[ \t\r\n]/,Q=y("@{",!1),Ee=y("}",!1),ge=y("@{}",!1),nt=y("\\",!1),Y=X(),Se=A(["}"],!0,!1),Je=y("?",!1),ne=y(":",!1),lt=y("!:",!1),je=y("||",!1),Ie=y("&&",!1),kt=y("==",!1),Tt=y("!=",!1),re=y(">=",!1),it=y(">",!1),ut=y("<=",!1),gt=y("<",!1),qe=y("+",!1),S=y("-",!1),rt=y("/",!1),le=y("*",!1),Qe=y("%",!1),At=y("!",!1),fe=y(".",!1),me=y("(",!1),ft=y(")",!1),$e=y(",",!1),rr=se("string"),Ot=y("'",!1),Qt=A(["'","}"],!0,!1),Oe=se("integer"),yt=A([["0","9"]],!1,!1),qt=se("number"),Gt=y("e",!1),Kt=y("E",!1),H=A([["a","z"],["A","Z"],"_"],!1,!1),ae=A([["a","z"],["A","Z"],"_",["0","9"]],!1,!1),dr=se("whitespace"),ke=A([" "," ","\r",`
|
|
15
|
+
`],!1,!1),It=function(g){return g},He=function(g){return Df(g)},vt=function(g){return g},ze=function(){return""},at=function(){return nn()},Et=function(){throw new Error("Error tokenizing '"+t+"'.")},Fe=function(){throw new Error("Error tokenizing '"+t+"'.")},dt=function(g){return g},Xt=function(g){return Tf(g)},cr=function(){throw new Error("Error tokenizing '"+t+"'.")},pr=function(g,k){return k1(g,k)},Yt=function(g,k){return A1(g,k)},ht=function(g,k){return If(g,k)},Dt=function(g,k){return If(g,k)},Nt=function(g,k){return zs(g,k)},nr=function(g,k){return zs(g,k)},lr=function(g,k){return zs(g,k)},Er=function(g,k){return zs(g,k)},Lr=function(g){return g},Zr=function(g){return g},Xe=function(g,k){return{type:"UnaryExpression",operator:g,argument:k}},hr=function(){throw new Error("Incorrect unary operator")},Ae=function(g,k){return E1(g,k)},K=function(g,k){return{type:"CallExpression",callee:g,arguments:k}},Cr=function(g,k){return[g,...k]},Sr=function(g){return g},Rt=function(g){return g},tn=function(g){return Df(g)},Ve=function(g){return g},Bt=function(){return""},_r=function(){return nn()},xe=function(){throw new Error("Error tokenizing '"+t+"'.")},Ft=function(){throw new Error("Error tokenizing '"+t+"'.")},Le=function(g){return g},mt=function(g){return Tf(g)},ct=function(){throw new Error("Error tokenizing '"+t+"'.")},St=function(){return{type:"IntegerLiteral",value:C1(nn())}},Zt=function(){return{type:"NumberLiteral",value:parseFloat(nn())}},T=function(){return{type:"NumberLiteral",value:parseFloat(nn())}},ot=function(){const g=nn();if(/\.\./.test(g)||/\.$/.test(g))throw new Error("Unexpected token: .");return j1(g)},de=function(){return{type:"Identifier",name:nn()}},d=0,Ne=0,jt=[{line:1,column:1}],Or=0,fr=[],R=0,Dr;if("startRule"in r){if(!(r.startRule in i))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');o=i[r.startRule]}function nn(){return t.substring(Ne,d)}function y(g,k){return{type:"literal",text:g,ignoreCase:k}}function A(g,k,M){return{type:"class",parts:g,inverted:k,ignoreCase:M}}function X(){return{type:"any"}}function oe(){return{type:"end"}}function se(g){return{type:"other",description:g}}function Ce(g){var k=jt[g],M;if(k)return k;for(M=g-1;!jt[M];)M--;for(k=jt[M],k={line:k.line,column:k.column};M<g;)t.charCodeAt(M)===10?(k.line++,k.column=1):k.column++,M++;return jt[g]=k,k}function wt(g,k,M){var j=Ce(g),ee=Ce(k),q={source:n,start:{offset:g,line:j.line,column:j.column},end:{offset:k,line:ee.line,column:ee.column}};return q}function O(g){d<Or||(d>Or&&(Or=d,fr=[]),fr.push(g))}function Ke(g,k,M){return new yo(yo.buildMessage(g,k),g,k,M)}function Ht(){var g,k;return g=d,_t(),k=ar(),k!==e?(_t(),Ne=g,g=It(k)):(d=g,g=e),g}function Mt(){var g,k,M;for(g=d,k=[],M=Wt();M!==e;)k.push(M),M=Wt();return Ne=g,k=He(k),g=k,g}function Wt(){var g,k,M,j,ee;if(g=d,t.substr(d,2)===s?(k=s,d+=2):(k=e,R===0&&O(Q)),k!==e?(M=_t(),j=ar(),j!==e?(_t(),t.charCodeAt(d)===125?(ee=a,d++):(ee=e,R===0&&O(Ee)),ee!==e?(Ne=g,g=vt(j)):(d=g,g=e)):(d=g,g=e)):(d=g,g=e),g===e&&(g=d,t.substr(d,3)===l?(k=l,d+=3):(k=e,R===0&&O(ge)),k!==e&&(Ne=g,k=ze()),g=k,g===e&&(g=d,k=d,R++,t.charCodeAt(d)===92?(M=c,d++):(M=e,R===0&&O(nt)),M===e&&(t.substr(d,2)===s?(M=s,d+=2):(M=e,R===0&&O(Q))),R--,M===e?k=void 0:(d=k,k=e),k!==e?(t.length>d?(M=t.charAt(d),d++):(M=e,R===0&&O(Y)),M!==e?(Ne=g,g=at()):(d=g,g=e)):(d=g,g=e),g===e))){if(g=d,t.substr(d,2)===s?(k=s,d+=2):(k=e,R===0&&O(Q)),k!==e){if(M=[],pt.test(t.charAt(d))?(j=t.charAt(d),d++):(j=e,R===0&&O(Se)),j!==e)for(;j!==e;)M.push(j),pt.test(t.charAt(d))?(j=t.charAt(d),d++):(j=e,R===0&&O(Se));else M=e;M!==e?(t.charCodeAt(d)===125?(j=a,d++):(j=e,R===0&&O(Ee)),j!==e?(Ne=g,g=Et()):(d=g,g=e)):(d=g,g=e)}else d=g,g=e;g===e&&(g=d,t.substr(d,2)===s?(k=s,d+=2):(k=e,R===0&&O(Q)),k!==e&&(Ne=g,k=Fe()),g=k,g===e&&(g=d,t.charCodeAt(d)===92?(k=c,d++):(k=e,R===0&&O(nt)),k!==e?(t.substr(d,2)===s?(M=s,d+=2):(M=e,R===0&&O(Q)),M!==e?(Ne=g,g=dt(M)):(d=g,g=e)):(d=g,g=e),g===e&&(g=d,t.charCodeAt(d)===92?(k=c,d++):(k=e,R===0&&O(nt)),k!==e?(t.length>d?(M=t.charAt(d),d++):(M=e,R===0&&O(Y)),M!==e?(Ne=g,g=Xt(M)):(d=g,g=e)):(d=g,g=e),g===e&&(g=d,t.charCodeAt(d)===92?(k=c,d++):(k=e,R===0&&O(nt)),k!==e&&(Ne=g,k=cr()),g=k))))}return g}function ar(){var g,k,M,j,ee,q,tt,st,Tr,mr,Vr;return g=d,k=fn(),k!==e?(M=d,j=_t(),t.charCodeAt(d)===63?(ee=u,d++):(ee=e,R===0&&O(Je)),ee!==e?(q=_t(),tt=ar(),tt!==e?(st=_t(),t.charCodeAt(d)===58?(Tr=f,d++):(Tr=e,R===0&&O(ne)),Tr!==e?(mr=_t(),Vr=ar(),Vr!==e?(j=[j,ee,q,tt,st,Tr,mr,Vr],M=j):(d=M,M=e)):(d=M,M=e)):(d=M,M=e)):(d=M,M=e),M===e&&(M=null),Ne=g,g=pr(k,M)):(d=g,g=e),g}function fn(){var g,k,M,j,ee,q,tt;return g=d,k=Rr(),k!==e?(M=d,j=_t(),t.substr(d,2)===h?(ee=h,d+=2):(ee=e,R===0&&O(lt)),ee!==e?(q=_t(),tt=ar(),tt!==e?(j=[j,ee,q,tt],M=j):(d=M,M=e)):(d=M,M=e),M===e&&(M=null),Ne=g,g=Yt(k,M)):(d=g,g=e),g}function Rr(){var g,k,M,j,ee,q,tt,st;if(g=d,k=mn(),k!==e){for(M=[],j=d,ee=_t(),t.substr(d,2)===p?(q=p,d+=2):(q=e,R===0&&O(je)),q!==e?(tt=_t(),st=mn(),st!==e?(ee=[ee,q,tt,st],j=ee):(d=j,j=e)):(d=j,j=e);j!==e;)M.push(j),j=d,ee=_t(),t.substr(d,2)===p?(q=p,d+=2):(q=e,R===0&&O(je)),q!==e?(tt=_t(),st=mn(),st!==e?(ee=[ee,q,tt,st],j=ee):(d=j,j=e)):(d=j,j=e);Ne=g,g=ht(k,M)}else d=g,g=e;return g}function mn(){var g,k,M,j,ee,q,tt,st;if(g=d,k=on(),k!==e){for(M=[],j=d,ee=_t(),t.substr(d,2)===b?(q=b,d+=2):(q=e,R===0&&O(Ie)),q!==e?(tt=_t(),st=on(),st!==e?(ee=[ee,q,tt,st],j=ee):(d=j,j=e)):(d=j,j=e);j!==e;)M.push(j),j=d,ee=_t(),t.substr(d,2)===b?(q=b,d+=2):(q=e,R===0&&O(Ie)),q!==e?(tt=_t(),st=on(),st!==e?(ee=[ee,q,tt,st],j=ee):(d=j,j=e)):(d=j,j=e);Ne=g,g=Dt(k,M)}else d=g,g=e;return g}function on(){var g,k,M,j,ee,q,tt,st;if(g=d,k=Zn(),k!==e){for(M=[],j=d,ee=_t(),t.substr(d,2)===_?(q=_,d+=2):(q=e,R===0&&O(kt)),q===e&&(t.substr(d,2)===v?(q=v,d+=2):(q=e,R===0&&O(Tt))),q!==e?(tt=_t(),st=Zn(),st!==e?(ee=[ee,q,tt,st],j=ee):(d=j,j=e)):(d=j,j=e);j!==e;)M.push(j),j=d,ee=_t(),t.substr(d,2)===_?(q=_,d+=2):(q=e,R===0&&O(kt)),q===e&&(t.substr(d,2)===v?(q=v,d+=2):(q=e,R===0&&O(Tt))),q!==e?(tt=_t(),st=Zn(),st!==e?(ee=[ee,q,tt,st],j=ee):(d=j,j=e)):(d=j,j=e);Ne=g,g=Nt(k,M)}else d=g,g=e;return g}function Zn(){var g,k,M,j,ee,q,tt,st;if(g=d,k=Cn(),k!==e){for(M=[],j=d,ee=_t(),t.substr(d,2)===w?(q=w,d+=2):(q=e,R===0&&O(re)),q===e&&(t.charCodeAt(d)===62?(q=L,d++):(q=e,R===0&&O(it)),q===e&&(t.substr(d,2)===N?(q=N,d+=2):(q=e,R===0&&O(ut)),q===e&&(t.charCodeAt(d)===60?(q=V,d++):(q=e,R===0&&O(gt))))),q!==e?(tt=_t(),st=Cn(),st!==e?(ee=[ee,q,tt,st],j=ee):(d=j,j=e)):(d=j,j=e);j!==e;)M.push(j),j=d,ee=_t(),t.substr(d,2)===w?(q=w,d+=2):(q=e,R===0&&O(re)),q===e&&(t.charCodeAt(d)===62?(q=L,d++):(q=e,R===0&&O(it)),q===e&&(t.substr(d,2)===N?(q=N,d+=2):(q=e,R===0&&O(ut)),q===e&&(t.charCodeAt(d)===60?(q=V,d++):(q=e,R===0&&O(gt))))),q!==e?(tt=_t(),st=Cn(),st!==e?(ee=[ee,q,tt,st],j=ee):(d=j,j=e)):(d=j,j=e);Ne=g,g=nr(k,M)}else d=g,g=e;return g}function Cn(){var g,k,M,j,ee,q,tt,st;if(g=d,k=sn(),k!==e){for(M=[],j=d,ee=_t(),t.charCodeAt(d)===43?(q=F,d++):(q=e,R===0&&O(qe)),q===e&&(t.charCodeAt(d)===45?(q=$,d++):(q=e,R===0&&O(S))),q!==e?(tt=_t(),st=sn(),st!==e?(ee=[ee,q,tt,st],j=ee):(d=j,j=e)):(d=j,j=e);j!==e;)M.push(j),j=d,ee=_t(),t.charCodeAt(d)===43?(q=F,d++):(q=e,R===0&&O(qe)),q===e&&(t.charCodeAt(d)===45?(q=$,d++):(q=e,R===0&&O(S))),q!==e?(tt=_t(),st=sn(),st!==e?(ee=[ee,q,tt,st],j=ee):(d=j,j=e)):(d=j,j=e);Ne=g,g=lr(k,M)}else d=g,g=e;return g}function sn(){var g,k,M,j,ee,q,tt,st;if(g=d,k=bn(),k!==e){for(M=[],j=d,ee=_t(),t.charCodeAt(d)===47?(q=D,d++):(q=e,R===0&&O(rt)),q===e&&(t.charCodeAt(d)===42?(q=J,d++):(q=e,R===0&&O(le)),q===e&&(t.charCodeAt(d)===37?(q=Z,d++):(q=e,R===0&&O(Qe)))),q!==e?(tt=_t(),st=bn(),st!==e?(ee=[ee,q,tt,st],j=ee):(d=j,j=e)):(d=j,j=e);j!==e;)M.push(j),j=d,ee=_t(),t.charCodeAt(d)===47?(q=D,d++):(q=e,R===0&&O(rt)),q===e&&(t.charCodeAt(d)===42?(q=J,d++):(q=e,R===0&&O(le)),q===e&&(t.charCodeAt(d)===37?(q=Z,d++):(q=e,R===0&&O(Qe)))),q!==e?(tt=_t(),st=bn(),st!==e?(ee=[ee,q,tt,st],j=ee):(d=j,j=e)):(d=j,j=e);Ne=g,g=Er(k,M)}else d=g,g=e;return g}function bn(){var g,k,M,j;return g=d,k=d,R++,t.charCodeAt(d)===45?(M=$,d++):(M=e,R===0&&O(S)),R--,M!==e?(d=k,k=void 0):k=e,k!==e?(M=no(),M!==e?(Ne=g,g=Lr(M)):(d=g,g=e)):(d=g,g=e),g===e&&(g=d,k=d,R++,t.charCodeAt(d)===45?(M=$,d++):(M=e,R===0&&O(S)),R--,M!==e?(d=k,k=void 0):k=e,k!==e?(M=li(),M!==e?(Ne=g,g=Zr(M)):(d=g,g=e)):(d=g,g=e),g===e&&(g=d,t.charCodeAt(d)===33?(k=W,d++):(k=e,R===0&&O(At)),k===e&&(t.charCodeAt(d)===43?(k=F,d++):(k=e,R===0&&O(qe)),k===e&&(t.charCodeAt(d)===45?(k=$,d++):(k=e,R===0&&O(S)))),k!==e?(M=_t(),j=Qn(),j===e&&(j=oi()),j!==e?(Ne=g,g=Xe(k,j)):(d=g,g=e)):(d=g,g=e),g===e&&(g=oi()))),g}function Qn(){var g,k;return g=d,t.charCodeAt(d)===43?(k=F,d++):(k=e,R===0&&O(qe)),k===e&&(t.charCodeAt(d)===45?(k=$,d++):(k=e,R===0&&O(S))),k!==e&&(Ne=g,k=hr()),g=k,g}function oi(){var g,k,M,j,ee,q,tt,st,Tr,mr,Vr,vi,ue,er,br;if(g=d,k=Tn(),k!==e){for(M=[],j=d,ee=_t(),t.charCodeAt(d)===46?(q=G,d++):(q=e,R===0&&O(fe)),q!==e?(tt=_t(),st=Hn(),st!==e?(Tr=_t(),mr=d,t.charCodeAt(d)===40?(Vr=z,d++):(Vr=e,R===0&&O(me)),Vr!==e?(vi=_t(),ue=xn(),ue!==e?(er=_t(),t.charCodeAt(d)===41?(br=he,d++):(br=e,R===0&&O(ft)),br!==e?(Vr=[Vr,vi,ue,er,br],mr=Vr):(d=mr,mr=e)):(d=mr,mr=e)):(d=mr,mr=e),mr===e&&(mr=null),ee=[ee,q,tt,st,Tr,mr],j=ee):(d=j,j=e)):(d=j,j=e);j!==e;)M.push(j),j=d,ee=_t(),t.charCodeAt(d)===46?(q=G,d++):(q=e,R===0&&O(fe)),q!==e?(tt=_t(),st=Hn(),st!==e?(Tr=_t(),mr=d,t.charCodeAt(d)===40?(Vr=z,d++):(Vr=e,R===0&&O(me)),Vr!==e?(vi=_t(),ue=xn(),ue!==e?(er=_t(),t.charCodeAt(d)===41?(br=he,d++):(br=e,R===0&&O(ft)),br!==e?(Vr=[Vr,vi,ue,er,br],mr=Vr):(d=mr,mr=e)):(d=mr,mr=e)):(d=mr,mr=e),mr===e&&(mr=null),ee=[ee,q,tt,st,Tr,mr],j=ee):(d=j,j=e)):(d=j,j=e);Ne=g,g=Ae(k,M)}else d=g,g=e;return g}function Tn(){var g,k,M,j,ee;return g=d,k=Hn(),k!==e?(_t(),t.charCodeAt(d)===40?(M=z,d++):(M=e,R===0&&O(me)),M!==e?(_t(),j=xn(),j!==e?(_t(),t.charCodeAt(d)===41?(ee=he,d++):(ee=e,R===0&&O(ft)),ee!==e?(Ne=g,g=K(k,j)):(d=g,g=e)):(d=g,g=e)):(d=g,g=e)):(d=g,g=e),g===e&&(g=si()),g}function xn(){var g,k,M,j,ee,q;if(g=d,k=ar(),k!==e){for(M=[],j=d,_t(),t.charCodeAt(d)===44?(ee=ye,d++):(ee=e,R===0&&O($e)),ee!==e?(_t(),q=ar(),q!==e?j=q:(d=j,j=e)):(d=j,j=e);j!==e;)M.push(j),j=d,_t(),t.charCodeAt(d)===44?(ee=ye,d++):(ee=e,R===0&&O($e)),ee!==e?(_t(),q=ar(),q!==e?j=q:(d=j,j=e)):(d=j,j=e);Ne=g,g=Cr(k,M)}else d=g,g=e;return g===e&&(g=_t()),g}function si(){var g,k,M,j;return g=yi(),g===e&&(g=_n(),g===e&&(g=no(),g===e&&(g=li(),g===e&&(g=d,t.charCodeAt(d)===40?(k=z,d++):(k=e,R===0&&O(me)),k!==e?(_t(),M=ar(),M!==e?(_t(),t.charCodeAt(d)===41?(j=he,d++):(j=e,R===0&&O(ft)),j!==e?(Ne=g,g=Sr(M)):(d=g,g=e)):(d=g,g=e)):(d=g,g=e))))),g}function _n(){var g,k,M,j;return R++,g=d,t.charCodeAt(d)===39?(k=Te,d++):(k=e,R===0&&O(Ot)),k!==e?(M=Bi(),t.charCodeAt(d)===39?(j=Te,d++):(j=e,R===0&&O(Ot)),j!==e?(Ne=g,g=Rt(M)):(d=g,g=e)):(d=g,g=e),R--,g===e&&(k=e,R===0&&O(rr)),g}function Bi(){var g,k,M;for(g=d,k=[],M=Hi();M!==e;)k.push(M),M=Hi();return Ne=g,k=tn(k),g=k,g}function Hi(){var g,k,M,j,ee;if(g=d,t.substr(d,2)===s?(k=s,d+=2):(k=e,R===0&&O(Q)),k!==e?(M=_t(),j=ar(),j!==e?(_t(),t.charCodeAt(d)===125?(ee=a,d++):(ee=e,R===0&&O(Ee)),ee!==e?(Ne=g,g=Ve(j)):(d=g,g=e)):(d=g,g=e)):(d=g,g=e),g===e&&(g=d,t.substr(d,3)===l?(k=l,d+=3):(k=e,R===0&&O(ge)),k!==e&&(Ne=g,k=Bt()),g=k,g===e&&(g=d,k=d,R++,t.charCodeAt(d)===92?(M=c,d++):(M=e,R===0&&O(nt)),M===e&&(t.charCodeAt(d)===39?(M=Te,d++):(M=e,R===0&&O(Ot)),M===e&&(t.substr(d,2)===s?(M=s,d+=2):(M=e,R===0&&O(Q)))),R--,M===e?k=void 0:(d=k,k=e),k!==e?(t.length>d?(M=t.charAt(d),d++):(M=e,R===0&&O(Y)),M!==e?(Ne=g,g=_r()):(d=g,g=e)):(d=g,g=e),g===e))){if(g=d,t.substr(d,2)===s?(k=s,d+=2):(k=e,R===0&&O(Q)),k!==e){if(M=[],Ye.test(t.charAt(d))?(j=t.charAt(d),d++):(j=e,R===0&&O(Qt)),j!==e)for(;j!==e;)M.push(j),Ye.test(t.charAt(d))?(j=t.charAt(d),d++):(j=e,R===0&&O(Qt));else M=e;M!==e?(t.charCodeAt(d)===125?(j=a,d++):(j=e,R===0&&O(Ee)),j!==e?(Ne=g,g=xe()):(d=g,g=e)):(d=g,g=e)}else d=g,g=e;g===e&&(g=d,t.substr(d,2)===s?(k=s,d+=2):(k=e,R===0&&O(Q)),k!==e&&(Ne=g,k=Ft()),g=k,g===e&&(g=d,t.charCodeAt(d)===92?(k=c,d++):(k=e,R===0&&O(nt)),k!==e?(t.substr(d,2)===s?(M=s,d+=2):(M=e,R===0&&O(Q)),M!==e?(Ne=g,g=Le(M)):(d=g,g=e)):(d=g,g=e),g===e&&(g=d,t.charCodeAt(d)===92?(k=c,d++):(k=e,R===0&&O(nt)),k!==e?(t.length>d?(M=t.charAt(d),d++):(M=e,R===0&&O(Y)),M!==e?(Ne=g,g=mt(M)):(d=g,g=e)):(d=g,g=e),g===e&&(g=d,t.charCodeAt(d)===92?(k=c,d++):(k=e,R===0&&O(nt)),k!==e&&(Ne=g,k=ct()),g=k))))}return g}function li(){var g,k,M;if(R++,g=d,t.charCodeAt(d)===45?d++:R===0&&O(S),k=[],Re.test(t.charAt(d))?(M=t.charAt(d),d++):(M=e,R===0&&O(yt)),M!==e)for(;M!==e;)k.push(M),Re.test(t.charAt(d))?(M=t.charAt(d),d++):(M=e,R===0&&O(yt));else k=e;return k!==e?(Ne=g,g=St()):(d=g,g=e),R--,g===e&&R===0&&O(Oe),g}function no(){var g,k,M,j,ee,q,tt,st,Tr;for(R++,g=d,t.charCodeAt(d)===45?d++:R===0&&O(S),k=[],Re.test(t.charAt(d))?(M=t.charAt(d),d++):(M=e,R===0&&O(yt));M!==e;)k.push(M),Re.test(t.charAt(d))?(M=t.charAt(d),d++):(M=e,R===0&&O(yt));if(t.charCodeAt(d)===46?(M=G,d++):(M=e,R===0&&O(fe)),M!==e){if(j=[],Re.test(t.charAt(d))?(ee=t.charAt(d),d++):(ee=e,R===0&&O(yt)),ee!==e)for(;ee!==e;)j.push(ee),Re.test(t.charAt(d))?(ee=t.charAt(d),d++):(ee=e,R===0&&O(yt));else j=e;if(j!==e){if(ee=d,t.charCodeAt(d)===101?(q=_e,d++):(q=e,R===0&&O(Gt)),q===e&&(t.charCodeAt(d)===69?(q=be,d++):(q=e,R===0&&O(Kt))),q!==e){if(t.charCodeAt(d)===43?(tt=F,d++):(tt=e,R===0&&O(qe)),tt===e&&(t.charCodeAt(d)===45?(tt=$,d++):(tt=e,R===0&&O(S))),tt===e&&(tt=null),st=[],Re.test(t.charAt(d))?(Tr=t.charAt(d),d++):(Tr=e,R===0&&O(yt)),Tr!==e)for(;Tr!==e;)st.push(Tr),Re.test(t.charAt(d))?(Tr=t.charAt(d),d++):(Tr=e,R===0&&O(yt));else st=e;st!==e?(q=[q,tt,st],ee=q):(d=ee,ee=e)}else d=ee,ee=e;ee===e&&(ee=null),Ne=g,g=Zt()}else d=g,g=e}else d=g,g=e;if(g===e){if(g=d,t.charCodeAt(d)===45?d++:R===0&&O(S),k=[],Re.test(t.charAt(d))?(M=t.charAt(d),d++):(M=e,R===0&&O(yt)),M!==e)for(;M!==e;)k.push(M),Re.test(t.charAt(d))?(M=t.charAt(d),d++):(M=e,R===0&&O(yt));else k=e;if(k!==e)if(t.charCodeAt(d)===101?(M=_e,d++):(M=e,R===0&&O(Gt)),M===e&&(t.charCodeAt(d)===69?(M=be,d++):(M=e,R===0&&O(Kt))),M!==e){if(t.charCodeAt(d)===43?(j=F,d++):(j=e,R===0&&O(qe)),j===e&&(t.charCodeAt(d)===45?(j=$,d++):(j=e,R===0&&O(S))),j===e&&(j=null),ee=[],Re.test(t.charAt(d))?(q=t.charAt(d),d++):(q=e,R===0&&O(yt)),q!==e)for(;q!==e;)ee.push(q),Re.test(t.charAt(d))?(q=t.charAt(d),d++):(q=e,R===0&&O(yt));else ee=e;ee!==e?(Ne=g,g=T()):(d=g,g=e)}else d=g,g=e;else d=g,g=e}return R--,g===e&&R===0&&O(qt),g}function yi(){var g,k,M,j,ee,q,tt,st,Tr,mr,Vr;if(g=d,Me.test(t.charAt(d))?(k=t.charAt(d),d++):(k=e,R===0&&O(H)),k!==e){if(M=[],j=[],Ze.test(t.charAt(d))?(ee=t.charAt(d),d++):(ee=e,R===0&&O(ae)),ee!==e)for(;ee!==e;)j.push(ee),Ze.test(t.charAt(d))?(ee=t.charAt(d),d++):(ee=e,R===0&&O(ae));else j=e;for(j===e&&(j=d,t.charCodeAt(d)===46?(ee=G,d++):(ee=e,R===0&&O(fe)),ee!==e?(q=d,R++,tt=d,st=_t(),Tr=Hn(),Tr!==e?(mr=_t(),t.charCodeAt(d)===40?(Vr=z,d++):(Vr=e,R===0&&O(me)),Vr!==e?(st=[st,Tr,mr,Vr],tt=st):(d=tt,tt=e)):(d=tt,tt=e),R--,tt===e?q=void 0:(d=q,q=e),q!==e?(ee=[ee,q],j=ee):(d=j,j=e)):(d=j,j=e));j!==e;){if(M.push(j),j=[],Ze.test(t.charAt(d))?(ee=t.charAt(d),d++):(ee=e,R===0&&O(ae)),ee!==e)for(;ee!==e;)j.push(ee),Ze.test(t.charAt(d))?(ee=t.charAt(d),d++):(ee=e,R===0&&O(ae));else j=e;j===e&&(j=d,t.charCodeAt(d)===46?(ee=G,d++):(ee=e,R===0&&O(fe)),ee!==e?(q=d,R++,tt=d,st=_t(),Tr=Hn(),Tr!==e?(mr=_t(),t.charCodeAt(d)===40?(Vr=z,d++):(Vr=e,R===0&&O(me)),Vr!==e?(st=[st,Tr,mr,Vr],tt=st):(d=tt,tt=e)):(d=tt,tt=e),R--,tt===e?q=void 0:(d=q,q=e),q!==e?(ee=[ee,q],j=ee):(d=j,j=e)):(d=j,j=e))}Ne=g,g=ot()}else d=g,g=e;return g}function Hn(){var g,k,M,j;if(g=d,Me.test(t.charAt(d))?(k=t.charAt(d),d++):(k=e,R===0&&O(H)),k!==e){for(M=[],Ze.test(t.charAt(d))?(j=t.charAt(d),d++):(j=e,R===0&&O(ae));j!==e;)M.push(j),Ze.test(t.charAt(d))?(j=t.charAt(d),d++):(j=e,R===0&&O(ae));Ne=g,g=de()}else d=g,g=e;return g}function _t(){var g,k;for(R++,g=[],et.test(t.charAt(d))?(k=t.charAt(d),d++):(k=e,R===0&&O(ke));k!==e;)g.push(k),et.test(t.charAt(d))?(k=t.charAt(d),d++):(k=e,R===0&&O(ke));return R--,k=e,R===0&&O(dr),g}if(Dr=o(),Dr!==e&&d===t.length)return Dr;throw Dr!==e&&d<t.length&&O(oe()),Ke(fr,Or<t.length?t.charAt(Or):null,Or<t.length?wt(Or,Or+1):wt(Or,Or))}const V1=128,vo=new Map;let Ff;function Mf(t){return vo.get(t)}function Pf(t,r){t!==Ff&&(vo.delete(t),vo.size>=V1&&vo.delete(vo.keys().next().value),vo.set(t,r),Ff=t)}const Nf=new Set(["string","integer","number","boolean","datetime","color","url","dict","array"]);function I1(t){if(!(typeof t.name=="string"&&t.name))throw new Error("Incorrect function name");if(!(typeof t.body=="string"&&t.body))throw new Error("Incorrect function body");if(!(t.return_type&&Nf.has(t.return_type)))throw new Error("Incorrect function return_type");if(!Array.isArray(t.arguments))throw new Error("Incorrect function arguments");const r=new Set;t.arguments.forEach(e=>{if(!(typeof e.name=="string"&&e.name))throw new Error("Incorrect argument name");if(!(e.type&&Nf.has(e.type)))throw new Error("Incorrect argument type");if(r.has(e.name))throw new Error("Duplicate argument name");r.add(e.name)})}function D1(t){let r;return{args:t.arguments.map(e=>({type:e.type})),cb(e,...n){r||(r=Mf(t.body)||Hl(t.body,{startRule:"JsonStringContents"}),Pf(t.body,r));const i=new Map;n.forEach((a,l)=>{const c=kl(t.arguments[l].name,a.type,a.value);i.set(c.getName(),c)});const o=Os(i,e.customFunctions,e.store,r,{weekStartDay:e.weekStartDay});o.warnings.forEach(a=>{e.warnings.push(a)});const s=o.result;if(s.type==="error")throw new Error(s.value);if(s.type!==t.return_type)throw new Error("Incorrect function return_type");return s}}}function T1(t,r){if(!t)return r||void 0;if(!r)return;const e=new Map,n=new Set;for(const[i,o]of r){for(const s of o){const a=Xu(i,s);n.add(a)}e.set(i,o)}for(const[i,o]of t)for(const s of o){const a=Xu(i,s);if(!n.has(a)){n.add(a);const l=e.get(i)||[];l.push(s),e.set(i,l)}}return e}function F1(t){if(!t)return x(new Error("Missing object"));const r=t.card,e=t.templates||{};if(!r)return x(new Error("Missing card"));if(!r.states||!r.states.length)return x(new Error("Missing states"));for(const n in e)if(e.hasOwnProperty(n)&&n in Bu)return x(new Error("Template name collision"),{additional:{templateName:n}});for(let n=0;n<r.states.length;++n){if(!r.states[n].div)return x(new Error("Missing state div"),{additional:{stateId:r.states[n].state_id}});if(typeof r.states[n].state_id!="number")return x(new Error("Missing state_id"),{additional:{index:n}})}return null}function M1(t){return[...new Set(t)]}class Of{constructor(r){ur(this,"ast");this.ast=r}apply({variables:r,customFunctions:e,logError:n,store:i,weekStartDay:o,keepComplex:s}){try{const a=Os(r,e,i,this.ast,{weekStartDay:o});a.warnings.forEach(n);const l=a.result;if(l.type==="error"){n(x(new Error("Expression execution error"),{additional:{message:l.value}}));return}const c=l.value;if(c instanceof Date)return Yu(c);if(l.type==="boolean")return!!c;if(l.type==="color"){const u=Ei(String(c));if(u)return ro(u);n(x(new Error("Expression execution error")))}if(l.type==="integer"){if(c>Bp||c<Hp){n(x(new Error("Expression result is out of 32-bit int range")));return}return Number(c)}if(!s&&(l.type==="array"||l.type==="dict"))try{return JSON.stringify(c)}catch{return n(x(new Error(`Failed to stringify ${l.type}`))),`<${l.type}>`}return c}catch{n(x(new Error("Expression execution error")));return}}}function P1(t){return t.indexOf("@{")>-1||t.indexOf("\\")>-1}function Wl(t,r,e){if(t)if(typeof t=="string"){if(P1(t)){r.hasExpression=!0;try{const n=Mf(t)||Hl(t,{startRule:"JsonStringContents"});Pf(t,n);const i=Ju(n);return r.vars.push(...i),new Of(n)}catch{e(x(new Error("Unable to parse expression"),{additional:{expression:t}}));return}}}else{if(Array.isArray(t))return t.map(n=>Wl(n,r,e));if(typeof t=="object"){const n={};for(const i in t)n[i]=Wl(t[i],r,e);return n}}return t}function Ul(t,r){if(t){if(t instanceof Of)return t.apply(r);if(Array.isArray(t))return t.map(e=>Ul(e,r));if(typeof t=="object"){const e={};for(const n in t)e[n]=Ul(t[n],r);return e}}return t}function zf(t,r,e,n){const i={vars:[],hasExpression:!1},o=Wl(t,i,r);return{vars:M1(i.vars),hasExpression:i.hasExpression,applyVars(a,l,c){return Ul(o,{variables:a,customFunctions:l,logError:r,store:e,weekStartDay:n,keepComplex:c})}}}function N1(){return fi(new Map)}const O1={pagers:N1},Ls=new Map,Rs=new Map;function Lf(t){const r=Ls.get(t)||fi("");return Ls.has(t)||Ls.set(t,r),r}function z1(t){Ls.delete(t),Rs.delete(t)}function Bs(t){const r=Rs.get(t)||new Map;return Rs.has(t)||Rs.set(t,r),r}class Rf{setVariable(r){const e=r.getName(),n=Bs(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,r),Lf(this).set(e)}getVariable(r){return Bs(this).get(r)}list(){return Bs(this).values()}}function L1(){return new Rf}const R1=["start","stop","pause","resume","cancel","reset"],B1=new Set(R1);class H1{constructor(r){ur(this,"timers",new Map);ur(this,"logError");ur(this,"applyVars");ur(this,"hasVariableWithType");ur(this,"setVariableValue");ur(this,"execAnyActions");ur(this,"visibilityHandler");ur(this,"awaitActions",[]);this.logError=r.logError,this.applyVars=r.applyVars,this.hasVariableWithType=r.hasVariableWithType,this.setVariableValue=r.setVariableValue,this.execAnyActions=r.execAnyActions,this.visibilityHandler=()=>{document.visibilityState==="visible"?(this.awaitActions.forEach(({id:e,action:n})=>{this.execTimerAction(e,n)}),this.awaitActions=[],this.unholdAll()):this.holdAll()},document.addEventListener("visibilitychange",this.visibilityHandler)}destroy(){document.removeEventListener("visibilitychange",this.visibilityHandler);for(const[r,e]of this.timers)this.stopTimerTimeouts(e)}createTimer(r){if(!(r!=null&&r.id)){this.logError(x(new Error("Missing timer id")));return}if(!(r.duration||r.tick_interval&&(r.value_variable||r.tick_actions))){this.logError(x(new Error("Misconfigured timer"),{additional:{id:r.id}}));return}this.timers.set(r.id,{state:"stopped",definition:r})}execTimerAction(r,e){if(!r||!e||!this.timers.has(r)||!B1.has(e)){this.logError(x(new Error("Incorrect timer action"),{additional:{id:r,action:e}}));return}const n=e;if(document.visibilityState!=="visible"){this.awaitActions.push({id:r,action:n});return}const i=this.timers.get(r);this[n](i)}stopTimerTimeouts(r){r.durationTimeout&&(clearTimeout(r.durationTimeout),r.durationTimeout=void 0),r.tickTimeout&&(clearTimeout(r.tickTimeout),r.tickTimeout=void 0)}async tickOrUnholdAction(r){const e=performance.now(),n=(r.durationPassed||0)+e-(r.durationStarted||0);r.duration&&n>r.duration||(this.updateVariable(r,n),await this.callActions(r,"tick"),r.tickCount!==void 0&&++r.tickCount)}startOrResume(r){r.state="running",r.hold=!1,r.durationStarted=performance.now();const e=r.duration;e&&(r.durationTimeout=window.setTimeout(async()=>{this.updateVariable(r,e),r.tickCountPredict&&r.tickCount!==void 0&&r.tickCount<r.tickCountPredict&&await this.callActions(r,"tick"),this.stop(r)},Math.max(0,e-(r.durationPassed||0))));const n=r.tick;if(n){const i=()=>{const o=r.tickStarted=performance.now(),s=Math.max(0,n-(r.tickPassed||0));r.tickTimeout=window.setTimeout(async()=>{await this.tickOrUnholdAction(r),r.tickPassed=(performance.now()-o-s)%n,r.state==="running"&&i()},s)};i()}}start(r){if(r.state==="running"){this.logError(x(new Error("The timer is already running")));return}else if(r.state==="paused"){this.logError(x(new Error("The timer is paused")));return}const e=r.definition.value_variable;if(e&&!this.hasVariableWithType(e,"integer")){this.logError(x(new Error("Cannot find variable"),{additional:{name:e}}));return}if(e&&this.setVariableValue(e,0),r.definition.duration&&(r.duration=this.applyVars(r.definition.duration)),r.definition.tick_interval&&(r.tick=this.applyVars(r.definition.tick_interval)),r.duration!==void 0&&r.duration<0||r.tick!==void 0&&r.tick<=0){this.logError(x(new Error("Incorrect timer properties"),{additional:{id:r.definition.id}}));return}r.duration!==void 0&&r.tick!==void 0&&(r.tickCount=0,r.tickCountPredict=Math.floor(r.duration/r.tick)),this.startOrResume(r)}stop(r){if(r.state==="stopped"){this.logError(x(new Error("The timer has already been stopped")));return}r.state="stopped",r.durationPassed=0,r.tickPassed=0,this.stopTimerTimeouts(r),this.callActions(r,"end")}pause(r){if(r.state==="stopped"){this.logError(x(new Error("The timer has already been stopped")));return}else if(r.state==="paused"){this.logError(x(new Error("The timer has already been paused")));return}r.state="paused",this.stopTimerTimeouts(r);const e=performance.now();r.durationStarted&&(r.durationPassed=(r.durationPassed||0)+e-r.durationStarted),r.tickStarted&&(r.tickPassed=(r.tickPassed||0)+e-r.tickStarted);const n=r.definition.value_variable;n&&r.durationPassed&&this.setVariableValue(n,Math.round(r.durationPassed))}resume(r){if(r.state==="stopped"){this.logError(x(new Error("The timer has already been stopped")));return}else if(r.state==="running"){this.logError(x(new Error("The timer is already running")));return}this.startOrResume(r)}cancel(r){r.state!=="stopped"&&(r.state="stopped",r.durationPassed=0,r.tickPassed=0,this.stopTimerTimeouts(r))}reset(r){this.cancel(r),this.start(r)}updateVariable(r,e){const n=r.definition.value_variable;n&&this.setVariableValue(n,Math.round(e))}async callActions(r,e){const n=r.definition[e==="end"?"end_actions":"tick_actions"];if(n){const i=this.applyVars(n);return this.execAnyActions(i,{processUrls:!1})}}holdAll(){for(const[r,e]of this.timers)e.state==="running"&&(e.hold=!0,this.stopTimerTimeouts(e))}async unholdAll(){for(const[r,e]of this.timers)if(e.state==="running"&&e.hold){const n=performance.now();e.durationStarted&&(e.durationPassed=(e.durationPassed||0)+n-e.durationStarted),e.tickStarted&&(e.tickPassed=(e.tickPassed||0)+n-e.tickStarted),e.tick&&await this.tickOrUnholdAction(e),this.startOrResume(e)}}}function W1(t,r,e,n){const{variable_name:i,index:o,value:s}=n;if(!s||typeof o!="number"&&o!==void 0){e(x(new Error("Incorrect array_insert_value action"),{additional:{name:i}}));return}Gl(t,r,e,n,a=>{const l=a.getValue();if(typeof o=="number"&&(o<0||o>l.length))e(x(new Error(`Index out of bound for mutation ${n.type}`),{additional:{name:i,index:o,length:l.length}}));else{const c=l.slice();typeof o=="number"?c.splice(o,0,s.value):c.push(s.value),a.setValue(c)}})}function U1(t,r,e,n){const{variable_name:i,index:o}=n;if(typeof o!="number"){e(x(new Error("Incorrect array_remove_value action"),{additional:{name:i}}));return}Gl(t,r,e,n,s=>{const a=s.getValue();if(typeof o=="number"&&(o<0||o>=a.length))e(x(new Error(`Index out of bound for mutation ${n.type}`),{additional:{name:i,index:o,length:a.length}}));else{const l=a.slice();l.splice(o,1),s.setValue(l)}})}function G1(t,r,e,n){const{variable_name:i,index:o,value:s}=n;if(!s||typeof o!="number"){e(x(new Error("Incorrect array_set_value action"),{additional:{name:i}}));return}Gl(t,r,e,n,a=>{const l=a.getValue();if(typeof o=="number"&&(o<0||o>=l.length))e(x(new Error(`Index out of bound for mutation ${n.type}`),{additional:{name:i,index:o,length:l.length}}));else{const c=l.slice();c[o]=s.value,a.setValue(c)}})}function Gl(t,r,e,n,i){const{variable_name:o}=n;if(!o){e(x(new Error(`Incorrect ${n.type} action`),{additional:{name:o}}));return}const s=(t==null?void 0:t.getVariable(o))||r.get(o);if(!s){e(x(new Error("Cannot find variable"),{additional:{name:o}}));return}const a=s.getType();a==="array"?i(s):e(x(new Error("Trying to insert value into the non-array"),{additional:{name:o,type:a}}))}function Y1(t,r,e,n){const{variable_name:i,key:o,value:s}=n;if(typeof o!="string"){e(x(new Error("Incorrect dict_set_value action"),{additional:{name:i}}));return}if(!i){e(x(new Error(`Incorrect ${n.type} action`),{additional:{name:i}}));return}const a=(t==null?void 0:t.getVariable(i))||r.get(i);if(!a){e(x(new Error("Cannot find variable"),{additional:{name:i}}));return}const l=a.getType();if(l==="dict"){const u={...a.getValue()};s?u[o]=s.value:delete u[o],a.setValue(u)}else e(x(new Error("Trying to set value into the non-dict"),{additional:{name:i,type:l}}))}function J1(t,r){if(!(r.content&&(r.content.type==="text"||r.content.type==="url")&&typeof r.content.value=="string")){t(x(new Error("Incorrect action"),{additional:{action:r}}));return}if(!(typeof navigator<"u"&&"clipboard"in navigator&&navigator.clipboard&&"writeText"in navigator.clipboard&&typeof navigator.clipboard.writeText=="function")){t(x(new Error("Clipboard is unavailable"),{additional:{action:r}}));return}navigator.clipboard.writeText(r.content.value).catch(e=>{t(x(new Error("Failed to copy to the clipboard"),{additional:{originalError:String(e)}}))})}function q1(t){if(t==="normal"||t==="reverse"||t==="alternate"||t==="alternate_reverse")return t}function K1(t,r,e,n){var N,V,F,$;const i=Kn(t.duration,0);if(!i||t.type!=="color_animator"&&t.type!=="number_animator")return;const o=(N=t.start_value_typed?t.start_value_typed.value:t.start_value)!=null?N:r.getValue(),s=t.end_value_typed?t.end_value_typed.value:t.end_value;if(o===void 0||s===void 0||t.type==="color_animator"&&(typeof o!="string"&&o!==void 0||typeof s!="string")||t.type==="number_animator"&&(typeof o!="number"&&o!==void 0||typeof s!="number"))return;const a=t.type==="color_animator"&&Ei(o),l=t.type==="color_animator"&&Ei(s);if(t.type==="color_animator"&&(!a||!l))return;const c=qr(t.start_delay,0),u=bl(t.interpolator||"linear"),f=q1(t.direction)||"normal",h=((V=t.repeat_count)==null?void 0:V.type)==="infinity"?1/0:((F=t.repeat_count)==null?void 0:F.type)==="fixed"?qr(($=t.repeat_count)==null?void 0:$.value,1):1;let p=0,b=performance.now();const _=h===1/0?1/0:h*i+c;function v(D){if(t.type==="color_animator"){if(!a||!l)throw new Error("Missing start/end value");return ro({a:Si(Ci(a.a,l.a,D),0,255),r:Si(Ci(a.r,l.r,D),0,255),g:Si(Ci(a.g,l.g,D),0,255),b:Si(Ci(a.b,l.b,D),0,255)})}return Ci(o,s,D)}function w(D){const J=D-b;if(b=D,p+=J,p>=c){let Z=Math.floor((p-c)/i),W=(p-c-Z*i)/i;Z>=h&&(Z=h-1,W=1);let G;f==="normal"||f==="alternate"&&Z%2===0||f==="alternate_reverse"&&Z%2===1?G="normal":G="reverse",G==="reverse"&&(W=1-W);const z=v(u(W));r.setValue(z)}p<_?L=requestAnimationFrame(w):(e(),n(t.end_actions))}let L=requestAnimationFrame(w);return{stop(){cancelAnimationFrame(L),n(t.cancel_actions),n(t.end_actions)}}}function X1(t){let r=t;for(;r&&!r.isTooltipRoot;)r=r.parent;return r}function Bf(t){let r=t;for(;r!=null&&r.parent&&r.json.type!=="state"&&!r.isRootState&&!r.isTooltipRoot;)r=r.parent;return r}const Yl={outer:"divkit-bf0ea",root__clickable:"divkit-27458","root__clickable-no-transition":"divkit-3bb57",root__selectable:"undefined",tooltip:"divkit-e2fee",tooltip_visible:"divkit-04d22",tooltip__overlay:"divkit-00335"},Hf=300,Wf=0;function Z1(t){return Math.max(...t.map(r=>(Number(r.duration)||Hf)+(Number(r.start_delay)||Wf)))}function Uf(t,{animations:r,direction:e}){if(!r)return{};const n=rl(r),i=Z1(n);return n.some(s=>s.name==="no_animation")?{}:{duration:ns()?0:i,css:s=>{const a=s*i,l=n.map(_=>{var F,$,D,J,Z,W;const v=Number(_.start_delay)||Wf,w=Number(_.duration)||Hf,L=Math.max(0,Math.min(1,(a-v)/w)),V=(bl(_.interpolator||"ease_in_out")||as)(L);if(_.name==="fade"){const G=e==="in"&&(F=_.start_value)!=null?F:0,z=e==="in"?1:($=_.end_value)!=null?$:1;return{active:V>0&&V<1,opacity:(1-V)*G+V*z}}else if(_.name==="translate"){const G=-(e==="in"&&(D=_.start_value)!=null?D:10),z=-(e==="in"?0:(J=_.end_value)!=null?J:0);return{active:V>0&&V<1,translate:`translateY(${(1-V)*G+V*z}${e==="in"&&_.start_value!==void 0||e==="out"&&_.end_value!==void 0?"%":"px"})`}}else if(_.name==="scale"){const G=e==="in"&&(Z=_.start_value)!=null?Z:0,z=e==="in"?1:(W=_.end_value)!=null?W:1;return{active:V>0&&V<1,scale:`scale(${(1-V)*G+V*z})`}}return{}}),c=l.map(_=>_.opacity).filter(_=>_!==void 0).reduce((_,v)=>_*v,1),u=l.map(_=>_.translate).filter(_=>_!==void 0).join(" "),f=l.map(_=>_.scale).filter(_=>_!==void 0).join(" "),h=l.filter(_=>_.active).map(_=>_.scale).filter(_=>_!==void 0),p=h.length?h[h.length-1]:f;return`transform:${[u,p].filter(Boolean).join(" ")||"none"};opacity:${c}`}}}const{window:Gf}=ai;function Yf(t){let r,e,n;return{c(){r=Be("div"),this.h()},l(i){r=Ge(i,"DIV",{class:!0}),De(r).forEach(E),this.h()},h(){m(r,"class",Yl.tooltip__overlay)},m(i,o){ie(i,r,o),e||(n=Ue(r,"click",t[17]),e=!0)},p:C,d(i){i&&E(r),e=!1,n()}}}function Q1(t){let r,e,n,i,o,s,a,l,c,u=t[0]&&Yf(t);return n=new ii({props:{componentContext:t[1]}}),{c(){u&&u.c(),r=yr(),e=Be("div"),Ut(n.$$.fragment),this.h()},l(f){u&&u.l(f),r=vr(f),e=Ge(f,"DIV",{class:!0});var h=De(e);Jt(n.$$.fragment,h),h.forEach(E),this.h()},h(){m(e,"class",i=bt("tooltip",Yl,t[7])+" "+(t[13]?tr.root_platform_desktop:"")),B(e,"top",t[4]),B(e,"left",t[3]),B(e,"width",t[5]),B(e,"height",t[6])},m(f,h){u&&u.m(f,h),ie(f,r,h),ie(f,e,h),zt(n,e,null),t[23](e),a=!0,l||(c=[Ue(Gf,"click",t[17]),Ue(Gf,"resize",t[18])],l=!0)},p(f,[h]){t=f,t[0]?u?u.p(t,h):(u=Yf(t),u.c(),u.m(r.parentNode,r)):u&&(u.d(1),u=null);const p={};h&2&&(p.componentContext=t[1]),n.$set(p),(!a||h&8320&&i!==(i=bt("tooltip",Yl,t[7])+" "+(t[13]?tr.root_platform_desktop:"")))&&m(e,"class",i),h&16&&B(e,"top",t[4]),h&8&&B(e,"left",t[3]),h&32&&B(e,"width",t[5]),h&64&&B(e,"height",t[6])},i(f){a||(U(n.$$.fragment,f),f&&zn(()=>{a&&(s&&s.end(1),o=Qs(e,Uf,{animations:t[14]||Jf,direction:"in"}),o.start())}),a=!0)},o(f){te(n.$$.fragment,f),o&&o.invalidate(),f&&(s=Id(e,Uf,{animations:t[15]||Jf,direction:"out"})),a=!1},d(f){f&&(E(r),E(e)),u&&u.d(f),Lt(n),t[23](null),f&&s&&s.end(),l=!1,Yr(c)}}}const Jf={name:"set",items:[{name:"translate"},{name:"fade"}]};function x1(t,r,e){let n,i,o,s,a,l,c,u=C,f=()=>(u(),u=P(o,Y=>e(25,c=Y)),o),h,p=C,b=()=>(p(),p=P(i,Y=>e(26,h=Y)),i),_,v=C,w=()=>(v(),v=P(n,Y=>e(27,_=Y)),n),L,N,V=C,F=()=>(V(),V=P(s,Y=>e(14,N=Y)),s),$,D=C,J=()=>(D(),D=P(a,Y=>e(15,$=Y)),a);t.$$.on_destroy.push(()=>u()),t.$$.on_destroy.push(()=>p()),t.$$.on_destroy.push(()=>v()),t.$$.on_destroy.push(()=>V()),t.$$.on_destroy.push(()=>D());let{ownerNode:Z}=r,{data:W}=r,{internalId:G}=r,{parentComponentContext:z}=r;const he=Jr(en),ye=he.isDesktop;an(t,ye,Y=>e(13,L=Y));const Te=Date.now();let _e,be=!1,pt="",Ye="",Re="",Me="",Ze=null,et;function Q(){var qe,S;if(!_e||!Z)return;const Y=_e.parentElement;if(!Y)return;const Se=_e.style.cssText;e(2,_e.style.cssText+=";transform: none !important",_e);const Je=Z.getBoundingClientRect(),ne=_e.getBoundingClientRect(),lt=Y.getBoundingClientRect();e(2,_e.style.cssText=Se,_e);let je=0,Ie=0,kt=null,Tt=null,re=0,it=0;const ut=z.getJsonWithVars((qe=W.div)==null?void 0:qe.width),gt=z.getJsonWithVars((S=W.div)==null?void 0:S.width);if(!ut||ut.type==="match_parent"?re=kt=window.innerWidth:ut.type==="fixed"&&ut.value?re=kt=ut.value:re=ne.width,(gt==null?void 0:gt.type)==="match_parent"?it=Tt=window.innerHeight:(gt==null?void 0:gt.type)==="fixed"&>.value?it=Tt=gt.value:it=ne.height,_==="left"||_==="bottom-left"||_==="top-left")je=Je.left-re;else if(_==="top"||_==="bottom"||_==="center")je=(Je.left+Je.right)/2-re/2;else if(_==="right"||_==="bottom-right"||_==="top-right")je=Je.right;else return;if(_==="top"||_==="top-left"||_==="top-right")Ie=Je.top-it;else if(_==="left"||_==="right"||_==="center")Ie=(Je.top+Je.bottom)/2-it/2;else if(_==="bottom-left"||_==="bottom"||_==="bottom-right")Ie=Je.bottom;else return;je-=lt.left,Ie-=lt.top,je+=h||0,Ie+=c||0,e(3,pt=`${je}px`),e(4,Ye=`${Ie}px`),e(5,Re=kt!==null?`${kt}px`:""),e(6,Me=Tt!==null?`${Tt}px`:""),e(0,be=!0),kt===null||Tt===null?typeof ResizeObserver<"u"&&!Ze&&(Ze=new ResizeObserver(()=>{requestAnimationFrame(Q)}),Ze.observe(_e)):Ze==null||Ze.disconnect()}function Ee(Y){Date.now()-Te<100||Y.composedPath().includes(_e)||(Y.stopPropagation(),Y.preventDefault(),he.onTooltipClose(G))}function ge(){Q()}ei(()=>{if(he.tooltipRoot){const Y=window.getComputedStyle(_e);e(2,_e.style.fontSize=Y.fontSize,_e),e(2,_e.style.fontFamily=Y.fontFamily,_e),e(2,_e.style.lineHeight=Y.lineHeight,_e),he.tooltipRoot.appendChild(_e)}}),Qo(()=>{be||Q()}),un(()=>{et&&et.destroy(),Ze==null||Ze.disconnect()});function nt(Y){Pr[Y?"unshift":"push"](()=>{_e=Y,e(2,_e)})}return t.$$set=Y=>{"ownerNode"in Y&&e(19,Z=Y.ownerNode),"data"in Y&&e(20,W=Y.data),"internalId"in Y&&e(21,G=Y.internalId),"parentComponentContext"in Y&&e(22,z=Y.parentComponentContext)},t.$$.update=()=>{var Y,Se,Je,ne;t.$$.dirty&5242882&&(et&&et.destroy(),e(1,et=z.produceChildContext(W.div||{},{isTooltipRoot:!0}))),t.$$.dirty&5242880&&w(e(12,n=z.getDerivedFromVars(W.position))),t.$$.dirty&5242880&&b(e(11,i=z.getDerivedFromVars((Se=(Y=W.offset)==null?void 0:Y.x)==null?void 0:Se.value))),t.$$.dirty&5242880&&f(e(10,o=z.getDerivedFromVars((ne=(Je=W.offset)==null?void 0:Je.y)==null?void 0:ne.value))),t.$$.dirty&5242880&&F(e(9,s=z.getDerivedFromVars(W.animation_in))),t.$$.dirty&5242880&&J(e(8,a=z.getDerivedFromVars(W.animation_out))),t.$$.dirty&1&&e(7,l={visible:be})},[be,et,_e,pt,Ye,Re,Me,l,a,s,o,i,n,L,N,$,ye,Ee,ge,Z,W,G,z,nt]}class $1 extends Hr{constructor(r){super(),Br(this,r,x1,Q1,wr,{ownerNode:19,data:20,internalId:21,parentComponentContext:22})}}function qf(t,{delay:r=0,duration:e=400,easing:n=Nc,x:i=0,y:o=0,opacity:s=0}={}){const a=getComputedStyle(t),l=+a.opacity,c=a.transform==="none"?"":a.transform,u=l*(1-s),[f,h]=Ql(i),[p,b]=Ql(o);return{delay:r,duration:e,easing:n,css:(_,v)=>`
|
|
16
|
+
transform: ${c} translate(${(1-_)*f}${h}, ${(1-_)*p}${b});
|
|
17
|
+
opacity: ${l-u*v}`}}const Hs={root_platform_desktop:"divkit-6d515",menu:"divkit-8767a",menu_visible:"divkit-7481b",menu__list:"divkit-60a10",menu__item:"divkit-3133d"},{window:Kf}=ai;function Xf(t,r,e){const n=t.slice();return n[23]=r[e],n}function eb(t){let r=t[23].text+"",e;return{c(){e=Jn(r)},l(n){e=ci(n,r)},m(n,i){ie(n,e,i)},p(n,i){i&1&&r!==(r=n[23].text+"")&&Fi(e,r)},d(n){n&&E(e)}}}function Zf(t){let r,e,n,i;return e=new os({props:{componentContext:t[1],actions:t[23].actions||t[23].action&&[t[23].action],cls:Hs.menu__item+" "+t[10],customAction:t[14],$$slots:{default:[eb]},$$scope:{ctx:t}}}),{c(){r=Be("li"),Ut(e.$$.fragment),n=yr()},l(o){r=Ge(o,"LI",{});var s=De(r);Jt(e.$$.fragment,s),n=vr(s),s.forEach(E)},m(o,s){ie(o,r,s),zt(e,r,null),Ct(r,n),i=!0},p(o,s){const a={};s&2&&(a.componentContext=o[1]),s&1&&(a.actions=o[23].actions||o[23].action&&[o[23].action]),s&67108865&&(a.$$scope={dirty:s,ctx:o}),e.$set(a)},i(o){i||(U(e.$$.fragment,o),i=!0)},o(o){te(e.$$.fragment,o),i=!1},d(o){o&&E(r),Lt(e)}}}function tb(t){let r,e,n,i,o,s,a,l=sr(t[0]),c=[];for(let f=0;f<l.length;f+=1)c[f]=Zf(Xf(t,l,f));const u=f=>te(c[f],1,1,()=>{c[f]=null});return{c(){r=Be("div"),e=Be("ul");for(let f=0;f<c.length;f+=1)c[f].c();this.h()},l(f){r=Ge(f,"DIV",{class:!0});var h=De(r);e=Ge(h,"UL",{class:!0});var p=De(e);for(let b=0;b<c.length;b+=1)c[b].l(p);p.forEach(E),h.forEach(E),this.h()},h(){m(e,"class",Hs.menu__list),m(r,"class",n=bt("menu",Hs,t[7])+" "+(t[8]?tr.root_platform_desktop:"")+" "+t[9]),B(r,"top",t[4]),B(r,"left",t[3]),B(r,"width",t[5]),B(r,"height",t[6])},m(f,h){ie(f,r,h),Ct(r,e);for(let p=0;p<c.length;p+=1)c[p]&&c[p].m(e,null);t[17](r),o=!0,s||(a=[Ue(Kf,"click",t[12]),Ue(Kf,"resize",t[13])],s=!0)},p(f,[h]){if(h&17411){l=sr(f[0]);let p;for(p=0;p<l.length;p+=1){const b=Xf(f,l,p);c[p]?(c[p].p(b,h),U(c[p],1)):(c[p]=Zf(b),c[p].c(),U(c[p],1),c[p].m(e,null))}for(ir(),p=l.length;p<c.length;p+=1)u(p);or()}(!o||h&384&&n!==(n=bt("menu",Hs,f[7])+" "+(f[8]?tr.root_platform_desktop:"")+" "+f[9]))&&m(r,"class",n),h&16&&B(r,"top",f[4]),h&8&&B(r,"left",f[3]),h&32&&B(r,"width",f[5]),h&64&&B(r,"height",f[6])},i(f){if(!o){for(let h=0;h<l.length;h+=1)U(c[h]);f&&zn(()=>{o&&(i||(i=_a(r,qf,{y:20},!0)),i.run(1))}),o=!0}},o(f){c=c.filter(Boolean);for(let h=0;h<c.length;h+=1)te(c[h]);f&&(i||(i=_a(r,qf,{y:20},!1)),i.run(0)),o=!1},d(f){f&&E(r),dn(c,f),t[17](null),f&&i&&i.end(),s=!1,Yr(a)}}}function rb(t,r,e){let n,i,{ownerNode:o}=r,{items:s}=r,{parentComponentContext:a}=r;const l=Jr(en),c=l.getCustomization("menuPopupClass")||"",u=l.getCustomization("menuItemClass")||"",f=l.isDesktop;an(t,f,W=>e(8,i=W));const h=Date.now(),p=Cd();let b,_=!1,v="",w="",L="",N="",V=null;function F(){if(!b||!o)return;const W=b.parentElement;if(!W)return;const G=o.getBoundingClientRect(),z=b.getBoundingClientRect(),he=W.getBoundingClientRect(),ye=window.innerWidth,Te=window.innerHeight;let _e=0,be=0,pt=z.width,Ye=z.height;_e=G.left-he.left,be=G.bottom-he.top,_e+pt>ye&&(_e=ye-pt),_e<0&&(_e=0),be+Ye>Te&&(G.top-he.top-Ye>0?be=G.top-he.top-Ye:be=Te-Ye),be<0&&(be=0),e(3,v=`${_e}px`),e(4,w=`${be}px`),e(5,L=""),e(6,N=""),e(16,_=!0),typeof ResizeObserver<"u"&&!V&&(V=new ResizeObserver(()=>{requestAnimationFrame(F)}),V.observe(b))}function $(W){Date.now()-h<100||W.composedPath().includes(b)||p("close")}function D(){F()}function J(){return p("close"),!0}ei(()=>{if(l.tooltipRoot){const W=window.getComputedStyle(b);e(2,b.style.fontSize=W.fontSize,b),e(2,b.style.fontFamily=W.fontFamily,b),e(2,b.style.lineHeight=W.lineHeight,b),l.tooltipRoot.appendChild(b)}}),Qo(()=>{_||F()}),un(()=>{V==null||V.disconnect()});function Z(W){Pr[W?"unshift":"push"](()=>{b=W,e(2,b)})}return t.$$set=W=>{"ownerNode"in W&&e(15,o=W.ownerNode),"items"in W&&e(0,s=W.items),"parentComponentContext"in W&&e(1,a=W.parentComponentContext)},t.$$.update=()=>{t.$$.dirty&65536&&e(7,n={visible:_})},[s,a,b,v,w,L,N,n,i,c,u,f,$,D,J,o,_,Z]}class nb extends Hr{constructor(r){super(),Br(this,r,rb,tb,wr,{ownerNode:15,items:0,parentComponentContext:1})}}const{Map:ib}=ai;function Qf(t,r,e){const n=t.slice();return n[124]=r[e],n}function xf(t){let r,e,n,i,o,s,a,l,c,u;e=new Lp({props:{svgFiltersMap:t[5]}}),i=new ii({props:{componentContext:t[6]}});let f=t[3]&&$f(t),h=t[4]&&td(t);return{c(){r=Be("div"),Ut(e.$$.fragment),n=yr(),Ut(i.$$.fragment),o=yr(),f&&f.c(),s=yr(),h&&h.c(),this.h()},l(p){r=Ge(p,"DIV",{class:!0,dir:!0});var b=De(r);Jt(e.$$.fragment,b),n=vr(b),Jt(i.$$.fragment,b),o=vr(b),f&&f.l(b),s=vr(b),h&&h.l(b),b.forEach(E),this.h()},h(){m(r,"class",a=tr.root+(t[7]?` ${tr.root_platform_desktop}`:"")+(t[0]?` ${t[0]}`:"")),m(r,"dir",t[8])},m(p,b){ie(p,r,b),zt(e,r,null),Ct(r,n),zt(i,r,null),Ct(r,o),f&&f.m(r,null),Ct(r,s),h&&h.m(r,null),l=!0,c||(u=Ue(r,"touchstart",ab,{passive:!0}),c=!0)},p(p,b){const _={};b[0]&32&&(_.svgFiltersMap=p[5]),e.$set(_);const v={};b[0]&64&&(v.componentContext=p[6]),i.$set(v),p[3]?f?(f.p(p,b),b[0]&8&&U(f,1)):(f=$f(p),f.c(),U(f,1),f.m(r,s)):f&&(ir(),te(f,1,1,()=>{f=null}),or()),p[4]?h?(h.p(p,b),b[0]&16&&U(h,1)):(h=td(p),h.c(),U(h,1),h.m(r,null)):h&&(ir(),te(h,1,1,()=>{h=null}),or()),(!l||b[0]&129&&a!==(a=tr.root+(p[7]?` ${tr.root_platform_desktop}`:"")+(p[0]?` ${p[0]}`:"")))&&m(r,"class",a),(!l||b[0]&256)&&m(r,"dir",p[8])},i(p){l||(U(e.$$.fragment,p),U(i.$$.fragment,p),U(f),U(h),l=!0)},o(p){te(e.$$.fragment,p),te(i.$$.fragment,p),te(f),te(h),l=!1},d(p){p&&E(r),Lt(e),Lt(i),f&&f.d(),h&&h.d(),c=!1,u()}}}function $f(t){let r=[],e=new ib,n,i,o=sr(t[3]);const s=a=>a[124].internalId;for(let a=0;a<o.length;a+=1){let l=Qf(t,o,a),c=s(l);e.set(c,r[a]=ed(c,l))}return{c(){for(let a=0;a<r.length;a+=1)r[a].c();n=Pe()},l(a){for(let l=0;l<r.length;l+=1)r[l].l(a);n=Pe()},m(a,l){for(let c=0;c<r.length;c+=1)r[c]&&r[c].m(a,l);ie(a,n,l),i=!0},p(a,l){l[0]&72&&(o=sr(a[3]),ir(),r=pa(r,l,s,1,a,o,e,n.parentNode,ga,ed,n,Qf),or())},i(a){if(!i){for(let l=0;l<o.length;l+=1)U(r[l]);i=!0}},o(a){for(let l=0;l<r.length;l+=1)te(r[l]);i=!1},d(a){a&&E(n);for(let l=0;l<r.length;l+=1)r[l].d(a)}}}function ed(t,r){let e,n,i;return n=new $1({props:{ownerNode:r[124].ownerNode,data:r[124].desc,internalId:r[124].internalId,parentComponentContext:r[124].componentContext||r[6]}}),{key:t,first:null,c(){e=Pe(),Ut(n.$$.fragment),this.h()},l(o){e=Pe(),Jt(n.$$.fragment,o),this.h()},h(){this.first=e},m(o,s){ie(o,e,s),zt(n,o,s),i=!0},p(o,s){r=o;const a={};s[0]&8&&(a.ownerNode=r[124].ownerNode),s[0]&8&&(a.data=r[124].desc),s[0]&8&&(a.internalId=r[124].internalId),s[0]&72&&(a.parentComponentContext=r[124].componentContext||r[6]),n.$set(a)},i(o){i||(U(n.$$.fragment,o),i=!0)},o(o){te(n.$$.fragment,o),i=!1},d(o){o&&E(e),Lt(n,o)}}}function td(t){let r,e;return r=new nb({props:{ownerNode:t[4].node,items:t[4].items,parentComponentContext:t[4].componentContext||t[6]}}),r.$on("close",t[38]),{c(){Ut(r.$$.fragment)},l(n){Jt(r.$$.fragment,n)},m(n,i){zt(r,n,i),e=!0},p(n,i){const o={};i[0]&16&&(o.ownerNode=n[4].node),i[0]&16&&(o.items=n[4].items),i[0]&80&&(o.parentComponentContext=n[4].componentContext||n[6]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){te(r.$$.fragment,n),e=!1},d(n){Lt(r,n)}}}function ob(t){let r,e,n=!t[1]&&!t[2]&&t[6]&&xf(t);return{c(){n&&n.c(),r=Pe()},l(i){n&&n.l(i),r=Pe()},m(i,o){n&&n.m(i,o),ie(i,r,o),e=!0},p(i,o){!i[1]&&!i[2]&&i[6]?n?(n.p(i,o),o[0]&70&&U(n,1)):(n=xf(i),n.c(),U(n,1),n.m(r.parentNode,r)):n&&(ir(),te(n,1,1,()=>{n=null}),or())},i(i){e||(U(n),e=!0)},o(i){te(n),e=!1},d(i){i&&E(r),n&&n.d(i)}}}let Jl=fi(!0),Ws=0;function rd(){Jl.set(!1)}function nd(){Jl.set(!0)}const sb=new Set(["string","integer","number","url","color","boolean"]),lb=new Set(["string","integer","number","url","color","boolean","array","dict"]);function Ri(t,r){if(t&&r)return new Map([...t,...r]);if(t)return t;if(r)return r}function ab(){}function cb(t,r,e){var Dr,nn;let n,i,o,s,{id:a}=r,{json:l={}}=r,{platform:c="auto"}=r,{theme:u="system"}=r,{globalVariablesController:f=void 0}=r,{mix:h=""}=r,{customization:p={}}=r,{builtinProtocols:b=["http","https","tel","mailto","intent"]}=r,{extensions:_=new Map}=r,{onError:v=void 0}=r,{onStat:w=void 0}=r,{onCustomAction:L=void 0}=r,{onComponent:N=void 0}=r,{typefaceProvider:V=y=>""}=r,{fetchInit:F={}}=r,{tooltipRoot:$=void 0}=r,{customComponents:D=void 0}=r,{direction:J="ltr"}=r,{store:Z=void 0}=r,{weekStartDay:W=0}=r,G=!0,z=fi(c==="desktop");if(an(t,z,y=>e(7,o=y)),c==="auto"&&typeof matchMedia<"u"){const y=matchMedia("(any-pointer: coarse)");z.set(!y.matches),y.addListener(()=>{z.set(!y.matches)})}let he="light",ye=null;const Te=fi(J==="rtl"?"rtl":"ltr");an(t,Te,y=>e(8,s=y));function _e(){u!=="system"||!ye||e(35,he=ye.matches?"dark":"light")}function be(y){e(12,u=y)}function pt(){return new Map}function Ye(){return new Map}function Re(y){e(11,l=y)}const Me=new Set(b);let Ze=!1,et=!1;a||(et=!0,S(x(new Error('"id" prop is required'))));const Q={stateChange:!1},Ee=f||new Rf,ge=Lf(Ee),nt=Bs(Ee),Y=new Map,Se=new Map,Je=new Map;let ne=null;const lt=new Map;let je=0,Ie=[];const kt=new Set;let Tt;const re=[];function it(y){return p==null?void 0:p[y]}function ut(y,A,X,oe=!1,se=void 0){if(!A)return qi(A);const Ce=Ri(Se,X),wt=zf(A,y,Z,W);if(!wt.vars.length)return wt.hasExpression?qi(wt.applyVars(Ce,se)):qi(A);const O=wt.vars.map(Ke=>Ce.get(Ke)||Ve(Ke)).filter(ji);return Yi(O,()=>wt.applyVars(Ce,se,oe))}function gt(y,A,X,oe=!1,se=void 0){const Ce=zf(A,y,Z,W);if(!Ce.hasExpression)return A;const wt=Ri(Se,X);return Ce.applyVars(wt,se,oe)}function qe(y,A,X){const oe=new Map,se=kl(y,"dict",A);oe.set(y,se);const Ce=kl("index","integer",X);return oe.set("index",Ce),oe}function S(y){v?v({error:y}):(y==null?void 0:y.level)==="warn"?console.warn(y):console.error(y)}function rt(y,A){w&&w({type:y,action:A})}function le(y){return y in n}function Qe(y,A){if(!y)return{json:y,templateContext:A};const X=new Set([y.type]);for(;y.type&&y.type in n;){if({json:y,templateContext:A}=Rp(y,A,n,S),X.has(y.type))return{json:y,templateContext:A};X.add(y.type)}return{json:y,templateContext:A}}let At=0;function fe(y){return`${a}-${At++}`}function me(y){return`divkit-${fe()}`}let ft={},$e={};function rr(y,A){const X=`${y}:${A}`;if($e[X]=$e[X]||0,++$e[X],ft[X])return ft[X];const oe=`${fe()}-svg-filter`;return e(5,ft={...ft,[X]:oe}),oe}function Ot(y,A){if(!y)return;const X=`${y}:${A}`;$e[X]&&--$e[X]===0&&e(5,ft=Object.keys(ft).reduce((oe,se)=>($e[se]&&(oe[se]=ft[se]),oe),{}))}const Qt=fe()+"-id-",Oe=new Map,yt=new Map;function qt(y){return Qt+y}function Gt(y,A){Oe.set(y,A)}function Kt(y){Oe.delete(y);const A=qt(y);yt.has(A)&&yt.delete(A)}function H(y){var X;const A=(X=Oe.get(y))==null?void 0:X();if(A){const oe=qt(y),se=yt.get(oe);return se&&se!==A&&se.removeAttribute("id"),A.setAttribute("id",oe),yt.set(oe,A),oe}return""}async function ae(y,A){var Ce,wt,O;if(!y)throw new Error("Missing state id");let X=y.split("/");const oe=X.length%2===0&&X1(A);let se=oe||jt;if(!oe)if((Ce=se.states)!=null&&Ce.root){if(se=await se.states.root(X[0]),!se)return;X=X.slice(1)}else return;for(let Ke=0;Ke<X.length;Ke+=2){const Ht=X[Ke],Mt=X[Ke+1];if((wt=se.states)!=null&&wt[Ht]){if(se=await((O=se.states)==null?void 0:O[Ht](Mt)),!se)return}else return}}function dr(y,A,{item:X,step:oe,overflow:se}){var Ke,Ht,Mt,Wt,ar;if(!A)throw new Error(`Missing id for "${y}" action`);const Ce=Number(X);if(y==="set_current_item"&&Number.isNaN(Ce))throw new Error(`Incorrect item for "${y}" action`);let wt=Number(oe);if(!oe&&(y==="set_previous_item"||y==="set_next_item")&&(wt=1),!oe&&(y==="scroll_backward"||y==="scroll_forward"||y==="scroll_to_position")||Number.isNaN(wt))throw new Error(`Incorrect step value for "${y}" action`);if(se&&se!=="clamp"&&se!=="ring")throw new Error(`Incorrect overflow value for "${y}" action`);se=se||"clamp";const O=Lr(A);if(O)switch(y){case"set_current_item":O.setCurrentItem(Ce);return;case"set_previous_item":O.setPreviousItem(wt,se);return;case"set_next_item":O.setNextItem(wt,se);return;case"scroll_to_start":(Ke=O.scrollToStart)==null||Ke.call(O);return;case"scroll_to_end":(Ht=O.scrollToEnd)==null||Ht.call(O);return;case"scroll_backward":(Mt=O.scrollBackward)==null||Mt.call(O,wt,se);return;case"scroll_forward":(Wt=O.scrollForward)==null||Wt.call(O,wt,se);return;case"scroll_to_position":(ar=O.scrollToPosition)==null||ar.call(O,wt);return}}function ke(y,A,X){const oe=(X==null?void 0:X.logError)||S;if(y){const se=Lr(y);se?A==="start"?se.start():A==="pause"?se.pause():oe(x(new Error("Unknown video action"),{additional:{id:y,action:A}})):oe(x(new Error("Video component is not found"),{additional:{id:y,action:A}}))}else oe(x(new Error("Missing id in video action"),{additional:{action:A}}))}function It(y,A,X){const oe=(X==null?void 0:X.logError)||S;if(y){let se;typeof F=="function"?se=F(y):se=F,fetch(y,se).then(Ce=>{if(!Ce.ok)throw new Error("Response is not ok");return Ce.json()}).then(Ce=>{var wt,O,Ke;if(!Ce){oe(x(new Error("Incorrect patch"),{additional:{url:y}}));return}if(Ce.templates)for(const Ht in Ce.templates)n.hasOwnProperty(Ht)||(n[Ht]=Ce.templates[Ht]);if(Array.isArray((wt=Ce.patch)==null?void 0:wt.changes)){if(Ce.patch.mode==="transactional"){const Ht=Ce.patch.changes.find(Mt=>{const Wt=ht.get(Mt.id);if(!Wt)return!0;const ar=Array.isArray(Mt.items)?Mt.items.length:0;return!!(Wt.isSingleMode&&ar!==1)});if(Ht){oe(x(new Error("Skipping transactional, child is not found or broken"),{additional:{url:y,id:Ht.id}})),Fe((O=Ce.patch)==null?void 0:O.on_failed_actions),Fe(A==null?void 0:A.on_fail_actions);return}}Ce.patch.changes.forEach(Ht=>{const Mt=ht.get(Ht.id);Mt&&Mt.replaceWith(Ht.id,Ht.items)}),Fe((Ke=Ce.patch)==null?void 0:Ke.on_applied_actions),Fe(A==null?void 0:A.on_success_actions)}}).catch(Ce=>{oe(x(new Error("Failed to download the patch"),{additional:{url:y,originalError:Ce}})),Fe(A==null?void 0:A.on_fail_actions)})}else oe(x(new Error("Missing url in download action"),{additional:{url:y}}))}function He(y,A,X){var O;const oe=(X==null?void 0:X.logError)||S;if(!y){oe(x(new Error("Missing id in show_tooltip action")));return}const se=Nt.get(y);if(!se){oe(x(new Error("Tooltip with the provided id is not found"),{additional:{id:y}}));return}if(A!=="true"&&A!==!0&&kt.has(y))return;kt.add(y);const Ce={internalId:++je,ownerNode:se.onwerNode,desc:se.tooltip,timeoutId:0,componentContext:X};e(3,Ie=[...Ie,Ce]);const wt=(O=se.tooltip.duration)!=null?O:5e3;wt&&(Ce.timeoutId=window.setTimeout(()=>{Ce.timeoutId=0,e(3,Ie=Ie.filter(Ke=>Ke.internalId!==Ce.internalId))},wt))}function vt(y,A){const X=(A==null?void 0:A.logError)||S;if(!y){X(x(new Error("Missing id in hide_tooltip action")));return}e(3,Ie=Ie.filter(oe=>{const se=oe.desc.id!==y;return!se&&oe.timeoutId&&(clearTimeout(oe.timeoutId),oe.timeoutId=null),se}))}function ze(y,A,X,oe,se){const Ce=(y==null?void 0:y.logError)||S;if(!Z){Ce(x(new Error("Store is not configured")));return}let wt=X;if(!A||!wt||!oe||!se){Ce(x(new Error("Missing required params for set_stored_value")));return}if(!lb.has(oe)){Ce(x(new Error("Incorrect stored type")));return}if(oe==="boolean"&&(wt=wt==="true"||wt==="1"),Z.set)Z.set(A,oe,wt,Number(se));else if(Z.setValue){if(!sb.has(oe)){Ce(x(new Error("Incorrect stored type")));return}if(typeof wt!="string"&&typeof wt!="number"&&typeof wt!="boolean"){Ce(x(new Error("Incorrect stored value")));return}(oe==="integer"||oe==="number")&&(wt=Number(wt)),Z.setValue(A,oe,wt,Number(se))}}function at(y){Et(gt(S,y))}async function Et(y,A){var wt,O;const X=y.scope_id,oe=(A==null?void 0:A.logError)||S;if(X){const Ke=nr.get(X);if(Ke&&(Ke==null?void 0:Ke.size)>1)oe(x(new Error(`Ambiguous scope id. There are ${Ke.size} divs with id '${X}'`),{additional:{count:Ke.size,scopeId:X}}));else if((Ke==null?void 0:Ke.size)===1){const Ht=Ke.values().next().value;Ht&&(A=Ht)}}const se=y.url?String(y.url):"",Ce=y.typed;if(In(y)){if(se)try{const Ke=se.replace(/div-action:\/\//,""),Ht=/([^?]+)\?(.+)/.exec(Ke);if(!Ht)return;const Mt=new URLSearchParams(Ht[2]);switch(Ht[1]){case"set_state":await ae(Mt.get("state_id"),A);break;case"set_current_item":case"set_previous_item":case"set_next_item":case"scroll_to_start":case"scroll_to_end":case"scroll_backward":case"scroll_forward":case"scroll_to_position":dr(Ht[1],Mt.get("id"),{item:Mt.get("item"),step:Mt.get("step"),overflow:Mt.get("overflow")});break;case"set_variable":const Wt=Mt.get("name"),ar=Mt.get("value");if(Wt&&ar!==null){const mn=(A==null?void 0:A.getVariable(Wt))||Se.get(Wt);if(mn){const on=mn.getType();on==="dict"||on==="array"?oe(x(new Error(`Setting ${on} variables is not supported`),{additional:{name:Wt}})):mn.set(ar)}else oe(x(new Error("Cannot find variable"),{additional:{name:Wt}}))}else oe(x(new Error("Incorrect set_variable_action"),{additional:{url:Ke}}));break;case"timer":const fn=Mt.get("action"),Rr=Mt.get("id");ne?ne.execTimerAction(Rr,fn):oe(x(new Error("Incorrect timer action"),{additional:{id:Rr,action:fn}}));break;case"video":ke(Mt.get("id"),Mt.get("action"),A);break;case"download":It(Mt.get("url"),y.download_callbacks,A);break;case"show_tooltip":He(Mt.get("id"),Mt.get("multiple"),A);break;case"hide_tooltip":vt(Mt.get("id"),A);break;case"set_stored_value":{ze(A,Mt.get("name"),Mt.get("value"),Mt.get("type"),Mt.get("lifetime"));break}default:oe(x(new Error("Unknown type of action"),{additional:{url:se}}))}}catch(Ke){oe(x(Ke,{additional:{url:se}}))}else if(Ce)switch(Ce.type){case"set_variable":{const{variable_name:Ke,value:Ht}=Ce;if(Ke&&Ht){const Mt=(A==null?void 0:A.getVariable(Ke))||Se.get(Ke);Mt?Mt.getType()===Ht.type?Mt.setValue(Ht.value):oe(x(new Error("Trying to set value with invalid type"),{additional:{name:Ke,type:Ht.type}})):oe(x(new Error("Cannot find variable"),{additional:{name:Ke}}))}else oe(x(new Error("Incorrect set_variable action"),{additional:{name:Ke}}));break}case"array_insert_value":W1(A,Se,oe,Ce);break;case"array_remove_value":U1(A,Se,oe,Ce);break;case"array_set_value":G1(A,Se,oe,Ce);break;case"copy_to_clipboard":J1(oe,Ce);break;case"focus_element":{const Ke=Ce.element_id&&Dt.get(Ce.element_id);Ke?Ke.focus():oe(x(new Error("Incorrect focus_element action"),{additional:{elementId:Ce.element_id}}));break}case"clear_focus":{try{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}catch{}break}case"dict_set_value":{Y1(A,Se,oe,Ce);break}case"animator_start":{const Ke=Ce.animator_id&&(A==null?void 0:A.getAnimator(Ce.animator_id));if(!Ke){oe(x(new Error("Missing animator"),{additional:{animator_id:Ce.animator_id}}));return}const{duration:Ht,start_delay:Mt,interpolator:Wt,direction:ar,repeat_count:fn,start_value:Rr,end_value:mn}=Ce,on=A?A.getJsonWithVars(Ke):gt(S,Ke),Zn={...on,end_actions:Ke.end_actions,cancel_actions:Ke.cancel_actions,duration:Ht!==void 0?Ht:on.duration,start_delay:Mt!==void 0?Mt:on.start_delay,interpolator:Wt!==void 0?Wt:on.interpolator,direction:ar!==void 0?ar:on.direction,repeat_count:fn!==void 0?fn:on.repeat_count,start_value_typed:Rr,end_value_typed:mn},Cn=Ke.variable_name&&((A==null?void 0:A.getVariable(Ke.variable_name))||Se.get(Ke.variable_name));if(!Cn)return;const sn=lt.get(Ke.id);sn&&sn.stop();const bn=K1(Zn,Cn,()=>{lt.delete(Ke.id)},(Qn,oi)=>{const Tn=(A==null?void 0:A.execAnyActions)||Fe,xn=A?A.getJsonWithVars(Qn):gt(S,Qn);return Tn(xn,oi)});bn&<.set(Ke.id,bn);break}case"animator_stop":{const Ke=lt.get(Ce.animator_id);Ke&&(Ke.stop(),lt.delete(Ce.animator_id));break}case"show_tooltip":{He(Ce.id,Ce.multiple,A);break}case"hide_tooltip":{vt(Ce.id,A);break}case"timer":{ne?ne.execTimerAction(Ce.id,Ce.action):oe(x(new Error("Incorrect timer action"),{additional:{id:Ce.id,action:Ce.action}}));break}case"download":{It(Ce.url,Ce,A);break}case"video":{ke(Ce.id,Ce.action,A);break}case"set_stored_value":{ze(A,Ce.name,(wt=Ce.value)==null?void 0:wt.value,(O=Ce.value)==null?void 0:O.type,Ce.lifetime);break}case"set_state":{await ae(Ce.state_id,A);break}default:oe(x(new Error("Unknown type of action"),{additional:{type:Ce.type}}))}}}async function Fe(y,A={}){if(!y||!Array.isArray(y))return;const X=y.filter(In);for(let oe=0;oe<X.length;++oe){let se=X[oe];const Ce=se.url,wt=se.typed;if(Ce){const O=ol(Ce);if(O)if(sl(O,Me)){if(A.processUrls)if(se.target==="_blank"){const Ke=window.open("","_blank");Ke&&(Ke.opener=null,Ke.location=Ce)}else location.href=Ce}else O==="div-action"?(await Et(se,A.componentContext),await vn()):se.log_id&&(dt(se),await vn())}else wt?await Et(se,A.componentContext):A.node&&Array.isArray(se.menu_items)&&se.menu_items.length&&e(4,Tt={items:se.menu_items,node:A.node,componentContext:A.componentContext})}X.forEach(oe=>{oe.log_id&&rt(A.logType||"click",oe)})}function dt(y){L==null||L(y)}function Xt(y,A){const X=(y==null?void 0:y.logError)||S;if(!Array.isArray(A)||!A.length)return;const oe=[];return A.forEach(se=>{let Ce=!1;if(typeof se.condition!="string"){X(x(new Error("variable_trigger has a condition that is not a string"),{additional:{condition:se.condition}}));return}if(!Array.isArray(se.actions)){X(x(new Error("variable_trigger has no actions"),{additional:{condition:se.condition}}));return}const wt=se.mode||"on_condition";if(wt!=="on_variable"&&wt!=="on_condition"){X(x(new Error("variable_trigger has an unsupported mode"),{additional:{mode:wt}}));return}try{const O=Hl(se.condition,{startRule:"JsonStringContents"}),Ke=Ju(O);if(!Ke.length){X(x(new Error("variable_trigger must have variables in the condition"),{additional:{condition:se.condition}}));return}const Ht=Ke.map(Wt=>(y==null?void 0:y.getVariable(Wt))||Se.get(Wt)||Ve(Wt)),Mt=Yi(Ht,()=>{const Wt=y?y.evalExpression(Z,O,{weekStartDay:W}):Os(Se,void 0,Z,O,{weekStartDay:W});return Wt.warnings.forEach(S),Wt.result}).subscribe(async Wt=>{if(Wt.type==="error"){X(x(new Error("variable_trigger condition execution error"),{additional:{message:Wt.value}}));return}if(Wt.value&&(wt==="on_variable"||wt==="on_condition"&&Ce===!1)){Ce=!!Wt.value;const ar=se.actions.map(fn=>y?y.getJsonWithVars(fn):gt(S,fn));y?await y.execAnyActions(ar,{logType:"trigger"}):await Fe(ar,{logType:"trigger"})}else Ce=!!Wt.value});oe.push(Mt)}catch{X(x(new Error("Unable to parse variable_trigger"),{additional:{condition:se.condition}}))}}),()=>{oe.forEach(se=>{se()})}}function cr(y){return Q[y]}function pr(y,A){Q[y]=A}const Yt=new Map,ht=new Map,Dt=new Map,Nt=new Map,nr=new Map;function lr(y,A){if(Yt.has(y)){S(x(new Error("Duplicate instance id"),{additional:{id:y}}));return}Yt.set(y,A)}function Er(y){Yt.delete(y)}function Lr(y){if(!Yt.has(y)){S(x(new Error("Missing instance with id"),{additional:{id:y}}));return}return Yt.get(y)}function Zr(y,A){ht.set(y,A)}function Xe(y){ht.delete(y)}function hr(y,A){Dt.set(y,A)}function Ae(y){Dt.delete(y)}function K(y,A){const X=A.id;X&&(Nt.has(X)&&S(x(new Error("Duplicate tooltip id"),{additional:{id:X}})),Nt.set(X,{onwerNode:y,tooltip:A}))}function Cr(y){const A=y.id;A&&(Nt.delete(A),Ie.some(X=>X.desc.id===A)&&e(3,Ie=Ie.filter(X=>X.desc.id!==A)))}const Sr=new Map;function Rt(y){Sr.has(y)||Sr.set(y,O1[y]())}function tn(y){return Sr.has(y)||Rt(y),Sr.get(y)}function Ve(y){const A=Je.get(y)||fi(void 0);return Je.has(y)||Je.set(y,A),A}function Bt(){if(!de)return;de[he].forEach(A=>{const X=Se.get(A.name);X&&X.setValue(A.color)})}function _r(){return Me}function xe(y,A){const X=_.get(y);if(X)return new X(A||{})}function Ft(y){return{variables:Ri(Se,y.variables),processExpressions(A){return gt(S,A)},execAction:at,logError:S,getComponentProperty(A){return y.getJsonWithVars(y.json[A])},direction:J}}function Le(y){const A={id:"",json:{},path:[],templateContext:{},logError(X){X.additional=X.additional||{},X.additional.path=A.path.join("/"),S(X)},execAnyActions(X,oe={}){return Fe(X,{componentContext:A,processUrls:oe.processUrls,node:oe.node,logType:oe.logType})},getDerivedFromVars(X,oe,se=!1){return ut(A.logError,X,Ri(A.variables,oe),se,A.customFunctions)},getJsonWithVars(X,oe,se=!1){return gt(A.logError,X,Ri(A.variables,oe),se,A.customFunctions)},evalExpression(X,oe,se){return Os(Ri(Se,A.variables),A.customFunctions,X,oe,se)},produceChildContext(X,oe={}){const se=Le(A);let Ce=X,wt=A.templateContext;const{templateContext:O,json:Ke}=Qe(Ce,wt);if(se.json=Ke,se.templateContext=O,se.origJson=X,se.id=oe.id||Ke.id||"",se.id){let Wt=nr.get(se.id);Wt||(Wt=new Set,nr.set(se.id,Wt)),Wt.add(se)}oe.path!==void 0&&se.path.push(String(oe.path)),X.type&&!oe.isRootState&&se.path.push(X.type),oe.isTooltipRoot&&(se.isTooltipRoot=!0);let Ht;Array.isArray(Ke.variables)&&(Ht=new Map,Ke.variables.forEach(Wt=>{const ar=Zt(Wt);ar&&Ht&&Ht.set(ar.getName(),ar)})),se.variables=Ri(A.variables,Ri(Ht,oe.variables));let Mt;return Array.isArray(Ke.functions)&&(Mt=new Map,Ke.functions.forEach(Wt=>{if(Mt){try{I1(Wt)}catch(Rr){A.logError(x(Rr));return}const ar=Wt,fn=Mt.get(ar.name)||[];fn.push(D1(ar)),Mt.set(ar.name,fn)}})),se.customFunctions=T1(A.customFunctions,Mt),Array.isArray(Ke.animators)&&(A.animators=Ke.animators.reduce((Wt,ar)=>(ar.id&&(Wt[ar.id]=ar),Wt),{})),oe.fake&&(se.fakeElement=!0),oe.isRootState&&(se.isRootState=!0),se},getVariable(X,oe){var Ce;const se=((Ce=A.variables)==null?void 0:Ce.get(X))||Se.get(X);if(se){const wt=se.getType();if(oe&&wt!==oe){A.logError(x(new Error(`Variable should have type "${oe}"`),{additional:{name:X,foundType:wt}}));return}}return se},getAnimator(X){var oe,se;return((oe=A.animators)==null?void 0:oe[X])||((se=A.parent)==null?void 0:se.getAnimator(X))||void 0},registerState(X,oe){const se=Bf(A.parent);se&&(se.states=se.states||{},se.states[X]=oe)},unregisterState(X){const oe=Bf(A.parent);oe!=null&&oe.states&&delete oe.states[X]},destroy(){const X=nr.get(A.id);X&&(X.delete(A),X.size||nr.delete(A.id))}};return y?(A.parent=y,A.path=y.path.slice(),y.fakeElement&&(A.fakeElement=!0)):(A.json={type:"root"},A.isRootState=!0),A}function mt(y){G?re.push(y):clearTimeout(y)}Ui(en,{logStat:rt,hasTemplate:le,genId:fe,genClass:me,execCustomAction:dt,processVariableTriggers:Xt,isRunning:cr,setRunning:pr,registerInstance:lr,unregisterInstance:Er,registerParentOf:Zr,unregisterParentOf:Xe,registerTooltip:K,unregisterTooltip:Cr,onTooltipClose:fr,tooltipRoot:$,registerFocusable:hr,unregisterFocusable:Ae,addSvgFilter:rr,removeSvgFilter:Ot,registerId:Gt,unregisterId:Kt,getComponentId:H,preparePrototypeVariables:qe,getStore:tn,getCustomization:it,getBuiltinProtocols:_r,getExtension:xe,getExtensionContext:Ft,registerTimeout:mt,typefaceProvider:V,isDesktop:z,isPointerFocus:Jl,customComponents:D,direction:Te,componentDevtool:void 0}),Ui(is,{hasAction(){return!1}}),Ui(el,{runVisibilityTransition(y,A,X,oe,se){return Promise.resolve()},registerChildWithTransitionIn(y,A,X,oe){return Promise.resolve()},registerChildWithTransitionOut(y,A,X,oe){return Promise.resolve()},registerChildWithTransitionChange(y,A,X,oe){return Promise.resolve()},hasTransitionChange(y){return!1},registerChild(y){},unregisterChild(y){}}),Ui(il,{isEnabled:qi(!0)});function ct(y,A){const X=Se.get(y);return(X==null?void 0:X.getType())===A}function St(y,A){const X=Se.get(y);X?X.setValue(A):S(x(new Error("Cannot find variable"),{additional:{name:y}}))}function Zt(y){if(!(!y.type||!y.name||!(y.type in wl))){y.type==="integer"&&typeof y.value=="number"&&(y.value>Number.MAX_SAFE_INTEGER||y.value<Number.MIN_SAFE_INTEGER)&&S(x(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:y.name,value:y.value}}));try{return gi(y.name,y.type,y.value)}catch(A){S(x(A,{additional:{name:y.name}}))}}}function T(y){const A=Zt(y);A&&(Y.set(y.name,A),Se.set(y.name,A))}const ot=(Dr=l==null?void 0:l.card)==null?void 0:Dr.variables;Array.isArray(ot)&&ot.forEach(y=>{if(y&&y.name){if(Y.has(y.name)){S(x(new Error("Duplicate variable"),{additional:{name:y.name}}));return}T(y)}});const de=l.palette;de&&de[he].forEach(A=>{if(Y.has(A.name)){S(x(new Error("Duplicate variable"),{additional:{name:A.name}}));return}try{const X=gi(A.name,"color",A.color);Y.set(A.name,X),Se.set(A.name,X)}catch(X){S(x(X,{additional:{name:A.name}}))}});for(const[y,A]of nt)Se.has(y)||Se.set(y,A);ge.subscribe(y=>{if(y&&!Se.has(y)){const A=nt.get(y);Se.set(y,A);const X=Je.get(y);if(X){let oe=0;A.subscribe(()=>{X.set(++oe)})}}});const d=()=>{var y;Xt(void 0,(y=l==null?void 0:l.card)==null?void 0:y.variable_triggers)},Ne=(nn=l==null?void 0:l.card)==null?void 0:nn.timers;if(Ne&&typeof document<"u"){const y=ne=new H1({logError:S,applyVars:A=>gt(S,A),hasVariableWithType:ct,setVariableValue:St,execAnyActions:Fe});Ne.forEach(A=>y.createTimer(A))}const jt=Le();let Or;function fr(y){e(3,Ie=Ie.filter(A=>A.internalId!==y))}ei(()=>{Ws++,Ws===1&&(window.addEventListener("keydown",rd),window.addEventListener("pointerdown",nd)),vn().then(()=>{G&&d()})}),un(()=>{G=!1,Ws--,Ws||(window.removeEventListener("keydown",rd),window.removeEventListener("pointerdown",nd));for(const[y,A]of lt)A.stop();ne&&ne.destroy(),Ie.forEach(y=>{y.timeoutId&&(clearTimeout(y.timeoutId),y.timeoutId=null)}),re.forEach(y=>{clearTimeout(y)}),f||z1(Ee)});const R=()=>e(4,Tt=void 0);return t.$$set=y=>{"id"in y&&e(13,a=y.id),"json"in y&&e(11,l=y.json),"platform"in y&&e(14,c=y.platform),"theme"in y&&e(12,u=y.theme),"globalVariablesController"in y&&e(15,f=y.globalVariablesController),"mix"in y&&e(0,h=y.mix),"customization"in y&&e(16,p=y.customization),"builtinProtocols"in y&&e(17,b=y.builtinProtocols),"extensions"in y&&e(18,_=y.extensions),"onError"in y&&e(19,v=y.onError),"onStat"in y&&e(20,w=y.onStat),"onCustomAction"in y&&e(21,L=y.onCustomAction),"onComponent"in y&&e(22,N=y.onComponent),"typefaceProvider"in y&&e(23,V=y.typefaceProvider),"fetchInit"in y&&e(24,F=y.fetchInit),"tooltipRoot"in y&&e(25,$=y.tooltipRoot),"customComponents"in y&&e(26,D=y.customComponents),"direction"in y&&e(27,J=y.direction),"store"in y&&e(28,Z=y.store),"weekStartDay"in y&&e(29,W=y.weekStartDay)},t.$$.update=()=>{var y,A;if(t.$$.dirty[0]&4096|t.$$.dirty[1]&32&&(u==="light"||u==="dark"?e(35,he=u):u==="system"?typeof matchMedia<"u"?(ye||(e(36,ye=matchMedia("(prefers-color-scheme: dark)")),ye.addListener(_e)),e(35,he=ye.matches?"dark":"light")):e(35,he="light"):S(x(new Error("Unsupported theme")))),t.$$.dirty[1]&16&&he&&Bt(),t.$$.dirty[0]&2048){e(1,Ze=!1);const X=F1(l);X&&(e(1,Ze=!0),S(X))}if(t.$$.dirty[0]&2048&&(n=l.templates||{}),t.$$.dirty[0]&2048&&(y=l==null?void 0:l.card)!=null&&y.variables&&Array.isArray(l.card.variables)&&l.card.variables!==ot&&l.card.variables.forEach(X=>{X&&X.name&&!Y.has(X.name)&&T(X)}),t.$$.dirty[0]&2048&&e(37,i=(A=l==null?void 0:l.card)==null?void 0:A.states),t.$$.dirty[0]&6|t.$$.dirty[1]&64&&i&&!Ze&&!et){const X={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:i.map(oe=>({state_id:oe.state_id.toString(),div:oe.div}))};e(6,Or=jt.produceChildContext(X,{isRootState:!0}))}},[h,Ze,et,Ie,Tt,ft,Or,o,s,z,Te,l,u,a,c,f,p,b,_,v,w,L,N,V,F,$,D,J,Z,W,be,pt,Ye,Re,at,he,ye,i,R]}class ub extends Hr{constructor(r){super(),Br(this,r,cb,ob,wr,{id:13,json:11,platform:14,theme:12,globalVariablesController:15,mix:0,customization:16,builtinProtocols:17,extensions:18,onError:19,onStat:20,onCustomAction:21,onComponent:22,typefaceProvider:23,fetchInit:24,tooltipRoot:25,customComponents:26,direction:27,store:28,weekStartDay:29,setTheme:30,getDebugVariables:31,getDebugAllVariables:32,setData:33,execAction:34},null,[-1,-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[30]}get getDebugVariables(){return this.$$.ctx[31]}get getDebugAllVariables(){return this.$$.ctx[32]}get setData(){return this.$$.ctx[33]}get execAction(){return this.$$.ctx[34]}}const fb=8;class db{constructor(r){ur(this,"widthVariableName");ur(this,"heightVariableName");ur(this,"resizeObserver");ur(this,"context");ur(this,"node");ur(this,"sizeHistory",{});this.widthVariableName=r.width_variable_name,this.heightVariableName=r.height_variable_name}setVariable(r,e){if(!this.context)return!1;if(r){const n=this.context.variables.get(r);if(n&&n.getType()==="integer"){if(e=Math.round(e),this.sizeHistory[r]||(this.sizeHistory[r]=new Set),!this.sizeHistory[r].has(e))return n.setValue(e),this.sizeHistory[r].add(e),!0}else{const i=new Error("Missing variable");i.level="error",i.additional={variableName:r},this.context.logError(i)}}return!1}recalcProps(){if(!this.node||!this.context)return!1;const r=this.node.getBoundingClientRect(),e=this.setVariable(this.widthVariableName,r.width),n=this.setVariable(this.heightVariableName,r.height);return e||n}mountView(r,e){var n;this.node=r,this.context=e,!this.resizeObserver&&typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver(async()=>{let i=0;for(;this.recalcProps();){if(++i>fb){const o=new Error("Recursive layout in size_provider");o.level="warn",o.additional={widthVariableName:this.widthVariableName,heightVariableName:this.heightVariableName},e.logError(o);break}await vn()}this.sizeHistory={}})),(n=this.resizeObserver)==null||n.observe(r),this.recalcProps()}unmountView(r,e){var n;(n=this.resizeObserver)==null||n.disconnect(),this.resizeObserver=void 0}}const wo=8;class hb{constructor(r){ur(this,"context");ur(this,"params");ur(this,"startCoords");this.params=r,this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this)}processActions(r){const e=this.params[r];Array.isArray(e)&&e.length&&this.context&&this.context.processExpressions(e).forEach(i=>{var o;(o=this.context)==null||o.execAction(i)})}onPointerDown(r){this.startCoords={pageX:r.pageX,pageY:r.pageY}}onPointerMove(r){if(!this.startCoords)return;const e=r.pageX-this.startCoords.pageX,n=r.pageY-this.startCoords.pageY;(Math.abs(e)>wo||Math.abs(n)>wo)&&(Math.abs(e)>Math.abs(n)?e>wo?this.processActions("swipe_right"):e<-wo&&this.processActions("swipe_left"):n>wo?this.processActions("swipe_down"):n<-wo&&this.processActions("swipe_up"),this.startCoords=void 0)}onPointerUp(){this.startCoords=void 0}mountView(r,e){this.context=e,r.addEventListener("pointerdown",this.onPointerDown),r.addEventListener("pointermove",this.onPointerMove),r.addEventListener("pointerup",this.onPointerUp),r.addEventListener("pointercancel",this.onPointerUp),r.style.pointerEvents="auto"}updateView(r){r.style.pointerEvents="auto"}unmountView(r,e){r.removeEventListener("pointerdown",this.onPointerDown),r.removeEventListener("pointermove",this.onPointerMove),r.removeEventListener("pointerup",this.onPointerUp),r.removeEventListener("pointercancel",this.onPointerUp),r.style.pointerEvents=""}}function _b(t){return t instanceof HTMLElement}function gb(t){return class{constructor(e){ur(this,"params");ur(this,"animItem");ur(this,"wrapper");this.params=e}loadData(){if(this.params.lottie_json)return Promise.resolve(this.params.lottie_json);const e=this.params.lottie_url;return e?fetch(e).then(n=>{if(!n.ok)throw new Error("Response is not ok");return n.json()}):Promise.reject("Missing data")}getRatio(e){var i;const n=(i=e.getComponentProperty("aspect"))==null?void 0:i.ratio;if(typeof n=="number"&&n>0)return n}getScale(e){const n=e.getComponentProperty("scale");if(n==="stretch")return{attribute:"none",noScale:!1,hAlign:"center",vAlign:"center"};let i=e.getComponentProperty("content_alignment_horizontal"),o=e.getComponentProperty("content_alignment_vertical"),s="Mid",a="Mid";return i==="start"?i=e.direction==="ltr"?"start":"end":i==="end"?i=e.direction==="ltr"?"end":"start":i==="left"?i="start":i==="right"?i="end":i="center",o==="top"?o="start":o==="bottom"?o="end":o="center",n==="no_scale"?{attribute:"xMidYMid meet",noScale:!0,hAlign:i,vAlign:o}:(i==="start"?s="Min":i==="end"&&(s="Max"),o==="start"?a="Min":o==="end"&&(a="Max"),n==="fit"||n==="no_scale"?{attribute:`x${s}Y${a} meet`,noScale:!1,hAlign:i,vAlign:o}:{attribute:`x${s}Y${a} slice`,noScale:!1,hAlign:i,vAlign:o})}getSvg(){var n;const e=(n=this.wrapper)==null?void 0:n.firstElementChild;if(e instanceof SVGElement)return e}setWrapperScale(e){this.wrapper&&(e.noScale?(this.wrapper.style.display="flex",this.wrapper.style.alignItems=e.vAlign,this.wrapper.style.justifyContent=e.hAlign):(this.wrapper.style.display="",this.wrapper.style.alignItems="",this.wrapper.style.justifyContent=""))}setSvgScale(e){const n=this.getSvg();n&&(e.noScale?(n.style.flex="0 0 auto",n.style.width="",n.style.height=""):(n.style.flex="",n.style.width="100%",n.style.height="100%"))}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const i=Array.from(e.children).filter(_b);i.forEach(u=>{u.style.display="none"}),e.setAttribute("data-lottie","true");const o=this.wrapper=document.createElement("div");this.wrapper.style.width="100%",this.wrapper.style.height="100%";const s=this.getRatio(n),a=this.getScale(n);s&&(this.wrapper.style.aspectRatio=String(s)),this.setWrapperScale(a),e.appendChild(this.wrapper);const l=Number(this.params.repeat_count||-1),c=()=>{var f,h;(f=this.animItem)==null||f.destroy(),i.forEach(p=>{p.style.display=""}),e.removeAttribute("data-lottie"),this.wrapper&&((h=this.wrapper.parentNode)==null||h.removeChild(this.wrapper),this.wrapper=void 0);const u=new Error("Failed to load lottie animation");u.level="error",u.additional={url:this.params.lottie_url},n.logError(u)};this.loadData().then(u=>{const f=this.animItem=t({container:o,animationData:u,renderer:"svg",loop:!0,rendererSettings:{preserveAspectRatio:a.attribute}});if(this.setSvgScale(a),this.animItem.addEventListener("data_failed",c),this.params.repeat_mode==="reverse"||l!==-1){let h=1,p=0;f.addEventListener("loopComplete",()=>{++p,l!==-1&&p===l?(f.stop(),f.goToAndStop(f.totalFrames,!0)):(this.params.repeat_mode==="reverse"&&(h*=-1,f.setDirection(h)),f.goToAndPlay(h===1?0:f.totalFrames,!0))})}}).catch(c)}updateView(e,n){if(!this.wrapper)return;const i=this.getRatio(n);i&&(this.wrapper.style.aspectRatio=String(i));const o=this.getSvg();if(o){const s=this.getScale(n);this.setWrapperScale(s),this.setSvgScale(s),o.setAttribute("preserveAspectRatio",s.attribute)}}unmountView(e,n){var i,o;(i=this.animItem)==null||i.destroy(),this.wrapper&&((o=this.wrapper.parentNode)==null||o.removeChild(this.wrapper),this.wrapper=void 0),e.removeAttribute("data-lottie")}}}function pb(t,r={}){return class{constructor(){ur(this,"prevDOM",null)}recalc(n,i){const o=n.firstElementChild,s=o==null?void 0:o.firstElementChild;if(!s)return;this.prevDOM=o.cloneNode(!0);const a=i.getComponentProperty("text")||"",l=t(a),c=document.createElement("div");c.innerHTML=l,r!=null&&r.cssClass&&c.classList.add(r.cssClass);const u=Array.from(o.childNodes);for(let f=0,h=u.length;f<h;++f){const p=u[f];(p.nodeType!==1||p!==s)&&o.removeChild(p)}s.innerHTML="",s.appendChild(c)}mountView(n,i){this.recalc(n,i)}updateView(n,i){this.recalc(n,i)}unmountView(n){if(this.prevDOM){const i=n.firstElementChild;i&&i.replaceWith(this.prevDOM),this.prevDOM=null}}}}function mb(t){const{target:r,hydrate:e,...n}=t,i=new ub({target:r,props:n,hydrate:e});return{$destroy(){i.$destroy()},execAction(o){i.execAction(o)},setTheme(o){i.setTheme(o)},setData(o){i.setData(o)}}}const bb=Object.freeze(Object.defineProperty({__proto__:null,Gesture:hb,SizeProvider:db,createGlobalVariablesController:L1,createVariable:gi,lottieExtensionBuilder:gb,markdownExtensionBuilder:pb,render:mb},Symbol.toStringTag,{value:"Module"}));window.Ya=window.Ya||{},window.Ya.Divkit=window.Ya.DivKit=bb})();
|
|
18
18
|
//# sourceMappingURL=client-hydratable.js.map
|