New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

preact-render-to-string

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

preact-render-to-string - npm Package Compare versions

Comparing version

to
6.5.0

@@ -1,2 +0,2 @@

var e=require("preact"),t=/[\s\n\\/='"\0<>]/,n=/^(xlink|xmlns|xml)([A-Z])/,r=/^accessK|^auto[A-Z]|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|readO|rowS|spellC|src[A-Z]|tabI|item[A-Z]/,o=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,i=/["&<]/;function a(e){if(0===e.length||!1===i.test(e))return e;for(var t=0,n=0,r="",o="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==t&&(r+=e.slice(t,n)),r+=o,t=n+1}return n!==t&&(r+=e.slice(t,n)),r}var s={},c=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),l=/[A-Z]/g;function u(e){var t="";for(var n in e){var r=e[n];if(null!=r&&""!==r){var o="-"==n[0]?n:s[n]||(s[n]=n.replace(l,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||c.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function f(e,t,n){if(!e.s){if(n instanceof p){if(!n.s)return void(n.o=f.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(f.bind(null,e,t),f.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}var p=/*#__PURE__*/function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var i=1&o?t:n;if(i){try{f(r,1,i(this.v))}catch(e){f(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?f(r,1,t?t(o):o):n?f(r,1,n(o)):f(r,2,o)}catch(e){f(r,2,e)}},r},e}();function h(e){return e instanceof p&&1&e.s}function d(e,t,n){for(var r;;){var o=e();if(h(o)&&(o=o.v),!o)return i;if(o.then){r=0;break}var i=n();if(i&&i.then){if(!h(i)){r=1;break}i=i.s}if(t){var a=t();if(a&&a.then&&!h(a)){r=2;break}}}var s=new p,c=f.bind(null,s,2);return(0===r?o.then(u):1===r?i.then(l):a.then(d)).then(void 0,c),s;function l(r){i=r;do{if(t&&(a=t())&&a.then&&!h(a))return void a.then(d).then(void 0,c);if(!(o=e())||h(o)&&!o.v)return void f(s,1,i);if(o.then)return void o.then(u).then(void 0,c);h(i=n())&&(i=i.v)}while(!i||!i.then);i.then(l).then(void 0,c)}function u(e){e?(i=n())&&i.then?i.then(l).then(void 0,c):l(i):f(s,1,i)}function d(){(o=e())?o.then?o.then(u).then(void 0,c):u(o):f(s,1,i)}}function _(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,n)}var v,m,y,g,b=[],k=Array.isArray,x=Object.assign;function w(t,n){var r=e.options.__s;e.options.__s=!0,v=e.options.__b,m=e.options.diffed,y=e.options.__r,g=e.options.unmount;var o=e.h(e.Fragment,null);o.__k=[t];try{return F(t,n||C,!1,void 0,o,!1)}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{e.options.__c&&e.options.__c(t,b),e.options.__s=r,b.length=0}}function A(){this.__d=!0}var C={};function S(e,t){var n,r=e.type,o=!0;return e.__c?(o=!1,(n=e.__c).state=n.__s):n=new r(e.props,t),e.__c=n,n.__v=e,n.props=e.props,n.context=t,n.__d=!0,null==n.state&&(n.state=C),null==n.__s&&(n.__s=n.state),r.getDerivedStateFromProps?n.state=x({},n.state,r.getDerivedStateFromProps(n.props,n.state)):o&&n.componentWillMount?(n.componentWillMount(),n.state=n.__s!==n.state?n.__s:n.state):!o&&n.componentWillUpdate&&n.componentWillUpdate(),y&&y(e),n.render(n.props,n.state,t)}function F(i,s,c,l,f,p){if(null==i||!0===i||!1===i||""===i)return"";if("object"!=typeof i)return"function"==typeof i?"":a(i+"");if(k(i)){var h,d="";f.__k=i;for(var _=0;_<i.length;_++){var b=i[_];if(null!=b&&"boolean"!=typeof b){var w,C=F(b,s,c,l,f,p);"string"==typeof C?d+=C:(h=h||[],d&&h.push(d),d="",Array.isArray(C)?(w=h).push.apply(w,C):h.push(C))}}return h?(d&&h.push(d),h):d}if(void 0!==i.constructor)return"";i.__=f,v&&v(i);var T,D,E,j=i.type,P=i.props,U=s;if("function"==typeof j){if(j===e.Fragment){if(P.tpl){for(var Z="",M=0;M<P.tpl.length;M++)if(Z+=P.tpl[M],P.exprs&&M<P.exprs.length){var W=P.exprs[M];if(null==W)continue;"object"!=typeof W||void 0!==W.constructor&&!k(W)?Z+=W:Z+=F(W,s,c,l,i,p)}return Z}if(P.UNSTABLE_comment)return"\x3c!--"+a(P.UNSTABLE_comment||"")+"--\x3e";D=P.children}else{if(null!=(T=j.contextType)){var $=s[T.__c];U=$?$.props.value:T.__}if(j.prototype&&"function"==typeof j.prototype.render)D=S(i,U),E=i.__c;else{i.__c=E={__v:i,props:P,context:U,setState:A,forceUpdate:A,__d:!0,__h:[]};for(var q=0;E.__d&&q++<25;)E.__d=!1,y&&y(i),D=j.call(E,P,U);E.__d=!0}if(null!=E.getChildContext&&(s=x({},s,E.getChildContext())),(j.getDerivedStateFromError||E.componentDidCatch)&&e.options.errorBoundaries){var z="";D=null!=D&&D.type===e.Fragment&&null==D.key?D.props.children:D;try{return z=F(D,s,c,l,i,p)}catch(t){return j.getDerivedStateFromError&&(E.__s=j.getDerivedStateFromError(t)),E.componentDidCatch&&E.componentDidCatch(t,{}),E.__d&&(D=S(i,s),null!=(E=i.__c).getChildContext&&(s=x({},s,E.getChildContext())),z=F(D=null!=D&&D.type===e.Fragment&&null==D.key?D.props.children:D,s,c,l,i,p)),z}finally{m&&m(i),i.__=null,g&&g(i)}}}D=null!=D&&D.type===e.Fragment&&null==D.key&&null==D.props.tpl?D.props.children:D;try{var H=F(D,s,c,l,i,p);return m&&m(i),i.__=null,g&&g(i),H}catch(e){if(!p)throw e;if(!e||"function"!=typeof e.then)throw e;var B=function e(){try{return F(D,s,c,l,i,p)}catch(t){if(!t||"function"!=typeof t.then)throw t;return t.then(function(){return F(D,s,c,l,i,p)},function(){return e()})}};return e.then(function(){return B()})}}var I,N="<"+j,O="";for(var R in P){var V=P[R];switch(R){case"children":I=V;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in P)continue;R="for";break;case"className":if("class"in P)continue;R="class";break;case"defaultChecked":R="checked";break;case"defaultSelected":R="selected";break;case"defaultValue":case"value":switch(R="value",j){case"textarea":I=V;continue;case"select":l=V;continue;case"option":l!=V||"selected"in P||(N+=" selected")}break;case"dangerouslySetInnerHTML":O=V&&V.__html;continue;case"style":"object"==typeof V&&(V=u(V));break;case"acceptCharset":R="accept-charset";break;case"httpEquiv":R="http-equiv";break;default:if(n.test(R))R=R.replace(n,"$1:$2").toLowerCase();else{if(t.test(R))continue;"-"!==R[4]&&"draggable"!==R||null==V?c?o.test(R)&&(R="panose1"===R?"panose-1":R.replace(/([A-Z])/g,"-$1").toLowerCase()):r.test(R)&&(R=R.toLowerCase()):V+=""}}null!=V&&!1!==V&&"function"!=typeof V&&(N=!0===V||""===V?N+" "+R:N+" "+R+'="'+a(V+"")+'"')}if(t.test(j))throw new Error(j+" is not a valid HTML tag name in "+N+">");if(O||("string"==typeof I?O=a(I):null!=I&&!1!==I&&!0!==I&&(O=F(I,s,"svg"===j||"foreignObject"!==j&&c,l,i,p))),m&&m(i),i.__=null,g&&g(i),!O&&L.has(j))return N+"/>";var K="</"+j+">",G=N+">";return Array.isArray(O)?[G].concat(O,[K]):"string"!=typeof O?[G,O,K]:G+O+K}var L=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),T=w,D=w;exports.default=w,exports.render=T,exports.renderToStaticMarkup=D,exports.renderToString=w,exports.renderToStringAsync=function(t,n){try{var r,o=e.options.__s;e.options.__s=!0,v=e.options.__b,m=e.options.diffed,y=e.options.__r,g=e.options.unmount;var i=e.h(e.Fragment,null);return i.__k=[t],Promise.resolve(_(function(){var e=F(t,n||C,!1,void 0,i,!0),o=function(){if(Array.isArray(e)){var t=function(){var e=o.join("");return r=1,e},n=0,o=e,i=d(function(){return!!o.some(function(e){return"function"==typeof e.then})&&n++<25},void 0,function(){return Promise.resolve(Promise.all(o)).then(function(e){o=e.flat()})});return i&&i.then?i.then(t):t()}}();return o&&o.then?o.then(function(t){return r?t:e}):r?o:e},function(n,r){if(e.options.__c&&e.options.__c(t,b),e.options.__s=o,b.length=0,n)throw r;return r}))}catch(e){return Promise.reject(e)}};
var e=require("preact"),t=/[\s\n\\/='"\0<>]/,n=/^(xlink|xmlns|xml)([A-Z])/,r=/^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|spellC|src[A-Z]|tabI|useM|item[A-Z]/,o=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,i=/["&<]/;function a(e){if(0===e.length||!1===i.test(e))return e;for(var t=0,n=0,r="",o="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==t&&(r+=e.slice(t,n)),r+=o,t=n+1}return n!==t&&(r+=e.slice(t,n)),r}var s={},c=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),l=/[A-Z]/g;function u(e){var t="";for(var n in e){var r=e[n];if(null!=r&&""!==r){var o="-"==n[0]?n:s[n]||(s[n]=n.replace(l,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||c.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function f(e,t,n){if(!e.s){if(n instanceof p){if(!n.s)return void(n.o=f.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(f.bind(null,e,t),f.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}var p=/*#__PURE__*/function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var i=1&o?t:n;if(i){try{f(r,1,i(this.v))}catch(e){f(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?f(r,1,t?t(o):o):n?f(r,1,n(o)):f(r,2,o)}catch(e){f(r,2,e)}},r},e}();function h(e){return e instanceof p&&1&e.s}function d(e,t,n){for(var r;;){var o=e();if(h(o)&&(o=o.v),!o)return i;if(o.then){r=0;break}var i=n();if(i&&i.then){if(!h(i)){r=1;break}i=i.s}if(t){var a=t();if(a&&a.then&&!h(a)){r=2;break}}}var s=new p,c=f.bind(null,s,2);return(0===r?o.then(u):1===r?i.then(l):a.then(d)).then(void 0,c),s;function l(r){i=r;do{if(t&&(a=t())&&a.then&&!h(a))return void a.then(d).then(void 0,c);if(!(o=e())||h(o)&&!o.v)return void f(s,1,i);if(o.then)return void o.then(u).then(void 0,c);h(i=n())&&(i=i.v)}while(!i||!i.then);i.then(l).then(void 0,c)}function u(e){e?(i=n())&&i.then?i.then(l).then(void 0,c):l(i):f(s,1,i)}function d(){(o=e())?o.then?o.then(u).then(void 0,c):u(o):f(s,1,i)}}function _(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,n)}var v,m,y,g,b=[],k=Array.isArray,x=Object.assign;function w(t,n,r){var o=e.options.__s;e.options.__s=!0,v=e.options.__b,m=e.options.diffed,y=e.options.__r,g=e.options.unmount;var i=e.h(e.Fragment,null);i.__k=[t];try{return F(t,n||C,!1,void 0,i,!1,r)}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{e.options.__c&&e.options.__c(t,b),e.options.__s=o,b.length=0}}function A(){this.__d=!0}var C={};function S(e,t){var n,r=e.type,o=!0;return e.__c?(o=!1,(n=e.__c).state=n.__s):n=new r(e.props,t),e.__c=n,n.__v=e,n.props=e.props,n.context=t,n.__d=!0,null==n.state&&(n.state=C),null==n.__s&&(n.__s=n.state),r.getDerivedStateFromProps?n.state=x({},n.state,r.getDerivedStateFromProps(n.props,n.state)):o&&n.componentWillMount?(n.componentWillMount(),n.state=n.__s!==n.state?n.__s:n.state):!o&&n.componentWillUpdate&&n.componentWillUpdate(),y&&y(e),n.render(n.props,n.state,t)}function F(i,s,c,l,f,p,h){if(null==i||!0===i||!1===i||""===i)return"";if("object"!=typeof i)return"function"==typeof i?"":a(i+"");if(k(i)){var d,_="";f.__k=i;for(var b=0;b<i.length;b++){var w=i[b];if(null!=w&&"boolean"!=typeof w){var C,T=F(w,s,c,l,f,p,h);"string"==typeof T?_+=T:(d=d||[],_&&d.push(_),_="",Array.isArray(T)?(C=d).push.apply(C,T):d.push(T))}}return d?(_&&d.push(_),d):_}if(void 0!==i.constructor)return"";i.__=f,v&&v(i);var E,D,j,M=i.type,P=i.props,U=s;if("function"==typeof M){if(M===e.Fragment){if(P.tpl){for(var Z="",W=0;W<P.tpl.length;W++)if(Z+=P.tpl[W],P.exprs&&W<P.exprs.length){var $=P.exprs[W];if(null==$)continue;"object"!=typeof $||void 0!==$.constructor&&!k($)?Z+=$:Z+=F($,s,c,l,i,p,h)}return Z}if(P.UNSTABLE_comment)return"\x3c!--"+a(P.UNSTABLE_comment||"")+"--\x3e";D=P.children}else{if(null!=(E=M.contextType)){var q=s[E.__c];U=q?q.props.value:E.__}if(M.prototype&&"function"==typeof M.prototype.render)D=S(i,U),j=i.__c;else{i.__c=j={__v:i,props:P,context:U,setState:A,forceUpdate:A,__d:!0,__h:[]};for(var z=0;j.__d&&z++<25;)j.__d=!1,y&&y(i),D=M.call(j,P,U);j.__d=!0}if(null!=j.getChildContext&&(s=x({},s,j.getChildContext())),(M.getDerivedStateFromError||j.componentDidCatch)&&e.options.errorBoundaries){var H="";D=null!=D&&D.type===e.Fragment&&null==D.key?D.props.children:D;try{return H=F(D,s,c,l,i,p,h)}catch(t){return M.getDerivedStateFromError&&(j.__s=M.getDerivedStateFromError(t)),j.componentDidCatch&&j.componentDidCatch(t,{}),j.__d&&(D=S(i,s),null!=(j=i.__c).getChildContext&&(s=x({},s,j.getChildContext())),H=F(D=null!=D&&D.type===e.Fragment&&null==D.key?D.props.children:D,s,c,l,i,p,h)),H}finally{m&&m(i),i.__=null,g&&g(i)}}}D=null!=D&&D.type===e.Fragment&&null==D.key&&null==D.props.tpl?D.props.children:D;try{var B=F(D,s,c,l,i,p,h);return m&&m(i),i.__=null,e.options.unmount&&e.options.unmount(i),B}catch(t){if(!p&&h&&h.onError){var I=h.onError(t,i,function(e){return F(e,s,c,l,i,p,h)});if(void 0!==I)return I;var N=e.options.__e;return N&&N(t,i),""}if(!p)throw t;if(!t||"function"!=typeof t.then)throw t;var O=function e(){try{return F(D,s,c,l,i,p,h)}catch(t){if(!t||"function"!=typeof t.then)throw t;return t.then(function(){return F(D,s,c,l,i,p,h)},function(){return e()})}};return t.then(function(){return O()})}}var R,V="<"+M,K="";for(var G in P){var J=P[G];switch(G){case"children":R=J;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in P)continue;G="for";break;case"className":if("class"in P)continue;G="class";break;case"defaultChecked":G="checked";break;case"defaultSelected":G="selected";break;case"defaultValue":case"value":switch(G="value",M){case"textarea":R=J;continue;case"select":l=J;continue;case"option":l!=J||"selected"in P||(V+=" selected")}break;case"dangerouslySetInnerHTML":K=J&&J.__html;continue;case"style":"object"==typeof J&&(J=u(J));break;case"acceptCharset":G="accept-charset";break;case"httpEquiv":G="http-equiv";break;default:if(n.test(G))G=G.replace(n,"$1:$2").toLowerCase();else{if(t.test(G))continue;"-"!==G[4]&&"draggable"!==G||null==J?c?o.test(G)&&(G="panose1"===G?"panose-1":G.replace(/([A-Z])/g,"-$1").toLowerCase()):r.test(G)&&(G=G.toLowerCase()):J+=""}}null!=J&&!1!==J&&"function"!=typeof J&&(V=!0===J||""===J?V+" "+G:V+" "+G+'="'+a(J+"")+'"')}if(t.test(M))throw new Error(M+" is not a valid HTML tag name in "+V+">");if(K||("string"==typeof R?K=a(R):null!=R&&!1!==R&&!0!==R&&(K=F(R,s,"svg"===M||"foreignObject"!==M&&c,l,i,p,h))),m&&m(i),i.__=null,g&&g(i),!K&&L.has(M))return V+"/>";var Q="</"+M+">",X=V+">";return Array.isArray(K)?[X].concat(K,[Q]):"string"!=typeof K?[X,K,Q]:X+K+Q}var L=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),T=w,E=w;exports.default=w,exports.render=T,exports.renderToStaticMarkup=E,exports.renderToString=w,exports.renderToStringAsync=function(t,n){try{var r,o=e.options.__s;e.options.__s=!0,v=e.options.__b,m=e.options.diffed,y=e.options.__r,g=e.options.unmount;var i=e.h(e.Fragment,null);return i.__k=[t],Promise.resolve(_(function(){var e=F(t,n||C,!1,void 0,i,!0,void 0),o=function(){if(Array.isArray(e)){var t=function(){var e=o.join("");return r=1,e},n=0,o=e,i=d(function(){return!!o.some(function(e){return"function"==typeof e.then})&&n++<25},void 0,function(){return Promise.resolve(Promise.all(o)).then(function(e){o=e.flat()})});return i&&i.then?i.then(t):t()}}();return o&&o.then?o.then(function(t){return r?t:e}):r?o:e},function(n,r){if(e.options.__c&&e.options.__c(t,b),e.options.__s=o,b.length=0,n)throw r;return r}))}catch(e){return Promise.reject(e)}};
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import{options as e,h as t,Fragment as r}from"preact";var n=/[\s\n\\/='"\0<>]/,o=/^(xlink|xmlns|xml)([A-Z])/,i=/^accessK|^auto[A-Z]|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|readO|rowS|spellC|src[A-Z]|tabI|item[A-Z]/,a=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,c=/["&<]/;function s(e){if(0===e.length||!1===c.test(e))return e;for(var t=0,r=0,n="",o="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=o,t=r+1}return r!==t&&(n+=e.slice(t,r)),n}var l={},u=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),f=/[A-Z]/g;function p(e){var t="";for(var r in e){var n=e[r];if(null!=n&&""!==n){var o="-"==r[0]?r:l[r]||(l[r]=r.replace(f,"-$&").toLowerCase()),i=";";"number"!=typeof n||o.startsWith("--")||u.has(o)||(i="px;"),t=t+o+":"+n+i}}return t||void 0}function h(e,t,r){if(!e.s){if(r instanceof d){if(!r.s)return void(r.o=h.bind(null,e,t));1&t&&(t=r.s),r=r.v}if(r&&r.then)return void r.then(h.bind(null,e,t),h.bind(null,e,2));e.s=t,e.v=r;const n=e.o;n&&n(e)}}var d=/*#__PURE__*/function(){function e(){}return e.prototype.then=function(t,r){var n=new e,o=this.s;if(o){var i=1&o?t:r;if(i){try{h(n,1,i(this.v))}catch(e){h(n,2,e)}return n}return this}return this.o=function(e){try{var o=e.v;1&e.s?h(n,1,t?t(o):o):r?h(n,1,r(o)):h(n,2,o)}catch(e){h(n,2,e)}},n},e}();function _(e){return e instanceof d&&1&e.s}function v(e,t,r){for(var n;;){var o=e();if(_(o)&&(o=o.v),!o)return i;if(o.then){n=0;break}var i=r();if(i&&i.then){if(!_(i)){n=1;break}i=i.s}if(t){var a=t();if(a&&a.then&&!_(a)){n=2;break}}}var c=new d,s=h.bind(null,c,2);return(0===n?o.then(u):1===n?i.then(l):a.then(f)).then(void 0,s),c;function l(n){i=n;do{if(t&&(a=t())&&a.then&&!_(a))return void a.then(f).then(void 0,s);if(!(o=e())||_(o)&&!o.v)return void h(c,1,i);if(o.then)return void o.then(u).then(void 0,s);_(i=r())&&(i=i.v)}while(!i||!i.then);i.then(l).then(void 0,s)}function u(e){e?(i=r())&&i.then?i.then(l).then(void 0,s):l(i):h(c,1,i)}function f(){(o=e())?o.then?o.then(u).then(void 0,s):u(o):h(c,1,i)}}function y(e,t){try{var r=e()}catch(e){return t(!0,e)}return r&&r.then?r.then(t.bind(null,!1),t.bind(null,!0)):t(!1,r)}var m,g,b,k,x=function(n,o){try{var i,a=e.__s;e.__s=!0,m=e.__b,g=e.diffed,b=e.__r,k=e.unmount;var c=t(r,null);return c.__k=[n],Promise.resolve(y(function(){var e=T(n,o||D,!1,void 0,c,!0),t=function(){if(Array.isArray(e)){var t=function(){var e=n.join("");return i=1,e},r=0,n=e,o=v(function(){return!!n.some(function(e){return"function"==typeof e.then})&&r++<25},void 0,function(){return Promise.resolve(Promise.all(n)).then(function(e){n=e.flat()})});return o&&o.then?o.then(t):t()}}();return t&&t.then?t.then(function(t){return i?t:e}):i?t:e},function(t,r){if(e.__c&&e.__c(n,w),e.__s=a,w.length=0,t)throw r;return r}))}catch(e){return Promise.reject(e)}},w=[],A=Array.isArray,C=Object.assign;function S(n,o){var i=e.__s;e.__s=!0,m=e.__b,g=e.diffed,b=e.__r,k=e.unmount;var a=t(r,null);a.__k=[n];try{return T(n,o||D,!1,void 0,a,!1)}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{e.__c&&e.__c(n,w),e.__s=i,w.length=0}}function L(){this.__d=!0}var D={};function E(e,t){var r,n=e.type,o=!0;return e.__c?(o=!1,(r=e.__c).state=r.__s):r=new n(e.props,t),e.__c=r,r.__v=e,r.props=e.props,r.context=t,r.__d=!0,null==r.state&&(r.state=D),null==r.__s&&(r.__s=r.state),n.getDerivedStateFromProps?r.state=C({},r.state,n.getDerivedStateFromProps(r.props,r.state)):o&&r.componentWillMount?(r.componentWillMount(),r.state=r.__s!==r.state?r.__s:r.state):!o&&r.componentWillUpdate&&r.componentWillUpdate(),b&&b(e),r.render(r.props,r.state,t)}function T(t,c,l,u,f,h){if(null==t||!0===t||!1===t||""===t)return"";if("object"!=typeof t)return"function"==typeof t?"":s(t+"");if(A(t)){var d,_="";f.__k=t;for(var v=0;v<t.length;v++){var y=t[v];if(null!=y&&"boolean"!=typeof y){var x,w=T(y,c,l,u,f,h);"string"==typeof w?_+=w:(d=d||[],_&&d.push(_),_="",Array.isArray(w)?(x=d).push.apply(x,w):d.push(w))}}return d?(_&&d.push(_),d):_}if(void 0!==t.constructor)return"";t.__=f,m&&m(t);var S,D,P,U=t.type,Z=t.props,F=c;if("function"==typeof U){if(U===r){if(Z.tpl){for(var W="",$=0;$<Z.tpl.length;$++)if(W+=Z.tpl[$],Z.exprs&&$<Z.exprs.length){var M=Z.exprs[$];if(null==M)continue;"object"!=typeof M||void 0!==M.constructor&&!A(M)?W+=M:W+=T(M,c,l,u,t,h)}return W}if(Z.UNSTABLE_comment)return"\x3c!--"+s(Z.UNSTABLE_comment||"")+"--\x3e";D=Z.children}else{if(null!=(S=U.contextType)){var z=c[S.__c];F=z?z.props.value:S.__}if(U.prototype&&"function"==typeof U.prototype.render)D=E(t,F),P=t.__c;else{t.__c=P={__v:t,props:Z,context:F,setState:L,forceUpdate:L,__d:!0,__h:[]};for(var H=0;P.__d&&H++<25;)P.__d=!1,b&&b(t),D=U.call(P,Z,F);P.__d=!0}if(null!=P.getChildContext&&(c=C({},c,P.getChildContext())),(U.getDerivedStateFromError||P.componentDidCatch)&&e.errorBoundaries){var q="";D=null!=D&&D.type===r&&null==D.key?D.props.children:D;try{return q=T(D,c,l,u,t,h)}catch(e){return U.getDerivedStateFromError&&(P.__s=U.getDerivedStateFromError(e)),P.componentDidCatch&&P.componentDidCatch(e,{}),P.__d&&(D=E(t,c),null!=(P=t.__c).getChildContext&&(c=C({},c,P.getChildContext())),q=T(D=null!=D&&D.type===r&&null==D.key?D.props.children:D,c,l,u,t,h)),q}finally{g&&g(t),t.__=null,k&&k(t)}}}D=null!=D&&D.type===r&&null==D.key&&null==D.props.tpl?D.props.children:D;try{var B=T(D,c,l,u,t,h);return g&&g(t),t.__=null,k&&k(t),B}catch(e){if(!h)throw e;if(!e||"function"!=typeof e.then)throw e;var I=function e(){try{return T(D,c,l,u,t,h)}catch(r){if(!r||"function"!=typeof r.then)throw r;return r.then(function(){return T(D,c,l,u,t,h)},function(){return e()})}};return e.then(function(){return I()})}}var N,O="<"+U,R="";for(var V in Z){var K=Z[V];switch(V){case"children":N=K;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in Z)continue;V="for";break;case"className":if("class"in Z)continue;V="class";break;case"defaultChecked":V="checked";break;case"defaultSelected":V="selected";break;case"defaultValue":case"value":switch(V="value",U){case"textarea":N=K;continue;case"select":u=K;continue;case"option":u!=K||"selected"in Z||(O+=" selected")}break;case"dangerouslySetInnerHTML":R=K&&K.__html;continue;case"style":"object"==typeof K&&(K=p(K));break;case"acceptCharset":V="accept-charset";break;case"httpEquiv":V="http-equiv";break;default:if(o.test(V))V=V.replace(o,"$1:$2").toLowerCase();else{if(n.test(V))continue;"-"!==V[4]&&"draggable"!==V||null==K?l?a.test(V)&&(V="panose1"===V?"panose-1":V.replace(/([A-Z])/g,"-$1").toLowerCase()):i.test(V)&&(V=V.toLowerCase()):K+=""}}null!=K&&!1!==K&&"function"!=typeof K&&(O=!0===K||""===K?O+" "+V:O+" "+V+'="'+s(K+"")+'"')}if(n.test(U))throw new Error(U+" is not a valid HTML tag name in "+O+">");if(R||("string"==typeof N?R=s(N):null!=N&&!1!==N&&!0!==N&&(R=T(N,c,"svg"===U||"foreignObject"!==U&&l,u,t,h))),g&&g(t),t.__=null,k&&k(t),!R&&j.has(U))return O+"/>";var G="</"+U+">",J=O+">";return Array.isArray(R)?[J].concat(R,[G]):"string"!=typeof R?[J,R,G]:J+R+G}var j=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),P=S,U=S;export default S;export{P as render,U as renderToStaticMarkup,S as renderToString,x as renderToStringAsync};
import{options as e,h as t,Fragment as r}from"preact";var n=/[\s\n\\/='"\0<>]/,o=/^(xlink|xmlns|xml)([A-Z])/,i=/^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|spellC|src[A-Z]|tabI|useM|item[A-Z]/,a=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,c=/["&<]/;function s(e){if(0===e.length||!1===c.test(e))return e;for(var t=0,r=0,n="",o="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=o,t=r+1}return r!==t&&(n+=e.slice(t,r)),n}var l={},u=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),f=/[A-Z]/g;function p(e){var t="";for(var r in e){var n=e[r];if(null!=n&&""!==n){var o="-"==r[0]?r:l[r]||(l[r]=r.replace(f,"-$&").toLowerCase()),i=";";"number"!=typeof n||o.startsWith("--")||u.has(o)||(i="px;"),t=t+o+":"+n+i}}return t||void 0}function h(e,t,r){if(!e.s){if(r instanceof d){if(!r.s)return void(r.o=h.bind(null,e,t));1&t&&(t=r.s),r=r.v}if(r&&r.then)return void r.then(h.bind(null,e,t),h.bind(null,e,2));e.s=t,e.v=r;const n=e.o;n&&n(e)}}var d=/*#__PURE__*/function(){function e(){}return e.prototype.then=function(t,r){var n=new e,o=this.s;if(o){var i=1&o?t:r;if(i){try{h(n,1,i(this.v))}catch(e){h(n,2,e)}return n}return this}return this.o=function(e){try{var o=e.v;1&e.s?h(n,1,t?t(o):o):r?h(n,1,r(o)):h(n,2,o)}catch(e){h(n,2,e)}},n},e}();function _(e){return e instanceof d&&1&e.s}function v(e,t,r){for(var n;;){var o=e();if(_(o)&&(o=o.v),!o)return i;if(o.then){n=0;break}var i=r();if(i&&i.then){if(!_(i)){n=1;break}i=i.s}if(t){var a=t();if(a&&a.then&&!_(a)){n=2;break}}}var c=new d,s=h.bind(null,c,2);return(0===n?o.then(u):1===n?i.then(l):a.then(f)).then(void 0,s),c;function l(n){i=n;do{if(t&&(a=t())&&a.then&&!_(a))return void a.then(f).then(void 0,s);if(!(o=e())||_(o)&&!o.v)return void h(c,1,i);if(o.then)return void o.then(u).then(void 0,s);_(i=r())&&(i=i.v)}while(!i||!i.then);i.then(l).then(void 0,s)}function u(e){e?(i=r())&&i.then?i.then(l).then(void 0,s):l(i):h(c,1,i)}function f(){(o=e())?o.then?o.then(u).then(void 0,s):u(o):h(c,1,i)}}function m(e,t){try{var r=e()}catch(e){return t(!0,e)}return r&&r.then?r.then(t.bind(null,!1),t.bind(null,!0)):t(!1,r)}var y,g,b,k,x=function(n,o){try{var i,a=e.__s;e.__s=!0,y=e.__b,g=e.diffed,b=e.__r,k=e.unmount;var c=t(r,null);return c.__k=[n],Promise.resolve(m(function(){var e=D(n,o||E,!1,void 0,c,!0,void 0),t=function(){if(Array.isArray(e)){var t=function(){var e=n.join("");return i=1,e},r=0,n=e,o=v(function(){return!!n.some(function(e){return"function"==typeof e.then})&&r++<25},void 0,function(){return Promise.resolve(Promise.all(n)).then(function(e){n=e.flat()})});return o&&o.then?o.then(t):t()}}();return t&&t.then?t.then(function(t){return i?t:e}):i?t:e},function(t,r){if(e.__c&&e.__c(n,w),e.__s=a,w.length=0,t)throw r;return r}))}catch(e){return Promise.reject(e)}},w=[],A=Array.isArray,C=Object.assign;function S(n,o,i){var a=e.__s;e.__s=!0,y=e.__b,g=e.diffed,b=e.__r,k=e.unmount;var c=t(r,null);c.__k=[n];try{return D(n,o||E,!1,void 0,c,!1,i)}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{e.__c&&e.__c(n,w),e.__s=a,w.length=0}}function L(){this.__d=!0}var E={};function T(e,t){var r,n=e.type,o=!0;return e.__c?(o=!1,(r=e.__c).state=r.__s):r=new n(e.props,t),e.__c=r,r.__v=e,r.props=e.props,r.context=t,r.__d=!0,null==r.state&&(r.state=E),null==r.__s&&(r.__s=r.state),n.getDerivedStateFromProps?r.state=C({},r.state,n.getDerivedStateFromProps(r.props,r.state)):o&&r.componentWillMount?(r.componentWillMount(),r.state=r.__s!==r.state?r.__s:r.state):!o&&r.componentWillUpdate&&r.componentWillUpdate(),b&&b(e),r.render(r.props,r.state,t)}function D(t,c,l,u,f,h,d){if(null==t||!0===t||!1===t||""===t)return"";if("object"!=typeof t)return"function"==typeof t?"":s(t+"");if(A(t)){var _,v="";f.__k=t;for(var m=0;m<t.length;m++){var x=t[m];if(null!=x&&"boolean"!=typeof x){var w,S=D(x,c,l,u,f,h,d);"string"==typeof S?v+=S:(_=_||[],v&&_.push(v),v="",Array.isArray(S)?(w=_).push.apply(w,S):_.push(S))}}return _?(v&&_.push(v),_):v}if(void 0!==t.constructor)return"";t.__=f,y&&y(t);var E,P,U,Z=t.type,F=t.props,M=c;if("function"==typeof Z){if(Z===r){if(F.tpl){for(var W="",$=0;$<F.tpl.length;$++)if(W+=F.tpl[$],F.exprs&&$<F.exprs.length){var z=F.exprs[$];if(null==z)continue;"object"!=typeof z||void 0!==z.constructor&&!A(z)?W+=z:W+=D(z,c,l,u,t,h,d)}return W}if(F.UNSTABLE_comment)return"\x3c!--"+s(F.UNSTABLE_comment||"")+"--\x3e";P=F.children}else{if(null!=(E=Z.contextType)){var H=c[E.__c];M=H?H.props.value:E.__}if(Z.prototype&&"function"==typeof Z.prototype.render)P=T(t,M),U=t.__c;else{t.__c=U={__v:t,props:F,context:M,setState:L,forceUpdate:L,__d:!0,__h:[]};for(var q=0;U.__d&&q++<25;)U.__d=!1,b&&b(t),P=Z.call(U,F,M);U.__d=!0}if(null!=U.getChildContext&&(c=C({},c,U.getChildContext())),(Z.getDerivedStateFromError||U.componentDidCatch)&&e.errorBoundaries){var B="";P=null!=P&&P.type===r&&null==P.key?P.props.children:P;try{return B=D(P,c,l,u,t,h,d)}catch(e){return Z.getDerivedStateFromError&&(U.__s=Z.getDerivedStateFromError(e)),U.componentDidCatch&&U.componentDidCatch(e,{}),U.__d&&(P=T(t,c),null!=(U=t.__c).getChildContext&&(c=C({},c,U.getChildContext())),B=D(P=null!=P&&P.type===r&&null==P.key?P.props.children:P,c,l,u,t,h,d)),B}finally{g&&g(t),t.__=null,k&&k(t)}}}P=null!=P&&P.type===r&&null==P.key&&null==P.props.tpl?P.props.children:P;try{var I=D(P,c,l,u,t,h,d);return g&&g(t),t.__=null,e.unmount&&e.unmount(t),I}catch(r){if(!h&&d&&d.onError){var N=d.onError(r,t,function(e){return D(e,c,l,u,t,h,d)});if(void 0!==N)return N;var O=e.__e;return O&&O(r,t),""}if(!h)throw r;if(!r||"function"!=typeof r.then)throw r;var R=function e(){try{return D(P,c,l,u,t,h,d)}catch(r){if(!r||"function"!=typeof r.then)throw r;return r.then(function(){return D(P,c,l,u,t,h,d)},function(){return e()})}};return r.then(function(){return R()})}}var V,K="<"+Z,G="";for(var J in F){var Q=F[J];switch(J){case"children":V=Q;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in F)continue;J="for";break;case"className":if("class"in F)continue;J="class";break;case"defaultChecked":J="checked";break;case"defaultSelected":J="selected";break;case"defaultValue":case"value":switch(J="value",Z){case"textarea":V=Q;continue;case"select":u=Q;continue;case"option":u!=Q||"selected"in F||(K+=" selected")}break;case"dangerouslySetInnerHTML":G=Q&&Q.__html;continue;case"style":"object"==typeof Q&&(Q=p(Q));break;case"acceptCharset":J="accept-charset";break;case"httpEquiv":J="http-equiv";break;default:if(o.test(J))J=J.replace(o,"$1:$2").toLowerCase();else{if(n.test(J))continue;"-"!==J[4]&&"draggable"!==J||null==Q?l?a.test(J)&&(J="panose1"===J?"panose-1":J.replace(/([A-Z])/g,"-$1").toLowerCase()):i.test(J)&&(J=J.toLowerCase()):Q+=""}}null!=Q&&!1!==Q&&"function"!=typeof Q&&(K=!0===Q||""===Q?K+" "+J:K+" "+J+'="'+s(Q+"")+'"')}if(n.test(Z))throw new Error(Z+" is not a valid HTML tag name in "+K+">");if(G||("string"==typeof V?G=s(V):null!=V&&!1!==V&&!0!==V&&(G=D(V,c,"svg"===Z||"foreignObject"!==Z&&l,u,t,h,d))),g&&g(t),t.__=null,k&&k(t),!G&&j.has(Z))return K+"/>";var X="</"+Z+">",Y=K+">";return Array.isArray(G)?[Y].concat(G,[X]):"string"!=typeof G?[Y,G,X]:Y+G+X}var j=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),P=S,U=S;export default S;export{P as render,U as renderToStaticMarkup,S as renderToString,x as renderToStringAsync};
//# sourceMappingURL=index.module.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("preact")):"function"==typeof define&&define.amd?define(["exports","preact"],t):t((e||self).preactRenderToString={},e.preact)}(this,function(e,t){var n=/[\s\n\\/='"\0<>]/,r=/^(xlink|xmlns|xml)([A-Z])/,o=/^accessK|^auto[A-Z]|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|readO|rowS|spellC|src[A-Z]|tabI|item[A-Z]/,i=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,a=/["&<]/;function s(e){if(0===e.length||!1===a.test(e))return e;for(var t=0,n=0,r="",o="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==t&&(r+=e.slice(t,n)),r+=o,t=n+1}return n!==t&&(r+=e.slice(t,n)),r}var c={},l=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),u=/[A-Z]/g;function f(e){var t="";for(var n in e){var r=e[n];if(null!=r&&""!==r){var o="-"==n[0]?n:c[n]||(c[n]=n.replace(u,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||l.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function p(e,t,n){if(!e.s){if(n instanceof h){if(!n.s)return void(n.o=p.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(p.bind(null,e,t),p.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}var h=/*#__PURE__*/function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var i=1&o?t:n;if(i){try{p(r,1,i(this.v))}catch(e){p(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?p(r,1,t?t(o):o):n?p(r,1,n(o)):p(r,2,o)}catch(e){p(r,2,e)}},r},e}();function d(e){return e instanceof h&&1&e.s}function _(e,t,n){for(var r;;){var o=e();if(d(o)&&(o=o.v),!o)return i;if(o.then){r=0;break}var i=n();if(i&&i.then){if(!d(i)){r=1;break}i=i.s}if(t){var a=t();if(a&&a.then&&!d(a)){r=2;break}}}var s=new h,c=p.bind(null,s,2);return(0===r?o.then(u):1===r?i.then(l):a.then(f)).then(void 0,c),s;function l(r){i=r;do{if(t&&(a=t())&&a.then&&!d(a))return void a.then(f).then(void 0,c);if(!(o=e())||d(o)&&!o.v)return void p(s,1,i);if(o.then)return void o.then(u).then(void 0,c);d(i=n())&&(i=i.v)}while(!i||!i.then);i.then(l).then(void 0,c)}function u(e){e?(i=n())&&i.then?i.then(l).then(void 0,c):l(i):p(s,1,i)}function f(){(o=e())?o.then?o.then(u).then(void 0,c):u(o):p(s,1,i)}}function v(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,n)}var m,y,g,b,k=[],x=Array.isArray,w=Object.assign;function A(e,n){var r=t.options.__s;t.options.__s=!0,m=t.options.__b,y=t.options.diffed,g=t.options.__r,b=t.options.unmount;var o=t.h(t.Fragment,null);o.__k=[e];try{return F(e,n||S,!1,void 0,o,!1)}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{t.options.__c&&t.options.__c(e,k),t.options.__s=r,k.length=0}}function C(){this.__d=!0}var S={};function T(e,t){var n,r=e.type,o=!0;return e.__c?(o=!1,(n=e.__c).state=n.__s):n=new r(e.props,t),e.__c=n,n.__v=e,n.props=e.props,n.context=t,n.__d=!0,null==n.state&&(n.state=S),null==n.__s&&(n.__s=n.state),r.getDerivedStateFromProps?n.state=w({},n.state,r.getDerivedStateFromProps(n.props,n.state)):o&&n.componentWillMount?(n.componentWillMount(),n.state=n.__s!==n.state?n.__s:n.state):!o&&n.componentWillUpdate&&n.componentWillUpdate(),g&&g(e),n.render(n.props,n.state,t)}function F(e,a,c,l,u,p){if(null==e||!0===e||!1===e||""===e)return"";if("object"!=typeof e)return"function"==typeof e?"":s(e+"");if(x(e)){var h,d="";u.__k=e;for(var _=0;_<e.length;_++){var v=e[_];if(null!=v&&"boolean"!=typeof v){var k,A=F(v,a,c,l,u,p);"string"==typeof A?d+=A:(h=h||[],d&&h.push(d),d="",Array.isArray(A)?(k=h).push.apply(k,A):h.push(A))}}return h?(d&&h.push(d),h):d}if(void 0!==e.constructor)return"";e.__=u,m&&m(e);var S,j,D,E=e.type,P=e.props,U=a;if("function"==typeof E){if(E===t.Fragment){if(P.tpl){for(var Z="",M=0;M<P.tpl.length;M++)if(Z+=P.tpl[M],P.exprs&&M<P.exprs.length){var W=P.exprs[M];if(null==W)continue;"object"!=typeof W||void 0!==W.constructor&&!x(W)?Z+=W:Z+=F(W,a,c,l,e,p)}return Z}if(P.UNSTABLE_comment)return"\x3c!--"+s(P.UNSTABLE_comment||"")+"--\x3e";j=P.children}else{if(null!=(S=E.contextType)){var $=a[S.__c];U=$?$.props.value:S.__}if(E.prototype&&"function"==typeof E.prototype.render)j=T(e,U),D=e.__c;else{e.__c=D={__v:e,props:P,context:U,setState:C,forceUpdate:C,__d:!0,__h:[]};for(var q=0;D.__d&&q++<25;)D.__d=!1,g&&g(e),j=E.call(D,P,U);D.__d=!0}if(null!=D.getChildContext&&(a=w({},a,D.getChildContext())),(E.getDerivedStateFromError||D.componentDidCatch)&&t.options.errorBoundaries){var z="";j=null!=j&&j.type===t.Fragment&&null==j.key?j.props.children:j;try{return z=F(j,a,c,l,e,p)}catch(n){return E.getDerivedStateFromError&&(D.__s=E.getDerivedStateFromError(n)),D.componentDidCatch&&D.componentDidCatch(n,{}),D.__d&&(j=T(e,a),null!=(D=e.__c).getChildContext&&(a=w({},a,D.getChildContext())),z=F(j=null!=j&&j.type===t.Fragment&&null==j.key?j.props.children:j,a,c,l,e,p)),z}finally{y&&y(e),e.__=null,b&&b(e)}}}j=null!=j&&j.type===t.Fragment&&null==j.key&&null==j.props.tpl?j.props.children:j;try{var H=F(j,a,c,l,e,p);return y&&y(e),e.__=null,b&&b(e),H}catch(t){if(!p)throw t;if(!t||"function"!=typeof t.then)throw t;var B=function t(){try{return F(j,a,c,l,e,p)}catch(n){if(!n||"function"!=typeof n.then)throw n;return n.then(function(){return F(j,a,c,l,e,p)},function(){return t()})}};return t.then(function(){return B()})}}var I,N="<"+E,O="";for(var R in P){var V=P[R];switch(R){case"children":I=V;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in P)continue;R="for";break;case"className":if("class"in P)continue;R="class";break;case"defaultChecked":R="checked";break;case"defaultSelected":R="selected";break;case"defaultValue":case"value":switch(R="value",E){case"textarea":I=V;continue;case"select":l=V;continue;case"option":l!=V||"selected"in P||(N+=" selected")}break;case"dangerouslySetInnerHTML":O=V&&V.__html;continue;case"style":"object"==typeof V&&(V=f(V));break;case"acceptCharset":R="accept-charset";break;case"httpEquiv":R="http-equiv";break;default:if(r.test(R))R=R.replace(r,"$1:$2").toLowerCase();else{if(n.test(R))continue;"-"!==R[4]&&"draggable"!==R||null==V?c?i.test(R)&&(R="panose1"===R?"panose-1":R.replace(/([A-Z])/g,"-$1").toLowerCase()):o.test(R)&&(R=R.toLowerCase()):V+=""}}null!=V&&!1!==V&&"function"!=typeof V&&(N=!0===V||""===V?N+" "+R:N+" "+R+'="'+s(V+"")+'"')}if(n.test(E))throw new Error(E+" is not a valid HTML tag name in "+N+">");if(O||("string"==typeof I?O=s(I):null!=I&&!1!==I&&!0!==I&&(O=F(I,a,"svg"===E||"foreignObject"!==E&&c,l,e,p))),y&&y(e),e.__=null,b&&b(e),!O&&L.has(E))return N+"/>";var K="</"+E+">",G=N+">";return Array.isArray(O)?[G].concat(O,[K]):"string"!=typeof O?[G,O,K]:G+O+K}var L=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),j=A,D=A;e.default=A,e.render=j,e.renderToStaticMarkup=D,e.renderToString=A,e.renderToStringAsync=function(e,n){try{var r,o=t.options.__s;t.options.__s=!0,m=t.options.__b,y=t.options.diffed,g=t.options.__r,b=t.options.unmount;var i=t.h(t.Fragment,null);return i.__k=[e],Promise.resolve(v(function(){var t=F(e,n||S,!1,void 0,i,!0),o=function(){if(Array.isArray(t)){var e=function(){var e=o.join("");return r=1,e},n=0,o=t,i=_(function(){return!!o.some(function(e){return"function"==typeof e.then})&&n++<25},void 0,function(){return Promise.resolve(Promise.all(o)).then(function(e){o=e.flat()})});return i&&i.then?i.then(e):e()}}();return o&&o.then?o.then(function(e){return r?e:t}):r?o:t},function(n,r){if(t.options.__c&&t.options.__c(e,k),t.options.__s=o,k.length=0,n)throw r;return r}))}catch(e){return Promise.reject(e)}}});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("preact")):"function"==typeof define&&define.amd?define(["exports","preact"],t):t((e||self).preactRenderToString={},e.preact)}(this,function(e,t){var n=/[\s\n\\/='"\0<>]/,r=/^(xlink|xmlns|xml)([A-Z])/,o=/^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|spellC|src[A-Z]|tabI|useM|item[A-Z]/,i=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,a=/["&<]/;function s(e){if(0===e.length||!1===a.test(e))return e;for(var t=0,n=0,r="",o="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==t&&(r+=e.slice(t,n)),r+=o,t=n+1}return n!==t&&(r+=e.slice(t,n)),r}var c={},l=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),u=/[A-Z]/g;function f(e){var t="";for(var n in e){var r=e[n];if(null!=r&&""!==r){var o="-"==n[0]?n:c[n]||(c[n]=n.replace(u,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||l.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function p(e,t,n){if(!e.s){if(n instanceof h){if(!n.s)return void(n.o=p.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(p.bind(null,e,t),p.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}var h=/*#__PURE__*/function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var i=1&o?t:n;if(i){try{p(r,1,i(this.v))}catch(e){p(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?p(r,1,t?t(o):o):n?p(r,1,n(o)):p(r,2,o)}catch(e){p(r,2,e)}},r},e}();function d(e){return e instanceof h&&1&e.s}function _(e,t,n){for(var r;;){var o=e();if(d(o)&&(o=o.v),!o)return i;if(o.then){r=0;break}var i=n();if(i&&i.then){if(!d(i)){r=1;break}i=i.s}if(t){var a=t();if(a&&a.then&&!d(a)){r=2;break}}}var s=new h,c=p.bind(null,s,2);return(0===r?o.then(u):1===r?i.then(l):a.then(f)).then(void 0,c),s;function l(r){i=r;do{if(t&&(a=t())&&a.then&&!d(a))return void a.then(f).then(void 0,c);if(!(o=e())||d(o)&&!o.v)return void p(s,1,i);if(o.then)return void o.then(u).then(void 0,c);d(i=n())&&(i=i.v)}while(!i||!i.then);i.then(l).then(void 0,c)}function u(e){e?(i=n())&&i.then?i.then(l).then(void 0,c):l(i):p(s,1,i)}function f(){(o=e())?o.then?o.then(u).then(void 0,c):u(o):p(s,1,i)}}function v(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,n)}var m,y,g,b,k=[],x=Array.isArray,w=Object.assign;function A(e,n,r){var o=t.options.__s;t.options.__s=!0,m=t.options.__b,y=t.options.diffed,g=t.options.__r,b=t.options.unmount;var i=t.h(t.Fragment,null);i.__k=[e];try{return F(e,n||S,!1,void 0,i,!1,r)}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{t.options.__c&&t.options.__c(e,k),t.options.__s=o,k.length=0}}function C(){this.__d=!0}var S={};function T(e,t){var n,r=e.type,o=!0;return e.__c?(o=!1,(n=e.__c).state=n.__s):n=new r(e.props,t),e.__c=n,n.__v=e,n.props=e.props,n.context=t,n.__d=!0,null==n.state&&(n.state=S),null==n.__s&&(n.__s=n.state),r.getDerivedStateFromProps?n.state=w({},n.state,r.getDerivedStateFromProps(n.props,n.state)):o&&n.componentWillMount?(n.componentWillMount(),n.state=n.__s!==n.state?n.__s:n.state):!o&&n.componentWillUpdate&&n.componentWillUpdate(),g&&g(e),n.render(n.props,n.state,t)}function F(e,a,c,l,u,p,h){if(null==e||!0===e||!1===e||""===e)return"";if("object"!=typeof e)return"function"==typeof e?"":s(e+"");if(x(e)){var d,_="";u.__k=e;for(var v=0;v<e.length;v++){var k=e[v];if(null!=k&&"boolean"!=typeof k){var A,S=F(k,a,c,l,u,p,h);"string"==typeof S?_+=S:(d=d||[],_&&d.push(_),_="",Array.isArray(S)?(A=d).push.apply(A,S):d.push(S))}}return d?(_&&d.push(_),d):_}if(void 0!==e.constructor)return"";e.__=u,m&&m(e);var E,j,D,M=e.type,P=e.props,U=a;if("function"==typeof M){if(M===t.Fragment){if(P.tpl){for(var Z="",W=0;W<P.tpl.length;W++)if(Z+=P.tpl[W],P.exprs&&W<P.exprs.length){var $=P.exprs[W];if(null==$)continue;"object"!=typeof $||void 0!==$.constructor&&!x($)?Z+=$:Z+=F($,a,c,l,e,p,h)}return Z}if(P.UNSTABLE_comment)return"\x3c!--"+s(P.UNSTABLE_comment||"")+"--\x3e";j=P.children}else{if(null!=(E=M.contextType)){var q=a[E.__c];U=q?q.props.value:E.__}if(M.prototype&&"function"==typeof M.prototype.render)j=T(e,U),D=e.__c;else{e.__c=D={__v:e,props:P,context:U,setState:C,forceUpdate:C,__d:!0,__h:[]};for(var z=0;D.__d&&z++<25;)D.__d=!1,g&&g(e),j=M.call(D,P,U);D.__d=!0}if(null!=D.getChildContext&&(a=w({},a,D.getChildContext())),(M.getDerivedStateFromError||D.componentDidCatch)&&t.options.errorBoundaries){var H="";j=null!=j&&j.type===t.Fragment&&null==j.key?j.props.children:j;try{return H=F(j,a,c,l,e,p,h)}catch(n){return M.getDerivedStateFromError&&(D.__s=M.getDerivedStateFromError(n)),D.componentDidCatch&&D.componentDidCatch(n,{}),D.__d&&(j=T(e,a),null!=(D=e.__c).getChildContext&&(a=w({},a,D.getChildContext())),H=F(j=null!=j&&j.type===t.Fragment&&null==j.key?j.props.children:j,a,c,l,e,p,h)),H}finally{y&&y(e),e.__=null,b&&b(e)}}}j=null!=j&&j.type===t.Fragment&&null==j.key&&null==j.props.tpl?j.props.children:j;try{var B=F(j,a,c,l,e,p,h);return y&&y(e),e.__=null,t.options.unmount&&t.options.unmount(e),B}catch(n){if(!p&&h&&h.onError){var I=h.onError(n,e,function(t){return F(t,a,c,l,e,p,h)});if(void 0!==I)return I;var N=t.options.__e;return N&&N(n,e),""}if(!p)throw n;if(!n||"function"!=typeof n.then)throw n;var O=function t(){try{return F(j,a,c,l,e,p,h)}catch(n){if(!n||"function"!=typeof n.then)throw n;return n.then(function(){return F(j,a,c,l,e,p,h)},function(){return t()})}};return n.then(function(){return O()})}}var R,V="<"+M,K="";for(var G in P){var J=P[G];switch(G){case"children":R=J;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in P)continue;G="for";break;case"className":if("class"in P)continue;G="class";break;case"defaultChecked":G="checked";break;case"defaultSelected":G="selected";break;case"defaultValue":case"value":switch(G="value",M){case"textarea":R=J;continue;case"select":l=J;continue;case"option":l!=J||"selected"in P||(V+=" selected")}break;case"dangerouslySetInnerHTML":K=J&&J.__html;continue;case"style":"object"==typeof J&&(J=f(J));break;case"acceptCharset":G="accept-charset";break;case"httpEquiv":G="http-equiv";break;default:if(r.test(G))G=G.replace(r,"$1:$2").toLowerCase();else{if(n.test(G))continue;"-"!==G[4]&&"draggable"!==G||null==J?c?i.test(G)&&(G="panose1"===G?"panose-1":G.replace(/([A-Z])/g,"-$1").toLowerCase()):o.test(G)&&(G=G.toLowerCase()):J+=""}}null!=J&&!1!==J&&"function"!=typeof J&&(V=!0===J||""===J?V+" "+G:V+" "+G+'="'+s(J+"")+'"')}if(n.test(M))throw new Error(M+" is not a valid HTML tag name in "+V+">");if(K||("string"==typeof R?K=s(R):null!=R&&!1!==R&&!0!==R&&(K=F(R,a,"svg"===M||"foreignObject"!==M&&c,l,e,p,h))),y&&y(e),e.__=null,b&&b(e),!K&&L.has(M))return V+"/>";var Q="</"+M+">",X=V+">";return Array.isArray(K)?[X].concat(K,[Q]):"string"!=typeof K?[X,K,Q]:X+K+Q}var L=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),E=A,j=A;e.default=A,e.render=E,e.renderToStaticMarkup=j,e.renderToString=A,e.renderToStringAsync=function(e,n){try{var r,o=t.options.__s;t.options.__s=!0,m=t.options.__b,y=t.options.diffed,g=t.options.__r,b=t.options.unmount;var i=t.h(t.Fragment,null);return i.__k=[e],Promise.resolve(v(function(){var t=F(e,n||S,!1,void 0,i,!0,void 0),o=function(){if(Array.isArray(t)){var e=function(){var e=o.join("");return r=1,e},n=0,o=t,i=_(function(){return!!o.some(function(e){return"function"==typeof e.then})&&n++<25},void 0,function(){return Promise.resolve(Promise.all(o)).then(function(e){o=e.flat()})});return i&&i.then?i.then(e):e()}}();return o&&o.then?o.then(function(e){return r?e:t}):r?o:t},function(n,r){if(t.options.__c&&t.options.__c(e,k),t.options.__s=o,k.length=0,n)throw r;return r}))}catch(e){return Promise.reject(e)}}});
//# sourceMappingURL=index.umd.js.map

@@ -1,2 +0,2 @@

var t=require("preact");if("function"!=typeof Symbol){var e=0;Symbol=function(t){return"@@"+t+ ++e},Symbol.for=function(t){return"@@"+t}}var n=/^(?:area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,r=/[\s\n\\/='"\0<>]/,o=/^(xlink|xmlns|xml)([A-Z])/,i=/^accessK|^auto[A-Z]|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|readO|rowS|spellC|src[A-Z]|tabI|item[A-Z]/,a=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,c=/["&<]/;function l(t){if(0===t.length||!1===c.test(t))return t;for(var e=0,n=0,r="",o="";n<t.length;n++){switch(t.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==e&&(r+=t.slice(e,n)),r+=o,e=n+1}return n!==e&&(r+=t.slice(e,n)),r}var s=function(t,e){return String(t).replace(/(\n+)/g,"$1"+(e||"\t"))},u=function(t,e,n){return String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},f={},p=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),d=/[A-Z]/g;function g(t){var e="";for(var n in t){var r=t[n];if(null!=r&&""!==r){var o="-"==n[0]?n:f[n]||(f[n]=n.replace(d,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||p.has(o)||(i="px;"),e=e+o+":"+r+i}}return e||void 0}function y(t,e){return Array.isArray(e)?e.reduce(y,t):null!=e&&!1!==e&&t.push(e),t}function b(){this.__d=!0}function v(t,e){return{__v:t,context:e,props:t.props,setState:b,forceUpdate:b,__d:!0,__h:[]}}var m=[],h=[];function _(e,n,r,o){var i=t.options.__s;t.options.__s=!0;try{return x(e,n||{},r,o)}finally{t.options.__c&&t.options.__c(e,h),t.options.__s=i,h.length=0}}function x(e,c,f,p,d,b){if(null==e||"boolean"==typeof e)return"";if("object"!=typeof e)return"function"==typeof e?"":l(e+"");var m=f.pretty,h=m&&"string"==typeof m?m:"\t";if(Array.isArray(e)){for(var _="",S=0;S<e.length;S++)m&&S>0&&(_+="\n"),_+=x(e[S],c,f,p,d,b);return _}if(void 0!==e.constructor)return"";t.options.__b&&t.options.__b(e);var k,w=e.type,A=e.props,O=!1;if("function"==typeof w){if(O=!0,!f.shallow||!p&&!1!==f.renderRootComponent){if(w===t.Fragment){var C=[];return y(C,e.props.children),x(C,c,f,!1!==f.shallowHighOrder,d,b)}var F,E=e.__c=v(e,c),$=t.options.__r,H=c,L=w.contextType;if(null!=L){var M=c[L.__c];H=M?M.props.value:L.__}if(w.prototype&&"function"==typeof w.prototype.render)(E=e.__c=new w(A,H)).__v=e,E._dirty=E.__d=!0,E.props=A,null==E.state&&(E.state={}),null==E._nextState&&null==E.__s&&(E._nextState=E.__s=E.state),E.context=H,w.getDerivedStateFromProps?E.state=Object.assign({},E.state,w.getDerivedStateFromProps(E.props,E.state)):E.componentWillMount&&(E.componentWillMount(),E.state=E._nextState!==E.state?E._nextState:E.__s!==E.state?E.__s:E.state),$&&$(e),F=E.render(E.props,E.state,E.context);else for(var I=0;E.__d&&I++<25;)E.__d=!1,$&&$(e),F=w.call(e.__c,A,H);E.getChildContext&&(c=Object.assign({},c,E.getChildContext()));var N=x(F,c,f,!1!==f.shallowHighOrder,d,b);return t.options.diffed&&t.options.diffed(e),N}w=(k=w).displayName||k!==Function&&k.name||j(k)}var D,W,U="<"+w;if(A){var Z=Object.keys(A);f&&!0===f.sortAttributes&&Z.sort();for(var P=0;P<Z.length;P++){var R=Z[P],T=A[R];if("children"!==R){if(!r.test(R)&&(f&&f.allAttributes||"key"!==R&&"ref"!==R&&"__self"!==R&&"__source"!==R)){if("defaultValue"===R)R="value";else if("defaultChecked"===R)R="checked";else if("defaultSelected"===R)R="selected";else if("className"===R){if(void 0!==A.class)continue;R="class"}else"acceptCharset"===R?R="accept-charset":"httpEquiv"===R?R="http-equiv":o.test(R)?R=R.replace(o,"$1:$2").toLowerCase():d?a.test(R)&&(R="panose1"===R?"panose-1":R.replace(/([A-Z])/g,"-$1").toLowerCase()):i.test(R)&&(R=R.toLowerCase());if("htmlFor"===R){if(A.for)continue;R="for"}"style"===R&&T&&"object"==typeof T&&(T=g(T)),"a"===R[0]&&"r"===R[1]&&"boolean"==typeof T&&(T=String(T));var q=f.attributeHook&&f.attributeHook(R,T,c,f,O);if(q||""===q)U+=q;else if("dangerouslySetInnerHTML"===R)W=T&&T.__html;else if("textarea"===w&&"value"===R)D=T;else if((T||0===T||""===T)&&"function"!=typeof T){if(!(!0!==T&&""!==T||(T=R,f&&f.xml))){U=U+" "+R;continue}if("value"===R){if("select"===w){b=T;continue}"option"===w&&b==T&&void 0===A.selected&&(U+=" selected")}U=U+" "+R+'="'+l(T+"")+'"'}}}else D=T}}if(m){var z=U.replace(/\n\s*/," ");z===U||~z.indexOf("\n")?m&&~U.indexOf("\n")&&(U+="\n"):U=z}if(U+=">",r.test(w))throw new Error(w+" is not a valid HTML tag name in "+U);var J,V=n.test(w)||f.voidElements&&f.voidElements.test(w),B=[];if(W)m&&u(W)&&(W="\n"+h+s(W,h)),U+=W;else if(null!=D&&y(J=[],D).length){for(var G=m&&~U.indexOf("\n"),K=!1,Q=0;Q<J.length;Q++){var X=J[Q];if(null!=X&&!1!==X){var Y=x(X,c,f,!0,"svg"===w||"foreignObject"!==w&&d,b);if(m&&!G&&u(Y)&&(G=!0),Y)if(m){var tt=Y.length>0&&"<"!=Y[0];K&&tt?B[B.length-1]+=Y:B.push(Y),K=tt}else B.push(Y)}}if(m&&G)for(var et=B.length;et--;)B[et]="\n"+h+s(B[et],h)}if(t.options.diffed&&t.options.diffed(e),B.length||W)U+=B.join("");else if(f&&f.xml)return U.substring(0,U.length-1)+" />";return!V||J||W?(m&&~U.indexOf("\n")&&(U+="\n"),U=U+"</"+w+">"):U=U.replace(/>$/," />"),U}function j(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=m.length;r--;)if(m[r]===t){n=r;break}n<0&&(n=m.push(t)-1),e="UnnamedComponent"+n}return e}var S=/(\\|\"|\')/g,k=function(t){return t.replace(S,"\\$1")},w=Object.prototype.toString,A=Date.prototype.toISOString,O=Error.prototype.toString,C=RegExp.prototype.toString,F=Symbol.prototype.toString,E=/^Symbol\((.*)\)(.*)$/,$=/\n/gi,H=Object.getOwnPropertySymbols||function(t){return[]};function L(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}function M(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}function I(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function N(t){return F.call(t).replace(E,"Symbol($1)")}function D(t){return"["+O.call(t)+"]"}function W(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";var e=typeof t;if("number"===e)return M(t);if("string"===e)return'"'+k(t)+'"';if("function"===e)return I(t);if("symbol"===e)return N(t);var n=w.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?I(t,min):"[object Symbol]"===n?N(t):"[object Date]"===n?A.call(t):"[object Error]"===n?D(t):"[object RegExp]"===n?C.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":L(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&D(t)}function U(t,e,n,r,o,i,a,c,l,s){var u="";if(t.length){u+=o;for(var f=n+e,p=0;p<t.length;p++)u+=f+V(t[p],e,f,r,o,i,a,c,l,s),p<t.length-1&&(u+=","+r);u+=o+n}return"["+u+"]"}function Z(t,e,n,r,o,i,a,c,l,s){return(s?"":"Arguments ")+U(t,e,n,r,o,i,a,c,l,s)}function P(t,e,n,r,o,i,a,c,l,s){return(s?"":t.constructor.name+" ")+U(t,e,n,r,o,i,a,c,l,s)}function R(t,e,n,r,o,i,a,c,l,s){var u="Map {",f=t.entries(),p=f.next();if(!p.done){u+=o;for(var d=n+e;!p.done;)u+=d+V(p.value[0],e,d,r,o,i,a,c,l,s)+" => "+V(p.value[1],e,d,r,o,i,a,c,l,s),(p=f.next()).done||(u+=","+r);u+=o+n}return u+"}"}function T(t,e,n,r,o,i,a,c,l,s){var u=(s?"":t.constructor?t.constructor.name+" ":"Object ")+"{",f=Object.keys(t).sort(),p=H(t);if(p.length&&(f=f.filter(function(t){return!("symbol"==typeof t||"[object Symbol]"===w.call(t))}).concat(p)),f.length){u+=o;for(var d=n+e,g=0;g<f.length;g++){var y=f[g];u+=d+V(y,e,d,r,o,i,a,c,l,s)+": "+V(t[y],e,d,r,o,i,a,c,l,s),g<f.length-1&&(u+=","+r)}u+=o+n}return u+"}"}function q(t,e,n,r,o,i,a,c,l,s){var u="Set {",f=t.entries(),p=f.next();if(!p.done){u+=o;for(var d=n+e;!p.done;)u+=d+V(p.value[1],e,d,r,o,i,a,c,l,s),(p=f.next()).done||(u+=","+r);u+=o+n}return u+"}"}function z(t,e,n,r,o,i,a,c,l,s){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);var u=++c>a;if(!u&&t.toJSON&&"function"==typeof t.toJSON)return V(t.toJSON(),e,n,r,o,i,a,c,l,s);var f=w.call(t);return"[object Arguments]"===f?u?"[Arguments]":Z(t,e,n,r,o,i,a,c,l,s):L(f)?u?"[Array]":P(t,e,n,r,o,i,a,c,l,s):"[object Map]"===f?u?"[Map]":R(t,e,n,r,o,i,a,c,l,s):"[object Set]"===f?u?"[Set]":q(t,e,n,r,o,i,a,c,l,s):"object"==typeof t?u?"[Object]":T(t,e,n,r,o,i,a,c,l,s):void 0}function J(t,e,n,r,o,i,a,c,l,s){for(var u,f=!1,p=0;p<l.length;p++)if((u=l[p]).test(t)){f=!0;break}return!!f&&u.print(t,function(t){return V(t,e,n,r,o,i,a,c,l,s)},function(t){var r=n+e;return r+t.replace($,"\n"+r)},{edgeSpacing:o,spacing:r})}function V(t,e,n,r,o,i,a,c,l,s){return W(t)||J(t,e,n,r,o,i,a,c,l,s)||z(t,e,n,r,o,i,a,c,l,s)}var B={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function G(t){if(Object.keys(t).forEach(function(t){if(!B.hasOwnProperty(t))throw new Error("prettyFormat: Invalid option: "+t)}),t.min&&void 0!==t.indent&&0!==t.indent)throw new Error("prettyFormat: Cannot run with min option and indent")}function K(t){var e={};return Object.keys(B).forEach(function(n){return e[n]=t.hasOwnProperty(n)?t[n]:B[n]}),e.min&&(e.indent=0),e}function Q(t){return new Array(t+1).join(" ")}var X=function(t,e){var n,r;e?(G(e),e=K(e)):e=B;var o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){var a=J(t,n=Q(e.indent),"",o,i,r=[],e.maxDepth,0,e.plugins,e.min);if(a)return a}return W(t)||(n||(n=Q(e.indent)),r||(r=[]),z(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))},Y={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,e,n){return _(t,Y.context,Y.opts,!0)}},tt={plugins:[Y]},et={attributeHook:function(t,e,n,r,o){var i=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===i&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===e||("class"===t||"style"===t)&&""===e))return"";var a="string"==typeof r.pretty?r.pretty:"\t";return"string"!==i?("function"!==i||r.functionNames?(Y.context=n,Y.opts=r,~(e=X(e,tt)).indexOf("\n")&&(e=s("\n"+e,a)+"\n")):e="Function",s("\n"+t+"={"+e+"}",a)):"\n"+a+t+'="'+l(e)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function nt(t,e,n){var r=Object.assign({},et,n||{});return r.jsx||(r.attributeHook=null),_(t,e,r)}var rt={shallow:!0};exports.default=nt,exports.render=nt,exports.shallowRender=function(t,e,n){return nt(t,e,Object.assign({},rt,n||{}))};
var t=require("preact");if("function"!=typeof Symbol){var e=0;Symbol=function(t){return"@@"+t+ ++e},Symbol.for=function(t){return"@@"+t}}var n=/^(?:area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,r=/[\s\n\\/='"\0<>]/,o=/^(xlink|xmlns|xml)([A-Z])/,i=/^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|spellC|src[A-Z]|tabI|useM|item[A-Z]/,a=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,c=/["&<]/;function l(t){if(0===t.length||!1===c.test(t))return t;for(var e=0,n=0,r="",o="";n<t.length;n++){switch(t.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==e&&(r+=t.slice(e,n)),r+=o,e=n+1}return n!==e&&(r+=t.slice(e,n)),r}var s=function(t,e){return String(t).replace(/(\n+)/g,"$1"+(e||"\t"))},u=function(t,e,n){return String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},f={},p=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),d=/[A-Z]/g;function g(t){var e="";for(var n in t){var r=t[n];if(null!=r&&""!==r){var o="-"==n[0]?n:f[n]||(f[n]=n.replace(d,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||p.has(o)||(i="px;"),e=e+o+":"+r+i}}return e||void 0}function v(t,e){return Array.isArray(e)?e.reduce(v,t):null!=e&&!1!==e&&t.push(e),t}function y(){this.__d=!0}function b(t,e){return{__v:t,context:e,props:t.props,setState:y,forceUpdate:y,__d:!0,__h:[]}}function m(t,e){var n=t.contextType,r=n&&e[n.__c];return null!=n?r?r.props.value:n.__:e}var h=[],_=[];function x(e,n,r,o){var i=t.options.__s;t.options.__s=!0;try{return j(e,n||{},r,o)}finally{t.options.__c&&t.options.__c(e,_),t.options.__s=i,_.length=0}}function j(e,c,f,p,d,y){if(null==e||"boolean"==typeof e)return"";if("object"!=typeof e)return"function"==typeof e?"":l(e+"");var h=f.pretty,_=h&&"string"==typeof h?h:"\t";if(Array.isArray(e)){for(var x="",k=0;k<e.length;k++)h&&k>0&&(x+="\n"),x+=j(e[k],c,f,p,d,y);return x}if(void 0!==e.constructor)return"";t.options.__b&&t.options.__b(e);var w,A=e.type,O=e.props,F=!1;if("function"==typeof A){if(F=!0,!f.shallow||!p&&!1!==f.renderRootComponent||A===t.Fragment){if(A===t.Fragment){var C=[];return v(C,e.props.children),j(C,c,f,!1!==f.shallowHighOrder,d,y)}var E,M=e.__c=b(e,c),$=t.options.__r;if(A.prototype&&"function"==typeof A.prototype.render){var H=m(A,c);(M=e.__c=new A(O,H)).__v=e,M._dirty=M.__d=!0,M.props=O,null==M.state&&(M.state={}),null==M._nextState&&null==M.__s&&(M._nextState=M.__s=M.state),M.context=H,A.getDerivedStateFromProps?M.state=Object.assign({},M.state,A.getDerivedStateFromProps(M.props,M.state)):M.componentWillMount&&(M.componentWillMount(),M.state=M._nextState!==M.state?M._nextState:M.__s!==M.state?M.__s:M.state),$&&$(e),E=M.render(M.props,M.state,M.context)}else for(var L=m(A,c),I=0;M.__d&&I++<25;)M.__d=!1,$&&$(e),E=A.call(e.__c,O,L);M.getChildContext&&(c=Object.assign({},c,M.getChildContext()));var N=j(E,c,f,!1!==f.shallowHighOrder,d,y);return t.options.diffed&&t.options.diffed(e),N}A=(w=A).displayName||w!==Function&&w.name||S(w)}var D,W,T="<"+A;if(O){var U=Object.keys(O);f&&!0===f.sortAttributes&&U.sort();for(var Z=0;Z<U.length;Z++){var P=U[Z],R=O[P];if("children"!==P){if(!r.test(P)&&(f&&f.allAttributes||"key"!==P&&"ref"!==P&&"__self"!==P&&"__source"!==P)){if("defaultValue"===P)P="value";else if("defaultChecked"===P)P="checked";else if("defaultSelected"===P)P="selected";else if("className"===P){if(void 0!==O.class)continue;P="class"}else"acceptCharset"===P?P="accept-charset":"httpEquiv"===P?P="http-equiv":o.test(P)?P=P.replace(o,"$1:$2").toLowerCase():d?a.test(P)&&(P="panose1"===P?"panose-1":P.replace(/([A-Z])/g,"-$1").toLowerCase()):i.test(P)&&(P=P.toLowerCase());if("htmlFor"===P){if(O.for)continue;P="for"}"style"===P&&R&&"object"==typeof R&&(R=g(R)),"a"===P[0]&&"r"===P[1]&&"boolean"==typeof R&&(R=String(R));var q=f.attributeHook&&f.attributeHook(P,R,c,f,F);if(q||""===q)T+=q;else if("dangerouslySetInnerHTML"===P)W=R&&R.__html;else if("textarea"===A&&"value"===P)D=R;else if((R||0===R||""===R)&&"function"!=typeof R){if(!(!0!==R&&""!==R||(R=P,f&&f.xml))){T=T+" "+P;continue}if("value"===P){if("select"===A){y=R;continue}"option"===A&&y==R&&void 0===O.selected&&(T+=" selected")}T=T+" "+P+'="'+l(R+"")+'"'}}}else D=R}}if(h){var z=T.replace(/\n\s*/," ");z===T||~z.indexOf("\n")?h&&~T.indexOf("\n")&&(T+="\n"):T=z}if(T+=">",r.test(A))throw new Error(A+" is not a valid HTML tag name in "+T);var J,V=n.test(A)||f.voidElements&&f.voidElements.test(A),B=[];if(W)h&&u(W)&&(W="\n"+_+s(W,_)),T+=W;else if(null!=D&&v(J=[],D).length){for(var G=h&&~T.indexOf("\n"),K=!1,Q=0;Q<J.length;Q++){var X=J[Q];if(null!=X&&!1!==X){var Y=j(X,c,f,!0,"svg"===A||"foreignObject"!==A&&d,y);if(h&&!G&&u(Y)&&(G=!0),Y)if(h){var tt=Y.length>0&&"<"!=Y[0];K&&tt?B[B.length-1]+=Y:B.push(Y),K=tt}else B.push(Y)}}if(h&&G)for(var et=B.length;et--;)B[et]="\n"+_+s(B[et],_)}if(t.options.diffed&&t.options.diffed(e),B.length||W)T+=B.join("");else if(f&&f.xml)return T.substring(0,T.length-1)+" />";return!V||J||W?(h&&~T.indexOf("\n")&&(T+="\n"),T=T+"</"+A+">"):T=T.replace(/>$/," />"),T}function S(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=h.length;r--;)if(h[r]===t){n=r;break}n<0&&(n=h.push(t)-1),e="UnnamedComponent"+n}return e}var k=/(\\|\"|\')/g,w=function(t){return t.replace(k,"\\$1")},A=Object.prototype.toString,O=Date.prototype.toISOString,F=Error.prototype.toString,C=RegExp.prototype.toString,E=Symbol.prototype.toString,M=/^Symbol\((.*)\)(.*)$/,$=/\n/gi,H=Object.getOwnPropertySymbols||function(t){return[]};function L(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}function I(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}function N(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function D(t){return E.call(t).replace(M,"Symbol($1)")}function W(t){return"["+F.call(t)+"]"}function T(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";var e=typeof t;if("number"===e)return I(t);if("string"===e)return'"'+w(t)+'"';if("function"===e)return N(t);if("symbol"===e)return D(t);var n=A.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?N(t,min):"[object Symbol]"===n?D(t):"[object Date]"===n?O.call(t):"[object Error]"===n?W(t):"[object RegExp]"===n?C.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":L(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&W(t)}function U(t,e,n,r,o,i,a,c,l,s){var u="";if(t.length){u+=o;for(var f=n+e,p=0;p<t.length;p++)u+=f+B(t[p],e,f,r,o,i,a,c,l,s),p<t.length-1&&(u+=","+r);u+=o+n}return"["+u+"]"}function Z(t,e,n,r,o,i,a,c,l,s){return(s?"":"Arguments ")+U(t,e,n,r,o,i,a,c,l,s)}function P(t,e,n,r,o,i,a,c,l,s){return(s?"":t.constructor.name+" ")+U(t,e,n,r,o,i,a,c,l,s)}function R(t,e,n,r,o,i,a,c,l,s){var u="Map {",f=t.entries(),p=f.next();if(!p.done){u+=o;for(var d=n+e;!p.done;)u+=d+B(p.value[0],e,d,r,o,i,a,c,l,s)+" => "+B(p.value[1],e,d,r,o,i,a,c,l,s),(p=f.next()).done||(u+=","+r);u+=o+n}return u+"}"}function q(t,e,n,r,o,i,a,c,l,s){var u=(s?"":t.constructor?t.constructor.name+" ":"Object ")+"{",f=Object.keys(t).sort(),p=H(t);if(p.length&&(f=f.filter(function(t){return!("symbol"==typeof t||"[object Symbol]"===A.call(t))}).concat(p)),f.length){u+=o;for(var d=n+e,g=0;g<f.length;g++){var v=f[g];u+=d+B(v,e,d,r,o,i,a,c,l,s)+": "+B(t[v],e,d,r,o,i,a,c,l,s),g<f.length-1&&(u+=","+r)}u+=o+n}return u+"}"}function z(t,e,n,r,o,i,a,c,l,s){var u="Set {",f=t.entries(),p=f.next();if(!p.done){u+=o;for(var d=n+e;!p.done;)u+=d+B(p.value[1],e,d,r,o,i,a,c,l,s),(p=f.next()).done||(u+=","+r);u+=o+n}return u+"}"}function J(t,e,n,r,o,i,a,c,l,s){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);var u=++c>a;if(!u&&t.toJSON&&"function"==typeof t.toJSON)return B(t.toJSON(),e,n,r,o,i,a,c,l,s);var f=A.call(t);return"[object Arguments]"===f?u?"[Arguments]":Z(t,e,n,r,o,i,a,c,l,s):L(f)?u?"[Array]":P(t,e,n,r,o,i,a,c,l,s):"[object Map]"===f?u?"[Map]":R(t,e,n,r,o,i,a,c,l,s):"[object Set]"===f?u?"[Set]":z(t,e,n,r,o,i,a,c,l,s):"object"==typeof t?u?"[Object]":q(t,e,n,r,o,i,a,c,l,s):void 0}function V(t,e,n,r,o,i,a,c,l,s){for(var u,f=!1,p=0;p<l.length;p++)if((u=l[p]).test(t)){f=!0;break}return!!f&&u.print(t,function(t){return B(t,e,n,r,o,i,a,c,l,s)},function(t){var r=n+e;return r+t.replace($,"\n"+r)},{edgeSpacing:o,spacing:r})}function B(t,e,n,r,o,i,a,c,l,s){return T(t)||V(t,e,n,r,o,i,a,c,l,s)||J(t,e,n,r,o,i,a,c,l,s)}var G={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function K(t){if(Object.keys(t).forEach(function(t){if(!G.hasOwnProperty(t))throw new Error("prettyFormat: Invalid option: "+t)}),t.min&&void 0!==t.indent&&0!==t.indent)throw new Error("prettyFormat: Cannot run with min option and indent")}function Q(t){var e={};return Object.keys(G).forEach(function(n){return e[n]=t.hasOwnProperty(n)?t[n]:G[n]}),e.min&&(e.indent=0),e}function X(t){return new Array(t+1).join(" ")}var Y=function(t,e){var n,r;e?(K(e),e=Q(e)):e=G;var o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){var a=V(t,n=X(e.indent),"",o,i,r=[],e.maxDepth,0,e.plugins,e.min);if(a)return a}return T(t)||(n||(n=X(e.indent)),r||(r=[]),J(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))},tt={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,e,n){return x(t,tt.context,tt.opts,!0)}},et={plugins:[tt]},nt={attributeHook:function(t,e,n,r,o){var i=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===i&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===e||("class"===t||"style"===t)&&""===e))return"";var a="string"==typeof r.pretty?r.pretty:"\t";return"string"!==i?("function"!==i||r.functionNames?(tt.context=n,tt.opts=r,~(e=Y(e,et)).indexOf("\n")&&(e=s("\n"+e,a)+"\n")):e="Function",s("\n"+t+"={"+e+"}",a)):"\n"+a+t+'="'+l(e)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function rt(t,e,n){var r=Object.assign({},nt,n||{});return r.jsx||(r.attributeHook=null),x(t,e,r)}var ot={shallow:!0};exports.default=rt,exports.render=rt,exports.shallowRender=function(t,e,n){return rt(t,e,Object.assign({},ot,n||{}))};
//# sourceMappingURL=jsx.js.map

@@ -1,2 +0,2 @@

import{options as t,Fragment as e}from"preact";if("function"!=typeof Symbol){var n=0;Symbol=function(t){return"@@"+t+ ++n},Symbol.for=function(t){return"@@"+t}}var r=/^(?:area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,o=/[\s\n\\/='"\0<>]/,i=/^(xlink|xmlns|xml)([A-Z])/,a=/^accessK|^auto[A-Z]|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|readO|rowS|spellC|src[A-Z]|tabI|item[A-Z]/,c=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,l=/["&<]/;function s(t){if(0===t.length||!1===l.test(t))return t;for(var e=0,n=0,r="",o="";n<t.length;n++){switch(t.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==e&&(r+=t.slice(e,n)),r+=o,e=n+1}return n!==e&&(r+=t.slice(e,n)),r}var u=function(t,e){return String(t).replace(/(\n+)/g,"$1"+(e||"\t"))},f=function(t,e,n){return String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},p={},d=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),g=/[A-Z]/g;function y(t){var e="";for(var n in t){var r=t[n];if(null!=r&&""!==r){var o="-"==n[0]?n:p[n]||(p[n]=n.replace(g,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||d.has(o)||(i="px;"),e=e+o+":"+r+i}}return e||void 0}function b(t,e){return Array.isArray(e)?e.reduce(b,t):null!=e&&!1!==e&&t.push(e),t}function m(){this.__d=!0}function h(t,e){return{__v:t,context:e,props:t.props,setState:m,forceUpdate:m,__d:!0,__h:[]}}var v=[],_=[];function x(e,n,r,o){var i=t.__s;t.__s=!0;try{return j(e,n||{},r,o)}finally{t.__c&&t.__c(e,_),t.__s=i,_.length=0}}function j(n,l,p,d,g,m){if(null==n||"boolean"==typeof n)return"";if("object"!=typeof n)return"function"==typeof n?"":s(n+"");var v=p.pretty,_=v&&"string"==typeof v?v:"\t";if(Array.isArray(n)){for(var x="",k=0;k<n.length;k++)v&&k>0&&(x+="\n"),x+=j(n[k],l,p,d,g,m);return x}if(void 0!==n.constructor)return"";t.__b&&t.__b(n);var A,w=n.type,O=n.props,C=!1;if("function"==typeof w){if(C=!0,!p.shallow||!d&&!1!==p.renderRootComponent){if(w===e){var F=[];return b(F,n.props.children),j(F,l,p,!1!==p.shallowHighOrder,g,m)}var E,$=n.__c=h(n,l),H=t.__r,L=l,M=w.contextType;if(null!=M){var I=l[M.__c];L=I?I.props.value:M.__}if(w.prototype&&"function"==typeof w.prototype.render)($=n.__c=new w(O,L)).__v=n,$._dirty=$.__d=!0,$.props=O,null==$.state&&($.state={}),null==$._nextState&&null==$.__s&&($._nextState=$.__s=$.state),$.context=L,w.getDerivedStateFromProps?$.state=Object.assign({},$.state,w.getDerivedStateFromProps($.props,$.state)):$.componentWillMount&&($.componentWillMount(),$.state=$._nextState!==$.state?$._nextState:$.__s!==$.state?$.__s:$.state),H&&H(n),E=$.render($.props,$.state,$.context);else for(var N=0;$.__d&&N++<25;)$.__d=!1,H&&H(n),E=w.call(n.__c,O,L);$.getChildContext&&(l=Object.assign({},l,$.getChildContext()));var D=j(E,l,p,!1!==p.shallowHighOrder,g,m);return t.diffed&&t.diffed(n),D}w=(A=w).displayName||A!==Function&&A.name||S(A)}var W,U,Z="<"+w;if(O){var P=Object.keys(O);p&&!0===p.sortAttributes&&P.sort();for(var T=0;T<P.length;T++){var R=P[T],z=O[R];if("children"!==R){if(!o.test(R)&&(p&&p.allAttributes||"key"!==R&&"ref"!==R&&"__self"!==R&&"__source"!==R)){if("defaultValue"===R)R="value";else if("defaultChecked"===R)R="checked";else if("defaultSelected"===R)R="selected";else if("className"===R){if(void 0!==O.class)continue;R="class"}else"acceptCharset"===R?R="accept-charset":"httpEquiv"===R?R="http-equiv":i.test(R)?R=R.replace(i,"$1:$2").toLowerCase():g?c.test(R)&&(R="panose1"===R?"panose-1":R.replace(/([A-Z])/g,"-$1").toLowerCase()):a.test(R)&&(R=R.toLowerCase());if("htmlFor"===R){if(O.for)continue;R="for"}"style"===R&&z&&"object"==typeof z&&(z=y(z)),"a"===R[0]&&"r"===R[1]&&"boolean"==typeof z&&(z=String(z));var q=p.attributeHook&&p.attributeHook(R,z,l,p,C);if(q||""===q)Z+=q;else if("dangerouslySetInnerHTML"===R)U=z&&z.__html;else if("textarea"===w&&"value"===R)W=z;else if((z||0===z||""===z)&&"function"!=typeof z){if(!(!0!==z&&""!==z||(z=R,p&&p.xml))){Z=Z+" "+R;continue}if("value"===R){if("select"===w){m=z;continue}"option"===w&&m==z&&void 0===O.selected&&(Z+=" selected")}Z=Z+" "+R+'="'+s(z+"")+'"'}}}else W=z}}if(v){var J=Z.replace(/\n\s*/," ");J===Z||~J.indexOf("\n")?v&&~Z.indexOf("\n")&&(Z+="\n"):Z=J}if(Z+=">",o.test(w))throw new Error(w+" is not a valid HTML tag name in "+Z);var V,B=r.test(w)||p.voidElements&&p.voidElements.test(w),G=[];if(U)v&&f(U)&&(U="\n"+_+u(U,_)),Z+=U;else if(null!=W&&b(V=[],W).length){for(var K=v&&~Z.indexOf("\n"),Q=!1,X=0;X<V.length;X++){var Y=V[X];if(null!=Y&&!1!==Y){var tt=j(Y,l,p,!0,"svg"===w||"foreignObject"!==w&&g,m);if(v&&!K&&f(tt)&&(K=!0),tt)if(v){var et=tt.length>0&&"<"!=tt[0];Q&&et?G[G.length-1]+=tt:G.push(tt),Q=et}else G.push(tt)}}if(v&&K)for(var nt=G.length;nt--;)G[nt]="\n"+_+u(G[nt],_)}if(t.diffed&&t.diffed(n),G.length||U)Z+=G.join("");else if(p&&p.xml)return Z.substring(0,Z.length-1)+" />";return!B||V||U?(v&&~Z.indexOf("\n")&&(Z+="\n"),Z=Z+"</"+w+">"):Z=Z.replace(/>$/," />"),Z}function S(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=v.length;r--;)if(v[r]===t){n=r;break}n<0&&(n=v.push(t)-1),e="UnnamedComponent"+n}return e}const k=/(\\|\"|\')/g;var A=function(t){return t.replace(k,"\\$1")};const w=Object.prototype.toString,O=Date.prototype.toISOString,C=Error.prototype.toString,F=RegExp.prototype.toString,E=Symbol.prototype.toString,$=/^Symbol\((.*)\)(.*)$/,H=/\n/gi,L=Object.getOwnPropertySymbols||(t=>[]);function M(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}function I(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}function N(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function D(t){return E.call(t).replace($,"Symbol($1)")}function W(t){return"["+C.call(t)+"]"}function U(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";const e=typeof t;if("number"===e)return I(t);if("string"===e)return'"'+A(t)+'"';if("function"===e)return N(t);if("symbol"===e)return D(t);const n=w.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?N(t,min):"[object Symbol]"===n?D(t):"[object Date]"===n?O.call(t):"[object Error]"===n?W(t):"[object RegExp]"===n?F.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":M(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&W(t)}function Z(t,e,n,r,o,i,a,c,l,s){let u="";if(t.length){u+=o;const f=n+e;for(let n=0;n<t.length;n++)u+=f+B(t[n],e,f,r,o,i,a,c,l,s),n<t.length-1&&(u+=","+r);u+=o+n}return"["+u+"]"}function P(t,e,n,r,o,i,a,c,l,s){return(s?"":"Arguments ")+Z(t,e,n,r,o,i,a,c,l,s)}function T(t,e,n,r,o,i,a,c,l,s){return(s?"":t.constructor.name+" ")+Z(t,e,n,r,o,i,a,c,l,s)}function R(t,e,n,r,o,i,a,c,l,s){let u="Map {";const f=t.entries();let p=f.next();if(!p.done){u+=o;const t=n+e;for(;!p.done;)u+=t+B(p.value[0],e,t,r,o,i,a,c,l,s)+" => "+B(p.value[1],e,t,r,o,i,a,c,l,s),p=f.next(),p.done||(u+=","+r);u+=o+n}return u+"}"}function z(t,e,n,r,o,i,a,c,l,s){let u=(s?"":t.constructor?t.constructor.name+" ":"Object ")+"{",f=Object.keys(t).sort();const p=L(t);if(p.length&&(f=f.filter(t=>!("symbol"==typeof t||"[object Symbol]"===w.call(t))).concat(p)),f.length){u+=o;const p=n+e;for(let n=0;n<f.length;n++){const d=f[n];u+=p+B(d,e,p,r,o,i,a,c,l,s)+": "+B(t[d],e,p,r,o,i,a,c,l,s),n<f.length-1&&(u+=","+r)}u+=o+n}return u+"}"}function q(t,e,n,r,o,i,a,c,l,s){let u="Set {";const f=t.entries();let p=f.next();if(!p.done){u+=o;const t=n+e;for(;!p.done;)u+=t+B(p.value[1],e,t,r,o,i,a,c,l,s),p=f.next(),p.done||(u+=","+r);u+=o+n}return u+"}"}function J(t,e,n,r,o,i,a,c,l,s){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);const u=++c>a;if(!u&&t.toJSON&&"function"==typeof t.toJSON)return B(t.toJSON(),e,n,r,o,i,a,c,l,s);const f=w.call(t);return"[object Arguments]"===f?u?"[Arguments]":P(t,e,n,r,o,i,a,c,l,s):M(f)?u?"[Array]":T(t,e,n,r,o,i,a,c,l,s):"[object Map]"===f?u?"[Map]":R(t,e,n,r,o,i,a,c,l,s):"[object Set]"===f?u?"[Set]":q(t,e,n,r,o,i,a,c,l,s):"object"==typeof t?u?"[Object]":z(t,e,n,r,o,i,a,c,l,s):void 0}function V(t,e,n,r,o,i,a,c,l,s){let u,f=!1;for(let e=0;e<l.length;e++)if(u=l[e],u.test(t)){f=!0;break}return!!f&&u.print(t,function(t){return B(t,e,n,r,o,i,a,c,l,s)},function(t){const r=n+e;return r+t.replace(H,"\n"+r)},{edgeSpacing:o,spacing:r})}function B(t,e,n,r,o,i,a,c,l,s){return U(t)||V(t,e,n,r,o,i,a,c,l,s)||J(t,e,n,r,o,i,a,c,l,s)}const G={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function K(t){if(Object.keys(t).forEach(t=>{if(!G.hasOwnProperty(t))throw new Error("prettyFormat: Invalid option: "+t)}),t.min&&void 0!==t.indent&&0!==t.indent)throw new Error("prettyFormat: Cannot run with min option and indent")}function Q(t){const e={};return Object.keys(G).forEach(n=>e[n]=t.hasOwnProperty(n)?t[n]:G[n]),e.min&&(e.indent=0),e}function X(t){return new Array(t+1).join(" ")}var Y=function(t,e){let n,r;e?(K(e),e=Q(e)):e=G;const o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){n=X(e.indent),r=[];var a=V(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min);if(a)return a}return U(t)||(n||(n=X(e.indent)),r||(r=[]),J(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))},tt={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,e,n){return x(t,tt.context,tt.opts,!0)}},et={plugins:[tt]},nt={attributeHook:function(t,e,n,r,o){var i=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===i&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===e||("class"===t||"style"===t)&&""===e))return"";var a="string"==typeof r.pretty?r.pretty:"\t";return"string"!==i?("function"!==i||r.functionNames?(tt.context=n,tt.opts=r,~(e=Y(e,et)).indexOf("\n")&&(e=u("\n"+e,a)+"\n")):e="Function",u("\n"+t+"={"+e+"}",a)):"\n"+a+t+'="'+s(e)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function rt(t,e,n){var r=Object.assign({},nt,n||{});return r.jsx||(r.attributeHook=null),x(t,e,r)}var ot={shallow:!0};function it(t,e,n){return rt(t,e,Object.assign({},ot,n||{}))}export default rt;export{rt as render,it as shallowRender};
import{options as t,Fragment as e}from"preact";if("function"!=typeof Symbol){var n=0;Symbol=function(t){return"@@"+t+ ++n},Symbol.for=function(t){return"@@"+t}}var r=/^(?:area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,o=/[\s\n\\/='"\0<>]/,i=/^(xlink|xmlns|xml)([A-Z])/,a=/^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|spellC|src[A-Z]|tabI|useM|item[A-Z]/,c=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,l=/["&<]/;function s(t){if(0===t.length||!1===l.test(t))return t;for(var e=0,n=0,r="",o="";n<t.length;n++){switch(t.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==e&&(r+=t.slice(e,n)),r+=o,e=n+1}return n!==e&&(r+=t.slice(e,n)),r}var u=function(t,e){return String(t).replace(/(\n+)/g,"$1"+(e||"\t"))},f=function(t,e,n){return String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},p={},d=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),g=/[A-Z]/g;function y(t){var e="";for(var n in t){var r=t[n];if(null!=r&&""!==r){var o="-"==n[0]?n:p[n]||(p[n]=n.replace(g,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||d.has(o)||(i="px;"),e=e+o+":"+r+i}}return e||void 0}function b(t,e){return Array.isArray(e)?e.reduce(b,t):null!=e&&!1!==e&&t.push(e),t}function m(){this.__d=!0}function h(t,e){return{__v:t,context:e,props:t.props,setState:m,forceUpdate:m,__d:!0,__h:[]}}function v(t,e){var n=t.contextType,r=n&&e[n.__c];return null!=n?r?r.props.value:n.__:e}var _=[],x=[];function j(e,n,r,o){var i=t.__s;t.__s=!0;try{return S(e,n||{},r,o)}finally{t.__c&&t.__c(e,x),t.__s=i,x.length=0}}function S(n,l,p,d,g,m){if(null==n||"boolean"==typeof n)return"";if("object"!=typeof n)return"function"==typeof n?"":s(n+"");var _=p.pretty,x=_&&"string"==typeof _?_:"\t";if(Array.isArray(n)){for(var j="",A=0;A<n.length;A++)_&&A>0&&(j+="\n"),j+=S(n[A],l,p,d,g,m);return j}if(void 0!==n.constructor)return"";t.__b&&t.__b(n);var w,O=n.type,C=n.props,F=!1;if("function"==typeof O){if(F=!0,!p.shallow||!d&&!1!==p.renderRootComponent||O===e){if(O===e){var E=[];return b(E,n.props.children),S(E,l,p,!1!==p.shallowHighOrder,g,m)}var M,$=n.__c=h(n,l),H=t.__r;if(O.prototype&&"function"==typeof O.prototype.render){var L=v(O,l);($=n.__c=new O(C,L)).__v=n,$._dirty=$.__d=!0,$.props=C,null==$.state&&($.state={}),null==$._nextState&&null==$.__s&&($._nextState=$.__s=$.state),$.context=L,O.getDerivedStateFromProps?$.state=Object.assign({},$.state,O.getDerivedStateFromProps($.props,$.state)):$.componentWillMount&&($.componentWillMount(),$.state=$._nextState!==$.state?$._nextState:$.__s!==$.state?$.__s:$.state),H&&H(n),M=$.render($.props,$.state,$.context)}else for(var I=v(O,l),N=0;$.__d&&N++<25;)$.__d=!1,H&&H(n),M=O.call(n.__c,C,I);$.getChildContext&&(l=Object.assign({},l,$.getChildContext()));var D=S(M,l,p,!1!==p.shallowHighOrder,g,m);return t.diffed&&t.diffed(n),D}O=(w=O).displayName||w!==Function&&w.name||k(w)}var W,T,U="<"+O;if(C){var Z=Object.keys(C);p&&!0===p.sortAttributes&&Z.sort();for(var P=0;P<Z.length;P++){var R=Z[P],z=C[R];if("children"!==R){if(!o.test(R)&&(p&&p.allAttributes||"key"!==R&&"ref"!==R&&"__self"!==R&&"__source"!==R)){if("defaultValue"===R)R="value";else if("defaultChecked"===R)R="checked";else if("defaultSelected"===R)R="selected";else if("className"===R){if(void 0!==C.class)continue;R="class"}else"acceptCharset"===R?R="accept-charset":"httpEquiv"===R?R="http-equiv":i.test(R)?R=R.replace(i,"$1:$2").toLowerCase():g?c.test(R)&&(R="panose1"===R?"panose-1":R.replace(/([A-Z])/g,"-$1").toLowerCase()):a.test(R)&&(R=R.toLowerCase());if("htmlFor"===R){if(C.for)continue;R="for"}"style"===R&&z&&"object"==typeof z&&(z=y(z)),"a"===R[0]&&"r"===R[1]&&"boolean"==typeof z&&(z=String(z));var q=p.attributeHook&&p.attributeHook(R,z,l,p,F);if(q||""===q)U+=q;else if("dangerouslySetInnerHTML"===R)T=z&&z.__html;else if("textarea"===O&&"value"===R)W=z;else if((z||0===z||""===z)&&"function"!=typeof z){if(!(!0!==z&&""!==z||(z=R,p&&p.xml))){U=U+" "+R;continue}if("value"===R){if("select"===O){m=z;continue}"option"===O&&m==z&&void 0===C.selected&&(U+=" selected")}U=U+" "+R+'="'+s(z+"")+'"'}}}else W=z}}if(_){var J=U.replace(/\n\s*/," ");J===U||~J.indexOf("\n")?_&&~U.indexOf("\n")&&(U+="\n"):U=J}if(U+=">",o.test(O))throw new Error(O+" is not a valid HTML tag name in "+U);var V,B=r.test(O)||p.voidElements&&p.voidElements.test(O),G=[];if(T)_&&f(T)&&(T="\n"+x+u(T,x)),U+=T;else if(null!=W&&b(V=[],W).length){for(var K=_&&~U.indexOf("\n"),Q=!1,X=0;X<V.length;X++){var Y=V[X];if(null!=Y&&!1!==Y){var tt=S(Y,l,p,!0,"svg"===O||"foreignObject"!==O&&g,m);if(_&&!K&&f(tt)&&(K=!0),tt)if(_){var et=tt.length>0&&"<"!=tt[0];Q&&et?G[G.length-1]+=tt:G.push(tt),Q=et}else G.push(tt)}}if(_&&K)for(var nt=G.length;nt--;)G[nt]="\n"+x+u(G[nt],x)}if(t.diffed&&t.diffed(n),G.length||T)U+=G.join("");else if(p&&p.xml)return U.substring(0,U.length-1)+" />";return!B||V||T?(_&&~U.indexOf("\n")&&(U+="\n"),U=U+"</"+O+">"):U=U.replace(/>$/," />"),U}function k(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=_.length;r--;)if(_[r]===t){n=r;break}n<0&&(n=_.push(t)-1),e="UnnamedComponent"+n}return e}const A=/(\\|\"|\')/g;var w=function(t){return t.replace(A,"\\$1")};const O=Object.prototype.toString,C=Date.prototype.toISOString,F=Error.prototype.toString,E=RegExp.prototype.toString,M=Symbol.prototype.toString,$=/^Symbol\((.*)\)(.*)$/,H=/\n/gi,L=Object.getOwnPropertySymbols||(t=>[]);function I(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}function N(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}function D(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function W(t){return M.call(t).replace($,"Symbol($1)")}function T(t){return"["+F.call(t)+"]"}function U(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";const e=typeof t;if("number"===e)return N(t);if("string"===e)return'"'+w(t)+'"';if("function"===e)return D(t);if("symbol"===e)return W(t);const n=O.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?D(t,min):"[object Symbol]"===n?W(t):"[object Date]"===n?C.call(t):"[object Error]"===n?T(t):"[object RegExp]"===n?E.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":I(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&T(t)}function Z(t,e,n,r,o,i,a,c,l,s){let u="";if(t.length){u+=o;const f=n+e;for(let n=0;n<t.length;n++)u+=f+G(t[n],e,f,r,o,i,a,c,l,s),n<t.length-1&&(u+=","+r);u+=o+n}return"["+u+"]"}function P(t,e,n,r,o,i,a,c,l,s){return(s?"":"Arguments ")+Z(t,e,n,r,o,i,a,c,l,s)}function R(t,e,n,r,o,i,a,c,l,s){return(s?"":t.constructor.name+" ")+Z(t,e,n,r,o,i,a,c,l,s)}function z(t,e,n,r,o,i,a,c,l,s){let u="Map {";const f=t.entries();let p=f.next();if(!p.done){u+=o;const t=n+e;for(;!p.done;)u+=t+G(p.value[0],e,t,r,o,i,a,c,l,s)+" => "+G(p.value[1],e,t,r,o,i,a,c,l,s),p=f.next(),p.done||(u+=","+r);u+=o+n}return u+"}"}function q(t,e,n,r,o,i,a,c,l,s){let u=(s?"":t.constructor?t.constructor.name+" ":"Object ")+"{",f=Object.keys(t).sort();const p=L(t);if(p.length&&(f=f.filter(t=>!("symbol"==typeof t||"[object Symbol]"===O.call(t))).concat(p)),f.length){u+=o;const p=n+e;for(let n=0;n<f.length;n++){const d=f[n];u+=p+G(d,e,p,r,o,i,a,c,l,s)+": "+G(t[d],e,p,r,o,i,a,c,l,s),n<f.length-1&&(u+=","+r)}u+=o+n}return u+"}"}function J(t,e,n,r,o,i,a,c,l,s){let u="Set {";const f=t.entries();let p=f.next();if(!p.done){u+=o;const t=n+e;for(;!p.done;)u+=t+G(p.value[1],e,t,r,o,i,a,c,l,s),p=f.next(),p.done||(u+=","+r);u+=o+n}return u+"}"}function V(t,e,n,r,o,i,a,c,l,s){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);const u=++c>a;if(!u&&t.toJSON&&"function"==typeof t.toJSON)return G(t.toJSON(),e,n,r,o,i,a,c,l,s);const f=O.call(t);return"[object Arguments]"===f?u?"[Arguments]":P(t,e,n,r,o,i,a,c,l,s):I(f)?u?"[Array]":R(t,e,n,r,o,i,a,c,l,s):"[object Map]"===f?u?"[Map]":z(t,e,n,r,o,i,a,c,l,s):"[object Set]"===f?u?"[Set]":J(t,e,n,r,o,i,a,c,l,s):"object"==typeof t?u?"[Object]":q(t,e,n,r,o,i,a,c,l,s):void 0}function B(t,e,n,r,o,i,a,c,l,s){let u,f=!1;for(let e=0;e<l.length;e++)if(u=l[e],u.test(t)){f=!0;break}return!!f&&u.print(t,function(t){return G(t,e,n,r,o,i,a,c,l,s)},function(t){const r=n+e;return r+t.replace(H,"\n"+r)},{edgeSpacing:o,spacing:r})}function G(t,e,n,r,o,i,a,c,l,s){return U(t)||B(t,e,n,r,o,i,a,c,l,s)||V(t,e,n,r,o,i,a,c,l,s)}const K={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function Q(t){if(Object.keys(t).forEach(t=>{if(!K.hasOwnProperty(t))throw new Error("prettyFormat: Invalid option: "+t)}),t.min&&void 0!==t.indent&&0!==t.indent)throw new Error("prettyFormat: Cannot run with min option and indent")}function X(t){const e={};return Object.keys(K).forEach(n=>e[n]=t.hasOwnProperty(n)?t[n]:K[n]),e.min&&(e.indent=0),e}function Y(t){return new Array(t+1).join(" ")}var tt=function(t,e){let n,r;e?(Q(e),e=X(e)):e=K;const o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){n=Y(e.indent),r=[];var a=B(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min);if(a)return a}return U(t)||(n||(n=Y(e.indent)),r||(r=[]),V(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))},et={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,e,n){return j(t,et.context,et.opts,!0)}},nt={plugins:[et]},rt={attributeHook:function(t,e,n,r,o){var i=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===i&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===e||("class"===t||"style"===t)&&""===e))return"";var a="string"==typeof r.pretty?r.pretty:"\t";return"string"!==i?("function"!==i||r.functionNames?(et.context=n,et.opts=r,~(e=tt(e,nt)).indexOf("\n")&&(e=u("\n"+e,a)+"\n")):e="Function",u("\n"+t+"={"+e+"}",a)):"\n"+a+t+'="'+s(e)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function ot(t,e,n){var r=Object.assign({},rt,n||{});return r.jsx||(r.attributeHook=null),j(t,e,r)}var it={shallow:!0};function at(t,e,n){return ot(t,e,Object.assign({},it,n||{}))}export default ot;export{ot as render,at as shallowRender};
//# sourceMappingURL=jsx.module.js.map

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("preact")):"function"==typeof define&&define.amd?define(["exports","preact"],e):e((t||self).preactRenderToString={},t.preact)}(this,function(t,e){if("function"!=typeof Symbol){var n=0;Symbol=function(t){return"@@"+t+ ++n},Symbol.for=function(t){return"@@"+t}}var r=/^(?:area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,o=/[\s\n\\/='"\0<>]/,i=/^(xlink|xmlns|xml)([A-Z])/,a=/^accessK|^auto[A-Z]|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|readO|rowS|spellC|src[A-Z]|tabI|item[A-Z]/,c=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,s=/["&<]/;function l(t){if(0===t.length||!1===s.test(t))return t;for(var e=0,n=0,r="",o="";n<t.length;n++){switch(t.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==e&&(r+=t.slice(e,n)),r+=o,e=n+1}return n!==e&&(r+=t.slice(e,n)),r}var u=function(t,e){return String(t).replace(/(\n+)/g,"$1"+(e||"\t"))},f=function(t,e,n){return String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},p={},d=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),g=/[A-Z]/g;function y(t){var e="";for(var n in t){var r=t[n];if(null!=r&&""!==r){var o="-"==n[0]?n:p[n]||(p[n]=n.replace(g,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||d.has(o)||(i="px;"),e=e+o+":"+r+i}}return e||void 0}function b(t,e){return Array.isArray(e)?e.reduce(b,t):null!=e&&!1!==e&&t.push(e),t}function h(){this.__d=!0}function m(t,e){return{__v:t,context:e,props:t.props,setState:h,forceUpdate:h,__d:!0,__h:[]}}var v=[],_=[];function x(t,n,r,o){var i=e.options.__s;e.options.__s=!0;try{return j(t,n||{},r,o)}finally{e.options.__c&&e.options.__c(t,_),e.options.__s=i,_.length=0}}function j(t,n,s,p,d,g){if(null==t||"boolean"==typeof t)return"";if("object"!=typeof t)return"function"==typeof t?"":l(t+"");var h=s.pretty,v=h&&"string"==typeof h?h:"\t";if(Array.isArray(t)){for(var _="",x=0;x<t.length;x++)h&&x>0&&(_+="\n"),_+=j(t[x],n,s,p,d,g);return _}if(void 0!==t.constructor)return"";e.options.__b&&e.options.__b(t);var k,w=t.type,A=t.props,O=!1;if("function"==typeof w){if(O=!0,!s.shallow||!p&&!1!==s.renderRootComponent){if(w===e.Fragment){var C=[];return b(C,t.props.children),j(C,n,s,!1!==s.shallowHighOrder,d,g)}var F,E=t.__c=m(t,n),$=e.options.__r,H=n,L=w.contextType;if(null!=L){var M=n[L.__c];H=M?M.props.value:L.__}if(w.prototype&&"function"==typeof w.prototype.render)(E=t.__c=new w(A,H)).__v=t,E._dirty=E.__d=!0,E.props=A,null==E.state&&(E.state={}),null==E._nextState&&null==E.__s&&(E._nextState=E.__s=E.state),E.context=H,w.getDerivedStateFromProps?E.state=Object.assign({},E.state,w.getDerivedStateFromProps(E.props,E.state)):E.componentWillMount&&(E.componentWillMount(),E.state=E._nextState!==E.state?E._nextState:E.__s!==E.state?E.__s:E.state),$&&$(t),F=E.render(E.props,E.state,E.context);else for(var I=0;E.__d&&I++<25;)E.__d=!1,$&&$(t),F=w.call(t.__c,A,H);E.getChildContext&&(n=Object.assign({},n,E.getChildContext()));var N=j(F,n,s,!1!==s.shallowHighOrder,d,g);return e.options.diffed&&e.options.diffed(t),N}w=(k=w).displayName||k!==Function&&k.name||S(k)}var T,D,W="<"+w;if(A){var R=Object.keys(A);s&&!0===s.sortAttributes&&R.sort();for(var U=0;U<R.length;U++){var Z=R[U],P=A[Z];if("children"!==Z){if(!o.test(Z)&&(s&&s.allAttributes||"key"!==Z&&"ref"!==Z&&"__self"!==Z&&"__source"!==Z)){if("defaultValue"===Z)Z="value";else if("defaultChecked"===Z)Z="checked";else if("defaultSelected"===Z)Z="selected";else if("className"===Z){if(void 0!==A.class)continue;Z="class"}else"acceptCharset"===Z?Z="accept-charset":"httpEquiv"===Z?Z="http-equiv":i.test(Z)?Z=Z.replace(i,"$1:$2").toLowerCase():d?c.test(Z)&&(Z="panose1"===Z?"panose-1":Z.replace(/([A-Z])/g,"-$1").toLowerCase()):a.test(Z)&&(Z=Z.toLowerCase());if("htmlFor"===Z){if(A.for)continue;Z="for"}"style"===Z&&P&&"object"==typeof P&&(P=y(P)),"a"===Z[0]&&"r"===Z[1]&&"boolean"==typeof P&&(P=String(P));var q=s.attributeHook&&s.attributeHook(Z,P,n,s,O);if(q||""===q)W+=q;else if("dangerouslySetInnerHTML"===Z)D=P&&P.__html;else if("textarea"===w&&"value"===Z)T=P;else if((P||0===P||""===P)&&"function"!=typeof P){if(!(!0!==P&&""!==P||(P=Z,s&&s.xml))){W=W+" "+Z;continue}if("value"===Z){if("select"===w){g=P;continue}"option"===w&&g==P&&void 0===A.selected&&(W+=" selected")}W=W+" "+Z+'="'+l(P+"")+'"'}}}else T=P}}if(h){var z=W.replace(/\n\s*/," ");z===W||~z.indexOf("\n")?h&&~W.indexOf("\n")&&(W+="\n"):W=z}if(W+=">",o.test(w))throw new Error(w+" is not a valid HTML tag name in "+W);var J,V=r.test(w)||s.voidElements&&s.voidElements.test(w),B=[];if(D)h&&f(D)&&(D="\n"+v+u(D,v)),W+=D;else if(null!=T&&b(J=[],T).length){for(var G=h&&~W.indexOf("\n"),K=!1,Q=0;Q<J.length;Q++){var X=J[Q];if(null!=X&&!1!==X){var Y=j(X,n,s,!0,"svg"===w||"foreignObject"!==w&&d,g);if(h&&!G&&f(Y)&&(G=!0),Y)if(h){var tt=Y.length>0&&"<"!=Y[0];K&&tt?B[B.length-1]+=Y:B.push(Y),K=tt}else B.push(Y)}}if(h&&G)for(var et=B.length;et--;)B[et]="\n"+v+u(B[et],v)}if(e.options.diffed&&e.options.diffed(t),B.length||D)W+=B.join("");else if(s&&s.xml)return W.substring(0,W.length-1)+" />";return!V||J||D?(h&&~W.indexOf("\n")&&(W+="\n"),W=W+"</"+w+">"):W=W.replace(/>$/," />"),W}function S(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=v.length;r--;)if(v[r]===t){n=r;break}n<0&&(n=v.push(t)-1),e="UnnamedComponent"+n}return e}const k=/(\\|\"|\')/g;var w=function(t){return t.replace(k,"\\$1")};const A=Object.prototype.toString,O=Date.prototype.toISOString,C=Error.prototype.toString,F=RegExp.prototype.toString,E=Symbol.prototype.toString,$=/^Symbol\((.*)\)(.*)$/,H=/\n/gi,L=Object.getOwnPropertySymbols||(t=>[]);function M(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}function I(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}function N(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function T(t){return E.call(t).replace($,"Symbol($1)")}function D(t){return"["+C.call(t)+"]"}function W(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";const e=typeof t;if("number"===e)return I(t);if("string"===e)return'"'+w(t)+'"';if("function"===e)return N(t);if("symbol"===e)return T(t);const n=A.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?N(t,min):"[object Symbol]"===n?T(t):"[object Date]"===n?O.call(t):"[object Error]"===n?D(t):"[object RegExp]"===n?F.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":M(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&D(t)}function R(t,e,n,r,o,i,a,c,s,l){let u="";if(t.length){u+=o;const f=n+e;for(let n=0;n<t.length;n++)u+=f+B(t[n],e,f,r,o,i,a,c,s,l),n<t.length-1&&(u+=","+r);u+=o+n}return"["+u+"]"}function U(t,e,n,r,o,i,a,c,s,l){return(l?"":"Arguments ")+R(t,e,n,r,o,i,a,c,s,l)}function Z(t,e,n,r,o,i,a,c,s,l){return(l?"":t.constructor.name+" ")+R(t,e,n,r,o,i,a,c,s,l)}function P(t,e,n,r,o,i,a,c,s,l){let u="Map {";const f=t.entries();let p=f.next();if(!p.done){u+=o;const t=n+e;for(;!p.done;)u+=t+B(p.value[0],e,t,r,o,i,a,c,s,l)+" => "+B(p.value[1],e,t,r,o,i,a,c,s,l),p=f.next(),p.done||(u+=","+r);u+=o+n}return u+"}"}function q(t,e,n,r,o,i,a,c,s,l){let u=(l?"":t.constructor?t.constructor.name+" ":"Object ")+"{",f=Object.keys(t).sort();const p=L(t);if(p.length&&(f=f.filter(t=>!("symbol"==typeof t||"[object Symbol]"===A.call(t))).concat(p)),f.length){u+=o;const p=n+e;for(let n=0;n<f.length;n++){const d=f[n];u+=p+B(d,e,p,r,o,i,a,c,s,l)+": "+B(t[d],e,p,r,o,i,a,c,s,l),n<f.length-1&&(u+=","+r)}u+=o+n}return u+"}"}function z(t,e,n,r,o,i,a,c,s,l){let u="Set {";const f=t.entries();let p=f.next();if(!p.done){u+=o;const t=n+e;for(;!p.done;)u+=t+B(p.value[1],e,t,r,o,i,a,c,s,l),p=f.next(),p.done||(u+=","+r);u+=o+n}return u+"}"}function J(t,e,n,r,o,i,a,c,s,l){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);const u=++c>a;if(!u&&t.toJSON&&"function"==typeof t.toJSON)return B(t.toJSON(),e,n,r,o,i,a,c,s,l);const f=A.call(t);return"[object Arguments]"===f?u?"[Arguments]":U(t,e,n,r,o,i,a,c,s,l):M(f)?u?"[Array]":Z(t,e,n,r,o,i,a,c,s,l):"[object Map]"===f?u?"[Map]":P(t,e,n,r,o,i,a,c,s,l):"[object Set]"===f?u?"[Set]":z(t,e,n,r,o,i,a,c,s,l):"object"==typeof t?u?"[Object]":q(t,e,n,r,o,i,a,c,s,l):void 0}function V(t,e,n,r,o,i,a,c,s,l){let u,f=!1;for(let e=0;e<s.length;e++)if(u=s[e],u.test(t)){f=!0;break}return!!f&&u.print(t,function(t){return B(t,e,n,r,o,i,a,c,s,l)},function(t){const r=n+e;return r+t.replace(H,"\n"+r)},{edgeSpacing:o,spacing:r})}function B(t,e,n,r,o,i,a,c,s,l){return W(t)||V(t,e,n,r,o,i,a,c,s,l)||J(t,e,n,r,o,i,a,c,s,l)}const G={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function K(t){if(Object.keys(t).forEach(t=>{if(!G.hasOwnProperty(t))throw new Error("prettyFormat: Invalid option: "+t)}),t.min&&void 0!==t.indent&&0!==t.indent)throw new Error("prettyFormat: Cannot run with min option and indent")}function Q(t){const e={};return Object.keys(G).forEach(n=>e[n]=t.hasOwnProperty(n)?t[n]:G[n]),e.min&&(e.indent=0),e}function X(t){return new Array(t+1).join(" ")}var Y=function(t,e){let n,r;e?(K(e),e=Q(e)):e=G;const o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){n=X(e.indent),r=[];var a=V(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min);if(a)return a}return W(t)||(n||(n=X(e.indent)),r||(r=[]),J(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))},tt={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,e,n){return x(t,tt.context,tt.opts,!0)}},et={plugins:[tt]},nt={attributeHook:function(t,e,n,r,o){var i=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===i&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===e||("class"===t||"style"===t)&&""===e))return"";var a="string"==typeof r.pretty?r.pretty:"\t";return"string"!==i?("function"!==i||r.functionNames?(tt.context=n,tt.opts=r,~(e=Y(e,et)).indexOf("\n")&&(e=u("\n"+e,a)+"\n")):e="Function",u("\n"+t+"={"+e+"}",a)):"\n"+a+t+'="'+l(e)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function rt(t,e,n){var r=Object.assign({},nt,n||{});return r.jsx||(r.attributeHook=null),x(t,e,r)}var ot={shallow:!0};t.default=rt,t.render=rt,t.shallowRender=function(t,e,n){return rt(t,e,Object.assign({},ot,n||{}))}});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("preact")):"function"==typeof define&&define.amd?define(["exports","preact"],e):e((t||self).preactRenderToString={},t.preact)}(this,function(t,e){if("function"!=typeof Symbol){var n=0;Symbol=function(t){return"@@"+t+ ++n},Symbol.for=function(t){return"@@"+t}}var r=/^(?:area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,o=/[\s\n\\/='"\0<>]/,i=/^(xlink|xmlns|xml)([A-Z])/,a=/^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|spellC|src[A-Z]|tabI|useM|item[A-Z]/,c=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,s=/["&<]/;function l(t){if(0===t.length||!1===s.test(t))return t;for(var e=0,n=0,r="",o="";n<t.length;n++){switch(t.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==e&&(r+=t.slice(e,n)),r+=o,e=n+1}return n!==e&&(r+=t.slice(e,n)),r}var u=function(t,e){return String(t).replace(/(\n+)/g,"$1"+(e||"\t"))},f=function(t,e,n){return String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},p={},d=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),g=/[A-Z]/g;function y(t){var e="";for(var n in t){var r=t[n];if(null!=r&&""!==r){var o="-"==n[0]?n:p[n]||(p[n]=n.replace(g,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||d.has(o)||(i="px;"),e=e+o+":"+r+i}}return e||void 0}function b(t,e){return Array.isArray(e)?e.reduce(b,t):null!=e&&!1!==e&&t.push(e),t}function m(){this.__d=!0}function h(t,e){return{__v:t,context:e,props:t.props,setState:m,forceUpdate:m,__d:!0,__h:[]}}function v(t,e){var n=t.contextType,r=n&&e[n.__c];return null!=n?r?r.props.value:n.__:e}var _=[],x=[];function j(t,n,r,o){var i=e.options.__s;e.options.__s=!0;try{return S(t,n||{},r,o)}finally{e.options.__c&&e.options.__c(t,x),e.options.__s=i,x.length=0}}function S(t,n,s,p,d,g){if(null==t||"boolean"==typeof t)return"";if("object"!=typeof t)return"function"==typeof t?"":l(t+"");var m=s.pretty,_=m&&"string"==typeof m?m:"\t";if(Array.isArray(t)){for(var x="",j=0;j<t.length;j++)m&&j>0&&(x+="\n"),x+=S(t[j],n,s,p,d,g);return x}if(void 0!==t.constructor)return"";e.options.__b&&e.options.__b(t);var w,A=t.type,O=t.props,F=!1;if("function"==typeof A){if(F=!0,!s.shallow||!p&&!1!==s.renderRootComponent||A===e.Fragment){if(A===e.Fragment){var C=[];return b(C,t.props.children),S(C,n,s,!1!==s.shallowHighOrder,d,g)}var E,M=t.__c=h(t,n),$=e.options.__r;if(A.prototype&&"function"==typeof A.prototype.render){var H=v(A,n);(M=t.__c=new A(O,H)).__v=t,M._dirty=M.__d=!0,M.props=O,null==M.state&&(M.state={}),null==M._nextState&&null==M.__s&&(M._nextState=M.__s=M.state),M.context=H,A.getDerivedStateFromProps?M.state=Object.assign({},M.state,A.getDerivedStateFromProps(M.props,M.state)):M.componentWillMount&&(M.componentWillMount(),M.state=M._nextState!==M.state?M._nextState:M.__s!==M.state?M.__s:M.state),$&&$(t),E=M.render(M.props,M.state,M.context)}else for(var L=v(A,n),I=0;M.__d&&I++<25;)M.__d=!1,$&&$(t),E=A.call(t.__c,O,L);M.getChildContext&&(n=Object.assign({},n,M.getChildContext()));var T=S(E,n,s,!1!==s.shallowHighOrder,d,g);return e.options.diffed&&e.options.diffed(t),T}A=(w=A).displayName||w!==Function&&w.name||k(w)}var N,D,W="<"+A;if(O){var R=Object.keys(O);s&&!0===s.sortAttributes&&R.sort();for(var U=0;U<R.length;U++){var Z=R[U],P=O[Z];if("children"!==Z){if(!o.test(Z)&&(s&&s.allAttributes||"key"!==Z&&"ref"!==Z&&"__self"!==Z&&"__source"!==Z)){if("defaultValue"===Z)Z="value";else if("defaultChecked"===Z)Z="checked";else if("defaultSelected"===Z)Z="selected";else if("className"===Z){if(void 0!==O.class)continue;Z="class"}else"acceptCharset"===Z?Z="accept-charset":"httpEquiv"===Z?Z="http-equiv":i.test(Z)?Z=Z.replace(i,"$1:$2").toLowerCase():d?c.test(Z)&&(Z="panose1"===Z?"panose-1":Z.replace(/([A-Z])/g,"-$1").toLowerCase()):a.test(Z)&&(Z=Z.toLowerCase());if("htmlFor"===Z){if(O.for)continue;Z="for"}"style"===Z&&P&&"object"==typeof P&&(P=y(P)),"a"===Z[0]&&"r"===Z[1]&&"boolean"==typeof P&&(P=String(P));var q=s.attributeHook&&s.attributeHook(Z,P,n,s,F);if(q||""===q)W+=q;else if("dangerouslySetInnerHTML"===Z)D=P&&P.__html;else if("textarea"===A&&"value"===Z)N=P;else if((P||0===P||""===P)&&"function"!=typeof P){if(!(!0!==P&&""!==P||(P=Z,s&&s.xml))){W=W+" "+Z;continue}if("value"===Z){if("select"===A){g=P;continue}"option"===A&&g==P&&void 0===O.selected&&(W+=" selected")}W=W+" "+Z+'="'+l(P+"")+'"'}}}else N=P}}if(m){var z=W.replace(/\n\s*/," ");z===W||~z.indexOf("\n")?m&&~W.indexOf("\n")&&(W+="\n"):W=z}if(W+=">",o.test(A))throw new Error(A+" is not a valid HTML tag name in "+W);var J,V=r.test(A)||s.voidElements&&s.voidElements.test(A),B=[];if(D)m&&f(D)&&(D="\n"+_+u(D,_)),W+=D;else if(null!=N&&b(J=[],N).length){for(var G=m&&~W.indexOf("\n"),K=!1,Q=0;Q<J.length;Q++){var X=J[Q];if(null!=X&&!1!==X){var Y=S(X,n,s,!0,"svg"===A||"foreignObject"!==A&&d,g);if(m&&!G&&f(Y)&&(G=!0),Y)if(m){var tt=Y.length>0&&"<"!=Y[0];K&&tt?B[B.length-1]+=Y:B.push(Y),K=tt}else B.push(Y)}}if(m&&G)for(var et=B.length;et--;)B[et]="\n"+_+u(B[et],_)}if(e.options.diffed&&e.options.diffed(t),B.length||D)W+=B.join("");else if(s&&s.xml)return W.substring(0,W.length-1)+" />";return!V||J||D?(m&&~W.indexOf("\n")&&(W+="\n"),W=W+"</"+A+">"):W=W.replace(/>$/," />"),W}function k(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=_.length;r--;)if(_[r]===t){n=r;break}n<0&&(n=_.push(t)-1),e="UnnamedComponent"+n}return e}const w=/(\\|\"|\')/g;var A=function(t){return t.replace(w,"\\$1")};const O=Object.prototype.toString,F=Date.prototype.toISOString,C=Error.prototype.toString,E=RegExp.prototype.toString,M=Symbol.prototype.toString,$=/^Symbol\((.*)\)(.*)$/,H=/\n/gi,L=Object.getOwnPropertySymbols||(t=>[]);function I(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}function T(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}function N(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function D(t){return M.call(t).replace($,"Symbol($1)")}function W(t){return"["+C.call(t)+"]"}function R(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";const e=typeof t;if("number"===e)return T(t);if("string"===e)return'"'+A(t)+'"';if("function"===e)return N(t);if("symbol"===e)return D(t);const n=O.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?N(t,min):"[object Symbol]"===n?D(t):"[object Date]"===n?F.call(t):"[object Error]"===n?W(t):"[object RegExp]"===n?E.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":I(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&W(t)}function U(t,e,n,r,o,i,a,c,s,l){let u="";if(t.length){u+=o;const f=n+e;for(let n=0;n<t.length;n++)u+=f+G(t[n],e,f,r,o,i,a,c,s,l),n<t.length-1&&(u+=","+r);u+=o+n}return"["+u+"]"}function Z(t,e,n,r,o,i,a,c,s,l){return(l?"":"Arguments ")+U(t,e,n,r,o,i,a,c,s,l)}function P(t,e,n,r,o,i,a,c,s,l){return(l?"":t.constructor.name+" ")+U(t,e,n,r,o,i,a,c,s,l)}function q(t,e,n,r,o,i,a,c,s,l){let u="Map {";const f=t.entries();let p=f.next();if(!p.done){u+=o;const t=n+e;for(;!p.done;)u+=t+G(p.value[0],e,t,r,o,i,a,c,s,l)+" => "+G(p.value[1],e,t,r,o,i,a,c,s,l),p=f.next(),p.done||(u+=","+r);u+=o+n}return u+"}"}function z(t,e,n,r,o,i,a,c,s,l){let u=(l?"":t.constructor?t.constructor.name+" ":"Object ")+"{",f=Object.keys(t).sort();const p=L(t);if(p.length&&(f=f.filter(t=>!("symbol"==typeof t||"[object Symbol]"===O.call(t))).concat(p)),f.length){u+=o;const p=n+e;for(let n=0;n<f.length;n++){const d=f[n];u+=p+G(d,e,p,r,o,i,a,c,s,l)+": "+G(t[d],e,p,r,o,i,a,c,s,l),n<f.length-1&&(u+=","+r)}u+=o+n}return u+"}"}function J(t,e,n,r,o,i,a,c,s,l){let u="Set {";const f=t.entries();let p=f.next();if(!p.done){u+=o;const t=n+e;for(;!p.done;)u+=t+G(p.value[1],e,t,r,o,i,a,c,s,l),p=f.next(),p.done||(u+=","+r);u+=o+n}return u+"}"}function V(t,e,n,r,o,i,a,c,s,l){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);const u=++c>a;if(!u&&t.toJSON&&"function"==typeof t.toJSON)return G(t.toJSON(),e,n,r,o,i,a,c,s,l);const f=O.call(t);return"[object Arguments]"===f?u?"[Arguments]":Z(t,e,n,r,o,i,a,c,s,l):I(f)?u?"[Array]":P(t,e,n,r,o,i,a,c,s,l):"[object Map]"===f?u?"[Map]":q(t,e,n,r,o,i,a,c,s,l):"[object Set]"===f?u?"[Set]":J(t,e,n,r,o,i,a,c,s,l):"object"==typeof t?u?"[Object]":z(t,e,n,r,o,i,a,c,s,l):void 0}function B(t,e,n,r,o,i,a,c,s,l){let u,f=!1;for(let e=0;e<s.length;e++)if(u=s[e],u.test(t)){f=!0;break}return!!f&&u.print(t,function(t){return G(t,e,n,r,o,i,a,c,s,l)},function(t){const r=n+e;return r+t.replace(H,"\n"+r)},{edgeSpacing:o,spacing:r})}function G(t,e,n,r,o,i,a,c,s,l){return R(t)||B(t,e,n,r,o,i,a,c,s,l)||V(t,e,n,r,o,i,a,c,s,l)}const K={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function Q(t){if(Object.keys(t).forEach(t=>{if(!K.hasOwnProperty(t))throw new Error("prettyFormat: Invalid option: "+t)}),t.min&&void 0!==t.indent&&0!==t.indent)throw new Error("prettyFormat: Cannot run with min option and indent")}function X(t){const e={};return Object.keys(K).forEach(n=>e[n]=t.hasOwnProperty(n)?t[n]:K[n]),e.min&&(e.indent=0),e}function Y(t){return new Array(t+1).join(" ")}var tt=function(t,e){let n,r;e?(Q(e),e=X(e)):e=K;const o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){n=Y(e.indent),r=[];var a=B(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min);if(a)return a}return R(t)||(n||(n=Y(e.indent)),r||(r=[]),V(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))},et={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,e,n){return j(t,et.context,et.opts,!0)}},nt={plugins:[et]},rt={attributeHook:function(t,e,n,r,o){var i=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===i&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===e||("class"===t||"style"===t)&&""===e))return"";var a="string"==typeof r.pretty?r.pretty:"\t";return"string"!==i?("function"!==i||r.functionNames?(et.context=n,et.opts=r,~(e=tt(e,nt)).indexOf("\n")&&(e=u("\n"+e,a)+"\n")):e="Function",u("\n"+t+"={"+e+"}",a)):"\n"+a+t+'="'+l(e)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function ot(t,e,n){var r=Object.assign({},rt,n||{});return r.jsx||(r.attributeHook=null),j(t,e,r)}var it={shallow:!0};t.default=ot,t.render=ot,t.shallowRender=function(t,e,n){return ot(t,e,Object.assign({},it,n||{}))}});
//# sourceMappingURL=jsx.umd.js.map

@@ -13,3 +13,3 @@ import { VNode } from 'preact';

export default function renderToStringPretty(
export default function render(
vnode: VNode,

@@ -16,0 +16,0 @@ context?: any,

{
"name": "preact-render-to-string",
"amdName": "preactRenderToString",
"version": "6.4.2",
"description": "Render JSX to an HTML string, with support for Preact components.",
"main": "dist/index.js",
"umd:main": "dist/index.umd.js",
"module": "dist/index.module.js",
"jsnext:main": "dist/index.module.js",
"types": "src/index.d.ts",
"exports": {
".": {
"types": "./src/index.d.ts",
"browser": "./dist/index.module.js",
"umd": "./dist/index.umd.js",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./jsx": {
"types": "./jsx.d.ts",
"browser": "./dist/jsx.module.js",
"umd": "./dist/jsx.umd.js",
"import": "./dist/jsx.mjs",
"require": "./dist/jsx.js"
},
"./package.json": "./package.json"
},
"scripts": {
"bench": "BABEL_ENV=test node -r @babel/register benchmarks index.js",
"bench:v8": "BABEL_ENV=test microbundle benchmarks/index.js -f modern --alias benchmarkjs-pretty=benchmarks/lib/benchmark-lite.js --external none --target node --no-compress --no-sourcemap --raw -o benchmarks/.v8.mjs && v8 --module benchmarks/.v8.mjs",
"build": "npm run -s transpile && npm run -s transpile:jsx && npm run -s copy-typescript-definition",
"postbuild": "node ./config/node-13-exports.js && node ./config/node-commonjs.js && node ./config/node-verify-exports.js",
"transpile": "microbundle src/index.js -f es,cjs,umd --target web --external preact",
"transpile:jsx": "microbundle src/jsx.js -o dist/jsx.js --target web --external preact && microbundle dist/jsx.js -o dist/jsx.js -f cjs --external preact",
"copy-typescript-definition": "copyfiles -f src/*.d.ts dist",
"test": "eslint src test && tsc && npm run test:mocha && npm run test:mocha:compat && npm run test:mocha:debug && npm run bench",
"test:mocha": "BABEL_ENV=test mocha -r @babel/register -r test/setup.js test/*.test.js test/*.test.jsx",
"test:mocha:compat": "BABEL_ENV=test mocha -r @babel/register -r test/setup.js 'test/compat/*.test.js' 'test/compat/*.test.jsx'",
"test:mocha:debug": "BABEL_ENV=test mocha -r @babel/register -r test/setup.js 'test/debug/index.test.js' 'test/debug/index.test.jsx'",
"format": "prettier src/**/*.{d.ts,js,jsx} test/**/*.js test/**/*.jsx --write",
"prepublishOnly": "npm run build",
"release": "npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
},
"keywords": [
"preact",
"render",
"universal",
"isomorphic"
],
"files": [
"src",
"dist",
"jsx.js",
"jsx.d.ts",
"typings.json"
],
"eslintConfig": {
"extends": "developit",
"rules": {
"react/prefer-stateless-function": 0,
"react/jsx-no-bind": 0,
"react/no-danger": 0,
"jest/valid-expect": 0,
"new-cap": 0,
"curly": "off",
"brace-style": "off",
"indent": "off"
},
"settings": {
"react": {
"version": "16.8"
}
}
},
"babel": {
"env": {
"test": {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": true
}
}
]
],
"plugins": [
[
"@babel/plugin-transform-react-jsx",
{
"pragma": "h"
}
]
]
}
}
},
"minify": {
"compress": {
"reduce_funcs": false
}
},
"author": "Jason Miller <jason@developit.ca>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/preactjs/preact-render-to-string"
},
"bugs": "https://github.com/developit/preact-render-to-string/issues",
"homepage": "https://github.com/developit/preact-render-to-string",
"peerDependencies": {
"preact": ">=10"
},
"devDependencies": {
"@babel/plugin-transform-react-jsx": "^7.22.15",
"@babel/preset-env": "^7.23.2",
"@babel/register": "^7.22.15",
"@changesets/changelog-github": "^0.4.1",
"@changesets/cli": "^2.18.0",
"benchmarkjs-pretty": "^2.0.1",
"chai": "^4.3.10",
"copyfiles": "^2.4.1",
"eslint": "^7.16.0",
"eslint-config-developit": "^1.2.0",
"husky": "^4.3.6",
"lint-staged": "^10.5.3",
"microbundle": "^0.15.1",
"mocha": "^10.2.0",
"baseline-rts": "npm:preact-render-to-string@latest",
"preact": "^10.13.0",
"prettier": "^2.2.1",
"sinon": "^17.0.1",
"sinon-chai": "^3.7.0",
"typescript": "^5.0.0"
},
"dependencies": {
"pretty-format": "^3.8.0"
},
"prettier": {
"singleQuote": true,
"trailingComma": "none",
"useTabs": true,
"tabWidth": 2
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx,yml}": [
"prettier --write"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"publishConfig": {
"provenance": true
}
"name": "preact-render-to-string",
"amdName": "preactRenderToString",
"version": "6.5.0",
"description": "Render JSX to an HTML string, with support for Preact components.",
"main": "dist/index.js",
"umd:main": "dist/index.umd.js",
"module": "dist/index.module.js",
"jsnext:main": "dist/index.module.js",
"types": "src/index.d.ts",
"exports": {
".": {
"types": "./src/index.d.ts",
"browser": "./dist/index.module.js",
"umd": "./dist/index.umd.js",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./jsx": {
"types": "./jsx.d.ts",
"browser": "./dist/jsx.module.js",
"umd": "./dist/jsx.umd.js",
"import": "./dist/jsx.mjs",
"require": "./dist/jsx.js"
},
"./stream": {
"types": "./stream.d.ts",
"import": "./dist/stream.mjs",
"browser": "./dist/stream.module.js",
"require": "./dist/stream.js"
},
"./stream-node": {
"types": "./stream-node.d.ts",
"import": "./dist/stream-node.mjs",
"browser": "./dist/stream-node.module.js",
"require": "./dist/stream-node.js"
},
"./package.json": "./package.json"
},
"scripts": {
"bench": "BABEL_ENV=test node -r @babel/register benchmarks index.js",
"bench:v8": "BABEL_ENV=test microbundle benchmarks/index.js -f modern --alias benchmarkjs-pretty=benchmarks/lib/benchmark-lite.js --external none --target node --no-compress --no-sourcemap --raw -o benchmarks/.v8.mjs && v8 --module benchmarks/.v8.modern.js",
"build": "npm run -s transpile && npm run -s transpile:jsx && npm run -s transpile:stream && npm run -s copy-typescript-definition",
"postbuild": "node ./config/node-13-exports.js && node ./config/node-commonjs.js && node ./config/node-verify-exports.js",
"transpile": "microbundle src/index.js -f es,cjs,umd --target web --external preact",
"transpile:stream": "microbundle src/stream.js -o dist/stream.js -f es,cjs,umd --external preact && microbundle src/stream-node.js -o dist/stream-node.js -f es,cjs,umd --target node --external preact",
"transpile:jsx": "microbundle src/jsx.js -o dist/jsx.js --target web --external preact && microbundle dist/jsx.js -o dist/jsx.js -f cjs --external preact",
"copy-typescript-definition": "copyfiles -f src/*.d.ts dist",
"test": "eslint src test && tsc && npm run test:mocha && npm run test:mocha:compat && npm run test:mocha:debug && npm run bench",
"test:mocha": "BABEL_ENV=test mocha -r @babel/register -r test/setup.js test/*.test.jsx",
"test:mocha:compat": "BABEL_ENV=test mocha -r @babel/register -r test/setup.js 'test/compat/*.test.js' 'test/compat/*.test.jsx'",
"test:mocha:debug": "BABEL_ENV=test mocha -r @babel/register -r test/setup.js 'test/debug/*.test.jsx'",
"format": "prettier src/**/*.{d.ts,js} test/**/*.js --write",
"prepublishOnly": "npm run build",
"release": "npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
},
"keywords": [
"preact",
"render",
"universal",
"isomorphic"
],
"files": [
"src",
"dist",
"jsx.js",
"jsx.d.ts",
"typings.json"
],
"eslintConfig": {
"extends": "developit",
"rules": {
"react/prefer-stateless-function": 0,
"react/jsx-no-bind": 0,
"react/no-danger": 0,
"jest/valid-expect": 0,
"new-cap": 0,
"curly": "off",
"brace-style": "off",
"indent": "off",
"lines-around-comment": "off"
},
"settings": {
"react": {
"version": "16.8"
}
}
},
"babel": {
"env": {
"test": {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": true
}
}
]
],
"plugins": [
[
"@babel/plugin-transform-react-jsx",
{
"pragma": "h"
}
]
]
}
}
},
"minify": {
"compress": {
"reduce_funcs": false
}
},
"author": "Jason Miller <jason@developit.ca>",
"license": "MIT",
"repository": "developit/preact-render-to-string",
"bugs": "https://github.com/developit/preact-render-to-string/issues",
"homepage": "https://github.com/developit/preact-render-to-string",
"peerDependencies": {
"preact": ">=10"
},
"devDependencies": {
"@babel/plugin-transform-react-jsx": "^7.12.12",
"@babel/preset-env": "^7.12.11",
"@babel/register": "^7.12.10",
"@changesets/changelog-github": "^0.4.1",
"@changesets/cli": "^2.18.0",
"benchmarkjs-pretty": "^2.0.1",
"chai": "^4.2.0",
"copyfiles": "^2.4.1",
"eslint": "^7.16.0",
"eslint-config-developit": "^1.2.0",
"husky": "^4.3.6",
"lint-staged": "^10.5.3",
"microbundle": "^0.15.1",
"mocha": "^8.2.1",
"baseline-rts": "npm:preact-render-to-string@latest",
"preact": "^10.13.0",
"prettier": "^2.2.1",
"sinon": "^9.2.2",
"sinon-chai": "^3.5.0",
"typescript": "^5.0.0",
"web-streams-polyfill": "^3.2.1"
},
"dependencies": {
"pretty-format": "^3.8.0"
},
"prettier": {
"singleQuote": true,
"trailingComma": "none",
"useTabs": true,
"tabWidth": 2
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx,yml}": [
"prettier --write"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}

@@ -8,3 +8,3 @@ import {

SVG_CAMEL_CASE
} from './util.js';
} from './lib/util.js';
import { options, h, Fragment } from 'preact';

@@ -22,7 +22,6 @@ import {

SKIP_EFFECTS,
VNODE
} from './constants.js';
VNODE,
CATCH_ERROR
} from './lib/constants.js';
/** @typedef {import('preact').VNode} VNode */
const EMPTY_ARR = [];

@@ -39,5 +38,6 @@ const isArray = Array.isArray;

* @param {Object} [context={}] Initial root context object
* @param {RendererState} [_rendererState] for internal use
* @returns {string} serialized HTML
*/
export function renderToString(vnode, context) {
export function renderToString(vnode, context, _rendererState) {
// Performance optimization: `renderToString` is synchronous and we

@@ -67,3 +67,4 @@ // therefore don't execute any effects. To do that we pass an empty

parent,
false
false,
_rendererState
);

@@ -116,3 +117,4 @@ } catch (e) {

parent,
true
true,
undefined
);

@@ -212,2 +214,3 @@

* @param {boolean} asyncMode
* @param {RendererState | undefined} [renderer]
* @returns {string | Promise<string> | (string | Promise<string>)[]}

@@ -221,3 +224,4 @@ */

parent,
asyncMode
asyncMode,
renderer
) {

@@ -250,3 +254,4 @@ // Ignore non-rendered VNodes/values

parent,
asyncMode
asyncMode,
renderer
);

@@ -316,3 +321,4 @@

vnode,
asyncMode
asyncMode,
renderer
);

@@ -398,3 +404,4 @@ } else {

vnode,
asyncMode
asyncMode,
renderer
);

@@ -431,3 +438,4 @@ return str;

vnode,
asyncMode
asyncMode,
renderer
);

@@ -463,12 +471,34 @@ }

