diff --git a/package-lock.json b/package-lock.json index a23d4c9..ac83f9d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,7 +25,7 @@ "bulma": "^1.0.2", "concurrently": "^9.1.0", "notiflix": "^3.2.7", - "preact": "^10.25.2", + "preact": "^10.25.3", "react-helmet-async": "^2.0.5", "rollup": "^4.28.1", "rollup-plugin-cleandir": "^3.0.0", @@ -3849,9 +3849,9 @@ } }, "node_modules/preact": { - "version": "10.25.2", - "resolved": "https://registry.npmjs.org/preact/-/preact-10.25.2.tgz", - "integrity": "sha512-GEts1EH3oMnqdOIeXhlbBSddZ9nrINd070WBOiPO2ous1orrKGUM4SMDbwyjSWD1iMS2dBvaDjAa5qUhz3TXqw==", + "version": "10.25.3", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.25.3.tgz", + "integrity": "sha512-dzQmIFtM970z+fP9ziQ3yG4e3ULIbwZzJ734vaMVUTaKQ2+Ru1Ou/gjshOYVHCcd1rpAelC6ngjvjDXph98unQ==", "funding": { "type": "opencollective", "url": "https://opencollective.com/preact" diff --git a/package.json b/package.json index 9ac1257..206ebe7 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "bulma": "^1.0.2", "concurrently": "^9.1.0", "notiflix": "^3.2.7", - "preact": "^10.25.2", + "preact": "^10.25.3", "react-helmet-async": "^2.0.5", "rollup": "^4.28.1", "rollup-plugin-cleandir": "^3.0.0", diff --git a/public/assets/bundle-CywuNhiS.js b/public/assets/bundle-CywuNhiS.js deleted file mode 100644 index 63b2ca9..0000000 --- a/public/assets/bundle-CywuNhiS.js +++ /dev/null @@ -1,2 +0,0 @@ -var t,e,n,o,i,r,a,s,l,c,u,f,p={},m=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,_=Array.isArray;function h(t,e){for(var n in e)t[n]=e[n];return t}function y(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function g(e,n,o){var i,r,a,s={};for(a in n)"key"==a?i=n[a]:"ref"==a?r=n[a]:s[a]=n[a];if(2n&&o.sort(a));N.__r=0}function T(t,e,n,o,i,r,a,s,l,c,u){var f,d,h,y,g,x,k=o&&o.__k||m,I=e.length;for(l=function(t,e,n,o,i){var r,a,s,l,c,u=n.length,f=u,p=0;for(t.__k=Array(i),r=0;rl?p--:p++,a.__u|=4))):t.__k[r]=null;if(f)for(r=0;r(null==l||2&l.__u?0:1))for(i=n-1,r=n+1;0<=i||r++S);p.state=p.__s,null!=p.getChildContext&&(i=h(h({},i),p.getChildContext())),I&&!m&&null!=p.getSnapshotBeforeUpdate&&(v=p.getSnapshotBeforeUpdate(d,g)),l=T(t,_(O=null!=f&&f.type===b&&null==f.key?f.props.children:f)?O:[O],n,o,i,r,a,s,l,c,u),p.base=n.__e,n.__u&=-161,p.__h.length&&s.push(p),w&&(p.__E=p.__=null)}catch(t){if(n.__v=null,c||null!=a)if(t.then){for(n.__u|=c?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;a[a.indexOf(l)]=null,n.__e=l}else for(D=a.length;D--;)y(a[D]);else n.__e=o.__e,n.__k=o.__k;e.__e(t,n,o)}else null==a&&n.__v==o.__v?(n.__k=o.__k,n.__e=o.__e):l=n.__e=M(o.__e,n,o,i,r,a,s,c,u);return(f=e.diffed)&&f(n),128&n.__u?void 0:l}function U(t,n,o){for(var i=0;i=n.__.length&&n.__.push({}),n.__[t]}function nt(t){return V=1,ot(vt,t)}function ot(t,e,n){var o=et(j++,2);if(o.t=t,!o.__c&&(o.__=[n?n(e):vt(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],n=o.t(e,t);e!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=R,!R.u)){var i=function(t,e,n){if(!o.__c.__H)return!0;var i=o.__c.__H.__.filter((function(t){return!!t.__c}));if(i.every((function(t){return!t.__N})))return!r||r.call(this,t,e,n);var a=o.__c.props!==t;return i.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}})),r&&r.call(this,t,e,n)||a};R.u=!0;var r=R.shouldComponentUpdate,a=R.componentWillUpdate;R.componentWillUpdate=function(t,e,n){if(this.__e){var o=r;r=void 0,i(t,e,n),r=o}a&&a.call(this,t,e,n)},R.shouldComponentUpdate=i}return o.__N||o.__}function it(t,e){var n=et(j++,3);!Y.__s&>(n.__H,e)&&(n.__=t,n.i=e,R.__H.__h.push(n))}function rt(t,e){var n=et(j++,4);!Y.__s&>(n.__H,e)&&(n.__=t,n.i=e,R.__h.push(n))}function at(t){return V=5,lt((function(){return{current:t}}),[])}function st(t,e,n){V=6,rt((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==n?n:n.concat(t))}function lt(t,e){var n=et(j++,7);return gt(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function ct(t,e){return V=8,lt((function(){return t}),e)}function ut(t){var e=R.context[t.__c],n=et(j++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(R)),e.props.value):t.__}function ft(t,e){Y.useDebugValue&&Y.useDebugValue(e?e(t):t)}function pt(){var t=et(j++,11);if(!t.__){for(var e=R.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function mt(){for(var t;t=J.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(ht),t.__H.__h.forEach(yt),t.__H.__h=[]}catch(e){t.__H.__h=[],Y.__e(e,t.__v)}}Y.__b=function(t){R=null,Q&&Q(t)},Y.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),tt&&tt(t,e)},Y.__r=function(t){G&&G(t),j=0;var e=(R=t.__c).__H;e&&(F===R?(e.__h=[],R.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.i=t.__N=void 0}))):(e.__h.forEach(ht),e.__h.forEach(yt),e.__h=[],j=0)),F=R},Y.diffed=function(t){K&&K(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==J.push(e)&&q===Y.requestAnimationFrame||((q=Y.requestAnimationFrame)||_t)(mt)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.i=void 0}))),F=R=null},Y.__c=function(t,e){e.some((function(t){try{t.__h.forEach(ht),t.__h=t.__h.filter((function(t){return!t.__||yt(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],Y.__e(n,t.__v)}})),Z&&Z(t,e)},Y.unmount=function(t){X&&X(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{ht(t)}catch(t){e=t}})),n.__H=void 0,e&&Y.__e(e,n.__v))};var dt="function"==typeof requestAnimationFrame;function _t(t){var e,n=function(){clearTimeout(o),dt&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(n,100);dt&&(e=requestAnimationFrame(n))}function ht(t){var e=R,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),R=e}function yt(t){var e=R;t.__c=t.__(),R=e}function gt(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function vt(t,e){return"function"==typeof e?e(t):e}function bt(t,e){for(var n in t)if("__source"!=n&&!(n in e))return!0;for(var o in e)if("__source"!=o&&t[o]!==e[o])return!0;return!1}function xt(t,e){var n=e(),o=nt({t:{__:n,u:e}}),i=o[0].t,r=o[1];return rt((function(){i.__=n,i.u=e,wt(i)&&r({t:i})}),[t,n,e]),it((function(){return wt(i)&&r({t:i}),t((function(){wt(i)&&r({t:i})}))}),[t]),n}function wt(t){var e,n,o=t.u,i=t.__;try{var r=o();return((e=i)!==(n=r)||0===e&&1/e!=1/n)&&(e==e||n==n)}catch(t){return!0}}function kt(t){t()}function It(t){return t}function Nt(){return[!1,kt]}var Tt=rt;function Ct(t,e){this.props=t,this.context=e}(Ct.prototype=new x).isPureReactComponent=!0,Ct.prototype.shouldComponentUpdate=function(t,e){return bt(this.props,t)||bt(this.state,e)};var Et=e.__b;e.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Et&&Et(t)};var Bt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function St(t){function e(e){if(!("ref"in e))return t(e,null);var n=e.ref;delete e.ref;var o=t(e,n);return e.ref=n,o}return e.$$typeof=Bt,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var At=function(t,e){return null==t?null:E(E(t).map(e))},Ot={map:At,forEach:At,count:function(t){return t?E(t).length:0},only:function(t){var e=E(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:E},Dt=e.__e;e.__e=function(t,e,n,o){if(t.then)for(var i,r=e;r=r.__;)if((i=r.__c)&&i.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e);Dt(t,e,n,o)};var Ut=e.unmount;function Mt(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),t.__c.__H=null),null!=(t=function(t,e){for(var n in e)t[n]=e[n];return t}({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return Mt(t,e,n)}))),t}function zt(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return zt(t,e,n)})),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function $t(){this.__u=0,this.o=null,this.__b=null}function Pt(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Lt(){this.i=null,this.l=null}e.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Ut&&Ut(t)},($t.prototype=new x).__c=function(t,e){var n=e.__c,o=this;null==o.o&&(o.o=[]),o.o.push(n);var i=Pt(o.__v),r=!1,a=function(){r||(r=!0,n.__R=null,i?i(s):s())};n.__R=a;var s=function(){if(! --o.__u){if(o.state.__a){var t=o.state.__a;o.__v.__k[0]=zt(t,t.__c.__P,t.__c.__O)}var e;for(o.setState({__a:o.__b=null});e=o.o.pop();)e.forceUpdate()}};o.__u++||32&e.__u||o.setState({__a:o.__b=o.__v.__k[0]}),t.then(a,a)},$t.prototype.componentWillUnmount=function(){this.o=[]},$t.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=Mt(this.__b,n,o.__O=o.__P)}this.__b=null}var i=e.__a&&g(b,null,t.fallback);return i&&(i.__u&=-33),[g(b,null,e.__a?null:t.children),i]};var Wt=function(t,e,n){if(++n[1]===n[0]&&t.l.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.l.size))for(n=t.i;n;){for(;3>>1,1),e.h.removeChild(t)}}),L(g(Ht,{context:e.context},t.__v),e.v)}(Lt.prototype=new x).__a=function(t){var e=this,n=Pt(e.__v),o=e.l.get(t);return o[0]++,function(i){var r=function(){e.props.revealOrder?(o.push(i),Wt(e,t,o)):i()};n?n(r):r()}},Lt.prototype.render=function(t){this.i=null,this.l=new Map;var e=E(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.l.set(e[n],this.i=[1,0,this.i]);return t.children},Lt.prototype.componentDidUpdate=Lt.prototype.componentDidMount=function(){var t=this;this.l.forEach((function(e,n){Wt(t,n,e)}))};var Rt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ft=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,qt=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Vt=/[A-Z0-9]/g,Jt="undefined"!=typeof document,Yt=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(t)};x.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(x.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var Qt=e.event;function Gt(){}function Kt(){return this.cancelBubble}function Zt(){return this.defaultPrevented}e.event=function(t){return Qt&&(t=Qt(t)),t.persist=Gt,t.isPropagationStopped=Kt,t.isDefaultPrevented=Zt,t.nativeEvent=t};var Xt,te={enumerable:!1,configurable:!0,get:function(){return this.class}},ee=e.vnode;e.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,n=t.type,o={},i=-1===n.indexOf("-");for(var r in e){var a=e[r];if(!("value"===r&&"defaultValue"in e&&null==a||Jt&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var s=r.toLowerCase();"defaultValue"===r&&"value"in e&&null==e.value?r="value":"download"===r&&!0===a?a="":"translate"===s&&"no"===a?a=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?r="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||Yt(e.type)?"onfocus"===s?r="onfocusin":"onblur"===s?r="onfocusout":qt.test(r)&&(r=s):s=r="oninput":i&&Ft.test(r)?r=r.replace(Vt,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===s&&o[r=s]&&(r="oninputCapture"),o[r]=a}}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=E(e.children).forEach((function(t){t.props.selected=-1!=o.value.indexOf(t.props.value)}))),"select"==n&&null!=o.defaultValue&&(o.value=E(e.children).forEach((function(t){t.props.selected=o.multiple?-1!=o.defaultValue.indexOf(t.props.value):o.defaultValue==t.props.value}))),e.class&&!e.className?(o.class=e.class,Object.defineProperty(o,"className",te)):(e.className&&!e.class||e.class&&e.className)&&(o.class=o.className=e.className),t.props=o}(t),t.$$typeof=Rt,ee&&ee(t)};var ne=e.__r;e.__r=function(t){ne&&ne(t),Xt=t.__c};var oe=e.diffed;e.diffed=function(t){oe&&oe(t);var e=t.props,n=t.__e;null!=n&&"textarea"===t.type&&"value"in e&&e.value!==n.value&&(n.value=null==e.value?"":e.value),Xt=null};var ie={ReactCurrentDispatcher:{current:{readContext:function(t){return Xt.__n[t.__c].props.value},useCallback:ct,useContext:ut,useDebugValue:ft,useDeferredValue:It,useEffect:it,useId:pt,useImperativeHandle:st,useInsertionEffect:Tt,useLayoutEffect:rt,useMemo:lt,useReducer:ot,useRef:at,useState:nt,useSyncExternalStore:xt,useTransition:Nt}}};function re(t){return!!t&&t.$$typeof===Rt}var ae={useState:nt,useId:pt,useReducer:ot,useEffect:it,useLayoutEffect:rt,useInsertionEffect:Tt,useTransition:Nt,useDeferredValue:It,useSyncExternalStore:xt,startTransition:kt,useRef:at,useImperativeHandle:st,useMemo:lt,useCallback:ct,useContext:ut,useDebugValue:ft,version:"18.3.1",Children:Ot,render:function(t,e,n){return null==e.__k&&(e.textContent=""),L(t,e),"function"==typeof n&&n(),t?t.__c:null},hydrate:function(t,e,n){return W(t,e),"function"==typeof n&&n(),t?t.__c:null},unmountComponentAtNode:function(t){return!!t.__k&&(L(null,t),!0)},createPortal:function(t,e){var n=g(jt,{__v:t,h:e});return n.containerInfo=e,n},createElement:g,createContext:function(t,e){var n={__c:e="__cC"+f++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,o;return this.getChildContext||(n=new Set,(o={})[e]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.forEach((function(t){t.__e=!0,I(t)}))},this.sub=function(t){n.add(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n&&n.delete(t),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n},createFactory:function(t){return g.bind(null,t)},cloneElement:function(t){return re(t)?H.apply(null,arguments):t},createRef:function(){return{current:null}},Fragment:b,isValidElement:re,isElement:re,isFragment:function(t){return re(t)&&t.type===b},isMemo:function(t){return!!t&&!!t.displayName&&("string"==typeof t.displayName||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")},findDOMNode:function(t){return t&&(t.base||1===t.nodeType&&t)||null},Component:x,PureComponent:Ct,memo:function(t,e){function n(t){var n=this.props.ref,o=n==t.ref;return!o&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!o:bt(this.props,t)}function o(e){return this.shouldComponentUpdate=n,g(t,e)}return o.displayName="Memo("+(t.displayName||t.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o},forwardRef:St,flushSync:function(t,e){return t(e)},unstable_batchedUpdates:function(t,e){return t(e)},StrictMode:b,Suspense:$t,SuspenseList:Lt,lazy:function(t){function e(e){if(n||(n=t()).then((function(t){o=t.default||t}),(function(t){i=t})),i)throw i;if(!o)throw n;return g(o,e)}var n,o,i;return e.displayName="Lazy",e.__f=!0,e},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ie};function se(t){return 32===t.length?t.slice(0,8)+"-"+t.slice(8,12)+"-"+t.slice(12,16)+"-"+t.slice(16,20)+"-"+t.slice(20,32):t}const le=/[^a-z0-9]/g,ce=/.{1,2}/g;function ue(t){const e=function(t){const e=t.toLowerCase().replaceAll(le,"");return 32===e.length?e:null}(t);return null===e?null:e.match(ce).map((t=>parseInt(t,16)))}function fe(t){return se(t.map((t=>t.toString(16).padStart(2,"0"))).join(""))}function pe(t){const e=atob(t).split("").map((t=>t.charCodeAt(0)));return fe(e)}const me=/"?([a-zA-Z0-9]*)"?:/g,de=/^(-?\d+)[;:,](-?\d+)$/,_e=/["']?(-?\d+)["']?/g;function he(t){if("["===t[0])return JSON.parse(t.replace(_e,"$1"));if(t.match(de)){const e=t.replace(de,"$1;$2").split(";");return{high:e[0].toString(),low:e[1].toString()}}const e=JSON.parse(t.replace(_e,'"$1"').replace(me,'"$1":'));return{high:e.high,low:e.low}}function ye(t){try{return Array.isArray(he(t))?8:2}catch(t){}try{if(36===pe(t).length)return 4}catch(t){}return 1}function ge(t,e){return fe([BigInt(t)&BigInt(255),BigInt(t)>>BigInt(8)&BigInt(255),BigInt(t)>>BigInt(16)&BigInt(255),BigInt(t)>>BigInt(24)&BigInt(255),BigInt(t)>>BigInt(32)&BigInt(255),BigInt(t)>>BigInt(40)&BigInt(255),BigInt(t)>>BigInt(48)&BigInt(255),BigInt(t)>>BigInt(56)&BigInt(255),BigInt(e)&BigInt(255),BigInt(e)>>BigInt(8)&BigInt(255),BigInt(e)>>BigInt(16)&BigInt(255),BigInt(e)>>BigInt(24)&BigInt(255),BigInt(e)>>BigInt(32)&BigInt(255),BigInt(e)>>BigInt(40)&BigInt(255),BigInt(e)>>BigInt(48)&BigInt(255),BigInt(e)>>BigInt(56)&BigInt(255)])}function ve(t,e){return fe([BigInt(t)>>BigInt(56)&BigInt(255),BigInt(t)>>BigInt(48)&BigInt(255),BigInt(t)>>BigInt(40)&BigInt(255),BigInt(t)>>BigInt(32)&BigInt(255),BigInt(t)>>BigInt(24)&BigInt(255),BigInt(t)>>BigInt(16)&BigInt(255),BigInt(t)>>BigInt(8)&BigInt(255),BigInt(t)&BigInt(255),BigInt(e)>>BigInt(56)&BigInt(255),BigInt(e)>>BigInt(48)&BigInt(255),BigInt(e)>>BigInt(40)&BigInt(255),BigInt(e)>>BigInt(32)&BigInt(255),BigInt(e)>>BigInt(24)&BigInt(255),BigInt(e)>>BigInt(16)&BigInt(255),BigInt(e)>>BigInt(8)&BigInt(255),BigInt(e)&BigInt(255)])}var be="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function xe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var we,ke={exports:{}},Ie=ke.exports;var Ne=(we||(we=1,function(t){!function(e){t.exports=function(t){if(void 0===t&&void 0===t.document)return!1;var e,n={Success:"Success",Failure:"Failure",Warning:"Warning",Info:"Info"},o={wrapID:"NotiflixNotifyWrap",overlayID:"NotiflixNotifyOverlay",width:"280px",position:"right-top",distance:"10px",opacity:1,borderRadius:"5px",rtl:!1,timeout:3e3,messageMaxLength:110,backOverlay:!1,backOverlayColor:"rgba(0,0,0,0.5)",plainText:!0,showOnlyTheLastOne:!1,clickToClose:!1,pauseOnHover:!0,ID:"NotiflixNotify",className:"notiflix-notify",zindex:4001,fontFamily:"Quicksand",fontSize:"13px",cssAnimation:!0,cssAnimationDuration:400,cssAnimationStyle:"fade",closeButton:!1,useIcon:!0,useFontAwesome:!1,fontAwesomeIconStyle:"basic",fontAwesomeIconSize:"34px",success:{background:"#32c682",textColor:"#fff",childClassName:"notiflix-notify-success",notiflixIconColor:"rgba(0,0,0,0.2)",fontAwesomeClassName:"fas fa-check-circle",fontAwesomeIconColor:"rgba(0,0,0,0.2)",backOverlayColor:"rgba(50,198,130,0.2)"},failure:{background:"#ff5549",textColor:"#fff",childClassName:"notiflix-notify-failure",notiflixIconColor:"rgba(0,0,0,0.2)",fontAwesomeClassName:"fas fa-times-circle",fontAwesomeIconColor:"rgba(0,0,0,0.2)",backOverlayColor:"rgba(255,85,73,0.2)"},warning:{background:"#eebf31",textColor:"#fff",childClassName:"notiflix-notify-warning",notiflixIconColor:"rgba(0,0,0,0.2)",fontAwesomeClassName:"fas fa-exclamation-circle",fontAwesomeIconColor:"rgba(0,0,0,0.2)",backOverlayColor:"rgba(238,191,49,0.2)"},info:{background:"#26c0d3",textColor:"#fff",childClassName:"notiflix-notify-info",notiflixIconColor:"rgba(0,0,0,0.2)",fontAwesomeClassName:"fas fa-info-circle",fontAwesomeIconColor:"rgba(0,0,0,0.2)",backOverlayColor:"rgba(38,192,211,0.2)"}},i=function(t){return console.error("%c Notiflix Error ","padding:2px;border-radius:20px;color:#fff;background:#ff5549","\n"+t+"\n\nVisit documentation page to learn more: https://notiflix.github.io/documentation")},r=function(e){return e||(e="head"),null!==t.document[e]||(i('\nNotiflix needs to be appended to the "<'+e+'>" element, but you called it before the "<'+e+'>" element has been created.'),!1)},a=function(e,n){if(!r("head"))return!1;if(null!==e()&&!t.document.getElementById(n)){var o=t.document.createElement("style");o.id=n,o.innerHTML=e(),t.document.head.appendChild(o)}},s=function(){var t={},e=!1,n=0;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(e=arguments[0],n++);for(var o=function(n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=e&&"[object Object]"===Object.prototype.toString.call(n[o])?s(t[o],n[o]):n[o])};ndiv{pointer-events:all;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:"Quicksand",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;width:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:relative;margin:0 0 10px;border-radius:5px;background:#1e1e1e;color:#fff;padding:10px 12px;font-size:14px;line-height:1.4}[id^=NotiflixNotifyWrap]>div:last-child{margin:0}[id^=NotiflixNotifyWrap]>div.nx-with-callback{cursor:pointer}[id^=NotiflixNotifyWrap]>div.nx-with-icon{padding:8px;min-height:56px}[id^=NotiflixNotifyWrap]>div.nx-paused{cursor:auto}[id^=NotiflixNotifyWrap]>div.nx-notify-click-to-close{cursor:pointer}[id^=NotiflixNotifyWrap]>div.nx-with-close-button{padding:10px 36px 10px 12px}[id^=NotiflixNotifyWrap]>div.nx-with-icon.nx-with-close-button{padding:6px 36px 6px 6px}[id^=NotiflixNotifyWrap]>div>span.nx-message{cursor:inherit;font-weight:normal;font-family:inherit!important;word-break:break-all;word-break:break-word}[id^=NotiflixNotifyWrap]>div>span.nx-close-button{cursor:pointer;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;position:absolute;right:8px;top:0;bottom:0;margin:auto;color:inherit;width:20px;height:20px}[id^=NotiflixNotifyWrap]>div>span.nx-close-button:hover{-webkit-transform:rotate(90deg);transform:rotate(90deg)}[id^=NotiflixNotifyWrap]>div>span.nx-close-button>svg{position:absolute;width:16px;height:16px;right:2px;top:2px}[id^=NotiflixNotifyWrap]>div>.nx-message-icon{position:absolute;width:40px;height:40px;font-size:30px;line-height:40px;text-align:center;left:8px;top:0;bottom:0;margin:auto;border-radius:inherit}[id^=NotiflixNotifyWrap]>div>.nx-message-icon-fa.nx-message-icon-fa-shadow{color:inherit;background:rgba(0,0,0,.15);-webkit-box-shadow:inset 0 0 34px rgba(0,0,0,.2);box-shadow:inset 0 0 34px rgba(0,0,0,.2);text-shadow:0 0 10px rgba(0,0,0,.3)}[id^=NotiflixNotifyWrap]>div>span.nx-with-icon{position:relative;float:left;width:calc(100% - 40px);margin:0 0 0 40px;padding:0 0 0 10px;-webkit-box-sizing:border-box;box-sizing:border-box}[id^=NotiflixNotifyWrap]>div.nx-rtl-on>.nx-message-icon{left:auto;right:8px}[id^=NotiflixNotifyWrap]>div.nx-rtl-on>span.nx-with-icon{padding:0 10px 0 0;margin:0 40px 0 0}[id^=NotiflixNotifyWrap]>div.nx-rtl-on>span.nx-close-button{right:auto;left:8px}[id^=NotiflixNotifyWrap]>div.nx-with-icon.nx-with-close-button.nx-rtl-on{padding:6px 6px 6px 36px}[id^=NotiflixNotifyWrap]>div.nx-with-close-button.nx-rtl-on{padding:10px 12px 10px 36px}[id^=NotiflixNotifyOverlay].nx-with-animation,[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-fade{-webkit-animation:notify-animation-fade .3s ease-in-out 0s normal;animation:notify-animation-fade .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-fade{0%{opacity:0}100%{opacity:1}}@keyframes notify-animation-fade{0%{opacity:0}100%{opacity:1}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-zoom{-webkit-animation:notify-animation-zoom .3s ease-in-out 0s normal;animation:notify-animation-zoom .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-zoom{0%{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes notify-animation-zoom{0%{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}100%{-webkit-transform:scale(1);transform:scale(1)}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-right{-webkit-animation:notify-animation-from-right .3s ease-in-out 0s normal;animation:notify-animation-from-right .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-from-right{0%{right:-300px;opacity:0}50%{right:8px;opacity:1}100%{right:0;opacity:1}}@keyframes notify-animation-from-right{0%{right:-300px;opacity:0}50%{right:8px;opacity:1}100%{right:0;opacity:1}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-left{-webkit-animation:notify-animation-from-left .3s ease-in-out 0s normal;animation:notify-animation-from-left .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-from-left{0%{left:-300px;opacity:0}50%{left:8px;opacity:1}100%{left:0;opacity:1}}@keyframes notify-animation-from-left{0%{left:-300px;opacity:0}50%{left:8px;opacity:1}100%{left:0;opacity:1}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-top{-webkit-animation:notify-animation-from-top .3s ease-in-out 0s normal;animation:notify-animation-from-top .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-from-top{0%{top:-50px;opacity:0}50%{top:8px;opacity:1}100%{top:0;opacity:1}}@keyframes notify-animation-from-top{0%{top:-50px;opacity:0}50%{top:8px;opacity:1}100%{top:0;opacity:1}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-bottom{-webkit-animation:notify-animation-from-bottom .3s ease-in-out 0s normal;animation:notify-animation-from-bottom .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-from-bottom{0%{bottom:-50px;opacity:0}50%{bottom:8px;opacity:1}100%{bottom:0;opacity:1}}@keyframes notify-animation-from-bottom{0%{bottom:-50px;opacity:0}50%{bottom:8px;opacity:1}100%{bottom:0;opacity:1}}[id^=NotiflixNotifyOverlay].nx-with-animation.nx-remove,[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-fade.nx-remove{opacity:0;-webkit-animation:notify-remove-fade .3s ease-in-out 0s normal;animation:notify-remove-fade .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-fade{0%{opacity:1}100%{opacity:0}}@keyframes notify-remove-fade{0%{opacity:1}100%{opacity:0}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-zoom.nx-remove{-webkit-transform:scale(0);transform:scale(0);-webkit-animation:notify-remove-zoom .3s ease-in-out 0s normal;animation:notify-remove-zoom .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-zoom{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}100%{-webkit-transform:scale(0);transform:scale(0)}}@keyframes notify-remove-zoom{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}100%{-webkit-transform:scale(0);transform:scale(0)}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-top.nx-remove{opacity:0;-webkit-animation:notify-remove-to-top .3s ease-in-out 0s normal;animation:notify-remove-to-top .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-to-top{0%{top:0;opacity:1}50%{top:8px;opacity:1}100%{top:-50px;opacity:0}}@keyframes notify-remove-to-top{0%{top:0;opacity:1}50%{top:8px;opacity:1}100%{top:-50px;opacity:0}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-right.nx-remove{opacity:0;-webkit-animation:notify-remove-to-right .3s ease-in-out 0s normal;animation:notify-remove-to-right .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-to-right{0%{right:0;opacity:1}50%{right:8px;opacity:1}100%{right:-300px;opacity:0}}@keyframes notify-remove-to-right{0%{right:0;opacity:1}50%{right:8px;opacity:1}100%{right:-300px;opacity:0}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-bottom.nx-remove{opacity:0;-webkit-animation:notify-remove-to-bottom .3s ease-in-out 0s normal;animation:notify-remove-to-bottom .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-to-bottom{0%{bottom:0;opacity:1}50%{bottom:8px;opacity:1}100%{bottom:-50px;opacity:0}}@keyframes notify-remove-to-bottom{0%{bottom:0;opacity:1}50%{bottom:8px;opacity:1}100%{bottom:-50px;opacity:0}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-left.nx-remove{opacity:0;-webkit-animation:notify-remove-to-left .3s ease-in-out 0s normal;animation:notify-remove-to-left .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-to-left{0%{left:0;opacity:1}50%{left:8px;opacity:1}100%{left:-300px;opacity:0}}@keyframes notify-remove-to-left{0%{left:0;opacity:1}50%{left:8px;opacity:1}100%{left:-300px;opacity:0}}'},u=0,f=function(i,a,c,f){if(!r("body"))return!1;e||p.Notify.init({});var m=s(!0,e,{});if("object"==typeof c&&!Array.isArray(c)||"object"==typeof f&&!Array.isArray(f)){var d={};"object"==typeof c?d=c:"object"==typeof f&&(d=f),e=s(!0,e,d)}var _=e[i.toLocaleLowerCase("en")];u++,"string"!=typeof a&&(a="Notiflix "+i),e.plainText&&(a=l(a)),!e.plainText&&a.length>e.messageMaxLength&&(e=s(!0,e,{closeButton:!0,messageMaxLength:150}),a='Possible HTML Tags Error: The "plainText" option is "false" and the notification content length is more than the "messageMaxLength" option.'),a.length>e.messageMaxLength&&(a=a.substring(0,e.messageMaxLength)+"..."),"shadow"===e.fontAwesomeIconStyle&&(_.fontAwesomeIconColor=_.background),e.cssAnimation||(e.cssAnimationDuration=0);var h=t.document.getElementById(o.wrapID)||t.document.createElement("div");if(h.id=o.wrapID,h.style.width=e.width,h.style.zIndex=e.zindex,h.style.opacity=e.opacity,"center-center"===e.position?(h.style.left=e.distance,h.style.top=e.distance,h.style.right=e.distance,h.style.bottom=e.distance,h.style.margin="auto",h.classList.add("nx-flex-center-center"),h.style.maxHeight="calc((100vh - "+e.distance+") - "+e.distance+")",h.style.display="flex",h.style.flexWrap="wrap",h.style.flexDirection="column",h.style.justifyContent="center",h.style.alignItems="center",h.style.pointerEvents="none"):"center-top"===e.position?(h.style.left=e.distance,h.style.right=e.distance,h.style.top=e.distance,h.style.bottom="auto",h.style.margin="auto"):"center-bottom"===e.position?(h.style.left=e.distance,h.style.right=e.distance,h.style.bottom=e.distance,h.style.top="auto",h.style.margin="auto"):"right-bottom"===e.position?(h.style.right=e.distance,h.style.bottom=e.distance,h.style.top="auto",h.style.left="auto"):"left-top"===e.position?(h.style.left=e.distance,h.style.top=e.distance,h.style.right="auto",h.style.bottom="auto"):"left-bottom"===e.position?(h.style.left=e.distance,h.style.bottom=e.distance,h.style.top="auto",h.style.right="auto"):(h.style.right=e.distance,h.style.top=e.distance,h.style.left="auto",h.style.bottom="auto"),e.backOverlay){var y=t.document.getElementById(o.overlayID)||t.document.createElement("div");y.id=o.overlayID,y.style.width="100%",y.style.height="100%",y.style.position="fixed",y.style.zIndex=e.zindex-1,y.style.left=0,y.style.top=0,y.style.right=0,y.style.bottom=0,y.style.background=_.backOverlayColor||e.backOverlayColor,y.className=e.cssAnimation?"nx-with-animation":"",y.style.animationDuration=e.cssAnimation?e.cssAnimationDuration+"ms":"",t.document.getElementById(o.overlayID)||t.document.body.appendChild(y)}t.document.getElementById(o.wrapID)||t.document.body.appendChild(h);var g=t.document.createElement("div");g.id=e.ID+"-"+u,g.className=e.className+" "+_.childClassName+" "+(e.cssAnimation?"nx-with-animation":"")+" "+(e.useIcon?"nx-with-icon":"")+" nx-"+e.cssAnimationStyle+" "+(e.closeButton&&"function"!=typeof c?"nx-with-close-button":"")+" "+("function"==typeof c?"nx-with-callback":"")+" "+(e.clickToClose?"nx-notify-click-to-close":""),g.style.fontSize=e.fontSize,g.style.color=_.textColor,g.style.background=_.background,g.style.borderRadius=e.borderRadius,g.style.pointerEvents="all",e.rtl&&(g.setAttribute("dir","rtl"),g.classList.add("nx-rtl-on")),g.style.fontFamily='"'+e.fontFamily+'", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',e.cssAnimation&&(g.style.animationDuration=e.cssAnimationDuration+"ms");var v="";if(e.closeButton&&"function"!=typeof c&&(v=''),e.useIcon)if(e.useFontAwesome)g.innerHTML=''+a+""+(e.closeButton?v:"");else{var b="";i===n.Success?b='':i===n.Failure?b='':i===n.Warning?b='':i===n.Info&&(b=''),g.innerHTML=b+''+a+""+(e.closeButton?v:"")}else g.innerHTML=''+a+""+(e.closeButton?v:"");if("left-bottom"===e.position||"right-bottom"===e.position){var x=t.document.getElementById(o.wrapID);x.insertBefore(g,x.firstChild)}else t.document.getElementById(o.wrapID).appendChild(g);var w=t.document.getElementById(g.id);if(w){var k,I,N=function(){w.classList.add("nx-remove");var e=t.document.getElementById(o.overlayID);e&&0>=h.childElementCount&&e.classList.add("nx-remove"),clearTimeout(k)},T=function(){if(w&&null!==w.parentNode&&w.parentNode.removeChild(w),0>=h.childElementCount&&null!==h.parentNode){h.parentNode.removeChild(h);var e=t.document.getElementById(o.overlayID);e&&null!==e.parentNode&&e.parentNode.removeChild(e)}clearTimeout(I)};if(e.closeButton&&"function"!=typeof c&&t.document.getElementById(g.id).querySelector("span.nx-close-button").addEventListener("click",(function(){N();var t=setTimeout((function(){T(),clearTimeout(t)}),e.cssAnimationDuration)})),("function"==typeof c||e.clickToClose)&&w.addEventListener("click",(function(){"function"==typeof c&&c(),N();var t=setTimeout((function(){T(),clearTimeout(t)}),e.cssAnimationDuration)})),!e.closeButton&&"function"!=typeof c){var C=function(){k=setTimeout((function(){N()}),e.timeout),I=setTimeout((function(){T()}),e.timeout+e.cssAnimationDuration)};C(),e.pauseOnHover&&(w.addEventListener("mouseenter",(function(){w.classList.add("nx-paused"),clearTimeout(k),clearTimeout(I)})),w.addEventListener("mouseleave",(function(){w.classList.remove("nx-paused"),C()})))}}if(e.showOnlyTheLastOne&&0{const e=t.target.value;this.setState({text:e}),"\n"!==e[e.length-1]||this.handle(e)};handle=t=>{const e=t.split("\n").map((t=>t.replace(Te,"").trim())).filter((t=>0{let e=new Map;for(const n of t.reverse()){const t=this.newItem(n);null!==t&&e.set(t.toString(),t)}for(const t of this.props.items)e.has(t.toString())||e.set(t.toString(),t);this.props.setItems([...e.values()])};newItem=t=>{try{const{input:e,comment:n}=this.parse(t),o=this.castToUuid(e),i=this.castFromUuid(o),r=this.normalize(e);if(null===r)return Ne.Notify.failure("Failed to process string: "+t),null;const a=this.normalize(i);return r===a?(Ne.Notify.warning("The result of the conversion matches the entered value: "+t),null):new Ee(r,a,n)}catch(t){return null}};parse=t=>{let e=t.split("//").map((t=>t.trim().replace(/,$/g,"").trimRight()));return 1{switch(ye(t)){case 8:return JSON.stringify(he(t)).replace(/,$/g,"");case 2:return JSON.stringify(he(t)).replace(/,$/g,"").replace(Ce,"$1");case 4:return btoa(atob(t))}"{"===t[0]&&"}"===t[t.length-1]&&(t=t.substring(1,t.length-1));const e=se(t);return 36===e.length?e:null};castToUuid=t=>{const{intType:e}=this.state;switch(ye(t)){case 8:return fe(he(t));case 2:const n=he(t);return(1===e?ge:ve)(n.high,n.low);case 4:return pe(t)}return t};castFromUuid=t=>{const{resultType:e,intType:n}=this.state;switch(e){case 8:return function(t){const e=ue(t);return null===e?null:JSON.stringify(e)}(t);case 2:const e=1===n?function(t){const e=ue(t).map((t=>BigInt(t)));if(null===e)return null;const n=BigInt(e[0]|e[1]<BigInt(t)));if(null===e)return null;const n=BigInt(e[7]|e[6]<{const{text:e}=this.state;await this.setState({resultType:t}),await this.handle(e)};setIntType=async t=>{const{text:e}=this.state;await this.setState({intType:t}),await this.handle(e)};render({items:t},{resultType:e,intType:n}){const[o,i]=ae.useState(JSON.parse(localStorage.getItem("informerClosed"))||!1);return ae.useEffect((()=>{localStorage.setItem("informerClosed",JSON.stringify(o))}),[o]),ae.createElement("div",null,ae.createElement("div",{className:"notification is-info",style:{display:o?"none":"block"}},ae.createElement("button",{className:"delete",onClick:()=>i(!0)}),'The project is provided "as is". Project revisions will only be made when absolutely necessary.'),ae.createElement("label",null,ae.createElement("textarea",{className:"textarea",onChange:this.onKeyboardInput,placeholder:"Enter UUID. Input examples:\n0;0\n{low: 0, high: 1}\n71a46cec-4809-4cc5-9689-5b0441b46186\nhuW65O9YQDGzT16f+RTNVQ==\n0;1 // comment\nhuW65O9YQDGzT16f+RTNVQ== //comment new\n",rows:"10"})),ae.createElement("div",{className:"container margin-top"},ae.createElement("div",{className:"box"},ae.createElement("label",null,"Select result type:"),ae.createElement("div",{className:"radios"},function(){const t=[];return t[1]="uuid",t[4]="base64",t[2]="high-low",t[8]="bytes",t}().map(((t,n)=>ae.createElement("label",{className:"b-radio radio"},ae.createElement("input",{type:"radio",name:"rtype",checked:e===n,onChange:()=>this.setResultType(n)}),ae.createElement("span",{class:"check is-link"}),ae.createElement("span",{class:"control-label"},t))))))),ae.createElement("div",{className:"container margin-top"},ae.createElement("div",{className:"box"},ae.createElement("label",null,"Integer type:"),ae.createElement("div",{className:"radios"},function(){const t=[];return t[1]="signed",t[2]="unsigned",t}().map(((t,e)=>ae.createElement("label",{className:"b-radio radio"},ae.createElement("input",{type:"radio",name:"itype",checked:n===e,onChange:()=>this.setIntType(e)}),ae.createElement("span",{class:"check is-info"}),ae.createElement("span",{class:"control-label"},t))))))))}}class Se extends ae.Component{constructor(t){super(t)}copy=t=>{const e=t.target.innerText;navigator.clipboard.writeText(e).then((()=>{Ne.Notify.success("Text "+e+" copied")})).catch((t=>{Ne.Notify.failure("Error copying text: "+t)}))};render(){const{items:t,clearItems:e,isToggled:n}=this.props;return ae.createElement("nav",{className:n?"panel is-dark":"panel is-light"},ae.createElement("p",{className:"panel-heading"},"History"),ae.createElement("div",{className:0===t.length?"panel-block is-hidden":"panel-block"},ae.createElement("button",{onClick:e,className:"button is-danger is-outlined is-fullwidth is-small"},"Clear the history")),[...t].slice(0,30).map((t=>ae.createElement("div",{key:t.toString(),className:"panel-block"},ae.createElement("div",{className:"field"},ae.createElement("div",{className:"tags"},ae.createElement("a",{href:"javascript:",onClick:this.copy,className:"tag is-link is-light","data-tooltip":t.info},t.output)),ae.createElement("div",{className:"tags"},ae.createElement("a",{href:"javascript:",onClick:this.copy,className:"tag is-primary is-light","data-tooltip":t.info},t.input)))))))}}var Ae,Oe,De=St(((t,e)=>{let{onToggle:n,toggled:o,toggle:i,duration:r=500,reversed:a=!1,title:s="Toggle theme",forceMotion:l=!1,idPrefix:c="",type:u="button",style:f,"aria-label":p="Toggle theme",className:m,children:d,..._}=t,[h,y]=nt(!1),g=void 0===o?h:o,v=`theme-toggle ${g?"theme-toggle--toggled":""} ${l?"theme-toggle--force-motion":""} ${a?"theme-toggle--reversed":""} ${m||""}`.trim(),b={...f,"--theme-toggle__expand--duration":`${r}ms`};return ae.createElement("button",{ref:e,type:u,className:v,style:b,"aria-label":p,title:s,onClick:()=>{let t=!g;(i||y)(t),n&&n(t)},..._},d,ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",fill:"currentColor",className:"theme-toggle__expand",viewBox:"0 0 32 32"},ae.createElement("clipPath",{id:`${c}theme-toggle__expand__cutout`},ae.createElement("path",{d:"M0-11h25a1 1 0 0017 13v30H0Z"})),ae.createElement("g",{clipPath:`url(#${c}theme-toggle__expand__cutout)`},ae.createElement("circle",{cx:16,cy:16,r:8.4}),ae.createElement("path",{d:"M18.3 3.2c0 1.3-1 2.3-2.3 2.3s-2.3-1-2.3-2.3S14.7.9 16 .9s2.3 1 2.3 2.3zm-4.6 25.6c0-1.3 1-2.3 2.3-2.3s2.3 1 2.3 2.3-1 2.3-2.3 2.3-2.3-1-2.3-2.3zm15.1-10.5c-1.3 0-2.3-1-2.3-2.3s1-2.3 2.3-2.3 2.3 1 2.3 2.3-1 2.3-2.3 2.3zM3.2 13.7c1.3 0 2.3 1 2.3 2.3s-1 2.3-2.3 2.3S.9 17.3.9 16s1-2.3 2.3-2.3zm5.8-7C9 7.9 7.9 9 6.7 9S4.4 8 4.4 6.7s1-2.3 2.3-2.3S9 5.4 9 6.7zm16.3 21c-1.3 0-2.3-1-2.3-2.3s1-2.3 2.3-2.3 2.3 1 2.3 2.3-1 2.3-2.3 2.3zm2.4-21c0 1.3-1 2.3-2.3 2.3S23 7.9 23 6.7s1-2.3 2.3-2.3 2.4 1 2.4 2.3zM6.7 23C8 23 9 24 9 25.3s-1 2.3-2.3 2.3-2.3-1-2.3-2.3 1-2.3 2.3-2.3z"}))))})),Ue=De;var Me,ze,$e=function(){function t(r,a){if(r===a)return!0;if(r&&a&&"object"==typeof r&&"object"==typeof a){if(r.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(r)){if((s=r.length)!=a.length)return!1;for(l=s;0!=l--;)if(!t(r[l],a[l]))return!1;return!0}if(n&&r instanceof Map&&a instanceof Map){if(r.size!==a.size)return!1;for(u=r.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=r.entries();!(l=u.next()).done;)if(!t(l.value[1],a.get(l.value[0])))return!1;return!0}if(o&&r instanceof Set&&a instanceof Set){if(r.size!==a.size)return!1;for(u=r.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(r)&&ArrayBuffer.isView(a)){if((s=r.length)!=a.length)return!1;for(l=s;0!=l--;)if(r[l]!==a[l])return!1;return!0}if(r.constructor===RegExp)return r.source===a.source&&r.flags===a.flags;if(r.valueOf!==Object.prototype.valueOf&&"function"==typeof r.valueOf&&"function"==typeof a.valueOf)return r.valueOf()===a.valueOf();if(r.toString!==Object.prototype.toString&&"function"==typeof r.toString&&"function"==typeof a.toString)return r.toString()===a.toString();if((s=(c=Object.keys(r)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(e&&r instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!r.$$typeof)&&!t(r[c[l]],a[c[l]]))return!1;return!0}return r!=r&&a!=a}if(Oe)return Ae;Oe=1;var e="undefined"!=typeof Element,n="function"==typeof Map,o="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;return Ae=function(e,n){try{return t(e,n)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}},Ae}(),Pe=xe($e);var Le,We,He=(ze||(ze=1,Me=function(t,e,n,o,i,r,a,s){if(void 0===e)throw new Error("invariant requires an error message argument");if(!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,i,r,a,s],u=0;(l=new Error(e.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}),Me),je=xe(He);var Re=(We||(We=1,Le=function(t,e,n,o){var i=n?n.call(o,t,e):void 0;if(void 0!==i)return!!i;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var r=Object.keys(t),a=Object.keys(e);if(r.length!==a.length)return!1;for(var s,l=Object.prototype.hasOwnProperty.bind(e),c=0;c(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))(qe||{}),Ve={rel:["amphtml","canonical","alternate"]},Je={type:["application/ld+json"]},Ye={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},Qe=Object.values(qe),Ge={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Ke=Object.entries(Ge).reduce(((t,[e,n])=>(t[n]=e,t)),{}),Ze="data-rh",Xe="defaultTitle",tn="defer",en="encodeSpecialCharacters",nn="onChangeClientState",on="titleTemplate",rn="prioritizeSeoTags",an=(t,e)=>{for(let n=t.length-1;0<=n;n-=1){const o=t[n];if(Object.prototype.hasOwnProperty.call(o,e))return o[e]}return null},sn=t=>{let e=an(t,"title");const n=an(t,on);if(Array.isArray(e)&&(e=e.join("")),n&&e)return n.replace(/%s/g,(()=>e));const o=an(t,Xe);return e||o||void 0},ln=t=>an(t,nn)||(()=>{}),cn=(t,e)=>e.filter((e=>void 0!==e[t])).map((e=>e[t])).reduce(((t,e)=>({...t,...e})),{}),un=(t,e)=>e.filter((t=>void 0!==t.base)).map((t=>t.base)).reverse().reduce(((e,n)=>{if(!e.length){const o=Object.keys(n);for(let i=0;i{const o={};return n.filter((e=>!!Array.isArray(e[t])||(void 0!==e[t]&&(t=>{console&&"function"==typeof console.warn&&console.warn(t)})(`Helmet: ${t} should be of type "Array". Instead found type "${typeof e[t]}"`),!1))).map((e=>e[t])).reverse().reduce(((t,n)=>{const i={};n.filter((t=>{let n;const r=Object.keys(t);for(let o=0;ot.push(e)));const r=Object.keys(i);for(let t=0;t{if(Array.isArray(t)&&t.length)for(let n=0;nArray.isArray(t)?t.join(""):t,dn=(t,e)=>Array.isArray(t)?t.reduce(((t,n)=>(((t,e)=>{const n=Object.keys(t);for(let o=0;o({...t,[e]:void 0}),hn=["noscript","script","style"],yn=(t,e=!0)=>!1===e?t+"":(t+"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),gn=t=>Object.keys(t).reduce(((e,n)=>{const o=void 0===t[n]?`${n}`:`${n}="${t[n]}"`;return e?`${e} ${o}`:o}),""),vn=(t,e={})=>Object.keys(t).reduce(((e,n)=>(e[Ge[n]||n]=t[n],e)),e),bn=(t,e)=>e.map(((e,n)=>{const o={key:n,[Ze]:!0};return Object.keys(e).forEach((t=>{const n=Ge[t]||t;if("innerHTML"===n||"cssText"===n){const t=e.innerHTML||e.cssText;o.dangerouslySetInnerHTML={__html:t}}else o[n]=e[t]})),ae.createElement(t,o)})),xn=(t,e,n=!0)=>"title"===t?{toComponent:()=>((t,e,n)=>{const o=vn(n,{key:e,[Ze]:!0});return[ae.createElement("title",o,e)]})(0,e.title,e.titleAttributes),toString:()=>((t,e,n,o)=>{const i=gn(n),r=mn(e);return i?`<${t} ${Ze}="true" ${i}>${yn(r,o)}`:`<${t} ${Ze}="true">${yn(r,o)}`})(t,e.title,e.titleAttributes,n)}:"bodyAttributes"===t||"htmlAttributes"===t?{toComponent:()=>vn(e),toString:()=>gn(e)}:{toComponent:()=>bn(t,e),toString:()=>((t,e,n=!0)=>e.reduce(((e,o)=>{const i=o,r=Object.keys(i).filter((t=>"innerHTML"!==t&&"cssText"!==t)).reduce(((t,e)=>{const o=void 0===i[e]?e:`${e}="${yn(i[e],n)}"`;return t?`${t} ${o}`:o}),""),a=i.innerHTML||i.cssText||"",s=-1===hn.indexOf(t);return`${e}<${t} ${Ze}="true" ${r}${s?"/>":`>${a}`}`}),""))(t,e,n)},wn=t=>{const{baseTag:e,bodyAttributes:n,encode:o=!0,htmlAttributes:i,noscriptTags:r,styleTags:a,title:s="",titleAttributes:l,prioritizeSeoTags:c}=t;let{linkTags:u,metaTags:f,scriptTags:p}=t,m={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:m,linkTags:u,metaTags:f,scriptTags:p}=(({metaTags:t,linkTags:e,scriptTags:n,encode:o})=>{const i=dn(t,Ye),r=dn(e,Ve),a=dn(n,Je);return{priorityMethods:{toComponent:()=>[...bn("meta",i.priority),...bn("link",r.priority),...bn("script",a.priority)],toString:()=>`${xn("meta",i.priority,o)} ${xn("link",r.priority,o)} ${xn("script",a.priority,o)}`},metaTags:i.default,linkTags:r.default,scriptTags:a.default}})(t)),{priority:m,base:xn("base",e,o),bodyAttributes:xn("bodyAttributes",n,o),htmlAttributes:xn("htmlAttributes",i,o),link:xn("link",u,o),meta:xn("meta",f,o),noscript:xn("noscript",r,o),script:xn("script",p,o),style:xn("style",a,o),title:xn("title",{title:s,titleAttributes:l},o)}},kn=[],In=!("undefined"==typeof window||!window.document||!window.document.createElement),Nn=class{instances=[];canUseDOM=In;context;value={setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?kn:this.instances,add:t=>{(this.canUseDOM?kn:this.instances).push(t)},remove:t=>{const e=(this.canUseDOM?kn:this.instances).indexOf(t);(this.canUseDOM?kn:this.instances).splice(e,1)}}};constructor(t,e){this.context=t,this.canUseDOM=e||!1,e||(t.helmet=wn({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Tn={},Cn=ae.createContext(Tn),En=class t extends x{static canUseDOM=In;helmetData;constructor(e){super(e),this.helmetData=new Nn(this.props.context||{},t.canUseDOM)}render(){return ae.createElement(Cn.Provider,{value:this.helmetData.value},this.props.children)}},Bn=(t,e)=>{const n=document.head||document.querySelector("head"),o=n.querySelectorAll(`${t}[${Ze}]`),i=[].slice.call(o),r=[];let a;return e&&e.length&&e.forEach((e=>{const n=document.createElement(t);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))if("innerHTML"===t)n.innerHTML=e.innerHTML;else if("cssText"===t)n.styleSheet?n.styleSheet.cssText=e.cssText:n.appendChild(document.createTextNode(e.cssText));else{const o=t,i=void 0===e[o]?"":e[o];n.setAttribute(t,i)}n.setAttribute(Ze,"true"),i.some(((t,e)=>(a=e,n.isEqualNode(t))))?i.splice(a,1):r.push(n)})),i.forEach((t=>t.parentNode?.removeChild(t))),r.forEach((t=>n.appendChild(t))),{oldTags:i,newTags:r}},Sn=(t,e)=>{const n=document.getElementsByTagName(t)[0];if(!n)return;const o=n.getAttribute(Ze),i=o?o.split(","):[],r=[...i],a=Object.keys(e);for(const t of a){const o=e[t]||"";n.getAttribute(t)!==o&&n.setAttribute(t,o),-1===i.indexOf(t)&&i.push(t);const a=r.indexOf(t);-1!==a&&r.splice(a,1)}for(let t=r.length-1;0<=t;t-=1)n.removeAttribute(r[t]);i.length===r.length?n.removeAttribute(Ze):n.getAttribute(Ze)!==a.join(",")&&n.setAttribute(Ze,a.join(","))},An=(t,e)=>{const{baseTag:n,bodyAttributes:o,htmlAttributes:i,linkTags:r,metaTags:a,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:f,titleAttributes:p}=t;Sn("body",o),Sn("html",i),((t,e)=>{void 0!==t&&document.title!==t&&(document.title=mn(t)),Sn("title",e)})(f,p);const m={baseTag:Bn("base",n),linkTags:Bn("link",r),metaTags:Bn("meta",a),noscriptTags:Bn("noscript",s),scriptTags:Bn("script",c),styleTags:Bn("style",u)},d={},_={};Object.keys(m).forEach((t=>{const{newTags:e,oldTags:n}=m[t];e.length&&(d[t]=e),n.length&&(_[t]=m[t].oldTags)})),e&&e(),l(t,d,_)},On=null,Dn=t=>{On&&cancelAnimationFrame(On),t.defer?On=requestAnimationFrame((()=>{An(t,(()=>{On=null}))})):(An(t),On=null)},Un=class extends x{rendered=!1;shouldComponentUpdate(t){return!Fe(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:e}=this.props.context;let n=null;const o=(t=>({baseTag:un(["href"],t),bodyAttributes:cn("bodyAttributes",t),defer:an(t,tn),encode:an(t,en),htmlAttributes:cn("htmlAttributes",t),linkTags:fn("link",["rel","href"],t),metaTags:fn("meta",["name","charset","http-equiv","property","itemprop"],t),noscriptTags:fn("noscript",["innerHTML"],t),onChangeClientState:ln(t),scriptTags:fn("script",["src","innerHTML"],t),styleTags:fn("style",["cssText"],t),title:sn(t),titleAttributes:cn("titleAttributes",t),prioritizeSeoTags:pn(t,rn)}))(t.get().map((t=>{const e={...t.props};return delete e.context,e})));En.canUseDOM?Dn(o):wn&&(n=wn(o)),e(n)}init(){if(!this.rendered){this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}}render(){return this.init(),null}},Mn=class extends x{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(t){return!Pe(_n(this.props,"helmetData"),_n(t,"helmetData"))}mapNestedChildrenToProps(t,e){if(!e)return null;switch(t.type){case"script":case"noscript":return{innerHTML:e};case"style":return{cssText:e};default:throw new Error(`<${t.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(t,e,n,o){return{...e,[t.type]:[...e[t.type]||[],{...n,...this.mapNestedChildrenToProps(t,o)}]}}mapObjectTypeChildren(t,e,n,o){switch(t.type){case"title":return{...e,[t.type]:o,titleAttributes:{...n}};case"body":return{...e,bodyAttributes:{...n}};case"html":return{...e,htmlAttributes:{...n}};default:return{...e,[t.type]:{...n}}}}mapArrayTypeChildrenToProps(t,e){let n={...e};return Object.keys(t).forEach((e=>{n={...n,[e]:t[e]}})),n}warnOnInvalidChildren(t,e){return je(Qe.some((e=>t.type===e)),"function"==typeof t.type?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Qe.join(", ")} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`),je(!e||"string"==typeof e||Array.isArray(e)&&!e.some((t=>"string"!=typeof t)),`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(t,e){let n={};return ae.Children.forEach(t,(t=>{if(!t||!t.props)return;const{children:o,...i}=t.props,r=Object.keys(i).reduce(((t,e)=>(t[Ke[e]||e]=i[e],t)),{});let{type:a}=t;switch("symbol"==typeof a?a=a.toString():this.warnOnInvalidChildren(t,o),a){case"Symbol(react.fragment)":e=this.mapChildrenToProps(o,e);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(t,n,r,o);break;default:e=this.mapObjectTypeChildren(t,e,r,o)}})),this.mapArrayTypeChildrenToProps(n,e)}render(){const{children:t,...e}=this.props;let n={...e},{helmetData:o}=e;if(t&&(n=this.mapChildrenToProps(t,n)),o&&!(o instanceof Nn)){o=new Nn(o.context,!0),delete n.helmetData}return o?ae.createElement(Un,{...n,context:o.value}):ae.createElement(Cn.Consumer,null,(t=>ae.createElement(Un,{...n,context:t})))}},zn=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function $n(t){if(!function(t){return"string"==typeof t&&zn.test(t)}(t))throw TypeError("Invalid UUID");let e;return Uint8Array.of((e=parseInt(t.slice(0,8),16))>>>24,255&e>>>16,255&e>>>8,255&e,(e=parseInt(t.slice(9,13),16))>>>8,255&e,(e=parseInt(t.slice(14,18),16))>>>8,255&e,(e=parseInt(t.slice(19,23),16))>>>8,255&e,255&(e=parseInt(t.slice(24,36),16))/1099511627776,255&e/4294967296,255&e>>>24,255&e>>>16,255&e>>>8,255&e)}const Pn=[];for(let t=0;256>t;++t)Pn.push((t+256).toString(16).slice(1));function Ln(t,e=0){return(Pn[t[e+0]]+Pn[t[e+1]]+Pn[t[e+2]]+Pn[t[e+3]]+"-"+Pn[t[e+4]]+Pn[t[e+5]]+"-"+Pn[t[e+6]]+Pn[t[e+7]]+"-"+Pn[t[e+8]]+Pn[t[e+9]]+"-"+Pn[t[e+10]]+Pn[t[e+11]]+Pn[t[e+12]]+Pn[t[e+13]]+Pn[t[e+14]]+Pn[t[e+15]]).toLowerCase()}let Wn;const Hn=new Uint8Array(16);function jn(){if(!Wn){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Wn=crypto.getRandomValues.bind(crypto)}return Wn(Hn)}const Rn={};function Fn(t,e,n){let o;const i=t?._v6??!1;if(t){const e=Object.keys(t);1===e.length&&"_v6"===e[0]&&(t=void 0)}if(t)o=qn(t.random??t.rng?.()??jn(),t.msecs,t.nsecs,t.clockseq,t.node,e,n);else{const t=Date.now(),r=jn();(function(t,e,n){t.msecs??=-1/0,t.nsecs??=0,e===t.msecs?(t.nsecs++,1e4<=t.nsecs&&(t.node=void 0,t.nsecs=0)):e>t.msecs?t.nsecs=0:e>>24,r[a++]=255&s>>>16,r[a++]=255&s>>>8,r[a++]=255&s;const l=268435455&e/4294967296*1e4;r[a++]=255&l>>>8,r[a++]=255&l,r[a++]=16|15&l>>>24,r[a++]=255&l>>>16,r[a++]=128|o>>>8,r[a++]=255&o;for(let t=0;6>t;++t)r[a++]=i[t];return r}function Vn(t){const e=function(t){return Uint8Array.of((15&t[6])<<4|15&t[7]>>4,(15&t[7])<<4|(240&t[4])>>4,(15&t[4])<<4|(240&t[5])>>4,(15&t[5])<<4|(240&t[0])>>4,(15&t[0])<<4|(240&t[1])>>4,(15&t[1])<<4|(240&t[2])>>4,96|15&t[2],t[3],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}("string"==typeof t?$n(t):t);return"string"==typeof t?Ln(e):e}var Jn={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Yn(t,e,n){if(Jn.randomUUID&&!e&&!t)return Jn.randomUUID();const o=(t=t||{}).random||(t.rng||jn)();return o[6]=64|15&o[6],o[8]=128|63&o[8],Ln(o)}function Qn(t,e,n){t??={};let o=Fn({...t,_v6:!0},new Uint8Array(16));return o=Vn(o),Ln(o)}const Gn={};function Kn(t,e,n){let o;{const t=Date.now(),i=jn();(function(t,e,n){t.msecs??=-1/0,t.seq??=0,e>t.msecs?(t.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],t.msecs=e):(t.seq=0|t.seq+1,0===t.seq&&t.msecs++)})(Gn,t,i),o=function(t,e,n,o,i=0){return o||(o=new Uint8Array(16),i=0),e??=Date.now(),n??=127*t[6]<<24|t[7]<<16|t[8]<<8|t[9],o[i++]=255&e/1099511627776,o[i++]=255&e/4294967296,o[i++]=255&e/16777216,o[i++]=255&e/65536,o[i++]=255&e/256,o[i++]=255&e,o[i++]=112|15&n>>>28,o[i++]=255&n>>>20,o[i++]=128|63&n>>>14,o[i++]=255&n>>>6,o[i++]=255&n<<2|3&t[10],o[i++]=t[11],o[i++]=t[12],o[i++]=t[13],o[i++]=t[14],o[i++]=t[15],o}(i,Gn.msecs,Gn.seq,e,n)}return Ln(o)}const Zn=["v1","v4","v6","v7","nil","max"];class Xn extends ae.Component{constructor(t){super(t)}generateUuid=(t,e)=>{if(!Zn.includes(t))return void Ne.Notify.failure(`Invalid type: ${t}`);const n={v1:Fn(),v4:Yn(),v6:Qn(),v7:Kn(),nil:"00000000-0000-0000-0000-000000000000",max:"ffffffff-ffff-ffff-ffff-ffffffffffff"}[t];navigator.clipboard.writeText(n).then((()=>{Ne.Notify.success(`Text ${n} copied`)})).catch((t=>{Ne.Notify.failure(`Error copying text: ${t}`)})),e(n)};render(){const[t,e]=ae.useState(localStorage.getItem("uuidType")||"v4");ae.useEffect((()=>{localStorage.setItem("uuidType",t)}),[t]);const[n,o]=ae.useState(""),{isToggled:i,setToggle:r}=this.props;return ae.createElement(En,null,ae.createElement("nav",{className:i?"navbar is-dark":"navbar is-light",role:"navigation","aria-label":"main navigation"},ae.createElement(Mn,null,ae.createElement("html",{lang:"en",className:i?"theme-dark":"theme-light"})),ae.createElement("div",{className:"container"},ae.createElement("div",{className:"navbar-brand"},ae.createElement("a",{className:"navbar-item",href:"./"},ae.createElement("img",{src:"./android-chrome-192x192.png"}))),ae.createElement("div",{className:"navbar-menu"},ae.createElement("div",{className:"navbar-start"},ae.createElement("a",{className:"navbar-item",href:"./"},"UUIDConv UI"),ae.createElement("div",{className:"navbar-item"},ae.createElement("div",{className:"field has-addons"},ae.createElement("p",{className:"control"},ae.createElement("span",{className:"select is-link is-small"},ae.createElement("select",{onChange:t=>e(t.target.value)},Zn.map((e=>ae.createElement("option",{key:e,value:e,selected:t===e},e)))))),ae.createElement("p",{className:"control"},ae.createElement("input",{readOnly:!0,size:40,className:"input is-link is-small",type:"text",value:n,placeholder:"Online UUID Generator"})),ae.createElement("p",{className:"control"},ae.createElement("button",{className:"button is-link is-small",onClick:()=>this.generateUuid(t,o)},"Generate"))))),ae.createElement("div",{className:"navbar-end"},ae.createElement(Ue,{className:"navbar-item",duration:750,toggled:i,toggle:t=>r(t)}))))))}}class to extends ae.Component{state={items:[]};constructor(t){super(t)}componentDidMount(){const t=JSON.parse(localStorage.getItem("uuidItems"))||[];let e;const n={};for(const o of t)e=new Ee(o.input,o.output,o.info),n[e.toString()]=e;this.setState({items:Object.values(n)})}componentDidUpdate(t,e){let n=[...this.state.items].slice(0,100);e.items!==n&&localStorage.setItem("uuidItems",JSON.stringify(n))}render(){const[t,e]=ae.useState(JSON.parse(localStorage.getItem("theme"))||!1);ae.useEffect((()=>{localStorage.setItem("theme",JSON.stringify(t))}),[t]);const{items:n}=this.state;return ae.createElement("div",{className:"uuid-ui--wrapper"},ae.createElement(Xn,{isToggled:t,setToggle:e}),ae.createElement("div",{className:"container margin-top"},ae.createElement("div",{className:"columns is-centered"},ae.createElement("div",{className:"column is-three-fifths",id:"input-cp"},ae.createElement(Be,{items:n,setItems:t=>this.setState({items:t})})),ae.createElement("div",{className:"column is-two-fifths is-narrow",id:"history-cp"},ae.createElement(Se,{items:n,clearItems:()=>this.setState({items:[]}),isToggled:t})))))}}ae.render(ae.createElement(ae.StrictMode,null,ae.createElement(to,null)),document.getElementById("app")); -//# sourceMappingURL=bundle-CywuNhiS.js.map diff --git a/public/assets/bundle-CywuNhiS.js.map b/public/assets/bundle-CywuNhiS.js.map deleted file mode 100644 index 7504784..0000000 --- a/public/assets/bundle-CywuNhiS.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bundle-CywuNhiS.js","sources":["../../node_modules/preact/dist/preact.module.js","../../node_modules/preact/hooks/dist/hooks.module.js","../../node_modules/preact/compat/dist/compat.module.js","../../src/uuid-formatter.js","../../src/uuid-bytes.js","../../src/base64.js","../../src/object-parser.js","../../src/type-detector.js","../../src/uuid-high-low.js","../../node_modules/notiflix/build/notiflix-notify-aio.js","../../src/input.jsx","../../src/history.jsx","../../node_modules/@theme-toggles/react/dist/index.js","../../node_modules/react-fast-compare/index.js","../../node_modules/invariant/browser.js","../../node_modules/shallowequal/index.js","../../node_modules/react-helmet-async/lib/index.esm.js","../../node_modules/uuid/dist/esm-browser/regex.js","../../node_modules/uuid/dist/esm-browser/parse.js","../../node_modules/uuid/dist/esm-browser/validate.js","../../node_modules/uuid/dist/esm-browser/stringify.js","../../node_modules/uuid/dist/esm-browser/rng.js","../../node_modules/uuid/dist/esm-browser/v1.js","../../node_modules/uuid/dist/esm-browser/v1ToV6.js","../../node_modules/uuid/dist/esm-browser/native.js","../../node_modules/uuid/dist/esm-browser/v4.js","../../node_modules/uuid/dist/esm-browser/v6.js","../../node_modules/uuid/dist/esm-browser/v7.js","../../src/nav.jsx","../../node_modules/uuid/dist/esm-browser/nil.js","../../node_modules/uuid/dist/esm-browser/max.js","../../src/app.jsx","../../src/index.jsx"],"sourcesContent":["var n,l,u,t,i,r,o,e,f,c,s,a,h,p={},v=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d=Array.isArray;function w(n,l){for(var u in l)n[u]=l[u];return n}function _(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function g(l,u,t){var i,r,o,e={};for(o in u)\"key\"==o?i=u[o]:\"ref\"==o?r=u[o]:e[o]=u[o];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),\"function\"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps)void 0===e[o]&&(e[o]=l.defaultProps[o]);return m(l,e,i,r,null)}function m(n,t,i,r,o){var e={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++u:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(e),e}function b(){return{current:null}}function k(n){return n.children}function x(n,l){this.props=n,this.context=l}function C(n,l){if(null==l)return n.__?C(n.__,n.__i+1):null;for(var u;lu&&i.sort(e));P.__r=0}function $(n,l,u,t,i,r,o,e,f,c,s){var a,h,y,d,w,_,g=t&&t.__k||v,m=l.length;for(f=I(u,l,g,f,m),a=0;a0?m(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=n,o.__b=n.__b+1,e=null,-1!==(c=o.__i=L(o,u,f,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null===e.__v?(-1==c&&h--,\"function\"!=typeof o.type&&(o.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,o.__u|=4))):n.__k[r]=null;if(a)for(r=0;r(null!=f&&0==(2&f.__u)?1:0))for(i=u-1,r=u+1;i>=0||r=0){if((f=l[i])&&0==(2&f.__u)&&o==f.key&&e===f.type)return i;i--}if(r2&&(f.children=arguments.length>3?n.call(arguments,2):t),m(l.type,f,i||l.key,r||l.ref,null)}function J(n,l){var u={__c:l=\"__cC\"+h++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.forEach(function(n){n.__e=!0,M(n)})},this.sub=function(n){u.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.delete(n),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=v.slice,l={__e:function(n,l,u,t){for(var i,r,o;l=l.__;)if((i=l.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),o=i.__d),o)return i.__E=i}catch(l){n=l}throw n}},u=0,t=function(n){return null!=n&&null==n.constructor},x.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=w({},this.state),\"function\"==typeof n&&(n=n(w({},u),this.props)),n&&w(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},x.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},x.prototype.render=k,i=[],o=\"function\"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e=function(n,l){return n.__v.__b-l.__v.__b},P.__r=0,f=/(PointerCapture)$|Capture$/i,c=0,s=O(!1),a=O(!0),h=0;export{x as Component,k as Fragment,G as cloneElement,J as createContext,g as createElement,b as createRef,g as h,E as hydrate,t as isValidElement,l as options,D as render,H as toChildArray};\n//# sourceMappingURL=preact.module.js.map\n","import{options as n}from\"preact\";var t,r,u,i,o=0,f=[],c=n,e=c.__b,a=c.__r,v=c.diffed,l=c.__c,m=c.unmount,s=c.__;function d(n,t){c.__h&&c.__h(r,n,o||t),o=0;var u=r.__H||(r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({}),u.__[n]}function h(n){return o=1,p(D,n)}function p(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):D(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=r,!r.u)){var f=function(n,t,r){if(!o.__c.__H)return!0;var u=o.__c.__H.__.filter(function(n){return!!n.__c});if(u.every(function(n){return!n.__N}))return!c||c.call(this,n,t,r);var i=o.__c.props!==n;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}}),c&&c.call(this,n,t,r)||i};r.u=!0;var c=r.shouldComponentUpdate,e=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u}e&&e.call(this,n,t,r)},r.shouldComponentUpdate=f}return o.__N||o.__}function y(n,u){var i=d(t++,3);!c.__s&&C(i.__H,u)&&(i.__=n,i.i=u,r.__H.__h.push(i))}function _(n,u){var i=d(t++,4);!c.__s&&C(i.__H,u)&&(i.__=n,i.i=u,r.__h.push(i))}function A(n){return o=5,T(function(){return{current:n}},[])}function F(n,t,r){o=6,_(function(){return\"function\"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n))}function T(n,r){var u=d(t++,7);return C(u.__H,r)&&(u.__=n(),u.__H=r,u.__h=n),u.__}function q(n,t){return o=8,T(function(){return n},t)}function x(n){var u=r.context[n.__c],i=d(t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function P(n,t){c.useDebugValue&&c.useDebugValue(t?t(n):n)}function b(n){var u=d(t++,10),i=h();return u.__=n,r.componentDidCatch||(r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n)}),[i[0],function(){i[1](void 0)}]}function g(){var n=d(t++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__=\"P\"+i[0]+\"-\"+i[1]++}return n.__}function j(){for(var n;n=f.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(z),n.__H.__h.forEach(B),n.__H.__h=[]}catch(t){n.__H.__h=[],c.__e(t,n.__v)}}c.__b=function(n){r=null,e&&e(n)},c.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),s&&s(n,t)},c.__r=function(n){a&&a(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(i.__h.forEach(z),i.__h.forEach(B),i.__h=[],t=0)),u=r},c.diffed=function(n){v&&v(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==f.push(t)&&i===c.requestAnimationFrame||((i=c.requestAnimationFrame)||w)(j)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),u=r=null},c.__c=function(n,t){t.some(function(n){try{n.__h.forEach(z),n.__h=n.__h.filter(function(n){return!n.__||B(n)})}catch(r){t.some(function(n){n.__h&&(n.__h=[])}),t=[],c.__e(r,n.__v)}}),l&&l(n,t)},c.unmount=function(n){m&&m(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{z(n)}catch(n){t=n}}),r.__H=void 0,t&&c.__e(t,r.__v))};var k=\"function\"==typeof requestAnimationFrame;function w(n){var t,r=function(){clearTimeout(u),k&&cancelAnimationFrame(t),setTimeout(n)},u=setTimeout(r,100);k&&(t=requestAnimationFrame(r))}function z(n){var t=r,u=n.__c;\"function\"==typeof u&&(n.__c=void 0,u()),r=t}function B(n){var t=r;n.__c=n.__(),r=t}function C(n,t){return!n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function D(n,t){return\"function\"==typeof t?t(n):t}export{q as useCallback,x as useContext,P as useDebugValue,y as useEffect,b as useErrorBoundary,g as useId,F as useImperativeHandle,_ as useLayoutEffect,T as useMemo,p as useReducer,A as useRef,h as useState};\n//# sourceMappingURL=hooks.module.js.map\n","import{Component as n,createElement as t,options as e,toChildArray as r,Fragment as u,render as o,hydrate as i,createContext as c,createRef as f,cloneElement as l}from\"preact\";export{Component,Fragment,createContext,createElement,createRef}from\"preact\";import{useState as a,useLayoutEffect as s,useEffect as h,useCallback as v,useContext as d,useDebugValue as p,useId as m,useImperativeHandle as y,useMemo as _,useReducer as b,useRef as S}from\"preact/hooks\";export*from\"preact/hooks\";function g(n,t){for(var e in n)if(\"__source\"!==e&&!(e in t))return!0;for(var r in t)if(\"__source\"!==r&&n[r]!==t[r])return!0;return!1}function E(n,t){var e=t(),r=a({t:{__:e,u:t}}),u=r[0].t,o=r[1];return s(function(){u.__=e,u.u=t,C(u)&&o({t:u})},[n,e,t]),h(function(){return C(u)&&o({t:u}),n(function(){C(u)&&o({t:u})})},[n]),e}function C(n){var t,e,r=n.u,u=n.__;try{var o=r();return!((t=u)===(e=o)&&(0!==t||1/t==1/e)||t!=t&&e!=e)}catch(n){return!0}}function x(n){n()}function R(n){return n}function w(){return[!1,x]}var k=s;function I(n,t){this.props=n,this.context=t}function N(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return!r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:g(this.props,n)}function u(e){return this.shouldComponentUpdate=r,t(n,e)}return u.displayName=\"Memo(\"+(n.displayName||n.name)+\")\",u.prototype.isReactComponent=!0,u.__f=!0,u}(I.prototype=new n).isPureReactComponent=!0,I.prototype.shouldComponentUpdate=function(n,t){return g(this.props,n)||g(this.state,t)};var M=e.__b;e.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),M&&M(n)};var T=\"undefined\"!=typeof Symbol&&Symbol.for&&Symbol.for(\"react.forward_ref\")||3911;function A(n){function t(t){if(!(\"ref\"in t))return n(t,null);var e=t.ref;delete t.ref;var r=n(t,e);return t.ref=e,r}return t.$$typeof=T,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName=\"ForwardRef(\"+(n.displayName||n.name)+\")\",t}var D=function(n,t){return null==n?null:r(r(n).map(t))},L={map:D,forEach:D,count:function(n){return n?r(n).length:0},only:function(n){var t=r(n);if(1!==t.length)throw\"Children.only\";return t[0]},toArray:r},O=e.__e;e.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);O(n,t,e,r)};var F=e.unmount;function U(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){\"function\"==typeof n.__c&&n.__c()}),n.__c.__H=null),null!=(n=function(n,t){for(var e in t)n[e]=t[e];return n}({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return U(n,t,e)})),n}function V(n,t,e){return n&&e&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return V(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.appendChild(n.__e),n.__c.__e=!0,n.__c.__P=e)),n}function W(){this.__u=0,this.o=null,this.__b=null}function P(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function j(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n},function(n){u=n}),u)throw u;if(!r)throw e;return t(r,o)}return o.displayName=\"Lazy\",o.__f=!0,o}function z(){this.i=null,this.l=null}e.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&32&n.__u&&(n.type=null),F&&F(n)},(W.prototype=new n).__c=function(n,t){var e=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(e);var u=P(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(c):c())};e.__R=i;var c=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=V(n,n.__c.__P,n.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i)},W.prototype.componentWillUnmount=function(){this.o=[]},W.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement(\"div\"),o=this.__v.__k[0].__c;this.__v.__k[0]=U(this.__b,r,o.__O=o.__P)}this.__b=null}var i=e.__a&&t(u,null,n.fallback);return i&&(i.__u&=-33),[t(u,null,e.__a?null:n.children),i]};var B=function(n,t,e){if(++e[1]===e[0]&&n.l.delete(t),n.props.revealOrder&&(\"t\"!==n.props.revealOrder[0]||!n.l.size))for(e=n.i;e;){for(;e.length>3;)e.pop()();if(e[1]>>1,1),e.h.removeChild(n)}}),o(t(H,{context:e.context},n.__v),e.v)}function Y(n,e){var r=t(Z,{__v:n,h:e});return r.containerInfo=e,r}(z.prototype=new n).__a=function(n){var t=this,e=P(t.__v),r=t.l.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),B(t,n,r)):u()};e?e(o):o()}},z.prototype.render=function(n){this.i=null,this.l=new Map;var t=r(n.children);n.revealOrder&&\"b\"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.l.set(t[e],this.i=[1,0,this.i]);return n.children},z.prototype.componentDidUpdate=z.prototype.componentDidMount=function(){var n=this;this.l.forEach(function(t,e){B(n,e,t)})};var $=\"undefined\"!=typeof Symbol&&Symbol.for&&Symbol.for(\"react.element\")||60103,q=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,G=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,J=/[A-Z0-9]/g,K=\"undefined\"!=typeof document,Q=function(n){return(\"undefined\"!=typeof Symbol&&\"symbol\"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function X(n,t,e){return null==t.__k&&(t.textContent=\"\"),o(n,t),\"function\"==typeof e&&e(),n?n.__c:null}function nn(n,t,e){return i(n,t),\"function\"==typeof e&&e(),n?n.__c:null}n.prototype.isReactComponent={},[\"componentWillMount\",\"componentWillReceiveProps\",\"componentWillUpdate\"].forEach(function(t){Object.defineProperty(n.prototype,t,{configurable:!0,get:function(){return this[\"UNSAFE_\"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var tn=e.event;function en(){}function rn(){return this.cancelBubble}function un(){return this.defaultPrevented}e.event=function(n){return tn&&(n=tn(n)),n.persist=en,n.isPropagationStopped=rn,n.isDefaultPrevented=un,n.nativeEvent=n};var on,cn={enumerable:!1,configurable:!0,get:function(){return this.class}},fn=e.vnode;e.vnode=function(n){\"string\"==typeof n.type&&function(n){var t=n.props,e=n.type,u={},o=-1===e.indexOf(\"-\");for(var i in t){var c=t[i];if(!(\"value\"===i&&\"defaultValue\"in t&&null==c||K&&\"children\"===i&&\"noscript\"===e||\"class\"===i||\"className\"===i)){var f=i.toLowerCase();\"defaultValue\"===i&&\"value\"in t&&null==t.value?i=\"value\":\"download\"===i&&!0===c?c=\"\":\"translate\"===f&&\"no\"===c?c=!1:\"o\"===f[0]&&\"n\"===f[1]?\"ondoubleclick\"===f?i=\"ondblclick\":\"onchange\"!==f||\"input\"!==e&&\"textarea\"!==e||Q(t.type)?\"onfocus\"===f?i=\"onfocusin\":\"onblur\"===f?i=\"onfocusout\":G.test(i)&&(i=f):f=i=\"oninput\":o&&q.test(i)?i=i.replace(J,\"-$&\").toLowerCase():null===c&&(c=void 0),\"oninput\"===f&&u[i=f]&&(i=\"oninputCapture\"),u[i]=c}}\"select\"==e&&u.multiple&&Array.isArray(u.value)&&(u.value=r(t.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),\"select\"==e&&null!=u.defaultValue&&(u.value=r(t.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value})),t.class&&!t.className?(u.class=t.class,Object.defineProperty(u,\"className\",cn)):(t.className&&!t.class||t.class&&t.className)&&(u.class=u.className=t.className),n.props=u}(n),n.$$typeof=$,fn&&fn(n)};var ln=e.__r;e.__r=function(n){ln&&ln(n),on=n.__c};var an=e.diffed;e.diffed=function(n){an&&an(n);var t=n.props,e=n.__e;null!=e&&\"textarea\"===n.type&&\"value\"in t&&t.value!==e.value&&(e.value=null==t.value?\"\":t.value),on=null};var sn={ReactCurrentDispatcher:{current:{readContext:function(n){return on.__n[n.__c].props.value},useCallback:v,useContext:d,useDebugValue:p,useDeferredValue:R,useEffect:h,useId:m,useImperativeHandle:y,useInsertionEffect:k,useLayoutEffect:s,useMemo:_,useReducer:b,useRef:S,useState:a,useSyncExternalStore:E,useTransition:w}}},hn=\"18.3.1\";function vn(n){return t.bind(null,n)}function dn(n){return!!n&&n.$$typeof===$}function pn(n){return dn(n)&&n.type===u}function mn(n){return!!n&&!!n.displayName&&(\"string\"==typeof n.displayName||n.displayName instanceof String)&&n.displayName.startsWith(\"Memo(\")}function yn(n){return dn(n)?l.apply(null,arguments):n}function _n(n){return!!n.__k&&(o(null,n),!0)}function bn(n){return n&&(n.base||1===n.nodeType&&n)||null}var Sn=function(n,t){return n(t)},gn=function(n,t){return n(t)},En=u,Cn=dn,xn={useState:a,useId:m,useReducer:b,useEffect:h,useLayoutEffect:s,useInsertionEffect:k,useTransition:w,useDeferredValue:R,useSyncExternalStore:E,startTransition:x,useRef:S,useImperativeHandle:y,useMemo:_,useCallback:v,useContext:d,useDebugValue:p,version:\"18.3.1\",Children:L,render:X,hydrate:nn,unmountComponentAtNode:_n,createPortal:Y,createElement:t,createContext:c,createFactory:vn,cloneElement:yn,createRef:f,Fragment:u,isValidElement:dn,isElement:Cn,isFragment:pn,isMemo:mn,findDOMNode:bn,Component:n,PureComponent:I,memo:N,forwardRef:A,flushSync:gn,unstable_batchedUpdates:Sn,StrictMode:En,Suspense:W,SuspenseList:z,lazy:j,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:sn};export{L as Children,I as PureComponent,En as StrictMode,W as Suspense,z as SuspenseList,sn as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,yn as cloneElement,vn as createFactory,Y as createPortal,xn as default,bn as findDOMNode,gn as flushSync,A as forwardRef,nn as hydrate,Cn as isElement,pn as isFragment,mn as isMemo,dn as isValidElement,j as lazy,N as memo,X as render,x as startTransition,_n as unmountComponentAtNode,Sn as unstable_batchedUpdates,R as useDeferredValue,k as useInsertionEffect,E as useSyncExternalStore,w as useTransition,hn as version};\n//# sourceMappingURL=compat.module.js.map\n","'use strict';\n\n/**\n * Formats a UUID string into the standard UUID format.\n *\n * @param {string} input - The UUID string to format.\n * @return {string} The formatted UUID string.\n */\nexport function uuidFormatter(input) {\n // Check if the input string has a length of 32, which is the length of a standard UUID.\n if (input.length === 32) {\n // Slice the input string into parts and join them with hyphens to form the formatted UUID.\n // The first 8 characters are the first part.\n // The next 4 characters are the second part.\n // The next 4 characters are the third part.\n // The next 4 characters are the fourth part.\n // The remaining 8 characters are the fifth part.\n return (\n input.slice(0, 8) + '-' + // First part\n input.slice(8, 12) + '-' + // Second part\n input.slice(12, 16) + '-' + // Third part\n input.slice(16, 20) + '-' + // Fourth part\n input.slice(20, 32) // Fifth part\n );\n }\n\n // If the input string is not a standard UUID, return it as is.\n return input;\n}\n","'use strict';\n\nimport {uuidFormatter} from \"./uuid-formatter.js\";\n\n/**\n * Regular expression to match all non-alphanumeric characters in a UUID string.\n * Used to remove non-alphanumeric characters from the input when converting bytes to UUID.\n * @type {RegExp}\n */\nconst uuidAlf = /[^a-z0-9]/g; // eslint-disable-line no-useless-escape\n\n/**\n * Regular expression to split a UUID string into 2-character chunks.\n * Used to split UUID string into bytes when converting bytes to UUID.\n * @type {RegExp}\n */\nconst chunk = /.{1,2}/g;\n\n/**\n * Removes non-alphanumeric characters from a UUID string.\n * @param {string} input - The UUID string to be cleaned.\n * @returns {string|null} - The cleaned UUID string, or null if the input has an invalid length.\n */\nfunction _getUuid(input) {\n // Lowercase the input and remove all non-alphanumeric characters.\n const uuidStr = input.toLowerCase().replaceAll(uuidAlf, '')\n \n // Check if the cleaned UUID string has the correct length (32 characters).\n if (uuidStr.length !== 32) {\n // If the length is invalid, return null.\n return null\n }\n\n // Return the cleaned UUID string.\n return uuidStr\n}\n\n/**\n * Converts a UUID string to an array of bytes.\n * Each byte is represented as a decimal number.\n *\n * @param {string} input - The UUID string to be converted.\n * @returns {Array|null} - The array of bytes, or null if the input has an invalid length.\n */\nexport function uuidToBytes(input) {\n // Clean the input UUID string and check its length.\n const uuidStr = _getUuid(input)\n if (uuidStr === null) {\n return null\n }\n\n // Split the cleaned UUID string into 2-character chunks and convert each chunk to a decimal number.\n return uuidStr\n .match(chunk)\n .map(b => parseInt(b, 16))\n}\n\nexport function bytesToUuid(bytes) {\n return uuidFormatter(\n bytes.map(b => b.toString(16).padStart(2, '0')).join('')\n )\n}\n\n/**\n * Converts a UUID string to a JSON string representation of an array of bytes.\n * Each byte is represented as a decimal number.\n *\n * @param {string} input - The UUID string to be converted.\n * @returns {string|null} - The JSON string representation of an array of bytes, or null if the input has an invalid length.\n */\nexport function uuidToBytesString(input) {\n // Convert the UUID string to an array of bytes.\n const bytes = uuidToBytes(input)\n \n // If the input has an invalid length, return null.\n if (bytes === null) {\n return null\n }\n\n // Convert the array of bytes to a JSON string.\n return JSON.stringify(bytes)\n}\n","'use strict';\n\nimport {bytesToUuid, uuidToBytes} from \"./uuid-bytes.js\";\n\n/**\n * Converts a base64 standard representation of a UUID to the UUID string.\n *\n * @param {string} base64 - The base64 standard representation of a UUID.\n * @returns {string} - The UUID string.\n */\nexport function base64StdToUuid(base64) {\n // Decode the base64 string to bytes.\n const bytes = atob(base64)\n // Convert each character to its corresponding character code.\n .split('')\n .map(c => c.charCodeAt(0))\n // Convert the array of character codes to bytes.\n ;\n\n // Convert the bytes to the UUID string.\n return bytesToUuid(bytes);\n}\n\n/**\n * Converts a UUID string to a base64 standard representation of a UUID.\n *\n * @param {string} uuid - The UUID string to be converted.\n * @returns {string} - The base64 standard representation of the UUID.\n */\nexport function uuidToBase64Std(uuid) {\n // Convert the UUID string to bytes.\n const bytes = uuidToBytes(uuid);\n\n // Convert the bytes to a base64 string.\n // The apply() method is used to convert the Uint8Array to an arguments list\n // that can be passed to the String.fromCharCode() method.\n return btoa(\n String.fromCharCode.apply(null, new Uint8Array(bytes))\n );\n}\n","'use strict';\n\nconst rg = /\"?([a-zA-Z0-9]*)\"?:/g\nconst hlrg = /^(-?\\d+)[;:,](-?\\d+)$/\nconst trg = /[\"']?(-?\\d+)[\"']?/g\n\n/**\n * Parses a string representation of an object into a JavaScript object.\n * \n * @param {string} val - The string representation of the object.\n * @returns {Object} - The parsed object.\n */\nexport function objectParse(val) {\n // If the string starts with '[', it is a JSON array and needs to be parsed.\n if (val[0] === '[') {\n // Replace all occurrences of numbers with the same number without quotes.\n return JSON.parse(val.replace(trg, '$1'))\n }\n\n // If the string matches the regular expression for a high-low pair, split it into an array.\n if (val.match(hlrg)) {\n // Replace the high-low pair with the same numbers separated by semicolons.\n const split = val.replace(hlrg, '$1;$2').split(';')\n\n // Return an object with the high and low properties.\n return {\n high: split[0].toString(),\n low: split[1].toString()\n }\n }\n\n // Parse the string representation of the object.\n const obj = JSON.parse(val.replace(trg, '\"$1\"').replace(rg, '\"$1\":'))\n\n // Return an object with the high and low properties.\n return {\n high: obj.high,\n low: obj.low\n }\n}\n","'use strict';\n\nimport {base64StdToUuid} from \"./base64.js\";\nimport {objectParse} from \"./object-parser.js\";\n\n/**\n * Represents the type of UUID.\n *\n * @type {number}\n */\nexport const TYPE_UUID = 2 ** 0; // 0b0001\n\n/**\n * Represents the type of UUID represented as high-low pairs.\n *\n * @type {number}\n */\nexport const TYPE_HIGH_LOW = 2 ** 1; // 0b0010\n\n/**\n * Represents the type of UUID represented in base64 string.\n *\n * @type {number}\n */\nexport const TYPE_BASE64 = 2 ** 2; // 0b0100\n\n/**\n * Represents the type of UUID represented as bytes string.\n *\n * @type {number}\n */\nexport const TYPE_BYTES = 2 ** 3; // 0b1000\n\n/**\n * Represents the length of a UUID string.\n *\n * A UUID is a 128-bit value represented as a 36-character string.\n * Each character in the string represents a hexadecimal digit.\n *\n * @type {number}\n */\nconst UUID_LENGTH = 36; // 36 characters in a UUID string\n\n/**\n * Returns a list of UUID types and their corresponding names.\n *\n * @return {Object} An object with UUID types as keys and their corresponding names as values.\n */\nexport function uuidTypeList() {\n // Initialize an empty array to store the UUID types and their names.\n const list = []\n\n // Add each UUID type and its corresponding name to the list.\n list[TYPE_UUID] = 'uuid' // UUID type\n list[TYPE_BASE64] = 'base64' // Base64 type\n list[TYPE_HIGH_LOW] = 'high-low' // High-low type\n list[TYPE_BYTES] = 'bytes' // Bytes type\n\n // Return the list of UUID types and their names.\n return list\n}\n\n/**\n * Detects the type of the given input.\n *\n * The function attempts to parse the input as a JSON array (bytes-type) or\n * JSON object (high-low-type). If parsing succeeds, it returns the bytes-type\n * or high-low-type accordingly.\n *\n * If parsing fails, the function checks if the input can be parsed as a valid\n * base64-type UUID. If it can, the function returns the base64-type.\n *\n * If parsing fails for both bytes-type and base64-type, the function returns\n * the default UUID type.\n *\n * @param {string} input - The input to be parsed and detected.\n * @return {number} The type of the input.\n */\nexport function typeDetector(input) {\n // Attempt to parse the input as a JSON array (bytes-type) or JSON object\n // (high-low-type).\n try {\n // If the input can be parsed as a JSON array, return the bytes-type.\n return Array.isArray(objectParse(input))\n ? TYPE_BYTES\n // If the input can be parsed as a JSON object, return the high-low-type.\n : TYPE_HIGH_LOW;\n } catch (e) {\n // Do nothing if parsing fails.\n }\n\n // Attempt to parse the input as a valid base64-type UUID.\n try {\n // If the input can be parsed as a valid base64-type UUID with the correct\n // length, return the base64-type.\n if (base64StdToUuid(input).length === UUID_LENGTH) {\n return TYPE_BASE64;\n }\n } catch (e) {\n // Do nothing if parsing fails.\n }\n\n // If parsing fails for both bytes-type and base64-type, return the default\n // UUID type.\n return TYPE_UUID;\n}\n","'use strict';\n\nimport {bytesToUuid, uuidToBytes} from \"./uuid-bytes.js\";\n\n/**\n * Converts a UUID string to an object with high and low unsigned 64-bit integers.\n *\n * @param {string} input - The UUID string to convert.\n * @return {Object} An object with high and low unsigned 64-bit integers as strings,\n * or null if input is invalid.\n */\nexport function uuidToInts(input) {\n // Convert the UUID string to an array of BigInts.\n const v = uuidToBytes(input).map(i => BigInt(i))\n // If the conversion failed, return null.\n if (v === null) {\n return null\n }\n\n // Combine the bytes into high and low unsigned 64-bit integers.\n const high = BigInt(v[0] | v[1] << BigInt(8) | v[2] << BigInt(16) | v[3] << BigInt(24) |\n v[4] << BigInt(32) | v[5] << BigInt(40) | v[6] << BigInt(48) | v[7] << BigInt(56))\n\n const low = BigInt(v[8] | v[9] << BigInt(8) | v[10] << BigInt(16) | v[11] << BigInt(24) |\n v[12] << BigInt(32) | v[13] << BigInt(40) | v[14] << BigInt(48) | v[15] << BigInt(56))\n\n // Return the high and low integers as strings.\n return {\n // Convert the high and low integers to strings.\n high: BigInt.asIntN(64, high) + \"\",\n low: BigInt.asIntN(64, low) + \"\",\n }\n}\n\n/**\n * Converts two unsigned 64-bit integers to a UUID string.\n *\n * @param {string} high - The high unsigned 64-bit integer as a string.\n * @param {string} low - The low unsigned 64-bit integer as a string.\n * @return {string} The UUID string.\n */\nexport function intsToUuid(high, low) {\n // Convert the high and low integers to an array of bytes.\n return bytesToUuid([\n // Extract the bytes from the high integer.\n BigInt(high) & BigInt(0xff),\n BigInt(high) >> BigInt(8) & BigInt(0xff),\n BigInt(high) >> BigInt(16) & BigInt(0xff),\n BigInt(high) >> BigInt(24) & BigInt(0xff),\n BigInt(high) >> BigInt(32) & BigInt(0xff),\n BigInt(high) >> BigInt(40) & BigInt(0xff),\n BigInt(high) >> BigInt(48) & BigInt(0xff),\n BigInt(high) >> BigInt(56) & BigInt(0xff),\n // Extract the bytes from the low integer.\n BigInt(low) & BigInt(0xff),\n BigInt(low) >> BigInt(8) & BigInt(0xff),\n BigInt(low) >> BigInt(16) & BigInt(0xff),\n BigInt(low) >> BigInt(24) & BigInt(0xff),\n BigInt(low) >> BigInt(32) & BigInt(0xff),\n BigInt(low) >> BigInt(40) & BigInt(0xff),\n BigInt(low) >> BigInt(48) & BigInt(0xff),\n BigInt(low) >> BigInt(56) & BigInt(0xff),\n ])\n}\n\n/**\n * Converts a UUID string to an object with high and low unsigned 64-bit integers.\n *\n * @param {string} input - The UUID string to convert.\n * @return {Object} An object with high and low unsigned 64-bit integers as strings,\n * or null if input is invalid.\n */\nexport function uuidToUints(input) {\n // Convert the UUID string to an array of BigInts.\n const v = uuidToBytes(input).map(i => BigInt(i))\n // If the conversion failed, return null.\n if (v === null) {\n return null\n }\n\n // Combine the bytes into high and low unsigned 64-bit integers.\n const high = BigInt(\n v[7] | v[6] << BigInt(8) | v[5] << BigInt(16) | v[4] << BigInt(24) |\n v[3] << BigInt(32) | v[2] << BigInt(40) | v[1] << BigInt(48) | v[0] << BigInt(56)\n )\n\n const low = BigInt(\n v[15] | v[14] << BigInt(8) | v[13] << BigInt(16) | v[12] << BigInt(24) |\n v[11] << BigInt(32) | v[10] << BigInt(40) | v[9] << BigInt(48) | v[8] << BigInt(56)\n )\n\n // Return the high and low integers as strings.\n return {\n // Convert the high and low integers to unsigned 64-bit integers and convert them to strings.\n high: BigInt.asUintN(64, high) + \"\",\n low: BigInt.asUintN(64, low) + \"\",\n }\n}\n\n/**\n * Converts two unsigned 64-bit integers to a UUID string.\n *\n * @param {string} high - The high unsigned 64-bit integer as a string.\n * @param {string} low - The low unsigned 64-bit integer as a string.\n * @return {string} The UUID string.\n */\nexport function uintsToUuid(high, low) {\n // Convert the high and low integers to an array of bytes.\n return bytesToUuid([\n // Extract the most significant byte from the high integer.\n BigInt(high) >> BigInt(56) & BigInt(0xff),\n // Extract the next 7 bytes from the high integer.\n BigInt(high) >> BigInt(48) & BigInt(0xff),\n BigInt(high) >> BigInt(40) & BigInt(0xff),\n BigInt(high) >> BigInt(32) & BigInt(0xff),\n BigInt(high) >> BigInt(24) & BigInt(0xff),\n BigInt(high) >> BigInt(16) & BigInt(0xff),\n BigInt(high) >> BigInt(8) & BigInt(0xff),\n BigInt(high) & BigInt(0xff),\n // Extract the most significant byte from the low integer.\n BigInt(low) >> BigInt(56) & BigInt(0xff),\n // Extract the next 7 bytes from the low integer.\n BigInt(low) >> BigInt(48) & BigInt(0xff),\n BigInt(low) >> BigInt(40) & BigInt(0xff),\n BigInt(low) >> BigInt(32) & BigInt(0xff),\n BigInt(low) >> BigInt(24) & BigInt(0xff),\n BigInt(low) >> BigInt(16) & BigInt(0xff),\n BigInt(low) >> BigInt(8) & BigInt(0xff),\n BigInt(low) & BigInt(0xff),\n ])\n}\n","/*\n* Notiflix Notify AIO (https://notiflix.github.io)\n* Description: This file has been created automatically that using \"notiflix.js\", and \"notiflix.css\" files.\n* Version: 3.2.7\n* Author: Furkan (https://github.com/furcan)\n* Copyright 2019 - 2024 Notiflix, MIT License (https://opensource.org/licenses/MIT)\n*/\n\n/* global define */\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n define([], function () {\n return factory(root);\n });\n } else if (typeof module === 'object' && typeof module.exports === 'object') {\n module.exports = factory(root);\n } else {\n root.Notiflix = factory(root);\n }\n})(typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this, function (window) {\n\n 'use strict';\n\n // COMMON: SSR check: begin\n if (typeof window === 'undefined' && typeof window.document === 'undefined') {\n return false;\n }\n // COMMON: SSR check: end\n\n // COMMON: Variables: begin\n var notiflixNamespace = 'Notiflix';\n var notiflixConsoleDocs = '\\n\\nVisit documentation page to learn more: https://notiflix.github.io/documentation';\n var defaultFontFamily = '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif';\n // COMMON: Variables: end\n\n // NOTIFY: Default Settings: begin\n var typesNotify = {\n Success: 'Success',\n Failure: 'Failure',\n Warning: 'Warning',\n Info: 'Info',\n };\n var newNotifySettings;\n var notifySettings = {\n wrapID: 'NotiflixNotifyWrap', // can not customizable\n overlayID: 'NotiflixNotifyOverlay', // can not customizable\n width: '280px',\n position: 'right-top', // 'right-top' - 'right-bottom' - 'left-top' - 'left-bottom' - 'center-top' - 'center-bottom' - 'center-center'\n distance: '10px',\n opacity: 1,\n borderRadius: '5px',\n rtl: false,\n timeout: 3000,\n messageMaxLength: 110,\n backOverlay: false,\n backOverlayColor: 'rgba(0,0,0,0.5)',\n plainText: true,\n showOnlyTheLastOne: false,\n clickToClose: false,\n pauseOnHover: true,\n\n ID: 'NotiflixNotify',\n className: 'notiflix-notify',\n zindex: 4001,\n fontFamily: 'Quicksand',\n fontSize: '13px',\n cssAnimation: true,\n cssAnimationDuration: 400,\n cssAnimationStyle: 'fade', // 'fade' - 'zoom' - 'from-right' - 'from-top' - 'from-bottom' - 'from-left'\n closeButton: false,\n useIcon: true,\n useFontAwesome: false,\n fontAwesomeIconStyle: 'basic', // 'basic' - 'shadow'\n fontAwesomeIconSize: '34px',\n\n success: {\n background: '#32c682',\n textColor: '#fff',\n childClassName: 'notiflix-notify-success',\n notiflixIconColor: 'rgba(0,0,0,0.2)',\n fontAwesomeClassName: 'fas fa-check-circle',\n fontAwesomeIconColor: 'rgba(0,0,0,0.2)',\n backOverlayColor: 'rgba(50,198,130,0.2)',\n },\n\n failure: {\n background: '#ff5549',\n textColor: '#fff',\n childClassName: 'notiflix-notify-failure',\n notiflixIconColor: 'rgba(0,0,0,0.2)',\n fontAwesomeClassName: 'fas fa-times-circle',\n fontAwesomeIconColor: 'rgba(0,0,0,0.2)',\n backOverlayColor: 'rgba(255,85,73,0.2)',\n },\n\n warning: {\n background: '#eebf31',\n textColor: '#fff',\n childClassName: 'notiflix-notify-warning',\n notiflixIconColor: 'rgba(0,0,0,0.2)',\n fontAwesomeClassName: 'fas fa-exclamation-circle',\n fontAwesomeIconColor: 'rgba(0,0,0,0.2)',\n backOverlayColor: 'rgba(238,191,49,0.2)',\n },\n\n info: {\n background: '#26c0d3',\n textColor: '#fff',\n childClassName: 'notiflix-notify-info',\n notiflixIconColor: 'rgba(0,0,0,0.2)',\n fontAwesomeClassName: 'fas fa-info-circle',\n fontAwesomeIconColor: 'rgba(0,0,0,0.2)',\n backOverlayColor: 'rgba(38,192,211,0.2)',\n },\n };\n // NOTIFY: Default Settings: end\n\n // COMMON: Console Error: begin\n var commonConsoleError = function (message) {\n return console.error('%c ' + notiflixNamespace + ' Error ', 'padding:2px;border-radius:20px;color:#fff;background:#ff5549', '\\n' + message + notiflixConsoleDocs);\n };\n // COMMON: Console Error: end\n\n // COMMON: Check Head or Body: begin\n var commonCheckHeadOrBody = function (element) {\n if (!element) { element = 'head'; }\n if (window.document[element] === null) {\n commonConsoleError('\\nNotiflix needs to be appended to the \"<' + element + '>\" element, but you called it before the \"<' + element + '>\" element has been created.');\n return false;\n }\n return true;\n };\n // COMMON: Check Head or Body: end\n\n // COMMON: Set Internal CSS Codes: begin\n var commonSetInternalCSSCodes = function (getInternalCSSCodes, styleElementId) {\n // check doc head\n if (!commonCheckHeadOrBody('head')) { return false; }\n\n // internal css\n if (getInternalCSSCodes() !== null && !window.document.getElementById(styleElementId)) {\n var internalCSS = window.document.createElement('style');\n internalCSS.id = styleElementId;\n internalCSS.innerHTML = getInternalCSSCodes();\n window.document.head.appendChild(internalCSS);\n }\n };\n // COMMON: Set Internal CSS Codes: end\n\n // COMMON: Extend Options: begin\n var commonExtendOptions = function () {\n // variables\n var extended = {};\n var deep = false;\n var i = 0;\n // check if a deep merge\n if (Object.prototype.toString.call(arguments[0]) === '[object Boolean]') {\n deep = arguments[0];\n i++;\n }\n // merge the object into the extended object\n var merge = function (obj) {\n for (var prop in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, prop)) {\n // if property is an object, merge properties\n if (deep && Object.prototype.toString.call(obj[prop]) === '[object Object]') {\n extended[prop] = commonExtendOptions(extended[prop], obj[prop]);\n } else {\n extended[prop] = obj[prop];\n }\n }\n }\n };\n // loop through each object and conduct a merge\n for (; i < arguments.length; i++) {\n merge(arguments[i]);\n }\n return extended;\n };\n // COMMON: Extend Options: end\n\n // COMMON: Get Plaintext: begin\n var commonGetPlaintext = function (html) {\n var htmlPool = window.document.createElement('div');\n htmlPool.innerHTML = html;\n return htmlPool.textContent || htmlPool.innerText || '';\n };\n // COMMON: Get Plaintext: end\n\n // NOTIFY: Get Internal CSS Codes: begin\n var notifyGetInternalCSSCodes = function () {\n var notifyCSS = '[id^=NotiflixNotifyWrap]{pointer-events:none;position:fixed;z-index:4001;opacity:1;right:10px;top:10px;width:280px;max-width:96%;-webkit-box-sizing:border-box;box-sizing:border-box;background:transparent}[id^=NotiflixNotifyWrap].nx-flex-center-center{max-height:calc(100vh - 20px);overflow-x:hidden;overflow-y:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin:auto}[id^=NotiflixNotifyWrap]::-webkit-scrollbar{width:0;height:0}[id^=NotiflixNotifyWrap]::-webkit-scrollbar-thumb{background:transparent}[id^=NotiflixNotifyWrap]::-webkit-scrollbar-track{background:transparent}[id^=NotiflixNotifyWrap] *{-webkit-box-sizing:border-box;box-sizing:border-box}[id^=NotiflixNotifyOverlay]{-webkit-transition:background .3s ease-in-out;-o-transition:background .3s ease-in-out;transition:background .3s ease-in-out}[id^=NotiflixNotifyWrap]>div{pointer-events:all;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:\"Quicksand\",-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif;width:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:relative;margin:0 0 10px;border-radius:5px;background:#1e1e1e;color:#fff;padding:10px 12px;font-size:14px;line-height:1.4}[id^=NotiflixNotifyWrap]>div:last-child{margin:0}[id^=NotiflixNotifyWrap]>div.nx-with-callback{cursor:pointer}[id^=NotiflixNotifyWrap]>div.nx-with-icon{padding:8px;min-height:56px}[id^=NotiflixNotifyWrap]>div.nx-paused{cursor:auto}[id^=NotiflixNotifyWrap]>div.nx-notify-click-to-close{cursor:pointer}[id^=NotiflixNotifyWrap]>div.nx-with-close-button{padding:10px 36px 10px 12px}[id^=NotiflixNotifyWrap]>div.nx-with-icon.nx-with-close-button{padding:6px 36px 6px 6px}[id^=NotiflixNotifyWrap]>div>span.nx-message{cursor:inherit;font-weight:normal;font-family:inherit!important;word-break:break-all;word-break:break-word}[id^=NotiflixNotifyWrap]>div>span.nx-close-button{cursor:pointer;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;position:absolute;right:8px;top:0;bottom:0;margin:auto;color:inherit;width:20px;height:20px}[id^=NotiflixNotifyWrap]>div>span.nx-close-button:hover{-webkit-transform:rotate(90deg);transform:rotate(90deg)}[id^=NotiflixNotifyWrap]>div>span.nx-close-button>svg{position:absolute;width:16px;height:16px;right:2px;top:2px}[id^=NotiflixNotifyWrap]>div>.nx-message-icon{position:absolute;width:40px;height:40px;font-size:30px;line-height:40px;text-align:center;left:8px;top:0;bottom:0;margin:auto;border-radius:inherit}[id^=NotiflixNotifyWrap]>div>.nx-message-icon-fa.nx-message-icon-fa-shadow{color:inherit;background:rgba(0,0,0,.15);-webkit-box-shadow:inset 0 0 34px rgba(0,0,0,.2);box-shadow:inset 0 0 34px rgba(0,0,0,.2);text-shadow:0 0 10px rgba(0,0,0,.3)}[id^=NotiflixNotifyWrap]>div>span.nx-with-icon{position:relative;float:left;width:calc(100% - 40px);margin:0 0 0 40px;padding:0 0 0 10px;-webkit-box-sizing:border-box;box-sizing:border-box}[id^=NotiflixNotifyWrap]>div.nx-rtl-on>.nx-message-icon{left:auto;right:8px}[id^=NotiflixNotifyWrap]>div.nx-rtl-on>span.nx-with-icon{padding:0 10px 0 0;margin:0 40px 0 0}[id^=NotiflixNotifyWrap]>div.nx-rtl-on>span.nx-close-button{right:auto;left:8px}[id^=NotiflixNotifyWrap]>div.nx-with-icon.nx-with-close-button.nx-rtl-on{padding:6px 6px 6px 36px}[id^=NotiflixNotifyWrap]>div.nx-with-close-button.nx-rtl-on{padding:10px 12px 10px 36px}[id^=NotiflixNotifyOverlay].nx-with-animation,[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-fade{-webkit-animation:notify-animation-fade .3s ease-in-out 0s normal;animation:notify-animation-fade .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-fade{0%{opacity:0}100%{opacity:1}}@keyframes notify-animation-fade{0%{opacity:0}100%{opacity:1}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-zoom{-webkit-animation:notify-animation-zoom .3s ease-in-out 0s normal;animation:notify-animation-zoom .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-zoom{0%{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes notify-animation-zoom{0%{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}100%{-webkit-transform:scale(1);transform:scale(1)}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-right{-webkit-animation:notify-animation-from-right .3s ease-in-out 0s normal;animation:notify-animation-from-right .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-from-right{0%{right:-300px;opacity:0}50%{right:8px;opacity:1}100%{right:0;opacity:1}}@keyframes notify-animation-from-right{0%{right:-300px;opacity:0}50%{right:8px;opacity:1}100%{right:0;opacity:1}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-left{-webkit-animation:notify-animation-from-left .3s ease-in-out 0s normal;animation:notify-animation-from-left .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-from-left{0%{left:-300px;opacity:0}50%{left:8px;opacity:1}100%{left:0;opacity:1}}@keyframes notify-animation-from-left{0%{left:-300px;opacity:0}50%{left:8px;opacity:1}100%{left:0;opacity:1}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-top{-webkit-animation:notify-animation-from-top .3s ease-in-out 0s normal;animation:notify-animation-from-top .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-from-top{0%{top:-50px;opacity:0}50%{top:8px;opacity:1}100%{top:0;opacity:1}}@keyframes notify-animation-from-top{0%{top:-50px;opacity:0}50%{top:8px;opacity:1}100%{top:0;opacity:1}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-bottom{-webkit-animation:notify-animation-from-bottom .3s ease-in-out 0s normal;animation:notify-animation-from-bottom .3s ease-in-out 0s normal}@-webkit-keyframes notify-animation-from-bottom{0%{bottom:-50px;opacity:0}50%{bottom:8px;opacity:1}100%{bottom:0;opacity:1}}@keyframes notify-animation-from-bottom{0%{bottom:-50px;opacity:0}50%{bottom:8px;opacity:1}100%{bottom:0;opacity:1}}[id^=NotiflixNotifyOverlay].nx-with-animation.nx-remove,[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-fade.nx-remove{opacity:0;-webkit-animation:notify-remove-fade .3s ease-in-out 0s normal;animation:notify-remove-fade .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-fade{0%{opacity:1}100%{opacity:0}}@keyframes notify-remove-fade{0%{opacity:1}100%{opacity:0}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-zoom.nx-remove{-webkit-transform:scale(0);transform:scale(0);-webkit-animation:notify-remove-zoom .3s ease-in-out 0s normal;animation:notify-remove-zoom .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-zoom{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}100%{-webkit-transform:scale(0);transform:scale(0)}}@keyframes notify-remove-zoom{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}100%{-webkit-transform:scale(0);transform:scale(0)}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-top.nx-remove{opacity:0;-webkit-animation:notify-remove-to-top .3s ease-in-out 0s normal;animation:notify-remove-to-top .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-to-top{0%{top:0;opacity:1}50%{top:8px;opacity:1}100%{top:-50px;opacity:0}}@keyframes notify-remove-to-top{0%{top:0;opacity:1}50%{top:8px;opacity:1}100%{top:-50px;opacity:0}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-right.nx-remove{opacity:0;-webkit-animation:notify-remove-to-right .3s ease-in-out 0s normal;animation:notify-remove-to-right .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-to-right{0%{right:0;opacity:1}50%{right:8px;opacity:1}100%{right:-300px;opacity:0}}@keyframes notify-remove-to-right{0%{right:0;opacity:1}50%{right:8px;opacity:1}100%{right:-300px;opacity:0}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-bottom.nx-remove{opacity:0;-webkit-animation:notify-remove-to-bottom .3s ease-in-out 0s normal;animation:notify-remove-to-bottom .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-to-bottom{0%{bottom:0;opacity:1}50%{bottom:8px;opacity:1}100%{bottom:-50px;opacity:0}}@keyframes notify-remove-to-bottom{0%{bottom:0;opacity:1}50%{bottom:8px;opacity:1}100%{bottom:-50px;opacity:0}}[id^=NotiflixNotifyWrap]>div.nx-with-animation.nx-from-left.nx-remove{opacity:0;-webkit-animation:notify-remove-to-left .3s ease-in-out 0s normal;animation:notify-remove-to-left .3s ease-in-out 0s normal}@-webkit-keyframes notify-remove-to-left{0%{left:0;opacity:1}50%{left:8px;opacity:1}100%{left:-300px;opacity:0}}@keyframes notify-remove-to-left{0%{left:0;opacity:1}50%{left:8px;opacity:1}100%{left:-300px;opacity:0}}';\n return notifyCSS || null;\n };\n // NOTIFY: Get Internal CSS Codes: end\n\n // NOTIFY: Create: begin\n var notifyCreateCounter = 0;\n var notifyCreate = function (notifyType, message, callbackOrOptions, options) {\n // check doc body\n if (!commonCheckHeadOrBody('body')) { return false; }\n\n // if not initialized pretend like init\n if (!newNotifySettings) {\n Notiflix.Notify.init({});\n }\n\n // create a backup for new settings\n var newNotifySettingsBackup = commonExtendOptions(true, newNotifySettings, {});\n\n // check callbackOrOptions and options: begin\n if ((typeof callbackOrOptions === 'object' && !Array.isArray(callbackOrOptions)) || (typeof options === 'object' && !Array.isArray(options))) {\n // new options\n var newOptions = {};\n if (typeof callbackOrOptions === 'object') {\n newOptions = callbackOrOptions;\n } else if (typeof options === 'object') {\n newOptions = options;\n }\n\n // extend new settings with the new options\n newNotifySettings = commonExtendOptions(true, newNotifySettings, newOptions);\n }\n // check callbackOrOptions and options: end\n\n // notify type\n var theType = newNotifySettings[notifyType.toLocaleLowerCase('en')];\n\n // notify counter\n notifyCreateCounter++;\n\n // check the message: begin\n if (typeof message !== 'string') {\n message = 'Notiflix ' + notifyType;\n }\n // check the message: end\n\n // if plainText is true => HTML tags not allowed: begin\n if (newNotifySettings.plainText) {\n message = commonGetPlaintext(message); // message plain text\n }\n // if plainText is true => HTML tags not allowed: end\n\n // if plainText is false but the message length more than messageMaxLength => Possible HTML tags error: begin\n if (!newNotifySettings.plainText && message.length > newNotifySettings.messageMaxLength) {\n // extend settings for error massege\n newNotifySettings = commonExtendOptions(true, newNotifySettings, { closeButton: true, messageMaxLength: 150 });\n // error message\n message = 'Possible HTML Tags Error: The \"plainText\" option is \"false\" and the notification content length is more than the \"messageMaxLength\" option.';\n }\n // if plainText is false but the message length more than messageMaxLength => Possible HTML tags error: end\n\n // check message max length: begin\n if (message.length > newNotifySettings.messageMaxLength) {\n message = message.substring(0, newNotifySettings.messageMaxLength) + '...';\n }\n // check message max length: end\n\n // font awesome icon style: begin\n if (newNotifySettings.fontAwesomeIconStyle === 'shadow') {\n theType.fontAwesomeIconColor = theType.background;\n }\n // font awesome icon style: end\n\n // if cssAnimaion is false => duration: begin\n if (!newNotifySettings.cssAnimation) {\n newNotifySettings.cssAnimationDuration = 0;\n }\n // if cssAnimaion is false => duration: end\n\n // notify wrap: begin\n var ntflxNotifyWrap = window.document.getElementById(notifySettings.wrapID) || window.document.createElement('div');\n ntflxNotifyWrap.id = notifySettings.wrapID;\n ntflxNotifyWrap.style.width = newNotifySettings.width;\n ntflxNotifyWrap.style.zIndex = newNotifySettings.zindex;\n ntflxNotifyWrap.style.opacity = newNotifySettings.opacity;\n\n // wrap position: begin\n if (newNotifySettings.position === 'center-center') {\n ntflxNotifyWrap.style.left = newNotifySettings.distance;\n ntflxNotifyWrap.style.top = newNotifySettings.distance;\n ntflxNotifyWrap.style.right = newNotifySettings.distance;\n ntflxNotifyWrap.style.bottom = newNotifySettings.distance;\n ntflxNotifyWrap.style.margin = 'auto';\n ntflxNotifyWrap.classList.add('nx-flex-center-center');\n ntflxNotifyWrap.style.maxHeight = 'calc((100vh - ' + newNotifySettings.distance + ') - ' + newNotifySettings.distance + ')';\n ntflxNotifyWrap.style.display = 'flex';\n ntflxNotifyWrap.style.flexWrap = 'wrap';\n ntflxNotifyWrap.style.flexDirection = 'column';\n ntflxNotifyWrap.style.justifyContent = 'center';\n ntflxNotifyWrap.style.alignItems = 'center';\n ntflxNotifyWrap.style.pointerEvents = 'none';\n } else if (newNotifySettings.position === 'center-top') {\n ntflxNotifyWrap.style.left = newNotifySettings.distance;\n ntflxNotifyWrap.style.right = newNotifySettings.distance;\n ntflxNotifyWrap.style.top = newNotifySettings.distance;\n ntflxNotifyWrap.style.bottom = 'auto';\n ntflxNotifyWrap.style.margin = 'auto';\n } else if (newNotifySettings.position === 'center-bottom') {\n ntflxNotifyWrap.style.left = newNotifySettings.distance;\n ntflxNotifyWrap.style.right = newNotifySettings.distance;\n ntflxNotifyWrap.style.bottom = newNotifySettings.distance;\n ntflxNotifyWrap.style.top = 'auto';\n ntflxNotifyWrap.style.margin = 'auto';\n } else if (newNotifySettings.position === 'right-bottom') {\n ntflxNotifyWrap.style.right = newNotifySettings.distance;\n ntflxNotifyWrap.style.bottom = newNotifySettings.distance;\n ntflxNotifyWrap.style.top = 'auto';\n ntflxNotifyWrap.style.left = 'auto';\n } else if (newNotifySettings.position === 'left-top') {\n ntflxNotifyWrap.style.left = newNotifySettings.distance;\n ntflxNotifyWrap.style.top = newNotifySettings.distance;\n ntflxNotifyWrap.style.right = 'auto';\n ntflxNotifyWrap.style.bottom = 'auto';\n } else if (newNotifySettings.position === 'left-bottom') {\n ntflxNotifyWrap.style.left = newNotifySettings.distance;\n ntflxNotifyWrap.style.bottom = newNotifySettings.distance;\n ntflxNotifyWrap.style.top = 'auto';\n ntflxNotifyWrap.style.right = 'auto';\n } else { // 'right-top' or else\n ntflxNotifyWrap.style.right = newNotifySettings.distance;\n ntflxNotifyWrap.style.top = newNotifySettings.distance;\n ntflxNotifyWrap.style.left = 'auto';\n ntflxNotifyWrap.style.bottom = 'auto';\n }\n // wrap position: end\n\n // if background overlay is true: begin\n if (newNotifySettings.backOverlay) {\n var ntflxNotifyOverlay = window.document.getElementById(notifySettings.overlayID) || window.document.createElement('div');\n ntflxNotifyOverlay.id = notifySettings.overlayID;\n ntflxNotifyOverlay.style.width = '100%';\n ntflxNotifyOverlay.style.height = '100%';\n ntflxNotifyOverlay.style.position = 'fixed';\n ntflxNotifyOverlay.style.zIndex = newNotifySettings.zindex - 1;\n ntflxNotifyOverlay.style.left = 0;\n ntflxNotifyOverlay.style.top = 0;\n ntflxNotifyOverlay.style.right = 0;\n ntflxNotifyOverlay.style.bottom = 0;\n ntflxNotifyOverlay.style.background = theType.backOverlayColor || newNotifySettings.backOverlayColor;\n ntflxNotifyOverlay.className = newNotifySettings.cssAnimation ? 'nx-with-animation' : '';\n ntflxNotifyOverlay.style.animationDuration = newNotifySettings.cssAnimation ? newNotifySettings.cssAnimationDuration + 'ms' : '';\n\n if (!window.document.getElementById(notifySettings.overlayID)) {\n window.document.body.appendChild(ntflxNotifyOverlay);\n }\n }\n // if background overlay is true: end\n\n if (!window.document.getElementById(notifySettings.wrapID)) {\n window.document.body.appendChild(ntflxNotifyWrap);\n }\n // notify wrap: end\n\n // notify content: begin\n var ntflxNotify = window.document.createElement('div');\n ntflxNotify.id = newNotifySettings.ID + '-' + notifyCreateCounter;\n ntflxNotify.className = newNotifySettings.className + ' ' + theType.childClassName + ' ' + (newNotifySettings.cssAnimation ? 'nx-with-animation' : '') + ' ' + (newNotifySettings.useIcon ? 'nx-with-icon' : '') + ' nx-' + newNotifySettings.cssAnimationStyle + ' ' + (newNotifySettings.closeButton && typeof callbackOrOptions !== 'function' ? 'nx-with-close-button' : '') + ' ' + (typeof callbackOrOptions === 'function' ? 'nx-with-callback' : '') + ' ' + (newNotifySettings.clickToClose ? 'nx-notify-click-to-close' : '');\n ntflxNotify.style.fontSize = newNotifySettings.fontSize;\n ntflxNotify.style.color = theType.textColor;\n ntflxNotify.style.background = theType.background;\n ntflxNotify.style.borderRadius = newNotifySettings.borderRadius;\n ntflxNotify.style.pointerEvents = 'all';\n\n // rtl: begin\n if (newNotifySettings.rtl) {\n ntflxNotify.setAttribute('dir', 'rtl');\n ntflxNotify.classList.add('nx-rtl-on');\n }\n // rtl: end\n\n // font-family: begin\n ntflxNotify.style.fontFamily = '\"' + newNotifySettings.fontFamily + '\", ' + defaultFontFamily;\n // font-family: end\n\n // use css animation: begin\n if (newNotifySettings.cssAnimation) {\n ntflxNotify.style.animationDuration = newNotifySettings.cssAnimationDuration + 'ms';\n }\n // use css animation: end\n\n // close button element: begin\n var closeButtonHTML = '';\n if (newNotifySettings.closeButton && typeof callbackOrOptions !== 'function') {\n closeButtonHTML = '';\n }\n // close buttpon element: end\n\n // use icon: begin\n if (newNotifySettings.useIcon) {\n // use font awesome\n if (newNotifySettings.useFontAwesome) {\n ntflxNotify.innerHTML = '' + message + '' + (newNotifySettings.closeButton ? closeButtonHTML : '');\n }\n // use notiflix icon\n else {\n var svgIcon = '';\n if (notifyType === typesNotify.Success) { // success\n svgIcon = '';\n } else if (notifyType === typesNotify.Failure) { // failure\n svgIcon = '';\n } else if (notifyType === typesNotify.Warning) { // warning\n svgIcon = '';\n } else if (notifyType === typesNotify.Info) { // info\n svgIcon = '';\n }\n ntflxNotify.innerHTML = svgIcon + '' + message + '' + (newNotifySettings.closeButton ? closeButtonHTML : '');\n }\n }\n // without icon\n else {\n ntflxNotify.innerHTML = '' + message + '' + (newNotifySettings.closeButton ? closeButtonHTML : '');\n }\n // use icon: end\n // notify content: end\n\n // notify append or prepend: begin\n if (newNotifySettings.position === 'left-bottom' || newNotifySettings.position === 'right-bottom') { // the new one will be first\n var notifyWrap = window.document.getElementById(notifySettings.wrapID);\n notifyWrap.insertBefore(ntflxNotify, notifyWrap.firstChild);\n } else {\n window.document.getElementById(notifySettings.wrapID).appendChild(ntflxNotify);\n }\n // notify append or prepend: end\n\n // remove by timeout or click: begin\n var eachNotifyElement = window.document.getElementById(ntflxNotify.id);\n if (eachNotifyElement) {\n // timeout variables\n var timeoutHide;\n var timeoutRemove;\n\n // hide notify elm and hide overlay: begin\n var hideNotifyElementsAndOverlay = function () {\n eachNotifyElement.classList.add('nx-remove');\n var removeOverlay = window.document.getElementById(notifySettings.overlayID);\n if (removeOverlay && ntflxNotifyWrap.childElementCount <= 0) {\n removeOverlay.classList.add('nx-remove');\n }\n clearTimeout(timeoutHide);\n };\n // hide notify elm and hide overlay: end\n\n // remove notify elm and wrapper: begin\n var removeNotifyElmentsAndWrapper = function () {\n if (eachNotifyElement && eachNotifyElement.parentNode !== null) {\n eachNotifyElement.parentNode.removeChild(eachNotifyElement);\n }\n if (ntflxNotifyWrap.childElementCount <= 0 && ntflxNotifyWrap.parentNode !== null) { // if childs count === 0 remove wrap\n ntflxNotifyWrap.parentNode.removeChild(ntflxNotifyWrap);\n var removeOverlay = window.document.getElementById(notifySettings.overlayID);\n if (removeOverlay && removeOverlay.parentNode !== null) {\n removeOverlay.parentNode.removeChild(removeOverlay);\n }\n }\n clearTimeout(timeoutRemove);\n };\n // remove notify elm and wrapper: end\n\n // if has close button and callbackOrOptions is not a function: begin\n if (newNotifySettings.closeButton && typeof callbackOrOptions !== 'function') {\n var closeButtonElm = window.document.getElementById(ntflxNotify.id).querySelector('span.nx-close-button');\n closeButtonElm.addEventListener('click', function () {\n hideNotifyElementsAndOverlay();\n var clickToCloseTimeout = setTimeout(function () {\n removeNotifyElmentsAndWrapper();\n clearTimeout(clickToCloseTimeout);\n }, newNotifySettings.cssAnimationDuration);\n });\n }\n // if has close button and callbackOrOptions is not a function: end\n\n // if callbackOrOptions or click to close: begin\n if (typeof callbackOrOptions === 'function' || newNotifySettings.clickToClose) {\n eachNotifyElement.addEventListener('click', function () {\n if (typeof callbackOrOptions === 'function') {\n callbackOrOptions();\n }\n hideNotifyElementsAndOverlay();\n var callbackTimeout = setTimeout(function () {\n removeNotifyElmentsAndWrapper();\n clearTimeout(callbackTimeout);\n }, newNotifySettings.cssAnimationDuration);\n });\n }\n // if callbackOrOptions or click to close: end\n\n // else auto remove: begin\n if (!newNotifySettings.closeButton && typeof callbackOrOptions !== 'function') {\n // auto remove: begin\n var autoRemove = function () {\n timeoutHide = setTimeout(function () {\n hideNotifyElementsAndOverlay();\n }, newNotifySettings.timeout);\n timeoutRemove = setTimeout(function () {\n removeNotifyElmentsAndWrapper();\n }, newNotifySettings.timeout + newNotifySettings.cssAnimationDuration);\n };\n autoRemove();\n // auto remove: end\n\n // pause auto remove: begin\n if (newNotifySettings.pauseOnHover) {\n eachNotifyElement.addEventListener('mouseenter', function () {\n eachNotifyElement.classList.add('nx-paused');\n clearTimeout(timeoutHide);\n clearTimeout(timeoutRemove);\n });\n eachNotifyElement.addEventListener('mouseleave', function () {\n eachNotifyElement.classList.remove('nx-paused');\n autoRemove();\n });\n }\n // pause auto remove: end\n }\n // else auto remove: end\n }\n // remove by timeout or click: end\n\n // notify - show only the last one: begin\n if (newNotifySettings.showOnlyTheLastOne && notifyCreateCounter > 0) {\n var allNotifyElmNotTheLastOne = window.document.querySelectorAll('[id^=' + newNotifySettings.ID + '-]:not([id=' + newNotifySettings.ID + '-' + notifyCreateCounter + '])');\n for (var i = 0; i < allNotifyElmNotTheLastOne.length; i++) {\n var eachNotifyElmNotLastOne = allNotifyElmNotTheLastOne[i];\n if (eachNotifyElmNotLastOne.parentNode !== null) {\n eachNotifyElmNotLastOne.parentNode.removeChild(eachNotifyElmNotLastOne);\n }\n }\n }\n // notify - show only the last one: end\n\n // extend new settings with the backup settings\n newNotifySettings = commonExtendOptions(true, newNotifySettings, newNotifySettingsBackup);\n\n };\n // NOTIFY: Create: end\n\n var Notiflix = {\n Notify: {\n // Init\n init: function (userNotifyOptions) {\n // extend options\n newNotifySettings = commonExtendOptions(true, notifySettings, userNotifyOptions);\n // internal css if exist\n commonSetInternalCSSCodes(notifyGetInternalCSSCodes, 'NotiflixNotifyInternalCSS');\n },\n // Merge First Init\n merge: function (userNotifyExtendOptions) {\n // if initialized already\n if (newNotifySettings) {\n newNotifySettings = commonExtendOptions(true, newNotifySettings, userNotifyExtendOptions);\n }\n // initialize first\n else {\n commonConsoleError('You have to initialize the Notify module before call Merge function.');\n return false;\n }\n },\n // Success\n success: function (message, callbackOrOptions, options) {\n notifyCreate(typesNotify.Success, message, callbackOrOptions, options);\n },\n // Failure\n failure: function (message, callbackOrOptions, options) {\n notifyCreate(typesNotify.Failure, message, callbackOrOptions, options);\n },\n // Warning\n warning: function (message, callbackOrOptions, options) {\n notifyCreate(typesNotify.Warning, message, callbackOrOptions, options);\n },\n // Info\n info: function (message, callbackOrOptions, options) {\n notifyCreate(typesNotify.Info, message, callbackOrOptions, options);\n },\n },\n };\n\n if (typeof window.Notiflix === 'object') {\n return commonExtendOptions(true, window.Notiflix, { Notify: Notiflix.Notify });\n } else {\n return { Notify: Notiflix.Notify };\n }\n\n});","import React from 'react';\nimport {TYPE_BASE64, TYPE_BYTES, TYPE_HIGH_LOW, typeDetector, uuidTypeList} from \"./type-detector.js\";\nimport {bytesToUuid, uuidToBytesString} from \"./uuid-bytes.js\";\nimport {objectParse} from \"./object-parser.js\";\nimport {intsToUuid, uintsToUuid, uuidToInts, uuidToUints} from \"./uuid-high-low.js\";\nimport {base64StdToUuid, uuidToBase64Std} from \"./base64.js\";\nimport {uuidFormatter} from \"./uuid-formatter.js\";\nimport { Notify } from 'notiflix/build/notiflix-notify-aio';\n\n/**\n * Bit mask for signed integers.\n * @type {number}\n */\nconst SIGNED = 2 ** 0; // 0b0001\n\n/**\n * Bit mask for unsigned integers.\n * @type {number}\n */\nconst UNSIGNED = 2 ** 1; // 0b0010\n\n/**\n * Regular expression for matching double quotes around numbers.\n * Used to remove double quotes from numbers when converting bytes to UUID.\n * @type {RegExp}\n */\n// eslint-disable-next-line no-useless-escape\nconst rg = /[\"'“”]/g; // Matches double quotes, apostrophes, left double guillemets and right double guillemets\n\n/**\n * Regular expression for matching numbers surrounded by double quotes.\n * Used to extract numbers from strings when converting bytes to UUID.\n * @type {RegExp}\n */\n// eslint-disable-next-line no-useless-escape\nconst nrg = /\"(-?\\d+)\"/g; // Matches numbers enclosed in double quotes, optionally preceded by a hyphen\n\n/**\n * Returns an object with two keys: 'signed' and 'unsigned'.\n * Each key maps to a string representation of the corresponding bit mask.\n * @return {Object} An object with two keys: 'signed' and 'unsigned'.\n */\nexport function intTypeList() {\n // Create an empty array\n const list = []\n\n // Add a key-value pair to the object\n list[SIGNED] = 'signed'\n\n // Add another key-value pair to the object\n list[UNSIGNED] = 'unsigned'\n\n // Return the object\n return list\n}\n\n/**\n * Represents an item with input, output, and additional information.\n * @class\n */\nexport class Item {\n /**\n * Creates a new Item.\n * @constructor\n * @param {any} input - The input value.\n * @param {any} output - The output value.\n * @param {any} info - Additional information.\n */\n constructor(input, output, info) {\n /**\n * The input value.\n * @type {any}\n */\n this.input = input;\n\n /**\n * The output value.\n * @type {any}\n */\n this.output = output;\n\n /**\n * Additional information.\n * @type {any}\n */\n this.info = info;\n }\n\n /**\n * Returns a string representation of the item, in the format 'input:output'.\n * @return {string} The string representation of the item.\n */\n toString() {\n return `${this.input}:${this.output}`;\n }\n}\n\nexport default class InputComponent extends React.Component {\n /**\n * The initial state of the InputComponent.\n *\n * @type {InputComponentState}\n */\n state = {\n // The type of the conversion result, default is TYPE_HIGH_LOW\n resultType: TYPE_HIGH_LOW,\n\n // The type of the integer representation, default is SIGNED\n intType: SIGNED,\n\n // The input value, default is empty string\n text: '',\n }\n\n /**\n * Constructor for the InputComponent.\n *\n * @param {Object} props - The properties passed to the component.\n */\n constructor(props) {\n super(props);\n // Call the parent class constructor with the passed props\n }\n\n /**\n * Handles keyboard input and updates the component's state\n * with the input text. If the input text ends with a newline\n * character, it calls the handle function to process the input.\n *\n * @param {Object} e - The event object containing the input text.\n */\n onKeyboardInput = (e) => {\n // Extract the input text from the event object\n const text = e.target.value\n\n // Update the component's state with the input text\n this.setState({text})\n\n // If the input text does not end with a newline character, return\n if (text[text.length - 1] !== \"\\n\") {\n return\n }\n\n // Call the handle function to process the input\n this.handle(text)\n }\n\n /**\n * Handles the keyboard input by splitting it into lines,\n * removing empty lines and extra spaces, and then adding\n * the lines as items to the component's list of items.\n *\n * @param {string} text - The input text from the keyboard.\n */\n handle = (text) => {\n // Split the input text into lines\n const lines = text.split(\"\\n\");\n\n // Remove empty lines and extra spaces from each line\n const trimmedLines = lines.map(l => l.replace(rg, '').trim()).filter(l => l.length > 0);\n\n // Add the trimmed lines as items to the component's list of items\n this.addItems(trimmedLines);\n }\n\n /**\n * Adds the given items to the list of items.\n * The items are parsed and added in reverse order.\n * If an item already exists, it is not added again.\n *\n * @param {Array} items - The items to add.\n */\n addItems = (items) => {\n // Create a map to store the items.\n let result = new Map()\n\n // Iterate over the items in reverse order.\n for (const item of items.reverse()) {\n // Create a new Item object from the line.\n const obj = this.newItem(item)\n\n // If the item is not null, add it to the map.\n if (obj !== null) {\n result.set(obj.toString(), obj)\n }\n }\n\n // Iterate over the existing items.\n for (const item of this.props.items) {\n // If the item is not already in the map, add it.\n if (!result.has(item.toString())) {\n result.set(item.toString(), item)\n }\n }\n\n // Set the items using the props setter.\n this.props.setItems([...result.values()])\n }\n\n /**\n * Creates a new Item object from the given line.\n *\n * @param {string} line - The line to parse and create an Item object from.\n * @return {Item|null} The created Item object if successful, null otherwise.\n */\n newItem = (line) => {\n try {\n // Parse the line into input and comment.\n const {input, comment} = this.parse(line)\n\n // Cast the input to a UUID and back to a string.\n const uuid = this.castToUuid(input)\n const output = this.castFromUuid(uuid)\n\n // Normalize the input and output strings.\n const nInput = this.normalize(input)\n if (nInput === null) {\n // If the input string cannot be processed, show a failure notification and return null.\n Notify.failure('Failed to process string: ' + line);\n\n return null\n }\n\n const nOutput = this.normalize(output)\n if (nInput === nOutput) {\n // If the normalized input and output strings are the same, show a warning notification and return null.\n Notify.warning('The result of the conversion matches the entered value: ' + line);\n\n return null\n }\n\n // Create and return a new Item object with the normalized input, output, and comment.\n return new Item(nInput, nOutput, comment)\n } catch (e) {\n // If an error occurs during the process, return null.\n return null\n }\n }\n\n /**\n * Parses the given line into input and comment.\n *\n * @param {string} line - The line to parse.\n * @return {Object} An object containing the parsed input and comment.\n * The input is a string, and the comment is a string or undefined.\n */\n parse = (line) => {\n // Split the line into input and comment by looking for the first occurrence of \"//\".\n // Remove any leading or trailing whitespace from both parts.\n // Remove any trailing comma from the input part.\n let results = line.split(\"//\").map(s => s.trim().replace(/,$/g, '').trimRight())\n\n // If there is a comment, return an object with the input and comment.\n // Otherwise, return an object with just the input.\n if (results.length > 1) {\n return {input: results[0].toString(), comment: results[1].toString()}\n }\n\n return {input: results[0].toString(), comment: undefined}\n }\n\n /**\n * Normalizes the given input.\n *\n * @param {string} input - The input to normalize.\n * @return {string|null} The normalized input, or null if the input cannot be normalized.\n */\n normalize = (input) => {\n // Determine the type of the input and perform the corresponding normalization.\n switch (typeDetector(input)) {\n // If the input is of bytes type, convert it to a JSON string and remove unnecessary commas.\n case TYPE_BYTES:\n return JSON.stringify(objectParse(input)).replace(/,$/g, '');\n // If the input is of high-low type, convert it to a JSON string, remove unnecessary commas, and format it.\n case TYPE_HIGH_LOW:\n const result = JSON.stringify(objectParse(input)).replace(/,$/g, '');\n return result.replace(nrg, \"$1\");\n // If the input is of base64 type, convert it to standard base64 and back to base64.\n case TYPE_BASE64:\n return btoa(atob(input));\n }\n\n // If the input is enclosed in curly braces, remove them.\n if (input[0] === '{' && input[input.length - 1] === '}') {\n input = input.substring(1, input.length - 1);\n }\n\n // Format the input as a UUID and check if it has the correct length.\n const uuid = uuidFormatter(input);\n if (uuid.length === 36) {\n return uuid;\n }\n\n // Return null if the input cannot be normalized.\n return null;\n }\n\n /**\n * Casts the given input to a UUID.\n *\n * @param {string} input - The input to cast to a UUID.\n * @return {string} The casted UUID.\n */\n castToUuid = (input) => {\n const {intType} = this.state\n\n // Determine the type of the input and cast it to a UUID accordingly.\n switch (typeDetector(input)) {\n // If the input is a byte array, cast it to a UUID using the bytesToUuid function.\n case TYPE_BYTES:\n return bytesToUuid(objectParse(input))\n // If the input is a high-low pair of integers, cast it to a UUID using the uintsToUuid function.\n // The function to use depends on the type of integers used (unsigned or signed).\n case TYPE_HIGH_LOW:\n const u = objectParse(input)\n const fn = intType === SIGNED ? intsToUuid : uintsToUuid\n\n return fn(u.high, u.low)\n // If the input is a base64 string, cast it to a UUID using the base64StdToUuid function.\n case TYPE_BASE64:\n return base64StdToUuid(input)\n }\n\n // If none of the above cases match, simply return the input as is.\n return input\n }\n\n /**\n * Casts the given UUID to the specified result type.\n *\n * @param {string} uuid - The UUID to cast.\n * @return {string|object} The casted UUID or the JSON representation of the UUID's high and low integers.\n */\n castFromUuid = (uuid) => {\n const {resultType, intType} = this.state\n\n switch (resultType) {\n case TYPE_BYTES:\n return uuidToBytesString(uuid); // Cast UUID to bytes string\n case TYPE_HIGH_LOW:\n const u = intType === SIGNED ? uuidToInts(uuid) : uuidToUints(uuid); // Get UUID's high and low integers\n return JSON.stringify(u); // Cast high and low integers to JSON\n case TYPE_BASE64:\n return uuidToBase64Std(uuid); // Cast UUID to base64 standard string\n }\n\n return uuid; // Return UUID if no result type is specified\n }\n\n /**\n * Sets the result type and handles the input.\n *\n * @param {number} type - The result type.\n * @return {Promise} A Promise that resolves when the result type is set and the input is handled.\n */\n setResultType = async (type) => {\n // Get the current text from state\n const {text} = this.state\n\n // Set the result type in state\n await this.setState({resultType: type})\n\n // Handle the input with the updated result type\n await this.handle(text)\n }\n\n /**\n * Sets the integer type and handles the input.\n *\n * @param {number} type - The integer type.\n * @return {Promise} A Promise that resolves when the integer type is set and the input is handled.\n */\n setIntType = async (type) => {\n const {text} = this.state\n\n // Set the integer type\n await this.setState({intType: type})\n\n // Handle the input with the new integer type\n await this.handle(text)\n }\n\n /**\n * Renders the component.\n *\n * @param {Object} items - The items.\n * @param {Object} state - The state.\n * @param {number} state.resultType - The result type.\n * @param {number} state.intType - The integer type.\n * @return {JSX.Element} The rendered component.\n */\n render({ items }, { resultType, intType }) {\n const [isClosedInformer, setClosedInformer] = React.useState(\n JSON.parse(localStorage.getItem('informerClosed')) || false\n )\n\n React.useEffect(() => {\n localStorage.setItem('informerClosed', JSON.stringify(isClosedInformer));\n }, [isClosedInformer]);\n\n return (\n
\n {/* Notification */}\n
\n \n {/* The project is provided \"as is\". Project revisions will only be made when absolutely necessary. */}\n The project is provided \"as is\". Project revisions will only be made when absolutely necessary.\n
\n\n {/* Textarea for keyboard input */}\n \n\n {/* Result type radio buttons */}\n
\n
\n \n
\n {/* Maps the uuid type list and renders the radio buttons */}\n { uuidTypeList().map((v, k) => (\n \n )) }\n
\n
\n
\n\n {/* Integer type radio buttons */}\n
\n
\n \n
\n {/* Maps the integer type list and renders the radio buttons */}\n { intTypeList().map((v, k) => (\n \n )) }\n
\n
\n
\n
\n );\n }\n}\n","import React from 'react';\nimport { Notify } from 'notiflix/build/notiflix-notify-aio';\n\nexport default class HistoryComponent extends React.Component {\n /**\n * Constructor for the HistoryComponent.\n *\n * @param {Object} props - The properties passed to the component.\n */\n constructor(props) {\n super(props);\n // Call the parent class constructor with the passed props\n }\n\n /**\n * Copies the text of the clicked tag to the clipboard and displays a success message.\n *\n * @param {Event} e - The event object containing the clicked tag.\n */\n copy = (e) => {\n // Get the text content of the clicked tag\n const text = e.target.innerText;\n\n // Copy the text to the clipboard\n navigator.clipboard.writeText(text)\n .then(() => {\n // Display a success message\n Notify.success('Text ' + text + ' copied');\n })\n .catch((error) => {\n // Display an error message if the copy operation fails\n Notify.failure('Error copying text: ' + error);\n });\n }\n\n /**\n * Render method for the HistoryComponent.\n *\n * Returns a navigation panel (