Comparing version 10.26.0 to 10.26.1
@@ -12,2 +12,11 @@ /* eslint-disable */ | ||
var renderToReadableStream; | ||
try { | ||
const mod = require('preact-render-to-string/stream'); | ||
renderToReadableStream = mod.default || mod.renderToReadableStream || mod; | ||
} catch (e) { | ||
throw Error( | ||
'renderToReadableStream() error: update "preact-render-to-string" dependency to at least 6.5.0.' | ||
); | ||
} | ||
var renderToPipeableStream; | ||
@@ -26,3 +35,4 @@ try { | ||
renderToStaticMarkup: renderToString, | ||
renderToPipeableStream: renderToPipeableStream | ||
renderToPipeableStream: renderToPipeableStream, | ||
renderToReadableStream: renderToReadableStream | ||
}; |
@@ -1,2 +0,2 @@ | ||
var e,n=require("preact");null!=(e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0)&&e.__PREACT_DEVTOOLS__&&e.__PREACT_DEVTOOLS__.attachPreact("10.26.0",n.options,{Fragment:n.Fragment,Component:n.Component}),exports.addHookName=function(e,o){return n.options.__a&&n.options.__a(o),e}; | ||
var e,n=require("preact");null!=(e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0)&&e.__PREACT_DEVTOOLS__&&e.__PREACT_DEVTOOLS__.attachPreact("10.26.1",n.options,{Fragment:n.Fragment,Component:n.Component}),exports.addHookName=function(e,o){return n.options.__a&&n.options.__a(o),e}; | ||
//# sourceMappingURL=devtools.js.map |
@@ -1,2 +0,2 @@ | ||
import{options as n,Fragment as o,Component as e}from"preact";var i;function t(o,e){return n.__a&&n.__a(e),o}null!=(i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0)&&i.__PREACT_DEVTOOLS__&&i.__PREACT_DEVTOOLS__.attachPreact("10.26.0",n,{Fragment:o,Component:e});export{t as addHookName}; | ||
import{options as n,Fragment as o,Component as e}from"preact";var i;function t(o,e){return n.__a&&n.__a(e),o}null!=(i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0)&&i.__PREACT_DEVTOOLS__&&i.__PREACT_DEVTOOLS__.attachPreact("10.26.1",n,{Fragment:o,Component:e});export{t as addHookName}; | ||
//# sourceMappingURL=devtools.module.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("preact")):"function"==typeof define&&define.amd?define(["exports","preact"],n):n((e||self).preactDevtools={},e.preact)}(this,function(e,n){var o;null!=(o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0)&&o.__PREACT_DEVTOOLS__&&o.__PREACT_DEVTOOLS__.attachPreact("10.26.0",n.options,{Fragment:n.Fragment,Component:n.Component}),e.addHookName=function(e,o){return n.options.__a&&n.options.__a(o),e}}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("preact")):"function"==typeof define&&define.amd?define(["exports","preact"],n):n((e||self).preactDevtools={},e.preact)}(this,function(e,n){var o;null!=(o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0)&&o.__PREACT_DEVTOOLS__&&o.__PREACT_DEVTOOLS__.attachPreact("10.26.1",n.options,{Fragment:n.Fragment,Component:n.Component}),e.addHookName=function(e,o){return n.options.__a&&n.options.__a(o),e}}); | ||
//# sourceMappingURL=devtools.umd.js.map |
@@ -16,3 +16,3 @@ import { Component, Fragment, options } from 'preact'; | ||
) { | ||
globalVar.__PREACT_DEVTOOLS__.attachPreact('10.26.0', options, { | ||
globalVar.__PREACT_DEVTOOLS__.attachPreact('10.26.1', options, { | ||
Fragment, | ||
@@ -19,0 +19,0 @@ Component |
@@ -1,2 +0,2 @@ | ||
var n,l,t,u,i,r,o,e,f,c,s,a,h,p={},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 i,r,o,e={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=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,i,r,null)}function x(n,u,i,r,o){var e={type:n,props:u,key:i,ref:r,__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){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)&&i.push(n)&&!$.__r++||r!==l.debounceRendering)&&((r=l.debounceRendering)||o)($)}function $(){for(var n,t,u,r,o,f,c,s=1;i.length;)i.length>s&&i.sort(e),n=i.shift(),s=i.length,n.__d&&(u=void 0,o=(r=(t=n).__v).__e,f=[],c=[],t.__P&&((u=w({},r)).__v=r.__v+1,l.vnode&&l.vnode(u),F(t.__P,u,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,f,null==o?k(r):o,!!(32&r.__u),c),u.__v=r.__v,u.__.__k[u.__i]=u,O(f,u,c),u.__e!=o&&S(u)));$.__r=0}function C(n,l,t,u,i,r,o,e,f,c,s){var a,h,y,d,w,g,_=u&&u.__k||v,x=l.length;for(f=I(t,l,_,f,x),a=0;a<x;a++)null!=(y=t.__k[a])&&(h=-1===y.__i?p:_[y.__i]||p,y.__i=a,g=F(n,y,h,i,r,o,e,f,c,s),d=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&z(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=P(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 I(n,l,t,u,i){var r,o,e,f,c,s=t.length,a=s,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&"boolean"!=typeof o&&"function"!=typeof o?(f=r+h,(o=n.__k[r]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?x(null,o,null,null,null):d(o)?x(m,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?x(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=n,o.__b=n.__b+1,e=null,-1!==(c=o.__i=A(o,t,f,a))&&(a--,(e=t[c])&&(e.__u|=2)),null==e||null===e.__v?(-1==c&&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[r]=null;if(a)for(r=0;r<s;r++)null!=(e=t[r])&&0==(2&e.__u)&&(e.__e==u&&(u=k(e)),N(e,e));return u}function P(n,l,t){var u,i;if("function"==typeof n.type){for(u=n.__k,i=0;u&&i<u.length;i++)u[i]&&(u[i].__=n,l=P(u[i],l,t));return l}n.__e!=l&&(l&&n.type&&!t.contains(l)&&(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 A(n,l,t,u){var i,r,o=n.key,e=n.type,f=l[t];if(null===f||f&&o==f.key&&e===f.type&&0==(2&f.__u))return t;if(u>(null!=f&&0==(2&f.__u)?1:0))for(i=t-1,r=t+1;i>=0||r<l.length;){if(i>=0){if((f=l[i])&&0==(2&f.__u)&&o==f.key&&e===f.type)return i;i--}if(r<l.length){if((f=l[r])&&0==(2&f.__u)&&o==f.key&&e===f.type)return r;r++}}return-1}function H(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 L(n,l,t,u,i){var 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||H(n.style,l,"");if(t)for(l in t)u&&t[l]===u[l]||H(n.style,l,t[l])}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(f,"$1")),l=l.toLowerCase()in n||"onFocusOut"==l||"onFocusIn"==l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=t,t?u?t.t=u.t:(t.t=c,n.addEventListener(l,r?a:s,r)):n.removeEventListener(l,r?a:s,r);else{if("http://www.w3.org/2000/svg"==i)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"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==t?"":t;break n}catch(n){}"function"==typeof t||(null==t||!1===t&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==t?"":t))}}function T(n){return function(t){if(this.l){var u=this.l[t.type+n];if(null==t.u)t.u=c++;else if(t.u<u.t)return;return u(l.event?l.event(t):t)}}}function F(n,t,u,i,r,o,e,f,c,s){var a,h,p,v,y,_,x,k,S,M,$,I,P,A,H,L,T,F=t.type;if(void 0!==t.constructor)return null;128&u.__u&&(c=!!(32&u.__u),o=[f=t.__e=u.__e]),(a=l.__b)&&a(t);n:if("function"==typeof F)try{if(k=t.props,S="prototype"in F&&F.prototype.render,M=(a=F.contextType)&&i[a.__c],$=a?M?M.props.value:a.__:i,u.__c?x=(h=t.__c=u.__c).__=h.__E:(S?t.__c=h=new F(k,$):(t.__c=h=new b(k,$),h.constructor=F,h.render=V),M&&M.sub(h),h.props=k,h.state||(h.state={}),h.context=$,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),S&&null==h.__s&&(h.__s=h.state),S&&null!=F.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=w({},h.__s)),w(h.__s,F.getDerivedStateFromProps(k,h.__s))),v=h.props,y=h.state,h.__v=t,p)S&&null==F.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),S&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(S&&null==F.getDerivedStateFromProps&&k!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(k,$),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(k,h.__s,$)||t.__v==u.__v)){for(t.__v!=u.__v&&(h.props=k,h.state=h.__s,h.__d=!1),t.__e=u.__e,t.__k=u.__k,t.__k.some(function(n){n&&(n.__=t)}),I=0;I<h._sb.length;I++)h.__h.push(h._sb[I]);h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(k,h.__s,$),S&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,_)})}if(h.context=$,h.props=k,h.__P=n,h.__e=!1,P=l.__r,A=0,S){for(h.state=h.__s,h.__d=!1,P&&P(t),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[]}else do{h.__d=!1,P&&P(t),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++A<25);h.state=h.__s,null!=h.getChildContext&&(i=w(w({},i),h.getChildContext())),S&&!p&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(v,y)),f=C(n,d(L=null!=a&&a.type===m&&null==a.key?a.props.children:a)?L:[L],t,u,i,r,o,e,f,c,s),h.base=t.__e,t.__u&=-161,h.__h.length&&e.push(h),x&&(h.__E=h.__=null)}catch(n){if(t.__v=null,c||null!=o)if(n.then){for(t.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;o[o.indexOf(f)]=null,t.__e=f}else for(T=o.length;T--;)g(o[T]);else t.__e=u.__e,t.__k=u.__k;l.__e(n,t,u)}else null==o&&t.__v==u.__v?(t.__k=u.__k,t.__e=u.__e):f=t.__e=j(u.__e,t,u,i,r,o,e,c,s);return(a=l.diffed)&&a(t),128&t.__u?void 0:f}function O(n,t,u){for(var i=0;i<u.length;i++)z(u[i],u[++i],u[++i]);l.__c&&l.__c(t,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(n){n.call(t)})}catch(n){l.__e(n,t.__v)}})}function j(t,u,i,r,o,e,f,c,s){var a,h,v,y,w,_,x,m=i.props,b=u.props,S=u.type;if("svg"==S?o="http://www.w3.org/2000/svg":"math"==S?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((w=e[a])&&"setAttribute"in w==!!S&&(S?w.localName==S:3==w.nodeType)){t=w,e[a]=null;break}if(null==t){if(null==S)return document.createTextNode(b);t=document.createElementNS(o,S,b.is&&b),c&&(l.__m&&l.__m(u,e),c=!1),e=null}if(null===S)m===b||c&&t.data===b||(t.data=b);else{if(e=e&&n.call(t.childNodes),m=i.props||p,!c&&null!=e)for(m={},a=0;a<t.attributes.length;a++)m[(w=t.attributes[a]).name]=w.value;for(a in m)if(w=m[a],"children"==a);else if("dangerouslySetInnerHTML"==a)v=w;else if(!(a in b)){if("value"==a&&"defaultValue"in b||"checked"==a&&"defaultChecked"in b)continue;L(t,a,null,w,o)}for(a in b)w=b[a],"children"==a?y=w:"dangerouslySetInnerHTML"==a?h=w:"value"==a?_=w:"checked"==a?x=w:c&&"function"!=typeof w||m[a]===w||L(t,a,w,m[a],o);if(h)c||v&&(h.__html===v.__html||h.__html===t.innerHTML)||(t.innerHTML=h.__html),u.__k=[];else if(v&&(t.innerHTML=""),C("template"===u.type?t.content:t,d(y)?y:[y],u,i,r,"foreignObject"==S?"http://www.w3.org/1999/xhtml":o,e,f,e?e[0]:i.__k&&k(i,0),c,s),null!=e)for(a=e.length;a--;)g(e[a]);c||(a="value","progress"==S&&null==_?t.removeAttribute("value"):void 0!==_&&(_!==t[a]||"progress"==S&&!_||"option"==S&&_!==m[a])&&L(t,a,_,m[a],o),a="checked",void 0!==x&&x!==t[a]&&L(t,a,x,m[a],o))}return t}function z(n,t,u){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==t||(n.__u=n(t))}else n.current=t}catch(n){l.__e(n,u)}}function N(n,t,u){var i,r;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||z(i,null,t)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,t)}i.base=i.__P=null}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&N(i[r],t,u||"function"!=typeof n.type);u||g(n.__e),n.__c=n.__=n.__e=void 0}function V(n,l,t){return this.constructor(n,t)}function q(t,u,i){var r,o,e,f;u==document&&(u=document.documentElement),l.__&&l.__(t,u),o=(r="function"==typeof i)?null:i&&i.__k||u.__k,e=[],f=[],F(u,t=(!r&&i||u).__k=_(m,null,[t]),o||p,p,u.namespaceURI,!r&&i?[i]:o?null:u.firstChild?n.call(u.childNodes):null,e,!r&&i?i:o?o.__e:u.firstChild,r,f),O(e,t,f)}n=v.slice,l={__e:function(n,l,t,u){for(var i,r,o;l=l.__;)if((i=l.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,u||{}),o=i.__d),o)return i.__E=i}catch(l){n=l}throw n}},t=0,u=function(n){return null!=n&&null==n.constructor},b.prototype.setState=function(n,l){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=w({},this.state),"function"==typeof n&&(n=n(w({},t),this.props)),n&&w(t,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},b.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},b.prototype.render=m,i=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e=function(n,l){return n.__v.__b-l.__v.__b},$.__r=0,f=/(PointerCapture)$|Capture$/i,c=0,s=T(!1),a=T(!0),h=0,exports.Component=b,exports.Fragment=m,exports.cloneElement=function(l,t,u){var i,r,o,e,f=w({},l.props);for(o in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),t)"key"==o?i=t[o]:"ref"==o?r=t[o]:f[o]=void 0===t[o]&&void 0!==e?e[o]:t[o];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):u),x(l.type,f,i||l.key,r||l.ref,null)},exports.createContext=function(n){function l(n){var t,u;return this.getChildContext||(t=new Set,(u={})[l.__c]=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,M(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 l.__c="__cC"+h++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l},exports.createElement=_,exports.createRef=function(){return{current:null}},exports.h=_,exports.hydrate=function n(l,t){q(l,t,n)},exports.isValidElement=u,exports.options=l,exports.render=q,exports.toChildArray=function n(l,t){return t=t||[],null==l||"boolean"==typeof l||(d(l)?l.some(function(l){n(l,t)}):t.push(l)),t}; | ||
var n,l,t,u,i,r,o,e,f,c,s,a,h,p={},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 i,r,o,e={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=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,i,r,null)}function x(n,u,i,r,o){var e={type:n,props:u,key:i,ref:r,__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){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)&&i.push(n)&&!$.__r++||r!==l.debounceRendering)&&((r=l.debounceRendering)||o)($)}function $(){for(var n,t,u,r,o,f,c,s=1;i.length;)i.length>s&&i.sort(e),n=i.shift(),s=i.length,n.__d&&(u=void 0,o=(r=(t=n).__v).__e,f=[],c=[],t.__P&&((u=w({},r)).__v=r.__v+1,l.vnode&&l.vnode(u),F(t.__P,u,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,f,null==o?k(r):o,!!(32&r.__u),c),u.__v=r.__v,u.__.__k[u.__i]=u,O(f,u,c),u.__e!=o&&S(u)));$.__r=0}function C(n,l,t,u,i,r,o,e,f,c,s){var a,h,y,d,w,g,_=u&&u.__k||v,x=l.length;for(f=I(t,l,_,f,x),a=0;a<x;a++)null!=(y=t.__k[a])&&(h=-1===y.__i?p:_[y.__i]||p,y.__i=a,g=F(n,y,h,i,r,o,e,f,c,s),d=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&z(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=P(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 I(n,l,t,u,i){var r,o,e,f,c,s=t.length,a=s,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&"boolean"!=typeof o&&"function"!=typeof o?(f=r+h,(o=n.__k[r]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?x(null,o,null,null,null):d(o)?x(m,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?x(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=n,o.__b=n.__b+1,e=null,-1!==(c=o.__i=A(o,t,f,a))&&(a--,(e=t[c])&&(e.__u|=2)),null==e||null===e.__v?(-1==c&&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[r]=null;if(a)for(r=0;r<s;r++)null!=(e=t[r])&&0==(2&e.__u)&&(e.__e==u&&(u=k(e)),N(e,e));return u}function P(n,l,t){var u,i;if("function"==typeof n.type){for(u=n.__k,i=0;u&&i<u.length;i++)u[i]&&(u[i].__=n,l=P(u[i],l,t));return l}n.__e!=l&&(l&&n.type&&!t.contains(l)&&(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 A(n,l,t,u){var i,r,o=n.key,e=n.type,f=l[t];if(null===f||f&&o==f.key&&e===f.type&&0==(2&f.__u))return t;if(u>(null!=f&&0==(2&f.__u)?1:0))for(i=t-1,r=t+1;i>=0||r<l.length;){if(i>=0){if((f=l[i])&&0==(2&f.__u)&&o==f.key&&e===f.type)return i;i--}if(r<l.length){if((f=l[r])&&0==(2&f.__u)&&o==f.key&&e===f.type)return r;r++}}return-1}function H(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 L(n,l,t,u,i){var 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||H(n.style,l,"");if(t)for(l in t)u&&t[l]===u[l]||H(n.style,l,t[l])}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(f,"$1")),l=l.toLowerCase()in n||"onFocusOut"==l||"onFocusIn"==l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=t,t?u?t.t=u.t:(t.t=c,n.addEventListener(l,r?a:s,r)):n.removeEventListener(l,r?a:s,r);else{if("http://www.w3.org/2000/svg"==i)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"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==t?"":t;break n}catch(n){}"function"==typeof t||(null==t||!1===t&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==t?"":t))}}function T(n){return function(t){if(this.l){var u=this.l[t.type+n];if(null==t.u)t.u=c++;else if(t.u<u.t)return;return u(l.event?l.event(t):t)}}}function F(n,t,u,i,r,o,e,f,c,s){var a,h,p,v,y,_,x,k,S,M,$,I,P,A,H,L,T,F,O=t.type;if(void 0!==t.constructor)return null;128&u.__u&&(c=!!(32&u.__u),o=[f=t.__e=u.__e]),(a=l.__b)&&a(t);n:if("function"==typeof O)try{if(k=t.props,S="prototype"in O&&O.prototype.render,M=(a=O.contextType)&&i[a.__c],$=a?M?M.props.value:a.__:i,u.__c?x=(h=t.__c=u.__c).__=h.__E:(S?t.__c=h=new O(k,$):(t.__c=h=new b(k,$),h.constructor=O,h.render=V),M&&M.sub(h),h.props=k,h.state||(h.state={}),h.context=$,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),S&&null==h.__s&&(h.__s=h.state),S&&null!=O.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=w({},h.__s)),w(h.__s,O.getDerivedStateFromProps(k,h.__s))),v=h.props,y=h.state,h.__v=t,p)S&&null==O.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),S&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(S&&null==O.getDerivedStateFromProps&&k!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(k,$),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(k,h.__s,$)||t.__v==u.__v)){for(t.__v!=u.__v&&(h.props=k,h.state=h.__s,h.__d=!1),t.__e=u.__e,t.__k=u.__k,t.__k.some(function(n){n&&(n.__=t)}),I=0;I<h._sb.length;I++)h.__h.push(h._sb[I]);h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(k,h.__s,$),S&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,_)})}if(h.context=$,h.props=k,h.__P=n,h.__e=!1,P=l.__r,A=0,S){for(h.state=h.__s,h.__d=!1,P&&P(t),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[]}else do{h.__d=!1,P&&P(t),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++A<25);h.state=h.__s,null!=h.getChildContext&&(i=w(w({},i),h.getChildContext())),S&&!p&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(v,y)),T=(L=null!=a&&a.type===m&&null==a.key)?a.props.children:a,L&&(a.props.children=null),f=C(n,d(T)?T:[T],t,u,i,r,o,e,f,c,s),h.base=t.__e,t.__u&=-161,h.__h.length&&e.push(h),x&&(h.__E=h.__=null)}catch(n){if(t.__v=null,c||null!=o)if(n.then){for(t.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;o[o.indexOf(f)]=null,t.__e=f}else for(F=o.length;F--;)g(o[F]);else t.__e=u.__e,t.__k=u.__k;l.__e(n,t,u)}else null==o&&t.__v==u.__v?(t.__k=u.__k,t.__e=u.__e):f=t.__e=j(u.__e,t,u,i,r,o,e,c,s);return(a=l.diffed)&&a(t),128&t.__u?void 0:f}function O(n,t,u){for(var i=0;i<u.length;i++)z(u[i],u[++i],u[++i]);l.__c&&l.__c(t,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(n){n.call(t)})}catch(n){l.__e(n,t.__v)}})}function j(t,u,i,r,o,e,f,c,s){var a,h,v,y,w,_,x,m=i.props,b=u.props,S=u.type;if("svg"==S?o="http://www.w3.org/2000/svg":"math"==S?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((w=e[a])&&"setAttribute"in w==!!S&&(S?w.localName==S:3==w.nodeType)){t=w,e[a]=null;break}if(null==t){if(null==S)return document.createTextNode(b);t=document.createElementNS(o,S,b.is&&b),c&&(l.__m&&l.__m(u,e),c=!1),e=null}if(null===S)m===b||c&&t.data===b||(t.data=b);else{if(e=e&&n.call(t.childNodes),m=i.props||p,!c&&null!=e)for(m={},a=0;a<t.attributes.length;a++)m[(w=t.attributes[a]).name]=w.value;for(a in m)if(w=m[a],"children"==a);else if("dangerouslySetInnerHTML"==a)v=w;else if(!(a in b)){if("value"==a&&"defaultValue"in b||"checked"==a&&"defaultChecked"in b)continue;L(t,a,null,w,o)}for(a in b)w=b[a],"children"==a?y=w:"dangerouslySetInnerHTML"==a?h=w:"value"==a?_=w:"checked"==a?x=w:c&&"function"!=typeof w||m[a]===w||L(t,a,w,m[a],o);if(h)c||v&&(h.__html===v.__html||h.__html===t.innerHTML)||(t.innerHTML=h.__html),u.__k=[];else if(v&&(t.innerHTML=""),C("template"===u.type?t.content:t,d(y)?y:[y],u,i,r,"foreignObject"==S?"http://www.w3.org/1999/xhtml":o,e,f,e?e[0]:i.__k&&k(i,0),c,s),null!=e)for(a=e.length;a--;)g(e[a]);c||(a="value","progress"==S&&null==_?t.removeAttribute("value"):void 0!==_&&(_!==t[a]||"progress"==S&&!_||"option"==S&&_!==m[a])&&L(t,a,_,m[a],o),a="checked",void 0!==x&&x!==t[a]&&L(t,a,x,m[a],o))}return t}function z(n,t,u){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==t||(n.__u=n(t))}else n.current=t}catch(n){l.__e(n,u)}}function N(n,t,u){var i,r;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||z(i,null,t)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,t)}i.base=i.__P=null}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&N(i[r],t,u||"function"!=typeof n.type);u||g(n.__e),n.__c=n.__=n.__e=void 0}function V(n,l,t){return this.constructor(n,t)}function q(t,u,i){var r,o,e,f;u==document&&(u=document.documentElement),l.__&&l.__(t,u),o=(r="function"==typeof i)?null:i&&i.__k||u.__k,e=[],f=[],F(u,t=(!r&&i||u).__k=_(m,null,[t]),o||p,p,u.namespaceURI,!r&&i?[i]:o?null:u.firstChild?n.call(u.childNodes):null,e,!r&&i?i:o?o.__e:u.firstChild,r,f),O(e,t,f)}n=v.slice,l={__e:function(n,l,t,u){for(var i,r,o;l=l.__;)if((i=l.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,u||{}),o=i.__d),o)return i.__E=i}catch(l){n=l}throw n}},t=0,u=function(n){return null!=n&&null==n.constructor},b.prototype.setState=function(n,l){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=w({},this.state),"function"==typeof n&&(n=n(w({},t),this.props)),n&&w(t,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},b.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},b.prototype.render=m,i=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e=function(n,l){return n.__v.__b-l.__v.__b},$.__r=0,f=/(PointerCapture)$|Capture$/i,c=0,s=T(!1),a=T(!0),h=0,exports.Component=b,exports.Fragment=m,exports.cloneElement=function(l,t,u){var i,r,o,e,f=w({},l.props);for(o in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),t)"key"==o?i=t[o]:"ref"==o?r=t[o]:f[o]=void 0===t[o]&&void 0!==e?e[o]:t[o];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):u),x(l.type,f,i||l.key,r||l.ref,null)},exports.createContext=function(n){function l(n){var t,u;return this.getChildContext||(t=new Set,(u={})[l.__c]=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,M(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 l.__c="__cC"+h++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l},exports.createElement=_,exports.createRef=function(){return{current:null}},exports.h=_,exports.hydrate=function n(l,t){q(l,t,n)},exports.isValidElement=u,exports.options=l,exports.render=q,exports.toChildArray=function n(l,t){return t=t||[],null==l||"boolean"==typeof l||(d(l)?l.some(function(l){n(l,t)}):t.push(l)),t}; | ||
//# sourceMappingURL=preact.js.map |
@@ -1,2 +0,2 @@ | ||
!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,w={},_=[],m=/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 $(n,l){if(null==l)return n.__?$(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?$(n):null}function A(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 A(n)}}function I(n){(!n.__d&&(n.__d=!0)&&e.push(n)&&!P.__r++||i!==l.debounceRendering)&&((i=l.debounceRendering)||r)(P)}function P(){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=b({},i)).__v=i.__v+1,l.vnode&&l.vnode(u),j(t.__P,u,i,t.__n,t.__P.namespaceURI,32&i.__u?[r]:null,f,null==r?$(i):r,!!(32&i.__u),c),u.__v=i.__v,u.__.__k[u.__i]=u,z(f,u,c),u.__e!=r&&A(u)));P.__r=0}function E(n,l,t,u,e,i,r,o,f,c,s){var a,h,p,y,v,m,g=u&&u.__k||_,b=l.length;for(f=F(t,l,g,f,b),a=0;a<b;a++)null!=(p=t.__k[a])&&(h=-1===p.__i?w:g[p.__i]||w,p.__i=a,m=j(n,p,h,e,i,r,o,f,c,s),y=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&R(h.ref,null,p),s.push(p.ref,p.__c||y,p)),null==v&&null!=y&&(v=y),4&p.__u||h.__k===p.__k?f=H(p,f,n):"function"==typeof p.type&&m!==d?f=m:y&&(f=y.nextSibling),p.__u&=-7);return t.__e=v,f}function F(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?x(null,r,null,null,null):g(r)?x(S,{children:r},null,null,null):r.constructor===d&&r.__b>0?x(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=L(r,t,f,a))&&(a--,(o=t[c])&&(o.__u|=2)),null==o||null===o.__v?(-1==c&&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=$(o)),q(o,o));return u}function H(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=H(u[e],l,t));return l}n.__e!=l&&(l&&n.type&&!t.contains(l)&&(l=$(n)),t.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8==l.nodeType);return l}function L(n,l,t,u){var e,i,r=n.key,o=n.type,f=l[t];if(null===f||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 T(n,l,t){"-"==l[0]?n.setProperty(l,null==t?"":t):n[l]=null==t?"":"number"!=typeof t||m.test(l)?t:t+"px"}function O(n,l,t,u,e){var i;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||T(n.style,l,"");if(t)for(l in t)u&&t[l]===u[l]||T(n.style,l,t[l])}else if("o"==l[0]&&"n"==l[1])i=l!=(l=l.replace(f,"$1")),l=l.toLowerCase()in n||"onFocusOut"==l||"onFocusIn"==l?l.toLowerCase().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(e==y)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"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==t?"":t;break n}catch(n){}"function"==typeof t||(null==t||!1===t&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==t?"":t))}}function V(n){return function(t){if(this.l){var u=this.l[t.type+n];if(null==t.u)t.u=c++;else if(t.u<u.t)return;return u(l.event?l.event(t):t)}}}function j(n,t,u,e,i,r,o,f,c,s){var a,h,p,y,v,w,_,m,C,x,$,A,I,P,F,H,L,T=t.type;if(t.constructor!==d)return null;128&u.__u&&(c=!!(32&u.__u),r=[f=t.__e=u.__e]),(a=l.__b)&&a(t);n:if("function"==typeof T)try{if(m=t.props,C="prototype"in T&&T.prototype.render,x=(a=T.contextType)&&e[a.__c],$=a?x?x.props.value:a.__:e,u.__c?_=(h=t.__c=u.__c).__=h.__E:(C?t.__c=h=new T(m,$):(t.__c=h=new M(m,$),h.constructor=T,h.render=B),x&&x.sub(h),h.props=m,h.state||(h.state={}),h.context=$,h.__n=e,p=h.__d=!0,h.__h=[],h._sb=[]),C&&null==h.__s&&(h.__s=h.state),C&&null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=b({},h.__s)),b(h.__s,T.getDerivedStateFromProps(m,h.__s))),y=h.props,v=h.state,h.__v=t,p)C&&null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),C&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(C&&null==T.getDerivedStateFromProps&&m!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,$),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,$)||t.__v==u.__v)){for(t.__v!=u.__v&&(h.props=m,h.state=h.__s,h.__d=!1),t.__e=u.__e,t.__k=u.__k,t.__k.some(function(n){n&&(n.__=t)}),A=0;A<h._sb.length;A++)h.__h.push(h._sb[A]);h._sb=[],h.__h.length&&o.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,$),C&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,v,w)})}if(h.context=$,h.props=m,h.__P=n,h.__e=!1,I=l.__r,P=0,C){for(h.state=h.__s,h.__d=!1,I&&I(t),a=h.render(h.props,h.state,h.context),F=0;F<h._sb.length;F++)h.__h.push(h._sb[F]);h._sb=[]}else do{h.__d=!1,I&&I(t),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++P<25);h.state=h.__s,null!=h.getChildContext&&(e=b(b({},e),h.getChildContext())),C&&!p&&null!=h.getSnapshotBeforeUpdate&&(w=h.getSnapshotBeforeUpdate(y,v)),f=E(n,g(H=null!=a&&a.type===S&&null==a.key?a.props.children:a)?H:[H],t,u,e,i,r,o,f,c,s),h.base=t.__e,t.__u&=-161,h.__h.length&&o.push(h),_&&(h.__E=h.__=null)}catch(n){if(t.__v=null,c||null!=r)if(n.then){for(t.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;r[r.indexOf(f)]=null,t.__e=f}else for(L=r.length;L--;)k(r[L]);else t.__e=u.__e,t.__k=u.__k;l.__e(n,t,u)}else null==r&&t.__v==u.__v?(t.__k=u.__k,t.__e=u.__e):f=t.__e=N(u.__e,t,u,e,i,r,o,c,s);return(a=l.diffed)&&a(t),128&t.__u?void 0:f}function z(n,t,u){for(var e=0;e<u.length;e++)R(u[e],u[++e],u[++e]);l.__c&&l.__c(t,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(n){n.call(t)})}catch(n){l.__e(n,t.__v)}})}function N(t,u,e,i,r,o,f,c,s){var a,h,p,_,m,b,C,x=e.props,S=u.props,M=u.type;if("svg"==M?r=y:"math"==M?r="http://www.w3.org/1998/Math/MathML":r||(r=v),null!=o)for(a=0;a<o.length;a++)if((m=o[a])&&"setAttribute"in m==!!M&&(M?m.localName==M:3==m.nodeType)){t=m,o[a]=null;break}if(null==t){if(null==M)return document.createTextNode(S);t=document.createElementNS(r,M,S.is&&S),c&&(l.__m&&l.__m(u,o),c=!1),o=null}if(null===M)x===S||c&&t.data===S||(t.data=S);else{if(o=o&&n.call(t.childNodes),x=e.props||w,!c&&null!=o)for(x={},a=0;a<t.attributes.length;a++)x[(m=t.attributes[a]).name]=m.value;for(a in x)if(m=x[a],"children"==a);else if("dangerouslySetInnerHTML"==a)p=m;else if(!(a in S)){if("value"==a&&"defaultValue"in S||"checked"==a&&"defaultChecked"in S)continue;O(t,a,null,m,r)}for(a in S)m=S[a],"children"==a?_=m:"dangerouslySetInnerHTML"==a?h=m:"value"==a?b=m:"checked"==a?C=m:c&&"function"!=typeof m||x[a]===m||O(t,a,m,x[a],r);if(h)c||p&&(h.__html===p.__html||h.__html===t.innerHTML)||(t.innerHTML=h.__html),u.__k=[];else if(p&&(t.innerHTML=""),E("template"===u.type?t.content:t,g(_)?_:[_],u,e,i,"foreignObject"==M?v:r,o,f,o?o[0]:e.__k&&$(e,0),c,s),null!=o)for(a=o.length;a--;)k(o[a]);c||(a="value","progress"==M&&null==b?t.removeAttribute("value"):b!==d&&(b!==t[a]||"progress"==M&&!b||"option"==M&&b!==x[a])&&O(t,a,b,x[a],r),a="checked",C!==d&&C!==t[a]&&O(t,a,C,x[a],r))}return t}function R(n,t,u){try{if("function"==typeof n){var e="function"==typeof n.__u;e&&n.__u(),e&&null==t||(n.__u=n(t))}else n.current=t}catch(n){l.__e(n,u)}}function q(n,t,u){var e,i;if(l.unmount&&l.unmount(n),(e=n.ref)&&(e.current&&e.current!==n.__e||R(e,null,t)),null!=(e=n.__c)){if(e.componentWillUnmount)try{e.componentWillUnmount()}catch(n){l.__e(n,t)}e.base=e.__P=null}if(e=n.__k)for(i=0;i<e.length;i++)e[i]&&q(e[i],t,u||"function"!=typeof n.type);u||k(n.__e),n.__c=n.__=n.__e=d}function B(n,l,t){return this.constructor(n,t)}function D(t,u,e){var i,r,o,f;u==document&&(u=document.documentElement),l.__&&l.__(t,u),r=(i="function"==typeof e)?null:e&&e.__k||u.__k,o=[],f=[],j(u,t=(!i&&e||u).__k=C(S,null,[t]),r||w,w,u.namespaceURI,!i&&e?[e]:r?null:u.firstChild?n.call(u.childNodes):null,o,!i&&e?e:r?r.__e:u.firstChild,i,f),z(o,t,f)}n=_.slice,l={__e:function(n,l,t,u){for(var e,i,r;l=l.__;)if((e=l.__c)&&!e.__)try{if((i=e.constructor)&&null!=i.getDerivedStateFromError&&(e.setState(i.getDerivedStateFromError(n)),r=e.__d),null!=e.componentDidCatch&&(e.componentDidCatch(n,u||{}),r=e.__d),r)return e.__E=e}catch(l){n=l}throw n}},t=0,u=function(n){return null!=n&&n.constructor==d},M.prototype.setState=function(n,l){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=b({},this.state),"function"==typeof n&&(n=n(b({},t),this.props)),n&&b(t,n),null!=n&&this.__v&&(l&&this._sb.push(l),I(this))},M.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),I(this))},M.prototype.render=S,e=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,o=function(n,l){return n.__v.__b-l.__v.__b},P.__r=0,f=/(PointerCapture)$|Capture$/i,c=0,s=V(!1),a=V(!0),h=0,p={__proto__:null,render:D,hydrate:function n(l,t){D(l,t,n)},createElement:C,h:C,Fragment:S,createRef:function(){return{current:null}},isValidElement:u,Component:M,cloneElement:function(l,t,u){var e,i,r,o,f=b({},l.props);for(r in l.type&&l.type.defaultProps&&(o=l.type.defaultProps),t)"key"==r?e=t[r]:"ref"==r?i=t[r]:f[r]=t[r]===d&&o!==d?o[r]:t[r];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):u),x(l.type,f,e||l.key,i||l.ref,null)},createContext:function(n){function l(n){var t,u;return this.getChildContext||(t=new Set,(u={})[l.__c]=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 l.__c="__cC"+h++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l},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}(); | ||
!function(){var n,t,e,i,r,o,f,u,c,s,a,h,l,p,y="http://www.w3.org/2000/svg",v="http://www.w3.org/1999/xhtml",d=null,w=void 0,_={},m=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function k(n,t){for(var e in t)n[e]=t[e];return n}function C(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function x(t,e,i){var r,o,f,u={};for(f in e)"key"==f?r=e[f]:"ref"==f?o=e[f]:u[f]=e[f];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof t&&t.defaultProps!=d)for(f in t.defaultProps)u[f]===w&&(u[f]=t.defaultProps[f]);return S(t,u,r,o,d)}function S(n,i,r,o,f){var u={type:n,props:i,key:r,ref:o,__k:d,__:d,__b:0,__e:d,__c:d,constructor:w,__v:f==d?++e:f,__i:-1,__u:0};return f==d&&t.vnode!=d&&t.vnode(u),u}function M(n){return n.children}function $(n,t){this.props=n,this.context=t}function A(n,t){if(t==d)return n.__?A(n.__,n.__i+1):d;for(var e;t<n.__k.length;t++)if((e=n.__k[t])!=d&&e.__e!=d)return e.__e;return"function"==typeof n.type?A(n):d}function I(n){var t,e;if((n=n.__)!=d&&n.__c!=d){for(n.__e=n.__c.base=d,t=0;t<n.__k.length;t++)if((e=n.__k[t])!=d&&e.__e!=d){n.__e=n.__c.base=e.__e;break}return I(n)}}function P(n){(!n.__d&&(n.__d=!0)&&r.push(n)&&!E.__r++||o!==t.debounceRendering)&&((o=t.debounceRendering)||f)(E)}function E(){for(var n,e,i,o,f,c,s,a=1;r.length;)r.length>a&&r.sort(u),n=r.shift(),a=r.length,n.__d&&(i=void 0,f=(o=(e=n).__v).__e,c=[],s=[],e.__P&&((i=k({},o)).__v=o.__v+1,t.vnode&&t.vnode(i),z(e.__P,i,o,e.__n,e.__P.namespaceURI,32&o.__u?[f]:d,c,f==d?A(o):f,!!(32&o.__u),s),i.__v=o.__v,i.__.__k[i.__i]=i,N(c,i,s),i.__e!=f&&I(i)));E.__r=0}function F(n,t,e,i,r,o,f,u,c,s,a){var h,l,p,y,v,g,b=i&&i.__k||m,k=t.length;for(c=H(e,t,b,c,k),h=0;h<k;h++)(p=e.__k[h])!=d&&(l=-1===p.__i?_:b[p.__i]||_,p.__i=h,g=z(n,p,l,r,o,f,u,c,s,a),y=p.__e,p.ref&&l.ref!=p.ref&&(l.ref&&q(l.ref,d,p),a.push(p.ref,p.__c||y,p)),v==d&&y!=d&&(v=y),4&p.__u||l.__k===p.__k?c=L(p,c,n):"function"==typeof p.type&&g!==w?c=g:y&&(c=y.nextSibling),p.__u&=-7);return e.__e=v,c}function H(n,t,e,i,r){var o,f,u,c,s,a=e.length,h=a,l=0;for(n.__k=new Array(r),o=0;o<r;o++)(f=t[o])!=d&&"boolean"!=typeof f&&"function"!=typeof f?(c=o+l,(f=n.__k[o]="string"==typeof f||"number"==typeof f||"bigint"==typeof f||f.constructor==String?S(d,f,d,d,d):b(f)?S(M,{children:f},d,d,d):f.constructor===w&&f.__b>0?S(f.type,f.props,f.key,f.ref?f.ref:d,f.__v):f).__=n,f.__b=n.__b+1,s=f.__i=T(f,e,c,h),u=d,-1!==s&&(h--,(u=e[s])&&(u.__u|=2)),u==d||u.__v===d?(-1==s&&l--,"function"!=typeof f.type&&(f.__u|=4)):s!=c&&(s==c-1?l--:s==c+1?l++:(s>c?l--:l++,f.__u|=4))):n.__k[o]=d;if(h)for(o=0;o<a;o++)(u=e[o])!=d&&0==(2&u.__u)&&(u.__e==i&&(i=A(u)),B(u,u));return i}function L(n,t,e){var i,r;if("function"==typeof n.type){for(i=n.__k,r=0;i&&r<i.length;r++)i[r]&&(i[r].__=n,t=L(i[r],t,e));return t}n.__e!=t&&(t&&n.type&&!e.contains(t)&&(t=A(n)),e.insertBefore(n.__e,t||d),t=n.__e);do{t=t&&t.nextSibling}while(t!=d&&8==t.nodeType);return t}function T(n,t,e,i){var r,o,f=n.key,u=n.type,c=t[e];if(c===d||c&&f==c.key&&u===c.type&&0==(2&c.__u))return e;if(i>(c!=d&&0==(2&c.__u)?1:0))for(r=e-1,o=e+1;r>=0||o<t.length;){if(r>=0){if((c=t[r])&&0==(2&c.__u)&&f==c.key&&u===c.type)return r;r--}if(o<t.length){if((c=t[o])&&0==(2&c.__u)&&f==c.key&&u===c.type)return o;o++}}return-1}function O(n,t,e){"-"==t[0]?n.setProperty(t,e==d?"":e):n[t]=e==d?"":"number"!=typeof e||g.test(t)?e:e+"px"}function V(n,t,e,i,r){var o;n:if("style"==t)if("string"==typeof e)n.style.cssText=e;else{if("string"==typeof i&&(n.style.cssText=i=""),i)for(t in i)e&&t in e||O(n.style,t,"");if(e)for(t in e)i&&e[t]===i[t]||O(n.style,t,e[t])}else if("o"==t[0]&&"n"==t[1])o=t!=(t=t.replace(c,"$1")),t=t.toLowerCase()in n||"onFocusOut"==t||"onFocusIn"==t?t.toLowerCase().slice(2):t.slice(2),n.l||(n.l={}),n.l[t+o]=e,e?i?e.t=i.t:(e.t=s,n.addEventListener(t,o?h:a,o)):n.removeEventListener(t,o?h:a,o);else{if(r==y)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in n)try{n[t]=e==d?"":e;break n}catch(n){}"function"==typeof e||(e==d||!1===e&&"-"!=t[4]?n.removeAttribute(t):n.setAttribute(t,"popover"==t&&1==e?"":e))}}function j(n){return function(e){if(this.l){var i=this.l[e.type+n];if(e.i==d)e.i=s++;else if(e.i<i.t)return;return i(t.event?t.event(e):e)}}}function z(n,e,i,r,o,f,u,c,s,a){var h,l,p,y,v,_,m,g,x,S,A,I,P,E,H,L,T,O,V=e.type;if(e.constructor!==w)return d;128&i.__u&&(s=!!(32&i.__u),f=[c=e.__e=i.__e]),(h=t.__b)&&h(e);n:if("function"==typeof V)try{if(g=e.props,x="prototype"in V&&V.prototype.render,S=(h=V.contextType)&&r[h.__c],A=h?S?S.props.value:h.__:r,i.__c?m=(l=e.__c=i.__c).__=l.__E:(x?e.__c=l=new V(g,A):(e.__c=l=new $(g,A),l.constructor=V,l.render=D),S&&S.sub(l),l.props=g,l.state||(l.state={}),l.context=A,l.__n=r,p=l.__d=!0,l.__h=[],l._sb=[]),x&&l.__s==d&&(l.__s=l.state),x&&V.getDerivedStateFromProps!=d&&(l.__s==l.state&&(l.__s=k({},l.__s)),k(l.__s,V.getDerivedStateFromProps(g,l.__s))),y=l.props,v=l.state,l.__v=e,p)x&&V.getDerivedStateFromProps==d&&l.componentWillMount!=d&&l.componentWillMount(),x&&l.componentDidMount!=d&&l.__h.push(l.componentDidMount);else{if(x&&V.getDerivedStateFromProps==d&&g!==y&&l.componentWillReceiveProps!=d&&l.componentWillReceiveProps(g,A),!l.__e&&(l.shouldComponentUpdate!=d&&!1===l.shouldComponentUpdate(g,l.__s,A)||e.__v==i.__v)){for(e.__v!=i.__v&&(l.props=g,l.state=l.__s,l.__d=!1),e.__e=i.__e,e.__k=i.__k,e.__k.some(function(n){n&&(n.__=e)}),I=0;I<l._sb.length;I++)l.__h.push(l._sb[I]);l._sb=[],l.__h.length&&u.push(l);break n}l.componentWillUpdate!=d&&l.componentWillUpdate(g,l.__s,A),x&&l.componentDidUpdate!=d&&l.__h.push(function(){l.componentDidUpdate(y,v,_)})}if(l.context=A,l.props=g,l.__P=n,l.__e=!1,P=t.__r,E=0,x){for(l.state=l.__s,l.__d=!1,P&&P(e),h=l.render(l.props,l.state,l.context),H=0;H<l._sb.length;H++)l.__h.push(l._sb[H]);l._sb=[]}else do{l.__d=!1,P&&P(e),h=l.render(l.props,l.state,l.context),l.state=l.__s}while(l.__d&&++E<25);l.state=l.__s,l.getChildContext!=d&&(r=k(k({},r),l.getChildContext())),x&&!p&&l.getSnapshotBeforeUpdate!=d&&(_=l.getSnapshotBeforeUpdate(y,v)),T=(L=h!=d&&h.type===M&&h.key==d)?h.props.children:h,L&&(h.props.children=d),c=F(n,b(T)?T:[T],e,i,r,o,f,u,c,s,a),l.base=e.__e,e.__u&=-161,l.__h.length&&u.push(l),m&&(l.__E=l.__=d)}catch(n){if(e.__v=d,s||f!=d)if(n.then){for(e.__u|=s?160:128;c&&8==c.nodeType&&c.nextSibling;)c=c.nextSibling;f[f.indexOf(c)]=d,e.__e=c}else for(O=f.length;O--;)C(f[O]);else e.__e=i.__e,e.__k=i.__k;t.__e(n,e,i)}else f==d&&e.__v==i.__v?(e.__k=i.__k,e.__e=i.__e):c=e.__e=R(i.__e,e,i,r,o,f,u,s,a);return(h=t.diffed)&&h(e),128&e.__u?void 0:c}function N(n,e,i){for(var r=0;r<i.length;r++)q(i[r],i[++r],i[++r]);t.__c&&t.__c(e,n),n.some(function(e){try{n=e.__h,e.__h=[],n.some(function(n){n.call(e)})}catch(n){t.__e(n,e.__v)}})}function R(e,i,r,o,f,u,c,s,a){var h,l,p,m,g,k,x,S=r.props,M=i.props,$=i.type;if("svg"==$?f=y:"math"==$?f="http://www.w3.org/1998/Math/MathML":f||(f=v),u!=d)for(h=0;h<u.length;h++)if((g=u[h])&&"setAttribute"in g==!!$&&($?g.localName==$:3==g.nodeType)){e=g,u[h]=d;break}if(e==d){if($==d)return document.createTextNode(M);e=document.createElementNS(f,$,M.is&&M),s&&(t.__m&&t.__m(i,u),s=!1),u=d}if($===d)S===M||s&&e.data===M||(e.data=M);else{if(u=u&&n.call(e.childNodes),S=r.props||_,!s&&u!=d)for(S={},h=0;h<e.attributes.length;h++)S[(g=e.attributes[h]).name]=g.value;for(h in S)if(g=S[h],"children"==h);else if("dangerouslySetInnerHTML"==h)p=g;else if(!(h in M)){if("value"==h&&"defaultValue"in M||"checked"==h&&"defaultChecked"in M)continue;V(e,h,d,g,f)}for(h in M)g=M[h],"children"==h?m=g:"dangerouslySetInnerHTML"==h?l=g:"value"==h?k=g:"checked"==h?x=g:s&&"function"!=typeof g||S[h]===g||V(e,h,g,S[h],f);if(l)s||p&&(l.__html===p.__html||l.__html===e.innerHTML)||(e.innerHTML=l.__html),i.__k=[];else if(p&&(e.innerHTML=""),F("template"===i.type?e.content:e,b(m)?m:[m],i,r,o,"foreignObject"==$?v:f,u,c,u?u[0]:r.__k&&A(r,0),s,a),u!=d)for(h=u.length;h--;)C(u[h]);s||(h="value","progress"==$&&k==d?e.removeAttribute("value"):k!==w&&(k!==e[h]||"progress"==$&&!k||"option"==$&&k!==S[h])&&V(e,h,k,S[h],f),h="checked",x!==w&&x!==e[h]&&V(e,h,x,S[h],f))}return e}function q(n,e,i){try{if("function"==typeof n){var r="function"==typeof n.__u;r&&n.__u(),r&&e==d||(n.__u=n(e))}else n.current=e}catch(n){t.__e(n,i)}}function B(n,e,i){var r,o;if(t.unmount&&t.unmount(n),(r=n.ref)&&(r.current&&r.current!==n.__e||q(r,d,e)),(r=n.__c)!=d){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(n){t.__e(n,e)}r.base=r.__P=d}if(r=n.__k)for(o=0;o<r.length;o++)r[o]&&B(r[o],e,i||"function"!=typeof n.type);i||C(n.__e),n.__c=n.__=n.__e=w}function D(n,t,e){return this.constructor(n,e)}function G(e,i,r){var o,f,u,c;i==document&&(i=document.documentElement),t.__&&t.__(e,i),f=(o="function"==typeof r)?d:r&&r.__k||i.__k,u=[],c=[],z(i,e=(!o&&r||i).__k=x(M,d,[e]),f||_,_,i.namespaceURI,!o&&r?[r]:f?d:i.firstChild?n.call(i.childNodes):d,u,!o&&r?r:f?f.__e:i.firstChild,o,c),N(u,e,c)}n=m.slice,t={__e:function(n,t,e,i){for(var r,o,f;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&o.getDerivedStateFromError!=d&&(r.setState(o.getDerivedStateFromError(n)),f=r.__d),r.componentDidCatch!=d&&(r.componentDidCatch(n,i||{}),f=r.__d),f)return r.__E=r}catch(t){n=t}throw n}},e=0,i=function(n){return n!=d&&n.constructor==w},$.prototype.setState=function(n,t){var e;e=this.__s!=d&&this.__s!==this.state?this.__s:this.__s=k({},this.state),"function"==typeof n&&(n=n(k({},e),this.props)),n&&k(e,n),n!=d&&this.__v&&(t&&this._sb.push(t),P(this))},$.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),P(this))},$.prototype.render=M,r=[],f="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(n,t){return n.__v.__b-t.__v.__b},E.__r=0,c=/(PointerCapture)$|Capture$/i,s=0,a=j(!1),h=j(!0),l=0,p={__proto__:null,render:G,hydrate:function n(t,e){G(t,e,n)},createElement:x,h:x,Fragment:M,createRef:function(){return{current:d}},isValidElement:i,Component:$,cloneElement:function(t,e,i){var r,o,f,u,c=k({},t.props);for(f in t.type&&t.type.defaultProps&&(u=t.type.defaultProps),e)"key"==f?r=e[f]:"ref"==f?o=e[f]:c[f]=e[f]===w&&u!==w?u[f]:e[f];return arguments.length>2&&(c.children=arguments.length>3?n.call(arguments,2):i),S(t.type,c,r||t.key,o||t.ref,d)},createContext:function(n){function t(n){var e,i;return this.getChildContext||(e=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){e=d},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&e.forEach(function(n){n.__e=!0,P(n)})},this.sub=function(n){e.add(n);var t=n.componentWillUnmount;n.componentWillUnmount=function(){e&&e.delete(n),t&&t.call(n)}}),n.children}return t.__c="__cC"+l++,t.__=n,t.Provider=t.__l=(t.Consumer=function(n,t){return n.children(t)}).contextType=t,t},toChildArray:function n(t,e){return e=e||[],t==d||"boolean"==typeof t||(b(t)?t.some(function(t){n(t,e)}):e.push(t)),e},options:t},typeof module<"u"?module.exports=p:self.preact=p}(); | ||
//# sourceMappingURL=preact.min.js.map |
@@ -1,2 +0,2 @@ | ||
var n,l,t,u,i,e,r,o,f,c,s,a,h,p,v={},y=[],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 i,e,r,o={};for(r in t)"key"==r?i=t[r]:"ref"==r?e=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,i,e,null)}function b(n,u,i,e,r){var o={type:n,props:u,key:i,ref:e,__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)&&i.push(n)&&!$.__r++||e!==l.debounceRendering)&&((e=l.debounceRendering)||r)($)}function $(){for(var n,t,u,e,r,f,c,s=1;i.length;)i.length>s&&i.sort(o),n=i.shift(),s=i.length,n.__d&&(u=void 0,r=(e=(t=n).__v).__e,f=[],c=[],t.__P&&((u=m({},e)).__v=e.__v+1,l.vnode&&l.vnode(u),T(t.__P,u,e,t.__n,t.__P.namespaceURI,32&e.__u?[r]:null,f,null==r?C(e):r,!!(32&e.__u),c),u.__v=e.__v,u.__.__k[u.__i]=u,O(f,u,c),u.__e!=r&&S(u)));$.__r=0}function A(n,l,t,u,i,e,r,o,f,c,s){var a,h,p,d,w,m,_=u&&u.__k||y,g=l.length;for(f=I(t,l,_,f,g),a=0;a<g;a++)null!=(p=t.__k[a])&&(h=-1===p.__i?v:_[p.__i]||v,p.__i=a,m=T(n,p,h,i,e,r,o,f,c,s),d=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&j(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,i){var e,r,o,f,c,s=t.length,a=s,h=0;for(n.__k=new Array(i),e=0;e<i;e++)null!=(r=l[e])&&"boolean"!=typeof r&&"function"!=typeof r?(f=e+h,(r=n.__k[e]="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):void 0===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&&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[e]=null;if(a)for(e=0;e<s;e++)null!=(o=t[e])&&0==(2&o.__u)&&(o.__e==u&&(u=C(o)),z(o,o));return u}function P(n,l,t){var u,i;if("function"==typeof n.type){for(u=n.__k,i=0;u&&i<u.length;i++)u[i]&&(u[i].__=n,l=P(u[i],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 i,e,r=n.key,o=n.type,f=l[t];if(null===f||f&&r==f.key&&o===f.type&&0==(2&f.__u))return t;if(u>(null!=f&&0==(2&f.__u)?1:0))for(i=t-1,e=t+1;i>=0||e<l.length;){if(i>=0){if((f=l[i])&&0==(2&f.__u)&&r==f.key&&o===f.type)return i;i--}if(e<l.length){if((f=l[e])&&0==(2&f.__u)&&r==f.key&&o===f.type)return e;e++}}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,i){var e;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])e=l!=(l=l.replace(f,"$1")),l=l.toLowerCase()in n||"onFocusOut"==l||"onFocusIn"==l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+e]=t,t?u?t.t=u.t:(t.t=c,n.addEventListener(l,e?a:s,e)):n.removeEventListener(l,e?a:s,e);else{if("http://www.w3.org/2000/svg"==i)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"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==t?"":t;break n}catch(n){}"function"==typeof t||(null==t||!1===t&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==t?"":t))}}function L(n){return function(t){if(this.l){var u=this.l[t.type+n];if(null==t.u)t.u=c++;else if(t.u<u.t)return;return u(l.event?l.event(t):t)}}}function T(n,t,u,i,e,r,o,f,c,s){var a,h,p,v,y,d,g,b,C,S,M,$,I,P,E,F,H,L=t.type;if(void 0!==t.constructor)return null;128&u.__u&&(c=!!(32&u.__u),r=[f=t.__e=u.__e]),(a=l.__b)&&a(t);n:if("function"==typeof L)try{if(b=t.props,C="prototype"in L&&L.prototype.render,S=(a=L.contextType)&&i[a.__c],M=a?S?S.props.value:a.__:i,u.__c?g=(h=t.__c=u.__c).__=h.__E:(C?t.__c=h=new L(b,M):(t.__c=h=new x(b,M),h.constructor=L,h.render=N),S&&S.sub(h),h.props=b,h.state||(h.state={}),h.context=M,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),C&&null==h.__s&&(h.__s=h.state),C&&null!=L.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=m({},h.__s)),m(h.__s,L.getDerivedStateFromProps(b,h.__s))),v=h.props,y=h.state,h.__v=t,p)C&&null==L.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),C&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(C&&null==L.getDerivedStateFromProps&&b!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,M),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,M)||t.__v==u.__v)){for(t.__v!=u.__v&&(h.props=b,h.state=h.__s,h.__d=!1),t.__e=u.__e,t.__k=u.__k,t.__k.some(function(n){n&&(n.__=t)}),$=0;$<h._sb.length;$++)h.__h.push(h._sb[$]);h._sb=[],h.__h.length&&o.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,M),C&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,d)})}if(h.context=M,h.props=b,h.__P=n,h.__e=!1,I=l.__r,P=0,C){for(h.state=h.__s,h.__d=!1,I&&I(t),a=h.render(h.props,h.state,h.context),E=0;E<h._sb.length;E++)h.__h.push(h._sb[E]);h._sb=[]}else do{h.__d=!1,I&&I(t),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++P<25);h.state=h.__s,null!=h.getChildContext&&(i=m(m({},i),h.getChildContext())),C&&!p&&null!=h.getSnapshotBeforeUpdate&&(d=h.getSnapshotBeforeUpdate(v,y)),f=A(n,w(F=null!=a&&a.type===k&&null==a.key?a.props.children:a)?F:[F],t,u,i,e,r,o,f,c,s),h.base=t.__e,t.__u&=-161,h.__h.length&&o.push(h),g&&(h.__E=h.__=null)}catch(n){if(t.__v=null,c||null!=r)if(n.then){for(t.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;r[r.indexOf(f)]=null,t.__e=f}else for(H=r.length;H--;)_(r[H]);else t.__e=u.__e,t.__k=u.__k;l.__e(n,t,u)}else null==r&&t.__v==u.__v?(t.__k=u.__k,t.__e=u.__e):f=t.__e=V(u.__e,t,u,i,e,r,o,c,s);return(a=l.diffed)&&a(t),128&t.__u?void 0:f}function O(n,t,u){for(var i=0;i<u.length;i++)j(u[i],u[++i],u[++i]);l.__c&&l.__c(t,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(n){n.call(t)})}catch(n){l.__e(n,t.__v)}})}function V(t,u,i,e,r,o,f,c,s){var a,h,p,y,d,m,g,b=i.props,k=u.props,x=u.type;if("svg"==x?r="http://www.w3.org/2000/svg":"math"==x?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=o)for(a=0;a<o.length;a++)if((d=o[a])&&"setAttribute"in d==!!x&&(x?d.localName==x:3==d.nodeType)){t=d,o[a]=null;break}if(null==t){if(null==x)return document.createTextNode(k);t=document.createElementNS(r,x,k.is&&k),c&&(l.__m&&l.__m(u,o),c=!1),o=null}if(null===x)b===k||c&&t.data===k||(t.data=k);else{if(o=o&&n.call(t.childNodes),b=i.props||v,!c&&null!=o)for(b={},a=0;a<t.attributes.length;a++)b[(d=t.attributes[a]).name]=d.value;for(a in b)if(d=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)p=d;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;H(t,a,null,d,r)}for(a in k)d=k[a],"children"==a?y=d:"dangerouslySetInnerHTML"==a?h=d:"value"==a?m=d:"checked"==a?g=d:c&&"function"!=typeof d||b[a]===d||H(t,a,d,b[a],r);if(h)c||p&&(h.__html===p.__html||h.__html===t.innerHTML)||(t.innerHTML=h.__html),u.__k=[];else if(p&&(t.innerHTML=""),A("template"===u.type?t.content:t,w(y)?y:[y],u,i,e,"foreignObject"==x?"http://www.w3.org/1999/xhtml":r,o,f,o?o[0]:i.__k&&C(i,0),c,s),null!=o)for(a=o.length;a--;)_(o[a]);c||(a="value","progress"==x&&null==m?t.removeAttribute("value"):void 0!==m&&(m!==t[a]||"progress"==x&&!m||"option"==x&&m!==b[a])&&H(t,a,m,b[a],r),a="checked",void 0!==g&&g!==t[a]&&H(t,a,g,b[a],r))}return t}function j(n,t,u){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==t||(n.__u=n(t))}else n.current=t}catch(n){l.__e(n,u)}}function z(n,t,u){var i,e;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||j(i,null,t)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,t)}i.base=i.__P=null}if(i=n.__k)for(e=0;e<i.length;e++)i[e]&&z(i[e],t,u||"function"!=typeof n.type);u||_(n.__e),n.__c=n.__=n.__e=void 0}function N(n,l,t){return this.constructor(n,t)}function R(t,u,i){var e,r,o,f;u==document&&(u=document.documentElement),l.__&&l.__(t,u),r=(e="function"==typeof i)?null:i&&i.__k||u.__k,o=[],f=[],T(u,t=(!e&&i||u).__k=g(k,null,[t]),r||v,v,u.namespaceURI,!e&&i?[i]:r?null:u.firstChild?n.call(u.childNodes):null,o,!e&&i?i:r?r.__e:u.firstChild,e,f),O(o,t,f)}n=y.slice,l={__e:function(n,l,t,u){for(var i,e,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((e=i.constructor)&&null!=e.getDerivedStateFromError&&(i.setState(e.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,u||{}),r=i.__d),r)return i.__E=i}catch(l){n=l}throw n}},t=0,u=function(n){return null!=n&&null==n.constructor},x.prototype.setState=function(n,l){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof n&&(n=n(m({},t),this.props)),n&&m(t,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},x.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},x.prototype.render=k,i=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,o=function(n,l){return n.__v.__b-l.__v.__b},$.__r=0,f=/(PointerCapture)$|Capture$/i,c=0,s=L(!1),a=L(!0),h=0,p={__proto__:null,render:R,hydrate:function n(l,t){R(l,t,n)},createElement:g,h:g,Fragment:k,createRef:function(){return{current:null}},isValidElement:u,Component:x,cloneElement:function(l,t,u){var i,e,r,o,f=m({},l.props);for(r in l.type&&l.type.defaultProps&&(o=l.type.defaultProps),t)"key"==r?i=t[r]:"ref"==r?e=t[r]:f[r]=void 0===t[r]&&void 0!==o?o[r]:t[r];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):u),b(l.type,f,i||l.key,e||l.ref,null)},createContext:function(n){function l(n){var t,u;return this.getChildContext||(t=new Set,(u={})[l.__c]=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,M(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 l.__c="__cC"+h++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l},toChildArray:function n(l,t){return t=t||[],null==l||"boolean"==typeof l||(w(l)?l.some(function(l){n(l,t)}):t.push(l)),t},options:l},typeof module<"u"?module.exports=p:self.preact=p; | ||
var n,l,t,u,i,e,r,o,f,c,s,a,h,p,v={},y=[],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 i,e,r,o={};for(r in t)"key"==r?i=t[r]:"ref"==r?e=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,i,e,null)}function b(n,u,i,e,r){var o={type:n,props:u,key:i,ref:e,__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)&&i.push(n)&&!$.__r++||e!==l.debounceRendering)&&((e=l.debounceRendering)||r)($)}function $(){for(var n,t,u,e,r,f,c,s=1;i.length;)i.length>s&&i.sort(o),n=i.shift(),s=i.length,n.__d&&(u=void 0,r=(e=(t=n).__v).__e,f=[],c=[],t.__P&&((u=m({},e)).__v=e.__v+1,l.vnode&&l.vnode(u),T(t.__P,u,e,t.__n,t.__P.namespaceURI,32&e.__u?[r]:null,f,null==r?C(e):r,!!(32&e.__u),c),u.__v=e.__v,u.__.__k[u.__i]=u,O(f,u,c),u.__e!=r&&S(u)));$.__r=0}function A(n,l,t,u,i,e,r,o,f,c,s){var a,h,p,d,w,m,_=u&&u.__k||y,g=l.length;for(f=I(t,l,_,f,g),a=0;a<g;a++)null!=(p=t.__k[a])&&(h=-1===p.__i?v:_[p.__i]||v,p.__i=a,m=T(n,p,h,i,e,r,o,f,c,s),d=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&j(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,i){var e,r,o,f,c,s=t.length,a=s,h=0;for(n.__k=new Array(i),e=0;e<i;e++)null!=(r=l[e])&&"boolean"!=typeof r&&"function"!=typeof r?(f=e+h,(r=n.__k[e]="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):void 0===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&&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[e]=null;if(a)for(e=0;e<s;e++)null!=(o=t[e])&&0==(2&o.__u)&&(o.__e==u&&(u=C(o)),z(o,o));return u}function P(n,l,t){var u,i;if("function"==typeof n.type){for(u=n.__k,i=0;u&&i<u.length;i++)u[i]&&(u[i].__=n,l=P(u[i],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 i,e,r=n.key,o=n.type,f=l[t];if(null===f||f&&r==f.key&&o===f.type&&0==(2&f.__u))return t;if(u>(null!=f&&0==(2&f.__u)?1:0))for(i=t-1,e=t+1;i>=0||e<l.length;){if(i>=0){if((f=l[i])&&0==(2&f.__u)&&r==f.key&&o===f.type)return i;i--}if(e<l.length){if((f=l[e])&&0==(2&f.__u)&&r==f.key&&o===f.type)return e;e++}}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,i){var e;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])e=l!=(l=l.replace(f,"$1")),l=l.toLowerCase()in n||"onFocusOut"==l||"onFocusIn"==l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+e]=t,t?u?t.t=u.t:(t.t=c,n.addEventListener(l,e?a:s,e)):n.removeEventListener(l,e?a:s,e);else{if("http://www.w3.org/2000/svg"==i)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"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==t?"":t;break n}catch(n){}"function"==typeof t||(null==t||!1===t&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==t?"":t))}}function L(n){return function(t){if(this.l){var u=this.l[t.type+n];if(null==t.u)t.u=c++;else if(t.u<u.t)return;return u(l.event?l.event(t):t)}}}function T(n,t,u,i,e,r,o,f,c,s){var a,h,p,v,y,d,g,b,C,S,M,$,I,P,E,F,H,L,T=t.type;if(void 0!==t.constructor)return null;128&u.__u&&(c=!!(32&u.__u),r=[f=t.__e=u.__e]),(a=l.__b)&&a(t);n:if("function"==typeof T)try{if(b=t.props,C="prototype"in T&&T.prototype.render,S=(a=T.contextType)&&i[a.__c],M=a?S?S.props.value:a.__:i,u.__c?g=(h=t.__c=u.__c).__=h.__E:(C?t.__c=h=new T(b,M):(t.__c=h=new x(b,M),h.constructor=T,h.render=N),S&&S.sub(h),h.props=b,h.state||(h.state={}),h.context=M,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),C&&null==h.__s&&(h.__s=h.state),C&&null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=m({},h.__s)),m(h.__s,T.getDerivedStateFromProps(b,h.__s))),v=h.props,y=h.state,h.__v=t,p)C&&null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),C&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(C&&null==T.getDerivedStateFromProps&&b!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,M),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,M)||t.__v==u.__v)){for(t.__v!=u.__v&&(h.props=b,h.state=h.__s,h.__d=!1),t.__e=u.__e,t.__k=u.__k,t.__k.some(function(n){n&&(n.__=t)}),$=0;$<h._sb.length;$++)h.__h.push(h._sb[$]);h._sb=[],h.__h.length&&o.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,M),C&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,d)})}if(h.context=M,h.props=b,h.__P=n,h.__e=!1,I=l.__r,P=0,C){for(h.state=h.__s,h.__d=!1,I&&I(t),a=h.render(h.props,h.state,h.context),E=0;E<h._sb.length;E++)h.__h.push(h._sb[E]);h._sb=[]}else do{h.__d=!1,I&&I(t),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++P<25);h.state=h.__s,null!=h.getChildContext&&(i=m(m({},i),h.getChildContext())),C&&!p&&null!=h.getSnapshotBeforeUpdate&&(d=h.getSnapshotBeforeUpdate(v,y)),H=(F=null!=a&&a.type===k&&null==a.key)?a.props.children:a,F&&(a.props.children=null),f=A(n,w(H)?H:[H],t,u,i,e,r,o,f,c,s),h.base=t.__e,t.__u&=-161,h.__h.length&&o.push(h),g&&(h.__E=h.__=null)}catch(n){if(t.__v=null,c||null!=r)if(n.then){for(t.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;r[r.indexOf(f)]=null,t.__e=f}else for(L=r.length;L--;)_(r[L]);else t.__e=u.__e,t.__k=u.__k;l.__e(n,t,u)}else null==r&&t.__v==u.__v?(t.__k=u.__k,t.__e=u.__e):f=t.__e=V(u.__e,t,u,i,e,r,o,c,s);return(a=l.diffed)&&a(t),128&t.__u?void 0:f}function O(n,t,u){for(var i=0;i<u.length;i++)j(u[i],u[++i],u[++i]);l.__c&&l.__c(t,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(n){n.call(t)})}catch(n){l.__e(n,t.__v)}})}function V(t,u,i,e,r,o,f,c,s){var a,h,p,y,d,m,g,b=i.props,k=u.props,x=u.type;if("svg"==x?r="http://www.w3.org/2000/svg":"math"==x?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=o)for(a=0;a<o.length;a++)if((d=o[a])&&"setAttribute"in d==!!x&&(x?d.localName==x:3==d.nodeType)){t=d,o[a]=null;break}if(null==t){if(null==x)return document.createTextNode(k);t=document.createElementNS(r,x,k.is&&k),c&&(l.__m&&l.__m(u,o),c=!1),o=null}if(null===x)b===k||c&&t.data===k||(t.data=k);else{if(o=o&&n.call(t.childNodes),b=i.props||v,!c&&null!=o)for(b={},a=0;a<t.attributes.length;a++)b[(d=t.attributes[a]).name]=d.value;for(a in b)if(d=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)p=d;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;H(t,a,null,d,r)}for(a in k)d=k[a],"children"==a?y=d:"dangerouslySetInnerHTML"==a?h=d:"value"==a?m=d:"checked"==a?g=d:c&&"function"!=typeof d||b[a]===d||H(t,a,d,b[a],r);if(h)c||p&&(h.__html===p.__html||h.__html===t.innerHTML)||(t.innerHTML=h.__html),u.__k=[];else if(p&&(t.innerHTML=""),A("template"===u.type?t.content:t,w(y)?y:[y],u,i,e,"foreignObject"==x?"http://www.w3.org/1999/xhtml":r,o,f,o?o[0]:i.__k&&C(i,0),c,s),null!=o)for(a=o.length;a--;)_(o[a]);c||(a="value","progress"==x&&null==m?t.removeAttribute("value"):void 0!==m&&(m!==t[a]||"progress"==x&&!m||"option"==x&&m!==b[a])&&H(t,a,m,b[a],r),a="checked",void 0!==g&&g!==t[a]&&H(t,a,g,b[a],r))}return t}function j(n,t,u){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==t||(n.__u=n(t))}else n.current=t}catch(n){l.__e(n,u)}}function z(n,t,u){var i,e;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||j(i,null,t)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,t)}i.base=i.__P=null}if(i=n.__k)for(e=0;e<i.length;e++)i[e]&&z(i[e],t,u||"function"!=typeof n.type);u||_(n.__e),n.__c=n.__=n.__e=void 0}function N(n,l,t){return this.constructor(n,t)}function R(t,u,i){var e,r,o,f;u==document&&(u=document.documentElement),l.__&&l.__(t,u),r=(e="function"==typeof i)?null:i&&i.__k||u.__k,o=[],f=[],T(u,t=(!e&&i||u).__k=g(k,null,[t]),r||v,v,u.namespaceURI,!e&&i?[i]:r?null:u.firstChild?n.call(u.childNodes):null,o,!e&&i?i:r?r.__e:u.firstChild,e,f),O(o,t,f)}n=y.slice,l={__e:function(n,l,t,u){for(var i,e,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((e=i.constructor)&&null!=e.getDerivedStateFromError&&(i.setState(e.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,u||{}),r=i.__d),r)return i.__E=i}catch(l){n=l}throw n}},t=0,u=function(n){return null!=n&&null==n.constructor},x.prototype.setState=function(n,l){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof n&&(n=n(m({},t),this.props)),n&&m(t,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},x.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},x.prototype.render=k,i=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,o=function(n,l){return n.__v.__b-l.__v.__b},$.__r=0,f=/(PointerCapture)$|Capture$/i,c=0,s=L(!1),a=L(!0),h=0,p={__proto__:null,render:R,hydrate:function n(l,t){R(l,t,n)},createElement:g,h:g,Fragment:k,createRef:function(){return{current:null}},isValidElement:u,Component:x,cloneElement:function(l,t,u){var i,e,r,o,f=m({},l.props);for(r in l.type&&l.type.defaultProps&&(o=l.type.defaultProps),t)"key"==r?i=t[r]:"ref"==r?e=t[r]:f[r]=void 0===t[r]&&void 0!==o?o[r]:t[r];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):u),b(l.type,f,i||l.key,e||l.ref,null)},createContext:function(n){function l(n){var t,u;return this.getChildContext||(t=new Set,(u={})[l.__c]=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,M(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 l.__c="__cC"+h++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l},toChildArray:function n(l,t){return t=t||[],null==l||"boolean"==typeof l||(w(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.module.js.map |
@@ -1,2 +0,2 @@ | ||
!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,w={},_=[],m=/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 $(n,l){if(null==l)return n.__?$(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?$(n):null}function A(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 A(n)}}function I(n){(!n.__d&&(n.__d=!0)&&e.push(n)&&!P.__r++||i!==l.debounceRendering)&&((i=l.debounceRendering)||r)(P)}function P(){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=b({},i)).__v=i.__v+1,l.vnode&&l.vnode(u),j(t.__P,u,i,t.__n,t.__P.namespaceURI,32&i.__u?[r]:null,f,null==r?$(i):r,!!(32&i.__u),c),u.__v=i.__v,u.__.__k[u.__i]=u,z(f,u,c),u.__e!=r&&A(u)));P.__r=0}function E(n,l,t,u,e,i,r,o,f,c,s){var a,h,p,y,v,m,g=u&&u.__k||_,b=l.length;for(f=F(t,l,g,f,b),a=0;a<b;a++)null!=(p=t.__k[a])&&(h=-1===p.__i?w:g[p.__i]||w,p.__i=a,m=j(n,p,h,e,i,r,o,f,c,s),y=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&R(h.ref,null,p),s.push(p.ref,p.__c||y,p)),null==v&&null!=y&&(v=y),4&p.__u||h.__k===p.__k?f=H(p,f,n):"function"==typeof p.type&&m!==d?f=m:y&&(f=y.nextSibling),p.__u&=-7);return t.__e=v,f}function F(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?x(null,r,null,null,null):g(r)?x(S,{children:r},null,null,null):r.constructor===d&&r.__b>0?x(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=L(r,t,f,a))&&(a--,(o=t[c])&&(o.__u|=2)),null==o||null===o.__v?(-1==c&&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=$(o)),q(o,o));return u}function H(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=H(u[e],l,t));return l}n.__e!=l&&(l&&n.type&&!t.contains(l)&&(l=$(n)),t.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8==l.nodeType);return l}function L(n,l,t,u){var e,i,r=n.key,o=n.type,f=l[t];if(null===f||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 T(n,l,t){"-"==l[0]?n.setProperty(l,null==t?"":t):n[l]=null==t?"":"number"!=typeof t||m.test(l)?t:t+"px"}function O(n,l,t,u,e){var i;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||T(n.style,l,"");if(t)for(l in t)u&&t[l]===u[l]||T(n.style,l,t[l])}else if("o"==l[0]&&"n"==l[1])i=l!=(l=l.replace(f,"$1")),l=l.toLowerCase()in n||"onFocusOut"==l||"onFocusIn"==l?l.toLowerCase().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(e==y)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"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==t?"":t;break n}catch(n){}"function"==typeof t||(null==t||!1===t&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==t?"":t))}}function V(n){return function(t){if(this.l){var u=this.l[t.type+n];if(null==t.u)t.u=c++;else if(t.u<u.t)return;return u(l.event?l.event(t):t)}}}function j(n,t,u,e,i,r,o,f,c,s){var a,h,p,y,v,w,_,m,C,x,$,A,I,P,F,H,L,T=t.type;if(t.constructor!==d)return null;128&u.__u&&(c=!!(32&u.__u),r=[f=t.__e=u.__e]),(a=l.__b)&&a(t);n:if("function"==typeof T)try{if(m=t.props,C="prototype"in T&&T.prototype.render,x=(a=T.contextType)&&e[a.__c],$=a?x?x.props.value:a.__:e,u.__c?_=(h=t.__c=u.__c).__=h.__E:(C?t.__c=h=new T(m,$):(t.__c=h=new M(m,$),h.constructor=T,h.render=B),x&&x.sub(h),h.props=m,h.state||(h.state={}),h.context=$,h.__n=e,p=h.__d=!0,h.__h=[],h._sb=[]),C&&null==h.__s&&(h.__s=h.state),C&&null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=b({},h.__s)),b(h.__s,T.getDerivedStateFromProps(m,h.__s))),y=h.props,v=h.state,h.__v=t,p)C&&null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),C&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(C&&null==T.getDerivedStateFromProps&&m!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,$),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,$)||t.__v==u.__v)){for(t.__v!=u.__v&&(h.props=m,h.state=h.__s,h.__d=!1),t.__e=u.__e,t.__k=u.__k,t.__k.some(function(n){n&&(n.__=t)}),A=0;A<h._sb.length;A++)h.__h.push(h._sb[A]);h._sb=[],h.__h.length&&o.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,$),C&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,v,w)})}if(h.context=$,h.props=m,h.__P=n,h.__e=!1,I=l.__r,P=0,C){for(h.state=h.__s,h.__d=!1,I&&I(t),a=h.render(h.props,h.state,h.context),F=0;F<h._sb.length;F++)h.__h.push(h._sb[F]);h._sb=[]}else do{h.__d=!1,I&&I(t),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++P<25);h.state=h.__s,null!=h.getChildContext&&(e=b(b({},e),h.getChildContext())),C&&!p&&null!=h.getSnapshotBeforeUpdate&&(w=h.getSnapshotBeforeUpdate(y,v)),f=E(n,g(H=null!=a&&a.type===S&&null==a.key?a.props.children:a)?H:[H],t,u,e,i,r,o,f,c,s),h.base=t.__e,t.__u&=-161,h.__h.length&&o.push(h),_&&(h.__E=h.__=null)}catch(n){if(t.__v=null,c||null!=r)if(n.then){for(t.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;r[r.indexOf(f)]=null,t.__e=f}else for(L=r.length;L--;)k(r[L]);else t.__e=u.__e,t.__k=u.__k;l.__e(n,t,u)}else null==r&&t.__v==u.__v?(t.__k=u.__k,t.__e=u.__e):f=t.__e=N(u.__e,t,u,e,i,r,o,c,s);return(a=l.diffed)&&a(t),128&t.__u?void 0:f}function z(n,t,u){for(var e=0;e<u.length;e++)R(u[e],u[++e],u[++e]);l.__c&&l.__c(t,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(n){n.call(t)})}catch(n){l.__e(n,t.__v)}})}function N(t,u,e,i,r,o,f,c,s){var a,h,p,_,m,b,C,x=e.props,S=u.props,M=u.type;if("svg"==M?r=y:"math"==M?r="http://www.w3.org/1998/Math/MathML":r||(r=v),null!=o)for(a=0;a<o.length;a++)if((m=o[a])&&"setAttribute"in m==!!M&&(M?m.localName==M:3==m.nodeType)){t=m,o[a]=null;break}if(null==t){if(null==M)return document.createTextNode(S);t=document.createElementNS(r,M,S.is&&S),c&&(l.__m&&l.__m(u,o),c=!1),o=null}if(null===M)x===S||c&&t.data===S||(t.data=S);else{if(o=o&&n.call(t.childNodes),x=e.props||w,!c&&null!=o)for(x={},a=0;a<t.attributes.length;a++)x[(m=t.attributes[a]).name]=m.value;for(a in x)if(m=x[a],"children"==a);else if("dangerouslySetInnerHTML"==a)p=m;else if(!(a in S)){if("value"==a&&"defaultValue"in S||"checked"==a&&"defaultChecked"in S)continue;O(t,a,null,m,r)}for(a in S)m=S[a],"children"==a?_=m:"dangerouslySetInnerHTML"==a?h=m:"value"==a?b=m:"checked"==a?C=m:c&&"function"!=typeof m||x[a]===m||O(t,a,m,x[a],r);if(h)c||p&&(h.__html===p.__html||h.__html===t.innerHTML)||(t.innerHTML=h.__html),u.__k=[];else if(p&&(t.innerHTML=""),E("template"===u.type?t.content:t,g(_)?_:[_],u,e,i,"foreignObject"==M?v:r,o,f,o?o[0]:e.__k&&$(e,0),c,s),null!=o)for(a=o.length;a--;)k(o[a]);c||(a="value","progress"==M&&null==b?t.removeAttribute("value"):b!==d&&(b!==t[a]||"progress"==M&&!b||"option"==M&&b!==x[a])&&O(t,a,b,x[a],r),a="checked",C!==d&&C!==t[a]&&O(t,a,C,x[a],r))}return t}function R(n,t,u){try{if("function"==typeof n){var e="function"==typeof n.__u;e&&n.__u(),e&&null==t||(n.__u=n(t))}else n.current=t}catch(n){l.__e(n,u)}}function q(n,t,u){var e,i;if(l.unmount&&l.unmount(n),(e=n.ref)&&(e.current&&e.current!==n.__e||R(e,null,t)),null!=(e=n.__c)){if(e.componentWillUnmount)try{e.componentWillUnmount()}catch(n){l.__e(n,t)}e.base=e.__P=null}if(e=n.__k)for(i=0;i<e.length;i++)e[i]&&q(e[i],t,u||"function"!=typeof n.type);u||k(n.__e),n.__c=n.__=n.__e=d}function B(n,l,t){return this.constructor(n,t)}function D(t,u,e){var i,r,o,f;u==document&&(u=document.documentElement),l.__&&l.__(t,u),r=(i="function"==typeof e)?null:e&&e.__k||u.__k,o=[],f=[],j(u,t=(!i&&e||u).__k=C(S,null,[t]),r||w,w,u.namespaceURI,!i&&e?[e]:r?null:u.firstChild?n.call(u.childNodes):null,o,!i&&e?e:r?r.__e:u.firstChild,i,f),z(o,t,f)}n=_.slice,l={__e:function(n,l,t,u){for(var e,i,r;l=l.__;)if((e=l.__c)&&!e.__)try{if((i=e.constructor)&&null!=i.getDerivedStateFromError&&(e.setState(i.getDerivedStateFromError(n)),r=e.__d),null!=e.componentDidCatch&&(e.componentDidCatch(n,u||{}),r=e.__d),r)return e.__E=e}catch(l){n=l}throw n}},t=0,u=function(n){return null!=n&&n.constructor==d},M.prototype.setState=function(n,l){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=b({},this.state),"function"==typeof n&&(n=n(b({},t),this.props)),n&&b(t,n),null!=n&&this.__v&&(l&&this._sb.push(l),I(this))},M.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),I(this))},M.prototype.render=S,e=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,o=function(n,l){return n.__v.__b-l.__v.__b},P.__r=0,f=/(PointerCapture)$|Capture$/i,c=0,s=V(!1),a=V(!0),h=0,p={__proto__:null,render:D,hydrate:function n(l,t){D(l,t,n)},createElement:C,h:C,Fragment:S,createRef:function(){return{current:null}},isValidElement:u,Component:M,cloneElement:function(l,t,u){var e,i,r,o,f=b({},l.props);for(r in l.type&&l.type.defaultProps&&(o=l.type.defaultProps),t)"key"==r?e=t[r]:"ref"==r?i=t[r]:f[r]=t[r]===d&&o!==d?o[r]:t[r];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):u),x(l.type,f,e||l.key,i||l.ref,null)},createContext:function(n){function l(n){var t,u;return this.getChildContext||(t=new Set,(u={})[l.__c]=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 l.__c="__cC"+h++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l},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}); | ||
!function(n){"function"==typeof define&&define.amd?define(n):n()}(function(){var n,t,e,i,r,o,f,u,c,s,a,h,l,p,y="http://www.w3.org/2000/svg",v="http://www.w3.org/1999/xhtml",d=null,w=void 0,_={},m=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function k(n,t){for(var e in t)n[e]=t[e];return n}function C(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function x(t,e,i){var r,o,f,u={};for(f in e)"key"==f?r=e[f]:"ref"==f?o=e[f]:u[f]=e[f];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof t&&t.defaultProps!=d)for(f in t.defaultProps)u[f]===w&&(u[f]=t.defaultProps[f]);return S(t,u,r,o,d)}function S(n,i,r,o,f){var u={type:n,props:i,key:r,ref:o,__k:d,__:d,__b:0,__e:d,__c:d,constructor:w,__v:f==d?++e:f,__i:-1,__u:0};return f==d&&t.vnode!=d&&t.vnode(u),u}function M(n){return n.children}function $(n,t){this.props=n,this.context=t}function A(n,t){if(t==d)return n.__?A(n.__,n.__i+1):d;for(var e;t<n.__k.length;t++)if((e=n.__k[t])!=d&&e.__e!=d)return e.__e;return"function"==typeof n.type?A(n):d}function I(n){var t,e;if((n=n.__)!=d&&n.__c!=d){for(n.__e=n.__c.base=d,t=0;t<n.__k.length;t++)if((e=n.__k[t])!=d&&e.__e!=d){n.__e=n.__c.base=e.__e;break}return I(n)}}function P(n){(!n.__d&&(n.__d=!0)&&r.push(n)&&!E.__r++||o!==t.debounceRendering)&&((o=t.debounceRendering)||f)(E)}function E(){for(var n,e,i,o,f,c,s,a=1;r.length;)r.length>a&&r.sort(u),n=r.shift(),a=r.length,n.__d&&(i=void 0,f=(o=(e=n).__v).__e,c=[],s=[],e.__P&&((i=k({},o)).__v=o.__v+1,t.vnode&&t.vnode(i),z(e.__P,i,o,e.__n,e.__P.namespaceURI,32&o.__u?[f]:d,c,f==d?A(o):f,!!(32&o.__u),s),i.__v=o.__v,i.__.__k[i.__i]=i,N(c,i,s),i.__e!=f&&I(i)));E.__r=0}function F(n,t,e,i,r,o,f,u,c,s,a){var h,l,p,y,v,g,b=i&&i.__k||m,k=t.length;for(c=H(e,t,b,c,k),h=0;h<k;h++)(p=e.__k[h])!=d&&(l=-1===p.__i?_:b[p.__i]||_,p.__i=h,g=z(n,p,l,r,o,f,u,c,s,a),y=p.__e,p.ref&&l.ref!=p.ref&&(l.ref&&q(l.ref,d,p),a.push(p.ref,p.__c||y,p)),v==d&&y!=d&&(v=y),4&p.__u||l.__k===p.__k?c=L(p,c,n):"function"==typeof p.type&&g!==w?c=g:y&&(c=y.nextSibling),p.__u&=-7);return e.__e=v,c}function H(n,t,e,i,r){var o,f,u,c,s,a=e.length,h=a,l=0;for(n.__k=new Array(r),o=0;o<r;o++)(f=t[o])!=d&&"boolean"!=typeof f&&"function"!=typeof f?(c=o+l,(f=n.__k[o]="string"==typeof f||"number"==typeof f||"bigint"==typeof f||f.constructor==String?S(d,f,d,d,d):b(f)?S(M,{children:f},d,d,d):f.constructor===w&&f.__b>0?S(f.type,f.props,f.key,f.ref?f.ref:d,f.__v):f).__=n,f.__b=n.__b+1,s=f.__i=T(f,e,c,h),u=d,-1!==s&&(h--,(u=e[s])&&(u.__u|=2)),u==d||u.__v===d?(-1==s&&l--,"function"!=typeof f.type&&(f.__u|=4)):s!=c&&(s==c-1?l--:s==c+1?l++:(s>c?l--:l++,f.__u|=4))):n.__k[o]=d;if(h)for(o=0;o<a;o++)(u=e[o])!=d&&0==(2&u.__u)&&(u.__e==i&&(i=A(u)),B(u,u));return i}function L(n,t,e){var i,r;if("function"==typeof n.type){for(i=n.__k,r=0;i&&r<i.length;r++)i[r]&&(i[r].__=n,t=L(i[r],t,e));return t}n.__e!=t&&(t&&n.type&&!e.contains(t)&&(t=A(n)),e.insertBefore(n.__e,t||d),t=n.__e);do{t=t&&t.nextSibling}while(t!=d&&8==t.nodeType);return t}function T(n,t,e,i){var r,o,f=n.key,u=n.type,c=t[e];if(c===d||c&&f==c.key&&u===c.type&&0==(2&c.__u))return e;if(i>(c!=d&&0==(2&c.__u)?1:0))for(r=e-1,o=e+1;r>=0||o<t.length;){if(r>=0){if((c=t[r])&&0==(2&c.__u)&&f==c.key&&u===c.type)return r;r--}if(o<t.length){if((c=t[o])&&0==(2&c.__u)&&f==c.key&&u===c.type)return o;o++}}return-1}function O(n,t,e){"-"==t[0]?n.setProperty(t,e==d?"":e):n[t]=e==d?"":"number"!=typeof e||g.test(t)?e:e+"px"}function V(n,t,e,i,r){var o;n:if("style"==t)if("string"==typeof e)n.style.cssText=e;else{if("string"==typeof i&&(n.style.cssText=i=""),i)for(t in i)e&&t in e||O(n.style,t,"");if(e)for(t in e)i&&e[t]===i[t]||O(n.style,t,e[t])}else if("o"==t[0]&&"n"==t[1])o=t!=(t=t.replace(c,"$1")),t=t.toLowerCase()in n||"onFocusOut"==t||"onFocusIn"==t?t.toLowerCase().slice(2):t.slice(2),n.l||(n.l={}),n.l[t+o]=e,e?i?e.t=i.t:(e.t=s,n.addEventListener(t,o?h:a,o)):n.removeEventListener(t,o?h:a,o);else{if(r==y)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in n)try{n[t]=e==d?"":e;break n}catch(n){}"function"==typeof e||(e==d||!1===e&&"-"!=t[4]?n.removeAttribute(t):n.setAttribute(t,"popover"==t&&1==e?"":e))}}function j(n){return function(e){if(this.l){var i=this.l[e.type+n];if(e.i==d)e.i=s++;else if(e.i<i.t)return;return i(t.event?t.event(e):e)}}}function z(n,e,i,r,o,f,u,c,s,a){var h,l,p,y,v,_,m,g,x,S,A,I,P,E,H,L,T,O,V=e.type;if(e.constructor!==w)return d;128&i.__u&&(s=!!(32&i.__u),f=[c=e.__e=i.__e]),(h=t.__b)&&h(e);n:if("function"==typeof V)try{if(g=e.props,x="prototype"in V&&V.prototype.render,S=(h=V.contextType)&&r[h.__c],A=h?S?S.props.value:h.__:r,i.__c?m=(l=e.__c=i.__c).__=l.__E:(x?e.__c=l=new V(g,A):(e.__c=l=new $(g,A),l.constructor=V,l.render=D),S&&S.sub(l),l.props=g,l.state||(l.state={}),l.context=A,l.__n=r,p=l.__d=!0,l.__h=[],l._sb=[]),x&&l.__s==d&&(l.__s=l.state),x&&V.getDerivedStateFromProps!=d&&(l.__s==l.state&&(l.__s=k({},l.__s)),k(l.__s,V.getDerivedStateFromProps(g,l.__s))),y=l.props,v=l.state,l.__v=e,p)x&&V.getDerivedStateFromProps==d&&l.componentWillMount!=d&&l.componentWillMount(),x&&l.componentDidMount!=d&&l.__h.push(l.componentDidMount);else{if(x&&V.getDerivedStateFromProps==d&&g!==y&&l.componentWillReceiveProps!=d&&l.componentWillReceiveProps(g,A),!l.__e&&(l.shouldComponentUpdate!=d&&!1===l.shouldComponentUpdate(g,l.__s,A)||e.__v==i.__v)){for(e.__v!=i.__v&&(l.props=g,l.state=l.__s,l.__d=!1),e.__e=i.__e,e.__k=i.__k,e.__k.some(function(n){n&&(n.__=e)}),I=0;I<l._sb.length;I++)l.__h.push(l._sb[I]);l._sb=[],l.__h.length&&u.push(l);break n}l.componentWillUpdate!=d&&l.componentWillUpdate(g,l.__s,A),x&&l.componentDidUpdate!=d&&l.__h.push(function(){l.componentDidUpdate(y,v,_)})}if(l.context=A,l.props=g,l.__P=n,l.__e=!1,P=t.__r,E=0,x){for(l.state=l.__s,l.__d=!1,P&&P(e),h=l.render(l.props,l.state,l.context),H=0;H<l._sb.length;H++)l.__h.push(l._sb[H]);l._sb=[]}else do{l.__d=!1,P&&P(e),h=l.render(l.props,l.state,l.context),l.state=l.__s}while(l.__d&&++E<25);l.state=l.__s,l.getChildContext!=d&&(r=k(k({},r),l.getChildContext())),x&&!p&&l.getSnapshotBeforeUpdate!=d&&(_=l.getSnapshotBeforeUpdate(y,v)),T=(L=h!=d&&h.type===M&&h.key==d)?h.props.children:h,L&&(h.props.children=d),c=F(n,b(T)?T:[T],e,i,r,o,f,u,c,s,a),l.base=e.__e,e.__u&=-161,l.__h.length&&u.push(l),m&&(l.__E=l.__=d)}catch(n){if(e.__v=d,s||f!=d)if(n.then){for(e.__u|=s?160:128;c&&8==c.nodeType&&c.nextSibling;)c=c.nextSibling;f[f.indexOf(c)]=d,e.__e=c}else for(O=f.length;O--;)C(f[O]);else e.__e=i.__e,e.__k=i.__k;t.__e(n,e,i)}else f==d&&e.__v==i.__v?(e.__k=i.__k,e.__e=i.__e):c=e.__e=R(i.__e,e,i,r,o,f,u,s,a);return(h=t.diffed)&&h(e),128&e.__u?void 0:c}function N(n,e,i){for(var r=0;r<i.length;r++)q(i[r],i[++r],i[++r]);t.__c&&t.__c(e,n),n.some(function(e){try{n=e.__h,e.__h=[],n.some(function(n){n.call(e)})}catch(n){t.__e(n,e.__v)}})}function R(e,i,r,o,f,u,c,s,a){var h,l,p,m,g,k,x,S=r.props,M=i.props,$=i.type;if("svg"==$?f=y:"math"==$?f="http://www.w3.org/1998/Math/MathML":f||(f=v),u!=d)for(h=0;h<u.length;h++)if((g=u[h])&&"setAttribute"in g==!!$&&($?g.localName==$:3==g.nodeType)){e=g,u[h]=d;break}if(e==d){if($==d)return document.createTextNode(M);e=document.createElementNS(f,$,M.is&&M),s&&(t.__m&&t.__m(i,u),s=!1),u=d}if($===d)S===M||s&&e.data===M||(e.data=M);else{if(u=u&&n.call(e.childNodes),S=r.props||_,!s&&u!=d)for(S={},h=0;h<e.attributes.length;h++)S[(g=e.attributes[h]).name]=g.value;for(h in S)if(g=S[h],"children"==h);else if("dangerouslySetInnerHTML"==h)p=g;else if(!(h in M)){if("value"==h&&"defaultValue"in M||"checked"==h&&"defaultChecked"in M)continue;V(e,h,d,g,f)}for(h in M)g=M[h],"children"==h?m=g:"dangerouslySetInnerHTML"==h?l=g:"value"==h?k=g:"checked"==h?x=g:s&&"function"!=typeof g||S[h]===g||V(e,h,g,S[h],f);if(l)s||p&&(l.__html===p.__html||l.__html===e.innerHTML)||(e.innerHTML=l.__html),i.__k=[];else if(p&&(e.innerHTML=""),F("template"===i.type?e.content:e,b(m)?m:[m],i,r,o,"foreignObject"==$?v:f,u,c,u?u[0]:r.__k&&A(r,0),s,a),u!=d)for(h=u.length;h--;)C(u[h]);s||(h="value","progress"==$&&k==d?e.removeAttribute("value"):k!==w&&(k!==e[h]||"progress"==$&&!k||"option"==$&&k!==S[h])&&V(e,h,k,S[h],f),h="checked",x!==w&&x!==e[h]&&V(e,h,x,S[h],f))}return e}function q(n,e,i){try{if("function"==typeof n){var r="function"==typeof n.__u;r&&n.__u(),r&&e==d||(n.__u=n(e))}else n.current=e}catch(n){t.__e(n,i)}}function B(n,e,i){var r,o;if(t.unmount&&t.unmount(n),(r=n.ref)&&(r.current&&r.current!==n.__e||q(r,d,e)),(r=n.__c)!=d){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(n){t.__e(n,e)}r.base=r.__P=d}if(r=n.__k)for(o=0;o<r.length;o++)r[o]&&B(r[o],e,i||"function"!=typeof n.type);i||C(n.__e),n.__c=n.__=n.__e=w}function D(n,t,e){return this.constructor(n,e)}function G(e,i,r){var o,f,u,c;i==document&&(i=document.documentElement),t.__&&t.__(e,i),f=(o="function"==typeof r)?d:r&&r.__k||i.__k,u=[],c=[],z(i,e=(!o&&r||i).__k=x(M,d,[e]),f||_,_,i.namespaceURI,!o&&r?[r]:f?d:i.firstChild?n.call(i.childNodes):d,u,!o&&r?r:f?f.__e:i.firstChild,o,c),N(u,e,c)}n=m.slice,t={__e:function(n,t,e,i){for(var r,o,f;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&o.getDerivedStateFromError!=d&&(r.setState(o.getDerivedStateFromError(n)),f=r.__d),r.componentDidCatch!=d&&(r.componentDidCatch(n,i||{}),f=r.__d),f)return r.__E=r}catch(t){n=t}throw n}},e=0,i=function(n){return n!=d&&n.constructor==w},$.prototype.setState=function(n,t){var e;e=this.__s!=d&&this.__s!==this.state?this.__s:this.__s=k({},this.state),"function"==typeof n&&(n=n(k({},e),this.props)),n&&k(e,n),n!=d&&this.__v&&(t&&this._sb.push(t),P(this))},$.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),P(this))},$.prototype.render=M,r=[],f="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(n,t){return n.__v.__b-t.__v.__b},E.__r=0,c=/(PointerCapture)$|Capture$/i,s=0,a=j(!1),h=j(!0),l=0,p={__proto__:null,render:G,hydrate:function n(t,e){G(t,e,n)},createElement:x,h:x,Fragment:M,createRef:function(){return{current:d}},isValidElement:i,Component:$,cloneElement:function(t,e,i){var r,o,f,u,c=k({},t.props);for(f in t.type&&t.type.defaultProps&&(u=t.type.defaultProps),e)"key"==f?r=e[f]:"ref"==f?o=e[f]:c[f]=e[f]===w&&u!==w?u[f]:e[f];return arguments.length>2&&(c.children=arguments.length>3?n.call(arguments,2):i),S(t.type,c,r||t.key,o||t.ref,d)},createContext:function(n){function t(n){var e,i;return this.getChildContext||(e=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){e=d},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&e.forEach(function(n){n.__e=!0,P(n)})},this.sub=function(n){e.add(n);var t=n.componentWillUnmount;n.componentWillUnmount=function(){e&&e.delete(n),t&&t.call(n)}}),n.children}return t.__c="__cC"+l++,t.__=n,t.Provider=t.__l=(t.Consumer=function(n,t){return n.children(t)}).contextType=t,t},toChildArray:function n(t,e){return e=e||[],t==d||"boolean"==typeof t||(b(t)?t.some(function(t){n(t,e)}):e.push(t)),e},options:t},typeof module<"u"?module.exports=p:self.preact=p}); | ||
//# sourceMappingURL=preact.min.umd.js.map |
@@ -1,2 +0,2 @@ | ||
var n,l,t,u,i,r,o,e,f,c,s,a,h,p={},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 i,r,o,e={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=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 m(l,e,i,r,null)}function m(n,u,i,r,o){var e={type:n,props:u,key:i,ref:r,__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 b(){return{current:null}}function k(n){return n.children}function x(n,l){this.props=n,this.context=l}function S(n,l){if(null==l)return n.__?S(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?S(n):null}function C(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 C(n)}}function M(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!$.__r++||r!==l.debounceRendering)&&((r=l.debounceRendering)||o)($)}function $(){for(var n,t,u,r,o,f,c,s=1;i.length;)i.length>s&&i.sort(e),n=i.shift(),s=i.length,n.__d&&(u=void 0,o=(r=(t=n).__v).__e,f=[],c=[],t.__P&&((u=w({},r)).__v=r.__v+1,l.vnode&&l.vnode(u),j(t.__P,u,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,f,null==o?S(r):o,!!(32&r.__u),c),u.__v=r.__v,u.__.__k[u.__i]=u,z(f,u,c),u.__e!=o&&C(u)));$.__r=0}function I(n,l,t,u,i,r,o,e,f,c,s){var a,h,y,d,w,g,_=u&&u.__k||v,m=l.length;for(f=P(t,l,_,f,m),a=0;a<m;a++)null!=(y=t.__k[a])&&(h=-1===y.__i?p:_[y.__i]||p,y.__i=a,g=j(n,y,h,i,r,o,e,f,c,s),d=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&V(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,i){var r,o,e,f,c,s=t.length,a=s,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&"boolean"!=typeof o&&"function"!=typeof o?(f=r+h,(o=n.__k[r]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?m(null,o,null,null,null):d(o)?m(k,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?m(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=n,o.__b=n.__b+1,e=null,-1!==(c=o.__i=L(o,t,f,a))&&(a--,(e=t[c])&&(e.__u|=2)),null==e||null===e.__v?(-1==c&&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[r]=null;if(a)for(r=0;r<s;r++)null!=(e=t[r])&&0==(2&e.__u)&&(e.__e==u&&(u=S(e)),q(e,e));return u}function A(n,l,t){var u,i;if("function"==typeof n.type){for(u=n.__k,i=0;u&&i<u.length;i++)u[i]&&(u[i].__=n,l=A(u[i],l,t));return l}n.__e!=l&&(l&&n.type&&!t.contains(l)&&(l=S(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){return l=l||[],null==n||"boolean"==typeof n||(d(n)?n.some(function(n){H(n,l)}):l.push(n)),l}function L(n,l,t,u){var i,r,o=n.key,e=n.type,f=l[t];if(null===f||f&&o==f.key&&e===f.type&&0==(2&f.__u))return t;if(u>(null!=f&&0==(2&f.__u)?1:0))for(i=t-1,r=t+1;i>=0||r<l.length;){if(i>=0){if((f=l[i])&&0==(2&f.__u)&&o==f.key&&e===f.type)return i;i--}if(r<l.length){if((f=l[r])&&0==(2&f.__u)&&o==f.key&&e===f.type)return r;r++}}return-1}function T(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 F(n,l,t,u,i){var 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||T(n.style,l,"");if(t)for(l in t)u&&t[l]===u[l]||T(n.style,l,t[l])}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(f,"$1")),l=l.toLowerCase()in n||"onFocusOut"==l||"onFocusIn"==l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=t,t?u?t.t=u.t:(t.t=c,n.addEventListener(l,r?a:s,r)):n.removeEventListener(l,r?a:s,r);else{if("http://www.w3.org/2000/svg"==i)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"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==t?"":t;break n}catch(n){}"function"==typeof t||(null==t||!1===t&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==t?"":t))}}function O(n){return function(t){if(this.l){var u=this.l[t.type+n];if(null==t.u)t.u=c++;else if(t.u<u.t)return;return u(l.event?l.event(t):t)}}}function j(n,t,u,i,r,o,e,f,c,s){var a,h,p,v,y,_,m,b,S,C,M,$,P,A,H,L,T,F=t.type;if(void 0!==t.constructor)return null;128&u.__u&&(c=!!(32&u.__u),o=[f=t.__e=u.__e]),(a=l.__b)&&a(t);n:if("function"==typeof F)try{if(b=t.props,S="prototype"in F&&F.prototype.render,C=(a=F.contextType)&&i[a.__c],M=a?C?C.props.value:a.__:i,u.__c?m=(h=t.__c=u.__c).__=h.__E:(S?t.__c=h=new F(b,M):(t.__c=h=new x(b,M),h.constructor=F,h.render=B),C&&C.sub(h),h.props=b,h.state||(h.state={}),h.context=M,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),S&&null==h.__s&&(h.__s=h.state),S&&null!=F.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=w({},h.__s)),w(h.__s,F.getDerivedStateFromProps(b,h.__s))),v=h.props,y=h.state,h.__v=t,p)S&&null==F.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),S&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(S&&null==F.getDerivedStateFromProps&&b!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,M),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,M)||t.__v==u.__v)){for(t.__v!=u.__v&&(h.props=b,h.state=h.__s,h.__d=!1),t.__e=u.__e,t.__k=u.__k,t.__k.some(function(n){n&&(n.__=t)}),$=0;$<h._sb.length;$++)h.__h.push(h._sb[$]);h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,M),S&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,_)})}if(h.context=M,h.props=b,h.__P=n,h.__e=!1,P=l.__r,A=0,S){for(h.state=h.__s,h.__d=!1,P&&P(t),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[]}else do{h.__d=!1,P&&P(t),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++A<25);h.state=h.__s,null!=h.getChildContext&&(i=w(w({},i),h.getChildContext())),S&&!p&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(v,y)),f=I(n,d(L=null!=a&&a.type===k&&null==a.key?a.props.children:a)?L:[L],t,u,i,r,o,e,f,c,s),h.base=t.__e,t.__u&=-161,h.__h.length&&e.push(h),m&&(h.__E=h.__=null)}catch(n){if(t.__v=null,c||null!=o)if(n.then){for(t.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;o[o.indexOf(f)]=null,t.__e=f}else for(T=o.length;T--;)g(o[T]);else t.__e=u.__e,t.__k=u.__k;l.__e(n,t,u)}else null==o&&t.__v==u.__v?(t.__k=u.__k,t.__e=u.__e):f=t.__e=N(u.__e,t,u,i,r,o,e,c,s);return(a=l.diffed)&&a(t),128&t.__u?void 0:f}function z(n,t,u){for(var i=0;i<u.length;i++)V(u[i],u[++i],u[++i]);l.__c&&l.__c(t,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(n){n.call(t)})}catch(n){l.__e(n,t.__v)}})}function N(t,u,i,r,o,e,f,c,s){var a,h,v,y,w,_,m,b=i.props,k=u.props,x=u.type;if("svg"==x?o="http://www.w3.org/2000/svg":"math"==x?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((w=e[a])&&"setAttribute"in w==!!x&&(x?w.localName==x:3==w.nodeType)){t=w,e[a]=null;break}if(null==t){if(null==x)return document.createTextNode(k);t=document.createElementNS(o,x,k.is&&k),c&&(l.__m&&l.__m(u,e),c=!1),e=null}if(null===x)b===k||c&&t.data===k||(t.data=k);else{if(e=e&&n.call(t.childNodes),b=i.props||p,!c&&null!=e)for(b={},a=0;a<t.attributes.length;a++)b[(w=t.attributes[a]).name]=w.value;for(a in b)if(w=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)v=w;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;F(t,a,null,w,o)}for(a in k)w=k[a],"children"==a?y=w:"dangerouslySetInnerHTML"==a?h=w:"value"==a?_=w:"checked"==a?m=w:c&&"function"!=typeof w||b[a]===w||F(t,a,w,b[a],o);if(h)c||v&&(h.__html===v.__html||h.__html===t.innerHTML)||(t.innerHTML=h.__html),u.__k=[];else if(v&&(t.innerHTML=""),I("template"===u.type?t.content:t,d(y)?y:[y],u,i,r,"foreignObject"==x?"http://www.w3.org/1999/xhtml":o,e,f,e?e[0]:i.__k&&S(i,0),c,s),null!=e)for(a=e.length;a--;)g(e[a]);c||(a="value","progress"==x&&null==_?t.removeAttribute("value"):void 0!==_&&(_!==t[a]||"progress"==x&&!_||"option"==x&&_!==b[a])&&F(t,a,_,b[a],o),a="checked",void 0!==m&&m!==t[a]&&F(t,a,m,b[a],o))}return t}function V(n,t,u){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==t||(n.__u=n(t))}else n.current=t}catch(n){l.__e(n,u)}}function q(n,t,u){var i,r;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||V(i,null,t)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,t)}i.base=i.__P=null}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&q(i[r],t,u||"function"!=typeof n.type);u||g(n.__e),n.__c=n.__=n.__e=void 0}function B(n,l,t){return this.constructor(n,t)}function D(t,u,i){var r,o,e,f;u==document&&(u=document.documentElement),l.__&&l.__(t,u),o=(r="function"==typeof i)?null:i&&i.__k||u.__k,e=[],f=[],j(u,t=(!r&&i||u).__k=_(k,null,[t]),o||p,p,u.namespaceURI,!r&&i?[i]:o?null:u.firstChild?n.call(u.childNodes):null,e,!r&&i?i:o?o.__e:u.firstChild,r,f),z(e,t,f)}function E(n,l){D(n,l,E)}function G(l,t,u){var i,r,o,e,f=w({},l.props);for(o in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),t)"key"==o?i=t[o]:"ref"==o?r=t[o]:f[o]=void 0===t[o]&&void 0!==e?e[o]:t[o];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):u),m(l.type,f,i||l.key,r||l.ref,null)}function J(n){function l(n){var t,u;return this.getChildContext||(t=new Set,(u={})[l.__c]=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,M(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 l.__c="__cC"+h++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l}n=v.slice,l={__e:function(n,l,t,u){for(var i,r,o;l=l.__;)if((i=l.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,u||{}),o=i.__d),o)return i.__E=i}catch(l){n=l}throw n}},t=0,u=function(n){return null!=n&&null==n.constructor},x.prototype.setState=function(n,l){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=w({},this.state),"function"==typeof n&&(n=n(w({},t),this.props)),n&&w(t,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},x.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},x.prototype.render=k,i=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e=function(n,l){return n.__v.__b-l.__v.__b},$.__r=0,f=/(PointerCapture)$|Capture$/i,c=0,s=O(!1),a=O(!0),h=0;export{x as Component,k as Fragment,G as cloneElement,J as createContext,_ as createElement,b as createRef,_ as h,E as hydrate,u as isValidElement,l as options,D as render,H as toChildArray}; | ||
var n,l,u,t,i,r,o,e,f,c,s,a,h,p={},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 u in l)n[u]=l[u];return n}function g(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function _(l,u,t){var i,r,o,e={};for(o in u)"key"==o?i=u[o]:"ref"==o?r=u[o]:e[o]=u[o];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps)void 0===e[o]&&(e[o]=l.defaultProps[o]);return m(l,e,i,r,null)}function m(n,t,i,r,o){var e={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++u:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(e),e}function b(){return{current:null}}function k(n){return n.children}function x(n,l){this.props=n,this.context=l}function S(n,l){if(null==l)return n.__?S(n.__,n.__i+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?S(n):null}function C(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 C(n)}}function M(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!$.__r++||r!==l.debounceRendering)&&((r=l.debounceRendering)||o)($)}function $(){for(var n,u,t,r,o,f,c,s=1;i.length;)i.length>s&&i.sort(e),n=i.shift(),s=i.length,n.__d&&(t=void 0,o=(r=(u=n).__v).__e,f=[],c=[],u.__P&&((t=w({},r)).__v=r.__v+1,l.vnode&&l.vnode(t),j(u.__P,t,r,u.__n,u.__P.namespaceURI,32&r.__u?[o]:null,f,null==o?S(r):o,!!(32&r.__u),c),t.__v=r.__v,t.__.__k[t.__i]=t,z(f,t,c),t.__e!=o&&C(t)));$.__r=0}function I(n,l,u,t,i,r,o,e,f,c,s){var a,h,y,d,w,g,_=t&&t.__k||v,m=l.length;for(f=P(u,l,_,f,m),a=0;a<m;a++)null!=(y=u.__k[a])&&(h=-1===y.__i?p:_[y.__i]||p,y.__i=a,g=j(n,y,h,i,r,o,e,f,c,s),d=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&V(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 u.__e=w,f}function P(n,l,u,t,i){var r,o,e,f,c,s=u.length,a=s,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&"boolean"!=typeof o&&"function"!=typeof o?(f=r+h,(o=n.__k[r]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?m(null,o,null,null,null):d(o)?m(k,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?m(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=n,o.__b=n.__b+1,e=null,-1!==(c=o.__i=L(o,u,f,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null===e.__v?(-1==c&&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[r]=null;if(a)for(r=0;r<s;r++)null!=(e=u[r])&&0==(2&e.__u)&&(e.__e==t&&(t=S(e)),q(e,e));return t}function A(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=A(t[i],l,u));return l}n.__e!=l&&(l&&n.type&&!u.contains(l)&&(l=S(n)),u.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){return l=l||[],null==n||"boolean"==typeof n||(d(n)?n.some(function(n){H(n,l)}):l.push(n)),l}function L(n,l,u,t){var i,r,o=n.key,e=n.type,f=l[u];if(null===f||f&&o==f.key&&e===f.type&&0==(2&f.__u))return u;if(t>(null!=f&&0==(2&f.__u)?1:0))for(i=u-1,r=u+1;i>=0||r<l.length;){if(i>=0){if((f=l[i])&&0==(2&f.__u)&&o==f.key&&e===f.type)return i;i--}if(r<l.length){if((f=l[r])&&0==(2&f.__u)&&o==f.key&&e===f.type)return r;r++}}return-1}function T(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 F(n,l,u,t,i){var r;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||T(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||T(n.style,l,u[l])}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(f,"$1")),l=l.toLowerCase()in n||"onFocusOut"==l||"onFocusIn"==l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?t?u.u=t.u:(u.u=c,n.addEventListener(l,r?a:s,r)):n.removeEventListener(l,r?a:s,r);else{if("http://www.w3.org/2000/svg"==i)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"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u))}}function O(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=c++;else if(u.t<t.u)return;return t(l.event?l.event(u):u)}}}function j(n,u,t,i,r,o,e,f,c,s){var a,h,p,v,y,_,m,b,S,C,M,$,P,A,H,L,T,F,O=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),o=[f=u.__e=t.__e]),(a=l.__b)&&a(u);n:if("function"==typeof O)try{if(b=u.props,S="prototype"in O&&O.prototype.render,C=(a=O.contextType)&&i[a.__c],M=a?C?C.props.value:a.__:i,t.__c?m=(h=u.__c=t.__c).__=h.__E:(S?u.__c=h=new O(b,M):(u.__c=h=new x(b,M),h.constructor=O,h.render=B),C&&C.sub(h),h.props=b,h.state||(h.state={}),h.context=M,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),S&&null==h.__s&&(h.__s=h.state),S&&null!=O.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=w({},h.__s)),w(h.__s,O.getDerivedStateFromProps(b,h.__s))),v=h.props,y=h.state,h.__v=u,p)S&&null==O.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),S&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(S&&null==O.getDerivedStateFromProps&&b!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,M),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,M)||u.__v==t.__v)){for(u.__v!=t.__v&&(h.props=b,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u)}),$=0;$<h._sb.length;$++)h.__h.push(h._sb[$]);h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,M),S&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,_)})}if(h.context=M,h.props=b,h.__P=n,h.__e=!1,P=l.__r,A=0,S){for(h.state=h.__s,h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[]}else do{h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++A<25);h.state=h.__s,null!=h.getChildContext&&(i=w(w({},i),h.getChildContext())),S&&!p&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(v,y)),T=(L=null!=a&&a.type===k&&null==a.key)?a.props.children:a,L&&(a.props.children=null),f=I(n,d(T)?T:[T],u,t,i,r,o,e,f,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&e.push(h),m&&(h.__E=h.__=null)}catch(n){if(u.__v=null,c||null!=o)if(n.then){for(u.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;o[o.indexOf(f)]=null,u.__e=f}else for(F=o.length;F--;)g(o[F]);else u.__e=t.__e,u.__k=t.__k;l.__e(n,u,t)}else null==o&&u.__v==t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=N(t.__e,u,t,i,r,o,e,c,s);return(a=l.diffed)&&a(u),128&u.__u?void 0:f}function z(n,u,t){for(var i=0;i<t.length;i++)V(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function N(u,t,i,r,o,e,f,c,s){var a,h,v,y,w,_,m,b=i.props,k=t.props,x=t.type;if("svg"==x?o="http://www.w3.org/2000/svg":"math"==x?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((w=e[a])&&"setAttribute"in w==!!x&&(x?w.localName==x:3==w.nodeType)){u=w,e[a]=null;break}if(null==u){if(null==x)return document.createTextNode(k);u=document.createElementNS(o,x,k.is&&k),c&&(l.__m&&l.__m(t,e),c=!1),e=null}if(null===x)b===k||c&&u.data===k||(u.data=k);else{if(e=e&&n.call(u.childNodes),b=i.props||p,!c&&null!=e)for(b={},a=0;a<u.attributes.length;a++)b[(w=u.attributes[a]).name]=w.value;for(a in b)if(w=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)v=w;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;F(u,a,null,w,o)}for(a in k)w=k[a],"children"==a?y=w:"dangerouslySetInnerHTML"==a?h=w:"value"==a?_=w:"checked"==a?m=w:c&&"function"!=typeof w||b[a]===w||F(u,a,w,b[a],o);if(h)c||v&&(h.__html===v.__html||h.__html===u.innerHTML)||(u.innerHTML=h.__html),t.__k=[];else if(v&&(u.innerHTML=""),I("template"===t.type?u.content:u,d(y)?y:[y],t,i,r,"foreignObject"==x?"http://www.w3.org/1999/xhtml":o,e,f,e?e[0]:i.__k&&S(i,0),c,s),null!=e)for(a=e.length;a--;)g(e[a]);c||(a="value","progress"==x&&null==_?u.removeAttribute("value"):void 0!==_&&(_!==u[a]||"progress"==x&&!_||"option"==x&&_!==b[a])&&F(u,a,_,b[a],o),a="checked",void 0!==m&&m!==u[a]&&F(u,a,m,b[a],o))}return u}function V(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u))}else n.current=u}catch(n){l.__e(n,t)}}function q(n,u,t){var i,r;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||V(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,u)}i.base=i.__P=null}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&q(i[r],u,t||"function"!=typeof n.type);t||g(n.__e),n.__c=n.__=n.__e=void 0}function B(n,l,u){return this.constructor(n,u)}function D(u,t,i){var r,o,e,f;t==document&&(t=document.documentElement),l.__&&l.__(u,t),o=(r="function"==typeof i)?null:i&&i.__k||t.__k,e=[],f=[],j(t,u=(!r&&i||t).__k=_(k,null,[u]),o||p,p,t.namespaceURI,!r&&i?[i]:o?null:t.firstChild?n.call(t.childNodes):null,e,!r&&i?i:o?o.__e:t.firstChild,r,f),z(e,u,f)}function E(n,l){D(n,l,E)}function G(l,u,t){var i,r,o,e,f=w({},l.props);for(o in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),u)"key"==o?i=u[o]:"ref"==o?r=u[o]:f[o]=void 0===u[o]&&void 0!==e?e[o]:u[o];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),m(l.type,f,i||l.key,r||l.ref,null)}function J(n){function l(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l.__c]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.forEach(function(n){n.__e=!0,M(n)})},this.sub=function(n){u.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.delete(n),l&&l.call(n)}}),n.children}return l.__c="__cC"+h++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l}n=v.slice,l={__e:function(n,l,u,t){for(var i,r,o;l=l.__;)if((i=l.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),o=i.__d),o)return i.__E=i}catch(l){n=l}throw n}},u=0,t=function(n){return null!=n&&null==n.constructor},x.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=w({},this.state),"function"==typeof n&&(n=n(w({},u),this.props)),n&&w(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},x.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},x.prototype.render=k,i=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e=function(n,l){return n.__v.__b-l.__v.__b},$.__r=0,f=/(PointerCapture)$|Capture$/i,c=0,s=O(!1),a=O(!0),h=0;export{x as Component,k as Fragment,G as cloneElement,J as createContext,_ as createElement,b as createRef,_ as h,E as hydrate,t as isValidElement,l as options,D as render,H as toChildArray}; | ||
//# sourceMappingURL=preact.module.js.map |
@@ -1,2 +0,2 @@ | ||
!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,t,u,i,e,r,f,o,c,s,a,h,p,y="http://www.w3.org/2000/svg",v="http://www.w3.org/1999/xhtml",d=void 0,w={},g=[],_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m=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 x(n,t,u){var i,e,r,f={};for(r in t)"key"==r?i=t[r]:"ref"==r?e=t[r]:f[r]=t[r];if(arguments.length>2&&(f.children=arguments.length>3?l.call(arguments,2):u),"function"==typeof n&&null!=n.defaultProps)for(r in n.defaultProps)f[r]===d&&(f[r]=n.defaultProps[r]);return S(n,f,i,e,null)}function S(n,l,i,e,r){var f={type:n,props:l,key:i,ref:e,__k:null,__:null,__b:0,__e:null,__c:null,constructor:d,__v:null==r?++u:r,__i:-1,__u:0};return null==r&&null!=t.vnode&&t.vnode(f),f}function M(n){return n.children}function T(n,l){this.props=n,this.context=l}function $(n,l){if(null==l)return n.__?$(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?$(n):null}function C(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 C(n)}}function I(n){(!n.__d&&(n.__d=!0)&&e.push(n)&&!P.__r++||r!==t.debounceRendering)&&((r=t.debounceRendering)||f)(P)}function P(){for(var n,l,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=(l=n).__v).__e,f=[],c=[],l.__P&&((u=b({},i)).__v=i.__v+1,t.vnode&&t.vnode(u),N(l.__P,u,i,l.__n,l.__P.namespaceURI,32&i.__u?[r]:null,f,null==r?$(i):r,!!(32&i.__u),c),u.__v=i.__v,u.__.__k[u.__i]=u,V(f,u,c),u.__e!=r&&C(u)));P.__r=0}function A(n,l,t,u,i,e,r,f,o,c,s){var a,h,p,y,v,_,m=u&&u.__k||g,b=l.length;for(o=H(t,l,m,o,b),a=0;a<b;a++)null!=(p=t.__k[a])&&(h=-1===p.__i?w:m[p.__i]||w,p.__i=a,_=N(n,p,h,i,e,r,f,o,c,s),y=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&B(h.ref,null,p),s.push(p.ref,p.__c||y,p)),null==v&&null!=y&&(v=y),4&p.__u||h.__k===p.__k?o=L(p,o,n):"function"==typeof p.type&&_!==d?o=_:y&&(o=y.nextSibling),p.__u&=-7);return t.__e=v,o}function H(n,l,t,u,i){var e,r,f,o,c,s=t.length,a=s,h=0;for(n.__k=new Array(i),e=0;e<i;e++)null!=(r=l[e])&&"boolean"!=typeof r&&"function"!=typeof r?(o=e+h,(r=n.__k[e]="string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?S(null,r,null,null,null):m(r)?S(M,{children:r},null,null,null):r.constructor===d&&r.__b>0?S(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r).__=n,r.__b=n.__b+1,f=null,-1!==(c=r.__i=j(r,t,o,a))&&(a--,(f=t[c])&&(f.__u|=2)),null==f||null===f.__v?(-1==c&&h--,"function"!=typeof r.type&&(r.__u|=4)):c!=o&&(c==o-1?h--:c==o+1?h++:(c>o?h--:h++,r.__u|=4))):n.__k[e]=null;if(a)for(e=0;e<s;e++)null!=(f=t[e])&&0==(2&f.__u)&&(f.__e==u&&(u=$(f)),D(f,f));return u}function L(n,l,t){var u,i;if("function"==typeof n.type){for(u=n.__k,i=0;u&&i<u.length;i++)u[i]&&(u[i].__=n,l=L(u[i],l,t));return l}n.__e!=l&&(l&&n.type&&!t.contains(l)&&(l=$(n)),t.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8==l.nodeType);return l}function j(n,l,t,u){var i,e,r=n.key,f=n.type,o=l[t];if(null===o||o&&r==o.key&&f===o.type&&0==(2&o.__u))return t;if(u>(null!=o&&0==(2&o.__u)?1:0))for(i=t-1,e=t+1;i>=0||e<l.length;){if(i>=0){if((o=l[i])&&0==(2&o.__u)&&r==o.key&&f===o.type)return i;i--}if(e<l.length){if((o=l[e])&&0==(2&o.__u)&&r==o.key&&f===o.type)return e;e++}}return-1}function F(n,l,t){"-"==l[0]?n.setProperty(l,null==t?"":t):n[l]=null==t?"":"number"!=typeof t||_.test(l)?t:t+"px"}function O(n,l,t,u,i){var e;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])e=l!=(l=l.replace(c,"$1")),l=l.toLowerCase()in n||"onFocusOut"==l||"onFocusIn"==l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+e]=t,t?u?t.t=u.t:(t.t=s,n.addEventListener(l,e?h:a,e)):n.removeEventListener(l,e?h:a,e);else{if(i==y)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"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==t?"":t;break n}catch(n){}"function"==typeof t||(null==t||!1===t&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==t?"":t))}}function z(n){return function(l){if(this.l){var u=this.l[l.type+n];if(null==l.u)l.u=s++;else if(l.u<u.t)return;return u(t.event?t.event(l):l)}}}function N(n,l,u,i,e,r,f,o,c,s){var a,h,p,y,v,w,g,_,x,S,$,C,I,P,H,L,j,F=l.type;if(l.constructor!==d)return null;128&u.__u&&(c=!!(32&u.__u),r=[o=l.__e=u.__e]),(a=t.__b)&&a(l);n:if("function"==typeof F)try{if(_=l.props,x="prototype"in F&&F.prototype.render,S=(a=F.contextType)&&i[a.__c],$=a?S?S.props.value:a.__:i,u.__c?g=(h=l.__c=u.__c).__=h.__E:(x?l.__c=h=new F(_,$):(l.__c=h=new T(_,$),h.constructor=F,h.render=E),S&&S.sub(h),h.props=_,h.state||(h.state={}),h.context=$,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),x&&null==h.__s&&(h.__s=h.state),x&&null!=F.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=b({},h.__s)),b(h.__s,F.getDerivedStateFromProps(_,h.__s))),y=h.props,v=h.state,h.__v=l,p)x&&null==F.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),x&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(x&&null==F.getDerivedStateFromProps&&_!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(_,$),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(_,h.__s,$)||l.__v==u.__v)){for(l.__v!=u.__v&&(h.props=_,h.state=h.__s,h.__d=!1),l.__e=u.__e,l.__k=u.__k,l.__k.some(function(n){n&&(n.__=l)}),C=0;C<h._sb.length;C++)h.__h.push(h._sb[C]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(_,h.__s,$),x&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,v,w)})}if(h.context=$,h.props=_,h.__P=n,h.__e=!1,I=t.__r,P=0,x){for(h.state=h.__s,h.__d=!1,I&&I(l),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[]}else do{h.__d=!1,I&&I(l),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++P<25);h.state=h.__s,null!=h.getChildContext&&(i=b(b({},i),h.getChildContext())),x&&!p&&null!=h.getSnapshotBeforeUpdate&&(w=h.getSnapshotBeforeUpdate(y,v)),o=A(n,m(L=null!=a&&a.type===M&&null==a.key?a.props.children:a)?L:[L],l,u,i,e,r,f,o,c,s),h.base=l.__e,l.__u&=-161,h.__h.length&&f.push(h),g&&(h.__E=h.__=null)}catch(n){if(l.__v=null,c||null!=r)if(n.then){for(l.__u|=c?160:128;o&&8==o.nodeType&&o.nextSibling;)o=o.nextSibling;r[r.indexOf(o)]=null,l.__e=o}else for(j=r.length;j--;)k(r[j]);else l.__e=u.__e,l.__k=u.__k;t.__e(n,l,u)}else null==r&&l.__v==u.__v?(l.__k=u.__k,l.__e=u.__e):o=l.__e=q(u.__e,l,u,i,e,r,f,c,s);return(a=t.diffed)&&a(l),128&l.__u?void 0:o}function V(n,l,u){for(var i=0;i<u.length;i++)B(u[i],u[++i],u[++i]);t.__c&&t.__c(l,n),n.some(function(l){try{n=l.__h,l.__h=[],n.some(function(n){n.call(l)})}catch(n){t.__e(n,l.__v)}})}function q(n,u,i,e,r,f,o,c,s){var a,h,p,g,_,b,x,S=i.props,M=u.props,T=u.type;if("svg"==T?r=y:"math"==T?r="http://www.w3.org/1998/Math/MathML":r||(r=v),null!=f)for(a=0;a<f.length;a++)if((_=f[a])&&"setAttribute"in _==!!T&&(T?_.localName==T:3==_.nodeType)){n=_,f[a]=null;break}if(null==n){if(null==T)return document.createTextNode(M);n=document.createElementNS(r,T,M.is&&M),c&&(t.__m&&t.__m(u,f),c=!1),f=null}if(null===T)S===M||c&&n.data===M||(n.data=M);else{if(f=f&&l.call(n.childNodes),S=i.props||w,!c&&null!=f)for(S={},a=0;a<n.attributes.length;a++)S[(_=n.attributes[a]).name]=_.value;for(a in S)if(_=S[a],"children"==a);else if("dangerouslySetInnerHTML"==a)p=_;else if(!(a in M)){if("value"==a&&"defaultValue"in M||"checked"==a&&"defaultChecked"in M)continue;O(n,a,null,_,r)}for(a in M)_=M[a],"children"==a?g=_:"dangerouslySetInnerHTML"==a?h=_:"value"==a?b=_:"checked"==a?x=_:c&&"function"!=typeof _||S[a]===_||O(n,a,_,S[a],r);if(h)c||p&&(h.__html===p.__html||h.__html===n.innerHTML)||(n.innerHTML=h.__html),u.__k=[];else if(p&&(n.innerHTML=""),A("template"===u.type?n.content:n,m(g)?g:[g],u,i,e,"foreignObject"==T?v:r,f,o,f?f[0]:i.__k&&$(i,0),c,s),null!=f)for(a=f.length;a--;)k(f[a]);c||(a="value","progress"==T&&null==b?n.removeAttribute("value"):b!==d&&(b!==n[a]||"progress"==T&&!b||"option"==T&&b!==S[a])&&O(n,a,b,S[a],r),a="checked",x!==d&&x!==n[a]&&O(n,a,x,S[a],r))}return n}function B(n,l,u){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==l||(n.__u=n(l))}else n.current=l}catch(n){t.__e(n,u)}}function D(n,l,u){var i,e;if(t.unmount&&t.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||B(i,null,l)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){t.__e(n,l)}i.base=i.__P=null}if(i=n.__k)for(e=0;e<i.length;e++)i[e]&&D(i[e],l,u||"function"!=typeof n.type);u||k(n.__e),n.__c=n.__=n.__e=d}function E(n,l,t){return this.constructor(n,t)}function G(n,u,i){var e,r,f,o;u==document&&(u=document.documentElement),t.__&&t.__(n,u),r=(e="function"==typeof i)?null:i&&i.__k||u.__k,f=[],o=[],N(u,n=(!e&&i||u).__k=x(M,null,[n]),r||w,w,u.namespaceURI,!e&&i?[i]:r?null:u.firstChild?l.call(u.childNodes):null,f,!e&&i?i:r?r.__e:u.firstChild,e,o),V(f,n,o)}l=g.slice,t={__e:function(n,l,t,u){for(var i,e,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((e=i.constructor)&&null!=e.getDerivedStateFromError&&(i.setState(e.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,u||{}),r=i.__d),r)return i.__E=i}catch(l){n=l}throw n}},u=0,i=function(n){return null!=n&&n.constructor==d},T.prototype.setState=function(n,l){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=b({},this.state),"function"==typeof n&&(n=n(b({},t),this.props)),n&&b(t,n),null!=n&&this.__v&&(l&&this._sb.push(l),I(this))},T.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),I(this))},T.prototype.render=M,e=[],f="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,o=function(n,l){return n.__v.__b-l.__v.__b},P.__r=0,c=/(PointerCapture)$|Capture$/i,s=0,a=z(!1),h=z(!0),p=0,n.Component=T,n.Fragment=M,n.cloneElement=function(n,t,u){var i,e,r,f,o=b({},n.props);for(r in n.type&&n.type.defaultProps&&(f=n.type.defaultProps),t)"key"==r?i=t[r]:"ref"==r?e=t[r]:o[r]=t[r]===d&&f!==d?f[r]:t[r];return arguments.length>2&&(o.children=arguments.length>3?l.call(arguments,2):u),S(n.type,o,i||n.key,e||n.ref,null)},n.createContext=function(n){function l(n){var t,u;return this.getChildContext||(t=new Set,(u={})[l.__c]=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 l.__c="__cC"+p++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l},n.createElement=x,n.createRef=function(){return{current:null}},n.h=x,n.hydrate=function n(l,t){G(l,t,n)},n.isValidElement=i,n.options=t,n.render=G,n.toChildArray=function n(l,t){return t=t||[],null==l||"boolean"==typeof l||(m(l)?l.some(function(l){n(l,t)}):t.push(l)),t}}); | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n||self).preact={})}(this,function(n){var t,i,e,r,f,o,u,c,s,a,h,p,l,y="http://www.w3.org/2000/svg",v="http://www.w3.org/1999/xhtml",d=null,w=void 0,g={},_=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function k(n,t){for(var i in t)n[i]=t[i];return n}function x(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function S(n,i,e){var r,f,o,u={};for(o in i)"key"==o?r=i[o]:"ref"==o?f=i[o]:u[o]=i[o];if(arguments.length>2&&(u.children=arguments.length>3?t.call(arguments,2):e),"function"==typeof n&&n.defaultProps!=d)for(o in n.defaultProps)u[o]===w&&(u[o]=n.defaultProps[o]);return M(n,u,r,f,d)}function M(n,t,r,f,o){var u={type:n,props:t,key:r,ref:f,__k:d,__:d,__b:0,__e:d,__c:d,constructor:w,__v:o==d?++e:o,__i:-1,__u:0};return o==d&&i.vnode!=d&&i.vnode(u),u}function T(n){return n.children}function $(n,t){this.props=n,this.context=t}function C(n,t){if(t==d)return n.__?C(n.__,n.__i+1):d;for(var i;t<n.__k.length;t++)if((i=n.__k[t])!=d&&i.__e!=d)return i.__e;return"function"==typeof n.type?C(n):d}function I(n){var t,i;if((n=n.__)!=d&&n.__c!=d){for(n.__e=n.__c.base=d,t=0;t<n.__k.length;t++)if((i=n.__k[t])!=d&&i.__e!=d){n.__e=n.__c.base=i.__e;break}return I(n)}}function P(n){(!n.__d&&(n.__d=!0)&&f.push(n)&&!A.__r++||o!==i.debounceRendering)&&((o=i.debounceRendering)||u)(A)}function A(){for(var n,t,e,r,o,u,s,a=1;f.length;)f.length>a&&f.sort(c),n=f.shift(),a=f.length,n.__d&&(e=void 0,o=(r=(t=n).__v).__e,u=[],s=[],t.__P&&((e=k({},r)).__v=r.__v+1,i.vnode&&i.vnode(e),V(t.__P,e,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:d,u,o==d?C(r):o,!!(32&r.__u),s),e.__v=r.__v,e.__.__k[e.__i]=e,q(u,e,s),e.__e!=o&&I(e)));A.__r=0}function H(n,t,i,e,r,f,o,u,c,s,a){var h,p,l,y,v,m,b=e&&e.__k||_,k=t.length;for(c=L(i,t,b,c,k),h=0;h<k;h++)(l=i.__k[h])!=d&&(p=-1===l.__i?g:b[l.__i]||g,l.__i=h,m=V(n,l,p,r,f,o,u,c,s,a),y=l.__e,l.ref&&p.ref!=l.ref&&(p.ref&&D(p.ref,d,l),a.push(l.ref,l.__c||y,l)),v==d&&y!=d&&(v=y),4&l.__u||p.__k===l.__k?c=j(l,c,n):"function"==typeof l.type&&m!==w?c=m:y&&(c=y.nextSibling),l.__u&=-7);return i.__e=v,c}function L(n,t,i,e,r){var f,o,u,c,s,a=i.length,h=a,p=0;for(n.__k=new Array(r),f=0;f<r;f++)(o=t[f])!=d&&"boolean"!=typeof o&&"function"!=typeof o?(c=f+p,(o=n.__k[f]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?M(d,o,d,d,d):b(o)?M(T,{children:o},d,d,d):o.constructor===w&&o.__b>0?M(o.type,o.props,o.key,o.ref?o.ref:d,o.__v):o).__=n,o.__b=n.__b+1,s=o.__i=F(o,i,c,h),u=d,-1!==s&&(h--,(u=i[s])&&(u.__u|=2)),u==d||u.__v===d?(-1==s&&p--,"function"!=typeof o.type&&(o.__u|=4)):s!=c&&(s==c-1?p--:s==c+1?p++:(s>c?p--:p++,o.__u|=4))):n.__k[f]=d;if(h)for(f=0;f<a;f++)(u=i[f])!=d&&0==(2&u.__u)&&(u.__e==e&&(e=C(u)),E(u,u));return e}function j(n,t,i){var e,r;if("function"==typeof n.type){for(e=n.__k,r=0;e&&r<e.length;r++)e[r]&&(e[r].__=n,t=j(e[r],t,i));return t}n.__e!=t&&(t&&n.type&&!i.contains(t)&&(t=C(n)),i.insertBefore(n.__e,t||d),t=n.__e);do{t=t&&t.nextSibling}while(t!=d&&8==t.nodeType);return t}function F(n,t,i,e){var r,f,o=n.key,u=n.type,c=t[i];if(c===d||c&&o==c.key&&u===c.type&&0==(2&c.__u))return i;if(e>(c!=d&&0==(2&c.__u)?1:0))for(r=i-1,f=i+1;r>=0||f<t.length;){if(r>=0){if((c=t[r])&&0==(2&c.__u)&&o==c.key&&u===c.type)return r;r--}if(f<t.length){if((c=t[f])&&0==(2&c.__u)&&o==c.key&&u===c.type)return f;f++}}return-1}function O(n,t,i){"-"==t[0]?n.setProperty(t,i==d?"":i):n[t]=i==d?"":"number"!=typeof i||m.test(t)?i:i+"px"}function z(n,t,i,e,r){var f;n:if("style"==t)if("string"==typeof i)n.style.cssText=i;else{if("string"==typeof e&&(n.style.cssText=e=""),e)for(t in e)i&&t in i||O(n.style,t,"");if(i)for(t in i)e&&i[t]===e[t]||O(n.style,t,i[t])}else if("o"==t[0]&&"n"==t[1])f=t!=(t=t.replace(s,"$1")),t=t.toLowerCase()in n||"onFocusOut"==t||"onFocusIn"==t?t.toLowerCase().slice(2):t.slice(2),n.l||(n.l={}),n.l[t+f]=i,i?e?i.t=e.t:(i.t=a,n.addEventListener(t,f?p:h,f)):n.removeEventListener(t,f?p:h,f);else{if(r==y)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in n)try{n[t]=i==d?"":i;break n}catch(n){}"function"==typeof i||(i==d||!1===i&&"-"!=t[4]?n.removeAttribute(t):n.setAttribute(t,"popover"==t&&1==i?"":i))}}function N(n){return function(t){if(this.l){var e=this.l[t.type+n];if(t.i==d)t.i=a++;else if(t.i<e.t)return;return e(i.event?i.event(t):t)}}}function V(n,t,e,r,f,o,u,c,s,a){var h,p,l,y,v,g,_,m,S,M,C,I,P,A,L,j,F,O,z=t.type;if(t.constructor!==w)return d;128&e.__u&&(s=!!(32&e.__u),o=[c=t.__e=e.__e]),(h=i.__b)&&h(t);n:if("function"==typeof z)try{if(m=t.props,S="prototype"in z&&z.prototype.render,M=(h=z.contextType)&&r[h.__c],C=h?M?M.props.value:h.__:r,e.__c?_=(p=t.__c=e.__c).__=p.__E:(S?t.__c=p=new z(m,C):(t.__c=p=new $(m,C),p.constructor=z,p.render=G),M&&M.sub(p),p.props=m,p.state||(p.state={}),p.context=C,p.__n=r,l=p.__d=!0,p.__h=[],p._sb=[]),S&&p.__s==d&&(p.__s=p.state),S&&z.getDerivedStateFromProps!=d&&(p.__s==p.state&&(p.__s=k({},p.__s)),k(p.__s,z.getDerivedStateFromProps(m,p.__s))),y=p.props,v=p.state,p.__v=t,l)S&&z.getDerivedStateFromProps==d&&p.componentWillMount!=d&&p.componentWillMount(),S&&p.componentDidMount!=d&&p.__h.push(p.componentDidMount);else{if(S&&z.getDerivedStateFromProps==d&&m!==y&&p.componentWillReceiveProps!=d&&p.componentWillReceiveProps(m,C),!p.__e&&(p.shouldComponentUpdate!=d&&!1===p.shouldComponentUpdate(m,p.__s,C)||t.__v==e.__v)){for(t.__v!=e.__v&&(p.props=m,p.state=p.__s,p.__d=!1),t.__e=e.__e,t.__k=e.__k,t.__k.some(function(n){n&&(n.__=t)}),I=0;I<p._sb.length;I++)p.__h.push(p._sb[I]);p._sb=[],p.__h.length&&u.push(p);break n}p.componentWillUpdate!=d&&p.componentWillUpdate(m,p.__s,C),S&&p.componentDidUpdate!=d&&p.__h.push(function(){p.componentDidUpdate(y,v,g)})}if(p.context=C,p.props=m,p.__P=n,p.__e=!1,P=i.__r,A=0,S){for(p.state=p.__s,p.__d=!1,P&&P(t),h=p.render(p.props,p.state,p.context),L=0;L<p._sb.length;L++)p.__h.push(p._sb[L]);p._sb=[]}else do{p.__d=!1,P&&P(t),h=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++A<25);p.state=p.__s,p.getChildContext!=d&&(r=k(k({},r),p.getChildContext())),S&&!l&&p.getSnapshotBeforeUpdate!=d&&(g=p.getSnapshotBeforeUpdate(y,v)),F=(j=h!=d&&h.type===T&&h.key==d)?h.props.children:h,j&&(h.props.children=d),c=H(n,b(F)?F:[F],t,e,r,f,o,u,c,s,a),p.base=t.__e,t.__u&=-161,p.__h.length&&u.push(p),_&&(p.__E=p.__=d)}catch(n){if(t.__v=d,s||o!=d)if(n.then){for(t.__u|=s?160:128;c&&8==c.nodeType&&c.nextSibling;)c=c.nextSibling;o[o.indexOf(c)]=d,t.__e=c}else for(O=o.length;O--;)x(o[O]);else t.__e=e.__e,t.__k=e.__k;i.__e(n,t,e)}else o==d&&t.__v==e.__v?(t.__k=e.__k,t.__e=e.__e):c=t.__e=B(e.__e,t,e,r,f,o,u,s,a);return(h=i.diffed)&&h(t),128&t.__u?void 0:c}function q(n,t,e){for(var r=0;r<e.length;r++)D(e[r],e[++r],e[++r]);i.__c&&i.__c(t,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(n){n.call(t)})}catch(n){i.__e(n,t.__v)}})}function B(n,e,r,f,o,u,c,s,a){var h,p,l,_,m,k,S,M=r.props,T=e.props,$=e.type;if("svg"==$?o=y:"math"==$?o="http://www.w3.org/1998/Math/MathML":o||(o=v),u!=d)for(h=0;h<u.length;h++)if((m=u[h])&&"setAttribute"in m==!!$&&($?m.localName==$:3==m.nodeType)){n=m,u[h]=d;break}if(n==d){if($==d)return document.createTextNode(T);n=document.createElementNS(o,$,T.is&&T),s&&(i.__m&&i.__m(e,u),s=!1),u=d}if($===d)M===T||s&&n.data===T||(n.data=T);else{if(u=u&&t.call(n.childNodes),M=r.props||g,!s&&u!=d)for(M={},h=0;h<n.attributes.length;h++)M[(m=n.attributes[h]).name]=m.value;for(h in M)if(m=M[h],"children"==h);else if("dangerouslySetInnerHTML"==h)l=m;else if(!(h in T)){if("value"==h&&"defaultValue"in T||"checked"==h&&"defaultChecked"in T)continue;z(n,h,d,m,o)}for(h in T)m=T[h],"children"==h?_=m:"dangerouslySetInnerHTML"==h?p=m:"value"==h?k=m:"checked"==h?S=m:s&&"function"!=typeof m||M[h]===m||z(n,h,m,M[h],o);if(p)s||l&&(p.__html===l.__html||p.__html===n.innerHTML)||(n.innerHTML=p.__html),e.__k=[];else if(l&&(n.innerHTML=""),H("template"===e.type?n.content:n,b(_)?_:[_],e,r,f,"foreignObject"==$?v:o,u,c,u?u[0]:r.__k&&C(r,0),s,a),u!=d)for(h=u.length;h--;)x(u[h]);s||(h="value","progress"==$&&k==d?n.removeAttribute("value"):k!==w&&(k!==n[h]||"progress"==$&&!k||"option"==$&&k!==M[h])&&z(n,h,k,M[h],o),h="checked",S!==w&&S!==n[h]&&z(n,h,S,M[h],o))}return n}function D(n,t,e){try{if("function"==typeof n){var r="function"==typeof n.__u;r&&n.__u(),r&&t==d||(n.__u=n(t))}else n.current=t}catch(n){i.__e(n,e)}}function E(n,t,e){var r,f;if(i.unmount&&i.unmount(n),(r=n.ref)&&(r.current&&r.current!==n.__e||D(r,d,t)),(r=n.__c)!=d){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(n){i.__e(n,t)}r.base=r.__P=d}if(r=n.__k)for(f=0;f<r.length;f++)r[f]&&E(r[f],t,e||"function"!=typeof n.type);e||x(n.__e),n.__c=n.__=n.__e=w}function G(n,t,i){return this.constructor(n,i)}function J(n,e,r){var f,o,u,c;e==document&&(e=document.documentElement),i.__&&i.__(n,e),o=(f="function"==typeof r)?d:r&&r.__k||e.__k,u=[],c=[],V(e,n=(!f&&r||e).__k=S(T,d,[n]),o||g,g,e.namespaceURI,!f&&r?[r]:o?d:e.firstChild?t.call(e.childNodes):d,u,!f&&r?r:o?o.__e:e.firstChild,f,c),q(u,n,c)}t=_.slice,i={__e:function(n,t,i,e){for(var r,f,o;t=t.__;)if((r=t.__c)&&!r.__)try{if((f=r.constructor)&&f.getDerivedStateFromError!=d&&(r.setState(f.getDerivedStateFromError(n)),o=r.__d),r.componentDidCatch!=d&&(r.componentDidCatch(n,e||{}),o=r.__d),o)return r.__E=r}catch(t){n=t}throw n}},e=0,r=function(n){return n!=d&&n.constructor==w},$.prototype.setState=function(n,t){var i;i=this.__s!=d&&this.__s!==this.state?this.__s:this.__s=k({},this.state),"function"==typeof n&&(n=n(k({},i),this.props)),n&&k(i,n),n!=d&&this.__v&&(t&&this._sb.push(t),P(this))},$.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),P(this))},$.prototype.render=T,f=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(n,t){return n.__v.__b-t.__v.__b},A.__r=0,s=/(PointerCapture)$|Capture$/i,a=0,h=N(!1),p=N(!0),l=0,n.Component=$,n.Fragment=T,n.cloneElement=function(n,i,e){var r,f,o,u,c=k({},n.props);for(o in n.type&&n.type.defaultProps&&(u=n.type.defaultProps),i)"key"==o?r=i[o]:"ref"==o?f=i[o]:c[o]=i[o]===w&&u!==w?u[o]:i[o];return arguments.length>2&&(c.children=arguments.length>3?t.call(arguments,2):e),M(n.type,c,r||n.key,f||n.ref,d)},n.createContext=function(n){function t(n){var i,e;return this.getChildContext||(i=new Set,(e={})[t.__c]=this,this.getChildContext=function(){return e},this.componentWillUnmount=function(){i=d},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&i.forEach(function(n){n.__e=!0,P(n)})},this.sub=function(n){i.add(n);var t=n.componentWillUnmount;n.componentWillUnmount=function(){i&&i.delete(n),t&&t.call(n)}}),n.children}return t.__c="__cC"+l++,t.__=n,t.Provider=t.__l=(t.Consumer=function(n,t){return n.children(t)}).contextType=t,t},n.createElement=S,n.createRef=function(){return{current:d}},n.h=S,n.hydrate=function n(t,i){J(t,i,n)},n.isValidElement=r,n.options=i,n.render=J,n.toChildArray=function n(t,i){return i=i||[],t==d||"boolean"==typeof t||(b(t)?t.some(function(t){n(t,i)}):i.push(t)),i}}); | ||
//# sourceMappingURL=preact.umd.js.map |
{ | ||
"name": "preact", | ||
"amdName": "preact", | ||
"version": "10.26.0", | ||
"version": "10.26.1", | ||
"private": false, | ||
"description": "Fast 3kb React-compatible Virtual DOM library.", | ||
"type": "commonjs", | ||
"main": "dist/preact.js", | ||
@@ -124,3 +125,3 @@ "module": "dist/preact.module.js", | ||
"build:test-utils": "microbundle build --raw --no-generateTypes -f cjs,esm,umd --cwd test-utils", | ||
"build:compat": "microbundle build src/index.js src/scheduler.js --raw --no-generateTypes -f cjs,esm,umd --cwd compat --globals 'preact/hooks=preactHooks'", | ||
"build:compat": "microbundle build --raw --no-generateTypes -f cjs,esm,umd --cwd compat --globals 'preact/hooks=preactHooks'", | ||
"build:jsx": "microbundle build --raw --no-generateTypes -f cjs,esm,umd --cwd jsx-runtime", | ||
@@ -127,0 +128,0 @@ "postbuild": "node ./config/node-13-exports.js && node ./config/compat-entries.js", |
import { assign, slice } from './util'; | ||
import { createVNode } from './create-element'; | ||
import { UNDEFINED } from './constants'; | ||
import { NULL, UNDEFINED } from './constants'; | ||
@@ -46,4 +46,4 @@ /** | ||
ref || vnode.ref, | ||
null | ||
NULL | ||
); | ||
} |
@@ -5,3 +5,3 @@ import { assign } from './util'; | ||
import { Fragment } from './create-element'; | ||
import { MODE_HYDRATE } from './constants'; | ||
import { MODE_HYDRATE, NULL } from './constants'; | ||
@@ -32,3 +32,3 @@ /** | ||
let s; | ||
if (this._nextState != null && this._nextState !== this.state) { | ||
if (this._nextState != NULL && this._nextState !== this.state) { | ||
s = this._nextState; | ||
@@ -50,3 +50,3 @@ } else { | ||
// Skip update if updater function returned null | ||
if (update == null) return; | ||
if (update == NULL) return; | ||
@@ -95,7 +95,7 @@ if (this._vnode) { | ||
export function getDomSibling(vnode, childIndex) { | ||
if (childIndex == null) { | ||
if (childIndex == NULL) { | ||
// Use childIndex==null as a signal to resume the search from the vnode's sibling | ||
return vnode._parent | ||
? getDomSibling(vnode._parent, vnode._index + 1) | ||
: null; | ||
: NULL; | ||
} | ||
@@ -107,3 +107,3 @@ | ||
if (sibling != null && sibling._dom != null) { | ||
if (sibling != NULL && sibling._dom != NULL) { | ||
// Since updateParentDomPointers keeps _dom pointer correct, | ||
@@ -121,3 +121,3 @@ // we can rely on _dom to tell us if this subtree contains a | ||
// the search) | ||
return typeof vnode.type == 'function' ? getDomSibling(vnode) : null; | ||
return typeof vnode.type == 'function' ? getDomSibling(vnode) : NULL; | ||
} | ||
@@ -146,5 +146,5 @@ | ||
component._parentDom.namespaceURI, | ||
oldVNode._flags & MODE_HYDRATE ? [oldDom] : null, | ||
oldVNode._flags & MODE_HYDRATE ? [oldDom] : NULL, | ||
commitQueue, | ||
oldDom == null ? getDomSibling(oldVNode) : oldDom, | ||
oldDom == NULL ? getDomSibling(oldVNode) : oldDom, | ||
!!(oldVNode._flags & MODE_HYDRATE), | ||
@@ -168,7 +168,7 @@ refQueue | ||
function updateParentDomPointers(vnode) { | ||
if ((vnode = vnode._parent) != null && vnode._component != null) { | ||
vnode._dom = vnode._component.base = null; | ||
if ((vnode = vnode._parent) != NULL && vnode._component != NULL) { | ||
vnode._dom = vnode._component.base = NULL; | ||
for (let i = 0; i < vnode._children.length; i++) { | ||
let child = vnode._children[i]; | ||
if (child != null && child._dom != null) { | ||
if (child != NULL && child._dom != NULL) { | ||
vnode._dom = vnode._component.base = child._dom; | ||
@@ -175,0 +175,0 @@ break; |
@@ -17,2 +17,3 @@ /** Normal hydration that attaches to a DOM tree but does not diff it. */ | ||
export const NULL = null; | ||
export const UNDEFINED = undefined; | ||
@@ -19,0 +20,0 @@ export const EMPTY_OBJ = /** @type {any} */ ({}); |
import { enqueueRender } from './component'; | ||
import { NULL } from './constants'; | ||
@@ -16,3 +17,3 @@ export let i = 0; | ||
this.componentWillUnmount = () => { | ||
subs = null; | ||
subs = NULL; | ||
}; | ||
@@ -19,0 +20,0 @@ |
import { slice } from './util'; | ||
import options from './options'; | ||
import { UNDEFINED } from './constants'; | ||
import { NULL, UNDEFINED } from './constants'; | ||
@@ -34,3 +34,3 @@ let vnodeId = 0; | ||
// Note: type may be undefined in development, must never error here. | ||
if (typeof type == 'function' && type.defaultProps != null) { | ||
if (typeof type == 'function' && type.defaultProps != NULL) { | ||
for (i in type.defaultProps) { | ||
@@ -43,3 +43,3 @@ if (normalizedProps[i] === UNDEFINED) { | ||
return createVNode(type, normalizedProps, key, ref, null); | ||
return createVNode(type, normalizedProps, key, ref, NULL); | ||
} | ||
@@ -68,9 +68,9 @@ | ||
ref, | ||
_children: null, | ||
_parent: null, | ||
_children: NULL, | ||
_parent: NULL, | ||
_depth: 0, | ||
_dom: null, | ||
_component: null, | ||
_dom: NULL, | ||
_component: NULL, | ||
constructor: UNDEFINED, | ||
_original: original == null ? ++vnodeId : original, | ||
_original: original == NULL ? ++vnodeId : original, | ||
_index: -1, | ||
@@ -81,3 +81,3 @@ _flags: 0 | ||
// Only invoke the vnode hook if this was *not* a direct copy: | ||
if (original == null && options.vnode != null) options.vnode(vnode); | ||
if (original == NULL && options.vnode != NULL) options.vnode(vnode); | ||
@@ -88,3 +88,3 @@ return vnode; | ||
export function createRef() { | ||
return { current: null }; | ||
return { current: NULL }; | ||
} | ||
@@ -102,2 +102,2 @@ | ||
export const isValidElement = vnode => | ||
vnode != null && vnode.constructor == UNDEFINED; | ||
vnode != NULL && vnode.constructor == UNDEFINED; |
@@ -0,1 +1,3 @@ | ||
import { NULL } from '../constants'; | ||
/** | ||
@@ -23,3 +25,3 @@ * Find the closest error boundary to a thrown error and call it | ||
if (ctor && ctor.getDerivedStateFromError != null) { | ||
if (ctor && ctor.getDerivedStateFromError != NULL) { | ||
component.setState(ctor.getDerivedStateFromError(error)); | ||
@@ -29,3 +31,3 @@ handled = component._dirty; | ||
if (component.componentDidCatch != null) { | ||
if (component.componentDidCatch != NULL) { | ||
component.componentDidCatch(error, errorInfo || {}); | ||
@@ -32,0 +34,0 @@ handled = component._dirty; |
@@ -8,3 +8,4 @@ import { diff, unmount, applyRef } from './index'; | ||
MATCHED, | ||
UNDEFINED | ||
UNDEFINED, | ||
NULL | ||
} from '../constants'; | ||
@@ -83,3 +84,3 @@ import { isArray } from '../util'; | ||
childVNode = newParentVNode._children[i]; | ||
if (childVNode == null) continue; | ||
if (childVNode == NULL) continue; | ||
@@ -115,3 +116,3 @@ // At this point, constructNewChildrenArray has assigned _index to be the | ||
if (oldVNode.ref) { | ||
applyRef(oldVNode.ref, null, childVNode); | ||
applyRef(oldVNode.ref, NULL, childVNode); | ||
} | ||
@@ -125,3 +126,3 @@ refQueue.push( | ||
if (firstChildDom == null && newDom != null) { | ||
if (firstChildDom == NULL && newDom != NULL) { | ||
firstChildDom = newDom; | ||
@@ -181,7 +182,7 @@ } | ||
if ( | ||
childVNode == null || | ||
childVNode == NULL || | ||
typeof childVNode == 'boolean' || | ||
typeof childVNode == 'function' | ||
) { | ||
newParentVNode._children[i] = null; | ||
newParentVNode._children[i] = NULL; | ||
continue; | ||
@@ -200,7 +201,7 @@ } | ||
childVNode = newParentVNode._children[i] = createVNode( | ||
null, | ||
NULL, | ||
childVNode, | ||
null, | ||
null, | ||
null | ||
NULL, | ||
NULL, | ||
NULL | ||
); | ||
@@ -211,5 +212,5 @@ } else if (isArray(childVNode)) { | ||
{ children: childVNode }, | ||
null, | ||
null, | ||
null | ||
NULL, | ||
NULL, | ||
NULL | ||
); | ||
@@ -225,3 +226,3 @@ } else if (childVNode.constructor === UNDEFINED && childVNode._depth > 0) { | ||
childVNode.key, | ||
childVNode.ref ? childVNode.ref : null, | ||
childVNode.ref ? childVNode.ref : NULL, | ||
childVNode._original | ||
@@ -247,3 +248,3 @@ ); | ||
oldVNode = null; | ||
oldVNode = NULL; | ||
if (matchingIndex !== -1) { | ||
@@ -260,3 +261,3 @@ oldVNode = oldChildren[matchingIndex]; | ||
// this by checking if oldVNode._original === null | ||
const isMounting = oldVNode == null || oldVNode._original === null; | ||
const isMounting = oldVNode == NULL || oldVNode._original === NULL; | ||
@@ -315,3 +316,3 @@ if (isMounting) { | ||
oldVNode = oldChildren[i]; | ||
if (oldVNode != null && (oldVNode._flags & MATCHED) == 0) { | ||
if (oldVNode != NULL && (oldVNode._flags & MATCHED) == 0) { | ||
if (oldVNode._dom == oldDom) { | ||
@@ -356,3 +357,3 @@ oldDom = getDomSibling(oldVNode); | ||
} | ||
parentDom.insertBefore(parentVNode._dom, oldDom || null); | ||
parentDom.insertBefore(parentVNode._dom, oldDom || NULL); | ||
oldDom = parentVNode._dom; | ||
@@ -363,3 +364,3 @@ } | ||
oldDom = oldDom && oldDom.nextSibling; | ||
} while (oldDom != null && oldDom.nodeType == 8); | ||
} while (oldDom != NULL && oldDom.nodeType == 8); | ||
@@ -377,3 +378,3 @@ return oldDom; | ||
out = out || []; | ||
if (children == null || typeof children == 'boolean') { | ||
if (children == NULL || typeof children == 'boolean') { | ||
} else if (isArray(children)) { | ||
@@ -420,6 +421,6 @@ children.some(child => { | ||
remainingOldChildren > | ||
(oldVNode != null && (oldVNode._flags & MATCHED) == 0 ? 1 : 0); | ||
(oldVNode != NULL && (oldVNode._flags & MATCHED) == 0 ? 1 : 0); | ||
if ( | ||
oldVNode === null || | ||
oldVNode === NULL || | ||
(oldVNode && | ||
@@ -426,0 +427,0 @@ key == oldVNode.key && |
@@ -6,2 +6,3 @@ import { | ||
MODE_SUSPENDED, | ||
NULL, | ||
RESET_MODE, | ||
@@ -67,3 +68,3 @@ SVG_NAMESPACE, | ||
// constructor as undefined. This to prevent JSON-injection. | ||
if (newVNode.constructor !== UNDEFINED) return null; | ||
if (newVNode.constructor !== UNDEFINED) return NULL; | ||
@@ -126,7 +127,7 @@ // If the previous diff bailed out, resume creating/hydrating. | ||
// Invoke getDerivedStateFromProps | ||
if (isClassComponent && c._nextState == null) { | ||
if (isClassComponent && c._nextState == NULL) { | ||
c._nextState = c.state; | ||
} | ||
if (isClassComponent && newType.getDerivedStateFromProps != null) { | ||
if (isClassComponent && newType.getDerivedStateFromProps != NULL) { | ||
if (c._nextState == c.state) { | ||
@@ -150,4 +151,4 @@ c._nextState = assign({}, c._nextState); | ||
isClassComponent && | ||
newType.getDerivedStateFromProps == null && | ||
c.componentWillMount != null | ||
newType.getDerivedStateFromProps == NULL && | ||
c.componentWillMount != NULL | ||
) { | ||
@@ -157,3 +158,3 @@ c.componentWillMount(); | ||
if (isClassComponent && c.componentDidMount != null) { | ||
if (isClassComponent && c.componentDidMount != NULL) { | ||
c._renderCallbacks.push(c.componentDidMount); | ||
@@ -164,5 +165,5 @@ } | ||
isClassComponent && | ||
newType.getDerivedStateFromProps == null && | ||
newType.getDerivedStateFromProps == NULL && | ||
newProps !== oldProps && | ||
c.componentWillReceiveProps != null | ||
c.componentWillReceiveProps != NULL | ||
) { | ||
@@ -174,3 +175,3 @@ c.componentWillReceiveProps(newProps, componentContext); | ||
!c._force && | ||
((c.shouldComponentUpdate != null && | ||
((c.shouldComponentUpdate != NULL && | ||
c.shouldComponentUpdate( | ||
@@ -212,7 +213,7 @@ newProps, | ||
if (c.componentWillUpdate != null) { | ||
if (c.componentWillUpdate != NULL) { | ||
c.componentWillUpdate(newProps, c._nextState, componentContext); | ||
} | ||
if (isClassComponent && c.componentDidUpdate != null) { | ||
if (isClassComponent && c.componentDidUpdate != NULL) { | ||
c._renderCallbacks.push(() => { | ||
@@ -258,7 +259,7 @@ c.componentDidUpdate(oldProps, oldState, snapshot); | ||
if (c.getChildContext != null) { | ||
if (c.getChildContext != NULL) { | ||
globalContext = assign(assign({}, globalContext), c.getChildContext()); | ||
} | ||
if (isClassComponent && !isNew && c.getSnapshotBeforeUpdate != null) { | ||
if (isClassComponent && !isNew && c.getSnapshotBeforeUpdate != NULL) { | ||
snapshot = c.getSnapshotBeforeUpdate(oldProps, oldState); | ||
@@ -268,5 +269,9 @@ } | ||
let isTopLevelFragment = | ||
tmp != null && tmp.type === Fragment && tmp.key == null; | ||
tmp != NULL && tmp.type === Fragment && tmp.key == NULL; | ||
let renderResult = isTopLevelFragment ? tmp.props.children : tmp; | ||
if (isTopLevelFragment) { | ||
tmp.props.children = NULL; | ||
} | ||
oldDom = diffChildren( | ||
@@ -296,8 +301,8 @@ parentDom, | ||
if (clearProcessingException) { | ||
c._pendingError = c._processingException = null; | ||
c._pendingError = c._processingException = NULL; | ||
} | ||
} catch (e) { | ||
newVNode._original = null; | ||
newVNode._original = NULL; | ||
// if hydrating or creating initial tree, bailout preserves DOM: | ||
if (isHydrating || excessDomChildren != null) { | ||
if (isHydrating || excessDomChildren != NULL) { | ||
if (e.then) { | ||
@@ -312,3 +317,3 @@ newVNode._flags |= isHydrating | ||
excessDomChildren[excessDomChildren.indexOf(oldDom)] = null; | ||
excessDomChildren[excessDomChildren.indexOf(oldDom)] = NULL; | ||
newVNode._dom = oldDom; | ||
@@ -327,3 +332,3 @@ } else { | ||
} else if ( | ||
excessDomChildren == null && | ||
excessDomChildren == NULL && | ||
newVNode._original == oldVNode._original | ||
@@ -425,3 +430,3 @@ ) { | ||
if (excessDomChildren != null) { | ||
if (excessDomChildren != NULL) { | ||
for (i = 0; i < excessDomChildren.length; i++) { | ||
@@ -439,3 +444,3 @@ value = excessDomChildren[i]; | ||
dom = value; | ||
excessDomChildren[i] = null; | ||
excessDomChildren[i] = NULL; | ||
break; | ||
@@ -446,4 +451,4 @@ } | ||
if (dom == null) { | ||
if (nodeType == null) { | ||
if (dom == NULL) { | ||
if (nodeType == NULL) { | ||
return document.createTextNode(newProps); | ||
@@ -466,6 +471,6 @@ } | ||
// we created a new parent, so none of the previously attached children can be reused: | ||
excessDomChildren = null; | ||
excessDomChildren = NULL; | ||
} | ||
if (nodeType === null) { | ||
if (nodeType === NULL) { | ||
// During hydration, we still have to split merged text from SSR'd HTML. | ||
@@ -484,3 +489,3 @@ if (oldProps !== newProps && (!isHydrating || dom.data !== newProps)) { | ||
// attributes to diff them | ||
if (!isHydrating && excessDomChildren != null) { | ||
if (!isHydrating && excessDomChildren != NULL) { | ||
oldProps = {}; | ||
@@ -505,3 +510,3 @@ for (i = 0; i < dom.attributes.length; i++) { | ||
} | ||
setProperty(dom, i, null, value, namespace); | ||
setProperty(dom, i, NULL, value, namespace); | ||
} | ||
@@ -564,3 +569,3 @@ } | ||
// Remove children that are not part of any vnode. | ||
if (excessDomChildren != null) { | ||
if (excessDomChildren != NULL) { | ||
for (i = excessDomChildren.length; i--; ) { | ||
@@ -575,3 +580,3 @@ removeNode(excessDomChildren[i]); | ||
i = 'value'; | ||
if (nodeType == 'progress' && inputValue == null) { | ||
if (nodeType == 'progress' && inputValue == NULL) { | ||
dom.removeAttribute('value'); | ||
@@ -619,3 +624,3 @@ } else if ( | ||
if (!hasRefUnmount || value != null) { | ||
if (!hasRefUnmount || value != NULL) { | ||
// Store the cleanup function on the function | ||
@@ -645,7 +650,7 @@ // instance object itself to avoid shape | ||
if (!r.current || r.current === vnode._dom) { | ||
applyRef(r, null, parentVNode); | ||
applyRef(r, NULL, parentVNode); | ||
} | ||
} | ||
if ((r = vnode._component) != null) { | ||
if ((r = vnode._component) != NULL) { | ||
if (r.componentWillUnmount) { | ||
@@ -659,3 +664,3 @@ try { | ||
r.base = r._parentDom = null; | ||
r.base = r._parentDom = NULL; | ||
} | ||
@@ -662,0 +667,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { IS_NON_DIMENSIONAL, SVG_NAMESPACE } from '../constants'; | ||
import { IS_NON_DIMENSIONAL, NULL, SVG_NAMESPACE } from '../constants'; | ||
import options from '../options'; | ||
@@ -6,4 +6,4 @@ | ||
if (key[0] == '-') { | ||
style.setProperty(key, value == null ? '' : value); | ||
} else if (value == null) { | ||
style.setProperty(key, value == NULL ? '' : value); | ||
} else if (value == NULL) { | ||
style[key] = ''; | ||
@@ -125,3 +125,3 @@ } else if (typeof value != 'number' || IS_NON_DIMENSIONAL.test(key)) { | ||
try { | ||
dom[name] = value == null ? '' : value; | ||
dom[name] = value == NULL ? '' : value; | ||
// labelled break is 1b smaller here than a return statement (sorry) | ||
@@ -141,3 +141,3 @@ break o; | ||
// never serialize functions as attribute values | ||
} else if (value != null && (value !== false || name[4] == '-')) { | ||
} else if (value != NULL && (value !== false || name[4] == '-')) { | ||
dom.setAttribute(name, name == 'popover' && value == true ? '' : value); | ||
@@ -164,3 +164,3 @@ } else { | ||
const eventHandler = this._listeners[e.type + useCapture]; | ||
if (e._dispatched == null) { | ||
if (e._dispatched == NULL) { | ||
e._dispatched = eventClock++; | ||
@@ -167,0 +167,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { EMPTY_OBJ } from './constants'; | ||
import { EMPTY_OBJ, NULL } from './constants'; | ||
import { commitRoot, diff } from './diff/index'; | ||
@@ -33,7 +33,7 @@ import { createElement, Fragment } from './create-element'; | ||
let oldVNode = isHydrating | ||
? null | ||
? NULL | ||
: (replaceNode && replaceNode._children) || parentDom._children; | ||
vnode = ((!isHydrating && replaceNode) || parentDom)._children = | ||
createElement(Fragment, null, [vnode]); | ||
createElement(Fragment, NULL, [vnode]); | ||
@@ -54,6 +54,6 @@ // List of effects that need to be called after diffing. | ||
: oldVNode | ||
? null | ||
? NULL | ||
: parentDom.firstChild | ||
? slice.call(parentDom.childNodes) | ||
: null, | ||
: NULL, | ||
commitQueue, | ||
@@ -60,0 +60,0 @@ !isHydrating && replaceNode |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1429520
9453