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.18 to 5.1.19

2

dist/jsx-entry.js

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

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

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

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

@@ -30,3 +30,3 @@ "main": "dist/index.js",

"transpile": "microbundle src/index.js -f es,umd --target web --external preact",
"transpile:jsx": "microbundle src/jsx.js -o dist/jsx.js --target web --external none && microbundle dist/jsx.js -o dist/jsx.js -f cjs",
"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",

@@ -33,0 +33,0 @@ "test": "eslint src test && tsc && npm run test:mocha && npm run bench",

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