You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3 lines
10 KiB
3 lines
10 KiB
|
2 years ago
|
!function(n){"function"==typeof define&&define.amd?define(n):n()}(function(){var n,l,u,t,i,o,e,r,f,c,s={},a=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,v=Array.isArray;function d(n,l){for(var u in l)n[u]=l[u];return n}function p(n){var l=n.parentNode;l&&l.removeChild(n)}function y(l,u,t){var i,o,e,r={};for(e in u)"key"==e?i=u[e]:"ref"==e?o=u[e]:r[e]=u[e];if(arguments.length>2&&(r.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(e in l.defaultProps)void 0===r[e]&&(r[e]=l.defaultProps[e]);return _(l,r,i,o,null)}function _(n,t,i,o,e){var r={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==e?++u:e};return null==e&&null!=l.vnode&&l.vnode(r),r}function m(n){return n.children}function k(n,l){this.props=n,this.context=l}function b(n,l){if(null==l)return n.__?b(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?b(n):null}function g(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 g(n)}}function w(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!C.__r++||o!==l.debounceRendering)&&((o=l.debounceRendering)||e)(C)}function C(){var n,l,u,t,o,e,f,c;for(i.sort(r);n=i.shift();)n.__d&&(l=i.length,t=void 0,o=void 0,f=(e=(u=n).__v).__e,(c=u.__P)&&(t=[],(o=d({},e)).__v=e.__v+1,j(c,e,o,u.__n,void 0!==c.ownerSVGElement,null!=e.__h?[f]:null,t,null==f?b(e):f,e.__h),z(t,e),e.__e!=f&&g(e)),i.length>l&&i.sort(r));C.__r=0}function x(n,l,u,t,i,o,e,r,f,c){var h,d,p,y,k,g,w,C=t&&t.__k||a,x=C.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(y=u.__k[h]=null==(y=l[h])||"boolean"==typeof y||"function"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?_(null,y,null,null,y):v(y)?_(m,{children:y},null,null,null):y.__b>0?_(y.type,y.props,y.key,y.ref?y.ref:null,y.__v):y)){if(y.__=u,y.__b=u.__b+1,null===(p=C[h])||p&&y.key==p.key&&y.type===p.type)C[h]=void 0;else for(d=0;d<x;d++){if((p=C[d])&&y.key==p.key&&y.type===p.type){C[d]=void 0;break}p=null}j(n,y,p=p||s,i,o,e,r,f,c),k=y.__e,(d=y.ref)&&p.ref!=d&&(w||(w=[]),p.ref&&w.push(p.ref,null,y),w.push(d,y.__c||k,y)),null!=k?(null==g&&(g=k),"function"==typeof y.type&&y.__k===p.__k?y.__d=f=P(y,f,n):f=A(n,y,p,C,k,f),"function"==typeof u.type&&(u.__d=f)):f&&p.__e==f&&f.parentNode!=n&&(f=b(p))}for(u.__e=g,h=x;h--;)null!=C[h]&&("function"==typeof u.type&&null!=C[h].__e&&C[h].__e==u.__d&&(u.__d=E(t).nextSibling),M(C[h],C[h]));if(w)for(h=0;h<w.length;h++)L(w[h],w[++h],w[++h])}function P(n,l,u){for(var t,i=n.__k,o=0;i&&o<i.length;o++)(t=i[o])&&(t.__=n,l="function"==typeof t.type?P(t,l,u):A(u,t,t,i,t.__e,l));return l}function A(n,l,u,t,i,o){var e,r,f;if(void 0!==l.__d)e=l.__d,l.__d=void 0;else if(null==u||i!=o||null==i.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(i),e=null;else{for(r=o,f=0;(r=r.nextSibling)&&f<t.length;f+=1)if(r==i)break n;n.insertBefore(i,o),e=o}return void 0!==e?e:i.nextSibling}function E(n){var l,u,t;if(null==n.type||"string"==typeof n.type)return n.__e;if(n.__k)for(l=n.__k.length-1;l>=0;l--)if((u=n.__k[l])&&(t=E(u)))return t;return null}function S(n,l,u,t,i){var o;for(o in u)"children"===o||"key"===o||o in l||H(n,o,null,u[o],t);for(o in l)i&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H(n,o,l[o],u[o],t)}function $(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||h.test(l)?u:u+"px"}function H(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||$(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||$(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?t||n.addEventListener(l,o?T:I,o):n.removeEventListener(l,o?T:I,o);else if("dangerouslySetInnerHTML"!==l){if(
|
||
|
|
//# sourceMappingURL=preact.min.umd.js.map
|