@divkitframework/divkit 31.1.0 → 31.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";var td=Object.defineProperty;var rd=(e,r,t)=>r in e?td(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var gr=(e,r,t)=>rd(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 E(){}const ws=e=>e;function Ki(e,r){for(const t in r)e[t]=r[t];return e}function Wu(e){return e()}function Wl(){return Object.create(null)}function Wr(e){e.forEach(Wu)}function jr(e){return typeof e=="function"}function nd(e,r){return e!=e?r==r:e!==r||e&&typeof e=="object"||typeof e=="function"}let Fo;function zn(e,r){return e===r?!0:(Fo||(Fo=document.createElement("a")),Fo.href=r,e===Fo.href)}function yr(e,r){return e!=e?r==r:e!==r}function id(e){return Object.keys(e).length===0}function M(e,...r){if(e==null){for(const n of r)n(void 0);return E}const t=e.subscribe(...r);return t.unsubscribe?()=>t.unsubscribe():t}function od(e){let r;return M(e,t=>r=t)(),r}function on(e,r,t){e.$$.on_destroy.push(M(r,t))}function vs(e,r,t,n){if(e){const i=Uu(e,r,t,n);return e[0](i)}}function Uu(e,r,t,n){return e[1]&&n?Ki(t.ctx.slice(),e[1](n(r))):t.ctx}function ks(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 As(e,r,t,n,i,o){if(i){const s=Uu(r,t,n,o);e.p(s,i)}}function js(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 Uo(e,r,t){return e.set(t),r}function Cs(e){return e&&jr(e.destroy)?e.destroy:E}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 Gu=typeof window<"u";let pl=Gu?()=>window.performance.now():()=>Date.now(),ml=Gu?e=>requestAnimationFrame(e):E;const oo=new Set;function Yu(e){oo.forEach(r=>{r.c(e)||(oo.delete(r),r.f())}),oo.size!==0&&ml(Yu)}function bl(e){let r;return oo.size===0&&ml(Yu),{promise:new Promise(t=>{oo.add(r={c:e,f:t})}),abort(){oo.delete(r)}}}const _i=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function jt(e,r){e.appendChild(r)}function Ju(e){if(!e)return document;const r=e.getRootNode?e.getRootNode():e.ownerDocument;return r&&r.host?r:e.ownerDocument}function sd(e){const r=Be("style");return r.textContent="/* empty */",ld(Ju(e),r),r.sheet}function ld(e,r){return jt(e.head||e,r),r.sheet}function ie(e,r,t){e.insertBefore(r,t||null)}function ne(e){e.parentNode&&e.parentNode.removeChild(e)}function an(e,r){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(r)}function Be(e){return document.createElement(e)}function nn(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function xn(e){return document.createTextNode(e)}function pr(){return xn(" ")}function Qt(){return xn("")}function Ue(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 ad=["width","height"];function Qn(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&&ad.indexOf(n)===-1?e[n]=r[n]:p(e,n,r[n])}function cd(e,r){Object.keys(r).forEach(t=>{ud(e,t,r[t])})}function ud(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 Gl(e){return/-/.test(e)?cd:Qn}function fd(e){return Array.from(e.childNodes)}function Ti(e,r){r=""+r,e.data!==r&&(e.data=r)}function Yl(e,r){e.value=r==null?"":r}function z(e,r,t,n){t==null?e.style.removeProperty(r):e.style.setProperty(r,t,"")}function Jl(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 dd(e){const r=e.querySelector(":checked");return r&&r.__value}function qu(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 cs=new Map;let us=0;function _d(e){let r=5381,t=e.length;for(;t--;)r=(r<<5)-r^e.charCodeAt(t);return r>>>0}function hd(e,r){const t={stylesheet:sd(r),rules:{}};return cs.set(e,t),t}function fs(e,r,t,n,i,o,s,l=0){const a=16.666/n;let c=`{
@@ -2,7 +2,7 @@ var nd = Object.defineProperty;
2
2
  var id = (e, r, t) => r in e ? nd(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
3
3
  var gr = (e, r, t) => id(e, typeof r != "symbol" ? r + "" : r, t);
4
4
  /*!
5
- DivKit v31.1.0
5
+ DivKit v31.2.0
6
6
  https://github.com/divkit/divkit
7
7
  @licence Apache-2.0
8
8
  */