text: /* eslint-disable */
  /**
   * @license
   * Copyright 2020-2022 rease.js Authors
   * SPDX-License-Identifier: MIT
   */
  var rease=function(n){"use strict";function e(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}var t={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},r="undefined"!=typeof window,o={},i=function(n){return n&&n._&&n._.ir===o},u=Array.isArray,f=function(n){return"function"==typeof n},a=function(n){return null!=n&&f(n.then)},s=function(n){return null!=n&&f(n.subscribe)},c=/^(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/,l=function(n){return c.test(n)},h=Object,v=h.defineProperty,d=h.getPrototypeOf,p=h.getOwnPropertyDescriptor,g=function(){},_=function(n){return n},b=function(n,e,t){n.then((function(n){E(n,e,t)}))},E=function n(e,t,r){a(e)?e.then((function(e){n(e,t,r)})):t(e,r)},m=function(n,e,t){if(n.length)for(var r=[],o=[n.length],i=o[0];i-- >0;)E(n[i],T,[r,i,o,e,t]);else e([],t)},T=function(n,e){e[0][e[1]]=n,--e[2][0]||e[3](e[0],e[4])},y=function(n,e,t){var r=function(){e=g},o=[],i=n.subscribe((function(n){if(o.push(n),1===o.length){for(var i=0;i<o.length;i++)e(o[i],t,r);o.length=0}}));return r=function(){i&&(e=g,i.unsubscribe?i.unsubscribe():i(),i=null)},e===g&&r(),r},N=function(n,e,t){var r=g,o=g,i=function(){e=g,r(),o()};return o=y(n,(function(n,u,f){o=f,r(),r=R(n,(function(n,o,u){r=u,e(n,t,i)}))})),i},R=function n(e,t,r){if(a(e))e=L(e);else if(!s(e))return t(e,r,g),g;var o=g,i=g,u=function(){t=g,o(),i()};return i=y(e,(function(e,f,a){i=a,o(),o=n(e,(function(n,e,i){o=i,t(n,r,u)}))})),u},L=function(n){return{subscribe:function(e,t){var r=function(){e=g};return b(n,(function(n){e(n,t,r)})),r}}},O=function(n,e){return{subscribe:function(t,r){var o=g,i=g,u=function(){t=g,o(),i()};return i=y(k(n),(function(n,f,a){i=a,o(),o=R(e(n),(function(n,e,i){o=i,t(n,r,u)}))})),u}}},k=function(n){return{subscribe:function(e,t){n=n.slice();for(var r=[],o={},i=[0],u=function(){for(var n in o)o[n]()},f=n.length,a=0;a<f;a++)o[a]=R(n[a],w,[a,f,r,o,i,[!1],e,t,u]);return u}}},w=function(n,e,t){var r=e[0],o=e[1],i=e[2],u=e[3],f=e[4],a=e[5],s=e[6],c=e[7],l=e[8];i[r]=n,u[r]=t,(f[0]===o||a[0]!==(a[0]=!0)&&++f[0]===o)&&s(i.slice(0),c,l)},A=/^style--/,M=/^class--/,C=function(n,e,t){t?n.classList.add(e):n.classList.remove(e)},S=function(n,e,t,r){if(t?n.setAttribute(e,t):n.removeAttribute(e),r._.ac)for(var o in r._.ac)C(n,o,r._.ac[o]);!function(n){n.home._is.css&&!n.home._is.css[2]&&n.node&&n.node.classList.add(n.home._is.css[0])}(r)},U=function(n,e,t,r){if(t?n.setAttribute(e,t):n.removeAttribute(e),r._.as)for(var o in r._.as)n.style[o]=r._.as[o]},I=function(n,e,t,r){C(n,e=e.slice(7),r._.ac[e]=t)},P=function(n,e,t,r){n.style[e=e.slice(7)]=r._.as[e]=t},$=function(n,e,t){"_"===e[0]||G(n.localName,e,n).set?n[e]=t:null==t||""===t?n.removeAttribute(e):n.getAttribute(e)!==t&&n.setAttribute(e,t)},F=function(n,e){return"class"===n?S:"style"===n?U:M.test(n)?(e.ac||(e.ac={}),I):A.test(n)?(e.as||(e.as={}),P):$},H={},G=function(n,e,t){return(H[n]||(H[n]={}))[e]||(H[n][e]=p(d(t),e)||{})},W=function(){if(!r)return g;var n=function(n){n.preventDefault()},e=function(n){n.stopPropagation()},t=function(n){return function(e){e.target===this&&n.call(this,e)}},o=function(n){return function(e){e.isTrusted&&n.call(this,e)}},i=function(n,e,t){return function(r){(function(n,e){var t=e;for(var r in a){if(!(a[r][0]in n)&&!(a[r][1]in n))break;t--}return!t})(e,t)&&n.call(this,r)}},f=[],a={},s=function(){s=g,document.addEventListener("keyup",(function(n){delete a[n.code+n.key]})),document.addEventListener("keydown",(function(n){a[n.code+n.key]=[n.code,n.key];for(var e=0;e<f.length;e++)f[e][0].length?f[e][1].call(document.body,n):f.splice(e--,1)}))};return function(r,a,c,l){for(var h,v,d=u(c)?[].concat(c):[c],p=function(n,e){return function(t){for(var r=0;r<n.length;r++)n[r].call(this,t,e)}}(d,l),g={},_=0,b=function(){d.length=0,h&&r.removeEventListener(h,p,N)},E=!1,m=!1,T=a.split(/[^a-z\d]+/i),y=T.length;y--;)if(v=T[y])switch(v){case"once":d.push(b);break;case"passive":E=!0;break;case"capture":m=!0;break;case"self":p=t(p);break;case"trusted":p=o(p);break;case"stop":d.unshift(e);break;case"prevent":d.unshift(n);break;default:1===v.length||/[A-Z]/.test(v[0])?v in g||(g[v]=!0,_++):y||(h=v)}var N={passive:E,capture:m};return _&&(s(),p=i(p,g,_)),h?r.addEventListener(h=T[0],p,N):f.push([d,p]),b}}(),x=function(){if(!r)return g;var n,e="__REASE_RESIZE",t=setTimeout,o=clearTimeout,i=function(t){for(var r,o,i,u,f=0;f<t.length;f++)if((o=(r=t[f].target)[e])&&o.l.length){if(i=r.offsetWidth||r.clientWidth,u=r.offsetHeight||r.clientHeight,o.w!==i||o.h!==u){o.w=i,o.h=u;for(var a,s={width:i,height:u,target:r},c=o.l,l=0;l<c.length;l++){a=c[l];for(var h=1;h<a.length;h++)a[h].call(r,s,a[0]);a.length||c.splice(l--,1)}o.l.length||n.unobserve(r)}}else n.unobserve(r)};if("undefined"!=typeof ResizeObserver)n=new ResizeObserver(i);else{var f,a=[],s=function n(){o(f),i(a),a.length&&(f=t(n,25))};n={observe:function(n){a.push({target:n}),t(s)},unobserve:function(n){t((function(n){var t=n[e];if(!t||!t.l.length)for(var r=a.length;r--;)if(a[r].target===n){a.splice(r,1);break}}),1,n)}}}return function(r,o,i){var f=u(o)?[i].concat(o):[i,o],a=r[e]||(r[e]={l:[]});if(a.l.push(f),1===a.l.length)n.observe(r);else{var s=t((function(){for(var n={width:r.offsetWidth||r.clientWidth,height:r.offsetHeight||r.clientHeight,target:r},e=1;e<f.length;e++)f[e].call(r,n,f[0])}));f.push((function(){clearTimeout(s),f.pop()}))}return function(){f.length=0,!a.l[1]&&(!a.l[0]||a.l[0]===f)&&n.unobserve(r)}}}(),j=function(n,e){return!function(n,e){return n==n?n===e:e!=e}(n,e)||null!=(t=e)&&"object"==typeof t||f(e);var t},X=function(n,e,t){n._value=e;var r=n._;r.break=!0;var o=r.items,i=r.queue;if(i.push({f:t,n:e}),1===i.length){for(var u,f=0;f<i.length;f++)if((u=i[f].f)||f>i.length-2){r.break=!1;for(var a=i[f],s=0;s<o.length;s++)if((u||j(o[s].o,a.n))&&o[s].s(n._value=o[s].o=a.n),!u&&r.break){o[s].o=n._value;break}}i.length=0}return n},z=function(){function n(n,e,t){this._={items:[],queue:[],proxy:e||(e=_),onRun:t||g,onEnd:g,break:!1},this._value=e(n,this)}var t,r,o,i=n.prototype;return i.get=function(){return this._value},i.set=function(n){return j(this._value,n=this._.proxy(n,this))?X(this,n,!1):this},i.next=function(n){return X(this,this._.proxy(n,this),!0)},i.clear=function(){for(var n=this._.items,e=n.length;e-- >0;)n[e][1]();return this},i.subscribe=function(n,e){var t=this,r={s:function(t){n(t,e,r.u)},u:function(){if(r.s!==g){for(var n=i.length;n-- >0;)if(i[n].s===r.s){i.splice(n,1);break}r.s=r.u=g,i.length||o.onEnd(t)}},o:{}},o=this._,i=o.items;return i.length||(o.onEnd=o.onRun(this)||g),i.push(r),o.queue.length||r.s(r.o=this._value),r.u},t=n,(r=[{key:"on",get:function(){return this._.items.length>0}},{key:"value",get:function(){return this._value}}])&&e(t.prototype,r),o&&e(t,o),n}(),B=z.prototype;v(B,"$",{get:B.get,set:B.set});for(var q=function(n,e){v(B,n[e],{value:function(){var t=this.get();return t=null!=t&&t[n[e]]?t[n[e]](arguments):t,e?t+"":t}})},D=["valueOf","toString","toJSON"],Z=3;Z-- >0;)q(D,Z);var J,K,Q,V=function(n,e,t){return new z(n,e,t)},Y=O,nn={ROOT:"ROOT",COMPONENT:"COMPONENT",ELEMENT:"ELEMENT",FRAGMENT:"FRAGMENT",SLOT:"SLOT",TEXT:"TEXT",EXPRESSION:"EXPRESSION",COMMENT:"COMMENT",HTML:"HTML",RULE:{TAG:"RULE_TAG",IF:"RULE_IF",ELIF:"RULE_ELIF",ELSE:"RULE_ELSE",WATCH:"RULE_WATCH",AWAIT:"RULE_AWAIT",THEN:"RULE_THEN",FOR:"RULE_FOR"}},en=function(){return Q},tn=function(n){Q=n,J=n.high,K=n.home},rn=function(n){Q=n.parent},on=function(){Q=null};function un(n){var e=i(this)?this:Q;if(!i(e))throw n;e.on?(e._.od||(e._.od=[])).push(n):n(e)}var fn,an=function(n){if(n._.esu)for(var e,t=n._.esu,r=0;r<t.length;r++)if((e=t[r])&&f(e=e.created)&&(e(n),!n.on)){sn(n);break}},sn=function(n){if(n._.esu)for(var e,t=n._.esu;t.length;)(e=t.pop())&&f(e=e.destroy||e)&&e(n)},cn={3:[],8:[]},ln=function(n){if(n._.od)for(;n._.od.length;)n._.od.pop()(n)},hn=function(n){if(n&&n.on){tn(n),n.on=!1,sn(n),ln(n),_n(n),n._.ods&&n._.ods();var e=n.node;if(e&&e.parentNode){e.parentNode.removeChild(e);var t=e.nodeType;(3===t||8===t||((t=e.localName+e.namespaceURI)in cn||(cn[t]=[]),1))&&cn[t].length<25&&cn[t].push(e)}vn(n),n._.$&&(n._.$=1,Rn(n)),on()}},vn=function(n){for(;n.children.length;)hn(n.children.pop())},dn=function(n,e){n._.ods=e,n.on||n._.ods()},pn=function(n){return function(e){if(e.root.node)for(var t,r,o=e;;)if(t=(o=o.parent).node){1===t.nodeType?(n(e,t),t.appendChild(e.node)):(n(e,t=(r=t).parentNode),t.insertBefore(e.node,r));break}}},gn=function(n){var e,t,r=n.attrs;for(var o in n.props)if(t=r[o]={is:null,_is:e=n.props[o],high:n.high,_:{$:0,u:g}},s(e)||a(e)&&(e=L(e),1)){if(Nn(t),t._.u=N(e,(function(n,e,t){var r=e[0],o=e[1],i=e[2],u=e[3];o._.u=t,r.on?o.is!==(o.is=n)&&r.node&&u(r.node,i,n,r):t(),Rn(o)}),[n,t,o,F(o,n._)]),!n.on){t._.u();break}}else t.is=e,n.node&&F(o,n._)(n.node,o,e,n)},_n=function(n){var e=n.attrs;if(e){n.attrs=null;var t=n.node;for(var r in e)t&&(t.hasAttribute(r)?t.removeAttribute(r):r in t&&(t[r]=null)),e[r]._.u(),Rn(e[r])}},bn=(fn=pn((function(n,e){var r=t[n.is]||e.namespaceURI,o=n.is+r,i=o in cn&&cn[o].pop();if(i){i.value&&(i.value=null);for(var u=i.childNodes,f=u.length;f-- >0;)i.removeChild(u[f]);for(var a=i.attributes,s=a.length;s-- >0;)i.removeAttribute(a[s].name)}else i=document.createElementNS(r,n.is);n.node=i,function(n){if(n.use)for(var e=n._.esu||(n._.esu=[]),t=0;t<n.use.length;t++)if(e.push(n.use[t](n)),!n.on){sn(n);break}}(n),gn(n)})),function(n){n.attrs={},fn(n),n.node||gn(n)}),En=pn((function(n){cn[8].length?(n.node=cn[8].pop()).data="":n.node=document.createComment("")})),mn=pn((function(n){cn[3].length?(n.node=cn[3].pop()).data=n.is:n.node=document.createTextNode(n.is)})),Tn=pn((function(n){cn[8].length?(n.node=cn[8].pop()).data=n.is:n.node=document.createComment(n.is)})),yn=function(n,e,t,r,i,u){return Q=Q.children[Q.children.push({type:n,name:u,is:t,_is:e,node:null,props:r,use:i,root:Q.root,home:K,high:J,parent:Q,children:[],slots:null,attrs:null,on:Q.on,pub:{},_:{ir:o,$:0}})-1]},Nn=function(n){n.high._.$++,n._.$++},Rn=function n(e){if(e&&e._.$>0)if(e._.$--,e.type!==nn.COMPONENT&&e.type!==nn.ROOT)n(e.high);else if(0===e._.$){e._.$=NaN;var t=e._.oc;if(t){tn(e);for(var r=[],o=0;o<t.length&&(r.push(t[o](e)),e.on);o++);on(),m(r,(function(e,t){if(t.on){tn(t);for(var r=e.length;r--;)f(e[r])&&un(e[r]);n(t.high),on()}else for(var o=e.length;o--;)f(e[o])&&e[o](t)}),e)}else n(e.high)}},Ln={},On=function n(e,t){for(var r,o=e.children,i=0;i<o.length;i++){if(!(r=o[i]).node||1!==r.node.nodeType)if(r.type===nn.HTML)for(;r._.html.length;)t.appendChild(r._.html[0]);else n(r,t);r.node&&t.appendChild(r.node)}},kn=function(n){return n[1]()},wn=function(n){var e=Q;e.slots=n,Nn(e),dn(e,R(e._is,(function(n,e,r){if(e.on){if(e.is!==(e.is=n)){switch(typeof n){case"function":vn(e),tn(e),Sn(n,e.props,e.use)(e.slots);break;case"string":if("r-slot"===n)vn(e),tn(e),Mn(e._.sn,e.props,e.use)((function(){e.slots.forEach(kn)}));else{var o=e.children[0],i=l(n),u=!o||o.type!==nn.ELEMENT&&o.type!==nn.FRAGMENT||i||n in t,f=!!e.root.node;if("r-fragment"===n){if(u)vn(e),tn(e),$n()(e.slots.forEach(kn));else if(tn(o),sn(o),ln(o),_n(o),o.type=nn.FRAGMENT,o.is=null,f){var a=o.node,s=a.parentNode;s.removeChild(a),En(o);for(var c=o.node,h=a.childNodes,v=h.length;v-- >0;)s.insertBefore(h[v],c),c=h[v]}}else if(u||o&&(o.is in t||l(o.is)))vn(e),tn(e),In(n,e.props,e.use)(i||e.slots.forEach(kn));else{tn(o),sn(o),ln(o),_n(o);var d=o.type;if(o.type=nn.ELEMENT,o.is=n,f){var p=o.node;if(p.parentNode.removeChild(p),bn(o),d!==nn.FRAGMENT)for(var g=p.childNodes;g.length;)o.node.appendChild(g[0]);else On(o,o.node);an(o)}}}break;default:vn(e)}on()}}else r();Rn(e)}),e)),rn(e)},An=function(n){for(var e=Q,t=e.home.slots,r=0;r<t.length&&(t[r][0]!==e._is||(Q=e,J=e.high,K=e.home.home,e.is=!0,t[r][1](),e.on));r++);e.is?(J=e.high,K=e.home):n&&n.call(e),rn(e)},Mn=function(n,e,t){return Q.on?(En(yn(nn.SLOT,n,!1,e,t,n)),An):g},Cn=function(n){var e=Q;e.slots=n,Nn(e),J=K=e,e.is.call(e,e.props),Rn(e),J=e.high,K=e.home,rn(e)},Sn=function(n,e,t){return Q.on?(yn(nn.COMPONENT,n,n,e||{},t,n.name),function(n,e){e&&!(e[0]in n.page.css)&&(n.page.css[e[0]]="",n._.$++,n._.od.push(R(e[1],(function(n,e,t){var r=e[0],o=e[1],i=e[2],u=e[3],f=e[4];if(r.on){if(u[0]!==(u[0]=n)&&(i||(n=n.replace(/(\.[^\s>+,~{}();'"`]+)(?=[^{}();'"`]*{)/g,"$1."+o)),r.page.css[o]=n,r.node)){var a=f[0]||(f[0]=document.getElementById(o)||function(n){var e=document.createElement("style");return e.id=n,document.head.appendChild(e),e}(o));a.textContent=n}}else t();Rn(r)}),[n,e[0],e[2],[""],[null]])))}(Q.root,n.css),Cn):g},Un=function(){an(Q),rn(Q)},In=function(n,e,t){return Q.on?(bn(yn(nn.ELEMENT,n,n,e||{},t)),Un):g},Pn=function(){rn(Q)},$n=function(){return Q.on?(En(yn(nn.FRAGMENT,null,null)),Pn):g},Fn=function(n,e){return e>0?!n:n},Hn=function(n){var e=Q;Nn(e),dn(e,y(k(e.parent._.if),(function(n,e,t){var r=e[0],o=e[1],i=e[2];r.on?r.is!==(r.is=n.every(Fn))&&(r.is?(tn(r),o.call(r,n[i]),on()):(ln(r),vn(r))):t(),Rn(r)}),[e,n,e.parent._.if.length-1])),rn(e)},Gn=function(n){var e=Q;Nn(e),dn(e,R(e._is,(function(n,e,t){var r=e[0],o=e[1];r.on?(ln(r),vn(r),tn(r),o.call(r,r.is=n),on()):t(),Rn(r)}),[e,n])),rn(e)},Wn=function(n){var e=Q,t=[!0];dn(e,R(e._is,(function(n,e,t){var r=e[0];e[1][0]=!1,r.is=r.parent._.await=n,t(),ln(r),vn(r)}),[e,t])),t[0]&&n&&e.on&&(tn(e),n.call(e,e.is),on()),rn(e)},xn=function(n){var e=Q;Nn(e),dn(e,R(e._is,(function(n,e,t){var r=e[0],o=e[1];t(),r.on&&(tn(r),o.call(r,r.is=n),on()),Rn(r)}),[e,n])),rn(e)},jn=function(n){return n>0?1:n<0?-1:0},Xn=function(n,e,t,r,o){var i;return tn(n),$n()(((i=Q)._.for=[t,e],o.call(n,e,t,r))),on(),i},zn=function(n){var e=Q;Nn(e),dn(e,R(e._is,(function(n,e,t){var r=e[0],o=e[1],i=e[2],f=e[3];if(r.on){var a=r.children,s=typeof n;if(r.is!==(r.is=n)||"object"===s){var c;if(n)switch(s){case"number":if(c=jn(n|=0))if(f[0]!==(f[0]=s)||jn(i[0])!==c){vn(r);for(var l=0,h=0;l!==n&&(Xn(r,l+c,h++,n,o),r.on);l+=c);}else if(c===jn(n-i[0]))for(var v=i[0],d=v*c;v!==n&&(Xn(r,v+c,d++,n,o),r.on);v+=c);else for(var p=n*c;a.length>p;)hn(a.pop());else vn(r);break;case"string":if(f[0]!==(f[0]=s)){vn(r);for(var g=0;g<n.length&&(Xn(r,n[g],g,n,o),r.on);g++);}else{for(var _=!1;a.length>n.length;)hn(a.pop());for(var b=0;b<n.length;b++)if(n[b]!==i[0][b]){if(!_)for(_=!0;a.length>b;)hn(a.pop());if(Xn(r,n[b],b,n,o),!r.on)break}}break;case"object":if(u(n)){var E=new Map;if(f[0]!==(f[0]="a"))for(var m,T=0;T<n.length&&(E.set(n[T],(m=E.get(n[T]))?m+1:1),Xn(r,n[T],T,n,o),r.on);T++);else{for(var y,N=0;N<n.length;N++)if(E.set(n[N],(y=E.get(n[N]))?y+1:1),y=i[0].get(n[N]))i[0].set(n[N],y-1);else if(Xn(r,n[N],N,n,o),!r.on)break;for(var R,L,O=a.length;O--;)(L=i[0].get(R=a[O]._.for[1]))&&(i[0].set(R,L-1),hn(a.splice(O,1)[0]))}n=E}else if(f[0]!==(f[0]=s)){for(var k in vn(r),n)if(Xn(r,n[k],k,n,o),!r.on)break}else{for(var w,A={},M=a.length;M--;)n[(w=a[M]._.for)[0]]===w[1]?A[w[0]]=!0:hn(a.splice(M,1)[0]);for(var C in n)if(!0!==A[C]&&(Xn(r,n[C],C,n,o),!r.on))break}break;default:throw n}else f[0]="",vn(r);i[0]=n}}else t();Rn(r)}),[e,n,[null],[""]])),rn(e)},Bn=function(n,e){var t=e[0],r=e[1],o=e[2],i=e[3],u=Q,f=J,a=K;J=K=Q=t,t._.$++,Sn(r,o,i)((un((function(n){n.root.node=null,hn(n.root)})),[])),Rn(t),Q=u,J=f,K=a};return n.ReaseStore=z,n._$=Y,n._c=Sn,n._css=function(n,e,t){return[e,n,t]},n._e=In,n._f=$n,n._fc=function(n){n.call(Q)},n._h=function(n){if(Q.on){var e=yn(nn.HTML,n,[]);En(e),Nn(e),dn(e,R(n,(function(n,e,t){var r=e[0],o=e[1];if(r.on){if(n=void 0===n?"":""+n,r.is!==(r.is=n)&&r.node){for(var i;o.length;)(i=o.pop()).parentNode.removeChild(i);if(n){var u=r.node.parentNode,f=u.namespaceURI;(Ln[f]||(Ln[f]=document.createElementNS(f,"div"))).innerHTML=n;for(var a=Ln[f].childNodes,s=0;s<a.length;s++)o.push(i=a[s]),u.insertBefore(i,r.node)}}}else t();Rn(r)}),[e,e._.html=[]])),rn(e)}},n._n=function(n){if(Q.on&&void 0!==n&&""!==n){var e=yn(nn.COMMENT,n,"");Tn(e),Nn(e),dn(e,R(n,(function(n,e,t){e.on?(n=void 0===n?"":""+n,e.is!==(e.is=n)&&e.node&&(e.node.data=n)):t(),Rn(e)}),e)),rn(e)}},n._r=function(n,e,t,r){var o=g;if(Q.on){var i=yn(nn.ELEMENT,r,n,e||{},t);Nn(i),dn(i,R(r,(function(n,e,t){var r=e[0],o=e[1];if(r.on)if(r.is!==(n||(n=o))&&r.node){tn(r),sn(r),ln(r),_n(r),r.is=n;var i=r.node;i.parentNode.removeChild(i),bn(r);for(var u=i.childNodes;u.length;)r.node.appendChild(u[0]);an(r),on()}else r.is=n;else t();Rn(r)}),[i,n])),i.on&&(tn(i),bn(i),o=Un)}return o},n._ra=function(n){return Q.on?(En(yn(nn.RULE.AWAIT,Q._.await=n,void 0)),Wn):g},n._rc=function(n,e,t,r){return Q.on?(En(yn(nn.RULE.TAG,n,null,e||{},t)),Q._.sn=r,wn):g},n._re=function(){return Q.on?(En(yn(nn.RULE.ELSE,null,!1)),Q.parent._.if=[!0].concat(Q.parent._.if||[!0]),Hn):g},n._rf=function(n){return Q.on?(En(yn(nn.RULE.FOR,n,null)),zn):g},n._ri=function(n){return Q.on?(En(yn(nn.RULE.IF,n,!1)),Q.parent._.if=[n],Hn):g},n._rl=function(n){return Q.on?(En(yn(nn.RULE.ELIF,n,!1)),Q.parent._.if=[n].concat(Q.parent._.if||[!0]),Hn):g},n._rt=function(){return Q.on?(En(yn(nn.RULE.THEN,Q._.await,void 0)),xn):g},n._rw=function(n){return Q.on?(En(yn(nn.RULE.WATCH,n,null)),Gn):g},n._s=Mn,n._t=function(n){Q.on&&void 0!==n&&""!==n&&(mn(yn(nn.TEXT,n,""+n)),rn(Q))},n._ul=function(n,e){return function(t){return W(t.node,n,e,t)}},n._ur=function(n){return function(e){return x(e.node,n,e)}},n._x=function(n){if(Q.on&&void 0!==n&&""!==n){var e=yn(nn.EXPRESSION,n,"");mn(e),Nn(e),dn(e,R(n,(function(n,e,t){e.on?(vn(e),f(n)&&(tn(e),n=n.call(e),on()),n=void 0===n?"":""+n,e.is!==(e.is=n)&&e.node&&(e.node.data=n)):t(),Rn(e)}),e)),rn(e)}},n.createReaseApp=function(n,e){var t=void 0===e?{}:e,r=t.title,o=void 0===r?"Rease App":r,i=t.target,u=void 0===i?null:i,f=t.rootPub,a=void 0===f?{}:f,s=t.props,c=void 0===s?{}:s,l=t.use,h=t.beforeCreate,v=void 0===h?null:h,d=t.onCreate,p=void 0===d?null:d,g=Q;Q={on:!0,_:{},children:[]};var _=yn(nn.ROOT,null,null);_.page={css:{},title:new z(o)},p&&(_._.oc=[p]),un((function(n){n.node=null})),u&&un(R(_.page.title,(function(n){document.title=n}))),Q=g,_.high=_.home=_.parent=null,_.pub=a,_.node=u,_.root=_;var b=[_,n,c,l];v?E(v(_),Bn,b):Bn(0,b)},n.destroy=function(n){if(i(n)){if(n.parent)for(var e=n.parent.children,t=e.length;t-- >0;)if(e[t]===n){e.splice(t,1);break}hn(n)}},n.involve=function(n,e,t){if(!i(n))throw n;var r=Q,o=J,u=K;tn(n),n.type===nn.COMPONENT&&(J=K=n);var f=e.apply(n,t);return Q=r,J=o,K=u,f},n.isReaseStore=function(n){return n instanceof z},n.isReaseThing=i,n.isStorable=s,n.isStorableOrThenable=function(n){return null!=n&&(f(n.subscribe)||f(n.then))},n.isThenable=a,n.listen=W,n.onCreated=function(n){var e=i(this)?this:Q;if(!i(e))throw n;if(e.type!==nn.COMPONENT)throw n;e.on?(e._.oc||(e._.oc=[])).push(n):n(e)},n.onDestroy=un,n.resize=x,n.setSafe=function(n,e){null!=n&&f(n.set)&&n.set(e)},n.storablefySafeAll=k,n.storablefySafeAllWithProxy=O,n.storablefyThenable=L,n.store=function(n,e,t){var r=i(this)?this:en();if(!i(r))throw n;var o=V(n,e,t);return un.call(r,(function(){o.clear()})),o},n.storeGlobal=V,n.subscribe=function(n,e,t){var r=i(this)?this:en();if(!i(r))throw n;var o=y(n,e,t);return un.call(r,o),o},n.subscribeGlobal=y,n.subscribeSafe=function(n,e,t){var r=i(this)?this:en();if(!i(r))throw n;var o=R(n,e,t);return un.call(r,o),o},n.subscribeSafeGlobal=R,n.then=b,n.thenSafe=E,n.thenSafeAll=m,n.thenablefy=function n(e){var t,r=!1,o=[];return e((function(n){E(n,(function(n){r=!0,t=n;for(var e=0;e<o.length;e++)o[e][0](o[e][1](t))}))})),{then:function(e){return n((function(n){r?n(e(t)):o.push([n,e])}))}}},n.types=nn,Object.defineProperty(n,"__esModule",{value:!0}),n}({});
  