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