vnode,
asyncMode
asyncMode,
renderer
);
if (afterDiff) afterDiff(vnode);
// when we are dealing with suspense we can't do this...
vnode[PARENT] = null;
if (ummountHook) ummountHook(vnode);
if (options.unmount) options.unmount(vnode);
return str;
} catch (error) {
if (!asyncMode && renderer && renderer.onError) {
let res = renderer.onError(error, vnode, (child) =>
_renderToString(
child,
context,
isSvgMode,
selectValue,
vnode,
asyncMode,
renderer
)
);
if (res !== undefined) return res;
let errorHook = options[CATCH_ERROR];
if (errorHook) errorHook(error, vnode);
return '';
}
if (!asyncMode) throw error;

@@ -486,3 +516,4 @@

vnode,
asyncMode
asyncMode,
renderer
);

@@ -500,3 +531,4 @@ } catch (e) {

vnode,
asyncMode
asyncMode,
renderer
),

@@ -645,3 +677,4 @@ () => renderNestedChildren()

vnode,
asyncMode
asyncMode,
renderer
);

@@ -651,3 +684,6 @@ }

if (afterDiff) afterDiff(vnode);
// TODO: this was commented before
vnode[PARENT] = null;
if (ummountHook) ummountHook(vnode);

@@ -654,0 +690,0 @@

