nanobot-voice-interface/frontend/node_modules/preact/dist/preact.js

3 lines
11 KiB
JavaScript
Raw Normal View History

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