linktree/node_modules/preact/dist/preact.min.module.js

3 lines
11 KiB
JavaScript
Raw Normal View History

2025-06-16 13:37:14 +02:00
var n,l,t,u,e,i,r,o,f,c,s,a,h,p,y={},v=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,w=Array.isArray;function m(n,l){for(var t in l)n[t]=l[t];return n}function _(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function g(l,t,u){var e,i,r,o={};for(r in t)"key"==r?e=t[r]:"ref"==r?i=t[r]:o[r]=t[r];if(arguments.length>2&&(o.children=arguments.length>3?n.call(arguments,2):u),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===o[r]&&(o[r]=l.defaultProps[r]);return b(l,o,e,i,null)}function b(n,u,e,i,r){var o={type:n,props:u,key:e,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==r?++t:r,__i:-1,__u:0};return null==r&&null!=l.vnode&&l.vnode(o),o}function k(n){return n.children}function x(n,l){this.props=n,this.context=l}function C(n,l){if(null==l)return n.__?C(n.__,n.__i+1):null;for(var t;l<n.__k.length;l++)if(null!=(t=n.__k[l])&&null!=t.__e)return t.__e;return"function"==typeof n.type?C(n):null}function S(n){var l,t;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(t=n.__k[l])&&null!=t.__e){n.__e=n.__c.base=t.__e;break}return S(n)}}function M(n){(!n.__d&&(n.__d=!0)&&e.push(n)&&!$.__r++||i!=l.debounceRendering)&&((i=l.debounceRendering)||r)($)}function $(){for(var n,t,u,i,r,f,c,s=1;e.length;)e.length>s&&e.sort(o),n=e.shift(),s=e.length,n.__d&&(u=void 0,r=(i=(t=n).__v).__e,f=[],c=[],t.__P&&((u=m({},i)).__v=i.__v+1,l.vnode&&l.vnode(u),T(t.__P,u,i,t.__n,t.__P.namespaceURI,32&i.__u?[r]:null,f,null==r?C(i):r,!!(32&i.__u),c),u.__v=i.__v,u.__.__k[u.__i]=u,j(f,u,c),u.__e!=r&&S(u)));$.__r=0}function A(n,l,t,u,e,i,r,o,f,c,s){var a,h,p,d,w,m,_=u&&u.__k||v,g=l.length;for(f=I(t,l,_,f,g),a=0;a<g;a++)null!=(p=t.__k[a])&&(h=-1==p.__i?y:_[p.__i]||y,p.__i=a,m=T(n,p,h,e,i,r,o,f,c,s),d=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&z(h.ref,null,p),s.push(p.ref,p.__c||d,p)),null==w&&null!=d&&(w=d),4&p.__u||h.__k===p.__k?f=P(p,f,n):"function"==typeof p.type&&void 0!==m?f=m:d&&(f=d.nextSibling),p.__u&=-7);return t.__e=w,f}function I(n,l,t,u,e){var i,r,o,f,c,s=t.length,a=s,h=0;for(n.__k=new Array(e),i=0;i<e;i++)null!=(r=l[i])&&"boolean"!=typeof r&&"function"!=typeof r?(f=i+h,(r=n.__k[i]="string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?b(null,r,null,null,null):w(r)?b(k,{children:r},null,null,null):null==r.constructor&&r.__b>0?b(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r).__=n,r.__b=n.__b+1,o=null,-1!=(c=r.__i=E(r,t,f,a))&&(a--,(o=t[c])&&(o.__u|=2)),null==o||null==o.__v?(-1==c&&(e>s?h--:e<s&&h++),"function"!=typeof r.type&&(r.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,r.__u|=4))):n.__k[i]=null;if(a)for(i=0;i<s;i++)null!=(o=t[i])&&0==(2&o.__u)&&(o.__e==u&&(u=C(o)),N(o,o));return u}function P(n,l,t){var u,e;if("function"==typeof n.type){for(u=n.__k,e=0;u&&e<u.length;e++)u[e]&&(u[e].__=n,l=P(u[e],l,t));return l}n.__e!=l&&(l&&n.type&&!t.contains(l)&&(l=C(n)),t.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8==l.nodeType);return l}function E(n,l,t,u){var e,i,r=n.key,o=n.type,f=l[t];if(null===f&&null==n.key||f&&r==f.key&&o==f.type&&0==(2&f.__u))return t;if(u>(null!=f&&0==(2&f.__u)?1:0))for(e=t-1,i=t+1;e>=0||i<l.length;){if(e>=0){if((f=l[e])&&0==(2&f.__u)&&r==f.key&&o==f.type)return e;e--}if(i<l.length){if((f=l[i])&&0==(2&f.__u)&&r==f.key&&o==f.type)return i;i++}}return-1}function F(n,l,t){"-"==l[0]?n.setProperty(l,null==t?"":t):n[l]=null==t?"":"number"!=typeof t||d.test(l)?t:t+"px"}function H(n,l,t,u,e){var i,r;n:if("style"==l)if("string"==typeof t)n.style.cssText=t;else{if("string"==typeof u&&(n.style.cssText=u=""),u)for(l in u)t&&l in t||F(n.style,l,"");if(t)for(l in t)u&&t[l]==u[l]||F(n.style,l,t[l])}else if("o"==l[0]&&"n"==l[1])i=l!=(l=l.replace(f,"$1")),r=l.toLowerCase(),l=r in n||"onFocusOut"==l||"onFocusIn"==l?r.slice(2):l.slice(2),n.l||(n.l={}),n.l[l+i]=t,t?u?t.t=u.t:(t.t=c,n.addEventListener(l,i?a:s,i)):n.removeEventListener(l,i?a:s,i);else{if("http://www.w3.org/2000/svg"==e)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"
//# sourceMappingURL=preact.min.module.js.map