@@ -1,8 +0,6 @@

import './polyfills.js';
import './lib/polyfills.js';
import renderToString from './pretty.js';
import { indent, encodeEntities } from './util.js';
import { indent, encodeEntities } from './lib/util.js';
import prettyFormat from 'pretty-format';
/** @typedef {import('preact').VNode} VNode */
// we have to patch in Array support, Possible issue in npm.im/pretty-format

@@ -9,0 +7,0 @@ let preactPlugin = {

@@ -11,10 +11,9 @@ import {

NAMESPACE_REPLACE_REGEX,
SVG_CAMEL_CASE,
HTML_LOWER_CASE,
SVG_CAMEL_CASE
} from './util.js';
import { COMMIT, DIFF, DIFFED, RENDER, SKIP_EFFECTS } from './constants.js';
getContext
} from './lib/util.js';
import { COMMIT, DIFF, DIFFED, RENDER, SKIP_EFFECTS } from './lib/constants.js';
import { options, Fragment } from 'preact';
/** @typedef {import('preact').VNode} VNode */
// components without names, kept as a hash for later comparison to return consistent UnnamedComponentXX names.

@@ -108,3 +107,7 @@ const UNNAMED = [];

isComponent = true;
if (opts.shallow && (inner || opts.renderRootComponent === false)) {
if (
opts.shallow &&
(inner || opts.renderRootComponent === false) &&
nodeName !== Fragment
) {
nodeName = getComponentName(nodeName);

@@ -129,9 +132,2 @@ } else if (nodeName === Fragment) {

let cctx = context;
let cxType = nodeName.contextType;
if (cxType != null) {
let provider = context[cxType.__c];
cctx = provider ? provider.props.value : cxType.__;
}
if (

@@ -141,2 +137,4 @@ !nodeName.prototype ||

) {
let cctx = getContext(nodeName, context);
// If a hook invokes setState() to invalidate the component during rendering,

@@ -157,2 +155,4 @@ // re-render it up to 25 times to allow "settling" of memoized states.

} else {
let cctx = getContext(nodeName, context);
// c = new nodeName(props, context);

@@ -159,0 +159,0 @@ c = vnode.__c = new nodeName(props, cctx);

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