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

preact-render-to-string

Package Overview
Dependencies
Maintainers
9
Versions
114
Alerts
File Explorer

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 5.1.15 to 5.1.16

2

dist/commonjs.js

@@ -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,r,o=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,i=/[&<>"]/g,a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},l=function(e){return a[e]||e},s=(n=function(e){return"string"!=typeof e&&(e=String(e)),e.replace(i,l)},r=new Map,function(e){var t=r.get(e);return t||(t=n(e),r.set(e,t)),t}),f=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},p=function(e,t,n){return String(e).length>(t||40)||!n&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},u={};function c(e){var t="";for(var n in e){var r=e[n];null!=r&&(t&&(t+=" "),t+="-"==n[0]?n:u[n]||(u[n]=n.replace(/([A-Z])/g,"-$1").toLowerCase()),t+=": ",t+=r,"number"==typeof r&&!1===o.test(n)&&(t+="px"),t+=";")}return t||void 0}function d(e,t){for(var n in t)e[n]=t[n];return e}function _(e,t){return Array.isArray(t)?t.reduce(_,e):null!=t&&!1!==t&&e.push(t),e}var g={shallow:!0},v=[],h=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,m=/[\s\n\\/='"\0<>]/,y=function(){};S.render=S;var x=function(e,t){return S(e,t,g)},b=[];function S(e,n,r){var o=w(e,n,r);return t.options.__c&&t.options.__c(e,b),o}function w(e,n,r,o,i,a){if(null==e||"boolean"==typeof e)return"";Array.isArray(e)&&(e=t.createElement(t.Fragment,null,e));var l=e.type,u=e.props,g=!1;n=n||{};var x,b=(r=r||{}).pretty,S=b&&"string"==typeof b?b:"\t";if("object"!=typeof e&&!l)return s(e);if("function"==typeof l){if(g=!0,!r.shallow||!o&&!1!==r.renderRootComponent){if(l===t.Fragment){var k="",O=[];_(O,e.props.children);for(var T=0;T<O.length;T++)k+=(T>0&&b?"\n":"")+w(O[T],n,r,!1!==r.shallowHighOrder,i,a);return k}var C,A=e.__c={__v:e,context:n,props:e.props,setState:y,forceUpdate:y,__h:[]};if(t.options.__b&&t.options.__b(e),t.options.__r&&t.options.__r(e),l.prototype&&"function"==typeof l.prototype.render){var F=l.contextType,j=F&&n[F.__c],H=null!=F?j?j.props.value:F.__:n;(A=e.__c=new l(u,H)).__v=e,A._dirty=A.__d=!0,A.props=u,null==A.state&&(A.state={}),null==A._nextState&&null==A.__s&&(A._nextState=A.__s=A.state),A.context=H,l.getDerivedStateFromProps?A.state=d(d({},A.state),l.getDerivedStateFromProps(A.props,A.state)):A.componentWillMount&&(A.componentWillMount(),A.state=A._nextState!==A.state?A._nextState:A.__s!==A.state?A.__s:A.state),C=A.render(A.props,A.state,A.context)}else{var M=l.contextType,$=M&&n[M.__c];C=l.call(e.__c,u,null!=M?$?$.props.value:M.__:n)}return A.getChildContext&&(n=d(d({},n),A.getChildContext())),t.options.diffed&&t.options.diffed(e),w(C,n,r,!1!==r.shallowHighOrder,i,a)}l=(x=l).displayName||x!==Function&&x.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var n=-1,r=v.length;r--;)if(v[r]===e){n=r;break}n<0&&(n=v.push(e)-1),t="UnnamedComponent"+n}return t}(x)}var E,L,R="";if(u){var q=Object.keys(u);r&&!0===r.sortAttributes&&q.sort();for(var D=0;D<q.length;D++){var N=q[D],P=u[N];if("children"!==N){if(!N.match(/[\s\n\\/='"\0<>]/)&&(r&&r.allAttributes||"key"!==N&&"ref"!==N&&"__self"!==N&&"__source"!==N&&"defaultValue"!==N)){if("className"===N){if(u.class)continue;N="class"}else i&&N.match(/^xlink:?./)&&(N=N.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===N){if(u.for)continue;N="for"}"style"===N&&P&&"object"==typeof P&&(P=c(P)),"a"===N[0]&&"r"===N[1]&&"boolean"==typeof P&&(P=String(P));var U=r.attributeHook&&r.attributeHook(N,P,n,r,g);if(U||""===U)R+=U;else if("dangerouslySetInnerHTML"===N)L=P&&P.__html;else if("textarea"===l&&"value"===N)E=P;else if((P||0===P||""===P)&&"function"!=typeof P){if(!(!0!==P&&""!==P||(P=N,r&&r.xml))){R+=" "+N;continue}if("value"===N){if("select"===l){a=P;continue}"option"===l&&a==P&&(R+=" selected")}R+=" "+N+'="'+s(P)+'"'}}}else E=P}}if(b){var W=R.replace(/^\n\s*/," ");W===R||~W.indexOf("\n")?b&&~R.indexOf("\n")&&(R+="\n"):R=W}if(R="<"+l+R+">",m.test(String(l)))throw new Error(l+" is not a valid HTML tag name in "+R);var z,I=h.test(String(l))||r.voidElements&&r.voidElements.test(String(l)),V=[];if(L)b&&p(L)&&(L="\n"+S+f(L,S)),R+=L;else if(null!=E&&_(z=[],E).length){for(var Z=b&&~R.indexOf("\n"),B=!1,G=0;G<z.length;G++){var J=z[G];if(null!=J&&!1!==J){var K=w(J,n,r,!0,"svg"===l||"foreignObject"!==l&&i,a);if(b&&!Z&&p(K)&&(Z=!0),K)if(b){var Q=K.length>0&&"<"!=K[0];B&&Q?V[V.length-1]+=K:V.push(K),B=Q}else V.push(K)}}if(b&&Z)for(var X=V.length;X--;)V[X]="\n"+S+f(V[X],S)}if(V.length||L)R+=V.join("");else if(r&&r.xml)return R.substring(0,R.length-1)+" />";return!I||z||L?(b&&~R.indexOf("\n")&&(R+="\n"),R+="</"+l+">"):R=R.replace(/>$/," />"),R}S.shallowRender=x,e.default=S,e.render=S,e.renderToStaticMarkup=S,e.renderToString=S,e.shallowRender=x});
!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=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,r=/[&<>"]/g,o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},i=function(e){return o[e]||e};function a(e){return"string"!=typeof e&&(e=String(e)),e.replace(r,i)}var l=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},s=function(e,t,n){return String(e).length>(t||40)||!n&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},f={};function p(e){var t="";for(var r in e){var o=e[r];null!=o&&""!==o&&(t&&(t+=" "),t+="-"==r[0]?r:f[r]||(f[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),t+=": ",t+=o,"number"==typeof o&&!1===n.test(r)&&(t+="px"),t+=";")}return t||void 0}function u(e,t){for(var n in t)e[n]=t[n];return e}function c(e,t){return Array.isArray(t)?t.reduce(c,e):null!=t&&!1!==t&&e.push(t),e}var d={shallow:!0},_=[],g=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,v=/[\s\n\\/='"\0<>]/,h=function(){};x.render=x;var m=function(e,t){return x(e,t,d)},y=[];function x(e,n,r){var o=b(e,n,r);return t.options.__c&&t.options.__c(e,y),o}function b(e,n,r,o,i,f){if(null==e||"boolean"==typeof e)return"";Array.isArray(e)&&(e=t.createElement(t.Fragment,null,e));var d=e.type,m=e.props,y=!1;n=n||{};var x,S=(r=r||{}).pretty,w=S&&"string"==typeof S?S:"\t";if("object"!=typeof e&&!d)return a(e);if("function"==typeof d){if(y=!0,!r.shallow||!o&&!1!==r.renderRootComponent){if(d===t.Fragment){var k="",O=[];c(O,e.props.children);for(var T=0;T<O.length;T++)k+=(T>0&&S?"\n":"")+b(O[T],n,r,!1!==r.shallowHighOrder,i,f);return k}var C,A=e.__c={__v:e,context:n,props:e.props,setState:h,forceUpdate:h,__h:[]};if(t.options.__b&&t.options.__b(e),t.options.__r&&t.options.__r(e),d.prototype&&"function"==typeof d.prototype.render){var F=d.contextType,j=F&&n[F.__c],H=null!=F?j?j.props.value:F.__:n;(A=e.__c=new d(m,H)).__v=e,A._dirty=A.__d=!0,A.props=m,null==A.state&&(A.state={}),null==A._nextState&&null==A.__s&&(A._nextState=A.__s=A.state),A.context=H,d.getDerivedStateFromProps?A.state=u(u({},A.state),d.getDerivedStateFromProps(A.props,A.state)):A.componentWillMount&&(A.componentWillMount(),A.state=A._nextState!==A.state?A._nextState:A.__s!==A.state?A.__s:A.state),C=A.render(A.props,A.state,A.context)}else{var M=d.contextType,$=M&&n[M.__c];C=d.call(e.__c,m,null!=M?$?$.props.value:M.__:n)}return A.getChildContext&&(n=u(u({},n),A.getChildContext())),t.options.diffed&&t.options.diffed(e),b(C,n,r,!1!==r.shallowHighOrder,i,f)}d=(x=d).displayName||x!==Function&&x.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var n=-1,r=_.length;r--;)if(_[r]===e){n=r;break}n<0&&(n=_.push(e)-1),t="UnnamedComponent"+n}return t}(x)}var E,L,R="";if(m){var q=Object.keys(m);r&&!0===r.sortAttributes&&q.sort();for(var D=0;D<q.length;D++){var N=q[D],P=m[N];if("children"!==N){if(!N.match(/[\s\n\\/='"\0<>]/)&&(r&&r.allAttributes||"key"!==N&&"ref"!==N&&"__self"!==N&&"__source"!==N&&"defaultValue"!==N)){if("className"===N){if(m.class)continue;N="class"}else i&&N.match(/^xlink:?./)&&(N=N.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===N){if(m.for)continue;N="for"}"style"===N&&P&&"object"==typeof P&&(P=p(P)),"a"===N[0]&&"r"===N[1]&&"boolean"==typeof P&&(P=String(P));var U=r.attributeHook&&r.attributeHook(N,P,n,r,y);if(U||""===U)R+=U;else if("dangerouslySetInnerHTML"===N)L=P&&P.__html;else if("textarea"===d&&"value"===N)E=P;else if((P||0===P||""===P)&&"function"!=typeof P){if(!(!0!==P&&""!==P||(P=N,r&&r.xml))){R+=" "+N;continue}if("value"===N){if("select"===d){f=P;continue}"option"===d&&f==P&&(R+=" selected")}R+=" "+N+'="'+a(P)+'"'}}}else E=P}}if(S){var W=R.replace(/^\n\s*/," ");W===R||~W.indexOf("\n")?S&&~R.indexOf("\n")&&(R+="\n"):R=W}if(R="<"+d+R+">",v.test(String(d)))throw new Error(d+" is not a valid HTML tag name in "+R);var z,I=g.test(String(d))||r.voidElements&&r.voidElements.test(String(d)),V=[];if(L)S&&s(L)&&(L="\n"+w+l(L,w)),R+=L;else if(null!=E&&c(z=[],E).length){for(var Z=S&&~R.indexOf("\n"),B=!1,G=0;G<z.length;G++){var J=z[G];if(null!=J&&!1!==J){var K=b(J,n,r,!0,"svg"===d||"foreignObject"!==d&&i,f);if(S&&!Z&&s(K)&&(Z=!0),K)if(S){var Q=K.length>0&&"<"!=K[0];B&&Q?V[V.length-1]+=K:V.push(K),B=Q}else V.push(K)}}if(S&&Z)for(var X=V.length;X--;)V[X]="\n"+w+l(V[X],w)}if(V.length||L)R+=V.join("");else if(r&&r.xml)return R.substring(0,R.length-1)+" />";return!I||z||L?(S&&~R.indexOf("\n")&&(R+="\n"),R+="</"+d+">"):R=R.replace(/>$/," />"),R}x.shallowRender=m,e.default=x,e.render=x,e.renderToStaticMarkup=x,e.renderToString=x,e.shallowRender=m});
//# sourceMappingURL=index.js.map

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

import{options as e,createElement as t,Fragment as r}from"preact";var n,o,i=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,a=/[&<>"]/g,l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},s=function(e){return l[e]||e},f=(n=function(e){return"string"!=typeof e&&(e=String(e)),e.replace(a,s)},o=new Map,function(e){var t=o.get(e);return t||(t=n(e),o.set(e,t)),t}),u=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},c=function(e,t,r){return String(e).length>(t||40)||!r&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},p={};function _(e){var t="";for(var r in e){var n=e[r];null!=n&&(t&&(t+=" "),t+="-"==r[0]?r:p[r]||(p[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),t+=": ",t+=n,"number"==typeof n&&!1===i.test(r)&&(t+="px"),t+=";")}return t||void 0}function v(e,t){for(var r in t)e[r]=t[r];return e}function d(e,t){return Array.isArray(t)?t.reduce(d,e):null!=t&&!1!==t&&e.push(t),e}var g={shallow:!0},h=[],m=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,x=/[\s\n\\/='"\0<>]/,y=function(){};w.render=w;var b=function(e,t){return w(e,t,g)},S=[];function w(t,r,n){var o=k(t,r,n);return e.__c&&e.__c(t,S),o}function k(n,o,i,a,l,s){if(null==n||"boolean"==typeof n)return"";Array.isArray(n)&&(n=t(r,null,n));var p=n.type,g=n.props,b=!1;o=o||{};var S,w=(i=i||{}).pretty,O=w&&"string"==typeof w?w:"\t";if("object"!=typeof n&&!p)return f(n);if("function"==typeof p){if(b=!0,!i.shallow||!a&&!1!==i.renderRootComponent){if(p===r){var C="",A=[];d(A,n.props.children);for(var H=0;H<A.length;H++)C+=(H>0&&w?"\n":"")+k(A[H],o,i,!1!==i.shallowHighOrder,l,s);return C}var M,j=n.__c={__v:n,context:o,props:n.props,setState:y,forceUpdate:y,__h:[]};if(e.__b&&e.__b(n),e.__r&&e.__r(n),p.prototype&&"function"==typeof p.prototype.render){var F=p.contextType,T=F&&o[F.__c],$=null!=F?T?T.props.value:F.__:o;(j=n.__c=new p(g,$)).__v=n,j._dirty=j.__d=!0,j.props=g,null==j.state&&(j.state={}),null==j._nextState&&null==j.__s&&(j._nextState=j.__s=j.state),j.context=$,p.getDerivedStateFromProps?j.state=v(v({},j.state),p.getDerivedStateFromProps(j.props,j.state)):j.componentWillMount&&(j.componentWillMount(),j.state=j._nextState!==j.state?j._nextState:j.__s!==j.state?j.__s:j.state),M=j.render(j.props,j.state,j.context)}else{var L=p.contextType,E=L&&o[L.__c];M=p.call(n.__c,g,null!=L?E?E.props.value:L.__:o)}return j.getChildContext&&(o=v(v({},o),j.getChildContext())),e.diffed&&e.diffed(n),k(M,o,i,!1!==i.shallowHighOrder,l,s)}p=(S=p).displayName||S!==Function&&S.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var r=-1,n=h.length;n--;)if(h[n]===e){r=n;break}r<0&&(r=h.push(e)-1),t="UnnamedComponent"+r}return t}(S)}var D,N,P="";if(g){var R=Object.keys(g);i&&!0===i.sortAttributes&&R.sort();for(var U=0;U<R.length;U++){var W=R[U],q=g[W];if("children"!==W){if(!W.match(/[\s\n\\/='"\0<>]/)&&(i&&i.allAttributes||"key"!==W&&"ref"!==W&&"__self"!==W&&"__source"!==W&&"defaultValue"!==W)){if("className"===W){if(g.class)continue;W="class"}else l&&W.match(/^xlink:?./)&&(W=W.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===W){if(g.for)continue;W="for"}"style"===W&&q&&"object"==typeof q&&(q=_(q)),"a"===W[0]&&"r"===W[1]&&"boolean"==typeof q&&(q=String(q));var z=i.attributeHook&&i.attributeHook(W,q,o,i,b);if(z||""===z)P+=z;else if("dangerouslySetInnerHTML"===W)N=q&&q.__html;else if("textarea"===p&&"value"===W)D=q;else if((q||0===q||""===q)&&"function"!=typeof q){if(!(!0!==q&&""!==q||(q=W,i&&i.xml))){P+=" "+W;continue}if("value"===W){if("select"===p){s=q;continue}"option"===p&&s==q&&(P+=" selected")}P+=" "+W+'="'+f(q)+'"'}}}else D=q}}if(w){var I=P.replace(/^\n\s*/," ");I===P||~I.indexOf("\n")?w&&~P.indexOf("\n")&&(P+="\n"):P=I}if(P="<"+p+P+">",x.test(String(p)))throw new Error(p+" is not a valid HTML tag name in "+P);var V,Z=m.test(String(p))||i.voidElements&&i.voidElements.test(String(p)),B=[];if(N)w&&c(N)&&(N="\n"+O+u(N,O)),P+=N;else if(null!=D&&d(V=[],D).length){for(var G=w&&~P.indexOf("\n"),J=!1,K=0;K<V.length;K++){var Q=V[K];if(null!=Q&&!1!==Q){var X=k(Q,o,i,!0,"svg"===p||"foreignObject"!==p&&l,s);if(w&&!G&&c(X)&&(G=!0),X)if(w){var Y=X.length>0&&"<"!=X[0];J&&Y?B[B.length-1]+=X:B.push(X),J=Y}else B.push(X)}}if(w&&G)for(var ee=B.length;ee--;)B[ee]="\n"+O+u(B[ee],O)}if(B.length||N)P+=B.join("");else if(i&&i.xml)return P.substring(0,P.length-1)+" />";return!Z||V||N?(w&&~P.indexOf("\n")&&(P+="\n"),P+="</"+p+">"):P=P.replace(/>$/," />"),P}w.shallowRender=b;export default w;export{w as render,w as renderToStaticMarkup,w as renderToString,b as shallowRender};
import{options as e,createElement as t,Fragment as r}from"preact";var n=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,o=/[&<>"]/g,i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},a=function(e){return i[e]||e};function l(e){return"string"!=typeof e&&(e=String(e)),e.replace(o,a)}var s=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},f=function(e,t,r){return String(e).length>(t||40)||!r&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},u={};function c(e){var t="";for(var r in e){var o=e[r];null!=o&&""!==o&&(t&&(t+=" "),t+="-"==r[0]?r:u[r]||(u[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),t+=": ",t+=o,"number"==typeof o&&!1===n.test(r)&&(t+="px"),t+=";")}return t||void 0}function p(e,t){for(var r in t)e[r]=t[r];return e}function _(e,t){return Array.isArray(t)?t.reduce(_,e):null!=t&&!1!==t&&e.push(t),e}var v={shallow:!0},d=[],g=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,h=/[\s\n\\/='"\0<>]/,m=function(){};b.render=b;var x=function(e,t){return b(e,t,v)},y=[];function b(t,r,n){var o=S(t,r,n);return e.__c&&e.__c(t,y),o}function S(n,o,i,a,u,v){if(null==n||"boolean"==typeof n)return"";Array.isArray(n)&&(n=t(r,null,n));var x=n.type,y=n.props,b=!1;o=o||{};var w,k=(i=i||{}).pretty,O=k&&"string"==typeof k?k:"\t";if("object"!=typeof n&&!x)return l(n);if("function"==typeof x){if(b=!0,!i.shallow||!a&&!1!==i.renderRootComponent){if(x===r){var C="",A=[];_(A,n.props.children);for(var H=0;H<A.length;H++)C+=(H>0&&k?"\n":"")+S(A[H],o,i,!1!==i.shallowHighOrder,u,v);return C}var j,F=n.__c={__v:n,context:o,props:n.props,setState:m,forceUpdate:m,__h:[]};if(e.__b&&e.__b(n),e.__r&&e.__r(n),x.prototype&&"function"==typeof x.prototype.render){var M=x.contextType,T=M&&o[M.__c],$=null!=M?T?T.props.value:M.__:o;(F=n.__c=new x(y,$)).__v=n,F._dirty=F.__d=!0,F.props=y,null==F.state&&(F.state={}),null==F._nextState&&null==F.__s&&(F._nextState=F.__s=F.state),F.context=$,x.getDerivedStateFromProps?F.state=p(p({},F.state),x.getDerivedStateFromProps(F.props,F.state)):F.componentWillMount&&(F.componentWillMount(),F.state=F._nextState!==F.state?F._nextState:F.__s!==F.state?F.__s:F.state),j=F.render(F.props,F.state,F.context)}else{var L=x.contextType,E=L&&o[L.__c];j=x.call(n.__c,y,null!=L?E?E.props.value:L.__:o)}return F.getChildContext&&(o=p(p({},o),F.getChildContext())),e.diffed&&e.diffed(n),S(j,o,i,!1!==i.shallowHighOrder,u,v)}x=(w=x).displayName||w!==Function&&w.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var r=-1,n=d.length;n--;)if(d[n]===e){r=n;break}r<0&&(r=d.push(e)-1),t="UnnamedComponent"+r}return t}(w)}var D,N,P="";if(y){var R=Object.keys(y);i&&!0===i.sortAttributes&&R.sort();for(var U=0;U<R.length;U++){var W=R[U],q=y[W];if("children"!==W){if(!W.match(/[\s\n\\/='"\0<>]/)&&(i&&i.allAttributes||"key"!==W&&"ref"!==W&&"__self"!==W&&"__source"!==W&&"defaultValue"!==W)){if("className"===W){if(y.class)continue;W="class"}else u&&W.match(/^xlink:?./)&&(W=W.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===W){if(y.for)continue;W="for"}"style"===W&&q&&"object"==typeof q&&(q=c(q)),"a"===W[0]&&"r"===W[1]&&"boolean"==typeof q&&(q=String(q));var z=i.attributeHook&&i.attributeHook(W,q,o,i,b);if(z||""===z)P+=z;else if("dangerouslySetInnerHTML"===W)N=q&&q.__html;else if("textarea"===x&&"value"===W)D=q;else if((q||0===q||""===q)&&"function"!=typeof q){if(!(!0!==q&&""!==q||(q=W,i&&i.xml))){P+=" "+W;continue}if("value"===W){if("select"===x){v=q;continue}"option"===x&&v==q&&(P+=" selected")}P+=" "+W+'="'+l(q)+'"'}}}else D=q}}if(k){var I=P.replace(/^\n\s*/," ");I===P||~I.indexOf("\n")?k&&~P.indexOf("\n")&&(P+="\n"):P=I}if(P="<"+x+P+">",h.test(String(x)))throw new Error(x+" is not a valid HTML tag name in "+P);var V,Z=g.test(String(x))||i.voidElements&&i.voidElements.test(String(x)),B=[];if(N)k&&f(N)&&(N="\n"+O+s(N,O)),P+=N;else if(null!=D&&_(V=[],D).length){for(var G=k&&~P.indexOf("\n"),J=!1,K=0;K<V.length;K++){var Q=V[K];if(null!=Q&&!1!==Q){var X=S(Q,o,i,!0,"svg"===x||"foreignObject"!==x&&u,v);if(k&&!G&&f(X)&&(G=!0),X)if(k){var Y=X.length>0&&"<"!=X[0];J&&Y?B[B.length-1]+=X:B.push(X),J=Y}else B.push(X)}}if(k&&G)for(var ee=B.length;ee--;)B[ee]="\n"+O+s(B[ee],O)}if(B.length||N)P+=B.join("");else if(i&&i.xml)return P.substring(0,P.length-1)+" />";return!Z||V||N?(k&&~P.indexOf("\n")&&(P+="\n"),P+="</"+x+">"):P=P.replace(/>$/," />"),P}b.shallowRender=x;export default b;export{b as render,b as renderToStaticMarkup,b as renderToString,x as shallowRender};
//# sourceMappingURL=index.module.js.map

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

var t;t=function(t){if("function"!=typeof Symbol){var n=0;Symbol=function(t){return"@@"+t+ ++n},Symbol.for=function(t){return"@@"+t}}var e,r,o,i=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,u=/[&<>"]/g,a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},l=function(t){return a[t]||t},c=(e=function(t){return"string"!=typeof t&&(t=String(t)),t.replace(u,l)},r=new Map,function(t){var n=r.get(t);return n||(n=e(t),r.set(t,n)),n}),f=function(t,n){return String(t).replace(/(\n+)/g,"$1"+(n||"\t"))},s=function(t,n,e){return String(t).length>(n||40)||!e&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},p={};function d(t){var n="";for(var e in t){var r=t[e];null!=r&&(n&&(n+=" "),n+="-"==e[0]?e:p[e]||(p[e]=e.replace(/([A-Z])/g,"-$1").toLowerCase()),n+=": ",n+=r,"number"==typeof r&&!1===i.test(e)&&(n+="px"),n+=";")}return n||void 0}function y(t,n){for(var e in n)t[e]=n[e];return t}function _(t,n){return Array.isArray(n)?n.reduce(_,t):null!=n&&!1!==n&&t.push(n),t}function v(t,n,e,r,i){var u={type:t,props:n,key:e,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++o.__v:i};return null!=o.vnode&&o.vnode(u),u}function g(t){return t.children}o={__e:function(t,n){for(var e,r,o,i=n.__h;n=n.__;)if((e=n.__c)&&!e.__)try{if((r=e.constructor)&&null!=r.getDerivedStateFromError&&(e.setState(r.getDerivedStateFromError(t)),o=e.__d),null!=e.componentDidCatch&&(e.componentDidCatch(t),o=e.__d),o)return n.__h=i,e.__E=e}catch(n){t=n}throw t},__v:0},"function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout;var m={shallow:!0},b=[],h=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,S=/[\s\n\\/='"\0<>]/,x=function(){};A.render=A;var j=[];function A(t,n,e){var r=O(t,n,e);return o.__c&&o.__c(t,j),r}function O(t,n,e,r,i,u){if(null==t||"boolean"==typeof t)return"";Array.isArray(t)&&(t=function(t,n,e){var r,o,i,u=arguments,a={};for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:a[i]=n[i];if(arguments.length>3)for(e=[e],i=3;i<arguments.length;i++)e.push(u[i]);if(null!=e&&(a.children=e),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===a[i]&&(a[i]=t.defaultProps[i]);return v(t,a,r,o,null)}(g,null,t));var a=t.type,l=t.props,p=!1;n=n||{};var m,j=(e=e||{}).pretty,A=j&&"string"==typeof j?j:"\t";if("object"!=typeof t&&!a)return c(t);if("function"==typeof a){if(p=!0,!e.shallow||!r&&!1!==e.renderRootComponent){if(a===g){var k="",w=[];_(w,t.props.children);for(var F=0;F<w.length;F++)k+=(F>0&&j?"\n":"")+O(w[F],n,e,!1!==e.shallowHighOrder,i,u);return k}var E,C=t.__c={__v:t,context:n,props:t.props,setState:x,forceUpdate:x,__h:[]};if(o.__b&&o.__b(t),o.__r&&o.__r(t),a.prototype&&"function"==typeof a.prototype.render){var D=a.contextType,M=D&&n[D.__c],P=null!=D?M?M.props.value:D.__:n;(C=t.__c=new a(l,P)).__v=t,C._dirty=C.__d=!0,C.props=l,null==C.state&&(C.state={}),null==C._nextState&&null==C.__s&&(C._nextState=C.__s=C.state),C.context=P,a.getDerivedStateFromProps?C.state=y(y({},C.state),a.getDerivedStateFromProps(C.props,C.state)):C.componentWillMount&&(C.componentWillMount(),C.state=C._nextState!==C.state?C._nextState:C.__s!==C.state?C.__s:C.state),E=C.render(C.props,C.state,C.context)}else{var N=a.contextType,H=N&&n[N.__c];E=a.call(t.__c,l,null!=N?H?H.props.value:N.__:n)}return C.getChildContext&&(n=y(y({},n),C.getChildContext())),o.diffed&&o.diffed(t),O(E,n,e,!1!==e.shallowHighOrder,i,u)}a=(m=a).displayName||m!==Function&&m.name||function(t){var n=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!n){for(var e=-1,r=b.length;r--;)if(b[r]===t){e=r;break}e<0&&(e=b.push(t)-1),n="UnnamedComponent"+e}return n}(m)}var I,$,T="";if(l){var U=Object.keys(l);e&&!0===e.sortAttributes&&U.sort();for(var W=0;W<U.length;W++){var L=U[W],R=l[L];if("children"!==L){if(!L.match(/[\s\n\\/='"\0<>]/)&&(e&&e.allAttributes||"key"!==L&&"ref"!==L&&"__self"!==L&&"__source"!==L&&"defaultValue"!==L)){if("className"===L){if(l.class)continue;L="class"}else i&&L.match(/^xlink:?./)&&(L=L.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===L){if(l.for)continue;L="for"}"style"===L&&R&&"object"==typeof R&&(R=d(R)),"a"===L[0]&&"r"===L[1]&&"boolean"==typeof R&&(R=String(R));var J=e.attributeHook&&e.attributeHook(L,R,n,e,p);if(J||""===J)T+=J;else if("dangerouslySetInnerHTML"===L)$=R&&R.__html;else if("textarea"===a&&"value"===L)I=R;else if((R||0===R||""===R)&&"function"!=typeof R){if(!(!0!==R&&""!==R||(R=L,e&&e.xml))){T+=" "+L;continue}if("value"===L){if("select"===a){u=R;continue}"option"===a&&u==R&&(T+=" selected")}T+=" "+L+'="'+c(R)+'"'}}}else I=R}}if(j){var V=T.replace(/^\n\s*/," ");V===T||~V.indexOf("\n")?j&&~T.indexOf("\n")&&(T+="\n"):T=V}if(T="<"+a+T+">",S.test(String(a)))throw new Error(a+" is not a valid HTML tag name in "+T);var q,z=h.test(String(a))||e.voidElements&&e.voidElements.test(String(a)),B=[];if($)j&&s($)&&($="\n"+A+f($,A)),T+=$;else if(null!=I&&_(q=[],I).length){for(var G=j&&~T.indexOf("\n"),Z=!1,K=0;K<q.length;K++){var Q=q[K];if(null!=Q&&!1!==Q){var X=O(Q,n,e,!0,"svg"===a||"foreignObject"!==a&&i,u);if(j&&!G&&s(X)&&(G=!0),X)if(j){var Y=X.length>0&&"<"!=X[0];Z&&Y?B[B.length-1]+=X:B.push(X),Z=Y}else B.push(X)}}if(j&&G)for(var tt=B.length;tt--;)B[tt]="\n"+A+f(B[tt],A)}if(B.length||$)T+=B.join("");else if(e&&e.xml)return T.substring(0,T.length-1)+" />";return!z||q||$?(j&&~T.indexOf("\n")&&(T+="\n"),T+="</"+a+">"):T=T.replace(/>$/," />"),T}A.shallowRender=function(t,n){return A(t,n,m)};var k=/(\\|\"|\')/g,w=Object.prototype.toString,F=Date.prototype.toISOString,E=Error.prototype.toString,C=RegExp.prototype.toString,D=Symbol.prototype.toString,M=/^Symbol\((.*)\)(.*)$/,P=/\n/gi,N=Object.getOwnPropertySymbols||function(t){return[]};function H(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.name?"[Function anonymous]":"[Function "+t.name+"]"}function $(t){return D.call(t).replace(M,"Symbol($1)")}function T(t){return"["+E.call(t)+"]"}function U(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";var n=typeof t;if("number"===n)return function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===n)return'"'+function(t){return t.replace(k,"\\$1")}(t)+'"';if("function"===n)return I(t);if("symbol"===n)return $(t);var e=w.call(t);return"[object WeakMap]"===e?"WeakMap {}":"[object WeakSet]"===e?"WeakSet {}":"[object Function]"===e||"[object GeneratorFunction]"===e?I(t,min):"[object Symbol]"===e?$(t):"[object Date]"===e?F.call(t):"[object Error]"===e?T(t):"[object RegExp]"===e?C.call(t):"[object Arguments]"===e&&0===t.length?"Arguments []":H(e)&&0===t.length?t.constructor.name+" []":t instanceof Error&&T(t)}function W(t,n,e,r,o,i,u,a,l,c){var f="";if(t.length){f+=o;for(var s=e+n,p=0;p<t.length;p++)f+=s+J(t[p],n,s,r,o,i,u,a,l,c),p<t.length-1&&(f+=","+r);f+=o+e}return"["+f+"]"}function L(t,n,e,r,o,i,u,a,l,c){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);var f=++a>u;if(!f&&t.toJSON&&"function"==typeof t.toJSON)return J(t.toJSON(),n,e,r,o,i,u,a,l,c);var s=w.call(t);return"[object Arguments]"===s?f?"[Arguments]":function(t,n,e,r,o,i,u,a,l,c){return(c?"":"Arguments ")+W(t,n,e,r,o,i,u,a,l,c)}(t,n,e,r,o,i,u,a,l,c):H(s)?f?"[Array]":function(t,n,e,r,o,i,u,a,l,c){return(c?"":t.constructor.name+" ")+W(t,n,e,r,o,i,u,a,l,c)}(t,n,e,r,o,i,u,a,l,c):"[object Map]"===s?f?"[Map]":function(t,n,e,r,o,i,u,a,l,c){var f="Map {",s=t.entries(),p=s.next();if(!p.done){f+=o;for(var d=e+n;!p.done;)f+=d+J(p.value[0],n,d,r,o,i,u,a,l,c)+" => "+J(p.value[1],n,d,r,o,i,u,a,l,c),(p=s.next()).done||(f+=","+r);f+=o+e}return f+"}"}(t,n,e,r,o,i,u,a,l,c):"[object Set]"===s?f?"[Set]":function(t,n,e,r,o,i,u,a,l,c){var f="Set {",s=t.entries(),p=s.next();if(!p.done){f+=o;for(var d=e+n;!p.done;)f+=d+J(p.value[1],n,d,r,o,i,u,a,l,c),(p=s.next()).done||(f+=","+r);f+=o+e}return f+"}"}(t,n,e,r,o,i,u,a,l,c):"object"==typeof t?f?"[Object]":function(t,n,e,r,o,i,u,a,l,c){var f=(c?"":t.constructor?t.constructor.name+" ":"Object ")+"{",s=Object.keys(t).sort(),p=N(t);if(p.length&&(s=s.filter(function(t){return!("symbol"==typeof t||"[object Symbol]"===w.call(t))}).concat(p)),s.length){f+=o;for(var d=e+n,y=0;y<s.length;y++){var _=s[y];f+=d+J(_,n,d,r,o,i,u,a,l,c)+": "+J(t[_],n,d,r,o,i,u,a,l,c),y<s.length-1&&(f+=","+r)}f+=o+e}return f+"}"}(t,n,e,r,o,i,u,a,l,c):void 0}function R(t,n,e,r,o,i,u,a,l,c){for(var f,s=!1,p=0;p<l.length;p++)if((f=l[p]).test(t)){s=!0;break}return!!s&&f.print(t,function(t){return J(t,n,e,r,o,i,u,a,l,c)},function(t){var r=e+n;return r+t.replace(P,"\n"+r)},{edgeSpacing:o,spacing:r})}function J(t,n,e,r,o,i,u,a,l,c){return U(t)||R(t,n,e,r,o,i,u,a,l,c)||L(t,n,e,r,o,i,u,a,l,c)}var V={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function q(t){return new Array(t+1).join(" ")}var z={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,n,e){return A(t,z.context,z.opts)}},B={plugins:[z]},G={attributeHook:function(t,n,e,r,o){var i=typeof n;if("dangerouslySetInnerHTML"===t)return!1;if(null==n||"function"===i&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===n||("class"===t||"style"===t)&&""===n))return"";var u="string"==typeof r.pretty?r.pretty:"\t";return"string"!==i?("function"!==i||r.functionNames?(z.context=e,z.opts=r,~(n=function(t,n){var e,r;n?(function(t){if(Object.keys(t).forEach(function(t){if(!V.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")}(n),n=function(t){var n={};return Object.keys(V).forEach(function(e){return n[e]=t.hasOwnProperty(e)?t[e]:V[e]}),n.min&&(n.indent=0),n}(n)):n=V;var o=n.min?" ":"\n",i=n.min?"":"\n";if(n&&n.plugins.length){var u=R(t,e=q(n.indent),"",o,i,r=[],n.maxDepth,0,n.plugins,n.min);if(u)return u}return U(t)||(e||(e=q(n.indent)),r||(r=[]),L(t,e,"",o,i,r,n.maxDepth,0,n.plugins,n.min))}(n,B)).indexOf("\n")&&(n=f("\n"+n,u)+"\n")):n="Function",f("\n"+t+"={"+n+"}",u)):"\n"+u+t+'="'+c(n)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function Z(t,n,e,r){return A(t,n,e=y(y({},G),e||{}))}t.default=Z,t.render=Z},"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(self.preactRenderToString={});
var t;t=function(t){if("function"!=typeof Symbol){var n=0;Symbol=function(t){return"@@"+t+ ++n},Symbol.for=function(t){return"@@"+t}}var e=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,r=/[&<>"]/g,o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},i=function(t){return o[t]||t};function u(t){return"string"!=typeof t&&(t=String(t)),t.replace(r,i)}var a,l=function(t,n){return String(t).replace(/(\n+)/g,"$1"+(n||"\t"))},c=function(t,n,e){return String(t).length>(n||40)||!e&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},f={};function s(t){var n="";for(var r in t){var o=t[r];null!=o&&""!==o&&(n&&(n+=" "),n+="-"==r[0]?r:f[r]||(f[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),n+=": ",n+=o,"number"==typeof o&&!1===e.test(r)&&(n+="px"),n+=";")}return n||void 0}function p(t,n){for(var e in n)t[e]=n[e];return t}function d(t,n){return Array.isArray(n)?n.reduce(d,t):null!=n&&!1!==n&&t.push(n),t}function y(t,n,e,r,o){var i={type:t,props:n,key:e,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++a.__v:o};return null!=a.vnode&&a.vnode(i),i}function _(t){return t.children}a={__e:function(t,n){for(var e,r,o,i=n.__h;n=n.__;)if((e=n.__c)&&!e.__)try{if((r=e.constructor)&&null!=r.getDerivedStateFromError&&(e.setState(r.getDerivedStateFromError(t)),o=e.__d),null!=e.componentDidCatch&&(e.componentDidCatch(t),o=e.__d),o)return n.__h=i,e.__E=e}catch(n){t=n}throw t},__v:0},"function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout;var v={shallow:!0},g=[],m=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,b=/[\s\n\\/='"\0<>]/,h=function(){};x.render=x;var S=[];function x(t,n,e){var r=j(t,n,e);return a.__c&&a.__c(t,S),r}function j(t,n,e,r,o,i){if(null==t||"boolean"==typeof t)return"";Array.isArray(t)&&(t=function(t,n,e){var r,o,i,u=arguments,a={};for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:a[i]=n[i];if(arguments.length>3)for(e=[e],i=3;i<arguments.length;i++)e.push(u[i]);if(null!=e&&(a.children=e),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===a[i]&&(a[i]=t.defaultProps[i]);return y(t,a,r,o,null)}(_,null,t));var f=t.type,v=t.props,S=!1;n=n||{};var x,A=(e=e||{}).pretty,O=A&&"string"==typeof A?A:"\t";if("object"!=typeof t&&!f)return u(t);if("function"==typeof f){if(S=!0,!e.shallow||!r&&!1!==e.renderRootComponent){if(f===_){var k="",w=[];d(w,t.props.children);for(var F=0;F<w.length;F++)k+=(F>0&&A?"\n":"")+j(w[F],n,e,!1!==e.shallowHighOrder,o,i);return k}var E,C=t.__c={__v:t,context:n,props:t.props,setState:h,forceUpdate:h,__h:[]};if(a.__b&&a.__b(t),a.__r&&a.__r(t),f.prototype&&"function"==typeof f.prototype.render){var D=f.contextType,P=D&&n[D.__c],M=null!=D?P?P.props.value:D.__:n;(C=t.__c=new f(v,M)).__v=t,C._dirty=C.__d=!0,C.props=v,null==C.state&&(C.state={}),null==C._nextState&&null==C.__s&&(C._nextState=C.__s=C.state),C.context=M,f.getDerivedStateFromProps?C.state=p(p({},C.state),f.getDerivedStateFromProps(C.props,C.state)):C.componentWillMount&&(C.componentWillMount(),C.state=C._nextState!==C.state?C._nextState:C.__s!==C.state?C.__s:C.state),E=C.render(C.props,C.state,C.context)}else{var N=f.contextType,H=N&&n[N.__c];E=f.call(t.__c,v,null!=N?H?H.props.value:N.__:n)}return C.getChildContext&&(n=p(p({},n),C.getChildContext())),a.diffed&&a.diffed(t),j(E,n,e,!1!==e.shallowHighOrder,o,i)}f=(x=f).displayName||x!==Function&&x.name||function(t){var n=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!n){for(var e=-1,r=g.length;r--;)if(g[r]===t){e=r;break}e<0&&(e=g.push(t)-1),n="UnnamedComponent"+e}return n}(x)}var I,$,T="";if(v){var U=Object.keys(v);e&&!0===e.sortAttributes&&U.sort();for(var W=0;W<U.length;W++){var L=U[W],R=v[L];if("children"!==L){if(!L.match(/[\s\n\\/='"\0<>]/)&&(e&&e.allAttributes||"key"!==L&&"ref"!==L&&"__self"!==L&&"__source"!==L&&"defaultValue"!==L)){if("className"===L){if(v.class)continue;L="class"}else o&&L.match(/^xlink:?./)&&(L=L.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===L){if(v.for)continue;L="for"}"style"===L&&R&&"object"==typeof R&&(R=s(R)),"a"===L[0]&&"r"===L[1]&&"boolean"==typeof R&&(R=String(R));var J=e.attributeHook&&e.attributeHook(L,R,n,e,S);if(J||""===J)T+=J;else if("dangerouslySetInnerHTML"===L)$=R&&R.__html;else if("textarea"===f&&"value"===L)I=R;else if((R||0===R||""===R)&&"function"!=typeof R){if(!(!0!==R&&""!==R||(R=L,e&&e.xml))){T+=" "+L;continue}if("value"===L){if("select"===f){i=R;continue}"option"===f&&i==R&&(T+=" selected")}T+=" "+L+'="'+u(R)+'"'}}}else I=R}}if(A){var V=T.replace(/^\n\s*/," ");V===T||~V.indexOf("\n")?A&&~T.indexOf("\n")&&(T+="\n"):T=V}if(T="<"+f+T+">",b.test(String(f)))throw new Error(f+" is not a valid HTML tag name in "+T);var q,z=m.test(String(f))||e.voidElements&&e.voidElements.test(String(f)),B=[];if($)A&&c($)&&($="\n"+O+l($,O)),T+=$;else if(null!=I&&d(q=[],I).length){for(var G=A&&~T.indexOf("\n"),Z=!1,K=0;K<q.length;K++){var Q=q[K];if(null!=Q&&!1!==Q){var X=j(Q,n,e,!0,"svg"===f||"foreignObject"!==f&&o,i);if(A&&!G&&c(X)&&(G=!0),X)if(A){var Y=X.length>0&&"<"!=X[0];Z&&Y?B[B.length-1]+=X:B.push(X),Z=Y}else B.push(X)}}if(A&&G)for(var tt=B.length;tt--;)B[tt]="\n"+O+l(B[tt],O)}if(B.length||$)T+=B.join("");else if(e&&e.xml)return T.substring(0,T.length-1)+" />";return!z||q||$?(A&&~T.indexOf("\n")&&(T+="\n"),T+="</"+f+">"):T=T.replace(/>$/," />"),T}x.shallowRender=function(t,n){return x(t,n,v)};var A=/(\\|\"|\')/g,O=Object.prototype.toString,k=Date.prototype.toISOString,w=Error.prototype.toString,F=RegExp.prototype.toString,E=Symbol.prototype.toString,C=/^Symbol\((.*)\)(.*)$/,D=/\n/gi,P=Object.getOwnPropertySymbols||function(t){return[]};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 N(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function H(t){return E.call(t).replace(C,"Symbol($1)")}function I(t){return"["+w.call(t)+"]"}function $(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";var n=typeof t;if("number"===n)return function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===n)return'"'+function(t){return t.replace(A,"\\$1")}(t)+'"';if("function"===n)return N(t);if("symbol"===n)return H(t);var e=O.call(t);return"[object WeakMap]"===e?"WeakMap {}":"[object WeakSet]"===e?"WeakSet {}":"[object Function]"===e||"[object GeneratorFunction]"===e?N(t,min):"[object Symbol]"===e?H(t):"[object Date]"===e?k.call(t):"[object Error]"===e?I(t):"[object RegExp]"===e?F.call(t):"[object Arguments]"===e&&0===t.length?"Arguments []":M(e)&&0===t.length?t.constructor.name+" []":t instanceof Error&&I(t)}function T(t,n,e,r,o,i,u,a,l,c){var f="";if(t.length){f+=o;for(var s=e+n,p=0;p<t.length;p++)f+=s+L(t[p],n,s,r,o,i,u,a,l,c),p<t.length-1&&(f+=","+r);f+=o+e}return"["+f+"]"}function U(t,n,e,r,o,i,u,a,l,c){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);var f=++a>u;if(!f&&t.toJSON&&"function"==typeof t.toJSON)return L(t.toJSON(),n,e,r,o,i,u,a,l,c);var s=O.call(t);return"[object Arguments]"===s?f?"[Arguments]":function(t,n,e,r,o,i,u,a,l,c){return(c?"":"Arguments ")+T(t,n,e,r,o,i,u,a,l,c)}(t,n,e,r,o,i,u,a,l,c):M(s)?f?"[Array]":function(t,n,e,r,o,i,u,a,l,c){return(c?"":t.constructor.name+" ")+T(t,n,e,r,o,i,u,a,l,c)}(t,n,e,r,o,i,u,a,l,c):"[object Map]"===s?f?"[Map]":function(t,n,e,r,o,i,u,a,l,c){var f="Map {",s=t.entries(),p=s.next();if(!p.done){f+=o;for(var d=e+n;!p.done;)f+=d+L(p.value[0],n,d,r,o,i,u,a,l,c)+" => "+L(p.value[1],n,d,r,o,i,u,a,l,c),(p=s.next()).done||(f+=","+r);f+=o+e}return f+"}"}(t,n,e,r,o,i,u,a,l,c):"[object Set]"===s?f?"[Set]":function(t,n,e,r,o,i,u,a,l,c){var f="Set {",s=t.entries(),p=s.next();if(!p.done){f+=o;for(var d=e+n;!p.done;)f+=d+L(p.value[1],n,d,r,o,i,u,a,l,c),(p=s.next()).done||(f+=","+r);f+=o+e}return f+"}"}(t,n,e,r,o,i,u,a,l,c):"object"==typeof t?f?"[Object]":function(t,n,e,r,o,i,u,a,l,c){var f=(c?"":t.constructor?t.constructor.name+" ":"Object ")+"{",s=Object.keys(t).sort(),p=P(t);if(p.length&&(s=s.filter(function(t){return!("symbol"==typeof t||"[object Symbol]"===O.call(t))}).concat(p)),s.length){f+=o;for(var d=e+n,y=0;y<s.length;y++){var _=s[y];f+=d+L(_,n,d,r,o,i,u,a,l,c)+": "+L(t[_],n,d,r,o,i,u,a,l,c),y<s.length-1&&(f+=","+r)}f+=o+e}return f+"}"}(t,n,e,r,o,i,u,a,l,c):void 0}function W(t,n,e,r,o,i,u,a,l,c){for(var f,s=!1,p=0;p<l.length;p++)if((f=l[p]).test(t)){s=!0;break}return!!s&&f.print(t,function(t){return L(t,n,e,r,o,i,u,a,l,c)},function(t){var r=e+n;return r+t.replace(D,"\n"+r)},{edgeSpacing:o,spacing:r})}function L(t,n,e,r,o,i,u,a,l,c){return $(t)||W(t,n,e,r,o,i,u,a,l,c)||U(t,n,e,r,o,i,u,a,l,c)}var R={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function J(t){return new Array(t+1).join(" ")}var V={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,n,e){return x(t,V.context,V.opts)}},q={plugins:[V]},z={attributeHook:function(t,n,e,r,o){var i=typeof n;if("dangerouslySetInnerHTML"===t)return!1;if(null==n||"function"===i&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===n||("class"===t||"style"===t)&&""===n))return"";var a="string"==typeof r.pretty?r.pretty:"\t";return"string"!==i?("function"!==i||r.functionNames?(V.context=e,V.opts=r,~(n=function(t,n){var e,r;n?(function(t){if(Object.keys(t).forEach(function(t){if(!R.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")}(n),n=function(t){var n={};return Object.keys(R).forEach(function(e){return n[e]=t.hasOwnProperty(e)?t[e]:R[e]}),n.min&&(n.indent=0),n}(n)):n=R;var o=n.min?" ":"\n",i=n.min?"":"\n";if(n&&n.plugins.length){var u=W(t,e=J(n.indent),"",o,i,r=[],n.maxDepth,0,n.plugins,n.min);if(u)return u}return $(t)||(e||(e=J(n.indent)),r||(r=[]),U(t,e,"",o,i,r,n.maxDepth,0,n.plugins,n.min))}(n,q)).indexOf("\n")&&(n=l("\n"+n,a)+"\n")):n="Function",l("\n"+t+"={"+n+"}",a)):"\n"+a+t+'="'+u(n)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function B(t,n,e,r){return x(t,n,e=p(p({},z),e||{}))}t.default=B,t.render=B},"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(self.preactRenderToString={});
//# sourceMappingURL=jsx.js.map

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

if("function"!=typeof Symbol){let t=0;Symbol=function(e){return`@@${e}${++t}`},Symbol.for=t=>`@@${t}`}const t=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,e=/[&<>"]/g,n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},r=t=>n[t]||t,o=function(t){const n=new Map;return t=>{let o=n.get(t);return o||("string"!=typeof(i=t)&&(i=String(i)),o=i.replace(e,r),n.set(t,o)),o;var i}}();let i=(t,e)=>String(t).replace(/(\n+)/g,"$1"+(e||"\t")),l=(t,e,n)=>String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<");const c={};function u(e){let n="";for(let r in e){let o=e[r];null!=o&&(n&&(n+=" "),n+="-"==r[0]?r:c[r]||(c[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),n+=": ",n+=o,"number"==typeof o&&!1===t.test(r)&&(n+="px"),n+=";")}return n||void 0}function f(t,e){for(let n in e)t[n]=e[n];return t}function s(t,e){return Array.isArray(e)?e.reduce(s,t):null!=e&&!1!==e&&t.push(e),t}var a;function p(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++a.__v:o};return null!=a.vnode&&a.vnode(i),i}function _(t){return t.children}a={__e:function(t,e){for(var n,r,o,i=e.__h;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return e.__h=i,n.__E=n}catch(e){t=e}throw t},__v:0},"function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout;const y={shallow:!0},d=[],g=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,m=/[\s\n\\/='"\0<>]/,b=()=>{};S.render=S;const h=[];function S(t,e,n){const r=x(t,e,n);return a.__c&&a.__c(t,h),r}function x(t,e,n,r,c,y){if(null==t||"boolean"==typeof t)return"";Array.isArray(t)&&(t=function(t,e,n){var r,o,i,l=arguments,c={};for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:c[i]=e[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(l[i]);if(null!=n&&(c.children=n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===c[i]&&(c[i]=t.defaultProps[i]);return p(t,c,r,o,null)}(_,null,t));let h=t.type,S=t.props,j=!1;e=e||{};let v=(n=n||{}).pretty,A=v&&"string"==typeof v?v:"\t";if("object"!=typeof t&&!h)return o(t);if("function"==typeof h){if(j=!0,!n.shallow||!r&&!1!==n.renderRootComponent){if(h===_){let r="",o=[];s(o,t.props.children);for(let t=0;t<o.length;t++)r+=(t>0&&v?"\n":"")+x(o[t],e,n,!1!==n.shallowHighOrder,c,y);return r}{let r,o=t.__c={__v:t,context:e,props:t.props,setState:b,forceUpdate:b,__h:[]};if(a.__b&&a.__b(t),a.__r&&a.__r(t),h.prototype&&"function"==typeof h.prototype.render){let n=h.contextType,i=n&&e[n.__c],l=null!=n?i?i.props.value:n.__:e;o=t.__c=new h(S,l),o.__v=t,o._dirty=o.__d=!0,o.props=S,null==o.state&&(o.state={}),null==o._nextState&&null==o.__s&&(o._nextState=o.__s=o.state),o.context=l,h.getDerivedStateFromProps?o.state=f(f({},o.state),h.getDerivedStateFromProps(o.props,o.state)):o.componentWillMount&&(o.componentWillMount(),o.state=o._nextState!==o.state?o._nextState:o.__s!==o.state?o.__s:o.state),r=o.render(o.props,o.state,o.context)}else{let n=h.contextType,o=n&&e[n.__c];r=h.call(t.__c,S,null!=n?o?o.props.value:n.__:e)}return o.getChildContext&&(e=f(f({},e),o.getChildContext())),a.diffed&&a.diffed(t),x(r,e,n,!1!==n.shallowHighOrder,c,y)}}h=(O=h).displayName||O!==Function&&O.name||function(t){let e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){let n=-1;for(let e=d.length;e--;)if(d[e]===t){n=e;break}n<0&&(n=d.push(t)-1),e=`UnnamedComponent${n}`}return e}(O)}var O;let k,w,$="";if(S){let t=Object.keys(S);n&&!0===n.sortAttributes&&t.sort();for(let r=0;r<t.length;r++){let i=t[r],l=S[i];if("children"===i){k=l;continue}if(i.match(/[\s\n\\/='"\0<>]/))continue;if(!(n&&n.allAttributes||"key"!==i&&"ref"!==i&&"__self"!==i&&"__source"!==i&&"defaultValue"!==i))continue;if("className"===i){if(S.class)continue;i="class"}else c&&i.match(/^xlink:?./)&&(i=i.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===i){if(S.for)continue;i="for"}"style"===i&&l&&"object"==typeof l&&(l=u(l)),"a"===i[0]&&"r"===i[1]&&"boolean"==typeof l&&(l=String(l));let f=n.attributeHook&&n.attributeHook(i,l,e,n,j);if(f||""===f)$+=f;else if("dangerouslySetInnerHTML"===i)w=l&&l.__html;else if("textarea"===h&&"value"===i)k=l;else if((l||0===l||""===l)&&"function"!=typeof l){if(!(!0!==l&&""!==l||(l=i,n&&n.xml))){$+=" "+i;continue}if("value"===i){if("select"===h){y=l;continue}"option"===h&&y==l&&($+=" selected")}$+=` ${i}="${o(l)}"`}}}if(v){let t=$.replace(/^\n\s*/," ");t===$||~t.indexOf("\n")?v&&~$.indexOf("\n")&&($+="\n"):$=t}if($=`<${h}${$}>`,m.test(String(h)))throw new Error(`${h} is not a valid HTML tag name in ${$}`);let F,E=g.test(String(h))||n.voidElements&&n.voidElements.test(String(h)),C=[];if(w)v&&l(w)&&(w="\n"+A+i(w,A)),$+=w;else if(null!=k&&s(F=[],k).length){let t=v&&~$.indexOf("\n"),r=!1;for(let o=0;o<F.length;o++){let i=F[o];if(null!=i&&!1!==i){let o=x(i,e,n,!0,"svg"===h||"foreignObject"!==h&&c,y);if(v&&!t&&l(o)&&(t=!0),o)if(v){let t=o.length>0&&"<"!=o[0];r&&t?C[C.length-1]+=o:C.push(o),r=t}else C.push(o)}}if(v&&t)for(let t=C.length;t--;)C[t]="\n"+A+i(C[t],A)}if(C.length||w)$+=C.join("");else if(n&&n.xml)return $.substring(0,$.length-1)+" />";return!E||F||w?(v&&~$.indexOf("\n")&&($+="\n"),$+=`</${h}>`):$=$.replace(/>$/," />"),$}S.shallowRender=(t,e)=>S(t,e,y);const j=/(\\|\"|\')/g,v=Object.prototype.toString,A=Date.prototype.toISOString,O=Error.prototype.toString,k=RegExp.prototype.toString,w=Symbol.prototype.toString,$=/^Symbol\((.*)\)(.*)$/,F=/\n/gi,E=Object.getOwnPropertySymbols||(t=>[]);function C(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 D(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function M(t){return w.call(t).replace($,"Symbol($1)")}function P(t){return"["+O.call(t)+"]"}function N(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 function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===e)return'"'+function(t){return t.replace(j,"\\$1")}(t)+'"';if("function"===e)return D(t);if("symbol"===e)return M(t);const n=v.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?D(t,min):"[object Symbol]"===n?M(t):"[object Date]"===n?A.call(t):"[object Error]"===n?P(t):"[object RegExp]"===n?k.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":C(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&P(t)}function H(t,e,n,r,o,i,l,c,u,f){let s="";if(t.length){s+=o;const a=n+e;for(let n=0;n<t.length;n++)s+=a+U(t[n],e,a,r,o,i,l,c,u,f),n<t.length-1&&(s+=","+r);s+=o+n}return"["+s+"]"}function I(t,e,n,r,o,i,l,c,u,f){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);const s=++c>l;if(!s&&t.toJSON&&"function"==typeof t.toJSON)return U(t.toJSON(),e,n,r,o,i,l,c,u,f);const a=v.call(t);return"[object Arguments]"===a?s?"[Arguments]":function(t,e,n,r,o,i,l,c,u,f){return(f?"":"Arguments ")+H(t,e,n,r,o,i,l,c,u,f)}(t,e,n,r,o,i,l,c,u,f):C(a)?s?"[Array]":function(t,e,n,r,o,i,l,c,u,f){return(f?"":t.constructor.name+" ")+H(t,e,n,r,o,i,l,c,u,f)}(t,e,n,r,o,i,l,c,u,f):"[object Map]"===a?s?"[Map]":function(t,e,n,r,o,i,l,c,u,f){let s="Map {";const a=t.entries();let p=a.next();if(!p.done){s+=o;const t=n+e;for(;!p.done;)s+=t+U(p.value[0],e,t,r,o,i,l,c,u,f)+" => "+U(p.value[1],e,t,r,o,i,l,c,u,f),p=a.next(),p.done||(s+=","+r);s+=o+n}return s+"}"}(t,e,n,r,o,i,l,c,u,f):"[object Set]"===a?s?"[Set]":function(t,e,n,r,o,i,l,c,u,f){let s="Set {";const a=t.entries();let p=a.next();if(!p.done){s+=o;const t=n+e;for(;!p.done;)s+=t+U(p.value[1],e,t,r,o,i,l,c,u,f),p=a.next(),p.done||(s+=","+r);s+=o+n}return s+"}"}(t,e,n,r,o,i,l,c,u,f):"object"==typeof t?s?"[Object]":function(t,e,n,r,o,i,l,c,u,f){let s=(f?"":t.constructor?t.constructor.name+" ":"Object ")+"{",a=Object.keys(t).sort();const p=E(t);if(p.length&&(a=a.filter(t=>!("symbol"==typeof t||"[object Symbol]"===v.call(t))).concat(p)),a.length){s+=o;const p=n+e;for(let n=0;n<a.length;n++){const _=a[n];s+=p+U(_,e,p,r,o,i,l,c,u,f)+": "+U(t[_],e,p,r,o,i,l,c,u,f),n<a.length-1&&(s+=","+r)}s+=o+n}return s+"}"}(t,e,n,r,o,i,l,c,u,f):void 0}function T(t,e,n,r,o,i,l,c,u,f){let s,a=!1;for(let e=0;e<u.length;e++)if(s=u[e],s.test(t)){a=!0;break}return!!a&&s.print(t,function(t){return U(t,e,n,r,o,i,l,c,u,f)},function(t){const r=n+e;return r+t.replace(F,"\n"+r)},{edgeSpacing:o,spacing:r})}function U(t,e,n,r,o,i,l,c,u,f){return N(t)||T(t,e,n,r,o,i,l,c,u,f)||I(t,e,n,r,o,i,l,c,u,f)}const W={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function L(t){return new Array(t+1).join(" ")}let R={test:t=>t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t,print:(t,e,n)=>S(t,R.context,R.opts)},J={plugins:[R]},V={attributeHook:function(t,e,n,r,l){let c=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===c&&!r.functions)return"";if(r.skipFalseAttributes&&!l&&(!1===e||("class"===t||"style"===t)&&""===e))return"";let u="string"==typeof r.pretty?r.pretty:"\t";return"string"!==c?("function"!==c||r.functionNames?(R.context=n,R.opts=r,~(e=function(t,e){let n,r;e?(function(t){if(Object.keys(t).forEach(t=>{if(!W.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")}(e),e=function(t){const e={};return Object.keys(W).forEach(n=>e[n]=t.hasOwnProperty(n)?t[n]:W[n]),e.min&&(e.indent=0),e}(e)):e=W;const o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){n=L(e.indent),r=[];var l=T(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min);if(l)return l}return N(t)||(n||(n=L(e.indent)),r||(r=[]),I(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))}(e,J)).indexOf("\n")&&(e=`${i("\n"+e,u)}\n`)):e="Function",i(`\n${t}={${e}}`,u)):`\n${u}${t}="${o(e)}"`},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function q(t,e,n,r){return S(t,e,n=f(f({},V),n||{}))}export default q;export{q as render};
if("function"!=typeof Symbol){let t=0;Symbol=function(e){return`@@${e}${++t}`},Symbol.for=t=>`@@${t}`}const t=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,e=/[&<>"]/g,n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},r=t=>n[t]||t;function o(t){return"string"!=typeof t&&(t=String(t)),t.replace(e,r)}let i=(t,e)=>String(t).replace(/(\n+)/g,"$1"+(e||"\t")),l=(t,e,n)=>String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<");const c={};function u(e){let n="";for(let r in e){let o=e[r];null!=o&&""!==o&&(n&&(n+=" "),n+="-"==r[0]?r:c[r]||(c[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),n+=": ",n+=o,"number"==typeof o&&!1===t.test(r)&&(n+="px"),n+=";")}return n||void 0}function f(t,e){for(let n in e)t[n]=e[n];return t}function s(t,e){return Array.isArray(e)?e.reduce(s,t):null!=e&&!1!==e&&t.push(e),t}var a;function p(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++a.__v:o};return null!=a.vnode&&a.vnode(i),i}function _(t){return t.children}a={__e:function(t,e){for(var n,r,o,i=e.__h;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return e.__h=i,n.__E=n}catch(e){t=e}throw t},__v:0},"function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout;const y={shallow:!0},d=[],g=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,m=/[\s\n\\/='"\0<>]/,b=()=>{};S.render=S;const h=[];function S(t,e,n){const r=x(t,e,n);return a.__c&&a.__c(t,h),r}function x(t,e,n,r,c,y){if(null==t||"boolean"==typeof t)return"";Array.isArray(t)&&(t=function(t,e,n){var r,o,i,l=arguments,c={};for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:c[i]=e[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(l[i]);if(null!=n&&(c.children=n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===c[i]&&(c[i]=t.defaultProps[i]);return p(t,c,r,o,null)}(_,null,t));let h=t.type,S=t.props,j=!1;e=e||{};let v=(n=n||{}).pretty,A=v&&"string"==typeof v?v:"\t";if("object"!=typeof t&&!h)return o(t);if("function"==typeof h){if(j=!0,!n.shallow||!r&&!1!==n.renderRootComponent){if(h===_){let r="",o=[];s(o,t.props.children);for(let t=0;t<o.length;t++)r+=(t>0&&v?"\n":"")+x(o[t],e,n,!1!==n.shallowHighOrder,c,y);return r}{let r,o=t.__c={__v:t,context:e,props:t.props,setState:b,forceUpdate:b,__h:[]};if(a.__b&&a.__b(t),a.__r&&a.__r(t),h.prototype&&"function"==typeof h.prototype.render){let n=h.contextType,i=n&&e[n.__c],l=null!=n?i?i.props.value:n.__:e;o=t.__c=new h(S,l),o.__v=t,o._dirty=o.__d=!0,o.props=S,null==o.state&&(o.state={}),null==o._nextState&&null==o.__s&&(o._nextState=o.__s=o.state),o.context=l,h.getDerivedStateFromProps?o.state=f(f({},o.state),h.getDerivedStateFromProps(o.props,o.state)):o.componentWillMount&&(o.componentWillMount(),o.state=o._nextState!==o.state?o._nextState:o.__s!==o.state?o.__s:o.state),r=o.render(o.props,o.state,o.context)}else{let n=h.contextType,o=n&&e[n.__c];r=h.call(t.__c,S,null!=n?o?o.props.value:n.__:e)}return o.getChildContext&&(e=f(f({},e),o.getChildContext())),a.diffed&&a.diffed(t),x(r,e,n,!1!==n.shallowHighOrder,c,y)}}h=(O=h).displayName||O!==Function&&O.name||function(t){let e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){let n=-1;for(let e=d.length;e--;)if(d[e]===t){n=e;break}n<0&&(n=d.push(t)-1),e=`UnnamedComponent${n}`}return e}(O)}var O;let k,$,w="";if(S){let t=Object.keys(S);n&&!0===n.sortAttributes&&t.sort();for(let r=0;r<t.length;r++){let i=t[r],l=S[i];if("children"===i){k=l;continue}if(i.match(/[\s\n\\/='"\0<>]/))continue;if(!(n&&n.allAttributes||"key"!==i&&"ref"!==i&&"__self"!==i&&"__source"!==i&&"defaultValue"!==i))continue;if("className"===i){if(S.class)continue;i="class"}else c&&i.match(/^xlink:?./)&&(i=i.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===i){if(S.for)continue;i="for"}"style"===i&&l&&"object"==typeof l&&(l=u(l)),"a"===i[0]&&"r"===i[1]&&"boolean"==typeof l&&(l=String(l));let f=n.attributeHook&&n.attributeHook(i,l,e,n,j);if(f||""===f)w+=f;else if("dangerouslySetInnerHTML"===i)$=l&&l.__html;else if("textarea"===h&&"value"===i)k=l;else if((l||0===l||""===l)&&"function"!=typeof l){if(!(!0!==l&&""!==l||(l=i,n&&n.xml))){w+=" "+i;continue}if("value"===i){if("select"===h){y=l;continue}"option"===h&&y==l&&(w+=" selected")}w+=` ${i}="${o(l)}"`}}}if(v){let t=w.replace(/^\n\s*/," ");t===w||~t.indexOf("\n")?v&&~w.indexOf("\n")&&(w+="\n"):w=t}if(w=`<${h}${w}>`,m.test(String(h)))throw new Error(`${h} is not a valid HTML tag name in ${w}`);let F,E=g.test(String(h))||n.voidElements&&n.voidElements.test(String(h)),C=[];if($)v&&l($)&&($="\n"+A+i($,A)),w+=$;else if(null!=k&&s(F=[],k).length){let t=v&&~w.indexOf("\n"),r=!1;for(let o=0;o<F.length;o++){let i=F[o];if(null!=i&&!1!==i){let o=x(i,e,n,!0,"svg"===h||"foreignObject"!==h&&c,y);if(v&&!t&&l(o)&&(t=!0),o)if(v){let t=o.length>0&&"<"!=o[0];r&&t?C[C.length-1]+=o:C.push(o),r=t}else C.push(o)}}if(v&&t)for(let t=C.length;t--;)C[t]="\n"+A+i(C[t],A)}if(C.length||$)w+=C.join("");else if(n&&n.xml)return w.substring(0,w.length-1)+" />";return!E||F||$?(v&&~w.indexOf("\n")&&(w+="\n"),w+=`</${h}>`):w=w.replace(/>$/," />"),w}S.shallowRender=(t,e)=>S(t,e,y);const j=/(\\|\"|\')/g,v=Object.prototype.toString,A=Date.prototype.toISOString,O=Error.prototype.toString,k=RegExp.prototype.toString,$=Symbol.prototype.toString,w=/^Symbol\((.*)\)(.*)$/,F=/\n/gi,E=Object.getOwnPropertySymbols||(t=>[]);function C(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 D(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function P(t){return $.call(t).replace(w,"Symbol($1)")}function M(t){return"["+O.call(t)+"]"}function N(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 function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===e)return'"'+function(t){return t.replace(j,"\\$1")}(t)+'"';if("function"===e)return D(t);if("symbol"===e)return P(t);const n=v.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?D(t,min):"[object Symbol]"===n?P(t):"[object Date]"===n?A.call(t):"[object Error]"===n?M(t):"[object RegExp]"===n?k.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":C(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&M(t)}function H(t,e,n,r,o,i,l,c,u,f){let s="";if(t.length){s+=o;const a=n+e;for(let n=0;n<t.length;n++)s+=a+U(t[n],e,a,r,o,i,l,c,u,f),n<t.length-1&&(s+=","+r);s+=o+n}return"["+s+"]"}function I(t,e,n,r,o,i,l,c,u,f){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);const s=++c>l;if(!s&&t.toJSON&&"function"==typeof t.toJSON)return U(t.toJSON(),e,n,r,o,i,l,c,u,f);const a=v.call(t);return"[object Arguments]"===a?s?"[Arguments]":function(t,e,n,r,o,i,l,c,u,f){return(f?"":"Arguments ")+H(t,e,n,r,o,i,l,c,u,f)}(t,e,n,r,o,i,l,c,u,f):C(a)?s?"[Array]":function(t,e,n,r,o,i,l,c,u,f){return(f?"":t.constructor.name+" ")+H(t,e,n,r,o,i,l,c,u,f)}(t,e,n,r,o,i,l,c,u,f):"[object Map]"===a?s?"[Map]":function(t,e,n,r,o,i,l,c,u,f){let s="Map {";const a=t.entries();let p=a.next();if(!p.done){s+=o;const t=n+e;for(;!p.done;)s+=t+U(p.value[0],e,t,r,o,i,l,c,u,f)+" => "+U(p.value[1],e,t,r,o,i,l,c,u,f),p=a.next(),p.done||(s+=","+r);s+=o+n}return s+"}"}(t,e,n,r,o,i,l,c,u,f):"[object Set]"===a?s?"[Set]":function(t,e,n,r,o,i,l,c,u,f){let s="Set {";const a=t.entries();let p=a.next();if(!p.done){s+=o;const t=n+e;for(;!p.done;)s+=t+U(p.value[1],e,t,r,o,i,l,c,u,f),p=a.next(),p.done||(s+=","+r);s+=o+n}return s+"}"}(t,e,n,r,o,i,l,c,u,f):"object"==typeof t?s?"[Object]":function(t,e,n,r,o,i,l,c,u,f){let s=(f?"":t.constructor?t.constructor.name+" ":"Object ")+"{",a=Object.keys(t).sort();const p=E(t);if(p.length&&(a=a.filter(t=>!("symbol"==typeof t||"[object Symbol]"===v.call(t))).concat(p)),a.length){s+=o;const p=n+e;for(let n=0;n<a.length;n++){const _=a[n];s+=p+U(_,e,p,r,o,i,l,c,u,f)+": "+U(t[_],e,p,r,o,i,l,c,u,f),n<a.length-1&&(s+=","+r)}s+=o+n}return s+"}"}(t,e,n,r,o,i,l,c,u,f):void 0}function T(t,e,n,r,o,i,l,c,u,f){let s,a=!1;for(let e=0;e<u.length;e++)if(s=u[e],s.test(t)){a=!0;break}return!!a&&s.print(t,function(t){return U(t,e,n,r,o,i,l,c,u,f)},function(t){const r=n+e;return r+t.replace(F,"\n"+r)},{edgeSpacing:o,spacing:r})}function U(t,e,n,r,o,i,l,c,u,f){return N(t)||T(t,e,n,r,o,i,l,c,u,f)||I(t,e,n,r,o,i,l,c,u,f)}const W={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function L(t){return new Array(t+1).join(" ")}let R={test:t=>t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t,print:(t,e,n)=>S(t,R.context,R.opts)},J={plugins:[R]},V={attributeHook:function(t,e,n,r,l){let c=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===c&&!r.functions)return"";if(r.skipFalseAttributes&&!l&&(!1===e||("class"===t||"style"===t)&&""===e))return"";let u="string"==typeof r.pretty?r.pretty:"\t";return"string"!==c?("function"!==c||r.functionNames?(R.context=n,R.opts=r,~(e=function(t,e){let n,r;e?(function(t){if(Object.keys(t).forEach(t=>{if(!W.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")}(e),e=function(t){const e={};return Object.keys(W).forEach(n=>e[n]=t.hasOwnProperty(n)?t[n]:W[n]),e.min&&(e.indent=0),e}(e)):e=W;const o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){n=L(e.indent),r=[];var l=T(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min);if(l)return l}return N(t)||(n||(n=L(e.indent)),r||(r=[]),I(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))}(e,J)).indexOf("\n")&&(e=`${i("\n"+e,u)}\n`)):e="Function",i(`\n${t}={${e}}`,u)):`\n${u}${t}="${o(e)}"`},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function q(t,e,n,r){return S(t,e,n=f(f({},V),n||{}))}export default q;export{q as render};
//# sourceMappingURL=jsx.modern.js.map

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

if("function"!=typeof Symbol){var t=0;Symbol=function(n){return"@@"+n+ ++t},Symbol.for=function(t){return"@@"+t}}var n,e,r,o=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,i=/[&<>"]/g,u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},l=function(t){return u[t]||t},c=(n=function(t){return"string"!=typeof t&&(t=String(t)),t.replace(i,l)},e=new Map,function(t){var r=e.get(t);return r||(r=n(t),e.set(t,r)),r}),a=function(t,n){return String(t).replace(/(\n+)/g,"$1"+(n||"\t"))},f=function(t,n,e){return String(t).length>(n||40)||!e&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},s={};function p(t){var n="";for(var e in t){var r=t[e];null!=r&&(n&&(n+=" "),n+="-"==e[0]?e:s[e]||(s[e]=e.replace(/([A-Z])/g,"-$1").toLowerCase()),n+=": ",n+=r,"number"==typeof r&&!1===o.test(e)&&(n+="px"),n+=";")}return n||void 0}function _(t,n){for(var e in n)t[e]=n[e];return t}function y(t,n){return Array.isArray(n)?n.reduce(y,t):null!=n&&!1!==n&&t.push(n),t}function d(t,n,e,o,i){var u={type:t,props:n,key:e,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++r.__v:i};return null!=r.vnode&&r.vnode(u),u}function g(t){return t.children}r={__e:function(t,n){for(var e,r,o,i=n.__h;n=n.__;)if((e=n.__c)&&!e.__)try{if((r=e.constructor)&&null!=r.getDerivedStateFromError&&(e.setState(r.getDerivedStateFromError(t)),o=e.__d),null!=e.componentDidCatch&&(e.componentDidCatch(t),o=e.__d),o)return n.__h=i,e.__E=e}catch(n){t=n}throw t},__v:0},"function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout;var m={shallow:!0},b=[],h=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,v=/[\s\n\\/='"\0<>]/,S=function(){};j.render=j;var x=[];function j(t,n,e){var o=A(t,n,e);return r.__c&&r.__c(t,x),o}function A(t,n,e,o,i,u){if(null==t||"boolean"==typeof t)return"";Array.isArray(t)&&(t=function(t,n,e){var r,o,i,u=arguments,l={};for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:l[i]=n[i];if(arguments.length>3)for(e=[e],i=3;i<arguments.length;i++)e.push(u[i]);if(null!=e&&(l.children=e),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===l[i]&&(l[i]=t.defaultProps[i]);return d(t,l,r,o,null)}(g,null,t));var l=t.type,s=t.props,m=!1;n=n||{};var x,j=(e=e||{}).pretty,O=j&&"string"==typeof j?j:"\t";if("object"!=typeof t&&!l)return c(t);if("function"==typeof l){if(m=!0,!e.shallow||!o&&!1!==e.renderRootComponent){if(l===g){var k="",w=[];y(w,t.props.children);for(var F=0;F<w.length;F++)k+=(F>0&&j?"\n":"")+A(w[F],n,e,!1!==e.shallowHighOrder,i,u);return k}var E,C=t.__c={__v:t,context:n,props:t.props,setState:S,forceUpdate:S,__h:[]};if(r.__b&&r.__b(t),r.__r&&r.__r(t),l.prototype&&"function"==typeof l.prototype.render){var D=l.contextType,M=D&&n[D.__c],P=null!=D?M?M.props.value:D.__:n;(C=t.__c=new l(s,P)).__v=t,C._dirty=C.__d=!0,C.props=s,null==C.state&&(C.state={}),null==C._nextState&&null==C.__s&&(C._nextState=C.__s=C.state),C.context=P,l.getDerivedStateFromProps?C.state=_(_({},C.state),l.getDerivedStateFromProps(C.props,C.state)):C.componentWillMount&&(C.componentWillMount(),C.state=C._nextState!==C.state?C._nextState:C.__s!==C.state?C.__s:C.state),E=C.render(C.props,C.state,C.context)}else{var N=l.contextType,H=N&&n[N.__c];E=l.call(t.__c,s,null!=N?H?H.props.value:N.__:n)}return C.getChildContext&&(n=_(_({},n),C.getChildContext())),r.diffed&&r.diffed(t),A(E,n,e,!1!==e.shallowHighOrder,i,u)}l=(x=l).displayName||x!==Function&&x.name||function(t){var n=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!n){for(var e=-1,r=b.length;r--;)if(b[r]===t){e=r;break}e<0&&(e=b.push(t)-1),n="UnnamedComponent"+e}return n}(x)}var I,$,T="";if(s){var U=Object.keys(s);e&&!0===e.sortAttributes&&U.sort();for(var W=0;W<U.length;W++){var L=U[W],R=s[L];if("children"!==L){if(!L.match(/[\s\n\\/='"\0<>]/)&&(e&&e.allAttributes||"key"!==L&&"ref"!==L&&"__self"!==L&&"__source"!==L&&"defaultValue"!==L)){if("className"===L){if(s.class)continue;L="class"}else i&&L.match(/^xlink:?./)&&(L=L.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===L){if(s.for)continue;L="for"}"style"===L&&R&&"object"==typeof R&&(R=p(R)),"a"===L[0]&&"r"===L[1]&&"boolean"==typeof R&&(R=String(R));var J=e.attributeHook&&e.attributeHook(L,R,n,e,m);if(J||""===J)T+=J;else if("dangerouslySetInnerHTML"===L)$=R&&R.__html;else if("textarea"===l&&"value"===L)I=R;else if((R||0===R||""===R)&&"function"!=typeof R){if(!(!0!==R&&""!==R||(R=L,e&&e.xml))){T+=" "+L;continue}if("value"===L){if("select"===l){u=R;continue}"option"===l&&u==R&&(T+=" selected")}T+=" "+L+'="'+c(R)+'"'}}}else I=R}}if(j){var V=T.replace(/^\n\s*/," ");V===T||~V.indexOf("\n")?j&&~T.indexOf("\n")&&(T+="\n"):T=V}if(T="<"+l+T+">",v.test(String(l)))throw new Error(l+" is not a valid HTML tag name in "+T);var q,z=h.test(String(l))||e.voidElements&&e.voidElements.test(String(l)),B=[];if($)j&&f($)&&($="\n"+O+a($,O)),T+=$;else if(null!=I&&y(q=[],I).length){for(var G=j&&~T.indexOf("\n"),Z=!1,K=0;K<q.length;K++){var Q=q[K];if(null!=Q&&!1!==Q){var X=A(Q,n,e,!0,"svg"===l||"foreignObject"!==l&&i,u);if(j&&!G&&f(X)&&(G=!0),X)if(j){var Y=X.length>0&&"<"!=X[0];Z&&Y?B[B.length-1]+=X:B.push(X),Z=Y}else B.push(X)}}if(j&&G)for(var tt=B.length;tt--;)B[tt]="\n"+O+a(B[tt],O)}if(B.length||$)T+=B.join("");else if(e&&e.xml)return T.substring(0,T.length-1)+" />";return!z||q||$?(j&&~T.indexOf("\n")&&(T+="\n"),T+="</"+l+">"):T=T.replace(/>$/," />"),T}j.shallowRender=function(t,n){return j(t,n,m)};const O=/(\\|\"|\')/g,k=Object.prototype.toString,w=Date.prototype.toISOString,F=Error.prototype.toString,E=RegExp.prototype.toString,C=Symbol.prototype.toString,D=/^Symbol\((.*)\)(.*)$/,M=/\n/gi,P=Object.getOwnPropertySymbols||(t=>[]);function N(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 H(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function I(t){return C.call(t).replace(D,"Symbol($1)")}function $(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";const n=typeof t;if("number"===n)return function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===n)return'"'+function(t){return t.replace(O,"\\$1")}(t)+'"';if("function"===n)return H(t);if("symbol"===n)return I(t);const e=k.call(t);return"[object WeakMap]"===e?"WeakMap {}":"[object WeakSet]"===e?"WeakSet {}":"[object Function]"===e||"[object GeneratorFunction]"===e?H(t,min):"[object Symbol]"===e?I(t):"[object Date]"===e?w.call(t):"[object Error]"===e?$(t):"[object RegExp]"===e?E.call(t):"[object Arguments]"===e&&0===t.length?"Arguments []":N(e)&&0===t.length?t.constructor.name+" []":t instanceof Error&&$(t)}function U(t,n,e,r,o,i,u,l,c,a){let f="";if(t.length){f+=o;const s=e+n;for(let e=0;e<t.length;e++)f+=s+R(t[e],n,s,r,o,i,u,l,c,a),e<t.length-1&&(f+=","+r);f+=o+e}return"["+f+"]"}function W(t,n,e,r,o,i,u,l,c,a){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);const f=++l>u;if(!f&&t.toJSON&&"function"==typeof t.toJSON)return R(t.toJSON(),n,e,r,o,i,u,l,c,a);const s=k.call(t);return"[object Arguments]"===s?f?"[Arguments]":function(t,n,e,r,o,i,u,l,c,a){return(a?"":"Arguments ")+U(t,n,e,r,o,i,u,l,c,a)}(t,n,e,r,o,i,u,l,c,a):N(s)?f?"[Array]":function(t,n,e,r,o,i,u,l,c,a){return(a?"":t.constructor.name+" ")+U(t,n,e,r,o,i,u,l,c,a)}(t,n,e,r,o,i,u,l,c,a):"[object Map]"===s?f?"[Map]":function(t,n,e,r,o,i,u,l,c,a){let f="Map {";const s=t.entries();let p=s.next();if(!p.done){f+=o;const t=e+n;for(;!p.done;)f+=t+R(p.value[0],n,t,r,o,i,u,l,c,a)+" => "+R(p.value[1],n,t,r,o,i,u,l,c,a),p=s.next(),p.done||(f+=","+r);f+=o+e}return f+"}"}(t,n,e,r,o,i,u,l,c,a):"[object Set]"===s?f?"[Set]":function(t,n,e,r,o,i,u,l,c,a){let f="Set {";const s=t.entries();let p=s.next();if(!p.done){f+=o;const t=e+n;for(;!p.done;)f+=t+R(p.value[1],n,t,r,o,i,u,l,c,a),p=s.next(),p.done||(f+=","+r);f+=o+e}return f+"}"}(t,n,e,r,o,i,u,l,c,a):"object"==typeof t?f?"[Object]":function(t,n,e,r,o,i,u,l,c,a){let f=(a?"":t.constructor?t.constructor.name+" ":"Object ")+"{",s=Object.keys(t).sort();const p=P(t);if(p.length&&(s=s.filter(t=>!("symbol"==typeof t||"[object Symbol]"===k.call(t))).concat(p)),s.length){f+=o;const p=e+n;for(let e=0;e<s.length;e++){const _=s[e];f+=p+R(_,n,p,r,o,i,u,l,c,a)+": "+R(t[_],n,p,r,o,i,u,l,c,a),e<s.length-1&&(f+=","+r)}f+=o+e}return f+"}"}(t,n,e,r,o,i,u,l,c,a):void 0}function L(t,n,e,r,o,i,u,l,c,a){let f,s=!1;for(let n=0;n<c.length;n++)if(f=c[n],f.test(t)){s=!0;break}return!!s&&f.print(t,function(t){return R(t,n,e,r,o,i,u,l,c,a)},function(t){const r=e+n;return r+t.replace(M,"\n"+r)},{edgeSpacing:o,spacing:r})}function R(t,n,e,r,o,i,u,l,c,a){return T(t)||L(t,n,e,r,o,i,u,l,c,a)||W(t,n,e,r,o,i,u,l,c,a)}const J={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function V(t){return new Array(t+1).join(" ")}var q={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,n,e){return j(t,q.context,q.opts)}},z={plugins:[q]},B={attributeHook:function(t,n,e,r,o){var i=typeof n;if("dangerouslySetInnerHTML"===t)return!1;if(null==n||"function"===i&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===n||("class"===t||"style"===t)&&""===n))return"";var u="string"==typeof r.pretty?r.pretty:"\t";return"string"!==i?("function"!==i||r.functionNames?(q.context=e,q.opts=r,~(n=function(t,n){let e,r;n?(function(t){if(Object.keys(t).forEach(t=>{if(!J.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")}(n),n=function(t){const n={};return Object.keys(J).forEach(e=>n[e]=t.hasOwnProperty(e)?t[e]:J[e]),n.min&&(n.indent=0),n}(n)):n=J;const o=n.min?" ":"\n",i=n.min?"":"\n";if(n&&n.plugins.length){e=V(n.indent),r=[];var u=L(t,e,"",o,i,r,n.maxDepth,0,n.plugins,n.min);if(u)return u}return T(t)||(e||(e=V(n.indent)),r||(r=[]),W(t,e,"",o,i,r,n.maxDepth,0,n.plugins,n.min))}(n,z)).indexOf("\n")&&(n=a("\n"+n,u)+"\n")):n="Function",a("\n"+t+"={"+n+"}",u)):"\n"+u+t+'="'+c(n)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function G(t,n,e,r){return j(t,n,e=_(_({},B),e||{}))}export default G;export{G as render};
if("function"!=typeof Symbol){var t=0;Symbol=function(n){return"@@"+n+ ++t},Symbol.for=function(t){return"@@"+t}}var n=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,e=/[&<>"]/g,r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},o=function(t){return r[t]||t};function i(t){return"string"!=typeof t&&(t=String(t)),t.replace(e,o)}var u,l=function(t,n){return String(t).replace(/(\n+)/g,"$1"+(n||"\t"))},c=function(t,n,e){return String(t).length>(n||40)||!e&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},a={};function f(t){var e="";for(var r in t){var o=t[r];null!=o&&""!==o&&(e&&(e+=" "),e+="-"==r[0]?r:a[r]||(a[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),e+=": ",e+=o,"number"==typeof o&&!1===n.test(r)&&(e+="px"),e+=";")}return e||void 0}function s(t,n){for(var e in n)t[e]=n[e];return t}function p(t,n){return Array.isArray(n)?n.reduce(p,t):null!=n&&!1!==n&&t.push(n),t}function _(t,n,e,r,o){var i={type:t,props:n,key:e,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++u.__v:o};return null!=u.vnode&&u.vnode(i),i}function y(t){return t.children}u={__e:function(t,n){for(var e,r,o,i=n.__h;n=n.__;)if((e=n.__c)&&!e.__)try{if((r=e.constructor)&&null!=r.getDerivedStateFromError&&(e.setState(r.getDerivedStateFromError(t)),o=e.__d),null!=e.componentDidCatch&&(e.componentDidCatch(t),o=e.__d),o)return n.__h=i,e.__E=e}catch(n){t=n}throw t},__v:0},"function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout;var d={shallow:!0},g=[],m=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,b=/[\s\n\\/='"\0<>]/,h=function(){};S.render=S;var v=[];function S(t,n,e){var r=x(t,n,e);return u.__c&&u.__c(t,v),r}function x(t,n,e,r,o,a){if(null==t||"boolean"==typeof t)return"";Array.isArray(t)&&(t=function(t,n,e){var r,o,i,u=arguments,l={};for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:l[i]=n[i];if(arguments.length>3)for(e=[e],i=3;i<arguments.length;i++)e.push(u[i]);if(null!=e&&(l.children=e),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===l[i]&&(l[i]=t.defaultProps[i]);return _(t,l,r,o,null)}(y,null,t));var d=t.type,v=t.props,S=!1;n=n||{};var j,A=(e=e||{}).pretty,O=A&&"string"==typeof A?A:"\t";if("object"!=typeof t&&!d)return i(t);if("function"==typeof d){if(S=!0,!e.shallow||!r&&!1!==e.renderRootComponent){if(d===y){var k="",w=[];p(w,t.props.children);for(var F=0;F<w.length;F++)k+=(F>0&&A?"\n":"")+x(w[F],n,e,!1!==e.shallowHighOrder,o,a);return k}var E,C=t.__c={__v:t,context:n,props:t.props,setState:h,forceUpdate:h,__h:[]};if(u.__b&&u.__b(t),u.__r&&u.__r(t),d.prototype&&"function"==typeof d.prototype.render){var D=d.contextType,P=D&&n[D.__c],M=null!=D?P?P.props.value:D.__:n;(C=t.__c=new d(v,M)).__v=t,C._dirty=C.__d=!0,C.props=v,null==C.state&&(C.state={}),null==C._nextState&&null==C.__s&&(C._nextState=C.__s=C.state),C.context=M,d.getDerivedStateFromProps?C.state=s(s({},C.state),d.getDerivedStateFromProps(C.props,C.state)):C.componentWillMount&&(C.componentWillMount(),C.state=C._nextState!==C.state?C._nextState:C.__s!==C.state?C.__s:C.state),E=C.render(C.props,C.state,C.context)}else{var N=d.contextType,H=N&&n[N.__c];E=d.call(t.__c,v,null!=N?H?H.props.value:N.__:n)}return C.getChildContext&&(n=s(s({},n),C.getChildContext())),u.diffed&&u.diffed(t),x(E,n,e,!1!==e.shallowHighOrder,o,a)}d=(j=d).displayName||j!==Function&&j.name||function(t){var n=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!n){for(var e=-1,r=g.length;r--;)if(g[r]===t){e=r;break}e<0&&(e=g.push(t)-1),n="UnnamedComponent"+e}return n}(j)}var I,$,T="";if(v){var U=Object.keys(v);e&&!0===e.sortAttributes&&U.sort();for(var W=0;W<U.length;W++){var L=U[W],R=v[L];if("children"!==L){if(!L.match(/[\s\n\\/='"\0<>]/)&&(e&&e.allAttributes||"key"!==L&&"ref"!==L&&"__self"!==L&&"__source"!==L&&"defaultValue"!==L)){if("className"===L){if(v.class)continue;L="class"}else o&&L.match(/^xlink:?./)&&(L=L.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===L){if(v.for)continue;L="for"}"style"===L&&R&&"object"==typeof R&&(R=f(R)),"a"===L[0]&&"r"===L[1]&&"boolean"==typeof R&&(R=String(R));var J=e.attributeHook&&e.attributeHook(L,R,n,e,S);if(J||""===J)T+=J;else if("dangerouslySetInnerHTML"===L)$=R&&R.__html;else if("textarea"===d&&"value"===L)I=R;else if((R||0===R||""===R)&&"function"!=typeof R){if(!(!0!==R&&""!==R||(R=L,e&&e.xml))){T+=" "+L;continue}if("value"===L){if("select"===d){a=R;continue}"option"===d&&a==R&&(T+=" selected")}T+=" "+L+'="'+i(R)+'"'}}}else I=R}}if(A){var V=T.replace(/^\n\s*/," ");V===T||~V.indexOf("\n")?A&&~T.indexOf("\n")&&(T+="\n"):T=V}if(T="<"+d+T+">",b.test(String(d)))throw new Error(d+" is not a valid HTML tag name in "+T);var q,z=m.test(String(d))||e.voidElements&&e.voidElements.test(String(d)),B=[];if($)A&&c($)&&($="\n"+O+l($,O)),T+=$;else if(null!=I&&p(q=[],I).length){for(var G=A&&~T.indexOf("\n"),Z=!1,K=0;K<q.length;K++){var Q=q[K];if(null!=Q&&!1!==Q){var X=x(Q,n,e,!0,"svg"===d||"foreignObject"!==d&&o,a);if(A&&!G&&c(X)&&(G=!0),X)if(A){var Y=X.length>0&&"<"!=X[0];Z&&Y?B[B.length-1]+=X:B.push(X),Z=Y}else B.push(X)}}if(A&&G)for(var tt=B.length;tt--;)B[tt]="\n"+O+l(B[tt],O)}if(B.length||$)T+=B.join("");else if(e&&e.xml)return T.substring(0,T.length-1)+" />";return!z||q||$?(A&&~T.indexOf("\n")&&(T+="\n"),T+="</"+d+">"):T=T.replace(/>$/," />"),T}S.shallowRender=function(t,n){return S(t,n,d)};const j=/(\\|\"|\')/g,A=Object.prototype.toString,O=Date.prototype.toISOString,k=Error.prototype.toString,w=RegExp.prototype.toString,F=Symbol.prototype.toString,E=/^Symbol\((.*)\)(.*)$/,C=/\n/gi,D=Object.getOwnPropertySymbols||(t=>[]);function P(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.name?"[Function anonymous]":"[Function "+t.name+"]"}function N(t){return F.call(t).replace(E,"Symbol($1)")}function H(t){return"["+k.call(t)+"]"}function I(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";const n=typeof t;if("number"===n)return function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===n)return'"'+function(t){return t.replace(j,"\\$1")}(t)+'"';if("function"===n)return M(t);if("symbol"===n)return N(t);const e=A.call(t);return"[object WeakMap]"===e?"WeakMap {}":"[object WeakSet]"===e?"WeakSet {}":"[object Function]"===e||"[object GeneratorFunction]"===e?M(t,min):"[object Symbol]"===e?N(t):"[object Date]"===e?O.call(t):"[object Error]"===e?H(t):"[object RegExp]"===e?w.call(t):"[object Arguments]"===e&&0===t.length?"Arguments []":P(e)&&0===t.length?t.constructor.name+" []":t instanceof Error&&H(t)}function $(t,n,e,r,o,i,u,l,c,a){let f="";if(t.length){f+=o;const s=e+n;for(let e=0;e<t.length;e++)f+=s+W(t[e],n,s,r,o,i,u,l,c,a),e<t.length-1&&(f+=","+r);f+=o+e}return"["+f+"]"}function T(t,n,e,r,o,i,u,l,c,a){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);const f=++l>u;if(!f&&t.toJSON&&"function"==typeof t.toJSON)return W(t.toJSON(),n,e,r,o,i,u,l,c,a);const s=A.call(t);return"[object Arguments]"===s?f?"[Arguments]":function(t,n,e,r,o,i,u,l,c,a){return(a?"":"Arguments ")+$(t,n,e,r,o,i,u,l,c,a)}(t,n,e,r,o,i,u,l,c,a):P(s)?f?"[Array]":function(t,n,e,r,o,i,u,l,c,a){return(a?"":t.constructor.name+" ")+$(t,n,e,r,o,i,u,l,c,a)}(t,n,e,r,o,i,u,l,c,a):"[object Map]"===s?f?"[Map]":function(t,n,e,r,o,i,u,l,c,a){let f="Map {";const s=t.entries();let p=s.next();if(!p.done){f+=o;const t=e+n;for(;!p.done;)f+=t+W(p.value[0],n,t,r,o,i,u,l,c,a)+" => "+W(p.value[1],n,t,r,o,i,u,l,c,a),p=s.next(),p.done||(f+=","+r);f+=o+e}return f+"}"}(t,n,e,r,o,i,u,l,c,a):"[object Set]"===s?f?"[Set]":function(t,n,e,r,o,i,u,l,c,a){let f="Set {";const s=t.entries();let p=s.next();if(!p.done){f+=o;const t=e+n;for(;!p.done;)f+=t+W(p.value[1],n,t,r,o,i,u,l,c,a),p=s.next(),p.done||(f+=","+r);f+=o+e}return f+"}"}(t,n,e,r,o,i,u,l,c,a):"object"==typeof t?f?"[Object]":function(t,n,e,r,o,i,u,l,c,a){let f=(a?"":t.constructor?t.constructor.name+" ":"Object ")+"{",s=Object.keys(t).sort();const p=D(t);if(p.length&&(s=s.filter(t=>!("symbol"==typeof t||"[object Symbol]"===A.call(t))).concat(p)),s.length){f+=o;const p=e+n;for(let e=0;e<s.length;e++){const _=s[e];f+=p+W(_,n,p,r,o,i,u,l,c,a)+": "+W(t[_],n,p,r,o,i,u,l,c,a),e<s.length-1&&(f+=","+r)}f+=o+e}return f+"}"}(t,n,e,r,o,i,u,l,c,a):void 0}function U(t,n,e,r,o,i,u,l,c,a){let f,s=!1;for(let n=0;n<c.length;n++)if(f=c[n],f.test(t)){s=!0;break}return!!s&&f.print(t,function(t){return W(t,n,e,r,o,i,u,l,c,a)},function(t){const r=e+n;return r+t.replace(C,"\n"+r)},{edgeSpacing:o,spacing:r})}function W(t,n,e,r,o,i,u,l,c,a){return I(t)||U(t,n,e,r,o,i,u,l,c,a)||T(t,n,e,r,o,i,u,l,c,a)}const L={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function R(t){return new Array(t+1).join(" ")}var J={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,n,e){return S(t,J.context,J.opts)}},V={plugins:[J]},q={attributeHook:function(t,n,e,r,o){var u=typeof n;if("dangerouslySetInnerHTML"===t)return!1;if(null==n||"function"===u&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===n||("class"===t||"style"===t)&&""===n))return"";var c="string"==typeof r.pretty?r.pretty:"\t";return"string"!==u?("function"!==u||r.functionNames?(J.context=e,J.opts=r,~(n=function(t,n){let e,r;n?(function(t){if(Object.keys(t).forEach(t=>{if(!L.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")}(n),n=function(t){const n={};return Object.keys(L).forEach(e=>n[e]=t.hasOwnProperty(e)?t[e]:L[e]),n.min&&(n.indent=0),n}(n)):n=L;const o=n.min?" ":"\n",i=n.min?"":"\n";if(n&&n.plugins.length){e=R(n.indent),r=[];var u=U(t,e,"",o,i,r,n.maxDepth,0,n.plugins,n.min);if(u)return u}return I(t)||(e||(e=R(n.indent)),r||(r=[]),T(t,e,"",o,i,r,n.maxDepth,0,n.plugins,n.min))}(n,V)).indexOf("\n")&&(n=l("\n"+n,c)+"\n")):n="Function",l("\n"+t+"={"+n+"}",c)):"\n"+c+t+'="'+i(n)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function z(t,n,e,r){return S(t,n,e=s(s({},q),e||{}))}export default z;export{z as render};
//# sourceMappingURL=jsx.module.js.map
{
"name": "preact-render-to-string",
"amdName": "preactRenderToString",
"version": "5.1.15",
"version": "5.1.16",
"description": "Render JSX to an HTML string, with support for Preact components.",

@@ -6,0 +6,0 @@ "main": "dist/index.js",

@@ -1,18 +0,1 @@

/**
* @template T
* @param {T} fn
* @returns {T}
*/
function memoize(fn) {
const cache = new Map();
return (arg) => {
let res = cache.get(arg);
if (!res) {
res = fn(arg);
cache.set(arg, res);
}
return res;
};
}
// DOM properties that should NOT have "px" added when numeric

@@ -29,11 +12,6 @@ export const IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i;

const replaceTag = (tag) => tagsToReplace[tag] || tag;
/**
* @param {any} s
* @returns {string}
*/
export const encodeEntities = memoize((s) => {
export function encodeEntities(s) {
if (typeof s !== 'string') s = String(s);
return s.replace(HTML_ENTITY_REG, replaceTag);
});
}

@@ -55,3 +33,3 @@ export let indent = (s, char) =>

let val = s[prop];
if (val != null) {
if (val != null && val !== '') {
if (str) str += ' ';

@@ -58,0 +36,0 @@ // str += jsToCss(prop);

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc