function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},n(t)}function t(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var e=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=e){var _,r,o,i,u=[],l=!0,c=!1;try{if(o=(e=e.call(n)).next,0===t){if(Object(e)!==e)return;l=!1}else for(;!(l=(_=o.call(e)).done)&&(u.push(_.value),u.length!==t);l=!0);}catch(n){c=!0,r=n}finally{try{if(!l&&null!=e.return&&(i=e.return(),Object(i)!==i))return}finally{if(c)throw r}}return u}}(n,t)||function(n,t){if(!n)return;if("string"==typeof n)return e(n,t);var _=Object.prototype.toString.call(n).slice(8,-1);"Object"===_&&n.constructor&&(_=n.constructor.name);if("Map"===_||"Set"===_)return Array.from(n);if("Arguments"===_||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return e(n,t)}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,_=new Array(t);e")}else{if(3!==n.nodeType)throw new Error("unknown node type ".concat(n.nodeType));e+=n.textContent}return e};return null!==(n=this._childNodes)&&void 0!==n&&n.length?(this._childNodes.forEach((function(n){e+=_(n)})),e):_(this)}},{key:"textContent",get:function(){return 3===this.nodeType?String(this.data)||"":this.innnerText},set:function(n){3===this.nodeType?this.data=n:this.innnerText=n}},{key:"firstChild",get:function(){return this._childNodes[0]}},{key:"removeChild",value:function(n){var t=this._childNodes.indexOf(n);if(-1===t)throw new Error("Node not found");this._childNodes.splice(t,1),n.parentNode=null}},{key:"childNodes",get:function(){return this._childNodes}}])&&_(e.prototype,r),o&&_(e,o),Object.defineProperty(e,"prototype",{writable:!1}),n}();var o,i,u,l,c,f,s,a,h={createElement:function(n,t){return new r(n)},createTextNode:function(n){var t=new r("#text");return t.nodeType=3,t.textContent=n,t},createElementNS:function(){throw new Error("not implemented!")}},p={},d=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function m(n,t){for(var e in t)n[e]=t[e];return n}function b(n){var t=n.parentNode;t&&t.removeChild(n)}function g(n,t,e){var _,r,i,u={};for(i in t)"key"==i?_=t[i]:"ref"==i?r=t[i]:u[i]=t[i];if(arguments.length>2&&(u.children=arguments.length>3?o.call(arguments,2):e),"function"==typeof n&&null!=n.defaultProps)for(i in n.defaultProps)void 0===u[i]&&(u[i]=n.defaultProps[i]);return k(n,u,_,r,null)}function k(n,t,e,_,r){var o={type:n,props:t,key:e,ref:_,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u:r};return null==r&&null!=i.vnode&&i.vnode(o),o}function N(){return{current:null}}function x(n){return n.children}function w(n,t){this.props=n,this.context=t}function S(n,t){if(null==t)return n.__?S(n.__,n.__.__k.indexOf(n)+1):null;for(var e;tt&&l.sort(s));T.__r=0}function H(n,t,e,_,r,o,i,u,l,c,f){var s,a,h,v,m,b,g,N,w,S,C=0,E=_&&_.__k||d,T=E.length,H=T,U=t.length;for(e.__k=[],s=0;s0?k(v.type,v.props,v.key,v.ref?v.ref:null,v.__v):v)&&(v.__=e,v.__b=e.__b+1,-1===(N=D(v,E,g=s+C,H))?h=p:(h=E[N]||p,E[N]=void 0,H--),j(n,v,h,r,o,i,u,l,c,f),m=v.__e,(a=v.ref)&&h.ref!=a&&(h.ref&&I(h.ref,null,v),f.push(a,v.__c||m,v)),null!=m&&(null==b&&(b=m),S=!(w=h===p||null===h.__v)&&N===g,w?-1==N&&C--:N!==g&&(N===g+1?(C++,S=!0):N>g?H>U-g?(C+=N-g,S=!0):C--:C=N(null!=l?1:0))for(;i>=0||u=0){if((l=t[i])&&r==l.key&&o===l.type)return i;i--}if(u2&&(l.children=arguments.length>3?o.call(arguments,2):e),k(n.type,l,_||n.key,r||n.ref,null)}function z(n,t){var e={__c:t="__cC"+a++,__:n,Consumer:function(n,t){return n.children(t)},Provider:function(n){var e,_;return this.getChildContext||(e=[],(_={})[t]=this,this.getChildContext=function(){return _},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&e.some((function(n){n.__e=!0,E(n)}))},this.sub=function(n){e.push(n);var t=n.componentWillUnmount;n.componentWillUnmount=function(){e.splice(e.indexOf(n),1),t&&t.call(n)}}),n.children}};return e.Provider.__=e.Consumer.contextType=e}o=d.slice,i={__e:function(n,t,e,_){for(var r,o,i;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(n)),i=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(n,_||{}),i=r.__d),i)return r.__E=r}catch(t){n=t}throw n}},u=0,w.prototype.setState=function(n,t){var e;e=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof n&&(n=n(m({},e),this.props)),n&&m(e,n),null!=n&&this.__v&&(t&&this._sb.push(t),E(this))},w.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),E(this))},w.prototype.render=x,l=[],f="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,s=function(n,t){return n.__v.__b-t.__v.__b},T.__r=0,a=0;var J,K,Q,X,Y=0,Z=[],nn=[],tn=i.__b,en=i.__r,_n=i.diffed,rn=i.__c,on=i.unmount;function un(n,t){i.__h&&i.__h(K,n,Y||t),Y=0;var e=K.__H||(K.__H={__:[],__h:[]});return n>=e.__.length&&e.__.push({__V:nn}),e.__[n]}function ln(n){return Y=1,cn(Cn,n)}function cn(n,t,e){var _=un(J++,2);if(_.t=n,!_.__c&&(_.__=[e?e(t):Cn(void 0,t),function(n){var t=_.__N?_.__N[0]:_.__[0],e=_.t(t,n);t!==e&&(_.__N=[e,_.__[1]],_.__c.setState({}))}],_.__c=K,!K.u)){var r=function(n,t,e){if(!_.__c.__H)return!0;var r=_.__c.__H.__.filter((function(n){return n.__c}));if(r.every((function(n){return!n.__N})))return!o||o.call(this,n,t,e);var i=!1;return r.forEach((function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}})),!(!i&&_.__c.props===n)&&(!o||o.call(this,n,t,e))};K.u=!0;var o=K.shouldComponentUpdate,i=K.componentWillUpdate;K.componentWillUpdate=function(n,t,e){if(this.__e){var _=o;o=void 0,r(n,t,e),o=_}i&&i.call(this,n,t,e)},K.shouldComponentUpdate=r}return _.__N||_.__}function fn(n,t){var e=un(J++,3);!i.__s&&Sn(e.__H,t)&&(e.__=n,e.i=t,K.__H.__h.push(e))}function sn(n,t){var e=un(J++,4);!i.__s&&Sn(e.__H,t)&&(e.__=n,e.i=t,K.__h.push(e))}function an(n){return Y=5,pn((function(){return{current:n}}),[])}function hn(n,t,e){Y=6,sn((function(){return"function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0}),null==e?e:e.concat(n))}function pn(n,t){var e=un(J++,7);return Sn(e.__H,t)?(e.__V=n(),e.i=t,e.__h=n,e.__V):e.__}function dn(n,t){return Y=8,pn((function(){return n}),t)}function vn(n){var t=K.context[n.__c],e=un(J++,9);return e.c=n,t?(null==e.__&&(e.__=!0,t.sub(K)),t.props.value):n.__}function yn(n,t){i.useDebugValue&&i.useDebugValue(t?t(n):n)}function mn(n){var t=un(J++,10),e=ln();return t.__=n,K.componentDidCatch||(K.componentDidCatch=function(n,_){t.__&&t.__(n,_),e[1](n)}),[e[0],function(){e[1](void 0)}]}function bn(){var n=un(J++,11);if(!n.__){for(var t=K.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var e=t.__m||(t.__m=[0,0]);n.__="P"+e[0]+"-"+e[1]++}return n.__}function gn(){for(var n;n=Z.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(xn),n.__H.__h.forEach(wn),n.__H.__h=[]}catch(t){n.__H.__h=[],i.__e(t,n.__v)}}i.__b=function(n){K=null,tn&&tn(n)},i.__r=function(n){en&&en(n),J=0;var t=(K=n.__c).__H;t&&(Q===K?(t.__h=[],K.__h=[],t.__.forEach((function(n){n.__N&&(n.__=n.__N),n.__V=nn,n.__N=n.i=void 0}))):(t.__h.forEach(xn),t.__h.forEach(wn),t.__h=[],J=0)),Q=K},i.diffed=function(n){_n&&_n(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Z.push(t)&&X===i.requestAnimationFrame||((X=i.requestAnimationFrame)||Nn)(gn)),t.__H.__.forEach((function(n){n.i&&(n.__H=n.i),n.__V!==nn&&(n.__=n.__V),n.i=void 0,n.__V=nn}))),Q=K=null},i.__c=function(n,t){t.some((function(n){try{n.__h.forEach(xn),n.__h=n.__h.filter((function(n){return!n.__||wn(n)}))}catch(e){t.some((function(n){n.__h&&(n.__h=[])})),t=[],i.__e(e,n.__v)}})),rn&&rn(n,t)},i.unmount=function(n){on&&on(n);var t,e=n.__c;e&&e.__H&&(e.__H.__.forEach((function(n){try{xn(n)}catch(n){t=n}})),e.__H=void 0,t&&i.__e(t,e.__v))};var kn="function"==typeof requestAnimationFrame;function Nn(n){var t,e=function(){clearTimeout(_),kn&&cancelAnimationFrame(t),setTimeout(n)},_=setTimeout(e,100);kn&&(t=requestAnimationFrame(e))}function xn(n){var t=K,e=n.__c;"function"==typeof e&&(n.__c=void 0,e()),K=t}function wn(n){var t=K;n.__c=n.__(),K=t}function Sn(n,t){return!n||n.length!==t.length||t.some((function(t,e){return t!==n[e]}))}function Cn(n,t){return"function"==typeof t?t(n):t}export{hn as A,R as D,$ as E,pn as F,z as G,mn as P,U as S,dn as T,bn as V,an as _,G as a,w as b,sn as c,N as d,ln as h,x as k,i as l,fn as p,vn as q,cn as s,h as v,yn as x,g as y};