Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 | 21x | /** * @license MIT * @author IFYates <https://github.com/ifyates/pow.min.js> * @description A very small and lightweight templating framework. * @version 3.7.3 */ import e from"./pow.min.js";var t="apply";function r(e,t,n){var a=e.indexOf(".");if(a<0){if(e.endsWith("()")){var i=r(e.slice(0,-2),t,n??=t);return"function"==typeof i?i(n.$data,n):void 0}return t?.hasOwnProperty(e)?t[e]:"length"==e&&"object"==typeof t?Object.keys(t).length:n?void 0:window[e]}var o=r(e.slice(0,a),t,n??=t);return r(e.slice(a+1),o,n)}function n(r){var n=e.bind(r),a=n[t];return n[t]=e=>{var t=a(e);return function(e){var t=[...e.querySelectorAll("*")].map((e=>[...e.attributes])).flat().filter((e=>e.name.startsWith("on")));for(var{ownerElement:r,name:n,value:a}of t){var i=/^(\$pow.+?)\.(.*?)\(/.exec(a);i&&(r.addEventListener(n.slice(2),(()=>window[i[1]][i[2]](r))),r.removeAttribute(n))}}(r),t},n}e._eval=r;export default{[t]:(e,r)=>n(e)[t](r),bind:n,_eval:r}; |