@divkitframework/divkit 31.1.0 → 31.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/client-devtool.js +1 -1
- package/dist/browser/client-hydratable.js +12 -12
- package/dist/browser/client-hydratable.js.map +1 -1
- package/dist/browser/client.js +1 -1
- package/dist/client-devtool.js +1 -1
- package/dist/client-hydratable.js +13 -13
- package/dist/client-hydratable.js.map +1 -1
- package/dist/client.js +1 -1
- package/dist/esm/client-devtool.mjs +1 -1
- package/dist/esm/client-hydratable.mjs +12176 -10838
- package/dist/esm/client-hydratable.mjs.map +1 -1
- package/dist/esm/client.mjs +1 -1
- package/dist/esm/server.mjs +1 -1
- package/dist/server.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
DivKit v31.
|
|
2
|
+
DivKit v31.2.0
|
|
3
3
|
https://github.com/divkit/divkit
|
|
4
4
|
@licence Apache-2.0
|
|
5
5
|
*/(function(){"use strict";var hb=Object.defineProperty;var gb=(mi,Mn,ri)=>Mn in mi?hb(mi,Mn,{enumerable:!0,configurable:!0,writable:!0,value:ri}):mi[Mn]=ri;var gr=(mi,Mn,ri)=>gb(mi,typeof Mn!="symbol"?Mn+"":Mn,ri);function mi(e){return BigInt(e)}const Mn=mi("9223372036854775807"),ri=mi("-9223372036854775808");function xr(e){const r=mi(e);if(r>Mn||r<ri)throw new Error("Integer overflow.");return r}const Li=xr(0);function Hl(e){let r=e;return r<0&&(r=-r),r}function Wl(e){let r=0;return e>0?r=1:e<0&&(r=-1),xr(r)}function Qf(e,r){return r&&r[3]&&r[7]?{type:"ConditionalExpression",test:e,consequent:r[3],alternate:r[7]}:e}function xf(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 $f(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 ed(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 td(e){try{return xr(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 rd(e,r){function t(){this.constructor=e}t.prototype=r.prototype,e.prototype=new t}function to(e,r,t,n){var i=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(i,to.prototype),i.expected=r,i.found=t,i.location=n,i.name="SyntaxError",i}rd(to,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))}to.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+=`
|