Notes/static/js/lib/preact/preact.umd.js

3 lines
11 KiB
JavaScript
Raw Normal View History

2023-06-15 07:24:23 +02:00
!function(n,l){"object"==typeof exports&&"undefined"!=typeof module?l(exports):"function"==typeof define&&define.amd?define(["exports"],l):l((n||self).preact={})}(this,function(n){var l,u,i,t,o,f,r,e,c,s={},a=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(n,l){for(var u in l)n[u]=l[u];return n}function v(n){var l=n.parentNode;l&&l.removeChild(n)}function d(n,u,i){var t,o,f,r={};for(f in u)"key"==f?t=u[f]:"ref"==f?o=u[f]:r[f]=u[f];if(arguments.length>2&&(r.children=arguments.length>3?l.call(arguments,2):i),"function"==typeof n&&null!=n.defaultProps)for(f in n.defaultProps)void 0===r[f]&&(r[f]=n.defaultProps[f]);return p(n,r,t,o,null)}function p(n,l,t,o,f){var r={type:n,props:l,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==f?++i:f};return null==f&&null!=u.vnode&&u.vnode(r),r}function _(n){return n.children}function b(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||g(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||g(n,o,l[o],u[o],i)}function k(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||y.test(l)?u:u+"px"}function g(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||k(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||k(n.style,l,u[l])}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?w:m,o):n.removeEventListener(l,o?w:m,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&-1==l.indexOf("-")?n.removeAttribute(l):n.setAttribute(l,u))}}function m(n){o=!0;try{return this.l[n.type+!1](u.event?u.event(n):n)}finally{o=!1}}function w(n){o=!0;try{return this.l[n.type+!0](u.event?u.event(n):n)}finally{o=!1}}function x(n,l){this.props=n,this.context=l}function A(n,l){if(null==l)return n.__?A(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?A(n):null}function T(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return T(n)}}function P(n){o?setTimeout(n):e(n)}function C(n){(!n.__d&&(n.__d=!0)&&f.push(n)&&!$.__r++||r!==u.debounceRendering)&&((r=u.debounceRendering)||P)($)}function $(){var n,l,u,i,t,o,r,e;for(f.sort(function(n,l){return n.__v.__b-l.__v.__b});n=f.shift();)n.__d&&(l=f.length,i=void 0,t=void 0,r=(o=(u=n).__v).__e,(e=u.__P)&&(i=[],(t=h({},o)).__v=o.__v+1,L(e,o,t,u.__n,void 0!==e.ownerSVGElement,null!=o.__h?[r]:null,i,null==r?A(o):r,o.__h),M(i,o),o.__e!=r&&T(o)),f.length>l&&f.sort(function(n,l){return n.__v.__b-l.__v.__b}));$.__r=0}function j(n,l,u,i,t,o,f,r,e,c){var y,h,v,d,b,k,g,m=i&&i.__k||a,w=m.length;for(u.__k=[],y=0;y<l.length;y++)if(null!=(d=u.__k[y]=null==(d=l[y])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?p(null,d,null,null,d):Array.isArray(d)?p(_,{children:d},null,null,null):d.__b>0?p(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)){if(d.__=u,d.__b=u.__b+1,null===(v=m[y])||v&&d.key==v.key&&d.type===v.type)m[y]=void 0;else for(h=0;h<w;h++){if((v=m[h])&&d.key==v.key&&d.type===v.type){m[h]=void 0;break}v=null}L(n,d,v=v||s,t,o,f,r,e,c),b=d.__e,(h=d.ref)&&v.ref!=h&&(g||(g=[]),v.ref&&g.push(v.ref,null,d),g.push(h,d.__c||b,d)),null!=b?(null==k&&(k=b),"function"==typeof d.type&&d.__k===v.__k?d.__d=e=H(d,e,n):e=I(n,d,v,m,b,e),"function"==typeof u.type&&(u.__d=e)):e&&v.__e==e&&e.parentNode!=n&&(e=A(v))}for(u.__e=k,y=w;y--;)null!=m[y]&&("function"==typeof u.type&&null!=m[y].__e&&m[y].__e==u.__d&&(u.__d=z(i).nextSibling),S(m[y],m[y]));if(g)for(y=0;y
//# sourceMappingURL=preact.umd.js.map