!function(n){"function"==typeof define&&define.amd?define(n):n()}(function(){var n,l,t,u,e,i,r,o,f,c,s,a,h,p,y="http://www.w3.org/2000/svg",v="http://www.w3.org/1999/xhtml",d=void 0,_={},m=[],w=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function b(n,l){for(var t in l)n[t]=l[t];return n}function k(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function C(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)o[r]===d&&(o[r]=l.defaultProps[r]);return x(l,o,e,i,null)}function x(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:d,__v:null==r?++t:r,__i:-1,__u:0};return null==r&&null!=l.vnode&&l.vnode(o),o}function S(n){return n.children}function M(n,l){this.props=n,this.context=l}function P(n,l){if(null==l)return n.__?P(n.__,n.__i+1):null;for(var t;lt&&e.sort(o));A.__r=0}function E(n,l,t,u,e,i,r,o,f,c,s){var a,h,p,y,v,w,g=u&&u.__k||m,b=l.length;for(f=F(t,l,g,f),a=0;a0?x(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=n,i.__b=n.__b+1,r=null,-1!==(f=i.__i=L(i,t,o,a))&&(a--,(r=t[f])&&(r.__u|=2)),null==r||null===r.__v?(-1==f&&h--,"function"!=typeof i.type&&(i.__u|=4)):f!==o&&(f==o-1?h--:f==o+1?h++:(f>o?h--:h++,i.__u|=4))):i=n.__k[e]=null;if(a)for(e=0;e(null!=f&&0==(2&f.__u)?1:0))for(;r>=0||o=0){if((f=l[r])&&0==(2&f.__u)&&e==f.key&&i===f.type)return r;r--}if(o2&&(f.children=arguments.length>3?n.call(arguments,2):u),x(l.type,f,e||l.key,i||l.ref,null)},createContext:function(n,l){var t={__c:l="__cC"+h++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var t,u;return this.getChildContext||(t=new Set,(u={})[l]=this,this.getChildContext=function(){return u},this.componentWillUnmount=function(){t=null},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&t.forEach(function(n){n.__e=!0,I(n)})},this.sub=function(n){t.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){t&&t.delete(n),l&&l.call(n)}}),n.children}};return t.Provider.__=t.Consumer.contextType=t},toChildArray:function n(l,t){return t=t||[],null==l||"boolean"==typeof l||(g(l)?l.some(function(l){n(l,t)}):t.push(l)),t},options:l},typeof module<"u"?module.exports=p:self.preact=p}); //# sourceMappingURL=preact.min.umd.js.map