@divkitframework/divkit 31.1.0 → 31.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- DivKit v31.1.0
2
+ DivKit v31.2.0
3
3
  https://github.com/divkit/divkit
4
4
  @licence Apache-2.0
5
5
  */(function(){"use strict";var lb=Object.defineProperty;var ab=(C,Ln,Bn)=>Ln in C?lb(C,Ln,{enumerable:!0,configurable:!0,writable:!0,value:Bn}):C[Ln]=Bn;var gr=(C,Ln,Bn)=>ab(C,typeof Ln!="symbol"?Ln+"":Ln,Bn);function C(){}const Ln=e=>e;function Bn(e,r){for(const t in r)e[t]=r[t];return e}function Bl(e){return e()}function Hl(){return Object.create(null)}function Hr(e){e.forEach(Bl)}function vr(e){return typeof e=="function"}function Kf(e,r){return e!=e?r==r:e!==r||e&&typeof e=="object"||typeof e=="function"}let Fo;function Dn(e,r){return e===r?!0:(Fo||(Fo=document.createElement("a")),Fo.href=r,e===Fo.href)}function mr(e,r){return e!=e?r==r:e!==r}function Xf(e){return Object.keys(e).length===0}function M(e,...r){if(e==null){for(const n of r)n(void 0);return C}const t=e.subscribe(...r);return t.unsubscribe?()=>t.unsubscribe():t}function Zf(e){let r;return M(e,t=>r=t)(),r}function rn(e,r,t){e.$$.on_destroy.push(M(r,t))}function Mo(e,r,t,n){if(e){const i=Wl(e,r,t,n);return e[0](i)}}function Wl(e,r,t,n){return e[1]&&n?Bn(t.ctx.slice(),e[1](n(r))):t.ctx}function Po(e,r,t,n){if(e[2]&&n){const i=e[2](n(t));if(r.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(r.dirty.length,i.length);for(let l=0;l<s;l+=1)o[l]=r.dirty[l]|i[l];return o}return r.dirty|i}return r.dirty}function No(e,r,t,n,i,o){if(i){const s=Wl(r,t,n,o);e.p(s,i)}}function zo(e){if(e.ctx.length>32){const r=[],t=e.ctx.length/32;for(let n=0;n<t;n++)r[n]=-1;return r}return-1}function Oo(e,r,t){return e.set(t),r}function Ro(e){return e&&vr(e.destroy)?e.destroy:C}function Ul(e){const r=typeof e=="string"&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return r?[parseFloat(r[1]),r[2]||"px"]:[e,"px"]}const Gl=typeof window<"u";let zs=Gl?()=>window.performance.now():()=>Date.now(),Os=Gl?e=>requestAnimationFrame(e):C;const $i=new Set;function Yl(e){$i.forEach(r=>{r.c(e)||($i.delete(r),r.f())}),$i.size!==0&&Os(Yl)}function Rs(e){let r;return $i.size===0&&Os(Yl),{promise:new Promise(t=>{$i.add(r={c:e,f:t})}),abort(){$i.delete(r)}}}const ni=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function At(e,r){e.appendChild(r)}function Jl(e){if(!e)return document;const r=e.getRootNode?e.getRootNode():e.ownerDocument;return r&&r.host?r:e.ownerDocument}function Qf(e){const r=Le("style");return r.textContent="/* empty */",xf(Jl(e),r),r.sheet}function xf(e,r){return At(e.head||e,r),r.sheet}function ie(e,r,t){e.insertBefore(r,t||null)}function re(e){e.parentNode&&e.parentNode.removeChild(e)}function ln(e,r){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(r)}function Le(e){return document.createElement(e)}function nn(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function qn(e){return document.createTextNode(e)}function pr(){return qn(" ")}function Zt(){return qn("")}function He(e,r,t,n){return e.addEventListener(r,t,n),()=>e.removeEventListener(r,t,n)}function p(e,r,t){t==null?e.removeAttribute(r):e.getAttribute(r)!==t&&e.setAttribute(r,t)}const $f=["width","height"];function Kn(e,r){const t=Object.getOwnPropertyDescriptors(e.__proto__);for(const n in r)r[n]==null?e.removeAttribute(n):n==="style"?e.style.cssText=r[n]:n==="__value"?e.value=e[n]=r[n]:t[n]&&t[n].set&&$f.indexOf(n)===-1?e[n]=r[n]:p(e,n,r[n])}function ed(e,r){Object.keys(r).forEach(t=>{td(e,t,r[t])})}function td(e,r,t){const n=r.toLowerCase();n in e?e[n]=typeof e[n]=="boolean"&&t===""?!0:t:r in e?e[r]=typeof e[r]=="boolean"&&t===""?!0:t:p(e,r,t)}function ql(e){return/-/.test(e)?ed:Kn}function rd(e){return Array.from(e.childNodes)}function Ei(e,r){r=""+r,e.data!==r&&(e.data=r)}function Kl(e,r){e.value=r==null?"":r}function O(e,r,t,n){t==null?e.style.removeProperty(r):e.style.setProperty(r,t,"")}function Xl(e,r,t){for(let n=0;n<e.options.length;n+=1){const i=e.options[n];if(i.__value===r){i.selected=!0;return}}(!t||r!==void 0)&&(e.selectedIndex=-1)}function nd(e){const r=e.querySelector(":checked");return r&&r.__value}function Zl(e,r,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(e,{detail:r,bubbles:t,cancelable:n})}function Ql(e,r){return new e(r)}const Lo=new Map;let Bo=0;function id(e){let r=5381,t=e.length;for(;t--;)r=(r<<5)-r^e.charCodeAt(t);return r>>>0}function od(e,r){const t={stylesheet:Qf(r),rules:{}};return Lo.set(e,t),t}function Ho(e,r,t,n,i,o,s,l=0){const a=16.666/n;let c=`{
@@ -1,5 +1,5 @@
1
1
  "use strict";var id=Object.defineProperty;var od=(e,r,t)=>r in e?id(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var gr=(e,r,t)=>od(e,typeof r!="symbol"?r+"":r,t);/*!
2
- DivKit v31.1.0
2
+ DivKit v31.2.0
3
3
  https://github.com/divkit/divkit
4
4
  @licence Apache-2.0
5
5
  */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function bl(e){return BigInt(e)}const Ao=bl("9223372036854775807"),jo=bl("-9223372036854775808");function tn(e){const r=bl(e);if(r>Ao||r<jo)throw new Error("Integer overflow.");return r}const Ji=tn(0);function Uu(e){let r=e;return r<0&&(r=-r),r}function Gu(e){let r=0;return e>0?r=1:e<0&&(r=-1),tn(r)}function sd(e,r){return r&&r[3]&&r[7]?{type:"ConditionalExpression",test:e,consequent:r[3],alternate:r[7]}:e}function ld(e,r){return r&&r[3]?{type:"TryExpression",test:e,alternate:r[3]}:e}function No(e,r){return r.length?r.reduce((t,n)=>({type:"BinaryExpression",operator:n[1],left:t,right:n[3]}),e):e}function Ul(e,r){return r.length?r.reduce((t,n)=>({type:"LogicalExpression",operator:n[1],left:t,right:n[3]}),e):e}function ad(e,r){return r.length?r.reduce((t,n)=>{if(!n[5])throw new Error("Method expected after .");return{type:"MethodExpression",object:t,method:n[3],arguments:n[5][2]}},e):e}function cd(e){return e==="true"||e==="false"?{type:"BooleanLiteral",value:e==="true"}:{type:"Variable",id:{type:"Identifier",name:e}}}function Gl(e){if(e.every(t=>typeof t=="string"))return{type:"StringLiteral",value:e.join("")};let r=e.reduce((t,n)=>(typeof n=="string"&&typeof t[t.length-1]=="string"?t[t.length-1]+=n:t.push(n),t),[]).reduce((t,n)=>(typeof n=="string"?t.quasis.push({type:"StringLiteral",value:n}):(t.quasis.length===t.expressions.length&&t.quasis.push({type:"StringLiteral",value:""}),t.expressions.push(n)),t),{type:"TemplateLiteral",quasis:[],expressions:[]});return r.quasis.length===r.expressions.length&&r.quasis.push({type:"StringLiteral",value:""}),r}function ud(e){try{return tn(e)}catch{throw new Error(`Value ${e} can't be converted to Integer type.`)}}function Jl(e){if(e==="'"||e==="\\")return e;throw new Error("Incorrect string escape")}function fd(e,r){function t(){this.constructor=e}t.prototype=r.prototype,e.prototype=new t}function co(e,r,t,n){var i=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(i,co.prototype),i.expected=r,i.found=t,i.location=n,i.name="SyntaxError",i}fd(co,Error);function Ls(e,r,t){return t=t||" ",e.length>r?e:(r-=e.length,t+=t.repeat(r),e+t.slice(0,r))}co.prototype.format=function(e){var r="Error: "+this.message;if(this.location){var t=null,n;for(n=0;n<e.length;n++)if(e[n].source===this.location.source){t=e[n].text.split(/\r\n|\n|\r/g);break}var i=this.location.start,o=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(i):i,s=this.location.source+":"+o.line+":"+o.column;if(t){var l=this.location.end,a=Ls("",o.line.toString().length," "),c=t[i.line-1],u=i.line===l.line?l.column:c.length+1,f=u-i.column||1;r+=`