@divkitframework/visual-editor 0.4.6 → 0.4.8
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/divkit-editor.css +1 -1
- package/dist/divkit-editor.d.ts +19 -1
- package/dist/divkit-editor.js +1 -6
- package/dist/editor.js +1 -1
- package/dist/lib.js +73265 -0
- package/package.json +14 -6
package/dist/divkit-editor.js
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
var BV=Object.defineProperty;var HV=(t,e,n)=>e in t?BV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var on=(t,e,n)=>(HV(t,typeof e!="symbol"?e+"":e,n),n),hd=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var Gi=(t,e,n)=>(hd(t,e,"read from private field"),n?n.call(t):e.get(t)),er=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Zs=(t,e,n,i)=>(hd(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n);var Nl=(t,e,n,i)=>({set _(o){Zs(t,e,o,n)},get _(){return Gi(t,e,i)}}),cp=(t,e,n)=>(hd(t,e,"access private method"),n);function tn(){}const $u=t=>t;function _s(t,e){for(const n in e)t[n]=e[n];return t}function t1(t){return t()}function dp(){return Object.create(null)}function qn(t){t.forEach(t1)}function Yo(t){return typeof t=="function"}function Rt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let ja;function dc(t,e){return t===e?!0:(ja||(ja=document.createElement("a")),ja.href=e,t===ja.href)}function Hc(t,e){return t!=t?e==e:t!==e}function UV(t){return Object.keys(t).length===0}function ku(t,...e){if(t==null){for(const i of e)i(void 0);return tn}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function $n(t){let e;return ku(t,(n=>e=n))(),e}function Pe(t,e,n){t.$$.on_destroy.push(ku(e,n))}function Fs(t,e,n,i){if(t){const o=n1(t,e,n,i);return t[0](o)}}function n1(t,e,n,i){return t[1]&&i?_s(n.ctx.slice(),t[1](i(e))):n.ctx}function Ns(t,e,n,i){if(t[2]&&i){const o=t[2](i(n));if(e.dirty===void 0)return o;if(typeof o=="object"){const r=[],s=Math.max(e.dirty.length,o.length);for(let l=0;l<s;l+=1)r[l]=e.dirty[l]|o[l];return r}return e.dirty|o}return e.dirty}function qs(t,e,n,i,o,r){if(o){const s=n1(e,n,i,r);t.p(s,o)}}function Rs(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}function Mi(t,e,n){return t.set(n),e}function i1(t){return t&&Yo(t.destroy)?t.destroy:tn}function up(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}const JV=["",!0,1,"true","contenteditable"],o1=typeof window<"u";let r1=o1?()=>window.performance.now():()=>Date.now(),ju=o1?t=>requestAnimationFrame(t):tn;const cl=new Set;function s1(t){cl.forEach((e=>{e.c(t)||(cl.delete(e),e.f())})),cl.size!==0&&ju(s1)}function l1(t){let e;return cl.size===0&&ju(s1),{promise:new Promise((n=>{cl.add(e={c:t,f:n})})),abort(){cl.delete(e)}}}const va=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function $(t,e){t.appendChild(e)}function a1(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function WV(t){const e=S("style");return e.textContent="/* empty */",KV(a1(t),e),e.sheet}function KV(t,e){return $(t.head||t,e),e.sheet}function N(t,e,n){t.insertBefore(e,n||null)}function F(t){t.parentNode&&t.parentNode.removeChild(t)}function Bi(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function S(t){return document.createElement(t)}function Vr(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Ze(t){return document.createTextNode(t)}function X(){return Ze(" ")}function Dn(){return Ze("")}function ee(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function zi(t){return function(e){return e.preventDefault(),t.call(this,e)}}function Eo(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function g(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const YV=["width","height"];function fs(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const i in e)e[i]==null?t.removeAttribute(i):i==="style"?t.style.cssText=e[i]:i==="__value"?t.value=t[i]=e[i]:n[i]&&n[i].set&&YV.indexOf(i)===-1?t[i]=e[i]:g(t,i,e[i])}function GV(t,e){Object.keys(e).forEach((n=>{XV(t,n,e[n])}))}function XV(t,e,n){const i=e.toLowerCase();i in t?t[i]=typeof t[i]=="boolean"&&n===""?!0:n:e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:g(t,e,n)}function uc(t){return/-/.test(t)?GV:fs}function c1(t){let e;return{p(...n){e=n,e.forEach((i=>t.push(i)))},r(){e.forEach((n=>t.splice(t.indexOf(n),1)))}}}function Ji(t){return t===""?null:+t}function ZV(t){return Array.from(t.childNodes)}function lt(t,e){e=""+e,t.data!==e&&(t.data=e)}function d1(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function xV(t,e,n){~JV.indexOf(n)?d1(t,e):lt(t,e)}function Hn(t,e){t.value=e??""}function je(t,e,n,i){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function pc(t,e,n){for(let i=0;i<t.options.length;i+=1){const o=t.options[i];if(o.__value===e){o.selected=!0;return}}(!n||e!==void 0)&&(t.selectedIndex=-1)}function u1(t){const e=t.querySelector(":checked");return e&&e.__value}let Sa;function QV(){if(Sa===void 0){Sa=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Sa=!0}}return Sa}function Su(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const i=S("iframe");i.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),i.setAttribute("aria-hidden","true"),i.tabIndex=-1;const o=QV();let r;return o?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=ee(window,"message",(s=>{s.source===i.contentWindow&&e()}))):(i.src="about:blank",i.onload=()=>{r=ee(i.contentWindow,"resize",e),e()}),$(t,i),()=>{(o||r&&i.contentWindow)&&r(),F(i)}}function te(t,e,n){t.classList.toggle(e,!!n)}function p1(t,e,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:i})}class Cu{constructor(e=!1){on(this,"is_svg",!1);on(this,"e");on(this,"n");on(this,"t");on(this,"a");this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,n,i=null){this.e||(this.is_svg?this.e=Vr(n.nodeName):this.e=S(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(e)),this.i(i)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let n=0;n<this.n.length;n+=1)N(this.t,this.n[n],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(F)}}function hl(t,e){return new t(e)}const _c=new Map;let fc=0;function eL(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function tL(t,e){const n={stylesheet:WV(e),rules:{}};return _c.set(t,n),n}function Hd(t,e,n,i,o,r,s,l=0){const a=16.666/i;let c=`{\n`;for(let h=0;h<=1;h+=a){const v=e+(n-e)*r(h);c+=h*100+`%{${s(v,1-v)}}\n`}const d=c+`100% {${s(n,1-n)}}\n}`,u=`__svelte_${eL(d)}_${l}`,p=a1(t),{stylesheet:_,rules:f}=_c.get(p)||tL(p,t);f[u]||(f[u]=!0,_.insertRule(`@keyframes ${u} ${d}`,_.cssRules.length));const m=t.style.animation||"";return t.style.animation=`${m?`${m}, `:""}${u} ${i}ms linear ${o}ms 1 both`,fc+=1,u}function _1(t,e){const n=(t.style.animation||"").split(", "),i=n.filter(e?r=>r.indexOf(e)<0:r=>r.indexOf("__svelte")===-1),o=n.length-i.length;o&&(t.style.animation=i.join(", "),fc-=o,fc||nL())}function nL(){ju((()=>{fc||(_c.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&F(e)})),_c.clear())}))}function iL(t,e,n,i){if(!e)return tn;const o=t.getBoundingClientRect();if(e.left===o.left&&e.right===o.right&&e.top===o.top&&e.bottom===o.bottom)return tn;const{delay:r=0,duration:s=300,easing:l=$u,start:a=r1()+r,end:c=a+s,tick:d=tn,css:u}=n(t,{from:e,to:o},i);let p=!0,_=!1,f;function m(){u&&(f=Hd(t,0,1,s,r,l,u)),r||(_=!0)}function h(){u&&_1(t,f),p=!1}return l1((v=>{if(!_&&v>=a&&(_=!0),_&&v>=c&&(d(1,0),h()),!p)return!1;if(_){const y=v-a,b=0+1*l(y/s);d(b,1-b)}return!0})),m(),d(0,1),h}function oL(t){const e=getComputedStyle(t);if(e.position!=="absolute"&&e.position!=="fixed"){const{width:n,height:i}=e,o=t.getBoundingClientRect();t.style.position="absolute",t.style.width=n,t.style.height=i,f1(t,o)}}function f1(t,e){const n=t.getBoundingClientRect();if(e.left!==n.left||e.top!==n.top){const i=getComputedStyle(t),o=i.transform==="none"?"":i.transform;t.style.transform=`${o} translate(${e.left-n.left}px, ${e.top-n.top}px)`}}let Ql;function Wl(t){Ql=t}function Tl(){if(!Ql)throw new Error("Function called outside component initialization");return Ql}function Uc(t){Tl().$$.on_mount.push(t)}function gs(t){Tl().$$.after_update.push(t)}function Bs(t){Tl().$$.on_destroy.push(t)}function _i(){const t=Tl();return(e,n,{cancelable:i=!1}={})=>{const o=t.$$.callbacks[e];if(o){const r=p1(e,n,{cancelable:i});return o.slice().forEach((s=>{s.call(t,r)})),!r.defaultPrevented}return!0}}function mc(t,e){return Tl().$$.context.set(t,e),e}function wt(t){return Tl().$$.context.get(t)}function mn(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((i=>i.call(this,e)))}const il=[],pt=[];let dl=[];const Ud=[],m1=Promise.resolve();let Jd=!1;function g1(){Jd||(Jd=!0,m1.then(h1))}function ur(){return g1(),m1}function po(t){dl.push(t)}function Xn(t){Ud.push(t)}const vd=new Set;let xs=0;function h1(){if(xs!==0)return;const t=Ql;do{try{for(;xs<il.length;){const e=il[xs];xs++,Wl(e),rL(e.$$)}}catch(e){throw il.length=0,xs=0,e}for(Wl(null),il.length=0,xs=0;pt.length;)pt.pop()();for(let e=0;e<dl.length;e+=1){const n=dl[e];vd.has(n)||(vd.add(n),n())}dl.length=0}while(il.length);for(;Ud.length;)Ud.pop()();Jd=!1,vd.clear(),Wl(t)}function rL(t){if(t.fragment!==null){t.update(),qn(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(po)}}function sL(t){const e=[],n=[];dl.forEach((i=>t.indexOf(i)===-1?e.push(i):n.push(i))),n.forEach((i=>i())),dl=e}let ql;function lL(){return ql||(ql=Promise.resolve(),ql.then((()=>{ql=null}))),ql}function bd(t,e,n){t.dispatchEvent(p1(`${e?"intro":"outro"}${n}`))}const Ba=new Set;let es;function It(){es={r:0,c:[],p:es}}function Dt(){es.r||qn(es.c),es=es.p}function I(t,e){t&&t.i&&(Ba.delete(t),t.i(e))}function H(t,e,n,i){if(t&&t.o){if(Ba.has(t))return;Ba.add(t),es.c.push((()=>{Ba.delete(t),i&&(n&&t.d(1),i())})),t.o(e)}else i&&i()}const aL={duration:0};function Zi(t,e,n,i){let r=e(t,n,{direction:"both"}),s=i?0:1,l=null,a=null,c=null,d;function u(){c&&_1(t,c)}function p(f,m){const h=f.b-s;return m*=Math.abs(h),{a:s,b:f.b,d:h,duration:m,start:f.start,end:f.start+m,group:f.group}}function _(f){const{delay:m=0,duration:h=300,easing:v=$u,tick:y=tn,css:b}=r||aL,w={start:r1()+m,b:f};f||(w.group=es,es.r+=1),"inert"in t&&(f?d!==void 0&&(t.inert=d):(d=t.inert,t.inert=!0)),l||a?a=w:(b&&(u(),c=Hd(t,s,f,h,m,v,b)),f&&y(0,1),l=p(w,h),po((()=>bd(t,f,"start"))),l1((k=>{if(a&&k>a.start&&(l=p(a,h),a=null,bd(t,l.b,"start"),b&&(u(),c=Hd(t,s,l.b,l.duration,0,v,r.css))),l){if(k>=l.end)y(s=l.b,1-s),bd(t,l.b,"end"),a||(l.b?u():--l.group.r||qn(l.group.c)),l=null;else if(k>=l.start){const E=k-l.start;s=l.a+l.d*v(E/l.duration),y(s,1-s)}}return!!(l||a)})))}return{run(f){Yo(r)?lL().then((()=>{r=r({direction:f?"in":"out"}),_(f)})):_(f)},end(){u(),l=a=null}}}function an(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function cL(t,e){t.d(1),e.delete(t.key)}function zl(t,e){H(t,1,1,(()=>{e.delete(t.key)}))}function dL(t,e){t.f(),zl(t,e)}function Hs(t,e,n,i,o,r,s,l,a,c,d,u){let p=t.length,_=r.length,f=p;const m={};for(;f--;)m[t[f].key]=f;const h=[],v=new Map,y=new Map,b=[];for(f=_;f--;){const T=u(o,r,f),j=n(T);let A=s.get(j);A?b.push((()=>A.p(T,e))):(A=c(j,T),A.c()),v.set(j,h[f]=A),j in m&&y.set(j,Math.abs(f-m[j]))}const w=new Set,k=new Set;function E(T){I(T,1),T.m(l,d),s.set(T.key,T),d=T.first,_--}for(;p&&_;){const T=h[_-1],j=t[p-1],A=T.key,O=j.key;T===j?(d=T.first,p--,_--):v.has(O)?!s.has(A)||w.has(A)?E(T):k.has(O)?p--:y.get(A)>y.get(O)?(k.add(A),E(T)):(w.add(O),p--):(a(j,s),p--)}for(;p--;){const T=t[p];v.has(T.key)||a(T,s)}for(;_;)E(h[_-1]);return qn(b),h}function vl(t,e){const n={},i={},o={$$scope:1};let r=t.length;for(;r--;){const s=t[r],l=e[r];if(l){for(const a in s)a in l||(i[a]=1);for(const a in l)o[a]||(n[a]=l[a],o[a]=1);t[r]=l}else for(const a in s)o[a]=1}for(const s in i)s in n||(n[s]=void 0);return n}function pp(t){return typeof t=="object"&&t!==null?t:{}}function Gn(t,e,n){const i=t.$$.props[e];i!==void 0&&(t.$$.bound[i]=n,n(t.$$.ctx[i]))}function Ie(t){t&&t.c()}function Oe(t,e,n){const{fragment:i,after_update:o}=t.$$;i&&i.m(e,n),po((()=>{const r=t.$$.on_mount.map(t1).filter(Yo);t.$$.on_destroy?t.$$.on_destroy.push(...r):qn(r),t.$$.on_mount=[]})),o.forEach(po)}function Me(t,e){const n=t.$$;n.fragment!==null&&(sL(n.after_update),qn(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function uL(t,e){t.$$.dirty[0]===-1&&(il.push(t),g1(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Yt(t,e,n,i,o,r,s=null,l=[-1]){const a=Ql;Wl(t);const c=t.$$={fragment:null,ctx:[],props:r,update:tn,not_equal:o,bound:dp(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:dp(),dirty:l,skip_bound:!1,root:e.target||a.$$.root};s&&s(c.root);let d=!1;if(c.ctx=n?n(t,e.props||{},((u,p,..._)=>{const f=_.length?_[0]:p;return c.ctx&&o(c.ctx[u],c.ctx[u]=f)&&(!c.skip_bound&&c.bound[u]&&c.bound[u](f),d&&uL(t,u)),p})):[],c.update(),d=!0,qn(c.before_update),c.fragment=i?i(c.ctx):!1,e.target){if(e.hydrate){const u=ZV(e.target);c.fragment&&c.fragment.l(u),u.forEach(F)}else c.fragment&&c.fragment.c();e.intro&&I(t.$$.fragment),Oe(t,e.target,e.anchor),h1()}Wl(a)}class Gt{constructor(){on(this,"$$");on(this,"$$set")}$destroy(){Me(this,1),this.$destroy=tn}$on(e,n){if(!Yo(n))return tn;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(e){this.$$set&&!UV(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const pL="4",Qs=[];function _L(t,e){return{subscribe:Si(t,e).subscribe}}function Si(t,e=tn){let n;const i=new Set;function o(l){if(Rt(t,l)&&(t=l,n)){const a=!Qs.length;for(const c of i)c[1](),Qs.push(c,t);if(a){for(let c=0;c<Qs.length;c+=2)Qs[c][0](Qs[c+1]);Qs.length=0}}}function r(l){o(l(t))}function s(l,a=tn){const c=[l,a];return i.add(c),i.size===1&&(n=e(o,r)||tn),l(t),()=>{i.delete(c),i.size===0&&n&&(n(),n=null)}}return{set:o,update:r,subscribe:s}}function as(t,e,n){const i=!Array.isArray(t),o=i?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return _L(n,((s,l)=>{let a=!1;const c=[];let d=0,u=tn;const p=()=>{if(d)return;u();const f=e(i?c[0]:c,s,l);r?s(f):u=Yo(f)?f:tn},_=o.map(((f,m)=>ku(f,(h=>{c[m]=h,d&=~(1<<m),a&&p()}),(()=>{d|=1<<m}))));return a=!0,p(),function(){qn(_),u(),a=!1}}))}typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(pL);function _p(t,e,n){const i=t.slice();return i[7]=e[n],i[8]=e,i[9]=n,i}function fp(t){let e,n,i;function o(...r){return t[5](t[9],...r)}return{c(){e=S("div"),g(e,"class","split-view__splitter svelte-1rid2da")},m(r,s){N(r,e,s),n||(i=[ee(e,"pointerdown",zi(o)),ee(e,"dblclick",zi(t[4]))],n=!0)},p(r,s){t=r},d(r){r&&F(e),n=!1,qn(i)}}}function mp(t,e){let n,i,o,r,s,l=e[9],a,c=e[9]>0&&fp(e);const d=[e[7].props];var u=e[7].component;function p(m,h){let v={};for(let y=0;y<d.length;y+=1)v=_s(v,d[y]);return h!==void 0&&h&1&&(v=_s(v,vl(d,[pp(m[7].props)]))),{props:v}}u&&(r=hl(u,p(e)));const _=()=>e[6](o,l),f=()=>e[6](null,l);return{key:t,first:null,c(){n=Dn(),c&&c.c(),i=X(),o=S("div"),r&&Ie(r.$$.fragment),s=X(),g(o,"class","split-view__part svelte-1rid2da"),je(o,"--grow",e[7].weight),je(o,"min-width",e[1]==="horizontal"?`${e[7].minSize||sl}px`:void 0),je(o,"min-height",e[1]==="vertical"?`${e[7].minSize||sl}px`:void 0),this.first=n},m(m,h){N(m,n,h),c&&c.m(m,h),N(m,i,h),N(m,o,h),r&&Oe(r,o,null),$(o,s),_(),a=!0},p(m,h){if(e=m,e[9]>0?c?c.p(e,h):(c=fp(e),c.c(),c.m(i.parentNode,i)):c&&(c.d(1),c=null),h&1&&u!==(u=e[7].component)){if(r){It();const v=r;H(v.$$.fragment,1,0,(()=>{Me(v,1)})),Dt()}u?(r=hl(u,p(e,h)),Ie(r.$$.fragment),I(r.$$.fragment,1),Oe(r,o,s)):r=null}else if(u){const v=h&1?vl(d,[pp(e[7].props)]):{};r.$set(v)}l!==e[9]&&(f(),l=e[9],_()),h&1&&je(o,"--grow",e[7].weight),h&3&&je(o,"min-width",e[1]==="horizontal"?`${e[7].minSize||sl}px`:void 0),h&3&&je(o,"min-height",e[1]==="vertical"?`${e[7].minSize||sl}px`:void 0)},i(m){a||(r&&I(r.$$.fragment,m),a=!0)},o(m){r&&H(r.$$.fragment,m),a=!1},d(m){m&&(F(n),F(i),F(o)),c&&c.d(m),r&&Me(r),f()}}}function fL(t){let e,n=[],i=new Map,o,r=an(t[0]);const s=l=>l[7].key||l[9];for(let l=0;l<r.length;l+=1){let a=_p(t,r,l),c=s(a);i.set(c,n[l]=mp(c,a))}return{c(){e=S("div");for(let l=0;l<n.length;l+=1)n[l].c();g(e,"class","split-view svelte-1rid2da"),te(e,"split-view_vertical",t[1]==="vertical")},m(l,a){N(l,e,a);for(let c=0;c<n.length;c+=1)n[c]&&n[c].m(e,null);o=!0},p(l,[a]){a&31&&(r=an(l[0]),It(),n=Hs(n,a,s,1,l,r,i,e,zl,mp,null,_p),Dt()),(!o||a&2)&&te(e,"split-view_vertical",l[1]==="vertical")},i(l){if(!o){for(let a=0;a<r.length;a+=1)I(n[a]);o=!0}},o(l){for(let a=0;a<n.length;a+=1)H(n[a]);o=!1},d(l){l&&F(e);for(let a=0;a<n.length;a+=1)n[a].d()}}}const sl=300;function mL(t,e,n){let{components:i}=e,{orientation:o="horizontal"}=e,r=[];function s(d,u){if(d.button!==0)return;const p=o==="horizontal"?"pageX":"pageY",_=o==="horizontal"?"offsetWidth":"offsetHeight",f=d[p],m=r.map((w=>w[_])),h=i[u].minSize??sl,v=i[u+1].minSize??sl,y=w=>{w.preventDefault();let k=w[p]-f;m[u]+k<h&&(k=h-m[u]),m[u+1]-k<v&&(k=m[u+1]-v),r.forEach(((E,T)=>{let j;T===u?j=m[T]+k:T===u+1&&(j=m[T]-k),j?E.style.flexBasis=`${j}px`:E.style.flexBasis=`${m[T]}px`}))},b=()=>{window.removeEventListener("pointermove",y),window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b)};window.addEventListener("pointermove",y),window.addEventListener("pointerup",b),window.addEventListener("pointercancel",b)}function l(){r.forEach((d=>{d.style.flexBasis=""}))}const a=(d,u)=>s(u,d-1);function c(d,u){pt[d?"unshift":"push"]((()=>{r[u]=d,n(2,r)}))}return t.$$set=d=>{"components"in d&&n(0,i=d.components),"orientation"in d&&n(1,o=d.orientation)},[i,o,r,s,l,a,c]}class v1 extends Gt{constructor(e){super(),Yt(this,e,mL,fL,Rt,{components:0,orientation:1})}}const oi=Symbol("language"),gL={collapse:"Свернуть",expand:"Развернуть",treeMenu:"Меню","treeItem.warnings":"Предупреждения","treeItem.errors":"Ошибки",addComponent:"Добавить компонент",removeComponent:"Удалить",cloneComponent:"Дублировать компонент",copyComponent:"Копировать компонент",pasteComponent:"Вставить компонент",newComponentTitle:"Новый компонент",components:"Дерево компонентов",basicComponents:"Базовые компоненты",additionalComponents:"Дополнительные компоненты",lightTheme:"Светлая тема",darkTheme:"Тёмная тема",componentProperties:"Свойства",complexComponentProperties:"Сложные свойства",code:"Исходный код",chooseComponent:"Выберите элемент",inset_top:"сверху",inset_right:"справа",inset_bottom:"снизу",inset_left:"слева",inset_content:"содержимое","props.width":"Ширина","props.height":"Высота","props.size_fixed":"Точное","props.size_match_parent":"Растянуть","props.size_wrap_content":"Содержимое","props.size_constrained":"Сжимается","props.alignment":"Выравнивание","props.alignment_horizontal":"Своё горизонтальное выравнивание","props.alignment_vertical":"Своё вертикальное выравнивание","props.align_left":"Слева","props.align_center":"По центру","props.align_right":"Справа","props.align_top":"Сверху","props.align_bottom":"Снизу","props.align_start":"В начале","props.align_end":"В конце","props.alpha":"Непрозрачность","props.rotation":"Поворот","props.insets":"Отступы","props.paddings":"Внутренние","props.margins":"Внешние","props.text":"Текст","props.font_size":"Размер текста","props.font_size_small":"Маленький","props.font_size_medium":"Средний","props.font_size_large":"Большой","props.font_weight":"Насыщенность","props.font_weight_light":"300 — Лёгкий","props.font_weight_normal":"400 — Обычный","props.font_weight_medium":"500 — Полужирный","props.font_weight_bold":"700 — Жирный","props.font_family":"Шрифт","props.text_color":"Цвет текста","props.text_alignment_horizontal":"Выравнивание","props.underline":"Подчёркивание","props.strike":"Зачёркивание","props.image_url":"Картинка","props.preview":"Предпросмотр","props.image_scale":"Масштабирование","props.scale_fit":"Поместить","props.scale_fill":"Заполнить","props.scale_no_scale":"Оригинал","props.scale_stretch":"Растянуть","props.image_alignment":"Выравнивание картинки","props.image_alignment_horizontal":"Выравнивание картинки по горизонтали","props.image_alignment_vertical":"Выравнивание картинки по вертикали","props.lottie_url":"Анимация","props.background":"Фон","props.background_solid":"Цвет","props.background_gradient":"Градиент","props.background_gradient_angle":"Угол наклона","props.background_gradient_count":"Кол-во цветов","props.background_image":"Картинка","props.corners":"Скругление углов","props.actions":"Действия","props.orientation":"Ориентация","props.orientation_horizontal":"Горзонтальная","props.orientation_vertical":"Вертикальная","props.orientation_overlap":"Наложение","props.content_alignment":"Выравнивание содержимого","props.cross_content_alignment":"Выравнивание содержимого по поперечной оси","props.content_alignment_horizontal":"Горизонтальное выравнивание содержимого","props.content_alignment_vertical":"Вертикальное выравнивание содержимого","props.orientation_start":"Начало","props.orientation_center":"По центру","props.orientation_end":"Конец","props.separator_color":"Цвет","props.line_height":"Высота линии","props.spacing":"Отступ между элементами","props.video_repeatable":"Повторять с начала","props.video_autostart":"Автостарт","props.video_muted":"Без звука","props.video_sources":"Источник видео","props.column_count":"Количество колонок","props.column_span":"Растянуть по колонкам","props.row_span":"Растянуть по строкам","props.text_variable":"Связанная переменная","props.keyboard_type":"Тип поля","props.keyboard_single_line_text":"Однострочное","props.keyboard_multi_line_text":"Многострочное","props.keyboard_phone":"Телефон","props.keyboard_number":"Число","props.keyboard_email":"Электронная почта","props.keyboard_uri":"Ссылка","props.keyboard_password":"Пароль","props.max_length":"Максимальное число символов","props.hint_text":"Текст подсказки","props.a11y_description":"Описание","props.select_options":"Список опций","props.is_enabled":"Включён","props.on_color":"Цвет включённого состояния",actions_count:["%s действие","%s действия","%s действий","Нет действий"],actions_no_url:"<нет ссылки>","actions-url":"Ссылка","actions-unknown":"Неизвестно","actions-log-id":"ID для логирования","actions-log-url":"Url для логирования","actions.focus_element":"Установить фокус","actions.clear_focus":"Убрать фокус","actions.set_variable":"Установить переменную","actions.array_insert_value":"Вставить значение в массив","actions.array_remove_value":"Удалить значение из массива","actions.copy_to_clipboard":"Копировать","actions.dict_set_value":"Установить значение в объекте","actions.array_set_value":"Установить значение в массиве","actions.show_tooltip":"Показать тултип","actions.hide_tooltip":"Скрыть тултип","video-url":"Url источника","video-mime-type":"Mime type источника","select.text":"Текст опции","select.value":"Значение опции",cancel:"Отмена",save:"Сохранить",close:"Закрыть",color:"Цвет",image:"Картинка",animation:"Анимация",delete:"Удалить",add_color:"Добавить цвет",add_background:"Добавить слой",add_action:"Добавить действие",add_video:"Добавить источник",add_select_option:"Добавить опцию",no_background:"Нет фона",multiple_backgrounds:"Несколько слоёв",unknown_background:"Неизвестный фон",background_solid:"Цвет: %s",background_gradient:"Градиент",background_image:"Картинка: %s",background_image_no_url:"<нет ссылки>",errors:"Ошибки",no_errors:"Нет ошибок",undo:"Отменить",redo:"Вернуть",previewSize:"Размер окна предварительного просмотра",previewLang:"Выбранный язык для отображения",previewDirection:"Направление ввода текст","components.image":"Картинка","components.gif":"Gif-картинка","components.text":"Текст","components.separator":"Разделитель","components.container":"Контейнер","components.grid":"Сетка","components.gallery":"Галерея","components.pager":"Пейджер","components.tabs":"Табы","components.state":"Набор состояний","components.custom":"Кастом","components.indicator":"Индикатор","components.slider":"Слайдер","components.input":"Поле ввода","components.select":"Выпадающий список","components.video":"Видео","components.switch":"Переключатель","templates.lottie":"Lottie-анимация","templates.button":"Кнопка","templates.close":"Крестик","templates.list_item":"Элемент списка",rootComponent:"Корневой компонент",palette:"Палитра",localPalette:"Локальная палитра",missingPaletteColor:"Отсутствует цвет из палитры '%s'",addColor:"Добавить цвет","baseProps.title":"Базовые свойства и выравнивание","textProps.title":"Свойства текста","imageProps.title":"Свойства картинки","videoProps.title":"Свойства видео","containerProps.title":"Свойства контейнера","gridProps.title":"Свойства сетки","galleryProps.title":"Свойства галереи","separatorProps.title":"Свойства разделителя","lottieProps.title":"Свойства Lottie","buttonProps.title":"Свойства кнопки","closeProps.title":"Свойства крестика","listItemProps.title":"Свойства элемента списка","inputProps.title":"Свойства поля ввода","selectProps.title":"Свойства выпадающего списка","switchProps.title":"Свойства переключателя","a11yProps.title":"Свойства доступности",default:"По умолчанию","background.image":"Картинка","background.gradient":"Линейный градиент","background.solid_first_title":"Цвет","background.solid_second_title":"Непрозрачность","background.gradient_second_title":"Угол градиента","background.image_second_title":"Непрозрачность","file.image_placeholder":"Ссылка на изображение","file.gif_placeholder":"Ссылка на Gif-анимацию","file.lottie_placeholder":"Ссылка на lottie-анимацию","file.video_placeholder":"Ссылка на видео","file.image_label":"Перетащите сюда изображение","file.gif_label":"Перетащите сюда Gif-анимацию","file.lottie_label":"Перетащите сюда lottie-анимацию","file.video_label":"Перетащите сюда видео-файл","file.image_error":"Не удалось загрузить изображение","file.gif_error":"Не удалось загрузить Gif-анимацию","file.lottie_error":"Не удалось загрузить lottie-анимацию","file.video_error":"Не удалось загрузить видео","file.image_upload":"Загрузить изображение","file.gif_upload":"Загрузить Gif","file.lottie_upload":"Загрузить Lottie","file.video_upload":"Загрузить видео","file.select":"Выбрать файл","file.insert_image":"Вставить изображение","file.too_big":"Слишком большой файл","file.generate_from_video":"Сгенерировать из видео","file.generate_from_lottie":"Сгенерировать из анимации","link.placeholder":"Введите адрес ссылки",textStyle:"Стилизация","commands.add_component":"Добавление компонента","commands.move_component":"Перемещение компонента","commands.remove_component":"Удаление компонента","commands.set_json":"Изменение json","commands.set_property":"Изменение свойств","commands.add_palette_item":"Добавление цвета в палитру","commands.delete_palette_item":"Удаление цвета из палитры","commands.reorder_palette_item":"Изменение порядка цветов в палитре","commands.rename_palette_item":"Изменение названия цвета в палитре","commands.change_palette_item":"Изменение цвета в палитре","commands.change_custom_variables":"Изменение переменных","commands.change_timers":"Изменение таймеров",tankerTitle:"Танкер",tankerEnterValue:"Введите ключ",tankerKey:"Ключ:",tankerDialogTitle:"Введите ключ из танкера",tankerPlaceholder:"Ключ от танкера",tankerMissing:"Ключ не найден",tankerOverview:"Подключенные ключи танкера",tankerOverviewEmpty:"Нет использованных ключей из танкера",tankerUpdate:"Обновить ключи",expressionTitle:"Выражение",sourcesTitle:"Источники данных",sourcesEmpty:"Отсутствуют источники интеграции данных",sourcesName:"Название",sourcesUrl:"Источник",inplaceEditorDisabled:"Текст из танкера и выражений можно отредактировать только через соответствующий интерфейс",customVariablesTitle:"Переменные",customVariablesAdd:"Добавить переменную",customVariablesEmptyName:"Пустое название переменной",customVariablesName:"Название",customVariablesType:"Типа",customVariablesValue:"Значение",customVariablesTypeString:"строка",customVariablesTypeNumber:"число с плавающей точкой",customVariablesTypeInteger:"целое число",customVariablesTypeBoolean:"булево",customVariablesTypeUrl:"url",customVariablesTypeColor:"цвет",customVariablesTypeDict:"объект",customVariablesTypeArray:"массив",customVariablesBooleanValidation:'Должно быть значение "true" или "false"',customVariablesJsonValidation:"Не удалось разобрать значение",canvasCustomSize:"Своё","props.add":"добавить","props.remove":"удалить","props.supports":"Поддержано только на ","props.not_supported":"Не поддержано","props.deprecated":"Устарело","errors.selectedTitle":"Показаны события только от одного компонента","errors.clear":"Показать все","errors.noDetails":"Нет деталей","errors.select":"Выбрать компонент",userDefinedComponents:"Пользовательские компоненты",timersTitle:"Таймеры",timersAdd:"Добавить таймер",timersEmptyId:"Пустой идентифекатор переменной",timersId:"Идентификатор",timersDuration:"Длительность",timersTickInterval:"Периодический интервал",timersValueVariable:"Переменная",timersTickActions:"Периодические действия",timersEndActions:"Действия при окончании","rtl.switchToRtl":"Включить написание справа-налево","rtl.switchToLTR":"Включить написание слева-направо"},hL={collapse:"Collapse",expand:"Expand",treeMenu:"Menu","treeItem.warnings":"Warnings","treeItem.errors":"Errors",addComponent:"Add component",removeComponent:"Remove",cloneComponent:"Duplicate component",copyComponent:"Copy component",pasteComponent:"Paste component",newComponentTitle:"New component",components:"Components tree",basicComponents:"Basic components",additionalComponents:"Additional components",lightTheme:"Light theme",darkTheme:"Dark theme",componentProperties:"Properties",complexComponentProperties:"Complex properties",code:"Code",chooseComponent:"Choose the element",inset_top:"top",inset_right:"right",inset_bottom:"bottom",inset_left:"left",inset_content:"content","props.width":"Width","props.height":"Height","props.size_fixed":"Fixed","props.size_match_parent":"Fill","props.size_wrap_content":"Content","props.size_constrained":"Constrained","props.alignment":"Alignment","props.alignment_horizontal":"Self horizontal align","props.alignment_vertical":"Self vertical align","props.align_left":"Left","props.align_center":"Center","props.align_right":"Right","props.align_top":"Top","props.align_bottom":"Bottom","props.align_start":"Start","props.align_end":"End","props.alpha":"Alpha","props.rotation":"Rotation","props.insets":"Margins and paddings","props.paddings":"Paddings","props.margins":"Margins","props.text":"Text","props.font_size":"Text size","props.font_size_small":"Small","props.font_size_medium":"Medium","props.font_size_large":"Large","props.font_weight":"Weight","props.font_weight_light":"300 — Light","props.font_weight_normal":"400 — Normal","props.font_weight_medium":"500 — Medium","props.font_weight_bold":"700 — Bold","props.font_family":"Font family","props.text_color":"Text color","props.text_alignment_horizontal":"Alignment","props.underline":"Underline","props.strike":"Strikethrough","props.image_url":"Image","props.preview":"Preview","props.image_scale":"Scale","props.scale_fit":"Fit","props.scale_fill":"Fill","props.scale_no_scale":"No scale","props.scale_stretch":"Stretch","props.image_alignment":"Image align","props.image_alignment_horizontal":"Image horizontal align","props.image_alignment_vertical":"Image vertical align","props.lottie_url":"Animation","props.background":"Background","props.background_solid":"Color","props.background_gradient":"Gradient","props.background_gradient_angle":"Angle","props.background_gradient_count":"Stops count","props.background_image":"Image","props.corners":"Corners radius","props.actions":"Actions","props.orientation":"Orientation","props.orientation_horizontal":"Horizontal","props.orientation_vertical":"Vertical","props.orientation_overlap":"Overlap","props.content_alignment":"Content align","props.cross_content_alignment":"Cross content align","props.content_alignment_horizontal":"Content horizontal align","props.content_alignment_vertical":"Content vertical align","props.orientation_start":"Start","props.orientation_center":"Center","props.orientation_end":"End","props.separator_color":"Color","props.line_height":"Line height","props.spacing":"Item spacing","props.video_repeatable":"Repeat","props.video_autostart":"Autostart","props.video_muted":"Mute","props.video_sources":"Video source","props.column_count":"Column count","props.column_span":"Column span","props.row_span":"Row span","props.text_variable":"Bound variable","props.keyboard_type":"Input type","props.keyboard_single_line_text":"Single line","props.keyboard_multi_line_text":"Multi line","props.keyboard_phone":"Phone","props.keyboard_number":"Number","props.keyboard_email":"Email","props.keyboard_uri":"Uri","props.keyboard_password":"Password","props.max_length":"Max length","props.hint_text":"Hint text","props.a11y_description":"Description","props.select_options":"Select options","props.is_enabled":"Is enabled","props.on_color":"Color of the enabled state",actions_count:["%s action","%s actions","%s actions","No actions"],actions_no_url:"<no url>","actions-url":"Url","actions-unknown":"Unknown","actions-log-id":"Log ID","actions-log-url":"Log url","actions.focus_element":"Focus element","actions.clear_focus":"Clear focus","actions.set_variable":"Set variable","actions.array_insert_value":"Insert value into array","actions.array_remove_value":"Remove value from array","actions.copy_to_clipboard":"Copy to clipboard","actions.dict_set_value":"Set value in dict","actions.array_set_value":"Set value in array","actions.show_tooltip":"Show tooltip","actions.hide_tooltip":"Hide tooltip","video-url":"Source url","video-mime-type":"Source mime type","select.text":"Select text","select.value":"Select value",cancel:"Cancel",save:"Save",close:"Close",color:"Color",image:"Image",animation:"Animation",delete:"Delete",add_color:"Add color",add_background:"Add layer",add_action:"Add action",add_video:"Add source",add_select_option:"Add option",no_background:"No background",multiple_backgrounds:"Multiple layers",unknown_background:"Unknown background",background_solid:"Color: %s",background_gradient:"Gradient",background_image:"Image: %s",background_image_no_url:"<no url>",errors:"Errors",no_errors:"No errors",undo:"Undo",redo:"Redo",previewSize:"Preview size",previewLang:"Preview language",previewDirection:"Text direction","components.image":"Image","components.gif":"Gif-image","components.text":"Text","components.separator":"Separator","components.container":"Container","components.grid":"Grid","components.gallery":"Gallery","components.pager":"Pager","components.tabs":"Tabs","components.state":"State","components.custom":"Custom","components.indicator":"Indicator","components.slider":"Slider","components.input":"Input","components.select":"Select","components.video":"Video","components.switch":"Switch","templates.lottie":"Lottie","templates.button":"Button","templates.close":"Cross button","templates.list_item":"List item",rootComponent:"Root component",palette:"Palette",localPalette:"Local palette",missingPaletteColor:"Missing palette color '%s'",addColor:"Add color","baseProps.title":"Basic properties and alignment","textProps.title":"Text properties","imageProps.title":"Image properties","videoProps.title":"Video properties","containerProps.title":"Container properties","gridProps.title":"Grid properties","galleryProps.title":"Gallery properties","separatorProps.title":"Separator properties","lottieProps.title":"Lottie properties","buttonProps.title":"Button properties","closeProps.title":"Cross button properties","listItemProps.title":"List item properties","inputProps.title":"Input properties","selectProps.title":"Select properties","switchProps.title":"Switch properties","a11yProps.title":"Accessibility properties",default:"Default","background.image":"Image","background.gradient":"Linear gradient","background.solid_first_title":"Color","background.solid_second_title":"Alpha","background.gradient_second_title":"Gradient angle","background.image_second_title":"Alpha","file.image_placeholder":"Image link","file.gif_placeholder":"Gif-animation link","file.lottie_placeholder":"Lottie-animation link","file.video_placeholder":"Video link","file.image_label":"Drop image here","file.gif_label":"Drop Gif animation here","file.lottie_label":"Drop Lottie animation here","file.video_label":"Drop video here","file.image_error":"Unable to load an image","file.gif_error":"Unable to load a Gif-animation","file.lottie_error":"Unable to load a Lottie-animation","file.video_error":"Unable to load a video","file.image_upload":"Upload an image","file.gif_upload":"Upload Gif","file.lottie_upload":"Upload Lottie","file.video_upload":"Upload video","file.select":"Select file","file.insert_image":"Insert image","file.too_big":"The file is too large","file.generate_from_video":"Generate from video","file.generate_from_lottie":"Generate from animation","link.placeholder":"Input link address",textStyle:"Styles","commands.add_component":"Component addition","commands.move_component":"Component move","commands.remove_component":"Component removal","commands.set_json":"Json change","commands.set_property":"Property change","commands.add_palette_item":"Palette color addition","commands.delete_palette_item":"Palette color removal","commands.reorder_palette_item":"Reorder palette list","commands.rename_palette_item":"Rename palette item","commands.change_palette_item":"Change palette item","commands.change_custom_variables":"Change variables","commands.change_timers":"Change timers",tankerTitle:"Tanker",tankerEnterValue:"Input a key",tankerKey:"Key:",tankerDialogTitle:"Enter tanker key",tankerPlaceholder:"Tanker key",tankerMissing:"Key is not found",tankerOverview:"Tanker keys",tankerOverviewEmpty:"No used tanker keys",tankerUpdate:"Update keys",expressionTitle:"Expression",sourcesTitle:"External sources",sourcesEmpty:"No external sources integrated",sourcesName:"Name",sourcesUrl:"Source",inplaceEditorDisabled:"Text from tanker or expressions can be edited only through a suitable interface",customVariablesTitle:"Variables",customVariablesAdd:"Add variable",customVariablesEmptyName:"Empty variable name",customVariablesName:"Name",customVariablesType:"Type",customVariablesValue:"Value",customVariablesTypeString:"string",customVariablesTypeNumber:"number",customVariablesTypeInteger:"integer",customVariablesTypeBoolean:"boolean",customVariablesTypeUrl:"url",customVariablesTypeColor:"color",customVariablesTypeDict:"dict",customVariablesTypeArray:"array",customVariablesBooleanValidation:'Should be "true" or "false"',customVariablesJsonValidation:"Failed to parse",canvasCustomSize:"Custom","props.add":"add","props.remove":"remove","props.supports":"Supported only on ","props.not_supported":"Not supported","props.deprecated":"Deprecated","errors.selectedTitle":"Displaying only events from the one leaf","errors.clear":"Show all","errors.noDetails":"No details","errors.select":"Select component",userDefinedComponents:"User components",timersTitle:"Timers",timersAdd:"Add timer",timersEmptyId:"Empty timer id",timersId:"Id",timersDuration:"Duration",timersTickInterval:"Tick interval",timersValueVariable:"Value variable",timersTickActions:"Tick actions",timersEndActions:"End actions","rtl.switchToRTL":"Turn on RTL layout","rtl.switchToLTR":"Turn on LTR layout"},vL={ru:gL,en:hL};function Tu(t){const e=t-1;return e*e*e+1}function gp(t,{delay:e=0,duration:n=400,easing:i=$u}={}){const o=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:i,css:r=>`opacity: ${r*o}`}}function fr(t,{delay:e=0,duration:n=400,easing:i=Tu,x:o=0,y:r=0,opacity:s=0}={}){const l=getComputedStyle(t),a=+l.opacity,c=l.transform==="none"?"":l.transform,d=a*(1-s),[u,p]=up(o),[_,f]=up(r);return{delay:e,duration:n,easing:i,css:(m,h)=>`\n\t\t\ttransform: ${c} translate(${(1-m)*u}${p}, ${(1-m)*_}${f});\n\t\t\topacity: ${a-d*h}`}}function Go(t,{delay:e=0,duration:n=400,easing:i=Tu,axis:o="y"}={}){const r=getComputedStyle(t),s=+r.opacity,l=o==="y"?"height":"width",a=parseFloat(r[l]),c=o==="y"?["top","bottom"]:["left","right"],d=c.map((v=>`${v[0].toUpperCase()}${v.slice(1)}`)),u=parseFloat(r[`padding${d[0]}`]),p=parseFloat(r[`padding${d[1]}`]),_=parseFloat(r[`margin${d[0]}`]),f=parseFloat(r[`margin${d[1]}`]),m=parseFloat(r[`border${d[0]}Width`]),h=parseFloat(r[`border${d[1]}Width`]);return{delay:e,duration:n,easing:i,css:v=>`overflow: hidden;opacity: ${Math.min(v*20,1)*s};${l}: ${v*a}px;padding-${c[0]}: ${v*u}px;padding-${c[1]}: ${v*p}px;margin-${c[0]}: ${v*_}px;margin-${c[1]}: ${v*f}px;border-${c[0]}-width: ${v*m}px;border-${c[1]}-width: ${v*h}px;`}}const Wd=new Set;function bL(t){if(t.defaultPrevented)return;const e=[];for(const{shortcut:n,handler:i,prio:o}of Wd)n.isPressed(t)&&e.push({handler:i,prio:o});e.sort(((n,i)=>{if(n.prio){if(!i.prio)return-1}else return 1;return i.prio-n.prio})),e.length&&setTimeout((()=>{}));for(let n=0;n<e.length;++n){const{handler:i}=e[n];if(i(t)!==!1){t.preventDefault();break}}}function yL(t,e,n){const i={shortcut:t,handler:e,prio:n};return Wd.add(i),{unbind:()=>{Wd.delete(i)}}}function b1(t,e){const n=e.map((i=>yL(i[0],(o=>{const r=!!t.closest("dialog"),s=!!document.querySelector("dialog");if(r===s)i[1](o);else return!1}),i[2]).unbind));return{destroy(){for(const i of n)i()}}}function bl(t){return t.charAt(0).toUpperCase()+t.substring(1)}const hp=/Mac OS/i.test(navigator.userAgent),Xr={SHIFT:{val:4,field:"shiftKey",str:"⇧"},CTRL:{val:1,field:"ctrlKey",str:"⌃"},ALT:{val:2,field:"altKey",str:"⌥"},CMD:{val:8,field:"metaKey",str:"⌘"}},gc={BACKSPACE:8,TAB:9,ENTER:13,ESC:27,SPACE:32,HOME:36,END:35,PAGEUP:33,PAGEDOWN:34,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,S:83,T:84,U:85,V:86,X:88,Y:89,Z:90,1:49,2:50,3:51,"/":191},wL=Object.keys(gc).reduce(((t,e)=>(t[gc[e]]=e,t)),{}),ds=class ds{constructor(e){on(this,"_parts");on(this,"_strParts");on(this,"_str");e.includes(ds.MAC_SPLITTER)&&(e=e.split(ds.MAC_SPLITTER)[hp?1:0].trim()),this._parts=[],this._strParts=[];for(const n of e.split(ds.SEVERAL_SPLITTER)){const i=n.trim();this._parts.push(this._parse(i)),this._strParts.push(i.split("+"))}hp?this._str=this._genMacStr():this._str=e}_parse(e){const n=e.split("+");let i=0,o;for(const r of n){const s=r.toUpperCase();if(!(s in Xr)&&!(s in gc))throw new Error(`Unknown key ${e}`);s in Xr?i+=Xr[s].val:o=gc[s]}if(!o)throw new Error(`Incorrect shortcut ${e}`);return{which:o,modifiers:i}}_genMacStr(){return this._parts.map((e=>{let n="";const i=e.modifiers;for(const o in Xr)i&Xr[o].val&&(n+=Xr[o].str);return n+=bl(wL[e.which].toLowerCase()),n})).join(ds.SEVERAL_SPLITTER)}toString(){return this._str}isPressed(e){for(const n of this._parts){if(e.which!==n.which)continue;let i=0;for(const o in Xr)e[Xr[o].field]&&(i+=Xr[o].val);if(i===n.modifiers)return!0}return!1}getList(){return this._strParts}};on(ds,"MAC_SPLITTER",":"),on(ds,"SEVERAL_SPLITTER"," / ");let di=ds;const y1=new di("Esc"),zu=new di("Esc"),Jc=new di("Enter"),$L=new di("Ctrl+Enter : Cmd+Enter"),vp=new di("Up"),kL=new di("Down"),jL=new di("Left"),SL=new di("Right"),CL=new di("Up"),TL=new di("Down"),zL=new di("Left"),EL=new di("Right"),bp=new di("Shift+Up"),yp=new di("Shift+Down"),wp=new di("Shift+Left"),$p=new di("Shift+Right"),AL=new di("Ctrl+Up"),OL=new di("Ctrl+Down"),ML=new di("Ctrl+Left"),PL=new di("Ctrl+Right"),kp=new di("Ctrl+Shift+Up"),jp=new di("Ctrl+Shift+Down"),Sp=new di("Ctrl+Shift+Left"),Cp=new di("Ctrl+Shift+Right"),w1=new di("Delete / Backspace"),$1=new di("Ctrl+Z : Cmd+Z"),k1=new di("Ctrl+Y / Ctrl+Shift+Z : Cmd+Y / Cmd+Shift+Z"),j1=new di("Ctrl+C : Cmd+C"),S1=new di("Ctrl+V : Cmd+V"),IL=new di("Up"),DL=new di("Down"),VL=new di("Left"),LL=new di("Right"),FL=new di("Up"),NL=new di("Down"),qL=new di("Left"),RL=new di("Right"),C1=new di("Up"),T1=new di("Down"),BL=new di("Home"),HL=new di("End"),UL=new di("Delete / Backspace"),An=Symbol("app");function ho(t){return t.replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29")}function Tp(t){let e,n=`url(${ho(t[0].icon)})`;return{c(){e=S("span"),g(e,"class","menu-item__icon svelte-1o1lgms"),je(e,"background-image",n)},m(i,o){N(i,e,o)},p(i,o){o&1&&n!==(n=`url(${ho(i[0].icon)})`)&&je(e,"background-image",n)},d(i){i&&F(e)}}}function zp(t){let e;return{c(){e=S("span"),g(e,"class","menu-item__submenu-icon svelte-1o1lgms")},m(n,i){N(n,e,i)},d(n){n&&F(e)}}}function JL(t){let e,n,i=t[0].text+"",o,r,s,l,a=t[0].icon&&Tp(t),c=t[0].submenu&&zp();return{c(){e=S("li"),a&&a.c(),n=X(),o=Ze(i),r=X(),c&&c.c(),g(e,"class","menu-item svelte-1o1lgms"),te(e,"menu-item_icon",t[0].icon),te(e,"menu-item_enabled",t[0].enabled!==!1),te(e,"menu-item_selected",t[1])},m(d,u){N(d,e,u),a&&a.m(e,null),$(e,n),$(e,o),$(e,r),c&&c.m(e,null),t[5](e),s||(l=[ee(e,"click",Eo(zi(t[6]))),ee(e,"mouseenter",(function(){Yo(t[0].submenu?t[7]:null)&&(t[0].submenu?t[7]:null).apply(this,arguments)})),ee(e,"mouseleave",(function(){Yo(t[0].submenu?t[8]:null)&&(t[0].submenu?t[8]:null).apply(this,arguments)}))],s=!0)},p(d,[u]){t=d,t[0].icon?a?a.p(t,u):(a=Tp(t),a.c(),a.m(e,n)):a&&(a.d(1),a=null),u&1&&i!==(i=t[0].text+"")&<(o,i),t[0].submenu?c||(c=zp(),c.c(),c.m(e,null)):c&&(c.d(1),c=null),u&1&&te(e,"menu-item_icon",t[0].icon),u&1&&te(e,"menu-item_enabled",t[0].enabled!==!1),u&2&&te(e,"menu-item_selected",t[1])},i:tn,o:tn,d(d){d&&F(e),a&&a.d(),c&&c.d(),t[5](null),s=!1,qn(l)}}}function WL(t,e,n){let{item:i}=e,{selected:o=!1}=e;const{contextMenu:r}=wt(An);let s;const l=_i();function a(p){pt[p?"unshift":"push"]((()=>{s=p,n(2,s)}))}const c=()=>{var p;i.enabled!==!1&&((p=i.callback)==null?void 0:p.call(i))!==!1&&r().hide()},d=()=>{l("showsubmenu",{elem:s})},u=()=>{l("hidesubmenu")};return t.$$set=p=>{"item"in p&&n(0,i=p.item),"selected"in p&&n(1,o=p.selected)},[i,o,s,r,l,a,c,d,u]}class z1 extends Gt{constructor(e){super(),Yt(this,e,WL,JL,Rt,{item:0,selected:1})}}const{window:KL}=va;function Ep(t,e,n){const i=t.slice();return i[27]=e[n],i}function Ap(t,e,n){const i=t.slice();return i[27]=e[n],i}function Op(t){var p;let e,n,i,o,r,s,l,a=an(t[1].items),c=[];for(let _=0;_<a.length;_+=1)c[_]=Mp(Ap(t,a,_));const d=_=>H(c[_],1,1,(()=>{c[_]=null}));let u=((p=t[5])==null?void 0:p.submenu)&&Pp(t);return{c(){e=S("div"),n=S("ul");for(let _=0;_<c.length;_+=1)c[_].c();o=X(),u&&u.c(),g(n,"class","menu svelte-1306v9l"),je(n,"left",t[2].left),je(n,"top",t[2].top),je(n,"width",t[2].width),je(n,"height",t[2].height),g(e,"class","menu-controller svelte-1306v9l")},m(_,f){N(_,e,f),$(e,n);for(let m=0;m<c.length;m+=1)c[m]&&c[m].m(n,null);t[14](n),$(e,o),u&&u.m(e,null),t[16](e),r=!0,s||(l=i1(b1.call(null,e,t[12])),s=!0)},p(_,f){var m;if(f[0]&1570){a=an(_[1].items);let h;for(h=0;h<a.length;h+=1){const v=Ap(_,a,h);c[h]?(c[h].p(v,f),I(c[h],1)):(c[h]=Mp(v),c[h].c(),I(c[h],1),c[h].m(n,null))}for(It(),h=a.length;h<c.length;h+=1)d(h);Dt()}f[0]&4&&je(n,"left",_[2].left),f[0]&4&&je(n,"top",_[2].top),f[0]&4&&je(n,"width",_[2].width),f[0]&4&&je(n,"height",_[2].height),(m=_[5])!=null&&m.submenu?u?(u.p(_,f),f[0]&32&&I(u,1)):(u=Pp(_),u.c(),I(u,1),u.m(e,null)):u&&(It(),H(u,1,1,(()=>{u=null})),Dt())},i(_){if(!r){for(let f=0;f<a.length;f+=1)I(c[f]);_&&po((()=>{r&&(i||(i=Zi(n,fr,{y:10,duration:150},!0)),i.run(1))})),I(u),r=!0}},o(_){c=c.filter(Boolean);for(let f=0;f<c.length;f+=1)H(c[f]);_&&(i||(i=Zi(n,fr,{y:10,duration:150},!1)),i.run(0)),H(u),r=!1},d(_){_&&F(e),Bi(c,_),t[14](null),_&&i&&i.end(),u&&u.d(),t[16](null),s=!1,l()}}}function Mp(t){let e,n;function i(...o){return t[13](t[27],...o)}return e=new z1({props:{item:t[27],selected:t[27]===t[5]}}),e.$on("showsubmenu",i),e.$on("hidesubmenu",t[10]),{c(){Ie(e.$$.fragment)},m(o,r){Oe(e,o,r),n=!0},p(o,r){t=o;const s={};r[0]&2&&(s.item=t[27]),r[0]&34&&(s.selected=t[27]===t[5]),e.$set(s)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){H(e.$$.fragment,o),n=!1},d(o){Me(e,o)}}}function Pp(t){let e,n,i,o,r,s=an(t[5].submenu),l=[];for(let c=0;c<s.length;c+=1)l[c]=Ip(Ep(t,s,c));const a=c=>H(l[c],1,1,(()=>{l[c]=null}));return{c(){e=S("ul");for(let c=0;c<l.length;c+=1)l[c].c();g(e,"class","menu menu_submenu svelte-1306v9l"),je(e,"left",t[6].left),je(e,"top",t[6].top),je(e,"width",t[6].width),je(e,"height",t[6].height)},m(c,d){N(c,e,d);for(let u=0;u<l.length;u+=1)l[u]&&l[u].m(e,null);t[15](e),i=!0,o||(r=[ee(e,"mouseenter",t[11]),ee(e,"mouseleave",t[10])],o=!0)},p(c,d){if(d[0]&32){s=an(c[5].submenu);let u;for(u=0;u<s.length;u+=1){const p=Ep(c,s,u);l[u]?(l[u].p(p,d),I(l[u],1)):(l[u]=Ip(p),l[u].c(),I(l[u],1),l[u].m(e,null))}for(It(),u=s.length;u<l.length;u+=1)a(u);Dt()}d[0]&64&&je(e,"left",c[6].left),d[0]&64&&je(e,"top",c[6].top),d[0]&64&&je(e,"width",c[6].width),d[0]&64&&je(e,"height",c[6].height)},i(c){if(!i){for(let d=0;d<s.length;d+=1)I(l[d]);c&&po((()=>{i&&(n||(n=Zi(e,fr,{y:10,duration:150},!0)),n.run(1))})),i=!0}},o(c){l=l.filter(Boolean);for(let d=0;d<l.length;d+=1)H(l[d]);c&&(n||(n=Zi(e,fr,{y:10,duration:150},!1)),n.run(0)),i=!1},d(c){c&&F(e),Bi(l,c),t[15](null),c&&n&&n.end(),o=!1,qn(r)}}}function Ip(t){let e,n;return e=new z1({props:{item:t[27]}}),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o[0]&32&&(r.item=i[27]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function YL(t){let e,n,i,o,r=t[0]&&t[1]&&Op(t);return{c(){r&&r.c(),e=Dn()},m(s,l){r&&r.m(s,l),N(s,e,l),n=!0,i||(o=ee(KL,"click",t[8]),i=!0)},p(s,l){s[0]&&s[1]?r?(r.p(s,l),l[0]&3&&I(r,1)):(r=Op(s),r.c(),I(r,1),r.m(e.parentNode,e)):r&&(It(),H(r,1,1,(()=>{r=null})),Dt())},i(s){n||(I(r),n=!0)},o(s){H(r),n=!1},d(s){s&&F(e),r&&r.d(s),i=!1,o()}}}function GL(t,e,n){const{setContextMenuApi:i}=wt(An);i({toggle:v,hide:b});let o="",r=null,s,l,a={},c,d,u=null,p={},_,f,m,h;function v(U){o?b():y(U)}function y(U){U.owner instanceof HTMLElement&&(n(0,o=U.name||"<unknown>"),n(1,r=U),s=U.owner.getBoundingClientRect(),l=null,n(2,a={}),n(6,p={}))}function b(){n(0,o=""),n(1,r=null),n(5,u=null),f=null}function w(U){const B=U.composedPath();!B.includes(d)&&!(r!=null&&r.owner&&B.includes(r.owner))&&b()}function k(U,B){h=U.getBoundingClientRect(),clearTimeout(_),n(5,u=B),f=null}function E(){clearTimeout(_),_=setTimeout((()=>{n(5,u=null),f=null}),300)}function T(){clearTimeout(_)}const j=[[y1,()=>{if(o){b();return}return!1}]];function A(U,B,C){var ue,fe;const q=((ue=r==null?void 0:r.offset)==null?void 0:ue.x)??-8,V=((fe=r==null?void 0:r.offset)==null?void 0:fe.y)??8,Y=window.scrollY;let x="auto",de="auto",_e,G,Q=window.innerWidth,oe=window.innerHeight,he=U.left+q,ze=U.right+q,W=U.width;he<0&&(he=0,W=ze-he),ze>Q&&(ze=Q,W=ze-he);let Ke=B.width;Ke>Q?(Ke=Q,x=Ke+"px"):Ke<W&&W<=500&&(Ke=W,x=Ke+"px");const at=C==="bottom"?he:he+W;at+Ke<Q?_e=at:ze>Ke?_e=ze-Ke:he-(Q-Ke)<Ke-ze?_e=Q-Ke:_e=0;let Te=U.bottom+Y+V;Te>oe+Y&&(Te=oe+Y);let ot=B.height;ot>oe&&(ot=oe,de=oe+"px"),C==="bottom"?Te+ot<oe+Y?G=Te:U.top+Y+V>ot?G=U.top+Y+V-ot:G=0:C==="right"?U.top+ot<oe+Y?G=U.top:oe>ot?G=oe-ot:G=0:G=0;const J=d.getBoundingClientRect();return _e-=J.left,G-=J.top,{top:G+"px",left:_e+"px",width:x,height:de}}gs((()=>{!l&&c&&d&&(l=c.getBoundingClientRect(),n(2,a=A(s,l,"bottom"))),!f&&m&&d&&(f=m.getBoundingClientRect(),n(6,p=A(h,f,"right")))}));const O=(U,B)=>k(B.detail.elem,U);function M(U){pt[U?"unshift":"push"]((()=>{c=U,n(3,c)}))}function D(U){pt[U?"unshift":"push"]((()=>{m=U,n(7,m)}))}function R(U){pt[U?"unshift":"push"]((()=>{d=U,n(4,d)}))}return[o,r,a,c,d,u,p,m,w,k,E,T,j,O,M,D,R]}class XL extends Gt{constructor(e){super(),Yt(this,e,GL,YL,Rt,{},null,[-1,-1])}}function ZL(t,e){let n=0,i,o=!1;return function(){const r=Date.now();return!n||Math.abs(r-n)>e?(n=r,i=t.apply(this,arguments)):(o||(o=!0,setTimeout((()=>{o=!1,i=t.apply(this,arguments)}),e)),i)}}const{window:yd}=va;function Dp(t,e,n){const i=t.slice();return i[31]=e[n],i}function Vp(t){let e,n,i=`url(${ho(t[13])})`;return{c(){e=S("div"),n=S("div"),g(n,"class","select__icon svelte-1fdlshr"),je(n,"background-image",i),g(e,"class","select__icon-wrapper svelte-1fdlshr")},m(o,r){N(o,e,r),$(e,n)},p(o,r){r[0]&8192&&i!==(i=`url(${ho(o[13])})`)&&je(n,"background-image",i)},d(o){o&&F(e)}}}function Lp(t){let e,n,i,o,r,s=an(t[1]),l=[];for(let a=0;a<s.length;a+=1)l[a]=Np(Dp(t,s,a));return{c(){e=S("div"),n=S("ul");for(let a=0;a<l.length;a+=1)l[a].c();g(n,"class","select__list svelte-1fdlshr"),g(e,"class",i="select__popup select__popup_direction_"+t[8]+" svelte-1fdlshr"),g(e,"id","popup_"+t[15])},m(a,c){N(a,e,c),$(e,n);for(let d=0;d<l.length;d+=1)l[d]&&l[d].m(n,null);t[25](e),r=!0},p(a,c){if(c[0]&524291){s=an(a[1]);let d;for(d=0;d<s.length;d+=1){const u=Dp(a,s,d);l[d]?l[d].p(u,c):(l[d]=Np(u),l[d].c(),l[d].m(n,null))}for(;d<l.length;d+=1)l[d].d(1);l.length=s.length}(!r||c[0]&256&&i!==(i="select__popup select__popup_direction_"+a[8]+" svelte-1fdlshr"))&&g(e,"class",i)},i(a){r||(a&&po((()=>{r&&(o||(o=Zi(e,fr,{duration:200,y:10},!0)),o.run(1))})),r=!0)},o(a){a&&(o||(o=Zi(e,fr,{duration:200,y:10},!1)),o.run(0)),r=!1},d(a){a&&F(e),Bi(l,a),t[25](null),a&&o&&o.end()}}}function Fp(t){let e,n,i=`url(${ho(t[31].icon)})`;return{c(){e=S("div"),n=S("div"),g(n,"class","select__icon svelte-1fdlshr"),je(n,"background-image",i),g(e,"class","select__icon-wrapper svelte-1fdlshr")},m(o,r){N(o,e,r),$(e,n)},p(o,r){r[0]&2&&i!==(i=`url(${ho(o[31].icon)})`)&&je(n,"background-image",i)},d(o){o&&F(e)}}}function Np(t){let e,n,i=(t[31].text??t[31].value)+"",o,r,s,l,a=t[31].icon&&Fp(t);function c(){return t[24](t[31])}return{c(){e=S("li"),a&&a.c(),n=X(),o=Ze(i),r=X(),g(e,"class","select__item svelte-1fdlshr"),te(e,"select__item_selected",t[31].value===t[0]),te(e,"select__item_icon",t[31].icon)},m(d,u){N(d,e,u),a&&a.m(e,null),$(e,n),$(e,o),$(e,r),s||(l=ee(e,"click",zi(c)),s=!0)},p(d,u){t=d,t[31].icon?a?a.p(t,u):(a=Fp(t),a.c(),a.m(e,n)):a&&(a.d(1),a=null),u[0]&2&&i!==(i=(t[31].text??t[31].value)+"")&<(o,i),u[0]&3&&te(e,"select__item_selected",t[31].value===t[0]),u[0]&2&&te(e,"select__item_icon",t[31].icon)},d(d){d&&F(e),a&&a.d(),s=!1,l()}}}function xL(t){let e,n,i,o,r,s,l,a,c,d,u,p=t[13]&&Vp(t),_=t[7]&&Lp(t);return{c(){e=S("div"),n=S("div"),p&&p.c(),i=X(),o=Ze(t[14]),s=X(),l=S("div"),a=X(),_&&_.c(),g(n,"class","select__select svelte-1fdlshr"),g(n,"tabindex","0"),g(n,"aria-disabled",t[4]),g(n,"aria-expanded",t[7]),g(n,"aria-autocomplete","list"),g(n,"aria-controls","popup_"+t[15]),g(n,"aria-label",t[6]),g(n,"data-custom-tooltip",r=t[7]?void 0:t[6]),g(n,"role","combobox"),te(n,"select__select_icon",t[13]),g(l,"class","select__arrow svelte-1fdlshr"),g(e,"class",c="select select_theme_"+t[2]+" select_size_"+t[3]+" "+t[5]+" svelte-1fdlshr"),te(e,"select_disabled",t[4]),te(e,"select_error",t[12])},m(f,m){N(f,e,m),$(e,n),p&&p.m(n,null),$(n,i),$(n,o),t[23](n),$(e,s),$(e,l),$(e,a),_&&_.m(e,null),t[26](e),d||(u=[ee(yd,"keydown",(function(){Yo(t[7]?t[17]:void 0)&&(t[7]?t[17]:void 0).apply(this,arguments)})),ee(yd,"click",(function(){Yo(t[7]?t[18]:void 0)&&(t[7]?t[18]:void 0).apply(this,arguments)})),ee(yd,"resize",(function(){Yo(t[7]?t[21]:void 0)&&(t[7]?t[21]:void 0).apply(this,arguments)})),ee(n,"click",zi(t[20])),ee(n,"keydown",t[16])],d=!0)},p(f,m){t=f,t[13]?p?p.p(t,m):(p=Vp(t),p.c(),p.m(n,i)):p&&(p.d(1),p=null),m[0]&16384&<(o,t[14]),m[0]&16&&g(n,"aria-disabled",t[4]),m[0]&128&&g(n,"aria-expanded",t[7]),m[0]&64&&g(n,"aria-label",t[6]),m[0]&192&&r!==(r=t[7]?void 0:t[6])&&g(n,"data-custom-tooltip",r),m[0]&8192&&te(n,"select__select_icon",t[13]),t[7]?_?(_.p(t,m),m[0]&128&&I(_,1)):(_=Lp(t),_.c(),I(_,1),_.m(e,null)):_&&(It(),H(_,1,1,(()=>{_=null})),Dt()),m[0]&44&&c!==(c="select select_theme_"+t[2]+" select_size_"+t[3]+" "+t[5]+" svelte-1fdlshr")&&g(e,"class",c),m[0]&60&&te(e,"select_disabled",t[4]),m[0]&4140&&te(e,"select_error",t[12])},i(f){I(_)},o(f){H(_)},d(f){f&&F(e),p&&p.d(),t[23](null),_&&_.d(),t[26](null),d=!1,qn(u)}}}const QL=24;function eF(t,e,n){let i,o,r,{items:s}=e,{value:l}=e,{theme:a}=e,{size:c="small"}=e,{disabled:d=!1}=e,{mix:u=""}=e,{title:p=""}=e,{required:_=!1}=e;const f="select"+Math.random(),m=_i();let h=!1,v="down",y,b,w;function k(V){let Y=s.findIndex((x=>x.value===l));Y!==-1&&(Y+=V,Y>=s.length&&(Y=0),Y<0&&(Y=s.length-1),A(s[Y].value))}function E(V){if(!d){if(C1.isPressed(V))k(-1);else if(T1.isPressed(V))k(1);else if(BL.isPressed(V))A(s[0].value);else if(HL.isPressed(V))A(s[s.length-1].value);else if(Jc.isPressed(V))n(7,h=!h);else return;V.preventDefault()}}function T(V){y1.isPressed(V)&&(n(7,h=!1),V.preventDefault())}function j(V){V.composedPath().includes(y)||n(7,h=!1)}function A(V){n(0,l=V),Promise.resolve().then((()=>m("change",V)))}function O(V){V!==l&&A(V),n(7,h=!1),ur().then((()=>{b==null||b.focus()}))}function M(){d||n(7,h=!h)}const D=()=>{if(!h)return;const V=y.getBoundingClientRect().bottom,Y=w.offsetHeight;V+Y+QL>window.innerHeight?n(8,v="up"):n(8,v="down")},R=ZL(D,100);gs((()=>{D()}));function U(V){pt[V?"unshift":"push"]((()=>{b=V,n(10,b)}))}const B=V=>O(V.value);function C(V){pt[V?"unshift":"push"]((()=>{w=V,n(11,w)}))}function q(V){pt[V?"unshift":"push"]((()=>{y=V,n(9,y)}))}return t.$$set=V=>{"items"in V&&n(1,s=V.items),"value"in V&&n(0,l=V.value),"theme"in V&&n(2,a=V.theme),"size"in V&&n(3,c=V.size),"disabled"in V&&n(4,d=V.disabled),"mix"in V&&n(5,u=V.mix),"title"in V&&n(6,p=V.title),"required"in V&&n(22,_=V.required)},t.$$.update=()=>{var V,Y,x;t.$$.dirty[0]&3&&n(14,i=((V=s.find((de=>de.value===l)))==null?void 0:V.text)||l||""),t.$$.dirty[0]&3&&n(13,o=(Y=s.find((de=>de.value===l)))==null?void 0:Y.icon),t.$$.dirty[0]&4194307&&n(12,r=_&&!((x=s.find((de=>de.value===l)))!=null&&x.value))},[l,s,a,c,d,u,p,h,v,y,b,w,r,o,i,f,E,T,j,O,M,R,_,U,B,C,q]}class Hr extends Gt{constructor(e){super(),Yt(this,e,eF,xL,Rt,{items:1,value:0,theme:2,size:3,disabled:4,mix:5,title:6,required:22},null,[-1,-1])}}var tF=Object.defineProperty,nF=(t,e,n)=>e in t?tF(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Xi=(t,e,n)=>nF(t,typeof e!="symbol"?e+"":e,n)
|
|
2
|
-
/*!
|
|
3
|
-
DivKit v31.2.0
|
|
4
|
-
https://github.com/divkit/divkit
|
|
5
|
-
@licence Apache-2.0
|
|
6
|
-
*/;function Eu(t){return BigInt(t)}const ea=Eu("9223372036854775807"),ta=Eu("-9223372036854775808");function bo(t){const e=Eu(t);if(e>ea||e<ta)throw new Error("Integer overflow.");return e}const Os=bo(0);function E1(t){let e=t;return e<0&&(e=-e),e}function A1(t){let e=0;return t>0?e=1:t<0&&(e=-1),bo(e)}function iF(t,e){return e&&e[3]&&e[7]?{type:"ConditionalExpression",test:t,consequent:e[3],alternate:e[7]}:t}function oF(t,e){return e&&e[3]?{type:"TryExpression",test:t,alternate:e[3]}:t}function Ca(t,e){return e.length?e.reduce(((n,i)=>({type:"BinaryExpression",operator:i[1],left:n,right:i[3]})),t):t}function qp(t,e){return e.length?e.reduce(((n,i)=>({type:"LogicalExpression",operator:i[1],left:n,right:i[3]})),t):t}function rF(t,e){return e.length?e.reduce(((n,i)=>{if(!i[5])throw new Error("Method expected after .");return{type:"MethodExpression",object:n,method:i[3],arguments:i[5][2]}}),t):t}function sF(t){return t==="true"||t==="false"?{type:"BooleanLiteral",value:t==="true"}:{type:"Variable",id:{type:"Identifier",name:t}}}function Rp(t){if(t.every((n=>typeof n=="string")))return{type:"StringLiteral",value:t.join("")};let e=t.reduce(((n,i)=>(typeof i=="string"&&typeof n[n.length-1]=="string"?n[n.length-1]+=i:n.push(i),n)),[]).reduce(((n,i)=>(typeof i=="string"?n.quasis.push({type:"StringLiteral",value:i}):(n.quasis.length===n.expressions.length&&n.quasis.push({type:"StringLiteral",value:""}),n.expressions.push(i)),n)),{type:"TemplateLiteral",quasis:[],expressions:[]});return e.quasis.length===e.expressions.length&&e.quasis.push({type:"StringLiteral",value:""}),e}function lF(t){try{return bo(t)}catch{throw new Error(`Value ${t} can't be converted to Integer type.`)}}function Bp(t){if(t==="'"||t==="\\")return t;throw new Error("Incorrect string escape")}function aF(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}function yl(t,e,n,i){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,yl.prototype),o.expected=e,o.found=n,o.location=i,o.name="SyntaxError",o}aF(yl,Error);function wd(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,n+=n.repeat(e),t+n.slice(0,e))}yl.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n=null,i;for(i=0;i<t.length;i++)if(t[i].source===this.location.source){n=t[i].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,r=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(o):o,s=this.location.source+":"+r.line+":"+r.column;if(n){var l=this.location.end,a=wd("",r.line.toString().length," "),c=n[o.line-1],d=o.line===l.line?l.column:c.length+1,u=d-o.column||1;e+=`\n --\x3e `+s+`\n`+a+` |\n`+r.line+" | "+c+`\n`+a+" | "+wd("",o.column-1," ")+wd("",u,"^")}else e+=`\n at `+s}return e};yl.buildMessage=function(t,e){var n={literal:function(c){return'"'+o(c.text)+'"'},class:function(c){var d=c.parts.map((function(u){return Array.isArray(u)?r(u[0])+"-"+r(u[1]):r(u)}));return"["+(c.inverted?"^":"")+d.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(c){return c.description}};function i(c){return c.charCodeAt(0).toString(16).toUpperCase()}function o(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(d){return"\\x0"+i(d)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(d){return"\\x"+i(d)}))}function r(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(d){return"\\x0"+i(d)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(d){return"\\x"+i(d)}))}function s(c){return n[c.type](c)}function l(c){var d=c.map(s),u,p;if(d.sort(),d.length>0){for(u=1,p=1;u<d.length;u++)d[u-1]!==d[u]&&(d[p]=d[u],p++);d.length=p}switch(d.length){case 1:return d[0];case 2:return d[0]+" or "+d[1];default:return d.slice(0,-1).join(", ")+", or "+d[d.length-1]}}function a(c){return c?'"'+o(c)+'"':"end of input"}return"Expected "+l(t)+" but "+a(e)+" found."};function ba(t,e){e=e!==void 0?e:{};var n={},i=e.grammarSource,o={start:Ae,JsonStringContents:Re},r=Ae,s="@{",l="}",a="@{}",c="\\",d="?",u=":",p="!:",_="||",f="&&",m="==",h="!=",v=">=",y=">",b="<=",w="<",k="+",E="-",T="/",j="*",A="%",O="!",M=".",D="(",R=")",U=",",B="'",C="e",q="E",V=/^[^}]/,Y=/^[^'}]/,x=/^[0-9]/,de=/^[a-zA-Z_]/,_e=/^[a-zA-Z_0-9]/,G=/^[ \t\r\n]/,Q=Ce("@{",!1),oe=Ce("}",!1),he=Ce("@{}",!1),ze=Ce("\\",!1),W=Z(),Ke=P(["}"],!0,!1),at=Ce("?",!1),Te=Ce(":",!1),ot=Ce("!:",!1),J=Ce("||",!1),ue=Ce("&&",!1),fe=Ce("==",!1),Qe=Ce("!=",!1),ye=Ce(">=",!1),Ee=Ce(">",!1),Ye=Ce("<=",!1),vt=Ce("<",!1),ne=Ce("+",!1),pe=Ce("-",!1),kt=Ce("/",!1),$e=Ce("*",!1),et=Ce("%",!1),le=Ce("!",!1),Ve=Ce(".",!1),Xe=Ce("(",!1),xe=Ce(")",!1),jt=Ce(",",!1),Vt=be("string"),ln=Ce("'",!1),sn=P(["'","}"],!0,!1),At=be("integer"),pn=P([["0","9"]],!1,!1),dn=be("number"),Rn=Ce("e",!1),Ln=Ce("E",!1),qe=P([["a","z"],["A","Z"],"_"],!1,!1),st=P([["a","z"],["A","Z"],"_",["0","9"]],!1,!1),li=be("whitespace"),bt=P([" ","\t","\r",`\n`],!1,!1),Cn=function(L){return L},Ut=function(L){return Rp(L)},gn=function(L){return L},Lt=function(){return""},wn=function(){return re()},vn=function(){throw new Error("Error tokenizing '"+t+"'.")},Jt=function(){throw new Error("Error tokenizing '"+t+"'.")},Kt=function(L){return L},Un=function(L){return Bp(L)},Kn=function(){throw new Error("Error tokenizing '"+t+"'.")},fi=function(L,ie){return iF(L,ie)},Je=function(L,ie){return oF(L,ie)},ht=function(L,ie){return qp(L,ie)},ct=function(L,ie){return qp(L,ie)},gt=function(L,ie){return Ca(L,ie)},qt=function(L,ie){return Ca(L,ie)},St=function(L,ie){return Ca(L,ie)},Ot=function(L,ie){return Ca(L,ie)},nn=function(L){return L},ei=function(L){return L},Ft=function(L,ie){return{type:"UnaryExpression",operator:L,argument:ie}},xt=function(){throw new Error("Incorrect unary operator")},dt=function(L,ie){return rF(L,ie)},We=function(L,ie){return{type:"CallExpression",callee:L,arguments:ie}},bi=function(L,ie){return[L,...ie]},hi=function(L){return L},Bn=function(L){return L},eo=function(L){return Rp(L)},Ct=function(L){return L},Wn=function(){return""},gi=function(){return re()},rn=function(){throw new Error("Error tokenizing '"+t+"'.")},Fn=function(){throw new Error("Error tokenizing '"+t+"'.")},Bt=function(L){return L},hn=function(L){return Bp(L)},un=function(){throw new Error("Error tokenizing '"+t+"'.")},Tn=function(){return{type:"IntegerLiteral",value:lF(re())}},Yn=function(){return{type:"NumberLiteral",value:parseFloat(re())}},Se=function(){return{type:"NumberLiteral",value:parseFloat(re())}},bn=function(){const L=re();if(/\.\./.test(L)||/\.$/.test(L))throw new Error("Unexpected token: .");return sF(L)},ft=function(){return{type:"Identifier",name:re()}},z=0,Mt=0,zn=[{line:1,column:1}],Ni=0,mi=[],Fe=0,Ii;if("startRule"in e){if(!(e.startRule in o))throw new Error(`Can't start parsing from rule "`+e.startRule+'".');r=o[e.startRule]}function re(){return t.substring(Mt,z)}function Ce(L,ie){return{type:"literal",text:L,ignoreCase:ie}}function P(L,ie,we){return{type:"class",parts:L,inverted:ie,ignoreCase:we}}function Z(){return{type:"any"}}function ce(){return{type:"end"}}function be(L){return{type:"other",description:L}}function ge(L){var ie=zn[L],we;if(ie)return ie;for(we=L-1;!zn[we];)we--;for(ie=zn[we],ie={line:ie.line,column:ie.column};we<L;)t.charCodeAt(we)===10?(ie.line++,ie.column=1):ie.column++,we++;return zn[L]=ie,ie}function Be(L,ie,we){var ae=ge(L),Ne=ge(ie),Le={source:i,start:{offset:L,line:ae.line,column:ae.column},end:{offset:ie,line:Ne.line,column:Ne.column}};return Le}function se(L){z<Ni||(z>Ni&&(Ni=z,mi=[]),mi.push(L))}function ve(L,ie,we){return new yl(yl.buildMessage(L,ie),L,ie,we)}function Ae(){var L,ie;return L=z,Wt(),ie=Ge(),ie!==n?(Wt(),Mt=L,L=Cn(ie)):(z=L,L=n),L}function Re(){var L,ie,we;for(L=z,ie=[],we=ut();we!==n;)ie.push(we),we=ut();return Mt=L,ie=Ut(ie),L=ie,L}function ut(){var L,ie,we,ae,Ne;if(L=z,t.substr(z,2)===s?(ie=s,z+=2):(ie=n,Fe===0&&se(Q)),ie!==n?(we=Wt(),ae=Ge(),ae!==n?(Wt(),t.charCodeAt(z)===125?(Ne=l,z++):(Ne=n,Fe===0&&se(oe)),Ne!==n?(Mt=L,L=gn(ae)):(z=L,L=n)):(z=L,L=n)):(z=L,L=n),L===n&&(L=z,t.substr(z,3)===a?(ie=a,z+=3):(ie=n,Fe===0&&se(he)),ie!==n&&(Mt=L,ie=Lt()),L=ie,L===n&&(L=z,ie=z,Fe++,t.charCodeAt(z)===92?(we=c,z++):(we=n,Fe===0&&se(ze)),we===n&&(t.substr(z,2)===s?(we=s,z+=2):(we=n,Fe===0&&se(Q))),Fe--,we===n?ie=void 0:(z=ie,ie=n),ie!==n?(t.length>z?(we=t.charAt(z),z++):(we=n,Fe===0&&se(W)),we!==n?(Mt=L,L=wn()):(z=L,L=n)):(z=L,L=n),L===n))){if(L=z,t.substr(z,2)===s?(ie=s,z+=2):(ie=n,Fe===0&&se(Q)),ie!==n){if(we=[],V.test(t.charAt(z))?(ae=t.charAt(z),z++):(ae=n,Fe===0&&se(Ke)),ae!==n)for(;ae!==n;)we.push(ae),V.test(t.charAt(z))?(ae=t.charAt(z),z++):(ae=n,Fe===0&&se(Ke));else we=n;we!==n?(t.charCodeAt(z)===125?(ae=l,z++):(ae=n,Fe===0&&se(oe)),ae!==n?(Mt=L,L=vn()):(z=L,L=n)):(z=L,L=n)}else z=L,L=n;L===n&&(L=z,t.substr(z,2)===s?(ie=s,z+=2):(ie=n,Fe===0&&se(Q)),ie!==n&&(Mt=L,ie=Jt()),L=ie,L===n&&(L=z,t.charCodeAt(z)===92?(ie=c,z++):(ie=n,Fe===0&&se(ze)),ie!==n?(t.substr(z,2)===s?(we=s,z+=2):(we=n,Fe===0&&se(Q)),we!==n?(Mt=L,L=Kt(we)):(z=L,L=n)):(z=L,L=n),L===n&&(L=z,t.charCodeAt(z)===92?(ie=c,z++):(ie=n,Fe===0&&se(ze)),ie!==n?(t.length>z?(we=t.charAt(z),z++):(we=n,Fe===0&&se(W)),we!==n?(Mt=L,L=Un(we)):(z=L,L=n)):(z=L,L=n),L===n&&(L=z,t.charCodeAt(z)===92?(ie=c,z++):(ie=n,Fe===0&&se(ze)),ie!==n&&(Mt=L,ie=Kn()),L=ie))))}return L}function Ge(){var L,ie,we,ae,Ne,Le,zt,Nt,En,yn,wi;return L=z,ie=Tt(),ie!==n?(we=z,ae=Wt(),t.charCodeAt(z)===63?(Ne=d,z++):(Ne=n,Fe===0&&se(at)),Ne!==n?(Le=Wt(),zt=Ge(),zt!==n?(Nt=Wt(),t.charCodeAt(z)===58?(En=u,z++):(En=n,Fe===0&&se(Te)),En!==n?(yn=Wt(),wi=Ge(),wi!==n?(ae=[ae,Ne,Le,zt,Nt,En,yn,wi],we=ae):(z=we,we=n)):(z=we,we=n)):(z=we,we=n)):(z=we,we=n),we===n&&(we=null),Mt=L,L=fi(ie,we)):(z=L,L=n),L}function Tt(){var L,ie,we,ae,Ne,Le,zt;return L=z,ie=fn(),ie!==n?(we=z,ae=Wt(),t.substr(z,2)===p?(Ne=p,z+=2):(Ne=n,Fe===0&&se(ot)),Ne!==n?(Le=Wt(),zt=Ge(),zt!==n?(ae=[ae,Ne,Le,zt],we=ae):(z=we,we=n)):(z=we,we=n),we===n&&(we=null),Mt=L,L=Je(ie,we)):(z=L,L=n),L}function fn(){var L,ie,we,ae,Ne,Le,zt,Nt;if(L=z,ie=Ht(),ie!==n){for(we=[],ae=z,Ne=Wt(),t.substr(z,2)===_?(Le=_,z+=2):(Le=n,Fe===0&&se(J)),Le!==n?(zt=Wt(),Nt=Ht(),Nt!==n?(Ne=[Ne,Le,zt,Nt],ae=Ne):(z=ae,ae=n)):(z=ae,ae=n);ae!==n;)we.push(ae),ae=z,Ne=Wt(),t.substr(z,2)===_?(Le=_,z+=2):(Le=n,Fe===0&&se(J)),Le!==n?(zt=Wt(),Nt=Ht(),Nt!==n?(Ne=[Ne,Le,zt,Nt],ae=Ne):(z=ae,ae=n)):(z=ae,ae=n);Mt=L,L=ht(ie,we)}else z=L,L=n;return L}function Ht(){var L,ie,we,ae,Ne,Le,zt,Nt;if(L=z,ie=On(),ie!==n){for(we=[],ae=z,Ne=Wt(),t.substr(z,2)===f?(Le=f,z+=2):(Le=n,Fe===0&&se(ue)),Le!==n?(zt=Wt(),Nt=On(),Nt!==n?(Ne=[Ne,Le,zt,Nt],ae=Ne):(z=ae,ae=n)):(z=ae,ae=n);ae!==n;)we.push(ae),ae=z,Ne=Wt(),t.substr(z,2)===f?(Le=f,z+=2):(Le=n,Fe===0&&se(ue)),Le!==n?(zt=Wt(),Nt=On(),Nt!==n?(Ne=[Ne,Le,zt,Nt],ae=Ne):(z=ae,ae=n)):(z=ae,ae=n);Mt=L,L=ct(ie,we)}else z=L,L=n;return L}function On(){var L,ie,we,ae,Ne,Le,zt,Nt;if(L=z,ie=Qt(),ie!==n){for(we=[],ae=z,Ne=Wt(),t.substr(z,2)===m?(Le=m,z+=2):(Le=n,Fe===0&&se(fe)),Le===n&&(t.substr(z,2)===h?(Le=h,z+=2):(Le=n,Fe===0&&se(Qe))),Le!==n?(zt=Wt(),Nt=Qt(),Nt!==n?(Ne=[Ne,Le,zt,Nt],ae=Ne):(z=ae,ae=n)):(z=ae,ae=n);ae!==n;)we.push(ae),ae=z,Ne=Wt(),t.substr(z,2)===m?(Le=m,z+=2):(Le=n,Fe===0&&se(fe)),Le===n&&(t.substr(z,2)===h?(Le=h,z+=2):(Le=n,Fe===0&&se(Qe))),Le!==n?(zt=Wt(),Nt=Qt(),Nt!==n?(Ne=[Ne,Le,zt,Nt],ae=Ne):(z=ae,ae=n)):(z=ae,ae=n);Mt=L,L=gt(ie,we)}else z=L,L=n;return L}function Qt(){var L,ie,we,ae,Ne,Le,zt,Nt;if(L=z,ie=Mn(),ie!==n){for(we=[],ae=z,Ne=Wt(),t.substr(z,2)===v?(Le=v,z+=2):(Le=n,Fe===0&&se(ye)),Le===n&&(t.charCodeAt(z)===62?(Le=y,z++):(Le=n,Fe===0&&se(Ee)),Le===n&&(t.substr(z,2)===b?(Le=b,z+=2):(Le=n,Fe===0&&se(Ye)),Le===n&&(t.charCodeAt(z)===60?(Le=w,z++):(Le=n,Fe===0&&se(vt))))),Le!==n?(zt=Wt(),Nt=Mn(),Nt!==n?(Ne=[Ne,Le,zt,Nt],ae=Ne):(z=ae,ae=n)):(z=ae,ae=n);ae!==n;)we.push(ae),ae=z,Ne=Wt(),t.substr(z,2)===v?(Le=v,z+=2):(Le=n,Fe===0&&se(ye)),Le===n&&(t.charCodeAt(z)===62?(Le=y,z++):(Le=n,Fe===0&&se(Ee)),Le===n&&(t.substr(z,2)===b?(Le=b,z+=2):(Le=n,Fe===0&&se(Ye)),Le===n&&(t.charCodeAt(z)===60?(Le=w,z++):(Le=n,Fe===0&&se(vt))))),Le!==n?(zt=Wt(),Nt=Mn(),Nt!==n?(Ne=[Ne,Le,zt,Nt],ae=Ne):(z=ae,ae=n)):(z=ae,ae=n);Mt=L,L=qt(ie,we)}else z=L,L=n;return L}function Mn(){var L,ie,we,ae,Ne,Le,zt,Nt;if(L=z,ie=_n(),ie!==n){for(we=[],ae=z,Ne=Wt(),t.charCodeAt(z)===43?(Le=k,z++):(Le=n,Fe===0&&se(ne)),Le===n&&(t.charCodeAt(z)===45?(Le=E,z++):(Le=n,Fe===0&&se(pe))),Le!==n?(zt=Wt(),Nt=_n(),Nt!==n?(Ne=[Ne,Le,zt,Nt],ae=Ne):(z=ae,ae=n)):(z=ae,ae=n);ae!==n;)we.push(ae),ae=z,Ne=Wt(),t.charCodeAt(z)===43?(Le=k,z++):(Le=n,Fe===0&&se(ne)),Le===n&&(t.charCodeAt(z)===45?(Le=E,z++):(Le=n,Fe===0&&se(pe))),Le!==n?(zt=Wt(),Nt=_n(),Nt!==n?(Ne=[Ne,Le,zt,Nt],ae=Ne):(z=ae,ae=n)):(z=ae,ae=n);Mt=L,L=St(ie,we)}else z=L,L=n;return L}function _n(){var L,ie,we,ae,Ne,Le,zt,Nt;if(L=z,ie=Pt(),ie!==n){for(we=[],ae=z,Ne=Wt(),t.charCodeAt(z)===47?(Le=T,z++):(Le=n,Fe===0&&se(kt)),Le===n&&(t.charCodeAt(z)===42?(Le=j,z++):(Le=n,Fe===0&&se($e)),Le===n&&(t.charCodeAt(z)===37?(Le=A,z++):(Le=n,Fe===0&&se(et)))),Le!==n?(zt=Wt(),Nt=Pt(),Nt!==n?(Ne=[Ne,Le,zt,Nt],ae=Ne):(z=ae,ae=n)):(z=ae,ae=n);ae!==n;)we.push(ae),ae=z,Ne=Wt(),t.charCodeAt(z)===47?(Le=T,z++):(Le=n,Fe===0&&se(kt)),Le===n&&(t.charCodeAt(z)===42?(Le=j,z++):(Le=n,Fe===0&&se($e)),Le===n&&(t.charCodeAt(z)===37?(Le=A,z++):(Le=n,Fe===0&&se(et)))),Le!==n?(zt=Wt(),Nt=Pt(),Nt!==n?(Ne=[Ne,Le,zt,Nt],ae=Ne):(z=ae,ae=n)):(z=ae,ae=n);Mt=L,L=Ot(ie,we)}else z=L,L=n;return L}function Pt(){var L,ie,we,ae;return L=z,ie=z,Fe++,t.charCodeAt(z)===45?(we=E,z++):(we=n,Fe===0&&se(pe)),Fe--,we!==n?(z=ie,ie=void 0):ie=n,ie!==n?(we=Ei(),we!==n?(Mt=L,L=nn(we)):(z=L,L=n)):(z=L,L=n),L===n&&(L=z,ie=z,Fe++,t.charCodeAt(z)===45?(we=E,z++):(we=n,Fe===0&&se(pe)),Fe--,we!==n?(z=ie,ie=void 0):ie=n,ie!==n?(we=Yi(),we!==n?(Mt=L,L=ei(we)):(z=L,L=n)):(z=L,L=n),L===n&&(L=z,t.charCodeAt(z)===33?(ie=O,z++):(ie=n,Fe===0&&se(le)),ie===n&&(t.charCodeAt(z)===43?(ie=k,z++):(ie=n,Fe===0&&se(ne)),ie===n&&(t.charCodeAt(z)===45?(ie=E,z++):(ie=n,Fe===0&&se(pe)))),ie!==n?(we=Wt(),ae=jn(),ae===n&&(ae=Pn()),ae!==n?(Mt=L,L=Ft(ie,ae)):(z=L,L=n)):(z=L,L=n),L===n&&(L=Pn()))),L}function jn(){var L,ie;return L=z,t.charCodeAt(z)===43?(ie=k,z++):(ie=n,Fe===0&&se(ne)),ie===n&&(t.charCodeAt(z)===45?(ie=E,z++):(ie=n,Fe===0&&se(pe))),ie!==n&&(Mt=L,ie=xt()),L=ie,L}function Pn(){var L,ie,we,ae,Ne,Le,zt,Nt,En,yn,wi,Ao,_t,ti,$i;if(L=z,ie=In(),ie!==n){for(we=[],ae=z,Ne=Wt(),t.charCodeAt(z)===46?(Le=M,z++):(Le=n,Fe===0&&se(Ve)),Le!==n?(zt=Wt(),Nt=vi(),Nt!==n?(En=Wt(),yn=z,t.charCodeAt(z)===40?(wi=D,z++):(wi=n,Fe===0&&se(Xe)),wi!==n?(Ao=Wt(),_t=Jn(),_t!==n?(ti=Wt(),t.charCodeAt(z)===41?($i=R,z++):($i=n,Fe===0&&se(xe)),$i!==n?(wi=[wi,Ao,_t,ti,$i],yn=wi):(z=yn,yn=n)):(z=yn,yn=n)):(z=yn,yn=n),yn===n&&(yn=null),Ne=[Ne,Le,zt,Nt,En,yn],ae=Ne):(z=ae,ae=n)):(z=ae,ae=n);ae!==n;)we.push(ae),ae=z,Ne=Wt(),t.charCodeAt(z)===46?(Le=M,z++):(Le=n,Fe===0&&se(Ve)),Le!==n?(zt=Wt(),Nt=vi(),Nt!==n?(En=Wt(),yn=z,t.charCodeAt(z)===40?(wi=D,z++):(wi=n,Fe===0&&se(Xe)),wi!==n?(Ao=Wt(),_t=Jn(),_t!==n?(ti=Wt(),t.charCodeAt(z)===41?($i=R,z++):($i=n,Fe===0&&se(xe)),$i!==n?(wi=[wi,Ao,_t,ti,$i],yn=wi):(z=yn,yn=n)):(z=yn,yn=n)):(z=yn,yn=n),yn===n&&(yn=null),Ne=[Ne,Le,zt,Nt,En,yn],ae=Ne):(z=ae,ae=n)):(z=ae,ae=n);Mt=L,L=dt(ie,we)}else z=L,L=n;return L}function In(){var L,ie,we,ae,Ne;return L=z,ie=vi(),ie!==n?(Wt(),t.charCodeAt(z)===40?(we=D,z++):(we=n,Fe===0&&se(Xe)),we!==n?(Wt(),ae=Jn(),ae!==n?(Wt(),t.charCodeAt(z)===41?(Ne=R,z++):(Ne=n,Fe===0&&se(xe)),Ne!==n?(Mt=L,L=We(ie,ae)):(z=L,L=n)):(z=L,L=n)):(z=L,L=n)):(z=L,L=n),L===n&&(L=ri()),L}function Jn(){var L,ie,we,ae,Ne,Le;if(L=z,ie=Ge(),ie!==n){for(we=[],ae=z,Wt(),t.charCodeAt(z)===44?(Ne=U,z++):(Ne=n,Fe===0&&se(jt)),Ne!==n?(Wt(),Le=Ge(),Le!==n?ae=Le:(z=ae,ae=n)):(z=ae,ae=n);ae!==n;)we.push(ae),ae=z,Wt(),t.charCodeAt(z)===44?(Ne=U,z++):(Ne=n,Fe===0&&se(jt)),Ne!==n?(Wt(),Le=Ge(),Le!==n?ae=Le:(z=ae,ae=n)):(z=ae,ae=n);Mt=L,L=bi(ie,we)}else z=L,L=n;return L===n&&(L=Wt()),L}function ri(){var L,ie,we,ae;return L=cn(),L===n&&(L=yi(),L===n&&(L=Ei(),L===n&&(L=Yi(),L===n&&(L=z,t.charCodeAt(z)===40?(ie=D,z++):(ie=n,Fe===0&&se(Xe)),ie!==n?(Wt(),we=Ge(),we!==n?(Wt(),t.charCodeAt(z)===41?(ae=R,z++):(ae=n,Fe===0&&se(xe)),ae!==n?(Mt=L,L=hi(we)):(z=L,L=n)):(z=L,L=n)):(z=L,L=n))))),L}function yi(){var L,ie,we,ae;return Fe++,L=z,t.charCodeAt(z)===39?(ie=B,z++):(ie=n,Fe===0&&se(ln)),ie!==n?(we=yo(),t.charCodeAt(z)===39?(ae=B,z++):(ae=n,Fe===0&&se(ln)),ae!==n?(Mt=L,L=Bn(we)):(z=L,L=n)):(z=L,L=n),Fe--,L===n&&(ie=n,Fe===0&&se(Vt)),L}function yo(){var L,ie,we;for(L=z,ie=[],we=Oi();we!==n;)ie.push(we),we=Oi();return Mt=L,ie=eo(ie),L=ie,L}function Oi(){var L,ie,we,ae,Ne;if(L=z,t.substr(z,2)===s?(ie=s,z+=2):(ie=n,Fe===0&&se(Q)),ie!==n?(we=Wt(),ae=Ge(),ae!==n?(Wt(),t.charCodeAt(z)===125?(Ne=l,z++):(Ne=n,Fe===0&&se(oe)),Ne!==n?(Mt=L,L=Ct(ae)):(z=L,L=n)):(z=L,L=n)):(z=L,L=n),L===n&&(L=z,t.substr(z,3)===a?(ie=a,z+=3):(ie=n,Fe===0&&se(he)),ie!==n&&(Mt=L,ie=Wn()),L=ie,L===n&&(L=z,ie=z,Fe++,t.charCodeAt(z)===92?(we=c,z++):(we=n,Fe===0&&se(ze)),we===n&&(t.charCodeAt(z)===39?(we=B,z++):(we=n,Fe===0&&se(ln)),we===n&&(t.substr(z,2)===s?(we=s,z+=2):(we=n,Fe===0&&se(Q)))),Fe--,we===n?ie=void 0:(z=ie,ie=n),ie!==n?(t.length>z?(we=t.charAt(z),z++):(we=n,Fe===0&&se(W)),we!==n?(Mt=L,L=gi()):(z=L,L=n)):(z=L,L=n),L===n))){if(L=z,t.substr(z,2)===s?(ie=s,z+=2):(ie=n,Fe===0&&se(Q)),ie!==n){if(we=[],Y.test(t.charAt(z))?(ae=t.charAt(z),z++):(ae=n,Fe===0&&se(sn)),ae!==n)for(;ae!==n;)we.push(ae),Y.test(t.charAt(z))?(ae=t.charAt(z),z++):(ae=n,Fe===0&&se(sn));else we=n;we!==n?(t.charCodeAt(z)===125?(ae=l,z++):(ae=n,Fe===0&&se(oe)),ae!==n?(Mt=L,L=rn()):(z=L,L=n)):(z=L,L=n)}else z=L,L=n;L===n&&(L=z,t.substr(z,2)===s?(ie=s,z+=2):(ie=n,Fe===0&&se(Q)),ie!==n&&(Mt=L,ie=Fn()),L=ie,L===n&&(L=z,t.charCodeAt(z)===92?(ie=c,z++):(ie=n,Fe===0&&se(ze)),ie!==n?(t.substr(z,2)===s?(we=s,z+=2):(we=n,Fe===0&&se(Q)),we!==n?(Mt=L,L=Bt(we)):(z=L,L=n)):(z=L,L=n),L===n&&(L=z,t.charCodeAt(z)===92?(ie=c,z++):(ie=n,Fe===0&&se(ze)),ie!==n?(t.length>z?(we=t.charAt(z),z++):(we=n,Fe===0&&se(W)),we!==n?(Mt=L,L=hn(we)):(z=L,L=n)):(z=L,L=n),L===n&&(L=z,t.charCodeAt(z)===92?(ie=c,z++):(ie=n,Fe===0&&se(ze)),ie!==n&&(Mt=L,ie=un()),L=ie))))}return L}function Yi(){var L,ie,we;if(Fe++,L=z,t.charCodeAt(z)===45?z++:Fe===0&&se(pe),ie=[],x.test(t.charAt(z))?(we=t.charAt(z),z++):(we=n,Fe===0&&se(pn)),we!==n)for(;we!==n;)ie.push(we),x.test(t.charAt(z))?(we=t.charAt(z),z++):(we=n,Fe===0&&se(pn));else ie=n;return ie!==n?(Mt=L,L=Tn()):(z=L,L=n),Fe--,L===n&&Fe===0&&se(At),L}function Ei(){var L,ie,we,ae,Ne,Le,zt,Nt,En;for(Fe++,L=z,t.charCodeAt(z)===45?z++:Fe===0&&se(pe),ie=[],x.test(t.charAt(z))?(we=t.charAt(z),z++):(we=n,Fe===0&&se(pn));we!==n;)ie.push(we),x.test(t.charAt(z))?(we=t.charAt(z),z++):(we=n,Fe===0&&se(pn));if(t.charCodeAt(z)===46?(we=M,z++):(we=n,Fe===0&&se(Ve)),we!==n){if(ae=[],x.test(t.charAt(z))?(Ne=t.charAt(z),z++):(Ne=n,Fe===0&&se(pn)),Ne!==n)for(;Ne!==n;)ae.push(Ne),x.test(t.charAt(z))?(Ne=t.charAt(z),z++):(Ne=n,Fe===0&&se(pn));else ae=n;if(ae!==n){if(Ne=z,t.charCodeAt(z)===101?(Le=C,z++):(Le=n,Fe===0&&se(Rn)),Le===n&&(t.charCodeAt(z)===69?(Le=q,z++):(Le=n,Fe===0&&se(Ln))),Le!==n){if(t.charCodeAt(z)===43?(zt=k,z++):(zt=n,Fe===0&&se(ne)),zt===n&&(t.charCodeAt(z)===45?(zt=E,z++):(zt=n,Fe===0&&se(pe))),zt===n&&(zt=null),Nt=[],x.test(t.charAt(z))?(En=t.charAt(z),z++):(En=n,Fe===0&&se(pn)),En!==n)for(;En!==n;)Nt.push(En),x.test(t.charAt(z))?(En=t.charAt(z),z++):(En=n,Fe===0&&se(pn));else Nt=n;Nt!==n?(Le=[Le,zt,Nt],Ne=Le):(z=Ne,Ne=n)}else z=Ne,Ne=n;Ne===n&&(Ne=null),Mt=L,L=Yn()}else z=L,L=n}else z=L,L=n;if(L===n){if(L=z,t.charCodeAt(z)===45?z++:Fe===0&&se(pe),ie=[],x.test(t.charAt(z))?(we=t.charAt(z),z++):(we=n,Fe===0&&se(pn)),we!==n)for(;we!==n;)ie.push(we),x.test(t.charAt(z))?(we=t.charAt(z),z++):(we=n,Fe===0&&se(pn));else ie=n;if(ie!==n)if(t.charCodeAt(z)===101?(we=C,z++):(we=n,Fe===0&&se(Rn)),we===n&&(t.charCodeAt(z)===69?(we=q,z++):(we=n,Fe===0&&se(Ln))),we!==n){if(t.charCodeAt(z)===43?(ae=k,z++):(ae=n,Fe===0&&se(ne)),ae===n&&(t.charCodeAt(z)===45?(ae=E,z++):(ae=n,Fe===0&&se(pe))),ae===n&&(ae=null),Ne=[],x.test(t.charAt(z))?(Le=t.charAt(z),z++):(Le=n,Fe===0&&se(pn)),Le!==n)for(;Le!==n;)Ne.push(Le),x.test(t.charAt(z))?(Le=t.charAt(z),z++):(Le=n,Fe===0&&se(pn));else Ne=n;Ne!==n?(Mt=L,L=Se()):(z=L,L=n)}else z=L,L=n;else z=L,L=n}return Fe--,L===n&&Fe===0&&se(dn),L}function cn(){var L,ie,we,ae,Ne,Le,zt,Nt,En,yn,wi;if(L=z,de.test(t.charAt(z))?(ie=t.charAt(z),z++):(ie=n,Fe===0&&se(qe)),ie!==n){if(we=[],ae=[],_e.test(t.charAt(z))?(Ne=t.charAt(z),z++):(Ne=n,Fe===0&&se(st)),Ne!==n)for(;Ne!==n;)ae.push(Ne),_e.test(t.charAt(z))?(Ne=t.charAt(z),z++):(Ne=n,Fe===0&&se(st));else ae=n;for(ae===n&&(ae=z,t.charCodeAt(z)===46?(Ne=M,z++):(Ne=n,Fe===0&&se(Ve)),Ne!==n?(Le=z,Fe++,zt=z,Nt=Wt(),En=vi(),En!==n?(yn=Wt(),t.charCodeAt(z)===40?(wi=D,z++):(wi=n,Fe===0&&se(Xe)),wi!==n?(Nt=[Nt,En,yn,wi],zt=Nt):(z=zt,zt=n)):(z=zt,zt=n),Fe--,zt===n?Le=void 0:(z=Le,Le=n),Le!==n?(Ne=[Ne,Le],ae=Ne):(z=ae,ae=n)):(z=ae,ae=n));ae!==n;){if(we.push(ae),ae=[],_e.test(t.charAt(z))?(Ne=t.charAt(z),z++):(Ne=n,Fe===0&&se(st)),Ne!==n)for(;Ne!==n;)ae.push(Ne),_e.test(t.charAt(z))?(Ne=t.charAt(z),z++):(Ne=n,Fe===0&&se(st));else ae=n;ae===n&&(ae=z,t.charCodeAt(z)===46?(Ne=M,z++):(Ne=n,Fe===0&&se(Ve)),Ne!==n?(Le=z,Fe++,zt=z,Nt=Wt(),En=vi(),En!==n?(yn=Wt(),t.charCodeAt(z)===40?(wi=D,z++):(wi=n,Fe===0&&se(Xe)),wi!==n?(Nt=[Nt,En,yn,wi],zt=Nt):(z=zt,zt=n)):(z=zt,zt=n),Fe--,zt===n?Le=void 0:(z=Le,Le=n),Le!==n?(Ne=[Ne,Le],ae=Ne):(z=ae,ae=n)):(z=ae,ae=n))}Mt=L,L=bn()}else z=L,L=n;return L}function vi(){var L,ie,we,ae;if(L=z,de.test(t.charAt(z))?(ie=t.charAt(z),z++):(ie=n,Fe===0&&se(qe)),ie!==n){for(we=[],_e.test(t.charAt(z))?(ae=t.charAt(z),z++):(ae=n,Fe===0&&se(st));ae!==n;)we.push(ae),_e.test(t.charAt(z))?(ae=t.charAt(z),z++):(ae=n,Fe===0&&se(st));Mt=L,L=ft()}else z=L,L=n;return L}function Wt(){var L,ie;for(Fe++,L=[],G.test(t.charAt(z))?(ie=t.charAt(z),z++):(ie=n,Fe===0&&se(bt));ie!==n;)L.push(ie),G.test(t.charAt(z))?(ie=t.charAt(z),z++):(ie=n,Fe===0&&se(bt));return Fe--,ie=n,Fe===0&&se(li),L}if(Ii=r(),Ii!==n&&z===t.length)return Ii;throw Ii!==n&&z<t.length&&se(ce()),ve(mi,Ni<t.length?t.charAt(Ni):null,Ni<t.length?Be(Ni,Ni+1):Be(Ni,Ni))}const cF=2147483647,dF=-2147483648,uF=Number.MAX_VALUE,pF=Number.MIN_VALUE,$t="string",mt="integer",Xt="number",Ki="boolean",mo="color",or="url",Ci="datetime",ni="dict",ii="array";function Ko(t,e){var n;switch((n=e[t.type])==null||n.call(e,t),t.type){case"TemplateLiteral":t.expressions.forEach((i=>{Ko(i,e)}));break;case"BinaryExpression":case"LogicalExpression":Ko(t.left,e),Ko(t.right,e);break;case"UnaryExpression":Ko(t.argument,e);break;case"ConditionalExpression":Ko(t.test,e),Ko(t.consequent,e),Ko(t.alternate,e);break;case"TryExpression":Ko(t.test,e),Ko(t.alternate,e);break;case"CallExpression":t.arguments.forEach((i=>{Ko(i,e)}));break;case"MethodExpression":Ko(t.object,e),t.arguments.forEach((i=>{Ko(i,e)}));break}}function O1(t,e){for(;t.length<e;)t="0"+t;return t}function Ri(t,e=1,n="transparent"){if(t=(typeof t=="string"&&t||"").toLowerCase(),t.charAt(0)!=="#")return n;const i=ns(t);return i?(i.a*=e,Au(i)):n}function _F(t,e,n="transparent"){if(t=(typeof t=="string"&&t||"").toLowerCase(),t.charAt(0)!=="#")return n;const i=ns(t);return i?(i.a=e,Au(i)):n}function Au(t){return t.a===255?`#${[t.r,t.g,t.b].map((e=>O1(Math.round(e).toString(16),2))).join("")}`:`rgba(${t.r},${t.g},${t.b},${(t.a/255).toFixed(2)})`}function ns(t){const e=t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i)||t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);if(e){if(e.length===5){const[c,d,u,p,_]=e,f=u.length===2?u:u+u,m=p.length===2?p:p+p,h=_.length===2?_:_+_,v=d.length===2?d:d+d;return{a:parseInt(v,16),r:parseInt(f,16),g:parseInt(m,16),b:parseInt(h,16)}}const[n,i,o,r]=e,s=i.length===2?i:i+i,l=o.length===2?o:o+o,a=r.length===2?r:r+r;return{a:255,r:parseInt(s,16),g:parseInt(l,16),b:parseInt(a,16)}}return null}function hc(t){return t.type==="url"||t.type==="color"?{type:"string",value:t.value}:t}function M1(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function Us(t){if(t.type==="string")return t.value;if(t.type==="integer")return String(t.value);if(t.type==="number"){let e=String(t.value);return e.includes(".")||(e.includes("e")?e=e.replace("e",".0e"):e+=".0"),e=e.replace(/e\+?/i,"E"),e}else{if(t.type==="boolean")return t.value?"true":"false";if(t.type==="datetime")return M1(t.value);if(t.type==="color")return Ws(Wc(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 ao(t){let e=Us(t);return t.type==="string"&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function Xo(t){return t==="datetime"?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function Js(t,e){return bo(e)}function No(t,e){if(e<ta||e>ea)throw new Error("Integer overflow.")}function P1(t){const e=new Set;return Ko(t,{Variable(n){e.add(n.id.name)}}),[...e]}function co(t,e){throw new Error(`Failed to evaluate [${t}]. ${e}`)}function Wc(t){const e=ns(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function Ws(t){return`#${[t.a,t.r,t.g,t.b].map((e=>{if(e<0||e>255)throw new Error("Value out of range 0..1.");return O1(Math.round(e).toString(16),2)})).join("").toUpperCase()}`}function El(t){return Ws(Wc(t))}function Kd(t){return{type:Xt,value:Number(t.value)}}const fF={string:"string",number:"number",integer:"number",boolean:"boolean",color:"string",url:"string",array:"array",dict:"object"};function I1(t,e,n){const i=fF[n];let o=typeof e;if(i==="array"&&!Array.isArray(e)||i!=="array"&&o!==i||o==="object"&&e===null)throw o==="object"&&(Array.isArray(e)?o="array":e===null?o="null":o="dict"),new Error(`Incorrect value type: expected ${Xo(n)}, got ${Xo(o)}.`);if(i==="number"&&n==="integer"){No(t,e);try{e=bo(e)}catch{throw new Error("Cannot convert value to integer.")}}return i==="string"&&n==="color"&&(e=El(e)),{type:n,value:e}}const Kl=new Map,Yd=new Map,Ha=new Map,Gd=new Map;function ke(t,e,n){const i={args:e,cb:n},o=Kl.get(t)||[];Kl.has(t)||Kl.set(t,o),o.push(i);const r=t+":"+e.map((s=>typeof s=="object"?s.type:s)).join("#");Yd.set(r,i)}function to(t,e,n){const i={args:e,cb:n},o=Ha.get(t)||[];Ha.has(t)||Ha.set(t,o),o.push(i);const r=t+":"+e.map((s=>typeof s=="object"?s.type:s)).join("#");Gd.set(r,i)}function mF(t,e){const n=t.args.length;let i=t.args.length,o=0;const r=t.args[t.args.length-1];if(typeof r=="object"&&r.isVararg&&(i=1/0),e.length<n)return{type:"few",expected:n,found:e.length};if(e.length>i)return{type:"many",expected:i,found:e.length};for(let s=0;s<e.length;++s){let l=s>=t.args.length?t.args[t.args.length-1]:t.args[s];if(typeof l!="object"&&(l={type:l}),l.type===Xt&&e[s].type===mt){++o;continue}if(l.type!==e[s].type)return{type:"mismatch",expected:l.type,found:e[s].type}}return{type:"match",conversions:o}}function Xd(t,e,n){const i=t.get(e);if(!i)return{type:"missing"};let o=null,r=null;for(let s=0;s<i.length;++s){const l=mF(i[s],n);if(l.type==="match"){(!r||r.conversions>l.conversions)&&(r={func:i[s],conversions:l.conversions});continue}o||(o=l)}if(!r){if(o)return o;throw new Error("Missing function")}return r}function D1(t,e){return e.map(((n,i)=>{let o=i>=t.args.length?t.args[t.args.length-1]:t.args[i];return typeof o!="object"&&(o={type:o}),o.type===Xt&&n.type===mt?Kd(n):n}))}function Hp(t,e){return t+":"+e.args.map((n=>typeof n=="string"?n:n.type)).join("#")}function Do(t,e){return e.type===ii||e.type===ni?{type:$t,value:JSON.stringify(e.value)}:{type:$t,value:Us(e)}}function Up(t,e){const n=Number(e.value);if(Number.isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");if(e.value==="")throw new Error("Unable to convert value to Number.");return{type:Xt,value:n}}function gF(t,e){if(e.value>ea||e.value<ta)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:mt,value:bo(n)}}function hF(t,e){let n;try{n=bo(e.value)}catch{throw new Error("Unable to convert value to Integer.")}return{type:mt,value:n}}function vF(t,e){return{type:mt,value:bo(e.value?1:0)}}function bF(t,e){const n=Number(e.value);if(n!==1&&n!==0)throw new Error("Unable to convert value to Boolean.");return{type:Ki,value:n}}function yF(t,e){if(e.value!=="true"&&e.value!=="false")throw new Error("Unable to convert value to Boolean.");return{type:Ki,value:e.value==="true"?1:0}}function wF(t,e){return{type:mo,value:El(e.value)}}function $F(t,e){return{type:or,value:e.value}}function kF(t,e){try{return{type:$t,value:encodeURIComponent(e.value)}}catch{throw new Error("Unable to encodeUri string.")}}function jF(t,e){try{return{type:$t,value:decodeURIComponent(e.value)}}catch{throw new Error("Unable to decodeUri string.")}}function Ou(t,e,n,i){const o=t.variables.get(e.value);let r;return o&&o.getType()===i?r=o.getValue():r=n.value,i==="color"&&(r=El(r)),{type:i,value:r}}function Ta(t,e,n){return Ou(t,e,n,n.type)}function Jp(t,e,n){return Ou(t,e,n,"color")}function Wp(t,e,n){return Ou(t,e,n,"url")}function SF(){ke("toString",[mt],Do),ke("toString",[Xt],Do),ke("toString",[Ki],Do),ke("toString",[mo],Do),ke("toString",[or],Do),ke("toString",[$t],Do),ke("toString",[ii],Do),ke("toString",[ni],Do),ke("toNumber",[mt],Up),ke("toNumber",[$t],Up),ke("toInteger",[Xt],gF),ke("toInteger",[$t],hF),ke("toInteger",[Ki],vF),ke("toBoolean",[mt],bF),ke("toBoolean",[$t],yF),ke("toColor",[$t],wF),ke("toUrl",[$t],$F),ke("encodeUri",[$t],kF),ke("decodeUri",[$t],jF),ke("getIntegerValue",[$t,mt],Ta),ke("getNumberValue",[$t,Xt],Ta),ke("getBooleanValue",[$t,Ki],Ta),ke("getStringValue",[$t,$t],Ta),ke("getColorValue",[$t,mo],Jp),ke("getColorValue",[$t,$t],Jp),ke("getUrlValue",[$t,or],Wp),ke("getUrlValue",[$t,$t],Wp),to("toString",[mt],Do),to("toString",[Xt],Do),to("toString",[Ki],Do),to("toString",[mo],Do),to("toString",[or],Do),to("toString",[$t],Do),to("toString",[ii],Do),to("toString",[ni],Do)}function Vo(t,e){return!t||!e?t:t.padStart(e,"0")}const Zd={G(t,e){let n;return t<4?n="short":t===5?n="narrow":n="long",e({era:n},"era")},d(t,e){return Vo(e({day:"numeric"},"day"),t>1?t:0)},D(t,e){return Vo(e({},"dayofyear"),t>1?t:0)},F(t,e){return Vo(e({},"dayofweekinmonth"),t>1?t:0)},M(t,e){let n;return t===1?n="numeric":t===2?n="2-digit":t===3?n="short":t===5?n="narrow":n="long",e({month:n,day:"numeric"},"month")},y(t,e){return Vo(e({year:t===2?"2-digit":"numeric"},"year"),t>2?t:void 0)},Y(t,e){return Vo(e({year:t===2?"2-digit":"numeric"},"weekyear"),t>2?t:void 0)},u(t,e){return Vo(e({year:"numeric"},"extendedyear"),t>1?t:void 0)},E(t,e){let n;return t<=3?n="short":t===5?n="narrow":n="long",e({weekday:n},"weekday")},e(t,e){return t>2?Zd.E(t,e):Vo(e({},"weekdaynumeric"),t>1?t:void 0)},w(t,e){return Vo(e({},"week"),t>1?t:void 0)},W(t,e){return Vo(e({},"weekofmonth"),t>1?t:void 0)},H(t,e){const n=e({hour:"numeric",hour12:!1,hourCycle:"h23"},"hour");if(!n)return;const i=String(Number(n)%24);return Vo(i,t>1?t:void 0)},h(t,e){return Vo(e({hour:"numeric",hour12:!0,hourCycle:"h12"},"hour"),t>1?t:void 0)},K(t,e){const n=e({hour:"numeric",hour12:!0,hourCycle:"h11"},"hour");if(!n)return;const i=String(Number(n)%12);return Vo(i,t>1?t:void 0)},k(t,e){return Vo(e({hour:"numeric",hour12:!1,hourCycle:"h24"},"hour"),t>2?t:void 0)},a(t,e){return e({hour:"numeric",hour12:!0,hourCycle:"h11",dayPeriod:void 0},"dayPeriod")},m(t,e){return Vo(e({minute:"numeric"},"minute"),t>1?t:void 0)},s(t,e){return Vo(e({second:"numeric"},"second"),t>1?t:void 0)},S(t,e){const n=e({fractionalSecondDigits:Math.min(3,t)},"fractionalSecond");return n&&t>3?n.padEnd(t,"0"):n},z(t,e){return e({timeZoneName:t===4?"long":"short"},"timeZoneName")},Z(t,e){const n=-Number(e({},"timezoneoffset")),i=Math.abs(n/60),o=Math.floor(i)*100+(i-Math.floor(i))*60;return(n>=0?"+":"-")+Vo(String(o),4)}},CF=/(\w)\1*|''|'(''|[^'])+('|$)|./g,TF=/^'([^]*?)'?$/,zF=/''/g,EF=/[a-zA-Z]/,Mu=1e3*60*60*24;function AF(t){const e=t.match(TF);return e?e[1].replace(zF,"'"):t}function xd(t,e,n){const i=t[e?"getUTCDay":"getDay"](),o=i<n?n-i-7:n-i;return new Date(t.getTime()+Mu*o)}function Kp(t,e,n){const i=new Date(t);return i[e?"setUTCDate":"setDate"](1),i[e?"setUTCMonth":"setMonth"](0),xd(i,e,n)}function Yp(t,e){return Math.round((t.getTime()-e.getTime())/Mu)}function Gp(t,e,n){let i=0;const o=Kp(t,e||!1,n),r=new Date(t);r[e?"setUTCFullYear":"setFullYear"](t[e?"getUTCFullYear":"getFullYear"]()+1);const s=Kp(r,e||!1,n),l=t.getTime()<o.getTime(),a=t.getTime()>=s.getTime();let c=t[e?"getUTCFullYear":"getFullYear"]();if(l){--c,o[e?"setUTCFullYear":"setFullYear"](o[e?"getUTCFullYear":"getFullYear"]()-1);const d=Yp(xd(t,e,n),o);i=Math.round(d/7)+1}else if(a)++c,i=1;else{const d=Yp(xd(t,e,n),o);i=Math.round(d/7)+1}return{week:i,year:c}}function OF(t,e,{locale:n,isUTC:i,weekStartDay:o=0}={}){const r=(s,l)=>{if(l==="week"){const{week:c}=Gp(t,i||!1,o);return String(c)}if(l==="weekofmonth"){const c=t[i?"getUTCDay":"getDay"](),d=new Date(t);d[i?"setUTCDate":"setDate"](1);const u=d[i?"getUTCDay":"getDay"](),p=t[i?"getUTCDate":"getDate"]();return String(Math.ceil(p/7)+(c<u?1:0))}if(l==="dayofweekinmonth"){const c=t[i?"getUTCDate":"getDate"]();return String(Math.ceil(c/7))}if(l==="weekdaynumeric"){let c=t[i?"getUTCDay":"getDay"]();return c<o&&(c+=7),String(c-o+1)}if(l==="dayofyear"){const c=new Date(t);c[i?"setUTCMonth":"setMonth"](0),c[i?"setUTCDate":"setDate"](1),c[i?"setUTCHours":"setHours"](1),c[i?"setUTCMinutes":"setMinutes"](1),c[i?"setUTCSeconds":"setSeconds"](1);const d=Math.ceil((t.getTime()-c.getTime())/Mu);return String(d)}if(l==="weekyear"){let{year:c}=Gp(t,i||!1,o);return c<1&&(c=1-c),s.year==="2-digit"?String(c%100):String(c)}if(l==="extendedyear"){const c=t[i?"getUTCFullYear":"getFullYear"]();return s.year==="2-digit"?String(c%100):String(c)}if(l==="timezoneoffset")return i?"0":String(t.getTimezoneOffset());i&&(s.timeZone="UTC");const a=new Intl.DateTimeFormat(n,s).formatToParts(t);for(let c=0;c<a.length;++c)if(a[c].type===l)return a[c].value};return(e.match(CF)||[]).map((s=>{if(s==="''")return"'";const l=s[0];if(l==="'")return AF(s);if(Zd[l])return Zd[l](s.length,r);if(l.match(EF))throw new Error(`Format string contains an unescaped latin alphabet character "${l}"`);return s})).join("")}function MF(t){const e=new Date(t);return e.setUTCMonth(e.getUTCMonth()+1),e.setUTCDate(0),e.getUTCDate()}function PF(t,e){return{type:Ci,value:new Date(Number(e.value)*1e3)}}function IF(t,e){const n=new Date(Number(e.value)*1e3),i=n.getTimezoneOffset();return n.setMinutes(n.getMinutes()-i),{type:Ci,value:n}}function DF(){return{type:Ci,value:new Date}}function VF(t,e,n){return{type:Ci,value:new Date(e.value.getTime()+Number(n.value))}}function LF(t,e,n){const i=new Date(e.value);return i.setUTCFullYear(Number(n.value)),{type:Ci,value:i}}function FF(t,e,n){const i=Number(n.value);if(i<1||i>12)throw new Error(`Expecting month in [1..12], instead got ${i}.`);const o=new Date(e.value);return o.setUTCMonth(i-1),{type:Ci,value:o}}function NF(t,e,n){const i=new Date(e.value),o=Number(n.value);if(o<=0&&o!==-1||o>MF(i))throw new Error(`Unable to set day ${o} for date ${Us(e)}.`);return i.setUTCDate(o===-1?0:o),{type:Ci,value:i}}function qF(t,e,n){const i=Number(n.value);if(i<0||i>23)throw new Error(`Expecting hours in [0..23], instead got ${i}.`);const o=new Date(e.value);return o.setUTCHours(i),{type:Ci,value:o}}function RF(t,e,n){const i=Number(n.value);if(i<0||i>59)throw new Error(`Expecting minutes in [0..59], instead got ${i}.`);const o=new Date(e.value);return o.setUTCMinutes(i),{type:Ci,value:o}}function BF(t,e,n){const i=Number(n.value);if(i<0||i>59)throw new Error(`Expecting seconds in [0..59], instead got ${i}.`);const o=new Date(e.value);return o.setUTCSeconds(i),{type:Ci,value:o}}function HF(t,e,n){const i=Number(n.value);if(i<0||i>999)throw new Error(`Expecting millis in [0..999], instead got ${i}.`);const o=new Date(e.value);return o.setUTCMilliseconds(i),{type:Ci,value:o}}const hs=t=>(e,n)=>{let i=new Date(n.value.getTime())[t]();return t==="getUTCMonth"?++i:t==="getUTCDay"&&i===0&&(i=7),{type:mt,value:bo(i)}};function V1(t){return(e,n,i,o)=>({type:$t,value:OF(n.value,i.value,{locale:o==null?void 0:o.value,isUTC:t,weekStartDay:e.weekStartDay})})}const UF=hs("getUTCFullYear"),JF=hs("getUTCMonth"),WF=hs("getUTCDate"),KF=hs("getUTCDay"),YF=hs("getUTCHours"),GF=hs("getUTCMinutes"),XF=hs("getUTCSeconds"),ZF=hs("getUTCMilliseconds"),Xp=V1(!1),Zp=V1(!0);function xF(){ke("parseUnixTime",[mt],PF),ke("parseUnixTimeAsLocal",[mt],IF),ke("nowLocal",[],DF),ke("addMillis",[Ci,mt],VF),ke("setYear",[Ci,mt],LF),ke("setMonth",[Ci,mt],FF),ke("setDay",[Ci,mt],NF),ke("setHours",[Ci,mt],qF),ke("setMinutes",[Ci,mt],RF),ke("setSeconds",[Ci,mt],BF),ke("setMillis",[Ci,mt],HF),ke("getYear",[Ci],UF),ke("getMonth",[Ci],JF),ke("getDay",[Ci],WF),ke("getDayOfWeek",[Ci],KF),ke("getHours",[Ci],YF),ke("getMinutes",[Ci],GF),ke("getSeconds",[Ci],XF),ke("getMillis",[Ci],ZF),ke("formatDateAsLocal",[Ci,$t],Xp),ke("formatDateAsUTC",[Ci,$t],Zp),ke("formatDateAsLocalWithLocale",[Ci,$t,$t],Xp),ke("formatDateAsUTCWithLocale",[Ci,$t,$t],Zp)}function QF(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function tt(t,e={}){const n=t;return n.level=e.level||"error",e.additional&&(n.additional=e.additional),n}function eN(t,e){return{type:mt,value:bo(e.value.length)}}function tN(t,e,n){return{type:Ki,value:e.value.includes(n.value)?1:0}}function nN(t,e,n,i){if(i.value<n.value)throw new Error("Indexes should be in ascending order.");if(n.value<0||n.value>e.value.length||i.value<0||i.value>e.value.length)throw new Error("Indexes are out of bounds.");return{type:$t,value:e.value.substring(Number(n.value),Number(i.value))}}function iN(t,e,n,i){let o;return n.value?o=e.value.replace(new RegExp(QF(n.value),"g"),i.value):o=e.value,{type:$t,value:o}}function oN(t,e,n){return{type:mt,value:bo(e.value.indexOf(n.value))}}function rN(t,e,n){return{type:mt,value:bo(e.value.lastIndexOf(n.value))}}function sN(t,e){return{type:$t,value:e.value.trim()}}function lN(t,e){return{type:$t,value:e.value.replace(/^\s+/,"")}}function aN(t,e){return{type:$t,value:e.value.replace(/\s+$/,"")}}function cN(t,e){return{type:$t,value:e.value.toUpperCase()}}function dN(t,e){return{type:$t,value:e.value.toLowerCase()}}function L1(t,e,n,i){if(!i.value.length)return t.warnings.push(tt(new Error("String for padding is empty."),{level:"warn"})),"";let o="";const r=e.type===$t?e.value:Us(e);for(;o.length+r.length<n.value;)o+=i.value;return o.length>0&&o.length+r.length>n.value&&(o=o.substring(0,Number(n.value)-Number(r.length))),o}function xp(t,e,n,i){const o=L1(t,e,n,i);return{type:$t,value:o+Us(e)}}function Qp(t,e,n,i){const o=L1(t,e,n,i);return{type:$t,value:Us(e)+o}}function uN(t,e,n){let i;try{i=new RegExp(n.value)}catch{throw new Error("Invalid regular expression.")}return{type:Ki,value:i.test(e.value)?1:0}}function pN(t,e){return{type:$t,value:e.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}function _N(){ke("len",[$t],eN),ke("contains",[$t,$t],tN),ke("substring",[$t,mt,mt],nN),ke("replaceAll",[$t,$t,$t],iN),ke("index",[$t,$t],oN),ke("lastIndex",[$t,$t],rN),ke("trim",[$t],sN),ke("trimLeft",[$t],lN),ke("trimRight",[$t],aN),ke("toUpperCase",[$t],cN),ke("toLowerCase",[$t],dN),ke("padStart",[$t,mt,$t],xp),ke("padStart",[mt,mt,$t],xp),ke("padEnd",[$t,mt,$t],Qp),ke("padEnd",[mt,mt,$t],Qp),ke("testRegex",[$t,$t],uN),ke("encodeRegex",[$t],pN)}function fN(t,e,n){if(n.value===Os)throw new Error("Division by zero is not supported.");let i=e.value/n.value;return i=Js(t,i),No(t,i),{type:mt,value:i}}function mN(t,e,n){if(n.value===0)throw new Error("Division by zero is not supported.");const i=e.value/n.value;return{type:Xt,value:i}}function gN(t,e,n){if(n.value===Os)throw new Error("Division by zero is not supported.");let i=e.value%n.value;return i=Js(t,i),No(t,i),{type:mt,value:i}}function hN(t,e,n){if(n.value===0)throw new Error("Division by zero is not supported.");const i=e.value%n.value;return{type:Xt,value:i}}function vN(t,...e){let n=e.length?e[0].value:Os;for(let i=1;i<e.length;++i)n*=e[i].value,n=Js(t,n),No(t,n);return{type:mt,value:n}}function bN(t,...e){let n=e.length?e[0].value:0;for(let i=1;i<e.length;++i)n*=e[i].value;return{type:Xt,value:n}}function yN(t,...e){let n=e.length?e[0].value:Os;for(let i=1;i<e.length;++i)n-=e[i].value,n=Js(t,n),No(t,n);return{type:mt,value:n}}function wN(t,...e){let n=e.length?e[0].value:0;for(let i=1;i<e.length;++i)n-=e[i].value;return{type:Xt,value:n}}function $N(t,...e){let n=Os;for(let i=0;i<e.length;++i)n+=e[i].value,n=Js(t,n),No(t,n);return{type:mt,value:n}}function kN(t,...e){let n=0;for(let i=0;i<e.length;++i)n+=e[i].value;return{type:Xt,value:n}}function jN(t,e){const n=E1(e.value);return No(t,n),{type:e.type,value:n}}function SN(t,e){const n=Math.abs(e.value);return{type:Xt,value:n}}function CN(t,...e){if(!e.length)throw new Error("Function requires non empty argument list.");let n=e[0].value;for(let i=1;i<e.length;++i)e[i].value>n&&(n=e[i].value);return{type:mt,value:n}}function TN(t,...e){if(!e.length)throw new Error("Function requires non empty argument list.");return{type:Xt,value:Math.max(...e.map((n=>n.value)))}}function zN(t,...e){if(!e.length)throw new Error("Function requires non empty argument list.");let n=e[0].value;for(let i=1;i<e.length;++i)e[i].value<n&&(n=e[i].value);return{type:mt,value:n}}function EN(t,...e){if(!e.length)throw new Error("Function requires non empty argument list.");return{type:Xt,value:Math.min(...e.map((n=>n.value)))}}function AN(){return{type:Xt,value:uF}}function ON(){return{type:Xt,value:pF}}function MN(t){return No(t,ea),{type:mt,value:ea}}function PN(t){return No(t,ta),{type:mt,value:ta}}function IN(t,e){const n=Math.sign(e.value);return{type:Xt,value:n*Math.round(Math.abs(e.value))}}function DN(t,e){return{type:Xt,value:Math.floor(e.value)}}function VN(t,e){return{type:Xt,value:Math.ceil(e.value)}}function LN(t,e){return{type:mt,value:A1(e.value)}}function FN(t,e){return{type:Xt,value:Math.sign(e.value)}}function NN(t,e,n){let i;if(n.value===Os)i=e.value;else if(e.value===Os)i=bo(0);else{const o=A1(n.value);i=E1(e.value)*o}return No(t,i),{type:mt,value:i}}function qN(t,e,n){let i=Math.sign(n.value);i===0&&(i=Object.is(i,0)?1:-1);const o=Math.abs(e.value)*i;return{type:Xt,value:o}}function RN(){ke("div",[mt,mt],fN),ke("div",[Xt,Xt],mN),ke("mod",[mt,mt],gN),ke("mod",[Xt,Xt],hN),ke("mul",[{type:mt,isVararg:!0}],vN),ke("mul",[{type:Xt,isVararg:!0}],bN),ke("sub",[{type:mt,isVararg:!0}],yN),ke("sub",[{type:Xt,isVararg:!0}],wN),ke("sum",[{type:mt,isVararg:!0}],$N),ke("sum",[{type:Xt,isVararg:!0}],kN),ke("abs",[mt],jN),ke("abs",[Xt],SN),ke("max",[{type:mt,isVararg:!0}],CN),ke("max",[{type:Xt,isVararg:!0}],TN),ke("min",[{type:mt,isVararg:!0}],zN),ke("min",[{type:Xt,isVararg:!0}],EN),ke("maxNumber",[],AN),ke("minNumber",[],ON),ke("maxInteger",[],MN),ke("minInteger",[],PN),ke("round",[Xt],IN),ke("floor",[Xt],DN),ke("ceil",[Xt],VN),ke("signum",[mt],LN),ke("signum",[Xt],FN),ke("copySign",[mt,mt],NN),ke("copySign",[Xt,Xt],qN)}function Kc(t){return(e,n)=>{const i=Wc(n.value);return{type:Xt,value:i[t]/255}}}function Yc(t){return(e,n,i)=>{const o=Wc(n.value);return o[t]=i.value*255,{type:mo,value:Ws(o)}}}const e_=Kc("a"),t_=Kc("r"),n_=Kc("g"),i_=Kc("b"),o_=Yc("a"),r_=Yc("r"),s_=Yc("g"),l_=Yc("b");function BN(t,e,n,i){const o={a:255,r:e.value*255,g:n.value*255,b:i.value*255};return{type:mo,value:Ws(o)}}function HN(t,e,n,i,o){const r={a:e.value*255,r:n.value*255,g:i.value*255,b:o.value*255};return{type:mo,value:Ws(r)}}function UN(){ke("getColorAlpha",[$t],e_),ke("getColorAlpha",[mo],e_),ke("getColorRed",[$t],t_),ke("getColorRed",[mo],t_),ke("getColorGreen",[$t],n_),ke("getColorGreen",[mo],n_),ke("getColorBlue",[$t],i_),ke("getColorBlue",[mo],i_),ke("setColorAlpha",[$t,Xt],o_),ke("setColorAlpha",[mo,Xt],o_),ke("setColorRed",[$t,Xt],r_),ke("setColorRed",[mo,Xt],r_),ke("setColorGreen",[$t,Xt],s_),ke("setColorGreen",[mo,Xt],s_),ke("setColorBlue",[$t,Xt],l_),ke("setColorBlue",[mo,Xt],l_),ke("rgb",[Xt,Xt,Xt],BN),ke("argb",[Xt,Xt,Xt,Xt],HN)}function vs(t,e,n,i){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let o=bo(e.value)/bo(n);return No(t,o),i&&(o=bo(o)%bo(i)),{type:mt,value:o}}const F1=1e3,JN=60,N1=1e3*60,WN=60,q1=1e3*60*60,KN=24,YN=1e3*60*60*24,GN=1e3*60*60*24*7;function XN(t,e){return vs(t,e,F1,JN)}function ZN(t,e){return vs(t,e,F1)}function xN(t,e){return vs(t,e,N1,WN)}function QN(t,e){return vs(t,e,N1)}function eq(t,e){return vs(t,e,q1,KN)}function tq(t,e){return vs(t,e,q1)}function nq(t,e){return vs(t,e,YN)}function iq(t,e){return vs(t,e,GN)}function oq(){ke("getIntervalSeconds",[mt],XN),ke("getIntervalTotalSeconds",[mt],ZN),ke("getIntervalMinutes",[mt],xN),ke("getIntervalTotalMinutes",[mt],QN),ke("getIntervalHours",[mt],eq),ke("getIntervalTotalHours",[mt],tq),ke("getIntervalTotalDays",[mt],nq),ke("getIntervalTotalWeeks",[mt],iq)}function rq(t,e){let n=t;for(let i=0;i<e.length;++i){if(!n)throw new Error(`Missing property "${e[i]}" in the dict.`);const o=n[e[i]];if(o===void 0)throw new Error(`Missing property "${e[i]}" in the dict.`);n=o}return n}function bs(t){return(e,n,...i)=>{if(i.length===0)throw new Error("Non empty argument list is required.");const o=rq(n.value,i.map((r=>r.value)));return I1(e,o,t)}}function Al(t,e){return(n,i,o,...r)=>{try{return t(n,o,...r)}catch{let s=i.value;return e==="color"&&(s=El(s)),{type:e,value:s}}}}const Ua=bs($t),Ja=bs(Xt),Wa=bs(mt),Ka=bs(Ki),Ya=bs(mo),Ga=bs(or),Qd=bs(ii),eu=bs(ni),a_=Al(Ua,$t),c_=Al(Ja,Xt),d_=Al(Wa,mt),u_=Al(Ka,Ki),za=Al(Ya,mo),Ea=Al(Ga,or);function sq(t,e,...n){try{return Qd(t,e,...n)}catch{return{type:ii,value:[]}}}function lq(t,e,...n){try{return eu(t,e,...n)}catch{return{type:ni,value:{}}}}function aq(t,e,n){return{type:Ki,value:n.value in e.value?1:0}}function cq(t,e){return{type:Ki,value:Object.keys(e.value).length?0:1}}function dq(){const t={type:$t,isVararg:!0};ke("getDictString",[ni,t],Ua),ke("getStringFromDict",[ni,t],Ua),ke("getDictNumber",[ni,t],Ja),ke("getNumberFromDict",[ni,t],Ja),ke("getDictInteger",[ni,t],Wa),ke("getIntegerFromDict",[ni,t],Wa),ke("getDictBoolean",[ni,t],Ka),ke("getBooleanFromDict",[ni,t],Ka),ke("getDictColor",[ni,t],Ya),ke("getColorFromDict",[ni,t],Ya),ke("getDictUrl",[ni,t],Ga),ke("getUrlFromDict",[ni,t],Ga),ke("getDictOptString",[$t,ni,t],a_),ke("getOptStringFromDict",[$t,ni,t],a_),ke("getDictOptNumber",[Xt,ni,t],c_),ke("getOptNumberFromDict",[Xt,ni,t],c_),ke("getDictOptInteger",[mt,ni,t],d_),ke("getOptIntegerFromDict",[mt,ni,t],d_),ke("getDictOptBoolean",[Ki,ni,t],u_),ke("getOptBooleanFromDict",[Ki,ni,t],u_),ke("getDictOptColor",[mo,ni,t],za),ke("getOptColorFromDict",[mo,ni,t],za),ke("getDictOptColor",[$t,ni,t],za),ke("getOptColorFromDict",[$t,ni,t],za),ke("getDictOptUrl",[$t,ni,t],Ea),ke("getOptUrlFromDict",[$t,ni,t],Ea),ke("getDictOptUrl",[or,ni,t],Ea),ke("getOptUrlFromDict",[or,ni,t],Ea),ke("getDictFromDict",[ni,t],eu),ke("getArrayFromDict",[ni,t],Qd),ke("getOptArrayFromDict",[ni,t],sq),ke("getOptDictFromDict",[ni,t],lq),to("getString",[ni,t],Ua),to("getBoolean",[ni,t],Ka),to("getInteger",[ni,t],Wa),to("getNumber",[ni,t],Ja),to("getUrl",[ni,t],Ga),to("getColor",[ni,t],Ya),to("getArray",[ni,t],Qd),to("getDict",[ni,t],eu),to("containsKey",[ni,$t],aq),to("isEmpty",[ni],cq)}function ys(t,e){return(n,i,o)=>{if(o.value<0||o.value>=i.value.length)throw new Error(`Requested index (${o.value}) out of bounds array size (${i.value.length}).`);let r=i.value[Number(o.value)],s=typeof r;if(t==="array"&&!Array.isArray(r)||t!=="array"&&s!==t||s==="object"&&r===null)throw s==="object"&&(Array.isArray(r)?s="Array":r===null?s="Null":s="Dict"),new Error(`Incorrect value type: expected ${Xo(e)}, got ${Xo(s)}.`);if(t==="number"&&e==="integer"){No(n,r);try{r=bo(r)}catch{throw new Error("Cannot convert value to integer.")}}return t==="string"&&e==="color"&&(r=El(r)),{type:e,value:r}}}function Ol(t,e){return(n,i,o,r)=>{try{return t(n,i,o)}catch{let s=r.value;return e==="color"&&(s=El(s)),{type:e,value:s}}}}const Xa=ys("string","string"),Za=ys("number","number"),xa=ys("number","integer"),Qa=ys("boolean","boolean"),ec=ys("string","color"),tc=ys("string","url"),tu=ys("array","array"),nu=ys("object","dict"),p_=Ol(Xa,"string"),__=Ol(Za,"number"),f_=Ol(xa,"integer"),m_=Ol(Qa,"boolean"),Aa=Ol(ec,"color"),Oa=Ol(tc,"url");function uq(t,e,n){try{return tu(t,e,n)}catch{return{type:ii,value:[]}}}function pq(t,e,n){try{return nu(t,e,n)}catch{return{type:ni,value:{}}}}function _q(t,e){return{type:mt,value:bo(e.value.length)}}function fq(t,e){return{type:Ki,value:e.value.length===0?1:0}}function mq(){ke("getArrayString",[ii,mt],Xa),ke("getStringFromArray",[ii,mt],Xa),ke("getArrayNumber",[ii,mt],Za),ke("getNumberFromArray",[ii,mt],Za),ke("getArrayInteger",[ii,mt],xa),ke("getIntegerFromArray",[ii,mt],xa),ke("getArrayBoolean",[ii,mt],Qa),ke("getBooleanFromArray",[ii,mt],Qa),ke("getArrayColor",[ii,mt],ec),ke("getColorFromArray",[ii,mt],ec),ke("getArrayUrl",[ii,mt],tc),ke("getUrlFromArray",[ii,mt],tc),ke("getArrayFromArray",[ii,mt],tu),ke("getDictFromArray",[ii,mt],nu),ke("getArrayOptString",[ii,mt,$t],p_),ke("getOptStringFromArray",[ii,mt,$t],p_),ke("getArrayOptNumber",[ii,mt,Xt],__),ke("getOptNumberFromArray",[ii,mt,Xt],__),ke("getArrayOptInteger",[ii,mt,mt],f_),ke("getOptIntegerFromArray",[ii,mt,mt],f_),ke("getArrayOptBoolean",[ii,mt,Ki],m_),ke("getOptBooleanFromArray",[ii,mt,Ki],m_),ke("getArrayOptColor",[ii,mt,mo],Aa),ke("getOptColorFromArray",[ii,mt,mo],Aa),ke("getArrayOptColor",[ii,mt,$t],Aa),ke("getOptColorFromArray",[ii,mt,$t],Aa),ke("getArrayOptUrl",[ii,mt,or],Oa),ke("getOptUrlFromArray",[ii,mt,or],Oa),ke("getArrayOptUrl",[ii,mt,$t],Oa),ke("getOptUrlFromArray",[ii,mt,$t],Oa),ke("getOptArrayFromArray",[ii,mt],uq),ke("getOptDictFromArray",[ii,mt],pq),ke("len",[ii],_q),to("getString",[ii,mt],Xa),to("getInteger",[ii,mt],xa),to("getNumber",[ii,mt],Za),to("getBoolean",[ii,mt],Qa),to("getUrl",[ii,mt],tc),to("getColor",[ii,mt],ec),to("getArray",[ii,mt],tu),to("getDict",[ii,mt],nu),to("isEmpty",[ii],fq)}function Or(t){return(e,n,i)=>{if(!e.store){if(!i)throw new Error("Missing value.");return{type:t,value:i.value}}let o;t==="boolean"?o="boolean":t==="number"||t==="integer"?o="number":o="string";let r;if(e.store.get?r=e.store.get(n.value,t):e.store.getValue&&(r=e.store.getValue(n.value,o)),r===void 0){if(!i)throw new Error("Missing value.");return{type:t,value:i.value}}return I1(e,r,t)}}function gq(){ke("getStoredIntegerValue",[$t,mt],Or(mt)),ke("getStoredNumberValue",[$t,Xt],Or(Xt)),ke("getStoredStringValue",[$t,$t],Or($t)),ke("getStoredUrlValue",[$t,or],Or(or)),ke("getStoredUrlValue",[$t,$t],Or(or)),ke("getStoredColorValue",[$t,mo],Or(mo)),ke("getStoredColorValue",[$t,$t],Or(mo)),ke("getStoredBooleanValue",[$t,Ki],Or(Ki)),ke("getStoredArrayValue",[$t],Or(ii)),ke("getStoredDictValue",[$t],Or(ni))}function hq(){return{type:Xt,value:Math.PI}}function vq(t,e){return{type:Xt,value:e.value/180*Math.PI}}function bq(t,e){return{type:Xt,value:e.value/Math.PI*180}}function yq(t,e){return{type:Xt,value:Math.sin(e.value)}}function wq(t,e){return{type:Xt,value:Math.cos(e.value)}}function $q(t,e){return{type:Xt,value:Math.tan(e.value)}}function kq(t,e){return{type:Xt,value:Math.atan(e.value)}}function jq(t,e){if(e.value>1||e.value<-1)throw new Error("Arcsine is undefined for the given value.");return{type:Xt,value:Math.asin(e.value)}}function Sq(t,e){if(e.value>1||e.value<-1)throw new Error("Arccosine is undefined for the given value.");return{type:Xt,value:Math.acos(e.value)}}function Cq(){ke("pi",[],hq),ke("toRadians",[Xt],vq),ke("toDegrees",[Xt],bq),ke("sin",[Xt],yq),ke("cos",[Xt],wq),ke("tan",[Xt],$q),ke("atan",[Xt],kq),ke("asin",[Xt],jq),ke("acos",[Xt],Sq)}function Tq(){SF(),xF(),oq(),_N(),RN(),UN(),dq(),mq(),gq(),Cq()}function me(){}const Gc=t=>t;function Ks(t,e){for(const n in e)t[n]=e[n];return t}function R1(t){return t()}function g_(){return Object.create(null)}function so(t){t.forEach(R1)}function Fi(t){return typeof t=="function"}function zq(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Ma;function rr(t,e){return t===e?!0:(Ma||(Ma=document.createElement("a")),Ma.href=e,t===Ma.href)}function Pi(t,e){return t!=t?e==e:t!==e}function Eq(t){return Object.keys(t).length===0}function De(t,...e){if(t==null){for(const i of e)i(void 0);return me}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Aq(t){let e;return De(t,(n=>e=n))(),e}function ko(t,e,n){t.$$.on_destroy.push(De(e,n))}function Xc(t,e,n,i){if(t){const o=B1(t,e,n,i);return t[0](o)}}function B1(t,e,n,i){return t[1]&&i?Ks(n.ctx.slice(),t[1](i(e))):n.ctx}function Zc(t,e,n,i){if(t[2]&&i){const o=t[2](i(n));if(e.dirty===void 0)return o;if(typeof o=="object"){const r=[],s=Math.max(e.dirty.length,o.length);for(let l=0;l<s;l+=1)r[l]=e.dirty[l]|o[l];return r}return e.dirty|o}return e.dirty}function xc(t,e,n,i,o,r){if(o){const s=B1(e,n,i,r);t.p(s,o)}}function Qc(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}function nc(t,e,n){return t.set(n),e}function ed(t){return t&&Fi(t.destroy)?t.destroy:me}function h_(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}const H1=typeof window<"u";let Pu=H1?()=>window.performance.now():()=>Date.now(),Iu=H1?t=>requestAnimationFrame(t):me;const ul=new Set;function U1(t){ul.forEach((e=>{e.c(t)||(ul.delete(e),e.f())})),ul.size!==0&&Iu(U1)}function Du(t){let e;return ul.size===0&&Iu(U1),{promise:new Promise((n=>{ul.add(e={c:t,f:n})})),abort(){ul.delete(e)}}}const Ur=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function Vn(t,e){t.appendChild(e)}function J1(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Oq(t){const e=Zt("style");return e.textContent="/* empty */",Mq(J1(t),e),e.sheet}function Mq(t,e){return Vn(t.head||t,e),e.sheet}function rt(t,e,n){t.insertBefore(e,n||null)}function it(t){t.parentNode&&t.parentNode.removeChild(t)}function Co(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function Zt(t){return document.createElement(t)}function $o(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function jr(t){return document.createTextNode(t)}function Ai(){return jr(" ")}function si(){return jr("")}function en(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function K(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const Pq=["width","height"];function $r(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const i in e)e[i]==null?t.removeAttribute(i):i==="style"?t.style.cssText=e[i]:i==="__value"?t.value=t[i]=e[i]:n[i]&&n[i].set&&Pq.indexOf(i)===-1?t[i]=e[i]:K(t,i,e[i])}function Iq(t,e){Object.keys(e).forEach((n=>{Dq(t,n,e[n])}))}function Dq(t,e,n){const i=e.toLowerCase();i in t?t[i]=typeof t[i]=="boolean"&&n===""?!0:n:e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:K(t,e,n)}function v_(t){return/-/.test(t)?Iq:$r}function Vq(t){return Array.from(t.childNodes)}function ws(t,e){e=""+e,t.data!==e&&(t.data=e)}function b_(t,e){t.value=e??""}function He(t,e,n,i){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function y_(t,e,n){for(let i=0;i<t.options.length;i+=1){const o=t.options[i];if(o.__value===e){o.selected=!0;return}}(!n||e!==void 0)&&(t.selectedIndex=-1)}function Lq(t){const e=t.querySelector(":checked");return e&&e.__value}function W1(t,e,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:i})}function w_(t,e){return new t(e)}const vc=new Map;let bc=0;function Fq(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function Nq(t,e){const n={stylesheet:Oq(e),rules:{}};return vc.set(t,n),n}function yc(t,e,n,i,o,r,s,l=0){const a=16.666/i;let c=`{\n`;for(let h=0;h<=1;h+=a){const v=e+(n-e)*r(h);c+=h*100+`%{${s(v,1-v)}}\n`}const d=c+`100% {${s(n,1-n)}}\n}`,u=`__svelte_${Fq(d)}_${l}`,p=J1(t),{stylesheet:_,rules:f}=vc.get(p)||Nq(p,t);f[u]||(f[u]=!0,_.insertRule(`@keyframes ${u} ${d}`,_.cssRules.length));const m=t.style.animation||"";return t.style.animation=`${m?`${m}, `:""}${u} ${i}ms linear ${o}ms 1 both`,bc+=1,u}function wc(t,e){const n=(t.style.animation||"").split(", "),i=n.filter(e?r=>r.indexOf(e)<0:r=>r.indexOf("__svelte")===-1),o=n.length-i.length;o&&(t.style.animation=i.join(", "),bc-=o,bc||qq())}function qq(){Iu((()=>{bc||(vc.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&it(e)})),vc.clear())}))}let na;function Yl(t){na=t}function Ml(){if(!na)throw new Error("Function called outside component initialization");return na}function Sr(t){Ml().$$.on_mount.push(t)}function td(t){Ml().$$.after_update.push(t)}function jo(t){Ml().$$.on_destroy.push(t)}function Rq(){const t=Ml();return(e,n,{cancelable:i=!1}={})=>{const o=t.$$.callbacks[e];if(o){const r=W1(e,n,{cancelable:i});return o.slice().forEach((s=>{s.call(t,r)})),!r.defaultPrevented}return!0}}function Ss(t,e){return Ml().$$.context.set(t,e),e}function ro(t){return Ml().$$.context.get(t)}function Zr(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((i=>i.call(this,e)))}const ol=[],Wi=[];let pl=[];const $_=[],K1=Promise.resolve();let iu=!1;function Y1(){iu||(iu=!0,K1.then(G1))}function Fo(){return Y1(),K1}function sr(t){pl.push(t)}const $d=new Set;let el=0;function G1(){if(el!==0)return;const t=na;do{try{for(;el<ol.length;){const e=ol[el];el++,Yl(e),Bq(e.$$)}}catch(e){throw ol.length=0,el=0,e}for(Yl(null),ol.length=0,el=0;Wi.length;)Wi.pop()();for(let e=0;e<pl.length;e+=1){const n=pl[e];$d.has(n)||($d.add(n),n())}pl.length=0}while(ol.length);for(;$_.length;)$_.pop()();iu=!1,$d.clear(),Yl(t)}function Bq(t){if(t.fragment!==null){t.update(),so(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(sr)}}function Hq(t){const e=[],n=[];pl.forEach((i=>t.indexOf(i)===-1?e.push(i):n.push(i))),n.forEach((i=>i())),pl=e}let Rl;function Vu(){return Rl||(Rl=Promise.resolve(),Rl.then((()=>{Rl=null}))),Rl}function zs(t,e,n){t.dispatchEvent(W1(`${e?"intro":"outro"}${n}`))}const ic=new Set;let Lr;function ui(){Lr={r:0,c:[],p:Lr}}function pi(){Lr.r||so(Lr.c),Lr=Lr.p}function Ue(t,e){t&&t.i&&(ic.delete(t),t.i(e))}function nt(t,e,n,i){if(t&&t.o){if(ic.has(t))return;ic.add(t),Lr.c.push((()=>{ic.delete(t),i&&(n&&t.d(1),i())})),t.o(e)}else i&&i()}const Lu={duration:0};function Fu(t,e,n){const i={direction:"in"};let o=e(t,n,i),r=!1,s,l,a=0;function c(){s&&wc(t,s)}function d(){const{delay:p=0,duration:_=300,easing:f=Gc,tick:m=me,css:h}=o||Lu;h&&(s=yc(t,0,1,_,p,f,h,a++)),m(0,1);const v=Pu()+p,y=v+_;l&&l.abort(),r=!0,sr((()=>zs(t,!0,"start"))),l=Du((b=>{if(r){if(b>=y)return m(1,0),zs(t,!0,"end"),c(),r=!1;if(b>=v){const w=f((b-v)/_);m(w,1-w)}}return r}))}let u=!1;return{start(){u||(u=!0,wc(t),Fi(o)?(o=o(i),Vu().then(d)):d())},invalidate(){u=!1},end(){r&&(c(),r=!1)}}}function Uq(t,e,n){const i={direction:"out"};let o=e(t,n,i),r=!0,s;const l=Lr;l.r+=1;let a;function c(){const{delay:d=0,duration:u=300,easing:p=Gc,tick:_=me,css:f}=o||Lu;f&&(s=yc(t,1,0,u,d,p,f));const m=Pu()+d,h=m+u;sr((()=>zs(t,!1,"start"))),"inert"in t&&(a=t.inert,t.inert=!0),Du((v=>{if(r){if(v>=h)return _(0,1),zs(t,!1,"end"),--l.r||so(l.c),!1;if(v>=m){const y=p((v-m)/u);_(1-y,y)}}return r}))}return Fi(o)?Vu().then((()=>{o=o(i),c()})):c(),{end(d){d&&"inert"in t&&(t.inert=a),d&&o.tick&&o.tick(1,0),r&&(s&&wc(t,s),r=!1)}}}function k_(t,e,n,i){let o=e(t,n,{direction:"both"}),r=i?0:1,s=null,l=null,a=null,c;function d(){a&&wc(t,a)}function u(_,f){const m=_.b-r;return f*=Math.abs(m),{a:r,b:_.b,d:m,duration:f,start:_.start,end:_.start+f,group:_.group}}function p(_){const{delay:f=0,duration:m=300,easing:h=Gc,tick:v=me,css:y}=o||Lu,b={start:Pu()+f,b:_};_||(b.group=Lr,Lr.r+=1),"inert"in t&&(_?c!==void 0&&(t.inert=c):(c=t.inert,t.inert=!0)),s||l?l=b:(y&&(d(),a=yc(t,r,_,m,f,h,y)),_&&v(0,1),s=u(b,m),sr((()=>zs(t,_,"start"))),Du((w=>{if(l&&w>l.start&&(s=u(l,m),l=null,zs(t,s.b,"start"),y&&(d(),a=yc(t,r,s.b,s.duration,0,h,o.css))),s){if(w>=s.end)v(r=s.b,1-r),zs(t,s.b,"end"),l||(s.b?d():--s.group.r||so(s.group.c)),s=null;else if(w>=s.start){const k=w-s.start;r=s.a+s.d*h(k/s.duration),v(r,1-r)}}return!!(s||l)})))}return{run(_){Fi(o)?Vu().then((()=>{o=o({direction:_?"in":"out"}),p(_)})):p(_)},end(){d(),s=l=null}}}function ci(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function X1(t,e){nt(t,1,1,(()=>{e.delete(t.key)}))}function Z1(t,e,n,i,o,r,s,l,a,c,d,u){let p=t.length,_=r.length,f=p;const m={};for(;f--;)m[t[f].key]=f;const h=[],v=new Map,y=new Map,b=[];for(f=_;f--;){const T=u(o,r,f),j=n(T);let A=s.get(j);A?b.push((()=>A.p(T,e))):(A=c(j,T),A.c()),v.set(j,h[f]=A),j in m&&y.set(j,Math.abs(f-m[j]))}const w=new Set,k=new Set;function E(T){Ue(T,1),T.m(l,d),s.set(T.key,T),d=T.first,_--}for(;p&&_;){const T=h[_-1],j=t[p-1],A=T.key,O=j.key;T===j?(d=T.first,p--,_--):v.has(O)?!s.has(A)||w.has(A)?E(T):k.has(O)?p--:y.get(A)>y.get(O)?(k.add(A),E(T)):(w.add(O),p--):(a(j,s),p--)}for(;p--;){const T=t[p];v.has(T.key)||a(T,s)}for(;_;)E(h[_-1]);return so(b),h}function Pl(t,e){const n={},i={},o={$$scope:1};let r=t.length;for(;r--;){const s=t[r],l=e[r];if(l){for(const a in s)a in l||(i[a]=1);for(const a in l)o[a]||(n[a]=l[a],o[a]=1);t[r]=l}else for(const a in s)o[a]=1}for(const s in i)s in n||(n[s]=void 0);return n}function Qn(t){t&&t.c()}function Zn(t,e,n){const{fragment:i,after_update:o}=t.$$;i&&i.m(e,n),sr((()=>{const r=t.$$.on_mount.map(R1).filter(Fi);t.$$.on_destroy?t.$$.on_destroy.push(...r):so(r),t.$$.on_mount=[]})),o.forEach(sr)}function xn(t,e){const n=t.$$;n.fragment!==null&&(Hq(n.after_update),so(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Jq(t,e){t.$$.dirty[0]===-1&&(ol.push(t),Y1(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function xi(t,e,n,i,o,r,s=null,l=[-1]){const a=na;Yl(t);const c=t.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:g_(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:g_(),dirty:l,skip_bound:!1,root:e.target||a.$$.root};s&&s(c.root);let d=!1;if(c.ctx=n?n(t,e.props||{},((u,p,..._)=>{const f=_.length?_[0]:p;return c.ctx&&o(c.ctx[u],c.ctx[u]=f)&&(!c.skip_bound&&c.bound[u]&&c.bound[u](f),d&&Jq(t,u)),p})):[],c.update(),d=!0,so(c.before_update),c.fragment=i?i(c.ctx):!1,e.target){if(e.hydrate){const u=Vq(e.target);c.fragment&&c.fragment.l(u),u.forEach(it)}else c.fragment&&c.fragment.c();e.intro&&Ue(t.$$.fragment),Zn(t,e.target,e.anchor),G1()}Yl(a)}class Qi{constructor(){Xi(this,"$$"),Xi(this,"$$set")}$destroy(){xn(this,1),this.$destroy=me}$on(e,n){if(!Fi(n))return me;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(e){this.$$set&&!Eq(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Wq="4",tl=[];function Kq(t,e){return{subscribe:Fr(t,e).subscribe}}function Fr(t,e=me){let n;const i=new Set;function o(l){if(zq(t,l)&&(t=l,n)){const a=!tl.length;for(const c of i)c[1](),tl.push(c,t);if(a){for(let c=0;c<tl.length;c+=2)tl[c][0](tl[c+1]);tl.length=0}}}function r(l){o(l(t))}function s(l,a=me){const c=[l,a];return i.add(c),i.size===1&&(n=e(o,r)||me),l(t),()=>{i.delete(c),i.size===0&&n&&(n(),n=null)}}return{set:o,update:r,subscribe:s}}function Ms(t,e,n){const i=!Array.isArray(t),o=i?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return Kq(n,((s,l)=>{let a=!1;const c=[];let d=0,u=me;const p=()=>{if(d)return;u();const f=e(i?c[0]:c,s,l);r?s(f):u=Fi(f)?f:me},_=o.map(((f,m)=>De(f,(h=>{c[m]=h,d&=~(1<<m),a&&p()}),(()=>{d|=1<<m}))));return a=!0,p(),function(){so(_),u(),a=!1}}))}class is{constructor(e,n){Xi(this,"name"),Xi(this,"value"),Xi(this,"store");const i=this.convertValue(n);this.name=e,this.value=i}getName(){return this.name}subscribe(e){return this.store||(this.store=Fr(this.value)),this.store.subscribe(e)}set(e){const n=this.fromString(e);this.setValue(n)}setValue(e){const n=this.convertValue(e);this.value=n,this.store&&this.store.set(n)}getValue(){return this.value}}class x1 extends is{convertValue(e){if(typeof e!="string")throw new Error("Incorrect variable value");return e}fromString(e){return e}getType(){return"string"}}class Q1 extends is{convertValue(e){if(typeof e!="bigint"&&typeof e!="number")throw new Error("Incorrect variable value");try{return bo(e)}catch{throw new Error("Incorrect variable value")}}fromString(e){try{return bo(e)}catch{throw new Error("Incorrect variable value")}}getType(){return"integer"}}class e2 extends is{convertValue(e){if(typeof e!="number"||Number.isNaN(e)||!isFinite(e))throw new Error("Incorrect variable value");return e}fromString(e){const n=Number(e);return this.convertValue(n)}getType(){return"number"}}class t2 extends is{convertValue(e){if(e!==1&&e!==0&&e!==!0&&e!==!1)throw new Error("Incorrect variable value");return Number(e)}fromString(e){if(e==="1"||e==="true")return 1;if(e==="0"||e==="false")return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}}class n2 extends is{convertValue(e){if(typeof e!="string"||!ns(e))throw new Error("Incorrect variable value");return e}fromString(e){return this.convertValue(e)}getType(){return"color"}}class i2 extends is{convertValue(e){if(typeof e!="string")throw new Error("Incorrect variable value");return e}fromString(e){return e}getType(){return"url"}}class o2 extends is{convertValue(e){if(typeof e!="object"||!e)throw new Error("Incorrect variable value");return e}fromString(e){throw new Error("Dict variable does not support setter from string")}getType(){return"dict"}}class r2 extends is{convertValue(e){if(!Array.isArray(e))throw new Error("Incorrect variable value");return e}fromString(e){throw new Error("Array variable does not support setter from string")}getType(){return"array"}}const ou={string:x1,number:e2,integer:Q1,boolean:t2,color:n2,url:i2,dict:o2,array:r2};function Ho(t,e,n){if(!(e in ou))throw new Error("Unsupported variable type");return new ou[e](t,n)}function Yq(){}function Gq(t){return t(this.value),Yq}function j_(){throw new Error("Cannot change the value of this type of variable")}class Xq extends x1{}class Zq extends e2{}class xq extends Q1{}class Qq extends t2{}class eR extends n2{}class tR extends i2{}class nR extends o2{}class iR extends r2{}class oR extends is{convertValue(e){if(!(e instanceof Date))throw new Error("Incorrect variable value");return e}fromString(){throw new Error("Datetime variable does not support setter from string")}getType(){return"datetime"}}const $c={string:Xq,number:Zq,integer:xq,boolean:Qq,color:eR,url:tR,dict:nR,array:iR,datetime:oR};for(const t in $c){const e=$c[t];e.prototype.subscribe=Gq,e.prototype.set=j_,e.prototype.setValue=j_}function ru(t,e,n){if(!(e in $c))throw new Error("Unsupported variable type");return new $c[e](t,n)}function rR(t){return{type:t.getType(),value:t.getValue()}}Tq();function sR(t,e){return{type:$t,value:e.value}}function lR(t,e){return{type:Xt,value:e.value}}function aR(t,e){return No(t,e.value),{type:mt,value:e.value}}function cR(t,e){return{type:Ki,value:e.value?1:0}}function dR(t,e){const n=hc(Io(t,e.argument));switch(e.operator){case"!":if(n.type===Ki)return{type:Ki,value:n.value?0:1};co(`${e.operator}${ao(n)}`,"A Boolean is expected after a unary not.");case"+":case"-":const i=e.operator==="+"?1:-1;if(n.type===mt){const o=n.value*bo(i);return No(t,o),{type:mt,value:o}}else{if(n.type===Xt)return{type:Xt,value:n.value*i};co(`${e.operator}${ao(n)}`,`A Number is expected after a unary ${e.operator==="+"?"plus":"minus"}.`)}}}function uR(t,e){const n=hc(Io(t,e.test));if(n.type===Ki)return n.value?Io(t,e.consequent):Io(t,e.alternate);co(`${ao(n)} ? ${ao(Io(t,e.consequent))} : ${ao(Io(t,e.alternate))}`,"Ternary must be called with a Boolean value as a condition.")}function pR(t,e){try{return Io(t,e.test)}catch{return Io(t,e.alternate)}}function _R(t,e){let n="";if(e.quasis.length===2&&e.quasis[0].value===""&&e.quasis[1].value==="")return Io(t,e.expressions[0]);for(let i=0;i<e.expressions.length;++i)n+=e.quasis[i].value,n+=Us(Io(t,e.expressions[i]));return n+=e.quasis[e.quasis.length-1].value,{type:$t,value:n}}function fR(t,e){const n=hc(Io(t,e.left));if(n.type!==Ki&&co(`${ao(n)} ${e.operator} ...`,`'${e.operator}' must be called with boolean operands.`),e.operator==="||"&&n.value)return n;if(e.operator==="&&"&&!n.value)return{type:Ki,value:0};const i=hc(Io(t,e.right));return i.type!==Ki&&co(`${ao(n)} ${e.operator} ${ao(i)}`,`Operator '${e.operator}' cannot be applied to different types: Boolean and ${Xo(i.type)}.`),{type:Ki,value:i.value}}function mR(t,e,n){let i;return e.type===Ci&&n.type===Ci?i=e.value.getTime()===n.value.getTime():i=e.value===n.value,t==="!="&&(i=!i),{type:Ki,value:i?1:0}}function gR(t,e,n){(e.type!==Xt&&e.type!==mt&&e.type!==Ci||n.type!==Xt&&n.type!==mt&&n.type!==Ci)&&co(`${ao(e)} ${t} ${ao(n)}`,`Operator '${t}' cannot be applied to ${Xo(e.type)} type.`);let i;const o=e.type===Ci?e.value.getTime():e.value,r=n.type===Ci?n.value.getTime():n.value;return t===">"?i=o>r:t===">="?i=o>=r:t==="<"?i=o<r:i=o<=r,{type:Ki,value:i?1:0}}function hR(t,e,n,i){if(n.type!==$t&&n.type!==Xt&&n.type!==mt&&co(`${ao(n)} ${e} ${ao(i)}`,`Operator '${e}' cannot be applied to ${Xo(n.type)} type.`),n.type===$t)return e==="-"&&co(`${ao(n)} - ${ao(i)}`,`Operator '${e}' cannot be applied to ${Xo(n.type)} type.`),{type:$t,value:n.value+i.value};let o=e==="+"?n.value+i.value:n.value-i.value;if(n.type===mt)try{o=Js(t,o),No(t,o)}catch(r){co(`${ao(n)} ${e} ${ao(i)}`,r.message)}return{type:n.type,value:o}}function vR(t,e,n,i){n.type!==mt&&n.type!==Xt&&co(`${ao(n)} ${e} ${ao(i)}`,`Operator '${e}' cannot be applied to ${Xo(n.type)} type.`);let o;if(e==="*")o=n.value*i.value;else if(e==="/"||e==="%")Number(i.value)===0&&co(`${ao(n)} ${e} ${ao(i)}`,"Division by zero is not supported."),e==="/"?o=n.value/i.value:o=n.value%i.value;else throw new Error(`Unsupported operation ${e}`);if(n.type===mt)try{o=Js(t,o),No(t,o)}catch(r){co(`${ao(n)} ${e} ${ao(i)}`,r.message)}return{type:n.type,value:o}}function bR(t,e){const n=e.operator;let i=Io(t,e.left),o=Io(t,e.right);if((i.type==="number"&&o.type==="integer"||i.type==="integer"&&o.type==="number")&&(i.type==="integer"?i=Kd(i):o.type==="integer"&&(o=Kd(o))),i.type!==o.type&&co(`${ao(i)} ${e.operator} ${ao(o)}`,`Operator '${n}' cannot be applied to different types: ${Xo(i.type)} and ${Xo(o.type)}.`),n==="=="||n==="!=")return mR(n,i,o);if(n===">"||n===">="||n==="<"||n==="<=")return gR(n,i,o);if(n==="+"||n==="-")return hR(t,n,i,o);if(n==="/"||n==="*"||n==="%")return vR(t,n,i,o);throw new Error(`Unsupported operation ${n}`)}function kc(t){return t.map(ao).join(", ")}function yR(t,e){const n=e.callee.name;let i,o=e.arguments.map((l=>Io(t,l)));const r=n+":"+o.map((l=>l.type)).join("#");let s;if(t.customFunctions&&(s=Xd(t.customFunctions,n,o)),!s||!("func"in s))if(Yd.has(r))s={func:Yd.get(r),conversions:0};else{const l=Xd(Kl,n,o);("func"in l||!s)&&(s=l)}if(s&&(("expected"in s||"type"in s&&s.type==="missing")&&wR(n,o,s),i=s.func,s.conversions&&(o=D1(i,o))),!i)throw new Error("Function not found");try{return i.cb(t,...o)}catch(l){const a=`${n}(${kc(o)})`;co(a,l.message)}}function wR(t,e,n){const i=e.map((a=>Xo(a.type))).join(", "),o=`${t}(${kc(e)})`,r=Kl.get(t)||[],s=r[0],l=r.length>1;if(n.type==="few"&&e.length===0&&l)co(o,"Function requires non empty argument list.");else if(s&&(n.type==="many"||n.type==="few"||n.type==="mismatch"))if(l)co(o,`Function has no matching overload for given argument types: ${i}.`);else if(n.type==="many"||n.type==="few")s.args.some((a=>typeof a=="object"&&a.isVararg))?co(o,`At least ${s.args.length} argument(s) expected.`):co(o,`Exactly ${s.args.length} argument(s) expected.`);else{const a=s.args.map((c=>Xo(typeof c=="string"?c:c.type))).join(", ");co(o,`Invalid argument type: expected ${a}, got ${i}.`)}else co(o,`Unknown function name: ${t}.`)}function $R(t,e){const n=e.method.name;let i,o=[e.object,...e.arguments].map((s=>Io(t,s)));const r=n+":"+o.map((s=>s.type)).join("#");if(Gd.has(r))i=Gd.get(r);else{const s=Xd(Ha,n,o);if("expected"in s||"type"in s&&s.type==="missing"){const l=o.slice(1).map((c=>Xo(c.type))).join(", "),a=`${n}(${kc(o.slice(1))})`;s.type==="few"&&o.length===1?co(a,"Method requires non empty argument list."):s.type==="many"?co(a,`Method has no matching overload for given argument types: ${l}.`):s.type==="few"||s.type==="mismatch"?co(a,`Method has no matching overload for given argument types: ${l}.`):co(a,`Unknown method name: ${n}.`)}i=s.func,s.conversions&&(o=D1(i,o))}if(!i)throw new Error("Method not found");try{return i.cb(t,...o)}catch(s){const l=`${n}(${kc(o.slice(1))})`;co(l,s.message)}}function kR(t,e){const n=e.id.name,i=t.variables.get(n);if(i)return rR(i);throw new Error(`Variable '${n}' is missing.`)}const S_={StringLiteral:sR,NumberLiteral:lR,IntegerLiteral:aR,BooleanLiteral:cR,UnaryExpression:dR,ConditionalExpression:uR,TryExpression:pR,TemplateLiteral:_R,LogicalExpression:fR,BinaryExpression:bR,CallExpression:yR,MethodExpression:$R,Variable:kR};function Io(t,e){if(e.type in S_)return S_[e.type](t,e);throw new Error("Unsupported expression")}function ia(t,e,n,i,o){try{const r={variables:t,customFunctions:e,warnings:[],store:n,weekStartDay:(o==null?void 0:o.weekStartDay)||0};return{result:Io(r,i),warnings:r.warnings}}catch(r){return{result:{type:"error",value:r.message},warnings:[]}}}typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Wq);const jR="divkit-6d515",SR="divkit-27458",CR="divkit-82db1",TR="divkit-be734",zR="divkit-9a652",ai={root_platform_desktop:jR,root__clickable:SR,"root__clickable-no-transition":"divkit-3bb57",root:CR,"root__any-actions":"divkit-3b9c1",root__selectable:TR,root__unselectable:zR,"root_restrict-scroll":"divkit-0a135","root_disabled-context-menu":"divkit-f5cb3"},vo=Symbol("root"),ER="divkit-bf0ea",AR="divkit-27458",OR="divkit-05991",MR="divkit-80cac",PR="divkit-90c49",IR="divkit-b33bc",DR="divkit-f6ff9",jc={outer:ER,root__clickable:AR,"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:OR,outer_height_content:MR,"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:PR,outer_visibility_invisible:IR,outer_visibility_gone:DR,"outer_has-action-animation":"divkit-4d4f3","outer_has-custom-focus":"divkit-b630e"};function Nn(t){if(!t)return;let e="";for(const n in t)if(t.hasOwnProperty(n)){if(!t[n]&&t[n]!==0)continue;e&&(e+=";"),e+=n+":"+String(t[n])}return e||void 0}function Et(t){if(typeof t!="number"&&typeof t!="string"||!t)return"0";const e=Number(t);return Number.isNaN(e)?"0":Math.ceil(e*1e3)/1e4+"em"}function Jo(t){let e=Et(t);return e==="0"&&(e+="em"),e}function su(t){let e=String(t);return e.indexOf("&")>-1&&(e=e.replace(/&/g,"&")),e.indexOf("<")>-1&&(e=e.replace(/</g,"<")),e.indexOf(">")>-1&&(e=e.replace(/>/g,">")),e.indexOf('"')>-1&&(e=e.replace(/"/g,""")),e}const os=Boolean;function nd(t){if(t.length===1&&t[0].type==="solid")return LR({bg:t[0]});const e=t.map((n=>{if(n.type==="solid")return VR({bg:n});if(n.type==="gradient")return FR({bg:n});if(n.type==="image")return RR({bg:n});if(n.type==="radial_gradient")return qR({bg:n})})).filter(os).reverse().reduce((function(n,i){return n.image.push(i.image),n.size.push(i.size||"auto"),n.position.push(i.pos||"50% 50%"),n}),{image:[],size:[],position:[]});return{image:e.image.join(","),size:e.size.join(","),position:e.position.join(",")}}function VR(t){const e=Ri(t.bg.color||"transparent");return{size:void 0,pos:void 0,image:`linear-gradient(to bottom,${e},${e})`}}function LR(t){return{color:Ri(t.bg.color||"transparent"),size:"auto",position:"50% 50%"}}function FR(t){var e;if(!Array.isArray((e=t.bg)==null?void 0:e.colors))return;const n=t.bg.colors.filter(os);if(n.length)return{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0)+"deg")+","+n.map((i=>Ri(i))).join(",")+")"}}const NR={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function C_(t){if(t&&typeof t=="object"&&"type"in t&&t.value!==void 0){if(t.type==="fixed")return Jo(t.value);if(t.type==="relative")return`${Number(t.value)*100}%`}return"50%"}function qR(t){var e;if(!Array.isArray((e=t.bg)==null?void 0:e.colors))return;const n=t.bg.colors.filter(os);if(!n.length)return;const i=t.bg.radius;let o;i&&typeof i=="object"&&"type"in i&&i.value!==void 0&&(i.type==="fixed"?o=Jo(i.value):i.type==="relative"&&(o=NR[i.value]));const r=C_(t.bg.center_x),s=C_(t.bg.center_y);return{size:void 0,pos:void 0,image:`radial-gradient(circle ${o||"farthest-corner"} at ${r} ${s},`+n.map((l=>Ri(l))).join(",")+")"}}function RR(t){var e;const n=(e=t.bg)==null?void 0:e.image_url;if(n)return{size:s2(t.bg.scale),pos:l2(t.bg),image:'url("'+su(n)+'")'}}function s2(t){return t==="fit"?"contain":t==="stretch"?"fill":t==="no_scale"?"none":"cover"}function l2(t){let e,n;return t.content_alignment_horizontal==="left"?e="0%":t.content_alignment_horizontal==="right"?e="100%":e="50%",t.content_alignment_vertical==="top"?n="0%":t.content_alignment_vertical==="bottom"?n="100%":n="50%",e+" "+n}function uo(t,e){const n=Number(t);return Number.isNaN(n)||n<0?e:n}function T_(t,e,n){return typeof e=="number"&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function BR(t){return t.is_enabled!==0&&t.is_enabled!==!1&&t.index!==void 0}function HR(t,{visibilityActions:e,disappearActions:n,rootCtx:i,componentContext:o}){const r=[];e&&e.forEach((_=>{r.push({type:"visibility",index:r.length,action:_,visible:!1,count:0,finished:!1})})),n&&n.forEach((_=>{r.push({type:"disappear",index:r.length,action:_,visible:!1,count:0,finished:!1})}));const s=r.map(((_,f)=>{const m=_.type==="visibility";return o.getDerivedFromVars({index:f,visibility_percentage:_.action.visibility_percentage,visibility_duration:m?_.action.visibility_duration:_.action.disappear_duration,log_limit:_.action.log_limit,is_enabled:_.action.is_enabled})}));let l;const a=()=>{l&&l.disconnect(),r.forEach((_=>{_.timer&&clearTimeout(_.timer)}))},c=Ms(s,(_=>_));let d;const u=_=>{const f=_.type==="visibility",m=o.getJsonWithVars(_.action);o.execAnyActions([m],{logType:f?"visible":"disappear",node:t,processUrls:!1})},p=c.subscribe((_=>{d=_.filter(BR);const f={};d.forEach((v=>{f[v.index]=v})),a();const m=[...new Set(d.map((v=>{const y=r[v.index].type==="visibility";return T_(y,v.visibility_percentage,y?50:0)/100})))];if(!m.length)return;const h=v=>{v.forEach((y=>{d.forEach((b=>{const w=r[b.index],k=w.type==="visibility",E=T_(k,b.visibility_percentage,k?50:0);let T;E===0?T=y.intersectionRatio>=1e-12:T=y.intersectionRatio>=E/100,(k?!w.visible&&T:w.visible&&!T)?w.finished||(w.timer=setTimeout((()=>{++w.count;const j=b.log_limit===0?1/0:b.log_limit||1;++w.count>=j&&(w.finished=!0),u(w)}),uo(b.visibility_duration,800))):(k?!T:T)&&w.timer&&clearTimeout(w.timer),w.visible=T}))}))};l=new IntersectionObserver(h,{threshold:m}),l.observe(t)}));return{destroy(){d==null||d.forEach((_=>{const f=r[_.index];!f||f.type!=="disappear"||!f.visible||f.finished||i.registerTimeout(window.setTimeout((()=>{u(f)}),_.visibility_duration))})),a(),p()}}}function z_(t,e){e&&t.push(e)}function kn(t,e,n){const i=[];z_(i,e[t]);for(const o in n)if(n.hasOwnProperty(o)){const r=n[o];if(r){const s=`${t}_${o}`+(typeof r=="string"?`_${r}`:"");z_(i,e[s])}}return i.join(" ")}function UR(t,e,n){var i;return(i=e.componentDevtool)==null||i.call(e,{type:"mount",node:t,json:n.json,origJson:n.origJson,templateContext:n.templateContext}),{update(o){var r;(r=e.componentDevtool)==null||r.call(e,{type:"update",node:t,json:o.json,origJson:o.origJson,templateContext:o.templateContext})},destroy(){var o;(o=e.componentDevtool)==null||o.call(e,{type:"destroy",node:t,json:n.json,origJson:n.origJson,templateContext:n.templateContext})}}}const a2=UR,Nu=Symbol("state");function qr(t,e){var n,i;const o=t.top||0,r=((n=e==="ltr"?t.end:t.start)!=null?n:t.right)||0,s=t.bottom||0,l=((i=e==="ltr"?t.start:t.end)!=null?i:t.left)||0;return o===0&&r===0&&s===0&&l===0?"":Et(o)+" "+Et(r)+" "+Et(s)+" "+Et(l)}function id(t){if(typeof t!="number"&&typeof t!="string")return!1;const e=Number(t);return!Number.isNaN(e)}function Wo(t){return id(t)&&t>=0}function oa(t,e,n){var i,o;if(!t)return n;const r=[t.top,(i=e==="ltr"?t.end:t.start)!=null?i:t.right,t.bottom,(o=e==="ltr"?t.start:t.end)!=null?o:t.left];for(let s=0;s<r.length;++s)if(r[s]&&!Wo(r[s]))return n;return qr(t,e)}function JR(t,e){return!Wo(t)||t===void 0||t>1?e:Number(t)}const WR=Object.prototype.hasOwnProperty;function qu(t,e){if(Object.is(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return Object.is(t,e);const n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(let o=0;o<n.length;o++){const r=n[o];if(!WR.call(e,r)||!qu(t[r],e[r]))return!1}return!0}function us(t,e){return qu(t,e)?e:t}function KR(t,e){return t==="visible"||t==="invisible"||t==="gone"?t:e}function c2(t,e){return t==="linear"||t==="ease"||t==="ease_in_out"||t==="ease_in"||t==="ease_out"?t:e}function ll(t,e){const n=Number(t);return Number.isNaN(n)?e:n}function Ru(t){const e=[];return t.name==="set"?(t.items||[]).forEach((n=>{e.push(...Ru(n))})):e.push(t),e}function ya(t,e){if(!t||typeof t!="object")return e;const n=["top","right","bottom","left"];for(let i=0;i<n.length;++i)if(t[n[i]]&&!Wo(t[n[i]]))return e;return t}function YR(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left","start","end"].forEach((i=>{const o=t[i];o&&(n[i]=o);const r=e[i];r&&(n[i]=(n[i]||0)+r)})),n}function GR(t,e){const n=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let i=0;i<n.length;++i)if(n[i]&&!Wo(n[i]))return e;return t}function oc(t,e=0,n=10){return[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]].map((i=>Et((i||e)/n*10))).join(" ")}function XR(t){var e,n,i,o,r,s;return Et(((n=(e=t.offset)==null?void 0:e.x)==null?void 0:n.value)||0)+" "+Et(((o=(i=t.offset)==null?void 0:i.y)==null?void 0:o.value)||0)+" "+Et((r=t.blur)!=null?r:2)+" "+Ri(t.color||"#000000",(s=t.alpha)!=null?s:.19)}function ZR(t,e){var n,i,o,r,s,l;return"drop-shadow("+Ri(t.color||"#000000",(n=t.alpha)!=null?n:.19)+" "+Et((((o=(i=t.offset)==null?void 0:i.x)==null?void 0:o.value)||0)*10/e)+" "+Et((((s=(r=t.offset)==null?void 0:r.y)==null?void 0:s.value)||0)*10/e)+" "+Et(((l=t.blur)!=null?l:2)*10/e)+")"}function Bo(t){return t.is_enabled!==0&&t.is_enabled!==!1}let kd;function od(){return typeof matchMedia>"u"?!1:(kd||(kd=window.matchMedia("(prefers-reduced-motion)")),kd.matches)}const xR=8,QR=(t,e,n,i)=>{let o;return(n||i)&&typeof ResizeObserver<"u"&&(o=new ResizeObserver((async()=>{let r=0;const s={},l=(c,d)=>{if(c){const u=e.getVariable(c,"integer");if(u){if(d=Math.round(d),s[c]||(s[c]=new Set),!s[c].has(d))return u.setValue(d),s[c].add(d),!0}else{const p=new Error("Missing variable");p.level="error",p.additional={variableName:c},e.logError(p)}}return!1},a=()=>{if(!t)return!1;const c=t.getBoundingClientRect(),d=l(n,c.width),u=l(i,c.height);return d||u};for(;a();){if(++r>xR){const c=new Error("Recursive layout in size_provider");c.level="warn",c.additional={widthVariableName:n,heightVariableName:i},e.logError(c);break}await Fo()}})),o.observe(t)),o},Bu=Symbol("enabled");function br(t,e){return t===1||t===0||t===!1||t===!0?!!t:e}const eB="divkit-ee5cc",E_={actionable__button:eB};function tB(){}const Sc=Symbol("action");function lu(t){if(t.startsWith("tel:"))return"tel";const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function au(t,e){return e.has(t)}function nB(t){var e;let n,i,o,r,s;const l=t[26].default,a=Xc(l,t,t[25],null);let c=[{class:i=t[1]+" "+((e=t[0])!=null&&e.length?ai["root_disabled-context-menu"]:"")+" "+(t[11]?ai["root__any-actions"]:"")},{style:t[2]},{role:t[9]},{"aria-checked":t[12]},t[3]],d={};for(let u=0;u<c.length;u+=1)d=Ks(d,c[u]);return{c(){n=Zt("span"),a&&a.c(),$r(n,d)},m(u,p){rt(u,n,p),a&&a.m(n,null),t[38](n),o=!0,r||(s=[ed(t[4].call(null,n)),en(n,"click",t[33]),en(n,"keydown",t[13]),en(n,"focus",t[34]),en(n,"blur",t[35])],r=!0)},p(u,p){var _;a&&a.p&&(!o||p[0]&33554432)&&xc(a,l,u,u[25],o?Zc(l,u[25],p,null):Qc(u[25]),null),$r(n,d=Pl(c,[(!o||p[0]&2051&&i!==(i=u[1]+" "+((_=u[0])!=null&&_.length?ai["root_disabled-context-menu"]:"")+" "+(u[11]?ai["root__any-actions"]:"")))&&{class:i},(!o||p[0]&4)&&{style:u[2]},(!o||p[0]&512)&&{role:u[9]},(!o||p[0]&4096)&&{"aria-checked":u[12]},p[0]&8&&u[3]]))},i(u){o||(Ue(a,u),o=!0)},o(u){nt(a,u),o=!1},d(u){u&&it(n),a&&a.d(u),t[38](null),r=!1,so(s)}}}function iB(t){var e;let n,i,o,r,s;const l=t[26].default,a=Xc(l,t,t[25],null);let c=[{class:i=t[1]+" "+E_.actionable__button+" "+ai["root__any-actions"]+` ${t[5]?ai.root__clickable:ai["root__clickable-no-transition"]} ${ai.root__unselectable} `+((e=t[0])!=null&&e.length?ai["root_disabled-context-menu"]:"")},{style:t[2]},{role:t[9]},{"aria-checked":t[12]},{type:"button"},t[3]],d={};for(let u=0;u<c.length;u+=1)d=Ks(d,c[u]);return{c(){n=Zt("button"),a&&a.c(),$r(n,d)},m(u,p){rt(u,n,p),a&&a.m(n,null),n.autofocus&&n.focus(),t[37](n),o=!0,r||(s=[ed(t[4].call(null,n)),en(n,"click",t[30]),en(n,"keydown",t[13]),en(n,"focus",t[31]),en(n,"blur",t[32])],r=!0)},p(u,p){var _;a&&a.p&&(!o||p[0]&33554432)&&xc(a,l,u,u[25],o?Zc(l,u[25],p,null):Qc(u[25]),null),$r(n,d=Pl(c,[(!o||p[0]&35&&i!==(i=u[1]+" "+E_.actionable__button+" "+ai["root__any-actions"]+` ${u[5]?ai.root__clickable:ai["root__clickable-no-transition"]} ${ai.root__unselectable} `+((_=u[0])!=null&&_.length?ai["root_disabled-context-menu"]:"")))&&{class:i},(!o||p[0]&4)&&{style:u[2]},(!o||p[0]&512)&&{role:u[9]},(!o||p[0]&4096)&&{"aria-checked":u[12]},{type:"button"},p[0]&8&&u[3]]))},i(u){o||(Ue(a,u),o=!0)},o(u){nt(a,u),o=!1},d(u){u&&it(n),a&&a.d(u),t[37](null),r=!1,so(s)}}}function oB(t){var e;let n,i,o,r,s;const l=t[26].default,a=Xc(l,t,t[25],null);let c=[{href:t[7]},{target:t[10]},{style:t[2]},{role:t[9]},{"aria-checked":t[12]},{class:i=t[1]+" "+ai["root__any-actions"]+" "+(t[5]?ai.root__clickable:ai["root__clickable-no-transition"])+" "+((e=t[0])!=null&&e.length?ai["root_disabled-context-menu"]:"")},t[3]],d={};for(let u=0;u<c.length;u+=1)d=Ks(d,c[u]);return{c(){n=Zt("a"),a&&a.c(),$r(n,d)},m(u,p){rt(u,n,p),a&&a.m(n,null),t[36](n),o=!0,r||(s=[ed(t[4].call(null,n)),en(n,"click",t[27]),en(n,"keydown",t[13]),en(n,"focus",t[28]),en(n,"blur",t[29])],r=!0)},p(u,p){var _;a&&a.p&&(!o||p[0]&33554432)&&xc(a,l,u,u[25],o?Zc(l,u[25],p,null):Qc(u[25]),null),$r(n,d=Pl(c,[(!o||p[0]&128)&&{href:u[7]},(!o||p[0]&1024)&&{target:u[10]},(!o||p[0]&4)&&{style:u[2]},(!o||p[0]&512)&&{role:u[9]},(!o||p[0]&4096)&&{"aria-checked":u[12]},(!o||p[0]&35&&i!==(i=u[1]+" "+ai["root__any-actions"]+" "+(u[5]?ai.root__clickable:ai["root__clickable-no-transition"])+" "+((_=u[0])!=null&&_.length?ai["root_disabled-context-menu"]:"")))&&{class:i},p[0]&8&&u[3]]))},i(u){o||(Ue(a,u),o=!0)},o(u){nt(a,u),o=!1},d(u){u&&it(n),a&&a.d(u),t[36](null),r=!1,so(s)}}}function rB(t){let e,n,i,o;const r=[oB,iB,nB],s=[];function l(a,c){return a[7]?0:a[8]?1:2}return e=l(t),n=s[e]=r[e](t),{c(){n.c(),i=si()},m(a,c){s[e].m(a,c),rt(a,i,c),o=!0},p(a,c){let d=e;e=l(a),e===d?s[e].p(a,c):(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi(),n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i))},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&it(i),s[e].d(a)}}}const A_=8,O_=400,jd=400,sB=new Set(["button","image","checkbox","radio"]);function lB(t,e,n){let{$$slots:i={},$$scope:o}=e,{componentContext:r}=e,{id:s=""}=e,{actions:l=void 0}=e,{doubleTapActions:a=void 0}=e,{longTapActions:c=void 0}=e,{pressStartActions:d=void 0}=e,{pressEndActions:u=void 0}=e,{hoverStartActions:p=void 0}=e,{hoverEndActions:_=void 0}=e,{cls:f=""}=e,{style:m=null}=e,{attrs:h=void 0}=e,{use:v=tB}=e,{customAction:y=null}=e,{isNativeActionAnimation:b=!0}=e,{hasInnerFocusable:w=!1}=e,{customAccessibility:k=void 0}=e;const E=ro(vo),T=ro(Sc);Ss(Sc,{hasAction(){return!!(T.hasAction()||l!=null&&l.length)}});let j,A="",O,M=-1,D=-1,R=null,U=!1,B=!1,C=!1,q,V,Y,x;function de(){return(l==null?void 0:l.some((pe=>{if(pe!=null&&pe.typed)return!0;const kt=pe==null?void 0:pe.url;if(!kt)return!1;const $e=lu(kt);return $e&&!au($e,E.getBuiltinProtocols())})))||!1}async function _e(pe,kt){l&&(pe&&de()&&pe.preventDefault(),r.execAnyActions(l,{node:j,processUrls:kt}))}async function G(pe){if(T.hasAction()||pe.button!==void 0&&pe.button!==0)return;const kt=Date.now();if(M>0&&kt>M+O_){pe.preventDefault();return}if(a!=null&&a.length&&D>0&&kt-D<jd){pe.preventDefault(),r.execAnyActions(a,{processUrls:!0,node:j}),D=-1;return}if(D=kt,a!=null&&a.length&&M>0&&kt<M+jd){pe.preventDefault(),clearTimeout(V),V=window.setTimeout((()=>{_e(void 0,!0)}),jd);return}(y==null?void 0:y(pe))===!1?pe.preventDefault():_e(pe,!1)}function Q(pe){T.hasAction()||(R={x:pe.clientX,y:pe.clientY},U=!1,M=Date.now(),q&&clearTimeout(q),clearTimeout(V),r.execAnyActions(d,{node:j}))}function oe(pe){R&&(Math.abs(R.x-pe.clientX)>A_||Math.abs(R.y-pe.clientY)>A_)&&(U=!0)}function he(pe){T.hasAction()||!R||M<0||(!U&&Date.now()-M>=O_&&(pe.stopImmediatePropagation(),r.execAnyActions(c,{processUrls:!0,node:j})),q&&clearTimeout(q),q=window.setTimeout((()=>{R=null,M=-1}),100),r.execAnyActions(u,{node:j}))}function ze(){T.hasAction()||r.execAnyActions(p,{node:j})}function W(){T.hasAction()||r.execAnyActions(_,{node:j})}function Ke(pe){const kt=pe.target;kt instanceof HTMLElement&&(kt.tagName==="INPUT"||kt.contentEditable==="true")||pe.ctrlKey||pe.metaKey||pe.altKey||pe.shiftKey||pe.key==="Enter"&&Array.isArray(l)&&l.length&&(r.execAnyActions(l),pe.preventDefault())}Sr((()=>{s&&!w&&E.registerFocusable(s,{focus(){j&&(A||B)&&j.focus()}})})),jo((()=>{typeof window<"u"&&(window.removeEventListener("pointermove",oe),window.removeEventListener("pointerup",he),window.removeEventListener("pointercancel",he)),s&&!w&&E.unregisterFocusable(s),q&&clearTimeout(q),V&&clearTimeout(V)}));function at(pe){Zr.call(this,t,pe)}function Te(pe){Zr.call(this,t,pe)}function ot(pe){Zr.call(this,t,pe)}function J(pe){Zr.call(this,t,pe)}function ue(pe){Zr.call(this,t,pe)}function fe(pe){Zr.call(this,t,pe)}function Qe(pe){Zr.call(this,t,pe)}function ye(pe){Zr.call(this,t,pe)}function Ee(pe){Zr.call(this,t,pe)}function Ye(pe){Wi[pe?"unshift":"push"]((()=>{j=pe,n(6,j)}))}function vt(pe){Wi[pe?"unshift":"push"]((()=>{j=pe,n(6,j)}))}function ne(pe){Wi[pe?"unshift":"push"]((()=>{j=pe,n(6,j)}))}return t.$$set=pe=>{"componentContext"in pe&&n(14,r=pe.componentContext),"id"in pe&&n(15,s=pe.id),"actions"in pe&&n(16,l=pe.actions),"doubleTapActions"in pe&&n(17,a=pe.doubleTapActions),"longTapActions"in pe&&n(0,c=pe.longTapActions),"pressStartActions"in pe&&n(18,d=pe.pressStartActions),"pressEndActions"in pe&&n(19,u=pe.pressEndActions),"hoverStartActions"in pe&&n(20,p=pe.hoverStartActions),"hoverEndActions"in pe&&n(21,_=pe.hoverEndActions),"cls"in pe&&n(1,f=pe.cls),"style"in pe&&n(2,m=pe.style),"attrs"in pe&&n(3,h=pe.attrs),"use"in pe&&n(4,v=pe.use),"customAction"in pe&&n(22,y=pe.customAction),"isNativeActionAnimation"in pe&&n(5,b=pe.isNativeActionAnimation),"hasInnerFocusable"in pe&&n(23,w=pe.hasInnerFocusable),"customAccessibility"in pe&&n(24,k=pe.customAccessibility),"$$scope"in pe&&n(25,o=pe.$$scope)},t.$$.update=()=>{if(t.$$.dirty[0]&4276352){if(Array.isArray(l)&&l!=null&&l.length)for(let pe=0;pe<l.length;++pe){const kt=l[pe].url;if(kt){n(7,A=kt),n(10,O=l[pe].target||void 0);break}}Array.isArray(l)&&l!=null&&l.length&&T.hasAction()&&(n(7,A=""),r.logError(tt(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:l}}))),n(8,B=!!y),A&&!au(lu(A),E.getBuiltinProtocols())?(n(7,A=""),n(8,B=!0)):!A&&Array.isArray(l)&&l!=null&&l.length&&(n(8,B=!0),l.some((pe=>pe.url||pe.typed||pe.menu_items))||r.logError(tt(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:l}})))}t.$$.dirty[0]&16778112&&(k!=null&&k.type&&sB.has(k.type)?n(9,Y=k.type):A?n(9,Y=void 0):B&&n(9,Y="button"),(Y==="checkbox"||Y==="radio")&&typeof(k==null?void 0:k.is_checked)=="boolean"?n(12,x=k.is_checked):n(12,x=void 0)),t.$$.dirty[0]&4063681&&j&&(A||B||a!=null&&a.length?j.addEventListener("click",G):j.removeEventListener("click",G),a!=null&&a.length||c!=null&&c.length||d!=null&&d.length||u!=null&&u.length?(j.addEventListener("pointerdown",Q,{passive:!0}),window.addEventListener("pointermove",oe,{passive:!0}),window.addEventListener("pointerup",he,{passive:!0}),window.addEventListener("pointercancel",he,{passive:!0})):(j.removeEventListener("pointerdown",Q),window.removeEventListener("pointerup",he),window.removeEventListener("pointermove",oe),window.removeEventListener("pointercancel",he)),p!=null&&p.length?j.addEventListener("pointerenter",ze):j.removeEventListener("pointerenter",ze),_!=null&&_.length?j.addEventListener("pointerleave",W):j.removeEventListener("pointerleave",W),n(11,C=!!(A||B||a!=null&&a.length||c!=null&&c.length||d!=null&&d.length||u!=null&&u.length||p!=null&&p.length||_!=null&&_.length)))},[c,f,m,h,v,b,j,A,B,Y,O,C,x,Ke,r,s,l,a,d,u,p,_,y,w,k,o,i,at,Te,ot,J,ue,fe,Qe,ye,Ee,Ye,vt,ne]}class rd extends Qi{constructor(e){super(),xi(this,e,lB,rB,Pi,{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 Cs={"outer-background":"divkit-7b038","outer-background_clip":"divkit-8fdbd","outer-background__item":"divkit-f9881","outer-background__item_hidden":"divkit-ea047"};function Zo(t){return id(t)&&t>0}function d2(t,e){return t.map((n=>{if(!n){e(tt(new Error("Incorrect filter"),{level:"warn"}));return}if(n.type==="blur"){if(Zo(n.radius))return`blur(${Jo(n.radius/2)})`}else{if(n.type==="rtl_mirror")return;e(tt(new Error("Unknown filter"),{level:"warn",additional:{filter:n.type}}))}})).filter(Boolean).join(" ")}function M_(t,e,n){const i=t.slice();return i[6]=e[n],i}function aB(t){let e,n;return{c(){e=Zt("span"),K(e,"class",Cs["outer-background__item"]),K(e,"style",n=Nn(t[6].style))},m(i,o){rt(i,e,o)},p(i,o){o&2&&n!==(n=Nn(i[6].style))&&K(e,"style",n)},d(i){i&&it(e)}}}function cB(t){let e,n,i,o,r;return{c(){e=Zt("img"),rr(e.src,n=t[6].image_url)||K(e,"src",n),K(e,"alt",""),K(e,"aria-hidden","true"),K(e,"loading","lazy"),K(e,"decoding","async"),K(e,"class",Cs["outer-background__item"]),K(e,"style",i=Nn(t[6].style))},m(s,l){rt(s,e,l),o||(r=en(e,"error",t[2]),o=!0)},p(s,l){l&2&&!rr(e.src,n=s[6].image_url)&&K(e,"src",n),l&2&&i!==(i=Nn(s[6].style))&&K(e,"style",i)},d(s){s&&it(e),o=!1,r()}}}function P_(t){let e;function n(r,s){return r[6].image_url?cB:aB}let i=n(t),o=i(t);return{c(){o.c(),e=si()},m(r,s){o.m(r,s),rt(r,e,s)},p(r,s){i===(i=n(r))&&o?o.p(r,s):(o.d(1),o=i(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&it(e),o.d(r)}}}function dB(t){let e,n,i=ci(t[1]),o=[];for(let r=0;r<i.length;r+=1)o[r]=P_(M_(t,i,r));return{c(){e=Zt("span");for(let r=0;r<o.length;r+=1)o[r].c();K(e,"class",n=Cs["outer-background"]+(t[0]?" "+Cs["outer-background_clip"]:"")),He(e,"border-radius",t[0])},m(r,s){rt(r,e,s);for(let l=0;l<o.length;l+=1)o[l]&&o[l].m(e,null)},p(r,[s]){if(s&6){i=ci(r[1]);let l;for(l=0;l<i.length;l+=1){const a=M_(r,i,l);o[l]?o[l].p(a,s):(o[l]=P_(a),o[l].c(),o[l].m(e,null))}for(;l<o.length;l+=1)o[l].d(1);o.length=i.length}s&1&&n!==(n=Cs["outer-background"]+(r[0]?" "+Cs["outer-background_clip"]:""))&&K(e,"class",n),s&1&&He(e,"border-radius",r[0])},i:me,o:me,d(r){r&&it(e),Co(o,r)}}}function uB(t,e,n){let i,{direction:o}=e,{componentContext:r}=e,{background:s=[]}=e,{radius:l=""}=e;function a(c){c.target&&"classList"in c.target&&c.target.classList.add(Cs["outer-background__item_hidden"])}return t.$$set=c=>{"direction"in c&&n(3,o=c.direction),"componentContext"in c&&n(4,r=c.componentContext),"background"in c&&n(5,s=c.background),"radius"in c&&n(0,l=c.radius)},t.$$.update=()=>{t.$$.dirty&56&&n(1,i=s.map((c=>{const d={},u={style:d};if(c.type==="nine_patch_image"&&c.insets)d["border-image"]=`url("${c.image_url}") ${c.insets.top||0} ${c.insets.right||0} ${c.insets.bottom||0} ${c.insets.left||0} fill`,d["border-image-width"]="auto";else{const p=nd([c]);c.type==="solid"&&(d["background-color"]=p.color),c.type==="gradient"&&(d["background-image"]=p.image),c.type==="image"&&(d.opacity=Number(c.alpha),u.image_url=c.image_url,d["object-fit"]=p.size,d["object-position"]=p.position,Array.isArray(c.filters)&&c.filters.length&&(d.filter=d2(c.filters,r.logError),o==="rtl"&&c.filters.some((_=>_.type==="rtl_mirror"))&&(d.transform="scale(-1,1)")))}return u})))},[l,i,a,o,r,s]}class pB extends Qi{constructor(e){super(),xi(this,e,uB,dB,Pi,{direction:3,componentContext:4,background:5,radius:0})}}const _B=t=>({hasCustomFocus:t[0]&4096}),I_=t=>({focusHandler:t[49],blurHandler:t[50],hasCustomFocus:t[12]});function D_(t){let e,n;return e=new rd({props:{componentContext:t[0],id:t[0].json.id,use:t[48],cls:t[1]+" "+kn("outer",jc,t[23]),style:Nn(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||F_(t[11]),customAccessibility:t[13],$$slots:{default:[fB]},$$scope:{ctx:t}}}),e.$on("focus",t[49]),e.$on("blur",t[50]),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),o[0]&1&&(r.id=i[0].json.id),o[0]&8388610&&(r.cls=i[1]+" "+kn("outer",jc,i[23])),o[0]&4194304&&(r.style=Nn(i[22])),o[0]&524288&&(r.actions=i[19]),o[0]&1048576&&(r.doubleTapActions=i[20]),o[0]&2097152&&(r.longTapActions=i[21]),o[0]&128&&(r.pressStartActions=i[7]),o[0]&256&&(r.pressEndActions=i[8]),o[0]&512&&(r.hoverStartActions=i[9]),o[0]&1024&&(r.hoverEndActions=i[10]),o[0]&32768&&(r.attrs=i[15]),o[0]&4&&(r.hasInnerFocusable=i[2]),o[0]&2048&&(r.isNativeActionAnimation=!i[11].length||F_(i[11])),o[0]&8192&&(r.customAccessibility=i[13]),o[0]&86137|o[4]&1024&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function V_(t){let e,n;return e=new pB({props:{componentContext:t[0],direction:t[14],background:t[5],radius:t[4]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),o[0]&16384&&(r.direction=i[14]),o[0]&32&&(r.background=i[5]),o[0]&16&&(r.radius=i[4]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function L_(t){let e,n;return{c(){e=Zt("span"),K(e,"class",jc.outer__border),K(e,"style",n=Nn(t[3]))},m(i,o){rt(i,e,o)},p(i,o){o[0]&8&&n!==(n=Nn(i[3]))&&K(e,"style",n)},d(i){i&&it(e)}}}function fB(t){let e,n,i,o=t[6]&&V_(t);const r=t[133].default,s=Xc(r,t,t[134],I_);let l=t[16]&&L_(t);return{c(){o&&o.c(),e=si(),s&&s.c(),l&&l.c(),n=si()},m(a,c){o&&o.m(a,c),rt(a,e,c),s&&s.m(a,c),l&&l.m(a,c),rt(a,n,c),i=!0},p(a,c){a[6]?o?(o.p(a,c),c[0]&64&&Ue(o,1)):(o=V_(a),o.c(),Ue(o,1),o.m(e.parentNode,e)):o&&(ui(),nt(o,1,1,(()=>{o=null})),pi()),s&&s.p&&(!i||c[0]&4096|c[4]&1024)&&xc(s,r,a,a[134],i?Zc(r,a[134],c,_B):Qc(a[134]),I_),a[16]?l?l.p(a,c):(l=L_(a),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(a){i||(Ue(o),Ue(s,a),i=!0)},o(a){nt(o),nt(s,a),i=!1},d(a){a&&(it(e),it(n)),o&&o.d(a),s&&s.d(a),l&&l.d(a)}}}function mB(t){let e,n,i=!t[17]&&!t[18]&&D_(t);return{c(){i&&i.c(),e=si()},m(o,r){i&&i.m(o,r),rt(o,e,r),n=!0},p(o,r){!o[17]&&!o[18]?i?(i.p(o,r),r[0]&393216&&Ue(i,1)):(i=D_(o),i.c(),Ue(i,1),i.m(e.parentNode,e)):i&&(ui(),nt(i,1,1,(()=>{i=null})),pi())},i(o){n||(Ue(i),n=!0)},o(o){nt(i),n=!1},d(o){o&&it(e),i&&i.d(o)}}}const gB={left:"start",center:"center",right:"end",start:"start",end:"end"},hB={left:"end",center:"center",right:"start",start:"start",end:"end"},vB={top:"start",center:"center",bottom:"end",baseline:"baseline"};function F_(t){return t.some((e=>e.name==="native"))}function bB(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,h,v,y,b,w,k,E,T,j,A,O,M,D,R,U,B,C,q=me,V=()=>(q(),q=De(A,(yt=>n(111,C=yt))),A),Y,x=me,de=()=>(x(),x=De(j,(yt=>n(112,Y=yt))),j),_e,G=me,Q=()=>(G(),G=De(T,(yt=>n(113,_e=yt))),T),oe,he=me,ze=()=>(he(),he=De(E,(yt=>n(114,oe=yt))),E),W,Ke=me,at=()=>(Ke(),Ke=De(k,(yt=>n(115,W=yt))),k),Te,ot=me,J=()=>(ot(),ot=De(w,(yt=>n(116,Te=yt))),w),ue,fe=me,Qe=()=>(fe(),fe=De(b,(yt=>n(117,ue=yt))),b),ye,Ee=me,Ye=()=>(Ee(),Ee=De(o,(yt=>n(118,ye=yt))),o),vt,ne=me,pe=()=>(ne(),ne=De(y,(yt=>n(119,vt=yt))),y),kt,$e=me,et=()=>($e(),$e=De(v,(yt=>n(120,kt=yt))),v),le,Ve=me,Xe=()=>(Ve(),Ve=De(m,(yt=>n(121,le=yt))),m),xe,jt=me,Vt=()=>(jt(),jt=De(h,(yt=>n(122,xe=yt))),h),ln,sn=me,At=()=>(sn(),sn=De(f,(yt=>n(123,ln=yt))),f),pn,dn=me,Rn=()=>(dn(),dn=De(_,(yt=>n(13,pn=yt))),_),Ln,qe=me,st=()=>(qe(),qe=De(p,(yt=>n(124,Ln=yt))),p),li,bt=me,Cn=()=>(bt(),bt=De(u,(yt=>n(125,li=yt))),u),Ut,gn=me,Lt=()=>(gn(),gn=De(d,(yt=>n(126,Ut=yt))),d),wn,vn=me,Jt=()=>(vn(),vn=De(l,(yt=>n(127,wn=yt))),l),Kt,Un,Kn=me,fi=()=>(Kn(),Kn=De(c,(yt=>n(128,Un=yt))),c),Je,ht=me,ct=()=>(ht(),ht=De(a,(yt=>n(129,Je=yt))),a),gt,qt=me,St=()=>(qt(),qt=De(s,(yt=>n(130,gt=yt))),s),Ot,nn=me,ei=()=>(nn(),nn=De(r,(yt=>n(131,Ot=yt))),r),Ft;t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>he())),t.$$.on_destroy.push((()=>Ke())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>fe())),t.$$.on_destroy.push((()=>Ee())),t.$$.on_destroy.push((()=>ne())),t.$$.on_destroy.push((()=>$e())),t.$$.on_destroy.push((()=>Ve())),t.$$.on_destroy.push((()=>jt())),t.$$.on_destroy.push((()=>sn())),t.$$.on_destroy.push((()=>dn())),t.$$.on_destroy.push((()=>qe())),t.$$.on_destroy.push((()=>bt())),t.$$.on_destroy.push((()=>gn())),t.$$.on_destroy.push((()=>vn())),t.$$.on_destroy.push((()=>Kn())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>qt())),t.$$.on_destroy.push((()=>nn()));let{$$slots:xt={},$$scope:dt}=e,{componentContext:We}=e,{cls:bi=""}=e,{style:hi=void 0}=e,{layoutParams:Bn={}}=e,{customDescription:eo=!1}=e,{customPaddings:Ct=!1}=e,{customActions:Wn=""}=e,{additionalPaddings:gi=null}=e,{heightByAspect:rn=!1}=e,{parentOf:Fn=void 0}=e,{parentOfSimpleMode:Bt=void 0}=e,{replaceItems:hn=void 0}=e,{hasInnerFocusable:un=!1}=e;const Tn=ro(vo),Yn=ro(Nu),{isEnabled:Se}=ro(Bu);ko(t,Se,(yt=>n(132,Ft=yt)));const bn=Tn.direction;ko(t,bn,(yt=>n(14,Kt=yt)));let ft,z,Mt=null,zn=[],Ni={},mi={},Fe=!1,Ii=1,re="transparent",Ce=0,P={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},Z="",ce=null,be="",ge={},Be,se,ve,Ae=0,Re=0,ut=0,Ge=!1,Tt=!1,fn={},Ht,On,Qt,Mn=0,_n=0,Pt=0,jn=!1,Pn=!1,In=1,Jn,ri,yi,yo,Oi=[],Yi=!1,Ei=!1,cn,vi,Wt,L=[],ie=[],we=[],ae=[],Ne=[],Le=[],zt=[],Nt=[],En=[],yn=[],wi="",Ao,_t,ti,$i,To=!1,Di="visible",Qo=0,Oo=0,zr,$s,Er,Ti=!1,io,Mo,Ar,rs=null;function Vl(){n(68,ce=null),n(69,be=""),n(86,In=1),n(98,To=!1),n(99,Di="visible"),n(100,Qo=0),n(101,Oo=0),n(102,zr=void 0),n(103,$s=void 0),Oi=We.fakeElement?[]:We.json.transition_triggers||["state_change","visibility_change"],n(89,Yi=!!(Oi.indexOf("state_change")!==-1&&We.id)),Ei=Oi.indexOf("visibility_change")!==-1,ft&&Xs(ft),Mo==null||Mo(),Ft&&n(105,Mo=Tn.processVariableTriggers(We,We.json.variable_triggers))}function _d(yt,Vi){if(!Array.isArray(Fn)||!hn||Bt&&(Array.isArray(Vi)&&Vi.length||0)!==1)return;const ji=Fn.findIndex((oo=>(oo==null?void 0:oo.id)===yt)),lo=Fn.slice();lo.splice(ji,1,...(Vi||[]).map((oo=>({json:oo,id:oo==null?void 0:oo.id})))),n(51,Fn=lo),hn(lo.map((oo=>oo==null?void 0:oo.json)))}function fd(yt){const Vi=ll(yt.start_value,1),ji=ll(yt.end_value,1),lo=uo(yt.start_delay,0),oo=od()?0:uo(yt.duration,300),wo=c2(yt.interpolator,"ease_in_out").replace(/_/g,"-");switch(yt.name){case"fade":return n(94,Ao=Vi),n(95,_t=ji),`opacity ${oo}ms ${wo} ${lo}ms`;case"scale":return n(96,ti=Vi),n(97,$i=ji),`transform ${oo}ms ${wo} ${lo}ms`;case"native":case"no_animation":return"";default:return We.logError(tt(new Error("Unknown action_animation name"),{additional:{animation:yt.name}})),""}}async function md(yt){n(99,Di=yt);const Vi=yt==="visible"?"in":"out",ji=Vi==="in"?We.json.transition_in:We.json.transition_out;if(Ei&&ji){let lo;yt==="gone"&&(lo=ft.getBoundingClientRect()),await Fo(),Vi==="in"&&n(91,vi=!0),Yn.runVisibilityTransition({...We.json,visibility:"visible"},We,ji,ft,Vi,lo).then((()=>{Vi==="in"&&n(91,vi=!1)})).catch((oo=>{throw Vi==="in"&&n(91,vi=!1),oo}))}}function ka(){if(Mt&&ft){const yt=Tn.getExtensionContext(We);Mt.forEach((Vi=>{var ji;(ji=Vi.unmountView)==null||ji.call(Vi,ft,yt)})),Mt=null}}function Wr(){if(Mt!=null&&Mt.length){const yt=Tn.getExtensionContext(We);Mt.forEach((Vi=>{var ji;(ji=Vi.updateView)==null||ji.call(Vi,ft,yt)}))}rs&&rs.update(We)}function Xs(yt){var Vi,ji,lo;Ar==null||Ar.destroy(),n(61,ft=yt),Yi&&We.json.transition_in&&Yn.registerChildWithTransitionIn(We.json,We,We.json.transition_in,yt).then((()=>{n(90,cn=!1)})).catch((qi=>{throw n(90,cn=!1),qi})),Yi&&We.json.transition_out&&Yn.registerChildWithTransitionOut(We.json,We,We.json.transition_out,yt),We.fakeElement||Yn.registerChildWithTransitionChange(We.json,We,We.json.transition_change,yt).then((()=>{n(92,Wt=!1)})).catch((qi=>{throw n(92,Wt=!1),qi}));const oo=We.fakeElement?[]:We.json.visibility_actions||We.json.visibility_action&&[We.json.visibility_action],wo=We.fakeElement?[]:We.json.disappear_actions;let Sn;(Array.isArray(oo)&&oo.length||Array.isArray(wo)&&wo.length)&&(Sn=HR(yt,{visibilityActions:oo,disappearActions:wo,rootCtx:Tn,componentContext:We}));const ki=We.id;return ki&&(Tn.registerId(ki,(()=>ft)),Yn.registerChild(ki)),(Vi=We.json.tooltips)==null||Vi.forEach((qi=>{Tn.registerTooltip(yt,qi)})),Er&&(Er.disconnect(),Er=void 0),Er=QR(ft,We,(ji=We.json.layout_provider)==null?void 0:ji.width_variable_name,(lo=We.json.layout_provider)==null?void 0:lo.height_variable_name),We.fakeElement||(rs=a2(yt,Tn,We)),Ar={destroy(){ki&&(Tn.unregisterId(ki),Yn.unregisterChild(ki)),Sn&&Sn.destroy(),rs&&rs.destroy()}},Ar}function Kr(){We.json.focus&&(Aq(Tn.isPointerFocus)||n(12,Ti=!0),We.execAnyActions(ae))}function Ll(){We.json.focus&&(n(12,Ti=!1),We.execAnyActions(Ne))}return td(Wr),jo((()=>{var yt;zn.forEach((Vi=>{Tn.unregisterParentOf(Vi)})),n(62,zn=[]),Er&&(Er.disconnect(),Er=void 0),(yt=We.json.tooltips)==null||yt.forEach((Vi=>{Tn.unregisterTooltip(Vi)})),Mo==null||Mo(),ka()})),t.$$set=yt=>{"componentContext"in yt&&n(0,We=yt.componentContext),"cls"in yt&&n(1,bi=yt.cls),"style"in yt&&n(52,hi=yt.style),"layoutParams"in yt&&n(53,Bn=yt.layoutParams),"customDescription"in yt&&n(54,eo=yt.customDescription),"customPaddings"in yt&&n(55,Ct=yt.customPaddings),"customActions"in yt&&n(56,Wn=yt.customActions),"additionalPaddings"in yt&&n(57,gi=yt.additionalPaddings),"heightByAspect"in yt&&n(58,rn=yt.heightByAspect),"parentOf"in yt&&n(51,Fn=yt.parentOf),"parentOfSimpleMode"in yt&&n(59,Bt=yt.parentOfSimpleMode),"replaceItems"in yt&&n(60,hn=yt.replaceItems),"hasInnerFocusable"in yt&&n(2,un=yt.hasInnerFocusable),"$$scope"in yt&&n(134,dt=yt.$$scope)},t.$$.update=()=>{var yt,Vi,ji,lo,oo,wo;if(t.$$.dirty[0]&1&&n(110,i=We.origJson),t.$$.dirty[3]&131072&&i&&Vl(),t.$$.dirty[0]&1|t.$$.dirty[3]&4096|t.$$.dirty[4]&256&&(Ft?(Mo==null||Mo(),n(105,Mo=Tn.processVariableTriggers(We,We.json.variable_triggers))):Mo==null||Mo()),t.$$.dirty[0]&1&&Ye(n(45,o=We.getDerivedFromVars(We.json.focus))),t.$$.dirty[0]&1&&ei(n(44,r=We.getDerivedFromVars(We.json.border))),t.$$.dirty[0]&1&&St(n(43,s=We.getDerivedFromVars(We.json.paddings))),t.$$.dirty[0]&1&&Jt(n(42,l=We.getDerivedFromVars(We.json.margins))),t.$$.dirty[0]&1&&ct(n(41,a=We.getDerivedFromVars(We.json.width))),t.$$.dirty[0]&1&&fi(n(40,c=We.getDerivedFromVars(We.json.alignment_horizontal))),t.$$.dirty[0]&1&&Lt(n(39,d=We.getDerivedFromVars(We.json.height))),t.$$.dirty[0]&1&&Cn(n(38,u=We.getDerivedFromVars(We.json.alignment_vertical))),t.$$.dirty[0]&1&&st(n(37,p=We.getDerivedFromVars(We.json.alpha))),t.$$.dirty[0]&1&&Rn(n(36,_=We.getDerivedFromVars(We.json.accessibility))),t.$$.dirty[0]&1&&At(n(35,f=We.getDerivedFromVars(We.json.background))),t.$$.dirty[0]&1&&Xe(n(34,m=We.getDerivedFromVars(We.json.action))),t.$$.dirty[0]&1&&Vt(n(33,h=We.getDerivedFromVars(We.json.actions))),t.$$.dirty[0]&1&&et(n(32,v=We.getDerivedFromVars(We.json.doubletap_actions))),t.$$.dirty[0]&1&&pe(n(31,y=We.getDerivedFromVars(We.json.longtap_actions))),t.$$.dirty[0]&1&&Qe(n(30,b=We.getDerivedFromVars(We.json.press_start_actions))),t.$$.dirty[0]&1&&J(n(29,w=We.getDerivedFromVars(We.json.press_end_actions))),t.$$.dirty[0]&1&&at(n(28,k=We.getDerivedFromVars(We.json.hover_start_actions))),t.$$.dirty[0]&1&&ze(n(27,E=We.getDerivedFromVars(We.json.hover_end_actions))),t.$$.dirty[0]&1&&Q(n(26,T=We.getDerivedFromVars(We.json.action_animation))),t.$$.dirty[0]&1&&de(n(25,j=We.getDerivedFromVars(We.json.visibility))),t.$$.dirty[0]&1&&V(n(24,A=We.getDerivedFromVars(We.json.transform))),t.$$.dirty[1]&269484032|t.$$.dirty[2]&1&&(zn.forEach((Sn=>{Tn.unregisterParentOf(Sn)})),n(62,zn=[]),Fn&&Fn.forEach((Sn=>{Sn!=null&&Sn.id&&(zn.push(Sn.id),Tn.registerParentOf(Sn.id,{replaceWith:_d,isSingleMode:!!Bt}))}))),t.$$.dirty[0]&4104|t.$$.dirty[2]&62|t.$$.dirty[3]&33554432|t.$$.dirty[4]&128){const Sn=Ti&&ye!=null&&ye.border?ye.border:Ot;let ki={},qi={},zo=!1,_o="";if(Sn){if(br(Sn.has_shadow,!1)){const fo=Sn.shadow;fo?ki["box-shadow"]=XR(fo):ki["box-shadow"]="0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(Sn.stroke&&(zo=!0,n(64,Ii=uo(Sn.stroke.width,Ii)),n(65,re=Ri(Sn.stroke.color,1,re)),qi["--divkit-border"]=`${Et(Ii+1)} solid ${re}`),Sn.corners_radius&&typeof Sn.corners_radius=="object"){n(67,P=GR(Sn.corners_radius,P)),ki["border-radius"]=oc(P);const fo={};["top-left","top-right","bottom-right","bottom-left"].forEach((Ro=>{fo[Ro]=(P[Ro]||0)+1})),qi["--divkit-border-radius"]=oc(fo)}else Sn.corner_radius&&(n(66,Ce=uo(Sn.corner_radius,Ce)),n(67,P={"top-left":Ce,"top-right":Ce,"bottom-right":Ce,"bottom-left":Ce}),ki["border-radius"]=Et(Ce),qi["--divkit-border-radius"]=Et(Ce+1));if(zo&&Ii&&(Sn.corners_radius||Sn.corner_radius)){let fo={...P};["top-left","top-right","bottom-right","bottom-left"].forEach((Ro=>{fo[Ro]=(fo[Ro]||0)+Ii/2})),_o=oc(fo)}}n(63,Ni=us(ki,Ni)),n(3,mi=us(qi,mi)),n(16,Fe=zo),n(4,Z=_o)}if(t.$$.dirty[1]&16777216|t.$$.dirty[2]&64|t.$$.dirty[4]&64&&n(68,ce=ya(gt&&!Ct?gt:void 0,ce)),t.$$.dirty[0]&16384|t.$$.dirty[1]&67108864|t.$$.dirty[2]&64&&n(107,O=qr(YR(ce,gi),Kt)),t.$$.dirty[0]&16384|t.$$.dirty[2]&128|t.$$.dirty[4]&8&&n(69,be=oa(wn,Kt,be)),t.$$.dirty[0]&16385|t.$$.dirty[1]&4194304|t.$$.dirty[2]&4352|t.$$.dirty[4]&56){let Sn,ki,qi,zo,_o={},fo=0,Ro=0,Yr=!1,Gr=!1;const Po=Je==null?void 0:Je.type;if(Po==="fixed")n(74,Ae=uo(Je==null?void 0:Je.value,Ae)),ki=Et(Ae);else if(Po==="wrap_content"||(Po==="match_parent"||!Po)&&Bn.parentHorizontalWrapContent){if(Sn="content",(Po==="wrap_content"&&Je!=null&&Je.constrained||(Po==="match_parent"||!Po)&&Bn.parentHorizontalWrapContent)&&(_o["width-constrained"]=!0,Bn.parentContainerOrientation==="horizontal"&&(Ro=1)),Po==="wrap_content"){const Li=Je;Li.min_size&&Wo(Li.min_size.value)&&(qi=Et(Li.min_size.value)),Li.max_size&&Wo(Li.max_size.value)&&(zo=Et(Li.max_size.value))}(Po==="match_parent"||!Po)&&We.logError(tt(new Error("Incorrect child size. Container with wrap_content size contains child with match_parent size along the main axis"),{level:"warn"}))}else if(Sn="parent",Bn.parentContainerOrientation==="vertical"&&Bn.parentContainerWrap&&(Gr=!0,We.logError(tt(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),Bn.parentLayoutOrientation==="vertical"||Bn.stretchWidth){const Li=(Vi=(yt=Kt==="ltr"?wn==null?void 0:wn.start:wn==null?void 0:wn.end)!=null?yt:wn==null?void 0:wn.left)!=null?Vi:0,gd=(lo=(ji=Kt==="ltr"?wn==null?void 0:wn.end:wn==null?void 0:wn.start)!=null?ji:wn==null?void 0:wn.right)!=null?lo:0,Fl=`calc(100% - ${Jo(Li+gd)})`;Bn.stretchWidth?(ki="0",qi=Fl):ki=Fl}else Bn.parentContainerOrientation==="horizontal"&&(fo=Je&&"weight"in Je&&Je.weight||1,Bn.parentContainerWrap&&(Yr=!0));if(Sn==="parent")_o["halign-self"]="stretch";else{const Li=Un;Li==="left"||Li==="center"||Li==="right"||Li==="start"||Li==="end"?_o["halign-self"]=(Kt==="ltr"?gB:hB)[Li]:_o["halign-self"]=Bn.parentHAlign||"start"}Sn&&(_o.width=Sn),n(71,Be=ki),n(72,se=qi),n(73,ve=zo),n(75,Re=fo),n(76,ut=Ro),n(70,ge=us(_o,ge)),n(77,Ge=Yr),n(17,Tt=Gr)}if(t.$$.dirty[0]&1|t.$$.dirty[1]&138412032|t.$$.dirty[2]&1114112|t.$$.dirty[4]&14){let Sn,ki,qi,zo,_o={},fo=0,Ro=0,Yr=!1,Gr=!1;const Po=Ut==null?void 0:Ut.type;if(!rn)if(Po==="fixed")n(82,Mn=uo(Ut==null?void 0:Ut.value,Mn)),ki=Et(Mn);else if(Po==="match_parent"&&!Bn.parentVerticalWrapContent)if(Sn="parent",Bn.parentContainerOrientation==="horizontal"&&Bn.parentContainerWrap&&(Gr=!0,We.logError(tt(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),Bn.parentLayoutOrientation==="horizontal"||Bn.stretchHeight){const Li=(oo=wn==null?void 0:wn.top)!=null?oo:0,gd=(wo=wn==null?void 0:wn.bottom)!=null?wo:0,Fl=`calc(100% - ${Jo(Li+gd)})`;Bn.stretchHeight?(ki="0",qi=Fl):ki=Fl}else Bn.parentContainerOrientation==="vertical"&&(fo=(Ut==null?void 0:Ut.weight)||1,Bn.parentContainerWrap&&(Yr=!0));else{if(Sn="content",(Po==="wrap_content"&&Ut!=null&&Ut.constrained||Po==="match_parent"&&Bn.parentVerticalWrapContent)&&(_o["height-constrained"]=!0,Bn.parentContainerOrientation==="vertical"&&(Ro=1)),Po==="wrap_content"){const Li=Ut;Li!=null&&Li.min_size&&Wo(Li.min_size.value)&&(qi=Et(Li.min_size.value)),Li!=null&&Li.max_size&&Wo(Li.max_size.value)&&(zo=Et(Li.max_size.value))}Po==="match_parent"&&We.logError(tt(new Error("Incorrect child size. Container with wrap_content size contains child with match_parent size along the main axis"),{level:"warn"}))}if(Sn==="parent")_o["valign-self"]="stretch";else{const Li=li;Li==="top"||Li==="center"||Li==="bottom"||Li==="baseline"&&Bn.parentContainerOrientation==="horizontal"?_o["valign-self"]=vB[Li]:_o["valign-self"]=Bn.parentVAlign||"start"}Sn&&(_o.height=Sn),n(79,Ht=ki),n(80,On=qi),n(81,Qt=zo),n(83,_n=fo),n(84,Pt=Ro),n(78,fn=us(_o,fn)),n(85,jn=Yr),n(18,Pn=Gr)}if(t.$$.dirty[1]&4194304&&n(109,M=Bn.overlapParent?!0:void 0),t.$$.dirty[1]&4194304&&n(108,D=Bn.gridArea?`${Bn.gridArea.y+1}/${Bn.gridArea.x+1}/span ${Bn.gridArea.rowSpan}/span ${Bn.gridArea.colSpan}`:void 0),t.$$.dirty[2]&16777216|t.$$.dirty[4]&1&&(n(86,In=JR(Ln,In)),n(87,Jn=In===1?void 0:In)),t.$$.dirty[0]&8192|t.$$.dirty[1]&8388608&&(n(15,z=void 0),pn&&!eo&&pn.description&&(n(15,z={}),n(15,z["aria-label"]=pn.description,z))),t.$$.dirty[0]&4208|t.$$.dirty[3]&1107296256&&(n(5,ri=Ti&&ye!=null&&ye.background?ye.background:ln),n(88,yi={}),n(6,yo=!1),Array.isArray(ri)&&(n(6,yo=ri.some((Sn=>Sn.type==="image"||Sn.type==="nine_patch_image"))||!!Z),!yo))){const Sn=nd(ri);n(88,yi["background-color"]=Sn.color,yi),n(88,yi["background-image"]=Sn.image,yi),n(88,yi["background-size"]=Sn.size,yi),n(88,yi["background-position"]=Sn.position,yi),n(88,yi["background-repeat"]="no-repeat",yi)}if(t.$$.dirty[0]&1|t.$$.dirty[2]&134217728&&(n(90,cn=void 0),Yi&&We.json.transition_in&&Tn.isRunning("stateChange")&&n(90,cn=!0)),t.$$.dirty[0]&1|t.$$.dirty[2]&134217728&&(n(92,Wt=void 0),Yi&&Tn.isRunning("stateChange")&&Yn.hasTransitionChange(We.id)&&n(92,Wt=!0)),t.$$.dirty[0]&1921|t.$$.dirty[1]&33554432|t.$$.dirty[3]&1071644672){let Sn=xe||le&&[le]||[],ki=kt||[],qi=vt||[],zo=(ye==null?void 0:ye.on_focus)||[],_o=(ye==null?void 0:ye.on_blur)||[],fo=ue||[],Ro=Te||[],Yr=W||[],Gr=oe||[];We.fakeElement?(Sn=[],ki=[],qi=[],zo=[],_o=[]):(Array.isArray(Sn)||(Sn=[],We.logError(tt(new Error("Actions should be array")))),Array.isArray(ki)||(ki=[],We.logError(tt(new Error("DoubleTapActions should be array")))),Array.isArray(qi)||(qi=[],We.logError(tt(new Error("LongTapActions should be array")))),Array.isArray(zo)||(zo=[],We.logError(tt(new Error("FocusActions should be array")))),Array.isArray(_o)||(_o=[],We.logError(tt(new Error("BlurActions should be array")))),Array.isArray(fo)||(fo=[],We.logError(tt(new Error("PressStartActions should be array")))),Array.isArray(Ro)||(Ro=[],We.logError(tt(new Error("PressEndActions should be array")))),Array.isArray(Yr)||(Yr=[],We.logError(tt(new Error("HoverStartActions should be array")))),Array.isArray(Gr)||(Gr=[],We.logError(tt(new Error("HoverEndActions should be array"))))),(Sn.length||ki.length||qi.length||Le.length||zt.length||Nt.length||En.length)&&Wn&&(Sn=[],ki=[],qi=[],n(7,Le=[]),n(8,zt=[]),n(9,Nt=[]),n(10,En=[]),We.logError(tt(new Error(`Cannot use action on component "${Wn}"`)))),n(19,L=Sn.filter(Bo)),n(20,ie=ki.filter(Bo)),n(21,we=qi.filter(Bo)),ae=zo.filter(Bo),Ne=_o.filter(Bo),n(7,Le=fo.filter(Bo)),n(8,zt=Ro.filter(Bo)),n(9,Nt=Yr.filter(Bo)),n(10,En=Gr.filter(Bo))}if(t.$$.dirty[0]&2048|t.$$.dirty[3]&1048576&&_e&&(n(11,yn=Ru(_e)),n(93,wi=yn.map(fd).filter(Boolean).join(", "))),t.$$.dirty[3]&524384){const Sn=Di,ki=KR(Y,Di);Sn!==ki&&(To&&(Di==="visible"||ki==="visible")?md(ki):n(99,Di=ki)),To||n(98,To=!0)}if(t.$$.dirty[0]&1|t.$$.dirty[1]&1073741824|t.$$.dirty[3]&2048&&We.json&&ft&&!qu(We.json.extensions,io)){let Sn=n(104,io=We.json.extensions);Fo().then((()=>{if(!(Sn!==io||!ft)&&(ka(),Array.isArray(We.json.extensions))){const ki=Tn.getExtensionContext(We);Mt=We.json.extensions.map((qi=>{var zo;const _o=qi.id;if(!_o)return;const fo=Tn.getExtension(_o,qi.params);return fo&&((zo=fo.mountView)==null||zo.call(fo,ft,ki)),fo})).filter(os)}}))}if(t.$$.dirty[0]&4097|t.$$.dirty[1]&4194304|t.$$.dirty[2]&1879113984|t.$$.dirty[3]&65601&&n(23,R={...ge,...fn,"parent-overlap":M,"scroll-snap":Bn.scrollSnap,"hide-on-transition-in":cn||vi||Wt,visibility:Di,"has-action-animation":!!wi,"parent-flex":Bn.parentContainerOrientation||void 0,"parent-grid":!!Bn.gridArea||void 0,"has-custom-focus":!!(Ti&&We.json.focus)}),t.$$.dirty[3]&262528&&C&&C.rotation!==void 0){const Sn=C.pivot_x||{type:"pivot-percentage",value:50};n(100,Qo=ll(Sn.value,Qo));const ki=Sn.type==="pivot-fixed"?Et(Qo):`${Qo}%`,qi=C.pivot_y||{type:"pivot-percentage",value:50};n(101,Oo=ll(qi.value,Oo));const zo=qi.type==="pivot-fixed"?Et(Oo):`${Oo}%`;n(102,zr=`${ki} ${zo}`),n(103,$s=`rotate(${C.rotation}deg)`)}t.$$.dirty[2]&10526720&&n(106,U=Ge||jn?"100%":Re||_n?0:void 0),t.$$.dirty[1]&2097152|t.$$.dirty[2]&107900546|t.$$.dirty[3]&58911&&n(22,B={...hi,...yi,...Ni,width:Be,"min-width":se,"max-width":ve,height:Ht,"min-height":On,"max-height":Qt||(hi==null?void 0:hi["max-height"]),"grid-area":D,padding:O,margin:be,opacity:Jn,transition:wi,"transform-origin":zr,transform:$s,"flex-grow":Re||_n||void 0,"flex-shrink":ut||Pt?1:void 0,"flex-basis":U,"--divkit-animation-opacity-start":Ao,"--divkit-animation-opacity-end":_t,"--divkit-animation-scale-start":ti,"--divkit-animation-scale-end":$i})},[We,bi,un,mi,Z,ri,yo,Le,zt,Nt,En,yn,Ti,pn,Kt,z,Fe,Tt,Pn,L,ie,we,B,R,A,j,T,E,k,w,b,y,v,h,m,f,_,p,u,d,c,a,l,s,r,o,Se,bn,Xs,Kr,Ll,Fn,hi,Bn,eo,Ct,Wn,gi,rn,Bt,hn,ft,zn,Ni,Ii,re,Ce,P,ce,be,ge,Be,se,ve,Ae,Re,ut,Ge,fn,Ht,On,Qt,Mn,_n,Pt,jn,In,Jn,yi,Yi,cn,vi,Wt,wi,Ao,_t,ti,$i,To,Di,Qo,Oo,zr,$s,io,Mo,U,O,D,M,i,C,Y,_e,oe,W,Te,ue,ye,vt,kt,le,xe,ln,Ln,li,Ut,wn,Un,Je,gt,Ot,Ft,xt,dt]}class qo extends Qi{constructor(e){super(),xi(this,e,bB,mB,Pi,{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 yB="divkit-6d029",wB="divkit-d7771",$B="divkit-11aee",kB="divkit-a2b0d",jB="divkit-b93c2",SB="divkit-a5aa6",CB="divkit-02228",TB="divkit-c5739",zB="divkit-ccc67",EB="divkit-a6f25",AB="divkit-b9e37",OB="divkit-fa1ec",MB="divkit-3f0b7",PB="divkit-d491d",IB="divkit-f6859",pr={"text-range":"divkit-251c6",text:yB,text_halign_start:wB,text_halign_center:$B,text_halign_end:kB,text_valign_start:jB,text_valign_center:SB,text_valign_end:CB,text_valign_baseline:TB,text__inner:zB,text_singleline:EB,text_multiline:AB,text_truncate_none:OB,"text__inner_has-cloud-bg":"divkit-e75f8","text__inner_cloud-bg":"divkit-ca4e7",text__inner_gradient:MB,"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:PB,text__image_hidden:IB,"text_has-focus-color":"divkit-32858"},Cc={"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 mr(t,e){const n=Number(t);return Number.isNaN(n)||n<=0?e:n}function DB(t){if(t==="light"||t==="medium"||t==="bold"||t==="regular")return t==="medium"?500:t==="bold"?700:t==="light"?300:400}function wl(t,e,n){return typeof e=="number"&&e>0?e:DB(t)||n}function cu(t,e){if(!t)return{};const n={};for(const i of["left","top","right","bottom","start","end"]){const o=t[i];o&&(n[i]=o*e)}return n}function N_(t){let e,n,i,o,r,s,l;return{c(){e=$o("svg"),n=$o("defs"),i=$o("filter"),o=$o("feGaussianBlur"),r=$o("feColorMatrix"),l=$o("feBlend"),K(o,"in","SourceGraphic"),K(o,"result","blurred"),K(o,"stdDeviation","3"),K(r,"in","blurred"),K(r,"result","withMatrix"),K(r,"type","matrix"),K(r,"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]),K(l,"in","SourceGraphic"),K(l,"in2","withMatrix"),K(i,"id",t[10]),K(e,"class",Cc["text-range__cloud-svg"])},m(a,c){rt(a,e,c),Vn(e,n),Vn(n,i),Vn(i,o),Vn(i,r),Vn(i,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])&&K(r,"values",s)},d(a){a&&it(e)}}}function q_(t){let e;return{c(){e=Zt("span"),K(e,"class",Cc["text-range__top-offset"]),He(e,"margin-top",t[8])},m(n,i){rt(n,e,i)},p(n,i){i&256&&He(e,"margin-top",n[8])},d(n){n&&it(e)}}}function VB(t){let e;return{c(){e=jr(t[1])},m(n,i){rt(n,e,i)},p(n,i){i&2&&ws(e,n[1])},d(n){n&&it(e)}}}function LB(t){let e,n,i,o,r=t[3]&&t[5]&&N_(t),s=t[8]&&q_(t);return i=new rd({props:{componentContext:t[0],cls:kn("text-range",Cc,t[7]),actions:t[2],style:Nn(t[6]),$$slots:{default:[VB]},$$scope:{ctx:t}}}),{c(){r&&r.c(),e=si(),s&&s.c(),n=si(),Qn(i.$$.fragment)},m(l,a){r&&r.m(l,a),rt(l,e,a),s&&s.m(l,a),rt(l,n,a),Zn(i,l,a),o=!0},p(l,[a]){l[3]&&l[5]?r?r.p(l,a):(r=N_(l),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),l[8]?s?s.p(l,a):(s=q_(l),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null);const c={};a&1&&(c.componentContext=l[0]),a&128&&(c.cls=kn("text-range",Cc,l[7])),a&4&&(c.actions=l[2]),a&64&&(c.style=Nn(l[6])),a&1073741826&&(c.$$scope={dirty:a,ctx:l}),i.$set(c)},i(l){o||(Ue(i.$$.fragment,l),o=!0)},o(l){nt(i.$$.fragment,l),o=!1},d(l){l&&(it(e),it(n)),r&&r.d(l),s&&s.d(l),xn(i,l)}}}function FB(t,e,n){let i,o,r,s,l,a,c,d,u,p,{componentContext:_}=e,{text:f}=e,{rootFontSize:m}=e,{textStyles:h={}}=e,{singleline:v=!1}=e,{actions:y=void 0}=e,{cloudBg:b=!1}=e,{customLineHeight:w=null}=e;const k=ro(vo),E=k.direction;ko(t,E,(q=>n(28,p=q)));const T=b&&k.genId("text-range")||"";let j="none",A=12,O=1.25,M="",D,R="",U="",B=null,C;return t.$$set=q=>{"componentContext"in q&&n(0,_=q.componentContext),"text"in q&&n(1,f=q.text),"rootFontSize"in q&&n(11,m=q.rootFontSize),"textStyles"in q&&n(12,h=q.textStyles),"singleline"in q&&n(13,v=q.singleline),"actions"in q&&n(2,y=q.actions),"cloudBg"in q&&n(3,b=q.cloudBg),"customLineHeight"in q&&n(14,w=q.customLineHeight)},t.$$.update=()=>{var q,V,Y,x,de,_e,G;if(t.$$.dirty&1&&_.json&&(n(15,j="none"),n(16,A=12),n(17,O=1.25),n(18,M=""),n(19,D=void 0),n(20,R=""),n(21,U=""),n(22,B=null),n(23,C=void 0)),t.$$.dirty&4096){let Q="none";(h.underline||h.strike)&&(h.underline==="single"&&h.strike==="single"?Q="both":h.underline==="single"?Q="underline":h.strike==="single"&&(Q="strike")),n(15,j=Q)}t.$$.dirty&69632&&n(16,A=mr(h.font_size,A)),t.$$.dirty&69632&&Zo(h.line_height)&&n(17,O=Number(h.line_height)/A),t.$$.dirty&4096&&Wo(h.letter_spacing)&&n(18,M=Et(h.letter_spacing)),t.$$.dirty&528384&&(n(19,D=wl(h.font_weight,h.font_weight_value,D)),typeof h.font_family=="string"&&h.font_family?n(20,R=k.typefaceProvider(h.font_family,{fontWeight:D||400})):n(20,R="")),t.$$.dirty&2101256&&n(21,U=b?"transparent":Ri(h.text_color,1,U)),t.$$.dirty&4096&&n(8,i=h.top_offset?Et(h.top_offset):""),t.$$.dirty&4096&&n(5,o=((q=h.background)==null?void 0:q.type)==="cloud"),t.$$.dirty&4096&&n(26,r=((V=h.background)==null?void 0:V.type)==="cloud"?h.background.paddings:void 0),t.$$.dirty&4096&&n(24,s=((Y=h.background)==null?void 0:Y.type)==="solid"?nd([h.background]):null),t.$$.dirty&4096&&((x=h.border)!=null&&x.stroke&&h.border.stroke.color&&Ri(h.border.stroke.color)!=="transparent"&&Zo(h.border.stroke.width)&&((de=h.background)==null?void 0:de.type)!=="cloud"?n(22,B={color:h.border.stroke.color,width:h.border.stroke.width,corner_radius:h.border.corner_radius}):n(22,B=null)),t.$$.dirty&4198440&&n(4,l=b?o&&h.background.corner_radius||0:B?mr(B.corner_radius,0):0),t.$$.dirty&69632&&n(25,a=h.text_shadow?ZR(h.text_shadow,A):void 0),t.$$.dirty&4096&&typeof h.baseline_offset=="number"&&n(23,C=h.baseline_offset),t.$$.dirty&4096&&n(27,c=typeof h.baseline_offset=="number"?void 0:h.alignment_vertical),t.$$.dirty&142663712&&n(7,d={singleline:v,decoration:j,align:c,cloud:o,"relative-vertical-align":!!(w&&C)}),t.$$.dirty&536827960&&n(6,u={"font-size":Et(A*10/m),"line-height":c?"normal":O,"letter-spacing":M,"font-weight":D,"font-family":R,"vertical-align":w||C===void 0?void 0:Et(C*10/A),top:w&&C!==void 0?Et(-C*10/A):void 0,margin:r?qr(cu(r,-10/A),p):void 0,padding:r?qr(cu(r,10/A),p):void 0,filter:b&&o?`url(#${T})`:a,color:U,background:b?o?_F(h.background.color,255,"transparent"):void 0:(s==null?void 0:s.color)||void 0,opacity:b&&o?((G=(_e=ns(h.background.color))==null?void 0:_e.a)!=null?G:255)/255:void 0,"box-shadow":B?`inset 0 0 0 ${Et(B.width*10/A)} ${B.color}`:void 0,"border-radius":l?Et(l*10/A):void 0,"font-feature-settings":h.font_feature_settings||void 0})},[_,f,y,b,l,o,u,d,i,E,T,m,h,v,w,j,A,O,M,D,R,U,B,C,s,a,r,c,p]}class Hu extends Qi{constructor(e){super(),xi(this,e,FB,LB,Pi,{componentContext:0,text:1,rootFontSize:11,textStyles:12,singleline:13,actions:2,cloudBg:3,customLineHeight:14})}}function Uu(t,e,n){return t==="left"||t==="center"||t==="right"||t==="start"||t==="end"?t==="left"?e==="ltr"?"start":"end":t==="right"?e==="ltr"?"end":"start":t:n}function Ju(t,e){return t==="top"||t==="center"||t==="bottom"||t==="baseline"?t==="top"?"start":t==="bottom"?"end":t:e}function NB(t){return String(t??"")}function u2(t,e){return t==="source_in"||t==="source_atop"||t==="darken"||t==="lighten"||t==="multiply"||t==="screen"?t:e}function sd(t,e){let n;return function(...i){n!==null&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,i),n=null}),e)}}function qB(t,e){let n=null;const i=()=>{const l=getComputedStyle(t),a=parseFloat(l.lineHeight);t.style.webkitLineClamp="",t.style.maxHeight="";const c=t.offsetHeight,d=t.scrollHeight;let u=Math.max(1,Math.floor(c/a));e.maxLines&&e.maxLines<u&&(u=e.maxLines),d>u*a+1e-9&&(t.style.webkitLineClamp=String(u),t.style.maxHeight=a*u+"px")},o=sd(i,50),r=()=>{n&&(n.disconnect(),n=null)},s=()=>{if(r(),e.enabled){if(i(),typeof ResizeObserver<"u"){n=new ResizeObserver(o);const l=t.parentElement;l&&n.observe(l)}}else t.style.webkitLineClamp=String(e.lineClamp||"")};return s(),{update(l){e=l,s()},destroy(){r()}}}const{Boolean:p2}=Ur;function R_(t,e,n){const i=t.slice();return i[64]=e[n],i}function B_(t,e,n){const i=t.slice();return i[64]=e[n],i}function H_(t){let e,n,i,o,r=ci(t[12]),s=[];for(let a=0;a<r.length;a+=1)s[a]=J_(B_(t,r,a));const l=a=>nt(s[a],1,1,(()=>{s[a]=null}));return{c(){e=Zt("span");for(let a=0;a<s.length;a+=1)s[a].c();K(e,"class",n=kn("text__inner",pr,{...t[15],"cloud-bg":!0})),K(e,"style",i=Nn({...t[14],padding:t[13]}))},m(a,c){rt(a,e,c);for(let d=0;d<s.length;d+=1)s[d]&&s[d].m(e,null);o=!0},p(a,c){if(c[0]&5257){r=ci(a[12]);let d;for(d=0;d<r.length;d+=1){const u=B_(a,r,d);s[d]?(s[d].p(u,c),Ue(s[d],1)):(s[d]=J_(u),s[d].c(),Ue(s[d],1),s[d].m(e,null))}for(ui(),d=r.length;d<s.length;d+=1)l(d);pi()}(!o||c[0]&32768&&n!==(n=kn("text__inner",pr,{...a[15],"cloud-bg":!0})))&&K(e,"class",n),(!o||c[0]&24576&&i!==(i=Nn({...a[14],padding:a[13]})))&&K(e,"style",i)},i(a){if(!o){for(let c=0;c<r.length;c+=1)Ue(s[c]);o=!0}},o(a){s=s.filter(p2);for(let c=0;c<s.length;c+=1)nt(s[c]);o=!1},d(a){a&&it(e),Co(s,a)}}}function RB(t){let e,n,i,o,r;return{c(){e=Zt("span"),n=Zt("span"),K(n,"class",i=kn("text__image-wrapper",pr,{align:t[64].image.verticalAlign,crop:t[10]!==null})),K(n,"style",o=Nn({width:t[64].image.width,height:t[10]&&t[64].image.verticalAlign!=="baseline"?t[10]+"em":void 0})),K(e,"style",r=Nn(t[64].image.wrapperStyle))},m(s,l){rt(s,e,l),Vn(e,n)},p(s,l){l[0]&5120&&i!==(i=kn("text__image-wrapper",pr,{align:s[64].image.verticalAlign,crop:s[10]!==null}))&&K(n,"class",i),l[0]&5120&&o!==(o=Nn({width:s[64].image.width,height:s[10]&&s[64].image.verticalAlign!=="baseline"?s[10]+"em":void 0}))&&K(n,"style",o),l[0]&4096&&r!==(r=Nn(s[64].image.wrapperStyle))&&K(e,"style",r)},i:me,o:me,d(s){s&&it(e)}}}function BB(t){let e,n,i=t[64].text&&U_(t);return{c(){i&&i.c(),e=si()},m(o,r){i&&i.m(o,r),rt(o,e,r),n=!0},p(o,r){o[64].text?i?(i.p(o,r),r[0]&4096&&Ue(i,1)):(i=U_(o),i.c(),Ue(i,1),i.m(e.parentNode,e)):i&&(ui(),nt(i,1,1,(()=>{i=null})),pi())},i(o){n||(Ue(i),n=!0)},o(o){nt(i),n=!1},d(o){o&&it(e),i&&i.d(o)}}}function U_(t){let e,n;return e=new Hu({props:{componentContext:t[0],text:t[64].text,rootFontSize:t[3],textStyles:t[64].textStyles,singleline:t[7],cloudBg:!0}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),o[0]&4096&&(r.text=i[64].text),o[0]&8&&(r.rootFontSize=i[3]),o[0]&4096&&(r.textStyles=i[64].textStyles),o[0]&128&&(r.singleline=i[7]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function J_(t){let e,n,i,o;const r=[BB,RB],s=[];function l(a,c){return"text"in a[64]?0:a[64].image?1:-1}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=si()},m(a,c){~e&&s[e].m(a,c),rt(a,i,c),o=!0},p(a,c){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&it(i),~e&&s[e].d(a)}}}function HB(t){let e,n;return e=new Hu({props:{componentContext:t[0],text:t[2],rootFontSize:t[3],textStyles:t[8],singleline:t[7],customLineHeight:t[10]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),o[0]&4&&(r.text=i[2]),o[0]&8&&(r.rootFontSize=i[3]),o[0]&256&&(r.textStyles=i[8]),o[0]&128&&(r.singleline=i[7]),o[0]&1024&&(r.customLineHeight=i[10]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function UB(t){let e,n,i=ci(t[12]),o=[];for(let s=0;s<i.length;s+=1)o[s]=K_(R_(t,i,s));const r=s=>nt(o[s],1,1,(()=>{o[s]=null}));return{c(){for(let s=0;s<o.length;s+=1)o[s].c();e=si()},m(s,l){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(s,l);rt(s,e,l),n=!0},p(s,l){if(l[0]&5257|l[1]&8){i=ci(s[12]);let a;for(a=0;a<i.length;a+=1){const c=R_(s,i,a);o[a]?(o[a].p(c,l),Ue(o[a],1)):(o[a]=K_(c),o[a].c(),Ue(o[a],1),o[a].m(e.parentNode,e))}for(ui(),a=i.length;a<o.length;a+=1)r(a);pi()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)Ue(o[l]);n=!0}},o(s){o=o.filter(p2);for(let l=0;l<o.length;l+=1)nt(o[l]);n=!1},d(s){s&&it(e),Co(o,s)}}}function JB(t){let e,n,i,o,r,s,l,a,c,d,u,p,_,f=[{class:o=pr.text__image},{src:r=t[64].image.url},{loading:s=t[64].image.preloadRequired?"eager":"lazy"},{decoding:"async"},{alt:l=t[64].image.description},t[64].image.a11yAttrs,{style:a=Nn({height:t[64].image.height,filter:t[64].image.svgFilterId?`url(#${t[64].image.svgFilterId})`:void 0})}],m={};for(let h=0;h<f.length;h+=1)m=Ks(m,f[h]);return{c(){e=Zt("span"),n=Zt("span"),i=Zt("img"),$r(i,m),K(n,"class",c=kn("text__image-wrapper",pr,{align:t[64].image.verticalAlign,crop:t[10]!==null})),K(n,"style",d=Nn({width:t[64].image.width,height:t[10]&&t[64].image.verticalAlign!=="baseline"?t[10]+"em":void 0})),K(e,"style",u=Nn(t[64].image.wrapperStyle))},m(h,v){rt(h,e,v),Vn(e,n),Vn(n,i),p||(_=en(i,"error",t[34]),p=!0)},p(h,v){$r(i,m=Pl(f,[{class:o},v[0]&4096&&!rr(i.src,r=h[64].image.url)&&{src:r},v[0]&4096&&s!==(s=h[64].image.preloadRequired?"eager":"lazy")&&{loading:s},{decoding:"async"},v[0]&4096&&l!==(l=h[64].image.description)&&{alt:l},v[0]&4096&&h[64].image.a11yAttrs,v[0]&4096&&a!==(a=Nn({height:h[64].image.height,filter:h[64].image.svgFilterId?`url(#${h[64].image.svgFilterId})`:void 0}))&&{style:a}])),v[0]&5120&&c!==(c=kn("text__image-wrapper",pr,{align:h[64].image.verticalAlign,crop:h[10]!==null}))&&K(n,"class",c),v[0]&5120&&d!==(d=Nn({width:h[64].image.width,height:h[10]&&h[64].image.verticalAlign!=="baseline"?h[10]+"em":void 0}))&&K(n,"style",d),v[0]&4096&&u!==(u=Nn(h[64].image.wrapperStyle))&&K(e,"style",u)},i:me,o:me,d(h){h&&it(e),p=!1,_()}}}function WB(t){let e,n,i=t[64].text&&W_(t);return{c(){i&&i.c(),e=si()},m(o,r){i&&i.m(o,r),rt(o,e,r),n=!0},p(o,r){o[64].text?i?(i.p(o,r),r[0]&4096&&Ue(i,1)):(i=W_(o),i.c(),Ue(i,1),i.m(e.parentNode,e)):i&&(ui(),nt(i,1,1,(()=>{i=null})),pi())},i(o){n||(Ue(i),n=!0)},o(o){nt(i),n=!1},d(o){o&&it(e),i&&i.d(o)}}}function W_(t){let e,n;return e=new Hu({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(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),o[0]&4096&&(r.text=i[64].text),o[0]&8&&(r.rootFontSize=i[3]),o[0]&4096&&(r.textStyles=i[64].textStyles),o[0]&128&&(r.singleline=i[7]),o[0]&4096&&(r.actions=i[64].actions),o[0]&1024&&(r.customLineHeight=i[10]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function K_(t){let e,n,i,o;const r=[WB,JB],s=[];function l(a,c){return"text"in a[64]?0:a[64].image?1:-1}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=si()},m(a,c){~e&&s[e].m(a,c),rt(a,i,c),o=!0},p(a,c){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&it(i),~e&&s[e].d(a)}}}function KB(t){let e,n,i,o,r,s,l,a,c,d,u=t[6]&&H_(t);const p=[UB,HB],_=[];function f(m,h){return m[12].length?0:1}return i=f(t),o=_[i]=p[i](t),{c(){u&&u.c(),e=Ai(),n=Zt("span"),o.c(),K(n,"class",r=kn("text__inner",pr,t[15])),K(n,"style",s=Nn(t[14]))},m(m,h){u&&u.m(m,h),rt(m,e,h),rt(m,n,h),_[i].m(n,null),a=!0,c||(d=ed(l=qB.call(null,n,{enabled:t[9],lineClamp:typeof t[4]=="number"?t[4]:void 0,maxLines:t[11]})),c=!0)},p(m,h){m[6]?u?(u.p(m,h),h[0]&64&&Ue(u,1)):(u=H_(m),u.c(),Ue(u,1),u.m(e.parentNode,e)):u&&(ui(),nt(u,1,1,(()=>{u=null})),pi());let v=i;i=f(m),i===v?_[i].p(m,h):(ui(),nt(_[v],1,1,(()=>{_[v]=null})),pi(),o=_[i],o?o.p(m,h):(o=_[i]=p[i](m),o.c()),Ue(o,1),o.m(n,null)),(!a||h[0]&32768&&r!==(r=kn("text__inner",pr,m[15])))&&K(n,"class",r),(!a||h[0]&16384&&s!==(s=Nn(m[14])))&&K(n,"style",s),l&&Fi(l.update)&&h[0]&2576&&l.update.call(null,{enabled:m[9],lineClamp:typeof m[4]=="number"?m[4]:void 0,maxLines:m[11]})},i(m){a||(Ue(u),Ue(o),a=!0)},o(m){nt(u),nt(o),a=!1},d(m){m&&(it(e),it(n)),u&&u.d(m),_[i].d(),c=!1,d()}}}function YB(t){let e,n;return e=new qo({props:{cls:kn("text",pr,t[16])+" "+(t[5]?ai.root__selectable:ai.root__unselectable),componentContext:t[0],layoutParams:t[1],$$slots:{default:[KB]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&65568&&(r.cls=kn("text",pr,i[16])+" "+(i[5]?ai.root__selectable:ai.root__unselectable)),o[0]&1&&(r.componentContext=i[0]),o[0]&2&&(r.layoutParams=i[1]),o[0]&65501|o[2]&128&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function GB(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,h,v,y,b,w,k,E,T,j,A,O,M,D,R=me,U=()=>(R(),R=De(y,(Ft=>n(47,D=Ft))),y),B,C=me,q=()=>(C(),C=De(s,(Ft=>n(8,B=Ft))),s),V,Y=me,x=()=>(Y(),Y=De(r,(Ft=>n(48,V=Ft))),r),de,_e=me,G=()=>(_e(),_e=De(o,(Ft=>n(49,de=Ft))),o),Q,oe=me,he=()=>(oe(),oe=De(h,(Ft=>n(50,Q=Ft))),h),ze,W=me,Ke=()=>(W(),W=De(m,(Ft=>n(51,ze=Ft))),m),at,Te=me,ot=()=>(Te(),Te=De(f,(Ft=>n(52,at=Ft))),f),J,ue=me,fe=()=>(ue(),ue=De(_,(Ft=>n(53,J=Ft))),_),Qe,ye=me,Ee=()=>(ye(),ye=De(p,(Ft=>n(54,Qe=Ft))),p),Ye,vt=me,ne=()=>(vt(),vt=De(c,(Ft=>n(55,Ye=Ft))),c),pe,kt=me,$e=()=>(kt(),kt=De(u,(Ft=>n(56,pe=Ft))),u),et,le=me,Ve=()=>(le(),le=De(d,(Ft=>n(57,et=Ft))),d),Xe,xe=me,jt=()=>(xe(),xe=De(v,(Ft=>n(9,Xe=Ft))),v),Vt,ln=me,sn=()=>(ln(),ln=De(a,(Ft=>n(58,Vt=Ft))),a),At,pn=me,dn=()=>(pn(),pn=De(l,(Ft=>n(59,At=Ft))),l),Rn,Ln=me,qe=()=>(Ln(),Ln=De(i,(Ft=>n(60,Rn=Ft))),i);t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>_e())),t.$$.on_destroy.push((()=>oe())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>Te())),t.$$.on_destroy.push((()=>ue())),t.$$.on_destroy.push((()=>ye())),t.$$.on_destroy.push((()=>vt())),t.$$.on_destroy.push((()=>kt())),t.$$.on_destroy.push((()=>le())),t.$$.on_destroy.push((()=>xe())),t.$$.on_destroy.push((()=>ln())),t.$$.on_destroy.push((()=>pn())),t.$$.on_destroy.push((()=>Ln()));let{componentContext:st}=e,{layoutParams:li=void 0}=e;const bt=ro(vo),Cn=bt.direction;ko(t,Cn,(Ft=>n(46,M=Ft)));let Ut="",gn=12,Lt=1.25,wn=null,vn="",Jt,Kt="",Un=!1,Kn="start",fi="start",Je="",ht="",ct="",gt=!1,qt=[],St=!1,Ot=[];function nn(Ft,xt,dt,We){let bi=[];if(Ot.forEach((([rn,Fn])=>{bt.removeSvgFilter(rn,Fn)})),Ot=[],!(Array.isArray(xt)&&xt.length||Array.isArray(dt)&&dt.length&&Ft)){n(12,qt=[]);return}const hi=Ft;let Bn=xt||[{start:0,end:hi.length}],eo=dt||[],Ct=0,Wn=[],gi=[];Bn.forEach((rn=>{const Fn=rn.start||0,Bt=rn.end||Ft.length,hn={top_offset:0,...rn,start:Fn,end:Bt};gi.push({index:Fn,range:hn,type:"rangeStart",isStart:!0}),gi.push({index:Bt,range:hn,type:"rangeEnd"})})),eo.forEach(((rn,Fn)=>{rn.start!==void 0&&rn.url&&rn.start<=hi.length&&gi.push({index:rn.indexing_direction==="reversed"?Ft.length-rn.start:rn.start,image:rn,type:"image",arrayIndex:Fn})})),gi.sort(((rn,Fn)=>rn.index===Fn.index?rn.type!==Fn.type?rn.type==="image"?-1:Fn.type==="image"?1:rn.type<Fn.type?-1:1:rn.type==="image"&&Fn.type==="image"?Fn.arrayIndex-rn.arrayIndex:rn.type==="rangeStart"&&Fn.type==="rangeStart"?rn.range.end-Fn.range.end:rn.type==="rangeStart"?1:Fn.type==="rangeStart"?-1:rn.type!=="image"&&Fn.type!=="image"?rn.range.start-Fn.range.start:0:rn.index-Fn.index)),gi.forEach((rn=>{var Fn,Bt,hn,un;let Tn=rn.type==="image"?null:rn.range,Yn=rn.index;if(Yn>Ct){let Se=Object.assign({...We},...Wn);Wn.length&&Wn[Wn.length-1].start!==Ct&&(Se.top_offset=0),bi.push({text:hi.substring(Ct,Yn),textStyles:Se,actions:rn.type==="rangeEnd"&&((Bt=(Fn=rn.range)==null?void 0:Fn.actions)==null?void 0:Bt.filter(Bo))||void 0})}if(rn.type==="rangeStart"&&Tn)Wn.push(Tn);else if(rn.type==="rangeEnd")Wn=Wn.filter((Se=>Se!==rn.range));else if(rn.type==="image"){let Se=Object.assign({...We},...Wn),bn=Et((rn.image.width&&rn.image.width.value||20)*10/(Se.font_size||12)),ft=Et((rn.image.height&&rn.image.height.value||20)*10/(Se.font_size||12));const z={"font-size":Et((Number(Se.font_size)||12)*10/gn)};let Mt="";const zn=rn.image.tint_color,Ni=u2(rn.image.tint_mode,"source_in");if(zn){const re=Ri(rn.image.tint_color);Mt=bt.addSvgFilter(re,Ni),Ot.push([re,Ni])}const mi={},Fe=(hn=rn.image.accessibility)==null?void 0:hn.type,Ii=((un=rn.image.accessibility)==null?void 0:un.description)||"";(Fe==="button"||Fe==="image")&&Ii?mi.role=Fe:(!Ii||Fe==="none")&&(mi["aria-hidden"]="true"),bi.push({image:{url:rn.image.url,width:bn,height:ft,wrapperStyle:z,svgFilterId:Mt,preloadRequired:!!rn.image.preload_required,verticalAlign:rn.image.alignment_vertical,description:Ii,a11yAttrs:mi}})}Ct=Yn})),Ct<hi.length&&bi.push({text:hi.substring(Ct),textStyles:{...We}}),n(12,qt=bi),n(6,St=bi.some((rn=>{var Fn;return"text"in rn&&((Fn=rn.textStyles.background)==null?void 0:Fn.type)==="cloud"})))}function ei(Ft){Ft.target&&"classList"in Ft.target&&Ft.target.classList.add(pr.text__image_hidden)}return jo((()=>{Ot.forEach((([Ft,xt])=>{bt.removeSvgFilter(Ft,xt)}))})),t.$$set=Ft=>{"componentContext"in Ft&&n(0,st=Ft.componentContext),"layoutParams"in Ft&&n(1,li=Ft.layoutParams)},t.$$.update=()=>{if(t.$$.dirty[0]&1&&st.json&&(n(3,gn=12),n(35,Lt=1.25),n(10,wn=null),n(36,vn=""),n(11,Jt=void 0),n(4,Kt=""),n(37,Un=!1),n(38,Kn="start"),n(39,fi="start"),n(40,Je=""),n(42,ct=""),n(5,gt=!1)),t.$$.dirty[0]&1&&qe(n(32,i=st.getDerivedFromVars(st.json.text))),t.$$.dirty[0]&1&&G(n(31,o=st.getDerivedFromVars(st.json.ranges))),t.$$.dirty[0]&1&&x(n(30,r=st.getDerivedFromVars(st.json.images))),t.$$.dirty[0]&1&&q(n(29,s=st.getDerivedFromVars({font_size:st.json.font_size,letter_spacing:st.json.letter_spacing,font_weight:st.json.font_weight,font_weight_value:st.json.font_weight_value,font_family:st.json.font_family,text_color:st.json.text_color,underline:st.json.underline,strike:st.json.strike,line_height:st.json.line_height,text_shadow:st.json.text_shadow,font_feature_settings:st.json.font_feature_settings}))),t.$$.dirty[0]&1&&dn(n(28,l=st.getDerivedFromVars(st.json.font_size))),t.$$.dirty[0]&1&&sn(n(27,a=st.getDerivedFromVars(st.json.line_height))),t.$$.dirty[0]&1&&ne(n(26,c=st.getDerivedFromVars(st.json.max_lines))),t.$$.dirty[0]&1&&Ve(n(25,d=st.getDerivedFromVars(st.json.text_alignment_horizontal))),t.$$.dirty[0]&1&&$e(n(24,u=st.getDerivedFromVars(st.json.text_alignment_vertical))),t.$$.dirty[0]&1&&Ee(n(23,p=st.getDerivedFromVars(st.json.text_color))),t.$$.dirty[0]&1&&fe(n(22,_=st.getDerivedFromVars(st.json.focused_text_color))),t.$$.dirty[0]&1&&ot(n(21,f=st.getDerivedFromVars(st.json.truncate))),t.$$.dirty[0]&1&&Ke(n(20,m=st.getDerivedFromVars(st.json.text_gradient))),t.$$.dirty[0]&1&&he(n(19,h=st.getDerivedFromVars(st.json.selectable))),t.$$.dirty[0]&1&&jt(n(18,v=st.getDerivedFromVars(st.json.auto_ellipsize))),t.$$.dirty[0]&1&&U(n(17,y=st.getDerivedFromVars(st.json.paddings))),t.$$.dirty[0]&1|t.$$.dirty[1]&536870912&&(typeof st.json.text=="string"?n(2,Ut=NB(Rn)):(n(2,Ut=""),st.logError(tt(new Error("Incorrect text value type"))))),t.$$.dirty[0]&8|t.$$.dirty[1]&268435456&&n(3,gn=mr(At,gn)),t.$$.dirty[0]&8|t.$$.dirty[1]&134217744){const Ft=Vt;Zo(Ft)?(n(35,Lt=Number(Ft)/gn),n(10,wn=Lt)):n(10,wn=null)}if(t.$$.dirty[1]&16777216&&n(7,b=Ye===1),t.$$.dirty[0]&512|t.$$.dirty[1]&16777232){let Ft="",xt,dt="",We=!1;if(Ye&&Ye>1){const bi=Number(Ye);Ft=bi*Lt+"em",xt=bi,dt=bi,We=!0}else Xe&&Ye!==1&&(We=!0);n(36,vn=Ft),n(11,Jt=xt),n(4,Kt=dt),n(37,Un=We)}if(t.$$.dirty[1]&67141760&&n(38,Kn=Uu(et,M,Kn)),t.$$.dirty[1]&33554688&&n(39,fi=Ju(pe,fi)),t.$$.dirty[0]&4|t.$$.dirty[1]&262144&&n(45,w=!de||Ut&&de.length===1&&de[0]&&(!de[0].start||de[0].start===0)&&(!de[0].end||typeof de[0].end=="number"&&de[0].end>=Ut.length)),t.$$.dirty[1]&8650752&&n(44,k=!!Qe!=!!(de&&de[0]&&de[0].text_color)),t.$$.dirty[1]&25453056){let Ft="";Ye&&w&&k&&(Ft=Ri(Qe||de&&de[0]&&de[0].text_color,1,Je)),n(40,Je=Ft)}if(t.$$.dirty[1]&4195328&&n(41,ht=Ri(J,1,ht)),t.$$.dirty[1]&2097152&&n(43,E=at==="none"?"none":""),t.$$.dirty[1]&1048576){let Ft="";if(ze){const xt=nd([ze]);xt.image&&(Ft=xt.image)}n(42,ct=Ft)}t.$$.dirty[0]&32|t.$$.dirty[1]&524288&&n(5,gt=br(Q,gt)),t.$$.dirty[0]&260|t.$$.dirty[1]&393216&&nn(Ut,de,V,B),t.$$.dirty[0]&128|t.$$.dirty[1]&5568&&n(16,T={singleline:b,multiline:Un,halign:Kn,valign:fi,truncate:E,"has-focus-color":!!ht}),t.$$.dirty[0]&64|t.$$.dirty[1]&2048&&n(15,j={gradient:!!ct,"has-cloud-bg":St}),t.$$.dirty[0]&24|t.$$.dirty[1]&3632&&n(14,A={"font-size":Et(gn),"line-height":Lt,"max-height":vn,"-webkit-line-clamp":Kt,color:Je,"background-image":ct,"--divkit-text-focus-color":ht}),t.$$.dirty[0]&8|t.$$.dirty[1]&98304&&n(13,O=qr(cu(ya(D,{})||{},10/gn),M))},[st,li,Ut,gn,Kt,gt,St,b,B,Xe,wn,Jt,qt,O,A,j,T,y,v,h,m,f,_,p,u,d,c,a,l,s,r,o,i,Cn,ei,Lt,vn,Un,Kn,fi,Je,ht,ct,E,k,w,M,D,V,de,Q,ze,at,J,Qe,Ye,pe,et,Vt,At,Rn]}class XB extends Qi{constructor(e){super(),xi(this,e,GB,YB,Pi,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const ZB="divkit-a6270",xB="divkit-758dd",QB="divkit-34175",eH="divkit-5d3b3",tH="divkit-76f26",nH="divkit-71fc3",iH="divkit-d66e1",oH="divkit-4d9fa",rH="divkit-f82bf",sH="divkit-221f7",lH="divkit-88fee",aH="divkit-825b7",Y_={container:ZB,container_wrap:xB,container_overflow_visible:QB,container_orientation_vertical:eH,container_valign_start:tH,container_valign_center:nH,container_valign_end:iH,"container_valign_space-between":"divkit-4aa6d","container_valign_space-around":"divkit-846d1","container_valign_space-evenly":"divkit-e04b5",container_halign_start:oH,container_halign_center:rH,container_halign_end:sH,"container_halign_space-between":"divkit-2daed","container_halign_space-around":"divkit-359ca","container_halign_space-evenly":"divkit-82605",container_orientation_horizontal:lH,container_orientation_overlap:aH};function G_(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 X_(t,e,n){const i=((e==null?void 0:e.margins.left)||0)+((e==null?void 0:e.margins.right)||0),o=((e==null?void 0:e.margins.top)||0)+((e==null?void 0:e.margins.bottom)||0);e!=null&&e.show_at_start&&(n?t.top=e.style.height+o:t.left=e.style.width+i),e!=null&&e.show_at_end&&(n?t.bottom=e.style.height+o:t.right=e.style.width+i)}function cH(t,e,n){const i={};return X_(i,e,t==="vertical"),X_(i,n,t==="horizontal"),i}function dH(t,e,n){let i;const o=((e==null?void 0:e.margins.left)||0)+((e==null?void 0:e.margins.right)||0),r=((e==null?void 0:e.margins.top)||0)+((e==null?void 0:e.margins.bottom)||0),s=((n==null?void 0:n.margins.left)||0)+((n==null?void 0:n.margins.right)||0),l=((n==null?void 0:n.margins.top)||0)+((n==null?void 0:n.margins.bottom)||0);return t==="horizontal"?i=[n!=null&&n.show_between?n.style.height+l:0,e!=null&&e.show_between?e.style.width+o:0]:i=[e!=null&&e.show_between?e.style.height+r:0,n!=null&&n.show_between?n.style.width+s:0],i.map(Et).join(" ")}function uH(t){var e;const n=(e=t.width)==null?void 0:e.type;return n!=="wrap_content"&&n!=="fixed"}function pH(t){var e;return((e=t.height)==null?void 0:e.type)==="match_parent"}function _H(t,e){return t==="vertical"||t==="horizontal"||t==="overlap"?t:e}function fH(t){var e,n,i;return{width:uo((e=t.item_width)==null?void 0:e.value,10),height:uo((n=t.item_height)==null?void 0:n.value,10),radius:uo((i=t.corner_radius)==null?void 0:i.value,5)}}function mH(t){var e;const n=uo((e=t.radius)==null?void 0:e.value,10)*2;return{width:n,height:n,radius:n}}function gH(t,e,n){var i;const o={},r=e.stroke||(n==null?void 0:n.stroke),s=r!=null&&r.color?Ri(r.color):"",l=r!=null&&r.width?Number((i=r.width)!=null?i:1):"";o.width=t.width,o.height=t.height,o.borderRadius=t.radius;const a=e.background_color||(n==null?void 0:n.color);return o.background=Ri(a),s&&l&&(o.boxShadow=`inset 0 0 0 ${Et(l)} ${s}`),o}function vr(t,e,n){if(!t||!t.shape||!t.shape.type||!e.includes(t.shape.type)||t.type!=="shape_drawable")return n;let i;if(t.shape.type==="rounded_rectangle")i=fH(t.shape);else if(t.shape.type==="circle")i=mH(t.shape);else return n;return gH(i,t.shape,{color:t.color,stroke:t.stroke})}let Bl;function Z_(){if(typeof document>"u"&&(Bl=!0),Bl!==void 0)return Bl;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),Bl=t.scrollHeight===1,document.body.removeChild(t),Bl}function hH(t,e){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:e}function vH(t,e,n){return t==="left"||t==="center"||t==="right"||t==="space-between"||t==="space-around"||t==="space-evenly"||t==="start"||t==="end"?t==="left"?e==="ltr"?"start":"end":t==="right"?e==="ltr"?"end":"start":t:n}function bH(){}function Ts(t){return{subscribe(e){return e(t),bH}}}function Wu(t,e,n,i){const o=[],r=i.prototypes;return r&&t.forEach(((s,l)=>{if(s===null||typeof s!="object")return;const a=e.preparePrototypeVariables(i.data_element_name||"it",s,l);let c,d;for(let u=0;u<r.length;++u){const p=r[u];if(p.div){if(p.selector===void 0){c=p.div,d=n.getJsonWithVars(p.id,a);break}if(n.getJsonWithVars(p.selector,a)){c=p.div,d=n.getJsonWithVars(p.id,a);break}}}c&&o.push({div:c,id:d,vars:a})})),o}const ra={"container-separator":"divkit-e4041","container-separator__item":"divkit-566e3","container-separator__shape":"divkit-4178a"};function yH(t,e){let n=0,i,o=!1;return function(){const r=Date.now();return!n||Math.abs(r-n)>e?(n=r,i=t.apply(this,arguments)):(o||(o=!0,setTimeout((()=>{o=!1,i=t.apply(this,arguments)}),e)),i)}}function wH(t){const e=t.getBoundingClientRect(),n=getComputedStyle(t);return{top:e.top-parseFloat(n.marginTop),right:e.right+parseFloat(n.marginRight),bottom:e.bottom+parseFloat(n.marginBottom),left:e.left-parseFloat(n.marginLeft)}}const{window:$H}=Ur;function x_(t,e,n){const i=t.slice();return i[16]=e[n],i}function Q_(t){let e,n,i=`${t[16].style.width}px`,o=`${t[16].style.height}px`,r=`${t[16].style.borderRadius}px`,s,l=`${t[16].left}px`,a=`${t[16].top}px`,c=`${t[16].width}px`,d=`${t[16].height}px`;return{c(){e=Zt("div"),n=Zt("div"),s=Ai(),K(n,"class",ra["container-separator__shape"]),He(n,"width",i),He(n,"height",o),He(n,"border-radius",r),He(n,"background",t[16].style.background),He(n,"box-shadow",t[16].style.boxShadow),K(e,"class",ra["container-separator__item"]),He(e,"left",l),He(e,"top",a),He(e,"width",c),He(e,"height",d)},m(u,p){rt(u,e,p),Vn(e,n),Vn(e,s)},p(u,p){p&2&&i!==(i=`${u[16].style.width}px`)&&He(n,"width",i),p&2&&o!==(o=`${u[16].style.height}px`)&&He(n,"height",o),p&2&&r!==(r=`${u[16].style.borderRadius}px`)&&He(n,"border-radius",r),p&2&&He(n,"background",u[16].style.background),p&2&&He(n,"box-shadow",u[16].style.boxShadow),p&2&&l!==(l=`${u[16].left}px`)&&He(e,"left",l),p&2&&a!==(a=`${u[16].top}px`)&&He(e,"top",a),p&2&&c!==(c=`${u[16].width}px`)&&He(e,"width",c),p&2&&d!==(d=`${u[16].height}px`)&&He(e,"height",d)},d(u){u&&it(e)}}}function kH(t){let e,n,i,o=ci(t[1]),r=[];for(let s=0;s<o.length;s+=1)r[s]=Q_(x_(t,o,s));return{c(){e=Zt("div");for(let s=0;s<r.length;s+=1)r[s].c();K(e,"class",ra["container-separator"])},m(s,l){rt(s,e,l);for(let a=0;a<r.length;a+=1)r[a]&&r[a].m(e,null);t[13](e),n||(i=en($H,"resize",t[2]),n=!0)},p(s,[l]){if(l&2){o=ci(s[1]);let a;for(a=0;a<o.length;a+=1){const c=x_(s,o,a);r[a]?r[a].p(c,l):(r[a]=Q_(c),r[a].c(),r[a].m(e,null))}for(;a<r.length;a+=1)r[a].d(1);r.length=o.length}},i:me,o:me,d(s){s&&it(e),Co(r,s),t[13](null),n=!1,i()}}}const jH=10;function Sd(t,e,n,i,o,r){const s=e.margins.left,l=e.margins.right,a=e.margins.top,c=e.margins.bottom;r?t.push({top:n.bottom+a,left:o.left+s,width:Math.max(0,o.right-o.left-s-l),height:i.top-n.bottom-a-c,style:e.style}):t.push({top:o.top+a,left:n.right+s,width:i.left-n.right-s-l,height:Math.max(0,o.bottom-o.top-a-c),style:e.style})}function ef(t,e,n,i,o,r){const s={top:Math.min(...n.map((l=>l.top))),right:Math.max(...n.map((l=>l.right))),bottom:Math.max(...n.map((l=>l.bottom))),left:Math.min(...n.map((l=>l.left)))};if(e!=null&&e.show_at_start){let l,a;o==="space-around"||o==="space-evenly"?(l=r.left-e.style.width,a=r.top-e.style.height):(l=n[0].left-e.style.width-e.margins.left-e.margins.right,a=n[0].top-e.style.height-e.margins.top-e.margins.bottom),Sd(t,e,{right:l,bottom:a},n[0],s,i)}if(e!=null&&e.show_between)for(let l=0;l<n.length-1;++l)Sd(t,e,n[l],n[l+1],s,i);if(e!=null&&e.show_at_end){const l=n[n.length-1];let a,c;o==="space-around"||o==="space-evenly"?(a=r.bottom+e.style.height,c=r.right+e.style.width):(a=l.bottom+e.style.height+e.margins.top+e.margins.bottom,c=l.right+e.style.width+e.margins.left+e.margins.right),Sd(t,e,l,{top:a,left:c},s,i)}}function SH(t,e,n){let i,{orientation:o}=e,{separator:r}=e,{lineSeparator:s}=e,{contentHAlign:l}=e,{contentVAlign:a}=e,{direction:c}=e;const d=yH(v,jH);let u=[],p,_=!1,f=null,m=null;function h(b){b.some((w=>{var k;const E=(k=w.target)==null?void 0:k.classList;return!(E!=null&&E.contains(ra["container-separator__shape"]))&&!(E!=null&&E.contains(ra["container-separator"]))}))&&d()}function v(){if(!i)return;const b=i.getBoundingClientRect(),w=window.getComputedStyle(i),k={top:b.top+parseFloat(w.paddingTop),right:b.right-parseFloat(w.paddingRight),bottom:b.bottom-parseFloat(w.paddingBottom),left:b.left+parseFloat(w.paddingLeft)};n(1,u=[]);let E=[...i.children].filter((A=>A!==p&&!A.classList.contains(jc.outer__border))),T=[];for(;E.length;){const A=[],O=E.shift();A.push(O);let M=O.getBoundingClientRect(),D=M.left,R=M.right,U=M.bottom;for(;E.length;){let B=E[0],C=B.getBoundingClientRect();if(o==="vertical"){if(C.top<U)break}else if(c==="ltr"?C.left<R:C.right>D)break;R=Math.max(R,C.right),D=Math.min(D,C.left),U=Math.max(U,C.bottom),A.push(B),E.shift()}T.push(A)}const j=[];T.forEach((A=>{const O=A.map((D=>wH(D)));c==="rtl"&&o==="horizontal"&&O.reverse(),r&&ef(u,r,O,o==="vertical",o==="vertical"?a:l,k);const M={top:Math.min(...O.map((D=>D.top))),right:Math.max(...O.map((D=>D.right))),bottom:Math.max(...O.map((D=>D.bottom))),left:Math.min(...O.map((D=>D.left)))};j.push(M)})),c==="rtl"&&o==="vertical"&&j.reverse(),s&&ef(u,s,j,o==="horizontal",o==="vertical"?l:a,k),u.forEach((A=>{A.top-=b.top,A.left-=b.left}))}Sr((()=>{n(9,_=!0)})),jo((()=>{n(9,_=!1)}));function y(b){Wi[b?"unshift":"push"]((()=>{p=b,n(0,p)}))}return t.$$set=b=>{"orientation"in b&&n(3,o=b.orientation),"separator"in b&&n(4,r=b.separator),"lineSeparator"in b&&n(5,s=b.lineSeparator),"contentHAlign"in b&&n(6,l=b.contentHAlign),"contentVAlign"in b&&n(7,a=b.contentVAlign),"direction"in b&&n(8,c=b.direction)},t.$$.update=()=>{t.$$.dirty&1&&n(12,i=(p==null?void 0:p.parentElement)||null),t.$$.dirty&7680&&(_&&i||f||m)&&(f&&(f.disconnect(),n(10,f=null)),m&&(m.disconnect(),n(11,m=null)),_&&i&&(typeof MutationObserver<"u"&&(n(10,f=new MutationObserver(h)),f.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),typeof ResizeObserver<"u"&&(n(11,m=new ResizeObserver(d)),m.observe(i)))),t.$$.dirty&4608&&_&&i&&d()},[p,u,d,o,r,s,l,a,c,_,f,m,i,y]}class CH extends Qi{constructor(e){super(),xi(this,e,SH,kH,Pi,{orientation:3,separator:4,lineSeparator:5,contentHAlign:6,contentVAlign:7,direction:8})}}const{Boolean:TH}=Ur;function tf(t,e,n){const i=t.slice();return i[49]=e[n],i}function nf(t){let e,n;return e=new Cr({props:{componentContext:t[49],layoutParams:t[8]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&512&&(r.componentContext=i[49]),o[0]&256&&(r.layoutParams=i[8]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function of(t){let e,n;return e=new CH({props:{direction:t[10],separator:t[5],lineSeparator:t[6],orientation:t[2],contentHAlign:t[4],contentVAlign:t[3]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1024&&(r.direction=i[10]),o[0]&32&&(r.separator=i[5]),o[0]&64&&(r.lineSeparator=i[6]),o[0]&4&&(r.orientation=i[2]),o[0]&16&&(r.contentHAlign=i[4]),o[0]&8&&(r.contentVAlign=i[3]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function zH(t){let e,n,i,o=ci(t[9]),r=[];for(let a=0;a<o.length;a+=1)r[a]=nf(tf(t,o,a));const s=a=>nt(r[a],1,1,(()=>{r[a]=null}));let l=(t[5]||t[6])&&of(t);return{c(){for(let a=0;a<r.length;a+=1)r[a].c();e=Ai(),l&&l.c(),n=si()},m(a,c){for(let d=0;d<r.length;d+=1)r[d]&&r[d].m(a,c);rt(a,e,c),l&&l.m(a,c),rt(a,n,c),i=!0},p(a,c){if(c[0]&768){o=ci(a[9]);let d;for(d=0;d<o.length;d+=1){const u=tf(a,o,d);r[d]?(r[d].p(u,c),Ue(r[d],1)):(r[d]=nf(u),r[d].c(),Ue(r[d],1),r[d].m(e.parentNode,e))}for(ui(),d=o.length;d<r.length;d+=1)s(d);pi()}a[5]||a[6]?l?(l.p(a,c),c[0]&96&&Ue(l,1)):(l=of(a),l.c(),Ue(l,1),l.m(n.parentNode,n)):l&&(ui(),nt(l,1,1,(()=>{l=null})),pi())},i(a){if(!i){for(let c=0;c<o.length;c+=1)Ue(r[c]);Ue(l),i=!0}},o(a){r=r.filter(TH);for(let c=0;c<r.length;c+=1)nt(r[c]);nt(l),i=!1},d(a){a&&(it(e),it(n)),Co(r,a),l&&l.d(a)}}}function EH(t){let e,n;return e=new qo({props:{cls:kn("container",Y_,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:[zH]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&8192&&(r.cls=kn("container",Y_,i[13])),o[0]&1&&(r.componentContext=i[0]),o[0]&2&&(r.layoutParams=i[1]),o[0]&4096&&(r.style=i[12]),o[0]&16384&&(r.additionalPaddings=i[14]),o[0]&128&&(r.heightByAspect=!!i[7]),o[0]&512&&(r.parentOf=i[9]),o[0]&1916|o[1]&2097152&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}const AH={start:"start",center:"center",end:"end","space-between":"start","space-around":"start","space-evenly":"start"},OH={start:"start",center:"center",end:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},rf=["rounded_rectangle","circle"];function MH(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,h,v,y,b,w,k,E,T,j,A=me,O=()=>(A(),A=De(m,(st=>n(35,j=st))),m),M,D=me,R=()=>(D(),D=De(f,(st=>n(36,M=st))),f),U,B=me,C=()=>(B(),B=De(_,(st=>n(37,U=st))),_),q,V=me,Y=()=>(V(),V=De(p,(st=>n(38,q=st))),p),x,de=me,_e=()=>(de(),de=De(u,(st=>n(39,x=st))),u),G,Q=me,oe=()=>(Q(),Q=De(d,(st=>n(40,G=st))),d),he,ze,W=me,Ke=()=>(W(),W=De(c,(st=>n(41,ze=st))),c),at,Te=me,ot=()=>(Te(),Te=De(a,(st=>n(42,at=st))),a),J,ue=me,fe=()=>(ue(),ue=De(xe,(st=>n(43,J=st))),xe),Qe,ye=me,Ee=()=>(ye(),ye=De(l,(st=>n(44,Qe=st))),l),Ye,vt=me,ne=()=>(vt(),vt=De(s,(st=>n(45,Ye=st))),s),pe,kt=me,$e=()=>(kt(),kt=De(r,(st=>n(46,pe=st))),r);t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>de())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>Te())),t.$$.on_destroy.push((()=>ue())),t.$$.on_destroy.push((()=>ye())),t.$$.on_destroy.push((()=>vt())),t.$$.on_destroy.push((()=>kt()));let{componentContext:et}=e,{layoutParams:le=void 0}=e;const Ve=ro(vo),Xe=Ve.direction;ko(t,Xe,(st=>n(10,he=st)));let xe,jt="vertical",Vt="start",ln="start",sn=null,At=null,pn,dn={};function Rn(){n(2,jt="vertical"),n(3,Vt="start"),n(4,ln="start"),n(7,pn=void 0)}function Ln(st){n(0,et={...et,json:{...et.json,items:st.filter(os)}})}let qe=[];return jo((()=>{qe.forEach((st=>{st.destroy()}))})),t.$$set=st=>{"componentContext"in st&&n(0,et=st.componentContext),"layoutParams"in st&&n(1,le=st.layoutParams)},t.$$.update=()=>{var st,li,bt,Cn,Ut,gn,Lt,wn,vn;if(t.$$.dirty[0]&1&&n(34,i=et.origJson),t.$$.dirty[1]&8&&i&&Rn(),t.$$.dirty[0]&1&&n(33,o=et.json.items),t.$$.dirty[0]&1&&$e(n(25,r=typeof((st=et.json.item_builder)==null?void 0:st.data)=="string"?et.getDerivedFromVars((li=et.json.item_builder)==null?void 0:li.data,void 0,!0):(bt=et.json.item_builder)!=null&&bt.data?Ts(et.json.item_builder.data):void 0)),t.$$.dirty[0]&1&&ne(n(24,s=et.getDerivedFromVars(et.json.orientation))),t.$$.dirty[0]&1&&Ee(n(23,l=et.getDerivedFromVars(et.json.layout_mode))),t.$$.dirty[0]&1&&ot(n(22,a=et.getDerivedFromVars(et.json.content_alignment_vertical))),t.$$.dirty[0]&1&&Ke(n(21,c=et.getDerivedFromVars(et.json.content_alignment_horizontal))),t.$$.dirty[0]&1&&oe(n(20,d=et.getDerivedFromVars(et.json.separator))),t.$$.dirty[0]&1&&_e(n(19,u=et.getDerivedFromVars(et.json.line_separator))),t.$$.dirty[0]&1&&Y(n(18,p=et.getDerivedFromVars(et.json.aspect))),t.$$.dirty[0]&1&&C(n(17,_=et.getDerivedFromVars(et.json.width))),t.$$.dirty[0]&1&&R(n(16,f=et.getDerivedFromVars(et.json.height))),t.$$.dirty[0]&1&&O(n(15,m=et.getDerivedFromVars(et.json.clip_to_bounds))),t.$$.dirty[0]&513|t.$$.dirty[1]&32772){let Jt=[];if(et.json.item_builder&&Array.isArray(pe)&&Array.isArray(et.json.item_builder.prototypes)){const Kt=et.json.item_builder;Jt=Wu(pe,Ve,et,Kt)}else Jt=(Array.isArray(o)&&o||[]).map((Kt=>({div:Kt})));qe.forEach((Kt=>{Kt.destroy()})),n(9,qe=Jt.map(((Kt,Un)=>et.produceChildContext(Kt.div,{path:Un,variables:Kt.vars,id:Kt.id}))))}if(t.$$.dirty[0]&513){let Jt=[];qe.forEach((Kt=>{Jt.push(et.getDerivedFromVars({width:Kt.json.width,height:Kt.json.height}))})),fe(n(11,xe=Ms(Jt,(Kt=>[...Kt]))))}if(t.$$.dirty[0]&4|t.$$.dirty[1]&16384&&n(2,jt=_H(Ye,jt)),t.$$.dirty[1]&8192&&n(28,h=Qe==="wrap"),t.$$.dirty[0]&268435460&&n(32,v=jt!=="horizontal"&&!h),t.$$.dirty[0]&268435460&&n(31,y=jt!=="vertical"&&!h),t.$$.dirty[0]&4|t.$$.dirty[1]&4096&&n(30,b=jt==="overlap"&&!J.every(uH)),t.$$.dirty[0]&4|t.$$.dirty[1]&4096&&n(29,w=jt==="overlap"&&!J.every(pH)),t.$$.dirty[0]&8|t.$$.dirty[1]&2048&&n(3,Vt=hH(at,Vt)),t.$$.dirty[0]&1040|t.$$.dirty[1]&1024&&n(4,ln=vH(ze,he,ln)),t.$$.dirty[0]&36|t.$$.dirty[1]&512)if(G!=null&&G.style&&jt!=="overlap"&&Z_()){const Jt=vr(G.style,rf,(sn==null?void 0:sn.style)||null);Jt?n(5,sn={show_at_start:!!((Cn=G.show_at_start)!=null&&Cn),show_at_end:!!((Ut=G.show_at_end)!=null&&Ut),show_between:!!((gn=G.show_between)==null||gn),style:Jt,margins:G_(G.margins)}):n(5,sn=null)}else n(5,sn=null);if(t.$$.dirty[0]&68|t.$$.dirty[1]&256)if(x!=null&&x.style&&jt!=="overlap"&&Z_()){const Jt=vr(x.style,rf,(At==null?void 0:At.style)||null);Jt?n(6,At={show_at_start:!!((Lt=x.show_at_start)!=null&&Lt),show_at_end:!!((wn=x.show_at_end)!=null&&wn),show_between:!!((vn=x.show_between)==null||vn),style:Jt,margins:G_(x.margins)}):n(6,At=null)}else n(6,At=null);if(t.$$.dirty[0]&100&&n(14,k=sn||At?cH(jt,sn,At):null),t.$$.dirty[1]&128){const Jt=q==null?void 0:q.ratio;Jt&&Zo(Jt)?n(7,pn=Jt):n(7,pn=void 0)}if(t.$$.dirty[0]&1879048606|t.$$.dirty[1]&99){let Jt={};jt==="overlap"&&(Jt.overlapParent=!0),jt!=="horizontal"&&(Jt.parentHAlign=h?"start":AH[ln]),jt!=="vertical"&&(Jt.parentVAlign=h?"start":OH[Vt]);const Kt=(U==null?void 0:U.type)==="wrap_content"||(U==null?void 0:U.type)==="match_parent"&&(le==null?void 0:le.parentHorizontalWrapContent),Un=!M||M.type==="wrap_content"||M.type==="match_parent"&&(le==null?void 0:le.parentVerticalWrapContent);!v&&Kt&&(Jt.parentHorizontalWrapContent=!0),!pn&&!y&&Un&&(Jt.parentVerticalWrapContent=!0),Jt.stretchWidth=b,Jt.stretchHeight=w,jt==="horizontal"&&(Jt.parentContainerOrientation="horizontal"),jt==="vertical"&&(Jt.parentContainerOrientation="vertical"),h&&(Jt.parentContainerWrap=!0),n(8,dn=us(Jt,dn))}t.$$.dirty[0]&268435484|t.$$.dirty[1]&16&&n(13,E={orientation:jt,valign:Vt,halign:ln,wrap:h,overflow:j===!1||j===0?"visible":void 0}),t.$$.dirty[0]&228&&n(12,T={gap:sn||At?dH(jt,sn,At):void 0,"aspect-ratio":pn})},[et,le,jt,Vt,ln,sn,At,pn,dn,qe,he,xe,T,E,k,m,f,_,p,u,d,c,a,l,s,r,Xe,Ln,h,w,b,y,v,o,i,j,M,U,q,x,G,ze,at,J,Qe,Ye,pe]}class PH extends Qi{constructor(e){super(),xi(this,e,MH,EH,Pi,{componentContext:0,layoutParams:1},null,[-1,-1])}}const IH="divkit-5196a",DH="divkit-8d569",VH="divkit-f0c05",LH="divkit-563bc",du={separator:IH,separator_orientation_horizontal:DH,separator_orientation_vertical:VH,separator__inner:LH};function Ku(t,e){return t==="vertical"||t==="horizontal"?t:e}function sf(t){let e,n;return{c(){e=Zt("span"),K(e,"class",du.separator__inner),K(e,"style",n=Nn(t[3]))},m(i,o){rt(i,e,o)},p(i,o){o&8&&n!==(n=Nn(i[3]))&&K(e,"style",n)},d(i){i&&it(e)}}}function FH(t){let e,n=t[4]&&sf(t);return{c(){n&&n.c(),e=si()},m(i,o){n&&n.m(i,o),rt(i,e,o)},p(i,o){i[4]?n?n.p(i,o):(n=sf(i),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(i){i&&it(e),n&&n.d(i)}}}function NH(t){let e,n;return e=new qo({props:{cls:kn("separator",du,t[2]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[FH]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,[o]){const r={};o&4&&(r.cls=kn("separator",du,i[2])),o&1&&(r.componentContext=i[0]),o&2&&(r.layoutParams=i[1]),o&8216&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function qH(t,e,n){let i,o,r,s,l,a,c,d,u=me,p=()=>(u(),u=De(o,(y=>n(11,d=y))),o);t.$$.on_destroy.push((()=>u()));let{componentContext:_}=e,{layoutParams:f=void 0}=e,m="horizontal",h="rgba(0,0,0,0.08)";function v(){n(6,m="horizontal"),n(7,h="rgba(0,0,0,0.08)")}return t.$$set=y=>{"componentContext"in y&&n(0,_=y.componentContext),"layoutParams"in y&&n(1,f=y.layoutParams)},t.$$.update=()=>{t.$$.dirty&1&&n(10,i=_.origJson),t.$$.dirty&1024&&i&&v(),t.$$.dirty&1&&p(n(5,o=_.getDerivedFromVars(_.json.delimiter_style))),t.$$.dirty&2112&&n(6,m=Ku(d==null?void 0:d.orientation,m)),t.$$.dirty&2048&&n(4,r=!(d!=null&&d.color&&(d.color==="transparent"||d.color.length===9&&d.color.indexOf("#00")===0))),t.$$.dirty&2176&&n(7,h=Ri(d==null?void 0:d.color,1,h)),t.$$.dirty&64&&n(9,s=m==="horizontal"?"100%":Et(1)),t.$$.dirty&64&&n(8,l=m==="horizontal"?Et(1):"100%"),t.$$.dirty&896&&n(3,a={background:h,width:s,height:l}),t.$$.dirty&64&&n(2,c={orientation:m})},[_,f,c,a,r,o,m,h,l,s,i,d]}class RH extends Qi{constructor(e){super(),xi(this,e,qH,NH,Pi,{componentContext:0,layoutParams:1})}}const BH="divkit-8ae57",HH="divkit-4eb06",UH="divkit-eba6b",JH="divkit-37495",WH="divkit-cdd4f",sa={image:BH,"image_is-width-content":"divkit-0a28e","image_is-height-content":"divkit-f167b",image__image:HH,image_error:UH,"image_is-rtl-mirror":"divkit-1b179","image__aspect-wrapper":"divkit-1afad",image_aspect:JH,image_loaded:WH,"divkit-image-appearance":"divkit-e49b3","image_before-appearance":"divkit-8ea57"};function KH(t,e,n){let i=t.content_alignment_horizontal;const o=t.content_alignment_vertical;return i==="start"?i=e==="ltr"?"left":"right":i==="end"&&(i=e==="ltr"?"right":"left"),i&&i!=="left"&&i!=="center"&&i!=="right"||o&&o!=="top"&&o!=="center"&&o!=="bottom"?n:l2({content_alignment_horizontal:i,content_alignment_vertical:o})}function _2(t){return t.startsWith("data:")?su(t):`data:image/jpg;base64,${su(t)}`}function YH(t,e,n){let{componentContext:i}=e;const o=ro(vo);let r=null;function s(){r&&r.update(i)}return Sr((()=>{i.fakeElement||(r=a2(null,o,i))})),td(s),jo((()=>{r&&r.destroy()})),t.$$set=l=>{"componentContext"in l&&n(0,i=l.componentContext)},[i]}class Jr extends Qi{constructor(e){super(),xi(this,e,YH,null,Pi,{componentContext:0})}}function GH(t){let e,n;return e=new Jr({props:{componentContext:t[0]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function XH(t){let e,n;return e=new qo({props:{cls:kn("image",sa,t[9]),componentContext:t[0],layoutParams:t[1],customDescription:!0,$$slots:{default:[QH]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&512&&(r.cls=kn("image",sa,i[9])),o[0]&1&&(r.componentContext=i[0]),o[0]&2&&(r.layoutParams=i[1]),o[0]&67110780|o[2]&64&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function ZH(t){let e,n,i,o,r,s,l;return{c(){e=Zt("img"),K(e,"class",sa.image__image),rr(e.src,n=t[2]===Es?la:t[3])||K(e,"src",n),K(e,"loading",i=t[26]?"eager":"lazy"),K(e,"decoding","async"),K(e,"style",o=Nn(t[8])),K(e,"alt",t[10]),K(e,"aria-hidden",r=t[10]?null:"true")},m(a,c){rt(a,e,c),t[63](e),s||(l=[en(e,"load",t[28]),en(e,"error",t[29])],s=!0)},p(a,c){c[0]&12&&!rr(e.src,n=a[2]===Es?la:a[3])&&K(e,"src",n),c[0]&67108864&&i!==(i=a[26]?"eager":"lazy")&&K(e,"loading",i),c[0]&256&&o!==(o=Nn(a[8]))&&K(e,"style",o),c[0]&1024&&K(e,"alt",a[10]),c[0]&1024&&r!==(r=a[10]?null:"true")&&K(e,"aria-hidden",r)},d(a){a&&it(e),t[63](null),s=!1,so(l)}}}function xH(t){let e,n,i,o,r,s,l=`${t[4]}%`,a,c;return{c(){e=Zt("span"),n=Zt("img"),K(n,"class",sa.image__image),rr(n.src,i=t[2]===Es?la:t[3])||K(n,"src",i),K(n,"loading",o=t[26]?"eager":"lazy"),K(n,"decoding","async"),K(n,"style",r=Nn(t[8])),K(n,"alt",t[10]),K(n,"aria-hidden",s=t[10]?null:"true"),K(e,"class",sa["image__aspect-wrapper"]),He(e,"padding-bottom",l)},m(d,u){rt(d,e,u),Vn(e,n),t[62](n),a||(c=[en(n,"load",t[28]),en(n,"error",t[29])],a=!0)},p(d,u){u[0]&12&&!rr(n.src,i=d[2]===Es?la:d[3])&&K(n,"src",i),u[0]&67108864&&o!==(o=d[26]?"eager":"lazy")&&K(n,"loading",o),u[0]&256&&r!==(r=Nn(d[8]))&&K(n,"style",r),u[0]&1024&&K(n,"alt",d[10]),u[0]&1024&&s!==(s=d[10]?null:"true")&&K(n,"aria-hidden",s),u[0]&16&&l!==(l=`${d[4]}%`)&&He(e,"padding-bottom",l)},d(d){d&&it(e),t[62](null),a=!1,so(c)}}}function lf(t){let e;function n(r,s){return r[9].aspect?xH:ZH}let i=n(t),o=i(t);return{c(){o.c(),e=si()},m(r,s){o.m(r,s),rt(r,e,s)},p(r,s){i===(i=n(r))&&o?o.p(r,s):(o.d(1),o=i(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&it(e),o.d(r)}}}function QH(t){let e=t[5],n,i=lf(t);return{c(){i.c(),n=si()},m(o,r){i.m(o,r),rt(o,n,r)},p(o,r){r[0]&32&&Pi(e,e=o[5])?(i.d(1),i=lf(o),i.c(),i.m(n.parentNode,n)):i.p(o,r)},d(o){o&&it(n),i.d(o)}}}function eU(t){let e,n,i,o;const r=[XH,GH],s=[];function l(a,c){return a[7]?1:0}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=si()},m(a,c){~e&&s[e].m(a,c),rt(a,i,c),o=!0},p(a,c){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&it(i),~e&&s[e].d(a)}}}const la="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",tU="empty://",nU="rgba(0,0,0,0.08)",ks=0,Cd=1,Es=2;function iU(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,h,v,y,b,w,k,E,T,j,A=me,O=()=>(A(),A=De(v,(dt=>n(47,j=dt))),v),M,D,R=me,U=()=>(R(),R=De(h,(dt=>n(49,D=dt))),h),B,C=me,q=()=>(C(),C=De(m,(dt=>n(50,B=dt))),m),V,Y=me,x=()=>(Y(),Y=De(f,(dt=>n(51,V=dt))),f),de,_e=me,G=()=>(_e(),_e=De(_,(dt=>n(52,de=dt))),_),Q,oe=me,he=()=>(oe(),oe=De(p,(dt=>n(53,Q=dt))),p),ze,W=me,Ke=()=>(W(),W=De(u,(dt=>n(54,ze=dt))),u),at,Te=me,ot=()=>(Te(),Te=De(d,(dt=>n(55,at=dt))),d),J,ue=me,fe=()=>(ue(),ue=De(c,(dt=>n(56,J=dt))),c),Qe,ye=me,Ee=()=>(ye(),ye=De(a,(dt=>n(57,Qe=dt))),a),Ye,vt=me,ne=()=>(vt(),vt=De(l,(dt=>n(58,Ye=dt))),l),pe,kt=me,$e=()=>(kt(),kt=De(s,(dt=>n(59,pe=dt))),s),et,le=me,Ve=()=>(le(),le=De(o,(dt=>n(60,et=dt))),o),Xe,xe=me,jt=()=>(xe(),xe=De(r,(dt=>n(61,Xe=dt))),r),Vt,ln=me,sn=()=>(ln(),ln=De(y,(dt=>n(26,Vt=dt))),y);t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>_e())),t.$$.on_destroy.push((()=>oe())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>Te())),t.$$.on_destroy.push((()=>ue())),t.$$.on_destroy.push((()=>ye())),t.$$.on_destroy.push((()=>vt())),t.$$.on_destroy.push((()=>kt())),t.$$.on_destroy.push((()=>le())),t.$$.on_destroy.push((()=>xe())),t.$$.on_destroy.push((()=>ln()));let{componentContext:At}=e,{layoutParams:pn=void 0}=e;const dn=ro(vo),Rn=dn.direction;ko(t,Rn,(dt=>n(48,M=dt)));let Ln,qe=ks,st=!1,li=nU,bt=!1,Cn,Ut="",gn="none",Lt="50% 50%",wn="0",vn,Jt="source_in",Kt="",Un="",Kn=0,fi=0,Je=0,ht="",ct="",gt=!1;function qt(){n(33,gn="none"),n(34,Lt="50% 50%"),n(36,Jt="source_in")}function St(dt){n(2,qe=ks)}function Ot(dt){n(34,Lt=KH(dt,M,Lt))}function nn(){qe===ks&&n(2,qe=Cd)}function ei(){qe===ks&&n(2,qe=Es)}jo((()=>{dn.removeSvgFilter(vn,Jt)}));function Ft(dt){Wi[dt?"unshift":"push"]((()=>{Ln=dt,n(6,Ln)}))}function xt(dt){Wi[dt?"unshift":"push"]((()=>{Ln=dt,n(6,Ln)}))}return t.$$set=dt=>{"componentContext"in dt&&n(0,At=dt.componentContext),"layoutParams"in dt&&n(1,pn=dt.layoutParams)},t.$$.update=()=>{if(t.$$.dirty[0]&1&&n(46,i=At.origJson),t.$$.dirty[1]&32768&&i&&qt(),t.$$.dirty[0]&1&&Ve(n(25,o=At.getDerivedFromVars(At.json.image_url))),t.$$.dirty[0]&1&&jt(n(24,r=At.getDerivedFromVars(At.json.gif_url))),t.$$.dirty[0]&1&&$e(n(23,s=At.getDerivedFromVars(At.json.width))),t.$$.dirty[0]&1&&ne(n(22,l=At.getDerivedFromVars(At.json.height))),t.$$.dirty[0]&1&&Ee(n(21,a=At.getDerivedFromVars(At.json.preview))),t.$$.dirty[0]&1&&fe(n(20,c=At.getDerivedFromVars(At.json.placeholder_color))),t.$$.dirty[0]&1&&ot(n(19,d=At.getDerivedFromVars(At.json.scale))),t.$$.dirty[0]&1&&Ke(n(18,u=At.getDerivedFromVars({content_alignment_horizontal:At.json.content_alignment_horizontal,content_alignment_vertical:At.json.content_alignment_vertical}))),t.$$.dirty[0]&1&&he(n(17,p=At.getDerivedFromVars(At.json.accessibility))),t.$$.dirty[0]&1&&G(n(16,_=At.getDerivedFromVars(At.json.aspect))),t.$$.dirty[0]&1&&x(n(15,f=At.getDerivedFromVars(At.json.tint_color))),t.$$.dirty[0]&1&&q(n(14,m=At.getDerivedFromVars(At.json.tint_mode))),t.$$.dirty[0]&1&&U(n(13,h=At.getDerivedFromVars(At.json.appearance_animation))),t.$$.dirty[0]&1&&O(n(12,v=At.getDerivedFromVars(At.json.filters))),t.$$.dirty[0]&1&&sn(n(11,y=At.getDerivedFromVars(At.json.preload_required))),t.$$.dirty[0]&1073741825|t.$$.dirty[1]&1610612736){let dt=At.json.type==="gif"?Xe:et;n(30,st=dt===tU),st&&(dt=la),n(3,Cn=dt)}if(t.$$.dirty[0]&8&&St(),t.$$.dirty[0]&9&&(Cn?n(7,bt=!1):(n(7,bt=!0),At.logError(tt(new Error(`Missing "${At.json.type==="gif"?"gif_url":"image_url"}" for "${At.json.type}"`))))),t.$$.dirty[1]&268435456&&n(45,b=(pe==null?void 0:pe.type)==="wrap_content"),t.$$.dirty[1]&134217728&&n(44,w=(Ye==null?void 0:Ye.type)==="wrap_content"),t.$$.dirty[0]&1073741828|t.$$.dirty[1]&67108864){const dt=Qe;(qe===ks||qe===Es||st)&&dt?n(32,Ut=`url("${_2(dt)}")`):n(32,Ut="")}if(t.$$.dirty[0]&1073741828|t.$$.dirty[1]&33554433&&(qe===ks||qe===Es||st?n(31,li=Ri(J,1,li)):n(31,li="")),t.$$.dirty[1]&16777220&&n(33,gn=s2(at)||gn),t.$$.dirty[1]&8388608&&Ot(ze),t.$$.dirty[1]&4194304&&n(10,k=(Q==null?void 0:Q.description)||""),t.$$.dirty[1]&2097152){const dt=de==null?void 0:de.ratio;dt&&Zo(dt)?n(4,wn=(100/Number(dt)).toFixed(2)):n(4,wn="0")}if(t.$$.dirty[1]&1572912){const dt=V,We=dt?Ri(dt):void 0,bi=u2(B,Jt);(We!==vn||bi!==Jt)&&(dn.removeSvgFilter(vn,Jt),n(5,Kt=We?dn.addSvgFilter(We,bi):""),n(35,vn=We),n(36,Jt=bi))}if(t.$$.dirty[1]&262144&&D&&D.type==="fade"){const dt=D;n(37,Un=c2(dt.interpolator,"ease_in_out").replace(/_/g,"-")),n(40,Je=uo(dt.duration,300)),n(39,fi=uo(dt.start_delay,0)),n(38,Kn=uo(dt.alpha,0))}if(t.$$.dirty[0]&1|t.$$.dirty[1]&196608){let dt="",We="";Array.isArray(j)&&j.length&&(dt=d2(j,At.logError)),dt&&(We="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),n(41,ht=dt),n(42,ct=We),n(43,gt=M==="rtl"&&Array.isArray(j)&&j.some((bi=>bi.type==="rtl_mirror")))}t.$$.dirty[0]&20|t.$$.dirty[1]&28736&&n(9,E={aspect:wn!=="0","is-width-content":b,"is-height-content":w,loaded:qe===Cd,"before-appearance":!!Un&&qe===ks,"is-rtl-mirror":gt}),t.$$.dirty[0]&36|t.$$.dirty[1]&4047&&n(8,T={"background-image":Ut,"background-color":Ut?void 0:li,"background-size":gn,"clip-path":ct||void 0,"object-fit":gn,"object-position":Lt,filter:[qe===Cd&&Kt?`url(#${Kt})`:"",ht].filter(Boolean).join(" "),"--divkit-appearance-interpolator":Un||void 0,"--divkit-appearance-fade-start":Un?Kn:void 0,"--divkit-appearance-delay":Un?`${fi}ms`:void 0,"--divkit-appearance-duration":Un?`${Je}ms`:void 0})},[At,pn,qe,Cn,wn,Kt,Ln,bt,T,E,k,y,v,h,m,f,_,p,u,d,c,a,l,s,r,o,Vt,Rn,nn,ei,st,li,Ut,gn,Lt,vn,Jt,Un,Kn,fi,Je,ht,ct,gt,w,b,i,j,M,D,B,V,de,Q,ze,at,J,Qe,Ye,pe,et,Xe,Ft,xt]}class af extends Qi{constructor(e){super(),xi(this,e,iU,eU,Pi,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const oU="divkit-ec408",rU="divkit-fde92",sU="divkit-800a9",lU="divkit-74c34",aU="divkit-82c25",cU="divkit-6ea46",dU="divkit-96d7e",cf={grid:oU,grid_halign_start:rU,grid_halign_center:sU,grid_halign_end:lU,grid_valign_start:aU,grid_valign_center:cU,grid_valign_end:dU};function df(t){return t>0&&t<1}function uf(t){return String(Math.ceil(t*1e3)/1e3)}function pf(t,e,n){if(t.some(df)){const l=Math.max(...t.filter(df).map((a=>1/a)));t=t.map((a=>a*l))}const i=t.every(Boolean);let o=0,r=0;const s=[];if(i){r=t.reduce(((l,a)=>l+a),0);for(let l=0;l<n;++l){if(!e[l])continue;const a=e[l]/t[l]*r;a>o&&(o=a)}}for(let l=0;l<n;++l)o?s[l]=`minmax(${Et(o*t[l]/r)},${uf(t[l])}fr)`:t[l]?s[l]=`${uf(t[l])}fr`:s[l]="auto";return s.join(" ")}function _f(t,e,n){const i=t.slice();return i[29]=e[n],i}function ff(t){let e,n;return e=new Cr({props:{componentContext:t[29].componentContext,layoutParams:t[29].layoutParams}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&16&&(r.componentContext=i[29].componentContext),o[0]&16&&(r.layoutParams=i[29].layoutParams),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function uU(t){let e,n,i=ci(t[4]),o=[];for(let s=0;s<i.length;s+=1)o[s]=ff(_f(t,i,s));const r=s=>nt(o[s],1,1,(()=>{o[s]=null}));return{c(){for(let s=0;s<o.length;s+=1)o[s].c();e=si()},m(s,l){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(s,l);rt(s,e,l),n=!0},p(s,l){if(l[0]&16){i=ci(s[4]);let a;for(a=0;a<i.length;a+=1){const c=_f(s,i,a);o[a]?(o[a].p(c,l),Ue(o[a],1)):(o[a]=ff(c),o[a].c(),Ue(o[a],1),o[a].m(e.parentNode,e))}for(ui(),a=i.length;a<o.length;a+=1)r(a);pi()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)Ue(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)nt(o[l]);n=!1},d(s){s&&it(e),Co(o,s)}}}function pU(t){let e,n;return e=new qo({props:{cls:kn("grid",cf,t[6]),componentContext:t[0],style:t[5],layoutParams:t[1],parentOf:t[2],replaceItems:t[11],$$slots:{default:[uU]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&64&&(r.cls=kn("grid",cf,i[6])),o[0]&1&&(r.componentContext=i[0]),o[0]&32&&(r.style=i[5]),o[0]&2&&(r.layoutParams=i[1]),o[0]&4&&(r.parentOf=i[2]),o[0]&16|o[1]&2&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function _U(t,e,n){let i,o,r,s,l,a,c,d,u,p=me,_=()=>(p(),p=De(l,(G=>n(23,u=G))),l),f,m=me,h=()=>(m(),m=De(s,(G=>n(24,f=G))),s),v,y=me,b=()=>(y(),y=De(M,(G=>n(25,v=G))),M),w,k=me,E=()=>(k(),k=De(r,(G=>n(26,w=G))),r);t.$$.on_destroy.push((()=>p())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>k()));let{componentContext:T}=e,{layoutParams:j=void 0}=e;const A=ro(vo).direction;ko(t,A,(G=>n(22,d=G)));let O=1,M,D,R=[],U=[],B=[],C=[],q=0,V="start",Y="start",x=[];function de(){n(12,O=1),n(18,V="start"),n(19,Y="start")}function _e(G){n(0,T={...T,json:{...T.json,items:G.filter(os)}})}return jo((()=>{x.forEach((G=>{G.destroy()}))})),t.$$set=G=>{"componentContext"in G&&n(0,T=G.componentContext),"layoutParams"in G&&n(1,j=G.layoutParams)},t.$$.update=()=>{if(t.$$.dirty[0]&1&&n(21,i=T.origJson),t.$$.dirty[0]&2097152&&i&&de(),t.$$.dirty[0]&1&&n(20,o=Array.isArray(T.json.items)&&T.json.items||[]),t.$$.dirty[0]&1&&E(n(9,r=T.getDerivedFromVars(T.json.column_count))),t.$$.dirty[0]&1&&h(n(8,s=T.getDerivedFromVars(T.json.content_alignment_vertical))),t.$$.dirty[0]&1&&_(n(7,l=T.getDerivedFromVars(T.json.content_alignment_horizontal))),t.$$.dirty[0]&67112960&&n(12,O=mr(w,O)),t.$$.dirty[0]&1048581&&(x.forEach((G=>{G.destroy()})),n(2,x=o.map(((G,Q)=>T.produceChildContext(G,{path:Q}))))),t.$$.dirty[0]&5){let G=[];x.forEach((Q=>{G.push(T.getDerivedFromVars({rowSpan:Q.json.row_span,columnSpan:Q.json.column_span,width:Q.json.width,height:Q.json.height}))})),b(n(3,M=Ms(G,(Q=>[...Q]))))}if(t.$$.dirty[0]&33681412){const G={};let Q=0,oe=0;n(13,R=[]),n(14,U=[]),n(15,B=[]),n(16,C=[]),n(4,D=x.map(((he,ze)=>{var W,Ke,at,Te;const ot=v[ze],J=Math.min(O,Number(ot.columnSpan)||1),ue=Number(ot.rowSpan)||1,fe=((W=ot.width)==null?void 0:W.type)==="match_parent"?Number(ot.width.weight||1)/J:0,Qe=((Ke=ot.height)==null?void 0:Ke.type)==="match_parent"?Number(ot.height.weight||1)/ue:0,ye=J===1&&((at=ot.width)==null?void 0:at.type)==="fixed"&&ot.width.value?Number(ot.width.value)/J:0,Ee=ue===1&&((Te=ot.height)==null?void 0:Te.type)==="fixed"&&ot.height.value?Number(ot.height.value)/ue:0;for(;;){let vt=!0;e:for(let ne=Q;ne<Q+J;++ne)for(let pe=oe;pe<oe+ue;++pe)if(G[ne+"_"+pe]){vt=!1;break e}if(vt)break;++Q,Q>O-J&&(Q=0,++oe)}const Ye={x:Q,y:oe,colSpan:J,rowSpan:ue};for(let vt=Q;vt<Q+J;++vt)for(let ne=oe;ne<oe+ue;++ne)G[vt+"_"+ne]=!0,(!R[vt]||R[vt]<fe)&&n(13,R[vt]=fe,R),(!U[ne]||U[ne]<Qe)&&n(14,U[ne]=Qe,U),(!B[vt]||B[vt]<ye)&&n(15,B[vt]=ye,B),(!C[ne]||C[ne]<Ee)&&n(16,C[ne]=Ee,C);return{componentContext:he,layoutParams:{gridArea:Ye}}}))),n(17,q=oe+1)}t.$$.dirty[0]&17039360&&n(18,V=Ju(f,V)),t.$$.dirty[0]&13107200&&n(19,Y=Uu(u,d,Y)),t.$$.dirty[0]&786432&&n(6,a={valign:V,halign:Y}),t.$$.dirty[0]&258048&&n(5,c={"grid-template-columns":pf(R,B,O),"grid-template-rows":pf(U,C,q)})},[T,j,x,M,D,c,a,l,s,r,A,_e,O,R,U,B,C,q,V,Y,o,i,d,u,f,v,w]}class fU extends Qi{constructor(e){super(),xi(this,e,_U,pU,Pi,{componentContext:0,layoutParams:1},null,[-1,-1])}}const mU="divkit-0bfe5",gU="divkit-2b11a",hU="divkit-dbcd8",vU="divkit-6df4b",bU="divkit-47152",yU="divkit-23231",wU="divkit-b29e2",wr={gallery:mU,gallery__scroller:gU,gallery_scrollbar_none:hU,gallery_orientation_horizontal:vU,gallery_orientation_vertical:bU,"gallery_scroll-snap":"divkit-e6acd","gallery__items-grid":"divkit-2d0b9",gallery__items:yU,gallery__arrow:wU,"gallery__arrow-icon-path":"divkit-9bb64"},$U="divkit-ff821",kU="divkit-baff3",jU="divkit-70d07",SU="divkit-da11c",gr={arrow:$U,arrow__icon:kU,arrow_left:jU,arrow_right:SU};function CU(t,e){return t==="start"||t==="center"||t==="end"?t:e}function TU(t){const e=[];let n=t[0],i=1;for(let o=1;o<=t.length;o++)t[o]!==n?(e.push(i>1?`repeat(${i}, ${n})`:n),n=t[o],i=1):i++;return e.join(" ")}function ps(t,e){let n=t%e;return n<0&&(n+=e),n}const{Boolean:f2}=Ur;function mf(t,e,n){const i=t.slice();return i[80]=e[n],i[81]=e,i[82]=n,i}function gf(t,e,n){const i=t.slice();return i[83]=e[n],i}function hf(t){let e;return{c(){e=Zt("div"),K(e,"class",wr.gallery__gap),He(e,"width",t[4]==="horizontal"?t[12]:void 0),He(e,"height",t[4]!=="horizontal"?t[12]:void 0)},m(n,i){rt(n,e,i)},p(n,i){i[0]&4112&&He(e,"width",n[4]==="horizontal"?n[12]:void 0),i[0]&4112&&He(e,"height",n[4]!=="horizontal"?n[12]:void 0)},d(n){n&&it(e)}}}function vf(t){let e,n,i,o=t[83].hasGapBefore&&hf(t);return n=new Cr({props:{componentContext:t[83].componentContext,layoutParams:t[6]}}),{c(){o&&o.c(),e=Ai(),Qn(n.$$.fragment)},m(r,s){o&&o.m(r,s),rt(r,e,s),Zn(n,r,s),i=!0},p(r,s){r[83].hasGapBefore?o?o.p(r,s):(o=hf(r),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const l={};s[0]&262144&&(l.componentContext=r[83].componentContext),s[0]&64&&(l.layoutParams=r[6]),n.$set(l)},i(r){i||(Ue(n.$$.fragment,r),i=!0)},o(r){nt(n.$$.fragment,r),i=!1},d(r){r&&it(e),o&&o.d(r),xn(n,r)}}}function bf(t){let e,n,i,o,r,s,l=t[82],a,c=ci(t[80]),d=[];for(let f=0;f<c.length;f+=1)d[f]=vf(gf(t,c,f));const u=f=>nt(d[f],1,1,(()=>{d[f]=null})),p=()=>t[67](e,l),_=()=>t[67](null,l);return{c(){e=Zt("div");for(let f=0;f<d.length;f+=1)d[f].c();n=Ai(),i=Zt("div"),r=Ai(),K(i,"style",o=Nn(t[13])),K(e,"class",wr.gallery__items),K(e,"style",s=Nn(t[16]))},m(f,m){rt(f,e,m);for(let h=0;h<d.length;h+=1)d[h]&&d[h].m(e,null);Vn(e,n),Vn(e,i),Vn(e,r),p(),a=!0},p(f,m){if(t=f,m[0]&266320){c=ci(t[80]);let h;for(h=0;h<c.length;h+=1){const v=gf(t,c,h);d[h]?(d[h].p(v,m),Ue(d[h],1)):(d[h]=vf(v),d[h].c(),Ue(d[h],1),d[h].m(e,n))}for(ui(),h=c.length;h<d.length;h+=1)u(h);pi()}(!a||m[0]&8192&&o!==(o=Nn(t[13])))&&K(i,"style",o),(!a||m[0]&65536&&s!==(s=Nn(t[16])))&&K(e,"style",s),l!==t[82]&&(_(),l=t[82],p())},i(f){if(!a){for(let m=0;m<c.length;m+=1)Ue(d[m]);a=!0}},o(f){d=d.filter(f2);for(let m=0;m<d.length;m+=1)nt(d[m]);a=!1},d(f){f&&it(e),Co(d,f),_()}}}function yf(t){let e,n,i=t[10]&&t[8]&&wf(t),o=t[11]&&t[8]&&$f(t);return{c(){i&&i.c(),e=Ai(),o&&o.c(),n=si()},m(r,s){i&&i.m(r,s),rt(r,e,s),o&&o.m(r,s),rt(r,n,s)},p(r,s){r[10]&&r[8]?i?i.p(r,s):(i=wf(r),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null),r[11]&&r[8]?o?o.p(r,s):(o=$f(r),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(r){r&&(it(e),it(n)),i&&i.d(r),o&&o.d(r)}}}function wf(t){let e,n,i,o=!t[32]&&zU();return{c(){e=Zt("div"),o&&o.c(),K(e,"class",t[32]||`${wr.gallery__arrow} ${gr.arrow} ${gr.arrow_left}`)},m(r,s){rt(r,e,s),o&&o.m(e,null),n||(i=en(e,"click",t[70]),n=!0)},p:me,d(r){r&&it(e),o&&o.d(),n=!1,i()}}}function zU(t){let e,n;return{c(){e=$o("svg"),n=$o("path"),K(n,"class",wr["gallery__arrow-icon-path"]),K(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),K(e,"class",gr.arrow__icon),K(e,"xmlns","http://www.w3.org/2000/svg"),K(e,"width","32"),K(e,"height","32"),K(e,"viewBox","0 0 32 32"),K(e,"fill","none")},m(i,o){rt(i,e,o),Vn(e,n)},d(i){i&&it(e)}}}function $f(t){let e,n,i,o=!t[33]&&EU();return{c(){e=Zt("div"),o&&o.c(),K(e,"class",t[33]||`${wr.gallery__arrow} ${gr.arrow} ${gr.arrow_right}`)},m(r,s){rt(r,e,s),o&&o.m(e,null),n||(i=en(e,"click",t[71]),n=!0)},p:me,d(r){r&&it(e),o&&o.d(),n=!1,i()}}}function EU(t){let e,n;return{c(){e=$o("svg"),n=$o("path"),K(n,"class",wr["gallery__arrow-icon-path"]),K(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),K(e,"class",gr.arrow__icon),K(e,"xmlns","http://www.w3.org/2000/svg"),K(e,"width","32"),K(e,"height","32"),K(e,"viewBox","0 0 32 32"),K(e,"fill","none")},m(i,o){rt(i,e,o),Vn(e,n)},d(i){i&&it(e)}}}function AU(t){let e,n,i,o,r,s,l,a,c,d,u=ci(t[18]),p=[];for(let m=0;m<u.length;m+=1)p[m]=bf(mf(t,u,m));const _=m=>nt(p[m],1,1,(()=>{p[m]=null}));let f=t[4]==="horizontal"&&yf(t);return{c(){e=Zt("div"),n=Zt("div");for(let m=0;m<p.length;m+=1)p[m].c();s=Ai(),f&&f.c(),l=si(),K(n,"class",wr["gallery__items-grid"]),K(n,"style",i=Nn(t[17])),K(e,"class",o=wr.gallery__scroller+" "+(t[30]?ai["root_restrict-scroll"]:"")),K(e,"style",r=Nn(t[5]))},m(m,h){rt(m,e,h),Vn(e,n);for(let v=0;v<p.length;v+=1)p[v]&&p[v].m(n,null);t[68](n),t[69](e),rt(m,s,h),f&&f.m(m,h),rt(m,l,h),a=!0,c||(d=en(e,"scroll",(function(){Fi(t[8]?t[36]:null)&&(t[8]?t[36]:null).apply(this,arguments)})),c=!0)},p(m,h){if(t=m,h[0]&340560){u=ci(t[18]);let v;for(v=0;v<u.length;v+=1){const y=mf(t,u,v);p[v]?(p[v].p(y,h),Ue(p[v],1)):(p[v]=bf(y),p[v].c(),Ue(p[v],1),p[v].m(n,null))}for(ui(),v=u.length;v<p.length;v+=1)_(v);pi()}(!a||h[0]&131072&&i!==(i=Nn(t[17])))&&K(n,"style",i),(!a||h[0]&1073741824&&o!==(o=wr.gallery__scroller+" "+(t[30]?ai["root_restrict-scroll"]:"")))&&K(e,"class",o),(!a||h[0]&32&&r!==(r=Nn(t[5])))&&K(e,"style",r),t[4]==="horizontal"?f?f.p(t,h):(f=yf(t),f.c(),f.m(l.parentNode,l)):f&&(f.d(1),f=null)},i(m){if(!a){for(let h=0;h<u.length;h+=1)Ue(p[h]);a=!0}},o(m){p=p.filter(f2);for(let h=0;h<p.length;h+=1)nt(p[h]);a=!1},d(m){m&&(it(e),it(s),it(l)),Co(p,m),t[68](null),t[69](null),f&&f.d(m),c=!1,d()}}}function OU(t){let e,n,i,o;return e=new qo({props:{cls:kn("gallery",wr,t[15]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,customActions:"gallery",parentOf:t[7],replaceItems:t[34],$$slots:{default:[AU]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(r,s){Zn(e,r,s),n=!0,i||(o=en(window,"resize",(function(){Fi(t[8]?t[37]:null)&&(t[8]?t[37]:null).apply(this,arguments)})),i=!0)},p(r,s){t=r;const l={};s[0]&32768&&(l.cls=kn("gallery",wr,t[15])),s[0]&1&&(l.componentContext=t[0]),s[0]&2&&(l.layoutParams=t[1]),s[0]&128&&(l.parentOf=t[7]),s[0]&1074216828|s[2]&16777216&&(l.$$scope={dirty:s,ctx:t}),e.$set(l)},i(r){n||(Ue(e.$$.fragment,r),n=!0)},o(r){nt(e.$$.fragment,r),n=!1},d(r){xn(e,r),i=!1,o()}}}function MU(t,e,n){let i=0,o=[],r=[];for(let s=0;s<t.length;++s)o[i]||(o[i]=[]),o[i].push({index:s,hasGapBefore:r[i]&&e[s].visibility!=="gone",componentContext:t[s]}),!r[i]&&e[s].visibility!=="gone"&&(r[i]=!0),++i>=n&&(i=0);return o}function PU(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,h,v,y,b,w,k,E,T,j=me,A=()=>(j(),j=De(m,(Ct=>n(55,T=Ct))),m),O,M=me,D=()=>(M(),M=De(f,(Ct=>n(56,O=Ct))),f),R,U=me,B=()=>(U(),U=De(p,(Ct=>n(57,R=Ct))),p),C,q=me,V=()=>(q(),q=De(vn,(Ct=>n(58,C=Ct))),vn),Y,x=me,de=()=>(x(),x=De(u,(Ct=>n(59,Y=Ct))),u),_e,G=me,Q=()=>(G(),G=De(d,(Ct=>n(60,_e=Ct))),d),oe,he=me,ze=()=>(he(),he=De(c,(Ct=>n(61,oe=Ct))),c),W,Ke=me,at=()=>(Ke(),Ke=De(a,(Ct=>n(62,W=Ct))),a),Te,ot=me,J=()=>(ot(),ot=De(l,(Ct=>n(63,Te=Ct))),l),ue,fe=me,Qe=()=>(fe(),fe=De(s,(Ct=>n(64,ue=Ct))),s),ye,Ee,Ye=me,vt=()=>(Ye(),Ye=De(r,(Ct=>n(66,Ee=Ct))),r),ne,pe=me,kt=()=>(pe(),pe=De(_,(Ct=>n(30,ne=Ct))),_);t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>he())),t.$$.on_destroy.push((()=>Ke())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>fe())),t.$$.on_destroy.push((()=>Ye())),t.$$.on_destroy.push((()=>pe()));let{componentContext:$e}=e,{layoutParams:et=void 0}=e;const le=ro(vo),Ve=le.direction;ko(t,Ve,(Ct=>n(54,E=Ct)));let Xe,xe=[],jt=!1,Vt=!1,ln=null,sn,At=!1;const pn=le.getCustomization("galleryLeftClass"),dn=le.getCustomization("galleryRightClass");let Rn,Ln=1,qe="horizontal",st="start",li,bt=8,Cn,Ut,gn="",Lt,wn=[],vn,Jt={},Kt=!1,Un={},Kn=0;function fi(){n(42,Ln=1),n(4,qe="horizontal"),n(43,st="start"),n(44,bt=8),n(47,gn="")}function Je(Ct){n(0,$e={...$e,json:{...$e.json,items:Ct.filter(os)}})}const ht=le.isDesktop;ko(t,ht,(Ct=>n(65,ye=Ct)));let ct=[];function gt(){if(!Xe)return;let Ct=Xe.scrollLeft;E==="rtl"&&(Ct*=-1);const Wn=Xe.scrollWidth,gi=Xe.offsetWidth;E==="ltr"?(n(10,jt=Ct>2),n(11,Vt=Ct+gi<Wn-2)):(n(11,Vt=Ct>2),n(10,jt=Ct+gi<Wn-2))}const qt=sd(gt,50);function St(Ct){Xe.scroll({left:Xe.scrollLeft+Xe.offsetWidth*.75*(Ct==="right"?1:-1),behavior:"smooth"})}function Ot(){let Ct=[],Wn=xe[0].children.length;for(let gi=0;gi<Wn;gi+=2)for(let rn=0;rn<Ln;++rn){const Fn=xe[rn].children[gi];Fn&&Ct.push(Fn)}return Ct}function nn(Ct,Wn="smooth"){const gi=qe==="horizontal"?"left":"top";Xe.scroll({[gi]:Ct,behavior:Wn})}function ei(Ct,Wn,gi="smooth"){const rn=qe==="horizontal",Fn=rn?"offsetLeft":"offsetTop",Bt=Ct[Wn];if(Bt){let hn;if(E==="ltr"||!rn)hn=Bt[Fn]+.01-bt/2;else{const un=Xe.offsetWidth;hn=Bt[Fn]+Bt.offsetWidth+.01-bt/2-un}nn(hn,gi)}}function Ft(Ct,Wn){return qe==="horizontal"?Wn.right>Ct.left&&Ct.right>Wn.left:Wn.bottom>Ct.top&&Ct.bottom>Wn.top}function xt(Ct,Wn){return qe==="horizontal"?Wn.left>=Ct.left&&Wn.right<=Ct.right:Wn.top>=Ct.top&&Wn.bottom<=Ct.bottom}function dt(Ct){const Wn=Ot(),gi=Xe.getBoundingClientRect(),rn=Wn.findIndex((hn=>xt(gi,hn.getBoundingClientRect())));if(rn!==-1)return rn;const Fn=Wn.map((hn=>Ft(gi,hn.getBoundingClientRect()))),Bt=Fn.findIndex(Boolean);return Bt!==-1?Ct==="prev"&&Fn.filter(Boolean).length===2?Bt+1:Bt:Ct==="prev"?1:Wn.length-2}Sr((()=>{if(n(40,At=!0),gt(),Kn){const Ct=Ot();ei(Ct,Kn,"auto")}})),jo((()=>{n(40,At=!1),ct.forEach((Ct=>{Ct.destroy()})),Rn&&!$e.fakeElement&&(le.unregisterInstance(Rn),n(41,Rn=void 0))}));function We(Ct,Wn){Wi[Ct?"unshift":"push"]((()=>{xe[Wn]=Ct,n(9,xe)}))}function bi(Ct){Wi[Ct?"unshift":"push"]((()=>{sn=Ct,n(3,sn)}))}function hi(Ct){Wi[Ct?"unshift":"push"]((()=>{Xe=Ct,n(2,Xe)}))}const Bn=()=>St("left"),eo=()=>St("right");return t.$$set=Ct=>{"componentContext"in Ct&&n(0,$e=Ct.componentContext),"layoutParams"in Ct&&n(1,et=Ct.layoutParams)},t.$$.update=()=>{var Ct,Wn,gi,rn,Fn,Bt;if(t.$$.dirty[0]&1&&n(53,i=$e.origJson),t.$$.dirty[1]&4194304&&i&&fi(),t.$$.dirty[0]&1&&n(52,o=Array.isArray($e.json.items)&&$e.json.items||[]),t.$$.dirty[0]&1&&vt(n(29,r=typeof((Ct=$e.json.item_builder)==null?void 0:Ct.data)=="string"?$e.getDerivedFromVars((Wn=$e.json.item_builder)==null?void 0:Wn.data,void 0,!0):(gi=$e.json.item_builder)!=null&&gi.data?Ts($e.json.item_builder.data):void 0)),t.$$.dirty[0]&1&&Qe(n(28,s=$e.getDerivedFromVars($e.json.column_count))),t.$$.dirty[0]&1&&J(n(27,l=$e.getDerivedFromVars($e.json.orientation))),t.$$.dirty[0]&1&&at(n(26,a=$e.getDerivedFromVars($e.json.cross_content_alignment))),t.$$.dirty[0]&1&&ze(n(25,c=$e.getDerivedFromVars($e.json.item_spacing))),t.$$.dirty[0]&1&&Q(n(24,d=$e.getDerivedFromVars($e.json.cross_spacing))),t.$$.dirty[0]&1&&de(n(23,u=$e.getDerivedFromVars($e.json.paddings))),t.$$.dirty[0]&1&&B(n(22,p=$e.getDerivedFromVars($e.json.scroll_mode))),t.$$.dirty[0]&1&&kt(n(21,_=$e.getDerivedFromVars($e.json.restrict_parent_scroll))),t.$$.dirty[0]&1&&D(n(20,f=$e.getDerivedFromVars($e.json.scrollbar))),t.$$.dirty[0]&1&&A(n(19,m=$e.getDerivedFromVars($e.json.default_item))),t.$$.dirty[0]&129|t.$$.dirty[1]&2097152|t.$$.dirty[2]&16){let hn=[];if($e.json.item_builder&&Array.isArray(Ee)&&Array.isArray($e.json.item_builder.prototypes)){const un=$e.json.item_builder;hn=Wu(Ee,le,$e,un)}else hn=(Array.isArray(o)&&o||[]).map((un=>({div:un})));ct.forEach((un=>{un.destroy()})),n(7,ct=hn.map(((un,Tn)=>$e.produceChildContext(un.div,{path:Tn,variables:un.vars,id:un.id}))))}if(t.$$.dirty[1]&512|t.$$.dirty[2]&8&&n(8,h=ye&&At),t.$$.dirty[0]&264|t.$$.dirty[1]&256&&(h?typeof ResizeObserver<"u"&&(n(39,ln=new ResizeObserver((()=>{qt()}))),ln.observe(sn)):ln&&(ln.disconnect(),n(39,ln=null))),t.$$.dirty[1]&2048|t.$$.dirty[2]&4&&n(42,Ln=mr(ue,Ln)),t.$$.dirty[0]&16|t.$$.dirty[2]&2&&n(4,qe=Ku(Te,qe)),t.$$.dirty[1]&4096|t.$$.dirty[2]&1&&n(43,st=CU(W,st)),t.$$.dirty[1]&1073750016&&(n(44,bt=uo(oe,bt)),n(12,li=Et(bt))),t.$$.dirty[1]&536911872&&(n(46,Ut=uo(_e,bt)),n(45,Cn=Et(Ut))),t.$$.dirty[0]&16|t.$$.dirty[1]&276889600){n(47,gn=oa(Y,E,gn));const hn=qe==="horizontal"?(Fn=(rn=Y==null?void 0:Y.end)!=null?rn:Y==null?void 0:Y[E==="ltr"?"right":"left"])!=null?Fn:0:(Bt=Y==null?void 0:Y.bottom)!=null?Bt:0,un=Et(hn);n(13,Lt={width:qe==="horizontal"?un:"1px",height:qe==="horizontal"?"1px":un,"margin-right":qe==="horizontal"&&E==="ltr"?"-"+un:void 0,"margin-left":qe==="horizontal"&&E==="rtl"?"-"+un:void 0,"margin-bottom":qe==="vertical"?"-"+un:void 0})}if(t.$$.dirty[0]&16&&n(51,v=qe==="horizontal"?"grid-template-columns":"grid-template-rows"),t.$$.dirty[0]&145){let hn=[];ct.forEach((un=>{const Tn=qe==="horizontal"?"width":"height";hn.push($e.getDerivedFromVars({size:un.json[Tn],visibility:un.json.visibility}))})),V(n(14,vn=Ms(hn,(un=>[...un]))))}if(t.$$.dirty[0]&128|t.$$.dirty[1]&134219776&&n(18,y=MU(ct,C,Ln)),t.$$.dirty[0]&16|t.$$.dirty[1]&134350848&&(n(48,wn=[]),Ln>1||C.forEach(((hn,un)=>{var Tn;hn.visibility!=="gone"&&(!hn.size&&qe==="horizontal"||((Tn=hn.size)==null?void 0:Tn.type)==="match_parent"?wn.push("100%"):wn.push("max-content"),un+1<C.length&&wn.push("auto"))})),wn.push("auto")),t.$$.dirty[0]&112|t.$$.dirty[1]&67123200){const hn={};let un={};if(n(49,Kt=!1),qe==="horizontal"?un.parentVAlign=st:un.parentHAlign=st,R==="paging"){n(49,Kt=!0),un.scrollSnap="start";const Tn=qe==="horizontal"?"scroll-padding-left":"scroll-padding-top";hn[Tn]=Et(bt/2)}Ln===1&&(un.parentLayoutOrientation=qe),n(5,Jt=us(hn,Jt)),n(6,Un=us(un,Un))}t.$$.dirty[1]&81920&&n(17,b={padding:gn,"grid-gap":Cn}),t.$$.dirty[1]&1179648&&n(16,w={[v]:TU(wn)}),t.$$.dirty[0]&16|t.$$.dirty[1]&33816576&&n(15,k={orientation:qe,"scroll-snap":Kt,scrollbar:O==="auto"?"auto":"none"}),t.$$.dirty[1]&17301504&&n(50,Kn=uo(T,Kn)),t.$$.dirty[0]&1&&$e.json&&qt(),t.$$.dirty[0]&21|t.$$.dirty[1]&8389632&&$e.json&&(Rn&&(le.unregisterInstance(Rn),n(41,Rn=void 0)),$e.id&&!$e.fakeElement&&(n(41,Rn=$e.id),le.registerInstance(Rn,{setCurrentItem(hn){const un=Ot();if(hn<0||hn>un.length-1)throw new Error('Item is out of range in "set-current-item" action');ei(un,hn)},setPreviousItem(hn,un){const Tn=dt("prev"),Yn=Ot();let Se=Tn-hn;Se<0&&(Se=un==="ring"?ps(Se,Yn.length):0),ei(Yn,Se)},setNextItem(hn,un){const Tn=qe==="horizontal",Yn=E==="ltr"||!Tn?1:-1,Se=Tn?Xe.scrollLeft*Yn+Xe.offsetWidth===Xe.scrollWidth:Xe.scrollTop+Xe.offsetHeight===Xe.scrollHeight,bn=Ot();if(Se&&un==="ring"){ei(bn,0);return}let ft=dt("next")+hn;ft>bn.length-1&&(ft=un==="ring"?ps(ft,bn.length):bn.length-1),ei(bn,ft)},scrollToStart(){nn(0)},scrollToEnd(){nn(E==="ltr"||qe!=="horizontal"?1e6:-1e6)},scrollBackward(hn,un){const Tn=qe==="horizontal",Yn=E==="ltr"||!Tn?1:-1,Se=Tn?Xe.scrollLeft:Xe.scrollTop,bn=Tn?Xe.scrollWidth-Xe.offsetWidth:Xe.scrollHeight-Xe.offsetHeight;let ft=Se*Yn-hn;ft<0&&(un==="clamp"?ft=0:un==="ring"&&(ft=ps(ft,bn))),nn(ft*Yn)},scrollForward(hn,un){const Tn=qe==="horizontal",Yn=E==="ltr"||!Tn?1:-1,Se=Tn?Xe.scrollLeft:Xe.scrollTop,bn=Tn?Xe.scrollWidth-Xe.offsetWidth:Xe.scrollHeight-Xe.offsetHeight;let ft=Se*Yn+hn;ft>bn&&(un==="clamp"?ft=bn:un==="ring"&&(ft=ps(ft,bn))),nn(ft*Yn)},scrollToPosition(hn){nn(E==="ltr"||qe!=="horizontal"?hn:-hn)}})))},[$e,et,Xe,sn,qe,Jt,Un,ct,h,xe,jt,Vt,li,Lt,vn,k,w,b,y,m,f,_,p,u,d,c,a,l,s,r,ne,Ve,pn,dn,Je,ht,gt,qt,St,ln,At,Rn,Ln,st,bt,Cn,Ut,gn,wn,Kt,Kn,v,o,i,E,T,O,R,C,Y,_e,oe,W,Te,ue,ye,Ee,We,bi,hi,Bn,eo]}class IU extends Qi{constructor(e){super(),xi(this,e,PU,OU,Pi,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const DU="divkit-bf0ea",VU="divkit-8a75d",LU="divkit-26f55",FU="divkit-a22f9",NU="divkit-4108d",qU="divkit-4f7ae",RU="divkit-daded",BU="divkit-5c791",HU="divkit-763f3",UU="divkit-c3cc6",JU="divkit-4ca7a",WU="divkit-0c7b1",KU="divkit-41351",YU="divkit-37bf2",Uo={outer:DU,tabs:VU,tabs__list:LU,tabs__item:FU,tabs__item_selected:NU,tabs__item_actionable:qU,tabs__panels:RU,tabs__swiper:BU,tabs__swiper_animated:HU,tabs__swiper_inited:UU,tabs__panel:JU,tabs__panel_visible:WU,"tabs_height-parent_yes":"divkit-ceaff",tabs__separator:KU,tabs__delimitier:YU};function GU(t,e){var n,i;if(!t||!t.image_url||typeof t.image_url!="string")return e;const o={url:t.image_url};return((n=t.width)==null?void 0:n.type)==="fixed"&&Zo(t.width.value)&&(o.width=t.width.value),((i=t.height)==null?void 0:i.type)==="fixed"&&Zo(t.height.value)&&(o.height=t.height.value),o}const m2=37,g2=39,h2=36,v2=35;function XU(t,e,n,i){const o=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let r=0;r<o.length;++r)if(o[r]&&!Wo(o[r]))return i;return oc(t,e,n)}function kf(t){const e=t.touches[0],n=e.clientX||e.pageX,i=e.clientY||e.pageY;return{x:n,y:i}}function ZU(t){let e,n;return e=new Cr({props:{componentContext:t[0],layoutParams:t[1]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,[o]){const r={};o&1&&(r.componentContext=i[0]),o&2&&(r.layoutParams=i[1]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function xU(t,e,n){let{componentContext:i}=e,{layoutParams:o=void 0}=e,{enabled:r}=e;const s=Fr(r);return Ss(Bu,{isEnabled:s}),t.$$set=l=>{"componentContext"in l&&n(0,i=l.componentContext),"layoutParams"in l&&n(1,o=l.layoutParams),"enabled"in l&&n(2,r=l.enabled)},t.$$.update=()=>{t.$$.dirty&4&&s.set(r)},[i,o,r]}class QU extends Qi{constructor(e){super(),xi(this,e,xU,ZU,Pi,{componentContext:0,layoutParams:1,enabled:2})}}const{Boolean:jf}=Ur;function Sf(t,e,n){const i=t.slice();i[94]=e[n];const o=i[94].index;i[95]=o;const r=i[30][i[95]];return i[96]=r,i}function Cf(t,e,n){const i=t.slice();i[94]=e[n];const o=i[94].index;i[95]=o;const r=i[95]===i[16];return i[99]=r,i}function eJ(t){let e,n;return e=new Jr({props:{componentContext:t[0]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function tJ(t){let e,n;return e=new qo({props:{cls:kn("tabs",Uo,t[23]),componentContext:t[0],layoutParams:t[1],customActions:"tabs",parentOf:t[44],parentOfSimpleMode:!0,replaceItems:t[49],$$slots:{default:[iJ]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&8388608&&(r.cls=kn("tabs",Uo,i[23])),o[0]&1&&(r.componentContext=i[0]),o[0]&2&&(r.layoutParams=i[1]),o[1]&8192&&(r.parentOf=i[44]),o[0]&2139095033|o[1]&16391|o[3]&512&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function Tf(t){let e,n;return{c(){e=Zt("img"),K(e,"class",Uo.tabs__delimitier),K(e,"alt",""),K(e,"loading","lazy"),K(e,"decoding","async"),rr(e.src,n=t[15].url)||K(e,"src",n),He(e,"width",t[15].width?Et(t[15].width):void 0),He(e,"height",t[15].height?Et(t[15].height):void 0)},m(i,o){rt(i,e,o)},p(i,o){o[0]&32768&&!rr(e.src,n=i[15].url)&&K(e,"src",n),o[0]&32768&&He(e,"width",i[15].width?Et(i[15].width):void 0),o[0]&32768&&He(e,"height",i[15].height?Et(i[15].height):void 0)},d(i){i&&it(e)}}}function nJ(t){let e=t[94].title+"",n;return{c(){n=jr(e)},m(i,o){rt(i,n,o)},p(i,o){o[0]&131072&&e!==(e=i[94].title+"")&&ws(n,e)},d(i){i&&it(n)}}}function zf(t){let e,n,i,o=t[15]&&t[95]>0&&Tf(t);function r(...s){return t[70](t[95],...s)}return n=new rd({props:{componentContext:t[0],cls:kn("tabs__item",Uo,{selected:t[99],actionable:!!t[94].title_click_action}),actions:t[94].title_click_action&&!t[0].fakeElement?[t[94].title_click_action].filter(Bo):[],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:r,$$slots:{default:[nJ]},$$scope:{ctx:t}}}),{c(){o&&o.c(),e=Ai(),Qn(n.$$.fragment)},m(s,l){o&&o.m(s,l),rt(s,e,l),Zn(n,s,l),i=!0},p(s,l){t=s,t[15]&&t[95]>0?o?o.p(t,l):(o=Tf(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const a={};l[0]&1&&(a.componentContext=t[0]),l[0]&196608&&(a.cls=kn("tabs__item",Uo,{selected:t[99],actionable:!!t[94].title_click_action})),l[0]&131073&&(a.actions=t[94].title_click_action&&!t[0].fakeElement?[t[94].title_click_action].filter(Bo):[]),l[0]&196609&&(a.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"}),l[0]&131073&&(a.customAction=t[0].fakeElement?null:r),l[0]&131072|l[3]&512&&(a.$$scope={dirty:l,ctx:t}),n.$set(a)},i(s){i||(Ue(n.$$.fragment,s),i=!0)},o(s){nt(n.$$.fragment,s),i=!1},d(s){s&&it(e),o&&o.d(s),xn(n,s)}}}function Ef(t){let e,n;return{c(){e=Zt("div"),K(e,"class",Uo.tabs__separator),K(e,"style",n=Nn(t[33]))},m(i,o){rt(i,e,o)},p(i,o){o[1]&4&&n!==(n=Nn(i[33]))&&K(e,"style",n)},d(i){i&&it(e)}}}function Af(t){let e,n;return e=new QU({props:{componentContext:t[96],layoutParams:t[3],enabled:t[95]===t[16]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1073872896&&(r.componentContext=i[96]),o[0]&8&&(r.layoutParams=i[3]),o[0]&196608&&(r.enabled=i[95]===i[16]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function Of(t){let e,n,i,o,r,s,l=t[96]&&Af(t);return{c(){e=Zt("div"),l&&l.c(),n=Ai(),K(e,"class",i=kn("tabs__panel",Uo,{visible:t[31][t[95]]})),K(e,"role","tabpanel"),K(e,"id",o=t[47]+"-panel-"+t[95]),K(e,"aria-labelledby",r=t[47]+"-tab-"+t[95]),He(e,"left",t[95]*100+"%")},m(a,c){rt(a,e,c),l&&l.m(e,null),Vn(e,n),s=!0},p(a,c){a[96]?l?(l.p(a,c),c[0]&1073872896&&Ue(l,1)):(l=Af(a),l.c(),Ue(l,1),l.m(e,n)):l&&(ui(),nt(l,1,1,(()=>{l=null})),pi()),(!s||c[0]&131072|c[1]&1&&i!==(i=kn("tabs__panel",Uo,{visible:a[31][a[95]]})))&&K(e,"class",i),(!s||c[0]&131072&&o!==(o=a[47]+"-panel-"+a[95]))&&K(e,"id",o),(!s||c[0]&131072&&r!==(r=a[47]+"-tab-"+a[95]))&&K(e,"aria-labelledby",r),(!s||c[0]&131072)&&He(e,"left",a[95]*100+"%")},i(a){s||(Ue(l),s=!0)},o(a){nt(l),s=!1},d(a){a&&it(e),l&&l.d()}}}function iJ(t){let e,n,i,o,r,s,l,a,c,d,u,p=ci(t[17]),_=[];for(let b=0;b<p.length;b+=1)_[b]=zf(Cf(t,p,b));const f=b=>nt(_[b],1,1,(()=>{_[b]=null}));let m=t[19]&&Ef(t),h=ci(t[17]),v=[];for(let b=0;b<h.length;b+=1)v[b]=Of(Sf(t,h,b));const y=b=>nt(v[b],1,1,(()=>{v[b]=null}));return{c(){e=Zt("div");for(let b=0;b<_.length;b+=1)_[b].c();i=Ai(),m&&m.c(),o=Ai(),r=Zt("div"),s=Zt("div");for(let b=0;b<v.length;b+=1)v[b].c();K(e,"class",n=Uo.tabs__list+" "+(t[45]?ai["root_restrict-scroll"]:"")),K(e,"role","tablist"),He(e,"--divkit-tabs-title-padding",t[14]?qr(t[14],t[18]):""),He(e,"--divkit-tabs-font-size",Et(t[4])),He(e,"--divkit-tabs-paddings",t[5]),He(e,"--divkit-tabs-line-height",t[24]),He(e,"--divkit-tabs-letter-spacing",t[25]),He(e,"--divkit-tabs-active-font-weight",t[7]||""),He(e,"--divkit-tabs-inactive-font-weight",t[8]||""),He(e,"--divkit-tabs-active-font-family",t[26]||""),He(e,"--divkit-tabs-inactive-font-family",t[27]||""),He(e,"--divkit-tabs-active-text-color",t[9]),He(e,"--divkit-tabs-inactive-text-color",t[10]),He(e,"--divkit-tabs-active-background-color",t[11]),He(e,"--divkit-tabs-inactive-background-color",t[12]),He(e,"--divkit-tabs-border-radius",t[6]),He(e,"--divkit-tabs-items-spacing",t[13]?Jo(t[13]*10/t[4]):""),K(s,"class",l=kn("tabs__swiper",Uo,{inited:t[28],animated:t[29]})),K(r,"class",a=Uo.tabs__panels+" "+(t[45]?ai["root_restrict-scroll"]:""))},m(b,w){rt(b,e,w);for(let k=0;k<_.length;k+=1)_[k]&&_[k].m(e,null);t[71](e),rt(b,i,w),m&&m.m(b,w),rt(b,o,w),rt(b,r,w),Vn(r,s);for(let k=0;k<v.length;k+=1)v[k]&&v[k].m(s,null);t[72](s),t[73](r),c=!0,d||(u=[en(e,"keydown",t[51]),en(r,"touchstart",(function(){Fi(t[32]?t[52]:void 0)&&(t[32]?t[52]:void 0).apply(this,arguments)})),en(r,"touchmove",(function(){Fi(t[32]?t[53]:void 0)&&(t[32]?t[53]:void 0).apply(this,arguments)})),en(r,"touchend",(function(){Fi(t[32]?t[54]:void 0)&&(t[32]?t[54]:void 0).apply(this,arguments)})),en(r,"touchcancel",(function(){Fi(t[32]?t[54]:void 0)&&(t[32]?t[54]:void 0).apply(this,arguments)}))],d=!0)},p(b,w){if(t=b,w[0]&229377|w[1]&589824){p=ci(t[17]);let k;for(k=0;k<p.length;k+=1){const E=Cf(t,p,k);_[k]?(_[k].p(E,w),Ue(_[k],1)):(_[k]=zf(E),_[k].c(),Ue(_[k],1),_[k].m(e,null))}for(ui(),k=p.length;k<_.length;k+=1)f(k);pi()}if((!c||w[1]&16384&&n!==(n=Uo.tabs__list+" "+(t[45]?ai["root_restrict-scroll"]:"")))&&K(e,"class",n),w[0]&278528&&He(e,"--divkit-tabs-title-padding",t[14]?qr(t[14],t[18]):""),w[0]&16&&He(e,"--divkit-tabs-font-size",Et(t[4])),w[0]&32&&He(e,"--divkit-tabs-paddings",t[5]),w[0]&16777216&&He(e,"--divkit-tabs-line-height",t[24]),w[0]&33554432&&He(e,"--divkit-tabs-letter-spacing",t[25]),w[0]&128&&He(e,"--divkit-tabs-active-font-weight",t[7]||""),w[0]&256&&He(e,"--divkit-tabs-inactive-font-weight",t[8]||""),w[0]&67108864&&He(e,"--divkit-tabs-active-font-family",t[26]||""),w[0]&134217728&&He(e,"--divkit-tabs-inactive-font-family",t[27]||""),w[0]&512&&He(e,"--divkit-tabs-active-text-color",t[9]),w[0]&1024&&He(e,"--divkit-tabs-inactive-text-color",t[10]),w[0]&2048&&He(e,"--divkit-tabs-active-background-color",t[11]),w[0]&4096&&He(e,"--divkit-tabs-inactive-background-color",t[12]),w[0]&64&&He(e,"--divkit-tabs-border-radius",t[6]),w[0]&8208&&He(e,"--divkit-tabs-items-spacing",t[13]?Jo(t[13]*10/t[4]):""),t[19]?m?m.p(t,w):(m=Ef(t),m.c(),m.m(o.parentNode,o)):m&&(m.d(1),m=null),w[0]&1073938440|w[1]&65537){h=ci(t[17]);let k;for(k=0;k<h.length;k+=1){const E=Sf(t,h,k);v[k]?(v[k].p(E,w),Ue(v[k],1)):(v[k]=Of(E),v[k].c(),Ue(v[k],1),v[k].m(s,null))}for(ui(),k=h.length;k<v.length;k+=1)y(k);pi()}(!c||w[0]&805306368&&l!==(l=kn("tabs__swiper",Uo,{inited:t[28],animated:t[29]})))&&K(s,"class",l),(!c||w[1]&16384&&a!==(a=Uo.tabs__panels+" "+(t[45]?ai["root_restrict-scroll"]:"")))&&K(r,"class",a)},i(b){if(!c){for(let w=0;w<p.length;w+=1)Ue(_[w]);for(let w=0;w<h.length;w+=1)Ue(v[w]);c=!0}},o(b){_=_.filter(jf);for(let w=0;w<_.length;w+=1)nt(_[w]);v=v.filter(jf);for(let w=0;w<v.length;w+=1)nt(v[w]);c=!1},d(b){b&&(it(e),it(i),it(o),it(r)),Co(_,b),t[71](null),m&&m.d(b),Co(v,b),t[72](null),t[73](null),d=!1,so(u)}}}function oJ(t){let e,n,i,o;const r=[tJ,eJ],s=[];function l(a,c){return a[2]?1:0}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=si()},m(a,c){~e&&s[e].m(a,c),rt(a,i,c),o=!0},p(a,c){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&it(i),~e&&s[e].d(a)}}}function rJ(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,h,v,y,b,w,k,E=me,T=()=>(E(),E=De(l,(Se=>n(62,k=Se))),l),j,A,O=me,M=()=>(O(),O=De(h,(Se=>n(63,A=Se))),h),D,R=me,U=()=>(R(),R=De(m,(Se=>n(64,D=Se))),m),B,C=me,q=()=>(C(),C=De(_,(Se=>n(65,B=Se))),_),V,Y,x=me,de=()=>(x(),x=De(p,(Se=>n(66,Y=Se))),p),_e,G=me,Q=()=>(G(),G=De(u,(Se=>n(67,_e=Se))),u),oe,he=me,ze=()=>(he(),he=De(d,(Se=>n(19,oe=Se))),d),W,Ke=me,at=()=>(Ke(),Ke=De(c,(Se=>n(68,W=Se))),c),Te,ot=me,J=()=>(ot(),ot=De(s,(Se=>n(69,Te=Se))),s),ue,fe=me,Qe=()=>(fe(),fe=De(f,(Se=>n(45,ue=Se))),f);t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>he())),t.$$.on_destroy.push((()=>Ke())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>fe()));let{componentContext:ye}=e,{layoutParams:Ee=void 0}=e;const Ye=ro(vo),vt=Ye.direction;ko(t,vt,(Se=>n(18,V=Se)));const ne=Ye.genId("tabs");let pe,kt=!1,$e=Fr([]);ko(t,$e,(Se=>n(17,j=Se)));let et={},le,Ve,Xe,xe={},jt=12,Vt="",ln="",sn="",At="",pn,dn="",Rn,Ln="",qe="",st="",li="",bt="",Cn=0,Ut="",gn="",Lt=null,wn=!1,vn=!1,Jt,Kt=[],Un=[],Kn=null,fi=null,Je=null,ht,ct=!1,gt=!1,qt,St,Ot;function nn(){n(4,jt=12),n(5,Vt=""),n(6,At=""),n(7,pn=void 0),n(26,dn=""),n(8,Rn=void 0),n(27,Ln=""),n(9,qe=""),n(10,st=""),n(11,li=""),n(12,bt=""),n(13,Cn=0),n(56,Ut=""),n(57,gn=""),n(14,Lt=null),n(15,Ot=void 0)}function ei(Se){ye.json.items&&n(0,ye={...ye,json:{...ye.json,items:ye.json.items.map(((bn,ft)=>({...bn,div:Se[ft]})))}})}function Ft(Se){kt||(Kt.forEach((bn=>{bn==null||bn.destroy()})),n(30,Kt=Se.map(((bn,ft)=>{if(ft===v&&bn!=null&&bn.div)return ye.produceChildContext(bn.div,{path:ft})}))),n(31,Un=Se.map(((bn,ft)=>ft===v))))}async function xt(Se,bn=!1){if(Jt=v,n(16,v=Se),gi(),bi(),bn){await Fo();const ft=le.querySelector(`.${Uo.tabs__item_selected}`);ft&&ft.focus()}}function dt(Se,bn=!1){const ft=j==null?void 0:j.length;if(!ft)return;const z=j.map((Ni=>Ni.index));let Mt=z.indexOf(v)+Se;Mt>=ft?Mt=0:Mt<0&&(Mt=ft-1);const zn=z[Mt];xt(zn,bn)}function We(Se,bn){return v!==bn?(xt(bn),!1):!0}function bi(){n(29,vn=!0),hi(-v*100),Bn(),eo(),Ct(),St=-v*Ve.clientWidth}async function hi(Se){await Fo(),n(22,Xe.style.transform=`translate3d(${Se}%,0,0)`,Xe)}function Bn(Se=!1){const bn=Se?Math.max(0,v-1):Math.min(v,Jt??v),ft=Se?Math.min(o.length-1,v+1):Math.max(v,Jt??v);Kt.forEach((z=>{z==null||z.destroy()})),n(30,Kt=Kt.map(((z,Mt)=>{var zn;if(z)return z;const Ni=(zn=o[Mt])==null?void 0:zn.div;if(Mt>=bn&&Mt<=ft&&Ni)return ye.produceChildContext(Ni,{path:Mt})}))),n(31,Un=Un.map(((z,Mt)=>Mt>=bn&&Mt<=ft)))}async function eo(){if((k==null?void 0:k.type)==="match_parent")return;await Fo();const Se=document.getElementById(`${ne}-panel-${v}`);Se&&n(21,Ve.style.height=Et(Se.offsetHeight),Ve)}function Ct(){Kn&&clearTimeout(Kn),Kn=window.setTimeout((()=>{n(31,Un=o.map(((Se,bn)=>bn===v)))}),400)}function Wn(Se){if(!(Se.ctrlKey||Se.shiftKey||Se.altKey||Se.metaKey)&&o){if(Se.which===m2)dt(-1,!0);else if(Se.which===g2)dt(1,!0);else if(Se.which===h2)xt(0,!0);else if(Se.which===v2)xt(o.length-1,!0);else return;Se.preventDefault()}}function gi(){wn||(n(28,wn=!0),n(21,Ve.style.height=Et(Ve.clientHeight),Ve),n(22,Xe.style.transform=`translate3d(${-(Jt??v)*100}%,0,0)`,Xe))}function rn(Se){var bn;const ft=Se.target,z=(bn=ft==null?void 0:ft.closest)==null?void 0:bn.call(ft,`.${ai["root_restrict-scroll"]}`);o.length<2||Se.touches.length>1||z&&z!==Ve||(ct=!1,gt=!1,fi=kf(Se),Je=null,ht=Date.now(),qt=St||-v*Ve.clientWidth,n(29,vn=!1),Kn&&clearTimeout(Kn))}function Fn(Se){const bn=kf(Se);if(!fi||Je&&Je.x===bn.x&&Je.y===bn.y)return;Je=bn;const ft=Ve.clientWidth;if(ct){St=bn.x-fi.x+qt;const z=ft*o.length;if(St>0)St=St*ft/(St+ft*3);else if(-St+ft>z){let Mt=-St+ft-z;Mt=Mt*ft/(Mt+ft*3),St=ft-z-Mt}hi(St*100/ft)}else Math.abs(bn.y-fi.y)>10?gt=!0:!gt&&Math.abs(bn.x-fi.x)>8&&(gi(),ct=!0,fi=bn,hi(-v*100),Bn(!0));ct&&Se.cancelable&&Se.preventDefault()}function Bt(){gt=!1,fi=null;let Se=v;if(!ct)return;ct=!1;const bn=Math.min(512,Ve.clientWidth),ft=Math.abs(qt-St),z=Math.min(1,(Date.now()-ht)/750);ft>bn/4*z&&(Se+=qt>St?1:-1),Se>=o.length?Se=o.length-1:Se<0&&(Se=0),Se===v?(n(29,vn=!0),St=-Se*bn,hi(-Se*100),Ct()):xt(Se)}jo((()=>{Kt.forEach((Se=>{Se==null||Se.destroy()})),pe&&(Ye.unregisterInstance(pe),n(55,pe=void 0))}));const hn=(Se,bn)=>We(bn,Se);function un(Se){Wi[Se?"unshift":"push"]((()=>{le=Se,n(20,le)}))}function Tn(Se){Wi[Se?"unshift":"push"]((()=>{Xe=Se,n(22,Xe)}))}function Yn(Se){Wi[Se?"unshift":"push"]((()=>{Ve=Se,n(21,Ve)}))}return t.$$set=Se=>{"componentContext"in Se&&n(0,ye=Se.componentContext),"layoutParams"in Se&&n(1,Ee=Se.layoutParams)},t.$$.update=()=>{var Se,bn;if(t.$$.dirty[0]&1&&n(61,i=ye.origJson),t.$$.dirty[1]&1073741824&&i&&nn(),t.$$.dirty[0]&1&&n(58,o=Array.isArray(ye.json.items)&&ye.json.items||[]),t.$$.dirty[1]&134217728&&n(44,r=o.map((ft=>{var z;return{json:ft.div,id:(z=ft.div)==null?void 0:z.id}}))),t.$$.dirty[0]&1&&J(n(43,s=ye.getDerivedFromVars(ye.json.width))),t.$$.dirty[0]&1&&T(n(42,l=ye.getDerivedFromVars(ye.json.height))),t.$$.dirty[0]&1&&n(60,a=ye.getJsonWithVars(ye.json.selected_tab)),t.$$.dirty[0]&1&&at(n(41,c=ye.getDerivedFromVars(ye.json.tab_title_style))),t.$$.dirty[0]&1&&ze(n(40,d=ye.getDerivedFromVars(ye.json.has_separator))),t.$$.dirty[0]&1&&Q(n(39,u=ye.getDerivedFromVars(ye.json.separator_color))),t.$$.dirty[0]&1&&de(n(38,p=ye.getDerivedFromVars(ye.json.separator_paddings))),t.$$.dirty[0]&1&&q(n(37,_=ye.getDerivedFromVars(ye.json.switch_tabs_by_content_swipe_enabled))),t.$$.dirty[0]&1&&Qe(n(36,f=ye.getDerivedFromVars(ye.json.restrict_parent_scroll))),t.$$.dirty[0]&1&&U(n(35,m=ye.getDerivedFromVars(ye.json.title_paddings))),t.$$.dirty[0]&1&&M(n(34,h=ye.getDerivedFromVars(ye.json.tab_title_delimiter))),t.$$.dirty[1]&536870912&&n(16,v=a&&Number(a)||0),t.$$.dirty[0]&1|t.$$.dirty[1]&134217728)if(Array.isArray(o)&&o.length){let ft=[];o.forEach(((z,Mt)=>{const zn=ye.getJsonWithVars({index:Mt,title:z.title,title_click_action:z.title_click_action});zn.title&&typeof zn.title=="string"?ft.push(zn):ye.logError(tt(new Error("Incorrect title for the tab"),{additional:{index:Mt}}))})),$e.set(ft)}else $e.set([]);if(t.$$.dirty[0]&131073&&(j!=null&&j.length?n(2,kt=!1):(n(2,kt=!0),ye.logError(tt(new Error('Incorrect or empty "items" prop for div "tabs"'))))),t.$$.dirty[0]&8|t.$$.dirty[2]&129){let ft={parentContainerOrientation:"horizontal"};(Te==null?void 0:Te.type)==="wrap_content"&&(ft.parentHorizontalWrapContent=!0),(!k||k.type==="wrap_content")&&(ft.parentVerticalWrapContent=!0),n(3,et=us(ft,et))}if(t.$$.dirty[0]&65541|t.$$.dirty[1]&134217728&&!kt&&(v<0||v>=o.length)&&(ye.logError(tt(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:ye.json.selected_tab,length:o.length}})),n(16,v=v<0?0:o.length-1)),t.$$.dirty[0]&196613&&!kt&&!j.some((ft=>v===ft.index))&&(ye.logError(tt(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:ye.json.selected_tab}})),n(16,v=((Se=j[0])==null?void 0:Se.index)||0)),t.$$.dirty[2]&64&&n(59,y=W||{}),t.$$.dirty[0]&16|t.$$.dirty[1]&268435456&&n(4,jt=mr(y.font_size,jt)),t.$$.dirty[0]&262192|t.$$.dirty[1]&268435456&&(y.font_size||y.paddings)){const ft=y.paddings||{top:6,right:8,bottom:6,left:8},z={top:(Number(ft.top)||0)/jt*10,right:(Number(V==="ltr"?ft.end:ft.start)||Number(ft.right)||0)/jt*10,bottom:(Number(ft.bottom)||0)/jt*10,left:(Number(V==="ltr"?ft.start:ft.end)||Number(ft.left)||0)/jt*10};n(5,Vt=oa(z,V,Vt))}if(t.$$.dirty[0]&16|t.$$.dirty[1]&268435456){const ft=y.line_height;ft!==void 0&&Zo(ft)&&n(24,ln=Et(ft/jt*10))}if(t.$$.dirty[0]&16|t.$$.dirty[1]&268435456){const ft=y.letter_spacing;ft!==void 0&&Wo(ft)&&n(25,sn=Et(ft/jt*10))}if(t.$$.dirty[0]&80|t.$$.dirty[1]&268435456&&(y.corner_radius||y.corners_radius||y.font_size)){const ft=(bn=y.corner_radius)!=null?bn:1e3;y.corners_radius?n(6,At=XU(y.corners_radius,ft,jt,At)):Wo(ft)&&n(6,At=Et(ft/jt*10))}t.$$.dirty[0]&128|t.$$.dirty[1]&268435456&&(n(7,pn=wl(y.active_font_weight||y.font_weight,void 0,pn)),y.font_family&&typeof y.font_family=="string"?n(26,dn=Ye.typefaceProvider(y.font_family,{fontWeight:pn||400})):n(26,dn="")),t.$$.dirty[0]&256|t.$$.dirty[1]&268435456&&(n(8,Rn=wl(y.inactive_font_weight||y.font_weight,void 0,Rn)),y.font_family&&typeof y.font_family=="string"?n(27,Ln=Ye.typefaceProvider(y.font_family,{fontWeight:Rn||400})):n(27,Ln="")),t.$$.dirty[0]&512|t.$$.dirty[1]&268435456&&n(9,qe=Ri(y.active_text_color,1,qe)),t.$$.dirty[0]&1024|t.$$.dirty[1]&268435456&&n(10,st=Ri(y.inactive_text_color,1,st)),t.$$.dirty[0]&2048|t.$$.dirty[1]&268435456&&n(11,li=Ri(y.active_background_color,1,li)),t.$$.dirty[0]&4096|t.$$.dirty[1]&268435456&&n(12,bt=Ri(y.inactive_background_color,1,bt)),t.$$.dirty[0]&8192|t.$$.dirty[1]&268435456&&n(13,Cn=uo(y.item_spacing,Cn)),t.$$.dirty[0]&786432|t.$$.dirty[1]&100663296|t.$$.dirty[2]&48&&oe&&(_e&&n(56,Ut=Ri(_e,1,Ut)),Y&&n(57,gn=oa(Y,V,gn))),t.$$.dirty[1]&100663296&&n(33,b={background:Ut,margin:gn}),t.$$.dirty[2]&8&&n(32,w=typeof B>"u"?!0:!!B),t.$$.dirty[0]&16384|t.$$.dirty[2]&4&&n(14,Lt=ya(D||void 0,Lt)),t.$$.dirty[0]&32768|t.$$.dirty[2]&2&&n(15,Ot=GU(A,Ot)),t.$$.dirty[1]&134217728&&Ft(o),t.$$.dirty[0]&65541|t.$$.dirty[1]&150994944&&ye.json&&(pe&&(Ye.unregisterInstance(pe),n(55,pe=void 0)),ye.id&&!kt&&!ye.fakeElement&&(n(55,pe=ye.id),Ye.registerInstance(pe,{setCurrentItem(ft){if(ft<0||ft>o.length-1)throw new Error('Item is out of range in "set-current-item" action');xt(ft)},setPreviousItem(ft,z){let Mt=v-ft;Mt<0&&(Mt=z==="ring"?ps(Mt,o.length):0),xt(Mt)},setNextItem(ft,z){let Mt=v+ft;Mt>o.length-1&&(Mt=z==="ring"?ps(Mt,o.length):o.length-1),xt(Mt)},scrollToStart(){xt(0)},scrollToEnd(){xt(o.length-1)}}))),t.$$.dirty[2]&1&&n(23,xe={"height-parent":(k==null?void 0:k.type)==="match_parent"?"yes":""})},[ye,Ee,kt,et,jt,Vt,At,pn,Rn,qe,st,li,bt,Cn,Lt,Ot,v,j,V,oe,le,Ve,Xe,xe,ln,sn,dn,Ln,wn,vn,Kt,Un,w,b,h,m,f,_,p,u,d,c,l,s,r,ue,vt,ne,$e,ei,We,Wn,rn,Fn,Bt,pe,Ut,gn,o,y,a,i,k,A,D,B,Y,_e,W,Te,hn,un,Tn,Yn]}class sJ extends Qi{constructor(e){super(),xi(this,e,rJ,oJ,Pi,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}}const lJ="divkit-31140",aJ="divkit-bace1",cJ="divkit-8524e",Ps={state:lJ,state_overflow_visible:aJ,state__animations:cJ,"state__animation-child":"divkit-dcc79","state__animation-child-inner":"divkit-aa7dd"};function ld(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function dJ(t){return t*t*t}function b2(t){const e=t-1;return e*e*e+1}function y2(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,i=Math.floor(n),o=t[i],r=t[i+1],s=n-i;return o*s+r*(1-s)}}const uJ=[.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],pJ=y2(uJ),_J=[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],fJ=y2(_J),uu={linear:Gc,ease:pJ,ease_in:dJ,ease_out:b2,ease_in_out:ld,spring:fJ};function Yu(t){return uu[t]}const w2=200,$2=0,mJ=0,gJ=0;function Mf(t){return Math.max(...t.map((e=>(Number(e.duration)||w2)+(Number(e.start_delay)||$2))))}function hJ(t,{transitions:e,elementBbox:n,rootBbox:i,direction:o,maxDuration:r,alpha:s}){const l=s??1;return{duration:od()?0:r,css:a=>{const c=a*r,d=e.map((h=>{var v,y,b;const w=Number(h.start_delay)||$2,k=Number(h.duration)||w2,E=Math.max(0,Math.min(1,(c-w)/k)),T=o==="in"?1-E:E,j=(Yu(h.interpolator||"ease_in_out")||ld)(T);if(h.type==="fade")return j>=1?{active:!1,opacity:0}:{active:j>0&&j<1,opacity:(1-j)*l+j*(h.alpha||mJ)};if(h.type==="slide"){const A=h.edge==="top"||h.edge==="left"?-1:1,O=h.edge==="top"||h.edge==="bottom"||!h.edge?"translateY":"translateX";let M=(v=h.distance)==null?void 0:v.value;M===void 0&&(h.edge==="top"||h.edge==="bottom"||!h.edge?M=Math.abs(i[h.edge==="bottom"?"bottom":"top"]-n[h.edge==="bottom"?"top":"bottom"]):M=Math.abs(i[h.edge==="left"?"left":"right"]-n[h.edge==="left"?"right":"left"]));const D=M*j;return{active:j>0&&j<1,translate:`${O}(${D*A}px)`}}else if(h.type==="scale"){const A=1-j+j*(h.scale||gJ),O=(y=h.pivot_x)!=null?y:.5,M=(b=h.pivot_y)!=null?b:.5,D=(1-A)*n.width*O,R=(1-A)*n.height*M;return{active:j>0&&j<1,scale:`translate(${D}px, ${R}px) scale(${A})`}}return{}})),u=d.map((h=>h.opacity)).filter((h=>h!==void 0)).reduce(((h,v)=>h*v),1),p=d.map((h=>h.translate)).filter((h=>h!==void 0)).join(" "),_=d.map((h=>h.scale)).filter((h=>h!==void 0)).join(" "),f=d.filter((h=>h.active)).map((h=>h.scale)).filter((h=>h!==void 0)),m=f.length?f[f.length-1]:_;return`transform:${[p,m].filter(Boolean).join(" ")||"none"};opacity:${u}`}}}function xr(t,e,n){return t*(1-n)+e*n}const vJ=200,bJ=0;function yJ(t,{rootBbox:e,beforeBbox:n,afterBbox:i,transition:o}){var r,s;return{delay:(r=o.start_delay)!=null?r:bJ,duration:od()?0:(s=o.duration)!=null?s:vJ,easing:o.interpolator&&o.interpolator in uu?uu[o.interpolator]:ld,css:l=>[`top:${xr(n.top,i.top,l)-e.top}px`,`left:${xr(n.left,i.left,l)-e.left}px`,`width:${xr(n.width,i.width,l)}px`,`height:${xr(n.height,i.height,l)}px`].join(";")}}function k2(t){const e=[];return t.type==="set"?(t.items||[]).forEach((n=>{e.push(...k2(n))})):e.push(t),e}const{Map:wJ}=Ur;function Pf(t,e,n){const i=t.slice();return i[35]=e[n],i}function $J(t){let e,n;return e=new Jr({props:{componentContext:t[0]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function kJ(t){let e,n;return e=new qo({props:{cls:kn("state",Ps,t[7]),componentContext:t[0],layoutParams:t[1],parentOf:t[8],parentOfSimpleMode:!0,replaceItems:t[10],$$slots:{default:[CJ]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&128&&(r.cls=kn("state",Ps,i[7])),o[0]&1&&(r.componentContext=i[0]),o[0]&2&&(r.layoutParams=i[1]),o[0]&256&&(r.parentOf=i[8]),o[0]&120|o[1]&128&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function If(t){let e=t[5],n,i,o=Df(t);return{c(){o.c(),n=si()},m(r,s){o.m(r,s),rt(r,n,s),i=!0},p(r,s){s[0]&32&&Pi(e,e=r[5])?(ui(),nt(o,1,1,me),pi(),o=Df(r),o.c(),Ue(o,1),o.m(n.parentNode,n)):o.p(r,s)},i(r){i||(Ue(o),i=!0)},o(r){nt(o),i=!1},d(r){r&&it(n),o.d(r)}}}function Df(t){let e,n;return e=new Cr({props:{componentContext:t[6]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&64&&(r.componentContext=i[6]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function jJ(t){let e,n,i,o,r,s,l,a;i=new Cr({props:{componentContext:t[35].componentContextCopy}});function c(){return t[20](t[35])}return{c(){e=Zt("div"),n=Zt("div"),Qn(i.$$.fragment),o=Ai(),K(n,"class",Ps["state__animation-child-inner"]),K(e,"class",Ps["state__animation-child"])},m(d,u){rt(d,e,u),Vn(e,n),Zn(i,n,null),Vn(e,o),s=!0,l||(a=en(e,"introend",c),l=!0)},p(d,u){t=d;const p={};u[0]&16&&(p.componentContext=t[35].componentContextCopy),i.$set(p)},i(d){s||(Ue(i.$$.fragment,d),r||sr((()=>{r=Fu(e,yJ,t[35]),r.start()})),s=!0)},o(d){nt(i.$$.fragment,d),s=!1},d(d){d&&it(e),xn(i),l=!1,a()}}}function SJ(t){let e,n,i,o,r,s=`${t[35].offsetLeft}px`,l=`${t[35].offsetTop}px`,a=`${t[35].width}px`,c=`${t[35].height}px`,d,u,p;i=new Cr({props:{componentContext:t[35].componentContextCopy}});function _(){return t[19](t[35])}return{c(){e=Zt("div"),n=Zt("div"),Qn(i.$$.fragment),o=Ai(),K(n,"class",Ps["state__animation-child-inner"]),K(e,"class",Ps["state__animation-child"]),He(e,"left",s),He(e,"top",l),He(e,"width",a),He(e,"height",c)},m(f,m){rt(f,e,m),Vn(e,n),Zn(i,n,null),Vn(e,o),d=!0,u||(p=en(e,"introend",_),u=!0)},p(f,m){t=f;const h={};m[0]&16&&(h.componentContext=t[35].componentContextCopy),i.$set(h),m[0]&16&&s!==(s=`${t[35].offsetLeft}px`)&&He(e,"left",s),m[0]&16&&l!==(l=`${t[35].offsetTop}px`)&&He(e,"top",l),m[0]&16&&a!==(a=`${t[35].width}px`)&&He(e,"width",a),m[0]&16&&c!==(c=`${t[35].height}px`)&&He(e,"height",c)},i(f){d||(Ue(i.$$.fragment,f),r||sr((()=>{r=Fu(e,hJ,t[35]),r.start()})),d=!0)},o(f){nt(i.$$.fragment,f),d=!1},d(f){f&&it(e),xn(i),u=!1,p()}}}function Vf(t,e){let n,i,o,r,s;const l=[SJ,jJ],a=[];function c(d,u){return"direction"in d[35]?0:1}return i=c(e),o=a[i]=l[i](e),{key:t,first:null,c(){n=si(),o.c(),r=si(),this.first=n},m(d,u){rt(d,n,u),a[i].m(d,u),rt(d,r,u),s=!0},p(d,u){e=d;let p=i;i=c(e),i===p?a[i].p(e,u):(ui(),nt(a[p],1,1,(()=>{a[p]=null})),pi(),o=a[i],o?o.p(e,u):(o=a[i]=l[i](e),o.c()),Ue(o,1),o.m(r.parentNode,r))},i(d){s||(Ue(o),s=!0)},o(d){nt(o),s=!1},d(d){d&&(it(n),it(r)),a[i].d(d)}}}function CJ(t){let e,n,i=[],o=new wJ,r,s=t[6]&&If(t),l=ci(t[4]);const a=c=>c[35];for(let c=0;c<l.length;c+=1){let d=Pf(t,l,c),u=a(d);o.set(u,i[c]=Vf(u,d))}return{c(){s&&s.c(),e=Ai(),n=Zt("div");for(let c=0;c<i.length;c+=1)i[c].c();K(n,"class",Ps.state__animations),K(n,"aria-hidden","true")},m(c,d){s&&s.m(c,d),rt(c,e,d),rt(c,n,d);for(let u=0;u<i.length;u+=1)i[u]&&i[u].m(n,null);t[21](n),r=!0},p(c,d){c[6]?s?(s.p(c,d),d[0]&64&&Ue(s,1)):(s=If(c),s.c(),Ue(s,1),s.m(e.parentNode,e)):s&&(ui(),nt(s,1,1,(()=>{s=null})),pi()),d[0]&2064&&(l=ci(c[4]),ui(),i=Z1(i,d,a,1,c,l,o,n,X1,Vf,null,Pf),pi())},i(c){if(!r){Ue(s);for(let d=0;d<l.length;d+=1)Ue(i[d]);r=!0}},o(c){nt(s);for(let d=0;d<i.length;d+=1)nt(i[d]);r=!1},d(c){c&&(it(e),it(n)),s&&s.d(c);for(let d=0;d<i.length;d+=1)i[d].d();t[21](null)}}}function TJ(t){let e,n,i,o;const r=[kJ,$J],s=[];function l(a,c){return a[2]?1:0}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=si()},m(a,c){~e&&s[e].m(a,c),rt(a,i,c),o=!0},p(a,c){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&it(i),~e&&s[e].d(a)}}}function zJ(t){return t.some((e=>e.type==="fade"))}function j2(t){return t.type==="change_bounds"?t:t.type==="set"?j2(t.items[0]):null}function EJ(t,e,n){let i,o,r,s,l,a,c,d,u,p,_=me,f=()=>(_(),_=De(r,(Q=>n(18,p=Q))),r);t.$$.on_destroy.push((()=>_()));let{componentContext:m}=e,{layoutParams:h=void 0}=e;const v=ro(vo);let y=!1,b,w=new Map,k=new Set,E=[],T=[],j=[],A=[],O,M,D,R=!1;function U(){n(13,R=!1)}function B(Q){D&&D.destroy(),n(6,D=Q!=null&&Q.div?m.produceChildContext(Q.div,{path:Q.state_id||"<unknown>"}):void 0)}function C(Q){const oe=m.json.states;oe&&(n(14,c=oe.map(((he,ze)=>({...he,div:Q[ze]})))),n(0,m.json={...m.json,states:c},m),M&&B(c.find((he=>he.state_id===M))||null))}function q(Q,oe,he){let{json:ze,parentComponentContext:W,transitions:Ke,node:at}=oe;ze=m.getJsonWithVars(ze),Ke=m.getJsonWithVars(Ke);const Te=k2(Ke),ot=oe.bbox||at.getBoundingClientRect(),J={...ze,margins:void 0,alpha:zJ(Te)?void 0:ze.alpha};return{id:W.id||"",json:J,componentContextCopy:W.produceChildContext(J,{fake:!0}),elementBbox:ot,rootBbox:Q,transitions:Te,alpha:ze.alpha,width:ot.width,height:ot.height,offsetTop:ot.top-Q.top,offsetLeft:ot.left-Q.left,direction:he,resolvePromise:oe.resolvePromise,node:oe.node}}async function V(Q){if(M===Q)return m;v.setRunning("stateChange",!0);const oe=new Set(k);E.forEach((J=>{J.resolvePromise&&J.resolvePromise()})),n(4,E=[]);let he=[];if(b){const J=b.getBoundingClientRect();he=j.map((ue=>q(J,ue,"out")))}A.forEach((J=>{J.transitions&&w.set(J.id,{transitions:J.transitions,rect:J.node.getBoundingClientRect()})})),T=[],j=[],A=[];const ze=c.find((J=>J.state_id===Q))||null;if(ze?(n(5,M=Q),l==null||l.setValue(M),B(ze)):m.logError(tt(new Error("Cannot find state with id"),{additional:{stateId:Q}})),await Fo(),!b)return;const W=b.getBoundingClientRect();let Ke=T.filter((J=>{var ue;return J.parentComponentContext.id&&!oe.has(J.parentComponentContext.id)?!0:((ue=J.resolvePromise)==null||ue.call(J),!1)})).map((J=>q(W,J,"in")));he=he.filter((J=>{var ue;return J.id&&!k.has(J.id)?!0:((ue=J.resolvePromise)==null||ue.call(J),!1)}));const at=he.concat(Ke),Te=at.reduce(((J,ue)=>Math.max(J,Mf(ue.transitions))),0),ot=A.filter((J=>w.has(J.id))).map((J=>{const ue={...J.json,margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}},fe=w.get(J.id);return{id:J.parentComponentContext.id||"",json:ue,componentContextCopy:J.parentComponentContext.produceChildContext(ue,{fake:!0}),rootBbox:W,beforeBbox:fe.rect,afterBbox:J.node.getBoundingClientRect(),node:J.node,transition:m.getJsonWithVars(j2(fe.transitions)),resolvePromise:J.resolvePromise}}));return n(4,E=[...at.map((J=>({...J,maxDuration:Te}))),...ot]),w.clear(),v.setRunning("stateChange",!1),m}Ss(Nu,{runVisibilityTransition(Q,oe,he,ze,W,Ke){if(!b)return Promise.resolve();const at=b.getBoundingClientRect(),Te=q(at,{json:Q,parentComponentContext:oe,transitions:he,node:ze,bbox:Ke},W),ot=Mf(Te.transitions),J={...Te,maxDuration:ot};return n(4,E=[...E.filter((ue=>ue.node!==Te.node)),J]),new Promise((ue=>{J.resolvePromise=ue}))},registerChildWithTransitionIn(Q,oe,he,ze){const W={json:Q,parentComponentContext:oe,transitions:he,node:ze};return T.push(W),new Promise((Ke=>{W.resolvePromise=Ke}))},registerChildWithTransitionOut(Q,oe,he,ze){const W={json:Q,parentComponentContext:oe,transitions:he,node:ze};return j.push(W),new Promise((Ke=>{W.resolvePromise=Ke}))},registerChildWithTransitionChange(Q,oe,he,ze){const W=oe.id;if(!W)return Promise.resolve();const Ke={id:W,json:Q,parentComponentContext:oe,transitions:he,node:ze};return A.push(Ke),new Promise((at=>{Ke.resolvePromise=at}))},hasTransitionChange(Q){return Q?w.has(Q):!1},registerChild(Q){k.add(Q)},unregisterChild(Q){k.delete(Q)}});function Y(Q){if(!R&&(n(13,R=!0),Q.length)){const oe=(l==null?void 0:l.getValue())||o;if(oe){n(5,M=oe);const he=Q.find((ze=>ze.state_id===M))||null;B(he),he||m.logError(tt(new Error("Cannot find state for default_state_id"),{additional:{selectedId:M}}))}else{const he=Q[0];n(5,M=he.state_id),B(he)}l&&(l.setValue(M),l.subscribe((he=>{V(he)})))}}function x(Q){n(4,E=E.filter((oe=>oe!==Q))),Q.resolvePromise&&Q.resolvePromise()}jo((()=>{D&&D.destroy(),O&&m.unregisterState(O)}));const de=Q=>x(Q),_e=Q=>x(Q);function G(Q){Wi[Q?"unshift":"push"]((()=>{b=Q,n(3,b)}))}return t.$$set=Q=>{"componentContext"in Q&&n(0,m=Q.componentContext),"layoutParams"in Q&&n(1,h=Q.layoutParams)},t.$$.update=()=>{t.$$.dirty[0]&1&&n(15,i=m.json.div_id||m.id),t.$$.dirty[0]&1&&(o=m.getJsonWithVars(m.json.default_state_id)),t.$$.dirty[0]&1&&f(n(9,r=m.getDerivedFromVars(m.json.clip_to_bounds))),t.$$.dirty[0]&1&&n(17,s=m.json.state_id_variable),t.$$.dirty[0]&131073&&(l=s?m.getVariable(s,"string"):null),t.$$.dirty[0]&1&&n(16,a=m.origJson),t.$$.dirty[0]&65536&&a&&U(),t.$$.dirty[0]&32769&&(i?n(2,y=!1):(n(2,y=!0),m.logError(tt(new Error('Missing "id" prop for div "state"'))))),t.$$.dirty[0]&1&&m.json&&(k=new Set),t.$$.dirty[0]&1&&n(14,c=Array.isArray(m.json.states)&&m.json.states||[]),t.$$.dirty[0]&16384&&n(8,d=c.map((Q=>{var oe;return{json:Q.div,id:(oe=Q.div)==null?void 0:oe.id}}))),t.$$.dirty[0]&16385&&(c!=null&&c.length?n(2,y=!1):(n(2,y=!0),m.logError(tt(new Error('Empty "states" prop for div "state"'))))),t.$$.dirty[0]&36865&&m.json&&(O&&(m.unregisterState(i),n(12,O=void 0)),i&&!(m!=null&&m.fakeElement)&&(n(12,O=i),m.registerState(i,V))),t.$$.dirty[0]&24576&&!R&&Y(c),t.$$.dirty[0]&262144&&n(7,u={overflow:p===!1||p===0?"visible":void 0})},[m,h,y,b,E,M,D,u,d,r,C,x,O,R,c,i,a,s,p,de,_e,G]}class AJ extends Qi{constructor(e){super(),xi(this,e,EJ,TJ,Pi,{componentContext:0,layoutParams:1},null,[-1,-1])}}const OJ="divkit-4e617",MJ="divkit-2d4e4",PJ="divkit-834e0",IJ="divkit-9cc96",DJ="divkit-e886e",VJ="divkit-e1525",LJ="divkit-3af1f",FJ="divkit-8d520",NJ="divkit-4e248",qJ="divkit-c6702",Rr={pager:OJ,pager__items:MJ,pager__item:PJ,pager_orientation_horizontal:IJ,pager_orientation_vertical:DJ,pager__item_height_content:VJ,pager__item_height_fixed:LJ,"pager__item_height-constrained":"divkit-d5bd8",pager__item_width_content:FJ,pager__item_width_fixed:NJ,"pager__item_width-constrained":"divkit-6a541",pager__arrow:qJ,"pager__arrow-icon-path":"divkit-97cb5"},{Boolean:RJ}=Ur;function Lf(t,e,n){const i=t.slice();return i[59]=e[n],i[61]=n,i}function BJ(t){let e,n;return e=new Jr({props:{componentContext:t[0]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function HJ(t){let e,n;return e=new qo({props:{cls:kn("pager",Rr,t[12]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,parentOf:t[3],replaceItems:t[27],$$slots:{default:[WJ]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&4096&&(r.cls=kn("pager",Rr,i[12])),o[0]&1&&(r.componentContext=i[0]),o[0]&2&&(r.layoutParams=i[1]),o[0]&8&&(r.parentOf=i[3]),o[0]&3157612|o[2]&1&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function Ff(t){let e,n,i,o,r;return n=new Cr({props:{componentContext:t[59]}}),{c(){e=Zt("div"),Qn(n.$$.fragment),i=Ai(),K(e,"class",o=kn("pager__item",Rr,Rf(t[2],t[21][t[61]])))},m(s,l){rt(s,e,l),Zn(n,e,null),Vn(e,i),r=!0},p(s,l){const a={};l[0]&8&&(a.componentContext=s[59]),n.$set(a),(!r||l[0]&2097156&&o!==(o=kn("pager__item",Rr,Rf(s[2],s[21][s[61]]))))&&K(e,"class",o)},i(s){r||(Ue(n.$$.fragment,s),r=!0)},o(s){nt(n.$$.fragment,s),r=!1},d(s){s&&it(e),xn(n)}}}function Nf(t){let e,n,i,o=!t[23]&&UJ();return{c(){e=Zt("div"),o&&o.c(),K(e,"class",t[23]||`${Rr.pager__arrow} ${gr.arrow} ${gr.arrow_left}`)},m(r,s){rt(r,e,s),o&&o.m(e,null),n||(i=en(e,"click",t[46]),n=!0)},p:me,d(r){r&&it(e),o&&o.d(),n=!1,i()}}}function UJ(t){let e,n;return{c(){e=$o("svg"),n=$o("path"),K(n,"class",Rr["pager__arrow-icon-path"]),K(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),K(e,"class",gr.arrow__icon),K(e,"xmlns","http://www.w3.org/2000/svg"),K(e,"width","32"),K(e,"height","32"),K(e,"viewBox","0 0 32 32"),K(e,"fill","none")},m(i,o){rt(i,e,o),Vn(e,n)},d(i){i&&it(e)}}}function qf(t){let e,n,i,o=!t[24]&&JJ();return{c(){e=Zt("div"),o&&o.c(),K(e,"class",t[24]||`${Rr.pager__arrow} ${gr.arrow} ${gr.arrow_right}`)},m(r,s){rt(r,e,s),o&&o.m(e,null),n||(i=en(e,"click",t[47]),n=!0)},p:me,d(r){r&&it(e),o&&o.d(),n=!1,i()}}}function JJ(t){let e,n;return{c(){e=$o("svg"),n=$o("path"),K(n,"class",Rr["pager__arrow-icon-path"]),K(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),K(e,"class",gr.arrow__icon),K(e,"xmlns","http://www.w3.org/2000/svg"),K(e,"width","32"),K(e,"height","32"),K(e,"viewBox","0 0 32 32"),K(e,"fill","none")},m(i,o){rt(i,e,o),Vn(e,n)},d(i){i&&it(e)}}}function WJ(t){let e,n,i,o,r,s,l,a,c,d=ci(t[3]),u=[];for(let m=0;m<d.length;m+=1)u[m]=Ff(Lf(t,d,m));const p=m=>nt(u[m],1,1,(()=>{u[m]=null}));let _=t[10]&&t[11]&&Nf(t),f=t[9]&&t[11]&&qf(t);return{c(){e=Zt("div");for(let m=0;m<u.length;m+=1)u[m].c();o=Ai(),_&&_.c(),r=Ai(),f&&f.c(),s=si(),K(e,"class",n=Rr.pager__items+" "+(t[20]?ai["root_restrict-scroll"]:"")),K(e,"style",i=Nn(t[13]))},m(m,h){rt(m,e,h);for(let v=0;v<u.length;v+=1)u[v]&&u[v].m(e,null);t[45](e),rt(m,o,h),_&&_.m(m,h),rt(m,r,h),f&&f.m(m,h),rt(m,s,h),l=!0,a||(c=en(e,"scroll",t[26]),a=!0)},p(m,h){if(h[0]&2097164){d=ci(m[3]);let v;for(v=0;v<d.length;v+=1){const y=Lf(m,d,v);u[v]?(u[v].p(y,h),Ue(u[v],1)):(u[v]=Ff(y),u[v].c(),Ue(u[v],1),u[v].m(e,null))}for(ui(),v=d.length;v<u.length;v+=1)p(v);pi()}(!l||h[0]&1048576&&n!==(n=Rr.pager__items+" "+(m[20]?ai["root_restrict-scroll"]:"")))&&K(e,"class",n),(!l||h[0]&8192&&i!==(i=Nn(m[13])))&&K(e,"style",i),m[10]&&m[11]?_?_.p(m,h):(_=Nf(m),_.c(),_.m(r.parentNode,r)):_&&(_.d(1),_=null),m[9]&&m[11]?f?f.p(m,h):(f=qf(m),f.c(),f.m(s.parentNode,s)):f&&(f.d(1),f=null)},i(m){if(!l){for(let h=0;h<d.length;h+=1)Ue(u[h]);l=!0}},o(m){u=u.filter(RJ);for(let h=0;h<u.length;h+=1)nt(u[h]);l=!1},d(m){m&&(it(e),it(o),it(r),it(s)),Co(u,m),t[45](null),_&&_.d(m),f&&f.d(m),a=!1,c()}}}function KJ(t){let e,n,i,o;const r=[HJ,BJ],s=[];function l(a,c){return a[4]?1:0}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=si()},m(a,c){~e&&s[e].m(a,c),rt(a,i,c),o=!0},p(a,c){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&it(i),~e&&s[e].d(a)}}}const Pa={wrap_content:"content",fixed:"fixed",match_parent:"parent"};function Rf(t,e){var n,i,o,r;if(t==="horizontal"){const l=((n=e.height)==null?void 0:n.type)||"";return{height:l in Pa?Pa[l]:"content","height-constrained":((i=e.height)==null?void 0:i.type)==="wrap_content"?br(e.height.constrained,!1):!1}}const s=((o=e.width)==null?void 0:o.type)||"";return{width:s in Pa?Pa[s]:"parent","width-constrained":((r=e.width)==null?void 0:r.type)==="wrap_content"?br(e.width.constrained,!1):!1}}function YJ(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,h,v,y,b=me,w=()=>(b(),b=De(v,(bt=>n(49,y=bt))),v),k,E,T,j=me,A=()=>(j(),j=De(r,(bt=>n(40,T=bt))),r),O,M=me,D=()=>(M(),M=De(a,(bt=>n(41,O=bt))),a),R,U=me,B=()=>(U(),U=De(l,(bt=>n(42,R=bt))),l),C,q=me,V=()=>(q(),q=De(s,(bt=>n(43,C=bt))),s),Y,x=me,de=()=>(x(),x=De(o,(bt=>n(44,Y=bt))),o),_e,G=me,Q=()=>(G(),G=De(c,(bt=>n(20,_e=bt))),c),oe,he=me,ze=()=>(he(),he=De(vt,(bt=>n(21,oe=bt))),vt);t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>he()));let{componentContext:W}=e,{layoutParams:Ke=void 0}=e;const at=ro(vo),Te=at.direction;ko(t,Te,(bt=>n(5,k=bt)));const ot=at.genId("pager"),J=at.getCustomization("pagerLeftClass"),ue=at.getCustomization("pagerRightClass"),fe=at.isDesktop;ko(t,fe,(bt=>n(39,E=bt)));const Qe=sd(sn,50);let ye,Ee,Ye=!1,vt,ne=0,pe=0,kt=!1,$e="horizontal",et="0em",le="",Ve="",Xe=[];function xe(){n(35,le="")}function jt(bt){n(0,W={...W,json:{...W.json,items:bt.filter(os)}})}function Vt(bt,Cn){return $e==="horizontal"?Cn.left>=bt.left&&Cn.right<=bt.right:Cn.top>=bt.top&&Cn.bottom<=bt.bottom}function ln(){const bt=Array.from(Ee.children),Cn=Ee.getBoundingClientRect(),Ut=bt.findIndex((gn=>Vt(Cn,gn.getBoundingClientRect())));return Ut!==-1?Ut:ne}function sn(){if(!Ye)return;const bt=ln();bt!==ne&&n(32,ne=bt)}function At(bt,Cn){const Ut=W.id;if(Ut){const gn=new Map(y);nc(v,y=gn.set(Ut,{instId:ot,size:bt,currentItem:Cn,scrollToPagerItem:dn}),y)}}function pn(bt){var Cn;if(bt===pe)return;pe=bt;const Ut=W.getJsonWithVars((Cn=Xe[bt].json)==null?void 0:Cn.selected_actions);Ut!=null&&Ut.length&&W.execAnyActions(Ut)}function dn(bt,Cn="smooth"){const Ut=$e==="horizontal",gn=Ee.children[bt],Lt=Ut?"offsetLeft":"offsetTop",wn=Ut?"offsetWidth":"offsetHeight",vn=Ut?"left":"top",Jt=gn[Lt]+gn[wn]/2-Ee[wn]/2;Ee.scroll({[vn]:Jt,behavior:Cn}),n(32,ne=bt)}function Rn(bt,Cn){let Ut=ne-bt;Ut<0&&(Ut=Cn==="ring"?ps(Ut,Xe.length):0),dn(Ut)}function Ln(bt,Cn){let Ut=ne+bt;Ut>Xe.length-1&&(Ut=Cn==="ring"?ps(Ut,Xe.length):Xe.length-1),dn(Ut)}Sr((()=>{if(n(31,Ye=!0),!!document.getElementById(`${ot}-tab-0`)){const bt=[...Ee.children];for(const[Cn,Ut]of bt.entries())Ut.setAttribute("role","tabpanel"),Ut.setAttribute("id",`${ot}-panel-${Cn}`),Ut.setAttribute("aria-labelledby",`${ot}-tab-${Cn}`)}ne>0&&dn(ne,"instant")})),jo((()=>{n(31,Ye=!1),Xe.forEach((bt=>{bt.destroy()})),ye&&(at.unregisterInstance(ye),n(30,ye=void 0))}));function qe(bt){Wi[bt?"unshift":"push"]((()=>{Ee=bt,n(6,Ee)}))}const st=()=>(k==="ltr"?Rn:Ln)(1,"clamp"),li=()=>(k==="ltr"?Ln:Rn)(1,"clamp");return t.$$set=bt=>{"componentContext"in bt&&n(0,W=bt.componentContext),"layoutParams"in bt&&n(1,Ke=bt.layoutParams)},t.$$.update=()=>{var bt,Cn,Ut,gn,Lt,wn,vn,Jt,Kt,Un,Kn,fi,Je;if(t.$$.dirty[0]&1&&n(38,i=W.origJson),t.$$.dirty[1]&128&&i&&xe(),t.$$.dirty[0]&1&&de(n(19,o=typeof((bt=W.json.item_builder)==null?void 0:bt.data)=="string"?W.getDerivedFromVars((Cn=W.json.item_builder)==null?void 0:Cn.data,void 0,!0):(Ut=W.json.item_builder)!=null&&Ut.data?Ts(W.json.item_builder.data):void 0)),t.$$.dirty[0]&1&&A(n(18,r=W.getDerivedFromVars(W.json.layout_mode))),t.$$.dirty[0]&1&&V(n(17,s=W.getDerivedFromVars(W.json.orientation))),t.$$.dirty[0]&1&&B(n(16,l=W.getDerivedFromVars(W.json.item_spacing))),t.$$.dirty[0]&1&&D(n(15,a=W.getDerivedFromVars(W.json.paddings))),t.$$.dirty[0]&1&&Q(n(14,c=W.getDerivedFromVars(W.json.restrict_parent_scroll))),t.$$.dirty[0]&9|t.$$.dirty[1]&8192){let ht=[];if(W.json.item_builder&&Array.isArray(Y)&&Array.isArray(W.json.item_builder.prototypes)){const ct=W.json.item_builder;ht=Wu(Y,at,W,ct)}else ht=(Array.isArray(W.json.items)&&W.json.items||[]).map((ct=>({div:ct})));Xe.forEach((ct=>{ct.destroy()})),n(3,Xe=ht.map(((ct,gt)=>W.produceChildContext(ct.div,{path:gt,variables:ct.vars,id:ct.id}))))}if(t.$$.dirty[0]&9){let ht=[];Xe.forEach((ct=>{ht.push(W.getDerivedFromVars({width:ct.json.width,height:ct.json.height}))})),ze(n(7,vt=Ms(ht,(ct=>[...ct]))))}if(t.$$.dirty[0]&1|t.$$.dirty[1]&512&&(T?T.type!=="percentage"&&T.type!=="fixed"?(n(33,kt=!0),W.logError(tt(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):n(33,kt=!1):(n(33,kt=!0),W.logError(tt(new Error('Empty "layout_mode" prop for div "pager"'))))),t.$$.dirty[0]&4|t.$$.dirty[1]&4096&&n(2,$e=Ku(C,$e)),t.$$.dirty[1]&2048){const ht=R==null?void 0:R.value;ht&&Wo(ht)&&n(34,et=Jo(ht||0))}if(t.$$.dirty[0]&32|t.$$.dirty[1]&1040&&n(35,le=oa(O,k,le)),t.$$.dirty[0]&4&&n(37,d=$e==="horizontal"?"grid-auto-columns":"grid-auto-rows"),t.$$.dirty[0]&37|t.$$.dirty[1]&520){if((T==null?void 0:T.type)==="fixed"){const ht=Jo($e==="horizontal"?((k==="ltr"?(gn=W.json.paddings)==null?void 0:gn.start:(Lt=W.json.paddings)==null?void 0:Lt.end)||((wn=W.json.paddings)==null?void 0:wn.left)||0)+((k==="ltr"?(vn=W.json.paddings)==null?void 0:vn.end:(Jt=W.json.paddings)==null?void 0:Jt.start)||((Kt=W.json.paddings)==null?void 0:Kt.right)||0):(((Un=W.json.paddings)==null?void 0:Un.top)||0)+(((Kn=W.json.paddings)==null?void 0:Kn.bottom)||0)),ct=(fi=T.neighbour_page_width)==null?void 0:fi.value;n(36,Ve=ct?`calc(100% + ${ht} - 2 * ${Jo(ct)} - 2 * ${et})`:"100%")}else if((T==null?void 0:T.type)==="percentage"){const ht=(Je=T.page_width)==null?void 0:Je.value;n(36,Ve=`${Number(ht)}%`)}}if(t.$$.dirty[1]&120&&n(13,u={"grid-gap":et,padding:le,[d]:Ve}),t.$$.dirty[0]&4&&n(12,p={orientation:$e}),t.$$.dirty[1]&4&&n(4,_=kt),t.$$.dirty[0]&16|t.$$.dirty[1]&257&&n(11,f=E&&Ye&&!_),t.$$.dirty[0]&1073741833&&W.json){const ht=W.getJsonWithVars(W.json.default_item);typeof ht=="number"&&ht>=0&&ht<Xe.length&&n(32,ne=pe=ht),ye&&(at.unregisterInstance(ye),n(30,ye=void 0)),W.id&&!W.fakeElement&&(n(30,ye=W.id),at.registerInstance(ye,{setCurrentItem(ct){if(ct<0||ct>Xe.length-1)throw new Error('Item is out of range in "set-current-item" action');dn(ct)},setPreviousItem:Rn,setNextItem:Ln,scrollToStart(){dn(0)},scrollToEnd(){dn(Xe.length-1)}}))}t.$$.dirty[0]&40|t.$$.dirty[1]&2&&n(10,m=k==="ltr"?ne>0:ne+1<Xe.length),t.$$.dirty[0]&40|t.$$.dirty[1]&2&&n(9,h=k==="ltr"?ne+1<Xe.length:ne>0),t.$$.dirty[0]&8|t.$$.dirty[1]&2&&At(Xe.length,ne),t.$$.dirty[1]&2&&pn(ne)},w(n(8,v=at.getStore("pagers"))),[W,Ke,$e,Xe,_,k,Ee,vt,v,h,m,f,p,u,c,a,l,s,r,o,_e,oe,Te,J,ue,fe,Qe,jt,Rn,Ln,ye,Ye,ne,kt,et,le,Ve,d,i,E,T,O,R,C,Y,qe,st,li]}class GJ extends Qi{constructor(e){super(),xi(this,e,YJ,KJ,Pi,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const XJ="divkit-7560c",ZJ="divkit-42240",xJ="divkit-49790",QJ="divkit-2da15",eW="divkit-eb5df",tW="divkit-c146b",nW="divkit-bae27",iW="divkit-58b11",oW="divkit-b49a3",Is={indicator:XJ,indicator__scroller:ZJ,indicator__items:xJ,indicator__item:QJ,indicator_placement_default:eW,indicator__item_active:tW,indicator_direction_ltr:nW,indicator_direction_rtl:iW,indicator_placement_stretch:oW};function Bf(t,e,n){const i=t.slice();i[42]=e[n],i[45]=n;const o=i[45]===i[10].currentItem;return i[43]=o,i}function Hf(t){let e,n=ci(Array(t[10].size)),i=[];for(let o=0;o<n.length;o+=1)i[o]=Uf(Bf(t,n,o));return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=si()},m(o,r){for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(o,r);rt(o,e,r)},p(o,r){if(r[0]&12583936){n=ci(Array(o[10].size));let s;for(s=0;s<n.length;s+=1){const l=Bf(o,n,s);i[s]?i[s].p(l,r):(i[s]=Uf(l),i[s].c(),i[s].m(e.parentNode,e))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length}},d(o){o&&it(e),Co(i,o)}}}function Uf(t){let e,n,i,o,r,s,l,a;function c(){return t[35](t[45])}return{c(){e=Zt("div"),K(e,"class",n=kn("indicator__item",Is,{active:t[43]})+" "+ai.root__clickable),K(e,"role","tab"),K(e,"id",i=t[10].instId+"-tab-"+t[45]),K(e,"aria-controls",o=t[10].instId+"-panel-"+t[45]),K(e,"aria-selected",r=t[43]?"true":"false"),K(e,"tabindex",s=t[43]?0:-1)},m(d,u){rt(d,e,u),l||(a=[en(e,"click",c),en(e,"keydown",t[23])],l=!0)},p(d,u){t=d,u[0]&1024&&n!==(n=kn("indicator__item",Is,{active:t[43]})+" "+ai.root__clickable)&&K(e,"class",n),u[0]&1024&&i!==(i=t[10].instId+"-tab-"+t[45])&&K(e,"id",i),u[0]&1024&&o!==(o=t[10].instId+"-panel-"+t[45])&&K(e,"aria-controls",o),u[0]&1024&&r!==(r=t[43]?"true":"false")&&K(e,"aria-selected",r),u[0]&1024&&s!==(s=t[43]?0:-1)&&K(e,"tabindex",s)},d(d){d&&it(e),l=!1,so(a)}}}function rW(t){let e,n,i=t[10]&&Hf(t);return{c(){e=Zt("div"),n=Zt("div"),i&&i.c(),K(n,"class",Is.indicator__items),K(n,"role","tablist"),He(n,"margin",t[4]==="default"?`0 ${Et(Math.max(0,t[2].width-t[3].width)/2)}`:""),He(n,"--divkit-indicator-inactive-width",Et(t[3].width)),He(n,"--divkit-indicator-inactive-height",Et(t[3].height)),He(n,"--divkit-indicator-inactive-border-radius",Et(t[3].borderRadius)),He(n,"--divkit-indicator-inactive-background",t[3].background||""),He(n,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),He(n,"--divkit-indicator-active-width",Et(t[2].width)),He(n,"--divkit-indicator-active-height",Et(t[2].height)),He(n,"--divkit-indicator-active-border-radius",Et(t[2].borderRadius)),He(n,"--divkit-indicator-active-background",t[2].background||""),He(n,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),He(n,"--divkit-indicator-active-scale",t[2].width/t[3].width),He(n,"--divkit-indicator-default-margin",t[4]==="default"?`0 ${Et((t[5]-t[3].width)/2)}`:""),He(n,"--divkit-indicator-stretch-margin",t[4]==="stretch"?Et(t[7]):""),He(n,"--divkit-indicator-stretch-max-count",t[4]==="stretch"?t[6]:""),He(n,"--divkit-indicator-stretch-max-spacer",t[4]==="stretch"?Et((t[6]-1)*t[7]):""),K(e,"class",Is.indicator__scroller)},m(o,r){rt(o,e,r),Vn(e,n),i&&i.m(n,null),t[36](n),t[37](e)},p(o,r){o[10]?i?i.p(o,r):(i=Hf(o),i.c(),i.m(n,null)):i&&(i.d(1),i=null),r[0]&28&&He(n,"margin",o[4]==="default"?`0 ${Et(Math.max(0,o[2].width-o[3].width)/2)}`:""),r[0]&8&&He(n,"--divkit-indicator-inactive-width",Et(o[3].width)),r[0]&8&&He(n,"--divkit-indicator-inactive-height",Et(o[3].height)),r[0]&8&&He(n,"--divkit-indicator-inactive-border-radius",Et(o[3].borderRadius)),r[0]&8&&He(n,"--divkit-indicator-inactive-background",o[3].background||""),r[0]&8&&He(n,"--divkit-indicator-inactive-box-shadow",o[3].boxShadow||""),r[0]&4&&He(n,"--divkit-indicator-active-width",Et(o[2].width)),r[0]&4&&He(n,"--divkit-indicator-active-height",Et(o[2].height)),r[0]&4&&He(n,"--divkit-indicator-active-border-radius",Et(o[2].borderRadius)),r[0]&4&&He(n,"--divkit-indicator-active-background",o[2].background||""),r[0]&4&&He(n,"--divkit-indicator-active-box-shadow",o[2].boxShadow||""),r[0]&12&&He(n,"--divkit-indicator-active-scale",o[2].width/o[3].width),r[0]&56&&He(n,"--divkit-indicator-default-margin",o[4]==="default"?`0 ${Et((o[5]-o[3].width)/2)}`:""),r[0]&144&&He(n,"--divkit-indicator-stretch-margin",o[4]==="stretch"?Et(o[7]):""),r[0]&80&&He(n,"--divkit-indicator-stretch-max-count",o[4]==="stretch"?o[6]:""),r[0]&208&&He(n,"--divkit-indicator-stretch-max-spacer",o[4]==="stretch"?Et((o[6]-1)*o[7]):"")},d(o){o&&it(e),i&&i.d(),t[36](null),t[37](null)}}}function sW(t){let e,n;return e=new qo({props:{cls:kn("indicator",Is,t[11]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[rW]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&2048&&(r.cls=kn("indicator",Is,i[11])),o[0]&1&&(r.componentContext=i[0]),o[0]&2&&(r.layoutParams=i[1]),o[0]&2044|o[1]&32768&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}const Td=["rounded_rectangle","circle"];function lW(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,h=me,v=()=>(h(),h=De(p,(Ve=>n(26,m=Ve))),p),y,b=me,w=()=>(b(),b=De(d,(Ve=>n(27,y=Ve))),d),k,E=me,T=()=>(E(),E=De(u,(Ve=>n(28,k=Ve))),u),j,A=me,O=()=>(A(),A=De(r,(Ve=>n(29,j=Ve))),r),M,D=me,R=()=>(D(),D=De(s,(Ve=>n(30,M=Ve))),s),U,B=me,C=()=>(B(),B=De(o,(Ve=>n(31,U=Ve))),o),q,V=me,Y=()=>(V(),V=De(l,(Ve=>n(32,q=Ve))),l),x,de=me,_e=()=>(de(),de=De(c,(Ve=>n(33,x=Ve))),c),G,Q=me,oe=()=>(Q(),Q=De(a,(Ve=>n(34,G=Ve))),a);t.$$.on_destroy.push((()=>h())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>de())),t.$$.on_destroy.push((()=>Q()));let{componentContext:he}=e,{layoutParams:ze=void 0}=e;const W=ro(vo),Ke=W.direction;ko(t,Ke,(Ve=>n(25,f=Ve)));let at={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},Te={width:10,height:10,borderRadius:5,background:"#33919cb5"},ot="default",J=15,ue=10,fe=5,Qe,ye,Ee;function Ye(){n(4,ot="default"),n(5,J=15),n(6,ue=10),n(7,fe=5),n(2,at={width:13,height:13,borderRadius:6.5,background:"#ffdc60"}),n(3,Te={width:10,height:10,borderRadius:5,background:"#33919cb5"})}async function vt(Ve){if(he.json.pager_id&&Ve.has(he.json.pager_id)&&(n(10,Ee=Ve.get(he.json.pager_id)),await Fo(),ye)){const Xe=ye.children[Ee.currentItem];if(Xe){const xe=Xe.offsetLeft;Qe.scroll({left:xe-Qe.clientWidth/2,behavior:"smooth"})}}}function ne(Ve){Ve!==Ee.currentItem&&Ee.scrollToPagerItem(Ve)}function pe(Ve){if(Ve.ctrlKey||Ve.shiftKey||Ve.altKey||Ve.metaKey)return;const{size:Xe,currentItem:xe}=Ee;if(Ve.which===m2){const jt=xe-1<0?xe:xe-1;kt(jt)}else if(Ve.which===g2){const jt=xe+1>=Xe?xe:xe+1;kt(jt)}else if(Ve.which===h2)kt(0);else if(Ve.which===v2)kt(Xe-1);else return;Ve.preventDefault()}async function kt(Ve){Ee.scrollToPagerItem(Ve),await Fo();const Xe=ye.querySelector(`.${Is.indicator__item_active}`);Xe&&Xe.focus()}const $e=Ve=>ne(Ve);function et(Ve){Wi[Ve?"unshift":"push"]((()=>{ye=Ve,n(9,ye)}))}function le(Ve){Wi[Ve?"unshift":"push"]((()=>{Qe=Ve,n(8,Qe)}))}return t.$$set=Ve=>{"componentContext"in Ve&&n(0,he=Ve.componentContext),"layoutParams"in Ve&&n(1,ze=Ve.layoutParams)},t.$$.update=()=>{var Ve,Xe;if(t.$$.dirty[0]&1&&n(24,i=he.origJson),t.$$.dirty[0]&16777216&&i&&Ye(),t.$$.dirty[0]&1&&C(n(20,o=he.getDerivedFromVars(he.json.shape))),t.$$.dirty[0]&1&&O(n(19,r=he.getDerivedFromVars(he.json.active_item_color))),t.$$.dirty[0]&1&&R(n(18,s=he.getDerivedFromVars(he.json.inactive_item_color))),t.$$.dirty[0]&1&&Y(n(17,l=he.getDerivedFromVars(he.json.active_item_size))),t.$$.dirty[0]&1&&oe(n(16,a=he.getDerivedFromVars(he.json.active_shape))),t.$$.dirty[0]&1&&_e(n(15,c=he.getDerivedFromVars(he.json.inactive_shape))),t.$$.dirty[0]&1&&w(n(14,d=he.getDerivedFromVars(he.json.space_between_centers))),t.$$.dirty[0]&1&&T(n(13,u=he.getDerivedFromVars(he.json.items_placement))),t.$$.dirty[0]&1610612748|t.$$.dirty[1]&15&&(G&&n(2,at=vr({type:"shape_drawable",shape:G},Td,at)),x&&n(3,Te=vr({type:"shape_drawable",shape:x},Td,Te)),!G&&!x&&U)){const xe=mr(q,1.3);n(3,Te=vr({type:"shape_drawable",shape:U,color:Te.background},Td,Te)),n(3,Te.background=Ri(M,1,Te.background),Te),n(2,at={...Te,width:Te.width*xe,height:Te.height*xe,borderRadius:Te.borderRadius*xe,background:at.background}),n(2,at.background=Ri(j,1,at.background),at)}if(t.$$.dirty[0]&402653424)if(k&&(k.type==="default"||k.type==="stretch")){if(n(4,ot=k.type),ot==="default")n(5,J=uo((Ve=k.space_between_centers)==null?void 0:Ve.value,J));else if(ot==="stretch"){const xe=k;n(6,ue=mr(xe.max_visible_items,ue)),n(7,fe=uo((Xe=xe.item_spacing)==null?void 0:Xe.value,fe))}}else n(4,ot="default"),y&&n(5,J=uo(y.value,J));t.$$.dirty[0]&67108864&&vt(m),t.$$.dirty[0]&33554448&&n(11,_={placement:ot,direction:f})},v(n(12,p=W.getStore("pagers"))),[he,ze,at,Te,ot,J,ue,fe,Qe,ye,Ee,_,p,u,d,c,a,l,s,r,o,Ke,ne,pe,i,f,m,y,k,j,M,U,q,x,G,$e,et,le]}class aW extends Qi{constructor(e){super(),xi(this,e,lW,sW,Pi,{componentContext:0,layoutParams:1},null,[-1,-1])}}const cW="divkit-99f56",dW="divkit-96503",uW="divkit-1ee78",pW="divkit-67789",_W="divkit-38304",fW="divkit-c5ec2",mW="divkit-5332e",gW="divkit-f188a",hW="divkit-cdb6d",vW="divkit-dbdf0",Hi={slider:cW,slider__input:dW,slider__input_secondary:uW,slider__thumb:pW,slider_direction_rtl:_W,slider__thumb_secondary:fW,"slider__tracks-wrapper":"divkit-d7767","slider__tracks-inner":"divkit-fd4b7",slider__track:mW,"slider__active-track":"divkit-5d67f","slider__thumb-text":"divkit-23468","slider__thumb-text_secondary":"divkit-f2ab9",slider__tick:gW,slider__tick_active:hW,slider__tick_inactive:vW};function Jf(t,e){var n,i;if(!t||!t.font_size)return e;const o=t.offset,r=t.text_color&&Ri(t.text_color)||"#000",s=wl(t.font_weight,t.font_weight_value,void 0);if(Zo(t.font_size)&&r!=="transparent"){const l={fontSize:Et(t.font_size),fontWeight:s,textColor:r};return typeof((n=o==null?void 0:o.x)==null?void 0:n.value)=="number"&&typeof((i=o==null?void 0:o.y)==null?void 0:i.value)=="number"&&(l.offset={x:o.x.value,y:o.y.value}),l}}function Qr(t,e,n){return Math.max(e,Math.min(n,Number(t)))}function Wf(t,e,n){const i=t.slice();return i[81]=e[n],i}function Kf(t,e,n){const i=t.slice();return i[81]=e[n],i}function bW(t){let e,n;return e=new Jr({props:{componentContext:t[0]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function yW(t){let e,n;return e=new qo({props:{cls:kn("slider",Hi,t[25]),style:t[26],customDescription:!0,customActions:"slider",hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[wW,({focusHandler:i,blurHandler:o})=>({79:i,80:o}),({focusHandler:i,blurHandler:o})=>[0,0,(i?131072:0)|(o?262144:0)]]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&33554432&&(r.cls=kn("slider",Hi,i[25])),o[0]&67108864&&(r.style=i[26]),o[0]&1&&(r.componentContext=i[0]),o[0]&2&&(r.layoutParams=i[1]),o[0]&411037692|o[2]&17170432&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function Yf(t){let e;return{c(){e=Zt("div"),K(e,"class",Hi.slider__tick+" "+Hi.slider__tick_active),He(e,"--divkit-slider-tick",t[81])},m(n,i){rt(n,e,i)},p(n,i){i[0]&524288&&He(e,"--divkit-slider-tick",n[81])},d(n){n&&it(e)}}}function Gf(t){let e;return{c(){e=Zt("div"),K(e,"class",Hi.slider__tick+" "+Hi.slider__tick_inactive),He(e,"--divkit-slider-tick",t[81])},m(n,i){rt(n,e,i)},p(n,i){i[0]&1048576&&He(e,"--divkit-slider-tick",n[81])},d(n){n&&it(e)}}}function Xf(t){let e,n,i;return{c(){var o,r,s;e=Zt("div"),n=Zt("div"),i=jr(t[13]),K(n,"class",Hi["slider__thumb-text-inner"]),He(n,"font-size",((o=t[9])==null?void 0:o.fontSize)||"1em"),He(n,"font-weight",((r=t[9])==null?void 0:r.fontWeight)||""),He(n,"color",((s=t[9])==null?void 0:s.textColor)||"#000"),K(e,"class",Hi["slider__thumb-text"])},m(o,r){rt(o,e,r),Vn(e,n),Vn(n,i)},p(o,r){var s,l,a;r[0]&8192&&ws(i,o[13]),r[0]&512&&He(n,"font-size",((s=o[9])==null?void 0:s.fontSize)||"1em"),r[0]&512&&He(n,"font-weight",((l=o[9])==null?void 0:l.fontWeight)||""),r[0]&512&&He(n,"color",((a=o[9])==null?void 0:a.textColor)||"#000")},d(o){o&&it(e)}}}function Zf(t){let e,n=t[10]&&xf(t);return{c(){e=Zt("div"),n&&n.c(),K(e,"class",Hi.slider__thumb+" "+Hi.slider__thumb_secondary),He(e,"border-radius",Et(t[6].borderRadius)),He(e,"background",t[6].background),He(e,"box-shadow",t[6].boxShadow||"")},m(i,o){rt(i,e,o),n&&n.m(e,null)},p(i,o){i[10]?n?n.p(i,o):(n=xf(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null),o[0]&64&&He(e,"border-radius",Et(i[6].borderRadius)),o[0]&64&&He(e,"background",i[6].background),o[0]&64&&He(e,"box-shadow",i[6].boxShadow||"")},d(i){i&&it(e),n&&n.d()}}}function xf(t){let e,n,i;return{c(){var o,r,s;e=Zt("div"),n=Zt("div"),i=jr(t[14]),K(n,"class",Hi["slider__thumb-text-inner"]),He(n,"font-size",((o=t[10])==null?void 0:o.fontSize)||"1em"),He(n,"font-weight",((r=t[10])==null?void 0:r.fontWeight)||""),He(n,"color",((s=t[10])==null?void 0:s.textColor)||"#000"),K(e,"class",Hi["slider__thumb-text"]+" "+Hi["slider__thumb-text_secondary"])},m(o,r){rt(o,e,r),Vn(e,n),Vn(n,i)},p(o,r){var s,l,a;r[0]&16384&&ws(i,o[14]),r[0]&1024&&He(n,"font-size",((s=o[10])==null?void 0:s.fontSize)||"1em"),r[0]&1024&&He(n,"font-weight",((l=o[10])==null?void 0:l.fontWeight)||""),r[0]&1024&&He(n,"color",((a=o[10])==null?void 0:a.textColor)||"#000")},d(o){o&&it(e)}}}function Qf(t){let e,n,i,o,r,s;return{c(){e=Zt("input"),K(e,"type","range"),K(e,"class",n=t[18]?Hi.slider__input:`${Hi.slider__input} ${Hi.slider__input_secondary}`),K(e,"min",t[3]),K(e,"max",t[4]),K(e,"step","1"),e.value=i=t[18]?t[13]:t[14],e.disabled=o=!t[11],K(e,"aria-label",t[22])},m(l,a){rt(l,e,a),r||(s=[en(e,"input",t[72]),en(e,"mousedown",(function(){Fi(t[15]?t[43]:null)&&(t[15]?t[43]:null).apply(this,arguments)})),en(e,"touchstart",(function(){Fi(t[15]?t[43]:null)&&(t[15]?t[43]:null).apply(this,arguments)})),en(e,"focus",(function(){Fi(t[79])&&t[79].apply(this,arguments)})),en(e,"blur",(function(){Fi(t[80])&&t[80].apply(this,arguments)}))],r=!0)},p(l,a){t=l,a[0]&262144&&n!==(n=t[18]?Hi.slider__input:`${Hi.slider__input} ${Hi.slider__input_secondary}`)&&K(e,"class",n),a[0]&8&&K(e,"min",t[3]),a[0]&16&&K(e,"max",t[4]),a[0]&286720&&i!==(i=t[18]?t[13]:t[14])&&(e.value=i),a[0]&2048&&o!==(o=!t[11])&&(e.disabled=o),a[0]&4194304&&K(e,"aria-label",t[22])},d(l){l&&it(e),r=!1,so(s)}}}function wW(t){let e,n,i,o,r,s,l,a,c,d,u,p,_,f,m,h,v,y,b=ci(t[19]),w=[];for(let O=0;O<b.length;O+=1)w[O]=Yf(Kf(t,b,O));let k=ci(t[20]),E=[];for(let O=0;O<k.length;O+=1)E[O]=Gf(Wf(t,k,O));let T=t[9]&&Xf(t),j=t[15]&&Zf(t),A=t[15]&&Qf(t);return{c(){e=Zt("div"),n=Zt("div"),i=Zt("div"),o=Ai(),r=Zt("div"),s=Ai();for(let O=0;O<w.length;O+=1)w[O].c();l=Ai();for(let O=0;O<E.length;O+=1)E[O].c();a=Ai(),c=Zt("div"),T&&T.c(),d=Ai(),j&&j.c(),u=Ai(),p=Zt("input"),h=Ai(),A&&A.c(),K(i,"class",Hi.slider__track),He(i,"height",Et(t[7].height)),He(i,"border-radius",Et(t[7].borderRadius)),He(i,"background",t[7].background),He(i,"box-shadow",t[7].boxShadow||""),K(r,"class",Hi["slider__active-track"]),He(r,"left",t[16]==="ltr"?(t[27]*100).toFixed(2)+"%":void 0),He(r,"right",t[16]==="ltr"?void 0:(t[27]*100).toFixed(2)+"%"),He(r,"width",(t[28]*100).toFixed(2)+"%"),He(r,"height",Et(t[8].height)),He(r,"border-radius",Et(t[8].borderRadius)),He(r,"background",t[8].background),He(r,"box-shadow",t[8].boxShadow||""),K(c,"class",Hi.slider__thumb),He(c,"border-radius",Et(t[5].borderRadius)),He(c,"background",t[5].background),He(c,"box-shadow",t[5].boxShadow||""),K(p,"type","range"),K(p,"class",_=t[18]?`${Hi.slider__input} ${Hi.slider__input_secondary}`:Hi.slider__input),K(p,"min",t[3]),K(p,"max",t[4]),K(p,"step","1"),p.value=f=t[18]?t[14]:t[13],p.disabled=m=!t[11],K(p,"aria-label",t[21]),K(n,"class",Hi["slider__tracks-inner"]),K(e,"class",Hi["slider__tracks-wrapper"])},m(O,M){rt(O,e,M),Vn(e,n),Vn(n,i),Vn(n,o),Vn(n,r),Vn(n,s);for(let D=0;D<w.length;D+=1)w[D]&&w[D].m(n,null);Vn(n,l);for(let D=0;D<E.length;D+=1)E[D]&&E[D].m(n,null);Vn(n,a),Vn(n,c),T&&T.m(c,null),Vn(n,d),j&&j.m(n,null),Vn(n,u),Vn(n,p),t[71](p),Vn(n,h),A&&A.m(n,null),t[73](n),v||(y=[en(p,"input",t[70]),en(p,"focus",(function(){Fi(t[79])&&t[79].apply(this,arguments)})),en(p,"blur",(function(){Fi(t[80])&&t[80].apply(this,arguments)}))],v=!0)},p(O,M){if(t=O,M[0]&128&&He(i,"height",Et(t[7].height)),M[0]&128&&He(i,"border-radius",Et(t[7].borderRadius)),M[0]&128&&He(i,"background",t[7].background),M[0]&128&&He(i,"box-shadow",t[7].boxShadow||""),M[0]&134283264&&He(r,"left",t[16]==="ltr"?(t[27]*100).toFixed(2)+"%":void 0),M[0]&134283264&&He(r,"right",t[16]==="ltr"?void 0:(t[27]*100).toFixed(2)+"%"),M[0]&268435456&&He(r,"width",(t[28]*100).toFixed(2)+"%"),M[0]&256&&He(r,"height",Et(t[8].height)),M[0]&256&&He(r,"border-radius",Et(t[8].borderRadius)),M[0]&256&&He(r,"background",t[8].background),M[0]&256&&He(r,"box-shadow",t[8].boxShadow||""),M[0]&524288){b=ci(t[19]);let D;for(D=0;D<b.length;D+=1){const R=Kf(t,b,D);w[D]?w[D].p(R,M):(w[D]=Yf(R),w[D].c(),w[D].m(n,l))}for(;D<w.length;D+=1)w[D].d(1);w.length=b.length}if(M[0]&1048576){k=ci(t[20]);let D;for(D=0;D<k.length;D+=1){const R=Wf(t,k,D);E[D]?E[D].p(R,M):(E[D]=Gf(R),E[D].c(),E[D].m(n,a))}for(;D<E.length;D+=1)E[D].d(1);E.length=k.length}t[9]?T?T.p(t,M):(T=Xf(t),T.c(),T.m(c,null)):T&&(T.d(1),T=null),M[0]&32&&He(c,"border-radius",Et(t[5].borderRadius)),M[0]&32&&He(c,"background",t[5].background),M[0]&32&&He(c,"box-shadow",t[5].boxShadow||""),t[15]?j?j.p(t,M):(j=Zf(t),j.c(),j.m(n,u)):j&&(j.d(1),j=null),M[0]&262144&&_!==(_=t[18]?`${Hi.slider__input} ${Hi.slider__input_secondary}`:Hi.slider__input)&&K(p,"class",_),M[0]&8&&K(p,"min",t[3]),M[0]&16&&K(p,"max",t[4]),M[0]&286720&&f!==(f=t[18]?t[14]:t[13])&&(p.value=f),M[0]&2048&&m!==(m=!t[11])&&(p.disabled=m),M[0]&2097152&&K(p,"aria-label",t[21]),t[15]?A?A.p(t,M):(A=Qf(t),A.c(),A.m(n,null)):A&&(A.d(1),A=null)},d(O){O&&it(e),Co(w,O),Co(E,O),T&&T.d(),j&&j.d(),t[71](null),A&&A.d(),t[73](null),v=!1,so(y)}}}function $W(t){let e,n,i,o,r,s;const l=[yW,bW],a=[];function c(d,u){return d[12]?1:0}return~(e=c(t))&&(n=a[e]=l[e](t)),{c(){n&&n.c(),i=si()},m(d,u){~e&&a[e].m(d,u),rt(d,i,u),o=!0,r||(s=en(window,"resize",t[45]),r=!0)},p(d,u){let p=e;e=c(d),e===p?~e&&a[e].p(d,u):(n&&(ui(),nt(a[p],1,1,(()=>{a[p]=null})),pi()),~e?(n=a[e],n?n.p(d,u):(n=a[e]=l[e](d),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(d){o||(Ue(n),o=!0)},o(d){nt(n),o=!1},d(d){d&&it(i),~e&&a[e].d(d),r=!1,s()}}}const tr={width:10,height:10,borderRadius:5,background:"#000"},Ia=["rounded_rectangle","circle"],em=["rounded_rectangle"];function Da(t,e,n,i,o){let r=[];if(o)for(let s=t;s<e;++s)r.push((s-n)/(i-n));else{for(let s=n;s<t;++s)r.push((s-n)/(i-n));for(let s=e;s<i+1;++s)r.push((s-n)/(i-n))}return r}function kW(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,h,v,y,b,w,k,E,T,j,A,O,M,D,R,U,B=me,C=()=>(B(),B=De(b,(Bt=>n(55,U=Bt))),b),q,V=me,Y=()=>(V(),V=De(w,(Bt=>n(56,q=Bt))),w),x,de=me,_e=()=>(de(),de=De(y,(Bt=>n(57,x=Bt))),y),G,Q=me,oe=()=>(Q(),Q=De(v,(Bt=>n(58,G=Bt))),v),he,ze=me,W=()=>(ze(),ze=De(h,(Bt=>n(59,he=Bt))),h),Ke,at=me,Te=()=>(at(),at=De(m,(Bt=>n(60,Ke=Bt))),m),ot,J=me,ue=()=>(J(),J=De(f,(Bt=>n(61,ot=Bt))),f),fe,Qe=me,ye=()=>(Qe(),Qe=De(_,(Bt=>n(62,fe=Bt))),_),Ee,Ye=me,vt=()=>(Ye(),Ye=De(p,(Bt=>n(63,Ee=Bt))),p),ne,pe=me,kt=()=>(pe(),pe=De(u,(Bt=>n(64,ne=Bt))),u),$e,et=me,le=()=>(et(),et=De(d,(Bt=>n(65,$e=Bt))),d),Ve,Xe=me,xe=()=>(Xe(),Xe=De(l,(Bt=>n(66,Ve=Bt))),l),jt,Vt=me,ln=()=>(Vt(),Vt=De(s,(Bt=>n(67,jt=Bt))),s),sn,At=me,pn=()=>(At(),At=De(c,(Bt=>n(68,sn=Bt))),c),dn,Rn=me,Ln=()=>(Rn(),Rn=De(a,(Bt=>n(69,dn=Bt))),a);t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>de())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>ze())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>Qe())),t.$$.on_destroy.push((()=>Ye())),t.$$.on_destroy.push((()=>pe())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>Xe())),t.$$.on_destroy.push((()=>Vt())),t.$$.on_destroy.push((()=>At())),t.$$.on_destroy.push((()=>Rn()));let{componentContext:qe}=e,{layoutParams:st=void 0}=e;const li=ro(vo),bt=ro(Sc),Cn=li.direction;ko(t,Cn,(Bt=>n(16,R=Bt)));let Ut,gn,Lt,wn=!1,vn=0,Jt=100,Kt=tr,Un=Kt,Kn=tr,fi=tr,Je,ht=null,ct,gt=null,qt,St=qt,Ot="",nn="",ei=!0,Ft=!1;function xt(){n(5,Kt=tr),n(6,Un=Kt),n(7,Kn=tr),n(8,fi=tr),n(47,ht=null),n(48,gt=null),n(9,qt=void 0),n(10,St=void 0),n(21,Ot=""),n(11,ei=!0),n(22,nn="")}let dt=Qr(jt||0,vn,Jt),We=Qr(Ve||0,vn,Jt);function bi(Bt){var hn,un;if(!ei)return;const Tn="pageX"in Bt?Bt.pageX:(un=(hn=Bt.changedTouches)==null?void 0:hn[0])==null?void 0:un.pageX;if(Tn===void 0)return;const Yn=Lt.getBoundingClientRect();let Se=(Tn-Yn.left)/Yn.width;R==="rtl"&&(Se=1-Se);const bn=vn+(Jt-vn)*Se,ft=Math.round(Qr(bn,vn,Jt)),z=(dt+We)/2;n(18,wn=ft<z==dt<We)}function hi(Bt,hn){const un=Number(Bt.target.value);wn===(hn==="first")?(n(14,We=un),l.setValue(un)):(n(13,dt=un),s.setValue(un))}let Bn=!1;function eo(){if(!Lt)return;const Bt=Jt-vn,hn=(ht==null?void 0:ht.width)||0,un=(gt==null?void 0:gt.width)||0;Math.max(hn,un)*Bt>=(Lt==null?void 0:Lt.clientWidth)?Bn||(qe.logError(tt(new Error("Slider ticks overlap each other"),{level:"warn"})),Bn=!0):Bn=!1}const Ct=sd(eo,50);Sr((()=>{eo()})),jo((()=>{Ut&&(li.unregisterFocusable(Ut),n(46,Ut=void 0))}));const Wn=Bt=>hi(Bt,"first");function gi(Bt){Wi[Bt?"unshift":"push"]((()=>{gn=Bt,n(2,gn)}))}const rn=Bt=>hi(Bt,"second");function Fn(Bt){Wi[Bt?"unshift":"push"]((()=>{Lt=Bt,n(17,Lt)}))}return t.$$set=Bt=>{"componentContext"in Bt&&n(0,qe=Bt.componentContext),"layoutParams"in Bt&&n(1,st=Bt.layoutParams)},t.$$.update=()=>{var Bt,hn,un,Tn;if(t.$$.dirty[0]&1&&n(54,i=qe.origJson),t.$$.dirty[1]&8388608&&i&&xt(),t.$$.dirty[0]&1&&n(53,o=qe.json.thumb_value_variable),t.$$.dirty[0]&1&&n(15,r=qe.json.thumb_secondary_value_variable),t.$$.dirty[0]&1|t.$$.dirty[1]&4194304&&ln(n(23,s=o&&qe.getVariable(o,"integer")||Ho("temp","integer",0))),t.$$.dirty[0]&32769&&xe(n(24,l=r&&qe.getVariable(r,"integer")||Ho("temp","integer",0))),t.$$.dirty[0]&1&&Ln(n(41,a=qe.getDerivedFromVars(qe.json.min_value))),t.$$.dirty[0]&1&&pn(n(40,c=qe.getDerivedFromVars(qe.json.max_value))),t.$$.dirty[0]&1&&le(n(39,d=qe.getDerivedFromVars(qe.json.thumb_style))),t.$$.dirty[0]&1&&kt(n(38,u=qe.getDerivedFromVars(qe.json.thumb_secondary_style))),t.$$.dirty[0]&1&&vt(n(37,p=qe.getDerivedFromVars(qe.json.track_inactive_style))),t.$$.dirty[0]&1&&ye(n(36,_=qe.getDerivedFromVars(qe.json.track_active_style))),t.$$.dirty[0]&1&&ue(n(35,f=qe.getDerivedFromVars(qe.json.tick_mark_active_style))),t.$$.dirty[0]&1&&Te(n(34,m=qe.getDerivedFromVars(qe.json.tick_mark_inactive_style))),t.$$.dirty[0]&1&&W(n(33,h=qe.getDerivedFromVars(qe.json.thumb_text_style))),t.$$.dirty[0]&1&&oe(n(32,v=qe.getDerivedFromVars(qe.json.thumb_secondary_text_style))),t.$$.dirty[0]&1&&_e(n(31,y=qe.getDerivedFromVars(qe.json.accessibility))),t.$$.dirty[0]&1&&C(n(30,b=qe.getDerivedFromVars(qe.json.secondary_value_accessibility))),t.$$.dirty[0]&1&&Y(n(29,w=qe.getDerivedFromVars(qe.json.is_enabled))),t.$$.dirty[0]&24|t.$$.dirty[2]&192&&(n(3,vn=ll(dn,vn)),n(4,Jt=ll(sn,Jt)),eo()),t.$$.dirty[0]&8216|t.$$.dirty[2]&32){const Yn=Qr(jt||0,vn,Jt);Yn!==dt&&n(13,dt=Yn)}if(t.$$.dirty[0]&16408|t.$$.dirty[2]&16){const Yn=Qr(Ve||0,vn,Jt);Yn!==We&&n(14,We=Yn)}if(t.$$.dirty[0]&32|t.$$.dirty[2]&8&&n(5,Kt=vr($e,Ia,Kt)),t.$$.dirty[0]&32|t.$$.dirty[2]&4&&n(6,Un=vr(ne,Ia,Kt)),t.$$.dirty[0]&128|t.$$.dirty[2]&2&&n(7,Kn=vr(Ee,em,Kn)),t.$$.dirty[0]&256|t.$$.dirty[2]&1&&n(8,fi=vr(fe,em,fi)),t.$$.dirty[1]&1073741824){let Yn=vr(ot,Ia,tr);Yn!==tr&&n(47,ht=Yn)}if(t.$$.dirty[0]&57368|t.$$.dirty[1]&65536&&(ht?(n(19,Je=r?Da(Math.min(dt,We),Math.max(dt,We)+1,vn,Jt,!0):Da(vn,dt,vn,Jt,!0)),eo()):n(19,Je=[])),t.$$.dirty[1]&536870912){let Yn=vr(Ke,Ia,tr);Yn!==tr&&n(48,gt=Yn)}if(t.$$.dirty[0]&57368|t.$$.dirty[1]&131072&&(gt?(n(20,ct=r?Da(Math.min(dt,We),Math.max(dt,We)+1,vn,Jt,!1):Da(dt+1,Jt+1,vn,Jt,!0)),eo()):n(20,ct=[])),t.$$.dirty[0]&512|t.$$.dirty[1]&268435456&&n(9,qt=Jf(he,qt)),t.$$.dirty[0]&512|t.$$.dirty[1]&134217728&&n(10,St=Jf(G,qt)),t.$$.dirty[0]&1|t.$$.dirty[1]&67108864&&(x!=null&&x.description?n(21,Ot=x.description):qe.logError(tt(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),t.$$.dirty[0]&2048|t.$$.dirty[1]&33554432&&n(11,ei=br(q,ei)),t.$$.dirty[0]&32769|t.$$.dirty[1]&16777216&&(U!=null&&U.description?n(22,nn=U.description):r&&qe.logError(tt(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),t.$$.dirty[0]&4513){let Yn=!1;bt.hasAction()?(qe.logError(tt(new Error('Cannot show "slider" inside component with action'))),Yn=!0):Kt===tr?(qe.logError(tt(new Error('Missing "thumb_style" in slider'))),Yn=!0):fi===tr?(qe.logError(tt(new Error('Missing "track_active_style" in slider'))),Yn=!0):Kn===tr&&(qe.logError(tt(new Error('Missing "track_inactive_style" in slider'))),Yn=!0),Yn!==Ft&&n(12,Ft=Yn)}t.$$.dirty[0]&96&&n(52,k=Et(Math.max(...[Kt.width,Un.width,0].filter(Wo)))),t.$$.dirty[0]&96&&n(51,E=Et(Math.max(...[Kt.height,Un.height,0].filter(Wo)))),t.$$.dirty[0]&8216&&n(50,T=(dt-vn)/(Jt-vn)),t.$$.dirty[0]&49176&&n(49,j=r?(We-vn)/(Jt-vn):void 0),t.$$.dirty[1]&786432&&n(28,A=j!==void 0?Math.abs(j-T):T),t.$$.dirty[1]&786432&&n(27,O=j!==void 0?Math.min(j,T):0),t.$$.dirty[0]&1632|t.$$.dirty[1]&4128768&&n(26,M={"--divkit-slider-thumb-width":Et(Kt.width),"--divkit-slider-thumb-height":Et(Kt.height),"--divkit-slider-thumb-secondary-width":Et(Un.width),"--divkit-slider-thumb-secondary-height":Et(Un.height),"--divkit-slider-text-offset-x":(Bt=qt==null?void 0:qt.offset)!=null&&Bt.x?Jo(qt.offset.x):void 0,"--divkit-slider-text-offset-y":(hn=qt==null?void 0:qt.offset)!=null&&hn.y?Jo(qt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(un=St==null?void 0:St.offset)!=null&&un.x?Jo(St.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(Tn=St==null?void 0:St.offset)!=null&&Tn.y?Jo(St.offset.y):void 0,"--divkit-slider-tick-active-width":ht?Et(ht.width):void 0,"--divkit-slider-tick-active-height":ht?Et(ht.height):void 0,"--divkit-slider-tick-active-border-radius":ht?Et(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":gt?Et(gt.width):void 0,"--divkit-slider-tick-inactive-height":gt?Et(gt.height):void 0,"--divkit-slider-tick-inactive-border-radius":gt?Et(gt.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(gt==null?void 0:gt.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(gt==null?void 0:gt.boxShadow)||void 0,"--divkit-slider-max-thumb-width":k,"--divkit-slider-max-thumb-height":E,"--divkit-slider-track-part":T,"--divkit-slider-track-secondary-part":j}),t.$$.dirty[0]&65536&&n(25,D={direction:R}),t.$$.dirty[0]&5|t.$$.dirty[1]&32768&&qe.json&&gn&&(Ut&&(li.unregisterFocusable(Ut),n(46,Ut=void 0)),qe.id&&!qe.fakeElement&&(n(46,Ut=qe.id),li.registerFocusable(Ut,{focus(){gn&&gn.focus()}})))},[qe,st,gn,vn,Jt,Kt,Un,Kn,fi,qt,St,ei,Ft,dt,We,r,R,Lt,wn,Je,ct,Ot,nn,s,l,D,M,O,A,w,b,y,v,h,m,f,_,p,u,d,c,a,Cn,bi,hi,Ct,Ut,ht,gt,j,T,E,k,o,i,U,q,x,G,he,Ke,ot,fe,Ee,ne,$e,Ve,jt,sn,dn,Wn,gi,rn,Fn]}class jW extends Qi{constructor(e){super(),xi(this,e,kW,$W,Pi,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const SW="divkit-49edd",CW="divkit-cadcd",TW="divkit-0dfa7",zW="divkit-88914",EW="divkit-e1c57",AW="divkit-11674",Br={input:SW,"input_alignment-horizontal_center":"divkit-e82eb","input_alignment-horizontal_end":"divkit-cfa85",input__aligner:CW,input__input:TW,input__placeholder:zW,"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:EW,"input__scroll-wrapper":"divkit-20542",input__input_multiline:AW,"input__input_has-custom-focus":"divkit-26a87"};function Gu(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const r=Gu(e,t);return{start:r.start,added:r.removed,removed:r.added}}let n=0,i=e.length-1;const o=e.length-t.length;for(;n<i&&n<t.length&&t[n]===e[n];)++n;for(;i-o>=n&&t[i-o]===e[i];)--i;return++i,{start:n,added:i-n,removed:i-n-o}}class tm{constructor(e){this.char=e}}class Mr{constructor(e,n,i){this.char=e,this.filter=n,this.placeholder=i}}class S2{constructor(e){Xi(this,"maskData"),Xi(this,"filters",new Map),Xi(this,"destructedValue",[]),Xi(this,"cursorPos",0),this.maskData=e,this.updateMaskData(e)}get cursorPosition(){return this.cursorPos}get rawValue(){return this.collectValueRange(0,this.destructedValue.length-1)}get value(){let e="";for(let n=0;n<this.destructedValue.length;++n){const i=this.destructedValue[n];if(i instanceof tm)e+=i.char;else if(i instanceof Mr)if(i.char)e+=i.char;else if(this.maskData.alwaysVisible)e+=i.placeholder;else break}return e}firstEmptyHolderIndex(){const e=this.destructedValue.findIndex((n=>n instanceof Mr&&!n.char));return e!==-1?e:this.destructedValue.length}updateMaskData(e,n=!0){const i=this.maskData!==e&&n?this.rawValue:null;this.filters=new Map,this.maskData=e,this.maskData.decoding.forEach((o=>{if(o.filter)try{const r=new RegExp(o.filter);this.filters.set(o.key,r)}catch(r){this.onException(tt(r,{level:"error",additional:{key:o.key}}))}})),this.destructedValue=this.maskData.pattern.split("").map((o=>{const r=this.maskData.decoding.find((s=>s.key===o));return r?new Mr(null,this.filters.get(r.key),r.placeholder):new tm(o)})),i!==null&&this.overrideRawValue(i)}overrideRawValue(e){this.clearRange(0,this.destructedValue.length),this.replaceChars(e,0),this.cursorPos=Math.min(this.cursorPos,this.value.length)}applyChangeFrom(e,n){const i=Gu(this.value,e);n!==void 0&&(i.start=Math.max(0,n-i.added));const o=this.buildBodySubstring(i,e),r=this.buildTailSubstring(i);this.cleanup(i);const s=this.firstEmptyHolderIndex(),l=r?this.calculateMaxShift(r,s):void 0;this.replaceChars(o,s,l);const a=this.firstEmptyHolderIndex();this.replaceChars(r,a),this.calculateCursorPosition(i,a)}buildBodySubstring(e,n){return n.substring(e.start,e.start+e.added)}buildTailSubstring(e){return this.collectValueRange(e.start+e.removed,this.destructedValue.length-1)}calculateMaxShift(e,n){if(this.filters.size<=1){let r=0,s=n;for(;s<this.destructedValue.length;)this.destructedValue[s]instanceof Mr&&++r,++s;return Math.max(0,r-e.length)}const i=this.calculateInsertableSubstring(e,n);let o=0;for(;o<this.destructedValue.length&&i===this.calculateInsertableSubstring(e,n+o);)++o;return Math.max(0,o-1)}cleanup(e){if(e.added===0&&e.removed===1){let n=e.start;for(;n>=0;){const i=this.destructedValue[n];if(i instanceof Mr&&i.char!==null){i.char=null;break}else--n}}this.clearRange(e.start,this.destructedValue.length)}clearRange(e,n){let i=e;for(;i<n&&i<this.destructedValue.length;){const o=this.destructedValue[i];o instanceof Mr&&(o.char=null),++i}}calculateCursorPosition(e,n){const i=this.firstEmptyHolderIndex();let o;e.start<i?o=Math.min(this.firstHolderAfter(n),this.value.length):o=i,this.cursorPos=o}calculateInsertableSubstring(e,n){let i="",o=n;const r=()=>{for(var s;o<this.destructedValue.length&&!(this.destructedValue[o]instanceof Mr);)++o;return(s=this.destructedValue[o])==null?void 0:s.filter};return e.split("").forEach((s=>{const l=r();l!=null&&l.test(s)&&(i+=s,++o)})),i}collectValueRange(e,n){let i="",o=e;for(;o<=n;){const r=this.destructedValue[o];r instanceof Mr&&r.char!==null&&(i+=r.char),++o}return i}replaceChars(e,n,i){let o=this.calculateInsertableSubstring(e,n);i!==void 0&&(o=o.substring(0,i));let r=n,s=0;for(;r<this.destructedValue.length&&s<o.length;){const l=this.destructedValue[r],a=o[s];l instanceof Mr&&(l.char=a,++s),++r}}firstHolderAfter(e){let n=e;for(;n<this.destructedValue.length&&!(this.destructedValue[n]instanceof Mr);)++n;return n}}class OW extends S2{constructor(e,n){super(e),this.logError=n}onException(e){this.logError(e)}}function MW(t,e,n){if(typeof t.pattern=="string"&&Array.isArray(t.pattern_elements)&&t.pattern_elements.every((i=>i.key&&typeof i.key=="string"))){const i={pattern:t.pattern,alwaysVisible:!!t.always_visible,decoding:t.pattern_elements.map((o=>({key:o.key,filter:o.regex&&typeof o.regex=="string"?o.regex:void 0,placeholder:o.placeholder&&typeof o.placeholder=="string"?o.placeholder:"_"})))};return n?(n.updateMaskData(i),n):new OW(i,e)}return n||null}class PW extends S2{constructor(e=void 0,n){super({pattern:"",decoding:[],alwaysVisible:!1}),Xi(this,"currencyFormatter",new Intl.NumberFormat),Xi(this,"decimalSeparator","."),Xi(this,"localeDigits",{}),Xi(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(tt(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=Gu(this.value,e),o=this.value.lastIndexOf(this.decimalSeparator),r=e.lastIndexOf(this.decimalSeparator),s=o!==r||o===-1&&r===-1,l=this.validFormat(e,i);this.cleanup(i);const a=this.parseFormat(l)||0;s&&this.invalidateMaskDataForFormatted(a),this.replaceChars(l,0),this.value.length>i.start&&!this.isDigit(this.value[i.start])?this.cursorPos=n??this.cursorPosition:this.cursorPos=Math.abs(this.value.length-(e.length-(n??this.cursorPosition)))}parseFormat(e){return parseFloat(e.replace(/./g,(n=>this.localeDigits[n]||(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 r=-1;n.added===1&&n.removed===0&&[",","."].includes(e[n.start])&&(r=n.start);const s=this.currencyFormatter.resolvedOptions().maximumFractionDigits||0;let l=s;if(i!==-1)for(o=i;o<e.length;)this.isDigit(e[o])&&!this.inDiff(n,o)&&l--,o++;else{let u=!1;for(let p=0;p<e.length;p++){const _=e[p];_===this.decimalSeparator?u=!0:!this.inDiff(n,p)&&u&&this.isDigit(_)&&l--}}const a=e.includes(this.decimalSeparator)||r!==-1,c=[];o=e.length-1;let d=!1;for(;o>=0;){const u=e[o],p=c.length<=s;this.isDigit(u)?this.inDiff(n,o)&&!d&&a?l>0&&(c.push(u),l--):c.push(u):p&&i===-1&&o===r?(c.push(this.decimalSeparator),d=!0):p&&u===this.decimalSeparator&&(i===o||i===-1)&&(c.push(this.decimalSeparator),d=!0,i=o),o--}return c.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 IW(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new PW(t.locale,e)}const C2=3;function pu(t){const e=t.textContent;let n=0;return typeof e=="string"&&(n+=e.length,t instanceof HTMLElement&&(t.tagName==="DIV"||t.tagName==="BR")&&++n),n}function nm(t,e){var n;try{let i=0;const o=window.getSelection();if(!o)return 0;const r=o.getRangeAt(0);let s;if(r&&(i+=e==="end"?r.endOffset:r.startOffset,s=e==="end"?r.endContainer:r.startContainer),s instanceof HTMLElement){let l=0;for(let a=0,c=Math.min(i,s.childNodes.length);a<c;++a)l+=pu(s.childNodes[a]);i=l}for(;s&&s!==t;){const l=s.parentNode;if(!l)return 0;const a=Array.from(l.childNodes).indexOf(s);for(let c=0;c<a;++c){const d=l.childNodes[c];i+=pu(d)}s instanceof HTMLElement&&(s.tagName==="DIV"&&((n=l.childNodes[a-1])==null?void 0:n.nodeType)===C2||s.tagName==="BR")&&++i,s=l}return i}catch{return 0}}function _u(t,e,n,i){if(t.nodeType===C2){try{n==="start"?e.setStart(t,i):e.setEnd(t,i)}catch{}return}if(t instanceof HTMLElement&&t.tagName==="BR"){try{const o=window.getSelection();if(o){o.removeAllRanges();const r=document.createRange(),s=t.parentNode,l=Array.from(s.childNodes).indexOf(t)+1;r.setStart(s,l),r.setEnd(s,l),o.addRange(r)}}catch{}return}for(let o=0,r=t.childNodes.length;o<r;++o){const s=t.childNodes[o],l=pu(s);if(i<=l){_u(s,e,n,i);return}i-=l}}function DW(t){let e,n;return e=new Jr({props:{componentContext:t[0]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function VW(t){let e,n;return e=new qo({props:{cls:kn("input",Br,t[20]),style:t[19],customDescription:!0,customActions:"input",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[RW,({focusHandler:i,blurHandler:o,hasCustomFocus:r})=>({119:i,120:o,121:r}),({focusHandler:i,blurHandler:o,hasCustomFocus:r})=>[0,0,0,(i?67108864:0)|(o?134217728:0)|(r?268435456:0)]]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1048576&&(r.cls=kn("input",Br,i[20])),o[0]&524288&&(r.style=i[19]),o[0]&1&&(r.componentContext=i[0]),o[0]&2&&(r.layoutParams=i[1]),o[0]&2555324|o[1]&32768|o[3]&1006632960&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function LW(t){let e,n,i,o,r,s,l,a,c;return{c(){e=Zt("input"),K(e,"type",t[10]),K(e,"inputmode",t[11]),K(e,"class",n=kn("input__input",Br,{"has-custom-focus":t[121],singleline:!0})),K(e,"autocomplete","off"),K(e,"autocapitalize",t[13]),K(e,"aria-label",t[12]),K(e,"aria-describedby",i=t[15]||void 0),K(e,"style",o=Nn(t[18])),e.disabled=r=!t[4],K(e,"maxlength",s=t[5]===1/0?void 0:t[5]),K(e,"placeholder",t[21]),e.value=t[3],K(e,"enterkeyhint",l=t[14]==="default"?void 0:t[14])},m(d,u){rt(d,e,u),t[103](e),a||(c=[en(e,"input",t[48]),en(e,"keydown",t[50]),en(e,"mousedown",(function(){Fi(t[46]?t[51]:void 0)&&(t[46]?t[51]:void 0).apply(this,arguments)})),en(e,"click",(function(){Fi(t[46]?t[52]:void 0)&&(t[46]?t[52]:void 0).apply(this,arguments)})),en(e,"focus",(function(){Fi(t[119])&&t[119].apply(this,arguments)})),en(e,"blur",(function(){Fi(t[120])&&t[120].apply(this,arguments)}))],a=!0)},p(d,u){t=d,u[0]&1024&&K(e,"type",t[10]),u[0]&2048&&K(e,"inputmode",t[11]),u[3]&268435456&&n!==(n=kn("input__input",Br,{"has-custom-focus":t[121],singleline:!0}))&&K(e,"class",n),u[0]&8192&&K(e,"autocapitalize",t[13]),u[0]&4096&&K(e,"aria-label",t[12]),u[0]&32768&&i!==(i=t[15]||void 0)&&K(e,"aria-describedby",i),u[0]&262144&&o!==(o=Nn(t[18]))&&K(e,"style",o),u[0]&16&&r!==(r=!t[4])&&(e.disabled=r),u[0]&32&&s!==(s=t[5]===1/0?void 0:t[5])&&K(e,"maxlength",s),u[0]&2097152&&K(e,"placeholder",t[21]),u[0]&8&&e.value!==t[3]&&(e.value=t[3]),u[0]&16384&&l!==(l=t[14]==="default"?void 0:t[14])&&K(e,"enterkeyhint",l)},d(d){d&&it(e),t[103](null),a=!1,so(c)}}}function FW(t){let e,n,i,o,r,s,l=!t[8]&&t[21]&&im(t);function a(u,p){return u[4]?qW:NW}let c=a(t),d=c(t);return{c(){e=Zt("span"),l&&l.c(),n=Ai(),i=Zt("span"),o=jr(""),s=Ai(),d.c(),K(i,"class",Br.input__aligner),K(i,"aria-hidden","true"),K(i,"style",r=Nn(t[17])),K(e,"class",Br["input__scroll-wrapper"])},m(u,p){rt(u,e,p),l&&l.m(e,null),Vn(e,n),Vn(e,i),Vn(i,o),Vn(e,s),d.m(e,null)},p(u,p){!u[8]&&u[21]?l?l.p(u,p):(l=im(u),l.c(),l.m(e,n)):l&&(l.d(1),l=null),p[0]&131072&&r!==(r=Nn(u[17]))&&K(i,"style",r),c===(c=a(u))&&d?d.p(u,p):(d.d(1),d=c(u),d&&(d.c(),d.m(e,null)))},d(u){u&&it(e),l&&l.d(),d.d()}}}function im(t){let e,n,i;return{c(){e=Zt("div"),n=jr(t[21]),K(e,"class",Br.input__placeholder),K(e,"aria-hidden","true"),K(e,"style",i=Nn(t[18]))},m(o,r){rt(o,e,r),Vn(e,n)},p(o,r){r[0]&2097152&&ws(n,o[21]),r[0]&262144&&i!==(i=Nn(o[18]))&&K(e,"style",i)},d(o){o&&it(e)}}}function NW(t){let e,n,i,o,r;return{c(){e=Zt("span"),K(e,"class",kn("input__input",Br,{multiline:!0})),K(e,"autocapitalize",t[13]),K(e,"contenteditable","false"),K(e,"role","textbox"),K(e,"aria-label",t[12]),K(e,"aria-disabled","true"),K(e,"aria-multiline","true"),K(e,"aria-describedby",n=t[15]||void 0),K(e,"style",i=Nn(t[18])),t[8]===void 0&&sr((()=>t[102].call(e)))},m(s,l){rt(s,e,l),t[101](e),t[8]!==void 0&&(e.innerText=t[8]),o||(r=en(e,"input",t[102]),o=!0)},p(s,l){l[0]&8192&&K(e,"autocapitalize",s[13]),l[0]&4096&&K(e,"aria-label",s[12]),l[0]&32768&&n!==(n=s[15]||void 0)&&K(e,"aria-describedby",n),l[0]&262144&&i!==(i=Nn(s[18]))&&K(e,"style",i),l[0]&256&&s[8]!==e.innerText&&(e.innerText=s[8])},d(s){s&&it(e),t[101](null),o=!1,r()}}}function qW(t){let e,n,i,o,r,s,l;return{c(){e=Zt("span"),K(e,"class",n=kn("input__input",Br,{"has-custom-focus":t[121],multiline:!0})),K(e,"autocapitalize",t[13]),K(e,"contenteditable","true"),K(e,"role","textbox"),K(e,"tabindex","0"),K(e,"aria-label",t[12]),K(e,"aria-multiline","true"),K(e,"enterkeyhint",i=t[14]==="default"?void 0:t[14]),K(e,"aria-describedby",o=t[15]||void 0),K(e,"style",r=Nn(t[18])),t[8]===void 0&&sr((()=>t[100].call(e)))},m(a,c){rt(a,e,c),t[99](e),t[8]!==void 0&&(e.innerText=t[8]),s||(l=[en(e,"input",t[100]),en(e,"input",t[48]),en(e,"keydown",t[49]),en(e,"keydown",t[50]),en(e,"paste",JW),en(e,"mousedown",(function(){Fi(t[46]?t[51]:void 0)&&(t[46]?t[51]:void 0).apply(this,arguments)})),en(e,"click",(function(){Fi(t[46]?t[52]:void 0)&&(t[46]?t[52]:void 0).apply(this,arguments)})),en(e,"focus",(function(){Fi(t[119])&&t[119].apply(this,arguments)})),en(e,"blur",(function(){Fi(t[120])&&t[120].apply(this,arguments)}))],s=!0)},p(a,c){t=a,c[3]&268435456&&n!==(n=kn("input__input",Br,{"has-custom-focus":t[121],multiline:!0}))&&K(e,"class",n),c[0]&8192&&K(e,"autocapitalize",t[13]),c[0]&4096&&K(e,"aria-label",t[12]),c[0]&16384&&i!==(i=t[14]==="default"?void 0:t[14])&&K(e,"enterkeyhint",i),c[0]&32768&&o!==(o=t[15]||void 0)&&K(e,"aria-describedby",o),c[0]&262144&&r!==(r=Nn(t[18]))&&K(e,"style",r),c[0]&256&&t[8]!==e.innerText&&(e.innerText=t[8])},d(a){a&&it(e),t[99](null),s=!1,so(l)}}}function RW(t){let e;function n(r,s){return r[7]?FW:LW}let i=n(t),o=i(t);return{c(){o.c(),e=si()},m(r,s){o.m(r,s),rt(r,e,s)},p(r,s){i===(i=n(r))&&o?o.p(r,s):(o.d(1),o=i(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&it(e),o.d(r)}}}function BW(t){let e,n,i,o;const r=[VW,DW],s=[];function l(a,c){return a[9]?1:0}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=si()},m(a,c){~e&&s[e].m(a,c),rt(a,i,c),o=!0},p(a,c){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&it(i),~e&&s[e].d(a)}}}const HW=typeof document<"u"&&"inputMode"in document.createElement("input"),om={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url",password:"password"},UW=new Set(["Backspace","Delete","Tab","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","Control","Shift","Alt","Command","Meta","Escape"]);function JW(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function WW(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,h,v,y,b,w,k,E,T,j,A,O,M,D,R,U,B,C,q,V,Y,x,de,_e,G=me,Q=()=>(G(),G=De(s,(_t=>n(74,_e=_t))),s),oe,he=me,ze=()=>(he(),he=De(l,(_t=>n(75,oe=_t))),l),W,Ke=me,at=()=>(Ke(),Ke=De(B,(_t=>n(108,W=_t))),B),Te,ot=me,J=()=>(ot(),ot=De(R,(_t=>n(76,Te=_t))),R),ue,fe=me,Qe=()=>(fe(),fe=De(j,(_t=>n(77,ue=_t))),j),ye,Ee=me,Ye=()=>(Ee(),Ee=De(D,(_t=>n(78,ye=_t))),D),vt,ne,pe=me,kt=()=>(pe(),pe=De(T,(_t=>n(80,ne=_t))),T),$e,et=me,le=()=>(et(),et=De(E,(_t=>n(81,$e=_t))),E),Ve,Xe=me,xe=()=>(Xe(),Xe=De(k,(_t=>n(82,Ve=_t))),k),jt,Vt=me,ln=()=>(Vt(),Vt=De(w,(_t=>n(83,jt=_t))),w),sn,At=me,pn=()=>(At(),At=De(M,(_t=>n(84,sn=_t))),M),dn,Rn=me,Ln=()=>(Rn(),Rn=De(O,(_t=>n(85,dn=_t))),O),qe,st=me,li=()=>(st(),st=De(b,(_t=>n(86,qe=_t))),b),bt,Cn=me,Ut=()=>(Cn(),Cn=De(y,(_t=>n(87,bt=_t))),y),gn,Lt=me,wn=()=>(Lt(),Lt=De(v,(_t=>n(88,gn=_t))),v),vn,Jt=me,Kt=()=>(Jt(),Jt=De(h,(_t=>n(89,vn=_t))),h),Un,Kn=me,fi=()=>(Kn(),Kn=De(m,(_t=>n(90,Un=_t))),m),Je,ht=me,ct=()=>(ht(),ht=De(f,(_t=>n(91,Je=_t))),f),gt,qt=me,St=()=>(qt(),qt=De(_,(_t=>n(92,gt=_t))),_),Ot,nn=me,ei=()=>(nn(),nn=De(p,(_t=>n(93,Ot=_t))),p),Ft,xt=me,dt=()=>(xt(),xt=De(u,(_t=>n(94,Ft=_t))),u),We,bi=me,hi=()=>(bi(),bi=De(d,(_t=>n(95,We=_t))),d),Bn,eo=me,Ct=()=>(eo(),eo=De(c,(_t=>n(96,Bn=_t))),c),Wn,gi=me,rn=()=>(gi(),gi=De(a,(_t=>n(97,Wn=_t))),a),Fn,Bt=me,hn=()=>(Bt(),Bt=De(U,(_t=>n(98,Fn=_t))),U),un,Tn=me,Yn=()=>(Tn(),Tn=De(A,(_t=>n(46,un=_t))),A);t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>he())),t.$$.on_destroy.push((()=>Ke())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>fe())),t.$$.on_destroy.push((()=>Ee())),t.$$.on_destroy.push((()=>pe())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>Xe())),t.$$.on_destroy.push((()=>Vt())),t.$$.on_destroy.push((()=>At())),t.$$.on_destroy.push((()=>Rn())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>Cn())),t.$$.on_destroy.push((()=>Lt())),t.$$.on_destroy.push((()=>Jt())),t.$$.on_destroy.push((()=>Kn())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>qt())),t.$$.on_destroy.push((()=>nn())),t.$$.on_destroy.push((()=>xt())),t.$$.on_destroy.push((()=>bi())),t.$$.on_destroy.push((()=>eo())),t.$$.on_destroy.push((()=>gi())),t.$$.on_destroy.push((()=>Bt())),t.$$.on_destroy.push((()=>Tn()));let{componentContext:Se}=e,{layoutParams:bn=void 0}=e;const ft=ro(vo),z=ft.direction;ko(t,z,(_t=>n(79,vt=_t)));let Mt,zn,Ni=!1,mi=null,Fe="",Ii="",re=!1,Ce="",P=12,Z,ce="",be,ge="",Be="#000",se="",ve="start",Ae="center",Re="multi_line_text",ut="text",Ge,Tt="",fn=null,Ht="",On="",Qt="",Mn=!0,_n=1/0,Pt="off",jn="default",Pn="",In=!1,Jn=!0,ri=0,yi=0;function yo(){n(55,Ce=""),n(56,P=12),n(57,Z=void 0),n(58,ce=""),n(59,be=void 0),n(61,Be="#000"),n(62,se=""),n(63,ve="left"),n(64,Ae="center"),n(65,Re="multi_line_text"),n(10,ut="text"),n(11,Ge=void 0),n(4,Mn=!0),n(5,_n=1/0),n(13,Pt="off"),n(14,jn="default"),n(15,Pn=""),ri=0,yi=0}function Oi(_t){(_t==null?void 0:_t.type)==="fixed_length"?n(54,mi=MW(_t,Se.logError,mi)):(_t==null?void 0:_t.type)==="currency"&&n(54,mi=IW(_t,Se.logError,mi)),mi&&Le()}function Yi(_t){if(!Array.isArray(W)||!_t)return!0;for(const ti of W)if(ti){if(ti.type==="regex")try{if(!new RegExp("^"+(ti.pattern||"")+"$").test(_t))return!1}catch($i){return Se.logError(tt(new Error("Failed to create a regex"),{additional:{originalError:String($i)}})),!0}else if(ti.type==="expression"&&!ti.condition)return!1}return!0}function Ei(_t){const ti=_t.target;let $i=(q?ti.innerText:ti.value)||"";$i===`\n`&&($i=""),$i.length>_n&&($i=n(8,Ii=Fe),ti instanceof HTMLInputElement&&(ti.value=$i)),Fe!==$i&&(Yi($i)?(n(3,Fe=n(8,Ii=$i)),s.setValue($i),mi&&Ne(),zt()):(n(3,Fe=n(8,Ii=$i)),ti instanceof HTMLInputElement&&(ti.value=$i),Fo().then((()=>{ae(ri,yi)}))))}function cn(_t){Fe.length>=_n&&!UW.has(_t.key)&&!(_t.ctrlKey||_t.altKey||_t.metaKey)&&_t.preventDefault()}function vi(_t){if(ri=ie()||0,yi=we()||0,_t.ctrlKey||_t.metaKey||_t.altKey||_t.shiftKey)return;const ti=Se.json.enter_key_actions;if(_t.key==="Enter"&&Array.isArray(ti)&&ti.length){const $i=Se.getJsonWithVars(ti).filter((To=>To.log_id)).filter(Bo);_t.preventDefault(),Se.execAnyActions($i)}}function Wt(){Ni=!1,setTimeout((()=>{Ni=!0}),250)}function L(){if(!Ni)if(zn instanceof HTMLInputElement)zn.select();else{const _t=window.getSelection(),ti=document.createRange();ti.selectNodeContents(zn),_t&&(_t.removeAllRanges(),_t.addRange(ti))}}function ie(){return zn instanceof HTMLInputElement?zn.selectionStart===null?void 0:zn.selectionStart:nm(zn,"start")}function we(){return zn instanceof HTMLInputElement?zn.selectionEnd===null?void 0:zn.selectionEnd:nm(zn,"end")}function ae(_t,ti){if(zn instanceof HTMLInputElement)n(2,zn.selectionStart=_t,zn),n(2,zn.selectionEnd=ti,zn);else{const $i=window.getSelection();if($i){$i.removeAllRanges();const To=document.createRange();_u(zn,To,"start",_t),_u(zn,To,"end",ti),$i.addRange(To)}}}async function Ne(){if(!zn||!mi)return;const _t=ie()||0,ti=we()||0;mi.applyChangeFrom(Fe,ti===_t?ti:0),l.set(mi.rawValue),nc(s,_e=n(3,Fe=n(8,Ii=mi.value)),_e);const $i=mi.cursorPosition;await Fo(),document.activeElement===zn&&ae($i,$i)}async function Le(){if(!zn||!mi)return;mi.overrideRawValue(oe),l.set(mi.rawValue),nc(s,_e=n(3,Fe=n(8,Ii=mi.value)),_e);const _t=mi.cursorPosition;await Fo(),document.activeElement===zn&&ae(_t,_t)}function zt(){const _t=Jn;Jn=!1;const ti=Se.json.validators;if(!Array.isArray(ti)||!ti.length)return;const $i=Se.getJsonWithVars(ti).filter((Di=>(Di.type==="regex"||Di.type==="expression")&&Di.label_id&&Di.variable)),To=[];$i.forEach((Di=>{const Qo=Se.getVariable(Di.variable);if(!Qo)return;if(Qo.getType()!=="boolean"){_t&&Se.logError(tt(new Error("Incorrect variable type for the validator"),{additional:{variable:Di.variable}}));return}let Oo=!1;if(Fe===""&&(Di.allow_empty===!0||Di.allow_empty===1))Oo=!0;else if(Di.type==="regex"){if(!Di.pattern||typeof Di.pattern!="string")return;try{Oo=new RegExp("^"+Di.pattern+"$").test(Fe)}catch{_t&&Se.logError(tt(new Error("Failed to create a regular expression using the validator pattern"),{additional:{pattern:Di.pattern}}));return}}else if(Di.type==="expression")Oo=Di.condition===!0||Di.condition===1;else return;if(Qo.setValue(Oo),!Oo){const zr=ft.getComponentId(Di.label_id);zr&&To.push(zr)}})),n(15,Pn=To.join(" "))}Sr((()=>{n(70,In=!0),zn&&mi&&oe&&(mi.overrideRawValue(oe),nc(s,_e=n(3,Fe=n(8,Ii=mi.value)),_e))})),jo((()=>{n(70,In=!1),Mt&&(ft.unregisterFocusable(Mt),n(53,Mt=void 0))}));function Nt(_t){Wi[_t?"unshift":"push"]((()=>{zn=_t,n(2,zn)}))}function En(){Ii=this.innerText,n(8,Ii),n(54,mi),n(3,Fe),n(74,_e),n(5,_n),n(6,s),n(84,sn),n(71,o),n(0,Se)}function yn(_t){Wi[_t?"unshift":"push"]((()=>{zn=_t,n(2,zn)}))}function wi(){Ii=this.innerText,n(8,Ii),n(54,mi),n(3,Fe),n(74,_e),n(5,_n),n(6,s),n(84,sn),n(71,o),n(0,Se)}function Ao(_t){Wi[_t?"unshift":"push"]((()=>{zn=_t,n(2,zn)}))}return t.$$set=_t=>{"componentContext"in _t&&n(0,Se=_t.componentContext),"layoutParams"in _t&&n(1,bn=_t.layoutParams)},t.$$.update=()=>{var _t;if(t.$$.dirty[0]&1&&n(73,i=Se.origJson),t.$$.dirty[2]&2048&&i&&yo(),t.$$.dirty[0]&1&&n(71,o=Se.json.text_variable),t.$$.dirty[0]&1&&n(72,r=(_t=Se.json.mask)==null?void 0:_t.raw_text_variable),t.$$.dirty[0]&1|t.$$.dirty[2]&512&&Q(n(6,s=o&&Se.getVariable(o,"string")||Ho("temp","string",""))),t.$$.dirty[0]&1|t.$$.dirty[2]&1024&&ze(n(16,l=r&&Se.getVariable(r,"string")||Ho("temp","string",""))),t.$$.dirty[0]&1&&rn(n(45,a=Se.getDerivedFromVars(Se.json.hint_text))),t.$$.dirty[0]&1&&Ct(n(44,c=Se.getDerivedFromVars(Se.json.hint_color))),t.$$.dirty[0]&1&&hi(n(43,d=Se.getDerivedFromVars(Se.json.font_size))),t.$$.dirty[0]&1&&dt(n(42,u=Se.getDerivedFromVars(Se.json.font_weight))),t.$$.dirty[0]&1&&ei(n(41,p=Se.getDerivedFromVars(Se.json.font_weight_value))),t.$$.dirty[0]&1&&St(n(40,_=Se.getDerivedFromVars(Se.json.font_family))),t.$$.dirty[0]&1&&ct(n(39,f=Se.getDerivedFromVars(Se.json.line_height))),t.$$.dirty[0]&1&&fi(n(38,m=Se.getDerivedFromVars(Se.json.letter_spacing))),t.$$.dirty[0]&1&&Kt(n(37,h=Se.getDerivedFromVars(Se.json.text_color))),t.$$.dirty[0]&1&&wn(n(36,v=Se.getDerivedFromVars(Se.json.highlight_color))),t.$$.dirty[0]&1&&Ut(n(35,y=Se.getDerivedFromVars(Se.json.text_alignment_horizontal))),t.$$.dirty[0]&1&&li(n(34,b=Se.getDerivedFromVars(Se.json.text_alignment_vertical))),t.$$.dirty[0]&1&&ln(n(33,w=Se.getDerivedFromVars(Se.json.keyboard_type))),t.$$.dirty[0]&1&&xe(n(32,k=Se.getDerivedFromVars(Se.json.mask))),t.$$.dirty[0]&1&&le(n(31,E=Se.getDerivedFromVars(Se.json.max_visible_lines))),t.$$.dirty[0]&1&&kt(n(30,T=Se.getDerivedFromVars(Se.json.paddings))),t.$$.dirty[0]&1&&Qe(n(29,j=Se.getDerivedFromVars(Se.json.accessibility))),t.$$.dirty[0]&1&&Yn(n(28,A=Se.getDerivedFromVars(Se.json.select_all_on_focus))),t.$$.dirty[0]&1&&Ln(n(27,O=Se.getDerivedFromVars(Se.json.is_enabled))),t.$$.dirty[0]&1&&pn(n(26,M=Se.getDerivedFromVars(Se.json.max_length))),t.$$.dirty[0]&1&&Ye(n(25,D=Se.getDerivedFromVars(Se.json.autocapitalization))),t.$$.dirty[0]&1&&J(n(24,R=Se.getDerivedFromVars(Se.json.enter_key_type))),t.$$.dirty[0]&1&&hn(n(23,U=Se.getDerivedFromVars(Se.json.validators))),t.$$.dirty[0]&1&&at(n(22,B=Se.getDerivedFromVars(Se.json.filters))),t.$$.dirty[0]&1|t.$$.dirty[2]&512&&(o?n(9,re=!1):(n(9,re=!0),Se.logError(tt(new Error('Missing "text_variable" in "input"'))))),t.$$.dirty[2]&1048576&&Oi(Ve),t.$$.dirty[0]&32|t.$$.dirty[2]&4194304&&n(5,_n=mr(sn,_n)),t.$$.dirty[0]&104|t.$$.dirty[1]&8388608|t.$$.dirty[2]&4096&&!mi&&Fe!==_e){let ti=_e;ti.length>_n&&(ti=ti.slice(0,_n),s.setValue(ti)),n(3,Fe=n(8,Ii=ti)),zt()}if(t.$$.dirty[1]&8388608|t.$$.dirty[2]&8192&&mi&&mi.rawValue!==oe&&(Le(),zt()),t.$$.dirty[2]&256|t.$$.dirty[3]&32&&Fn&&In&&zt(),t.$$.dirty[3]&16&&n(21,C=Wn),t.$$.dirty[1]&16777216|t.$$.dirty[3]&8&&n(55,Ce=Ri(Bn,1,Ce)),t.$$.dirty[1]&33554432|t.$$.dirty[3]&4&&n(56,P=mr(We,P)),t.$$.dirty[1]&67108864|t.$$.dirty[2]&1073741824|t.$$.dirty[3]&3&&(n(57,Z=wl(Ft,Ot,Z)),gt&&typeof gt=="string"?n(58,ce=ft.typefaceProvider(gt,{fontWeight:Z||400})):n(58,ce="")),t.$$.dirty[1]&33554432|t.$$.dirty[2]&536870912){const ti=Je;Zo(ti)&&n(59,be=ti/P)}t.$$.dirty[2]&268435456&&id(Un)&&n(60,ge=Et(Un)),t.$$.dirty[1]&1073741824|t.$$.dirty[2]&134217728&&n(61,Be=Ri(vn,1,Be)),t.$$.dirty[2]&67108865&&n(62,se=Ri(gn,1,se)),t.$$.dirty[2]&33685506&&n(63,ve=Uu(bt,vt,ve)),t.$$.dirty[2]&16777220&&n(64,Ae=Ju(qe,Ae)),t.$$.dirty[0]&16|t.$$.dirty[2]&8388608&&n(4,Mn=br(dn,Mn)),t.$$.dirty[2]&3145728&&(jt&&jt in om&&(n(10,ut=om[jt]),n(65,Re=jt)),(Ve==null?void 0:Ve.type)==="currency"&&(n(10,ut=HW?"text":"tel"),n(11,Ge="decimal"))),t.$$.dirty[2]&8&&n(7,q=Re==="multi_line_text"),t.$$.dirty[1]&301989888|t.$$.dirty[2]&917536&&(Zo($e)?n(66,Tt=`calc(${$e*(be||1.25)*(P/10)+"em"} + ${Jo(uo(ne==null?void 0:ne.top,0)+uo(ne==null?void 0:ne.bottom,0))})`):n(66,Tt=""),n(67,fn=ya(ne||void 0,fn)),n(68,Ht=fn?qr({top:(Number(fn.top)||0)/P*10,right:(Number(vt==="ltr"?fn.end:fn.start)||Number(fn.right)||0)/P*10,bottom:(Number(fn.bottom)||0)/P*10,left:(Number(vt==="ltr"?fn.start:fn.end)||Number(fn.left)||0)/P*10},vt):""),n(69,On=fn?qr({top:(Number(fn.top)||0)/P*10,bottom:(Number(fn.bottom)||0)/P*10},vt):"")),t.$$.dirty[2]&65536&&(ye==="all_characters"?n(13,Pt="characters"):ye==="sentences"?n(13,Pt="sentences"):ye==="words"?n(13,Pt="words"):(ye==="none"||ye==="auto")&&n(13,Pt="off")),t.$$.dirty[0]&1|t.$$.dirty[2]&32768&&(ue!=null&&ue.description?n(12,Qt=ue.description):Se.logError(tt(new Error('Missing accessibility "description" for input'),{level:"warn"}))),t.$$.dirty[2]&16384&&(Te==="default"||Te==="done"||Te==="go"||Te==="search"||Te==="send")&&n(14,jn=Te),t.$$.dirty[0]&128|t.$$.dirty[2]&7&&n(20,V={"highlight-color":!!se,multiline:q,"alignment-horizontal":ve,"alignment-vertical":Ae}),t.$$.dirty[1]&2097152e3|t.$$.dirty[2]&17&&n(19,Y={"--divkit-input-hint-color":Ce,"--divkit-input-highlight-color":se,"--divkit-input-line-height":be,"font-weight":Z,"font-family":ce,"letter-spacing":ge,color:Be,"max-height":Tt}),t.$$.dirty[1]&33554432|t.$$.dirty[2]&64&&n(18,x={"font-size":Et(P),padding:Ht}),t.$$.dirty[1]&33554432|t.$$.dirty[2]&128&&n(17,de={"font-size":Et(P),padding:On}),t.$$.dirty[0]&13|t.$$.dirty[1]&4194304&&zn&&Se.json&&(Mt&&(ft.unregisterFocusable(Mt),n(53,Mt=void 0)),Se.id&&!Se.fakeElement&&(n(53,Mt=Se.id),ft.registerFocusable(Mt,{focus(){zn&&(zn.focus(),ae(Fe.length,Fe.length))}})))},[Se,bn,zn,Fe,Mn,_n,s,q,Ii,re,ut,Ge,Qt,Pt,jn,Pn,l,de,x,Y,V,C,B,U,R,D,M,O,A,j,T,E,k,w,b,y,v,h,m,f,_,p,u,d,c,a,un,z,Ei,cn,vi,Wt,L,Mt,mi,Ce,P,Z,ce,be,ge,Be,se,ve,Ae,Re,Tt,fn,Ht,On,In,o,r,i,_e,oe,Te,ue,ye,vt,ne,$e,Ve,jt,sn,dn,qe,bt,gn,vn,Un,Je,gt,Ot,Ft,We,Bn,Wn,Fn,Nt,En,yn,wi,Ao]}class KW extends Qi{constructor(e){super(),xi(this,e,WW,BW,Pi,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}}const YW="divkit-ae558",GW="divkit-f3d02",XW="divkit-e7d17",ZW="divkit-72083",_l={select:YW,"select__select-text":"divkit-c1610",select_hint:GW,select__select:XW,"select__select_has-custom-focused":"divkit-2e9c1","has-custom-focused":"divkit-d2243",select__option:ZW};function rm(t,e,n){const i=t.slice();return i[58]=e[n],i}function xW(t){let e,n;return e=new Jr({props:{componentContext:t[0]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function QW(t){let e,n;return e=new qo({props:{cls:kn("select",_l,t[11]),style:t[10],customDescription:!0,customActions:"select",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[eK,({hasCustomFocus:i,focusHandler:o,blurHandler:r})=>({55:i,56:o,57:r}),({hasCustomFocus:i,focusHandler:o,blurHandler:r})=>[0,(i?16777216:0)|(o?33554432:0)|(r?67108864:0)]]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&2048&&(r.cls=kn("select",_l,i[11])),o[0]&1024&&(r.style=i[10]),o[0]&1&&(r.componentContext=i[0]),o[0]&2&&(r.layoutParams=i[1]),o[0]&16778172|o[1]&1191182336&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function sm(t){let e,n=(t[58].text||t[58].value)+"",i,o;return{c(){e=Zt("option"),i=jr(n),K(e,"class",_l.select__option),e.__value=o=t[58].value,b_(e,e.__value)},m(r,s){rt(r,e,s),Vn(e,i)},p(r,s){s[0]&16&&n!==(n=(r[58].text||r[58].value)+"")&&ws(i,n),s[0]&16&&o!==(o=r[58].value)&&(e.__value=o,b_(e,e.__value))},d(r){r&&it(e)}}}function eK(t){let e,n=(t[3]||t[24]||"")+"",i,o,r,s,l,a,c,d,u=ci(t[4]),p=[];for(let _=0;_<u.length;_+=1)p[_]=sm(rm(t,u,_));return{c(){e=Zt("span"),i=jr(n),r=Ai(),s=Zt("select");for(let _=0;_<p.length;_+=1)p[_].c();K(e,"class",_l["select__select-text"]),K(e,"style",o=Nn(t[9])),K(e,"aria-hidden","true"),K(s,"class",l=kn("select__select",_l,{"has-custom-focus":t[55]})),K(s,"aria-label",t[7]),K(s,"style",a=Nn(t[8])),t[5]===void 0&&sr((()=>t[52].call(s)))},m(_,f){rt(_,e,f),Vn(e,i),rt(_,r,f),rt(_,s,f);for(let m=0;m<p.length;m+=1)p[m]&&p[m].m(s,null);t[51](s),y_(s,t[5],!0),c||(d=[en(s,"change",t[52]),en(s,"focus",(function(){Fi(t[56])&&t[56].apply(this,arguments)})),en(s,"blur",(function(){Fi(t[57])&&t[57].apply(this,arguments)}))],c=!0)},p(_,f){if(t=_,f[0]&16777224&&n!==(n=(t[3]||t[24]||"")+"")&&ws(i,n),f[0]&512&&o!==(o=Nn(t[9]))&&K(e,"style",o),f[0]&16){u=ci(t[4]);let m;for(m=0;m<u.length;m+=1){const h=rm(t,u,m);p[m]?p[m].p(h,f):(p[m]=sm(h),p[m].c(),p[m].m(s,null))}for(;m<p.length;m+=1)p[m].d(1);p.length=u.length}f[1]&16777216&&l!==(l=kn("select__select",_l,{"has-custom-focus":t[55]}))&&K(s,"class",l),f[0]&128&&K(s,"aria-label",t[7]),f[0]&256&&a!==(a=Nn(t[8]))&&K(s,"style",a),f[0]&48&&y_(s,t[5])},d(_){_&&(it(e),it(r),it(s)),Co(p,_),t[51](null),c=!1,so(d)}}}function tK(t){let e,n,i,o;const r=[QW,xW],s=[];function l(a,c){return a[6]?1:0}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=si()},m(a,c){~e&&s[e].m(a,c),rt(a,i,c),o=!0},p(a,c){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&it(i),~e&&s[e].d(a)}}}function nK(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,h,v,y,b,w,k,E,T,j=me,A=()=>(j(),j=De(y,(Lt=>n(40,T=Lt))),y),O,M=me,D=()=>(M(),M=De(v,(Lt=>n(41,O=Lt))),v),R,U=me,B=()=>(U(),U=De(h,(Lt=>n(42,R=Lt))),h),C,q=me,V=()=>(q(),q=De(m,(Lt=>n(43,C=Lt))),m),Y,x=me,de=()=>(x(),x=De(f,(Lt=>n(44,Y=Lt))),f),_e,G=me,Q=()=>(G(),G=De(_,(Lt=>n(45,_e=Lt))),_),oe,he=me,ze=()=>(he(),he=De(p,(Lt=>n(46,oe=Lt))),p),W,Ke=me,at=()=>(Ke(),Ke=De(u,(Lt=>n(47,W=Lt))),u),Te,ot=me,J=()=>(ot(),ot=De(d,(Lt=>n(48,Te=Lt))),d),ue,fe,Qe=me,ye=()=>(Qe(),Qe=De(a,(Lt=>n(50,fe=Lt))),a),Ee,Ye=me,vt=()=>(Ye(),Ye=De(l,(Lt=>n(5,Ee=Lt))),l),ne,pe=me,kt=()=>(pe(),pe=De(c,(Lt=>n(24,ne=Lt))),c);t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>he())),t.$$.on_destroy.push((()=>Ke())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>Qe())),t.$$.on_destroy.push((()=>Ye())),t.$$.on_destroy.push((()=>pe()));let{componentContext:$e}=e,{layoutParams:et=void 0}=e;const le=ro(vo),Ve=le.direction;ko(t,Ve,(Lt=>n(49,ue=Lt)));let Xe,xe,jt=!1,Vt="",ln=null,sn="",At="rgba(0,0,0,.45)",pn=12,dn,Rn="",Ln,qe="",st="#000",li="",bt;function Cn(){n(27,ln=null),n(29,At="rgba(0,0,0,.45)"),n(30,pn=12),n(31,dn=void 0),n(32,Rn=""),n(33,Ln=void 0),n(34,qe=""),n(35,st="#000"),n(7,li="")}jo((()=>{Xe&&(le.unregisterFocusable(Xe),n(26,Xe=void 0))}));function Ut(Lt){Wi[Lt?"unshift":"push"]((()=>{xe=Lt,n(2,xe)}))}function gn(){Ee=Lq(this),l.set(Ee),n(4,s),n(38,r),n(0,$e)}return t.$$set=Lt=>{"componentContext"in Lt&&n(0,$e=Lt.componentContext),"layoutParams"in Lt&&n(1,et=Lt.layoutParams)},t.$$.update=()=>{if(t.$$.dirty[0]&1&&n(39,i=$e.origJson),t.$$.dirty[1]&256&&i&&Cn(),t.$$.dirty[0]&1&&n(37,o=$e.json.value_variable),t.$$.dirty[0]&1&&n(38,r=$e.json.options),t.$$.dirty[1]&128&&n(4,s=Array.isArray(r)&&r.filter((Lt=>typeof Lt.value=="string"))||[]),t.$$.dirty[0]&1|t.$$.dirty[1]&64&&vt(n(23,l=o&&$e.getVariable(o,"string")||Ho("temp","string",""))),t.$$.dirty[0]&1&&ye(n(22,a=$e.getDerivedFromVars($e.json.paddings))),t.$$.dirty[0]&1&&kt(n(21,c=$e.getDerivedFromVars($e.json.hint_text))),t.$$.dirty[0]&1&&J(n(20,d=$e.getDerivedFromVars($e.json.hint_color))),t.$$.dirty[0]&1&&at(n(19,u=$e.getDerivedFromVars($e.json.font_size))),t.$$.dirty[0]&1&&ze(n(18,p=$e.getDerivedFromVars($e.json.font_weight))),t.$$.dirty[0]&1&&Q(n(17,_=$e.getDerivedFromVars($e.json.font_weight_value))),t.$$.dirty[0]&1&&de(n(16,f=$e.getDerivedFromVars($e.json.font_family))),t.$$.dirty[0]&1&&V(n(15,m=$e.getDerivedFromVars($e.json.line_height))),t.$$.dirty[0]&1&&B(n(14,h=$e.getDerivedFromVars($e.json.letter_spacing))),t.$$.dirty[0]&1&&D(n(13,v=$e.getDerivedFromVars($e.json.text_color))),t.$$.dirty[0]&1&&A(n(12,y=$e.getDerivedFromVars($e.json.accessibility))),t.$$.dirty[0]&17&&(Array.isArray(s)&&s.length||$e.logError(tt(new Error('Empty selection "items" in "select"')))),t.$$.dirty[0]&1|t.$$.dirty[1]&64&&(o?n(6,jt=!1):(n(6,jt=!0),$e.logError(tt(new Error('Missing "value_variable" in "select"'))))),t.$$.dirty[0]&49|t.$$.dirty[1]&32){const Lt=s.find((wn=>wn.value===Ee));Lt?n(3,Vt=(typeof Lt.text=="string"?Lt.text:Lt.value)||""):(n(3,Vt=""),Ee&&bt!==Ee&&(n(36,bt=Ee),$e.logError(tt(new Error('Value from the variable was not found in the selection items for "select"')))))}if(t.$$.dirty[0]&1073741824|t.$$.dirty[1]&65536&&n(30,pn=mr(W,pn)),t.$$.dirty[0]&1207959552|t.$$.dirty[1]&786432&&(n(27,ln=ya(fe||void 0,ln)),n(28,sn=ln?qr({top:(Number(ln.top)||0)/pn*10,right:(Number(ue==="ltr"?ln.end:ln.start)||Number(ln.right)||0)/pn*10,bottom:(Number(ln.bottom)||0)/pn*10,left:(Number(ue==="ltr"?ln.start:ln.end)||Number(ln.left)||0)/pn*10},ue):"")),t.$$.dirty[0]&536870912|t.$$.dirty[1]&131072&&n(29,At=Ri(Te,1,At)),t.$$.dirty[1]&57345&&(n(31,dn=wl(oe,_e,dn)),Y&&typeof Y=="string"?n(32,Rn=le.typefaceProvider(Y,{fontWeight:dn||400})):n(32,Rn="")),t.$$.dirty[0]&1073741824|t.$$.dirty[1]&4096){const Lt=C;Zo(Lt)&&n(33,Ln=Lt/pn)}t.$$.dirty[0]&1073741824|t.$$.dirty[1]&2048&&id(R)&&n(34,qe=Et(R/pn*10)),t.$$.dirty[1]&1040&&n(35,st=Ri(O,1,st)),t.$$.dirty[0]&1|t.$$.dirty[1]&512&&(T!=null&&T.description?n(7,li=T.description):$e.logError(tt(new Error('Missing accessibility "description" for select'),{level:"warn"}))),t.$$.dirty[0]&8&&n(11,b={hint:!Vt}),t.$$.dirty[0]&536870912|t.$$.dirty[1]&19&&n(10,w={"--divkit-input-hint-color":At,"font-weight":dn,"font-family":Rn,color:st}),t.$$.dirty[0]&1342177280|t.$$.dirty[1]&12&&n(9,k={padding:sn,"font-size":Et(pn),"line-height":Ln,"letter-spacing":qe}),t.$$.dirty[0]&1073741824|t.$$.dirty[1]&12&&n(8,E={"font-size":Et(pn),"line-height":Ln,"letter-spacing":qe}),t.$$.dirty[0]&67108869&&$e.json&&xe&&(Xe&&(le.unregisterFocusable(Xe),n(26,Xe=void 0)),$e.id&&!$e.fakeElement&&(n(26,Xe=$e.id),le.registerFocusable(Xe,{focus(){xe&&xe.focus()}})))},[$e,et,xe,Vt,s,Ee,jt,li,E,k,w,b,y,v,h,m,f,_,p,u,d,c,a,l,ne,Ve,Xe,ln,sn,At,pn,dn,Rn,Ln,qe,st,bt,o,r,i,T,O,R,C,Y,_e,oe,W,Te,ue,fe,Ut,gn]}class iK extends Qi{constructor(e){super(),xi(this,e,nK,tK,Pi,{componentContext:0,layoutParams:1},null,[-1,-1])}}const oK="divkit-b382f",rK="divkit-2205d",aa={video__video:oK,"video__aspect-wrapper":"divkit-04542",video_absolute:rK};function sK(t,e){return Array.isArray(t)&&t.length?t.filter((n=>(n==null?void 0:n.type)==="video_source"&&typeof n.url=="string"&&typeof n.mime_type=="string")).map((n=>{const i={src:n.url};return n.mime_type&&(i.type=n.mime_type),i})):e}function lK(t){return t==="fill"?"cover":t==="no_scale"?"none":"contain"}function lm(t,e,n){const i=t.slice();return i[52]=e[n],i}function am(t,e,n){const i=t.slice();return i[52]=e[n],i}function aK(t){let e,n;return e=new Jr({props:{componentContext:t[0]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.componentContext=i[0]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function cK(t){let e,n;return e=new qo({props:{cls:kn("video",aa,t[12]),customActions:"video",componentContext:t[0],layoutParams:t[1],heightByAspect:t[10]!=="0",$$slots:{default:[pK]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&4096&&(r.cls=kn("video",aa,i[12])),o[0]&1&&(r.componentContext=i[0]),o[0]&2&&(r.layoutParams=i[1]),o[0]&1024&&(r.heightByAspect=i[10]!=="0"),o[0]&4088|o[1]&67108864&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function dK(t){let e,n,i,o,r,s=ci(t[4]),l=[];for(let a=0;a<s.length;a+=1)l[a]=dm(lm(t,s,a));return{c(){e=Zt("video");for(let a=0;a<l.length;a+=1)l[a].c();K(e,"class",aa.video__video),K(e,"style",n=Nn(t[11])),e.playsInline=!0,e.loop=t[5],e.autoplay=t[6],e.muted=t[7],K(e,"poster",t[9]),K(e,"preload",i=t[8]?"metadata":"auto")},m(a,c){rt(a,e,c);for(let d=0;d<l.length;d+=1)l[d]&&l[d].m(e,null);t[46](e),o||(r=[en(e,"timeupdate",t[23]),en(e,"ended",t[24]),en(e,"playing",t[25]),en(e,"pause",t[26]),en(e,"waiting",t[27]),en(e,"error",t[28])],o=!0)},p(a,c){if(c[0]&268435472){s=ci(a[4]);let d;for(d=0;d<s.length;d+=1){const u=lm(a,s,d);l[d]?l[d].p(u,c):(l[d]=dm(u),l[d].c(),l[d].m(e,null))}for(;d<l.length;d+=1)l[d].d(1);l.length=s.length}c[0]&2048&&n!==(n=Nn(a[11]))&&K(e,"style",n),c[0]&32&&(e.loop=a[5]),c[0]&64&&(e.autoplay=a[6]),c[0]&128&&(e.muted=a[7]),c[0]&512&&K(e,"poster",a[9]),c[0]&256&&i!==(i=a[8]?"metadata":"auto")&&K(e,"preload",i)},d(a){a&&it(e),Co(l,a),t[46](null),o=!1,so(r)}}}function uK(t){let e,n,i,o,r=`${t[10]}%`,s,l,a=ci(t[4]),c=[];for(let d=0;d<a.length;d+=1)c[d]=pm(am(t,a,d));return{c(){e=Zt("div"),n=Zt("video");for(let d=0;d<c.length;d+=1)c[d].c();K(n,"class",aa.video__video),K(n,"style",i=Nn(t[11])),n.playsInline=!0,n.loop=t[5],n.autoplay=t[6],n.muted=t[7],K(n,"poster",t[9]),K(n,"preload",o=t[8]?"metadata":"auto"),K(e,"class",aa["video__aspect-wrapper"]),He(e,"padding-bottom",r)},m(d,u){rt(d,e,u),Vn(e,n);for(let p=0;p<c.length;p+=1)c[p]&&c[p].m(n,null);t[45](n),s||(l=[en(n,"timeupdate",t[23]),en(n,"ended",t[24]),en(n,"playing",t[25]),en(n,"pause",t[26]),en(n,"waiting",t[27]),en(n,"error",t[28])],s=!0)},p(d,u){if(u[0]&268435472){a=ci(d[4]);let p;for(p=0;p<a.length;p+=1){const _=am(d,a,p);c[p]?c[p].p(_,u):(c[p]=pm(_),c[p].c(),c[p].m(n,null))}for(;p<c.length;p+=1)c[p].d(1);c.length=a.length}u[0]&2048&&i!==(i=Nn(d[11]))&&K(n,"style",i),u[0]&32&&(n.loop=d[5]),u[0]&64&&(n.autoplay=d[6]),u[0]&128&&(n.muted=d[7]),u[0]&512&&K(n,"poster",d[9]),u[0]&256&&o!==(o=d[8]?"metadata":"auto")&&K(n,"preload",o),u[0]&1024&&r!==(r=`${d[10]}%`)&&He(e,"padding-bottom",r)},d(d){d&&it(e),Co(c,d),t[45](null),s=!1,so(l)}}}function cm(t){let e,n,i,o,r;return{c(){e=Zt("source"),rr(e.src,n=t[52].src)||K(e,"src",n),K(e,"type",i=t[52].type)},m(s,l){rt(s,e,l),o||(r=en(e,"error",t[28]),o=!0)},p(s,l){l[0]&16&&!rr(e.src,n=s[52].src)&&K(e,"src",n),l[0]&16&&i!==(i=s[52].type)&&K(e,"type",i)},d(s){s&&it(e),o=!1,r()}}}function dm(t){let e=t[52],n,i=cm(t);return{c(){i.c(),n=si()},m(o,r){i.m(o,r),rt(o,n,r)},p(o,r){r[0]&16&&Pi(e,e=o[52])?(i.d(1),i=cm(o),i.c(),i.m(n.parentNode,n)):i.p(o,r)},d(o){o&&it(n),i.d(o)}}}function um(t){let e,n,i,o,r;return{c(){e=Zt("source"),rr(e.src,n=t[52].src)||K(e,"src",n),K(e,"type",i=t[52].type)},m(s,l){rt(s,e,l),o||(r=en(e,"error",t[28]),o=!0)},p(s,l){l[0]&16&&!rr(e.src,n=s[52].src)&&K(e,"src",n),l[0]&16&&i!==(i=s[52].type)&&K(e,"type",i)},d(s){s&&it(e),o=!1,r()}}}function pm(t){let e=t[52],n,i=um(t);return{c(){i.c(),n=si()},m(o,r){i.m(o,r),rt(o,n,r)},p(o,r){r[0]&16&&Pi(e,e=o[52])?(i.d(1),i=um(o),i.c(),i.m(n.parentNode,n)):i.p(o,r)},d(o){o&&it(n),i.d(o)}}}function pK(t){let e;function n(r,s){return r[10]!=="0"?uK:dK}let i=n(t),o=i(t);return{c(){o.c(),e=si()},m(r,s){o.m(r,s),rt(r,e,s)},p(r,s){i===(i=n(r))&&o?o.p(r,s):(o.d(1),o=i(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&it(e),o.d(r)}}}function _K(t){let e,n,i,o;const r=[cK,aK],s=[];function l(a,c){return a[2]?1:0}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=si()},m(a,c){~e&&s[e].m(a,c),rt(a,i,c),o=!0},p(a,c){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&it(i),~e&&s[e].d(a)}}}function fK(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,h,v,y=me,b=()=>(y(),y=De(l,(qe=>n(35,v=qe))),l),w,k=me,E=()=>(k(),k=De(f,(qe=>n(36,w=qe))),f),T,j=me,A=()=>(j(),j=De(_,(qe=>n(37,T=qe))),_),O,M=me,D=()=>(M(),M=De(p,(qe=>n(38,O=qe))),p),R,U=me,B=()=>(U(),U=De(u,(qe=>n(39,R=qe))),u),C,q=me,V=()=>(q(),q=De(d,(qe=>n(40,C=qe))),d),Y,x=me,de=()=>(x(),x=De(c,(qe=>n(41,Y=qe))),c),_e,G=me,Q=()=>(G(),G=De(a,(qe=>n(42,_e=qe))),a),oe,he=me,ze=()=>(he(),he=De(s,(qe=>n(43,oe=qe))),s),W,Ke=me,at=()=>(Ke(),Ke=De(r,(qe=>n(44,W=qe))),r);t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>he())),t.$$.on_destroy.push((()=>Ke()));let{componentContext:Te}=e,{layoutParams:ot=void 0}=e;const J=ro(vo);let ue,fe=!1,Qe=!1,ye,Ee=[],Ye=!1,vt=!1,ne=!1,pe=!1,kt,$e="fit",et="0",le=!1,Ve;function Xe(qe){if(Qe){Qe=!1;return}ye&&n(3,ye.currentTime=Number(qe)/1e3,ye)}function xe(){ye==null||ye.pause()}function jt(){const qe=ye==null?void 0:ye.play();qe&&qe.catch((st=>{Te.logError(tt(new Error("Video playing error"),{level:"error",additional:{originalText:String(st)}}))}))}function Vt(){ye&&(Qe=!0,o.setValue(Math.floor(ye.currentTime*1e3)))}function ln(){const qe=Te.getJsonWithVars(Te.json.end_actions);Te.execAnyActions(qe)}function sn(){const qe=Te.getJsonWithVars(Te.json.resume_actions);Te.execAnyActions(qe)}function At(){const qe=Te.getJsonWithVars(Te.json.pause_actions);Te.execAnyActions(qe)}function pn(){const qe=Te.getJsonWithVars(Te.json.buffering_actions);Te.execAnyActions(qe)}function dn(){const qe=Te.getJsonWithVars(Te.json.fatal_actions);Te.execAnyActions(qe)}jo((()=>{ue&&(J.unregisterInstance(ue),n(29,ue=void 0)),Ve&&(Ve(),n(32,Ve=void 0))}));function Rn(qe){Wi[qe?"unshift":"push"]((()=>{ye=qe,n(3,ye)}))}function Ln(qe){Wi[qe?"unshift":"push"]((()=>{ye=qe,n(3,ye)}))}return t.$$set=qe=>{"componentContext"in qe&&n(0,Te=qe.componentContext),"layoutParams"in qe&&n(1,ot=qe.layoutParams)},t.$$.update=()=>{if(t.$$.dirty[0]&1&&Te.json&&(n(5,Ye=!1),n(6,vt=!1),n(7,ne=!1),n(8,pe=!1),n(9,kt=void 0),n(30,$e="fit"),n(31,le=!1)),t.$$.dirty[0]&1&&n(34,i=Te.json.elapsed_time_variable),t.$$.dirty[0]&1|t.$$.dirty[1]&8&&n(33,o=i&&Te.getVariable(i,"integer")||Ho("temp","integer",0)),t.$$.dirty[1]&6&&o&&(Ve&&Ve(),n(32,Ve=o.subscribe(Xe))),t.$$.dirty[0]&1&&at(n(22,r=Te.getDerivedFromVars(Te.json.video_sources))),t.$$.dirty[0]&1&&ze(n(21,s=Te.getDerivedFromVars(Te.json.repeatable))),t.$$.dirty[0]&1&&b(n(20,l=Te.getDerivedFromVars(Te.json.autostart))),t.$$.dirty[0]&1&&Q(n(19,a=Te.getDerivedFromVars(Te.json.muted))),t.$$.dirty[0]&1&&de(n(18,c=Te.getDerivedFromVars(Te.json.preload_required))),t.$$.dirty[0]&1&&V(n(17,d=Te.getDerivedFromVars(Te.json.preview))),t.$$.dirty[0]&1&&B(n(16,u=Te.getDerivedFromVars(Te.json.scale))),t.$$.dirty[0]&1&&D(n(15,p=Te.getDerivedFromVars(Te.json.aspect))),t.$$.dirty[0]&1&&A(n(14,_=Te.getDerivedFromVars(Te.json.width))),t.$$.dirty[0]&1&&E(n(13,f=Te.getDerivedFromVars(Te.json.height))),t.$$.dirty[0]&17|t.$$.dirty[1]&8192&&(n(4,Ee=sK(W,Ee)),Ee.length?n(2,fe=!1):(n(2,fe=!0),Te.logError(tt(new Error('Missing "video_sources" in "video"'))))),t.$$.dirty[0]&32|t.$$.dirty[1]&4096&&n(5,Ye=br(oe,Ye)),t.$$.dirty[0]&64|t.$$.dirty[1]&16&&n(6,vt=br(v,vt)),t.$$.dirty[0]&128|t.$$.dirty[1]&2048&&n(7,ne=br(_e,ne)),t.$$.dirty[0]&256|t.$$.dirty[1]&1024&&n(8,pe=br(Y,pe)),t.$$.dirty[0]&512|t.$$.dirty[1]&512&&n(9,kt=typeof C=="string"?_2(C):kt),t.$$.dirty[0]&1073741824|t.$$.dirty[1]&256&&n(30,$e=lK(R)||$e),t.$$.dirty[1]&224){const qe=O==null?void 0:O.ratio;qe&&Zo(qe)?(n(10,et=(100/Number(qe)).toFixed(2)),n(31,le=!0)):(n(10,et="0"),n(31,le=(!T||T.type==="match_parent")&&(w==null?void 0:w.type)==="match_parent"))}t.$$.dirty[0]&536870917&&Te.json&&(ue&&(J.unregisterInstance(ue),n(29,ue=void 0)),Te.id&&!fe&&!Te.fakeElement&&(n(29,ue=Te.id),J.registerInstance(ue,{pause:xe,start:jt}))),t.$$.dirty[0]&9|t.$$.dirty[1]&16&&Te.json&&v&&ye&&jt(),t.$$.dirty[1]&1&&n(12,m={absolute:le}),t.$$.dirty[0]&1073741824&&n(11,h={"object-fit":$e})},[Te,ot,fe,ye,Ee,Ye,vt,ne,pe,kt,et,h,m,f,_,p,u,d,c,a,l,s,r,Vt,ln,sn,At,pn,dn,ue,$e,le,Ve,o,i,v,w,T,O,R,C,Y,_e,oe,W,Rn,Ln]}class mK extends Qi{constructor(e){super(),xi(this,e,fK,_K,Pi,{componentContext:0,layoutParams:1},null,[-1,-1])}}const gK="divkit-adc72",hK="divkit-385c4",vK="divkit-3c049",bK="divkit-ed159",yK="divkit-f630c",js={switch:"divkit-03a3a",switch__tumbler:gK,switch__tumbler_checked:hK,switch_disabled:vK,switch__thumb:bK,switch__input:yK};function zd(t){return t===!0||t===1}function wK(t){let e,n;return e=new Jr({props:{componentContext:t[0]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.componentContext=i[0]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function $K(t){let e,n;return e=new qo({props:{cls:kn("switch",js,t[9]),style:t[8],customDescription:!0,customActions:"switch",hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[kK,({focusHandler:i,blurHandler:o,hasCustomFocus:r})=>({26:i,27:o,28:r}),({focusHandler:i,blurHandler:o,hasCustomFocus:r})=>(i?67108864:0)|(o?134217728:0)|(r?268435456:0)]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o&512&&(r.cls=kn("switch",js,i[9])),o&256&&(r.style=i[8]),o&1&&(r.componentContext=i[0]),o&2&&(r.layoutParams=i[1]),o&1006633052&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function kK(t){let e,n,i,o,r,s,l,a,c;return{c(){e=Zt("div"),n=Zt("div"),o=Ai(),r=Zt("input"),K(n,"class",js.switch__thumb),K(e,"class",i=kn("switch__tumbler",js,{checked:t[3]})),K(r,"type","checkbox"),K(r,"class",s=kn("switch__input",js,{"has-custom-focus":t[28]})),K(r,"autocomplete","off"),K(r,"aria-label",t[6]),r.disabled=l=!t[4],r.checked=t[3]},m(d,u){rt(d,e,u),Vn(e,n),rt(d,o,u),rt(d,r,u),t[23](r),a||(c=[en(r,"input",t[13]),en(r,"focus",(function(){Fi(t[26])&&t[26].apply(this,arguments)})),en(r,"blur",(function(){Fi(t[27])&&t[27].apply(this,arguments)}))],a=!0)},p(d,u){t=d,u&8&&i!==(i=kn("switch__tumbler",js,{checked:t[3]}))&&K(e,"class",i),u&268435456&&s!==(s=kn("switch__input",js,{"has-custom-focus":t[28]}))&&K(r,"class",s),u&64&&K(r,"aria-label",t[6]),u&16&&l!==(l=!t[4])&&(r.disabled=l),u&8&&(r.checked=t[3])},d(d){d&&(it(e),it(o),it(r)),t[23](null),a=!1,so(c)}}}function jK(t){let e,n,i,o;const r=[$K,wK],s=[];function l(a,c){return a[5]?1:0}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=si()},m(a,c){~e&&s[e].m(a,c),rt(a,i,c),o=!0},p(a,[c]){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&it(i),~e&&s[e].d(a)}}}function SK(t,e,n){let i,o,r,s,l,a,c,d,u,p=me,_=()=>(p(),p=De(s,(de=>n(19,u=de))),s),f,m=me,h=()=>(m(),m=De(a,(de=>n(20,f=de))),a),v,y=me,b=()=>(y(),y=De(l,(de=>n(21,v=de))),l),w,k=me,E=()=>(k(),k=De(r,(de=>n(22,w=de))),r);t.$$.on_destroy.push((()=>p())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>k()));let{componentContext:T}=e,{layoutParams:j=void 0}=e;const A=ro(vo);let O,M,D=!1,R=!1,U="",B=!0,C="#129386",q="#1293864c";function V(){n(4,B=!0),n(15,C="#129386"),n(16,q="#1293864c")}function Y(de){n(3,D=de.target.checked),r.setValue(D)}jo((()=>{O&&(A.unregisterFocusable(O),n(14,O=void 0))}));function x(de){Wi[de?"unshift":"push"]((()=>{M=de,n(2,M)}))}return t.$$set=de=>{"componentContext"in de&&n(0,T=de.componentContext),"layoutParams"in de&&n(1,j=de.layoutParams)},t.$$.update=()=>{if(t.$$.dirty&1&&n(18,i=T.origJson),t.$$.dirty&262144&&i&&V(),t.$$.dirty&1&&n(17,o=T.json.is_on_variable),t.$$.dirty&131073&&E(n(7,r=o&&T.getVariable(o,"boolean")||Ho("temp","boolean",!1))),t.$$.dirty&1&&_(n(12,s=T.getDerivedFromVars(T.json.accessibility))),t.$$.dirty&1&&b(n(11,l=T.getDerivedFromVars(T.json.is_enabled))),t.$$.dirty&1&&h(n(10,a=T.getDerivedFromVars(T.json.on_color))),t.$$.dirty&131073&&(o?n(5,R=!1):(n(5,R=!0),T.logError(tt(new Error('Missing "is_on_variable" in "switch"'))))),t.$$.dirty&4194312&&zd(D)!==zd(w)&&n(3,D=zd(w)),t.$$.dirty&2097168&&n(4,B=br(v,B)),t.$$.dirty&1081344&&(n(15,C=Ri(f,1,C)),typeof f=="string")){const de=ns(f);de&&(de.a*=.3,n(16,q=Au(de)))}t.$$.dirty&524289&&(u!=null&&u.description?n(6,U=u.description):T.logError(tt(new Error('Missing accessibility "description" for switch'),{level:"warn"}))),t.$$.dirty&16&&n(9,c={disabled:!B}),t.$$.dirty&98304&&n(8,d={"--divkit-switch-on-color":C,"--divkit-switch-on-sub-color":q}),t.$$.dirty&16389&&M&&T.json&&(O&&(A.unregisterFocusable(O),n(14,O=void 0)),T.id&&!T.fakeElement&&(n(14,O=T.id),A.registerFocusable(O,{focus(){M&&M.focus()}})))},[T,j,M,D,B,R,U,r,d,c,a,l,s,Y,O,C,q,o,i,u,f,v,w,x]}class CK extends Qi{constructor(e){super(),xi(this,e,SK,jK,Pi,{componentContext:0,layoutParams:1})}}function _m(t,e,n){const i=t.slice();return i[11]=e[n],i}function TK(t){let e,n;return e=new Jr({props:{componentContext:t[0]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.componentContext=i[0]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function zK(t){let e,n;return e=new qo({props:{componentContext:t[0],layoutParams:t[1],$$slots:{default:[EK]},$$scope:{ctx:t}}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.componentContext=i[0]),o&2&&(r.layoutParams=i[1]),o&16893&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function fm(t){let e,n=[t[8]],i={};for(let o=0;o<n.length;o+=1)i=Ks(i,n[o]);return{c(){e=Zt("template"),$r(e,i)},m(o,r){rt(o,e,r),e.content.innerHTML=t[7]},p(o,r){r&128&&(e.content.innerHTML=o[7]),$r(e,i=Pl(n,[r&256&&o[8]]))},d(o){o&&it(e)}}}function mm(t){let e=t[5],n,i,o=hm(t);return{c(){o.c(),n=si()},m(r,s){o.m(r,s),rt(r,n,s),i=!0},p(r,s){s&32&&Pi(e,e=r[5])?(ui(),nt(o,1,1,me),pi(),o=hm(r),o.c(),Ue(o,1),o.m(n.parentNode,n)):o.p(r,s)},i(r){i||(Ue(o),i=!0)},o(r){nt(o),i=!1},d(r){r&&it(n),o.d(r)}}}function gm(t){let e,n;return e=new Cr({props:{componentContext:t[11]}}),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o&8&&(r.componentContext=i[11]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function hm(t){let e,n,i=ci(t[3]),o=[];for(let s=0;s<i.length;s+=1)o[s]=gm(_m(t,i,s));const r=s=>nt(o[s],1,1,(()=>{o[s]=null}));return{c(){for(let s=0;s<o.length;s+=1)o[s].c();e=si()},m(s,l){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(s,l);rt(s,e,l),n=!0},p(s,l){if(l&8){i=ci(s[3]);let a;for(a=0;a<i.length;a+=1){const c=_m(s,i,a);o[a]?(o[a].p(c,l),Ue(o[a],1)):(o[a]=gm(c),o[a].c(),Ue(o[a],1),o[a].m(e.parentNode,e))}for(ui(),a=i.length;a<o.length;a+=1)r(a);pi()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)Ue(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)nt(o[l]);n=!1},d(s){s&&it(e),Co(o,s)}}}function Ed(t){let e,n,i,o=t[7]&&fm(t),r=!t[4]&&t[5]&&mm(t),s=[t[0].json.custom_props||{}],l={};for(let a=0;a<s.length;a+=1)l=Ks(l,s[a]);return{c(){e=Zt(t[2].element),o&&o.c(),n=Ai(),r&&r.c(),v_(t[2].element)(e,l)},m(a,c){rt(a,e,c),o&&o.m(e,null),Vn(e,n),r&&r.m(e,null),t[9](e),i=!0},p(a,c){a[7]?o?o.p(a,c):(o=fm(a),o.c(),o.m(e,n)):o&&(o.d(1),o=null),!a[4]&&a[5]?r?(r.p(a,c),c&48&&Ue(r,1)):(r=mm(a),r.c(),Ue(r,1),r.m(e,null)):r&&(ui(),nt(r,1,1,(()=>{r=null})),pi()),v_(a[2].element)(e,l=Pl(s,[c&1&&(a[0].json.custom_props||{})]))},i(a){i||(Ue(r),i=!0)},o(a){nt(r),i=!1},d(a){a&&it(e),o&&o.d(),r&&r.d(),t[9](null)}}}function EK(t){let e=t[2].element,n,i=t[2].element&&Ed(t);return{c(){i&&i.c(),n=si()},m(o,r){i&&i.m(o,r),rt(o,n,r)},p(o,r){o[2].element?e?Pi(e,o[2].element)?(i.d(1),i=Ed(o),e=o[2].element,i.c(),i.m(n.parentNode,n)):i.p(o,r):(i=Ed(o),e=o[2].element,i.c(),i.m(n.parentNode,n)):e&&(i.d(1),i=null,e=o[2].element)},i:me,o(o){nt(i,o)},d(o){o&&it(n),i&&i.d(o)}}}function AK(t){let e,n,i,o;const r=[zK,TK],s=[];function l(a,c){return a[2]?0:1}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=si()},m(a,c){~e&&s[e].m(a,c),rt(a,i,c),o=!0},p(a,[c]){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(ui(),nt(s[d],1,1,(()=>{s[d]=null})),pi()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),Ue(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(Ue(n),o=!0)},o(a){nt(n),o=!1},d(a){a&&it(i),~e&&s[e].d(a)}}}function OK(t,e,n){let i,{componentContext:o}=e,{layoutParams:r=void 0}=e;const s=ro(vo);let l,a=null,c="",d={},u=[],p=!1;Sr((()=>{if(l&&"divKitApiCallback"in l&&typeof l.divKitApiCallback=="function"){const f=s.getExtensionContext(o);l.divKitApiCallback(f)}})),jo((()=>{u.forEach((f=>{f.destroy()}))}));function _(f){Wi[f?"unshift":"push"]((()=>{l=f,n(6,l)}))}return t.$$set=f=>{"componentContext"in f&&n(0,o=f.componentContext),"layoutParams"in f&&n(1,r=f.layoutParams)},t.$$.update=()=>{var f;if(t.$$.dirty&5)if(typeof o.json.custom_type=="string"&&o.json.custom_type&&(f=s.customComponents)!=null&&f.has(o.json.custom_type)){if(n(2,a=s.customComponents.get(o.json.custom_type)),typeof a.template=="function"){const m=s.getExtensionContext(o),h=new Map;for(const[v,y]of m.variables)h.set(v,y.getValue());n(7,c=a.template({props:o.json.custom_props,variables:h}))}else a.template&&typeof a.template=="string"?n(7,c=a.template):n(7,c="");n(8,d={shadowrootmode:a.shadowRootMode||"open"})}else n(2,a=null),n(7,c=";"),o.logError(tt(new Error('Unknown or incorrect "custom_type" prop for div "custom"')));t.$$.dirty&1&&n(5,i=o.json.items),t.$$.dirty&33&&(i!==void 0&&!Array.isArray(i)?(n(4,p=!0),o.logError(tt(new Error('Incorrect "items" prop for div "custom"')))):n(4,p=!1)),t.$$.dirty&57&&(u.forEach((m=>{m.destroy()})),n(3,u=(!p&&i||[]).map(((m,h)=>o.produceChildContext(m,{path:h})))))},[o,r,a,u,p,i,l,c,d,_]}class MK extends Qi{constructor(e){super(),xi(this,e,OK,AK,Pi,{componentContext:0,layoutParams:1})}}const T2={text:XB,container:PH,separator:RH,image:af,gif:af,grid:fU,gallery:IU,tabs:sJ,state:AJ,pager:GJ,indicator:aW,slider:jW,input:KW,select:iK,video:mK,switch:CK,custom:MK};function vm(t){let e,n,i;var o=t[2];function r(s,l){return{props:{componentContext:s[0],layoutParams:s[1]}}}return o&&(e=w_(o,r(t))),{c(){e&&Qn(e.$$.fragment),n=si()},m(s,l){e&&Zn(e,s,l),rt(s,n,l),i=!0},p(s,l){if(l&4&&o!==(o=s[2])){if(e){ui();const a=e;nt(a.$$.fragment,1,0,(()=>{xn(a,1)})),pi()}o?(e=w_(o,r(s)),Qn(e.$$.fragment),Ue(e.$$.fragment,1),Zn(e,n.parentNode,n)):e=null}else if(o){const a={};l&1&&(a.componentContext=s[0]),l&2&&(a.layoutParams=s[1]),e.$set(a)}},i(s){i||(e&&Ue(e.$$.fragment,s),i=!0)},o(s){e&&nt(e.$$.fragment,s),i=!1},d(s){s&&it(n),e&&xn(e,s)}}}function PK(t){let e,n,i=t[2]&&vm(t);return{c(){i&&i.c(),e=si()},m(o,r){i&&i.m(o,r),rt(o,e,r),n=!0},p(o,[r]){o[2]?i?(i.p(o,r),r&4&&Ue(i,1)):(i=vm(o),i.c(),Ue(i,1),i.m(e.parentNode,e)):i&&(ui(),nt(i,1,1,(()=>{i=null})),pi())},i(o){n||(Ue(i),n=!0)},o(o){nt(i),n=!1},d(o){o&&it(e),i&&i.d(o)}}}function IK(t,e,n){let{componentContext:i}=e,{layoutParams:o=void 0}=e;const r=ro(vo);let s;return t.$$set=l=>{"componentContext"in l&&n(0,i=l.componentContext),"layoutParams"in l&&n(1,o=l.layoutParams)},t.$$.update=()=>{if(t.$$.dirty&5){const l=i.json;if(n(2,s=(l==null?void 0:l.type)&&T2[l.type]||void 0),!s){let a;l!=null&&l.type&&r.hasTemplate(l.type)?a="Recursive template":a="Unknown component",i.logError(tt(new Error(a),{additional:{component:(l==null?void 0:l.type)||"<missing>"}}))}}},[i,o,s]}class Cr extends Qi{constructor(e){super(),xi(this,e,IK,PK,Pi,{componentContext:0,layoutParams:1})}}const DK={"root-svg-filters":"divkit-44365"};function bm(t,e,n){const i=t.slice();i[1]=e[n];const o=i[1].split(":");return i[2]=o[0],i[3]=o[1],i}function ym(t){let e,n,i=ci([...Object.keys(t[0])]),o=[];for(let r=0;r<i.length;r+=1)o[r]=wm(bm(t,i,r));return{c(){e=$o("svg"),n=$o("defs");for(let r=0;r<o.length;r+=1)o[r].c();K(e,"class",DK["root-svg-filters"]),K(e,"aria-hidden","true")},m(r,s){rt(r,e,s),Vn(e,n);for(let l=0;l<o.length;l+=1)o[l]&&o[l].m(n,null)},p(r,s){if(s&1){i=ci([...Object.keys(r[0])]);let l;for(l=0;l<i.length;l+=1){const a=bm(r,i,l);o[l]?o[l].p(a,s):(o[l]=wm(a),o[l].c(),o[l].m(n,null))}for(;l<o.length;l+=1)o[l].d(1);o.length=i.length}},d(r){r&&it(e),Co(o,r)}}}function VK(t){let e,n;return{c(){e=$o("feBlend"),K(e,"in2","SourceGraphic"),K(e,"mode",n=t[3])},m(i,o){rt(i,e,o)},p(i,o){o&1&&n!==(n=i[3])&&K(e,"mode",n)},d(i){i&&it(e)}}}function LK(t){let e;return{c(){e=$o("feComposite"),K(e,"in2","SourceGraphic"),K(e,"operator","arithmetic"),K(e,"k1","1"),K(e,"k2","0"),K(e,"k3","0"),K(e,"k4","0")},m(n,i){rt(n,e,i)},p:me,d(n){n&&it(e)}}}function FK(t){let e,n;return{c(){e=$o("feComposite"),K(e,"in2","SourceGraphic"),K(e,"operator",n=t[3].split("_")[1])},m(i,o){rt(i,e,o)},p(i,o){o&1&&n!==(n=i[3].split("_")[1])&&K(e,"operator",n)},d(i){i&&it(e)}}}function wm(t){let e,n,i,o;function r(a,c){return a[3]==="source_in"||a[3]==="source_atop"?FK:a[3]==="multiply"?LK:VK}let s=r(t),l=s(t);return{c(){e=$o("filter"),n=$o("feFlood"),l.c(),K(n,"flood-color",i=t[2]),K(e,"id",o=t[0][t[1]])},m(a,c){rt(a,e,c),Vn(e,n),l.m(e,null)},p(a,c){c&1&&i!==(i=a[2])&&K(n,"flood-color",i),s===(s=r(a))&&l?l.p(a,c):(l.d(1),l=s(a),l&&(l.c(),l.m(e,null))),c&1&&o!==(o=a[0][a[1]])&&K(e,"id",o)},d(a){a&&it(e),l.d()}}}function NK(t){let e=Object.keys(t[0]).length,n,i=e&&ym(t);return{c(){i&&i.c(),n=si()},m(o,r){i&&i.m(o,r),rt(o,n,r)},p(o,[r]){r&1&&(e=Object.keys(o[0]).length),e?i?i.p(o,r):(i=ym(o),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},i:me,o:me,d(o){o&&it(n),i&&i.d(o)}}}function qK(t,e,n){let{svgFiltersMap:i}=e;return t.$$set=o=>{"svgFiltersMap"in o&&n(0,i=o.svgFiltersMap)},[i]}class RK extends Qi{constructor(e){super(),xi(this,e,qK,NK,Pi,{svgFiltersMap:0})}}function BK(t,e,n,i){const o=n[t.type];if(!o)return i(tt(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let r;const s={};for(r in e)e.hasOwnProperty(r)&&(s[r]=e[r]);for(r in t)r==="type"||r==="__proto__"||t.hasOwnProperty(r)&&(s[r]=t[r]);function l(c,d){const u=Object.keys(d).filter((f=>f!=="__proto__")),p=u.filter((f=>f.charAt(0)!=="$")),_=u.filter((f=>f.charAt(0)==="$"));return p.forEach((f=>{const m=d[f];typeof m=="object"&&m!==null?(c[f]=Array.isArray(m)?[]:{},l(c[f],m)):c[f]=m})),_.forEach((f=>{const m=d[f],h=s[m];if(h!==void 0){const v=f.substring(1);c[v]=h}})),c}const a=l({},o);for(r in t)r==="type"||r==="__proto__"||t.hasOwnProperty(r)&&(a[r]=t[r]);return{json:a,templateContext:s}}const HK=128,rl=new Map;let $m;function z2(t){return rl.get(t)}function E2(t,e){t!==$m&&(rl.delete(t),rl.size>=HK&&rl.delete(rl.keys().next().value),rl.set(t,e),$m=t)}const km=new Set(["string","integer","number","boolean","datetime","color","url","dict","array"]);function UK(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&&km.has(t.return_type)))throw new Error("Incorrect function return_type");if(!Array.isArray(t.arguments))throw new Error("Incorrect function arguments");const e=new Set;t.arguments.forEach((n=>{if(!(typeof n.name=="string"&&n.name))throw new Error("Incorrect argument name");if(!(n.type&&km.has(n.type)))throw new Error("Incorrect argument type");if(e.has(n.name))throw new Error("Duplicate argument name");e.add(n.name)}))}function JK(t){let e;return{args:t.arguments.map((n=>({type:n.type}))),cb(n,...i){e||(e=z2(t.body)||ba(t.body,{startRule:"JsonStringContents"}),E2(t.body,e));const o=new Map;i.forEach(((l,a)=>{const c=ru(t.arguments[a].name,l.type,l.value);o.set(c.getName(),c)}));const r=ia(o,n.customFunctions,n.store,e,{weekStartDay:n.weekStartDay});r.warnings.forEach((l=>{n.warnings.push(l)}));const s=r.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 WK(t,e){if(!t)return e||void 0;if(!e)return;const n=new Map,i=new Set;for(const[o,r]of e){for(const s of r){const l=Hp(o,s);i.add(l)}n.set(o,r)}for(const[o,r]of t)for(const s of r){const l=Hp(o,s);if(!i.has(l)){i.add(l);const a=n.get(o)||[];a.push(s),n.set(o,a)}}return n}function KK(t){if(!t)return tt(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return tt(new Error("Missing card"));if(!e.states||!e.states.length)return tt(new Error("Missing states"));for(const i in n)if(n.hasOwnProperty(i)&&i in T2)return tt(new Error("Template name collision"),{additional:{templateName:i}});for(let i=0;i<e.states.length;++i){if(!e.states[i].div)return tt(new Error("Missing state div"),{additional:{stateId:e.states[i].state_id}});if(typeof e.states[i].state_id!="number")return tt(new Error("Missing state_id"),{additional:{index:i}})}return null}function YK(t){return[...new Set(t)]}class A2{constructor(e){Xi(this,"ast"),this.ast=e}apply({variables:e,customFunctions:n,logError:i,store:o,weekStartDay:r,keepComplex:s}){try{const l=ia(e,n,o,this.ast,{weekStartDay:r});l.warnings.forEach(i);const a=l.result;if(a.type==="error"){i(tt(new Error("Expression execution error"),{additional:{message:a.value}}));return}const c=a.value;if(c instanceof Date)return M1(c);if(a.type==="boolean")return!!c;if(a.type==="color"){const d=ns(String(c));if(d)return Ws(d);i(tt(new Error("Expression execution error")))}if(a.type==="integer"){if(c>cF||c<dF){i(tt(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 i(tt(new Error(`Failed to stringify ${a.type}`))),`<${a.type}>`}return c}catch{i(tt(new Error("Expression execution error")));return}}}function GK(t){return t.indexOf("@{")>-1||t.indexOf("\\")>-1}function fu(t,e,n){if(t)if(typeof t=="string"){if(GK(t)){e.hasExpression=!0;try{const i=z2(t)||ba(t,{startRule:"JsonStringContents"});E2(t,i);const o=P1(i);return e.vars.push(...o),new A2(i)}catch{n(tt(new Error("Unable to parse expression"),{additional:{expression:t}}));return}}}else{if(Array.isArray(t))return t.map((i=>fu(i,e,n)));if(typeof t=="object"){const i={};for(const o in t)i[o]=fu(t[o],e,n);return i}}return t}function mu(t,e){if(t){if(t instanceof A2)return t.apply(e);if(Array.isArray(t))return t.map((n=>mu(n,e)));if(typeof t=="object"){const n={};for(const i in t)n[i]=mu(t[i],e);return n}}return t}function jm(t,e,n,i){const o={vars:[],hasExpression:!1},r=fu(t,o,e);return{vars:YK(o.vars),hasExpression:o.hasExpression,applyVars(s,l,a){return mu(r,{variables:s,customFunctions:l,logError:e,store:n,weekStartDay:i,keepComplex:a})}}}function XK(){return Fr(new Map)}const ZK={pagers:XK},rc=new Map,sc=new Map;function O2(t){const e=rc.get(t)||Fr("");return rc.has(t)||rc.set(t,e),e}function xK(t){rc.delete(t),sc.delete(t)}function lc(t){const e=sc.get(t)||new Map;return sc.has(t)||sc.set(t,e),e}class M2{setVariable(e){const n=e.getName(),i=lc(this);if(i.has(n))throw new Error("Variable with the same name already exist");i.set(n,e),O2(this).set(n)}getVariable(e){return lc(this).get(e)}list(){return lc(this).values()}}function QK(){return new M2}const eY=["start","stop","pause","resume","cancel","reset"],tY=new Set(eY);class nY{constructor(e){Xi(this,"timers",new Map),Xi(this,"logError"),Xi(this,"applyVars"),Xi(this,"hasVariableWithType"),Xi(this,"setVariableValue"),Xi(this,"execAnyActions"),Xi(this,"visibilityHandler"),Xi(this,"awaitActions",[]),this.logError=e.logError,this.applyVars=e.applyVars,this.hasVariableWithType=e.hasVariableWithType,this.setVariableValue=e.setVariableValue,this.execAnyActions=e.execAnyActions,this.visibilityHandler=()=>{document.visibilityState==="visible"?(this.awaitActions.forEach((({id:n,action:i})=>{this.execTimerAction(n,i)})),this.awaitActions=[],this.unholdAll()):this.holdAll()},document.addEventListener("visibilitychange",this.visibilityHandler)}destroy(){document.removeEventListener("visibilitychange",this.visibilityHandler);for(const[e,n]of this.timers)this.stopTimerTimeouts(n)}createTimer(e){if(!(e!=null&&e.id)){this.logError(tt(new Error("Missing timer id")));return}if(!(e.duration||e.tick_interval&&(e.value_variable||e.tick_actions))){this.logError(tt(new Error("Misconfigured timer"),{additional:{id:e.id}}));return}this.timers.set(e.id,{state:"stopped",definition:e})}execTimerAction(e,n){if(!e||!n||!this.timers.has(e)||!tY.has(n)){this.logError(tt(new Error("Incorrect timer action"),{additional:{id:e,action:n}}));return}const i=n;if(document.visibilityState!=="visible"){this.awaitActions.push({id:e,action:i});return}const o=this.timers.get(e);this[i](o)}stopTimerTimeouts(e){e.durationTimeout&&(clearTimeout(e.durationTimeout),e.durationTimeout=void 0),e.tickTimeout&&(clearTimeout(e.tickTimeout),e.tickTimeout=void 0)}async tickOrUnholdAction(e){const n=performance.now(),i=(e.durationPassed||0)+n-(e.durationStarted||0);e.duration&&i>e.duration||(this.updateVariable(e,i),await this.callActions(e,"tick"),e.tickCount!==void 0&&++e.tickCount)}startOrResume(e){e.state="running",e.hold=!1,e.durationStarted=performance.now();const n=e.duration;n&&(e.durationTimeout=window.setTimeout((async()=>{this.updateVariable(e,n),e.tickCountPredict&&e.tickCount!==void 0&&e.tickCount<e.tickCountPredict&&await this.callActions(e,"tick"),this.stop(e)}),Math.max(0,n-(e.durationPassed||0))));const i=e.tick;if(i){const o=()=>{const r=e.tickStarted=performance.now(),s=Math.max(0,i-(e.tickPassed||0));e.tickTimeout=window.setTimeout((async()=>{await this.tickOrUnholdAction(e),e.tickPassed=(performance.now()-r-s)%i,e.state==="running"&&o()}),s)};o()}}start(e){if(e.state==="running"){this.logError(tt(new Error("The timer is already running")));return}else if(e.state==="paused"){this.logError(tt(new Error("The timer is paused")));return}const n=e.definition.value_variable;if(n&&!this.hasVariableWithType(n,"integer")){this.logError(tt(new Error("Cannot find variable"),{additional:{name:n}}));return}if(n&&this.setVariableValue(n,0),e.definition.duration&&(e.duration=this.applyVars(e.definition.duration)),e.definition.tick_interval&&(e.tick=this.applyVars(e.definition.tick_interval)),e.duration!==void 0&&e.duration<0||e.tick!==void 0&&e.tick<=0){this.logError(tt(new Error("Incorrect timer properties"),{additional:{id:e.definition.id}}));return}e.duration!==void 0&&e.tick!==void 0&&(e.tickCount=0,e.tickCountPredict=Math.floor(e.duration/e.tick)),this.startOrResume(e)}stop(e){if(e.state==="stopped"){this.logError(tt(new Error("The timer has already been stopped")));return}e.state="stopped",e.durationPassed=0,e.tickPassed=0,this.stopTimerTimeouts(e),this.callActions(e,"end")}pause(e){if(e.state==="stopped"){this.logError(tt(new Error("The timer has already been stopped")));return}else if(e.state==="paused"){this.logError(tt(new Error("The timer has already been paused")));return}e.state="paused",this.stopTimerTimeouts(e);const n=performance.now();e.durationStarted&&(e.durationPassed=(e.durationPassed||0)+n-e.durationStarted),e.tickStarted&&(e.tickPassed=(e.tickPassed||0)+n-e.tickStarted);const i=e.definition.value_variable;i&&e.durationPassed&&this.setVariableValue(i,Math.round(e.durationPassed))}resume(e){if(e.state==="stopped"){this.logError(tt(new Error("The timer has already been stopped")));return}else if(e.state==="running"){this.logError(tt(new Error("The timer is already running")));return}this.startOrResume(e)}cancel(e){e.state!=="stopped"&&(e.state="stopped",e.durationPassed=0,e.tickPassed=0,this.stopTimerTimeouts(e))}reset(e){this.cancel(e),this.start(e)}updateVariable(e,n){const i=e.definition.value_variable;i&&this.setVariableValue(i,Math.round(n))}async callActions(e,n){const i=e.definition[n==="end"?"end_actions":"tick_actions"];if(i){const o=this.applyVars(i);return this.execAnyActions(o,{processUrls:!1})}}holdAll(){for(const[e,n]of this.timers)n.state==="running"&&(n.hold=!0,this.stopTimerTimeouts(n))}async unholdAll(){for(const[e,n]of this.timers)if(n.state==="running"&&n.hold){const i=performance.now();n.durationStarted&&(n.durationPassed=(n.durationPassed||0)+i-n.durationStarted),n.tickStarted&&(n.tickPassed=(n.tickPassed||0)+i-n.tickStarted),n.tick&&await this.tickOrUnholdAction(n),this.startOrResume(n)}}}function iY(t,e,n,i){const{variable_name:o,index:r,value:s}=i;if(!s||typeof r!="number"&&r!==void 0){n(tt(new Error("Incorrect array_insert_value action"),{additional:{name:o}}));return}Xu(t,e,n,i,(l=>{const a=l.getValue();if(typeof r=="number"&&(r<0||r>a.length))n(tt(new Error(`Index out of bound for mutation ${i.type}`),{additional:{name:o,index:r,length:a.length}}));else{const c=a.slice();typeof r=="number"?c.splice(r,0,s.value):c.push(s.value),l.setValue(c)}}))}function oY(t,e,n,i){const{variable_name:o,index:r}=i;if(typeof r!="number"){n(tt(new Error("Incorrect array_remove_value action"),{additional:{name:o}}));return}Xu(t,e,n,i,(s=>{const l=s.getValue();if(typeof r=="number"&&(r<0||r>=l.length))n(tt(new Error(`Index out of bound for mutation ${i.type}`),{additional:{name:o,index:r,length:l.length}}));else{const a=l.slice();a.splice(r,1),s.setValue(a)}}))}function rY(t,e,n,i){const{variable_name:o,index:r,value:s}=i;if(!s||typeof r!="number"){n(tt(new Error("Incorrect array_set_value action"),{additional:{name:o}}));return}Xu(t,e,n,i,(l=>{const a=l.getValue();if(typeof r=="number"&&(r<0||r>=a.length))n(tt(new Error(`Index out of bound for mutation ${i.type}`),{additional:{name:o,index:r,length:a.length}}));else{const c=a.slice();c[r]=s.value,l.setValue(c)}}))}function Xu(t,e,n,i,o){const{variable_name:r}=i;if(!r){n(tt(new Error(`Incorrect ${i.type} action`),{additional:{name:r}}));return}const s=(t==null?void 0:t.getVariable(r))||e.get(r);if(!s){n(tt(new Error("Cannot find variable"),{additional:{name:r}}));return}const l=s.getType();l==="array"?o(s):n(tt(new Error("Trying to insert value into the non-array"),{additional:{name:r,type:l}}))}function sY(t,e,n,i){const{variable_name:o,key:r,value:s}=i;if(typeof r!="string"){n(tt(new Error("Incorrect dict_set_value action"),{additional:{name:o}}));return}if(!o){n(tt(new Error(`Incorrect ${i.type} action`),{additional:{name:o}}));return}const l=(t==null?void 0:t.getVariable(o))||e.get(o);if(!l){n(tt(new Error("Cannot find variable"),{additional:{name:o}}));return}const a=l.getType();if(a==="dict"){const c={...l.getValue()};s?c[r]=s.value:delete c[r],l.setValue(c)}else n(tt(new Error("Trying to set value into the non-dict"),{additional:{name:o,type:a}}))}function lY(t,e){if(!(e.content&&(e.content.type==="text"||e.content.type==="url")&&typeof e.content.value=="string")){t(tt(new Error("Incorrect action"),{additional:{action:e}}));return}if(!(typeof navigator<"u"&&"clipboard"in navigator&&navigator.clipboard&&"writeText"in navigator.clipboard&&typeof navigator.clipboard.writeText=="function")){t(tt(new Error("Clipboard is unavailable"),{additional:{action:e}}));return}navigator.clipboard.writeText(e.content.value).catch((n=>{t(tt(new Error("Failed to copy to the clipboard"),{additional:{originalError:String(n)}}))}))}function aY(t){if(t==="normal"||t==="reverse"||t==="alternate"||t==="alternate_reverse")return t}function cY(t,e,n,i){var o,r,s,l;const a=mr(t.duration,0);if(!a||t.type!=="color_animator"&&t.type!=="number_animator")return;const c=(o=t.start_value_typed?t.start_value_typed.value:t.start_value)!=null?o:e.getValue(),d=t.end_value_typed?t.end_value_typed.value:t.end_value;if(c===void 0||d===void 0||t.type==="color_animator"&&(typeof c!="string"&&c!==void 0||typeof d!="string")||t.type==="number_animator"&&(typeof c!="number"&&c!==void 0||typeof d!="number"))return;const u=t.type==="color_animator"&&ns(c),p=t.type==="color_animator"&&ns(d);if(t.type==="color_animator"&&(!u||!p))return;const _=uo(t.start_delay,0),f=Yu(t.interpolator||"linear"),m=aY(t.direction)||"normal",h=((r=t.repeat_count)==null?void 0:r.type)==="infinity"?1/0:((s=t.repeat_count)==null?void 0:s.type)==="fixed"?uo((l=t.repeat_count)==null?void 0:l.value,1):1;let v=0,y=performance.now();const b=h===1/0?1/0:h*a+_;function w(T){if(t.type==="color_animator"){if(!u||!p)throw new Error("Missing start/end value");return Ws({a:Qr(xr(u.a,p.a,T),0,255),r:Qr(xr(u.r,p.r,T),0,255),g:Qr(xr(u.g,p.g,T),0,255),b:Qr(xr(u.b,p.b,T),0,255)})}return xr(c,d,T)}function k(T){const j=T-y;if(y=T,v+=j,v>=_){let A=Math.floor((v-_)/a),O=(v-_-A*a)/a;A>=h&&(A=h-1,O=1);let M;m==="normal"||m==="alternate"&&A%2===0||m==="alternate_reverse"&&A%2===1?M="normal":M="reverse",M==="reverse"&&(O=1-O);const D=w(f(O));e.setValue(D)}v<b?E=requestAnimationFrame(k):(n(),i(t.end_actions))}let E=requestAnimationFrame(k);return{stop(){cancelAnimationFrame(E),i(t.cancel_actions),i(t.end_actions)}}}function dY(t){let e=t;for(;e&&!e.isTooltipRoot;)e=e.parent;return e}function Sm(t){let e=t;for(;e!=null&&e.parent&&e.json.type!=="state"&&!e.isRootState&&!e.isTooltipRoot;)e=e.parent;return e}const uY="divkit-bf0ea",pY="divkit-27458",_Y="undefined",fY="divkit-e2fee",mY="divkit-04d22",gY="divkit-00335",gu={outer:uY,root__clickable:pY,"root__clickable-no-transition":"divkit-3bb57",root__selectable:_Y,tooltip:fY,tooltip_visible:mY,tooltip__overlay:gY},P2=300,I2=0;function hY(t){return Math.max(...t.map((e=>(Number(e.duration)||P2)+(Number(e.start_delay)||I2))))}function Cm(t,{animations:e,direction:n}){if(!e)return{};const i=Ru(e),o=hY(i);return i.some((r=>r.name==="no_animation"))?{}:{duration:od()?0:o,css:r=>{const s=r*o,l=i.map((_=>{var f,m,h,v,y,b;const w=Number(_.start_delay)||I2,k=Number(_.duration)||P2,E=Math.max(0,Math.min(1,(s-w)/k)),T=(Yu(_.interpolator||"ease_in_out")||ld)(E);if(_.name==="fade"){const j=n==="in"&&(f=_.start_value)!=null?f:0,A=n==="in"?1:(m=_.end_value)!=null?m:1;return{active:T>0&&T<1,opacity:(1-T)*j+T*A}}else if(_.name==="translate"){const j=-(n==="in"&&(h=_.start_value)!=null?h:10),A=-(n==="in"?0:(v=_.end_value)!=null?v:0);return{active:T>0&&T<1,translate:`translateY(${(1-T)*j+T*A}${n==="in"&&_.start_value!==void 0||n==="out"&&_.end_value!==void 0?"%":"px"})`}}else if(_.name==="scale"){const j=n==="in"&&(y=_.start_value)!=null?y:0,A=n==="in"?1:(b=_.end_value)!=null?b:1;return{active:T>0&&T<1,scale:`scale(${(1-T)*j+T*A})`}}return{}})),a=l.map((_=>_.opacity)).filter((_=>_!==void 0)).reduce(((_,f)=>_*f),1),c=l.map((_=>_.translate)).filter((_=>_!==void 0)).join(" "),d=l.map((_=>_.scale)).filter((_=>_!==void 0)).join(" "),u=l.filter((_=>_.active)).map((_=>_.scale)).filter((_=>_!==void 0)),p=u.length?u[u.length-1]:d;return`transform:${[c,p].filter(Boolean).join(" ")||"none"};opacity:${a}`}}}const{window:Tm}=Ur;function zm(t){let e,n,i;return{c(){e=Zt("div"),K(e,"class",gu.tooltip__overlay)},m(o,r){rt(o,e,r),n||(i=en(e,"click",t[17]),n=!0)},p:me,d(o){o&&it(e),n=!1,i()}}}function vY(t){let e,n,i,o,r,s,l,a,c,d=t[0]&&zm(t);return i=new Cr({props:{componentContext:t[1]}}),{c(){d&&d.c(),e=Ai(),n=Zt("div"),Qn(i.$$.fragment),K(n,"class",o=kn("tooltip",gu,t[7])+" "+(t[13]?ai.root_platform_desktop:"")),He(n,"top",t[4]),He(n,"left",t[3]),He(n,"width",t[5]),He(n,"height",t[6])},m(u,p){d&&d.m(u,p),rt(u,e,p),rt(u,n,p),Zn(i,n,null),t[23](n),l=!0,a||(c=[en(Tm,"click",t[17]),en(Tm,"resize",t[18])],a=!0)},p(u,[p]){t=u,t[0]?d?d.p(t,p):(d=zm(t),d.c(),d.m(e.parentNode,e)):d&&(d.d(1),d=null);const _={};p&2&&(_.componentContext=t[1]),i.$set(_),(!l||p&8320&&o!==(o=kn("tooltip",gu,t[7])+" "+(t[13]?ai.root_platform_desktop:"")))&&K(n,"class",o),p&16&&He(n,"top",t[4]),p&8&&He(n,"left",t[3]),p&32&&He(n,"width",t[5]),p&64&&He(n,"height",t[6])},i(u){l||(Ue(i.$$.fragment,u),u&&sr((()=>{l&&(s&&s.end(1),r=Fu(n,Cm,{animations:t[14]||Em,direction:"in"}),r.start())})),l=!0)},o(u){nt(i.$$.fragment,u),r&&r.invalidate(),u&&(s=Uq(n,Cm,{animations:t[15]||Em,direction:"out"})),l=!1},d(u){u&&(it(e),it(n)),d&&d.d(u),xn(i),t[23](null),u&&s&&s.end(),a=!1,so(c)}}}const Em={name:"set",items:[{name:"translate"},{name:"fade"}]};function bY(t,e,n){let i,o,r,s,l,a,c,d=me,u=()=>(d(),d=De(r,(W=>n(25,c=W))),r),p,_=me,f=()=>(_(),_=De(o,(W=>n(26,p=W))),o),m,h=me,v=()=>(h(),h=De(i,(W=>n(27,m=W))),i),y,b,w=me,k=()=>(w(),w=De(s,(W=>n(14,b=W))),s),E,T=me,j=()=>(T(),T=De(l,(W=>n(15,E=W))),l);t.$$.on_destroy.push((()=>d())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>h())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>T()));let{ownerNode:A}=e,{data:O}=e,{internalId:M}=e,{parentComponentContext:D}=e;const R=ro(vo),U=R.isDesktop;ko(t,U,(W=>n(13,y=W)));const B=Date.now();let C,q=!1,V="",Y="",x="",de="",_e=null,G;function Q(){var W,Ke;if(!C||!A)return;const at=C.parentElement;if(!at)return;const Te=C.style.cssText;n(2,C.style.cssText+=";transform: none !important",C);const ot=A.getBoundingClientRect(),J=C.getBoundingClientRect(),ue=at.getBoundingClientRect();n(2,C.style.cssText=Te,C);let fe=0,Qe=0,ye=null,Ee=null,Ye=0,vt=0;const ne=D.getJsonWithVars((W=O.div)==null?void 0:W.width),pe=D.getJsonWithVars((Ke=O.div)==null?void 0:Ke.width);if(!ne||ne.type==="match_parent"?Ye=ye=window.innerWidth:ne.type==="fixed"&&ne.value?Ye=ye=ne.value:Ye=J.width,(pe==null?void 0:pe.type)==="match_parent"?vt=Ee=window.innerHeight:(pe==null?void 0:pe.type)==="fixed"&&pe.value?vt=Ee=pe.value:vt=J.height,m==="left"||m==="bottom-left"||m==="top-left")fe=ot.left-Ye;else if(m==="top"||m==="bottom"||m==="center")fe=(ot.left+ot.right)/2-Ye/2;else if(m==="right"||m==="bottom-right"||m==="top-right")fe=ot.right;else return;if(m==="top"||m==="top-left"||m==="top-right")Qe=ot.top-vt;else if(m==="left"||m==="right"||m==="center")Qe=(ot.top+ot.bottom)/2-vt/2;else if(m==="bottom-left"||m==="bottom"||m==="bottom-right")Qe=ot.bottom;else return;fe-=ue.left,Qe-=ue.top,fe+=p||0,Qe+=c||0,n(3,V=`${fe}px`),n(4,Y=`${Qe}px`),n(5,x=ye!==null?`${ye}px`:""),n(6,de=Ee!==null?`${Ee}px`:""),n(0,q=!0),ye===null||Ee===null?typeof ResizeObserver<"u"&&!_e&&(_e=new ResizeObserver((()=>{requestAnimationFrame(Q)})),_e.observe(C)):_e==null||_e.disconnect()}function oe(W){Date.now()-B<100||W.composedPath().includes(C)||(W.stopPropagation(),W.preventDefault(),R.onTooltipClose(M))}function he(){Q()}Sr((()=>{if(R.tooltipRoot){const W=window.getComputedStyle(C);n(2,C.style.fontSize=W.fontSize,C),n(2,C.style.fontFamily=W.fontFamily,C),n(2,C.style.lineHeight=W.lineHeight,C),R.tooltipRoot.appendChild(C)}})),td((()=>{q||Q()})),jo((()=>{G&&G.destroy(),_e==null||_e.disconnect()}));function ze(W){Wi[W?"unshift":"push"]((()=>{C=W,n(2,C)}))}return t.$$set=W=>{"ownerNode"in W&&n(19,A=W.ownerNode),"data"in W&&n(20,O=W.data),"internalId"in W&&n(21,M=W.internalId),"parentComponentContext"in W&&n(22,D=W.parentComponentContext)},t.$$.update=()=>{var W,Ke,at,Te;t.$$.dirty&5242882&&(G&&G.destroy(),n(1,G=D.produceChildContext(O.div||{},{isTooltipRoot:!0}))),t.$$.dirty&5242880&&v(n(12,i=D.getDerivedFromVars(O.position))),t.$$.dirty&5242880&&f(n(11,o=D.getDerivedFromVars((Ke=(W=O.offset)==null?void 0:W.x)==null?void 0:Ke.value))),t.$$.dirty&5242880&&u(n(10,r=D.getDerivedFromVars((Te=(at=O.offset)==null?void 0:at.y)==null?void 0:Te.value))),t.$$.dirty&5242880&&k(n(9,s=D.getDerivedFromVars(O.animation_in))),t.$$.dirty&5242880&&j(n(8,l=D.getDerivedFromVars(O.animation_out))),t.$$.dirty&1&&n(7,a={visible:q})},[q,G,C,V,Y,x,de,a,l,s,r,o,i,y,b,E,U,oe,he,A,O,M,D,ze]}class yY extends Qi{constructor(e){super(),xi(this,e,bY,vY,Pi,{ownerNode:19,data:20,internalId:21,parentComponentContext:22})}}function Am(t,{delay:e=0,duration:n=400,easing:i=b2,x:o=0,y:r=0,opacity:s=0}={}){const l=getComputedStyle(t),a=+l.opacity,c=l.transform==="none"?"":l.transform,d=a*(1-s),[u,p]=h_(o),[_,f]=h_(r);return{delay:e,duration:n,easing:i,css:(m,h)=>`\n\t\t\ttransform: ${c} translate(${(1-m)*u}${p}, ${(1-m)*_}${f});\n\t\t\topacity: ${a-d*h}`}}const wY="divkit-6d515",$Y="divkit-8767a",kY="divkit-7481b",jY="divkit-60a10",SY="divkit-3133d",ac={root_platform_desktop:wY,menu:$Y,menu_visible:kY,menu__list:jY,menu__item:SY},{window:Om}=Ur;function Mm(t,e,n){const i=t.slice();return i[23]=e[n],i}function CY(t){let e=t[23].text+"",n;return{c(){n=jr(e)},m(i,o){rt(i,n,o)},p(i,o){o&1&&e!==(e=i[23].text+"")&&ws(n,e)},d(i){i&&it(n)}}}function Pm(t){let e,n,i,o;return n=new rd({props:{componentContext:t[1],actions:t[23].actions||t[23].action&&[t[23].action],cls:ac.menu__item+" "+t[10],customAction:t[14],$$slots:{default:[CY]},$$scope:{ctx:t}}}),{c(){e=Zt("li"),Qn(n.$$.fragment),i=Ai()},m(r,s){rt(r,e,s),Zn(n,e,null),Vn(e,i),o=!0},p(r,s){const l={};s&2&&(l.componentContext=r[1]),s&1&&(l.actions=r[23].actions||r[23].action&&[r[23].action]),s&67108865&&(l.$$scope={dirty:s,ctx:r}),n.$set(l)},i(r){o||(Ue(n.$$.fragment,r),o=!0)},o(r){nt(n.$$.fragment,r),o=!1},d(r){r&&it(e),xn(n)}}}function TY(t){let e,n,i,o,r,s,l,a=ci(t[0]),c=[];for(let u=0;u<a.length;u+=1)c[u]=Pm(Mm(t,a,u));const d=u=>nt(c[u],1,1,(()=>{c[u]=null}));return{c(){e=Zt("div"),n=Zt("ul");for(let u=0;u<c.length;u+=1)c[u].c();K(n,"class",ac.menu__list),K(e,"class",i=kn("menu",ac,t[7])+" "+(t[8]?ai.root_platform_desktop:"")+" "+t[9]),He(e,"top",t[4]),He(e,"left",t[3]),He(e,"width",t[5]),He(e,"height",t[6])},m(u,p){rt(u,e,p),Vn(e,n);for(let _=0;_<c.length;_+=1)c[_]&&c[_].m(n,null);t[17](e),r=!0,s||(l=[en(Om,"click",t[12]),en(Om,"resize",t[13])],s=!0)},p(u,[p]){if(p&17411){a=ci(u[0]);let _;for(_=0;_<a.length;_+=1){const f=Mm(u,a,_);c[_]?(c[_].p(f,p),Ue(c[_],1)):(c[_]=Pm(f),c[_].c(),Ue(c[_],1),c[_].m(n,null))}for(ui(),_=a.length;_<c.length;_+=1)d(_);pi()}(!r||p&384&&i!==(i=kn("menu",ac,u[7])+" "+(u[8]?ai.root_platform_desktop:"")+" "+u[9]))&&K(e,"class",i),p&16&&He(e,"top",u[4]),p&8&&He(e,"left",u[3]),p&32&&He(e,"width",u[5]),p&64&&He(e,"height",u[6])},i(u){if(!r){for(let p=0;p<a.length;p+=1)Ue(c[p]);u&&sr((()=>{r&&(o||(o=k_(e,Am,{y:20},!0)),o.run(1))})),r=!0}},o(u){c=c.filter(Boolean);for(let p=0;p<c.length;p+=1)nt(c[p]);u&&(o||(o=k_(e,Am,{y:20},!1)),o.run(0)),r=!1},d(u){u&&it(e),Co(c,u),t[17](null),u&&o&&o.end(),s=!1,so(l)}}}function zY(t,e,n){let i,o,{ownerNode:r}=e,{items:s}=e,{parentComponentContext:l}=e;const a=ro(vo),c=a.getCustomization("menuPopupClass")||"",d=a.getCustomization("menuItemClass")||"",u=a.isDesktop;ko(t,u,(O=>n(8,o=O)));const p=Date.now(),_=Rq();let f,m=!1,h="",v="",y="",b="",w=null;function k(){if(!f||!r)return;const O=f.parentElement;if(!O)return;const M=r.getBoundingClientRect(),D=f.getBoundingClientRect(),R=O.getBoundingClientRect(),U=window.innerWidth,B=window.innerHeight;let C=0,q=0,V=D.width,Y=D.height;C=M.left-R.left,q=M.bottom-R.top,C+V>U&&(C=U-V),C<0&&(C=0),q+Y>B&&(M.top-R.top-Y>0?q=M.top-R.top-Y:q=B-Y),q<0&&(q=0),n(3,h=`${C}px`),n(4,v=`${q}px`),n(5,y=""),n(6,b=""),n(16,m=!0),typeof ResizeObserver<"u"&&!w&&(w=new ResizeObserver((()=>{requestAnimationFrame(k)})),w.observe(f))}function E(O){Date.now()-p<100||O.composedPath().includes(f)||_("close")}function T(){k()}function j(){return _("close"),!0}Sr((()=>{if(a.tooltipRoot){const O=window.getComputedStyle(f);n(2,f.style.fontSize=O.fontSize,f),n(2,f.style.fontFamily=O.fontFamily,f),n(2,f.style.lineHeight=O.lineHeight,f),a.tooltipRoot.appendChild(f)}})),td((()=>{m||k()})),jo((()=>{w==null||w.disconnect()}));function A(O){Wi[O?"unshift":"push"]((()=>{f=O,n(2,f)}))}return t.$$set=O=>{"ownerNode"in O&&n(15,r=O.ownerNode),"items"in O&&n(0,s=O.items),"parentComponentContext"in O&&n(1,l=O.parentComponentContext)},t.$$.update=()=>{t.$$.dirty&65536&&n(7,i={visible:m})},[s,l,f,h,v,y,b,i,o,c,d,u,E,T,j,r,m,A]}class EY extends Qi{constructor(e){super(),xi(this,e,zY,TY,Pi,{ownerNode:15,items:0,parentComponentContext:1})}}const{Map:AY}=Ur;function Im(t,e,n){const i=t.slice();return i[124]=e[n],i}function Dm(t){let e,n,i,o,r,s,l,a,c,d;n=new RK({props:{svgFiltersMap:t[5]}}),o=new Cr({props:{componentContext:t[6]}});let u=t[3]&&Vm(t),p=t[4]&&Fm(t);return{c(){e=Zt("div"),Qn(n.$$.fragment),i=Ai(),Qn(o.$$.fragment),r=Ai(),u&&u.c(),s=Ai(),p&&p.c(),K(e,"class",l=ai.root+(t[7]?` ${ai.root_platform_desktop}`:"")+(t[0]?` ${t[0]}`:"")),K(e,"dir",t[8])},m(_,f){rt(_,e,f),Zn(n,e,null),Vn(e,i),Zn(o,e,null),Vn(e,r),u&&u.m(e,null),Vn(e,s),p&&p.m(e,null),a=!0,c||(d=en(e,"touchstart",IY,{passive:!0}),c=!0)},p(_,f){const m={};f[0]&32&&(m.svgFiltersMap=_[5]),n.$set(m);const h={};f[0]&64&&(h.componentContext=_[6]),o.$set(h),_[3]?u?(u.p(_,f),f[0]&8&&Ue(u,1)):(u=Vm(_),u.c(),Ue(u,1),u.m(e,s)):u&&(ui(),nt(u,1,1,(()=>{u=null})),pi()),_[4]?p?(p.p(_,f),f[0]&16&&Ue(p,1)):(p=Fm(_),p.c(),Ue(p,1),p.m(e,null)):p&&(ui(),nt(p,1,1,(()=>{p=null})),pi()),(!a||f[0]&129&&l!==(l=ai.root+(_[7]?` ${ai.root_platform_desktop}`:"")+(_[0]?` ${_[0]}`:"")))&&K(e,"class",l),(!a||f[0]&256)&&K(e,"dir",_[8])},i(_){a||(Ue(n.$$.fragment,_),Ue(o.$$.fragment,_),Ue(u),Ue(p),a=!0)},o(_){nt(n.$$.fragment,_),nt(o.$$.fragment,_),nt(u),nt(p),a=!1},d(_){_&&it(e),xn(n),xn(o),u&&u.d(),p&&p.d(),c=!1,d()}}}function Vm(t){let e=[],n=new AY,i,o,r=ci(t[3]);const s=l=>l[124].internalId;for(let l=0;l<r.length;l+=1){let a=Im(t,r,l),c=s(a);n.set(c,e[l]=Lm(c,a))}return{c(){for(let l=0;l<e.length;l+=1)e[l].c();i=si()},m(l,a){for(let c=0;c<e.length;c+=1)e[c]&&e[c].m(l,a);rt(l,i,a),o=!0},p(l,a){a[0]&72&&(r=ci(l[3]),ui(),e=Z1(e,a,s,1,l,r,n,i.parentNode,X1,Lm,i,Im),pi())},i(l){if(!o){for(let a=0;a<r.length;a+=1)Ue(e[a]);o=!0}},o(l){for(let a=0;a<e.length;a+=1)nt(e[a]);o=!1},d(l){l&&it(i);for(let a=0;a<e.length;a+=1)e[a].d(l)}}}function Lm(t,e){let n,i,o;return i=new yY({props:{ownerNode:e[124].ownerNode,data:e[124].desc,internalId:e[124].internalId,parentComponentContext:e[124].componentContext||e[6]}}),{key:t,first:null,c(){n=si(),Qn(i.$$.fragment),this.first=n},m(r,s){rt(r,n,s),Zn(i,r,s),o=!0},p(r,s){e=r;const l={};s[0]&8&&(l.ownerNode=e[124].ownerNode),s[0]&8&&(l.data=e[124].desc),s[0]&8&&(l.internalId=e[124].internalId),s[0]&72&&(l.parentComponentContext=e[124].componentContext||e[6]),i.$set(l)},i(r){o||(Ue(i.$$.fragment,r),o=!0)},o(r){nt(i.$$.fragment,r),o=!1},d(r){r&&it(n),xn(i,r)}}}function Fm(t){let e,n;return e=new EY({props:{ownerNode:t[4].node,items:t[4].items,parentComponentContext:t[4].componentContext||t[6]}}),e.$on("close",t[38]),{c(){Qn(e.$$.fragment)},m(i,o){Zn(e,i,o),n=!0},p(i,o){const r={};o[0]&16&&(r.ownerNode=i[4].node),o[0]&16&&(r.items=i[4].items),o[0]&80&&(r.parentComponentContext=i[4].componentContext||i[6]),e.$set(r)},i(i){n||(Ue(e.$$.fragment,i),n=!0)},o(i){nt(e.$$.fragment,i),n=!1},d(i){xn(e,i)}}}function OY(t){let e,n,i=!t[1]&&!t[2]&&t[6]&&Dm(t);return{c(){i&&i.c(),e=si()},m(o,r){i&&i.m(o,r),rt(o,e,r),n=!0},p(o,r){!o[1]&&!o[2]&&o[6]?i?(i.p(o,r),r[0]&70&&Ue(i,1)):(i=Dm(o),i.c(),Ue(i,1),i.m(e.parentNode,e)):i&&(ui(),nt(i,1,1,(()=>{i=null})),pi())},i(o){n||(Ue(i),n=!0)},o(o){nt(i),n=!1},d(o){o&&it(e),i&&i.d(o)}}}let Zu=Fr(!0),Va=0;function Nm(){Zu.set(!1)}function qm(){Zu.set(!0)}const MY=new Set(["string","integer","number","url","color","boolean"]),PY=new Set(["string","integer","number","url","color","boolean","array","dict"]);function ss(t,e){if(t&&e)return new Map([...t,...e]);if(t)return t;if(e)return e}function IY(){}function DY(t,e,n){var i,o;let r,s,l,a,{id:c}=e,{json:d={}}=e,{platform:u="auto"}=e,{theme:p="system"}=e,{globalVariablesController:_=void 0}=e,{mix:f=""}=e,{customization:m={}}=e,{builtinProtocols:h=["http","https","tel","mailto","intent"]}=e,{extensions:v=new Map}=e,{onError:y=void 0}=e,{onStat:b=void 0}=e,{onCustomAction:w=void 0}=e,{onComponent:k=void 0}=e,{typefaceProvider:E=(P=>"")}=e,{fetchInit:T={}}=e,{tooltipRoot:j=void 0}=e,{customComponents:A=void 0}=e,{direction:O="ltr"}=e,{store:M=void 0}=e,{weekStartDay:D=0}=e,R=!0,U=Fr(u==="desktop");if(ko(t,U,(P=>n(7,l=P))),u==="auto"&&typeof matchMedia<"u"){const P=matchMedia("(any-pointer: coarse)");U.set(!P.matches),P.addListener((()=>{U.set(!P.matches)}))}let B="light",C=null;const q=Fr(O==="rtl"?"rtl":"ltr");ko(t,q,(P=>n(8,a=P)));function V(){p!=="system"||!C||n(35,B=C.matches?"dark":"light")}function Y(P){n(12,p=P)}function x(){return at}function de(){return Te}function _e(P){n(11,d=P)}const G=new Set(h);let Q=!1,oe=!1;c||(oe=!0,$e(tt(new Error('"id" prop is required'))));const he={stateChange:!1},ze=_||new M2,W=O2(ze),Ke=lc(ze),at=new Map,Te=new Map,ot=new Map;let J=null;const ue=new Map;let fe=0,Qe=[];const ye=new Set;let Ee;const Ye=[];function vt(P){return m==null?void 0:m[P]}function ne(P,Z,ce,be=!1,ge=void 0){if(!Z)return Ts(Z);const Be=ss(Te,ce),se=jm(Z,P,M,D);if(!se.vars.length)return se.hasExpression?Ts(se.applyVars(Be,ge)):Ts(Z);const ve=se.vars.map((Ae=>Be.get(Ae)||rn(Ae))).filter(os);return Ms(ve,(()=>se.applyVars(Be,ge,be)))}function pe(P,Z,ce,be=!1,ge=void 0){const Be=jm(Z,P,M,D);if(!Be.hasExpression)return Z;const se=ss(Te,ce);return Be.applyVars(se,ge,be)}function kt(P,Z,ce){const be=new Map,ge=ru(P,"dict",Z);be.set(P,ge);const Be=ru("index","integer",ce);return be.set("index",Be),be}function $e(P){y?y({error:P}):(P==null?void 0:P.level)==="warn"?console.warn(P):console.error(P)}function et(P,Z){b&&b({type:P,action:Z})}function le(P){return P in r}function Ve(P,Z){if(!P)return{json:P,templateContext:Z};const ce=new Set([P.type]);for(;P.type&&P.type in r;){if(({json:P,templateContext:Z}=BK(P,Z,r,$e)),ce.has(P.type))return{json:P,templateContext:Z};ce.add(P.type)}return{json:P,templateContext:Z}}function Xe({type:P,node:Z,json:ce,origJson:be,templateContext:ge}){k&&k({type:P,node:Z,json:ce,origJson:be,templateContext:ge})}let xe=0;function jt(P){return`${c}-${xe++}`}function Vt(P){return`divkit-${jt()}`}let ln={},sn={};function At(P,Z){const ce=`${P}:${Z}`;if(sn[ce]=sn[ce]||0,++sn[ce],ln[ce])return ln[ce];const be=`${jt()}-svg-filter`;return n(5,ln={...ln,[ce]:be}),be}function pn(P,Z){if(!P)return;const ce=`${P}:${Z}`;sn[ce]&&--sn[ce]===0&&n(5,ln=Object.keys(ln).reduce(((be,ge)=>(sn[ge]&&(be[ge]=ln[ge]),be)),{}))}const dn=jt()+"-id-",Rn=new Map,Ln=new Map;function qe(P){return dn+P}function st(P,Z){Rn.set(P,Z)}function li(P){Rn.delete(P);const Z=qe(P);Ln.has(Z)&&Ln.delete(Z)}function bt(P){var Z;const ce=(Z=Rn.get(P))==null?void 0:Z();if(ce){const be=qe(P),ge=Ln.get(be);return ge&&ge!==ce&&ge.removeAttribute("id"),ce.setAttribute("id",be),Ln.set(be,ce),be}return""}async function Cn(P,Z){var ce,be,ge;if(!P)throw new Error("Missing state id");let Be=P.split("/");const se=Be.length%2===0&&dY(Z);let ve=se||Fe;if(!se)if((ce=ve.states)!=null&&ce.root){if(ve=await ve.states.root(Be[0]),!ve)return;Be=Be.slice(1)}else return;for(let Ae=0;Ae<Be.length;Ae+=2){const Re=Be[Ae],ut=Be[Ae+1];if((be=ve.states)!=null&&be[Re]){if(ve=await((ge=ve.states)==null?void 0:ge[Re](ut)),!ve)return}else return}}function Ut(P,Z,{item:ce,step:be,overflow:ge}){var Be,se,ve,Ae,Re;if(!Z)throw new Error(`Missing id for "${P}" action`);const ut=Number(ce);if(P==="set_current_item"&&Number.isNaN(ut))throw new Error(`Incorrect item for "${P}" action`);let Ge=Number(be);if(!be&&(P==="set_previous_item"||P==="set_next_item")&&(Ge=1),!be&&(P==="scroll_backward"||P==="scroll_forward"||P==="scroll_to_position")||Number.isNaN(Ge))throw new Error(`Incorrect step value for "${P}" action`);if(ge&&ge!=="clamp"&&ge!=="ring")throw new Error(`Incorrect overflow value for "${P}" action`);ge=ge||"clamp";const Tt=xt(Z);if(Tt)switch(P){case"set_current_item":Tt.setCurrentItem(ut);return;case"set_previous_item":Tt.setPreviousItem(Ge,ge);return;case"set_next_item":Tt.setNextItem(Ge,ge);return;case"scroll_to_start":(Be=Tt.scrollToStart)==null||Be.call(Tt);return;case"scroll_to_end":(se=Tt.scrollToEnd)==null||se.call(Tt);return;case"scroll_backward":(ve=Tt.scrollBackward)==null||ve.call(Tt,Ge,ge);return;case"scroll_forward":(Ae=Tt.scrollForward)==null||Ae.call(Tt,Ge,ge);return;case"scroll_to_position":(Re=Tt.scrollToPosition)==null||Re.call(Tt,Ge);return}}function gn(P,Z,ce){const be=(ce==null?void 0:ce.logError)||$e;if(P){const ge=xt(P);ge?Z==="start"?ge.start():Z==="pause"?ge.pause():be(tt(new Error("Unknown video action"),{additional:{id:P,action:Z}})):be(tt(new Error("Video component is not found"),{additional:{id:P,action:Z}}))}else be(tt(new Error("Missing id in video action"),{additional:{action:Z}}))}function Lt(P,Z,ce){const be=(ce==null?void 0:ce.logError)||$e;if(P){let ge;typeof T=="function"?ge=T(P):ge=T,fetch(P,ge).then((Be=>{if(!Be.ok)throw new Error("Response is not ok");return Be.json()})).then((Be=>{var se,ve,Ae;if(!Be){be(tt(new Error("Incorrect patch"),{additional:{url:P}}));return}if(Be.templates)for(const Re in Be.templates)r.hasOwnProperty(Re)||(r[Re]=Be.templates[Re]);if(Array.isArray((se=Be.patch)==null?void 0:se.changes)){if(Be.patch.mode==="transactional"){const Re=Be.patch.changes.find((ut=>{const Ge=qt.get(ut.id);if(!Ge)return!0;const Tt=Array.isArray(ut.items)?ut.items.length:0;return!!(Ge.isSingleMode&&Tt!==1)}));if(Re){be(tt(new Error("Skipping transactional, child is not found or broken"),{additional:{url:P,id:Re.id}})),Kn((ve=Be.patch)==null?void 0:ve.on_failed_actions),Kn(Z==null?void 0:Z.on_fail_actions);return}}Be.patch.changes.forEach((Re=>{const ut=qt.get(Re.id);ut&&ut.replaceWith(Re.id,Re.items)})),Kn((Ae=Be.patch)==null?void 0:Ae.on_applied_actions),Kn(Z==null?void 0:Z.on_success_actions)}})).catch((Be=>{be(tt(new Error("Failed to download the patch"),{additional:{url:P,originalError:Be}})),Kn(Z==null?void 0:Z.on_fail_actions)}))}else be(tt(new Error("Missing url in download action"),{additional:{url:P}}))}function wn(P,Z,ce){var be;const ge=(ce==null?void 0:ce.logError)||$e;if(!P){ge(tt(new Error("Missing id in show_tooltip action")));return}const Be=Ot.get(P);if(!Be){ge(tt(new Error("Tooltip with the provided id is not found"),{additional:{id:P}}));return}if(Z!=="true"&&Z!==!0&&ye.has(P))return;ye.add(P);const se={internalId:++fe,ownerNode:Be.onwerNode,desc:Be.tooltip,timeoutId:0,componentContext:ce};n(3,Qe=[...Qe,se]);const ve=(be=Be.tooltip.duration)!=null?be:5e3;ve&&(se.timeoutId=window.setTimeout((()=>{se.timeoutId=0,n(3,Qe=Qe.filter((Ae=>Ae.internalId!==se.internalId)))}),ve))}function vn(P,Z){const ce=(Z==null?void 0:Z.logError)||$e;if(!P){ce(tt(new Error("Missing id in hide_tooltip action")));return}n(3,Qe=Qe.filter((be=>{const ge=be.desc.id!==P;return!ge&&be.timeoutId&&(clearTimeout(be.timeoutId),be.timeoutId=null),ge})))}function Jt(P,Z,ce,be,ge){const Be=(P==null?void 0:P.logError)||$e;if(!M){Be(tt(new Error("Store is not configured")));return}let se=ce;if(!Z||!se||!be||!ge){Be(tt(new Error("Missing required params for set_stored_value")));return}if(!PY.has(be)){Be(tt(new Error("Incorrect stored type")));return}if(be==="boolean"&&(se=se==="true"||se==="1"),M.set)M.set(Z,be,se,Number(ge));else if(M.setValue){if(!MY.has(be)){Be(tt(new Error("Incorrect stored type")));return}if(typeof se!="string"&&typeof se!="number"&&typeof se!="boolean"){Be(tt(new Error("Incorrect stored value")));return}(be==="integer"||be==="number")&&(se=Number(se)),M.setValue(Z,be,se,Number(ge))}}function Kt(P){Un(pe($e,P))}async function Un(P,Z){var ce,be;const ge=P.scope_id,Be=(Z==null?void 0:Z.logError)||$e;if(ge){const Ae=nn.get(ge);if(Ae&&(Ae==null?void 0:Ae.size)>1)Be(tt(new Error(`Ambiguous scope id. There are ${Ae.size} divs with id '${ge}'`),{additional:{count:Ae.size,scopeId:ge}}));else if((Ae==null?void 0:Ae.size)===1){const Re=Ae.values().next().value;Re&&(Z=Re)}}const se=P.url?String(P.url):"",ve=P.typed;if(Bo(P)){if(se)try{const Ae=se.replace(/div-action:\/\//,""),Re=/([^?]+)\?(.+)/.exec(Ae);if(!Re)return;const ut=new URLSearchParams(Re[2]);switch(Re[1]){case"set_state":await Cn(ut.get("state_id"),Z);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":Ut(Re[1],ut.get("id"),{item:ut.get("item"),step:ut.get("step"),overflow:ut.get("overflow")});break;case"set_variable":const Ge=ut.get("name"),Tt=ut.get("value");if(Ge&&Tt!==null){const On=(Z==null?void 0:Z.getVariable(Ge))||Te.get(Ge);if(On){const Qt=On.getType();Qt==="dict"||Qt==="array"?Be(tt(new Error(`Setting ${Qt} variables is not supported`),{additional:{name:Ge}})):On.set(Tt)}else Be(tt(new Error("Cannot find variable"),{additional:{name:Ge}}))}else Be(tt(new Error("Incorrect set_variable_action"),{additional:{url:Ae}}));break;case"timer":const fn=ut.get("action"),Ht=ut.get("id");J?J.execTimerAction(Ht,fn):Be(tt(new Error("Incorrect timer action"),{additional:{id:Ht,action:fn}}));break;case"video":gn(ut.get("id"),ut.get("action"),Z);break;case"download":Lt(ut.get("url"),P.download_callbacks,Z);break;case"show_tooltip":wn(ut.get("id"),ut.get("multiple"),Z);break;case"hide_tooltip":vn(ut.get("id"),Z);break;case"set_stored_value":{Jt(Z,ut.get("name"),ut.get("value"),ut.get("type"),ut.get("lifetime"));break}default:Be(tt(new Error("Unknown type of action"),{additional:{url:se}}))}}catch(Ae){Be(tt(Ae,{additional:{url:se}}))}else if(ve)switch(ve.type){case"set_variable":{const{variable_name:Ae,value:Re}=ve;if(Ae&&Re){const ut=(Z==null?void 0:Z.getVariable(Ae))||Te.get(Ae);ut?ut.getType()===Re.type?ut.setValue(Re.value):Be(tt(new Error("Trying to set value with invalid type"),{additional:{name:Ae,type:Re.type}})):Be(tt(new Error("Cannot find variable"),{additional:{name:Ae}}))}else Be(tt(new Error("Incorrect set_variable action"),{additional:{name:Ae}}));break}case"array_insert_value":iY(Z,Te,Be,ve);break;case"array_remove_value":oY(Z,Te,Be,ve);break;case"array_set_value":rY(Z,Te,Be,ve);break;case"copy_to_clipboard":lY(Be,ve);break;case"focus_element":{const Ae=ve.element_id&&St.get(ve.element_id);Ae?Ae.focus():Be(tt(new Error("Incorrect focus_element action"),{additional:{elementId:ve.element_id}}));break}case"clear_focus":{try{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}catch{}break}case"dict_set_value":{sY(Z,Te,Be,ve);break}case"animator_start":{const Ae=ve.animator_id&&(Z==null?void 0:Z.getAnimator(ve.animator_id));if(!Ae){Be(tt(new Error("Missing animator"),{additional:{animator_id:ve.animator_id}}));return}const{duration:Re,start_delay:ut,interpolator:Ge,direction:Tt,repeat_count:fn,start_value:Ht,end_value:On}=ve,Qt=Z?Z.getJsonWithVars(Ae):pe($e,Ae),Mn={...Qt,end_actions:Ae.end_actions,cancel_actions:Ae.cancel_actions,duration:Re!==void 0?Re:Qt.duration,start_delay:ut!==void 0?ut:Qt.start_delay,interpolator:Ge!==void 0?Ge:Qt.interpolator,direction:Tt!==void 0?Tt:Qt.direction,repeat_count:fn!==void 0?fn:Qt.repeat_count,start_value_typed:Ht,end_value_typed:On},_n=Ae.variable_name&&((Z==null?void 0:Z.getVariable(Ae.variable_name))||Te.get(Ae.variable_name));if(!_n)return;const Pt=ue.get(Ae.id);Pt&&Pt.stop();const jn=cY(Mn,_n,(()=>{ue.delete(Ae.id)}),((Pn,In)=>{const Jn=(Z==null?void 0:Z.execAnyActions)||Kn,ri=Z?Z.getJsonWithVars(Pn):pe($e,Pn);return Jn(ri,In)}));jn&&ue.set(Ae.id,jn);break}case"animator_stop":{const Ae=ue.get(ve.animator_id);Ae&&(Ae.stop(),ue.delete(ve.animator_id));break}case"show_tooltip":{wn(ve.id,ve.multiple,Z);break}case"hide_tooltip":{vn(ve.id,Z);break}case"timer":{J?J.execTimerAction(ve.id,ve.action):Be(tt(new Error("Incorrect timer action"),{additional:{id:ve.id,action:ve.action}}));break}case"download":{Lt(ve.url,ve,Z);break}case"video":{gn(ve.id,ve.action,Z);break}case"set_stored_value":{Jt(Z,ve.name,(ce=ve.value)==null?void 0:ce.value,(be=ve.value)==null?void 0:be.type,ve.lifetime);break}case"set_state":{await Cn(ve.state_id,Z);break}default:Be(tt(new Error("Unknown type of action"),{additional:{type:ve.type}}))}}}async function Kn(P,Z={}){if(!P||!Array.isArray(P))return;const ce=P.filter(Bo);for(let be=0;be<ce.length;++be){let ge=ce[be];const Be=ge.url,se=ge.typed;if(Be){const ve=lu(Be);if(ve)if(au(ve,G)){if(Z.processUrls)if(ge.target==="_blank"){const Ae=window.open("","_blank");Ae&&(Ae.opener=null,Ae.location=Be)}else location.href=Be}else ve==="div-action"?(await Un(ge,Z.componentContext),await Fo()):ge.log_id&&(fi(ge),await Fo())}else se?await Un(ge,Z.componentContext):Z.node&&Array.isArray(ge.menu_items)&&ge.menu_items.length&&n(4,Ee={items:ge.menu_items,node:Z.node,componentContext:Z.componentContext})}ce.forEach((be=>{be.log_id&&et(Z.logType||"click",be)}))}function fi(P){w==null||w(P)}function Je(P,Z){const ce=(P==null?void 0:P.logError)||$e;if(!Array.isArray(Z)||!Z.length)return;const be=[];return Z.forEach((ge=>{let Be=!1;if(typeof ge.condition!="string"){ce(tt(new Error("variable_trigger has a condition that is not a string"),{additional:{condition:ge.condition}}));return}if(!Array.isArray(ge.actions)){ce(tt(new Error("variable_trigger has no actions"),{additional:{condition:ge.condition}}));return}const se=ge.mode||"on_condition";if(se!=="on_variable"&&se!=="on_condition"){ce(tt(new Error("variable_trigger has an unsupported mode"),{additional:{mode:se}}));return}try{const ve=ba(ge.condition,{startRule:"JsonStringContents"}),Ae=P1(ve);if(!Ae.length){ce(tt(new Error("variable_trigger must have variables in the condition"),{additional:{condition:ge.condition}}));return}const Re=Ae.map((Ge=>(P==null?void 0:P.getVariable(Ge))||Te.get(Ge)||rn(Ge))),ut=Ms(Re,(()=>{const Ge=P?P.evalExpression(M,ve,{weekStartDay:D}):ia(Te,void 0,M,ve,{weekStartDay:D});return Ge.warnings.forEach($e),Ge.result})).subscribe((async Ge=>{if(Ge.type==="error"){ce(tt(new Error("variable_trigger condition execution error"),{additional:{message:Ge.value}}));return}if(Ge.value&&(se==="on_variable"||se==="on_condition"&&Be===!1)){Be=!!Ge.value;const Tt=ge.actions.map((fn=>P?P.getJsonWithVars(fn):pe($e,fn)));P?await P.execAnyActions(Tt,{logType:"trigger"}):await Kn(Tt,{logType:"trigger"})}else Be=!!Ge.value}));be.push(ut)}catch{ce(tt(new Error("Unable to parse variable_trigger"),{additional:{condition:ge.condition}}))}})),()=>{be.forEach((ge=>{ge()}))}}function ht(P){return he[P]}function ct(P,Z){he[P]=Z}const gt=new Map,qt=new Map,St=new Map,Ot=new Map,nn=new Map;function ei(P,Z){if(gt.has(P)){$e(tt(new Error("Duplicate instance id"),{additional:{id:P}}));return}gt.set(P,Z)}function Ft(P){gt.delete(P)}function xt(P){if(!gt.has(P)){$e(tt(new Error("Missing instance with id"),{additional:{id:P}}));return}return gt.get(P)}function dt(P,Z){qt.set(P,Z)}function We(P){qt.delete(P)}function bi(P,Z){St.set(P,Z)}function hi(P){St.delete(P)}function Bn(P,Z){const ce=Z.id;ce&&(Ot.has(ce)&&$e(tt(new Error("Duplicate tooltip id"),{additional:{id:ce}})),Ot.set(ce,{onwerNode:P,tooltip:Z}))}function eo(P){const Z=P.id;Z&&(Ot.delete(Z),Qe.some((ce=>ce.desc.id===Z))&&n(3,Qe=Qe.filter((ce=>ce.desc.id!==Z))))}const Ct=new Map;function Wn(P){Ct.has(P)||Ct.set(P,ZK[P]())}function gi(P){return Ct.has(P)||Wn(P),Ct.get(P)}function rn(P){const Z=ot.get(P)||Fr(void 0);return ot.has(P)||ot.set(P,Z),Z}function Fn(){zn&&zn[B].forEach((P=>{const Z=Te.get(P.name);Z&&Z.setValue(P.color)}))}function Bt(){return G}function hn(P,Z){const ce=v.get(P);if(ce)return new ce(Z||{})}function un(P){return{variables:ss(Te,P.variables),processExpressions(Z){return pe($e,Z)},execAction:Kt,logError:$e,getComponentProperty(Z){return P.getJsonWithVars(P.json[Z])},direction:O}}function Tn(P){const Z={id:"",json:{},path:[],templateContext:{},logError(ce){ce.additional=ce.additional||{},ce.additional.path=Z.path.join("/");{ce.additional.json=Z.json,ce.additional.origJson=Z.origJson;const be=[];let ge=Z;for(;ge.parent;)be.push(ge),ge=ge.parent;ce.additional.fullpath=be}$e(ce)},execAnyActions(ce,be={}){return Kn(ce,{componentContext:Z,processUrls:be.processUrls,node:be.node,logType:be.logType})},getDerivedFromVars(ce,be,ge=!1){return ne(Z.logError,ce,ss(Z.variables,be),ge,Z.customFunctions)},getJsonWithVars(ce,be,ge=!1){return pe(Z.logError,ce,ss(Z.variables,be),ge,Z.customFunctions)},evalExpression(ce,be,ge){return ia(ss(Te,Z.variables),Z.customFunctions,ce,be,ge)},produceChildContext(ce,be={}){const ge=Tn(Z);let Be=ce,se=Z.templateContext;const{templateContext:ve,json:Ae}=Ve(Be,se);if(ge.json=Ae,ge.templateContext=ve,ge.origJson=ce,ge.id=be.id||Ae.id||"",ge.id){let Ge=nn.get(ge.id);Ge||(Ge=new Set,nn.set(ge.id,Ge)),Ge.add(ge)}be.path!==void 0&&ge.path.push(String(be.path)),ce.type&&!be.isRootState&&ge.path.push(ce.type),be.isTooltipRoot&&(ge.isTooltipRoot=!0);let Re;Array.isArray(Ae.variables)&&(Re=new Map,Ae.variables.forEach((Ge=>{const Tt=ft(Ge);Tt&&Re&&Re.set(Tt.getName(),Tt)}))),ge.variables=ss(Z.variables,ss(Re,be.variables));let ut;return Array.isArray(Ae.functions)&&(ut=new Map,Ae.functions.forEach((Ge=>{if(ut){try{UK(Ge)}catch(Ht){Z.logError(tt(Ht));return}const Tt=Ge,fn=ut.get(Tt.name)||[];fn.push(JK(Tt)),ut.set(Tt.name,fn)}}))),ge.customFunctions=WK(Z.customFunctions,ut),Array.isArray(Ae.animators)&&(Z.animators=Ae.animators.reduce(((Ge,Tt)=>(Tt.id&&(Ge[Tt.id]=Tt),Ge)),{})),be.fake&&(ge.fakeElement=!0),be.isRootState&&(ge.isRootState=!0),ge},getVariable(ce,be){var ge;const Be=((ge=Z.variables)==null?void 0:ge.get(ce))||Te.get(ce);if(Be){const se=Be.getType();if(be&&se!==be){Z.logError(tt(new Error(`Variable should have type "${be}"`),{additional:{name:ce,foundType:se}}));return}}return Be},getAnimator(ce){var be,ge;return((be=Z.animators)==null?void 0:be[ce])||((ge=Z.parent)==null?void 0:ge.getAnimator(ce))||void 0},registerState(ce,be){const ge=Sm(Z.parent);ge&&(ge.states=ge.states||{},ge.states[ce]=be)},unregisterState(ce){const be=Sm(Z.parent);be!=null&&be.states&&delete be.states[ce]},destroy(){const ce=nn.get(Z.id);ce&&(ce.delete(Z),ce.size||nn.delete(Z.id))}};return P?(Z.parent=P,Z.path=P.path.slice(),P.fakeElement&&(Z.fakeElement=!0)):(Z.json={type:"root"},Z.isRootState=!0),Z}function Yn(P){R?Ye.push(P):clearTimeout(P)}Ss(vo,{logStat:et,hasTemplate:le,genId:jt,genClass:Vt,execCustomAction:fi,processVariableTriggers:Je,isRunning:ht,setRunning:ct,registerInstance:ei,unregisterInstance:Ft,registerParentOf:dt,unregisterParentOf:We,registerTooltip:Bn,unregisterTooltip:eo,onTooltipClose:re,tooltipRoot:j,registerFocusable:bi,unregisterFocusable:hi,addSvgFilter:At,removeSvgFilter:pn,registerId:st,unregisterId:li,getComponentId:bt,preparePrototypeVariables:kt,getStore:gi,getCustomization:vt,getBuiltinProtocols:Bt,getExtension:hn,getExtensionContext:un,registerTimeout:Yn,typefaceProvider:E,isDesktop:U,isPointerFocus:Zu,customComponents:A,direction:q,componentDevtool:Xe}),Ss(Sc,{hasAction(){return!1}}),Ss(Nu,{runVisibilityTransition(P,Z,ce,be,ge){return Promise.resolve()},registerChildWithTransitionIn(P,Z,ce,be){return Promise.resolve()},registerChildWithTransitionOut(P,Z,ce,be){return Promise.resolve()},registerChildWithTransitionChange(P,Z,ce,be){return Promise.resolve()},hasTransitionChange(P){return!1},registerChild(P){},unregisterChild(P){}}),Ss(Bu,{isEnabled:Ts(!0)});function Se(P,Z){const ce=Te.get(P);return(ce==null?void 0:ce.getType())===Z}function bn(P,Z){const ce=Te.get(P);ce?ce.setValue(Z):$e(tt(new Error("Cannot find variable"),{additional:{name:P}}))}function ft(P){if(!(!P.type||!P.name||!(P.type in ou))){P.type==="integer"&&typeof P.value=="number"&&(P.value>Number.MAX_SAFE_INTEGER||P.value<Number.MIN_SAFE_INTEGER)&&$e(tt(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:P.name,value:P.value}}));try{return Ho(P.name,P.type,P.value)}catch(Z){$e(tt(Z,{additional:{name:P.name}}))}}}function z(P){const Z=ft(P);Z&&(at.set(P.name,Z),Te.set(P.name,Z))}const Mt=(i=d==null?void 0:d.card)==null?void 0:i.variables;Array.isArray(Mt)&&Mt.forEach((P=>{if(P&&P.name){if(at.has(P.name)){$e(tt(new Error("Duplicate variable"),{additional:{name:P.name}}));return}z(P)}}));const zn=d.palette;zn&&zn[B].forEach((P=>{if(at.has(P.name)){$e(tt(new Error("Duplicate variable"),{additional:{name:P.name}}));return}try{const Z=Ho(P.name,"color",P.color);at.set(P.name,Z),Te.set(P.name,Z)}catch(Z){$e(tt(Z,{additional:{name:P.name}}))}}));for(const[P,Z]of Ke)Te.has(P)||Te.set(P,Z);W.subscribe((P=>{if(P&&!Te.has(P)){const Z=Ke.get(P);Te.set(P,Z);const ce=ot.get(P);if(ce){let be=0;Z.subscribe((()=>{ce.set(++be)}))}}}));const Ni=()=>{var P;Je(void 0,(P=d==null?void 0:d.card)==null?void 0:P.variable_triggers)},mi=(o=d==null?void 0:d.card)==null?void 0:o.timers;if(mi&&typeof document<"u"){const P=J=new nY({logError:$e,applyVars:Z=>pe($e,Z),hasVariableWithType:Se,setVariableValue:bn,execAnyActions:Kn});mi.forEach((Z=>P.createTimer(Z)))}const Fe=Tn();let Ii;function re(P){n(3,Qe=Qe.filter((Z=>Z.internalId!==P)))}Sr((()=>{Va++,Va===1&&(window.addEventListener("keydown",Nm),window.addEventListener("pointerdown",qm)),Fo().then((()=>{R&&Ni()}))})),jo((()=>{R=!1,Va--,Va||(window.removeEventListener("keydown",Nm),window.removeEventListener("pointerdown",qm));for(const[P,Z]of ue)Z.stop();J&&J.destroy(),Qe.forEach((P=>{P.timeoutId&&(clearTimeout(P.timeoutId),P.timeoutId=null)})),Ye.forEach((P=>{clearTimeout(P)})),_||xK(ze)}));const Ce=()=>n(4,Ee=void 0);return t.$$set=P=>{"id"in P&&n(13,c=P.id),"json"in P&&n(11,d=P.json),"platform"in P&&n(14,u=P.platform),"theme"in P&&n(12,p=P.theme),"globalVariablesController"in P&&n(15,_=P.globalVariablesController),"mix"in P&&n(0,f=P.mix),"customization"in P&&n(16,m=P.customization),"builtinProtocols"in P&&n(17,h=P.builtinProtocols),"extensions"in P&&n(18,v=P.extensions),"onError"in P&&n(19,y=P.onError),"onStat"in P&&n(20,b=P.onStat),"onCustomAction"in P&&n(21,w=P.onCustomAction),"onComponent"in P&&n(22,k=P.onComponent),"typefaceProvider"in P&&n(23,E=P.typefaceProvider),"fetchInit"in P&&n(24,T=P.fetchInit),"tooltipRoot"in P&&n(25,j=P.tooltipRoot),"customComponents"in P&&n(26,A=P.customComponents),"direction"in P&&n(27,O=P.direction),"store"in P&&n(28,M=P.store),"weekStartDay"in P&&n(29,D=P.weekStartDay)},t.$$.update=()=>{var P,Z;if(t.$$.dirty[0]&4096|t.$$.dirty[1]&32&&(p==="light"||p==="dark"?n(35,B=p):p==="system"?typeof matchMedia<"u"?(C||(n(36,C=matchMedia("(prefers-color-scheme: dark)")),C.addListener(V)),n(35,B=C.matches?"dark":"light")):n(35,B="light"):$e(tt(new Error("Unsupported theme")))),t.$$.dirty[1]&16&&B&&Fn(),t.$$.dirty[0]&2048){n(1,Q=!1);const ce=KK(d);ce&&(n(1,Q=!0),$e(ce))}if(t.$$.dirty[0]&2048&&(r=d.templates||{}),t.$$.dirty[0]&2048&&(P=d==null?void 0:d.card)!=null&&P.variables&&Array.isArray(d.card.variables)&&d.card.variables!==Mt&&d.card.variables.forEach((ce=>{ce&&ce.name&&!at.has(ce.name)&&z(ce)})),t.$$.dirty[0]&2048&&n(37,s=(Z=d==null?void 0:d.card)==null?void 0:Z.states),t.$$.dirty[0]&6|t.$$.dirty[1]&64&&s&&!Q&&!oe){const ce={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:s.map((be=>({state_id:be.state_id.toString(),div:be.div})))};n(6,Ii=Fe.produceChildContext(ce,{isRootState:!0}))}},[f,Q,oe,Qe,Ee,ln,Ii,l,a,U,q,d,p,c,u,_,m,h,v,y,b,w,k,E,T,j,A,O,M,D,Y,x,de,_e,Kt,B,C,s,Ce]}class VY extends Qi{constructor(e){super(),xi(this,e,DY,OY,Pi,{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 LY=8;class FY{constructor(e){Xi(this,"widthVariableName"),Xi(this,"heightVariableName"),Xi(this,"resizeObserver"),Xi(this,"context"),Xi(this,"node"),Xi(this,"sizeHistory",{}),this.widthVariableName=e.width_variable_name,this.heightVariableName=e.height_variable_name}setVariable(e,n){if(!this.context)return!1;if(e){const i=this.context.variables.get(e);if(i&&i.getType()==="integer"){if(n=Math.round(n),this.sizeHistory[e]||(this.sizeHistory[e]=new Set),!this.sizeHistory[e].has(n))return i.setValue(n),this.sizeHistory[e].add(n),!0}else{const o=new Error("Missing variable");o.level="error",o.additional={variableName:e},this.context.logError(o)}}return!1}recalcProps(){if(!this.node||!this.context)return!1;const e=this.node.getBoundingClientRect(),n=this.setVariable(this.widthVariableName,e.width),i=this.setVariable(this.heightVariableName,e.height);return n||i}mountView(e,n){var i;this.node=e,this.context=n,!this.resizeObserver&&typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver((async()=>{let o=0;for(;this.recalcProps();){if(++o>LY){const r=new Error("Recursive layout in size_provider");r.level="warn",r.additional={widthVariableName:this.widthVariableName,heightVariableName:this.heightVariableName},n.logError(r);break}await Fo()}this.sizeHistory={}}))),(i=this.resizeObserver)==null||i.observe(e),this.recalcProps()}unmountView(e,n){var i;(i=this.resizeObserver)==null||i.disconnect(),this.resizeObserver=void 0}}function NY(t){const{target:e,hydrate:n,...i}=t,o=new VY({target:e,props:i,hydrate:n});return{$destroy(){o.$destroy()},execAction(r){o.execAction(r)},setTheme(r){o.setTheme(r)},setData(r){o.setData(r)},getDebugVariables(){return o.getDebugVariables()},getDebugAllVariables(){return o.getDebugAllVariables()}}}function qY(t,e){return RY(t,e).result}function RY(t,e){let n;try{n=ba(t,{startRule:(e==null?void 0:e.type)==="json"?"JsonStringContents":"start"})}catch{return{result:{type:"error",value:"Unable to parse expression"},warnings:[]}}return ia((e==null?void 0:e.variables)||new Map,void 0,void 0,n)}function BY(t,e){return ba(t,{startRule:(e==null?void 0:e.type)==="json"?"JsonStringContents":"start"})}const D2={type:"string",format:"color"},V2={type:"string",format:"uri"},L2={type:"integer",constraint:"number > 0"},F2={type:"integer",constraint:"number >= 0"},N2={type:"number",constraint:"number >= 0"},q2={type:"number",constraint:"number > 0"},R2={oneOf:[{type:"boolean"},{type:"integer",enum:[0,1]}]},B2={type:"string",supports_expressions:!1},HY={color:D2,url:V2,positive_integer:L2,non_negative_integer:F2,non_negative_number:N2,positive_number:q2,boolean_int:R2,id:B2},UY=Object.freeze(Object.defineProperty({__proto__:null,boolean_int:R2,color:D2,default:HY,id:B2,non_negative_integer:F2,non_negative_number:N2,positive_integer:L2,positive_number:q2,url:V2},Symbol.toStringTag,{value:"Module"})),H2="object",U2="translations.json#/div_absolute_edge_insets",J2={left:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_edge_insets_left"},right:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_edge_insets_right"},top:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_edge_insets_top"},bottom:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_edge_insets_bottom"}},W2=["android","ios","web"],JY={type:H2,$description:U2,properties:J2,platforms:W2},WY=Object.freeze(Object.defineProperty({__proto__:null,$description:U2,default:JY,platforms:W2,properties:J2,type:H2},Symbol.toStringTag,{value:"Module"})),K2="object",Y2="translations.json#/div_accessibility",G2={description:{type:"string",$description:"translations.json#/div_accessibility_description"},type:{type:"string",enum:["none","button","image","text","edit_text","header","tab_bar","list","select","checkbox","radio","auto"],default_value:"auto",supports_expressions:!1,$description:"translations.json#/div_accessibility_type",platforms:["android","ios","web"]},state_description:{type:"string",$description:"translations.json#/div_accessibility_state_description",platforms:["android","ios"]},hint:{type:"string",$description:"translations.json#/div_accessibility_hint",platforms:["android","ios"]},is_checked:{$ref:"common.json#/boolean_int",$description:"translations.json#/div_accessibility_is_checked",platforms:["web"]},mode:{type:"string",enum:["default","merge","exclude"],default_value:"default",$description:"translations.json#/div_accessibility_mode",platforms:["android","ios"]},mute_after_action:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_accessibility_mute_after_action",platforms:["ios"]}},X2=["android","ios","web"],KY={type:K2,$description:Y2,properties:G2,platforms:X2},YY=Object.freeze(Object.defineProperty({__proto__:null,$description:Y2,default:KY,platforms:X2,properties:G2,type:K2},Symbol.toStringTag,{value:"Module"})),Z2="object",x2="translations.json#/div_action_animator_start",Q2={type:{type:"string",enum:["animator_start"]},animator_id:{$ref:"common.json#/id",$description:"translations.json#/div_action_animator_start_animator_id"},duration:{$ref:"common.json#/non_negative_integer",long_type:!0,$description:"translations.json#/div_animator_base_duration"},start_delay:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_animator_base_start_delay"},interpolator:{$ref:"div-animation-interpolator.json",$description:"translations.json#/div_animator_base_interpolator"},direction:{$ref:"div-animation-direction.json",$description:"translations.json#/div_animator_base_direction"},repeat_count:{$ref:"div-count.json",$description:"translations.json#/div_animator_base_repeat_count"},start_value:{$ref:"div-typed-value.json",$description:"translations.json#/div_action_animator_start_start_value"},end_value:{$ref:"div-typed-value.json",$description:"translations.json#/div_action_animator_start_end_value"}},eb=["ios","android","web"],tb=["type","animator_id"],GY={type:Z2,$description:x2,properties:Q2,platforms:eb,required:tb},XY=Object.freeze(Object.defineProperty({__proto__:null,$description:x2,default:GY,platforms:eb,properties:Q2,required:tb,type:Z2},Symbol.toStringTag,{value:"Module"})),nb="object",ib="translations.json#/div_action_animator_stop",ob={type:{type:"string",enum:["animator_stop"]},animator_id:{$ref:"common.json#/id",$description:"translations.json#/div_action_animator_stop_animator_id"}},rb=["android","ios","web"],sb=["type","animator_id"],ZY={type:nb,$description:ib,properties:ob,platforms:rb,required:sb},xY=Object.freeze(Object.defineProperty({__proto__:null,$description:ib,default:ZY,platforms:rb,properties:ob,required:sb,type:nb},Symbol.toStringTag,{value:"Module"})),lb="object",ab="translations.json#/div_action_array_insert_value",cb={type:{type:"string",enum:["array_insert_value"]},variable_name:{type:"string"},index:{type:"integer"},value:{$ref:"div-typed-value.json"}},db=["android","ios","web"],ub=["type","variable_name","value"],QY={type:lb,$description:ab,properties:cb,platforms:db,required:ub},eG=Object.freeze(Object.defineProperty({__proto__:null,$description:ab,default:QY,platforms:db,properties:cb,required:ub,type:lb},Symbol.toStringTag,{value:"Module"})),pb="object",_b="translations.json#/div_action_array_remove_value",fb={type:{type:"string",enum:["array_remove_value"]},variable_name:{type:"string"},index:{type:"integer"}},mb=["android","ios","web"],gb=["type","variable_name","index"],tG={type:pb,$description:_b,properties:fb,platforms:mb,required:gb},nG=Object.freeze(Object.defineProperty({__proto__:null,$description:_b,default:tG,platforms:mb,properties:fb,required:gb,type:pb},Symbol.toStringTag,{value:"Module"})),hb="object",vb="translations.json#/div_action_array_set_value",bb={type:{type:"string",enum:["array_set_value"]},variable_name:{type:"string"},index:{type:"integer"},value:{$ref:"div-typed-value.json"}},yb=["android","ios","web"],wb=["type","variable_name","index","value"],iG={type:hb,$description:vb,properties:bb,platforms:yb,required:wb},oG=Object.freeze(Object.defineProperty({__proto__:null,$description:vb,default:iG,platforms:yb,properties:bb,required:wb,type:hb},Symbol.toStringTag,{value:"Module"})),$b={log_id:{type:"string",$description:"translations.json#/div_action_base_log_id"},scope_id:{$ref:"common.json#/id",$description:"translations.json#/div_action_base_scope_id",platforms:["android","ios","web"]},url:{$ref:"common.json#/url",$description:"translations.json#/div_action_base_url"},referer:{$ref:"common.json#/url",$description:"translations.json#/div_action_base_referer",platforms:["android","ios"]},payload:{type:"object",additionalProperties:!0,$description:"translations.json#/div_action_base_payload"},download_callbacks:{$ref:"div-download-callbacks.json",$description:"translations.json#/div_action_base_download_callbacks"},typed:{$ref:"div-action-typed.json"},is_enabled:{$ref:"common.json#/boolean_int",$description:"translations.json#/div_action_base_is_enabled",default_value:"true"}},rG={properties:$b},sG=Object.freeze(Object.defineProperty({__proto__:null,default:rG,properties:$b},Symbol.toStringTag,{value:"Module"})),kb="object",jb="translations.json#/div_action_clear_focus",Sb={type:{type:"string",enum:["clear_focus"]}},Cb=["type"],lG={type:kb,$description:jb,properties:Sb,required:Cb},aG=Object.freeze(Object.defineProperty({__proto__:null,$description:jb,default:lG,properties:Sb,required:Cb,type:kb},Symbol.toStringTag,{value:"Module"})),Tb={content_text:{type:"object",properties:{type:{type:"string",enum:["text"]},value:{type:"string"}},required:["type","value"]},content_url:{type:"object",properties:{type:{type:"string",enum:["url"]},value:{$ref:"common.json#/url"}},required:["type","value"]}},zb=[{$ref:"#/definitions/content_text"},{$ref:"#/definitions/content_url"}],Eb=["android","ios","web"],cG={definitions:Tb,anyOf:zb,platforms:Eb},dG=Object.freeze(Object.defineProperty({__proto__:null,anyOf:zb,default:cG,definitions:Tb,platforms:Eb},Symbol.toStringTag,{value:"Module"})),Ab="object",Ob="translations.json#/div_action_copy_to_clipboard",Mb={type:{type:"string",enum:["copy_to_clipboard"]},content:{$ref:"div-action-copy-to-clipboard-content.json"}},Pb=["android","ios","web"],Ib=["type","content"],uG={type:Ab,$description:Ob,properties:Mb,platforms:Pb,required:Ib},pG=Object.freeze(Object.defineProperty({__proto__:null,$description:Ob,default:uG,platforms:Pb,properties:Mb,required:Ib,type:Ab},Symbol.toStringTag,{value:"Module"})),Db="object",Vb="translations.json#/div_action_dict_set_value",Lb={type:{type:"string",enum:["dict_set_value"]},variable_name:{type:"string"},key:{type:"string"},value:{$ref:"div-typed-value.json"}},Fb=["android","ios","web"],Nb=["type","variable_name","key"],_G={type:Db,$description:Vb,properties:Lb,platforms:Fb,required:Nb},fG=Object.freeze(Object.defineProperty({__proto__:null,$description:Vb,default:_G,platforms:Fb,properties:Lb,required:Nb,type:Db},Symbol.toStringTag,{value:"Module"})),qb="object",Rb="translations.json#/div_action_download",Bb={type:{type:"string",enum:["download"]},url:{$ref:"common.json#/url",$description:"translations.json#/div_action_download_url"},on_fail_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_download_callbacks_on_fail_actions"},on_success_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_download_callbacks_on_success_actions"}},Hb=["android","ios","web"],Ub=["type","url"],mG={type:qb,$description:Rb,properties:Bb,platforms:Hb,required:Ub},gG=Object.freeze(Object.defineProperty({__proto__:null,$description:Rb,default:mG,platforms:Hb,properties:Bb,required:Ub,type:qb},Symbol.toStringTag,{value:"Module"})),Jb="object",Wb="translations.json#/div_action_focus_element",Kb={type:{type:"string",enum:["focus_element"]},element_id:{type:"string"}},Yb=["type","element_id"],hG={type:Jb,$description:Wb,properties:Kb,required:Yb},vG=Object.freeze(Object.defineProperty({__proto__:null,$description:Wb,default:hG,properties:Kb,required:Yb,type:Jb},Symbol.toStringTag,{value:"Module"})),Gb="object",Xb="translations.json#/div_action_hide_tooltip",Zb={type:{type:"string",enum:["hide_tooltip"]},id:{$description:"translations.json#/div_action_tooltip_id",type:"string"}},xb=["android","ios","web"],Qb=["type","id"],bG={type:Gb,$description:Xb,properties:Zb,platforms:xb,required:Qb},yG=Object.freeze(Object.defineProperty({__proto__:null,$description:Xb,default:bG,platforms:xb,properties:Zb,required:Qb,type:Gb},Symbol.toStringTag,{value:"Module"})),ey={id:{$description:"translations.json#/div_action_scroll_id",type:"string"},animated:{$description:"translations.json#/div_action_scroll_animated",type:"boolean",default_value:"true"}},wG={properties:ey},$G=Object.freeze(Object.defineProperty({__proto__:null,default:wG,properties:ey},Symbol.toStringTag,{value:"Module"})),ty=[{$ref:"div-action-scroll-base.json"},{type:"object",$description:"translations.json#/div_action_scroll_by",properties:{type:{type:"string",enum:["scroll_by"]},overflow:{$description:"translations.json#/div_action_scroll_overflow",type:"string",enum:["clamp","ring"],default_value:"clamp"},offset:{$description:"translations.json#/div_action_scroll_by_offset",type:"integer",default_value:"0"},item_count:{$description:"translations.json#/div_action_scroll_by_item_count",type:"integer",default_value:"0"}},platforms:["android","ios","web"],required:["type","id"]}],kG={allOf:ty},jG=Object.freeze(Object.defineProperty({__proto__:null,allOf:ty,default:kG},Symbol.toStringTag,{value:"Module"})),ny="translations.json#/div_action_scroll_destination",iy={offset_destination:{$description:"translations.json#/div_action_scroll_destination_offset",type:"object",properties:{type:{type:"string",enum:["offset"]},value:{$description:"translations.json#/div_action_scroll_destination_offset_value",$ref:"common.json#/non_negative_integer"}},required:["type","value"]},index_destination:{$description:"translations.json#/div_action_scroll_destination_index",type:"object",properties:{type:{type:"string",enum:["index"]},value:{$description:"translations.json#/div_action_scroll_destination_index_value",$ref:"common.json#/non_negative_integer"}},required:["type","value"]},start_destination:{$description:"translations.json#/div_action_scroll_destination_start",type:"object",properties:{type:{type:"string",enum:["start"]}},required:["type"]},end_destination:{$description:"translations.json#/div_action_scroll_destination_end",type:"object",properties:{type:{type:"string",enum:["end"]}},required:["type"]}},oy=[{$ref:"#/definitions/offset_destination"},{$ref:"#/definitions/index_destination"},{$ref:"#/definitions/start_destination"},{$ref:"#/definitions/end_destination"}],SG={$description:ny,definitions:iy,anyOf:oy},CG=Object.freeze(Object.defineProperty({__proto__:null,$description:ny,anyOf:oy,default:SG,definitions:iy},Symbol.toStringTag,{value:"Module"})),ry=[{$ref:"div-action-scroll-base.json"},{type:"object",$description:"translations.json#/div_action_scroll_to",properties:{type:{type:"string",enum:["scroll_to"]},destination:{$description:"translations.json#/div_action_scroll_to_destination",$ref:"div-action-scroll-destination.json"}},platforms:["android","ios","web"],required:["type","id","destination"]}],TG={allOf:ry},zG=Object.freeze(Object.defineProperty({__proto__:null,allOf:ry,default:TG},Symbol.toStringTag,{value:"Module"})),sy="object",ly="translations.json#/div_action_set_state",ay={type:{type:"string",enum:["set_state"]},state_id:{$description:"translations.json#/div_action_set_state_state_id",type:"string"},temporary:{$description:"translations.json#/div_action_set_state_temporary",type:"boolean",default_value:"true",platforms:["android","ios"]}},cy=["android","ios","web"],dy=["type","state_id"],EG={type:sy,$description:ly,properties:ay,platforms:cy,required:dy},AG=Object.freeze(Object.defineProperty({__proto__:null,$description:ly,default:EG,platforms:cy,properties:ay,required:dy,type:sy},Symbol.toStringTag,{value:"Module"})),uy="object",py="translations.json#/div_action_set_stored_value",_y={type:{type:"string",enum:["set_stored_value"]},name:{$description:"translations.json#/div_action_set_stored_value_name",type:"string"},value:{$description:"translations.json#/div_action_set_stored_value_value",$ref:"div-typed-value.json"},lifetime:{$description:"translations.json#/div_action_set_stored_value_lifetime",type:"integer"}},fy=["android","ios","web"],my=["type","name","value","lifetime"],OG={type:uy,$description:py,properties:_y,platforms:fy,required:my},MG=Object.freeze(Object.defineProperty({__proto__:null,$description:py,default:OG,platforms:fy,properties:_y,required:my,type:uy},Symbol.toStringTag,{value:"Module"})),gy="object",hy="translations.json#/div_action_set_variable",vy={type:{type:"string",enum:["set_variable"]},variable_name:{type:"string"},value:{$ref:"div-typed-value.json"}},by=["type","variable_name","value"],PG={type:gy,$description:hy,properties:vy,required:by},IG=Object.freeze(Object.defineProperty({__proto__:null,$description:hy,default:PG,properties:vy,required:by,type:gy},Symbol.toStringTag,{value:"Module"})),yy="object",wy="translations.json#/div_action_show_tooltip",$y={type:{type:"string",enum:["show_tooltip"]},id:{$description:"translations.json#/div_action_tooltip_id",type:"string"},multiple:{$description:"translations.json#/div_action_show_tooltip_multiple",type:"boolean"}},ky=["android","ios","web"],jy=["type","id"],DG={type:yy,$description:wy,properties:$y,platforms:ky,required:jy},VG=Object.freeze(Object.defineProperty({__proto__:null,$description:wy,default:DG,platforms:ky,properties:$y,required:jy,type:yy},Symbol.toStringTag,{value:"Module"})),Sy="object",Cy="translations.json#/div_action_submit",Ty={parameter:{type:"object",properties:{name:{type:"string"},value:{type:"string"}},required:["name","value"]},request:{type:"object",properties:{url:{$ref:"common.json#/url",$description:"translations.json#/div_action_submit_request_url"},headers:{type:"array",$description:"translations.json#/div_action_submit_request_headers",items:{$ref:"#/definitions/parameter"}},method:{type:"string",default_value:"post",$description:"translations.json#/div_action_submit_request_method",enum:["get","post","put","patch","delete","head","options"]}},required:["url"]}},zy={type:{type:"string",enum:["submit"]},container_id:{type:"string",$description:"translations.json#/div_action_submit_container_id"},request:{$ref:"#/definitions/request",$description:"translations.json#/div_action_submit_request"},on_success_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_action_submit_on_success_actions"},on_fail_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_action_submit_on_fail_actions"}},Ey=["android","ios","web"],Ay=["type","container_id","request"],LG={type:Sy,$description:Cy,definitions:Ty,properties:zy,platforms:Ey,required:Ay},FG=Object.freeze(Object.defineProperty({__proto__:null,$description:Cy,default:LG,definitions:Ty,platforms:Ey,properties:zy,required:Ay,type:Sy},Symbol.toStringTag,{value:"Module"})),Oy="object",My="translations.json#/div_action_timer",Py={type:{type:"string",enum:["timer"]},id:{$description:"translations.json#/div_action_timer_id",type:"string"},action:{type:"string",$description:"translations.json#/div_action_timer_action",enum:["start","stop","pause","resume","cancel","reset"]}},Iy=["android","ios","web"],Dy=["type","id","action"],NG={type:Oy,$description:My,properties:Py,platforms:Iy,required:Dy},qG=Object.freeze(Object.defineProperty({__proto__:null,$description:My,default:NG,platforms:Iy,properties:Py,required:Dy,type:Oy},Symbol.toStringTag,{value:"Module"})),Vy=[{$ref:"div-action-animator-start.json"},{$ref:"div-action-animator-stop.json"},{$ref:"div-action-array-insert-value.json"},{$ref:"div-action-array-remove-value.json"},{$ref:"div-action-array-set-value.json"},{$ref:"div-action-clear-focus.json"},{$ref:"div-action-copy-to-clipboard.json"},{$ref:"div-action-dict-set-value.json"},{$ref:"div-action-download.json"},{$ref:"div-action-focus-element.json"},{$ref:"div-action-hide-tooltip.json"},{$ref:"div-action-scroll-by.json"},{$ref:"div-action-scroll-to.json"},{$ref:"div-action-set-state.json"},{$ref:"div-action-set-stored-value.json"},{$ref:"div-action-set-variable.json"},{$ref:"div-action-show-tooltip.json"},{$ref:"div-action-submit.json"},{$ref:"div-action-timer.json"},{$ref:"div-action-video.json"}],RG={anyOf:Vy},BG=Object.freeze(Object.defineProperty({__proto__:null,anyOf:Vy,default:RG},Symbol.toStringTag,{value:"Module"})),Ly="object",Fy="translations.json#/div_action_video",Ny={type:{type:"string",enum:["video"]},id:{$description:"translations.json#/div_action_video_id",type:"string"},action:{$description:"translations.json#/div_action_video_action",type:"string",enum:["start","pause"]}},qy=["android","ios","web"],Ry=["type","id","action"],HG={type:Ly,$description:Fy,properties:Ny,platforms:qy,required:Ry},UG=Object.freeze(Object.defineProperty({__proto__:null,$description:Fy,default:HG,platforms:qy,properties:Ny,required:Ry,type:Ly},Symbol.toStringTag,{value:"Module"})),By={menu_item:{type:"object",properties:{text:{type:"string",$description:"translations.json#/div_action_menu_item_text"},action:{$ref:"div-action.json",$description:"translations.json#/div_action_menu_item_action"},actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_action_menu_item_actions"}},required:["text"]}},Hy=[{$ref:"div-action-base.json"},{type:"object",$description:"translations.json#/div_action",properties:{menu_items:{type:"array",items:{$ref:"#/definitions/menu_item"},$description:"translations.json#/div_action_menu_items"},log_url:{$ref:"common.json#/url",$description:"translations.json#/div_action_log_url"},target:{type:"string",enum:["_self","_blank"],force_enum_field:!0,$description:"translations.json#/div_action_target",platforms:["web"],code_generation_disabled_swift:!0}},required:["log_id"]}],JG={definitions:By,allOf:Hy},WG=Object.freeze(Object.defineProperty({__proto__:null,allOf:Hy,default:JG,definitions:By},Symbol.toStringTag,{value:"Module"})),Uy={action:{$ref:"div-action.json",$description:"translations.json#/div_actionable_action"},actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_actionable_actions"},longtap_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_actionable_longtap_actions",platforms:["android","ios","web"]},doubletap_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_actionable_doubletap_actions",platforms:["android","ios","web"]},press_start_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_actionable_press_start_actions",platforms:["web","android"]},press_end_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_actionable_press_end_actions",platforms:["web","android"]},hover_start_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_actionable_hover_start_actions",platforms:["web","android"]},hover_end_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_actionable_hover_end_actions",platforms:["web","android"]},action_animation:{$ref:"div-animation.json",default_value:'{"name": "fade", "start_value": 1, "end_value": 0.6, "duration": 100 }',$description:"translations.json#/div_actionable_action_animation",platforms:["android","ios","web"]}},KG={properties:Uy},YG=Object.freeze(Object.defineProperty({__proto__:null,default:KG,properties:Uy},Symbol.toStringTag,{value:"Module"})),Jy="string",GG={type:Jy,enum:["left","center","right","start","end"]},XG=Object.freeze(Object.defineProperty({__proto__:null,default:GG,type:Jy},Symbol.toStringTag,{value:"Module"})),Wy="string",ZG={type:Wy,enum:["top","center","bottom","baseline"]},xG=Object.freeze(Object.defineProperty({__proto__:null,default:ZG,type:Wy},Symbol.toStringTag,{value:"Module"})),Ky="string",QG={type:Ky,enum:["normal","reverse","alternate","alternate_reverse"]},eX=Object.freeze(Object.defineProperty({__proto__:null,default:QG,type:Ky},Symbol.toStringTag,{value:"Module"})),Yy="string",Gy="translations.json#/div_animation_interpolator",Xy=["android","ios","web"],tX={type:Yy,enum:["linear","ease","ease_in","ease_out","ease_in_out","spring"],$description:Gy,platforms:Xy},nX=Object.freeze(Object.defineProperty({__proto__:null,$description:Gy,default:tX,platforms:Xy,type:Yy},Symbol.toStringTag,{value:"Module"})),Zy="object",xy="translations.json#/div_animation",Qy={name:{type:"string",enum:["fade","translate","scale","native","set","no_animation"],$description:"translations.json#/div_animation_name"},duration:{$ref:"common.json#/non_negative_integer",default_value:"300",$description:"translations.json#/div_animation_duration"},start_delay:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_animation_start_delay"},start_value:{type:"number",$description:"translations.json#/div_animation_start_value"},end_value:{type:"number",$description:"translations.json#/div_animation_end_value"},repeat:{alias_swift:"repeat_count",$ref:"div-count.json",default_value:'{ "type": "infinity" }',$description:"translations.json#/div_animation_repeat"},interpolator:{$ref:"div-animation-interpolator.json",default_value:"spring",$description:"translations.json#/div_animation_interpolator"},items:{type:"array",items:{$ref:"div-animation.json"},$description:"translations.json#/div_animation_items"}},ew=["android","ios","web"],tw=["name"],iX={type:Zy,$description:xy,properties:Qy,platforms:ew,required:tw},oX=Object.freeze(Object.defineProperty({__proto__:null,$description:xy,default:iX,platforms:ew,properties:Qy,required:tw,type:Zy},Symbol.toStringTag,{value:"Module"})),nw="div-animator-base",iw="object",ow={id:{$ref:"common.json#/id",$description:"translations.json#/div_animator_base_id"},variable_name:{$ref:"div-variable-name.json",$description:"translations.json#/div_animator_base_variable_name"},duration:{$ref:"common.json#/non_negative_integer",long_type:!0,$description:"translations.json#/div_animator_base_duration"},start_delay:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_animator_base_start_delay"},interpolator:{$ref:"div-animation-interpolator.json",default_value:"linear",$description:"translations.json#/div_animator_base_interpolator"},direction:{$ref:"div-animation-direction.json",default_value:"normal",$description:"translations.json#/div_animator_base_direction"},repeat_count:{$ref:"div-count.json",default_value:'{"type": "fixed", "value": 1}',$description:"translations.json#/div_animator_base_repeat_count"},end_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_animator_base_end_actions"},cancel_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_animator_base_cancel_actions"}},rw=["id","variable_name","duration"],rX={protocol_name:nw,type:iw,properties:ow,required:rw},sX=Object.freeze(Object.defineProperty({__proto__:null,default:rX,properties:ow,protocol_name:nw,required:rw,type:iw},Symbol.toStringTag,{value:"Module"})),sw=[{$ref:"div-color-animator.json",$description:"translations.json#/div_color_animator"},{$ref:"div-number-animator.json",$description:"translations.json#/div_number_animator"}],lX={anyOf:sw},aX=Object.freeze(Object.defineProperty({__proto__:null,anyOf:sw,default:lX},Symbol.toStringTag,{value:"Module"})),lw="object",aw="translations.json#/div_appearance_set_transition",cw={type:{type:"string",enum:["set"]},items:{type:"array",items:{$ref:"div-appearance-transition.json"},minItems:1,$description:"translations.json#/div_appearance_set_transition_items"}},dw=["android","ios","web"],uw=["type","items"],cX={type:lw,$description:aw,properties:cw,platforms:dw,required:uw},dX=Object.freeze(Object.defineProperty({__proto__:null,$description:aw,default:cX,platforms:dw,properties:cw,required:uw,type:lw},Symbol.toStringTag,{value:"Module"})),pw="translations.json#/div_appearance_transition",_w=[{$ref:"div-appearance-set-transition.json",$description:"translations.json#/div_appearance_transition_set"},{$ref:"div-fade-transition.json",$description:"translations.json#/div_appearance_transition_fade"},{$ref:"div-scale-transition.json",$description:"translations.json#/div_appearance_transition_scale"},{$ref:"div-slide-transition.json",$description:"translations.json#/div_appearance_transition_slide"}],uX={$description:pw,anyOf:_w},pX=Object.freeze(Object.defineProperty({__proto__:null,$description:pw,anyOf:_w,default:uX},Symbol.toStringTag,{value:"Module"})),fw="object",mw="translations.json#/div_aspect",gw={ratio:{$ref:"common.json#/positive_number",$description:"translations.json#/div_aspect_ratio"}},hw=["ratio"],_X={type:fw,$description:mw,properties:gw,required:hw},fX=Object.freeze(Object.defineProperty({__proto__:null,$description:mw,default:_X,properties:gw,required:hw,type:fw},Symbol.toStringTag,{value:"Module"})),vw=[{$ref:"div-linear-gradient.json",$description:"translations.json#/div_gradient_linear"},{$ref:"div-radial-gradient.json",$description:"translations.json#/div_gradient_radial"},{$ref:"div-image-background.json",$description:"translations.json#/div_background_image"},{$ref:"div-solid-background.json",$description:"translations.json#/div_background_solid"},{$ref:"div-nine-patch-background.json",$description:"translations.json#/div_nine_patch_background"}],mX={anyOf:vw},gX=Object.freeze(Object.defineProperty({__proto__:null,anyOf:vw,default:mX},Symbol.toStringTag,{value:"Module"})),bw="div-base",yw={swift:{super_protocol:"DivBlockModeling"},documentation:{include_in_toc:!0}},ww="object",$w={id:{$ref:"common.json#/id",$description:"translations.json#/div_base_id"},border:{$ref:"div-border.json",$description:"translations.json#/div_base_border"},width:{$ref:"div-size.json",default_value:'{"type": "match_parent"}',$description:"translations.json#/div_base_width"},height:{$ref:"div-size.json",default_value:'{"type": "wrap_content"}',$description:"translations.json#/div_base_height"},background:{type:"array",items:{$ref:"div-background.json"},$description:"translations.json#/div_base_background"},paddings:{$ref:"div-edge-insets.json",$description:"translations.json#/div_base_paddings"},margins:{$ref:"div-edge-insets.json",$description:"translations.json#/div_base_margins"},alpha:{type:"number",default_value:"1.0",constraint:"number >= 0.0 && number <= 1.0",$description:"translations.json#/div_base_alpha"},alignment_vertical:{$ref:"div-alignment-vertical.json",$description:"translations.json#/div_base_alignment_vertical"},alignment_horizontal:{$ref:"div-alignment-horizontal.json",$description:"translations.json#/div_base_alignment_horizontal"},animators:{type:"array",items:{$ref:"div-animator.json"},$description:"translations.json#/div_base_animators",platforms:["android","ios","web"]},row_span:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_base_row_span",platforms:["android","ios","web"]},column_span:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_base_column_span",platforms:["android","ios","web"]},visibility_action:{$ref:"div-visibility-action.json",$description:"translations.json#/div_base_visibility_action"},visibility_actions:{type:"array",items:{$ref:"div-visibility-action.json"},$description:"translations.json#/div_base_visibility_actions"},disappear_actions:{type:"array",items:{$ref:"div-disappear-action.json"},$description:"translations.json#/div_base_disappear_actions",platforms:["android","ios","web"]},tooltips:{type:"array",items:{$ref:"div-tooltip.json"},$description:"translations.json#/div_base_tooltips",platforms:["android","ios","web"]},accessibility:{$ref:"div-accessibility.json",$description:"translations.json#/div_base_accessibility",platforms:["android","ios","web"]},extensions:{type:"array",items:{$ref:"div-extension.json"},$description:"translations.json#/div_base_extensions",platforms:["android","ios","web"]},transition_triggers:{type:"array",items:{$ref:"div-transition-trigger.json"},minItems:1,supports_expressions:!1,$description:"translations.json#/div_base_transition_triggers",platforms:["android","ios","web"]},transition_in:{$ref:"div-appearance-transition.json",$description:"translations.json#/div_base_transition_in",platforms:["android","ios","web"]},transition_change:{$ref:"div-change-transition.json",$description:"translations.json#/div_base_transition_change",platforms:["android","ios","web"]},transition_out:{$ref:"div-appearance-transition.json",$description:"translations.json#/div_base_transition_out",platforms:["android","ios","web"]},selected_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_base_selected_actions",platforms:["android","ios","web"]},focus:{$ref:"div-focus.json",$description:"translations.json#/div_base_focus"},visibility:{$ref:"div-visibility.json",$description:"translations.json#/div_base_visibility",default_value:"visible"},functions:{type:"array",items:{$ref:"div-function.json"},$description:"translations.json#/div_base_functions",platforms:["android","ios","web"]},variables:{type:"array",items:{$ref:"div-variable.json"},$description:"translations.json#/div_base_variables",platforms:["ios","web","android"]},variable_triggers:{type:"array",items:{$ref:"div-trigger.json"},$description:"translations.json#/div_base_variable_triggers",platforms:["android","ios","web"]},transform:{$ref:"div-transform.json",$description:"translations.json#/div_base_transform",platforms:["android","ios","web"]},layout_provider:{$ref:"div-layout-provider.json",$description:"translations.json#/div_layout_provider",platforms:["android","ios","web"]},reuse_id:{type:"string",$description:"translations.json#/div_reuse_id",platforms:["android","ios"],unsupported_platforms:{web:"No need for reuse identifier"}}},hX={protocol_name:bw,codegen:yw,type:ww,properties:$w},vX=Object.freeze(Object.defineProperty({__proto__:null,codegen:yw,default:hX,properties:$w,protocol_name:bw,type:ww},Symbol.toStringTag,{value:"Module"})),kw="string",jw="translations.json#/div_blend_mode",bX={type:kw,enum:["source_in","source_atop","darken","lighten","multiply","screen"],$description:jw},yX=Object.freeze(Object.defineProperty({__proto__:null,$description:jw,default:bX,type:kw},Symbol.toStringTag,{value:"Module"})),Sw="object",Cw="translations.json#/div_blur",Tw={radius:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_blur_radius"},type:{type:"string",enum:["blur"]}},zw=["radius","type"],wX={type:Sw,$description:Cw,properties:Tw,required:zw},$X=Object.freeze(Object.defineProperty({__proto__:null,$description:Cw,default:wX,properties:Tw,required:zw,type:Sw},Symbol.toStringTag,{value:"Module"})),Ew="object",Aw="translations.json#/div_border",Ow={has_shadow:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_border_has_shadow"},shadow:{$ref:"div-shadow.json",$description:"translations.json#/div_border_shadow"},stroke:{$ref:"div-stroke.json",$description:"translations.json#/div_border_stroke"},corner_radius:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_border_corner_radius"},corners_radius:{$ref:"div-corners-radius.json",$description:"translations.json#/div_border_corners_radius"}},kX={type:Ew,$description:Aw,properties:Ow},jX=Object.freeze(Object.defineProperty({__proto__:null,$description:Aw,default:kX,properties:Ow,type:Ew},Symbol.toStringTag,{value:"Module"})),Mw="translations.json#/div_change_bounds_transition",Pw=[{$ref:"div-transition-base.json"},{properties:{type:{type:"string",enum:["change_bounds"]}}}],Iw=["type"],SX={$description:Mw,allOf:Pw,required:Iw},CX=Object.freeze(Object.defineProperty({__proto__:null,$description:Mw,allOf:Pw,default:SX,required:Iw},Symbol.toStringTag,{value:"Module"})),Dw="object",Vw="translations.json#/div_change_set_transition",Lw={type:{type:"string",enum:["set"]},items:{type:"array",items:{$ref:"div-change-transition.json"},minItems:1,$description:"translations.json#/div_change_set_transition_items"}},Fw=["android","ios","web"],Nw=["type","items"],TX={type:Dw,$description:Vw,properties:Lw,platforms:Fw,required:Nw},zX=Object.freeze(Object.defineProperty({__proto__:null,$description:Vw,default:TX,platforms:Fw,properties:Lw,required:Nw,type:Dw},Symbol.toStringTag,{value:"Module"})),qw="translations.json#/div_change_transition",Rw=[{$ref:"div-change-set-transition.json",$description:"translations.json#/div_change_transition_set",platforms:["android","ios","web"]},{$ref:"div-change-bounds-transition.json",$description:"translations.json#/div_change_transition_bounds",platforms:["android","ios","web"]}],EX={$description:qw,anyOf:Rw},AX=Object.freeze(Object.defineProperty({__proto__:null,$description:qw,anyOf:Rw,default:EX},Symbol.toStringTag,{value:"Module"})),Bw="translations.json#/div_circle_shape",Hw=[{$ref:"div-shape-base.json"},{type:"object",properties:{radius:{$ref:"div-fixed-size.json",default_value:'{"type":"fixed","value":10}',$description:"translations.json#/div_circle_shape_radius"},type:{type:"string",enum:["circle"]}}}],Uw=["android","web"],Jw=["type"],OX={$description:Bw,allOf:Hw,platforms:Uw,required:Jw},MX=Object.freeze(Object.defineProperty({__proto__:null,$description:Bw,allOf:Hw,default:OX,platforms:Uw,required:Jw},Symbol.toStringTag,{value:"Module"})),Ww="object",Kw="translations.json#/div_cloud_background",Yw=["android","web"],Gw={type:{type:"string",enum:["cloud"]},color:{$ref:"common.json#/color",$description:"translations.json#/div_cloud_background_color"},corner_radius:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_cloud_background_corner_radius"},paddings:{$ref:"div-edge-insets.json",$description:"translations.json#/div_cloud_background_paddings"}},Xw=["type","color","corner_radius"],PX={type:Ww,$description:Kw,platforms:Yw,properties:Gw,required:Xw},IX=Object.freeze(Object.defineProperty({__proto__:null,$description:Kw,default:PX,platforms:Yw,properties:Gw,required:Xw,type:Ww},Symbol.toStringTag,{value:"Module"})),Zw="object",xw={data_element_name:{type:"string",default_value:"it",supports_expressions:!1,$description:"translations.json#/div_collection_item_builder_prototypes_data_element_name"},data:{type:"array",$description:"translations.json#/div_collection_item_builder_data"},prototypes:{type:"array",minItems:1,items:{type:"object",properties:{selector:{$ref:"common.json#/boolean_int",default_value:"true",$description:"translations.json#/div_collection_item_builder_prototypes_selector"},id:{type:"string",$description:"translations.json#/div_collection_item_builder_prototypes_id"},div:{$ref:"div.json",$description:"translations.json#/div_collection_item_builder_prototypes_div"}},required:["div"]},$description:"translations.json#/div_collection_item_builder_prototypes"}},Qw=["android","ios","web"],e3=["data","prototypes"],DX={type:Zw,properties:xw,platforms:Qw,required:e3},VX=Object.freeze(Object.defineProperty({__proto__:null,default:DX,platforms:Qw,properties:xw,required:e3,type:Zw},Symbol.toStringTag,{value:"Module"})),t3="translations.json#/div_color_animator",n3=[{$ref:"div-animator-base.json"},{properties:{type:{type:"string",enum:["color_animator"]},start_value:{$ref:"common.json#/color",$description:"translations.json#/div_animator_start_value"},end_value:{$ref:"common.json#/color",$description:"translations.json#/div_animator_end_value"}},required:["type","end_value"],platforms:["android","ios","web"]}],LX={$description:t3,allOf:n3},FX=Object.freeze(Object.defineProperty({__proto__:null,$description:t3,allOf:n3,default:LX},Symbol.toStringTag,{value:"Module"})),i3="translations.json#/div_container",o3={divan:{forced_properties_order:["orientation"],factories:{row:{vararg_property:"items",inlines:{orientation:"horizontal"}},column:{vararg_property:"items",inlines:{orientation:"vertical"}},stack:{vararg_property:"items",inlines:{orientation:"overlap"}}}},swift:{generate_optional_arguments:!1},typescript:{union_interfaces:[{required_params:["items"]},{required_params:["item_builder"]}]}},r3={separator:{type:"object",platforms:["android","ios","web"],properties:{show_at_start:{$ref:"common.json#/boolean_int",$description:"translations.json#/div_container_separator_show_at_start",default_value:"false"},show_between:{$ref:"common.json#/boolean_int",$description:"translations.json#/div_container_separator_show_between",default_value:"true"},show_at_end:{$ref:"common.json#/boolean_int",$description:"translations.json#/div_container_separator_show_at_end",default_value:"false"},style:{$ref:"div-drawable.json",$description:"translations.json#/div_container_separator_style"},margins:{$ref:"div-edge-insets.json",$description:"translations.json#/div_base_margins"}},required:["style"]}},s3=[{$ref:"div-base.json"},{$ref:"div-actionable.json"},{properties:{type:{type:"string",enum:["container"]},content_alignment_vertical:{$ref:"div-content-alignment-vertical.json",default_value:"top",$description:"translations.json#/div_container_content_alignment_vertical"},content_alignment_horizontal:{$ref:"div-content-alignment-horizontal.json",default_value:"start",$description:"translations.json#/div_container_content_alignment_horizontal"},orientation:{type:"string",enum:["vertical","horizontal","overlap"],default_value:"vertical",$description:"translations.json#/div_container_orientation"},layout_mode:{type:"string",enum:["no_wrap","wrap"],default_value:"no_wrap",$description:"translations.json#/div_container_layout_mode"},separator:{$ref:"#/definitions/separator",$description:"translations.json#/div_container_separator",platforms:["android","ios","web"]},line_separator:{$ref:"#/definitions/separator",$description:"translations.json#/div_container_line_separator",platforms:["android","ios","web"]},items:{type:"array",items:{$ref:"div.json"},$description:"translations.json#/div_container_items"},item_builder:{$ref:"div-collection-item-builder.json",$description:"translations.json#/div_collection_item_builder",platforms:["android","ios","web"]},aspect:{$ref:"div-aspect.json",$description:"translations.json#/div_container_aspect"},clip_to_bounds:{$ref:"common.json#/boolean_int",default_value:"true",$description:"translations.json#/div_clip_to_bounds",platforms:["android","ios","web"]}}}],l3=["type"],NX={$description:i3,codegen:o3,definitions:r3,allOf:s3,required:l3},qX=Object.freeze(Object.defineProperty({__proto__:null,$description:i3,allOf:s3,codegen:o3,default:NX,definitions:r3,required:l3},Symbol.toStringTag,{value:"Module"})),a3="string",RX={type:a3,enum:["left","center","right","start","end","space-between","space-around","space-evenly"]},BX=Object.freeze(Object.defineProperty({__proto__:null,default:RX,type:a3},Symbol.toStringTag,{value:"Module"})),c3="string",HX={type:c3,enum:["top","center","bottom","baseline","space-between","space-around","space-evenly"]},UX=Object.freeze(Object.defineProperty({__proto__:null,default:HX,type:c3},Symbol.toStringTag,{value:"Module"})),d3="object",u3="translations.json#/div_corners_radius",p3={"top-left":{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_corners_radius_top_left"},"top-right":{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_corners_radius_top_right"},"bottom-left":{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_corners_radius_bottom_left"},"bottom-right":{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_corners_radius_bottom_right"}},JX={type:d3,$description:u3,properties:p3},WX=Object.freeze(Object.defineProperty({__proto__:null,$description:u3,default:JX,properties:p3,type:d3},Symbol.toStringTag,{value:"Module"})),_3=[{$ref:"div-infinity-count.json",$description:"translations.json#/div_count_infinity"},{$ref:"div-fixed-count.json",$description:"translations.json#/div_count_fixed"}],KX={anyOf:_3},YX=Object.freeze(Object.defineProperty({__proto__:null,anyOf:_3,default:KX},Symbol.toStringTag,{value:"Module"})),f3="translations.json#/div_input_mask_currency",m3=[{$ref:"div-input-mask-base.json"},{properties:{type:{type:"string",enum:["currency"]},locale:{type:"string",$description:"translations.json#/div_input_mask_currency_locale"}}}],g3=["android","ios","web"],h3=["type"],GX={$description:f3,allOf:m3,platforms:g3,required:h3},XX=Object.freeze(Object.defineProperty({__proto__:null,$description:f3,allOf:m3,default:GX,platforms:g3,required:h3},Symbol.toStringTag,{value:"Module"})),v3="translations.json#/div_custom",b3=[{$ref:"div-base.json"},{properties:{type:{type:"string",enum:["custom"]},items:{type:"array",items:{$ref:"div.json"},$description:"translations.json#/div_custom_items"},custom_type:{type:"string",supports_expressions:!1,$description:"translations.json#/div_custom_custom_type"},custom_props:{type:"object",additionalProperties:!0,$description:"translations.json#/div_custom_custom_props"}}}],y3=["type","custom_type"],ZX={$description:v3,allOf:b3,required:y3},xX=Object.freeze(Object.defineProperty({__proto__:null,$description:v3,allOf:b3,default:ZX,required:y3},Symbol.toStringTag,{value:"Module"})),w3="translations.json#/div_data",$3=!1,k3={divan:{plus_operator:!1,required_properties_at_factory:!0,forced_properties_order:["log_id","states"]},swift:{generate_optional_arguments:!1}},j3={div_state:{type:"object",typescript_templatable:!1,codegen:{divan:{alias_factory:"root",required_properties_at_factory:!0,forced_properties_order:["state_id","div"]},swift:{generate_optional_arguments:!1}},properties:{state_id:{type:"integer",supports_expressions:!1,$description:"translations.json#/div_data_div_state_state_id"},div:{$ref:"div.json",$description:"translations.json#/div_data_div_state_div"}},required:["state_id","div"]}},S3="object",C3={states:{type:"array",items:{$ref:"#/definitions/div_state"},minItems:1,$description:"translations.json#/div_data_states"},log_id:{$ref:"common.json#/id",$description:"translations.json#/div_data_log_id"},transition_animation_selector:{$ref:"div-transition-selector.json",default_value:"none",$description:"translations.json#/div_data_transition_animation_selector",deprecated:!0,platforms:["android","ios"]},functions:{type:"array",items:{$ref:"div-function.json"},platforms:["ios"],$description:"translations.json#/div_data_functions"},variables:{type:"array",items:{$ref:"div-variable.json"},$description:"translations.json#/div_data_variables"},variable_triggers:{type:"array",items:{$ref:"div-trigger.json"},$description:"translations.json#/div_data_variable_triggers"},timers:{type:"array",items:{$ref:"div-timer.json"},$description:"translations.json#/div_data_timers"}},T3=["states","log_id"],QX={$description:w3,typescript_templatable:$3,codegen:k3,definitions:j3,type:S3,properties:C3,required:T3},eZ=Object.freeze(Object.defineProperty({__proto__:null,$description:w3,codegen:k3,default:QX,definitions:j3,properties:C3,required:T3,type:S3,typescript_templatable:$3},Symbol.toStringTag,{value:"Module"})),z3="object",E3="translations.json#/div_match_parent_size",A3={space_between_centers:{$ref:"div-fixed-size.json",default_value:'{"type": "fixed","value":15}',$description:"translations.json#/div_indicator_space_between_centers"},type:{type:"string",enum:["default"]}},O3=["android","ios","web"],M3=["type"],tZ={type:z3,$description:E3,properties:A3,platforms:O3,required:M3},nZ=Object.freeze(Object.defineProperty({__proto__:null,$description:E3,default:tZ,platforms:O3,properties:A3,required:M3,type:z3},Symbol.toStringTag,{value:"Module"})),P3="object",I3="translations.json#/div_dimension",D3={divan:{forced_properties_order:["value"]}},V3={value:{type:"number",$description:"translations.json#/div_dimension_value"},unit:{$ref:"div-size-unit.json",default_value:"dp"}},L3=["value"],iZ={type:P3,$description:I3,codegen:D3,properties:V3,required:L3},oZ=Object.freeze(Object.defineProperty({__proto__:null,$description:I3,codegen:D3,default:iZ,properties:V3,required:L3,type:P3},Symbol.toStringTag,{value:"Module"})),F3="translations.json#/div_disappear_action",N3=[{$ref:"div-sight-action.json"},{properties:{visibility_percentage:{type:"integer",constraint:"number >= 0 && number < 100",default_value:"0",$description:"translations.json#/div_disappear_action_visibility_percentage"},disappear_duration:{$ref:"common.json#/non_negative_integer",default_value:"800",$description:"translations.json#/div_disappear_action_disappear_duration"}}}],rZ={$description:F3,allOf:N3},sZ=Object.freeze(Object.defineProperty({__proto__:null,$description:F3,allOf:N3,default:rZ},Symbol.toStringTag,{value:"Module"})),q3="object",R3="translations.json#/div_download_callbacks",B3={on_fail_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_download_callbacks_on_fail_actions"},on_success_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_download_callbacks_on_success_actions"}},lZ={type:q3,$description:R3,properties:B3},aZ=Object.freeze(Object.defineProperty({__proto__:null,$description:R3,default:lZ,properties:B3,type:q3},Symbol.toStringTag,{value:"Module"})),H3=[{$ref:"div-shape-drawable.json",$description:"translations.json#/div_shape_drawable"}],U3=["android","ios","web"],cZ={anyOf:H3,platforms:U3},dZ=Object.freeze(Object.defineProperty({__proto__:null,anyOf:H3,default:cZ,platforms:U3},Symbol.toStringTag,{value:"Module"})),J3="object",W3="translations.json#/div_edge_insets",K3={left:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_edge_insets_left"},right:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_edge_insets_right"},top:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_edge_insets_top"},bottom:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_edge_insets_bottom"},start:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_edge_insets_start"},end:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_edge_insets_end"},unit:{$ref:"div-size-unit.json",default_value:"dp",platforms:["android","ios"]}},uZ={type:J3,$description:W3,properties:K3},pZ=Object.freeze(Object.defineProperty({__proto__:null,$description:W3,default:uZ,properties:K3,type:J3},Symbol.toStringTag,{value:"Module"})),Y3="string",G3="translations.json#/div_evaluable_type",_Z={type:Y3,$description:G3,enum:["string","integer","number","boolean","datetime","color","url","dict","array"]},fZ=Object.freeze(Object.defineProperty({__proto__:null,$description:G3,default:_Z,type:Y3},Symbol.toStringTag,{value:"Module"})),X3="object",Z3="translations.json#/div_extension",x3=["android","ios","web"],Q3={id:{$ref:"common.json#/id",$description:"translations.json#/div_extension_id"},params:{type:"object",additionalProperties:!0,$description:"translations.json#/div_extension_params"}},e$=["id"],mZ={type:X3,$description:Z3,platforms:x3,properties:Q3,required:e$},gZ=Object.freeze(Object.defineProperty({__proto__:null,$description:Z3,default:mZ,platforms:x3,properties:Q3,required:e$,type:X3},Symbol.toStringTag,{value:"Module"})),t$="translations.json#/div_fade_transition",n$=[{$ref:"div-transition-base.json"},{properties:{type:{type:"string",enum:["fade"]},alpha:{type:"number",constraint:"number >= 0.0 && number <= 1.0",default_value:"0.0",$description:"translations.json#/div_fade_transition_alpha"}}}],i$=["type"],hZ={$description:t$,allOf:n$,required:i$},vZ=Object.freeze(Object.defineProperty({__proto__:null,$description:t$,allOf:n$,default:hZ,required:i$},Symbol.toStringTag,{value:"Module"})),o$="object",r$="translations.json#/div_filter_rtl_mirror",s$={type:{type:"string",enum:["rtl_mirror"]}},l$=["type"],bZ={type:o$,$description:r$,properties:s$,required:l$},yZ=Object.freeze(Object.defineProperty({__proto__:null,$description:r$,default:bZ,properties:s$,required:l$,type:o$},Symbol.toStringTag,{value:"Module"})),a$=[{$ref:"div-blur.json",$description:"translations.json#/div_filter"},{$ref:"div-filter-rtl-mirror.json",$description:"translations.json#/div_filter_rtl_mirror",platforms:["android","web","flutter"]}],wZ={anyOf:a$},$Z=Object.freeze(Object.defineProperty({__proto__:null,anyOf:a$,default:wZ},Symbol.toStringTag,{value:"Module"})),c$="object",d$="translations.json#/div_fixed_count",u$={value:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_fixed_count_value"},type:{type:"string",enum:["fixed"]}},p$=["android","ios","web"],_$=["value","type"],kZ={type:c$,$description:d$,properties:u$,platforms:p$,required:_$},jZ=Object.freeze(Object.defineProperty({__proto__:null,$description:d$,default:kZ,platforms:p$,properties:u$,required:_$,type:c$},Symbol.toStringTag,{value:"Module"})),f$="translations.json#/div_input_mask_fixed_length",m$=[{$ref:"div-input-mask-base.json"},{properties:{type:{type:"string",enum:["fixed_length"]},pattern:{type:"string",$description:"translations.json#/div_input_mask_fixed_length_pattern"},pattern_elements:{type:"array",items:{type:"object",$description:"translations.json#/div_input_mask_fixed_length_pattern_elements",properties:{key:{type:"string",minLength:1,maxLength:1,$description:"translations.json#/div_input_mask_fixed_length_pattern_elements_key"},regex:{type:"string",$description:"translations.json#/div_input_mask_fixed_length_pattern_elements_regex"},placeholder:{type:"string",minLength:1,maxLength:1,default_value:"_",$description:"translations.json#/div_input_mask_fixed_length_pattern_elements_placeholder"}},required:["key"]},minItems:1,$description:"translations.json#/div_input_mask_fixed_length_pattern_elements"},always_visible:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_input_mask_fixed_length_always_visible"}}}],g$=["android","ios","web"],h$=["type","pattern","pattern_elements"],SZ={$description:f$,allOf:m$,platforms:g$,required:h$},CZ=Object.freeze(Object.defineProperty({__proto__:null,$description:f$,allOf:m$,default:SZ,platforms:g$,required:h$},Symbol.toStringTag,{value:"Module"})),v$="object",b$="translations.json#/div_fixed_size",y$={divan:{forced_properties_order:["value"]}},w$={value:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_fixed_size_value"},unit:{$ref:"div-size-unit.json",$description:"translations.json#/div_fixed_size_unit",default_value:"dp"},type:{type:"string",enum:["fixed"]}},$$=["value","type"],TZ={type:v$,$description:b$,codegen:y$,properties:w$,required:$$},zZ=Object.freeze(Object.defineProperty({__proto__:null,$description:b$,codegen:y$,default:TZ,properties:w$,required:$$,type:v$},Symbol.toStringTag,{value:"Module"})),k$="object",j$="translations.json#/div_focus",S$={background:{type:"array",items:{$ref:"div-background.json"},$description:"translations.json#/div_focus_background"},border:{$ref:"div-border.json",$description:"translations.json#/div_focus_border"},on_focus:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_focus_on_focus"},on_blur:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_focus_on_blur"},next_focus_ids:{type:"object",$description:"translations.json#/div_focus_next_focus_ids",properties:{forward:{type:"string",platforms:["android","ios"]},right:{type:"string",platforms:["android"]},down:{type:"string",platforms:["android"]},left:{type:"string",platforms:["android"]},up:{type:"string",platforms:["android"]}}}},EZ={type:k$,$description:j$,properties:S$},AZ=Object.freeze(Object.defineProperty({__proto__:null,$description:j$,default:EZ,properties:S$,type:k$},Symbol.toStringTag,{value:"Module"})),C$="string",OZ={type:C$,enum:["light","medium","regular","bold"]},MZ=Object.freeze(Object.defineProperty({__proto__:null,default:OZ,type:C$},Symbol.toStringTag,{value:"Module"})),T$="object",z$="translations.json#/div_function_argument",E$={name:{type:"string",$description:"translations.json#/div_function_argument_name",supports_expressions:!1},type:{$ref:"div-evaluable-type.json",$description:"translations.json#/div_function_argument_type",supports_expressions:!1}},A$=["name","type"],PZ={type:T$,$description:z$,properties:E$,required:A$},IZ=Object.freeze(Object.defineProperty({__proto__:null,$description:z$,default:PZ,properties:E$,required:A$,type:T$},Symbol.toStringTag,{value:"Module"})),O$="object",M$="translations.json#/div_function",P$={name:{type:"string",$description:"translations.json#/div_function_name",pattern:"^[a-zA-Z_][a-zA-Z0-9_]*$",supports_expressions:!1},body:{type:"string",$description:"translations.json#/div_function_body",supports_expressions:!1},return_type:{$ref:"div-evaluable-type.json",$description:"translations.json#/div_function_return_type",supports_expressions:!1},arguments:{type:"array",$description:"translations.json#/div_function_argument",items:{$ref:"div-function-argument.json"}}},I$=["name","body","return_type","arguments"],DZ={type:O$,$description:M$,properties:P$,required:I$},VZ=Object.freeze(Object.defineProperty({__proto__:null,$description:M$,default:DZ,properties:P$,required:I$,type:O$},Symbol.toStringTag,{value:"Module"})),D$="translations.json#/div_gallery",V$={swift:{generate_optional_arguments:!1}},L$=[{$ref:"div-base.json"},{properties:{type:{type:"string",enum:["gallery"]},cross_content_alignment:{$description:"translations.json#/div_gallery_cross_content_alignment",type:"string",enum:["start","center","end"],default_value:"start"},column_count:{$ref:"common.json#/positive_integer",$description:"translations.json#/div_gallery_column_count",platforms:["android","ios","web"]},item_spacing:{$ref:"common.json#/non_negative_integer",default_value:"8",$description:"translations.json#/div_gallery_item_spacing"},cross_spacing:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_gallery_cross_spacing",platforms:["android","ios","web"]},scroll_mode:{type:"string",default_value:"default",enum:["paging","default"],$description:"translations.json#/div_gallery_scroll_mode",platforms:["android","ios","web"]},items:{type:"array",items:{$ref:"div.json"},$description:"translations.json#/div_gallery_items"},item_builder:{$ref:"div-collection-item-builder.json",$description:"translations.json#/div_collection_item_builder",platforms:["android","ios","web"]},orientation:{type:"string",default_value:"horizontal",enum:["horizontal","vertical"],$description:"translations.json#/div_gallery_orientation"},restrict_parent_scroll:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_gallery_restrict_parent_scroll",platforms:["android","web"]},default_item:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_gallery_default_item",platforms:["android","ios","web"]},scrollbar:{type:"string",enum:["none","auto"],default_value:"none",$description:"translations.json#/div_scrollbar",platforms:["web","android"]}}}],F$=["type"],LZ={$description:D$,codegen:V$,allOf:L$,required:F$},FZ=Object.freeze(Object.defineProperty({__proto__:null,$description:D$,allOf:L$,codegen:V$,default:LZ,required:F$},Symbol.toStringTag,{value:"Module"})),N$="translations.json#/div_gif_image",q$=[{$ref:"div-base.json"},{$ref:"div-actionable.json"},{$ref:"div-image-base.json"},{properties:{gif_url:{$ref:"common.json#/url",$description:"translations.json#/div_gif_image_gif_url"},type:{type:"string",enum:["gif"]}}}],R$=["android","ios","web"],B$=["gif_url","type"],NZ={$description:N$,allOf:q$,platforms:R$,required:B$},qZ=Object.freeze(Object.defineProperty({__proto__:null,$description:N$,allOf:q$,default:NZ,platforms:R$,required:B$},Symbol.toStringTag,{value:"Module"})),H$="translations.json#/div_grid",U$={swift:{generate_optional_arguments:!1}},J$=[{$ref:"div-base.json"},{$ref:"div-actionable.json"},{properties:{content_alignment_vertical:{$ref:"div-alignment-vertical.json",default_value:"top",$description:"translations.json#/div_grid_content_alignment_vertical"},content_alignment_horizontal:{$ref:"div-alignment-horizontal.json",default_value:"start",$description:"translations.json#/div_grid_content_alignment_horizontal"},items:{type:"array",items:{$ref:"div.json"},$description:"translations.json#/div_grid_items"},column_count:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_grid_column_count"},type:{type:"string",enum:["grid"]}}}],W$=["android","ios","web"],K$=["column_count","type"],RZ={$description:H$,codegen:U$,allOf:J$,platforms:W$,required:K$},BZ=Object.freeze(Object.defineProperty({__proto__:null,$description:H$,allOf:J$,codegen:U$,default:RZ,platforms:W$,required:K$},Symbol.toStringTag,{value:"Module"})),Y$="object",G$="translations.json#/div_image_background",X$={image_url:{$ref:"common.json#/url",$description:"translations.json#/div_image_background_image_url"},content_alignment_vertical:{$ref:"div-alignment-vertical.json",default_value:"center",$description:"translations.json#/div_image_background_content_alignment_vertical"},content_alignment_horizontal:{$ref:"div-alignment-horizontal.json",default_value:"center",$description:"translations.json#/div_image_background_content_alignment_horizontal"},scale:{$ref:"div-image-scale.json",default_value:"fill",$description:"translations.json#/div_image_background_scale"},alpha:{type:"number",default_value:"1.0",constraint:"number >= 0.0 && number <= 1.0",$description:"translations.json#/div_image_background_alpha"},preload_required:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_image_background_preload_required",platforms:["android"]},filters:{type:"array",items:{$ref:"div-filter.json"},$description:"translations.json#/div_filter"},type:{type:"string",enum:["image"]}},Z$=["image_url","type"],HZ={type:Y$,$description:G$,properties:X$,required:Z$},UZ=Object.freeze(Object.defineProperty({__proto__:null,$description:G$,default:HZ,properties:X$,required:Z$,type:Y$},Symbol.toStringTag,{value:"Module"})),x$={placeholder_color:{$ref:"common.json#/color",default_value:"#14000000",$description:"translations.json#/div_image_base_placeholder_color",platforms:["android","ios","web"]},scale:{$ref:"div-image-scale.json",default_value:"fill",$description:"translations.json#/div_image_base_scale"},content_alignment_vertical:{$ref:"div-alignment-vertical.json",default_value:"center",$description:"translations.json#/div_image_base_content_alignment_vertical"},content_alignment_horizontal:{$ref:"div-alignment-horizontal.json",default_value:"center",$description:"translations.json#/div_image_base_content_alignment_horizontal"},preview:{type:"string",$description:"translations.json#/div_image_base_preview",platforms:["android","ios","web"]},preload_required:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_image_base_preload_required",platforms:["android","web"]},aspect:{$ref:"div-aspect.json",$description:"translations.json#/div_aspect"}},JZ={properties:x$},WZ=Object.freeze(Object.defineProperty({__proto__:null,default:JZ,properties:x$},Symbol.toStringTag,{value:"Module"})),Q$="string",KZ={type:Q$,enum:["fill","no_scale","fit","stretch"]},YZ=Object.freeze(Object.defineProperty({__proto__:null,default:KZ,type:Q$},Symbol.toStringTag,{value:"Module"})),e4="translations.json#/div_image",t4={divan:{forced_properties_order:["image_url"]}},n4=[{$ref:"div-base.json"},{$ref:"div-actionable.json"},{$ref:"div-image-base.json"},{properties:{image_url:{$ref:"common.json#/url",$description:"translations.json#/div_image_image_url"},high_priority_preview_show:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_image_high_priority_preview_show",platforms:["android","ios"]},type:{type:"string",enum:["image"]},tint_mode:{$ref:"div-blend-mode.json",default_value:"source_in",$description:"translations.json#/div_image_tint_mode"},tint_color:{$ref:"common.json#/color",$description:"translations.json#/div_image_tint_color"},appearance_animation:{$ref:"div-fade-transition.json",$description:"translations.json#/div_image_appearance_animation",platforms:["android","ios","web"]},filters:{type:"array",items:{$ref:"div-filter.json"},$description:"translations.json#/div_filter"}}}],i4=["image_url","type"],GZ={$description:e4,codegen:t4,allOf:n4,required:i4},XZ=Object.freeze(Object.defineProperty({__proto__:null,$description:e4,allOf:n4,codegen:t4,default:GZ,required:i4},Symbol.toStringTag,{value:"Module"})),o4=[{$ref:"div-default-indicator-item-placement.json",$description:"translations.json#/div_indicator_item_placement_default"},{$ref:"div-stretch-indicator-item-placement.json",$description:"translations.json#/div_indicator_item_placement_stretch"}],ZZ={anyOf:o4},xZ=Object.freeze(Object.defineProperty({__proto__:null,anyOf:o4,default:ZZ},Symbol.toStringTag,{value:"Module"})),r4="translations.json#/div_indicator",s4=[{$ref:"div-base.json"},{properties:{type:{type:"string",enum:["indicator"]},pager_id:{$ref:"common.json#/id",$description:"translations.json#/div_indicator_pager_id"},items_placement:{$ref:"div-indicator-item-placement.json",$description:"translations.json#/div_indicator_item_placement"},space_between_centers:{$ref:"div-fixed-size.json",default_value:'{"type": "fixed","value":15}',$description:"translations.json#/div_indicator_space_between_centers",deprecated:!0},inactive_item_color:{$ref:"common.json#/color",default_value:"#33919cb5",$description:"translations.json#/div_indicator_inactive_item_color",deprecated:!0},active_item_color:{$ref:"common.json#/color",default_value:"#ffdc60",$description:"translations.json#/div_indicator_active_item_color",deprecated:!0},shape:{$ref:"div-shape.json",default_value:'{"type":"rounded_rectangle"}',$description:"translations.json#/div_indicator_shape",deprecated:!0},active_item_size:{$ref:"common.json#/positive_number",default_value:"1.3",$description:"translations.json#/div_indicator_active_item_size",deprecated:!0},minimum_item_size:{$ref:"common.json#/positive_number",default_value:"0.5",$description:"translations.json#/div_indicator_minimum_item_size",platforms:["android","ios"],deprecated:!0},active_shape:{$ref:"div-rounded-rectangle-shape.json",$description:"translations.json#/div_indicator_active_shape"},inactive_shape:{$ref:"div-rounded-rectangle-shape.json",$description:"translations.json#/div_indicator_inactive_shape"},inactive_minimum_shape:{$ref:"div-rounded-rectangle-shape.json",$description:"translations.json#/div_indicator_inactive_minimum_shape",platforms:["android","ios"]},animation:{type:"string",enum:["scale","worm","slider"],default_value:"scale",$description:"translations.json#/div_indicator_animation",platforms:["android","ios"]}}}],l4=["android","ios","web"],a4=["type"],QZ={$description:r4,allOf:s4,platforms:l4,required:a4},ex=Object.freeze(Object.defineProperty({__proto__:null,$description:r4,allOf:s4,default:QZ,platforms:l4,required:a4},Symbol.toStringTag,{value:"Module"})),c4="object",d4="translations.json#/div_infinity_count",u4={type:{type:"string",enum:["infinity"]}},p4=["android","ios","web"],_4=["type"],tx={type:c4,$description:d4,properties:u4,platforms:p4,required:_4},nx=Object.freeze(Object.defineProperty({__proto__:null,$description:d4,default:tx,platforms:p4,properties:u4,required:_4,type:c4},Symbol.toStringTag,{value:"Module"})),f4="object",m4="translations.json#/div_input_filters_expression",g4={type:{type:"string",enum:["expression"]},condition:{$ref:"common.json#/boolean_int",$description:"translations.json#/div_input_filters_expression_condition"}},h4=["android","ios","web"],v4=["type","condition"],ix={type:f4,$description:m4,properties:g4,platforms:h4,required:v4},ox=Object.freeze(Object.defineProperty({__proto__:null,$description:m4,default:ix,platforms:h4,properties:g4,required:v4,type:f4},Symbol.toStringTag,{value:"Module"})),b4="object",y4="translations.json#/div_input_filters_regex",w4={type:{type:"string",enum:["regex"]},pattern:{type:"string",$description:"translations.json#/div_input_filters_regex_pattern"}},$4=["android","ios","web"],k4=["type","pattern"],rx={type:b4,$description:y4,properties:w4,platforms:$4,required:k4},sx=Object.freeze(Object.defineProperty({__proto__:null,$description:y4,default:rx,platforms:$4,properties:w4,required:k4,type:b4},Symbol.toStringTag,{value:"Module"})),j4=[{$ref:"div-input-filter-regex.json",$description:"translations.json#/div_input_filters_regex"},{$ref:"div-input-filter-expression.json",$description:"translations.json#/div_input_filters_expression"}],lx={anyOf:j4},ax=Object.freeze(Object.defineProperty({__proto__:null,anyOf:j4,default:lx},Symbol.toStringTag,{value:"Module"})),S4="div-input-mask-base",C4="object",T4={documentation:{include_in_toc:!0}},z4={raw_text_variable:{$ref:"div-variable-name.json",$description:"translations.json#/div_input_mask_raw_text_variable"}},E4=["raw_text_variable"],cx={protocol_name:S4,type:C4,codegen:T4,properties:z4,required:E4},dx=Object.freeze(Object.defineProperty({__proto__:null,codegen:T4,default:cx,properties:z4,protocol_name:S4,required:E4,type:C4},Symbol.toStringTag,{value:"Module"})),A4=[{$ref:"div-fixed-length-input-mask.json",$description:"translations.json#/div_input_mask_fixed_length",platforms:["android","ios","web"]},{$ref:"div-currency-input-mask.json",$description:"translations.json#/div_input_mask_currency",platforms:["android","ios","web"]},{$ref:"div-phone-input-mask.json",$description:"translations.json#/div_input_mask_phone",platforms:["android","ios","web"]}],ux={anyOf:A4},px=Object.freeze(Object.defineProperty({__proto__:null,anyOf:A4,default:ux},Symbol.toStringTag,{value:"Module"})),O4="object",M4={label_id:{type:"string",$description:"translations.json#/div_input_validators_label_id"},allow_empty:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_input_validators_allow_empty"},variable:{$ref:"div-variable-name.json",$description:"translations.json#/div_input_validators_variable"}},P4=["android","ios","web"],_x={type:O4,properties:M4,platforms:P4},fx=Object.freeze(Object.defineProperty({__proto__:null,default:_x,platforms:P4,properties:M4,type:O4},Symbol.toStringTag,{value:"Module"})),I4="translations.json#/div_input_validators_expression",D4=[{$ref:"div-input-validator-base.json"},{properties:{type:{type:"string",enum:["expression"]},condition:{$ref:"common.json#/boolean_int",$description:"translations.json#/div_input_validators_expression_condition"}}}],V4=["type","condition","label_id","variable"],mx={$description:I4,allOf:D4,required:V4},gx=Object.freeze(Object.defineProperty({__proto__:null,$description:I4,allOf:D4,default:mx,required:V4},Symbol.toStringTag,{value:"Module"})),L4="translations.json#/div_input_validators_regex",F4=[{$ref:"div-input-validator-base.json"},{properties:{type:{type:"string",enum:["regex"]},pattern:{type:"string",$description:"translations.json#/div_input_validators_regex_pattern"}}}],N4=["type","pattern","label_id","variable"],hx={$description:L4,allOf:F4,required:N4},vx=Object.freeze(Object.defineProperty({__proto__:null,$description:L4,allOf:F4,default:hx,required:N4},Symbol.toStringTag,{value:"Module"})),q4=[{$ref:"div-input-validator-regex.json",$description:"translations.json#/div_input_validators_regex"},{$ref:"div-input-validator-expression.json",$description:"translations.json#/div_input_validators_expression"}],bx={anyOf:q4},yx=Object.freeze(Object.defineProperty({__proto__:null,anyOf:q4,default:bx},Symbol.toStringTag,{value:"Module"})),R4="translations.json#/div_input",B4={native_interface:{type:"object",properties:{color:{$ref:"common.json#/color",$description:"translations.json#/div_input_native_interface_color"}},required:["color"]}},H4=[{$ref:"div-base.json"},{properties:{type:{type:"string",enum:["input"]},font_size:{$ref:"common.json#/non_negative_integer",default_value:"12",$description:"translations.json#/div_font_size"},font_size_unit:{$ref:"div-size-unit.json",default_value:"sp",$description:"translations.json#/div_font_size_unit"},font_family:{type:"string",$description:"translations.json#/div_font_family",platforms:["android","ios","web"]},font_weight:{$ref:"div-font-weight.json",default_value:"regular",$description:"translations.json#/div_font_weight"},font_weight_value:{$ref:"common.json#/positive_integer",$description:"translations.json#/div_font_weight_value",platforms:["ios","web","android"]},filters:{type:"array",$description:"translations.json#/div_input_filters",platforms:["android","ios","web"],items:{$ref:"div-input-filter.json"}},text_color:{$ref:"common.json#/color",default_value:"#FF000000",$description:"translations.json#/div_text_color"},text_variable:{$ref:"div-variable-name.json",$description:"translations.json#/div_input_text_variable"},text_alignment_horizontal:{$ref:"div-alignment-horizontal.json",default_value:"start",$description:"translations.json#/div_text_text_alignment_horizontal"},text_alignment_vertical:{$ref:"div-alignment-vertical.json",default_value:"center",$description:"translations.json#/div_text_text_alignment_vertical"},line_height:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_input_line_height"},max_visible_lines:{$ref:"common.json#/positive_integer",$description:"translations.json#/div_input_max_visible_lines"},max_length:{$ref:"common.json#/positive_integer",$description:"translations.json#/div_input_max_length",platforms:["android","ios","web"]},letter_spacing:{type:"number",default_value:"0",$description:"translations.json#/div_input_letter_spacing",platforms:["android","ios","web"]},hint_text:{type:"string",$description:"translations.json#/div_input_hint_text"},hint_color:{$ref:"common.json#/color",default_value:"#73000000",$description:"translations.json#/div_input_hint_color"},highlight_color:{$ref:"common.json#/color",$description:"translations.json#/div_input_highlight_color",platforms:["android","ios","web"]},native_interface:{$ref:"#/definitions/native_interface",$description:"translations.json#/div_input_native_interface",platforms:["android"]},autocapitalization:{type:"string",enum:["auto","none","words","sentences","all_characters"],default_value:"auto",$description:"translations.json#/div_input_autocapitalization",platforms:["android","ios","web"]},enter_key_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_input_enter_key_actions",platforms:["ios","android","web"]},enter_key_type:{type:"string",enum:["default","go","search","send","done"],default_value:"default",$description:"translations.json#/div_input_enter_key_type",platforms:["ios","android","web"]},keyboard_type:{type:"string",enum:["single_line_text","multi_line_text","phone","number","email","uri","password"],default_value:"multi_line_text",$description:"translations.json#/div_input_keyboard_type"},select_all_on_focus:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_input_select_all_on_focus",platforms:["android","ios","web"]},mask:{$ref:"div-input-mask.json",$description:"translations.json#/div_input_mask",platforms:["android","ios","web"]},validators:{type:"array",$description:"translations.json#/div_input_validators",platforms:["android","ios","web"],items:{$ref:"div-input-validator.json"}},is_enabled:{$ref:"common.json#/boolean_int",default_value:"true",$description:"translations.json#/div_input_is_enabled"}}}],U4=["type","text_variable"],wx={$description:R4,definitions:B4,allOf:H4,required:U4},$x=Object.freeze(Object.defineProperty({__proto__:null,$description:R4,allOf:H4,default:wx,definitions:B4,required:U4},Symbol.toStringTag,{value:"Module"})),J4="object",W4={width_variable_name:{$ref:"div-variable-name.json",$description:"translations.json#/div_layout_provider_width_variable_name"},height_variable_name:{$ref:"div-variable-name.json",$description:"translations.json#/div_layout_provider_height_variable_name"}},kx={type:J4,properties:W4},jx=Object.freeze(Object.defineProperty({__proto__:null,default:kx,properties:W4,type:J4},Symbol.toStringTag,{value:"Module"})),K4="string",Y4="translations.json#/div_line_style",Sx={type:K4,$description:Y4,enum:["none","single"]},Cx=Object.freeze(Object.defineProperty({__proto__:null,$description:Y4,default:Sx,type:K4},Symbol.toStringTag,{value:"Module"})),G4="translations.json#/div_gradient_linear",X4={color_point:{type:"object",suppress_inline:!0,$description:"translations.json#/div_gradient_linear_color_point",properties:{color:{$ref:"common.json#/color",$description:"translations.json#/div_gradient_linear_color_point_color"},position:{type:"number",constraint:"number >= 0.0 && number <= 1.0",$description:"translations.json#/div_gradient_linear_color_point_position"}},required:["color","position"]}},Z4="object",x4={color_map:{type:"array",items:{$ref:"#/definitions/color_point"},minItems:2,platforms:["android","ios","web"],$description:"translations.json#/div_gradient_linear_color_map"},colors:{type:"array",items:{$ref:"common.json#/color"},minItems:2,$description:"translations.json#/div_gradient_colors"},angle:{type:"integer",constraint:"number >= 0 && number <= 360",default_value:"0",$description:"translations.json#/div_gradient_linear_angle"},type:{type:"string",enum:["gradient"]}},Q4=["type"],Tx={$description:G4,definitions:X4,type:Z4,properties:x4,required:Q4},zx=Object.freeze(Object.defineProperty({__proto__:null,$description:G4,default:Tx,definitions:X4,properties:x4,required:Q4,type:Z4},Symbol.toStringTag,{value:"Module"})),ek="object",tk="translations.json#/div_match_parent_size",nk={weight:{$ref:"common.json#/positive_number",$description:"translations.json#/div_match_parent_size_weight"},type:{type:"string",enum:["match_parent"]}},ik=["type"],Ex={type:ek,$description:tk,properties:nk,required:ik},Ax=Object.freeze(Object.defineProperty({__proto__:null,$description:tk,default:Ex,properties:nk,required:ik,type:ek},Symbol.toStringTag,{value:"Module"})),ok="object",rk="translations.json#/div_neighbour_page_size",sk={type:{type:"string",enum:["fixed"]},neighbour_page_width:{$ref:"div-fixed-size.json",$description:"translations.json#/div_neighbour_page_size_neighbour_page_width"}},lk=["android","ios","web"],ak=["type","neighbour_page_width"],Ox={type:ok,$description:rk,properties:sk,platforms:lk,required:ak},Mx=Object.freeze(Object.defineProperty({__proto__:null,$description:rk,default:Ox,platforms:lk,properties:sk,required:ak,type:ok},Symbol.toStringTag,{value:"Module"})),ck="object",dk="translations.json#/div_nine_patch_background",uk={image_url:{$ref:"common.json#/url",$description:"translations.json#/div_image_background_image_url"},insets:{$ref:"div-absolute-edge-insets.json",$description:"translations.json#/div_nine_patch_background_insets"},type:{type:"string",enum:["nine_patch_image"]}},pk=["android","ios","web"],_k=["image_url","type","insets"],Px={type:ck,$description:dk,properties:uk,platforms:pk,required:_k},Ix=Object.freeze(Object.defineProperty({__proto__:null,$description:dk,default:Px,platforms:pk,properties:uk,required:_k,type:ck},Symbol.toStringTag,{value:"Module"})),fk="translations.json#/div_number_animator",mk=[{$ref:"div-animator-base.json"},{properties:{type:{type:"string",enum:["number_animator"]},start_value:{type:"number",$description:"translations.json#/div_animator_start_value"},end_value:{type:"number",$description:"translations.json#/div_animator_end_value"}},required:["type","end_value"],platforms:["android","ios","web"]}],Dx={$description:fk,allOf:mk},Vx=Object.freeze(Object.defineProperty({__proto__:null,$description:fk,allOf:mk,default:Dx},Symbol.toStringTag,{value:"Module"})),gk="object",hk="translations.json#/div_page_content_size",vk={type:{type:"string",enum:["wrap_content"]}},bk=["ios","android","web"],yk=["type"],Lx={type:gk,$description:hk,properties:vk,platforms:bk,required:yk},Fx=Object.freeze(Object.defineProperty({__proto__:null,$description:hk,default:Lx,platforms:bk,properties:vk,required:yk,type:gk},Symbol.toStringTag,{value:"Module"})),wk="object",$k="translations.json#/div_page_size",kk={type:{type:"string",enum:["percentage"]},page_width:{$ref:"div-percentage-size.json",$description:"translations.json#/div_page_size_page_width"}},jk=["android","ios","web"],Sk=["type","page_width"],Nx={type:wk,$description:$k,properties:kk,platforms:jk,required:Sk},qx=Object.freeze(Object.defineProperty({__proto__:null,$description:$k,default:Nx,platforms:jk,properties:kk,required:Sk,type:wk},Symbol.toStringTag,{value:"Module"})),Ck="object",Tk="translations.json#/div_pager_page_transformation_overlap",zk={type:{type:"string",enum:["overlap"]},next_page_alpha:{type:"number",default_value:"1.0",constraint:"number >= 0.0 && number <= 1.0",$description:"translations.json#/div_pager_next_page_alpha"},previous_page_alpha:{type:"number",default_value:"1.0",constraint:"number >= 0.0 && number <= 1.0",$description:"translations.json#/div_pager_previous_page_alpha"},next_page_scale:{type:"number",default_value:"1.0",constraint:"number >= 0.0",$description:"translations.json#/div_pager_next_page_scale"},previous_page_scale:{type:"number",default_value:"1.0",constraint:"number >= 0.0",$description:"translations.json#/div_pager_previous_page_scale"},reversed_stacking_order:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_pager_page_transformation_overlap_reversed_stacking_order"},interpolator:{$ref:"div-animation-interpolator.json",default_value:"ease_in_out",$description:"translations.json#/div_pager_page_transformation_interpolator"}},Ek=["type"],Rx={type:Ck,$description:Tk,properties:zk,required:Ek},Bx=Object.freeze(Object.defineProperty({__proto__:null,$description:Tk,default:Rx,properties:zk,required:Ek,type:Ck},Symbol.toStringTag,{value:"Module"})),Ak="object",Ok="translations.json#/div_pager_page_transformation_slide",Mk={type:{type:"string",enum:["slide"]},next_page_alpha:{type:"number",default_value:"1.0",constraint:"number >= 0.0 && number <= 1.0",$description:"translations.json#/div_pager_next_page_alpha"},previous_page_alpha:{type:"number",default_value:"1.0",constraint:"number >= 0.0 && number <= 1.0",$description:"translations.json#/div_pager_previous_page_alpha"},next_page_scale:{type:"number",default_value:"1.0",constraint:"number >= 0.0",$description:"translations.json#/div_pager_next_page_scale"},previous_page_scale:{type:"number",default_value:"1.0",constraint:"number >= 0.0",$description:"translations.json#/div_pager_previous_page_scale"},interpolator:{$ref:"div-animation-interpolator.json",default_value:"ease_in_out",$description:"translations.json#/div_pager_page_transformation_interpolator"}},Pk=["type"],Hx={type:Ak,$description:Ok,properties:Mk,required:Pk},Ux=Object.freeze(Object.defineProperty({__proto__:null,$description:Ok,default:Hx,properties:Mk,required:Pk,type:Ak},Symbol.toStringTag,{value:"Module"})),Ik=[{$description:"translations.json#/div_pager_page_transformation_slide",$ref:"div-page-transformation-slide.json"},{$description:"translations.json#/div_pager_page_transformation_overlap",$ref:"div-page-transformation-overlap.json"}],Jx={anyOf:Ik},Wx=Object.freeze(Object.defineProperty({__proto__:null,anyOf:Ik,default:Jx},Symbol.toStringTag,{value:"Module"})),Dk=[{$ref:"div-page-size.json",$description:"translations.json#/div_pager_layout_mode_page_size"},{$ref:"div-neighbour-page-size.json",$description:"translations.json#/div_pager_layout_mode_neighbour_page_size"},{$ref:"div-page-content-size.json",$description:"translations.json#/div_page_content_size"}],Kx={anyOf:Dk},Yx=Object.freeze(Object.defineProperty({__proto__:null,anyOf:Dk,default:Kx},Symbol.toStringTag,{value:"Module"})),Vk="translations.json#/div_pager",Lk={item_alignment:{type:"string",enum:["start","center","end"]}},Fk={swift:{generate_optional_arguments:!1}},Nk=[{$ref:"div-base.json"},{properties:{type:{type:"string",enum:["pager"]},scroll_axis_alignment:{$ref:"#/definitions/item_alignment",default_value:"center",$description:"translations.json#/div_pager_scroll_axis_alignment",platforms:["android","ios"]},cross_axis_alignment:{$ref:"#/definitions/item_alignment",default_value:"start",$description:"translations.json#/div_pager_cross_axis_alignment",platforms:["android","ios","web"]},layout_mode:{$ref:"div-pager-layout-mode.json",$description:"translations.json#/div_pager_layout_mode",platforms:["android","ios","web"]},item_spacing:{$ref:"div-fixed-size.json",default_value:'{"type": "fixed","value":0}',$description:"translations.json#/div_pager_item_spacing",platforms:["android","ios","web"]},items:{type:"array",items:{$ref:"div.json"},$description:"translations.json#/div_pager_items"},item_builder:{$ref:"div-collection-item-builder.json",$description:"translations.json#/div_collection_item_builder",platforms:["android","ios","web"]},orientation:{type:"string",default_value:"horizontal",enum:["horizontal","vertical"],$description:"translations.json#/div_pager_orientation"},restrict_parent_scroll:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_pager_restrict_parent_scroll",platforms:["android","web"]},default_item:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_pager_default_item"},page_transformation:{$ref:"div-page-transformation.json",platforms:["android","ios"],$description:"translations.json#/div_pager_page_transformation"},infinite_scroll:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_pager_infinite_scroll",platforms:["android","ios"]}}}],qk=["type","layout_mode"],Gx={$description:Vk,definitions:Lk,codegen:Fk,allOf:Nk,required:qk},Xx=Object.freeze(Object.defineProperty({__proto__:null,$description:Vk,allOf:Nk,codegen:Fk,default:Gx,definitions:Lk,required:qk},Symbol.toStringTag,{value:"Module"})),Rk="object",Bk="translations.json#/div_patch",Hk=!1,Uk={divan:{plus_operator:!1,required_properties_at_factory:!0}},Jk={change:{type:"object",properties:{id:{$ref:"common.json#/id",$description:"translations.json#/div_patch_change_id"},items:{type:"array",items:{$ref:"div.json"},$description:"translations.json#/div_patch_change_items"}},required:["id"]}},Wk={mode:{type:"string",enum:["transactional","partial"],default_value:"partial",$description:"translations.json#/div_patch_mode",platforms:["android","web"]},changes:{type:"array",items:{$ref:"#/definitions/change"},minItems:1,$description:"translations.json#/div_patch_changes"},on_applied_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_patch_on_applied_actions",platforms:["android","ios","web"]},on_failed_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_patch_on_failed_actions",platforms:["android","web"]}},Kk=["changes"],Zx={type:Rk,$description:Bk,typescript_templatable:Hk,codegen:Uk,definitions:Jk,properties:Wk,required:Kk},xx=Object.freeze(Object.defineProperty({__proto__:null,$description:Bk,codegen:Uk,default:Zx,definitions:Jk,properties:Wk,required:Kk,type:Rk,typescript_templatable:Hk},Symbol.toStringTag,{value:"Module"})),Yk="object",Gk="translations.json#/div_percentage_size",Xk={value:{$ref:"common.json#/positive_number",$description:"translations.json#/div_percentage_size_value"},type:{type:"string",enum:["percentage"]}},Zk=["android","ios","web"],xk=["type","value"],Qx={type:Yk,$description:Gk,properties:Xk,platforms:Zk,required:xk},eQ=Object.freeze(Object.defineProperty({__proto__:null,$description:Gk,default:Qx,platforms:Zk,properties:Xk,required:xk,type:Yk},Symbol.toStringTag,{value:"Module"})),Qk="translations.json#/div_input_mask_phone",e5=[{$ref:"div-input-mask-base.json"},{properties:{type:{type:"string",enum:["phone"]}}}],t5=["type"],tQ={$description:Qk,allOf:e5,required:t5},nQ=Object.freeze(Object.defineProperty({__proto__:null,$description:Qk,allOf:e5,default:tQ,required:t5},Symbol.toStringTag,{value:"Module"})),n5="object",i5="translations.json#/div_pivot_fixed_short",o5={value:{type:"integer",$description:"translations.json#/div_pivot_fixed_value"},unit:{$ref:"div-size-unit.json",$description:"translations.json#/div_pivot_fixed_unit",default_value:"dp"},type:{type:"string",enum:["pivot-fixed"]}},r5=["android","ios","web"],iQ={type:n5,$description:i5,properties:o5,platforms:r5},oQ=Object.freeze(Object.defineProperty({__proto__:null,$description:i5,default:iQ,platforms:r5,properties:o5,type:n5},Symbol.toStringTag,{value:"Module"})),s5="object",l5="translations.json#/div_pivot_percentage_short",a5={value:{type:"number",$description:"translations.json#/div_pivot_percentage_value"},type:{type:"string",enum:["pivot-percentage"]}},c5=["android","ios","web"],d5=["type","value"],rQ={type:s5,$description:l5,properties:a5,platforms:c5,required:d5},sQ=Object.freeze(Object.defineProperty({__proto__:null,$description:l5,default:rQ,platforms:c5,properties:a5,required:d5,type:s5},Symbol.toStringTag,{value:"Module"})),u5=[{$ref:"div-pivot-fixed.json",$description:"translations.json#/div_pivot_fixed"},{$ref:"div-pivot-percentage.json",$description:"translations.json#/div_pivot_percentage"}],lQ={anyOf:u5},aQ=Object.freeze(Object.defineProperty({__proto__:null,anyOf:u5,default:lQ},Symbol.toStringTag,{value:"Module"})),p5="object",_5="translations.json#/div_point",f5={x:{$ref:"div-dimension.json",$description:"translations.json#/div_point_x"},y:{$ref:"div-dimension.json",$description:"translations.json#/div_point_y"}},m5=["android","ios","web"],g5=["x","y"],cQ={type:p5,$description:_5,properties:f5,platforms:m5,required:g5},dQ=Object.freeze(Object.defineProperty({__proto__:null,$description:_5,default:cQ,platforms:m5,properties:f5,required:g5,type:p5},Symbol.toStringTag,{value:"Module"})),h5=[{$ref:"div-radial-gradient-fixed-center.json",$description:"translations.json#/div_radial_gradient_fixed_center"},{$ref:"div-radial-gradient-relative-center.json",$description:"translations.json#/div_radial_gradient_relative_center"}],uQ={anyOf:h5},pQ=Object.freeze(Object.defineProperty({__proto__:null,anyOf:h5,default:uQ},Symbol.toStringTag,{value:"Module"})),v5="object",b5="translations.json#/div_radial_gradient_fixed_center",y5={value:{type:"integer",$description:"translations.json#/div_radial_gradient_fixed_center_value"},unit:{$ref:"div-size-unit.json",$description:"translations.json#/div_fixed_size_unit",default_value:"dp"},type:{type:"string",enum:["fixed"]}},w5=["value","type"],_Q={type:v5,$description:b5,properties:y5,required:w5},fQ=Object.freeze(Object.defineProperty({__proto__:null,$description:b5,default:_Q,properties:y5,required:w5,type:v5},Symbol.toStringTag,{value:"Module"})),$5=[{$ref:"div-fixed-size.json",$description:"translations.json#/div_size_fixed"},{$ref:"div-radial-gradient-relative-radius.json",$description:"translations.json#/div_radial_gradient_relative_radius"}],mQ={anyOf:$5},gQ=Object.freeze(Object.defineProperty({__proto__:null,anyOf:$5,default:mQ},Symbol.toStringTag,{value:"Module"})),k5="object",j5="translations.json#/div_radial_gradient_relative_center",S5={value:{type:"number",$description:"translations.json#/div_radial_gradient_relative_center_value"},type:{type:"string",enum:["relative"]}},C5=["value","type"],hQ={type:k5,$description:j5,properties:S5,required:C5},vQ=Object.freeze(Object.defineProperty({__proto__:null,$description:j5,default:hQ,properties:S5,required:C5,type:k5},Symbol.toStringTag,{value:"Module"})),T5="object",z5="translations.json#/div_radial_gradient_relative_radius",E5={value:{type:"string",$description:"translations.json#/div_radial_gradient_relative_radius_value",enum:["nearest_corner","farthest_corner","nearest_side","farthest_side"]},type:{type:"string",enum:["relative"]}},A5=["value","type"],bQ={type:T5,$description:z5,properties:E5,required:A5},yQ=Object.freeze(Object.defineProperty({__proto__:null,$description:z5,default:bQ,properties:E5,required:A5,type:T5},Symbol.toStringTag,{value:"Module"})),O5="object",M5="translations.json#/div_gradient_radial",P5={colors:{type:"array",items:{$ref:"common.json#/color"},minItems:2,$description:"translations.json#/div_gradient_colors"},radius:{$ref:"div-radial-gradient-radius.json",default_value:'{"type": "relative", "value": "farthest_corner" }',$description:"translations.json#/div_gradient_radial_radius"},center_x:{$ref:"div-radial-gradient-center.json",default_value:'{"type": "relative", "value": 0.5 }',$description:"translations.json#/div_gradient_radial_center_x"},center_y:{$ref:"div-radial-gradient-center.json",default_value:'{"type": "relative", "value": 0.5 }',$description:"translations.json#/div_gradient_radial_center_y"},type:{type:"string",enum:["radial_gradient"]}},I5=["colors","type"],wQ={type:O5,$description:M5,properties:P5,required:I5},$Q=Object.freeze(Object.defineProperty({__proto__:null,$description:M5,default:wQ,properties:P5,required:I5,type:O5},Symbol.toStringTag,{value:"Module"})),D5="translations.json#/div_rounded_rectangle_shape",V5=[{$ref:"div-shape-base.json"},{type:"object",properties:{item_width:{$ref:"div-fixed-size.json",default_value:'{"type":"fixed","value":10}',$description:"translations.json#/div_rounded_rectangle_shape_item_width"},item_height:{$ref:"div-fixed-size.json",default_value:'{"type":"fixed","value":10}',$description:"translations.json#/div_rounded_rectangle_shape_item_height"},corner_radius:{$ref:"div-fixed-size.json",default_value:'{"type":"fixed","value":5}',$description:"translations.json#/div_rounded_rectangle_shape_corner_radius"},type:{type:"string",enum:["rounded_rectangle"]}}}],L5=["android","ios","web"],F5=["type"],kQ={$description:D5,allOf:V5,platforms:L5,required:F5},jQ=Object.freeze(Object.defineProperty({__proto__:null,$description:D5,allOf:V5,default:kQ,platforms:L5,required:F5},Symbol.toStringTag,{value:"Module"})),N5="translations.json#/div_scale_transition",q5=[{$ref:"div-transition-base.json"},{properties:{type:{type:"string",enum:["scale"]},scale:{type:"number",constraint:"number >= 0.0",default_value:"0.0",$description:"translations.json#/div_scale_transition_scale"},pivot_x:{type:"number",constraint:"number >= 0.0 && number <= 1.0",default_value:"0.5",$description:"translations.json#/div_scale_transition_pivot_x"},pivot_y:{type:"number",constraint:"number >= 0.0 && number <= 1.0",default_value:"0.5",$description:"translations.json#/div_scale_transition_pivot_y"}}}],R5=["type"],SQ={$description:N5,allOf:q5,required:R5},CQ=Object.freeze(Object.defineProperty({__proto__:null,$description:N5,allOf:q5,default:SQ,required:R5},Symbol.toStringTag,{value:"Module"})),B5="translations.json#/div_select",H5={option:{type:"object",properties:{text:{type:"string",$description:"translations.json#/div_select_option_text"},value:{type:"string",$description:"translations.json#/div_select_option_value"}},required:["value"]}},U5=[{$ref:"div-base.json"},{properties:{type:{type:"string",enum:["select"]},options:{type:"array",items:{$ref:"#/definitions/option",$description:"translations.json#/div_select_option"},minItems:1},value_variable:{$ref:"div-variable-name.json",$description:"translations.json#/div_select_value_variable"},font_size:{$ref:"common.json#/non_negative_integer",default_value:"12",$description:"translations.json#/div_font_size"},font_size_unit:{$ref:"div-size-unit.json",default_value:"sp",$description:"translations.json#/div_font_size_unit",platforms:["android","ios"]},font_family:{type:"string",$description:"translations.json#/div_font_family"},font_weight:{$ref:"div-font-weight.json",default_value:"regular",$description:"translations.json#/div_font_weight"},font_weight_value:{$ref:"common.json#/positive_integer",$description:"translations.json#/div_font_weight_value",platforms:["ios","web","android"]},hint_text:{type:"string",$description:"translations.json#/div_select_hint_text"},hint_color:{$ref:"common.json#/color",default_value:"#73000000",$description:"translations.json#/div_select_hint_color"},line_height:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_select_line_height"},text_color:{$ref:"common.json#/color",default_value:"#FF000000",$description:"translations.json#/div_text_color"},letter_spacing:{type:"number",default_value:"0",$description:"translations.json#/div_select_letter_spacing"}}}],J5=["android","ios","web"],W5=["type","options","value_variable"],TQ={$description:B5,definitions:H5,allOf:U5,platforms:J5,required:W5},zQ=Object.freeze(Object.defineProperty({__proto__:null,$description:B5,allOf:U5,default:TQ,definitions:H5,platforms:J5,required:W5},Symbol.toStringTag,{value:"Module"})),K5="translations.json#/div_separator",Y5={style:{type:"object",properties:{color:{$ref:"common.json#/color",default_value:"#14000000",$description:"translations.json#/div_separator_style_color"},orientation:{type:"string",enum:["vertical","horizontal"],default_value:"horizontal",$description:"translations.json#/div_separator_style_orientation"}}}},G5=[{$ref:"div-base.json"},{$ref:"div-actionable.json"},{properties:{delimiter_style:{$ref:"#/definitions/style",$description:"translations.json#/div_separator_delimiter_style"},type:{type:"string",enum:["separator"]}},platforms:["android","ios","web"],required:["type"]}],EQ={$description:K5,definitions:Y5,allOf:G5},AQ=Object.freeze(Object.defineProperty({__proto__:null,$description:K5,allOf:G5,default:EQ,definitions:Y5},Symbol.toStringTag,{value:"Module"})),X5="object",Z5="translations.json#/div_shadow",x5={color:{$ref:"common.json#/color",$description:"translations.json#/div_shadow_color",default_value:"#000000"},offset:{$ref:"div-point.json",$description:"translations.json#/div_shadow_offset"},blur:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_shadow_blur",default_value:"2"},alpha:{type:"number",default_value:"0.19",constraint:"number >= 0.0 && number <= 1.0",$description:"translations.json#/div_shadow_alpha"}},Q5=["offset"],OQ={type:X5,$description:Z5,properties:x5,required:Q5},MQ=Object.freeze(Object.defineProperty({__proto__:null,$description:Z5,default:OQ,properties:x5,required:Q5,type:X5},Symbol.toStringTag,{value:"Module"})),e6={background_color:{$ref:"common.json#/color",$description:"translations.json#/div_shape_base_background_color"},stroke:{$ref:"div-stroke.json",$description:"translations.json#/div_shape_base_stroke"}},PQ={properties:e6},IQ=Object.freeze(Object.defineProperty({__proto__:null,default:PQ,properties:e6},Symbol.toStringTag,{value:"Module"})),t6="object",n6="translations.json#/div_shape_drawable",i6={shape:{$ref:"div-shape.json",$description:"translations.json#/div_shape_drawable_shape"},color:{$ref:"common.json#/color",$description:"translations.json#/div_shape_drawable_color",deprecated:!0},stroke:{$ref:"div-stroke.json",$description:"translations.json#/div_shape_drawable_stroke",deprecated:!0},type:{type:"string",enum:["shape_drawable"]}},o6=["android","ios","web"],r6=["type","shape","color"],DQ={type:t6,$description:n6,properties:i6,platforms:o6,required:r6},VQ=Object.freeze(Object.defineProperty({__proto__:null,$description:n6,default:DQ,platforms:o6,properties:i6,required:r6,type:t6},Symbol.toStringTag,{value:"Module"})),s6=[{$ref:"div-rounded-rectangle-shape.json",$description:"translations.json#/div_rounded_rectangle_shape"},{$ref:"div-circle-shape.json",$description:"translations.json#/div_circle_shape",platforms:["android","web"]}],LQ={anyOf:s6},FQ=Object.freeze(Object.defineProperty({__proto__:null,anyOf:s6,default:LQ},Symbol.toStringTag,{value:"Module"})),l6="div-sight-action",a6="object",c6={documentation:{include_in_toc:!1}},d6=[{$ref:"div-action-base.json"},{properties:{log_limit:{$ref:"common.json#/non_negative_integer",default_value:"1",$description:"translations.json#/div_log_limit"}}}],u6=["android","ios","web"],p6=["log_id"],NQ={protocol_name:l6,type:a6,codegen:c6,allOf:d6,platforms:u6,required:p6},qQ=Object.freeze(Object.defineProperty({__proto__:null,allOf:d6,codegen:c6,default:NQ,platforms:u6,protocol_name:l6,required:p6,type:a6},Symbol.toStringTag,{value:"Module"})),_6="string",f6="translations.json#/div_size_unit",m6=["android","ios"],RQ={type:_6,enum:["dp","sp","px"],$description:f6,platforms:m6},BQ=Object.freeze(Object.defineProperty({__proto__:null,$description:f6,default:RQ,platforms:m6,type:_6},Symbol.toStringTag,{value:"Module"})),g6=[{$ref:"div-fixed-size.json",$description:"translations.json#/div_size_fixed"},{$ref:"div-match-parent-size.json",$description:"translations.json#/div_size_match_parent"},{$ref:"div-wrap-content-size.json",$description:"translations.json#/div_size_wrap_content"}],HQ={anyOf:g6},UQ=Object.freeze(Object.defineProperty({__proto__:null,anyOf:g6,default:HQ},Symbol.toStringTag,{value:"Module"})),h6="translations.json#/div_slide_transition",v6=[{$ref:"div-transition-base.json"},{properties:{type:{type:"string",enum:["slide"]},edge:{type:"string",enum:["left","top","right","bottom"],default_value:"bottom",$description:"translations.json#/div_slide_transition_edge"},distance:{$ref:"div-dimension.json",$description:"translations.json#/div_slide_transition_distance"}}}],b6=["type"],JQ={$description:h6,allOf:v6,required:b6},WQ=Object.freeze(Object.defineProperty({__proto__:null,$description:h6,allOf:v6,default:JQ,required:b6},Symbol.toStringTag,{value:"Module"})),y6="translations.json#/div_slider",w6={text_style:{type:"object",properties:{font_size:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_font_size"},font_size_unit:{$ref:"div-size-unit.json",default_value:"sp",platforms:["android","ios"]},font_weight:{$ref:"div-font-weight.json",default_value:"regular",$description:"translations.json#/div_font_weight"},font_weight_value:{$ref:"common.json#/positive_integer",$description:"translations.json#/div_font_weight_value",platforms:["ios","web","android"]},text_color:{$ref:"common.json#/color",default_value:"#FF000000",$description:"translations.json#/div_text_color"},offset:{$ref:"div-point.json",$description:"translations.json#/div_slider_text_style_offset"}},required:["font_size"]},range:{type:"object",properties:{start:{type:"integer",$description:"translations.json#/div_slider_range_start"},end:{type:"integer",$description:"translations.json#/div_slider_range_end"},track_active_style:{$ref:"div-drawable.json",$description:"translations.json#/div_slider_track_active_style"},track_inactive_style:{$ref:"div-drawable.json",$description:"translations.json#/div_slider_track_inactive_style"},margins:{$ref:"div-edge-insets.json",$description:"translations.json#/div_slider_range_margins"}}}},$6=[{$ref:"div-base.json"},{properties:{type:{type:"string",enum:["slider"]},min_value:{type:"integer",default_value:"0",$description:"translations.json#/div_slider_min_value"},max_value:{type:"integer",default_value:"100",$description:"translations.json#/div_slider_max_value"},thumb_value_variable:{$ref:"div-variable-name.json",$description:"translations.json#/div_slider_thumb_value_variable"},thumb_secondary_value_variable:{$ref:"div-variable-name.json",$description:"translations.json#/div_slider_thumb_secondary_value_variable"},thumb_style:{$ref:"div-drawable.json",$description:"translations.json#/div_slider_thumb_style"},thumb_secondary_style:{$ref:"div-drawable.json",$description:"translations.json#/div_slider_thumb_secondary_style"},thumb_text_style:{$ref:"#/definitions/text_style",$description:"translations.json#/div_slider_thumb_text_style"},thumb_secondary_text_style:{$ref:"#/definitions/text_style",$description:"translations.json#/div_slider_thumb_secondary_text_style"},track_active_style:{$ref:"div-drawable.json",$description:"translations.json#/div_slider_track_active_style"},tick_mark_active_style:{$ref:"div-drawable.json",$description:"translations.json#/div_slider_tick_mark_active_style"},track_inactive_style:{$ref:"div-drawable.json",$description:"translations.json#/div_slider_track_inactive_style"},tick_mark_inactive_style:{$ref:"div-drawable.json",$description:"translations.json#/div_slider_tick_mark_inactive_style"},ranges:{type:"array",items:{$ref:"#/definitions/range"},$description:"translations.json#/div_slider_ranges",platforms:["android","ios","web"]},secondary_value_accessibility:{$ref:"div-accessibility.json",$description:"translations.json#/div_slider_secondary_value_accessibility",platforms:["web"]},is_enabled:{$ref:"common.json#/boolean_int",default_value:"true",$description:"translations.json#/div_slider_is_enabled",platforms:["android","web"]}}}],k6=["android","ios","web"],j6=["type","thumb_style","track_active_style","track_inactive_style"],KQ={$description:y6,definitions:w6,allOf:$6,platforms:k6,required:j6},YQ=Object.freeze(Object.defineProperty({__proto__:null,$description:y6,allOf:$6,default:KQ,definitions:w6,platforms:k6,required:j6},Symbol.toStringTag,{value:"Module"})),S6="object",C6="translations.json#/div_solid_background",T6={divan:{forced_properties_order:["color"]}},z6={color:{$ref:"common.json#/color",$description:"translations.json#/div_solid_background_color"},type:{type:"string",enum:["solid"]}},E6=["color","type"],GQ={type:S6,$description:C6,codegen:T6,properties:z6,required:E6},XQ=Object.freeze(Object.defineProperty({__proto__:null,$description:C6,codegen:T6,default:GQ,properties:z6,required:E6,type:S6},Symbol.toStringTag,{value:"Module"})),A6="translations.json#/div_state",O6={swift:{generate_optional_arguments:!1}},M6={div_state:{type:"object",alias_divan:"item",codegen:{swift:{generate_optional_arguments:!1}},properties:{state_id:{$ref:"common.json#/id",$description:"translations.json#/div_state_div_state_state_id"},div:{$ref:"div.json",$description:"translations.json#/div_state_div_state_div"},animation_in:{$ref:"div-animation.json",$description:"translations.json#/div_state_div_state_animation_in",platforms:["android","ios"],deprecated:!0},animation_out:{$ref:"div-animation.json",$description:"translations.json#/div_state_div_state_animation_out",platforms:["android","ios"],deprecated:!0},swipe_out_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_state_div_state_swipe_out_actions",platforms:["android"],deprecated:!0}},required:["state_id"]}},P6=[{$ref:"div-base.json"},{properties:{type:{type:"string",enum:["state"]},states:{type:"array",items:{$ref:"#/definitions/div_state"},minItems:1,$description:"translations.json#/div_state_states"},state_id_variable:{$ref:"div-variable-name.json",$description:"translations.json#/div_state_state_id_variable"},div_id:{$ref:"common.json#/id",$description:"translations.json#/div_state_div_id",deprecated:!0},default_state_id:{type:"string",$description:"translations.json#/div_state_default_state_id"},transition_animation_selector:{$ref:"div-transition-selector.json",default_value:"state_change",$description:"translations.json#/div_state_transition_animation_selector",deprecated:!0},clip_to_bounds:{$ref:"common.json#/boolean_int",default_value:"true",$description:"translations.json#/div_clip_to_bounds",platforms:["android","web"]}},required:["type","states"]}],ZQ={$description:A6,codegen:O6,definitions:M6,allOf:P6},xQ=Object.freeze(Object.defineProperty({__proto__:null,$description:A6,allOf:P6,codegen:O6,default:ZQ,definitions:M6},Symbol.toStringTag,{value:"Module"})),I6="object",D6="translations.json#/div_match_parent_size",V6={item_spacing:{$ref:"div-fixed-size.json",default_value:'{"type": "fixed","value":5}',$description:"translations.json#/div_indicator_space_between_centers"},max_visible_items:{$ref:"common.json#/positive_integer",default_value:"10",$description:"translations.json#/div_indicator_max_visible_items"},type:{type:"string",enum:["stretch"]}},L6=["android","ios","web"],F6=["type"],QQ={type:I6,$description:D6,properties:V6,platforms:L6,required:F6},eee=Object.freeze(Object.defineProperty({__proto__:null,$description:D6,default:QQ,platforms:L6,properties:V6,required:F6,type:I6},Symbol.toStringTag,{value:"Module"})),N6="object",q6="translations.json#/div_stroke_style_dashed",R6=["android","ios","web"],B6={type:{type:"string",enum:["dashed"]}},H6=["type"],tee={type:N6,$description:q6,platforms:R6,properties:B6,required:H6},nee=Object.freeze(Object.defineProperty({__proto__:null,$description:q6,default:tee,platforms:R6,properties:B6,required:H6,type:N6},Symbol.toStringTag,{value:"Module"})),U6="object",J6="translations.json#/div_stroke_style_solid",W6=["android","ios","web","flutter"],K6={type:{type:"string",enum:["solid"]}},Y6=["type"],iee={type:U6,$description:J6,platforms:W6,properties:K6,required:Y6},oee=Object.freeze(Object.defineProperty({__proto__:null,$description:J6,default:iee,platforms:W6,properties:K6,required:Y6,type:U6},Symbol.toStringTag,{value:"Module"})),G6="translations.json#/div_stroke_style",X6=[{$ref:"div-stroke-style-solid.json"},{$ref:"div-stroke-style-dashed.json"}],ree={$description:G6,anyOf:X6},see=Object.freeze(Object.defineProperty({__proto__:null,$description:G6,anyOf:X6,default:ree},Symbol.toStringTag,{value:"Module"})),Z6="object",x6="translations.json#/div_stroke",Q6={style:{$ref:"div-stroke-style.json",$description:"translations.json#/div_stroke_style",default_value:'{"type": "solid"}',platforms:["android","ios","web"]},width:{$ref:"common.json#/non_negative_number",default_value:"1",$description:"translations.json#/div_stroke_width"},color:{$ref:"common.json#/color",$description:"translations.json#/div_stroke_color"},unit:{$ref:"div-size-unit.json",default_value:"dp"}},ej=["color"],lee={type:Z6,$description:x6,properties:Q6,required:ej},aee=Object.freeze(Object.defineProperty({__proto__:null,$description:x6,default:lee,properties:Q6,required:ej,type:Z6},Symbol.toStringTag,{value:"Module"})),tj="translations.json#/div_switch",nj=[{$ref:"div-base.json"},{properties:{type:{type:"string",enum:["switch"]},is_on_variable:{$ref:"div-variable-name.json",$description:"translations.json#/div_switch_is_on_variable"},is_enabled:{$ref:"common.json#/boolean_int",default_value:"true",$description:"translations.json#/div_switch_is_enabled"},on_color:{$ref:"common.json#/color",$description:"translations.json#/div_switch_on_color"}}}],ij=["ios","android","web"],oj=["type","is_on_variable"],cee={$description:tj,allOf:nj,platforms:ij,required:oj},dee=Object.freeze(Object.defineProperty({__proto__:null,$description:tj,allOf:nj,default:cee,platforms:ij,required:oj},Symbol.toStringTag,{value:"Module"})),rj="translations.json#/div_tabs",sj={swift:{generate_optional_arguments:!1}},lj={item:{type:"object",codegen:{swift:{generate_optional_arguments:!1}},properties:{title:{type:"string",$description:"translations.json#/div_tabs_item_title"},title_click_action:{$ref:"div-action.json",$description:"translations.json#/div_tabs_item_title_click_action"},div:{$ref:"div.json",$description:"translations.json#/div_tabs_item_div"}},required:["title","div"],$description:"translations.json#/div_tabs_item"},delimiter_style:{type:"object",properties:{image_url:{$ref:"common.json#/url",$description:"translations.json#/div_image_image_url"},width:{$ref:"div-fixed-size.json",default_value:'{"type": "fixed", "value": 12}',$description:"translations.json#/div_base_width"},height:{$ref:"div-fixed-size.json",default_value:'{"type": "fixed", "value": 12}',$description:"translations.json#/div_base_height"}},required:["image_url"]}},aj=[{$ref:"div-base.json"},{properties:{type:{type:"string",enum:["tabs"]},title_paddings:{$ref:"div-edge-insets.json",default_value:'{"left": 12,"right": 12,"top": 0,"bottom": 8}',$description:"translations.json#/div_tabs_title_paddings"},separator_paddings:{$ref:"div-edge-insets.json",default_value:'{"left": 12,"right": 12,"top": 0,"bottom": 0}',$description:"translations.json#/div_tabs_separator_paddings"},tab_title_style:{type:"object",properties:{font_size:{$ref:"common.json#/non_negative_integer",default_value:"12",$description:"translations.json#/div_tabs_tab_title_style_font_size"},font_size_unit:{$ref:"div-size-unit.json",default_value:"sp",$description:"translations.json#/div_tabs_tab_title_style_font_size_unit",platforms:["android","ios"]},paddings:{$ref:"div-edge-insets.json",default_value:'{"left": 8,"right": 8,"top": 6,"bottom": 6}',$description:"translations.json#/div_tabs_tab_title_style_paddings"},item_spacing:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_tabs_tab_title_style_item_spacing"},line_height:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_tabs_tab_title_style_line_height"},letter_spacing:{type:"number",default_value:"0",$description:"translations.json#/div_tabs_tab_title_style_letter_spacing"},font_weight:{$ref:"div-font-weight.json",default_value:"regular",$description:"translations.json#/div_tabs_tab_title_style_font_weight",deprecated:!0},active_font_weight:{$ref:"div-font-weight.json",$description:"translations.json#/div_tabs_tab_title_style_active_font_weight"},inactive_font_weight:{$ref:"div-font-weight.json",$description:"translations.json#/div_tabs_tab_title_style_inactive_font_weight"},font_family:{type:"string",$description:"translations.json#/div_font_family"},active_text_color:{$ref:"common.json#/color",default_value:"#CC000000",$description:"translations.json#/div_tabs_tab_title_style_active_text_color"},inactive_text_color:{$ref:"common.json#/color",default_value:"#80000000",$description:"translations.json#/div_tabs_tab_title_style_inactive_text_color"},active_background_color:{$ref:"common.json#/color",default_value:"#FFFFDC60",$description:"translations.json#/div_tabs_tab_title_style_active_background_color"},inactive_background_color:{$ref:"common.json#/color",$description:"translations.json#/div_tabs_tab_title_style_inactive_background_color"},corner_radius:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_tabs_tab_title_style_corner_radius"},corners_radius:{$ref:"div-corners-radius.json",$description:"translations.json#/div_tabs_tab_title_style_corners_radius"},animation_type:{type:"string",enum:["slide","fade","none"],default_value:"slide",$description:"translations.json#/div_tabs_tab_title_style_animation_type",platforms:["android","ios"]},animation_duration:{$ref:"common.json#/non_negative_integer",default_value:"300",$description:"translations.json#/div_tabs_tab_title_style_animation_duration"}},$description:"translations.json#/div_tabs_tab_title_style"},tab_title_delimiter:{$ref:"#/definitions/delimiter_style",$description:"translations.json#/div_tabs_tab_title_delimiter_delimiter_style",platforms:["android","web"]},selected_tab:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_tabs_selected_tab"},has_separator:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_tabs_has_separator"},switch_tabs_by_content_swipe_enabled:{$ref:"common.json#/boolean_int",default_value:"true",$description:"translations.json#/div_tabs_switch_tabs_by_content_swipe_enabled"},separator_color:{$ref:"common.json#/color",default_value:"#14000000",$description:"translations.json#/div_tabs_separator_color"},items:{type:"array",items:{$ref:"#/definitions/item"},minItems:1,$description:"translations.json#/div_tabs_items"},dynamic_height:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_tabs_dynamic_height",platforms:["android","ios"]},restrict_parent_scroll:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_tabs_restrict_parent_scroll",platforms:["android","web"]}}}],cj=["android","ios","web"],dj=["type","items"],uee={$description:rj,codegen:sj,definitions:lj,allOf:aj,platforms:cj,required:dj},pee=Object.freeze(Object.defineProperty({__proto__:null,$description:rj,allOf:aj,codegen:sj,default:uee,definitions:lj,platforms:cj,required:dj},Symbol.toStringTag,{value:"Module"})),uj="string",_ee={type:uj,enum:["top","center","bottom","baseline"]},fee=Object.freeze(Object.defineProperty({__proto__:null,default:_ee,type:uj},Symbol.toStringTag,{value:"Module"})),pj=[{$ref:"div-linear-gradient.json",$description:"translations.json#/div_gradient_linear",platforms:["android","ios","web"]},{$ref:"div-radial-gradient.json",$description:"translations.json#/div_gradient_radial",platforms:["android","ios","web"]}],mee={anyOf:pj},gee=Object.freeze(Object.defineProperty({__proto__:null,anyOf:pj,default:mee},Symbol.toStringTag,{value:"Module"})),_j=[{$ref:"div-solid-background.json",$description:"translations.json#/div_background_solid"},{$ref:"div-cloud-background.json",$description:"translations.json#/div_cloud_background"}],hee={anyOf:_j},vee=Object.freeze(Object.defineProperty({__proto__:null,anyOf:_j,default:hee},Symbol.toStringTag,{value:"Module"})),fj="object",mj="translations.json#/div_text_range_border",gj={stroke:{$ref:"div-stroke.json",$description:"translations.json#/div_border_stroke"},corner_radius:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_border_corner_radius"}},hj=["android","ios","web"],bee={type:fj,$description:mj,properties:gj,platforms:hj},yee=Object.freeze(Object.defineProperty({__proto__:null,$description:mj,default:bee,platforms:hj,properties:gj,type:fj},Symbol.toStringTag,{value:"Module"})),vj="object",bj={is_enabled:{type:"boolean",$description:"translations.json#/div_text_range_mask_is_enabled",default_value:"true"}},wee={type:vj,properties:bj},$ee=Object.freeze(Object.defineProperty({__proto__:null,default:wee,properties:bj,type:vj},Symbol.toStringTag,{value:"Module"})),yj=[{$ref:"div-text-range-mask-base.json"},{$description:"translations.json#/div_text_range_mask_particles",properties:{type:{type:"string",enum:["particles"]},color:{$ref:"common.json#/color",$description:"translations.json#/div_text_range_mask_particles_color"},is_animated:{type:"boolean",default_value:"false",$description:"translations.json#/div_text_range_mask_particles_animated"},particle_size:{$ref:"div-fixed-size.json",$description:"translations.json#/div_text_range_mask_particles_size",default_value:'{"type":"fixed","value":1}'},density:{type:"number",default_value:"0.8",$description:"translations.json#/div_text_range_mask_particles_density"}},platforms:[],required:["type","color"]}],kee={allOf:yj},jee=Object.freeze(Object.defineProperty({__proto__:null,allOf:yj,default:kee},Symbol.toStringTag,{value:"Module"})),wj=[{$ref:"div-text-range-mask-base.json"},{$description:"translations.json#/div_text_range_mask_solid",properties:{type:{type:"string",enum:["solid"]},color:{$ref:"common.json#/color",$description:"translations.json#/div_solid_background_color"}},platforms:[],required:["color","type"]}],See={allOf:wj},Cee=Object.freeze(Object.defineProperty({__proto__:null,allOf:wj,default:See},Symbol.toStringTag,{value:"Module"})),$j=[{$ref:"div-text-range-mask-particles.json"},{$ref:"div-text-range-mask-solid.json"}],Tee={anyOf:$j},zee=Object.freeze(Object.defineProperty({__proto__:null,anyOf:$j,default:Tee},Symbol.toStringTag,{value:"Module"})),kj="translations.json#/div_text",jj={divan:{forced_properties_order:["text"]}},Sj={range:{type:"object",platforms:["android","ios","web"],properties:{start:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_text_range_start"},end:{$ref:"common.json#/positive_integer",$description:"translations.json#/div_text_range_end"},alignment_vertical:{$ref:"div-text-alignment-vertical.json",$description:"translations.json#/div_text_range_alignment_vertical",platforms:["android","web"]},baseline_offset:{type:"number",$description:"translations.json#/div_text_range_baseline_offset",default_value:"0",platforms:["android","ios","web"]},font_size:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_font_size"},font_family:{type:"string",$description:"translations.json#/div_font_family"},font_size_unit:{$ref:"div-size-unit.json",default_value:"sp",$description:"translations.json#/div_font_size_unit",platforms:["android","ios"]},font_feature_settings:{type:"string",$description:"translations.json#/div_font_feature_settings",platforms:["android","ios","web"]},letter_spacing:{type:"number",$description:"translations.json#/div_text_range_letter_spacing"},font_weight:{$ref:"div-font-weight.json",$description:"translations.json#/div_font_weight"},font_weight_value:{$ref:"common.json#/positive_integer",$description:"translations.json#/div_font_weight_value",platforms:["ios","web","android"]},text_color:{$ref:"common.json#/color",$description:"translations.json#/div_text_color"},underline:{$ref:"div-line-style.json",$description:"translations.json#/div_text_range_underline"},strike:{$ref:"div-line-style.json",$description:"translations.json#/div_text_range_strike"},actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_text_range_actions"},line_height:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_text_range_line_height"},top_offset:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_text_range_top_offset"},border:{$ref:"div-text-range-border.json",$description:"translations.json#/div_text_range_border"},background:{$ref:"div-text-range-background.json",$description:"translations.json#/div_text_range_background"},text_shadow:{$ref:"div-shadow.json",$description:"translations.json#/div_text_range_shadow",platforms:["android","ios","web"]},mask:{$ref:"div-text-range-mask.json",$description:"translations.json#/div_text_range_mask",platforms:[]}},$description:"translations.json#/div_text_range"},image:{type:"object",platforms:["android","ios","web"],properties:{start:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_text_image_start"},url:{$ref:"common.json#/url",$description:"translations.json#/div_text_image_url"},width:{$ref:"div-fixed-size.json",default_value:'{"type": "fixed","value":20}',$description:"translations.json#/div_text_image_width"},height:{$ref:"div-fixed-size.json",default_value:'{"type": "fixed","value":20}',$description:"translations.json#/div_text_image_height"},tint_color:{$ref:"common.json#/color",$description:"translations.json#/div_text_image_tint_color"},tint_mode:{$ref:"div-blend-mode.json",default_value:"source_in",$description:"translations.json#/div_text_image_tint_mode",platforms:["android","ios","web"]},preload_required:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_image_base_preload_required",platforms:["web"]},accessibility:{type:"object",properties:{description:{type:"string",$description:"translations.json#/div_accessibility_description"},type:{type:"string",enum:["none","button","image","text","auto"],default_value:"auto",supports_expressions:!1,$description:"translations.json#/div_accessibility_type"}},platforms:["android","web"]},alignment_vertical:{$ref:"div-text-alignment-vertical.json",default_value:"center",$description:"translations.json#/div_text_image_alignment_vertical",platforms:["android","web"]},indexing_direction:{type:"string",enum:["normal","reversed"],default_value:"normal",$description:"translations.json#/div_text_image_indexing_direction",platforms:["android","ios","web"]}},required:["url","start"],$description:"translations.json#/div_text_image"},ellipsis:{type:"object",properties:{text:{type:"string",$description:"translations.json#/div_text_ellipsis_text"},actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_text_ellipsis_actions"},ranges:{type:"array",items:{$ref:"#/definitions/range"},$description:"translations.json#/div_text_ellipsis_ranges"},images:{type:"array",items:{$ref:"#/definitions/image"},$description:"translations.json#/div_text_ellipsis_images"}},required:["text"],$description:"translations.json#/div_text_ellipsis",platforms:["android","ios"]}},Cj=[{$ref:"div-base.json"},{$ref:"div-actionable.json"},{properties:{type:{type:"string",enum:["text"]},font_size:{$ref:"common.json#/non_negative_integer",default_value:"12",$description:"translations.json#/div_font_size"},font_family:{type:"string",$description:"translations.json#/div_font_family",platforms:["android","ios","web"]},font_size_unit:{$ref:"div-size-unit.json",default_value:"sp",platforms:["android","ios"]},font_feature_settings:{type:"string",$description:"translations.json#/div_font_feature_settings",platforms:["android","ios","web"]},line_height:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_text_line_height"},max_lines:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_text_max_lines"},min_hidden_lines:{$ref:"common.json#/non_negative_integer",$description:"translations.json#/div_text_min_hidden_lines",platforms:["android","ios"]},auto_ellipsize:{$ref:"common.json#/boolean_int",$description:"translations.json#/div_text_auto_ellipsize",platforms:["android","ios","web","flutter"]},letter_spacing:{type:"number",default_value:"0",$description:"translations.json#/div_text_letter_spacing",platforms:["android","ios","web"]},font_weight:{$ref:"div-font-weight.json",default_value:"regular",$description:"translations.json#/div_font_weight"},font_weight_value:{$ref:"common.json#/positive_integer",$description:"translations.json#/div_font_weight_value",platforms:["ios","android","web"]},text_alignment_horizontal:{$ref:"div-alignment-horizontal.json",default_value:"start",$description:"translations.json#/div_text_text_alignment_horizontal"},text_alignment_vertical:{$ref:"div-alignment-vertical.json",default_value:"top",$description:"translations.json#/div_text_text_alignment_vertical"},text_color:{$ref:"common.json#/color",default_value:"#FF000000",$description:"translations.json#/div_text_text_color"},focused_text_color:{$ref:"common.json#/color",$description:"translations.json#/div_text_focused_text_color",platforms:["android","web"]},text_gradient:{$ref:"div-text-gradient.json",$description:"translations.json#/div_text_text_gradient",platforms:["android","ios","web"]},text:{type:"string",$description:"translations.json#/div_text_text"},underline:{$ref:"div-line-style.json",default_value:"none",$description:"translations.json#/div_text_underline"},strike:{$ref:"div-line-style.json",default_value:"none",$description:"translations.json#/div_text_strike"},ranges:{type:"array",items:{$ref:"#/definitions/range"},$description:"translations.json#/div_text_ranges",platforms:["android","ios","web"]},images:{type:"array",items:{$ref:"#/definitions/image"},$description:"translations.json#/div_text_images",platforms:["android","ios","web"]},ellipsis:{$ref:"#/definitions/ellipsis"},selectable:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_text_selectable",platforms:["android","ios","web"]},tighten_width:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_text_tighten_width",platforms:["android","ios"]},truncate:{type:"string",enum:["none","start","end","middle"],default_value:"end",$description:"translations.json#/div_text_truncate",deprecated:!0,code_generation_disabled_kotlin:!0,code_generation_disabled_swift:!0,platforms:["android","ios"]},text_shadow:{$ref:"div-shadow.json",$description:"translations.json#/div_text_shadow",platforms:["android","ios","web"]}}}],Tj=["type","text"],Eee={$description:kj,codegen:jj,definitions:Sj,allOf:Cj,required:Tj},Aee=Object.freeze(Object.defineProperty({__proto__:null,$description:kj,allOf:Cj,codegen:jj,default:Eee,definitions:Sj,required:Tj},Symbol.toStringTag,{value:"Module"})),zj="object",Ej="translations.json#/div_timer",Aj={id:{$ref:"common.json#/id",$description:"translations.json#/div_timer_id"},duration:{$ref:"common.json#/non_negative_integer",long_type:!0,default_value:"0",$description:"translations.json#/div_timer_duration"},tick_interval:{$ref:"common.json#/positive_integer",long_type:!0,$description:"translations.json#/div_timer_tick_interval"},value_variable:{$ref:"div-variable-name.json",$description:"translations.json#/div_timer_value_variable"},tick_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_timer_tick_actions"},end_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_timer_end_actions"}},Oj=["id"],Oee={type:zj,$description:Ej,properties:Aj,required:Oj},Mee=Object.freeze(Object.defineProperty({__proto__:null,$description:Ej,default:Oee,properties:Aj,required:Oj,type:zj},Symbol.toStringTag,{value:"Module"})),Mj="object",Pj="translations.json#/div_tooltip_mode_modal",Ij=["android","ios","web"],Dj={type:{type:"string",enum:["modal"]}},Vj=["type"],Pee={type:Mj,$description:Pj,platforms:Ij,properties:Dj,required:Vj},Iee=Object.freeze(Object.defineProperty({__proto__:null,$description:Pj,default:Pee,platforms:Ij,properties:Dj,required:Vj,type:Mj},Symbol.toStringTag,{value:"Module"})),Lj="object",Fj="translations.json#/div_tooltip_mode_non_modal",Nj=["ios","android","web"],qj={type:{type:"string",enum:["non_modal"]}},Rj=["type"],Dee={type:Lj,$description:Fj,platforms:Nj,properties:qj,required:Rj},Vee=Object.freeze(Object.defineProperty({__proto__:null,$description:Fj,default:Dee,platforms:Nj,properties:qj,required:Rj,type:Lj},Symbol.toStringTag,{value:"Module"})),Bj="translations.json#/div_tooltip_mode",Hj=[{$ref:"div-tooltip-mode-non-modal.json"},{$ref:"div-tooltip-mode-modal.json"}],Lee={$description:Bj,anyOf:Hj},Fee=Object.freeze(Object.defineProperty({__proto__:null,$description:Bj,anyOf:Hj,default:Lee},Symbol.toStringTag,{value:"Module"})),Uj="object",Jj="translations.json#/div_tooltip",Wj=["android","ios","web"],Kj={id:{$ref:"common.json#/id",$description:"translations.json#/div_tooltip_id"},div:{$ref:"div.json",$description:"translations.json#/div_tooltip_div"},position:{type:"string",enum:["left","top-left","top","top-right","right","bottom-right","bottom","bottom-left","center"],$description:"translations.json#/div_tooltip_position"},duration:{$ref:"common.json#/non_negative_integer",default_value:"5000",$description:"translations.json#/div_tooltip_duration"},offset:{$ref:"div-point.json",$description:"translations.json#/div_tooltip_offset"},animation_in:{$ref:"div-animation.json",$description:"translations.json#/div_tooltip_animation_in",platforms:["android","ios","web"]},animation_out:{$ref:"div-animation.json",$description:"translations.json#/div_tooltip_animation_out",platforms:["android","ios","web"]},mode:{$ref:"div-tooltip-mode.json",default_value:'{ "type": "modal" }',$description:"translations.json#/div_tooltip_mode",platforms:["android","ios","web"]},tap_outside_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_tooltip_tap_outside_actions",platforms:["ios","web"]},close_by_tap_outside:{type:"boolean",$description:"translations.json#/div_tooltip_close_by_tap_outside",default_value:"true",platforms:["android","ios","web"]},background_accessibility_description:{type:"string",$description:"translations.json#/div_tooltip_background_accessibility_description",platforms:["ios"]}},Yj=["id","div","position"],Nee={type:Uj,$description:Jj,platforms:Wj,properties:Kj,required:Yj},qee=Object.freeze(Object.defineProperty({__proto__:null,$description:Jj,default:Nee,platforms:Wj,properties:Kj,required:Yj,type:Uj},Symbol.toStringTag,{value:"Module"})),Gj="object",Xj="translations.json#/div_transform",Zj=["android","ios","web"],xj={rotation:{type:"number",$description:"translations.json#/div_transform_rotation"},pivot_x:{$ref:"div-pivot.json",default_value:'{"type": "pivot-percentage","value":50}',$description:"translations.json#/div_transform_pivot_x"},pivot_y:{$ref:"div-pivot.json",default_value:'{"type": "pivot-percentage","value":50}',$description:"translations.json#/div_transform_pivot_y"}},Ree={type:Gj,$description:Xj,platforms:Zj,properties:xj},Bee=Object.freeze(Object.defineProperty({__proto__:null,$description:Xj,default:Ree,platforms:Zj,properties:xj,type:Gj},Symbol.toStringTag,{value:"Module"})),Qj="object",e8="div-transition-base",t8={documentation:{include_in_toc:!0}},n8={start_delay:{$ref:"common.json#/non_negative_integer",default_value:"0",$description:"translations.json#/div_transition_base_start_delay"},duration:{$ref:"common.json#/non_negative_integer",default_value:"200",$description:"translations.json#/div_transition_base_duration"},interpolator:{$ref:"div-animation-interpolator.json",default_value:"ease_in_out",$description:"translations.json#/div_transition_base_interpolator"}},i8=["android","ios","web"],Hee={type:Qj,protocol_name:e8,codegen:t8,properties:n8,platforms:i8},Uee=Object.freeze(Object.defineProperty({__proto__:null,codegen:t8,default:Hee,platforms:i8,properties:n8,protocol_name:e8,type:Qj},Symbol.toStringTag,{value:"Module"})),o8="string",r8="translations.json#/div_transition_selector",s8=!0,l8=["android","ios","web"],Jee={type:o8,enum:["none","data_change","state_change","any_change"],$description:r8,deprecated:s8,platforms:l8},Wee=Object.freeze(Object.defineProperty({__proto__:null,$description:r8,default:Jee,deprecated:s8,platforms:l8,type:o8},Symbol.toStringTag,{value:"Module"})),a8="string",c8="translations.json#/div_transition_trigger",d8=["android","ios","web"],Kee={type:a8,enum:["data_change","state_change","visibility_change"],$description:c8,platforms:d8},Yee=Object.freeze(Object.defineProperty({__proto__:null,$description:c8,default:Kee,platforms:d8,type:a8},Symbol.toStringTag,{value:"Module"})),u8="object",p8="translations.json#/div_trigger",_8={condition:{$ref:"common.json#/boolean_int",supports_expressions:!0,$description:"translations.json#/div_trigger_condition"},mode:{type:"string",default_value:"on_condition",enum:["on_condition","on_variable"],$description:"translations.json#/div_trigger_mode"},actions:{type:"array",items:{$ref:"div-action.json"},minItems:1,$description:"translations.json#/div_trigger_actions"}},f8=["condition","actions"],Gee={type:u8,$description:p8,properties:_8,required:f8},Xee=Object.freeze(Object.defineProperty({__proto__:null,$description:p8,default:Gee,properties:_8,required:f8,type:u8},Symbol.toStringTag,{value:"Module"})),m8={string_value:{alias_kotlin:"str_value",type:"object",properties:{type:{type:"string",enum:["string"]},value:{type:"string"}},required:["type","value"]},integer_value:{type:"object",properties:{type:{type:"string",enum:["integer"]},value:{type:"integer"}},required:["type","value"]},number_value:{type:"object",properties:{type:{type:"string",enum:["number"]},value:{type:"number"}},required:["type","value"]},color_value:{type:"object",properties:{type:{type:"string",enum:["color"]},value:{$ref:"common.json#/color"}},required:["type","value"]},boolean_value:{alias_kotlin:"bool_value",type:"object",properties:{type:{type:"string",enum:["boolean"]},value:{type:"boolean"}},required:["type","value"]},url_value:{type:"object",properties:{type:{type:"string",enum:["url"]},value:{$ref:"common.json#/url"}},required:["type","value"]},dict_value:{type:"object",properties:{type:{type:"string",enum:["dict"]},value:{type:"object",additionalProperties:!0}},required:["type","value"]},array_value:{type:"object",properties:{type:{type:"string",enum:["array"]},value:{type:"array"}},required:["type","value"]}},g8=[{$ref:"#/definitions/string_value"},{$ref:"#/definitions/integer_value"},{$ref:"#/definitions/number_value"},{$ref:"#/definitions/color_value"},{$ref:"#/definitions/boolean_value"},{$ref:"#/definitions/url_value"},{$ref:"#/definitions/dict_value"},{$ref:"#/definitions/array_value"}],Zee={definitions:m8,anyOf:g8},xee=Object.freeze(Object.defineProperty({__proto__:null,anyOf:g8,default:Zee,definitions:m8},Symbol.toStringTag,{value:"Module"})),h8="string",v8=!1,Qee={type:h8,supports_expressions:v8},ete=Object.freeze(Object.defineProperty({__proto__:null,default:Qee,supports_expressions:v8,type:h8},Symbol.toStringTag,{value:"Module"})),b8={string_variable:{alias_kotlin:"str_variable",type:"object",$description:"translations.json#/div_variable_string",properties:{name:{$ref:"div-variable-name.json",$description:"translations.json#/div_variable_name"},type:{type:"string",enum:["string"]},value:{supports_expressions:!1,type:"string",$description:"translations.json#/div_variable_value"}},required:["name","value","type"]},integer_variable:{type:"object",$description:"translations.json#/div_variable_integer",properties:{name:{$ref:"div-variable-name.json",$description:"translations.json#/div_variable_name"},type:{type:"string",enum:["integer"]},value:{supports_expressions:!1,long_type:!0,type:"integer",$description:"translations.json#/div_variable_value"}},required:["name","value","type"]},number_variable:{type:"object",$description:"translations.json#/div_variable_number",properties:{name:{$ref:"div-variable-name.json",$description:"translations.json#/div_variable_name"},type:{type:"string",enum:["number"]},value:{supports_expressions:!1,type:"number",$description:"translations.json#/div_variable_value"}},required:["name","value","type"]},boolean_variable:{alias_kotlin:"bool_variable",type:"object",$description:"translations.json#/div_variable_boolean",properties:{name:{$ref:"div-variable-name.json",$description:"translations.json#/div_variable_name"},type:{type:"string",enum:["boolean"]},value:{supports_expressions:!1,$ref:"common.json#/boolean_int",$description:"translations.json#/div_variable_value"}},required:["name","value","type"]},color_variable:{type:"object",$description:"translations.json#/div_variable_color",properties:{name:{$ref:"div-variable-name.json",$description:"translations.json#/div_variable_name"},type:{supports_expressions:!1,type:"string",enum:["color"]},value:{supports_expressions:!1,$ref:"common.json#/color",$description:"translations.json#/div_variable_value"}},required:["name","value","type"]},url_variable:{type:"object",$description:"translations.json#/div_variable_url",properties:{name:{$ref:"div-variable-name.json",$description:"translations.json#/div_variable_name"},type:{type:"string",enum:["url"]},value:{supports_expressions:!1,$ref:"common.json#/url",$description:"translations.json#/div_variable_value"}},required:["name","value","type"]},dict_variable:{type:"object",$description:"translations.json#/div_variable_dict",properties:{name:{$ref:"div-variable-name.json",$description:"translations.json#/div_variable_name"},type:{type:"string",enum:["dict"]},value:{supports_expressions:!1,type:"object",additionalProperties:!0,$description:"translations.json#/div_variable_value"}},required:["name","value","type"]},array_variable:{type:"object",$description:"translations.json#/div_variable_array",properties:{name:{$ref:"div-variable-name.json",$description:"translations.json#/div_variable_name"},type:{type:"string",enum:["array"]},value:{type:"array",supports_expressions:!1,$description:"translations.json#/div_variable_value"}},required:["name","value","type"]}},y8=[{$ref:"#/definitions/string_variable"},{$ref:"#/definitions/number_variable"},{$ref:"#/definitions/integer_variable"},{$ref:"#/definitions/boolean_variable"},{$ref:"#/definitions/color_variable"},{$ref:"#/definitions/url_variable"},{$ref:"#/definitions/dict_variable"},{$ref:"#/definitions/array_variable"}],tte={definitions:b8,anyOf:y8},nte=Object.freeze(Object.defineProperty({__proto__:null,anyOf:y8,default:tte,definitions:b8},Symbol.toStringTag,{value:"Module"})),w8="string",ite={type:w8,enum:["fill","no_scale","fit"]},ote=Object.freeze(Object.defineProperty({__proto__:null,default:ite,type:w8},Symbol.toStringTag,{value:"Module"})),$8={resolution:{type:"object",properties:{type:{type:"string",enum:["resolution"]},width:{$ref:"common.json#/positive_integer",$description:"translations.json#/div_video_source_resolution_width"},height:{$ref:"common.json#/positive_integer",$description:"translations.json#/div_video_source_resolution_height"}},required:["type","width","height"]}},k8="object",j8={type:{type:"string",enum:["video_source"]},url:{$ref:"common.json#/url",$description:"translations.json#/div_video_source_url"},resolution:{$ref:"#/definitions/resolution",$description:"translations.json#/div_video_source_resolution"},mime_type:{type:"string",$description:"translations.json#/div_video_source_mime_type"},bitrate:{type:"integer",$description:"translations.json#/div_video_source_bitrate"}},S8=["type","url","mime_type"],rte={definitions:$8,type:k8,properties:j8,required:S8},ste=Object.freeze(Object.defineProperty({__proto__:null,default:rte,definitions:$8,properties:j8,required:S8,type:k8},Symbol.toStringTag,{value:"Module"})),C8="translations.json#/div_video",T8=[{$ref:"div-base.json"},{properties:{type:{type:"string",enum:["video"]},video_sources:{type:"array",items:{$ref:"div-video-source.json",$description:"translations.json#/div_video_source"},minItems:1},repeatable:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_video_repeatable"},autostart:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_video_autostart"},preload_required:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_video_preload_required",platforms:["android","web"]},muted:{$ref:"common.json#/boolean_int",default_value:"false",$description:"translations.json#/div_video_muted"},preview:{type:"string",$description:"translations.json#/div_video_preview"},elapsed_time_variable:{$ref:"div-variable-name.json",$description:"translations.json#/div_video_elapsed_time_variable"},resume_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_video_resume_actions"},pause_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_video_pause_actions"},end_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_video_end_actions"},buffering_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_video_buffering_actions"},fatal_actions:{type:"array",items:{$ref:"div-action.json"},$description:"translations.json#/div_video_fatal_actions"},player_settings_payload:{type:"object",additionalProperties:!0,$description:"translations.json#/div_video_player_settings_payload",platforms:["android","ios"]},aspect:{$ref:"div-aspect.json",$description:"translations.json#/div_aspect"},scale:{$ref:"div-video-scale.json",default_value:"fit",$description:"translations.json#/div_video_scale"}}}],z8=["android","ios","web"],E8=["type","video_sources"],lte={$description:C8,allOf:T8,platforms:z8,required:E8},ate=Object.freeze(Object.defineProperty({__proto__:null,$description:C8,allOf:T8,default:lte,platforms:z8,required:E8},Symbol.toStringTag,{value:"Module"})),A8="translations.json#/div_visibility_action",O8=[{$ref:"div-sight-action.json"},{properties:{visibility_percentage:{type:"integer",constraint:"number > 0 && number <= 100",default_value:"50",$description:"translations.json#/div_visibility_action_visibility_percentage"},visibility_duration:{$ref:"common.json#/non_negative_integer",default_value:"800",$description:"translations.json#/div_visibility_action_visibility_duration"}}}],cte={$description:A8,allOf:O8},dte=Object.freeze(Object.defineProperty({__proto__:null,$description:A8,allOf:O8,default:cte},Symbol.toStringTag,{value:"Module"})),M8="string",P8="translations.json#/div_visibility",ute={type:M8,enum:["visible","invisible","gone"],$description:P8},pte=Object.freeze(Object.defineProperty({__proto__:null,$description:P8,default:ute,type:M8},Symbol.toStringTag,{value:"Module"})),I8="object",D8="translations.json#/div_wrap_content_size",V8={constraint_size:{type:"object",properties:{value:{$ref:"common.json#/non_negative_integer"},unit:{$ref:"div-size-unit.json",$description:"translations.json#/div_size_unit",default_value:"dp"}},required:["value"]}},L8={type:{type:"string",enum:["wrap_content"]},constrained:{$ref:"common.json#/boolean_int",$description:"translations.json#/div_wrap_content_size_constrained"},min_size:{$ref:"#/definitions/constraint_size",$description:"translations.json#/div_size_min"},max_size:{$ref:"#/definitions/constraint_size",$description:"translations.json#/div_size_max"}},F8=["type"],_te={type:I8,$description:D8,definitions:V8,properties:L8,required:F8},fte=Object.freeze(Object.defineProperty({__proto__:null,$description:D8,default:_te,definitions:V8,properties:L8,required:F8,type:I8},Symbol.toStringTag,{value:"Module"})),N8=!0,q8=!0,R8=[{$ref:"div-image.json",$description:"translations.json#/div_image_short"},{$ref:"div-gif-image.json",$description:"translations.json#/div_gif_image_short"},{$ref:"div-text.json",$description:"translations.json#/div_text_short"},{$ref:"div-separator.json",$description:"translations.json#/div_separator_short"},{$ref:"div-container.json",$description:"translations.json#/div_container_short"},{$ref:"div-grid.json",$description:"translations.json#/div_grid_short"},{$ref:"div-gallery.json",$description:"translations.json#/div_gallery_short"},{$ref:"div-pager.json",$description:"translations.json#/div_pager_short"},{$ref:"div-tabs.json",$description:"translations.json#/div_tabs_short"},{$ref:"div-state.json",$description:"translations.json#/div_state_short"},{$ref:"div-custom.json",$description:"translations.json#/div_custom_short"},{$ref:"div-indicator.json",$description:"translations.json#/div_indicator_short"},{$ref:"div-slider.json",$description:"translations.json#/div_slider_short"},{$ref:"div-switch.json",$description:"translations.json#/div_switch_short"},{$ref:"div-input.json",$description:"translations.json#/div_input_short"},{$ref:"div-select.json",$description:"translations.json#/div_select"},{$ref:"div-video.json",$description:"translations.json#/div_video"}],mte={generate_case_for_templates_kotlinDsl:N8,generate_case_for_templates_typescript:q8,anyOf:R8},gte=Object.freeze(Object.defineProperty({__proto__:null,anyOf:R8,default:mte,generate_case_for_templates_kotlinDsl:N8,generate_case_for_templates_typescript:q8},Symbol.toStringTag,{value:"Module"})),B8={en:"Sets margins without regard to screen properties.",ru:"Устанавливает отступы, без учета свойств экрана."},H8={en:"Accessibility settings.",ru:"Настройки доступности."},U8={en:"Element description. It is used as the main description for screen reading applications.",ru:"Описание элемента. Используется в качестве основного описания для программ экранного чтения."},J8={en:"A tooltip of what will happen during interaction. If Speak Hints is enabled in the VoiceOver settings on iOS, a tooltip is played after `description`.",ru:"Подсказка, что произойдет при взаимодействии. Если на iOS в настройках VoiceOver включен Speak Hints, то подсказка воспроизводится после `description`."},W8={en:"Shows the current status of the checkbox or toggle: `true` means it's selected, `false` means it isn't selected.",ru:"Указывает текущее состояние чекбокса или переключателя. `true` — выбран, `false` — не выбран."},K8={en:"The way the accessibility tree is organized. In the `merge` mode the accessibility service perceives an element together with a subtree as a whole. In the `exclude` mode an element together with a subtree isn't available for accessibility.",ru:"Способ организации дерева accessibility. В режиме `merge` accessibility-сервис воспринимает элемент вместе с поддеревом как одно целое. В режиме `exclude` элемент вместе с поддеревом недоступен для accessibility."},Y8={en:"Mutes the screen reader sound after interacting with the element.",ru:"Заглушает звук чтения экрана после взаимодействия с элементом."},G8={en:"Description of the current state of an element. For example, in the description you can specify a selected date for a date selection element and an on/off state for a switch.",ru:"Описание текущего состояния элемента. Например, в описании можно указать выбранную дату для элемента выбора даты, а для переключателя — состояние включен/выключен."},X8={en:"Element role. Used to correctly identify an element by the accessibility service. For example, the `list` element is used to group list elements into one element.",ru:"Роль элемента. Используется для правильной идентификации элемента accessibility-сервисом. Например, элемент `list` используется для группировки элементов списка в один элемент."},Z8={en:"It defines an action when clicking on an element.",ru:"Определяет действие при нажатии на элемент."},x8={en:"Launches the specified animator.",ru:"Запускает указанный аниматор."},Q8={en:"ID of the animator launched.",ru:"Идентификатор аниматора, который нужно запустить."},e7={en:"Overrides the value that will be set after the animation finishes.",ru:"Переопределяет, какое значение будет установлено в переменную после завершения анимации."},t7={en:"Overrides the value that will be set before the animation begins.",ru:"Переопределяет, какое значение будет установлено в переменную перед началом анимации."},n7={en:"Stops the specified animator.",ru:"Останавливает указанный аниматор."},i7={en:"ID of the animator to be stopped.",ru:"Идентификатор аниматора, который нужно остановить."},o7={en:"Adds a value to the array",ru:"Добавляет значение в массив"},r7={en:"Deletes a value from the array",ru:"Удаляет значение из массива"},s7={en:"Sets the value in the array by index.",ru:"Устанавливает значение в массиве по индексу."},l7={en:"Callbacks that are called after [data loading](../../interaction#loading-data).",ru:"Колбэки, которые вызываются после [дозагрузки данных](../../interaction#loading-data)."},a7={en:"The parameter disables the action. Disabled actions stop listening to their associated event (clicks, changes in visibility, and so on).",ru:"Параметр отключает действие. Отключенное действие не реагирует на связанное с ним событие (клик, изменение видимости и т. д.)."},c7={en:"Logging ID.",ru:"Идентификатор для логирования."},d7={en:"Additional parameters, passed to the host application.",ru:"Дополнительные параметры, передаются приложению-хосту."},u7={en:"Referer URL for logging.",ru:"Referer-ссылка для логирования."},p7={en:"The ID of the element within which the specified action will be performed.",ru:"Идентификатор элемента, в области видимости которого будет выполняться данное действие."},_7={en:"URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with elements](../../interaction).",ru:"Ссылка. Возможные значения: `url` или `div-action://`. Подробнее в разделе [Взаимодействие с элементами](../../interaction)."},f7={en:"Removes focus from an element.",ru:"Снимает фокус с элемента."},m7={en:"Copies data to the clipboard.",ru:"Копирует данные в буфер обмена."},g7={en:"Sets the value in the dictionary by the specified key. Deletes the key if the value is not set.",ru:"Устанавливает значение в словаре по заданному ключу. Удаляет ключ, если значение на задано."},h7={en:"Loads additional data in `div-patch` format and updates the current element.",ru:"Выполняет дозагрузку данных в формате `div-patch` и обновляет текущий элемент."},v7={en:"Link for receiving changes.",ru:"Ссылка для получения изменений."},b7={en:"Requests focus for an element. May require a user action on the web.",ru:"Запрашивает фокус для элемента. В вебе может требовать действие пользователя."},y7={en:"Hides the tooltip.",ru:"Скрывает тултип."},w7={en:"URL for logging.",ru:"Ссылка для логирования."},$7={en:"One action when clicking on a menu item. Not used if the `actions` parameter is set.",ru:"Одно действие при нажатии на пункт меню. Не используется, если задан параметр `actions`."},k7={en:"Multiple actions when clicking on a menu item.",ru:"Несколько действий при нажатии на пункт меню."},j7={en:"Menu item title.",ru:"Заголовок пункта меню."},S7={en:"Context menu.",ru:"Контекстное меню."},C7={en:"Enables scrolling animation.",ru:"Включает анимацию пролистывания."},T7={en:"Scrolls the container by `item_count` or `offset` starting from the current position. If both values are specified, the action will be combined. For scrolling back, use negative values.",ru:"Пролистывает контейнер со скроллом от текущей позиции на `item_count` или `offset`. Если заданы оба значения, действие будет скомбинированным. Отрицательные значения пролистывают назад."},z7={en:"Number of container elements to scroll through. For scrolling back, use negative values.",ru:"Количество элементов контейнера, которые надо пролистать. Отрицательные значения пролистывают назад."},E7={en:"Scrolling distance measured in `dp` from the current position. For scrolling back, use negative values. Only applies in `gallery`.",ru:"Расстояние для скроллинга, измеряемое в `dp` от текущей позиции. Отрицательные значения пролистывают назад. Применим только в `gallery`."},A7={en:"Specifies the scrolling end position within the container.",ru:"Указывает конечную точку пролистывания в контейнере."},O7={en:"Specifies the end of the container as the scrolling end position.",ru:"Указывает конец контейнера как конечную точку пролистывания."},M7={en:"Specifies the element with the given index as the scrolling end position.",ru:"Указывает элемент с заданным индексом как конечную точку пролистывания."},P7={en:"Container element index.",ru:"Индекс элемента контейнера."},I7={en:"Specifies the position measured in `dp` from the container start as the scrolling end position. Only applies in `gallery`.",ru:"Указывает позицию, измеренную в `dp` от начала контейнера, как конечную точку пролистывания. Применим только в `gallery`."},D7={en:"Position measured in `dp`.",ru:"Позиция в `dp`."},V7={en:"Specifies the start of the container as the scrolling end position.",ru:"Указывает начало контейнера как конечную точку пролистывания."},L7={en:"ID of the element where the action should be performed.",ru:"Идентификатор элемента, в котором нужно выполнить операцию."},F7={en:"Defines navigation behavior at boundary elements:<li>`clamp`: Stop navigation at the boundary element (default)</li><li>`ring`: Navigate to the start or end, depending on the current element.</li>",ru:"Указывает, как будет происходить навигация при достижении граничных элементов:<li>`clamp` — переход остановится на граничном элементе (значение по умолчанию);</li><li>`ring` — произойдет переход в начало или конец в зависимости от текущего элемента.</li>"},N7={en:"Scrolls to a position or switches to the container element specified by the `destination` parameter.",ru:"Выполняет скролл к позиции или переключает элемент в контейнере на указанный параметром `destination`."},q7={en:"Defines the scrolling end position:<li>`index`: Scroll to the element with the index provided in `value`</li><li>`offset`: Scroll to the position specified in `value` and measured in `dp` from the start of the container. Applies only in `gallery`;</li><li>`start`: Scroll to the container start;</li><li>`end`: Scroll to the container end.</li>",ru:"Указывает конечную точку пролистывания:<li>`index` — пролистывание до элемента с индексом, указанным в `value`;</li><li>`offset` — пролистывание до позиции, измеренной в `dp` и указанной в `value`, от начала контейнера. Применим только в `gallery`;</li><li>`start` — пролистывание в начало контейнера;</li><li>`end` — пролистывание в конец контейнера.</li>"},R7={en:"Applies a new appearance to the content in `div-state'.",ru:"Устанавливает новый внешний вид контента в `div-state`."},B7={en:"The path of the state inside `state` that needs to be activated. Set in the format `div_data_state_id/id/state_id'. Can be hierarchical: `div_data_state_id/id_1/state_id_1/../id_n/state_id_n`. Consists of:<li>`div_data_state_id` — the numeric value of the `state_id` of the `state` object in `data`</li><li>'id` — the `id` value of the `state` object</li><li>`state_id` — the `state_id` value of the `state` object in `state`</li>",ru:"Путь состояния внутри `state`, которое нужно активировать. Задается в формате `div_data_state_id/id/state_id`. Mожет быть иерархическим: `div_data_state_id/id_1/state_id_1/../id_n/state_id_n`. Состоит из:<li>`div_data_state_id` — числовое значение `state_id` объекта `state` в `data`;</li><li>`id` — значение `id` объекта `state`;</li><li>`state_id` — значение `state_id` объекта `state` в `state`.</li>"},H7={en:"Indicates a state change:<li>`true` — the change is temporary and will switch to the original one (default value) when the element is recreated</li><li>`false` — the change is permanent</li>",ru:"Указывает на изменение состояния:<li>`true` — изменение временное, и при пересоздании элемента состояние изменится на исходное (значение по умолчанию);</li><li>`false` — изменение постоянное.</li>"},U7={en:"Temporarily saves the variable in storage.",ru:"Временно cохраняет переменную в хранилище."},J7={en:"Duration of storage in seconds.",ru:"Время хранения в секундах."},W7={en:"Name of the saved variable.",ru:"Имя сохраняемой переменной."},K7={en:"Saved value.",ru:"Сохраняемое значение."},Y7={en:"Assigns a value to the variable",ru:"Присваивает переменной значение"},G7={en:"Shows the tooltip.",ru:"Показывает тултип."},X7={en:"Sets whether the tooltip can be shown again after it’s closed.",ru:"Устанавливает, может ли тултип показываться еще раз после закрытия."},Z7={en:"Sends variables from the container by link. Data sending configuration can be defined by the host app. By default, variables are sent as JSON in the request body using the POST method.",ru:"Отправляет переменные из контейнера по ссылке. Конфигурация отправки данных может определяться приложением-хостом. По умолчанию переменные передаются в теле запроса в виде JSON, метод запроса — POST."},x7={en:"ID of the container with the variables to be sent.",ru:"Идентификатор контейнера, в котором содержатся переменные для отправки."},Q7={en:"Actions when sending data is unsuccessful.",ru:"Действия при неуспешной отправке данных."},e9={en:"Actions when sending data is successful.",ru:"Действия при успешной отправке данных."},t9={en:"HTTP request parameters for configuring the sending of data.",ru:"Параметры HTTP-запроса, которые используются для конфигурации отправки данных."},n9={en:"HTTP request headers. Please note that DivKit does not clean duplicate headers, which can lead to errors in request processing. Keep this in mind when assembling actions with complex json-builders.",ru:"Заголовки HTTP-запроса. Обратите внимание, что DivKit не очищает дублирующиеся заголовки, наличие которых может приводить к ошибкам в обработке запроса. Учитывайте это при сборке action'ов сложными json-builder'ами."},i9={en:"HTTP request method.",ru:"Метод HTTP-запроса."},o9={en:"Request parameters.",ru:"Параметры запроса."},r9={en:"Link for sending data from the container.",ru:"Ссылка, по которой отправляются данные из контейнера."},s9={en:"The tab in which the URL must be opened.",ru:"Вкладка, в которой должна открыться ссылка."},l9={en:"Controls the timer.",ru:"Управляет таймером."},a9={en:"Timer actions:<li>`start` — starts the timer from a stopped state</li><li>`stop`— stops the timer and performs the `onEnd` action</li><li>`pause` — pauses the timer, saves the current time</li><li>`resume` — restarts the timer after a pause</li><li>`cancel` — interrupts the timer, resets the time</li><li>`reset` — cancels the timer, then starts it again</li>",ru:"Действие с таймером:<li>`start`— запускает таймер из остановленного положения;</li><li>`stop`— останавливает таймер, выполняет действие `onEnd`;</li><li>`pause`— ставит таймер на паузу, время сохраняется;</li><li>`resume`— продолжает таймер после паузы;</li><li>`cancel`— прерывает действие таймера, время сбрасывается;</li><li>`reset`— отменяет таймер, затем запускает заново.</li>"},c9={en:"Timer ID.",ru:"Идентификатор таймера."},d9={en:"Tooltip ID.",ru:"Идентификатор тултипа."},u9={en:"Manages video playback.",ru:"Управляет воспроизведением видео."},p9={en:"Defines the action for the video: <li>`start` — starts playing the video if the video is ready to be played, or schedules playback</li><li>`pause' — stops the video playback</li>",ru:"Определяет действие с видео: <li>`start` — начинает воспроизведение видео, если видео готово к воспроизведению, или планирует воспроизведение;</li><li>`pause` — останавливает воспроизведение видео.</li>"},_9={en:"Video ID.",ru:"Идентификатор видео."},f9={en:"One action when clicking on an element. Not used if the `actions` parameter is set.",ru:"Одно действие при нажатии на элемент. Не используется, если задан параметр `actions`."},m9={en:"Click animation. The web only supports the following values: `fade`, `scale`, `native`, `no_animation` and `set`.",ru:"Анимация нажатия. В вебе поддерживаются только значения `fade`, `scale`, `native`, `no_animation` и `set`."},g9={en:"Multiple actions when clicking on an element.",ru:"Несколько действий при нажатии на элемент."},h9={en:"Action when double-clicking on an element.",ru:"Действие при двойном нажатии на элемент."},v9={en:"Actions performed after hovering over an element. Available on platforms that support pointing devices (such as a mouse or stylus).",ru:"Действия, выполняемые после наведения на элемент. Доступны на платформах, поддерживающих указывающие устройства (мышь, стилус и т.д.)."},b9={en:"Actions performed when hovering over an element. Available on platforms that support pointing devices (such as a mouse or stylus).",ru:"Действия, выполняемые при наведении на элемент. Доступны на платформах, поддерживающих указывающие устройства (мышь, стилус и т.д.)."},y9={en:"Action when long-clicking an element. Doesn't work on devices that don't support touch gestures.",ru:"Действие при долгом нажатии на элемент. Не работает на устройствах без сенсорного экрана."},w9={en:"Actions performed after clicking/tapping an element.",ru:"Действия, выполняемые после нажатия на элемент."},$9={en:"Actions performed at the start of a click/tap on an element.",ru:"Действия, выполняемые в начале нажатия на элемент."},k9={en:"Element animation parameters.",ru:"Параметры анимации элементов."},j9={en:"Animation duration in milliseconds.",ru:"Длительность анимации в миллисекундах."},S9={en:"Final value of an animation.",ru:"Конечное значение анимации."},C9={en:"Animation speed nature. When the value is set to `spring` — animation of damping fluctuations cut to 0.7 with the `damping=1` parameter. Other options correspond to the Bezier curve:<li>`linear` — cubic-bezier(0, 0, 1, 1);</li><li>`ease` — cubic-bezier(0.25, 0.1, 0.25, 1);</li><li>`ease_in` — cubic-bezier(0.42, 0, 1, 1);</li><li>`ease_out` — cubic-bezier(0, 0, 0.58, 1);</li><li>`ease_in_out` — cubic-bezier(0.42, 0, 0.58, 1).</li>",ru:"Характер скорости анимации. При значении `spring` — обрезанная до 0.7 анимация затухающих колебаний с параметром `damping=1`. Остальные варианты соответствует кривой Безье:<li>`linear` — cubic-bezier(0, 0, 1, 1);</li><li>`ease` — cubic-bezier(0.25, 0.1, 0.25, 1);</li><li>`ease_in` — cubic-bezier(0.42, 0, 1, 1);</li><li>`ease_out` — cubic-bezier(0, 0, 0.58, 1);</li><li>`ease_in_out` — cubic-bezier(0.42, 0, 0.58, 1).</li>"},T9={en:"Animation speed nature.",ru:"Характер скорости анимации."},z9={en:"Animation elements.",ru:"Элементы анимации."},E9={en:"Animation type.",ru:"Тип анимации."},A9={en:"Number of animation repetitions.",ru:"Число повторов анимации."},O9={en:"Delay in milliseconds before animation starts.",ru:"Задержка в миллисекундах перед стартом анимации."},M9={en:"Starting value of an animation.",ru:"Стартовое значение анимации."},P9={en:"Actions performed when the animation is canceled. For example, when a command with the 'animator_stop' type is received.",ru:"Действия, которые будут выполнены в случае отмены анимации. Например, когда получена команда с типом `animator_stop`."},I9={en:"Animation direction. Determines whether the animation should be played forward, backward, or alternate between forward and backward.",ru:"Направление анимации. Определяет, должна ли анимация воспроизводиться вперед, назад или переменно вперед и назад."},D9={en:"Animation duration in milliseconds.",ru:"Продолжительность анимации в миллисекундах."},V9={en:"Actions when the animation is completed.",ru:"Действия, которые будут выполнены после завершения работы анимации."},L9={en:"Animator ID.",ru:"Идентификатор аниматора."},F9={en:"Animated value interpolation function.",ru:"Функция интерполяции анимируемого значения."},N9={en:"Number of times the animation will repeat before stopping. A value of `0` enables infinite looping.",ru:"Количество повторов анимации, которое будет выполнено до ее остановки. Значение `0` включает бесконечные повторы."},q9={en:"Delay before the animation is launched in milliseconds.",ru:"Задержка перед запуском анимации в миллисекундах."},R9={en:"Name of the variable being animated.",ru:"Имя анимируемой переменной."},B9={en:"The value the variable will have when the animation ends.",ru:"Значение переменной, которое она примет в конце анимации."},H9={en:"The value the variable will have when the animation starts. If the property isn't specified, the current value of the variable will be used.",ru:"Значение переменной, которое она примет в начале анимации. Если свойство не указано, то будет использовано текущее значение переменной."},U9={en:"A set of animations to be applied simultaneously.",ru:"Набор анимаций, которые будут применяться одновременно."},J9={en:"An array of animations.",ru:"Массив анимаций."},W9={en:"Animated appearance or disappearance of an element in the hierarchy.",ru:"Анимированное появление или исчезновение элемента в иерархии."},K9={en:"Transition with fade animation.",ru:"Переход с анимацией полупрозрачности."},Y9={en:"Transition with scale animation.",ru:"Переход с анимацией масштабирования."},G9={en:"A set of multiple transitions.",ru:"Набор из нескольких переходов."},X9={en:"Transition with slide animation.",ru:"Переход с анимацией перемещения."},Z9={en:"Fixed aspect ratio. The element's height is calculated based on the width, ignoring the `height` value.",ru:"Фиксированное соотношение размеров элемента. Высота элемента вычисляется исходя из ширины, значение параметра `height` игнорируется."},x9={en:"`height = width / ratio`.",ru:"`height = width / ratio`."},Q9={en:"Gradient.",ru:"Градиент."},eS={en:"Image.",ru:"Изображение."},tS={en:"Solid color.",ru:"Сплошной цвет."},nS={en:"Accessibility settings.",ru:"Настройки доступности."},iS={en:"Horizontal alignment of an element inside the parent element.",ru:"Горизонтальное выравнивание элемента внутри родительского."},oS={en:"Vertical alignment of an element inside the parent element.",ru:"Вертикальное выравнивание элемента внутри родительского."},rS={en:"Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.",ru:"Устанавливает прозрачность всего элемента: `0` — полностью прозрачный, `1` — непрозрачный."},sS={en:"Declaration of animators that change variable values over time.",ru:"Объявление аниматоров, с помощью которых можно изменять значение переменных во времени."},lS={en:"Element background. It can contain multiple layers.",ru:"Фон элемента. Может содержать несколько слоев."},aS={en:"Element stroke.",ru:"Рамка элемента."},cS={en:"Merges cells in a column of the [grid](div-grid.md) element.",ru:"Объединяет ячейки в столбце элемента [grid](div-grid.md)."},dS={en:"Actions when an element disappears from the screen.",ru:"Действия при исчезновении элемента с экрана."},uS={en:"Extensions for additional processing of an element. The list of extensions is given in [DivExtension](../../extensions).",ru:"Расширения для дополнительной обработки элемента. Список расширений см. в разделе [Кастомизация](../../extensions)."},pS={en:"Parameters when focusing on an element or losing focus.",ru:"Параметры при фокусировке на элементе или потере фокуса."},_S={en:"User functions.",ru:"Пользовательские функции."},fS={en:"Element height. For Android: if there is text in this or in a child element, specify height in `sp` to scale the element together with the text. To learn more about units of size measurement, see [Layout inside the card](../../layout).",ru:"Высота элемента. Для Android: если в этом или в дочернем элементе есть текст, укажите высоту в `sp`, чтобы элемент масштабировался вместе с текстом. Подробнее о единицах измерения размера в разделе [Верстка внутри карточки](../../layout)."},mS={en:"Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier` on iOS.",ru:"Идентификатор элемента. На iOS используется в качестве `accessibilityIdentifier`."},gS={en:"External margins from the element stroke.",ru:"Внешние отступы от рамки элемента."},hS={en:"Internal margins from the element stroke.",ru:"Внутренние отступы от рамки элемента."},vS={en:"Merges cells in a string of the [grid](div-grid.md) element.",ru:"Объединяет ячейки в строке элемента [grid](div-grid.md)."},bS={en:"List of [actions](div-action.md) to be executed when selecting an element in [pager](div-pager.md).",ru:"Список [действий](div-action.md), которые будут выполнены при выборе элемента в [пейджере](div-pager.md)."},yS={en:"Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`, hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.",ru:"Привязанные к элементу всплывающие подсказки. Подсказка может быть показана по `div-action://show_tooltip?id=`, скрыта по `div-action://hide_tooltip?id=`, где `id` — id подсказки."},wS={en:"Applies the passed transformation to the element. Content that doesn't fit into the original view area is cut off.",ru:"Применяет к элементу переданное преобразование. Тот контент, который не поместится в исходную область просмотра, будет обрезан."},$S={en:"Change animation. It is played when the position or size of an element changes in the new layout.",ru:"Анимация изменения. Воспроизводится при изменении положения или размера элемента в новой верстке."},kS={en:"Appearance animation. It is played when an element with a new ID appears. To learn more about the concept of transitions, see [Animated transitions](../../interaction#animation/transition-animation).",ru:"Анимация появления. Воспроизводится при появлении элемента с новым id. Подробнее о концепции переходов в разделе [Анимация перехода](../../interaction#animation/transition-animation)."},jS={en:"Disappearance animation. It is played when an element disappears in the new layout.",ru:"Анимация исчезания. Воспроизводится при исчезании элемента в новой верстке."},SS={en:"Animation starting triggers. Default value: `[state_change, visibility_change]`.",ru:"Триггеры запуска анимации. Значение по умолчанию: `[state_change, visibility_change]`."},CS={en:"Triggers for changing variables within an element.",ru:"Триггеры изменения переменных внутри элемента."},TS={en:"Declaration of variables that can be used within an element. Variables declared in this array can only be used within the element and its child elements.",ru:"Объявление переменных, которые могут использоваться внутри элемента. Переменные, объявленные в данном массиве, могут использоваться только внутри самого элемента и его дочерних элементов."},zS={en:"Element visibility.",ru:"Видимость элемента."},ES={en:"Tracking visibility of a single element. Not used if the `visibility_actions` parameter is set.",ru:"Трекинг видимости одного элемента. Не используется, если задан параметр `visibility_actions`."},AS={en:"Actions when an element appears on the screen.",ru:"Действия при появлении элемента на экране."},OS={en:"Element width.",ru:"Ширина элемента."},MS={en:"Blend mode.",ru:"Метод наложения."},PS={en:"Gaussian image blur.",ru:"Размытие изображения по Гауссу."},IS={en:"Blur radius. Defines how many pixels blend into each other. Specified in: `dp`.",ru:"Радиус размытия. Определяет количество пикселей, которые будут смешиваться друг с другом. Единица измерения: `dp`."},DS={en:"Stroke around the element.",ru:"Рамка вокруг элемента."},VS={en:"One radius of element and stroke corner rounding. Has a lower priority than `corners_radius`.",ru:"Один радиус скругления углов элемента и рамки. Имеет более низкий приоритет, чем `corners_radius`."},LS={en:"Multiple radii of element and stroke corner rounding.",ru:"Несколько радиусов скругления углов элемента и рамки."},FS={en:"Adding shadow.",ru:"Добавление тени."},NS={en:"Parameters of the shadow applied to the element stroke.",ru:"Параметры тени, применяемой к рамке элемента."},qS={en:"Stroke style.",ru:"Стиль рамки."},RS={en:"Element position and size change animation.",ru:"Анимация изменения положения и размеров элемента."},BS={en:"Animations.",ru:"Анимации."},HS={en:"List of animations.",ru:"Список анимаций."},US={en:"Animated change of an element state.",ru:"Анимированное изменение состояния элемента."},JS={en:"Element position and size change animation.",ru:"Анимация изменения положения и размеров элемента."},WS={en:"A set of animations.",ru:"Набор анимаций."},KS={en:"Circle.",ru:"Круг."},YS={en:"Radius.",ru:"Радиус."},GS={en:"Enables the bounding of child elements by the parent's borders.",ru:"Включает ограничение дочерних элементов границами родителя."},XS={en:"Cloud-style text background. Rows have a rectangular background in the specified color with rounded corners.",ru:"Фон текста в стиле «облако». Строки получают прямоугольный фон с указанным цветом, а все углы скругляются."},ZS={en:"Fill color.",ru:"Цвет заливки."},xS={en:"Corner rounding radius.",ru:"Радиус скругления углов."},QS={en:"Margins between the row border and background border.",ru:"Отступы от границы строки до границы фона."},eC={en:"Sets collection elements dynamically using `data` and `prototypes`.",ru:"Задает элементы коллекции динамически при помощи `data` и `prototypes`."},tC={en:"Data that will be used to create collection elements.",ru:"Данные, которые будут использоваться для создания элементов коллекции."},nC={en:"Array of `div` elements from which the collection elements will be created.",ru:"Массив `div`, из которых будут созданы элементы коллекции."},iC={en:"Name for accessing the next `data` element in the prototype. Working with this element is the same as with dictionaries.",ru:"Имя для обращения к очередному элементу `data` в прототипе. Работа с этим элементом ведется так же, как со словарями."},oC={en:"Prefix for accessing the next `data` element in the prototype.",ru:"Префикс для обращения к очередному элементу `data` в прототипе."},rC={en:"`Div` from which the collection elements will be created. In `Div`, you can use expressions using data from `data`. To access the next `data` element, you need to use the same prefix as in `data_element_prefix`.",ru:"`Div`, из которого будут созданы элементы коллекции. В `Div` можно использовать выражения с использованием данных из `data`. Для обращения к очередному элементу `data` нужно использовать такой же префикс, как и в `data_element_prefix`."},sC={en:"`id` of the element to be created from the prototype. Unlike the `div-base.id` field, may contain expressions. Has a higher priority than `div-base.id`.",ru:"`id` элемента, который будет сформирован из прототипа. В отличие от поля `div-base.id` может содержать выражения. Имеет более высокий приоритет, чем `div-base.id`."},lC={en:"A condition that is used to select the prototype for the next element in the collection. If there is more than 1 true condition, the earlier prototype is selected. If none of the conditions are met, the element from `data` is skipped.",ru:"Условие, которое используется для выбора прототипа для очередного элемента коллекции. В случае, если будет больше 1 истинного условия, будет выбран прототип, который находится раньше. Если не выполнено ни одно условие, элемент из `data` будет пропущен."},aC={en:"Color animator.",ru:"Аниматор цвета."},cC={en:"Container. It contains other elements and is responsible for their location. It is used to arrange elements vertically, horizontally, and with an overlay in a certain order, simulating the third dimension.",ru:"Контейнер. Содержит в себе другие элементы и отвечает за их расположение. Позволяет располагать элементы по вертикали, горизонтали и с наложением в определенном порядке, имитируя третье измерение."},dC={en:"Fixed aspect ratio of the container. The element's height is calculated based on the width, ignoring the `height` parameter's value. \nOn the web, support for the `aspect-ratio` CSS property is required to use this parameter.",ru:"Фиксированное соотношение размеров контейнера. Высота элемента вычисляется исходя из ширины, значение параметра `height` игнорируется. \nВ вебе для использования этого параметра требуется поддержка свойства CSS `aspect-ratio`."},uC={en:"Horizontal element alignment. For child elements, it can be redefined using the `alignment_horizontal` property.",ru:"Горизонтальное выравнивание элементов. Для дочерних элементов может быть переопределено через свойство `alignment_horizontal`."},pC={en:"Vertical element alignment. The `baseline` value aligns elements along their own specified baseline (for text and other elements that have a baseline). Elements that don't have their baseline value specified are aligned along the top edge. For child elements, it can be redefined using the `alignment_vertical` property.",ru:"Вертикальное выравнивание элементов. Значение `baseline` означает выравнивание элементов по базовой линии (для текста и других элементов, у которых есть базовая линия). Остальные элементы в этом случае будут выровнены по верхнему краю. Для дочерних элементов может быть переопределено через свойство `alignment_vertical`."},_C={en:"Nested elements.",ru:"Вложенные элементы."},fC={en:"Element placement method. The `wrap` value transfers elements to the next line if they don't fit in the previous one. If the `wrap` value is set:<li>A separate line is allocated for each element along the main axis with the size value set to `match_parent`.</li><li>Elements along the cross axis with the size value `match_parent` are ignored.</li>",ru:"Способ размещения элементов. Значение `wrap` означает перенос элементов на следующую строку, если они не поместились на предыдущей. Если установлено значения `wrap`:<li>для каждого элемента со значением размера `match_parent` вдоль главной оси будет выделена отдельная строка;</li><li>элементы со значением `match_parent` вдоль побочной оси будут проигнорированы.</li>"},mC={en:"Separator between elements along the cross axis. Not used if the `layout_mode` parameter is set to `no_wrap`. Only new browsers are supported on the web (the `gap` property must be supported for flex blocks).",ru:"Разделитель между элементами вдоль поперечной оси. Не используется, если параметр `layout_mode` имеет значение `no_wrap`. В вебе поддерживаются только новые браузеры (требуется поддержка свойства `gap` для flex-блоков)."},gC={en:"Location of elements. `overlap` value overlays elements on top of each other in the order of enumeration. The lowest is the zero element of an array.",ru:"Расположение элементов. Значение `overlap` накладывает элементы друг на друга в порядке перечисления. Ниже всего — нулевой элемент массива."},hC={en:"Separator between elements along the main axis. Not used if the `orientation` parameter is set to `overlap`. Only new browsers are supported on the web (the `gap` property must be supported for flex blocks).",ru:"Разделитель между элементами вдоль основной оси. Не используется, если параметр `orientation` имеет значение `overlap`. В вебе поддерживаются только новые браузеры (требуется поддержка свойства `gap` для flex-блоков)."},vC={en:"Enables displaying the separator after the last item.",ru:"Включает отображение разделителя после последнего элемента."},bC={en:"Enables displaying the separator before the first item.",ru:"Включает отображение разделителя перед первым элементом."},yC={en:"Enables displaying the separator between items.",ru:"Включает отображение разделителя между элементами."},wC={en:"Separator style.",ru:"Стиль разделителя."},$C={en:"Container.",ru:"Контейнер."},kC={en:"Sets corner rounding.",ru:"Устанавливает скругление углов."},jC={en:"Rounding radius of a lower left corner. If not specified, then `corner_radius` is used.",ru:"Радиус скругления нижнего левого угла. Если не указано, то используется `corner_radius`."},SC={en:"Rounding radius of a lower right corner. If not specified, then `corner_radius` is used.",ru:"Радиус скругления нижнего правого угла. Если не указано, то используется `corner_radius`."},CC={en:"Rounding radius of an upper left corner. If not specified, then `corner_radius` is used.",ru:"Радиус скругления верхнего левого угла. Если не указано, то используется `corner_radius`."},TC={en:"Rounding radius of an upper right corner. If not specified, then `corner_radius` is used.",ru:"Радиус скругления верхнего правого угла. Если не указано, то используется `corner_radius`."},zC={en:"Fixed number of repetitions.",ru:"Фиксированное число повторов."},EC={en:"Infinite number of repetitions.",ru:"Бесконечное число повторов."},AC={en:"Custom element. It is delegated to a host application to create native elements depending on the platform.",ru:"Кастомный элемент. Делегируется хост-приложению для создания нативных элементов в зависимости от платформы."},OC={en:"Element data for a host application.",ru:"Данные элемента для хост-приложения."},MC={en:"Subtype of an element for a host application.",ru:"Подтип элемента для хост-приложения."},PC={en:"Nested elements.",ru:"Вложенные элементы."},IC={en:"Host-specific element.",ru:"Хост-специфичный элемент."},DC={en:"Root structure.",ru:"Корневая структура."},VC={en:"Contents.",ru:"Содержимое."},LC={en:"State ID.",ru:"Идентификатор состояния."},FC={en:"User functions.",ru:"Пользовательские функции."},NC={en:"Logging ID.",ru:"Идентификатор для логирования."},qC={en:"A set of visual element states. Each element can have a few states with a different layout. The states are displayed strictly one by one and switched using [action](div-action.md).",ru:"Набор состояний визуальных элементов. Каждый элемент может иметь несколько состояний с разной версткой. Состояния отображаются строго по одному, а переключаются с помощью [action](div-action.md)."},RC={en:"List of timers.",ru:"Список таймеров."},BC={en:"Events that trigger transition animations.",ru:"События, при которых сработают анимации переходов. Вместо него используйте `transition_triggers`."},HC={en:"Triggers for changing variables.",ru:"Триггеры изменения переменных."},UC={en:"Declaration of variables that can be used in an element.",ru:"Объявление переменных, которые могут быть использованы в элементе."},JC={en:"Element dimension value.",ru:"Значение измерения элемента."},WC={en:"Value.",ru:"Значение."},KC={en:"Actions performed when an element is no longer visible.",ru:"Действия, которые выполняются, когда элемент пропадает из зоны видимости."},YC={en:"Time in milliseconds during which an element must be outside the visible area to trigger `disappear-action`.",ru:"Время в миллисекундах, в течение которого элемент должен находиться вне зоны видимости, чтобы сработало действие `disappear-action`."},GC={en:"Percentage of the visible part of an element that triggers `disappear-action`.",ru:"Размер видимой части элемента в процентах, при котором срабатывает действие `disappear-action`."},XC={en:"Callbacks that are called after [data loading](../../interaction#loading-data).",ru:"Колбэки, которые вызываются после [дозагрузки данных](../../interaction#loading-data)."},ZC={en:"Actions in case of unsuccessful loading if the host reported it or the waiting time expired.",ru:"Действия при неуспешной загрузке, если о ней сообщил хост или закончилось время ожидания."},xC={en:"Actions in case of successful loading.",ru:"Действия при успешной загрузке."},QC={en:"It sets margins.",ru:"Устанавливает отступы."},eT={en:"Bottom margin.",ru:"Нижний отступ."},tT={en:"End margin. Margin position depends on the interface orientation. Has higher priority than the left and right margins.",ru:"Отступ от конца элемента. Положение отступа зависит от направления интерфейса. Имеет больший приоритет, чем левый или правый отступ."},nT={en:"Left margin.",ru:"Левый отступ."},iT={en:"Right margin.",ru:"Правый отступ."},oT={en:"Start margin. Margin position depends on the interface orientation. Has higher priority than the left and right margins.",ru:"Отступ от начала элемента. Положение отступа зависит от направления интерфейса. Имеет больший приоритет, чем левый или правый отступ."},rT={en:"Top margin.",ru:"Верхний отступ."},sT={en:"Type used for function arguments and return values.",ru:"Тип, используемый в аргументах и возвращаемых значениях функций."},lT={en:"Extension that affects an element.",ru:"Расширение, которое влияет на элемент."},aT={en:"Extension ID.",ru:"Идентификатор расширения."},cT={en:"Additional extension parameters.",ru:"Дополнительные параметры расширения."},dT={en:"Transparency animation.",ru:"Анимация прозрачности."},uT={en:"Value of the alpha channel which the element starts appearing from or at which it finishes disappearing.",ru:"Значение альфа-канала, с которого начнется появление или на котором закончится исчезновение элемента."},pT={en:"Image filters.",ru:"Фильтры для изображений."},_T={en:"Mirrors an image if the system uses RTL (Right-to-Left) text direction.",ru:"Зеркальное изображение, если в системе указано направление текста RTL (справа налево)."},fT={en:"Fixed number of repetitions.",ru:"Фиксированное число повторов."},mT={en:"Number of repetitions.",ru:"Число повторов."},gT={en:"Fixed size of an element.",ru:"Фиксированный размер элемента."},hT={en:"Unit of measurement. To learn more about units of size measurement, see [Layout inside the card](../../layout).",ru:"Единица измерения. Подробнее о единицах измерения размера в разделе [Верстка внутри карточки](../../layout)."},vT={en:"Element size.",ru:"Размер элемента."},bT={en:"Element behavior when focusing or losing focus.",ru:"Поведение элемента при фокусировке или потере фокуса."},yT={en:"Background of an element when it is in focus. It can contain multiple layers.",ru:"Фон элемента, когда он в фокусе. Может содержать несколько слоев."},wT={en:"Border of an element when it's in focus.",ru:"Рамка элемента, когда он в фокусе."},$T={en:"IDs of elements that will be next to get focus.",ru:"Идентификаторы элементов, которые следующими получат фокус."},kT={en:"Actions when an element loses focus.",ru:"Действия, когда элемент теряет фокус."},jT={en:"Actions when an element gets focus.",ru:"Действия, когда элемент получает фокус."},ST={en:"Font family:<li>`text` — a standard text font;</li><li>`display` — a family of fonts with a large font size.</li>",ru:"Семейство шрифта:<li>`text` — стандартный текстовый шрифт;</li><li>`display` — семейство для шрифтов с крупным кеглем.</li>"},CT={en:'List of OpenType font features. The format matches the CSS attribute "font-feature-settings". Learn more: https://www.w3.org/TR/css-fonts-3/#font-feature-settings-prop',ru:"Список свойств шрифтов OpenType. Формат соответствует атрибуту CSS font-feature-settings. Подробнее: https://www.w3.org/TR/css-fonts-3/#font-feature-settings-prop"},TT={en:"Font size.",ru:"Размер шрифта."},zT={en:"Unit of measurement:<li>`px` — a physical pixel.</li><li>`dp` — a logical pixel that doesn't depend on screen density.</li><li>`sp` — a logical pixel that depends on the font size on a device. Specify height in `sp`. Only available on Android.</li>",ru:"Единица измерения:<li>`px` — физический пиксель.</li><li>`dp` — логический пиксель, который не зависит от плотности экрана.</li><li>`sp` — логический пиксель, который зависит от размера шрифта на устройстве. Указывайте в `sp` высоту. Доступен только на Android.</li>"},ET={en:"Style.",ru:"Начертание."},AT={en:"Style. Numeric value.",ru:"Начертание. Числовое значение."},OT={en:"User-defined function.",ru:"Функция, определяемая пользователем."},MT={en:"Function argument.",ru:"Аргумент функции."},PT={en:"Function argument name.",ru:"Название аргумента функции."},IT={en:"Function argument type.",ru:"Тип аргумента функции."},DT={en:"Function body. Evaluated as an expression using the passed arguments. Doesn't capture external variables.",ru:"Тело функции. Вычисляется как выражение с подставлением передаваемых аргументов. Не захватывает внешние переменные."},VT={en:"Function name.",ru:"Название функции."},LT={en:"Return value type.",ru:"Тип возвращаемого значения."},FT={en:"Gallery. It contains a horizontal or vertical set of cards that can be scrolled.",ru:"Галерея. Содержит горизонтальный или вертикальный набор карточек, которые можно скроллить."},NT={en:"Number of columns for block layout.",ru:"Количество колонок для плиточной верстки."},qT={en:"Aligning elements in the direction perpendicular to the scroll direction. In horizontal galleries:<li>`start` — alignment to the top of the card;</li><li>`center` — to the center;</li><li>`end` — to the bottom.</li></p><p>In vertical galleries:<li>`start` — alignment to the left of the card;</li><li>`center` — to the center;</li><li>`end` — to the right.</li>",ru:"Выравнивание элементов в направлении, перпендикулярном направлению скролла. В горизонтальных галереях:<li>`start` — выравнивание по верхнему краю карточки;</li><li>`center` — по центру;</li><li>`end` — по нижнему краю.</li></p><p>В вертикальных галереях:<li>`start` — выравнивание по левому краю карточки;</li><li>`center` — по центру;</li><li>`end` — по правому краю.</li>"},RT={en:"Spacing between elements across the scroll axis. By default, the value set to `item_spacing`.",ru:"Расстояние между элементами поперек оси прокрутки. По умолчанию равно значению `item_spacing`."},BT={en:"Ordinal number of the gallery element to be scrolled to by default. For `scroll_mode`:<li>`default` — the scroll position is set to the beginning of the element, without taking into account `item_spacing`;</li><li>`paging` — the scroll position is set to the center of the element.</li>",ru:"Порядковый номер элемента галереи, к которому будет выполнен скролл по умолчанию. Для `scroll_mode`:<li>`default` — положение скролла устанавливается в начало элемента, без учета `item_spacing`;</li><li>`paging` — положение скролла устанавливается в центр элемента.</li>"},HT={en:"Spacing between elements.",ru:"Расстояние между элементами."},UT={en:"Gallery elements. Scrolling to elements can be implemented using:<li>`div-action://set_current_item?id=&item=` — scrolling to the element with an ordinal number `item` inside an element, with the specified `id`;</li><li>`div-action://set_next_item?id=[&overflow={clamp\\|ring}]` — scrolling to the next element inside an element, with the specified `id`;</li><li>`div-action://set_previous_item?id=[&overflow={clamp\\|ring}]` — scrolling to the previous element inside an element, with the specified `id`.</li></p><p>The optional `overflow` parameter is used to set navigation when the first or last element is reached:<li>`clamp` — transition will stop at the border element;</li><li>`ring` — go to the beginning or end, depending on the current element.</li></p><p>By default, `clamp`.",ru:"Элементы галереи. Скролл к элементам можно осуществить с помощью:<li>`div-action://set_current_item?id=&item=` — скролл к элементу с порядковым номером `item` внутри элемента, с заданным `id`;</li><li>`div-action://set_next_item?id=[&overflow={clamp\\|ring}]` — скролл к следующему элементу внутри элемента, с заданным `id`;</li><li>`div-action://set_previous_item?id=[&overflow={clamp\\|ring}]` — скролл к предыдущему элементу внутри элемента, с заданным `id`.</li></p><p>Опциональный параметр `overflow` позволяет задать навигацию при достижении первого или последнего элемента:<li>`clamp` — переход остановится на пограничном элементе;</li><li>`ring` — переход в начало или конец, в зависимости от текущего элемента.</li></p><p>По умолчанию, `clamp`."},JT={en:"Gallery orientation.",ru:"Ориентация галереи."},WT={en:"If the parameter is enabled, the gallery won't transmit the scroll gesture to the parent element.",ru:"При включенном параметре галерея не будет передавать жест скролла родительскому элементу."},KT={en:"Scroll type: `default` — continuous, `paging` — page-by-page.",ru:"Тип скролла: `default` — непрерывный, `paging` — постраничный."},YT={en:"Gallery.",ru:"Галерея."},GT={en:"Animated GIF image.",ru:"Анимированное gif-изображение."},XT={en:"Direct URL to a GIF image.",ru:"Прямая ссылка на gif-изображение."},ZT={en:"Gif image.",ru:"Gif-изображение."},xT={en:"Gradient background.",ru:"Градиентный фон."},QT={en:"Angle of gradient direction.",ru:"Угол направления градиента."},ez={en:"Colors. Gradient points will be located at an equal distance from each other.",ru:"Цвета. Точки градиента будут расположены на равном расстоянии друг от друга."},tz={en:"Colors. Gradient points are located at an equal distance from each other.",ru:"Цвета. Точки градиента будут расположены на равном расстоянии друг от друга."},nz={en:"Linear gradient.",ru:"Линейный градиент."},iz={en:"Angle of gradient direction.",ru:"Угол направления градиента."},oz={en:"Colors and positions of gradient points. When using this parameter, the `colors` parameter is ignored.",ru:"Цвета и расположение точек градиента. При использовании данного параметра игнорируется параметр `colors`."},rz={en:"Describes color at particular gradient position.",ru:"Определяет цвет градиента на заданной позиции."},sz={en:"Gradient color corresponding to gradient point.",ru:"Цвет градиента, соответствующий точке градиента."},lz={en:"The position of the gradient point.",ru:"Расположение точки градиента."},az={en:"Radial gradient.",ru:"Радиальный градиент."},cz={en:"Shift of the central point of the gradient relative to the left edge along the X axis.",ru:"Сдвиг центральной точки градиента относительно левого края по оси X."},dz={en:"Shift of the central point of the gradient relative to the top edge along the Y axis.",ru:"Сдвиг центральной точки градиента относительно верхнего края по оси Y."},uz={en:"Radius of the gradient transition.",ru:"Радиус градиентного перехода."},pz={en:"A grid with an option to merge cells vertically and horizontally.",ru:"Сетка с возможностью объединения ячеек по вертикали и горизонтали."},_z={en:"Number of columns.",ru:"Количество столбцов."},fz={en:"Horizontal alignment of grid contents.",ru:"Выравнивание содержимого сетки по горизонтали."},mz={en:"Vertical alignment of grid contents.",ru:"Выравнивание содержимого сетки по вертикали."},gz={en:"Contents.",ru:"Содержимое."},hz={en:"Grid.",ru:"Сетка."},vz={en:"Image.",ru:"Изображение."},bz={en:"Transparency animation when loading an image.",ru:"Анимация прозрачности при загрузке изображения."},yz={en:"Background image.",ru:"Фоновое изображение."},wz={en:"Image transparency.",ru:"Прозрачность изображения."},$z={en:"Horizontal image alignment.",ru:"Горизонтальное выравнивание изображения."},kz={en:"Vertical image alignment.",ru:"Вертикальное выравнивание изображения."},jz={en:"Image URL.",ru:"Ссылка на изображение."},Sz={en:"Background image must be loaded before the display.",ru:"До показа необходимо предварительно загрузить фоновое изображение."},Cz={en:"Image scaling.",ru:"Масштабирование изображения."},Tz={en:"Horizontal image alignment.",ru:"Горизонтальное выравнивание изображения."},zz={en:"Vertical image alignment.",ru:"Вертикальное выравнивание изображения."},Ez={en:"Placeholder background before the image is loaded.",ru:"Фон-заглушка до загрузки изображения."},Az={en:"Background image must be loaded before the display.",ru:"До показа необходимо предварительно загрузить фоновое изображение."},Oz={en:"Image preview encoded in `base64`. It will be shown instead of `placeholder_color` before the image is loaded. Format `data url`: `data:[;base64],<data>`",ru:"Превью изображения, закодированное в `base64`. Будет показано до загрузки картинки вместо `placeholder_color`. Формат `data url`: `data:[;base64],<data>`"},Mz={en:"Image scaling:<li>`fit` places the entire image into the element (free space is filled with background);</li><li>`fill` scales the image to the element size and cuts off the excess.</li>",ru:"Масштабирование изображения:<li>`fit` помещает картинку в элемент целиком (свободное место заполняется фоном);</li><li>`fill` масштабирует картинку по размеру элемента и обрезает лишнее.</li>"},Pz={en:"It sets the priority of displaying the preview — the preview is decoded in the main stream and displayed as the first frame. Use the parameter carefully — it will worsen the preview display time and can worsen the application launch time.",ru:"Устанавливает приоритет показа превью — превью декодируется в главном потоке и показывается первым кадром. Используйте параметр с осторожностью — он ухудшит время показа превью и может ухудшить время запуска приложения."},Iz={en:"Direct URL to an image.",ru:"Прямая ссылка на изображение."},Dz={en:"Image.",ru:"Изображение."},Vz={en:"New color of a contour image.",ru:"Новый цвет контурного изображения."},Lz={en:"Blend mode of the color specified in `tint_color`.",ru:"Метод наложения цвета, указанного в `tint_color`."},Fz={en:"Progress indicator for [pager](div-pager.md).",ru:"Индикатор прогресса для [пейджера](div-pager.md)."},Nz={en:"Active indicator color.",ru:"Цвет активного индикатора."},qz={en:"A size multiplier for an active indicator.",ru:"Множитель размера для активного индикатора."},Rz={en:"Active indicator shape.",ru:"Форма активного индикатора."},Bz={en:"Animation of switching between indicators.",ru:"Анимация переключения между индикаторами."},Hz={en:"Indicator color.",ru:"Цвет индикатора."},Uz={en:"Inactive indicator shape, minimum size. Used when all the indicators don't fit on the screen.",ru:"Форма неактивного индикатора минимального размера. Используется, когда нужное количество индикаторов не помещается на экране."},Jz={en:"Indicator shape.",ru:"Форма индикатора."},Wz={en:"Indicator items placement mode:<li>Default: Indicators' width is fixed and defined by the `shape` parameters.</li><li>Stretch: Indicators are expanded to fill the entire width.</li>",ru:"Режим расположения элементов индикатора:<li>по умолчанию — с фиксированной шириной элементов, которая определяется параметрами `shape`;</li><li>растяжение — индикаторы займут всю предоставленную ширину.</li>"},Kz={en:"Fixed width indicator items placement mode.",ru:"Режим расположения элементов индикатора с фиксированной шириной элементов."},Yz={en:"Stretch indicator items placement mode: indicators are expanded to fill the entire width.",ru:"Режим растяжения элементов индикатора, при котором индикаторы займут всю предоставленную ширину."},Gz={en:"Maximum number of visible indicators.",ru:"Максимальное количество индикаторов, которые будут отображены."},Xz={en:"A size multiplier for a minimal indicator. It is used when the required number of indicators don't fit on the screen.",ru:"Множитель размера для минимального индикатора. Используется, когда на экране не помещается нужное количество индикаторов."},Zz={en:"ID of the pager that is a data source for an indicator.",ru:"Идентификатор пейджера-источника данных для индикатора."},xz={en:"Indicator shape.",ru:"Форма индикатора."},Qz={en:"Progress indicator for pager.",ru:"Индикатор прогресса для пейджера."},eE={en:"Spacing between indicator centers.",ru:"Расстояние между центрами индикаторов."},tE={en:"Spacing between indicator borders.",ru:"Расстояние между границами индикаторов."},nE={en:"Infinite number of repetitions.",ru:"Бесконечное число повторов."},iE={en:"Text input element.",ru:"Элемент для ввода текста."},oE={en:"Text auto-capitalization type.",ru:"Тип автоматической капитализации текста."},rE={en:"Actions when pressing the 'Enter' key. Actions (if any) override the default behavior.",ru:"Действия при нажатии кнопки клавиатуры `Enter`. При наличии действий поведение по умолчанию будет переопределено."},sE={en:"'Enter' key type.",ru:"Тип кнопки клавиатуры `Enter`."},lE={en:"Filter that prevents users from entering text that doesn't satisfy the specified conditions.",ru:"Фильтр, который не допускает ввод текста, не соответствующего заданным условиям."},aE={en:"Filter based on [calculated expressions](../../expressions).",ru:"Фильтр на основе [вычисляемых выражений](../../expressions)."},cE={en:"[Calculated expression](../../expressions) used to verify the validity of the value.",ru:"[Вычисляемое выражение](../../expressions), которое используется для проверки валидности значения."},dE={en:"Filter based on regular expressions.",ru:"Фильтр на основе регулярных выражений."},uE={en:"Regular expression (pattern) that the entered value must match.",ru:"Регулярное выражение (паттерн), которому должно соответствовать вводимое значение."},pE={en:"Text highlight color. If the value isn't set, the color set in the client will be used instead.",ru:"Цвет выделения текста. Если значение не задано, будет использован цвет, установленный на клиенте."},_E={en:"Text color.",ru:"Цвет текста."},fE={en:"Tooltip text.",ru:"Текст подсказки."},mE={en:"Enables or disables text editing.",ru:"Включает или отключает возможность редактирования текста."},gE={en:"Keyboard type.",ru:"Тип клавиатуры."},hE={en:"Spacing between characters.",ru:"Интервал между символами."},vE={en:"Line spacing of the text. Units specified in `font_size_unit`.",ru:"Межстрочный интервал (интерлиньяж) текста. Измеряется в единицах, заданных в `font_size_unit`."},bE={en:"Mask for entering text based on the specified template.",ru:"Маска для ввода текста по заданному шаблону."},yE={en:"Mask for entering currency in the specified regional format.",ru:"Маска для ввода валютных значений в заданном региональном формате."},wE={en:"Language tag that the currency format should match, as per [IETF BCP 47](https://en.wikipedia.org/wiki/IETF_language_tag). If the language is not set, it is defined automatically.",ru:"Тег языка, которому должен соответствовать формат валюты, по [стандарту IETF BCP 47](https://en.wikipedia.org/wiki/IETF_language_tag). Если язык не задан, он будет определен автоматически."},$E={en:"Mask for entering text with a fixed number of characters.",ru:"Маска для ввода текста с фиксированным количеством символов."},kE={en:"If this option is enabled, the text field contains the mask before being filled in.",ru:"Если опция включена, маска отображается в текстовом поле до его заполнения."},jE={en:"String that sets the text input template. For example, the `+7 (###) ###-##-## ` template for a phone number.",ru:"Строка, которая задает шаблон для ввода текста. Например, для телефонного номера можно использовать шаблон `+7 (###) ###-##-## `."},SE={en:"Template decoding is a description of the characters that will be replaced with user input.",ru:"Расшифровка шаблона — описание символов, вместо которых должен быть подставлен пользовательский ввод."},CE={en:"A character in the template that will be replaced with a user-defined character.",ru:"Символ в шаблоне, вместо которого должен быть подставлен символ, введенный пользователем."},TE={en:"The character that's displayed in the input field where the user is expected to enter text. This is used if mask display is enabled.",ru:"Символ, который отображается в поле ввода на месте, в котором ожидается ввод пользовательского текста. Используется, если включено отображение маски."},zE={en:"Regular expression for validating character inputs. For example, when a mask is digit-only.",ru:"Регулярное выражение для валидации вводимого символа. Например, если маска предполагает только ввод цифр."},EE={en:"Mask for entering phone numbers with dynamic regional format identification.",ru:"Маска для ввода номера телефона c динамическим определением регионального формата."},AE={en:"Name of the variable to store the unprocessed value.",ru:"Имя переменной для хранения необработанного значения."},OE={en:"Maximum number of characters that can be entered in the input field.",ru:"Максимальное количество символов, которое можно ввести в поле ввода."},ME={en:"Maximum number of lines to be displayed in the input field.",ru:"Максимальное количество строк, которое будет видно в поле ввода."},PE={en:"Data entry method. If the value isn't set, the `keyboard_type` parameter's value is used instead.",ru:"Способ ввода данных. Если значение не указано, будет использовано значение параметра `keyboard_type`."},IE={en:"Text input line used in the native interface.",ru:"Нативный внешний вид - линия ввода текста."},DE={en:"Text input line color.",ru:"Цвет линии ввода текста."},VE={en:"Highlighting input text when focused.",ru:"Выделение введенного текста при получении фокуса."},LE={en:"Text input field.",ru:"Поле ввода текста."},FE={en:"Name of text storage variable.",ru:"Название переменной для хранения текста."},NE={en:"Validator that checks that the field value meets the specified conditions.",ru:"Валидатор, который проверяет значение поля на соответствие заданным условиям."},qE={en:"Determines whether the empty field value is valid.",ru:"Определяет, является ли пустое значение поля корректным."},RE={en:"[Calculated expression](../../expressions) validator.",ru:"Валидатор на основе [вычисляемых выражений](../../expressions)."},BE={en:"[Calculated expression](../../expressions) used as a value validity condition.",ru:"[Вычисляемое выражение](../../expressions), которое используется как условие валидности значения."},HE={en:"ID of the text element containing the error message. The message will also be used for providing access.",ru:"ID текстового элемента, содержащего сообщение об ошибке. Сообщение также будет использовано для обеспечения доступности."},UE={en:"Regex validator.",ru:"Валидатор на основе регулярных выражений."},JE={en:"A regular expression (pattern) that the field value must match.",ru:"Регулярное выражение (паттерн), которому должно соответствовать значение поля."},WE={en:"The name of the variable that stores the calculation results.",ru:"Имя переменной, в которой хранится результат вычисления выражения."},KE={en:"Enter data manually using a keyboard.",ru:"Ввод данных с клавиатуры."},YE={en:"Provides data on the actual size of the element.",ru:"Предоставляет данные о реальном размере элемента."},GE={en:"Name of the variable that stores the element’s height.",ru:"Название переменной для хранения высоты элемента."},XE={en:"Name of the variable that stores the element’s width.",ru:"Название переменной для хранения ширины элемента."},ZE={en:"Line style.",ru:"Стиль линий."},xE={en:"Limit on the number of loggings. If `0`, the limit is removed.",ru:"Ограничение на количество логирований. При значении `0` ограничение снимается."},QE={en:"Element size adjusts to a parent element.",ru:"Размер элемента подстраивается под родительский элемент."},eA={en:"Weight when distributing free space between elements with the size type `match_parent` inside an element. If the weight isn't specified, the elements will divide the place equally.",ru:"Вес при распределении свободного места между элементами с типом размера `match_parent` внутри элемента. Если вес не указан, то элементы поделят место поровну."},tA={en:"Fixed width value of the visible part of a neighbouring page.",ru:"Фиксированное значение ширины видимой части соседней страницы."},nA={en:"Width of the visible part of a neighbouring page.",ru:"Ширина видимой части соседней страницы."},iA={en:"Image in 9-patch format (https://developer.android.com/studio/write/draw9patch).",ru:"Изображение в формате nine patch (https://developer.android.com/studio/write/draw9patch)."},oA={en:"Margins that break the image into parts using the same rules as the CSS `border-image-slice` property (https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-slice).",ru:"Отступы, разбивающие изображение на части по тем же правилам, как при использовании свойства CSS `border-image-slice` (https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-slice)."},rA={en:"Numeric value animator.",ru:"Аниматор числового значения."},sA={en:"The page size is equal to the size of its content.",ru:"Размер страницы равен размеру ее контента."},lA={en:"Alignment of pager pages along the scroll axis. For edge alignment, the margin from the edge of the parent equals the value of the corresponding padding.",ru:"Выравнивание страниц пейджера по оси скролла. Для выравнивания по краю отступ от края родителя равен значению соответствующего паддинга."},aA={en:"Page width (%).",ru:"Ширина страницы в процентах."},cA={en:"Page width as a percentage of the parent element width.",ru:"Ширина страницы в процентах от ширины родительского элемента."},dA={en:"Pager. It contains a horizontal set of cards that can be scrolled page by page. It shows the main page and the beginning of the next one.",ru:"Пейджер. Содержит горизонтальный набор карточек, которые можно скроллить постранично. Показывает основную страницу и начало следующей."},uA={en:"Aligning elements in the direction perpendicular to the scroll direction. In horizontal pager:<li>`start` — alignment to the top of the card;</li><li>`center` — to the center;</li><li>`end` — to the bottom.</li></p><p>In vertical pager:<li>`start` — alignment to the left of the card;</li><li>`center` — to the center;</li><li>`end` — to the right.</li>",ru:"Выравнивание элементов в направлении, перпендикулярном направлению скролла. В горизонтальном пейджере:<li>`start` — выравнивание по верхнему краю карточки;</li><li>`center` — по центру;</li><li>`end` — по нижнему краю.</li></p><p>В вертикальном пейджере:<li>`start` — выравнивание по левому краю карточки;</li><li>`center` — по центру;</li><li>`end` — по правому краю.</li>"},pA={en:"Ordinal number of the pager element that will be opened by default.",ru:"Порядковый номер элемента пейджера, который будет открываться по умолчанию."},_A={en:"Enables infinite scrolling of cards. Scrolling is looped: after the last card is displayed, it starts over again.",ru:"Включает бесконечный скролл карточек. После последней карточки прокрутка начинается сначала, т.е. скролл зацикливается."},fA={en:"Spacing between elements.",ru:"Расстояние между элементами."},mA={en:"Pager elements. Page-by-page transition options can be implemented using:<li>`div-action://set_current_item?id=&item=` — set the current page with an ordinal number `item` inside an element, with the specified `id`;</li><li>`div-action://set_next_item?id=[&overflow={clamp\\|ring}]` — go to the next page inside an element, with the specified `id`;</li><li>`div-action://set_previous_item?id=[&overflow={clamp\\|ring}]` — go to the previous page inside an element, with the specified `id`.</li></p><p>The optional `overflow` parameter is used to set navigation when the first or last element is reached:<li>`clamp` — transition will stop at the border element;</li><li>`ring` — go to the beginning or end, depending on the current element.</li></p><p>By default, `clamp`.",ru:"Элементы пейджера. Варианты постраничного перехода можно осуществить с помощью:<li>`div-action://set_current_item?id=&item=` — задать текущую страницу с порядковым номером `item` внутри элемента, с заданным `id`;</li><li>`div-action://set_next_item?id=[&overflow={clamp\\|ring}]` — перейти на следующую страницу внутри элемента, с заданным `id`;</li><li>`div-action://set_previous_item?id=[&overflow={clamp\\|ring}]` — перейти на предыдущую страницу внутри элемента, с заданным `id`.</li></p><p>Опциональный параметр `overflow` позволяет задать навигацию при достижении первого или последнего элемента:<li>`clamp` — переход остановится на пограничном элементе;</li><li>`ring` — переход в начало или конец, в зависимости от текущего элемента.</li></p><p>По умолчанию, `clamp`."},gA={en:"Type of calculation of the main page width:<li>`fixed` — from the fixed width of the next page `neighbour_page_width`;</li><li>`percentage` — from the percentage value `page_width`.</li>",ru:"Тип вычисления ширины основной страницы:<li>`fixed` — из фиксированной ширины следующей страницы `neighbour_page_width`;</li><li>`percentage` — из процентного значения `page_width`.</li>"},hA={en:"Width of the visible part of a neighbouring page.",ru:"Ширина видимой части соседней страницы."},vA={en:"Page width.",ru:"Ширина страницы."},bA={en:"Minimum transparency of the next page, within the range [0, 1], when scrolling through the pager. The following page is always the page with a larger ordinal number in the `items` list, regardless of the scrolling direction.",ru:"Минимальная прозрачность следующей страницы в диапазоне [0, 1] при листании пейджера. Следующая страница — всегда страница с большим порядковым номером в списке `items`, независимо от направления листания."},yA={en:"Scaling the next page during pager scrolling. The following page is always the page with a larger ordinal number in the `items` list, regardless of the scrolling direction.",ru:"Маштабирование следующей страницы во время листания пейджера. Следующая страница — всегда страница с большим порядковым номером в списке `items`, независимо от направления листания."},wA={en:"Pager orientation.",ru:"Ориентация пейджера."},$A={en:"Page transformation during pager scrolling.",ru:"Преобразование страницы пейджера во время движения."},kA={en:"Animation speed adjustment. When the value is set to `spring`, it’s a damped oscillation animation truncated to 0.7, with the `damping=1` parameter. Other values correspond to the Bezier curve:<li>`linear` — cubic-bezier(0, 0, 1, 1)</li><li>`ease` — cubic-bezier(0.25, 0.1, 0.25, 1)</li><li>`ease_in` — cubic-bezier(0.42, 0, 1, 1)</li><li>`ease_out` — cubic-bezier(0, 0, 0.58, 1)</li><li>`ease_in_out` — cubic-bezier(0.42, 0, 0.58, 1)</li>",ru:"Изменение скорости анимации. При значении `spring` — обрезанная до 0.7 анимация затухающих колебаний с параметром `damping=1`. Остальные значения соответствуют кривой Безье:<li>`linear` — cubic-bezier(0, 0, 1, 1);</li><li>`ease` — cubic-bezier(0.25, 0.1, 0.25, 1);</li><li>`ease_in` — cubic-bezier(0.42, 0, 1, 1);</li><li>`ease_out` — cubic-bezier(0, 0, 0.58, 1);</li><li>`ease_in_out` — cubic-bezier(0.42, 0, 0.58, 1).</li>"},jA={en:"Pages are stacked during animation overlapping one another.",ru:"Страницы собираются в стопку при анимации, перекрывая друг друга."},SA={en:"If the value is `false`, the following pages will be stacked on top of the previous ones. If the value is `true`, the reverse happens. The following page is always the page with a larger ordinal number in the `items` list, regardless of the scrolling direction.",ru:"При значении `false` следующие страницы будут собираться в стопку над предыдущими. При значении `true` — наоборот. Следующая страница — всегда страница с большим порядковым номером в списке `items`, независимо от направления листания."},CA={en:"Pages move without overlapping during pager scrolling.",ru:"Страницы двигаются во время листания пейджера, не перекрывая друг друга."},TA={en:"Minimum transparency of the previous page, in the range [0, 1], during pager scrolling. The previous page is always the page with a lower ordinal number in the `items` list, regardless of the scrolling direction.",ru:"Минимальная прозрачность предыдущей страницы в диапазоне [0, 1] во время листания пейджера. Предыдущая страница — всегда страница с меньшим порядковым номером в списке `items`, независимо от направления листания."},zA={en:"Scaling the previous page during pager scrolling. The previous page is always the page with a lower ordinal number in the `items` list, regardless of the scrolling direction.",ru:"Маштабирование предыдущей страницы во время листания пейджера. Предыдущая страница — всегда страница с меньшим порядковым номером в списке `items`, независимо от направления листания."},EA={en:"If the parameter is enabled, the pager won't transmit the scroll gesture to the parent element.",ru:"При включенном параметре пейджер не будет передавать жест скролла родительскому элементу."},AA={en:"Alignment of pager pages along the scroll direction. In horizontal pager:<li>`start` — alignment to the left of the card;</li><li>`center` — to the center;</li><li>`end` — to the right.</li></p><p>In vertical pager:<li>`start` — alignment to the top of the card;</li><li>`center` — to the center;</li><li>`end` — to the bottom.</li>. For edge alignment, the margin from the edge of the parent equals the value of the corresponding padding.",ru:"Выравнивание страниц пейджера по направлению скролла. В горизонтальном пейджере:<li>`start` — выравнивание по левому краю карточки;</li><li>`center` — по центру;</li><li>`end` — по правому краю.</li></p><p>В вертикальном пейджере:<li>`start` — выравнивание по верхнему краю карточки;</li><li>`center` — по центру;</li><li>`end` — по нижнему краю.</li>. Для выравнивания по краю отступ от края родителя равен значению соответствующего паддинга."},OA={en:"Pager.",ru:"Пейджер."},MA={en:"Edits the element.",ru:"Редактирует элемент."},PA={en:"ID of an element to be replaced or removed.",ru:"Идентификатор элемента для замены или удаления."},IA={en:"Elements to be inserted. If the parameter isn't specified, the element will be removed.",ru:"Элементы для вставки. Если параметр не задан, то элемент будет удален."},DA={en:"Element changes.",ru:"Изменения элементов."},VA={en:"Procedure for applying changes:<li>`transactional` — if an error occurs during application of at least one element, the changes aren't applied.</li><li>`partial` — all possible changes are applied. If there are errors, they are reported.</li>",ru:"Порядок применения изменений:<li>`transactional` — если во время применения хотя бы одного элемента произошла ошибка, то изменения не применяются.</li><li>`partial` — применяются все возможные изменения. Если есть ошибки, то о них сообщается.</li>"},LA={en:"Actions to perform after changes are applied.",ru:"Действия после применения изменений."},FA={en:"Actions to perform if there’s an error when applying changes in transaction mode.",ru:"Действия после ошибки применения изменений в транзакционном режиме."},NA={en:"Element size (%).",ru:"Размер элемента в процентах."},qA={en:"Element size value.",ru:"Значение размера элемента."},RA={en:"Fixed value of the central point of transformation: the absolute coordinate of the rotation point relative to the element's top-left corner.",ru:"Фиксированное значение центральной точки трансформации — абсолютная координата точки вращения относительно левого верхнего угла элемента."},BA={en:"Fixed coordinates of the rotation axis.",ru:"Фиксированные координаты оси вращения."},HA={en:"Measurement unit. To learn more about units of size measurement, see [Layout inside the card](../../layout).",ru:"Единица измерения. Подробнее о единицах измерения размера в разделе [Верстка внутри карточки](../../layout)."},UA={en:"Coordinate value.",ru:"Значение координаты."},JA={en:"Position of the center point of transformation as a percentage relative to the element. The point with coordinates (0%, 0%) corresponds to the top-left corner, and (100%, 100%) corresponds to the bottom-right corner.",ru:"Положение центральной точки трансформации в процентах относительно элемента. Точка с координатами (0%, 0%) соответствует левому верхнему углу, а (100%, 100%) правому нижнему углу."},WA={en:"Location of the coordinate of the rotation axis as a percentage relative to the element size.",ru:"Расположение координаты оси вращения в процентах относительно размеров элемента."},KA={en:"Coordinate value as a percentage.",ru:"Значение координаты в процентах."},YA={en:"A point with fixed coordinates.",ru:"Точка с фиксированными координатами."},GA={en:"`X` coordinate.",ru:"Координата `X`."},XA={en:"`Y` coordinate.",ru:"Координата `Y`."},ZA={en:"Fixed coordinates of the central point of the gradient.",ru:"Фиксированные координаты центральной точки градиента."},xA={en:"Coordinate value.",ru:"Значение координаты."},QA={en:"Location of the central point of the gradient relative to the element borders.",ru:"Расположение центральной точки градиента относительно границ элемента."},eO={en:'Coordinate value in the range "0...1".',ru:"Значение координаты в диапазоне `0..1`."},tO={en:"Relative radius of the gradient transition.",ru:"Относительный радиус градиентного перехода."},nO={en:"Type of the relative radius of the gradient transition.",ru:"Тип относительного радиуса градиентного перехода."},iO={en:"ID for the div object structure. Used to optimize block reuse. See [block reuse](../../reuse/reuse.md).",ru:"ID для структуры div-объекта. Используется для более оптимального переиспользования блоков. См. [переиспользование блоков](../../reuse/reuse.md)."},oO={en:"A rectangle with rounded corners.",ru:"Прямоугольник со скругленными углами."},rO={en:"Corner rounding radius.",ru:"Радиус скругления углов."},sO={en:"Height.",ru:"Высота."},lO={en:"Width.",ru:"Ширина."},aO={en:"Scale animation.",ru:"Анимация масштабирования."},cO={en:"Relative coordinate `X` of the point that won't change its position in case of scaling.",ru:"Относительная координата `X` точки, которая не изменит своего положения при масштабировании."},dO={en:"Relative coordinate `Y` of the point that won't change its position in case of scaling.",ru:"Относительная координата `Y` точки, которая не изменит своего положения при масштабировании."},uO={en:"Value of the scale from which the element starts appearing or at which it finishes disappearing.",ru:"Значение масштаба, с которого начнется появление или на котором закончится исчезновение элемента."},pO={en:"Scrollbar behavior. Hidden by default. When choosing a gallery size, keep in mind that the scrollbar may have a different height and width depending on the platform and user settings. <li>`none` — the scrollbar is hidden.</li><li>`auto` — the scrollbar is shown if there isn't enough space and it needs to be displayed on the current platform.</li>",ru:"Поведение скроллбара. По умолчанию скрыт. В зависимости от платформы и настроек пользователя, скроллбар может иметь разные ширину и высоту. Учитывайте это при выборе размеров галереи. <li>`none` — скроллбар скрыт.</li><li>`auto` — скроллбар отображается, если не хватает места и его отображение необходимо на текущей платформе.</li>"},_O={en:"List of options with only one to be selected.",ru:"Список вариантов, из которых можно выбрать одно значение."},fO={en:"Hint color.",ru:"Цвет подсказки."},mO={en:"Hint text.",ru:"Текст подсказки."},gO={en:"Spacing between characters.",ru:"Интервал между символами."},hO={en:"Line spacing of the text. Measured in units set in `font_size_unit`.",ru:"Межстрочный интервал (интерлиньяж) текста. Измеряется в единицах, заданных параметром `font_size_unit`."},vO={en:"List option.",ru:"Вариант выбора в списке."},bO={en:"Text description of the option displayed in the list. If not set, `value` is used instead.",ru:"Текстовое описание варианта, которое отображается в списке. Если не указано, то берется значение параметра `value`."},yO={en:"Value matching the option.",ru:"Значение, которое соответствует варианту выбора."},wO={en:"Name of the variable that stores the selected option value (`value`).",ru:"Имя переменной, которая хранит значение `value` выбранного варианта."},$O={en:"Enter data using a menu selection. \nThe text value of the `div_input` parameter corresponds to the selected menu item. If the value isn't selected, it's taken from `text_variable` instead.",ru:"Ввод данных с помощью выбора из меню. \nТекстовое значение параметра `div_input` соответствует выбранному пункту из меню. Если значение еще не выбрано, будет использовано значение переменной `text_variable`."},kO={en:"Selectable menu item.",ru:"Элемент меню, доступный для выбора."},jO={en:"The text that's displayed in the input field (the `div_input` parameter). If the value isn't set, the input field is populated with the `div_selection_input_item_value` parameter's value.",ru:"Текст, который отображается в поле ввода (параметр `div_input`). Если значение отсутствует, то в поле ввода отобразится значение параметра `div_selection_input_item_value`."},SO={en:"Text value of the menu element.",ru:"Текстовое значение элемента меню."},CO={en:"A separating line between elements.",ru:"Разделительная линия между элементами."},TO={en:"Separator display settings.",ru:"Настройки отображения разделителя."},zO={en:"Separator.",ru:"Разделитель."},EO={en:"Separator color. To prevent the separator from being displayed, set transparency in the alpha channel. For example, `#00FFFFFF`.",ru:"Цвет разделителя. Чтобы разделитель не отображался, задайте в альфа-канале прозрачность. Например, `#00FFFFFF`."},AO={en:"Separator orientation:<li>`vertical` — vertical;</li><li>`horizontal` — horizontal.</li><",ru:"Ориентация разделителя:<li>`vertical` — вертикальная;</li><li>`horizontal` — горизонтальная.</li>"},OO={en:"Element shadow.",ru:"Тень элемента."},MO={en:"Shadow transparency.",ru:"Прозрачность тени."},PO={en:"Blur intensity.",ru:"Интенсивность размытия."},IO={en:"Shadow color.",ru:"Цвет тени."},DO={en:"Shadow offset.",ru:"Смещение тени."},VO={en:"Fill color.",ru:"Цвет заливки."},LO={en:"Stroke style.",ru:"Стиль контура."},FO={en:"Drawable of a simple geometric shape.",ru:"Drawable простой геометрической формы."},NO={en:"Fill color.",ru:"Цвет заливки."},qO={en:"Shape.",ru:"Фигура."},RO={en:"Stroke style.",ru:"Стиль контура."},BO={en:"Fixed size.",ru:"Фиксированный размер."},HO={en:"The size that adjusts to the parent element width.",ru:"Размер, который подстраивается под ширину родительского элемента."},UO={en:"Maximum size of an element.",ru:"Максимальный размер элемента."},JO={en:"Minimum size of an element.",ru:"Минимальный размер элемента."},WO={en:"Unit of measurement:<li>`px` — a physical pixel.</li><li>`dp` — a logical pixel that doesn't depend on screen density.</li><li>`sp` — a logical pixel that depends on the font size on a device. Specify height in `sp`. Only available on Android.</li>",ru:"Единица измерения:<li>`px` — физический пиксель.</li><li>`dp` — логический пиксель, который не зависит от плотности экрана.</li><li>`sp` — логический пиксель, который зависит от размера шрифта на устройстве. Указывайте в `sp` высоту. Доступен только на Android.</li>"},KO={en:"The size that adjusts to the element contents.",ru:"Размер, который подстраивается под содержимое элемента."},YO={en:"Slide animation.",ru:"Анимация перемещения."},GO={en:"A fixed value of an offset which the element starts appearing from or at which it finishes disappearing. If no value is specified, the distance to the selected edge of a parent element is used.",ru:"Фиксированное значение смещения, с которого начнется появление или на котором закончится исчезновение элемента. Если значение не указано, то берется расстояние до выбранного края родительского элемента."},XO={en:"Edge of a parent element for one of the action types:<li>where the element will move from when appearing;</li><li>where the element will move to when disappearing.</li>",ru:"Край родительского элемента для одного из типов действий:<li>откуда элемент будет двигаться при появлении;</li><li>куда элемент будет двигаться при исчезновении.</li>"},ZO={en:"Slider for selecting a value in the range.",ru:"Слайдер для выбора значения в диапазоне."},xO={en:"Enables or disables toggling values by clicking or swiping.",ru:"Включает или отключает возможность переключения значения нажатием или свайпом."},QO={en:"Maximum value. It must be greater than the minimum value.",ru:"Максимальное значение. Должно быть больше минимального."},eM={en:"Minimum value.",ru:"Минимальное значение."},tM={en:"End of section.",ru:"Конец отрезка шкалы."},nM={en:"Section margins. Only uses horizontal margins.",ru:"Отступы от отрезка шкалы. Используются только горизонтальные отступы."},iM={en:"Start of section.",ru:"Начало отрезка шкалы."},oM={en:"Section style.",ru:"Стиль для отрезков шкалы."},rM={en:"Accessibility settings for the second pointer.",ru:"Настройки доступности для второго указателя."},sM={en:"Slider.",ru:"Слайдер."},lM={en:"Shift relative to the center.",ru:"Сдвиг относительно центра."},aM={en:"Style of the second pointer.",ru:"Стиль второго указателя."},cM={en:"Text style in the second pointer.",ru:"Стиль текста во втором указателе."},dM={en:"Name of the variable to store the second pointer's current value.",ru:"Название переменной для хранения текущего значения второго указателя."},uM={en:"Style of the first pointer.",ru:"Стиль первого указателя."},pM={en:"Text style in the first pointer.",ru:"Стиль текста в первом указателе."},_M={en:"Name of the variable to store the pointer's current value.",ru:"Название переменной для хранения текущего значения указателя."},fM={en:"Style of active serifs.",ru:"Стиль активных засечек."},mM={en:"Style of inactive serifs.",ru:"Стиль неактивных засечек."},gM={en:"Style of the active part of a scale.",ru:"Стиль активной части шкалы."},hM={en:"Style of the inactive part of a scale.",ru:"Стиль неактивной части шкалы."},vM={en:"Solid background color.",ru:"Сплошной цвет фона."},bM={en:"Color.",ru:"Цвет."},yM={en:"It contains sets of states for visual elements and switches between them.",ru:"Содержит наборы состояний для визуальных элементов и переключается между ними."},wM={en:"ID of the status that will be set by default. If the parameter isnt set, the first state of the `states` will be set.",ru:"Идентификатор состояния, которое будет выставлено по умолчанию. Если параметр не задан, то будет выставлено первое состояние из `states`."},$M={en:"ID of an element to search in the hierarchy. The ID must be unique at one hierarchy level.",ru:"Идентификатор элемента. Параметр устарел, используйте `id`."},kM={en:"State appearance animation. Use `transition_in` instead.",ru:"Анимация появления состояния. Вместо него используйте `transition_in`."},jM={en:"State disappearance animation. Use `transition_out` instead.",ru:"Анимация исчезания состояния. Вместо него используйте `transition_out`."},SM={en:"Contents. If the parameter is missing, the state won't be displayed.",ru:"Содержимое. Если параметр отсутствует, то состояние не будет отображаться."},CM={en:"State ID. It must be unique at one hierarchy level.",ru:"Идентификатор состояния. Должен быть уникальным на одном уровне иерархии."},TM={en:"Actions when swiping the state horizontally.",ru:"Действия при смахивании состояния по горизонтали."},zM={en:"State.",ru:"Состояние."},EM={en:"The name of the variable that stores the ID for the current state. If the variable changes, the active state will also change. The variable is prioritized over the default_state_id parameter.",ru:"Имя переменной, в которой хранится идентификатор текущего состояния. Если изменится значение переменной, то и активное состояние будет изменено. Переменная имеет приоритет над параметром `default_state_id`."},AM={en:"States. Each element can have a few states with a different layout. Transition between states is performed using [special scheme](../../interaction) of the [action](div-action.md) element.",ru:"Состояния. Каждый элемент может иметь несколько состояний с разной версткой. Переход между состояниями осуществляется с помощью [специальной схемы](../../interaction) элемента [action](div-action.md)."},OM={en:"It determines which events trigger transition animations.",ru:"Определяет, при каких событиях сработают анимации переходов. Вместо него используйте `transition_triggers`."},MM={en:"Stroke.",ru:"Рамка."},PM={en:"Stroke color.",ru:"Цвет рамки."},IM={en:"Stroke style. Supported for border stroke only.",ru:"Стиль линии. Поддерживается только для линии обводки."},DM={en:"Dashed stroke style.",ru:"Пунктирная линия."},VM={en:"Solid stroke style.",ru:"Сплошная линия."},LM={en:"Stroke width.",ru:"Толщина рамки."},FM={en:"Two-state toggle that allows the user to control a Boolean variable. The element's look-and-feel varies by platform. The toggle has a fixed size in iOS.",ru:"Переключатель с двумя состояниями, который позволяет пользователю использовать булевую переменную. Элемент имеет разный вид в зависимости от платформы. На iOS размер переключателя фиксированный."},NM={en:"Enables or disables the element's toggle functionality.",ru:"Включает или отключает возможность переключения элемента."},qM={en:"Name of the Boolean variable assigned to the toggle.",ru:"Название булевой переменной для переключателя."},RM={en:"Color of the toggle in the enabled state. If the color is omitted:\n: iOS standard system color is used\n: the color specified in `Div2Context` on Android is used.",ru:"Цвет переключателя во включенном состоянии. Если цвет не указан:\n- на iOS используется стандартный системный цвет;\n- на Android используется цвет, указанный в `Div2Context`."},BM={en:"Toggle.",ru:"Переключатель."},HM={en:"Tabs. Height of the first tab is determined by its contents, and height of the remaining [depends on the platform](../../location#tabs).",ru:"Табы. Высота первого таба определяется его содержимым, а высота остальных [зависит от платформы](../../location#tabs)."},UM={en:"Updating height when changing the active element. In the browser, the value is always `true`.",ru:"Обновление высоты при смене активного элемента. В браузере значение всегда `true`."},JM={en:"A separating line between tabs and contents.",ru:"Разделительная черта между табами и содержимым."},WM={en:"Tab.",ru:"Таб."},KM={en:"Tab contents.",ru:"Содержимое таба."},YM={en:"Tab title.",ru:"Заголовок таба."},GM={en:"Action when clicking on the active tab title.",ru:"Действие при нажатии на заголовок активного таба."},XM={en:"Tabs. Transition between tabs can be implemented using:<li>`div-action://set_current_item?id=&item=` — set the current tab with an ordinal number `item` inside an element, with the specified `id`;</li><li>`div-action://set_next_item?id=[&overflow={clamp\\|ring}]` — go to the next tab inside an element, with the specified `id`;</li><li>`div-action://set_previous_item?id=[&overflow={clamp\\|ring}]` — go to the previous tab inside an element, with the specified `id`.</li></p><p>The optional `overflow` parameter is used to set navigation when the first or last element is reached:<li>`clamp` — transition will stop at the border element;</li><li>`ring` — go to the beginning or end, depending on the current element.</li></p><p>By default, `clamp`.",ru:"Табы. Переход между табами можно осуществить с помощью:<li>`div-action://set_current_item?id=&item=` — задать текущий таб с порядковым номером `item` внутри элемента, с заданным `id`;</li><li>`div-action://set_next_item?id=[&overflow={clamp\\|ring}]` — перейти на следующий таб внутри элемента, с заданным `id`;</li><li>`div-action://set_previous_item?id=[&overflow={clamp\\|ring}]` — перейти на предыдущий таб внутри элемента, с заданным `id`.</li></p><p>Опциональный параметр `overflow` позволяет задать навигацию при достижении первого или последнего элемента:<li>`clamp` — переход остановится на пограничном элементе;</li><li>`ring` — переход в начало или конец, в зависимости от текущего элемента.</li></p><p>По умолчанию, `clamp`."},ZM={en:"If the parameter is enabled, tabs won't transmit the scroll gesture to the parent element.",ru:"При включенном параметре табы не будут передавать жест скролла родительскому элементу."},xM={en:"Ordinal number of the tab that will be opened by default.",ru:"Порядковый номер таба, который будет открываться по умолчанию."},QM={en:"Separator color.",ru:"Цвет разделителя."},eP={en:"Indents from the separating line. Not used if `has_separator = false`.",ru:"Отступы от разделительной черты. Не используется, если `has_separator = false`."},tP={en:"Tabs.",ru:"Табы."},nP={en:"Switching tabs by scrolling through the contents.",ru:"Переключение табов скроллом по содержимому."},iP={en:"Design style of separators between tab titles.",ru:"Стиль оформления разделителей между заголовками табов."},oP={en:"Separator background color.",ru:"Цвет фона разделителей."},rP={en:"Separator corner radius. If not specified, the corners will be rounded to the maximum (half of the smallest dimension). Not used if the `corners_radius` parameter is set.",ru:"Радиус скругления углов разделителей. Если параметр не задан, то применяется максимальное скругление (половина от наименьшего размера). Не используется, если задан параметр `corners_radius`."},sP={en:"Separator Corner radii of the separators. Empty values are replaced with 0.",ru:"Радиусы скругления углов разделителей. Пустые значения заменяются на 0."},lP={en:"Design style of tab titles.",ru:"Стиль оформления заголовков табов."},aP={en:"Background color of the active tab title.",ru:"Цвет фона заголовка активного таба."},cP={en:"Active tab title style.",ru:"Начертание заголовка активного таба."},dP={en:"Color of the active tab title text.",ru:"Цвет текста заголовка активного таба."},uP={en:"Duration of active title change animation.",ru:"Длительность анимации смены активного заголовка."},pP={en:"Active title change animation.",ru:"Анимация смены активного заголовка."},_P={en:"Title corner rounding radius. If the parameter isn't specified, the rounding is maximum (half of the smallest size). Not used if the `corners_radius` parameter is set.",ru:"Радиус скругления углов заголовка. Если параметр не задан, то максимальное скругление (половина от наименьшего размера). Не используется, если задан параметр `corners_radius`."},fP={en:"Rounding radii of corners of multiple titles. Empty values are replaced by `corner_radius`.",ru:"Радиусы скругления углов нескольких заголовков. Пустые значения заменяются на `corner_radius`."},mP={en:"Title font size.",ru:"Размер шрифта заголовка."},gP={en:"Units of title font size measurement.",ru:"Единицы измерения размера шрифта заголовка."},hP={en:"Style. Use `active_font_weight` and `inactive_font_weight` instead.",ru:"Начертание. Вместо него используйте `active_font_weight` и `inactive_font_weight`."},vP={en:"Background color of the inactive tab title.",ru:"Цвет фона заголовка неактивного таба."},bP={en:"Inactive tab title style.",ru:"Начертание заголовка неактивного таба."},yP={en:"Color of the inactive tab title text.",ru:"Цвет текста заголовка неактивного таба."},wP={en:"Spacing between neighbouring tab titles.",ru:"Интервал между соседними заголовками табов."},$P={en:"Spacing between title characters.",ru:"Интервал между символами заголовка."},kP={en:"Line spacing of the text.",ru:"Межстрочный интервал (интерлиньяж) текста."},jP={en:"Indents around the tab title.",ru:"Отступы вокруг заголовка таба."},SP={en:"Indents in the tab name.",ru:"Отступы в названии таба."},CP={en:"Text.",ru:"Текст."},TP={en:"Automatic text cropping to fit the container size.",ru:"Автоматическая обрезка текста под размер контейнера."},zP={en:"Text color.",ru:"Цвет текста."},EP={en:"Text cropping marker. It is displayed when text size exceeds the limit on the number of lines.",ru:"Маркер обрезки текста. Отображается, когда размер текста превышает ограничение по количеству строк."},AP={en:"Actions when clicking on a crop marker.",ru:"Действия при нажатии на маркер обрезки."},OP={en:"Images embedded in a crop marker.",ru:"Изображения, встроенные в маркер обрезки."},MP={en:"Character ranges inside a crop marker with different text styles.",ru:"Диапазоны символов внутри маркера обрезки с различными стилями текста."},PP={en:"Marker text.",ru:"Текст маркера."},IP={en:"Text color when focusing on the element.",ru:"Цвет текста при фокусировке на элементе."},DP={en:"Image.",ru:"Изображение."},VP={en:"Vertical image alignment within the row.",ru:"Вертикальное выравнивание изображения внутри строки."},LP={en:"Image height.",ru:"Высота изображения."},FP={en:"Defines the direction in the `start` parameter:\n– `normal` is for regular string indexing ([0, 1, 2, ..., N]). Use it if you need to insert an image by index relative to the beginning of a string.\n– `reversed` is for indexing a string from the end to the beginning ([N, ..., 2, 1, 0]). Use it if you need to insert an image by index relative to the end of a string.",ru:"Определяет направление работы параметра `start`:\n- `normal`: стандартная индексация строки ([0, 1, 2, ..., N]). Используйте, если необходимо вставить изображение по индексу относительно начала строки.\n- `reversed`: индексация строки от конца к началу ([N, ..., 2, 1, 0]). Используйте, если необходимо вставить изображение по индексу относительно конца строки."},NP={en:"A symbol to insert prior to an image. To insert an image at the end of the text, specify the number of the last character plus one.",ru:"Символ, перед которым нужно вставить изображение. Чтобы вставить изображение в конец текста, укажите номер последнего символа плюс один."},qP={en:"New color of a contour image.",ru:"Новый цвет контурного изображения."},RP={en:"Blend mode of the color specified in `tint_color`.",ru:"Метод наложения цвета, указанного в `tint_color`."},BP={en:"Image URL.",ru:"Ссылка на изображение."},HP={en:"Image width.",ru:"Ширина изображения."},UP={en:"Images embedded in text.",ru:"Изображения, встроенные в текст."},JP={en:"Spacing between characters.",ru:"Интервал между символами."},WP={en:"Line spacing of the text.",ru:"Межстрочный интервал (интерлиньяж) текста."},KP={en:"Maximum number of lines not to be cropped when breaking the limits.",ru:"Максимальное количество строк, которые не будут обрезаны при выходе за ограничения."},YP={en:"Minimum number of cropped lines when breaking the limits.",ru:"Минимальное число обрезанных строк при выходе за ограничения."},GP={en:"Additional parameters of the character range.",ru:"Дополнительные параметры диапазона символов."},XP={en:"Action when clicking on text.",ru:"Действие при нажатии на текст."},ZP={en:"Vertical text alignment within the row. Ignored when a baseline offset is specified.",ru:"Вертикальное выравнивание текста внутри строки. Параметр игнорируется, если указано смещение базовой линии."},xP={en:"Character range background.",ru:"Фон для диапазона символов."},QP={en:"Vertical baseline offset in a character range. If set, vertical alignment is ignored.",ru:"Вертикальное смещение базовой линии в диапазоне символов. Если параметр задан, то вертикальное выравнивание игнорируется."},eI={en:"Character range border.",ru:"Рамка для диапазона символов."},tI={en:"Ordinal number of the last character to be included in the range. If the property is omitted, the range ends at the last character of the text.",ru:"Порядковый номер последнего символа, который будет включен в диапазон. Если свойство не указано, то диапазон будет заканчиваться на последнем символе текста."},nI={en:"Spacing between characters.",ru:"Расстояние между символами."},iI={en:"Line spacing of the text. Units specified in `font_size_unit`.",ru:"Межстрочный интервал (интерлиньяж) текста. Измеряется в единицах, заданных в `font_size_unit`."},oI={en:"A mask that hides a part of text. To show the hidden text, disable the mask using the `is_enabled` property.",ru:"Маска, закрывающая участок текста. Для показа скрытого текста маску можно отключить через свойство `is_enabled`."},rI={en:"Controls the mask state. If set to `true`, the mask will hide the specified part of text. Otherwise, the text will be shown.",ru:"Управляет состоянием маски. При значении `true` указанная часть текста будет скрыта под маской, иначе текст будет показан."},sI={en:"A mask to hide text (spoiler). Looks like randomly distributed particles, same as in Telegram.",ru:"Маска для скрытия текста (спойлер) в виде случайно расположенных частиц, как в Telegram."},lI={en:"Enables animation for particles on the mask. The animation looks like a smooth movement of particles across the mask, same as in Telegram.",ru:"Включает анимацию частичек на маске. Анимация выглядит как плавное перемещение частиц по маске, как в Telegram."},aI={en:"The color of particles on the mask.",ru:"Цвет частиц на маске."},cI={en:"The density of particles on the mask. Interpreted as the probability of a particle to appear in a given point on the mask.",ru:"Плотность частиц на маске. Интерпретируется как вероятность частицы появиться в заданной точке маски."},dI={en:"The size of a single particle on the mask.",ru:"Размер одной частицы на маске."},uI={en:"A mask to hide text (spoiler). Looks like a rectangle filled with the color specified in the `color` parameter, same as in Telegram.",ru:"Маска для скрытия текста (спойлер) в виде прямоугольника, залитого указанным в параметре `color` цветом, как в Telegram."},pI={en:"Parameters of the shadow applied to the character range.",ru:"Параметры тени, применяемой к диапазону символов."},_I={en:"Ordinal number of a character which the range begins from. The first character has a number `0`.",ru:"Порядковый номер символа, с которого начинается диапазон. Первый символ имеет номер `0`."},fI={en:"Strikethrough.",ru:"Зачеркивание."},mI={en:"Top margin of the character range. Units specified in `font_size_unit`.",ru:"Верхний отступ диапазона символов. Измеряется в единицах, заданных в `font_size_unit`."},gI={en:"Underline.",ru:"Подчеркивание."},hI={en:"A character range in which additional style parameters can be set. Defined by mandatory `start` and `end` fields.",ru:"Диапазон символов, в котором можно установить дополнительные параметры стиля. Определяется обязательными полями `start` и `end`."},vI={en:"Ability to select and copy text.",ru:"Возможность выделения и копирования текста."},bI={en:"Parameters of the shadow applied to the text.",ru:"Параметры тени, применяемой к тексту."},yI={en:"Text.",ru:"Текст."},wI={en:"Strikethrough.",ru:"Зачеркивание."},$I={en:"Text.",ru:"Текст."},kI={en:"Horizontal text alignment.",ru:"Горизонтальное выравнивание текста."},jI={en:"Vertical text alignment.",ru:"Вертикальное выравнивание текста."},SI={en:"Text color. Not used if the `text_gradient` parameter is set.",ru:"Цвет текста. Не используется, если задан параметр `text_gradient`."},CI={en:"Gradient text color.",ru:"Градиентный цвет текста."},TI={en:"Limit the text width to the maximum line width. Applies only when the width is set to `wrap_content`, `constrained=true`, and `max_size` is specified.",ru:"Ограничивать ширину текста максимальной шириной строки. Работает только с шириной `wrap_content`, `constrained=true` и выставленным `max_size`."},zI={en:"Text cropping method. Use `ellipsis` instead.",ru:"Способ обрезания текста. Вместо него используйте `ellipsis`."},EI={en:"Underline.",ru:"Подчеркивание."},AI={en:"Timer.",ru:"Таймер."},OI={en:"Timer duration in milliseconds. If the parameter is `0` or not specified, the timer runs indefinitely (until the timer stop event occurs).",ru:"Длительность работы таймера в миллисекундах. Если параметр равен `0` или не указан, таймер работает бесконечно (до тех пор пока не придёт событие остановки таймера)."},MI={en:"Actions performed when the timer ends: when the timer has counted to the `duration` value or the `div-action://timer?action=stop&id=<id>` command has been received.",ru:"Действия, выполняемые при завершении работы таймера: когда таймер досчитал до значения `duration` или пришла команда `div-action://timer?action=stop&id=<id>`."},PI={en:"Timer ID. Must be unique. Used when calling actions for the selected timer, for example: start, stop.",ru:"Идентификатор таймера. Должен быть уникальным. Используется при вызове действий для выбранного таймера, например: запуск, остановка."},II={en:"Actions that are performed on each count of the timer.",ru:"Действия, которые выполняются на каждый отсчет таймера."},DI={en:"Duration of time intervals in milliseconds between counts. If the parameter is not specified, the timer counts down from `0` to `duration` without calling `tick_actions`.",ru:"Длительность промежутков времени в миллисекундах между отсчетами. Если параметр не указан, то таймер отсчитывает от `0` до `duration` без вызова `tick_actions`."},VI={en:"Name of the variable where the current timer value is stored. Updated on each count or when the timer commands are called (start, stop, and so on), except the cancel command.",ru:"Название переменной, в которую сохраняется текущее значение таймера. Обновляется по каждому отсчету или при вызове команд для таймера (запуск, остановка и так далее), за исключением команды отмены."},LI={en:"Tooltip.",ru:"Всплывающая подсказка."},FI={en:"Tooltip appearance animation. By default, the tooltip will be appearing gradually with an offset from the anchor point by 10 dp.",ru:"Анимация появления подсказки. По умолчанию подсказка будет появляться постепенно со смещением от якорной точки на 10 dp."},NI={en:"Tooltip disappearance animation. By default, the tooltip will disappear gradually with an offset from the anchor point by 10 dp.",ru:"Анимация исчезания подсказки. По умолчанию подсказка будет исчезать постепенно со смещением от якорной точки на 10 dp."},qI={en:"Description for accessibility of the background tap action for tooltip.",ru:"Описание для доступности действия нажатия по фону тултипа."},RI={en:"Allows dismissing tooltip by tapping outside of it.",ru:"Позволяет закрывать подсказку при нажатии за её пределами."},BI={en:"An element that will be shown in a tooltip. If there are tooltips inside an element, they won't be shown.",ru:"Элемент, который будет показан в подсказке. Если внутри элемента есть подсказки, они не будут показываться."},HI={en:"Duration of the tooltip visibility in milliseconds. When the value is set to `0`, the tooltip will be visible until the user hides it.",ru:"Продолжительность видимости подсказки в миллисекундах. При значении `0` подсказка будет видна до тех пор, пока пользователь сам ее не скроет."},UI={en:"Tooltip ID. It is used to avoid re-showing. It must be unique for all element tooltips.",ru:"Идентификатор подсказки. Используется, чтобы избежать повторного показа. Должен быть уникален для всех подсказок элемента."},JI={en:"Tooltip modes.",ru:"Режимы подсказки."},WI={en:"Modal mode. Clicks outside do not pass through to underlying elements. Restricts focus to the tooltip. Back button on Android and back gesture on iOS close the tooltip.",ru:"Модальный режим. Клик за пределами не проходит сквозь и не доступен элементам под подсказкой. Ограничивает фокус в пределах подсказки. Кнопка назад на android и жест назад на ios закрывают подсказку"},KI={en:"Non-modal mode. Clicks outside pass through to underlying elements. Does not restrict focus to the tooltip. Back button on Android and back gesture on iOS do not close the tooltip.",ru:"Немодальный режим. Клик за пределами обрабатывается элементами под подсказкой. Не ограничивает фокус в пределах подсказки. Кнопка назад на android и жест назад на ios не закрывают подсказку."},YI={en:"Shift relative to an anchor point.",ru:"Сдвиг относительно якорной точки."},GI={en:"The position of a tooltip relative to an element it belongs to.",ru:"Положение подсказки относительно элемента, к которому она относится."},XI={en:"Specifies actions triggered by tapping outside the tooltip.",ru:"Задает действия, выполняемые при нажатии за пределами подсказки."},ZI={en:"Transformation of the element.",ru:"Преобразование элемента."},xI={en:"X coordinate of the rotation axis.",ru:"Координата Х оси вращения."},QI={en:"Y coordinate of the rotation axis.",ru:"Координата Y оси вращения."},eD={en:"Degrees of the element rotation. Positive values used for clockwise rotation.",ru:"Угол в градусах, на который необходимо повернуть элемент. Положительное значение описывает поворот по часовой стрелке."},tD={en:"Animation duration in milliseconds.",ru:"Продолжительность анимации в миллисекундах."},nD={en:"Transition speed nature.",ru:"Характер скорости перехода."},iD={en:"Delay in milliseconds before animation starts.",ru:"Задержка в миллисекундах перед началом анимации."},oD={en:"Variants of events that will trigger animations in child elements. The parent element can be [data](div-data.md) or [state](div-state.md).",ru:"Варианты событий, которые приведут к запуску анимаций в дочерних элементах. Родительским элементом может быть [data](div-data.md) или [state](div-state.md)."},rD={en:"Event type that triggers animation.",ru:"Тип события, при котором запускается анимация."},sD={en:"A trigger that causes an action when activated.",ru:"Триггер, который вызывает действие при срабатывании."},lD={en:"Action when a trigger is activated.",ru:"Действие при срабатывании триггера."},aD={en:"Condition for activating a trigger. For example, `liked && subscribed`.",ru:"Условие для срабатывания триггера. Например, `liked && subscribed`."},cD={en:"Trigger activation mode:<li>`on_condition` — a trigger is activated when the condition changes from `false` to `true`;</li><li>`on_variable` — a trigger is activated when the condition is met and the variable value changes.</li>",ru:"Режим запуска триггера:<li>`on_condition` — триггер сработает при изменении условия с `false` на `true`;</li><li>`on_variable` — триггер сработает при выполнении условия и изменении значения переменной.</li>"},dD={en:"An arbitrary array in JSON format.",ru:"Произвольный массив в формате JSON."},uD={en:"A Boolean variable in binary format.",ru:"Логическая переменная."},pD={en:"Variable — HEX color as a string.",ru:"Переменная — цвет в формате HEX, представленный в виде строки."},_D={en:"An arbitrary object in JSON format.",ru:"Произвольный объект в формате JSON."},fD={en:"An integer variable.",ru:"Целочисленная переменная."},mD={en:"Variable name.",ru:"Название переменной."},gD={en:"A floating-point variable.",ru:"Переменная с плавающей точкой."},hD={en:"A string variable.",ru:"Строковая переменная."},vD={en:"Variable — URL as a string.",ru:"Переменная — URL в виде строки."},bD={en:"Value.",ru:"Значение."},yD={en:"Video.",ru:"Видеоролик."},wD={en:"This option turns on automatic video playback. On the web, the video starts if muted playback is turned on.",ru:"Опция включает автоматическое воспроизведение видео. В вебе видео запускается при условии, что включена опция воспроизведения без звука."},$D={en:"Actions performed during video loading.",ru:"Действия, которые выполняются во время загрузки видео."},kD={en:"Time interval from the video beginning to the current position in milliseconds.",ru:"Интервал времени с начала видеоролика до текущей позиции в миллисекундах."},jD={en:"Actions performed after the video ends.",ru:"Действия, которые выполняются после окончания видео."},SD={en:"Actions performed when playback can't be continued due to a player error.",ru:"Действия, которые выполняются, когда невозможно продолжить воспроизведение из-за ошибки плеера."},CD={en:"This option mutes video.",ru:"Опция отключает звук при воспроизведении видео."},TD={en:"Actions performed when playback is paused.",ru:"Действия, которые выполняются при приостановке воспроизведения."},zD={en:"Additional information that can be used in the player.",ru:"Дополнительная информация, которая может быть использована внутри плеера."},ED={en:"Enables video preloading.",ru:"Включает предзагрузку видео."},AD={en:"Video preview encoded in `base64`. Will be shown until the video is ready to play. `Data url` format: `data:[;base64],<data>`",ru:"Превью видео, закодированное в `base64`. Будет показано до момента, когда видео готово к воспроизведению. Формат `data url`: `data:[;base64],<data>`"},OD={en:"This option turns on video repeat.",ru:"Опция включает повторное воспроизведение видео после окончания."},MD={en:"Actions performed when video playback resumes.",ru:"Действия, которые выполняются при возобновлении воспроизведения видео."},PD={en:"Video scaling:<li>`fit` places the entire video into the element (free space is filled with background);</li><li>`fill` scales the video to the element size and cuts off anything that's extra.</li>",ru:"Масштабирование видео:<li>`fit` помещает видео в элемент целиком (свободное место заполняется фоном);</li><li>`fill` масштабирует видео по размеру элемента и обрезает лишнее.</li>"},ID={en:"Description of one media file. Contains a link to the source, MIME type, bitrate, and resolution.",ru:"Описание одного медиафайла. Содержит ссылку на источник, MIME-тип, битрейт, разрешение."},DD={en:"Media file bitrate: Data transfer rate in a video stream, measured in kilobits per second (kbps).",ru:"Битрейт медиафайла — скорость передачи данных в потоке видео в килобитах в секунду (kbps)."},VD={en:"MIME type (Multipurpose Internet Mail Extensions): A string that defines the file type and helps process it correctly.",ru:"MIME-тип (Multipurpose Internet Mail Extensions) медиафайла — строка, которая указывает на тип содержимого файла и используется для его правильной обработки."},LD={en:"Media file resolution.",ru:"Разрешение медиафайла."},FD={en:"Media file frame height.",ru:"Высота кадра медиафайла."},ND={en:"Media file frame width.",ru:"Ширина кадра медиафайла."},qD={en:"Link to the media file available for playback or download.",ru:"Ссылка на медиафайл, доступный для воспроизведения или загрузки."},RD={en:"Video data stream for playback.",ru:"Поток видеоданных для воспроизведения."},BD={en:"Video stream link.",ru:"Ссылка на поток видеоданных."},HD={en:"Video data for playback.",ru:"Видеоданные для воспроизведения."},UD={en:"Video contents.",ru:"Содержимое видео."},JD={en:"Video description. Contains the video link, codec, and resolution.",ru:"Описание видеоролика. Содержит ссылку на видео, кодек, разрешение."},WD={en:"Defines the codec (coder/decoder) used for the video file.",ru:"Определяет используемый кодек (кодировщик/декодировщик) для видеофайла."},KD={en:"Video file MIME type (Multipurpose Internet Mail Extensions) — String used to define the file type and correct processing.",ru:"MIME-тип (Multipurpose Internet Mail Extensions) видеофайла — строка, которая используется для определения типа файла и его правильной обработки."},YD={en:"Video resolution.",ru:"Разрешение видео."},GD={en:"Video frame height.",ru:"Высота кадра видеофайла."},XD={en:"Video frame width.",ru:"Ширина кадра видеофайла."},ZD={en:"Link to the video file available for playback or download.",ru:"Ссылка на видеофайл, доступный для воспроизведения или загрузки."},xD={en:"Element visibility:<li>`visible` — the element is visible;</li><li>`invisible` — the element is invisible, but a place is reserved for it;</li><li>`gone` — the element is invisible, a place isn't reserved.</li>",ru:"Видимость элемента:<li>`visible` — элемент виден;</li><li>`invisible` — элемент не виден, но под него зарезервировано место;</li><li>`gone` — элемент не виден, место не зарезервировано.</li>"},QD={en:"Actions performed when an element becomes visible.",ru:"Действия, которые выполняются, когда элемент становится видимым."},eV={en:"Limit on the number of loggings. If `0`, the limit is removed.",ru:"Ограничение на количество логирований. При `0` ограничение снимается."},tV={en:"Time in milliseconds during which an element must be visible to trigger `visibility-action`.",ru:"Время в миллисекундах, в течение которого элемент должен быть виден, чтобы сработал `visibility-action`."},nV={en:"Percentage of the visible part of an element that triggers `visibility-action`.",ru:"Процент видимой части элемента, при котором срабатывает `visibility-action`."},iV={en:"The size of an element adjusts to its contents.",ru:"Размер элемента подстраивается под его содержимое."},oV={en:"The final size mustn't exceed the parent one. On iOS and in a default browser `false`. On Android always `true`.",ru:"Итоговый размер не должен превышать родительский. На iOS и в браузере по умолчанию `false`. На Android всегда `true`."},hte={div_absolute_edge_insets:B8,div_accessibility:H8,div_accessibility_description:U8,div_accessibility_hint:J8,div_accessibility_is_checked:W8,div_accessibility_mode:K8,div_accessibility_mute_after_action:Y8,div_accessibility_state_description:G8,div_accessibility_type:X8,div_action:Z8,div_action_animator_start:x8,div_action_animator_start_animator_id:Q8,div_action_animator_start_end_value:e7,div_action_animator_start_start_value:t7,div_action_animator_stop:n7,div_action_animator_stop_animator_id:i7,div_action_array_insert_value:o7,div_action_array_remove_value:r7,div_action_array_set_value:s7,div_action_base_download_callbacks:l7,div_action_base_is_enabled:a7,div_action_base_log_id:c7,div_action_base_payload:d7,div_action_base_referer:u7,div_action_base_scope_id:p7,div_action_base_url:_7,div_action_clear_focus:f7,div_action_copy_to_clipboard:m7,div_action_dict_set_value:g7,div_action_download:h7,div_action_download_url:v7,div_action_focus_element:b7,div_action_hide_tooltip:y7,div_action_log_url:w7,div_action_menu_item_action:$7,div_action_menu_item_actions:k7,div_action_menu_item_text:j7,div_action_menu_items:S7,div_action_scroll_animated:C7,div_action_scroll_by:T7,div_action_scroll_by_item_count:z7,div_action_scroll_by_offset:E7,div_action_scroll_destination:A7,div_action_scroll_destination_end:O7,div_action_scroll_destination_index:M7,div_action_scroll_destination_index_value:P7,div_action_scroll_destination_offset:I7,div_action_scroll_destination_offset_value:D7,div_action_scroll_destination_start:V7,div_action_scroll_id:L7,div_action_scroll_overflow:F7,div_action_scroll_to:N7,div_action_scroll_to_destination:q7,div_action_set_state:R7,div_action_set_state_state_id:B7,div_action_set_state_temporary:H7,div_action_set_stored_value:U7,div_action_set_stored_value_lifetime:J7,div_action_set_stored_value_name:W7,div_action_set_stored_value_value:K7,div_action_set_variable:Y7,div_action_show_tooltip:G7,div_action_show_tooltip_multiple:X7,div_action_submit:Z7,div_action_submit_container_id:x7,div_action_submit_on_fail_actions:Q7,div_action_submit_on_success_actions:e9,div_action_submit_request:t9,div_action_submit_request_headers:n9,div_action_submit_request_method:i9,div_action_submit_request_query_parameters:o9,div_action_submit_request_url:r9,div_action_target:s9,div_action_timer:l9,div_action_timer_action:a9,div_action_timer_id:c9,div_action_tooltip_id:d9,div_action_video:u9,div_action_video_action:p9,div_action_video_id:_9,div_actionable_action:f9,div_actionable_action_animation:m9,div_actionable_actions:g9,div_actionable_doubletap_actions:h9,div_actionable_hover_end_actions:v9,div_actionable_hover_start_actions:b9,div_actionable_longtap_actions:y9,div_actionable_press_end_actions:w9,div_actionable_press_start_actions:$9,div_animation:k9,div_animation_duration:j9,div_animation_end_value:S9,div_animation_interpolator:C9,div_animation_interpolator_short:T9,div_animation_items:z9,div_animation_name:E9,div_animation_repeat:A9,div_animation_start_delay:O9,div_animation_start_value:M9,div_animator_base_cancel_actions:P9,div_animator_base_direction:I9,div_animator_base_duration:D9,div_animator_base_end_actions:V9,div_animator_base_id:L9,div_animator_base_interpolator:F9,div_animator_base_repeat_count:N9,div_animator_base_start_delay:q9,div_animator_base_variable_name:R9,div_animator_end_value:B9,div_animator_start_value:H9,div_appearance_set_transition:U9,div_appearance_set_transition_items:J9,div_appearance_transition:W9,div_appearance_transition_fade:K9,div_appearance_transition_scale:Y9,div_appearance_transition_set:G9,div_appearance_transition_slide:X9,div_aspect:Z9,div_aspect_ratio:x9,div_background_gradient:Q9,div_background_image:eS,div_background_solid:tS,div_base_accessibility:nS,div_base_alignment_horizontal:iS,div_base_alignment_vertical:oS,div_base_alpha:rS,div_base_animators:sS,div_base_background:lS,div_base_border:aS,div_base_column_span:cS,div_base_disappear_actions:dS,div_base_extensions:uS,div_base_focus:pS,div_base_functions:_S,div_base_height:fS,div_base_id:mS,div_base_margins:gS,div_base_paddings:hS,div_base_row_span:vS,div_base_selected_actions:bS,div_base_tooltips:yS,div_base_transform:wS,div_base_transition_change:$S,div_base_transition_in:kS,div_base_transition_out:jS,div_base_transition_triggers:SS,div_base_variable_triggers:CS,div_base_variables:TS,div_base_visibility:zS,div_base_visibility_action:ES,div_base_visibility_actions:AS,div_base_width:OS,div_blend_mode:MS,div_blur:PS,div_blur_radius:IS,div_border:DS,div_border_corner_radius:VS,div_border_corners_radius:LS,div_border_has_shadow:FS,div_border_shadow:NS,div_border_stroke:qS,div_change_bounds_transition:RS,div_change_set_transition:BS,div_change_set_transition_items:HS,div_change_transition:US,div_change_transition_bounds:JS,div_change_transition_set:WS,div_circle_shape:KS,div_circle_shape_radius:YS,div_clip_to_bounds:GS,div_cloud_background:XS,div_cloud_background_color:ZS,div_cloud_background_corner_radius:xS,div_cloud_background_paddings:QS,div_collection_item_builder:eC,div_collection_item_builder_data:tC,div_collection_item_builder_prototypes:nC,div_collection_item_builder_prototypes_data_element_name:iC,div_collection_item_builder_prototypes_data_element_prefix:oC,div_collection_item_builder_prototypes_div:rC,div_collection_item_builder_prototypes_id:sC,div_collection_item_builder_prototypes_selector:lC,div_color_animator:aC,div_container:cC,div_container_aspect:dC,div_container_content_alignment_horizontal:uC,div_container_content_alignment_vertical:pC,div_container_items:_C,div_container_layout_mode:fC,div_container_line_separator:mC,div_container_orientation:gC,div_container_separator:hC,div_container_separator_show_at_end:vC,div_container_separator_show_at_start:bC,div_container_separator_show_between:yC,div_container_separator_style:wC,div_container_short:$C,div_corners_radius:kC,div_corners_radius_bottom_left:jC,div_corners_radius_bottom_right:SC,div_corners_radius_top_left:CC,div_corners_radius_top_right:TC,div_count_fixed:zC,div_count_infinity:EC,div_custom:AC,div_custom_custom_props:OC,div_custom_custom_type:MC,div_custom_items:PC,div_custom_short:IC,div_data:DC,div_data_div_state_div:VC,div_data_div_state_state_id:LC,div_data_functions:FC,div_data_log_id:NC,div_data_states:qC,div_data_timers:RC,div_data_transition_animation_selector:BC,div_data_variable_triggers:HC,div_data_variables:UC,div_dimension:JC,div_dimension_value:WC,div_disappear_action:KC,div_disappear_action_disappear_duration:YC,div_disappear_action_visibility_percentage:GC,div_download_callbacks:XC,div_download_callbacks_on_fail_actions:ZC,div_download_callbacks_on_success_actions:xC,div_edge_insets:QC,div_edge_insets_bottom:eT,div_edge_insets_end:tT,div_edge_insets_left:nT,div_edge_insets_right:iT,div_edge_insets_start:oT,div_edge_insets_top:rT,div_evaluable_type:sT,div_extension:lT,div_extension_id:aT,div_extension_params:cT,div_fade_transition:dT,div_fade_transition_alpha:uT,div_filter:pT,div_filter_rtl_mirror:_T,div_fixed_count:fT,div_fixed_count_value:mT,div_fixed_size:gT,div_fixed_size_unit:hT,div_fixed_size_value:vT,div_focus:bT,div_focus_background:yT,div_focus_border:wT,div_focus_next_focus_ids:$T,div_focus_on_blur:kT,div_focus_on_focus:jT,div_font_family:ST,div_font_feature_settings:CT,div_font_size:TT,div_font_size_unit:zT,div_font_weight:ET,div_font_weight_value:AT,div_function:OT,div_function_argument:MT,div_function_argument_name:PT,div_function_argument_type:IT,div_function_body:DT,div_function_name:VT,div_function_return_type:LT,div_gallery:FT,div_gallery_column_count:NT,div_gallery_cross_content_alignment:qT,div_gallery_cross_spacing:RT,div_gallery_default_item:BT,div_gallery_item_spacing:HT,div_gallery_items:UT,div_gallery_orientation:JT,div_gallery_restrict_parent_scroll:WT,div_gallery_scroll_mode:KT,div_gallery_short:YT,div_gif_image:GT,div_gif_image_gif_url:XT,div_gif_image_short:ZT,div_gradient_background:xT,div_gradient_background_angle:QT,div_gradient_background_colors:ez,div_gradient_colors:tz,div_gradient_linear:nz,div_gradient_linear_angle:iz,div_gradient_linear_color_map:oz,div_gradient_linear_color_point:rz,div_gradient_linear_color_point_color:sz,div_gradient_linear_color_point_position:lz,div_gradient_radial:az,div_gradient_radial_center_x:cz,div_gradient_radial_center_y:dz,div_gradient_radial_radius:uz,div_grid:pz,div_grid_column_count:_z,div_grid_content_alignment_horizontal:fz,div_grid_content_alignment_vertical:mz,div_grid_items:gz,div_grid_short:hz,div_image:vz,div_image_appearance_animation:bz,div_image_background:yz,div_image_background_alpha:wz,div_image_background_content_alignment_horizontal:$z,div_image_background_content_alignment_vertical:kz,div_image_background_image_url:jz,div_image_background_preload_required:Sz,div_image_background_scale:Cz,div_image_base_content_alignment_horizontal:Tz,div_image_base_content_alignment_vertical:zz,div_image_base_placeholder_color:Ez,div_image_base_preload_required:Az,div_image_base_preview:Oz,div_image_base_scale:Mz,div_image_high_priority_preview_show:Pz,div_image_image_url:Iz,div_image_short:Dz,div_image_tint_color:Vz,div_image_tint_mode:Lz,div_indicator:Fz,div_indicator_active_item_color:Nz,div_indicator_active_item_size:qz,div_indicator_active_shape:Rz,div_indicator_animation:Bz,div_indicator_inactive_item_color:Hz,div_indicator_inactive_minimum_shape:Uz,div_indicator_inactive_shape:Jz,div_indicator_item_placement:Wz,div_indicator_item_placement_default:Kz,div_indicator_item_placement_stretch:Yz,div_indicator_max_visible_items:Gz,div_indicator_minimum_item_size:Xz,div_indicator_pager_id:Zz,div_indicator_shape:xz,div_indicator_short:Qz,div_indicator_space_between_centers:eE,div_indicator_space_between_items:tE,div_infinity_count:nE,div_input:iE,div_input_autocapitalization:oE,div_input_enter_key_actions:rE,div_input_enter_key_type:sE,div_input_filters:lE,div_input_filters_expression:aE,div_input_filters_expression_condition:cE,div_input_filters_regex:dE,div_input_filters_regex_pattern:uE,div_input_highlight_color:pE,div_input_hint_color:_E,div_input_hint_text:fE,div_input_is_enabled:mE,div_input_keyboard_type:gE,div_input_letter_spacing:hE,div_input_line_height:vE,div_input_mask:bE,div_input_mask_currency:yE,div_input_mask_currency_locale:wE,div_input_mask_fixed_length:$E,div_input_mask_fixed_length_always_visible:kE,div_input_mask_fixed_length_pattern:jE,div_input_mask_fixed_length_pattern_elements:SE,div_input_mask_fixed_length_pattern_elements_key:CE,div_input_mask_fixed_length_pattern_elements_placeholder:TE,div_input_mask_fixed_length_pattern_elements_regex:zE,div_input_mask_phone:EE,div_input_mask_raw_text_variable:AE,div_input_max_length:OE,div_input_max_visible_lines:ME,div_input_method:PE,div_input_native_interface:IE,div_input_native_interface_color:DE,div_input_select_all_on_focus:VE,div_input_short:LE,div_input_text_variable:FE,div_input_validators:NE,div_input_validators_allow_empty:qE,div_input_validators_expression:RE,div_input_validators_expression_condition:BE,div_input_validators_label_id:HE,div_input_validators_regex:UE,div_input_validators_regex_pattern:JE,div_input_validators_variable:WE,div_keyboard_input:KE,div_layout_provider:YE,div_layout_provider_height_variable_name:GE,div_layout_provider_width_variable_name:XE,div_line_style:ZE,div_log_limit:xE,div_match_parent_size:QE,div_match_parent_size_weight:eA,div_neighbour_page_size:tA,div_neighbour_page_size_neighbour_page_width:nA,div_nine_patch_background:iA,div_nine_patch_background_insets:oA,div_number_animator:rA,div_page_content_size:sA,div_page_content_size_alignment:lA,div_page_size:aA,div_page_size_page_width:cA,div_pager:dA,div_pager_cross_axis_alignment:uA,div_pager_default_item:pA,div_pager_infinite_scroll:_A,div_pager_item_spacing:fA,div_pager_items:mA,div_pager_layout_mode:gA,div_pager_layout_mode_neighbour_page_size:hA,div_pager_layout_mode_page_size:vA,div_pager_next_page_alpha:bA,div_pager_next_page_scale:yA,div_pager_orientation:wA,div_pager_page_transformation:$A,div_pager_page_transformation_interpolator:kA,div_pager_page_transformation_overlap:jA,div_pager_page_transformation_overlap_reversed_stacking_order:SA,div_pager_page_transformation_slide:CA,div_pager_previous_page_alpha:TA,div_pager_previous_page_scale:zA,div_pager_restrict_parent_scroll:EA,div_pager_scroll_axis_alignment:AA,div_pager_short:OA,div_patch:MA,div_patch_change_id:PA,div_patch_change_items:IA,div_patch_changes:DA,div_patch_mode:VA,div_patch_on_applied_actions:LA,div_patch_on_failed_actions:FA,div_percentage_size:NA,div_percentage_size_value:qA,div_pivot_fixed:RA,div_pivot_fixed_short:BA,div_pivot_fixed_unit:HA,div_pivot_fixed_value:UA,div_pivot_percentage:JA,div_pivot_percentage_short:WA,div_pivot_percentage_value:KA,div_point:YA,div_point_x:GA,div_point_y:XA,div_radial_gradient_fixed_center:ZA,div_radial_gradient_fixed_center_value:xA,div_radial_gradient_relative_center:QA,div_radial_gradient_relative_center_value:eO,div_radial_gradient_relative_radius:tO,div_radial_gradient_relative_radius_value:nO,div_reuse_id:iO,div_rounded_rectangle_shape:oO,div_rounded_rectangle_shape_corner_radius:rO,div_rounded_rectangle_shape_item_height:sO,div_rounded_rectangle_shape_item_width:lO,div_scale_transition:aO,div_scale_transition_pivot_x:cO,div_scale_transition_pivot_y:dO,div_scale_transition_scale:uO,div_scrollbar:pO,div_select:_O,div_select_hint_color:fO,div_select_hint_text:mO,div_select_letter_spacing:gO,div_select_line_height:hO,div_select_option:vO,div_select_option_text:bO,div_select_option_value:yO,div_select_value_variable:wO,div_selection_input:$O,div_selection_input_item:kO,div_selection_input_item_text:jO,div_selection_input_item_value:SO,div_separator:CO,div_separator_delimiter_style:TO,div_separator_short:zO,div_separator_style_color:EO,div_separator_style_orientation:AO,div_shadow:OO,div_shadow_alpha:MO,div_shadow_blur:PO,div_shadow_color:IO,div_shadow_offset:DO,div_shape_base_background_color:VO,div_shape_base_stroke:LO,div_shape_drawable:FO,div_shape_drawable_color:NO,div_shape_drawable_shape:qO,div_shape_drawable_stroke:RO,div_size_fixed:BO,div_size_match_parent:HO,div_size_max:UO,div_size_min:JO,div_size_unit:WO,div_size_wrap_content:KO,div_slide_transition:YO,div_slide_transition_distance:GO,div_slide_transition_edge:XO,div_slider:ZO,div_slider_is_enabled:xO,div_slider_max_value:QO,div_slider_min_value:eM,div_slider_range_end:tM,div_slider_range_margins:nM,div_slider_range_start:iM,div_slider_ranges:oM,div_slider_secondary_value_accessibility:rM,div_slider_short:sM,div_slider_text_style_offset:lM,div_slider_thumb_secondary_style:aM,div_slider_thumb_secondary_text_style:cM,div_slider_thumb_secondary_value_variable:dM,div_slider_thumb_style:uM,div_slider_thumb_text_style:pM,div_slider_thumb_value_variable:_M,div_slider_tick_mark_active_style:fM,div_slider_tick_mark_inactive_style:mM,div_slider_track_active_style:gM,div_slider_track_inactive_style:hM,div_solid_background:vM,div_solid_background_color:bM,div_state:yM,div_state_default_state_id:wM,div_state_div_id:$M,div_state_div_state_animation_in:kM,div_state_div_state_animation_out:jM,div_state_div_state_div:SM,div_state_div_state_state_id:CM,div_state_div_state_swipe_out_actions:TM,div_state_short:zM,div_state_state_id_variable:EM,div_state_states:AM,div_state_transition_animation_selector:OM,div_stroke:MM,div_stroke_color:PM,div_stroke_style:IM,div_stroke_style_dashed:DM,div_stroke_style_solid:VM,div_stroke_width:LM,div_switch:FM,div_switch_is_enabled:NM,div_switch_is_on_variable:qM,div_switch_on_color:RM,div_switch_short:BM,div_tabs:HM,div_tabs_dynamic_height:UM,div_tabs_has_separator:JM,div_tabs_item:WM,div_tabs_item_div:KM,div_tabs_item_title:YM,div_tabs_item_title_click_action:GM,div_tabs_items:XM,div_tabs_restrict_parent_scroll:ZM,div_tabs_selected_tab:xM,div_tabs_separator_color:QM,div_tabs_separator_paddings:eP,div_tabs_short:tP,div_tabs_switch_tabs_by_content_swipe_enabled:nP,div_tabs_tab_title_delimiter_delimiter_style:iP,div_tabs_tab_title_delimiter_style_background_color:oP,div_tabs_tab_title_delimiter_style_corner_radius:rP,div_tabs_tab_title_delimiter_style_corners_radius:sP,div_tabs_tab_title_style:lP,div_tabs_tab_title_style_active_background_color:aP,div_tabs_tab_title_style_active_font_weight:cP,div_tabs_tab_title_style_active_text_color:dP,div_tabs_tab_title_style_animation_duration:uP,div_tabs_tab_title_style_animation_type:pP,div_tabs_tab_title_style_corner_radius:_P,div_tabs_tab_title_style_corners_radius:fP,div_tabs_tab_title_style_font_size:mP,div_tabs_tab_title_style_font_size_unit:gP,div_tabs_tab_title_style_font_weight:hP,div_tabs_tab_title_style_inactive_background_color:vP,div_tabs_tab_title_style_inactive_font_weight:bP,div_tabs_tab_title_style_inactive_text_color:yP,div_tabs_tab_title_style_item_spacing:wP,div_tabs_tab_title_style_letter_spacing:$P,div_tabs_tab_title_style_line_height:kP,div_tabs_tab_title_style_paddings:jP,div_tabs_title_paddings:SP,div_text:CP,div_text_auto_ellipsize:TP,div_text_color:zP,div_text_ellipsis:EP,div_text_ellipsis_actions:AP,div_text_ellipsis_images:OP,div_text_ellipsis_ranges:MP,div_text_ellipsis_text:PP,div_text_focused_text_color:IP,div_text_image:DP,div_text_image_alignment_vertical:VP,div_text_image_height:LP,div_text_image_indexing_direction:FP,div_text_image_start:NP,div_text_image_tint_color:qP,div_text_image_tint_mode:RP,div_text_image_url:BP,div_text_image_width:HP,div_text_images:UP,div_text_letter_spacing:JP,div_text_line_height:WP,div_text_max_lines:KP,div_text_min_hidden_lines:YP,div_text_range:GP,div_text_range_actions:XP,div_text_range_alignment_vertical:ZP,div_text_range_background:xP,div_text_range_baseline_offset:QP,div_text_range_border:eI,div_text_range_end:tI,div_text_range_letter_spacing:nI,div_text_range_line_height:iI,div_text_range_mask:oI,div_text_range_mask_is_enabled:rI,div_text_range_mask_particles:sI,div_text_range_mask_particles_animated:lI,div_text_range_mask_particles_color:aI,div_text_range_mask_particles_density:cI,div_text_range_mask_particles_size:dI,div_text_range_mask_solid:uI,div_text_range_shadow:pI,div_text_range_start:_I,div_text_range_strike:fI,div_text_range_top_offset:mI,div_text_range_underline:gI,div_text_ranges:hI,div_text_selectable:vI,div_text_shadow:bI,div_text_short:yI,div_text_strike:wI,div_text_text:$I,div_text_text_alignment_horizontal:kI,div_text_text_alignment_vertical:jI,div_text_text_color:SI,div_text_text_gradient:CI,div_text_tighten_width:TI,div_text_truncate:zI,div_text_underline:EI,div_timer:AI,div_timer_duration:OI,div_timer_end_actions:MI,div_timer_id:PI,div_timer_tick_actions:II,div_timer_tick_interval:DI,div_timer_value_variable:VI,div_tooltip:LI,div_tooltip_animation_in:FI,div_tooltip_animation_out:NI,div_tooltip_background_accessibility_description:qI,div_tooltip_close_by_tap_outside:RI,div_tooltip_div:BI,div_tooltip_duration:HI,div_tooltip_id:UI,div_tooltip_mode:JI,div_tooltip_mode_modal:WI,div_tooltip_mode_non_modal:KI,div_tooltip_offset:YI,div_tooltip_position:GI,div_tooltip_tap_outside_actions:XI,div_transform:ZI,div_transform_pivot_x:xI,div_transform_pivot_y:QI,div_transform_rotation:eD,div_transition_base_duration:tD,div_transition_base_interpolator:nD,div_transition_base_start_delay:iD,div_transition_selector:oD,div_transition_trigger:rD,div_trigger:sD,div_trigger_actions:lD,div_trigger_condition:aD,div_trigger_mode:cD,div_variable_array:dD,div_variable_boolean:uD,div_variable_color:pD,div_variable_dict:_D,div_variable_integer:fD,div_variable_name:mD,div_variable_number:gD,div_variable_string:hD,div_variable_url:vD,div_variable_value:bD,div_video:yD,div_video_autostart:wD,div_video_buffering_actions:$D,div_video_elapsed_time_variable:kD,div_video_end_actions:jD,div_video_fatal_actions:SD,div_video_muted:CD,div_video_pause_actions:TD,div_video_player_settings_payload:zD,div_video_preload_required:ED,div_video_preview:AD,div_video_repeatable:OD,div_video_resume_actions:MD,div_video_scale:PD,div_video_source:ID,div_video_source_bitrate:DD,div_video_source_mime_type:VD,div_video_source_resolution:LD,div_video_source_resolution_height:FD,div_video_source_resolution_width:ND,div_video_source_url:qD,div_video_stream:RD,div_video_stream_url:BD,div_video_video:HD,div_video_video_data:UD,div_video_video_source:JD,div_video_video_source_codec:WD,div_video_video_source_mime_type:KD,div_video_video_source_resolution:YD,div_video_video_source_resolution_height:GD,div_video_video_source_resolution_width:XD,div_video_video_source_url:ZD,div_visibility:xD,div_visibility_action:QD,div_visibility_action_log_limit:eV,div_visibility_action_visibility_duration:tV,div_visibility_action_visibility_percentage:nV,div_wrap_content_size:iV,div_wrap_content_size_constrained:oV},vte=Object.freeze(Object.defineProperty({__proto__:null,default:hte,div_absolute_edge_insets:B8,div_accessibility:H8,div_accessibility_description:U8,div_accessibility_hint:J8,div_accessibility_is_checked:W8,div_accessibility_mode:K8,div_accessibility_mute_after_action:Y8,div_accessibility_state_description:G8,div_accessibility_type:X8,div_action:Z8,div_action_animator_start:x8,div_action_animator_start_animator_id:Q8,div_action_animator_start_end_value:e7,div_action_animator_start_start_value:t7,div_action_animator_stop:n7,div_action_animator_stop_animator_id:i7,div_action_array_insert_value:o7,div_action_array_remove_value:r7,div_action_array_set_value:s7,div_action_base_download_callbacks:l7,div_action_base_is_enabled:a7,div_action_base_log_id:c7,div_action_base_payload:d7,div_action_base_referer:u7,div_action_base_scope_id:p7,div_action_base_url:_7,div_action_clear_focus:f7,div_action_copy_to_clipboard:m7,div_action_dict_set_value:g7,div_action_download:h7,div_action_download_url:v7,div_action_focus_element:b7,div_action_hide_tooltip:y7,div_action_log_url:w7,div_action_menu_item_action:$7,div_action_menu_item_actions:k7,div_action_menu_item_text:j7,div_action_menu_items:S7,div_action_scroll_animated:C7,div_action_scroll_by:T7,div_action_scroll_by_item_count:z7,div_action_scroll_by_offset:E7,div_action_scroll_destination:A7,div_action_scroll_destination_end:O7,div_action_scroll_destination_index:M7,div_action_scroll_destination_index_value:P7,div_action_scroll_destination_offset:I7,div_action_scroll_destination_offset_value:D7,div_action_scroll_destination_start:V7,div_action_scroll_id:L7,div_action_scroll_overflow:F7,div_action_scroll_to:N7,div_action_scroll_to_destination:q7,div_action_set_state:R7,div_action_set_state_state_id:B7,div_action_set_state_temporary:H7,div_action_set_stored_value:U7,div_action_set_stored_value_lifetime:J7,div_action_set_stored_value_name:W7,div_action_set_stored_value_value:K7,div_action_set_variable:Y7,div_action_show_tooltip:G7,div_action_show_tooltip_multiple:X7,div_action_submit:Z7,div_action_submit_container_id:x7,div_action_submit_on_fail_actions:Q7,div_action_submit_on_success_actions:e9,div_action_submit_request:t9,div_action_submit_request_headers:n9,div_action_submit_request_method:i9,div_action_submit_request_query_parameters:o9,div_action_submit_request_url:r9,div_action_target:s9,div_action_timer:l9,div_action_timer_action:a9,div_action_timer_id:c9,div_action_tooltip_id:d9,div_action_video:u9,div_action_video_action:p9,div_action_video_id:_9,div_actionable_action:f9,div_actionable_action_animation:m9,div_actionable_actions:g9,div_actionable_doubletap_actions:h9,div_actionable_hover_end_actions:v9,div_actionable_hover_start_actions:b9,div_actionable_longtap_actions:y9,div_actionable_press_end_actions:w9,div_actionable_press_start_actions:$9,div_animation:k9,div_animation_duration:j9,div_animation_end_value:S9,div_animation_interpolator:C9,div_animation_interpolator_short:T9,div_animation_items:z9,div_animation_name:E9,div_animation_repeat:A9,div_animation_start_delay:O9,div_animation_start_value:M9,div_animator_base_cancel_actions:P9,div_animator_base_direction:I9,div_animator_base_duration:D9,div_animator_base_end_actions:V9,div_animator_base_id:L9,div_animator_base_interpolator:F9,div_animator_base_repeat_count:N9,div_animator_base_start_delay:q9,div_animator_base_variable_name:R9,div_animator_end_value:B9,div_animator_start_value:H9,div_appearance_set_transition:U9,div_appearance_set_transition_items:J9,div_appearance_transition:W9,div_appearance_transition_fade:K9,div_appearance_transition_scale:Y9,div_appearance_transition_set:G9,div_appearance_transition_slide:X9,div_aspect:Z9,div_aspect_ratio:x9,div_background_gradient:Q9,div_background_image:eS,div_background_solid:tS,div_base_accessibility:nS,div_base_alignment_horizontal:iS,div_base_alignment_vertical:oS,div_base_alpha:rS,div_base_animators:sS,div_base_background:lS,div_base_border:aS,div_base_column_span:cS,div_base_disappear_actions:dS,div_base_extensions:uS,div_base_focus:pS,div_base_functions:_S,div_base_height:fS,div_base_id:mS,div_base_margins:gS,div_base_paddings:hS,div_base_row_span:vS,div_base_selected_actions:bS,div_base_tooltips:yS,div_base_transform:wS,div_base_transition_change:$S,div_base_transition_in:kS,div_base_transition_out:jS,div_base_transition_triggers:SS,div_base_variable_triggers:CS,div_base_variables:TS,div_base_visibility:zS,div_base_visibility_action:ES,div_base_visibility_actions:AS,div_base_width:OS,div_blend_mode:MS,div_blur:PS,div_blur_radius:IS,div_border:DS,div_border_corner_radius:VS,div_border_corners_radius:LS,div_border_has_shadow:FS,div_border_shadow:NS,div_border_stroke:qS,div_change_bounds_transition:RS,div_change_set_transition:BS,div_change_set_transition_items:HS,div_change_transition:US,div_change_transition_bounds:JS,div_change_transition_set:WS,div_circle_shape:KS,div_circle_shape_radius:YS,div_clip_to_bounds:GS,div_cloud_background:XS,div_cloud_background_color:ZS,div_cloud_background_corner_radius:xS,div_cloud_background_paddings:QS,div_collection_item_builder:eC,div_collection_item_builder_data:tC,div_collection_item_builder_prototypes:nC,div_collection_item_builder_prototypes_data_element_name:iC,div_collection_item_builder_prototypes_data_element_prefix:oC,div_collection_item_builder_prototypes_div:rC,div_collection_item_builder_prototypes_id:sC,div_collection_item_builder_prototypes_selector:lC,div_color_animator:aC,div_container:cC,div_container_aspect:dC,div_container_content_alignment_horizontal:uC,div_container_content_alignment_vertical:pC,div_container_items:_C,div_container_layout_mode:fC,div_container_line_separator:mC,div_container_orientation:gC,div_container_separator:hC,div_container_separator_show_at_end:vC,div_container_separator_show_at_start:bC,div_container_separator_show_between:yC,div_container_separator_style:wC,div_container_short:$C,div_corners_radius:kC,div_corners_radius_bottom_left:jC,div_corners_radius_bottom_right:SC,div_corners_radius_top_left:CC,div_corners_radius_top_right:TC,div_count_fixed:zC,div_count_infinity:EC,div_custom:AC,div_custom_custom_props:OC,div_custom_custom_type:MC,div_custom_items:PC,div_custom_short:IC,div_data:DC,div_data_div_state_div:VC,div_data_div_state_state_id:LC,div_data_functions:FC,div_data_log_id:NC,div_data_states:qC,div_data_timers:RC,div_data_transition_animation_selector:BC,div_data_variable_triggers:HC,div_data_variables:UC,div_dimension:JC,div_dimension_value:WC,div_disappear_action:KC,div_disappear_action_disappear_duration:YC,div_disappear_action_visibility_percentage:GC,div_download_callbacks:XC,div_download_callbacks_on_fail_actions:ZC,div_download_callbacks_on_success_actions:xC,div_edge_insets:QC,div_edge_insets_bottom:eT,div_edge_insets_end:tT,div_edge_insets_left:nT,div_edge_insets_right:iT,div_edge_insets_start:oT,div_edge_insets_top:rT,div_evaluable_type:sT,div_extension:lT,div_extension_id:aT,div_extension_params:cT,div_fade_transition:dT,div_fade_transition_alpha:uT,div_filter:pT,div_filter_rtl_mirror:_T,div_fixed_count:fT,div_fixed_count_value:mT,div_fixed_size:gT,div_fixed_size_unit:hT,div_fixed_size_value:vT,div_focus:bT,div_focus_background:yT,div_focus_border:wT,div_focus_next_focus_ids:$T,div_focus_on_blur:kT,div_focus_on_focus:jT,div_font_family:ST,div_font_feature_settings:CT,div_font_size:TT,div_font_size_unit:zT,div_font_weight:ET,div_font_weight_value:AT,div_function:OT,div_function_argument:MT,div_function_argument_name:PT,div_function_argument_type:IT,div_function_body:DT,div_function_name:VT,div_function_return_type:LT,div_gallery:FT,div_gallery_column_count:NT,div_gallery_cross_content_alignment:qT,div_gallery_cross_spacing:RT,div_gallery_default_item:BT,div_gallery_item_spacing:HT,div_gallery_items:UT,div_gallery_orientation:JT,div_gallery_restrict_parent_scroll:WT,div_gallery_scroll_mode:KT,div_gallery_short:YT,div_gif_image:GT,div_gif_image_gif_url:XT,div_gif_image_short:ZT,div_gradient_background:xT,div_gradient_background_angle:QT,div_gradient_background_colors:ez,div_gradient_colors:tz,div_gradient_linear:nz,div_gradient_linear_angle:iz,div_gradient_linear_color_map:oz,div_gradient_linear_color_point:rz,div_gradient_linear_color_point_color:sz,div_gradient_linear_color_point_position:lz,div_gradient_radial:az,div_gradient_radial_center_x:cz,div_gradient_radial_center_y:dz,div_gradient_radial_radius:uz,div_grid:pz,div_grid_column_count:_z,div_grid_content_alignment_horizontal:fz,div_grid_content_alignment_vertical:mz,div_grid_items:gz,div_grid_short:hz,div_image:vz,div_image_appearance_animation:bz,div_image_background:yz,div_image_background_alpha:wz,div_image_background_content_alignment_horizontal:$z,div_image_background_content_alignment_vertical:kz,div_image_background_image_url:jz,div_image_background_preload_required:Sz,div_image_background_scale:Cz,div_image_base_content_alignment_horizontal:Tz,div_image_base_content_alignment_vertical:zz,div_image_base_placeholder_color:Ez,div_image_base_preload_required:Az,div_image_base_preview:Oz,div_image_base_scale:Mz,div_image_high_priority_preview_show:Pz,div_image_image_url:Iz,div_image_short:Dz,div_image_tint_color:Vz,div_image_tint_mode:Lz,div_indicator:Fz,div_indicator_active_item_color:Nz,div_indicator_active_item_size:qz,div_indicator_active_shape:Rz,div_indicator_animation:Bz,div_indicator_inactive_item_color:Hz,div_indicator_inactive_minimum_shape:Uz,div_indicator_inactive_shape:Jz,div_indicator_item_placement:Wz,div_indicator_item_placement_default:Kz,div_indicator_item_placement_stretch:Yz,div_indicator_max_visible_items:Gz,div_indicator_minimum_item_size:Xz,div_indicator_pager_id:Zz,div_indicator_shape:xz,div_indicator_short:Qz,div_indicator_space_between_centers:eE,div_indicator_space_between_items:tE,div_infinity_count:nE,div_input:iE,div_input_autocapitalization:oE,div_input_enter_key_actions:rE,div_input_enter_key_type:sE,div_input_filters:lE,div_input_filters_expression:aE,div_input_filters_expression_condition:cE,div_input_filters_regex:dE,div_input_filters_regex_pattern:uE,div_input_highlight_color:pE,div_input_hint_color:_E,div_input_hint_text:fE,div_input_is_enabled:mE,div_input_keyboard_type:gE,div_input_letter_spacing:hE,div_input_line_height:vE,div_input_mask:bE,div_input_mask_currency:yE,div_input_mask_currency_locale:wE,div_input_mask_fixed_length:$E,div_input_mask_fixed_length_always_visible:kE,div_input_mask_fixed_length_pattern:jE,div_input_mask_fixed_length_pattern_elements:SE,div_input_mask_fixed_length_pattern_elements_key:CE,div_input_mask_fixed_length_pattern_elements_placeholder:TE,div_input_mask_fixed_length_pattern_elements_regex:zE,div_input_mask_phone:EE,div_input_mask_raw_text_variable:AE,div_input_max_length:OE,div_input_max_visible_lines:ME,div_input_method:PE,div_input_native_interface:IE,div_input_native_interface_color:DE,div_input_select_all_on_focus:VE,div_input_short:LE,div_input_text_variable:FE,div_input_validators:NE,div_input_validators_allow_empty:qE,div_input_validators_expression:RE,div_input_validators_expression_condition:BE,div_input_validators_label_id:HE,div_input_validators_regex:UE,div_input_validators_regex_pattern:JE,div_input_validators_variable:WE,div_keyboard_input:KE,div_layout_provider:YE,div_layout_provider_height_variable_name:GE,div_layout_provider_width_variable_name:XE,div_line_style:ZE,div_log_limit:xE,div_match_parent_size:QE,div_match_parent_size_weight:eA,div_neighbour_page_size:tA,div_neighbour_page_size_neighbour_page_width:nA,div_nine_patch_background:iA,div_nine_patch_background_insets:oA,div_number_animator:rA,div_page_content_size:sA,div_page_content_size_alignment:lA,div_page_size:aA,div_page_size_page_width:cA,div_pager:dA,div_pager_cross_axis_alignment:uA,div_pager_default_item:pA,div_pager_infinite_scroll:_A,div_pager_item_spacing:fA,div_pager_items:mA,div_pager_layout_mode:gA,div_pager_layout_mode_neighbour_page_size:hA,div_pager_layout_mode_page_size:vA,div_pager_next_page_alpha:bA,div_pager_next_page_scale:yA,div_pager_orientation:wA,div_pager_page_transformation:$A,div_pager_page_transformation_interpolator:kA,div_pager_page_transformation_overlap:jA,div_pager_page_transformation_overlap_reversed_stacking_order:SA,div_pager_page_transformation_slide:CA,div_pager_previous_page_alpha:TA,div_pager_previous_page_scale:zA,div_pager_restrict_parent_scroll:EA,div_pager_scroll_axis_alignment:AA,div_pager_short:OA,div_patch:MA,div_patch_change_id:PA,div_patch_change_items:IA,div_patch_changes:DA,div_patch_mode:VA,div_patch_on_applied_actions:LA,div_patch_on_failed_actions:FA,div_percentage_size:NA,div_percentage_size_value:qA,div_pivot_fixed:RA,div_pivot_fixed_short:BA,div_pivot_fixed_unit:HA,div_pivot_fixed_value:UA,div_pivot_percentage:JA,div_pivot_percentage_short:WA,div_pivot_percentage_value:KA,div_point:YA,div_point_x:GA,div_point_y:XA,div_radial_gradient_fixed_center:ZA,div_radial_gradient_fixed_center_value:xA,div_radial_gradient_relative_center:QA,div_radial_gradient_relative_center_value:eO,div_radial_gradient_relative_radius:tO,div_radial_gradient_relative_radius_value:nO,div_reuse_id:iO,div_rounded_rectangle_shape:oO,div_rounded_rectangle_shape_corner_radius:rO,div_rounded_rectangle_shape_item_height:sO,div_rounded_rectangle_shape_item_width:lO,div_scale_transition:aO,div_scale_transition_pivot_x:cO,div_scale_transition_pivot_y:dO,div_scale_transition_scale:uO,div_scrollbar:pO,div_select:_O,div_select_hint_color:fO,div_select_hint_text:mO,div_select_letter_spacing:gO,div_select_line_height:hO,div_select_option:vO,div_select_option_text:bO,div_select_option_value:yO,div_select_value_variable:wO,div_selection_input:$O,div_selection_input_item:kO,div_selection_input_item_text:jO,div_selection_input_item_value:SO,div_separator:CO,div_separator_delimiter_style:TO,div_separator_short:zO,div_separator_style_color:EO,div_separator_style_orientation:AO,div_shadow:OO,div_shadow_alpha:MO,div_shadow_blur:PO,div_shadow_color:IO,div_shadow_offset:DO,div_shape_base_background_color:VO,div_shape_base_stroke:LO,div_shape_drawable:FO,div_shape_drawable_color:NO,div_shape_drawable_shape:qO,div_shape_drawable_stroke:RO,div_size_fixed:BO,div_size_match_parent:HO,div_size_max:UO,div_size_min:JO,div_size_unit:WO,div_size_wrap_content:KO,div_slide_transition:YO,div_slide_transition_distance:GO,div_slide_transition_edge:XO,div_slider:ZO,div_slider_is_enabled:xO,div_slider_max_value:QO,div_slider_min_value:eM,div_slider_range_end:tM,div_slider_range_margins:nM,div_slider_range_start:iM,div_slider_ranges:oM,div_slider_secondary_value_accessibility:rM,div_slider_short:sM,div_slider_text_style_offset:lM,div_slider_thumb_secondary_style:aM,div_slider_thumb_secondary_text_style:cM,div_slider_thumb_secondary_value_variable:dM,div_slider_thumb_style:uM,div_slider_thumb_text_style:pM,div_slider_thumb_value_variable:_M,div_slider_tick_mark_active_style:fM,div_slider_tick_mark_inactive_style:mM,div_slider_track_active_style:gM,div_slider_track_inactive_style:hM,div_solid_background:vM,div_solid_background_color:bM,div_state:yM,div_state_default_state_id:wM,div_state_div_id:$M,div_state_div_state_animation_in:kM,div_state_div_state_animation_out:jM,div_state_div_state_div:SM,div_state_div_state_state_id:CM,div_state_div_state_swipe_out_actions:TM,div_state_short:zM,div_state_state_id_variable:EM,div_state_states:AM,div_state_transition_animation_selector:OM,div_stroke:MM,div_stroke_color:PM,div_stroke_style:IM,div_stroke_style_dashed:DM,div_stroke_style_solid:VM,div_stroke_width:LM,div_switch:FM,div_switch_is_enabled:NM,div_switch_is_on_variable:qM,div_switch_on_color:RM,div_switch_short:BM,div_tabs:HM,div_tabs_dynamic_height:UM,div_tabs_has_separator:JM,div_tabs_item:WM,div_tabs_item_div:KM,div_tabs_item_title:YM,div_tabs_item_title_click_action:GM,div_tabs_items:XM,div_tabs_restrict_parent_scroll:ZM,div_tabs_selected_tab:xM,div_tabs_separator_color:QM,div_tabs_separator_paddings:eP,div_tabs_short:tP,div_tabs_switch_tabs_by_content_swipe_enabled:nP,div_tabs_tab_title_delimiter_delimiter_style:iP,div_tabs_tab_title_delimiter_style_background_color:oP,div_tabs_tab_title_delimiter_style_corner_radius:rP,div_tabs_tab_title_delimiter_style_corners_radius:sP,div_tabs_tab_title_style:lP,div_tabs_tab_title_style_active_background_color:aP,div_tabs_tab_title_style_active_font_weight:cP,div_tabs_tab_title_style_active_text_color:dP,div_tabs_tab_title_style_animation_duration:uP,div_tabs_tab_title_style_animation_type:pP,div_tabs_tab_title_style_corner_radius:_P,div_tabs_tab_title_style_corners_radius:fP,div_tabs_tab_title_style_font_size:mP,div_tabs_tab_title_style_font_size_unit:gP,div_tabs_tab_title_style_font_weight:hP,div_tabs_tab_title_style_inactive_background_color:vP,div_tabs_tab_title_style_inactive_font_weight:bP,div_tabs_tab_title_style_inactive_text_color:yP,div_tabs_tab_title_style_item_spacing:wP,div_tabs_tab_title_style_letter_spacing:$P,div_tabs_tab_title_style_line_height:kP,div_tabs_tab_title_style_paddings:jP,div_tabs_title_paddings:SP,div_text:CP,div_text_auto_ellipsize:TP,div_text_color:zP,div_text_ellipsis:EP,div_text_ellipsis_actions:AP,div_text_ellipsis_images:OP,div_text_ellipsis_ranges:MP,div_text_ellipsis_text:PP,div_text_focused_text_color:IP,div_text_image:DP,div_text_image_alignment_vertical:VP,div_text_image_height:LP,div_text_image_indexing_direction:FP,div_text_image_start:NP,div_text_image_tint_color:qP,div_text_image_tint_mode:RP,div_text_image_url:BP,div_text_image_width:HP,div_text_images:UP,div_text_letter_spacing:JP,div_text_line_height:WP,div_text_max_lines:KP,div_text_min_hidden_lines:YP,div_text_range:GP,div_text_range_actions:XP,div_text_range_alignment_vertical:ZP,div_text_range_background:xP,div_text_range_baseline_offset:QP,div_text_range_border:eI,div_text_range_end:tI,div_text_range_letter_spacing:nI,div_text_range_line_height:iI,div_text_range_mask:oI,div_text_range_mask_is_enabled:rI,div_text_range_mask_particles:sI,div_text_range_mask_particles_animated:lI,div_text_range_mask_particles_color:aI,div_text_range_mask_particles_density:cI,div_text_range_mask_particles_size:dI,div_text_range_mask_solid:uI,div_text_range_shadow:pI,div_text_range_start:_I,div_text_range_strike:fI,div_text_range_top_offset:mI,div_text_range_underline:gI,div_text_ranges:hI,div_text_selectable:vI,div_text_shadow:bI,div_text_short:yI,div_text_strike:wI,div_text_text:$I,div_text_text_alignment_horizontal:kI,div_text_text_alignment_vertical:jI,div_text_text_color:SI,div_text_text_gradient:CI,div_text_tighten_width:TI,div_text_truncate:zI,div_text_underline:EI,div_timer:AI,div_timer_duration:OI,div_timer_end_actions:MI,div_timer_id:PI,div_timer_tick_actions:II,div_timer_tick_interval:DI,div_timer_value_variable:VI,div_tooltip:LI,div_tooltip_animation_in:FI,div_tooltip_animation_out:NI,div_tooltip_background_accessibility_description:qI,div_tooltip_close_by_tap_outside:RI,div_tooltip_div:BI,div_tooltip_duration:HI,div_tooltip_id:UI,div_tooltip_mode:JI,div_tooltip_mode_modal:WI,div_tooltip_mode_non_modal:KI,div_tooltip_offset:YI,div_tooltip_position:GI,div_tooltip_tap_outside_actions:XI,div_transform:ZI,div_transform_pivot_x:xI,div_transform_pivot_y:QI,div_transform_rotation:eD,div_transition_base_duration:tD,div_transition_base_interpolator:nD,div_transition_base_start_delay:iD,div_transition_selector:oD,div_transition_trigger:rD,div_trigger:sD,div_trigger_actions:lD,div_trigger_condition:aD,div_trigger_mode:cD,div_variable_array:dD,div_variable_boolean:uD,div_variable_color:pD,div_variable_dict:_D,div_variable_integer:fD,div_variable_name:mD,div_variable_number:gD,div_variable_string:hD,div_variable_url:vD,div_variable_value:bD,div_video:yD,div_video_autostart:wD,div_video_buffering_actions:$D,div_video_elapsed_time_variable:kD,div_video_end_actions:jD,div_video_fatal_actions:SD,div_video_muted:CD,div_video_pause_actions:TD,div_video_player_settings_payload:zD,div_video_preload_required:ED,div_video_preview:AD,div_video_repeatable:OD,div_video_resume_actions:MD,div_video_scale:PD,div_video_source:ID,div_video_source_bitrate:DD,div_video_source_mime_type:VD,div_video_source_resolution:LD,div_video_source_resolution_height:FD,div_video_source_resolution_width:ND,div_video_source_url:qD,div_video_stream:RD,div_video_stream_url:BD,div_video_video:HD,div_video_video_data:UD,div_video_video_source:JD,div_video_video_source_codec:WD,div_video_video_source_mime_type:KD,div_video_video_source_resolution:YD,div_video_video_source_resolution_height:GD,div_video_video_source_resolution_width:XD,div_video_video_source_url:ZD,div_visibility:xD,div_visibility_action:QD,div_visibility_action_log_limit:eV,div_visibility_action_visibility_duration:tV,div_visibility_action_visibility_percentage:nV,div_wrap_content_size:iV,div_wrap_content_size_constrained:oV},Symbol.toStringTag,{value:"Module"})),kr=Boolean,bte="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M29%2016a5%205%200%201%200%200-10%205%205%200%200%200%200%2010Zm0-2a3%203%200%201%200%200-6%203%203%200%200%200%200%206Z'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23fff'%20d='M5.104%2022.556a1%201%200%200%201%201.34-.452c.754.374%201.404.753%201.994%201.175a1%201%200%201%201-1.166%201.625%2012.214%2012.214%200%200%200-1.716-1.008%201%201%200%200%201-.452-1.34Zm5.102%203.848a1%201%200%200%201%201.395.235c.383.537.787%201.136%201.232%201.809a1%201%200%201%201-1.667%201.105%2063.971%2063.971%200%200%200-1.194-1.754%201%201%200%200%201%20.234-1.395Zm13.497-8.692a1%201%200%200%200-1.406-1.424%2041.525%2041.525%200%200%200-1.618%201.678%201%201%200%200%200%201.483%201.342%2039.6%2039.6%200%200%201%201.54-1.596Zm-4.099%205.081a1%201%200%201%200-1.736-.992c-.699%201.223-1.333%202.616-1.937%204.303a1%201%200%200%200%201.883.674c.572-1.596%201.16-2.88%201.79-3.985Zm-3.087%208.25a1%201%200%200%200-1.935-.508c-.185.704-.37%201.448-.555%202.236a1%201%200%200%200%201.946.458c.183-.773.363-1.5.544-2.186Z'/%3e%3c/svg%3e",yte="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M8.122%2015.929h3.172c1.109%200%201.954.173%202.535.52.58.346.87.931.87%201.755%200%20.338-.047.632-.142.884a1.845%201.845%200%200%201-.416.637%202.112%202.112%200%200%201-.637.429c-.252.112-.53.199-.832.26.78.095%201.369.307%201.768.637.398.329.598.832.598%201.508%200%20.485-.096.901-.286%201.248a2.35%202.35%200%200%201-.793.832%203.917%203.917%200%200%201-1.196.468c-.46.095-.958.143-1.495.143H8.122v-9.321Zm1.573%201.365v2.483h1.677c.52%200%20.94-.109%201.26-.325.321-.226.482-.577.482-1.053%200-.434-.148-.724-.442-.871-.286-.156-.694-.234-1.222-.234H9.695Zm0%203.835v2.769h1.729c.294%200%20.563-.022.806-.065.242-.052.45-.13.624-.234a1.2%201.2%200%200%200%20.403-.43%201.41%201.41%200%200%200%20.143-.662c0-.512-.17-.867-.507-1.066-.33-.208-.863-.312-1.6-.312H9.696Z'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23fff'%20d='M20.08%2017.294v7.956h-1.587v-7.956H15.66v-1.365h7.24v1.365h-2.82Zm9.768%207.956h2.04v-9.321h-1.43v7.37l-4.16-7.37h-2.053v9.32h1.43v-7.383l4.173%207.384Z'/%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M2%2014a6%206%200%200%201%206-6h24a6%206%200%200%201%206%206v12a6%206%200%200%201-6%206H8a6%206%200%200%201-6-6V14Zm6-4h24a4%204%200%200%201%204%204v12a4%204%200%200%201-4%204H8a4%204%200%200%201-4-4V14a4%204%200%200%201%204-4Z'%20clip-rule='evenodd'/%3e%3c/svg%3e",wte="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M15%208a1%201%200%200%201-1%201h-3.5A1.5%201.5%200%200%200%209%2010.5V14a1%201%200%201%201-2%200v-3.5A3.5%203.5%200%200%201%2010.5%207H14a1%201%200%200%201%201%201ZM8%2025a1%201%200%200%201%201%201v3.5a1.5%201.5%200%200%200%201.5%201.5H14a1%201%200%201%201%200%202h-3.5A3.5%203.5%200%200%201%207%2029.5V26a1%201%200%200%201%201-1Zm23-11a1%201%200%201%200%202%200v-3.5A3.5%203.5%200%200%200%2029.5%207H26a1%201%200%201%200%200%202h3.5a1.5%201.5%200%200%201%201.5%201.5V14Zm-6%2018a1%201%200%200%201%201-1h3.5a1.5%201.5%200%200%200%201.5-1.5V26a1%201%200%201%201%202%200v3.5a3.5%203.5%200%200%201-3.5%203.5H26a1%201%200%200%201-1-1Zm-9.242-6.343a1%201%200%200%201-1.414-1.414l4.242-4.242-4.242-4.242a1%201%200%200%201%201.414-1.414L20%2018.587l4.243-4.243a1%201%200%200%201%201.414%201.414L21.414%2020l4.243%204.243a1%201%200%201%201-1.414%201.415L20%2021.415l-4.242%204.242Z'/%3e%3c/svg%3e",$te="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M10%209a3%203%200%201%200%200%206%203%203%200%200%200%200-6Zm-1%203a1%201%200%201%201%202%200%201%201%200%200%201-2%200Zm1%205a3%203%200%201%200%200%206%203%203%200%200%200%200-6Zm-1%203a1%201%200%201%201%202%200%201%201%200%200%201-2%200Zm-2%208a3%203%200%201%201%206%200%203%203%200%200%201-6%200Zm3-1a1%201%200%201%200%200%202%201%201%200%200%200%200-2Z'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23fff'%20d='M16%2012a1%201%200%200%200%201%201h15a1%201%200%201%200%200-2H17a1%201%200%200%200-1%201Zm1%209a1%201%200%201%201%200-2h15a1%201%200%201%201%200%202H17Zm-1%207a1%201%200%200%200%201%201h15a1%201%200%201%200%200-2H17a1%201%200%200%200-1%201Z'/%3e%3c/svg%3e",Ui={_template_lottie:{nameKey:"templates.lottie",visible:!0,inShortList:!0,icon:bte,props:[{type:"group",title:"lottieProps.title",list:[{name:"props.lottie_url",prop:"lottie_params.lottie_url",type:"file",subtype:"lottie",enableSources:!0},{name:"props.preview",prop:"preview",type:"file",generateFromLottieProperty:"lottie_params.lottie_url",subtype:"image_preview",enableSources:!0},{name:"props.image_scale",prop:"scale",type:"select",default:"fill",options:[{name:"props.scale_fit",value:"fit"},{name:"props.scale_fill",value:"fill"},{name:"props.scale_no_scale",value:"no_scale"},{name:"props.scale_stretch",value:"stretch"}],enableSources:!0}]}],newNode:{lottie_params:{lottie_url:"",repeat_count:-1,repeat_mode:"restart"},width:{type:"fixed",value:100},height:{type:"fixed",value:100}},template:{type:"gif",scale:"fit",extensions:[{id:"lottie",$params:"lottie_params"}],gif_url:"https://yastatic.net/s3/home/divkit/empty2.png"}},_template_button:{nameKey:"templates.button",visible:!0,inShortList:!0,inlineTextEditorProp:"text",icon:yte,props:[{type:"group",title:"buttonProps.title",list:[{name:"props.text",prop:"text",type:"string",enableTanker:!0,enableSources:!0,default:""},{type:"split",list:[{name:"props.font_size",prop:"font_size",type:"integer",min:1,max:1e3,enableSources:!0},{name:"props.line_height",prop:"line_height",type:"integer",min:0,max:1e3,enableSources:!0}]},{name:"props.font_weight",prop:"font_weight",type:"select",options:[{name:"props.font_weight_light",value:"light"},{name:"props.font_weight_normal",value:"regular"},{name:"props.font_weight_medium",value:"medium"},{name:"props.font_weight_bold",value:"bold"}],enableSources:!0},{name:"props.font_family",prop:"font_family",type:"select-font-family",show:{prop:"$fontFamily",equal:"yes"},enableSources:!0},{name:"props.text_color",prop:"text_color",type:"color",enableSources:!0},{name:"props.corners",prop:"corners",type:"integer",min:0,max:100,enableSources:!0},{name:"props.actions",prop:"actions",type:"actions2"}]}],newNode:{text:"Hello",background:[{type:"solid",color:"#000"}],text_color:"#fff",corners:4},template:{type:"text",text_alignment_horizontal:"center",text_alignment_vertical:"center",border:{$corner_radius:"corners"},paddings:{bottom:24,left:28,right:28,top:22},width:{type:"wrap_content"}}},_template_close:{nameKey:"templates.close",visible:!0,inShortList:!0,icon:wte,props:[{type:"group",title:"closeProps.title",list:[{name:"color",prop:"tint_color",type:"color",enableSources:!0},{name:"props.actions",prop:"actions",type:"actions2"}]}],newNode:{alignment_horizontal:"right",height:{type:"fixed",value:28},margins:{top:20,right:24},width:{type:"fixed",value:28}},template:{accessibility:{description:"Закрыть",mode:"merge",type:"button"},actions:[{log_id:"close_popup",url:"div-screen://close"}],image_url:"empty://",preview:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUBAMAAADuRQ3yAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAwUExURQAAAIeHh4qKiouLi4yMjIyMjIqKioyMjIuLi4uLi4yMjIyMjIyMjI2NjYyMjIyMjDn5Ri0AAAAPdFJOUwAgMEBQX2B/gKCvv8/f707huRkAAAFkSURBVEjH7dfNTcQwEAXgsEiOYIW2lS2BEugk6SB0QAMUQQXQBy1w4baRODwOm7XH43kzPu5hfYs9+pQfz5MzDLdxFeP+8++lc20BTqy0XtsBwGxXjgBQ2EeAsgsAfOTLJ1B2BAD8qtITRUXpAxh7RsUN7MDYMyoea5gIu6GrmEqE3dBXOWezBspYC7VZE7VZG7VYglosQ1uWoi3LUc06qGY9tGZdtGZ9VLIBKtkILWyIFjZGMxujme1AK3YNgi51o4Jdw/xM3Whm145YXgAnGI02pXnboh3sWF7W3IuG7Cg/7NyLBuxln04xe9mnKWTL5g/ZsvkjVnZUwMqO8tm6TV22blOP1b3vsLr3OdsGCmXbQGGslVKEtVLKZu3oM1k7+iyW5anBsjxt2UQDZWOf88SeplTSx5wDT6lJHZ4OPPqSKt070TfVN5CcPE3qnPXm5OmkzllfP0dWevf+fbz9DFzH+AfPICZho9A64QAAAABJRU5ErkJggg==",tint_color:"#73000000",type:"image"}},_template_list_item:{nameKey:"templates.list_item",visible:!0,icon:$te,props:[{type:"group",title:"listItemProps.title",list:[{name:"props.text",prop:"list_text",type:"string",enableTanker:!0,default:"\0",enableSources:!0},{name:"props.font_size",prop:"list_text_size",type:"integer",min:1,max:1e3,enableSources:!0},{name:"props.font_weight",prop:"list_font_weight",type:"select",options:[{name:"props.font_weight_light",value:"light"},{name:"props.font_weight_normal",value:"regular"},{name:"props.font_weight_medium",value:"medium"},{name:"props.font_weight_bold",value:"bold"}],enableSources:!0},{name:"props.font_family",prop:"font_family",type:"select-font-family",show:{prop:"$fontFamily",equal:"yes"},enableSources:!0},{name:"props.text_color",prop:"list_color",type:"color",enableSources:!0},{name:"props.actions",prop:"actions",type:"actions2"}]}],newNode:{list_text:"Text",list_color:"#000",list_text_size:24,list_font_weight:"medium"},template:{type:"container",orientation:"horizontal",items:[{type:"image",image_url:"https://yastatic.net/s3/home/div/div_fullscreens/hyphen.4.png",$tint_color:"list_color",width:{type:"fixed",value:28,unit:"sp"},height:{type:"fixed",value:28,unit:"sp"},margins:{top:2,right:12,bottom:2}},{type:"text",$text:"list_text",$text_color:"list_color",$font_size:"list_text_size",line_height:32,$font_weight:"list_font_weight",width:{type:"wrap_content",constrained:!0}}]}}};function Gl(t){return Ui.hasOwnProperty(t)}function Rm(t){var e;return(e=Ui[t])==null?void 0:e.baseType}const Bm=Object.assign({"../../../../schema/common.json":UY,"../../../../schema/div-absolute-edge-insets.json":WY,"../../../../schema/div-accessibility.json":YY,"../../../../schema/div-action-animator-start.json":XY,"../../../../schema/div-action-animator-stop.json":xY,"../../../../schema/div-action-array-insert-value.json":eG,"../../../../schema/div-action-array-remove-value.json":nG,"../../../../schema/div-action-array-set-value.json":oG,"../../../../schema/div-action-base.json":sG,"../../../../schema/div-action-clear-focus.json":aG,"../../../../schema/div-action-copy-to-clipboard-content.json":dG,"../../../../schema/div-action-copy-to-clipboard.json":pG,"../../../../schema/div-action-dict-set-value.json":fG,"../../../../schema/div-action-download.json":gG,"../../../../schema/div-action-focus-element.json":vG,"../../../../schema/div-action-hide-tooltip.json":yG,"../../../../schema/div-action-scroll-base.json":$G,"../../../../schema/div-action-scroll-by.json":jG,"../../../../schema/div-action-scroll-destination.json":CG,"../../../../schema/div-action-scroll-to.json":zG,"../../../../schema/div-action-set-state.json":AG,"../../../../schema/div-action-set-stored-value.json":MG,"../../../../schema/div-action-set-variable.json":IG,"../../../../schema/div-action-show-tooltip.json":VG,"../../../../schema/div-action-submit.json":FG,"../../../../schema/div-action-timer.json":qG,"../../../../schema/div-action-typed.json":BG,"../../../../schema/div-action-video.json":UG,"../../../../schema/div-action.json":WG,"../../../../schema/div-actionable.json":YG,"../../../../schema/div-alignment-horizontal.json":XG,"../../../../schema/div-alignment-vertical.json":xG,"../../../../schema/div-animation-direction.json":eX,"../../../../schema/div-animation-interpolator.json":nX,"../../../../schema/div-animation.json":oX,"../../../../schema/div-animator-base.json":sX,"../../../../schema/div-animator.json":aX,"../../../../schema/div-appearance-set-transition.json":dX,"../../../../schema/div-appearance-transition.json":pX,"../../../../schema/div-aspect.json":fX,"../../../../schema/div-background.json":gX,"../../../../schema/div-base.json":vX,"../../../../schema/div-blend-mode.json":yX,"../../../../schema/div-blur.json":$X,"../../../../schema/div-border.json":jX,"../../../../schema/div-change-bounds-transition.json":CX,"../../../../schema/div-change-set-transition.json":zX,"../../../../schema/div-change-transition.json":AX,"../../../../schema/div-circle-shape.json":MX,"../../../../schema/div-cloud-background.json":IX,"../../../../schema/div-collection-item-builder.json":VX,"../../../../schema/div-color-animator.json":FX,"../../../../schema/div-container.json":qX,"../../../../schema/div-content-alignment-horizontal.json":BX,"../../../../schema/div-content-alignment-vertical.json":UX,"../../../../schema/div-corners-radius.json":WX,"../../../../schema/div-count.json":YX,"../../../../schema/div-currency-input-mask.json":XX,"../../../../schema/div-custom.json":xX,"../../../../schema/div-data.json":eZ,"../../../../schema/div-default-indicator-item-placement.json":nZ,"../../../../schema/div-dimension.json":oZ,"../../../../schema/div-disappear-action.json":sZ,"../../../../schema/div-download-callbacks.json":aZ,"../../../../schema/div-drawable.json":dZ,"../../../../schema/div-edge-insets.json":pZ,"../../../../schema/div-evaluable-type.json":fZ,"../../../../schema/div-extension.json":gZ,"../../../../schema/div-fade-transition.json":vZ,"../../../../schema/div-filter-rtl-mirror.json":yZ,"../../../../schema/div-filter.json":$Z,"../../../../schema/div-fixed-count.json":jZ,"../../../../schema/div-fixed-length-input-mask.json":CZ,"../../../../schema/div-fixed-size.json":zZ,"../../../../schema/div-focus.json":AZ,"../../../../schema/div-font-weight.json":MZ,"../../../../schema/div-function-argument.json":IZ,"../../../../schema/div-function.json":VZ,"../../../../schema/div-gallery.json":FZ,"../../../../schema/div-gif-image.json":qZ,"../../../../schema/div-grid.json":BZ,"../../../../schema/div-image-background.json":UZ,"../../../../schema/div-image-base.json":WZ,"../../../../schema/div-image-scale.json":YZ,"../../../../schema/div-image.json":XZ,"../../../../schema/div-indicator-item-placement.json":xZ,"../../../../schema/div-indicator.json":ex,"../../../../schema/div-infinity-count.json":nx,"../../../../schema/div-input-filter-expression.json":ox,"../../../../schema/div-input-filter-regex.json":sx,"../../../../schema/div-input-filter.json":ax,"../../../../schema/div-input-mask-base.json":dx,"../../../../schema/div-input-mask.json":px,"../../../../schema/div-input-validator-base.json":fx,"../../../../schema/div-input-validator-expression.json":gx,"../../../../schema/div-input-validator-regex.json":vx,"../../../../schema/div-input-validator.json":yx,"../../../../schema/div-input.json":$x,"../../../../schema/div-layout-provider.json":jx,"../../../../schema/div-line-style.json":Cx,"../../../../schema/div-linear-gradient.json":zx,"../../../../schema/div-match-parent-size.json":Ax,"../../../../schema/div-neighbour-page-size.json":Mx,"../../../../schema/div-nine-patch-background.json":Ix,"../../../../schema/div-number-animator.json":Vx,"../../../../schema/div-page-content-size.json":Fx,"../../../../schema/div-page-size.json":qx,"../../../../schema/div-page-transformation-overlap.json":Bx,"../../../../schema/div-page-transformation-slide.json":Ux,"../../../../schema/div-page-transformation.json":Wx,"../../../../schema/div-pager-layout-mode.json":Yx,"../../../../schema/div-pager.json":Xx,"../../../../schema/div-patch.json":xx,"../../../../schema/div-percentage-size.json":eQ,"../../../../schema/div-phone-input-mask.json":nQ,"../../../../schema/div-pivot-fixed.json":oQ,"../../../../schema/div-pivot-percentage.json":sQ,"../../../../schema/div-pivot.json":aQ,"../../../../schema/div-point.json":dQ,"../../../../schema/div-radial-gradient-center.json":pQ,"../../../../schema/div-radial-gradient-fixed-center.json":fQ,"../../../../schema/div-radial-gradient-radius.json":gQ,"../../../../schema/div-radial-gradient-relative-center.json":vQ,"../../../../schema/div-radial-gradient-relative-radius.json":yQ,"../../../../schema/div-radial-gradient.json":$Q,"../../../../schema/div-rounded-rectangle-shape.json":jQ,"../../../../schema/div-scale-transition.json":CQ,"../../../../schema/div-select.json":zQ,"../../../../schema/div-separator.json":AQ,"../../../../schema/div-shadow.json":MQ,"../../../../schema/div-shape-base.json":IQ,"../../../../schema/div-shape-drawable.json":VQ,"../../../../schema/div-shape.json":FQ,"../../../../schema/div-sight-action.json":qQ,"../../../../schema/div-size-unit.json":BQ,"../../../../schema/div-size.json":UQ,"../../../../schema/div-slide-transition.json":WQ,"../../../../schema/div-slider.json":YQ,"../../../../schema/div-solid-background.json":XQ,"../../../../schema/div-state.json":xQ,"../../../../schema/div-stretch-indicator-item-placement.json":eee,"../../../../schema/div-stroke-style-dashed.json":nee,"../../../../schema/div-stroke-style-solid.json":oee,"../../../../schema/div-stroke-style.json":see,"../../../../schema/div-stroke.json":aee,"../../../../schema/div-switch.json":dee,"../../../../schema/div-tabs.json":pee,"../../../../schema/div-text-alignment-vertical.json":fee,"../../../../schema/div-text-gradient.json":gee,"../../../../schema/div-text-range-background.json":vee,"../../../../schema/div-text-range-border.json":yee,"../../../../schema/div-text-range-mask-base.json":$ee,"../../../../schema/div-text-range-mask-particles.json":jee,"../../../../schema/div-text-range-mask-solid.json":Cee,"../../../../schema/div-text-range-mask.json":zee,"../../../../schema/div-text.json":Aee,"../../../../schema/div-timer.json":Mee,"../../../../schema/div-tooltip-mode-modal.json":Iee,"../../../../schema/div-tooltip-mode-non-modal.json":Vee,"../../../../schema/div-tooltip-mode.json":Fee,"../../../../schema/div-tooltip.json":qee,"../../../../schema/div-transform.json":Bee,"../../../../schema/div-transition-base.json":Uee,"../../../../schema/div-transition-selector.json":Wee,"../../../../schema/div-transition-trigger.json":Yee,"../../../../schema/div-trigger.json":Xee,"../../../../schema/div-typed-value.json":xee,"../../../../schema/div-variable-name.json":ete,"../../../../schema/div-variable.json":nte,"../../../../schema/div-video-scale.json":ote,"../../../../schema/div-video-source.json":ste,"../../../../schema/div-video.json":ate,"../../../../schema/div-visibility-action.json":dte,"../../../../schema/div-visibility.json":pte,"../../../../schema/div-wrap-content-size.json":fte,"../../../../schema/div.json":gte,"../../../../schema/translations.json":vte}),wa=Object.keys(Bm).reduce(((t,e)=>(t[e.replace("../../../../schema/","").replace(/\.json$/,"")]=Bm[e],t)),{});function kte(t){return lV({},t)}const rV=new Map([["common.json#/boolean_int","boolean"],["common.json#/color","color"],["common.json#/url","file"],["div-variable-name.json","variable-name"],["div-background.json","__background-item"],["div-action.json","__action-item"],["div-video-source.json","__video-source-item"]]),Hm=new Map([["__background-item","background2"],["__action-item","actions2"],["__video-source-item","video_sources"]]),Um=new Map,Jm=new Map;function sV(t){const e={...wa[t].default};return t==="div"&&(e.__isDiv=!0),t==="div-tooltip"&&(e.__isTooltip=!0),e}function Wm(t){return t.replace(/<\/?li>/g,"").replace(/`/g,'"').replace(/\s?\[[^\]]+]\([^)]+\)/g,"")}function lV(t,e,n){const i=Tc(t,e)||{};return{ru:Wm(i.ru||""),en:Wm(i.en||"")}}function Tc(t,e,n){const i=e.split("#"),o=i[0];let r=i[1],s=t;const l={},a=rV.get(e);if(o){const u=Um.get(e);if(u)return u;Um.set(e,l),s=sV(o.replace(/\.json$/,""))}if(!r){const u=Ds(s,s);if(a&&(u.__editor=a),o)for(const p in u)l[p]=u[p];return u}r.startsWith("/")||(r="/"+r);let c=s;const d=r.split("/");for(let u=1;u<d.length;++u){const p=d[u];c=c==null?void 0:c[p]}if(c){const u=Ds(s,c);if(a&&(u.__editor=a),o)for(const p in u)l[p]=u[p];return u}console.error("Cannot find",e)}function aV(t,e,n){return Array.isArray(e)?e.map((i=>aV(t,i))):e&&typeof e=="object"?Ds(t,e):e}function Ds(t,e,n){const i=Jm.get(e);if(i)return i;let o={},r=!1,s=!1;function l(){s||(s=!0,Jm.set(e,o))}function a(){r&&(r=!1,o=Object.create(o))}e.$ref&&(o=Tc(t,e.$ref),r=!0),e.$description&&(a(),o.description=lV(t,e.$description));for(const c in e)c==="$ref"||c==="$description"||(a(),l(),o[c]=aV(t,e[c]));return l(),o}const Km=new Map;function jte(t){const e=Km.get(t);if(e)return e;const n=wa[t].default;if(n){const i=cV(n);if(i)return Km.set(t,i),i}console.error("Cannot resolve",t)}function cV(t){return Ds(t,t)}function Ste(t,e){return Object.keys(t).reduce(((n,i)=>(i!==e&&(n[i]=t[i]),n)),{})}function Hl(t,e,n="",i=!1){let o=t;t.allOf&&i&&(o=cr(o));const r=o.allOf?o.allOf[o.allOf.length-1].properties:o.anyOf?{}:o.properties;if(r)return Object.keys(r).filter((s=>{var a;return!(s==="type"&&r[s].type==="string"&&Array.isArray(r[s].enum)&&r[s].enum.length===1)&&!(r[s].type==="array"&&((a=r[s].items)!=null&&a.__isDiv))&&!r[s].__isDiv})).map((s=>dV(s,r[s],e==null?void 0:e[s],n+s))).filter(kr)}function cr(t){let e=t;return t!=null&&t.allOf&&(e={},[...t.allOf,Ste(t,"allOf")].forEach((n=>{let i=n;i.$ref&&(i=Ds(t,i));const o=e.properties&&i.properties?{...e.properties,...i.properties}:e.properties||i.properties;e={...e,...i,properties:o}}))),e}function dV(t,e,n,i=""){if(!e||(e=cr(e),!(e.type==="text"||e.type==="string"||e.type==="number"||e.type==="integer"||e.type==="array"||e.type==="object"&&(e.properties||e.additionalProperties)||e.anyOf||e.__editor==="boolean")))return;let r,s;if(e.type==="integer"?r="integer":e.type==="number"&&(r="number"),e.constraint&&(s=e.constraint),e.type==="array"&&e.items){let l=n;const a=cr(e.items);if(l){const d=a.anyOf;l=Array.isArray(l)?l.map(((u,p)=>{if(d){const _=d.find((m=>{var h,v,y,b;return((b=(y=(v=(h=cr(m))==null?void 0:h.properties)==null?void 0:v.type)==null?void 0:y.enum)==null?void 0:b[0])===u.type})),f=[{type:"select",name:"type",desc:e,prop:i+"["+p+"].type",value:u.type,options:d.map((m=>{var y,b,w;const h=cr(m),v=(w=(b=(y=h==null?void 0:h.properties)==null?void 0:y.type)==null?void 0:b.enum)==null?void 0:w[0];return{name:v,value:v}})),description:e.description}];if(_){const m=Hl(_,u,i+"["+p+"].",!0);m&&f.push(...m)}return f}else if(a.type==="object")return Hl(a,u,i+"["+p+"].",!0);return[dV("item",a,u,i+"["+p+"]")]})):[]}const c=a.type;return{type:"list",name:t,desc:e,prop:i,value:n,options:null,list:l,subtype:c,description:e.description}}if(e.type==="object"){const l=Hl(e,n,i+".",!0);return{type:"group",name:t,desc:e,prop:i,value:n,options:null,subprops:l,description:e.description,additionalProperties:e.additionalProperties}}if(e.anyOf){let l;const a=e.anyOf;if(n!=null&&n.type){const c=a.find((d=>{var u,p,_;return((_=(p=(u=d==null?void 0:d.properties)==null?void 0:u.type)==null?void 0:p.enum)==null?void 0:_[0])===n.type}));c&&(l=Hl(c,n,i+".",!0))}return{type:"group",name:t,desc:e,prop:i,value:n,options:a.map((c=>{var u;c=cr(c);const d=(u=c==null?void 0:c.properties)==null?void 0:u.type;if(d&&d.type==="string"&&Array.isArray(d.enum)&&d.enum.length===1&&typeof d.enum[0]=="string")return{name:d.enum[0],value:d.enum[0]};console.error("Unknown format",c)})).filter(kr),subprops:l,description:e.description}}return e.type==="string"&&e.enum?{type:"select",name:t,desc:e,prop:i,value:n,options:e.enum.map((l=>({name:l,value:l}))),description:e.description}:e.format==="boolean"||e.__editor==="boolean"?{type:"checkbox",name:t,desc:e,prop:i,value:n,description:e.description}:e.format==="color"?{type:"color",name:t,desc:e,prop:i,value:n,description:e.description}:{type:"text",name:t,desc:e,prop:i,value:n,flags:{subtype:r,constraint:s},description:e.description}}const Cte=(t,e)=>{let n=e;if(e!=null&&e.$ref){const i=rV.get(e.$ref);if(i)return{type:i};n=Tc(t,e.$ref)}if(n.type==="string"&&Array.isArray(n.enum)&&n.enum.length>1)return{type:"select",options:n.enum.map((i=>({rawName:i,value:i})))};if((n.type==="string"||n.type==="integer"||n.type==="number")&&!(n.type==="string"&&Array.isArray(n.enum)&&n.enum.length===1))return{type:n.type,constraint:n.constraint,supportsExpressions:n.supports_expressions??!0};if(n.type==="array"){let i=n.items;if(i!=null&&i.$ref&&(i=Tc(t,i.$ref)),i!=null&&i.__editor&&Hm.has(i.__editor))return{type:Hm.get(i.__editor)}}},ad=new Map,uV=new Map,hu=new Set;(sV("div").anyOf||[]).forEach((t=>{var o,r,s,l;const e=cr(cV(t)),n=(s=(r=(o=e==null?void 0:e.properties)==null?void 0:o.type)==null?void 0:r.enum)==null?void 0:s[0],i=(l=t.$ref)==null?void 0:l.replace(/\.json$/,"");if(n&&i){ad.set(n,i),uV.set(i,n);let a=!1;const c=new Set,d=(u,p,_)=>{if(u){if(Array.isArray(u))u.forEach(((f,m)=>{d(f)}));else if(typeof u=="object"){if(u.__isTooltip)return;if(u.__isDiv){a=!0;return}if(c.has(u))return;c.add(u);for(const f in u)d(u[f])}}};d(e),a||hu.add(n)}}));function Ym(t){var e;return(e=ad.get(t))==null?void 0:e.replace(/^div-/,"")}function Tte(t){return uV.get(t)}function $l(t){const e=ad.get(t);if(!e){console.error(`Unknown type ${t}`);return}return wa[e]}function kl(t){return Gl(t)?hu.has(Ui[t].baseType||""):hu.has(t)}var Qv,e1;for(const t in Ui){const e=Ui[t];let n=e.template.type;for(;typeof n=="string"&&!ad.has(n);)n=(e1=(Qv=Ui[n])==null?void 0:Qv.template)==null?void 0:e1.type;typeof n=="string"&&n?e.baseType=n:console.error("unknown base type",t)}function zc(t,e){if(t===e)return!0;for(const n of t.childs)if(zc(n,e))return!0;return!1}function cs(t,e){const n=[t];for(;n.length;){const i=n.shift();e(i),n.push(...i.childs)}}function no(t,e){let n;return cs(t,(i=>{i.id===e&&(n=i)})),n}function cd(t,e){const n={...t,props:{json:{...t.props.json,items:void 0}},parent:e||void 0};return n.childs=t.childs.map((i=>cd(i,n))),n}function xu(t,e,n=!0){var r;const i=no(t,e);if(!i||!i.parent)return[];let o=[{insertIndex:i.parent.childs.indexOf(i),parentId:i.parent.id,leaf:cd(i)}];return i.parent.childs=i.parent.childs.filter((s=>s.id!==e)),n&&!i.parent.childs.length&&((r=i.parent)!=null&&r.parent)&&(o=[...o,...xu(t,i.parent.id)]),o}function zte(t){let e=0,n=t;for(;n.parentElement;)++e,n=n.parentElement;return e}function Ete(t){let e=t,n=0;for(;e;)e=e.parent,++n;return n}function Ate(t){const e=new Map,n=new Map;return cs(t,(i=>{i.props.node&&(e.set(i.props.node,i.id),kl(i.props.json.type)&&n.set(i.props.node,i))})),{map:e,simpleMap:n}}function Vs(t,e=2){return t===void 0?"":t.toFixed(e).replace(/(\.\d+?)0+$/,"$1").replace(/\.0$/,"")}function La(t,e,n){let i,o;return t.forEach((r=>{if(r.type===e.type){const s=Math.abs(r.val-e.val);s<=n&&(!o||o>s)&&(o=s,i=r)}})),i}function Ote(t){return t instanceof HTMLElement}class Mte{constructor(e){on(this,"params");on(this,"animItem");on(this,"wrapper");on(this,"alive");this.params=e,this.alive=!1}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"),r="Mid",s="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"?r="Min":i==="end"&&(r="Max"),o==="start"?s="Min":o==="end"&&(s="Max"),n==="fit"||n==="no_scale"?{attribute:`x${r}Y${s} meet`,noScale:!1,hAlign:i,vAlign:o}:{attribute:`x${r}Y${s} 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;this.alive=!0;const i=Array.from(e.children).filter(Ote);i.forEach((c=>{c.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 r=this.getRatio(n),s=this.getScale(n);r&&(this.wrapper.style.aspectRatio=String(r)),this.setWrapperScale(s),e.appendChild(this.wrapper);const l=Number(this.params.repeat_count||-1),a=()=>{var d,u;(d=this.animItem)==null||d.destroy(),i.forEach((p=>{p.style.display=""})),e.removeAttribute("data-lottie"),this.wrapper&&((u=this.wrapper.parentNode)==null||u.removeChild(this.wrapper),this.wrapper=void 0);const c=new Error("Failed to load lottie animation");c.level="error",c.additional={url:this.params.lottie_url},n.logError(c)};Promise.all([import("./lottieApi.js"),this.loadData()]).then((([{loadAnimation:c},d])=>{if(!this.alive)return;const u=this.animItem=c({container:o,animationData:d,renderer:"svg",loop:!0,rendererSettings:{preserveAspectRatio:s.attribute}});if(this.setSvgScale(s),this.animItem.addEventListener("data_failed",a),this.params.repeat_mode==="reverse"||l!==-1){let p=1,_=0;u.addEventListener("loopComplete",(()=>{++_,l!==-1&&_===l?(u.stop(),u.goToAndStop(u.totalFrames,!0)):(this.params.repeat_mode==="reverse"&&(p=p===-1?1:-1,u.setDirection(p)),u.goToAndPlay(p===1?0:u.totalFrames,!0))}))}})).catch(a)}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 r=this.getScale(n);this.setWrapperScale(r),this.setSvgScale(r),o.setAttribute("preserveAspectRatio",r.attribute)}}unmountView(e,n){var i,o;this.alive=!1,(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 pV(t){const e=[];if(t&&typeof t=="object")for(const n in t){const i=t[n];if(n.startsWith("$"))if(typeof i=="string")e.push(i);else throw new Error("Template field should be used as string");else i&&typeof i=="object"&&e.push(...pV(i))}return e}function Pte(t){if(!(t!=null&&t.templates&&typeof t.templates=="object"))return[];const e=new Map;for(const s in t.templates)if(s!=="__loc")try{const l=t.templates[s],a=pV(l);e.set(s,a)}catch(l){return[{message:l.message,stack:(l.stack||"").split(`\n`),level:"error"}]}const n=[],i=new Map,o=(s,l)=>{if(!l||!("type"in l)||typeof l.type!="string")throw new Error('Cannot process template without "type"');const a=e.get(s);if(!a)throw new Error("Wrong template");return l.type in t.templates?o(l.type,t.templates[l.type]).concat(a):a};for(const s in t.templates)if(s!=="__loc")try{const l=t.templates[s];i.set(s,o(s,l))}catch(l){return[{message:l.message,stack:(l.stack||"").split(`\n`),level:"error"}]}const r=(s,l)=>{const a=l.type,c=i.get(a);if(c)for(const d in l)d!=="type"&&(c.includes(d)?n.push({message:`Template "${s}" -> property "${d}": Transitive dependencies is not supported in DivKit for Android and iOS`,stack:[],level:"error"}):d.startsWith("$")&&c.includes(d.slice(1))&&n.push({message:`Template "${s}" -> property "${d.slice(1)}": Transitive dependencies is not supported in DivKit for Android and iOS`,stack:[],level:"error"}));for(const d in l)l[d]&&typeof l[d]=="object"&&r(s,l[d])};for(const s in t.templates){const l=t.templates[s];r(s,l)}return n}function ca(t,e){if(typeof t!=typeof e)return!1;if(typeof t!="object"||!t||!e)return t===e;for(const n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n)||!ca(t[n],e[n]))return!1;for(const n in e)if(e.hasOwnProperty(n)&&!t.hasOwnProperty(n))return!1;return!0}function vu(t){const e={};for(const n in t)n!=="start"&&n!=="end"&&(e[n]=t[n]);return e}function Ite(t,e){const n=vu(t),i=vu(e);return ca(n,i)}function Ls(t){if(t!==void 0)return JSON.parse(JSON.stringify(t))}function As(t,e){const n=e.split(/\.|\[([^\]]+)]/g);let i=t,o=0;for(;o<n.length;){const r=n[o];if(o+1===n.length)return i[r];if(!i[r])return;if(i=i[r],++o,n[o]!==void 0){const s=n[o];if(o+2===n.length)return i[s];if(!i[s])return;i=i[s],o+=3}else++o}}function jl(t,e,n){const i=e.split(/\.|\[([^\]]+)]/g),o=[];let r=t;const s=()=>{for(let a=o.length-1;a>=0;--a){const{obj:c,prop:d}=o[a],u=c[d];if(Array.isArray(u)&&!u.length)delete c[d];else if(typeof u=="object"&&u!==null&&!Object.keys(u).length)delete c[d];else break}};let l=0;for(;l<i.length;){const a=i[l];if(l+1===i.length)!n&&n!==0&&n!==!1?(Array.isArray(r)?r.splice(Number(i[l]),1):delete r[a],s()):r[a]=n,l===0&&r[a]!==void 0&&(r[a]=Ls(r[a])),++l;else if(r[a]=r[a]||(i[l+1]!==void 0?[]:{}),l===0&&r[a]!==void 0&&(r[a]=Ls(r[a])),o.push({obj:r,prop:i[l]}),r=r[a],++l,i[l]!==void 0){const c=i[l];if(l+2===i.length){n!==void 0?r[c]=n:(Array.isArray(r)?r.splice(Number(i[l]),1):delete r[c],s());break}else r[c]=r[c]||{},o.push({obj:r,prop:i[l]}),r=r[c],l+=3}else++l}}function Dte(t){const e=t.getBoundingClientRect(),n={top:e.top,right:e.right,bottom:e.bottom,left:e.left};let i=t.parentElement;for(;i&&i!==document.documentElement;){if(getComputedStyle(i).overflow!=="visible"){const r=i.getBoundingClientRect();n.left=Math.max(n.left,r.left),n.right=Math.min(n.right,r.right),n.top=Math.max(n.top,r.top),n.bottom=Math.min(n.bottom,r.bottom)}i=i.parentElement}return DOMRect.fromRect({x:n.left,y:n.top,width:n.right-n.left,height:n.bottom-n.top})}class hr{constructor(){on(this,"_ts");this._ts=Date.now()}canMerge(e){return e.constructor===this.constructor&&Math.abs(this._ts-e._ts)<1e4}}class da extends hr{constructor(n){super();on(this,"config");this.config=n}undo(n){const i=this.config.leaf.id,o=no($n(n.tree),i);o!=null&&o.parent&&(o.parent.childs=o.parent.childs.filter((r=>r.id!==i)))}redo(n){const i=no($n(n.tree),this.config.parentId);if(!i)return;const o=cd(this.config.leaf);o.parent=i,i.childs.splice(this.config.insertIndex,0,o)}canMerge(n){return!1}mergeMeWith(n){throw new Error("Cannot merge AddLeafCommand")}toLangKey(){return"commands.add_component"}}class Ul extends hr{constructor(n,i){super();on(this,"config");on(this,"changes");on(this,"cascadeRemoval");this.config=i,this.cascadeRemoval=[],i.changes&&(this.changes=i.changes.map((o=>{const r=no($n(n.tree),i.leafId);if(!r)throw new Error("Missing leaf "+i.leafId);return{leafId:i.leafId,property:o.property,oldValue:Ls(As(r.props.json,o.property)),newValue:Ls(o.value)}})))}undo(n){const i=$n(n.tree),o=no(i,this.config.newParentId);if(o){o.childs=o.childs.filter((r=>r.id!==this.config.leafId));for(let r=this.cascadeRemoval.length-1;r>=0;--r){const s=this.cascadeRemoval[r],l=no(i,s.parentId);if(l){const a=s.leaf;l.childs.splice(s.insertIndex,0,a),a.parent=l}}if(this.changes){const r=no(i,this.config.leafId);r&&this.changes.forEach((s=>{jl(r.props.json,s.property,s.oldValue)}))}}}redo(n){var l;const i=$n(n.tree),o=no(i,this.config.newParentId),r=no(i,this.config.leafId);if(!o||!r)return;const s=cd(r);this.cascadeRemoval=xu(i,this.config.leafId,((l=r.parent)==null?void 0:l.id)!==o.id),s.parent=o,o.childs.splice(this.config.insertIndex,0,s),this.changes&&this.changes.forEach((a=>{jl(s.props.json,a.property,a.newValue)}))}canMerge(n){return!1}mergeMeWith(n){throw new Error("Cannot merge MoveLeafCommand")}toLangKey(){return"commands.move_component"}}class ir extends hr{constructor(n,i){super();on(this,"changes");this.changes=i.map((o=>{const r=no(n,o.leafId);if(!r)throw new Error("Missing leaf "+o.leafId);return{leafId:o.leafId,property:o.property,oldValue:Ls(As(r.props.json,o.property)),newValue:Ls(o.value)}}))}undo(n){for(let i=this.changes.length-1;i>=0;--i){const o=this.changes[i],r=no($n(n.tree),o.leafId);if(!r)throw new Error("Missing leaf "+o.leafId);jl(r.props.json,o.property,o.oldValue),r===$n(n.selectedLeaf)&&n.selectedLeaf.set(r)}}redo(n){this.changes.forEach((i=>{const o=no($n(n.tree),i.leafId);if(!o)throw new Error("Missing leaf "+i.leafId);jl(o.props.json,i.property,i.newValue),o===$n(n.selectedLeaf)&&n.selectedLeaf.set(o)}))}canMerge(n){if(!super.canMerge(n))return!1;const i=n;return this.changes.length===1&&i.changes.length===1&&this.changes[0].leafId===i.changes[0].leafId&&this.changes[0].property===i.changes[0].property}mergeMeWith(n){const i=this.changes.concat(n.changes);let o=i[0];const r=[o];for(let s=1;s<i.length;++s){const l=i[s];o.leafId===l.leafId&&o.property===l.property?o.newValue=l.newValue:(o=l,r.push(o))}this.changes=r}toLangKey(){return"commands.set_property"}}function ls(t){return t/180*Math.PI}function Vte(t){const{type:e,value:n}=t;switch(e){case"number":case"integer":const i=Number(n);if(Number.isNaN(i))throw new Error("Value is NaN");if(e==="integer"&&i!==Math.floor(i))throw new Error("Integer cannot have fractional part");return i;case"dict":case"array":const o=JSON.parse(n);if(e==="array"&&!Array.isArray(o))throw new Error("Not an array");if(e==="dict"&&!(typeof o=="object"&&o&&!Array.isArray(o)))throw new Error("Not an object");return o;case"boolean":if(n==="true")return!0;if(n==="false")return!1;throw new Error("Not a boolean")}return n}const Lte="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20fill='none'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M8%2017.5a.5.5%200%200%201-.5-.5v-6a.5.5%200%200%201%201%200v2.5h11V11a.5.5%200%200%201%201%200v6a.5.5%200%200%201-1%200v-2.5h-11V17a.5.5%200%200%201-.5.5Z'%20clip-rule='evenodd'/%3e%3c/svg%3e",Fte="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20fill='none'%3e%3cpath%20stroke='%23fff'%20stroke-linecap='round'%20d='m10.5%2018.5-4.146-4.146a.5.5%200%200%201%200-.708L10.5%209.5m7%209%204.146-4.146a.5.5%200%200%200%200-.708L17.5%209.5M7%2014h14'/%3e%3c/svg%3e",Nte="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20fill='none'%3e%3cpath%20stroke='%23fff'%20stroke-linecap='round'%20d='M10%208H8a2%202%200%200%200-2%202v2m4%208H8a2%202%200%200%201-2-2v-2m12-8h2a2%202%200%200%201%202%202v2m-4%208h2a2%202%200%200%200%202-2v-2'/%3e%3crect%20width='9'%20height='5'%20x='9.5'%20y='11.5'%20stroke='%23fff'%20rx='.5'/%3e%3c/svg%3e",qte="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20fill='none'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M10.5%208a.5.5%200%200%201%20.5-.5h6a.5.5%200%200%201%200%201h-2.5v11H17a.5.5%200%200%201%200%201h-6a.5.5%200%200%201%200-1h2.5v-11H11a.5.5%200%200%201-.5-.5Z'%20clip-rule='evenodd'/%3e%3c/svg%3e",Rte="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20fill='none'%3e%3cpath%20stroke='%23fff'%20stroke-linecap='round'%20d='m9.5%2010.5%204.146-4.146a.5.5%200%200%201%20.708%200L18.5%2010.5m-9%207%204.146%204.146a.5.5%200%200%200%20.708%200L18.5%2017.5M14%207v14'/%3e%3c/svg%3e",Bte="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20fill='none'%3e%3cpath%20stroke='%23fff'%20stroke-linecap='round'%20d='M20%2010V8a2%202%200%200%200-2-2h-2m-8%204V8a2%202%200%200%201%202-2h2m8%2012v2a2%202%200%200%201-2%202h-2m-8-4v2a2%202%200%200%200%202%202h2'/%3e%3crect%20width='9'%20height='5'%20x='9.5'%20y='-16.5'%20stroke='%23fff'%20rx='.5'%20transform='rotate(90)'/%3e%3c/svg%3e",_V=new Set(["image","gif","text","separator","container","grid","gallery","pager","tabs","state","custom","indicator","slider","input","select","video","switch"]),Hte=new Set(["container","grid","gallery","pager","tabs","state","custom"]),nr=[{type:"group",title:"baseProps.title",list:[{type:"split",list:[{name:"props.width",prop:"width.type",default:"match_parent",type:"select",options:[{name:"props.size_fixed",value:"fixed",icon:Lte},{name:"props.size_match_parent",value:"match_parent",icon:Fte},{name:"props.size_wrap_content",value:"wrap_content",icon:Nte,show:{not:{or:[{prop:"type",equal:"image"},{prop:"type",equal:"gif"}]}}}],siblings:[{prop:"width.value",type:"integer",min:0,max:9999,inlineLabel:"W",show:{prop:"width.type",equal:"fixed"}},{label:"props.size_constrained",prop:"width.constrained",type:"boolean",theme:"sibling",related:[{prop:"width.type",value:"wrap_content"}],show:{prop:"width.type",equal:"wrap_content"}},{type:"integer",min:0,max:9999,sizeValue:"width",enabled:!1,inlineLabel:"W",show:{or:[{prop:"width.type",equal:"match_parent"},{prop:"width",isEmpty:!0}]}},{name:"props.column_span",prop:"column_span",type:"integer",min:1,max:1e3,show:{prop:"$parent.type",equal:"grid"},enableSources:!0}]},{name:"props.height",prop:"height.type",default:"wrap_content",type:"select",options:[{name:"props.size_fixed",value:"fixed",icon:qte},{name:"props.size_match_parent",value:"match_parent",icon:Rte},{name:"props.size_wrap_content",value:"wrap_content",icon:Bte,show:{not:{or:[{prop:"type",equal:"image"},{prop:"type",equal:"gif"}]}}}],siblings:[{prop:"height.value",type:"integer",min:0,max:9999,inlineLabel:"H",show:{prop:"height.type",equal:"fixed"}},{label:"props.size_constrained",prop:"height.constrained",type:"boolean",theme:"sibling",related:[{prop:"height.type",value:"wrap_content"}],show:{or:[{prop:"height.type",equal:"wrap_content"},{prop:"height.type",isEmpty:!0}]}},{type:"integer",min:0,max:9999,sizeValue:"height",enabled:!1,inlineLabel:"H",show:{prop:"height.type",equal:"match_parent"}},{name:"props.row_span",prop:"row_span",type:"integer",min:1,max:1e3,show:{prop:"$parent.type",equal:"grid"},enableSources:!0}]}]},{type:"alignment",name:"props.alignment",horizontalProp:"alignment_horizontal",verticalProp:"alignment_vertical",isSelfAlign:!0},{type:"split",list:[{name:"props.alpha",prop:"alpha",type:"percent",default:1,enableSources:!0},{name:"props.rotation",prop:"transform.rotation",type:"rotation",default:0,enableSources:!0}]},{name:"props.insets",type:"margins-paddings"},{name:"props.background",prop:"background",type:"background2"}]}],Ute={text:[...nr,{type:"group",title:"textProps.title",list:[{name:"props.text",prop:"text",type:"string",enableTanker:!0,enableSources:!0,default:"\0"},{type:"split",list:[{name:"props.font_size",prop:"font_size",type:"integer",min:1,max:1e3,enableSources:!0},{name:"props.line_height",prop:"line_height",type:"integer",min:0,max:1e3,enableSources:!0}]},{type:"split",list:[{name:"props.text_alignment_horizontal",prop:"text_alignment_horizontal",type:"text-align",enableSources:!0},{name:"textStyle",type:"text-styles"}]},{name:"props.font_weight",prop:"font_weight",type:"select",options:[{name:"props.font_weight_light",value:"light"},{name:"props.font_weight_normal",value:"regular"},{name:"props.font_weight_medium",value:"medium"},{name:"props.font_weight_bold",value:"bold"}],enableSources:!0},{name:"props.font_family",prop:"font_family",type:"select-font-family",show:{prop:"$fontFamily",equal:"yes"},enableSources:!0},{name:"props.text_color",prop:"text_color",type:"color",enableSources:!0}]},{type:"group",title:"props.actions",list:[{name:"props.actions",prop:"actions",type:"actions2",aloneProp:"action"}]}],image:[...nr,{type:"group",title:"imageProps.title",list:[{name:"props.image_url",prop:"image_url",type:"file",subtype:"image",enableSources:!0},{name:"props.preview",prop:"preview",type:"file",subtype:"image_preview",enableSources:!0},{name:"props.image_scale",prop:"scale",type:"select",default:"fill",options:[{name:"props.scale_fit",value:"fit"},{name:"props.scale_fill",value:"fill"},{name:"props.scale_no_scale",value:"no_scale"},{name:"props.scale_stretch",value:"stretch"}],enableSources:!0},{name:"props.image_alignment",type:"alignment",horizontalProp:"content_alignment_horizontal",verticalProp:"content_alignment_vertical",enableSources:!0}]}],gif:[...nr,{type:"group",title:"imageProps.title",list:[{name:"props.image_url",prop:"gif_url",type:"file",subtype:"image",enableSources:!0},{name:"props.preview",prop:"preview",type:"file",subtype:"image_preview",enableSources:!0},{name:"props.image_scale",prop:"scale",type:"select",default:"fill",options:[{name:"props.scale_fit",value:"fit"},{name:"props.scale_fill",value:"fill"},{name:"props.scale_no_scale",value:"no_scale"},{name:"props.scale_stretch",value:"stretch"}],enableSources:!0},{name:"props.image_alignment",type:"alignment",horizontalProp:"content_alignment_horizontal",verticalProp:"content_alignment_vertical",enableSources:!0}]}],video:[...nr,{type:"group",title:"videoProps.title",list:[{name:"props.video_sources",prop:"video_sources",type:"video_sources"},{name:"props.preview",prop:"preview",type:"file",generateFromVideoProperty:"video_sources",subtype:"image_preview",enableSources:!0},{name:"props.image_scale",prop:"scale",type:"select",default:"fit",options:[{name:"props.scale_fit",value:"fit"},{name:"props.scale_fill",value:"fill"},{name:"props.scale_no_scale",value:"no_scale"}],enableSources:!0},{name:"props.video_repeatable",prop:"repeatable",type:"boolean",enableSources:!0},{name:"props.video_autostart",prop:"autostart",type:"boolean",enableSources:!0},{name:"props.video_muted",prop:"muted",type:"boolean",enableSources:!0}]}],container:[...nr,{type:"group",title:"containerProps.title",list:[{name:"props.orientation",prop:"orientation",type:"select",default:"vertical",options:[{name:"props.orientation_horizontal",value:"horizontal"},{name:"props.orientation_vertical",value:"vertical"},{name:"props.orientation_overlap",value:"overlap"}],enableSources:!0},{name:"props.content_alignment",type:"alignment",horizontalProp:"content_alignment_horizontal",verticalProp:"content_alignment_vertical",orientationProp:"orientation",isContent:!0}]}],grid:[...nr,{type:"group",title:"gridProps.title",list:[{name:"props.column_count",prop:"column_count",type:"integer",min:1,max:1e3,enableSources:!0},{name:"props.content_alignment",type:"alignment",horizontalProp:"content_alignment_horizontal",verticalProp:"content_alignment_vertical",orientationProp:"orientation",isContent:!0}]}],gallery:[...nr,{type:"group",title:"galleryProps.title",list:[{name:"props.orientation",prop:"orientation",type:"select",default:"horizontal",options:[{name:"props.orientation_horizontal",value:"horizontal"},{name:"props.orientation_vertical",value:"vertical"}],enableSources:!0},{name:"props.cross_content_alignment",prop:"cross_content_alignment",type:"select",options:[{name:"props.orientation_start",value:"start"},{name:"props.orientation_center",value:"center"},{name:"props.orientation_end",value:"end"}],enableSources:!0},{type:"integer",prop:"item_spacing",min:0,max:9999,name:"props.spacing",enableSources:!0}]}],separator:[...nr,{type:"group",title:"separatorProps.title",list:[{name:"props.orientation",prop:"delimiter_style.orientation",type:"select",default:"horizontal",options:[{name:"props.orientation_horizontal",value:"horizontal"},{name:"props.orientation_vertical",value:"vertical"}],enableSources:!0},{name:"props.separator_color",prop:"delimiter_style.color",type:"color",default:"#000",enableSources:!0}]}],input:[...nr,{type:"group",title:"a11yProps.title",list:[{name:"props.a11y_description",prop:"accessibility.description",type:"string",enableSources:!0}]},{type:"group",title:"inputProps.title",list:[{name:"props.text_variable",prop:"text_variable",type:"variable-name",required:!0},{name:"props.keyboard_type",prop:"keyboard_type",type:"select",default:"multi_line_text",options:[{name:"props.keyboard_single_line_text",value:"single_line_text"},{name:"props.keyboard_multi_line_text",value:"multi_line_text"},{name:"props.keyboard_phone",value:"phone"},{name:"props.keyboard_number",value:"number"},{name:"props.keyboard_email",value:"email"},{name:"props.keyboard_uri",value:"uri"},{name:"props.keyboard_password",value:"password"}],enableSources:!0},{name:"props.max_length",type:"integer",min:0,max:99999,enableSources:!0},{type:"split",list:[{name:"props.font_size",prop:"font_size",type:"integer",min:1,max:1e3,enableSources:!0},{name:"props.line_height",prop:"line_height",type:"integer",min:0,max:1e3,enableSources:!0}]},{name:"props.text_color",prop:"text_color",type:"color",enableSources:!0},{name:"props.hint_text",prop:"hint_text",type:"string",enableSources:!0}]}],select:[...nr,{type:"group",title:"a11yProps.title",list:[{name:"props.a11y_description",prop:"accessibility.description",type:"string",enableSources:!0}]},{type:"group",title:"selectProps.title",list:[{name:"props.select_options",prop:"options",type:"select-options"},{name:"props.text_variable",prop:"value_variable",type:"variable-name",required:!0},{type:"split",list:[{name:"props.font_size",prop:"font_size",type:"integer",min:1,max:1e3,enableSources:!0},{name:"props.line_height",prop:"line_height",type:"integer",min:0,max:1e3,enableSources:!0}]},{name:"props.text_color",prop:"text_color",type:"color",enableSources:!0},{name:"props.hint_text",prop:"hint_text",type:"string",enableSources:!0}]}],switch:[...nr,{type:"group",title:"a11yProps.title",list:[{name:"props.a11y_description",prop:"accessibility.description",type:"string",enableSources:!0}]},{type:"group",title:"switchProps.title",list:[{name:"props.text_variable",prop:"is_on_variable",type:"variable-name",required:!0},{name:"props.is_enabled",prop:"is_enabled",type:"boolean",default:!0,enableSources:!0},{name:"props.on_color",prop:"on_color",type:"color",enableSources:!0}]}]},Jte=[{name:"props.background",prop:"background",type:"background2"}];function Wte(t,e){const n=new Map;let i=e,o;const r=new Set,s=new Set,l=t.getBaseType(i);if(!l)return[];for(;;){if(r.has(i))return[];if(r.add(i),o=t.userTemplates.get(i),!o)break;if(i!==e&&i!==l)for(const p in o)p!=="type"&&s.add(p);const c=$l(l);if(!c)break;const d=cr(c.default),u=(p,_,f)=>{var m,h,v;if(typeof p=="object"&&p)for(const y in p){let b;const w=y.startsWith("$")?y.slice(1):y;if(_!=null&&_.properties&&w in _.properties?b=_.properties[w]:_!=null&&_.allOf?b=(m=cr(_).properties)==null?void 0:m[w]:_!=null&&_.anyOf&&"type"in p&&(b=(v=(h=_.anyOf.find((E=>{var T,j,A;return((A=(j=(T=E.properties)==null?void 0:T.type)==null?void 0:j.enum)==null?void 0:A[0])===p.type})))==null?void 0:h.properties)==null?void 0:v[w]),!b)return;const k=p[y];if(b&&f&&y.startsWith("$")&&typeof k=="string"){const E=Cte(_,b);E&&n.set(k,E)}if(Array.isArray(k)){const E=(b==null?void 0:b.type)==="array"&&b.items&&Ds(_,b.items);k.forEach((T=>{let j=f,A=E;if(E!=null&&E.__isDiv){if(j=t.getBaseType(T.type),!j)return;const O=$l(j);if(!O)return;A=cr(O.default)}u(T,A,j)}))}else u(k,b,f)}};if(u(o,d,l),typeof o.type!="string")break;i=o.type}for(const c in s)n.delete(c);const a=[];for(const[c,d]of n)a.push({templatePropertyName:c,editor:d});return a}function Ad(t,e){const n=i=>{if(!(typeof i=="object"&&i))return i;const o=Array.isArray(i)?[]:{};for(const r in i){const s=r.startsWith("$"),l=s?r.slice(1):r,a=s?e.get(i[r]):i[r];o[l]=s?a:n(a)}return o};return n(t)}function fV(t,e){const n=[],i=[];let o;const r=t.getBaseType(e.type);if(!r||!Hte.has(r))return{childs:n,infos:i};const s=new Map,l=new Map;for(const m in e)e[m]&&typeof e[m]=="object"&&l.set(e[m],m);let a=e.type,c=e;const d=new Set;for(;;){if(d.has(a))return{childs:n,infos:i};if(d.add(a),r!==a)for(const m in c)m!=="type"&&s.set(m,c[m]);if(!t.userTemplates.has(a))break;c=t.userTemplates.get(a),a=c.type}if(!_V.has(a))return{childs:n,infos:i};const u=$l(r);if(!u)return{childs:n,infos:i};const p=cr(u.default),_=(m,h,v,y)=>{if(typeof m=="object"&&m)for(const b in m){let w;const k=b.startsWith("$"),E=k?b.slice(1):b;h!=null&&h.properties&&E in h.properties&&(w=h.properties[E]);const T=k?s.get(m[b]):m[b],j=y||l.get(T)||"";if(w){if(w!=null&&w.__isDiv){T&&j&&(n.push(Ad(T,s)),i.push(Ad(m,s)),o=j);continue}if(Array.isArray(T)){const A=(w==null?void 0:w.type)==="array"&&w.items&&Ds(h,w.items);T.forEach((O=>{let M=v,D=A;if(A!=null&&A.__isDiv&&j)n.push(Ad(O,s)),i.push(null),o=j;else{if(A!=null&&A.__isDiv&&(M=t.getBaseType(O.type),M)){const R=$l(M);R&&(D=cr(R.default))}M&&_(O,D,M,j)}}))}else _(T,w,v,j)}}},f={...c};for(const[m,h]of s)f[m]=h;return _(f,p,r,""),{childs:n,infos:i,fromDataField:o}}function Qu(t,e){if(!t.userTemplates.has(e.type))return!1;const n=fV(t,e);return!n.fromDataField&&!n.childs.length}function Od(t){const e=Array.from(t.children),n=[],i=[],o=[],r=[],s=t.getBoundingClientRect(),l=getComputedStyle(t),a=parseFloat(l.paddingLeft),c=parseFloat(l.paddingTop);e.forEach(((f,m)=>{const h=f.getBoundingClientRect(),v=getComputedStyle(f),y=Number(v.gridColumnStart)-1,b=Number(v.gridRowStart)-1,w=v.gridColumnEnd.startsWith("span ")?Number(v.gridColumnEnd.split(" ")[1]):1,k=v.gridRowEnd.startsWith("span ")?Number(v.gridRowEnd.split(" ")[1]):1,E=parseFloat(v.marginLeft),T=parseFloat(v.marginTop);let j=h.width+E+parseFloat(v.marginRight),A=h.height+T+parseFloat(v.marginBottom);if(m===0&&(j+=h.left-s.left-E-a,A+=h.top-s.top-T-c),w===1)n[y]=Math.max(n[y]||0,j);else for(let O=0;O<w;++O)o[y+O]=j/w;if(k===1)i[b]=Math.max(i[b]||0,A);else for(let O=0;O<k;++O)r[b+O]=A/k}));const d=Math.max(n.length,o.length),u=Math.max(i.length,r.length);for(let f=0;f<d;++f)!n[f]&&o[f]&&(n[f]=o[f]);for(let f=0;f<u;++f)!i[f]&&r[f]&&(i[f]=r[f]);const p=n.reduce(((f,m)=>(f.push((f[f.length-1]||0)+m),f)),[0]),_=i.reduce(((f,m)=>(f.push((f[f.length-1]||0)+m),f)),[0]);return{columnsStart:p,rowsStart:_,columns:n,rows:i,columnsCount:d,rowsCount:u}}function Gm(t){const e=getComputedStyle(t),n=Number(e.gridColumnStart)-1,i=Number(e.gridRowStart)-1,o=e.gridColumnEnd.startsWith("span ")?Number(e.gridColumnEnd.split(" ")[1]):1,r=e.gridRowEnd.startsWith("span ")?Number(e.gridRowEnd.split(" ")[1]):1;return{columnStart:n,columnSpan:o,rowStart:i,rowSpan:r}}function Fa(t){return t.reduce(((e,n,i)=>(e.push((i>0?e[i-1]:0)+n),e)),[])}function Xm(t){return t.reduce(((e,n)=>e+n),0)}function Kte(t){if(!t||!t.startsWith("matrix("))return 0;const e=t.slice(7).split(",");let n=Math.acos(Number(e[0]));return Number(e[1])<0&&(n=Math.PI*2-n),n}function Yte(t,e,n){const i=t/2,o=e/2,r=Math.tan(-n),s=r*i,l=o/r;return Math.abs(s)<=o+1e-6?{from:{x:0,y:o-s},to:{x:t,y:o+s}}:{from:{x:i+l,y:e},to:{x:i-l,y:0}}}const{Map:Gte,window:Xte}=va;function Zm(t,e,n){const i=t.slice();return i[124]=e[n],i}function xm(t,e,n){const i=t.slice();return i[127]=e[n],i}function Qm(t,e,n){const i=t.slice();return i[130]=e[n],i[132]=n,i}function eg(t,e,n){const i=t.slice();return i[133]=e[n],i[132]=n,i}function tg(t,e,n){const i=t.slice();return i[135]=e[n],i}function ng(t){let e,n=`${t[6]}px`;return{c(){e=S("div"),g(e,"class","renderer__snap renderer__snap_vertical svelte-1yftjo9"),je(e,"left",n)},m(i,o){N(i,e,o)},p(i,o){o[0]&64&&n!==(n=`${i[6]}px`)&&je(e,"left",n)},d(i){i&&F(e)}}}function ig(t){let e,n=`${t[7]}px`;return{c(){e=S("div"),g(e,"class","renderer__snap renderer__snap_horizontal svelte-1yftjo9"),je(e,"top",n)},m(i,o){N(i,e,o)},p(i,o){o[0]&128&&n!==(n=`${i[7]}px`)&&je(e,"top",n)},d(i){i&&F(e)}}}function og(t){let e,n=`${t[1].target.top}px`,i=`${t[1].target.left}px`,o=`${t[1].target.width}px`,r=`${t[1].target.height}px`,s,l,a=`${t[1].parent.top}px`,c=`${t[1].parent.left}px`,d=`${t[1].parent.width}px`,u=`${t[1].parent.height}px`,p,_,f=t[1].target.visibleText&&rg(t),m=an(t[1].childs),h=[];for(let v=0;v<m.length;v+=1)h[v]=sg(tg(t,m,v));return{c(){e=S("div"),f&&f.c(),s=X(),l=S("div"),p=X();for(let v=0;v<h.length;v+=1)h[v].c();_=Dn(),g(e,"class","renderer__drag-target svelte-1yftjo9"),je(e,"top",n),je(e,"left",i),je(e,"width",o),je(e,"height",r),g(l,"class","renderer__drag-target-parent svelte-1yftjo9"),je(l,"top",a),je(l,"left",c),je(l,"width",d),je(l,"height",u)},m(v,y){N(v,e,y),f&&f.m(e,null),N(v,s,y),N(v,l,y),N(v,p,y);for(let b=0;b<h.length;b+=1)h[b]&&h[b].m(v,y);N(v,_,y)},p(v,y){if(v[1].target.visibleText?f?f.p(v,y):(f=rg(v),f.c(),f.m(e,null)):f&&(f.d(1),f=null),y[0]&2&&n!==(n=`${v[1].target.top}px`)&&je(e,"top",n),y[0]&2&&i!==(i=`${v[1].target.left}px`)&&je(e,"left",i),y[0]&2&&o!==(o=`${v[1].target.width}px`)&&je(e,"width",o),y[0]&2&&r!==(r=`${v[1].target.height}px`)&&je(e,"height",r),y[0]&2&&a!==(a=`${v[1].parent.top}px`)&&je(l,"top",a),y[0]&2&&c!==(c=`${v[1].parent.left}px`)&&je(l,"left",c),y[0]&2&&d!==(d=`${v[1].parent.width}px`)&&je(l,"width",d),y[0]&2&&u!==(u=`${v[1].parent.height}px`)&&je(l,"height",u),y[0]&2){m=an(v[1].childs);let b;for(b=0;b<m.length;b+=1){const w=tg(v,m,b);h[b]?h[b].p(w,y):(h[b]=sg(w),h[b].c(),h[b].m(_.parentNode,_))}for(;b<h.length;b+=1)h[b].d(1);h.length=m.length}},d(v){v&&(F(e),F(s),F(l),F(p),F(_)),f&&f.d(),Bi(h,v)}}}function rg(t){let e,n=t[1].target.visibleText+"",i;return{c(){e=S("div"),i=Ze(n),g(e,"class","renderer__drag-target-text svelte-1yftjo9")},m(o,r){N(o,e,r),$(e,i)},p(o,r){r[0]&2&&n!==(n=o[1].target.visibleText+"")&<(i,n)},d(o){o&&F(e)}}}function sg(t){let e,n=`${t[135].top}px`,i=`${t[135].left}px`,o=`${t[135].width}px`,r=`${t[135].height}px`;return{c(){e=S("div"),g(e,"class","renderer__drag-target-child svelte-1yftjo9"),je(e,"top",n),je(e,"left",i),je(e,"width",o),je(e,"height",r)},m(s,l){N(s,e,l)},p(s,l){l[0]&2&&n!==(n=`${s[135].top}px`)&&je(e,"top",n),l[0]&2&&i!==(i=`${s[135].left}px`)&&je(e,"left",i),l[0]&2&&o!==(o=`${s[135].width}px`)&&je(e,"width",o),l[0]&2&&r!==(r=`${s[135].height}px`)&&je(e,"height",r)},d(s){s&&F(e)}}}function lg(t){let e=[],n=new Gte,i,o=an(t[11]);const r=s=>s[127].elem;for(let s=0;s<o.length;s+=1){let l=xm(t,o,s),a=r(l);n.set(a,e[s]=bg(a,l))}return{c(){for(let s=0;s<e.length;s+=1)e[s].c();i=Dn()},m(s,l){for(let a=0;a<e.length;a+=1)e[a]&&e[a].m(s,l);N(s,i,l)},p(s,l){l[0]&51984|l[1]&69120&&(o=an(s[11]),e=Hs(e,l,r,1,s,o,n,i.parentNode,cL,bg,i,xm))},d(s){s&&F(i);for(let l=0;l<e.length;l+=1)e[l].d(s)}}}function ag(t){let e,n,i,o,r,s,l,a,c=`${-t[127].margins.top}px`,d=`${-t[127].margins.left}px`;return{c(){e=Vr("svg"),n=Vr("defs"),i=Vr("pattern"),o=Vr("line"),r=Vr("path"),je(o,"stroke","var(--accent-purple)"),g(o,"stroke-width","2px"),g(o,"y2","10"),g(i,"id","pattern"),g(i,"width","6"),g(i,"height","10"),g(i,"patternUnits","userSpaceOnUse"),g(i,"patternTransform","rotate(45 50 50)"),g(r,"fill","url(#pattern)"),g(r,"d",s=t[127].insets),g(r,"stroke-width","1"),je(r,"stroke","var(--accent-purple)"),g(e,"class","renderer__highlight-insets svelte-1yftjo9"),g(e,"xmlns","http://www.w3.org/2000/svg"),g(e,"width",l=t[127].widthNum+t[127].margins.left+t[127].margins.right),g(e,"height",a=t[127].heightNum+t[127].margins.top+t[127].margins.bottom),je(e,"top",c),je(e,"left",d)},m(u,p){N(u,e,p),$(e,n),$(n,i),$(i,o),$(e,r)},p(u,p){p[0]&2048&&s!==(s=u[127].insets)&&g(r,"d",s),p[0]&2048&&l!==(l=u[127].widthNum+u[127].margins.left+u[127].margins.right)&&g(e,"width",l),p[0]&2048&&a!==(a=u[127].heightNum+u[127].margins.top+u[127].margins.bottom)&&g(e,"height",a),p[0]&2048&&c!==(c=`${-u[127].margins.top}px`)&&je(e,"top",c),p[0]&2048&&d!==(d=`${-u[127].margins.left}px`)&&je(e,"left",d)},d(u){u&&F(e)}}}function cg(t){let e,n,i=an(t[127].grid.columns),o=[];for(let l=0;l<i.length;l+=1)o[l]=dg(eg(t,i,l));let r=an(t[127].grid.rows),s=[];for(let l=0;l<r.length;l+=1)s[l]=ug(Qm(t,r,l));return{c(){e=S("div");for(let l=0;l<o.length;l+=1)o[l].c();n=X();for(let l=0;l<s.length;l+=1)s[l].c();g(e,"class","renderer__highlight-grid svelte-1yftjo9"),te(e,"renderer__highlight-grid_permanent",t[127].permanent)},m(l,a){N(l,e,a);for(let c=0;c<o.length;c+=1)o[c]&&o[c].m(e,null);$(e,n);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(e,null)},p(l,a){if(a[0]&2048|a[1]&1024){i=an(l[127].grid.columns);let c;for(c=0;c<i.length;c+=1){const d=eg(l,i,c);o[c]?o[c].p(d,a):(o[c]=dg(d),o[c].c(),o[c].m(e,n))}for(;c<o.length;c+=1)o[c].d(1);o.length=i.length}if(a[0]&2048|a[1]&1024){r=an(l[127].grid.rows);let c;for(c=0;c<r.length;c+=1){const d=Qm(l,r,c);s[c]?s[c].p(d,a):(s[c]=ug(d),s[c].c(),s[c].m(e,null))}for(;c<s.length;c+=1)s[c].d(1);s.length=r.length}a[0]&2048&&te(e,"renderer__highlight-grid_permanent",l[127].permanent)},d(l){l&&F(e),Bi(o,l),Bi(s,l)}}}function dg(t){let e,n=`${t[127].paddings.left+t[133]}px`,i,o;function r(...s){return t[73](t[132],...s)}return{c(){e=S("div"),g(e,"class","renderer__highlight-grid-column svelte-1yftjo9"),je(e,"left",n)},m(s,l){N(s,e,l),i||(o=ee(e,"pointerdown",Eo(zi(r))),i=!0)},p(s,l){t=s,l[0]&2048&&n!==(n=`${t[127].paddings.left+t[133]}px`)&&je(e,"left",n)},d(s){s&&F(e),i=!1,o()}}}function ug(t){let e,n=`${t[127].paddings.top+t[130]}px`,i,o;function r(...s){return t[74](t[132],...s)}return{c(){e=S("div"),g(e,"class","renderer__highlight-grid-row svelte-1yftjo9"),je(e,"top",n)},m(s,l){N(s,e,l),i||(o=ee(e,"pointerdown",Eo(zi(r))),i=!0)},p(s,l){t=s,l[0]&2048&&n!==(n=`${t[127].paddings.top+t[130]}px`)&&je(e,"top",n)},d(s){s&&F(e),i=!1,o()}}}function pg(t){let e,n,i,o,r,s=`${-t[127].margins.top}px`,l=`${-t[127].margins.left}px`;return{c(){e=Vr("svg"),n=Vr("path"),g(n,"d",i=t[127].gradientAngle),g(n,"stroke-width","3"),g(n,"stroke-dasharray","12 12"),je(n,"stroke","var(--accent-purple)"),g(e,"class","renderer__highlight-gradient-angle svelte-1yftjo9"),g(e,"xmlns","http://www.w3.org/2000/svg"),g(e,"width",o=t[127].widthNum+t[127].margins.left+t[127].margins.right),g(e,"height",r=t[127].heightNum+t[127].margins.top+t[127].margins.bottom),je(e,"top",s),je(e,"left",l)},m(a,c){N(a,e,c),$(e,n)},p(a,c){c[0]&2048&&i!==(i=a[127].gradientAngle)&&g(n,"d",i),c[0]&2048&&o!==(o=a[127].widthNum+a[127].margins.left+a[127].margins.right)&&g(e,"width",o),c[0]&2048&&r!==(r=a[127].heightNum+a[127].margins.top+a[127].margins.bottom)&&g(e,"height",r),c[0]&2048&&s!==(s=`${-a[127].margins.top}px`)&&je(e,"top",s),c[0]&2048&&l!==(l=`${-a[127].margins.left}px`)&&je(e,"left",l)},d(a){a&&F(e)}}}function _g(t){let e,n,i,o,r,s,l;return{c(){e=S("div"),n=X(),i=S("div"),o=X(),r=S("div"),g(e,"class","renderer__highlight-border-bottom-right svelte-1yftjo9"),g(i,"class","renderer__highlight-border-right svelte-1yftjo9"),g(r,"class","renderer__highlight-border-bottom svelte-1yftjo9")},m(a,c){N(a,e,c),N(a,n,c),N(a,i,c),N(a,o,c),N(a,r,c),s||(l=[ee(e,"pointerdown",Eo(zi(t[75]))),ee(i,"pointerdown",Eo(zi(t[76]))),ee(r,"pointerdown",Eo(zi(t[77])))],s=!0)},p:tn,d(a){a&&(F(e),F(n),F(i),F(o),F(r)),s=!1,qn(l)}}}function fg(t){let e,n,i;return{c(){e=S("div"),g(e,"class","renderer__highlight-border-rotate svelte-1yftjo9")},m(o,r){N(o,e,r),n||(i=ee(e,"pointerdown",Eo(zi(t[42]))),n=!0)},p:tn,d(o){o&&F(e),n=!1,i()}}}function mg(t){let e,n,i,o,r,s=`${-t[4]}deg`,l,a,c=Math.round(t[4])+"",d,u,p=`${54*Math.cos(ls(270-t[4]/2))}px`,_=`${54*Math.sin(ls(270-t[4]/2))}px`,f=`${-t[4]}deg`,m,h,v,y;return{c(){e=S("div"),n=X(),i=S("div"),o=X(),r=S("div"),l=X(),a=S("div"),d=Ze(c),u=Ze("°"),m=X(),h=Vr("svg"),v=Vr("path"),g(e,"class","renderer__highlight-rotate-center svelte-1yftjo9"),g(i,"class","renderer__highlight-rotate-axis svelte-1yftjo9"),g(r,"class","renderer__highlight-rotate-axis renderer__highlight-rotate-axis_vertical svelte-1yftjo9"),je(r,"--rotation",s),g(a,"class","renderer__highlight-rotate-angle svelte-1yftjo9"),je(a,"--offset-x",p),je(a,"--offset-y",_),je(a,"--rotation",f),g(v,"d",y="M 32 8 A 24 24 0 "+(t[4]>=180?1:0)+" 0 "+(32+24*Math.cos(ls(-t[4]-90)))+" "+(32+24*Math.sin(ls(-t[4]-90)))),g(v,"class","renderer__highlight-rotate-arc svelte-1yftjo9"),g(v,"stroke-width","3"),g(v,"stroke-linecap","round"),g(v,"fill","none"),g(h,"class","renderer__highlight-rotate-arc-wrapper svelte-1yftjo9"),g(h,"xmlns","http://www.w3.org/2000/svg"),g(h,"viewBox","0 0 64 64")},m(b,w){N(b,e,w),N(b,n,w),N(b,i,w),N(b,o,w),N(b,r,w),N(b,l,w),N(b,a,w),$(a,d),$(a,u),N(b,m,w),N(b,h,w),$(h,v)},p(b,w){w[0]&16&&s!==(s=`${-b[4]}deg`)&&je(r,"--rotation",s),w[0]&16&&c!==(c=Math.round(b[4])+"")&<(d,c),w[0]&16&&p!==(p=`${54*Math.cos(ls(270-b[4]/2))}px`)&&je(a,"--offset-x",p),w[0]&16&&_!==(_=`${54*Math.sin(ls(270-b[4]/2))}px`)&&je(a,"--offset-y",_),w[0]&16&&f!==(f=`${-b[4]}deg`)&&je(a,"--rotation",f),w[0]&16&&y!==(y="M 32 8 A 24 24 0 "+(b[4]>=180?1:0)+" 0 "+(32+24*Math.cos(ls(-b[4]-90)))+" "+(32+24*Math.sin(ls(-b[4]-90))))&&g(v,"d",y)},d(b){b&&(F(e),F(n),F(i),F(o),F(r),F(l),F(a),F(m),F(h))}}}function gg(t){let e,n=t[127].visibleText+"",i;return{c(){e=S("div"),i=Ze(n),g(e,"class","renderer__highlight-text svelte-1yftjo9")},m(o,r){N(o,e,r),$(e,i)},p(o,r){r[0]&2048&&n!==(n=o[127].visibleText+"")&<(i,n)},d(o){o&&F(e)}}}function hg(t){let e,n,i,o,r=t[14](`file.${t[127].emptyFileType}_upload`)+"",s,l=`${-t[127].rotation}deg`,a,c;return{c(){e=S("button"),n=S("div"),i=X(),o=S("div"),s=Ze(r),g(n,"class","renderer__upload-file-icon svelte-1yftjo9"),g(o,"class","renderer__upload-file-text svelte-1yftjo9"),g(e,"class","renderer__upload-file svelte-1yftjo9"),te(e,"renderer__upload-file_big",t[127].widthNum>=220),je(e,"--rotation",l)},m(d,u){N(d,e,u),$(e,n),$(e,i),$(e,o),$(o,s),a||(c=ee(e,"click",t[47]),a=!0)},p(d,u){u[0]&18432&&r!==(r=d[14](`file.${d[127].emptyFileType}_upload`)+"")&<(s,r),u[0]&2048&&te(e,"renderer__upload-file_big",d[127].widthNum>=220),u[0]&2048&&l!==(l=`${-d[127].rotation}deg`)&&je(e,"--rotation",l)},d(d){d&&F(e),a=!1,c()}}}function vg(t){let e,n=t[127].width+"",i,o,r=t[127].height+"",s,l,a=`${t[127].left+t[127].margins.left+t[127].widthNum/2-t[8]}px`,c=`${t[127].top+t[127].margins.top+t[127].heightNum-t[9]}px`;return{c(){e=S("div"),i=Ze(n),o=Ze("x"),s=Ze(r),l=X(),g(e,"class","renderer__highlight-info svelte-1yftjo9"),je(e,"left",a),je(e,"top",c)},m(d,u){N(d,e,u),$(e,i),$(e,o),$(e,s),$(e,l)},p(d,u){u[0]&2048&&n!==(n=d[127].width+"")&<(i,n),u[0]&2048&&r!==(r=d[127].height+"")&<(s,r),u[0]&2304&&a!==(a=`${d[127].left+d[127].margins.left+d[127].widthNum/2-d[8]}px`)&&je(e,"left",a),u[0]&2560&&c!==(c=`${d[127].top+d[127].margins.top+d[127].heightNum-d[9]}px`)&&je(e,"top",c)},d(d){d&&F(e)}}}function bg(t,e){let n,i,o,r,s,l,a,c,d,u,p=`rotate(${e[127].rotation}deg)`,_=`${e[127].left+e[127].margins.left}px`,f=`${e[127].top+e[127].margins.top}px`,m=`${e[127].widthNum}px`,h=`${e[127].heightNum}px`,v=`${-e[9]}px`,y=`${-e[8]}px`,b,w,k=e[127].insets&&ag(e),E=e[127].grid&&!e[127].insets&&!e[15]&&cg(e),T=e[127].gradientAngle&&pg(e),j=e[127].permanent&&!e[127].isRoot&&!e[127].insets&&!e[15]&&_g(e),A=(e[127].permanent||e[127].isRotate)&&!e[127].isRoot&&!e[127].insets&&!e[15]&&fg(e),O=e[127].isRotate&&mg(e),M=e[127].visibleText&&gg(e),D=e[127].emptyFileType&&!e[15]&&hg(e),R=(e[127].permanent&&!e[127].insets||e[127].isResize)&&vg(e);return{key:t,first:null,c(){n=S("div"),i=S("div"),o=S("div"),k&&k.c(),r=X(),E&&E.c(),s=X(),T&&T.c(),l=X(),j&&j.c(),a=X(),A&&A.c(),c=X(),O&&O.c(),d=X(),M&&M.c(),u=X(),D&&D.c(),b=X(),R&&R.c(),w=Dn(),g(o,"class","renderer__highlight-border svelte-1yftjo9"),te(o,"renderer__highlight-border_insets",e[127].insets),je(o,"transform",p),g(i,"class","renderer__highlight svelte-1yftjo9"),je(i,"left",_),je(i,"top",f),je(i,"width",m),je(i,"height",h),je(i,"margin-top",v),je(i,"margin-left",y),g(n,"class","renderer__highlight-inner svelte-1yftjo9"),this.first=n},m(U,B){N(U,n,B),$(n,i),$(i,o),k&&k.m(o,null),$(o,r),E&&E.m(o,null),$(o,s),T&&T.m(o,null),$(o,l),j&&j.m(o,null),$(o,a),A&&A.m(o,null),$(o,c),O&&O.m(o,null),$(o,d),M&&M.m(o,null),$(o,u),D&&D.m(o,null),N(U,b,B),R&&R.m(U,B),N(U,w,B)},p(U,B){e=U,e[127].insets?k?k.p(e,B):(k=ag(e),k.c(),k.m(o,r)):k&&(k.d(1),k=null),e[127].grid&&!e[127].insets&&!e[15]?E?E.p(e,B):(E=cg(e),E.c(),E.m(o,s)):E&&(E.d(1),E=null),e[127].gradientAngle?T?T.p(e,B):(T=pg(e),T.c(),T.m(o,l)):T&&(T.d(1),T=null),e[127].permanent&&!e[127].isRoot&&!e[127].insets&&!e[15]?j?j.p(e,B):(j=_g(e),j.c(),j.m(o,a)):j&&(j.d(1),j=null),(e[127].permanent||e[127].isRotate)&&!e[127].isRoot&&!e[127].insets&&!e[15]?A?A.p(e,B):(A=fg(e),A.c(),A.m(o,c)):A&&(A.d(1),A=null),e[127].isRotate?O?O.p(e,B):(O=mg(e),O.c(),O.m(o,d)):O&&(O.d(1),O=null),e[127].visibleText?M?M.p(e,B):(M=gg(e),M.c(),M.m(o,u)):M&&(M.d(1),M=null),e[127].emptyFileType&&!e[15]?D?D.p(e,B):(D=hg(e),D.c(),D.m(o,null)):D&&(D.d(1),D=null),B[0]&2048&&te(o,"renderer__highlight-border_insets",e[127].insets),B[0]&2048&&p!==(p=`rotate(${e[127].rotation}deg)`)&&je(o,"transform",p),B[0]&2048&&_!==(_=`${e[127].left+e[127].margins.left}px`)&&je(i,"left",_),B[0]&2048&&f!==(f=`${e[127].top+e[127].margins.top}px`)&&je(i,"top",f),B[0]&2048&&m!==(m=`${e[127].widthNum}px`)&&je(i,"width",m),B[0]&2048&&h!==(h=`${e[127].heightNum}px`)&&je(i,"height",h),B[0]&512&&v!==(v=`${-e[9]}px`)&&je(i,"margin-top",v),B[0]&256&&y!==(y=`${-e[8]}px`)&&je(i,"margin-left",y),e[127].permanent&&!e[127].insets||e[127].isResize?R?R.p(e,B):(R=vg(e),R.c(),R.m(w.parentNode,w)):R&&(R.d(1),R=null)},d(U){U&&(F(n),F(b),F(w)),k&&k.d(),E&&E.d(),T&&T.d(),j&&j.d(),A&&A.d(),O&&O.d(),M&&M.d(),D&&D.d(),R&&R.d(U)}}}function yg(t){let e,n=an(t[12]),i=[];for(let o=0;o<n.length;o+=1)i[o]=$g(Zm(t,n,o));return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=Dn()},m(o,r){for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(o,r);N(o,e,r)},p(o,r){if(r[0]&4864){n=an(o[12]);let s;for(s=0;s<n.length;s+=1){const l=Zm(o,n,s);i[s]?i[s].p(l,r):(i[s]=$g(l),i[s].c(),i[s].m(e.parentNode,e))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length}},d(o){o&&F(e),Bi(i,o)}}}function wg(t){let e,n,i=`${t[124].sub.left}px`,o=`${t[124].sub.top}px`,r=`${-t[9]}px`,s=`${-t[8]}px`;return{c(){e=S("div"),g(e,"class",n="renderer__highlight-distance renderer__highlight-distance_sub renderer__highlight-distance_orientation_"+t[124].sub.orientation+" svelte-1yftjo9"),je(e,"left",i),je(e,"top",o),je(e,"width",t[124].sub.orientation==="horizontal"?`${t[124].sub.length}px`:""),je(e,"height",t[124].sub.orientation==="horizontal"?"":`${t[124].sub.length}px`),je(e,"margin-top",r),je(e,"margin-left",s)},m(l,a){N(l,e,a)},p(l,a){a[0]&4096&&n!==(n="renderer__highlight-distance renderer__highlight-distance_sub renderer__highlight-distance_orientation_"+l[124].sub.orientation+" svelte-1yftjo9")&&g(e,"class",n),a[0]&4096&&i!==(i=`${l[124].sub.left}px`)&&je(e,"left",i),a[0]&4096&&o!==(o=`${l[124].sub.top}px`)&&je(e,"top",o),a[0]&4096&&je(e,"width",l[124].sub.orientation==="horizontal"?`${l[124].sub.length}px`:""),a[0]&4096&&je(e,"height",l[124].sub.orientation==="horizontal"?"":`${l[124].sub.length}px`),a[0]&512&&r!==(r=`${-l[9]}px`)&&je(e,"margin-top",r),a[0]&256&&s!==(s=`${-l[8]}px`)&&je(e,"margin-left",s)},d(l){l&&F(e)}}}function $g(t){let e,n,i,o=Vs(t[124].length)+"",r,s,l=`${t[124].left}px`,a=`${t[124].top}px`,c=`${-t[9]}px`,d=`${-t[8]}px`,u,p,_=t[124].sub&&wg(t);return{c(){e=S("div"),n=S("div"),i=S("div"),r=Ze(o),u=X(),_&&_.c(),p=X(),g(i,"class","renderer__highlight-distance-info svelte-1yftjo9"),g(n,"class",s="renderer__highlight-distance renderer__highlight-distance_orientation_"+t[124].orientation+" svelte-1yftjo9"),je(n,"left",l),je(n,"top",a),je(n,"width",t[124].orientation==="horizontal"?`${t[124].length}px`:""),je(n,"height",t[124].orientation==="horizontal"?"":`${t[124].length}px`),je(n,"margin-top",c),je(n,"margin-left",d),g(e,"class","renderer__highlight-inner svelte-1yftjo9")},m(f,m){N(f,e,m),$(e,n),$(n,i),$(i,r),$(e,u),_&&_.m(e,null),$(e,p)},p(f,m){m[0]&4096&&o!==(o=Vs(f[124].length)+"")&<(r,o),m[0]&4096&&s!==(s="renderer__highlight-distance renderer__highlight-distance_orientation_"+f[124].orientation+" svelte-1yftjo9")&&g(n,"class",s),m[0]&4096&&l!==(l=`${f[124].left}px`)&&je(n,"left",l),m[0]&4096&&a!==(a=`${f[124].top}px`)&&je(n,"top",a),m[0]&4096&&je(n,"width",f[124].orientation==="horizontal"?`${f[124].length}px`:""),m[0]&4096&&je(n,"height",f[124].orientation==="horizontal"?"":`${f[124].length}px`),m[0]&512&&c!==(c=`${-f[9]}px`)&&je(n,"margin-top",c),m[0]&256&&d!==(d=`${-f[8]}px`)&&je(n,"margin-left",d),f[124].sub?_?_.p(f,m):(_=wg(f),_.c(),_.m(e,p)):_&&(_.d(1),_=null)},d(f){f&&F(e),_&&_.d()}}}function Zte(t){let e,n,i,o,r,s,l,a,c,d,u,p,_=`${t[13][0]}px`,f=`${t[13][1]}px`,m,h,v,y,b,w,k,E,T,j,A=`${t[13][0]}px`,O=`${t[13][1]}px`,M,D,R=t[6]&&ng(t),U=t[7]&&ig(t),B=t[1]&&og(t),C=t[11]&&lg(t),q=t[12]&&yg(t);return{c(){e=S("div"),n=S("div"),i=S("div"),o=S("div"),r=X(),s=S("div"),l=X(),a=S("div"),c=X(),d=S("div"),u=X(),p=S("div"),m=X(),h=S("div"),v=S("div"),y=S("div"),b=X(),w=S("div"),R&&R.c(),k=X(),U&&U.c(),E=X(),B&&B.c(),T=X(),C&&C.c(),j=X(),q&&q.c(),g(o,"class","renderer__content-bg svelte-1yftjo9"),g(s,"class","renderer__content-inner svelte-1yftjo9"),g(i,"class","renderer__content svelte-1yftjo9"),g(a,"class","renderer__resizer renderer__resizer_vh svelte-1yftjo9"),g(d,"class","renderer__resizer renderer__resizer_h svelte-1yftjo9"),g(p,"class","renderer__resizer renderer__resizer_v svelte-1yftjo9"),g(n,"class","renderer__container svelte-1yftjo9"),je(n,"--width",_),je(n,"--height",f),g(y,"class","renderer__clones-container svelte-1yftjo9"),g(w,"class","renderer__snap-container svelte-1yftjo9"),g(v,"class","renderer__overlay-center svelte-1yftjo9"),je(v,"width",A),je(v,"height",O),g(h,"class","renderer__overlay-elemens renderer__overlay-root svelte-1yftjo9"),g(e,"class","renderer svelte-1yftjo9"),g(e,"tabindex","0"),te(e,"renderer_rotate",t[10])},m(V,Y){N(V,e,Y),$(e,n),$(n,i),$(i,o),$(i,r),$(i,s),t[67](s),t[68](i),$(n,l),$(n,a),$(n,c),$(n,d),$(n,u),$(n,p),$(e,m),$(e,h),$(h,v),$(v,y),t[72](y),$(v,b),$(v,w),R&&R.m(w,null),$(w,k),U&&U.m(w,null),$(v,E),B&&B.m(v,null),$(v,T),C&&C.m(v,null),$(v,j),q&&q.m(v,null),t[78](e),M||(D=[ee(Xte,"resize",t[48]),ee(s,"pointerdown",t[38]),ee(i,"scroll",t[32],!0),ee(i,"mousemove",t[33]),ee(i,"mouseout",t[34]),ee(a,"pointerdown",Eo(zi(t[69]))),ee(d,"pointerdown",Eo(zi(t[70]))),ee(p,"pointerdown",Eo(zi(t[71]))),ee(e,"dragover",t[35]),ee(e,"dragleave",zi(t[36])),ee(e,"drop",t[37]),ee(e,"keydown",t[43]),ee(e,"pointerdown",t[44],!0),ee(e,"click",t[45]),ee(e,"dblclick",zi(t[46]))],M=!0)},p(V,Y){Y[0]&8192&&_!==(_=`${V[13][0]}px`)&&je(n,"--width",_),Y[0]&8192&&f!==(f=`${V[13][1]}px`)&&je(n,"--height",f),V[6]?R?R.p(V,Y):(R=ng(V),R.c(),R.m(w,k)):R&&(R.d(1),R=null),V[7]?U?U.p(V,Y):(U=ig(V),U.c(),U.m(w,null)):U&&(U.d(1),U=null),V[1]?B?B.p(V,Y):(B=og(V),B.c(),B.m(v,T)):B&&(B.d(1),B=null),V[11]?C?C.p(V,Y):(C=lg(V),C.c(),C.m(v,j)):C&&(C.d(1),C=null),V[12]?q?q.p(V,Y):(q=yg(V),q.c(),q.m(v,null)):q&&(q.d(1),q=null),Y[0]&8192&&A!==(A=`${V[13][0]}px`)&&je(v,"width",A),Y[0]&8192&&O!==(O=`${V[13][1]}px`)&&je(v,"height",O),Y[0]&1024&&te(e,"renderer_rotate",V[10])},i:tn,o:tn,d(V){V&&F(e),t[67](null),t[68](null),t[72](null),R&&R.d(),U&&U.d(),B&&B.d(),C&&C.d(),q&&q.d(),t[78](null),M=!1,qn(D)}}}const Na=6,kg=10,jg=10;let Sg=!0;function xte(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,h,v,y,b,{viewport:w}=e,{theme:k}=e;const{l10n:E}=wt(oi);Pe(t,E,(re=>n(14,s=re)));const{rootConfigurable:T,actionLogUrlVariable:j,state:A,setRendererApi:O,inplaceEditor:M,file2Dialog:D,customFontFaces:R}=wt(An),{divjsonStore:U,customVariables:B,timers:C,tanker:q,copiedLeaf:V,selectedLeaf:Y,selectedElem:x,highlightLeaf:de,highlightElem:_e,highlightMode:G,highlightGradientAngle:Q,highlightRanges:oe,rendererErrors:he,locale:ze,readOnly:W,tree:Ke,sources:at,direction:Te}=A;Pe(t,U,(re=>n(62,f=re))),Pe(t,B,(re=>n(64,v=re))),Pe(t,C,(re=>n(63,h=re))),Pe(t,q,(re=>n(59,u=re))),Pe(t,V,(re=>n(94,a=re))),Pe(t,Y,(re=>n(92,o=re))),Pe(t,x,(re=>n(57,l=re))),Pe(t,_e,(re=>n(60,p=re))),Pe(t,G,(re=>n(66,b=re))),Pe(t,Q,(re=>n(65,y=re))),Pe(t,ze,(re=>n(58,d=re))),Pe(t,W,(re=>n(15,c=re))),Pe(t,Ke,(re=>n(93,r=re))),Pe(t,at,(re=>n(95,m=re))),Pe(t,Te,(re=>n(61,_=re))),O({containerProps(){const re=Ye.getBoundingClientRect();return{width:re.width,height:re.height}},selectedElemProps(){if(!l||!Ye)return null;const re=Ye.getBoundingClientRect(),Ce=l.getBoundingClientRect();return{top:Ce.top-re.top,left:Ce.left-re.left,width:Ce.width,height:Ce.height}},focus(){ot.focus({preventScroll:!0})},evalJson(re){return vn(re)}});let ot,J,ue,fe,Qe={top:0,left:0,right:0,bottom:0,width:0,height:0},ye=0,Ee="",Ye,vt,ne,pe=null,kt=null,$e=0,et=0,le=!1,Ve=!1,Xe=!1,xe=null,jt;const Vt={};let ln=new Set;const sn=new Map;let At=!1,pn,dn=null,Rn=null,Ln=null;function qe(re){let Ce=0,P=re;for(;P&&P!==J;){const Z=window.getComputedStyle(P);Ce+=Kte(Z.transform),P=P.parentElement}return Ce}function st(re,Ce){const P=new Map;let Z=re;for(;Z&&Z!==J;)window.getComputedStyle(Z).transform&&(P.set(Z,Z.style.transform),Z.style.transform="none"),Z=Z.parentElement;Ce();for(const[ce,be]of P)ce.style.transform=be}const li=(re,Ce,P,Z,ce,be,ge,Be,se,ve)=>{if(!ot)return;const Ae=J.getBoundingClientRect();let Re=[],ut;if(Z||ce?Re=[]:P?Re=[P]:(Re=[...new Set([...re||[],Ce])].filter(kr),re&&re.length===1&&Ce&&(Ce.offsetWidth||Ce.offsetHeight)&&Be&&(ut=re[0])),n(11,Rn=Re.filter((Ge=>Ge.isConnected)).map((Ge=>{var L;const Tt=sn.get(Ge),fn=Tt==null?void 0:Tt.processedJson,Ht=getComputedStyle(Ge),On=Ht.margin,Qt=parseInt(Ht.marginTop),Mn=parseInt(Ht.marginRight),_n=parseInt(Ht.marginBottom),Pt=parseInt(Ht.marginLeft),jn=Ht.padding,Pn=parseInt(Ht.paddingTop),In=parseInt(Ht.paddingRight),Jn=parseInt(Ht.paddingBottom),ri=parseInt(Ht.paddingLeft);let yi=0,yo=0;if(Ge===P)yi=Qe.left-Ae.left+$e,yo=Qe.top-Ae.top+et;else{const ie=Ge.parentElement?qe(Ge.parentElement):0,we=Ge.style.transform;Ge.style.transform=`rotate(${-ie}rad)`;const ae=Ge.getBoundingClientRect();yi=ae.left-Ae.left+$e,yo=ae.top-Ae.top+et,Ge.style.transform=we}const Oi={top:yo-Qt,right:yi+Ge.offsetWidth+Mn,bottom:yo+Ge.offsetHeight+_n,left:yi-Pt};let Yi="";if(Ge===Ce&&fn){const ie=o==null?void 0:o.props.json;ie&&(ie.type==="_template_lottie"?Yi="lottie":ie.type==="_template_close"||(fn.type==="image"?Yi="image":fn.type==="gif"&&(Yi="gif")))}let Ei,cn;if(be&&Ge===Ce){if(be==="margins")Ei=["M 0 0",`h ${Oi.right-Oi.left}`,`v ${Oi.bottom-Oi.top}`,`h ${-(Oi.right-Oi.left)}`,"Z",`M ${Pt} ${Qt}`,`v ${Ge.offsetHeight}`,`h ${Ge.offsetWidth}`,`v ${-Ge.offsetHeight}`,"Z"].join(" ");else if(be==="paddings")Ei=[`M ${Pt} ${Qt}`,`h ${Ge.offsetWidth}`,`v ${Ge.offsetHeight}`,`h ${-Ge.offsetWidth}`,"Z",`M ${Pt+ri} ${Qt+Pn}`,`v ${Ge.offsetHeight-Pn-Jn}`,`h ${Ge.offsetWidth-ri-In}`,`v ${-(Ge.offsetHeight-Pn-Jn)}`,"Z"].join(" ");else if(be==="gradient"){const ie=Yte(Ge.offsetWidth,Ge.offsetHeight,ge/180*Math.PI);cn=`M ${Pt+ie.from.x} ${Qt+ie.from.y} L ${Pt+ie.to.x} ${Qt+ie.to.y}`}}const vi=((L=Tt==null?void 0:Tt.processedJson)==null?void 0:L.type)==="grid";let Wt;return vi&&st(Ge,(()=>{Wt=Od(Ge)})),{elem:Ge,permanent:Ge===Ce,isRoot:Ge===r.props.node&&!T,isResize:Ge===P&&se,isRotate:Ge===P&&Xe,top:Oi.top,left:Oi.left,right:Ae.width-Oi.right,bottom:Ae.height-Oi.bottom,width:Vs(Ge.offsetWidth),height:Vs(Ge.offsetHeight),widthNum:Ge.offsetWidth,heightNum:Ge.offsetHeight,margin:On,margins:{top:Qt,right:Mn,bottom:_n,left:Pt},padding:jn,paddings:{top:Pn,right:In,bottom:Jn,left:ri},rotation:P===Ge?ye:qe(Ge)/Math.PI*180,emptyFileType:Yi,insets:Ei,gradientAngle:cn,visibleText:Ge===P?Ee:"",grid:Wt&&(ve||{columns:Fa(Wt.columns.slice(0,Wt.columns.length-1)),rows:Fa(Wt.rows.slice(0,Wt.rows.length-1))})||void 0}}))),ut&&Ce){const Ge=Ce.getBoundingClientRect(),Tt=ut.getBoundingClientRect(),fn=[],Ht={top:"bottom",right:"left",bottom:"top",left:"right"},On={top:-1,right:1,bottom:1,left:-1},Qt={vertical:["left","right"],horizontal:["top","bottom"]},Mn={top:"vertical",right:"horizontal",bottom:"vertical",left:"horizontal"},_n={top:"horizontal",right:"vertical",bottom:"horizontal",left:"vertical"};for(const Pt of["top","right","bottom","left"]){const jn=Mn[Pt],Pn=_n[Pt],In=On[Pt];for(const Jn of[Ht[Pt],Pt])if(Ge[Pt]*In<Tt[Jn]*In){let ri;const yi=(Ge[Qt[jn][0]]+Ge[Qt[jn][1]])/2;yi<Tt[Qt[jn][0]]?ri={orientation:Pn,length:Tt[Qt[jn][0]]-yi,top:Pn==="vertical"?yi:Tt[Jn],left:Pn==="horizontal"?yi:Tt[Jn]}:yi>Tt[Qt[jn][1]]&&(ri={orientation:Pn,length:yi-Tt[Qt[jn][1]],top:Pn==="vertical"?Tt[Qt[jn][1]]:Tt[Jn],left:Pn==="horizontal"?Tt[Qt[jn][1]]:Tt[Jn]}),fn.push({orientation:Mn[Pt],length:Math.abs(Ge[Pt]-Tt[Jn]),top:Mn[Pt]==="vertical"?Math.min(Ge[Pt],Tt[Jn]):yi,left:Mn[Pt]==="horizontal"?Math.min(Ge[Pt],Tt[Jn]):yi,sub:ri});break}}fn.forEach((Pt=>{Pt.top-=Ae.top,Pt.left-=Ae.left,Pt.sub&&(Pt.sub.top-=Ae.top,Pt.sub.left-=Ae.left)})),n(12,Ln=fn)}else n(12,Ln=null)};function bt(){li(p,l,fe,Kt,le,b,y,Sg,Ve,dn)}function Cn(){var be,ge;if(!gn||le){de.set(null),_e.set(null),oe.set(null);return}const re=new Set(sn.keys()),Ce=gn[0],P=gn[1],Z=20;let ce;for(const Be of re){if(!((ge=(be=sn.get(Be))==null?void 0:be.processedJson)==null?void 0:ge.type)||!Be.parentElement)continue;const ve=Dte(Be);if(ve.width<=0||ve.height<=0)continue;let Ae=ve.left,Re=ve.right,ut=ve.top,Ge=ve.bottom;if(ve.width<Z&&(Ae-=(Z-ve.width)/2,Re+=(Z-ve.width)/2),ve.height<Z&&(ut-=(Z-ve.height)/2,Ge+=(Z-ve.height)/2),Ce>=Ae&&Ce<=Re&&P>=ut&&P<=Ge){const Tt=zte(Be),fn=Array.from(Be.parentElement.children).indexOf(Be),Ht=ve.width*ve.height;(!ce||ce.space>Ht||ce.space===Ht&&ce.depth<Tt||ce.space===Ht&&ce.depth===Tt&&ce.order<fn)&&(ce={elem:Be,space:Ht,depth:Tt,order:fn})}}if(ce){if(!((p==null?void 0:p.length)===1&&p[0]===ce.elem)){const Be=A.getLeafFromNode(ce.elem);if(Be){de.set([Be]),_e.set([ce.elem]);const se=Be.props.range;oe.set(se?[se]:null)}else de.set(null),_e.set(null),oe.set(null)}}else de.set(null),_e.set(null),oe.set(null)}function Ut(){n(8,$e=J.scrollLeft),n(9,et=J.scrollTop),Cn(),bt()}let gn=null;function Lt(re){gn=[re.clientX,re.clientY],Cn()}function wn(){de.set(null),_e.set(null),oe.set(null)}function vn(re){if(!ne)return{};const Ce=new Map(ne.getDebugVariables());for(const Z in Vt)Ce.has(Z)||Ce.set(Z,Vt[Z]);const P=Z=>{const ce={};for(const be in Z){const ge=Z[be];if(typeof ge=="string"&&ge.includes("@{")){const Be=qY(ge,{variables:Ce,type:"json"});Be.type!=="error"&&(ce[be]=Be.value)}else ge&&typeof ge=="object"?ce[be]=P(ge):ce[be]=ge}return ce};return P(re)}function Jt({type:re,node:Ce,json:P,origJson:Z}){var be;let ce=re==="mount"||re==="destroy";if((re==="update"||re==="mount")&&Z.__leafId&&ln.add(Z.__leafId),(re==="mount"||re==="update")&&Z.__leafId){const ge=no(r,Z.__leafId);if(ge){ge.props.processedJson=P;const Be=o&&o.id===Z.__leafId;Ce&&(ge.props.node=Ce,sn.set(Ce,{json:Z,processedJson:P,node:Ce}),((be=sn.get(Ce))==null?void 0:be.json.__leafId)!==Z.__leafId&&(ce=!0),Ce.classList.add("renderer__divkit-node"),Ce.classList.toggle("renderer__divkit-gallery",P.type==="gallery"),Ce.classList.toggle("renderer__divkit-pager",P.type==="pager"),Ce.classList.toggle("renderer__divkit-tabs",P.type==="tabs"),(Ce.tagName==="A"||Ce.tagName==="BUTTON"||Ce.hasAttribute("tabindex"))&&Ce.setAttribute("inert",""),Be&&l!==Ce&&x.set(Ce)),Be&&Mi(Y,o=ge,o)}else ce=!0}else re==="destroy"&&Ce&&sn.delete(Ce);ce&&A.updateComponents()}let Kt=null;function Un(re,Ce){const P=[...sn.keys()];let Z=null;const ce=J.getBoundingClientRect();for(const be of P){const ge=sn.get(be);if(!ge)continue;const Be=ge.json,se=ge.processedJson,ve=no(r,Be.__leafId);if(!ve)continue;const Ae=Ete(ve);if(Be.type in Ui||!(se.type==="container"||se.type==="gallery"||se.type==="grid")||se.orientation==="overlap"||Qu(A,Be))continue;const Re=be.getBoundingClientRect();if(re<Re.left||re>Re.right||Ce<Re.top||Ce>Re.bottom)continue;const ut=se.orientation||(se.type==="container"?"vertical":"horizontal"),Ge=getComputedStyle(be),Tt=parseFloat(Ge.paddingTop),fn=parseFloat(Ge.paddingRight),Ht=parseFloat(Ge.paddingBottom),On=parseFloat(Ge.paddingLeft),Qt=[],Mn=[];if(se.type==="container"||se.type==="gallery"){Qt.push({index:0,top:Re.top+Tt,left:Re.left+On,width:ut==="horizontal"?0:Re.width-On-fn,height:ut==="horizontal"?Re.height-Tt-Ht:0});const _n=ve.childs.map((Pt=>Pt.props.node));Array.from(_n).forEach(((Pt,jn)=>{const Pn=Pt.getBoundingClientRect(),In=getComputedStyle(Pt),Jn=parseFloat(In.marginRight),ri=parseFloat(In.marginBottom);Qt.push({index:jn+1,top:ut==="horizontal"?Re.top+Tt:Pn.bottom+ri,left:ut==="horizontal"?Pn.right+Jn:Re.left+On,width:ut==="horizontal"?0:Re.width-On-fn,height:ut==="horizontal"?Re.height-Tt-Ht:0}),Mn.push(Pn)}))}else se.type==="grid"&&ve.childs.map((Pt=>Pt.props.node)).forEach(((Pt,jn)=>{const Pn=Pt.getBoundingClientRect(),In={top:Pn.top,left:Pn.left,width:Pn.width,height:Pn.height};Qt.push({targetIndex:jn,visibleText:String(jn+1),...In}),Mn.push(Pn)}));Qt.forEach((_n=>{const Pt=re<_n.left?_n.left-re:re<_n.left+_n.width?0:Math.abs(re-(_n.left+_n.width)),jn=Ce<_n.top?_n.top-Ce:Ce<_n.top+_n.height?0:Math.abs(Ce-(_n.top+_n.height)),Pn=Pt*Pt+jn*jn;(!Z||Ae>Z.depth||Ae===Z.depth&&Z.dist>Pn)&&(_n.left-=ce.left,_n.top-=ce.top,Z={dist:Pn,depth:Ae,target:_n,leaf:ve,parent:{left:Re.left-ce.left,top:Re.top-ce.top,width:Re.width,height:Re.height},childs:Mn.map((In=>({left:In.left-ce.left,top:In.top-ce.top,width:In.width,height:In.height})))})}))}return Z}function Kn(re){c||(re.preventDefault(),n(1,Kt=!re.ctrlKey&&Un(re.clientX,re.clientY)||null),re.dataTransfer&&(re.dataTransfer.dropEffect="move"))}function fi(re){re.relatedTarget&&re.relatedTarget instanceof Node&&ot.contains(re.relatedTarget)||n(1,Kt=null)}function Je(re){var se;if(c)return;const Ce=(se=re.dataTransfer)==null?void 0:se.getData("application/divnode");if(!Ce)return;const P=A.getChild(Ce);if(!P)return;let Z,ce=null,be=null,ge;if(Kt){const ve=Kt;if(n(1,Kt=null),Z=ve.leaf,ve.target.targetIndex!==void 0)be=ve.target.targetIndex;else if(ve.target.index!==void 0)ce=ve.target.index;else return;delete P.props.json.margins}else{Z=r,ce=r.childs.length;const ve=re.pageX-window.scrollX,Ae=re.pageY-window.scrollY,Re=J.getBoundingClientRect();ge=[{property:"alignment_horizontal",value:"left"},{property:"alignment_vertical",value:"top"},{property:"margins",value:{top:Math.max(0,Math.round(Ae-Re.top-20)),left:Math.max(0,Math.round(ve-Re.left-20))}}]}if(!Z||zc(P,Z))return;const Be=P.parent?P.parent.childs.indexOf(P):-1;be!==null?ce=be:P.parent&&P.parent===Z&&ce!==null&&ce>Be?--ce:ce=Z.childs.length,P.parent?A.pushCommand(new Ul(A,{newParentId:Z.id,insertIndex:ce,leafId:P.id,changes:ge})):(ge&&ge.forEach((({property:ve,value:Ae})=>{jl(P.props.json,ve,Ae)})),A.pushCommand(new da({parentId:Z.id,insertIndex:ce,leaf:P}))),ur().then((()=>{Mi(Y,o=no(r,P.id)||null,o),ot.focus({preventScroll:!0})}))}function ht(re,Ce,P,Z,ce){var ge,Be;const be=()=>{var ve;if(!jt)return;const se=ne==null?void 0:ne.getDebugAllVariables();for(const[Ae,Re]of A.varToTankerMap){const ut=se==null?void 0:se.get(Ae),Ge=((ve=Ce[Re])==null?void 0:ve[P])||"";if(Ge)if(ut)ut.set(Ge);else{const Tt=Ho(Ae,"string",Ge);Vt[Ae]=Tt,jt.setVariable(Tt)}}};if(ln=new Set,pn={},At=!0,ne){const ve=ne.getDebugAllVariables().get("local_palette");if(ve){const Ae=(ge=re.card.variables)==null?void 0:ge.find((Re=>Re.name==="local_palette"));ve.setValue((Ae==null?void 0:Ae.value)||{})}xe&&xe.set(Z),ne.setData(re)}else{if(he.set({"":Pte(re)}),jt=QK(),xe=Ho("theme","string",Z),Vt.theme=xe,jt.setVariable(xe),j){const Ae=Ho(j,"string","https://");Vt.actionLogUrlVariable=Ae,jt.setVariable(Ae)}const se=Ho("local_palette","dict",{});jt.setVariable(se);for(const Ae of m){const Re=Ho(Ae.key,"dict",Ae.example);Vt[Ae.key]=Re,jt.setVariable(Re)}const ve=new Set;for(const[Ae,Re]of A.varToTankerMap){const ut=((Be=Ce[Re])==null?void 0:Be[P])||"";if(ut){const Ge=Ho(Ae,"string",ut);Vt[Ae]=Ge,jt.setVariable(Ge),ve.add(Ae)}}if(ve.size){const Ae=re.card;Ae.variables&&(Ae.variables=Ae.variables.filter((Re=>!ve.has(Re.name))))}n(53,ne=NY({id:"preview",target:ue,json:re,globalVariablesController:jt,onComponent:Jt,platform:"desktop",extensions:new Map([["size_provider",FY],["lottie",Mte]]),direction:ce,typefaceProvider(Ae){var Re;return((Re=R.find((ut=>ut.value===Ae)))==null?void 0:Re.value)||""},onError(Ae){var Mn,_n,Pt,jn;const Re=Ae.error.additional||{},ut=((Pt=(_n=(Mn=Re.fullpath)==null?void 0:Mn.find((Pn=>{var In;return(In=Pn.origJson)==null?void 0:In.__leafId})))==null?void 0:_n.origJson)==null?void 0:Pt.__leafId)||"",Ge=A.getChild(ut),Tt=Object.keys(Re).filter((Pn=>Pn!=="json"&&Pn!=="origJson"&&Pn!=="fullpath")).reduce(((Pn,In)=>(Pn[In]=Re[In],Pn)),{});ut&&(Tt.leafId=ut);const fn=At?pn:$n(he);let Ht=fn[ut]||[];const On=(jn=Ge==null?void 0:Ge.props.node)==null?void 0:jn.isConnected,Qt={message:Ae.error.message,stack:(Ae.error.stack||"").split(`\n`),level:Ae.error.level,args:Tt};On?Ht.push(Qt):Ae.error.level!=="warn"&&(Ht=[Qt]),At?pn[ut]=Ht:he.set({...fn,[ut]:Ht})}}))}ur().then((()=>{be(),bt(),ur().then((()=>{At=!1;let se={...$n(he)};for(const ve of ln)delete se[ve];se={...se,...pn},he.set(se)}))}))}let ct=()=>{};function gt(){ct()}function qt(re){var Yi,Ei;if(re.button!==0||re.target instanceof Element&&(re.target.matches(".renderer__divkit-gallery > div:not(:first-child) *")||re.target.matches(".renderer__divkit-pager > div:not(:first-child) *")||re.target.matches(".renderer__divkit-tabs > div:first-child > span"))||fe)return;const Ce=p==null?void 0:p[0];if(!Ce){if(l){const cn=l.getBoundingClientRect(),vi=re.clientX,Wt=re.clientY;vi>=cn.left&&vi<=cn.right&&Wt>=cn.top&&Wt<=cn.bottom||Y.set(null)}return}const P=A.getLeafFromNode(Ce),Z=P==null?void 0:P.parent;if(!P)return;const ce=P.props.json,be=P.props.processedJson;if(ot.focus({preventScroll:!0}),Y.set(P),x.set(Ce),de.set(null),_e.set(null),oe.set(null),P===r||c||!Z)return;let ge=!1;const Be=((Yi=be.transform)==null?void 0:Yi.rotation)||0,se=Ce.style.transform;Ce.style.transform="";const ve=Ce.getBoundingClientRect();Ce.style.transform=se;const Ae=getComputedStyle(Ce),Re=Ye.getBoundingClientRect(),ut=re.clientX,Ge=re.clientY,Tt=parseFloat(Ae.width),fn=parseFloat(Ae.height),Ht=ve.left-Re.left,On=ve.top-Re.top;re.preventDefault(),re.stopPropagation();const Qt=getComputedStyle(Ce);n(51,fe=Ce.cloneNode(!0)),fe.classList.add("renderer__component-clone"),n(51,fe.style.transform=`translate(${Ht}px, ${On}px) rotate(${Be}deg)`,fe),n(51,fe.style.width=`${Math.ceil(Tt)}px`,fe),n(51,fe.style.height=`${Math.ceil(fn)}px`,fe),n(51,fe.style.fontSize=Qt.fontSize,fe),n(51,fe.style.opacity="0",fe),Ye.appendChild(fe),Qe={top:On+Re.top,left:Ht+Re.left,right:Ht+Tt+Re.left,bottom:On+fn+Re.top,width:Tt,height:fn},n(4,ye=Be);const Mn=Re.width-ve.width,_n=Re.height-ve.height;let Pt=Ht,jn=On,Pn,In,Jn=[{val:Re.width/2,type:"center",special:"horizontalCenter"}],ri=[{val:Re.height/2,type:"center",special:"verticalCenter"}];[...((Ei=A.simpleComponentsMap)==null?void 0:Ei.keys())||[]].forEach((cn=>{const vi=cn.getBoundingClientRect();Jn.push({val:vi.left-Re.left,type:"start"},{val:vi.right-Re.left,type:"end"},{val:(vi.left+vi.right)/2-Re.left,type:"center"}),ri.push({val:vi.top-Re.top,type:"start"},{val:vi.bottom-Re.top,type:"end"},{val:(vi.top+vi.bottom)/2-Re.top,type:"center"})})),Jn=Jn.map((cn=>({...cn,val:Math.round(cn.val)}))),ri=ri.map((cn=>({...cn,val:Math.round(cn.val)}))),Jn=Jn.sort(((cn,vi)=>cn.val-vi.val)),ri=ri.sort(((cn,vi)=>cn.val-vi.val)),n(1,Kt=null);const yo=cn=>{if((cn.clientX-ut)*(cn.clientX-ut)+(cn.clientY-Ge)*(cn.clientY-Ge)>16&&(ge=!0),!ge||!fe){cn.preventDefault();return}const Wt=cn.shiftKey;if(n(1,Kt=!cn.ctrlKey&&Un(cn.clientX,cn.clientY)||null),Ce.style.opacity="0",n(6,pe=null),n(7,kt=null),Kt)n(51,fe.style.opacity="0",fe);else{n(51,fe.style.opacity="",fe);let L=cn.clientX-ut,ie=cn.clientY-Ge;Wt&&(Math.abs(L)>Math.abs(ie)?ie=0:L=0),Pt=L+Ht,jn=ie+On,Pt=Math.max(0,Math.min(Mn,Pt)),jn=Math.max(0,Math.min(_n,jn));const we=[{val:Pt+ve.width/2,pos:ve.width/2,type:"center"},{val:Pt,pos:0,type:"start"},{val:Pt+ve.width,pos:ve.width,type:"end"}],ae=[{val:jn+ve.height/2,pos:ve.height/2,type:"center"},{val:jn,pos:0,type:"start"},{val:jn+ve.height,pos:ve.height,type:"end"}];let Ne,Le,zt,Nt;we.forEach((En=>{Ne||(Ne=La(Jn,En,Na),Ne&&(Le=En.pos))})),ae.forEach((En=>{zt||(zt=La(ri,En,Na),zt&&(Nt=En.pos))})),Ne?(n(6,pe=Ne.val),Pn=Ne.special):(n(6,pe=null),Pn=void 0),zt?(n(7,kt=zt.val),In=zt.special):(n(7,kt=null),In=void 0),Pt=Ne&&Le!==void 0&&Ne.val-Le||Pt,jn=zt&&Nt!==void 0&&zt.val-Nt||jn,Pt=Math.max(0,Math.min(Mn,Pt)),jn=Math.max(0,Math.min(_n,jn)),n(51,fe.style.transform=`translate(${Pt}px, ${jn}px) rotate(${Be}deg)`,fe),Qe={...Qe,top:jn+Re.top,left:Pt+Re.left,right:Pt+Tt+Re.left,bottom:jn+fn+Re.top}}cn.preventDefault()};ct=()=>{ct=()=>{},document.body.removeEventListener("pointermove",yo),document.body.removeEventListener("pointerup",Oi),document.body.removeEventListener("pointercancel",Oi),Ce.style.opacity="",fe&&Ye.removeChild(fe),n(51,fe=null),n(1,Kt=null)};const Oi=()=>{var L,ie,we;const cn=Kt;ct();const vi=Pt!==Ht,Wt=jn!==On;if(n(6,pe=null),n(7,kt=null),!(!cn&&!vi&&!Wt)){if(cn){let ae,Ne=null,Le=null;const zt=cn;if(ae=zt.leaf,zt.target.targetIndex!==void 0)Le=zt.target.targetIndex;else if(zt.target.index!==void 0)Ne=zt.target.index;else return;const Nt=[],En=ae&&((L=no(r,ae.id))==null?void 0:L.props.processedJson);if(P.props.json.margins&&En&&En.type==="container"&&En.orientation==="overlap"&&Nt.push({property:"margins",value:void 0}),ae&&!zc(P,ae)){const yn=Z.childs.indexOf(P);Le!==null?Ne=Le:Z===ae&&Ne!==null&&Ne>yn&&--Ne,A.pushCommand(new Ul(A,{leafId:P.id,newParentId:ae.id,insertIndex:Ne!==null?Ne:ae.childs.length,changes:Nt}))}}else{const ae=[];let Ne=be.alignment_horizontal||"left",Le=be.alignment_vertical||"top";const zt=((ie=be.width)==null?void 0:ie.type)==="match_parent"||!be.width,Nt=((we=be.height)==null?void 0:we.type)==="match_parent";Pn==="horizontalCenter"?(Ne="center",ae.push({property:"alignment_horizontal",value:Ne})):vi&&Ne!=="left"&&Ne!=="right"&&(Ne="left",ae.push({property:"alignment_horizontal",value:Ne})),In==="verticalCenter"?(Le="center",ae.push({property:"alignment_vertical",value:Le})):Wt&&Le!=="top"&&Le!=="bottom"&&(Le="top",ae.push({property:"alignment_vertical",value:Le}));const En=ce.margins||{},yn={};vi?((Ne==="left"||zt)&&(yn.left=Math.round(Pt)),(Ne==="right"||zt)&&(yn.right=Math.floor(Re.width-Pt-ve.width))):(yn.left=En.left,yn.right=En.right),Wt?((Le==="top"||Nt)&&(yn.top=Math.round(jn)),(Le==="bottom"||Nt)&&(yn.bottom=Math.floor(Re.height-jn-ve.height))):(yn.top=En.top,yn.bottom=En.bottom),ae.push({property:"margins",value:yn}),A.pushCommand(new Ul(A,{leafId:P.id,newParentId:r.id,insertIndex:r.childs.length,changes:ae}))}Ke.set(r)}};document.body.addEventListener("pointermove",yo),document.body.addEventListener("pointerup",Oi),document.body.addEventListener("pointercancel",Oi)}function St(re,Ce){if(re.button!==0)return;const P=Ce==="right"||Ce==="down-right",Z=Ce==="down"||Ce==="down-right",ce=re.clientX,be=re.clientY,ge=i[0],Be=i[1],se=Ae=>{let Re=ge,ut=Be;P&&(Re+=(Ae.clientX-ce)*2,Re=Math.round(Math.max(100,Re))),Z&&(ut+=Ae.clientY-be,ut=Math.round(Math.max(100,ut))),n(49,w=`${Re}x${ut}`),Ae.preventDefault()},ve=()=>{document.body.removeEventListener("pointermove",se),document.body.removeEventListener("pointerup",ve),document.body.removeEventListener("pointercancel",ve)};document.body.addEventListener("pointermove",se),document.body.addEventListener("pointerup",ve),document.body.addEventListener("pointercancel",ve)}function Ot(re,Ce){var zr,$s,Er;if(c||re.button!==0||fe)return;const P=l;if(!P)return;const Z=A.getLeafFromNode(P)||null;if(!Z)return;const ce=Z.parent;n(55,Ve=!0);const be=Z.props.processedJson,ge=getComputedStyle(P),Be=((zr=ce==null?void 0:ce.props.processedJson)==null?void 0:zr.type)==="grid",se=Be&&(!ce.props.processedJson.width||ce.props.processedJson.width.type==="match_parent"),ve=Be&&ce.props.processedJson.height.type==="match_parent";let Ae;Be&&(ce!=null&&ce.props.node)&&st(ce.props.node,(()=>{Ae=Od(ce.props.node)}));const Re=Be&&Gm(P),ut=Ae&&Re?Ae.columnsCount-Re.columnStart:0,Ge=Ae?1/0:0,Tt=Ae&&Re?Ae.columns[Re.columnStart]-parseFloat(ge.marginLeft)-parseFloat(ge.marginRight):0,fn=Ae&&Re?Ae.rows[Re.rowStart]-parseFloat(ge.marginTop)-parseFloat(ge.marginBottom):0;let Ht=Re?Re.columnSpan:1,On=Re?Re.rowSpan:1,Qt=!1,Mn=!1;Be&&(Ee=`${Ht}x${On}`);const _n=Ce==="right"||Ce==="down-right",Pt=Ce==="down"||Ce==="down-right",jn=(($s=be.transform)==null?void 0:$s.rotation)||0,Pn=P.style.transform;P.style.transform="";const In=P.getBoundingClientRect();P.style.transform=Pn;const Jn=Ye.getBoundingClientRect(),ri=ce==null?void 0:ce.props.node.getBoundingClientRect(),yi=re.clientX,yo=re.clientY,Oi=parseFloat(ge.width),Yi=parseFloat(ge.height),Ei=In.left-Jn.left,cn=In.top-Jn.top;re.preventDefault(),re.stopPropagation();const vi=getComputedStyle(P);n(51,fe=P.cloneNode(!0)),fe.classList.add("renderer__component-clone"),n(51,fe.style.transform=`translate(${Ei}px, ${cn}px) rotate(${jn||0}deg)`,fe),n(51,fe.style.width=`${Math.ceil(Oi)}px`,fe),n(51,fe.style.height=`${Math.ceil(Yi)}px`,fe),n(51,fe.style.fontSize=vi.fontSize,fe),Ye.appendChild(fe),P.style.opacity="0",Qe={top:cn+Jn.top,left:Ei+Jn.left,right:Ei+Oi+Jn.left,bottom:cn+Yi+Jn.top,width:Oi,height:Yi},n(4,ye=jn||0);const Wt=ye/180*Math.PI,L=Math.sin(Wt),ie=Math.cos(Wt),we={x:Ei+Oi/2,y:cn+Yi/2},ae={x:we.x+-Oi/2*ie- -Yi/2*L,y:we.y+-Oi/2*L+-Yi/2*ie},Ne=ri?ri.right-Jn.left-Ei:i[0]-Ei,Le=Be?1/0:ri?ri.bottom-Jn.top-cn:i[1]-cn;let zt=Ei+In.width,Nt=cn+In.height,En=In.width,yn=In.height,wi=[],Ao=[],_t=!1,ti=!1;[...((Er=A.simpleComponentsMap)==null?void 0:Er.keys())||[]].forEach((Ti=>{const io=Ti.getBoundingClientRect();wi.push({val:io.right-Jn.left,type:"end"}),Ao.push({val:io.bottom-Jn.top,type:"end"})})),wi=wi.map((Ti=>({...Ti,val:Math.round(Ti.val)}))),Ao=Ao.map((Ti=>({...Ti,val:Math.round(Ti.val)}))),wi=wi.sort(((Ti,io)=>Ti.val-io.val)),Ao=Ao.sort(((Ti,io)=>Ti.val-io.val));let To=0,Di=0;const Qo=Ti=>{if(!fe)return;const io=Ti.shiftKey;let Mo=Ti.clientX-yi,Ar=Ti.clientY-yo;if(io&&_n&&Pt){const ji=(Mo+Ar)/2;Mo=ji,Ar=ji}const rs=Math.sqrt(Mo*Mo+Ar*Ar);let Vl=Math.atan2(Ar,Mo);Vl-=Wt;const _d=rs*Math.cos(Vl),fd=rs*Math.sin(Vl);zt=_d+In.width,Nt=fd+In.height,zt=Math.max(0,Math.min(Ne,zt)),Nt=Math.max(0,Math.min(Le,Nt)),_t=zt===Ne,ti=Nt===Le,io&&_n&&Pt&&zt!==Nt&&(zt=Nt=Math.min(zt,Nt)),zt+=Ei,Nt+=cn;const md=[{val:zt,pos:0,type:"end"}],ka=[{val:Nt,pos:0,type:"end"}];let Wr,Xs,Kr,Ll;_n&&md.forEach((ji=>{Wr||(Wr=La(wi,ji,Na),Wr&&(Xs=ji.pos))})),Pt&&ka.forEach((ji=>{Kr||(Kr=La(Ao,ji,Na),Kr&&(Ll=ji.pos))})),Wr?n(6,pe=Wr.val):n(6,pe=null),Kr?n(7,kt=Kr.val):n(7,kt=null);const yt=(Wr&&Xs!==void 0&&Wr.val-Xs||zt)-Ei,Vi=(Kr&&Ll!==void 0&&Kr.val-Ll||Nt)-cn;if(_n)if(!Ae||!Re||yt<=Tt)En=yt,En=Math.max(0,Math.min(Ne,En)),Qt=!1;else{let ji=0;for(Ht=0,Ht=0;Ht<ut;++Ht){const lo=Ae.columns[Re.columnStart+Ht];if(Ht>=1&&yt<ji+lo/3)break;ji+=lo}En=Ae.columns.slice(Re.columnStart,Re.columnStart+Ht).reduce(((lo,oo)=>lo+oo),0)-parseFloat(ge.marginLeft)-parseFloat(ge.marginRight),Qt=!0}if(Pt)if(!Ae||!Re||Vi<=fn)yn=Vi,yn=Math.max(0,Math.min(Le,yn)),Mn=!1;else{let ji=0;On=0;const lo=Ae.rows.reduce(((wo,Sn)=>wo+Sn),0),oo=wo=>{const Sn=Ae;return wo<Sn.rows.length?Sn.rows[wo]:lo/Sn.rows.length};for(On=0;On<Ge;++On){const wo=oo(Re.rowStart+On);if(On>=1&&Vi<ji+wo/3)break;ji+=wo}yn=0;for(let wo=Re.rowStart;wo<Re.rowStart+On;++wo)yn+=oo(wo);yn=yn-parseFloat(ge.marginTop)-parseFloat(ge.marginBottom),Mn=!0}if(Be&&((Ht>1||On>1)&&(En=Math.max(En,Tt),yn=Math.max(yn,fn)),Ee=`${Ht}x${On}`),n(51,fe.style.width=`${En}px`,fe),n(51,fe.style.height=`${yn}px`,fe),ye&&!Be){const ji={x:Ei+En/2,y:cn+yn/2},lo={x:ji.x+-En/2*ie- -yn/2*L,y:ji.y+-En/2*L+-yn/2*ie};To=ae.x-lo.x,Di=ae.y-lo.y,n(51,fe.style.transform=`translate(${Ei+To}px, ${cn+Di}px) rotate(${ye}deg)`,fe),Qe={top:cn+Di+Jn.top,left:Ei+To+Jn.left,right:Ei+To+En+Jn.left,bottom:cn+Di+yn+Jn.top,width:En,height:yn}}else Qe={...Qe,right:Ei+En+Jn.left,bottom:cn+yn+Jn.top,width:En,height:yn};Ti.preventDefault()};ct=()=>{ct=()=>{},document.body.removeEventListener("pointermove",Qo),document.body.removeEventListener("pointerup",Oo),document.body.removeEventListener("pointercancel",Oo),P.style.opacity="",fe&&Ye.removeChild(fe),n(51,fe=null),Ee="",n(1,Kt=null),n(55,Ve=!1)};const Oo=()=>{ct(),n(6,pe=null),n(7,kt=null);const Ti=[],io=o==null?void 0:o.id;io&&(Be?(_n&&(Qt&&se?Ti.push({leafId:io,property:"width",value:{type:"match_parent",weight:Qt?1:void 0}}):Ti.push({leafId:io,property:"width",value:{type:"fixed",value:Math.ceil(En)}}),Qt&&Re&&Ht!==Re.columnSpan&&Ti.push({leafId:io,property:"column_span",value:Ht>1?Ht:void 0})),Pt&&(Mn&&ve?Ti.push({leafId:io,property:"height",value:{type:"match_parent",weight:Mn?1:void 0}}):Ti.push({leafId:io,property:"height",value:{type:"fixed",value:Math.ceil(yn)}}),Mn&&Re&&On!==Re.rowSpan&&Ti.push({leafId:io,property:"row_span",value:On>1?On:void 0}))):(_n&&(_t?Ti.push({leafId:io,property:"width",value:{type:"match_parent"}}):Ti.push({leafId:io,property:"width",value:{type:"fixed",value:Math.ceil(En)}})),Pt&&(ti?Ti.push({leafId:io,property:"height",value:{type:"match_parent"}}):Ti.push({leafId:io,property:"height",value:{type:"fixed",value:Math.ceil(yn)}}))),Ti.length&&A.pushCommand(new ir(r,Ti)))};document.body.addEventListener("pointermove",Qo),document.body.addEventListener("pointerup",Oo),document.body.addEventListener("pointercancel",Oo)}function nn(re,Ce,P){var On;if(c||re.button!==0||fe)return;const Z=l;if(!Z)return;const ce=A.getLeafFromNode(Z)||null;if(!ce||!(((On=ce==null?void 0:ce.props.processedJson)==null?void 0:On.type)==="grid"))return;let ge;if(st(Z,(()=>{ge=Od(Z)})),!ge)return;const Be=ge,se=re.clientX,ve=re.clientY,Ae=Ce==="column"?"columns":"rows";let Re=ge[Ae][P];const ut=Re,Ge=0,Tt=Re+ge[Ae][P+1],fn=Qt=>{const Mn=Qt.clientX-se,_n=Qt.clientY-ve;let Pt;Ce==="column"?Pt=ut+Mn:Pt=ut+_n,Re=Math.max(Ge,Math.min(Tt,Pt)),n(56,dn={columns:Be.columns.slice(0,Be.columns.length-1),rows:Be.rows.slice(0,Be.rows.length-1)}),n(56,dn[Ae][P]=Re,dn),P+1<dn[Ae].length&&n(56,dn[Ae][P+1]=Tt-Re,dn),n(56,dn.columns=Fa(dn.columns),dn),n(56,dn.rows=Fa(dn.rows),dn),Qt.preventDefault()};ct=()=>{ct=()=>{},document.body.removeEventListener("pointermove",fn),document.body.removeEventListener("pointerup",Ht),document.body.removeEventListener("pointercancel",Ht),n(56,dn=null)};const Ht=()=>{ct();const Qt=[],Mn=Ce==="column"?"columnStart":"rowStart",_n=Ce==="column"?"columnSpan":"rowSpan",Pt=Ce==="column"?"width":"height",jn=Be[Ce==="column"?"columns":"rows"].slice(),Pn=jn.slice();Pn[P]=Re,Pn[P+1]=Tt-Re,ce.childs.forEach((In=>{var yi,yo,Oi;const Jn=(yi=In.props.processedJson)==null?void 0:yi.__leafId;if(!In.props.node||!Jn)return;const ri=Gm(In.props.node);if(P+1===ri[Mn]||P+1===ri[Mn]+ri[_n]){const Yi=Xm(jn.slice(ri[Mn],ri[Mn]+ri[_n]));let Ei=Xm(Pn.slice(ri[Mn],ri[Mn]+ri[_n]));const cn=In.props.processedJson.margins;if(((yo=In.props.processedJson[Pt])==null?void 0:yo.type)==="fixed"){const vi=In.props.processedJson[Pt].value;Ei-=Yi-vi}else Ce==="column"?Ei-=Number((cn==null?void 0:cn.left)||0)+Number((cn==null?void 0:cn.right)||0):Ei-=Number((cn==null?void 0:cn.top)||0)+Number((cn==null?void 0:cn.bottom)||0);if(((Oi=In.props.processedJson[Pt])==null?void 0:Oi.type)==="fixed"&&Math.abs(Ei-In.props.processedJson[Pt].value)<1)return;Qt.push({leafId:Jn,property:Pt,value:{type:"fixed",value:Ei}})}})),Qt.length&&A.pushCommand(new ir(r,Qt))};document.body.addEventListener("pointermove",fn),document.body.addEventListener("pointerup",Ht),document.body.addEventListener("pointercancel",Ht)}function ei(re){var On;if(c||re.button!==0||fe)return;const Ce=l;if(!Ce)return;const P=A.getLeafFromNode(Ce)||null;if(!P)return;const ce=((On=P.props.processedJson.transform)==null?void 0:On.rotation)||0,be=Ce.style.transform;Ce.style.transform="";const ge=Ce.getBoundingClientRect();Ce.style.transform=be;const Be=getComputedStyle(Ce),se=Ye.getBoundingClientRect(),ve=parseFloat(Be.width),Ae=parseFloat(Be.height),Re=ge.left-se.left,ut=ge.top-se.top;re.preventDefault(),re.stopPropagation();const Ge=getComputedStyle(Ce);n(51,fe=Ce.cloneNode(!0)),fe.classList.add("renderer__component-clone"),n(51,fe.style.transform=`translate(${Re}px, ${ut}px) rotate(${ce||0}deg)`,fe),n(51,fe.style.width=`${Math.ceil(ve)}px`,fe),n(51,fe.style.height=`${Math.ceil(Ae)}px`,fe),n(51,fe.style.fontSize=Ge.fontSize,fe),Ye.appendChild(fe),Ce.style.opacity="0",Qe={top:ut+se.top,left:Re+se.left,right:Re+ve+se.left,bottom:ut+Ae+se.top,width:ve,height:Ae},n(4,ye=ce||0),ye<0&&n(4,ye+=360),n(10,Xe=!0);const Tt={x:ge.left+ve/2,y:ge.top+Ae/2},fn=Qt=>{if(!fe)return;const Mn=Qt.shiftKey,_n=Qt.clientX-Tt.x,Pt=Qt.clientY-Tt.y;let jn=Math.atan2(Pt,_n);if(Mn){const Pn=Math.PI/4;jn=Math.round(jn/Pn)*Pn}n(4,ye=jn/Math.PI*180+90),ye<0&&n(4,ye+=360),n(51,fe.style.transform=`translate(${Re}px, ${ut}px) rotate(${ye}deg)`,fe),Qt.preventDefault()};ct=()=>{ct=()=>{},document.body.removeEventListener("pointermove",fn),document.body.removeEventListener("pointerup",Ht),document.body.removeEventListener("pointercancel",Ht),Ce.style.opacity="",fe&&Ye.removeChild(fe),n(51,fe=null),n(1,Kt=null),n(10,Xe=!1)};const Ht=()=>{ct();const Qt=o==null?void 0:o.id;if(!Qt)return;let Mn=Math.round(ye);Mn<0&&(Mn+=360),A.pushCommand(new ir(r,[{leafId:Qt,property:"transform",value:{rotation:Mn}}]))};document.body.addEventListener("pointermove",fn),document.body.addEventListener("pointerup",Ht),document.body.addEventListener("pointercancel",Ht)}function Ft(re,Ce){const P=re.props.json,Z=re.props.processedJson;let ce=Z.alignment_horizontal||"left",be=Z.alignment_vertical||"top";const ge=J.getBoundingClientRect(),se=re.props.node.getBoundingClientRect(),ve={...P.margins||{}},Ae=[];ce==="center"&&(ce="left",Ae.push({leafId:re.id,property:"alignment_horizontal",value:ce}),delete ve.right,ve.left=Math.ceil(se.left-ge.left)),be==="center"&&(be="top",Ae.push({leafId:re.id,property:"alignment_vertical",value:be}),delete ve.bottom,ve.top=Math.ceil(se.top-ge.top)),ce==="left"?(ve.left||(ve.left=0),ve.left+=Ce.x,ve.right!==void 0&&(ve.right-=Ce.x)):(ve.right||(ve.right=0),ve.right-=Ce.x,ve.left!==void 0&&(ve.left+=Ce.x)),be==="top"?(ve.top||(ve.top=0),ve.top+=Ce.y,ve.bottom!==void 0&&(ve.bottom-=Ce.y)):(ve.bottom||(ve.bottom=0),ve.bottom-=Ce.y,ve.top!==void 0&&(ve.top+=Ce.y));const Re={left:ge.width-se.width,right:ge.width-se.width,top:ge.height-se.height,bottom:ge.height-se.height};for(const ut of["left","right","top","bottom"])ve[ut]&&(ve[ut]=Math.max(0,Math.min(Re[ut],ve[ut])));(Ae||!ca(P.margins,ve))&&(Ae.push({leafId:re.id,property:"margins",value:ve}),A.pushCommand(new ir(r,Ae)))}function xt(re,Ce){const P=re.parent;if(!P)return;const Z=P.props.processedJson.type,ce=P.props.processedJson.orientation||(Z==="container"?"vertical":"horizontal"),be=P.childs.indexOf(re);let ge;ce==="horizontal"&&Ce.x!==0?ge=be+Ce.x:ce==="vertical"&&Ce.y!==0&&(ge=be+Ce.y),ge!==void 0&&ge>=0&&ge<=P.childs.length&&A.pushCommand(new Ul(A,{leafId:re.id,newParentId:P.id,insertIndex:ge}))}function dt(re,Ce){var Re;const P=re.parent;if(!P)return;const Z=re.props.processedJson,be=re.props.node.getBoundingClientRect(),ge=P.props.node.getBoundingClientRect(),Be=Ce.x?"width":"height";(Re=Z[Be])==null||Re.type;const se=ge[Be==="width"?"right":"bottom"]-be[Be==="width"?"left":"top"],ve=be[Be],Ae=Math.max(0,Math.min(se,Math.round(ve+Ce[Be==="width"?"x":"y"])));Math.abs(ve-Ae)>=1&&A.pushCommand(new ir(r,[{leafId:re.id,property:Be,value:Ae===se?{type:"match_parent"}:{type:"fixed",value:Ae}}]))}function We(re){const Ce=o;if(!Ce||c)return;const P=CL.isPressed(re)||bp.isPressed(re),Z=TL.isPressed(re)||yp.isPressed(re),ce=zL.isPressed(re)||wp.isPressed(re),be=EL.isPressed(re)||$p.isPressed(re),ge=bp.isPressed(re)||yp.isPressed(re)||wp.isPressed(re)||$p.isPressed(re),Be=AL.isPressed(re)||kp.isPressed(re),se=OL.isPressed(re)||jp.isPressed(re),ve=ML.isPressed(re)||Sp.isPressed(re),Ae=PL.isPressed(re)||Cp.isPressed(re),Re=kp.isPressed(re)||jp.isPressed(re)||Sp.isPressed(re)||Cp.isPressed(re);if(w1.isPressed(re))Ce.parent&&A.deleteLeaf(Ce);else if(P||Z||ce||be){const ut={x:be?1:ce?-1:0,y:Z?1:P?-1:0};Ce.parent===r?(ge&&(ut.x*=kg,ut.y*=kg),Ft(Ce,ut)):xt(Ce,ut)}else if(Be||se||ve||Ae){const ut={x:Ae?1:ve?-1:0,y:se?1:Be?-1:0};Re&&(ut.x*=jg,ut.y*=jg),dt(Ce,ut)}else if(j1.isPressed(re))Fn();else if(S1.isPressed(re))Bt();else if(zu.isPressed(re))gt();else return;re.preventDefault(),re.stopPropagation()}let bi=0,hi=0,Bn=null;function eo(re){bi=re.pageX,hi=re.pageY,Bn=o}function Ct(re){const Ce=(re.pageX-bi)*(re.pageX-bi)+(re.pageY-hi)*(re.pageY-hi);re.target===ot&&Ce<64&&Bn&&Bn===o&&Y.set(null)}function Wn(re){var Pn,In,Jn;if(fe)return;const Ce=o;if(!Ce)return;const P=Ce.props.json,Z=Ce.props.processedJson,ce=vn(Z).text;if(!(P.type==="text"||P.type in Ui&&Ui[P.type].inlineTextEditorProp))return;const be=Ce.props.node;if(!be)return;ot.focus({preventScroll:!0}),Y.set(Ce),x.set(be),de.set(null),_e.set(null),oe.set(null),re.preventDefault();const ge=((Pn=Z.transform)==null?void 0:Pn.rotation)||0,Be=be.style.transform;be.style.transform="";const se=be.getBoundingClientRect();be.style.transform=Be;const ve=getComputedStyle(be),Ae=Ye.getBoundingClientRect(),Re=parseFloat(ve.width),ut=parseFloat(ve.height),Ge=parseFloat(ve.paddingTop),Tt=parseFloat(ve.paddingRight),fn=parseFloat(ve.paddingBottom),Ht=parseFloat(ve.paddingLeft),On=se.left-Ae.left+Ht,Qt=se.top-Ae.top+Ge,Mn=be.parentElement.getBoundingClientRect();n(51,fe=be.cloneNode(!0)),fe.classList.add("renderer__component-clone"),fe.classList.add("renderer__component-clone_inplace"),n(51,fe.style.transform=`translate(${se.left-Ae.left}px, ${se.top-Ae.top}px) rotate(${ge}deg)`,fe),n(51,fe.style.paddingRight=`${Tt}px`,fe),n(51,fe.style.paddingLeft=`${Ht}px`,fe),n(51,fe.style.width=`${Math.ceil(Re-Ht-Tt)}px`,fe),n(51,fe.style.height=`${Math.ceil(ut-Ge-fn)}px`,fe),n(51,fe.style.fontSize=ve.fontSize,fe),Array.from(fe.children).forEach((ri=>{ri instanceof HTMLElement&&(ri.style.opacity="0")})),Ye.appendChild(fe);const _n={left:`${se.left+Ht}px`,top:`${se.top+Ge}px`,width:`${Math.ceil(Re-Ht-Tt)}px`,maxWidth:`${Mn.right-se.left-Ht-Tt}px`,fontSize:ve.fontSize};((In=Ce.props.processedJson.width)==null?void 0:In.type)==="wrap_content"&&(_n.width="max-content",Ce.props.processedJson.width.constrained||(_n.maxWidth="")),Qe={top:Qt+Ae.top,left:On+Ae.left,right:On+Re+Ae.left,bottom:Qt+ut+Ae.top,width:Re,height:ut},n(4,ye=ge),be.style.opacity="0",n(54,le=!0);let Pt=P.text;const jn=A.getTankerKey(Pt);jn&&(Pt=((Jn=u[jn])==null?void 0:Jn[d])||"",!Pt)||M().show({text:jn?Pt:ce,json:Z,leaf:Ce,rotation:ge,disabled:c,textDisabled:c||!!jn||Pt!==ce,style:_n,onResoze:gi,callback:rn})}function gi(re){fe&&(n(51,fe.style.width=re.width+"px",fe),n(51,fe.style.height=re.height+"px",fe))}function rn(re){n(54,le=!1),fe&&(Ye.removeChild(fe),n(51,fe=null));const Ce=re.text,P=re.ranges,Z=re.images,ce=re.textAlign,be=re.leaf.props.processedJson.text,ge=vn({text:be}).text,Be=re.leaf.props.json,se=re.leaf.props.node,ve=Be.type==="text"?"text":Ui[Be.type].inlineTextEditorProp;if(se.style.opacity="",c||!ve)return;const Ae={text:Be.text,ranges:Be.ranges,images:Be.images,textAlign:Be.text_alignment_horizontal||"left"},Re=A.getTankerKey(Be.text);let ut=!1;const Ge={},Tt=Re||be!==ge;Ge.text=Tt?Ae.text:Ce,Ge.textAlign=ce;const fn=[];if(P.length)if(P[0].start===0&&P[P.length-1].end===Ce.length){const Ht=P[0];for(const Qt in Ht)Qt!=="start"&&Qt!=="end"&&Be[Qt]!==Ht[Qt]&&(fn.push({property:Qt,value:Ht[Qt]}),ut=!0);const On=P.filter((Qt=>!Ite(Qt,Ht)));On.length&&(On.forEach((Qt=>{for(const Mn in Qt)Mn!=="start"&&Mn!=="end"&&Qt[Mn]===Ht[Mn]&&delete Qt[Mn]})),Ge.ranges=On)}else Ge.ranges=P;Z.length&&(Ge.images=Z),(ut||!ca(Ae,Ge))&&A.pushCommand(new ir(r,[{leafId:re.leaf.id,property:ve,value:Ge.text},{leafId:re.leaf.id,property:"ranges",value:Ge.ranges},{leafId:re.leaf.id,property:"images",value:Ge.images},{leafId:re.leaf.id,property:"text_alignment_horizontal",value:Ge.textAlign!=="left"?Ge.textAlign:void 0},...fn.map((Ht=>({leafId:re.leaf.id,property:Ht.property,value:Ht.value})))]))}function Fn(){o&&V.set(o)}function Bt(){o&&a&&A.pasteLeaf(a,o)}function hn(){var Be;const re=o,Ce=l;if(!re||!Ce)return;const P=re.props.json,Z=re.props.processedJson;if(!Z)return;let ce,be,ge;if(P.type==="_template_lottie")ce="lottie",be=s("props.lottie_url"),ge=((Be=P.lottie_params)==null?void 0:Be.lottie_url)||"";else if(Z.type==="image")ce="image",be=s("props.image_url"),ge=Z.image_url;else if(Z.type==="gif")ce="gif",be=s("props.image_url"),ge=Z.gif_url;else return;D().show({target:Ce,title:be,value:{url:ge},subtype:ce,hasSize:!1,callback(se){let ve;ce==="image"?ve="image_url":ce==="gif"?ve="gif_url":ce==="lottie"&&(ve="lottie_params.lottie_url"),ve&&A.pushCommand(new ir(r,[{leafId:re.id,property:ve,value:se.url}]))}})}function un(){if(!le)return;const re=o,Ce=re==null?void 0:re.props.node;if(!Ce)return;const P=Ce.getBoundingClientRect(),Z=getComputedStyle(Ce),ce=parseFloat(Z.paddingTop),be=parseFloat(Z.paddingLeft);M().setPosition(`${P.left+be}px`,`${P.top+ce}px`)}Bs((()=>{ne==null||ne.$destroy()}));function Tn(re){pt[re?"unshift":"push"]((()=>{ue=re,n(0,ue)}))}function Yn(re){pt[re?"unshift":"push"]((()=>{J=re,n(3,J)}))}const Se=re=>St(re,"down-right"),bn=re=>St(re,"right"),ft=re=>St(re,"down");function z(re){pt[re?"unshift":"push"]((()=>{Ye=re,n(5,Ye)}))}const Mt=(re,Ce)=>nn(Ce,"column",re),zn=(re,Ce)=>nn(Ce,"row",re),Ni=re=>Ot(re,"down-right"),mi=re=>Ot(re,"right"),Fe=re=>Ot(re,"down");function Ii(re){pt[re?"unshift":"push"]((()=>{ot=re,n(2,ot)}))}return t.$$set=re=>{"viewport"in re&&n(49,w=re.viewport),"theme"in re&&n(50,k=re.theme)},t.$$.update=()=>{var re,Ce,P;if(t.$$.dirty[1]&262144&&n(13,i=w.split("x").map(Number)),t.$$.dirty[1]&4194304|t.$$.dirty[2]&4&&v&&ne&&(ne.$destroy(),n(53,ne=void 0)),t.$$.dirty[1]&4194304|t.$$.dirty[2]&2&&h&&ne&&(ne.$destroy(),n(53,ne=void 0)),t.$$.dirty[1]&1077936128&&_&&ne&&(ne.$destroy(),n(53,ne=void 0)),t.$$.dirty[0]&2|t.$$.dirty[1]&667942912|t.$$.dirty[2]&24&&ne&&li(p,l,fe,Kt,le,b,y,Sg,Ve,dn),t.$$.dirty[1]&4456448&&ne&&w&&ur().then(bt),t.$$.dirty[1]&606076928){vt&&(vt.disconnect(),n(52,vt=null));const Z=[...new Set([...p||[],l].filter(kr))];if(Z.length){const ce=n(52,vt=new ResizeObserver(bt));Z.forEach((be=>{ce.observe(be)}))}}t.$$.dirty[0]&1|t.$$.dirty[1]&1476919296|t.$$.dirty[2]&1&&(P=(Ce=(re=f.object.card)==null?void 0:re.states)==null?void 0:Ce[0])!=null&&P.div&&ue&&d!==void 0&&ht(f.object,u,d,k,_)},[ue,Kt,ot,J,ye,Ye,pe,kt,$e,et,Xe,Rn,Ln,i,s,c,E,U,B,C,q,V,Y,x,_e,G,Q,ze,W,Ke,at,Te,Ut,Lt,wn,Kn,fi,Je,qt,St,Ot,nn,ei,We,eo,Ct,Wn,hn,un,w,k,fe,vt,ne,le,Ve,dn,l,d,u,p,_,f,h,v,y,b,Tn,Yn,Se,bn,ft,z,Mt,zn,Ni,mi,Fe,Ii]}class Qte extends Gt{constructor(e){super(),Yt(this,e,xte,Zte,Rt,{viewport:49,theme:50},null,[-1,-1,-1,-1,-1])}}function ene(t){let e,n,i,o;const r=t[4].default,s=Fs(r,t,t[3],null);return{c(){e=S("button"),s&&s.c(),g(e,"class","canvas-button svelte-86ydbs"),e.disabled=t[2],g(e,"aria-label",t[1]),g(e,"data-custom-tooltip",t[1])},m(l,a){N(l,e,a),s&&s.m(e,null),t[6](e),n=!0,i||(o=ee(e,"click",t[5]),i=!0)},p(l,[a]){s&&s.p&&(!n||a&8)&&qs(s,r,l,l[3],n?Ns(r,l[3],a,null):Rs(l[3]),null),(!n||a&4)&&(e.disabled=l[2]),(!n||a&2)&&g(e,"aria-label",l[1]),(!n||a&2)&&g(e,"data-custom-tooltip",l[1])},i(l){n||(I(s,l),n=!0)},o(l){H(s,l),n=!1},d(l){l&&F(e),s&&s.d(l),t[6](null),i=!1,o()}}}function tne(t,e,n){let{$$slots:i={},$$scope:o}=e,{node:r=void 0}=e,{title:s}=e,{disabled:l=!1}=e;function a(d){mn.call(this,t,d)}function c(d){pt[d?"unshift":"push"]((()=>{r=d,n(0,r)}))}return t.$$set=d=>{"node"in d&&n(0,r=d.node),"title"in d&&n(1,s=d.title),"disabled"in d&&n(2,l=d.disabled),"$$scope"in d&&n(3,o=d.$$scope)},[r,s,l,o,i,a,c]}class Xl extends Gt{constructor(e){super(),Yt(this,e,tne,ene,Rt,{node:0,title:1,disabled:2})}}const Sl="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M15.106.409a1%201%200%200%200-1.224.707l-.647%202.415a1%201%200%201%200%201.931.517l.647-2.414a1%201%200%200%200-.707-1.225ZM5.5%2011.999a6.5%206.5%200%201%200%2013%20.001%206.5%206.5%200%200%200-13%200Zm11%200a4.5%204.5%200%201%201-9%200%204.5%204.5%200%200%201%209%200Zm-7.665%207.952a1%201%200%201%201%201.931.518l-.647%202.415a1%201%200%201%201-1.931-.518l.647-2.415Zm-4.696-4.567a1%201%200%200%201%201%201.732l-2.165%201.25a1%201%200%200%201-1-1.732l2.165-1.25ZM22.393%206a1%201%200%200%200-1.366-.366l-2.165%201.25a1%201%200%200%200%201%201.732l2.165-1.25A1%201%200%200%200%2022.393%206ZM4.049%208.834a1%201%200%201%201-.518%201.932l-2.415-.647a1%201%200%200%201%20.518-1.932l2.415.647Zm19.543%206.272a1%201%200%200%200-.708-1.225l-2.414-.647a1%201%200%201%200-.518%201.932l2.415.647a1%201%200%200%200%201.224-.707ZM8.615%204.139a1%201%200%201%201-1.732%201l-1.25-2.165a1%201%200%201%201%201.732-1l1.25%202.165ZM18%2022.392a1%201%200%200%200%20.366-1.366l-1.25-2.165a1%201%200%200%200-1.732%201l1.25%202.165a1%201%200%200%200%201.366.366Z'/%3e%3c/svg%3e",Cl="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M3.515%2017.886c2.438%203.06%207.034%204.63%2010.866%203.601%205.28-1.417%208.413-6.855%206.998-12.145-1.027-3.841-4.681-7.045-8.546-7.63a.991.991%200%200%200-1.019%201.45c1.87%203.48%202.024%206.459.53%209.05-1.492%202.591-4.143%203.947-8.085%204.064a.992.992%200%200%200-.744%201.61Zm15.952-8.031c1.132%204.232-1.374%208.582-5.598%209.716-2.408.647-5.678.002-7.739-1.5%203.437-.55%206.382-2.183%207.929-4.868%201.547-2.684%201.479-6.05.235-9.308%202.328%201.037%204.528%203.546%205.173%205.96Z'/%3e%3c/svg%3e",Cg="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20fill='none'%3e%3cpath%20fill='%23FC3F6C'%20d='M9%2017.333A8.333%208.333%200%201%200%209%20.666a8.333%208.333%200%200%200%200%2016.667ZM5.169%205.168a.833.833%200%200%201%201.179%200L9%207.821l2.652-2.653a.833.833%200%201%201%201.179%201.179l-2.653%202.652%202.653%202.653a.833.833%200%201%201-1.179%201.178L9%2010.178%206.348%2012.83a.833.833%200%200%201-1.179-1.178l2.652-2.653L5.17%206.347a.833.833%200%200%201%200-1.179Z'/%3e%3c/svg%3e",Tg="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20fill='none'%3e%3cpath%20fill='%23FF003D'%20d='M9%2017.333A8.333%208.333%200%201%200%209%20.666a8.333%208.333%200%200%200%200%2016.667ZM5.169%205.168a.833.833%200%200%201%201.179%200L9%207.821l2.652-2.653a.833.833%200%201%201%201.179%201.179l-2.653%202.652%202.653%202.653a.833.833%200%201%201-1.179%201.178L9%2010.178%206.348%2012.83a.833.833%200%200%201-1.179-1.178l2.652-2.653L5.17%206.347a.833.833%200%200%201%200-1.179Z'/%3e%3c/svg%3e",nne="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20fill='none'%3e%3cpath%20fill='%23FF9000'%20fill-rule='evenodd'%20d='M8.576%202.969c-1.039.462-1.835%201.84-3.426%204.597l-1.126%201.95c-1.591%202.757-2.387%204.135-2.268%205.266a3.5%203.5%200%200%200%201.423%202.466c.92.668%202.512.668%205.695.668h2.252c3.183%200%204.774%200%205.694-.668a3.5%203.5%200%200%200%201.424-2.466c.119-1.131-.677-2.51-2.269-5.266l-1.125-1.95c-1.592-2.757-2.388-4.135-3.427-4.597a3.5%203.5%200%200%200-2.847%200Zm2.257%203.853a.833.833%200%200%200-1.667%200v4.01a.833.833%200%200%200%201.667%200v-4.01Zm.334%207.344a1.167%201.167%200%201%201-2.334%200%201.167%201.167%200%200%201%202.334%200Z'%20clip-rule='evenodd'/%3e%3c/svg%3e",ine="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='36'%20height='36'%3e%3cpath%20fill='none'%20stroke='%23fff'%20stroke-linecap='round'%20stroke-width='2'%20d='m6.105%2012.21%204.622-2.345m.4%2015.716s7.285.058%2010.619.01c4.37-.062%207.988-1.943%208.036-6.722.05-5.057-4.933-6.637-8.568-6.7-4.903-.084-15.11.04-15.11.04l4.628%202.212'/%3e%3c/svg%3e",one="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='36'%20height='36'%3e%3cpath%20fill='none'%20stroke='%23fff'%20stroke-linecap='round'%20stroke-width='2'%20d='m29.77%2012.21-4.623-2.345m-.4%2015.716s-7.285.058-10.618.01c-4.37-.062-7.989-1.943-8.037-6.722-.05-5.057%204.933-6.637%208.568-6.7%204.904-.084%2015.11.04%2015.11.04l-4.627%202.212'/%3e%3c/svg%3e",zg=["B","KB","MB","GB","TB"];function Ec(t){if(t<1)return"";let e=0;for(;t>1024&&e+1<zg.length;)++e,t/=1024;return Vs(t,1)+" "+zg[e]}const Eg=new Map;function ep(t,e){const n=Eg.get(t||"");if(n)return n;if(e==="image_preview"||!t||t.startsWith("data:"))return Promise.resolve(String(t||"").length);const i=fetch(t).then((o=>o.blob())).then((o=>o.size));return Eg.set(t,i),i}function bu(t,e,n){return!t||t<1?"":t>n?"error":t>e?"warn":""}const rne=t=>({}),Ag=t=>({});function sne(t){let e,n,i;return{c(){e=S("input"),g(e,"type","number"),g(e,"min",t[2]),g(e,"max",t[3]),g(e,"step",t[25]),e.required=t[4],g(e,"pattern",t[24]),g(e,"class","text__input svelte-18nxxyc"),g(e,"autocomplete","off"),g(e,"autocorrect","off"),g(e,"autocapitalize","off"),g(e,"spellcheck","false"),g(e,"id",t[0]),g(e,"placeholder",t[6]),e.disabled=t[9],te(e,"text__input_percent",t[1]==="percent"),te(e,"text__input_angle",t[1]==="angle")},m(o,r){N(o,e,r),Hn(e,t[17]),n||(i=[ee(e,"input",t[46]),ee(e,"input",t[28]),ee(e,"focus",t[29]),ee(e,"blur",t[30]),ee(e,"focus",t[43]),ee(e,"blur",t[44])],n=!0)},p(o,r){r[0]&4&&g(e,"min",o[2]),r[0]&8&&g(e,"max",o[3]),r[0]&33554432&&g(e,"step",o[25]),r[0]&16&&(e.required=o[4]),r[0]&16777216&&g(e,"pattern",o[24]),r[0]&1&&g(e,"id",o[0]),r[0]&64&&g(e,"placeholder",o[6]),r[0]&512&&(e.disabled=o[9]),r[0]&131072&&Ji(e.value)!==o[17]&&Hn(e,o[17]),r[0]&2&&te(e,"text__input_percent",o[1]==="percent"),r[0]&2&&te(e,"text__input_angle",o[1]==="angle")},d(o){o&&F(e),n=!1,qn(i)}}}function lne(t){let e,n,i;return{c(){e=S("input"),g(e,"type","text"),g(e,"pattern",t[24]),g(e,"class","text__input svelte-18nxxyc"),g(e,"autocomplete","off"),g(e,"autocorrect","off"),g(e,"autocapitalize","off"),g(e,"spellcheck","false"),g(e,"id",t[0]),g(e,"placeholder",t[6]),e.disabled=t[9],te(e,"text__input_percent",t[1]==="percent"),te(e,"text__input_angle",t[1]==="angle")},m(o,r){N(o,e,r),Hn(e,t[17]),n||(i=[ee(e,"input",t[45]),ee(e,"input",t[28]),ee(e,"focus",t[29]),ee(e,"blur",t[30]),ee(e,"focus",t[41]),ee(e,"blur",t[42])],n=!0)},p(o,r){r[0]&16777216&&g(e,"pattern",o[24]),r[0]&1&&g(e,"id",o[0]),r[0]&64&&g(e,"placeholder",o[6]),r[0]&512&&(e.disabled=o[9]),r[0]&131072&&e.value!==o[17]&&Hn(e,o[17]),r[0]&2&&te(e,"text__input_percent",o[1]==="percent"),r[0]&2&&te(e,"text__input_angle",o[1]==="angle")},d(o){o&&F(e),n=!1,qn(i)}}}function Og(t){let e;function n(r,s){if(r[1]==="percent")return cne;if(r[1]==="angle")return ane}let i=n(t),o=i&&i(t);return{c(){e=S("div"),o&&o.c(),g(e,"class","text__symbol svelte-18nxxyc"),g(e,"aria-hidden","true")},m(r,s){N(r,e,s),o&&o.m(e,null)},p(r,s){i!==(i=n(r))&&(o&&o.d(1),o=i&&i(r),o&&(o.c(),o.m(e,null)))},d(r){r&&F(e),o&&o.d()}}}function ane(t){let e;return{c(){e=Ze("°")},m(n,i){N(n,e,i)},d(n){n&&F(e)}}}function cne(t){let e;return{c(){e=Ze("%")},m(n,i){N(n,e,i)},d(n){n&&F(e)}}}function Mg(t){let e,n,i,o,r=t[14]&&t[14]>0&&Pg(t);return{c(){r&&r.c(),e=X(),n=S("button"),n.innerHTML='<div class="text__more-icon svelte-18nxxyc"></div>',g(n,"class","text__more svelte-18nxxyc")},m(s,l){r&&r.m(s,l),N(s,e,l),N(s,n,l),i||(o=ee(n,"click",t[31]),i=!0)},p(s,l){s[14]&&s[14]>0?r?r.p(s,l):(r=Pg(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},d(s){s&&(F(e),F(n)),r&&r.d(s),i=!1,o()}}}function Pg(t){let e,n=Ec(t[14])+"",i,o,r;return{c(){e=S("div"),i=Ze(n),g(e,"class","text__size-label svelte-18nxxyc"),g(e,"data-custom-tooltip",o=t[23]?t[26]("file.too_big"):void 0),po((()=>t[47].call(e))),te(e,"text__size-label_error",t[23]==="error"),te(e,"text__size-label_warn",t[23]==="warn")},m(s,l){N(s,e,l),$(e,i),r=Su(e,t[47].bind(e))},p(s,l){l[0]&16384&&n!==(n=Ec(s[14])+"")&<(i,n),l[0]&75497472&&o!==(o=s[23]?s[26]("file.too_big"):void 0)&&g(e,"data-custom-tooltip",o),l[0]&8388608&&te(e,"text__size-label_error",s[23]==="error"),l[0]&8388608&&te(e,"text__size-label_warn",s[23]==="warn")},d(s){s&&F(e),r()}}}function Ig(t){let e,n;return{c(){e=S("div"),n=Ze(t[7]),g(e,"class","text__inline-label svelte-18nxxyc")},m(i,o){N(i,e,o),$(e,n)},p(i,o){o[0]&128&<(n,i[7])},d(i){i&&F(e)}}}function dne(t){let e,n,i,o,r,s,l,a,c=`${t[22]}px`,d;function u(b,w){return b[21]==="text"?lne:sne}let p=u(t),_=p(t),f=(t[1]==="percent"||t[1]==="angle")&&Og(t),m=t[1]==="file"&&Mg(t),h=t[7]&&Ig(t);const v=t[40].button,y=Fs(v,t,t[39],Ag);return{c(){e=S("div"),_.c(),n=X(),f&&f.c(),i=X(),m&&m.c(),o=X(),h&&h.c(),r=X(),s=S("div"),y&&y.c(),g(s,"class","text__custom-buttons svelte-18nxxyc"),po((()=>t[48].call(s))),g(e,"class",a="text "+t[5]+" text_size_"+t[10]+" text_width_"+t[11]+" svelte-18nxxyc"),g(e,"title",t[12]),g(e,"aria-label",t[13]),g(e,"data-custom-tooltip",t[13]),te(e,"text_more",t[1]==="file"),te(e,"text_inline-label",!!t[7]),te(e,"text_button",t[8]),te(e,"text_disabled",t[9]),te(e,"text_error",!!(t[12]||t[19]||t[20])),je(e,"--inline-size-width",c)},m(b,w){N(b,e,w),_.m(e,null),$(e,n),f&&f.m(e,null),$(e,i),m&&m.m(e,null),$(e,o),h&&h.m(e,null),$(e,r),$(e,s),y&&y.m(s,null),l=Su(s,t[48].bind(s)),t[49](e),d=!0},p(b,w){p===(p=u(b))&&_?_.p(b,w):(_.d(1),_=p(b),_&&(_.c(),_.m(e,n))),b[1]==="percent"||b[1]==="angle"?f?f.p(b,w):(f=Og(b),f.c(),f.m(e,i)):f&&(f.d(1),f=null),b[1]==="file"?m?m.p(b,w):(m=Mg(b),m.c(),m.m(e,o)):m&&(m.d(1),m=null),b[7]?h?h.p(b,w):(h=Ig(b),h.c(),h.m(e,r)):h&&(h.d(1),h=null),y&&y.p&&(!d||w[1]&256)&&qs(y,v,b,b[39],d?Ns(v,b[39],w,rne):Rs(b[39]),Ag),(!d||w[0]&3104&&a!==(a="text "+b[5]+" text_size_"+b[10]+" text_width_"+b[11]+" svelte-18nxxyc"))&&g(e,"class",a),(!d||w[0]&4096)&&g(e,"title",b[12]),(!d||w[0]&8192)&&g(e,"aria-label",b[13]),(!d||w[0]&8192)&&g(e,"data-custom-tooltip",b[13]),(!d||w[0]&3106)&&te(e,"text_more",b[1]==="file"),(!d||w[0]&3232)&&te(e,"text_inline-label",!!b[7]),(!d||w[0]&3360)&&te(e,"text_button",b[8]),(!d||w[0]&3616)&&te(e,"text_disabled",b[9]),(!d||w[0]&1580064)&&te(e,"text_error",!!(b[12]||b[19]||b[20])),w[0]&4194304&&c!==(c=`${b[22]}px`)&&je(e,"--inline-size-width",c)},i(b){d||(I(y,b),d=!0)},o(b){H(y,b),d=!1},d(b){b&&F(e),_.d(),f&&f.d(),m&&m.d(),h&&h.d(),y&&y.d(b),l(),t[49](null)}}}function une(t,e,n){let i,o,r,s,l,a,{$$slots:c={},$$scope:d}=e,{id:u=""}=e,{value:p}=e,{subtype:_=""}=e,{fileType:f=""}=e,{min:m=void 0}=e,{max:h=void 0}=e,{required:v=!1}=e,{anyStep:y=!1}=e,{mix:b=""}=e,{placeholder:w=""}=e,{inlineLabel:k=""}=e,{hasButton:E=!1}=e,{disabled:T=!1}=e,{defaultValue:j=void 0}=e,{size:A="medium"}=e,{width:O="auto"}=e,{pattern:M=null}=e,{error:D=""}=e,{title:R=""}=e,{generateFromVideo:U=void 0}=e,{generateFromLottie:B=void 0}=e;const C=_i(),{l10nString:q}=wt(oi);Pe(t,q,(le=>n(26,a=le)));const{file2Dialog:V,warnFileLimit:Y,errorFileLimit:x,previewWarnFileLimit:de,previewErrorFileLimit:_e}=wt(An);let G=0,Q,oe=!1,he=!1,ze=!1,W,Ke=0,at=0;function Te(le,Ve,Xe){ze||(le==="percent"?n(17,G=Math.round(Number(Ve||Xe||0)*100)):le==="integer"||le==="number"||le==="angle"?n(17,G=Number(Ve||Xe||0)):le==="dict"||le==="array"?n(17,G=typeof Ve=="string"?Ve:JSON.stringify(Ve)):n(17,G=Ve||Xe||""),Qe(),n(20,he=!G&&v))}function ot(){if(i==="number"){if(G!==null){let le=Number(G);_==="percent"&&(le/=100),n(32,p=le)}}else if(_==="dict"||_==="array"){const le=String(G);if(_==="dict"&&!le.startsWith("{"))n(19,oe=!0);else if(_==="array"&&!le.startsWith("["))n(19,oe=!0);else try{n(32,p=JSON.parse(String(G))),n(19,oe=!1)}catch{n(19,oe=!0)}}else n(32,p=G);Qe(),n(20,he=!p&&v),C("change",{value:p})}function J(){ze=!0}function ue(){ze=!1}function fe(){f&&V().show({title:a(f==="video"?"props.video_sources":"props.image_url"),target:Q,subtype:f,value:{url:p?String(p):""},disabled:T,generateFromVideo:U,generateFromLottie:B,callback(le){n(32,p=le.url),C("change",{value:p})}})}function Qe(){if(!f||!p){n(14,W=void 0);return}ep(String(p),f).then((le=>{n(14,W=le)}))}function ye(le){mn.call(this,t,le)}function Ee(le){mn.call(this,t,le)}function Ye(le){mn.call(this,t,le)}function vt(le){mn.call(this,t,le)}function ne(){G=this.value,n(17,G)}function pe(){G=Ji(this.value),n(17,G)}function kt(){Ke=this.offsetWidth,n(15,Ke)}function $e(){at=this.offsetWidth,n(16,at)}function et(le){pt[le?"unshift":"push"]((()=>{Q=le,n(18,Q)}))}return t.$$set=le=>{"id"in le&&n(0,u=le.id),"value"in le&&n(32,p=le.value),"subtype"in le&&n(1,_=le.subtype),"fileType"in le&&n(33,f=le.fileType),"min"in le&&n(2,m=le.min),"max"in le&&n(3,h=le.max),"required"in le&&n(4,v=le.required),"anyStep"in le&&n(34,y=le.anyStep),"mix"in le&&n(5,b=le.mix),"placeholder"in le&&n(6,w=le.placeholder),"inlineLabel"in le&&n(7,k=le.inlineLabel),"hasButton"in le&&n(8,E=le.hasButton),"disabled"in le&&n(9,T=le.disabled),"defaultValue"in le&&n(35,j=le.defaultValue),"size"in le&&n(10,A=le.size),"width"in le&&n(11,O=le.width),"pattern"in le&&n(36,M=le.pattern),"error"in le&&n(12,D=le.error),"title"in le&&n(13,R=le.title),"generateFromVideo"in le&&n(37,U=le.generateFromVideo),"generateFromLottie"in le&&n(38,B=le.generateFromLottie),"$$scope"in le&&n(39,d=le.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&2|t.$$.dirty[1]&18&&Te(_,p,j),t.$$.dirty[0]&2&&n(21,i=_==="angle"||_==="integer"||_==="number"||_==="percent"?"number":"text"),t.$$.dirty[0]&2|t.$$.dirty[1]&8&&n(25,o=y?"any":_==="integer"||_==="percent"||_==="angle"?1:.01),t.$$.dirty[0]&2|t.$$.dirty[1]&32&&n(24,r=_==="integer"||_==="percent"||_==="angle"?"\\d+":M),t.$$.dirty[0]&16384|t.$$.dirty[1]&4&&n(23,s=f==="image_preview"?bu(W,de,_e):bu(W,Y,x)),t.$$.dirty[0]&114688&&n(22,l=(W&&W>0&&Ke>0?Ke:0)+at)},[u,_,m,h,v,b,w,k,E,T,A,O,D,R,W,Ke,at,G,Q,oe,he,i,l,s,r,o,a,q,ot,J,ue,fe,p,f,y,j,M,U,B,d,c,ye,Ee,Ye,vt,ne,pe,kt,$e,et]}class go extends Gt{constructor(e){super(),Yt(this,e,une,dne,Rt,{id:0,value:32,subtype:1,fileType:33,min:2,max:3,required:4,anyStep:34,mix:5,placeholder:6,inlineLabel:7,hasButton:8,disabled:9,defaultValue:35,size:10,width:11,pattern:36,error:12,title:13,generateFromVideo:37,generateFromLottie:38},null,[-1,-1])}}const{window:Md}=va;function Dg(t){let e,n,i;return{c(){e=S("button"),g(e,"class","context-dialog__close svelte-fg159l")},m(o,r){N(o,e,r),n||(i=ee(e,"click",t[18]),n=!0)},p:tn,d(o){o&&F(e),n=!1,i()}}}function pne(t){let e,n,i,o,r=`${t[10]}px`,s=`${t[11]}px`,l,a,c;const d=t[29].default,u=Fs(d,t,t[28],null);let p=t[0]&&Dg(t);return{c(){e=S("dialog"),n=S("div"),u&&u.c(),i=X(),p&&p.c(),g(n,"class","context-dialog__content svelte-fg159l"),g(e,"class",o="context-dialog context-dialog_direction_"+t[1]+" svelte-fg159l"),te(e,"context-dialog_hidden",t[12]),te(e,"context-dialog_hiding",t[8]),te(e,"context-dialog_disable-animation",t[13]||t[14]),te(e,"context-dialog_wide",t[5]),te(e,"context-dialog_fully-showed",t[9]),te(e,"context-dialog_overflow_visible",t[3]==="visible"),je(e,"left",r),je(e,"top",s),je(e,"width",t[2])},m(_,f){N(_,e,f),$(e,n),u&&u.m(n,null),$(n,i),p&&p.m(n,null),t[30](n),t[31](e),l=!0,a||(c=[ee(Md,"pointerdown",t[20]),ee(Md,"click",t[21]),ee(Md,"resize",t[15]),ee(n,"pointerdown",(function(){Yo(t[4]?t[23]:null)&&(t[4]?t[23]:null).apply(this,arguments)})),ee(e,"click",t[16]),ee(e,"close",t[17]),ee(e,"animationend",t[19]),ee(e,"keydown",t[22])],a=!0)},p(_,f){t=_,u&&u.p&&(!l||f[0]&268435456)&&qs(u,d,t,t[28],l?Ns(d,t[28],f,null):Rs(t[28]),null),t[0]?p?p.p(t,f):(p=Dg(t),p.c(),p.m(n,null)):p&&(p.d(1),p=null),(!l||f[0]&2&&o!==(o="context-dialog context-dialog_direction_"+t[1]+" svelte-fg159l"))&&g(e,"class",o),(!l||f[0]&4098)&&te(e,"context-dialog_hidden",t[12]),(!l||f[0]&258)&&te(e,"context-dialog_hiding",t[8]),(!l||f[0]&24578)&&te(e,"context-dialog_disable-animation",t[13]||t[14]),(!l||f[0]&34)&&te(e,"context-dialog_wide",t[5]),(!l||f[0]&514)&&te(e,"context-dialog_fully-showed",t[9]),(!l||f[0]&10)&&te(e,"context-dialog_overflow_visible",t[3]==="visible"),f[0]&1024&&r!==(r=`${t[10]}px`)&&je(e,"left",r),f[0]&2048&&s!==(s=`${t[11]}px`)&&je(e,"top",s),f[0]&4&&je(e,"width",t[2])},i(_){l||(I(u,_),l=!0)},o(_){H(u,_),l=!1},d(_){_&&F(e),u&&u.d(_),p&&p.d(),t[30](null),t[31](null),a=!1,qn(c)}}}const Vg=16;function _ne(t,e,n){let{$$slots:i={},$$scope:o}=e,{target:r}=e,{hasClose:s=!1}=e,{direction:l="auto"}=e,{width:a=""}=e,{overflow:c="hidden"}=e,{canMove:d=!1}=e,{offset:u=38}=e,{offsetY:p=0}=e,{wide:_=!1}=e;function f(){n(8,k=!0)}const m=_i();function h(){if(y){if(D){const oe=y.getBoundingClientRect();if(oe.left>=0&&oe.top>=0&&oe.right<=window.innerWidth&&oe.bottom<=window.innerHeight)return}n(10,[T,j]=C(),T,n(11,j)),n(12,A=!1),D=!1}}const v=new ResizeObserver(h);let y,b,w=!1,k=!1,E=!1,T=0,j=0,A=!0,O=!1,M=!1,D=!1;function R(oe){oe.target===y&&w&&n(8,k=!0)}function U(){n(12,A=!0),v.unobserve(y),m("close")}function B(){n(8,k=!0)}function C(){let oe=0,he=0;const ze=y.getBoundingClientRect(),W=r.getBoundingClientRect();let Ke=l;return Ke==="auto"&&(Ke=W.left+W.width/2<window.innerWidth/2?"right":"left"),Ke==="left"?oe=Math.max(16,W.left-u-ze.width):Ke==="down"?oe=W.left+W.width/2-ze.width/2:oe=W.right+u,oe+ze.width>window.innerWidth&&(oe=window.innerWidth-ze.width),oe<0&&(oe=0),Ke==="left"||Ke==="right"?(he=window.scrollY+W.top+p,he+ze.height+Vg>window.scrollY+window.innerHeight&&(he=window.scrollY+window.innerHeight-(ze.height+Vg))):he=window.scrollY+W.bottom+p,he=Math.max(he,0),[oe,he]}function q(oe){oe.target===y&&(k?y.close():n(9,E=!0))}function V(oe){w=oe.target===y}function Y(oe){if(E){const he=oe.composedPath();y&&!he.includes(y)&&!he.some((ze=>ze instanceof HTMLDialogElement))&&n(8,k=!0)}}function x(oe){de&&zu.isPressed(oe)&&(oe.preventDefault(),oe.stopPropagation(),de())}let de=null;function _e(oe){if(oe.target!==b)return;oe.preventDefault();const he=oe.pageX,ze=oe.pageY,W=T,Ke=j;n(13,O=!0);const at=ot=>{n(10,T=ot.pageX-he+W),n(11,j=ot.pageY-ze+Ke),D=!0};de=()=>{document.body.removeEventListener("pointermove",at),document.body.removeEventListener("pointerup",Te),document.body.removeEventListener("pointercancel",Te),de=null,n(13,O=!1)};const Te=()=>{de==null||de()};document.body.addEventListener("pointermove",at),document.body.addEventListener("pointerup",Te),document.body.addEventListener("pointercancel",Te)}Uc((()=>{n(8,k=!1),n(9,E=!1),y.showModal(),v.observe(y),A&&(n(10,[T,j]=C(),T,n(11,j)),n(12,A=!1))}));function G(oe){pt[oe?"unshift":"push"]((()=>{b=oe,n(7,b)}))}function Q(oe){pt[oe?"unshift":"push"]((()=>{y=oe,n(6,y)}))}return t.$$set=oe=>{"target"in oe&&n(24,r=oe.target),"hasClose"in oe&&n(0,s=oe.hasClose),"direction"in oe&&n(1,l=oe.direction),"width"in oe&&n(2,a=oe.width),"overflow"in oe&&n(3,c=oe.overflow),"canMove"in oe&&n(4,d=oe.canMove),"offset"in oe&&n(25,u=oe.offset),"offsetY"in oe&&n(26,p=oe.offsetY),"wide"in oe&&n(5,_=oe.wide),"$$scope"in oe&&n(28,o=oe.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&32&&_!==void 0&&(n(14,M=!0),setTimeout((()=>{n(14,M=!1)}),50))},[s,l,a,c,d,_,y,b,k,E,T,j,A,O,M,h,R,U,B,q,V,Y,x,_e,r,u,p,f,o,i,G,Q]}class Tr extends Gt{constructor(e){super(),Yt(this,e,_ne,pne,Rt,{target:24,hasClose:0,direction:1,width:2,overflow:3,canMove:4,offset:25,offsetY:26,wide:5,hide:27},null,[-1,-1])}get hide(){return this.$$.ctx[27]}}const fne=t=>({}),Lg=t=>({});function Fg(t){let e,n,i,o,r,s;const l=t[12].default,a=Fs(l,t,t[11],null);return{c(){e=S("div"),n=S("div"),a&&a.c(),g(n,"class","spoiler2__content-inner svelte-mr4ej7"),g(e,"class","spoiler2__content")},m(c,d){N(c,e,d),$(e,n),a&&a.m(n,null),o=!0,r||(s=[ee(e,"introstart",t[8]),ee(e,"outrostart",t[8]),ee(e,"introend",t[9]),ee(e,"outroend",t[9]),ee(e,"outroend",t[7])],r=!0)},p(c,d){a&&a.p&&(!o||d&2048)&&qs(a,l,c,c[11],o?Ns(l,c[11],d,null):Rs(c[11]),null)},i(c){o||(I(a,c),c&&po((()=>{o&&(i||(i=Zi(e,Go,{},!0)),i.run(1))})),o=!0)},o(c){H(a,c),c&&(i||(i=Zi(e,Go,{},!1)),i.run(0)),o=!1},d(c){c&&F(e),a&&a.d(c),c&&i&&i.end(),r=!1,qn(s)}}}function mne(t){let e,n,i,o,r,s,l,a;const c=t[12].title,d=Fs(c,t,t[11],Lg);let u=t[2]&&Fg(t);return{c(){e=S("details"),n=S("summary"),i=S("div"),d&&d.c(),o=X(),u&&u.c(),g(i,"class","spoiler2__arrow-wrapper svelte-mr4ej7"),g(n,"class","spoiler2__title svelte-mr4ej7"),e.open=t[3],g(e,"class",r="spoiler2 spoiler2_theme_"+t[1]+" "+t[0]+" svelte-mr4ej7"),te(e,"spoiler2_toggled",t[2]),te(e,"spoiler2_animated",t[5])},m(p,_){N(p,e,_),$(e,n),$(n,i),d&&d.m(i,null),$(e,o),u&&u.m(e,null),t[13](e),s=!0,l||(a=ee(n,"click",zi(t[6])),l=!0)},p(p,[_]){d&&d.p&&(!s||_&2048)&&qs(d,c,p,p[11],s?Ns(c,p[11],_,fne):Rs(p[11]),Lg),p[2]?u?(u.p(p,_),_&4&&I(u,1)):(u=Fg(p),u.c(),I(u,1),u.m(e,null)):u&&(It(),H(u,1,1,(()=>{u=null})),Dt()),(!s||_&8)&&(e.open=p[3]),(!s||_&3&&r!==(r="spoiler2 spoiler2_theme_"+p[1]+" "+p[0]+" svelte-mr4ej7"))&&g(e,"class",r),(!s||_&7)&&te(e,"spoiler2_toggled",p[2]),(!s||_&35)&&te(e,"spoiler2_animated",p[5])},i(p){s||(I(d,p),I(u),s=!0)},o(p){H(d,p),H(u),s=!1},d(p){p&&F(e),d&&d.d(p),u&&u.d(),t[13](null),l=!1,a()}}}function gne(t,e,n){let{$$slots:i={},$$scope:o}=e,{open:r=!0}=e,{mix:s=""}=e,{theme:l="rounded"}=e,a=r,c=r,d,u=!1;function p(v){v.target instanceof HTMLElement&&v.target.closest("summary")&&(n(2,a=!a),a&&n(3,c=!0))}function _(){n(3,c=!1)}function f(){n(5,u=!0)}function m(){n(5,u=!1)}function h(v){pt[v?"unshift":"push"]((()=>{d=v,n(4,d)}))}return t.$$set=v=>{"open"in v&&n(10,r=v.open),"mix"in v&&n(0,s=v.mix),"theme"in v&&n(1,l=v.theme),"$$scope"in v&&n(11,o=v.$$scope)},[s,l,a,c,d,u,p,_,f,m,r,o,i,h]}class xo extends Gt{constructor(e){super(),Yt(this,e,gne,mne,Rt,{open:10,mix:0,theme:1})}}function Pd(t){let e,n,i,o,r,s;const l=t[7].default,a=Fs(l,t,t[6],null);let c=[{class:n="button2 button2_theme_"+t[5]+" "+t[1]+" svelte-1npopwk"},{disabled:i=t[0]?!0:void 0},{title:t[2]}],d={};for(let u=0;u<c.length;u+=1)d=_s(d,c[u]);return{c(){e=S(t[4]),a&&a.c(),uc(t[4])(e,d),te(e,"button2_slim",t[3])},m(u,p){N(u,e,p),a&&a.m(e,null),o=!0,r||(s=ee(e,"click",t[8]),r=!0)},p(u,p){a&&a.p&&(!o||p&64)&&qs(a,l,u,u[6],o?Ns(l,u[6],p,null):Rs(u[6]),null),uc(u[4])(e,d=vl(c,[(!o||p&34&&n!==(n="button2 button2_theme_"+u[5]+" "+u[1]+" svelte-1npopwk"))&&{class:n},(!o||p&1&&i!==(i=u[0]?!0:void 0))&&{disabled:i},(!o||p&4)&&{title:u[2]}])),te(e,"button2_slim",u[3])},i(u){o||(I(a,u),o=!0)},o(u){H(a,u),o=!1},d(u){u&&F(e),a&&a.d(u),r=!1,s()}}}function hne(t){let e=t[4],n,i,o=t[4]&&Pd(t);return{c(){o&&o.c(),n=Dn()},m(r,s){o&&o.m(r,s),N(r,n,s),i=!0},p(r,[s]){r[4]?e?Rt(e,r[4])?(o.d(1),o=Pd(r),e=r[4],o.c(),o.m(n.parentNode,n)):o.p(r,s):(o=Pd(r),e=r[4],o.c(),o.m(n.parentNode,n)):e&&(o.d(1),o=null,e=r[4])},i(r){i||(I(o,r),i=!0)},o(r){H(o,r),i=!1},d(r){r&&F(n),o&&o.d(r)}}}function vne(t,e,n){let{$$slots:i={},$$scope:o}=e,{disabled:r=!1}=e,{cls:s=""}=e,{title:l=""}=e,{slim:a=!1}=e,{tag:c="button"}=e,{theme:d="border"}=e;function u(p){mn.call(this,t,p)}return t.$$set=p=>{"disabled"in p&&n(0,r=p.disabled),"cls"in p&&n(1,s=p.cls),"title"in p&&n(2,l=p.title),"slim"in p&&n(3,a=p.slim),"tag"in p&&n(4,c=p.tag),"theme"in p&&n(5,d=p.theme),"$$scope"in p&&n(6,o=p.$$scope)},[r,s,l,a,c,d,o,i,u]}class dd extends Gt{constructor(e){super(),Yt(this,e,vne,hne,Rt,{disabled:0,cls:1,title:2,slim:3,tag:4,theme:5})}}function Ng(t,e,n){const i=t.slice();return i[24]=e[n],i}function qg(t,e,n){const i=t.slice();return i[27]=e[n],i}function Rg(t){let e,n;return e=new Tr({props:{target:t[2],direction:"down",offsetY:8,wide:!0,$$slots:{default:[Tne]},$$scope:{ctx:t}}}),e.$on("close",t[10]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&4&&(r.target=i[2]),o&1073741881&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Bg(t){let e,n=t[5]("errors.selectedTitle")+"",i,o,r,s;return r=new dd({props:{theme:"normal",$$slots:{default:[bne]},$$scope:{ctx:t}}}),r.$on("click",t[11]),{c(){e=S("div"),i=Ze(n),o=X(),Ie(r.$$.fragment),g(e,"class","errors-dialog__selected-block svelte-153ag15")},m(l,a){N(l,e,a),$(e,i),$(e,o),Oe(r,e,null),s=!0},p(l,a){(!s||a&32)&&n!==(n=l[5]("errors.selectedTitle")+"")&<(i,n);const c={};a&1073741856&&(c.$$scope={dirty:a,ctx:l}),r.$set(c)},i(l){s||(I(r.$$.fragment,l),s=!0)},o(l){H(r.$$.fragment,l),s=!1},d(l){l&&F(e),Me(r)}}}function bne(t){let e=t[5]("errors.clear")+"",n;return{c(){n=Ze(e)},m(i,o){N(i,n,o)},p(i,o){o&32&&e!==(e=i[5]("errors.clear")+"")&<(n,e)},d(i){i&&F(n)}}}function yne(t){let e=t[5]("no_errors")+"",n;return{c(){n=Ze(e)},m(i,o){N(i,n,o)},p(i,o){o&32&&e!==(e=i[5]("no_errors")+"")&<(n,e)},i:tn,o:tn,d(i){i&&F(n)}}}function wne(t){let e,n,i=an(t[3]),o=[];for(let s=0;s<i.length;s+=1)o[s]=Wg(Ng(t,i,s));const r=s=>H(o[s],1,1,(()=>{o[s]=null}));return{c(){e=S("ul");for(let s=0;s<o.length;s+=1)o[s].c();g(e,"class","errors-dialog__list svelte-153ag15")},m(s,l){N(s,e,l);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);n=!0},p(s,l){if(l&28712){i=an(s[3]);let a;for(a=0;a<i.length;a+=1){const c=Ng(s,i,a);o[a]?(o[a].p(c,l),I(o[a],1)):(o[a]=Wg(c),o[a].c(),I(o[a],1),o[a].m(e,null))}for(It(),a=i.length;a<o.length;a+=1)r(a);Dt()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)I(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)H(o[l]);n=!1},d(s){s&&F(e),Bi(o,s)}}}function $ne(t){let e=t[5]("errors.noDetails")+"",n;return{c(){n=Ze(e)},m(i,o){N(i,n,o)},p(i,o){o&32&&e!==(e=i[5]("errors.noDetails")+"")&<(n,e)},d(i){i&&F(n)}}}function kne(t){let e,n=an(Object.keys(t[24].args)),i=[];for(let o=0;o<n.length;o+=1)i[o]=Ug(qg(t,n,o));return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=Dn()},m(o,r){for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(o,r);N(o,e,r)},p(o,r){if(r&8){n=an(Object.keys(o[24].args));let s;for(s=0;s<n.length;s+=1){const l=qg(o,n,s);i[s]?i[s].p(l,r):(i[s]=Ug(l),i[s].c(),i[s].m(e.parentNode,e))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length}},d(o){o&&F(e),Bi(i,o)}}}function Hg(t){let e,n=t[27]+"",i,o,r=Kg(t[24].args[t[27]])+"",s,l;return{c(){e=S("div"),i=Ze(n),o=Ze(" = "),s=Ze(r),l=X()},m(a,c){N(a,e,c),$(e,i),$(e,o),$(e,s),$(e,l)},p(a,c){c&8&&n!==(n=a[27]+"")&<(i,n),c&8&&r!==(r=Kg(a[24].args[a[27]])+"")&<(s,r)},d(a){a&&F(e)}}}function Ug(t){let e,n=t[27]!=="leafId"&&Hg(t);return{c(){n&&n.c(),e=Dn()},m(i,o){n&&n.m(i,o),N(i,e,o)},p(i,o){i[27]!=="leafId"?n?n.p(i,o):(n=Hg(i),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(i){i&&F(e),n&&n.d(i)}}}function jne(t){let e,n;function i(s,l){return l&8&&(n=null),n==null&&(n=!!(s[24].args&&Object.keys(s[24].args).length)),n?kne:$ne}let o=i(t,-1),r=o(t);return{c(){e=S("div"),r.c(),g(e,"class","errors-dialog__item-details svelte-153ag15")},m(s,l){N(s,e,l),r.m(e,null)},p(s,l){o===(o=i(s,l))&&r?r.p(s,l):(r.d(1),r=o(s),r&&(r.c(),r.m(e,null)))},d(s){s&&F(e),r.d()}}}function Sne(t){let e,n,i,o,r=t[24].message+"",s;return{c(){e=S("div"),n=S("span"),i=X(),o=S("span"),s=Ze(r),g(n,"class","errors-dialog__icon svelte-153ag15"),te(n,"errors-dialog__icon_error",t[24].level==="error"||!t[24].level),te(n,"errors-dialog__icon_warn",t[24].level==="warn"),g(o,"class","errors-dialog__text svelte-153ag15"),g(e,"slot","title"),g(e,"class","errors-dialog__item-title svelte-153ag15")},m(l,a){N(l,e,a),$(e,n),$(e,i),$(e,o),$(o,s)},p(l,a){a&8&&te(n,"errors-dialog__icon_error",l[24].level==="error"||!l[24].level),a&8&&te(n,"errors-dialog__icon_warn",l[24].level==="warn"),a&8&&r!==(r=l[24].message+"")&<(s,r)},d(l){l&&F(e)}}}function Jg(t){let e,n;function i(){return t[17](t[24])}return e=new dd({props:{title:t[5]("errors.select"),$$slots:{default:[Cne]},$$scope:{ctx:t}}}),e.$on("click",i),{c(){Ie(e.$$.fragment)},m(o,r){Oe(e,o,r),n=!0},p(o,r){t=o;const s={};r&32&&(s.title=t[5]("errors.select")),r&1073741824&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){H(e.$$.fragment,o),n=!1},d(o){Me(e,o)}}}function Cne(t){let e;return{c(){e=S("div"),g(e,"class","errors-dialog__select svelte-153ag15")},m(n,i){N(n,e,i)},p:tn,d(n){n&&F(e)}}}function Wg(t){var d;let e,n,i,o,r,s,l;n=new xo({props:{open:!1,mix:"errors-dialog__spoiler",$$slots:{title:[Sne],default:[jne]},$$scope:{ctx:t}}});let a=((d=t[24].args)==null?void 0:d.leafId)&&Jg(t);function c(){return t[18](t[24])}return{c(){e=S("li"),Ie(n.$$.fragment),i=X(),a&&a.c(),o=X(),g(e,"class","errors-dialog__item svelte-153ag15")},m(u,p){N(u,e,p),Oe(n,e,null),$(e,i),a&&a.m(e,null),$(e,o),r=!0,s||(l=[ee(e,"mouseenter",c),ee(e,"mouseleave",t[14])],s=!0)},p(u,p){var f;t=u;const _={};p&1073741864&&(_.$$scope={dirty:p,ctx:t}),n.$set(_),(f=t[24].args)!=null&&f.leafId?a?(a.p(t,p),p&8&&I(a,1)):(a=Jg(t),a.c(),I(a,1),a.m(e,o)):a&&(It(),H(a,1,1,(()=>{a=null})),Dt())},i(u){r||(I(n.$$.fragment,u),I(a),r=!0)},o(u){H(n.$$.fragment,u),H(a),r=!1},d(u){u&&F(e),Me(n),a&&a.d(),s=!1,qn(l)}}}function Tne(t){let e,n,i,o,r,s=t[0]&&Bg(t);const l=[wne,yne],a=[];function c(d,u){return d[3].length?0:1}return i=c(t),o=a[i]=l[i](t),{c(){e=S("div"),s&&s.c(),n=X(),o.c(),g(e,"class","errors-dialog__content svelte-153ag15"),te(e,"errors-dialog__content_dark",t[4]==="dark")},m(d,u){N(d,e,u),s&&s.m(e,null),$(e,n),a[i].m(e,null),r=!0},p(d,u){d[0]?s?(s.p(d,u),u&1&&I(s,1)):(s=Bg(d),s.c(),I(s,1),s.m(e,n)):s&&(It(),H(s,1,1,(()=>{s=null})),Dt());let p=i;i=c(d),i===p?a[i].p(d,u):(It(),H(a[p],1,1,(()=>{a[p]=null})),Dt(),o=a[i],o?o.p(d,u):(o=a[i]=l[i](d),o.c()),I(o,1),o.m(e,null)),(!r||u&16)&&te(e,"errors-dialog__content_dark",d[4]==="dark")},i(d){r||(I(s),I(o),r=!0)},o(d){H(s),H(o),r=!1},d(d){d&&F(e),s&&s.d(),a[i].d()}}}function zne(t){let e,n,i=t[1]&&Rg(t);return{c(){i&&i.c(),e=Dn()},m(o,r){i&&i.m(o,r),N(o,e,r),n=!0},p(o,[r]){o[1]?i?(i.p(o,r),r&2&&I(i,1)):(i=Rg(o),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(It(),H(i,1,1,(()=>{i=null})),Dt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&F(e),i&&i.d(o)}}}function Kg(t){return typeof t=="string"?t:JSON.stringify(t)}function Ene(t,e,n){let i,o,r,s;const{l10nString:l}=wt(oi);Pe(t,l,(M=>n(5,s=M)));const{state:a}=wt(An),{highlightLeaf:c,highlightElem:d,highlightRanges:u,rendererErrors:p,themeStore:_,tree:f}=a;Pe(t,p,(M=>n(16,o=M))),Pe(t,_,(M=>n(4,r=M))),Pe(t,f,(M=>n(19,i=M)));function m(M,D){n(1,h=!0),n(2,v=M),n(0,y=(D==null?void 0:D.leafId)||"")}let h=!1,v,y="",b=[];function w(){n(1,h=!1)}function k(){n(0,y="")}function E(M){if(!M)return;const D=no(i,M);a.selectedLeaf.set(D||null),n(1,h=!1)}function T(M){const D=M&&no(i,M)||null,R=D==null?void 0:D.props.node,U=D==null?void 0:D.props.range;U?(c.set([D]),d.set(R?[R]:null),u.set([U])):(c.set(null),d.set(null),u.set(null))}function j(){c.set(null),d.set(null),u.set(null)}const A=M=>{var D;return E((D=M.args)==null?void 0:D.leafId)},O=M=>{var D;return T((D=M.args)==null?void 0:D.leafId)};return t.$$.update=()=>{if(t.$$.dirty&65537)if(y)n(3,b=o[y]);else{const M=[];for(const D in o)M.push(...o[D]);n(3,b=M)}},[y,h,v,b,r,s,l,p,_,f,w,k,E,T,j,m,o,A,O]}class Ane extends Gt{constructor(e){super(),Yt(this,e,Ene,zne,Rt,{show:15})}get show(){return this.$$.ctx[15]}}function Yg(t){let e,n,i,o;return e=new go({props:{value:t[3],subtype:"integer",size:"small",width:"small",min:100,title:t[11]("props.width")}}),e.$on("change",t[41]),i=new go({props:{value:t[4],subtype:"integer",size:"small",width:"small",min:100,title:t[11]("props.height")}}),i.$on("change",t[42]),{c(){Ie(e.$$.fragment),n=X(),Ie(i.$$.fragment)},m(r,s){Oe(e,r,s),N(r,n,s),Oe(i,r,s),o=!0},p(r,s){const l={};s[0]&8&&(l.value=r[3]),s[0]&2048&&(l.title=r[11]("props.width")),e.$set(l);const a={};s[0]&16&&(a.value=r[4]),s[0]&2048&&(a.title=r[11]("props.height")),i.$set(a)},i(r){o||(I(e.$$.fragment,r),I(i.$$.fragment,r),o=!0)},o(r){H(e.$$.fragment,r),H(i.$$.fragment,r),o=!1},d(r){r&&F(n),Me(e,r),Me(i,r)}}}function Gg(t){let e,n;return e=new Xl({props:{title:t[1](t[13]==="light"?"lightTheme":"darkTheme"),$$slots:{default:[One]},$$scope:{ctx:t}}}),e.$on("click",t[45]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o[0]&8194&&(r.title=i[1](i[13]==="light"?"lightTheme":"darkTheme")),o[0]&8192|o[2]&1&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function One(t){let e,n=`url(${ho(t[13]==="light"?Sl:Cl)})`;return{c(){e=S("div"),g(e,"class","canvas__button-icon canvas__button-icon_inversed svelte-oz2mkl"),je(e,"background-image",n)},m(i,o){N(i,e,o)},p(i,o){o[0]&8192&&n!==(n=`url(${ho(i[13]==="light"?Sl:Cl)})`)&&je(e,"background-image",n)},d(i){i&&F(e)}}}function Mne(t){let e,n;return e=new Xl({props:{title:t[1](t[14]==="ltr"?"rtl.switchToRTL":"rtl.switchToLTR"),$$slots:{default:[Pne]},$$scope:{ctx:t}}}),e.$on("click",t[46]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o[0]&16386&&(r.title=i[1](i[14]==="ltr"?"rtl.switchToRTL":"rtl.switchToLTR")),o[0]&16384|o[2]&1&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Pne(t){let e,n=t[14]==="ltr"?"LTR":"RTL",i;return{c(){e=S("div"),i=Ze(n),g(e,"class","canvas__rtl-button svelte-oz2mkl")},m(o,r){N(o,e,r),$(e,i)},p(o,r){r[0]&16384&&n!==(n=o[14]==="ltr"?"LTR":"RTL")&<(i,n)},d(o){o&&F(e)}}}function Ine(t){let e,n,i;function o(s){t[48](s)}let r={items:t[25].map(t[47]),theme:"canvas",title:t[11]("previewLang")};return t[15]!==void 0&&(r.value=t[15]),e=new Hr({props:r}),pt.push((()=>Gn(e,"value",o))),{c(){Ie(e.$$.fragment)},m(s,l){Oe(e,s,l),i=!0},p(s,l){const a={};l[0]&65536&&(a.items=s[25].map(s[47])),l[0]&2048&&(a.title=s[11]("previewLang")),!n&&l[0]&32768&&(n=!0,a.value=s[15],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Me(e,s)}}}function Dne(t){let e,n=`url(${ho(ine)})`;return{c(){e=S("div"),g(e,"class","canvas__button-icon canvas__button-icon_inversed svelte-oz2mkl"),te(e,"canvas__button-icon_disabled",!t[17]),je(e,"background-image",n)},m(i,o){N(i,e,o)},p(i,o){o[0]&131072&&te(e,"canvas__button-icon_disabled",!i[17])},d(i){i&&F(e)}}}function Vne(t){let e,n=`url(${ho(one)})`;return{c(){e=S("div"),g(e,"class","canvas__button-icon canvas__button-icon_inversed svelte-oz2mkl"),te(e,"canvas__button-icon_disabled",!t[18]),je(e,"background-image",n)},m(i,o){N(i,e,o)},p(i,o){o[0]&262144&&te(e,"canvas__button-icon_disabled",!i[18])},d(i){i&&F(e)}}}function Lne(t){let e,n,i=t[19].length+"",o,r,s,l=`url(${ho(t[20]==="dark"?Cg:Tg)})`,a,c,d=t[21].length+"",u,p,_,f=`url(${ho(nne)})`;return{c(){e=S("div"),n=S("div"),o=Ze(i),r=X(),s=S("div"),a=X(),c=S("div"),u=Ze(d),p=X(),_=S("div"),g(n,"class","canvas__button-counter svelte-oz2mkl"),g(s,"class","canvas__button-icon svelte-oz2mkl"),te(s,"canvas__button-icon_disabled",!t[19].length),je(s,"background-image",l),g(c,"class","canvas__button-counter svelte-oz2mkl"),g(_,"class","canvas__button-icon svelte-oz2mkl"),te(_,"canvas__button-icon_disabled",!t[21].length),je(_,"background-image",f),g(e,"class","canvas__button-content svelte-oz2mkl")},m(m,h){N(m,e,h),$(e,n),$(n,o),$(e,r),$(e,s),$(e,a),$(e,c),$(c,u),$(e,p),$(e,_)},p(m,h){h[0]&524288&&i!==(i=m[19].length+"")&<(o,i),h[0]&524288&&te(s,"canvas__button-icon_disabled",!m[19].length),h[0]&1048576&&l!==(l=`url(${ho(m[20]==="dark"?Cg:Tg)})`)&&je(s,"background-image",l),h[0]&2097152&&d!==(d=m[21].length+"")&<(u,d),h[0]&2097152&&te(_,"canvas__button-icon_disabled",!m[21].length)},d(m){m&&F(e)}}}function Fne(t){let e,n,i,o,r,s,l,a,c,d,u,p,_,f,m,h,v,y,b,w,k,E,T,j;function A(x){t[44](x)}let O={items:t[10],theme:"canvas",title:t[11]("previewSize")};t[2]!==void 0&&(O.value=t[2]),i=new Hr({props:O}),pt.push((()=>Gn(i,"value",A))),i.$on("change",t[40]);let M=t[2]==="custom"&&Yg(t),D=t[12]&&Gg(t),R=t[27]&&Mne(t),U=t[25].length&&Ine(t);d=new Xl({props:{title:t[1]("undo")+(t[17]?" — "+t[1](t[17].toLangKey()):""),disabled:!t[17],$$slots:{default:[Dne]},$$scope:{ctx:t}}}),d.$on("click",t[49]),p=new Xl({props:{title:t[1]("redo")+(t[18]?" — "+t[1](t[18].toLangKey()):""),disabled:!t[18],$$slots:{default:[Vne]},$$scope:{ctx:t}}}),p.$on("click",t[50]);function B(x){t[51](x)}let C={title:t[1]("errors"),$$slots:{default:[Lne]},$$scope:{ctx:t}};t[5]!==void 0&&(C.node=t[5]),f=new Xl({props:C}),pt.push((()=>Gn(f,"node",B))),f.$on("click",t[39]);function q(x){t[53](x)}let V={theme:t[13]};t[0]!==void 0&&(V.viewport=t[0]),y=new Qte({props:V}),pt.push((()=>Gn(y,"viewport",q)));let Y={};return k=new Ane({props:Y}),t[56](k),{c(){e=S("div"),n=S("div"),Ie(i.$$.fragment),r=X(),M&&M.c(),s=X(),D&&D.c(),l=X(),R&&R.c(),a=X(),U&&U.c(),c=X(),Ie(d.$$.fragment),u=X(),Ie(p.$$.fragment),_=X(),Ie(f.$$.fragment),h=X(),v=S("div"),Ie(y.$$.fragment),w=X(),Ie(k.$$.fragment),g(n,"class","canvas__topbar svelte-oz2mkl"),g(v,"class","canvas__renderer-wrapper svelte-oz2mkl"),g(e,"class","canvas svelte-oz2mkl")},m(x,de){N(x,e,de),$(e,n),Oe(i,n,null),$(n,r),M&&M.m(n,null),$(n,s),D&&D.m(n,null),$(n,l),R&&R.m(n,null),$(n,a),U&&U.m(n,null),$(n,c),Oe(d,n,null),$(n,u),Oe(p,n,null),$(n,_),Oe(f,n,null),t[52](n),$(e,h),$(e,v),Oe(y,v,null),t[54](v),t[55](e),N(x,w,de),Oe(k,x,de),E=!0,T||(j=[ee(e,"mousedown",t[37]),ee(e,"click",t[38]),i1(b1.call(null,e,t[43]))],T=!0)},p(x,de){const _e={};de[0]&1024&&(_e.items=x[10]),de[0]&2048&&(_e.title=x[11]("previewSize")),!o&&de[0]&4&&(o=!0,_e.value=x[2],Xn((()=>o=!1))),i.$set(_e),x[2]==="custom"?M?(M.p(x,de),de[0]&4&&I(M,1)):(M=Yg(x),M.c(),I(M,1),M.m(n,s)):M&&(It(),H(M,1,1,(()=>{M=null})),Dt()),x[12]?D?(D.p(x,de),de[0]&4096&&I(D,1)):(D=Gg(x),D.c(),I(D,1),D.m(n,l)):D&&(It(),H(D,1,1,(()=>{D=null})),Dt()),x[27]&&R.p(x,de),x[25].length&&U.p(x,de);const G={};de[0]&131074&&(G.title=x[1]("undo")+(x[17]?" — "+x[1](x[17].toLangKey()):"")),de[0]&131072&&(G.disabled=!x[17]),de[0]&131072|de[2]&1&&(G.$$scope={dirty:de,ctx:x}),d.$set(G);const Q={};de[0]&262146&&(Q.title=x[1]("redo")+(x[18]?" — "+x[1](x[18].toLangKey()):"")),de[0]&262144&&(Q.disabled=!x[18]),de[0]&262144|de[2]&1&&(Q.$$scope={dirty:de,ctx:x}),p.$set(Q);const oe={};de[0]&2&&(oe.title=x[1]("errors")),de[0]&3670016|de[2]&1&&(oe.$$scope={dirty:de,ctx:x}),!m&&de[0]&32&&(m=!0,oe.node=x[5],Xn((()=>m=!1))),f.$set(oe);const he={};de[0]&8192&&(he.theme=x[13]),!b&&de[0]&1&&(b=!0,he.viewport=x[0],Xn((()=>b=!1))),y.$set(he);const ze={};k.$set(ze)},i(x){E||(I(i.$$.fragment,x),I(M),I(D),I(R),I(U),I(d.$$.fragment,x),I(p.$$.fragment,x),I(f.$$.fragment,x),I(y.$$.fragment,x),I(k.$$.fragment,x),E=!0)},o(x){H(i.$$.fragment,x),H(M),H(D),H(R),H(U),H(d.$$.fragment,x),H(p.$$.fragment,x),H(f.$$.fragment,x),H(y.$$.fragment,x),H(k.$$.fragment,x),E=!1},d(x){x&&(F(e),F(w)),Me(i),M&&M.d(),D&&D.d(),R&&R.d(),U&&U.d(),Me(d),Me(p),Me(f),t[52](null),Me(y),t[54](null),t[55](null),t[56](null),Me(k,x),T=!1,qn(j)}}}const Nne="360x640";function qne(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m;const{l10n:h,l10nString:v,lang:y}=wt(oi);Pe(t,h,(xe=>n(1,o=xe))),Pe(t,v,(xe=>n(11,r=xe))),Pe(t,y,(xe=>n(16,d=xe)));const{cardLocales:b,state:w,directionSelector:k,setShowErrors:E,showErrors:T}=wt(An),{paletteEnabled:j,currentUndoStore:A,currentRedoStore:O,rendererErrorsOnly:M,rendererWarningsOnly:D,locale:R,previewThemeStore:U,themeStore:B,direction:C}=w;Pe(t,j,(xe=>n(12,s=xe))),Pe(t,A,(xe=>n(17,u=xe))),Pe(t,O,(xe=>n(18,p=xe))),Pe(t,M,(xe=>n(19,_=xe))),Pe(t,D,(xe=>n(21,m=xe))),Pe(t,R,(xe=>n(15,c=xe))),Pe(t,U,(xe=>n(13,l=xe))),Pe(t,B,(xe=>n(20,f=xe))),Pe(t,C,(xe=>n(14,a=xe)));const q=["320x568","360x640","375x667","393x851","414x896","768x1024"];E((function(jt){G.show(_e,{leafId:jt==null?void 0:jt.leafId})}));let V=Nne,Y=V,x=100,de=100,_e,G,Q,oe,he,ze=0,W=0;function Ke(xe){ze=xe.pageX,W=xe.pageY}function at(xe){const jt=(xe.pageX-ze)*(xe.pageX-ze)+(xe.pageY-W)*(xe.pageY-W),Vt=xe.target;jt<64&&(Vt===oe||Vt===he||Vt instanceof HTMLElement&&!oe.contains(Vt)&&!he.contains(Vt))&&w.selectedLeaf.set(null)}function Te(){T()}function ot(){Y!=="custom"&&n(0,V=Y)}function J(xe){n(0,V=`${xe.detail.value}x${de}`)}function ue(xe){n(0,V=`${x}x${xe.detail.value}`)}const fe=[[$1,()=>w.undo()],[k1,()=>w.redo()]];function Qe(xe){Y=xe,n(2,Y),n(0,V)}const ye=()=>Mi(U,l=l==="light"?"dark":"light",l),Ee=()=>Mi(C,a=a==="ltr"?"rtl":"ltr",a),Ye=xe=>({value:xe.id,text:xe.text[d]});function vt(xe){c=xe,R.set(c)}const ne=()=>w.undo(),pe=()=>w.redo();function kt(xe){_e=xe,n(5,_e)}function $e(xe){pt[xe?"unshift":"push"]((()=>{he=xe,n(9,he)}))}function et(xe){V=xe,n(0,V)}function le(xe){pt[xe?"unshift":"push"]((()=>{oe=xe,n(8,oe)}))}function Ve(xe){pt[xe?"unshift":"push"]((()=>{Q=xe,n(7,Q)}))}function Xe(xe){pt[xe?"unshift":"push"]((()=>{G=xe,n(6,G)}))}return t.$$.update=()=>{t.$$.dirty[0]&2&&n(10,i=[...q,"custom"].map((xe=>({value:xe,text:xe==="custom"?o("canvasCustomSize"):xe})))),t.$$.dirty[0]&1&&(q.includes(V)?n(2,Y=V):n(2,Y="custom")),t.$$.dirty[0]&1&&n(3,[x,de]=V.split("x").map(Number),x,(n(4,de),n(0,V)))},[V,o,Y,x,de,_e,G,Q,oe,he,i,r,s,l,a,c,d,u,p,_,f,m,h,v,y,b,w,k,j,A,O,M,D,R,U,B,C,Ke,at,Te,ot,J,ue,fe,Qe,ye,Ee,Ye,vt,ne,pe,kt,$e,et,le,Ve,Xe]}class Rne extends Gt{constructor(e){super(),Yt(this,e,qne,Fne,Rt,{},null,[-1,-1,-1])}}const mV=Symbol("tree"),gV=["image","gif","text","container","gallery","separator"],ua=(wa.div.anyOf||[]).reduce(((t,e)=>{if(e.$ref){const n=Tte(e.$ref.replace(/\.json$/,""));t[n]=kte(e.$description||"")}return t}),{}),hV=gV.map((t=>({nameKey:`components.${t}`,type:t,description:ua[t]}))),vV=Object.keys(ua).filter((t=>!gV.includes(t))).map((t=>({nameKey:`components.${t}`,type:t,description:ua[t]}))),bV=Object.keys(ua).map((t=>({nameKey:`components.${t}`,type:t,description:ua[t]})));for(const t in Ui){const e=Ui[t];e.visible&&(e.inShortList?hV.push({nameKey:e.nameKey,type:t,description:e.description}):vV.push({nameKey:e.nameKey,type:t,description:e.description}),bV.push({nameKey:e.nameKey,type:t,description:e.description}))}function Bne(t){return t.level==="error"||!t.level}function yV(t){return t.level==="warn"}function Xg(t,e,n){const i=t.slice();return i[51]=e[n],i}function Id(t){const e=t.slice(),n=e[7]?e[5]("collapse"):e[5]("expand");return e[54]=n,e}function Zg(t){let e;return{c(){e=S("div"),g(e,"class","tree-leaf__drag-target tree-leaf__drag-target_before svelte-q4j113")},m(n,i){N(n,e,i)},d(n){n&&F(e)}}}function xg(t){let e=t[7],n,i=Qg(t);return{c(){i.c(),n=Dn()},m(o,r){i.m(o,r),N(o,n,r)},p(o,r){r[0]&128&&Rt(e,e=o[7])?(i.d(1),i=Qg(o),i.c(),i.m(n.parentNode,n)):i.p(o,r)},d(o){o&&F(n),i.d(o)}}}function Qg(t){let e,n,i,o,r;return{c(){e=S("div"),g(e,"class","tree-leaf__icon svelte-q4j113"),g(e,"aria-label",n=t[54]),g(e,"data-custom-tooltip",i=t[54])},m(s,l){N(s,e,l),o||(r=ee(e,"click",Eo(t[27])),o=!0)},p(s,l){l[0]&160&&n!==(n=s[54])&&g(e,"aria-label",n),l[0]&160&&i!==(i=s[54])&&g(e,"data-custom-tooltip",i)},d(s){s&&F(e),o=!1,r()}}}function eh(t){let e,n,i,o,r;return{c(){e=S("div"),g(e,"class","tree-leaf__error-icon svelte-q4j113"),g(e,"aria-label",n=t[5](`treeItem.${t[6]}`)),g(e,"data-custom-tooltip",i=t[5](`treeItem.${t[6]}`)),te(e,"tree-leaf__error-icon_dark",t[12]==="dark"),te(e,"tree-leaf__error-icon_warn",t[6]==="warnings")},m(s,l){N(s,e,l),o||(r=ee(e,"click",t[31]),o=!0)},p(s,l){l[0]&96&&n!==(n=s[5](`treeItem.${s[6]}`))&&g(e,"aria-label",n),l[0]&96&&i!==(i=s[5](`treeItem.${s[6]}`))&&g(e,"data-custom-tooltip",i),l[0]&4096&&te(e,"tree-leaf__error-icon_dark",s[12]==="dark"),l[0]&64&&te(e,"tree-leaf__error-icon_warn",s[6]==="warnings")},d(s){s&&F(e),o=!1,r()}}}function th(t){let e,n,i,o,r,s;return{c(){e=S("div"),n=S("div"),g(n,"class","tree-leaf__menu svelte-q4j113"),g(n,"aria-label",i=t[5]("treeMenu")),g(n,"data-custom-tooltip",o=t[5]("treeMenu")),g(e,"class","tree-leaf__menu-outer svelte-q4j113")},m(l,a){N(l,e,a),$(e,n),r||(s=ee(n,"click",t[41]),r=!0)},p(l,a){a[0]&32&&i!==(i=l[5]("treeMenu"))&&g(n,"aria-label",i),a[0]&32&&o!==(o=l[5]("treeMenu"))&&g(n,"data-custom-tooltip",o)},d(l){l&&F(e),r=!1,s()}}}function nh(t){let e;return{c(){e=S("div"),g(e,"class","tree-leaf__drag-target tree-leaf__drag-target_inside svelte-q4j113"),je(e,"--level",t[1]+1)},m(n,i){N(n,e,i)},p(n,i){i[0]&2&&je(e,"--level",n[1]+1)},d(n){n&&F(e)}}}function ih(t){let e,n=[],i=new Map,o,r,s=an(t[0].childs);const l=a=>a[51].id;for(let a=0;a<s.length;a+=1){let c=Xg(t,s,a),d=l(c);i.set(d,n[a]=oh(d,c))}return{c(){e=S("div");for(let a=0;a<n.length;a+=1)n[a].c();g(e,"class","tree-leaf__children svelte-q4j113")},m(a,c){N(a,e,c);for(let d=0;d<n.length;d+=1)n[d]&&n[d].m(e,null);r=!0},p(a,c){c[0]&3&&(s=an(a[0].childs),It(),n=Hs(n,c,l,1,a,s,i,e,zl,oh,null,Xg),Dt())},i(a){if(!r){for(let c=0;c<s.length;c+=1)I(n[c]);a&&po((()=>{r&&(o||(o=Zi(e,Go,{},!0)),o.run(1))})),r=!0}},o(a){for(let c=0;c<n.length;c+=1)H(n[c]);a&&(o||(o=Zi(e,Go,{},!1)),o.run(0)),r=!1},d(a){a&&F(e);for(let c=0;c<n.length;c+=1)n[c].d();a&&o&&o.end()}}}function oh(t,e){let n,i,o;return i=new tp({props:{leaf:e[51],level:e[1]+1}}),i.$on("selected",e[43]),i.$on("hovered",e[44]),i.$on("action",e[45]),i.$on("add",e[46]),{key:t,first:null,c(){n=Dn(),Ie(i.$$.fragment),this.first=n},m(r,s){N(r,n,s),Oe(i,r,s),o=!0},p(r,s){e=r;const l={};s[0]&1&&(l.leaf=e[51]),s[0]&2&&(l.level=e[1]+1),i.$set(l)},i(r){o||(I(i.$$.fragment,r),o=!0)},o(r){H(i.$$.fragment,r),o=!1},d(r){r&&F(n),Me(i,r)}}}function rh(t){let e;return{c(){e=S("div"),g(e,"class","tree-leaf__drag-target tree-leaf__drag-target_after svelte-q4j113"),je(e,"--level",t[1])},m(n,i){N(n,e,i)},p(n,i){i[0]&2&&je(e,"--level",n[1])},d(n){n&&F(e)}}}function Hne(t){var D,R,U,B,C,q;let e,n,i,o,r,s=`url(${ho(t[14].componentIcon(t[0].props.json.type,t[0].props.json))})`,l,a=t[25](t[0])+"",c,d,u,p,_,f,m,h,v,y,b,w,k=((D=t[11])==null?void 0:D.node)===t[2]&&((R=t[11])==null?void 0:R.type)==="before"&&Zg(),E=t[4]&&xg(Id(t)),T=t[6]&&eh(t),j=!t[10]&&th(t),A=((U=t[11])==null?void 0:U.node)===t[2]&&((B=t[11])==null?void 0:B.type)==="inside"&&nh(t),O=t[7]&&ih(t),M=((C=t[11])==null?void 0:C.node)===t[2]&&((q=t[11])==null?void 0:q.type)==="after"&&rh(t);return{c(){var V;e=S("div"),k&&k.c(),n=X(),E&&E.c(),i=X(),o=S("div"),r=S("div"),l=X(),c=Ze(a),d=X(),u=S("div"),p=X(),T&&T.c(),_=X(),j&&j.c(),f=X(),A&&A.c(),m=X(),O&&O.c(),h=X(),M&&M.c(),v=Dn(),g(r,"class","tree-leaf__type-icon svelte-q4j113"),je(r,"background-image",s),g(o,"class","tree-leaf__type-icon-outer svelte-q4j113"),g(u,"class","tree-leaf__menu-spacer svelte-q4j113"),g(e,"class","tree-leaf svelte-q4j113"),g(e,"data-level",t[1]),je(e,"--level",t[1]),g(e,"draggable","true"),te(e,"tree-leaf_alternate-hovered",t[8]),te(e,"tree-leaf_selected",t[3]),te(e,"tree-leaf_empty_no",!!t[0].childs.length),te(e,"tree-leaf_empty_yes",!t[0].childs.length),te(e,"tree-leaf_expanded_no",!t[7]),te(e,"tree-leaf_expanded_yes",t[7]),te(e,"tree-leaf_can-have-childs",t[4]),te(e,"tree-leaf_container-child",!kl((V=t[0].parent)==null?void 0:V.props.json.type)),te(e,"tree-leaf_errors",t[6]==="errors"),te(e,"tree-leaf_warnings",t[6]==="warnings")},m(V,Y){N(V,e,Y),k&&k.m(e,null),$(e,n),E&&E.m(e,null),$(e,i),$(e,o),$(o,r),$(e,l),$(e,c),$(e,d),$(e,u),$(e,p),T&&T.m(e,null),$(e,_),j&&j.m(e,null),t[42](e),N(V,f,Y),A&&A.m(V,Y),N(V,m,Y),O&&O.m(V,Y),N(V,h,Y),M&&M.m(V,Y),N(V,v,Y),y=!0,b||(w=[ee(e,"dragstart",t[30]),ee(e,"click",t[26]),ee(e,"mouseenter",t[28]),ee(e,"mouseleave",t[29])],b=!0)},p(V,Y){var x,de,_e,G,Q,oe,he;((x=V[11])==null?void 0:x.node)===V[2]&&((de=V[11])==null?void 0:de.type)==="before"?k||(k=Zg(),k.c(),k.m(e,n)):k&&(k.d(1),k=null),V[4]?E?E.p(Id(V),Y):(E=xg(Id(V)),E.c(),E.m(e,i)):E&&(E.d(1),E=null),Y[0]&1&&s!==(s=`url(${ho(V[14].componentIcon(V[0].props.json.type,V[0].props.json))})`)&&je(r,"background-image",s),(!y||Y[0]&1)&&a!==(a=V[25](V[0])+"")&<(c,a),V[6]?T?T.p(V,Y):(T=eh(V),T.c(),T.m(e,_)):T&&(T.d(1),T=null),V[10]?j&&(j.d(1),j=null):j?j.p(V,Y):(j=th(V),j.c(),j.m(e,null)),(!y||Y[0]&2)&&g(e,"data-level",V[1]),(!y||Y[0]&2)&&je(e,"--level",V[1]),(!y||Y[0]&256)&&te(e,"tree-leaf_alternate-hovered",V[8]),(!y||Y[0]&8)&&te(e,"tree-leaf_selected",V[3]),(!y||Y[0]&1)&&te(e,"tree-leaf_empty_no",!!V[0].childs.length),(!y||Y[0]&1)&&te(e,"tree-leaf_empty_yes",!V[0].childs.length),(!y||Y[0]&128)&&te(e,"tree-leaf_expanded_no",!V[7]),(!y||Y[0]&128)&&te(e,"tree-leaf_expanded_yes",V[7]),(!y||Y[0]&16)&&te(e,"tree-leaf_can-have-childs",V[4]),(!y||Y[0]&1)&&te(e,"tree-leaf_container-child",!kl((_e=V[0].parent)==null?void 0:_e.props.json.type)),(!y||Y[0]&64)&&te(e,"tree-leaf_errors",V[6]==="errors"),(!y||Y[0]&64)&&te(e,"tree-leaf_warnings",V[6]==="warnings"),((G=V[11])==null?void 0:G.node)===V[2]&&((Q=V[11])==null?void 0:Q.type)==="inside"?A?A.p(V,Y):(A=nh(V),A.c(),A.m(m.parentNode,m)):A&&(A.d(1),A=null),V[7]?O?(O.p(V,Y),Y[0]&128&&I(O,1)):(O=ih(V),O.c(),I(O,1),O.m(h.parentNode,h)):O&&(It(),H(O,1,1,(()=>{O=null})),Dt()),((oe=V[11])==null?void 0:oe.node)===V[2]&&((he=V[11])==null?void 0:he.type)==="after"?M?M.p(V,Y):(M=rh(V),M.c(),M.m(v.parentNode,v)):M&&(M.d(1),M=null)},i(V){y||(I(O),y=!0)},o(V){H(O),y=!1},d(V){V&&(F(e),F(f),F(m),F(h),F(v)),k&&k.d(),E&&E.d(),T&&T.d(),j&&j.d(),t[42](null),A&&A.d(V),O&&O.d(V),M&&M.d(V),b=!1,qn(w)}}}function Une(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,m,h,v,y,{leaf:b}=e,{level:w=0}=e;const{l10nString:k}=wt(oi);Pe(t,k,(Ee=>n(5,f=Ee)));const{state:E,showErrors:T,contextMenu:j}=wt(An),{userDefinedTemplates:A,copiedLeaf:O,rendererErrors:M,readOnly:D,themeStore:R}=E;Pe(t,A,(Ee=>n(40,h=Ee))),Pe(t,O,(Ee=>n(39,m=Ee))),Pe(t,M,(Ee=>n(36,u=Ee))),Pe(t,D,(Ee=>n(10,c=Ee))),Pe(t,R,(Ee=>n(12,y=Ee)));const U=_i(),B=wt(mV),C=B.collapsedStore;Pe(t,C,(Ee=>n(35,d=Ee)));const q=B.selectedStore;Pe(t,q,(Ee=>n(37,p=Ee)));const V=B.highlightStore;Pe(t,V,(Ee=>n(38,_=Ee)));const Y=B.dragTarget;Pe(t,Y,(Ee=>n(11,v=Ee)));const x=B.bindChild,de=B.getText;let _e,G=!1,Q=!1,oe="";function he(){q.set(b)}function ze(){C.set({...d,[b.id]:a})}function W(){U("hovered",{leaf:b,node:_e})}function Ke(){U("hovered",{leaf:null})}function at(Ee){if(c){Ee.preventDefault();return}Ee.dataTransfer&&(Ee.dataTransfer.setData("application/divnode",b.id),Ee.dataTransfer.dropEffect="move")}function Te(){T({leafId:b.id})}Uc((()=>{x({type:"mount",node:_e,leaf(){return b}})})),Bs((()=>{x({type:"destroy",node:_e})}));const ot=Ee=>j().toggle({name:"tree",owner:Ee.target,items:s,offset:{x:-8,y:0}});function J(Ee){pt[Ee?"unshift":"push"]((()=>{_e=Ee,n(2,_e)}))}function ue(Ee){mn.call(this,t,Ee)}function fe(Ee){mn.call(this,t,Ee)}function Qe(Ee){mn.call(this,t,Ee)}function ye(Ee){mn.call(this,t,Ee)}return t.$$set=Ee=>{"leaf"in Ee&&n(0,b=Ee.leaf),"level"in Ee&&n(1,w=Ee.level)},t.$$.update=()=>{if(t.$$.dirty[0]&32|t.$$.dirty[1]&512&&n(33,i=bV.concat(h.map((Ee=>({name:Ee,type:Ee,isTemplate:!0})))).map((Ee=>({name:Ee.name||Ee.nameKey&&f(Ee.nameKey)||"<unknown>",type:Ee.type,description:Ee.description})))),t.$$.dirty[0]&1&&n(34,o=E.getBaseType(b.props.json.type)),t.$$.dirty[0]&1|t.$$.dirty[1]&8&&n(4,r=o&&!kl(o)&&!Qu(E,b.props.json)&&!Ui[b.props.json.type]),t.$$.dirty[0]&53|t.$$.dirty[1]&260&&n(9,s=[r&&{text:f("addComponent"),submenu:i.map((Ee=>({text:Ee.name,icon:E.componentIcon(Ee.type),callback(){U("add",{leaf:b,node:_e,type:Ee.type})}})))},{text:f("cloneComponent"),enabled:!!b.parent,callback(){U("action",{action:"duplicate",leaf:b,node:_e})}},{text:f("copyComponent"),enabled:!!b.parent,callback(){U("action",{action:"copy",leaf:b,node:_e})}},{text:f("pasteComponent"),enabled:!!m,callback(){U("action",{action:"paste",leaf:b,node:_e})}},{text:f("removeComponent"),enabled:!!b.parent,callback(){U("action",{action:"delete",leaf:b,node:_e})}}].filter(kr)),t.$$.dirty[0]&1|t.$$.dirty[1]&128&&n(8,l=_&&_.includes(b)),t.$$.dirty[0]&13|t.$$.dirty[1]&66&&(n(3,G=(p==null?void 0:p.id)===(b==null?void 0:b.id)),G&&!Q&&_e?(U("selected",{leaf:b,node:_e}),n(32,Q=!0)):n(32,Q=!1)),t.$$.dirty[0]&1|t.$$.dirty[1]&16&&n(7,a=!d[b.id]),t.$$.dirty[0]&1|t.$$.dirty[1]&32){const Ee=u[b.id];Ee!=null&&Ee.every(yV)?n(6,oe="warnings"):Ee?n(6,oe="errors"):n(6,oe="")}},[b,w,_e,G,r,f,oe,a,l,s,c,v,y,k,E,j,A,O,M,D,R,C,q,V,Y,de,he,ze,W,Ke,at,Te,Q,i,o,d,u,p,_,m,h,ot,J,ue,fe,Qe,ye]}class tp extends Gt{constructor(e){super(),Yt(this,e,Une,Hne,Rt,{leaf:0,level:1},null,[-1,-1])}}const{Map:Jne}=va;function sh(t,e,n){const i=t.slice();return i[46]=e[n],i}function Wne(t){let e=[],n=new Jne,i,o,r=an(t[1].childs);const s=l=>l[46].id;for(let l=0;l<r.length;l+=1){let a=sh(t,r,l),c=s(a);n.set(c,e[l]=lh(c,a))}return{c(){for(let l=0;l<e.length;l+=1)e[l].c();i=Dn()},m(l,a){for(let c=0;c<e.length;c+=1)e[c]&&e[c].m(l,a);N(l,i,a),o=!0},p(l,a){a[0]&983042&&(r=an(l[1].childs),It(),e=Hs(e,a,s,1,l,r,n,i.parentNode,zl,lh,i,sh),Dt())},i(l){if(!o){for(let a=0;a<r.length;a+=1)I(e[a]);o=!0}},o(l){for(let a=0;a<e.length;a+=1)H(e[a]);o=!1},d(l){l&&F(i);for(let a=0;a<e.length;a+=1)e[a].d(l)}}}function Kne(t){let e,n;return e=new tp({props:{leaf:t[1]}}),e.$on("selected",t[16]),e.$on("hovered",t[17]),e.$on("action",t[18]),e.$on("add",t[19]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o[0]&2&&(r.leaf=i[1]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function lh(t,e){let n,i,o;return i=new tp({props:{leaf:e[46]}}),i.$on("selected",e[16]),i.$on("hovered",e[17]),i.$on("action",e[18]),i.$on("add",e[19]),{key:t,first:null,c(){n=Dn(),Ie(i.$$.fragment),this.first=n},m(r,s){N(r,n,s),Oe(i,r,s),o=!0},p(r,s){e=r;const l={};s[0]&2&&(l.leaf=e[46]),i.$set(l)},i(r){o||(I(i.$$.fragment,r),o=!0)},o(r){H(i.$$.fragment,r),o=!1},d(r){r&&F(n),Me(i,r)}}}function Yne(t){let e,n,i,o,r,s;const l=[Kne,Wne],a=[];function c(d,u){return d[0]?0:1}return n=c(t),i=a[n]=l[n](t),{c(){e=S("div"),i.c(),g(e,"class","tree svelte-w3gxk3"),g(e,"tabindex","0")},m(d,u){N(d,e,u),a[n].m(e,null),t[26](e),o=!0,r||(s=[ee(e,"keydown",t[10]),ee(e,"click",t[11]),ee(e,"mouseleave",t[12]),ee(e,"dragover",zi(t[13])),ee(e,"dragleave",zi(t[14])),ee(e,"drop",zi(t[15]))],r=!0)},p(d,u){let p=n;n=c(d),n===p?a[n].p(d,u):(It(),H(a[p],1,1,(()=>{a[p]=null})),Dt(),i=a[n],i?i.p(d,u):(i=a[n]=l[n](d),i.c()),I(i,1),i.m(e,null))},i(d){o||(I(i),o=!0)},o(d){H(i),o=!1},d(d){d&&F(e),a[n].d(),t[26](null),r=!1,qn(s)}}}const qa=32;function Gne(t,e,n){let i,o,r,s,l,a,c,d,{showRoot:u=!0}=e,{getText:p}=e,{highlightLeafs:_=null}=e;function f(){k&&k.focus()}const{state:m,rendererApi:h}=wt(An),{tree:v,copiedLeaf:y,selectedLeaf:b,readOnly:w}=m;Pe(t,v,(J=>n(1,r=J))),Pe(t,y,(J=>n(28,s=J))),Pe(t,b,(J=>n(24,o=J))),Pe(t,w,(J=>n(30,a=J)));let k,E=null;const T=Si({});Pe(t,T,(J=>n(25,c=J)));const j=Si(null);Pe(t,j,(J=>n(31,d=J)));const A=Si(null);Pe(t,A,(J=>n(29,l=J)));const O=new Map,M=_i();function D(J,ue){const fe=[];function Qe(ye){ye&&((ye!==J||u)&&fe.push(ye),ue[ye.id]||ye.childs.forEach(Qe))}return Qe(J),fe}function R(){const J=o;return J?i.findIndex((ue=>ue===J)):-1}function U(J){const ue=i[J];ue!==o&&(b.set(ue),M("keyboardhover",ue))}function B(J){let ue=R();ue===-1?ue=J===-1?0:i.length-1:(ue+=J,ue>=i.length?ue=i.length-1:ue<0&&(ue=0)),U(ue)}function C(J){J>=i.length?J=i.length-1:J<0&&(J=0),U(J)}function q(){const J=o;if(!J)return;const ue=c;ue[J.id]||!J.childs.length?J.parent&&b.set(J.parent):T.set({...ue,[J.id]:!0})}function V(){const J=o;if(!J)return;const ue=c;ue[J.id]?T.set({...ue,[J.id]:!1}):J.childs.length&&b.set(J.childs[0])}function Y(J){if(vp.isPressed(J)||kL.isPressed(J))B(vp.isPressed(J)?-1:1);else if(jL.isPressed(J))q();else if(SL.isPressed(J))V();else if(w1.isPressed(J)&&!a){const ue=o;if(ue!=null&&ue.parent){const fe=R();m.deleteLeaf(ue),ur().then((()=>{C(fe)}))}}else if(j1.isPressed(J)&&o)y.set(o);else if(S1.isPressed(J)&&o&&s&&!a)m.pasteLeaf(s,o);else return;J.preventDefault(),J.stopPropagation()}function x(J){J.target===k&&Mi(b,o=null,o)}function de(){M("hover",null)}function _e(J){const ue=J.pageY-window.scrollY,fe=Array.from(k.querySelectorAll(".tree-leaf_container-child")).map((Ee=>{const Ye=Ee.getBoundingClientRect();return{node:Ee,bbox:Ye,level:Number(Ee.dataset.level)}})),Qe=Array.from(k.querySelectorAll(".tree-leaf_can-have-childs")).map((Ee=>{const Ye=Ee.getBoundingClientRect();return{node:Ee,bbox:Ye,level:Number(Ee.dataset.level)}}));let ye;fe.forEach((({node:Ee,bbox:Ye})=>{var Ve;const vt=(Ve=O.get(Ee))==null?void 0:Ve();if(!vt||!vt.parent)return;const ne=Ye.top,pe=Ye.top+Ye.height/2,kt=ue>=ne&&ue<=pe?0:Math.min(Math.abs(ue-ne),Math.abs(ue-pe));(!ye||kt<ye.dist)&&(ye={type:"before",dist:kt,node:Ee});const $e=Ye.bottom-Ye.height/2,et=Ye.bottom,le=ue>=$e&&ue<=et?0:Math.min(Math.abs(ue-$e),Math.abs(ue-et));(!ye||le<ye.dist)&&(ye={type:"after",dist:le,node:Ee})})),Qe.forEach((({node:Ee,bbox:Ye})=>{const vt=Ye.bottom-Ye.height*2/3,ne=Ye.bottom-Ye.height/3;ue>=vt&&ue<=ne&&(ye={type:"inside",dist:0,node:Ee})})),A.set(ye||null)}function G(J){J.relatedTarget&&J.relatedTarget instanceof Node&&k.contains(J.relatedTarget)||A.set(null)}function Q(J){var ne,pe;const ue=l;if(!ue)return;A.set(null);const fe=(ne=O.get(ue.node))==null?void 0:ne();if(!fe||(ue.type==="before"||ue.type==="after")&&!fe.parent)return;const Qe=ue.type==="inside"?fe:fe.parent,ye=(pe=J.dataTransfer)==null?void 0:pe.getData("application/divnode");if(!ye)return;const Ee=m.getChild(ye);if(!Ee||zc(Ee,Qe))return;const Ye=Ee.parent?Ee.parent.childs.indexOf(Ee):-1;let vt;ue.type==="inside"?vt=0:vt=fe.parent.childs.indexOf(fe)+(ue.type==="before"?0:1),ue.type!=="inside"&&Ee.parent===fe.parent&&vt>Ye&&--vt,Ee.parent?m.pushCommand(new Ul(m,{newParentId:Qe.id,insertIndex:vt,leafId:Ee.id})):m.pushCommand(new da({parentId:Qe.id,insertIndex:vt,leaf:Ee})),Mi(b,o=no(r,Ee.id)||null,o)}function oe(J){const fe=J.detail.node.getBoundingClientRect(),Qe=k.parentElement;if(!Qe)return;const ye=Qe.getBoundingClientRect();fe.top-qa<ye.top?Qe.scrollTop+=fe.top-qa-ye.top:fe.bottom+qa>ye.bottom&&(Qe.scrollTop+=fe.bottom+qa-ye.bottom)}function he(J){M("hover",J.detail.leaf)}function ze(J){J.detail.action==="delete"?W(J):J.detail.action==="duplicate"?Ke(J):J.detail.action==="copy"?y.set(J.detail.leaf):J.detail.action==="paste"&&s&&m.pasteLeaf(s,J.detail.leaf)}function W(J){const ue=J.detail.leaf;m.deleteLeaf(ue)}function Ke(J){const ue=J.detail.leaf;ue.parent&&m.pasteLeaf(ue,ue.parent,ue.parent.childs.indexOf(ue)+1)}function at(J){const ue=J.detail.leaf,fe=m.genNewLeaf(J.detail.type,!0);m.pushCommand(new da({parentId:ue.id,insertIndex:ue.childs.length,leaf:fe})),Mi(b,o=no(r,fe.id)||null,o),h().focus()}function Te(J){J.type==="mount"?O.set(J.node,J.leaf):O.delete(J.node)}mc(mV,{collapsedStore:T,selectedStore:b,highlightStore:j,dragTarget:A,bindChild:Te,getText:p});function ot(J){pt[J?"unshift":"push"]((()=>{k=J,n(2,k)}))}return t.$$set=J=>{"showRoot"in J&&n(0,u=J.showRoot),"getText"in J&&n(20,p=J.getText),"highlightLeafs"in J&&n(21,_=J.highlightLeafs)},t.$$.update=()=>{t.$$.dirty[0]&2097152&&Mi(j,d=_,d),t.$$.dirty[0]&33554434&&(i=D(r,c)),t.$$.dirty[0]&25165824&&(o==null?void 0:o.id)!==(E==null?void 0:E.id)&&(n(23,E=o),M("selectionchange",o))},[u,r,k,v,y,b,w,T,j,A,Y,x,de,_e,G,Q,oe,he,ze,at,p,_,f,E,o,c,ot]}class Xne extends Gt{constructor(e){super(),Yt(this,e,Gne,Yne,Rt,{showRoot:0,getText:20,highlightLeafs:21,focus:22},null,[-1,-1])}get focus(){return this.$$.ctx[22]}}function Zne(t){let e,n;return{c(){e=S("h2"),n=Ze(t[0]),g(e,"class","panel-title svelte-wex3jw")},m(i,o){N(i,e,o),$(e,n)},p(i,[o]){o&1&<(n,i[0])},i:tn,o:tn,d(i){i&&F(e)}}}function xne(t,e,n){let{title:i}=e;return t.$$set=o=>{"title"in o&&n(0,i=o.title)},[i]}class Il extends Gt{constructor(e){super(),Yt(this,e,xne,Zne,Rt,{title:0})}}function ah(t){let e=t[4],n,i,o=ch(t);return{c(){o.c(),n=Dn()},m(r,s){o.m(r,s),N(r,n,s),i=!0},p(r,s){s&16&&Rt(e,e=r[4])?(It(),H(o,1,1,tn),Dt(),o=ch(r),o.c(),I(o,1),o.m(n.parentNode,n)):o.p(r,s)},i(r){i||(I(o),i=!0)},o(r){H(o),i=!1},d(r){r&&F(n),o.d(r)}}}function ch(t){let e,n,i={highlightLeafs:t[0],getText:t[9]};return e=new Xne({props:i}),t[13](e),e.$on("hover",t[10]),e.$on("keyboardhover",t[11]),{c(){Ie(e.$$.fragment)},m(o,r){Oe(e,o,r),n=!0},p(o,r){const s={};r&1&&(s.highlightLeafs=o[0]),e.$set(s)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){H(e.$$.fragment,o),n=!1},d(o){t[13](null),Me(e,o)}}}function Qne(t){let e,n,i,o;e=new Il({props:{title:t[2]("components")}});let r=t[3]&&ah(t);return{c(){Ie(e.$$.fragment),n=X(),r&&r.c(),i=Dn()},m(s,l){Oe(e,s,l),N(s,n,l),r&&r.m(s,l),N(s,i,l),o=!0},p(s,[l]){const a={};l&4&&(a.title=s[2]("components")),e.$set(a),s[3]?r?(r.p(s,l),l&8&&I(r,1)):(r=ah(s),r.c(),I(r,1),r.m(i.parentNode,i)):r&&(It(),H(r,1,1,(()=>{r=null})),Dt())},i(s){o||(I(e.$$.fragment,s),I(r),o=!0)},o(s){H(e.$$.fragment,s),H(r),o=!1},d(s){s&&(F(n),F(i)),Me(e,s),r&&r.d(s)}}}function eie(t,e,n){let i,o,r,s;const{l10n:l,lang:a}=wt(oi);Pe(t,l,(w=>n(2,i=w))),Pe(t,a,(w=>n(4,s=w)));const{state:c}=wt(An),{highlightLeaf:d,highlightElem:u,highlightRanges:p,tree:_}=c;Pe(t,d,(w=>n(12,r=w))),Pe(t,_,(w=>n(3,o=w)));let f=null,m;function h(w){if(w===o)return i("rootComponent");const k=w.props.json.type;return Gl(k)?i(Ui[k].nameKey):_V.has(k)?i(`components.${k}`):k}function v(w){const k=w.detail,E=k==null?void 0:k.props.node,T=k==null?void 0:k.props.range;E&&T?(d.set([k]),u.set([E]),p.set([T])):(d.set(null),u.set(null),p.set(null))}function y(w){d.set([w.detail]),u.set([w.detail.props.node]);const k=w.detail.props.range;p.set(k?[w.detail.props.range]:null)}function b(w){pt[w?"unshift":"push"]((()=>{m=w,n(1,m)}))}return t.$$.update=()=>{t.$$.dirty&4096&&(r?n(0,f=(r==null?void 0:r.filter(Boolean))||null):n(0,f=null))},[f,m,i,o,s,l,a,d,_,h,v,y,r,b]}class tie extends Gt{constructor(e){super(),Yt(this,e,eie,Qne,Rt,{})}}function dh(t,e,n){const i=t.slice();return i[21]=e[n],i}function uh(t,e,n){const i=t.slice();return i[21]=e[n],i}function ph(t,e,n){const i=t.slice();return i[21]=e[n],i}function _h(t){let e,n,i,o=`url(${ho(t[5].componentIcon(t[21].type))})`,r,s,l,a,c,d;function u(..._){return t[12](t[21],..._)}function p(){return t[13](t[21])}return{c(){e=S("div"),n=S("div"),i=S("div"),r=X(),s=S("div"),s.textContent=`${bl(t[21].name||t[21].type)}`,l=X(),g(i,"class","new-component__icon-inner svelte-1opnjml"),je(i,"background-image",o),g(n,"class","new-component__icon svelte-1opnjml"),g(s,"class","new-component__text svelte-1opnjml"),g(e,"class","new-component__item svelte-1opnjml"),g(e,"draggable","true"),g(e,"title",a=t[21].description?t[21].description[t[1]]:"")},m(_,f){N(_,e,f),$(e,n),$(n,i),$(e,r),$(e,s),$(e,l),c||(d=[ee(e,"dragstart",u),ee(e,"click",p)],c=!0)},p(_,f){t=_,f&2&&a!==(a=t[21].description?t[21].description[t[1]]:"")&&g(e,"title",a)},d(_){_&&F(e),c=!1,qn(d)}}}function nie(t){let e,n=an(t[9]),i=[];for(let o=0;o<n.length;o+=1)i[o]=_h(ph(t,n,o));return{c(){e=S("div");for(let o=0;o<i.length;o+=1)i[o].c();g(e,"class","new-component__items svelte-1opnjml")},m(o,r){N(o,e,r);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(e,null)},p(o,r){if(r&2594){n=an(o[9]);let s;for(s=0;s<n.length;s+=1){const l=ph(o,n,s);i[s]?i[s].p(l,r):(i[s]=_h(l),i[s].c(),i[s].m(e,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length}},d(o){o&&F(e),Bi(i,o)}}}function iie(t){let e,n=t[0]("basicComponents")+"",i;return{c(){e=S("div"),i=Ze(n),g(e,"slot","title")},m(o,r){N(o,e,r),$(e,i)},p(o,r){r&1&&n!==(n=o[0]("basicComponents")+"")&<(i,n)},d(o){o&&F(e)}}}function fh(t){let e,n,i,o=`url(${ho(t[5].componentIcon(t[21].type))})`,r,s,l,a,c,d;function u(..._){return t[14](t[21],..._)}function p(){return t[15](t[21])}return{c(){e=S("div"),n=S("div"),i=S("div"),r=X(),s=S("div"),s.textContent=`${bl(t[21].name||t[21].type)}`,l=X(),g(i,"class","new-component__icon-inner svelte-1opnjml"),je(i,"background-image",o),g(n,"class","new-component__icon svelte-1opnjml"),g(s,"class","new-component__text svelte-1opnjml"),g(e,"class","new-component__item svelte-1opnjml"),g(e,"draggable","true"),g(e,"title",a=t[21].description?t[21].description[t[1]]:"")},m(_,f){N(_,e,f),$(e,n),$(n,i),$(e,r),$(e,s),$(e,l),c||(d=[ee(e,"dragstart",u),ee(e,"click",p)],c=!0)},p(_,f){t=_,f&2&&a!==(a=t[21].description?t[21].description[t[1]]:"")&&g(e,"title",a)},d(_){_&&F(e),c=!1,qn(d)}}}function oie(t){let e,n=an(t[10]),i=[];for(let o=0;o<n.length;o+=1)i[o]=fh(uh(t,n,o));return{c(){e=S("div");for(let o=0;o<i.length;o+=1)i[o].c();g(e,"class","new-component__items svelte-1opnjml")},m(o,r){N(o,e,r);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(e,null)},p(o,r){if(r&3106){n=an(o[10]);let s;for(s=0;s<n.length;s+=1){const l=uh(o,n,s);i[s]?i[s].p(l,r):(i[s]=fh(l),i[s].c(),i[s].m(e,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length}},d(o){o&&F(e),Bi(i,o)}}}function rie(t){let e,n=t[0]("additionalComponents")+"",i;return{c(){e=S("div"),i=Ze(n),g(e,"slot","title")},m(o,r){N(o,e,r),$(e,i)},p(o,r){r&1&&n!==(n=o[0]("additionalComponents")+"")&<(i,n)},d(o){o&&F(e)}}}function mh(t){let e,n;return e=new xo({props:{theme:"props",open:!1,$$slots:{title:[lie],default:[sie]},$$scope:{ctx:t}}}),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&268435461&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function gh(t){let e,n,i,o=`url(${ho(t[5].componentIcon(t[21]))})`,r,s,l=t[21]+"",a,c,d,u,p;function _(...m){return t[16](t[21],...m)}function f(){return t[17](t[21])}return{c(){e=S("div"),n=S("div"),i=S("div"),r=X(),s=S("div"),a=Ze(l),c=X(),g(i,"class","new-component__icon-inner svelte-1opnjml"),je(i,"background-image",o),g(n,"class","new-component__icon svelte-1opnjml"),g(s,"class","new-component__text svelte-1opnjml"),g(e,"class","new-component__item svelte-1opnjml"),g(e,"draggable","true"),g(e,"title",d=t[21])},m(m,h){N(m,e,h),$(e,n),$(n,i),$(e,r),$(e,s),$(s,a),$(e,c),u||(p=[ee(e,"dragstart",_),ee(e,"click",f)],u=!0)},p(m,h){t=m,h&4&&o!==(o=`url(${ho(t[5].componentIcon(t[21]))})`)&&je(i,"background-image",o),h&4&&l!==(l=t[21]+"")&<(a,l),h&4&&d!==(d=t[21])&&g(e,"title",d)},d(m){m&&F(e),u=!1,qn(p)}}}function sie(t){let e,n=an(t[2]),i=[];for(let o=0;o<n.length;o+=1)i[o]=gh(dh(t,n,o));return{c(){e=S("div");for(let o=0;o<i.length;o+=1)i[o].c();g(e,"class","new-component__items svelte-1opnjml")},m(o,r){N(o,e,r);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(e,null)},p(o,r){if(r&2084){n=an(o[2]);let s;for(s=0;s<n.length;s+=1){const l=dh(o,n,s);i[s]?i[s].p(l,r):(i[s]=gh(l),i[s].c(),i[s].m(e,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length}},d(o){o&&F(e),Bi(i,o)}}}function lie(t){let e,n=t[0]("userDefinedComponents")+"",i;return{c(){e=S("div"),i=Ze(n),g(e,"slot","title")},m(o,r){N(o,e,r),$(e,i)},p(o,r){r&1&&n!==(n=o[0]("userDefinedComponents")+"")&<(i,n)},d(o){o&&F(e)}}}function aie(t){let e,n,i,o,r,s;n=new xo({props:{theme:"props",$$slots:{title:[iie],default:[nie]},$$scope:{ctx:t}}}),o=new xo({props:{theme:"props",open:!1,$$slots:{title:[rie],default:[oie]},$$scope:{ctx:t}}});let l=t[2].length&&mh(t);return{c(){e=S("div"),Ie(n.$$.fragment),i=X(),Ie(o.$$.fragment),r=X(),l&&l.c(),g(e,"class","new-component")},m(a,c){N(a,e,c),Oe(n,e,null),$(e,i),Oe(o,e,null),$(e,r),l&&l.m(e,null),s=!0},p(a,[c]){const d={};c&268435459&&(d.$$scope={dirty:c,ctx:a}),n.$set(d);const u={};c&268435459&&(u.$$scope={dirty:c,ctx:a}),o.$set(u),a[2].length?l?(l.p(a,c),c&4&&I(l,1)):(l=mh(a),l.c(),I(l,1),l.m(e,null)):l&&(It(),H(l,1,1,(()=>{l=null})),Dt())},i(a){s||(I(n.$$.fragment,a),I(o.$$.fragment,a),I(l),s=!0)},o(a){H(n.$$.fragment,a),H(o.$$.fragment,a),H(l),s=!1},d(a){a&&F(e),Me(n),Me(o),l&&l.d()}}}function Dd(t,e){t.dataTransfer&&(t.dataTransfer.setData("application/divnode",`_new:${e}`),t.dataTransfer.dropEffect="copy")}function cie(t,e,n){let i,o,r,s,l;const{l10nString:a,lang:c}=wt(oi);Pe(t,a,(j=>n(0,r=j))),Pe(t,c,(j=>n(1,s=j)));const{state:d,rendererApi:u}=wt(An),{userDefinedTemplates:p,selectedLeaf:_,tree:f}=d;Pe(t,p,(j=>n(2,l=j))),Pe(t,_,(j=>n(19,o=j))),Pe(t,f,(j=>n(18,i=j)));const m=hV.map((j=>({name:j.name||j.nameKey&&r(j.nameKey)||"<unknown>",type:j.type,description:j.description}))),h=vV.map((j=>({name:j.name||j.nameKey&&r(j.nameKey)||"<unknown>",type:j.type,description:j.description})));function v(j){const A=d.getChild(`_new:${j}`,!0);A&&(d.pushCommand(new da({parentId:i.id,insertIndex:i.childs.length,leaf:A})),Mi(_,o=no(i,A.id)||null,o),u().focus())}return[r,s,l,a,c,d,p,_,f,m,h,v,(j,A)=>Dd(A,j.type),j=>v(j.type),(j,A)=>Dd(A,j.type),j=>v(j.type),(j,A)=>Dd(A,j),j=>v(j)]}class die extends Gt{constructor(e){super(),Yt(this,e,cie,aie,Rt,{})}}function dr(t){return!!(t!=null&&t.startsWith("@{getDictOptColor('#00ffffff', local_palette, '"))}function yr(t){const e=/\@\{getDictOptColor\('#00ffffff', local_palette, '([^']+)', theme\)}/.exec(t);return e?e[1]:""}function pa(t){return`@{getDictOptColor('#00ffffff', local_palette, '${t}', theme)}`}function hh(t,e,n){const i=t.slice();return i[17]=e[n],i}function vh(t){let e,n,i,o=!1,r,s,l,a,c,d,u,p,_=`url(${ho(t[17].icon||(t[8]==="light"?t[17].iconLight:t[17].iconDark)||"")})`,f,m,h,v;return m=c1(t[14][0]),{c(){e=S("div"),n=S("input"),c=X(),d=S("div"),u=X(),p=S("div"),f=X(),g(n,"class","radio-selector__radio svelte-1j7bao5"),g(n,"type","radio"),g(n,"name",t[1]),n.__value=i=t[17].value,Hn(n,n.__value),g(n,"aria-label",r=t[17].text),g(n,"title",s=t[5]?void 0:t[17].text),g(n,"data-custom-tooltip",l=t[5]?t[17].text:void 0),g(n,"data-custom-tooltop-align",a=t[17].tooltipAlign||"center"),n.disabled=t[4],g(d,"class","radio-selector__item-bg svelte-1j7bao5"),g(p,"class","radio-selector__item-icon svelte-1j7bao5"),te(p,"radio-selector__item-icon_both-themes",!!t[17].icon),je(p,"background-image",_),g(e,"class","radio-selector__item svelte-1j7bao5"),m.p(n)},m(y,b){N(y,e,b),$(e,n),n.checked=n.__value===t[7],$(e,c),$(e,d),$(e,u),$(e,p),$(e,f),h||(v=[ee(n,"change",t[13]),ee(n,"change",t[10])],h=!0)},p(y,b){b&2&&g(n,"name",y[1]),b&1&&i!==(i=y[17].value)&&(n.__value=i,Hn(n,n.__value),o=!0),b&1&&r!==(r=y[17].text)&&g(n,"aria-label",r),b&33&&s!==(s=y[5]?void 0:y[17].text)&&g(n,"title",s),b&33&&l!==(l=y[5]?y[17].text:void 0)&&g(n,"data-custom-tooltip",l),b&1&&a!==(a=y[17].tooltipAlign||"center")&&g(n,"data-custom-tooltop-align",a),b&16&&(n.disabled=y[4]),(o||b&129)&&(n.checked=n.__value===y[7]),b&1&&te(p,"radio-selector__item-icon_both-themes",!!y[17].icon),b&257&&_!==(_=`url(${ho(y[17].icon||(y[8]==="light"?y[17].iconLight:y[17].iconDark)||"")})`)&&je(p,"background-image",_)},d(y){y&&F(e),m.r(),h=!1,qn(v)}}}function uie(t){let e,n,i=an(t[0]),o=[];for(let r=0;r<i.length;r+=1)o[r]=vh(hh(t,i,r));return{c(){e=S("div");for(let r=0;r<o.length;r+=1)o[r].c();g(e,"class",n="radio-selector radio-selector_theme_"+t[3]+" radio-selector_icon-size_"+t[6]+" "+t[2]+" svelte-1j7bao5"),te(e,"radio-selector_disabled",t[4])},m(r,s){N(r,e,s);for(let l=0;l<o.length;l+=1)o[l]&&o[l].m(e,null)},p(r,[s]){if(s&1459){i=an(r[0]);let l;for(l=0;l<i.length;l+=1){const a=hh(r,i,l);o[l]?o[l].p(a,s):(o[l]=vh(a),o[l].c(),o[l].m(e,null))}for(;l<o.length;l+=1)o[l].d(1);o.length=i.length}s&76&&n!==(n="radio-selector radio-selector_theme_"+r[3]+" radio-selector_icon-size_"+r[6]+" "+r[2]+" svelte-1j7bao5")&&g(e,"class",n),s&92&&te(e,"radio-selector_disabled",r[4])},i:tn,o:tn,d(r){r&&F(e),Bi(o,r)}}}function pie(t,e,n){let i,o,{options:r}=e,{value:s}=e,{name:l}=e,{mix:a=""}=e,{theme:c}=e,{defaultValue:d=""}=e,{disabled:u=!1}=e,{customTooltips:p=!0}=e,{iconSize:_="contain"}=e;const{state:f}=wt(An),{themeStore:m}=f;Pe(t,m,(w=>n(8,o=w)));const h=_i();function v(){n(11,s=i),h("change")}const y=[[]];function b(){i=this.__value,n(7,i),n(11,s),n(12,d)}return t.$$set=w=>{"options"in w&&n(0,r=w.options),"value"in w&&n(11,s=w.value),"name"in w&&n(1,l=w.name),"mix"in w&&n(2,a=w.mix),"theme"in w&&n(3,c=w.theme),"defaultValue"in w&&n(12,d=w.defaultValue),"disabled"in w&&n(4,u=w.disabled),"customTooltips"in w&&n(5,p=w.customTooltips),"iconSize"in w&&n(6,_=w.iconSize)},t.$$.update=()=>{t.$$.dirty&6144&&n(7,i=s||d)},[r,l,a,c,u,p,_,i,o,m,v,s,d,b,y]}class Dl extends Gt{constructor(e){super(),Yt(this,e,pie,uie,Rt,{options:0,value:11,name:1,mix:2,theme:3,defaultValue:12,disabled:4,customTooltips:5,iconSize:6})}}function _ie(t,{from:e,to:n},i={}){const o=getComputedStyle(t),r=o.transform==="none"?"":o.transform,[s,l]=o.transformOrigin.split(" ").map(parseFloat),a=e.left+e.width*s/n.width-(n.left+s),c=e.top+e.height*l/n.height-(n.top+l),{delay:d=0,duration:u=(_=>Math.sqrt(_)*120),easing:p=Tu}=i;return{delay:d,duration:Yo(u)?u(Math.sqrt(a*a+c*c)):u,easing:p,css:(_,f)=>{const m=f*a,h=f*c,v=_+f*e.width/n.width,y=_+f*e.height/n.height;return`transform: ${r} translate(${m}px, ${h}px) scale(${v}, ${y});`}}}function bh(t){let e,n,i;return{c(){e=S("div"),g(e,"class","move-item__move svelte-qd1rf7")},m(o,r){N(o,e,r),n||(i=[ee(e,"pointerdown",zi(t[11])),ee(e,"pointerup",zi(t[10]))],n=!0)},p:tn,d(o){o&&F(e),n=!1,qn(i)}}}function yh(t){let e,n,i,o,r;return{c(){e=S("button"),g(e,"class","move-item__delete svelte-qd1rf7"),g(e,"aria-label",n=t[7]("delete")),g(e,"data-custom-tooltip",i=t[7]("delete"))},m(s,l){N(s,e,l),o||(r=ee(e,"click",Eo(zi(t[14]))),o=!0)},p(s,l){l&128&&n!==(n=s[7]("delete"))&&g(e,"aria-label",n),l&128&&i!==(i=s[7]("delete"))&&g(e,"data-custom-tooltip",i)},d(s){s&&F(e),o=!1,r()}}}function fie(t){let e,n,i,o,r,s,l,a=t[4]&&bh(t);function c(_){t[12](_)}var d=t[1];function u(_,f){let m={};return _[0]!==void 0&&(m.value=_[0]),{props:m}}d&&(o=hl(d,u(t)),pt.push((()=>Gn(o,"value",c))),o.$on("change",t[13]));let p=!t[5]&&yh(t);return{c(){e=S("div"),a&&a.c(),n=X(),i=S("div"),o&&Ie(o.$$.fragment),s=X(),p&&p.c(),g(i,"class","move-item__content"),g(e,"class","move-item svelte-qd1rf7"),te(e,"move-item_readonly",t[5]),te(e,"move-item_moving",t[2]),te(e,"move-item_reorder",t[3])},m(_,f){N(_,e,f),a&&a.m(e,null),$(e,n),$(e,i),o&&Oe(o,i,null),$(e,s),p&&p.m(e,null),t[15](e),l=!0},p(_,[f]){if(_[4]?a?a.p(_,f):(a=bh(_),a.c(),a.m(e,n)):a&&(a.d(1),a=null),f&2&&d!==(d=_[1])){if(o){It();const m=o;H(m.$$.fragment,1,0,(()=>{Me(m,1)})),Dt()}d?(o=hl(d,u(_)),pt.push((()=>Gn(o,"value",c))),o.$on("change",_[13]),Ie(o.$$.fragment),I(o.$$.fragment,1),Oe(o,i,null)):o=null}else if(d){const m={};!r&&f&1&&(r=!0,m.value=_[0],Xn((()=>r=!1))),o.$set(m)}_[5]?p&&(p.d(1),p=null):p?p.p(_,f):(p=yh(_),p.c(),p.m(e,null)),(!l||f&32)&&te(e,"move-item_readonly",_[5]),(!l||f&4)&&te(e,"move-item_moving",_[2]),(!l||f&8)&&te(e,"move-item_reorder",_[3])},i(_){l||(o&&I(o.$$.fragment,_),l=!0)},o(_){o&&H(o.$$.fragment,_),l=!1},d(_){_&&F(e),a&&a.d(),o&&Me(o),p&&p.d(),t[15](null)}}}function mie(t,e,n){let i,{value:o}=e,{itemView:r}=e,{isMoving:s=!1}=e,{isReoderInProgress:l=!1}=e,{canBeMoved:a=!0}=e,{readOnly:c=!1}=e;const{l10nString:d}=wt(oi);Pe(t,d,(b=>n(7,i=b)));const u=_i();let p;function _(b){mn.call(this,t,b)}const f=b=>u("movestart",{event:b,elem:p});function m(b){o=b,n(0,o)}function h(b){mn.call(this,t,b)}const v=()=>u("delete");function y(b){pt[b?"unshift":"push"]((()=>{p=b,n(6,p)}))}return t.$$set=b=>{"value"in b&&n(0,o=b.value),"itemView"in b&&n(1,r=b.itemView),"isMoving"in b&&n(2,s=b.isMoving),"isReoderInProgress"in b&&n(3,l=b.isReoderInProgress),"canBeMoved"in b&&n(4,a=b.canBeMoved),"readOnly"in b&&n(5,c=b.readOnly)},[o,r,s,l,a,c,p,i,d,u,_,f,m,h,v,y]}class gie extends Gt{constructor(e){super(),Yt(this,e,mie,fie,Rt,{value:0,itemView:1,isMoving:2,isReoderInProgress:3,canBeMoved:4,readOnly:5})}}function wh(t,e,n){const i=t.slice();i[15]=e[n],i[17]=e,i[18]=n;const o=i[4]&&i[15].__key===i[4].__key;return i[16]=o,i}function $h(t,e){let n,i,o,r,s,l,a=tn,c;function d(f){e[9](f,e[15],e[17],e[18])}function u(){return e[11](e[15])}function p(...f){return e[12](e[15],...f)}let _={itemView:e[0],readOnly:e[1],isMoving:e[16]&&!e[5],isReoderInProgress:e[4]&&!e[5],canBeMoved:e[2]&&e[2].length>=2};return e[15]!==void 0&&(_.value=e[15]),i=new gie({props:_}),pt.push((()=>Gn(i,"value",d))),i.$on("change",e[10]),i.$on("delete",u),i.$on("movestart",p),{key:t,first:null,c(){n=S("li"),Ie(i.$$.fragment),r=X(),g(n,"class","move-list__item svelte-1f61395"),te(n,"move-list__item_moved",e[16]),te(n,"move-list__item_animate",e[16]&&e[5]),this.first=n},m(f,m){N(f,n,m),Oe(i,n,null),$(n,r),c=!0},p(f,m){e=f;const h={};m&1&&(h.itemView=e[0]),m&2&&(h.readOnly=e[1]),m&52&&(h.isMoving=e[16]&&!e[5]),m&48&&(h.isReoderInProgress=e[4]&&!e[5]),m&4&&(h.canBeMoved=e[2]&&e[2].length>=2),!o&&m&4&&(o=!0,h.value=e[15],Xn((()=>o=!1))),i.$set(h),(!c||m&20)&&te(n,"move-list__item_moved",e[16]),(!c||m&52)&&te(n,"move-list__item_animate",e[16]&&e[5])},r(){l=n.getBoundingClientRect()},f(){oL(n),a(),f1(n,l)},a(){a(),a=iL(n,l,_ie,{duration:e[16]?0:200})},i(f){c||(I(i.$$.fragment,f),f&&po((()=>{c&&(s||(s=Zi(n,Go,{duration:200},!0)),s.run(1))})),c=!0)},o(f){H(i.$$.fragment,f),f&&(s||(s=Zi(n,Go,{duration:200},!1)),s.run(0)),c=!1},d(f){f&&F(n),Me(i),f&&s&&s.end()}}}function hie(t){let e,n=[],i=new Map,o,r=an(t[2]||[]);const s=l=>l[15].__key;for(let l=0;l<r.length;l+=1){let a=wh(t,r,l),c=s(a);i.set(c,n[l]=$h(c,a))}return{c(){e=S("ul");for(let l=0;l<n.length;l+=1)n[l].c();g(e,"class","move-list__list svelte-1f61395")},m(l,a){N(l,e,a);for(let c=0;c<n.length;c+=1)n[c]&&n[c].m(e,null);t[13](e),o=!0},p(l,[a]){if(a&247){r=an(l[2]||[]),It();for(let c=0;c<n.length;c+=1)n[c].r();n=Hs(n,a,s,1,l,r,i,e,dL,$h,null,wh);for(let c=0;c<n.length;c+=1)n[c].a();Dt()}},i(l){if(!o){for(let a=0;a<r.length;a+=1)I(n[a]);o=!0}},o(l){for(let a=0;a<n.length;a+=1)H(n[a]);o=!1},d(l){l&&F(e);for(let a=0;a<n.length;a+=1)n[a].d();t[13](null)}}}function vie(t,e,n){let i,{values:o}=e,{itemView:r}=e,{readOnly:s=!1}=e;const l=_i();let a,c,d=!1;function u(y){if(!i||typeof y!="number")return;const b=i.find((w=>w.__key===y));n(8,o=n(2,i=i.filter((w=>w.__key!==y)))),i.length||n(8,o=n(2,i=void 0)),l("change"),l("delete",{item:b})}function p(y,b){if(!i||i.length<2||typeof y!="number")return;n(5,d=!1);const w=b.detail.elem.parentElement;if(!w||!(w instanceof HTMLElement))return;const k=w,E=a.getBoundingClientRect().top,T=b.detail.event.clientY-w.getBoundingClientRect().top,j=i.findIndex((q=>q.__key===y));if(j===-1)return;const A=n(4,c=i[j]);let O=j;const M=Array.from(a.children).map((q=>q.getBoundingClientRect())),D=M.filter(((q,V)=>V!==j)),R=M[j].height,U=M.length>1?M[1].top-M[0].bottom:0;function B(q){q.preventDefault();let V=0,Y=E+D[0].height+U;for(let G=1;G<=D.length;++G)q.clientY-T>Y-D[G-1].height/2&&(V=G),G<D.length&&(Y+=D[G].height+U);const x=E+D.slice(0,V).reduce(((G,Q)=>G+Q.height),0)+U*V;let de=q.clientY-T-x;if(de=Math.min(de,M[M.length-1].bottom-x-R),de=Math.max(de,M[0].top-x),k.style.transform=`translateY(${de}px)`,O===V||!i)return;const _e=i.slice();_e.splice(O,1),_e.splice(V,0,A),n(2,i=n(8,o=_e)),O=V,l("reorder",{values:i})}function C(q){q.preventDefault(),document.body.removeEventListener("pointermove",B),document.body.removeEventListener("pointerup",C),document.body.removeEventListener("pointercancel",C),n(5,d=!0),ur().then((()=>{k.style.transform=""}))}document.body.addEventListener("pointermove",B),document.body.addEventListener("pointerup",C),document.body.addEventListener("pointercancel",C)}function _(y,b,w,k){w[k]=y,n(2,i),n(8,o)}function f(y){mn.call(this,t,y)}const m=y=>u(y.__key),h=(y,b)=>p(y.__key,b);function v(y){pt[y?"unshift":"push"]((()=>{a=y,n(3,a)}))}return t.$$set=y=>{"values"in y&&n(8,o=y.values),"itemView"in y&&n(0,r=y.itemView),"readOnly"in y&&n(1,s=y.readOnly)},t.$$.update=()=>{if(t.$$.dirty&256&&n(2,i=o),t.$$.dirty&4&&i){const y=new Set;let b=0;i.forEach((k=>{typeof k.__key=="number"&&y.add(k.__key)}));const w=()=>{for(;;){const k=b++;if(!y.has(k))return y.add(k),k}};i.forEach((k=>{"__key"in k||(k.__key=w())}))}},[r,s,i,a,c,d,u,p,o,_,f,m,h,v]}class $a extends Gt{constructor(e){super(),Yt(this,e,vie,hie,Rt,{values:8,itemView:0,readOnly:1})}}function _a(t){return t?t.a===255?`#${[t.r,t.g,t.b].map((e=>Math.round(e).toString(16).padStart(2,"0"))).join("")}`:`rgba(${t.r},${t.g},${t.b},${(t.a/255).toFixed(2)})`:"transparent"}function ms(t){return t.a===255?`#${[t.r,t.g,t.b].map((e=>Math.round(e).toString(16).padStart(2,"0"))).join("")}`:`#${[t.a,t.r,t.g,t.b].map((e=>Math.round(e).toString(16).padStart(2,"0"))).join("")}`}function Ac(t){const e=_r(t);return e?_a(e):""}function wV(t){const e=_r(t);return e?(e.a=255,_a(e)):"transparent"}function _r(t){const e=t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i)||t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);if(e){if(e.length===5){const[c,d,u,p,_]=e,f=u.length===2?u:u+u,m=p.length===2?p:p+p,h=_.length===2?_:_+_,v=d.length===2?d:d+d;return{a:parseInt(v,16),r:parseInt(f,16),g:parseInt(m,16),b:parseInt(h,16)}}const[n,i,o,r]=e,s=i.length===2?i:i+i,l=o.length===2?o:o+o,a=r.length===2?r:r+r;return{a:255,r:parseInt(s,16),g:parseInt(l,16),b:parseInt(a,16)}}return null}function Ra(t){const{h:e,s:n,v:i,a:o}=t;let r,s,l;const a=Math.floor(e*6),c=e*6-a,d=i*(1-n),u=i*(1-c*n),p=i*(1-(1-c)*n);switch(a%6){case 0:{r=i,s=p,l=d;break}case 1:{r=u,s=i,l=d;break}case 2:{r=d,s=i,l=p;break}case 3:{r=d,s=u,l=i;break}case 4:{r=p,s=d,l=i;break}case 5:{r=i,s=d,l=u;break}default:throw new Error("Default fallback")}return{r:Math.round(r*255),g:Math.round(s*255),b:Math.round(l*255),a:Math.round(o*255)}}function bie(t){let{r:e,g:n,b:i,a:o}=t;e/=255,n/=255,i/=255,o/=255;const r=Math.max(e,n,i),s=Math.min(e,n,i);let l;const a=r,c=r-s,d=r===0?0:c/r;if(r===s)l=0;else{switch(r){case e:{l=(n-i)/c+(n<i?6:0);break}case n:{l=(i-e)/c+2;break}case i:{l=(e-n)/c+4;break}default:throw new Error("Default fallback")}l/=6}return{h:l,s:d,v:a,a:o}}const Zl=3;function Oc(t,e){if(t instanceof HTMLElement&&t.tagName==="IMG")return e?1:0;if(t instanceof HTMLElement&&e)return Array.from(t.childNodes).reduce(((o,r)=>(o+=Oc(r,e),o)),0);const n=t.textContent;let i=0;return typeof n=="string"&&(i+=n.length,t instanceof HTMLElement&&(t.tagName==="DIV"||t.tagName==="BR")&&++i),i}function Dr(t,e,n,i){if(!t)return 0;try{let o=0;const r=t.getRangeAt(0);let s;if(r&&(n==="end"?(o+=r.endOffset,s=r.endContainer):(o+=r.startOffset,s=r.startContainer)),s instanceof HTMLElement){let l=0;for(let a=0,c=Math.min(o,s.childNodes.length);a<c;++a)l+=Oc(s.childNodes[a],i);o=l}for(;s&&s!==e;){const l=s.parentNode;if(!l)return 0;const a=Array.from(l.childNodes).indexOf(s);for(let d=0;d<a;++d){const u=l.childNodes[d];o+=Oc(u,i)}const c=l.childNodes[a-1];s instanceof HTMLElement&&(s.tagName==="DIV"&&((c==null?void 0:c.nodeType)===Zl||c&&c instanceof HTMLElement&&c.tagName==="SPAN")||s.tagName==="BR")&&++o,s=l}return o}catch{return 0}}function ts(t,e,n,i,o,r){if(e.nodeType===Zl){try{t&&(i==="start"?n.setStart(e,o):n.setEnd(e,o))}catch{}return}if(e instanceof HTMLElement&&(e.tagName==="BR"||e.tagName==="IMG")){try{if(t){t.removeAllRanges();const s=document.createRange(),l=e.parentNode,a=Array.from(l.childNodes).indexOf(e)+1;s.setStart(l,a),s.setEnd(l,a),t.addRange(s)}}catch{}return}for(let s=0,l=e.childNodes.length;s<l;++s){const a=e.childNodes[s],c=Oc(a,r);if(o<=c){ts(t,a,n,i,o,r);return}o-=c}}function fa(t,e){if(t.nodeType===Zl)return t.textContent||"";if(!(t instanceof HTMLElement))return"";if(t.tagName==="BR")return`\n`;if(t.tagName==="IMG")return"";const n=t.childNodes;if(n.length===1&&n[0]instanceof HTMLElement&&n[0].tagName==="BR")return`\n`;let i="";for(let o=0,r=n.length;o<r;++o){const s=n[o],l=n[o-1],a=s instanceof HTMLElement&&s.tagName==="DIV"&&o>0&&(l.nodeType===Zl||l instanceof HTMLElement&&(l.tagName==="A"||l.tagName==="DIV"));a&&(i+=`\n`),s instanceof HTMLElement&&s.tagName==="BR"&&o===n.length-1||a&&s instanceof HTMLElement&&s.tagName==="DIV"&&s.childNodes.length===1&&s.childNodes[0]instanceof HTMLElement&&s.childNodes[0].tagName==="BR"||(s.nodeType===Zl?i+=s.textContent:s instanceof HTMLElement&&(i+=fa(s)))}return i}function yie(t){let e,n,i,o,r,s,l,a,c;return{c(){e=S("div"),n=S("div"),i=X(),o=S("div"),r=X(),s=S("div"),l=X(),a=S("div"),g(n,"class","color-preview__bg svelte-1vt6wdf"),g(o,"class","color-preview__no-alpha svelte-1vt6wdf"),je(o,"background-color",t[5](t[0],!1,t[2])),g(s,"class","color-preview__alpha svelte-1vt6wdf"),je(s,"background-color",t[5](t[0],!0,t[2])),g(a,"class","color-preview__inset svelte-1vt6wdf"),g(e,"class",c="color-preview "+t[1]+" svelte-1vt6wdf")},m(d,u){N(d,e,u),$(e,n),$(e,i),$(e,o),$(e,r),$(e,s),$(e,l),$(e,a)},p(d,[u]){u&5&&je(o,"background-color",d[5](d[0],!1,d[2])),u&5&&je(s,"background-color",d[5](d[0],!0,d[2])),u&2&&c!==(c="color-preview "+d[1]+" svelte-1vt6wdf")&&g(e,"class",c)},i:tn,o:tn,d(d){d&&F(e)}}}function wie(t,e,n){let i,o,{color:r}=e,{mix:s=""}=e;const{state:l}=wt(An),{palette:a,previewThemeStore:c}=l;Pe(t,a,(u=>n(6,i=u))),Pe(t,c,(u=>n(2,o=u)));function d(u,p,_){if(!u)return"transparent";const f=p?Ac:wV;if(dr(u)){const m=yr(u),h=i.find((v=>v.id===m));if(h)return f(h[_])}else return f(u);return"transparent"}return t.$$set=u=>{"color"in u&&n(0,r=u.color),"mix"in u&&n(1,s=u.mix)},[r,s,o,a,c,d]}class Ys extends Gt{constructor(e){super(),Yt(this,e,wie,yie,Rt,{color:0,mix:1})}}const $V=Symbol("palette-errors");function kh(t,e,n){return t.map((i=>i.id===e?{...i,name:n}:i))}class np extends hr{constructor(n,i){super();on(this,"id");on(this,"beforeName");on(this,"afterName");this.id=n,this.beforeName="",this.afterName=i}undo(n){const i=$n(n.palette);n.palette.set(kh(i,this.id,this.beforeName))}redo(n){const i=$n(n.palette),o=i.find((r=>r.id===this.id));o&&(this.beforeName=o.name,n.palette.set(kh(i,this.id,this.afterName)))}canMerge(n){return super.canMerge(n)&&n instanceof np&&this.id===n.id}mergeMeWith(n){this.afterName=n.afterName}toLangKey(){return"commands.rename_palette_item"}}function jh(t,e,n,i){return t.map((o=>o.id===e?{...o,[n]:i}:o))}class Mc extends hr{constructor(n,i,o){super();on(this,"id");on(this,"theme");on(this,"beforeColor");on(this,"afterColor");this.id=n,this.theme=i,this.beforeColor="",this.afterColor=o}undo(n){const i=$n(n.palette);n.palette.set(jh(i,this.id,this.theme,this.beforeColor))}redo(n){const i=$n(n.palette),o=i.find((r=>r.id===this.id));o&&(this.beforeColor=o[this.theme],n.palette.set(jh(i,this.id,this.theme,this.afterColor)))}canMerge(n){return super.canMerge(n)&&n instanceof Mc&&this.id===n.id&&this.theme===n.theme}mergeMeWith(n){this.afterColor=n.afterColor}toLangKey(){return"commands.change_palette_item"}}function $ie(t){let e,n,i,o,r,s,l,a,c,d,u,p,_,f,m,h,v,y,b;return r=new Ys({props:{color:t[0][t[1]],mix:"palette-item__preview-inner"}}),{c(){e=S("div"),n=S("input"),i=X(),o=S("button"),Ie(r.$$.fragment),s=X(),l=S("input"),c=X(),d=S("div"),u=X(),p=S("input"),f=X(),m=S("div"),m.textContent="%",g(n,"class","palette-item__name svelte-xr24np"),g(n,"contenteditable","true"),g(n,"autocomplete","off"),g(n,"autocorrect","off"),g(n,"autocapitalize","off"),g(n,"spellcheck","false"),g(n,"maxlength",Jl),g(o,"class","palette-item__preview svelte-xr24np"),g(l,"class","palette-item__input svelte-xr24np"),g(l,"type","text"),g(l,"autocomplete","off"),g(l,"autocorrect","off"),g(l,"autocapitalize","off"),g(l,"spellcheck","false"),g(l,"maxlength","7"),l.disabled=t[7],g(l,"title",a=t[9]("background.solid_first_title")),g(d,"class","palette-item__separator svelte-xr24np"),g(p,"class","palette-item__second-input svelte-xr24np"),g(p,"type","number"),g(p,"autocomplete","off"),g(p,"autocorrect","off"),g(p,"autocapitalize","off"),g(p,"spellcheck","false"),g(p,"min","0"),p.disabled=t[7],g(p,"max","100"),g(p,"title",_=t[9]("background.solid_second_title")),g(m,"class","palette-item__symbol svelte-xr24np"),g(e,"class","palette-item svelte-xr24np"),g(e,"title",h=t[8].get(t[0].id)),te(e,"palette-item_readonly",t[7]),te(e,"palette-item_error",t[8].get(t[0].id))},m(w,k){N(w,e,k),$(e,n),t[17](n),Hn(n,t[4]),$(e,i),$(e,o),Oe(r,o,null),$(e,s),$(e,l),Hn(l,t[5]),$(e,c),$(e,d),$(e,u),$(e,p),Hn(p,t[6]),$(e,f),$(e,m),t[21](e),v=!0,y||(b=[ee(n,"input",t[18]),ee(n,"input",t[16]),ee(o,"click",t[15]),ee(l,"input",t[19]),ee(l,"input",t[14]),ee(p,"input",t[20]),ee(p,"input",t[14])],y=!0)},p(w,[k]){k&16&&n.value!==w[4]&&Hn(n,w[4]);const E={};k&3&&(E.color=w[0][w[1]]),r.$set(E),(!v||k&128)&&(l.disabled=w[7]),(!v||k&512&&a!==(a=w[9]("background.solid_first_title")))&&g(l,"title",a),k&32&&l.value!==w[5]&&Hn(l,w[5]),(!v||k&128)&&(p.disabled=w[7]),(!v||k&512&&_!==(_=w[9]("background.solid_second_title")))&&g(p,"title",_),k&64&&Ji(p.value)!==w[6]&&Hn(p,w[6]),(!v||k&257&&h!==(h=w[8].get(w[0].id)))&&g(e,"title",h),(!v||k&128)&&te(e,"palette-item_readonly",w[7]),(!v||k&257)&&te(e,"palette-item_error",w[8].get(w[0].id))},i(w){v||(I(r.$$.fragment,w),v=!0)},o(w){H(r.$$.fragment,w),v=!1},d(w){w&&F(e),t[17](null),Me(r),t[21](null),y=!1,qn(b)}}}const Jl=120;function kie(t,e,n){let i,o,r,s,{value:l}=e;const{l10nString:a}=wt(oi);Pe(t,a,(B=>n(9,s=B)));const{getSelection:c,state:d,color2Dialog:u}=wt(An),{errors:p}=wt($V);Pe(t,p,(B=>n(8,r=B)));const{previewThemeStore:_,readOnly:f}=d;Pe(t,_,(B=>n(1,i=B))),Pe(t,f,(B=>n(7,o=B)));const m=_i();let h,v,y="",b="",w="",k=!1;function E(B,C){if(k)return;n(4,y=B.name);const q=_r(B[C]||"");q?(n(6,w=String(Math.round(q.a/255*100))),q.a=255,n(5,b=ms(q))):(n(5,b=""),n(6,w=""))}function T(){const B=_r(b);B&&(B.a=Math.round(Number(w)*255/100),k=!0,d.pushCommand(new Mc(l.id,i,ms(B))),m("change"))}function j(){u().show({value:l[i],target:h,disabled:o,direction:"right",offset:o?32:60,callback(B){d.pushCommand(new Mc(l.id,i,B))}})}function A(){if(y.length>Jl){const B=c(),C=Dr(B,v,"start",!1),q=Dr(B,v,"end",!1);n(4,y=y.slice(0,Jl)),ur().then((()=>{if(!B)return;B.removeAllRanges();const V=document.createRange();ts(B,v,V,"start",Math.min(C,Jl),!1),ts(B,v,V,"end",Math.min(q,Jl),!1),B.addRange(V)}))}d.pushCommand(new np(l.id,y))}gs((()=>{k&&(k=!1)}));function O(B){pt[B?"unshift":"push"]((()=>{v=B,n(3,v)}))}function M(){y=this.value,n(4,y)}function D(){b=this.value,n(5,b)}function R(){w=Ji(this.value),n(6,w)}function U(B){pt[B?"unshift":"push"]((()=>{h=B,n(2,h)}))}return t.$$set=B=>{"value"in B&&n(0,l=B.value)},t.$$.update=()=>{t.$$.dirty&3&&E(l,i)},[l,i,h,v,y,b,w,o,r,s,a,p,_,f,T,j,A,O,M,D,R,U]}class jie extends Gt{constructor(e){super(),Yt(this,e,kie,$ie,Rt,{value:0})}}class Sie extends hr{constructor(n){super();on(this,"id");on(this,"paletteItem",null);on(this,"index",null);this.id=n}undo(n){const i=$n(n.palette);this.index=i.findIndex((r=>r.id===this.id));const o=i[this.index];this.paletteItem=o,n.palette.set(i.filter((r=>r.id!==this.id)))}redo(n){const i=this.id,o=this.paletteItem||(this.paletteItem={id:i,name:i,light:"#fff",dark:"#000"}),r=$n(n.palette).slice();this.index===null?r.push(o):r.splice(this.index,0,o),n.palette.set(r)}canMerge(n){return!1}mergeMeWith(n){throw new Error("Cannot merge AddPaletteItemCommand")}toLangKey(){return"commands.add_palette_item"}}class Cie extends hr{constructor(n){super();on(this,"paletteItem");on(this,"index");this.index=-1,this.paletteItem=n}undo(n){const i=$n(n.palette).slice();i.splice(this.index,0,this.paletteItem),n.palette.set(i)}redo(n){const i=$n(n.palette);this.index=i.findIndex((o=>o.id===this.paletteItem.id)),n.palette.set(i.filter((o=>o.id!==this.paletteItem.id)))}canMerge(n){return!1}mergeMeWith(n){throw new Error("Cannot merge DeletePaletteItemCommand")}toLangKey(){return"commands.delete_palette_item"}}function Sh(t,e){const n={};return t.forEach((i=>{n[i.id]=i})),e.map((i=>n[i]))}class Tie extends hr{constructor(n){super();on(this,"beforeOrder");on(this,"afterOrder");this.beforeOrder=[],this.afterOrder=n}undo(n){const i=$n(n.palette);n.palette.set(Sh(i,this.beforeOrder))}redo(n){const i=$n(n.palette);this.beforeOrder=i.map((o=>o.id)),n.palette.set(Sh(i,this.afterOrder))}mergeMeWith(n){this.afterOrder=n.afterOrder}toLangKey(){return"commands.reorder_palette_item"}}function zie(t){let e,n,i;const o=t[4].default,r=Fs(o,t,t[6],null);return{c(){e=S("div"),n=X(),r&&r.c(),g(e,"class","add-button__icon svelte-b0459t"),te(e,"add-button__icon_disabled",t[0])},m(s,l){N(s,e,l),N(s,n,l),r&&r.m(s,l),i=!0},p(s,l){(!i||l&1)&&te(e,"add-button__icon_disabled",s[0]),r&&r.p&&(!i||l&64)&&qs(r,o,s,s[6],i?Ns(o,s[6],l,null):Rs(s[6]),null)},i(s){i||(I(r,s),i=!0)},o(s){H(r,s),i=!1},d(s){s&&(F(e),F(n)),r&&r.d(s)}}}function Eie(t){let e,n;return e=new dd({props:{disabled:t[0],cls:t[1],title:t[2],slim:t[3],$$slots:{default:[zie]},$$scope:{ctx:t}}}),e.$on("click",t[5]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,[o]){const r={};o&1&&(r.disabled=i[0]),o&2&&(r.cls=i[1]),o&4&&(r.title=i[2]),o&8&&(r.slim=i[3]),o&65&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Aie(t,e,n){let{$$slots:i={},$$scope:o}=e,{disabled:r=!1}=e,{cls:s=""}=e,{title:l=""}=e,{slim:a=!1}=e;function c(d){mn.call(this,t,d)}return t.$$set=d=>{"disabled"in d&&n(0,r=d.disabled),"cls"in d&&n(1,s=d.cls),"title"in d&&n(2,l=d.title),"slim"in d&&n(3,a=d.slim),"$$scope"in d&&n(6,o=d.$$scope)},[r,s,l,a,i,c,o]}class Gs extends Gt{constructor(e){super(),Yt(this,e,Aie,Eie,Rt,{disabled:0,cls:1,title:2,slim:3})}}function Ch(t){let e,n;return e=new Gs({props:{cls:"palette__add",disabled:t[3],$$slots:{default:[Oie]},$$scope:{ctx:t}}}),e.$on("click",t[9]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&8&&(r.disabled=i[3]),o&65540&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Oie(t){let e=t[2]("addColor")+"",n;return{c(){n=Ze(e)},m(i,o){N(i,n,o)},p(i,o){o&4&&e!==(e=i[2]("addColor")+"")&<(n,e)},d(i){i&&F(n)}}}function Mie(t){let e,n,i,o,r;n=new $a({props:{values:t[0],itemView:jie,readOnly:t[3]}}),n.$on("reorder",t[10]),n.$on("delete",t[11]);let s=!t[3]&&Ch(t);return{c(){e=S("div"),Ie(n.$$.fragment),i=X(),s&&s.c(),o=Dn(),g(e,"class","palette__list")},m(l,a){N(l,e,a),Oe(n,e,null),N(l,i,a),s&&s.m(l,a),N(l,o,a),r=!0},p(l,a){const c={};a&1&&(c.values=l[0]),a&8&&(c.readOnly=l[3]),n.$set(c),l[3]?s&&(It(),H(s,1,1,(()=>{s=null})),Dt()):s?(s.p(l,a),a&8&&I(s,1)):(s=Ch(l),s.c(),I(s,1),s.m(o.parentNode,o))},i(l){r||(I(n.$$.fragment,l),I(s),r=!0)},o(l){H(n.$$.fragment,l),H(s),r=!1},d(l){l&&(F(e),F(i),F(o)),Me(n),s&&s.d(l)}}}function Pie(t){let e,n=t[2]("localPalette")+"",i;return{c(){e=S("div"),i=Ze(n),g(e,"slot","title")},m(o,r){N(o,e,r),$(e,i)},p(o,r){r&4&&n!==(n=o[2]("localPalette")+"")&<(i,n)},d(o){o&&F(e)}}}function Iie(t){let e,n,i,o,r,s,l;function a(d){t[12](d)}let c={name:"previewTheme",options:[{text:t[2]("lightTheme"),value:"light",icon:Sl,tooltipAlign:"left"},{text:t[2]("darkTheme"),value:"dark",icon:Cl}],theme:"normal",iconSize:"20"};return t[1]!==void 0&&(c.value=t[1]),i=new Dl({props:c}),pt.push((()=>Gn(i,"value",a))),s=new xo({props:{theme:"props",$$slots:{title:[Pie],default:[Mie]},$$scope:{ctx:t}}}),{c(){e=S("div"),n=S("div"),Ie(i.$$.fragment),r=X(),Ie(s.$$.fragment),g(n,"class","palette__title svelte-1q6emsv"),g(e,"class","palette")},m(d,u){N(d,e,u),$(e,n),Oe(i,n,null),$(e,r),Oe(s,e,null),l=!0},p(d,[u]){const p={};u&4&&(p.options=[{text:d[2]("lightTheme"),value:"light",icon:Sl,tooltipAlign:"left"},{text:d[2]("darkTheme"),value:"dark",icon:Cl}]),!o&&u&2&&(o=!0,p.value=d[1],Xn((()=>o=!1))),i.$set(p);const _={};u&65549&&(_.$$scope={dirty:u,ctx:d}),s.$set(_)},i(d){l||(I(i.$$.fragment,d),I(s.$$.fragment,d),l=!0)},o(d){H(i.$$.fragment,d),H(s.$$.fragment,d),l=!1},d(d){d&&F(e),Me(i),Me(s)}}}function Die(t,e,n){let i,o,r,s,l;const{l10n:a}=wt(oi);Pe(t,a,(b=>n(2,s=b)));const{state:c}=wt(An),{palette:d,previewThemeStore:u,readOnly:p}=c;Pe(t,d,(b=>n(0,o=b))),Pe(t,u,(b=>n(1,r=b))),Pe(t,p,(b=>n(3,l=b)));let _=Si(new Map);Pe(t,_,(b=>n(13,i=b))),mc($V,{errors:_});function f(){const b=c.genPaletteId();c.pushCommand(new Sie(b))}function m(){i.clear();const b=new Map;o.forEach((w=>{let k;w.name?(k=b.get(w.name))?(i.set(w.id,"Duplicate color name"),i.set(k,"Duplicate color name")):(b.set(w.name,w.id),i.set(w.id,"")):i.set(w.id,"Name is empty")}))}function h(b){c.pushCommand(new Tie(b.detail.values.map((w=>w.id))))}function v(b){c.pushCommand(new Cie(b.detail.item))}function y(b){r=b,u.set(r)}return t.$$.update=()=>{t.$$.dirty&1&&o&&m()},[o,r,s,l,a,d,u,p,_,f,h,v,y]}class Vie extends Gt{constructor(e){super(),Yt(this,e,Die,Iie,Rt,{})}}function ip(t,e){if(!e||!t)return{};const n={},i=/number (>|>=|<|<=) (-?\d+)/g;if(!i.test(e))return console.error("Unknown constraint",e),{};i.lastIndex=-1;let o;for(;o=i.exec(e);){const r=Number(o[2]),s=o[1];s===">"?n.min=t==="integer"?r+1:r+.01:s===">="?n.min=r:s==="<"?n.max=t==="integer"?r-1:r-.01:s==="<="&&(n.max=r)}return n}function Lie(t){let e,n,i;return{c(){e=S("input"),g(e,"type","number"),g(e,"min",t[5]),g(e,"max",t[4]),g(e,"step",t[3]),g(e,"pattern",t[2]),g(e,"class","input-prop svelte-1eq98y8"),g(e,"autocomplete","off"),g(e,"autocorrect","off"),g(e,"autocapitalize","off"),g(e,"spellcheck","false"),g(e,"id",t[1]),e.disabled=t[7]},m(o,r){N(o,e,r),Hn(e,t[0]),n||(i=[ee(e,"input",t[15]),ee(e,"input",t[9])],n=!0)},p(o,r){r&32&&g(e,"min",o[5]),r&16&&g(e,"max",o[4]),r&8&&g(e,"step",o[3]),r&4&&g(e,"pattern",o[2]),r&2&&g(e,"id",o[1]),r&128&&(e.disabled=o[7]),r&1&&Ji(e.value)!==o[0]&&Hn(e,o[0])},d(o){o&&F(e),n=!1,qn(i)}}}function Fie(t){let e,n,i;return{c(){e=S("input"),g(e,"type","text"),g(e,"min",t[5]),g(e,"max",t[4]),g(e,"step",t[3]),g(e,"pattern",t[2]),g(e,"class","input-prop svelte-1eq98y8"),g(e,"autocomplete","off"),g(e,"autocorrect","off"),g(e,"autocapitalize","off"),g(e,"spellcheck","false"),g(e,"id",t[1]),e.disabled=t[7]},m(o,r){N(o,e,r),Hn(e,t[0]),n||(i=[ee(e,"input",t[14]),ee(e,"input",t[9])],n=!0)},p(o,r){r&32&&g(e,"min",o[5]),r&16&&g(e,"max",o[4]),r&8&&g(e,"step",o[3]),r&4&&g(e,"pattern",o[2]),r&2&&g(e,"id",o[1]),r&128&&(e.disabled=o[7]),r&1&&e.value!==o[0]&&Hn(e,o[0])},d(o){o&&F(e),n=!1,qn(i)}}}function Nie(t){let e;function n(r,s){return r[6]==="text"?Fie:Lie}let i=n(t),o=i(t);return{c(){o.c(),e=Dn()},m(r,s){o.m(r,s),N(r,e,s)},p(r,[s]){i===(i=n(r))&&o?o.p(r,s):(o.d(1),o=i(r),o&&(o.c(),o.m(e.parentNode,e)))},i:tn,o:tn,d(r){r&&F(e),o.d(r)}}}function qie(t,e,n){let i,o,r,s,l,a,c,d,{id:u}=e,{value:p}=e,{prop:_}=e,{flags:f}=e;const{state:m}=wt(An),{readOnly:h}=m;Pe(t,h,(k=>n(7,d=k)));const v=_i();function y(){v("change",{value:p,prop:_})}function b(){p=this.value,n(0,p)}function w(){p=Ji(this.value),n(0,p)}return t.$$set=k=>{"id"in k&&n(1,u=k.id),"value"in k&&n(0,p=k.value),"prop"in k&&n(10,_=k.prop),"flags"in k&&n(11,f=k.flags)},t.$$.update=()=>{t.$$.dirty&2048&&n(13,i=f.subtype==="number"||f.subtype==="integer"),t.$$.dirty&8192&&n(6,o=i?"number":"text"),t.$$.dirty&2048&&n(12,r=ip(f.subtype,f.constraint)),t.$$.dirty&4096&&n(5,s=r.min),t.$$.dirty&4096&&n(4,l=r.max),t.$$.dirty&2048&&n(3,a=f.subtype==="integer"?1:f.subtype==="number"?.01:null),t.$$.dirty&2048&&n(2,c=f.subtype==="integer"?"\\d+":null)},[p,u,c,a,l,s,o,d,h,y,_,f,r,i,b,w]}let kV=class extends Gt{constructor(e){super(),Yt(this,e,qie,Nie,Rt,{id:1,value:0,prop:10,flags:11})}};function Th(t,e,n){const i=t.slice();return i[10]=e[n],i}function zh(t){let e,n=t[10].name+"",i,o;return{c(){e=S("option"),i=Ze(n),g(e,"class","select-prop__option svelte-r0acjk"),e.__value=o=t[10].value,Hn(e,e.__value)},m(r,s){N(r,e,s),$(e,i)},p(r,s){s&4&&n!==(n=r[10].name+"")&<(i,n),s&4&&o!==(o=r[10].value)&&(e.__value=o,Hn(e,e.__value))},d(r){r&&F(e)}}}function Rie(t){let e,n,i,o,r=an(t[2]),s=[];for(let l=0;l<r.length;l+=1)s[l]=zh(Th(t,r,l));return{c(){e=S("select"),n=S("option");for(let l=0;l<s.length;l+=1)s[l].c();g(n,"class","select-prop__option svelte-r0acjk"),n.__value="",Hn(n,n.__value),g(e,"class","select-prop svelte-r0acjk"),g(e,"id",t[1]),e.disabled=t[3],t[0]===void 0&&po((()=>t[7].call(e)))},m(l,a){N(l,e,a),$(e,n);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(e,null);pc(e,t[0],!0),i||(o=[ee(e,"change",t[7]),ee(e,"change",t[5])],i=!0)},p(l,[a]){if(a&4){r=an(l[2]);let c;for(c=0;c<r.length;c+=1){const d=Th(l,r,c);s[c]?s[c].p(d,a):(s[c]=zh(d),s[c].c(),s[c].m(e,null))}for(;c<s.length;c+=1)s[c].d(1);s.length=r.length}a&2&&g(e,"id",l[1]),a&8&&(e.disabled=l[3]),a&5&&pc(e,l[0])},i:tn,o:tn,d(l){l&&F(e),Bi(s,l),i=!1,qn(o)}}}function Bie(t,e,n){let i;const{state:o}=wt(An),{readOnly:r}=o;Pe(t,r,(_=>n(3,i=_)));let{id:s}=e,{value:l}=e,{prop:a}=e,{options:c}=e;const d=_i();function u(){d("change",{value:l,prop:a})}function p(){l=u1(this),n(0,l),n(2,c)}return t.$$set=_=>{"id"in _&&n(1,s=_.id),"value"in _&&n(0,l=_.value),"prop"in _&&n(6,a=_.prop),"options"in _&&n(2,c=_.options)},[l,s,c,i,r,u,a,p]}let jV=class extends Gt{constructor(e){super(),Yt(this,e,Bie,Rie,Rt,{id:1,value:0,prop:6,options:2})}};function Hie(t){let e,n,i;return{c(){e=S("input"),g(e,"type","checkbox"),g(e,"class","checkbox-prop svelte-r3qq2i"),g(e,"autocomplete","off"),g(e,"autocorrect","off"),g(e,"autocapitalize","off"),g(e,"spellcheck","false"),g(e,"id",t[0]),e.disabled=t[2]},m(o,r){N(o,e,r),e.checked=t[1],n||(i=[ee(e,"change",t[7]),ee(e,"change",t[4])],n=!0)},p(o,[r]){r&1&&g(e,"id",o[0]),r&4&&(e.disabled=o[2]),r&2&&(e.checked=o[1])},i:tn,o:tn,d(o){o&&F(e),n=!1,qn(i)}}}function Uie(t,e,n){let i,{id:o}=e,{value:r}=e,{prop:s}=e;const{state:l}=wt(An),{readOnly:a}=l;Pe(t,a,(_=>n(2,i=_)));let c=!1;const d=_i();function u(){d("change",{value:r,prop:s})}function p(){c=this.checked,n(1,c),n(5,r)}return t.$$set=_=>{"id"in _&&n(0,o=_.id),"value"in _&&n(5,r=_.value),"prop"in _&&n(6,s=_.prop)},t.$$.update=()=>{t.$$.dirty&32&&r!==void 0&&n(1,c=!!r)},[o,c,i,a,u,r,s,p]}class Jie extends Gt{constructor(e){super(),Yt(this,e,Uie,Hie,Rt,{id:0,value:5,prop:6})}}function Eh(t,e,n){const i=t.slice();i[30]=e[n];const o=`${i[0]}_${i[30].prop}`;i[31]=o;const r=i[30].value;i[32]=r;const s=i[32]!==void 0;i[33]=s;const l=i[30].desc.deprecated;return i[34]=l,i}function Vd(t){const e=t.slice(),n=e[10](e[3],e[30].desc);return e[37]=n,e}function Ah(t,e,n){const i=t.slice();return i[41]=e[n],i[43]=n,i}function Ld(t){const e=t.slice(),n=e[10](e[3],e[30].desc);return e[37]=n,e}function Oh(t,e,n){const i=t.slice();i[38]=e[n];const o=`${i[0]}_${i[30].prop}_${i[38]}`;return i[31]=o,i}function Fd(t){const e=t.slice(),n=e[10](e[3],e[30].desc);return e[37]=n,e}function Wie(t){let e,n,i=t[30].name+"",o,r,s,l,a,c,d,u=(t[30].desc.platforms||t[30].desc.deprecated)&&Mh(Vd(t));const p=[Zie,Xie,Gie],_=[];function f(m,h){return m[30].type==="select"?0:m[30].type==="text"||m[30].type==="color"?1:m[30].type==="checkbox"?2:-1}return~(a=f(t))&&(c=_[a]=p[a](t)),{c(){e=S("label"),u&&u.c(),n=X(),o=Ze(i),s=X(),l=S("div"),c&&c.c(),g(e,"for",r=t[31]),g(e,"class","props-group__name svelte-1nfw84"),g(l,"class","props-group__value svelte-1nfw84")},m(m,h){N(m,e,h),u&&u.m(e,null),$(e,n),$(e,o),N(m,s,h),N(m,l,h),~a&&_[a].m(l,null),d=!0},p(m,h){m[30].desc.platforms||m[30].desc.deprecated?u?u.p(Vd(m),h):(u=Mh(Vd(m)),u.c(),u.m(e,n)):u&&(u.d(1),u=null),(!d||h[0]&2)&&i!==(i=m[30].name+"")&<(o,i),(!d||h[0]&3&&r!==(r=m[31]))&&g(e,"for",r);let v=a;a=f(m),a===v?~a&&_[a].p(m,h):(c&&(It(),H(_[v],1,1,(()=>{_[v]=null})),Dt()),~a?(c=_[a],c?c.p(m,h):(c=_[a]=p[a](m),c.c()),I(c,1),c.m(l,null)):c=null)},i(m){d||(I(c),d=!0)},o(m){H(c),d=!1},d(m){m&&(F(e),F(s),F(l)),u&&u.d(),~a&&_[a].d()}}}function Kie(t){let e,n,i;return n=new xo({props:{theme:"straight-small",mix:"props-group__group-summary "+(t[33]?"props-group__filled":"")+" "+(t[34]?"props-group__deprecated":""),open:!1,$$slots:{title:[toe],default:[eoe]},$$scope:{ctx:t}}}),{c(){e=S("div"),Ie(n.$$.fragment),g(e,"class","props-group__span-cell svelte-1nfw84")},m(o,r){N(o,e,r),Oe(n,e,null),i=!0},p(o,r){const s={};r[0]&2&&(s.mix="props-group__group-summary "+(o[33]?"props-group__filled":"")+" "+(o[34]?"props-group__deprecated":"")),r[0]&31|r[1]&8192&&(s.$$scope={dirty:r,ctx:o}),n.$set(s)},i(o){i||(I(n.$$.fragment,o),i=!0)},o(o){H(n.$$.fragment,o),i=!1},d(o){o&&F(e),Me(n)}}}function Yie(t){let e,n,i;return n=new xo({props:{theme:"straight-small",mix:"props-group__group-summary "+(t[33]?"props-group__filled":"")+" "+(t[34]?"props-group__deprecated":""),open:!1,$$slots:{title:[ioe],default:[noe]},$$scope:{ctx:t}}}),{c(){e=S("div"),Ie(n.$$.fragment),g(e,"class","props-group__span-cell svelte-1nfw84")},m(o,r){N(o,e,r),Oe(n,e,null),i=!0},p(o,r){const s={};r[0]&2&&(s.mix="props-group__group-summary "+(o[33]?"props-group__filled":"")+" "+(o[34]?"props-group__deprecated":"")),r[0]&31|r[1]&8192&&(s.$$scope={dirty:r,ctx:o}),n.$set(s)},i(o){i||(I(n.$$.fragment,o),i=!0)},o(o){H(n.$$.fragment,o),i=!1},d(o){o&&F(e),Me(n)}}}function Mh(t){let e,n=t[37]&&Ph(t);return{c(){n&&n.c(),e=Dn()},m(i,o){n&&n.m(i,o),N(i,e,o)},p(i,o){i[37]?n?n.p(i,o):(n=Ph(i),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(i){i&&F(e),n&&n.d(i)}}}function Ph(t){let e,n;return{c(){e=S("span"),g(e,"class","props-group__warning svelte-1nfw84"),g(e,"title",n=t[37])},m(i,o){N(i,e,o)},p(i,o){o[0]&10&&n!==(n=i[37])&&g(e,"title",n)},d(i){i&&F(e)}}}function Gie(t){let e,n;return e=new Jie({props:{value:t[32],id:t[31],prop:t[30].prop}}),e.$on("change",t[28]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o[0]&2&&(r.value=i[32]),o[0]&3&&(r.id=i[31]),o[0]&2&&(r.prop=i[30].prop),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Xie(t){let e,n;return e=new kV({props:{value:t[32],id:t[31],prop:t[30].prop,flags:t[30].flags||{}}}),e.$on("change",t[27]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o[0]&2&&(r.value=i[32]),o[0]&3&&(r.id=i[31]),o[0]&2&&(r.prop=i[30].prop),o[0]&2&&(r.flags=i[30].flags||{}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Zie(t){let e,n;return e=new jV({props:{value:t[32],id:t[31],prop:t[30].prop,options:t[30].options}}),e.$on("change",t[26]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o[0]&2&&(r.value=i[32]),o[0]&3&&(r.id=i[31]),o[0]&2&&(r.prop=i[30].prop),o[0]&2&&(r.options=i[30].options),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Ih(t){let e,n,i=an(t[30].list),o=[];for(let s=0;s<i.length;s+=1)o[s]=Vh(Ah(t,i,s));const r=s=>H(o[s],1,1,(()=>{o[s]=null}));return{c(){for(let s=0;s<o.length;s+=1)o[s].c();e=Dn()},m(s,l){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(s,l);N(s,e,l),n=!0},p(s,l){if(l[0]&279){i=an(s[30].list);let a;for(a=0;a<i.length;a+=1){const c=Ah(s,i,a);o[a]?(o[a].p(c,l),I(o[a],1)):(o[a]=Vh(c),o[a].c(),I(o[a],1),o[a].m(e.parentNode,e))}for(It(),a=i.length;a<o.length;a+=1)r(a);Dt()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)I(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)H(o[l]);n=!1},d(s){s&&F(e),Bi(o,s)}}}function xie(t){let e,n,i;return n=new op({props:{group:t[0],list:t[41]}}),n.$on("change",t[21]),n.$on("add",t[22]),n.$on("delete",t[23]),n.$on("rename",t[24]),{c(){e=S("ul"),Ie(n.$$.fragment),g(e,"class","props-group__content svelte-1nfw84")},m(o,r){N(o,e,r),Oe(n,e,null),i=!0},p(o,r){const s={};r[0]&1&&(s.group=o[0]),r[0]&2&&(s.list=o[41]),n.$set(s)},i(o){i||(I(n.$$.fragment,o),i=!0)},o(o){H(n.$$.fragment,o),i=!1},d(o){o&&F(e),Me(n)}}}function Dh(t){let e,n=t[2]("props.remove")+"",i,o,r;function s(){return t[20](t[30],t[43])}return{c(){e=S("button"),i=Ze(n),g(e,"class","props-group__button props-group__delete svelte-1nfw84")},m(l,a){N(l,e,a),$(e,i),o||(r=ee(e,"click",zi(s)),o=!0)},p(l,a){t=l,a[0]&4&&n!==(n=t[2]("props.remove")+"")&<(i,n)},d(l){l&&F(e),o=!1,r()}}}function Qie(t){let e,n,i,o=!t[4]&&Dh(t);return{c(){e=S("div"),n=Ze(t[43]),i=X(),o&&o.c(),g(e,"slot","title"),g(e,"class","props-group__group-summary svelte-1nfw84")},m(r,s){N(r,e,s),$(e,n),$(e,i),o&&o.m(e,null)},p(r,s){r[4]?o&&(o.d(1),o=null):o?o.p(r,s):(o=Dh(r),o.c(),o.m(e,null))},d(r){r&&F(e),o&&o.d()}}}function Vh(t){let e,n,i,o,r,s;return i=new xo({props:{theme:"straight-small",mix:"props-group__group-details",open:!0,$$slots:{title:[Qie],default:[xie]},$$scope:{ctx:t}}}),{c(){var l;e=S("li"),n=S("div"),Ie(i.$$.fragment),o=X(),g(n,"class","props-group__span-cell svelte-1nfw84"),g(e,"class","props-group__item svelte-1nfw84"),g(e,"title",r=t[41].name+": "+((l=t[41].description)==null?void 0:l.ru))},m(l,a){N(l,e,a),$(e,n),Oe(i,n,null),$(e,o),s=!0},p(l,a){var d;const c={};a[0]&23|a[1]&8192&&(c.$$scope={dirty:a,ctx:l}),i.$set(c),(!s||a[0]&2&&r!==(r=l[41].name+": "+((d=l[41].description)==null?void 0:d.ru)))&&g(e,"title",r)},i(l){s||(I(i.$$.fragment,l),s=!0)},o(l){H(i.$$.fragment,l),s=!1},d(l){l&&F(e),Me(i)}}}function Lh(t){let e,n=t[2]("props.add")+"",i,o,r;function s(){return t[25](t[30])}return{c(){e=S("button"),i=Ze(n),g(e,"class","props-group__button props-group__add svelte-1nfw84")},m(l,a){N(l,e,a),$(e,i),o||(r=ee(e,"click",s),o=!0)},p(l,a){t=l,a[0]&4&&n!==(n=t[2]("props.add")+"")&<(i,n)},d(l){l&&F(e),o=!1,r()}}}function eoe(t){let e,n,i,o,r=t[30].list&&Ih(t),s=!t[4]&&Lh(t);return{c(){e=S("ul"),r&&r.c(),n=X(),s&&s.c(),i=Dn(),g(e,"class","props-group__content svelte-1nfw84")},m(l,a){N(l,e,a),r&&r.m(e,null),N(l,n,a),s&&s.m(l,a),N(l,i,a),o=!0},p(l,a){l[30].list?r?(r.p(l,a),a[0]&2&&I(r,1)):(r=Ih(l),r.c(),I(r,1),r.m(e,null)):r&&(It(),H(r,1,1,(()=>{r=null})),Dt()),l[4]?s&&(s.d(1),s=null):s?s.p(l,a):(s=Lh(l),s.c(),s.m(i.parentNode,i))},i(l){o||(I(r),o=!0)},o(l){H(r),o=!1},d(l){l&&(F(e),F(n),F(i)),r&&r.d(),s&&s.d(l)}}}function Fh(t){let e,n=t[37]&&Nh(t);return{c(){n&&n.c(),e=Dn()},m(i,o){n&&n.m(i,o),N(i,e,o)},p(i,o){i[37]?n?n.p(i,o):(n=Nh(i),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(i){i&&F(e),n&&n.d(i)}}}function Nh(t){let e,n;return{c(){e=S("span"),g(e,"class","props-group__warning svelte-1nfw84"),g(e,"title",n=t[37])},m(i,o){N(i,e,o)},p(i,o){o[0]&10&&n!==(n=i[37])&&g(e,"title",n)},d(i){i&&F(e)}}}function toe(t){var _;let e,n,i=t[30].name+"",o,r,s="[ ",l,a=(((_=t[30].list)==null?void 0:_.length)||"")+"",c,d=" ]",u,p=(t[30].desc.platforms||t[30].desc.deprecated)&&Fh(Ld(t));return{c(){e=S("div"),p&&p.c(),n=X(),o=Ze(i),r=X(),l=Ze(s),c=Ze(a),u=Ze(d),g(e,"slot","title")},m(f,m){N(f,e,m),p&&p.m(e,null),$(e,n),$(e,o),$(e,r),$(e,l),$(e,c),$(e,u)},p(f,m){var h;f[30].desc.platforms||f[30].desc.deprecated?p?p.p(Ld(f),m):(p=Fh(Ld(f)),p.c(),p.m(e,n)):p&&(p.d(1),p=null),m[0]&2&&i!==(i=f[30].name+"")&<(o,i),m[0]&2&&a!==(a=(((h=f[30].list)==null?void 0:h.length)||"")+"")&<(c,a)},d(f){f&&F(e),p&&p.d()}}}function qh(t){var d;let e,n,i,o,r,s,l,a,c;return l=new jV({props:{value:(d=t[32])==null?void 0:d.type,id:t[31],prop:`${t[30].prop}.type`,options:t[30].options}}),l.$on("change",t[11]),{c(){var u;e=S("li"),n=S("label"),i=Ze("type"),r=X(),s=S("div"),Ie(l.$$.fragment),g(n,"for",o=t[31]),g(n,"class","props-group__name svelte-1nfw84"),g(s,"class","props-group__value svelte-1nfw84"),g(e,"class","props-group__item svelte-1nfw84"),g(e,"title",a=t[30].name+": "+((u=t[30].description)==null?void 0:u.ru))},m(u,p){N(u,e,p),$(e,n),$(n,i),$(e,r),$(e,s),Oe(l,s,null),c=!0},p(u,p){var f,m;(!c||p[0]&3&&o!==(o=u[31]))&&g(n,"for",o);const _={};p[0]&2&&(_.value=(f=u[32])==null?void 0:f.type),p[0]&3&&(_.id=u[31]),p[0]&2&&(_.prop=`${u[30].prop}.type`),p[0]&2&&(_.options=u[30].options),l.$set(_),(!c||p[0]&2&&a!==(a=u[30].name+": "+((m=u[30].description)==null?void 0:m.ru)))&&g(e,"title",a)},i(u){c||(I(l.$$.fragment,u),c=!0)},o(u){H(l.$$.fragment,u),c=!1},d(u){u&&F(e),Me(l)}}}function Rh(t){let e,n;return e=new op({props:{group:t[0],list:t[30].subprops}}),e.$on("change",t[12]),e.$on("add",t[13]),e.$on("delete",t[14]),e.$on("rename",t[15]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.group=i[0]),o[0]&2&&(r.list=i[30].subprops),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Bh(t){let e,n,i,o=an(Object.keys(t[32]||{})),r=[];for(let a=0;a<o.length;a+=1)r[a]=Uh(Oh(t,o,a));const s=a=>H(r[a],1,1,(()=>{r[a]=null}));let l=!t[4]&&Jh(t);return{c(){for(let a=0;a<r.length;a+=1)r[a].c();e=X(),l&&l.c(),n=Dn()},m(a,c){for(let d=0;d<r.length;d+=1)r[d]&&r[d].m(a,c);N(a,e,c),l&&l.m(a,c),N(a,n,c),i=!0},p(a,c){if(c[0]&791){o=an(Object.keys(a[32]||{}));let d;for(d=0;d<o.length;d+=1){const u=Oh(a,o,d);r[d]?(r[d].p(u,c),I(r[d],1)):(r[d]=Uh(u),r[d].c(),I(r[d],1),r[d].m(e.parentNode,e))}for(It(),d=o.length;d<r.length;d+=1)s(d);Dt()}a[4]?l&&(l.d(1),l=null):l?l.p(a,c):(l=Jh(a),l.c(),l.m(n.parentNode,n))},i(a){if(!i){for(let c=0;c<o.length;c+=1)I(r[c]);i=!0}},o(a){r=r.filter(Boolean);for(let c=0;c<r.length;c+=1)H(r[c]);i=!1},d(a){a&&(F(e),F(n)),Bi(r,a),l&&l.d(a)}}}function Hh(t){let e,n=t[2]("props.remove")+"",i,o,r;function s(){return t[18](t[30],t[38])}return{c(){e=S("button"),i=Ze(n),g(e,"class","props-group__button props-group__delete props-group__delete_additional svelte-1nfw84")},m(l,a){N(l,e,a),$(e,i),o||(r=ee(e,"click",zi(s)),o=!0)},p(l,a){t=l,a[0]&4&&n!==(n=t[2]("props.remove")+"")&<(i,n)},d(l){l&&F(e),o=!1,r()}}}function Uh(t){let e,n,i=t[38]+"",o,r,s,l,a,c,d,u,p,_=[{autocomplete:"off"},{class:"props-group__name"},{contenteditable:"true"},{autocorrect:"off"},{autocapitalize:"off"},{spellcheck:"false"}],f={};for(let v=0;v<_.length;v+=1)f=_s(f,_[v]);function m(...v){return t[16](t[30],t[38],...v)}l=new kV({props:{value:t[32][t[38]],id:t[31],prop:t[30].prop+"."+t[38],flags:{}}}),l.$on("change",t[17]);let h=!t[4]&&Hh(t);return{c(){e=S("li"),n=S("div"),o=Ze(i),r=X(),s=S("div"),Ie(l.$$.fragment),a=X(),h&&h.c(),fs(n,f),te(n,"svelte-1nfw84",!0),g(s,"class","props-group__value svelte-1nfw84"),g(e,"class","props-group__item svelte-1nfw84"),g(e,"title",c=t[38])},m(v,y){N(v,e,y),$(e,n),$(n,o),$(e,r),$(e,s),Oe(l,s,null),$(e,a),h&&h.m(e,null),d=!0,u||(p=ee(n,"input",m),u=!0)},p(v,y){t=v,(!d||y[0]&2)&&i!==(i=t[38]+"")&&d1(o,i),te(n,"svelte-1nfw84",!0);const b={};y[0]&2&&(b.value=t[32][t[38]]),y[0]&3&&(b.id=t[31]),y[0]&2&&(b.prop=t[30].prop+"."+t[38]),l.$set(b),t[4]?h&&(h.d(1),h=null):h?h.p(t,y):(h=Hh(t),h.c(),h.m(e,null)),(!d||y[0]&2&&c!==(c=t[38]))&&g(e,"title",c)},i(v){d||(I(l.$$.fragment,v),d=!0)},o(v){H(l.$$.fragment,v),d=!1},d(v){v&&F(e),Me(l),h&&h.d(),u=!1,p()}}}function Jh(t){let e,n=t[2]("props.add")+"",i,o,r;function s(){return t[19](t[30])}return{c(){e=S("button"),i=Ze(n),g(e,"class","props-group__button props-group__add props-group__add_custom svelte-1nfw84")},m(l,a){N(l,e,a),$(e,i),o||(r=ee(e,"click",s),o=!0)},p(l,a){t=l,a[0]&4&&n!==(n=t[2]("props.add")+"")&<(i,n)},d(l){l&&F(e),o=!1,r()}}}function noe(t){let e,n,i,o,r=t[30].options&&qh(t),s=t[30].subprops&&Rh(t),l=t[30].additionalProperties&&Bh(t);return{c(){e=S("ul"),r&&r.c(),n=X(),s&&s.c(),i=X(),l&&l.c(),g(e,"class","props-group__content svelte-1nfw84")},m(a,c){N(a,e,c),r&&r.m(e,null),$(e,n),s&&s.m(e,null),$(e,i),l&&l.m(e,null),o=!0},p(a,c){a[30].options?r?(r.p(a,c),c[0]&2&&I(r,1)):(r=qh(a),r.c(),I(r,1),r.m(e,n)):r&&(It(),H(r,1,1,(()=>{r=null})),Dt()),a[30].subprops?s?(s.p(a,c),c[0]&2&&I(s,1)):(s=Rh(a),s.c(),I(s,1),s.m(e,i)):s&&(It(),H(s,1,1,(()=>{s=null})),Dt()),a[30].additionalProperties?l?(l.p(a,c),c[0]&2&&I(l,1)):(l=Bh(a),l.c(),I(l,1),l.m(e,null)):l&&(It(),H(l,1,1,(()=>{l=null})),Dt())},i(a){o||(I(r),I(s),I(l),o=!0)},o(a){H(r),H(s),H(l),o=!1},d(a){a&&F(e),r&&r.d(),s&&s.d(),l&&l.d()}}}function Wh(t){let e,n=t[37]&&Kh(t);return{c(){n&&n.c(),e=Dn()},m(i,o){n&&n.m(i,o),N(i,e,o)},p(i,o){i[37]?n?n.p(i,o):(n=Kh(i),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(i){i&&F(e),n&&n.d(i)}}}function Kh(t){let e,n;return{c(){e=S("span"),g(e,"class","props-group__warning svelte-1nfw84"),g(e,"title",n=t[37])},m(i,o){N(i,e,o)},p(i,o){o[0]&10&&n!==(n=i[37])&&g(e,"title",n)},d(i){i&&F(e)}}}function ioe(t){var _;let e,n,i=t[30].name+"",o,r,s="{",l,a=(((_=t[32])==null?void 0:_.type)&&` ${t[32].type} `||" ")+"",c,d="}",u,p=(t[30].desc.platforms||t[30].desc.deprecated)&&Wh(Fd(t));return{c(){e=S("div"),p&&p.c(),n=X(),o=Ze(i),r=X(),l=Ze(s),c=Ze(a),u=Ze(d),g(e,"slot","title")},m(f,m){N(f,e,m),p&&p.m(e,null),$(e,n),$(e,o),$(e,r),$(e,l),$(e,c),$(e,u)},p(f,m){var h;f[30].desc.platforms||f[30].desc.deprecated?p?p.p(Fd(f),m):(p=Wh(Fd(f)),p.c(),p.m(e,n)):p&&(p.d(1),p=null),m[0]&2&&i!==(i=f[30].name+"")&<(o,i),m[0]&2&&a!==(a=(((h=f[32])==null?void 0:h.type)&&` ${f[32].type} `||" ")+"")&<(c,a)},d(f){f&&F(e),p&&p.d()}}}function Yh(t){let e,n,i,o,r,s;const l=[Yie,Kie,Wie],a=[];function c(d,u){return d[30].type==="group"?0:d[30].type==="list"?1:2}return n=c(t),i=a[n]=l[n](t),{c(){var d;e=S("li"),i.c(),o=X(),g(e,"class","props-group__item svelte-1nfw84"),g(e,"title",r=t[30].name+": "+((d=t[30].description)==null?void 0:d.ru)),te(e,"props-group__filled",t[33]),te(e,"props-group__deprecated",t[34]&&t[30].type!=="group"&&t[30].type!=="list")},m(d,u){N(d,e,u),a[n].m(e,null),$(e,o),s=!0},p(d,u){var _;let p=n;n=c(d),n===p?a[n].p(d,u):(It(),H(a[p],1,1,(()=>{a[p]=null})),Dt(),i=a[n],i?i.p(d,u):(i=a[n]=l[n](d),i.c()),I(i,1),i.m(e,o)),(!s||u[0]&2&&r!==(r=d[30].name+": "+((_=d[30].description)==null?void 0:_.ru)))&&g(e,"title",r),(!s||u[0]&2)&&te(e,"props-group__filled",d[33]),(!s||u[0]&2)&&te(e,"props-group__deprecated",d[34]&&d[30].type!=="group"&&d[30].type!=="list")},i(d){s||(I(i),s=!0)},o(d){H(i),s=!1},d(d){d&&F(e),a[n].d()}}}function ooe(t){let e,n,i=an(t[1]),o=[];for(let s=0;s<i.length;s+=1)o[s]=Yh(Eh(t,i,s));const r=s=>H(o[s],1,1,(()=>{o[s]=null}));return{c(){for(let s=0;s<o.length;s+=1)o[s].c();e=Dn()},m(s,l){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(s,l);N(s,e,l),n=!0},p(s,l){if(l[0]&1823){i=an(s[1]);let a;for(a=0;a<i.length;a+=1){const c=Eh(s,i,a);o[a]?(o[a].p(c,l),I(o[a],1)):(o[a]=Yh(c),o[a].c(),I(o[a],1),o[a].m(e.parentNode,e))}for(It(),a=i.length;a<o.length;a+=1)r(a);Dt()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)I(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)H(o[l]);n=!1},d(s){s&&F(e),Bi(o,s)}}}function roe(t,e,n){let i,o,r;const{l10n:s,lang:l}=wt(oi);Pe(t,s,(q=>n(2,i=q))),Pe(t,l,(q=>n(3,o=q)));const{state:a}=wt(An),{readOnly:c}=a;Pe(t,c,(q=>n(4,r=q)));const d=_i();let{group:u}=e,{list:p}=e;function _(q,V,Y){const x=q.target;if(!(x instanceof HTMLElement))return;const de=x.textContent;d("rename",{prop:V,key:Y,newName:de})}function f(q,V){const Y=[];return V.platforms&&!(V.platforms.includes("android")&&V.platforms.includes("ios")&&V.platforms.includes("web"))&&(V.platforms.length?Y.push(i("props.supports")+V.platforms.map(bl).join(", ")):Y.push(i("props.not_supported"))),V.deprecated&&Y.push(i("props.deprecated")),Y.join(". ")}function m(q){mn.call(this,t,q)}function h(q){mn.call(this,t,q)}function v(q){mn.call(this,t,q)}function y(q){mn.call(this,t,q)}function b(q){mn.call(this,t,q)}const w=(q,V,Y)=>_(Y,q.prop,V);function k(q){mn.call(this,t,q)}const E=(q,V)=>d("delete",{prop:q.prop,key:V,subtype:"custom"}),T=q=>d("add",{prop:q.prop,subtype:"custom"}),j=(q,V)=>d("delete",{prop:q.prop,key:V});function A(q){mn.call(this,t,q)}function O(q){mn.call(this,t,q)}function M(q){mn.call(this,t,q)}function D(q){mn.call(this,t,q)}const R=q=>d("add",{prop:q.prop,subtype:q.subtype});function U(q){mn.call(this,t,q)}function B(q){mn.call(this,t,q)}function C(q){mn.call(this,t,q)}return t.$$set=q=>{"group"in q&&n(0,u=q.group),"list"in q&&n(1,p=q.list)},[u,p,i,o,r,s,l,c,d,_,f,m,h,v,y,b,w,k,E,T,j,A,O,M,D,R,U,B,C]}class op extends Gt{constructor(e){super(),Yt(this,e,roe,ooe,Rt,{group:0,list:1},null,[-1,-1])}}function Gh(t){let e,n;return e=new op({props:{group:t[0],list:t[1]}}),e.$on("change",t[5]),e.$on("add",t[6]),e.$on("delete",t[7]),e.$on("rename",t[8]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.group=i[0]),o&2&&(r.list=i[1]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function soe(t){let e,n,i=t[1]&&Gh(t);return{c(){e=S("ul"),i&&i.c(),g(e,"class","props-group__content svelte-6alnw8")},m(o,r){N(o,e,r),i&&i.m(e,null),n=!0},p(o,r){o[1]?i?(i.p(o,r),r&2&&I(i,1)):(i=Gh(o),i.c(),I(i,1),i.m(e,null)):i&&(It(),H(i,1,1,(()=>{i=null})),Dt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&F(e),i&&i.d()}}}function loe(t){let e,n=bl(t[0])+"",i;return{c(){e=S("div"),i=Ze(n),g(e,"slot","title"),g(e,"class","props-group__summary svelte-6alnw8")},m(o,r){N(o,e,r),$(e,i)},p(o,r){r&1&&n!==(n=bl(o[0])+"")&<(i,n)},d(o){o&&F(e)}}}function aoe(t){let e,n;return e=new xo({props:{theme:"straight",mix:"props-group",open:!0,$$slots:{title:[loe],default:[soe]},$$scope:{ctx:t}}}),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,[o]){const r={};o&8195&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function coe(t,e,n){let i,o,r,{group:s=""}=e;const{state:l}=wt(An),{selectedLeaf:a,readOnly:c,tree:d}=l;Pe(t,a,(h=>n(9,i=h))),Pe(t,c,(h=>n(11,r=h))),Pe(t,d,(h=>n(10,o=h)));let u=null;function p(h){if(i){if(r){console.error("Cannot edit readonly");return}l.pushCommand(new ir(o,[{leafId:i.id,property:h.detail.prop,value:h.detail.value}]))}}function _(h){if(!i)return;if(r){console.error("Cannot edit readonly");return}const v=i.props.json,y=As(v,h.detail.prop);let b;if(h.detail.subtype==="custom")if(y&&typeof y=="object"){let w=0;do{b=`prop${w++}`}while(b in y)}else b="prop0",jl(v,h.detail.prop,{});else Array.isArray(y)?b=y.length:b=0;l.pushCommand(new ir(o,[{leafId:i.id,property:h.detail.prop+"["+b+"]",value:h.detail.subtype==="object"?{}:""}])),d.set(o)}function f(h){if(!i)return;if(r){console.error("Cannot edit readonly");return}const v=h.detail.key;let y=i.props.json,b=As(y,h.detail.prop);if(h.detail.subtype==="custom"){if(b&&typeof b=="object"){let w=b;w={...w},delete w[v],l.pushCommand(new ir(o,[{leafId:i.id,property:h.detail.prop,value:Object.keys(w).length===0?void 0:b}]))}}else if(Array.isArray(b)){const w=b.slice();w.splice(Number(v),1),l.pushCommand(new ir(o,[{leafId:i.id,property:h.detail.prop,value:b.length===1&&v===0?void 0:w}]))}}function m(h){if(!i)return;const v=h.detail.key;let y=i.props.json;const b=As(y,h.detail.prop);if(b&&typeof b=="object"){let w=b;w={...w},w[h.detail.newName]=w[v],delete w[v],l.pushCommand(new ir(o,[{leafId:i.id,property:h.detail.prop,value:w}]))}}return t.$$set=h=>{"group"in h&&n(0,s=h.group)},t.$$.update=()=>{if(t.$$.dirty&513&&(n(1,u=null),s&&i)){const h=jte(`div-${s}`);h?n(1,u=Hl(h,i.props.processedJson)||null):n(1,u=[])}},[s,u,a,c,d,p,_,f,m,i]}class doe extends Gt{constructor(e){super(),Yt(this,e,coe,aoe,Rt,{group:0})}}function Lo(t,e,n){if(!t)return n;let i=t;const o=e.split(".");for(let r=0;r<o.length&&(i=i[o[r]],!!i);++r);return i===void 0?n:i}function Xh(t,e,n,i){return n.startsWith("$parent.")?Lo(e,n.substring(8)):n.startsWith("$")?i[n]:Lo(t,n)}function Nr(t,e,n,i={}){if("equal"in n)return Xh(t,e,n.prop,i)===n.equal;if("isEmpty"in n)return Xh(t,e,n.prop,i)===void 0;if("or"in n)return n.or.some((o=>Nr(t,e,o,i)));if("and"in n)return n.and.every((o=>Nr(t,e,o,i)));if("not"in n)return!Nr(t,e,n.not,i);throw new Error("Unknown condition")}function uoe(t){let e,n;return e=new Fc({props:{propsList:t[1],processedJson:t[2],parentProcessedJson:t[3],parentEvalJson:t[4],evalJson:t[5],selectedElemProps:t[6]}}),e.$on("change",t[7]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&2&&(r.propsList=i[1]),o&4&&(r.processedJson=i[2]),o&8&&(r.parentProcessedJson=i[3]),o&16&&(r.parentEvalJson=i[4]),o&32&&(r.evalJson=i[5]),o&64&&(r.selectedElemProps=i[6]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function poe(t){let e,n;return{c(){e=S("div"),n=Ze(t[0]),g(e,"slot","title")},m(i,o){N(i,e,o),$(e,n)},p(i,o){o&1&<(n,i[0])},d(i){i&&F(e)}}}function _oe(t){let e,n;return e=new xo({props:{theme:"props",$$slots:{title:[poe],default:[uoe]},$$scope:{ctx:t}}}),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,[o]){const r={};o&383&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function foe(t,e,n){let{title:i}=e,{propsList:o}=e,{processedJson:r}=e,{parentProcessedJson:s}=e,{parentEvalJson:l}=e,{evalJson:a}=e,{selectedElemProps:c}=e;function d(u){mn.call(this,t,u)}return t.$$set=u=>{"title"in u&&n(0,i=u.title),"propsList"in u&&n(1,o=u.propsList),"processedJson"in u&&n(2,r=u.processedJson),"parentProcessedJson"in u&&n(3,s=u.parentProcessedJson),"parentEvalJson"in u&&n(4,l=u.parentEvalJson),"evalJson"in u&&n(5,a=u.evalJson),"selectedElemProps"in u&&n(6,c=u.selectedElemProps)},[i,o,r,s,l,a,c,d]}class moe extends Gt{constructor(e){super(),Yt(this,e,foe,_oe,Rt,{title:0,propsList:1,processedJson:2,parentProcessedJson:3,parentEvalJson:4,evalJson:5,selectedElemProps:6})}}function goe(t){let e,n,i;return n=new Ys({props:{color:t[0],mix:"color-input__preview-inner"}}),{c(){e=S("div"),Ie(n.$$.fragment),g(e,"class","color-input__preview svelte-11zrie8")},m(o,r){N(o,e,r),Oe(n,e,null),i=!0},p(o,r){const s={};r&1&&(s.color=o[0]),n.$set(s)},i(o){i||(I(n.$$.fragment,o),i=!0)},o(o){H(n.$$.fragment,o),i=!1},d(o){o&&F(e),Me(n)}}}function hoe(t){let e,n,i,o,r;return n=new Ys({props:{color:t[0],mix:"color-input__preview-inner"}}),{c(){e=S("button"),Ie(n.$$.fragment),g(e,"class","color-input__preview color-input__preview_active svelte-11zrie8")},m(s,l){N(s,e,l),Oe(n,e,null),i=!0,o||(r=ee(e,"click",t[11]),o=!0)},p(s,l){const a={};l&1&&(a.color=s[0]),n.$set(a)},i(s){i||(I(n.$$.fragment,s),i=!0)},o(s){H(n.$$.fragment,s),i=!1},d(s){s&&F(e),Me(n),o=!1,r()}}}function voe(t){let e,n,i,o,r,s,l,a,c,d,u;return{c(){e=S("input"),i=X(),o=S("div"),r=X(),s=S("input"),a=X(),c=S("div"),c.textContent="%",g(e,"class","color-input__input svelte-11zrie8"),g(e,"type","text"),g(e,"autocomplete","off"),g(e,"autocorrect","off"),g(e,"autocapitalize","off"),g(e,"spellcheck","false"),g(e,"maxlength","7"),e.disabled=t[2],g(e,"title",n=t[7]("background.solid_first_title")),g(o,"class","color-input__separator svelte-11zrie8"),g(s,"class","color-input__second-input svelte-11zrie8"),g(s,"type","number"),g(s,"autocomplete","off"),g(s,"autocorrect","off"),g(s,"autocapitalize","off"),g(s,"spellcheck","false"),g(s,"min","0"),g(s,"max",woe),s.disabled=t[2],g(s,"title",l=t[7]("background.solid_second_title")),g(c,"class","color-input__symbol svelte-11zrie8")},m(p,_){N(p,e,_),Hn(e,t[4]),N(p,i,_),N(p,o,_),N(p,r,_),N(p,s,_),Hn(s,t[5]),N(p,a,_),N(p,c,_),d||(u=[ee(e,"input",t[12]),ee(e,"input",t[10]),ee(s,"input",t[13]),ee(s,"input",t[10])],d=!0)},p(p,_){_&4&&(e.disabled=p[2]),_&128&&n!==(n=p[7]("background.solid_first_title"))&&g(e,"title",n),_&16&&e.value!==p[4]&&Hn(e,p[4]),_&4&&(s.disabled=p[2]),_&128&&l!==(l=p[7]("background.solid_second_title"))&&g(s,"title",l),_&32&&Ji(s.value)!==p[5]&&Hn(s,p[5])},d(p){p&&(F(e),F(i),F(o),F(r),F(s),F(a),F(c)),d=!1,qn(u)}}}function boe(t){let e,n=t[6].name+"",i;return{c(){e=S("div"),i=Ze(n),g(e,"class","color-input__palette-name svelte-11zrie8")},m(o,r){N(o,e,r),$(e,i)},p(o,r){r&64&&n!==(n=o[6].name+"")&<(i,n)},d(o){o&&F(e)}}}function yoe(t){let e,n,i,o,r;const s=[hoe,goe],l=[];function a(p,_){return p[1]?0:1}n=a(t),i=l[n]=s[n](t);function c(p,_){return p[6]?boe:voe}let d=c(t),u=d(t);return{c(){e=S("div"),i.c(),o=X(),u.c(),g(e,"class","color-input svelte-11zrie8"),te(e,"color-input_readonly",t[2])},m(p,_){N(p,e,_),l[n].m(e,null),$(e,o),u.m(e,null),t[14](e),r=!0},p(p,[_]){let f=n;n=a(p),n===f?l[n].p(p,_):(It(),H(l[f],1,1,(()=>{l[f]=null})),Dt(),i=l[n],i?i.p(p,_):(i=l[n]=s[n](p),i.c()),I(i,1),i.m(e,o)),d===(d=c(p))&&u?u.p(p,_):(u.d(1),u=d(p),u&&(u.c(),u.m(e,null))),(!r||_&4)&&te(e,"color-input_readonly",p[2])},i(p){r||(I(i),r=!0)},o(p){H(i),r=!1},d(p){p&&F(e),l[n].d(),u.d(),t[14](null)}}}let woe=100;function $oe(t,e,n){let i,o,{value:r}=e,{hasDialog:s=!1}=e,{readOnly:l=!1}=e;const{l10nString:a}=wt(oi);Pe(t,a,(A=>n(7,o=A)));const{state:c,color2Dialog:d}=wt(An),{palette:u}=c;Pe(t,u,(A=>n(17,i=A)));const p=_i();let _,f="",m="",h="",v=null,y=!1;function b(A){if(!y)if(dr(A))h=yr(A),n(6,v=i.find((O=>O.id===h))||null);else{h="",n(6,v=null);const O=A&&_r(A);O?(n(5,m=String(Math.round(O.a/255*100))),O.a=255,n(4,f=ms(O))):(n(4,f=""),n(5,m=""))}}function w(){const A=_r(f);A&&(A.a=Math.round(Number(m)*255/100),y=!0,n(0,r=ms(A)),p("change",{value:r}))}function k(){let A,O;dr(r)?(A="",O=yr(r)):(A=r,O=""),d().show({value:A,paletteId:O,showPalette:!0,target:_,disabled:l,direction:_.getBoundingClientRect().right<innerWidth/2?"right":"left",callback(M,D){D?n(0,r=pa(D)):n(0,r=M),p("change",{value:r})}})}gs((()=>{y&&(y=!1)}));function E(){f=this.value,n(4,f)}function T(){m=Ji(this.value),n(5,m)}function j(A){pt[A?"unshift":"push"]((()=>{_=A,n(3,_)}))}return t.$$set=A=>{"value"in A&&n(0,r=A.value),"hasDialog"in A&&n(1,s=A.hasDialog),"readOnly"in A&&n(2,l=A.readOnly)},t.$$.update=()=>{t.$$.dirty&1&&b(r)},[r,s,l,_,f,m,v,o,a,u,w,k,E,T,j]}class ud extends Gt{constructor(e){super(),Yt(this,e,$oe,yoe,Rt,{value:0,hasDialog:1,readOnly:2})}}function koe(t){let e,n,i;function o(s){t[5](s)}let r={hasDialog:!0,readOnly:t[1]};return t[0]!==void 0&&(r.value=t[0]),e=new ud({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[3]),{c(){Ie(e.$$.fragment)},m(s,l){Oe(e,s,l),i=!0},p(s,[l]){const a={};l&2&&(a.readOnly=s[1]),!n&&l&1&&(n=!0,a.value=s[0],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Me(e,s)}}}function joe(t,e,n){let i,{value:o}=e,{item:r}=e;const{state:s}=wt(An),{readOnly:l}=s;Pe(t,l,(u=>n(1,i=u)));const a=_i();function c(){a("change",{value:o,item:r})}function d(u){o=u,n(0,o)}return t.$$set=u=>{"value"in u&&n(0,o=u.value),"item"in u&&n(4,r=u.item)},[o,i,l,c,r,d]}class Soe extends Gt{constructor(e){super(),Yt(this,e,joe,koe,Rt,{value:0,item:4})}}function Coe(t){let e,n,i;function o(s){t[14](s)}let r={mix:"selct-prop",disabled:t[4],theme:"normal",size:"medium",required:t[2],items:[t[1]&&{value:"",text:""},...t[3].map(t[13])].filter(kr)};return t[0]!==void 0&&(r.value=t[0]),e=new Hr({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[8]),{c(){Ie(e.$$.fragment)},m(s,l){Oe(e,s,l),i=!0},p(s,[l]){const a={};l&16&&(a.disabled=s[4]),l&4&&(a.required=s[2]),l&42&&(a.items=[s[1]&&{value:"",text:""},...s[3].map(s[13])].filter(kr)),!n&&l&1&&(n=!0,a.value=s[0],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Me(e,s)}}}function Toe(t,e,n){let i,o,r,{value:s}=e,{item:l}=e,{processedJson:a=void 0}=e,{parentProcessedJson:c=void 0}=e,{hasEmpty:d=!0}=e,{required:u=!1}=e,{options:p}=e;const{state:_}=wt(An),{readOnly:f}=_;Pe(t,f,(w=>n(4,o=w)));const{l10nString:m}=wt(oi);Pe(t,m,(w=>n(5,r=w)));const h=_i();function v(){h("change",{value:s,item:l})}const y=w=>({value:w.value,text:w.rawName||w.name&&r(w.name)||"",icon:w.icon});function b(w){s=w,n(0,s)}return t.$$set=w=>{"value"in w&&n(0,s=w.value),"item"in w&&n(9,l=w.item),"processedJson"in w&&n(10,a=w.processedJson),"parentProcessedJson"in w&&n(11,c=w.parentProcessedJson),"hasEmpty"in w&&n(1,d=w.hasEmpty),"required"in w&&n(2,u=w.required),"options"in w&&n(12,p=w.options)},t.$$.update=()=>{t.$$.dirty&7168&&n(3,i=p.filter((w=>w.show===void 0||a&&c&&Nr(a,c,w.show))))},[s,d,u,i,o,r,f,m,v,l,a,c,p,y,b]}class SV extends Gt{constructor(e){super(),Yt(this,e,Toe,Coe,Rt,{value:0,item:9,processedJson:10,parentProcessedJson:11,hasEmpty:1,required:2,options:12})}}function Zh(t){const e=t.match(/^\@\{(.+)\}$/);return e==null?void 0:e[1]}function Pc(t){return"tanker_"+t.replace(/[^a-z_]/g,"_")}const zoe=function(){const e=document.createElement("div");return e.setAttribute("contenteditable","plaintext-only"),e.contentEditable==="plaintext-only"}();function Eoe(t){let e,n,i;return{c(){e=S("input"),g(e,"class","text-prop svelte-4tj0tq"),g(e,"type","number"),g(e,"min",t[14]),g(e,"max",t[13]),g(e,"step",t[12]),g(e,"pattern",t[11]),g(e,"autocomplete","off"),g(e,"autocorrect","off"),g(e,"autocapitalize","off"),g(e,"spellcheck","false"),g(e,"id",t[1]),e.disabled=t[6],te(e,"text-prop_disabled",t[6])},m(o,r){N(o,e,r),t[29](e),Hn(e,t[0]),n||(i=[ee(e,"input",t[30]),ee(e,"input",t[22])],n=!0)},p(o,r){r[0]&16384&&g(e,"min",o[14]),r[0]&8192&&g(e,"max",o[13]),r[0]&4096&&g(e,"step",o[12]),r[0]&2048&&g(e,"pattern",o[11]),r[0]&2&&g(e,"id",o[1]),r[0]&64&&(e.disabled=o[6]),r[0]&1&&Ji(e.value)!==o[0]&&Hn(e,o[0]),r[0]&64&&te(e,"text-prop_disabled",o[6])},d(o){o&&F(e),t[29](null),n=!1,qn(i)}}}function Aoe(t){let e;function n(r,s){return r[6]||r[2].enabled===!1||r[3]?Moe:Ooe}let i=n(t),o=i(t);return{c(){o.c(),e=Dn()},m(r,s){o.m(r,s),N(r,e,s)},p(r,s){i===(i=n(r))&&o?o.p(r,s):(o.d(1),o=i(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&F(e),o.d(r)}}}function Ooe(t){let e,n,i,o,r=[{autocomplete:"off"},{class:"text-prop"},{autocorrect:"off"},{autocapitalize:"off"},{spellcheck:"false"},{contenteditable:n=zoe?"plaintext-only":"true"},{id:t[1]}],s={};for(let l=0;l<r.length;l+=1)s=_s(s,r[l]);return{c(){e=S("div"),fs(e,s),te(e,"svelte-4tj0tq",!0)},m(l,a){N(l,e,a),t[28](e),i||(o=[ee(e,"input",t[22]),ee(e,"paste",CV)],i=!0)},p(l,a){fs(e,s=vl(r,[{autocomplete:"off"},{class:"text-prop"},{autocorrect:"off"},{autocapitalize:"off"},{spellcheck:"false"},{contenteditable:n},a[0]&2&&{id:l[1]}])),te(e,"svelte-4tj0tq",!0)},d(l){l&&F(e),t[28](null),i=!1,qn(o)}}}function Moe(t){let e,n,i,o;function r(c,d){return c[3]?Ioe:Poe}let s=r(t),l=s(t),a=t[10]&&xh(t);return{c(){e=S("div"),l.c(),n=X(),a&&a.c(),g(e,"class","text-prop text-prop_disabled svelte-4tj0tq"),g(e,"id",t[1]),te(e,"text-prop_disabled-clickable",t[10])},m(c,d){N(c,e,d),l.m(e,null),$(e,n),a&&a.m(e,null),t[27](e),i||(o=[ee(e,"paste",CV),ee(e,"click",(function(){Yo(t[10]?t[23]:null)&&(t[10]?t[23]:null).apply(this,arguments)}))],i=!0)},p(c,d){t=c,s===(s=r(t))&&l?l.p(t,d):(l.d(1),l=s(t),l&&(l.c(),l.m(e,n))),t[10]?a?a.p(t,d):(a=xh(t),a.c(),a.m(e,null)):a&&(a.d(1),a=null),d[0]&2&&g(e,"id",t[1]),d[0]&1024&&te(e,"text-prop_disabled-clickable",t[10])},d(c){c&&F(e),l.d(),a&&a.d(),t[27](null),i=!1,qn(o)}}}function Poe(t){let e;return{c(){e=Ze(t[0])},m(n,i){N(n,e,i)},p(n,i){i[0]&1&<(e,n[0])},d(n){n&&F(e)}}}function Ioe(t){var i;let e=(((i=t[5][t[4]])==null?void 0:i[t[16]])||"")+"",n;return{c(){n=Ze(e)},m(o,r){N(o,n,r)},p(o,r){var s;r[0]&65584&&e!==(e=(((s=o[5][o[4]])==null?void 0:s[o[16]])||"")+"")&<(n,e)},d(o){o&&F(n)}}}function xh(t){let e;return{c(){e=S("div"),g(e,"class","text-prop__loader svelte-4tj0tq"),te(e,"text-prop__loader_shown",t[8])},m(n,i){N(n,e,i)},p(n,i){i[0]&256&&te(e,"text-prop__loader_shown",n[8])},d(n){n&&F(e)}}}function Qh(t){let e,n,i;function o(l,a){if(l[0]&&l[4])return Voe;if(l[10])return Doe}let r=o(t),s=r&&r(t);return{c(){e=S("div"),s&&s.c()},m(l,a){N(l,e,a),s&&s.m(e,null),i=!0},p(l,a){r===(r=o(l))&&s?s.p(l,a):(s&&s.d(1),s=r&&r(l),s&&(s.c(),s.m(e,null)))},i(l){i||(l&&po((()=>{i&&(n||(n=Zi(e,Go,{},!0)),n.run(1))})),i=!0)},o(l){l&&(n||(n=Zi(e,Go,{},!1)),n.run(0)),i=!1},d(l){l&&F(e),s&&s.d(),l&&n&&n.end()}}}function Doe(t){let e,n,i=t[17]("tankerEnterValue")+"",o,r,s;return{c(){e=S("div"),n=S("button"),o=Ze(i),g(n,"class","text-prop__tanker-key svelte-4tj0tq"),g(e,"class","text-prop__tanker svelte-4tj0tq")},m(l,a){N(l,e,a),$(e,n),$(n,o),r||(s=ee(n,"click",t[23]),r=!0)},p(l,a){a[0]&131072&&i!==(i=l[17]("tankerEnterValue")+"")&<(o,i)},d(l){l&&F(e),r=!1,s()}}}function Voe(t){let e,n,i=t[17](t[9]?"tankerKey":"tankerMissing")+"",o,r,s,l,a,c;return{c(){e=S("div"),n=S("div"),o=Ze(i),r=X(),s=S("button"),l=Ze(t[4]),g(n,"class","text-prop__tanker-label svelte-4tj0tq"),te(n,"text-prop__tanker-label_error",!t[9]),g(s,"class","text-prop__tanker-key svelte-4tj0tq"),te(s,"text-prop__tanker-key_disabled",!t[10]),g(e,"class","text-prop__tanker svelte-4tj0tq")},m(d,u){N(d,e,u),$(e,n),$(n,o),$(e,r),$(e,s),$(s,l),a||(c=ee(s,"click",(function(){Yo(t[10]?t[23]:void 0)&&(t[10]?t[23]:void 0).apply(this,arguments)})),a=!0)},p(d,u){t=d,u[0]&131584&&i!==(i=t[17](t[9]?"tankerKey":"tankerMissing")+"")&<(o,i),u[0]&512&&te(n,"text-prop__tanker-label_error",!t[9]),u[0]&16&<(l,t[4]),u[0]&1024&&te(s,"text-prop__tanker-key_disabled",!t[10])},d(d){d&&F(e),a=!1,c()}}}function Loe(t){let e,n;function i(l,a){return l[15]==="text"?Aoe:Eoe}let o=i(t),r=o(t),s=t[3]&&Qh(t);return{c(){r.c(),e=X(),s&&s.c(),n=Dn()},m(l,a){r.m(l,a),N(l,e,a),s&&s.m(l,a),N(l,n,a)},p(l,a){o===(o=i(l))&&r?r.p(l,a):(r.d(1),r=o(l),r&&(r.c(),r.m(e.parentNode,e))),l[3]?s?(s.p(l,a),a[0]&8&&I(s,1)):(s=Qh(l),s.c(),I(s,1),s.m(n.parentNode,n)):s&&(It(),H(s,1,1,(()=>{s=null})),Dt())},i(l){I(s)},o(l){H(s)},d(l){l&&(F(e),F(n)),r.d(l),s&&s.d(l)}}}function CV(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function Foe(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f,{id:m=""}=e,{value:h}=e,{item:v}=e,{flags:y={}}=e,{tankerToggled:b=!1}=e;const{getTranslationKey:w,getSelection:k,state:E,tanker2Dialog:T}=wt(An),{l10n:j}=wt(oi);Pe(t,j,(G=>n(17,f=G)));const{tanker:A,locale:O,readOnly:M}=E;Pe(t,A,(G=>n(5,u=G))),Pe(t,O,(G=>n(16,_=G))),Pe(t,M,(G=>n(6,p=G)));const D=_i();let R,U=!1,B=!1,C="";function q(){R.hasAttribute("contenteditable")&&n(0,h=fa(R)),v.default==="\0"&&(n(0,h=h.replace(/\0/g,"")),n(0,h=h||"\0")),D("change",{value:h,item:v})}function V(){T().show({target:R,value:C,callback(G){if(!G||!w){n(0,h="");return}const Q=()=>{n(0,h=`@{${Pc(G)}}`),E.storeTankerKey(G),q(),n(4,C=G),n(8,U=!1)};n(8,U=!0),w(G).then((oe=>{Q(),oe?(Mi(A,u={...u,[G]:oe},u),n(9,B=!0)):n(9,B=!1)})).catch((oe=>{Q(),n(9,B=!1)}))}})}gs((()=>{if(R!=null&&R.hasAttribute("contenteditable")&&fa(R)!==h){let G,Q,oe;if(document.activeElement===R&&(G=k(),Q=Dr(G,R,"start",!1),oe=Dr(G,R,"end",!1)),n(7,R.innerText=h,R),document.activeElement===R&&G&&Q!==void 0&&oe!==void 0){G.removeAllRanges();const he=document.createRange();ts(G,R,he,"start",Q,!1),ts(G,R,he,"end",oe,!1),G.addRange(he)}}}));function Y(G){pt[G?"unshift":"push"]((()=>{R=G,n(7,R)}))}function x(G){pt[G?"unshift":"push"]((()=>{R=G,n(7,R)}))}function de(G){pt[G?"unshift":"push"]((()=>{R=G,n(7,R)}))}function _e(){h=Ji(this.value),n(0,h)}return t.$$set=G=>{"id"in G&&n(1,m=G.id),"value"in G&&n(0,h=G.value),"item"in G&&n(2,v=G.item),"flags"in G&&n(24,y=G.flags),"tankerToggled"in G&&n(3,b=G.tankerToggled)},t.$$.update=()=>{t.$$.dirty[0]&57&&(h&&b?(n(4,C=E.getTankerKey(h)),n(9,B=C in u)):n(4,C="")),t.$$.dirty[0]&16777216&&n(26,i=y.subtype==="number"||y.subtype==="integer"),t.$$.dirty[0]&67108864&&n(15,o=i?"number":"text"),t.$$.dirty[0]&16777216&&n(25,r=ip(y.subtype,y.constraint)),t.$$.dirty[0]&33554432&&n(14,s=r.min),t.$$.dirty[0]&33554432&&n(13,l=r.max),t.$$.dirty[0]&16777216&&n(12,a=y.subtype==="integer"?1:y.subtype==="number"?.01:null),t.$$.dirty[0]&16777216&&n(11,c=y.subtype==="integer"?"\\d+":null),t.$$.dirty[0]&76&&n(10,d=b&&!(p||v.enabled===!1))},[h,m,v,b,C,u,p,R,U,B,d,c,a,l,s,o,_,f,j,A,O,M,q,V,y,r,i,Y,x,de,_e]}class Noe extends Gt{constructor(e){super(),Yt(this,e,Foe,Loe,Rt,{id:1,value:0,item:2,flags:24,tankerToggled:3},null,[-1,-1])}}function e0(t,e,n){const i=t.slice();return i[12]=e[n],i}function t0(t){let e,n,i,o,r=!1,s,l,a=t[3](t[12].name)+"",c,d,u,p,_,f;return p=c1(t[10][0]),{c(){e=S("label"),n=S("input"),s=X(),l=S("span"),c=Ze(a),d=X(),g(n,"type","radio"),g(n,"name",i=t[1].prop),g(n,"class","radio-prop__input svelte-1hubmz7"),n.__value=o=t[12].value,Hn(n,n.__value),g(l,"class","radio-prop__item-inner svelte-1hubmz7"),g(e,"class","radio-prop__item svelte-1hubmz7"),g(e,"title",u=t[3](t[12].name)),p.p(n)},m(m,h){N(m,e,h),$(e,n),n.checked=n.__value===t[0],$(e,s),$(e,l),$(l,c),$(e,d),_||(f=[ee(n,"change",t[9]),ee(n,"change",t[5])],_=!0)},p(m,h){h&2&&i!==(i=m[1].prop)&&g(n,"name",i),h&4&&o!==(o=m[12].value)&&(n.__value=o,Hn(n,n.__value),r=!0),(r||h&5)&&(n.checked=n.__value===m[0]),h&12&&a!==(a=m[3](m[12].name)+"")&<(c,a),h&12&&u!==(u=m[3](m[12].name))&&g(e,"title",u)},d(m){m&&F(e),p.r(),_=!1,qn(f)}}}function qoe(t){let e,n=an(t[2]),i=[];for(let o=0;o<n.length;o+=1)i[o]=t0(e0(t,n,o));return{c(){e=S("div");for(let o=0;o<i.length;o+=1)i[o].c();g(e,"class","radio-prop svelte-1hubmz7")},m(o,r){N(o,e,r);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(e,null)},p(o,[r]){if(r&47){n=an(o[2]);let s;for(s=0;s<n.length;s+=1){const l=e0(o,n,s);i[s]?i[s].p(l,r):(i[s]=t0(l),i[s].c(),i[s].m(e,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length}},i:tn,o:tn,d(o){o&&F(e),Bi(i,o)}}}function Roe(t,e,n){let i,o,{value:r}=e,{item:s}=e,{processedJson:l}=e,{parentProcessedJson:a}=e,{options:c}=e;const{l10nString:d}=wt(oi);Pe(t,d,(m=>n(3,o=m)));const u=_i();function p(){u("change",{value:r,item:s})}const _=[[]];function f(){r=this.__value,n(0,r)}return t.$$set=m=>{"value"in m&&n(0,r=m.value),"item"in m&&n(1,s=m.item),"processedJson"in m&&n(6,l=m.processedJson),"parentProcessedJson"in m&&n(7,a=m.parentProcessedJson),"options"in m&&n(8,c=m.options)},t.$$.update=()=>{t.$$.dirty&448&&n(2,i=c.filter((m=>m.show===void 0||Nr(l,a,m.show))))},[r,s,i,o,d,p,l,a,c,f,_]}class Boe extends Gt{constructor(e){super(),Yt(this,e,Roe,qoe,Rt,{value:0,item:1,processedJson:6,parentProcessedJson:7,options:8})}}function Hoe(t){let e,n,i;function o(s){t[8](s)}let r={subtype:"file",fileType:t[1].subtype,disabled:t[4],generateFromVideo:t[3],generateFromLottie:t[2]};return t[0]!==void 0&&(r.value=t[0]),e=new go({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[6]),{c(){Ie(e.$$.fragment)},m(s,l){Oe(e,s,l),i=!0},p(s,[l]){const a={};l&2&&(a.fileType=s[1].subtype),l&16&&(a.disabled=s[4]),l&8&&(a.generateFromVideo=s[3]),l&4&&(a.generateFromLottie=s[2]),!n&&l&1&&(n=!0,a.value=s[0],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Me(e,s)}}}function Uoe(t,e,n){let i,o,r,{value:s}=e,{item:l}=e,{processedJson:a=void 0}=e;const{state:c}=wt(An),{readOnly:d}=c;Pe(t,d,(f=>n(4,r=f)));const u=_i();function p(){u("change",{value:s,item:l})}function _(f){s=f,n(0,s)}return t.$$set=f=>{"value"in f&&n(0,s=f.value),"item"in f&&n(1,l=f.item),"processedJson"in f&&n(7,a=f.processedJson)},t.$$.update=()=>{t.$$.dirty&130&&n(3,i=l.generateFromVideoProperty&&a?As(a,l.generateFromVideoProperty):void 0),t.$$.dirty&130&&n(2,o=l.generateFromLottieProperty&&a?As(a,l.generateFromLottieProperty):void 0)},[s,l,o,i,r,d,p,a,_]}class Joe extends Gt{constructor(e){super(),Yt(this,e,Uoe,Hoe,Rt,{value:0,item:1,processedJson:7})}}function n0(t){let e;function n(r,s){if(r[1]==="percent")return Koe;if(r[1]==="angle")return Woe}let i=n(t),o=i&&i(t);return{c(){e=S("div"),o&&o.c(),g(e,"class","number-prop__symbol svelte-1hzinr7"),g(e,"aria-hidden","true")},m(r,s){N(r,e,s),o&&o.m(e,null)},p(r,s){i!==(i=n(r))&&(o&&o.d(1),o=i&&i(r),o&&(o.c(),o.m(e,null)))},d(r){r&&F(e),o&&o.d()}}}function Woe(t){let e;return{c(){e=Ze("°")},m(n,i){N(n,e,i)},d(n){n&&F(e)}}}function Koe(t){let e;return{c(){e=Ze("%")},m(n,i){N(n,e,i)},d(n){n&&F(e)}}}function i0(t){let e,n;return{c(){e=S("div"),n=Ze(t[3]),g(e,"class","number-prop__inline-label svelte-1hzinr7")},m(i,o){N(i,e,o),$(e,n)},p(i,o){o&8&<(n,i[3])},d(i){i&&F(e)}}}function Yoe(t){let e,n,i,o,r,s,l,a=(t[1]==="percent"||t[1]==="angle")&&n0(t),c=t[3]&&i0(t);return{c(){e=S("div"),n=S("input"),i=X(),a&&a.c(),o=X(),c&&c.c(),g(n,"type","number"),g(n,"min",t[9]),g(n,"max",t[8]),g(n,"step",t[7]),g(n,"pattern",t[6]),g(n,"class","number-prop__input svelte-1hzinr7"),g(n,"autocomplete","off"),g(n,"autocorrect","off"),g(n,"autocapitalize","off"),g(n,"spellcheck","false"),g(n,"id",t[0]),n.readOnly=t[5],te(n,"number-prop__input_percent",t[1]==="percent"),te(n,"number-prop__input_angle",t[1]==="angle"),g(e,"class",r="number-prop "+t[2]+" svelte-1hzinr7"),te(e,"number-prop_inline-label",!!t[3]),te(e,"number-prop_disabled",t[5])},m(d,u){N(d,e,u),$(e,n),Hn(n,t[4]),$(e,i),a&&a.m(e,null),$(e,o),c&&c.m(e,null),s||(l=[ee(n,"input",t[19]),ee(n,"input",t[11])],s=!0)},p(d,[u]){u&512&&g(n,"min",d[9]),u&256&&g(n,"max",d[8]),u&128&&g(n,"step",d[7]),u&64&&g(n,"pattern",d[6]),u&1&&g(n,"id",d[0]),u&32&&(n.readOnly=d[5]),u&16&&Ji(n.value)!==d[4]&&Hn(n,d[4]),u&2&&te(n,"number-prop__input_percent",d[1]==="percent"),u&2&&te(n,"number-prop__input_angle",d[1]==="angle"),d[1]==="percent"||d[1]==="angle"?a?a.p(d,u):(a=n0(d),a.c(),a.m(e,o)):a&&(a.d(1),a=null),d[3]?c?c.p(d,u):(c=i0(d),c.c(),c.m(e,null)):c&&(c.d(1),c=null),u&4&&r!==(r="number-prop "+d[2]+" svelte-1hzinr7")&&g(e,"class",r),u&12&&te(e,"number-prop_inline-label",!!d[3]),u&36&&te(e,"number-prop_disabled",d[5])},i:tn,o:tn,d(d){d&&F(e),a&&a.d(),c&&c.d(),s=!1,qn(l)}}}function Goe(t,e,n){let i,o,r,s,l,a,c,{id:d=""}=e,{value:u}=e,{item:p}=e,{subtype:_="number"}=e,{min:f=void 0}=e,{max:m=void 0}=e,{constraint:h=""}=e,{mix:v=""}=e,{inlineLabel:y=""}=e;const{state:b}=wt(An),{readOnly:w}=b;Pe(t,w,(O=>n(18,c=O)));const k=_i();let E=0;function T(O){let M;_==="percent"?M=Math.round(Number(O)*100):M=Number(O),Number.isNaN(M)?n(4,E=void 0):n(4,E=M)}function j(){let O=Number(E);_==="percent"&&(O/=100),k("change",{value:O,item:p})}function A(){E=Ji(this.value),n(4,E)}return t.$$set=O=>{"id"in O&&n(0,d=O.id),"value"in O&&n(12,u=O.value),"item"in O&&n(13,p=O.item),"subtype"in O&&n(1,_=O.subtype),"min"in O&&n(14,f=O.min),"max"in O&&n(15,m=O.max),"constraint"in O&&n(16,h=O.constraint),"mix"in O&&n(2,v=O.mix),"inlineLabel"in O&&n(3,y=O.inlineLabel)},t.$$.update=()=>{t.$$.dirty&4096&&T(u),t.$$.dirty&65538&&n(17,i=ip(_,h)),t.$$.dirty&147456&&n(9,o=f??i.min),t.$$.dirty&163840&&n(8,r=m??i.max),t.$$.dirty&2&&n(7,s=_==="integer"||_==="percent"||_==="angle"?1:.01),t.$$.dirty&2&&n(6,l=_==="integer"||_==="percent"||_==="angle"?"\\d+":null),t.$$.dirty&270336&&n(5,a=c||p.enabled===!1)},[d,_,v,y,E,a,l,s,r,o,w,j,u,p,f,m,h,i,c,A]}class pd extends Gt{constructor(e){super(),Yt(this,e,Goe,Yoe,Rt,{id:0,value:12,item:13,subtype:1,min:14,max:15,constraint:16,mix:2,inlineLabel:3})}}function Xoe(t){let e,n,i,o,r,s;return{c(){e=S("div"),n=S("input"),i=X(),o=S("div"),g(n,"class","boolean__input svelte-tgzek5"),g(n,"type","checkbox"),g(n,"autocomplete","off"),g(n,"id",t[0]),n.disabled=t[3],g(o,"class","boolean__bg svelte-tgzek5"),g(e,"class","boolean__box svelte-tgzek5")},m(l,a){N(l,e,a),$(e,n),n.checked=t[2],$(e,i),$(e,o),r||(s=[ee(n,"change",t[10]),ee(n,"change",t[7])],r=!0)},p(l,a){a&1&&g(n,"id",l[0]),a&8&&(n.disabled=l[3]),a&4&&(n.checked=l[2])},d(l){l&&F(e),r=!1,qn(s)}}}function Zoe(t){let e,n,i,o,r,s,l=t[4](t[1].label)+"",a,c,d;return{c(){e=S("label"),n=S("div"),i=S("input"),o=X(),r=S("div"),s=X(),a=Ze(l),g(i,"class","boolean__input svelte-tgzek5"),g(i,"type","checkbox"),g(i,"autocomplete","off"),g(i,"id",t[0]),i.disabled=t[3],g(r,"class","boolean__bg svelte-tgzek5"),g(n,"class","boolean__box svelte-tgzek5"),g(e,"class","boolean__label svelte-tgzek5")},m(u,p){N(u,e,p),$(e,n),$(n,i),i.checked=t[2],$(n,o),$(n,r),$(e,s),$(e,a),c||(d=[ee(i,"change",t[9]),ee(i,"change",t[7])],c=!0)},p(u,p){p&1&&g(i,"id",u[0]),p&8&&(i.disabled=u[3]),p&4&&(i.checked=u[2]),p&18&&l!==(l=u[4](u[1].label)+"")&<(a,l)},d(u){u&&F(e),c=!1,qn(d)}}}function xoe(t){let e;function n(r,s){return r[1].label?Zoe:Xoe}let i=n(t),o=i(t);return{c(){e=S("div"),o.c(),g(e,"class","boolean svelte-tgzek5"),te(e,"boolean_sibling",t[1].theme==="sibling"),te(e,"boolean_disabled",t[3])},m(r,s){N(r,e,s),o.m(e,null)},p(r,[s]){i===(i=n(r))&&o?o.p(r,s):(o.d(1),o=i(r),o&&(o.c(),o.m(e,null))),s&2&&te(e,"boolean_sibling",r[1].theme==="sibling"),s&8&&te(e,"boolean_disabled",r[3])},i:tn,o:tn,d(r){r&&F(e),o.d()}}}function Qoe(t,e,n){let i,o,{id:r=""}=e,{value:s}=e,{item:l}=e;const{state:a}=wt(An),{readOnly:c}=a;Pe(t,c,(h=>n(3,i=h)));let d=!1;const{l10n:u}=wt(oi);Pe(t,u,(h=>n(4,o=h)));const p=_i();function _(){p("change",{value:d,item:l})}function f(){d=this.checked,n(2,d),n(8,s)}function m(){d=this.checked,n(2,d),n(8,s)}return t.$$set=h=>{"id"in h&&n(0,r=h.id),"value"in h&&n(8,s=h.value),"item"in h&&n(1,l=h.item)},t.$$.update=()=>{t.$$.dirty&256&&s!==void 0&&n(2,d=!!s)},[r,l,d,i,o,c,u,_,s,f,m]}class ere extends Gt{constructor(e){super(),Yt(this,e,Qoe,xoe,Rt,{id:0,value:8,item:1})}}function tre(t){let e,n,i,o,r,s,l;return{c(){e=S("div"),n=S("input"),i=X(),o=S("div"),g(n,"type","range"),g(n,"min","0"),g(n,"max","360"),g(n,"step","1"),g(n,"class","rotation-prop__input svelte-1tu0uda"),g(n,"autocomplete","off"),g(n,"id",t[1]),n.value=t[0],n.disabled=t[4],g(o,"class","rotation-prop__value svelte-1tu0uda"),je(o,"--value",t[0]%360/360-.25),g(e,"class",r="rotation-prop "+t[2]+" svelte-1tu0uda"),te(e,"rotation-prop_disabled",t[4])},m(a,c){N(a,e,c),$(e,n),t[9](n),$(e,i),$(e,o),s||(l=[ee(n,"input",t[6]),ee(n,"pointerdown",t[7])],s=!0)},p(a,[c]){c&2&&g(n,"id",a[1]),c&1&&(n.value=a[0]),c&16&&(n.disabled=a[4]),c&1&&je(o,"--value",a[0]%360/360-.25),c&4&&r!==(r="rotation-prop "+a[2]+" svelte-1tu0uda")&&g(e,"class",r),c&20&&te(e,"rotation-prop_disabled",a[4])},i:tn,o:tn,d(a){a&&F(e),t[9](null),s=!1,qn(l)}}}function nre(t,e,n){let i,{id:o=""}=e,{value:r}=e,{item:s}=e,{mix:l=""}=e;const{state:a}=wt(An),{readOnly:c}=a;Pe(t,c,(b=>n(4,i=b)));const d=_i();let u,p=!1,_;function f(b){b.preventDefault();const w=u.getBoundingClientRect(),k=b.clientX-w.left-w.width/2,E=b.clientY-w.top-w.height/2,T=Math.atan2(E,k);let j=Math.round(T/Math.PI*180);j+=90,j<0&&(j+=360),p=!0,n(0,r=j),n(3,u.value=String(j),u),d("change",{value:r,item:s}),clearTimeout(_),_=setTimeout((()=>{p=!1}),100)}function m(){p||(n(0,r=Number(u.value)),d("change",{value:r,item:s}))}function h(){document.body.removeEventListener("pointermove",f),document.body.removeEventListener("pointerup",h),document.body.removeEventListener("pointercancel",h)}function v(b){i||(f(b),u.focus(),document.body.addEventListener("pointermove",f),document.body.addEventListener("pointerup",h),document.body.addEventListener("pointercancel",h))}function y(b){pt[b?"unshift":"push"]((()=>{u=b,n(3,u)}))}return t.$$set=b=>{"id"in b&&n(1,o=b.id),"value"in b&&n(0,r=b.value),"item"in b&&n(8,s=b.item),"mix"in b&&n(2,l=b.mix)},[r,o,l,u,i,c,m,v,s,y]}class ire extends Gt{constructor(e){super(),Yt(this,e,nre,tre,Rt,{id:1,value:0,item:8,mix:2})}}function ore(t){let e,n,i,o,r;return n=new ire({props:{id:t[0],item:t[2],value:Number(t[1]),mix:"rotation-group-prop__rotation"}}),n.$on("change",t[3]),o=new pd({props:{id:t[0],item:t[2],value:t[1],subtype:"angle",min:0,max:360,mix:"rotation-group-prop__input"}}),o.$on("change",t[4]),{c(){e=S("div"),Ie(n.$$.fragment),i=X(),Ie(o.$$.fragment),g(e,"class","rotation-group-prop svelte-zd75dn")},m(s,l){N(s,e,l),Oe(n,e,null),$(e,i),Oe(o,e,null),r=!0},p(s,[l]){const a={};l&1&&(a.id=s[0]),l&4&&(a.item=s[2]),l&2&&(a.value=Number(s[1])),n.$set(a);const c={};l&1&&(c.id=s[0]),l&4&&(c.item=s[2]),l&2&&(c.value=s[1]),o.$set(c)},i(s){r||(I(n.$$.fragment,s),I(o.$$.fragment,s),r=!0)},o(s){H(n.$$.fragment,s),H(o.$$.fragment,s),r=!1},d(s){s&&F(e),Me(n),Me(o)}}}function rre(t,e,n){let{id:i=""}=e,{value:o}=e,{item:r}=e;function s(a){mn.call(this,t,a)}function l(a){mn.call(this,t,a)}return t.$$set=a=>{"id"in a&&n(0,i=a.id),"value"in a&&n(1,o=a.value),"item"in a&&n(2,r=a.item)},[i,o,r,s,l]}class sre extends Gt{constructor(e){super(),Yt(this,e,rre,ore,Rt,{id:0,value:1,item:2})}}function o0(t,e,n){const i=t.slice();return i[36]=e[n],i}function r0(t,e,n){const i=t.slice();return i[39]=e[n],i}function s0(t){let e,n,i,o;function r(){return t[26](t[39],t[36])}function s(){return t[27](t[39],t[36])}return{c(){e=S("div"),g(e,"class",n="alignment__val alignment__val_horizontal_"+t[39]+" alignment__val_vertical_"+t[36]+" svelte-1l035nk"),te(e,"alignment__val_selected",(t[0]===t[39]||t[0]&&t[39]===c0[t[7]][t[0]])&&t[1]===t[36]&&!(t[6]&&t[5]))},m(l,a){N(l,e,a),i||(o=[ee(e,"click",zi(r)),ee(e,"mouseenter",s)],i=!0)},p(l,a){t=l,a[0]&6144&&n!==(n="alignment__val alignment__val_horizontal_"+t[39]+" alignment__val_vertical_"+t[36]+" svelte-1l035nk")&&g(e,"class",n),a[0]&6371&&te(e,"alignment__val_selected",(t[0]===t[39]||t[0]&&t[39]===c0[t[7]][t[0]])&&t[1]===t[36]&&!(t[6]&&t[5]))},d(l){l&&F(e),i=!1,qn(o)}}}function l0(t){let e,n=an(t[12]),i=[];for(let o=0;o<n.length;o+=1)i[o]=s0(r0(t,n,o));return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=Dn()},m(o,r){for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(o,r);N(o,e,r)},p(o,r){if(r[0]&270323){n=an(o[12]);let s;for(s=0;s<n.length;s+=1){const l=r0(o,n,s);i[s]?i[s].p(l,r):(i[s]=s0(l),i[s].c(),i[s].m(e.parentNode,e))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length}},d(o){o&&F(e),Bi(i,o)}}}function lre(t){let e,n,i;function o(s){t[28](s)}let r={items:[{text:t[15](So.left),value:"left"},{text:t[15](So.start),value:"start"},{text:t[15](So.center),value:"center"},{text:t[15](So.right),value:"right"},{text:t[15](So.end),value:"end"},{text:t[15](So[""]),value:""}],theme:"transparent",disabled:t[4]};return t[14]!==void 0&&(r.value=t[14]),e=new Hr({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[29]),{c(){Ie(e.$$.fragment)},m(s,l){Oe(e,s,l),i=!0},p(s,l){const a={};l[0]&32768&&(a.items=[{text:s[15](So.left),value:"left"},{text:s[15](So.start),value:"start"},{text:s[15](So.center),value:"center"},{text:s[15](So.right),value:"right"},{text:s[15](So.end),value:"end"},{text:s[15](So[""]),value:""}]),l[0]&16&&(a.disabled=s[4]),!n&&l[0]&16384&&(n=!0,a.value=s[14],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Me(e,s)}}}function are(t){let e,n=t[15]("props.size_match_parent")+"",i;return{c(){e=S("div"),i=Ze(n),g(e,"class","alignment__select-fill svelte-1l035nk")},m(o,r){N(o,e,r),$(e,i)},p(o,r){r[0]&32768&&n!==(n=o[15]("props.size_match_parent")+"")&<(i,n)},i:tn,o:tn,d(o){o&&F(e)}}}function cre(t){let e,n,i;function o(s){t[30](s)}let r={items:[{text:t[15](So.top),value:"top"},{text:t[15](So.center),value:"center"},{text:t[15](So.bottom),value:"bottom"},{text:t[15](So[""]),value:""}],theme:"transparent",disabled:t[4]};return t[13]!==void 0&&(r.value=t[13]),e=new Hr({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[31]),{c(){Ie(e.$$.fragment)},m(s,l){Oe(e,s,l),i=!0},p(s,l){const a={};l[0]&32768&&(a.items=[{text:s[15](So.top),value:"top"},{text:s[15](So.center),value:"center"},{text:s[15](So.bottom),value:"bottom"},{text:s[15](So[""]),value:""}]),l[0]&16&&(a.disabled=s[4]),!n&&l[0]&8192&&(n=!0,a.value=s[13],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Me(e,s)}}}function dre(t){let e,n=t[15]("props.size_match_parent")+"",i;return{c(){e=S("div"),i=Ze(n),g(e,"class","alignment__select-fill svelte-1l035nk")},m(o,r){N(o,e,r),$(e,i)},p(o,r){r[0]&32768&&n!==(n=o[15]("props.size_match_parent")+"")&<(i,n)},i:tn,o:tn,d(o){o&&F(e)}}}function a0(t){let e,n,i,o,r,s,l;return{c(){e=S("div"),n=S("div"),i=X(),o=S("div"),r=X(),s=S("div"),g(n,"class","alignment__preview-item svelte-1l035nk"),g(o,"class","alignment__preview-item svelte-1l035nk"),g(s,"class","alignment__preview-item svelte-1l035nk"),g(e,"class",l="alignment__preview alignment__preview_"+t[2]+" svelte-1l035nk"),te(e,"alignment__preview_showed",t[8]),te(e,"alignment__preview_halign_left",t[9]==="left"||t[9]==="start"&&t[7]==="ltr"||t[9]==="end"&&t[7]==="rtl"),te(e,"alignment__preview_halign_center",t[9]==="center"),te(e,"alignment__preview_halign_right",t[9]==="right"||t[9]==="end"&&t[7]==="ltr"||t[9]==="start"&&t[7]==="rtl"),te(e,"alignment__preview_valign_top",t[10]==="top"),te(e,"alignment__preview_valign_center",t[10]==="center"),te(e,"alignment__preview_valign_bottom",t[10]==="bottom")},m(a,c){N(a,e,c),$(e,n),$(e,i),$(e,o),$(e,r),$(e,s)},p(a,c){c[0]&4&&l!==(l="alignment__preview alignment__preview_"+a[2]+" svelte-1l035nk")&&g(e,"class",l),c[0]&260&&te(e,"alignment__preview_showed",a[8]),c[0]&644&&te(e,"alignment__preview_halign_left",a[9]==="left"||a[9]==="start"&&a[7]==="ltr"||a[9]==="end"&&a[7]==="rtl"),c[0]&516&&te(e,"alignment__preview_halign_center",a[9]==="center"),c[0]&644&&te(e,"alignment__preview_halign_right",a[9]==="right"||a[9]==="end"&&a[7]==="ltr"||a[9]==="start"&&a[7]==="rtl"),c[0]&1028&&te(e,"alignment__preview_valign_top",a[10]==="top"),c[0]&1028&&te(e,"alignment__preview_valign_center",a[10]==="center"),c[0]&1028&&te(e,"alignment__preview_valign_bottom",a[10]==="bottom")},d(a){a&&F(e)}}}function ure(t){let e,n,i,o,r,s,l,a,c,d,u,p,_,f,m,h,v,y,b,w,k,E,T=an(t[11]),j=[];for(let C=0;C<T.length;C+=1)j[C]=l0(o0(t,T,C));const A=[are,lre],O=[];function M(C,q){return C[6]?0:1}d=M(t),u=O[d]=A[d](t);const D=[dre,cre],R=[];function U(C,q){return C[5]?0:1}h=U(t),v=R[h]=D[h](t);let B=t[3]&&t[2]&&a0(t);return{c(){e=S("div"),n=S("div");for(let C=0;C<j.length;C+=1)j[C].c();o=X(),r=S("div"),s=S("div"),l=S("div"),a=S("div"),a.textContent="X:",c=X(),u.c(),p=X(),_=S("div"),f=S("div"),f.textContent="Y:",m=X(),v.c(),y=X(),B&&B.c(),g(n,"class","alignment__item alignment__grid svelte-1l035nk"),g(n,"tabindex",i=t[4]||t[6]&&t[5]?void 0:0),te(n,"alignment__grid_disabled",t[4]||t[6]&&t[5]),g(l,"class","alignment__select-wrapper svelte-1l035nk"),g(_,"class","alignment__select-wrapper svelte-1l035nk"),g(s,"class","alignment__select-group svelte-1l035nk"),g(r,"class","alignment__item alignment__text svelte-1l035nk"),g(e,"class",b="alignment alignment_direction_"+t[7]+" svelte-1l035nk"),te(e,"alignment_disabled",t[4]),te(e,"alignment_match_horizontal",t[6]),te(e,"alignment_match_vertical",t[5])},m(C,q){N(C,e,q),$(e,n);for(let V=0;V<j.length;V+=1)j[V]&&j[V].m(n,null);$(e,o),$(e,r),$(r,s),$(s,l),$(l,a),$(l,c),O[d].m(l,null),$(s,p),$(s,_),$(_,f),$(_,m),R[h].m(_,null),$(r,y),B&&B.m(r,null),w=!0,k||(E=[ee(n,"keydown",t[19]),ee(n,"mouseleave",t[20])],k=!0)},p(C,q){if(q[0]&270323){T=an(C[11]);let x;for(x=0;x<T.length;x+=1){const de=o0(C,T,x);j[x]?j[x].p(de,q):(j[x]=l0(de),j[x].c(),j[x].m(n,null))}for(;x<j.length;x+=1)j[x].d(1);j.length=T.length}(!w||q[0]&112&&i!==(i=C[4]||C[6]&&C[5]?void 0:0))&&g(n,"tabindex",i),(!w||q[0]&112)&&te(n,"alignment__grid_disabled",C[4]||C[6]&&C[5]);let V=d;d=M(C),d===V?O[d].p(C,q):(It(),H(O[V],1,1,(()=>{O[V]=null})),Dt(),u=O[d],u?u.p(C,q):(u=O[d]=A[d](C),u.c()),I(u,1),u.m(l,null));let Y=h;h=U(C),h===Y?R[h].p(C,q):(It(),H(R[Y],1,1,(()=>{R[Y]=null})),Dt(),v=R[h],v?v.p(C,q):(v=R[h]=D[h](C),v.c()),I(v,1),v.m(_,null)),C[3]&&C[2]?B?B.p(C,q):(B=a0(C),B.c(),B.m(r,null)):B&&(B.d(1),B=null),(!w||q[0]&128&&b!==(b="alignment alignment_direction_"+C[7]+" svelte-1l035nk"))&&g(e,"class",b),(!w||q[0]&144)&&te(e,"alignment_disabled",C[4]),(!w||q[0]&192)&&te(e,"alignment_match_horizontal",C[6]),(!w||q[0]&160)&&te(e,"alignment_match_vertical",C[5])},i(C){w||(I(u),I(v),w=!0)},o(C){H(u),H(v),w=!1},d(C){C&&F(e),Bi(j,C),O[d].d(),R[h].d(),B&&B.d(),k=!1,qn(E)}}}const pre=["left","center","right"],_re=["start","center","end"],fre=["end","center","start"],mre=["top","center","bottom"],c0={ltr:{left:"start",right:"end"},rtl:{left:"end",right:"start"}},So={left:"props.align_left",center:"props.align_center",right:"props.align_right",top:"props.align_top",bottom:"props.align_bottom",start:"props.align_start",end:"props.align_end","":"default"};function gre(t,e,n){let i,o,r,s,l,a,c,d,{horizontal:u}=e,{vertical:p}=e,{width:_=void 0}=e,{height:f=void 0}=e,{orientation:m=void 0}=e,{isContent:h=!1}=e,{isSelfAlign:v=!1}=e,{parentType:y=void 0}=e,{parentOrientation:b=void 0}=e,{disabled:w=!1}=e;const{state:k,directionSelector:E}=wt(An),{l10n:T}=wt(oi);Pe(t,T,(G=>n(15,d=G)));const{direction:j}=k;Pe(t,j,(G=>n(7,c=G)));const A=_i();let O=!1,M="",D="";function R(G,Q){w||(s.length<2&&(Q=void 0),r.length<2&&(G=void 0),n(0,u=G),n(1,p=Q),A("change",{horizontal:u,vertical:p}))}function U(G,Q){let oe,he=r.indexOf(u||"");he===-1?oe=r[0]:(he=Math.max(0,Math.min(2,he+G)),oe=r[he]);let ze,W=s.indexOf(p||"");W===-1?ze=s[0]:(W=Math.max(0,Math.min(2,W+Q)),ze=s[W]),R(oe,ze)}function B(G){if(!w){if(IL.isPressed(G))U(0,-1);else if(DL.isPressed(G))U(0,1);else if(VL.isPressed(G))U(-1,0);else if(LL.isPressed(G))U(1,0);else if(UL.isPressed(G))R("","");else return;G.preventDefault(),G.stopPropagation()}}function C(){n(8,O=!1)}const q=(G,Q)=>R(G,Q),V=(G,Q)=>{w||(n(8,O=!0),n(9,M=G),n(10,D=Q))};function Y(G){l=G,n(14,l),n(0,u)}const x=()=>R(l,p);function de(G){a=G,n(13,a),n(1,p)}const _e=()=>R(u,a);return t.$$set=G=>{"horizontal"in G&&n(0,u=G.horizontal),"vertical"in G&&n(1,p=G.vertical),"width"in G&&n(21,_=G.width),"height"in G&&n(22,f=G.height),"orientation"in G&&n(2,m=G.orientation),"isContent"in G&&n(3,h=G.isContent),"isSelfAlign"in G&&n(23,v=G.isSelfAlign),"parentType"in G&&n(24,y=G.parentType),"parentOrientation"in G&&n(25,b=G.parentOrientation),"disabled"in G&&n(4,w=G.disabled)},t.$$.update=()=>{t.$$.dirty[0]&60817408&&n(6,i=v&&(!_||_.type==="match_parent"||y==="container"&&b==="horizontal"||y==="gallery"&&(!b||b==="horizontal"))),t.$$.dirty[0]&62914560&&n(5,o=v&&((f==null?void 0:f.type)==="match_parent"||y==="container"&&(!b||b==="vertical")||y==="gallery"&&b==="vertical")),t.$$.dirty[0]&192&&n(12,r=i?[E?"start":"left"]:E?c==="ltr"?_re:fre:pre),t.$$.dirty[0]&32&&n(11,s=o?["top"]:mre),t.$$.dirty[0]&1&&n(14,l=u||""),t.$$.dirty[0]&2&&n(13,a=p||"")},[u,p,m,h,w,o,i,c,O,M,D,s,r,a,l,d,T,j,R,B,C,_,f,v,y,b,q,V,Y,x,de,_e]}class TV extends Gt{constructor(e){super(),Yt(this,e,gre,ure,Rt,{horizontal:0,vertical:1,width:21,height:22,orientation:2,isContent:3,isSelfAlign:23,parentType:24,parentOrientation:25,disabled:4},null,[-1,-1])}}function hre(t){let e,n;return e=new TV({props:{horizontal:t[2],vertical:t[1],orientation:t[3],isContent:t[0].isContent,isSelfAlign:t[0].isSelfAlign,width:t[7],height:t[6],parentType:t[5],parentOrientation:t[4],disabled:t[8]}}),e.$on("change",t[10]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,[o]){const r={};o&4&&(r.horizontal=i[2]),o&2&&(r.vertical=i[1]),o&8&&(r.orientation=i[3]),o&1&&(r.isContent=i[0].isContent),o&1&&(r.isSelfAlign=i[0].isSelfAlign),o&128&&(r.width=i[7]),o&64&&(r.height=i[6]),o&32&&(r.parentType=i[5]),o&16&&(r.parentOrientation=i[4]),o&256&&(r.disabled=i[8]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function vre(t,e,n){let i,o,r,s,l,a,c,d,{item:u}=e,{processedJson:p}=e,{parentEvalJson:_}=e;const{state:f}=wt(An),{readOnly:m}=f;Pe(t,m,(y=>n(8,d=y)));const h=_i();function v(y){n(2,i=y.detail.horizontal),n(1,o=y.detail.vertical),h("change",{values:[y.detail.horizontal!==void 0&&{prop:u.horizontalProp,value:y.detail.horizontal},y.detail.vertical!==void 0&&{prop:u.verticalProp,value:y.detail.vertical}].filter(Boolean),item:u})}return t.$$set=y=>{"item"in y&&n(0,u=y.item),"processedJson"in y&&n(11,p=y.processedJson),"parentEvalJson"in y&&n(12,_=y.parentEvalJson)},t.$$.update=()=>{t.$$.dirty&2049&&n(2,i=Lo(p,u.horizontalProp)),t.$$.dirty&2049&&n(1,o=Lo(p,u.verticalProp)),t.$$.dirty&2048&&n(7,r=Lo(p,"width")),t.$$.dirty&2048&&n(6,s=Lo(p,"height")),t.$$.dirty&4096&&n(5,l=Lo(_,"type")),t.$$.dirty&4096&&n(4,a=Lo(_,"orientation")),t.$$.dirty&2049&&n(3,c=u.orientationProp&&(Lo(p,u.orientationProp)||(p.type==="container"?"vertical":"horizontal")))},[u,o,i,c,a,l,s,r,d,m,v,p,_]}class bre extends Gt{constructor(e){super(),Yt(this,e,vre,hre,Rt,{item:0,processedJson:11,parentEvalJson:12})}}function yre(t){let e,n,i=t[10]("props.margins")+"",o,r,s,l=t[10]("props.paddings")+"",a,c,d,u,p,_,f,m,h,v,y,b,w,k,E,T,j,A,O,M,D,R,U,B,C,q,V,Y,x,de,_e,G=t[10]("inset_content")+"",Q,oe,he;return{c(){e=S("div"),n=S("div"),o=Ze(i),r=X(),s=S("div"),a=Ze(l),c=X(),d=S("div"),u=S("input"),p=X(),_=S("div"),f=S("input"),m=X(),h=S("div"),v=S("input"),y=X(),b=S("div"),w=S("input"),k=X(),E=S("div"),T=S("input"),j=X(),A=S("div"),O=S("input"),M=X(),D=S("div"),R=S("input"),U=X(),B=S("div"),C=S("input"),q=X(),V=S("div"),V.innerHTML="",Y=X(),x=S("div"),x.innerHTML="",de=X(),_e=S("div"),Q=Ze(G),g(n,"class","margins-paddings-prop__label margins-paddings-prop__label_margins svelte-1h6maym"),g(s,"class","margins-paddings-prop__label margins-paddings-prop__label_paddings svelte-1h6maym"),g(u,"type","number"),g(u,"min","0"),g(u,"step","1"),g(u,"pattern","\\d+"),g(u,"class","margins-paddings-prop__input svelte-1h6maym"),g(u,"autocomplete","off"),g(u,"autocorrect","off"),g(u,"autocapitalize","off"),g(u,"spellcheck","false"),g(u,"placeholder","-"),u.disabled=t[9],g(d,"class","margins-paddings-prop__cell margins-paddings-prop__cell_input margins-paddings-prop__cell_margins-top svelte-1h6maym"),g(f,"type","number"),g(f,"min","0"),g(f,"step","1"),g(f,"pattern","\\d+"),g(f,"class","margins-paddings-prop__input svelte-1h6maym"),g(f,"autocomplete","off"),g(f,"autocorrect","off"),g(f,"autocapitalize","off"),g(f,"spellcheck","false"),g(f,"placeholder","-"),f.disabled=t[9],g(_,"class","margins-paddings-prop__cell margins-paddings-prop__cell_input margins-paddings-prop__cell_paddings-top svelte-1h6maym"),g(v,"type","number"),g(v,"min","0"),g(v,"step","1"),g(v,"pattern","\\d+"),g(v,"class","margins-paddings-prop__input svelte-1h6maym"),g(v,"autocomplete","off"),g(v,"autocorrect","off"),g(v,"autocapitalize","off"),g(v,"spellcheck","false"),g(v,"placeholder","-"),v.disabled=t[9],g(h,"class","margins-paddings-prop__cell margins-paddings-prop__cell_input margins-paddings-prop__cell_margins-left svelte-1h6maym"),g(w,"type","number"),g(w,"min","0"),g(w,"step","1"),g(w,"pattern","\\d+"),g(w,"class","margins-paddings-prop__input svelte-1h6maym"),g(w,"autocomplete","off"),g(w,"autocorrect","off"),g(w,"autocapitalize","off"),g(w,"spellcheck","false"),g(w,"placeholder","-"),w.disabled=t[9],g(b,"class","margins-paddings-prop__cell margins-paddings-prop__cell_input margins-paddings-prop__cell_paddings-left svelte-1h6maym"),g(T,"type","number"),g(T,"min","0"),g(T,"step","1"),g(T,"pattern","\\d+"),g(T,"class","margins-paddings-prop__input svelte-1h6maym"),g(T,"autocomplete","off"),g(T,"autocorrect","off"),g(T,"autocapitalize","off"),g(T,"spellcheck","false"),g(T,"placeholder","-"),T.disabled=t[9],g(E,"class","margins-paddings-prop__cell margins-paddings-prop__cell_input margins-paddings-prop__cell_paddings-right svelte-1h6maym"),g(O,"type","number"),g(O,"min","0"),g(O,"step","1"),g(O,"pattern","\\d+"),g(O,"class","margins-paddings-prop__input svelte-1h6maym"),g(O,"autocomplete","off"),g(O,"autocorrect","off"),g(O,"autocapitalize","off"),g(O,"spellcheck","false"),g(O,"placeholder","-"),O.disabled=t[9],g(A,"class","margins-paddings-prop__cell margins-paddings-prop__cell_input margins-paddings-prop__cell_margins-right svelte-1h6maym"),g(R,"type","number"),g(R,"min","0"),g(R,"step","1"),g(R,"pattern","\\d+"),g(R,"class","margins-paddings-prop__input svelte-1h6maym"),g(R,"autocomplete","off"),g(R,"autocorrect","off"),g(R,"autocapitalize","off"),g(R,"spellcheck","false"),g(R,"placeholder","-"),R.disabled=t[9],g(D,"class","margins-paddings-prop__cell margins-paddings-prop__cell_input margins-paddings-prop__cell_paddings-bottom svelte-1h6maym"),g(C,"type","number"),g(C,"min","0"),g(C,"step","1"),g(C,"pattern","\\d+"),g(C,"class","margins-paddings-prop__input svelte-1h6maym"),g(C,"autocomplete","off"),g(C,"autocorrect","off"),g(C,"autocapitalize","off"),g(C,"spellcheck","false"),g(C,"placeholder","-"),C.disabled=t[9],g(B,"class","margins-paddings-prop__cell margins-paddings-prop__cell_input margins-paddings-prop__cell_margins-bottom svelte-1h6maym"),g(V,"class","margins-paddings-prop__cell margins-paddings-prop__cell_input margins-paddings-prop__cell_border-box svelte-1h6maym"),g(x,"class","margins-paddings-prop__cell margins-paddings-prop__cell_input margins-paddings-prop__cell_content-box svelte-1h6maym"),g(_e,"class","margins-paddings-prop__cell margins-paddings-prop__cell_input margins-paddings-prop__cell_center svelte-1h6maym"),g(e,"class","margins-paddings-prop svelte-1h6maym"),te(e,"margins-paddings-prop_hover_margins",t[8]==="margins"),te(e,"margins-paddings-prop_hover_paddings",t[8]==="paddings"),te(e,"margins-paddings-prop_disabled",t[9])},m(ze,W){N(ze,e,W),$(e,n),$(n,o),$(e,r),$(e,s),$(s,a),$(e,c),$(e,d),$(d,u),Hn(u,t[4]),$(e,p),$(e,_),$(_,f),Hn(f,t[0]),$(e,m),$(e,h),$(h,v),Hn(v,t[7]),$(e,y),$(e,b),$(b,w),Hn(w,t[3]),$(e,k),$(e,E),$(E,T),Hn(T,t[1]),$(e,j),$(e,A),$(A,O),Hn(O,t[5]),$(e,M),$(e,D),$(D,R),Hn(R,t[2]),$(e,U),$(e,B),$(B,C),Hn(C,t[6]),$(e,q),$(e,V),$(e,Y),$(e,x),$(e,de),$(e,_e),$(_e,Q),oe||(he=[ee(u,"input",t[21]),ee(u,"input",t[22]),ee(d,"mouseenter",t[23]),ee(d,"mouseleave",t[24]),ee(f,"input",t[25]),ee(f,"input",t[26]),ee(_,"mouseenter",t[27]),ee(_,"mouseleave",t[28]),ee(v,"input",t[29]),ee(v,"input",t[30]),ee(h,"mouseenter",t[31]),ee(h,"mouseleave",t[32]),ee(w,"input",t[33]),ee(w,"input",t[34]),ee(b,"mouseenter",t[35]),ee(b,"mouseleave",t[36]),ee(T,"input",t[37]),ee(T,"input",t[38]),ee(E,"mouseenter",t[39]),ee(E,"mouseleave",t[40]),ee(O,"input",t[41]),ee(O,"input",t[42]),ee(A,"mouseenter",t[43]),ee(A,"mouseleave",t[44]),ee(R,"input",t[45]),ee(R,"input",t[46]),ee(D,"mouseenter",t[47]),ee(D,"mouseleave",t[48]),ee(C,"input",t[49]),ee(C,"input",t[50]),ee(B,"mouseenter",t[51]),ee(B,"mouseleave",t[52]),ee(V,"mouseenter",t[53]),ee(V,"mouseleave",t[54]),ee(x,"mouseenter",t[55]),ee(x,"mouseleave",t[56]),ee(e,"blur",t[57],!0)],oe=!0)},p(ze,W){W[0]&1024&&i!==(i=ze[10]("props.margins")+"")&<(o,i),W[0]&1024&&l!==(l=ze[10]("props.paddings")+"")&<(a,l),W[0]&512&&(u.disabled=ze[9]),W[0]&16&&Ji(u.value)!==ze[4]&&Hn(u,ze[4]),W[0]&512&&(f.disabled=ze[9]),W[0]&1&&Ji(f.value)!==ze[0]&&Hn(f,ze[0]),W[0]&512&&(v.disabled=ze[9]),W[0]&128&&Ji(v.value)!==ze[7]&&Hn(v,ze[7]),W[0]&512&&(w.disabled=ze[9]),W[0]&8&&Ji(w.value)!==ze[3]&&Hn(w,ze[3]),W[0]&512&&(T.disabled=ze[9]),W[0]&2&&Ji(T.value)!==ze[1]&&Hn(T,ze[1]),W[0]&512&&(O.disabled=ze[9]),W[0]&32&&Ji(O.value)!==ze[5]&&Hn(O,ze[5]),W[0]&512&&(R.disabled=ze[9]),W[0]&4&&Ji(R.value)!==ze[2]&&Hn(R,ze[2]),W[0]&512&&(C.disabled=ze[9]),W[0]&64&&Ji(C.value)!==ze[6]&&Hn(C,ze[6]),W[0]&1024&&G!==(G=ze[10]("inset_content")+"")&<(Q,G),W[0]&256&&te(e,"margins-paddings-prop_hover_margins",ze[8]==="margins"),W[0]&256&&te(e,"margins-paddings-prop_hover_paddings",ze[8]==="paddings"),W[0]&512&&te(e,"margins-paddings-prop_disabled",ze[9])},i:tn,o:tn,d(ze){ze&&F(e),oe=!1,qn(he)}}}function d0(t,e){if(!t)return{top:void 0,right:void 0,bottom:void 0,left:void 0};const n=t.top,i=t.bottom,o=(e==="ltr"?t.start:t.end)??t.left,r=(e==="ltr"?t.end:t.start)??t.right;return{top:n,right:r,bottom:i,left:o}}function wre(t,e,n){let i,o,r,s,l,a;const{directionSelector:c,state:d}=wt(An),{l10n:u}=wt(oi);Pe(t,u,(Vt=>n(10,a=Vt)));const{direction:p,highlightMode:_,readOnly:f}=d;Pe(t,p,(Vt=>n(20,s=Vt))),Pe(t,_,(Vt=>n(8,r=Vt))),Pe(t,f,(Vt=>n(9,l=Vt)));let{item:m}=e,{processedJson:h}=e;const v=_i();let y=(i==null?void 0:i.top)??void 0,b=(i==null?void 0:i.right)??void 0,w=(i==null?void 0:i.bottom)??void 0,k=(i==null?void 0:i.left)??void 0,E=(o==null?void 0:o.top)??void 0,T=(o==null?void 0:o.right)??void 0,j=(o==null?void 0:o.bottom)??void 0,A=(o==null?void 0:o.left)??void 0;function O(Vt,ln){const sn=d0(Vt,ln);n(0,y=sn.top),n(1,b=sn.right),n(2,w=sn.bottom),n(3,k=sn.left)}function M(Vt,ln){const sn=d0(Vt,ln);n(4,E=sn.top),n(5,T=sn.right),n(6,j=sn.bottom),n(7,A=sn.left)}function D(Vt){if(Vt.top||Vt.right||Vt.bottom||Vt.left)return c?{top:Vt.top,bottom:Vt.bottom,start:s==="ltr"?Vt.left:Vt.right,end:s==="ltr"?Vt.right:Vt.left}:Vt}function R(Vt){Mi(_,r=Vt,r),Vt==="paddings"?(n(19,i=D({top:y??void 0,right:b??void 0,bottom:w??void 0,left:k??void 0})),v("change",{values:[{prop:"paddings",value:i}],item:m})):(n(18,o=D({top:E??void 0,right:T??void 0,bottom:j??void 0,left:A??void 0})),v("change",{values:[{prop:"margins",value:o}],item:m}))}function U(){E=Ji(this.value),n(4,E)}const B=()=>R("margins"),C=()=>Mi(_,r="margins",r),q=()=>Mi(_,r="",r);function V(){y=Ji(this.value),n(0,y)}const Y=()=>R("paddings"),x=()=>Mi(_,r="paddings",r),de=()=>Mi(_,r="",r);function _e(){A=Ji(this.value),n(7,A)}const G=()=>R("margins"),Q=()=>Mi(_,r="margins",r),oe=()=>Mi(_,r="",r);function he(){k=Ji(this.value),n(3,k)}const ze=()=>R("paddings"),W=()=>Mi(_,r="paddings",r),Ke=()=>Mi(_,r="",r);function at(){b=Ji(this.value),n(1,b)}const Te=()=>R("paddings"),ot=()=>Mi(_,r="paddings",r),J=()=>Mi(_,r="",r);function ue(){T=Ji(this.value),n(5,T)}const fe=()=>R("margins"),Qe=()=>Mi(_,r="margins",r),ye=()=>Mi(_,r="",r);function Ee(){w=Ji(this.value),n(2,w)}const Ye=()=>R("paddings"),vt=()=>Mi(_,r="paddings",r),ne=()=>Mi(_,r="",r);function pe(){j=Ji(this.value),n(6,j)}const kt=()=>R("margins"),$e=()=>Mi(_,r="margins",r),et=()=>Mi(_,r="",r),le=()=>Mi(_,r="margins",r),Ve=()=>Mi(_,r="",r),Xe=()=>Mi(_,r="paddings",r),xe=()=>Mi(_,r="",r),jt=()=>Mi(_,r="",r);return t.$$set=Vt=>{"item"in Vt&&n(16,m=Vt.item),"processedJson"in Vt&&n(17,h=Vt.processedJson)},t.$$.update=()=>{t.$$.dirty[0]&131072&&n(19,i=Lo(h,"paddings")),t.$$.dirty[0]&131072&&n(18,o=Lo(h,"margins")),t.$$.dirty[0]&1572864&&O(i,s),t.$$.dirty[0]&1310720&&M(o,s)},[y,b,w,k,E,T,j,A,r,l,a,u,p,_,f,R,m,h,o,i,s,U,B,C,q,V,Y,x,de,_e,G,Q,oe,he,ze,W,Ke,at,Te,ot,J,ue,fe,Qe,ye,Ee,Ye,vt,ne,pe,kt,$e,et,le,Ve,Xe,xe,jt]}class $re extends Gt{constructor(e){super(),Yt(this,e,wre,yre,Rt,{item:16,processedJson:17},null,[-1,-1,-1])}}function kre(t){let e,n,i,o,r;return{c(){e=S("div"),n=X(),i=S("div"),o=X(),r=S("div"),g(e,"class","background2-item__preview-bg svelte-1w8sika"),g(i,"class","background2-item__preview-value svelte-1w8sika"),je(i,"background-image",t[3]),g(r,"class","background2-item__preview-inset svelte-1w8sika")},m(s,l){N(s,e,l),N(s,n,l),N(s,i,l),N(s,o,l),N(s,r,l)},p(s,l){l[0]&8&&je(i,"background-image",s[3])},i:tn,o:tn,d(s){s&&(F(e),F(n),F(i),F(o),F(r))}}}function jre(t){let e,n;return e=new Ys({props:{color:t[0].color,mix:"background2-item__preview-inner"}}),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o[0]&1&&(r.color=i[0].color),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Sre(t){let e,n,i,o,r,s,l,a,c;function d(h,v){return h[0].type==="solid"?zre:Tre}let u=d(t),p=u(t);function _(h,v){return h[0].type==="gradient"?Mre:Ore}let f=_(t),m=f(t);return{c(){p.c(),e=X(),n=S("div"),i=X(),o=S("input"),s=X(),l=S("div"),m.c(),g(n,"class","background2-item__separator svelte-1w8sika"),g(o,"class","background2-item__second-input svelte-1w8sika"),g(o,"type","number"),g(o,"autocomplete","off"),g(o,"autocorrect","off"),g(o,"autocapitalize","off"),g(o,"spellcheck","false"),g(o,"min","0"),o.disabled=t[10],g(o,"max",t[7]),g(o,"title",r=t[11](`background.${t[0].type}_second_title`)),g(l,"class","background2-item__symbol svelte-1w8sika")},m(h,v){p.m(h,v),N(h,e,v),N(h,n,v),N(h,i,v),N(h,o,v),Hn(o,t[5]),N(h,s,v),N(h,l,v),m.m(l,null),a||(c=[ee(o,"input",t[23]),ee(o,"input",t[16]),ee(o,"focus",t[17]),ee(o,"blur",t[18])],a=!0)},p(h,v){u===(u=d(h))&&p?p.p(h,v):(p.d(1),p=u(h),p&&(p.c(),p.m(e.parentNode,e))),v[0]&1024&&(o.disabled=h[10]),v[0]&128&&g(o,"max",h[7]),v[0]&2049&&r!==(r=h[11](`background.${h[0].type}_second_title`))&&g(o,"title",r),v[0]&32&&Ji(o.value)!==h[5]&&Hn(o,h[5]),f!==(f=_(h))&&(m.d(1),m=f(h),m&&(m.c(),m.m(l,null)))},d(h){h&&(F(e),F(n),F(i),F(o),F(s),F(l)),p.d(h),m.d(),a=!1,qn(c)}}}function Cre(t){let e;function n(r,s){return r[1]?Ire:Pre}let i=n(t),o=i(t);return{c(){e=S("div"),o.c(),g(e,"class","background2-item__palette-name svelte-1w8sika")},m(r,s){N(r,e,s),o.m(e,null)},p(r,s){i===(i=n(r))&&o?o.p(r,s):(o.d(1),o=i(r),o&&(o.c(),o.m(e,null)))},d(r){r&&F(e),o.d()}}}function Tre(t){let e,n,i;function o(l,a){return l[0].type==="gradient"?Are:Ere}let r=o(t),s=r(t);return{c(){e=S("button"),s.c(),g(e,"class","background2-item__text svelte-1w8sika")},m(l,a){N(l,e,a),s.m(e,null),n||(i=ee(e,"click",t[19]),n=!0)},p(l,a){r===(r=o(l))&&s?s.p(l,a):(s.d(1),s=r(l),s&&(s.c(),s.m(e,null)))},d(l){l&&F(e),s.d(),n=!1,i()}}}function zre(t){let e,n,i,o;return{c(){e=S("input"),g(e,"class","background2-item__input svelte-1w8sika"),g(e,"type","text"),g(e,"autocomplete","off"),g(e,"autocorrect","off"),g(e,"autocapitalize","off"),g(e,"spellcheck","false"),g(e,"maxlength","7"),e.disabled=t[10],g(e,"title",n=t[11](`background.${t[0].type}_first_title`))},m(r,s){N(r,e,s),t[21](e),Hn(e,t[4]),i||(o=[ee(e,"input",t[22]),ee(e,"input",t[16])],i=!0)},p(r,s){s[0]&1024&&(e.disabled=r[10]),s[0]&2049&&n!==(n=r[11](`background.${r[0].type}_first_title`))&&g(e,"title",n),s[0]&16&&e.value!==r[4]&&Hn(e,r[4])},d(r){r&&F(e),t[21](null),i=!1,qn(o)}}}function Ere(t){let e=t[11]("background.image")+"",n;return{c(){n=Ze(e)},m(i,o){N(i,n,o)},p(i,o){o[0]&2048&&e!==(e=i[11]("background.image")+"")&<(n,e)},d(i){i&&F(n)}}}function Are(t){let e=t[11]("background.gradient")+"",n;return{c(){n=Ze(e)},m(i,o){N(i,n,o)},p(i,o){o[0]&2048&&e!==(e=i[11]("background.gradient")+"")&<(n,e)},d(i){i&&F(n)}}}function Ore(t){let e;return{c(){e=Ze("%")},m(n,i){N(n,e,i)},d(n){n&&F(e)}}}function Mre(t){let e;return{c(){e=Ze("°")},m(n,i){N(n,e,i)},d(n){n&&F(e)}}}function Pre(t){let e;return{c(){e=Ze(t[6])},m(n,i){N(n,e,i)},p(n,i){i[0]&64&<(e,n[6])},d(n){n&&F(e)}}}function Ire(t){let e=t[1].name+"",n;return{c(){n=Ze(e)},m(i,o){N(i,n,o)},p(i,o){o[0]&2&&e!==(e=i[1].name+"")&<(n,e)},d(i){i&&F(n)}}}function Dre(t){let e,n,i,o,r,s,l,a;const c=[jre,kre],d=[];function u(m,h){return m[0].type==="solid"?0:1}i=u(t),o=d[i]=c[i](t);function p(m,h){return m[0].type==="solid"&&m[6]?Cre:Sre}let _=p(t),f=_(t);return{c(){e=S("div"),n=S("button"),o.c(),r=X(),f.c(),g(n,"class","background2-item__preview svelte-1w8sika"),g(e,"class","background2-item svelte-1w8sika"),g(e,"title",t[8]),te(e,"background2-item_readonly",t[10]),te(e,"background2-item_error",!!t[8])},m(m,h){N(m,e,h),$(e,n),d[i].m(n,null),$(e,r),f.m(e,null),t[24](e),s=!0,l||(a=ee(n,"click",t[19]),l=!0)},p(m,h){let v=i;i=u(m),i===v?d[i].p(m,h):(It(),H(d[v],1,1,(()=>{d[v]=null})),Dt(),o=d[i],o?o.p(m,h):(o=d[i]=c[i](m),o.c()),I(o,1),o.m(n,null)),_===(_=p(m))&&f?f.p(m,h):(f.d(1),f=_(m),f&&(f.c(),f.m(e,null))),(!s||h[0]&256)&&g(e,"title",m[8]),(!s||h[0]&1024)&&te(e,"background2-item_readonly",m[10]),(!s||h[0]&256)&&te(e,"background2-item_error",!!m[8])},i(m){s||(I(o),s=!0)},o(m){H(o),s=!1},d(m){m&&F(e),d[i].d(),f.d(),t[24](null),l=!1,a()}}}function Vre(t,e,n){let i,o,r,s,{value:l}=e;const{l10nString:a}=wt(oi);Pe(t,a,(x=>n(11,r=x)));const{state:c,background2Dialog:d}=wt(An),{palette:u,previewThemeStore:p,readOnly:_,highlightMode:f,highlightGradientAngle:m}=c;Pe(t,u,(x=>n(26,s=x))),Pe(t,p,(x=>n(20,o=x))),Pe(t,_,(x=>n(10,i=x)));const h=_i();let v,y="",b="",w="",k="",E=null,T=100,j=!1,A="",O;function M(x){if(!(j||O===document.activeElement))if(n(8,A=""),x.type==="solid")if(n(3,y=""),dr(x.color))n(6,k=yr(x.color)),n(1,E=s.find((de=>de.id===k))||null),E||n(8,A=r("missingPaletteColor").replace("%s",(()=>k)));else{n(6,k=""),n(1,E=null);const de=x.color&&_r(x.color);de?(n(5,w=String(Math.round(de.a/255*100))),de.a=255,n(4,b=ms(de))):(n(4,b=""),n(5,w="")),n(7,T=100)}else x.type==="gradient"?(n(4,b=""),n(5,w=String(x.angle||0)),Array.isArray(x.colors)?n(3,y=`linear-gradient(${90-(x.angle||0)}deg, ${x.colors.map((de=>{const _e=_r(de);return _e?_a(_e):"transparent"})).join(", ")})`):n(3,y=""),n(7,T=360)):x.type==="image"&&(n(4,b=""),n(5,w=String(Math.round((x.alpha??1)*100))),n(3,y=`url("${x.image_url}")`),n(7,T=100))}function D(){if(l.type==="solid"){const x=_r(b);x&&(x.a=Math.round(Number(w)*255/100),j=!0,n(0,l.color=ms(x),l),h("change"))}else l.type==="gradient"?(j=!0,n(0,l.angle=Number(w),l),m.set(l.angle),h("change")):l.type==="image"&&(j=!0,n(0,l.alpha=Number(w)/100,l),h("change"))}function R(){l.type==="gradient"&&(f.set("gradient"),m.set(l.angle||0))}function U(){f.set("")}function B(){d().show({value:l,target:v,readOnly:i,callback(x){n(0,l=x),h("change")}})}gs((()=>{j&&(j=!1)})),Bs((()=>{d().hide()}));function C(x){pt[x?"unshift":"push"]((()=>{O=x,n(9,O)}))}function q(){b=this.value,n(4,b)}function V(){w=Ji(this.value),n(5,w)}function Y(x){pt[x?"unshift":"push"]((()=>{v=x,n(2,v)}))}return t.$$set=x=>{"value"in x&&n(0,l=x.value)},t.$$.update=()=>{t.$$.dirty[0]&1&&M(l),t.$$.dirty[0]&1048579&&l.type==="solid"&&E&&o&&n(3,y=`linear-gradient(to bottom, ${E[o]}, ${E[o]})`)},[l,E,v,y,b,w,k,T,A,O,i,r,a,u,p,_,D,R,U,B,o,C,q,V,Y]}class Lre extends Gt{constructor(e){super(),Yt(this,e,Vre,Dre,Rt,{value:0},null,[-1,-1])}}function u0(t){let e,n;return e=new Gs({props:{cls:"background2__add",title:t[2]("add_background"),disabled:t[1],slim:!0}}),e.$on("click",t[6]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&4&&(r.title=i[2]("add_background")),o&2&&(r.disabled=i[1]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Fre(t){let e,n,i,o,r,s;function l(d){t[8](d)}let a={itemView:Lre,readOnly:t[1]};t[0]!==void 0&&(a.values=t[0]),i=new $a({props:a}),pt.push((()=>Gn(i,"values",l))),i.$on("change",t[5]),i.$on("reorder",t[5]);let c=!t[1]&&u0(t);return{c(){e=S("div"),n=S("div"),Ie(i.$$.fragment),r=X(),c&&c.c(),g(n,"class","background2__list svelte-69jb95"),g(e,"class","background2")},m(d,u){N(d,e,u),$(e,n),Oe(i,n,null),$(e,r),c&&c.m(e,null),s=!0},p(d,[u]){const p={};u&2&&(p.readOnly=d[1]),!o&&u&1&&(o=!0,p.values=d[0],Xn((()=>o=!1))),i.$set(p),d[1]?c&&(It(),H(c,1,1,(()=>{c=null})),Dt()):c?(c.p(d,u),u&2&&I(c,1)):(c=u0(d),c.c(),I(c,1),c.m(e,null))},i(d){s||(I(i.$$.fragment,d),I(c),s=!0)},o(d){H(i.$$.fragment,d),H(c),s=!1},d(d){d&&F(e),Me(i),c&&c.d()}}}function Nre(t,e,n){let i,o,{value:r}=e,{item:s}=e;const{l10nString:l}=wt(oi);Pe(t,l,(f=>n(2,o=f)));const{state:a}=wt(An),{readOnly:c}=a;Pe(t,c,(f=>n(1,i=f)));const d=_i();function u(){i||d("change",{item:s,value:r})}function p(){i||d("change",{item:s,value:[...r||[],{type:"solid",color:"#000"}]})}function _(f){r=f,n(0,r)}return t.$$set=f=>{"value"in f&&n(0,r=f.value),"item"in f&&n(7,s=f.item)},[r,i,o,l,c,u,p,s,_]}class qre extends Gt{constructor(e){super(),Yt(this,e,Nre,Fre,Hc,{value:0,item:7})}}const Ic="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M9%2018.5h8v2H9zm0-7h8v2H9zM9%2022h14v2H9zm0-7h14v2H9zm0-7h14v2H9z'/%3e%3c/svg%3e",Dc="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20d='M9%208v2h14V8H9zm0%203.5v2h8v-2H9zM9%2015v2h7v-2H9zm0%203.5v2h7v-2H9zM9%2022v2h7v-2H9z'%20style='fill:%23fff;fill-opacity:1'/%3e%3cpath%20d='M20%2014v12h7'%20style='fill:none;stroke:%23fff;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'/%3e%3c/svg%3e",al="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M12%2018.5h8v2h-8zm0-7h8v2h-8zM9%2022h14v2H9zm0-7h14v2H9zm0-7h14v2H9z'/%3e%3c/svg%3e",Vc="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M15%2018.5h8v2h-8zm0-7h8v2h-8zM9%2022h14v2H9zm0-7h14v2H9zm0-7h14v2H9z'/%3e%3c/svg%3e",Lc="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20d='M20%2014v12h7'%20style='fill:none;stroke:%23fff;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'/%3e%3cpath%20d='M9%208v2h14V8Zm4%207v2h3v-2zm2%203.5v2h1v-2zM9%2022v2h7v-2z'%20style='fill:%23fff;fill-opacity:1'/%3e%3c/svg%3e";function Rre(t){let e,n,i;function o(s){t[8](s)}let r={name:t[1].prop,theme:"tertiary",defaultValue:"left",disabled:t[2],options:t[4]?[{text:t[3]("props.align_start"),value:"start",icon:Dc},{text:t[3]("props.align_center"),value:"center",icon:al},{text:t[3]("props.align_end"),value:"end",icon:Lc}]:[{text:t[3]("props.align_left"),value:"left",icon:Ic},{text:t[3]("props.align_center"),value:"center",icon:al},{text:t[3]("props.align_right"),value:"right",icon:Vc}]};return t[0]!==void 0&&(r.value=t[0]),e=new Dl({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[7]),{c(){Ie(e.$$.fragment)},m(s,l){Oe(e,s,l),i=!0},p(s,[l]){const a={};l&2&&(a.name=s[1].prop),l&4&&(a.disabled=s[2]),l&8&&(a.options=s[4]?[{text:s[3]("props.align_start"),value:"start",icon:Dc},{text:s[3]("props.align_center"),value:"center",icon:al},{text:s[3]("props.align_end"),value:"end",icon:Lc}]:[{text:s[3]("props.align_left"),value:"left",icon:Ic},{text:s[3]("props.align_center"),value:"center",icon:al},{text:s[3]("props.align_right"),value:"right",icon:Vc}]),!n&&l&1&&(n=!0,a.value=s[0],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Me(e,s)}}}function Bre(t,e,n){let i,o,{value:r}=e,{item:s}=e;const l=_i(),{state:a,directionSelector:c}=wt(An),{l10n:d}=wt(oi);Pe(t,d,(f=>n(3,o=f)));const{readOnly:u}=a;Pe(t,u,(f=>n(2,i=f)));function p(){l("change",{value:r,item:s})}function _(f){r=f,n(0,r)}return t.$$set=f=>{"value"in f&&n(0,r=f.value),"item"in f&&n(1,s=f.item)},[r,s,i,o,c,d,u,p,_]}class Hre extends Gt{constructor(e){super(),Yt(this,e,Bre,Rre,Rt,{value:0,item:1})}}function p0(t,e,n){const i=t.slice();return i[8]=e[n],i}function _0(t){let e,n,i,o,r,s,l,a,c=`url(${ho(t[8].icon||(t[2]==="light"?t[8].iconLight:t[8].iconDark)||"")})`,d,u,p;function _(...f){return t[5](t[8],...f)}return{c(){e=S("div"),n=S("input"),r=X(),s=S("div"),l=X(),a=S("div"),d=X(),g(n,"class","checkbox-group__input svelte-194hox6"),g(n,"type","checkbox"),n.checked=i=t[8].value,g(n,"data-custom-tooltip",o=t[8].text),n.disabled=t[1],g(s,"class","checkbox-group__item-bg svelte-194hox6"),g(a,"class","checkbox-group__item-icon svelte-194hox6"),te(a,"checkbox-group__item-icon_both-themes",!!t[8].icon),je(a,"background-image",c),g(e,"class","checkbox-group__item svelte-194hox6")},m(f,m){N(f,e,m),$(e,n),$(e,r),$(e,s),$(e,l),$(e,a),$(e,d),u||(p=ee(n,"change",_),u=!0)},p(f,m){t=f,m&1&&i!==(i=t[8].value)&&(n.checked=i),m&1&&o!==(o=t[8].text)&&g(n,"data-custom-tooltip",o),m&2&&(n.disabled=t[1]),m&1&&te(a,"checkbox-group__item-icon_both-themes",!!t[8].icon),m&5&&c!==(c=`url(${ho(t[8].icon||(t[2]==="light"?t[8].iconLight:t[8].iconDark)||"")})`)&&je(a,"background-image",c)},d(f){f&&F(e),u=!1,p()}}}function Ure(t){let e,n=an(t[0]),i=[];for(let o=0;o<n.length;o+=1)i[o]=_0(p0(t,n,o));return{c(){e=S("div");for(let o=0;o<i.length;o+=1)i[o].c();g(e,"class","checkbox-group svelte-194hox6"),te(e,"checkbox-group_disabled",t[1])},m(o,r){N(o,e,r);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(e,null)},p(o,[r]){if(r&23){n=an(o[0]);let s;for(s=0;s<n.length;s+=1){const l=p0(o,n,s);i[s]?i[s].p(l,r):(i[s]=_0(l),i[s].c(),i[s].m(e,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length}r&2&&te(e,"checkbox-group_disabled",o[1])},i:tn,o:tn,d(o){o&&F(e),Bi(i,o)}}}function Jre(t,e,n){let i,{list:o}=e,{disabled:r=!1}=e;const{state:s}=wt(An),{themeStore:l}=s;Pe(t,l,(u=>n(2,i=u)));const a=_i();function c(u,p){a("change",{name:u,value:p.target.checked})}const d=(u,p)=>c(u.name,p);return t.$$set=u=>{"list"in u&&n(0,o=u.list),"disabled"in u&&n(1,r=u.disabled)},[o,r,i,l,c,d]}class Wre extends Gt{constructor(e){super(),Yt(this,e,Jre,Ure,Rt,{list:0,disabled:1})}}const f0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M12.993%209H11v6.908c0%20.669.128%201.263.385%201.783.256.51.606.934%201.049%201.274.443.34.967.6%201.573.78A7.49%207.49%200%200%200%2016%2020v-1.5c-.897%200-1.474-.12-2.01-.545-.525-.424-.997-.909-.997-2.27V9Zm6.014%200H21v6.908c0%20.669-.128%201.263-.385%201.783a3.65%203.65%200%200%201-1.049%201.274c-.442.34-.967.6-1.573.78A7.49%207.49%200%200%201%2016%2020v-1.5c.897%200%201.474-.12%202.01-.545.525-.424.997-.909.997-2.27V9ZM11%2021.5h10V23H11z'/%3e%3c/svg%3e",m0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M10%2015.5h12V17H10z'/%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M18.614%2015.912c.248.164.467.36.66.588h-5.558a5.172%205.172%200%200%201-1.418-.694%203.524%203.524%200%200%201-.93-1.06c-.234-.436-.35-.983-.35-1.643%200-1.165.415-2.054%201.245-2.667.83-.624%202.024-.936%203.58-.936.455%200%20.859.03%201.21.088.35.047.666.112.947.195.28.07.52.153.72.247.21.082.391.165.543.247v1.89c-.842-.553-1.965-.83-3.368-.83-.983%200-1.69.147-2.123.441a1.347%201.347%200%200%200-.632%201.184c0%20.318.07.583.21.795.141.2.334.37.58.512.245.13.526.241.842.336.316.082.65.165%201%20.247a26%2026%200%200%201%201.491.406c.503.153.953.371%201.351.654ZM15.105%2022.5a9.083%209.083%200%200%201-1.456-.106%206.957%206.957%200%200%201-1.158-.283A5.15%205.15%200%200%201%2011%2021.317v-1.89c.175.14.403.288.684.441.293.142.614.271.965.389.363.117.749.218%201.158.3.41.07.83.106%201.263.106.842%200%201.515-.135%202.018-.406.503-.271.754-.719.754-1.343%200-.33-.064-.6-.193-.812a1.381%201.381%200%200%200-.068-.102h2.37c.033.217.049.451.049.702%200%20.73-.14%201.337-.421%201.82a3.243%203.243%200%200%201-1.088%201.166%204.744%204.744%200%200%201-1.561.635%209.227%209.227%200%200%201-1.825.177Z'%20clip-rule='evenodd'/%3e%3c/svg%3e";function Kre(t){let e,n;return e=new Wre({props:{disabled:t[1],list:[{text:t[2]("props.underline"),name:"underline",value:t[0].underline==="single",icon:f0},{text:t[2]("props.strike"),name:"strike",value:t[0].strike==="single",icon:m0}]}}),e.$on("change",t[5]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,[o]){const r={};o&2&&(r.disabled=i[1]),o&5&&(r.list=[{text:i[2]("props.underline"),name:"underline",value:i[0].underline==="single",icon:f0},{text:i[2]("props.strike"),name:"strike",value:i[0].strike==="single",icon:m0}]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Yre(t,e,n){let i,o,{processedJson:r}=e,{item:s}=e;const l=_i(),{l10n:a}=wt(oi);Pe(t,a,(p=>n(2,o=p)));const{state:c}=wt(An),{readOnly:d}=c;Pe(t,d,(p=>n(1,i=p)));function u(p){l("change",{item:s,values:[{prop:p.detail.name,value:p.detail.value?"single":void 0}]})}return t.$$set=p=>{"processedJson"in p&&n(0,r=p.processedJson),"item"in p&&n(6,s=p.item)},[r,i,o,a,d,u,s]}class Gre extends Gt{constructor(e){super(),Yt(this,e,Yre,Kre,Rt,{processedJson:0,item:6})}}function zV(t,e){const n={};if(!t)return{type:"url",url:""};if(t.typed)return{type:"typed:"+t.typed.type,typedParams:t.typed};const i=t==null?void 0:t.url;if(!i)return{type:"url",url:""};try{const o=new URL(i),r=new URLSearchParams(o.search);for(const s of r.keys())n[s]=r.get(s)}catch{return{type:"url",url:i}}for(let o=0;o<e.length;++o){const r=e[o];if(i.startsWith(r.baseUrl)){const s=[];if(r.args)for(const l of r.args)s.push({desc:l,value:n[l.name]||""});return{type:`custom:${o}`,desc:r,url:i,args:s}}}return{type:"url",url:i}}function Xre(t){let e,n,i,o,r,s,l,a;return{c(){e=S("button"),n=S("div"),i=Ze(t[1]),o=X(),r=S("div"),s=Ze(t[2]),g(n,"class","actions2-item__type svelte-zd6kgx"),g(r,"class","actions2-item__text svelte-zd6kgx"),g(e,"class","actions2-item svelte-zd6kgx"),te(e,"actions2-item_readonly",t[3])},m(c,d){N(c,e,d),$(e,n),$(n,i),$(e,o),$(e,r),$(r,s),t[10](e),l||(a=ee(e,"click",t[8]),l=!0)},p(c,[d]){d&2&<(i,c[1]),d&4&<(s,c[2]),d&8&&te(e,"actions2-item_readonly",c[3])},i:tn,o:tn,d(c){c&&F(e),t[10](null),l=!1,a()}}}function Zre(t,e,n){let i,o,r,s,{value:l}=e;const{l10n:a,lang:c}=wt(oi);Pe(t,a,(k=>n(11,o=k))),Pe(t,c,(k=>n(12,r=k)));const{state:d,actions2Dialog:u}=wt(An),{customActions:p,readOnly:_}=d;Pe(t,p,(k=>n(13,s=k))),Pe(t,_,(k=>n(3,i=k)));const f=_i();let m,h="",v="";function y(k){var T,j,A,O,M,D,R,U;const E=zV(k,s);n(1,h=""),E.type==="url"?(n(1,h=o("actions-url")),n(2,v=E.url||"")):E.type.startsWith("typed:")?E.type==="typed:focus_element"?(n(1,h=o("actions.focus_element")),n(2,v=((T=E.typedParams)==null?void 0:T.element_id)||"")):E.type==="typed:clear_focus"?(n(1,h=o("actions.clear_focus")),n(2,v="")):E.type==="typed:set_variable"?(n(1,h=o("actions.set_variable")),n(2,v=((j=E.typedParams)==null?void 0:j.variable_name)||"")):E.type==="typed:array_insert_value"?(n(1,h=o("actions.array_insert_value")),n(2,v=((A=E.typedParams)==null?void 0:A.variable_name)||"")):E.type==="typed:array_remove_value"?(n(1,h=o("actions.array_remove_value")),n(2,v=((O=E.typedParams)==null?void 0:O.variable_name)||"")):E.type==="typed:dict_set_value"?(n(1,h=o("actions.dict_set_value")),n(2,v=((M=E.typedParams)==null?void 0:M.variable_name)||"")):E.type==="typed:array_set_value"?(n(1,h=o("actions.array_set_value")),n(2,v=((D=E.typedParams)==null?void 0:D.variable_name)||"")):E.type==="typed:copy_to_clipboard"?(n(1,h=o("actions.copy_to_clipboard")),n(2,v="")):E.type==="typed:show_tooltip"?(n(1,h=o("actions.show_tooltip")),n(2,v=((R=E.typedParams)==null?void 0:R.id)||"")):E.type==="typed:hide_tooltip"?(n(1,h=o("actions.hide_tooltip")),n(2,v=((U=E.typedParams)==null?void 0:U.id)||"")):(n(1,h=o("actions-unknown")),n(2,v=E.url||"")):E.desc?(n(1,h=E.desc.text[r]||E.desc.baseUrl),n(2,v="")):(n(1,h=o("actions-unknown")),n(2,v=E.url||""))}function b(){u().show({value:l,target:m,readOnly:i,callback(k){n(9,l=k),f("change")}})}Bs((()=>{u().hide()}));function w(k){pt[k?"unshift":"push"]((()=>{m=k,n(0,m)}))}return t.$$set=k=>{"value"in k&&n(9,l=k.value)},t.$$.update=()=>{t.$$.dirty&512&&y(l)},[m,h,v,i,a,c,p,_,b,l,w]}class xre extends Gt{constructor(e){super(),Yt(this,e,Zre,Xre,Rt,{value:9})}}function g0(t){let e,n;return e=new Gs({props:{cls:"actions2__add",title:t[2]("add_background"),disabled:t[1],$$slots:{default:[Qre]},$$scope:{ctx:t}}}),e.$on("click",t[6]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&4&&(r.title=i[2]("add_background")),o&2&&(r.disabled=i[1]),o&32772&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Qre(t){let e=t[2]("add_action")+"",n;return{c(){n=Ze(e)},m(i,o){N(i,n,o)},p(i,o){o&4&&e!==(e=i[2]("add_action")+"")&<(n,e)},d(i){i&&F(n)}}}function ese(t){let e,n,i,o,r,s;function l(d){t[11](d)}let a={itemView:xre,readOnly:t[1]};t[0]!==void 0&&(a.values=t[0]),i=new $a({props:a}),pt.push((()=>Gn(i,"values",l))),i.$on("change",t[5]),i.$on("reorder",t[5]);let c=!t[1]&&g0(t);return{c(){e=S("div"),n=S("div"),Ie(i.$$.fragment),r=X(),c&&c.c(),g(n,"class","actions2__list svelte-1op9aiu"),g(e,"class","actions2")},m(d,u){N(d,e,u),$(e,n),Oe(i,n,null),$(e,r),c&&c.m(e,null),s=!0},p(d,[u]){const p={};u&2&&(p.readOnly=d[1]),!o&&u&1&&(o=!0,p.values=d[0],Xn((()=>o=!1))),i.$set(p),d[1]?c&&(It(),H(c,1,1,(()=>{c=null})),Dt()):c?(c.p(d,u),u&2&&I(c,1)):(c=g0(d),c.c(),I(c,1),c.m(e,null))},i(d){s||(I(i.$$.fragment,d),I(c),s=!0)},o(d){H(i.$$.fragment,d),H(c),s=!1},d(d){d&&F(e),Me(i),c&&c.d()}}}function tse(t,e,n){let i,o,r,{value:s}=e,{item:l}=e,{processedJson:a=void 0}=e;const{l10nString:c}=wt(oi);Pe(t,c,(y=>n(2,r=y)));const{actionLogUrlVariable:d,state:u}=wt(An),{readOnly:p}=u;Pe(t,p,(y=>n(1,o=y)));const _=_i();let f=s||[];function m(){if(!o){n(7,s=f);const y=[{prop:l.prop||"actions",value:s}];l.aloneProp&&y.push({prop:l.aloneProp,value:void 0}),_("change",{item:l,values:y})}}function h(){if(!o){const y=[{prop:l.prop||"actions",value:[...f||[],{log_id:"action_id",url:"https://",log_url:d?`@{${d}}`:void 0}]}];l.aloneProp&&y.push({prop:l.aloneProp,value:void 0}),_("change",{item:l,values:y})}}function v(y){f=y,n(0,f),n(7,s),n(10,i),n(9,a),n(8,l)}return t.$$set=y=>{"value"in y&&n(7,s=y.value),"item"in y&&n(8,l=y.item),"processedJson"in y&&n(9,a=y.processedJson)},t.$$.update=()=>{t.$$.dirty&768&&n(10,i=a&&l.aloneProp?Lo(a,l.aloneProp):void 0),t.$$.dirty&1152&&n(0,f=s||i&&[i]||[])},[f,o,r,c,p,m,h,s,l,a,i,v]}class yu extends Gt{constructor(e){super(),Yt(this,e,tse,ese,Hc,{value:7,item:8,processedJson:9})}}function h0(t){let e,n=Ec(t[0])+"",i,o,r;return{c(){e=S("div"),i=Ze(n),g(e,"class","video-sources-item__size-label svelte-gjg9ya"),g(e,"data-custom-tooltip",o=t[3]?t[6]("file.too_big"):void 0),po((()=>t[11].call(e))),te(e,"video-sources-item__size-label_error",t[3]==="error"),te(e,"video-sources-item__size-label_warn",t[3]==="warn")},m(s,l){N(s,e,l),$(e,i),r=Su(e,t[11].bind(e))},p(s,l){l&1&&n!==(n=Ec(s[0])+"")&<(i,n),l&72&&o!==(o=s[3]?s[6]("file.too_big"):void 0)&&g(e,"data-custom-tooltip",o),l&8&&te(e,"video-sources-item__size-label_error",s[3]==="error"),l&8&&te(e,"video-sources-item__size-label_warn",s[3]==="warn")},d(s){s&&F(e),r()}}}function nse(t){let e,n,i,o,r=`${t[0]&&t[0]>0&&t[4]>0?t[4]:0}px`,s,l,a=t[0]&&t[0]>0&&h0(t);return{c(){e=S("button"),n=S("div"),i=Ze(t[2]),o=X(),a&&a.c(),g(n,"class","video-sources-item__url svelte-gjg9ya"),je(n,"--inline-size-width",r),g(e,"class","video-sources-item svelte-gjg9ya"),te(e,"video-sources-item_readonly",t[5])},m(c,d){N(c,e,d),$(e,n),$(n,i),$(n,o),a&&a.m(n,null),t[12](e),s||(l=ee(e,"click",t[9]),s=!0)},p(c,[d]){d&4&<(i,c[2]),c[0]&&c[0]>0?a?a.p(c,d):(a=h0(c),a.c(),a.m(n,null)):a&&(a.d(1),a=null),d&17&&r!==(r=`${c[0]&&c[0]>0&&c[4]>0?c[4]:0}px`)&&je(n,"--inline-size-width",r),d&32&&te(e,"video-sources-item_readonly",c[5])},i:tn,o:tn,d(c){c&&F(e),a&&a.d(),t[12](null),s=!1,l()}}}function ise(t,e,n){let i,o,{value:r}=e;const{state:s,videoSource2Dialog:l,warnFileLimit:a,errorFileLimit:c}=wt(An),{l10nString:d}=wt(oi);Pe(t,d,(E=>n(6,o=E)));const{readOnly:u}=s;Pe(t,u,(E=>n(5,i=E)));const p=_i();let _,f="",m,h="",v=0;function y(E){n(2,f=E.url||"")}function b(){l().show({value:r,target:_,readOnly:i,callback(E){n(10,r=E),p("change")}})}Bs((()=>{l().hide()}));function w(){v=this.offsetWidth,n(4,v)}function k(E){pt[E?"unshift":"push"]((()=>{_=E,n(1,_)}))}return t.$$set=E=>{"value"in E&&n(10,r=E.value)},t.$$.update=()=>{t.$$.dirty&1024&&y(r),t.$$.dirty&1024&&ep(String(r.url),"video").then((E=>{n(0,m=E)})),t.$$.dirty&1&&n(3,h=bu(m,a,c))},[m,_,f,h,v,i,o,d,u,b,r,w,k]}class ose extends Gt{constructor(e){super(),Yt(this,e,ise,nse,Rt,{value:10})}}function rse(t){let e=t[2]("add_video")+"",n;return{c(){n=Ze(e)},m(i,o){N(i,n,o)},p(i,o){o&4&&e!==(e=i[2]("add_video")+"")&<(n,e)},d(i){i&&F(n)}}}function sse(t){let e,n,i,o,r,s,l;function a(d){t[8](d)}let c={itemView:ose,readOnly:t[1]};return t[0]!==void 0&&(c.values=t[0]),i=new $a({props:c}),pt.push((()=>Gn(i,"values",a))),i.$on("change",t[5]),i.$on("reorder",t[5]),s=new Gs({props:{cls:"video-sources__add",disabled:t[1],$$slots:{default:[rse]},$$scope:{ctx:t}}}),s.$on("click",t[6]),{c(){e=S("div"),n=S("div"),Ie(i.$$.fragment),r=X(),Ie(s.$$.fragment),g(n,"class","video-sources__list svelte-6lvgw7"),g(e,"class","video-sources")},m(d,u){N(d,e,u),$(e,n),Oe(i,n,null),$(e,r),Oe(s,e,null),l=!0},p(d,[u]){const p={};u&2&&(p.readOnly=d[1]),!o&&u&1&&(o=!0,p.values=d[0],Xn((()=>o=!1))),i.$set(p);const _={};u&2&&(_.disabled=d[1]),u&2052&&(_.$$scope={dirty:u,ctx:d}),s.$set(_)},i(d){l||(I(i.$$.fragment,d),I(s.$$.fragment,d),l=!0)},o(d){H(i.$$.fragment,d),H(s.$$.fragment,d),l=!1},d(d){d&&F(e),Me(i),Me(s)}}}function lse(t,e,n){let i,o,{value:r}=e,{item:s}=e;const{l10n:l}=wt(oi);Pe(t,l,(f=>n(2,o=f)));const{state:a}=wt(An),{readOnly:c}=a;Pe(t,c,(f=>n(1,i=f)));const d=_i();function u(){i||d("change",{item:s,value:r})}function p(){i||d("change",{item:s,value:[...r||[],{type:"video_source",url:""}]})}function _(f){r=f,n(0,r)}return t.$$set=f=>{"value"in f&&n(0,r=f.value),"item"in f&&n(7,s=f.item)},[r,i,o,l,c,u,p,s,_]}class ase extends Gt{constructor(e){super(),Yt(this,e,lse,sse,Hc,{value:0,item:7})}}function cse(t){let e,n;return e=new SV({props:{value:t[0],item:t[1],processedJson:t[2],parentProcessedJson:t[3],options:t[4],required:t[1].required}}),e.$on("change",t[7]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,[o]){const r={};o&1&&(r.value=i[0]),o&2&&(r.item=i[1]),o&4&&(r.processedJson=i[2]),o&8&&(r.parentProcessedJson=i[3]),o&16&&(r.options=i[4]),o&2&&(r.required=i[1].required),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function dse(t,e,n){let i,o,{value:r}=e,{item:s}=e,{processedJson:l=void 0}=e,{parentProcessedJson:a=void 0}=e;const{state:c}=wt(An),{customVariables:d}=c;Pe(t,d,(p=>n(6,o=p)));function u(p){mn.call(this,t,p)}return t.$$set=p=>{"value"in p&&n(0,r=p.value),"item"in p&&n(1,s=p.item),"processedJson"in p&&n(2,l=p.processedJson),"parentProcessedJson"in p&&n(3,a=p.parentProcessedJson)},t.$$.update=()=>{t.$$.dirty&64&&n(4,i=o.map((p=>({rawName:p.name,value:p.name}))))},[r,s,l,a,i,d,o,u]}class EV extends Gt{constructor(e){super(),Yt(this,e,dse,cse,Rt,{value:0,item:1,processedJson:2,parentProcessedJson:3})}}function use(t){let e,n,i,o,r;return{c(){e=S("button"),n=S("div"),i=Ze(t[1]),g(n,"class","select-options-item__text svelte-89z4y5"),g(e,"class","select-options-item svelte-89z4y5"),te(e,"select-options-item_readonly",t[2])},m(s,l){N(s,e,l),$(e,n),$(n,i),t[6](e),o||(r=ee(e,"click",t[4]),o=!0)},p(s,[l]){l&2&<(i,s[1]),l&4&&te(e,"select-options-item_readonly",s[2])},i:tn,o:tn,d(s){s&&F(e),t[6](null),o=!1,r()}}}function pse(t,e,n){let i,{value:o}=e;const{state:r,selectOptionsDialog:s}=wt(An),{readOnly:l}=r;Pe(t,l,(f=>n(2,i=f)));const a=_i();let c,d="";function u(f){n(1,d=f.text||f.value||"")}function p(){s().show({value:o,target:c,readOnly:i,callback(f){n(5,o=f),a("change")}})}Bs((()=>{s().hide()}));function _(f){pt[f?"unshift":"push"]((()=>{c=f,n(0,c)}))}return t.$$set=f=>{"value"in f&&n(5,o=f.value)},t.$$.update=()=>{t.$$.dirty&32&&u(o)},[c,d,i,l,p,o,_]}class _se extends Gt{constructor(e){super(),Yt(this,e,pse,use,Rt,{value:5})}}function fse(t){let e=t[2]("add_select_option")+"",n;return{c(){n=Ze(e)},m(i,o){N(i,n,o)},p(i,o){o&4&&e!==(e=i[2]("add_select_option")+"")&<(n,e)},d(i){i&&F(n)}}}function mse(t){let e,n,i,o,r,s,l;function a(d){t[8](d)}let c={itemView:_se,readOnly:t[1]};return t[0]!==void 0&&(c.values=t[0]),i=new $a({props:c}),pt.push((()=>Gn(i,"values",a))),i.$on("change",t[5]),i.$on("reorder",t[5]),s=new Gs({props:{cls:"select-options__add",disabled:t[1],$$slots:{default:[fse]},$$scope:{ctx:t}}}),s.$on("click",t[6]),{c(){e=S("div"),n=S("div"),Ie(i.$$.fragment),r=X(),Ie(s.$$.fragment),g(n,"class","select-options__list svelte-1eu52ra"),g(e,"class","select-options")},m(d,u){N(d,e,u),$(e,n),Oe(i,n,null),$(e,r),Oe(s,e,null),l=!0},p(d,[u]){const p={};u&2&&(p.readOnly=d[1]),!o&&u&1&&(o=!0,p.values=d[0],Xn((()=>o=!1))),i.$set(p);const _={};u&2&&(_.disabled=d[1]),u&2052&&(_.$$scope={dirty:u,ctx:d}),s.$set(_)},i(d){l||(I(i.$$.fragment,d),I(s.$$.fragment,d),l=!0)},o(d){H(i.$$.fragment,d),H(s.$$.fragment,d),l=!1},d(d){d&&F(e),Me(i),Me(s)}}}function gse(t,e,n){let i,o,{value:r}=e,{item:s}=e;const{l10n:l}=wt(oi);Pe(t,l,(f=>n(2,o=f)));const{state:a}=wt(An),{readOnly:c}=a;Pe(t,c,(f=>n(1,i=f)));const d=_i();function u(){i||d("change",{item:s,value:r})}function p(){i||d("change",{item:s,value:[...r||[],{value:""}]})}function _(f){r=f,n(0,r)}return t.$$set=f=>{"value"in f&&n(0,r=f.value),"item"in f&&n(7,s=f.item)},[r,i,o,l,c,u,p,s,_]}class hse extends Gt{constructor(e){super(),Yt(this,e,gse,mse,Hc,{value:0,item:7})}}function vse(t){let e,n,i;function o(s){t[9](s)}let r={mix:"selct-font-family-prop",disabled:t[1],theme:"normal",size:"medium",items:[{value:"",text:""},...t[4].map(t[8])]};return t[0]!==void 0&&(r.value=t[0]),e=new Hr({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[6]),{c(){Ie(e.$$.fragment)},m(s,l){Oe(e,s,l),i=!0},p(s,[l]){const a={};l&2&&(a.disabled=s[1]),l&4&&(a.items=[{value:"",text:""},...s[4].map(s[8])]),!n&&l&1&&(n=!0,a.value=s[0],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Me(e,s)}}}function bse(t,e,n){let i,o,{value:r}=e,{item:s}=e;const{lang:l}=wt(oi);Pe(t,l,(m=>n(2,o=m)));const{state:a,customFontFaces:c}=wt(An),{readOnly:d}=a;Pe(t,d,(m=>n(1,i=m)));const u=_i();function p(){i||u("change",{item:s,value:r})}const _=m=>({value:m.value,text:m.text[o]});function f(m){r=m,n(0,r)}return t.$$set=m=>{"value"in m&&n(0,r=m.value),"item"in m&&n(7,s=m.item)},[r,i,o,l,c,d,p,s,_,f]}class yse extends Gt{constructor(e){super(),Yt(this,e,bse,vse,Rt,{value:0,item:7})}}function wse(t){let e,n;return e=new yse({props:{item:t[0],value:t[1]}}),e.$on("change",t[28]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&2&&(r.value=i[1]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function $se(t){let e,n;return e=new hse({props:{item:t[0],value:t[1]}}),e.$on("change",t[27]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&2&&(r.value=i[1]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function kse(t){let e,n;return e=new EV({props:{item:t[0],value:t[1],processedJson:t[3],parentProcessedJson:t[4]}}),e.$on("change",t[26]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&2&&(r.value=i[1]),o&8&&(r.processedJson=i[3]),o&16&&(r.parentProcessedJson=i[4]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function jse(t){let e,n;return e=new ase({props:{item:t[0],value:t[1]}}),e.$on("change",t[25]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&2&&(r.value=i[1]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Sse(t){let e,n;return e=new yu({props:{item:t[0],value:t[1],processedJson:t[3]}}),e.$on("change",t[24]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&2&&(r.value=i[1]),o&8&&(r.processedJson=i[3]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Cse(t){let e,n;return e=new Gre({props:{item:t[0],processedJson:t[3]}}),e.$on("change",t[23]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&8&&(r.processedJson=i[3]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Tse(t){let e,n;return e=new Hre({props:{value:t[1],item:t[0]}}),e.$on("change",t[22]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&2&&(r.value=i[1]),o&1&&(r.item=i[0]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function zse(t){let e,n;return e=new $re({props:{item:t[0],processedJson:t[3]}}),e.$on("change",t[21]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&8&&(r.processedJson=i[3]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Ese(t){let e,n;return e=new bre({props:{item:t[0],processedJson:t[3],parentEvalJson:t[5]}}),e.$on("change",t[20]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&8&&(r.processedJson=i[3]),o&32&&(r.parentEvalJson=i[5]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Ase(t){let e,n;return e=new sre({props:{item:t[0],id:t[2],value:t[1]===void 0?t[0].default:t[1]}}),e.$on("change",t[19]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&4&&(r.id=i[2]),o&3&&(r.value=i[1]===void 0?i[0].default:i[1]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Ose(t){let e,n;return e=new ere({props:{item:t[0],id:t[2],value:t[1]}}),e.$on("change",t[18]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&4&&(r.id=i[2]),o&2&&(r.value=i[1]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Mse(t){let e,n;return e=new qre({props:{item:t[0],value:t[1]}}),e.$on("change",t[17]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&2&&(r.value=i[1]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Pse(t){let e,n;return e=new pd({props:{item:t[0],id:t[2],value:t[1]===void 0?t[0].default:t[1],subtype:"percent",min:0,max:100}}),e.$on("change",t[16]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&4&&(r.id=i[2]),o&3&&(r.value=i[1]===void 0?i[0].default:i[1]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Ise(t){let e,n;return e=new pd({props:{item:t[0],id:t[2],value:t[1]===void 0?t[0].default:t[1],subtype:"integer",min:t[0].min,max:t[0].max,constraint:t[0].constraint,inlineLabel:t[0].inlineLabel}}),e.$on("change",t[15]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&4&&(r.id=i[2]),o&3&&(r.value=i[1]===void 0?i[0].default:i[1]),o&1&&(r.min=i[0].min),o&1&&(r.max=i[0].max),o&1&&(r.constraint=i[0].constraint),o&1&&(r.inlineLabel=i[0].inlineLabel),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Dse(t){let e,n;return e=new pd({props:{item:t[0],id:t[2],value:t[1]===void 0?t[0].default:t[1],subtype:"number",constraint:t[0].constraint}}),e.$on("change",t[14]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&4&&(r.id=i[2]),o&3&&(r.value=i[1]===void 0?i[0].default:i[1]),o&1&&(r.constraint=i[0].constraint),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Vse(t){let e,n;return e=new Joe({props:{item:t[0],value:t[1],processedJson:t[3]}}),e.$on("change",t[12]),e.$on("showMore",t[13]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&2&&(r.value=i[1]),o&8&&(r.processedJson=i[3]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Lse(t){let e,n;return e=new SV({props:{item:t[0],value:t[1]===void 0?t[0].default:t[1],processedJson:t[3],parentProcessedJson:t[4],hasEmpty:!t[0].default,options:t[0].options}}),e.$on("change",t[11]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&3&&(r.value=i[1]===void 0?i[0].default:i[1]),o&8&&(r.processedJson=i[3]),o&16&&(r.parentProcessedJson=i[4]),o&1&&(r.hasEmpty=!i[0].default),o&1&&(r.options=i[0].options),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Fse(t){let e,n;return e=new Soe({props:{item:t[0],value:t[1]}}),e.$on("change",t[9]),e.$on("showMore",t[10]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&2&&(r.value=i[1]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Nse(t){let e,n;return e=new Boe({props:{item:t[0],value:t[1]===void 0?t[0].default:t[1],processedJson:t[3],parentProcessedJson:t[4],options:t[0].options}}),e.$on("change",t[8]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&3&&(r.value=i[1]===void 0?i[0].default:i[1]),o&8&&(r.processedJson=i[3]),o&16&&(r.parentProcessedJson=i[4]),o&1&&(r.options=i[0].options),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function qse(t){let e,n;return e=new Noe({props:{id:t[2],item:t[0],value:t[1]||"",tankerToggled:t[6]}}),e.$on("change",t[7]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&4&&(r.id=i[2]),o&1&&(r.item=i[0]),o&2&&(r.value=i[1]||""),o&64&&(r.tankerToggled=i[6]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Rse(t){let e,n,i,o;const r=[qse,Nse,Fse,Lse,Vse,Dse,Ise,Pse,Mse,Ose,Ase,Ese,zse,Tse,Cse,Sse,jse,kse,$se,wse],s=[];function l(a,c){return a[0].type==="string"?0:a[0].type==="radio"?1:a[0].type==="color"?2:a[0].type==="select"?3:a[0].type==="file"?4:a[0].type==="number"?5:a[0].type==="integer"?6:a[0].type==="percent"?7:a[0].type==="background2"?8:a[0].type==="boolean"?9:a[0].type==="rotation"?10:a[0].type==="alignment"?11:a[0].type==="margins-paddings"?12:a[0].type==="text-align"?13:a[0].type==="text-styles"?14:a[0].type==="actions2"?15:a[0].type==="video_sources"?16:a[0].type==="variable-name"?17:a[0].type==="select-options"?18:a[0].type==="select-font-family"?19:-1}return~(e=l(t))&&(n=s[e]=r[e](t)),{c(){n&&n.c(),i=Dn()},m(a,c){~e&&s[e].m(a,c),N(a,i,c),o=!0},p(a,[c]){let d=e;e=l(a),e===d?~e&&s[e].p(a,c):(n&&(It(),H(s[d],1,1,(()=>{s[d]=null})),Dt()),~e?(n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),I(n,1),n.m(i.parentNode,i)):n=null)},i(a){o||(I(n),o=!0)},o(a){H(n),o=!1},d(a){a&&F(i),~e&&s[e].d(a)}}}function Bse(t,e,n){let{item:i}=e,{value:o}=e,{id:r=void 0}=e,{processedJson:s}=e,{parentProcessedJson:l}=e,{parentEvalJson:a}=e,{tankerToggled:c=!1}=e;function d(C){mn.call(this,t,C)}function u(C){mn.call(this,t,C)}function p(C){mn.call(this,t,C)}function _(C){mn.call(this,t,C)}function f(C){mn.call(this,t,C)}function m(C){mn.call(this,t,C)}function h(C){mn.call(this,t,C)}function v(C){mn.call(this,t,C)}function y(C){mn.call(this,t,C)}function b(C){mn.call(this,t,C)}function w(C){mn.call(this,t,C)}function k(C){mn.call(this,t,C)}function E(C){mn.call(this,t,C)}function T(C){mn.call(this,t,C)}function j(C){mn.call(this,t,C)}function A(C){mn.call(this,t,C)}function O(C){mn.call(this,t,C)}function M(C){mn.call(this,t,C)}function D(C){mn.call(this,t,C)}function R(C){mn.call(this,t,C)}function U(C){mn.call(this,t,C)}function B(C){mn.call(this,t,C)}return t.$$set=C=>{"item"in C&&n(0,i=C.item),"value"in C&&n(1,o=C.value),"id"in C&&n(2,r=C.id),"processedJson"in C&&n(3,s=C.processedJson),"parentProcessedJson"in C&&n(4,l=C.parentProcessedJson),"parentEvalJson"in C&&n(5,a=C.parentEvalJson),"tankerToggled"in C&&n(6,c=C.tankerToggled)},[i,o,r,s,l,a,c,d,u,p,_,f,m,h,v,y,b,w,k,E,T,j,A,O,M,D,R,U,B]}class Hse extends Gt{constructor(e){super(),Yt(this,e,Bse,Rse,Rt,{item:0,value:1,id:2,processedJson:3,parentProcessedJson:4,parentEvalJson:5,tankerToggled:6})}}function Use(t){let e,n,i,o,r,s,l,a;return{c(){e=S("div"),n=S("input"),i=X(),o=S("div"),r=X(),s=S("div"),g(n,"class","switcher__input svelte-g40qqc"),g(n,"type","checkbox"),n.disabled=t[1],g(o,"class","switcher__bg svelte-g40qqc"),g(s,"class","switcher__tumbler svelte-g40qqc"),g(e,"class","switcher svelte-g40qqc"),te(e,"switcher_disabled",t[1])},m(c,d){N(c,e,d),$(e,n),n.checked=t[0],$(e,i),$(e,o),$(e,r),$(e,s),l||(a=[ee(n,"change",t[3]),ee(n,"change",t[2])],l=!0)},p(c,[d]){d&2&&(n.disabled=c[1]),d&1&&(n.checked=c[0]),d&2&&te(e,"switcher_disabled",c[1])},i:tn,o:tn,d(c){c&&F(e),l=!1,qn(a)}}}function Jse(t,e,n){let{checked:i}=e,{disabled:o=!1}=e;function r(l){mn.call(this,t,l)}function s(){i=this.checked,n(0,i)}return t.$$set=l=>{"checked"in l&&n(0,i=l.checked),"disabled"in l&&n(1,o=l.disabled)},[i,o,r,s]}class Wse extends Gt{constructor(e){super(),Yt(this,e,Jse,Use,Rt,{checked:0,disabled:1})}}const Kse='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><path fill="currentColor" d="M16.286 4.857A.857.857 0 0 0 15.429 4h-2.572a.857.857 0 0 0 0 1.714h1.714v2.572c0 .227.09.445.252.606l.566.566c.24.22.454.328.642.381.201.057.566.1.566.1v.118s-.415.04-.566.09l-.022.008c-.13.043-.313.103-.553.32l-.633.633a.857.857 0 0 0-.252.606v2.572h-1.714a.857.857 0 0 0 0 1.714h2.572a.857.857 0 0 0 .857-.857v-3.074l1.463-1.463a.857.857 0 0 0 0-1.212L16.286 7.93V4.857Zm-12.572 0c0-.473.384-.857.857-.857h2.572a.857.857 0 0 1 0 1.714H5.429v2.572c0 .227-.09.445-.251.606l-.52.52c-.261.25-.493.37-.693.427-.201.057-.566.1-.566.1v.118s.415.04.566.09l.022.008c.15.05.371.122.67.434l.52.52c.161.16.252.378.252.605v2.572h1.714a.857.857 0 0 1 0 1.714H4.57a.857.857 0 0 1-.857-.857v-3.074L2.25 10.606a.857.857 0 0 1 0-1.212L3.714 7.93V4.857Z" class="source-icon"/></svg>';function Yse(t){let e,n,i,o;return{c(){e=S("button"),n=Ze(t[0]),g(e,"class","expression-value svelte-s6a6pj"),e.disabled=t[1],te(e,"expression-value_disabled",t[1])},m(r,s){N(r,e,s),$(e,n),i||(o=ee(e,"click",t[3]),i=!0)},p(r,[s]){s&1&<(n,r[0]),s&2&&(e.disabled=r[1]),s&2&&te(e,"expression-value_disabled",r[1])},i:tn,o:tn,d(r){r&&F(e),i=!1,o()}}}function Gse(t,e,n){let i,{evalValue:o}=e;const{state:r}=wt(An),{readOnly:s}=r;Pe(t,s,(a=>n(1,i=a)));function l(a){mn.call(this,t,a)}return t.$$set=a=>{"evalValue"in a&&n(0,o=a.evalValue)},[o,i,s,l]}class Xse extends Gt{constructor(e){super(),Yt(this,e,Gse,Yse,Rt,{evalValue:0})}}function v0(t){let e,n,i,o,r;function s(u,p){if("rawName"in u[0])return xse;if(u[0].name)return Zse}let l=s(t),a=l&&l(t),c=t[7]&&b0(t),d="enableTanker"in t[0]&&t[0].enableTanker&&t[15].length&&y0(t);return{c(){e=S("div"),n=S("div"),a&&a.c(),i=X(),c&&c.c(),o=X(),d&&d.c(),g(n,"class","unknown-prop__label svelte-1a6sde7"),g(e,"class","unknown-prop__name svelte-1a6sde7")},m(u,p){N(u,e,p),$(e,n),a&&a.m(n,null),$(n,i),c&&c.m(n,null),$(e,o),d&&d.m(e,null),r=!0},p(u,p){l===(l=s(u))&&a?a.p(u,p):(a&&a.d(1),a=l&&l(u),a&&(a.c(),a.m(n,i))),u[7]?c?c.p(u,p):(c=b0(u),c.c(),c.m(n,null)):c&&(c.d(1),c=null),"enableTanker"in u[0]&&u[0].enableTanker&&u[15].length?d?(d.p(u,p),p&1&&I(d,1)):(d=y0(u),d.c(),I(d,1),d.m(e,null)):d&&(It(),H(d,1,1,(()=>{d=null})),Dt())},i(u){r||(I(d),r=!0)},o(u){H(d),r=!1},d(u){u&&F(e),a&&a.d(),c&&c.d(),d&&d.d()}}}function Zse(t){let e=t[13](t[0].name)+"",n;return{c(){n=Ze(e)},m(i,o){N(i,n,o)},p(i,o){o&8193&&e!==(e=i[13](i[0].name)+"")&<(n,e)},d(i){i&&F(n)}}}function xse(t){let e=t[0].rawName+"",n;return{c(){n=Ze(e)},m(i,o){N(i,n,o)},p(i,o){o&1&&e!==(e=i[0].rawName+"")&<(n,e)},d(i){i&&F(n)}}}function b0(t){let e,n,i;return{c(){e=S("button"),g(e,"class","unknown-prop__source svelte-1a6sde7"),te(e,"unknown-prop__source_toggle",t[8])},m(o,r){N(o,e,r),e.innerHTML=Kse,t[21](e),n||(i=ee(e,"click",t[20]),n=!0)},p(o,r){r&256&&te(e,"unknown-prop__source_toggle",o[8])},d(o){o&&F(e),t[21](null),n=!1,i()}}}function y0(t){let e=t[0].type==="string"&&t[0].enableTanker?"label":"div",n,i=(t[0].type==="string"&&t[0].enableTanker?"label":"div")&&Nd(t);return{c(){i&&i.c(),n=Dn()},m(o,r){i&&i.m(o,r),N(o,n,r)},p(o,r){o[0].type==="string"&&o[0].enableTanker,e?Rt(e,o[0].type==="string"&&o[0].enableTanker?"label":"div")?(i.d(1),i=Nd(o),e=o[0].type==="string"&&o[0].enableTanker?"label":"div",i.c(),i.m(n.parentNode,n)):i.p(o,r):(i=Nd(o),e=o[0].type==="string"&&o[0].enableTanker?"label":"div",i.c(),i.m(n.parentNode,n))},i:tn,o(o){H(i,o)},d(o){o&&F(n),i&&i.d(o)}}}function Nd(t){let e,n=t[13]("tankerTitle")+"",i,o,r,s,l;function a(d){t[22](d)}let c={disabled:t[12]};return t[6]!==void 0&&(c.checked=t[6]),r=new Wse({props:c}),pt.push((()=>Gn(r,"checked",a))),r.$on("change",t[19]),{c(){e=S(t[0].type==="string"&&t[0].enableTanker?"label":"div"),i=Ze(n),o=X(),Ie(r.$$.fragment),uc(t[0].type==="string"&&t[0].enableTanker?"label":"div")(e,{class:"unknown-prop__tanker svelte-1a6sde7"})},m(d,u){N(d,e,u),$(e,i),$(e,o),Oe(r,e,null),l=!0},p(d,u){(!l||u&8192)&&n!==(n=d[13]("tankerTitle")+"")&<(i,n);const p={};u&4096&&(p.disabled=d[12]),!s&&u&64&&(s=!0,p.checked=d[6],Xn((()=>s=!1))),r.$set(p)},i(d){l||(I(r.$$.fragment,d),l=!0)},o(d){H(r.$$.fragment,d),l=!1},d(d){d&&F(e),Me(r)}}}function Qse(t){let e,n;return e=new Hse({props:{item:t[0],value:t[1],processedJson:t[3],parentProcessedJson:t[4],parentEvalJson:t[5],tankerToggled:t[6]}}),e.$on("change",t[23]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.item=i[0]),o&2&&(r.value=i[1]),o&8&&(r.processedJson=i[3]),o&16&&(r.parentProcessedJson=i[4]),o&32&&(r.parentEvalJson=i[5]),o&64&&(r.tankerToggled=i[6]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function ele(t){let e,n;return e=new Xse({props:{evalValue:t[2]}}),e.$on("click",t[20]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&4&&(r.evalValue=i[2]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function qd(t){let e,n,i,o,r,s=("name"in t[0]&&t[0].name||"rawName"in t[0]&&t[0].rawName)&&v0(t);const l=[ele,Qse],a=[];function c(d,u){return d[10]&&d[8]?0:1}return i=c(t),o=a[i]=l[i](t),{c(){e=S(t[11]?"label":"div"),s&&s.c(),n=X(),o.c(),uc(t[11]?"label":"div")(e,{class:"unknown-prop svelte-1a6sde7"})},m(d,u){N(d,e,u),s&&s.m(e,null),$(e,n),a[i].m(e,null),r=!0},p(d,u){"name"in d[0]&&d[0].name||"rawName"in d[0]&&d[0].rawName?s?(s.p(d,u),u&1&&I(s,1)):(s=v0(d),s.c(),I(s,1),s.m(e,n)):s&&(It(),H(s,1,1,(()=>{s=null})),Dt());let p=i;i=c(d),i===p?a[i].p(d,u):(It(),H(a[p],1,1,(()=>{a[p]=null})),Dt(),o=a[i],o?o.p(d,u):(o=a[i]=l[i](d),o.c()),I(o,1),o.m(e,null))},i(d){r||(I(s),I(o),r=!0)},o(d){H(s),H(o),r=!1},d(d){d&&F(e),s&&s.d(),a[i].d()}}}function tle(t){let e=t[11]?"label":"div",n,i=(t[11]?"label":"div")&&qd(t);return{c(){i&&i.c(),n=Dn()},m(o,r){i&&i.m(o,r),N(o,n,r)},p(o,[r]){o[11],e?Rt(e,o[11]?"label":"div")?(i.d(1),i=qd(o),e=o[11]?"label":"div",i.c(),i.m(n.parentNode,n)):i.p(o,r):(i=qd(o),e=o[11]?"label":"div",i.c(),i.m(n.parentNode,n))},i:tn,o(o){H(i,o)},d(o){o&&F(n),i&&i.d(o)}}}function nle(t,e,n){let i,o,r,s,l,a,c,d,u,{item:p}=e,{value:_}=e,{evalValue:f}=e,{processedJson:m}=e,{parentProcessedJson:h}=e,{parentEvalJson:v}=e;const y=_i(),{l10n:b}=wt(oi);Pe(t,b,(C=>n(13,u=C)));const{cardLocales:w,state:k,expression2Dialog:E}=wt(An),{tanker:T,locale:j,readOnly:A}=k;Pe(t,T,(C=>n(25,d=C))),Pe(t,j,(C=>n(24,c=C))),Pe(t,A,(C=>n(12,a=C)));let O;function M(){if(i)y("change",{values:[{prop:"text",value:`@{${Pc("")}}`},{prop:"ranges",value:void 0},{prop:"images",value:void 0}],item:p});else{const C=typeof _=="string"?k.getTankerKey(_):"",q=C&&d[C]||void 0,V=(q==null?void 0:q[c])||"text";y("change",{value:V,item:p})}}function D(){E().show({target:O,value:typeof _=="string"?_:typeof _=="number"?String(_):"",disabled:a,callback(C){y("change",{value:C,item:p})}})}function R(C){pt[C?"unshift":"push"]((()=>{O=C,n(9,O)}))}function U(C){i=C,n(6,i),n(1,_)}function B(C){mn.call(this,t,C)}return t.$$set=C=>{"item"in C&&n(0,p=C.item),"value"in C&&n(1,_=C.value),"evalValue"in C&&n(2,f=C.evalValue),"processedJson"in C&&n(3,m=C.processedJson),"parentProcessedJson"in C&&n(4,h=C.parentProcessedJson),"parentEvalJson"in C&&n(5,v=C.parentEvalJson)},t.$$.update=()=>{t.$$.dirty&2&&n(6,i=typeof _=="string"&&_.startsWith("@{tanker_")),t.$$.dirty&70&&n(8,o=!i&&_!==f&&typeof _!="object"),t.$$.dirty&321&&n(7,r=!i&&("enableSources"in p&&p.enableSources||o)),t.$$.dirty&129&&n(11,s=!r&&!(p.type==="text-styles"||p.type==="text-align"||p.type==="radio"||p.type==="background2"||p.type==="actions2"||p.type==="string"&&p.enableTanker||p.type==="video_sources"||p.type==="alignment"||p.type==="margins-paddings"||p.type==="select-options")),t.$$.dirty&1&&n(10,l="name"in p&&p.name||"rawName"in p&&p.rawName)},[p,_,f,m,h,v,i,r,o,O,l,s,a,u,b,w,T,j,A,M,D,R,U,B]}class AV extends Gt{constructor(e){super(),Yt(this,e,nle,tle,Rt,{item:0,value:1,evalValue:2,processedJson:3,parentProcessedJson:4,parentEvalJson:5})}}function w0(t,e,n){const i=t.slice();return i[17]=e[n],i}function $0(t,e,n){const i=t.slice();return i[23]=e[n],i}function Rd(t){var o,r;const e=t.slice(),n="sizeValue"in e[23]&&e[23].sizeValue?Vs((o=e[5])==null?void 0:o[e[23].sizeValue]):"prop"in e[23]&&e[23].prop&&Lo(e[1],e[23].prop,e[23].default);e[20]=n;const i="sizeValue"in e[23]&&e[23].sizeValue?Vs((r=e[5])==null?void 0:r[e[23].sizeValue]):"prop"in e[23]&&e[23].prop&&Lo(e[4],e[23].prop,e[23].default);return e[21]=i,e}function ile(t){const e=t.slice(),n=e[17].prop&&Lo(e[1],e[17].prop,e[17].default);e[20]=n;const i=e[17].prop&&Lo(e[4],e[17].prop,e[17].default);e[21]=i;const o=e[17].enabled===!1?!1:!e[17].enabled||Nr(e[1],e[2],e[17].enabled,e[9]);return e[22]=o,e}function ole(t){let e=!("show"in t[17]&&t[17].show)||Nr(t[1],t[2],t[17].show,t[9]),n,i,o=e&&k0(t);return{c(){o&&o.c(),n=Dn()},m(r,s){o&&o.m(r,s),N(r,n,s),i=!0},p(r,s){s&7&&(e=!("show"in r[17]&&r[17].show)||Nr(r[1],r[2],r[17].show,r[9])),e?o?(o.p(r,s),s&7&&I(o,1)):(o=k0(r),o.c(),I(o,1),o.m(n.parentNode,n)):o&&(It(),H(o,1,1,(()=>{o=null})),Dt())},i(r){i||(I(o),i=!0)},o(r){H(o),i=!1},d(r){r&&F(n),o&&o.d(r)}}}function rle(t){let e,n,i,o,r,s,l,a,c;return o=new Fc({props:{propsList:[t[17].list[0]],processedJson:t[1],parentProcessedJson:t[2],parentEvalJson:t[3],evalJson:t[4],selectedElemProps:t[5],hasMargins:!1}}),o.$on("change",t[11]),l=new Fc({props:{propsList:[t[17].list[1]],processedJson:t[1],parentProcessedJson:t[2],parentEvalJson:t[3],evalJson:t[4],selectedElemProps:t[5],hasMargins:!1}}),l.$on("change",t[12]),{c(){e=S("li"),n=S("div"),i=S("div"),Ie(o.$$.fragment),r=X(),s=S("div"),Ie(l.$$.fragment),a=X(),g(i,"class","simple-props-group__split-item svelte-qpeo5g"),g(s,"class","simple-props-group__split-item svelte-qpeo5g"),g(n,"class","simple-props-group__split svelte-qpeo5g"),g(e,"class","simple-props-group__item simple-props-group__item_raw svelte-qpeo5g")},m(d,u){N(d,e,u),$(e,n),$(n,i),Oe(o,i,null),$(n,r),$(n,s),Oe(l,s,null),$(e,a),c=!0},p(d,u){const p={};u&1&&(p.propsList=[d[17].list[0]]),u&2&&(p.processedJson=d[1]),u&4&&(p.parentProcessedJson=d[2]),u&8&&(p.parentEvalJson=d[3]),u&16&&(p.evalJson=d[4]),u&32&&(p.selectedElemProps=d[5]),o.$set(p);const _={};u&1&&(_.propsList=[d[17].list[1]]),u&2&&(_.processedJson=d[1]),u&4&&(_.parentProcessedJson=d[2]),u&8&&(_.parentEvalJson=d[3]),u&16&&(_.evalJson=d[4]),u&32&&(_.selectedElemProps=d[5]),l.$set(_)},i(d){c||(I(o.$$.fragment,d),I(l.$$.fragment,d),c=!0)},o(d){H(o.$$.fragment,d),H(l.$$.fragment,d),c=!1},d(d){d&&F(e),Me(o),Me(l)}}}function sle(t){let e,n,i,o;return n=new moe({props:{title:(t[17].title?t[7](t[17].title):t[17].rawTitle)||"",propsList:t[17].list,processedJson:t[1],parentProcessedJson:t[2],parentEvalJson:t[3],evalJson:t[4],selectedElemProps:t[5]}}),n.$on("change",t[10]),{c(){e=S("li"),Ie(n.$$.fragment),i=X(),g(e,"class","simple-props-group__item simple-props-group__item_group svelte-qpeo5g")},m(r,s){N(r,e,s),Oe(n,e,null),$(e,i),o=!0},p(r,s){const l={};s&129&&(l.title=(r[17].title?r[7](r[17].title):r[17].rawTitle)||""),s&1&&(l.propsList=r[17].list),s&2&&(l.processedJson=r[1]),s&4&&(l.parentProcessedJson=r[2]),s&8&&(l.parentEvalJson=r[3]),s&16&&(l.evalJson=r[4]),s&32&&(l.selectedElemProps=r[5]),n.$set(l)},i(r){o||(I(n.$$.fragment,r),o=!0)},o(r){H(n.$$.fragment,r),o=!1},d(r){r&&F(e),Me(n)}}}function k0(t){let e,n,i,o,r,s;n=new AV({props:{item:t[17],value:t[20],evalValue:t[21],processedJson:t[1],parentProcessedJson:t[2],parentEvalJson:t[3]}}),n.$on("change",t[13]);let l=t[17].siblings&&j0(t);return{c(){e=S("li"),Ie(n.$$.fragment),i=X(),l&&l.c(),o=X(),g(e,"class","simple-props-group__item svelte-qpeo5g"),e.inert=r=!t[22],te(e,"simple-props-group__item_raw",t[6]),te(e,"simple-props-group__item_disabled",!t[22])},m(a,c){N(a,e,c),Oe(n,e,null),$(e,i),l&&l.m(e,null),$(e,o),s=!0},p(a,c){const d={};c&1&&(d.item=a[17]),c&3&&(d.value=a[20]),c&17&&(d.evalValue=a[21]),c&2&&(d.processedJson=a[1]),c&4&&(d.parentProcessedJson=a[2]),c&8&&(d.parentEvalJson=a[3]),n.$set(d),a[17].siblings?l?(l.p(a,c),c&1&&I(l,1)):(l=j0(a),l.c(),I(l,1),l.m(e,o)):l&&(It(),H(l,1,1,(()=>{l=null})),Dt()),(!s||c&7&&r!==(r=!a[22]))&&(e.inert=r),(!s||c&64)&&te(e,"simple-props-group__item_raw",a[6]),(!s||c&519)&&te(e,"simple-props-group__item_disabled",!a[22])},i(a){s||(I(n.$$.fragment,a),I(l),s=!0)},o(a){H(n.$$.fragment,a),H(l),s=!1},d(a){a&&F(e),Me(n),l&&l.d()}}}function j0(t){let e,n,i=an(t[17].siblings),o=[];for(let s=0;s<i.length;s+=1)o[s]=C0($0(t,i,s));const r=s=>H(o[s],1,1,(()=>{o[s]=null}));return{c(){for(let s=0;s<o.length;s+=1)o[s].c();e=Dn()},m(s,l){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(s,l);N(s,e,l),n=!0},p(s,l){if(l&575){i=an(s[17].siblings);let a;for(a=0;a<i.length;a+=1){const c=$0(s,i,a);o[a]?(o[a].p(c,l),I(o[a],1)):(o[a]=C0(c),o[a].c(),I(o[a],1),o[a].m(e.parentNode,e))}for(It(),a=i.length;a<o.length;a+=1)r(a);Dt()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)I(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)H(o[l]);n=!1},d(s){s&&F(e),Bi(o,s)}}}function S0(t){let e,n,i,o,r;return n=new AV({props:{item:t[23],value:t[20],evalValue:t[21],processedJson:t[1],parentProcessedJson:t[2],parentEvalJson:t[3]}}),n.$on("change",t[14]),{c(){e=S("div"),Ie(n.$$.fragment),i=X(),g(e,"class","simple-props-group__sibling svelte-qpeo5g")},m(s,l){N(s,e,l),Oe(n,e,null),$(e,i),r=!0},p(s,l){const a={};l&1&&(a.item=s[23]),l&35&&(a.value=s[20]),l&49&&(a.evalValue=s[21]),l&2&&(a.processedJson=s[1]),l&4&&(a.parentProcessedJson=s[2]),l&8&&(a.parentEvalJson=s[3]),n.$set(a)},i(s){r||(I(n.$$.fragment,s),s&&po((()=>{r&&(o||(o=Zi(e,Go,{},!0)),o.run(1))})),r=!0)},o(s){H(n.$$.fragment,s),s&&(o||(o=Zi(e,Go,{},!1)),o.run(0)),r=!1},d(s){s&&F(e),Me(n),s&&o&&o.end()}}}function C0(t){let e=!("show"in t[23]&&t[23].show)||Nr(t[1],t[2],t[23].show,t[9]),n,i,o=e&&S0(Rd(t));return{c(){o&&o.c(),n=Dn()},m(r,s){o&&o.m(r,s),N(r,n,s),i=!0},p(r,s){s&7&&(e=!("show"in r[23]&&r[23].show)||Nr(r[1],r[2],r[23].show,r[9])),e?o?(o.p(Rd(r),s),s&7&&I(o,1)):(o=S0(Rd(r)),o.c(),I(o,1),o.m(n.parentNode,n)):o&&(It(),H(o,1,1,(()=>{o=null})),Dt())},i(r){i||(I(o),i=!0)},o(r){H(o),i=!1},d(r){r&&F(n),o&&o.d(r)}}}function T0(t){let e,n,i,o;const r=[sle,rle,ole],s=[];function l(c,d){return c[17].type==="group"?0:c[17].type==="split"?1:2}function a(c,d){return d===2?ile(c):c}return e=l(t),n=s[e]=r[e](a(t,e)),{c(){n.c(),i=Dn()},m(c,d){s[e].m(c,d),N(c,i,d),o=!0},p(c,d){let u=e;e=l(c),e===u?s[e].p(a(c,e),d):(It(),H(s[u],1,1,(()=>{s[u]=null})),Dt(),n=s[e],n?n.p(a(c,e),d):(n=s[e]=r[e](a(c,e)),n.c()),I(n,1),n.m(i.parentNode,i))},i(c){o||(I(n),o=!0)},o(c){H(n),o=!1},d(c){c&&F(i),s[e].d(c)}}}function lle(t){let e,n,i,o=an(t[0]),r=[];for(let l=0;l<o.length;l+=1)r[l]=T0(w0(t,o,l));const s=l=>H(r[l],1,1,(()=>{r[l]=null}));return{c(){e=S("div"),n=S("ul");for(let l=0;l<r.length;l+=1)r[l].c();g(n,"class","simple-props-group__list svelte-qpeo5g"),g(e,"class","simple-props-group")},m(l,a){N(l,e,a),$(e,n);for(let c=0;c<r.length;c+=1)r[c]&&r[c].m(n,null);i=!0},p(l,[a]){if(a&1791){o=an(l[0]);let c;for(c=0;c<o.length;c+=1){const d=w0(l,o,c);r[c]?(r[c].p(d,a),I(r[c],1)):(r[c]=T0(d),r[c].c(),I(r[c],1),r[c].m(n,null))}for(It(),c=o.length;c<r.length;c+=1)s(c);Dt()}},i(l){if(!i){for(let a=0;a<o.length;a+=1)I(r[a]);i=!0}},o(l){r=r.filter(Boolean);for(let a=0;a<r.length;a+=1)H(r[a]);i=!1},d(l){l&&F(e),Bi(r,l)}}}function ale(t,e,n){let i;const{l10nString:o}=wt(oi);Pe(t,o,(w=>n(7,i=w)));const{customFontFaces:r}=wt(An),s=_i();let{propsList:l}=e,{processedJson:a}=e,{parentProcessedJson:c}=e,{parentEvalJson:d}=e,{evalJson:u}=e,{selectedElemProps:p}=e,{hasMargins:_=!0}=e;const f={$fontFamily:r.length>0?"yes":"no"};function m(w){s(w.type,w.detail)}function h(w){mn.call(this,t,w)}function v(w){mn.call(this,t,w)}function y(w){mn.call(this,t,w)}function b(w){mn.call(this,t,w)}return t.$$set=w=>{"propsList"in w&&n(0,l=w.propsList),"processedJson"in w&&n(1,a=w.processedJson),"parentProcessedJson"in w&&n(2,c=w.parentProcessedJson),"parentEvalJson"in w&&n(3,d=w.parentEvalJson),"evalJson"in w&&n(4,u=w.evalJson),"selectedElemProps"in w&&n(5,p=w.selectedElemProps),"hasMargins"in w&&n(6,_=w.hasMargins)},[l,a,c,d,u,p,_,i,o,f,m,h,v,y,b]}class Fc extends Gt{constructor(e){super(),Yt(this,e,ale,lle,Rt,{propsList:0,processedJson:1,parentProcessedJson:2,parentEvalJson:3,evalJson:4,selectedElemProps:5,hasMargins:6})}}function z0(t){let e,n;return e=new Fc({props:{propsList:[...t[4],...t[2]&&[t[2]]||[]],processedJson:t[1],parentProcessedJson:t[0],evalJson:t[6],parentEvalJson:t[5],selectedElemProps:t[3]}}),e.$on("change",t[10]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&20&&(r.propsList=[...i[4],...i[2]&&[i[2]]||[]]),o&2&&(r.processedJson=i[1]),o&1&&(r.parentProcessedJson=i[0]),o&64&&(r.evalJson=i[6]),o&32&&(r.parentEvalJson=i[5]),o&8&&(r.selectedElemProps=i[3]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function cle(t){let e,n,i=t[4]&&t[1]&&z0(t);return{c(){e=S("div"),i&&i.c(),g(e,"class","simple-props svelte-12cn75g")},m(o,r){N(o,e,r),i&&i.m(e,null),n=!0},p(o,[r]){o[4]&&o[1]?i?(i.p(o,r),r&18&&I(i,1)):(i=z0(o),i.c(),I(i,1),i.m(e,null)):i&&(It(),H(i,1,1,(()=>{i=null})),Dt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&F(e),i&&i.d()}}}function dle(t,e,n){let i,o,r,s,l,a,c,d,u,p,_,f;const{rootConfigurable:m,state:h,rendererApi:v}=wt(An),{selectedLeaf:y,readOnly:b,tree:w}=h;Pe(t,y,(T=>n(15,_=T))),Pe(t,b,(T=>n(16,f=T))),Pe(t,w,(T=>n(14,p=T)));let k;async function E(T){if(!_)return;if(f){console.error("Cannot edit readonly");return}const j=[],A=T.detail.item,O=({property:D,value:R})=>{if(D==="width.type"||D==="height.type"){const U=v().selectedElemProps(),B=D==="width.type"?"width":"height";return R==="fixed"?[{property:B,value:{type:"fixed",value:U?Math.ceil(U[B]):100}}]:R==="match_parent"?[{property:B,value:{type:R}}]:R==="wrap_content"?[{property:B,value:{type:R}}]:[]}else if(D==="alignment_horizontal"||D==="alignment_vertical"){const U=D==="alignment_horizontal"?"width":"height",B=U==="width"?"left":"top",C=U==="width"?"right":"bottom",q=[{property:D,value:R}];return i.margins&&(i.margins[B]&&q.push({property:"margins."+B,value:void 0}),i.margins[C]&&q.push({property:"margins."+C,value:void 0})),q}return[{property:D,value:R}]};"values"in T.detail?T.detail.values.forEach((D=>{j.push(...O({property:D.prop,value:D.value}).map((R=>({...R,leafId:_.id}))))})):"prop"in A&&A.prop&&j.push(...O({property:A.prop,value:T.detail.value}).map((D=>({...D,leafId:_.id}))));const M="related"in A&&A.related;M&&M.forEach((({prop:D,value:R})=>{j.push({leafId:_.id,property:D,value:R})})),h.pushCommand(new ir(p,j))}return t.$$.update=()=>{var T,j,A,O;if(t.$$.dirty&32768&&n(11,i=(_==null?void 0:_.props.json)||null),t.$$.dirty&34816&&n(1,o=(_==null?void 0:_.props.processedJson)||i||null),t.$$.dirty&32768&&n(0,r=((T=_==null?void 0:_.parent)==null?void 0:T.props.processedJson)||((j=_==null?void 0:_.parent)==null?void 0:j.props.json)||null),t.$$.dirty&2&&n(6,s=o&&v().evalJson(o)||null),t.$$.dirty&1&&n(5,l=r&&v().evalJson(r)||null),t.$$.dirty&2048&&n(12,a=i==null?void 0:i.type),t.$$.dirty&4096&&n(13,c=h.getBaseType(a)),t.$$.dirty&61440&&n(4,d=!m&&_===p&&Jte||((A=Ui[a])==null?void 0:A.props)&&[...nr,...(O=Ui[a])==null?void 0:O.props]||c&&Ute[c]||nr),t.$$.dirty&4096){const M=a in Ui?[]:Wte(h,a);n(2,k=void 0);const D=M.map((R=>{const U=R.editor.type!=="background2"&&R.editor.type!=="actions2"&&R.editor.type!=="video_sources"&&R.editor.type!=="variable-name";return{rawName:R.templatePropertyName,prop:R.templatePropertyName,type:R.editor.type,options:R.editor.options,constraint:R.editor.constraint,enableSources:U}}));D.length&&n(2,k={type:"group",rawTitle:a,list:D})}t.$$.dirty&2048&&n(3,u=i&&v().selectedElemProps()||null)},[r,o,k,u,d,l,s,y,b,w,E,i,a,c,p,_]}class ule extends Gt{constructor(e){super(),Yt(this,e,dle,cle,Rt,{})}}function E0(t,e,n){const i=t.slice();return i[9]=e[n],i}function A0(t){let e,n;return e=new Il({props:{title:t[3](t[0]?"complexComponentProperties":"componentProperties")}}),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&9&&(r.title=i[3](i[0]?"complexComponentProperties":"componentProperties")),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function ple(t){let e,n,i,o=t[3]("chooseComponent")+"",r,s,l;return{c(){e=S("div"),n=S("div"),i=X(),r=Ze(o),s=X(),l=S("div"),g(n,"class","props__empty-gap props__empty-gap_start svelte-1ak9wrv"),g(l,"class","props__empty-gap props__empty-gap_end svelte-1ak9wrv"),g(e,"class","props__empty svelte-1ak9wrv")},m(a,c){N(a,e,c),$(e,n),$(e,i),$(e,r),$(e,s),$(e,l)},p(a,c){c&8&&o!==(o=a[3]("chooseComponent")+"")&<(r,o)},i:tn,o:tn,d(a){a&&F(e)}}}function _le(t){var r;let e=(r=t[1])==null?void 0:r.id,n,i,o=M0(t);return{c(){o.c(),n=Dn()},m(s,l){o.m(s,l),N(s,n,l),i=!0},p(s,l){var a;l&2&&Rt(e,e=(a=s[1])==null?void 0:a.id)?(It(),H(o,1,1,tn),Dt(),o=M0(s),o.c(),I(o,1),o.m(n.parentNode,n)):o.p(s,l)},i(s){i||(I(o),i=!0)},o(s){H(o),i=!1},d(s){s&&F(n),o.d(s)}}}function fle(t){let e,n;return e=new ule({}),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p:tn,i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function mle(t){let e,n,i=an(t[2]),o=[];for(let s=0;s<i.length;s+=1)o[s]=O0(E0(t,i,s));const r=s=>H(o[s],1,1,(()=>{o[s]=null}));return{c(){for(let s=0;s<o.length;s+=1)o[s].c();e=Dn()},m(s,l){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(s,l);N(s,e,l),n=!0},p(s,l){if(l&4){i=an(s[2]);let a;for(a=0;a<i.length;a+=1){const c=E0(s,i,a);o[a]?(o[a].p(c,l),I(o[a],1)):(o[a]=O0(c),o[a].c(),I(o[a],1),o[a].m(e.parentNode,e))}for(It(),a=i.length;a<o.length;a+=1)r(a);Dt()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)I(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)H(o[l]);n=!1},d(s){s&&F(e),Bi(o,s)}}}function O0(t){let e,n;return e=new doe({props:{group:t[9]}}),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&4&&(r.group=i[9]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function M0(t){let e,n,i,o;const r=[mle,fle],s=[];function l(a,c){return a[0]?0:1}return e=l(t),n=s[e]=r[e](t),{c(){n.c(),i=Dn()},m(a,c){s[e].m(a,c),N(a,i,c),o=!0},p(a,c){let d=e;e=l(a),e===d?s[e].p(a,c):(It(),H(s[d],1,1,(()=>{s[d]=null})),Dt(),n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),I(n,1),n.m(i.parentNode,i))},i(a){o||(I(n),o=!0)},o(a){H(n),o=!1},d(a){a&&F(i),s[e].d(a)}}}function gle(t){let e,n,i,o,r,s=t[0]&&A0(t);const l=[_le,ple],a=[];function c(d,u){return d[2]?0:1}return i=c(t),o=a[i]=l[i](t),{c(){e=S("div"),s&&s.c(),n=X(),o.c(),g(e,"class","props svelte-1ak9wrv")},m(d,u){N(d,e,u),s&&s.m(e,null),$(e,n),a[i].m(e,null),r=!0},p(d,[u]){d[0]?s?(s.p(d,u),u&1&&I(s,1)):(s=A0(d),s.c(),I(s,1),s.m(e,n)):s&&(It(),H(s,1,1,(()=>{s=null})),Dt());let p=i;i=c(d),i===p?a[i].p(d,u):(It(),H(a[p],1,1,(()=>{a[p]=null})),Dt(),o=a[i],o?o.p(d,u):(o=a[i]=l[i](d),o.c()),I(o,1),o.m(e,null))},i(d){r||(I(s),I(o),r=!0)},o(d){H(s),H(o),r=!1},d(d){d&&F(e),s&&s.d(),a[i].d()}}}function hle(t,e,n){let i,o,r,s,{showComplex:l=!1}=e;const{l10n:a}=wt(oi);Pe(t,a,(p=>n(3,s=p)));const{state:c}=wt(An),{selectedLeaf:d}=c;Pe(t,d,(p=>n(1,r=p)));let u;return t.$$set=p=>{"showComplex"in p&&n(0,l=p.showComplex)},t.$$.update=()=>{var p;if(t.$$.dirty&2&&n(7,i=((p=r==null?void 0:r.props.processedJson)==null?void 0:p.type)||null),t.$$.dirty&128&&n(6,o=c.getBaseType(i)),t.$$.dirty&64&&(n(2,u=null),o)){const _=Gl(o),f=_?Rm(o):void 0,m=_?f?$l(f):void 0:$l(o),h=m==null?void 0:m.allOf;h&&n(2,u=h.slice().reverse().map((v=>{if(v.$ref)return v.$ref.replace(/^div-/,"").replace(/\.json$/,"");const b=Gl(o)?Rm(o):void 0;return Gl(o)?b?Ym(b):void 0:Ym(o)})).filter(kr))}},[l,r,u,s,a,d,o,i]}class OV extends Gt{constructor(e){super(),Yt(this,e,hle,gle,Rt,{showComplex:0})}}function vle(t,e){const n=[];return t&&n.push(...t.map((i=>({type:"highlight",range:i})))),e&&n.push(...e.map((i=>({type:"select",range:i})))),n}class ble extends hr{constructor(n,i){super();on(this,"oldTree");on(this,"newJson");on(this,"genId");this.oldTree=$n(n.tree),this.newJson=i,this.genId=n.currentGenId()}undo(n){n.tree.set(this.oldTree)}redo(n){n.restoreGenId(this.genId),n.setDivJson(JSON.parse(this.newJson))}mergeMeWith(n){this.newJson=n.newJson}toLangKey(){return"commands.set_json"}}function yle(t){let e;return{c(){e=S("div"),g(e,"class","text-editor svelte-107l38j")},m(n,i){N(n,e,i),t[16](e)},p:tn,i:tn,o:tn,d(n){n&&F(e),t[16](null)}}}function wle(t,e,n){let i,o,r,s,l,a,c,d,u=!1,p="";const{editorFabric:_,shadowRoot:f,state:m}=wt(An),{divjsonStore:h,selectedLeaf:v,highlightLeaf:y,highlightElem:b,highlightRanges:w,selectedRanges:k,highlightLoc:E,readOnly:T,themeStore:j}=m;Pe(t,h,(O=>n(10,i=O))),Pe(t,w,(O=>n(15,a=O))),Pe(t,k,(O=>n(14,l=O))),Pe(t,E,(O=>n(13,s=O))),Pe(t,T,(O=>n(11,o=O))),Pe(t,j,(O=>n(12,r=O))),Uc((()=>{n(7,d=_({node:c,value:i.fullString,theme:r,readOnly:o,shadowRoot:f,onChange(O){if(O!==i.fullString){let M;try{M=JSON.parse(O)}catch{}M&&(n(9,p=O),m.pushCommand(new ble(m,O)))}},onOver(O){const M=O===null?null:m.findBestLeaf(O),D=M==null?void 0:M.props.range,R=M==null?void 0:M.props.node;D&&R?(y.set([M]),b.set([R]),w.set([D])):(y.set(null),b.set(null),w.set(null))},onClick(O){const M=m.findBestLeaf(O);n(8,u=!0),v.set(M||null)}}))})),Bs((()=>{d&&(d.destroy(),n(7,d=void 0))}));function A(O){pt[O?"unshift":"push"]((()=>{c=O,n(0,c)}))}return t.$$.update=()=>{t.$$.dirty&1664&&p!==i.fullString&&!(d!=null&&d.isFocused())&&(d==null||d.setValue(i.fullString)),t.$$.dirty&4224&&(d==null||d.setTheme(r)),t.$$.dirty&2176&&(d==null||d.setReadOnly(o)),t.$$.dirty&49280&&(d==null||d.decorateRanges(vle(a,l))),t.$$.dirty&8576&&s&&(u?n(8,u=!1):d==null||d.revealLoc(s))},[c,h,w,k,E,T,j,d,u,p,i,o,r,s,l,a,A]}class MV extends Gt{constructor(e){super(),Yt(this,e,wle,yle,Rt,{})}}const P0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M18.5%2015.167a3.335%203.335%200%200%201-3.228-2.5H8.5A.833.833%200%200%201%208.5%2011h6.772a3.335%203.335%200%200%201%206.456%200H23.5a.833.833%200%200%201%200%201.667h-1.772a3.335%203.335%200%200%201-3.228%202.5Zm-10%204.166A.833.833%200%200%200%208.5%2021h1.772a3.335%203.335%200%200%200%206.456%200H23.5a.833.833%200%200%200%200-1.667h-6.772a3.335%203.335%200%200%200-6.456%200H8.5Zm10-5.833a1.667%201.667%200%201%200%200-3.333%201.667%201.667%200%200%200%200%203.333Zm-3.333%206.667a1.667%201.667%200%201%201-3.334%200%201.667%201.667%200%200%201%203.334%200Z'/%3e%3c/svg%3e",I0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cg%20fill='%23fff'%3e%3cpath%20d='m10.376%2011.584-1.599-1.066a.5.5%200%200%200-.777.416v2.132a.5.5%200%200%200%20.777.416l1.599-1.066a.5.5%200%200%200%200-.832zM11.833%2012.042c0-.46.373-.833.833-.833h10a.833.833%200%200%201%200%201.666h-10a.833.833%200%200%201-.833-.833zM15.167%2016.208c0-.46.373-.833.833-.833h6.667a.833.833%200%201%201%200%201.666H16a.833.833%200%200%201-.833-.833zM16%2019.542a.833.833%200%200%200%200%201.667h6.667a.833.833%200%200%200%200-1.667H16zM12.875%2015.166a1.042%201.042%200%201%200%200%202.083%201.042%201.042%200%200%200%200-2.083zM11.833%2020.375a1.042%201.042%200%201%201%202.083%200%201.042%201.042%200%200%201-2.083%200z'/%3e%3c/g%3e%3c/svg%3e",D0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M14.419%2022.667h.819c.2%200%20.372-.143.41-.34l2.343-12.5a.417.417%200%200%200-.41-.494h-.819c-.2%200-.372.143-.41.34l-2.343%2012.5a.417.417%200%200%200%20.41.494Zm-6.393-5.585%204.404%203.049a.417.417%200%200%200%20.653-.343v-.668a.415.415%200%200%200-.16-.328L9.332%2016l3.59-2.791c.101-.08.16-.2.16-.33v-.667a.417.417%200%200%200-.653-.343l-4.404%203.05a.833.833%200%200%200-.36.684v.794c0%20.273.135.53.36.685Zm15.948%200L19.57%2020.13a.417.417%200%200%201-.653-.343v-.668c0-.128.059-.25.16-.328L22.668%2016l-3.59-2.791a.417.417%200%200%201-.16-.33v-.667c0-.336.377-.534.653-.343l4.404%203.05a.833.833%200%200%201%20.36.684v.794c0%20.273-.135.53-.36.685Z'/%3e%3c/svg%3e";function $le(t){let e,n;return e=new MV({}),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p:tn,i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function kle(t){let e,n;return e=new OV({props:{showComplex:t[0]==="complexProps"}}),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.showComplex=i[0]==="complexProps"),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function jle(t){let e,n,i,o,r,s,l,a;function c(f){t[3](f)}let d={name:"props-code",options:[{text:t[1]("componentProperties"),value:"props",icon:P0},{text:t[1]("complexComponentProperties"),value:"complexProps",icon:I0},{text:t[1]("code"),value:"code",icon:D0}],theme:"normal"};t[0]!==void 0&&(d.value=t[0]),n=new Dl({props:d}),pt.push((()=>Gn(n,"value",c)));const u=[kle,$le],p=[];function _(f,m){return f[0]==="props"||f[0]==="complexProps"?0:1}return r=_(t),s=p[r]=u[r](t),{c(){e=S("div"),Ie(n.$$.fragment),o=X(),s.c(),l=Dn(),g(e,"class","props-and-code svelte-17kuvkq")},m(f,m){N(f,e,m),Oe(n,e,null),N(f,o,m),p[r].m(f,m),N(f,l,m),a=!0},p(f,[m]){const h={};m&2&&(h.options=[{text:f[1]("componentProperties"),value:"props",icon:P0},{text:f[1]("complexComponentProperties"),value:"complexProps",icon:I0},{text:f[1]("code"),value:"code",icon:D0}]),!i&&m&1&&(i=!0,h.value=f[0],Xn((()=>i=!1))),n.$set(h);let v=r;r=_(f),r===v?p[r].p(f,m):(It(),H(p[v],1,1,(()=>{p[v]=null})),Dt(),s=p[r],s?s.p(f,m):(s=p[r]=u[r](f),s.c()),I(s,1),s.m(l.parentNode,l))},i(f){a||(I(n.$$.fragment,f),I(s),a=!0)},o(f){H(n.$$.fragment,f),H(s),a=!1},d(f){f&&(F(e),F(o),F(l)),Me(n),p[r].d(f)}}}function Sle(t,e,n){let i;const{l10n:o}=wt(oi);Pe(t,o,(l=>n(1,i=l)));let r="props";function s(l){r=l,n(0,r)}return[r,i,o,s]}class Cle extends Gt{constructor(e){super(),Yt(this,e,Sle,jle,Rt,{})}}function V0(t,e,n){const i=t.slice();return i[29]=e[n],i}function Tle(t){let e,n=t[2]("tankerOverviewEmpty")+"",i;return{c(){e=S("div"),i=Ze(n),g(e,"class","tanker-overview__empty svelte-16fzujb")},m(o,r){N(o,e,r),$(e,i)},p(o,r){r[0]&4&&n!==(n=o[2]("tankerOverviewEmpty")+"")&<(i,n)},d(o){o&&F(e)}}}function zle(t){let e,n,i,o,r=t[2]("tankerUpdate")+"",s,l,a,c=an(Array.from(t[1].keys())),d=[];for(let f=0;f<c.length;f+=1)d[f]=L0(V0(t,c,f));function u(f,m){return f[0]?Ale:Ele}let p=u(t),_=p(t);return{c(){e=S("div");for(let f=0;f<d.length;f+=1)d[f].c();n=X(),i=S("button"),_.c(),o=X(),s=Ze(r),g(i,"class","tanker-overview__update svelte-16fzujb"),g(e,"class","tanker-overview__list svelte-16fzujb")},m(f,m){N(f,e,m);for(let h=0;h<d.length;h+=1)d[h]&&d[h].m(e,null);$(e,n),$(e,i),_.m(i,null),$(i,o),$(i,s),l||(a=ee(i,"click",t[13]),l=!0)},p(f,m){if(m[0]&7198){c=an(Array.from(f[1].keys()));let h;for(h=0;h<c.length;h+=1){const v=V0(f,c,h);d[h]?d[h].p(v,m):(d[h]=L0(v),d[h].c(),d[h].m(e,n))}for(;h<d.length;h+=1)d[h].d(1);d.length=c.length}p!==(p=u(f))&&(_.d(1),_=p(f),_&&(_.c(),_.m(i,o))),m[0]&4&&r!==(r=f[2]("tankerUpdate")+"")&<(s,r)},d(f){f&&F(e),Bi(d,f),_.d(),l=!1,a()}}}function L0(t){var E;let e,n,i=(((E=t[3][t[29]])==null?void 0:E[t[4]])||"")+"",o,r,s,l,a=t[2]("tankerKey")+"",c,d,u,p=t[29]+"",_,f,m;function h(){return t[14](t[29])}function v(){return t[15](t[29])}function y(){return t[16](t[29])}function b(){return t[17](t[29])}function w(){return t[18](t[29])}function k(){return t[19](t[29])}return{c(){e=S("div"),n=S("button"),o=Ze(i),r=X(),s=S("div"),l=S("div"),c=Ze(a),d=X(),u=S("button"),_=Ze(p),g(n,"class","tanker-overview__preview svelte-16fzujb"),g(l,"class","tanker-overview__tanker-label svelte-16fzujb"),g(u,"class","tanker-overview__tanker-key svelte-16fzujb"),g(s,"class","tanker-overview__info svelte-16fzujb"),g(e,"class","tanker-overview__item svelte-16fzujb")},m(T,j){N(T,e,j),$(e,n),$(n,o),$(e,r),$(e,s),$(s,l),$(l,c),$(s,d),$(s,u),$(u,_),f||(m=[ee(n,"click",h),ee(n,"mouseenter",v),ee(n,"mouseleave",y),ee(u,"click",b),ee(u,"mouseenter",w),ee(u,"mouseleave",k)],f=!0)},p(T,j){var A;t=T,j[0]&26&&i!==(i=(((A=t[3][t[29]])==null?void 0:A[t[4]])||"")+"")&<(o,i),j[0]&4&&a!==(a=t[2]("tankerKey")+"")&<(c,a),j[0]&2&&p!==(p=t[29]+"")&<(_,p)},d(T){T&&F(e),f=!1,qn(m)}}}function Ele(t){let e;return{c(){e=S("div"),g(e,"class","tanker-overview__update-icon svelte-16fzujb")},m(n,i){N(n,e,i)},d(n){n&&F(e)}}}function Ale(t){let e;return{c(){e=S("div"),g(e,"class","tanker-overview__update-loader svelte-16fzujb")},m(n,i){N(n,e,i)},d(n){n&&F(e)}}}function Ole(t){let e,n,i,o;e=new Il({props:{title:t[2]("tankerOverview")}});function r(a,c){return a[1].size?zle:Tle}let s=r(t),l=s(t);return{c(){Ie(e.$$.fragment),n=X(),l.c(),i=Dn()},m(a,c){Oe(e,a,c),N(a,n,c),l.m(a,c),N(a,i,c),o=!0},p(a,c){const d={};c[0]&4&&(d.title=a[2]("tankerOverview")),e.$set(d),s===(s=r(a))&&l?l.p(a,c):(l.d(1),l=s(a),l&&(l.c(),l.m(i.parentNode,i)))},i(a){o||(I(e.$$.fragment,a),o=!0)},o(a){H(e.$$.fragment,a),o=!1},d(a){a&&(F(n),F(i)),Me(e,a),l.d(a)}}}function Mle(t,e,n){let i,o,r,s,l;const{l10n:a}=wt(oi);Pe(t,a,(C=>n(2,r=C)));const{getTranslationKey:c,state:d}=wt(An),{tanker:u,tankerKeyToNodes:p,selectedLeaf:_,highlightLeaf:f,highlightElem:m,highlightRanges:h,locale:v,tree:y}=d;Pe(t,u,(C=>n(3,s=C))),Pe(t,p,(C=>n(1,i=C))),Pe(t,v,(C=>n(4,l=C))),Pe(t,y,(C=>n(20,o=C)));let b=!1;function w(C){const q=i.get(C);if(!q)return;const V=[...q][0];return no(o,V)}function k(C){const q=w(C);q&&_.set(q)}function E(C,q){const V=C==null?void 0:C.props.node,Y=C==null?void 0:C.props.range;V&&Y&&q?(f.set([C]),m.set([V]),h.set([Y])):(f.set(null),m.set(null),h.set(null))}function T(C){E(w(C),!0)}function j(C){E(w(C),!1)}async function A(){if(!(b||!c)){n(0,b=!0);try{const C=Array.from(i.keys()),q={};for(const V of C){const Y=await c(V);Y&&(q[V]=Y)}u.set(q)}finally{n(0,b=!1)}}}return[b,i,r,s,l,a,u,p,v,y,k,T,j,A,C=>k(C),C=>T(C),C=>j(C),C=>k(C),C=>T(C),C=>j(C)]}class Ple extends Gt{constructor(e){super(),Yt(this,e,Mle,Ole,Rt,{},null,[-1,-1])}}function F0(t,e,n){const i=t.slice();return i[5]=e[n],i}function Ile(t){let e,n,i,o=t[0]("sourcesEmpty")+"",r,s,l;return{c(){e=S("div"),n=X(),i=S("div"),r=Ze(o),s=X(),l=S("div"),g(e,"class","sources-overview__gap_top svelte-1nv6c5c"),g(i,"class","sources-overview__empty svelte-1nv6c5c"),g(l,"class","sources-overview__gap_bottom svelte-1nv6c5c")},m(a,c){N(a,e,c),N(a,n,c),N(a,i,c),$(i,r),N(a,s,c),N(a,l,c)},p(a,c){c&1&&o!==(o=a[0]("sourcesEmpty")+"")&<(r,o)},i:tn,o:tn,d(a){a&&(F(e),F(n),F(i),F(s),F(l))}}}function Dle(t){let e,n,i=an(t[1]),o=[];for(let s=0;s<i.length;s+=1)o[s]=N0(F0(t,i,s));const r=s=>H(o[s],1,1,(()=>{o[s]=null}));return{c(){for(let s=0;s<o.length;s+=1)o[s].c();e=Dn()},m(s,l){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(s,l);N(s,e,l),n=!0},p(s,l){if(l&3){i=an(s[1]);let a;for(a=0;a<i.length;a+=1){const c=F0(s,i,a);o[a]?(o[a].p(c,l),I(o[a],1)):(o[a]=N0(c),o[a].c(),I(o[a],1),o[a].m(e.parentNode,e))}for(It(),a=i.length;a<o.length;a+=1)r(a);Dt()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)I(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)H(o[l]);n=!1},d(s){s&&F(e),Bi(o,s)}}}function Vle(t){let e,n=JSON.stringify(t[5].example,null,4)+"",i;return{c(){e=S("div"),i=Ze(n),g(e,"class","sources-overview__json svelte-1nv6c5c")},m(o,r){N(o,e,r),$(e,i)},p(o,r){r&2&&n!==(n=JSON.stringify(o[5].example,null,4)+"")&<(i,n)},d(o){o&&F(e)}}}function Lle(t){let e,n,i=t[0]("sourcesName")+"",o,r,s,l=t[5].key+"",a,c,d,u=t[0]("sourcesUrl")+"",p,_,f,m=t[5].url+"",h;return{c(){e=S("div"),n=S("div"),o=Ze(i),r=X(),s=S("div"),a=Ze(l),c=X(),d=S("div"),p=Ze(u),_=X(),f=S("div"),h=Ze(m),g(n,"class","sources-overview__label svelte-1nv6c5c"),g(s,"class","sources-overview__value svelte-1nv6c5c"),g(d,"class","sources-overview__label svelte-1nv6c5c"),g(f,"class","sources-overview__value sources-overview__value_url svelte-1nv6c5c"),g(e,"slot","title"),g(e,"class","sources-overview__title svelte-1nv6c5c")},m(v,y){N(v,e,y),$(e,n),$(n,o),$(e,r),$(e,s),$(s,a),$(e,c),$(e,d),$(d,p),$(e,_),$(e,f),$(f,h)},p(v,y){y&1&&i!==(i=v[0]("sourcesName")+"")&<(o,i),y&2&&l!==(l=v[5].key+"")&<(a,l),y&1&&u!==(u=v[0]("sourcesUrl")+"")&<(p,u),y&2&&m!==(m=v[5].url+"")&<(h,m)},d(v){v&&F(e)}}}function N0(t){let e,n,i,o;return n=new xo({props:{$$slots:{title:[Lle],default:[Vle]},$$scope:{ctx:t}}}),{c(){e=S("div"),Ie(n.$$.fragment),i=X(),g(e,"class","sources-overview__item svelte-1nv6c5c")},m(r,s){N(r,e,s),Oe(n,e,null),$(e,i),o=!0},p(r,s){const l={};s&259&&(l.$$scope={dirty:s,ctx:r}),n.$set(l)},i(r){o||(I(n.$$.fragment,r),o=!0)},o(r){H(n.$$.fragment,r),o=!1},d(r){r&&F(e),Me(n)}}}function Fle(t){let e,n,i,o,r,s;e=new Il({props:{title:t[0]("sourcesTitle")}});const l=[Dle,Ile],a=[];function c(d,u){return d[1].length?0:1}return o=c(t),r=a[o]=l[o](t),{c(){Ie(e.$$.fragment),n=X(),i=S("div"),r.c(),g(i,"class","sources-overview svelte-1nv6c5c")},m(d,u){Oe(e,d,u),N(d,n,u),N(d,i,u),a[o].m(i,null),s=!0},p(d,[u]){const p={};u&1&&(p.title=d[0]("sourcesTitle")),e.$set(p);let _=o;o=c(d),o===_?a[o].p(d,u):(It(),H(a[_],1,1,(()=>{a[_]=null})),Dt(),r=a[o],r?r.p(d,u):(r=a[o]=l[o](d),r.c()),I(r,1),r.m(i,null))},i(d){s||(I(e.$$.fragment,d),I(r),s=!0)},o(d){H(e.$$.fragment,d),H(r),s=!1},d(d){d&&(F(n),F(i)),Me(e,d),a[o].d()}}}function Nle(t,e,n){let i,o;const{state:r}=wt(An),{l10n:s}=wt(oi);Pe(t,s,(a=>n(0,i=a)));const{sources:l}=r;return Pe(t,l,(a=>n(1,o=a))),[i,o,s,l]}class qle extends Gt{constructor(e){super(),Yt(this,e,Nle,Fle,Rt,{})}}class rp extends hr{constructor(n,i){super();on(this,"before");on(this,"after");this.before=$n(n.customVariables),this.after=i}undo(n){n.customVariables.set(this.before)}redo(n){n.customVariables.set(this.after)}canMerge(n){return super.canMerge(n)&&n instanceof rp&&this.after===n.before}mergeMeWith(n){this.after=n.after}toLangKey(){return"commands.change_custom_variables"}}function Rle(t){let e,n,i,o,r,s;return{c(){e=S("div"),n=S("input"),i=X(),o=S("div"),g(n,"class","checkbox__input svelte-cehmgw"),g(n,"type","checkbox"),g(n,"autocomplete","off"),g(n,"id",t[1]),n.disabled=t[3],g(o,"class","checkbox__bg svelte-cehmgw"),g(e,"class","checkbox__box svelte-cehmgw")},m(l,a){N(l,e,a),$(e,n),n.checked=t[0],$(e,i),$(e,o),r||(s=[ee(n,"change",t[6]),ee(n,"change",t[4])],r=!0)},p(l,a){a&2&&g(n,"id",l[1]),a&8&&(n.disabled=l[3]),a&1&&(n.checked=l[0])},d(l){l&&F(e),r=!1,qn(s)}}}function Ble(t){let e,n,i,o,r,s,l,a,c;return{c(){e=S("label"),n=S("div"),i=S("input"),o=X(),r=S("div"),s=X(),l=Ze(t[2]),g(i,"class","checkbox__input svelte-cehmgw"),g(i,"type","checkbox"),g(i,"autocomplete","off"),g(i,"id",t[1]),i.disabled=t[3],g(r,"class","checkbox__bg svelte-cehmgw"),g(n,"class","checkbox__box svelte-cehmgw"),g(e,"class","checkbox__label svelte-cehmgw")},m(d,u){N(d,e,u),$(e,n),$(n,i),i.checked=t[0],$(n,o),$(n,r),$(e,s),$(e,l),a||(c=[ee(i,"change",t[5]),ee(i,"input",t[4])],a=!0)},p(d,u){u&2&&g(i,"id",d[1]),u&8&&(i.disabled=d[3]),u&1&&(i.checked=d[0]),u&4&<(l,d[2])},d(d){d&&F(e),a=!1,qn(c)}}}function Hle(t){let e;function n(r,s){return r[2]?Ble:Rle}let i=n(t),o=i(t);return{c(){e=S("div"),o.c(),g(e,"class","checkbox svelte-cehmgw"),te(e,"checkbox_disabled",t[3])},m(r,s){N(r,e,s),o.m(e,null)},p(r,[s]){i===(i=n(r))&&o?o.p(r,s):(o.d(1),o=i(r),o&&(o.c(),o.m(e,null))),s&8&&te(e,"checkbox_disabled",r[3])},i:tn,o:tn,d(r){r&&F(e),o.d()}}}function Ule(t,e,n){let{id:i=""}=e,{value:o}=e,{label:r=""}=e,{disabled:s=!1}=e;const l=_i();function a(){l("change",o)}function c(){o=this.checked,n(0,o)}function d(){o=this.checked,n(0,o)}return t.$$set=u=>{"id"in u&&n(1,i=u.id),"value"in u&&n(0,o=u.value),"label"in u&&n(2,r=u.label),"disabled"in u&&n(3,s=u.disabled)},[o,i,r,s,a,c,d]}class PV extends Gt{constructor(e){super(),Yt(this,e,Ule,Hle,Rt,{id:1,value:0,label:2,disabled:3})}}function q0(t,e,n){const i=t.slice();i[24]=e[n],i[26]=e,i[27]=n;const o=wu(i[24]);return i[25]=o,i}function Jle(t){let e,n;function i(...o){return t[19](t[27],...o)}return e=new go({props:{value:wu(t[24]),subtype:U0(t[24]),anyStep:!0,error:t[9](t[24]),disabled:t[2]}}),e.$on("change",i),{c(){Ie(e.$$.fragment)},m(o,r){Oe(e,o,r),n=!0},p(o,r){t=o;const s={};r&1&&(s.value=wu(t[24])),r&1&&(s.subtype=U0(t[24])),r&1&&(s.error=t[9](t[24])),r&4&&(s.disabled=t[2]),e.$set(s)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){H(e.$$.fragment,o),n=!1},d(o){Me(e,o)}}}function Wle(t){let e,n;function i(...o){return t[18](t[27],...o)}return e=new ud({props:{value:t[24].value,readOnly:t[2],hasDialog:!0}}),e.$on("change",i),{c(){Ie(e.$$.fragment)},m(o,r){Oe(e,o,r),n=!0},p(o,r){t=o;const s={};r&1&&(s.value=t[24].value),r&4&&(s.readOnly=t[2]),e.$set(s)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){H(e.$$.fragment,o),n=!1},d(o){Me(e,o)}}}function Kle(t){let e,n;function i(...o){return t[17](t[27],...o)}return e=new PV({props:{value:t[24].value==="true",disabled:t[2]}}),e.$on("change",i),{c(){Ie(e.$$.fragment)},m(o,r){Oe(e,o,r),n=!0},p(o,r){t=o;const s={};r&1&&(s.value=t[24].value==="true"),r&4&&(s.disabled=t[2]),e.$set(s)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){H(e.$$.fragment,o),n=!1},d(o){Me(e,o)}}}function Yle(t){let e,n,i,o=t[1]("customVariablesName")+"",r,s,l,a,c,d,u=t[1]("customVariablesType")+"",p,_,f,m,h,v,y,b=t[1]("customVariablesValue")+"",w,k,E,T,j;function A(...C){return t[14](t[27],...C)}l=new go({props:{value:t[24].name,pattern:"[a-zA-Z_][a-zA-Z_0-9.]*",placeholder:"[a-zA-Z_][a-zA-Z_0-9.]*",disabled:t[2]}}),l.$on("change",A);function O(C){t[15](C,t[24])}function M(...C){return t[16](t[27],...C)}let D={theme:"normal",size:"medium",disabled:t[2],items:[{value:"string",text:t[1]("customVariablesTypeString")},{value:"number",text:t[1]("customVariablesTypeNumber")},{value:"integer",text:t[1]("customVariablesTypeInteger")},{value:"boolean",text:t[1]("customVariablesTypeBoolean")},{value:"url",text:t[1]("customVariablesTypeUrl")},{value:"color",text:t[1]("customVariablesTypeColor")},{value:"dict",text:t[1]("customVariablesTypeDict")},{value:"array",text:t[1]("customVariablesTypeArray")}]};t[24].type!==void 0&&(D.value=t[24].type),f=new Hr({props:D}),pt.push((()=>Gn(f,"value",O))),f.$on("change",M);const R=[Kle,Wle,Jle],U=[];function B(C,q){return C[24].type==="boolean"?0:C[24].type==="color"?1:2}return E=B(t),T=U[E]=R[E](t),{c(){e=S("div"),n=S("label"),i=S("div"),r=Ze(o),s=X(),Ie(l.$$.fragment),a=X(),c=S("label"),d=S("div"),p=Ze(u),_=X(),Ie(f.$$.fragment),h=X(),v=S("label"),y=S("div"),w=Ze(b),k=X(),T.c(),g(i,"class","custom-variables__label svelte-1ke6bxa"),g(n,"class","custom-variables__form-row svelte-1ke6bxa"),g(d,"class","custom-variables__label svelte-1ke6bxa"),g(c,"class","custom-variables__form-row svelte-1ke6bxa"),g(y,"class","custom-variables__label svelte-1ke6bxa"),g(v,"class","custom-variables__form-row svelte-1ke6bxa"),g(e,"class","custom-variables__form")},m(C,q){N(C,e,q),$(e,n),$(n,i),$(i,r),$(n,s),Oe(l,n,null),$(e,a),$(e,c),$(c,d),$(d,p),$(c,_),Oe(f,c,null),$(e,h),$(e,v),$(v,y),$(y,w),$(v,k),U[E].m(v,null),j=!0},p(C,q){t=C,(!j||q&2)&&o!==(o=t[1]("customVariablesName")+"")&<(r,o);const V={};q&1&&(V.value=t[24].name),q&4&&(V.disabled=t[2]),l.$set(V),(!j||q&2)&&u!==(u=t[1]("customVariablesType")+"")&<(p,u);const Y={};q&4&&(Y.disabled=t[2]),q&2&&(Y.items=[{value:"string",text:t[1]("customVariablesTypeString")},{value:"number",text:t[1]("customVariablesTypeNumber")},{value:"integer",text:t[1]("customVariablesTypeInteger")},{value:"boolean",text:t[1]("customVariablesTypeBoolean")},{value:"url",text:t[1]("customVariablesTypeUrl")},{value:"color",text:t[1]("customVariablesTypeColor")},{value:"dict",text:t[1]("customVariablesTypeDict")},{value:"array",text:t[1]("customVariablesTypeArray")}]),!m&&q&1&&(m=!0,Y.value=t[24].type,Xn((()=>m=!1))),f.$set(Y),(!j||q&2)&&b!==(b=t[1]("customVariablesValue")+"")&<(w,b);let x=E;E=B(t),E===x?U[E].p(t,q):(It(),H(U[x],1,1,(()=>{U[x]=null})),Dt(),T=U[E],T?T.p(t,q):(T=U[E]=R[E](t),T.c()),I(T,1),T.m(v,null))},i(C){j||(I(l.$$.fragment,C),I(f.$$.fragment,C),I(T),j=!0)},o(C){H(l.$$.fragment,C),H(f.$$.fragment,C),H(T),j=!1},d(C){C&&F(e),Me(l),Me(f),U[E].d()}}}function Gle(t){let e,n,i=(t[24].name||t[1]("customVariablesEmptyName"))+"",o,r,s,l,a=t[25]+"",c,d;return{c(){e=S("div"),n=S("span"),o=Ze(i),s=X(),l=S("span"),c=Ze(a),g(n,"class","custom-variables__name svelte-1ke6bxa"),g(n,"title",r=t[24].name),g(l,"class","custom-variables__value svelte-1ke6bxa"),g(l,"title",d=t[25]),g(e,"slot","title"),g(e,"class","custom-variables__title svelte-1ke6bxa"),te(e,"custom-variables__title_empty",!t[24].name)},m(u,p){N(u,e,p),$(e,n),$(n,o),$(e,s),$(e,l),$(l,c)},p(u,p){p&3&&i!==(i=(u[24].name||u[1]("customVariablesEmptyName"))+"")&<(o,i),p&1&&r!==(r=u[24].name)&&g(n,"title",r),p&1&&a!==(a=u[25]+"")&<(c,a),p&1&&d!==(d=u[25])&&g(l,"title",d),p&1&&te(e,"custom-variables__title_empty",!u[24].name)},d(u){u&&F(e)}}}function R0(t){let e,n,i,o,r;function s(){return t[20](t[27])}return{c(){e=S("button"),g(e,"class","custom-variables__delete svelte-1ke6bxa"),g(e,"aria-label",n=t[1]("delete")),g(e,"data-custom-tooltip",i=t[1]("delete"))},m(l,a){N(l,e,a),o||(r=ee(e,"click",Eo(zi(s))),o=!0)},p(l,a){t=l,a&2&&n!==(n=t[1]("delete"))&&g(e,"aria-label",n),a&2&&i!==(i=t[1]("delete"))&&g(e,"data-custom-tooltip",i)},d(l){l&&F(e),o=!1,r()}}}function B0(t,e){let n,i,o,r,s;i=new xo({props:{open:!e[24].name,mix:"custom-variables__spoiler",$$slots:{title:[Gle],default:[Yle]},$$scope:{ctx:e}}});let l=!e[2]&&R0(e);return{key:t,first:null,c(){n=S("div"),Ie(i.$$.fragment),o=X(),l&&l.c(),g(n,"class","custom-variables__item svelte-1ke6bxa"),te(n,"custom-variables__item_disabled",e[2]),this.first=n},m(a,c){N(a,n,c),Oe(i,n,null),$(n,o),l&&l.m(n,null),s=!0},p(a,c){e=a;const d={};c&1&&(d.open=!e[24].name),c&268435463&&(d.$$scope={dirty:c,ctx:e}),i.$set(d),e[2]?l&&(l.d(1),l=null):l?l.p(e,c):(l=R0(e),l.c(),l.m(n,null)),(!s||c&4)&&te(n,"custom-variables__item_disabled",e[2])},i(a){s||(I(i.$$.fragment,a),a&&po((()=>{s&&(r||(r=Zi(n,Go,{},!0)),r.run(1))})),s=!0)},o(a){H(i.$$.fragment,a),a&&(r||(r=Zi(n,Go,{},!1)),r.run(0)),s=!1},d(a){a&&F(n),Me(i),l&&l.d(),a&&r&&r.end()}}}function H0(t){let e,n;return e=new Gs({props:{cls:"custom-variables__add",disabled:t[2],$$slots:{default:[Xle]},$$scope:{ctx:t}}}),e.$on("click",t[7]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&4&&(r.disabled=i[2]),o&268435458&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Xle(t){let e=t[1]("customVariablesAdd")+"",n;return{c(){n=Ze(e)},m(i,o){N(i,n,o)},p(i,o){o&2&&e!==(e=i[1]("customVariablesAdd")+"")&<(n,e)},d(i){i&&F(n)}}}function Zle(t){let e,n,i,o=[],r=new Map,s,l,a,c;e=new Il({props:{title:t[1]("customVariablesTitle")}});let d=an(t[0]);const u=_=>_[24].id;for(let _=0;_<d.length;_+=1){let f=q0(t,d,_),m=u(f);r.set(m,o[_]=B0(m,f))}let p=!t[2]&&H0(t);return{c(){Ie(e.$$.fragment),n=X(),i=S("div");for(let _=0;_<o.length;_+=1)o[_].c();s=X(),p&&p.c(),l=X(),a=S("div"),g(a,"class","custom-variables__spacer svelte-1ke6bxa"),g(i,"class","custom-variables svelte-1ke6bxa")},m(_,f){Oe(e,_,f),N(_,n,f),N(_,i,f);for(let m=0;m<o.length;m+=1)o[m]&&o[m].m(i,null);$(i,s),p&&p.m(i,null),$(i,l),$(i,a),c=!0},p(_,[f]){const m={};f&2&&(m.title=_[1]("customVariablesTitle")),e.$set(m),f&16135&&(d=an(_[0]),It(),o=Hs(o,f,u,1,_,d,r,i,zl,B0,s,q0),Dt()),_[2]?p&&(It(),H(p,1,1,(()=>{p=null})),Dt()):p?(p.p(_,f),f&4&&I(p,1)):(p=H0(_),p.c(),I(p,1),p.m(i,l))},i(_){if(!c){I(e.$$.fragment,_);for(let f=0;f<d.length;f+=1)I(o[f]);I(p),c=!0}},o(_){H(e.$$.fragment,_);for(let f=0;f<o.length;f+=1)H(o[f]);H(p),c=!1},d(_){_&&(F(n),F(i)),Me(e,_);for(let f=0;f<o.length;f+=1)o[f].d();p&&p.d()}}}function wu(t){return t.value}function U0(t){return t.type==="integer"||t.type==="number"?t.type:""}function xle(t,e,n){let i,o,r,s;const{l10nString:l}=wt(oi);Pe(t,l,(M=>n(1,o=M)));const{state:a}=wt(An),{readOnly:c,tree:d}=a;Pe(t,c,(M=>n(2,s=M))),Pe(t,d,(M=>n(21,r=M)));const{customVariables:u}=a;Pe(t,u,(M=>n(0,i=M)));function p(M){a.pushCommand(new rp(a,M)),Mi(u,i=M,i),d.set(r)}function _(){const M=i.slice();M.push({id:a.genVariableId(),name:"",type:"string",value:""}),p(M)}function f(M,D){const R=D.detail,U={...i[M]};switch(R){case"string":case"url":case"color":U.value="";break;case"integer":case"number":U.value="0";break;case"boolean":U.value="false";break;case"dict":U.value="{}";break;case"array":U.value="[]";break}const B=i.slice();B[M]=U,p(B)}function m(M){if(M.type==="boolean"){if(M.value!=="true"&&M.value!=="false")return o("customVariablesBooleanValidation")}else if(M.type==="dict"||M.type==="array")try{JSON.parse(M.value)}catch{return o("customVariablesJsonValidation")}return""}function h(M,D){const R={...i[M]};R.name=String(D.detail.value);const U=i.slice();U[M]=R,p(U)}function v(M,D){const R={...i[M]};R.value=String(D.detail.value);const U=i.slice();U[M]=R,p(U)}function y(M,D){const R={...i[M]};R.value=String(D.detail);const U=i.slice();U[M]=R,p(U)}function b(M){const D=i.slice();D.splice(M,1),p(D)}const w=(M,D)=>h(M,D);function k(M,D){t.$$.not_equal(D.type,M)&&(D.type=M,u.set(i))}return[i,o,s,l,c,d,u,_,f,m,h,v,y,b,w,k,(M,D)=>f(M,D),(M,D)=>y(M,D),(M,D)=>v(M,D),(M,D)=>v(M,D),M=>b(M)]}class Qle extends Gt{constructor(e){super(),Yt(this,e,xle,Zle,Rt,{})}}class sp extends hr{constructor(n,i){super();on(this,"before");on(this,"after");this.before=$n(n.timers),this.after=i}undo(n){n.timers.set(this.before)}redo(n){n.timers.set(this.after)}canMerge(n){return super.canMerge(n)&&n instanceof sp&&this.after===n.before}mergeMeWith(n){this.after=n.after}toLangKey(){return"commands.change_timers"}}function J0(t,e,n){const i=t.slice();return i[25]=e[n],i[27]=n,i}function eae(t){let e,n,i,o=t[1]("timersId")+"",r,s,l,a,c,d,u=t[1]("timersValueVariable")+"",p,_,f,m,h,v,y=t[1]("timersDuration")+"",b,w,k,E,T,j,A=t[1]("timersTickInterval")+"",O,M,D,R,U,B,C=t[1]("timersTickActions")+"",q,V,Y,x,de,_e,G=t[1]("timersEndActions")+"",Q,oe,he,ze;function W(...ue){return t[15](t[27],...ue)}l=new go({props:{value:t[25].id,pattern:"[a-zA-Z_][a-zA-Z_0-9.]*",placeholder:"[a-zA-Z_][a-zA-Z_0-9.]*",disabled:t[2]}}),l.$on("change",W);function Ke(...ue){return t[16](t[27],...ue)}f=new EV({props:{item:{type:"variable-name"},value:t[25].value_variable||""}}),f.$on("change",Ke);function at(...ue){return t[17](t[27],...ue)}k=new go({props:{value:t[25].duration,disabled:t[2]}}),k.$on("change",at);function Te(...ue){return t[18](t[27],...ue)}D=new go({props:{value:t[25].tick_interval,disabled:t[2]}}),D.$on("change",Te);function ot(...ue){return t[19](t[27],...ue)}Y=new yu({props:{item:{type:"actions2"},value:t[25].tick_actions}}),Y.$on("change",ot);function J(...ue){return t[20](t[27],...ue)}return he=new yu({props:{item:{type:"actions2"},value:t[25].end_actions}}),he.$on("change",J),{c(){e=S("div"),n=S("label"),i=S("div"),r=Ze(o),s=X(),Ie(l.$$.fragment),a=X(),c=S("label"),d=S("div"),p=Ze(u),_=X(),Ie(f.$$.fragment),m=X(),h=S("label"),v=S("div"),b=Ze(y),w=X(),Ie(k.$$.fragment),E=X(),T=S("label"),j=S("div"),O=Ze(A),M=X(),Ie(D.$$.fragment),R=X(),U=S("div"),B=S("div"),q=Ze(C),V=X(),Ie(Y.$$.fragment),x=X(),de=S("div"),_e=S("div"),Q=Ze(G),oe=X(),Ie(he.$$.fragment),g(i,"class","timers__label svelte-q1uxjz"),g(n,"class","timers__form-row svelte-q1uxjz"),g(d,"class","timers__label svelte-q1uxjz"),g(c,"class","timers__form-row svelte-q1uxjz"),g(v,"class","timers__label svelte-q1uxjz"),g(h,"class","timers__form-row svelte-q1uxjz"),g(j,"class","timers__label svelte-q1uxjz"),g(T,"class","timers__form-row svelte-q1uxjz"),g(B,"class","timers__label timers__label_compact svelte-q1uxjz"),g(U,"class","timers__form-row svelte-q1uxjz"),g(_e,"class","timers__label timers__label_compact svelte-q1uxjz"),g(de,"class","timers__form-row svelte-q1uxjz"),g(e,"class","timers__form")},m(ue,fe){N(ue,e,fe),$(e,n),$(n,i),$(i,r),$(n,s),Oe(l,n,null),$(e,a),$(e,c),$(c,d),$(d,p),$(c,_),Oe(f,c,null),$(e,m),$(e,h),$(h,v),$(v,b),$(h,w),Oe(k,h,null),$(e,E),$(e,T),$(T,j),$(j,O),$(T,M),Oe(D,T,null),$(e,R),$(e,U),$(U,B),$(B,q),$(U,V),Oe(Y,U,null),$(e,x),$(e,de),$(de,_e),$(_e,Q),$(de,oe),Oe(he,de,null),ze=!0},p(ue,fe){t=ue,(!ze||fe&2)&&o!==(o=t[1]("timersId")+"")&<(r,o);const Qe={};fe&1&&(Qe.value=t[25].id),fe&4&&(Qe.disabled=t[2]),l.$set(Qe),(!ze||fe&2)&&u!==(u=t[1]("timersValueVariable")+"")&<(p,u);const ye={};fe&1&&(ye.value=t[25].value_variable||""),f.$set(ye),(!ze||fe&2)&&y!==(y=t[1]("timersDuration")+"")&<(b,y);const Ee={};fe&1&&(Ee.value=t[25].duration),fe&4&&(Ee.disabled=t[2]),k.$set(Ee),(!ze||fe&2)&&A!==(A=t[1]("timersTickInterval")+"")&<(O,A);const Ye={};fe&1&&(Ye.value=t[25].tick_interval),fe&4&&(Ye.disabled=t[2]),D.$set(Ye),(!ze||fe&2)&&C!==(C=t[1]("timersTickActions")+"")&<(q,C);const vt={};fe&1&&(vt.value=t[25].tick_actions),Y.$set(vt),(!ze||fe&2)&&G!==(G=t[1]("timersEndActions")+"")&<(Q,G);const ne={};fe&1&&(ne.value=t[25].end_actions),he.$set(ne)},i(ue){ze||(I(l.$$.fragment,ue),I(f.$$.fragment,ue),I(k.$$.fragment,ue),I(D.$$.fragment,ue),I(Y.$$.fragment,ue),I(he.$$.fragment,ue),ze=!0)},o(ue){H(l.$$.fragment,ue),H(f.$$.fragment,ue),H(k.$$.fragment,ue),H(D.$$.fragment,ue),H(Y.$$.fragment,ue),H(he.$$.fragment,ue),ze=!1},d(ue){ue&&F(e),Me(l),Me(f),Me(k),Me(D),Me(Y),Me(he)}}}function tae(t){let e,n,i=(t[25].id||t[1]("timersEmptyId"))+"",o,r;return{c(){e=S("div"),n=S("span"),o=Ze(i),g(n,"class","timers__id svelte-q1uxjz"),g(n,"title",r=t[25].id),g(e,"slot","title"),g(e,"class","timers__title svelte-q1uxjz"),te(e,"timers__title_empty",!t[25].id)},m(s,l){N(s,e,l),$(e,n),$(n,o)},p(s,l){l&3&&i!==(i=(s[25].id||s[1]("timersEmptyId"))+"")&<(o,i),l&1&&r!==(r=s[25].id)&&g(n,"title",r),l&1&&te(e,"timers__title_empty",!s[25].id)},d(s){s&&F(e)}}}function W0(t){let e,n,i,o,r;function s(){return t[21](t[27])}return{c(){e=S("button"),g(e,"class","timers__delete svelte-q1uxjz"),g(e,"aria-label",n=t[1]("delete")),g(e,"data-custom-tooltip",i=t[1]("delete"))},m(l,a){N(l,e,a),o||(r=ee(e,"click",Eo(zi(s))),o=!0)},p(l,a){t=l,a&2&&n!==(n=t[1]("delete"))&&g(e,"aria-label",n),a&2&&i!==(i=t[1]("delete"))&&g(e,"data-custom-tooltip",i)},d(l){l&&F(e),o=!1,r()}}}function K0(t,e){let n,i,o,r,s;i=new xo({props:{open:!e[25].id,mix:"timers__spoiler",$$slots:{title:[tae],default:[eae]},$$scope:{ctx:e}}});let l=!e[2]&&W0(e);return{key:t,first:null,c(){n=S("div"),Ie(i.$$.fragment),o=X(),l&&l.c(),g(n,"class","timers__item svelte-q1uxjz"),te(n,"timers__item_disabled",e[2]),this.first=n},m(a,c){N(a,n,c),Oe(i,n,null),$(n,o),l&&l.m(n,null),s=!0},p(a,c){e=a;const d={};c&1&&(d.open=!e[25].id),c&268435463&&(d.$$scope={dirty:c,ctx:e}),i.$set(d),e[2]?l&&(l.d(1),l=null):l?l.p(e,c):(l=W0(e),l.c(),l.m(n,null)),(!s||c&4)&&te(n,"timers__item_disabled",e[2])},i(a){s||(I(i.$$.fragment,a),a&&po((()=>{s&&(r||(r=Zi(n,Go,{},!0)),r.run(1))})),s=!0)},o(a){H(i.$$.fragment,a),a&&(r||(r=Zi(n,Go,{},!1)),r.run(0)),s=!1},d(a){a&&F(n),Me(i),l&&l.d(),a&&r&&r.end()}}}function Y0(t){let e,n;return e=new Gs({props:{cls:"timers__add",disabled:t[2],$$slots:{default:[nae]},$$scope:{ctx:t}}}),e.$on("click",t[7]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&4&&(r.disabled=i[2]),o&268435458&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function nae(t){let e=t[1]("timersAdd")+"",n;return{c(){n=Ze(e)},m(i,o){N(i,n,o)},p(i,o){o&2&&e!==(e=i[1]("timersAdd")+"")&<(n,e)},d(i){i&&F(n)}}}function iae(t){let e,n,i,o=[],r=new Map,s,l,a,c;e=new Il({props:{title:t[1]("timersTitle")}});let d=an(t[0]);const u=_=>_[25].__id;for(let _=0;_<d.length;_+=1){let f=J0(t,d,_),m=u(f);r.set(m,o[_]=K0(m,f))}let p=!t[2]&&Y0(t);return{c(){Ie(e.$$.fragment),n=X(),i=S("div");for(let _=0;_<o.length;_+=1)o[_].c();s=X(),p&&p.c(),l=X(),a=S("div"),g(a,"class","timers__spacer svelte-q1uxjz"),g(i,"class","timers svelte-q1uxjz")},m(_,f){Oe(e,_,f),N(_,n,f),N(_,i,f);for(let m=0;m<o.length;m+=1)o[m]&&o[m].m(i,null);$(i,s),p&&p.m(i,null),$(i,l),$(i,a),c=!0},p(_,[f]){const m={};f&2&&(m.title=_[1]("timersTitle")),e.$set(m),f&32519&&(d=an(_[0]),It(),o=Hs(o,f,u,1,_,d,r,i,zl,K0,s,J0),Dt()),_[2]?p&&(It(),H(p,1,1,(()=>{p=null})),Dt()):p?(p.p(_,f),f&4&&I(p,1)):(p=Y0(_),p.c(),I(p,1),p.m(i,l))},i(_){if(!c){I(e.$$.fragment,_);for(let f=0;f<d.length;f+=1)I(o[f]);I(p),c=!0}},o(_){H(e.$$.fragment,_);for(let f=0;f<o.length;f+=1)H(o[f]);H(p),c=!1},d(_){_&&(F(n),F(i)),Me(e,_);for(let f=0;f<o.length;f+=1)o[f].d();p&&p.d()}}}function oae(t,e,n){let i,o,r,s;const{l10nString:l}=wt(oi);Pe(t,l,(D=>n(1,r=D)));const{state:a}=wt(An),{timers:c,readOnly:d,tree:u}=a;Pe(t,c,(D=>n(0,i=D))),Pe(t,d,(D=>n(2,s=D))),Pe(t,u,(D=>n(22,o=D)));function p(D){a.pushCommand(new sp(a,D)),Mi(c,i=D,i),u.set(o)}function _(){const D=i.slice();D.push({__id:a.genTimerId(),id:""}),p(D)}function f(D,R){const U={...i[D]};U.id=String(R.detail.value);const B=i.slice();B[D]=U,p(B)}function m(D,R){const U={...i[D]};U.value_variable=String(R.detail.value);const B=i.slice();B[D]=U,p(B)}function h(D,R){const U={...i[D]};U.duration=R.detail.value;const B=i.slice();B[D]=U,p(B)}function v(D,R){const U={...i[D]};U.tick_interval=R.detail.value;const B=i.slice();B[D]=U,p(B)}function y(D,R){var C;const U={...i[D]};U.tick_actions=(C=R.detail.values.find((q=>q.prop==="actions")))==null?void 0:C.value;const B=i.slice();B[D]=U,p(B)}function b(D,R){var C;const U={...i[D]};U.end_actions=(C=R.detail.values.find((q=>q.prop==="actions")))==null?void 0:C.value;const B=i.slice();B[D]=U,p(B)}function w(D){const R=i.slice();R.splice(D,1),p(R)}return[i,r,s,l,c,d,u,_,f,m,h,v,y,b,w,(D,R)=>f(D,R),(D,R)=>m(D,R),(D,R)=>h(D,R),(D,R)=>v(D,R),(D,R)=>y(D,R),(D,R)=>b(D,R),D=>w(D)]}class rae extends Gt{constructor(e){super(),Yt(this,e,oae,iae,Rt,{})}}function sae(t){let e,n,i;var o=t[0][0].component;function r(s,l){return{}}return o&&(e=hl(o,r())),{c(){e&&Ie(e.$$.fragment),n=Dn()},m(s,l){e&&Oe(e,s,l),N(s,n,l),i=!0},p(s,l){if(l&1&&o!==(o=s[0][0].component)){if(e){It();const a=e;H(a.$$.fragment,1,0,(()=>{Me(a,1)})),Dt()}o?(e=hl(o,r()),Ie(e.$$.fragment),I(e.$$.fragment,1),Oe(e,n.parentNode,n)):e=null}},i(s){i||(e&&I(e.$$.fragment,s),i=!0)},o(s){e&&H(e.$$.fragment,s),i=!1},d(s){s&&F(n),e&&Me(e,s)}}}function lae(t){let e,n;return e=new v1({props:{orientation:"vertical",components:t[0]}}),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.components=i[0]),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function aae(t){let e,n,i,o;const r=[lae,sae],s=[];function l(a,c){return a[0].length?0:1}return e=l(t),n=s[e]=r[e](t),{c(){n.c(),i=Dn()},m(a,c){s[e].m(a,c),N(a,i,c),o=!0},p(a,[c]){let d=e;e=l(a),e===d?s[e].p(a,c):(It(),H(s[d],1,1,(()=>{s[d]=null})),Dt(),n=s[e],n?n.p(a,c):(n=s[e]=r[e](a),n.c()),I(n,1),n.m(i.parentNode,i))},i(a){o||(I(n),o=!0)},o(a){H(n),o=!1},d(a){a&&F(i),s[e].d(a)}}}function cae(t,e,n){let i,o,r,s,{items:l}=e;const{state:a}=wt(An),{paletteEnabled:c,readOnly:d}=a;return Pe(t,c,(u=>n(5,r=u))),Pe(t,d,(u=>n(6,s=u))),t.$$set=u=>{"items"in u&&n(3,l=u.items)},t.$$.update=()=>{t.$$.dirty&96&&n(4,i={"new-component":s?null:die,"component-tree":tie,"component-props":OV,preview:Rne,palette:r?Vie:null,code:MV,"component-props:code":Cle,"tanker-overview":Ple,"sources-overview":qle,"custom-variables":Qle,timers:rae}),t.$$.dirty&24&&n(0,o=l.map((u=>{if(i[u])return{component:i[u],weight:1,minSize:200}})).filter(kr))},[o,c,d,l,i,r,s]}class dae extends Gt{constructor(e){super(),Yt(this,e,cae,aae,Rt,{items:3})}}function uae(t){let e,n=!0,i,o,r,s,l;return import("./editor.js").then((({createEditor:a})=>{n&&(e=a(t),i&&e.setValue(i),o&&e.setTheme(o),r&&e.setReadOnly(r),s&&e.revealLoc(s),l&&e.decorateRanges(l))})),{setValue(a){e?e.setValue(a):i=a},setTheme(a){e?e.setTheme(a):o=a},setReadOnly(a){e?e.setReadOnly(a):r=a},revealLoc(a){e?e.revealLoc(a):s=a},decorateRanges(a){e?e.decorateRanges(a):l=a},isFocused(){return(e==null?void 0:e.isFocused())||!1},destroy(){n=!1,e==null||e.destroy()}}}function G0(t){var a,c;let e,n,i,o,r=`${t[1].bottom+t[7]-(((a=t[5])==null?void 0:a.top)||0)}px`,s=`${t[1].left+t[6]+(t[4]==="center"?t[1].width/2:0)-(((c=t[5])==null?void 0:c.left)||0)}px`,l;return{c(){e=S("div"),n=Ze(t[3]),g(e,"class",i="custom-tooltip custom-tooltip_align_"+t[4]+" svelte-1atc9mm"),je(e,"top",r),je(e,"left",s)},m(d,u){N(d,e,u),$(e,n),l=!0},p(d,u){var p,_;(!l||u&8)&<(n,d[3]),(!l||u&16&&i!==(i="custom-tooltip custom-tooltip_align_"+d[4]+" svelte-1atc9mm"))&&g(e,"class",i),u&162&&r!==(r=`${d[1].bottom+d[7]-(((p=d[5])==null?void 0:p.top)||0)}px`)&&je(e,"top",r),u&114&&s!==(s=`${d[1].left+d[6]+(d[4]==="center"?d[1].width/2:0)-(((_=d[5])==null?void 0:_.left)||0)}px`)&&je(e,"left",s)},i(d){l||(po((()=>{l&&(o||(o=Zi(e,fr,{y:10,duration:200},!0)),o.run(1))})),l=!0)},o(d){o||(o=Zi(e,fr,{y:10,duration:200},!1)),o.run(0),l=!1},d(d){d&&F(e),d&&o&&o.end()}}}function X0(t){let e,n,i=t[3]&&t[1]&&G0(t);return{c(){i&&i.c(),e=Dn()},m(o,r){i&&i.m(o,r),N(o,e,r),n=!0},p(o,r){o[3]&&o[1]?i?(i.p(o,r),r&10&&I(i,1)):(i=G0(o),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(It(),H(i,1,1,(()=>{i=null})),Dt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&F(e),i&&i.d(o)}}}function pae(t){let e=!1,n=()=>{e=!1},i,o,r=t[0],s,l,a;po(t[9]);let c=X0(t);return{c(){o=S("div"),c.c()},m(d,u){N(d,o,u),c.m(o,null),t[10](o),s=!0,l||(a=ee(window,"scroll",(()=>{e=!0,clearTimeout(i),i=setTimeout(n,100),t[9]()})),l=!0)},p(d,[u]){u&192&&!e&&(e=!0,clearTimeout(i),scrollTo(d[6],d[7]),i=setTimeout(n,100)),u&1&&Rt(r,r=d[0])?(It(),H(c,1,1,tn),Dt(),c=X0(d),c.c(),I(c,1),c.m(o,null)):c.p(d,u)},i(d){s||(I(c),s=!0)},o(d){H(c),s=!1},d(d){d&&F(o),c.d(d),t[10](null),l=!1,a()}}}function _ae(t,e,n){let{owner:i}=e,o=null,r="",s="center",l,a,c,d=0,u=0;function p(){n(3,r="")}function _(){n(6,d=window.pageXOffset),n(7,u=window.pageYOffset)}function f(m){pt[m?"unshift":"push"]((()=>{c=m,n(2,c)}))}return t.$$set=m=>{"owner"in m&&n(0,i=m.owner)},t.$$.update=()=>{var m;if(t.$$.dirty&7){let h="center";n(1,l=i==null?void 0:i.getBoundingClientRect()),l&&l.left<50&&(h="left"),n(3,r=(i==null?void 0:i.getAttribute("data-custom-tooltip"))||""),n(4,s=(i==null?void 0:i.getAttribute("data-custom-tooltop-align"))||h),n(5,a=(m=c==null?void 0:c.parentElement)==null?void 0:m.getBoundingClientRect())}t.$$.dirty&257&&(o&&(o.removeEventListener("click",p),o.removeEventListener("pointerdown",p)),i&&(i.addEventListener("click",p),i.addEventListener("pointerdown",p),n(8,o=i)))},[i,l,c,r,s,a,d,u,o,_,f]}class fae extends Gt{constructor(e){super(),Yt(this,e,_ae,pae,Rt,{owner:0})}}function mae(t){let e,n,i,o,r,s,l,a,c,d,u,p,_,f,m,h,v,y,b,w,k,E,T,j,A,O,M;function D(U){t[16](U)}let R={readOnly:t[1]};return t[0]!==void 0&&(R.value=t[0]),T=new ud({props:R}),pt.push((()=>Gn(T,"value",D))),T.$on("change",t[11]),{c(){e=S("div"),n=S("div"),i=S("div"),o=S("div"),r=S("div"),s=X(),l=S("div"),a=S("div"),c=S("div"),d=X(),u=S("input"),p=X(),_=S("div"),f=S("div"),m=X(),h=S("div"),v=X(),y=S("div"),b=X(),w=S("input"),k=X(),E=S("div"),Ie(T.$$.fragment),g(r,"class","color-select__target svelte-4uc5q5"),je(r,"--saturation",t[3]),je(r,"--value",t[4]),g(o,"class","color-select__value svelte-4uc5q5"),g(i,"class","color-select__saturation svelte-4uc5q5"),g(n,"class","color-select__spectrum svelte-4uc5q5"),g(n,"tabindex","0"),je(n,"background",t[7]),g(c,"class","color-select__range-value svelte-4uc5q5"),g(u,"type","range"),g(u,"class","color-select__range-input svelte-4uc5q5"),u.value=t[2],g(u,"min","0"),g(u,"max","0.99"),g(u,"step","0.01"),u.disabled=t[1],g(a,"class","color-select__range color-select__hue svelte-4uc5q5"),je(a,"--value",t[2]),g(f,"class","color-select__alpha-bg svelte-4uc5q5"),g(h,"class","color-select__alpha-value svelte-4uc5q5"),g(y,"class","color-select__range-value svelte-4uc5q5"),g(w,"type","range"),g(w,"class","color-select__range-input svelte-4uc5q5"),g(w,"min","0"),g(w,"max","1"),g(w,"step","0.01"),w.value=t[6],w.disabled=t[1],g(_,"class","color-select__range color-select__alpha svelte-4uc5q5"),je(_,"--value",t[6]),je(_,"--color",t[8]),g(E,"class","color-select__input svelte-4uc5q5"),g(l,"class","color-select__values svelte-4uc5q5"),g(e,"class","color-select svelte-4uc5q5"),te(e,"color-select_disabled",t[1])},m(U,B){N(U,e,B),$(e,n),$(n,i),$(i,o),$(o,r),t[15](n),$(e,s),$(e,l),$(l,a),$(a,c),$(a,d),$(a,u),$(l,p),$(l,_),$(_,f),$(_,m),$(_,h),$(_,v),$(_,y),$(_,b),$(_,w),$(l,k),$(l,E),Oe(T,E,null),A=!0,O||(M=[ee(n,"pointerdown",t[12]),ee(n,"keydown",t[13]),ee(u,"input",t[9]),ee(w,"input",t[10])],O=!0)},p(U,[B]){B&8&&je(r,"--saturation",U[3]),B&16&&je(r,"--value",U[4]),B&128&&je(n,"background",U[7]),(!A||B&4)&&(u.value=U[2]),(!A||B&2)&&(u.disabled=U[1]),B&4&&je(a,"--value",U[2]),(!A||B&64)&&(w.value=U[6]),(!A||B&2)&&(w.disabled=U[1]),B&64&&je(_,"--value",U[6]),B&256&&je(_,"--color",U[8]);const C={};B&2&&(C.readOnly=U[1]),!j&&B&1&&(j=!0,C.value=U[0],Xn((()=>j=!1))),T.$set(C),(!A||B&2)&&te(e,"color-select_disabled",U[1])},i(U){A||(I(T.$$.fragment,U),A=!0)},o(U){H(T.$$.fragment,U),A=!1},d(U){U&&F(e),t[15](null),Me(T),O=!1,qn(M)}}}const Z0={a:255,r:0,g:0,b:0};function gae(t,e,n){let i,o,r,{value:s}=e,{disabled:l=!1}=e;const a=_i();let c=_r(s||"")||{...Z0},d=0,u=0,p=0,_;v([]);function f(j){n(2,d=Number(j.target.value));const A=Ra({h:d,s:u,v:p,a:r});n(14,c=A),v(["hue","saturation","value"]),a("change",s)}function m(j){n(14,c={...c,a:Math.round(Number(j.target.value)*255)}),v(["alpha"]),a("change",s)}function h(){const j=_r(s);j&&(n(14,c=j),v(["hex"]),a("change",s))}function v(j){const A=bie(c);j.includes("hue")||n(2,d=A.h),j.includes("saturation")||n(3,u=A.s),j.includes("value")||n(4,p=A.v),n(0,s=ms(c))}function y(j){const A=_.getBoundingClientRect(),O=Math.max(0,Math.min(1,(j.clientX-A.left)/A.width)),M=Math.max(0,Math.min(1,(j.clientY-A.top)/A.height));n(3,u=O),n(4,p=1-M);const D=Ra({h:d,s:u,v:p,a:r});n(14,c=D),v(["hue","saturation","value"]),a("change",s)}function b(j){if(j.button!==0||l)return;y(j),j.preventDefault(),_.focus({preventScroll:!0});function A(M){y(M),M.preventDefault()}function O(M){M.preventDefault(),document.body.removeEventListener("pointermove",A),document.body.removeEventListener("pointerup",O),document.body.removeEventListener("pointercancel",O);const D=R=>{R.preventDefault(),R.stopPropagation()};document.body.addEventListener("click",D),setTimeout((()=>{document.body.removeEventListener("click",D)}),150)}document.body.addEventListener("pointermove",A),document.body.addEventListener("pointerup",O),document.body.addEventListener("pointercancel",O)}function w(j,A){n(3,u=Math.max(0,Math.min(1,u+j))),n(4,p=Math.max(0,Math.min(1,p-A)));const O=Ra({h:d,s:u,v:p,a:r});n(14,c=O),v(["hue","saturation","value"]),a("change",s)}function k(j){if(FL.isPressed(j))w(0,-.05);else if(RL.isPressed(j))w(.05,0);else if(NL.isPressed(j))w(0,.05);else if(qL.isPressed(j))w(-.05,0);else return;j.preventDefault(),j.stopPropagation()}function E(j){pt[j?"unshift":"push"]((()=>{_=j,n(5,_)}))}function T(j){s=j,n(0,s)}return t.$$set=j=>{"value"in j&&n(0,s=j.value),"disabled"in j&&n(1,l=j.disabled)},t.$$.update=()=>{t.$$.dirty&16385&&s!==ms(c)&&(n(14,c=_r(s||"")||{...Z0}),v([])),t.$$.dirty&16384&&n(8,i=_a({...c,a:255})),t.$$.dirty&4&&n(7,o=_a(Ra({h:d,s:1,v:1,a:1}))),t.$$.dirty&16384&&n(6,r=c.a/255)},[s,l,d,u,p,_,r,o,i,f,m,h,b,k,c,E,T]}class lp extends Gt{constructor(e){super(),Yt(this,e,gae,mae,Rt,{value:0,disabled:1})}}const hae='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="27" fill="none"><path stroke="currentColor" d="M.5 6A5.5 5.5 0 0 1 6 .5h12A5.5 5.5 0 0 1 23.5 6v12a5.5 5.5 0 0 1-5.5 5.5h-2.586a1.5 1.5 0 0 0-1.06.44l-2 2a.5.5 0 0 1-.708 0l-2-2a1.5 1.5 0 0 0-1.06-.44H6A5.5 5.5 0 0 1 .5 18V6Z"/></svg>',x0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%235959E8'%20d='M7%209h18v14H7z'/%3e%3cpath%20fill='%23fff'%20d='M15.159%2011.57h1.656l3.04%208.143h-1.182l-.876-2.328h-3.75l-.864%202.328h-1.041l3.017-8.143Zm2.283%204.85-1.514-4.055-1.515%204.055h3.03Z'/%3e%3cpath%20stroke='%23000'%20d='M6.5%206.5h19v19h-19z'/%3e%3c/svg%3e",Q0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%235959E8'%20fill-opacity='.25'%20d='M3%207h26v18H3z'/%3e%3cpath%20fill='%235959E8'%20d='M6%207h20v18H6z'/%3e%3cpath%20fill='%23fff'%20d='M14.877%2010.093h2.209L21.14%2020.95h-1.577l-1.168-3.104h-5l-1.152%203.104h-1.389l4.023-10.857Zm3.045%206.466-2.02-5.406-2.019%205.406h4.039Z'/%3e%3cpath%20stroke='%23000'%20d='M6.5%206.5h19v19h-19z'/%3e%3c/svg%3e",ev="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%235959E8'%20fill-opacity='.25'%20d='M0%204h32v24H0z'/%3e%3cpath%20fill='%235959E8'%20d='M6%206h20v20H6z'/%3e%3cpath%20fill='%23fff'%20d='M14.246%208.484h2.892l5.31%2014.219H20.38l-1.528-4.066h-6.55l-1.507%204.066H8.978l5.268-14.219Zm3.987%208.468-2.645-7.08-2.644%207.08h5.289Z'/%3e%3cpath%20stroke='%23000'%20d='M6.5%206.5h19v19h-19z'/%3e%3c/svg%3e",tv="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%235959E8'%20d='M7%207h18v18H7z'/%3e%3cpath%20fill='%23fff'%20d='M15.159%2010.305h1.656l3.04%2010.47h-1.182l-.876-2.994h-3.75l-.864%202.993h-1.041l3.017-10.47Zm2.283%206.235-1.514-5.213-1.515%205.213h3.03Z'/%3e%3cpath%20stroke='%23000'%20d='M6.5%206.5h19v19h-19z'/%3e%3c/svg%3e",nv="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23595DFF'%20d='M7%209h18v14H7z'/%3e%3cpath%20fill='%23fff'%20d='M15.159%2011.57h1.656l3.04%208.143h-1.182l-.876-2.328h-3.75l-.864%202.328h-1.041l3.017-8.143Zm2.283%204.85-1.514-4.055-1.515%204.055h3.03Z'/%3e%3cpath%20stroke='%23000'%20d='M6.5%206.5h19v19h-19z'/%3e%3c/svg%3e",iv="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%235959E8'%20fill-opacity='.52'%20d='M3%207h26v18H3z'/%3e%3cpath%20fill='%23595DFF'%20d='M6%207h20v18H6z'/%3e%3cpath%20fill='%23fff'%20d='M14.877%2010.093h2.209L21.14%2020.95h-1.577l-1.168-3.104h-5l-1.152%203.104h-1.389l4.023-10.857Zm3.045%206.466-2.02-5.406-2.019%205.406h4.039Z'/%3e%3cpath%20stroke='%23000'%20d='M6.5%206.5h19v19h-19z'/%3e%3c/svg%3e",ov="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%235959E8'%20fill-opacity='.52'%20d='M0%204h32v24H0z'/%3e%3cpath%20fill='%23595DFF'%20d='M6%206h20v20H6z'/%3e%3cpath%20fill='%23fff'%20d='M14.246%208.484h2.892l5.31%2014.219H20.38l-1.528-4.066h-6.55l-1.507%204.066H8.978l5.268-14.219Zm3.987%208.468-2.645-7.08-2.644%207.08h5.289Z'/%3e%3cpath%20stroke='%23000'%20d='M6.5%206.5h19v19h-19z'/%3e%3c/svg%3e",rv="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23595DFF'%20d='M7%207h18v18H7z'/%3e%3cpath%20fill='%23fff'%20d='M15.159%2010.305h1.656l3.04%2010.47h-1.182l-.876-2.994h-3.75l-.864%202.993h-1.041l3.017-10.47Zm2.283%206.235-1.514-5.213-1.515%205.213h3.03Z'/%3e%3cpath%20stroke='%23000'%20d='M6.5%206.5h19v19h-19z'/%3e%3c/svg%3e";function sv(t,e,n){const i=t.slice();return i[12]=e[n],i}function lv(t){let e,n,i,o,r=t[12].name+"",s,l,a,c,d;n=new Ys({props:{color:t[12][t[2]],mix:"palette-selector__preview"}});function u(){return t[9](t[12])}return{c(){e=S("button"),Ie(n.$$.fragment),i=X(),o=S("div"),s=Ze(r),l=X(),g(o,"class","palette-selector__name svelte-5xmv4d"),g(e,"class","palette-selector__item svelte-5xmv4d"),te(e,"palette-selector__item_selected",t[0]===t[12].id)},m(p,_){N(p,e,_),Oe(n,e,null),$(e,i),$(e,o),$(o,s),$(e,l),a=!0,c||(d=ee(e,"click",u),c=!0)},p(p,_){t=p;const f={};_&12&&(f.color=t[12][t[2]]),n.$set(f),(!a||_&8)&&r!==(r=t[12].name+"")&<(s,r),(!a||_&9)&&te(e,"palette-selector__item_selected",t[0]===t[12].id)},i(p){a||(I(n.$$.fragment,p),a=!0)},o(p){H(n.$$.fragment,p),a=!1},d(p){p&&F(e),Me(n),c=!1,d()}}}function vae(t){let e,n,i=an(t[3]),o=[];for(let s=0;s<i.length;s+=1)o[s]=lv(sv(t,i,s));const r=s=>H(o[s],1,1,(()=>{o[s]=null}));return{c(){e=S("div");for(let s=0;s<o.length;s+=1)o[s].c();g(e,"class","palette-selector__list svelte-5xmv4d")},m(s,l){N(s,e,l);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);n=!0},p(s,l){if(l&141){i=an(s[3]);let a;for(a=0;a<i.length;a+=1){const c=sv(s,i,a);o[a]?(o[a].p(c,l),I(o[a],1)):(o[a]=lv(c),o[a].c(),I(o[a],1),o[a].m(e,null))}for(It(),a=i.length;a<o.length;a+=1)r(a);Dt()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)I(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)H(o[l]);n=!1},d(s){s&&F(e),Bi(o,s)}}}function bae(t){let e,n=t[1]("localPalette")+"",i;return{c(){e=S("div"),i=Ze(n),g(e,"slot","title")},m(o,r){N(o,e,r),$(e,i)},p(o,r){r&2&&n!==(n=o[1]("localPalette")+"")&<(i,n)},d(o){o&&F(e)}}}function yae(t){let e,n,i,o=t[1]("palette")+"",r,s,l,a,c,d,u,p;function _(m){t[8](m)}let f={mix:"palette-selector__theme",name:"previewTheme2",options:[{text:t[1]("lightTheme"),value:"light",icon:Sl},{text:t[1]("darkTheme"),value:"dark",icon:Cl}],theme:"normal",iconSize:"20",customTooltips:!1};return t[2]!==void 0&&(f.value=t[2]),l=new Dl({props:f}),pt.push((()=>Gn(l,"value",_))),u=new xo({props:{theme:"props",$$slots:{title:[bae],default:[vae]},$$scope:{ctx:t}}}),{c(){e=S("div"),n=S("div"),i=S("div"),r=Ze(o),s=X(),Ie(l.$$.fragment),c=X(),d=S("div"),Ie(u.$$.fragment),g(i,"class","palette-selector__title-text svelte-5xmv4d"),g(n,"class","palette-selector__title svelte-5xmv4d"),g(d,"class","palette-selector__content svelte-5xmv4d"),g(e,"class","palette-selector svelte-5xmv4d")},m(m,h){N(m,e,h),$(e,n),$(n,i),$(i,r),$(n,s),Oe(l,n,null),$(e,c),$(e,d),Oe(u,d,null),p=!0},p(m,[h]){(!p||h&2)&&o!==(o=m[1]("palette")+"")&<(r,o);const v={};h&2&&(v.options=[{text:m[1]("lightTheme"),value:"light",icon:Sl},{text:m[1]("darkTheme"),value:"dark",icon:Cl}]),!a&&h&4&&(a=!0,v.value=m[2],Xn((()=>a=!1))),l.$set(v);const y={};h&32783&&(y.$$scope={dirty:h,ctx:m}),u.$set(y)},i(m){p||(I(l.$$.fragment,m),I(u.$$.fragment,m),p=!0)},o(m){H(l.$$.fragment,m),H(u.$$.fragment,m),p=!1},d(m){m&&F(e),Me(l),Me(u)}}}function wae(t,e,n){let i,o,r,{paletteId:s}=e;const{l10n:l}=wt(oi);Pe(t,l,(m=>n(1,i=m)));const{state:a}=wt(An),{palette:c,previewThemeStore:d}=a;Pe(t,c,(m=>n(3,r=m))),Pe(t,d,(m=>n(2,o=m)));const u=_i();function p(m){n(0,s=m),u("change",m)}function _(m){o=m,d.set(o)}const f=m=>p(m.id);return t.$$set=m=>{"paletteId"in m&&n(0,s=m.paletteId)},[s,i,o,r,l,c,d,p,_,f]}class IV extends Gt{constructor(e){super(),Yt(this,e,wae,yae,Rt,{paletteId:0})}}function av(t,e,n){const i=t.slice();return i[46]=e[n],i[48]=n,i}function cv(t){let e,n;return e=new Tr({props:{target:t[6],overflow:"visible",canMove:!0,wide:t[8],$$slots:{default:[Sae]},$$scope:{ctx:t}}}),e.$on("close",t[16]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o[0]&64&&(r.target=i[6]),o[0]&256&&(r.wide=i[8]),o[0]&4029|o[1]&262144&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function dv(t){let e,n,i,o;function r(l){t[32](l)}let s={};return t[4]!==void 0&&(s.paletteId=t[4]),n=new IV({props:s}),pt.push((()=>Gn(n,"paletteId",r))),n.$on("change",t[24]),{c(){e=S("div"),Ie(n.$$.fragment),g(e,"class","background2-dialog__panel background2-dialog__panel_left svelte-iw0i73")},m(l,a){N(l,e,a),Oe(n,e,null),o=!0},p(l,a){const c={};!i&&a[0]&16&&(i=!0,c.paletteId=l[4],Xn((()=>i=!1))),n.$set(c)},i(l){o||(I(n.$$.fragment,l),o=!0)},o(l){H(n.$$.fragment,l),o=!1},d(l){l&&F(e),Me(n)}}}function uv(t){let e,n,i,o,r;return{c(){e=S("button"),n=S("div"),g(n,"class","background2-dialog__palette-icon svelte-iw0i73"),g(e,"class","background2-dialog__palette-toggle svelte-iw0i73"),g(e,"title",i=t[10]("palette")),te(e,"background2-dialog__palette-toggle_toggled",t[8])},m(s,l){N(s,e,l),$(e,n),o||(r=ee(e,"click",t[21]),o=!0)},p(s,l){l[0]&1024&&i!==(i=s[10]("palette"))&&g(e,"title",i),l[0]&256&&te(e,"background2-dialog__palette-toggle_toggled",s[8])},d(s){s&&F(e),o=!1,r()}}}function $ae(t){let e,n,i=t[10]("props.image_url")+"",o,r,s,l,a,c,d,u=t[10]("props.image_scale")+"",p,_,f,m,h,v,y,b=t[10]("props.content_alignment")+"",w,k,E,T,j,A,O,M,D=t[10]("props.alpha")+"",R,U,B,C,q,V;function Y(W){t[38](W)}let x={subtype:"file",fileType:"image",disabled:t[3]};t[2].image_url!==void 0&&(x.value=t[2].image_url),s=new go({props:x}),pt.push((()=>Gn(s,"value",Y)));function de(W){t[39](W)}let _e={name:"scale",defaultValue:"fill",options:[{text:t[10]("props.scale_fit"),value:"fit",iconLight:x0,iconDark:nv},{text:t[10]("props.scale_fill"),value:"fill",iconLight:Q0,iconDark:iv},{text:t[10]("props.scale_no_scale"),value:"no_scale",iconLight:ev,iconDark:ov},{text:t[10]("props.scale_stretch"),value:"stretch",iconLight:tv,iconDark:rv}],theme:"secondary",customTooltips:!1,disabled:t[3]};t[2].scale!==void 0&&(_e.value=t[2].scale),f=new Dl({props:_e}),pt.push((()=>Gn(f,"value",de)));function G(W){t[40](W)}function Q(W){t[41](W)}let oe={disabled:t[3]};t[2].content_alignment_horizontal!==void 0&&(oe.horizontal=t[2].content_alignment_horizontal),t[2].content_alignment_vertical!==void 0&&(oe.vertical=t[2].content_alignment_vertical),E=new TV({props:oe}),pt.push((()=>Gn(E,"horizontal",G))),pt.push((()=>Gn(E,"vertical",Q)));function he(W){t[42](W)}let ze={subtype:"percent",min:0,max:100,defaultValue:1,disabled:t[3]};return t[2].alpha!==void 0&&(ze.value=t[2].alpha),C=new go({props:ze}),pt.push((()=>Gn(C,"value",he))),{c(){e=S("label"),n=S("div"),o=Ze(i),r=X(),Ie(s.$$.fragment),a=X(),c=S("div"),d=S("div"),p=Ze(u),_=X(),Ie(f.$$.fragment),h=X(),v=S("div"),y=S("div"),w=Ze(b),k=X(),Ie(E.$$.fragment),A=X(),O=S("div"),M=S("div"),R=Ze(D),U=X(),B=S("div"),Ie(C.$$.fragment),g(n,"class","background2-dialog__label svelte-iw0i73"),g(d,"class","background2-dialog__label svelte-iw0i73"),g(y,"class","background2-dialog__label svelte-iw0i73"),g(M,"class","background2-dialog__label svelte-iw0i73"),g(B,"class","background2-dialog__alpha svelte-iw0i73")},m(W,Ke){N(W,e,Ke),$(e,n),$(n,o),$(e,r),Oe(s,e,null),N(W,a,Ke),N(W,c,Ke),$(c,d),$(d,p),$(c,_),Oe(f,c,null),N(W,h,Ke),N(W,v,Ke),$(v,y),$(y,w),$(v,k),Oe(E,v,null),N(W,A,Ke),N(W,O,Ke),$(O,M),$(M,R),$(O,U),$(O,B),Oe(C,B,null),V=!0},p(W,Ke){(!V||Ke[0]&1024)&&i!==(i=W[10]("props.image_url")+"")&<(o,i);const at={};Ke[0]&8&&(at.disabled=W[3]),!l&&Ke[0]&4&&(l=!0,at.value=W[2].image_url,Xn((()=>l=!1))),s.$set(at),(!V||Ke[0]&1024)&&u!==(u=W[10]("props.image_scale")+"")&<(p,u);const Te={};Ke[0]&1024&&(Te.options=[{text:W[10]("props.scale_fit"),value:"fit",iconLight:x0,iconDark:nv},{text:W[10]("props.scale_fill"),value:"fill",iconLight:Q0,iconDark:iv},{text:W[10]("props.scale_no_scale"),value:"no_scale",iconLight:ev,iconDark:ov},{text:W[10]("props.scale_stretch"),value:"stretch",iconLight:tv,iconDark:rv}]),Ke[0]&8&&(Te.disabled=W[3]),!m&&Ke[0]&4&&(m=!0,Te.value=W[2].scale,Xn((()=>m=!1))),f.$set(Te),(!V||Ke[0]&1024)&&b!==(b=W[10]("props.content_alignment")+"")&<(w,b);const ot={};Ke[0]&8&&(ot.disabled=W[3]),!T&&Ke[0]&4&&(T=!0,ot.horizontal=W[2].content_alignment_horizontal,Xn((()=>T=!1))),!j&&Ke[0]&4&&(j=!0,ot.vertical=W[2].content_alignment_vertical,Xn((()=>j=!1))),E.$set(ot),(!V||Ke[0]&1024)&&D!==(D=W[10]("props.alpha")+"")&<(R,D);const J={};Ke[0]&8&&(J.disabled=W[3]),!q&&Ke[0]&4&&(q=!0,J.value=W[2].alpha,Xn((()=>q=!1))),C.$set(J)},i(W){V||(I(s.$$.fragment,W),I(f.$$.fragment,W),I(E.$$.fragment,W),I(C.$$.fragment,W),V=!0)},o(W){H(s.$$.fragment,W),H(f.$$.fragment,W),H(E.$$.fragment,W),H(C.$$.fragment,W),V=!1},d(W){W&&(F(e),F(a),F(c),F(h),F(v),F(A),F(O)),Me(s),Me(f),Me(E),Me(C)}}}function kae(t){let e=Array.isArray(t[2].colors),n,i,o=e&&pv(t);return{c(){o&&o.c(),n=Dn()},m(r,s){o&&o.m(r,s),N(r,n,s),i=!0},p(r,s){s[0]&4&&(e=Array.isArray(r[2].colors)),e?o?(o.p(r,s),s[0]&4&&I(o,1)):(o=pv(r),o.c(),I(o,1),o.m(n.parentNode,n)):o&&(It(),H(o,1,1,(()=>{o=null})),Dt())},i(r){i||(I(o),i=!0)},o(r){H(o),i=!1},d(r){r&&F(n),o&&o.d(r)}}}function jae(t){let e,n,i;function o(s){t[34](s)}let r={disabled:t[3]};return t[9]!==void 0&&(r.value=t[9]),e=new lp({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[22]),{c(){Ie(e.$$.fragment)},m(s,l){Oe(e,s,l),i=!0},p(s,l){const a={};l[0]&8&&(a.disabled=s[3]),!n&&l[0]&512&&(n=!0,a.value=s[9],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Me(e,s)}}}function pv(t){var de;let e,n,i,o,r,s,l,a=`linear-gradient(to right, ${t[2].colors.map(t[36]).join(", ")})`,c,d,u,p,_,f,m,h,v,y,b=t[10]("props.background_gradient_angle")+"",w,k,E,T,j,A,O,M=t[10]("props.background_gradient_count")+"",D,R,U,B,C=an(t[2].colors),q=[];for(let _e=0;_e<C.length;_e+=1)q[_e]=_v(av(t,C,_e));const V=_e=>H(q[_e],1,1,(()=>{q[_e]=null}));function Y(_e){t[37](_e)}let x={disabled:t[3]};return t[9]!==void 0&&(x.value=t[9]),d=new lp({props:x}),pt.push((()=>Gn(d,"value",Y))),d.$on("change",t[23]),E=new go({props:{value:t[2].angle||0,subtype:"angle",min:0,max:360,disabled:t[3]}}),E.$on("change",t[19]),E.$on("focus",t[17]),E.$on("blur",t[18]),U=new go({props:{value:((de=t[2].colors)==null?void 0:de.length)||0,subtype:"integer",min:2,max:10,disabled:t[3],required:!0}}),U.$on("change",t[20]),{c(){e=S("div"),n=S("div");for(let _e=0;_e<q.length;_e+=1)q[_e].c();i=X(),o=S("div"),r=S("div"),s=X(),l=S("div"),c=X(),Ie(d.$$.fragment),p=X(),_=S("div"),f=X(),m=S("div"),h=S("div"),v=S("label"),y=S("div"),w=Ze(b),k=X(),Ie(E.$$.fragment),T=X(),j=S("div"),A=S("label"),O=S("div"),D=Ze(M),R=X(),Ie(U.$$.fragment),g(n,"class","background2-dialog__gradient-points svelte-iw0i73"),g(r,"class","background2-dialog__gradient-range-bg svelte-iw0i73"),g(l,"class","background2-dialog__gradient-range-inner svelte-iw0i73"),je(l,"background-image",a),g(o,"class","background2-dialog__gradient-range svelte-iw0i73"),g(e,"class","background2-dialog__gradient-preview"),g(_,"class","background2-dialog__separator svelte-iw0i73"),g(y,"class","background2-dialog__label svelte-iw0i73"),g(h,"class","background2-dialog__split-part svelte-iw0i73"),g(O,"class","background2-dialog__label svelte-iw0i73"),g(j,"class","background2-dialog__split-part svelte-iw0i73"),g(m,"class","background2-dialog__split svelte-iw0i73")},m(_e,G){N(_e,e,G),$(e,n);for(let Q=0;Q<q.length;Q+=1)q[Q]&&q[Q].m(n,null);$(e,i),$(e,o),$(o,r),$(o,s),$(o,l),N(_e,c,G),Oe(d,_e,G),N(_e,p,G),N(_e,_,G),N(_e,f,G),N(_e,m,G),$(m,h),$(h,v),$(v,y),$(y,w),$(v,k),Oe(E,v,null),$(m,T),$(m,j),$(j,A),$(A,O),$(O,D),$(A,R),Oe(U,A,null),B=!0},p(_e,G){var ze;if(G[0]&33554564){C=an(_e[2].colors);let W;for(W=0;W<C.length;W+=1){const Ke=av(_e,C,W);q[W]?(q[W].p(Ke,G),I(q[W],1)):(q[W]=_v(Ke),q[W].c(),I(q[W],1),q[W].m(n,null))}for(It(),W=C.length;W<q.length;W+=1)V(W);Dt()}G[0]&36&&a!==(a=`linear-gradient(to right, ${_e[2].colors.map(_e[36]).join(", ")})`)&&je(l,"background-image",a);const Q={};G[0]&8&&(Q.disabled=_e[3]),!u&&G[0]&512&&(u=!0,Q.value=_e[9],Xn((()=>u=!1))),d.$set(Q),(!B||G[0]&1024)&&b!==(b=_e[10]("props.background_gradient_angle")+"")&<(w,b);const oe={};G[0]&4&&(oe.value=_e[2].angle||0),G[0]&8&&(oe.disabled=_e[3]),E.$set(oe),(!B||G[0]&1024)&&M!==(M=_e[10]("props.background_gradient_count")+"")&<(D,M);const he={};G[0]&4&&(he.value=((ze=_e[2].colors)==null?void 0:ze.length)||0),G[0]&8&&(he.disabled=_e[3]),U.$set(he)},i(_e){if(!B){for(let G=0;G<C.length;G+=1)I(q[G]);I(d.$$.fragment,_e),I(E.$$.fragment,_e),I(U.$$.fragment,_e),B=!0}},o(_e){q=q.filter(Boolean);for(let G=0;G<q.length;G+=1)H(q[G]);H(d.$$.fragment,_e),H(E.$$.fragment,_e),H(U.$$.fragment,_e),B=!1},d(_e){_e&&(F(e),F(c),F(p),F(_),F(f),F(m)),Bi(q,_e),Me(d,_e),Me(E),Me(U)}}}function _v(t){let e,n,i,o,r,s,l,a;o=new Ys({props:{color:t[46],mix:"background2-dialog__gradient-point-preview"}});function c(){return t[35](t[48])}return{c(){e=S("div"),n=new Cu(!1),i=X(),Ie(o.$$.fragment),r=X(),n.a=i,g(e,"class","background2-dialog__gradient-point svelte-iw0i73"),te(e,"background2-dialog__gradient-point_selected",t[48]===t[7])},m(d,u){N(d,e,u),n.m(hae,e),$(e,i),Oe(o,e,null),$(e,r),s=!0,l||(a=ee(e,"click",c),l=!0)},p(d,u){t=d;const p={};u[0]&4&&(p.color=t[46]),o.$set(p),(!s||u[0]&128)&&te(e,"background2-dialog__gradient-point_selected",t[48]===t[7])},i(d){s||(I(o.$$.fragment,d),s=!0)},o(d){H(o.$$.fragment,d),s=!1},d(d){d&&F(e),Me(o),l=!1,a()}}}function Sae(t){let e,n,i,o,r,s,l,a,c,d,u,p,_,f=t[8]&&dv(t);function m(k){t[33](k)}let h={mix:"background2-dialog__subtype-select",items:[{value:"solid",text:t[10]("props.background_solid")},{value:"gradient",text:t[10]("props.background_gradient")},{value:"image",text:t[10]("props.background_image")}],theme:"normal",disabled:t[3]};t[0]!==void 0&&(h.value=t[0]),r=new Hr({props:h}),pt.push((()=>Gn(r,"value",m))),r.$on("change",t[27]);let v=t[11]&&(t[0]==="solid"||t[0]==="gradient")&&uv(t);const y=[jae,kae,$ae],b=[];function w(k,E){return k[2].type==="solid"?0:k[2].type==="gradient"?1:k[2].type==="image"?2:-1}return~(d=w(t))&&(u=b[d]=y[d](t)),{c(){e=S("div"),f&&f.c(),n=X(),i=S("div"),o=S("div"),Ie(r.$$.fragment),l=X(),v&&v.c(),a=X(),c=S("div"),u&&u.c(),g(o,"class","background2-dialog__title svelte-iw0i73"),g(c,"class",p="background2-dialog__content background2-dialog__content_"+t[0]+" svelte-iw0i73"),g(i,"class","background2-dialog__panel svelte-iw0i73"),g(e,"class","background2-dialog__panels svelte-iw0i73")},m(k,E){N(k,e,E),f&&f.m(e,null),$(e,n),$(e,i),$(i,o),Oe(r,o,null),$(o,l),v&&v.m(o,null),$(i,a),$(i,c),~d&&b[d].m(c,null),_=!0},p(k,E){k[8]?f?(f.p(k,E),E[0]&256&&I(f,1)):(f=dv(k),f.c(),I(f,1),f.m(e,n)):f&&(It(),H(f,1,1,(()=>{f=null})),Dt());const T={};E[0]&1024&&(T.items=[{value:"solid",text:k[10]("props.background_solid")},{value:"gradient",text:k[10]("props.background_gradient")},{value:"image",text:k[10]("props.background_image")}]),E[0]&8&&(T.disabled=k[3]),!s&&E[0]&1&&(s=!0,T.value=k[0],Xn((()=>s=!1))),r.$set(T),k[11]&&(k[0]==="solid"||k[0]==="gradient")?v?v.p(k,E):(v=uv(k),v.c(),v.m(o,null)):v&&(v.d(1),v=null);let j=d;d=w(k),d===j?~d&&b[d].p(k,E):(u&&(It(),H(b[j],1,1,(()=>{b[j]=null})),Dt()),~d?(u=b[d],u?u.p(k,E):(u=b[d]=y[d](k),u.c()),I(u,1),u.m(c,null)):u=null),(!_||E[0]&1&&p!==(p="background2-dialog__content background2-dialog__content_"+k[0]+" svelte-iw0i73"))&&g(c,"class",p)},i(k){_||(I(f),I(r.$$.fragment,k),I(u),_=!0)},o(k){H(f),H(r.$$.fragment,k),H(u),_=!1},d(k){k&&F(e),f&&f.d(),Me(r),v&&v.d(),~d&&b[d].d()}}}function Cae(t){let e,n,i=t[1]&&t[6]&&cv(t);return{c(){i&&i.c(),e=Dn()},m(o,r){i&&i.m(o,r),N(o,e,r),n=!0},p(o,r){o[1]&&o[6]?i?(i.p(o,r),r[0]&66&&I(i,1)):(i=cv(o),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(It(),H(i,1,1,(()=>{i=null})),Dt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&F(e),i&&i.d(o)}}}function Tae(t,e,n){let i,o,r,s;const{l10nString:l}=wt(oi);Pe(t,l,(J=>n(10,r=J)));const{state:a}=wt(An),{palette:c,paletteEnabled:d,previewThemeStore:u,highlightMode:p,highlightGradientAngle:_}=a;Pe(t,c,(J=>n(31,i=J))),Pe(t,d,(J=>n(11,s=J))),Pe(t,u,(J=>n(5,o=J)));function f(J){n(30,w=J.callback),n(6,h=J.target),n(2,b=J.value),n(3,E=J.readOnly),n(1,y=!0),n(0,v=b.type),de()}function m(){n(1,y=!1),n(0,v="")}let h,v="",y=!1,b,w,k=0,E,T=!1,j="",A="";function O(){n(1,y=!1)}function M(){p.set("gradient"),_.set(b.angle||0)}function D(){p.set("")}function R(J){const ue=Number(J.detail.value);b.type==="gradient"&&(n(2,b.angle=ue,b),_.set(ue))}function U(J){let ue=Number(J.detail.value);if(!(ue<2||ue>10)&&(ue=Math.max(2,Math.min(10,ue)),b.type==="gradient"))if(ue>b.colors.length)for(n(2,b.colors=b.colors.slice(),b);ue>b.colors.length;)b.colors.push("#fff");else ue<b.colors.length&&n(2,b.colors=b.colors.slice(0,ue),b)}function B(){n(8,T=!T)}function C(){n(4,j=""),n(2,b.color=A,b)}function q(){n(4,j=""),n(2,b.colors[k]=A,b)}function V(J){v==="solid"?n(2,b.color=pa(J.detail),b):v==="gradient"&&n(2,b.colors[k]=pa(J.detail),b)}function Y(J){n(7,k=J);const ue=b;dr(ue.colors[k])?(n(8,T=!0),n(4,j=yr(ue.colors[k]))):(n(9,A=ue.colors[k]),n(4,j=""))}function x(J,ue,fe){const Qe=ue?Ac:wV;if(dr(J)){const ye=yr(J),Ee=i.find((Ye=>Ye.id===ye));return Ee?Qe(Ee[fe]):""}return Qe(J)}function de(){if(v==="solid"){const J=b;dr(J.color)?(n(8,T=!0),n(4,j=yr(J.color))):(n(9,A=J.color),n(4,j=""))}else if(v==="gradient"){const J=b;n(7,k=0),n(8,T=J.colors.some(dr)),dr(J.colors[0])?n(4,j=yr(J.colors[0])):(n(9,A=J.colors[0]),n(4,j=""))}else v==="image"&&n(8,T=!1)}function _e(J){j=J,n(4,j)}function G(J){v=J,n(0,v)}function Q(J){A=J,n(9,A),n(5,o),n(4,j),n(31,i),n(0,v)}const oe=J=>Y(J),he=J=>x(J,!0,o);function ze(J){A=J,n(9,A),n(5,o),n(4,j),n(31,i),n(0,v)}function W(J){t.$$.not_equal(b.image_url,J)&&(b.image_url=J,n(2,b))}function Ke(J){t.$$.not_equal(b.scale,J)&&(b.scale=J,n(2,b))}function at(J){t.$$.not_equal(b.content_alignment_horizontal,J)&&(b.content_alignment_horizontal=J,n(2,b))}function Te(J){t.$$.not_equal(b.content_alignment_vertical,J)&&(b.content_alignment_vertical=J,n(2,b))}function ot(J){t.$$.not_equal(b.alpha,J)&&(b.alpha=J,n(2,b))}return t.$$.update=()=>{if(t.$$.dirty[0]&1073741838&&y&&!E&&w&&w(b),t.$$.dirty[0]&5&&b&&v&&v!==b.type){const J=b,ue=J.color,fe=J.colors;delete J.color,delete J.colors,delete J.image_url,delete J.scale,delete J.content_alignment_horizontal,delete J.content_alignment_vertical,delete J.alpha,J.type=v,v==="solid"?Array.isArray(fe)&&fe.length?J.color=fe[0]:J.color="#000":v==="gradient"?ue?J.colors=[ue,ue]:J.colors=["#fff","#000"]:v==="image"&&(J.image_url="",J.scale="fill",J.content_alignment_horizontal="center",J.content_alignment_vertical="center",J.alpha=1,J.preload_required=!0)}if(t.$$.dirty[0]&49|t.$$.dirty[1]&1&&o&&j){const J=i.find((ue=>ue.id===j));J&&(v==="solid"||v==="gradient")&&n(9,A=J[o])}},[v,y,b,E,j,o,h,k,T,A,r,s,l,c,d,u,O,M,D,R,U,B,C,q,V,Y,x,de,f,m,w,i,_e,G,Q,oe,he,ze,W,Ke,at,Te,ot]}class zae extends Gt{constructor(e){super(),Yt(this,e,Tae,Cae,Rt,{show:28,hide:29},null,[-1,-1])}get show(){return this.$$.ctx[28]}get hide(){return this.$$.ctx[29]}}function fv(t){let e,n;return e=new Tr({props:{target:t[0].target,direction:t[0].direction,offset:t[0].offset,overflow:"visible",canMove:!0,wide:t[4],$$slots:{default:[Eae]},$$scope:{ctx:t}}}),e.$on("close",t[11]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&1&&(r.target=i[0].target),o&1&&(r.direction=i[0].direction),o&1&&(r.offset=i[0].offset),o&16&&(r.wide=i[4]),o&2097277&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function mv(t){let e,n,i,o;function r(l){t[18](l)}let s={};return t[3]!==void 0&&(s.paletteId=t[3]),n=new IV({props:s}),pt.push((()=>Gn(n,"paletteId",r))),{c(){e=S("div"),Ie(n.$$.fragment),g(e,"class","color2-dialog__panel color2-dialog__panel_left svelte-obfnqb")},m(l,a){N(l,e,a),Oe(n,e,null),o=!0},p(l,a){const c={};!i&&a&8&&(i=!0,c.paletteId=l[3],Xn((()=>i=!1))),n.$set(c)},i(l){o||(I(n.$$.fragment,l),o=!0)},o(l){H(n.$$.fragment,l),o=!1},d(l){l&&F(e),Me(n)}}}function gv(t){let e,n,i=t[6]("color")+"",o,r,s,l,a,c,d;return{c(){e=S("div"),n=S("div"),o=Ze(i),r=X(),s=S("button"),l=S("div"),g(n,"class","color2-dialog__title-text svelte-obfnqb"),g(l,"class","color2-dialog__palette-icon svelte-obfnqb"),g(s,"class","color2-dialog__palette-toggle svelte-obfnqb"),g(s,"title",a=t[6]("palette")),te(s,"color2-dialog__palette-toggle_toggled",t[4]),g(e,"class","color2-dialog__title svelte-obfnqb")},m(u,p){N(u,e,p),$(e,n),$(n,o),$(e,r),$(e,s),$(s,l),c||(d=ee(s,"click",t[12]),c=!0)},p(u,p){p&64&&i!==(i=u[6]("color")+"")&<(o,i),p&64&&a!==(a=u[6]("palette"))&&g(s,"title",a),p&16&&te(s,"color2-dialog__palette-toggle_toggled",u[4])},d(u){u&&F(e),c=!1,d()}}}function Eae(t){let e,n,i,o,r,s,l,a,c=t[4]&&mv(t),d=t[5]&&t[0].showPalette&&gv(t);function u(_){t[19](_)}let p={disabled:t[0].disabled};return t[2]!==void 0&&(p.value=t[2]),s=new lp({props:p}),pt.push((()=>Gn(s,"value",u))),s.$on("change",t[13]),{c(){e=S("div"),c&&c.c(),n=X(),i=S("div"),d&&d.c(),o=X(),r=S("div"),Ie(s.$$.fragment),g(r,"class","color2-dialog__content svelte-obfnqb"),g(i,"class","color2-dialog__panel svelte-obfnqb"),g(e,"class","color2-dialog__panels svelte-obfnqb")},m(_,f){N(_,e,f),c&&c.m(e,null),$(e,n),$(e,i),d&&d.m(i,null),$(i,o),$(i,r),Oe(s,r,null),a=!0},p(_,f){_[4]?c?(c.p(_,f),f&16&&I(c,1)):(c=mv(_),c.c(),I(c,1),c.m(e,n)):c&&(It(),H(c,1,1,(()=>{c=null})),Dt()),_[5]&&_[0].showPalette?d?d.p(_,f):(d=gv(_),d.c(),d.m(i,o)):d&&(d.d(1),d=null);const m={};f&1&&(m.disabled=_[0].disabled),!l&&f&4&&(l=!0,m.value=_[2],Xn((()=>l=!1))),s.$set(m)},i(_){a||(I(c),I(s.$$.fragment,_),a=!0)},o(_){H(c),H(s.$$.fragment,_),a=!1},d(_){_&&F(e),c&&c.d(),d&&d.d(),Me(s)}}}function Aae(t){var o;let e,n,i=t[1]&&((o=t[0])==null?void 0:o.target)&&fv(t);return{c(){i&&i.c(),e=Dn()},m(r,s){i&&i.m(r,s),N(r,e,s),n=!0},p(r,[s]){var l;r[1]&&((l=r[0])!=null&&l.target)?i?(i.p(r,s),s&3&&I(i,1)):(i=fv(r),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(It(),H(i,1,1,(()=>{i=null})),Dt())},i(r){n||(I(i),n=!0)},o(r){H(i),n=!1},d(r){r&&F(e),i&&i.d(r)}}}function Oae(t,e,n){let i,o,r,s;const{l10nString:l}=wt(oi);Pe(t,l,(j=>n(6,s=j)));const{state:a}=wt(An),{palette:c,paletteEnabled:d,previewThemeStore:u}=a;Pe(t,c,(j=>n(17,o=j))),Pe(t,d,(j=>n(5,r=j))),Pe(t,u,(j=>n(16,i=j)));function p(j){n(0,f=j),n(2,h=j.value),n(3,v=j.paletteId||""),n(1,m=!0),n(4,y=!!v)}function _(){n(1,m=!1),n(0,f=null)}let f=null,m=!1,h,v,y=!1;function b(){n(1,m=!1)}function w(){n(4,y=!y)}function k(){n(3,v="")}function E(j){v=j,n(3,v)}function T(j){h=j,n(2,h),n(16,i),n(3,v),n(17,o)}return t.$$.update=()=>{if(t.$$.dirty&196616&&i&&v){const j=o.find((A=>A.id===v));j&&n(2,h=j[i])}t.$$.dirty&15&&m&&f&&!f.disabled&&f.callback(v?"":h,v)},[f,m,h,v,y,r,s,l,c,d,u,b,w,k,p,_,i,o,E,T]}class Mae extends Gt{constructor(e){super(),Yt(this,e,Oae,Aae,Rt,{show:14,hide:15})}get show(){return this.$$.ctx[14]}get hide(){return this.$$.ctx[15]}}const Pae='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none" class="file2-dialog__loader"><path fill="currentColor" d="M28 14a14 14 0 1 0-17.311 13.603l.713-2.932A10.982 10.982 0 1 1 24.983 14H28Z"/></svg>',DV='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none"><path fill="currentColor" d="M4 3a3 3 0 0 1 3-3h2a3 3 0 0 1 3 3h2a1 1 0 1 1 0 2h-.654l-.74 9.615A1.5 1.5 0 0 1 11.111 16H4.889a1.5 1.5 0 0 1-1.496-1.385L2.653 5H2a1 1 0 0 1 0-2h2Zm7.34 2H4.66l.692 9h5.296l.692-9ZM7 2a1 1 0 0 0-1 1h4a1 1 0 0 0-1-1H7Z"/></svg>',Iae=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 9h3l-2 6 7-8H8l3-6H7z"/></svg>\n`;function VV(t){return new Promise(((e,n)=>{const i=new FileReader;i.onerror=()=>{n(new Error("Failed to load the file"))},i.onload=()=>{e(i.result)},i.readAsDataURL(t)}))}const hv=typeof window<"u"&&"requestVideoFrameCallback"in HTMLVideoElement.prototype;function vv(t){let e,n,i={target:t[6],hasClose:!0,direction:t[16],canMove:!0,$$slots:{default:[Rae]},$$scope:{ctx:t}};return e=new Tr({props:i}),t[43](e),e.$on("close",t[24]),{c(){Ie(e.$$.fragment)},m(o,r){Oe(e,o,r),n=!0},p(o,r){const s={};r[0]&64&&(s.target=o[6]),r[0]&65536&&(s.direction=o[16]),r[0]&7798714|r[1]&268435456&&(s.$$scope={dirty:r,ctx:o}),e.$set(s)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){H(e.$$.fragment,o),n=!1},d(o){t[43](null),Me(e,o)}}}function bv(t){let e;function n(r,s){if(r[1].url&&!r[15]&&(r[3]==="image"||r[3]==="gif"))return Vae;if(r[3]==="video")return Dae}let i=n(t),o=i&&i(t);return{c(){o&&o.c(),e=Dn()},m(r,s){o&&o.m(r,s),N(r,e,s)},p(r,s){i===(i=n(r))&&o?o.p(r,s):(o&&o.d(1),o=i&&i(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&F(e),o&&o.d(r)}}}function Dae(t){let e,n;return{c(){e=S("video"),g(e,"class","file2-dialog__video-preview svelte-134x7tx"),dc(e.src,n=t[1].url)||g(e,"src",n)},m(i,o){N(i,e,o)},p(i,o){o[0]&2&&!dc(e.src,n=i[1].url)&&g(e,"src",n)},d(i){i&&F(e)}}}function Vae(t){let e,n,i,o;return{c(){e=S("img"),g(e,"class","file2-dialog__image-preview svelte-134x7tx"),dc(e.src,n=t[1].url)||g(e,"src",n),g(e,"alt","")},m(r,s){N(r,e,s),i||(o=ee(e,"error",t[33]),i=!0)},p(r,s){s[0]&2&&!dc(e.src,n=r[1].url)&&g(e,"src",n)},d(r){r&&F(e),i=!1,o()}}}function Lae(t){let e=t[5]("file.select")+"",n,i,o,r,s;return{c(){n=Ze(e),i=X(),o=S("input"),g(o,"type","file"),g(o,"class","file2-dialog__file svelte-134x7tx"),g(o,"accept",t[20])},m(l,a){N(l,n,a),N(l,i,a),N(l,o,a),r||(s=ee(o,"change",t[25]),r=!0)},p(l,a){a[0]&32&&e!==(e=l[5]("file.select")+"")&<(n,e),a[0]&1048576&&g(o,"accept",l[20])},d(l){l&&(F(n),F(i),F(o)),r=!1,s()}}}function yv(t){let e,n=t[5](t[14]==="big"||t[14]==="big-warn"?"file.too_big":`file.${t[3]}_error`)+"",i;return{c(){e=S("div"),i=Ze(n),g(e,"class","file2-dialog__error svelte-134x7tx"),te(e,"file2-dialog__error_warn",t[14]==="big-warn")},m(o,r){N(o,e,r),$(e,i)},p(o,r){r[0]&16424&&n!==(n=o[5](o[14]==="big"||o[14]==="big-warn"?"file.too_big":`file.${o[3]}_error`)+"")&<(i,n),r[0]&16384&&te(e,"file2-dialog__error_warn",o[14]==="big-warn")},d(o){o&&F(e)}}}function wv(t){let e,n,i,o;return{c(){e=S("button"),g(e,"class","file2-dialog__text-inline-button file2-dialog__cleanup svelte-134x7tx"),g(e,"title",n=t[5]("delete"))},m(r,s){N(r,e,s),e.innerHTML=DV,i||(o=ee(e,"click",t[34]),i=!0)},p(r,s){s[0]&32&&n!==(n=r[5]("delete"))&&g(e,"title",n)},d(r){r&&F(e),i=!1,o()}}}function $v(t){let e,n,i,o;return{c(){e=S("button"),g(e,"class","file2-dialog__text-inline-button file2-dialog__generate svelte-134x7tx"),g(e,"title",n=t[17]?t[5]("file.generate_from_video"):t[5]("file.generate_from_lottie"))},m(r,s){N(r,e,s),e.innerHTML=Iae,i||(o=ee(e,"click",t[35]),i=!0)},p(r,s){s[0]&131104&&n!==(n=r[17]?r[5]("file.generate_from_video"):r[5]("file.generate_from_lottie"))&&g(e,"title",n)},d(r){r&&F(e),i=!1,o()}}}function Fae(t){let e,n,i=t[1].url&&t[8]&&!t[4]&&wv(t),o=(t[17]&&hv||t[18])&&$v(t);return{c(){e=S("div"),i&&i.c(),n=X(),o&&o.c(),g(e,"slot","button"),g(e,"class","file2-dialog__text-inline-buttons svelte-134x7tx")},m(r,s){N(r,e,s),i&&i.m(e,null),$(e,n),o&&o.m(e,null)},p(r,s){r[1].url&&r[8]&&!r[4]?i?i.p(r,s):(i=wv(r),i.c(),i.m(e,n)):i&&(i.d(1),i=null),r[17]&&hv||r[18]?o?o.p(r,s):(o=$v(r),o.c(),o.m(e,null)):o&&(o.d(1),o=null)},d(r){r&&F(e),i&&i.d(),o&&o.d()}}}function Nae(t){let e=t[5](`file.${t[3]}_label`)+"",n;return{c(){n=Ze(e)},m(i,o){N(i,n,o)},p(i,o){o[0]&40&&e!==(e=i[5](`file.${i[3]}_label`)+"")&<(n,e)},d(i){i&&F(n)}}}function qae(t){let e,n;return{c(){e=new Cu(!1),n=Dn(),e.a=n},m(i,o){e.m(Pae,i,o),N(i,n,o)},p:tn,d(i){i&&(F(n),e.d())}}}function kv(t){let e,n,i,o=t[5]("props.width")+"",r,s,l,a,c,d,u,p=t[5]("props.height")+"",_,f,m,h,v;function y(E){t[41](E)}let b={min:1,max:1024,subtype:"integer",inlineLabel:"W",disabled:t[4]};t[1].width!==void 0&&(b.value=t[1].width),l=new go({props:b}),pt.push((()=>Gn(l,"value",y)));function w(E){t[42](E)}let k={min:1,max:1024,subtype:"integer",inlineLabel:"H",disabled:t[4]};return t[1].height!==void 0&&(k.value=t[1].height),m=new go({props:k}),pt.push((()=>Gn(m,"value",w))),{c(){e=S("div"),n=S("label"),i=S("div"),r=Ze(o),s=X(),Ie(l.$$.fragment),c=X(),d=S("label"),u=S("div"),_=Ze(p),f=X(),Ie(m.$$.fragment),g(i,"class","file2-dialog__label svelte-134x7tx"),g(n,"class","file2-dialog__size-part svelte-134x7tx"),g(u,"class","file2-dialog__label svelte-134x7tx"),g(d,"class","file2-dialog__size-part svelte-134x7tx"),g(e,"class","file2-dialog__size svelte-134x7tx")},m(E,T){N(E,e,T),$(e,n),$(n,i),$(i,r),$(n,s),Oe(l,n,null),$(e,c),$(e,d),$(d,u),$(u,_),$(d,f),Oe(m,d,null),v=!0},p(E,T){(!v||T[0]&32)&&o!==(o=E[5]("props.width")+"")&<(r,o);const j={};T[0]&16&&(j.disabled=E[4]),!a&&T[0]&2&&(a=!0,j.value=E[1].width,Xn((()=>a=!1))),l.$set(j),(!v||T[0]&32)&&p!==(p=E[5]("props.height")+"")&<(_,p);const A={};T[0]&16&&(A.disabled=E[4]),!h&&T[0]&2&&(h=!0,A.value=E[1].height,Xn((()=>h=!1))),m.$set(A)},i(E){v||(I(l.$$.fragment,E),I(m.$$.fragment,E),v=!0)},o(E){H(l.$$.fragment,E),H(m.$$.fragment,E),v=!1},d(E){E&&F(e),Me(l),Me(m)}}}function Rae(t){let e,n,i,o,r,s,l,a,c,d,u=t[5](`file.${t[3]}_label`)+"",p,_,f,m,h,v,y,b,w,k,E,T,j,A,O=t[1].url&&bv(t);f=new dd({props:{tag:"div",theme:"normal",$$slots:{default:[Lae]},$$scope:{ctx:t}}});let M=t[14]&&yv(t);function D(V){t[40](V)}let R={placeholder:t[21],hasButton:!!(t[1].url&&t[8]&&!t[4]),disabled:t[4],$$slots:{button:[Fae]},$$scope:{ctx:t}};t[1].url!==void 0&&(R.value=t[1].url),v=new go({props:R}),pt.push((()=>Gn(v,"value",D))),v.$on("change",t[32]);function U(V,Y){return V[13]?qae:Nae}let B=U(t),C=B(t),q=t[7]&&kv(t);return{c(){e=S("div"),n=Ze(t[9]),i=X(),o=S("div"),r=S("div"),s=S("div"),l=S("div"),O&&O.c(),a=X(),c=S("div"),d=S("div"),p=Ze(u),_=X(),Ie(f.$$.fragment),m=X(),M&&M.c(),h=X(),Ie(v.$$.fragment),b=X(),w=S("div"),C.c(),k=X(),q&&q.c(),E=Dn(),g(e,"class","file2-dialog__title svelte-134x7tx"),g(l,"class","file2-dialog__file-preview-container svelte-134x7tx"),g(d,"class","file2-dialog__file-label svelte-134x7tx"),g(c,"class","file2-dialog__file-select svelte-134x7tx"),te(c,"file2-dialog__file-select_always-shown",t[22]),g(s,"class","file2-dialog__file-preview svelte-134x7tx"),te(s,"file2-dialog__file-preview_error",t[14]),g(r,"class","file2-dialog__standard-content svelte-134x7tx"),g(w,"class","file2-dialog__drop-target svelte-134x7tx"),te(w,"file2-dialog__drop-target_over",t[12]),g(o,"class","file2-dialog__drop-area svelte-134x7tx"),te(o,"file2-dialog__drop-area_global-drag",t[11]||t[13]),te(o,"file2-dialog__drop-area_disabled",t[4])},m(V,Y){N(V,e,Y),$(e,n),N(V,i,Y),N(V,o,Y),$(o,r),$(r,s),$(s,l),O&&O.m(l,null),t[39](l),$(s,a),$(s,c),$(c,d),$(d,p),$(c,_),Oe(f,c,null),$(r,m),M&&M.m(r,null),$(r,h),Oe(v,r,null),$(o,b),$(o,w),C.m(w,null),N(V,k,Y),q&&q.m(V,Y),N(V,E,Y),T=!0,j||(A=[ee(w,"dragover",Hae),ee(w,"dragenter",t[29]),ee(w,"dragleave",t[30]),ee(w,"drop",t[31])],j=!0)},p(V,Y){(!T||Y[0]&512)&<(n,V[9]),V[1].url?O?O.p(V,Y):(O=bv(V),O.c(),O.m(l,null)):O&&(O.d(1),O=null),(!T||Y[0]&40)&&u!==(u=V[5](`file.${V[3]}_label`)+"")&<(p,u);const x={};Y[0]&1048608|Y[1]&268435456&&(x.$$scope={dirty:Y,ctx:V}),f.$set(x),(!T||Y[0]&4194304)&&te(c,"file2-dialog__file-select_always-shown",V[22]),(!T||Y[0]&16384)&&te(s,"file2-dialog__file-preview_error",V[14]),V[14]?M?M.p(V,Y):(M=yv(V),M.c(),M.m(r,h)):M&&(M.d(1),M=null);const de={};Y[0]&2097152&&(de.placeholder=V[21]),Y[0]&274&&(de.hasButton=!!(V[1].url&&V[8]&&!V[4])),Y[0]&16&&(de.disabled=V[4]),Y[0]&393522|Y[1]&268435456&&(de.$$scope={dirty:Y,ctx:V}),!y&&Y[0]&2&&(y=!0,de.value=V[1].url,Xn((()=>y=!1))),v.$set(de),B===(B=U(V))&&C?C.p(V,Y):(C.d(1),C=B(V),C&&(C.c(),C.m(w,null))),(!T||Y[0]&4096)&&te(w,"file2-dialog__drop-target_over",V[12]),(!T||Y[0]&10240)&&te(o,"file2-dialog__drop-area_global-drag",V[11]||V[13]),(!T||Y[0]&16)&&te(o,"file2-dialog__drop-area_disabled",V[4]),V[7]?q?(q.p(V,Y),Y[0]&128&&I(q,1)):(q=kv(V),q.c(),I(q,1),q.m(E.parentNode,E)):q&&(It(),H(q,1,1,(()=>{q=null})),Dt())},i(V){T||(I(f.$$.fragment,V),I(v.$$.fragment,V),I(q),T=!0)},o(V){H(f.$$.fragment,V),H(v.$$.fragment,V),H(q),T=!1},d(V){V&&(F(e),F(i),F(o),F(k),F(E)),O&&O.d(),t[39](null),Me(f),M&&M.d(),Me(v),C.d(),q&&q.d(V),j=!1,qn(A)}}}function Bae(t){let e,n,i,o,r=t[0]&&t[6]&&t[2]&&vv(t);return{c(){r&&r.c(),e=Dn()},m(s,l){r&&r.m(s,l),N(s,e,l),n=!0,i||(o=[ee(window,"dragenter",t[26]),ee(window,"dragleave",t[27]),ee(window,"drop",t[28])],i=!0)},p(s,l){s[0]&&s[6]&&s[2]?r?(r.p(s,l),l[0]&69&&I(r,1)):(r=vv(s),r.c(),I(r,1),r.m(e.parentNode,e)):r&&(It(),H(r,1,1,(()=>{r=null})),Dt())},i(s){n||(I(r),n=!0)},o(s){H(r),n=!1},d(s){s&&F(e),r&&r.d(s),i=!1,qn(o)}}}function Hae(t){t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="copy")}function Uae(t,e,n){let i,o,r,s;const{l10nString:l}=wt(oi);Pe(t,l,(le=>n(5,s=le)));const{uploadFile:a,previewWarnFileLimit:c,previewErrorFileLimit:d,warnFileLimit:u,errorFileLimit:p}=wt(An),_={image:"image/png, image/jpeg",gif:"image/gif",lottie:"text/json, application/json",video:"video/mp4, video/mpeg, video/ogg, video/quicktime, video/webm"},f=Object.keys(_).reduce(((le,Ve)=>(le[Ve]=new Set(_[Ve].split(",").map((Xe=>Xe.trim()))),le)),{});function m(le){var Ve;if(M&&(M.destroy(),M=null,R&&((Ve=R.parentNode)==null||Ve.removeChild(R))),E.url){const Xe=E.url;import("./lottieApi.js").then((({loadAnimation:xe})=>{Xe===E.url&&(R=document.createElement("div"),R.className="file2-dialog__lottie-wrapper",D.appendChild(R),M=xe({container:R,path:Xe,renderer:"svg",loop:!0}))}))}}function h(le){n(38,T=le.callback),n(6,y=le.target),n(1,E=le.value),n(9,j=le.title),n(7,w=le.hasSize),n(8,k=le.hasDelete),n(2,A=le.subtype),n(3,O=A==="image_preview"?"image":A),n(15,Y=!1),n(16,x=le.direction),de=le.onHide,n(4,_e=le.disabled||!1),n(17,G=le.generateFromVideo),n(18,Q=le.generateFromLottie),n(14,V=!1),n(0,b=!0),Ye()}function v(){oe==null||oe.hide()}let y,b=!1,w=!1,k=!1,E={url:"",width:0,height:0},T,j="",A="",O="",M,D,R=null,U=!1,B=new Set,C=!1,q=!1,V=!1,Y=!1,x,de,_e=!1,G,Q,oe;function he(){n(0,b=!1),de==null||de()}function ze(le){return le.size>(A==="image_preview"?d:p)?(n(14,V="big"),Promise.resolve()):(n(13,q=!0),n(14,V=!1),(A==="image_preview"?VV:a)(le).then((Xe=>{if(n(1,E.url=Xe,E),n(13,q=!1),le.size>(A==="image_preview"?c:u)&&A!=="video")return n(14,V="big-warn"),Promise.resolve()})).catch((Xe=>{n(13,q=!1),n(14,V="load")})))}function W(le){return Array.from(le).find((Ve=>Ve.type&&f[O]&&f[O].has(Ve.type)))}function Ke(le){const Ve=le.target,Xe=Ve.files&&Ve.files.length>0&&W(Ve.files);Xe?ze(Xe):n(14,V="load"),Ve.value="",Ve.type="",Ve.type="file"}function at(le){le.target instanceof HTMLElement&&(le.preventDefault(),B.add(le.target),n(11,U=!0))}function Te(le){le.target instanceof HTMLElement&&(le.preventDefault(),B.delete(le.target),n(11,U=B.size>0))}function ot(){B=new Set,n(11,U=!1)}function J(le){le.preventDefault(),n(12,C=!0)}function ue(le){le.preventDefault(),n(12,C=!1)}function fe(le){var Xe;le.preventDefault(),n(12,C=!1),n(11,U=!1),B=new Set;const Ve=((Xe=le.dataTransfer)==null?void 0:Xe.files)&&W(le.dataTransfer.files);Ve?ze(Ve):n(14,V="load")}function Qe(){Ye()}function ye(){n(15,Y=!0)}function Ee(){n(1,E.url="",E),oe==null||oe.hide()}function Ye(){n(14,V=!1),ep(String(E),A).then((le=>{le>(A==="image_preview"?d:p)?n(14,V="big"):le>(A==="image_preview"?c:u)&&n(14,V="big-warn")}))}function vt(){if(Q)Promise.all([import("./lottieApi.js"),fetch(Q).then((le=>{if(!le.ok)throw new Error("Response is not ok");return le.json()}))]).then((([{loadAnimation:le},Ve])=>{if(!Ve.w||!Ve.h)throw new Error("Incorrect json");const Xe=document.createElement("div");return Xe.style.width=Ve.w+"px",Xe.style.height=Ve.h+"px",new Promise(((xe,jt)=>{const Vt=le({container:Xe,animationData:Ve,renderer:"svg",loop:!1,autoplay:!1}),ln=Xe.querySelector("svg");if(!ln){jt(new Error("Missing svg context"));return}const sn=(new XMLSerializer).serializeToString(ln),At=document.createElement("canvas"),pn=At.getContext("2d");if(!pn){jt(new Error("Missing canvas context"));return}At.width=Ve.w,At.height=Ve.h;const dn=new Image;dn.onload=()=>{pn.drawImage(dn,0,0),n(1,E.url=At.toDataURL(),E),xe(E.url)},dn.onerror=()=>{jt(new Error("Failed to load an image"))},dn.src="data:image/svg+xml; charset=utf8, "+encodeURIComponent(sn),Vt.addEventListener("error",(()=>{jt(new Error("Lottie error"))}))}))})).catch((()=>{}));else if(G){const le=document.createElement("canvas"),Ve=le.getContext("2d");if(!Ve)return;const Xe=document.createElement("video");for(const xe of G)if(xe.url&&typeof xe.url=="string"&&xe.mime_type&&typeof xe.mime_type=="string"){const jt=document.createElement("source");jt.setAttribute("src",xe.url),jt.setAttribute("type",xe.mime_type),Xe.appendChild(jt)}Xe.requestVideoFrameCallback(((xe,jt)=>{le.width=jt.width,le.height=jt.height,Ve.drawImage(Xe,0,0),n(1,E.url=le.toDataURL(),E)}))}}function ne(le){pt[le?"unshift":"push"]((()=>{D=le,n(10,D)}))}function pe(le){t.$$.not_equal(E.url,le)&&(E.url=le,n(1,E))}function kt(le){t.$$.not_equal(E.width,le)&&(E.width=le,n(1,E))}function $e(le){t.$$.not_equal(E.height,le)&&(E.height=le,n(1,E))}function et(le){pt[le?"unshift":"push"]((()=>{oe=le,n(19,oe)}))}return t.$$.update=()=>{t.$$.dirty[0]&23|t.$$.dirty[1]&128&&b&&(_e||T(E),A==="lottie"?m(E.url||""):n(15,Y=!1)),t.$$.dirty[0]&2&&n(22,i=!E.url),t.$$.dirty[0]&44&&n(21,o=A?s(`file.${O}_placeholder`):""),t.$$.dirty[0]&12&&n(20,r=A?_[O]:"")},[b,E,A,O,_e,s,y,w,k,j,D,U,C,q,V,Y,x,G,Q,oe,r,o,i,l,he,Ke,at,Te,ot,J,ue,fe,Qe,ye,Ee,vt,h,v,T,ne,pe,kt,$e,et]}class Jae extends Gt{constructor(e){super(),Yt(this,e,Uae,Bae,Rt,{show:36,hide:37},null,[-1,-1])}get show(){return this.$$.ctx[36]}get hide(){return this.$$.ctx[37]}}function jv(t){let e,n,i={direction:"down",offsetY:12,target:t[3],$$slots:{default:[Wae]},$$scope:{ctx:t}};return e=new Tr({props:i}),t[17](e),e.$on("close",t[8]),{c(){Ie(e.$$.fragment)},m(o,r){Oe(e,o,r),n=!0},p(o,r){const s={};r&8&&(s.target=o[3]),r&262246&&(s.$$scope={dirty:r,ctx:o}),e.$set(s)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){H(e.$$.fragment,o),n=!1},d(o){t[17](null),Me(e,o)}}}function Sv(t){let e,n,i,o;return{c(){e=S("button"),g(e,"class","link2-dialog__cleanup svelte-12y56i8"),g(e,"title",n=t[6]("delete")),te(e,"link2-dialog__cleanup_visible",!!t[1])},m(r,s){N(r,e,s),e.innerHTML=DV,i||(o=ee(e,"click",t[9]),i=!0)},p(r,s){s&64&&n!==(n=r[6]("delete"))&&g(e,"title",n),s&2&&te(e,"link2-dialog__cleanup_visible",!!r[1])},d(r){r&&F(e),i=!1,o()}}}function Wae(t){let e,n,i,o,r,s,l=!t[2]&&Sv(t);return{c(){e=S("div"),n=S("input"),o=X(),l&&l.c(),g(n,"class","link2-dialog__input svelte-12y56i8"),g(n,"autocomplete","off"),g(n,"autocorrect","off"),g(n,"autocapitalize","off"),g(n,"spellcheck","false"),g(n,"placeholder",i=t[6]("link.placeholder")),n.disabled=t[2],g(e,"class","link2-dialog__content svelte-12y56i8")},m(a,c){N(a,e,c),$(e,n),t[15](n),Hn(n,t[1]),$(e,o),l&&l.m(e,null),r||(s=[ee(n,"input",t[16]),ee(n,"keydown",t[10]),ee(n,"input",t[11])],r=!0)},p(a,c){c&64&&i!==(i=a[6]("link.placeholder"))&&g(n,"placeholder",i),c&4&&(n.disabled=a[2]),c&2&&n.value!==a[1]&&Hn(n,a[1]),a[2]?l&&(l.d(1),l=null):l?l.p(a,c):(l=Sv(a),l.c(),l.m(e,null))},d(a){a&&F(e),t[15](null),l&&l.d(),r=!1,qn(s)}}}function Kae(t){let e,n,i=t[0]&&t[3]&&jv(t);return{c(){i&&i.c(),e=Dn()},m(o,r){i&&i.m(o,r),N(o,e,r),n=!0},p(o,[r]){o[0]&&o[3]?i?(i.p(o,r),r&9&&I(i,1)):(i=jv(o),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(It(),H(i,1,1,(()=>{i=null})),Dt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&F(e),i&&i.d(o)}}}function Yae(t,e,n){let i;const{l10nString:o}=wt(oi);Pe(t,o,(k=>n(6,i=k)));function r(k){n(14,u=k.callback),n(3,l=k.target),n(1,d=k.value),n(2,p=k.disabled),n(0,c=!0),ur().then((()=>{_&&_.focus()}))}function s(){n(0,c=!1)}let l,a,c=!1,d,u,p,_;function f(){n(0,c=!1)}function m(){n(1,d=""),a==null||a.hide(),u(d)}function h(k){Jc.isPressed(k)&&!p&&(k.preventDefault(),k.stopPropagation(),a==null||a.hide(),u(d))}function v(){u(d)}function y(k){pt[k?"unshift":"push"]((()=>{_=k,n(5,_)}))}function b(){d=this.value,n(1,d)}function w(k){pt[k?"unshift":"push"]((()=>{a=k,n(4,a)}))}return t.$$.update=()=>{t.$$.dirty&16391&&c&&!p&&u(d)},[c,d,p,l,a,_,i,o,f,m,h,v,r,s,u,y,b,w]}class Gae extends Gt{constructor(e){super(),Yt(this,e,Yae,Kae,Rt,{show:12,hide:13})}get show(){return this.$$.ctx[12]}get hide(){return this.$$.ctx[13]}}function cc(t,e){if(!e||typeof e!="object")return e;if(typeof e.$ref=="string")return e.$ref==="common.json#/non_empty_string"?{type:"string"}:e.$ref==="common.json#/color"?{type:"color"}:e.$ref==="common.json#/url"?{type:"url"}:e.$ref.startsWith("#definitions")||e.$ref.startsWith("#/definitions")?cc(t,t.definitions[e.$ref.replace(/^#\/?/,"").split("/").slice(1).join("/")]):LV(e.$ref.replace(/\.json$/,""));for(const n in e){const i=e[n];if(i&&typeof i=="object")if(Array.isArray(i))for(let o=0;o<i.length;++o)i[o]=cc(t,i[o]);else e[n]=cc(t,i)}return e}function LV(t){var n;const e=(n=wa[t])==null?void 0:n.default;return cc(e,e)}function FV(t){const e=[];let n=new Set;if(Array.isArray(t.required)&&(n=new Set(t.required)),t.properties)for(const i in t.properties){const o=t.properties[i];if(!(i==="type"&&o.type==="string"&&Array.isArray(o.enum)&&o.enum.length===1))if(o.anyOf){const r={name:i,type:"select",options:o.anyOf.map((s=>{var a,c,d;const l=(d=(c=(a=s.properties)==null?void 0:a.type)==null?void 0:c.enum)==null?void 0:d[0];return{text:l,value:l}})).filter((s=>s.text)),required:n.has(i),subcontrols:{}};o.anyOf.forEach((s=>{var a,c,d;const l=(d=(c=(a=s.properties)==null?void 0:a.type)==null?void 0:c.enum)==null?void 0:d[0];l&&(r.subcontrols[l]=FV(s))})),e.push(r)}else{let r="string";const s=o.type;(s==="integer"||s==="number"||s==="color"||s==="url"||s==="boolean"||s==="object"||s==="array")&&(r=s),e.push({name:i,type:r,required:n.has(i)})}}return e}function Xae(t){try{const e=LV(t);if(e)return FV(e)}catch(e){console.error(e)}return[]}function Cv(t,e,n){const i=t.slice();return i[15]=e[n],i[16]=e,i[17]=n,i}function Tv(t){let e;return{c(){e=Ze(".type")},m(n,i){N(n,e,i)},d(n){n&&F(e)}}}function Zae(t){let e,n,i;function o(s){t[11](s,t[15])}let r={subtype:Ov[t[15].type],disabled:t[2]};return t[0][t[15].name]!==void 0&&(r.value=t[0][t[15].name]),e=new go({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[12]),{c(){Ie(e.$$.fragment)},m(s,l){Oe(e,s,l),i=!0},p(s,l){t=s;const a={};l&2&&(a.subtype=Ov[t[15].type]),l&4&&(a.disabled=t[2]),!n&&l&3&&(n=!0,a.value=t[0][t[15].name],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Me(e,s)}}}function xae(t){let e,n,i;function o(s){t[9](s,t[15])}let r={hasDialog:!0,readOnly:t[2]};return t[0][t[15].name]!==void 0&&(r.value=t[0][t[15].name]),e=new ud({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[10]),{c(){Ie(e.$$.fragment)},m(s,l){Oe(e,s,l),i=!0},p(s,l){t=s;const a={};l&4&&(a.readOnly=t[2]),!n&&l&3&&(n=!0,a.value=t[0][t[15].name],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Me(e,s)}}}function Qae(t){let e,n,i;function o(s){t[7](s,t[15])}let r={disabled:t[2]};return t[0][t[15].name]!==void 0&&(r.value=t[0][t[15].name]),e=new PV({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[8]),{c(){Ie(e.$$.fragment)},m(s,l){Oe(e,s,l),i=!0},p(s,l){t=s;const a={};l&4&&(a.disabled=t[2]),!n&&l&3&&(n=!0,a.value=t[0][t[15].name],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Me(e,s)}}}function ece(t){let e,n,i;function o(l){t[4](l,t[15])}function r(){return t[5](t[15])}let s={theme:"normal",size:"medium",items:t[15].options,disabled:t[2]};return t[0][t[15].name].type!==void 0&&(s.value=t[0][t[15].name].type),e=new Hr({props:s}),pt.push((()=>Gn(e,"value",o))),e.$on("change",r),e.$on("change",t[6]),{c(){Ie(e.$$.fragment)},m(l,a){Oe(e,l,a),i=!0},p(l,a){t=l;const c={};a&2&&(c.items=t[15].options),a&4&&(c.disabled=t[2]),!n&&a&3&&(n=!0,c.value=t[0][t[15].name].type,Xn((()=>n=!1))),e.$set(c)},i(l){i||(I(e.$$.fragment,l),i=!0)},o(l){H(e.$$.fragment,l),i=!1},d(l){Me(e,l)}}}function zv(t){let e,n=t[0][t[15].name].type,i,o=Ev(t);return{c(){e=S("div"),o.c(),g(e,"class","controls-list__sublist svelte-841cor")},m(r,s){N(r,e,s),o.m(e,null),i=!0},p(r,s){s&3&&Rt(n,n=r[0][r[15].name].type)?(It(),H(o,1,1,tn),Dt(),o=Ev(r),o.c(),I(o,1),o.m(e,null)):o.p(r,s)},i(r){i||(I(o),i=!0)},o(r){H(o),i=!1},d(r){r&&F(e),o.d(r)}}}function Ev(t){let e,n,i;function o(s){t[13](s,t[15])}let r={controls:t[15].subcontrols[t[0][t[15].name].type],readOnly:t[2]};return t[0][t[15].name]!==void 0&&(r.value=t[0][t[15].name]),e=new NV({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[14]),{c(){Ie(e.$$.fragment)},m(s,l){Oe(e,s,l),i=!0},p(s,l){t=s;const a={};l&3&&(a.controls=t[15].subcontrols[t[0][t[15].name].type]),l&4&&(a.readOnly=t[2]),!n&&l&3&&(n=!0,a.value=t[0][t[15].name],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Me(e,s)}}}function Av(t){let e,n,i,o=t[15].name+"",r,s,l,a,c,d,u,p=t[15].type==="select"&&Tv();const _=[ece,Qae,xae,Zae],f=[];function m(v,y){return v[15].type==="select"?0:v[15].type==="boolean"?1:v[15].type==="color"?2:3}l=m(t),a=f[l]=_[l](t);let h=t[15].type==="select"&&t[15].subcontrols[t[0][t[15].name].type]&&zv(t);return{c(){e=S("div"),n=S("label"),i=S("div"),r=Ze(o),p&&p.c(),s=X(),a.c(),c=X(),h&&h.c(),d=X(),g(i,"class","controls-list__label svelte-841cor"),g(n,"class","controls-list__row")},m(v,y){N(v,e,y),$(e,n),$(n,i),$(i,r),p&&p.m(i,null),$(n,s),f[l].m(n,null),$(e,c),h&&h.m(e,null),$(e,d),u=!0},p(v,y){(!u||y&2)&&o!==(o=v[15].name+"")&<(r,o),v[15].type==="select"?p||(p=Tv(),p.c(),p.m(i,null)):p&&(p.d(1),p=null);let b=l;l=m(v),l===b?f[l].p(v,y):(It(),H(f[b],1,1,(()=>{f[b]=null})),Dt(),a=f[l],a?a.p(v,y):(a=f[l]=_[l](v),a.c()),I(a,1),a.m(n,null)),v[15].type==="select"&&v[15].subcontrols[v[0][v[15].name].type]?h?(h.p(v,y),y&3&&I(h,1)):(h=zv(v),h.c(),I(h,1),h.m(e,d)):h&&(It(),H(h,1,1,(()=>{h=null})),Dt())},i(v){u||(I(a),I(h),u=!0)},o(v){H(a),H(h),u=!1},d(v){v&&F(e),p&&p.d(),f[l].d(),h&&h.d()}}}function tce(t){let e,n,i=an(t[1]),o=[];for(let s=0;s<i.length;s+=1)o[s]=Av(Cv(t,i,s));const r=s=>H(o[s],1,1,(()=>{o[s]=null}));return{c(){e=S("div");for(let s=0;s<o.length;s+=1)o[s].c();g(e,"class","controls-list svelte-841cor")},m(s,l){N(s,e,l);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);n=!0},p(s,[l]){if(l&15){i=an(s[1]);let a;for(a=0;a<i.length;a+=1){const c=Cv(s,i,a);o[a]?(o[a].p(c,l),I(o[a],1)):(o[a]=Av(c),o[a].c(),I(o[a],1),o[a].m(e,null))}for(It(),a=i.length;a<o.length;a+=1)r(a);Dt()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)I(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)H(o[l]);n=!1},d(s){s&&F(e),Bi(o,s)}}}const Ov={string:void 0,integer:"integer",number:"number",color:void 0,url:void 0,boolean:void 0,array:"array",object:"dict"};function nce(t,e,n){let{value:i}=e,{controls:o}=e,{readOnly:r}=e;function s(y){n(0,i[y]={type:i[y].type},i)}function l(y,b){t.$$.not_equal(i[b.name].type,y)&&(i[b.name].type=y,n(0,i),n(1,o))}const a=y=>s(y.name);function c(y){mn.call(this,t,y)}function d(y,b){t.$$.not_equal(i[b.name],y)&&(i[b.name]=y,n(0,i),n(1,o))}function u(y){mn.call(this,t,y)}function p(y,b){t.$$.not_equal(i[b.name],y)&&(i[b.name]=y,n(0,i),n(1,o))}function _(y){mn.call(this,t,y)}function f(y,b){t.$$.not_equal(i[b.name],y)&&(i[b.name]=y,n(0,i),n(1,o))}function m(y){mn.call(this,t,y)}function h(y,b){t.$$.not_equal(i[b.name],y)&&(i[b.name]=y,n(0,i),n(1,o))}function v(y){mn.call(this,t,y)}return t.$$set=y=>{"value"in y&&n(0,i=y.value),"controls"in y&&n(1,o=y.controls),"readOnly"in y&&n(2,r=y.readOnly)},t.$$.update=()=>{t.$$.dirty&3&&o.forEach((y=>{y.type==="select"&&n(0,i[y.name]=i[y.name]||{},i)}))},[i,o,r,s,l,a,c,d,u,p,_,f,m,h,v]}class NV extends Gt{constructor(e){super(),Yt(this,e,nce,tce,Rt,{value:0,controls:1,readOnly:2})}}function Mv(t,e,n){const i=t.slice();return i[28]=e[n],i[29]=e,i[30]=n,i}function Pv(t){let e,n;return e=new Tr({props:{target:t[6],canMove:!0,overflow:"visible",$$slots:{default:[sce]},$$scope:{ctx:t}}}),e.$on("close",t[13]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o[0]&64&&(r.target=i[6]),o[0]&957|o[1]&1&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function ice(t){let e,n,i=an(t[7]),o=[];for(let s=0;s<i.length;s+=1)o[s]=Iv(Mv(t,i,s));const r=s=>H(o[s],1,1,(()=>{o[s]=null}));return{c(){for(let s=0;s<o.length;s+=1)o[s].c();e=Dn()},m(s,l){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(s,l);N(s,e,l),n=!0},p(s,l){if(l[0]&32920){i=an(s[7]);let a;for(a=0;a<i.length;a+=1){const c=Mv(s,i,a);o[a]?(o[a].p(c,l),I(o[a],1)):(o[a]=Iv(c),o[a].c(),I(o[a],1),o[a].m(e.parentNode,e))}for(It(),a=i.length;a<o.length;a+=1)r(a);Dt()}},i(s){if(!n){for(let l=0;l<i.length;l+=1)I(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)H(o[l]);n=!1},d(s){s&&F(e),Bi(o,s)}}}function oce(t){let e,n,i;function o(s){t[22](s)}let r={readOnly:t[3],controls:t[8]};return t[2].typed!==void 0&&(r.value=t[2].typed),e=new NV({props:r}),pt.push((()=>Gn(e,"value",o))),{c(){Ie(e.$$.fragment)},m(s,l){Oe(e,s,l),i=!0},p(s,l){const a={};l[0]&8&&(a.readOnly=s[3]),l[0]&256&&(a.controls=s[8]),!n&&l[0]&4&&(n=!0,a.value=s[2].typed,Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Me(e,s)}}}function rce(t){let e,n,i,o=t[5]("actions-url")+"",r,s,l,a,c;function d(p){t[21](p)}let u={disabled:t[3]};return t[2].url!==void 0&&(u.value=t[2].url),l=new go({props:u}),pt.push((()=>Gn(l,"value",d))),{c(){e=S("div"),n=S("label"),i=S("div"),r=Ze(o),s=X(),Ie(l.$$.fragment),g(i,"class","actions2-dialog__label svelte-1krewng")},m(p,_){N(p,e,_),$(e,n),$(n,i),$(i,r),$(n,s),Oe(l,n,null),c=!0},p(p,_){(!c||_[0]&32)&&o!==(o=p[5]("actions-url")+"")&<(r,o);const f={};_[0]&8&&(f.disabled=p[3]),!a&&_[0]&4&&(a=!0,f.value=p[2].url,Xn((()=>a=!1))),l.$set(f)},i(p){c||(I(l.$$.fragment,p),c=!0)},o(p){H(l.$$.fragment,p),c=!1},d(p){p&&F(e),Me(l)}}}function Iv(t){let e,n,i,o=(t[28].desc.text[t[4]]||t[28].desc.name)+"",r,s,l,a,c,d;function u(_){t[23](_,t[28])}let p={disabled:t[3]};return t[28].value!==void 0&&(p.value=t[28].value),l=new go({props:p}),pt.push((()=>Gn(l,"value",u))),l.$on("change",t[15]),{c(){e=S("div"),n=S("label"),i=S("div"),r=Ze(o),s=X(),Ie(l.$$.fragment),c=X(),g(i,"class","actions2-dialog__label svelte-1krewng")},m(_,f){N(_,e,f),$(e,n),$(n,i),$(i,r),$(n,s),Oe(l,n,null),$(e,c),d=!0},p(_,f){t=_,(!d||f[0]&144)&&o!==(o=(t[28].desc.text[t[4]]||t[28].desc.name)+"")&<(r,o);const m={};f[0]&8&&(m.disabled=t[3]),!a&&f[0]&128&&(a=!0,m.value=t[28].value,Xn((()=>a=!1))),l.$set(m)},i(_){d||(I(l.$$.fragment,_),d=!0)},o(_){H(l.$$.fragment,_),d=!1},d(_){_&&F(e),Me(l)}}}function sce(t){let e,n,i,o,r,s,l,a,c,d,u=t[5]("actions-log-id")+"",p,_,f,m,h,v,y,b,w=t[5]("actions-log-url")+"",k,E,T,j,A;function O(Y){t[20](Y)}let M={items:t[9],theme:"normal",size:"medium",disabled:t[3]};t[0]!==void 0&&(M.value=t[0]),n=new Hr({props:M}),pt.push((()=>Gn(n,"value",O))),n.$on("change",t[14]);const D=[rce,oce,ice],R=[];function U(Y,x){var de;return Y[0]==="url"?0:(de=Y[8])!=null&&de.length&&Y[2].typed?1:Y[7].length?2:-1}~(r=U(t))&&(s=R[r]=D[r](t));function B(Y){t[24](Y)}let C={disabled:t[3]};t[2].log_id!==void 0&&(C.value=t[2].log_id),f=new go({props:C}),pt.push((()=>Gn(f,"value",B)));function q(Y){t[25](Y)}let V={disabled:t[3]};return t[2].log_url!==void 0&&(V.value=t[2].log_url),T=new go({props:V}),pt.push((()=>Gn(T,"value",q))),{c(){e=S("div"),Ie(n.$$.fragment),o=X(),s&&s.c(),l=X(),a=S("div"),c=S("label"),d=S("div"),p=Ze(u),_=X(),Ie(f.$$.fragment),h=X(),v=S("div"),y=S("label"),b=S("div"),k=Ze(w),E=X(),Ie(T.$$.fragment),g(d,"class","actions2-dialog__label svelte-1krewng"),g(b,"class","actions2-dialog__label svelte-1krewng"),g(e,"class","actions2-dialog__content svelte-1krewng")},m(Y,x){N(Y,e,x),Oe(n,e,null),$(e,o),~r&&R[r].m(e,null),$(e,l),$(e,a),$(a,c),$(c,d),$(d,p),$(c,_),Oe(f,c,null),$(e,h),$(e,v),$(v,y),$(y,b),$(b,k),$(y,E),Oe(T,y,null),A=!0},p(Y,x){const de={};x[0]&512&&(de.items=Y[9]),x[0]&8&&(de.disabled=Y[3]),!i&&x[0]&1&&(i=!0,de.value=Y[0],Xn((()=>i=!1))),n.$set(de);let _e=r;r=U(Y),r===_e?~r&&R[r].p(Y,x):(s&&(It(),H(R[_e],1,1,(()=>{R[_e]=null})),Dt()),~r?(s=R[r],s?s.p(Y,x):(s=R[r]=D[r](Y),s.c()),I(s,1),s.m(e,l)):s=null),(!A||x[0]&32)&&u!==(u=Y[5]("actions-log-id")+"")&<(p,u);const G={};x[0]&8&&(G.disabled=Y[3]),!m&&x[0]&4&&(m=!0,G.value=Y[2].log_id,Xn((()=>m=!1))),f.$set(G),(!A||x[0]&32)&&w!==(w=Y[5]("actions-log-url")+"")&<(k,w);const Q={};x[0]&8&&(Q.disabled=Y[3]),!j&&x[0]&4&&(j=!0,Q.value=Y[2].log_url,Xn((()=>j=!1))),T.$set(Q)},i(Y){A||(I(n.$$.fragment,Y),I(s),I(f.$$.fragment,Y),I(T.$$.fragment,Y),A=!0)},o(Y){H(n.$$.fragment,Y),H(s),H(f.$$.fragment,Y),H(T.$$.fragment,Y),A=!1},d(Y){Y&&F(e),Me(n),~r&&R[r].d(),Me(f),Me(T)}}}function lce(t){let e,n,i=t[1]&&t[6]&&Pv(t);return{c(){i&&i.c(),e=Dn()},m(o,r){i&&i.m(o,r),N(o,e,r),n=!0},p(o,r){o[1]&&o[6]?i?(i.p(o,r),r[0]&66&&I(i,1)):(i=Pv(o),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(It(),H(i,1,1,(()=>{i=null})),Dt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&F(e),i&&i.d(o)}}}const Dv={focus_element:"div-action-focus-element",clear_focus:"div-action-clear-focus",set_variable:"div-action-set-variable",array_insert_value:"div-action-array-insert-value",array_remove_value:"div-action-array-remove-value",dict_set_value:"div-action-dict-set-value",array_set_value:"div-action-array-set-value",copy_to_clipboard:"div-action-copy-to-clipboard",show_tooltip:"div-action-show-tooltip",hide_tooltip:"div-action-hide-tooltip"};function Vv(t,e){const n=new URLSearchParams;for(const i of e){const o=i.value;o&&n.set(i.desc.name,o)}return t.baseUrl+(n.size?"?"+n.toString():"")}function ace(t,e,n){let i,o,r,s;const{l10n:l,lang:a}=wt(oi);Pe(t,l,(B=>n(5,s=B))),Pe(t,a,(B=>n(4,o=B)));const{state:c}=wt(An),{customActions:d}=c;Pe(t,d,(B=>n(19,r=B)));function u(B){n(18,y=B.callback),n(6,_=B.target),n(2,v=B.value),n(3,b=B.readOnly),n(1,h=!0);const C=zV(B.value,r);n(0,f=C.type),w=C.desc,n(7,m=C.args||[])}function p(){n(1,h=!1)}let _,f="url",m=[],h=!1,v,y,b,w,k=null;function E(){n(1,h=!1)}function T(){var B;w=f.startsWith("custom:")?r[Number(f.split(":")[1])]:void 0,w?(n(2,v.url=Vv(w,[]),v),n(7,m=((B=w.args)==null?void 0:B.map((C=>({value:"",desc:C}))))||[])):f.startsWith("typed:")?n(2,v.typed={type:f.split(":")[1]},v):n(7,m=[])}function j(){w&&n(2,v.url=Vv(w,m),v)}function A(B){f=B,n(0,f)}function O(B){t.$$.not_equal(v.url,B)&&(v.url=B,n(2,v))}function M(B){t.$$.not_equal(v.typed,B)&&(v.typed=B,n(2,v))}function D(B,C){t.$$.not_equal(C.value,B)&&(C.value=B,n(7,m))}function R(B){t.$$.not_equal(v.log_id,B)&&(v.log_id=B,n(2,v))}function U(B){t.$$.not_equal(v.log_url,B)&&(v.log_url=B,n(2,v))}return t.$$.update=()=>{if(t.$$.dirty[0]&262158&&h&&!b&&y&&(v.log_url||delete v.log_url,y(v)),t.$$.dirty[0]&1)if(f.startsWith("typed:")){const B=f.split(":")[1];B in Dv?n(8,k=Xae(Dv[B])):n(8,k=[])}else n(8,k=null);t.$$.dirty[0]&524336&&n(9,i=[{value:"url",text:s("actions-url")},{value:"typed:set_variable",text:s("actions.set_variable")},{value:"typed:focus_element",text:s("actions.focus_element")},{value:"typed:clear_focus",text:s("actions.clear_focus")},{value:"typed:array_insert_value",text:s("actions.array_insert_value")},{value:"typed:array_remove_value",text:s("actions.array_remove_value")},{value:"typed:array_set_value",text:s("actions.array_set_value")},{value:"typed:dict_set_value",text:s("actions.dict_set_value")},{value:"typed:copy_to_clipboard",text:s("actions.copy_to_clipboard")},{value:"typed:show_tooltip",text:s("actions.show_tooltip")},{value:"typed:hide_tooltip",text:s("actions.hide_tooltip")}].concat(r.map(((B,C)=>({value:`custom:${C}`,text:B.text[o]||B.baseUrl})))))},[f,h,v,b,o,s,_,m,k,i,l,a,d,E,T,j,u,p,y,r,A,O,M,D,R,U]}class cce extends Gt{constructor(e){super(),Yt(this,e,ace,lce,Rt,{show:16,hide:17},null,[-1,-1])}get show(){return this.$$.ctx[16]}get hide(){return this.$$.ctx[17]}}function Lv(t){let e,n;return e=new Tr({props:{direction:"down",offsetY:12,target:t[3],width:10+t[4]*32+(t[4]-1)*4+"px",$$slots:{default:[dce]},$$scope:{ctx:t}}}),e.$on("close",t[10]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&8&&(r.target=i[3]),o&16&&(r.width=10+i[4]*32+(i[4]-1)*4+"px"),o&131174&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function dce(t){let e,n,i;function o(s){t[15](s)}let r={name:"text_alignment_horizontal",theme:"tertiary",defaultValue:"left",disabled:t[2],options:[{text:t[5]("props.align_left"),value:"left",icon:Ic},t[7]&&{text:t[6]==="ltr"?t[5]("props.align_start"):t[5]("props.align_end"),value:t[6]==="ltr"?"start":"end",icon:Dc},{text:t[5]("props.align_center"),value:"center",icon:al},t[7]&&{text:t[6]==="ltr"?t[5]("props.align_end"):t[5]("props.align_start"),value:t[6]==="ltr"?"end":"start",icon:Lc},{text:t[5]("props.align_right"),value:"right",icon:Vc}].filter(kr),customTooltips:!1};return t[1]!==void 0&&(r.value=t[1]),e=new Dl({props:r}),pt.push((()=>Gn(e,"value",o))),e.$on("change",t[11]),{c(){Ie(e.$$.fragment)},m(s,l){Oe(e,s,l),i=!0},p(s,l){const a={};l&4&&(a.disabled=s[2]),l&96&&(a.options=[{text:s[5]("props.align_left"),value:"left",icon:Ic},s[7]&&{text:s[6]==="ltr"?s[5]("props.align_start"):s[5]("props.align_end"),value:s[6]==="ltr"?"start":"end",icon:Dc},{text:s[5]("props.align_center"),value:"center",icon:al},s[7]&&{text:s[6]==="ltr"?s[5]("props.align_end"):s[5]("props.align_start"),value:s[6]==="ltr"?"end":"start",icon:Lc},{text:s[5]("props.align_right"),value:"right",icon:Vc}].filter(kr)),!n&&l&2&&(n=!0,a.value=s[1],Xn((()=>n=!1))),e.$set(a)},i(s){i||(I(e.$$.fragment,s),i=!0)},o(s){H(e.$$.fragment,s),i=!1},d(s){Me(e,s)}}}function uce(t){let e,n,i=t[0]&&t[3]&&Lv(t);return{c(){i&&i.c(),e=Dn()},m(o,r){i&&i.m(o,r),N(o,e,r),n=!0},p(o,[r]){o[0]&&o[3]?i?(i.p(o,r),r&9&&I(i,1)):(i=Lv(o),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(It(),H(i,1,1,(()=>{i=null})),Dt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&F(e),i&&i.d(o)}}}function pce(t,e,n){let i,o,r;const{directionSelector:s,state:l}=wt(An),{l10n:a}=wt(oi);Pe(t,a,(w=>n(5,o=w)));const{direction:c}=l;Pe(t,c,(w=>n(6,r=w)));function d(w){n(14,m=w.callback),n(3,p=w.target),n(1,f=w.value),n(2,h=w.disabled),n(0,_=!0)}function u(){n(0,_=!1)}let p,_=!1,f,m,h;function v(){n(0,_=!1)}function y(){m(f)}function b(w){f=w,n(1,f)}return t.$$.update=()=>{t.$$.dirty&16391&&_&&!h&&m(f)},n(4,i=s?5:3),[_,f,h,p,i,o,r,s,a,c,v,y,d,u,m,b]}class _ce extends Gt{constructor(e){super(),Yt(this,e,pce,uce,Rt,{show:12,hide:13})}get show(){return this.$$.ctx[12]}get hide(){return this.$$.ctx[13]}}function xl(t){if(!t)return;let e="";for(const n in t)if(t.hasOwnProperty(n)){if(!t[n]&&t[n]!==0)continue;e&&(e+=";"),e+=n+":"+String(t[n])}return e||void 0}function Pr(t){let e=String(t);return e.indexOf("&")>-1&&(e=e.replace(/&/g,"&")),e.indexOf("<")>-1&&(e=e.replace(/</g,"<")),e.indexOf(">")>-1&&(e=e.replace(/>/g,">")),e.indexOf('"')>-1&&(e=e.replace(/"/g,""")),e}const fce='<svg xmlns="http://www.w3.org/2000/svg" width="17" height="6" fill="none" class="inplace-editor__alert-tail"><path fill="currentColor" d="M7.143 1.252 3.15 4.94A4 4 0 0 1 .436 6h16.128a4 4 0 0 1-2.713-1.06L9.857 1.251a2 2 0 0 0-2.714 0Z"/></svg>';function Fv(t){let e,n,i,o,r=t[16]("inplaceEditorDisabled")+"",s,l,a,c,d,u,p,_;return{c(){e=S("div"),n=S("div"),i=new Cu(!1),o=X(),s=Ze(r),l=X(),a=S("button"),i.a=o,g(a,"class","inplace-editor__disabled-alert-close svelte-auqd4z"),g(a,"title",c=t[16]("close")),g(n,"class","inplace-editor__disabled-alert svelte-auqd4z"),g(e,"class","inplace-editor__disabled-alert-wrapper svelte-auqd4z")},m(f,m){N(f,e,m),$(e,n),i.m(fce,n),$(n,o),$(n,s),$(n,l),$(n,a),u=!0,p||(_=ee(a,"click",t[49]),p=!0)},p(f,m){(!u||m[0]&65536)&&r!==(r=f[16]("inplaceEditorDisabled")+"")&<(s,r),(!u||m[0]&65536&&c!==(c=f[16]("close")))&&g(a,"title",c)},i(f){u||(f&&po((()=>{u&&(d||(d=Zi(e,fr,{y:20,duration:150},!0)),d.run(1))})),u=!0)},o(f){f&&(d||(d=Zi(e,fr,{y:20,duration:150},!1)),d.run(0)),u=!1},d(f){f&&F(e),f&&d&&d.end(),p=!1,_()}}}function mce(t){let e,n,i,o,r,s,l,a,c,d,u,p,_,f,m,h,v,y,b,w,k,E,T,j,A,O,M,D,R,U,B,C,q,V,Y,x,de,_e,G,Q,oe,he,ze,W,Ke,at,Te=`translateY(${-t[8]/2}px)`,ot,J,ue,fe,Qe,ye,Ee,Ye,vt,ne,pe=[{class:"inplace-editor__button2 inplace-editor__button2_text"},{title:s=t[16]("props.font_size")},{contenteditable:l=t[0]?void 0:"true"},{autocorrect:"off"},{autocapitalize:"off"},{spellcheck:"false"},{autocomplete:"off"}],kt={};for(let et=0;et<pe.length;et+=1)kt=_s(kt,pe[et]);d=new Ys({props:{color:t[4],mix:"inplace-editor__color-preview"}});let $e=t[10]&&Fv(t);return{c(){e=S("div"),n=S("div"),i=S("div"),o=S("div"),r=Ze(t[3]),a=X(),c=S("button"),Ie(d.$$.fragment),p=X(),_=S("button"),f=S("div"),v=X(),y=S("div"),b=S("div"),w=X(),k=S("select"),E=S("option"),T=S("option"),T.textContent="Light",j=S("option"),j.textContent="Normal",A=S("option"),A.textContent="Medium",O=S("option"),O.textContent="Bold",D=X(),R=S("button"),U=S("div"),C=X(),q=S("button"),V=S("div"),x=X(),de=S("div"),_e=X(),G=S("button"),Q=S("div"),he=X(),ze=S("button"),W=S("div"),ot=X(),J=S("div"),ye=X(),$e&&$e.c(),fs(o,kt),te(o,"svelte-auqd4z",!0),g(c,"class","inplace-editor__button2 inplace-editor__button2_color svelte-auqd4z"),g(c,"title",u=t[16]("props.text_color")),g(f,"class",m="inplace-editor__select-icon inplace-editor__select-icon_align_"+t[9]+" svelte-auqd4z"),g(_,"class","inplace-editor__button2 inplace-editor__button2_color svelte-auqd4z"),g(_,"title",h=t[16]("props.text_alignment_horizontal")),g(b,"class","inplace-editor__select-icon inplace-editor__select-icon_weight svelte-auqd4z"),E.__value="",Hn(E,E.__value),T.__value="light",Hn(T,T.__value),j.__value="normal",Hn(j,j.__value),A.__value="medium",Hn(A,A.__value),O.__value="bold",Hn(O,O.__value),g(k,"class","inplace-editor__select svelte-auqd4z"),g(k,"title",M=t[16]("props.font_weight")),k.disabled=t[0],t[5]===void 0&&po((()=>t[45].call(k))),g(y,"class","inplace-editor__button2 inplace-editor__button2_select svelte-auqd4z"),g(U,"class","inplace-editor__select-icon inplace-editor__select-icon_underline svelte-auqd4z"),g(R,"class","inplace-editor__button2 svelte-auqd4z"),g(R,"title",B=t[16]("props.underline")),te(R,"inplace-editor__button2_toggled",t[6]),g(V,"class","inplace-editor__select-icon inplace-editor__select-icon_strike svelte-auqd4z"),g(q,"class","inplace-editor__button2 svelte-auqd4z"),g(q,"title",Y=t[16]("props.strike")),te(q,"inplace-editor__button2_toggled",t[7]),g(de,"class","inplace-editor__separator svelte-auqd4z"),g(Q,"class","inplace-editor__select-icon inplace-editor__select-icon_actions svelte-auqd4z"),g(G,"class","inplace-editor__button2 svelte-auqd4z"),g(G,"title",oe=t[16]("props.actions")),g(W,"class","inplace-editor__select-icon inplace-editor__select-icon_image svelte-auqd4z"),g(ze,"class","inplace-editor__button2 svelte-auqd4z"),ze.disabled=t[1],g(ze,"title",Ke=t[16]("image")),te(ze,"inplace-editor__button2_disabled",t[1]),g(i,"class","inplace-editor__toolbar-inner svelte-auqd4z"),g(n,"class","inplace-editor__toolbar svelte-auqd4z"),je(n,"transform",Te),g(J,"class",ue="inplace-editor__content inplace-editor__content_align_"+t[9]+" svelte-auqd4z"),g(J,"contenteditable",fe=t[0]||t[1]?void 0:"true"),g(J,"style",Qe=xl(t[15])),g(e,"class",Ee="inplace-editor inplace-editor_direction_"+t[17]+" svelte-auqd4z"),te(e,"inplace-editor_disabled",t[0])},m(et,le){N(et,e,le),$(e,n),$(n,i),$(i,o),$(o,r),$(i,a),$(i,c),Oe(d,c,null),$(i,p),$(i,_),$(_,f),t[44](_),$(i,v),$(i,y),$(y,b),$(y,w),$(y,k),$(k,E),$(k,T),$(k,j),$(k,A),$(k,O),pc(k,t[5],!0),$(i,D),$(i,R),$(R,U),$(i,C),$(i,q),$(q,V),$(i,x),$(i,de),$(i,_e),$(i,G),$(G,Q),t[46](G),$(i,he),$(i,ze),$(ze,W),t[47](i),$(e,ot),$(e,J),t[48](J),$(e,ye),$e&&$e.m(e,null),t[50](e),Ye=!0,vt||(ne=[ee(o,"input",t[28]),ee(c,"click",zi(t[29])),ee(_,"click",zi(t[30])),ee(k,"change",t[45]),ee(k,"change",t[27]),ee(R,"click",zi(t[31])),ee(q,"click",zi(t[32])),ee(G,"click",zi(t[33])),ee(ze,"click",zi(t[26])),ee(J,"input",t[24]),ee(J,"paste",vce),ee(J,"selectionchange",t[25]),ee(J,"mousemove",t[25]),ee(J,"mouseup",zi(t[25])),ee(J,"contextmenu",t[25]),ee(J,"keyup",t[25]),ee(J,"keydown",t[25]),ee(J,"focus",t[25]),ee(e,"click",Eo(t[41])),ee(e,"dblclick",Eo(t[42])),ee(e,"keydown",Eo(t[23])),ee(e,"pointerdown",Eo(t[43]))],vt=!0)},p(et,le){(!Ye||le[0]&8)&&xV(r,et[3],et[0]?void 0:"true"),fs(o,kt=vl(pe,[{class:"inplace-editor__button2 inplace-editor__button2_text"},(!Ye||le[0]&65536&&s!==(s=et[16]("props.font_size")))&&{title:s},(!Ye||le[0]&1&&l!==(l=et[0]?void 0:"true"))&&{contenteditable:l},{autocorrect:"off"},{autocapitalize:"off"},{spellcheck:"false"},{autocomplete:"off"}])),te(o,"svelte-auqd4z",!0);const Ve={};le[0]&16&&(Ve.color=et[4]),d.$set(Ve),(!Ye||le[0]&65536&&u!==(u=et[16]("props.text_color")))&&g(c,"title",u),(!Ye||le[0]&512&&m!==(m="inplace-editor__select-icon inplace-editor__select-icon_align_"+et[9]+" svelte-auqd4z"))&&g(f,"class",m),(!Ye||le[0]&65536&&h!==(h=et[16]("props.text_alignment_horizontal")))&&g(_,"title",h),(!Ye||le[0]&65536&&M!==(M=et[16]("props.font_weight")))&&g(k,"title",M),(!Ye||le[0]&1)&&(k.disabled=et[0]),le[0]&32&&pc(k,et[5]),(!Ye||le[0]&65536&&B!==(B=et[16]("props.underline")))&&g(R,"title",B),(!Ye||le[0]&64)&&te(R,"inplace-editor__button2_toggled",et[6]),(!Ye||le[0]&65536&&Y!==(Y=et[16]("props.strike")))&&g(q,"title",Y),(!Ye||le[0]&128)&&te(q,"inplace-editor__button2_toggled",et[7]),(!Ye||le[0]&65536&&oe!==(oe=et[16]("props.actions")))&&g(G,"title",oe),(!Ye||le[0]&2)&&(ze.disabled=et[1]),(!Ye||le[0]&65536&&Ke!==(Ke=et[16]("image")))&&g(ze,"title",Ke),(!Ye||le[0]&2)&&te(ze,"inplace-editor__button2_disabled",et[1]),le[0]&256&&Te!==(Te=`translateY(${-et[8]/2}px)`)&&je(n,"transform",Te),(!Ye||le[0]&512&&ue!==(ue="inplace-editor__content inplace-editor__content_align_"+et[9]+" svelte-auqd4z"))&&g(J,"class",ue),(!Ye||le[0]&3&&fe!==(fe=et[0]||et[1]?void 0:"true"))&&g(J,"contenteditable",fe),(!Ye||le[0]&32768&&Qe!==(Qe=xl(et[15])))&&g(J,"style",Qe),et[10]?$e?($e.p(et,le),le[0]&1024&&I($e,1)):($e=Fv(et),$e.c(),I($e,1),$e.m(e,null)):$e&&(It(),H($e,1,1,(()=>{$e=null})),Dt()),(!Ye||le[0]&131072&&Ee!==(Ee="inplace-editor inplace-editor_direction_"+et[17]+" svelte-auqd4z"))&&g(e,"class",Ee),(!Ye||le[0]&131073)&&te(e,"inplace-editor_disabled",et[0])},i(et){Ye||(I(d.$$.fragment,et),et&&po((()=>{Ye&&(at||(at=Zi(n,gp,{duration:150},!0)),at.run(1))})),I($e),Ye=!0)},o(et){H(d.$$.fragment,et),et&&(at||(at=Zi(n,gp,{duration:150},!1)),at.run(0)),H($e),Ye=!1},d(et){et&&F(e),Me(d),t[44](null),t[46](null),t[47](null),et&&at&&at.end(),t[48](null),$e&&$e.d(),t[50](null),vt=!1,qn(ne)}}}function nl(t){if(typeof t!="number"&&typeof t!="string"||!t)return"0";const e=Number(t);return isNaN(e)?"0":Math.ceil(e*1e3)/1e4+"em"}function gce(t){if(t==="light"||t==="medium"||t==="bold"||t==="regular")return t==="medium"?500:t==="bold"?700:t==="light"?300:400}function hce(t){t.target&&"classList"in t.target&&t.target.classList.add("inplace-editor__image_hidden")}function vce(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function bce(t,e,n){var fi;let i,o,r,s,l,a,{text:c}=e,{json:d}=e,{leaf:u}=e,{disabled:p=!1}=e,{textDisabled:_=!1}=e,{rotation:f=0}=e;function m(){return{leaf:u,text:c,ranges:C,images:q,textAlign:W}}const{l10nString:h}=wt(oi);Pe(t,h,(Je=>n(16,o=Je)));const{actionLogUrlVariable:v,ownerDocument:y,getSelection:b,state:w,color2Dialog:k,file2Dialog:E,link2Dialog:T,textAlign2Dialog:j}=wt(An),{palette:A,selectedLeaf:O,previewThemeStore:M,direction:D}=w;Pe(t,A,(Je=>n(58,l=Je))),Pe(t,O,(Je=>n(40,r=Je))),Pe(t,M,(Je=>n(57,s=Je))),Pe(t,D,(Je=>n(17,a=Je)));const R=_i();function U(Je){const ht=Je.font_size||12,ct=(Je.line_height||1.25)/ht,gt=nl(Je.letter_spacing||0),qt=gce(Je.font_weight||"regular");let St=Je.text_color||"#000",Ot="";if(dr(St)){const ei=yr(St),Ft=l.find((xt=>xt.id===ei));Ft&&(Ot=Ac(Ft[s]))}else Ot=Ac(St);let nn="none";return(Je.underline||Je.strike)&&(Je.underline==="single"&&Je.strike==="single"?nn="underline line-through":Je.underline==="single"?nn="underline":Je.strike==="single"&&(nn="line-through")),xl({"font-size":nl(ht*10/Te),"line-height":ct,"letter-spacing":gt,"font-weight":qt,color:Ot,"text-decoration":nn})}function B(Je){let ht=0;const ct={text:"",images:[],ranges:[]},gt=St=>{const Ot=fa(St);St instanceof HTMLElement&&St.dataset.range?(ct.ranges.push({...JSON.parse(St.dataset.range),start:ht,end:ht+Ot.length}),ht+=Ot.length,ct.text+=Ot):St instanceof HTMLElement&&St.dataset.image?St.tagName==="SPAN"?Array.from(St.childNodes).forEach((nn=>{if(nn instanceof HTMLElement&&nn.tagName==="IMG")ct.images.push({...JSON.parse(St.dataset.image),start:ht});else{const ei=fa(nn);ht+=ei.length,ct.text+=ei}})):ct.images.push({...JSON.parse(St.dataset.image),start:ht}):St instanceof HTMLElement&&St.childNodes.length?(St.tagName==="DIV"&&(++ht,ct.text+=`\n`),Array.from(St.childNodes).forEach(gt)):(ht+=Ot.length,ct.text+=Ot)};return Array.from(Je.childNodes).forEach(gt),ct.ranges=et(ct.text,ct.ranges),ct}let C=d.ranges||[],q=d.images||[],V=0,Y=0,x="",de="",_e="",G=!1,Q=!1,oe=0,he=[{text:c,ranges:C,images:q}],ze=0,W=((fi=u.props.processedJson)==null?void 0:fi.text_alignment_horizontal)||"left",Ke=_&&!p;const at={font_size:d.font_size,letter_spacing:d.letter_spacing,font_weight:d.font_weight,font_family:d.font_family,text_color:d.text_color,underline:d.underline,strike:d.strike,line_height:d.line_height},Te=d.font_size||12,ot=d.line_height!==void 0?d.line_height/Te:1.25,J=d.text_color||"#000";let ue=d.line_height!==void 0,fe,Qe,ye,Ee,Ye,vt=[];ne(c,C,q);function ne(Je,ht,ct){let gt=[];if(!(Array.isArray(ht)&&ht.length||Array.isArray(ct)&&ct.length&&Je)){n(39,vt=[{index:0,text:Je,textStyles:at}]);return}const qt=Je;let St=ht||[{start:0,end:qt.length}],Ot=ct||[],nn=0,ei=[],Ft=[];St.forEach(((xt,dt)=>{xt.start!==void 0&&xt.end!==void 0&&(Ft.push({index:xt.start,elementIndex:dt,range:xt,type:"rangeStart",isStart:!0}),Ft.push({index:xt.end,elementIndex:dt,range:xt,type:"rangeEnd"}))})),Ot.forEach(((xt,dt)=>{xt.start!==void 0&&xt.url&&xt.start<=qt.length&&Ft.push({index:xt.start,elementIndex:dt,image:xt,type:"image",arrayIndex:dt})})),Ft.sort(((xt,dt)=>xt.index===dt.index?xt.type!==dt.type?xt.type==="image"?-1:dt.type==="image"?1:xt.type<dt.type?-1:1:xt.type==="image"&&dt.type==="image"?dt.arrayIndex-xt.arrayIndex:xt.type==="rangeStart"&&dt.type==="rangeStart"?xt.range.end-dt.range.end:xt.type==="rangeStart"?1:dt.type==="rangeStart"?-1:xt.type!=="image"&&dt.type!=="image"?xt.range.start-dt.range.start:0:xt.index-dt.index)),Ft.forEach((xt=>{var bi;let dt=xt.type==="image"?null:xt.range,We=xt.index;if(We>nn){const hi=Object.assign({...at},...ei);gt.push({index:xt.elementIndex,text:qt.substring(nn,We),textStyles:hi,actions:xt.type==="rangeEnd"&&((bi=xt.range)==null?void 0:bi.actions)||void 0})}if(xt.type==="rangeStart"&&dt)ei.push(dt);else if(xt.type==="rangeEnd")ei=ei.filter((hi=>hi!==xt.range));else if(xt.type==="image"){let hi=Object.assign({...at},...ei),Bn=nl((xt.image.width&&xt.image.width.value||20)*10/(hi.font_size||12)),eo=nl((xt.image.height&&xt.image.height.value||20)*10/(hi.font_size||12));const Ct={"font-size":nl((Number(hi.font_size)||12)*10/Te)};gt.push({index:xt.elementIndex,image:{url:xt.image.url,width:Bn,height:eo,wrapperStyle:Ct}})}nn=We})),nn<qt.length&>.push({text:qt.substring(nn),textStyles:at}),n(39,vt=gt)}function pe(Je){const ht=Qe===y.activeElement;let ct,gt;if(ht){const St=b();ct=Dr(St,Qe,"start",!0),gt=Dr(St,Qe,"end",!0)}n(2,Qe.innerHTML=Je.reduce(((St,Ot)=>{var ei;let nn="";return"text"in Ot?Ot.text&&(nn=`<span ${(ei=Ot.actions)!=null&&ei.length?`class="inplace-editor__link" data-actions="${Pr(JSON.stringify(Ot.actions))}"`:""} data-range-index="${Pr(String(Ot.index))}" data-range="${Pr(JSON.stringify(Ot.textStyles))}" style="${Pr(U(Ot.textStyles)||"")}">${Pr(Ot.text)}</span>`):nn=`<span data-image="${Pr(JSON.stringify(q[Ot.index]))}" data-image-index="${Pr(String(Ot.index))}" class="inplace-editor__image-wrapper" style="${Pr(xl(Ot.image.wrapperStyle)||"")}"><img class="inplace-editor__image" src=${Pr(Ot.image.url)} loading="lazy" decoding="async" aria-hidden="true" alt="" style=${Pr(xl({width:Ot.image.width,height:Ot.image.height,"margin-top":ue?`-${Ot.image.height}`:void 0,"margin-bottom":ue?`-${Ot.image.height}`:void 0,filter:Ot.image.svgFilterId?`url(#${Ot.image.svgFilterId})`:void 0})||"")}></span>`,St+nn}),""),Qe),Array.from(Qe.querySelectorAll(".inplace-editor__link")).forEach((St=>{St instanceof HTMLElement&&St.addEventListener("click",kt)})),Array.from(Qe.querySelectorAll("img")).forEach((St=>{var Ot;St.addEventListener("error",hce),(Ot=St.parentElement)==null||Ot.addEventListener("click",$e)}));const qt=b();if(qt&&ht&&ct!==void 0&>!==void 0){qt.removeAllRanges();const St=document.createRange();ts(qt,Qe,St,"start",ct,!0),ts(qt,Qe,St,"end",gt,!0),qt.addRange(St)}n(8,ze=Qe.getBoundingClientRect().height-Qe.offsetHeight),ur().then((()=>{R("resize")}))}function kt(Je){const ht=Je.target;if(!(ht instanceof HTMLElement))return;const ct=Number(ht.dataset.rangeIndex);let gt=C[ct];const qt=gt==null?void 0:gt.actions;!gt||!qt||!qt[0]||(gt=Ls(gt),T().show({target:Ye,value:qt[0].url||"",disabled:p||_,callback(St){C=[...C],St?(qt[0].url=St,C[ct]=gt):C.length=ct,Xe({text:c,ranges:C,images:q}),ne(c,C,q)}}))}function $e(Je){var St,Ot;const ht=Je.target;if(!(ht instanceof HTMLElement))return;const ct=ht.closest(".inplace-editor__image-wrapper");if(!ct||!(ct instanceof HTMLElement))return;const gt=Number(ct.dataset.imageIndex),qt=q[gt];qt&&E().show({target:ye,title:o("file.insert_image"),direction:"right",subtype:"image",hasSize:!0,hasDelete:!0,disabled:p||_,value:{url:qt.url,width:(St=qt.width)==null?void 0:St.value,height:(Ot=qt.height)==null?void 0:Ot.value},callback(nn){if(q=[...q],nn.url){const ei={start:qt.start,url:nn.url,width:{type:"fixed",value:nn.width||24},height:{type:"fixed",value:nn.height||24}};q[gt]=ei}else q.length=gt;Xe({text:c,ranges:C,images:q}),ne(c,C,q)},onHide(){q[gt]?Ve(qt.start+1,qt.start+1,!1):(q=[...q],q.length=gt,Xe({text:c,ranges:C,images:q}),ne(c,C,q),Ve(qt.start,qt.start,!1))}})}function et(Je,ht){const ct=[],gt=[];for(let Ot=0;Ot<Je.length;++Ot)gt[Ot]=at;ht.forEach((Ot=>{for(let nn=Ot.start;nn<Ot.end;++nn){const ei=vu(Ot);gt[nn]={...gt[nn],...ei}}}));const qt=(Ot,nn,ei)=>{Object.keys(ei).length>0&&ct.push({start:Ot,end:nn,...ei})};let St=0;for(let Ot=1;Ot<Je.length;++Ot)ca(gt[St],gt[Ot])||(qt(St,Ot,gt[St]),St=Ot);return qt(St,Je.length,gt[St]),ct}function le(Je,ht,ct,gt){const qt=b();ct||(ct=Dr(qt,Qe,"start",!1)),gt||(gt=Dr(qt,Qe,"end",!1)),(ct===gt||_)&&(ct=0,gt=c.length);let St=[...C,{start:ct,end:gt,[Je]:ht}];St=et(c,St),C=St,Xe({text:c,ranges:C,images:q}),ne(c,C,q),At()}function Ve(Je=V,ht=Y,ct=!1){const gt=b();if(gt){gt.removeAllRanges();const qt=document.createRange();ts(gt,Qe,qt,"start",Je,ct),ts(gt,Qe,qt,"end",ht,ct),gt.addRange(qt)}}function Xe(Je){he=he.slice(0,oe+1),he.push(Je),oe=he.length-1}function xe(){if(oe===0)return;--oe;const Je=he[oe];n(34,c=Je.text),C=Je.ranges,q=Je.images,ne(c,C,q)}function jt(){if(oe===he.length-1)return;++oe;const Je=he[oe];n(34,c=Je.text),C=Je.ranges,q=Je.images,ne(c,C,q)}function Vt(Je){$1.isPressed(Je)?xe():k1.isPressed(Je)?jt():$L.isPressed(Je)&&R("close")}function ln(){const Je=B(Qe);n(34,c=Je.text),C=Je.ranges,q=Je.images,Xe({text:c,ranges:C,images:q}),R("resize")}function sn(){if(y.activeElement===Qe){const Je=b();V=Dr(Je,Qe,"start",!1),Y=Dr(Je,Qe,"end",!1),At()}}function At(){let Je=V,ht=Y;Je===ht&&(Je=0,ht=c.length);const ct=(gt,qt)=>{var St,Ot;return V!==Y?(St=C.map((nn=>({range:nn,len:Math.min(nn.end,ht)-Math.max(nn.start,Je),val:nn[gt]}))).filter((nn=>nn.len>0&&nn.val&&(!qt||qt===nn.val))).sort(((nn,ei)=>ei.len-nn.len))[0])==null?void 0:St.val:(Ot=C.find((nn=>nn[gt]&&(!qt||qt===nn[gt])&&nn.start<=V&&V<=nn.end)))==null?void 0:Ot[gt]};n(3,x=ct("font_size")||at.font_size||12),n(4,de=ct("text_color")||at.text_color||"#000"),n(5,_e=""),n(6,G=!!(ct("underline","single")||at.underline==="single")),n(7,Q=!!(ct("strike","single")||at.strike==="single"))}function pn(){if(p||_)return;const Je=V,ht=q.length;E().show({target:ye,title:o("file.insert_image"),direction:"right",subtype:"image",hasSize:!0,hasDelete:!0,value:{url:"",width:24,height:24},callback(ct){if(q=[...q],ct.url){const gt={start:Je,url:ct.url,width:{type:"fixed",value:ct.width||24},height:{type:"fixed",value:ct.height||24}};q[ht]=gt}else q.length=ht;Xe({text:c,ranges:C,images:q}),ne(c,C,q)},onHide(){q[ht]?Ve(Je+1,Je+1,!1):(q=[...q],q.length=ht,Xe({text:c,ranges:C,images:q}),ne(c,C,q),Ve(Je,Je,!1))}})}function dn(){le("font_weight",_e)}function Rn(Je){const ht=Je.target.textContent,ct=Number(ht);Number.isNaN(ct)||le("font_size",ct,V,Y)}function Ln(){const Je=V,ht=Y;let ct,gt;dr(de)?(ct="",gt=yr(de)):(ct=de,gt=""),k().show({target:ye,value:ct,paletteId:gt,disabled:p,showPalette:!0,callback(qt,St){let Ot;St?Ot=pa(St):Ot=qt,le("text_color",Ot,Je,ht)}})}function qe(){j().show({target:Ee,value:W,disabled:p,callback(Je){n(9,W=Je)}})}function st(){p||(le("underline",G?void 0:"single",V,Y),Ve())}function li(){p||(le("strike",Q?void 0:"single",V,Y),Ve())}function bt(){if(p)return;let Je=V,ht=Y;Je===ht&&(Je=0,ht=c.length);const ct=C.length;T().show({target:Ye,value:"",callback(gt){if(C=[...C],gt){const qt={start:Je,end:ht,underline:"single",actions:[{log_id:"text_link",log_url:v?`@{${v}}`:void 0,url:gt}]};C[ct]=qt}else C.length=ct;Xe({text:c,ranges:C,images:q}),ne(c,C,q)}})}Uc((()=>{setTimeout((()=>{Qe.focus()})),At()}));function Cn(Je){mn.call(this,t,Je)}function Ut(Je){mn.call(this,t,Je)}function gn(Je){mn.call(this,t,Je)}function Lt(Je){pt[Je?"unshift":"push"]((()=>{Ee=Je,n(13,Ee)}))}function wn(){_e=u1(this),n(5,_e)}function vn(Je){pt[Je?"unshift":"push"]((()=>{Ye=Je,n(14,Ye)}))}function Jt(Je){pt[Je?"unshift":"push"]((()=>{ye=Je,n(12,ye)}))}function Kt(Je){pt[Je?"unshift":"push"]((()=>{Qe=Je,n(2,Qe)}))}const Un=()=>n(10,Ke=!1);function Kn(Je){pt[Je?"unshift":"push"]((()=>{fe=Je,n(11,fe)}))}return t.$$set=Je=>{"text"in Je&&n(34,c=Je.text),"json"in Je&&n(35,d=Je.json),"leaf"in Je&&n(36,u=Je.leaf),"disabled"in Je&&n(0,p=Je.disabled),"textDisabled"in Je&&n(1,_=Je.textDisabled),"rotation"in Je&&n(37,f=Je.rotation)},t.$$.update=()=>{t.$$.dirty[0]&4|t.$$.dirty[1]&256&&vt.length&&Qe&&pe(vt),t.$$.dirty[1]&64&&n(15,i={"font-size":nl(Te),"line-height":ot,color:J,transform:`rotate(${f}deg)`}),t.$$.dirty[1]&544&&r!==u&&R("close")},[p,_,Qe,x,de,_e,G,Q,ze,W,Ke,fe,ye,Ee,Ye,i,o,a,h,A,O,M,D,Vt,ln,sn,pn,dn,Rn,Ln,qe,st,li,bt,c,d,u,f,m,vt,r,Cn,Ut,gn,Lt,wn,vn,Jt,Kt,Un,Kn]}class yce extends Gt{constructor(e){super(),Yt(this,e,bce,mce,Rt,{text:34,json:35,leaf:36,disabled:0,textDisabled:1,rotation:37,getValue:38},null,[-1,-1,-1])}get getValue(){return this.$$.ctx[38]}}function Nv(t){let e,n,i,o,r,s={text:t[0].text,json:t[0].json,leaf:t[0].leaf,disabled:t[0].disabled,textDisabled:t[0].textDisabled,rotation:t[0].rotation};return n=new yce({props:s}),t[12](n),n.$on("close",t[5]),n.$on("resize",t[6]),{c(){e=S("dialog"),Ie(n.$$.fragment),g(e,"class","inplace-editor-dialog svelte-klbk0c"),je(e,"left",t[0].style.left),je(e,"top",t[0].style.top),je(e,"width",t[0].style.width),je(e,"max-width",t[0].style.maxWidth),je(e,"font-size",t[0].style.fontSize)},m(l,a){N(l,e,a),Oe(n,e,null),t[13](e),i=!0,o||(r=[ee(e,"close",t[4]),ee(e,"click",t[7]),ee(e,"keydown",Eo(t[11]))],o=!0)},p(l,a){const c={};a&1&&(c.text=l[0].text),a&1&&(c.json=l[0].json),a&1&&(c.leaf=l[0].leaf),a&1&&(c.disabled=l[0].disabled),a&1&&(c.textDisabled=l[0].textDisabled),a&1&&(c.rotation=l[0].rotation),n.$set(c),a&1&&je(e,"left",l[0].style.left),a&1&&je(e,"top",l[0].style.top),a&1&&je(e,"width",l[0].style.width),a&1&&je(e,"max-width",l[0].style.maxWidth),a&1&&je(e,"font-size",l[0].style.fontSize)},i(l){i||(I(n.$$.fragment,l),i=!0)},o(l){H(n.$$.fragment,l),i=!1},d(l){l&&F(e),t[12](null),Me(n),t[13](null),o=!1,qn(r)}}}function wce(t){let e,n,i=t[1]&&Nv(t);return{c(){i&&i.c(),e=Dn()},m(o,r){i&&i.m(o,r),N(o,e,r),n=!0},p(o,[r]){o[1]?i?(i.p(o,r),r&2&&I(i,1)):(i=Nv(o),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(It(),H(i,1,1,(()=>{i=null})),Dt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&F(e),i&&i.d(o)}}}function $ce(t,e,n){function i(){!a||!d||(n(1,a=!1),l.callback(d.getValue()))}function o(v){n(0,l=v),n(1,a=!0)}function r(){n(1,a=!1)}function s(v,y){n(0,l.style.left=v,l),n(0,l.style.top=y,l),n(0,l)}let l,a=!1,c,d;gs((()=>{c&&a&&!c.open&&c.showModal()}));function u(){i()}function p(){l.onResoze({width:c.offsetWidth,height:c.offsetHeight})}function _(v){v.target===c&&i()}function f(v){mn.call(this,t,v)}function m(v){pt[v?"unshift":"push"]((()=>{d=v,n(3,d)}))}function h(v){pt[v?"unshift":"push"]((()=>{c=v,n(2,c)}))}return[l,a,c,d,i,u,p,_,o,r,s,f,m,h]}class kce extends Gt{constructor(e){super(),Yt(this,e,$ce,wce,Rt,{show:8,hide:9,setPosition:10})}get show(){return this.$$.ctx[8]}get hide(){return this.$$.ctx[9]}get setPosition(){return this.$$.ctx[10]}}function jce(t,e={},{local:n}={}){const i=t.getBoundingClientRect();if(n){let o=null,r=t.parentElement;for(;r;){if(getComputedStyle(r).overflow!=="visible"){o=r;break}r=r.parentElement}if(o){const s=o.getBoundingClientRect(),l=o.scrollTop,a=e.top||0,c=e.bottom||0;i.bottom>s.bottom-c?o.scrollTo(o.scrollLeft,l+(i.bottom-(s.bottom-c))):i.top<s.top+a&&o.scrollTo(o.scrollLeft,l-(s.top+a-i.top))}}else{const o=window.pageYOffset,r=window.innerHeight,s=e.top||0,l=e.bottom||0;i.bottom>r-l?window.scrollTo(pageXOffset,o+(i.bottom-(r-l))):i.top<s&&window.scrollTo(pageXOffset,o-(s-i.top))}}function qv(t,e,n){const i=t.slice();return i[37]=e[n],i[39]=n,i}function Rv(t){let e,n,i={direction:"down",overflow:"visible",offsetY:-50,target:t[0],$$slots:{default:[Sce]},$$scope:{ctx:t}};return e=new Tr({props:i}),t[32](e),e.$on("close",t[18]),{c(){Ie(e.$$.fragment)},m(o,r){Oe(e,o,r),n=!0},p(o,r){const s={};r[0]&1&&(s.target=o[0]),r[0]&65528|r[1]&512&&(s.$$scope={dirty:r,ctx:o}),e.$set(s)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){H(e.$$.fragment,o),n=!1},d(o){t[32](null),Me(e,o)}}}function Bv(t){let e,n=t[15]("tankerMissing")+"",i;return{c(){e=S("div"),i=Ze(n),g(e,"class","tanker2-dialog__missing svelte-18hktga")},m(o,r){N(o,e,r),$(e,i)},p(o,r){r[0]&32768&&n!==(n=o[15]("tankerMissing")+"")&<(i,n)},d(o){o&&F(e)}}}function Hv(t){let e,n,i=`${t[14]}px`,o,r=an(t[10]),s=[];for(let l=0;l<r.length;l+=1)s[l]=Wv(qv(t,r,l));return{c(){e=S("dialog");for(let l=0;l<s.length;l+=1)s[l].c();g(e,"class","tanker2-dialog__suggest svelte-18hktga"),te(e,"tanker2-dialog__suggest_up",t[13]),je(e,"max-height",i)},m(l,a){N(l,e,a);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(e,null);t[31](e),o=!0},p(l,a){if(a[0]&8391680){r=an(l[10]);let c;for(c=0;c<r.length;c+=1){const d=qv(l,r,c);s[c]?s[c].p(d,a):(s[c]=Wv(d),s[c].c(),s[c].m(e,null))}for(;c<s.length;c+=1)s[c].d(1);s.length=r.length}(!o||a[0]&8192)&&te(e,"tanker2-dialog__suggest_up",l[13]),a[0]&16384&&i!==(i=`${l[14]}px`)&&je(e,"max-height",i)},i(l){o||(l&&po((()=>{o&&(n||(n=Zi(e,fr,{y:10,duration:150},!0)),n.run(1))})),o=!0)},o(l){l&&(n||(n=Zi(e,fr,{y:10,duration:150},!1)),n.run(0)),o=!1},d(l){l&&F(e),Bi(s,l),t[31](null),l&&n&&n.end()}}}function Uv(t){let e;return{c(){e=S("div"),g(e,"class","tanker2-dialog__folder svelte-18hktga")},m(n,i){N(n,e,i)},d(n){n&&F(e)}}}function Jv(t){let e,n=t[37].text+"",i;return{c(){e=S("div"),i=Ze(n),g(e,"class","tanker2-dialog__text svelte-18hktga")},m(o,r){N(o,e,r),$(e,i)},p(o,r){r[0]&1024&&n!==(n=o[37].text+"")&<(i,n)},d(o){o&&F(e)}}}function Wv(t){let e,n,i=t[37].key.endsWith("."),o,r=t[37].key+"",s,l,a,c,d,u=i&&Uv(),p=t[37].text&&Jv(t);function _(){return t[30](t[37])}return{c(){e=S("div"),n=S("div"),u&&u.c(),o=X(),s=Ze(r),l=X(),p&&p.c(),a=X(),g(n,"class","tanker2-dialog__key svelte-18hktga"),g(e,"class","tanker2-dialog__item svelte-18hktga"),te(e,"tanker2-dialog__item_active",t[39]===t[11])},m(f,m){N(f,e,m),$(e,n),u&&u.m(n,null),$(n,o),$(n,s),$(e,l),p&&p.m(e,null),$(e,a),c||(d=[ee(e,"click",_),ee(e,"mousedown",zi(t[26]))],c=!0)},p(f,m){t=f,m[0]&1024&&(i=t[37].key.endsWith(".")),i?u||(u=Uv(),u.c(),u.m(n,o)):u&&(u.d(1),u=null),m[0]&1024&&r!==(r=t[37].key+"")&<(s,r),t[37].text?p?p.p(t,m):(p=Jv(t),p.c(),p.m(e,a)):p&&(p.d(1),p=null),m[0]&2048&&te(e,"tanker2-dialog__item_active",t[39]===t[11])},d(f){f&&F(e),u&&u.d(),p&&p.d(),c=!1,qn(d)}}}function Sce(t){let e,n,i=t[15]("tankerDialogTitle")+"",o,r,s,l,a,c,d,u,p,_,f,m,h=t[7]&&t[12]&&!t[10].length&&Bv(t),v=t[8]&&t[10].length&&Hv(t);return{c(){e=S("div"),n=S("div"),o=Ze(i),r=X(),s=S("div"),l=S("input"),c=X(),d=S("div"),u=X(),h&&h.c(),p=X(),v&&v.c(),_=Dn(),g(n,"class","tanker2-dialog__title svelte-18hktga"),g(l,"class","tanker2-dialog__input svelte-18hktga"),g(l,"autocomplete","off"),g(l,"autocorrect","off"),g(l,"autocapitalize","off"),g(l,"spellcheck","false"),g(l,"placeholder",a=t[15]("tankerPlaceholder")),l.disabled=t[4],te(l,"tanker2-dialog__input_error",t[7]&&t[12]&&!t[10].length),g(d,"class","tanker2-dialog__loader svelte-18hktga"),te(d,"tanker2-dialog__loader_shown",!t[12]),g(s,"class","tanker2-dialog__input-box svelte-18hktga"),g(e,"class","tanker2-dialog__content svelte-18hktga")},m(y,b){N(y,e,b),$(e,n),$(n,o),$(e,r),$(e,s),$(s,l),t[27](l),Hn(l,t[3]),$(s,c),$(s,d),$(e,u),h&&h.m(e,null),t[29](e),N(y,p,b),v&&v.m(y,b),N(y,_,b),f||(m=[ee(l,"input",t[28]),ee(l,"keydown",t[19]),ee(l,"input",t[20]),ee(l,"focus",t[21]),ee(l,"blur",t[22])],f=!0)},p(y,b){b[0]&32768&&i!==(i=y[15]("tankerDialogTitle")+"")&<(o,i),b[0]&32768&&a!==(a=y[15]("tankerPlaceholder"))&&g(l,"placeholder",a),b[0]&16&&(l.disabled=y[4]),b[0]&8&&l.value!==y[3]&&Hn(l,y[3]),b[0]&5248&&te(l,"tanker2-dialog__input_error",y[7]&&y[12]&&!y[10].length),b[0]&4096&&te(d,"tanker2-dialog__loader_shown",!y[12]),y[7]&&y[12]&&!y[10].length?h?h.p(y,b):(h=Bv(y),h.c(),h.m(e,null)):h&&(h.d(1),h=null),y[8]&&y[10].length?v?(v.p(y,b),b[0]&1280&&I(v,1)):(v=Hv(y),v.c(),I(v,1),v.m(_.parentNode,_)):v&&(It(),H(v,1,1,(()=>{v=null})),Dt())},d(y){y&&(F(e),F(p),F(_)),t[27](null),h&&h.d(),t[29](null),v&&v.d(y),f=!1,qn(m)}}}function Cce(t){let e,n,i=t[2]&&t[0]&&Rv(t);return{c(){i&&i.c(),e=Dn()},m(o,r){i&&i.m(o,r),N(o,e,r),n=!0},p(o,r){o[2]&&o[0]?i?(i.p(o,r),r[0]&5&&I(i,1)):(i=Rv(o),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(It(),H(i,1,1,(()=>{i=null})),Dt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&F(e),i&&i.d(o)}}}const Bd=384;function Tce(t,e,n){let i,o;const{l10nString:r}=wt(oi);Pe(t,r,(Q=>n(15,o=Q)));const{getTranslationSuggest:s,state:l}=wt(An),{locale:a}=l;Pe(t,a,(Q=>n(34,i=Q)));function c(Q){m=Q.callback,n(0,u=Q.target),n(3,f=Q.value),n(4,h=Q.disabled),n(10,E=[]),n(11,T=-1),n(12,j=!0),n(7,b=!1),n(2,_=!0),ur().then((()=>{v&&(v.focus(),f&&R())}))}function d(){n(2,_=!1)}let u,p,_=!1,f,m,h,v,y,b=!1,w=!1,k,E=[],T=-1,j=!1,A=!1,O=Bd;function M(){n(2,_=!1)}function D(Q){if(zu.isPressed(Q)&&w&&E.length)n(8,w=!1);else if(Jc.isPressed(Q)&&!h)T>-1&&C(E[T].key);else if(C1.isPressed(Q))T===-1||T===0?n(11,T=E.length-1):n(11,--T);else if(T1.isPressed(Q))T===-1||T===E.length-1?n(11,T=0):n(11,++T);else return;Q.preventDefault(),Q.stopPropagation()}function R(){if(h||!s)return;const Q=f;n(12,j=!1),s(Q,i).then((oe=>{f===Q&&(n(7,b=!0),n(12,j=!0),n(10,E=oe),T>=oe.length&&n(11,T=0))})).catch((oe=>{n(7,b=!0),n(12,j=!0)}))}function U(){n(8,w=!0)}function B(){n(8,w=!1)}function C(Q){n(3,f=Q),Q.endsWith(".")?R():(p==null||p.hide(),m(f))}gs((()=>{if(k&&!k.open){const Q=y.getBoundingClientRect(),he=window.innerHeight-Q.bottom;n(13,A=he<Bd&&he<Q.top),n(14,O=Math.min(Bd,A?Q.top:he)),k.show(),v.focus()}else if(k&&T!==-1){const Q=k.querySelector(".tanker2-dialog__item_active");Q&&jce(Q,{top:12,bottom:12},{local:!0})}}));function q(Q){mn.call(this,t,Q)}function V(Q){pt[Q?"unshift":"push"]((()=>{v=Q,n(5,v)}))}function Y(){f=this.value,n(3,f)}function x(Q){pt[Q?"unshift":"push"]((()=>{y=Q,n(6,y)}))}const de=Q=>C(Q.key);function _e(Q){pt[Q?"unshift":"push"]((()=>{k=Q,n(9,k)}))}function G(Q){pt[Q?"unshift":"push"]((()=>{p=Q,n(1,p)}))}return[u,p,_,f,h,v,y,b,w,k,E,T,j,A,O,o,r,a,M,D,R,U,B,C,c,d,q,V,Y,x,de,_e,G]}class zce extends Gt{constructor(e){super(),Yt(this,e,Tce,Cce,Rt,{show:24,hide:25},null,[-1,-1])}get show(){return this.$$.ctx[24]}get hide(){return this.$$.ctx[25]}}function Kv(t){let e,n,i={direction:"down",overflow:"visible",offsetY:-50,target:t[0].target,$$slots:{default:[Oce]},$$scope:{ctx:t}};return e=new Tr({props:i}),t[13](e),e.$on("close",t[6]),{c(){Ie(e.$$.fragment)},m(o,r){Oe(e,o,r),n=!0},p(o,r){const s={};r&1&&(s.target=o[0].target),r&16409&&(s.$$scope={dirty:r,ctx:o}),e.$set(s)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){H(e.$$.fragment,o),n=!1},d(o){t[13](null),Me(e,o)}}}function Ece(t){let e,n,i,o,r=[{autocomplete:"off"},{class:"expression2-dialog__input"},{autocorrect:"off"},{autocapitalize:"off"},{spellcheck:"false"},{placeholder:n=t[4]("tankerPlaceholder")},{contenteditable:"true"}],s={};for(let l=0;l<r.length;l+=1)s=_s(s,r[l]);return{c(){e=S("div"),fs(e,s),t[0].value===void 0&&po((()=>t[12].call(e))),te(e,"svelte-f0ngh",!0)},m(l,a){N(l,e,a),t[11](e),t[0].value!==void 0&&(e.innerText=t[0].value),i||(o=[ee(e,"paste",Pce),ee(e,"keydown",t[7]),ee(e,"input",t[12])],i=!0)},p(l,a){fs(e,s=vl(r,[{autocomplete:"off"},{class:"expression2-dialog__input"},{autocorrect:"off"},{autocapitalize:"off"},{spellcheck:"false"},a&16&&n!==(n=l[4]("tankerPlaceholder"))&&{placeholder:n},{contenteditable:"true"}])),a&1&&l[0].value!==e.innerText&&(e.innerText=l[0].value),te(e,"svelte-f0ngh",!0)},d(l){l&&F(e),t[11](null),i=!1,qn(o)}}}function Ace(t){let e,n=t[0].value+"",i;return{c(){e=S("div"),i=Ze(n),g(e,"class","expression2-dialog__input expression2-dialog__input_disabled svelte-f0ngh")},m(o,r){N(o,e,r),$(e,i),t[10](e)},p(o,r){r&1&&n!==(n=o[0].value+"")&<(i,n)},d(o){o&&F(e),t[10](null)}}}function Oce(t){let e,n,i=t[4]("expressionTitle")+"",o,r,s;function l(d,u){return d[0].disabled?Ace:Ece}let a=l(t),c=a(t);return{c(){e=S("div"),n=S("div"),o=Ze(i),r=X(),s=S("div"),c.c(),g(n,"class","expression2-dialog__title svelte-f0ngh"),g(s,"class","expression2-dialog__input-box svelte-f0ngh"),g(e,"class","expression2-dialog__content svelte-f0ngh")},m(d,u){N(d,e,u),$(e,n),$(n,o),$(e,r),$(e,s),c.m(s,null)},p(d,u){u&16&&i!==(i=d[4]("expressionTitle")+"")&<(o,i),a===(a=l(d))&&c?c.p(d,u):(c.d(1),c=a(d),c&&(c.c(),c.m(s,null)))},d(d){d&&F(e),c.d()}}}function Mce(t){let e,n,i=t[1]&&t[0]&&Kv(t);return{c(){i&&i.c(),e=Dn()},m(o,r){i&&i.m(o,r),N(o,e,r),n=!0},p(o,[r]){o[1]&&o[0]?i?(i.p(o,r),r&3&&I(i,1)):(i=Kv(o),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(It(),H(i,1,1,(()=>{i=null})),Dt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&F(e),i&&i.d(o)}}}function Pce(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function Ice(t,e,n){let i;const{l10nString:o}=wt(oi);Pe(t,o,(v=>n(4,i=v)));function r(v){n(0,l=v),n(1,c=!0),ur().then((()=>{d&&d.focus()}))}function s(){n(1,c=!1),n(0,l=null)}let l,a,c=!1,d;function u(){n(1,c=!1)}function p(v){Jc.isPressed(v)&&(v.preventDefault(),a==null||a.hide())}function _(v){pt[v?"unshift":"push"]((()=>{d=v,n(3,d)}))}function f(v){pt[v?"unshift":"push"]((()=>{d=v,n(3,d)}))}function m(){l.value=this.innerText,n(0,l)}function h(v){pt[v?"unshift":"push"]((()=>{a=v,n(2,a)}))}return t.$$.update=()=>{t.$$.dirty&3&&c&&l&&!l.disabled&&l.callback&&l.callback(l.value)},[l,c,a,d,i,o,u,p,r,s,_,f,m,h]}class Dce extends Gt{constructor(e){super(),Yt(this,e,Ice,Mce,Rt,{show:8,hide:9})}get show(){return this.$$.ctx[8]}get hide(){return this.$$.ctx[9]}}function Yv(t){let e,n;return e=new Tr({props:{target:t[3],canMove:!0,$$slots:{default:[Vce]},$$scope:{ctx:t}}}),e.$on("close",t[6]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&8&&(r.target=i[3]),o&4118&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function Vce(t){let e,n,i,o,r=t[4]("video-url")+"",s,l,a,c,d,u,p,_,f=t[4]("video-mime-type")+"",m,h,v,y,b;function w(j){t[10](j)}let k={subtype:"file",fileType:"video",disabled:t[2]};t[1].url!==void 0&&(k.value=t[1].url),a=new go({props:k}),pt.push((()=>Gn(a,"value",w)));function E(j){t[11](j)}let T={disabled:t[2]};return t[1].mime_type!==void 0&&(T.value=t[1].mime_type),v=new go({props:T}),pt.push((()=>Gn(v,"value",E))),{c(){e=S("div"),n=S("div"),i=S("label"),o=S("div"),s=Ze(r),l=X(),Ie(a.$$.fragment),d=X(),u=S("div"),p=S("label"),_=S("div"),m=Ze(f),h=X(),Ie(v.$$.fragment),g(o,"class","video-sources-dialog__label svelte-16f87x4"),g(_,"class","video-sources-dialog__label svelte-16f87x4"),g(e,"class","video-sources-dialog__content svelte-16f87x4")},m(j,A){N(j,e,A),$(e,n),$(n,i),$(i,o),$(o,s),$(i,l),Oe(a,i,null),$(e,d),$(e,u),$(u,p),$(p,_),$(_,m),$(p,h),Oe(v,p,null),b=!0},p(j,A){(!b||A&16)&&r!==(r=j[4]("video-url")+"")&<(s,r);const O={};A&4&&(O.disabled=j[2]),!c&&A&2&&(c=!0,O.value=j[1].url,Xn((()=>c=!1))),a.$set(O),(!b||A&16)&&f!==(f=j[4]("video-mime-type")+"")&<(m,f);const M={};A&4&&(M.disabled=j[2]),!y&&A&2&&(y=!0,M.value=j[1].mime_type,Xn((()=>y=!1))),v.$set(M)},i(j){b||(I(a.$$.fragment,j),I(v.$$.fragment,j),b=!0)},o(j){H(a.$$.fragment,j),H(v.$$.fragment,j),b=!1},d(j){j&&F(e),Me(a),Me(v)}}}function Lce(t){let e,n,i=t[0]&&t[3]&&Yv(t);return{c(){i&&i.c(),e=Dn()},m(o,r){i&&i.m(o,r),N(o,e,r),n=!0},p(o,[r]){o[0]&&o[3]?i?(i.p(o,r),r&9&&I(i,1)):(i=Yv(o),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(It(),H(i,1,1,(()=>{i=null})),Dt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&F(e),i&&i.d(o)}}}function Fce(t,e,n){let i;const{l10n:o}=wt(oi);Pe(t,o,(m=>n(4,i=m)));function r(m){n(9,d=m.callback),n(3,l=m.target),n(1,c=m.value),n(2,u=m.readOnly),n(0,a=!0)}function s(){n(0,a=!1)}let l,a=!1,c,d,u;function p(){n(0,a=!1)}function _(m){t.$$.not_equal(c.url,m)&&(c.url=m,n(1,c))}function f(m){t.$$.not_equal(c.mime_type,m)&&(c.mime_type=m,n(1,c))}return t.$$.update=()=>{t.$$.dirty&519&&a&&!u&&d&&d(c)},[a,c,u,l,i,o,p,r,s,d,_,f]}class Nce extends Gt{constructor(e){super(),Yt(this,e,Fce,Lce,Rt,{show:7,hide:8})}get show(){return this.$$.ctx[7]}get hide(){return this.$$.ctx[8]}}function Gv(t){let e,n;return e=new Tr({props:{target:t[3],canMove:!0,$$slots:{default:[qce]},$$scope:{ctx:t}}}),e.$on("close",t[6]),{c(){Ie(e.$$.fragment)},m(i,o){Oe(e,i,o),n=!0},p(i,o){const r={};o&8&&(r.target=i[3]),o&4118&&(r.$$scope={dirty:o,ctx:i}),e.$set(r)},i(i){n||(I(e.$$.fragment,i),n=!0)},o(i){H(e.$$.fragment,i),n=!1},d(i){Me(e,i)}}}function qce(t){let e,n,i,o,r=t[4]("select.text")+"",s,l,a,c,d,u,p,_,f=t[4]("select.value")+"",m,h,v,y,b;function w(j){t[10](j)}let k={disabled:t[2]};t[1].text!==void 0&&(k.value=t[1].text),a=new go({props:k}),pt.push((()=>Gn(a,"value",w)));function E(j){t[11](j)}let T={disabled:t[2],required:!0};return t[1].value!==void 0&&(T.value=t[1].value),v=new go({props:T}),pt.push((()=>Gn(v,"value",E))),{c(){e=S("div"),n=S("div"),i=S("label"),o=S("div"),s=Ze(r),l=X(),Ie(a.$$.fragment),d=X(),u=S("div"),p=S("label"),_=S("div"),m=Ze(f),h=X(),Ie(v.$$.fragment),g(o,"class","select-options-dialog__label svelte-ke7kow"),g(_,"class","select-options-dialog__label svelte-ke7kow"),g(e,"class","select-options-dialog__content svelte-ke7kow")},m(j,A){N(j,e,A),$(e,n),$(n,i),$(i,o),$(o,s),$(i,l),Oe(a,i,null),$(e,d),$(e,u),$(u,p),$(p,_),$(_,m),$(p,h),Oe(v,p,null),b=!0},p(j,A){(!b||A&16)&&r!==(r=j[4]("select.text")+"")&<(s,r);const O={};A&4&&(O.disabled=j[2]),!c&&A&2&&(c=!0,O.value=j[1].text,Xn((()=>c=!1))),a.$set(O),(!b||A&16)&&f!==(f=j[4]("select.value")+"")&<(m,f);const M={};A&4&&(M.disabled=j[2]),!y&&A&2&&(y=!0,M.value=j[1].value,Xn((()=>y=!1))),v.$set(M)},i(j){b||(I(a.$$.fragment,j),I(v.$$.fragment,j),b=!0)},o(j){H(a.$$.fragment,j),H(v.$$.fragment,j),b=!1},d(j){j&&F(e),Me(a),Me(v)}}}function Rce(t){let e,n,i=t[0]&&t[3]&&Gv(t);return{c(){i&&i.c(),e=Dn()},m(o,r){i&&i.m(o,r),N(o,e,r),n=!0},p(o,[r]){o[0]&&o[3]?i?(i.p(o,r),r&9&&I(i,1)):(i=Gv(o),i.c(),I(i,1),i.m(e.parentNode,e)):i&&(It(),H(i,1,1,(()=>{i=null})),Dt())},i(o){n||(I(i),n=!0)},o(o){H(i),n=!1},d(o){o&&F(e),i&&i.d(o)}}}function Bce(t,e,n){let i;const{l10n:o}=wt(oi);Pe(t,o,(m=>n(4,i=m)));function r(m){n(9,d=m.callback),n(3,l=m.target),n(1,c=m.value),n(2,u=m.readOnly),n(0,a=!0)}function s(){n(0,a=!1)}let l,a=!1,c,d,u;function p(){n(0,a=!1)}function _(m){t.$$.not_equal(c.text,m)&&(c.text=m,n(1,c))}function f(m){t.$$.not_equal(c.value,m)&&(c.value=m,n(1,c))}return t.$$.update=()=>{t.$$.dirty&519&&a&&!u&&d&&d(c)},[a,c,u,l,i,o,p,r,s,d,_,f]}class Hce extends Gt{constructor(e){super(),Yt(this,e,Bce,Rce,Rt,{show:7,hide:8})}get show(){return this.$$.ctx[7]}get hide(){return this.$$.ctx[8]}}function Uce(t){let e,n,i,o,r,s,l,a,c,d,u,p,_,f,m,h,v,y,b,w,k,E,T,j,A,O,M,D,R,U,B,C;i=new v1({props:{components:t[12]}}),r=new XL({});let q={};l=new zae({props:q}),t[36](l);let V={};c=new Mae({props:V}),t[37](c);let Y={};u=new Jae({props:Y}),t[38](u);let x={};_=new Gae({props:x}),t[39](_);let de={};m=new cce({props:de}),t[40](m);let _e={};v=new _ce({props:_e}),t[41](v);let G={};b=new zce({props:G}),t[42](b);let Q={};k=new Dce({props:Q}),t[43](k);let oe={};T=new kce({props:oe}),t[44](T);let he={};A=new Nce({props:he}),t[45](A);let ze={};return M=new Hce({props:ze}),t[46](M),R=new fae({props:{owner:t[11]}}),{c(){e=S("div"),n=S("main"),Ie(i.$$.fragment),o=X(),Ie(r.$$.fragment),s=X(),Ie(l.$$.fragment),a=X(),Ie(c.$$.fragment),d=X(),Ie(u.$$.fragment),p=X(),Ie(_.$$.fragment),f=X(),Ie(m.$$.fragment),h=X(),Ie(v.$$.fragment),y=X(),Ie(b.$$.fragment),w=X(),Ie(k.$$.fragment),E=X(),Ie(T.$$.fragment),j=X(),Ie(A.$$.fragment),O=X(),Ie(M.$$.fragment),D=X(),Ie(R.$$.fragment),g(n,"class","main svelte-1x3nbyt"),g(e,"class","app svelte-1x3nbyt"),te(e,"app_dark",t[13]==="dark")},m(W,Ke){N(W,e,Ke),$(e,n),Oe(i,n,null),$(e,o),Oe(r,e,null),$(e,s),Oe(l,e,null),$(e,a),Oe(c,e,null),$(e,d),Oe(u,e,null),$(e,p),Oe(_,e,null),$(e,f),Oe(m,e,null),$(e,h),Oe(v,e,null),$(e,y),Oe(b,e,null),$(e,w),Oe(k,e,null),$(e,E),Oe(T,e,null),$(e,j),Oe(A,e,null),$(e,O),Oe(M,e,null),$(e,D),Oe(R,e,null),U=!0,B||(C=[ee(e,"mouseover",t[15]),ee(e,"mouseout",t[16]),ee(e,"keydown",bL)],B=!0)},p(W,Ke){const at={};Ke[0]&4096&&(at.components=W[12]),i.$set(at);const Te={};l.$set(Te);const ot={};c.$set(ot);const J={};u.$set(J);const ue={};_.$set(ue);const fe={};m.$set(fe);const Qe={};v.$set(Qe);const ye={};b.$set(ye);const Ee={};k.$set(Ee);const Ye={};T.$set(Ye);const vt={};A.$set(vt);const ne={};M.$set(ne);const pe={};Ke[0]&2048&&(pe.owner=W[11]),R.$set(pe),(!U||Ke[0]&8192)&&te(e,"app_dark",W[13]==="dark")},i(W){U||(I(i.$$.fragment,W),I(r.$$.fragment,W),I(l.$$.fragment,W),I(c.$$.fragment,W),I(u.$$.fragment,W),I(_.$$.fragment,W),I(m.$$.fragment,W),I(v.$$.fragment,W),I(b.$$.fragment,W),I(k.$$.fragment,W),I(T.$$.fragment,W),I(A.$$.fragment,W),I(M.$$.fragment,W),I(R.$$.fragment,W),U=!0)},o(W){H(i.$$.fragment,W),H(r.$$.fragment,W),H(l.$$.fragment,W),H(c.$$.fragment,W),H(u.$$.fragment,W),H(_.$$.fragment,W),H(m.$$.fragment,W),H(v.$$.fragment,W),H(b.$$.fragment,W),H(k.$$.fragment,W),H(T.$$.fragment,W),H(A.$$.fragment,W),H(M.$$.fragment,W),H(R.$$.fragment,W),U=!1},d(W){W&&F(e),Me(i),Me(r),t[36](null),Me(l),t[37](null),Me(c),t[38](null),Me(u),t[39](null),Me(_),t[40](null),Me(m),t[41](null),Me(v),t[42](null),Me(b),t[43](null),Me(k),t[44](null),Me(T),t[45](null),Me(A),t[46](null),Me(M),Me(R),B=!1,qn(C)}}}function Jce(t,e,n){let i,o,{state:r}=e,{layout:s=[{items:["new-component","component-tree"]},{items:["preview"],weight:3},{items:["component-props:code"]}]}=e,{locale:l="en"}=e,{shadowRoot:a=void 0}=e,{actionLogUrlVariable:c=""}=e,{cardLocales:d=[]}=e,{previewWarnFileLimit:u=1e4}=e,{previewErrorFileLimit:p=1/0}=e,{warnFileLimit:_=1/0}=e,{errorFileLimit:f=1/0}=e,{rootConfigurable:m=!1}=e,{customFontFaces:h=[]}=e,{directionSelector:v=!1}=e,{uploadFile:y=VV}=e,{editorFabric:b=uae}=e,{getTranslationSuggest:w=void 0}=e,{getTranslationKey:k=void 0}=e;function E(ne){n(17,s=ne)}function T(ne){O.set(ne)}const{themeStore:j}=r;Pe(t,j,(ne=>n(13,o=ne)));const A=(ne,pe)=>{var $e;const kt=($e=vL[ne])==null?void 0:$e[pe];return kt||console.error(`Missing translation for key "${pe}"`),kt||""};let O=Si(l);const M=as(O,(ne=>(pe,kt)=>A(kt||ne,pe))),D=as(O,(ne=>(pe,kt)=>{const $e=A(kt||ne,pe);return typeof $e!="string"?(console.error(`Missing translation for key "${pe}"`),""):$e}));let R={containerProps(){return{width:0,height:0}},evalJson(ne){return{}},focus(){},selectedElemProps(){return null}},U=()=>{},B={toggle(){},hide(){}},C,q,V,Y,x,de,_e,G,Q,oe,he;mc(oi,{lang:O,getLanguage(){return $n(O)},l10n:M,l10nString:D}),mc(An,{state:r,uploadFile:y,editorFabric:b,shadowRoot:a,ownerDocument:a||document,getSelection(){return a&&"getSelection"in a&&typeof a.getSelection=="function"?a.getSelection():window.getSelection()},actionLogUrlVariable:c,cardLocales:d,getTranslationSuggest:w,getTranslationKey:k,previewWarnFileLimit:u,previewErrorFileLimit:p,warnFileLimit:_,errorFileLimit:f,rootConfigurable:m,customFontFaces:h,directionSelector:v,rendererApi(){return R},setRendererApi(ne){R=ne},showErrors:(...ne)=>{U(...ne)},setShowErrors(ne){U=ne},contextMenu(){return B},setContextMenuApi(ne){B=ne},inplaceEditor(){return{show(ne){C.show(ne)},hide(){C.hide()},setPosition(ne,pe){C.setPosition(ne,pe)}}},actions2Dialog(){return{show(ne){q.show(ne)},hide(){q.hide()}}},background2Dialog(){return{show(ne){V.show(ne)},hide(){V.hide()}}},color2Dialog(){return{show(ne){Y.show(ne)},hide(){Y.hide()}}},expression2Dialog(){return{show(ne){x.show(ne)},hide(){x.hide()}}},file2Dialog(){return{show(ne){de.show(ne)},hide(){de.hide()}}},link2Dialog(){return{show(ne){_e.show(ne)},hide(){_e.hide()}}},tanker2Dialog(){return{show(ne){G.show(ne)},hide(){G.hide()}}},textAlign2Dialog(){return{show(ne){Q.show(ne)},hide(){Q.hide()}}},videoSource2Dialog(){return{show(ne){oe.show(ne)},hide(){oe.hide()}}},selectOptionsDialog(){return{show(ne){he.show(ne)},hide(){he.hide()}}}});let ze=null;function W(ne){const pe=ne.target;if(!(pe instanceof HTMLElement))return;const kt=pe.closest("[data-custom-tooltip]");kt&&kt instanceof HTMLElement&&kt!==ze&&n(11,ze=kt)}function Ke(ne){const pe=ne.target;pe instanceof Node&&ze&&!ze.contains(pe)&&n(11,ze=null)}function at(ne){pt[ne?"unshift":"push"]((()=>{V=ne,n(2,V)}))}function Te(ne){pt[ne?"unshift":"push"]((()=>{Y=ne,n(3,Y)}))}function ot(ne){pt[ne?"unshift":"push"]((()=>{de=ne,n(5,de)}))}function J(ne){pt[ne?"unshift":"push"]((()=>{_e=ne,n(6,_e)}))}function ue(ne){pt[ne?"unshift":"push"]((()=>{q=ne,n(1,q)}))}function fe(ne){pt[ne?"unshift":"push"]((()=>{Q=ne,n(8,Q)}))}function Qe(ne){pt[ne?"unshift":"push"]((()=>{G=ne,n(7,G)}))}function ye(ne){pt[ne?"unshift":"push"]((()=>{x=ne,n(4,x)}))}function Ee(ne){pt[ne?"unshift":"push"]((()=>{C=ne,n(0,C)}))}function Ye(ne){pt[ne?"unshift":"push"]((()=>{oe=ne,n(9,oe)}))}function vt(ne){pt[ne?"unshift":"push"]((()=>{he=ne,n(10,he)}))}return t.$$set=ne=>{"state"in ne&&n(18,r=ne.state),"layout"in ne&&n(17,s=ne.layout),"locale"in ne&&n(19,l=ne.locale),"shadowRoot"in ne&&n(20,a=ne.shadowRoot),"actionLogUrlVariable"in ne&&n(21,c=ne.actionLogUrlVariable),"cardLocales"in ne&&n(22,d=ne.cardLocales),"previewWarnFileLimit"in ne&&n(23,u=ne.previewWarnFileLimit),"previewErrorFileLimit"in ne&&n(24,p=ne.previewErrorFileLimit),"warnFileLimit"in ne&&n(25,_=ne.warnFileLimit),"errorFileLimit"in ne&&n(26,f=ne.errorFileLimit),"rootConfigurable"in ne&&n(27,m=ne.rootConfigurable),"customFontFaces"in ne&&n(28,h=ne.customFontFaces),"directionSelector"in ne&&n(29,v=ne.directionSelector),"uploadFile"in ne&&n(30,y=ne.uploadFile),"editorFabric"in ne&&n(31,b=ne.editorFabric),"getTranslationSuggest"in ne&&n(32,w=ne.getTranslationSuggest),"getTranslationKey"in ne&&n(33,k=ne.getTranslationKey)},t.$$.update=()=>{t.$$.dirty[0]&131072&&n(12,i=s.map((ne=>({component:dae,weight:ne.weight||1,minSize:ne.minWidth,key:ne.items.join(","),props:{items:ne.items}}))))},[C,q,V,Y,x,de,_e,G,Q,oe,he,ze,i,o,j,W,Ke,s,r,l,a,c,d,u,p,_,f,m,h,v,y,b,w,k,E,T,at,Te,ot,J,ue,fe,Qe,ye,Ee,Ye,vt]}class Wce extends Gt{constructor(e){super(),Yt(this,e,Jce,Uce,Rt,{state:18,layout:17,locale:19,shadowRoot:20,actionLogUrlVariable:21,cardLocales:22,previewWarnFileLimit:23,previewErrorFileLimit:24,warnFileLimit:25,errorFileLimit:26,rootConfigurable:27,customFontFaces:28,directionSelector:29,uploadFile:30,editorFabric:31,getTranslationSuggest:32,getTranslationKey:33,setLayout:34,setLocale:35},null,[-1,-1])}get setLayout(){return this.$$.ctx[34]}get setLocale(){return this.$$.ctx[35]}}function Kce(t){return t.reduce(((e,n)=>(e[n.id]={name:n.name,light:n.light,dark:n.dark},e)),{})}const Yce=10;function Gce(t,e,n,i){let o="";{const r=Math.min(Yce,n);for(let s=0;s<r;++s)o+=" "}return ap({loc:{line:0,column:0,offset:0},replacer:e,stack:[],indent:"",gap:o,propertyList:void 0,onLoc:i},"",{"":t})||""}function ap(t,e,n){let i=n[e];(typeof i=="object"&&i!==null||typeof i=="bigint")&&typeof i.toJSON=="function"&&(i=i.toJSON(e)),t.replacer&&(i=t.replacer.call(n,e,i));let o;if(i===null?o="null":i===!0?o="true":i===!1?o="false":typeof i=="string"?o=JSON.stringify(i):typeof i=="number"&&(Number.isFinite(i)?o=String(i):o="null"),typeof o=="string")return ar(t.loc,o),o;if(typeof i=="bigint")throw new TypeError("Do not know how to serialize a BigInt");if(typeof i=="object"&&i!==null)return Array.isArray(i)?Zce(t,i):xce(t,i)}function Xce(t,e){let n=-1,i=0;for(;n<t.length-e.length;){const o=t.indexOf(e,n);if(o===-1)return i;n=o+1,++i}return 0}function ar(t,e){const n=Xce(e,`\n`);if(n>0){const i=e.length-e.lastIndexOf(`\n`)-1;t.line+=n,t.column=i}else t.column+=e.length;t.offset+=e.length}function Zce(t,e){if(t.stack.includes(e))throw new TypeError("Converting circular structure to JSON");t.stack.push(e);const n=t.indent;t.indent+=t.gap;let i="[";e.length&&t.gap&&(i+=`\n`+t.indent),ar(t.loc,i);for(let r=0,s=e.length;r<s;++r){const l={...t.loc},a=ap(t,String(r),e);let c;if(a===void 0?(c="null",t.loc=l,ar(t.loc,c)):c=a,i+=c,r+1<s){let d=",";t.gap&&(d+=`\n`+t.indent),i+=d,ar(t.loc,d)}}let o="";return e.length&&t.gap&&(o+=`\n`+n),o+="]",i+=o,ar(t.loc,o),t.stack.pop(),t.indent=n,i}function xce(t,e){if(t.stack.includes(e))throw new TypeError("Converting circular structure to JSON");t.stack.push(e);const n=t.indent,i={...t.loc};t.indent+=t.gap;const o=t.propertyList||Object.keys(e);let r="{";ar(t.loc,r);const s=`\n`+t.indent;t.gap&&(r+=s,ar(t.loc,s));let l=r;const a={...t.loc};let c=!1;if(o.forEach((d=>{const u={...t.loc},p=r;let _=JSON.stringify(d);_+=":",t.gap&&(_+=" "),r+=_,ar(t.loc,_);const f=ap(t,d,e);if(f!==void 0){c=!0,r+=f,l=r,a.line=t.loc.line,a.column=t.loc.column,a.offset=t.loc.offset;let m=",";t.gap&&(m+=`\n`+t.indent),r+=m,ar(t.loc,m)}else t.loc=u,r=p})),c){if(r=l,t.loc=a,t.gap){const d=`\n`+n;r+=d,ar(t.loc,d)}r+="}",ar(t.loc,"}")}else r="{}",t.loc={...i},ar(t.loc,r);return t.stack.pop(),t.indent=n,t.onLoc&&t.onLoc(e,{start:i,end:{...t.loc}}),r}const Xv="https://yastatic.net/s3/home/divkit/empty2.png";function Qce({object:t,mapJsonToLeaf:e}){return Gce(t,((n,i)=>{if(!(n==="__leafId"||n==="__key"))return i}),2,((n,i)=>{const o=e.get(n);o&&(o.props.range=i)}))}const ede="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20stroke='%23fff'%20stroke-linecap='round'%20stroke-width='2'%20d='M11%2011H7.5A2.5%202.5%200%200%200%205%2013.5V17m0%203v6m0%203v3.5A2.5%202.5%200%200%200%207.5%2035H11m3%200h6m3%200h3.5a2.5%202.5%200%200%200%202.5-2.5V29m6-21.5A2.5%202.5%200%200%200%2032.5%205h-19A2.5%202.5%200%200%200%2011%207.5v19a2.5%202.5%200%200%200%202.5%202.5h19a2.5%202.5%200%200%200%202.5-2.5z'/%3e%3c/svg%3e",tde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20stroke='%23fff'%20stroke-width='3'%20d='M11%2014h9m9%200h-9m0%200v16'/%3e%3c/svg%3e",nde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3crect%20width='22'%20height='5'%20x='9'%20y='6'%20stroke='%23fff'%20stroke-width='2'%20rx='1'/%3e%3crect%20width='22'%20height='5'%20x='9'%20y='17'%20stroke='%23fff'%20stroke-width='2'%20rx='1'/%3e%3crect%20width='22'%20height='5'%20x='9'%20y='28'%20stroke='%23fff'%20stroke-width='2'%20rx='1'/%3e%3c/svg%3e",ide="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M7.5%2031.5a2%202%200%200%201-2-2v-20a2%202%200%200%201%202-2h3a2%202%200%200%201%202%202v20a2%202%200%200%201-2%202h-3Zm0-22v20h3v-20h-3Zm11%2022a2%202%200%200%201-2-2v-20a2%202%200%200%201%202-2h3a2%202%200%200%201%202%202v20a2%202%200%200%201-2%202h-3Zm0-22v20h3v-20h-3Zm9%2020a2%202%200%200%200%202%202h3a2%202%200%200%200%202-2v-20a2%202%200%200%200-2-2h-3a2%202%200%200%200-2%202v20Zm2%200v-20h3v20h-3Z'%20clip-rule='evenodd'/%3e%3c/svg%3e",ode="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M16.059%208.468A2%202%200%200%201%2017.344%208H31.51c1.867%200%202.716%202.332%201.286%203.532L30.332%2013.6h1.6c1.815%200%202.691%202.224%201.363%203.462l-3.203%202.988h1.835c1.816%200%202.692%202.224%201.364%203.462l-8.579%208a2%202%200%200%201-1.364.538H9.004c-1.816%200-2.692-2.225-1.364-3.463l3.204-2.987H9.009c-1.816%200-2.692-2.225-1.364-3.463L11.009%2019H9.003c-1.867%200-2.716-2.332-1.286-3.532l8.34-7ZM13.94%2019l-4.932%204.6h14.344l8.578-8h-3.98l-3.494%202.932A2%202%200%200%201%2023.17%2019h-9.23Zm-.165%206.6-4.772%204.45h14.344l8.579-8h-3.98l-3.23%203.012a2%202%200%200%201-1.364.538h-9.577ZM31.51%2010H17.344l-8.34%207h14.165l8.341-7Z'%20clip-rule='evenodd'/%3e%3c/svg%3e",rde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M18.753%2021.308c0%20.546-.082%201.053-.247%201.521-.165.46-.416.862-.754%201.209a3.645%203.645%200%200%201-1.274.806c-.503.19-1.096.286-1.781.286a4.863%204.863%200%200%201-1.846-.338%204.082%204.082%200%200%201-1.43-.962%204.285%204.285%200%200%201-.923-1.508c-.217-.59-.325-1.248-.325-1.976s.104-1.387.312-1.976a4.19%204.19%200%200%201%20.936-1.508%204.204%204.204%200%200%201%201.534-.962c.615-.225%201.322-.338%202.119-.338.399%200%20.75.026%201.053.078.312.043.59.104.832.182.243.07.455.152.637.247s.347.186.494.273v1.404a6.704%206.704%200%200%200-1.313-.585c-.468-.165-1.027-.247-1.677-.247-1.135%200-1.963.303-2.483.91-.52.598-.78%201.439-.78%202.522%200%201.092.247%201.937.741%202.535.503.598%201.213.897%202.132.897.433%200%20.806-.056%201.118-.169.312-.121.563-.282.754-.481.2-.208.342-.45.429-.728.095-.286.143-.598.143-.936v-.078h-2.73v-1.352h4.329v1.274Zm3.136-5.629V25h-1.573v-9.321h1.573Zm1.994%200h5.928v1.365h-4.355v2.73h3.692v1.352h-3.692V25h-1.573v-9.321Z'/%3e%3c/svg%3e",sde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20stroke='%23fff'%20stroke-width='2'%20d='m7%2033%204.585-6.114a3%203%200%200%201%203.582-.957l2.46%201.054a3%203%200%200%200%203.732-1.178l3.367-5.44a3%203%200%200%201%204.415-.77L34.696%2024'/%3e%3crect%20width='30'%20height='30'%20x='5'%20y='5'%20stroke='%23fff'%20stroke-width='2'%20rx='5'/%3e%3crect%20width='6'%20height='6'%20x='12'%20y='12'%20stroke='%23fff'%20stroke-width='2'%20rx='3'/%3e%3c/svg%3e",lde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3crect%20width='28'%20height='17'%20x='6'%20y='6'%20stroke='%23fff'%20stroke-width='2'%20rx='2'/%3e%3crect%20width='6'%20height='6'%20x='6'%20y='28'%20stroke='%23fff'%20stroke-width='2'%20rx='2'/%3e%3crect%20width='6'%20height='6'%20x='17'%20y='28'%20stroke='%23fff'%20stroke-width='2'%20rx='2'/%3e%3crect%20width='6'%20height='6'%20x='28'%20y='28'%20stroke='%23fff'%20stroke-width='2'%20rx='2'/%3e%3c/svg%3e",ade="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20stroke='%23fff'%20stroke-width='3'%20d='M7%2020h26'/%3e%3c/svg%3e",cde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M4.5%2027.5a2%202%200%200%200%202%202h6a2%202%200%200%200%202-2v-16a2%202%200%200%200-2-2h-6a2%202%200%200%200-2%202v16Zm2-16v16h6v-16h-6Zm10%2016a2%202%200%200%200%202%202h6a2%202%200%200%200%202-2v-16a2%202%200%200%200-2-2h-6a2%202%200%200%200-2%202v16Zm2-16v16h6v-16h-6Zm12%2018h3v4a1%201%200%201%200%202%200v-28a1%201%200%201%200-2%200v4h-3a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202Zm0-18v16h3v-16h-3Z'%20clip-rule='evenodd'/%3e%3c/svg%3e",dde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='30'%20height='31'%20fill='none'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M7%200a2%202%200%200%200-2%202v6a2%202%200%200%200%202%202h16a2%202%200%200%200%202-2V2a2%202%200%200%200-2-2H7Zm16%202H7v6h16V2ZM7%2012a2%202%200%200%200-2%202v6a2%202%200%200%200%202%202h16a2%202%200%200%200%202-2v-6a2%202%200%200%200-2-2H7Zm16%202H7v6h16v-6ZM5%2026v3H1a1%201%200%201%200%200%202h28a1%201%200%201%200%200-2h-4v-3a2%202%200%200%200-2-2H7a2%202%200%200%200-2%202Zm18%200H7v3h16v-3Z'%20clip-rule='evenodd'/%3e%3c/svg%3e",ude="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3crect%20width='6'%20height='6'%20x='27.58'%20y='17'%20stroke='%23fff'%20stroke-width='2'%20rx='3'/%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M9%2013.016h22c4.314%200%206.946%202.707%207%206.984%200%204.173-2.826%207.018-7%207.018H9c-4.544%200-7-3.297-7-7.018%200-4.233%202.85-6.984%207-6.984Zm0%202%2022.153-.028C33.977%2014.984%2036%2017.305%2036%2020c0%202.522-1.978%205.018-5%205.018H9c-2.988%200-5-2.405-5-5.018%200-2.89%202.073-4.98%205-4.984Z'%20clip-rule='evenodd'/%3e%3c/svg%3e",pde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cg%20stroke-width='2'%3e%3cpath%20stroke='%23fff'%20d='M8%207c-.554%200-1%20.446-1%201v23c0%20.554.446%201%201%201h24c.554%200%201-.446%201-1V8c0-.554-.446-1-1-1z'/%3e%3cpath%20stroke='%23feffff'%20d='M23%207v25'/%3e%3cpath%20stroke='%23fff'%20d='M7%2017h26'/%3e%3c/g%3e%3c/svg%3e",_de="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M3%2029.5h3.5a2%202%200%200%200%202-2v-16a2%202%200%200%200-2-2H3m0%202v16h3.5v-16zm34%2018h-3.5a2%202%200%200%201-2-2v-16a2%202%200%200%201%202-2H37m0%202v16h-3.5v-16zm-26%2020a2%202%200%200%200%202%202h14a2%202%200%200%200%202-2v-24a2%202%200%200%200-2-2H13a2%202%200%200%200-2%202zm2-24v24h14v-24z'%20clip-rule='evenodd'/%3e%3c/svg%3e",fde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cg%20stroke='%23fff'%20stroke-width='2'%3e%3cpath%20d='M8%2010h7c1%200%202%201%202%202v4c0%201%201%202%202%202h13c1.108%200%202%20.892%202%202v10c0%201.108-.892%202-2%202H8c-1.108%200-2-.892-2-2V12c0-1.108.892-2%202-2z'/%3e%3cpath%20d='M17%2012h5c1%200%202%201%202%202v4'/%3e%3cpath%20d='M22%2012h6c1%200%202%201%202%202v4'/%3e%3c/g%3e%3c/svg%3e",mde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cg%20stroke='%23fff'%20stroke-linecap='round'%20stroke-width='2'%3e%3cpath%20d='M5%2035%2035%205'/%3e%3cpath%20stroke-linejoin='round'%20d='M16.741%2023.057H7.178c-1.2%200-2.164-.847-2.164-1.9V6.914c0-1.053.965-1.9%202.163-1.9h22.717c1.198%200%202.426.88%202.163%201.9l-.28%201.086M25%2014.957h9.836c1.2%200%202.164.847%202.164%201.9V31.1c0%201.053-.965%201.9-2.163%201.9H12.12c-1.198%200-2.163-.847-2.163-1.9v-.803'/%3e%3c/g%3e%3c/svg%3e",gde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20stroke='%23fff'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%20d='m26.695%2024.531%203.332%208.705L22.68%2026.8l-2.03%208.426-1.751-8.264-6.264%206.592%203.18-8.249L6.466%2027.1l6.273-5.86-7.606-3.055%209.32-.6-6.138-7.234%208.617%202.977-.82-7.93%205.079%207.356%203.342-8.216.043%208.84%207.921-3.857-4.11%206.425%207.895%201.15-6.758%203.873%205.834%205.052z'/%3e%3c/svg%3e",hde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%3e%3cpath%20fill='none'%20stroke='%23fff'%20stroke-linecap='round'%20stroke-width='3'%20d='M7%2020h26'/%3e%3ccircle%20cx='24.08'%20cy='20.033'%20r='3'%20fill='%23fff'%20stroke='%23fff'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='3'/%3e%3c/svg%3e",vde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3crect%20width='28'%20height='15'%20x='6'%20y='12.5'%20stroke='%23fff'%20stroke-width='2'%20rx='2'%20ry='2'/%3e%3cpath%20fill='%23fff'%20d='m13.416%2016.441-1.784%204.837h3.574zm-.742-1.296h1.49l3.705%209.72h-1.367l-.886-2.493h-4.381l-.885%202.493H8.963z'%20aria-label='A'/%3e%3c/svg%3e",bde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3crect%20width='28'%20height='9.5'%20x='6'%20y='8.5'%20stroke='%23fff'%20stroke-width='2'%20rx='2'%20ry='2'/%3e%3cpath%20stroke='%23fff'%20stroke-linejoin='round'%20stroke-width='2'%20d='M32%2018v10c0%201.108-.892%202-2%202H10c-1.108%200-2-.892-2-2V18h24z'/%3e%3cpath%20fill='%23fff'%20d='m26%2013%202%202%203-3h-6'/%3e%3c/svg%3e",yde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%3e%3crect%20width='30'%20height='24'%20x='5'%20y='8'%20fill='none'%20stroke='%23fff'%20stroke-linejoin='round'%20stroke-width='2'%20rx='2'%20ry='2'/%3e%3cpath%20fill='%23fff'%20d='M16%2013v14l11-7-11-7'/%3e%3c/svg%3e",wde="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20stroke='%23fff'%20stroke-linecap='round'%20stroke-width='2'%20d='M8%2026v3.5a2.5%202.5%200%200%200%202.5%202.5H14m0-24h-3.5A2.5%202.5%200%200%200%208%2010.5V14m24%200v-3.5A2.5%202.5%200%200%200%2029.5%208H26m0%2024h3.5a2.5%202.5%200%200%200%202.5-2.5V26'/%3e%3c/svg%3e",Zv={text:tde,container:nde,gallery:cde,gif:rde,image:sde,indicator:lde,separator:ade,switch:ude,grid:pde,pager:_de,tabs:fde,state:mde,custom:gde,slider:hde,input:vde,select:bde,video:yde},xv={container:{horizontal:ide,overlap:ode},gallery:{vertical:dde}};function $de(t,e){if(t in Zv){const n=e==null?void 0:e.orientation;if(n&&t in xv){const i=xv[t];if(n in i)return i[n]}return Zv[t]}return t in Ui&&Ui[t].icon?Ui[t].icon:wde}class kde extends hr{constructor(n){super();on(this,"leafId");on(this,"cascadeRemoval");this.leafId=n,this.cascadeRemoval=[]}undo(n){const i=$n(n.tree);for(let o=this.cascadeRemoval.length-1;o>=0;--o){const r=this.cascadeRemoval[o],s=no(i,r.parentId);if(s){const l=r.leaf;s.childs.splice(r.insertIndex,0,l),l.parent=s}}}redo(n){const i=$n(n.tree);this.cascadeRemoval=xu(i,this.leafId)}canMerge(n){return!1}mergeMeWith(n){throw new Error("Cannot merge RemoveLeafCommand")}toLangKey(){return"commands.remove_component"}}var Ir,lr,ma,fl,ga,Nc,qc,Rc,ml,gl,ha,Bc,qV;class jde{constructor({getTranslationKey:e}){er(this,Bc);on(this,"palette",Si([]));on(this,"customVariables",Si([]));on(this,"variableTriggers",Si());on(this,"timers",Si([]));on(this,"tanker",Si({}));on(this,"rootLogId",Si("div2_sample_card"));on(this,"tree",Si({id:"null",childs:[],props:{json:{}}}));er(this,Ir,Si([]));er(this,lr,Si(-1));on(this,"currentUndoStore",as([Gi(this,Ir),Gi(this,lr)],(([e,n])=>e[n])));on(this,"currentRedoStore",as([Gi(this,Ir),Gi(this,lr)],(([e,n])=>e[n+1])));on(this,"sources",Si([]));er(this,ma,new Map);on(this,"tankerKeyToNodes",Si(new Map));on(this,"varToTankerMap",new Map);er(this,fl,Si(new Map));on(this,"userTemplates",new Map);er(this,ga,Si(this.userTemplates));on(this,"userDefinedTemplates",as([Gi(this,ga)],(([e])=>Array.from(e.keys()).filter((n=>!Ui[n])))));on(this,"paletteEnabled",Si(!0));er(this,Nc,0);er(this,qc,0);er(this,Rc,0);er(this,ml,0);on(this,"copiedLeaf",Si(null));on(this,"selectedLeaf",Si(null));on(this,"selectedElem",Si(null));on(this,"highlightLeaf",Si(null));on(this,"highlightElem",Si(null));on(this,"highlightMode",Si(""));on(this,"highlightGradientAngle",Si(0));on(this,"highlightRanges",Si(null));on(this,"selectedRanges",Si(null));on(this,"highlightLoc",Si(null));er(this,gl,!1);er(this,ha,null);on(this,"simpleComponentsMap",null);on(this,"rendererErrors",Si({}));on(this,"rendererErrorsOnly",as(this.rendererErrors,(e=>{const n=[];return Object.keys(e).map((i=>{n.push(...e[i].filter(Bne))})),n})));on(this,"rendererWarningsOnly",as(this.rendererErrors,(e=>{const n=[];return Object.keys(e).map((i=>{n.push(...e[i].filter(yV))})),n})));on(this,"locale",Si(""));on(this,"customActions",Si([]));on(this,"previewThemeStore",Si("light"));on(this,"readOnly",Si(!1));on(this,"themeStore",Si("light"));on(this,"divjsonStore",as(this.tree,(e=>{const{shortObject:n,mapJsonToLeaf:i}=this.treeToShortObject(e),o=new Set;cs(e,(s=>{const l=s.props.json.type;o.add(l)}));const r=this.toFullDivjson(o,n);return{object:r,fullString:Qce({object:r,mapJsonToLeaf:i})}})));on(this,"direction",Si("ltr"));on(this,"getTranslationKey");this.getTranslationKey=e,this.selectedLeaf.subscribe((n=>{this.selectedElem.set((n==null?void 0:n.props.node)||null);const i=n==null?void 0:n.props.range;i?(this.highlightLoc.set(i.start),this.selectedRanges.set([i])):(this.highlightLoc.set(null),this.selectedRanges.set(null))})),this.tree.subscribe((n=>{const i=$n(this.selectedLeaf);i&&(no(n,i.id)||this.selectedLeaf.set(null));const o=new Set;cs(n,(l=>{o.add(l.id)}));let r=$n(this.rendererErrors),s=!1;for(const l in r)o.has(l)||(s||(s=!0,r={...r}),delete r[l]);s&&this.rendererErrors.set(r)}))}treeToShortObject(e){const n=new Map,i=r=>{var d,u,p,_;const l={...r.props.json,__leafId:r.id},a=this.getBaseType((d=r.props.json)==null?void 0:d.type),c=r.props.fromDataField||"items";return a==="state"?l[c]=(u=r.childs)==null?void 0:u.map(((f,m)=>{var h;return{state_id:((h=f.props.info)==null?void 0:h.state_id)||m,div:i(f)}})):a==="tabs"?l[c]=(p=r.childs)==null?void 0:p.map((f=>{var m,h;return{title:((m=f.props.info)==null?void 0:m.title)||"title",title_click_action:(h=f.props.info)==null?void 0:h.title_click_action,div:i(f)}})):(_=r.childs)!=null&&_.length?l[c]=r.childs.map(i):delete l.items,n.set(l,r),l};return{shortObject:{card:{log_id:$n(this.rootLogId),states:[{state_id:0,div:i(e)}]}},mapJsonToLeaf:n}}extractVariables(e,n){const i=[],o=new Set;n&&n.forEach((r=>{o.add(r.key)}));for(const r of e){const{name:s}=r;!s||!r.type||s==="local_palette"||s.startsWith("tanker_")||o.has(s)||i.push({id:this.genVariableId(),name:s,type:r.type,value:typeof r.value=="string"?r.value:JSON.stringify(r.value)})}return i}divToLeaf(e,n,i){const o=e.type;let r,s=[],l;o in Ui?r=[]:({childs:r,infos:s,fromDataField:l}=fV(this,e));const a={id:this.genId(),props:{json:e},parent:n,childs:[]};return i&&(a.props.info=i),l&&(a.props.fromDataField=l),a.childs=r.map(((c,d)=>this.divToLeaf(c,a,s[d]))),a}setDivJson(e){var n,i,o,r,s,l;if(!e)throw new Error("Missing json");if(!((o=(i=(n=e.card)==null?void 0:n.states)==null?void 0:i[0])!=null&&o.div))throw new Error("Incorrect format");if(this.userTemplates.clear(),e.templates&&typeof e.templates=="object")for(const a in e.templates)this.userTemplates.set(a,e.templates[a]),Gi(this,ga).set(this.userTemplates);Array.isArray((r=e.card)==null?void 0:r.variables)?(this.customVariables.set(this.extractVariables(e.card.variables,$n(this.sources))),e.card.variables.forEach((a=>{if(a.name==="local_palette"&&a.value&&typeof a.value=="object"){const c=[];for(const d in a.value){const u=a.value[d];u&&typeof u=="object"&&typeof u.name=="string"&&typeof u.light=="string"&&typeof u.dark=="string"&&c.push({id:d,name:u.name,light:u.light,dark:u.dark})}this.palette.set(c)}}))):this.customVariables.set([]),this.variableTriggers.set(Array.isArray((s=e.card)==null?void 0:s.variable_triggers)?e.card.variable_triggers:[]),Array.isArray((l=e.card)==null?void 0:l.timers)?this.timers.set(e.card.timers.filter((a=>a.id)).map((a=>({...a,__id:this.genTimerId()})))):this.timers.set([]),this.tree.set(this.divToLeaf(e.card.states[0].div)),this.updateUsages(),this.awaitMissingTankerKeys(e).then((a=>{a&&this.tree.set($n(this.tree))}))}async awaitMissingTankerKeys(e){var i,o;const n=[];if(cs($n(this.tree),(r=>{const s=r.props.json.text,l=s&&Zh(s),a=s&&this.getTankerKey(s);l&&!a&&n.push(l)})),n.length&&Array.isArray((i=e==null?void 0:e.card)==null?void 0:i.variables)){const r=n.map((s=>{var l;return(l=e.card.variables.find((a=>(a==null?void 0:a.name)===s)))==null?void 0:l.value.replace("#{tanker/","").replace("}","")})).filter(Boolean);if(r.length){const s={};for(const l of r)try{const a=await((o=this.getTranslationKey)==null?void 0:o.call(this,l));a&&(s[l]=a,this.storeTankerKey(l))}catch{}return this.tanker.set({...$n(this.tanker),...s}),this.updateUsages(),!0}}return!1}toFullDivjson(e,n){const i={};for(const[d,u]of this.userTemplates)i[d]=u;for(const d in Ui)!this.userTemplates.has(d)&&e.has(d)&&(i[d]=Ui[d].template);const o=[],r=$n(this.palette);if($n(this.paletteEnabled)){const d=Kce(r);Object.keys(d).length&&o.push({type:"dict",name:"local_palette",value:d})}for(const[d]of $n(this.tankerKeyToNodes))o.push({type:"string",name:Pc(d),value:`#{tanker/${d}}`});const s=new Map;for(const d of $n(this.sources))s.set(d.key,d);for(const[d]of $n(Gi(this,fl)))s.has(d)&&o.push({type:"dict",name:d,value:s.get(d).example});for(const d of $n(this.customVariables))try{const u=Vte(d),{type:p,name:_}=d;o.push({type:p,name:_,value:u})}catch{}const l=n.card||(n.card={});o.length?l.variables=o:delete l.variables;const a=$n(this.variableTriggers);a.length?l.variable_triggers=a:delete l.variable_triggers;const c=$n(this.timers);return c.length?l.timers=c.map((d=>{const{id:u,duration:p,tick_interval:_,value_variable:f,tick_actions:m,end_actions:h}=d;return{id:u,duration:p,tick_interval:_,value_variable:f,tick_actions:m,end_actions:h}})):delete l.timers,{...n,templates:i}}genPaletteId(){let e;const n=new Set($n(this.palette).map((i=>i.id)));do{e=`color${Nl(this,Nc)._++}`}while(n.has(e));return e}genVariableId(){return`var${Nl(this,qc)._++}`}genTimerId(){return`timer${Nl(this,Rc)._++}`}storeTankerKey(e){const n=Pc(e);Gi(this,ma).has(e)||Gi(this,ma).set(e,n),this.varToTankerMap.has(n)||this.varToTankerMap.set(n,e)}getTankerKey(e){const n=Zh(e);return n&&this.varToTankerMap.get(n)||""}updateUsages(){this.updateTankerMap(),this.updateSourcesMap()}updateTankerMap(){const e=$n(this.tankerKeyToNodes);e.clear(),cs($n(this.tree),(n=>{const i=n.props.json.text,o=i&&this.getTankerKey(i);if(o){const r=e.get(o)||new Set;e.set(o,r),r.add(n.id)}})),this.tankerKeyToNodes.set(e)}updateSourcesMap(){const e=$n(Gi(this,fl));e.clear(),cs($n(this.tree),(n=>{for(const i in n.props.json){const o=n.props.json[i];if(typeof o=="string"&&o.includes("@{"))try{const r=BY(o,{type:"json"});Ko(r,{Variable(s){const l=s.id.name,a=e.get(l)||new Set;e.set(l,a)}})}catch{}}})),Gi(this,fl).set(e)}genNewLeaf(e,n=!1){let i;e==="text"?i={type:e,text:"text",font_size:20}:e==="image"?i={type:e,image_url:Xv,width:{type:"fixed",value:100},height:{type:"fixed",value:100},preload_required:!0}:e==="gif"?i={type:e,gif_url:Xv,width:{type:"fixed",value:100},height:{type:"fixed",value:100},preload_required:!0}:e==="separator"?i={type:e,width:{type:"match_parent"},height:{type:"fixed",value:10}}:e==="container"?i={type:e,width:{type:"match_parent"},height:{type:"fixed",value:200}}:e==="gallery"?i={type:e,width:{type:"match_parent"},height:{type:"fixed",value:200}}:e in Ui&&Ui[e].newNode?i={...Ui[e].newNode,type:e}:i={type:e};const o={id:this.genId(),parent:void 0,childs:[],props:{json:i}};if(!kl(e)&&!(e in Ui)&&!this.userTemplates.has(e)&&e!=="custom"){const r={id:this.genId(),parent:o,childs:[],props:{json:{type:"text",text:"text"}}};(e==="gallery"||e==="container")&&(r.props.json.width={type:"fixed",value:100}),o.childs.push(r)}return o.props.json.width||(o.props.json.width={type:"wrap_content",constrained:!0}),n&&(o.props.json.alignment_horizontal="center",o.props.json.alignment_vertical="center"),o}getChild(e,n=!1){if(e.startsWith("_new")){const i=e.split(":")[1];return this.genNewLeaf(i,n)}return no($n(this.tree),e)}componentIcon(e,n){return this.userTemplates.has(e)&&!(e in Ui)?ede:$de(e,n)}getBaseType(e){var i;if(!e)return e;let n=e;for(;typeof n=="string"&&this.userTemplates.has(n);)n=(i=this.userTemplates.get(n))==null?void 0:i.type;return typeof n=="string"&&n||e}pushCommand(e){const n=$n(Gi(this,Ir)),i=$n(Gi(this,lr));e.redo(this);const o=n[i];if(o&&o.canMerge(e)){o.mergeMeWith(e);const r=n.slice(0,i);r.push(o),Gi(this,Ir).set(r),Gi(this,lr).set(r.length-1)}else{const r=n.slice(0,i+1);r.push(e),Gi(this,Ir).set(r),Gi(this,lr).set(r.length-1)}this.updateUsages(),this.tree.set($n(this.tree))}undo(){if(!$n(this.currentUndoStore))return;const e=$n(Gi(this,Ir)),n=$n(Gi(this,lr));e[n].undo(this),Gi(this,lr).set(n-1),this.updateUsages(),this.tree.set($n(this.tree))}redo(){if(!$n(this.currentRedoStore))return;const e=$n(Gi(this,Ir)),n=$n(Gi(this,lr));e[n+1].redo(this),Gi(this,lr).set(n+1),this.updateUsages(),this.tree.set($n(this.tree))}pasteLeaf(e,n,i){var c,d;const o=this.getBaseType(n.props.json.type),s=o&&!kl(o)&&!Qu(this,n.props.json)&&!Ui[n.props.json.type]?n:n.parent;if(!s)return;const l=this.duplicateLeaf(e,s),a=$n(this.tree);((c=s==null?void 0:s.props.processedJson)==null?void 0:c.orientation)==="overlap"&&((d=l.props.json).margins||(d.margins={}),l.props.json.margins.top=(l.props.json.margins.top||0)+10,l.props.json.margins.left=(l.props.json.margins.left||0)+10),i===void 0&&(s===n.parent&&n.parent?i=n.parent.childs.indexOf(n)+1:i=s.childs.length),this.pushCommand(new da({parentId:s.id,insertIndex:i,leaf:l})),this.selectedLeaf.set(no(a,l.id)||null)}deleteLeaf(e){this.pushCommand(new kde(e.id)),this.highlightLeaf.set(null),this.highlightElem.set(null),this.highlightRanges.set(null),$n(this.selectedLeaf)===e&&(this.selectedLeaf.set(null),this.selectedElem.set(null))}updateComponents(){cp(this,Bc,qV).call(this,(()=>{const e=Ate($n(this.tree));Zs(this,ha,e.map),this.simpleComponentsMap=e.simpleMap}))}getLeafFromNode(e){var i;const n=(i=Gi(this,ha))==null?void 0:i.get(e);if(n)return no($n(this.tree),n)}genId(){return`id${Nl(this,ml)._++}`}currentGenId(){return Gi(this,ml)}restoreGenId(e){Zs(this,ml,e)}duplicateLeaf(e,n=void 0){const i={id:this.genId(),props:{...e.props},parent:n,childs:[]};return delete i.props.node,delete i.props.range,delete i.props.processedJson,i.props.json=JSON.parse(JSON.stringify(i.props.json)),e.childs.forEach((o=>{i.childs.push(this.duplicateLeaf(o,i))})),i}findBestLeaf(e){const n=$n(this.tree);if(!n)return;let i;if(cs(n,(o=>{const r=o.props.range;if(r&&r.start.offset<=e&&e<=r.end.offset+1){const s=r.end.offset-r.start.offset;(!i||i.len>s)&&(i={len:s,leaf:o})}})),i)return i.leaf}}Ir=new WeakMap,lr=new WeakMap,ma=new WeakMap,fl=new WeakMap,ga=new WeakMap,Nc=new WeakMap,qc=new WeakMap,Rc=new WeakMap,ml=new WeakMap,gl=new WeakMap,ha=new WeakMap,Bc=new WeakSet,qV=function(e){Gi(this,gl)||(Zs(this,gl,!0),Promise.resolve().then((()=>{Zs(this,gl,!1),e()})))};function Sde(t){return t.split("").map((e=>`u${String(e.charCodeAt(0)).padStart(4,"0")}`)).join("")}function Cde(t){return t.split("u").map((e=>e?String.fromCharCode(Number(e)):"")).join("")}function Ade(t){var l,a;const e={light:[],dark:[]},n=Date.now(),i=(a=(l=t.card.variables)==null?void 0:l.find((c=>c.name==="local_palette")))==null?void 0:a.value;i&&(t.card.variables=t.card.variables.filter((c=>c.name!=="local_palette")),t.card.variables.length||delete t.card.variables);const o=new Set,r=c=>{if(typeof c=="number"||typeof c=="boolean")return c;if(typeof c=="string")if(dr(c)){const u=yr(c),p=i==null?void 0:i[u];if(p){const _="local_palette."+u+"."+n+"."+Sde(p.name);return o.has(_)||(o.add(_),e.light.push({name:_,color:p.light}),e.dark.push({name:_,color:p.dark})),`@{${_}}`}throw new Error(`Palette color "${u}" is not found`)}else return c;if(!c)return c;if(Array.isArray(c))return c.map(r);const d={};for(const u in c)d[u]=r(c[u]);return d},s=r(t);return o.size&&(s.palette=e),s}function Ode(t){const e={};if(t.palette&&t.palette.light&&t.palette.dark)for(const o in t.palette.light){const r=t.palette.light[o].name.split("."),s=r[3]?Cde(r[3]):r[1];e[r[1]]={name:s,light:t.palette.light[o].color,dark:t.palette.dark[o].color}}const n=o=>{if(typeof o=="number"||typeof o=="boolean")return o;if(typeof o=="string"){if(o.startsWith("@{local_palette.")){const l=o.split(".")[1];return pa(l)}return o}if(!o)return o;if(Array.isArray(o))return o.map(n);const r={};for(const s in o)r[s]=n(o[s]);return r},i=n(t);return delete i.palette,Object.keys(e).length&&(t.card.variables||(i.card.variables=[]),i.card.variables.push({type:"dict",name:"local_palette",value:e})),i}function RV(t,e){const n=i=>{if(typeof i=="object"&&i){"type"in i&&typeof i.type=="string"&&e.has(i.type)&&(i.type=e.get(i.type));for(const o in i)n(i[o])}};return n(t),t}function Mde(t,e){if(!(t!=null&&t.templates))return t;const n=new Map,i={};for(const o in t.templates)n.set(o,o+e),i[o+e]=t.templates[o];return t.templates=i,RV(t,n)}function Pde(t,e){if(!(t!=null&&t.templates))return t;const n=new Map,i={};for(const o in t.templates){const r=e(o);r?(n.set(o,r),i[r]=t.templates[o]):i[o]=t.templates[o]}return t.templates=i,RV(t,n)}const Ide={init(t){var s,l,a,c,d,u,p,_,f,m,h,v,y;const e=JSON.parse(((s=t.card)==null?void 0:s.json)||t.value||"{}"),n=new jde({getTranslationKey:(l=t.api)==null?void 0:l.getTranslationKey});if(n.paletteEnabled.set(t.paletteEnabled??!0),n.sources.set(t.sources||[]),n.customActions.set(t.customActions||[]),n.readOnly.set(t.readOnly||!1),n.themeStore.set(t.theme||"light"),n.locale.set(((c=(a=t.cardLocales)==null?void 0:a[0])==null?void 0:c.id)||""),n.direction.set(t.direction||"ltr"),Array.isArray((d=e==null?void 0:e.card)==null?void 0:d.variables)){const b=e.card.variables.find((w=>(w==null?void 0:w.type)==="dict"&&w.name==="local_palette"));if(b&&b.value&&typeof b.value=="object"){const w=[];for(const k in b.value){const E=b.value[k];k&&(E!=null&&E.name)&&E.light&&E.dark&&w.push({id:k,name:E.name,light:E.light,dark:E.dark})}n.palette.set(w)}}if((p=(u=t.card)==null?void 0:u.meta)!=null&&p.tanker){n.tanker.set(t.card.meta.tanker);for(const b in t.card.meta.tanker)n.storeTankerKey(b)}const i=(_=e==null?void 0:e.card)==null?void 0:_.log_id;i?n.rootLogId.set(i):n.rootLogId.set("div2_sample_card"),n.setDivJson(e);const o=new Wce({target:t.renderTo,props:{state:n,layout:t.layout,locale:t.locale,shadowRoot:t.shadowRoot,actionLogUrlVariable:t.actionLogUrlVariable,cardLocales:t.cardLocales,previewWarnFileLimit:t.previewWarnFileLimit,previewErrorFileLimit:t.previewErrorFileLimit,warnFileLimit:t.warnFileLimit,errorFileLimit:t.errorFileLimit,rootConfigurable:t.rootConfigurable,customFontFaces:t.customFontFaces,directionSelector:t.directionSelector,uploadFile:(f=t.api)==null?void 0:f.uploadFile,editorFabric:(m=t.api)==null?void 0:m.editorFabric,getTranslationKey:(h=t.api)==null?void 0:h.getTranslationKey,getTranslationSuggest:(v=t.api)==null?void 0:v.getTranslationSuggest}});let r;if((y=t.api)!=null&&y.onChange){let b=!0;r=n.divjsonStore.subscribe((()=>{var w,k;b?b=!1:(k=(w=t.api)==null?void 0:w.onChange)==null||k.call(w)}))}return{getValue(){return $n(n.divjsonStore).fullString},getCard(){return{json:$n(n.divjsonStore).fullString,meta:{tanker:$n(n.tanker)}}},setTheme(b){n.themeStore.set(b)},setLayout(b){o.setLayout(b)},setLocale(b){o.setLocale(b)},setReadOnly(b){n.readOnly.set(b)},setCustomActions(b){n.customActions.set(b)},setPaletteEnabled(b){n.paletteEnabled.set(b)},destroy(){o.$destroy(),r==null||r()}}}};export{Ide as DivProEditor,Mde as addTemplatesSuffix,Ade as convertDictToPalette,Ode as convertPaletteToDict,Pde as removeTemplatesSuffix};
|
|
1
|
+
import{D as a,b as o,c as r,a as s,r as i}from"./lib.js";export{a as DivProEditor,o as addTemplatesSuffix,r as convertDictToPalette,s as convertPaletteToDict,i as removeTemplatesSuffix};
|