pxt-core 10.2.32 → 10.2.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/built/pxt.js +130 -125
- package/built/pxtlib.d.ts +15 -0
- package/built/pxtlib.js +129 -124
- package/built/react-common/components/controls/Button.d.ts +1 -0
- package/built/target.js +1 -1
- package/built/web/icons.css +52 -49
- package/built/web/icons.html +1 -0
- package/built/web/kiosk/js/{main.8c0572f9.js → main.2281ac67.js} +2 -2
- package/built/web/main.js +1 -1
- package/built/web/multiplayer/js/{main.de718cb4.js → main.06600d76.js} +2 -2
- package/built/web/pxtapp.js +1 -1
- package/built/web/pxtasseteditor.js +1 -1
- package/built/web/pxtembed.js +1 -1
- package/built/web/pxtlib.js +1 -1
- package/built/web/pxtworker.js +1 -1
- package/built/web/rtlsemantic.css +1 -1
- package/built/web/semantic.css +1 -1
- package/built/web/skillmap/js/{main.97f75f43.js → main.c31cb548.js} +2 -2
- package/built/web/teachertool/css/main.1dcea34b.css +1 -0
- package/built/web/teachertool/js/main.93390501.js +2 -0
- package/built/web/tutorialtool/js/{main.2937c31e.js → main.61e4c167.js} +2 -2
- package/common-docs/teachertool/test/catalog-shared.json +1 -1
- package/package.json +1 -1
- package/react-common/components/controls/Button.tsx +3 -1
- package/webapp/public/kiosk.html +1 -1
- package/webapp/public/multiplayer.html +1 -1
- package/webapp/public/skillmap.html +1 -1
- package/webapp/public/teachertool.html +1 -1
- package/webapp/public/tutorialtool.html +1 -1
- package/built/web/teachertool/css/main.2113fa85.css +0 -1
- package/built/web/teachertool/js/main.8693c6a3.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see main.
|
|
2
|
-
(()=>{var e={3500:(e,t,n)=>{"use strict";var r=n(3705),i=n(1173),a=n(8898),o=n(5664);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!i)throw Error(s(227));var l=new Set,u={};function c(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(u[e]=t,e=0;e<t.length;e++)l.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,m={},g={};function y(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new y(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function w(e){return e[1].toUpperCase()}function x(e,t,n,r){var i=v.hasOwnProperty(t)?v[t]:null;(null!==i?0===i.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!h.call(g,e)||!h.call(m,e)&&(p.test(e)?g[e]=!0:(m[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,w);v[t]=new y(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,w);v[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,w);v[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=60103,k=60106,S=60107,A=60108,C=60114,O=60109,T=60110,N=60112,R=60113,P=60120,j=60115,I=60116,L=60121,M=60128,B=60129,D=60130,U=60131;if("function"==typeof Symbol&&Symbol.for){var F=Symbol.for;E=F("react.element"),k=F("react.portal"),S=F("react.fragment"),A=F("react.strict_mode"),C=F("react.profiler"),O=F("react.provider"),T=F("react.context"),N=F("react.forward_ref"),R=F("react.suspense"),P=F("react.suspense_list"),j=F("react.memo"),I=F("react.lazy"),L=F("react.block"),F("react.scope"),M=F("react.opaque.id"),B=F("react.debug_trace_mode"),D=F("react.offscreen"),U=F("react.legacy_hidden")}var z,V="function"==typeof Symbol&&Symbol.iterator;function H(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=V&&e[V]||e["@@iterator"])?e:null}function W(e){if(void 0===z)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var q=!1;function G(e,t){if(!e||q)return"";q=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s])return"\n"+i[o].replace(" at new "," at ")}while(1<=o&&0<=s);break}}}finally{q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function Z(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return G(e.type,!1);case 11:return G(e.type.render,!1);case 22:return G(e.type._render,!1);case 1:return G(e.type,!0);default:return""}}function Y(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case C:return"Profiler";case A:return"StrictMode";case R:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case j:return Y(e.type);case L:return Y(e._render);case I:t=e._payload,e=e._init;try{return Y(e(t))}catch(e){}}return null}function $(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ee(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function te(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=$(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ne(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function re(e,t){ne(e,t);var n=$(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ae(e,t.type,n):t.hasOwnProperty("defaultValue")&&ae(e,t.type,$(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ie(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ae(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return i.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function se(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(s(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(s(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:$(n)}}function ce(e,t){var n=$(t.value),r=$(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function fe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml",pe="http://www.w3.org/2000/svg";function he(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function me(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?he(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ge,ye,ve=(ye=function(e,t){if(e.namespaceURI!==pe||"innerHTML"in e)e.innerHTML=t;else{for((ge=ge||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ge.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ye(e,t)}))}:ye);function be(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var we={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xe=["Webkit","ms","Moz","O"];function _e(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||we.hasOwnProperty(e)&&we[e]?(""+t).trim():t+"px"}function Ee(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=_e(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(we).forEach((function(e){xe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),we[t]=we[e]}))}));var ke=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Se(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(s(62))}}function Ae(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Oe=null,Te=null,Ne=null;function Re(e){if(e=ti(e)){if("function"!=typeof Oe)throw Error(s(280));var t=e.stateNode;t&&(t=ri(t),Oe(e.stateNode,e.type,t))}}function Pe(e){Te?Ne?Ne.push(e):Ne=[e]:Te=e}function je(){if(Te){var e=Te,t=Ne;if(Ne=Te=null,Re(e),t)for(e=0;e<t.length;e++)Re(t[e])}}function Ie(e,t){return e(t)}function Le(e,t,n,r,i){return e(t,n,r,i)}function Me(){}var Be=Ie,De=!1,Ue=!1;function Fe(){null===Te&&null===Ne||(Me(),je())}function ze(e,t){var n=e.stateNode;if(null===n)return null;var r=ri(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(s(231,t,typeof n));return n}var Ve=!1;if(d)try{var He={};Object.defineProperty(He,"passive",{get:function(){Ve=!0}}),window.addEventListener("test",He,He),window.removeEventListener("test",He,He)}catch(ye){Ve=!1}function We(e,t,n,r,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var qe=!1,Ge=null,Ze=!1,Ye=null,$e={onError:function(e){qe=!0,Ge=e}};function Ke(e,t,n,r,i,a,o,s,l){qe=!1,Ge=null,We.apply($e,arguments)}function Xe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Je(e){if(Xe(e)!==e)throw Error(s(188))}function et(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Xe(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Je(i),e;if(a===r)return Je(i),t;a=a.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=a;break}if(l===r){o=!0,r=i,n=a;break}l=l.sibling}if(!o){for(l=a.child;l;){if(l===n){o=!0,n=a,r=i;break}if(l===r){o=!0,r=a,n=i;break}l=l.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function tt(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var nt,rt,it,at,ot=!1,st=[],lt=null,ut=null,ct=null,ft=new Map,dt=new Map,pt=[],ht="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function mt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function gt(e,t){switch(e){case"focusin":case"focusout":lt=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":ft.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dt.delete(t.pointerId)}}function yt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=mt(t,n,r,i,a),null!==t&&null!==(t=ti(t))&&rt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function vt(e){var t=ei(e.target);if(null!==t){var n=Xe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Qe(n)))return e.blockedOn=t,void at(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){it(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=en(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ti(n))&&rt(t),e.blockedOn=n,!1;t.shift()}return!0}function wt(e,t,n){bt(e)&&n.delete(t)}function xt(){for(ot=!1;0<st.length;){var e=st[0];if(null!==e.blockedOn){null!==(e=ti(e.blockedOn))&&nt(e);break}for(var t=e.targetContainers;0<t.length;){var n=en(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&st.shift()}null!==lt&&bt(lt)&&(lt=null),null!==ut&&bt(ut)&&(ut=null),null!==ct&&bt(ct)&&(ct=null),ft.forEach(wt),dt.forEach(wt)}function _t(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,xt)))}function Et(e){function t(t){return _t(t,e)}if(0<st.length){_t(st[0],e);for(var n=1;n<st.length;n++){var r=st[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==lt&&_t(lt,e),null!==ut&&_t(ut,e),null!==ct&&_t(ct,e),ft.forEach(t),dt.forEach(t),n=0;n<pt.length;n++)(r=pt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<pt.length&&null===(n=pt[0]).blockedOn;)vt(n),null===n.blockedOn&&pt.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var St={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},At={},Ct={};function Ot(e){if(At[e])return At[e];if(!St[e])return e;var t,n=St[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ct)return At[e]=n[t];return e}d&&(Ct=document.createElement("div").style,"AnimationEvent"in window||(delete St.animationend.animation,delete St.animationiteration.animation,delete St.animationstart.animation),"TransitionEvent"in window||delete St.transitionend.transition);var Tt=Ot("animationend"),Nt=Ot("animationiteration"),Rt=Ot("animationstart"),Pt=Ot("transitionend"),jt=new Map,It=new Map,Lt=["abort","abort",Tt,"animationEnd",Nt,"animationIteration",Rt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Pt,"transitionEnd","waiting","waiting"];function Mt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),It.set(r,t),jt.set(r,i),c(i,[r])}}(0,o.unstable_now)();var Bt=8;function Dt(e){if(0!=(1&e))return Bt=15,1;if(0!=(2&e))return Bt=14,2;if(0!=(4&e))return Bt=13,4;var t=24&e;return 0!==t?(Bt=12,t):0!=(32&e)?(Bt=11,32):0!=(t=192&e)?(Bt=10,t):0!=(256&e)?(Bt=9,256):0!=(t=3584&e)?(Bt=8,t):0!=(4096&e)?(Bt=7,4096):0!=(t=4186112&e)?(Bt=6,t):0!=(t=62914560&e)?(Bt=5,t):67108864&e?(Bt=4,67108864):0!=(134217728&e)?(Bt=3,134217728):0!=(t=805306368&e)?(Bt=2,t):0!=(1073741824&e)?(Bt=1,1073741824):(Bt=8,e)}function Ut(e,t){var n=e.pendingLanes;if(0===n)return Bt=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(0!==a)r=a,i=Bt=15;else if(0!=(a=134217727&n)){var l=a&~o;0!==l?(r=Dt(l),i=Bt):0!=(s&=a)&&(r=Dt(s),i=Bt)}else 0!=(a=n&~o)?(r=Dt(a),i=Bt):0!==s&&(r=Dt(s),i=Bt);if(0===r)return 0;if(r=n&((0>(r=31-qt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&o)){if(Dt(t),i<=Bt)return t;Bt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-qt(t)),r|=e[n],t&=~i;return r}function Ft(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function zt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Vt(24&~t))?zt(10,t):e;case 10:return 0===(e=Vt(192&~t))?zt(8,t):e;case 8:return 0===(e=Vt(3584&~t))&&0===(e=Vt(4186112&~t))&&(e=512),e;case 2:return 0===(t=Vt(805306368&~t))&&(t=268435456),t}throw Error(s(358,e))}function Vt(e){return e&-e}function Ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-qt(t)]=n}var qt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Gt(e)/Zt|0)|0},Gt=Math.log,Zt=Math.LN2,Yt=o.unstable_UserBlockingPriority,$t=o.unstable_runWithPriority,Kt=!0;function Xt(e,t,n,r){De||Me();var i=Jt,a=De;De=!0;try{Le(i,e,t,n,r)}finally{(De=a)||Fe()}}function Qt(e,t,n,r){$t(Yt,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){var i;if(Kt)if((i=0==(4&t))&&0<st.length&&-1<ht.indexOf(e))e=mt(null,e,t,n,r),st.push(e);else{var a=en(e,t,n,r);if(null===a)i&>(e,r);else{if(i){if(-1<ht.indexOf(e))return e=mt(a,e,t,n,r),void st.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return lt=yt(lt,e,t,n,r,i),!0;case"dragenter":return ut=yt(ut,e,t,n,r,i),!0;case"mouseover":return ct=yt(ct,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return ft.set(a,yt(ft.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,dt.set(a,yt(dt.get(a)||null,e,t,n,r,i)),!0}return!1}(a,e,t,n,r))return;gt(e,r)}jr(e,t,r,null,n)}}}function en(e,t,n,r){var i=Ce(r);if(null!==(i=ei(i))){var a=Xe(i);if(null===a)i=null;else{var o=a.tag;if(13===o){if(null!==(i=Qe(a)))return i;i=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return jr(e,t,r,i,n),null}var tn=null,nn=null,rn=null;function an(){if(rn)return rn;var e,t,n=nn,r=n.length,i="value"in tn?tn.value:tn.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return rn=i.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function sn(){return!0}function ln(){return!1}function un(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?sn:ln,this.isPropagationStopped=ln,this}return a(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=sn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=sn)},persist:function(){},isPersistent:sn}),t}var cn,fn,dn,pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hn=un(pn),mn=a({},pn,{view:0,detail:0}),gn=un(mn),yn=a({},mn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:On,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==dn&&(dn&&"mousemove"===e.type?(cn=e.screenX-dn.screenX,fn=e.screenY-dn.screenY):fn=cn=0,dn=e),cn)},movementY:function(e){return"movementY"in e?e.movementY:fn}}),vn=un(yn),bn=un(a({},yn,{dataTransfer:0})),wn=un(a({},mn,{relatedTarget:0})),xn=un(a({},pn,{animationName:0,elapsedTime:0,pseudoElement:0})),_n=un(a({},pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),En=un(a({},pn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},An={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=An[e])&&!!t[e]}function On(){return Cn}var Tn=un(a({},mn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:On,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Nn=un(a({},yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=un(a({},mn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),Pn=un(a({},pn,{propertyName:0,elapsedTime:0,pseudoElement:0})),jn=un(a({},yn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),In=[9,13,27,32],Ln=d&&"CompositionEvent"in window,Mn=null;d&&"documentMode"in document&&(Mn=document.documentMode);var Bn=d&&"TextEvent"in window&&!Mn,Dn=d&&(!Ln||Mn&&8<Mn&&11>=Mn),Un=String.fromCharCode(32),Fn=!1;function zn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1,Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Gn(e,t,n,r){Pe(r),0<(t=Lr(t,"onChange")).length&&(n=new hn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zn=null,Yn=null;function $n(e){Cr(e,0)}function Kn(e){if(Q(ni(e)))return e}function Xn(e,t){if("change"===e)return t}var Qn=!1;if(d){var Jn;if(d){var er="oninput"in document;if(!er){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),er="function"==typeof tr.oninput}Jn=er}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function nr(){Zn&&(Zn.detachEvent("onpropertychange",rr),Yn=Zn=null)}function rr(e){if("value"===e.propertyName&&Kn(Yn)){var t=[];if(Gn(t,Yn,e,Ce(e)),e=$n,De)e(t);else{De=!0;try{Ie(e,t)}finally{De=!1,Fe()}}}}function ir(e,t,n){"focusin"===e?(nr(),Yn=n,(Zn=t).attachEvent("onpropertychange",rr)):"focusout"===e&&nr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Yn)}function or(e,t){if("click"===e)return Kn(t)}function sr(e,t){if("input"===e||"change"===e)return Kn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ur=Object.prototype.hasOwnProperty;function cr(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ur.call(t,n[r])||!lr(e[n[r]],t[n[r]]))return!1;return!0}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var n,r=fr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fr(r)}}function pr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gr=d&&"documentMode"in document&&11>=document.documentMode,yr=null,vr=null,br=null,wr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wr||null==yr||yr!==J(r)||(r="selectionStart"in(r=yr)&&mr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&cr(br,r)||(br=r,0<(r=Lr(vr,"onSelect")).length&&(t=new hn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}Mt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Mt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Mt(Lt,2);for(var _r="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Er=0;Er<_r.length;Er++)It.set(_r[Er],0);f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Sr=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));function Ar(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,o,l,u){if(Ke.apply(this,arguments),qe){if(!qe)throw Error(s(198));var c=Ge;qe=!1,Ge=null,Ze||(Ze=!0,Ye=c)}}(r,t,void 0,e),e.currentTarget=null}function Cr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;Ar(i,s,u),a=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;Ar(i,s,u),a=l}}}if(Ze)throw e=Ye,Ze=!1,Ye=null,e}function Or(e,t){var n=ii(t),r=e+"__bubble";n.has(r)||(Pr(t,e,2,!1),n.add(r))}var Tr="_reactListening"+Math.random().toString(36).slice(2);function Nr(e){e[Tr]||(e[Tr]=!0,l.forEach((function(t){Sr.has(t)||Rr(t,!1,e,null),Rr(t,!0,e,null)})))}function Rr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&Sr.has(e)){if("scroll"!==e)return;i|=2,a=r}var o=ii(a),s=e+"__"+(t?"capture":"bubble");o.has(s)||(t&&(i|=4),Pr(a,e,i,t),o.add(s))}function Pr(e,t,n,r){var i=It.get(t);switch(void 0===i?2:i){case 0:i=Xt;break;case 1:i=Qt;break;default:i=Jt}n=i.bind(null,t,n,e),i=void 0,!Ve||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function jr(e,t,n,r,i){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=ei(s)))return;if(5===(l=o.tag)||6===l){r=a=o;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Ue)return e();Ue=!0;try{Be(e,t,n)}finally{Ue=!1,Fe()}}((function(){var r=a,i=Ce(n),o=[];e:{var s=jt.get(e);if(void 0!==s){var l=hn,u=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":u="focus",l=wn;break;case"focusout":u="blur",l=wn;break;case"beforeblur":case"afterblur":l=wn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=bn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Rn;break;case Tt:case Nt:case Rt:l=xn;break;case Pt:l=Pn;break;case"scroll":l=gn;break;case"wheel":l=jn;break;case"copy":case"cut":case"paste":l=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Nn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&null!=(m=ze(h,d))&&c.push(Ir(h,m,p))),f)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!ei(u)&&!u[Qr])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?ei(u):null)&&(u!==(f=Xe(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=vn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Nn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==l?s:ni(l),p=null==u?s:ni(u),(s=new c(m,h+"leave",l,n,i)).target=f,s.relatedTarget=p,m=null,ei(i)===r&&((c=new c(d,h+"enter",u,n,i)).target=p,c.relatedTarget=f,m=c),f=m,l&&u)e:{for(d=u,h=0,p=c=l;p;p=Mr(p))h++;for(p=0,m=d;m;m=Mr(m))p++;for(;0<h-p;)c=Mr(c),h--;for(;0<p-h;)d=Mr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Mr(c),d=Mr(d)}c=null}else c=null;null!==l&&Br(o,s,l,c,!1),null!==u&&null!==f&&Br(o,f,u,c,!0)}if("select"===(l=(s=r?ni(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Xn;else if(qn(s))if(Qn)g=sr;else{g=ar;var y=ir}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?Gn(o,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ae(s,"number",s.value)),y=r?ni(r):window,e){case"focusin":(qn(y)||"true"===y.contentEditable)&&(yr=y,vr=r,br=null);break;case"focusout":br=vr=yr=null;break;case"mousedown":wr=!0;break;case"contextmenu":case"mouseup":case"dragend":wr=!1,xr(o,n,i);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":xr(o,n,i)}var v;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(v=an()):(nn="value"in(tn=i)?tn.value:tn.textContent,Hn=!0)),0<(y=Lr(r,b)).length&&(b=new En(b,e,null,n,i),o.push({event:b,listeners:y}),(v||null!==(v=Vn(n)))&&(b.data=v))),(v=Bn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Fn=!0,Un);case"textInput":return(e=t.data)===Un&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Ln&&zn(e,t)?(e=an(),rn=nn=tn=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Lr(r,"onBeforeInput")).length&&(i=new En("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=v)}Cr(o,t)}))}function Ir(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=ze(e,n))&&r.unshift(Ir(e,a,i)),null!=(a=ze(e,t))&&r.push(Ir(e,a,i))),e=e.return}return r}function Mr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Br(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=ze(n,a))&&o.unshift(Ir(n,l,s)):i||null!=(l=ze(n,a))&&o.push(Ir(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Dr(){}var Ur=null,Fr=null;function zr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Vr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Hr="function"==typeof setTimeout?setTimeout:void 0,Wr="function"==typeof clearTimeout?clearTimeout:void 0;function qr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Gr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Zr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Yr=0,$r=Math.random().toString(36).slice(2),Kr="__reactFiber$"+$r,Xr="__reactProps$"+$r,Qr="__reactContainer$"+$r,Jr="__reactEvents$"+$r;function ei(e){var t=e[Kr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Qr]||n[Kr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Zr(e);null!==e;){if(n=e[Kr])return n;e=Zr(e)}return t}n=(e=n).parentNode}return null}function ti(e){return!(e=e[Kr]||e[Qr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ni(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function ri(e){return e[Xr]||null}function ii(e){var t=e[Jr];return void 0===t&&(t=e[Jr]=new Set),t}var ai=[],oi=-1;function si(e){return{current:e}}function li(e){0>oi||(e.current=ai[oi],ai[oi]=null,oi--)}function ui(e,t){oi++,ai[oi]=e.current,e.current=t}var ci={},fi=si(ci),di=si(!1),pi=ci;function hi(e,t){var n=e.type.contextTypes;if(!n)return ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function mi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function gi(){li(di),li(fi)}function yi(e,t,n){if(fi.current!==ci)throw Error(s(168));ui(fi,t),ui(di,n)}function vi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(s(108,Y(t)||"Unknown",i));return a({},n,r)}function bi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ci,pi=fi.current,ui(fi,e),ui(di,di.current),!0}function wi(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=vi(e,t,pi),r.__reactInternalMemoizedMergedChildContext=e,li(di),li(fi),ui(fi,e)):li(di),ui(di,n)}var xi=null,_i=null,Ei=o.unstable_runWithPriority,ki=o.unstable_scheduleCallback,Si=o.unstable_cancelCallback,Ai=o.unstable_shouldYield,Ci=o.unstable_requestPaint,Oi=o.unstable_now,Ti=o.unstable_getCurrentPriorityLevel,Ni=o.unstable_ImmediatePriority,Ri=o.unstable_UserBlockingPriority,Pi=o.unstable_NormalPriority,ji=o.unstable_LowPriority,Ii=o.unstable_IdlePriority,Li={},Mi=void 0!==Ci?Ci:function(){},Bi=null,Di=null,Ui=!1,Fi=Oi(),zi=1e4>Fi?Oi:function(){return Oi()-Fi};function Vi(){switch(Ti()){case Ni:return 99;case Ri:return 98;case Pi:return 97;case ji:return 96;case Ii:return 95;default:throw Error(s(332))}}function Hi(e){switch(e){case 99:return Ni;case 98:return Ri;case 97:return Pi;case 96:return ji;case 95:return Ii;default:throw Error(s(332))}}function Wi(e,t){return e=Hi(e),Ei(e,t)}function qi(e,t,n){return e=Hi(e),ki(e,t,n)}function Gi(){if(null!==Di){var e=Di;Di=null,Si(e)}Zi()}function Zi(){if(!Ui&&null!==Bi){Ui=!0;var e=0;try{var t=Bi;Wi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Bi=null}catch(t){throw null!==Bi&&(Bi=Bi.slice(e+1)),ki(Ni,Gi),t}finally{Ui=!1}}}var Yi=_.ReactCurrentBatchConfig;function $i(e,t){if(e&&e.defaultProps){for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ki=si(null),Xi=null,Qi=null,Ji=null;function ea(){Ji=Qi=Xi=null}function ta(e){var t=Ki.current;li(Ki),e.type._context._currentValue=t}function na(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ra(e,t){Xi=e,Ji=Qi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Lo=!0),e.firstContext=null)}function ia(e,t){if(Ji!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ji=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Qi){if(null===Xi)throw Error(s(308));Qi=t,Xi.dependencies={lanes:0,firstContext:t,responders:null}}else Qi=Qi.next=t;return e._currentValue}var aa=!1;function oa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function sa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function la(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ua(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ca(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fa(e,t,n,r){var i=e.updateQueue;aa=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var u=l,c=u.next;u.next=null,null===s?o=c:s.next=c,s=u;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==s&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=u)}}if(null!==o){for(d=i.baseState,s=0,f=c=u=null;;){l=o.lane;var p=o.eventTime;if((r&l)===l){null!==f&&(f=f.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var h=e,m=o;switch(l=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,l);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(l="function"==typeof(h=m.payload)?h.call(p,d,l):h)||void 0===l)break e;d=a({},d,l);break e;case 2:aa=!0}}null!==o.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[o]:l.push(o))}else p={eventTime:p,lane:l,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(c=f=p,u=d):f=f.next=p,s|=l;if(null===(o=o.next)){if(null===(l=i.shared.pending))break;o=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}null===f&&(u=d),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=f,Ds|=s,e.lanes=s,e.memoizedState=d}}function da(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(s(191,i));i.call(r)}}}var pa=(new i.Component).refs;function ha(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:a({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ma={isMounted:function(e){return!!(e=e._reactInternals)&&Xe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ul(),i=cl(e),a=la(r,i);a.payload=t,null!=n&&(a.callback=n),ua(e,a),fl(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ul(),i=cl(e),a=la(r,i);a.tag=1,a.payload=t,null!=n&&(a.callback=n),ua(e,a),fl(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ul(),r=cl(e),i=la(n,r);i.tag=2,null!=t&&(i.callback=t),ua(e,i),fl(e,r,n)}};function ga(e,t,n,r,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!(t.prototype&&t.prototype.isPureReactComponent&&cr(n,r)&&cr(i,a))}function ya(e,t,n){var r=!1,i=ci,a=t.contextType;return"object"==typeof a&&null!==a?a=ia(a):(i=mi(t)?pi:fi.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?hi(e,i):ci),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ma,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function va(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ma.enqueueReplaceState(t,t.state,null)}function ba(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=pa,oa(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=ia(a):(a=mi(t)?pi:fi.current,i.context=hi(e,a)),fa(e,n,i,r),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(ha(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ma.enqueueReplaceState(i,i.state,null),fa(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var wa=Array.isArray;function xa(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(s(309));var r=n.stateNode}if(!r)throw Error(s(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===pa&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function _a(e,t){if("textarea"!==e.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Ea(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Hl(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function o(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Zl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=xa(e,t,n),r.return=e,r):((r=Wl(n.type,n.key,n.props,null,e.mode,r)).ref=xa(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Yl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=ql(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Zl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Wl(t.type,t.key,t.props,null,e.mode,n)).ref=xa(e,null,t),n.return=e,n;case k:return(t=Yl(t,e.mode,n)).return=e,t}if(wa(t)||H(t))return(t=ql(t,e.mode,n,null)).return=e,t;_a(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===i?n.type===S?f(e,t,n.props.children,r,i):u(e,t,n,r):null;case k:return n.key===i?c(e,t,n,r):null}if(wa(n)||H(n))return null!==i?null:f(e,t,n,r,null);_a(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return e=e.get(null===r.key?n:r.key)||null,r.type===S?f(t,e,r.props.children,i,r.key):u(t,e,r,i);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(wa(r)||H(r))return f(t,e=e.get(n)||null,r,i,null);_a(t,r)}return null}function m(i,o,s,l){for(var u=null,c=null,f=o,m=o=0,g=null;null!==f&&m<s.length;m++){f.index>m?(g=f,f=null):g=f.sibling;var y=p(i,f,s[m],l);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(i,f),o=a(y,o,m),null===c?u=y:c.sibling=y,c=y,f=g}if(m===s.length)return n(i,f),u;if(null===f){for(;m<s.length;m++)null!==(f=d(i,s[m],l))&&(o=a(f,o,m),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(i,f);m<s.length;m++)null!==(g=h(f,i,m,s[m],l))&&(e&&null!==g.alternate&&f.delete(null===g.key?m:g.key),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g);return e&&f.forEach((function(e){return t(i,e)})),u}function g(i,o,l,u){var c=H(l);if("function"!=typeof c)throw Error(s(150));if(null==(l=c.call(l)))throw Error(s(151));for(var f=c=null,m=o,g=o=0,y=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=p(i,m,v.value,u);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(i,m),o=a(b,o,g),null===f?c=b:f.sibling=b,f=b,m=y}if(v.done)return n(i,m),c;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=d(i,v.value,u))&&(o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return c}for(m=r(i,m);!v.done;g++,v=l.next())null!==(v=h(m,i,g,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,a,l){var u="object"==typeof a&&null!==a&&a.type===S&&null===a.key;u&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case E:e:{for(c=a.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(a.type===S){n(e,u.sibling),(r=i(u,a.props.children)).return=e,e=r;break e}}else if(u.elementType===a.type){n(e,u.sibling),(r=i(u,a.props)).ref=xa(e,u,a),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}a.type===S?((r=ql(a.props.children,e.mode,l,a.key)).return=e,e=r):((l=Wl(a.type,a.key,a.props,null,e.mode,l)).ref=xa(e,r,a),l.return=e,e=l)}return o(e);case k:e:{for(u=a.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Yl(a,e.mode,l)).return=e,e=r}return o(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=Zl(a,e.mode,l)).return=e,e=r),o(e);if(wa(a))return m(e,r,a,l);if(H(a))return g(e,r,a,l);if(c&&_a(e,a),void 0===a&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(s(152,Y(e.type)||"Component"))}return n(e,r)}}var ka=Ea(!0),Sa=Ea(!1),Aa={},Ca=si(Aa),Oa=si(Aa),Ta=si(Aa);function Na(e){if(e===Aa)throw Error(s(174));return e}function Ra(e,t){switch(ui(Ta,t),ui(Oa,e),ui(Ca,Aa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:me(null,"");break;default:t=me(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}li(Ca),ui(Ca,t)}function Pa(){li(Ca),li(Oa),li(Ta)}function ja(e){Na(Ta.current);var t=Na(Ca.current),n=me(t,e.type);t!==n&&(ui(Oa,e),ui(Ca,n))}function Ia(e){Oa.current===e&&(li(Ca),li(Oa))}var La=si(0);function Ma(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ba=null,Da=null,Ua=!1;function Fa(e,t){var n=zl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function za(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Va(e){if(Ua){var t=Da;if(t){var n=t;if(!za(e,t)){if(!(t=Gr(n.nextSibling))||!za(e,t))return e.flags=-1025&e.flags|2,Ua=!1,void(Ba=e);Fa(Ba,n)}Ba=e,Da=Gr(t.firstChild)}else e.flags=-1025&e.flags|2,Ua=!1,Ba=e}}function Ha(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ba=e}function Wa(e){if(e!==Ba)return!1;if(!Ua)return Ha(e),Ua=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Vr(t,e.memoizedProps))for(t=Da;t;)Fa(e,t),t=Gr(t.nextSibling);if(Ha(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Da=Gr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Da=null}}else Da=Ba?Gr(e.stateNode.nextSibling):null;return!0}function qa(){Da=Ba=null,Ua=!1}var Ga=[];function Za(){for(var e=0;e<Ga.length;e++)Ga[e]._workInProgressVersionPrimary=null;Ga.length=0}var Ya=_.ReactCurrentDispatcher,$a=_.ReactCurrentBatchConfig,Ka=0,Xa=null,Qa=null,Ja=null,eo=!1,to=!1;function no(){throw Error(s(321))}function ro(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function io(e,t,n,r,i,a){if(Ka=a,Xa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ya.current=null===e||null===e.memoizedState?Ro:Po,e=n(r,i),to){a=0;do{if(to=!1,!(25>a))throw Error(s(301));a+=1,Ja=Qa=null,t.updateQueue=null,Ya.current=jo,e=n(r,i)}while(to)}if(Ya.current=No,t=null!==Qa&&null!==Qa.next,Ka=0,Ja=Qa=Xa=null,eo=!1,t)throw Error(s(300));return e}function ao(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ja?Xa.memoizedState=Ja=e:Ja=Ja.next=e,Ja}function oo(){if(null===Qa){var e=Xa.alternate;e=null!==e?e.memoizedState:null}else e=Qa.next;var t=null===Ja?Xa.memoizedState:Ja.next;if(null!==t)Ja=t,Qa=e;else{if(null===e)throw Error(s(310));e={memoizedState:(Qa=e).memoizedState,baseState:Qa.baseState,baseQueue:Qa.baseQueue,queue:Qa.queue,next:null},null===Ja?Xa.memoizedState=Ja=e:Ja=Ja.next=e}return Ja}function so(e,t){return"function"==typeof t?t(e):t}function lo(e){var t=oo(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=Qa,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=o=a=null,u=i;do{var c=u.lane;if((Ka&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(o=l=f,a=r):l=l.next=f,Xa.lanes|=c,Ds|=c}u=u.next}while(null!==u&&u!==i);null===l?a=r:l.next=o,lr(r,t.memoizedState)||(Lo=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function uo(e){var t=oo(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var o=i=i.next;do{a=e(a,o.action),o=o.next}while(o!==i);lr(a,t.memoizedState)||(Lo=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function co(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Ka&e)===e)&&(t._workInProgressVersionPrimary=r,Ga.push(t))),e)return n(t._source);throw Ga.push(t),Error(s(350))}function fo(e,t,n,r){var i=Ns;if(null===i)throw Error(s(349));var a=t._getVersion,o=a(t._source),l=Ya.current,u=l.useState((function(){return co(i,t,n)})),c=u[1],f=u[0];u=Ja;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var g=Xa;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=a(t._source);if(!lr(o,e)){e=n(t._source),lr(f,e)||(c(e),e=cl(g),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,s=e;0<s;){var l=31-qt(s),u=1<<l;r[l]|=e,s&=~u}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=cl(g);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),lr(h,n)&&lr(m,t)&&lr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:so,lastRenderedState:f}).dispatch=c=To.bind(null,Xa,e),u.queue=e,u.baseQueue=null,f=co(i,t,n),u.memoizedState=u.baseState=f),f}function po(e,t,n){return fo(oo(),e,t,n)}function ho(e){var t=ao();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:so,lastRenderedState:e}).dispatch=To.bind(null,Xa,e),[t.memoizedState,e]}function mo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Xa.updateQueue)?(t={lastEffect:null},Xa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function go(e){return e={current:e},ao().memoizedState=e}function yo(){return oo().memoizedState}function vo(e,t,n,r){var i=ao();Xa.flags|=e,i.memoizedState=mo(1|t,n,void 0,void 0===r?null:r)}function bo(e,t,n,r){var i=oo();r=void 0===r?null:r;var a=void 0;if(null!==Qa){var o=Qa.memoizedState;if(a=o.destroy,null!==r&&ro(r,o.deps))return void mo(t,n,a,r)}Xa.flags|=e,i.memoizedState=mo(1|t,n,a,r)}function wo(e,t){return vo(516,4,e,t)}function xo(e,t){return bo(516,4,e,t)}function _o(e,t){return bo(4,2,e,t)}function Eo(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ko(e,t,n){return n=null!=n?n.concat([e]):null,bo(4,2,Eo.bind(null,t,e),n)}function So(){}function Ao(e,t){var n=oo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ro(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Co(e,t){var n=oo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ro(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Oo(e,t){var n=Vi();Wi(98>n?98:n,(function(){e(!0)})),Wi(97<n?97:n,(function(){var n=$a.transition;$a.transition=1;try{e(!1),t()}finally{$a.transition=n}}))}function To(e,t,n){var r=ul(),i=cl(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Xa||null!==o&&o===Xa)to=eo=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=o(s,n);if(a.eagerReducer=o,a.eagerState=l,lr(l,s))return}catch(e){}fl(e,i,r)}}var No={readContext:ia,useCallback:no,useContext:no,useEffect:no,useImperativeHandle:no,useLayoutEffect:no,useMemo:no,useReducer:no,useRef:no,useState:no,useDebugValue:no,useDeferredValue:no,useTransition:no,useMutableSource:no,useOpaqueIdentifier:no,unstable_isNewReconciler:!1},Ro={readContext:ia,useCallback:function(e,t){return ao().memoizedState=[e,void 0===t?null:t],e},useContext:ia,useEffect:wo,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,vo(4,2,Eo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vo(4,2,e,t)},useMemo:function(e,t){var n=ao();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ao();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=To.bind(null,Xa,e),[r.memoizedState,e]},useRef:go,useState:ho,useDebugValue:So,useDeferredValue:function(e){var t=ho(e),n=t[0],r=t[1];return wo((function(){var t=$a.transition;$a.transition=1;try{r(e)}finally{$a.transition=t}}),[e]),n},useTransition:function(){var e=ho(!1),t=e[0];return go(e=Oo.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ao();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},fo(r,e,t,n)},useOpaqueIdentifier:function(){if(Ua){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Yr++).toString(36))),Error(s(355))})),n=ho(t)[1];return 0==(2&Xa.mode)&&(Xa.flags|=516,mo(5,(function(){n("r:"+(Yr++).toString(36))}),void 0,null)),t}return ho(t="r:"+(Yr++).toString(36)),t},unstable_isNewReconciler:!1},Po={readContext:ia,useCallback:Ao,useContext:ia,useEffect:xo,useImperativeHandle:ko,useLayoutEffect:_o,useMemo:Co,useReducer:lo,useRef:yo,useState:function(){return lo(so)},useDebugValue:So,useDeferredValue:function(e){var t=lo(so),n=t[0],r=t[1];return xo((function(){var t=$a.transition;$a.transition=1;try{r(e)}finally{$a.transition=t}}),[e]),n},useTransition:function(){var e=lo(so)[0];return[yo().current,e]},useMutableSource:po,useOpaqueIdentifier:function(){return lo(so)[0]},unstable_isNewReconciler:!1},jo={readContext:ia,useCallback:Ao,useContext:ia,useEffect:xo,useImperativeHandle:ko,useLayoutEffect:_o,useMemo:Co,useReducer:uo,useRef:yo,useState:function(){return uo(so)},useDebugValue:So,useDeferredValue:function(e){var t=uo(so),n=t[0],r=t[1];return xo((function(){var t=$a.transition;$a.transition=1;try{r(e)}finally{$a.transition=t}}),[e]),n},useTransition:function(){var e=uo(so)[0];return[yo().current,e]},useMutableSource:po,useOpaqueIdentifier:function(){return uo(so)[0]},unstable_isNewReconciler:!1},Io=_.ReactCurrentOwner,Lo=!1;function Mo(e,t,n,r){t.child=null===e?Sa(t,null,n,r):ka(t,e.child,n,r)}function Bo(e,t,n,r,i){n=n.render;var a=t.ref;return ra(t,i),r=io(e,t,n,r,a,i),null===e||Lo?(t.flags|=1,Mo(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ns(e,t,i))}function Do(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!=typeof o||Vl(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Wl(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Uo(e,t,o,r,i,a))}return o=e.child,0==(i&a)&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:cr)(i,r)&&e.ref===t.ref)?ns(e,t,a):(t.flags|=1,(e=Hl(o,r)).ref=t.ref,e.return=t,t.child=e)}function Uo(e,t,n,r,i,a){if(null!==e&&cr(e.memoizedProps,r)&&e.ref===t.ref){if(Lo=!1,0==(a&i))return t.lanes=e.lanes,ns(e,t,a);0!=(16384&e.flags)&&(Lo=!0)}return Vo(e,t,n,r,a)}function Fo(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},bl(t,n);else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},bl(t,e),null;t.memoizedState={baseLanes:0},bl(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,bl(t,r);return Mo(e,t,i,n),t.child}function zo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Vo(e,t,n,r,i){var a=mi(n)?pi:fi.current;return a=hi(t,a),ra(t,i),n=io(e,t,n,r,a,i),null===e||Lo?(t.flags|=1,Mo(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ns(e,t,i))}function Ho(e,t,n,r,i){if(mi(n)){var a=!0;bi(t)}else a=!1;if(ra(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),ya(t,n,r),ba(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=n.contextType;u="object"==typeof u&&null!==u?ia(u):hi(t,u=mi(n)?pi:fi.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==r||l!==u)&&va(t,o,r,u),aa=!1;var d=t.memoizedState;o.state=d,fa(t,r,o,i),l=t.memoizedState,s!==r||d!==l||di.current||aa?("function"==typeof c&&(ha(t,n,c,r),l=t.memoizedState),(s=aa||ga(t,n,s,r,d,l,u))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4)):("function"==typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,sa(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:$i(t.type,s),o.props=u,f=t.pendingProps,d=o.context,l="object"==typeof(l=n.contextType)&&null!==l?ia(l):hi(t,l=mi(n)?pi:fi.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==f||d!==l)&&va(t,o,r,l),aa=!1,d=t.memoizedState,o.state=d,fa(t,r,o,i);var h=t.memoizedState;s!==f||d!==h||di.current||aa?("function"==typeof p&&(ha(t,n,p,r),h=t.memoizedState),(u=aa||ga(t,n,u,r,d,h,l))?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=l,r=u):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Wo(e,t,n,r,a,i)}function Wo(e,t,n,r,i,a){zo(e,t);var o=0!=(64&t.flags);if(!r&&!o)return i&&wi(t,n,!1),ns(e,t,a);r=t.stateNode,Io.current=t;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=ka(t,e.child,null,a),t.child=ka(t,null,s,a)):Mo(e,t,s,a),t.memoizedState=r.state,i&&wi(t,n,!0),t.child}function qo(e){var t=e.stateNode;t.pendingContext?yi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yi(0,t.context,!1),Ra(e,t.containerInfo)}var Go,Zo,Yo,$o,Ko={dehydrated:null,retryLane:0};function Xo(e,t,n){var r,i=t.pendingProps,a=La.current,o=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),ui(La,1&a),null===e?(void 0!==i.fallback&&Va(t),e=i.children,a=i.fallback,o?(e=Qo(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ko,e):"number"==typeof i.unstable_expectedLoadTime?(e=Qo(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ko,t.lanes=33554432,e):((n=Gl({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(i=function(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var s={mode:"hidden",children:n};return 0==(2&a)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=s,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Hl(o,s),null!==e?r=Hl(e,r):(r=ql(r,a,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Ko,i):(n=function(e,t,n,r){var i=e.child;return e=i.sibling,n=Hl(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,i.children,n),t.memoizedState=null,n))}function Qo(e,t,n,r){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=Gl(t,i,0,null),n=ql(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function Jo(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),na(e.return,t)}function es(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function ts(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Mo(e,t,r.children,n),0!=(2&(r=La.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Jo(e,n);else if(19===e.tag)Jo(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ui(La,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Ma(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),es(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Ma(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}es(t,!0,n,null,a,t.lastEffect);break;case"together":es(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ns(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ds|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Hl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Hl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function rs(e,t){if(!Ua)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function is(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return mi(t.type)&&gi(),null;case 3:return Pa(),li(di),li(fi),Za(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Wa(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Zo(t),null;case 5:Ia(t);var i=Na(Ta.current);if(n=t.type,null!==e&&null!=t.stateNode)Yo(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(s(166));return null}if(e=Na(Ca.current),Wa(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Kr]=t,r[Xr]=o,n){case"dialog":Or("cancel",r),Or("close",r);break;case"iframe":case"object":case"embed":Or("load",r);break;case"video":case"audio":for(e=0;e<kr.length;e++)Or(kr[e],r);break;case"source":Or("error",r);break;case"img":case"image":case"link":Or("error",r),Or("load",r);break;case"details":Or("toggle",r);break;case"input":te(r,o),Or("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Or("invalid",r);break;case"textarea":ue(r,o),Or("invalid",r)}for(var l in Se(n,o),e=null,o)o.hasOwnProperty(l)&&(i=o[l],"children"===l?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):u.hasOwnProperty(l)&&null!=i&&"onScroll"===l&&Or("scroll",r));switch(n){case"input":X(r),ie(r,o,!0);break;case"textarea":X(r),fe(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=Dr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(l=9===i.nodeType?i:i.ownerDocument,e===de&&(e=he(n)),e===de?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Kr]=t,e[Xr]=r,Go(e,t,!1,!1),t.stateNode=e,l=Ae(n,r),n){case"dialog":Or("cancel",e),Or("close",e),i=r;break;case"iframe":case"object":case"embed":Or("load",e),i=r;break;case"video":case"audio":for(i=0;i<kr.length;i++)Or(kr[i],e);i=r;break;case"source":Or("error",e),i=r;break;case"img":case"image":case"link":Or("error",e),Or("load",e),i=r;break;case"details":Or("toggle",e),i=r;break;case"input":te(e,r),i=ee(e,r),Or("invalid",e);break;case"option":i=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=a({},r,{value:void 0}),Or("invalid",e);break;case"textarea":ue(e,r),i=le(e,r),Or("invalid",e);break;default:i=r}Se(n,i);var c=i;for(o in c)if(c.hasOwnProperty(o)){var f=c[o];"style"===o?Ee(e,f):"dangerouslySetInnerHTML"===o?null!=(f=f?f.__html:void 0)&&ve(e,f):"children"===o?"string"==typeof f?("textarea"!==n||""!==f)&&be(e,f):"number"==typeof f&&be(e,""+f):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(u.hasOwnProperty(o)?null!=f&&"onScroll"===o&&Or("scroll",e):null!=f&&x(e,o,f,l))}switch(n){case"input":X(e),ie(e,r,!1);break;case"textarea":X(e),fe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+$(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?se(e,!!r.multiple,o,!1):null!=r.defaultValue&&se(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Dr)}zr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)$o(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));n=Na(Ta.current),Na(Ca.current),Wa(t)?(r=t.stateNode,n=t.memoizedProps,r[Kr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Kr]=t,t.stateNode=r)}return null;case 13:return li(La),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Wa(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&La.current)?0===Ls&&(Ls=3):(0!==Ls&&3!==Ls||(Ls=4),null===Ns||0==(134217727&Ds)&&0==(134217727&Us)||ml(Ns,Ps))),(r||n)&&(t.flags|=4),null);case 4:return Pa(),Zo(t),null===e&&Nr(t.stateNode.containerInfo),null;case 10:return ta(t),null;case 19:if(li(La),null===(r=t.memoizedState))return null;if(o=0!=(64&t.flags),null===(l=r.rendering))if(o)rs(r,!1);else{if(0!==Ls||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(l=Ma(e))){for(t.flags|=64,rs(r,!1),null!==(o=l.updateQueue)&&(t.updateQueue=o,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(l=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ui(La,1&La.current|2),t.child}e=e.sibling}null!==r.tail&&zi()>Hs&&(t.flags|=64,o=!0,rs(r,!1),t.lanes=33554432)}else{if(!o)if(null!==(e=Ma(l))){if(t.flags|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),rs(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!Ua)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*zi()-r.renderingStartTime>Hs&&1073741824!==n&&(t.flags|=64,o=!0,rs(r,!1),t.lanes=33554432);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=zi(),n.sibling=null,t=La.current,ui(La,o?1&t|2:1&t),n):null;case 23:case 24:return wl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(s(156,t.tag))}function as(e){switch(e.tag){case 1:mi(e.type)&&gi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Pa(),li(di),li(fi),Za(),0!=(64&(t=e.flags)))throw Error(s(285));return e.flags=-4097&t|64,e;case 5:return Ia(e),null;case 13:return li(La),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return li(La),null;case 4:return Pa(),null;case 10:return ta(e),null;case 23:case 24:return wl(),null;default:return null}}function os(e,t){try{var n="",r=t;do{n+=Z(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function ss(e,t){try{r.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Go=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Zo=function(){},Yo=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Na(Ca.current);var o,s=null;switch(n){case"input":i=ee(e,i),r=ee(e,r),s=[];break;case"option":i=oe(e,i),r=oe(e,r),s=[];break;case"select":i=a({},i,{value:void 0}),r=a({},r,{value:void 0}),s=[];break;case"textarea":i=le(e,i),r=le(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Dr)}for(f in Se(n,r),n=null,i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var l=i[f];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var c=r[f];if(l=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&c!==l&&(null!=c||null!=l))if("style"===f)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(s||(s=[]),s.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Or("scroll",e),s||l===c||(s=[])):"object"==typeof c&&null!==c&&c.$$typeof===M?c.toString():(s=s||[]).push(f,c))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},$o=function(e,t,n,r){n!==r&&(t.flags|=4)};var ls="function"==typeof WeakMap?WeakMap:Map;function us(e,t,n){(n=la(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zs||(Zs=!0,Ys=r),ss(0,t)},n}function cs(e,t,n){(n=la(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return ss(0,t),r(i)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===$s?$s=new Set([this]):$s.add(this),ss(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var fs="function"==typeof WeakSet?WeakSet:Set;function ds(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Bl(e,t)}else t.current=null}function ps(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:$i(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&qr(t.stateNode.containerInfo))}throw Error(s(163))}function hs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Il(n,e),jl(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:$i(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&da(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}da(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&zr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Et(n)))))}throw Error(s(163))}function ms(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=_e("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function gs(e,t){if(_i&&"function"==typeof _i.onCommitFiberUnmount)try{_i.onCommitFiberUnmount(xi,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Il(t,n);else{r=t;try{i()}catch(e){Bl(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ds(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Bl(t,e)}break;case 5:ds(t);break;case 4:_s(e,t)}}function ys(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function vs(e){return 5===e.tag||3===e.tag||4===e.tag}function bs(e){e:{for(var t=e.return;null!==t;){if(vs(t))break e;t=t.return}throw Error(s(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(s(161))}16&n.flags&&(be(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?ws(e,n,t):xs(e,n,t)}function ws(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Dr));else if(4!==r&&null!==(e=e.child))for(ws(e,t,n),e=e.sibling;null!==e;)ws(e,t,n),e=e.sibling}function xs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(xs(e,t,n),e=e.sibling;null!==e;)xs(e,t,n),e=e.sibling}function _s(e,t){for(var n,r,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(s(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var o=e,l=i,u=l;;)if(gs(o,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(o=n,l=i.stateNode,8===o.nodeType?o.parentNode.removeChild(l):o.removeChild(l)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(gs(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function Es(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Xr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ne(n,r),Ae(e,i),t=Ae(e,r),i=0;i<a.length;i+=2){var o=a[i],l=a[i+1];"style"===o?Ee(n,l):"dangerouslySetInnerHTML"===o?ve(n,l):"children"===o?be(n,l):x(n,o,l,t)}switch(e){case"input":re(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?se(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?se(n,!!r.multiple,r.defaultValue,!0):se(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(s(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Et(n.containerInfo)));case 13:return null!==t.memoizedState&&(Vs=zi(),ms(t.child,!0)),void ks(t);case 19:return void ks(t);case 23:case 24:return void ms(t,null!==t.memoizedState)}throw Error(s(163))}function ks(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fs),t.forEach((function(t){var r=Ul.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ss(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var As=Math.ceil,Cs=_.ReactCurrentDispatcher,Os=_.ReactCurrentOwner,Ts=0,Ns=null,Rs=null,Ps=0,js=0,Is=si(0),Ls=0,Ms=null,Bs=0,Ds=0,Us=0,Fs=0,zs=null,Vs=0,Hs=1/0;function Ws(){Hs=zi()+500}var qs,Gs=null,Zs=!1,Ys=null,$s=null,Ks=!1,Xs=null,Qs=90,Js=[],el=[],tl=null,nl=0,rl=null,il=-1,al=0,ol=0,sl=null,ll=!1;function ul(){return 0!=(48&Ts)?zi():-1!==il?il:il=zi()}function cl(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Vi()?1:2;if(0===al&&(al=Bs),0!==Yi.transition){0!==ol&&(ol=null!==zs?zs.pendingLanes:0),e=al;var t=4186112&~ol;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Vi(),e=zt(0!=(4&Ts)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),al)}function fl(e,t,n){if(50<nl)throw nl=0,rl=null,Error(s(185));if(null===(e=dl(e,t)))return null;Wt(e,t,n),e===Ns&&(Us|=t,4===Ls&&ml(e,Ps));var r=Vi();1===t?0!=(8&Ts)&&0==(48&Ts)?gl(e):(pl(e,n),0===Ts&&(Ws(),Gi())):(0==(4&Ts)||98!==r&&99!==r||(null===tl?tl=new Set([e]):tl.add(e)),pl(e,n)),zs=e}function dl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function pl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-qt(o),u=1<<l,c=a[l];if(-1===c){if(0==(u&r)||0!=(u&i)){c=t,Dt(u);var f=Bt;a[l]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);o&=~u}if(r=Ut(e,e===Ns?Ps:0),t=Bt,0===r)null!==n&&(n!==Li&&Si(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Li&&Si(n)}15===t?(n=gl.bind(null,e),null===Bi?(Bi=[n],Di=ki(Ni,Zi)):Bi.push(n),n=Li):14===t?n=qi(99,gl.bind(null,e)):n=qi(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(s(358,e))}}(t),hl.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function hl(e){if(il=-1,ol=al=0,0!=(48&Ts))throw Error(s(327));var t=e.callbackNode;if(Pl()&&e.callbackNode!==t)return null;var n=Ut(e,e===Ns?Ps:0);if(0===n)return null;var r=n,i=Ts;Ts|=16;var a=El();for(Ns===e&&Ps===r||(Ws(),xl(e,r));;)try{Al();break}catch(t){_l(e,t)}if(ea(),Cs.current=a,Ts=i,null!==Rs?r=0:(Ns=null,Ps=0,r=Ls),0!=(Bs&Us))xl(e,0);else if(0!==r){if(2===r&&(Ts|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(n=Ft(e))&&(r=kl(e,n))),1===r)throw t=Ms,xl(e,0),ml(e,n),pl(e,zi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(s(345));case 2:case 5:Tl(e);break;case 3:if(ml(e,n),(62914560&n)===n&&10<(r=Vs+500-zi())){if(0!==Ut(e,0))break;if(((i=e.suspendedLanes)&n)!==n){ul(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Hr(Tl.bind(null,e),r);break}Tl(e);break;case 4:if(ml(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var o=31-qt(n);a=1<<o,(o=r[o])>i&&(i=o),n&=~a}if(n=i,10<(n=(120>(n=zi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*As(n/1960))-n)){e.timeoutHandle=Hr(Tl.bind(null,e),n);break}Tl(e);break;default:throw Error(s(329))}}return pl(e,zi()),e.callbackNode===t?hl.bind(null,e):null}function ml(e,t){for(t&=~Fs,t&=~Us,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-qt(t),r=1<<n;e[n]=-1,t&=~r}}function gl(e){if(0!=(48&Ts))throw Error(s(327));if(Pl(),e===Ns&&0!=(e.expiredLanes&Ps)){var t=Ps,n=kl(e,t);0!=(Bs&Us)&&(n=kl(e,t=Ut(e,t)))}else n=kl(e,t=Ut(e,0));if(0!==e.tag&&2===n&&(Ts|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(t=Ft(e))&&(n=kl(e,t))),1===n)throw n=Ms,xl(e,0),ml(e,t),pl(e,zi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Tl(e),pl(e,zi()),null}function yl(e,t){var n=Ts;Ts|=1;try{return e(t)}finally{0===(Ts=n)&&(Ws(),Gi())}}function vl(e,t){var n=Ts;Ts&=-2,Ts|=8;try{return e(t)}finally{0===(Ts=n)&&(Ws(),Gi())}}function bl(e,t){ui(Is,js),js|=t,Bs|=t}function wl(){js=Is.current,li(Is)}function xl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Wr(n)),null!==Rs)for(n=Rs.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&gi();break;case 3:Pa(),li(di),li(fi),Za();break;case 5:Ia(r);break;case 4:Pa();break;case 13:case 19:li(La);break;case 10:ta(r);break;case 23:case 24:wl()}n=n.return}Ns=e,Rs=Hl(e.current,null),Ps=js=Bs=t,Ls=0,Ms=null,Fs=Us=Ds=0}function _l(e,t){for(;;){var n=Rs;try{if(ea(),Ya.current=No,eo){for(var r=Xa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}eo=!1}if(Ka=0,Ja=Qa=Xa=null,to=!1,Os.current=null,null===n||null===n.return){Ls=1,Ms=t,Rs=null;break}e:{var a=e,o=n.return,s=n,l=t;if(t=Ps,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l;if(0==(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!=(1&La.current),d=o;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=d.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(p){var g=d.updateQueue;if(null===g){var y=new Set;y.add(u),d.updateQueue=y}else g.add(u);if(0==(2&d.mode)){if(d.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var v=la(-1,1);v.tag=2,ua(s,v)}s.lanes|=1;break e}l=void 0,s=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new ls,l=new Set,b.set(u,l)):void 0===(l=b.get(u))&&(l=new Set,b.set(u,l)),!l.has(s)){l.add(s);var w=Dl.bind(null,a,u,s);u.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);l=Error((Y(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ls&&(Ls=2),l=os(l,s),d=o;do{switch(d.tag){case 3:a=l,d.flags|=4096,t&=-t,d.lanes|=t,ca(d,us(0,a,t));break e;case 1:a=l;var x=d.type,_=d.stateNode;if(0==(64&d.flags)&&("function"==typeof x.getDerivedStateFromError||null!==_&&"function"==typeof _.componentDidCatch&&(null===$s||!$s.has(_)))){d.flags|=4096,t&=-t,d.lanes|=t,ca(d,cs(d,a,t));break e}}d=d.return}while(null!==d)}Ol(n)}catch(e){t=e,Rs===n&&null!==n&&(Rs=n=n.return);continue}break}}function El(){var e=Cs.current;return Cs.current=No,null===e?No:e}function kl(e,t){var n=Ts;Ts|=16;var r=El();for(Ns===e&&Ps===t||xl(e,t);;)try{Sl();break}catch(t){_l(e,t)}if(ea(),Ts=n,Cs.current=r,null!==Rs)throw Error(s(261));return Ns=null,Ps=0,Ls}function Sl(){for(;null!==Rs;)Cl(Rs)}function Al(){for(;null!==Rs&&!Ai();)Cl(Rs)}function Cl(e){var t=qs(e.alternate,e,js);e.memoizedProps=e.pendingProps,null===t?Ol(e):Rs=t,Os.current=null}function Ol(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=is(n,t,js)))return void(Rs=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&js)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=as(t)))return n.flags&=2047,void(Rs=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Rs=t);Rs=t=e}while(null!==t);0===Ls&&(Ls=5)}function Tl(e){var t=Vi();return Wi(99,Nl.bind(null,e,t)),null}function Nl(e,t){do{Pl()}while(null!==Xs);if(0!=(48&Ts))throw Error(s(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var o=e.eventTimes,l=e.expirationTimes;0<a;){var u=31-qt(a),c=1<<u;i[u]=0,o[u]=-1,l[u]=-1,a&=~c}if(null!==tl&&0==(24&r)&&tl.has(e)&&tl.delete(e),e===Ns&&(Rs=Ns=null,Ps=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Ts,Ts|=32,Os.current=null,Ur=Kt,mr(o=hr())){if("selectionStart"in o)l={start:o.selectionStart,end:o.selectionEnd};else e:if(l=(l=o.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&0!==c.rangeCount){l=c.anchorNode,a=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{l.nodeType,u.nodeType}catch(e){l=null;break e}var f=0,d=-1,p=-1,h=0,m=0,g=o,y=null;t:for(;;){for(var v;g!==l||0!==a&&3!==g.nodeType||(d=f+a),g!==u||0!==c&&3!==g.nodeType||(p=f+c),3===g.nodeType&&(f+=g.nodeValue.length),null!==(v=g.firstChild);)y=g,g=v;for(;;){if(g===o)break t;if(y===l&&++h===a&&(d=f),y===u&&++m===c&&(p=f),null!==(v=g.nextSibling))break;y=(g=y).parentNode}g=v}l=-1===d||-1===p?null:{start:d,end:p}}else l=null;l=l||{start:0,end:0}}else l=null;Fr={focusedElem:o,selectionRange:l},Kt=!1,sl=null,ll=!1,Gs=r;do{try{Rl()}catch(e){if(null===Gs)throw Error(s(330));Bl(Gs,e),Gs=Gs.nextEffect}}while(null!==Gs);sl=null,Gs=r;do{try{for(o=e;null!==Gs;){var b=Gs.flags;if(16&b&&be(Gs.stateNode,""),128&b){var w=Gs.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&b){case 2:bs(Gs),Gs.flags&=-3;break;case 6:bs(Gs),Gs.flags&=-3,Es(Gs.alternate,Gs);break;case 1024:Gs.flags&=-1025;break;case 1028:Gs.flags&=-1025,Es(Gs.alternate,Gs);break;case 4:Es(Gs.alternate,Gs);break;case 8:_s(o,l=Gs);var _=l.alternate;ys(l),null!==_&&ys(_)}Gs=Gs.nextEffect}}catch(e){if(null===Gs)throw Error(s(330));Bl(Gs,e),Gs=Gs.nextEffect}}while(null!==Gs);if(x=Fr,w=hr(),b=x.focusedElem,o=x.selectionRange,w!==b&&b&&b.ownerDocument&&pr(b.ownerDocument.documentElement,b)){null!==o&&mr(b)&&(w=o.start,void 0===(x=o.end)&&(x=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(x,b.value.length)):(x=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),l=b.textContent.length,_=Math.min(o.start,l),o=void 0===o.end?_:Math.min(o.end,l),!x.extend&&_>o&&(l=o,o=_,_=l),l=dr(b,_),a=dr(b,o),l&&a&&(1!==x.rangeCount||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==a.node||x.focusOffset!==a.offset)&&((w=w.createRange()).setStart(l.node,l.offset),x.removeAllRanges(),_>o?(x.addRange(w),x.extend(a.node,a.offset)):(w.setEnd(a.node,a.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(x=w[b]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Kt=!!Ur,Fr=Ur=null,e.current=n,Gs=r;do{try{for(b=e;null!==Gs;){var E=Gs.flags;if(36&E&&hs(b,Gs.alternate,Gs),128&E){w=void 0;var k=Gs.ref;if(null!==k){var S=Gs.stateNode;Gs.tag,w=S,"function"==typeof k?k(w):k.current=w}}Gs=Gs.nextEffect}}catch(e){if(null===Gs)throw Error(s(330));Bl(Gs,e),Gs=Gs.nextEffect}}while(null!==Gs);Gs=null,Mi(),Ts=i}else e.current=n;if(Ks)Ks=!1,Xs=e,Qs=t;else for(Gs=r;null!==Gs;)t=Gs.nextEffect,Gs.nextEffect=null,8&Gs.flags&&((E=Gs).sibling=null,E.stateNode=null),Gs=t;if(0===(r=e.pendingLanes)&&($s=null),1===r?e===rl?nl++:(nl=0,rl=e):nl=0,n=n.stateNode,_i&&"function"==typeof _i.onCommitFiberRoot)try{_i.onCommitFiberRoot(xi,n,void 0,64==(64&n.current.flags))}catch(e){}if(pl(e,zi()),Zs)throw Zs=!1,e=Ys,Ys=null,e;return 0!=(8&Ts)||Gi(),null}function Rl(){for(;null!==Gs;){var e=Gs.alternate;ll||null===sl||(0!=(8&Gs.flags)?tt(Gs,sl)&&(ll=!0):13===Gs.tag&&Ss(e,Gs)&&tt(Gs,sl)&&(ll=!0));var t=Gs.flags;0!=(256&t)&&ps(e,Gs),0==(512&t)||Ks||(Ks=!0,qi(97,(function(){return Pl(),null}))),Gs=Gs.nextEffect}}function Pl(){if(90!==Qs){var e=97<Qs?97:Qs;return Qs=90,Wi(e,Ll)}return!1}function jl(e,t){Js.push(t,e),Ks||(Ks=!0,qi(97,(function(){return Pl(),null})))}function Il(e,t){el.push(t,e),Ks||(Ks=!0,qi(97,(function(){return Pl(),null})))}function Ll(){if(null===Xs)return!1;var e=Xs;if(Xs=null,0!=(48&Ts))throw Error(s(331));var t=Ts;Ts|=32;var n=el;el=[];for(var r=0;r<n.length;r+=2){var i=n[r],a=n[r+1],o=i.destroy;if(i.destroy=void 0,"function"==typeof o)try{o()}catch(e){if(null===a)throw Error(s(330));Bl(a,e)}}for(n=Js,Js=[],r=0;r<n.length;r+=2){i=n[r],a=n[r+1];try{var l=i.create;i.destroy=l()}catch(e){if(null===a)throw Error(s(330));Bl(a,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Ts=t,Gi(),!0}function Ml(e,t,n){ua(e,t=us(0,t=os(n,t),1)),t=ul(),null!==(e=dl(e,1))&&(Wt(e,1,t),pl(e,t))}function Bl(e,t){if(3===e.tag)Ml(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Ml(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===$s||!$s.has(r))){var i=cs(n,e=os(t,e),1);if(ua(n,i),i=ul(),null!==(n=dl(n,1)))Wt(n,1,i),pl(n,i);else if("function"==typeof r.componentDidCatch&&(null===$s||!$s.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Dl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ul(),e.pingedLanes|=e.suspendedLanes&n,Ns===e&&(Ps&n)===n&&(4===Ls||3===Ls&&(62914560&Ps)===Ps&&500>zi()-Vs?xl(e,0):Fs|=n),pl(e,t)}function Ul(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Vi()?1:2:(0===al&&(al=Bs),0===(t=Vt(62914560&~al))&&(t=4194304))),n=ul(),null!==(e=dl(e,t))&&(Wt(e,t,n),pl(e,n))}function Fl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function zl(e,t,n,r){return new Fl(e,t,n,r)}function Vl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Hl(e,t){var n=e.alternate;return null===n?((n=zl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Wl(e,t,n,r,i,a){var o=2;if(r=e,"function"==typeof e)Vl(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case S:return ql(n.children,i,a,t);case B:o=8,i|=16;break;case A:o=8,i|=1;break;case C:return(e=zl(12,n,t,8|i)).elementType=C,e.type=C,e.lanes=a,e;case R:return(e=zl(13,n,t,i)).type=R,e.elementType=R,e.lanes=a,e;case P:return(e=zl(19,n,t,i)).elementType=P,e.lanes=a,e;case D:return Gl(n,i,a,t);case U:return(e=zl(24,n,t,i)).elementType=U,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:o=10;break e;case T:o=9;break e;case N:o=11;break e;case j:o=14;break e;case I:o=16,r=null;break e;case L:o=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=zl(o,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function ql(e,t,n,r){return(e=zl(7,e,r,t)).lanes=n,e}function Gl(e,t,n,r){return(e=zl(23,e,r,t)).elementType=D,e.lanes=n,e}function Zl(e,t,n){return(e=zl(6,e,null,t)).lanes=n,e}function Yl(e,t,n){return(t=zl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $l(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ht(0),this.expirationTimes=Ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ht(0),this.mutableSourceEagerHydrationData=null}function Kl(e,t,n,r){var i=t.current,a=ul(),o=cl(i);e:if(n){t:{if(Xe(n=n._reactInternals)!==n||1!==n.tag)throw Error(s(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(mi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(s(171))}if(1===n.tag){var u=n.type;if(mi(u)){n=vi(n,u,l);break e}}n=l}else n=ci;return null===t.context?t.context=n:t.pendingContext=n,(t=la(a,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ua(i,t),fl(i,o,a),o}function Xl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ql(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Jl(e,t){Ql(e,t),(e=e.alternate)&&Ql(e,t)}function eu(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new $l(e,t,null!=n&&!0===n.hydrate),t=zl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,oa(t),e[Qr]=n.current,Nr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function tu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function nu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Xl(o);s.call(e)}}Kl(t,o,e,i)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new eu(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"==typeof i){var l=i;i=function(){var e=Xl(o);l.call(e)}}vl((function(){Kl(t,o,e,i)}))}return Xl(o)}function ru(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!tu(t))throw Error(s(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}qs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||di.current)Lo=!0;else{if(0==(n&r)){switch(Lo=!1,t.tag){case 3:qo(t),qa();break;case 5:ja(t);break;case 1:mi(t.type)&&bi(t);break;case 4:Ra(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ui(Ki,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Xo(e,t,n):(ui(La,1&La.current),null!==(t=ns(e,t,n))?t.sibling:null);ui(La,1&La.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return ts(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ui(La,La.current),r)break;return null;case 23:case 24:return t.lanes=0,Fo(e,t,n)}return ns(e,t,n)}Lo=0!=(16384&e.flags)}else Lo=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=hi(t,fi.current),ra(t,n),i=io(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,mi(r)){var a=!0;bi(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oa(t);var o=r.getDerivedStateFromProps;"function"==typeof o&&ha(t,r,o,e),i.updater=ma,t.stateNode=i,i._reactInternals=t,ba(t,r,e,n),t=Wo(null,t,r,!0,a,n)}else t.tag=0,Mo(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(a=i._init)(i._payload),t.type=i,a=t.tag=function(e){if("function"==typeof e)return Vl(e)?1:0;if(null!=e){if((e=e.$$typeof)===N)return 11;if(e===j)return 14}return 2}(i),e=$i(i,e),a){case 0:t=Vo(null,t,i,e,n);break e;case 1:t=Ho(null,t,i,e,n);break e;case 11:t=Bo(null,t,i,e,n);break e;case 14:t=Do(null,t,i,$i(i.type,e),r,n);break e}throw Error(s(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Vo(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ho(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 3:if(qo(t),r=t.updateQueue,null===e||null===r)throw Error(s(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,sa(e,t),fa(t,r,null,n),(r=t.memoizedState.element)===i)qa(),t=ns(e,t,n);else{if((a=(i=t.stateNode).hydrate)&&(Da=Gr(t.stateNode.containerInfo.firstChild),Ba=t,a=Ua=!0),a){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(a=e[i])._workInProgressVersionPrimary=e[i+1],Ga.push(a);for(n=Sa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Mo(e,t,r,n),qa();t=t.child}return t;case 5:return ja(t),null===e&&Va(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,o=i.children,Vr(r,i)?o=null:null!==a&&Vr(r,a)&&(t.flags|=16),zo(e,t),Mo(e,t,o,n),t.child;case 6:return null===e&&Va(t),null;case 13:return Xo(e,t,n);case 4:return Ra(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ka(t,null,r,n):Mo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Bo(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 7:return Mo(e,t,t.pendingProps,n),t.child;case 8:case 12:return Mo(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value;var l=t.type._context;if(ui(Ki,l._currentValue),l._currentValue=a,null!==o)if(l=o.value,0==(a=lr(l,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,a):1073741823))){if(o.children===i.children&&!di.current){t=ns(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){o=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&a)){1===l.tag&&((c=la(-1,n&-n)).tag=2,ua(l,c)),l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),na(l.return,n),u.lanes|=n;break}c=c.next}}else o=10===l.tag&&l.type===t.type?null:l.child;if(null!==o)o.return=l;else for(o=l;null!==o;){if(o===t){o=null;break}if(null!==(l=o.sibling)){l.return=o.return,o=l;break}o=o.return}l=o}Mo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,ra(t,n),r=r(i=ia(i,a.unstable_observedBits)),t.flags|=1,Mo(e,t,r,n),t.child;case 14:return a=$i(i=t.type,t.pendingProps),Do(e,t,i,a=$i(i.type,a),r,n);case 15:return Uo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:$i(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,mi(r)?(e=!0,bi(t)):e=!1,ra(t,n),ya(t,r,i),ba(t,r,i,n),Wo(null,t,r,!0,e,n);case 19:return ts(e,t,n);case 23:case 24:return Fo(e,t,n)}throw Error(s(156,t.tag))},eu.prototype.render=function(e){Kl(e,this._internalRoot,null,null)},eu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Kl(null,e,null,(function(){t[Qr]=null}))},nt=function(e){13===e.tag&&(fl(e,4,ul()),Jl(e,4))},rt=function(e){13===e.tag&&(fl(e,67108864,ul()),Jl(e,67108864))},it=function(e){if(13===e.tag){var t=ul(),n=cl(e);fl(e,n,t),Jl(e,n)}},at=function(e,t){return t()},Oe=function(e,t,n){switch(t){case"input":if(re(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ri(r);if(!i)throw Error(s(90));Q(r),re(r,i)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&se(e,!!n.multiple,t,!1)}},Ie=yl,Le=function(e,t,n,r,i){var a=Ts;Ts|=4;try{return Wi(98,e.bind(null,t,n,r,i))}finally{0===(Ts=a)&&(Ws(),Gi())}},Me=function(){0==(49&Ts)&&(function(){if(null!==tl){var e=tl;tl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,pl(e,zi())}))}Gi()}(),Pl())},Be=function(e,t){var n=Ts;Ts|=2;try{return e(t)}finally{0===(Ts=n)&&(Ws(),Gi())}};var iu={Events:[ti,ni,ri,Pe,je,Pl,{current:!1}]},au={findFiberByHostInstance:ei,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},ou={bundleType:au.bundleType,version:au.version,rendererPackageName:au.rendererPackageName,rendererConfig:au.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=et(e))?null:e.stateNode},findFiberByHostInstance:au.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!su.isDisabled&&su.supportsFiber)try{xi=su.inject(ou),_i=su}catch(ye){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=iu,t.createPortal=ru,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(s(188));throw Error(s(268,Object.keys(e)))}return null===(e=et(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Ts;if(0!=(48&n))return e(t);Ts|=1;try{if(e)return Wi(99,e.bind(null,t))}finally{Ts=n,Gi()}},t.hydrate=function(e,t,n){if(!tu(t))throw Error(s(200));return nu(null,e,t,!0,n)},t.render=function(e,t,n){if(!tu(t))throw Error(s(200));return nu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!tu(e))throw Error(s(40));return!!e._reactRootContainer&&(vl((function(){nu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Qr]=null}))})),!0)},t.unstable_batchedUpdates=yl,t.unstable_createPortal=function(e,t){return ru(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!tu(n))throw Error(s(200));if(null==e||void 0===e._reactInternals)throw Error(s(38));return nu(e,t,n,!1,r)},t.version="17.0.2"},8932:(e,t,n)=>{"use strict";var r=n(3705);!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){r.error(e)}}(),e.exports=n(3500)},1923:(e,t,n)=>{"use strict";n(8898);var r=n(1173),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;i=a("react.element"),t.Fragment=a("react.fragment")}var o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,a={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:a,_owner:o.current}}t.jsx=u,t.jsxs=u},5636:(e,t,n)=>{"use strict";var r=n(8898),i=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,s=60110,l=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),a=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),o=f("react.provider"),s=f("react.context"),l=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var b=v.prototype=new y;b.constructor=v,r(b,g.prototype),b.isPureReactComponent=!0;var w={current:null},x=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,a={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)x.call(t,r)&&!_.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:i,type:e,key:o,ref:s,props:a,_owner:w.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var S=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,n,r,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case a:l=!0}}if(l)return o=o(l=e),e=""===r?"."+A(l,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),C(o,t,n,"",(function(e){return e}))):null!=o&&(k(o)&&(o=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(S,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+A(s=e[u],u);l+=C(s,t,n,c,o)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),u=0;!(s=e.next()).done;)l+=C(s=s.value,t,n,c=r+A(s,u++),o);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function O(e,t,n){if(null==e)return e;var r=[],i=0;return C(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function T(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var N={current:null};function R(){var e=N.current;if(null===e)throw Error(p(321));return e}var P={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error(p(143));return e}},t.Component=g,t.PureComponent=v,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var a=r({},e.props),o=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=w.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)x.call(t,c)&&!_.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];a.children=u}return{$$typeof:i,type:e.type,key:o,ref:s,props:a,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return R().useCallback(e,t)},t.useContext=function(e,t){return R().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return R().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return R().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return R().useLayoutEffect(e,t)},t.useMemo=function(e,t){return R().useMemo(e,t)},t.useReducer=function(e,t,n){return R().useReducer(e,t,n)},t.useRef=function(e){return R().useRef(e)},t.useState=function(e){return R().useState(e)},t.version="17.0.2"},1173:(e,t,n)=>{"use strict";e.exports=n(5636)},465:(e,t,n)=>{"use strict";e.exports=n(1923)},6362:(e,t,n)=>{"use strict";var r=n(5224),i=n(3705);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,s,l=n(71).codes,u=l.ERR_AMBIGUOUS_ARGUMENT,c=l.ERR_INVALID_ARG_TYPE,f=l.ERR_INVALID_ARG_VALUE,d=l.ERR_INVALID_RETURN_VALUE,p=l.ERR_MISSING_ARGS,h=n(8292),m=n(3575).inspect,g=n(3575).types,y=g.isPromise,v=g.isRegExp,b=Object.assign?Object.assign:n(8957).assign,w=Object.is?Object.is:n(8619);function x(){var e=n(6825);o=e.isDeepEqual,s=e.isDeepStrictEqual}new Map;var _=!1,E=e.exports=C,k={};function S(e){if(e.message instanceof Error)throw e.message;throw new h(e)}function A(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var a=new h({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw a.generatedMessage=i,a}}function C(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];A.apply(void 0,[C,t.length].concat(t))}E.fail=function e(t,n,a,o,s){var l,u=arguments.length;if(0===u?l="Failed":1===u?(a=t,t=void 0):(!1===_&&(_=!0,(r.emitWarning?r.emitWarning:i.warn.bind(i))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===u&&(o="!=")),a instanceof Error)throw a;var c={actual:t,expected:n,operator:void 0===o?"fail":o,stackStartFn:s||e};void 0!==a&&(c.message=a);var f=new h(c);throw l&&(f.message=l,f.generatedMessage=!0),f},E.AssertionError=h,E.ok=C,E.equal=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");t!=n&&S({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},E.notEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");t==n&&S({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},E.deepEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),o(t,n)||S({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},E.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),o(t,n)&&S({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},E.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),s(t,n)||S({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},E.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),s(t,n)&&S({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},E.strictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");w(t,n)||S({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},E.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");w(t,n)&&S({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var O=function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach((function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&v(t[e])&&t[e].test(r[e])?i[e]=r[e]:i[e]=t[e])}))};function T(e,t,n,r){if("function"!=typeof t){if(v(t))return t.test(e);if(2===arguments.length)throw new c("expected",["Function","RegExp"],t);if("object"!==a(e)||null===e){var i=new h({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw i.operator=r.name,i}var l=Object.keys(t);if(t instanceof Error)l.push("name","message");else if(0===l.length)throw new f("error",t,"may not be an empty object");return void 0===o&&x(),l.forEach((function(i){"string"==typeof e[i]&&v(t[i])&&t[i].test(e[i])||function(e,t,n,r,i,a){if(!(n in e)||!s(e[n],t[n])){if(!r){var o=new O(e,i),l=new O(t,i,e),u=new h({actual:o,expected:l,operator:"deepStrictEqual",stackStartFn:a});throw u.actual=e,u.expected=t,u.operator=a.name,u}S({actual:e,expected:t,message:r,operator:a.name,stackStartFn:a})}}(e,t,i,n,l,r)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function N(e){if("function"!=typeof e)throw new c("fn","Function",e);try{e()}catch(e){return e}return k}function R(e){return y(e)||null!==e&&"object"===a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function P(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!R(t=e()))throw new d("instance of Promise","promiseFn",t)}else{if(!R(e))throw new c("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return k})).catch((function(e){return e}))}))}function j(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],n);if("object"===a(t)&&null!==t){if(t.message===n)throw new u("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new u("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==a(n)&&"function"!=typeof n)throw new c("error",["Object","Error","Function","RegExp"],n);if(t===k){var i="";n&&n.name&&(i+=" (".concat(n.name,")")),i+=r?": ".concat(r):".";var o="rejects"===e.name?"rejection":"exception";S({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(o).concat(i),stackStartFn:e})}if(n&&!T(t,n,r,e))throw t}function I(e,t,n,r){if(t!==k){if("string"==typeof n&&(r=n,n=void 0),!n||T(t,n)){var i=r?": ".concat(r):".",a="doesNotReject"===e.name?"rejection":"exception";S({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(a).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function L(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];A.apply(void 0,[L,t.length].concat(t))}E.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];j.apply(void 0,[e,N(t)].concat(r))},E.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return P(t).then((function(t){return j.apply(void 0,[e,t].concat(r))}))},E.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];I.apply(void 0,[e,N(t)].concat(r))},E.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return P(t).then((function(t){return I.apply(void 0,[e,t].concat(r))}))},E.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===a(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=m(t);var r=new h({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),i=t.stack;if("string"==typeof i){var o=i.split("\n");o.shift();for(var s=r.stack.split("\n"),l=0;l<o.length;l++){var u=s.indexOf(o[l]);if(-1!==u){s=s.slice(0,u);break}}r.stack="".concat(s.join("\n"),"\n").concat(o.join("\n"))}throw r}},E.strict=b(L,E,{equal:E.strictEqual,deepEqual:E.deepStrictEqual,notEqual:E.notStrictEqual,notDeepEqual:E.notDeepStrictEqual}),E.strict.strict=E.strict},8292:(e,t,n)=>{"use strict";var r=n(5224);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?s(e):t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){var t="function"==typeof Map?new Map:void 0;return(l=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,f(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)})(e)}function u(e,t,n){return(u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&c(i,n.prototype),i}).apply(null,arguments)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p=n(3575).inspect,h=n(71).codes.ERR_INVALID_ARG_TYPE;function m(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var g="",y="",v="",b="",w={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function x(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function _(e){return p(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function E(e,t,n){var i="",a="",o=0,s="",l=!1,u=_(e),c=u.split("\n"),f=_(t).split("\n"),p=0,h="";if("strictEqual"===n&&"object"===d(e)&&"object"===d(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===c.length&&1===f.length&&c[0]!==f[0]){var x=c[0].length+f[0].length;if(x<=10){if(!("object"===d(e)&&null!==e||"object"===d(t)&&null!==t||0===e&&0===t))return"".concat(w[n],"\n\n")+"".concat(c[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==n&&x<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;c[0][p]===f[0][p];)p++;p>2&&(h="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",p),"^"),p=0)}}for(var E=c[c.length-1],k=f[f.length-1];E===k&&(p++<2?s="\n ".concat(E).concat(s):i=E,c.pop(),f.pop(),0!==c.length&&0!==f.length);)E=c[c.length-1],k=f[f.length-1];var S=Math.max(c.length,f.length);if(0===S){var A=u.split("\n");if(A.length>30)for(A[26]="".concat(g,"...").concat(b);A.length>27;)A.pop();return"".concat(w.notIdentical,"\n\n").concat(A.join("\n"),"\n")}p>3&&(s="\n".concat(g,"...").concat(b).concat(s),l=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var C=0,O=w[n]+"\n".concat(y,"+ actual").concat(b," ").concat(v,"- expected").concat(b),T=" ".concat(g,"...").concat(b," Lines skipped");for(p=0;p<S;p++){var N=p-o;if(c.length<p+1)N>1&&p>2&&(N>4?(a+="\n".concat(g,"...").concat(b),l=!0):N>3&&(a+="\n ".concat(f[p-2]),C++),a+="\n ".concat(f[p-1]),C++),o=p,i+="\n".concat(v,"-").concat(b," ").concat(f[p]),C++;else if(f.length<p+1)N>1&&p>2&&(N>4?(a+="\n".concat(g,"...").concat(b),l=!0):N>3&&(a+="\n ".concat(c[p-2]),C++),a+="\n ".concat(c[p-1]),C++),o=p,a+="\n".concat(y,"+").concat(b," ").concat(c[p]),C++;else{var R=f[p],P=c[p],j=P!==R&&(!m(P,",")||P.slice(0,-1)!==R);j&&m(R,",")&&R.slice(0,-1)===P&&(j=!1,P+=","),j?(N>1&&p>2&&(N>4?(a+="\n".concat(g,"...").concat(b),l=!0):N>3&&(a+="\n ".concat(c[p-2]),C++),a+="\n ".concat(c[p-1]),C++),o=p,a+="\n".concat(y,"+").concat(b," ").concat(P),i+="\n".concat(v,"-").concat(b," ").concat(R),C+=2):(a+=i,i="",1!==N&&0!==p||(a+="\n ".concat(P),C++))}if(C>20&&p<S-2)return"".concat(O).concat(T,"\n").concat(a,"\n").concat(g,"...").concat(b).concat(i,"\n")+"".concat(g,"...").concat(b)}return"".concat(O).concat(l?T:"","\n").concat(a).concat(i).concat(s).concat(h)}var k=function(e){function t(e){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==d(e)||null===e)throw new h("options","Object",e);var i=e.message,a=e.operator,l=e.stackStartFn,u=e.actual,c=e.expected,p=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)n=o(this,f(t).call(this,String(i)));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(g="[34m",y="[32m",b="[39m",v="[31m"):(g="",y="",b="",v="")),"object"===d(u)&&null!==u&&"object"===d(c)&&null!==c&&"stack"in u&&u instanceof Error&&"stack"in c&&c instanceof Error&&(u=x(u),c=x(c)),"deepStrictEqual"===a||"strictEqual"===a)n=o(this,f(t).call(this,E(u,c,a)));else if("notDeepStrictEqual"===a||"notStrictEqual"===a){var m=w[a],k=_(u).split("\n");if("notStrictEqual"===a&&"object"===d(u)&&null!==u&&(m=w.notStrictEqualObject),k.length>30)for(k[26]="".concat(g,"...").concat(b);k.length>27;)k.pop();n=1===k.length?o(this,f(t).call(this,"".concat(m," ").concat(k[0]))):o(this,f(t).call(this,"".concat(m,"\n\n").concat(k.join("\n"),"\n")))}else{var S=_(u),A="",C=w[a];"notDeepEqual"===a||"notEqual"===a?(S="".concat(w[a],"\n\n").concat(S)).length>1024&&(S="".concat(S.slice(0,1021),"...")):(A="".concat(_(c)),S.length>512&&(S="".concat(S.slice(0,509),"...")),A.length>512&&(A="".concat(A.slice(0,509),"...")),"deepEqual"===a||"equal"===a?S="".concat(C,"\n\n").concat(S,"\n\nshould equal\n\n"):A=" ".concat(a," ").concat(A)),n=o(this,f(t).call(this,"".concat(S).concat(A)))}return Error.stackTraceLimit=p,n.generatedMessage=!i,Object.defineProperty(s(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=u,n.expected=c,n.operator=a,Error.captureStackTrace&&Error.captureStackTrace(s(n),l),n.stack,n.name="AssertionError",o(n)}var n,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,e),n=t,(l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:p.custom,value:function(e,t){return p(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}({},t,{customInspect:!1,depth:0}))}}])&&a(n.prototype,l),t}(l(Error));e.exports=k},71:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s,l,u={};function c(e,t,n){n||(n=Error);var r=function(n){function r(n,o,s){var l;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(l=i(this,a(r).call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,o,s)))).code=e,l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,n),r}(n);u[e]=r}function f(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",(function(e,t,i){var a,o,l;if(void 0===s&&(s=n(6362)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(a="must not be",t=t.replace(/^not /,"")):a="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))l="The ".concat(e," ").concat(a," ").concat(f(t,"type"));else{var u=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+".".length>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";l='The "'.concat(e,'" ').concat(u," ").concat(a," ").concat(f(t,"type"))}return l+". Received type ".concat(r(i))}),TypeError),c("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===l&&(l=n(3575));var i=l.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),c("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),c("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];void 0===s&&(s=n(6362)),s(t.length>0,"At least one arg needs to be specified");var i="The ",a=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),a){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,a-1).join(", "),i+=", and ".concat(t[a-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=u},6825:(e,t,n)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=void 0!==/a/g.flags,o=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},l=Object.is?Object.is:n(8619),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},c=Number.isNaN?Number.isNaN:n(7863);function f(e){return e.call.bind(e)}var d=f(Object.prototype.hasOwnProperty),p=f(Object.prototype.propertyIsEnumerable),h=f(Object.prototype.toString),m=n(3575).types,g=m.isAnyArrayBuffer,y=m.isArrayBufferView,v=m.isDate,b=m.isMap,w=m.isRegExp,x=m.isSet,_=m.isNativeError,E=m.isBoxedPrimitive,k=m.isNumberObject,S=m.isStringObject,A=m.isBooleanObject,C=m.isBigIntObject,O=m.isSymbolObject,T=m.isFloat32Array,N=m.isFloat64Array;function R(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function P(e){return Object.keys(e).filter(R).concat(u(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function j(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function I(e,t,n,r){if(e===t)return 0!==e||!n||l(e,t);if(n){if("object"!==i(e))return"number"==typeof e&&c(e)&&c(t);if("object"!==i(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==i(e))return(null===t||"object"!==i(t))&&e==t;if(null===t||"object"!==i(t))return!1}var o,s,u,f,d=h(e);if(d!==h(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var p=P(e),m=P(t);return p.length===m.length&&M(e,t,n,r,1,p)}if("[object Object]"===d&&(!b(e)&&b(t)||!x(e)&&x(t)))return!1;if(v(e)){if(!v(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(w(e)){if(!w(t)||(u=e,f=t,!(a?u.source===f.source&&u.flags===f.flags:RegExp.prototype.toString.call(u)===RegExp.prototype.toString.call(f))))return!1}else if(_(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(y(e)){if(n||!T(e)&&!N(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===j(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}(e,t))return!1;var R=P(e),I=P(t);return R.length===I.length&&M(e,t,n,r,0,R)}if(x(e))return!(!x(t)||e.size!==t.size)&&M(e,t,n,r,2);if(b(e))return!(!b(t)||e.size!==t.size)&&M(e,t,n,r,3);if(g(e)){if(s=t,(o=e).byteLength!==s.byteLength||0!==j(new Uint8Array(o),new Uint8Array(s)))return!1}else if(E(e)&&!function(e,t){return k(e)?k(t)&&l(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):S(e)?S(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):A(e)?A(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):C(e)?C(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):O(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return M(e,t,n,r,0)}function L(e,t){return t.filter((function(t){return p(e,t)}))}function M(e,t,n,a,l,c){if(5===arguments.length){c=Object.keys(e);var f=Object.keys(t);if(c.length!==f.length)return!1}for(var h=0;h<c.length;h++)if(!d(t,c[h]))return!1;if(n&&5===arguments.length){var m=u(e);if(0!==m.length){var g=0;for(h=0;h<m.length;h++){var y=m[h];if(p(e,y)){if(!p(t,y))return!1;c.push(y),g++}else if(p(t,y))return!1}var v=u(t);if(m.length!==v.length&&L(t,v).length!==g)return!1}else{var b=u(t);if(0!==b.length&&0!==L(t,b).length)return!1}}if(0===c.length&&(0===l||1===l&&0===e.length||0===e.size))return!0;if(void 0===a)a={val1:new Map,val2:new Map,position:0};else{var w=a.val1.get(e);if(void 0!==w){var x=a.val2.get(t);if(void 0!==x)return w===x}a.position++}a.val1.set(e,a.position),a.val2.set(t,a.position);var _=function(e,t,n,a,l,u){var c=0;if(2===u){if(!function(e,t,n,r){for(var a=null,s=o(e),l=0;l<s.length;l++){var u=s[l];if("object"===i(u)&&null!==u)null===a&&(a=new Set),a.add(u);else if(!t.has(u)){if(n)return!1;if(!U(e,t,u))return!1;null===a&&(a=new Set),a.add(u)}}if(null!==a){for(var c=o(t),f=0;f<c.length;f++){var d=c[f];if("object"===i(d)&&null!==d){if(!B(a,d,n,r))return!1}else if(!n&&!e.has(d)&&!B(a,d,n,r))return!1}return 0===a.size}return!0}(e,t,n,l))return!1}else if(3===u){if(!function(e,t,n,a){for(var o=null,l=s(e),u=0;u<l.length;u++){var c=r(l[u],2),f=c[0],d=c[1];if("object"===i(f)&&null!==f)null===o&&(o=new Set),o.add(f);else{var p=t.get(f);if(void 0===p&&!t.has(f)||!I(d,p,n,a)){if(n)return!1;if(!F(e,t,f,d,a))return!1;null===o&&(o=new Set),o.add(f)}}}if(null!==o){for(var h=s(t),m=0;m<h.length;m++){var g=r(h[m],2),y=(f=g[0],g[1]);if("object"===i(f)&&null!==f){if(!z(o,e,f,y,n,a))return!1}else if(!(n||e.has(f)&&I(e.get(f),y,!1,a)||z(o,e,f,y,!1,a)))return!1}return 0===o.size}return!0}(e,t,n,l))return!1}else if(1===u)for(;c<e.length;c++){if(!d(e,c)){if(d(t,c))return!1;for(var f=Object.keys(e);c<f.length;c++){var p=f[c];if(!d(t,p)||!I(e[p],t[p],n,l))return!1}return f.length===Object.keys(t).length}if(!d(t,c)||!I(e[c],t[c],n,l))return!1}for(c=0;c<a.length;c++){var h=a[c];if(!I(e[h],t[h],n,l))return!1}return!0}(e,t,n,c,a,l);return a.val1.delete(e),a.val2.delete(t),_}function B(e,t,n,r){for(var i=o(e),a=0;a<i.length;a++){var s=i[a];if(I(t,s,n,r))return e.delete(s),!0}return!1}function D(e){switch(i(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(c(e))return!1}return!0}function U(e,t,n){var r=D(n);return null!=r?r:t.has(r)&&!e.has(r)}function F(e,t,n,r,i){var a=D(n);if(null!=a)return a;var o=t.get(a);return!(void 0===o&&!t.has(a)||!I(r,o,!1,i))&&!e.has(a)&&I(r,o,!1,i)}function z(e,t,n,r,i,a){for(var s=o(e),l=0;l<s.length;l++){var u=s[l];if(I(n,u,i,a)&&I(r,t.get(u),i,a))return e.delete(u),!0}return!1}e.exports={isDeepEqual:function(e,t){return I(e,t,!1)},isDeepStrictEqual:function(e,t){return I(e,t,!0)}}},6676:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,a=s(e),o=a[0],l=a[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,o,l)),c=0,f=l>0?o-4:o;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=16383,s=0,u=r-i;s<u;s+=o)a.push(l(e,s,s+o>u?u:s+o));return 1===i?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)n[o]=a[o],r[a.charCodeAt(o)]=o;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var i,a,o=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(n[(a=i)>>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},7040:(e,t,n)=>{"use strict";var r=n(3325).Buffer,i=n(5224),a=n(6362),o=n(6864),s=n(7129),l=n(5281),u=n(395);for(var c in u)t[c]=u[c];function f(e){if("number"!=typeof e||e<t.DEFLATE||e>t.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7,f.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,a(this.init_done,"close before init"),a(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?s.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||l.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},f.prototype.write=function(e,t,n,r,i,a,o){return this._write(!0,e,t,n,r,i,a,o)},f.prototype.writeSync=function(e,t,n,r,i,a,o){return this._write(!1,e,t,n,r,i,a,o)},f.prototype._write=function(e,n,o,s,l,u,c,f){if(a.equal(arguments.length,8),a(this.init_done,"write before init"),a(this.mode!==t.NONE,"already finalized"),a.equal(!1,this.write_in_progress,"write already in progress"),a.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,a.equal(!1,void 0===n,"must provide flush value"),this.write_in_progress=!0,n!==t.Z_NO_FLUSH&&n!==t.Z_PARTIAL_FLUSH&&n!==t.Z_SYNC_FLUSH&&n!==t.Z_FULL_FLUSH&&n!==t.Z_FINISH&&n!==t.Z_BLOCK)throw new Error("Invalid flush value");if(null==o&&(o=r.alloc(0),l=0,s=0),this.strm.avail_in=l,this.strm.input=o,this.strm.next_in=s,this.strm.avail_out=f,this.strm.output=u,this.strm.next_out=c,this.flush=n,!e)return this._process(),this._checkError()?this._afterSync():void 0;var d=this;return i.nextTick((function(){d._process(),d._after()})),this},f.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},f.prototype._process=function(){var e=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(31!==this.strm.input[e]){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;139===this.strm.input[e]?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=l.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=l.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=l.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=l.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},f.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},f.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},f.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},f.prototype.init=function(e,n,r,i,o){a(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),a(e>=8&&e<=15,"invalid windowBits"),a(n>=-1&&n<=9,"invalid compression level"),a(r>=1&&r<=9,"invalid memlevel"),a(i===t.Z_FILTERED||i===t.Z_HUFFMAN_ONLY||i===t.Z_RLE||i===t.Z_FIXED||i===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(n,e,r,i,o),this._setDictionary()},f.prototype.params=function(){throw new Error("deflateParams Not supported")},f.prototype.reset=function(){this._reset(),this._setDictionary()},f.prototype._init=function(e,n,r,i,a){switch(this.level=e,this.windowBits=n,this.memLevel=r,this.strategy=i,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=l.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=a,this.write_in_progress=!1,this.init_done=!0},f.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=s.deflateSetDictionary(this.strm,this.dictionary)}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},f.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=s.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=l.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=f},1781:(e,t,n)=>{"use strict";var r=n(5224),i=n(3325).Buffer,a=n(8556).Transform,o=n(7040),s=n(3575),l=n(6362).ok,u=n(3325).kMaxLength,c="Cannot create final Buffer. It would be larger than 0x"+u.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var f=Object.keys(o),d=0;d<f.length;d++){var p=f[d];p.match(/^Z/)&&Object.defineProperty(t,p,{enumerable:!0,value:o[p],writable:!1})}for(var h={Z_OK:o.Z_OK,Z_STREAM_END:o.Z_STREAM_END,Z_NEED_DICT:o.Z_NEED_DICT,Z_ERRNO:o.Z_ERRNO,Z_STREAM_ERROR:o.Z_STREAM_ERROR,Z_DATA_ERROR:o.Z_DATA_ERROR,Z_MEM_ERROR:o.Z_MEM_ERROR,Z_BUF_ERROR:o.Z_BUF_ERROR,Z_VERSION_ERROR:o.Z_VERSION_ERROR},m=Object.keys(h),g=0;g<m.length;g++){var y=m[g];h[h[y]]=y}function v(e,t,n){var r=[],a=0;function o(){for(var t;null!==(t=e.read());)r.push(t),a+=t.length;e.once("readable",o)}function s(){var t,o=null;a>=u?o=new RangeError(c):t=i.concat(r,a),r=[],e.close(),n(o,t)}e.on("error",(function(t){e.removeListener("end",s),e.removeListener("readable",o),n(t)})),e.on("end",s),e.end(t),o()}function b(e,t){if("string"==typeof t&&(t=i.from(t)),!i.isBuffer(t))throw new TypeError("Not a string or buffer");var n=e._finishFlushFlag;return e._processChunk(t,n)}function w(e){if(!(this instanceof w))return new w(e);O.call(this,e,o.DEFLATE)}function x(e){if(!(this instanceof x))return new x(e);O.call(this,e,o.INFLATE)}function _(e){if(!(this instanceof _))return new _(e);O.call(this,e,o.GZIP)}function E(e){if(!(this instanceof E))return new E(e);O.call(this,e,o.GUNZIP)}function k(e){if(!(this instanceof k))return new k(e);O.call(this,e,o.DEFLATERAW)}function S(e){if(!(this instanceof S))return new S(e);O.call(this,e,o.INFLATERAW)}function A(e){if(!(this instanceof A))return new A(e);O.call(this,e,o.UNZIP)}function C(e){return e===o.Z_NO_FLUSH||e===o.Z_PARTIAL_FLUSH||e===o.Z_SYNC_FLUSH||e===o.Z_FULL_FLUSH||e===o.Z_FINISH||e===o.Z_BLOCK}function O(e,n){var r=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,a.call(this,e),e.flush&&!C(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!C(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:o.Z_FINISH,e.chunkSize&&(e.chunkSize<t.Z_MIN_CHUNK||e.chunkSize>t.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<t.Z_MIN_WINDOWBITS||e.windowBits>t.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<t.Z_MIN_LEVEL||e.level>t.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<t.Z_MIN_MEMLEVEL||e.memLevel>t.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!i.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(n);var s=this;this._hadError=!1,this._handle.onerror=function(e,n){T(s),s._hadError=!0;var r=new Error(e);r.errno=n,r.code=t.codes[n],s.emit("error",r)};var l=t.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(l=e.level);var u=t.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(u=e.strategy),this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,l,e.memLevel||t.Z_DEFAULT_MEMLEVEL,u,e.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=l,this._strategy=u,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!r._handle},configurable:!0,enumerable:!0})}function T(e,t){t&&r.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function N(e){e.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(h),writable:!1}),t.Deflate=w,t.Inflate=x,t.Gzip=_,t.Gunzip=E,t.DeflateRaw=k,t.InflateRaw=S,t.Unzip=A,t.createDeflate=function(e){return new w(e)},t.createInflate=function(e){return new x(e)},t.createDeflateRaw=function(e){return new k(e)},t.createInflateRaw=function(e){return new S(e)},t.createGzip=function(e){return new _(e)},t.createGunzip=function(e){return new E(e)},t.createUnzip=function(e){return new A(e)},t.deflate=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new w(t),e,n)},t.deflateSync=function(e,t){return b(new w(t),e)},t.gzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new _(t),e,n)},t.gzipSync=function(e,t){return b(new _(t),e)},t.deflateRaw=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new k(t),e,n)},t.deflateRawSync=function(e,t){return b(new k(t),e)},t.unzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new A(t),e,n)},t.unzipSync=function(e,t){return b(new A(t),e)},t.inflate=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new x(t),e,n)},t.inflateSync=function(e,t){return b(new x(t),e)},t.gunzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new E(t),e,n)},t.gunzipSync=function(e,t){return b(new E(t),e)},t.inflateRaw=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new S(t),e,n)},t.inflateRawSync=function(e,t){return b(new S(t),e)},s.inherits(O,a),O.prototype.params=function(e,n,i){if(e<t.Z_MIN_LEVEL||e>t.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(n!=t.Z_FILTERED&&n!=t.Z_HUFFMAN_ONLY&&n!=t.Z_RLE&&n!=t.Z_FIXED&&n!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+n);if(this._level!==e||this._strategy!==n){var a=this;this.flush(o.Z_SYNC_FLUSH,(function(){l(a._handle,"zlib binding closed"),a._handle.params(e,n),a._hadError||(a._level=e,a._strategy=n,i&&i())}))}else r.nextTick(i)},O.prototype.reset=function(){return l(this._handle,"zlib binding closed"),this._handle.reset()},O.prototype._flush=function(e){this._transform(i.alloc(0),"",e)},O.prototype.flush=function(e,t){var n=this,a=this._writableState;("function"==typeof e||void 0===e&&!t)&&(t=e,e=o.Z_FULL_FLUSH),a.ended?t&&r.nextTick(t):a.ending?t&&this.once("end",t):a.needDrain?t&&this.once("drain",(function(){return n.flush(e,t)})):(this._flushFlag=e,this.write(i.alloc(0),"",t))},O.prototype.close=function(e){T(this,e),r.nextTick(N,this)},O.prototype._transform=function(e,t,n){var r,a=this._writableState,s=(a.ending||a.ended)&&(!e||a.length===e.length);return null===e||i.isBuffer(e)?this._handle?(s?r=this._finishFlushFlag:(r=this._flushFlag,e.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(e,r,n)):n(new Error("zlib binding closed")):n(new Error("invalid input"))},O.prototype._processChunk=function(e,t,n){var r=e&&e.length,a=this._chunkSize-this._offset,o=0,s=this,f="function"==typeof n;if(!f){var d,p=[],h=0;this.on("error",(function(e){d=e})),l(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(t,e,o,r,this._buffer,this._offset,a)}while(!this._hadError&&v(m[0],m[1]));if(this._hadError)throw d;if(h>=u)throw T(this),new RangeError(c);var g=i.concat(p,h);return T(this),g}l(this._handle,"zlib binding closed");var y=this._handle.write(t,e,o,r,this._buffer,this._offset,a);function v(u,c){if(this&&(this.buffer=null,this.callback=null),!s._hadError){var d=a-c;if(l(d>=0,"have should not go down"),d>0){var m=s._buffer.slice(s._offset,s._offset+d);s._offset+=d,f?s.push(m):(p.push(m),h+=m.length)}if((0===c||s._offset>=s._chunkSize)&&(a=s._chunkSize,s._offset=0,s._buffer=i.allocUnsafe(s._chunkSize)),0===c){if(o+=r-u,r=u,!f)return!0;var g=s._handle.write(t,e,o,r,s._buffer,s._offset,s._chunkSize);return g.callback=v,void(g.buffer=e)}if(!f)return!1;n()}}y.buffer=e,y.callback=v},s.inherits(w,O),s.inherits(x,O),s.inherits(_,O),s.inherits(E,O),s.inherits(k,O),s.inherits(S,O),s.inherits(A,O)},3325:(e,t,n)=>{"use strict";var r=n(3705);const i=n(6676),a=n(6897),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50;const s=2147483647;function l(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|g(e,t);let r=l(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);const i=function(e){if(u.isBuffer(e)){const t=0|m(e.length),n=l(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||X(e.length)?l(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function f(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return f(e),l(e<0?0:0|m(e))}function p(e){const t=e.length<0?0:0|m(e.length),n=l(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,u.prototype),r}function m(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function g(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(i)return r?-1:Z(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:w(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):w(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(e,t,n,r,i){let a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){let r=-1;for(a=n;a<s;a++)if(u(e,a)===u(t,-1===r?0:a-r)){if(-1===r&&(r=a),a-r+1===l)return r*o}else-1!==r&&(a-=a-r),r=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){let n=!0;for(let r=0;r<l;r++)if(u(e,a+r)!==u(t,r)){n=!1;break}if(n)return a}return-1}function x(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const a=t.length;let o;for(r>a/2&&(r=a/2),o=0;o<r;++o){const r=parseInt(t.substr(2*o,2),16);if(X(r))return o;e[n+o]=r}return o}function _(e,t,n,r){return $(Z(t,e.length-n),e,n,r)}function E(e,t,n,r){return $(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function k(e,t,n,r){return $(Y(t),e,n,r)}function S(e,t,n,r){return $(function(e,t){let n,r,i;const a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,l;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(a=l));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(a=l));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(a=l))}}null===a?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=o}return function(e){const t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=O));return n}(r)}t.kMaxLength=s,u.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),u.TYPED_ARRAY_SUPPORT||void 0===r||"function"!=typeof r.error||r.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,n){return function(e,t,n){return f(e),e<=0?l(e):void 0!==t?"string"==typeof n?l(e).fill(t,n):l(e).fill(t):l(e)}(e,t,n)},u.allocUnsafe=function(e){return d(e)},u.allocUnsafeSlow=function(e){return d(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(K(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=u.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(K(t,Uint8Array))i+t.length>r.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},u.byteLength=g,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?C(this,0,e):y.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,i){if(K(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0);const s=Math.min(a,o),l=this.slice(r,i),c=e.slice(t,n);for(let e=0;e<s;++e)if(l[e]!==c[e]){a=l[e],o=c[e];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let a=!1;for(;;)switch(r){case"hex":return x(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":case"latin1":case"binary":return E(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function T(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function N(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function R(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=Q[e[r]];return i}function P(e,t,n){const r=e.slice(t,n);let i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}function j(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function L(e,t,n,r,i){H(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function M(e,t,n,r,i){H(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function B(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return t=+t,n>>>=0,i||B(e,0,n,4),a.write(e,t,n,r,23,4),n+4}function U(e,t,n,r,i){return t=+t,n>>>=0,i||B(e,0,n,8),a.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=J((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),u.prototype.readBigUInt64BE=J((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=J((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),u.prototype.readBigInt64BE=J((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||j(e,4,this.length),a.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),a.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),a.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),a.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||I(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||I(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=J((function(e){return L(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=J((function(e){return M(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===o&&0!==this[t+i-1]&&(o=1),this[t+i]=(e/a|0)-o&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/a|0)-o&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=J((function(e){return L(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=J((function(e){return M(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const a=u.isBuffer(e)?e:u.from(e,r),o=a.length;if(0===o)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};const F={};function z(e,t,n){F[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name="".concat(this.name," [").concat(e,"]"),this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}}function V(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function H(e,t,n,r,i,a){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let i;throw i=a>3?0===t||t===BigInt(0)?">= 0".concat(r," and < 2").concat(r," ** ").concat(8*(a+1)).concat(r):">= -(2".concat(r," ** ").concat(8*(a+1)-1).concat(r,") and < 2 ** ")+"".concat(8*(a+1)-1).concat(r):">= ".concat(t).concat(r," and <= ").concat(n).concat(r),new F.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){W(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||q(t,e.length-(n+1))}(r,i,a)}function W(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,n){if(Math.floor(e)!==e)throw W(e,n),new F.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}z("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),z("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),z("ERR_OUT_OF_RANGE",(function(e,t,n){let r='The value of "'.concat(e,'" is out of range.'),i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=V(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=V(i)),i+="n"),r+=" It must be ".concat(t,". Received ").concat(i),r}),RangeError);const G=/[^+/0-9A-Za-z-_]/g;function Z(e,t){let n;t=t||1/0;const r=e.length;let i=null;const a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function Y(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!=e}const Q=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function J(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}},1061:(e,t,n)=>{"use strict";var r=n(7375),i=n(3629),a=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?i(n):n}},3629:(e,t,n)=>{"use strict";var r=n(6989),i=n(7375),a=i("%Function.prototype.apply%"),o=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(o,a),l=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(r,o,arguments);return l&&u&&l(t,"length").configurable&&u(t,"length",{value:1+c(0,e.length-(arguments.length-1))}),t};var f=function(){return s(r,a,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},3705:(e,t,n)=>{var r=n(3575),i=n(6362);function a(){return(new Date).getTime()}var o,s=Array.prototype.slice,l={};o=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var u=[[function(){},"log"],[function(){o.log.apply(o,arguments)},"info"],[function(){o.log.apply(o,arguments)},"warn"],[function(){o.warn.apply(o,arguments)},"error"],[function(e){l[e]=a()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var n=a()-t;o.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),o.error(e.stack)},"trace"],[function(e){o.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);i.ok(!1,r.format.apply(null,t))}},"assert"]],c=0;c<u.length;c++){var f=u[c],d=f[0],p=f[1];o[p]||(o[p]=d)}e.exports=o},8726:(e,t,n)=>{"use strict";var r=n(7839),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,o=Array.prototype.concat,s=Object.defineProperty,l=n(7734)(),u=s&&l,c=function(e,t,n,r){var i;(!(t in e)||"function"==typeof(i=r)&&"[object Function]"===a.call(i)&&r())&&(u?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},f=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);i&&(a=o.call(a,Object.getOwnPropertySymbols(t)));for(var s=0;s<a.length;s+=1)c(e,a[s],t[a[s]],n[a[s]])};f.supportsDescriptors=!!u,e.exports=f},8957:e=>{"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var a=Object.keys(Object(i)),o=0,s=a.length;o<s;o++){var l=a[o],u=Object.getOwnPropertyDescriptor(i,l);void 0!==u&&u.enumerable&&(n[l]=i[l])}}return n}e.exports={assign:t,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:t})}}},8981:(e,t,n)=>{"use strict";var r,i=n(3705),a="object"==typeof Reflect?Reflect:null,o=a&&"function"==typeof a.apply?a.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}e.exports=l,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}v(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&v(e,"error",t,{once:!0})}(e,i)}))},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var a,o,s,l;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(a=f(e))>0&&s.length>a&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,l=u,i&&i.warn&&i.warn(l)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=p.bind(r);return i.listener=n,r.wrapFn=i,i}function m(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):y(i,i.length)}function g(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function v(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(a){r.once&&e.removeEventListener(t,i),n(a)}))}}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},l.prototype.getMaxListeners=function(){return f(this)},l.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)o(l,this,t);else{var u=l.length,c=y(l,u);for(n=0;n<u;++n)o(c[n],this,t)}return!0},l.prototype.addListener=function(e,t){return d(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return d(this,e,t,!0)},l.prototype.once=function(e,t){return c(t),this.on(e,h(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,h(this,e,t)),this},l.prototype.removeListener=function(e,t){var n,r,i,a,o;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},l.prototype.listeners=function(e){return m(this,e,!0)},l.prototype.rawListeners=function(e){return m(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},l.prototype.listenerCount=g,l.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},1e3:(e,t,n)=>{"use strict";var r=n(6806),i=Object.prototype.toString,a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=n),"[object Array]"===i.call(e)?function(e,t,n){for(var r=0,i=e.length;r<i;r++)a.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,o):"string"==typeof e?function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,o):function(e,t,n){for(var r in e)a.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,o)}},8307:e=>{"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var i,a=t.call(arguments,1),o=Math.max(0,r.length-a.length),s=[],l=0;l<o;l++)s.push("$"+l);if(i=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var n=r.apply(this,a.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,a.concat(t.call(arguments)))})),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i}},6989:(e,t,n)=>{"use strict";var r=n(8307);e.exports=Function.prototype.bind||r},7375:(e,t,n)=>{"use strict";var r,i=SyntaxError,a=Function,o=TypeError,s=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var u=function(){throw new o},c=l?function(){try{return u}catch(e){try{return l(arguments,"callee").get}catch(e){return u}}}():u,f=n(757)(),d=Object.getPrototypeOf||function(e){return e.__proto__},p={},h="undefined"==typeof Uint8Array?r:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?d(d([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?d(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":h,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},g=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=d(i.prototype))}return m[t]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=n(6989),b=n(6084),w=v.call(Function.call,Array.prototype.concat),x=v.call(Function.apply,Array.prototype.splice),_=v.call(Function.call,String.prototype.replace),E=v.call(Function.call,String.prototype.slice),k=v.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,C=function(e,t){var n,r=e;if(b(y,r)&&(r="%"+(n=y[r])[0]+"%"),b(m,r)){var a=m[r];if(a===p&&(a=g(r)),void 0===a&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:a}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===k(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=E(e,0,1),n=E(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return _(e,S,(function(e,t,n,i){r[r.length]=n?_(i,A,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",a=C("%"+r+"%",t),s=a.name,u=a.value,c=!1,f=a.alias;f&&(r=f[0],x(n,w([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],g=E(h,0,1),y=E(h,-1);if(('"'===g||"'"===g||"`"===g||'"'===y||"'"===y||"`"===y)&&g!==y)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&p||(c=!0),b(m,s="%"+(r+="."+h)+"%"))u=m[s];else if(null!=u){if(!(h in u)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&d+1>=n.length){var v=l(u,h);u=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:u[h]}else p=b(u,h),u=u[h];p&&!c&&(m[s]=u)}}return u}},7734:(e,t,n)=>{"use strict";var r=n(7375)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},757:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(3175);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},3175:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},5550:(e,t,n)=>{"use strict";var r=n(3175);e.exports=function(){return r()&&!!Symbol.toStringTag}},6084:(e,t,n)=>{"use strict";var r=n(6989);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},6897:(e,t)=>{t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=256*a+e[t+f],f+=d,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+f],f+=d,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),a-=u}return(p?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,u=8*a-i-1,c=(1<<u)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(o++,l/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(t*l-1)*Math.pow(2,i),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[n+p]=255&o,p+=h,o/=256,u-=8);e[n+p-h]|=128*m}},1596:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},46:(e,t,n)=>{"use strict";var r=n(5550)(),i=n(1061)("Object.prototype.toString"),a=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},o=function(e){return!!a(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return a(arguments)}();a.isLegacyArguments=o,e.exports=s?a:o},6806:e=>{"use strict";var t,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,t)}catch(e){e!==n&&(i=null)}else i=null;var a=/^\s*class\b/,o=function(e){try{var t=r.call(e);return a.test(t)}catch(e){return!1}},s=function(e){try{return!o(e)&&(r.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var d=document.all;l.call(d)===l.call(document.all)&&(f=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{i(e,null,t)}catch(e){if(e!==n)return!1}return!o(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return s(e);if(o(e))return!1;var t=l.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t||s(e)}},7198:(e,t,n)=>{"use strict";var r,i=Object.prototype.toString,a=Function.prototype.toString,o=/^\s*(?:function)?\*/,s=n(5550)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(o.test(a.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!l)return!1;if(void 0===r){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&l(t)}return l(e)===r}},7433:e=>{"use strict";e.exports=function(e){return e!=e}},7863:(e,t,n)=>{"use strict";var r=n(3629),i=n(8726),a=n(7433),o=n(7308),s=n(3862),l=r(o(),Number);i(l,{getPolyfill:o,implementation:a,shim:s}),e.exports=l},7308:(e,t,n)=>{"use strict";var r=n(7433);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},3862:(e,t,n)=>{"use strict";var r=n(8726),i=n(7308);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},1338:(e,t,n)=>{"use strict";var r=n(1e3),i=n(6405),a=n(1061),o=a("Object.prototype.toString"),s=n(5550)(),l="undefined"==typeof globalThis?n.g:globalThis,u=i(),c=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},f=a("String.prototype.slice"),d={},p=n(2081),h=Object.getPrototypeOf;s&&p&&h&&r(u,(function(e){var t=new l[e];if(Symbol.toStringTag in t){var n=h(t),r=p(n,Symbol.toStringTag);if(!r){var i=h(n);r=p(i,Symbol.toStringTag)}d[e]=r.get}})),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s||!(Symbol.toStringTag in e)){var t=f(o(e),8,-1);return c(u,t)>-1}return!!p&&function(e){var t=!1;return r(d,(function(n,r){if(!t)try{t=n.call(e)===r}catch(e){}})),t}(e)}},7837:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},8619:(e,t,n)=>{"use strict";var r=n(8726),i=n(3629),a=n(7837),o=n(5944),s=n(9394),l=i(o(),Object);r(l,{getPolyfill:o,implementation:a,shim:s}),e.exports=l},5944:(e,t,n)=>{"use strict";var r=n(7837);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},9394:(e,t,n)=>{"use strict";var r=n(5944),i=n(8726);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},225:(e,t,n)=>{"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,o=n(543),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===a.call(e),r=o(e),s=t&&"[object String]"===a.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=u&&n;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)d.push(String(m));if(r&&e.length>0)for(var g=0;g<e.length;++g)d.push(String(g));else for(var y in e)h&&"prototype"===y||!i.call(e,y)||d.push(String(y));if(l)for(var v=function(e){if("undefined"==typeof window||!p)return f(e);try{return f(e)}catch(e){return!1}}(e),b=0;b<c.length;++b)v&&"constructor"===c[b]||!i.call(e,c[b])||d.push(c[b]);return d}}e.exports=r},7839:(e,t,n)=>{"use strict";var r=Array.prototype.slice,i=n(543),a=Object.keys,o=a?function(e){return a(e)}:n(225),s=Object.keys;o.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)}):Object.keys=o;return Object.keys||o},e.exports=o},543:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},5899:(e,t)=>{"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(e[i]=n[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,a))},t.setTyped(n)},1875:e=>{"use strict";e.exports=function(e,t,n,r){for(var i=65535&e,a=e>>>16&65535,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{a=a+(i=i+t[r++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16}},395:e=>{"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},6181:e=>{"use strict";var t=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,n,r,i){var a=t,o=i+r;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^n[s])];return~e}},7129:(e,t,n)=>{"use strict";var r,i=n(5899),a=n(4867),o=n(1875),s=n(6181),l=n(3384),u=-2,c=258,f=262,d=103,p=113,h=666;function m(e,t){return e.msg=l[t],t}function g(e){return(e<<1)-(e>4?9:0)}function y(e){for(var t=e.length;--t>=0;)e[t]=0}function v(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function b(e,t){a._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,v(e.strm)}function w(e,t){e.pending_buf[e.pending++]=t}function x(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function _(e,t,n,r){var a=e.avail_in;return a>r&&(a=r),0===a?0:(e.avail_in-=a,i.arraySet(t,e.input,e.next_in,a,n),1===e.state.wrap?e.adler=o(e.adler,t,a,n):2===e.state.wrap&&(e.adler=s(e.adler,t,a,n)),e.next_in+=a,e.total_in+=a,a)}function E(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-f?e.strstart-(e.w_size-f):0,u=e.window,d=e.w_mask,p=e.prev,h=e.strstart+c,m=u[a+o-1],g=u[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+o]===g&&u[n+o-1]===m&&u[n]===u[a]&&u[++n]===u[a+1]){a+=2,n++;do{}while(u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&a<h);if(r=c-(h-a),a=h-c,r>o){if(e.match_start=t,o=r,r>=s)break;m=u[a+o-1],g=u[a+o]}}}while((t=p[t&d])>l&&0!=--i);return o<=e.lookahead?o:e.lookahead}function k(e){var t,n,r,a,o,s=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-f)){i.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=s?r-s:0}while(--n);t=n=s;do{r=e.prev[--t],e.prev[t]=r>=s?r-s:0}while(--n);a+=s}if(0===e.strm.avail_in)break;if(n=_(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=n,e.lookahead+e.insert>=3)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+3-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<f&&0!==e.strm.avail_in)}function S(e,t){for(var n,r;;){if(e.lookahead<f){if(k(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-f&&(e.match_length=E(e,n)),e.match_length>=3)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}function A(e,t){for(var n,r,i;;){if(e.lookahead<f){if(k(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-f&&(e.match_length=E(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(b(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&b(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}function C(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function O(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),y(this.dyn_ltree),y(this.dyn_dtree),y(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),y(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),y(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function T(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:p,e.adler=2===t.wrap?0:1,t.last_flush=0,a._tr_init(t),0):m(e,u)}function N(e){var t,n=T(e);return 0===n&&((t=e.state).window_size=2*t.w_size,y(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function R(e,t,n,r,a,o){if(!e)return u;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),a<1||a>9||8!==n||r<8||r>15||t<0||t>9||o<0||o>4)return m(e,u);8===r&&(r=9);var l=new O;return e.state=l,l.strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=a+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=n,N(e)}r=[new C(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(k(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,b(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-f&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(b(e,!1),e.strm.avail_out),1)})),new C(4,4,8,4,S),new C(4,5,16,8,S),new C(4,6,32,32,S),new C(4,4,16,16,A),new C(8,16,32,32,A),new C(8,16,128,128,A),new C(8,32,128,256,A),new C(32,128,258,1024,A),new C(32,258,258,4096,A)],t.deflateInit=function(e,t){return R(e,t,8,15,8,0)},t.deflateInit2=R,t.deflateReset=N,t.deflateResetKeep=T,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?u:(e.state.gzhead=t,0):u},t.deflate=function(e,t){var n,i,o,l;if(!e||!e.state||t>5||t<0)return e?m(e,u):u;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===h&&4!==t)return m(e,0===e.avail_out?-5:u);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,w(i,31),w(i,139),w(i,8),i.gzhead?(w(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),w(i,255&i.gzhead.time),w(i,i.gzhead.time>>8&255),w(i,i.gzhead.time>>16&255),w(i,i.gzhead.time>>24&255),w(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),w(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(w(i,255&i.gzhead.extra.length),w(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(w(i,0),w(i,0),w(i,0),w(i,0),w(i,0),w(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),w(i,3),i.status=p);else{var f=8+(i.w_bits-8<<4)<<8;f|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=p,x(i,f),0!==i.strstart&&(x(i,e.adler>>>16),x(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),v(e),o=i.pending,i.pending!==i.pending_buf_size));)w(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),v(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,w(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),v(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,w(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.status=d)}else i.status=d;if(i.status===d&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&v(e),i.pending+2<=i.pending_buf_size&&(w(i,255&e.adler),w(i,e.adler>>8&255),e.adler=0,i.status=p)):i.status=p),0!==i.pending){if(v(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&g(t)<=g(n)&&4!==t)return m(e,-5);if(i.status===h&&0!==e.avail_in)return m(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&i.status!==h){var _=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(k(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=c){if(k(e),e.lookahead<=c&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+c;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=c-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=a._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==_&&4!==_||(i.status=h),1===_||3===_)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===_&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(y(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),v(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(w(i,255&e.adler),w(i,e.adler>>8&255),w(i,e.adler>>16&255),w(i,e.adler>>24&255),w(i,255&e.total_in),w(i,e.total_in>>8&255),w(i,e.total_in>>16&255),w(i,e.total_in>>24&255)):(x(i,e.adler>>>16),x(i,65535&e.adler)),v(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==d&&t!==p&&t!==h?m(e,u):(e.state=null,t===p?m(e,-3):0):u},t.deflateSetDictionary=function(e,t){var n,r,a,s,l,c,f,d,p=t.length;if(!e||!e.state)return u;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return u;for(1===s&&(e.adler=o(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(y(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new i.Buf8(n.w_size),i.arraySet(d,t,p-n.w_size,n.w_size,0),t=d,p=n.w_size),l=e.avail_in,c=e.next_in,f=e.input,e.avail_in=p,e.next_in=0,e.input=t,k(n);n.lookahead>=3;){r=n.strstart,a=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--a);n.strstart=r,n.lookahead=2,k(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=c,e.input=f,e.avail_in=l,n.wrap=s,0},t.deflateInfo="pako deflate (from Nodeca project)"},2903:e=>{"use strict";e.exports=function(e,t){var n,r,i,a,o,s,l,u,c,f,d,p,h,m,g,y,v,b,w,x,_,E,k,S,A;n=e.state,r=e.next_in,S=e.input,i=r+(e.avail_in-5),a=e.next_out,A=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),l=n.dmax,u=n.wsize,c=n.whave,f=n.wnext,d=n.window,p=n.hold,h=n.bits,m=n.lencode,g=n.distcode,y=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;e:do{h<15&&(p+=S[r++]<<h,h+=8,p+=S[r++]<<h,h+=8),b=m[p&y];t:for(;;){if(p>>>=w=b>>>24,h-=w,0==(w=b>>>16&255))A[a++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=m[(65535&b)+(p&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}x=65535&b,(w&=15)&&(h<w&&(p+=S[r++]<<h,h+=8),x+=p&(1<<w)-1,p>>>=w,h-=w),h<15&&(p+=S[r++]<<h,h+=8,p+=S[r++]<<h,h+=8),b=g[p&v];n:for(;;){if(p>>>=w=b>>>24,h-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=g[(65535&b)+(p&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(_=65535&b,h<(w&=15)&&(p+=S[r++]<<h,(h+=8)<w&&(p+=S[r++]<<h,h+=8)),(_+=p&(1<<w)-1)>l){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=w,h-=w,_>(w=a-o)){if((w=_-w)>c&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(E=0,k=d,0===f){if(E+=u-w,w<x){x-=w;do{A[a++]=d[E++]}while(--w);E=a-_,k=A}}else if(f<w){if(E+=u+f-w,(w-=f)<x){x-=w;do{A[a++]=d[E++]}while(--w);if(E=0,f<x){x-=w=f;do{A[a++]=d[E++]}while(--w);E=a-_,k=A}}}else if(E+=f-w,w<x){x-=w;do{A[a++]=d[E++]}while(--w);E=a-_,k=A}for(;x>2;)A[a++]=k[E++],A[a++]=k[E++],A[a++]=k[E++],x-=3;x&&(A[a++]=k[E++],x>1&&(A[a++]=k[E++]))}else{E=a-_;do{A[a++]=A[E++],A[a++]=A[E++],A[a++]=A[E++],x-=3}while(x>2);x&&(A[a++]=A[E++],x>1&&(A[a++]=A[E++]))}break}}break}}while(r<i&&a<s);r-=x=h>>3,p&=(1<<(h-=x<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=p,n.bits=h}},5281:(e,t,n)=>{"use strict";var r=n(5899),i=n(1875),a=n(6181),o=n(2903),s=n(8276),l=-2,u=12,c=30;function f(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function d(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function p(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):l}function h(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,p(e)):l}function m(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?l:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,h(e))):l}function g(e,t){var n,r;return e?(r=new d,e.state=r,r.window=null,0!==(n=m(e,t))&&(e.state=null),n):l}var y,v,b=!0;function w(e){if(b){var t;for(y=new r.Buf32(512),v=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,y,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,v,0,e.work,{bits:5}),b=!1}e.lencode=y,e.lenbits=9,e.distcode=v,e.distbits=5}function x(e,t,n,i){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((a=o.wsize-o.wnext)>i&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}t.inflateReset=h,t.inflateReset2=m,t.inflateResetKeep=p,t.inflateInit=function(e){return g(e,15)},t.inflateInit2=g,t.inflate=function(e,t){var n,d,p,h,m,g,y,v,b,_,E,k,S,A,C,O,T,N,R,P,j,I,L,M,B=0,D=new r.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return l;(n=e.state).mode===u&&(n.mode=13),m=e.next_out,p=e.output,y=e.avail_out,h=e.next_in,d=e.input,g=e.avail_in,v=n.hold,b=n.bits,_=g,E=y,I=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;b<16;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}if(2&n.wrap&&35615===v){n.check=0,D[0]=255&v,D[1]=v>>>8&255,n.check=a(n.check,D,2,0),v=0,b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&v)<<8)+(v>>8))%31){e.msg="incorrect header check",n.mode=c;break}if(8!=(15&v)){e.msg="unknown compression method",n.mode=c;break}if(b-=4,j=8+(15&(v>>>=4)),0===n.wbits)n.wbits=j;else if(j>n.wbits){e.msg="invalid window size",n.mode=c;break}n.dmax=1<<j,e.adler=n.check=1,n.mode=512&v?10:u,v=0,b=0;break;case 2:for(;b<16;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}if(n.flags=v,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=c;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=c;break}n.head&&(n.head.text=v>>8&1),512&n.flags&&(D[0]=255&v,D[1]=v>>>8&255,n.check=a(n.check,D,2,0)),v=0,b=0,n.mode=3;case 3:for(;b<32;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}n.head&&(n.head.time=v),512&n.flags&&(D[0]=255&v,D[1]=v>>>8&255,D[2]=v>>>16&255,D[3]=v>>>24&255,n.check=a(n.check,D,4,0)),v=0,b=0,n.mode=4;case 4:for(;b<16;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}n.head&&(n.head.xflags=255&v,n.head.os=v>>8),512&n.flags&&(D[0]=255&v,D[1]=v>>>8&255,n.check=a(n.check,D,2,0)),v=0,b=0,n.mode=5;case 5:if(1024&n.flags){for(;b<16;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}n.length=v,n.head&&(n.head.extra_len=v),512&n.flags&&(D[0]=255&v,D[1]=v>>>8&255,n.check=a(n.check,D,2,0)),v=0,b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((k=n.length)>g&&(k=g),k&&(n.head&&(j=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,d,h,k,j)),512&n.flags&&(n.check=a(n.check,d,k,h)),g-=k,h+=k,n.length-=k),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===g)break e;k=0;do{j=d[h+k++],n.head&&j&&n.length<65536&&(n.head.name+=String.fromCharCode(j))}while(j&&k<g);if(512&n.flags&&(n.check=a(n.check,d,k,h)),g-=k,h+=k,j)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===g)break e;k=0;do{j=d[h+k++],n.head&&j&&n.length<65536&&(n.head.comment+=String.fromCharCode(j))}while(j&&k<g);if(512&n.flags&&(n.check=a(n.check,d,k,h)),g-=k,h+=k,j)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;b<16;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}if(v!==(65535&n.check)){e.msg="header crc mismatch",n.mode=c;break}v=0,b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=u;break;case 10:for(;b<32;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}e.adler=n.check=f(v),v=0,b=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=m,e.avail_out=y,e.next_in=h,e.avail_in=g,n.hold=v,n.bits=b,2;e.adler=n.check=1,n.mode=u;case u:if(5===t||6===t)break e;case 13:if(n.last){v>>>=7&b,b-=7&b,n.mode=27;break}for(;b<3;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}switch(n.last=1&v,b-=1,3&(v>>>=1)){case 0:n.mode=14;break;case 1:if(w(n),n.mode=20,6===t){v>>>=2,b-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=c}v>>>=2,b-=2;break;case 14:for(v>>>=7&b,b-=7&b;b<32;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}if((65535&v)!=(v>>>16^65535)){e.msg="invalid stored block lengths",n.mode=c;break}if(n.length=65535&v,v=0,b=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(k=n.length){if(k>g&&(k=g),k>y&&(k=y),0===k)break e;r.arraySet(p,d,h,k,m),g-=k,h+=k,y-=k,m+=k,n.length-=k;break}n.mode=u;break;case 17:for(;b<14;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}if(n.nlen=257+(31&v),v>>>=5,b-=5,n.ndist=1+(31&v),v>>>=5,b-=5,n.ncode=4+(15&v),v>>>=4,b-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=c;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;b<3;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}n.lens[U[n.have++]]=7&v,v>>>=3,b-=3}for(;n.have<19;)n.lens[U[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,L={bits:n.lenbits},I=s(0,n.lens,0,19,n.lencode,0,n.work,L),n.lenbits=L.bits,I){e.msg="invalid code lengths set",n.mode=c;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;O=(B=n.lencode[v&(1<<n.lenbits)-1])>>>16&255,T=65535&B,!((C=B>>>24)<=b);){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}if(T<16)v>>>=C,b-=C,n.lens[n.have++]=T;else{if(16===T){for(M=C+2;b<M;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}if(v>>>=C,b-=C,0===n.have){e.msg="invalid bit length repeat",n.mode=c;break}j=n.lens[n.have-1],k=3+(3&v),v>>>=2,b-=2}else if(17===T){for(M=C+3;b<M;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}b-=C,j=0,k=3+(7&(v>>>=C)),v>>>=3,b-=3}else{for(M=C+7;b<M;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}b-=C,j=0,k=11+(127&(v>>>=C)),v>>>=7,b-=7}if(n.have+k>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=c;break}for(;k--;)n.lens[n.have++]=j}}if(n.mode===c)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=c;break}if(n.lenbits=9,L={bits:n.lenbits},I=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,L),n.lenbits=L.bits,I){e.msg="invalid literal/lengths set",n.mode=c;break}if(n.distbits=6,n.distcode=n.distdyn,L={bits:n.distbits},I=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,L),n.distbits=L.bits,I){e.msg="invalid distances set",n.mode=c;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(g>=6&&y>=258){e.next_out=m,e.avail_out=y,e.next_in=h,e.avail_in=g,n.hold=v,n.bits=b,o(e,E),m=e.next_out,p=e.output,y=e.avail_out,h=e.next_in,d=e.input,g=e.avail_in,v=n.hold,b=n.bits,n.mode===u&&(n.back=-1);break}for(n.back=0;O=(B=n.lencode[v&(1<<n.lenbits)-1])>>>16&255,T=65535&B,!((C=B>>>24)<=b);){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}if(O&&0==(240&O)){for(N=C,R=O,P=T;O=(B=n.lencode[P+((v&(1<<N+R)-1)>>N)])>>>16&255,T=65535&B,!(N+(C=B>>>24)<=b);){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}v>>>=N,b-=N,n.back+=N}if(v>>>=C,b-=C,n.back+=C,n.length=T,0===O){n.mode=26;break}if(32&O){n.back=-1,n.mode=u;break}if(64&O){e.msg="invalid literal/length code",n.mode=c;break}n.extra=15&O,n.mode=22;case 22:if(n.extra){for(M=n.extra;b<M;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}n.length+=v&(1<<n.extra)-1,v>>>=n.extra,b-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;O=(B=n.distcode[v&(1<<n.distbits)-1])>>>16&255,T=65535&B,!((C=B>>>24)<=b);){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}if(0==(240&O)){for(N=C,R=O,P=T;O=(B=n.distcode[P+((v&(1<<N+R)-1)>>N)])>>>16&255,T=65535&B,!(N+(C=B>>>24)<=b);){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}v>>>=N,b-=N,n.back+=N}if(v>>>=C,b-=C,n.back+=C,64&O){e.msg="invalid distance code",n.mode=c;break}n.offset=T,n.extra=15&O,n.mode=24;case 24:if(n.extra){for(M=n.extra;b<M;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}n.offset+=v&(1<<n.extra)-1,v>>>=n.extra,b-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=c;break}n.mode=25;case 25:if(0===y)break e;if(k=E-y,n.offset>k){if((k=n.offset-k)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=c;break}k>n.wnext?(k-=n.wnext,S=n.wsize-k):S=n.wnext-k,k>n.length&&(k=n.length),A=n.window}else A=p,S=m-n.offset,k=n.length;k>y&&(k=y),y-=k,n.length-=k;do{p[m++]=A[S++]}while(--k);0===n.length&&(n.mode=21);break;case 26:if(0===y)break e;p[m++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;b<32;){if(0===g)break e;g--,v|=d[h++]<<b,b+=8}if(E-=y,e.total_out+=E,n.total+=E,E&&(e.adler=n.check=n.flags?a(n.check,p,E,m-E):i(n.check,p,E,m-E)),E=y,(n.flags?v:f(v))!==n.check){e.msg="incorrect data check",n.mode=c;break}v=0,b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;b<32;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}if(v!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=c;break}v=0,b=0}n.mode=29;case 29:I=1;break e;case c:I=-3;break e;case 31:return-4;default:return l}return e.next_out=m,e.avail_out=y,e.next_in=h,e.avail_in=g,n.hold=v,n.bits=b,(n.wsize||E!==e.avail_out&&n.mode<c&&(n.mode<27||4!==t))&&x(e,e.output,e.next_out,E-e.avail_out)?(n.mode=31,-4):(_-=e.avail_in,E-=e.avail_out,e.total_in+=_,e.total_out+=E,n.total+=E,n.wrap&&E&&(e.adler=n.check=n.flags?a(n.check,p,E,e.next_out-E):i(n.check,p,E,e.next_out-E)),e.data_type=n.bits+(n.last?64:0)+(n.mode===u?128:0)+(20===n.mode||15===n.mode?256:0),(0===_&&0===E||4===t)&&0===I&&(I=-5),I)},t.inflateEnd=function(e){if(!e||!e.state)return l;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?l:(n.head=t,t.done=!1,0):l},t.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?l:11===n.mode&&i(1,t,r,0)!==n.check?-3:x(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):l},t.inflateInfo="pako inflate (from Nodeca project)"},8276:(e,t,n)=>{"use strict";var r=n(5899),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,n,l,u,c,f,d){var p,h,m,g,y,v,b,w,x,_=d.bits,E=0,k=0,S=0,A=0,C=0,O=0,T=0,N=0,R=0,P=0,j=null,I=0,L=new r.Buf16(16),M=new r.Buf16(16),B=null,D=0;for(E=0;E<=15;E++)L[E]=0;for(k=0;k<l;k++)L[t[n+k]]++;for(C=_,A=15;A>=1&&0===L[A];A--);if(C>A&&(C=A),0===A)return u[c++]=20971520,u[c++]=20971520,d.bits=1,0;for(S=1;S<A&&0===L[S];S++);for(C<S&&(C=S),N=1,E=1;E<=15;E++)if(N<<=1,(N-=L[E])<0)return-1;if(N>0&&(0===e||1!==A))return-1;for(M[1]=0,E=1;E<15;E++)M[E+1]=M[E]+L[E];for(k=0;k<l;k++)0!==t[n+k]&&(f[M[t[n+k]]++]=k);if(0===e?(j=B=f,v=19):1===e?(j=i,I-=257,B=a,D-=257,v=256):(j=o,B=s,v=-1),P=0,k=0,E=S,y=c,O=C,T=0,m=-1,g=(R=1<<C)-1,1===e&&R>852||2===e&&R>592)return 1;for(;;){b=E-T,f[k]<v?(w=0,x=f[k]):f[k]>v?(w=B[D+f[k]],x=j[I+f[k]]):(w=96,x=0),p=1<<E-T,S=h=1<<O;do{u[y+(P>>T)+(h-=p)]=b<<24|w<<16|x}while(0!==h);for(p=1<<E-1;P&p;)p>>=1;if(0!==p?(P&=p-1,P+=p):P=0,k++,0==--L[E]){if(E===A)break;E=t[n+f[k]]}if(E>C&&(P&g)!==m){for(0===T&&(T=C),y+=S,N=1<<(O=E-T);O+T<A&&!((N-=L[O+T])<=0);)O++,N<<=1;if(R+=1<<O,1===e&&R>852||2===e&&R>592)return 1;u[m=P&g]=C<<24|O<<16|y-c}}return 0!==P&&(u[y+P]=E-T<<24|64<<16),d.bits=C,0}},3384:e=>{"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},4867:(e,t,n)=>{"use strict";var r=n(5899);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var a=256,o=286,s=30,l=15,u=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],c=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],d=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=new Array(576);i(p);var h=new Array(60);i(h);var m=new Array(512);i(m);var g=new Array(256);i(g);var y=new Array(29);i(y);var v,b,w,x=new Array(s);function _(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function E(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function k(e){return e<256?m[e]:m[256+(e>>>7)]}function S(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function A(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,S(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function C(e,t,n){A(e,n[2*t],n[2*t+1])}function O(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function T(e,t,n){var r,i,a=new Array(16),o=0;for(r=1;r<=l;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=O(a[s]++,s))}}function N(e){var t;for(t=0;t<o;t++)e.dyn_ltree[2*t]=0;for(t=0;t<s;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function R(e){e.bi_valid>8?S(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function P(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function j(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&P(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!P(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function I(e,t,n){var r,i,o,s,l=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],i=e.pending_buf[e.l_buf+l],l++,0===r?C(e,i,t):(C(e,(o=g[i])+a+1,t),0!==(s=u[o])&&A(e,i-=y[o],s),C(e,o=k(--r),n),0!==(s=c[o])&&A(e,r-=x[o],s))}while(l<e.last_lit);C(e,256,t)}function L(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<u;n++)0!==a[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)j(e,a,n);i=u;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],j(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,j(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,u=t.dyn_tree,c=t.max_code,f=t.stat_desc.static_tree,d=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,m=t.stat_desc.max_length,g=0;for(a=0;a<=l;a++)e.bl_count[a]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(a=u[2*u[2*(r=e.heap[n])+1]+1]+1)>m&&(a=m,g++),u[2*r+1]=a,r>c||(e.bl_count[a]++,o=0,r>=h&&(o=p[r-h]),s=u[2*r],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(f[2*r+1]+o)));if(0!==g){do{for(a=m-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[m]--,g-=2}while(g>0);for(a=m;0!==a;a--)for(r=e.bl_count[a];0!==r;)(i=e.heap[--n])>c||(u[2*i+1]!==a&&(e.opt_len+=(a-u[2*i+1])*u[2*i],u[2*i+1]=a),r--)}}(e,t),T(a,c,e.bl_count)}function M(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<l&&i===o||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,a=i,0===o?(l=138,u=3):i===o?(l=6,u=3):(l=7,u=4))}function B(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<l&&i===o)){if(s<u)do{C(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(C(e,i,e.bl_tree),s--),C(e,16,e.bl_tree),A(e,s-3,2)):s<=10?(C(e,17,e.bl_tree),A(e,s-3,3)):(C(e,18,e.bl_tree),A(e,s-11,7));s=0,a=i,0===o?(l=138,u=3):i===o?(l=6,u=3):(l=7,u=4)}}i(x);var D=!1;function U(e,t,n,i){A(e,0+(i?1:0),3),function(e,t,n,i){R(e),S(e,n),S(e,~n),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}t._tr_init=function(e){D||(function(){var e,t,n,r,i,a=new Array(16);for(n=0,r=0;r<28;r++)for(y[r]=n,e=0;e<1<<u[r];e++)g[n++]=r;for(g[n-1]=r,i=0,r=0;r<16;r++)for(x[r]=i,e=0;e<1<<c[r];e++)m[i++]=r;for(i>>=7;r<s;r++)for(x[r]=i<<7,e=0;e<1<<c[r]-7;e++)m[256+i++]=r;for(t=0;t<=l;t++)a[t]=0;for(e=0;e<=143;)p[2*e+1]=8,e++,a[8]++;for(;e<=255;)p[2*e+1]=9,e++,a[9]++;for(;e<=279;)p[2*e+1]=7,e++,a[7]++;for(;e<=287;)p[2*e+1]=8,e++,a[8]++;for(T(p,287,a),e=0;e<s;e++)h[2*e+1]=5,h[2*e]=O(e,5);v=new _(p,u,257,o,l),b=new _(h,c,0,s,l),w=new _(new Array(0),f,0,19,7)}(),D=!0),e.l_desc=new E(e.dyn_ltree,v),e.d_desc=new E(e.dyn_dtree,b),e.bl_desc=new E(e.bl_tree,w),e.bi_buf=0,e.bi_valid=0,N(e)},t._tr_stored_block=U,t._tr_flush_block=function(e,t,n,r){var i,o,s=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<a;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),L(e,e.l_desc),L(e,e.d_desc),s=function(e){var t;for(M(e,e.dyn_ltree,e.l_desc.max_code),M(e,e.dyn_dtree,e.d_desc.max_code),L(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*d[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?U(e,t,n,r):4===e.strategy||o===i?(A(e,2+(r?1:0),3),I(e,p,h)):(A(e,4+(r?1:0),3),function(e,t,n,r){var i;for(A(e,t-257,5),A(e,n-1,5),A(e,r-4,4),i=0;i<r;i++)A(e,e.bl_tree[2*d[i]+1],3);B(e,e.dyn_ltree,t-1),B(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),I(e,e.dyn_ltree,e.dyn_dtree)),N(e),r&&R(e)},t._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(g[n]+a+1)]++,e.dyn_dtree[2*k(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){A(e,2,3),C(e,256,p),function(e){16===e.bi_valid?(S(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},6864:e=>{"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},5224:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s,l=[],u=!1,c=-1;function f(){u&&s&&(u=!1,s.length?l=s.concat(l):c=-1,l.length&&d())}function d(){if(!u){var e=o(f);u=!0;for(var t=l.length;t;){for(s=l,l=[];++c<t;)s&&s[c].run();c=-1,t=l.length}s=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||u||o(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},3488:(e,t,n)=>{"use strict";var r=n(3959);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},1942:(e,t,n)=>{e.exports=n(3488)()},3959:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7614:e=>{"use strict";var t={};function n(e,n,r){r||(r=Error);var i=function(e){var t,r;function i(t,r,i){return e.call(this,function(e,t,r){return"string"==typeof n?n:n(e,t,r)}(t,r,i))||this}return r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,i}(r);i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,n){var i,a,o;if("string"==typeof t&&(a="not ",t.substr(0,a.length)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))o="The ".concat(e," ").concat(i," ").concat(r(t,"type"));else{var s=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+".".length>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";o='The "'.concat(e,'" ').concat(s," ").concat(i," ").concat(r(t,"type"))}return o+". Received type ".concat(typeof n)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},7544:(e,t,n)=>{"use strict";var r=n(5224),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var a=n(3230),o=n(4306);n(1596)(c,a);for(var s=i(o.prototype),l=0;l<s.length;l++){var u=s[l];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||r.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},2666:(e,t,n)=>{"use strict";e.exports=i;var r=n(5624);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(1596)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},3230:(e,t,n)=>{"use strict";var r,i=n(5224);e.exports=S,S.ReadableState=k,n(8981).EventEmitter;var a,o=function(e,t){return e.listeners(t).length},s=n(4687),l=n(3325).Buffer,u=n.g.Uint8Array||function(){},c=n(9838);a=c&&c.debuglog?c.debuglog("stream"):function(){};var f,d,p,h=n(4147),m=n(4822),g=n(2809).getHighWaterMark,y=n(7614).F,v=y.ERR_INVALID_ARG_TYPE,b=y.ERR_STREAM_PUSH_AFTER_EOF,w=y.ERR_METHOD_NOT_IMPLEMENTED,x=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(1596)(S,s);var _=m.errorOrDestroy,E=["error","close","destroy","pause","resume"];function k(e,t,i){r=r||n(7544),e=e||{},"boolean"!=typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",i),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=n(923).I),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function S(e){if(r=r||n(7544),!(this instanceof S))return new S(e);var t=this instanceof r;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function A(e,t,n,r,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?N(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,R(e)))}}(e,s);else if(i||(o=function(e,t){var n,r;return r=t,l.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new v("chunk",["string","Buffer","Uint8Array"],t)),n}(s,t)),o)_(e,o);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),r)s.endEmitted?_(e,new x):C(e,s,t,!0);else if(s.ended)_(e,new b);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?C(e,s,t,!1):P(e,s)):C(e,s,t,!1)}else r||(s.reading=!1,P(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function C(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&N(e)),P(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=m.destroy,S.prototype._undestroy=m.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=l.from(e,t),t=""),n=!0),A(this,e,t,!1,n)},S.prototype.unshift=function(e){return A(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){f||(f=n(923).I);var t=new f(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var O=1073741824;function T(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function N(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(R,e))}function R(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,B(e)}function P(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(j,e,t))}function j(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(a("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function I(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function L(e){a("readable nexttick read 0"),e.read(0)}function M(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),B(e),t.flowing&&!t.reading&&e.read(0)}function B(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function U(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(F,t,e))}function F(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function z(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}S.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return a("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):N(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&U(this),null;var r,i=t.needReadable;return a("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&a("length less than watermark",i=!0),t.ended||t.reading?a("reading or ended",i=!1):i&&(a("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=T(n,t))),null===(r=e>0?D(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&U(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(e){_(this,new w("_read()"))},S.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,a("pipe count=%d opts=%j",r.pipesCount,t);var s=t&&!1===t.end||e===i.stdout||e===i.stderr?m:l;function l(){a("onend"),e.end()}r.endEmitted?i.nextTick(s):n.once("end",s),e.on("unpipe",(function t(i,o){a("onunpipe"),i===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,a("cleanup"),e.removeListener("close",p),e.removeListener("finish",h),e.removeListener("drain",u),e.removeListener("error",d),e.removeListener("unpipe",t),n.removeListener("end",l),n.removeListener("end",m),n.removeListener("data",f),c=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}));var u=function(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,B(e))}}(n);e.on("drain",u);var c=!1;function f(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==z(r.pipes,e))&&!c&&(a("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function d(t){a("onerror",t),m(),e.removeListener("error",d),0===o(e,"error")&&_(e,t)}function p(){e.removeListener("finish",h),m()}function h(){a("onfinish"),e.removeListener("close",p),m()}function m(){a("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",p),e.once("finish",h),e.emit("pipe",n),r.flowing||(a("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=z(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},S.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,a("on readable",r.length,r.reading),r.length?N(this):r.reading||i.nextTick(L,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(I,this),n},S.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(I,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(M,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(a("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){a("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!=i)&&(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<E.length;o++)e.on(E[o],this.emit.bind(this,E[o]));return this._read=function(t){a("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=n(9733)),d(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=D,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===p&&(p=n(9951)),p(S,e,t)})},5624:(e,t,n)=>{"use strict";e.exports=c;var r=n(7614).F,i=r.ERR_METHOD_NOT_IMPLEMENTED,a=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,l=n(7544);function u(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new a);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);l.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,n){d(e,t,n)}))}function d(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}n(1596)(c,l),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,n){n(new i("_transform()"))},c.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,(function(e){t(e)}))}},4306:(e,t,n)=>{"use strict";var r,i=n(5224);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(undefined),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=S,S.WritableState=k;var o,s={deprecate:n(1421)},l=n(4687),u=n(3325).Buffer,c=n.g.Uint8Array||function(){},f=n(4822),d=n(2809).getHighWaterMark,p=n(7614).F,h=p.ERR_INVALID_ARG_TYPE,m=p.ERR_METHOD_NOT_IMPLEMENTED,g=p.ERR_MULTIPLE_CALLBACK,y=p.ERR_STREAM_CANNOT_PIPE,v=p.ERR_STREAM_DESTROYED,b=p.ERR_STREAM_NULL_VALUES,w=p.ERR_STREAM_WRITE_AFTER_END,x=p.ERR_UNKNOWN_ENCODING,_=f.errorOrDestroy;function E(){}function k(e,t,o){r=r||n(7544),e=e||{},"boolean"!=typeof o&&(o=t instanceof r),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,a=n.writecb;if("function"!=typeof a)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,a){--t.pendingcb,n?(i.nextTick(a,r),i.nextTick(R,e,t),e._writableState.errorEmitted=!0,_(e,r)):(a(r),e._writableState.errorEmitted=!0,_(e,r),R(e,t))}(e,n,r,t,a);else{var o=T(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||O(e,n),r?i.nextTick(C,e,n,o,a):C(e,n,o,a)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function S(e){var t=this instanceof(r=r||n(7544));if(!t&&!o.call(S,this))return new S(e);this._writableState=new k(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),l.call(this)}function A(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function C(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),R(e,t)}function O(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,l=!0;n;)i[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;i.allBuffers=l,A(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,f=n.callback;if(A(e,t,!1,t.objectMode?1:u.length,u,c,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function N(e,t){e._final((function(n){t.pendingcb--,n&&_(e,n),t.prefinished=!0,e.emit("prefinish"),R(e,t)}))}function R(e,t){var n=T(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(N,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}n(1596)(S,l),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===S&&e&&e._writableState instanceof k}})):o=function(e){return e instanceof this},S.prototype.pipe=function(){_(this,new y)},S.prototype.write=function(e,t,n){var r,a=this._writableState,o=!1,s=!a.objectMode&&(r=e,u.isBuffer(r)||r instanceof c);return s&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof n&&(n=E),a.ending?function(e,t){var n=new w;_(e,n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var a;return null===n?a=new b:"string"==typeof n||t.objectMode||(a=new h("chunk",["string","Buffer"],n)),!a||(_(e,a),i.nextTick(r,a),!1)}(this,a,e,n))&&(a.pendingcb++,o=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,n)),t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,s,r,i,a);return l}(this,a,s,e,t,n)),o},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||O(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,n){n(new m("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,R(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=f.destroy,S.prototype._undestroy=f.undestroy,S.prototype._destroy=function(e,t){t(e)}},9733:(e,t,n)=>{"use strict";var r,i=n(5224);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(8172),s=Symbol("lastResolve"),l=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),d=Symbol("handlePromise"),p=Symbol("stream");function h(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var n=e[p].read();null!==n&&(e[f]=null,e[s]=null,e[l]=null,t(h(n,!1)))}}function g(e){i.nextTick(m,e)}var y=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((a(r={get stream(){return this[p]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(h(void 0,!0));if(this[p].destroyed)return new Promise((function(t,n){i.nextTick((function(){e[u]?n(e[u]):t(h(void 0,!0))}))}));var n,r=this[f];if(r)n=new Promise(function(e,t){return function(n,r){e.then((function(){t[c]?n(h(void 0,!0)):t[d](n,r)}),r)}}(r,this));else{var a=this[p].read();if(null!==a)return Promise.resolve(h(a,!1));n=new Promise(this[d])}return this[f]=n,n}},Symbol.asyncIterator,(function(){return this})),a(r,"return",(function(){var e=this;return new Promise((function(t,n){e[p].destroy(null,(function(e){e?n(e):t(h(void 0,!0))}))}))})),r),y);e.exports=function(e){var t,n=Object.create(v,(a(t={},p,{value:e,writable:!0}),a(t,s,{value:null,writable:!0}),a(t,l,{value:null,writable:!0}),a(t,u,{value:null,writable:!0}),a(t,c,{value:e._readableState.endEmitted,writable:!0}),a(t,d,{value:function(e,t){var r=n[p].read();r?(n[f]=null,n[s]=null,n[l]=null,e(h(r,!1))):(n[s]=e,n[l]=t)},writable:!0}),t));return n[f]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[l];return null!==t&&(n[f]=null,n[s]=null,n[l]=null,t(e)),void(n[u]=e)}var r=n[s];null!==r&&(n[f]=null,n[s]=null,n[l]=null,r(h(void 0,!0))),n[c]=!0})),e.on("readable",g.bind(null,n)),n}},4147:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=n(3325).Buffer,s=n(5340).inspect,l=s&&s.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,n,r,i=o.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,r=s,o.prototype.copy.call(t,n,r),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),0==(e-=a)){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:l,value:function(e,t){return s(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}])&&a(t.prototype,n),e}()},4822:(e,t,n)=>{"use strict";var r=n(5224);function i(e,t){o(e,t),a(e)}function a(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(o,this,e)):r.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted?r.nextTick(a,n):(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t?(r.nextTick(a,n),t(e)):r.nextTick(a,n)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},8172:(e,t,n)=>{"use strict";var r=n(7614).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,a){if("function"==typeof n)return e(t,null,n);n||(n={}),a=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(a||i);var o=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,l=function(){t.writable||c()},u=t._writableState&&t._writableState.finished,c=function(){s=!1,u=!0,o||a.call(t)},f=t._readableState&&t._readableState.endEmitted,d=function(){o=!1,f=!0,s||a.call(t)},p=function(e){a.call(t,e)},h=function(){var e;return o&&!f?(t._readableState&&t._readableState.ended||(e=new r),a.call(t,e)):s&&!u?(t._writableState&&t._writableState.ended||(e=new r),a.call(t,e)):void 0},m=function(){t.req.on("finish",c)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",c),t.on("abort",h),t.req?m():t.on("request",m)):s&&!t._writableState&&(t.on("end",l),t.on("close",l)),t.on("end",d),t.on("finish",c),!1!==n.error&&t.on("error",p),t.on("close",h),function(){t.removeListener("complete",c),t.removeListener("abort",h),t.removeListener("request",m),t.req&&t.req.removeListener("finish",c),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",c),t.removeListener("end",d),t.removeListener("error",p),t.removeListener("close",h)}}},9951:e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},3648:(e,t,n)=>{"use strict";var r,i=n(7614).F,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function l(e){e()}function u(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var c,f=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new a("streams");var d=t.map((function(e,i){var a=i<t.length-1;return function(e,t,i,a){a=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(a);var s=!1;e.on("close",(function(){s=!0})),void 0===r&&(r=n(8172)),r(e,{readable:t,writable:i},(function(e){if(e)return a(e);s=!0,a()}));var l=!1;return function(t){if(!s&&!l)return l=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void a(t||new o("pipe"))}}(e,a,i>0,(function(e){c||(c=e),e&&d.forEach(l),a||(d.forEach(l),f(c))}))}));return t.reduce(u)}},2809:(e,t,n)=>{"use strict";var r=n(7614).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var a=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new r(i?n:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},4687:(e,t,n)=>{e.exports=n(8981).EventEmitter},6047:(e,t,n)=>{var r=n(3325),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},3529:(e,t,n)=>{"use strict";var r=n(3325).Buffer;const i=n(2387);class a{constructor(e){if(this.length=0,this._encoding="utf8",this._writeOffset=0,this._readOffset=0,a.isSmartBufferOptions(e))if(e.encoding&&(i.checkEncoding(e.encoding),this._encoding=e.encoding),e.size){if(!(i.isFiniteInteger(e.size)&&e.size>0))throw new Error(i.ERRORS.INVALID_SMARTBUFFER_SIZE);this._buff=r.allocUnsafe(e.size)}else if(e.buff){if(!r.isBuffer(e.buff))throw new Error(i.ERRORS.INVALID_SMARTBUFFER_BUFFER);this._buff=e.buff,this.length=e.buff.length}else this._buff=r.allocUnsafe(4096);else{if(void 0!==e)throw new Error(i.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=r.allocUnsafe(4096)}}static fromSize(e,t){return new this({size:e,encoding:t})}static fromBuffer(e,t){return new this({buff:e,encoding:t})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){const t=e;return t&&(void 0!==t.encoding||void 0!==t.size||void 0!==t.buff)}readInt8(e){return this._readNumberValue(r.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(r.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(r.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(r.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(r.prototype.readInt32LE,4,e)}readBigInt64BE(e){return i.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(r.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return i.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(r.prototype.readBigInt64LE,8,e)}writeInt8(e,t){return this._writeNumberValue(r.prototype.writeInt8,1,e,t),this}insertInt8(e,t){return this._insertNumberValue(r.prototype.writeInt8,1,e,t)}writeInt16BE(e,t){return this._writeNumberValue(r.prototype.writeInt16BE,2,e,t)}insertInt16BE(e,t){return this._insertNumberValue(r.prototype.writeInt16BE,2,e,t)}writeInt16LE(e,t){return this._writeNumberValue(r.prototype.writeInt16LE,2,e,t)}insertInt16LE(e,t){return this._insertNumberValue(r.prototype.writeInt16LE,2,e,t)}writeInt32BE(e,t){return this._writeNumberValue(r.prototype.writeInt32BE,4,e,t)}insertInt32BE(e,t){return this._insertNumberValue(r.prototype.writeInt32BE,4,e,t)}writeInt32LE(e,t){return this._writeNumberValue(r.prototype.writeInt32LE,4,e,t)}insertInt32LE(e,t){return this._insertNumberValue(r.prototype.writeInt32LE,4,e,t)}writeBigInt64BE(e,t){return i.bigIntAndBufferInt64Check("writeBigInt64BE"),this._writeNumberValue(r.prototype.writeBigInt64BE,8,e,t)}insertBigInt64BE(e,t){return i.bigIntAndBufferInt64Check("writeBigInt64BE"),this._insertNumberValue(r.prototype.writeBigInt64BE,8,e,t)}writeBigInt64LE(e,t){return i.bigIntAndBufferInt64Check("writeBigInt64LE"),this._writeNumberValue(r.prototype.writeBigInt64LE,8,e,t)}insertBigInt64LE(e,t){return i.bigIntAndBufferInt64Check("writeBigInt64LE"),this._insertNumberValue(r.prototype.writeBigInt64LE,8,e,t)}readUInt8(e){return this._readNumberValue(r.prototype.readUInt8,1,e)}readUInt16BE(e){return this._readNumberValue(r.prototype.readUInt16BE,2,e)}readUInt16LE(e){return this._readNumberValue(r.prototype.readUInt16LE,2,e)}readUInt32BE(e){return this._readNumberValue(r.prototype.readUInt32BE,4,e)}readUInt32LE(e){return this._readNumberValue(r.prototype.readUInt32LE,4,e)}readBigUInt64BE(e){return i.bigIntAndBufferInt64Check("readBigUInt64BE"),this._readNumberValue(r.prototype.readBigUInt64BE,8,e)}readBigUInt64LE(e){return i.bigIntAndBufferInt64Check("readBigUInt64LE"),this._readNumberValue(r.prototype.readBigUInt64LE,8,e)}writeUInt8(e,t){return this._writeNumberValue(r.prototype.writeUInt8,1,e,t)}insertUInt8(e,t){return this._insertNumberValue(r.prototype.writeUInt8,1,e,t)}writeUInt16BE(e,t){return this._writeNumberValue(r.prototype.writeUInt16BE,2,e,t)}insertUInt16BE(e,t){return this._insertNumberValue(r.prototype.writeUInt16BE,2,e,t)}writeUInt16LE(e,t){return this._writeNumberValue(r.prototype.writeUInt16LE,2,e,t)}insertUInt16LE(e,t){return this._insertNumberValue(r.prototype.writeUInt16LE,2,e,t)}writeUInt32BE(e,t){return this._writeNumberValue(r.prototype.writeUInt32BE,4,e,t)}insertUInt32BE(e,t){return this._insertNumberValue(r.prototype.writeUInt32BE,4,e,t)}writeUInt32LE(e,t){return this._writeNumberValue(r.prototype.writeUInt32LE,4,e,t)}insertUInt32LE(e,t){return this._insertNumberValue(r.prototype.writeUInt32LE,4,e,t)}writeBigUInt64BE(e,t){return i.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._writeNumberValue(r.prototype.writeBigUInt64BE,8,e,t)}insertBigUInt64BE(e,t){return i.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._insertNumberValue(r.prototype.writeBigUInt64BE,8,e,t)}writeBigUInt64LE(e,t){return i.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._writeNumberValue(r.prototype.writeBigUInt64LE,8,e,t)}insertBigUInt64LE(e,t){return i.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._insertNumberValue(r.prototype.writeBigUInt64LE,8,e,t)}readFloatBE(e){return this._readNumberValue(r.prototype.readFloatBE,4,e)}readFloatLE(e){return this._readNumberValue(r.prototype.readFloatLE,4,e)}writeFloatBE(e,t){return this._writeNumberValue(r.prototype.writeFloatBE,4,e,t)}insertFloatBE(e,t){return this._insertNumberValue(r.prototype.writeFloatBE,4,e,t)}writeFloatLE(e,t){return this._writeNumberValue(r.prototype.writeFloatLE,4,e,t)}insertFloatLE(e,t){return this._insertNumberValue(r.prototype.writeFloatLE,4,e,t)}readDoubleBE(e){return this._readNumberValue(r.prototype.readDoubleBE,8,e)}readDoubleLE(e){return this._readNumberValue(r.prototype.readDoubleLE,8,e)}writeDoubleBE(e,t){return this._writeNumberValue(r.prototype.writeDoubleBE,8,e,t)}insertDoubleBE(e,t){return this._insertNumberValue(r.prototype.writeDoubleBE,8,e,t)}writeDoubleLE(e,t){return this._writeNumberValue(r.prototype.writeDoubleLE,8,e,t)}insertDoubleLE(e,t){return this._insertNumberValue(r.prototype.writeDoubleLE,8,e,t)}readString(e,t){let n;"number"==typeof e?(i.checkLengthValue(e),n=Math.min(e,this.length-this._readOffset)):(t=e,n=this.length-this._readOffset),void 0!==t&&i.checkEncoding(t);const r=this._buff.slice(this._readOffset,this._readOffset+n).toString(t||this._encoding);return this._readOffset+=n,r}insertString(e,t,n){return i.checkOffsetValue(t),this._handleString(e,!0,t,n)}writeString(e,t,n){return this._handleString(e,!1,t,n)}readStringNT(e){void 0!==e&&i.checkEncoding(e);let t=this.length;for(let e=this._readOffset;e<this.length;e++)if(0===this._buff[e]){t=e;break}const n=this._buff.slice(this._readOffset,t);return this._readOffset=t+1,n.toString(e||this._encoding)}insertStringNT(e,t,n){return i.checkOffsetValue(t),this.insertString(e,t,n),this.insertUInt8(0,t+e.length),this}writeStringNT(e,t,n){return this.writeString(e,t,n),this.writeUInt8(0,"number"==typeof t?t+e.length:this.writeOffset),this}readBuffer(e){void 0!==e&&i.checkLengthValue(e);const t="number"==typeof e?e:this.length,n=Math.min(this.length,this._readOffset+t),r=this._buff.slice(this._readOffset,n);return this._readOffset=n,r}insertBuffer(e,t){return i.checkOffsetValue(t),this._handleBuffer(e,!0,t)}writeBuffer(e,t){return this._handleBuffer(e,!1,t)}readBufferNT(){let e=this.length;for(let t=this._readOffset;t<this.length;t++)if(0===this._buff[t]){e=t;break}const t=this._buff.slice(this._readOffset,e);return this._readOffset=e+1,t}insertBufferNT(e,t){return i.checkOffsetValue(t),this.insertBuffer(e,t),this.insertUInt8(0,t+e.length),this}writeBufferNT(e,t){return void 0!==t&&i.checkOffsetValue(t),this.writeBuffer(e,t),this.writeUInt8(0,"number"==typeof t?t+e.length:this._writeOffset),this}clear(){return this._writeOffset=0,this._readOffset=0,this.length=0,this}remaining(){return this.length-this._readOffset}get readOffset(){return this._readOffset}set readOffset(e){i.checkOffsetValue(e),i.checkTargetOffset(e,this),this._readOffset=e}get writeOffset(){return this._writeOffset}set writeOffset(e){i.checkOffsetValue(e),i.checkTargetOffset(e,this),this._writeOffset=e}get encoding(){return this._encoding}set encoding(e){i.checkEncoding(e),this._encoding=e}get internalBuffer(){return this._buff}toBuffer(){return this._buff.slice(0,this.length)}toString(e){const t="string"==typeof e?e:this._encoding;return i.checkEncoding(t),this._buff.toString(t,0,this.length)}destroy(){return this.clear(),this}_handleString(e,t,n,a){let o=this._writeOffset,s=this._encoding;"number"==typeof n?o=n:"string"==typeof n&&(i.checkEncoding(n),s=n),"string"==typeof a&&(i.checkEncoding(a),s=a);const l=r.byteLength(e,s);return t?this.ensureInsertable(l,o):this._ensureWriteable(l,o),this._buff.write(e,o,l,s),t?this._writeOffset+=l:"number"==typeof n?this._writeOffset=Math.max(this._writeOffset,o+l):this._writeOffset+=l,this}_handleBuffer(e,t,n){const r="number"==typeof n?n:this._writeOffset;return t?this.ensureInsertable(e.length,r):this._ensureWriteable(e.length,r),e.copy(this._buff,r),t?this._writeOffset+=e.length:"number"==typeof n?this._writeOffset=Math.max(this._writeOffset,r+e.length):this._writeOffset+=e.length,this}ensureReadable(e,t){let n=this._readOffset;if(void 0!==t&&(i.checkOffsetValue(t),n=t),n<0||n+e>this.length)throw new Error(i.ERRORS.INVALID_READ_BEYOND_BOUNDS)}ensureInsertable(e,t){i.checkOffsetValue(t),this._ensureCapacity(this.length+e),t<this.length&&this._buff.copy(this._buff,t+e,t,this._buff.length),t+e>this.length?this.length=t+e:this.length+=e}_ensureWriteable(e,t){const n="number"==typeof t?t:this._writeOffset;this._ensureCapacity(n+e),n+e>this.length&&(this.length=n+e)}_ensureCapacity(e){const t=this._buff.length;if(e>t){let n=this._buff,i=3*t/2+1;i<e&&(i=e),this._buff=r.allocUnsafe(i),n.copy(this._buff,0,0,t)}}_readNumberValue(e,t,n){this.ensureReadable(t,n);const r=e.call(this._buff,"number"==typeof n?n:this._readOffset);return void 0===n&&(this._readOffset+=t),r}_insertNumberValue(e,t,n,r){return i.checkOffsetValue(r),this.ensureInsertable(t,r),e.call(this._buff,n,r),this._writeOffset+=t,this}_writeNumberValue(e,t,n,r){if("number"==typeof r){if(r<0)throw new Error(i.ERRORS.INVALID_WRITE_BEYOND_BOUNDS);i.checkOffsetValue(r)}const a="number"==typeof r?r:this._writeOffset;return this._ensureWriteable(t,a),e.call(this._buff,n,a),"number"==typeof r?this._writeOffset=Math.max(this._writeOffset,a+t):this._writeOffset+=t,this}}t.I=a},2387:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3325),i={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};function a(e){return"number"==typeof e&&isFinite(e)&&function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}(e)}function o(e,t){if("number"!=typeof e)throw new Error(t?i.INVALID_OFFSET_NON_NUMBER:i.INVALID_LENGTH_NON_NUMBER);if(!a(e)||e<0)throw new Error(t?i.INVALID_OFFSET:i.INVALID_LENGTH)}t.ERRORS=i,t.checkEncoding=function(e){if(!r.Buffer.isEncoding(e))throw new Error(i.INVALID_ENCODING)},t.isFiniteInteger=a,t.checkLengthValue=function(e){o(e,!1)},t.checkOffsetValue=function(e){o(e,!0)},t.checkTargetOffset=function(e,t){if(e<0||e>t.length)throw new Error(i.INVALID_TARGET_OFFSET)},t.bigIntAndBufferInt64Check=function(e){if("undefined"==typeof BigInt)throw new Error("Platform does not support JS BigInt type.");if(void 0===r.Buffer.prototype[e])throw new Error("Platform does not support Buffer.prototype.".concat(e,"."))}},8556:(e,t,n)=>{e.exports=i;var r=n(8981).EventEmitter;function i(){r.call(this)}n(1596)(i,r),i.Readable=n(3230),i.Writable=n(4306),i.Duplex=n(7544),i.Transform=n(5624),i.PassThrough=n(2666),i.finished=n(8172),i.pipeline=n(3648),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var o=!1;function s(){o||(o=!0,e.end())}function l(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",u),e.on("error",u),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},923:(e,t,n)=>{"use strict";var r=n(6047).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.I=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=o(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=o(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},1421:(e,t,n)=>{var r=n(3705);function i(e){try{if(!n.g.localStorage)return!1}catch(e){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(i("noDeprecation"))return e;var n=!1;return function(){if(!n){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?r.trace(t):r.warn(t),n=!0}return e.apply(this,arguments)}}},6925:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},8534:(e,t,n)=>{"use strict";var r=n(46),i=n(7198),a=n(4961),o=n(1338);function s(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,c=s(Object.prototype.toString),f=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(l)var h=s(BigInt.prototype.valueOf);if(u)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===c(e)}function v(e){return"[object Set]"===c(e)}function b(e){return"[object WeakMap]"===c(e)}function w(e){return"[object WeakSet]"===c(e)}function x(e){return"[object ArrayBuffer]"===c(e)}function _(e){return"undefined"!=typeof ArrayBuffer&&(x.working?x(e):e instanceof ArrayBuffer)}function E(e){return"[object DataView]"===c(e)}function k(e){return"undefined"!=typeof DataView&&(E.working?E(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=i,t.isTypedArray=o,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):o(e)||k(e)},t.isUint8Array=function(e){return"Uint8Array"===a(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===a(e)},t.isUint16Array=function(e){return"Uint16Array"===a(e)},t.isUint32Array=function(e){return"Uint32Array"===a(e)},t.isInt8Array=function(e){return"Int8Array"===a(e)},t.isInt16Array=function(e){return"Int16Array"===a(e)},t.isInt32Array=function(e){return"Int32Array"===a(e)},t.isFloat32Array=function(e){return"Float32Array"===a(e)},t.isFloat64Array=function(e){return"Float64Array"===a(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===a(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===a(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},x.working="undefined"!=typeof ArrayBuffer&&x(new ArrayBuffer),t.isArrayBuffer=_,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=k;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===c(e)}function C(e){return void 0!==S&&(void 0===A.working&&(A.working=A(new S)),A.working?A(e):e instanceof S)}function O(e){return g(e,f)}function T(e){return g(e,d)}function N(e){return g(e,p)}function R(e){return l&&g(e,h)}function P(e){return u&&g(e,m)}t.isSharedArrayBuffer=C,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=O,t.isStringObject=T,t.isBooleanObject=N,t.isBigIntObject=R,t.isSymbolObject=P,t.isBoxedPrimitive=function(e){return O(e)||T(e)||N(e)||R(e)||P(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(_(e)||C(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},3575:(e,t,n)=>{var r=n(5224),i=n(3705),a=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!w(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(c(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n<i;s=r[++n])v(s)||!E(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var a=!1;return function(){if(!a){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?i.trace(n):i.error(n),a=!0}return e.apply(this,arguments)}};var s={},l=/^$/;if({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG){var u={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+u+"$","i")}function c(e,n){var r={seen:[],stylize:d};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),x(r.showHidden)&&(r.showHidden=!1),x(r.depth)&&(r.depth=2),x(r.colors)&&(r.colors=!1),x(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=f),p(r,e,r.depth)}function f(e,t){var n=c.styles[t];return n?"["+c.colors[n][0]+"m"+e+"["+c.colors[n][1]+"m":e}function d(e,t){return e}function p(e,n,r){if(e.customInspect&&n&&A(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return w(i)||(i=p(e,i,r)),i}var a=function(e,t){if(x(t))return e.stylize("undefined","undefined");if(w(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return b(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}(e,n);if(a)return a;var o=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),S(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return h(n);if(0===o.length){if(A(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(_(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(k(n))return e.stylize(Date.prototype.toString.call(n),"date");if(S(n))return h(n)}var u,c="",f=!1,d=["{","}"];return g(n)&&(f=!0,d=["[","]"]),A(n)&&(c=" [Function"+(n.name?": "+n.name:"")+"]"),_(n)&&(c=" "+RegExp.prototype.toString.call(n)),k(n)&&(c=" "+Date.prototype.toUTCString.call(n)),S(n)&&(c=" "+h(n)),0!==o.length||f&&0!=n.length?r<0?_(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=f?function(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)N(t,String(o))?a.push(m(e,t,n,r,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(m(e,t,n,r,i,!0))})),a}(e,n,r,s,o):o.map((function(t){return m(e,n,r,s,t,f)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,c,d)):d[0]+c+d[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,n,r,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),N(r,i)||(o="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=v(n)?p(e,l.value,null):p(e,l.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),x(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function g(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function v(e){return null===e}function b(e){return"number"==typeof e}function w(e){return"string"==typeof e}function x(e){return void 0===e}function _(e){return E(e)&&"[object RegExp]"===C(e)}function E(e){return"object"==typeof e&&null!==e}function k(e){return E(e)&&"[object Date]"===C(e)}function S(e){return E(e)&&("[object Error]"===C(e)||e instanceof Error)}function A(e){return"function"==typeof e}function C(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(l.test(e)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);i.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(8534),t.isArray=g,t.isBoolean=y,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=w,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=x,t.isRegExp=_,t.types.isRegExp=_,t.isObject=E,t.isDate=k,t.types.isDate=k,t.isError=S,t.types.isNativeError=S,t.isFunction=A,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(6925);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){i.log("%s - %s",function(){var e=new Date,t=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":");return[e.getDate(),T[e.getMonth()],t].join(" ")}(),t.format.apply(t,arguments))},t.inherits=n(1596),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var R="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(R&&e[R]){var t;if("function"!=typeof(t=e[R]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],a=0;a<arguments.length;a++)i.push(arguments[a]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),R&&Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,a(e))},t.promisify.custom=R,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var a=this,o=function(){return i.apply(a,arguments)};e.apply(this,t).then((function(e){r.nextTick(o.bind(null,null,e))}),(function(e){r.nextTick(P.bind(null,e,o))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,a(e)),t}},4961:(e,t,n)=>{"use strict";var r=n(1e3),i=n(6405),a=n(1061),o=a("Object.prototype.toString"),s=n(5550)(),l="undefined"==typeof globalThis?n.g:globalThis,u=i(),c=a("String.prototype.slice"),f={},d=n(2081),p=Object.getPrototypeOf;s&&d&&p&&r(u,(function(e){if("function"==typeof l[e]){var t=new l[e];if(Symbol.toStringTag in t){var n=p(t),r=d(n,Symbol.toStringTag);if(!r){var i=p(n);r=d(i,Symbol.toStringTag)}f[e]=r.get}}}));var h=n(1338);e.exports=function(e){return!!h(e)&&(s&&Symbol.toStringTag in e?function(e){var t=!1;return r(f,(function(n,r){if(!t)try{var i=n.call(e);i===r&&(t=i)}catch(e){}})),t}(e):c(o(e),8,-1))}},8898:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,o,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in a=Object(arguments[l]))n.call(a,u)&&(s[u]=a[u]);if(t){o=t(a);for(var c=0;c<o.length;c++)r.call(a,o[c])&&(s[o[c]]=a[o[c]])}}return s}},1253:(e,t,n)=>{"use strict";var r,i,a,o,s=n(3705);if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var u=Date,c=u.now();t.unstable_now=function(){return u.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var f=null,d=null,p=function(){if(null!==f)try{var e=t.unstable_now();f(!0,e),f=null}catch(e){throw setTimeout(p,0),e}};r=function(e){null!==f?setTimeout(r,0,e):(f=e,setTimeout(p,0))},i=function(e,t){d=setTimeout(e,t)},a=function(){clearTimeout(d)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,m=window.clearTimeout;if(void 0!==s){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&s.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof g&&s.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,v=null,b=-1,w=5,x=0;t.unstable_shouldYield=function(){return t.unstable_now()>=x},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?s.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<e?Math.floor(1e3/e):5};var _=new MessageChannel,E=_.port2;_.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();x=e+w;try{v(!0,e)?E.postMessage(null):(y=!1,v=null)}catch(e){throw E.postMessage(null),e}}else y=!1},r=function(e){v=e,y||(y=!0,E.postMessage(null))},i=function(e,n){b=h((function(){e(t.unstable_now())}),n)},a=function(){m(b),b=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<C(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function A(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,l=e[s];if(void 0!==o&&0>C(o,n))void 0!==l&&0>C(l,o)?(e[r]=l,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==l&&0>C(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],T=[],N=1,R=null,P=3,j=!1,I=!1,L=!1;function M(e){for(var t=S(T);null!==t;){if(null===t.callback)A(T);else{if(!(t.startTime<=e))break;A(T),t.sortIndex=t.expirationTime,k(O,t)}t=S(T)}}function B(e){if(L=!1,M(e),!I)if(null!==S(O))I=!0,r(D);else{var t=S(T);null!==t&&i(B,t.startTime-e)}}function D(e,n){I=!1,L&&(L=!1,a()),j=!0;var r=P;try{for(M(n),R=S(O);null!==R&&(!(R.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=R.callback;if("function"==typeof o){R.callback=null,P=R.priorityLevel;var s=o(R.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?R.callback=s:R===S(O)&&A(O),M(n)}else A(O);R=S(O)}if(null!==R)var l=!0;else{var u=S(T);null!==u&&i(B,u.startTime-n),l=!1}return l}finally{R=null,P=r,j=!1}}var U=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||j||(I=!0,r(D))},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_getFirstCallbackNode=function(){return S(O)},t.unstable_next=function(e){switch(P){case 1:case 2:case 3:var t=3;break;default:t=P}var n=P;P=t;try{return e()}finally{P=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=U,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=P;P=e;try{return t()}finally{P=n}},t.unstable_scheduleCallback=function(e,n,o){var s=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?s+o:s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:N++,callback:n,priorityLevel:e,startTime:o,expirationTime:l=o+l,sortIndex:-1},o>s?(e.sortIndex=o,k(T,e),null===S(O)&&e===S(T)&&(L?a():L=!0,i(B,o-s))):(e.sortIndex=l,k(O,e),I||j||(I=!0,r(D))),e},t.unstable_wrapCallback=function(e){var t=P;return function(){var n=P;P=t;try{return e.apply(this,arguments)}finally{P=n}}}},5664:(e,t,n)=>{"use strict";e.exports=n(1253)},5340:()=>{},9838:()=>{},6405:(e,t,n)=>{"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof i[r[t]]&&(e[e.length]=r[t]);return e}},2081:(e,t,n)=>{"use strict";var r=n(7375)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(1173),t=n(8932);let r,i,a,o;function s(e){switch(e){case o.MuteAllChannels:return"muteallchannels";case o.PlayInstruction:return"playinstructions"}}!function(e){e[e.Pressed=1]="Pressed",e[e.Released=2]="Released",e[e.Held=3]="Held"}(r||(r={})),function(e){e[e.Player=0]="Player",e[e.Reaction=1]="Reaction"}(i||(i={})),function(e){e[e.None=0]="None",e[e.Left=1]="Left",e[e.Up=2]="Up",e[e.Right=3]="Right",e[e.Down=4]="Down",e[e.A=5]="A",e[e.B=6]="B",e[e.Menu=7]="Menu",e[e.Screenshot=-1]="Screenshot",e[e.Gif=-2]="Gif",e[e.Reset=-3]="Reset",e[e.TogglePause=-4]="TogglePause"}(a||(a={})),function(e){e[e.MuteAllChannels=0]="MuteAllChannels",e[e.PlayInstruction=1]="PlayInstruction"}(o||(o={}));const l={users:[]};let u;u||(u={});const c={netMode:"init",authStatus:"unknown",profile:void 0,clientRole:void 0,playerSlot:void 0,joinCode:void 0,gameState:void 0,gameMetadata:void 0,gamePaused:void 0,toasts:[],presence:{...l},modal:void 0,modalOpts:void 0,muted:pxt.BrowserUtils.isSafari(),deepLinks:{},reactions:{},targetConfig:void 0};function f(e,t){switch(t.type){case"SET_USER_PROFILE":var n;return{...e,profile:t.profile,authStatus:null!==(n=t.profile)&&void 0!==n&&n.id?"signed-in":"signed-out"};case"SET_CLIENT_ROLE":return{...e,clientRole:t.clientRole};case"SET_NET_MODE":{let n={...e,netMode:t.mode};return"init"===t.mode&&(n={...n,clientRole:void 0,playerSlot:void 0,joinCode:void 0,gameState:void 0,gameMetadata:void 0,gamePaused:void 0,presence:{...l},modal:void 0,modalOpts:void 0}),n}case"SET_GAME_INFO":return{...e,gameState:{...e.gameState,...t.gameInfo}};case"SET_GAME_METADATA":return{...e,gameMetadata:t.gameMetadata};case"SET_GAME_ID":return{...e,gameState:{...e.gameState,gameId:t.gameId}};case"SET_PLAYER_SLOT":return{...e,playerSlot:t.playerSlot};case"CLEAR_GAME_INFO":return{...e,playerSlot:void 0,gameState:void 0,gameMetadata:void 0};case"SET_GAME_MODE":return{...e,gameState:{...e.gameState,gameMode:t.gameMode}};case"SHOW_TOAST":return{...e,toasts:[...e.toasts,t.toast]};case"DISMISS_TOAST":return{...e,toasts:e.toasts.filter((e=>e.id!==t.id))};case"SET_PRESENCE":return{...e,presence:{...t.presence}};case"SET_REACTION":return{...e,reactions:{...e.reactions,[t.clientId]:{id:t.reactionId,index:t.index}}};case"CLEAR_REACTION":return{...e,reactions:{...e.reactions,[t.clientId]:void 0}};case"SHOW_MODAL":return{...e,modal:t.modalType,modalOpts:t.modalOpts};case"CLEAR_MODAL":return{...e,modal:void 0,modalOpts:void 0};case"SET_DEEP_LINKS":return{...e,deepLinks:{shareCode:t.shareCode,joinCode:t.shareCode?void 0:t.joinCode}};case"SET_MUTE":return{...e,muted:t.value};case"SET_GAME_PAUSED":return{...e,gamePaused:t.gamePaused};case"SET_TARGET_CONFIG":return{...e,targetConfig:t.targetConfig};case"SET_PRESENCE_ICON_OVERRIDE":{var r,i;let n=(null===(r=e.gameState)||void 0===r||null===(i=r.presenceIconOverrides)||void 0===i?void 0:i.slice())||[];return n[t.slot]=t.icon,{...e,gameState:{...e.gameState,presenceIconOverrides:n}}}case"SET_REACTION_ICON_OVERRIDE":{var a,o;let n=(null===(a=e.gameState)||void 0===a||null===(o=a.reactionIconOverrides)||void 0===o?void 0:o.slice())||[];return n[t.slot]=t.icon,{...e,gameState:{...e.gameState,reactionIconOverrides:n}}}}}var d=n(465);let p,h;const m=(0,e.createContext)({state:void 0,dispatch:void 0});function g(t){const[n,r]=(0,e.useReducer)(f,c);return(0,e.useEffect)((()=>{p=n,h=r}),[n,r]),(0,d.jsx)(m.Provider,{value:{state:n,dispatch:r},children:t.children})}function y(){return(0,d.jsx)("div",{className:"tw-w-screen tw-h-screen tw-flex tw-justify-center tw-items-center tw-text-xl tw-text-white",children:lf("Loading...")})}let v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;return crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"")};const b=e=>({type:"SET_CLIENT_ROLE",clientRole:e}),w=e=>({type:"SET_NET_MODE",mode:e}),x=e=>({type:"SET_GAME_INFO",gameInfo:e}),_=e=>({type:"SHOW_TOAST",toast:{id:v(8),...e}}),E=e=>({type:"DISMISS_TOAST",id:e}),k=(e,t)=>({type:"SHOW_MODAL",modalType:e,modalOpts:t}),S=(e,t)=>({type:"SET_DEEP_LINKS",shareCode:e,joinCode:t}),A=e=>({type:"SET_GAME_PAUSED",gamePaused:e}),C=(e,t)=>({type:"SET_PRESENCE_ICON_OVERRIDE",slot:e,icon:t}),O=(e,t)=>({type:"SET_REACTION_ICON_OVERRIDE",slot:e,icon:t});function T(){const{state:t}=(0,e.useContext)(m),{deepLinks:n}=t,{shareCode:r,joinCode:i}=n,a=lf("Sign in to host this multiplayer game"),o=lf("Sign up to host this multiplayer game"),s=lf("Sign in to join multiplayer game {0}",i),l=lf("Sign up to join multiplayer game {0}",i),u=lf("Sign in to host or join a multiplayer game"),c=lf("Sign up to host or join a multiplayer game");return(0,e.useMemo)((()=>r?{signInMessage:a,signUpMessage:o}:i?{signInMessage:s,signUpMessage:l}:{signInMessage:u,signUpMessage:c}),[r,i])}function N(){const{dispatch:t}=(0,e.useContext)(m),n=T();return(0,e.useEffect)((()=>{t(k("sign-in",{dialogMessages:n}))}),[n]),(0,d.jsx)(d.Fragment,{})}function R(e){const t="number"==typeof e.which?e.which:e.keyCode;13!==t&&32!==t||(e.preventDefault(),e.currentTarget.click())}function P(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e=>"string"==typeof e)).reduce(((e,t)=>e.concat(t.split(" "))),[]).map((e=>e.trim())).filter((e=>!!e)).join(" ")}let j;function I(e,t,n,r,i){const a=r?1:-1,o=e[n];return t===n||(i?i(o):"none"!==getComputedStyle(o).display)?o:(n+a>=e.length?n=0:n+a<0?n=e.length-1:n+=a,I(e,t,n,r))}!function(e){e[e.Selected=0]="Selected",e[e.Unselected=1]="Unselected",e[e.Waiting=2]="Waiting"}(j||(j={}));const L=e=>{const{id:t,className:n,style:r,ariaLabel:i,ariaHidden:a,ariaDescribedBy:o,ariaControls:s,ariaExpanded:l,ariaHasPopup:u,ariaPosInSet:c,ariaSetSize:f,ariaSelected:p,ariaPressed:h,role:m,onClick:g,onKeydown:y,onBlur:v,buttonRef:b,title:w,label:x,leftIcon:_,rightIcon:E,hardDisabled:k,href:S,target:A,tabIndex:C,children:O}=e;let{disabled:T}=e;T=T||k;const N=P("common-button",n,T&&"disabled");return(0,d.jsxs)("button",{id:t,className:N,style:r,title:w,ref:b,onClick:T?void 0:e=>{g&&g(),S&&window.open(S,A||"_blank","noopener,noreferrer"),e.stopPropagation(),e.preventDefault()},onKeyDown:y||R,onBlur:v,role:m||"button",tabIndex:C||(T?-1:0),disabled:k,"aria-label":i,"aria-hidden":a,"aria-controls":s,"aria-expanded":l,"aria-haspopup":u,"aria-posinset":c,"aria-setsize":f,"aria-describedby":o,"aria-selected":p,"aria-pressed":h,children:[(_||E||x)&&(0,d.jsxs)("span",{className:"common-button-flex",children:[_&&(0,d.jsx)("i",{className:_,"aria-hidden":!0}),(0,d.jsx)("span",{className:"common-button-label",children:x}),E&&(0,d.jsx)("i",{className:"right "+E,"aria-hidden":!0})]}),O]})},M=e=>{const{id:t,className:n,role:r,ariaHidden:i,ariaLabel:a,childTabStopId:o,children:s,onItemReceivedFocus:l,useUpAndDownArrowKeys:u}=e;let c,f;const p=e=>"true"===e.getAttribute("data-isfocusable")&&"none"!==getComputedStyle(e).display;return(0,d.jsx)("div",{id:t,className:n,role:r,tabIndex:o?void 0:0,onKeyDown:e=>{var t;if(null===(t=c)||void 0===t||!t.length)return;const n=document.activeElement,r=c.indexOf(n),i=e=>{e.focus(),l&&l(e)};-1===r&&n!==f||("Enter"===e.key||" "===e.key?(e.preventDefault(),e.stopPropagation(),n.click?n.click():n.dispatchEvent(new Event("click"))):e.key===(u?"ArrowDown":"ArrowRight")?(r===c.length-1||n===f?i(I(c,r,0,!0,p)):i(I(c,r,r+1,!0,p)),e.preventDefault(),e.stopPropagation()):e.key===(u?"ArrowUp":"ArrowLeft")?(i(I(c,r,0===r||n===f?c.length-1:r-1,!1,p)),e.preventDefault(),e.stopPropagation()):"Home"===e.key?(i(I(c,r,0,!0,p)),e.preventDefault(),e.stopPropagation()):"End"===e.key&&(i(I(c,r,c.length-1,!0,p)),e.preventDefault(),e.stopPropagation()))},ref:e=>{if(!e||f)return;f=e;const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]),[data-isfocusable]');c=[];for(const e of t.values())c.push(e),e.setAttribute("tabindex","-1"),e.setAttribute("data-isfocusable","true");if(o){const e=f.querySelector("#"+o);e&&e.setAttribute("tabindex","0")}},"aria-hidden":i,"aria-label":a,children:s})},B=t=>{var n;const{id:r,className:i,inputClassName:a,groupClassName:o,role:s,ariaHidden:l,ariaLabel:u,initialValue:c,label:f,title:p,placeholder:h,icon:m,iconTitle:g,disabled:y,type:v,readOnly:b,autoComplete:w,selectOnClick:x,onChange:_,onEnterKey:E,onIconClick:k,onFocus:S,onBlur:A,onOptionSelected:C,handleInputRef:O,preserveValueOnBlur:T,options:N}=t,[R,j]=e.useState(void 0),[I,B]=e.useState(!1);let D;const U=e=>e&&-1!=Object.values(N).indexOf(e)?"dropdown-item-".concat(e):void 0;return(0,d.jsxs)("div",{className:P("common-input-wrapper",y&&"disabled",i),onBlur:e=>{I&&!D.contains(e.relatedTarget)&&B(!1)},ref:e=>{e&&(D=e)},children:[f&&(0,d.jsx)("label",{className:"common-input-label",htmlFor:r,children:f}),(0,d.jsxs)("div",{className:P("common-input-group",o),children:[(0,d.jsx)("input",{id:r,className:P("common-input",m&&"has-icon",a),title:p,role:s||"textbox",tabIndex:y?-1:0,"aria-label":u,"aria-hidden":l,type:v||"text",placeholder:h,value:void 0!==R?R:c||"",readOnly:!!b,onClick:e=>{x&&e.target.select(),N&&!I&&B(!0)},onChange:e=>{const t=e.target.value;b||R===t||j(t),_&&_(t)},onKeyDown:e=>{const n="number"==typeof e.which?e.which:e.keyCode;if(13===n||t.treatSpaceAsEnter&&32===n)E&&(e.preventDefault(),E(R));else if(N&&I&&"ArrowDown"===e.key){var r;null===(r=document.getElementById(U(Object.values(N)[0])))||void 0===r||r.focus(),e.preventDefault(),e.stopPropagation()}else if(N&&I&&"ArrowUp"===e.key){var i;const t=Object.values(N);null===(i=document.getElementById(U(t[t.length-1])))||void 0===i||i.focus(),e.preventDefault(),e.stopPropagation()}},onBlur:()=>{A&&A(R),T||j(void 0)},onFocus:()=>{S&&S(R)},autoComplete:w?"":"off",autoCorrect:w?"":"off",autoCapitalize:w?"":"off",spellCheck:w,disabled:y,ref:O}),m&&(k?(0,d.jsx)(L,{leftIcon:m,title:g,disabled:y,onClick:()=>{k&&k(R)}}):(0,d.jsx)("i",{className:m,"aria-hidden":!0})),N&&(0,d.jsx)(L,{leftIcon:I?"fas fa-chevron-up":"fas fa-chevron-down",title:g,disabled:y,ariaHasPopup:"listbox",ariaExpanded:I,ariaLabel:u,onClick:()=>{N&&B(!I)}})]}),I&&(0,d.jsx)(M,{role:"listbox",className:"common-menu-dropdown-pane common-dropdown-shadow",childTabStopId:null!==(n=U(R))&&void 0!==n?n:U(Object.values(N)[0]),"aria-labelledby":r,useUpAndDownArrowKeys:!0,children:(0,d.jsx)("ul",{role:"presentation",children:Object.keys(N).map((e=>(0,d.jsx)("li",{role:"presentation",children:(0,d.jsx)(L,{title:e,label:e,id:U(N[e]),className:P("common-dropdown-item"),onClick:()=>(e=>{var t;B(!1);const n=N[e];j(n),C&&C(n),null===(t=document.getElementById(r))||void 0===t||t.focus()})(e),ariaSelected:U(N[e])===U(null!=R?R:c),role:"option"})},e)))})})]})},D=e=>{const{id:t,className:n,ariaLabel:r,href:i,target:a,children:o,tabIndex:s}=e,l=P("common-link",n);return(0,d.jsx)("a",{id:t,className:l,"aria-label":r,href:i,target:a,rel:"_blank"===a?"noopener noreferrer":"",tabIndex:null!=s?s:0,children:o})},U=Object.create(null);U.open="0",U.close="1",U.ping="2",U.pong="3",U.message="4",U.upgrade="5",U.noop="6";const F=Object.create(null);Object.keys(U).forEach((e=>{F[U[e]]=e}));const z={type:"error",data:"parser error"},V="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),H="function"==typeof ArrayBuffer,W=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,q=(e,t,n)=>{let{type:r,data:i}=e;return V&&i instanceof Blob?t?n(i):G(i,n):H&&(i instanceof ArrayBuffer||W(i))?t?n(i):G(new Blob([i]),n):n(U[r]+(i||""))},G=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function Z(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Y;const $="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<64;e++)$["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(e)]=e;const K="function"==typeof ArrayBuffer,X=(e,t)=>{if("string"!=typeof e)return{type:"message",data:J(e,t)};const n=e.charAt(0);return"b"===n?{type:"message",data:Q(e.substring(1),t)}:F[n]?e.length>1?{type:F[n],data:e.substring(1)}:{type:F[n]}:z},Q=(e,t)=>{if(K){const n=(e=>{let t,n,r,i,a,o=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);const u=new ArrayBuffer(o),c=new Uint8Array(u);for(t=0;t<s;t+=4)n=$[e.charCodeAt(t)],r=$[e.charCodeAt(t+1)],i=$[e.charCodeAt(t+2)],a=$[e.charCodeAt(t+3)],c[l++]=n<<2|r>>4,c[l++]=(15&r)<<4|i>>2,c[l++]=(3&i)<<6|63&a;return u})(e);return J(n,t)}return{base64:!0,data:e}},J=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,ee=String.fromCharCode(30);let te;function ne(e){return e.reduce(((e,t)=>e+t.length),0)}function re(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function ie(e){if(e)return function(e){for(var t in ie.prototype)e[t]=ie.prototype[t];return e}(e)}ie.prototype.on=ie.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},ie.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},ie.prototype.off=ie.prototype.removeListener=ie.prototype.removeAllListeners=ie.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},ie.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},ie.prototype.emitReserved=ie.prototype.emit,ie.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},ie.prototype.hasListeners=function(e){return!!this.listeners(e).length};const ae="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),oe="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function se(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})}const le=oe.setTimeout,ue=oe.clearTimeout;function ce(e,t){t.useNativeTimers?(e.setTimeoutFn=le.bind(oe),e.clearTimeoutFn=ue.bind(oe)):(e.setTimeoutFn=oe.setTimeout.bind(oe),e.clearTimeoutFn=oe.clearTimeout.bind(oe))}function fe(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class de extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class pe extends ie{constructor(e){super(),this.writable=!1,ce(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved("error",new de(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=X(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}class he extends pe{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const n=e.split(ee),r=[];for(let e=0;e<n.length;e++){const i=X(n[e],t);if(r.push(i),"error"===i.type)break}return r})(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach(((e,a)=>{q(e,!1,(e=>{r[a]=e,++i===n&&t(r.join(ee))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=fe()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let me=!1;try{me="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}const ge=me;function ye(){}class ve extends he{constructor(e){if(super(e),"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}class be extends ie{constructor(e,t,n){super(),this.createRequest=e,ce(this,n),this._opts=n,this._method=n.method||"GET",this._uri=t,this._data=void 0!==n.data?n.data:null,this._create()}_create(){var e;const t=se(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const n=this._xhr=this.createRequest(t);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this._opts.extraHeaders[e])}}catch(e){}if("POST"===this._method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{n.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this._opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this._opts.cookieJar)||void 0===e||e.parseCookies(n.getResponseHeader("set-cookie"))),4===n.readyState&&(200===n.status||1223===n.status?this._onLoad():this.setTimeoutFn((()=>{this._onError("number"==typeof n.status?n.status:0)}),0))},n.send(this._data)}catch(e){return void this.setTimeoutFn((()=>{this._onError(e)}),0)}"undefined"!=typeof document&&(this._index=be.requestsCount++,be.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=ye,e)try{this._xhr.abort()}catch(e){}"undefined"!=typeof document&&delete be.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}function we(){for(let e in be.requests)be.requests.hasOwnProperty(e)&&be.requests[e].abort()}be.requestsCount=0,be.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",we):"function"==typeof addEventListener&&addEventListener("onpagehide"in oe?"pagehide":"unload",we,!1));const xe=function(){const e=_e({xdomain:!1});return e&&null!==e.responseType}();function _e(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||ge))return new XMLHttpRequest}catch(e){}if(!t)try{return new(oe[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}const Ee="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class ke extends pe{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,n=Ee?{}:se(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;q(n,this.supportsBinary,(e=>{try{this.doWrite(n,e)}catch(e){}r&&ae((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=fe()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const Se=oe.WebSocket||oe.MozWebSocket,Ae={websocket:class extends ke{createSocket(e,t,n){return Ee?new Se(e,t,n):t?new Se(e,t):new Se(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends pe{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this._transport.ready.then((()=>{this._transport.createBidirectionalStream().then((e=>{const t=function(e,t){te||(te=new TextDecoder);const n=[];let r=0,i=-1,a=!1;return new TransformStream({transform(o,s){for(n.push(o);;){if(0===r){if(ne(n)<1)break;const e=re(n,1);a=128==(128&e[0]),i=127&e[0],r=i<126?3:126===i?1:2}else if(1===r){if(ne(n)<2)break;const e=re(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(ne(n)<8)break;const e=re(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),a=t.getUint32(0);if(a>Math.pow(2,21)-1){s.enqueue(z);break}i=a*Math.pow(2,32)+t.getUint32(4),r=3}else{if(ne(n)<i)break;const e=re(n,i);s.enqueue(X(a?e:te.decode(e),t)),r=0}if(0===i||i>e){s.enqueue(z);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=new TransformStream({transform(e,t){!function(e,t){V&&e.data instanceof Blob?e.data.arrayBuffer().then(Z).then(t):H&&(e.data instanceof ArrayBuffer||W(e.data))?t(Z(e.data)):q(e,!1,(e=>{Y||(Y=new TextEncoder),t(Y.encode(e))}))}(e,(n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{i=new Uint8Array(9);const e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&"string"!=typeof e.data&&(i[0]|=128),t.enqueue(i),t.enqueue(n)}))}});r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();const i=()=>{n.read().then((e=>{let{done:t,value:n}=e;t||(this.onPacket(n),i())})).catch((e=>{}))};i();const a={type:"open"};this.query.sid&&(a.data='{"sid":"'.concat(this.query.sid,'"}')),this._writer.write(a).then((()=>this.onOpen()))}))}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;this._writer.write(n).then((()=>{r&&ae((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this._transport)||void 0===e||e.close()}},polling:class extends ve{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=xe&&!t}request(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(e,{xd:this.xd},this.opts),new be(_e,this.uri(),e)}}},Ce=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Oe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Te(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=Ce.exec(e||""),a={},o=14;for(;o--;)a[Oe[o]]=i[o]||"";return-1!=n&&-1!=r&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=function(e,t){const n=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.slice(0,1)&&0!==t.length||n.splice(0,1),"/"==t.slice(-1)&&n.splice(n.length-1,1),n}(0,a.path),a.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,a.query),a}class Ne extends ie{constructor(e,t){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,e&&"object"==typeof e&&(t=e,e=null),e){const n=Te(e);t.hostname=n.host,t.secure="https"===n.protocol||"wss"===n.protocol,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=Te(t.host).host);ce(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach((e=>{const t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e})),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let e=0,r=n.length;e<r;e++){let r=n[e].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}(this.opts.query)),"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this._offlineEventListener,!1))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);const e=this.opts.rememberUpgrade&&Ne.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",(e=>this._onClose("transport close",e)))}onOpen(){this.readyState="open",Ne.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this._resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer),this._pingTimeoutTimer=this.setTimeoutFn((()=>{this._onClose("ping timeout")}),this._pingInterval+this._pingTimeout),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let n=0;n<this.writeBuffer.length;n++){const r=this.writeBuffer[n].data;if(r&&(e+="string"==typeof(t=r)?function(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(t):Math.ceil(1.33*(t.byteLength||t.size))),n>0&&e>this._maxPayload)return this.writeBuffer.slice(0,n);e+=2}var t;return this.writeBuffer}write(e,t,n){return this._sendPacket("message",e,t,n),this}send(e,t,n){return this._sendPacket("message",e,t,n),this}_sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():e()})):this.upgrading?n():e()),this}_onError(e){if(Ne.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this._beforeunloadEventListener,!1),removeEventListener("offline",this._offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0)}}Ne.protocol=4;class Re extends Ne{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;Ne.priorWebsocketSuccess=!1;const r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!n)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Ne.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{n||"closed"!==this.readyState&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function i(){n||(n=!0,u(),t.close(),t=null)}const a=e=>{const n=new Error("probe error: "+e);n.transport=t.name,i(),this.emitReserved("upgradeError",n)};function o(){a("transport closed")}function s(){a("socket closed")}function l(e){t&&e.name!==t.name&&i()}const u=()=>{t.removeListener("open",r),t.removeListener("error",a),t.removeListener("close",o),this.off("close",s),this.off("upgrading",l)};t.once("open",r),t.once("error",a),t.once("close",o),this.once("close",s),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{n||t.open()}),200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}class Pe extends Re{constructor(e){const t="object"==typeof e?e:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(!t.transports||t.transports&&"string"==typeof t.transports[0])&&(t.transports=(t.transports||["polling","websocket","webtransport"]).map((e=>Ae[e])).filter((e=>!!e))),super(e,t)}}var je=n(3529);class Ie extends pxt.auth.AuthClient{async onSignedIn(){await async function(e){try{h(_({type:"success",text:lf("Welcome {0}!",e),timeoutMs:5e3}))}catch(e){}}(await this.firstNameAsync())}async onSignedOut(){await Et(void 0)}onSignInFailed(){return Promise.resolve()}async onUserProfileChanged(){const e=await pxt.auth.getUserStateAsync();null!=e&&e.profile&&pxt.auth.generateUserProfilePicDataUrl(e.profile),await Et(e.profile)}onUserPreferencesChanged(e){return Promise.resolve()}onStateCleared(){return Promise.resolve()}async onProfileDeleted(e){}onApiError(e){return Promise.resolve()}async firstNameAsync(){const e=await pxt.auth.getUserStateAsync();return pxt.auth.firstName(null==e?void 0:e.profile)}}let Le;async function Me(){if(pxt.auth.hasIdentity())return Le||(Le=new Promise((async(e,t)=>{const n=new Ie;await n.initAsync(),await n.authCheckAsync(),await n.initialUserPreferencesAsync(),e(n)})),Le)}async function Be(){return await pxt.auth.getAuthTokenAsync()}var De=n(1781),Ue=n.n(De);function Fe(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++)e[r]^=t[r];return e}function ze(e){return new Promise(((t,n)=>{Ue().gzip(e,((e,r)=>{e?n(e):t(r)}))}))}function Ve(e){return new Promise(((t,n)=>{Ue().gunzip(e,((e,r)=>{e?n(e):t(r)}))}))}function He(e){try{const n=new URL(e||"");var t;n.searchParams.has("join")&&(e=null!==(t=n.searchParams.get("join"))&&void 0!==t?t:void 0)}catch{}if(e&&6===(e=e.toUpperCase().replace(/[^A-Z0-9]/g,"")).length)return e}function We(e){try{const n=new URL(e||"");var t;n.searchParams.has("host")&&(e=null!==(t=n.searchParams.get("host"))&&void 0!==t?t:void 0)}catch{}if(e)return pxt.Cloud.parseScriptId(e)}function qe(e){var t;if(e)return!pxt.BrowserUtils.isLocalHostDev()||e.startsWith("https:")||e.startsWith("data:")?e:(null===(t=pxt.appTarget)||void 0===t?void 0:t.appTheme.homeUrl)+e}var Ge=n(3705);let Ze,Ye,$e,Ke=e=>{var t;return Ze&&!e||(Ze=new pxt.MainPackage((null===(t=Ze)||void 0===t?void 0:t.host())||new et)),Ze};function Xe(e){let t,n=e._editorPkg;if(n)return n;e!=Ke()&&(t=Xe(Ke()));let r=new Qe(e,t);return e==Ke()&&(r.topPkg=r),e._editorPkg=r,r}pxt.react.getTilemapProject||(pxt.react.getTilemapProject=()=>(Ye||(Ye=new pxt.TilemapProject,Ye.loadPackage(Ke())),Ye));class Qe{constructor(e,t){this.ksPkg=e,this.topPkg=t,this.files={},this.id=void 0}getKsPkg(){return this.ksPkg}getPkgId(){return this.ksPkg?this.ksPkg.id:this.id}isTopLevel(){return this.ksPkg&&0==this.ksPkg.level}setFiles(e){this.files=e}getAllFiles(){return pxt.Util.mapMap(this.files,((e,t)=>t))}}function Je(){let e=pxt.appTarget.tsprj,t=pxt.U.clone(e.files);return t[pxt.CONFIG_NAME]=pxt.Package.stringifyConfig(e.config),t[pxt.MAIN_BLOCKS]="",t}class et{constructor(){this.githubPackageCache={}}readFile(e,t){let n=Xe(e);return pxt.U.lookup(n.files,t)}writeFile(e,t,n){Xe(e).files[t]=n}getHexInfoAsync(e){return pxt.hexloader.getHexInfoAsync(this,e)}async cacheStoreAsync(e,t){try{this.githubPackageCache[e]=t?JSON.parse(t):void 0}catch(e){}}async cacheGetAsync(e){return null}patchDependencies(e,t,n){if(!n)return!1;const r=pxt.github.parseRepoId(n);if(!r)return!1;for(const t of Object.keys(e.dependencies)){const i=e.dependencies[t],a=pxt.github.parseRepoId(i);if(a&&r.fullName==a.fullName)return pxt.semver.strcmp(r.tag,a.tag)<0&&(e.dependencies[t]=n),!0}return!1}downloadPackageAsync(e,t){let n,r=e.verProtocol();"github"!=r&&"pub"!=r||(n=this.githubPackageCache[e._verspec]);let i=Xe(e);return(n?Promise.resolve(n):e.commonDownloadAsync()).then((a=>{if(a)return"github"!=r&&"pub"!=r||n||(this.githubPackageCache[e._verspec]=pxt.Util.clone(a)),i.setFiles(a),Promise.resolve();if("empty"==r){if(0==Object.keys(i.files).length&&i.setFiles(Je()),t&&t.length){const n=Xe(e).files,r=JSON.parse(n[pxt.CONFIG_NAME]);t.forEach((e=>{this.addPackageToConfig(r,e)})),n[pxt.CONFIG_NAME]=pxt.Package.stringifyConfig(r)}return Promise.resolve()}if("docs"==r){let t=Je(),n=JSON.parse(t[pxt.CONFIG_NAME]);return e.verArgument().split(",").forEach((e=>{this.addPackageToConfig(n,e)})),n.yotta||(n.yotta={}),n.yotta.ignoreConflicts=!0,t[pxt.CONFIG_NAME]=pxt.Package.stringifyConfig(n),i.setFiles(t),Promise.resolve()}return"invalid"==r?(pxt.log("skipping invalid pkg ".concat(e.id)),Promise.resolve()):Promise.reject("Cannot download ".concat(e.version(),"; unknown protocol"))}))}addPackageToConfig(e,t){let n=/^([a-zA-Z0-9_-]+)(=(.+))?$/.exec(t);if(n){if(n[3]&&this.patchDependencies(e,n[1],n[3]))return!1;e.dependencies[n[1]]=n[3]||"*"}else Ge.warn("unknown package syntax ".concat(t));return!0}}function tt(e){let t={};if("server"!=e.mpRole)return t;const n=e.id;try{let e=window.localStorage.getItem(n);e&&(t=JSON.parse(e))}catch(e){}return t}async function nt(e){const t=await function(){let e=Ke().getTargetOptions();return Ke().getCompileOptionsAsync(e)}();e&&e(t);const n=await function(e,t){const n=Date.now();return pxt.debug("worker op: "+e),pxt.worker.getWorker(pxt.webConfig.workerjs).opAsync(e,t).then((t=>(pxt.appTarget.compile.switches.time&&(pxt.log("Worker perf: ".concat(e," ").concat(Date.now()-n,"ms")),t.times&&pxt.debug(t.times)),pxt.debug("worker op done: "+e),t)))}("compile",{options:t});return n.diagnostics&&n.diagnostics.length>0&&n.diagnostics.forEach((e=>{Ge.error(e.messageText)})),n}function rt(e){if($e||($e=new pxsim.SimulatorDriver(e)),e&&($e.container=e),$e.container)return $e}function it(e,t,n){var r;const i=rt(e),{fnArgs:a,parts:o,usedBuiltinParts:s}=n||{};let l=null===(r=pxt.appTarget.simulator)||void 0===r?void 0:r.boardDefinition,u={debug:!0,mute:t.mute,boardDefinition:l,parts:o,builtinParts:s,fnArgs:a,cdnUrl:pxt.webConfig.commitCdnUrl,localizedStrings:pxt.Util.getLocalizedStrings(),storedState:tt(t),single:!0,autofocus:!0,queryParameters:t.simQueryParams,mpRole:t.mpRole};return i.setRunOptions(u),u}async function at(e){var t,n;await async function(e){const t="server"===e.mpRole?"pub:".concat(e.id):"empty:clientprj",n=Ke();if((null==n?void 0:n._verspec)!==t||t.startsWith("pub:S")){const e=Ke(!0);e.host().cacheStoreAsync(t,void 0),e._verspec=t,await e.host().downloadPackageAsync(Ke(),[]),await Ke().installAllAsync()}try{"client"===e.mpRole&&(Xe(Ke()).files[pxt.MAIN_TS]="multiplayer.init()")}catch(e){Ge.error(lf("Cannot load extension: {0}",e))}}(e);let r=!1;const i=pxt.appTarget.versions.target;let a=await nt((t=>{var n;if(t.computeUsedParts=!0,t.breakpoints=!0,"client"==e.mpRole&&(t.fileSystem[pxt.MAIN_TS]="multiplayer.init()"),t.target.preferredEditor===pxt.PYTHON_PROJECT_NAME){t.target.preferredEditor=pxt.JAVASCRIPT_PROJECT_NAME,t.ast=!0;const e=function(e,t){const n={},r=Object.keys(t.fileSystem).sort().join(";");return n[r]||(n[r]=pxtc.getApiInfo(e,t.jres)),n[r]}(pxtc.compile(t).ast,t);t.apisInfo=e,t.target.preferredEditor=pxt.PYTHON_PROJECT_NAME}const a=null===(n=Ke().config.targetVersions)||void 0===n?void 0:n.target;if(a&&i&&pxt.semver.cmp(pxt.semver.parse(a),pxt.semver.parse(i))<0)for(const e of Object.keys(t.fileSystem))!pxt.Util.startsWith(e,"pxt_modules")&&pxt.Util.endsWith(e,".ts")&&(r=!0,t.fileSystem[e]=pxt.patching.patchJavaScript(a,t.fileSystem[e]))}));(null===(t=a.diagnostics)||void 0===t?void 0:t.length)>0&&r&&(pxt.log("Compile with upgrade rules failed, trying again with original code"),a=await nt((t=>{"client"===e.mpRole&&(t.fileSystem[pxt.MAIN_TS]="multiplayer.init()")}))),(null===(n=a.diagnostics)||void 0===n?void 0:n.length)>0&&(Ge.error("Diagnostics",a.diagnostics),h(w("init")),ht("compile-failed"));const o=pxtc.buildSimJsInfo(a);return o.parts=a.usedParts,o}var ot=n(3325).Buffer,st=n(3705);const lt="https://multiplayer.staging.pxt.io",ut=pxt.BrowserUtils.isLocalHostDev()?"https://multiplayer.staging.pxt.io":"arcade.makecode.com"===window.location.hostname?"https://mp.makecode.com":lt;class ct{constructor(){this.sock=void 0,this.screen=void 0,this.clientRole=void 0,this.gameOverReason=void 0,this.receivedJoinMessageInTimeHandler=void 0,this.paused=!1,this.recvMessageAsync=async e=>{if(e instanceof ArrayBuffer){const t=je.I.fromBuffer(ot.from(e));switch(t.readUInt16LE()){case dt.Binary.MessageType.CompressedScreen:return await this.recvCompressedScreenMessageAsync(t);case dt.Binary.MessageType.Input:return await this.recvInputMessageAsync(t);case dt.Binary.MessageType.Audio:return await this.recvAudioMessageAsync(t);case dt.Binary.MessageType.Icon:return await this.recvIconMessageAsync(t)}}else{if("string"!=typeof e)throw new Error("Unknown payload: ".concat(e));{const t=JSON.parse(e);switch(t.type){case"joined":return await this.recvJoinedMessageAsync(t);case"start-game":return await this.recvStartGameMessageAsync(t);case"presence":return await this.recvPresenceMessageAsync(t);case"reaction":return await this.recvReactionMessageAsync(t);case"player-joined":return await this.recvPlayerJoinedMessageAsync(t);case"player-left":return await this.recvPlayerLeftMessageAsync(t);case"game-over":return await this.recvGameOverMessageAsync(t);case"pause-game":return await this.recvPauseGameMessageAsync(t);case"resume-game":return await this.recvResumeGameMessageAsync(t)}}}},this.recvMessageWithJoinTimeout=async(e,t)=>{try{"string"==typeof e&&"joined"===JSON.parse(e).type&&(this.sock&&(this.sock.removeListener("message",this.receivedJoinMessageInTimeHandler),this.receivedJoinMessageInTimeHandler=void 0),t())}catch(e){st.error("Error processing message",e),pt(),t()}}}destroy(){try{var e;null===(e=this.sock)||void 0===e||e.close(),this.sock=void 0}catch(e){}}sendMessage(e){if(e instanceof ot){var t;null===(t=this.sock)||void 0===t||t.send(e,{},(()=>{}))}else{var n;const t=JSON.stringify(e);null===(n=this.sock)||void 0===n||n.send(t,{},(()=>{}))}}async connectAsync(e){return new Promise(((t,n)=>{const r=setTimeout((()=>{n("Timed out connecting to game server"),pt()}),2e4);this.sock=new Pe(ut,{transports:["websocket"],path:"/mp"}),this.sock.binaryType="arraybuffer",this.sock.on("open",(()=>{var n,i,a,o;pxt.debug("socket opened"),this.receivedJoinMessageInTimeHandler=async e=>{await this.recvMessageWithJoinTimeout(e,(()=>{clearTimeout(r),t()}))},null===(n=this.sock)||void 0===n||n.on("message",this.receivedJoinMessageInTimeHandler),null===(i=this.sock)||void 0===i||i.on("message",(async e=>{try{await this.recvMessageAsync(e)}catch(e){st.error("Error processing message",e),pt()}})),null===(a=this.sock)||void 0===a||a.on("close",(()=>{pxt.debug("socket disconnected"),bt(this.gameOverReason),clearTimeout(r),t()})),null===(o=this.sock)||void 0===o||o.on("error",(e=>{e&&pxt.log("Error sending message. "+e.toString())})),this.sendMessage({type:"connect",ticket:e,version:dt.VERSION})}))}))}async hostGameAsync(e){try{e=encodeURIComponent(e);const t=await Be(),n=await fetch("".concat(ut,"/api/game/host/").concat(e),{credentials:"include",headers:{Authorization:"mkcd "+t}});if(200!==n.status)return{success:!1,statusCode:n.status};const r=await n.json();if(null==r||!r.joinTicket)throw new Error("Game server did not return a join ticket");return await this.connectAsync(r.joinTicket),{...r,success:!0,statusCode:n.status}}catch(e){return{success:!1,statusCode:500}}}async joinGameAsync(e){try{e=encodeURIComponent(e);const t=await Be(),n=await fetch("".concat(ut,"/api/game/join/").concat(e),{credentials:"include",headers:{Authorization:"mkcd "+t}});if(200!==n.status)return{success:!1,statusCode:n.status};const r=await n.json();if(null==r||!r.joinTicket)throw new Error("Game server did not return a join ticket");return await this.connectAsync(r.joinTicket),{...r,success:!this.gameOverReason,statusCode:this.gameOverReason?"full"===this.gameOverReason?507:418:n.status}}catch(e){return{success:!1,statusCode:500}}}async startGameAsync(){this.sendMessage({type:"start-game"})}async leaveGameAsync(e){var t;this.gameOverReason=e,null===(t=this.sock)||void 0===t||t.close()}async sendReactionAsync(e){this.sendMessage({type:"reaction",index:e})}async recvJoinedMessageAsync(e){pxt.debug("Server said we're joined as \"".concat(e.role,'" in slot "').concat(e.slot,'"'));const{gameMode:t,gamePaused:n,shareCode:r,role:i}=e;this.clientRole=i,this.paused=n,await async function(e){try{const t="https://makecode.com/api/".concat(e),n=await fetch(t),r=await n.json(),i=r.name||lf("Untitled"),a=r.description||"",o="".concat(t,"/thumb");return h({type:"SET_GAME_METADATA",gameMetadata:{title:i,description:a,thumbnail:o}}),h({type:"SET_GAME_ID",gameId:e}),!0}catch(e){return pxt.log(e.toString()),h(w("init")),h(_({type:"error",text:lf("Something went wrong. Please try again."),timeoutMs:5e3})),!1}}(r)&&await vt(t,n,e.slot)}async recvStartGameMessageAsync(e){pxt.debug("Server said start game"),await vt("playing",this.paused)}async recvPresenceMessageAsync(e){pxt.debug("Server sent presence"),await async function(e){try{h((e=>({type:"SET_PRESENCE",presence:e}))(e))}catch(e){}}(e.presence)}async recvReactionMessageAsync(e){pxt.debug("Server sent reaction"),await async function(e,t){try{const n=v();h(((e,t,n)=>({type:"SET_REACTION",clientId:e,reactionId:t,index:n}))(e,n,t)),setTimeout((()=>{var t;(null===(t=p.reactions[e])||void 0===t?void 0:t.id)===n&&h((e=>({type:"CLEAR_REACTION",clientId:e}))(e))}),1e3)}catch(e){}}(e.clientId,e.index)}async recvPlayerJoinedMessageAsync(e){pxt.debug("Server sent player joined"),"host"===this.clientRole&&await this.sendCurrentScreenAsync(),await async function(e){try{const n=p.presence.users.find((t=>t.id===e));var t;n&&(h(_({type:"info",text:lf("Player {0} joined the game.",n.slot),timeoutMs:5e3})),null===(t=rt())||void 0===t||t.postMessage({type:"multiplayer",content:"Connection",slot:n.slot,connected:!0}))}catch(e){}}(e.clientId)}async recvPlayerLeftMessageAsync(e){pxt.debug("Server sent player joined"),await async function(e){try{const n=p.presence.users.find((t=>t.id===e));var t;n&&(h(_({type:"info",text:lf("Player {0} left the game.",n.slot),timeoutMs:5e3})),null===(t=rt())||void 0===t||t.postMessage({type:"multiplayer",content:"Connection",slot:n.slot,connected:!1}))}catch(e){}}(e.clientId)}async recvGameOverMessageAsync(e){pxt.debug("Server sent game over"),await async function(e){try{ht(e)}catch(e){}}(e.reason)}async recvPauseGameMessageAsync(e){pxt.debug("Server sent pause game"),this.paused=!0,await kt()}async recvResumeGameMessageAsync(e){pxt.debug("Server sent resume game"),this.paused=!1,await St()}async recvCompressedScreenMessageAsync(e){const{zippedData:t,isDelta:n}=dt.Binary.unpackCompressedScreenMessage(e),r=await Ve(t);n?this.screen&&Fe(this.screen,r):this.screen=r;const{image:i,palette:a}=this.getCurrentScreen();i&&this.postToSimFrame({type:"multiplayer",content:"Image",image:{data:i},palette:a})}async recvInputMessageAsync(e){const{button:t,state:n,slot:i}=dt.Binary.unpackInputMessage(e),o=function(e){switch(e){case r.Pressed:return"Pressed";case r.Released:return"Released";case r.Held:return"Held"}}(n);t<=a.None||t>=a.Menu||i<2||!o||this.postToSimFrame({type:"multiplayer",content:"Button",clientNumber:i-1,button:t,state:o})}async recvAudioMessageAsync(e){const{instruction:t,soundbuf:n}=dt.Binary.unpackAudioMessage(e);this.postToSimFrame({type:"multiplayer",content:"Audio",instruction:s(t),soundbuf:n})}async recvIconMessageAsync(e){const{iconType:t,iconSlot:n,iconBuffer:r}=dt.Binary.unpackIconMessage(e);if(t===i.Player&&n>=1&&n<=4);else if(!(t===i.Reaction&&n>=1&&n<=6))return;if(r){const e=await Ve(r),i=e.slice(0,48),a=e.slice(48);Ct(t,n,pxt.convertUint8BufferToPngUri(i,a))}else Ct(t,n)}postToSimFrame(e){var t;null===(t=rt())||void 0===t||t.postMessage(e)}async sendInputAsync(e,t){if(this.paused)return;const n=dt.Binary.packInputMessage(e,function(e){switch(e){case"Pressed":return r.Pressed;case"Released":return r.Released;case"Held":return r.Held}}(t));this.sendMessage(n)}async sendAudioAsync(e,t){if(this.paused)return;const n=dt.Binary.packAudioMessage(function(e){switch(e){case"muteallchannels":return o.MuteAllChannels;case"playinstructions":return o.PlayInstruction}}(e),ot.from(t));this.sendMessage(n)}async sendIconAsync(e,t,n,r){let i;if(n&&r){const e=ot.concat([n,r]);i=await ze(e)}const a=dt.Binary.packIconMessage(e,t,i);this.sendMessage(a)}async sendScreenUpdateAsync(e,t){const n=[];n.push(ot.from(e)),t&&n.push(ot.from(t));const r=ot.concat(n),i=!this.screen;i?this.screen=r:(Fe(r,this.screen),Fe(this.screen,r));{let e=!0;for(let t=0;t<r.length;t++)if(0!==r[t]){e=!1;break}if(!e||i){const e=await ze(r),t=dt.Binary.packCompressedScreenMessage(e,!i);this.sendMessage(t)}}}async sendCurrentScreenAsync(){if(this.screen){const e=await ze(this.screen),t=dt.Binary.packCompressedScreenMessage(e,!1);this.sendMessage(t)}}kickPlayer(e){const t={type:"kick-player",clientId:e};this.sendMessage(t)}gameOver(e){this.gameOverReason=e,pt()}getCurrentScreen(){return this.screen?{image:this.screen.slice(0,9608),palette:this.screen.length>=9656?this.screen.slice(9608,9656).map((e=>e)):void 0}:{image:void 0,palette:void 0}}async pauseGameAsync(){this.paused=!0,this.sendMessage({type:"pause-game"})}async resumeGameAsync(){this.paused=!1,this.sendMessage({type:"resume-game"})}}let ft,dt;function pt(){var e;null===(e=ft)||void 0===e||e.destroy(),ft=void 0}function ht(e){var t;null===(t=ft)||void 0===t||t.gameOver(e)}async function mt(e){if(!(e=We(e)))return h(_({type:"error",text:lf("Invalid share code or link. Please try again."),timeoutMs:5e3}));const t=_({type:"info",text:lf("Connecting..."),showSpinner:!0});try{h(w("connecting")),h(t);const n=await async function(e){return pt(),ft=new ct,await ft.hostGameAsync(e)}(e);if(pxt.debug(n),!n.success)throw new Error("host http response: ".concat(n.statusCode));h(_({type:"success",text:lf("Connected!"),timeoutMs:5e3})),h(b("host")),h(x(n)),h(w("connected"))}catch(e){pxt.log(e.toString()),h(_({type:"error",text:lf("Something went wrong. Please try again."),timeoutMs:5e3})),h(w("init"))}finally{h(E(t.toast.id))}}async function gt(e){if(!(e=He(e)))return h(_({type:"error",text:lf("Invalid join code. Please try again."),timeoutMs:5e3}));const t=_({type:"info",text:lf("Connecting..."),showSpinner:!0});try{h(w("connecting")),h(t);const n=await async function(e){return pt(),ft=new ct,await ft.joinGameAsync(e)}(e);if(pxt.debug(n),n.success)h(_({type:"success",text:lf("Connected!"),timeoutMs:5e3})),h(b("guest")),h(x(n)),h(w("connected"));else if(404===n.statusCode)bt("not-found"),h(w("init"));else{if(507!==n.statusCode)throw new Error("join http response: ".concat(n.statusCode));h(w("init"))}}catch(e){pxt.log(e.toString()),h(_({type:"error",text:lf("Something went wrong. Please try again."),timeoutMs:5e3})),h(w("init"))}finally{h(E(t.toast.id))}}async function yt(e){try{pxt.tickEvent("mp.leavegame"),await async function(e){var t;await(null===(t=ft)||void 0===t?void 0:t.leaveGameAsync(e)),pt()}(e),h({type:"CLEAR_GAME_INFO"}),h({type:"SET_GAME_METADATA",gameMetadata:void 0})}catch(e){}}async function vt(e,t,n){const{clientRole:r}=p;try{n&&h((e=>({type:"SET_PLAYER_SLOT",playerSlot:e}))(n)),h((e=>({type:"SET_GAME_MODE",gameMode:e}))(e)),"playing"===e&&(h({type:"CLEAR_MODAL"}),h(_({type:"info",text:lf("Game started!"),timeoutMs:5e3})),t&&"host"!==r&&kt())}catch(e){}}function bt(e){try{switch(h(w("init")),e){case"kicked":return pxt.tickEvent("mp.gotkicked"),h(_({type:"info",text:lf("Host kicked you from the game"),icon:"🤔",timeoutMs:5e3}));case"ended":return pxt.tickEvent("mp.gameover"),h(_({type:"info",text:lf("Game ended"),timeoutMs:5e3}));case"left":return pxt.tickEvent("mp.leftgame"),h(_({type:"info",text:lf("You left the game"),timeoutMs:5e3}));case"full":return pxt.tickEvent("mp.gamefull"),h(_({type:"warning",text:lf("Game is full"),timeoutMs:5e3,icon:"😤"}));case"rejected":return pxt.tickEvent("mp.gamerejected"),h(_({type:"error",text:lf("Game rejected your join request"),timeoutMs:5e3}));case"not-found":return pxt.tickEvent("mp.gamenotfound"),h(_({type:"warning",text:lf("Game not found"),timeoutMs:5e3,icon:"😟"}));case"compile-failed":return pxt.tickEvent("mp.compilefailed"),h(_({type:"error",text:lf("There was a problem loading this game"),timeoutMs:5e3,icon:"😟"}));default:return pxt.tickEvent("mp.disconnected"),h(_({type:"error",text:lf("Game disconnected"),timeoutMs:5e3}))}}catch(e){}}!function(e){let t;e.VERSION=2,function(e){let t;!function(e){e[e.Input=1]="Input",e[e.CompressedScreen=3]="CompressedScreen",e[e.Audio=4]="Audio",e[e.Icon=5]="Icon"}(t||(t={})),e.MessageType=t,e.packInputMessage=function(e,n){const r=new je.I;return r.writeUInt16LE(t.Input),r.writeUInt16LE(e),r.writeUInt8(n),r.toBuffer()},e.unpackInputMessage=function(e){return{button:e.readUInt16LE(),state:e.readUInt8(),slot:e.readUInt8()}},e.packCompressedScreenMessage=function(e,n){const r=new je.I;return r.writeUInt16LE(t.CompressedScreen),r.writeUInt8(n?1:0),r.writeBuffer(e),r.toBuffer()},e.unpackCompressedScreenMessage=function(e){const t=1===e.readUInt8();return{zippedData:e.readBuffer(),isDelta:t}},e.packAudioMessage=function(e,n){const r=new je.I;return r.writeUInt16LE(t.Audio),r.writeUInt8(e),n&&r.writeBuffer(n),r.toBuffer()},e.unpackAudioMessage=function(e){return{instruction:e.readUInt8(),soundbuf:e.remaining()?e.readBuffer():void 0}},e.packIconMessage=function(e,n,r){const i=new je.I;return i.writeUInt16LE(t.Icon),i.writeUInt8(e),i.writeUInt8(n),r&&i.writeBuffer(r),i.toBuffer()},e.unpackIconMessage=function(e){const t=e.readUInt8(),n=e.readUInt8();let r;return e.remaining()&&(r=e.readBuffer()),{iconType:t,iconSlot:n,iconBuffer:r}}}(t||(t=e.Binary||(e.Binary={})))}(dt||(dt={}));const wt=[{name:lf("smile"),emoji:"😃"},{name:lf("laugh"),emoji:"🤣"},{name:lf("surprise"),emoji:"😯"},{name:lf("cry"),emoji:"😫"},{name:lf("scared"),emoji:"😬"},{name:lf("angry"),emoji:"😠"}],xt=[];async function _t(e){try{if(!xt[e]||xt[e]+250<Date.now()){xt[e]=Date.now();const t=wt[e];pxt.tickEvent("mp.sendreaction",{reaction:t.name}),await async function(e){var t;await(null===(t=ft)||void 0===t?void 0:t.sendReactionAsync(e))}(e)}}catch(e){}}async function Et(e){try{h(e?(e=>({type:"SET_USER_PROFILE",profile:e}))(e):{type:"SET_USER_PROFILE",profile:void 0})}catch(e){}}async function kt(){const{clientRole:e}=p;try{var t;"host"===e&&(pxt.tickEvent("mp.host.pausegame"),await async function(){var e;await(null===(e=ft)||void 0===e?void 0:e.pauseGameAsync())}()),null===(t=rt())||void 0===t||t.resume(pxsim.SimulatorDebuggerCommand.Pause),h(A(!0))}catch(e){}}async function St(){const{clientRole:e,presence:t}=p;try{var n;if("host"===e&&(pxt.tickEvent("mp.host.resumegame"),await async function(){var e;await(null===(e=ft)||void 0===e?void 0:e.resumeGameAsync())}()),null===(n=rt())||void 0===n||n.resume(pxsim.SimulatorDebuggerCommand.Resume),h(A(!1)),"host"===e){for(let e=1;e<=4;e++){var r;const n=!!t.users.find((t=>t.slot===e));null===(r=rt())||void 0===r||r.postMessage({type:"multiplayer",content:"Connection",slot:e,connected:n})}await async function(){var e;await(null===(e=ft)||void 0===e?void 0:e.sendCurrentScreenAsync())}()}}catch(e){}}async function At(e){const{clientRole:t,gameState:n}=p,{gameMode:r}=null!=n?n:{};try{e||"host"!==t||"playing"!==r||await kt()}catch(e){}}async function Ct(e,t,n){try{const r=e===i.Player?C:O;h(r(t,n))}catch(e){}}function Ot(e){var t;return(0,d.jsxs)("div",{children:[(0,d.jsx)(L,{className:"tw-m-0 tw-px-8 ".concat(e.selected?"tw-font-bold":""),title:e.title,label:null!==(t=e.label)&&void 0!==t?t:e.title,onClick:e.onClick}),(0,d.jsx)("div",{className:"tw-mx-1 tw-border-b-2 tw-rounded-sm tw-ease-linear tw-duration-[75ms]",style:{borderColor:e.selected?"var(--primary-color)":"transparent"}})]})}function Tt(e){const{title:t,subtitle:n,image:r}=e,i=We(e.shareId),a=lf("Host a multiplayer session with '{0}'",pxt.U.rlf(t)),o=null!=r?r:"https://makecode.com/api/".concat(i,"/thumb"),s=lf("Preview image for game");return(0,d.jsx)(L,{className:"tw-p-0 sm:tw-pb-1 tw-flex tw-grow tw-shrink tw-basis-1 tw-max-w-[min(12em,30vw)] tw-rounded-md tw-border-solid tw-border-1 tw-border-gray-300 tw-overflow-hidden tw-drop-shadow-xl",onClick:async()=>{pxt.tickEvent("mp.hostbutton",{id:i,title:t}),await mt(i)},title:a,label:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("img",{className:"tw-w-full tw-aspect-[4/3]",src:o,alt:s}),(0,d.jsx)("div",{className:"tw-text-left tw-px-2 tw-pt-1 tw-hidden tw-truncate tw-leading-normal sm:tw-block",children:pxt.U.rlf(t)}),(0,d.jsx)("div",{className:"tw-text-left tw-px-2 tw-text-sm tw-text-gray-500 tw-truncate tw-leading-normal tw-hidden md:tw-block",children:pxt.U.rlf(n)})]})})}function Nt(){var t;const{state:n}=(0,e.useContext)(m),{targetConfig:r}=n,[i,a]=(0,e.useState)("join"),o=(0,e.useRef)(),s=(0,e.useRef)(),l=(0,e.useCallback)((e=>{o.current=e}),[]),u=(0,e.useCallback)((e=>{s.current=e}),[]),c=async()=>{var e;null!=o&&null!==(e=o.current)&&void 0!==e&&e.value&&await gt(o.current.value)},f=async()=>{var e;null!=s&&null!==(e=s.current)&&void 0!==e&&e.value&&await mt(s.current.value)},p=lf("Enter share code or link"),h=lf("How do I get a share code or link?"),g=lf("More games to play with your friends"),y=null==r||null===(t=r.multiplayer)||void 0===t?void 0:t.games,v=!(null==y||!y.length);return(0,d.jsxs)("div",{className:"tw-flex tw-flex-col tw-w-screen tw-h-screen tw-justify-center tw-items-center",children:[(0,d.jsx)("div",{className:"tw-bg-white tw-rounded-lg tw-drop-shadow-xl tw-min-h-[17rem] tw-min-w-[17rem] md:tw-min-w-[25rem]",children:(0,d.jsx)("div",{className:"tw-py-5 tw-px-10 ",children:(0,d.jsxs)("div",{className:"tw-pt-2",children:[(0,d.jsxs)("div",{className:"tw-flex tw-justify-center",children:[(0,d.jsx)(Ot,{title:lf("Join Game"),label:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"tw-hidden sm:tw-inline",children:lf("Join Game")}),(0,d.jsx)("div",{className:"sm:tw-hidden",children:lf("Join")})]}),selected:"join"===i,onClick:()=>a("join")}),(0,d.jsx)(Ot,{title:lf("Host Game"),label:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"tw-hidden sm:tw-inline",children:lf("Host Game")}),(0,d.jsx)("div",{className:"sm:tw-hidden",children:lf("Host")})]}),selected:"host"===i,onClick:()=>a("host")})]}),(0,d.jsxs)("div",{className:"tw-pt-2",children:["join"===i&&(0,d.jsxs)("div",{className:"tw-w-full tw-flex tw-flex-col tw-gap-4 tw-mt-2 tw-justify-center tw-items-center",children:[(0,d.jsx)("div",{className:"tw-w-full",children:(0,d.jsx)(B,{groupClassName:"tw-w-full tw-border-1 tw-h-full tw-rounded",inputClassName:"tw-text-center tw-p-2",title:lf("Join Code"),autoComplete:!1,handleInputRef:l,preserveValueOnBlur:!0,onEnterKey:c,placeholder:lf("Enter game code")})}),(0,d.jsx)("div",{children:(0,d.jsx)(L,{className:"primary tw-px-10",label:lf("Enter"),title:lf("Join Game"),onClick:c})}),(0,d.jsx)("div",{className:"tw-text-sm",children:(0,d.jsx)(D,{href:"/multiplayer#join-game",target:"_blank",children:lf("How do I get a game code?")})})]}),"host"===i&&(0,d.jsxs)("div",{className:"tw-w-full tw-flex tw-flex-col tw-gap-4 tw-mt-2 tw-justify-center tw-items-center",children:[(0,d.jsx)("div",{className:"tw-w-full",children:(0,d.jsx)(B,{groupClassName:"tw-w-full tw-border-1 tw-h-full tw-rounded",inputClassName:"tw-p-2",title:lf("Share Code"),autoComplete:!1,handleInputRef:u,preserveValueOnBlur:!0,onEnterKey:f,placeholder:p})}),(0,d.jsx)("div",{children:(0,d.jsx)(L,{className:"primary tw-px-10",label:lf("Launch"),title:lf("Host Game"),onClick:f})}),(0,d.jsx)("div",{className:"tw-text-sm",children:(0,d.jsx)(D,{href:"/multiplayer#host-game",target:"_blank",children:h})})]})]})]})})}),v&&(0,d.jsxs)("div",{className:"tw-max-w-[min(90vw,60em)] tw-p-2 tw-flex tw-flex-col tw-shrink",children:[(0,d.jsx)("div",{className:"tw-w-full tw-p-2",children:g}),(0,d.jsx)("div",{className:"tw-flex tw-justify-between tw-space-x-1 md:tw-space-x-4",children:y.map(((e,t)=>(0,d.jsx)(Tt,{shareId:e.shareId,title:pxt.Util.rlf("{id:game-title}".concat(e.title)),subtitle:pxt.Util.rlf("{id:game-subtitle}".concat(e.subtitle)),image:qe(e.image)},t)))})]})]})}let Rt;function Pt(){const{state:t}=(0,e.useContext)(m),{playerSlot:n,gameState:r,clientRole:i,gamePaused:a}=t,o=null==r?void 0:r.gameId,s=null==r?void 0:r.gameMode,l=(0,e.useRef)(null),u=["background-color=ED3636&button-stroke=8D2525","background-color=4E4EE9&button-stroke=3333A1","background-color=FF9A14&button-stroke=B0701A","background-color=4EB94E&button-stroke=245D24"][(n||0)-1],c="host"===i;(0,e.useEffect)((()=>{const e=e=>{const{data:t}=e,{type:n}=t;switch(n){case"status":const{state:e}=t;if("running"===e&&"guest"===i){const{image:e,palette:t}=function(){var e;return(null===(e=ft)||void 0===e?void 0:e.getCurrentScreen())||{image:void 0,palette:void 0}}();var r;e&&(null===(r=rt())||void 0===r||r.postMessage({type:"multiplayer",content:"Image",image:{data:e},palette:t}))}return;case"toplevelcodefinished":if("host"===i)for(const e of null==p?void 0:p.presence.users){var a;null===(a=rt())||void 0===a||a.postMessage({type:"multiplayer",content:"Connection",slot:e.slot,connected:!0})}return;case"multiplayer":const{origin:n,content:o}=t;return void("client"===n&&"Button"===o?(async e=>{const{button:t,state:n}=e;await async function(e,t){var n;await(null===(n=ft)||void 0===n?void 0:n.sendInputAsync(e,t))}(t,n)})(t):"server"===n&&"Image"===o?(async e=>{const{image:t,palette:n}=e,{data:r}=t;await async function(e,t){var n;await(null===(n=ft)||void 0===n?void 0:n.sendScreenUpdateAsync(e,t))}(r,n)})(t):"server"===n&&"Audio"===o?(async e=>{const{instruction:t,soundbuf:n}=e;await async function(e,t){var n;await(null===(n=ft)||void 0===n?void 0:n.sendAudioAsync(e,t))}(t,n)})(t):"server"===n&&"Icon"===o&&(async e=>{const{iconType:t,palette:n,icon:r,slot:i}=e,{data:a}=r||{};await async function(e,t,n,r){var i;await(null===(i=ft)||void 0===i?void 0:i.sendIconAsync(e,t,n,r))}(t,i,n,a)})(t))}};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)}),[i]);const f=()=>{let e;return e=c?{simQueryParams:u,mpRole:"server",id:o}:{simQueryParams:u,mpRole:"client"},e},h=async()=>(Rt=at(f()),await Rt);return(0,e.useEffect)((()=>{"playing"===s&&(async()=>{const e=f();Rt&&(e.builtJsInfo=await Rt),Rt=async function(e,t){var n,r;const i=t.builtJsInfo||await at(t),{js:a}=i;if(!a)return void Ge.error("Program failed to compile");const o=it(e,t,i),s=rt(e);return s.options.messageSimulators=null===(n=pxt.appTarget)||void 0===n||null===(r=n.simulator)||void 0===r?void 0:r.messageSimulators,s.options.onSimulatorCommand=e=>{"restart"===e.command&&(o.storedState=tt(t),s.run(a,o)),"setstate"==e.command&&e.stateKey&&function(e,t,n){if("server"!=e.mpRole)return;const r=e.id;let i=tt(e);null!=n?i[t]=n:delete i[t];try{window.localStorage.setItem(r,JSON.stringify(i))}catch(e){}}(t,e.stateKey,e.stateValue)},i.breakpoints&&s.setBreakpoints(i.breakpoints),s.run(a,o),i}(l.current,e),await Rt})()}),[s]),(0,e.useEffect)((()=>{"playing"!==s&&l.current&&async function(e,t){var n;it(e,t),null===(n=rt())||void 0===n||n.preload(1,!0)}(l.current,f())}),[i,n]),(0,e.useEffect)((()=>{c||h()}),[i]),(0,e.useEffect)((()=>{c&&o&&h()}),[i,o]),(0,e.useEffect)((()=>()=>{Rt=void 0})),(0,d.jsx)("div",{id:"sim-container",ref:l,className:"tw-grow tw-w-screen md:tw-w-[calc(100vw-6rem)]",style:{filter:a?"grayscale(70%) blur(1px)":"none",transition:"filter .25s"}})}var jt,It=Object.defineProperty,Lt=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,Dt=(e,t,n)=>t in e?It(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;(e=>{const t=class{constructor(e,n,r,i){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let o=[];for(let e=0;e<this.size;e++)o.push(!1);for(let e=0;e<this.size;e++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==i){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(i=t,e=n),this.applyMask(t)}}a(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}static encodeText(n,r){const i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}static encodeBinary(n,r){const i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}static encodeSegments(e,n){let i,o,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,f=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(t.MIN_VERSION<=l&&l<=u&&u<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");for(i=l;;i++){const r=8*t.getNumDataCodewords(i,n),a=s.getTotalBits(e,i);if(a<=r){o=a;break}if(i>=u)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])f&&o<=8*t.getNumDataCodewords(i,e)&&(n=e);let d=[];for(const t of e){r(t.mode.modeBits,4,d),r(t.numChars,t.mode.numCharCountBits(i),d);for(const e of t.getData())d.push(e)}a(d.length==o);const p=8*t.getNumDataCodewords(i,n);a(d.length<=p),r(0,Math.min(4,p-d.length),d),r(0,(8-d.length%8)%8,d),a(d.length%8==0);for(let e=236;d.length<p;e^=253)r(e,8,d);let h=[];for(;8*h.length<d.length;)h.push(0);return d.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(i,n,h,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);a(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,i(r,e));this.setFunctionModule(8,7,i(r,6)),this.setFunctionModule(8,8,i(r,7)),this.setFunctionModule(7,8,i(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,i(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,i(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,i(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let e=0;e<18;e++){const n=i(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a<this.size&&0<=o&&o<this.size&&this.setFunctionModule(a,o,2!=i&&4!=i)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const i=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],o=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),l=i-s%i,u=Math.floor(s/i);let c=[];const f=t.reedSolomonComputeDivisor(o);for(let n=0,r=0;n<i;n++){let i=e.slice(r,r+u-o+(n<l?0:1));r+=i.length;const a=t.reedSolomonComputeRemainder(i,f);n<l&&i.push(0),c.push(i.concat(a))}let d=[];for(let e=0;e<c[0].length;e++)c.forEach(((t,n)=>{(e!=u-o||n>=l)&&d.push(t[e])}));return a(d.length==s),d}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let a=0;a<2;a++){const o=t-a,s=0==(t+1&2)?this.size-1-r:r;!this.isFunction[s][o]&&n<8*e.length&&(this.modules[s][o]=i(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[n][o]==r?(i++,5==i?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][o],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[o][n]==r?(i++,5==i?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[o][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const i=this.modules[n][r];i==this.modules[n][r+1]&&i==this.modules[n+1][r]&&i==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,i=Math.ceil(Math.abs(20*n-10*r)/r)-1;return a(0<=i&&i<=9),e+=i*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return a(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let i=0;i<e;i++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const i of e){const e=i^r.shift();r.push(0),n.forEach(((n,i)=>r[i]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return a(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function i(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const o=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new o(o.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!o.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const i=Math.min(e.length-n,3);r(parseInt(e.substr(n,i),10),3*i+1,t),n+=i}return new o(o.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!o.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let i=45*o.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));i+=o.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(i,11,n)}return t<e.length&&r(o.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new o(o.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:o.isNumeric(e)?[o.makeNumeric(e)]:o.isAlphanumeric(e)?[o.makeAlphanumeric(e)]:[o.makeBytes(o.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new o(o.Mode.ECI,0,t)}static isNumeric(e){return o.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return o.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let s=o;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(jt||(jt={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(jt||(jt={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(jt||(jt={}));var Ut=jt,Ft={L:Ut.QrCode.Ecc.LOW,M:Ut.QrCode.Ecc.MEDIUM,Q:Ut.QrCode.Ecc.QUARTILE,H:Ut.QrCode.Ecc.HIGH},zt=128,Vt="L",Ht="#FFFFFF",Wt="#000000",qt=!1;function Gt(t){const n=t,{value:r,size:i=zt,level:a=Vt,bgColor:o=Ht,fgColor:s=Wt,includeMargin:l=qt,imageSettings:u}=n,c=((e,t)=>{var n={};for(var r in e)Mt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Lt)for(var r of Lt(e))t.indexOf(r)<0&&Bt.call(e,r)&&(n[r]=e[r]);return n})(n,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let f=Ut.QrCode.encodeText(r,Ft[a]).getModules();const d=l?4:0,p=f.length+2*d,h=function(e,t,n,r){if(null==r)return null;const i=n?4:0,a=e.length+2*i,o=Math.floor(.1*t),s=a/t,l=(r.width||o)*s,u=(r.height||o)*s,c=null==r.x?e.length/2-l/2:r.x*s,f=null==r.y?e.length/2-u/2:r.y*s;let d=null;if(r.excavate){let e=Math.floor(c),t=Math.floor(f);d={x:e,y:t,w:Math.ceil(l+c-e),h:Math.ceil(u+f-t)}}return{x:c,y:f,h:u,w:l,excavation:d}}(f,i,l,u);let m=null;null!=u&&null!=h&&(null!=h.excavation&&(f=function(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}(f,h.excavation)),m=e.createElement("image",{xlinkHref:u.src,height:h.h,width:h.w,x:h.x+d,y:h.y+d,preserveAspectRatio:"none"}));const g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=[];return e.forEach((function(e,r){let i=null;e.forEach((function(a,o){if(!a&&null!==i)return n.push("M".concat(i+t," ").concat(r+t,"h").concat(o-i,"v1H").concat(i+t,"z")),void(i=null);if(o!==e.length-1)a&&null===i&&(i=o);else{if(!a)return;null===i?n.push("M".concat(o+t,",").concat(r+t," h1v1H").concat(o+t,"z")):n.push("M".concat(i+t,",").concat(r+t," h").concat(o+1-i,"v1H").concat(i+t,"z"))}}))})),n.join("")}(f,d);return e.createElement("svg",((e,t)=>{for(var n in t||(t={}))Mt.call(t,n)&&Dt(e,n,t[n]);if(Lt)for(var n of Lt(t))Bt.call(t,n)&&Dt(e,n,t[n]);return e})({height:i,width:i,viewBox:"0 0 ".concat(p," ").concat(p)},c),e.createElement("path",{fill:o,d:"M0,0 h".concat(p,"v").concat(p,"H0z"),shapeRendering:"crispEdges"}),e.createElement("path",{fill:s,d:g,shapeRendering:"crispEdges"}),m)}!function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}}();var Zt={prefix:"far",iconName:"copy",icon:[512,512,[],"f0c5","M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"]},Yt={prefix:"far",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M175 175C184.4 165.7 199.6 165.7 208.1 175L255.1 222.1L303 175C312.4 165.7 327.6 165.7 336.1 175C346.3 184.4 346.3 199.6 336.1 208.1L289.9 255.1L336.1 303C346.3 312.4 346.3 327.6 336.1 336.1C327.6 346.3 312.4 346.3 303 336.1L255.1 289.9L208.1 336.1C199.6 346.3 184.4 346.3 175 336.1C165.7 327.6 165.7 312.4 175 303L222.1 255.1L175 208.1C165.7 199.6 165.7 184.4 175 175V175zM512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"]},$t={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]},Kt={prefix:"fas",iconName:"check",icon:[512,512,[10003,10004],"f00c","M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},Xt=n(3705);function Qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qt(Object(n),!0).forEach((function(t){nn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function en(e){return(en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}(e,t)||on(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function an(e){return function(e){if(Array.isArray(e))return sn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||on(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function on(e,t){if(e){if("string"==typeof e)return sn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sn(e,t):void 0}}function sn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ln=function(){},un={},cn={},fn=null,dn={mark:ln,measure:ln};try{"undefined"!=typeof window&&(un=window),"undefined"!=typeof document&&(cn=document),"undefined"!=typeof MutationObserver&&(fn=MutationObserver),"undefined"!=typeof performance&&(dn=performance)}catch(e){}var pn,hn,mn,gn,yn,vn=(un.navigator||{}).userAgent,bn=void 0===vn?"":vn,wn=un,xn=cn,_n=fn,En=dn,kn=(wn.document,!!xn.documentElement&&!!xn.head&&"function"==typeof xn.addEventListener&&"function"==typeof xn.createElement),Sn=~bn.indexOf("MSIE")||~bn.indexOf("Trident/"),An="___FONT_AWESOME___",Cn="svg-inline--fa",On="data-fa-i2svg",Tn="data-fa-pseudo-element",Nn="data-prefix",Rn="data-icon",Pn="fontawesome-i2svg",jn=["HTML","HEAD","STYLE","SCRIPT"],In=function(){try{return!0}catch(e){return!1}}(),Ln="classic",Mn="sharp",Bn=[Ln,Mn];function Dn(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[Ln]}})}var Un=Dn((nn(pn={},Ln,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),nn(pn,Mn,{fa:"solid",fass:"solid","fa-solid":"solid"}),pn)),Fn=Dn((nn(hn={},Ln,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),nn(hn,Mn,{solid:"fass"}),hn)),zn=Dn((nn(mn={},Ln,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),nn(mn,Mn,{fass:"fa-solid"}),mn)),Vn=Dn((nn(gn={},Ln,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),nn(gn,Mn,{"fa-solid":"fass"}),gn)),Hn=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,Wn="fa-layers-text",qn=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Gn=Dn((nn(yn={},Ln,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),nn(yn,Mn,{900:"fass"}),yn)),Zn=[1,2,3,4,5,6,7,8,9,10],Yn=Zn.concat([11,12,13,14,15,16,17,18,19,20]),$n=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Kn="duotone-group",Xn="swap-opacity",Qn="primary",Jn="secondary",er=new Set;Object.keys(Fn[Ln]).map(er.add.bind(er)),Object.keys(Fn[Mn]).map(er.add.bind(er));var tr=[].concat(Bn,an(er),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Kn,Xn,Qn,Jn]).concat(Zn.map((function(e){return"".concat(e,"x")}))).concat(Yn.map((function(e){return"w-".concat(e)}))),nr=wn.FontAwesomeConfig||{};xn&&"function"==typeof xn.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=rn(e,2),n=t[0],r=t[1],i=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=xn.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=i&&(nr[r]=i)}));var rr={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:Cn,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};nr.familyPrefix&&(nr.cssPrefix=nr.familyPrefix);var ir=Jt(Jt({},rr),nr);ir.autoReplaceSvg||(ir.observeMutations=!1);var ar={};Object.keys(rr).forEach((function(e){Object.defineProperty(ar,e,{enumerable:!0,set:function(t){ir[e]=t,or.forEach((function(e){return e(ar)}))},get:function(){return ir[e]}})})),Object.defineProperty(ar,"familyPrefix",{enumerable:!0,set:function(e){ir.cssPrefix=e,or.forEach((function(e){return e(ar)}))},get:function(){return ir.cssPrefix}}),wn.FontAwesomeConfig=ar;var or=[],sr=16,lr={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function ur(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function cr(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function fr(e){return e.classList?cr(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function dr(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function pr(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")}),"")}function hr(e){return e.size!==lr.size||e.x!==lr.x||e.y!==lr.y||e.rotate!==lr.rotate||e.flipX||e.flipY}function mr(){var e="fa",t=Cn,n=ar.cssPrefix,r=ar.replacementClass,i=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(n!==e||r!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var gr=!1;function yr(){ar.autoAddCss&&!gr&&(function(e){if(e&&kn){var t=xn.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=xn.head.childNodes,r=null,i=n.length-1;i>-1;i--){var a=n[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=a)}xn.head.insertBefore(t,r)}}(mr()),gr=!0)}var vr={mixout:function(){return{dom:{css:mr,insertCss:yr}}},hooks:function(){return{beforeDOMElementCreation:function(){yr()},beforeI2svg:function(){yr()}}}},br=wn||{};br[An]||(br[An]={}),br[An].styles||(br[An].styles={}),br[An].hooks||(br[An].hooks={}),br[An].shims||(br[An].shims=[]);var wr=br[An],xr=[],_r=!1;function Er(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,i=e.children,a=void 0===i?[]:i;return"string"==typeof e?dr(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(dr(e[n]),'" ')}),"").trim()}(r),">").concat(a.map(Er).join(""),"</").concat(t,">")}function kr(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}kn&&((_r=(xn.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(xn.readyState))||xn.addEventListener("DOMContentLoaded",(function e(){xn.removeEventListener("DOMContentLoaded",e),_r=1,xr.map((function(e){return e()}))})));var Sr=function(e,t,n,r){var i,a,o,s=Object.keys(e),l=s.length,u=void 0!==r?function(e,t){return function(n,r,i,a){return e.call(t,n,r,i,a)}}(t,r):t;for(void 0===n?(i=1,o=e[s[0]]):(i=0,o=n);i<l;i++)o=u(o,e[a=s[i]],a,e);return o};function Ar(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&i)<<10)+(1023&a)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function Cr(e){return Object.keys(e).reduce((function(t,n){var r=e[n];return r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function Or(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==n&&n,i=Cr(t);"function"!=typeof wr.hooks.addPack||r?wr.styles[e]=Jt(Jt({},wr.styles[e]||{}),i):wr.hooks.addPack(e,Cr(t)),"fas"===e&&Or("fa",t)}var Tr,Nr,Rr,Pr=wr.styles,jr=wr.shims,Ir=(nn(Tr={},Ln,Object.values(zn[Ln])),nn(Tr,Mn,Object.values(zn[Mn])),Tr),Lr=null,Mr={},Br={},Dr={},Ur={},Fr={},zr=(nn(Nr={},Ln,Object.keys(Un[Ln])),nn(Nr,Mn,Object.keys(Un[Mn])),Nr);function Vr(e,t){var n,r=t.split("-"),i=r[0],a=r.slice(1).join("-");return i!==e||""===a||(n=a,~tr.indexOf(n))?null:a}var Hr=function(){var e=function(e){return Sr(Pr,(function(t,n,r){return t[r]=Sr(n,e,{}),t}),{})};Mr=e((function(e,t,n){(t[3]&&(e[t[3]]=n),t[2])&&t[2].filter((function(e){return"number"==typeof e})).forEach((function(t){e[t.toString(16)]=n}));return e})),Br=e((function(e,t,n){(e[n]=n,t[2])&&t[2].filter((function(e){return"string"==typeof e})).forEach((function(t){e[t]=n}));return e})),Fr=e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in Pr||ar.autoFetchSvg,n=Sr(jr,(function(e,n){var r=n[0],i=n[1],a=n[2];return"far"!==i||t||(i="fas"),"string"==typeof r&&(e.names[r]={prefix:i,iconName:a}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:a}),e}),{names:{},unicodes:{}});Dr=n.names,Ur=n.unicodes,Lr=Yr(ar.styleDefault,{family:ar.familyDefault})};function Wr(e,t){return(Mr[e]||{})[t]}function qr(e,t){return(Fr[e]||{})[t]}function Gr(e){return Dr[e]||{prefix:null,iconName:null}}function Zr(){return Lr}or.push((function(e){Lr=Yr(e.styleDefault,{family:ar.familyDefault})})),Hr();function Yr(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===t?Ln:t,r=Un[n][e],i=Fn[n][e]||Fn[n][r],a=e in wr.styles?e:null;return i||a||null}var $r=(nn(Rr={},Ln,Object.keys(zn[Ln])),nn(Rr,Mn,Object.keys(zn[Mn])),Rr);function Kr(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,r=void 0!==n&&n,i=(nn(t={},Ln,"".concat(ar.cssPrefix,"-").concat(Ln)),nn(t,Mn,"".concat(ar.cssPrefix,"-").concat(Mn)),t),a=null,o=Ln;(e.includes(i[Ln])||e.some((function(e){return $r[Ln].includes(e)})))&&(o=Ln),(e.includes(i[Mn])||e.some((function(e){return $r[Mn].includes(e)})))&&(o=Mn);var s=e.reduce((function(e,t){var n=Vr(ar.cssPrefix,t);if(Pr[t]?(t=Ir[o].includes(t)?Vn[o][t]:t,a=t,e.prefix=t):zr[o].indexOf(t)>-1?(a=t,e.prefix=Yr(t,{family:o})):n?e.iconName=n:t!==ar.replacementClass&&t!==i[Ln]&&t!==i[Mn]&&e.rest.push(t),!r&&e.prefix&&e.iconName){var s="fa"===a?Gr(e.iconName):{},l=qr(e.prefix,e.iconName);s.prefix&&(a=null),e.iconName=s.iconName||l||e.iconName,e.prefix=s.prefix||e.prefix,"far"!==e.prefix||Pr.far||!Pr.fas||ar.autoFetchSvg||(e.prefix="fas")}return e}),{prefix:null,iconName:null,rest:[]});return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),s.prefix||o!==Mn||!Pr.fass&&!ar.autoFetchSvg||(s.prefix="fass",s.iconName=qr(s.prefix,s.iconName)||s.iconName),"fa"!==s.prefix&&"fa"!==a||(s.prefix=Zr()||"fas"),s}var Xr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n;return t=e,(n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach((function(t){e.definitions[t]=Jt(Jt({},e.definitions[t]||{}),i[t]),Or(t,i[t]);var n=zn[Ln][t];n&&Or(n,i[t]),Hr()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((function(t){var r=n[t],i=r.prefix,a=r.iconName,o=r.icon,s=o[2];e[i]||(e[i]={}),s.length>0&&s.forEach((function(t){"string"==typeof t&&(e[i][t]=o)})),e[i][a]=o})),e}}])&&tn(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Qr=[],Jr={},ei={},ti=Object.keys(ei);function ni(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(Jr[e]||[]).forEach((function(e){t=e.apply(null,[t].concat(r))})),t}function ri(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Jr[e]||[]).forEach((function(e){e.apply(null,n)}))}function ii(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return ei[e]?ei[e].apply(null,t):void 0}function ai(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Zr();if(t)return t=qr(n,t)||t,kr(oi.definitions,n,t)||kr(wr.styles,n,t)}var oi=new Xr,si={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return kn?(ri("beforeI2svg",e),ii("pseudoElements2svg",e),ii("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.autoReplaceSvgRoot;!1===ar.autoReplaceSvg&&(ar.autoReplaceSvg=!0),ar.observeMutations=!0,e=function(){ui({autoReplaceSvgRoot:n}),ri("watch",t)},kn&&(_r?setTimeout(e,0):xr.push(e))}},li={noAuto:function(){ar.autoReplaceSvg=!1,ar.observeMutations=!1,ri("noAuto")},config:ar,dom:si,parse:{icon:function(e){if(null===e)return null;if("object"===en(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:qr(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=Yr(e[0]);return{prefix:n,iconName:qr(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(ar.cssPrefix,"-"))>-1||e.match(Hn))){var r=Kr(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||Zr(),iconName:qr(r.prefix,r.iconName)||r.iconName}}if("string"==typeof e){var i=Zr();return{prefix:i,iconName:qr(i,e)||e}}}},library:oi,findIconDefinition:ai,toHtml:Er},ui=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?xn:e;(Object.keys(wr.styles).length>0||ar.autoFetchSvg)&&kn&&ar.autoReplaceSvg&&li.dom.i2svg({node:t})};function ci(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return Er(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(kn){var t=xn.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function fi(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,a=e.iconName,o=e.transform,s=e.symbol,l=e.title,u=e.maskId,c=e.titleId,f=e.extra,d=e.watchable,p=void 0!==d&&d,h=r.found?r:n,m=h.width,g=h.height,y="fak"===i,v=[ar.replacementClass,a?"".concat(ar.cssPrefix,"-").concat(a):""].filter((function(e){return-1===f.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(f.classes).join(" "),b={children:[],attributes:Jt(Jt({},f.attributes),{},{"data-prefix":i,"data-icon":a,class:v,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(g)})},w=y&&!~f.classes.indexOf("fa-fw")?{width:"".concat(m/g*16*.0625,"em")}:{};p&&(b.attributes[On]=""),l&&(b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(c||ur())},children:[l]}),delete b.attributes.title);var x=Jt(Jt({},b),{},{prefix:i,iconName:a,main:n,mask:r,maskId:u,transform:o,symbol:s,styles:Jt(Jt({},w),f.styles)}),_=r.found&&n.found?ii("generateAbstractMask",x)||{children:[],attributes:{}}:ii("generateAbstractIcon",x)||{children:[],attributes:{}},E=_.children,k=_.attributes;return x.children=E,x.attributes=k,s?function(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,a=e.symbol,o=!0===a?"".concat(t,"-").concat(ar.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Jt(Jt({},i),{},{id:o}),children:r}]}]}(x):function(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(hr(o)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};i.style=pr(Jt(Jt({},a),{},{"transform-origin":"".concat(s.x+o.x/16,"em ").concat(s.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(x)}function di(e){var t=e.content,n=e.width,r=e.height,i=e.transform,a=e.title,o=e.extra,s=e.watchable,l=void 0!==s&&s,u=Jt(Jt(Jt({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});l&&(u[On]="");var c=Jt({},o.styles);hr(i)&&(c.transform=function(e){var t=e.transform,n=e.width,r=void 0===n?16:n,i=e.height,a=void 0===i?16:i,o=e.startCentered,s=void 0!==o&&o,l="";return l+=s&&Sn?"translate(".concat(t.x/sr-r/2,"em, ").concat(t.y/sr-a/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/sr,"em), calc(-50% + ").concat(t.y/sr,"em)) "):"translate(".concat(t.x/sr,"em, ").concat(t.y/sr,"em) "),(l+="scale(".concat(t.size/sr*(t.flipX?-1:1),", ").concat(t.size/sr*(t.flipY?-1:1),") "))+"rotate(".concat(t.rotate,"deg) ")}({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);var f=pr(c);f.length>0&&(u.style=f);var d=[];return d.push({tag:"span",attributes:u,children:[t]}),a&&d.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),d}var pi=wr.styles;function hi(e){var t=e[0],n=e[1],r=rn(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(ar.cssPrefix,"-").concat(Kn)},children:[{tag:"path",attributes:{class:"".concat(ar.cssPrefix,"-").concat(Jn),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ar.cssPrefix,"-").concat(Qn),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var mi={found:!1,width:512,height:512};function gi(e,t){var n=t;return"fa"===t&&null!==ar.styleDefault&&(t=Zr()),new Promise((function(r,i){if(ii("missingIconAbstract"),"fa"===n){var a=Gr(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&pi[t]&&pi[t][e])return r(hi(pi[t][e]));!function(e,t){In||ar.showMissingIcons||!e||Xt.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(Jt(Jt({},mi),{},{icon:ar.showMissingIcons&&e&&ii("missingIconAbstract")||{}}))}))}var yi=function(){},vi=ar.measurePerformance&&En&&En.mark&&En.measure?En:{mark:yi,measure:yi},bi='FA "6.2.0"',wi=function(e){vi.mark("".concat(bi," ").concat(e," ends")),vi.measure("".concat(bi," ").concat(e),"".concat(bi," ").concat(e," begins"),"".concat(bi," ").concat(e," ends"))},xi=function(e){return vi.mark("".concat(bi," ").concat(e," begins")),function(){return wi(e)}},_i=function(){};function Ei(e){return"string"==typeof(e.getAttribute?e.getAttribute(On):null)}function ki(e){return xn.createElementNS("http://www.w3.org/2000/svg",e)}function Si(e){return xn.createElement(e)}function Ai(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===t?"svg"===e.tag?ki:Si:t;if("string"==typeof e)return xn.createTextNode(e);var r=n(e.tag);return Object.keys(e.attributes||[]).forEach((function(t){r.setAttribute(t,e.attributes[t])})),(e.children||[]).forEach((function(e){r.appendChild(Ai(e,{ceFn:n}))})),r}var Ci={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(Ai(e),t)})),null===t.getAttribute(On)&&ar.keepOriginalSource){var n=xn.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~fr(t).indexOf(ar.replacementClass))return Ci.replace(e);var r=new RegExp("".concat(ar.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce((function(e,t){return t===ar.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var a=n.map((function(e){return Er(e)})).join("\n");t.setAttribute(On,""),t.innerHTML=a}};function Oi(e){e()}function Ti(e,t){var n="function"==typeof t?t:_i;if(0===e.length)n();else{var r=Oi;"async"===ar.mutateApproach&&(r=wn.requestAnimationFrame||Oi),r((function(){var t=!0===ar.autoReplaceSvg?Ci.replace:Ci[ar.autoReplaceSvg]||Ci.replace,r=xi("mutate");e.map(t),r(),n()}))}}var Ni=!1;function Ri(){Ni=!0}function Pi(){Ni=!1}var ji=null;function Ii(e){if(_n&&ar.observeMutations){var t=e.treeCallback,n=void 0===t?_i:t,r=e.nodeCallback,i=void 0===r?_i:r,a=e.pseudoElementsCallback,o=void 0===a?_i:a,s=e.observeMutationsRoot,l=void 0===s?xn:s;ji=new _n((function(e){if(!Ni){var t=Zr();cr(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!Ei(e.addedNodes[0])&&(ar.searchPseudoElements&&o(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&ar.searchPseudoElements&&o(e.target.parentNode),"attributes"===e.type&&Ei(e.target)&&~$n.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(Nn):null,n=e.getAttribute?e.getAttribute(Rn):null;return t&&n}(e.target)){var r=Kr(fr(e.target)),a=r.prefix,s=r.iconName;e.target.setAttribute(Nn,a||t),s&&e.target.setAttribute(Rn,s)}else(l=e.target)&&l.classList&&l.classList.contains&&l.classList.contains(ar.replacementClass)&&i(e.target);var l}))}})),kn&&ji.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Li(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"",i=Kr(fr(e));return i.prefix||(i.prefix=Zr()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=function(e,t){return(Br[e]||{})[t]}(i.prefix,e.innerText)||Wr(i.prefix,Ar(e.innerText))),!i.iconName&&ar.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function Mi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=Li(e),r=n.iconName,i=n.prefix,a=n.rest,o=function(e){var t=cr(e.attributes).reduce((function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e}),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return ar.autoA11y&&(n?t["aria-labelledby"]="".concat(ar.replacementClass,"-title-").concat(r||ur()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),s=ni("parseNodeAttributes",{},e),l=t.styleParser?function(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce((function(e,t){var n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e}),{})),n}(e):[];return Jt({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:lr,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:l,attributes:o}},s)}var Bi=wr.styles;function Di(e){var t="nest"===ar.autoReplaceSvg?Mi(e,{styleParser:!1}):Mi(e);return~t.extra.classes.indexOf(Wn)?ii("generateLayersText",e,t):ii("generateSvgReplacementMutation",e,t)}var Ui=new Set;function Fi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!kn)return Promise.resolve();var n=xn.documentElement.classList,r=function(e){return n.add("".concat(Pn,"-").concat(e))},i=function(e){return n.remove("".concat(Pn,"-").concat(e))},a=ar.autoFetchSvg?Ui:Bn.map((function(e){return"fa-".concat(e)})).concat(Object.keys(Bi));a.includes("fa")||a.push("fa");var o=[".".concat(Wn,":not([").concat(On,"])")].concat(a.map((function(e){return".".concat(e,":not([").concat(On,"])")}))).join(", ");if(0===o.length)return Promise.resolve();var s=[];try{s=cr(e.querySelectorAll(o))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");var l=xi("onTree"),u=s.reduce((function(e,t){try{var n=Di(t);n&&e.push(n)}catch(e){In||"MissingIcon"===e.name&&Xt.error(e)}return e}),[]);return new Promise((function(e,n){Promise.all(u).then((function(n){Ti(n,(function(){r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((function(e){l(),n(e)}))}))}function zi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Di(e).then((function(e){e&&Ti([e],t)}))}Bn.map((function(e){Ui.add("fa-".concat(e))})),Object.keys(Un[Ln]).map(Ui.add.bind(Ui)),Object.keys(Un[Mn]).map(Ui.add.bind(Ui)),Ui=an(Ui);var Vi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?lr:n,i=t.symbol,a=void 0!==i&&i,o=t.mask,s=void 0===o?null:o,l=t.maskId,u=void 0===l?null:l,c=t.title,f=void 0===c?null:c,d=t.titleId,p=void 0===d?null:d,h=t.classes,m=void 0===h?[]:h,g=t.attributes,y=void 0===g?{}:g,v=t.styles,b=void 0===v?{}:v;if(e){var w=e.prefix,x=e.iconName,_=e.icon;return ci(Jt({type:"icon"},e),(function(){return ri("beforeDOMElementCreation",{iconDefinition:e,params:t}),ar.autoA11y&&(f?y["aria-labelledby"]="".concat(ar.replacementClass,"-title-").concat(p||ur()):(y["aria-hidden"]="true",y.focusable="false")),fi({icons:{main:hi(_),mask:s?hi(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:x,transform:Jt(Jt({},lr),r),symbol:a,title:f,maskId:u,titleId:p,extra:{attributes:y,styles:b,classes:m}})}))}},Hi={mixout:function(){return{icon:(e=Vi,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:ai(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:ai(i||{})),e(r,Jt(Jt({},n),{},{mask:i}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Fi,e.nodeCallback=zi,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?xn:t,r=e.callback;return Fi(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,i=t.titleId,a=t.prefix,o=t.transform,s=t.symbol,l=t.mask,u=t.maskId,c=t.extra;return new Promise((function(t,f){Promise.all([gi(n,a),l.iconName?gi(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(l){var f=rn(l,2),d=f[0],p=f[1];t([e,fi({icons:{main:d,mask:p},prefix:a,iconName:n,transform:o,symbol:s,maskId:u,title:r,titleId:i,extra:c,watchable:!0})])})).catch(f)}))},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,i=e.main,a=e.transform,o=pr(e.styles);return o.length>0&&(r.style=o),hr(a)&&(t=ii("generateAbstractTransformGrouping",{main:i,transform:a,containerWidth:i.width,iconWidth:i.width})),n.push(t||i.icon),{children:n,attributes:r}}}},Wi={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=void 0===n?[]:n;return ci({type:"layer"},(function(){ri("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e((function(e){Array.isArray(e)?e.map((function(e){n=n.concat(e.abstract)})):n=n.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(ar.cssPrefix,"-layers")].concat(an(r)).join(" ")},children:n}]}))}}}},qi={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,r=void 0===n?null:n,i=t.classes,a=void 0===i?[]:i,o=t.attributes,s=void 0===o?{}:o,l=t.styles,u=void 0===l?{}:l;return ci({type:"counter",content:e},(function(){return ri("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,n=e.title,r=e.extra,i=Jt(Jt(Jt({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=pr(r.styles);a.length>0&&(i.style=a);var o=[];return o.push({tag:"span",attributes:i,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}({content:e.toString(),title:r,extra:{attributes:s,styles:u,classes:["".concat(ar.cssPrefix,"-layers-counter")].concat(an(a))}})}))}}}},Gi={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?lr:n,i=t.title,a=void 0===i?null:i,o=t.classes,s=void 0===o?[]:o,l=t.attributes,u=void 0===l?{}:l,c=t.styles,f=void 0===c?{}:c;return ci({type:"text",content:e},(function(){return ri("beforeDOMElementCreation",{content:e,params:t}),di({content:e,transform:Jt(Jt({},lr),r),title:a,extra:{attributes:u,styles:f,classes:["".concat(ar.cssPrefix,"-layers-text")].concat(an(s))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,i=t.extra,a=null,o=null;if(Sn){var s=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();a=l.width/s,o=l.height/s}return ar.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,di({content:e.innerHTML,width:a,height:o,transform:r,title:n,extra:i,watchable:!0})])}}},Zi=new RegExp('"',"ug"),Yi=[1105920,1112319];function $i(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise((function(r,i){if(null!==e.getAttribute(n))return r();var a=cr(e.children).filter((function(e){return e.getAttribute(Tn)===t}))[0],o=wn.getComputedStyle(e,t),s=o.getPropertyValue("font-family").match(qn),l=o.getPropertyValue("font-weight"),u=o.getPropertyValue("content");if(a&&!s)return e.removeChild(a),r();if(s&&"none"!==u&&""!==u){var c=o.getPropertyValue("content"),f=~["Sharp"].indexOf(s[2])?Mn:Ln,d=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?Fn[f][s[2].toLowerCase()]:Gn[f][l],p=function(e){var t=e.replace(Zi,""),n=function(e,t){var n,r=e.length,i=e.charCodeAt(0);return i>=55296&&i<=56319&&r>1&&(n=e.charCodeAt(1))>=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}(t),r=n>=Yi[0]&&n<=Yi[1],i=2===t.length&&t[0]===t[1];return{value:Ar(i?t[0]:t),isSecondary:r||i}}(c),h=p.value,m=p.isSecondary,g=s[0].startsWith("FontAwesome"),y=Wr(d,h),v=y;if(g){var b=function(e){var t=Ur[e],n=Wr("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(h);b.iconName&&b.prefix&&(y=b.iconName,d=b.prefix)}if(!y||m||a&&a.getAttribute(Nn)===d&&a.getAttribute(Rn)===v)r();else{e.setAttribute(n,v),a&&e.removeChild(a);var w={iconName:null,title:null,titleId:null,prefix:null,transform:lr,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},x=w.extra;x.attributes[Tn]=t,gi(y,d).then((function(i){var a=fi(Jt(Jt({},w),{},{icons:{main:i,mask:{prefix:null,iconName:null,rest:[]}},prefix:d,iconName:v,extra:x,watchable:!0})),o=xn.createElement("svg");"::before"===t?e.insertBefore(o,e.firstChild):e.appendChild(o),o.outerHTML=a.map((function(e){return Er(e)})).join("\n"),e.removeAttribute(n),r()})).catch(i)}}else r()}))}function Ki(e){return Promise.all([$i(e,"::before"),$i(e,"::after")])}function Xi(e){return!(e.parentNode===document.head||~jn.indexOf(e.tagName.toUpperCase())||e.getAttribute(Tn)||e.parentNode&&"svg"===e.parentNode.tagName)}function Qi(e){if(kn)return new Promise((function(t,n){var r=cr(e.querySelectorAll("*")).filter(Xi).map(Ki),i=xi("searchPseudoElements");Ri(),Promise.all(r).then((function(){i(),Pi(),t()})).catch((function(){i(),Pi(),n()}))}))}var Ji=!1,ea=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},ta={x:0,y:0,width:"100%",height:"100%"};function na(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}!function(e,t){var n=t.mixoutsTo;Qr=e,Jr={},Object.keys(ei).forEach((function(e){-1===ti.indexOf(e)&&delete ei[e]})),Qr.forEach((function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((function(e){"function"==typeof t[e]&&(n[e]=t[e]),"object"===en(t[e])&&Object.keys(t[e]).forEach((function(r){n[e]||(n[e]={}),n[e][r]=t[e][r]}))})),e.hooks){var r=e.hooks();Object.keys(r).forEach((function(e){Jr[e]||(Jr[e]=[]),Jr[e].push(r[e])}))}e.provides&&e.provides(ei)}))}([vr,Hi,Wi,qi,Gi,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Qi,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?xn:t;ar.searchPseudoElements&&Qi(n)}}},{mixout:function(){return{dom:{unwatch:function(){Ri(),Ji=!0}}}},hooks:function(){return{bootstrap:function(){Ii(ni("mutationObserverCallbacks",{}))},noAuto:function(){ji&&ji.disconnect()},watch:function(e){var t=e.observeMutationsRoot;Ji?Pi():Ii(ni("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},{mixout:function(){return{parse:{transform:function(e){return ea(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=ea(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,i=e.iconWidth,a={transform:"translate(".concat(r/2," 256)")},o="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),u={outer:a,inner:{transform:"".concat(o," ").concat(s," ").concat(l)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:Jt({},u.outer),children:[{tag:"g",attributes:Jt({},u.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Jt(Jt({},t.icon.attributes),u.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?Kr(n.split(" ").map((function(e){return e.trim()}))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=Zr()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,r=e.attributes,i=e.main,a=e.mask,o=e.maskId,s=e.transform,l=i.width,u=i.icon,c=a.width,f=a.icon,d=function(e){var t=e.transform,n=e.iconWidth,r={transform:"translate(".concat(e.containerWidth/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),o="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(i," ").concat(a," ").concat(o)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:s,containerWidth:c,iconWidth:l}),p={tag:"rect",attributes:Jt(Jt({},ta),{},{fill:"white"})},h=u.children?{children:u.children.map(na)}:{},m={tag:"g",attributes:Jt({},d.inner),children:[na(Jt({tag:u.tag,attributes:Jt(Jt({},u.attributes),d.path)},h))]},g={tag:"g",attributes:Jt({},d.outer),children:[m]},y="mask-".concat(o||ur()),v="clip-".concat(o||ur()),b={tag:"mask",attributes:Jt(Jt({},ta),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,g]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:(t=f,"g"===t.tag?t.children:[t])},b]};return n.push(w,{tag:"rect",attributes:Jt({fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(y,")")},ta)}),{children:n,attributes:r}}}},{provides:function(e){var t=!1;wn.matchMedia&&(t=wn.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:Jt(Jt({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var i=Jt(Jt({},r),{},{attributeName:"opacity"}),a={tag:"circle",attributes:Jt(Jt({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:Jt(Jt({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Jt(Jt({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(a),e.push({tag:"path",attributes:Jt(Jt({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Jt(Jt({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:Jt(Jt({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Jt(Jt({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}}}}],{mixoutsTo:li});var ra=li.parse,ia=li.icon,aa=n(1942),oa=n.n(aa),sa=n(3705);function la(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ua(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?la(Object(n),!0).forEach((function(t){fa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):la(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ca(e){return(ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function da(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function pa(e){return function(e){if(Array.isArray(e))return ha(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ha(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ma(e){return t=e,(t-=0)===t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var ga=["style"],ya=!1;try{ya=!0}catch(e){}function va(e){return e&&"object"===ca(e)&&e.prefix&&e.iconName&&e.icon?e:ra.icon?ra.icon(e):null===e?null:e&&"object"===ca(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function ba(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?fa({},e,t):{}}var wa=e.forwardRef((function(e,t){var n=e.icon,r=e.mask,i=e.symbol,a=e.className,o=e.title,s=e.titleId,l=e.maskId,u=va(n),c=ba("classes",[].concat(pa(function(e){var t,n=e.beat,r=e.fade,i=e.beatFade,a=e.bounce,o=e.shake,s=e.flash,l=e.spin,u=e.spinPulse,c=e.spinReverse,f=e.pulse,d=e.fixedWidth,p=e.inverse,h=e.border,m=e.listItem,g=e.flip,y=e.size,v=e.rotation,b=e.pull,w=(fa(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":o,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":c,"fa-spin-pulse":u,"fa-pulse":f,"fa-fw":d,"fa-inverse":p,"fa-border":h,"fa-li":m,"fa-flip":!0===g,"fa-flip-horizontal":"horizontal"===g||"both"===g,"fa-flip-vertical":"vertical"===g||"both"===g},"fa-".concat(y),null!=y),fa(t,"fa-rotate-".concat(v),null!=v&&0!==v),fa(t,"fa-pull-".concat(b),null!=b),fa(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(w).map((function(e){return w[e]?e:null})).filter((function(e){return e}))}(e)),pa(a.split(" ")))),f=ba("transform","string"==typeof e.transform?ra.transform(e.transform):e.transform),d=ba("mask",va(r)),p=ia(u,ua(ua(ua(ua({},c),f),d),{},{symbol:i,title:o,titleId:s,maskId:l}));if(!p)return function(){var e;!ya&&sa&&"function"==typeof sa.error&&(e=sa).error.apply(e,arguments)}("Could not find icon",u),null;var h=p.abstract,m={ref:t};return Object.keys(e).forEach((function(t){wa.defaultProps.hasOwnProperty(t)||(m[t]=e[t])})),xa(h[0],m)}));wa.displayName="FontAwesomeIcon",wa.propTypes={beat:oa().bool,border:oa().bool,beatFade:oa().bool,bounce:oa().bool,className:oa().string,fade:oa().bool,flash:oa().bool,mask:oa().oneOfType([oa().object,oa().array,oa().string]),maskId:oa().string,fixedWidth:oa().bool,inverse:oa().bool,flip:oa().oneOf([!0,!1,"horizontal","vertical","both"]),icon:oa().oneOfType([oa().object,oa().array,oa().string]),listItem:oa().bool,pull:oa().oneOf(["right","left"]),pulse:oa().bool,rotation:oa().oneOf([0,90,180,270]),shake:oa().bool,size:oa().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:oa().bool,spinPulse:oa().bool,spinReverse:oa().bool,symbol:oa().oneOfType([oa().bool,oa().string]),title:oa().string,titleId:oa().string,transform:oa().oneOfType([oa().string,oa().object]),swapOpacity:oa().bool},wa.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var xa=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var i=(n.children||[]).map((function(n){return e(t,n)})),a=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=r.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),i=ma(t.slice(0,r)),a=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=a:e[i]=a,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[ma(t)]=r}return e}),{attrs:{}}),o=r.style,s=void 0===o?{}:o,l=da(r,ga);return a.attrs.style=ua(ua({},a.attrs.style),s),t.apply(void 0,[n.tag,ua(ua({},a.attrs),l)].concat(pa(i)))}.bind(null,e.createElement);function _a(t){const{state:n}=(0,e.useContext)(m),[r,i]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{if(r){let e=setTimeout((()=>{i(!1)}),2500);return()=>{clearTimeout(e)}}}),[r]),(0,d.jsxs)("button",{onClick:async()=>{var e;t.eventName&&pxt.tickEvent(t.eventName),null!==(e=n.gameState)&&void 0!==e&&e.joinCode&&(navigator.clipboard.writeText(t.copyValue),i(!0),t.toastMessage&&h(_({type:"success",text:t.toastMessage,icon:"✅",timeoutMs:5e3})))},title:t.title,className:"tw-flex tw-items-center tw-align-middle",children:[t.label&&(0,d.jsx)("span",{className:"tw-mr-1 hover:tw-opacity-80",children:t.label}),!r&&(0,d.jsx)(wa,{icon:Zt,className:"tw-text-[65%] hover:tw-scale-110 tw-ease-linear tw-duration-[50ms]"}),r&&(0,d.jsx)(wa,{icon:Kt,className:"tw-text-[65%] tw-text-green-600"})]})}function Ea(t){const{particle:n}=t,{index:r}=n,{state:i}=(0,e.useContext)(m),{gameState:a}=i,o=null==a?void 0:a.reactionIconOverrides,s=wt[r].emoji,l=(0,e.useMemo)((()=>{const e=1.25+1.25*Math.random(),t=3*e+10*Math.random();return{flyUpDuration:e,rotationDuration:3+.5*Math.random(),rotationAnim:Math.random()>.5?"reaction-rotate-left":"reaction-rotate-right",horzAnim:Math.random()>.5?"reaction-fly-left":"reaction-fly-right",flyHorzDuration:t}}),[]),u=null==o?void 0:o[r+1],c=u?(0,d.jsx)("img",{className:"pixel-art-image tw-w-[100%]",src:u,alt:lf("Game reaction image {0}",r+1)}):s;return(0,d.jsx)("div",{className:"tw-absolute tw-select-none tw-pointer-events-none tw-z-[100]",style:{animation:"reaction-fly-up linear ".concat(l.flyUpDuration,"s forwards,\n ").concat(l.horzAnim," linear ").concat(l.flyHorzDuration,"s forwards"),width:u?"1.5rem":void 0,height:u?"1.5rem":void 0},children:(0,d.jsx)("div",{className:"tw-select-none tw-pointer-events-none",style:{animation:"".concat(l.rotationAnim," ease-in-out ").concat(l.rotationDuration,"s infinite")},children:c})})}function ka(t){const{state:n}=(0,e.useContext)(m),{clientId:r}=t,i=n.reactions[r],[a,o]=(0,e.useState)([]);return(0,e.useEffect)((()=>{if(i&&!a.find((e=>e.id===i.id))){const e={id:i.id,index:i.index,startTime:Date.now()};o((t=>[...t,e]))}}),[i,a,o]),(0,e.useEffect)((()=>{const e=setInterval((()=>{const e=Date.now();o(a.filter((t=>e-t.startTime<5e3)))}),1e3);return()=>clearInterval(e)}),[a,o]),(0,d.jsx)("div",{className:"tw-absolute tw-pointer-events-none",style:{transform:"translateY(-20px)"},children:(0,d.jsx)("div",{className:"tw-flex tw-flex-row tw-justify-center",children:a.map((e=>(0,d.jsx)(Ea,{particle:e},e.id)))})})}function Sa(e){const{slot:t,dataUri:n}=e;return n?(0,d.jsx)("img",{className:"pixel-art-image tw-w-[65%]",style:{filter:0===t?"grayscale(1)":void 0},src:n,alt:lf("User set icon for player {0}",t)}):(0,d.jsx)("svg",{width:"25",height:"29",viewBox:"0 0 25 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{style:{fill:"rgb(var(--slot-".concat(t,"-color))")},d:"M12.7544 14.686C16.6204 14.686 19.7544 11.552 19.7544 7.68602C19.7544 3.82003 16.6204 0.686035 12.7544 0.686035C8.8884 0.686035 5.75439 3.82003 5.75439 7.68602C5.75439 11.552 8.8884 14.686 12.7544 14.686ZM4.25439 16.686C2.32136 16.686 0.754339 18.2531 0.754395 20.1861L0.754409 20.6861C0.754421 23.0795 2.27704 25.1034 4.43931 26.4794C6.61345 27.863 9.55594 28.686 12.7543 28.686C15.9527 28.686 18.8952 27.863 21.0694 26.4795C23.2317 25.1034 24.7544 23.0795 24.7544 20.6861V20.186C24.7544 18.253 23.1874 16.686 21.2544 16.686H4.25439Z"})})}function Aa(t){const{children:n,visible:r,className:i,ignoreRefs:a,onClickedOutside:o}=t,s=(0,e.useRef)(null),l=(0,e.useCallback)((e=>{s.current=e}),[]);return function(t,n){(0,e.useEffect)((()=>{const e=e=>{for(const n of t){const t=null==n?void 0:n.current;if(t&&t.contains(e.target))return}null==n||n()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[...t])}([s,...a||[]],(()=>o())),r?(0,d.jsx)("div",{ref:l,className:i,children:n}):null}function Ca(e){const{children:t,visible:n,ignoreRefs:r,onClickedOutside:i}=e;return(0,d.jsx)(Aa,{className:"tw-absolute tw-z-50 tw-translate-y-[-110%] tw-translate-x-[-50%] tw-rounded-lg tw-border-2 tw-border-gray-100",visible:n,ignoreRefs:r,onClickedOutside:i,children:(0,d.jsx)("div",{className:"tw-flex tw-flex-row tw-gap-1 tw-p-2 tw-bg-white tw-drop-shadow-xl tw-rounded-md",children:t})})}function Oa(t){const{state:n,dispatch:r}=(0,e.useContext)(m),{presence:i,clientRole:a,playerSlot:o,gameState:s}=n,l=null==s?void 0:s.presenceIconOverrides,{slot:u}=t,[c,f]=(0,e.useState)(!1),p=(0,e.useRef)(null),h=(0,e.useCallback)((e=>{p.current=e}),[]),g=(0,e.useMemo)((()=>(null==i?void 0:i.users)&&i.users.filter((e=>e.slot<5))),[i]),y=async()=>{pxt.tickEvent("mp.leavegame",{role:a}),f(!1),r(k("leave-game"))},v=g.find((e=>e.slot===u)),b=(()=>{const e="host"===a,t=1===u,n=u===o,i=g.filter((e=>e.slot===u)).shift();return e&&n?(0,d.jsx)(Ca,{visible:c,ignoreRefs:[p],onClickedOutside:()=>f(!1),children:(0,d.jsx)(L,{className:"tw-m-0 tw-py-2 tw-bg-red-600 tw-text-white",label:lf("End the game"),title:lf("End the game"),onClick:()=>y()})}):e&&!t&&i?(0,d.jsx)(Ca,{visible:c,ignoreRefs:[p],onClickedOutside:()=>f(!1),children:(0,d.jsx)(L,{className:"tw-m-0 tw-py-2 tw-bg-red-600 tw-text-white",label:lf("Remove from game"),title:lf("Remove from game"),onClick:()=>(e=>{pxt.tickEvent("mp.kickplayer"),f(!1);const t=g.filter((t=>t.slot===e)).shift();t&&r(k("kick-player",{clientId:t.id}))})(u)})}):!e&&n?(0,d.jsx)(Ca,{visible:c,ignoreRefs:[p],onClickedOutside:()=>f(!1),children:(0,d.jsx)(L,{className:"tw-m-0 tw-py-2 tw-bg-red-600 tw-text-white",label:lf("Leave game"),title:lf("Leave game"),onClick:()=>y()})}):null})(),w=!v,x=u===o,_=null==l?void 0:l[u];return(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"tw-px-[50%]",children:b}),(0,d.jsx)(L,{className:"tw-rounded-full tw-m-0 tw-p-0",hardDisabled:!b,label:(0,d.jsxs)("div",{className:"tw-flex tw-select-none tw-text-black\n tw-font-bold tw-rounded-full tw-h-11 tw-border-2\n tw-w-11 tw-justify-center tw-items-center\n tw-text-slot-".concat(u,"-color"),style:{backgroundColor:"rgba(var(--slot-".concat(w?0:u,"-color),0.1)"),borderColor:"rgb(var(--slot-".concat(w?0:u,"-color))")},children:[(0,d.jsx)(Sa,{slot:w?0:u,dataUri:_}),v&&(0,d.jsx)(ka,{clientId:v.id}),x&&(0,d.jsx)("div",{className:"tw-absolute tw-translate-y-[110%]",children:(0,d.jsx)("div",{className:"tw-z-10 tw-border tw-rounded-xl tw-text-xs tw-px-2 tw-font-medium tw-uppercase",style:{backgroundColor:"rgb(var(--you-tag-bg-color))",borderColor:"rgb(var(--you-tag-border-color))"},children:lf("you")})})]}),title:w?lf("Player {0} (empty)",u):lf("Player {0}",u),onClick:()=>f(!c),buttonRef:h})]})}function Ta(){return(0,d.jsx)("div",{className:"tw-flex tw-flex-row tw-items-center tw-justify-center tw-gap-2 tw-border-l-2 tw-pl-2 tw-border-slot-0-color",children:[1,2,3,4].map((e=>(0,d.jsx)(Oa,{slot:e},e)))})}function Na(e){return(0,d.jsx)("svg",{className:e.className,width:"29",height:"29",viewBox:"0 0 29 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{style:{fill:"rgb(var(--reaction-color))"},d:"M10.3491 13.686C11.4537 13.686 12.3491 12.7906 12.3491 11.686C12.3491 10.5815 11.4537 9.68604 10.3491 9.68604C9.24455 9.68604 8.34912 10.5815 8.34912 11.686C8.34912 12.7906 9.24455 13.686 10.3491 13.686ZM20.3491 11.686C20.3491 12.7906 19.4537 13.686 18.3491 13.686C17.2446 13.686 16.3491 12.7906 16.3491 11.686C16.3491 10.5815 17.2446 9.68604 18.3491 9.68604C19.4537 9.68604 20.3491 10.5815 20.3491 11.686ZM7.90212 17.7916C8.39359 17.5459 8.99068 17.7428 9.23997 18.2313L9.24349 18.2378C9.24901 18.2478 9.26019 18.2677 9.27736 18.296C9.31176 18.3526 9.36981 18.4425 9.45402 18.5548C9.62278 18.7798 9.8937 19.0909 10.2865 19.4052C11.0595 20.0235 12.3423 20.686 14.3493 20.686C16.3564 20.686 17.6392 20.0235 18.4121 19.4052C18.805 19.0909 19.0759 18.7798 19.2446 18.5548C19.3289 18.4425 19.3869 18.3526 19.4213 18.296C19.4385 18.2677 19.4497 18.2478 19.4552 18.2378L19.4587 18.2313C19.708 17.7428 20.3051 17.5459 20.7965 17.7916C21.2905 18.0386 21.4908 18.6393 21.2438 19.1333L21.2432 19.1343L21.2426 19.1355L21.2414 19.138L21.2384 19.1439L21.2306 19.1589C21.2246 19.1704 21.2169 19.1847 21.2076 19.2017C21.1889 19.2356 21.1635 19.2802 21.1309 19.3339C21.0657 19.4413 20.9714 19.5858 20.8446 19.7548C20.5915 20.0923 20.2062 20.5312 19.6615 20.9669C18.5595 21.8485 16.8423 22.686 14.3493 22.686C11.8564 22.686 10.1392 21.8485 9.03714 20.9669C8.49247 20.5312 8.10714 20.0923 7.85402 19.7548C7.72729 19.5858 7.633 19.4413 7.56779 19.3339C7.53515 19.2802 7.50972 19.2356 7.49106 19.2017C7.48173 19.1847 7.47409 19.1704 7.46808 19.1589L7.46029 19.1439L7.4573 19.138L7.45603 19.1355L7.45545 19.1343L7.45491 19.1333C7.20793 18.6393 7.40814 18.0386 7.90212 17.7916ZM14.3491 0.686035C6.61713 0.686035 0.349121 6.95405 0.349121 14.686C0.349121 22.418 6.61713 28.686 14.3491 28.686C22.0811 28.686 28.3491 22.418 28.3491 14.686C28.3491 6.95405 22.0811 0.686035 14.3491 0.686035ZM2.34912 14.686C2.34912 8.05862 7.7217 2.68604 14.3491 2.68604C20.9765 2.68604 26.3491 8.05862 26.3491 14.686C26.3491 21.3135 20.9765 26.686 14.3491 26.686C7.7217 26.686 2.34912 21.3135 2.34912 14.686Z"})})}function Ra(){const{state:t}=(0,e.useContext)(m),[n,r]=(0,e.useState)(!1),i=(0,e.useRef)(null),a=(0,e.useCallback)((e=>{i.current=e}),[]),{gameState:o}=t,s=null==o?void 0:o.reactionIconOverrides;(0,e.useEffect)((()=>{const e=e=>{if("messagepacket"===e.data.type&&e.data.channel){var t;const n=null===(t=/keydown-(\d)/i.exec(e.data.channel))||void 0===t?void 0:t[1];if(!n)return;const r=parseInt(n)-1;wt[r]&&_t(r)}},t=e=>{const t=parseInt(e.key)-1;wt[t]&&_t(t)};return window.addEventListener("message",e),window.addEventListener("keydown",t),()=>{window.removeEventListener("message",e),window.removeEventListener("keydown",t)}}));const l=pxt.BrowserUtils.isMobile()||pxt.BrowserUtils.isIOS();return(0,d.jsxs)("div",{children:[(0,d.jsx)(Aa,{className:"tw-absolute tw-translate-y-[-120%]",visible:n,ignoreRefs:[i],onClickedOutside:()=>r(!1),children:(0,d.jsx)("div",{className:"tw-flex tw-flex-col tw-bg-white tw-drop-shadow-xl tw-rounded-md tw-border-2 tw-border-gray-100",children:(0,d.jsx)("div",{className:"tw-flex tw-flex-row tw-gap-3 tw-p-2 tw-pb-3 tw-pr-3",children:wt.map(((e,t)=>{const n=null==s?void 0:s[t+1],r=n?(0,d.jsx)("img",{className:"pixel-art-image tw-w-6",src:n,alt:lf("Game reaction image {0}",t+1)}):e.emoji;return(0,d.jsx)(L,{className:"tw-flex tw-items-center tw-justify-center tw-m-0 tw-p-0 tw-cursor-pointer tw-select-none tw-scale-110 hover:tw-scale-125 tw-ease-linear tw-duration-[50ms] tw-h-8 tw-w-8 tw-text-2xl",label:(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{children:r}),!l&&(0,d.jsx)("div",{className:"tw-text-xs tw-absolute tw-bottom-[-5px] tw-right-[-5px] tw-text-white tw-bg-gray-400 tw-rounded-sm tw-border-[1px] tw-border-solid tw-border-gray-500 tw-drop-shadow-lg tw-px-1 tw-leading-tight",children:t+1})]}),title:e.name,onClick:()=>(async e=>{await _t(e)})(t)},t+1)}))})})}),(0,d.jsx)(L,{label:(0,d.jsx)(Na,{className:"hover:tw-scale-125 tw-ease-linear tw-duration-[50ms]"}),title:lf("Reactions"),className:"tw-flex tw-items-center tw-justify-center\n tw-select-none tw-border-2 tw-reaction-color\n tw-rounded-full tw-h-11 tw-w-11 tw-text-2xl !tw-m-0 !tw-p-0",style:{backgroundColor:"rgba(var(--reaction-color),0.1)"},onClick:()=>{const e=!n;e&&pxt.tickEvent("mp.reactions.open"),r(e)},buttonRef:e=>{a(e)}})]})}function Pa(){return(0,d.jsxs)("div",{className:"tw-flex tw-flex-row tw-space-x-2 tw-items-center tw-align-middle tw-justify-center",children:[(0,d.jsx)(Ra,{}),(0,d.jsx)(Ta,{})]})}function ja(){var t;const{state:n,dispatch:r}=(0,e.useContext)(m),i=null===(t=n.gameState)||void 0===t?void 0:t.joinCode;if(!i)return null;const a=lf("Have your friend go to {0} and enter code","{0}").split("{0}"),o=pxt.multiplayer.SHORT_LINK(),s=(null==i?void 0:i.slice(0,3))+" "+(null==i?void 0:i.slice(3)),l=pxt.multiplayer.makeJoinLink(i,!0);return(0,d.jsx)("div",{className:"tw-bg-white tw-shadow-lg tw-rounded-lg tw-m-1 tw-min-w-[17rem]",children:(0,d.jsxs)("div",{className:"tw-flex tw-flex-col tw-gap-1 tw-items-center tw-justify-between tw-py-[3rem] tw-px-3 sm:tw-px-14 md:tw-px-[7rem]",children:[(0,d.jsxs)("div",{className:"tw-mt-3 tw-text-lg tw-text-center tw-text-neutral-700",children:[a[0],(0,d.jsx)(D,{href:o,target:"_blank",className:"tw-text-primary-color tw-font-bold hover:tw-text-orange-300",children:o}),a[1]]}),(0,d.jsx)("div",{className:"tw-text-4xl tw-mt-4 tw-flex tw-flex-row tw-items-center tw-ml-2",children:(0,d.jsx)(_a,{copyValue:l,title:lf("Copy join link"),eventName:"mp.hostlobby.copyjoinlink",label:(0,d.jsx)("span",{className:"tw-font-bold tw-text-neutral-700 tw-mr-1 tw-whitespace-nowrap",children:s}),toastMessage:lf("Join link copied")})}),(0,d.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-mt-5 tw-text-sm tw-gap-1 tw-max-h-24 md:tw-max-h-36",children:[(0,d.jsx)(Gt,{value:l}),(0,d.jsx)("div",{className:"tw-hidden md:tw-block",children:lf("or scan with phone")})]}),(0,d.jsx)(L,{className:"primary tw-mt-5 tw-font-sans tw-mr-0",label:lf("Start Game"),title:lf("Start Game"),onClick:async()=>{pxt.tickEvent("mp.hostlobby.startgame"),r({type:"CLEAR_MODAL"}),await async function(){try{await async function(){var e;await(null===(e=ft)||void 0===e?void 0:e.startGameAsync())}()}catch(e){}}()}}),(0,d.jsx)(D,{href:"/multiplayer#safety",target:"_blank",className:"tw-text-sm tw-mt-1 tw-mb-7",children:lf("Multiplayer Online Safety")}),(0,d.jsx)(Pa,{})]})})}function Ia(){var t;const{state:n}=(0,e.useContext)(m),r=null===(t=n.gameState)||void 0===t?void 0:t.joinCode,i=r?pxt.multiplayer.makeJoinLink(r,!0):"";return(0,d.jsx)("div",{children:r&&(0,d.jsxs)("div",{className:"tw-flex tw-flex-row tw-items-center tw-align-middle",children:[(0,d.jsx)("div",{className:"tw-font-bold tw-mr-1",children:lf("Code:")}),(0,d.jsx)(_a,{copyValue:i,title:lf("Copy join link"),eventName:"mp.copyjoinlink",label:r,toastMessage:lf("Join link copied")})]})})}function La(){return(0,d.jsx)("div",{className:"tw-bg-white tw-shadow-lg tw-rounded-lg tw-m-1",children:(0,d.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-py-[2rem] tw-px-[1.5rem] sm:tw-px-[3.5rem] md:tw-px-[6rem]",children:[(0,d.jsx)("div",{className:"tw-font-bold tw-text-2xl tw-text-neutral-800",children:lf("Waiting for players")}),(0,d.jsx)("div",{className:"tw-mt-3 tw-text-center tw-text-neutral-700",children:lf("Your host will start the game soon!")}),(0,d.jsx)("div",{className:"tw-mt-5",children:(0,d.jsx)(Pa,{})})]})})}function Ma(){const e={[lf("up")]:["↑","W"],[lf("down")]:["↓","S"],[lf("left")]:["←","A"],[lf("right")]:["→","D"],a:["Z",lf("{id:keyboard symbol}space")],b:["X",lf("{id:keyboard symbol}enter")]};return(0,d.jsxs)("div",{className:"tw-bg-neutral-50 tw-p-3 tw-border-2 tw-border-neutral-500 tw-border-solid tw-rounded-md tw-drop-shadow-xl",children:[(0,d.jsx)("div",{className:"tw-text-lg tw-mb-2 tw-font-bold",children:lf("Keyboard Controls")}),Object.keys(e).map(((t,n)=>(0,d.jsxs)("div",{className:"keymap-row",children:[e[t].map(((e,t)=>(0,d.jsx)("div",{className:"keymap-key tw-align-middle tw-min-w-[2.5rem] tw-text-center tw-pb-[2.1rem]",children:e},t))),(0,d.jsx)("span",{className:"keymap-name tw-font-semibold",children:t})]},n))),(0,d.jsxs)("div",{className:"keymap-row tw-flex tw-flex-row tw-items-center",children:[(0,d.jsx)("div",{className:"keymap-key tw-align-middle tw-min-w-[2.5rem] tw-text-center tw-pb-[2.1rem]",children:"1 - 6"}),(0,d.jsx)("span",{className:"keymap-name tw-font-semibold tw-text-center",children:(0,d.jsx)(Na,{})})]})]})}function Ba(){const[t,n]=(0,e.useState)(!1),r=(0,e.useRef)(null),i=(0,e.useCallback)((e=>{r.current=e}),[]);return(0,d.jsxs)("div",{children:[(0,d.jsx)(Aa,{className:"tw-absolute tw-translate-y-[-105%]",visible:t,ignoreRefs:[r],onClickedOutside:()=>n(!1),children:(0,d.jsx)(Ma,{})}),(0,d.jsx)(L,{title:lf("Keyboard Controls"),label:lf("Keyboard Controls"),leftIcon:"fas fa-keyboard",buttonRef:i,onClick:()=>{pxt.tickEvent("mp.keyboardcontrols"),n(!t)},className:"tw-border-2 tw-border-slate-400 tw-border-solid tw-p-2 tw-bg-slate-100 hover:tw-bg-slate-200 active:tw-bg-slate-300 tw-ease-linear tw-duration-[50ms] tw-pr-1 sm:tw-pr-3"})]})}function Da(){var t;const{state:n}=(0,e.useContext)(m),r=null===(t=n.gameState)||void 0===t?void 0:t.gameId,i=r?"".concat(pxt.webConfig.relprefix.replace(/-+$/,""),"#pub:").concat(r):void 0;return i?(0,d.jsx)(L,{leftIcon:"fas fa-bolt",title:lf("Edit Game"),label:(0,d.jsx)("div",{className:"tw-hidden sm:tw-inline tw-m-0 tw-p-0",children:lf("Edit Game")}),onClick:function(){i&&(pxt.tickEvent("mp.editgame"),window.open(i))},className:"tw-border-2 tw-border-slate-400 tw-border-solid tw-p-2 tw-bg-slate-100 hover:tw-bg-slate-200 active:tw-bg-slate-300 tw-ease-linear tw-duration-[50ms] tw-pr-1 sm:tw-pr-3"}):null}function Ua(){const{state:t}=(0,e.useContext)(m);return(0,e.useEffect)((()=>{var e;null===(e=rt())||void 0===e||e.mute(t.muted)}),[t.muted]),(0,d.jsx)(L,{leftIcon:t.muted?"fas fa-volume-mute":"fas fa-volume-up",title:lf("Toggle Mute"),className:"tw-border-2 tw-border-slate-400 tw-border-solid tw-py-2 tw-pl-2 tw-pr-1 tw-bg-slate-100 hover:tw-bg-slate-200 active:tw-bg-slate-300 tw-ease-linear tw-duration-[50ms]",onClick:()=>{h((e=>({type:"SET_MUTE",value:e}))(!t.muted))}})}function Fa(t){var n,r;const{state:i}=(0,e.useContext)(m),{netMode:a,clientRole:o}=i;return(0,d.jsxs)(d.Fragment,{children:["connecting"===a&&(0,d.jsx)(d.Fragment,{}),"lobby"===(null===(n=i.gameState)||void 0===n?void 0:n.gameMode)&&(0,d.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-justify-center tw-w-full tw-h-full",children:["host"===o&&(0,d.jsx)(ja,{}),"guest"===o&&(0,d.jsx)(La,{})]}),(0,d.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-grow tw-pb-4",style:"playing"!==(null===(r=i.gameState)||void 0===r?void 0:r.gameMode)?{display:"none"}:void 0,children:[(0,d.jsx)(Pt,{}),(0,d.jsxs)("div",{className:"tw-flex tw-flex-row tw-w-full tw-items-center tw-justify-between tw-mt-1 tw-ml-1",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(Ua,{}),(0,d.jsx)("div",{className:"tw-hidden sm:tw-inline-block",children:(0,d.jsx)(Da,{})})]}),(0,d.jsx)("div",{className:"tw-mr-1 sm:tw-mr-0",children:(0,d.jsx)(Ia,{})}),(0,d.jsx)("div",{className:"tw-hidden sm:tw-inline",children:(0,d.jsx)(Ba,{})}),(0,d.jsx)("div",{className:"tw-inline-block sm:tw-hidden",children:(0,d.jsx)(Da,{})})]}),(0,d.jsx)("div",{className:"tw-mt-3",children:(0,d.jsx)(Pa,{})})]})]})}function za(){const{state:t}=(0,e.useContext)(m),{netMode:n}=t;return(0,d.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-gap-1 tw-grow tw-justify-around",children:["init"===n&&(0,d.jsx)(Nt,{}),"init"!==n&&(0,d.jsx)(Fa,{})]})}const Va=e=>(0,d.jsx)(M,{...e,role:"menubar",className:P("common-menubar",e.className)}),Ha=t=>{const{children:n,id:r,className:i,onEscape:a,arrowKeyNavigation:o,dontStealFocus:s,includeOutsideTabOrder:l,dontRestoreFocus:u}=t;let c;const f=e.useRef(document.activeElement),[p,h]=e.useState(!1);e.useEffect((()=>()=>{!u&&f.current&&function(e){for(;e&&(!(t=e)||"true"!==t.getAttribute("data-isfocusable")&&-1===t.tabIndex||"none"===getComputedStyle(t).display);){const t=e.parentElement;if(!t)break;e=t}var t;e.focus()}(f.current)}),[]);const m=()=>function(e){const t=[];for(const n of e)t.push(n);return t}(l?c.querySelectorAll("[tabindex]"):c.querySelectorAll('[tabindex]:not([tabindex="-1"])'));return(0,d.jsx)("div",{id:r,className:P("common-focus-trap",i),ref:e=>{e&&(c=e,s||p||e.contains(document.activeElement)||!m().length||(c.focus(),h(!0)))},onKeyDown:e=>{if(!c)return;const t=(t,n)=>{const r=m();if(!r.length)return;const i=r.indexOf(e.target);t?n?I(r,i,r.length-1,t).focus():i===r.length-1?I(r,i,0,t).focus():I(r,i,i+1,t).focus():n?I(r,i,0,t).focus():0===i?I(r,i,r.length-1,t).focus():I(r,i,Math.max(i-1,0),t).focus(),e.preventDefault(),e.stopPropagation()};"Escape"===e.key?(a(),e.preventDefault(),e.stopPropagation()):"Tab"===e.key?e.shiftKey?t(!1,!1):t(!0,!1):o&&("ArrowDown"===e.key?t(!0,!1):"ArrowUp"===e.key?t(!1,!1):"Home"===e.key?t(!1,!0):"End"===e.key&&t(!0,!0))},tabIndex:-1,children:n})},Wa=t=>{const{id:n,className:r,ariaHidden:i,ariaLabel:a,role:o,items:s,label:l,title:u,icon:c,tabIndex:f,disabled:p}=t,[h,m]=e.useState(!1);let g,y;const v=P("common-menu-dropdown",r),b=n+"-menu";return(0,d.jsxs)("div",{className:v,ref:e=>{e&&(g=e)},onBlur:e=>{g&&h&&!g.contains(e.relatedTarget)&&m(!1)},children:[(0,d.jsx)(L,{id:n,label:l,tabIndex:f,buttonRef:e=>{e&&(y=e)},title:u,leftIcon:c,role:o||"menuitem",className:P("menu-button",h&&"expanded"),onClick:()=>{m(!h)},ariaHasPopup:"true",ariaExpanded:h,ariaControls:h?b:void 0,ariaLabel:a,ariaHidden:i,disabled:p}),h&&(0,d.jsx)("div",{role:"menu",className:"common-menu-dropdown-pane",tabIndex:0,id:b,"aria-labelledby":n,children:(0,d.jsx)(Ha,{arrowKeyNavigation:!0,onEscape:()=>{m(!1),y&&y.focus()},children:(0,d.jsx)("ul",{role:"presentation",children:s.map(((e,t)=>(0,d.jsx)("li",{role:"presentation",children:(0,d.jsx)(L,{...e,className:P("common-menu-dropdown-item",e.className),onClick:()=>{m(!1),e.onClick()},role:"menuitem",ariaPosInSet:t+1,ariaSetSize:s.length})},t)))})})})]})};function qa(){var t,n,r,i,a,o,s;const{state:l,dispatch:u}=(0,e.useContext)(m),{authStatus:c,profile:f,gameState:p,targetConfig:h}=l,{gameId:g}=null!=p?p:{},y=pxt.auth.hasIdentity(),v=null===(t=pxt.appTarget)||void 0===t?void 0:t.appTheme,b=null===(n=pxt)||void 0===n||null===(r=n.appTarget)||void 0===r||null===(i=r.appTheme)||void 0===i?void 0:i.privacyUrl,w=null===(a=pxt)||void 0===a||null===(o=a.appTarget)||void 0===o||null===(s=o.appTheme)||void 0===s?void 0:s.termsOfUseUrl,x=T(),_=()=>{pxt.tickEvent("mp.settingsmenu.reportabuse"),u(k("report-abuse"))},E=()=>{pxt.tickEvent("mp.settingsmenu.privacy"),window.open(b)},S=()=>{pxt.tickEvent("mp.settingsmenu.termsofuse"),window.open(w)},A=()=>{pxt.tickEvent("mp.settingsmenu.onlinesafety"),window.open("/multiplayer#safety")},C=()=>{var e;pxt.tickEvent("mp.home");let t=null===(e=pxt.webConfig)||void 0===e?void 0:e.relprefix.substr(0,pxt.webConfig.relprefix.length-3);var n,r;pxt.appTarget.appTheme.homeUrl&&t?((null===(n=pxt.appTarget.appTheme.homeUrl)||void 0===n?void 0:n.lastIndexOf("/"))===(null===(r=pxt.appTarget.appTheme.homeUrl)||void 0===r?void 0:r.length)-1&&(t=t.substr(1)),window.open(pxt.appTarget.appTheme.homeUrl+t,"_self")):window.open(pxt.appTarget.appTheme.homeUrl,"_self")},O=()=>{pxt.tickEvent("mp.signin"),u(k("sign-in",{dialogMessages:x}))},N=async()=>{pxt.tickEvent("mp.usermenu.signout"),await async function(){try{pt(),await async function(e){const t=await Me();return await(null==t?void 0:t.logoutAsync(void 0))}()}catch(e){}}()},R=()=>{var e,t,n,r;return null!==(e=null==f||null===(t=f.idp)||void 0===t?void 0:t.pictureUrl)&&void 0!==e?e:null==f||null===(n=f.idp)||void 0===n||null===(r=n.picture)||void 0===r?void 0:r.dataUrl},P=(()=>{var e;const t=[];b&&t.push({id:"privacy",title:lf("Privacy"),label:lf("Privacy"),onClick:E}),w&&t.push({id:"termsOfUse",title:lf("Terms of Use"),label:lf("Terms of Use"),onClick:S}),t.push({id:"safety",title:lf("Online Safety"),label:lf("Online Safety"),onClick:A});const n=(null==h||null===(e=h.shareLinks)||void 0===e?void 0:e.approved)||[];return g&&n.indexOf(g)<0&&t.push({id:"report",title:lf("Report Abuse"),label:lf("Report Abuse"),onClick:_}),t})();return(0,d.jsxs)(Va,{className:"tw-h-[var(--header-height)] tw-text-white\n tw-flex tw-flex-grow-0 tw-flex-shrink-0 tw-align-middle tw-justify-center\n tw-items-center tw-z-[50] tw-text-[2.2rem]\n tw-drop-shadow-xl\n ",ariaLabel:lf("Header"),children:[(0,d.jsxs)("div",{className:"tw-select-none tw-text-lg tw-font-bold tw-flex tw-align-middle tw-p-[var(--header-padding-top)] tw-flex-none",children:[(e=>{const t=e.organizationWideLogo,n=e.organizationLogo;return(0,d.jsx)("div",{className:"tw-flex",children:t&&n?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("img",{className:"tw-h-6 tw-mx-0 tw-my-1 tw-hidden sm:tw-block",src:qe(t),alt:lf("{0} Logo",e.organization)}),(0,d.jsx)("img",{className:"tw-h-6 tw-mx-0 tw-my-1 tw-object-contain tw-block sm:tw-hidden",src:qe(n),alt:lf("{0} Logo",e.organization)})]}):(0,d.jsx)("span",{className:"tw-h-6 tw-mx-0 tw-my-1",children:e.organization})})})(v),(j=v,(0,d.jsx)("div",{className:"tw-flex tw-pt-[2px] tw-ml-3 tw-cursor-pointer",onClick:C,children:j.useTextLogo?[(0,d.jsx)("span",{className:"tw-ml-3 tw-hidden sm:tw-flex",onClick:C,children:j.organizationText},"org-name"),(0,d.jsx)("span",{className:"tw-ml-3 tw-flex sm:tw-hidden",onClick:C,children:j.organizationShortText||j.organizationText},"org-name-short")]:j.logo||j.portraitLogo?(0,d.jsx)("img",{className:"logo",src:qe(j.logo||j.portraitLogo),alt:lf("{0} Logo",j.boardName)}):(0,d.jsxs)("span",{className:"name",children:[" ",j.boardName]})}))]}),(0,d.jsx)("div",{className:"tw-select-none tw-grow"}),(0,d.jsxs)("div",{className:"tw-select-none tw-text-lg tw-font-bold tw-flex tw-items-center tw-h-full tw-flex-none",children:[(null==P?void 0:P.length)>0&&(0,d.jsx)(Wa,{className:"h-full",id:"settings-help",title:lf("Settings menu"),icon:"fas fa-cog large",items:P}),y&&(()=>{const e=[];"signed-in"===c&&e.push({id:"signout",title:lf("Sign Out"),label:lf("Sign Out"),onClick:N});const t=R()?(0,d.jsx)("div",{className:"tw-flex tw-align-middle tw-justify-center tw-items-center tw-h-full",children:(0,d.jsx)("img",{src:R(),className:"tw-border-solid tw-border-2 tw-border-white tw-rounded-[100%] tw-w-10 tw-h-10",alt:lf("Profile Image"),referrerPolicy:"no-referrer","aria-hidden":"true"})}):void 0,n=(0,d.jsx)("span",{children:(0,d.jsx)("div",{className:"tw-h-10 tw-w-10 tw-rounded-[100%] tw-border-solid tw-border-2 tw-border-white tw-bg-[#028B9B] tw-flex tw-items-center tw-justify-center tw-text-base","aria-hidden":"true",children:f?pxt.auth.userInitials(f):""})});return(0,d.jsxs)("div",{className:"tw-h-full",children:["signed-in"===c&&(0,d.jsx)(Wa,{id:"profile-dropdown",items:e,label:t||n,title:lf("Profile Settings")}),"signed-out"===c&&(0,d.jsx)(L,{className:"tw-p-[0.6rem] tw-h-4/5 tw-m-2 tw-mr-4 tw-flex-row-reverse tw-font-medium tw-align-middle",rightIcon:"xicon cloud-user",title:lf("Sign In"),label:lf("Sign In"),onClick:O})]})})()]})]});var j}var Ga=function(e,t){return(Ga=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function Za(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ga(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ya=function(){return(Ya=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function $a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Ka(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function Xa(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,n(5224);const Qa=1/60*1e3,Ja="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),eo="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(Ja())),Qa);let to=!0,no=!1,ro=!1;const io={delta:0,timestamp:0},ao=["read","update","preRender","render","postRender"],oo=ao.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,a=!1;const o=new WeakSet,s={schedule:function(e){const a=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&i,s=a?t:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&o.add(e),-1===s.indexOf(e)&&(s.push(e),a&&i&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),o.delete(e)},process:e=>{if(i)a=!0;else{if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(e),o.has(r)&&(s.schedule(r),no=!0)}i=!1,a&&(a=!1,s.process(e))}}};return s}(),e)),{}),so=ao.reduce(((e,t)=>{const n=oo[t];return e[t]=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return no||po(),n.schedule(e,t,r)},e}),{}),lo=ao.reduce(((e,t)=>(e[t]=oo[t].cancel,e)),{}),uo=ao.reduce(((e,t)=>(e[t]=()=>oo[t].process(io),e)),{}),co=e=>oo[e].process(io),fo=e=>{no=!1,io.delta=to?Qa:Math.max(Math.min(e-io.timestamp,40),1),io.timestamp=e,ro=!0,ao.forEach(co),ro=!1,no&&(to=!1,eo(fo))},po=()=>{no=!0,to=!0,ro||eo(fo)},ho=()=>io,mo=so;var go="undefined"!=typeof document,yo=go?e.useLayoutEffect:e.useEffect;function vo(){var t=(0,e.useRef)(!1);return yo((function(){return t.current=!0,function(){t.current=!1}}),[]),t}var bo=(0,e.createContext)(null);function wo(t){var n=(0,e.useRef)(null);return null===n.current&&(n.current=t()),n.current}var xo=0,_o=function(){return xo++},Eo=function(){return wo(_o)},ko=function(t){var n=t.children,r=t.initial,i=t.isPresent,a=t.onExitComplete,o=t.custom,s=t.presenceAffectsLayout,l=wo(So),u=Eo(),c=(0,e.useMemo)((function(){return{id:u,initial:r,isPresent:i,custom:o,onExitComplete:function(e){var t,n;l.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(l.values()),i=r.next();!i.done;i=r.next())if(!i.value)return}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return l.set(e,!1),function(){return l.delete(e)}}}}),s?void 0:[i]);return(0,e.useMemo)((function(){l.forEach((function(e,t){return l.set(t,!1)}))}),[i]),e.useEffect((function(){!i&&!l.size&&(null==a||a())}),[i]),e.createElement(bo.Provider,{value:c},n)};function So(){return new Map}var Ao=(0,e.createContext)({});function Co(t){return(0,e.useEffect)((function(){return function(){return t()}}),[])}n(3705);var Oo=function(e){return e.key||""},To=function(t){var n=t.children,r=t.custom,i=t.initial,a=void 0===i||i,o=t.onExitComplete,s=t.exitBeforeEnter,l=t.presenceAffectsLayout,u=void 0===l||l,c=Ka(function(){var t=vo(),n=Ka((0,e.useState)(0),2),r=n[0],i=n[1],a=(0,e.useCallback)((function(){t.current&&i(r+1)}),[r]);return[(0,e.useCallback)((function(){return mo.postRender(a)}),[a]),r]}(),1)[0],f=(0,e.useContext)(Ao).forceRender;f&&(c=f);var d=vo(),p=function(t){var n=[];return e.Children.forEach(t,(function(t){(0,e.isValidElement)(t)&&n.push(t)})),n}(n),h=p,m=new Set,g=(0,e.useRef)(h),y=(0,e.useRef)(new Map).current,v=(0,e.useRef)(!0);if(yo((function(){v.current=!1,function(e,t){e.forEach((function(e){var n=Oo(e);t.set(n,e)}))}(p,y),g.current=h})),Co((function(){v.current=!0,y.clear(),m.clear()})),v.current)return e.createElement(e.Fragment,null,h.map((function(t){return e.createElement(ko,{key:Oo(t),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:u},t)})));h=Xa([],Ka(h),!1);for(var b=g.current.map(Oo),w=p.map(Oo),x=b.length,_=0;_<x;_++){var E=b[_];-1===w.indexOf(E)&&m.add(E)}return s&&m.size&&(h=[]),m.forEach((function(t){if(-1===w.indexOf(t)){var n=y.get(t);if(n){var i=b.indexOf(t);h.splice(i,0,e.createElement(ko,{key:Oo(n),isPresent:!1,onExitComplete:function(){y.delete(t),m.delete(t);var e=g.current.findIndex((function(e){return e.key===t}));if(g.current.splice(e,1),!m.size){if(g.current=p,!1===d.current)return;c(),o&&o()}},custom:r,presenceAffectsLayout:u},n))}}})),h=h.map((function(t){var n=t.key;return m.has(n)?t:e.createElement(ko,{key:Oo(t),isPresent:!0,presenceAffectsLayout:u},t)})),e.createElement(e.Fragment,null,m.size?h:h.map((function(t){return(0,e.cloneElement)(t)})))},No=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},Ro={measureLayout:No(["layout","layoutId","drag"]),animation:No(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:No(["exit"]),drag:No(["drag","dragControls"]),focus:No(["whileFocus"]),hover:No(["whileHover","onHoverStart","onHoverEnd"]),tap:No(["whileTap","onTap","onTapStart","onTapCancel"]),pan:No(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:No(["whileInView","onViewportEnter","onViewportLeave"])},Po=(0,e.createContext)({strict:!1}),jo=Object.keys(Ro),Io=jo.length,Lo=(0,e.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Mo=(0,e.createContext)({}),Bo={current:null},Do=!1;function Uo(t,n,r,i){var a=(0,e.useContext)(Po),o=(0,e.useContext)(Mo).visualElement,s=(0,e.useContext)(bo),l=function(){var t=(!Do&&function(){if(Do=!0,go)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Bo.current=e.matches};e.addListener(t),t()}else Bo.current=!1}(),Ka((0,e.useState)(Bo.current),1)[0]),n=(0,e.useContext)(Lo).reducedMotion;return"never"!==n&&("always"===n||t)}(),u=(0,e.useRef)(void 0);i||(i=a.renderer),!u.current&&i&&(u.current=i(t,{visualState:n,parent:o,props:r,presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial),shouldReduceMotion:l}));var c=u.current;return yo((function(){null==c||c.syncRender()})),(0,e.useEffect)((function(){var e;null===(e=null==c?void 0:c.animationState)||void 0===e||e.animateChanges()})),yo((function(){return function(){return null==c?void 0:c.notifyUnmount()}}),[]),c}function Fo(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function zo(e){return Array.isArray(e)}function Vo(e){return"string"==typeof e||zo(e)}function Ho(e,t,n,r,i){var a;return void 0===r&&(r={}),void 0===i&&(i={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),t}function Wo(e,t,n){var r=e.getProps();return Ho(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function qo(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Vo(e.initial)||Vo(e.animate)||Vo(e.whileHover)||Vo(e.whileDrag)||Vo(e.whileTap)||Vo(e.whileFocus)||Vo(e.exit)}function Go(e){return Boolean(qo(e)||e.variants)}function Zo(e){return Array.isArray(e)?e.join(" "):e}var Yo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},$o=1,Ko=(0,e.createContext)({}),Xo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Za(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(e.Component);function Qo(t){var n=t.preloadedFeatures,r=t.createVisualElement,i=t.projectionNodeConstructor,a=t.useRender,o=t.useVisualState,s=t.Component;return n&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?Ro.projectionNodeConstructor=e[t]:Ro[t].Component=e[t])}(n),(0,e.forwardRef)((function(t,n){var l=function(t){var n,r=t.layoutId,i=null===(n=(0,e.useContext)(Ao))||void 0===n?void 0:n.id;return i&&void 0!==r?i+"-"+r:r}(t);t=Ya(Ya({},t),{layoutId:l});var u=(0,e.useContext)(Lo),c=null,f=function(t){var n=function(e,t){if(qo(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Vo(n)?n:void 0,animate:Vo(r)?r:void 0}}return!1!==e.inherit?t:{}}(t,(0,e.useContext)(Mo)),r=n.initial,i=n.animate;return(0,e.useMemo)((function(){return{initial:r,animate:i}}),[Zo(r),Zo(i)])}(t),d=u.isStatic?void 0:wo((function(){if(Yo.hasEverUpdated)return $o++})),p=o(t,u.isStatic);return!u.isStatic&&go&&(f.visualElement=Uo(s,p,Ya(Ya({},u),t),r),function(t,n,r,i){var a,o=n.layoutId,s=n.layout,l=n.drag,u=n.dragConstraints,c=n.layoutScroll,f=(0,e.useContext)(Ko);i&&r&&!(null==r?void 0:r.projection)&&(r.projection=new i(t,r.getLatestValues(),null===(a=r.parent)||void 0===a?void 0:a.projection),r.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:Boolean(l)||u&&Fo(u),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:f,layoutScroll:c}))}(d,t,f.visualElement,i||Ro.projectionNodeConstructor),c=function(t,n,r){var i=[];(0,e.useContext)(Po);if(!n)return null;for(var a=0;a<Io;a++){var o=jo[a],s=Ro[o],l=s.isEnabled,u=s.Component;l(t)&&u&&i.push(e.createElement(u,Ya({key:o},t,{visualElement:n})))}return i}(t,f.visualElement)),e.createElement(Xo,{visualElement:f.visualElement,props:Ya(Ya({},u),t)},c,e.createElement(Mo.Provider,{value:f},a(s,t,d,function(t,n,r){return(0,e.useCallback)((function(e){var i;e&&(null===(i=t.mount)||void 0===i||i.call(t,e)),n&&(e?n.mount(e):n.unmount()),r&&("function"==typeof r?r(e):Fo(r)&&(r.current=e))}),[n])}(p,f.visualElement,n),p,u.isStatic,f.visualElement)))}))}var Jo=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function es(e){return"string"==typeof e&&!e.includes("-")&&!!(Jo.indexOf(e)>-1||/[A-Z]/.test(e))}var ts={},ns=["","X","Y","Z"],rs=["transformPerspective","x","y","z"];function is(e,t){return rs.indexOf(e)-rs.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return ns.forEach((function(t){return rs.push(e+t)}))}));var as=new Set(rs);function os(e){return as.has(e)}var ss=new Set(["originX","originY","originZ"]);function ls(e){return ss.has(e)}function us(e,t){var n=t.layout,r=t.layoutId;return os(e)||ls(e)||(n||void 0!==r)&&(!!ts[e]||"opacity"===e)}var cs=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},fs={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function ds(e){return e.startsWith("--")}var ps=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const hs=(e,t)=>n=>Math.max(Math.min(n,t),e),ms=e=>e%1?Number(e.toFixed(5)):e,gs=/(-)?([\d]*\.?[\d])+/g,ys=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,vs=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function bs(e){return"string"==typeof e}const ws=e=>({test:t=>bs(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>"".concat(t).concat(e)}),xs=ws("deg"),_s=ws("%"),Es=ws("px"),ks=ws("vh"),Ss=ws("vw"),As=Object.assign(Object.assign({},_s),{parse:e=>_s.parse(e)/100,transform:e=>_s.transform(100*e)}),Cs={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Os=Object.assign(Object.assign({},Cs),{transform:hs(0,1)}),Ts=Object.assign(Object.assign({},Cs),{default:1});var Ns=Ya(Ya({},Cs),{transform:Math.round}),Rs={borderWidth:Es,borderTopWidth:Es,borderRightWidth:Es,borderBottomWidth:Es,borderLeftWidth:Es,borderRadius:Es,radius:Es,borderTopLeftRadius:Es,borderTopRightRadius:Es,borderBottomRightRadius:Es,borderBottomLeftRadius:Es,width:Es,maxWidth:Es,height:Es,maxHeight:Es,size:Es,top:Es,right:Es,bottom:Es,left:Es,padding:Es,paddingTop:Es,paddingRight:Es,paddingBottom:Es,paddingLeft:Es,margin:Es,marginTop:Es,marginRight:Es,marginBottom:Es,marginLeft:Es,rotate:xs,rotateX:xs,rotateY:xs,rotateZ:xs,scale:Ts,scaleX:Ts,scaleY:Ts,scaleZ:Ts,skew:xs,skewX:xs,skewY:xs,distance:Es,translateX:Es,translateY:Es,translateZ:Es,x:Es,y:Es,z:Es,perspective:Es,transformPerspective:Es,opacity:Os,originX:As,originY:As,originZ:Es,zIndex:Ns,fillOpacity:Os,strokeOpacity:Os,numOctaves:Ns};function Ps(e,t,n,r){var i,a=e.style,o=e.vars,s=e.transform,l=e.transformKeys,u=e.transformOrigin;l.length=0;var c=!1,f=!1,d=!0;for(var p in t){var h=t[p];if(ds(p))o[p]=h;else{var m=Rs[p],g=ps(h,m);if(os(p)){if(c=!0,s[p]=g,l.push(p),!d)continue;h!==(null!==(i=m.default)&&void 0!==i?i:0)&&(d=!1)}else ls(p)?(u[p]=g,f=!0):a[p]=g}}c?a.transform=function(e,t,n,r){var i=e.transform,a=e.transformKeys,o=t.enableHardwareAcceleration,s=void 0===o||o,l=t.allowTransformNone,u=void 0===l||l,c="";a.sort(is);for(var f=!1,d=a.length,p=0;p<d;p++){var h=a[p];c+="".concat(fs[h]||h,"(").concat(i[h],") "),"z"===h&&(f=!0)}return!f&&s?c+="translateZ(0)":c=c.trim(),r?c=r(i,n?"":c):u&&n&&(c="none"),c}(e,n,d,r):r?a.transform=r({},""):!t.transform&&a.transform&&(a.transform="none"),f&&(a.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,i=void 0===r?"50%":r,a=e.originZ,o=void 0===a?0:a;return"".concat(n," ").concat(i," ").concat(o)}(u))}var js=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function Is(e,t,n){for(var r in t)cs(t[r])||us(r,n)||(e[r]=t[r])}function Ls(t,n,r){var i={};return Is(i,t.style||{},t),Object.assign(i,function(t,n,r){var i=t.transformTemplate;return(0,e.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};Ps(e,n,{enableHardwareAcceleration:!r},i);var t=e.style;return Ya(Ya({},e.vars),t)}),[n])}(t,n,r)),t.transformValues&&(i=t.transformValues(i)),i}function Ms(e,t,n){var r={},i=Ls(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=i,r}var Bs=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Ds(e){return Bs.has(e)}var Us,Fs=function(e){return!Ds(e)};try{(Us=require("@emotion/is-prop-valid").default)&&(Fs=function(e){return e.startsWith("on")?!Ds(e):Us(e)})}catch(e){}function zs(e,t,n){return"string"==typeof e?e:Es.transform(t+n*e)}var Vs={offset:"stroke-dashoffset",array:"stroke-dasharray"},Hs={offset:"strokeDashoffset",array:"strokeDasharray"};function Ws(e,t,n,r){var i=t.attrX,a=t.attrY,o=t.originX,s=t.originY,l=t.pathLength,u=t.pathSpacing,c=void 0===u?1:u,f=t.pathOffset,d=void 0===f?0:f;Ps(e,$a(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,h=e.style,m=e.dimensions;p.transform&&(m&&(h.transform=p.transform),delete p.transform),m&&(void 0!==o||void 0!==s||h.transform)&&(h.transformOrigin=function(e,t,n){var r=zs(t,e.x,e.width),i=zs(n,e.y,e.height);return"".concat(r," ").concat(i)}(m,void 0!==o?o:.5,void 0!==s?s:.5)),void 0!==i&&(p.x=i),void 0!==a&&(p.y=a),void 0!==l&&function(e,t,n,r,i){void 0===n&&(n=1),void 0===r&&(r=0),void 0===i&&(i=!0),e.pathLength=1;var a=i?Vs:Hs;e[a.offset]=Es.transform(-r);var o=Es.transform(t),s=Es.transform(n);e[a.array]="".concat(o," ").concat(s)}(p,l,c,d,!1)}var qs=function(){return Ya(Ya({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Gs(t,n){var r=(0,e.useMemo)((function(){var e=qs();return Ws(e,n,{enableHardwareAcceleration:!1},t.transformTemplate),Ya(Ya({},e.attrs),{style:Ya({},e.style)})}),[n]);if(t.style){var i={};Is(i,t.style,t),r.style=Ya(Ya({},i),r.style)}return r}function Zs(t){return void 0===t&&(t=!1),function(n,r,i,a,o,s){var l=o.latestValues,u=(es(n)?Gs:Ms)(r,l,s),c=function(e,t,n){var r={};for(var i in e)(Fs(i)||!0===n&&Ds(i)||!t&&!Ds(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(r,"string"==typeof n,t),f=Ya(Ya(Ya({},c),u),{ref:a});return i&&(f["data-projection-id"]=i),(0,e.createElement)(n,f)}}var Ys=/([a-z])([A-Z])/g,$s=function(e){return e.replace(Ys,"$1-$2").toLowerCase()};function Ks(e,t,n,r){var i=t.style,a=t.vars;for(var o in Object.assign(e.style,i,r&&r.getProjectionStyles(n)),a)e.style.setProperty(o,a[o])}var Xs=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Qs(e,t,n,r){for(var i in Ks(e,t,void 0,r),t.attrs)e.setAttribute(Xs.has(i)?i:$s(i),t.attrs[i])}function Js(e){var t=e.style,n={};for(var r in t)(cs(t[r])||us(r,e))&&(n[r]=t[r]);return n}function el(e){var t=Js(e);for(var n in e)cs(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function tl(e){return"object"==typeof e&&"function"==typeof e.start}var nl=function(e){return Array.isArray(e)},rl=function(e){return nl(e)?e[e.length-1]||0:e};function il(e){var t=cs(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}function al(e,t,n,r){var i=e.scrapeMotionValuesFromProps,a=e.createRenderState,o=e.onMount,s={latestValues:sl(t,n,r,i),renderState:a()};return o&&(s.mount=function(e){return o(t,e,s)}),s}var ol=function(t){return function(n,r){var i=(0,e.useContext)(Mo),a=(0,e.useContext)(bo);return r?al(t,n,i,a):wo((function(){return al(t,n,i,a)}))}};function sl(e,t,n,r){var i={},a=!1===(null==n?void 0:n.initial),o=r(e);for(var s in o)i[s]=il(o[s]);var l=e.initial,u=e.animate,c=qo(e),f=Go(e);t&&f&&!c&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=u||(u=t.animate));var d=a||!1===l,p=d?u:l;return p&&"boolean"!=typeof p&&!tl(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=Ho(e,t);if(n){var r=n.transitionEnd;n.transition;var a=$a(n,["transitionEnd","transition"]);for(var o in a){var s=a[o];Array.isArray(s)&&(s=s[d?s.length-1:0]),null!==s&&(i[o]=s)}for(var o in r)i[o]=r[o]}})),i}var ll,ul={useVisualState:ol({scrapeMotionValuesFromProps:el,createRenderState:qs,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}Ws(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),Qs(t,r)}})},cl={useVisualState:ol({scrapeMotionValuesFromProps:Js,createRenderState:js})};function fl(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function dl(t,n,r,i){(0,e.useEffect)((function(){var e=t.current;if(r&&e)return fl(e,n,r,i)}),[t,n,r,i])}function pl(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function hl(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(ll||(ll={}));var ml={pageX:0,pageY:0};function gl(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||ml;return{x:n[t+"X"],y:n[t+"Y"]}}function yl(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function vl(e,t){return void 0===t&&(t="page"),{point:hl(e)?gl(e,t):yl(e,t)}}var bl=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,vl(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},wl={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},xl={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function _l(e){return go&&null===window.onpointerdown?e:go&&null===window.ontouchstart?xl[e]:go&&null===window.onmousedown?wl[e]:e}function El(e,t,n,r){return fl(e,_l(t),bl(n,"pointerdown"===t),r)}function kl(e,t,n,r){return dl(e,_l(t),n&&bl(n,"pointerdown"===t),r)}function Sl(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Al=Sl("dragHorizontal"),Cl=Sl("dragVertical");function Ol(e){var t=!1;if("y"===e)t=Cl();else if("x"===e)t=Al();else{var n=Al(),r=Cl();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function Tl(){var e=Ol(!0);return!e||(e(),!1)}function Nl(e,t,n){return function(r,i){var a;pl(r)&&!Tl()&&(null===(a=e.animationState)||void 0===a||a.setActive(ll.Hover,t),null==n||n(r,i))}}var Rl=function(e,t){return!!t&&(e===t||Rl(e,t.parentElement))};const Pl=(e,t)=>n=>t(e(n)),jl=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(Pl)};n(3705),new Set;var Il=new WeakMap,Ll=new WeakMap,Ml=function(e){var t;null===(t=Il.get(e.target))||void 0===t||t(e)},Bl=function(e){e.forEach(Ml)};var Dl={some:0,all:1};function Ul(t,n,r,i){var a=i.root,o=i.margin,s=i.amount,l=void 0===s?"some":s,u=i.once;(0,e.useEffect)((function(){if(t){var e={root:null==a?void 0:a.current,rootMargin:o,threshold:"number"==typeof l?l:Dl[l]};return function(e,t,n){var r=function(e){var t=e.root,n=$a(e,["root"]),r=t||document;Ll.has(r)||Ll.set(r,{});var i=Ll.get(r),a=JSON.stringify(n);return i[a]||(i[a]=new IntersectionObserver(Bl,Ya({root:t},n))),i[a]}(t);return Il.set(e,n),r.observe(e),function(){Il.delete(e),r.unobserve(e)}}(r.getInstance(),e,(function(e){var t,i=e.isIntersecting;if(n.isInView!==i&&(n.isInView=i,!u||i||!n.hasEnteredView)){i&&(n.hasEnteredView=!0),null===(t=r.animationState)||void 0===t||t.setActive(ll.InView,i);var a=r.getProps(),o=i?a.onViewportEnter:a.onViewportLeave;null==o||o(e)}}))}}),[t,a,o,l])}function Fl(t,n,r,i){var a=i.fallback,o=void 0===a||a;(0,e.useEffect)((function(){t&&o&&requestAnimationFrame((function(){var e;n.hasEnteredView=!0;var t=r.getProps().onViewportEnter;null==t||t(null),null===(e=r.animationState)||void 0===e||e.setActive(ll.InView,!0)}))}),[t])}var zl=function(e){return function(t){return e(t),null}},Vl={inView:zl((function(t){var n=t.visualElement,r=t.whileInView,i=t.onViewportEnter,a=t.onViewportLeave,o=t.viewport,s=void 0===o?{}:o,l=(0,e.useRef)({hasEnteredView:!1,isInView:!1}),u=Boolean(r||i||a);s.once&&l.current.hasEnteredView&&(u=!1),("undefined"==typeof IntersectionObserver?Fl:Ul)(u,l.current,n,s)})),tap:zl((function(t){var n=t.onTap,r=t.onTapStart,i=t.onTapCancel,a=t.whileTap,o=t.visualElement,s=n||r||i||a,l=(0,e.useRef)(!1),u=(0,e.useRef)(null),c={passive:!(r||n||i||m)};function f(){var e;null===(e=u.current)||void 0===e||e.call(u),u.current=null}function d(){var e;return f(),l.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(ll.Tap,!1),!Tl()}function p(e,t){d()&&(Rl(o.getInstance(),e.target)?null==n||n(e,t):null==i||i(e,t))}function h(e,t){d()&&(null==i||i(e,t))}function m(e,t){var n;f(),l.current||(l.current=!0,u.current=jl(El(window,"pointerup",p,c),El(window,"pointercancel",h,c)),null===(n=o.animationState)||void 0===n||n.setActive(ll.Tap,!0),null==r||r(e,t))}kl(o,"pointerdown",s?m:void 0,c),Co(f)})),focus:zl((function(e){var t=e.whileFocus,n=e.visualElement;dl(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(ll.Focus,!0)}:void 0),dl(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(ll.Focus,!1)}:void 0)})),hover:zl((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;kl(i,"pointerenter",t||r?Nl(i,!0,t):void 0,{passive:!t}),kl(i,"pointerleave",n||r?Nl(i,!1,n):void 0,{passive:!n})}))};function Hl(){var t=(0,e.useContext)(bo);if(null===t)return[!0,null];var n=t.isPresent,r=t.onExitComplete,i=t.register,a=Eo();return(0,e.useEffect)((function(){return i(a)}),[]),!n&&r?[!1,function(){return null==r?void 0:r(a)}]:[!0]}function Wl(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function ql(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}Object.create,Object.create;const Gl=(e,t,n)=>Math.min(Math.max(n,e),t),Zl=.001;const Yl=12;function $l(e,t){return e*Math.sqrt(1-t*t)}const Kl=["duration","bounce"],Xl=["stiffness","damping","mass"];function Ql(e,t){return t.some((t=>void 0!==e[t]))}function Jl(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,a=ql(e,["from","to","restSpeed","restDelta"]);const o={done:!1,value:t};let{stiffness:s,damping:l,mass:u,velocity:c,duration:f,isResolvedFromDuration:d}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Ql(e,Xl)&&Ql(e,Kl)){const n=function(e){let t,n,{duration:r=800,bounce:i=.25,velocity:a=0,mass:o=1}=e,s=1-i;s=Gl(.05,1,s),r=Gl(.01,10,r/1e3),s<1?(t=e=>{const t=e*s,n=t*r,i=t-a,o=$l(e,s),l=Math.exp(-n);return Zl-i/o*l},n=e=>{const n=e*s*r,i=n*a+a,o=Math.pow(s,2)*Math.pow(e,2)*r,l=Math.exp(-n),u=$l(Math.pow(e,2),s);return(-t(e)+Zl>0?-1:1)*((i-o)*l)/u}):(t=e=>Math.exp(-e*r)*((e-a)*r+1)-Zl,n=e=>Math.exp(-e*r)*(r*r*(a-e)));const l=function(e,t,n){let r=n;for(let n=1;n<Yl;n++)r-=e(r)/t(r);return r}(t,n,5/r);if(r*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:r};{const e=Math.pow(l,2)*o;return{stiffness:e,damping:2*s*Math.sqrt(o*e),duration:r}}}(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(a),p=eu,h=eu;function m(){const e=c?-c/1e3:0,r=n-t,a=l/(2*Math.sqrt(s*u)),o=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),a<1){const t=$l(o,a);p=i=>{const s=Math.exp(-a*o*i);return n-s*((e+a*o*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},h=n=>{const i=Math.exp(-a*o*n);return a*o*i*(Math.sin(t*n)*(e+a*o*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+a*o*r)-t*r*Math.sin(t*n))}}else if(1===a)p=t=>n-Math.exp(-o*t)*(r+(e+o*r)*t);else{const t=o*Math.sqrt(a*a-1);p=i=>{const s=Math.exp(-a*o*i),l=Math.min(t*i,300);return n-s*((e+a*o*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{const t=p(e);if(d)o.done=e>=f;else{const a=1e3*h(e),s=Math.abs(a)<=r,l=Math.abs(n-t)<=i;o.done=s&&l}return o.value=o.done?n:t,o},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}Jl.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const eu=e=>0,tu=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},nu=(e,t,n)=>-n*e+n*t+e,ru=(e,t)=>n=>Boolean(bs(n)&&vs.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),iu=(e,t,n)=>r=>{if(!bs(r))return r;const[i,a,o,s]=r.match(gs);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:void 0!==s?parseFloat(s):1}},au=hs(0,255),ou=Object.assign(Object.assign({},Cs),{transform:e=>Math.round(au(e))}),su={test:ru("rgb","red"),parse:iu("red","green","blue"),transform:e=>{let{red:t,green:n,blue:r,alpha:i=1}=e;return"rgba("+ou.transform(t)+", "+ou.transform(n)+", "+ou.transform(r)+", "+ms(Os.transform(i))+")"}},lu={test:ru("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:su.transform},uu={test:ru("hsl","hue"),parse:iu("hue","saturation","lightness"),transform:e=>{let{hue:t,saturation:n,lightness:r,alpha:i=1}=e;return"hsla("+Math.round(t)+", "+_s.transform(ms(n))+", "+_s.transform(ms(r))+", "+ms(Os.transform(i))+")"}};function cu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function fu(e){let{hue:t,saturation:n,lightness:r,alpha:i}=e;t/=360,n/=100,r/=100;let a=0,o=0,s=0;if(n){const e=r<.5?r*(1+n):r+n-r*n,i=2*r-e;a=cu(i,e,t+1/3),o=cu(i,e,t),s=cu(i,e,t-1/3)}else a=o=s=r;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}const du=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},pu=[lu,su,uu],hu=e=>pu.find((t=>t.test(e))),mu=e=>"'".concat(e,"' is not an animatable color. Use the equivalent color code instead."),gu=(e,t)=>{let n=hu(e),r=hu(t);mu(e),mu(t);let i=n.parse(e),a=r.parse(t);n===uu&&(i=fu(i),n=su),r===uu&&(a=fu(a),r=su);const o=Object.assign({},i);return e=>{for(const t in o)"alpha"!==t&&(o[t]=du(i[t],a[t],e));return o.alpha=nu(i.alpha,a.alpha,e),n.transform(o)}},yu={test:e=>su.test(e)||lu.test(e)||uu.test(e),parse:e=>su.test(e)?su.parse(e):uu.test(e)?uu.parse(e):lu.parse(e),transform:e=>bs(e)?e:e.hasOwnProperty("red")?su.transform(e):uu.transform(e)},vu="${c}",bu="${n}";function wu(e){"number"==typeof e&&(e="".concat(e));const t=[];let n=0;const r=e.match(ys);r&&(n=r.length,e=e.replace(ys,vu),t.push(...r.map(yu.parse)));const i=e.match(gs);return i&&(e=e.replace(gs,bu),t.push(...i.map(Cs.parse))),{values:t,numColors:n,tokenised:e}}function xu(e){return wu(e).values}function _u(e){const{values:t,numColors:n,tokenised:r}=wu(e),i=t.length;return e=>{let t=r;for(let r=0;r<i;r++)t=t.replace(r<n?vu:bu,r<n?yu.transform(e[r]):ms(e[r]));return t}}const Eu=e=>"number"==typeof e?0:e,ku={test:function(e){var t,n,r,i;return isNaN(e)&&bs(e)&&(null!==(n=null===(t=e.match(gs))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(ys))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:xu,createTransformer:_u,getAnimatableNone:function(e){const t=xu(e);return _u(e)(t.map(Eu))}},Su=e=>"number"==typeof e;function Au(e,t){return Su(e)?n=>nu(e,t,n):yu.test(e)?gu(e,t):Nu(e,t)}const Cu=(e,t)=>{const n=[...e],r=n.length,i=e.map(((e,n)=>Au(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}},Ou=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=Au(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function Tu(e){const t=ku.parse(e),n=t.length;let r=0,i=0,a=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?a++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:a}}const Nu=(e,t)=>{const n=ku.createTransformer(t),r=Tu(e),i=Tu(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?jl(Cu(r.parsed,i.parsed),n):("Complex values '".concat(e,"' and '").concat(t,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition."),n=>"".concat(n>0?t:e))},Ru=(e,t)=>n=>nu(e,t,n);function Pu(e,t,n){const r=[],i=n||("number"==typeof(a=e[0])?Ru:"string"==typeof a?yu.test(a)?gu:Nu:Array.isArray(a)?Cu:"object"==typeof a?Ou:void 0);var a;const o=e.length-1;for(let n=0;n<o;n++){let a=i(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;a=jl(e,a)}r.push(a)}return r}function ju(e,t){let{clamp:n=!0,ease:r,mixer:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=e.length;t.length,!r||!Array.isArray(r)||r.length,e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const o=Pu(t,r,i),s=2===a?function(e,t){let[n,r]=e,[i]=t;return e=>i(tu(n,r,e))}(e,o):function(e,t){const n=e.length,r=n-1;return i=>{let a=0,o=!1;if(i<=e[0]?o=!0:i>=e[r]&&(a=r-1,o=!0),!o){let t=1;for(;t<n&&!(e[t]>i||t===r);t++);a=t-1}const s=tu(e[a],e[a+1],i);return t[a](s)}}(e,o);return n?t=>s(Gl(e[0],e[a-1],t)):s}const Iu=e=>t=>1-e(1-t),Lu=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Mu=e=>t=>t*t*((e+1)*t-e),Bu=e=>e,Du=(2,e=>Math.pow(e,2));const Uu=Iu(Du),Fu=Lu(Du),zu=e=>1-Math.sin(Math.acos(e)),Vu=Iu(zu),Hu=Lu(Vu),Wu=Mu(1.525),qu=Iu(Wu),Gu=Lu(Wu),Zu=(e=>{const t=Mu(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),Yu=e=>{if(1===e||0===e)return e;const t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},$u=Iu(Yu);function Ku(e,t){return e.map((()=>t||Fu)).splice(0,e.length-1)}function Xu(e){let{from:t=0,to:n=1,ease:r,offset:i,duration:a=300}=e;const o={done:!1,value:t},s=Array.isArray(n)?n:[t,n],l=function(e,t){return e.map((e=>e*t))}(i&&i.length===s.length?i:function(e){const t=e.length;return e.map(((e,n)=>0!==n?n/(t-1):0))}(s),a);function u(){return ju(l,s,{ease:Array.isArray(r)?r:Ku(s,r)})}let c=u();return{next:e=>(o.value=c(e),o.done=e>=a,o),flipTarget:()=>{s.reverse(),c=u()}}}const Qu={keyframes:Xu,spring:Jl,decay:function(e){let{velocity:t=0,from:n=0,power:r=.8,timeConstant:i=350,restDelta:a=.5,modifyTarget:o}=e;const s={done:!1,value:n};let l=r*t;const u=n+l,c=void 0===o?u:o(u);return c!==u&&(l=c-n),{next:e=>{const t=-l*Math.exp(-e/i);return s.done=!(t>a||t<-a),s.value=s.done?c:c+t,s},flipTarget:()=>{}}}};function Ju(e,t){return e-t-(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)}const ec=e=>{const t=t=>{let{delta:n}=t;return e(n)};return{start:()=>mo.update(t,!0),stop:()=>lo.update(t)}};function tc(e){var t,n,{from:r,autoplay:i=!0,driver:a=ec,elapsed:o=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:f,onComplete:d,onRepeat:p,onUpdate:h}=e,m=ql(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let g,y,v,{to:b}=m,w=0,x=m.duration,_=!1,E=!0;const k=function(e){if(Array.isArray(e.to))return Xu;if(Qu[e.type])return Qu[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Xu:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Jl:Xu}(m);(null===(n=(t=k).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(v=ju([0,100],[r,b],{clamp:!1}),r=0,b=100);const S=k(Object.assign(Object.assign({},m),{from:r,to:b}));return i&&(null==c||c(),g=a((function(e){if(E||(e=-e),o+=e,!_){const e=S.next(Math.max(0,o));y=e.value,v&&(y=v(y)),_=E?e.done:o<=0}null==h||h(y),_&&(0===w&&(null!=x||(x=o)),w<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(o,x,u,E)&&(w++,"reverse"===l?(E=w%2==0,o=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?t-(e-t)+n:Ju(t+-e,t,n)}(o,x,u,E)):(o=Ju(o,x,u),"mirror"===l&&S.flipTarget()),_=!1,p&&p()):(g.stop(),d&&d()))})),g.start()),{stop:()=>{null==f||f(),g.stop()}}}function nc(e,t){return t?e*(1e3/t):0}var rc=function(e){return 1e3*e};const ic=(e,t)=>1-3*t+3*e,ac=(e,t)=>3*t-6*e,oc=e=>3*e,sc=(e,t,n)=>((ic(t,n)*e+ac(t,n))*e+oc(t))*e,lc=(e,t,n)=>3*ic(t,n)*e*e+2*ac(t,n)*e+oc(t),uc=.1;var cc={linear:Bu,easeIn:Du,easeInOut:Fu,easeOut:Uu,circIn:zu,circInOut:Hu,circOut:Vu,backIn:Wu,backInOut:Gu,backOut:qu,anticipate:Zu,bounceIn:$u,bounceInOut:e=>e<.5?.5*(1-Yu(1-2*e)):.5*Yu(2*e-1)+.5,bounceOut:Yu},fc=function(e){if(Array.isArray(e)){e.length;var t=Ka(e,4);return function(e,t,n,r){if(e===t&&n===r)return Bu;const i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=sc(t*uc,e,n);function a(t){let r=0,a=1;for(;10!==a&&i[a]<=t;++a)r+=uc;--a;const o=r+(t-i[a])/(i[a+1]-i[a])*uc,s=lc(o,e,n);return s>=.001?function(e,t,n,r){for(let i=0;i<8;++i){const i=lc(t,n,r);if(0===i)return t;t-=(sc(t,n,r)-e)/i}return t}(t,o,e,n):0===s?o:function(e,t,n,r,i){let a,o,s=0;do{o=t+(n-t)/2,a=sc(o,r,i)-e,a>0?n=o:t=o}while(Math.abs(a)>1e-7&&++s<10);return o}(t,r,r+uc,e,n)}return e=>0===e||1===e?e:sc(a(e),t,r)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),cc[e]):e},dc=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!ku.test(t)||t.startsWith("url(")))},pc=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},hc=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},mc=function(){return{type:"keyframes",ease:"linear",duration:.3}},gc=function(e){return{type:"keyframes",duration:.8,values:e}},yc={x:pc,y:pc,z:pc,rotate:pc,rotateX:pc,rotateY:pc,rotateZ:pc,scaleX:hc,scaleY:hc,scale:hc,opacity:mc,backgroundColor:mc,color:mc,default:hc};const vc=new Set(["brightness","contrast","saturate","opacity"]);function bc(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(gs)||[];if(!r)return e;const i=n.replace(r,"");let a=vc.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const wc=/([a-z-]*)\(.*?\)/g,xc=Object.assign(Object.assign({},ku),{getAnimatableNone:e=>{const t=e.match(wc);return t?t.map(bc).join(" "):e}});var _c=Ya(Ya({},Rs),{color:yu,backgroundColor:yu,outlineColor:yu,fill:yu,stroke:yu,borderColor:yu,borderTopColor:yu,borderRightColor:yu,borderBottomColor:yu,borderLeftColor:yu,filter:xc,WebkitFilter:xc}),Ec=function(e){return _c[e]};function kc(e,t){var n,r=Ec(e);return r!==xc&&(r=ku),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var Sc=!1;function Ac(e,t,n){var r;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Xa([],Ka(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=$a(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Ya(Ya({},e),function(e,t){var n;return n=nl(t)?gc:yc[e]||yc.default,Ya({to:t},n(t))}(n,t.to))),Ya(Ya({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,a=e.loop,o=$a(e,["ease","times","yoyo","flip","loop"]),s=Ya({},o);return n&&(s.offset=n),o.duration&&(s.duration=rc(o.duration)),o.repeatDelay&&(s.repeatDelay=rc(o.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(fc):fc(t)),"tween"===o.type&&(s.type="keyframes"),(r||a||i)&&(!0,r?s.repeatType="reverse":a?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=a||r||i||o.repeat),"spring"!==o.type&&(s.type="keyframes"),s}(e))}function Cc(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Oc(e){return"number"==typeof e?0:kc("",e)}function Tc(e,t){return e[t]||e.default||e}function Nc(e,t,n,r){return void 0===r&&(r={}),Sc&&(r={type:!1}),t.start((function(i){var a,o,s=function(e,t,n,r,i){var a,o=Tc(r,e),s=null!==(a=o.from)&&void 0!==a?a:t.get(),l=dc(e,n);"none"===s&&l&&"string"==typeof n?s=kc(e,n):Cc(s)&&"string"==typeof n?s=Oc(n):!Array.isArray(n)&&Cc(n)&&"string"==typeof s&&(n=Oc(s));var u=dc(e,s);return"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property."),u&&l&&!1!==o.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===o.type||"decay"===o.type?function(e){let t,{from:n=0,velocity:r=0,min:i,max:a,power:o=.8,timeConstant:s=750,bounceStiffness:l=500,bounceDamping:u=10,restDelta:c=1,modifyTarget:f,driver:d,onUpdate:p,onComplete:h,onStop:m}=e;function g(e){return void 0!==i&&e<i||void 0!==a&&e>a}function y(e){return void 0===i?a:void 0===a||Math.abs(i-e)<Math.abs(a-e)?i:a}function v(e){null==t||t.stop(),t=tc(Object.assign(Object.assign({},e),{driver:d,onUpdate:t=>{var n;null==p||p(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:h,onStop:m}))}function b(e){v(Object.assign({type:"spring",stiffness:l,damping:u,restDelta:c},e))}if(g(n))b({from:n,velocity:r,to:y(n)});else{let e=o*r+n;void 0!==f&&(e=f(e));const t=y(e),a=t===i?-1:1;let l,u;const d=e=>{l=u,u=e,r=nc(e-l,ho().delta),(1===a&&e>t||-1===a&&e<t)&&b({from:e,to:t,velocity:r})};v({type:"decay",from:n,velocity:r,timeConstant:s,power:o,restDelta:c,modifyTarget:f,onUpdate:g(e)?d:void 0})}return{stop:()=>null==t?void 0:t.stop()}}(Ya(Ya({},r),o)):tc(Ya(Ya({},Ac(o,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=o.onUpdate)||void 0===t||t.call(o,e)},onComplete:function(){var e;r.onComplete(),null===(e=o.onComplete)||void 0===e||e.call(o)}}))}:function(){var e,r,a=rl(n);return t.set(a),i(),null===(e=null==o?void 0:o.onUpdate)||void 0===e||e.call(o,a),null===(r=null==o?void 0:o.onComplete)||void 0===r||r.call(o),{stop:function(){}}}}(e,t,n,r,i),l=function(e,t){var n,r;return null!==(r=null!==(n=(Tc(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return o=s()};return l?a=window.setTimeout(u,rc(l)):u(),function(){clearTimeout(a),null==o||o.stop()}}))}var Rc=function(e){return/^0[^.\s]+$/.test(e)};function Pc(e,t){-1===e.indexOf(t)&&e.push(t)}function jc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ic=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Pc(this.subscriptions,e),function(){return jc(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var i=0;i<r;i++){var a=this.subscriptions[i];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Lc=function(){function e(e){var t=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Ic,this.velocityUpdateSubscribers=new Ic,this.renderSubscribers=new Ic,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=ho(),i=r.delta,a=r.timestamp;t.lastUpdated!==a&&(t.timeDelta=i,t.lastUpdated=a,mo.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),n&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return mo.postRender(t.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==t.lastUpdated&&(t.prev=t.current,t.velocityUpdateSubscribers.notify(t.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=function(e){return!isNaN(parseFloat(e))}(this.current)}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?nc(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Mc(e){return new Lc(e)}var Bc=function(e){return function(t){return t.test(e)}},Dc=[Cs,Es,_s,xs,Ss,ks,{test:function(e){return"auto"===e},parse:function(e){return e}}],Uc=function(e){return Dc.find(Bc(e))},Fc=Xa(Xa([],Ka(Dc),!1),[yu,ku],!1),zc=function(e){return Fc.find(Bc(e))};function Vc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Mc(n))}function Hc(e,t){if(t)return(t[e]||t.default||t).from}function Wc(e,t,n){var r;void 0===n&&(n={});var i=Wo(e,t,n.custom),a=(i||{}).transition,o=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(o=n.transitionOverride);var s=i?function(){return qc(e,i,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var i=o.delayChildren,a=void 0===i?0:i,s=o.staggerChildren,l=o.staggerDirection;return function(e,t,n,r,i,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=1);var o=[],s=(e.variantChildren.size-1)*r,l=1===i?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(Gc).forEach((function(e,r){o.push(Wc(e,t,Ya(Ya({},a),{delay:n+l(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(o)}(e,t,a+r,s,l,n)}:function(){return Promise.resolve()},u=o.when;if(u){var c=Ka("beforeChildren"===u?[s,l]:[l,s],2),f=c[0],d=c[1];return f().then(d)}return Promise.all([s(),l(n.delay)])}function qc(e,t,n){var r,i=void 0===n?{}:n,a=i.delay,o=void 0===a?0:a,s=i.transitionOverride,l=i.type,u=e.makeTargetAnimatable(t),c=u.transition,f=void 0===c?e.getDefaultTransition():c,d=u.transitionEnd,p=$a(u,["transition","transitionEnd"]);s&&(f=s);var h=[],m=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var g in p){var y=e.getValue(g),v=p[g];if(!(!y||void 0===v||m&&Zc(m,g))){var b=Ya({delay:o},f);e.shouldReduceMotion&&os(g)&&(b=Ya(Ya({},b),{type:!1,delay:0}));var w=Nc(g,y,v,b);h.push(w)}}return Promise.all(h).then((function(){d&&function(e,t){var n=Wo(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,a=void 0===i?{}:i;r.transition;var o=$a(r,["transitionEnd","transition"]);for(var s in o=Ya(Ya({},o),a))Vc(e,s,rl(o[s]))}(e,d)}))}function Gc(e,t){return e.sortNodePosition(t)}function Zc(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}var Yc=[ll.Animate,ll.InView,ll.Focus,ll.Hover,ll.Tap,ll.Drag,ll.Exit],$c=Xa([],Ka(Yc),!1).reverse(),Kc=Yc.length;function Xc(e){var t=function(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var i=t.map((function(t){return Wc(e,t,n)}));r=Promise.all(i)}else if("string"==typeof t)r=Wc(e,t,n);else{var a="function"==typeof t?Wo(e,t,n.custom):t;r=qc(e,a,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),n=function(){var e;return(e={})[ll.Animate]=Qc(!0),e[ll.InView]=Qc(),e[ll.Hover]=Qc(),e[ll.Tap]=Qc(),e[ll.Drag]=Qc(),e[ll.Focus]=Qc(),e[ll.Exit]=Qc(),e}(),r={},i=!0,a=function(t,n){var r=Wo(e,n);if(r){r.transition;var i=r.transitionEnd,a=$a(r,["transition","transitionEnd"]);t=Ya(Ya(Ya({},t),a),i)}return t};function o(o,s){for(var l,u=e.getProps(),c=e.getVariantContext(!0)||{},f=[],d=new Set,p={},h=1/0,m=function(t){var r=$c[t],m=n[r],g=null!==(l=u[r])&&void 0!==l?l:c[r],y=Vo(g),v=r===s?m.isActive:null;!1===v&&(h=t);var b=g===c[r]&&g!==u[r]&&y;if(b&&i&&e.manuallyAnimateOnMount&&(b=!1),m.protectedKeys=Ya({},p),!m.isActive&&null===v||!g&&!m.prevProp||tl(g)||"boolean"==typeof g)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!zo(t)&&!Wl(t,e)}(m.prevProp,g),x=w||r===s&&m.isActive&&!b&&y||t>h&&y,_=Array.isArray(g)?g:[g],E=_.reduce(a,{});!1===v&&(E={});var k=m.prevResolvedValues,S=void 0===k?{}:k,A=Ya(Ya({},S),E),C=function(e){x=!0,d.delete(e),m.needsAnimating[e]=!0};for(var O in A){var T=E[O],N=S[O];p.hasOwnProperty(O)||(T!==N?nl(T)&&nl(N)?!Wl(T,N)||w?C(O):m.protectedKeys[O]=!0:void 0!==T?C(O):d.add(O):void 0!==T&&d.has(O)?C(O):m.protectedKeys[O]=!0)}m.prevProp=g,m.prevResolvedValues=E,m.isActive&&(p=Ya(Ya({},p),E)),i&&e.blockInitialAnimation&&(x=!1),x&&!b&&f.push.apply(f,Xa([],Ka(_.map((function(e){return{animation:e,options:Ya({type:r},o)}}))),!1))},g=0;g<Kc;g++)m(g);if(r=Ya({},p),d.size){var y={};d.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)})),f.push({animation:y})}var v=Boolean(f.length);return i&&!1===u.initial&&!e.manuallyAnimateOnMount&&(v=!1),i=!1,v?t(f):Promise.resolve()}return{isAnimated:function(e){return void 0!==r[e]},animateChanges:o,setActive:function(t,r,i){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;var s=o(i,t);for(var l in n)n[l].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function Qc(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Jc={animation:zl((function(t){var n=t.visualElement,r=t.animate;n.animationState||(n.animationState=Xc(n)),tl(r)&&(0,e.useEffect)((function(){return r.subscribe(n)}),[r])})),exit:zl((function(t){var n=t.custom,r=t.visualElement,i=Ka(Hl(),2),a=i[0],o=i[1],s=(0,e.useContext)(bo);(0,e.useEffect)((function(){var e,t;r.isPresent=a;var i=null===(e=r.animationState)||void 0===e?void 0:e.setActive(ll.Exit,!a,{custom:null!==(t=null==s?void 0:s.custom)&&void 0!==t?t:n});!a&&(null==i||i.then(o))}),[a])}))};const ef=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),tf=e=>ef(e)&&e.hasOwnProperty("z"),nf=(e,t)=>Math.abs(e-t);function rf(e,t){if(Su(e)&&Su(t))return nf(e,t);if(ef(e)&&ef(t)){const n=nf(e.x,t.x),r=nf(e.y,t.y),i=tf(e)&&tf(t)?nf(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}var af=function(){function e(e,t,n){var r=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=uf(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=rf(e.offset,{x:0,y:0})>=3;if(t||n){var i=e.point,a=ho().timestamp;r.history.push(Ya(Ya({},i),{timestamp:a}));var o=r.handlers,s=o.onStart,l=o.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=of(t,r.transformPagePoint),pl(e)&&0===e.buttons?r.handlePointerUp(e,t):mo.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,i=n.onEnd,a=n.onSessionEnd,o=uf(of(t,r.transformPagePoint),r.history);r.startEvent&&i&&i(e,o),a&&a(e,o)},!(hl(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var a=of(vl(e),this.transformPagePoint),o=a.point,s=ho().timestamp;this.history=[Ya(Ya({},o),{timestamp:s})];var l=t.onSessionStart;l&&l(e,uf(a,this.history)),this.removeListeners=jl(El(window,"pointermove",this.handlePointerMove),El(window,"pointerup",this.handlePointerUp),El(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),lo.update(this.updatePoint)},e}();function of(e,t){return t?{point:t(e.point)}:e}function sf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function uf(e,t){var n=e.point;return{point:n,delta:sf(n,ff(t)),offset:sf(n,cf(t)),velocity:df(t,.1)}}function cf(e){return e[0]}function ff(e){return e[e.length-1]}function df(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=ff(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>rc(t)));)n--;if(!r)return{x:0,y:0};var a=(i.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function pf(e){return e.max-e.min}function hf(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),rf(e,t)<n}function mf(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=nu(t.min,t.max,e.origin),e.scale=pf(n)/pf(t),(hf(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=nu(n.min,n.max,e.origin)-e.originPoint,(hf(e.translate)||isNaN(e.translate))&&(e.translate=0)}function gf(e,t,n,r){mf(e.x,t.x,n.x,null==r?void 0:r.originX),mf(e.y,t.y,n.y,null==r?void 0:r.originY)}function yf(e,t,n){e.min=n.min+t.min,e.max=e.min+pf(t)}function vf(e,t,n){e.min=t.min-n.min,e.max=e.min+pf(t)}function bf(e,t,n){vf(e.x,t.x,n.x),vf(e.y,t.y,n.y)}function wf(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function xf(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=Ka([i,r],2))[0],i=n[1]),{min:r,max:i}}var _f=.35;function Ef(e,t,n){return{min:kf(e,t),max:kf(e,n)}}function kf(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Sf(e){return[e("x"),e("y")]}function Af(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function Cf(e){return void 0===e||1===e}function Of(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Cf(t)||!Cf(n)||!Cf(r)}function Tf(e){return Of(e)||Nf(e.x)||Nf(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Nf(e){return e&&"0%"!==e}function Rf(e,t,n){return n+t*(e-n)}function Pf(e,t,n,r,i){return void 0!==i&&(e=Rf(e,i,r)),Rf(e,n,r)+t}function jf(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Pf(e.min,t,n,r,i),e.max=Pf(e.max,t,n,r,i)}function If(e,t){var n=t.x,r=t.y;jf(e.x,n.translate,n.scale,n.originPoint),jf(e.y,r.translate,r.scale,r.originPoint)}function Lf(e,t){e.min=e.min+t,e.max=e.max+t}function Mf(e,t,n){var r=Ka(n,3),i=r[0],a=r[1],o=r[2],s=void 0!==t[o]?t[o]:.5,l=nu(e.min,e.max,s);jf(e,t[i],t[a],l,t.scale)}var Bf=["x","scaleX","originX"],Df=["y","scaleY","originY"];function Uf(e,t){Mf(e.x,t,Bf),Mf(e.y,t,Df)}function Ff(e,t){return Af(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var zf=new WeakMap,Vf=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,i=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new af(e,{onSessionStart:function(e){n.stopAnimation(),i&&n.snapToCursor(vl(e,"page").point)},onStart:function(e,t){var r,i=n.getProps(),a=i.drag,o=i.dragPropagation,s=i.onDragStart;(!a||o||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Ol(a),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Sf((function(e){var t,r,i=n.getAxisMotionValue(e).get()||0;if(_s.test(i)){var a=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];a&&(i=pf(a)*(parseFloat(i)/100))}n.originPoint[e]=i})),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(ll.Drag,!0))},onMove:function(e,t){var r=n.getProps(),i=r.dragPropagation,a=r.dragDirectionLock,o=r.onDirectionLock,s=r.onDrag;if(i||n.openGlobalLock){var l=t.offset;if(a&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(l),void(null!==n.currentDirection&&(null==o||o(n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var i=this.getProps().onDragEnd;null==i||i(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(ll.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Hf(e,r,this.currentDirection)){var i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var r=t.min,i=t.max;return void 0!==r&&e<r?e=n?nu(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?nu(i,e,n.max):Math.min(e,i)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,i=(this.visualElement.projection||{}).layout,a=this.constraints;n&&Fo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(e,t){var n=t.top,r=t.left,i=t.bottom,a=t.right;return{x:wf(e.x,r,a),y:wf(e.y,n,i)}}(i.actual,n),this.elastic=function(e){return void 0===e&&(e=_f),!1===e?e=0:!0===e&&(e=_f),{x:Ef(e,"left","right"),y:Ef(e,"top","bottom")}}(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Sf((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Fo(t))return!1;var r=t.current,i=this.visualElement.projection;if(!i||!i.layout)return!1;var a=function(e,t,n){var r=Ff(e,n),i=t.scroll;return i&&(Lf(r.x,i.x),Lf(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o=function(e,t){return{x:xf(e.x,t.x),y:xf(e.y,t.y)}}(i.layout.actual,a);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(o));this.hasMutatedConstraints=!!s,s&&(o=Af(s))}return o},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,i=n.dragMomentum,a=n.dragElastic,o=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,u=this.constraints||{},c=Sf((function(n){var l;if(Hf(n,r,t.currentDirection)){var c=null!==(l=null==u?void 0:u[n])&&void 0!==l?l:{};s&&(c={min:0,max:0});var f=a?200:1e6,d=a?40:1e7,p=Ya(Ya({type:"inertia",velocity:i?e[n]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10},o),c);return t.startAxisValueAnimation(n,p)}}));return Promise.all(c).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return Nc(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Sf((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;Sf((function(n){if(Hf(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,i=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n],o=a.min,s=a.max;i.set(e[n]-nu(o,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,i=n.dragConstraints,a=this.visualElement.projection;if(Fo(i)&&a&&this.constraints){this.stopAnimation();var o={x:0,y:0};Sf((function(e){var n=t.getAxisMotionValue(e);if(n){var r=n.get();o[e]=function(e,t){var n=.5,r=pf(e),i=pf(t);return i>r?n=tu(t.min,t.max-r,e.min):r>i&&(n=tu(e.min,e.max-i,t.min)),Gl(0,1,n)}({min:r,max:r},t.constraints[e])}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout(),this.resolveConstraints(),Sf((function(e){if(Hf(e,r,null)){var n=t.getAxisMotionValue(e),i=t.constraints[e],a=i.min,s=i.max;n.set(nu(a,s,o[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;zf.set(this.visualElement,this);var n=El(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)})),r=function(){Fo(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,a=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();var o=fl(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return i.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(Sf((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){o(),n(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,i=void 0!==r&&r,a=e.dragPropagation,o=void 0!==a&&a,s=e.dragConstraints,l=void 0!==s&&s,u=e.dragElastic,c=void 0===u?_f:u,f=e.dragMomentum,d=void 0===f||f;return Ya(Ya({},e),{drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:l,dragElastic:c,dragMomentum:d})},e}();function Hf(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Wf={pan:zl((function(t){var n=t.onPan,r=t.onPanStart,i=t.onPanEnd,a=t.onPanSessionStart,o=t.visualElement,s=n||r||i||a,l=(0,e.useRef)(null),u=(0,e.useContext)(Lo).transformPagePoint,c={onSessionStart:a,onStart:r,onMove:n,onEnd:function(e,t){l.current=null,i&&i(e,t)}};(0,e.useEffect)((function(){null!==l.current&&l.current.updateHandlers(c)})),kl(o,"pointerdown",s&&function(e){l.current=new af(e,c,{transformPagePoint:u})}),Co((function(){return l.current&&l.current.end()}))})),drag:zl((function(t){var n=t.dragControls,r=t.visualElement,i=wo((function(){return new Vf(r)}));(0,e.useEffect)((function(){return n&&n.subscribe(i)}),[i,n]),(0,e.useEffect)((function(){return i.addListeners()}),[i])}))},qf=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],Gf=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,i=e.getBaseTarget,a=e.makeTargetAnimatable,o=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,u=e.removeValueFromRenderState,c=e.sortNodePosition,f=e.scrapeMotionValuesFromProps;return function(e,t){var d=e.parent,p=e.props,h=e.presenceId,m=e.blockInitialAnimation,g=e.visualState,y=e.shouldReduceMotion;void 0===t&&(t={});var v,b,w=!1,x=g.latestValues,_=g.renderState,E=function(){var e=qf.map((function(){return new Ic})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){qf.forEach((function(r){var i,a="on"+r,o=e[a];null===(i=t[r])||void 0===i||i.call(t),o&&(t[r]=n[a](o))}))}};return e.forEach((function(e,t){n["on"+qf[t]]=function(t){return e.add(t)},n["notify"+qf[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Xa([],Ka(t),!1))}})),n}(),k=new Map,S=new Map,A={},C=Ya({},x);function O(){v&&w&&(T(),s(v,_,p.style,B.projection))}function T(){r(B,_,x,t,p)}function N(){E.notifyUpdate(x)}function R(e,t){var n=t.onChange((function(t){x[e]=t,p.onUpdate&&mo.update(N,!1,!0)})),r=t.onRenderRequest(B.scheduleRender);S.set(e,(function(){n(),r()}))}var P=f(p);for(var j in P){var I=P[j];void 0!==x[j]&&cs(I)&&I.set(x[j],!1)}var L=qo(p),M=Go(p),B=Ya(Ya({treeType:n,current:null,depth:d?d.depth+1:0,parent:d,children:new Set,presenceId:h,shouldReduceMotion:y,variantChildren:M?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==d?void 0:d.isMounted()),blockInitialAnimation:m,isMounted:function(){return Boolean(v)},mount:function(e){w=!0,v=B.current=e,B.projection&&B.projection.mount(e),M&&d&&!L&&(b=null==d?void 0:d.addVariantChild(B)),k.forEach((function(e,t){return R(t,e)})),null==d||d.children.add(B),B.setProps(p)},unmount:function(){var e;null===(e=B.projection)||void 0===e||e.unmount(),lo.update(N),lo.render(O),S.forEach((function(e){return e()})),null==b||b(),null==d||d.children.delete(B),E.clearAllListeners(),v=void 0,w=!1},addVariantChild:function(e){var t,n=B.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return c&&n===e.treeType?c(B.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return M?B:null==d?void 0:d.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return v},getStaticValue:function(e){return x[e]},setStaticValue:function(e,t){return x[e]=t},getLatestValues:function(){return x},setVisibility:function(e){B.isVisible!==e&&(B.isVisible=e,B.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(B,e,p,t)},measureViewportBox:function(){return o(v,p)},addValue:function(e,t){B.hasValue(e)&&B.removeValue(e),k.set(e,t),x[e]=t.get(),R(e,t)},removeValue:function(e){var t;k.delete(e),null===(t=S.get(e))||void 0===t||t(),S.delete(e),delete x[e],u(e,_)},hasValue:function(e){return k.has(e)},getValue:function(e,t){var n=k.get(e);return void 0===n&&void 0!==t&&(n=Mc(t),B.addValue(e,n)),n},forEachValue:function(e){return k.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:l(v,e,t)},setBaseTarget:function(e,t){C[e]=t},getBaseTarget:function(e){if(i){var t=i(p,e);if(void 0!==t&&!cs(t))return t}return C[e]}},E),{build:function(){return T(),_},scheduleRender:function(){mo.render(O,!1,!0)},syncRender:O,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&B.scheduleRender(),p=e,E.updatePropListeners(e),A=function(e,t,n){var r;for(var i in t){var a=t[i],o=n[i];if(cs(a))e.addValue(i,a);else if(cs(o))e.addValue(i,Mc(a));else if(o!==a)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(a)}else e.addValue(i,Mc(null!==(r=e.getStaticValue(i))&&void 0!==r?r:a))}for(var i in n)void 0===t[i]&&e.removeValue(i);return t}(B,f(p),A)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==d?void 0:d.getVariantContext();if(!L){var t=(null==d?void 0:d.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<Yf;r++){var i=Zf[r],a=p[i];(Vo(a)||!1===a)&&(n[i]=a)}return n}});return B}},Zf=Xa(["initial"],Ka(Yc),!1),Yf=Zf.length;function $f(e){return"string"==typeof e&&e.startsWith("var(--")}var Kf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Xf(e,t,n){void 0===n&&(n=1),'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.');var r=Ka(function(e){var t=Kf.exec(e);if(!t)return[,];var n=Ka(t,3);return[n[1],n[2]]}(e),2),i=r[0],a=r[1];if(i){var o=window.getComputedStyle(t).getPropertyValue(i);return o?o.trim():$f(a)?Xf(a,t,n+1):a}}var Qf,Jf=new Set(["width","height","top","left","right","bottom","x","y"]),ed=function(e){return Jf.has(e)},td=function(e,t){e.set(t,!1),e.set(t)},nd=function(e){return e===Cs||e===Es};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Qf||(Qf={}));var rd=function(e,t){return parseFloat(e.split(", ")[t])},id=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var a=i.match(/^matrix3d\((.+)\)$/);if(a)return rd(a[1],t);var o=i.match(/^matrix\((.+)\)$/);return o?rd(o[1],e):0}},ad=new Set(["x","y","z"]),od=rs.filter((function(e){return!ad.has(e)})),sd={width:function(e,t){var n=e.x,r=t.paddingLeft,i=void 0===r?"0":r,a=t.paddingRight,o=void 0===a?"0":a;return n.max-n.min-parseFloat(i)-parseFloat(o)},height:function(e,t){var n=e.y,r=t.paddingTop,i=void 0===r?"0":r,a=t.paddingBottom,o=void 0===a?"0":a;return n.max-n.min-parseFloat(i)-parseFloat(o)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:id(4,13),y:id(5,14)};function ld(e,t,n,r){return function(e){return Object.keys(e).some(ed)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=Ya({},t),r=Ya({},r);var i=Object.keys(t).filter(ed),a=[],o=!1,s=[];if(i.forEach((function(i){var l=e.getValue(i);if(e.hasValue(i)){var u,c=n[i],f=Uc(c),d=t[i];if(nl(d)){var p=d.length,h=null===d[0]?1:0;c=d[h],f=Uc(c);for(var m=h;m<p;m++)u?Uc(d[m]):(u=Uc(d[m]))===f||nd(f)&&nd(u)}else u=Uc(d);if(f!==u)if(nd(f)&&nd(u)){var g=l.get();"string"==typeof g&&l.set(parseFloat(g)),"string"==typeof d?t[i]=parseFloat(d):Array.isArray(d)&&u===Es&&(t[i]=d.map(parseFloat))}else(null==f?void 0:f.transform)&&(null==u?void 0:u.transform)&&(0===c||0===d)?0===c?l.set(u.transform(c)):t[i]=f.transform(d):(o||(a=function(e){var t=[];return od.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),o=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],td(l,d))}})),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,u=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),a=getComputedStyle(i),o=a.display,s={};"none"===o&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=sd[e](r,a)})),t.syncRender();var l=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);td(r,s[n]),e[n]=sd[n](l,a)})),e}(t,e,s);return a.length&&a.forEach((function(t){var n=Ka(t,2),r=n[0],i=n[1];e.getValue(r).set(i)})),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}var ud={treeType:"dom",readValueFromInstance:function(e,t){if(os(t)){var n=Ec(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r));return(ds(t)?i.getPropertyValue(t):i[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Ff(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;void 0===r&&(r=!0);var a=t.transition,o=t.transitionEnd,s=$a(t,["transition","transitionEnd"]),l=function(e,t,n){var r,i,a={};for(var o in e)a[o]=null!==(r=Hc(o,t))&&void 0!==r?r:null===(i=n.getValue(o))||void 0===i?void 0:i.get();return a}(s,a||{},e);if(i&&(o&&(o=i(o)),s&&(s=i(s)),l&&(l=i(l))),r){!function(e,t,n){var r,i,a,o,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),l=s.length;if(l)for(var u=0;u<l;u++){var c=s[u],f=t[c],d=null;Array.isArray(f)&&(d=f[0]),null===d&&(d=null!==(i=null!==(r=n[c])&&void 0!==r?r:e.readValue(c))&&void 0!==i?i:t[c]),null!=d&&("string"==typeof d&&(/^\-?\d*\.?\d+$/.test(d)||Rc(d))?d=parseFloat(d):!zc(d)&&ku.test(f)&&(d=kc(c,f)),e.addValue(c,Mc(d)),null!==(a=(o=n)[c])&&void 0!==a||(o[c]=d),e.setBaseTarget(c,d))}}(e,s,l);var u=function(e,t,n,r){var i=function(e,t,n){var r,i=$a(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:i,transitionEnd:n};for(var o in n&&(n=Ya({},n)),e.forEachValue((function(e){var t=e.get();if($f(t)){var n=Xf(t,a);n&&e.set(n)}})),i){var s=i[o];if($f(s)){var l=Xf(s,a);l&&(i[o]=l,n&&(null!==(r=n[o])&&void 0!==r||(n[o]=s)))}}return{target:i,transitionEnd:n}}(e,t,r);return ld(e,t=i.target,n,r=i.transitionEnd)}(e,s,l,o);o=u.transitionEnd,s=u.target}return Ya({transition:a,transitionEnd:o},s)},scrapeMotionValuesFromProps:Js,build:function(e,t,n,r,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),Ps(t,n,r,i.transformTemplate)},render:Ks},cd=Gf(ud),fd=Gf(Ya(Ya({},ud),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return os(t)?(null===(n=Ec(t))||void 0===n?void 0:n.default)||0:(t=Xs.has(t)?t:$s(t),e.getAttribute(t))},scrapeMotionValuesFromProps:el,build:function(e,t,n,r,i){Ws(t,n,r,i.transformTemplate)},render:Qs})),dd=function(e,t){return es(e)?fd(t,{enableHardwareAcceleration:!1}):cd(t,{enableHardwareAcceleration:!0})};function pd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var hd={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!Es.test(e))return e;e=parseFloat(e)}var n=pd(e,t.target.x),r=pd(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},md="_$css",gd={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,a=e.includes("var("),o=[];a&&(e=e.replace(Kf,(function(e){return o.push(e),md})));var s=ku.parse(e);if(s.length>5)return i;var l=ku.createTransformer(e),u="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,f=r.y.scale*n.y;s[0+u]/=c,s[1+u]/=f;var d=nu(c,f,.5);"number"==typeof s[2+u]&&(s[2+u]/=d),"number"==typeof s[3+u]&&(s[3+u]/=d);var p=l(s);if(a){var h=0;p=p.replace(md,(function(){var e=o[h];return h++,e}))}return p}},yd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Za(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,i=n.layoutGroup,a=n.switchLayoutGroup,o=n.layoutId,s=r.projection;e=vd,Object.assign(ts,e),s&&((null==i?void 0:i.group)&&i.group.add(s),(null==a?void 0:a.register)&&o&&a.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(Ya(Ya({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),Yo.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,i=n.visualElement,a=n.drag,o=n.isPresent,s=i.projection;return s?(s.isPresent=o,a||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||mo.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,i=t.projection;i&&(i.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(i),(null==r?void 0:r.deregister)&&r.deregister(i))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(e.Component),vd={borderRadius:Ya(Ya({},hd),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:hd,borderTopRightRadius:hd,borderBottomLeftRadius:hd,borderBottomRightRadius:hd,boxShadow:gd},bd={measureLayout:function(t){var n=Ka(Hl(),2),r=n[0],i=n[1],a=(0,e.useContext)(Ao);return e.createElement(yd,Ya({},t,{layoutGroup:a,switchLayoutGroup:(0,e.useContext)(Ko),isPresent:r,safeToRemove:i}))}},wd=["TopLeft","TopRight","BottomLeft","BottomRight"],xd=wd.length,_d=function(e){return"string"==typeof e?parseFloat(e):e},Ed=function(e){return"number"==typeof e||Es.test(e)};function kd(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Sd=Cd(0,.5,Vu),Ad=Cd(.5,.95,Bu);function Cd(e,t,n){return function(r){return r<e?0:r>t?1:n(tu(e,t,r))}}function Od(e,t){e.min=t.min,e.max=t.max}function Td(e,t){Od(e.x,t.x),Od(e.y,t.y)}function Nd(e,t,n,r,i){return e=Rf(e-=t,1/n,r),void 0!==i&&(e=Rf(e,1/i,r)),e}function Rd(e,t,n,r,i){var a=Ka(n,3),o=a[0],s=a[1],l=a[2];!function(e,t,n,r,i,a,o){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===a&&(a=e),void 0===o&&(o=e),_s.test(t)&&(t=parseFloat(t),t=nu(o.min,o.max,t/100)-o.min),"number"==typeof t){var s=nu(a.min,a.max,r);e===a&&(s-=t),e.min=Nd(e.min,t,n,s,i),e.max=Nd(e.max,t,n,s,i)}}(e,t[o],t[s],t[l],t.scale,r,i)}var Pd=["x","scaleX","originX"],jd=["y","scaleY","originY"];function Id(e,t,n,r){Rd(e.x,t,Pd,null==n?void 0:n.x,null==r?void 0:r.x),Rd(e.y,t,jd,null==n?void 0:n.y,null==r?void 0:r.y)}function Ld(e){return 0===e.translate&&1===e.scale}function Md(e){return Ld(e.x)&&Ld(e.y)}function Bd(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Dd=function(){function e(){this.members=[]}return e.prototype.add=function(e){Pc(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(jc(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var i=this.members[r];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,n,r,i,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===a||a.call(i)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function Ud(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,a="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(a+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var o=n.rotate,s=n.rotateX,l=n.rotateY;o&&(a+="rotate(".concat(o,"deg) ")),s&&(a+="rotateX(".concat(s,"deg) ")),l&&(a+="rotateY(".concat(l,"deg) "))}var u=e.x.scale*t.x,c=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(a+="scale(".concat(u,", ").concat(c,")"))?"none":a}var Fd=function(e,t){return e.depth-t.depth},zd=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Pc(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){jc(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Fd),this.isDirty=!1,this.children.forEach(e)},e}();function Vd(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,r){var i=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach($d),i.nodes.forEach(Kd)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?Xa(Xa([],Ka(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new zd)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ic),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,Xa([],Ka(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,i=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,o=a.layoutId,s=a.layout,l=a.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||o)&&(this.isLayoutDirty=!0),t){var u,c=function(){return i.root.updateBlockedByResize=!1};t(e,(function(){i.root.updateBlockedByResize=!0,clearTimeout(u),u=window.setTimeout(c,250),Yo.hasAnimatedSinceResize&&(Yo.hasAnimatedSinceResize=!1,i.nodes.forEach(Yd))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&l&&(o||s)&&this.addEventListener("didUpdate",(function(e){var t,n,r,a,o,s=e.delta,u=e.hasLayoutChanged,c=e.hasRelativeTargetChanged,f=e.layout;if(i.isTreeAnimationBlocked())return i.target=void 0,void(i.relativeTarget=void 0);var d=null!==(n=null!==(t=i.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:np,p=l.getProps(),h=p.onLayoutAnimationStart,m=p.onLayoutAnimationComplete,g=!i.targetLayout||!Bd(i.targetLayout,f)||c,y=!u&&c;if((null===(r=i.resumeFrom)||void 0===r?void 0:r.instance)||y||u&&(g||!i.currentAnimation)){i.resumeFrom&&(i.resumingFrom=i.resumeFrom,i.resumingFrom.resumingFrom=void 0),i.setAnimationOrigin(s,y);var v=Ya(Ya({},Tc(d,"layout")),{onPlay:h,onComplete:m});l.shouldReduceMotion&&(v.delay=0,v.type=!1),i.startAnimation(v)}else u||0!==i.animationProgress||i.finishAnimation(),i.isLead()&&(null===(o=(a=i.options).onExitComplete)||void 0===o||o.call(a));i.targetLayout=f}))}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,lo.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(Xd))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var i=0;i<this.path.length;i++){var a=this.path[i];a.shouldResetTransform=!0,a.updateScroll()}var o=this.options,s=o.layoutId,l=o.layout;if(void 0!==s||l){var u=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==u?void 0:u(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Gd);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(rp),this.potentialNodes.clear()),this.nodes.forEach(Zd),this.nodes.forEach(Hd),this.nodes.forEach(Wd),this.clearAllSnapshots(),uo.update(),uo.preRender(),uo.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(qd),this.sharedNodes.forEach(Qd)},e.prototype.scheduleUpdateProjection=function(){mo.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;mo.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));ap(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();ap(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Md(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,i=null==r?void 0:r(this.latestValues,""),o=i!==this.prevTransformTemplateValue;t&&(n||Tf(this.latestValues)||o)&&(a(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(Lf(t.x,n.x),Lf(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Td(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],i=r.scroll,a=r.options,o=r.isScrollRoot;if(r!==this.root&&i&&a.layoutScroll){if(o){Td(t,e);var s=this.root.scroll;s&&(Lf(t.x,-s.x),Lf(t.y,-s.y))}Lf(t.x,i.x),Lf(t.y,i.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};Td(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Uf(n,{x:-i.scroll.x,y:-i.scroll.y}),Tf(i.latestValues)&&Uf(n,i.latestValues)}return Tf(this.latestValues)&&Uf(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};Td(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];if(i.instance&&Tf(i.latestValues)){Of(i.latestValues)&&i.updateSnapshot();var a={x:{min:0,max:0},y:{min:0,max:0}};Td(a,i.measure()),Id(n,i.latestValues,null===(t=i.snapshot)||void 0===t?void 0:t.layout,a)}}return Tf(this.latestValues)&&Id(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=Ya(Ya(Ya({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,i=this.options,a=i.layout,o=i.layoutId;this.layout&&(a||o)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},bf(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Td(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,yf(t.x,n.x,r.x),yf(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Td(this.target,this.layout.actual),If(this.target,this.targetDelta)):Td(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},bf(this.relativeTargetOrigin,this.target,this.relativeParent.target),Td(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!Tf(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var i=this.getLead();Td(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var i,a;void 0===r&&(r=!1);var o=n.length;if(o){var s,l;t.x=t.y=1;for(var u=0;u<o;u++)l=(s=n[u]).projectionDelta,"contents"!==(null===(a=null===(i=s.instance)||void 0===i?void 0:i.style)||void 0===a?void 0:a.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Uf(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,If(e,l)),r&&Tf(s.latestValues)&&Uf(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);var a=i.target;if(a){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var o=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;gf(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=Ud(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===o&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var i=this.snapshot,a=(null==i?void 0:i.latestValues)||{},o=Ya({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l={x:{min:0,max:0},y:{min:0,max:0}},u=null==i?void 0:i.isShared,c=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,f=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some(tp));this.animationProgress=0,this.mixTargetDelta=function(t){var n,i=t/1e3;Jd(s.x,e.x,i),Jd(s.y,e.y,i),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(bf(l,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){ep(e.x,t.x,n.x,r),ep(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,l,i)),u&&(r.animationValues=o,function(e,t,n,r,i,a){var o,s,l,u;i?(e.opacity=nu(0,null!==(o=n.opacity)&&void 0!==o?o:1,Sd(r)),e.opacityExit=nu(null!==(s=t.opacity)&&void 0!==s?s:1,0,Ad(r))):a&&(e.opacity=nu(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(var c=0;c<xd;c++){var f="border".concat(wd[c],"Radius"),d=kd(t,f),p=kd(n,f);void 0===d&&void 0===p||(d||(d=0),p||(p=0),0===d||0===p||Ed(d)===Ed(p)?(e[f]=Math.max(nu(_d(d),_d(p),r),0),(_s.test(p)||_s.test(d))&&(e[f]+="%")):e[f]=p)}(t.rotate||n.rotate)&&(e.rotate=nu(t.rotate||0,n.rotate||0,r))}(o,a,r.latestValues,i,f,c)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=i},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(lo.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=mo.update((function(){Yo.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=cs(0)?0:Mc(0);return Nc("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,Ya(Ya({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,i=e.latestValues;t&&n&&r&&(Td(t,n),Uf(t,i),gf(this.projectionDeltaWithTransform,this.layoutCorrected,t,i))},e.prototype.registerSharedNode=function(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Dd),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,i=t.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,i),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<ns.length;r++){var i="rotate"+ns[r];e.getStaticValue(i)&&(t=!0,n[i]=e.getStaticValue(i),e.setStaticValue(i,0))}if(t){for(var i in null==e||e.syncRender(),n)e.setStaticValue(i,n[i]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,i,a,o;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=il(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){var c={};return this.options.layoutId&&(c.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,c.pointerEvents=il(e.pointerEvents)||""),this.hasProjected&&!Tf(this.latestValues)&&(c.transform=l?l({},""):"none",this.hasProjected=!1),c}var f=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=Ud(this.projectionDeltaWithTransform,this.treeScale,f),l&&(s.transform=l(f,s.transform));var d=this.projectionDelta,p=d.x,h=d.y;for(var m in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*h.origin,"% 0"),u.animationValues?s.opacity=u===this?null!==(i=null!==(r=f.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:s.opacity=u===this?null!==(a=f.opacity)&&void 0!==a?a:"":null!==(o=f.opacityExit)&&void 0!==o?o:0,ts)if(void 0!==f[m]){var g=ts[m],y=g.correct,v=g.applyTo,b=y(f[m],u);if(v)for(var w=v.length,x=0;x<w;x++)s[v[x]]=b;else s[m]=b}return this.options.layoutId&&(s.pointerEvents=u===this?il(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Gd),this.root.sharedNodes.clear()},e}()}function Hd(e){e.updateLayout()}function Wd(e){var t,n,r,i,a=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){var o=e.layout,s=o.actual,l=o.measured;"size"===e.options.animationType?Sf((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=pf(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&Sf((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=pf(s[e]);t.max=t.min+n}));var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};gf(u,s,a.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};a.isShared?gf(c,e.applyTransform(l,!0),a.measured):gf(c,s,a.layout);var f=!Md(u),d=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,h=p.snapshot,m=p.layout;if(h&&m){var g={x:{min:0,max:0},y:{min:0,max:0}};bf(g,a.layout,h.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};bf(y,s,m.actual),Bd(g,y)||(d=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:c,layoutDelta:u,hasLayoutChanged:f,hasRelativeTargetChanged:d})}else e.isLead()&&(null===(i=(r=e.options).onExitComplete)||void 0===i||i.call(r));e.options.transition=void 0}function qd(e){e.clearSnapshot()}function Gd(e){e.clearMeasurements()}function Zd(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Yd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function $d(e){e.resolveTargetDelta()}function Kd(e){e.calcProjection()}function Xd(e){e.resetRotation()}function Qd(e){e.removeLeadSnapshot()}function Jd(e,t,n){e.translate=nu(t.translate,0,n),e.scale=nu(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ep(e,t,n,r){e.min=nu(t.min,n.min,r),e.max=nu(t.max,n.max,r)}function tp(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var np={duration:.45,ease:[.4,0,.1,1]};function rp(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var i=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function ip(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function ap(e){ip(e.x),ip(e.y)}var op=Vd({attachResizeListener:function(e,t){return fl(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),sp={current:void 0},lp=Vd({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!sp.current){var e=new op(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),sp.current=e}return sp.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),up=Ya(Ya(Ya(Ya({},Jc),Vl),Wf),bd),cp=function(e){function t(t,n){return void 0===n&&(n={}),Qo(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}((function(e,t){return function(e,t,n,r,i){var a=t.forwardMotionProps,o=void 0!==a&&a,s=es(e)?ul:cl;return Ya(Ya({},s),{preloadedFeatures:n,useRender:Zs(o),createVisualElement:r,projectionNodeConstructor:i,Component:e})}(e,t,up,dd,lp)}));const fp={success:"tw-bg-green-300",info:"tw-bg-sky-300",warning:"tw-bg-amber-300",error:"tw-bg-red-300"},dp={success:"tw-bg-green-500",info:"tw-bg-sky-500",warning:"tw-bg-amber-500",error:"tw-bg-red-500"},pp={success:"😊",info:"🔔",warning:"😮",error:"😢"};function hp(t){var n;const{dispatch:r}=(0,e.useContext)(m),[i,a]=(0,e.useState)(!1),o=(0,e.useRef)(null);(0,e.useEffect)((()=>{let e,n;return t.timeoutMs&&(e=setTimeout((()=>r(E(t.id))),300+t.timeoutMs),n=setTimeout((()=>a(!0)),300)),()=>{clearTimeout(e),clearTimeout(n)}}),[r,t.id,t.timeoutMs]);const s=(0,e.useCallback)((()=>i?"tw-w-0":"tw-w-full"),[i]);return(0,d.jsxs)("div",{className:"tw-flex tw-flex-col tw-mr-0 md:tw-mr-4 tw-border-none tw-rounded\n tw-shadow-md tw-overflow-hidden tw-pointer-events-none "+[t.textColorClass||"text-black",t.backgroundColorClass||fp[t.type]].join(" "),children:[(0,d.jsxs)("div",{className:"tw-flex tw-gap-2 tw-p-3 tw-text-lg",children:[!t.hideIcon&&(0,d.jsx)("div",{className:"tw-flex tw-items-center tw-justify-center tw-border-0 tw-rounded-full tw-w-7 tw-h-7 "+dp[t.type],children:null!==(n=t.icon)&&void 0!==n?n:pp[t.type]}),(0,d.jsxs)("div",{className:"tw-flex tw-flex-col tw-text-left",children:[t.text&&(0,d.jsx)("div",{className:"tw-whitespace-nowrap tw-text-md tw-overflow-ellipsis",children:t.text}),t.detail&&(0,d.jsx)("div",{className:"tw-text-sm",children:t.detail}),t.jsx&&(0,d.jsx)("div",{children:t.jsx})]}),!t.hideDismissBtn&&!t.showSpinner&&(0,d.jsx)("div",{className:"tw-flex tw-flex-grow tw-justify-end tw-pointer-events-auto",onClick:()=>{r(E(t.id))},children:(0,d.jsx)("div",{children:(0,d.jsx)(wa,{className:"tw-cursor-pointer hover:tw-scale-125 tw-transition-all",icon:Yt})})}),t.showSpinner&&(0,d.jsx)("div",{className:"tw-flex tw-flex-grow tw-justify-end",children:(0,d.jsx)("div",{children:(0,d.jsx)(wa,{icon:$t,className:"fa-spin"})})})]}),t.timeoutMs&&(0,d.jsx)("div",{children:(0,d.jsx)("div",{ref:o,className:"tw-h-1 tw-transition-all tw-ease-linear "+[s(),dp[t.type]].join(" "),style:{transitionDuration:"".concat(t.timeoutMs,"ms")}})})]})}function mp(){const{state:t}=(0,e.useContext)(m),{toasts:n}=t;return(0,d.jsx)("div",{className:"tw-flex tw-gap-2 tw-flex-col-reverse tw-items-end tw-fixed tw-bottom-0 tw-right-0 tw-mb-8 tw-mr-4 tw-z-50 tw-pointer-events-none",children:(0,d.jsx)(To,{children:n.map((e=>(0,d.jsx)(cp.div,{layout:!0,initial:{opacity:0,y:50,scale:.3},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,transition:{duration:.2}},children:(0,d.jsx)(hp,{...e})},e.id)))})})}const gp=t=>{const{id:n,className:r,role:i,ariaHidden:a,ariaLabel:o,initialValue:s,label:l,title:u,placeholder:c,autoComplete:f,cols:p,rows:h,disabled:m,minLength:g,readOnly:y,resize:v,wrap:b,autoResize:w,onChange:x,onEnterKey:_}=t,[E,k]=e.useState(s||""),S=e.useRef(null),A=e.useRef(0),C=()=>{S.current&&(S.current.style.height="1px",S.current.style.height="".concat(S.current.scrollHeight,"px"))};return e.useEffect((()=>{k(s),w&&S.current&&C()}),[s]),e.useEffect((()=>{if(!w)return()=>{};const e=new ResizeObserver((e=>{const t=e[0].contentRect.width;A.current!=t&&(requestAnimationFrame((()=>C())),A.current=t)}));return S.current&&e.observe(S.current),()=>{e.disconnect()}}),[w]),(0,d.jsxs)("div",{className:P("common-textarea-wrapper",m&&"disabled",v&&"resize-".concat(v),r),children:[l&&(0,d.jsx)("label",{className:"common-textarea-label",children:l}),(0,d.jsx)("div",{className:"common-textarea-group",children:(0,d.jsx)("textarea",{id:n,className:"common-textarea",title:u,role:i||"textbox",tabIndex:m?-1:0,"aria-label":o,"aria-hidden":a,placeholder:c,value:E||"",cols:p,rows:h,minLength:g,wrap:b,readOnly:!!y,ref:S,onChange:e=>{const t=e.target.value;y||E===t||k(t),x&&x(t),w&&S.current&&C()},onKeyDown:e=>{const t="number"==typeof e.which?e.which:e.keyCode;13!==t&&32!==t||_&&(e.preventDefault(),_(E))},autoComplete:f?"":"off",autoCorrect:f?"":"off",autoCapitalize:f?"":"off",spellCheck:f,disabled:m})})]})},yp=e=>{const{id:t,className:n,ariaHidden:r,ariaLabel:i,role:a,isChecked:o,onChange:s,label:l}=e;return(0,d.jsxs)("div",{className:P("common-checkbox",n),children:[(0,d.jsx)("input",{id:t,tabIndex:0,type:"checkbox",checked:o,onChange:()=>{s(!o)},onKeyDown:R,role:a,"aria-hidden":r,"aria-label":i}),l&&(0,d.jsx)("label",{htmlFor:t,children:l})]})},vp=e=>{const{children:n,id:r,className:i,ariaLabel:a,ariaHidden:o,ariaDescribedBy:s,role:l,title:u,leftIcon:c,helpUrl:f,actions:p,onClose:h,parentElement:m,fullscreen:g,hideDismissButton:y}=e,v=e=>{h&&h()},b=P("common-modal-container",g&&"fullscreen",i);return t.createPortal((0,d.jsx)(Ha,{className:b,onEscape:v,children:(0,d.jsxs)("div",{id:r,className:"common-modal",role:l||"dialog","aria-hidden":o,"aria-label":a,"aria-describedby":s,"aria-labelledby":"modal-title",children:[(0,d.jsxs)("div",{className:"common-modal-header",children:[g&&!y&&(0,d.jsx)("div",{className:"common-modal-back",children:(0,d.jsx)(L,{className:"menu-button",onClick:v,title:lf("Go Back"),label:lf("Go Back"),leftIcon:"fas fa-arrow-left"})}),(0,d.jsxs)("div",{id:"modal-title",className:"common-modal-title",children:[c&&(0,d.jsx)("i",{className:c,"aria-hidden":!0}),u]}),g&&f&&(0,d.jsx)("div",{className:"common-modal-help",children:(0,d.jsx)(L,{className:"menu-button",title:lf("Help on {0} dialog",u),href:e.helpUrl,onClick:()=>{},rightIcon:"fas fa-question"})}),!g&&!y&&(0,d.jsx)("div",{className:"common-modal-close",children:(0,d.jsx)(L,{className:"menu-button inverted",onClick:v,title:lf("Close"),rightIcon:"fas fa-times-circle"})})]}),(0,d.jsx)("div",{className:"common-modal-body",children:n}),(null==p?void 0:p.length)&&(0,d.jsx)("div",{className:"common-modal-footer",children:p.map(((e,t)=>{var n;return(0,d.jsx)(L,{className:null!==(n=e.className)&&void 0!==n?n:"primary inverted",disabled:e.disabled,onClick:e.onClick,href:e.url,label:e.label,title:e.label,rightIcon:(e.xicon?"xicon ":"")+e.icon,leftIcon:e.leftIcon},t)}))})]})}),m||document.getElementById("root")||document.body)},bp=t=>{var n,r;const{onSignIn:i,onClose:a,appMessage:o,dialogMessages:s,hideDismissButton:l}=t,{signInMessage:u,signUpMessage:c}=s||{signInMessage:lf("Sign in to save your progress and access your work anytime, anywhere."),signUpMessage:lf("Join now to save your progress and access your work anytime, anywhere.")},f=null!==(n=t.resolvePath)&&void 0!==n?n:e=>e,[p,h]=e.useState(!1),[m,g]=e.useState(null!==(r=t.mode)&&void 0!==r?r:"signin"),y=e.useMemo((()=>"signin"===m?lf("Sign in"):lf("Sign up")),[m]),v=e.useMemo((()=>"signin"===m?u:c),[m,u,c]),b=e.useMemo((()=>"signin"===m?(0,d.jsxs)("div",{className:"switch",children:[(0,d.jsx)("span",{children:lf("Don't have an account?")}),(0,d.jsx)(L,{className:"link-button",onClick:()=>g("signup"),title:lf("Sign up"),label:lf("Sign up")})]}):(0,d.jsxs)("div",{className:"switch",children:[(0,d.jsx)("span",{children:lf("Have an account?")}),(0,d.jsx)(L,{className:"link-button",onClick:()=>g("signin"),title:lf("Sign in"),label:lf("Sign in")})]})),[m]);return(0,d.jsx)(vp,{title:y,onClose:a,hideDismissButton:l,children:(0,d.jsxs)("div",{className:"signin-form",children:[(0,d.jsxs)("div",{className:"signin-header",children:[o||void 0," ",v]}),(0,d.jsx)("div",{className:"signin-body",children:(0,d.jsxs)("div",{className:"providers",children:[pxt.auth.identityProviders().map(((e,t)=>{const n="signin"===m?lf("Continue with {0}",e.name):lf("Sign up with {0}",e.name);return(0,d.jsx)(L,{className:"teal inverted provider",onClick:()=>i(e,p),title:n,ariaLabel:n,label:(0,d.jsxs)("div",{className:"label",children:[(0,d.jsx)("div",{children:(0,d.jsx)("img",{className:"logo",src:f(e.icon)})}),(0,d.jsx)("div",{className:"title",children:n})]})},t)})),(0,d.jsx)("div",{className:"rememberme",children:(0,d.jsx)(yp,{id:"rememberme",label:lf("Remember me"),isChecked:p,onChange:h})})]})}),(0,d.jsxs)("div",{className:"signin-footer",children:[b,(0,d.jsx)("div",{className:"learn",children:(0,d.jsx)(D,{href:"/identity/sign-in",target:"_blank",children:lf("Learn more")})})]})]})})};function wp(e){const{title:t,confirmLabel:n,cancelLabel:r,children:i,onConfirm:a,onCancel:o}=e,s=[{label:null!=r?r:lf("Cancel"),className:"primary inverted",onClick:o},{label:null!=n?n:lf("Confirm"),className:"primary",onClick:a}];return(0,d.jsx)(vp,{title:t,actions:s,onClose:o,children:i})}function xp(){const{state:t}=(0,e.useContext)(m),{deepLinks:n,clientRole:r,gameState:i}=t,{gameId:a}=null!=i?i:{},[o,s]=(0,e.useState)("");switch(t.modal){case"sign-in":return(0,d.jsx)(bp,{onClose:()=>h({type:"CLEAR_MODAL"}),onSignIn:async(e,t)=>{const r={};null!=n&&n.shareCode&&(r.host=n.shareCode),null!=n&&n.joinCode&&(r.join=n.joinCode),await async function(e,t,n){try{await async function(e,t,n){const r=await Me();return await(null==r?void 0:r.loginAsync(e,t,n))}(e,t,n)}catch(e){}}(e.id,t,{params:r})},dialogMessages:t.modalOpts.dialogMessages,hideDismissButton:!0});case"report-abuse":return(0,d.jsx)(wp,{title:lf("Report Abuse"),confirmLabel:lf("Submit Report"),onConfirm:async()=>{h({type:"CLEAR_MODAL"}),await async function(e,t){try{if(pxt.tickEvent("mp.reportabuse"),200!==(await fetch("https://makecode.com/api/".concat(e,"/abusereports"),{method:"POST",body:JSON.stringify({text:t})})).status)throw new Error("Failed to send abuse report");h(_({type:"success",text:lf("Thank you for helping keep Microsoft MakeCode a friendly place!"),icon:"✅",timeoutMs:5e3}))}catch(e){h(_({type:"error",text:lf("Sorry, we couldn't send your report. Please try again later."),timeoutMs:5e3}))}}(a,o)},onCancel:()=>h({type:"CLEAR_MODAL"}),children:(0,d.jsxs)("div",{className:"tw-flex tw-flex-col tw-gap-4",children:[(0,d.jsx)("div",{children:lf("Why do you find it offensive?")}),(0,d.jsx)("div",{children:(0,d.jsx)(gp,{onChange:s})})]})});case"kick-player":return(0,d.jsx)(wp,{title:lf("Kick Player"),onConfirm:()=>{h({type:"CLEAR_MODAL"}),function(e){try{pxt.tickEvent("mp.kickplayer"),function(e){var t;null===(t=ft)||void 0===t||t.kickPlayer(e)}(e),h(_({type:"info",text:lf("Player kicked"),timeoutMs:5e3}))}catch(e){}}(t.modalOpts.clientId)},onCancel:()=>h({type:"CLEAR_MODAL"}),children:(0,d.jsx)("div",{children:lf("Kick this player? They will be blocked from rejoining the game.")})});case"leave-game":return"host"===r?(0,d.jsx)(wp,{title:lf("End the Game"),onConfirm:async()=>{h({type:"CLEAR_MODAL"}),await yt("ended")},onCancel:()=>h({type:"CLEAR_MODAL"}),children:(0,d.jsx)("div",{children:lf("End the game? All players will be disconnected.")})}):(0,d.jsx)(wp,{title:lf("Leave Game"),onConfirm:async()=>{h({type:"CLEAR_MODAL"}),await yt("left")},onCancel:()=>h({type:"CLEAR_MODAL"}),children:(0,d.jsx)("div",{children:lf("Leave the game?")})});default:return null}}function _p(){const{state:t}=(0,e.useContext)(m),{gamePaused:n,clientRole:r}=t;return(0,d.jsxs)(d.Fragment,{children:[n&&"host"===r&&(0,d.jsxs)("div",{className:"tw-fixed tw-flex tw-flex-col tw-gap-4 tw-z-40 tw-p-5 tw-bg-white tw-rounded-lg tw-drop-shadow-2xl tw-border tw-top-[50%] tw-left-[50%] tw-translate-x-[-50%] tw-translate-y-[-50%]",children:[(0,d.jsx)("div",{className:"tw-text-left tw-font-bold tw-text-lg",children:lf("Game Paused")}),(0,d.jsx)("div",{className:"tw-text-left",children:lf("The game is paused. Press the resume button to continue.")}),(0,d.jsx)("div",{className:"tw-text-right",children:(0,d.jsx)(L,{title:lf("Resume"),label:lf("Resume"),className:"primary",onClick:async()=>{await St()}})})]}),n&&"host"!==r&&(0,d.jsxs)("div",{className:"tw-fixed tw-flex tw-flex-col tw-gap-4 tw-z-40 tw-p-5 tw-bg-white tw-rounded-lg tw-drop-shadow-2xl tw-border tw-top-[50%] tw-left-[50%] tw-translate-x-[-50%] tw-translate-y-[-50%]",children:[(0,d.jsx)("div",{className:"tw-text-left tw-font-bold tw-text-lg",children:lf("Game Paused")}),(0,d.jsx)("div",{className:"tw-text-left",children:lf("The game is paused. Please wait for the host to resume the game.")})]})]})}const Ep=function(){const{state:t,dispatch:n}=(0,e.useContext)(m),{authStatus:r,deepLinks:i,targetConfig:a}=t,{shareCode:o,joinCode:s}=i,[l,u]=(0,e.useState)(!1);(0,e.useEffect)((()=>{a||(pxt.BrowserUtils.isLocalHostDev()?fetch("/blb/targetconfig.json",{method:"GET"}).then((e=>e.json())):pxt.targetConfigAsync()).then((e=>{return e&&n((t=e,{type:"SET_TARGET_CONFIG",targetConfig:JSON.parse(JSON.stringify(t))}));var t}))})),function(t){(0,e.useEffect)((()=>{const e=()=>{t("visible"===document.visibilityState)};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}}),[])}(At),(0,e.useEffect)((()=>{(async function(){const e=await Me(),t=pxt.Util.parseQueryString(window.location.href);if(!t.authcallback)return await(null==e?void 0:e.authCheckAsync());await pxt.auth.loginCallbackAsync(t)})().then((()=>u(!0))).catch((()=>u(!0)))}),[u]);const c=(0,e.useCallback)((()=>{var e,t;let r;r="?"===window.location.hash[1]?new URLSearchParams(window.location.hash.substr(1)):new URLSearchParams(window.location.search);let i=null!==(e=r.get("host"))&&void 0!==e?e:void 0,a=null!==(t=r.get("join"))&&void 0!==t?t:void 0;i=We(i),a=He(a),n(S(i,a))}),[n]);return(0,e.useEffect)((()=>{l&&c()}),[l,c]),(0,e.useEffect)((()=>{l&&(o||s)&&"signed-in"===r&&(o?mt(o).then((()=>{})).catch((()=>{})):s&>(s).then((()=>{})).catch((()=>{})),n(S(void 0,void 0)))}),[n,r,o,s,l]),(0,d.jsxs)("div",{className:"".concat(pxt.appTarget.id," tw-flex tw-flex-col"),children:[!l&&(0,d.jsx)(y,{}),l&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(qa,{}),"signed-out"===r&&(0,d.jsx)(N,{}),"signed-in"===r&&(0,d.jsx)(za,{})]}),(0,d.jsx)(xp,{}),(0,d.jsx)(_p,{}),(0,d.jsx)(mp,{})]})};var kp=n(3705);window.addEventListener("DOMContentLoaded",(()=>{const n=window.pxtTargetBundle;if(pxt.options.debug=/dbg=1/i.test(window.location.href),pxt.options.debug&&(pxt.debug=kp.debug),pxt.setupWebConfig(window.pxtConfig||pxt.webConfig),pxt.setAppTarget(n),pxt.BrowserUtils.isLocalHostDev()){const e=pxt.webConfig;for(const t of Object.keys(e)){var r,i;null!==(r=e[t])&&void 0!==r&&r.startsWith("/")&&-1==(null===(i=e[t])||void 0===i?void 0:i.indexOf("worker"))&&(e[t]="http://localhost:3232".concat(e[t]))}pxt.webConfig.workerjs="/blb".concat(pxt.webConfig.workerjs)}pxt.Cloud.apiRoot="https://www.makecode.com/api/",function(){pxt.analytics.enable(pxt.Util.userLanguage());const e={};if("undefined"!=typeof window){const t=window.screen;e["screen.width"]=t.width,e["screen.height"]=t.height,e["screen.availwidth"]=t.availWidth,e["screen.availheight"]=t.availHeight,e["screen.innerWidth"]=window.innerWidth,e["screen.innerHeight"]=window.innerHeight,e["screen.devicepixelratio"]=pxt.BrowserUtils.devicePixelRatio();const n=document.firstElementChild;n&&(e["screen.clientWidth"]=n.clientWidth,e["screen.clientHeight"]=n.clientHeight)}pxt.tickEvent("mp.loaded",e)}(),pxt.worker.getWorker(pxt.webConfig.workerjs),t.render((0,d.jsx)(e.StrictMode,{children:(0,d.jsx)(g,{children:(0,d.jsx)(Ep,{})})}),document.getElementById("root"))}))})()})();
|
|
1
|
+
/*! For license information please see main.06600d76.js.LICENSE.txt */
|
|
2
|
+
(()=>{var e={3500:(e,t,n)=>{"use strict";var r=n(3705),i=n(1173),a=n(8898),o=n(5664);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!i)throw Error(s(227));var l=new Set,u={};function c(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(u[e]=t,e=0;e<t.length;e++)l.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,m={},g={};function y(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new y(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function w(e){return e[1].toUpperCase()}function x(e,t,n,r){var i=v.hasOwnProperty(t)?v[t]:null;(null!==i?0===i.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!h.call(g,e)||!h.call(m,e)&&(p.test(e)?g[e]=!0:(m[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,w);v[t]=new y(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,w);v[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,w);v[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=60103,k=60106,S=60107,A=60108,C=60114,O=60109,T=60110,N=60112,R=60113,P=60120,j=60115,I=60116,L=60121,M=60128,B=60129,D=60130,U=60131;if("function"==typeof Symbol&&Symbol.for){var F=Symbol.for;E=F("react.element"),k=F("react.portal"),S=F("react.fragment"),A=F("react.strict_mode"),C=F("react.profiler"),O=F("react.provider"),T=F("react.context"),N=F("react.forward_ref"),R=F("react.suspense"),P=F("react.suspense_list"),j=F("react.memo"),I=F("react.lazy"),L=F("react.block"),F("react.scope"),M=F("react.opaque.id"),B=F("react.debug_trace_mode"),D=F("react.offscreen"),U=F("react.legacy_hidden")}var z,V="function"==typeof Symbol&&Symbol.iterator;function H(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=V&&e[V]||e["@@iterator"])?e:null}function W(e){if(void 0===z)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var q=!1;function G(e,t){if(!e||q)return"";q=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s])return"\n"+i[o].replace(" at new "," at ")}while(1<=o&&0<=s);break}}}finally{q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function Z(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return G(e.type,!1);case 11:return G(e.type.render,!1);case 22:return G(e.type._render,!1);case 1:return G(e.type,!0);default:return""}}function Y(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case C:return"Profiler";case A:return"StrictMode";case R:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case j:return Y(e.type);case L:return Y(e._render);case I:t=e._payload,e=e._init;try{return Y(e(t))}catch(e){}}return null}function $(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ee(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function te(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=$(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ne(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function re(e,t){ne(e,t);var n=$(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ae(e,t.type,n):t.hasOwnProperty("defaultValue")&&ae(e,t.type,$(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ie(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ae(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return i.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function se(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(s(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(s(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:$(n)}}function ce(e,t){var n=$(t.value),r=$(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function fe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml",pe="http://www.w3.org/2000/svg";function he(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function me(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?he(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ge,ye,ve=(ye=function(e,t){if(e.namespaceURI!==pe||"innerHTML"in e)e.innerHTML=t;else{for((ge=ge||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ge.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ye(e,t)}))}:ye);function be(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var we={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xe=["Webkit","ms","Moz","O"];function _e(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||we.hasOwnProperty(e)&&we[e]?(""+t).trim():t+"px"}function Ee(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=_e(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(we).forEach((function(e){xe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),we[t]=we[e]}))}));var ke=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Se(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(s(62))}}function Ae(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Oe=null,Te=null,Ne=null;function Re(e){if(e=ti(e)){if("function"!=typeof Oe)throw Error(s(280));var t=e.stateNode;t&&(t=ri(t),Oe(e.stateNode,e.type,t))}}function Pe(e){Te?Ne?Ne.push(e):Ne=[e]:Te=e}function je(){if(Te){var e=Te,t=Ne;if(Ne=Te=null,Re(e),t)for(e=0;e<t.length;e++)Re(t[e])}}function Ie(e,t){return e(t)}function Le(e,t,n,r,i){return e(t,n,r,i)}function Me(){}var Be=Ie,De=!1,Ue=!1;function Fe(){null===Te&&null===Ne||(Me(),je())}function ze(e,t){var n=e.stateNode;if(null===n)return null;var r=ri(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(s(231,t,typeof n));return n}var Ve=!1;if(d)try{var He={};Object.defineProperty(He,"passive",{get:function(){Ve=!0}}),window.addEventListener("test",He,He),window.removeEventListener("test",He,He)}catch(ye){Ve=!1}function We(e,t,n,r,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var qe=!1,Ge=null,Ze=!1,Ye=null,$e={onError:function(e){qe=!0,Ge=e}};function Ke(e,t,n,r,i,a,o,s,l){qe=!1,Ge=null,We.apply($e,arguments)}function Xe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Je(e){if(Xe(e)!==e)throw Error(s(188))}function et(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Xe(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Je(i),e;if(a===r)return Je(i),t;a=a.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=a;break}if(l===r){o=!0,r=i,n=a;break}l=l.sibling}if(!o){for(l=a.child;l;){if(l===n){o=!0,n=a,r=i;break}if(l===r){o=!0,r=a,n=i;break}l=l.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function tt(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var nt,rt,it,at,ot=!1,st=[],lt=null,ut=null,ct=null,ft=new Map,dt=new Map,pt=[],ht="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function mt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function gt(e,t){switch(e){case"focusin":case"focusout":lt=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":ft.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dt.delete(t.pointerId)}}function yt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=mt(t,n,r,i,a),null!==t&&null!==(t=ti(t))&&rt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function vt(e){var t=ei(e.target);if(null!==t){var n=Xe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Qe(n)))return e.blockedOn=t,void at(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){it(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=en(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ti(n))&&rt(t),e.blockedOn=n,!1;t.shift()}return!0}function wt(e,t,n){bt(e)&&n.delete(t)}function xt(){for(ot=!1;0<st.length;){var e=st[0];if(null!==e.blockedOn){null!==(e=ti(e.blockedOn))&&nt(e);break}for(var t=e.targetContainers;0<t.length;){var n=en(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&st.shift()}null!==lt&&bt(lt)&&(lt=null),null!==ut&&bt(ut)&&(ut=null),null!==ct&&bt(ct)&&(ct=null),ft.forEach(wt),dt.forEach(wt)}function _t(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,xt)))}function Et(e){function t(t){return _t(t,e)}if(0<st.length){_t(st[0],e);for(var n=1;n<st.length;n++){var r=st[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==lt&&_t(lt,e),null!==ut&&_t(ut,e),null!==ct&&_t(ct,e),ft.forEach(t),dt.forEach(t),n=0;n<pt.length;n++)(r=pt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<pt.length&&null===(n=pt[0]).blockedOn;)vt(n),null===n.blockedOn&&pt.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var St={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},At={},Ct={};function Ot(e){if(At[e])return At[e];if(!St[e])return e;var t,n=St[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ct)return At[e]=n[t];return e}d&&(Ct=document.createElement("div").style,"AnimationEvent"in window||(delete St.animationend.animation,delete St.animationiteration.animation,delete St.animationstart.animation),"TransitionEvent"in window||delete St.transitionend.transition);var Tt=Ot("animationend"),Nt=Ot("animationiteration"),Rt=Ot("animationstart"),Pt=Ot("transitionend"),jt=new Map,It=new Map,Lt=["abort","abort",Tt,"animationEnd",Nt,"animationIteration",Rt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Pt,"transitionEnd","waiting","waiting"];function Mt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),It.set(r,t),jt.set(r,i),c(i,[r])}}(0,o.unstable_now)();var Bt=8;function Dt(e){if(0!=(1&e))return Bt=15,1;if(0!=(2&e))return Bt=14,2;if(0!=(4&e))return Bt=13,4;var t=24&e;return 0!==t?(Bt=12,t):0!=(32&e)?(Bt=11,32):0!=(t=192&e)?(Bt=10,t):0!=(256&e)?(Bt=9,256):0!=(t=3584&e)?(Bt=8,t):0!=(4096&e)?(Bt=7,4096):0!=(t=4186112&e)?(Bt=6,t):0!=(t=62914560&e)?(Bt=5,t):67108864&e?(Bt=4,67108864):0!=(134217728&e)?(Bt=3,134217728):0!=(t=805306368&e)?(Bt=2,t):0!=(1073741824&e)?(Bt=1,1073741824):(Bt=8,e)}function Ut(e,t){var n=e.pendingLanes;if(0===n)return Bt=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(0!==a)r=a,i=Bt=15;else if(0!=(a=134217727&n)){var l=a&~o;0!==l?(r=Dt(l),i=Bt):0!=(s&=a)&&(r=Dt(s),i=Bt)}else 0!=(a=n&~o)?(r=Dt(a),i=Bt):0!==s&&(r=Dt(s),i=Bt);if(0===r)return 0;if(r=n&((0>(r=31-qt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&o)){if(Dt(t),i<=Bt)return t;Bt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-qt(t)),r|=e[n],t&=~i;return r}function Ft(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function zt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Vt(24&~t))?zt(10,t):e;case 10:return 0===(e=Vt(192&~t))?zt(8,t):e;case 8:return 0===(e=Vt(3584&~t))&&0===(e=Vt(4186112&~t))&&(e=512),e;case 2:return 0===(t=Vt(805306368&~t))&&(t=268435456),t}throw Error(s(358,e))}function Vt(e){return e&-e}function Ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-qt(t)]=n}var qt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Gt(e)/Zt|0)|0},Gt=Math.log,Zt=Math.LN2,Yt=o.unstable_UserBlockingPriority,$t=o.unstable_runWithPriority,Kt=!0;function Xt(e,t,n,r){De||Me();var i=Jt,a=De;De=!0;try{Le(i,e,t,n,r)}finally{(De=a)||Fe()}}function Qt(e,t,n,r){$t(Yt,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){var i;if(Kt)if((i=0==(4&t))&&0<st.length&&-1<ht.indexOf(e))e=mt(null,e,t,n,r),st.push(e);else{var a=en(e,t,n,r);if(null===a)i&>(e,r);else{if(i){if(-1<ht.indexOf(e))return e=mt(a,e,t,n,r),void st.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return lt=yt(lt,e,t,n,r,i),!0;case"dragenter":return ut=yt(ut,e,t,n,r,i),!0;case"mouseover":return ct=yt(ct,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return ft.set(a,yt(ft.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,dt.set(a,yt(dt.get(a)||null,e,t,n,r,i)),!0}return!1}(a,e,t,n,r))return;gt(e,r)}jr(e,t,r,null,n)}}}function en(e,t,n,r){var i=Ce(r);if(null!==(i=ei(i))){var a=Xe(i);if(null===a)i=null;else{var o=a.tag;if(13===o){if(null!==(i=Qe(a)))return i;i=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return jr(e,t,r,i,n),null}var tn=null,nn=null,rn=null;function an(){if(rn)return rn;var e,t,n=nn,r=n.length,i="value"in tn?tn.value:tn.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return rn=i.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function sn(){return!0}function ln(){return!1}function un(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?sn:ln,this.isPropagationStopped=ln,this}return a(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=sn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=sn)},persist:function(){},isPersistent:sn}),t}var cn,fn,dn,pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hn=un(pn),mn=a({},pn,{view:0,detail:0}),gn=un(mn),yn=a({},mn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:On,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==dn&&(dn&&"mousemove"===e.type?(cn=e.screenX-dn.screenX,fn=e.screenY-dn.screenY):fn=cn=0,dn=e),cn)},movementY:function(e){return"movementY"in e?e.movementY:fn}}),vn=un(yn),bn=un(a({},yn,{dataTransfer:0})),wn=un(a({},mn,{relatedTarget:0})),xn=un(a({},pn,{animationName:0,elapsedTime:0,pseudoElement:0})),_n=un(a({},pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),En=un(a({},pn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},An={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=An[e])&&!!t[e]}function On(){return Cn}var Tn=un(a({},mn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:On,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Nn=un(a({},yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=un(a({},mn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),Pn=un(a({},pn,{propertyName:0,elapsedTime:0,pseudoElement:0})),jn=un(a({},yn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),In=[9,13,27,32],Ln=d&&"CompositionEvent"in window,Mn=null;d&&"documentMode"in document&&(Mn=document.documentMode);var Bn=d&&"TextEvent"in window&&!Mn,Dn=d&&(!Ln||Mn&&8<Mn&&11>=Mn),Un=String.fromCharCode(32),Fn=!1;function zn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1,Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Gn(e,t,n,r){Pe(r),0<(t=Lr(t,"onChange")).length&&(n=new hn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zn=null,Yn=null;function $n(e){Cr(e,0)}function Kn(e){if(Q(ni(e)))return e}function Xn(e,t){if("change"===e)return t}var Qn=!1;if(d){var Jn;if(d){var er="oninput"in document;if(!er){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),er="function"==typeof tr.oninput}Jn=er}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function nr(){Zn&&(Zn.detachEvent("onpropertychange",rr),Yn=Zn=null)}function rr(e){if("value"===e.propertyName&&Kn(Yn)){var t=[];if(Gn(t,Yn,e,Ce(e)),e=$n,De)e(t);else{De=!0;try{Ie(e,t)}finally{De=!1,Fe()}}}}function ir(e,t,n){"focusin"===e?(nr(),Yn=n,(Zn=t).attachEvent("onpropertychange",rr)):"focusout"===e&&nr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Yn)}function or(e,t){if("click"===e)return Kn(t)}function sr(e,t){if("input"===e||"change"===e)return Kn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ur=Object.prototype.hasOwnProperty;function cr(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ur.call(t,n[r])||!lr(e[n[r]],t[n[r]]))return!1;return!0}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var n,r=fr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fr(r)}}function pr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gr=d&&"documentMode"in document&&11>=document.documentMode,yr=null,vr=null,br=null,wr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wr||null==yr||yr!==J(r)||(r="selectionStart"in(r=yr)&&mr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&cr(br,r)||(br=r,0<(r=Lr(vr,"onSelect")).length&&(t=new hn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}Mt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Mt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Mt(Lt,2);for(var _r="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Er=0;Er<_r.length;Er++)It.set(_r[Er],0);f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Sr=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));function Ar(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,o,l,u){if(Ke.apply(this,arguments),qe){if(!qe)throw Error(s(198));var c=Ge;qe=!1,Ge=null,Ze||(Ze=!0,Ye=c)}}(r,t,void 0,e),e.currentTarget=null}function Cr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;Ar(i,s,u),a=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;Ar(i,s,u),a=l}}}if(Ze)throw e=Ye,Ze=!1,Ye=null,e}function Or(e,t){var n=ii(t),r=e+"__bubble";n.has(r)||(Pr(t,e,2,!1),n.add(r))}var Tr="_reactListening"+Math.random().toString(36).slice(2);function Nr(e){e[Tr]||(e[Tr]=!0,l.forEach((function(t){Sr.has(t)||Rr(t,!1,e,null),Rr(t,!0,e,null)})))}function Rr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&Sr.has(e)){if("scroll"!==e)return;i|=2,a=r}var o=ii(a),s=e+"__"+(t?"capture":"bubble");o.has(s)||(t&&(i|=4),Pr(a,e,i,t),o.add(s))}function Pr(e,t,n,r){var i=It.get(t);switch(void 0===i?2:i){case 0:i=Xt;break;case 1:i=Qt;break;default:i=Jt}n=i.bind(null,t,n,e),i=void 0,!Ve||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function jr(e,t,n,r,i){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=ei(s)))return;if(5===(l=o.tag)||6===l){r=a=o;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Ue)return e();Ue=!0;try{Be(e,t,n)}finally{Ue=!1,Fe()}}((function(){var r=a,i=Ce(n),o=[];e:{var s=jt.get(e);if(void 0!==s){var l=hn,u=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":u="focus",l=wn;break;case"focusout":u="blur",l=wn;break;case"beforeblur":case"afterblur":l=wn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=bn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Rn;break;case Tt:case Nt:case Rt:l=xn;break;case Pt:l=Pn;break;case"scroll":l=gn;break;case"wheel":l=jn;break;case"copy":case"cut":case"paste":l=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Nn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&null!=(m=ze(h,d))&&c.push(Ir(h,m,p))),f)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!ei(u)&&!u[Qr])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?ei(u):null)&&(u!==(f=Xe(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=vn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Nn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==l?s:ni(l),p=null==u?s:ni(u),(s=new c(m,h+"leave",l,n,i)).target=f,s.relatedTarget=p,m=null,ei(i)===r&&((c=new c(d,h+"enter",u,n,i)).target=p,c.relatedTarget=f,m=c),f=m,l&&u)e:{for(d=u,h=0,p=c=l;p;p=Mr(p))h++;for(p=0,m=d;m;m=Mr(m))p++;for(;0<h-p;)c=Mr(c),h--;for(;0<p-h;)d=Mr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Mr(c),d=Mr(d)}c=null}else c=null;null!==l&&Br(o,s,l,c,!1),null!==u&&null!==f&&Br(o,f,u,c,!0)}if("select"===(l=(s=r?ni(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Xn;else if(qn(s))if(Qn)g=sr;else{g=ar;var y=ir}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?Gn(o,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ae(s,"number",s.value)),y=r?ni(r):window,e){case"focusin":(qn(y)||"true"===y.contentEditable)&&(yr=y,vr=r,br=null);break;case"focusout":br=vr=yr=null;break;case"mousedown":wr=!0;break;case"contextmenu":case"mouseup":case"dragend":wr=!1,xr(o,n,i);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":xr(o,n,i)}var v;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(v=an()):(nn="value"in(tn=i)?tn.value:tn.textContent,Hn=!0)),0<(y=Lr(r,b)).length&&(b=new En(b,e,null,n,i),o.push({event:b,listeners:y}),(v||null!==(v=Vn(n)))&&(b.data=v))),(v=Bn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Fn=!0,Un);case"textInput":return(e=t.data)===Un&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Ln&&zn(e,t)?(e=an(),rn=nn=tn=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Lr(r,"onBeforeInput")).length&&(i=new En("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=v)}Cr(o,t)}))}function Ir(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=ze(e,n))&&r.unshift(Ir(e,a,i)),null!=(a=ze(e,t))&&r.push(Ir(e,a,i))),e=e.return}return r}function Mr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Br(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=ze(n,a))&&o.unshift(Ir(n,l,s)):i||null!=(l=ze(n,a))&&o.push(Ir(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Dr(){}var Ur=null,Fr=null;function zr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Vr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Hr="function"==typeof setTimeout?setTimeout:void 0,Wr="function"==typeof clearTimeout?clearTimeout:void 0;function qr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Gr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Zr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Yr=0,$r=Math.random().toString(36).slice(2),Kr="__reactFiber$"+$r,Xr="__reactProps$"+$r,Qr="__reactContainer$"+$r,Jr="__reactEvents$"+$r;function ei(e){var t=e[Kr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Qr]||n[Kr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Zr(e);null!==e;){if(n=e[Kr])return n;e=Zr(e)}return t}n=(e=n).parentNode}return null}function ti(e){return!(e=e[Kr]||e[Qr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ni(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function ri(e){return e[Xr]||null}function ii(e){var t=e[Jr];return void 0===t&&(t=e[Jr]=new Set),t}var ai=[],oi=-1;function si(e){return{current:e}}function li(e){0>oi||(e.current=ai[oi],ai[oi]=null,oi--)}function ui(e,t){oi++,ai[oi]=e.current,e.current=t}var ci={},fi=si(ci),di=si(!1),pi=ci;function hi(e,t){var n=e.type.contextTypes;if(!n)return ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function mi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function gi(){li(di),li(fi)}function yi(e,t,n){if(fi.current!==ci)throw Error(s(168));ui(fi,t),ui(di,n)}function vi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(s(108,Y(t)||"Unknown",i));return a({},n,r)}function bi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ci,pi=fi.current,ui(fi,e),ui(di,di.current),!0}function wi(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=vi(e,t,pi),r.__reactInternalMemoizedMergedChildContext=e,li(di),li(fi),ui(fi,e)):li(di),ui(di,n)}var xi=null,_i=null,Ei=o.unstable_runWithPriority,ki=o.unstable_scheduleCallback,Si=o.unstable_cancelCallback,Ai=o.unstable_shouldYield,Ci=o.unstable_requestPaint,Oi=o.unstable_now,Ti=o.unstable_getCurrentPriorityLevel,Ni=o.unstable_ImmediatePriority,Ri=o.unstable_UserBlockingPriority,Pi=o.unstable_NormalPriority,ji=o.unstable_LowPriority,Ii=o.unstable_IdlePriority,Li={},Mi=void 0!==Ci?Ci:function(){},Bi=null,Di=null,Ui=!1,Fi=Oi(),zi=1e4>Fi?Oi:function(){return Oi()-Fi};function Vi(){switch(Ti()){case Ni:return 99;case Ri:return 98;case Pi:return 97;case ji:return 96;case Ii:return 95;default:throw Error(s(332))}}function Hi(e){switch(e){case 99:return Ni;case 98:return Ri;case 97:return Pi;case 96:return ji;case 95:return Ii;default:throw Error(s(332))}}function Wi(e,t){return e=Hi(e),Ei(e,t)}function qi(e,t,n){return e=Hi(e),ki(e,t,n)}function Gi(){if(null!==Di){var e=Di;Di=null,Si(e)}Zi()}function Zi(){if(!Ui&&null!==Bi){Ui=!0;var e=0;try{var t=Bi;Wi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Bi=null}catch(t){throw null!==Bi&&(Bi=Bi.slice(e+1)),ki(Ni,Gi),t}finally{Ui=!1}}}var Yi=_.ReactCurrentBatchConfig;function $i(e,t){if(e&&e.defaultProps){for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ki=si(null),Xi=null,Qi=null,Ji=null;function ea(){Ji=Qi=Xi=null}function ta(e){var t=Ki.current;li(Ki),e.type._context._currentValue=t}function na(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ra(e,t){Xi=e,Ji=Qi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Lo=!0),e.firstContext=null)}function ia(e,t){if(Ji!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ji=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Qi){if(null===Xi)throw Error(s(308));Qi=t,Xi.dependencies={lanes:0,firstContext:t,responders:null}}else Qi=Qi.next=t;return e._currentValue}var aa=!1;function oa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function sa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function la(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ua(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ca(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fa(e,t,n,r){var i=e.updateQueue;aa=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var u=l,c=u.next;u.next=null,null===s?o=c:s.next=c,s=u;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==s&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=u)}}if(null!==o){for(d=i.baseState,s=0,f=c=u=null;;){l=o.lane;var p=o.eventTime;if((r&l)===l){null!==f&&(f=f.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var h=e,m=o;switch(l=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,l);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(l="function"==typeof(h=m.payload)?h.call(p,d,l):h)||void 0===l)break e;d=a({},d,l);break e;case 2:aa=!0}}null!==o.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[o]:l.push(o))}else p={eventTime:p,lane:l,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(c=f=p,u=d):f=f.next=p,s|=l;if(null===(o=o.next)){if(null===(l=i.shared.pending))break;o=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}null===f&&(u=d),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=f,Ds|=s,e.lanes=s,e.memoizedState=d}}function da(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(s(191,i));i.call(r)}}}var pa=(new i.Component).refs;function ha(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:a({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ma={isMounted:function(e){return!!(e=e._reactInternals)&&Xe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ul(),i=cl(e),a=la(r,i);a.payload=t,null!=n&&(a.callback=n),ua(e,a),fl(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ul(),i=cl(e),a=la(r,i);a.tag=1,a.payload=t,null!=n&&(a.callback=n),ua(e,a),fl(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ul(),r=cl(e),i=la(n,r);i.tag=2,null!=t&&(i.callback=t),ua(e,i),fl(e,r,n)}};function ga(e,t,n,r,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!(t.prototype&&t.prototype.isPureReactComponent&&cr(n,r)&&cr(i,a))}function ya(e,t,n){var r=!1,i=ci,a=t.contextType;return"object"==typeof a&&null!==a?a=ia(a):(i=mi(t)?pi:fi.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?hi(e,i):ci),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ma,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function va(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ma.enqueueReplaceState(t,t.state,null)}function ba(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=pa,oa(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=ia(a):(a=mi(t)?pi:fi.current,i.context=hi(e,a)),fa(e,n,i,r),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(ha(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ma.enqueueReplaceState(i,i.state,null),fa(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var wa=Array.isArray;function xa(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(s(309));var r=n.stateNode}if(!r)throw Error(s(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===pa&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function _a(e,t){if("textarea"!==e.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Ea(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Hl(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function o(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Zl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=xa(e,t,n),r.return=e,r):((r=Wl(n.type,n.key,n.props,null,e.mode,r)).ref=xa(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Yl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=ql(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Zl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Wl(t.type,t.key,t.props,null,e.mode,n)).ref=xa(e,null,t),n.return=e,n;case k:return(t=Yl(t,e.mode,n)).return=e,t}if(wa(t)||H(t))return(t=ql(t,e.mode,n,null)).return=e,t;_a(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===i?n.type===S?f(e,t,n.props.children,r,i):u(e,t,n,r):null;case k:return n.key===i?c(e,t,n,r):null}if(wa(n)||H(n))return null!==i?null:f(e,t,n,r,null);_a(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return e=e.get(null===r.key?n:r.key)||null,r.type===S?f(t,e,r.props.children,i,r.key):u(t,e,r,i);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(wa(r)||H(r))return f(t,e=e.get(n)||null,r,i,null);_a(t,r)}return null}function m(i,o,s,l){for(var u=null,c=null,f=o,m=o=0,g=null;null!==f&&m<s.length;m++){f.index>m?(g=f,f=null):g=f.sibling;var y=p(i,f,s[m],l);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(i,f),o=a(y,o,m),null===c?u=y:c.sibling=y,c=y,f=g}if(m===s.length)return n(i,f),u;if(null===f){for(;m<s.length;m++)null!==(f=d(i,s[m],l))&&(o=a(f,o,m),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(i,f);m<s.length;m++)null!==(g=h(f,i,m,s[m],l))&&(e&&null!==g.alternate&&f.delete(null===g.key?m:g.key),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g);return e&&f.forEach((function(e){return t(i,e)})),u}function g(i,o,l,u){var c=H(l);if("function"!=typeof c)throw Error(s(150));if(null==(l=c.call(l)))throw Error(s(151));for(var f=c=null,m=o,g=o=0,y=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=p(i,m,v.value,u);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(i,m),o=a(b,o,g),null===f?c=b:f.sibling=b,f=b,m=y}if(v.done)return n(i,m),c;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=d(i,v.value,u))&&(o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return c}for(m=r(i,m);!v.done;g++,v=l.next())null!==(v=h(m,i,g,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,a,l){var u="object"==typeof a&&null!==a&&a.type===S&&null===a.key;u&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case E:e:{for(c=a.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(a.type===S){n(e,u.sibling),(r=i(u,a.props.children)).return=e,e=r;break e}}else if(u.elementType===a.type){n(e,u.sibling),(r=i(u,a.props)).ref=xa(e,u,a),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}a.type===S?((r=ql(a.props.children,e.mode,l,a.key)).return=e,e=r):((l=Wl(a.type,a.key,a.props,null,e.mode,l)).ref=xa(e,r,a),l.return=e,e=l)}return o(e);case k:e:{for(u=a.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Yl(a,e.mode,l)).return=e,e=r}return o(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=Zl(a,e.mode,l)).return=e,e=r),o(e);if(wa(a))return m(e,r,a,l);if(H(a))return g(e,r,a,l);if(c&&_a(e,a),void 0===a&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(s(152,Y(e.type)||"Component"))}return n(e,r)}}var ka=Ea(!0),Sa=Ea(!1),Aa={},Ca=si(Aa),Oa=si(Aa),Ta=si(Aa);function Na(e){if(e===Aa)throw Error(s(174));return e}function Ra(e,t){switch(ui(Ta,t),ui(Oa,e),ui(Ca,Aa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:me(null,"");break;default:t=me(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}li(Ca),ui(Ca,t)}function Pa(){li(Ca),li(Oa),li(Ta)}function ja(e){Na(Ta.current);var t=Na(Ca.current),n=me(t,e.type);t!==n&&(ui(Oa,e),ui(Ca,n))}function Ia(e){Oa.current===e&&(li(Ca),li(Oa))}var La=si(0);function Ma(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ba=null,Da=null,Ua=!1;function Fa(e,t){var n=zl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function za(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Va(e){if(Ua){var t=Da;if(t){var n=t;if(!za(e,t)){if(!(t=Gr(n.nextSibling))||!za(e,t))return e.flags=-1025&e.flags|2,Ua=!1,void(Ba=e);Fa(Ba,n)}Ba=e,Da=Gr(t.firstChild)}else e.flags=-1025&e.flags|2,Ua=!1,Ba=e}}function Ha(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ba=e}function Wa(e){if(e!==Ba)return!1;if(!Ua)return Ha(e),Ua=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Vr(t,e.memoizedProps))for(t=Da;t;)Fa(e,t),t=Gr(t.nextSibling);if(Ha(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Da=Gr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Da=null}}else Da=Ba?Gr(e.stateNode.nextSibling):null;return!0}function qa(){Da=Ba=null,Ua=!1}var Ga=[];function Za(){for(var e=0;e<Ga.length;e++)Ga[e]._workInProgressVersionPrimary=null;Ga.length=0}var Ya=_.ReactCurrentDispatcher,$a=_.ReactCurrentBatchConfig,Ka=0,Xa=null,Qa=null,Ja=null,eo=!1,to=!1;function no(){throw Error(s(321))}function ro(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function io(e,t,n,r,i,a){if(Ka=a,Xa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ya.current=null===e||null===e.memoizedState?Ro:Po,e=n(r,i),to){a=0;do{if(to=!1,!(25>a))throw Error(s(301));a+=1,Ja=Qa=null,t.updateQueue=null,Ya.current=jo,e=n(r,i)}while(to)}if(Ya.current=No,t=null!==Qa&&null!==Qa.next,Ka=0,Ja=Qa=Xa=null,eo=!1,t)throw Error(s(300));return e}function ao(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ja?Xa.memoizedState=Ja=e:Ja=Ja.next=e,Ja}function oo(){if(null===Qa){var e=Xa.alternate;e=null!==e?e.memoizedState:null}else e=Qa.next;var t=null===Ja?Xa.memoizedState:Ja.next;if(null!==t)Ja=t,Qa=e;else{if(null===e)throw Error(s(310));e={memoizedState:(Qa=e).memoizedState,baseState:Qa.baseState,baseQueue:Qa.baseQueue,queue:Qa.queue,next:null},null===Ja?Xa.memoizedState=Ja=e:Ja=Ja.next=e}return Ja}function so(e,t){return"function"==typeof t?t(e):t}function lo(e){var t=oo(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=Qa,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=o=a=null,u=i;do{var c=u.lane;if((Ka&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(o=l=f,a=r):l=l.next=f,Xa.lanes|=c,Ds|=c}u=u.next}while(null!==u&&u!==i);null===l?a=r:l.next=o,lr(r,t.memoizedState)||(Lo=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function uo(e){var t=oo(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var o=i=i.next;do{a=e(a,o.action),o=o.next}while(o!==i);lr(a,t.memoizedState)||(Lo=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function co(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Ka&e)===e)&&(t._workInProgressVersionPrimary=r,Ga.push(t))),e)return n(t._source);throw Ga.push(t),Error(s(350))}function fo(e,t,n,r){var i=Ns;if(null===i)throw Error(s(349));var a=t._getVersion,o=a(t._source),l=Ya.current,u=l.useState((function(){return co(i,t,n)})),c=u[1],f=u[0];u=Ja;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var g=Xa;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=a(t._source);if(!lr(o,e)){e=n(t._source),lr(f,e)||(c(e),e=cl(g),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,s=e;0<s;){var l=31-qt(s),u=1<<l;r[l]|=e,s&=~u}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=cl(g);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),lr(h,n)&&lr(m,t)&&lr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:so,lastRenderedState:f}).dispatch=c=To.bind(null,Xa,e),u.queue=e,u.baseQueue=null,f=co(i,t,n),u.memoizedState=u.baseState=f),f}function po(e,t,n){return fo(oo(),e,t,n)}function ho(e){var t=ao();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:so,lastRenderedState:e}).dispatch=To.bind(null,Xa,e),[t.memoizedState,e]}function mo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Xa.updateQueue)?(t={lastEffect:null},Xa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function go(e){return e={current:e},ao().memoizedState=e}function yo(){return oo().memoizedState}function vo(e,t,n,r){var i=ao();Xa.flags|=e,i.memoizedState=mo(1|t,n,void 0,void 0===r?null:r)}function bo(e,t,n,r){var i=oo();r=void 0===r?null:r;var a=void 0;if(null!==Qa){var o=Qa.memoizedState;if(a=o.destroy,null!==r&&ro(r,o.deps))return void mo(t,n,a,r)}Xa.flags|=e,i.memoizedState=mo(1|t,n,a,r)}function wo(e,t){return vo(516,4,e,t)}function xo(e,t){return bo(516,4,e,t)}function _o(e,t){return bo(4,2,e,t)}function Eo(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ko(e,t,n){return n=null!=n?n.concat([e]):null,bo(4,2,Eo.bind(null,t,e),n)}function So(){}function Ao(e,t){var n=oo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ro(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Co(e,t){var n=oo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ro(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Oo(e,t){var n=Vi();Wi(98>n?98:n,(function(){e(!0)})),Wi(97<n?97:n,(function(){var n=$a.transition;$a.transition=1;try{e(!1),t()}finally{$a.transition=n}}))}function To(e,t,n){var r=ul(),i=cl(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Xa||null!==o&&o===Xa)to=eo=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=o(s,n);if(a.eagerReducer=o,a.eagerState=l,lr(l,s))return}catch(e){}fl(e,i,r)}}var No={readContext:ia,useCallback:no,useContext:no,useEffect:no,useImperativeHandle:no,useLayoutEffect:no,useMemo:no,useReducer:no,useRef:no,useState:no,useDebugValue:no,useDeferredValue:no,useTransition:no,useMutableSource:no,useOpaqueIdentifier:no,unstable_isNewReconciler:!1},Ro={readContext:ia,useCallback:function(e,t){return ao().memoizedState=[e,void 0===t?null:t],e},useContext:ia,useEffect:wo,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,vo(4,2,Eo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vo(4,2,e,t)},useMemo:function(e,t){var n=ao();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ao();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=To.bind(null,Xa,e),[r.memoizedState,e]},useRef:go,useState:ho,useDebugValue:So,useDeferredValue:function(e){var t=ho(e),n=t[0],r=t[1];return wo((function(){var t=$a.transition;$a.transition=1;try{r(e)}finally{$a.transition=t}}),[e]),n},useTransition:function(){var e=ho(!1),t=e[0];return go(e=Oo.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ao();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},fo(r,e,t,n)},useOpaqueIdentifier:function(){if(Ua){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Yr++).toString(36))),Error(s(355))})),n=ho(t)[1];return 0==(2&Xa.mode)&&(Xa.flags|=516,mo(5,(function(){n("r:"+(Yr++).toString(36))}),void 0,null)),t}return ho(t="r:"+(Yr++).toString(36)),t},unstable_isNewReconciler:!1},Po={readContext:ia,useCallback:Ao,useContext:ia,useEffect:xo,useImperativeHandle:ko,useLayoutEffect:_o,useMemo:Co,useReducer:lo,useRef:yo,useState:function(){return lo(so)},useDebugValue:So,useDeferredValue:function(e){var t=lo(so),n=t[0],r=t[1];return xo((function(){var t=$a.transition;$a.transition=1;try{r(e)}finally{$a.transition=t}}),[e]),n},useTransition:function(){var e=lo(so)[0];return[yo().current,e]},useMutableSource:po,useOpaqueIdentifier:function(){return lo(so)[0]},unstable_isNewReconciler:!1},jo={readContext:ia,useCallback:Ao,useContext:ia,useEffect:xo,useImperativeHandle:ko,useLayoutEffect:_o,useMemo:Co,useReducer:uo,useRef:yo,useState:function(){return uo(so)},useDebugValue:So,useDeferredValue:function(e){var t=uo(so),n=t[0],r=t[1];return xo((function(){var t=$a.transition;$a.transition=1;try{r(e)}finally{$a.transition=t}}),[e]),n},useTransition:function(){var e=uo(so)[0];return[yo().current,e]},useMutableSource:po,useOpaqueIdentifier:function(){return uo(so)[0]},unstable_isNewReconciler:!1},Io=_.ReactCurrentOwner,Lo=!1;function Mo(e,t,n,r){t.child=null===e?Sa(t,null,n,r):ka(t,e.child,n,r)}function Bo(e,t,n,r,i){n=n.render;var a=t.ref;return ra(t,i),r=io(e,t,n,r,a,i),null===e||Lo?(t.flags|=1,Mo(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ns(e,t,i))}function Do(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!=typeof o||Vl(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Wl(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Uo(e,t,o,r,i,a))}return o=e.child,0==(i&a)&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:cr)(i,r)&&e.ref===t.ref)?ns(e,t,a):(t.flags|=1,(e=Hl(o,r)).ref=t.ref,e.return=t,t.child=e)}function Uo(e,t,n,r,i,a){if(null!==e&&cr(e.memoizedProps,r)&&e.ref===t.ref){if(Lo=!1,0==(a&i))return t.lanes=e.lanes,ns(e,t,a);0!=(16384&e.flags)&&(Lo=!0)}return Vo(e,t,n,r,a)}function Fo(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},bl(t,n);else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},bl(t,e),null;t.memoizedState={baseLanes:0},bl(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,bl(t,r);return Mo(e,t,i,n),t.child}function zo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Vo(e,t,n,r,i){var a=mi(n)?pi:fi.current;return a=hi(t,a),ra(t,i),n=io(e,t,n,r,a,i),null===e||Lo?(t.flags|=1,Mo(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ns(e,t,i))}function Ho(e,t,n,r,i){if(mi(n)){var a=!0;bi(t)}else a=!1;if(ra(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),ya(t,n,r),ba(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=n.contextType;u="object"==typeof u&&null!==u?ia(u):hi(t,u=mi(n)?pi:fi.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==r||l!==u)&&va(t,o,r,u),aa=!1;var d=t.memoizedState;o.state=d,fa(t,r,o,i),l=t.memoizedState,s!==r||d!==l||di.current||aa?("function"==typeof c&&(ha(t,n,c,r),l=t.memoizedState),(s=aa||ga(t,n,s,r,d,l,u))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4)):("function"==typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,sa(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:$i(t.type,s),o.props=u,f=t.pendingProps,d=o.context,l="object"==typeof(l=n.contextType)&&null!==l?ia(l):hi(t,l=mi(n)?pi:fi.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==f||d!==l)&&va(t,o,r,l),aa=!1,d=t.memoizedState,o.state=d,fa(t,r,o,i);var h=t.memoizedState;s!==f||d!==h||di.current||aa?("function"==typeof p&&(ha(t,n,p,r),h=t.memoizedState),(u=aa||ga(t,n,u,r,d,h,l))?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=l,r=u):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Wo(e,t,n,r,a,i)}function Wo(e,t,n,r,i,a){zo(e,t);var o=0!=(64&t.flags);if(!r&&!o)return i&&wi(t,n,!1),ns(e,t,a);r=t.stateNode,Io.current=t;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=ka(t,e.child,null,a),t.child=ka(t,null,s,a)):Mo(e,t,s,a),t.memoizedState=r.state,i&&wi(t,n,!0),t.child}function qo(e){var t=e.stateNode;t.pendingContext?yi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yi(0,t.context,!1),Ra(e,t.containerInfo)}var Go,Zo,Yo,$o,Ko={dehydrated:null,retryLane:0};function Xo(e,t,n){var r,i=t.pendingProps,a=La.current,o=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),ui(La,1&a),null===e?(void 0!==i.fallback&&Va(t),e=i.children,a=i.fallback,o?(e=Qo(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ko,e):"number"==typeof i.unstable_expectedLoadTime?(e=Qo(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ko,t.lanes=33554432,e):((n=Gl({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(i=function(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var s={mode:"hidden",children:n};return 0==(2&a)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=s,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Hl(o,s),null!==e?r=Hl(e,r):(r=ql(r,a,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Ko,i):(n=function(e,t,n,r){var i=e.child;return e=i.sibling,n=Hl(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,i.children,n),t.memoizedState=null,n))}function Qo(e,t,n,r){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=Gl(t,i,0,null),n=ql(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function Jo(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),na(e.return,t)}function es(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function ts(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Mo(e,t,r.children,n),0!=(2&(r=La.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Jo(e,n);else if(19===e.tag)Jo(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ui(La,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Ma(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),es(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Ma(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}es(t,!0,n,null,a,t.lastEffect);break;case"together":es(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ns(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ds|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Hl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Hl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function rs(e,t){if(!Ua)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function is(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return mi(t.type)&&gi(),null;case 3:return Pa(),li(di),li(fi),Za(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Wa(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Zo(t),null;case 5:Ia(t);var i=Na(Ta.current);if(n=t.type,null!==e&&null!=t.stateNode)Yo(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(s(166));return null}if(e=Na(Ca.current),Wa(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Kr]=t,r[Xr]=o,n){case"dialog":Or("cancel",r),Or("close",r);break;case"iframe":case"object":case"embed":Or("load",r);break;case"video":case"audio":for(e=0;e<kr.length;e++)Or(kr[e],r);break;case"source":Or("error",r);break;case"img":case"image":case"link":Or("error",r),Or("load",r);break;case"details":Or("toggle",r);break;case"input":te(r,o),Or("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Or("invalid",r);break;case"textarea":ue(r,o),Or("invalid",r)}for(var l in Se(n,o),e=null,o)o.hasOwnProperty(l)&&(i=o[l],"children"===l?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):u.hasOwnProperty(l)&&null!=i&&"onScroll"===l&&Or("scroll",r));switch(n){case"input":X(r),ie(r,o,!0);break;case"textarea":X(r),fe(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=Dr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(l=9===i.nodeType?i:i.ownerDocument,e===de&&(e=he(n)),e===de?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Kr]=t,e[Xr]=r,Go(e,t,!1,!1),t.stateNode=e,l=Ae(n,r),n){case"dialog":Or("cancel",e),Or("close",e),i=r;break;case"iframe":case"object":case"embed":Or("load",e),i=r;break;case"video":case"audio":for(i=0;i<kr.length;i++)Or(kr[i],e);i=r;break;case"source":Or("error",e),i=r;break;case"img":case"image":case"link":Or("error",e),Or("load",e),i=r;break;case"details":Or("toggle",e),i=r;break;case"input":te(e,r),i=ee(e,r),Or("invalid",e);break;case"option":i=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=a({},r,{value:void 0}),Or("invalid",e);break;case"textarea":ue(e,r),i=le(e,r),Or("invalid",e);break;default:i=r}Se(n,i);var c=i;for(o in c)if(c.hasOwnProperty(o)){var f=c[o];"style"===o?Ee(e,f):"dangerouslySetInnerHTML"===o?null!=(f=f?f.__html:void 0)&&ve(e,f):"children"===o?"string"==typeof f?("textarea"!==n||""!==f)&&be(e,f):"number"==typeof f&&be(e,""+f):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(u.hasOwnProperty(o)?null!=f&&"onScroll"===o&&Or("scroll",e):null!=f&&x(e,o,f,l))}switch(n){case"input":X(e),ie(e,r,!1);break;case"textarea":X(e),fe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+$(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?se(e,!!r.multiple,o,!1):null!=r.defaultValue&&se(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Dr)}zr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)$o(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));n=Na(Ta.current),Na(Ca.current),Wa(t)?(r=t.stateNode,n=t.memoizedProps,r[Kr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Kr]=t,t.stateNode=r)}return null;case 13:return li(La),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Wa(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&La.current)?0===Ls&&(Ls=3):(0!==Ls&&3!==Ls||(Ls=4),null===Ns||0==(134217727&Ds)&&0==(134217727&Us)||ml(Ns,Ps))),(r||n)&&(t.flags|=4),null);case 4:return Pa(),Zo(t),null===e&&Nr(t.stateNode.containerInfo),null;case 10:return ta(t),null;case 19:if(li(La),null===(r=t.memoizedState))return null;if(o=0!=(64&t.flags),null===(l=r.rendering))if(o)rs(r,!1);else{if(0!==Ls||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(l=Ma(e))){for(t.flags|=64,rs(r,!1),null!==(o=l.updateQueue)&&(t.updateQueue=o,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(l=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ui(La,1&La.current|2),t.child}e=e.sibling}null!==r.tail&&zi()>Hs&&(t.flags|=64,o=!0,rs(r,!1),t.lanes=33554432)}else{if(!o)if(null!==(e=Ma(l))){if(t.flags|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),rs(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!Ua)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*zi()-r.renderingStartTime>Hs&&1073741824!==n&&(t.flags|=64,o=!0,rs(r,!1),t.lanes=33554432);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=zi(),n.sibling=null,t=La.current,ui(La,o?1&t|2:1&t),n):null;case 23:case 24:return wl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(s(156,t.tag))}function as(e){switch(e.tag){case 1:mi(e.type)&&gi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Pa(),li(di),li(fi),Za(),0!=(64&(t=e.flags)))throw Error(s(285));return e.flags=-4097&t|64,e;case 5:return Ia(e),null;case 13:return li(La),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return li(La),null;case 4:return Pa(),null;case 10:return ta(e),null;case 23:case 24:return wl(),null;default:return null}}function os(e,t){try{var n="",r=t;do{n+=Z(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function ss(e,t){try{r.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Go=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Zo=function(){},Yo=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Na(Ca.current);var o,s=null;switch(n){case"input":i=ee(e,i),r=ee(e,r),s=[];break;case"option":i=oe(e,i),r=oe(e,r),s=[];break;case"select":i=a({},i,{value:void 0}),r=a({},r,{value:void 0}),s=[];break;case"textarea":i=le(e,i),r=le(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Dr)}for(f in Se(n,r),n=null,i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var l=i[f];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var c=r[f];if(l=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&c!==l&&(null!=c||null!=l))if("style"===f)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(s||(s=[]),s.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Or("scroll",e),s||l===c||(s=[])):"object"==typeof c&&null!==c&&c.$$typeof===M?c.toString():(s=s||[]).push(f,c))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},$o=function(e,t,n,r){n!==r&&(t.flags|=4)};var ls="function"==typeof WeakMap?WeakMap:Map;function us(e,t,n){(n=la(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zs||(Zs=!0,Ys=r),ss(0,t)},n}function cs(e,t,n){(n=la(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return ss(0,t),r(i)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===$s?$s=new Set([this]):$s.add(this),ss(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var fs="function"==typeof WeakSet?WeakSet:Set;function ds(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Bl(e,t)}else t.current=null}function ps(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:$i(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&qr(t.stateNode.containerInfo))}throw Error(s(163))}function hs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Il(n,e),jl(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:$i(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&da(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}da(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&zr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Et(n)))))}throw Error(s(163))}function ms(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=_e("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function gs(e,t){if(_i&&"function"==typeof _i.onCommitFiberUnmount)try{_i.onCommitFiberUnmount(xi,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Il(t,n);else{r=t;try{i()}catch(e){Bl(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ds(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Bl(t,e)}break;case 5:ds(t);break;case 4:_s(e,t)}}function ys(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function vs(e){return 5===e.tag||3===e.tag||4===e.tag}function bs(e){e:{for(var t=e.return;null!==t;){if(vs(t))break e;t=t.return}throw Error(s(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(s(161))}16&n.flags&&(be(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?ws(e,n,t):xs(e,n,t)}function ws(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Dr));else if(4!==r&&null!==(e=e.child))for(ws(e,t,n),e=e.sibling;null!==e;)ws(e,t,n),e=e.sibling}function xs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(xs(e,t,n),e=e.sibling;null!==e;)xs(e,t,n),e=e.sibling}function _s(e,t){for(var n,r,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(s(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var o=e,l=i,u=l;;)if(gs(o,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(o=n,l=i.stateNode,8===o.nodeType?o.parentNode.removeChild(l):o.removeChild(l)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(gs(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function Es(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Xr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ne(n,r),Ae(e,i),t=Ae(e,r),i=0;i<a.length;i+=2){var o=a[i],l=a[i+1];"style"===o?Ee(n,l):"dangerouslySetInnerHTML"===o?ve(n,l):"children"===o?be(n,l):x(n,o,l,t)}switch(e){case"input":re(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?se(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?se(n,!!r.multiple,r.defaultValue,!0):se(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(s(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Et(n.containerInfo)));case 13:return null!==t.memoizedState&&(Vs=zi(),ms(t.child,!0)),void ks(t);case 19:return void ks(t);case 23:case 24:return void ms(t,null!==t.memoizedState)}throw Error(s(163))}function ks(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fs),t.forEach((function(t){var r=Ul.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ss(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var As=Math.ceil,Cs=_.ReactCurrentDispatcher,Os=_.ReactCurrentOwner,Ts=0,Ns=null,Rs=null,Ps=0,js=0,Is=si(0),Ls=0,Ms=null,Bs=0,Ds=0,Us=0,Fs=0,zs=null,Vs=0,Hs=1/0;function Ws(){Hs=zi()+500}var qs,Gs=null,Zs=!1,Ys=null,$s=null,Ks=!1,Xs=null,Qs=90,Js=[],el=[],tl=null,nl=0,rl=null,il=-1,al=0,ol=0,sl=null,ll=!1;function ul(){return 0!=(48&Ts)?zi():-1!==il?il:il=zi()}function cl(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Vi()?1:2;if(0===al&&(al=Bs),0!==Yi.transition){0!==ol&&(ol=null!==zs?zs.pendingLanes:0),e=al;var t=4186112&~ol;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Vi(),e=zt(0!=(4&Ts)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),al)}function fl(e,t,n){if(50<nl)throw nl=0,rl=null,Error(s(185));if(null===(e=dl(e,t)))return null;Wt(e,t,n),e===Ns&&(Us|=t,4===Ls&&ml(e,Ps));var r=Vi();1===t?0!=(8&Ts)&&0==(48&Ts)?gl(e):(pl(e,n),0===Ts&&(Ws(),Gi())):(0==(4&Ts)||98!==r&&99!==r||(null===tl?tl=new Set([e]):tl.add(e)),pl(e,n)),zs=e}function dl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function pl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-qt(o),u=1<<l,c=a[l];if(-1===c){if(0==(u&r)||0!=(u&i)){c=t,Dt(u);var f=Bt;a[l]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);o&=~u}if(r=Ut(e,e===Ns?Ps:0),t=Bt,0===r)null!==n&&(n!==Li&&Si(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Li&&Si(n)}15===t?(n=gl.bind(null,e),null===Bi?(Bi=[n],Di=ki(Ni,Zi)):Bi.push(n),n=Li):14===t?n=qi(99,gl.bind(null,e)):n=qi(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(s(358,e))}}(t),hl.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function hl(e){if(il=-1,ol=al=0,0!=(48&Ts))throw Error(s(327));var t=e.callbackNode;if(Pl()&&e.callbackNode!==t)return null;var n=Ut(e,e===Ns?Ps:0);if(0===n)return null;var r=n,i=Ts;Ts|=16;var a=El();for(Ns===e&&Ps===r||(Ws(),xl(e,r));;)try{Al();break}catch(t){_l(e,t)}if(ea(),Cs.current=a,Ts=i,null!==Rs?r=0:(Ns=null,Ps=0,r=Ls),0!=(Bs&Us))xl(e,0);else if(0!==r){if(2===r&&(Ts|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(n=Ft(e))&&(r=kl(e,n))),1===r)throw t=Ms,xl(e,0),ml(e,n),pl(e,zi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(s(345));case 2:case 5:Tl(e);break;case 3:if(ml(e,n),(62914560&n)===n&&10<(r=Vs+500-zi())){if(0!==Ut(e,0))break;if(((i=e.suspendedLanes)&n)!==n){ul(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Hr(Tl.bind(null,e),r);break}Tl(e);break;case 4:if(ml(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var o=31-qt(n);a=1<<o,(o=r[o])>i&&(i=o),n&=~a}if(n=i,10<(n=(120>(n=zi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*As(n/1960))-n)){e.timeoutHandle=Hr(Tl.bind(null,e),n);break}Tl(e);break;default:throw Error(s(329))}}return pl(e,zi()),e.callbackNode===t?hl.bind(null,e):null}function ml(e,t){for(t&=~Fs,t&=~Us,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-qt(t),r=1<<n;e[n]=-1,t&=~r}}function gl(e){if(0!=(48&Ts))throw Error(s(327));if(Pl(),e===Ns&&0!=(e.expiredLanes&Ps)){var t=Ps,n=kl(e,t);0!=(Bs&Us)&&(n=kl(e,t=Ut(e,t)))}else n=kl(e,t=Ut(e,0));if(0!==e.tag&&2===n&&(Ts|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(t=Ft(e))&&(n=kl(e,t))),1===n)throw n=Ms,xl(e,0),ml(e,t),pl(e,zi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Tl(e),pl(e,zi()),null}function yl(e,t){var n=Ts;Ts|=1;try{return e(t)}finally{0===(Ts=n)&&(Ws(),Gi())}}function vl(e,t){var n=Ts;Ts&=-2,Ts|=8;try{return e(t)}finally{0===(Ts=n)&&(Ws(),Gi())}}function bl(e,t){ui(Is,js),js|=t,Bs|=t}function wl(){js=Is.current,li(Is)}function xl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Wr(n)),null!==Rs)for(n=Rs.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&gi();break;case 3:Pa(),li(di),li(fi),Za();break;case 5:Ia(r);break;case 4:Pa();break;case 13:case 19:li(La);break;case 10:ta(r);break;case 23:case 24:wl()}n=n.return}Ns=e,Rs=Hl(e.current,null),Ps=js=Bs=t,Ls=0,Ms=null,Fs=Us=Ds=0}function _l(e,t){for(;;){var n=Rs;try{if(ea(),Ya.current=No,eo){for(var r=Xa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}eo=!1}if(Ka=0,Ja=Qa=Xa=null,to=!1,Os.current=null,null===n||null===n.return){Ls=1,Ms=t,Rs=null;break}e:{var a=e,o=n.return,s=n,l=t;if(t=Ps,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l;if(0==(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!=(1&La.current),d=o;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=d.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(p){var g=d.updateQueue;if(null===g){var y=new Set;y.add(u),d.updateQueue=y}else g.add(u);if(0==(2&d.mode)){if(d.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var v=la(-1,1);v.tag=2,ua(s,v)}s.lanes|=1;break e}l=void 0,s=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new ls,l=new Set,b.set(u,l)):void 0===(l=b.get(u))&&(l=new Set,b.set(u,l)),!l.has(s)){l.add(s);var w=Dl.bind(null,a,u,s);u.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);l=Error((Y(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ls&&(Ls=2),l=os(l,s),d=o;do{switch(d.tag){case 3:a=l,d.flags|=4096,t&=-t,d.lanes|=t,ca(d,us(0,a,t));break e;case 1:a=l;var x=d.type,_=d.stateNode;if(0==(64&d.flags)&&("function"==typeof x.getDerivedStateFromError||null!==_&&"function"==typeof _.componentDidCatch&&(null===$s||!$s.has(_)))){d.flags|=4096,t&=-t,d.lanes|=t,ca(d,cs(d,a,t));break e}}d=d.return}while(null!==d)}Ol(n)}catch(e){t=e,Rs===n&&null!==n&&(Rs=n=n.return);continue}break}}function El(){var e=Cs.current;return Cs.current=No,null===e?No:e}function kl(e,t){var n=Ts;Ts|=16;var r=El();for(Ns===e&&Ps===t||xl(e,t);;)try{Sl();break}catch(t){_l(e,t)}if(ea(),Ts=n,Cs.current=r,null!==Rs)throw Error(s(261));return Ns=null,Ps=0,Ls}function Sl(){for(;null!==Rs;)Cl(Rs)}function Al(){for(;null!==Rs&&!Ai();)Cl(Rs)}function Cl(e){var t=qs(e.alternate,e,js);e.memoizedProps=e.pendingProps,null===t?Ol(e):Rs=t,Os.current=null}function Ol(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=is(n,t,js)))return void(Rs=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&js)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=as(t)))return n.flags&=2047,void(Rs=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Rs=t);Rs=t=e}while(null!==t);0===Ls&&(Ls=5)}function Tl(e){var t=Vi();return Wi(99,Nl.bind(null,e,t)),null}function Nl(e,t){do{Pl()}while(null!==Xs);if(0!=(48&Ts))throw Error(s(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var o=e.eventTimes,l=e.expirationTimes;0<a;){var u=31-qt(a),c=1<<u;i[u]=0,o[u]=-1,l[u]=-1,a&=~c}if(null!==tl&&0==(24&r)&&tl.has(e)&&tl.delete(e),e===Ns&&(Rs=Ns=null,Ps=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Ts,Ts|=32,Os.current=null,Ur=Kt,mr(o=hr())){if("selectionStart"in o)l={start:o.selectionStart,end:o.selectionEnd};else e:if(l=(l=o.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&0!==c.rangeCount){l=c.anchorNode,a=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{l.nodeType,u.nodeType}catch(e){l=null;break e}var f=0,d=-1,p=-1,h=0,m=0,g=o,y=null;t:for(;;){for(var v;g!==l||0!==a&&3!==g.nodeType||(d=f+a),g!==u||0!==c&&3!==g.nodeType||(p=f+c),3===g.nodeType&&(f+=g.nodeValue.length),null!==(v=g.firstChild);)y=g,g=v;for(;;){if(g===o)break t;if(y===l&&++h===a&&(d=f),y===u&&++m===c&&(p=f),null!==(v=g.nextSibling))break;y=(g=y).parentNode}g=v}l=-1===d||-1===p?null:{start:d,end:p}}else l=null;l=l||{start:0,end:0}}else l=null;Fr={focusedElem:o,selectionRange:l},Kt=!1,sl=null,ll=!1,Gs=r;do{try{Rl()}catch(e){if(null===Gs)throw Error(s(330));Bl(Gs,e),Gs=Gs.nextEffect}}while(null!==Gs);sl=null,Gs=r;do{try{for(o=e;null!==Gs;){var b=Gs.flags;if(16&b&&be(Gs.stateNode,""),128&b){var w=Gs.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&b){case 2:bs(Gs),Gs.flags&=-3;break;case 6:bs(Gs),Gs.flags&=-3,Es(Gs.alternate,Gs);break;case 1024:Gs.flags&=-1025;break;case 1028:Gs.flags&=-1025,Es(Gs.alternate,Gs);break;case 4:Es(Gs.alternate,Gs);break;case 8:_s(o,l=Gs);var _=l.alternate;ys(l),null!==_&&ys(_)}Gs=Gs.nextEffect}}catch(e){if(null===Gs)throw Error(s(330));Bl(Gs,e),Gs=Gs.nextEffect}}while(null!==Gs);if(x=Fr,w=hr(),b=x.focusedElem,o=x.selectionRange,w!==b&&b&&b.ownerDocument&&pr(b.ownerDocument.documentElement,b)){null!==o&&mr(b)&&(w=o.start,void 0===(x=o.end)&&(x=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(x,b.value.length)):(x=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),l=b.textContent.length,_=Math.min(o.start,l),o=void 0===o.end?_:Math.min(o.end,l),!x.extend&&_>o&&(l=o,o=_,_=l),l=dr(b,_),a=dr(b,o),l&&a&&(1!==x.rangeCount||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==a.node||x.focusOffset!==a.offset)&&((w=w.createRange()).setStart(l.node,l.offset),x.removeAllRanges(),_>o?(x.addRange(w),x.extend(a.node,a.offset)):(w.setEnd(a.node,a.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(x=w[b]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Kt=!!Ur,Fr=Ur=null,e.current=n,Gs=r;do{try{for(b=e;null!==Gs;){var E=Gs.flags;if(36&E&&hs(b,Gs.alternate,Gs),128&E){w=void 0;var k=Gs.ref;if(null!==k){var S=Gs.stateNode;Gs.tag,w=S,"function"==typeof k?k(w):k.current=w}}Gs=Gs.nextEffect}}catch(e){if(null===Gs)throw Error(s(330));Bl(Gs,e),Gs=Gs.nextEffect}}while(null!==Gs);Gs=null,Mi(),Ts=i}else e.current=n;if(Ks)Ks=!1,Xs=e,Qs=t;else for(Gs=r;null!==Gs;)t=Gs.nextEffect,Gs.nextEffect=null,8&Gs.flags&&((E=Gs).sibling=null,E.stateNode=null),Gs=t;if(0===(r=e.pendingLanes)&&($s=null),1===r?e===rl?nl++:(nl=0,rl=e):nl=0,n=n.stateNode,_i&&"function"==typeof _i.onCommitFiberRoot)try{_i.onCommitFiberRoot(xi,n,void 0,64==(64&n.current.flags))}catch(e){}if(pl(e,zi()),Zs)throw Zs=!1,e=Ys,Ys=null,e;return 0!=(8&Ts)||Gi(),null}function Rl(){for(;null!==Gs;){var e=Gs.alternate;ll||null===sl||(0!=(8&Gs.flags)?tt(Gs,sl)&&(ll=!0):13===Gs.tag&&Ss(e,Gs)&&tt(Gs,sl)&&(ll=!0));var t=Gs.flags;0!=(256&t)&&ps(e,Gs),0==(512&t)||Ks||(Ks=!0,qi(97,(function(){return Pl(),null}))),Gs=Gs.nextEffect}}function Pl(){if(90!==Qs){var e=97<Qs?97:Qs;return Qs=90,Wi(e,Ll)}return!1}function jl(e,t){Js.push(t,e),Ks||(Ks=!0,qi(97,(function(){return Pl(),null})))}function Il(e,t){el.push(t,e),Ks||(Ks=!0,qi(97,(function(){return Pl(),null})))}function Ll(){if(null===Xs)return!1;var e=Xs;if(Xs=null,0!=(48&Ts))throw Error(s(331));var t=Ts;Ts|=32;var n=el;el=[];for(var r=0;r<n.length;r+=2){var i=n[r],a=n[r+1],o=i.destroy;if(i.destroy=void 0,"function"==typeof o)try{o()}catch(e){if(null===a)throw Error(s(330));Bl(a,e)}}for(n=Js,Js=[],r=0;r<n.length;r+=2){i=n[r],a=n[r+1];try{var l=i.create;i.destroy=l()}catch(e){if(null===a)throw Error(s(330));Bl(a,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Ts=t,Gi(),!0}function Ml(e,t,n){ua(e,t=us(0,t=os(n,t),1)),t=ul(),null!==(e=dl(e,1))&&(Wt(e,1,t),pl(e,t))}function Bl(e,t){if(3===e.tag)Ml(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Ml(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===$s||!$s.has(r))){var i=cs(n,e=os(t,e),1);if(ua(n,i),i=ul(),null!==(n=dl(n,1)))Wt(n,1,i),pl(n,i);else if("function"==typeof r.componentDidCatch&&(null===$s||!$s.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Dl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ul(),e.pingedLanes|=e.suspendedLanes&n,Ns===e&&(Ps&n)===n&&(4===Ls||3===Ls&&(62914560&Ps)===Ps&&500>zi()-Vs?xl(e,0):Fs|=n),pl(e,t)}function Ul(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Vi()?1:2:(0===al&&(al=Bs),0===(t=Vt(62914560&~al))&&(t=4194304))),n=ul(),null!==(e=dl(e,t))&&(Wt(e,t,n),pl(e,n))}function Fl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function zl(e,t,n,r){return new Fl(e,t,n,r)}function Vl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Hl(e,t){var n=e.alternate;return null===n?((n=zl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Wl(e,t,n,r,i,a){var o=2;if(r=e,"function"==typeof e)Vl(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case S:return ql(n.children,i,a,t);case B:o=8,i|=16;break;case A:o=8,i|=1;break;case C:return(e=zl(12,n,t,8|i)).elementType=C,e.type=C,e.lanes=a,e;case R:return(e=zl(13,n,t,i)).type=R,e.elementType=R,e.lanes=a,e;case P:return(e=zl(19,n,t,i)).elementType=P,e.lanes=a,e;case D:return Gl(n,i,a,t);case U:return(e=zl(24,n,t,i)).elementType=U,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:o=10;break e;case T:o=9;break e;case N:o=11;break e;case j:o=14;break e;case I:o=16,r=null;break e;case L:o=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=zl(o,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function ql(e,t,n,r){return(e=zl(7,e,r,t)).lanes=n,e}function Gl(e,t,n,r){return(e=zl(23,e,r,t)).elementType=D,e.lanes=n,e}function Zl(e,t,n){return(e=zl(6,e,null,t)).lanes=n,e}function Yl(e,t,n){return(t=zl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $l(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ht(0),this.expirationTimes=Ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ht(0),this.mutableSourceEagerHydrationData=null}function Kl(e,t,n,r){var i=t.current,a=ul(),o=cl(i);e:if(n){t:{if(Xe(n=n._reactInternals)!==n||1!==n.tag)throw Error(s(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(mi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(s(171))}if(1===n.tag){var u=n.type;if(mi(u)){n=vi(n,u,l);break e}}n=l}else n=ci;return null===t.context?t.context=n:t.pendingContext=n,(t=la(a,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ua(i,t),fl(i,o,a),o}function Xl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ql(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Jl(e,t){Ql(e,t),(e=e.alternate)&&Ql(e,t)}function eu(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new $l(e,t,null!=n&&!0===n.hydrate),t=zl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,oa(t),e[Qr]=n.current,Nr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function tu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function nu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Xl(o);s.call(e)}}Kl(t,o,e,i)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new eu(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"==typeof i){var l=i;i=function(){var e=Xl(o);l.call(e)}}vl((function(){Kl(t,o,e,i)}))}return Xl(o)}function ru(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!tu(t))throw Error(s(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}qs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||di.current)Lo=!0;else{if(0==(n&r)){switch(Lo=!1,t.tag){case 3:qo(t),qa();break;case 5:ja(t);break;case 1:mi(t.type)&&bi(t);break;case 4:Ra(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ui(Ki,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Xo(e,t,n):(ui(La,1&La.current),null!==(t=ns(e,t,n))?t.sibling:null);ui(La,1&La.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return ts(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ui(La,La.current),r)break;return null;case 23:case 24:return t.lanes=0,Fo(e,t,n)}return ns(e,t,n)}Lo=0!=(16384&e.flags)}else Lo=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=hi(t,fi.current),ra(t,n),i=io(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,mi(r)){var a=!0;bi(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oa(t);var o=r.getDerivedStateFromProps;"function"==typeof o&&ha(t,r,o,e),i.updater=ma,t.stateNode=i,i._reactInternals=t,ba(t,r,e,n),t=Wo(null,t,r,!0,a,n)}else t.tag=0,Mo(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(a=i._init)(i._payload),t.type=i,a=t.tag=function(e){if("function"==typeof e)return Vl(e)?1:0;if(null!=e){if((e=e.$$typeof)===N)return 11;if(e===j)return 14}return 2}(i),e=$i(i,e),a){case 0:t=Vo(null,t,i,e,n);break e;case 1:t=Ho(null,t,i,e,n);break e;case 11:t=Bo(null,t,i,e,n);break e;case 14:t=Do(null,t,i,$i(i.type,e),r,n);break e}throw Error(s(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Vo(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ho(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 3:if(qo(t),r=t.updateQueue,null===e||null===r)throw Error(s(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,sa(e,t),fa(t,r,null,n),(r=t.memoizedState.element)===i)qa(),t=ns(e,t,n);else{if((a=(i=t.stateNode).hydrate)&&(Da=Gr(t.stateNode.containerInfo.firstChild),Ba=t,a=Ua=!0),a){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(a=e[i])._workInProgressVersionPrimary=e[i+1],Ga.push(a);for(n=Sa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Mo(e,t,r,n),qa();t=t.child}return t;case 5:return ja(t),null===e&&Va(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,o=i.children,Vr(r,i)?o=null:null!==a&&Vr(r,a)&&(t.flags|=16),zo(e,t),Mo(e,t,o,n),t.child;case 6:return null===e&&Va(t),null;case 13:return Xo(e,t,n);case 4:return Ra(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ka(t,null,r,n):Mo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Bo(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 7:return Mo(e,t,t.pendingProps,n),t.child;case 8:case 12:return Mo(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value;var l=t.type._context;if(ui(Ki,l._currentValue),l._currentValue=a,null!==o)if(l=o.value,0==(a=lr(l,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,a):1073741823))){if(o.children===i.children&&!di.current){t=ns(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){o=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&a)){1===l.tag&&((c=la(-1,n&-n)).tag=2,ua(l,c)),l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),na(l.return,n),u.lanes|=n;break}c=c.next}}else o=10===l.tag&&l.type===t.type?null:l.child;if(null!==o)o.return=l;else for(o=l;null!==o;){if(o===t){o=null;break}if(null!==(l=o.sibling)){l.return=o.return,o=l;break}o=o.return}l=o}Mo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,ra(t,n),r=r(i=ia(i,a.unstable_observedBits)),t.flags|=1,Mo(e,t,r,n),t.child;case 14:return a=$i(i=t.type,t.pendingProps),Do(e,t,i,a=$i(i.type,a),r,n);case 15:return Uo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:$i(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,mi(r)?(e=!0,bi(t)):e=!1,ra(t,n),ya(t,r,i),ba(t,r,i,n),Wo(null,t,r,!0,e,n);case 19:return ts(e,t,n);case 23:case 24:return Fo(e,t,n)}throw Error(s(156,t.tag))},eu.prototype.render=function(e){Kl(e,this._internalRoot,null,null)},eu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Kl(null,e,null,(function(){t[Qr]=null}))},nt=function(e){13===e.tag&&(fl(e,4,ul()),Jl(e,4))},rt=function(e){13===e.tag&&(fl(e,67108864,ul()),Jl(e,67108864))},it=function(e){if(13===e.tag){var t=ul(),n=cl(e);fl(e,n,t),Jl(e,n)}},at=function(e,t){return t()},Oe=function(e,t,n){switch(t){case"input":if(re(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ri(r);if(!i)throw Error(s(90));Q(r),re(r,i)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&se(e,!!n.multiple,t,!1)}},Ie=yl,Le=function(e,t,n,r,i){var a=Ts;Ts|=4;try{return Wi(98,e.bind(null,t,n,r,i))}finally{0===(Ts=a)&&(Ws(),Gi())}},Me=function(){0==(49&Ts)&&(function(){if(null!==tl){var e=tl;tl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,pl(e,zi())}))}Gi()}(),Pl())},Be=function(e,t){var n=Ts;Ts|=2;try{return e(t)}finally{0===(Ts=n)&&(Ws(),Gi())}};var iu={Events:[ti,ni,ri,Pe,je,Pl,{current:!1}]},au={findFiberByHostInstance:ei,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},ou={bundleType:au.bundleType,version:au.version,rendererPackageName:au.rendererPackageName,rendererConfig:au.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=et(e))?null:e.stateNode},findFiberByHostInstance:au.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!su.isDisabled&&su.supportsFiber)try{xi=su.inject(ou),_i=su}catch(ye){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=iu,t.createPortal=ru,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(s(188));throw Error(s(268,Object.keys(e)))}return null===(e=et(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Ts;if(0!=(48&n))return e(t);Ts|=1;try{if(e)return Wi(99,e.bind(null,t))}finally{Ts=n,Gi()}},t.hydrate=function(e,t,n){if(!tu(t))throw Error(s(200));return nu(null,e,t,!0,n)},t.render=function(e,t,n){if(!tu(t))throw Error(s(200));return nu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!tu(e))throw Error(s(40));return!!e._reactRootContainer&&(vl((function(){nu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Qr]=null}))})),!0)},t.unstable_batchedUpdates=yl,t.unstable_createPortal=function(e,t){return ru(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!tu(n))throw Error(s(200));if(null==e||void 0===e._reactInternals)throw Error(s(38));return nu(e,t,n,!1,r)},t.version="17.0.2"},8932:(e,t,n)=>{"use strict";var r=n(3705);!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){r.error(e)}}(),e.exports=n(3500)},1923:(e,t,n)=>{"use strict";n(8898);var r=n(1173),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;i=a("react.element"),t.Fragment=a("react.fragment")}var o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,a={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:a,_owner:o.current}}t.jsx=u,t.jsxs=u},5636:(e,t,n)=>{"use strict";var r=n(8898),i=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,s=60110,l=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),a=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),o=f("react.provider"),s=f("react.context"),l=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var b=v.prototype=new y;b.constructor=v,r(b,g.prototype),b.isPureReactComponent=!0;var w={current:null},x=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,a={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)x.call(t,r)&&!_.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:i,type:e,key:o,ref:s,props:a,_owner:w.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var S=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,n,r,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case a:l=!0}}if(l)return o=o(l=e),e=""===r?"."+A(l,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),C(o,t,n,"",(function(e){return e}))):null!=o&&(k(o)&&(o=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(S,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+A(s=e[u],u);l+=C(s,t,n,c,o)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),u=0;!(s=e.next()).done;)l+=C(s=s.value,t,n,c=r+A(s,u++),o);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function O(e,t,n){if(null==e)return e;var r=[],i=0;return C(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function T(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var N={current:null};function R(){var e=N.current;if(null===e)throw Error(p(321));return e}var P={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error(p(143));return e}},t.Component=g,t.PureComponent=v,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var a=r({},e.props),o=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=w.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)x.call(t,c)&&!_.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];a.children=u}return{$$typeof:i,type:e.type,key:o,ref:s,props:a,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return R().useCallback(e,t)},t.useContext=function(e,t){return R().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return R().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return R().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return R().useLayoutEffect(e,t)},t.useMemo=function(e,t){return R().useMemo(e,t)},t.useReducer=function(e,t,n){return R().useReducer(e,t,n)},t.useRef=function(e){return R().useRef(e)},t.useState=function(e){return R().useState(e)},t.version="17.0.2"},1173:(e,t,n)=>{"use strict";e.exports=n(5636)},465:(e,t,n)=>{"use strict";e.exports=n(1923)},6362:(e,t,n)=>{"use strict";var r=n(5224),i=n(3705);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,s,l=n(71).codes,u=l.ERR_AMBIGUOUS_ARGUMENT,c=l.ERR_INVALID_ARG_TYPE,f=l.ERR_INVALID_ARG_VALUE,d=l.ERR_INVALID_RETURN_VALUE,p=l.ERR_MISSING_ARGS,h=n(8292),m=n(3575).inspect,g=n(3575).types,y=g.isPromise,v=g.isRegExp,b=Object.assign?Object.assign:n(8957).assign,w=Object.is?Object.is:n(8619);function x(){var e=n(6825);o=e.isDeepEqual,s=e.isDeepStrictEqual}new Map;var _=!1,E=e.exports=C,k={};function S(e){if(e.message instanceof Error)throw e.message;throw new h(e)}function A(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var a=new h({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw a.generatedMessage=i,a}}function C(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];A.apply(void 0,[C,t.length].concat(t))}E.fail=function e(t,n,a,o,s){var l,u=arguments.length;if(0===u?l="Failed":1===u?(a=t,t=void 0):(!1===_&&(_=!0,(r.emitWarning?r.emitWarning:i.warn.bind(i))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===u&&(o="!=")),a instanceof Error)throw a;var c={actual:t,expected:n,operator:void 0===o?"fail":o,stackStartFn:s||e};void 0!==a&&(c.message=a);var f=new h(c);throw l&&(f.message=l,f.generatedMessage=!0),f},E.AssertionError=h,E.ok=C,E.equal=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");t!=n&&S({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},E.notEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");t==n&&S({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},E.deepEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),o(t,n)||S({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},E.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),o(t,n)&&S({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},E.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),s(t,n)||S({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},E.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),s(t,n)&&S({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},E.strictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");w(t,n)||S({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},E.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new p("actual","expected");w(t,n)&&S({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var O=function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach((function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&v(t[e])&&t[e].test(r[e])?i[e]=r[e]:i[e]=t[e])}))};function T(e,t,n,r){if("function"!=typeof t){if(v(t))return t.test(e);if(2===arguments.length)throw new c("expected",["Function","RegExp"],t);if("object"!==a(e)||null===e){var i=new h({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw i.operator=r.name,i}var l=Object.keys(t);if(t instanceof Error)l.push("name","message");else if(0===l.length)throw new f("error",t,"may not be an empty object");return void 0===o&&x(),l.forEach((function(i){"string"==typeof e[i]&&v(t[i])&&t[i].test(e[i])||function(e,t,n,r,i,a){if(!(n in e)||!s(e[n],t[n])){if(!r){var o=new O(e,i),l=new O(t,i,e),u=new h({actual:o,expected:l,operator:"deepStrictEqual",stackStartFn:a});throw u.actual=e,u.expected=t,u.operator=a.name,u}S({actual:e,expected:t,message:r,operator:a.name,stackStartFn:a})}}(e,t,i,n,l,r)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function N(e){if("function"!=typeof e)throw new c("fn","Function",e);try{e()}catch(e){return e}return k}function R(e){return y(e)||null!==e&&"object"===a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function P(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!R(t=e()))throw new d("instance of Promise","promiseFn",t)}else{if(!R(e))throw new c("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return k})).catch((function(e){return e}))}))}function j(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],n);if("object"===a(t)&&null!==t){if(t.message===n)throw new u("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new u("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==a(n)&&"function"!=typeof n)throw new c("error",["Object","Error","Function","RegExp"],n);if(t===k){var i="";n&&n.name&&(i+=" (".concat(n.name,")")),i+=r?": ".concat(r):".";var o="rejects"===e.name?"rejection":"exception";S({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(o).concat(i),stackStartFn:e})}if(n&&!T(t,n,r,e))throw t}function I(e,t,n,r){if(t!==k){if("string"==typeof n&&(r=n,n=void 0),!n||T(t,n)){var i=r?": ".concat(r):".",a="doesNotReject"===e.name?"rejection":"exception";S({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(a).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function L(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];A.apply(void 0,[L,t.length].concat(t))}E.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];j.apply(void 0,[e,N(t)].concat(r))},E.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return P(t).then((function(t){return j.apply(void 0,[e,t].concat(r))}))},E.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];I.apply(void 0,[e,N(t)].concat(r))},E.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return P(t).then((function(t){return I.apply(void 0,[e,t].concat(r))}))},E.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===a(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=m(t);var r=new h({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),i=t.stack;if("string"==typeof i){var o=i.split("\n");o.shift();for(var s=r.stack.split("\n"),l=0;l<o.length;l++){var u=s.indexOf(o[l]);if(-1!==u){s=s.slice(0,u);break}}r.stack="".concat(s.join("\n"),"\n").concat(o.join("\n"))}throw r}},E.strict=b(L,E,{equal:E.strictEqual,deepEqual:E.deepStrictEqual,notEqual:E.notStrictEqual,notDeepEqual:E.notDeepStrictEqual}),E.strict.strict=E.strict},8292:(e,t,n)=>{"use strict";var r=n(5224);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?s(e):t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){var t="function"==typeof Map?new Map:void 0;return(l=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,f(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)})(e)}function u(e,t,n){return(u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&c(i,n.prototype),i}).apply(null,arguments)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p=n(3575).inspect,h=n(71).codes.ERR_INVALID_ARG_TYPE;function m(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var g="",y="",v="",b="",w={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function x(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function _(e){return p(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function E(e,t,n){var i="",a="",o=0,s="",l=!1,u=_(e),c=u.split("\n"),f=_(t).split("\n"),p=0,h="";if("strictEqual"===n&&"object"===d(e)&&"object"===d(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===c.length&&1===f.length&&c[0]!==f[0]){var x=c[0].length+f[0].length;if(x<=10){if(!("object"===d(e)&&null!==e||"object"===d(t)&&null!==t||0===e&&0===t))return"".concat(w[n],"\n\n")+"".concat(c[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==n&&x<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;c[0][p]===f[0][p];)p++;p>2&&(h="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",p),"^"),p=0)}}for(var E=c[c.length-1],k=f[f.length-1];E===k&&(p++<2?s="\n ".concat(E).concat(s):i=E,c.pop(),f.pop(),0!==c.length&&0!==f.length);)E=c[c.length-1],k=f[f.length-1];var S=Math.max(c.length,f.length);if(0===S){var A=u.split("\n");if(A.length>30)for(A[26]="".concat(g,"...").concat(b);A.length>27;)A.pop();return"".concat(w.notIdentical,"\n\n").concat(A.join("\n"),"\n")}p>3&&(s="\n".concat(g,"...").concat(b).concat(s),l=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var C=0,O=w[n]+"\n".concat(y,"+ actual").concat(b," ").concat(v,"- expected").concat(b),T=" ".concat(g,"...").concat(b," Lines skipped");for(p=0;p<S;p++){var N=p-o;if(c.length<p+1)N>1&&p>2&&(N>4?(a+="\n".concat(g,"...").concat(b),l=!0):N>3&&(a+="\n ".concat(f[p-2]),C++),a+="\n ".concat(f[p-1]),C++),o=p,i+="\n".concat(v,"-").concat(b," ").concat(f[p]),C++;else if(f.length<p+1)N>1&&p>2&&(N>4?(a+="\n".concat(g,"...").concat(b),l=!0):N>3&&(a+="\n ".concat(c[p-2]),C++),a+="\n ".concat(c[p-1]),C++),o=p,a+="\n".concat(y,"+").concat(b," ").concat(c[p]),C++;else{var R=f[p],P=c[p],j=P!==R&&(!m(P,",")||P.slice(0,-1)!==R);j&&m(R,",")&&R.slice(0,-1)===P&&(j=!1,P+=","),j?(N>1&&p>2&&(N>4?(a+="\n".concat(g,"...").concat(b),l=!0):N>3&&(a+="\n ".concat(c[p-2]),C++),a+="\n ".concat(c[p-1]),C++),o=p,a+="\n".concat(y,"+").concat(b," ").concat(P),i+="\n".concat(v,"-").concat(b," ").concat(R),C+=2):(a+=i,i="",1!==N&&0!==p||(a+="\n ".concat(P),C++))}if(C>20&&p<S-2)return"".concat(O).concat(T,"\n").concat(a,"\n").concat(g,"...").concat(b).concat(i,"\n")+"".concat(g,"...").concat(b)}return"".concat(O).concat(l?T:"","\n").concat(a).concat(i).concat(s).concat(h)}var k=function(e){function t(e){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==d(e)||null===e)throw new h("options","Object",e);var i=e.message,a=e.operator,l=e.stackStartFn,u=e.actual,c=e.expected,p=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)n=o(this,f(t).call(this,String(i)));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(g="[34m",y="[32m",b="[39m",v="[31m"):(g="",y="",b="",v="")),"object"===d(u)&&null!==u&&"object"===d(c)&&null!==c&&"stack"in u&&u instanceof Error&&"stack"in c&&c instanceof Error&&(u=x(u),c=x(c)),"deepStrictEqual"===a||"strictEqual"===a)n=o(this,f(t).call(this,E(u,c,a)));else if("notDeepStrictEqual"===a||"notStrictEqual"===a){var m=w[a],k=_(u).split("\n");if("notStrictEqual"===a&&"object"===d(u)&&null!==u&&(m=w.notStrictEqualObject),k.length>30)for(k[26]="".concat(g,"...").concat(b);k.length>27;)k.pop();n=1===k.length?o(this,f(t).call(this,"".concat(m," ").concat(k[0]))):o(this,f(t).call(this,"".concat(m,"\n\n").concat(k.join("\n"),"\n")))}else{var S=_(u),A="",C=w[a];"notDeepEqual"===a||"notEqual"===a?(S="".concat(w[a],"\n\n").concat(S)).length>1024&&(S="".concat(S.slice(0,1021),"...")):(A="".concat(_(c)),S.length>512&&(S="".concat(S.slice(0,509),"...")),A.length>512&&(A="".concat(A.slice(0,509),"...")),"deepEqual"===a||"equal"===a?S="".concat(C,"\n\n").concat(S,"\n\nshould equal\n\n"):A=" ".concat(a," ").concat(A)),n=o(this,f(t).call(this,"".concat(S).concat(A)))}return Error.stackTraceLimit=p,n.generatedMessage=!i,Object.defineProperty(s(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=u,n.expected=c,n.operator=a,Error.captureStackTrace&&Error.captureStackTrace(s(n),l),n.stack,n.name="AssertionError",o(n)}var n,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,e),n=t,(l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:p.custom,value:function(e,t){return p(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}({},t,{customInspect:!1,depth:0}))}}])&&a(n.prototype,l),t}(l(Error));e.exports=k},71:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s,l,u={};function c(e,t,n){n||(n=Error);var r=function(n){function r(n,o,s){var l;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(l=i(this,a(r).call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,o,s)))).code=e,l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,n),r}(n);u[e]=r}function f(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",(function(e,t,i){var a,o,l;if(void 0===s&&(s=n(6362)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(a="must not be",t=t.replace(/^not /,"")):a="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))l="The ".concat(e," ").concat(a," ").concat(f(t,"type"));else{var u=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+".".length>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";l='The "'.concat(e,'" ').concat(u," ").concat(a," ").concat(f(t,"type"))}return l+". Received type ".concat(r(i))}),TypeError),c("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===l&&(l=n(3575));var i=l.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),c("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),c("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];void 0===s&&(s=n(6362)),s(t.length>0,"At least one arg needs to be specified");var i="The ",a=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),a){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,a-1).join(", "),i+=", and ".concat(t[a-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=u},6825:(e,t,n)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=void 0!==/a/g.flags,o=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},l=Object.is?Object.is:n(8619),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},c=Number.isNaN?Number.isNaN:n(7863);function f(e){return e.call.bind(e)}var d=f(Object.prototype.hasOwnProperty),p=f(Object.prototype.propertyIsEnumerable),h=f(Object.prototype.toString),m=n(3575).types,g=m.isAnyArrayBuffer,y=m.isArrayBufferView,v=m.isDate,b=m.isMap,w=m.isRegExp,x=m.isSet,_=m.isNativeError,E=m.isBoxedPrimitive,k=m.isNumberObject,S=m.isStringObject,A=m.isBooleanObject,C=m.isBigIntObject,O=m.isSymbolObject,T=m.isFloat32Array,N=m.isFloat64Array;function R(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function P(e){return Object.keys(e).filter(R).concat(u(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function j(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function I(e,t,n,r){if(e===t)return 0!==e||!n||l(e,t);if(n){if("object"!==i(e))return"number"==typeof e&&c(e)&&c(t);if("object"!==i(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==i(e))return(null===t||"object"!==i(t))&&e==t;if(null===t||"object"!==i(t))return!1}var o,s,u,f,d=h(e);if(d!==h(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var p=P(e),m=P(t);return p.length===m.length&&M(e,t,n,r,1,p)}if("[object Object]"===d&&(!b(e)&&b(t)||!x(e)&&x(t)))return!1;if(v(e)){if(!v(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(w(e)){if(!w(t)||(u=e,f=t,!(a?u.source===f.source&&u.flags===f.flags:RegExp.prototype.toString.call(u)===RegExp.prototype.toString.call(f))))return!1}else if(_(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(y(e)){if(n||!T(e)&&!N(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===j(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}(e,t))return!1;var R=P(e),I=P(t);return R.length===I.length&&M(e,t,n,r,0,R)}if(x(e))return!(!x(t)||e.size!==t.size)&&M(e,t,n,r,2);if(b(e))return!(!b(t)||e.size!==t.size)&&M(e,t,n,r,3);if(g(e)){if(s=t,(o=e).byteLength!==s.byteLength||0!==j(new Uint8Array(o),new Uint8Array(s)))return!1}else if(E(e)&&!function(e,t){return k(e)?k(t)&&l(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):S(e)?S(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):A(e)?A(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):C(e)?C(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):O(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return M(e,t,n,r,0)}function L(e,t){return t.filter((function(t){return p(e,t)}))}function M(e,t,n,a,l,c){if(5===arguments.length){c=Object.keys(e);var f=Object.keys(t);if(c.length!==f.length)return!1}for(var h=0;h<c.length;h++)if(!d(t,c[h]))return!1;if(n&&5===arguments.length){var m=u(e);if(0!==m.length){var g=0;for(h=0;h<m.length;h++){var y=m[h];if(p(e,y)){if(!p(t,y))return!1;c.push(y),g++}else if(p(t,y))return!1}var v=u(t);if(m.length!==v.length&&L(t,v).length!==g)return!1}else{var b=u(t);if(0!==b.length&&0!==L(t,b).length)return!1}}if(0===c.length&&(0===l||1===l&&0===e.length||0===e.size))return!0;if(void 0===a)a={val1:new Map,val2:new Map,position:0};else{var w=a.val1.get(e);if(void 0!==w){var x=a.val2.get(t);if(void 0!==x)return w===x}a.position++}a.val1.set(e,a.position),a.val2.set(t,a.position);var _=function(e,t,n,a,l,u){var c=0;if(2===u){if(!function(e,t,n,r){for(var a=null,s=o(e),l=0;l<s.length;l++){var u=s[l];if("object"===i(u)&&null!==u)null===a&&(a=new Set),a.add(u);else if(!t.has(u)){if(n)return!1;if(!U(e,t,u))return!1;null===a&&(a=new Set),a.add(u)}}if(null!==a){for(var c=o(t),f=0;f<c.length;f++){var d=c[f];if("object"===i(d)&&null!==d){if(!B(a,d,n,r))return!1}else if(!n&&!e.has(d)&&!B(a,d,n,r))return!1}return 0===a.size}return!0}(e,t,n,l))return!1}else if(3===u){if(!function(e,t,n,a){for(var o=null,l=s(e),u=0;u<l.length;u++){var c=r(l[u],2),f=c[0],d=c[1];if("object"===i(f)&&null!==f)null===o&&(o=new Set),o.add(f);else{var p=t.get(f);if(void 0===p&&!t.has(f)||!I(d,p,n,a)){if(n)return!1;if(!F(e,t,f,d,a))return!1;null===o&&(o=new Set),o.add(f)}}}if(null!==o){for(var h=s(t),m=0;m<h.length;m++){var g=r(h[m],2),y=(f=g[0],g[1]);if("object"===i(f)&&null!==f){if(!z(o,e,f,y,n,a))return!1}else if(!(n||e.has(f)&&I(e.get(f),y,!1,a)||z(o,e,f,y,!1,a)))return!1}return 0===o.size}return!0}(e,t,n,l))return!1}else if(1===u)for(;c<e.length;c++){if(!d(e,c)){if(d(t,c))return!1;for(var f=Object.keys(e);c<f.length;c++){var p=f[c];if(!d(t,p)||!I(e[p],t[p],n,l))return!1}return f.length===Object.keys(t).length}if(!d(t,c)||!I(e[c],t[c],n,l))return!1}for(c=0;c<a.length;c++){var h=a[c];if(!I(e[h],t[h],n,l))return!1}return!0}(e,t,n,c,a,l);return a.val1.delete(e),a.val2.delete(t),_}function B(e,t,n,r){for(var i=o(e),a=0;a<i.length;a++){var s=i[a];if(I(t,s,n,r))return e.delete(s),!0}return!1}function D(e){switch(i(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(c(e))return!1}return!0}function U(e,t,n){var r=D(n);return null!=r?r:t.has(r)&&!e.has(r)}function F(e,t,n,r,i){var a=D(n);if(null!=a)return a;var o=t.get(a);return!(void 0===o&&!t.has(a)||!I(r,o,!1,i))&&!e.has(a)&&I(r,o,!1,i)}function z(e,t,n,r,i,a){for(var s=o(e),l=0;l<s.length;l++){var u=s[l];if(I(n,u,i,a)&&I(r,t.get(u),i,a))return e.delete(u),!0}return!1}e.exports={isDeepEqual:function(e,t){return I(e,t,!1)},isDeepStrictEqual:function(e,t){return I(e,t,!0)}}},6676:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,a=s(e),o=a[0],l=a[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,o,l)),c=0,f=l>0?o-4:o;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=16383,s=0,u=r-i;s<u;s+=o)a.push(l(e,s,s+o>u?u:s+o));return 1===i?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)n[o]=a[o],r[a.charCodeAt(o)]=o;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var i,a,o=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(n[(a=i)>>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},7040:(e,t,n)=>{"use strict";var r=n(3325).Buffer,i=n(5224),a=n(6362),o=n(6864),s=n(7129),l=n(5281),u=n(395);for(var c in u)t[c]=u[c];function f(e){if("number"!=typeof e||e<t.DEFLATE||e>t.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7,f.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,a(this.init_done,"close before init"),a(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?s.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||l.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},f.prototype.write=function(e,t,n,r,i,a,o){return this._write(!0,e,t,n,r,i,a,o)},f.prototype.writeSync=function(e,t,n,r,i,a,o){return this._write(!1,e,t,n,r,i,a,o)},f.prototype._write=function(e,n,o,s,l,u,c,f){if(a.equal(arguments.length,8),a(this.init_done,"write before init"),a(this.mode!==t.NONE,"already finalized"),a.equal(!1,this.write_in_progress,"write already in progress"),a.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,a.equal(!1,void 0===n,"must provide flush value"),this.write_in_progress=!0,n!==t.Z_NO_FLUSH&&n!==t.Z_PARTIAL_FLUSH&&n!==t.Z_SYNC_FLUSH&&n!==t.Z_FULL_FLUSH&&n!==t.Z_FINISH&&n!==t.Z_BLOCK)throw new Error("Invalid flush value");if(null==o&&(o=r.alloc(0),l=0,s=0),this.strm.avail_in=l,this.strm.input=o,this.strm.next_in=s,this.strm.avail_out=f,this.strm.output=u,this.strm.next_out=c,this.flush=n,!e)return this._process(),this._checkError()?this._afterSync():void 0;var d=this;return i.nextTick((function(){d._process(),d._after()})),this},f.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},f.prototype._process=function(){var e=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(31!==this.strm.input[e]){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;139===this.strm.input[e]?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=l.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=l.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=l.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=l.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},f.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},f.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},f.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},f.prototype.init=function(e,n,r,i,o){a(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),a(e>=8&&e<=15,"invalid windowBits"),a(n>=-1&&n<=9,"invalid compression level"),a(r>=1&&r<=9,"invalid memlevel"),a(i===t.Z_FILTERED||i===t.Z_HUFFMAN_ONLY||i===t.Z_RLE||i===t.Z_FIXED||i===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(n,e,r,i,o),this._setDictionary()},f.prototype.params=function(){throw new Error("deflateParams Not supported")},f.prototype.reset=function(){this._reset(),this._setDictionary()},f.prototype._init=function(e,n,r,i,a){switch(this.level=e,this.windowBits=n,this.memLevel=r,this.strategy=i,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=l.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=a,this.write_in_progress=!1,this.init_done=!0},f.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=s.deflateSetDictionary(this.strm,this.dictionary)}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},f.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=s.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=l.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=f},1781:(e,t,n)=>{"use strict";var r=n(5224),i=n(3325).Buffer,a=n(8556).Transform,o=n(7040),s=n(3575),l=n(6362).ok,u=n(3325).kMaxLength,c="Cannot create final Buffer. It would be larger than 0x"+u.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var f=Object.keys(o),d=0;d<f.length;d++){var p=f[d];p.match(/^Z/)&&Object.defineProperty(t,p,{enumerable:!0,value:o[p],writable:!1})}for(var h={Z_OK:o.Z_OK,Z_STREAM_END:o.Z_STREAM_END,Z_NEED_DICT:o.Z_NEED_DICT,Z_ERRNO:o.Z_ERRNO,Z_STREAM_ERROR:o.Z_STREAM_ERROR,Z_DATA_ERROR:o.Z_DATA_ERROR,Z_MEM_ERROR:o.Z_MEM_ERROR,Z_BUF_ERROR:o.Z_BUF_ERROR,Z_VERSION_ERROR:o.Z_VERSION_ERROR},m=Object.keys(h),g=0;g<m.length;g++){var y=m[g];h[h[y]]=y}function v(e,t,n){var r=[],a=0;function o(){for(var t;null!==(t=e.read());)r.push(t),a+=t.length;e.once("readable",o)}function s(){var t,o=null;a>=u?o=new RangeError(c):t=i.concat(r,a),r=[],e.close(),n(o,t)}e.on("error",(function(t){e.removeListener("end",s),e.removeListener("readable",o),n(t)})),e.on("end",s),e.end(t),o()}function b(e,t){if("string"==typeof t&&(t=i.from(t)),!i.isBuffer(t))throw new TypeError("Not a string or buffer");var n=e._finishFlushFlag;return e._processChunk(t,n)}function w(e){if(!(this instanceof w))return new w(e);O.call(this,e,o.DEFLATE)}function x(e){if(!(this instanceof x))return new x(e);O.call(this,e,o.INFLATE)}function _(e){if(!(this instanceof _))return new _(e);O.call(this,e,o.GZIP)}function E(e){if(!(this instanceof E))return new E(e);O.call(this,e,o.GUNZIP)}function k(e){if(!(this instanceof k))return new k(e);O.call(this,e,o.DEFLATERAW)}function S(e){if(!(this instanceof S))return new S(e);O.call(this,e,o.INFLATERAW)}function A(e){if(!(this instanceof A))return new A(e);O.call(this,e,o.UNZIP)}function C(e){return e===o.Z_NO_FLUSH||e===o.Z_PARTIAL_FLUSH||e===o.Z_SYNC_FLUSH||e===o.Z_FULL_FLUSH||e===o.Z_FINISH||e===o.Z_BLOCK}function O(e,n){var r=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,a.call(this,e),e.flush&&!C(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!C(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:o.Z_FINISH,e.chunkSize&&(e.chunkSize<t.Z_MIN_CHUNK||e.chunkSize>t.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<t.Z_MIN_WINDOWBITS||e.windowBits>t.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<t.Z_MIN_LEVEL||e.level>t.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<t.Z_MIN_MEMLEVEL||e.memLevel>t.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!i.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(n);var s=this;this._hadError=!1,this._handle.onerror=function(e,n){T(s),s._hadError=!0;var r=new Error(e);r.errno=n,r.code=t.codes[n],s.emit("error",r)};var l=t.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(l=e.level);var u=t.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(u=e.strategy),this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,l,e.memLevel||t.Z_DEFAULT_MEMLEVEL,u,e.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=l,this._strategy=u,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!r._handle},configurable:!0,enumerable:!0})}function T(e,t){t&&r.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function N(e){e.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(h),writable:!1}),t.Deflate=w,t.Inflate=x,t.Gzip=_,t.Gunzip=E,t.DeflateRaw=k,t.InflateRaw=S,t.Unzip=A,t.createDeflate=function(e){return new w(e)},t.createInflate=function(e){return new x(e)},t.createDeflateRaw=function(e){return new k(e)},t.createInflateRaw=function(e){return new S(e)},t.createGzip=function(e){return new _(e)},t.createGunzip=function(e){return new E(e)},t.createUnzip=function(e){return new A(e)},t.deflate=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new w(t),e,n)},t.deflateSync=function(e,t){return b(new w(t),e)},t.gzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new _(t),e,n)},t.gzipSync=function(e,t){return b(new _(t),e)},t.deflateRaw=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new k(t),e,n)},t.deflateRawSync=function(e,t){return b(new k(t),e)},t.unzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new A(t),e,n)},t.unzipSync=function(e,t){return b(new A(t),e)},t.inflate=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new x(t),e,n)},t.inflateSync=function(e,t){return b(new x(t),e)},t.gunzip=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new E(t),e,n)},t.gunzipSync=function(e,t){return b(new E(t),e)},t.inflateRaw=function(e,t,n){return"function"==typeof t&&(n=t,t={}),v(new S(t),e,n)},t.inflateRawSync=function(e,t){return b(new S(t),e)},s.inherits(O,a),O.prototype.params=function(e,n,i){if(e<t.Z_MIN_LEVEL||e>t.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(n!=t.Z_FILTERED&&n!=t.Z_HUFFMAN_ONLY&&n!=t.Z_RLE&&n!=t.Z_FIXED&&n!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+n);if(this._level!==e||this._strategy!==n){var a=this;this.flush(o.Z_SYNC_FLUSH,(function(){l(a._handle,"zlib binding closed"),a._handle.params(e,n),a._hadError||(a._level=e,a._strategy=n,i&&i())}))}else r.nextTick(i)},O.prototype.reset=function(){return l(this._handle,"zlib binding closed"),this._handle.reset()},O.prototype._flush=function(e){this._transform(i.alloc(0),"",e)},O.prototype.flush=function(e,t){var n=this,a=this._writableState;("function"==typeof e||void 0===e&&!t)&&(t=e,e=o.Z_FULL_FLUSH),a.ended?t&&r.nextTick(t):a.ending?t&&this.once("end",t):a.needDrain?t&&this.once("drain",(function(){return n.flush(e,t)})):(this._flushFlag=e,this.write(i.alloc(0),"",t))},O.prototype.close=function(e){T(this,e),r.nextTick(N,this)},O.prototype._transform=function(e,t,n){var r,a=this._writableState,s=(a.ending||a.ended)&&(!e||a.length===e.length);return null===e||i.isBuffer(e)?this._handle?(s?r=this._finishFlushFlag:(r=this._flushFlag,e.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(e,r,n)):n(new Error("zlib binding closed")):n(new Error("invalid input"))},O.prototype._processChunk=function(e,t,n){var r=e&&e.length,a=this._chunkSize-this._offset,o=0,s=this,f="function"==typeof n;if(!f){var d,p=[],h=0;this.on("error",(function(e){d=e})),l(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(t,e,o,r,this._buffer,this._offset,a)}while(!this._hadError&&v(m[0],m[1]));if(this._hadError)throw d;if(h>=u)throw T(this),new RangeError(c);var g=i.concat(p,h);return T(this),g}l(this._handle,"zlib binding closed");var y=this._handle.write(t,e,o,r,this._buffer,this._offset,a);function v(u,c){if(this&&(this.buffer=null,this.callback=null),!s._hadError){var d=a-c;if(l(d>=0,"have should not go down"),d>0){var m=s._buffer.slice(s._offset,s._offset+d);s._offset+=d,f?s.push(m):(p.push(m),h+=m.length)}if((0===c||s._offset>=s._chunkSize)&&(a=s._chunkSize,s._offset=0,s._buffer=i.allocUnsafe(s._chunkSize)),0===c){if(o+=r-u,r=u,!f)return!0;var g=s._handle.write(t,e,o,r,s._buffer,s._offset,s._chunkSize);return g.callback=v,void(g.buffer=e)}if(!f)return!1;n()}}y.buffer=e,y.callback=v},s.inherits(w,O),s.inherits(x,O),s.inherits(_,O),s.inherits(E,O),s.inherits(k,O),s.inherits(S,O),s.inherits(A,O)},3325:(e,t,n)=>{"use strict";var r=n(3705);const i=n(6676),a=n(6897),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50;const s=2147483647;function l(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|g(e,t);let r=l(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);const i=function(e){if(u.isBuffer(e)){const t=0|m(e.length),n=l(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||X(e.length)?l(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function f(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return f(e),l(e<0?0:0|m(e))}function p(e){const t=e.length<0?0:0|m(e.length),n=l(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,u.prototype),r}function m(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function g(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(i)return r?-1:Z(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:w(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):w(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(e,t,n,r,i){let a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){let r=-1;for(a=n;a<s;a++)if(u(e,a)===u(t,-1===r?0:a-r)){if(-1===r&&(r=a),a-r+1===l)return r*o}else-1!==r&&(a-=a-r),r=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){let n=!0;for(let r=0;r<l;r++)if(u(e,a+r)!==u(t,r)){n=!1;break}if(n)return a}return-1}function x(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const a=t.length;let o;for(r>a/2&&(r=a/2),o=0;o<r;++o){const r=parseInt(t.substr(2*o,2),16);if(X(r))return o;e[n+o]=r}return o}function _(e,t,n,r){return $(Z(t,e.length-n),e,n,r)}function E(e,t,n,r){return $(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function k(e,t,n,r){return $(Y(t),e,n,r)}function S(e,t,n,r){return $(function(e,t){let n,r,i;const a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,l;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(a=l));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(a=l));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(a=l))}}null===a?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=o}return function(e){const t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=O));return n}(r)}t.kMaxLength=s,u.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),u.TYPED_ARRAY_SUPPORT||void 0===r||"function"!=typeof r.error||r.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,n){return function(e,t,n){return f(e),e<=0?l(e):void 0!==t?"string"==typeof n?l(e).fill(t,n):l(e).fill(t):l(e)}(e,t,n)},u.allocUnsafe=function(e){return d(e)},u.allocUnsafeSlow=function(e){return d(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(K(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=u.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(K(t,Uint8Array))i+t.length>r.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},u.byteLength=g,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?C(this,0,e):y.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,i){if(K(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0);const s=Math.min(a,o),l=this.slice(r,i),c=e.slice(t,n);for(let e=0;e<s;++e)if(l[e]!==c[e]){a=l[e],o=c[e];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let a=!1;for(;;)switch(r){case"hex":return x(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":case"latin1":case"binary":return E(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function T(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function N(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function R(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=Q[e[r]];return i}function P(e,t,n){const r=e.slice(t,n);let i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}function j(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function L(e,t,n,r,i){H(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function M(e,t,n,r,i){H(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function B(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return t=+t,n>>>=0,i||B(e,0,n,4),a.write(e,t,n,r,23,4),n+4}function U(e,t,n,r,i){return t=+t,n>>>=0,i||B(e,0,n,8),a.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=J((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),u.prototype.readBigUInt64BE=J((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=J((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),u.prototype.readBigInt64BE=J((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||j(e,4,this.length),a.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),a.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),a.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),a.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||I(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||I(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=J((function(e){return L(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=J((function(e){return M(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===o&&0!==this[t+i-1]&&(o=1),this[t+i]=(e/a|0)-o&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/a|0)-o&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=J((function(e){return L(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=J((function(e){return M(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const a=u.isBuffer(e)?e:u.from(e,r),o=a.length;if(0===o)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};const F={};function z(e,t,n){F[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name="".concat(this.name," [").concat(e,"]"),this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}}function V(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function H(e,t,n,r,i,a){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let i;throw i=a>3?0===t||t===BigInt(0)?">= 0".concat(r," and < 2").concat(r," ** ").concat(8*(a+1)).concat(r):">= -(2".concat(r," ** ").concat(8*(a+1)-1).concat(r,") and < 2 ** ")+"".concat(8*(a+1)-1).concat(r):">= ".concat(t).concat(r," and <= ").concat(n).concat(r),new F.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){W(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||q(t,e.length-(n+1))}(r,i,a)}function W(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,n){if(Math.floor(e)!==e)throw W(e,n),new F.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}z("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),z("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),z("ERR_OUT_OF_RANGE",(function(e,t,n){let r='The value of "'.concat(e,'" is out of range.'),i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=V(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=V(i)),i+="n"),r+=" It must be ".concat(t,". Received ").concat(i),r}),RangeError);const G=/[^+/0-9A-Za-z-_]/g;function Z(e,t){let n;t=t||1/0;const r=e.length;let i=null;const a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function Y(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!=e}const Q=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function J(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}},1061:(e,t,n)=>{"use strict";var r=n(7375),i=n(3629),a=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?i(n):n}},3629:(e,t,n)=>{"use strict";var r=n(6989),i=n(7375),a=i("%Function.prototype.apply%"),o=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(o,a),l=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(r,o,arguments);return l&&u&&l(t,"length").configurable&&u(t,"length",{value:1+c(0,e.length-(arguments.length-1))}),t};var f=function(){return s(r,a,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},3705:(e,t,n)=>{var r=n(3575),i=n(6362);function a(){return(new Date).getTime()}var o,s=Array.prototype.slice,l={};o=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var u=[[function(){},"log"],[function(){o.log.apply(o,arguments)},"info"],[function(){o.log.apply(o,arguments)},"warn"],[function(){o.warn.apply(o,arguments)},"error"],[function(e){l[e]=a()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var n=a()-t;o.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),o.error(e.stack)},"trace"],[function(e){o.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);i.ok(!1,r.format.apply(null,t))}},"assert"]],c=0;c<u.length;c++){var f=u[c],d=f[0],p=f[1];o[p]||(o[p]=d)}e.exports=o},8726:(e,t,n)=>{"use strict";var r=n(7839),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,o=Array.prototype.concat,s=Object.defineProperty,l=n(7734)(),u=s&&l,c=function(e,t,n,r){var i;(!(t in e)||"function"==typeof(i=r)&&"[object Function]"===a.call(i)&&r())&&(u?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},f=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);i&&(a=o.call(a,Object.getOwnPropertySymbols(t)));for(var s=0;s<a.length;s+=1)c(e,a[s],t[a[s]],n[a[s]])};f.supportsDescriptors=!!u,e.exports=f},8957:e=>{"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var a=Object.keys(Object(i)),o=0,s=a.length;o<s;o++){var l=a[o],u=Object.getOwnPropertyDescriptor(i,l);void 0!==u&&u.enumerable&&(n[l]=i[l])}}return n}e.exports={assign:t,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:t})}}},8981:(e,t,n)=>{"use strict";var r,i=n(3705),a="object"==typeof Reflect?Reflect:null,o=a&&"function"==typeof a.apply?a.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}e.exports=l,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}v(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&v(e,"error",t,{once:!0})}(e,i)}))},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var a,o,s,l;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(a=f(e))>0&&s.length>a&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,l=u,i&&i.warn&&i.warn(l)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=p.bind(r);return i.listener=n,r.wrapFn=i,i}function m(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):y(i,i.length)}function g(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function v(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(a){r.once&&e.removeEventListener(t,i),n(a)}))}}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},l.prototype.getMaxListeners=function(){return f(this)},l.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)o(l,this,t);else{var u=l.length,c=y(l,u);for(n=0;n<u;++n)o(c[n],this,t)}return!0},l.prototype.addListener=function(e,t){return d(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return d(this,e,t,!0)},l.prototype.once=function(e,t){return c(t),this.on(e,h(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,h(this,e,t)),this},l.prototype.removeListener=function(e,t){var n,r,i,a,o;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},l.prototype.listeners=function(e){return m(this,e,!0)},l.prototype.rawListeners=function(e){return m(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},l.prototype.listenerCount=g,l.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},1e3:(e,t,n)=>{"use strict";var r=n(6806),i=Object.prototype.toString,a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=n),"[object Array]"===i.call(e)?function(e,t,n){for(var r=0,i=e.length;r<i;r++)a.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,o):"string"==typeof e?function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,o):function(e,t,n){for(var r in e)a.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,o)}},8307:e=>{"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var i,a=t.call(arguments,1),o=Math.max(0,r.length-a.length),s=[],l=0;l<o;l++)s.push("$"+l);if(i=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var n=r.apply(this,a.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,a.concat(t.call(arguments)))})),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i}},6989:(e,t,n)=>{"use strict";var r=n(8307);e.exports=Function.prototype.bind||r},7375:(e,t,n)=>{"use strict";var r,i=SyntaxError,a=Function,o=TypeError,s=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var u=function(){throw new o},c=l?function(){try{return u}catch(e){try{return l(arguments,"callee").get}catch(e){return u}}}():u,f=n(757)(),d=Object.getPrototypeOf||function(e){return e.__proto__},p={},h="undefined"==typeof Uint8Array?r:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?d(d([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?d(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":h,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},g=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=d(i.prototype))}return m[t]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=n(6989),b=n(6084),w=v.call(Function.call,Array.prototype.concat),x=v.call(Function.apply,Array.prototype.splice),_=v.call(Function.call,String.prototype.replace),E=v.call(Function.call,String.prototype.slice),k=v.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,C=function(e,t){var n,r=e;if(b(y,r)&&(r="%"+(n=y[r])[0]+"%"),b(m,r)){var a=m[r];if(a===p&&(a=g(r)),void 0===a&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:a}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===k(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=E(e,0,1),n=E(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return _(e,S,(function(e,t,n,i){r[r.length]=n?_(i,A,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",a=C("%"+r+"%",t),s=a.name,u=a.value,c=!1,f=a.alias;f&&(r=f[0],x(n,w([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],g=E(h,0,1),y=E(h,-1);if(('"'===g||"'"===g||"`"===g||'"'===y||"'"===y||"`"===y)&&g!==y)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&p||(c=!0),b(m,s="%"+(r+="."+h)+"%"))u=m[s];else if(null!=u){if(!(h in u)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&d+1>=n.length){var v=l(u,h);u=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:u[h]}else p=b(u,h),u=u[h];p&&!c&&(m[s]=u)}}return u}},7734:(e,t,n)=>{"use strict";var r=n(7375)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},757:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(3175);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},3175:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},5550:(e,t,n)=>{"use strict";var r=n(3175);e.exports=function(){return r()&&!!Symbol.toStringTag}},6084:(e,t,n)=>{"use strict";var r=n(6989);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},6897:(e,t)=>{t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=256*a+e[t+f],f+=d,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+f],f+=d,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),a-=u}return(p?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,u=8*a-i-1,c=(1<<u)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(o++,l/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(t*l-1)*Math.pow(2,i),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[n+p]=255&o,p+=h,o/=256,u-=8);e[n+p-h]|=128*m}},1596:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},46:(e,t,n)=>{"use strict";var r=n(5550)(),i=n(1061)("Object.prototype.toString"),a=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},o=function(e){return!!a(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return a(arguments)}();a.isLegacyArguments=o,e.exports=s?a:o},6806:e=>{"use strict";var t,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,t)}catch(e){e!==n&&(i=null)}else i=null;var a=/^\s*class\b/,o=function(e){try{var t=r.call(e);return a.test(t)}catch(e){return!1}},s=function(e){try{return!o(e)&&(r.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var d=document.all;l.call(d)===l.call(document.all)&&(f=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{i(e,null,t)}catch(e){if(e!==n)return!1}return!o(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return s(e);if(o(e))return!1;var t=l.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t||s(e)}},7198:(e,t,n)=>{"use strict";var r,i=Object.prototype.toString,a=Function.prototype.toString,o=/^\s*(?:function)?\*/,s=n(5550)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(o.test(a.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!l)return!1;if(void 0===r){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&l(t)}return l(e)===r}},7433:e=>{"use strict";e.exports=function(e){return e!=e}},7863:(e,t,n)=>{"use strict";var r=n(3629),i=n(8726),a=n(7433),o=n(7308),s=n(3862),l=r(o(),Number);i(l,{getPolyfill:o,implementation:a,shim:s}),e.exports=l},7308:(e,t,n)=>{"use strict";var r=n(7433);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},3862:(e,t,n)=>{"use strict";var r=n(8726),i=n(7308);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},1338:(e,t,n)=>{"use strict";var r=n(1e3),i=n(6405),a=n(1061),o=a("Object.prototype.toString"),s=n(5550)(),l="undefined"==typeof globalThis?n.g:globalThis,u=i(),c=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},f=a("String.prototype.slice"),d={},p=n(2081),h=Object.getPrototypeOf;s&&p&&h&&r(u,(function(e){var t=new l[e];if(Symbol.toStringTag in t){var n=h(t),r=p(n,Symbol.toStringTag);if(!r){var i=h(n);r=p(i,Symbol.toStringTag)}d[e]=r.get}})),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s||!(Symbol.toStringTag in e)){var t=f(o(e),8,-1);return c(u,t)>-1}return!!p&&function(e){var t=!1;return r(d,(function(n,r){if(!t)try{t=n.call(e)===r}catch(e){}})),t}(e)}},7837:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},8619:(e,t,n)=>{"use strict";var r=n(8726),i=n(3629),a=n(7837),o=n(5944),s=n(9394),l=i(o(),Object);r(l,{getPolyfill:o,implementation:a,shim:s}),e.exports=l},5944:(e,t,n)=>{"use strict";var r=n(7837);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},9394:(e,t,n)=>{"use strict";var r=n(5944),i=n(8726);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},225:(e,t,n)=>{"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,o=n(543),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===a.call(e),r=o(e),s=t&&"[object String]"===a.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=u&&n;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)d.push(String(m));if(r&&e.length>0)for(var g=0;g<e.length;++g)d.push(String(g));else for(var y in e)h&&"prototype"===y||!i.call(e,y)||d.push(String(y));if(l)for(var v=function(e){if("undefined"==typeof window||!p)return f(e);try{return f(e)}catch(e){return!1}}(e),b=0;b<c.length;++b)v&&"constructor"===c[b]||!i.call(e,c[b])||d.push(c[b]);return d}}e.exports=r},7839:(e,t,n)=>{"use strict";var r=Array.prototype.slice,i=n(543),a=Object.keys,o=a?function(e){return a(e)}:n(225),s=Object.keys;o.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)}):Object.keys=o;return Object.keys||o},e.exports=o},543:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},5899:(e,t)=>{"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(e[i]=n[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,a))},t.setTyped(n)},1875:e=>{"use strict";e.exports=function(e,t,n,r){for(var i=65535&e,a=e>>>16&65535,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{a=a+(i=i+t[r++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16}},395:e=>{"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},6181:e=>{"use strict";var t=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,n,r,i){var a=t,o=i+r;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^n[s])];return~e}},7129:(e,t,n)=>{"use strict";var r,i=n(5899),a=n(4867),o=n(1875),s=n(6181),l=n(3384),u=-2,c=258,f=262,d=103,p=113,h=666;function m(e,t){return e.msg=l[t],t}function g(e){return(e<<1)-(e>4?9:0)}function y(e){for(var t=e.length;--t>=0;)e[t]=0}function v(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function b(e,t){a._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,v(e.strm)}function w(e,t){e.pending_buf[e.pending++]=t}function x(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function _(e,t,n,r){var a=e.avail_in;return a>r&&(a=r),0===a?0:(e.avail_in-=a,i.arraySet(t,e.input,e.next_in,a,n),1===e.state.wrap?e.adler=o(e.adler,t,a,n):2===e.state.wrap&&(e.adler=s(e.adler,t,a,n)),e.next_in+=a,e.total_in+=a,a)}function E(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-f?e.strstart-(e.w_size-f):0,u=e.window,d=e.w_mask,p=e.prev,h=e.strstart+c,m=u[a+o-1],g=u[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+o]===g&&u[n+o-1]===m&&u[n]===u[a]&&u[++n]===u[a+1]){a+=2,n++;do{}while(u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&a<h);if(r=c-(h-a),a=h-c,r>o){if(e.match_start=t,o=r,r>=s)break;m=u[a+o-1],g=u[a+o]}}}while((t=p[t&d])>l&&0!=--i);return o<=e.lookahead?o:e.lookahead}function k(e){var t,n,r,a,o,s=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-f)){i.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=s?r-s:0}while(--n);t=n=s;do{r=e.prev[--t],e.prev[t]=r>=s?r-s:0}while(--n);a+=s}if(0===e.strm.avail_in)break;if(n=_(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=n,e.lookahead+e.insert>=3)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+3-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<f&&0!==e.strm.avail_in)}function S(e,t){for(var n,r;;){if(e.lookahead<f){if(k(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-f&&(e.match_length=E(e,n)),e.match_length>=3)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}function A(e,t){for(var n,r,i;;){if(e.lookahead<f){if(k(e),e.lookahead<f&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-f&&(e.match_length=E(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(b(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&b(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}function C(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function O(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),y(this.dyn_ltree),y(this.dyn_dtree),y(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),y(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),y(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function T(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:p,e.adler=2===t.wrap?0:1,t.last_flush=0,a._tr_init(t),0):m(e,u)}function N(e){var t,n=T(e);return 0===n&&((t=e.state).window_size=2*t.w_size,y(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function R(e,t,n,r,a,o){if(!e)return u;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),a<1||a>9||8!==n||r<8||r>15||t<0||t>9||o<0||o>4)return m(e,u);8===r&&(r=9);var l=new O;return e.state=l,l.strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=a+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=n,N(e)}r=[new C(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(k(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,b(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-f&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(b(e,!1),e.strm.avail_out),1)})),new C(4,4,8,4,S),new C(4,5,16,8,S),new C(4,6,32,32,S),new C(4,4,16,16,A),new C(8,16,32,32,A),new C(8,16,128,128,A),new C(8,32,128,256,A),new C(32,128,258,1024,A),new C(32,258,258,4096,A)],t.deflateInit=function(e,t){return R(e,t,8,15,8,0)},t.deflateInit2=R,t.deflateReset=N,t.deflateResetKeep=T,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?u:(e.state.gzhead=t,0):u},t.deflate=function(e,t){var n,i,o,l;if(!e||!e.state||t>5||t<0)return e?m(e,u):u;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===h&&4!==t)return m(e,0===e.avail_out?-5:u);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,w(i,31),w(i,139),w(i,8),i.gzhead?(w(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),w(i,255&i.gzhead.time),w(i,i.gzhead.time>>8&255),w(i,i.gzhead.time>>16&255),w(i,i.gzhead.time>>24&255),w(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),w(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(w(i,255&i.gzhead.extra.length),w(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(w(i,0),w(i,0),w(i,0),w(i,0),w(i,0),w(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),w(i,3),i.status=p);else{var f=8+(i.w_bits-8<<4)<<8;f|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=p,x(i,f),0!==i.strstart&&(x(i,e.adler>>>16),x(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),v(e),o=i.pending,i.pending!==i.pending_buf_size));)w(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),v(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,w(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),v(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,w(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.status=d)}else i.status=d;if(i.status===d&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&v(e),i.pending+2<=i.pending_buf_size&&(w(i,255&e.adler),w(i,e.adler>>8&255),e.adler=0,i.status=p)):i.status=p),0!==i.pending){if(v(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&g(t)<=g(n)&&4!==t)return m(e,-5);if(i.status===h&&0!==e.avail_in)return m(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&i.status!==h){var _=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(k(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=c){if(k(e),e.lookahead<=c&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+c;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=c-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=a._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==_&&4!==_||(i.status=h),1===_||3===_)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===_&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(y(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),v(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(w(i,255&e.adler),w(i,e.adler>>8&255),w(i,e.adler>>16&255),w(i,e.adler>>24&255),w(i,255&e.total_in),w(i,e.total_in>>8&255),w(i,e.total_in>>16&255),w(i,e.total_in>>24&255)):(x(i,e.adler>>>16),x(i,65535&e.adler)),v(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==d&&t!==p&&t!==h?m(e,u):(e.state=null,t===p?m(e,-3):0):u},t.deflateSetDictionary=function(e,t){var n,r,a,s,l,c,f,d,p=t.length;if(!e||!e.state)return u;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return u;for(1===s&&(e.adler=o(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(y(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new i.Buf8(n.w_size),i.arraySet(d,t,p-n.w_size,n.w_size,0),t=d,p=n.w_size),l=e.avail_in,c=e.next_in,f=e.input,e.avail_in=p,e.next_in=0,e.input=t,k(n);n.lookahead>=3;){r=n.strstart,a=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--a);n.strstart=r,n.lookahead=2,k(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=c,e.input=f,e.avail_in=l,n.wrap=s,0},t.deflateInfo="pako deflate (from Nodeca project)"},2903:e=>{"use strict";e.exports=function(e,t){var n,r,i,a,o,s,l,u,c,f,d,p,h,m,g,y,v,b,w,x,_,E,k,S,A;n=e.state,r=e.next_in,S=e.input,i=r+(e.avail_in-5),a=e.next_out,A=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),l=n.dmax,u=n.wsize,c=n.whave,f=n.wnext,d=n.window,p=n.hold,h=n.bits,m=n.lencode,g=n.distcode,y=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;e:do{h<15&&(p+=S[r++]<<h,h+=8,p+=S[r++]<<h,h+=8),b=m[p&y];t:for(;;){if(p>>>=w=b>>>24,h-=w,0==(w=b>>>16&255))A[a++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=m[(65535&b)+(p&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}x=65535&b,(w&=15)&&(h<w&&(p+=S[r++]<<h,h+=8),x+=p&(1<<w)-1,p>>>=w,h-=w),h<15&&(p+=S[r++]<<h,h+=8,p+=S[r++]<<h,h+=8),b=g[p&v];n:for(;;){if(p>>>=w=b>>>24,h-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=g[(65535&b)+(p&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(_=65535&b,h<(w&=15)&&(p+=S[r++]<<h,(h+=8)<w&&(p+=S[r++]<<h,h+=8)),(_+=p&(1<<w)-1)>l){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=w,h-=w,_>(w=a-o)){if((w=_-w)>c&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(E=0,k=d,0===f){if(E+=u-w,w<x){x-=w;do{A[a++]=d[E++]}while(--w);E=a-_,k=A}}else if(f<w){if(E+=u+f-w,(w-=f)<x){x-=w;do{A[a++]=d[E++]}while(--w);if(E=0,f<x){x-=w=f;do{A[a++]=d[E++]}while(--w);E=a-_,k=A}}}else if(E+=f-w,w<x){x-=w;do{A[a++]=d[E++]}while(--w);E=a-_,k=A}for(;x>2;)A[a++]=k[E++],A[a++]=k[E++],A[a++]=k[E++],x-=3;x&&(A[a++]=k[E++],x>1&&(A[a++]=k[E++]))}else{E=a-_;do{A[a++]=A[E++],A[a++]=A[E++],A[a++]=A[E++],x-=3}while(x>2);x&&(A[a++]=A[E++],x>1&&(A[a++]=A[E++]))}break}}break}}while(r<i&&a<s);r-=x=h>>3,p&=(1<<(h-=x<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=p,n.bits=h}},5281:(e,t,n)=>{"use strict";var r=n(5899),i=n(1875),a=n(6181),o=n(2903),s=n(8276),l=-2,u=12,c=30;function f(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function d(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function p(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):l}function h(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,p(e)):l}function m(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?l:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,h(e))):l}function g(e,t){var n,r;return e?(r=new d,e.state=r,r.window=null,0!==(n=m(e,t))&&(e.state=null),n):l}var y,v,b=!0;function w(e){if(b){var t;for(y=new r.Buf32(512),v=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,y,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,v,0,e.work,{bits:5}),b=!1}e.lencode=y,e.lenbits=9,e.distcode=v,e.distbits=5}function x(e,t,n,i){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((a=o.wsize-o.wnext)>i&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}t.inflateReset=h,t.inflateReset2=m,t.inflateResetKeep=p,t.inflateInit=function(e){return g(e,15)},t.inflateInit2=g,t.inflate=function(e,t){var n,d,p,h,m,g,y,v,b,_,E,k,S,A,C,O,T,N,R,P,j,I,L,M,B=0,D=new r.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return l;(n=e.state).mode===u&&(n.mode=13),m=e.next_out,p=e.output,y=e.avail_out,h=e.next_in,d=e.input,g=e.avail_in,v=n.hold,b=n.bits,_=g,E=y,I=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;b<16;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}if(2&n.wrap&&35615===v){n.check=0,D[0]=255&v,D[1]=v>>>8&255,n.check=a(n.check,D,2,0),v=0,b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&v)<<8)+(v>>8))%31){e.msg="incorrect header check",n.mode=c;break}if(8!=(15&v)){e.msg="unknown compression method",n.mode=c;break}if(b-=4,j=8+(15&(v>>>=4)),0===n.wbits)n.wbits=j;else if(j>n.wbits){e.msg="invalid window size",n.mode=c;break}n.dmax=1<<j,e.adler=n.check=1,n.mode=512&v?10:u,v=0,b=0;break;case 2:for(;b<16;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}if(n.flags=v,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=c;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=c;break}n.head&&(n.head.text=v>>8&1),512&n.flags&&(D[0]=255&v,D[1]=v>>>8&255,n.check=a(n.check,D,2,0)),v=0,b=0,n.mode=3;case 3:for(;b<32;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}n.head&&(n.head.time=v),512&n.flags&&(D[0]=255&v,D[1]=v>>>8&255,D[2]=v>>>16&255,D[3]=v>>>24&255,n.check=a(n.check,D,4,0)),v=0,b=0,n.mode=4;case 4:for(;b<16;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}n.head&&(n.head.xflags=255&v,n.head.os=v>>8),512&n.flags&&(D[0]=255&v,D[1]=v>>>8&255,n.check=a(n.check,D,2,0)),v=0,b=0,n.mode=5;case 5:if(1024&n.flags){for(;b<16;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}n.length=v,n.head&&(n.head.extra_len=v),512&n.flags&&(D[0]=255&v,D[1]=v>>>8&255,n.check=a(n.check,D,2,0)),v=0,b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((k=n.length)>g&&(k=g),k&&(n.head&&(j=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,d,h,k,j)),512&n.flags&&(n.check=a(n.check,d,k,h)),g-=k,h+=k,n.length-=k),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===g)break e;k=0;do{j=d[h+k++],n.head&&j&&n.length<65536&&(n.head.name+=String.fromCharCode(j))}while(j&&k<g);if(512&n.flags&&(n.check=a(n.check,d,k,h)),g-=k,h+=k,j)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===g)break e;k=0;do{j=d[h+k++],n.head&&j&&n.length<65536&&(n.head.comment+=String.fromCharCode(j))}while(j&&k<g);if(512&n.flags&&(n.check=a(n.check,d,k,h)),g-=k,h+=k,j)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;b<16;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}if(v!==(65535&n.check)){e.msg="header crc mismatch",n.mode=c;break}v=0,b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=u;break;case 10:for(;b<32;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}e.adler=n.check=f(v),v=0,b=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=m,e.avail_out=y,e.next_in=h,e.avail_in=g,n.hold=v,n.bits=b,2;e.adler=n.check=1,n.mode=u;case u:if(5===t||6===t)break e;case 13:if(n.last){v>>>=7&b,b-=7&b,n.mode=27;break}for(;b<3;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}switch(n.last=1&v,b-=1,3&(v>>>=1)){case 0:n.mode=14;break;case 1:if(w(n),n.mode=20,6===t){v>>>=2,b-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=c}v>>>=2,b-=2;break;case 14:for(v>>>=7&b,b-=7&b;b<32;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}if((65535&v)!=(v>>>16^65535)){e.msg="invalid stored block lengths",n.mode=c;break}if(n.length=65535&v,v=0,b=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(k=n.length){if(k>g&&(k=g),k>y&&(k=y),0===k)break e;r.arraySet(p,d,h,k,m),g-=k,h+=k,y-=k,m+=k,n.length-=k;break}n.mode=u;break;case 17:for(;b<14;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}if(n.nlen=257+(31&v),v>>>=5,b-=5,n.ndist=1+(31&v),v>>>=5,b-=5,n.ncode=4+(15&v),v>>>=4,b-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=c;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;b<3;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}n.lens[U[n.have++]]=7&v,v>>>=3,b-=3}for(;n.have<19;)n.lens[U[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,L={bits:n.lenbits},I=s(0,n.lens,0,19,n.lencode,0,n.work,L),n.lenbits=L.bits,I){e.msg="invalid code lengths set",n.mode=c;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;O=(B=n.lencode[v&(1<<n.lenbits)-1])>>>16&255,T=65535&B,!((C=B>>>24)<=b);){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}if(T<16)v>>>=C,b-=C,n.lens[n.have++]=T;else{if(16===T){for(M=C+2;b<M;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}if(v>>>=C,b-=C,0===n.have){e.msg="invalid bit length repeat",n.mode=c;break}j=n.lens[n.have-1],k=3+(3&v),v>>>=2,b-=2}else if(17===T){for(M=C+3;b<M;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}b-=C,j=0,k=3+(7&(v>>>=C)),v>>>=3,b-=3}else{for(M=C+7;b<M;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}b-=C,j=0,k=11+(127&(v>>>=C)),v>>>=7,b-=7}if(n.have+k>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=c;break}for(;k--;)n.lens[n.have++]=j}}if(n.mode===c)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=c;break}if(n.lenbits=9,L={bits:n.lenbits},I=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,L),n.lenbits=L.bits,I){e.msg="invalid literal/lengths set",n.mode=c;break}if(n.distbits=6,n.distcode=n.distdyn,L={bits:n.distbits},I=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,L),n.distbits=L.bits,I){e.msg="invalid distances set",n.mode=c;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(g>=6&&y>=258){e.next_out=m,e.avail_out=y,e.next_in=h,e.avail_in=g,n.hold=v,n.bits=b,o(e,E),m=e.next_out,p=e.output,y=e.avail_out,h=e.next_in,d=e.input,g=e.avail_in,v=n.hold,b=n.bits,n.mode===u&&(n.back=-1);break}for(n.back=0;O=(B=n.lencode[v&(1<<n.lenbits)-1])>>>16&255,T=65535&B,!((C=B>>>24)<=b);){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}if(O&&0==(240&O)){for(N=C,R=O,P=T;O=(B=n.lencode[P+((v&(1<<N+R)-1)>>N)])>>>16&255,T=65535&B,!(N+(C=B>>>24)<=b);){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}v>>>=N,b-=N,n.back+=N}if(v>>>=C,b-=C,n.back+=C,n.length=T,0===O){n.mode=26;break}if(32&O){n.back=-1,n.mode=u;break}if(64&O){e.msg="invalid literal/length code",n.mode=c;break}n.extra=15&O,n.mode=22;case 22:if(n.extra){for(M=n.extra;b<M;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}n.length+=v&(1<<n.extra)-1,v>>>=n.extra,b-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;O=(B=n.distcode[v&(1<<n.distbits)-1])>>>16&255,T=65535&B,!((C=B>>>24)<=b);){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}if(0==(240&O)){for(N=C,R=O,P=T;O=(B=n.distcode[P+((v&(1<<N+R)-1)>>N)])>>>16&255,T=65535&B,!(N+(C=B>>>24)<=b);){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}v>>>=N,b-=N,n.back+=N}if(v>>>=C,b-=C,n.back+=C,64&O){e.msg="invalid distance code",n.mode=c;break}n.offset=T,n.extra=15&O,n.mode=24;case 24:if(n.extra){for(M=n.extra;b<M;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}n.offset+=v&(1<<n.extra)-1,v>>>=n.extra,b-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=c;break}n.mode=25;case 25:if(0===y)break e;if(k=E-y,n.offset>k){if((k=n.offset-k)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=c;break}k>n.wnext?(k-=n.wnext,S=n.wsize-k):S=n.wnext-k,k>n.length&&(k=n.length),A=n.window}else A=p,S=m-n.offset,k=n.length;k>y&&(k=y),y-=k,n.length-=k;do{p[m++]=A[S++]}while(--k);0===n.length&&(n.mode=21);break;case 26:if(0===y)break e;p[m++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;b<32;){if(0===g)break e;g--,v|=d[h++]<<b,b+=8}if(E-=y,e.total_out+=E,n.total+=E,E&&(e.adler=n.check=n.flags?a(n.check,p,E,m-E):i(n.check,p,E,m-E)),E=y,(n.flags?v:f(v))!==n.check){e.msg="incorrect data check",n.mode=c;break}v=0,b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;b<32;){if(0===g)break e;g--,v+=d[h++]<<b,b+=8}if(v!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=c;break}v=0,b=0}n.mode=29;case 29:I=1;break e;case c:I=-3;break e;case 31:return-4;default:return l}return e.next_out=m,e.avail_out=y,e.next_in=h,e.avail_in=g,n.hold=v,n.bits=b,(n.wsize||E!==e.avail_out&&n.mode<c&&(n.mode<27||4!==t))&&x(e,e.output,e.next_out,E-e.avail_out)?(n.mode=31,-4):(_-=e.avail_in,E-=e.avail_out,e.total_in+=_,e.total_out+=E,n.total+=E,n.wrap&&E&&(e.adler=n.check=n.flags?a(n.check,p,E,e.next_out-E):i(n.check,p,E,e.next_out-E)),e.data_type=n.bits+(n.last?64:0)+(n.mode===u?128:0)+(20===n.mode||15===n.mode?256:0),(0===_&&0===E||4===t)&&0===I&&(I=-5),I)},t.inflateEnd=function(e){if(!e||!e.state)return l;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?l:(n.head=t,t.done=!1,0):l},t.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?l:11===n.mode&&i(1,t,r,0)!==n.check?-3:x(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):l},t.inflateInfo="pako inflate (from Nodeca project)"},8276:(e,t,n)=>{"use strict";var r=n(5899),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,n,l,u,c,f,d){var p,h,m,g,y,v,b,w,x,_=d.bits,E=0,k=0,S=0,A=0,C=0,O=0,T=0,N=0,R=0,P=0,j=null,I=0,L=new r.Buf16(16),M=new r.Buf16(16),B=null,D=0;for(E=0;E<=15;E++)L[E]=0;for(k=0;k<l;k++)L[t[n+k]]++;for(C=_,A=15;A>=1&&0===L[A];A--);if(C>A&&(C=A),0===A)return u[c++]=20971520,u[c++]=20971520,d.bits=1,0;for(S=1;S<A&&0===L[S];S++);for(C<S&&(C=S),N=1,E=1;E<=15;E++)if(N<<=1,(N-=L[E])<0)return-1;if(N>0&&(0===e||1!==A))return-1;for(M[1]=0,E=1;E<15;E++)M[E+1]=M[E]+L[E];for(k=0;k<l;k++)0!==t[n+k]&&(f[M[t[n+k]]++]=k);if(0===e?(j=B=f,v=19):1===e?(j=i,I-=257,B=a,D-=257,v=256):(j=o,B=s,v=-1),P=0,k=0,E=S,y=c,O=C,T=0,m=-1,g=(R=1<<C)-1,1===e&&R>852||2===e&&R>592)return 1;for(;;){b=E-T,f[k]<v?(w=0,x=f[k]):f[k]>v?(w=B[D+f[k]],x=j[I+f[k]]):(w=96,x=0),p=1<<E-T,S=h=1<<O;do{u[y+(P>>T)+(h-=p)]=b<<24|w<<16|x}while(0!==h);for(p=1<<E-1;P&p;)p>>=1;if(0!==p?(P&=p-1,P+=p):P=0,k++,0==--L[E]){if(E===A)break;E=t[n+f[k]]}if(E>C&&(P&g)!==m){for(0===T&&(T=C),y+=S,N=1<<(O=E-T);O+T<A&&!((N-=L[O+T])<=0);)O++,N<<=1;if(R+=1<<O,1===e&&R>852||2===e&&R>592)return 1;u[m=P&g]=C<<24|O<<16|y-c}}return 0!==P&&(u[y+P]=E-T<<24|64<<16),d.bits=C,0}},3384:e=>{"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},4867:(e,t,n)=>{"use strict";var r=n(5899);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var a=256,o=286,s=30,l=15,u=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],c=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],d=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=new Array(576);i(p);var h=new Array(60);i(h);var m=new Array(512);i(m);var g=new Array(256);i(g);var y=new Array(29);i(y);var v,b,w,x=new Array(s);function _(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function E(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function k(e){return e<256?m[e]:m[256+(e>>>7)]}function S(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function A(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,S(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function C(e,t,n){A(e,n[2*t],n[2*t+1])}function O(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function T(e,t,n){var r,i,a=new Array(16),o=0;for(r=1;r<=l;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=O(a[s]++,s))}}function N(e){var t;for(t=0;t<o;t++)e.dyn_ltree[2*t]=0;for(t=0;t<s;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function R(e){e.bi_valid>8?S(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function P(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function j(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&P(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!P(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function I(e,t,n){var r,i,o,s,l=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],i=e.pending_buf[e.l_buf+l],l++,0===r?C(e,i,t):(C(e,(o=g[i])+a+1,t),0!==(s=u[o])&&A(e,i-=y[o],s),C(e,o=k(--r),n),0!==(s=c[o])&&A(e,r-=x[o],s))}while(l<e.last_lit);C(e,256,t)}function L(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<u;n++)0!==a[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)j(e,a,n);i=u;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],j(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,j(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,u=t.dyn_tree,c=t.max_code,f=t.stat_desc.static_tree,d=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,m=t.stat_desc.max_length,g=0;for(a=0;a<=l;a++)e.bl_count[a]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(a=u[2*u[2*(r=e.heap[n])+1]+1]+1)>m&&(a=m,g++),u[2*r+1]=a,r>c||(e.bl_count[a]++,o=0,r>=h&&(o=p[r-h]),s=u[2*r],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(f[2*r+1]+o)));if(0!==g){do{for(a=m-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[m]--,g-=2}while(g>0);for(a=m;0!==a;a--)for(r=e.bl_count[a];0!==r;)(i=e.heap[--n])>c||(u[2*i+1]!==a&&(e.opt_len+=(a-u[2*i+1])*u[2*i],u[2*i+1]=a),r--)}}(e,t),T(a,c,e.bl_count)}function M(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<l&&i===o||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,a=i,0===o?(l=138,u=3):i===o?(l=6,u=3):(l=7,u=4))}function B(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<l&&i===o)){if(s<u)do{C(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(C(e,i,e.bl_tree),s--),C(e,16,e.bl_tree),A(e,s-3,2)):s<=10?(C(e,17,e.bl_tree),A(e,s-3,3)):(C(e,18,e.bl_tree),A(e,s-11,7));s=0,a=i,0===o?(l=138,u=3):i===o?(l=6,u=3):(l=7,u=4)}}i(x);var D=!1;function U(e,t,n,i){A(e,0+(i?1:0),3),function(e,t,n,i){R(e),S(e,n),S(e,~n),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}t._tr_init=function(e){D||(function(){var e,t,n,r,i,a=new Array(16);for(n=0,r=0;r<28;r++)for(y[r]=n,e=0;e<1<<u[r];e++)g[n++]=r;for(g[n-1]=r,i=0,r=0;r<16;r++)for(x[r]=i,e=0;e<1<<c[r];e++)m[i++]=r;for(i>>=7;r<s;r++)for(x[r]=i<<7,e=0;e<1<<c[r]-7;e++)m[256+i++]=r;for(t=0;t<=l;t++)a[t]=0;for(e=0;e<=143;)p[2*e+1]=8,e++,a[8]++;for(;e<=255;)p[2*e+1]=9,e++,a[9]++;for(;e<=279;)p[2*e+1]=7,e++,a[7]++;for(;e<=287;)p[2*e+1]=8,e++,a[8]++;for(T(p,287,a),e=0;e<s;e++)h[2*e+1]=5,h[2*e]=O(e,5);v=new _(p,u,257,o,l),b=new _(h,c,0,s,l),w=new _(new Array(0),f,0,19,7)}(),D=!0),e.l_desc=new E(e.dyn_ltree,v),e.d_desc=new E(e.dyn_dtree,b),e.bl_desc=new E(e.bl_tree,w),e.bi_buf=0,e.bi_valid=0,N(e)},t._tr_stored_block=U,t._tr_flush_block=function(e,t,n,r){var i,o,s=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<a;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),L(e,e.l_desc),L(e,e.d_desc),s=function(e){var t;for(M(e,e.dyn_ltree,e.l_desc.max_code),M(e,e.dyn_dtree,e.d_desc.max_code),L(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*d[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?U(e,t,n,r):4===e.strategy||o===i?(A(e,2+(r?1:0),3),I(e,p,h)):(A(e,4+(r?1:0),3),function(e,t,n,r){var i;for(A(e,t-257,5),A(e,n-1,5),A(e,r-4,4),i=0;i<r;i++)A(e,e.bl_tree[2*d[i]+1],3);B(e,e.dyn_ltree,t-1),B(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),I(e,e.dyn_ltree,e.dyn_dtree)),N(e),r&&R(e)},t._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(g[n]+a+1)]++,e.dyn_dtree[2*k(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){A(e,2,3),C(e,256,p),function(e){16===e.bi_valid?(S(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},6864:e=>{"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},5224:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s,l=[],u=!1,c=-1;function f(){u&&s&&(u=!1,s.length?l=s.concat(l):c=-1,l.length&&d())}function d(){if(!u){var e=o(f);u=!0;for(var t=l.length;t;){for(s=l,l=[];++c<t;)s&&s[c].run();c=-1,t=l.length}s=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||u||o(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},3488:(e,t,n)=>{"use strict";var r=n(3959);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},1942:(e,t,n)=>{e.exports=n(3488)()},3959:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7614:e=>{"use strict";var t={};function n(e,n,r){r||(r=Error);var i=function(e){var t,r;function i(t,r,i){return e.call(this,function(e,t,r){return"string"==typeof n?n:n(e,t,r)}(t,r,i))||this}return r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,i}(r);i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,n){var i,a,o;if("string"==typeof t&&(a="not ",t.substr(0,a.length)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))o="The ".concat(e," ").concat(i," ").concat(r(t,"type"));else{var s=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+".".length>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";o='The "'.concat(e,'" ').concat(s," ").concat(i," ").concat(r(t,"type"))}return o+". Received type ".concat(typeof n)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},7544:(e,t,n)=>{"use strict";var r=n(5224),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var a=n(3230),o=n(4306);n(1596)(c,a);for(var s=i(o.prototype),l=0;l<s.length;l++){var u=s[l];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||r.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},2666:(e,t,n)=>{"use strict";e.exports=i;var r=n(5624);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(1596)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},3230:(e,t,n)=>{"use strict";var r,i=n(5224);e.exports=S,S.ReadableState=k,n(8981).EventEmitter;var a,o=function(e,t){return e.listeners(t).length},s=n(4687),l=n(3325).Buffer,u=n.g.Uint8Array||function(){},c=n(9838);a=c&&c.debuglog?c.debuglog("stream"):function(){};var f,d,p,h=n(4147),m=n(4822),g=n(2809).getHighWaterMark,y=n(7614).F,v=y.ERR_INVALID_ARG_TYPE,b=y.ERR_STREAM_PUSH_AFTER_EOF,w=y.ERR_METHOD_NOT_IMPLEMENTED,x=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(1596)(S,s);var _=m.errorOrDestroy,E=["error","close","destroy","pause","resume"];function k(e,t,i){r=r||n(7544),e=e||{},"boolean"!=typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",i),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=n(923).I),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function S(e){if(r=r||n(7544),!(this instanceof S))return new S(e);var t=this instanceof r;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function A(e,t,n,r,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?N(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,R(e)))}}(e,s);else if(i||(o=function(e,t){var n,r;return r=t,l.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new v("chunk",["string","Buffer","Uint8Array"],t)),n}(s,t)),o)_(e,o);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),r)s.endEmitted?_(e,new x):C(e,s,t,!0);else if(s.ended)_(e,new b);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?C(e,s,t,!1):P(e,s)):C(e,s,t,!1)}else r||(s.reading=!1,P(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function C(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&N(e)),P(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=m.destroy,S.prototype._undestroy=m.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=l.from(e,t),t=""),n=!0),A(this,e,t,!1,n)},S.prototype.unshift=function(e){return A(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){f||(f=n(923).I);var t=new f(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var O=1073741824;function T(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function N(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(R,e))}function R(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,B(e)}function P(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(j,e,t))}function j(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(a("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function I(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function L(e){a("readable nexttick read 0"),e.read(0)}function M(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),B(e),t.flowing&&!t.reading&&e.read(0)}function B(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function U(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(F,t,e))}function F(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function z(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}S.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return a("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):N(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&U(this),null;var r,i=t.needReadable;return a("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&a("length less than watermark",i=!0),t.ended||t.reading?a("reading or ended",i=!1):i&&(a("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=T(n,t))),null===(r=e>0?D(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&U(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(e){_(this,new w("_read()"))},S.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,a("pipe count=%d opts=%j",r.pipesCount,t);var s=t&&!1===t.end||e===i.stdout||e===i.stderr?m:l;function l(){a("onend"),e.end()}r.endEmitted?i.nextTick(s):n.once("end",s),e.on("unpipe",(function t(i,o){a("onunpipe"),i===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,a("cleanup"),e.removeListener("close",p),e.removeListener("finish",h),e.removeListener("drain",u),e.removeListener("error",d),e.removeListener("unpipe",t),n.removeListener("end",l),n.removeListener("end",m),n.removeListener("data",f),c=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}));var u=function(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,B(e))}}(n);e.on("drain",u);var c=!1;function f(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==z(r.pipes,e))&&!c&&(a("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function d(t){a("onerror",t),m(),e.removeListener("error",d),0===o(e,"error")&&_(e,t)}function p(){e.removeListener("finish",h),m()}function h(){a("onfinish"),e.removeListener("close",p),m()}function m(){a("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",p),e.once("finish",h),e.emit("pipe",n),r.flowing||(a("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=z(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},S.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,a("on readable",r.length,r.reading),r.length?N(this):r.reading||i.nextTick(L,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(I,this),n},S.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(I,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(M,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(a("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){a("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!=i)&&(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<E.length;o++)e.on(E[o],this.emit.bind(this,E[o]));return this._read=function(t){a("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=n(9733)),d(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=D,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===p&&(p=n(9951)),p(S,e,t)})},5624:(e,t,n)=>{"use strict";e.exports=c;var r=n(7614).F,i=r.ERR_METHOD_NOT_IMPLEMENTED,a=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,l=n(7544);function u(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new a);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);l.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,n){d(e,t,n)}))}function d(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}n(1596)(c,l),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,n){n(new i("_transform()"))},c.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,(function(e){t(e)}))}},4306:(e,t,n)=>{"use strict";var r,i=n(5224);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(undefined),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=S,S.WritableState=k;var o,s={deprecate:n(1421)},l=n(4687),u=n(3325).Buffer,c=n.g.Uint8Array||function(){},f=n(4822),d=n(2809).getHighWaterMark,p=n(7614).F,h=p.ERR_INVALID_ARG_TYPE,m=p.ERR_METHOD_NOT_IMPLEMENTED,g=p.ERR_MULTIPLE_CALLBACK,y=p.ERR_STREAM_CANNOT_PIPE,v=p.ERR_STREAM_DESTROYED,b=p.ERR_STREAM_NULL_VALUES,w=p.ERR_STREAM_WRITE_AFTER_END,x=p.ERR_UNKNOWN_ENCODING,_=f.errorOrDestroy;function E(){}function k(e,t,o){r=r||n(7544),e=e||{},"boolean"!=typeof o&&(o=t instanceof r),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,a=n.writecb;if("function"!=typeof a)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,a){--t.pendingcb,n?(i.nextTick(a,r),i.nextTick(R,e,t),e._writableState.errorEmitted=!0,_(e,r)):(a(r),e._writableState.errorEmitted=!0,_(e,r),R(e,t))}(e,n,r,t,a);else{var o=T(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||O(e,n),r?i.nextTick(C,e,n,o,a):C(e,n,o,a)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function S(e){var t=this instanceof(r=r||n(7544));if(!t&&!o.call(S,this))return new S(e);this._writableState=new k(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),l.call(this)}function A(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function C(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),R(e,t)}function O(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,l=!0;n;)i[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;i.allBuffers=l,A(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,f=n.callback;if(A(e,t,!1,t.objectMode?1:u.length,u,c,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function N(e,t){e._final((function(n){t.pendingcb--,n&&_(e,n),t.prefinished=!0,e.emit("prefinish"),R(e,t)}))}function R(e,t){var n=T(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(N,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}n(1596)(S,l),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===S&&e&&e._writableState instanceof k}})):o=function(e){return e instanceof this},S.prototype.pipe=function(){_(this,new y)},S.prototype.write=function(e,t,n){var r,a=this._writableState,o=!1,s=!a.objectMode&&(r=e,u.isBuffer(r)||r instanceof c);return s&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof n&&(n=E),a.ending?function(e,t){var n=new w;_(e,n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var a;return null===n?a=new b:"string"==typeof n||t.objectMode||(a=new h("chunk",["string","Buffer"],n)),!a||(_(e,a),i.nextTick(r,a),!1)}(this,a,e,n))&&(a.pendingcb++,o=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,n)),t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,s,r,i,a);return l}(this,a,s,e,t,n)),o},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||O(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,n){n(new m("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,R(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=f.destroy,S.prototype._undestroy=f.undestroy,S.prototype._destroy=function(e,t){t(e)}},9733:(e,t,n)=>{"use strict";var r,i=n(5224);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(8172),s=Symbol("lastResolve"),l=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),d=Symbol("handlePromise"),p=Symbol("stream");function h(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var n=e[p].read();null!==n&&(e[f]=null,e[s]=null,e[l]=null,t(h(n,!1)))}}function g(e){i.nextTick(m,e)}var y=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((a(r={get stream(){return this[p]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(h(void 0,!0));if(this[p].destroyed)return new Promise((function(t,n){i.nextTick((function(){e[u]?n(e[u]):t(h(void 0,!0))}))}));var n,r=this[f];if(r)n=new Promise(function(e,t){return function(n,r){e.then((function(){t[c]?n(h(void 0,!0)):t[d](n,r)}),r)}}(r,this));else{var a=this[p].read();if(null!==a)return Promise.resolve(h(a,!1));n=new Promise(this[d])}return this[f]=n,n}},Symbol.asyncIterator,(function(){return this})),a(r,"return",(function(){var e=this;return new Promise((function(t,n){e[p].destroy(null,(function(e){e?n(e):t(h(void 0,!0))}))}))})),r),y);e.exports=function(e){var t,n=Object.create(v,(a(t={},p,{value:e,writable:!0}),a(t,s,{value:null,writable:!0}),a(t,l,{value:null,writable:!0}),a(t,u,{value:null,writable:!0}),a(t,c,{value:e._readableState.endEmitted,writable:!0}),a(t,d,{value:function(e,t){var r=n[p].read();r?(n[f]=null,n[s]=null,n[l]=null,e(h(r,!1))):(n[s]=e,n[l]=t)},writable:!0}),t));return n[f]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[l];return null!==t&&(n[f]=null,n[s]=null,n[l]=null,t(e)),void(n[u]=e)}var r=n[s];null!==r&&(n[f]=null,n[s]=null,n[l]=null,r(h(void 0,!0))),n[c]=!0})),e.on("readable",g.bind(null,n)),n}},4147:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=n(3325).Buffer,s=n(5340).inspect,l=s&&s.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,n,r,i=o.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,r=s,o.prototype.copy.call(t,n,r),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),0==(e-=a)){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:l,value:function(e,t){return s(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}])&&a(t.prototype,n),e}()},4822:(e,t,n)=>{"use strict";var r=n(5224);function i(e,t){o(e,t),a(e)}function a(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(o,this,e)):r.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted?r.nextTick(a,n):(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t?(r.nextTick(a,n),t(e)):r.nextTick(a,n)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},8172:(e,t,n)=>{"use strict";var r=n(7614).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,a){if("function"==typeof n)return e(t,null,n);n||(n={}),a=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(a||i);var o=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,l=function(){t.writable||c()},u=t._writableState&&t._writableState.finished,c=function(){s=!1,u=!0,o||a.call(t)},f=t._readableState&&t._readableState.endEmitted,d=function(){o=!1,f=!0,s||a.call(t)},p=function(e){a.call(t,e)},h=function(){var e;return o&&!f?(t._readableState&&t._readableState.ended||(e=new r),a.call(t,e)):s&&!u?(t._writableState&&t._writableState.ended||(e=new r),a.call(t,e)):void 0},m=function(){t.req.on("finish",c)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",c),t.on("abort",h),t.req?m():t.on("request",m)):s&&!t._writableState&&(t.on("end",l),t.on("close",l)),t.on("end",d),t.on("finish",c),!1!==n.error&&t.on("error",p),t.on("close",h),function(){t.removeListener("complete",c),t.removeListener("abort",h),t.removeListener("request",m),t.req&&t.req.removeListener("finish",c),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",c),t.removeListener("end",d),t.removeListener("error",p),t.removeListener("close",h)}}},9951:e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},3648:(e,t,n)=>{"use strict";var r,i=n(7614).F,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function l(e){e()}function u(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var c,f=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new a("streams");var d=t.map((function(e,i){var a=i<t.length-1;return function(e,t,i,a){a=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(a);var s=!1;e.on("close",(function(){s=!0})),void 0===r&&(r=n(8172)),r(e,{readable:t,writable:i},(function(e){if(e)return a(e);s=!0,a()}));var l=!1;return function(t){if(!s&&!l)return l=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void a(t||new o("pipe"))}}(e,a,i>0,(function(e){c||(c=e),e&&d.forEach(l),a||(d.forEach(l),f(c))}))}));return t.reduce(u)}},2809:(e,t,n)=>{"use strict";var r=n(7614).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var a=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new r(i?n:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},4687:(e,t,n)=>{e.exports=n(8981).EventEmitter},6047:(e,t,n)=>{var r=n(3325),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},3529:(e,t,n)=>{"use strict";var r=n(3325).Buffer;const i=n(2387);class a{constructor(e){if(this.length=0,this._encoding="utf8",this._writeOffset=0,this._readOffset=0,a.isSmartBufferOptions(e))if(e.encoding&&(i.checkEncoding(e.encoding),this._encoding=e.encoding),e.size){if(!(i.isFiniteInteger(e.size)&&e.size>0))throw new Error(i.ERRORS.INVALID_SMARTBUFFER_SIZE);this._buff=r.allocUnsafe(e.size)}else if(e.buff){if(!r.isBuffer(e.buff))throw new Error(i.ERRORS.INVALID_SMARTBUFFER_BUFFER);this._buff=e.buff,this.length=e.buff.length}else this._buff=r.allocUnsafe(4096);else{if(void 0!==e)throw new Error(i.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=r.allocUnsafe(4096)}}static fromSize(e,t){return new this({size:e,encoding:t})}static fromBuffer(e,t){return new this({buff:e,encoding:t})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){const t=e;return t&&(void 0!==t.encoding||void 0!==t.size||void 0!==t.buff)}readInt8(e){return this._readNumberValue(r.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(r.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(r.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(r.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(r.prototype.readInt32LE,4,e)}readBigInt64BE(e){return i.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(r.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return i.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(r.prototype.readBigInt64LE,8,e)}writeInt8(e,t){return this._writeNumberValue(r.prototype.writeInt8,1,e,t),this}insertInt8(e,t){return this._insertNumberValue(r.prototype.writeInt8,1,e,t)}writeInt16BE(e,t){return this._writeNumberValue(r.prototype.writeInt16BE,2,e,t)}insertInt16BE(e,t){return this._insertNumberValue(r.prototype.writeInt16BE,2,e,t)}writeInt16LE(e,t){return this._writeNumberValue(r.prototype.writeInt16LE,2,e,t)}insertInt16LE(e,t){return this._insertNumberValue(r.prototype.writeInt16LE,2,e,t)}writeInt32BE(e,t){return this._writeNumberValue(r.prototype.writeInt32BE,4,e,t)}insertInt32BE(e,t){return this._insertNumberValue(r.prototype.writeInt32BE,4,e,t)}writeInt32LE(e,t){return this._writeNumberValue(r.prototype.writeInt32LE,4,e,t)}insertInt32LE(e,t){return this._insertNumberValue(r.prototype.writeInt32LE,4,e,t)}writeBigInt64BE(e,t){return i.bigIntAndBufferInt64Check("writeBigInt64BE"),this._writeNumberValue(r.prototype.writeBigInt64BE,8,e,t)}insertBigInt64BE(e,t){return i.bigIntAndBufferInt64Check("writeBigInt64BE"),this._insertNumberValue(r.prototype.writeBigInt64BE,8,e,t)}writeBigInt64LE(e,t){return i.bigIntAndBufferInt64Check("writeBigInt64LE"),this._writeNumberValue(r.prototype.writeBigInt64LE,8,e,t)}insertBigInt64LE(e,t){return i.bigIntAndBufferInt64Check("writeBigInt64LE"),this._insertNumberValue(r.prototype.writeBigInt64LE,8,e,t)}readUInt8(e){return this._readNumberValue(r.prototype.readUInt8,1,e)}readUInt16BE(e){return this._readNumberValue(r.prototype.readUInt16BE,2,e)}readUInt16LE(e){return this._readNumberValue(r.prototype.readUInt16LE,2,e)}readUInt32BE(e){return this._readNumberValue(r.prototype.readUInt32BE,4,e)}readUInt32LE(e){return this._readNumberValue(r.prototype.readUInt32LE,4,e)}readBigUInt64BE(e){return i.bigIntAndBufferInt64Check("readBigUInt64BE"),this._readNumberValue(r.prototype.readBigUInt64BE,8,e)}readBigUInt64LE(e){return i.bigIntAndBufferInt64Check("readBigUInt64LE"),this._readNumberValue(r.prototype.readBigUInt64LE,8,e)}writeUInt8(e,t){return this._writeNumberValue(r.prototype.writeUInt8,1,e,t)}insertUInt8(e,t){return this._insertNumberValue(r.prototype.writeUInt8,1,e,t)}writeUInt16BE(e,t){return this._writeNumberValue(r.prototype.writeUInt16BE,2,e,t)}insertUInt16BE(e,t){return this._insertNumberValue(r.prototype.writeUInt16BE,2,e,t)}writeUInt16LE(e,t){return this._writeNumberValue(r.prototype.writeUInt16LE,2,e,t)}insertUInt16LE(e,t){return this._insertNumberValue(r.prototype.writeUInt16LE,2,e,t)}writeUInt32BE(e,t){return this._writeNumberValue(r.prototype.writeUInt32BE,4,e,t)}insertUInt32BE(e,t){return this._insertNumberValue(r.prototype.writeUInt32BE,4,e,t)}writeUInt32LE(e,t){return this._writeNumberValue(r.prototype.writeUInt32LE,4,e,t)}insertUInt32LE(e,t){return this._insertNumberValue(r.prototype.writeUInt32LE,4,e,t)}writeBigUInt64BE(e,t){return i.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._writeNumberValue(r.prototype.writeBigUInt64BE,8,e,t)}insertBigUInt64BE(e,t){return i.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._insertNumberValue(r.prototype.writeBigUInt64BE,8,e,t)}writeBigUInt64LE(e,t){return i.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._writeNumberValue(r.prototype.writeBigUInt64LE,8,e,t)}insertBigUInt64LE(e,t){return i.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._insertNumberValue(r.prototype.writeBigUInt64LE,8,e,t)}readFloatBE(e){return this._readNumberValue(r.prototype.readFloatBE,4,e)}readFloatLE(e){return this._readNumberValue(r.prototype.readFloatLE,4,e)}writeFloatBE(e,t){return this._writeNumberValue(r.prototype.writeFloatBE,4,e,t)}insertFloatBE(e,t){return this._insertNumberValue(r.prototype.writeFloatBE,4,e,t)}writeFloatLE(e,t){return this._writeNumberValue(r.prototype.writeFloatLE,4,e,t)}insertFloatLE(e,t){return this._insertNumberValue(r.prototype.writeFloatLE,4,e,t)}readDoubleBE(e){return this._readNumberValue(r.prototype.readDoubleBE,8,e)}readDoubleLE(e){return this._readNumberValue(r.prototype.readDoubleLE,8,e)}writeDoubleBE(e,t){return this._writeNumberValue(r.prototype.writeDoubleBE,8,e,t)}insertDoubleBE(e,t){return this._insertNumberValue(r.prototype.writeDoubleBE,8,e,t)}writeDoubleLE(e,t){return this._writeNumberValue(r.prototype.writeDoubleLE,8,e,t)}insertDoubleLE(e,t){return this._insertNumberValue(r.prototype.writeDoubleLE,8,e,t)}readString(e,t){let n;"number"==typeof e?(i.checkLengthValue(e),n=Math.min(e,this.length-this._readOffset)):(t=e,n=this.length-this._readOffset),void 0!==t&&i.checkEncoding(t);const r=this._buff.slice(this._readOffset,this._readOffset+n).toString(t||this._encoding);return this._readOffset+=n,r}insertString(e,t,n){return i.checkOffsetValue(t),this._handleString(e,!0,t,n)}writeString(e,t,n){return this._handleString(e,!1,t,n)}readStringNT(e){void 0!==e&&i.checkEncoding(e);let t=this.length;for(let e=this._readOffset;e<this.length;e++)if(0===this._buff[e]){t=e;break}const n=this._buff.slice(this._readOffset,t);return this._readOffset=t+1,n.toString(e||this._encoding)}insertStringNT(e,t,n){return i.checkOffsetValue(t),this.insertString(e,t,n),this.insertUInt8(0,t+e.length),this}writeStringNT(e,t,n){return this.writeString(e,t,n),this.writeUInt8(0,"number"==typeof t?t+e.length:this.writeOffset),this}readBuffer(e){void 0!==e&&i.checkLengthValue(e);const t="number"==typeof e?e:this.length,n=Math.min(this.length,this._readOffset+t),r=this._buff.slice(this._readOffset,n);return this._readOffset=n,r}insertBuffer(e,t){return i.checkOffsetValue(t),this._handleBuffer(e,!0,t)}writeBuffer(e,t){return this._handleBuffer(e,!1,t)}readBufferNT(){let e=this.length;for(let t=this._readOffset;t<this.length;t++)if(0===this._buff[t]){e=t;break}const t=this._buff.slice(this._readOffset,e);return this._readOffset=e+1,t}insertBufferNT(e,t){return i.checkOffsetValue(t),this.insertBuffer(e,t),this.insertUInt8(0,t+e.length),this}writeBufferNT(e,t){return void 0!==t&&i.checkOffsetValue(t),this.writeBuffer(e,t),this.writeUInt8(0,"number"==typeof t?t+e.length:this._writeOffset),this}clear(){return this._writeOffset=0,this._readOffset=0,this.length=0,this}remaining(){return this.length-this._readOffset}get readOffset(){return this._readOffset}set readOffset(e){i.checkOffsetValue(e),i.checkTargetOffset(e,this),this._readOffset=e}get writeOffset(){return this._writeOffset}set writeOffset(e){i.checkOffsetValue(e),i.checkTargetOffset(e,this),this._writeOffset=e}get encoding(){return this._encoding}set encoding(e){i.checkEncoding(e),this._encoding=e}get internalBuffer(){return this._buff}toBuffer(){return this._buff.slice(0,this.length)}toString(e){const t="string"==typeof e?e:this._encoding;return i.checkEncoding(t),this._buff.toString(t,0,this.length)}destroy(){return this.clear(),this}_handleString(e,t,n,a){let o=this._writeOffset,s=this._encoding;"number"==typeof n?o=n:"string"==typeof n&&(i.checkEncoding(n),s=n),"string"==typeof a&&(i.checkEncoding(a),s=a);const l=r.byteLength(e,s);return t?this.ensureInsertable(l,o):this._ensureWriteable(l,o),this._buff.write(e,o,l,s),t?this._writeOffset+=l:"number"==typeof n?this._writeOffset=Math.max(this._writeOffset,o+l):this._writeOffset+=l,this}_handleBuffer(e,t,n){const r="number"==typeof n?n:this._writeOffset;return t?this.ensureInsertable(e.length,r):this._ensureWriteable(e.length,r),e.copy(this._buff,r),t?this._writeOffset+=e.length:"number"==typeof n?this._writeOffset=Math.max(this._writeOffset,r+e.length):this._writeOffset+=e.length,this}ensureReadable(e,t){let n=this._readOffset;if(void 0!==t&&(i.checkOffsetValue(t),n=t),n<0||n+e>this.length)throw new Error(i.ERRORS.INVALID_READ_BEYOND_BOUNDS)}ensureInsertable(e,t){i.checkOffsetValue(t),this._ensureCapacity(this.length+e),t<this.length&&this._buff.copy(this._buff,t+e,t,this._buff.length),t+e>this.length?this.length=t+e:this.length+=e}_ensureWriteable(e,t){const n="number"==typeof t?t:this._writeOffset;this._ensureCapacity(n+e),n+e>this.length&&(this.length=n+e)}_ensureCapacity(e){const t=this._buff.length;if(e>t){let n=this._buff,i=3*t/2+1;i<e&&(i=e),this._buff=r.allocUnsafe(i),n.copy(this._buff,0,0,t)}}_readNumberValue(e,t,n){this.ensureReadable(t,n);const r=e.call(this._buff,"number"==typeof n?n:this._readOffset);return void 0===n&&(this._readOffset+=t),r}_insertNumberValue(e,t,n,r){return i.checkOffsetValue(r),this.ensureInsertable(t,r),e.call(this._buff,n,r),this._writeOffset+=t,this}_writeNumberValue(e,t,n,r){if("number"==typeof r){if(r<0)throw new Error(i.ERRORS.INVALID_WRITE_BEYOND_BOUNDS);i.checkOffsetValue(r)}const a="number"==typeof r?r:this._writeOffset;return this._ensureWriteable(t,a),e.call(this._buff,n,a),"number"==typeof r?this._writeOffset=Math.max(this._writeOffset,a+t):this._writeOffset+=t,this}}t.I=a},2387:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3325),i={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};function a(e){return"number"==typeof e&&isFinite(e)&&function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}(e)}function o(e,t){if("number"!=typeof e)throw new Error(t?i.INVALID_OFFSET_NON_NUMBER:i.INVALID_LENGTH_NON_NUMBER);if(!a(e)||e<0)throw new Error(t?i.INVALID_OFFSET:i.INVALID_LENGTH)}t.ERRORS=i,t.checkEncoding=function(e){if(!r.Buffer.isEncoding(e))throw new Error(i.INVALID_ENCODING)},t.isFiniteInteger=a,t.checkLengthValue=function(e){o(e,!1)},t.checkOffsetValue=function(e){o(e,!0)},t.checkTargetOffset=function(e,t){if(e<0||e>t.length)throw new Error(i.INVALID_TARGET_OFFSET)},t.bigIntAndBufferInt64Check=function(e){if("undefined"==typeof BigInt)throw new Error("Platform does not support JS BigInt type.");if(void 0===r.Buffer.prototype[e])throw new Error("Platform does not support Buffer.prototype.".concat(e,"."))}},8556:(e,t,n)=>{e.exports=i;var r=n(8981).EventEmitter;function i(){r.call(this)}n(1596)(i,r),i.Readable=n(3230),i.Writable=n(4306),i.Duplex=n(7544),i.Transform=n(5624),i.PassThrough=n(2666),i.finished=n(8172),i.pipeline=n(3648),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var o=!1;function s(){o||(o=!0,e.end())}function l(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",u),e.on("error",u),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},923:(e,t,n)=>{"use strict";var r=n(6047).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.I=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=o(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=o(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},1421:(e,t,n)=>{var r=n(3705);function i(e){try{if(!n.g.localStorage)return!1}catch(e){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(i("noDeprecation"))return e;var n=!1;return function(){if(!n){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?r.trace(t):r.warn(t),n=!0}return e.apply(this,arguments)}}},6925:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},8534:(e,t,n)=>{"use strict";var r=n(46),i=n(7198),a=n(4961),o=n(1338);function s(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,c=s(Object.prototype.toString),f=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(l)var h=s(BigInt.prototype.valueOf);if(u)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===c(e)}function v(e){return"[object Set]"===c(e)}function b(e){return"[object WeakMap]"===c(e)}function w(e){return"[object WeakSet]"===c(e)}function x(e){return"[object ArrayBuffer]"===c(e)}function _(e){return"undefined"!=typeof ArrayBuffer&&(x.working?x(e):e instanceof ArrayBuffer)}function E(e){return"[object DataView]"===c(e)}function k(e){return"undefined"!=typeof DataView&&(E.working?E(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=i,t.isTypedArray=o,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):o(e)||k(e)},t.isUint8Array=function(e){return"Uint8Array"===a(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===a(e)},t.isUint16Array=function(e){return"Uint16Array"===a(e)},t.isUint32Array=function(e){return"Uint32Array"===a(e)},t.isInt8Array=function(e){return"Int8Array"===a(e)},t.isInt16Array=function(e){return"Int16Array"===a(e)},t.isInt32Array=function(e){return"Int32Array"===a(e)},t.isFloat32Array=function(e){return"Float32Array"===a(e)},t.isFloat64Array=function(e){return"Float64Array"===a(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===a(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===a(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},x.working="undefined"!=typeof ArrayBuffer&&x(new ArrayBuffer),t.isArrayBuffer=_,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=k;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===c(e)}function C(e){return void 0!==S&&(void 0===A.working&&(A.working=A(new S)),A.working?A(e):e instanceof S)}function O(e){return g(e,f)}function T(e){return g(e,d)}function N(e){return g(e,p)}function R(e){return l&&g(e,h)}function P(e){return u&&g(e,m)}t.isSharedArrayBuffer=C,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=O,t.isStringObject=T,t.isBooleanObject=N,t.isBigIntObject=R,t.isSymbolObject=P,t.isBoxedPrimitive=function(e){return O(e)||T(e)||N(e)||R(e)||P(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(_(e)||C(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},3575:(e,t,n)=>{var r=n(5224),i=n(3705),a=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!w(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(c(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n<i;s=r[++n])v(s)||!E(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var a=!1;return function(){if(!a){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?i.trace(n):i.error(n),a=!0}return e.apply(this,arguments)}};var s={},l=/^$/;if({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG){var u={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+u+"$","i")}function c(e,n){var r={seen:[],stylize:d};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),x(r.showHidden)&&(r.showHidden=!1),x(r.depth)&&(r.depth=2),x(r.colors)&&(r.colors=!1),x(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=f),p(r,e,r.depth)}function f(e,t){var n=c.styles[t];return n?"["+c.colors[n][0]+"m"+e+"["+c.colors[n][1]+"m":e}function d(e,t){return e}function p(e,n,r){if(e.customInspect&&n&&A(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return w(i)||(i=p(e,i,r)),i}var a=function(e,t){if(x(t))return e.stylize("undefined","undefined");if(w(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return b(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}(e,n);if(a)return a;var o=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),S(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return h(n);if(0===o.length){if(A(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(_(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(k(n))return e.stylize(Date.prototype.toString.call(n),"date");if(S(n))return h(n)}var u,c="",f=!1,d=["{","}"];return g(n)&&(f=!0,d=["[","]"]),A(n)&&(c=" [Function"+(n.name?": "+n.name:"")+"]"),_(n)&&(c=" "+RegExp.prototype.toString.call(n)),k(n)&&(c=" "+Date.prototype.toUTCString.call(n)),S(n)&&(c=" "+h(n)),0!==o.length||f&&0!=n.length?r<0?_(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=f?function(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)N(t,String(o))?a.push(m(e,t,n,r,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(m(e,t,n,r,i,!0))})),a}(e,n,r,s,o):o.map((function(t){return m(e,n,r,s,t,f)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,c,d)):d[0]+c+d[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,n,r,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),N(r,i)||(o="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=v(n)?p(e,l.value,null):p(e,l.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),x(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function g(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function v(e){return null===e}function b(e){return"number"==typeof e}function w(e){return"string"==typeof e}function x(e){return void 0===e}function _(e){return E(e)&&"[object RegExp]"===C(e)}function E(e){return"object"==typeof e&&null!==e}function k(e){return E(e)&&"[object Date]"===C(e)}function S(e){return E(e)&&("[object Error]"===C(e)||e instanceof Error)}function A(e){return"function"==typeof e}function C(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(l.test(e)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);i.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(8534),t.isArray=g,t.isBoolean=y,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=w,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=x,t.isRegExp=_,t.types.isRegExp=_,t.isObject=E,t.isDate=k,t.types.isDate=k,t.isError=S,t.types.isNativeError=S,t.isFunction=A,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(6925);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){i.log("%s - %s",function(){var e=new Date,t=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":");return[e.getDate(),T[e.getMonth()],t].join(" ")}(),t.format.apply(t,arguments))},t.inherits=n(1596),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var R="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(R&&e[R]){var t;if("function"!=typeof(t=e[R]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],a=0;a<arguments.length;a++)i.push(arguments[a]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),R&&Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,a(e))},t.promisify.custom=R,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var a=this,o=function(){return i.apply(a,arguments)};e.apply(this,t).then((function(e){r.nextTick(o.bind(null,null,e))}),(function(e){r.nextTick(P.bind(null,e,o))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,a(e)),t}},4961:(e,t,n)=>{"use strict";var r=n(1e3),i=n(6405),a=n(1061),o=a("Object.prototype.toString"),s=n(5550)(),l="undefined"==typeof globalThis?n.g:globalThis,u=i(),c=a("String.prototype.slice"),f={},d=n(2081),p=Object.getPrototypeOf;s&&d&&p&&r(u,(function(e){if("function"==typeof l[e]){var t=new l[e];if(Symbol.toStringTag in t){var n=p(t),r=d(n,Symbol.toStringTag);if(!r){var i=p(n);r=d(i,Symbol.toStringTag)}f[e]=r.get}}}));var h=n(1338);e.exports=function(e){return!!h(e)&&(s&&Symbol.toStringTag in e?function(e){var t=!1;return r(f,(function(n,r){if(!t)try{var i=n.call(e);i===r&&(t=i)}catch(e){}})),t}(e):c(o(e),8,-1))}},8898:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,o,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in a=Object(arguments[l]))n.call(a,u)&&(s[u]=a[u]);if(t){o=t(a);for(var c=0;c<o.length;c++)r.call(a,o[c])&&(s[o[c]]=a[o[c]])}}return s}},1253:(e,t,n)=>{"use strict";var r,i,a,o,s=n(3705);if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var u=Date,c=u.now();t.unstable_now=function(){return u.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var f=null,d=null,p=function(){if(null!==f)try{var e=t.unstable_now();f(!0,e),f=null}catch(e){throw setTimeout(p,0),e}};r=function(e){null!==f?setTimeout(r,0,e):(f=e,setTimeout(p,0))},i=function(e,t){d=setTimeout(e,t)},a=function(){clearTimeout(d)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,m=window.clearTimeout;if(void 0!==s){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&s.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof g&&s.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,v=null,b=-1,w=5,x=0;t.unstable_shouldYield=function(){return t.unstable_now()>=x},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?s.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<e?Math.floor(1e3/e):5};var _=new MessageChannel,E=_.port2;_.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();x=e+w;try{v(!0,e)?E.postMessage(null):(y=!1,v=null)}catch(e){throw E.postMessage(null),e}}else y=!1},r=function(e){v=e,y||(y=!0,E.postMessage(null))},i=function(e,n){b=h((function(){e(t.unstable_now())}),n)},a=function(){m(b),b=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<C(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function A(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,l=e[s];if(void 0!==o&&0>C(o,n))void 0!==l&&0>C(l,o)?(e[r]=l,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==l&&0>C(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],T=[],N=1,R=null,P=3,j=!1,I=!1,L=!1;function M(e){for(var t=S(T);null!==t;){if(null===t.callback)A(T);else{if(!(t.startTime<=e))break;A(T),t.sortIndex=t.expirationTime,k(O,t)}t=S(T)}}function B(e){if(L=!1,M(e),!I)if(null!==S(O))I=!0,r(D);else{var t=S(T);null!==t&&i(B,t.startTime-e)}}function D(e,n){I=!1,L&&(L=!1,a()),j=!0;var r=P;try{for(M(n),R=S(O);null!==R&&(!(R.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=R.callback;if("function"==typeof o){R.callback=null,P=R.priorityLevel;var s=o(R.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?R.callback=s:R===S(O)&&A(O),M(n)}else A(O);R=S(O)}if(null!==R)var l=!0;else{var u=S(T);null!==u&&i(B,u.startTime-n),l=!1}return l}finally{R=null,P=r,j=!1}}var U=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||j||(I=!0,r(D))},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_getFirstCallbackNode=function(){return S(O)},t.unstable_next=function(e){switch(P){case 1:case 2:case 3:var t=3;break;default:t=P}var n=P;P=t;try{return e()}finally{P=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=U,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=P;P=e;try{return t()}finally{P=n}},t.unstable_scheduleCallback=function(e,n,o){var s=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?s+o:s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:N++,callback:n,priorityLevel:e,startTime:o,expirationTime:l=o+l,sortIndex:-1},o>s?(e.sortIndex=o,k(T,e),null===S(O)&&e===S(T)&&(L?a():L=!0,i(B,o-s))):(e.sortIndex=l,k(O,e),I||j||(I=!0,r(D))),e},t.unstable_wrapCallback=function(e){var t=P;return function(){var n=P;P=t;try{return e.apply(this,arguments)}finally{P=n}}}},5664:(e,t,n)=>{"use strict";e.exports=n(1253)},5340:()=>{},9838:()=>{},6405:(e,t,n)=>{"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof i[r[t]]&&(e[e.length]=r[t]);return e}},2081:(e,t,n)=>{"use strict";var r=n(7375)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(1173),t=n(8932);let r,i,a,o;function s(e){switch(e){case o.MuteAllChannels:return"muteallchannels";case o.PlayInstruction:return"playinstructions"}}!function(e){e[e.Pressed=1]="Pressed",e[e.Released=2]="Released",e[e.Held=3]="Held"}(r||(r={})),function(e){e[e.Player=0]="Player",e[e.Reaction=1]="Reaction"}(i||(i={})),function(e){e[e.None=0]="None",e[e.Left=1]="Left",e[e.Up=2]="Up",e[e.Right=3]="Right",e[e.Down=4]="Down",e[e.A=5]="A",e[e.B=6]="B",e[e.Menu=7]="Menu",e[e.Screenshot=-1]="Screenshot",e[e.Gif=-2]="Gif",e[e.Reset=-3]="Reset",e[e.TogglePause=-4]="TogglePause"}(a||(a={})),function(e){e[e.MuteAllChannels=0]="MuteAllChannels",e[e.PlayInstruction=1]="PlayInstruction"}(o||(o={}));const l={users:[]};let u;u||(u={});const c={netMode:"init",authStatus:"unknown",profile:void 0,clientRole:void 0,playerSlot:void 0,joinCode:void 0,gameState:void 0,gameMetadata:void 0,gamePaused:void 0,toasts:[],presence:{...l},modal:void 0,modalOpts:void 0,muted:pxt.BrowserUtils.isSafari(),deepLinks:{},reactions:{},targetConfig:void 0};function f(e,t){switch(t.type){case"SET_USER_PROFILE":var n;return{...e,profile:t.profile,authStatus:null!==(n=t.profile)&&void 0!==n&&n.id?"signed-in":"signed-out"};case"SET_CLIENT_ROLE":return{...e,clientRole:t.clientRole};case"SET_NET_MODE":{let n={...e,netMode:t.mode};return"init"===t.mode&&(n={...n,clientRole:void 0,playerSlot:void 0,joinCode:void 0,gameState:void 0,gameMetadata:void 0,gamePaused:void 0,presence:{...l},modal:void 0,modalOpts:void 0}),n}case"SET_GAME_INFO":return{...e,gameState:{...e.gameState,...t.gameInfo}};case"SET_GAME_METADATA":return{...e,gameMetadata:t.gameMetadata};case"SET_GAME_ID":return{...e,gameState:{...e.gameState,gameId:t.gameId}};case"SET_PLAYER_SLOT":return{...e,playerSlot:t.playerSlot};case"CLEAR_GAME_INFO":return{...e,playerSlot:void 0,gameState:void 0,gameMetadata:void 0};case"SET_GAME_MODE":return{...e,gameState:{...e.gameState,gameMode:t.gameMode}};case"SHOW_TOAST":return{...e,toasts:[...e.toasts,t.toast]};case"DISMISS_TOAST":return{...e,toasts:e.toasts.filter((e=>e.id!==t.id))};case"SET_PRESENCE":return{...e,presence:{...t.presence}};case"SET_REACTION":return{...e,reactions:{...e.reactions,[t.clientId]:{id:t.reactionId,index:t.index}}};case"CLEAR_REACTION":return{...e,reactions:{...e.reactions,[t.clientId]:void 0}};case"SHOW_MODAL":return{...e,modal:t.modalType,modalOpts:t.modalOpts};case"CLEAR_MODAL":return{...e,modal:void 0,modalOpts:void 0};case"SET_DEEP_LINKS":return{...e,deepLinks:{shareCode:t.shareCode,joinCode:t.shareCode?void 0:t.joinCode}};case"SET_MUTE":return{...e,muted:t.value};case"SET_GAME_PAUSED":return{...e,gamePaused:t.gamePaused};case"SET_TARGET_CONFIG":return{...e,targetConfig:t.targetConfig};case"SET_PRESENCE_ICON_OVERRIDE":{var r,i;let n=(null===(r=e.gameState)||void 0===r||null===(i=r.presenceIconOverrides)||void 0===i?void 0:i.slice())||[];return n[t.slot]=t.icon,{...e,gameState:{...e.gameState,presenceIconOverrides:n}}}case"SET_REACTION_ICON_OVERRIDE":{var a,o;let n=(null===(a=e.gameState)||void 0===a||null===(o=a.reactionIconOverrides)||void 0===o?void 0:o.slice())||[];return n[t.slot]=t.icon,{...e,gameState:{...e.gameState,reactionIconOverrides:n}}}}}var d=n(465);let p,h;const m=(0,e.createContext)({state:void 0,dispatch:void 0});function g(t){const[n,r]=(0,e.useReducer)(f,c);return(0,e.useEffect)((()=>{p=n,h=r}),[n,r]),(0,d.jsx)(m.Provider,{value:{state:n,dispatch:r},children:t.children})}function y(){return(0,d.jsx)("div",{className:"tw-w-screen tw-h-screen tw-flex tw-justify-center tw-items-center tw-text-xl tw-text-white",children:lf("Loading...")})}let v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;return crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"")};const b=e=>({type:"SET_CLIENT_ROLE",clientRole:e}),w=e=>({type:"SET_NET_MODE",mode:e}),x=e=>({type:"SET_GAME_INFO",gameInfo:e}),_=e=>({type:"SHOW_TOAST",toast:{id:v(8),...e}}),E=e=>({type:"DISMISS_TOAST",id:e}),k=(e,t)=>({type:"SHOW_MODAL",modalType:e,modalOpts:t}),S=(e,t)=>({type:"SET_DEEP_LINKS",shareCode:e,joinCode:t}),A=e=>({type:"SET_GAME_PAUSED",gamePaused:e}),C=(e,t)=>({type:"SET_PRESENCE_ICON_OVERRIDE",slot:e,icon:t}),O=(e,t)=>({type:"SET_REACTION_ICON_OVERRIDE",slot:e,icon:t});function T(){const{state:t}=(0,e.useContext)(m),{deepLinks:n}=t,{shareCode:r,joinCode:i}=n,a=lf("Sign in to host this multiplayer game"),o=lf("Sign up to host this multiplayer game"),s=lf("Sign in to join multiplayer game {0}",i),l=lf("Sign up to join multiplayer game {0}",i),u=lf("Sign in to host or join a multiplayer game"),c=lf("Sign up to host or join a multiplayer game");return(0,e.useMemo)((()=>r?{signInMessage:a,signUpMessage:o}:i?{signInMessage:s,signUpMessage:l}:{signInMessage:u,signUpMessage:c}),[r,i])}function N(){const{dispatch:t}=(0,e.useContext)(m),n=T();return(0,e.useEffect)((()=>{t(k("sign-in",{dialogMessages:n}))}),[n]),(0,d.jsx)(d.Fragment,{})}function R(e){const t="number"==typeof e.which?e.which:e.keyCode;13!==t&&32!==t||(e.preventDefault(),e.currentTarget.click())}function P(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e=>"string"==typeof e)).reduce(((e,t)=>e.concat(t.split(" "))),[]).map((e=>e.trim())).filter((e=>!!e)).join(" ")}let j;function I(e,t,n,r,i){const a=r?1:-1,o=e[n];return t===n||(i?i(o):"none"!==getComputedStyle(o).display)?o:(n+a>=e.length?n=0:n+a<0?n=e.length-1:n+=a,I(e,t,n,r))}!function(e){e[e.Selected=0]="Selected",e[e.Unselected=1]="Unselected",e[e.Waiting=2]="Waiting"}(j||(j={}));const L=e=>{const{id:t,className:n,style:r,ariaLabel:i,ariaHidden:a,ariaDescribedBy:o,ariaControls:s,ariaExpanded:l,ariaHasPopup:u,ariaPosInSet:c,ariaSetSize:f,ariaSelected:p,ariaPressed:h,role:m,onClick:g,onKeydown:y,onBlur:v,buttonRef:b,title:w,label:x,labelClassName:_,leftIcon:E,rightIcon:k,hardDisabled:S,href:A,target:C,tabIndex:O,children:T}=e;let{disabled:N}=e;N=N||S;const j=P("common-button",n,N&&"disabled");return(0,d.jsxs)("button",{id:t,className:j,style:r,title:w,ref:b,onClick:N?void 0:e=>{g&&g(),A&&window.open(A,C||"_blank","noopener,noreferrer"),e.stopPropagation(),e.preventDefault()},onKeyDown:y||R,onBlur:v,role:m||"button",tabIndex:O||(N?-1:0),disabled:S,"aria-label":i,"aria-hidden":a,"aria-controls":s,"aria-expanded":l,"aria-haspopup":u,"aria-posinset":c,"aria-setsize":f,"aria-describedby":o,"aria-selected":p,"aria-pressed":h,children:[(E||k||x)&&(0,d.jsxs)("span",{className:"common-button-flex",children:[E&&(0,d.jsx)("i",{className:E,"aria-hidden":!0}),(0,d.jsx)("span",{className:P("common-button-label",_),children:x}),k&&(0,d.jsx)("i",{className:"right "+k,"aria-hidden":!0})]}),T]})},M=e=>{const{id:t,className:n,role:r,ariaHidden:i,ariaLabel:a,childTabStopId:o,children:s,onItemReceivedFocus:l,useUpAndDownArrowKeys:u}=e;let c,f;const p=e=>"true"===e.getAttribute("data-isfocusable")&&"none"!==getComputedStyle(e).display;return(0,d.jsx)("div",{id:t,className:n,role:r,tabIndex:o?void 0:0,onKeyDown:e=>{var t;if(null===(t=c)||void 0===t||!t.length)return;const n=document.activeElement,r=c.indexOf(n),i=e=>{e.focus(),l&&l(e)};-1===r&&n!==f||("Enter"===e.key||" "===e.key?(e.preventDefault(),e.stopPropagation(),n.click?n.click():n.dispatchEvent(new Event("click"))):e.key===(u?"ArrowDown":"ArrowRight")?(r===c.length-1||n===f?i(I(c,r,0,!0,p)):i(I(c,r,r+1,!0,p)),e.preventDefault(),e.stopPropagation()):e.key===(u?"ArrowUp":"ArrowLeft")?(i(I(c,r,0===r||n===f?c.length-1:r-1,!1,p)),e.preventDefault(),e.stopPropagation()):"Home"===e.key?(i(I(c,r,0,!0,p)),e.preventDefault(),e.stopPropagation()):"End"===e.key&&(i(I(c,r,c.length-1,!0,p)),e.preventDefault(),e.stopPropagation()))},ref:e=>{if(!e||f)return;f=e;const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]),[data-isfocusable]');c=[];for(const e of t.values())c.push(e),e.setAttribute("tabindex","-1"),e.setAttribute("data-isfocusable","true");if(o){const e=f.querySelector("#"+o);e&&e.setAttribute("tabindex","0")}},"aria-hidden":i,"aria-label":a,children:s})},B=t=>{var n;const{id:r,className:i,inputClassName:a,groupClassName:o,role:s,ariaHidden:l,ariaLabel:u,initialValue:c,label:f,title:p,placeholder:h,icon:m,iconTitle:g,disabled:y,type:v,readOnly:b,autoComplete:w,selectOnClick:x,onChange:_,onEnterKey:E,onIconClick:k,onFocus:S,onBlur:A,onOptionSelected:C,handleInputRef:O,preserveValueOnBlur:T,options:N}=t,[R,j]=e.useState(void 0),[I,B]=e.useState(!1);let D;const U=e=>e&&-1!=Object.values(N).indexOf(e)?"dropdown-item-".concat(e):void 0;return(0,d.jsxs)("div",{className:P("common-input-wrapper",y&&"disabled",i),onBlur:e=>{I&&!D.contains(e.relatedTarget)&&B(!1)},ref:e=>{e&&(D=e)},children:[f&&(0,d.jsx)("label",{className:"common-input-label",htmlFor:r,children:f}),(0,d.jsxs)("div",{className:P("common-input-group",o),children:[(0,d.jsx)("input",{id:r,className:P("common-input",m&&"has-icon",a),title:p,role:s||"textbox",tabIndex:y?-1:0,"aria-label":u,"aria-hidden":l,type:v||"text",placeholder:h,value:void 0!==R?R:c||"",readOnly:!!b,onClick:e=>{x&&e.target.select(),N&&!I&&B(!0)},onChange:e=>{const t=e.target.value;b||R===t||j(t),_&&_(t)},onKeyDown:e=>{const n="number"==typeof e.which?e.which:e.keyCode;if(13===n||t.treatSpaceAsEnter&&32===n)E&&(e.preventDefault(),E(R));else if(N&&I&&"ArrowDown"===e.key){var r;null===(r=document.getElementById(U(Object.values(N)[0])))||void 0===r||r.focus(),e.preventDefault(),e.stopPropagation()}else if(N&&I&&"ArrowUp"===e.key){var i;const t=Object.values(N);null===(i=document.getElementById(U(t[t.length-1])))||void 0===i||i.focus(),e.preventDefault(),e.stopPropagation()}},onBlur:()=>{A&&A(R),T||j(void 0)},onFocus:()=>{S&&S(R)},autoComplete:w?"":"off",autoCorrect:w?"":"off",autoCapitalize:w?"":"off",spellCheck:w,disabled:y,ref:O}),m&&(k?(0,d.jsx)(L,{leftIcon:m,title:g,disabled:y,onClick:()=>{k&&k(R)}}):(0,d.jsx)("i",{className:m,"aria-hidden":!0})),N&&(0,d.jsx)(L,{leftIcon:I?"fas fa-chevron-up":"fas fa-chevron-down",title:g,disabled:y,ariaHasPopup:"listbox",ariaExpanded:I,ariaLabel:u,onClick:()=>{N&&B(!I)}})]}),I&&(0,d.jsx)(M,{role:"listbox",className:"common-menu-dropdown-pane common-dropdown-shadow",childTabStopId:null!==(n=U(R))&&void 0!==n?n:U(Object.values(N)[0]),"aria-labelledby":r,useUpAndDownArrowKeys:!0,children:(0,d.jsx)("ul",{role:"presentation",children:Object.keys(N).map((e=>(0,d.jsx)("li",{role:"presentation",children:(0,d.jsx)(L,{title:e,label:e,id:U(N[e]),className:P("common-dropdown-item"),onClick:()=>(e=>{var t;B(!1);const n=N[e];j(n),C&&C(n),null===(t=document.getElementById(r))||void 0===t||t.focus()})(e),ariaSelected:U(N[e])===U(null!=R?R:c),role:"option"})},e)))})})]})},D=e=>{const{id:t,className:n,ariaLabel:r,href:i,target:a,children:o,tabIndex:s}=e,l=P("common-link",n);return(0,d.jsx)("a",{id:t,className:l,"aria-label":r,href:i,target:a,rel:"_blank"===a?"noopener noreferrer":"",tabIndex:null!=s?s:0,children:o})},U=Object.create(null);U.open="0",U.close="1",U.ping="2",U.pong="3",U.message="4",U.upgrade="5",U.noop="6";const F=Object.create(null);Object.keys(U).forEach((e=>{F[U[e]]=e}));const z={type:"error",data:"parser error"},V="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),H="function"==typeof ArrayBuffer,W=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,q=(e,t,n)=>{let{type:r,data:i}=e;return V&&i instanceof Blob?t?n(i):G(i,n):H&&(i instanceof ArrayBuffer||W(i))?t?n(i):G(new Blob([i]),n):n(U[r]+(i||""))},G=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function Z(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Y;const $="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<64;e++)$["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(e)]=e;const K="function"==typeof ArrayBuffer,X=(e,t)=>{if("string"!=typeof e)return{type:"message",data:J(e,t)};const n=e.charAt(0);return"b"===n?{type:"message",data:Q(e.substring(1),t)}:F[n]?e.length>1?{type:F[n],data:e.substring(1)}:{type:F[n]}:z},Q=(e,t)=>{if(K){const n=(e=>{let t,n,r,i,a,o=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);const u=new ArrayBuffer(o),c=new Uint8Array(u);for(t=0;t<s;t+=4)n=$[e.charCodeAt(t)],r=$[e.charCodeAt(t+1)],i=$[e.charCodeAt(t+2)],a=$[e.charCodeAt(t+3)],c[l++]=n<<2|r>>4,c[l++]=(15&r)<<4|i>>2,c[l++]=(3&i)<<6|63&a;return u})(e);return J(n,t)}return{base64:!0,data:e}},J=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,ee=String.fromCharCode(30);let te;function ne(e){return e.reduce(((e,t)=>e+t.length),0)}function re(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function ie(e){if(e)return function(e){for(var t in ie.prototype)e[t]=ie.prototype[t];return e}(e)}ie.prototype.on=ie.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},ie.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},ie.prototype.off=ie.prototype.removeListener=ie.prototype.removeAllListeners=ie.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},ie.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},ie.prototype.emitReserved=ie.prototype.emit,ie.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},ie.prototype.hasListeners=function(e){return!!this.listeners(e).length};const ae="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),oe="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function se(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})}const le=oe.setTimeout,ue=oe.clearTimeout;function ce(e,t){t.useNativeTimers?(e.setTimeoutFn=le.bind(oe),e.clearTimeoutFn=ue.bind(oe)):(e.setTimeoutFn=oe.setTimeout.bind(oe),e.clearTimeoutFn=oe.clearTimeout.bind(oe))}function fe(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class de extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class pe extends ie{constructor(e){super(),this.writable=!1,ce(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved("error",new de(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=X(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}class he extends pe{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const n=e.split(ee),r=[];for(let e=0;e<n.length;e++){const i=X(n[e],t);if(r.push(i),"error"===i.type)break}return r})(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach(((e,a)=>{q(e,!1,(e=>{r[a]=e,++i===n&&t(r.join(ee))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=fe()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let me=!1;try{me="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}const ge=me;function ye(){}class ve extends he{constructor(e){if(super(e),"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}class be extends ie{constructor(e,t,n){super(),this.createRequest=e,ce(this,n),this._opts=n,this._method=n.method||"GET",this._uri=t,this._data=void 0!==n.data?n.data:null,this._create()}_create(){var e;const t=se(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const n=this._xhr=this.createRequest(t);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this._opts.extraHeaders[e])}}catch(e){}if("POST"===this._method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{n.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this._opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this._opts.cookieJar)||void 0===e||e.parseCookies(n.getResponseHeader("set-cookie"))),4===n.readyState&&(200===n.status||1223===n.status?this._onLoad():this.setTimeoutFn((()=>{this._onError("number"==typeof n.status?n.status:0)}),0))},n.send(this._data)}catch(e){return void this.setTimeoutFn((()=>{this._onError(e)}),0)}"undefined"!=typeof document&&(this._index=be.requestsCount++,be.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=ye,e)try{this._xhr.abort()}catch(e){}"undefined"!=typeof document&&delete be.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}function we(){for(let e in be.requests)be.requests.hasOwnProperty(e)&&be.requests[e].abort()}be.requestsCount=0,be.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",we):"function"==typeof addEventListener&&addEventListener("onpagehide"in oe?"pagehide":"unload",we,!1));const xe=function(){const e=_e({xdomain:!1});return e&&null!==e.responseType}();function _e(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||ge))return new XMLHttpRequest}catch(e){}if(!t)try{return new(oe[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}const Ee="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class ke extends pe{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,n=Ee?{}:se(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;q(n,this.supportsBinary,(e=>{try{this.doWrite(n,e)}catch(e){}r&&ae((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=fe()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const Se=oe.WebSocket||oe.MozWebSocket,Ae={websocket:class extends ke{createSocket(e,t,n){return Ee?new Se(e,t,n):t?new Se(e,t):new Se(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends pe{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this._transport.ready.then((()=>{this._transport.createBidirectionalStream().then((e=>{const t=function(e,t){te||(te=new TextDecoder);const n=[];let r=0,i=-1,a=!1;return new TransformStream({transform(o,s){for(n.push(o);;){if(0===r){if(ne(n)<1)break;const e=re(n,1);a=128==(128&e[0]),i=127&e[0],r=i<126?3:126===i?1:2}else if(1===r){if(ne(n)<2)break;const e=re(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(ne(n)<8)break;const e=re(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),a=t.getUint32(0);if(a>Math.pow(2,21)-1){s.enqueue(z);break}i=a*Math.pow(2,32)+t.getUint32(4),r=3}else{if(ne(n)<i)break;const e=re(n,i);s.enqueue(X(a?e:te.decode(e),t)),r=0}if(0===i||i>e){s.enqueue(z);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=new TransformStream({transform(e,t){!function(e,t){V&&e.data instanceof Blob?e.data.arrayBuffer().then(Z).then(t):H&&(e.data instanceof ArrayBuffer||W(e.data))?t(Z(e.data)):q(e,!1,(e=>{Y||(Y=new TextEncoder),t(Y.encode(e))}))}(e,(n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{i=new Uint8Array(9);const e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&"string"!=typeof e.data&&(i[0]|=128),t.enqueue(i),t.enqueue(n)}))}});r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();const i=()=>{n.read().then((e=>{let{done:t,value:n}=e;t||(this.onPacket(n),i())})).catch((e=>{}))};i();const a={type:"open"};this.query.sid&&(a.data='{"sid":"'.concat(this.query.sid,'"}')),this._writer.write(a).then((()=>this.onOpen()))}))}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;this._writer.write(n).then((()=>{r&&ae((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this._transport)||void 0===e||e.close()}},polling:class extends ve{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=xe&&!t}request(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(e,{xd:this.xd},this.opts),new be(_e,this.uri(),e)}}},Ce=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Oe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Te(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=Ce.exec(e||""),a={},o=14;for(;o--;)a[Oe[o]]=i[o]||"";return-1!=n&&-1!=r&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=function(e,t){const n=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.slice(0,1)&&0!==t.length||n.splice(0,1),"/"==t.slice(-1)&&n.splice(n.length-1,1),n}(0,a.path),a.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,a.query),a}class Ne extends ie{constructor(e,t){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,e&&"object"==typeof e&&(t=e,e=null),e){const n=Te(e);t.hostname=n.host,t.secure="https"===n.protocol||"wss"===n.protocol,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=Te(t.host).host);ce(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach((e=>{const t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e})),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let e=0,r=n.length;e<r;e++){let r=n[e].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}(this.opts.query)),"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this._offlineEventListener,!1))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);const e=this.opts.rememberUpgrade&&Ne.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",(e=>this._onClose("transport close",e)))}onOpen(){this.readyState="open",Ne.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this._resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer),this._pingTimeoutTimer=this.setTimeoutFn((()=>{this._onClose("ping timeout")}),this._pingInterval+this._pingTimeout),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let n=0;n<this.writeBuffer.length;n++){const r=this.writeBuffer[n].data;if(r&&(e+="string"==typeof(t=r)?function(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(t):Math.ceil(1.33*(t.byteLength||t.size))),n>0&&e>this._maxPayload)return this.writeBuffer.slice(0,n);e+=2}var t;return this.writeBuffer}write(e,t,n){return this._sendPacket("message",e,t,n),this}send(e,t,n){return this._sendPacket("message",e,t,n),this}_sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():e()})):this.upgrading?n():e()),this}_onError(e){if(Ne.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this._beforeunloadEventListener,!1),removeEventListener("offline",this._offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0)}}Ne.protocol=4;class Re extends Ne{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;Ne.priorWebsocketSuccess=!1;const r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!n)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Ne.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{n||"closed"!==this.readyState&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function i(){n||(n=!0,u(),t.close(),t=null)}const a=e=>{const n=new Error("probe error: "+e);n.transport=t.name,i(),this.emitReserved("upgradeError",n)};function o(){a("transport closed")}function s(){a("socket closed")}function l(e){t&&e.name!==t.name&&i()}const u=()=>{t.removeListener("open",r),t.removeListener("error",a),t.removeListener("close",o),this.off("close",s),this.off("upgrading",l)};t.once("open",r),t.once("error",a),t.once("close",o),this.once("close",s),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{n||t.open()}),200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}class Pe extends Re{constructor(e){const t="object"==typeof e?e:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(!t.transports||t.transports&&"string"==typeof t.transports[0])&&(t.transports=(t.transports||["polling","websocket","webtransport"]).map((e=>Ae[e])).filter((e=>!!e))),super(e,t)}}var je=n(3529);class Ie extends pxt.auth.AuthClient{async onSignedIn(){await async function(e){try{h(_({type:"success",text:lf("Welcome {0}!",e),timeoutMs:5e3}))}catch(e){}}(await this.firstNameAsync())}async onSignedOut(){await Et(void 0)}onSignInFailed(){return Promise.resolve()}async onUserProfileChanged(){const e=await pxt.auth.getUserStateAsync();null!=e&&e.profile&&pxt.auth.generateUserProfilePicDataUrl(e.profile),await Et(e.profile)}onUserPreferencesChanged(e){return Promise.resolve()}onStateCleared(){return Promise.resolve()}async onProfileDeleted(e){}onApiError(e){return Promise.resolve()}async firstNameAsync(){const e=await pxt.auth.getUserStateAsync();return pxt.auth.firstName(null==e?void 0:e.profile)}}let Le;async function Me(){if(pxt.auth.hasIdentity())return Le||(Le=new Promise((async(e,t)=>{const n=new Ie;await n.initAsync(),await n.authCheckAsync(),await n.initialUserPreferencesAsync(),e(n)})),Le)}async function Be(){return await pxt.auth.getAuthTokenAsync()}var De=n(1781),Ue=n.n(De);function Fe(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++)e[r]^=t[r];return e}function ze(e){return new Promise(((t,n)=>{Ue().gzip(e,((e,r)=>{e?n(e):t(r)}))}))}function Ve(e){return new Promise(((t,n)=>{Ue().gunzip(e,((e,r)=>{e?n(e):t(r)}))}))}function He(e){try{const n=new URL(e||"");var t;n.searchParams.has("join")&&(e=null!==(t=n.searchParams.get("join"))&&void 0!==t?t:void 0)}catch{}if(e&&6===(e=e.toUpperCase().replace(/[^A-Z0-9]/g,"")).length)return e}function We(e){try{const n=new URL(e||"");var t;n.searchParams.has("host")&&(e=null!==(t=n.searchParams.get("host"))&&void 0!==t?t:void 0)}catch{}if(e)return pxt.Cloud.parseScriptId(e)}function qe(e){var t;if(e)return!pxt.BrowserUtils.isLocalHostDev()||e.startsWith("https:")||e.startsWith("data:")?e:(null===(t=pxt.appTarget)||void 0===t?void 0:t.appTheme.homeUrl)+e}var Ge=n(3705);let Ze,Ye,$e,Ke=e=>{var t;return Ze&&!e||(Ze=new pxt.MainPackage((null===(t=Ze)||void 0===t?void 0:t.host())||new et)),Ze};function Xe(e){let t,n=e._editorPkg;if(n)return n;e!=Ke()&&(t=Xe(Ke()));let r=new Qe(e,t);return e==Ke()&&(r.topPkg=r),e._editorPkg=r,r}pxt.react.getTilemapProject||(pxt.react.getTilemapProject=()=>(Ye||(Ye=new pxt.TilemapProject,Ye.loadPackage(Ke())),Ye));class Qe{constructor(e,t){this.ksPkg=e,this.topPkg=t,this.files={},this.id=void 0}getKsPkg(){return this.ksPkg}getPkgId(){return this.ksPkg?this.ksPkg.id:this.id}isTopLevel(){return this.ksPkg&&0==this.ksPkg.level}setFiles(e){this.files=e}getAllFiles(){return pxt.Util.mapMap(this.files,((e,t)=>t))}}function Je(){let e=pxt.appTarget.tsprj,t=pxt.U.clone(e.files);return t[pxt.CONFIG_NAME]=pxt.Package.stringifyConfig(e.config),t[pxt.MAIN_BLOCKS]="",t}class et{constructor(){this.githubPackageCache={}}readFile(e,t){let n=Xe(e);return pxt.U.lookup(n.files,t)}writeFile(e,t,n){Xe(e).files[t]=n}getHexInfoAsync(e){return pxt.hexloader.getHexInfoAsync(this,e)}async cacheStoreAsync(e,t){try{this.githubPackageCache[e]=t?JSON.parse(t):void 0}catch(e){}}async cacheGetAsync(e){return null}patchDependencies(e,t,n){if(!n)return!1;const r=pxt.github.parseRepoId(n);if(!r)return!1;for(const t of Object.keys(e.dependencies)){const i=e.dependencies[t],a=pxt.github.parseRepoId(i);if(a&&r.fullName==a.fullName)return pxt.semver.strcmp(r.tag,a.tag)<0&&(e.dependencies[t]=n),!0}return!1}downloadPackageAsync(e,t){let n,r=e.verProtocol();"github"!=r&&"pub"!=r||(n=this.githubPackageCache[e._verspec]);let i=Xe(e);return(n?Promise.resolve(n):e.commonDownloadAsync()).then((a=>{if(a)return"github"!=r&&"pub"!=r||n||(this.githubPackageCache[e._verspec]=pxt.Util.clone(a)),i.setFiles(a),Promise.resolve();if("empty"==r){if(0==Object.keys(i.files).length&&i.setFiles(Je()),t&&t.length){const n=Xe(e).files,r=JSON.parse(n[pxt.CONFIG_NAME]);t.forEach((e=>{this.addPackageToConfig(r,e)})),n[pxt.CONFIG_NAME]=pxt.Package.stringifyConfig(r)}return Promise.resolve()}if("docs"==r){let t=Je(),n=JSON.parse(t[pxt.CONFIG_NAME]);return e.verArgument().split(",").forEach((e=>{this.addPackageToConfig(n,e)})),n.yotta||(n.yotta={}),n.yotta.ignoreConflicts=!0,t[pxt.CONFIG_NAME]=pxt.Package.stringifyConfig(n),i.setFiles(t),Promise.resolve()}return"invalid"==r?(pxt.log("skipping invalid pkg ".concat(e.id)),Promise.resolve()):Promise.reject("Cannot download ".concat(e.version(),"; unknown protocol"))}))}addPackageToConfig(e,t){let n=/^([a-zA-Z0-9_-]+)(=(.+))?$/.exec(t);if(n){if(n[3]&&this.patchDependencies(e,n[1],n[3]))return!1;e.dependencies[n[1]]=n[3]||"*"}else Ge.warn("unknown package syntax ".concat(t));return!0}}function tt(e){let t={};if("server"!=e.mpRole)return t;const n=e.id;try{let e=window.localStorage.getItem(n);e&&(t=JSON.parse(e))}catch(e){}return t}async function nt(e){const t=await function(){let e=Ke().getTargetOptions();return Ke().getCompileOptionsAsync(e)}();e&&e(t);const n=await function(e,t){const n=Date.now();return pxt.debug("worker op: "+e),pxt.worker.getWorker(pxt.webConfig.workerjs).opAsync(e,t).then((t=>(pxt.appTarget.compile.switches.time&&(pxt.log("Worker perf: ".concat(e," ").concat(Date.now()-n,"ms")),t.times&&pxt.debug(t.times)),pxt.debug("worker op done: "+e),t)))}("compile",{options:t});return n.diagnostics&&n.diagnostics.length>0&&n.diagnostics.forEach((e=>{Ge.error(e.messageText)})),n}function rt(e){if($e||($e=new pxsim.SimulatorDriver(e)),e&&($e.container=e),$e.container)return $e}function it(e,t,n){var r;const i=rt(e),{fnArgs:a,parts:o,usedBuiltinParts:s}=n||{};let l=null===(r=pxt.appTarget.simulator)||void 0===r?void 0:r.boardDefinition,u={debug:!0,mute:t.mute,boardDefinition:l,parts:o,builtinParts:s,fnArgs:a,cdnUrl:pxt.webConfig.commitCdnUrl,localizedStrings:pxt.Util.getLocalizedStrings(),storedState:tt(t),single:!0,autofocus:!0,queryParameters:t.simQueryParams,mpRole:t.mpRole};return i.setRunOptions(u),u}async function at(e){var t,n;await async function(e){const t="server"===e.mpRole?"pub:".concat(e.id):"empty:clientprj",n=Ke();if((null==n?void 0:n._verspec)!==t||t.startsWith("pub:S")){const e=Ke(!0);e.host().cacheStoreAsync(t,void 0),e._verspec=t,await e.host().downloadPackageAsync(Ke(),[]),await Ke().installAllAsync()}try{"client"===e.mpRole&&(Xe(Ke()).files[pxt.MAIN_TS]="multiplayer.init()")}catch(e){Ge.error(lf("Cannot load extension: {0}",e))}}(e);let r=!1;const i=pxt.appTarget.versions.target;let a=await nt((t=>{var n;if(t.computeUsedParts=!0,t.breakpoints=!0,"client"==e.mpRole&&(t.fileSystem[pxt.MAIN_TS]="multiplayer.init()"),t.target.preferredEditor===pxt.PYTHON_PROJECT_NAME){t.target.preferredEditor=pxt.JAVASCRIPT_PROJECT_NAME,t.ast=!0;const e=function(e,t){const n={},r=Object.keys(t.fileSystem).sort().join(";");return n[r]||(n[r]=pxtc.getApiInfo(e,t.jres)),n[r]}(pxtc.compile(t).ast,t);t.apisInfo=e,t.target.preferredEditor=pxt.PYTHON_PROJECT_NAME}const a=null===(n=Ke().config.targetVersions)||void 0===n?void 0:n.target;if(a&&i&&pxt.semver.cmp(pxt.semver.parse(a),pxt.semver.parse(i))<0)for(const e of Object.keys(t.fileSystem))!pxt.Util.startsWith(e,"pxt_modules")&&pxt.Util.endsWith(e,".ts")&&(r=!0,t.fileSystem[e]=pxt.patching.patchJavaScript(a,t.fileSystem[e]))}));(null===(t=a.diagnostics)||void 0===t?void 0:t.length)>0&&r&&(pxt.log("Compile with upgrade rules failed, trying again with original code"),a=await nt((t=>{"client"===e.mpRole&&(t.fileSystem[pxt.MAIN_TS]="multiplayer.init()")}))),(null===(n=a.diagnostics)||void 0===n?void 0:n.length)>0&&(Ge.error("Diagnostics",a.diagnostics),h(w("init")),ht("compile-failed"));const o=pxtc.buildSimJsInfo(a);return o.parts=a.usedParts,o}var ot=n(3325).Buffer,st=n(3705);const lt="https://multiplayer.staging.pxt.io",ut=pxt.BrowserUtils.isLocalHostDev()?"https://multiplayer.staging.pxt.io":"arcade.makecode.com"===window.location.hostname?"https://mp.makecode.com":lt;class ct{constructor(){this.sock=void 0,this.screen=void 0,this.clientRole=void 0,this.gameOverReason=void 0,this.receivedJoinMessageInTimeHandler=void 0,this.paused=!1,this.recvMessageAsync=async e=>{if(e instanceof ArrayBuffer){const t=je.I.fromBuffer(ot.from(e));switch(t.readUInt16LE()){case dt.Binary.MessageType.CompressedScreen:return await this.recvCompressedScreenMessageAsync(t);case dt.Binary.MessageType.Input:return await this.recvInputMessageAsync(t);case dt.Binary.MessageType.Audio:return await this.recvAudioMessageAsync(t);case dt.Binary.MessageType.Icon:return await this.recvIconMessageAsync(t)}}else{if("string"!=typeof e)throw new Error("Unknown payload: ".concat(e));{const t=JSON.parse(e);switch(t.type){case"joined":return await this.recvJoinedMessageAsync(t);case"start-game":return await this.recvStartGameMessageAsync(t);case"presence":return await this.recvPresenceMessageAsync(t);case"reaction":return await this.recvReactionMessageAsync(t);case"player-joined":return await this.recvPlayerJoinedMessageAsync(t);case"player-left":return await this.recvPlayerLeftMessageAsync(t);case"game-over":return await this.recvGameOverMessageAsync(t);case"pause-game":return await this.recvPauseGameMessageAsync(t);case"resume-game":return await this.recvResumeGameMessageAsync(t)}}}},this.recvMessageWithJoinTimeout=async(e,t)=>{try{"string"==typeof e&&"joined"===JSON.parse(e).type&&(this.sock&&(this.sock.removeListener("message",this.receivedJoinMessageInTimeHandler),this.receivedJoinMessageInTimeHandler=void 0),t())}catch(e){st.error("Error processing message",e),pt(),t()}}}destroy(){try{var e;null===(e=this.sock)||void 0===e||e.close(),this.sock=void 0}catch(e){}}sendMessage(e){if(e instanceof ot){var t;null===(t=this.sock)||void 0===t||t.send(e,{},(()=>{}))}else{var n;const t=JSON.stringify(e);null===(n=this.sock)||void 0===n||n.send(t,{},(()=>{}))}}async connectAsync(e){return new Promise(((t,n)=>{const r=setTimeout((()=>{n("Timed out connecting to game server"),pt()}),2e4);this.sock=new Pe(ut,{transports:["websocket"],path:"/mp"}),this.sock.binaryType="arraybuffer",this.sock.on("open",(()=>{var n,i,a,o;pxt.debug("socket opened"),this.receivedJoinMessageInTimeHandler=async e=>{await this.recvMessageWithJoinTimeout(e,(()=>{clearTimeout(r),t()}))},null===(n=this.sock)||void 0===n||n.on("message",this.receivedJoinMessageInTimeHandler),null===(i=this.sock)||void 0===i||i.on("message",(async e=>{try{await this.recvMessageAsync(e)}catch(e){st.error("Error processing message",e),pt()}})),null===(a=this.sock)||void 0===a||a.on("close",(()=>{pxt.debug("socket disconnected"),bt(this.gameOverReason),clearTimeout(r),t()})),null===(o=this.sock)||void 0===o||o.on("error",(e=>{e&&pxt.log("Error sending message. "+e.toString())})),this.sendMessage({type:"connect",ticket:e,version:dt.VERSION})}))}))}async hostGameAsync(e){try{e=encodeURIComponent(e);const t=await Be(),n=await fetch("".concat(ut,"/api/game/host/").concat(e),{credentials:"include",headers:{Authorization:"mkcd "+t}});if(200!==n.status)return{success:!1,statusCode:n.status};const r=await n.json();if(null==r||!r.joinTicket)throw new Error("Game server did not return a join ticket");return await this.connectAsync(r.joinTicket),{...r,success:!0,statusCode:n.status}}catch(e){return{success:!1,statusCode:500}}}async joinGameAsync(e){try{e=encodeURIComponent(e);const t=await Be(),n=await fetch("".concat(ut,"/api/game/join/").concat(e),{credentials:"include",headers:{Authorization:"mkcd "+t}});if(200!==n.status)return{success:!1,statusCode:n.status};const r=await n.json();if(null==r||!r.joinTicket)throw new Error("Game server did not return a join ticket");return await this.connectAsync(r.joinTicket),{...r,success:!this.gameOverReason,statusCode:this.gameOverReason?"full"===this.gameOverReason?507:418:n.status}}catch(e){return{success:!1,statusCode:500}}}async startGameAsync(){this.sendMessage({type:"start-game"})}async leaveGameAsync(e){var t;this.gameOverReason=e,null===(t=this.sock)||void 0===t||t.close()}async sendReactionAsync(e){this.sendMessage({type:"reaction",index:e})}async recvJoinedMessageAsync(e){pxt.debug("Server said we're joined as \"".concat(e.role,'" in slot "').concat(e.slot,'"'));const{gameMode:t,gamePaused:n,shareCode:r,role:i}=e;this.clientRole=i,this.paused=n,await async function(e){try{const t="https://makecode.com/api/".concat(e),n=await fetch(t),r=await n.json(),i=r.name||lf("Untitled"),a=r.description||"",o="".concat(t,"/thumb");return h({type:"SET_GAME_METADATA",gameMetadata:{title:i,description:a,thumbnail:o}}),h({type:"SET_GAME_ID",gameId:e}),!0}catch(e){return pxt.log(e.toString()),h(w("init")),h(_({type:"error",text:lf("Something went wrong. Please try again."),timeoutMs:5e3})),!1}}(r)&&await vt(t,n,e.slot)}async recvStartGameMessageAsync(e){pxt.debug("Server said start game"),await vt("playing",this.paused)}async recvPresenceMessageAsync(e){pxt.debug("Server sent presence"),await async function(e){try{h((e=>({type:"SET_PRESENCE",presence:e}))(e))}catch(e){}}(e.presence)}async recvReactionMessageAsync(e){pxt.debug("Server sent reaction"),await async function(e,t){try{const n=v();h(((e,t,n)=>({type:"SET_REACTION",clientId:e,reactionId:t,index:n}))(e,n,t)),setTimeout((()=>{var t;(null===(t=p.reactions[e])||void 0===t?void 0:t.id)===n&&h((e=>({type:"CLEAR_REACTION",clientId:e}))(e))}),1e3)}catch(e){}}(e.clientId,e.index)}async recvPlayerJoinedMessageAsync(e){pxt.debug("Server sent player joined"),"host"===this.clientRole&&await this.sendCurrentScreenAsync(),await async function(e){try{const n=p.presence.users.find((t=>t.id===e));var t;n&&(h(_({type:"info",text:lf("Player {0} joined the game.",n.slot),timeoutMs:5e3})),null===(t=rt())||void 0===t||t.postMessage({type:"multiplayer",content:"Connection",slot:n.slot,connected:!0}))}catch(e){}}(e.clientId)}async recvPlayerLeftMessageAsync(e){pxt.debug("Server sent player joined"),await async function(e){try{const n=p.presence.users.find((t=>t.id===e));var t;n&&(h(_({type:"info",text:lf("Player {0} left the game.",n.slot),timeoutMs:5e3})),null===(t=rt())||void 0===t||t.postMessage({type:"multiplayer",content:"Connection",slot:n.slot,connected:!1}))}catch(e){}}(e.clientId)}async recvGameOverMessageAsync(e){pxt.debug("Server sent game over"),await async function(e){try{ht(e)}catch(e){}}(e.reason)}async recvPauseGameMessageAsync(e){pxt.debug("Server sent pause game"),this.paused=!0,await kt()}async recvResumeGameMessageAsync(e){pxt.debug("Server sent resume game"),this.paused=!1,await St()}async recvCompressedScreenMessageAsync(e){const{zippedData:t,isDelta:n}=dt.Binary.unpackCompressedScreenMessage(e),r=await Ve(t);n?this.screen&&Fe(this.screen,r):this.screen=r;const{image:i,palette:a}=this.getCurrentScreen();i&&this.postToSimFrame({type:"multiplayer",content:"Image",image:{data:i},palette:a})}async recvInputMessageAsync(e){const{button:t,state:n,slot:i}=dt.Binary.unpackInputMessage(e),o=function(e){switch(e){case r.Pressed:return"Pressed";case r.Released:return"Released";case r.Held:return"Held"}}(n);t<=a.None||t>=a.Menu||i<2||!o||this.postToSimFrame({type:"multiplayer",content:"Button",clientNumber:i-1,button:t,state:o})}async recvAudioMessageAsync(e){const{instruction:t,soundbuf:n}=dt.Binary.unpackAudioMessage(e);this.postToSimFrame({type:"multiplayer",content:"Audio",instruction:s(t),soundbuf:n})}async recvIconMessageAsync(e){const{iconType:t,iconSlot:n,iconBuffer:r}=dt.Binary.unpackIconMessage(e);if(t===i.Player&&n>=1&&n<=4);else if(!(t===i.Reaction&&n>=1&&n<=6))return;if(r){const e=await Ve(r),i=e.slice(0,48),a=e.slice(48);Ct(t,n,pxt.convertUint8BufferToPngUri(i,a))}else Ct(t,n)}postToSimFrame(e){var t;null===(t=rt())||void 0===t||t.postMessage(e)}async sendInputAsync(e,t){if(this.paused)return;const n=dt.Binary.packInputMessage(e,function(e){switch(e){case"Pressed":return r.Pressed;case"Released":return r.Released;case"Held":return r.Held}}(t));this.sendMessage(n)}async sendAudioAsync(e,t){if(this.paused)return;const n=dt.Binary.packAudioMessage(function(e){switch(e){case"muteallchannels":return o.MuteAllChannels;case"playinstructions":return o.PlayInstruction}}(e),ot.from(t));this.sendMessage(n)}async sendIconAsync(e,t,n,r){let i;if(n&&r){const e=ot.concat([n,r]);i=await ze(e)}const a=dt.Binary.packIconMessage(e,t,i);this.sendMessage(a)}async sendScreenUpdateAsync(e,t){const n=[];n.push(ot.from(e)),t&&n.push(ot.from(t));const r=ot.concat(n),i=!this.screen;i?this.screen=r:(Fe(r,this.screen),Fe(this.screen,r));{let e=!0;for(let t=0;t<r.length;t++)if(0!==r[t]){e=!1;break}if(!e||i){const e=await ze(r),t=dt.Binary.packCompressedScreenMessage(e,!i);this.sendMessage(t)}}}async sendCurrentScreenAsync(){if(this.screen){const e=await ze(this.screen),t=dt.Binary.packCompressedScreenMessage(e,!1);this.sendMessage(t)}}kickPlayer(e){const t={type:"kick-player",clientId:e};this.sendMessage(t)}gameOver(e){this.gameOverReason=e,pt()}getCurrentScreen(){return this.screen?{image:this.screen.slice(0,9608),palette:this.screen.length>=9656?this.screen.slice(9608,9656).map((e=>e)):void 0}:{image:void 0,palette:void 0}}async pauseGameAsync(){this.paused=!0,this.sendMessage({type:"pause-game"})}async resumeGameAsync(){this.paused=!1,this.sendMessage({type:"resume-game"})}}let ft,dt;function pt(){var e;null===(e=ft)||void 0===e||e.destroy(),ft=void 0}function ht(e){var t;null===(t=ft)||void 0===t||t.gameOver(e)}async function mt(e){if(!(e=We(e)))return h(_({type:"error",text:lf("Invalid share code or link. Please try again."),timeoutMs:5e3}));const t=_({type:"info",text:lf("Connecting..."),showSpinner:!0});try{h(w("connecting")),h(t);const n=await async function(e){return pt(),ft=new ct,await ft.hostGameAsync(e)}(e);if(pxt.debug(n),!n.success)throw new Error("host http response: ".concat(n.statusCode));h(_({type:"success",text:lf("Connected!"),timeoutMs:5e3})),h(b("host")),h(x(n)),h(w("connected"))}catch(e){pxt.log(e.toString()),h(_({type:"error",text:lf("Something went wrong. Please try again."),timeoutMs:5e3})),h(w("init"))}finally{h(E(t.toast.id))}}async function gt(e){if(!(e=He(e)))return h(_({type:"error",text:lf("Invalid join code. Please try again."),timeoutMs:5e3}));const t=_({type:"info",text:lf("Connecting..."),showSpinner:!0});try{h(w("connecting")),h(t);const n=await async function(e){return pt(),ft=new ct,await ft.joinGameAsync(e)}(e);if(pxt.debug(n),n.success)h(_({type:"success",text:lf("Connected!"),timeoutMs:5e3})),h(b("guest")),h(x(n)),h(w("connected"));else if(404===n.statusCode)bt("not-found"),h(w("init"));else{if(507!==n.statusCode)throw new Error("join http response: ".concat(n.statusCode));h(w("init"))}}catch(e){pxt.log(e.toString()),h(_({type:"error",text:lf("Something went wrong. Please try again."),timeoutMs:5e3})),h(w("init"))}finally{h(E(t.toast.id))}}async function yt(e){try{pxt.tickEvent("mp.leavegame"),await async function(e){var t;await(null===(t=ft)||void 0===t?void 0:t.leaveGameAsync(e)),pt()}(e),h({type:"CLEAR_GAME_INFO"}),h({type:"SET_GAME_METADATA",gameMetadata:void 0})}catch(e){}}async function vt(e,t,n){const{clientRole:r}=p;try{n&&h((e=>({type:"SET_PLAYER_SLOT",playerSlot:e}))(n)),h((e=>({type:"SET_GAME_MODE",gameMode:e}))(e)),"playing"===e&&(h({type:"CLEAR_MODAL"}),h(_({type:"info",text:lf("Game started!"),timeoutMs:5e3})),t&&"host"!==r&&kt())}catch(e){}}function bt(e){try{switch(h(w("init")),e){case"kicked":return pxt.tickEvent("mp.gotkicked"),h(_({type:"info",text:lf("Host kicked you from the game"),icon:"🤔",timeoutMs:5e3}));case"ended":return pxt.tickEvent("mp.gameover"),h(_({type:"info",text:lf("Game ended"),timeoutMs:5e3}));case"left":return pxt.tickEvent("mp.leftgame"),h(_({type:"info",text:lf("You left the game"),timeoutMs:5e3}));case"full":return pxt.tickEvent("mp.gamefull"),h(_({type:"warning",text:lf("Game is full"),timeoutMs:5e3,icon:"😤"}));case"rejected":return pxt.tickEvent("mp.gamerejected"),h(_({type:"error",text:lf("Game rejected your join request"),timeoutMs:5e3}));case"not-found":return pxt.tickEvent("mp.gamenotfound"),h(_({type:"warning",text:lf("Game not found"),timeoutMs:5e3,icon:"😟"}));case"compile-failed":return pxt.tickEvent("mp.compilefailed"),h(_({type:"error",text:lf("There was a problem loading this game"),timeoutMs:5e3,icon:"😟"}));default:return pxt.tickEvent("mp.disconnected"),h(_({type:"error",text:lf("Game disconnected"),timeoutMs:5e3}))}}catch(e){}}!function(e){let t;e.VERSION=2,function(e){let t;!function(e){e[e.Input=1]="Input",e[e.CompressedScreen=3]="CompressedScreen",e[e.Audio=4]="Audio",e[e.Icon=5]="Icon"}(t||(t={})),e.MessageType=t,e.packInputMessage=function(e,n){const r=new je.I;return r.writeUInt16LE(t.Input),r.writeUInt16LE(e),r.writeUInt8(n),r.toBuffer()},e.unpackInputMessage=function(e){return{button:e.readUInt16LE(),state:e.readUInt8(),slot:e.readUInt8()}},e.packCompressedScreenMessage=function(e,n){const r=new je.I;return r.writeUInt16LE(t.CompressedScreen),r.writeUInt8(n?1:0),r.writeBuffer(e),r.toBuffer()},e.unpackCompressedScreenMessage=function(e){const t=1===e.readUInt8();return{zippedData:e.readBuffer(),isDelta:t}},e.packAudioMessage=function(e,n){const r=new je.I;return r.writeUInt16LE(t.Audio),r.writeUInt8(e),n&&r.writeBuffer(n),r.toBuffer()},e.unpackAudioMessage=function(e){return{instruction:e.readUInt8(),soundbuf:e.remaining()?e.readBuffer():void 0}},e.packIconMessage=function(e,n,r){const i=new je.I;return i.writeUInt16LE(t.Icon),i.writeUInt8(e),i.writeUInt8(n),r&&i.writeBuffer(r),i.toBuffer()},e.unpackIconMessage=function(e){const t=e.readUInt8(),n=e.readUInt8();let r;return e.remaining()&&(r=e.readBuffer()),{iconType:t,iconSlot:n,iconBuffer:r}}}(t||(t=e.Binary||(e.Binary={})))}(dt||(dt={}));const wt=[{name:lf("smile"),emoji:"😃"},{name:lf("laugh"),emoji:"🤣"},{name:lf("surprise"),emoji:"😯"},{name:lf("cry"),emoji:"😫"},{name:lf("scared"),emoji:"😬"},{name:lf("angry"),emoji:"😠"}],xt=[];async function _t(e){try{if(!xt[e]||xt[e]+250<Date.now()){xt[e]=Date.now();const t=wt[e];pxt.tickEvent("mp.sendreaction",{reaction:t.name}),await async function(e){var t;await(null===(t=ft)||void 0===t?void 0:t.sendReactionAsync(e))}(e)}}catch(e){}}async function Et(e){try{h(e?(e=>({type:"SET_USER_PROFILE",profile:e}))(e):{type:"SET_USER_PROFILE",profile:void 0})}catch(e){}}async function kt(){const{clientRole:e}=p;try{var t;"host"===e&&(pxt.tickEvent("mp.host.pausegame"),await async function(){var e;await(null===(e=ft)||void 0===e?void 0:e.pauseGameAsync())}()),null===(t=rt())||void 0===t||t.resume(pxsim.SimulatorDebuggerCommand.Pause),h(A(!0))}catch(e){}}async function St(){const{clientRole:e,presence:t}=p;try{var n;if("host"===e&&(pxt.tickEvent("mp.host.resumegame"),await async function(){var e;await(null===(e=ft)||void 0===e?void 0:e.resumeGameAsync())}()),null===(n=rt())||void 0===n||n.resume(pxsim.SimulatorDebuggerCommand.Resume),h(A(!1)),"host"===e){for(let e=1;e<=4;e++){var r;const n=!!t.users.find((t=>t.slot===e));null===(r=rt())||void 0===r||r.postMessage({type:"multiplayer",content:"Connection",slot:e,connected:n})}await async function(){var e;await(null===(e=ft)||void 0===e?void 0:e.sendCurrentScreenAsync())}()}}catch(e){}}async function At(e){const{clientRole:t,gameState:n}=p,{gameMode:r}=null!=n?n:{};try{e||"host"!==t||"playing"!==r||await kt()}catch(e){}}async function Ct(e,t,n){try{const r=e===i.Player?C:O;h(r(t,n))}catch(e){}}function Ot(e){var t;return(0,d.jsxs)("div",{children:[(0,d.jsx)(L,{className:"tw-m-0 tw-px-8 ".concat(e.selected?"tw-font-bold":""),title:e.title,label:null!==(t=e.label)&&void 0!==t?t:e.title,onClick:e.onClick}),(0,d.jsx)("div",{className:"tw-mx-1 tw-border-b-2 tw-rounded-sm tw-ease-linear tw-duration-[75ms]",style:{borderColor:e.selected?"var(--primary-color)":"transparent"}})]})}function Tt(e){const{title:t,subtitle:n,image:r}=e,i=We(e.shareId),a=lf("Host a multiplayer session with '{0}'",pxt.U.rlf(t)),o=null!=r?r:"https://makecode.com/api/".concat(i,"/thumb"),s=lf("Preview image for game");return(0,d.jsx)(L,{className:"tw-p-0 sm:tw-pb-1 tw-flex tw-grow tw-shrink tw-basis-1 tw-max-w-[min(12em,30vw)] tw-rounded-md tw-border-solid tw-border-1 tw-border-gray-300 tw-overflow-hidden tw-drop-shadow-xl",onClick:async()=>{pxt.tickEvent("mp.hostbutton",{id:i,title:t}),await mt(i)},title:a,label:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("img",{className:"tw-w-full tw-aspect-[4/3]",src:o,alt:s}),(0,d.jsx)("div",{className:"tw-text-left tw-px-2 tw-pt-1 tw-hidden tw-truncate tw-leading-normal sm:tw-block",children:pxt.U.rlf(t)}),(0,d.jsx)("div",{className:"tw-text-left tw-px-2 tw-text-sm tw-text-gray-500 tw-truncate tw-leading-normal tw-hidden md:tw-block",children:pxt.U.rlf(n)})]})})}function Nt(){var t;const{state:n}=(0,e.useContext)(m),{targetConfig:r}=n,[i,a]=(0,e.useState)("join"),o=(0,e.useRef)(),s=(0,e.useRef)(),l=(0,e.useCallback)((e=>{o.current=e}),[]),u=(0,e.useCallback)((e=>{s.current=e}),[]),c=async()=>{var e;null!=o&&null!==(e=o.current)&&void 0!==e&&e.value&&await gt(o.current.value)},f=async()=>{var e;null!=s&&null!==(e=s.current)&&void 0!==e&&e.value&&await mt(s.current.value)},p=lf("Enter share code or link"),h=lf("How do I get a share code or link?"),g=lf("More games to play with your friends"),y=null==r||null===(t=r.multiplayer)||void 0===t?void 0:t.games,v=!(null==y||!y.length);return(0,d.jsxs)("div",{className:"tw-flex tw-flex-col tw-w-screen tw-h-screen tw-justify-center tw-items-center",children:[(0,d.jsx)("div",{className:"tw-bg-white tw-rounded-lg tw-drop-shadow-xl tw-min-h-[17rem] tw-min-w-[17rem] md:tw-min-w-[25rem]",children:(0,d.jsx)("div",{className:"tw-py-5 tw-px-10 ",children:(0,d.jsxs)("div",{className:"tw-pt-2",children:[(0,d.jsxs)("div",{className:"tw-flex tw-justify-center",children:[(0,d.jsx)(Ot,{title:lf("Join Game"),label:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"tw-hidden sm:tw-inline",children:lf("Join Game")}),(0,d.jsx)("div",{className:"sm:tw-hidden",children:lf("Join")})]}),selected:"join"===i,onClick:()=>a("join")}),(0,d.jsx)(Ot,{title:lf("Host Game"),label:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"tw-hidden sm:tw-inline",children:lf("Host Game")}),(0,d.jsx)("div",{className:"sm:tw-hidden",children:lf("Host")})]}),selected:"host"===i,onClick:()=>a("host")})]}),(0,d.jsxs)("div",{className:"tw-pt-2",children:["join"===i&&(0,d.jsxs)("div",{className:"tw-w-full tw-flex tw-flex-col tw-gap-4 tw-mt-2 tw-justify-center tw-items-center",children:[(0,d.jsx)("div",{className:"tw-w-full",children:(0,d.jsx)(B,{groupClassName:"tw-w-full tw-border-1 tw-h-full tw-rounded",inputClassName:"tw-text-center tw-p-2",title:lf("Join Code"),autoComplete:!1,handleInputRef:l,preserveValueOnBlur:!0,onEnterKey:c,placeholder:lf("Enter game code")})}),(0,d.jsx)("div",{children:(0,d.jsx)(L,{className:"primary tw-px-10",label:lf("Enter"),title:lf("Join Game"),onClick:c})}),(0,d.jsx)("div",{className:"tw-text-sm",children:(0,d.jsx)(D,{href:"/multiplayer#join-game",target:"_blank",children:lf("How do I get a game code?")})})]}),"host"===i&&(0,d.jsxs)("div",{className:"tw-w-full tw-flex tw-flex-col tw-gap-4 tw-mt-2 tw-justify-center tw-items-center",children:[(0,d.jsx)("div",{className:"tw-w-full",children:(0,d.jsx)(B,{groupClassName:"tw-w-full tw-border-1 tw-h-full tw-rounded",inputClassName:"tw-p-2",title:lf("Share Code"),autoComplete:!1,handleInputRef:u,preserveValueOnBlur:!0,onEnterKey:f,placeholder:p})}),(0,d.jsx)("div",{children:(0,d.jsx)(L,{className:"primary tw-px-10",label:lf("Launch"),title:lf("Host Game"),onClick:f})}),(0,d.jsx)("div",{className:"tw-text-sm",children:(0,d.jsx)(D,{href:"/multiplayer#host-game",target:"_blank",children:h})})]})]})]})})}),v&&(0,d.jsxs)("div",{className:"tw-max-w-[min(90vw,60em)] tw-p-2 tw-flex tw-flex-col tw-shrink",children:[(0,d.jsx)("div",{className:"tw-w-full tw-p-2",children:g}),(0,d.jsx)("div",{className:"tw-flex tw-justify-between tw-space-x-1 md:tw-space-x-4",children:y.map(((e,t)=>(0,d.jsx)(Tt,{shareId:e.shareId,title:pxt.Util.rlf("{id:game-title}".concat(e.title)),subtitle:pxt.Util.rlf("{id:game-subtitle}".concat(e.subtitle)),image:qe(e.image)},t)))})]})]})}let Rt;function Pt(){const{state:t}=(0,e.useContext)(m),{playerSlot:n,gameState:r,clientRole:i,gamePaused:a}=t,o=null==r?void 0:r.gameId,s=null==r?void 0:r.gameMode,l=(0,e.useRef)(null),u=["background-color=ED3636&button-stroke=8D2525","background-color=4E4EE9&button-stroke=3333A1","background-color=FF9A14&button-stroke=B0701A","background-color=4EB94E&button-stroke=245D24"][(n||0)-1],c="host"===i;(0,e.useEffect)((()=>{const e=e=>{const{data:t}=e,{type:n}=t;switch(n){case"status":const{state:e}=t;if("running"===e&&"guest"===i){const{image:e,palette:t}=function(){var e;return(null===(e=ft)||void 0===e?void 0:e.getCurrentScreen())||{image:void 0,palette:void 0}}();var r;e&&(null===(r=rt())||void 0===r||r.postMessage({type:"multiplayer",content:"Image",image:{data:e},palette:t}))}return;case"toplevelcodefinished":if("host"===i)for(const e of null==p?void 0:p.presence.users){var a;null===(a=rt())||void 0===a||a.postMessage({type:"multiplayer",content:"Connection",slot:e.slot,connected:!0})}return;case"multiplayer":const{origin:n,content:o}=t;return void("client"===n&&"Button"===o?(async e=>{const{button:t,state:n}=e;await async function(e,t){var n;await(null===(n=ft)||void 0===n?void 0:n.sendInputAsync(e,t))}(t,n)})(t):"server"===n&&"Image"===o?(async e=>{const{image:t,palette:n}=e,{data:r}=t;await async function(e,t){var n;await(null===(n=ft)||void 0===n?void 0:n.sendScreenUpdateAsync(e,t))}(r,n)})(t):"server"===n&&"Audio"===o?(async e=>{const{instruction:t,soundbuf:n}=e;await async function(e,t){var n;await(null===(n=ft)||void 0===n?void 0:n.sendAudioAsync(e,t))}(t,n)})(t):"server"===n&&"Icon"===o&&(async e=>{const{iconType:t,palette:n,icon:r,slot:i}=e,{data:a}=r||{};await async function(e,t,n,r){var i;await(null===(i=ft)||void 0===i?void 0:i.sendIconAsync(e,t,n,r))}(t,i,n,a)})(t))}};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)}),[i]);const f=()=>{let e;return e=c?{simQueryParams:u,mpRole:"server",id:o}:{simQueryParams:u,mpRole:"client"},e},h=async()=>(Rt=at(f()),await Rt);return(0,e.useEffect)((()=>{"playing"===s&&(async()=>{const e=f();Rt&&(e.builtJsInfo=await Rt),Rt=async function(e,t){var n,r;const i=t.builtJsInfo||await at(t),{js:a}=i;if(!a)return void Ge.error("Program failed to compile");const o=it(e,t,i),s=rt(e);return s.options.messageSimulators=null===(n=pxt.appTarget)||void 0===n||null===(r=n.simulator)||void 0===r?void 0:r.messageSimulators,s.options.onSimulatorCommand=e=>{"restart"===e.command&&(o.storedState=tt(t),s.run(a,o)),"setstate"==e.command&&e.stateKey&&function(e,t,n){if("server"!=e.mpRole)return;const r=e.id;let i=tt(e);null!=n?i[t]=n:delete i[t];try{window.localStorage.setItem(r,JSON.stringify(i))}catch(e){}}(t,e.stateKey,e.stateValue)},i.breakpoints&&s.setBreakpoints(i.breakpoints),s.run(a,o),i}(l.current,e),await Rt})()}),[s]),(0,e.useEffect)((()=>{"playing"!==s&&l.current&&async function(e,t){var n;it(e,t),null===(n=rt())||void 0===n||n.preload(1,!0)}(l.current,f())}),[i,n]),(0,e.useEffect)((()=>{c||h()}),[i]),(0,e.useEffect)((()=>{c&&o&&h()}),[i,o]),(0,e.useEffect)((()=>()=>{Rt=void 0})),(0,d.jsx)("div",{id:"sim-container",ref:l,className:"tw-grow tw-w-screen md:tw-w-[calc(100vw-6rem)]",style:{filter:a?"grayscale(70%) blur(1px)":"none",transition:"filter .25s"}})}var jt,It=Object.defineProperty,Lt=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,Dt=(e,t,n)=>t in e?It(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;(e=>{const t=class{constructor(e,n,r,i){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let o=[];for(let e=0;e<this.size;e++)o.push(!1);for(let e=0;e<this.size;e++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==i){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(i=t,e=n),this.applyMask(t)}}a(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}static encodeText(n,r){const i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}static encodeBinary(n,r){const i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}static encodeSegments(e,n){let i,o,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,f=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(t.MIN_VERSION<=l&&l<=u&&u<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");for(i=l;;i++){const r=8*t.getNumDataCodewords(i,n),a=s.getTotalBits(e,i);if(a<=r){o=a;break}if(i>=u)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])f&&o<=8*t.getNumDataCodewords(i,e)&&(n=e);let d=[];for(const t of e){r(t.mode.modeBits,4,d),r(t.numChars,t.mode.numCharCountBits(i),d);for(const e of t.getData())d.push(e)}a(d.length==o);const p=8*t.getNumDataCodewords(i,n);a(d.length<=p),r(0,Math.min(4,p-d.length),d),r(0,(8-d.length%8)%8,d),a(d.length%8==0);for(let e=236;d.length<p;e^=253)r(e,8,d);let h=[];for(;8*h.length<d.length;)h.push(0);return d.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(i,n,h,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);a(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,i(r,e));this.setFunctionModule(8,7,i(r,6)),this.setFunctionModule(8,8,i(r,7)),this.setFunctionModule(7,8,i(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,i(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,i(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,i(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let e=0;e<18;e++){const n=i(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a<this.size&&0<=o&&o<this.size&&this.setFunctionModule(a,o,2!=i&&4!=i)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const i=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],o=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),l=i-s%i,u=Math.floor(s/i);let c=[];const f=t.reedSolomonComputeDivisor(o);for(let n=0,r=0;n<i;n++){let i=e.slice(r,r+u-o+(n<l?0:1));r+=i.length;const a=t.reedSolomonComputeRemainder(i,f);n<l&&i.push(0),c.push(i.concat(a))}let d=[];for(let e=0;e<c[0].length;e++)c.forEach(((t,n)=>{(e!=u-o||n>=l)&&d.push(t[e])}));return a(d.length==s),d}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let a=0;a<2;a++){const o=t-a,s=0==(t+1&2)?this.size-1-r:r;!this.isFunction[s][o]&&n<8*e.length&&(this.modules[s][o]=i(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[n][o]==r?(i++,5==i?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][o],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[o][n]==r?(i++,5==i?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[o][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const i=this.modules[n][r];i==this.modules[n][r+1]&&i==this.modules[n+1][r]&&i==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,i=Math.ceil(Math.abs(20*n-10*r)/r)-1;return a(0<=i&&i<=9),e+=i*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return a(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let i=0;i<e;i++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const i of e){const e=i^r.shift();r.push(0),n.forEach(((n,i)=>r[i]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return a(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function i(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const o=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new o(o.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!o.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const i=Math.min(e.length-n,3);r(parseInt(e.substr(n,i),10),3*i+1,t),n+=i}return new o(o.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!o.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let i=45*o.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));i+=o.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(i,11,n)}return t<e.length&&r(o.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new o(o.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:o.isNumeric(e)?[o.makeNumeric(e)]:o.isAlphanumeric(e)?[o.makeAlphanumeric(e)]:[o.makeBytes(o.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new o(o.Mode.ECI,0,t)}static isNumeric(e){return o.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return o.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let s=o;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(jt||(jt={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(jt||(jt={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(jt||(jt={}));var Ut=jt,Ft={L:Ut.QrCode.Ecc.LOW,M:Ut.QrCode.Ecc.MEDIUM,Q:Ut.QrCode.Ecc.QUARTILE,H:Ut.QrCode.Ecc.HIGH},zt=128,Vt="L",Ht="#FFFFFF",Wt="#000000",qt=!1;function Gt(t){const n=t,{value:r,size:i=zt,level:a=Vt,bgColor:o=Ht,fgColor:s=Wt,includeMargin:l=qt,imageSettings:u}=n,c=((e,t)=>{var n={};for(var r in e)Mt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Lt)for(var r of Lt(e))t.indexOf(r)<0&&Bt.call(e,r)&&(n[r]=e[r]);return n})(n,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let f=Ut.QrCode.encodeText(r,Ft[a]).getModules();const d=l?4:0,p=f.length+2*d,h=function(e,t,n,r){if(null==r)return null;const i=n?4:0,a=e.length+2*i,o=Math.floor(.1*t),s=a/t,l=(r.width||o)*s,u=(r.height||o)*s,c=null==r.x?e.length/2-l/2:r.x*s,f=null==r.y?e.length/2-u/2:r.y*s;let d=null;if(r.excavate){let e=Math.floor(c),t=Math.floor(f);d={x:e,y:t,w:Math.ceil(l+c-e),h:Math.ceil(u+f-t)}}return{x:c,y:f,h:u,w:l,excavation:d}}(f,i,l,u);let m=null;null!=u&&null!=h&&(null!=h.excavation&&(f=function(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}(f,h.excavation)),m=e.createElement("image",{xlinkHref:u.src,height:h.h,width:h.w,x:h.x+d,y:h.y+d,preserveAspectRatio:"none"}));const g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=[];return e.forEach((function(e,r){let i=null;e.forEach((function(a,o){if(!a&&null!==i)return n.push("M".concat(i+t," ").concat(r+t,"h").concat(o-i,"v1H").concat(i+t,"z")),void(i=null);if(o!==e.length-1)a&&null===i&&(i=o);else{if(!a)return;null===i?n.push("M".concat(o+t,",").concat(r+t," h1v1H").concat(o+t,"z")):n.push("M".concat(i+t,",").concat(r+t," h").concat(o+1-i,"v1H").concat(i+t,"z"))}}))})),n.join("")}(f,d);return e.createElement("svg",((e,t)=>{for(var n in t||(t={}))Mt.call(t,n)&&Dt(e,n,t[n]);if(Lt)for(var n of Lt(t))Bt.call(t,n)&&Dt(e,n,t[n]);return e})({height:i,width:i,viewBox:"0 0 ".concat(p," ").concat(p)},c),e.createElement("path",{fill:o,d:"M0,0 h".concat(p,"v").concat(p,"H0z"),shapeRendering:"crispEdges"}),e.createElement("path",{fill:s,d:g,shapeRendering:"crispEdges"}),m)}!function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}}();var Zt={prefix:"far",iconName:"copy",icon:[512,512,[],"f0c5","M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"]},Yt={prefix:"far",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M175 175C184.4 165.7 199.6 165.7 208.1 175L255.1 222.1L303 175C312.4 165.7 327.6 165.7 336.1 175C346.3 184.4 346.3 199.6 336.1 208.1L289.9 255.1L336.1 303C346.3 312.4 346.3 327.6 336.1 336.1C327.6 346.3 312.4 346.3 303 336.1L255.1 289.9L208.1 336.1C199.6 346.3 184.4 346.3 175 336.1C165.7 327.6 165.7 312.4 175 303L222.1 255.1L175 208.1C165.7 199.6 165.7 184.4 175 175V175zM512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"]},$t={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]},Kt={prefix:"fas",iconName:"check",icon:[512,512,[10003,10004],"f00c","M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},Xt=n(3705);function Qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qt(Object(n),!0).forEach((function(t){nn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function en(e){return(en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}(e,t)||on(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function an(e){return function(e){if(Array.isArray(e))return sn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||on(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function on(e,t){if(e){if("string"==typeof e)return sn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sn(e,t):void 0}}function sn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ln=function(){},un={},cn={},fn=null,dn={mark:ln,measure:ln};try{"undefined"!=typeof window&&(un=window),"undefined"!=typeof document&&(cn=document),"undefined"!=typeof MutationObserver&&(fn=MutationObserver),"undefined"!=typeof performance&&(dn=performance)}catch(e){}var pn,hn,mn,gn,yn,vn=(un.navigator||{}).userAgent,bn=void 0===vn?"":vn,wn=un,xn=cn,_n=fn,En=dn,kn=(wn.document,!!xn.documentElement&&!!xn.head&&"function"==typeof xn.addEventListener&&"function"==typeof xn.createElement),Sn=~bn.indexOf("MSIE")||~bn.indexOf("Trident/"),An="___FONT_AWESOME___",Cn="svg-inline--fa",On="data-fa-i2svg",Tn="data-fa-pseudo-element",Nn="data-prefix",Rn="data-icon",Pn="fontawesome-i2svg",jn=["HTML","HEAD","STYLE","SCRIPT"],In=function(){try{return!0}catch(e){return!1}}(),Ln="classic",Mn="sharp",Bn=[Ln,Mn];function Dn(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[Ln]}})}var Un=Dn((nn(pn={},Ln,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),nn(pn,Mn,{fa:"solid",fass:"solid","fa-solid":"solid"}),pn)),Fn=Dn((nn(hn={},Ln,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),nn(hn,Mn,{solid:"fass"}),hn)),zn=Dn((nn(mn={},Ln,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),nn(mn,Mn,{fass:"fa-solid"}),mn)),Vn=Dn((nn(gn={},Ln,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),nn(gn,Mn,{"fa-solid":"fass"}),gn)),Hn=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,Wn="fa-layers-text",qn=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Gn=Dn((nn(yn={},Ln,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),nn(yn,Mn,{900:"fass"}),yn)),Zn=[1,2,3,4,5,6,7,8,9,10],Yn=Zn.concat([11,12,13,14,15,16,17,18,19,20]),$n=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Kn="duotone-group",Xn="swap-opacity",Qn="primary",Jn="secondary",er=new Set;Object.keys(Fn[Ln]).map(er.add.bind(er)),Object.keys(Fn[Mn]).map(er.add.bind(er));var tr=[].concat(Bn,an(er),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Kn,Xn,Qn,Jn]).concat(Zn.map((function(e){return"".concat(e,"x")}))).concat(Yn.map((function(e){return"w-".concat(e)}))),nr=wn.FontAwesomeConfig||{};xn&&"function"==typeof xn.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=rn(e,2),n=t[0],r=t[1],i=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=xn.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=i&&(nr[r]=i)}));var rr={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:Cn,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};nr.familyPrefix&&(nr.cssPrefix=nr.familyPrefix);var ir=Jt(Jt({},rr),nr);ir.autoReplaceSvg||(ir.observeMutations=!1);var ar={};Object.keys(rr).forEach((function(e){Object.defineProperty(ar,e,{enumerable:!0,set:function(t){ir[e]=t,or.forEach((function(e){return e(ar)}))},get:function(){return ir[e]}})})),Object.defineProperty(ar,"familyPrefix",{enumerable:!0,set:function(e){ir.cssPrefix=e,or.forEach((function(e){return e(ar)}))},get:function(){return ir.cssPrefix}}),wn.FontAwesomeConfig=ar;var or=[],sr=16,lr={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function ur(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function cr(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function fr(e){return e.classList?cr(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function dr(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function pr(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")}),"")}function hr(e){return e.size!==lr.size||e.x!==lr.x||e.y!==lr.y||e.rotate!==lr.rotate||e.flipX||e.flipY}function mr(){var e="fa",t=Cn,n=ar.cssPrefix,r=ar.replacementClass,i=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(n!==e||r!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var gr=!1;function yr(){ar.autoAddCss&&!gr&&(function(e){if(e&&kn){var t=xn.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=xn.head.childNodes,r=null,i=n.length-1;i>-1;i--){var a=n[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=a)}xn.head.insertBefore(t,r)}}(mr()),gr=!0)}var vr={mixout:function(){return{dom:{css:mr,insertCss:yr}}},hooks:function(){return{beforeDOMElementCreation:function(){yr()},beforeI2svg:function(){yr()}}}},br=wn||{};br[An]||(br[An]={}),br[An].styles||(br[An].styles={}),br[An].hooks||(br[An].hooks={}),br[An].shims||(br[An].shims=[]);var wr=br[An],xr=[],_r=!1;function Er(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,i=e.children,a=void 0===i?[]:i;return"string"==typeof e?dr(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(dr(e[n]),'" ')}),"").trim()}(r),">").concat(a.map(Er).join(""),"</").concat(t,">")}function kr(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}kn&&((_r=(xn.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(xn.readyState))||xn.addEventListener("DOMContentLoaded",(function e(){xn.removeEventListener("DOMContentLoaded",e),_r=1,xr.map((function(e){return e()}))})));var Sr=function(e,t,n,r){var i,a,o,s=Object.keys(e),l=s.length,u=void 0!==r?function(e,t){return function(n,r,i,a){return e.call(t,n,r,i,a)}}(t,r):t;for(void 0===n?(i=1,o=e[s[0]]):(i=0,o=n);i<l;i++)o=u(o,e[a=s[i]],a,e);return o};function Ar(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&i)<<10)+(1023&a)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function Cr(e){return Object.keys(e).reduce((function(t,n){var r=e[n];return r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function Or(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==n&&n,i=Cr(t);"function"!=typeof wr.hooks.addPack||r?wr.styles[e]=Jt(Jt({},wr.styles[e]||{}),i):wr.hooks.addPack(e,Cr(t)),"fas"===e&&Or("fa",t)}var Tr,Nr,Rr,Pr=wr.styles,jr=wr.shims,Ir=(nn(Tr={},Ln,Object.values(zn[Ln])),nn(Tr,Mn,Object.values(zn[Mn])),Tr),Lr=null,Mr={},Br={},Dr={},Ur={},Fr={},zr=(nn(Nr={},Ln,Object.keys(Un[Ln])),nn(Nr,Mn,Object.keys(Un[Mn])),Nr);function Vr(e,t){var n,r=t.split("-"),i=r[0],a=r.slice(1).join("-");return i!==e||""===a||(n=a,~tr.indexOf(n))?null:a}var Hr=function(){var e=function(e){return Sr(Pr,(function(t,n,r){return t[r]=Sr(n,e,{}),t}),{})};Mr=e((function(e,t,n){(t[3]&&(e[t[3]]=n),t[2])&&t[2].filter((function(e){return"number"==typeof e})).forEach((function(t){e[t.toString(16)]=n}));return e})),Br=e((function(e,t,n){(e[n]=n,t[2])&&t[2].filter((function(e){return"string"==typeof e})).forEach((function(t){e[t]=n}));return e})),Fr=e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in Pr||ar.autoFetchSvg,n=Sr(jr,(function(e,n){var r=n[0],i=n[1],a=n[2];return"far"!==i||t||(i="fas"),"string"==typeof r&&(e.names[r]={prefix:i,iconName:a}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:a}),e}),{names:{},unicodes:{}});Dr=n.names,Ur=n.unicodes,Lr=Yr(ar.styleDefault,{family:ar.familyDefault})};function Wr(e,t){return(Mr[e]||{})[t]}function qr(e,t){return(Fr[e]||{})[t]}function Gr(e){return Dr[e]||{prefix:null,iconName:null}}function Zr(){return Lr}or.push((function(e){Lr=Yr(e.styleDefault,{family:ar.familyDefault})})),Hr();function Yr(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===t?Ln:t,r=Un[n][e],i=Fn[n][e]||Fn[n][r],a=e in wr.styles?e:null;return i||a||null}var $r=(nn(Rr={},Ln,Object.keys(zn[Ln])),nn(Rr,Mn,Object.keys(zn[Mn])),Rr);function Kr(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,r=void 0!==n&&n,i=(nn(t={},Ln,"".concat(ar.cssPrefix,"-").concat(Ln)),nn(t,Mn,"".concat(ar.cssPrefix,"-").concat(Mn)),t),a=null,o=Ln;(e.includes(i[Ln])||e.some((function(e){return $r[Ln].includes(e)})))&&(o=Ln),(e.includes(i[Mn])||e.some((function(e){return $r[Mn].includes(e)})))&&(o=Mn);var s=e.reduce((function(e,t){var n=Vr(ar.cssPrefix,t);if(Pr[t]?(t=Ir[o].includes(t)?Vn[o][t]:t,a=t,e.prefix=t):zr[o].indexOf(t)>-1?(a=t,e.prefix=Yr(t,{family:o})):n?e.iconName=n:t!==ar.replacementClass&&t!==i[Ln]&&t!==i[Mn]&&e.rest.push(t),!r&&e.prefix&&e.iconName){var s="fa"===a?Gr(e.iconName):{},l=qr(e.prefix,e.iconName);s.prefix&&(a=null),e.iconName=s.iconName||l||e.iconName,e.prefix=s.prefix||e.prefix,"far"!==e.prefix||Pr.far||!Pr.fas||ar.autoFetchSvg||(e.prefix="fas")}return e}),{prefix:null,iconName:null,rest:[]});return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),s.prefix||o!==Mn||!Pr.fass&&!ar.autoFetchSvg||(s.prefix="fass",s.iconName=qr(s.prefix,s.iconName)||s.iconName),"fa"!==s.prefix&&"fa"!==a||(s.prefix=Zr()||"fas"),s}var Xr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n;return t=e,(n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach((function(t){e.definitions[t]=Jt(Jt({},e.definitions[t]||{}),i[t]),Or(t,i[t]);var n=zn[Ln][t];n&&Or(n,i[t]),Hr()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((function(t){var r=n[t],i=r.prefix,a=r.iconName,o=r.icon,s=o[2];e[i]||(e[i]={}),s.length>0&&s.forEach((function(t){"string"==typeof t&&(e[i][t]=o)})),e[i][a]=o})),e}}])&&tn(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Qr=[],Jr={},ei={},ti=Object.keys(ei);function ni(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(Jr[e]||[]).forEach((function(e){t=e.apply(null,[t].concat(r))})),t}function ri(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Jr[e]||[]).forEach((function(e){e.apply(null,n)}))}function ii(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return ei[e]?ei[e].apply(null,t):void 0}function ai(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Zr();if(t)return t=qr(n,t)||t,kr(oi.definitions,n,t)||kr(wr.styles,n,t)}var oi=new Xr,si={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return kn?(ri("beforeI2svg",e),ii("pseudoElements2svg",e),ii("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.autoReplaceSvgRoot;!1===ar.autoReplaceSvg&&(ar.autoReplaceSvg=!0),ar.observeMutations=!0,e=function(){ui({autoReplaceSvgRoot:n}),ri("watch",t)},kn&&(_r?setTimeout(e,0):xr.push(e))}},li={noAuto:function(){ar.autoReplaceSvg=!1,ar.observeMutations=!1,ri("noAuto")},config:ar,dom:si,parse:{icon:function(e){if(null===e)return null;if("object"===en(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:qr(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=Yr(e[0]);return{prefix:n,iconName:qr(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(ar.cssPrefix,"-"))>-1||e.match(Hn))){var r=Kr(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||Zr(),iconName:qr(r.prefix,r.iconName)||r.iconName}}if("string"==typeof e){var i=Zr();return{prefix:i,iconName:qr(i,e)||e}}}},library:oi,findIconDefinition:ai,toHtml:Er},ui=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?xn:e;(Object.keys(wr.styles).length>0||ar.autoFetchSvg)&&kn&&ar.autoReplaceSvg&&li.dom.i2svg({node:t})};function ci(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return Er(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(kn){var t=xn.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function fi(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,a=e.iconName,o=e.transform,s=e.symbol,l=e.title,u=e.maskId,c=e.titleId,f=e.extra,d=e.watchable,p=void 0!==d&&d,h=r.found?r:n,m=h.width,g=h.height,y="fak"===i,v=[ar.replacementClass,a?"".concat(ar.cssPrefix,"-").concat(a):""].filter((function(e){return-1===f.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(f.classes).join(" "),b={children:[],attributes:Jt(Jt({},f.attributes),{},{"data-prefix":i,"data-icon":a,class:v,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(g)})},w=y&&!~f.classes.indexOf("fa-fw")?{width:"".concat(m/g*16*.0625,"em")}:{};p&&(b.attributes[On]=""),l&&(b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(c||ur())},children:[l]}),delete b.attributes.title);var x=Jt(Jt({},b),{},{prefix:i,iconName:a,main:n,mask:r,maskId:u,transform:o,symbol:s,styles:Jt(Jt({},w),f.styles)}),_=r.found&&n.found?ii("generateAbstractMask",x)||{children:[],attributes:{}}:ii("generateAbstractIcon",x)||{children:[],attributes:{}},E=_.children,k=_.attributes;return x.children=E,x.attributes=k,s?function(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,a=e.symbol,o=!0===a?"".concat(t,"-").concat(ar.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Jt(Jt({},i),{},{id:o}),children:r}]}]}(x):function(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(hr(o)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};i.style=pr(Jt(Jt({},a),{},{"transform-origin":"".concat(s.x+o.x/16,"em ").concat(s.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(x)}function di(e){var t=e.content,n=e.width,r=e.height,i=e.transform,a=e.title,o=e.extra,s=e.watchable,l=void 0!==s&&s,u=Jt(Jt(Jt({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});l&&(u[On]="");var c=Jt({},o.styles);hr(i)&&(c.transform=function(e){var t=e.transform,n=e.width,r=void 0===n?16:n,i=e.height,a=void 0===i?16:i,o=e.startCentered,s=void 0!==o&&o,l="";return l+=s&&Sn?"translate(".concat(t.x/sr-r/2,"em, ").concat(t.y/sr-a/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/sr,"em), calc(-50% + ").concat(t.y/sr,"em)) "):"translate(".concat(t.x/sr,"em, ").concat(t.y/sr,"em) "),(l+="scale(".concat(t.size/sr*(t.flipX?-1:1),", ").concat(t.size/sr*(t.flipY?-1:1),") "))+"rotate(".concat(t.rotate,"deg) ")}({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);var f=pr(c);f.length>0&&(u.style=f);var d=[];return d.push({tag:"span",attributes:u,children:[t]}),a&&d.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),d}var pi=wr.styles;function hi(e){var t=e[0],n=e[1],r=rn(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(ar.cssPrefix,"-").concat(Kn)},children:[{tag:"path",attributes:{class:"".concat(ar.cssPrefix,"-").concat(Jn),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ar.cssPrefix,"-").concat(Qn),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var mi={found:!1,width:512,height:512};function gi(e,t){var n=t;return"fa"===t&&null!==ar.styleDefault&&(t=Zr()),new Promise((function(r,i){if(ii("missingIconAbstract"),"fa"===n){var a=Gr(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&pi[t]&&pi[t][e])return r(hi(pi[t][e]));!function(e,t){In||ar.showMissingIcons||!e||Xt.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(Jt(Jt({},mi),{},{icon:ar.showMissingIcons&&e&&ii("missingIconAbstract")||{}}))}))}var yi=function(){},vi=ar.measurePerformance&&En&&En.mark&&En.measure?En:{mark:yi,measure:yi},bi='FA "6.2.0"',wi=function(e){vi.mark("".concat(bi," ").concat(e," ends")),vi.measure("".concat(bi," ").concat(e),"".concat(bi," ").concat(e," begins"),"".concat(bi," ").concat(e," ends"))},xi=function(e){return vi.mark("".concat(bi," ").concat(e," begins")),function(){return wi(e)}},_i=function(){};function Ei(e){return"string"==typeof(e.getAttribute?e.getAttribute(On):null)}function ki(e){return xn.createElementNS("http://www.w3.org/2000/svg",e)}function Si(e){return xn.createElement(e)}function Ai(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===t?"svg"===e.tag?ki:Si:t;if("string"==typeof e)return xn.createTextNode(e);var r=n(e.tag);return Object.keys(e.attributes||[]).forEach((function(t){r.setAttribute(t,e.attributes[t])})),(e.children||[]).forEach((function(e){r.appendChild(Ai(e,{ceFn:n}))})),r}var Ci={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(Ai(e),t)})),null===t.getAttribute(On)&&ar.keepOriginalSource){var n=xn.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~fr(t).indexOf(ar.replacementClass))return Ci.replace(e);var r=new RegExp("".concat(ar.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce((function(e,t){return t===ar.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var a=n.map((function(e){return Er(e)})).join("\n");t.setAttribute(On,""),t.innerHTML=a}};function Oi(e){e()}function Ti(e,t){var n="function"==typeof t?t:_i;if(0===e.length)n();else{var r=Oi;"async"===ar.mutateApproach&&(r=wn.requestAnimationFrame||Oi),r((function(){var t=!0===ar.autoReplaceSvg?Ci.replace:Ci[ar.autoReplaceSvg]||Ci.replace,r=xi("mutate");e.map(t),r(),n()}))}}var Ni=!1;function Ri(){Ni=!0}function Pi(){Ni=!1}var ji=null;function Ii(e){if(_n&&ar.observeMutations){var t=e.treeCallback,n=void 0===t?_i:t,r=e.nodeCallback,i=void 0===r?_i:r,a=e.pseudoElementsCallback,o=void 0===a?_i:a,s=e.observeMutationsRoot,l=void 0===s?xn:s;ji=new _n((function(e){if(!Ni){var t=Zr();cr(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!Ei(e.addedNodes[0])&&(ar.searchPseudoElements&&o(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&ar.searchPseudoElements&&o(e.target.parentNode),"attributes"===e.type&&Ei(e.target)&&~$n.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(Nn):null,n=e.getAttribute?e.getAttribute(Rn):null;return t&&n}(e.target)){var r=Kr(fr(e.target)),a=r.prefix,s=r.iconName;e.target.setAttribute(Nn,a||t),s&&e.target.setAttribute(Rn,s)}else(l=e.target)&&l.classList&&l.classList.contains&&l.classList.contains(ar.replacementClass)&&i(e.target);var l}))}})),kn&&ji.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Li(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"",i=Kr(fr(e));return i.prefix||(i.prefix=Zr()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=function(e,t){return(Br[e]||{})[t]}(i.prefix,e.innerText)||Wr(i.prefix,Ar(e.innerText))),!i.iconName&&ar.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function Mi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=Li(e),r=n.iconName,i=n.prefix,a=n.rest,o=function(e){var t=cr(e.attributes).reduce((function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e}),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return ar.autoA11y&&(n?t["aria-labelledby"]="".concat(ar.replacementClass,"-title-").concat(r||ur()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),s=ni("parseNodeAttributes",{},e),l=t.styleParser?function(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce((function(e,t){var n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e}),{})),n}(e):[];return Jt({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:lr,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:l,attributes:o}},s)}var Bi=wr.styles;function Di(e){var t="nest"===ar.autoReplaceSvg?Mi(e,{styleParser:!1}):Mi(e);return~t.extra.classes.indexOf(Wn)?ii("generateLayersText",e,t):ii("generateSvgReplacementMutation",e,t)}var Ui=new Set;function Fi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!kn)return Promise.resolve();var n=xn.documentElement.classList,r=function(e){return n.add("".concat(Pn,"-").concat(e))},i=function(e){return n.remove("".concat(Pn,"-").concat(e))},a=ar.autoFetchSvg?Ui:Bn.map((function(e){return"fa-".concat(e)})).concat(Object.keys(Bi));a.includes("fa")||a.push("fa");var o=[".".concat(Wn,":not([").concat(On,"])")].concat(a.map((function(e){return".".concat(e,":not([").concat(On,"])")}))).join(", ");if(0===o.length)return Promise.resolve();var s=[];try{s=cr(e.querySelectorAll(o))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");var l=xi("onTree"),u=s.reduce((function(e,t){try{var n=Di(t);n&&e.push(n)}catch(e){In||"MissingIcon"===e.name&&Xt.error(e)}return e}),[]);return new Promise((function(e,n){Promise.all(u).then((function(n){Ti(n,(function(){r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((function(e){l(),n(e)}))}))}function zi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Di(e).then((function(e){e&&Ti([e],t)}))}Bn.map((function(e){Ui.add("fa-".concat(e))})),Object.keys(Un[Ln]).map(Ui.add.bind(Ui)),Object.keys(Un[Mn]).map(Ui.add.bind(Ui)),Ui=an(Ui);var Vi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?lr:n,i=t.symbol,a=void 0!==i&&i,o=t.mask,s=void 0===o?null:o,l=t.maskId,u=void 0===l?null:l,c=t.title,f=void 0===c?null:c,d=t.titleId,p=void 0===d?null:d,h=t.classes,m=void 0===h?[]:h,g=t.attributes,y=void 0===g?{}:g,v=t.styles,b=void 0===v?{}:v;if(e){var w=e.prefix,x=e.iconName,_=e.icon;return ci(Jt({type:"icon"},e),(function(){return ri("beforeDOMElementCreation",{iconDefinition:e,params:t}),ar.autoA11y&&(f?y["aria-labelledby"]="".concat(ar.replacementClass,"-title-").concat(p||ur()):(y["aria-hidden"]="true",y.focusable="false")),fi({icons:{main:hi(_),mask:s?hi(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:x,transform:Jt(Jt({},lr),r),symbol:a,title:f,maskId:u,titleId:p,extra:{attributes:y,styles:b,classes:m}})}))}},Hi={mixout:function(){return{icon:(e=Vi,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:ai(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:ai(i||{})),e(r,Jt(Jt({},n),{},{mask:i}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Fi,e.nodeCallback=zi,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?xn:t,r=e.callback;return Fi(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,i=t.titleId,a=t.prefix,o=t.transform,s=t.symbol,l=t.mask,u=t.maskId,c=t.extra;return new Promise((function(t,f){Promise.all([gi(n,a),l.iconName?gi(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(l){var f=rn(l,2),d=f[0],p=f[1];t([e,fi({icons:{main:d,mask:p},prefix:a,iconName:n,transform:o,symbol:s,maskId:u,title:r,titleId:i,extra:c,watchable:!0})])})).catch(f)}))},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,i=e.main,a=e.transform,o=pr(e.styles);return o.length>0&&(r.style=o),hr(a)&&(t=ii("generateAbstractTransformGrouping",{main:i,transform:a,containerWidth:i.width,iconWidth:i.width})),n.push(t||i.icon),{children:n,attributes:r}}}},Wi={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=void 0===n?[]:n;return ci({type:"layer"},(function(){ri("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e((function(e){Array.isArray(e)?e.map((function(e){n=n.concat(e.abstract)})):n=n.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(ar.cssPrefix,"-layers")].concat(an(r)).join(" ")},children:n}]}))}}}},qi={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,r=void 0===n?null:n,i=t.classes,a=void 0===i?[]:i,o=t.attributes,s=void 0===o?{}:o,l=t.styles,u=void 0===l?{}:l;return ci({type:"counter",content:e},(function(){return ri("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,n=e.title,r=e.extra,i=Jt(Jt(Jt({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=pr(r.styles);a.length>0&&(i.style=a);var o=[];return o.push({tag:"span",attributes:i,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}({content:e.toString(),title:r,extra:{attributes:s,styles:u,classes:["".concat(ar.cssPrefix,"-layers-counter")].concat(an(a))}})}))}}}},Gi={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?lr:n,i=t.title,a=void 0===i?null:i,o=t.classes,s=void 0===o?[]:o,l=t.attributes,u=void 0===l?{}:l,c=t.styles,f=void 0===c?{}:c;return ci({type:"text",content:e},(function(){return ri("beforeDOMElementCreation",{content:e,params:t}),di({content:e,transform:Jt(Jt({},lr),r),title:a,extra:{attributes:u,styles:f,classes:["".concat(ar.cssPrefix,"-layers-text")].concat(an(s))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,i=t.extra,a=null,o=null;if(Sn){var s=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();a=l.width/s,o=l.height/s}return ar.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,di({content:e.innerHTML,width:a,height:o,transform:r,title:n,extra:i,watchable:!0})])}}},Zi=new RegExp('"',"ug"),Yi=[1105920,1112319];function $i(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise((function(r,i){if(null!==e.getAttribute(n))return r();var a=cr(e.children).filter((function(e){return e.getAttribute(Tn)===t}))[0],o=wn.getComputedStyle(e,t),s=o.getPropertyValue("font-family").match(qn),l=o.getPropertyValue("font-weight"),u=o.getPropertyValue("content");if(a&&!s)return e.removeChild(a),r();if(s&&"none"!==u&&""!==u){var c=o.getPropertyValue("content"),f=~["Sharp"].indexOf(s[2])?Mn:Ln,d=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?Fn[f][s[2].toLowerCase()]:Gn[f][l],p=function(e){var t=e.replace(Zi,""),n=function(e,t){var n,r=e.length,i=e.charCodeAt(0);return i>=55296&&i<=56319&&r>1&&(n=e.charCodeAt(1))>=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}(t),r=n>=Yi[0]&&n<=Yi[1],i=2===t.length&&t[0]===t[1];return{value:Ar(i?t[0]:t),isSecondary:r||i}}(c),h=p.value,m=p.isSecondary,g=s[0].startsWith("FontAwesome"),y=Wr(d,h),v=y;if(g){var b=function(e){var t=Ur[e],n=Wr("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(h);b.iconName&&b.prefix&&(y=b.iconName,d=b.prefix)}if(!y||m||a&&a.getAttribute(Nn)===d&&a.getAttribute(Rn)===v)r();else{e.setAttribute(n,v),a&&e.removeChild(a);var w={iconName:null,title:null,titleId:null,prefix:null,transform:lr,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},x=w.extra;x.attributes[Tn]=t,gi(y,d).then((function(i){var a=fi(Jt(Jt({},w),{},{icons:{main:i,mask:{prefix:null,iconName:null,rest:[]}},prefix:d,iconName:v,extra:x,watchable:!0})),o=xn.createElement("svg");"::before"===t?e.insertBefore(o,e.firstChild):e.appendChild(o),o.outerHTML=a.map((function(e){return Er(e)})).join("\n"),e.removeAttribute(n),r()})).catch(i)}}else r()}))}function Ki(e){return Promise.all([$i(e,"::before"),$i(e,"::after")])}function Xi(e){return!(e.parentNode===document.head||~jn.indexOf(e.tagName.toUpperCase())||e.getAttribute(Tn)||e.parentNode&&"svg"===e.parentNode.tagName)}function Qi(e){if(kn)return new Promise((function(t,n){var r=cr(e.querySelectorAll("*")).filter(Xi).map(Ki),i=xi("searchPseudoElements");Ri(),Promise.all(r).then((function(){i(),Pi(),t()})).catch((function(){i(),Pi(),n()}))}))}var Ji=!1,ea=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},ta={x:0,y:0,width:"100%",height:"100%"};function na(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}!function(e,t){var n=t.mixoutsTo;Qr=e,Jr={},Object.keys(ei).forEach((function(e){-1===ti.indexOf(e)&&delete ei[e]})),Qr.forEach((function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((function(e){"function"==typeof t[e]&&(n[e]=t[e]),"object"===en(t[e])&&Object.keys(t[e]).forEach((function(r){n[e]||(n[e]={}),n[e][r]=t[e][r]}))})),e.hooks){var r=e.hooks();Object.keys(r).forEach((function(e){Jr[e]||(Jr[e]=[]),Jr[e].push(r[e])}))}e.provides&&e.provides(ei)}))}([vr,Hi,Wi,qi,Gi,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Qi,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?xn:t;ar.searchPseudoElements&&Qi(n)}}},{mixout:function(){return{dom:{unwatch:function(){Ri(),Ji=!0}}}},hooks:function(){return{bootstrap:function(){Ii(ni("mutationObserverCallbacks",{}))},noAuto:function(){ji&&ji.disconnect()},watch:function(e){var t=e.observeMutationsRoot;Ji?Pi():Ii(ni("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},{mixout:function(){return{parse:{transform:function(e){return ea(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=ea(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,i=e.iconWidth,a={transform:"translate(".concat(r/2," 256)")},o="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),u={outer:a,inner:{transform:"".concat(o," ").concat(s," ").concat(l)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:Jt({},u.outer),children:[{tag:"g",attributes:Jt({},u.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Jt(Jt({},t.icon.attributes),u.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?Kr(n.split(" ").map((function(e){return e.trim()}))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=Zr()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,r=e.attributes,i=e.main,a=e.mask,o=e.maskId,s=e.transform,l=i.width,u=i.icon,c=a.width,f=a.icon,d=function(e){var t=e.transform,n=e.iconWidth,r={transform:"translate(".concat(e.containerWidth/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),o="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(i," ").concat(a," ").concat(o)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:s,containerWidth:c,iconWidth:l}),p={tag:"rect",attributes:Jt(Jt({},ta),{},{fill:"white"})},h=u.children?{children:u.children.map(na)}:{},m={tag:"g",attributes:Jt({},d.inner),children:[na(Jt({tag:u.tag,attributes:Jt(Jt({},u.attributes),d.path)},h))]},g={tag:"g",attributes:Jt({},d.outer),children:[m]},y="mask-".concat(o||ur()),v="clip-".concat(o||ur()),b={tag:"mask",attributes:Jt(Jt({},ta),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,g]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:(t=f,"g"===t.tag?t.children:[t])},b]};return n.push(w,{tag:"rect",attributes:Jt({fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(y,")")},ta)}),{children:n,attributes:r}}}},{provides:function(e){var t=!1;wn.matchMedia&&(t=wn.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:Jt(Jt({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var i=Jt(Jt({},r),{},{attributeName:"opacity"}),a={tag:"circle",attributes:Jt(Jt({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:Jt(Jt({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Jt(Jt({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(a),e.push({tag:"path",attributes:Jt(Jt({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Jt(Jt({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:Jt(Jt({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Jt(Jt({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}}}}],{mixoutsTo:li});var ra=li.parse,ia=li.icon,aa=n(1942),oa=n.n(aa),sa=n(3705);function la(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ua(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?la(Object(n),!0).forEach((function(t){fa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):la(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ca(e){return(ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function da(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function pa(e){return function(e){if(Array.isArray(e))return ha(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ha(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ma(e){return t=e,(t-=0)===t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var ga=["style"],ya=!1;try{ya=!0}catch(e){}function va(e){return e&&"object"===ca(e)&&e.prefix&&e.iconName&&e.icon?e:ra.icon?ra.icon(e):null===e?null:e&&"object"===ca(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function ba(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?fa({},e,t):{}}var wa=e.forwardRef((function(e,t){var n=e.icon,r=e.mask,i=e.symbol,a=e.className,o=e.title,s=e.titleId,l=e.maskId,u=va(n),c=ba("classes",[].concat(pa(function(e){var t,n=e.beat,r=e.fade,i=e.beatFade,a=e.bounce,o=e.shake,s=e.flash,l=e.spin,u=e.spinPulse,c=e.spinReverse,f=e.pulse,d=e.fixedWidth,p=e.inverse,h=e.border,m=e.listItem,g=e.flip,y=e.size,v=e.rotation,b=e.pull,w=(fa(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":o,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":c,"fa-spin-pulse":u,"fa-pulse":f,"fa-fw":d,"fa-inverse":p,"fa-border":h,"fa-li":m,"fa-flip":!0===g,"fa-flip-horizontal":"horizontal"===g||"both"===g,"fa-flip-vertical":"vertical"===g||"both"===g},"fa-".concat(y),null!=y),fa(t,"fa-rotate-".concat(v),null!=v&&0!==v),fa(t,"fa-pull-".concat(b),null!=b),fa(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(w).map((function(e){return w[e]?e:null})).filter((function(e){return e}))}(e)),pa(a.split(" ")))),f=ba("transform","string"==typeof e.transform?ra.transform(e.transform):e.transform),d=ba("mask",va(r)),p=ia(u,ua(ua(ua(ua({},c),f),d),{},{symbol:i,title:o,titleId:s,maskId:l}));if(!p)return function(){var e;!ya&&sa&&"function"==typeof sa.error&&(e=sa).error.apply(e,arguments)}("Could not find icon",u),null;var h=p.abstract,m={ref:t};return Object.keys(e).forEach((function(t){wa.defaultProps.hasOwnProperty(t)||(m[t]=e[t])})),xa(h[0],m)}));wa.displayName="FontAwesomeIcon",wa.propTypes={beat:oa().bool,border:oa().bool,beatFade:oa().bool,bounce:oa().bool,className:oa().string,fade:oa().bool,flash:oa().bool,mask:oa().oneOfType([oa().object,oa().array,oa().string]),maskId:oa().string,fixedWidth:oa().bool,inverse:oa().bool,flip:oa().oneOf([!0,!1,"horizontal","vertical","both"]),icon:oa().oneOfType([oa().object,oa().array,oa().string]),listItem:oa().bool,pull:oa().oneOf(["right","left"]),pulse:oa().bool,rotation:oa().oneOf([0,90,180,270]),shake:oa().bool,size:oa().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:oa().bool,spinPulse:oa().bool,spinReverse:oa().bool,symbol:oa().oneOfType([oa().bool,oa().string]),title:oa().string,titleId:oa().string,transform:oa().oneOfType([oa().string,oa().object]),swapOpacity:oa().bool},wa.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var xa=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var i=(n.children||[]).map((function(n){return e(t,n)})),a=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=r.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),i=ma(t.slice(0,r)),a=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=a:e[i]=a,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[ma(t)]=r}return e}),{attrs:{}}),o=r.style,s=void 0===o?{}:o,l=da(r,ga);return a.attrs.style=ua(ua({},a.attrs.style),s),t.apply(void 0,[n.tag,ua(ua({},a.attrs),l)].concat(pa(i)))}.bind(null,e.createElement);function _a(t){const{state:n}=(0,e.useContext)(m),[r,i]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{if(r){let e=setTimeout((()=>{i(!1)}),2500);return()=>{clearTimeout(e)}}}),[r]),(0,d.jsxs)("button",{onClick:async()=>{var e;t.eventName&&pxt.tickEvent(t.eventName),null!==(e=n.gameState)&&void 0!==e&&e.joinCode&&(navigator.clipboard.writeText(t.copyValue),i(!0),t.toastMessage&&h(_({type:"success",text:t.toastMessage,icon:"✅",timeoutMs:5e3})))},title:t.title,className:"tw-flex tw-items-center tw-align-middle",children:[t.label&&(0,d.jsx)("span",{className:"tw-mr-1 hover:tw-opacity-80",children:t.label}),!r&&(0,d.jsx)(wa,{icon:Zt,className:"tw-text-[65%] hover:tw-scale-110 tw-ease-linear tw-duration-[50ms]"}),r&&(0,d.jsx)(wa,{icon:Kt,className:"tw-text-[65%] tw-text-green-600"})]})}function Ea(t){const{particle:n}=t,{index:r}=n,{state:i}=(0,e.useContext)(m),{gameState:a}=i,o=null==a?void 0:a.reactionIconOverrides,s=wt[r].emoji,l=(0,e.useMemo)((()=>{const e=1.25+1.25*Math.random(),t=3*e+10*Math.random();return{flyUpDuration:e,rotationDuration:3+.5*Math.random(),rotationAnim:Math.random()>.5?"reaction-rotate-left":"reaction-rotate-right",horzAnim:Math.random()>.5?"reaction-fly-left":"reaction-fly-right",flyHorzDuration:t}}),[]),u=null==o?void 0:o[r+1],c=u?(0,d.jsx)("img",{className:"pixel-art-image tw-w-[100%]",src:u,alt:lf("Game reaction image {0}",r+1)}):s;return(0,d.jsx)("div",{className:"tw-absolute tw-select-none tw-pointer-events-none tw-z-[100]",style:{animation:"reaction-fly-up linear ".concat(l.flyUpDuration,"s forwards,\n ").concat(l.horzAnim," linear ").concat(l.flyHorzDuration,"s forwards"),width:u?"1.5rem":void 0,height:u?"1.5rem":void 0},children:(0,d.jsx)("div",{className:"tw-select-none tw-pointer-events-none",style:{animation:"".concat(l.rotationAnim," ease-in-out ").concat(l.rotationDuration,"s infinite")},children:c})})}function ka(t){const{state:n}=(0,e.useContext)(m),{clientId:r}=t,i=n.reactions[r],[a,o]=(0,e.useState)([]);return(0,e.useEffect)((()=>{if(i&&!a.find((e=>e.id===i.id))){const e={id:i.id,index:i.index,startTime:Date.now()};o((t=>[...t,e]))}}),[i,a,o]),(0,e.useEffect)((()=>{const e=setInterval((()=>{const e=Date.now();o(a.filter((t=>e-t.startTime<5e3)))}),1e3);return()=>clearInterval(e)}),[a,o]),(0,d.jsx)("div",{className:"tw-absolute tw-pointer-events-none",style:{transform:"translateY(-20px)"},children:(0,d.jsx)("div",{className:"tw-flex tw-flex-row tw-justify-center",children:a.map((e=>(0,d.jsx)(Ea,{particle:e},e.id)))})})}function Sa(e){const{slot:t,dataUri:n}=e;return n?(0,d.jsx)("img",{className:"pixel-art-image tw-w-[65%]",style:{filter:0===t?"grayscale(1)":void 0},src:n,alt:lf("User set icon for player {0}",t)}):(0,d.jsx)("svg",{width:"25",height:"29",viewBox:"0 0 25 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{style:{fill:"rgb(var(--slot-".concat(t,"-color))")},d:"M12.7544 14.686C16.6204 14.686 19.7544 11.552 19.7544 7.68602C19.7544 3.82003 16.6204 0.686035 12.7544 0.686035C8.8884 0.686035 5.75439 3.82003 5.75439 7.68602C5.75439 11.552 8.8884 14.686 12.7544 14.686ZM4.25439 16.686C2.32136 16.686 0.754339 18.2531 0.754395 20.1861L0.754409 20.6861C0.754421 23.0795 2.27704 25.1034 4.43931 26.4794C6.61345 27.863 9.55594 28.686 12.7543 28.686C15.9527 28.686 18.8952 27.863 21.0694 26.4795C23.2317 25.1034 24.7544 23.0795 24.7544 20.6861V20.186C24.7544 18.253 23.1874 16.686 21.2544 16.686H4.25439Z"})})}function Aa(t){const{children:n,visible:r,className:i,ignoreRefs:a,onClickedOutside:o}=t,s=(0,e.useRef)(null),l=(0,e.useCallback)((e=>{s.current=e}),[]);return function(t,n){(0,e.useEffect)((()=>{const e=e=>{for(const n of t){const t=null==n?void 0:n.current;if(t&&t.contains(e.target))return}null==n||n()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[...t])}([s,...a||[]],(()=>o())),r?(0,d.jsx)("div",{ref:l,className:i,children:n}):null}function Ca(e){const{children:t,visible:n,ignoreRefs:r,onClickedOutside:i}=e;return(0,d.jsx)(Aa,{className:"tw-absolute tw-z-50 tw-translate-y-[-110%] tw-translate-x-[-50%] tw-rounded-lg tw-border-2 tw-border-gray-100",visible:n,ignoreRefs:r,onClickedOutside:i,children:(0,d.jsx)("div",{className:"tw-flex tw-flex-row tw-gap-1 tw-p-2 tw-bg-white tw-drop-shadow-xl tw-rounded-md",children:t})})}function Oa(t){const{state:n,dispatch:r}=(0,e.useContext)(m),{presence:i,clientRole:a,playerSlot:o,gameState:s}=n,l=null==s?void 0:s.presenceIconOverrides,{slot:u}=t,[c,f]=(0,e.useState)(!1),p=(0,e.useRef)(null),h=(0,e.useCallback)((e=>{p.current=e}),[]),g=(0,e.useMemo)((()=>(null==i?void 0:i.users)&&i.users.filter((e=>e.slot<5))),[i]),y=async()=>{pxt.tickEvent("mp.leavegame",{role:a}),f(!1),r(k("leave-game"))},v=g.find((e=>e.slot===u)),b=(()=>{const e="host"===a,t=1===u,n=u===o,i=g.filter((e=>e.slot===u)).shift();return e&&n?(0,d.jsx)(Ca,{visible:c,ignoreRefs:[p],onClickedOutside:()=>f(!1),children:(0,d.jsx)(L,{className:"tw-m-0 tw-py-2 tw-bg-red-600 tw-text-white",label:lf("End the game"),title:lf("End the game"),onClick:()=>y()})}):e&&!t&&i?(0,d.jsx)(Ca,{visible:c,ignoreRefs:[p],onClickedOutside:()=>f(!1),children:(0,d.jsx)(L,{className:"tw-m-0 tw-py-2 tw-bg-red-600 tw-text-white",label:lf("Remove from game"),title:lf("Remove from game"),onClick:()=>(e=>{pxt.tickEvent("mp.kickplayer"),f(!1);const t=g.filter((t=>t.slot===e)).shift();t&&r(k("kick-player",{clientId:t.id}))})(u)})}):!e&&n?(0,d.jsx)(Ca,{visible:c,ignoreRefs:[p],onClickedOutside:()=>f(!1),children:(0,d.jsx)(L,{className:"tw-m-0 tw-py-2 tw-bg-red-600 tw-text-white",label:lf("Leave game"),title:lf("Leave game"),onClick:()=>y()})}):null})(),w=!v,x=u===o,_=null==l?void 0:l[u];return(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"tw-px-[50%]",children:b}),(0,d.jsx)(L,{className:"tw-rounded-full tw-m-0 tw-p-0",hardDisabled:!b,label:(0,d.jsxs)("div",{className:"tw-flex tw-select-none tw-text-black\n tw-font-bold tw-rounded-full tw-h-11 tw-border-2\n tw-w-11 tw-justify-center tw-items-center\n tw-text-slot-".concat(u,"-color"),style:{backgroundColor:"rgba(var(--slot-".concat(w?0:u,"-color),0.1)"),borderColor:"rgb(var(--slot-".concat(w?0:u,"-color))")},children:[(0,d.jsx)(Sa,{slot:w?0:u,dataUri:_}),v&&(0,d.jsx)(ka,{clientId:v.id}),x&&(0,d.jsx)("div",{className:"tw-absolute tw-translate-y-[110%]",children:(0,d.jsx)("div",{className:"tw-z-10 tw-border tw-rounded-xl tw-text-xs tw-px-2 tw-font-medium tw-uppercase",style:{backgroundColor:"rgb(var(--you-tag-bg-color))",borderColor:"rgb(var(--you-tag-border-color))"},children:lf("you")})})]}),title:w?lf("Player {0} (empty)",u):lf("Player {0}",u),onClick:()=>f(!c),buttonRef:h})]})}function Ta(){return(0,d.jsx)("div",{className:"tw-flex tw-flex-row tw-items-center tw-justify-center tw-gap-2 tw-border-l-2 tw-pl-2 tw-border-slot-0-color",children:[1,2,3,4].map((e=>(0,d.jsx)(Oa,{slot:e},e)))})}function Na(e){return(0,d.jsx)("svg",{className:e.className,width:"29",height:"29",viewBox:"0 0 29 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{style:{fill:"rgb(var(--reaction-color))"},d:"M10.3491 13.686C11.4537 13.686 12.3491 12.7906 12.3491 11.686C12.3491 10.5815 11.4537 9.68604 10.3491 9.68604C9.24455 9.68604 8.34912 10.5815 8.34912 11.686C8.34912 12.7906 9.24455 13.686 10.3491 13.686ZM20.3491 11.686C20.3491 12.7906 19.4537 13.686 18.3491 13.686C17.2446 13.686 16.3491 12.7906 16.3491 11.686C16.3491 10.5815 17.2446 9.68604 18.3491 9.68604C19.4537 9.68604 20.3491 10.5815 20.3491 11.686ZM7.90212 17.7916C8.39359 17.5459 8.99068 17.7428 9.23997 18.2313L9.24349 18.2378C9.24901 18.2478 9.26019 18.2677 9.27736 18.296C9.31176 18.3526 9.36981 18.4425 9.45402 18.5548C9.62278 18.7798 9.8937 19.0909 10.2865 19.4052C11.0595 20.0235 12.3423 20.686 14.3493 20.686C16.3564 20.686 17.6392 20.0235 18.4121 19.4052C18.805 19.0909 19.0759 18.7798 19.2446 18.5548C19.3289 18.4425 19.3869 18.3526 19.4213 18.296C19.4385 18.2677 19.4497 18.2478 19.4552 18.2378L19.4587 18.2313C19.708 17.7428 20.3051 17.5459 20.7965 17.7916C21.2905 18.0386 21.4908 18.6393 21.2438 19.1333L21.2432 19.1343L21.2426 19.1355L21.2414 19.138L21.2384 19.1439L21.2306 19.1589C21.2246 19.1704 21.2169 19.1847 21.2076 19.2017C21.1889 19.2356 21.1635 19.2802 21.1309 19.3339C21.0657 19.4413 20.9714 19.5858 20.8446 19.7548C20.5915 20.0923 20.2062 20.5312 19.6615 20.9669C18.5595 21.8485 16.8423 22.686 14.3493 22.686C11.8564 22.686 10.1392 21.8485 9.03714 20.9669C8.49247 20.5312 8.10714 20.0923 7.85402 19.7548C7.72729 19.5858 7.633 19.4413 7.56779 19.3339C7.53515 19.2802 7.50972 19.2356 7.49106 19.2017C7.48173 19.1847 7.47409 19.1704 7.46808 19.1589L7.46029 19.1439L7.4573 19.138L7.45603 19.1355L7.45545 19.1343L7.45491 19.1333C7.20793 18.6393 7.40814 18.0386 7.90212 17.7916ZM14.3491 0.686035C6.61713 0.686035 0.349121 6.95405 0.349121 14.686C0.349121 22.418 6.61713 28.686 14.3491 28.686C22.0811 28.686 28.3491 22.418 28.3491 14.686C28.3491 6.95405 22.0811 0.686035 14.3491 0.686035ZM2.34912 14.686C2.34912 8.05862 7.7217 2.68604 14.3491 2.68604C20.9765 2.68604 26.3491 8.05862 26.3491 14.686C26.3491 21.3135 20.9765 26.686 14.3491 26.686C7.7217 26.686 2.34912 21.3135 2.34912 14.686Z"})})}function Ra(){const{state:t}=(0,e.useContext)(m),[n,r]=(0,e.useState)(!1),i=(0,e.useRef)(null),a=(0,e.useCallback)((e=>{i.current=e}),[]),{gameState:o}=t,s=null==o?void 0:o.reactionIconOverrides;(0,e.useEffect)((()=>{const e=e=>{if("messagepacket"===e.data.type&&e.data.channel){var t;const n=null===(t=/keydown-(\d)/i.exec(e.data.channel))||void 0===t?void 0:t[1];if(!n)return;const r=parseInt(n)-1;wt[r]&&_t(r)}},t=e=>{const t=parseInt(e.key)-1;wt[t]&&_t(t)};return window.addEventListener("message",e),window.addEventListener("keydown",t),()=>{window.removeEventListener("message",e),window.removeEventListener("keydown",t)}}));const l=pxt.BrowserUtils.isMobile()||pxt.BrowserUtils.isIOS();return(0,d.jsxs)("div",{children:[(0,d.jsx)(Aa,{className:"tw-absolute tw-translate-y-[-120%]",visible:n,ignoreRefs:[i],onClickedOutside:()=>r(!1),children:(0,d.jsx)("div",{className:"tw-flex tw-flex-col tw-bg-white tw-drop-shadow-xl tw-rounded-md tw-border-2 tw-border-gray-100",children:(0,d.jsx)("div",{className:"tw-flex tw-flex-row tw-gap-3 tw-p-2 tw-pb-3 tw-pr-3",children:wt.map(((e,t)=>{const n=null==s?void 0:s[t+1],r=n?(0,d.jsx)("img",{className:"pixel-art-image tw-w-6",src:n,alt:lf("Game reaction image {0}",t+1)}):e.emoji;return(0,d.jsx)(L,{className:"tw-flex tw-items-center tw-justify-center tw-m-0 tw-p-0 tw-cursor-pointer tw-select-none tw-scale-110 hover:tw-scale-125 tw-ease-linear tw-duration-[50ms] tw-h-8 tw-w-8 tw-text-2xl",label:(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{children:r}),!l&&(0,d.jsx)("div",{className:"tw-text-xs tw-absolute tw-bottom-[-5px] tw-right-[-5px] tw-text-white tw-bg-gray-400 tw-rounded-sm tw-border-[1px] tw-border-solid tw-border-gray-500 tw-drop-shadow-lg tw-px-1 tw-leading-tight",children:t+1})]}),title:e.name,onClick:()=>(async e=>{await _t(e)})(t)},t+1)}))})})}),(0,d.jsx)(L,{label:(0,d.jsx)(Na,{className:"hover:tw-scale-125 tw-ease-linear tw-duration-[50ms]"}),title:lf("Reactions"),className:"tw-flex tw-items-center tw-justify-center\n tw-select-none tw-border-2 tw-reaction-color\n tw-rounded-full tw-h-11 tw-w-11 tw-text-2xl !tw-m-0 !tw-p-0",style:{backgroundColor:"rgba(var(--reaction-color),0.1)"},onClick:()=>{const e=!n;e&&pxt.tickEvent("mp.reactions.open"),r(e)},buttonRef:e=>{a(e)}})]})}function Pa(){return(0,d.jsxs)("div",{className:"tw-flex tw-flex-row tw-space-x-2 tw-items-center tw-align-middle tw-justify-center",children:[(0,d.jsx)(Ra,{}),(0,d.jsx)(Ta,{})]})}function ja(){var t;const{state:n,dispatch:r}=(0,e.useContext)(m),i=null===(t=n.gameState)||void 0===t?void 0:t.joinCode;if(!i)return null;const a=lf("Have your friend go to {0} and enter code","{0}").split("{0}"),o=pxt.multiplayer.SHORT_LINK(),s=(null==i?void 0:i.slice(0,3))+" "+(null==i?void 0:i.slice(3)),l=pxt.multiplayer.makeJoinLink(i,!0);return(0,d.jsx)("div",{className:"tw-bg-white tw-shadow-lg tw-rounded-lg tw-m-1 tw-min-w-[17rem]",children:(0,d.jsxs)("div",{className:"tw-flex tw-flex-col tw-gap-1 tw-items-center tw-justify-between tw-py-[3rem] tw-px-3 sm:tw-px-14 md:tw-px-[7rem]",children:[(0,d.jsxs)("div",{className:"tw-mt-3 tw-text-lg tw-text-center tw-text-neutral-700",children:[a[0],(0,d.jsx)(D,{href:o,target:"_blank",className:"tw-text-primary-color tw-font-bold hover:tw-text-orange-300",children:o}),a[1]]}),(0,d.jsx)("div",{className:"tw-text-4xl tw-mt-4 tw-flex tw-flex-row tw-items-center tw-ml-2",children:(0,d.jsx)(_a,{copyValue:l,title:lf("Copy join link"),eventName:"mp.hostlobby.copyjoinlink",label:(0,d.jsx)("span",{className:"tw-font-bold tw-text-neutral-700 tw-mr-1 tw-whitespace-nowrap",children:s}),toastMessage:lf("Join link copied")})}),(0,d.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-mt-5 tw-text-sm tw-gap-1 tw-max-h-24 md:tw-max-h-36",children:[(0,d.jsx)(Gt,{value:l}),(0,d.jsx)("div",{className:"tw-hidden md:tw-block",children:lf("or scan with phone")})]}),(0,d.jsx)(L,{className:"primary tw-mt-5 tw-font-sans tw-mr-0",label:lf("Start Game"),title:lf("Start Game"),onClick:async()=>{pxt.tickEvent("mp.hostlobby.startgame"),r({type:"CLEAR_MODAL"}),await async function(){try{await async function(){var e;await(null===(e=ft)||void 0===e?void 0:e.startGameAsync())}()}catch(e){}}()}}),(0,d.jsx)(D,{href:"/multiplayer#safety",target:"_blank",className:"tw-text-sm tw-mt-1 tw-mb-7",children:lf("Multiplayer Online Safety")}),(0,d.jsx)(Pa,{})]})})}function Ia(){var t;const{state:n}=(0,e.useContext)(m),r=null===(t=n.gameState)||void 0===t?void 0:t.joinCode,i=r?pxt.multiplayer.makeJoinLink(r,!0):"";return(0,d.jsx)("div",{children:r&&(0,d.jsxs)("div",{className:"tw-flex tw-flex-row tw-items-center tw-align-middle",children:[(0,d.jsx)("div",{className:"tw-font-bold tw-mr-1",children:lf("Code:")}),(0,d.jsx)(_a,{copyValue:i,title:lf("Copy join link"),eventName:"mp.copyjoinlink",label:r,toastMessage:lf("Join link copied")})]})})}function La(){return(0,d.jsx)("div",{className:"tw-bg-white tw-shadow-lg tw-rounded-lg tw-m-1",children:(0,d.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-py-[2rem] tw-px-[1.5rem] sm:tw-px-[3.5rem] md:tw-px-[6rem]",children:[(0,d.jsx)("div",{className:"tw-font-bold tw-text-2xl tw-text-neutral-800",children:lf("Waiting for players")}),(0,d.jsx)("div",{className:"tw-mt-3 tw-text-center tw-text-neutral-700",children:lf("Your host will start the game soon!")}),(0,d.jsx)("div",{className:"tw-mt-5",children:(0,d.jsx)(Pa,{})})]})})}function Ma(){const e={[lf("up")]:["↑","W"],[lf("down")]:["↓","S"],[lf("left")]:["←","A"],[lf("right")]:["→","D"],a:["Z",lf("{id:keyboard symbol}space")],b:["X",lf("{id:keyboard symbol}enter")]};return(0,d.jsxs)("div",{className:"tw-bg-neutral-50 tw-p-3 tw-border-2 tw-border-neutral-500 tw-border-solid tw-rounded-md tw-drop-shadow-xl",children:[(0,d.jsx)("div",{className:"tw-text-lg tw-mb-2 tw-font-bold",children:lf("Keyboard Controls")}),Object.keys(e).map(((t,n)=>(0,d.jsxs)("div",{className:"keymap-row",children:[e[t].map(((e,t)=>(0,d.jsx)("div",{className:"keymap-key tw-align-middle tw-min-w-[2.5rem] tw-text-center tw-pb-[2.1rem]",children:e},t))),(0,d.jsx)("span",{className:"keymap-name tw-font-semibold",children:t})]},n))),(0,d.jsxs)("div",{className:"keymap-row tw-flex tw-flex-row tw-items-center",children:[(0,d.jsx)("div",{className:"keymap-key tw-align-middle tw-min-w-[2.5rem] tw-text-center tw-pb-[2.1rem]",children:"1 - 6"}),(0,d.jsx)("span",{className:"keymap-name tw-font-semibold tw-text-center",children:(0,d.jsx)(Na,{})})]})]})}function Ba(){const[t,n]=(0,e.useState)(!1),r=(0,e.useRef)(null),i=(0,e.useCallback)((e=>{r.current=e}),[]);return(0,d.jsxs)("div",{children:[(0,d.jsx)(Aa,{className:"tw-absolute tw-translate-y-[-105%]",visible:t,ignoreRefs:[r],onClickedOutside:()=>n(!1),children:(0,d.jsx)(Ma,{})}),(0,d.jsx)(L,{title:lf("Keyboard Controls"),label:lf("Keyboard Controls"),leftIcon:"fas fa-keyboard",buttonRef:i,onClick:()=>{pxt.tickEvent("mp.keyboardcontrols"),n(!t)},className:"tw-border-2 tw-border-slate-400 tw-border-solid tw-p-2 tw-bg-slate-100 hover:tw-bg-slate-200 active:tw-bg-slate-300 tw-ease-linear tw-duration-[50ms] tw-pr-1 sm:tw-pr-3"})]})}function Da(){var t;const{state:n}=(0,e.useContext)(m),r=null===(t=n.gameState)||void 0===t?void 0:t.gameId,i=r?"".concat(pxt.webConfig.relprefix.replace(/-+$/,""),"#pub:").concat(r):void 0;return i?(0,d.jsx)(L,{leftIcon:"fas fa-bolt",title:lf("Edit Game"),label:(0,d.jsx)("div",{className:"tw-hidden sm:tw-inline tw-m-0 tw-p-0",children:lf("Edit Game")}),onClick:function(){i&&(pxt.tickEvent("mp.editgame"),window.open(i))},className:"tw-border-2 tw-border-slate-400 tw-border-solid tw-p-2 tw-bg-slate-100 hover:tw-bg-slate-200 active:tw-bg-slate-300 tw-ease-linear tw-duration-[50ms] tw-pr-1 sm:tw-pr-3"}):null}function Ua(){const{state:t}=(0,e.useContext)(m);return(0,e.useEffect)((()=>{var e;null===(e=rt())||void 0===e||e.mute(t.muted)}),[t.muted]),(0,d.jsx)(L,{leftIcon:t.muted?"fas fa-volume-mute":"fas fa-volume-up",title:lf("Toggle Mute"),className:"tw-border-2 tw-border-slate-400 tw-border-solid tw-py-2 tw-pl-2 tw-pr-1 tw-bg-slate-100 hover:tw-bg-slate-200 active:tw-bg-slate-300 tw-ease-linear tw-duration-[50ms]",onClick:()=>{h((e=>({type:"SET_MUTE",value:e}))(!t.muted))}})}function Fa(t){var n,r;const{state:i}=(0,e.useContext)(m),{netMode:a,clientRole:o}=i;return(0,d.jsxs)(d.Fragment,{children:["connecting"===a&&(0,d.jsx)(d.Fragment,{}),"lobby"===(null===(n=i.gameState)||void 0===n?void 0:n.gameMode)&&(0,d.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-justify-center tw-w-full tw-h-full",children:["host"===o&&(0,d.jsx)(ja,{}),"guest"===o&&(0,d.jsx)(La,{})]}),(0,d.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-grow tw-pb-4",style:"playing"!==(null===(r=i.gameState)||void 0===r?void 0:r.gameMode)?{display:"none"}:void 0,children:[(0,d.jsx)(Pt,{}),(0,d.jsxs)("div",{className:"tw-flex tw-flex-row tw-w-full tw-items-center tw-justify-between tw-mt-1 tw-ml-1",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(Ua,{}),(0,d.jsx)("div",{className:"tw-hidden sm:tw-inline-block",children:(0,d.jsx)(Da,{})})]}),(0,d.jsx)("div",{className:"tw-mr-1 sm:tw-mr-0",children:(0,d.jsx)(Ia,{})}),(0,d.jsx)("div",{className:"tw-hidden sm:tw-inline",children:(0,d.jsx)(Ba,{})}),(0,d.jsx)("div",{className:"tw-inline-block sm:tw-hidden",children:(0,d.jsx)(Da,{})})]}),(0,d.jsx)("div",{className:"tw-mt-3",children:(0,d.jsx)(Pa,{})})]})]})}function za(){const{state:t}=(0,e.useContext)(m),{netMode:n}=t;return(0,d.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-center tw-gap-1 tw-grow tw-justify-around",children:["init"===n&&(0,d.jsx)(Nt,{}),"init"!==n&&(0,d.jsx)(Fa,{})]})}const Va=e=>(0,d.jsx)(M,{...e,role:"menubar",className:P("common-menubar",e.className)}),Ha=t=>{const{children:n,id:r,className:i,onEscape:a,arrowKeyNavigation:o,dontStealFocus:s,includeOutsideTabOrder:l,dontRestoreFocus:u}=t;let c;const f=e.useRef(document.activeElement),[p,h]=e.useState(!1);e.useEffect((()=>()=>{!u&&f.current&&function(e){for(;e&&(!(t=e)||"true"!==t.getAttribute("data-isfocusable")&&-1===t.tabIndex||"none"===getComputedStyle(t).display);){const t=e.parentElement;if(!t)break;e=t}var t;e.focus()}(f.current)}),[]);const m=()=>function(e){const t=[];for(const n of e)t.push(n);return t}(l?c.querySelectorAll("[tabindex]"):c.querySelectorAll('[tabindex]:not([tabindex="-1"])'));return(0,d.jsx)("div",{id:r,className:P("common-focus-trap",i),ref:e=>{e&&(c=e,s||p||e.contains(document.activeElement)||!m().length||(c.focus(),h(!0)))},onKeyDown:e=>{if(!c)return;const t=(t,n)=>{const r=m();if(!r.length)return;const i=r.indexOf(e.target);t?n?I(r,i,r.length-1,t).focus():i===r.length-1?I(r,i,0,t).focus():I(r,i,i+1,t).focus():n?I(r,i,0,t).focus():0===i?I(r,i,r.length-1,t).focus():I(r,i,Math.max(i-1,0),t).focus(),e.preventDefault(),e.stopPropagation()};"Escape"===e.key?(a(),e.preventDefault(),e.stopPropagation()):"Tab"===e.key?e.shiftKey?t(!1,!1):t(!0,!1):o&&("ArrowDown"===e.key?t(!0,!1):"ArrowUp"===e.key?t(!1,!1):"Home"===e.key?t(!1,!0):"End"===e.key&&t(!0,!0))},tabIndex:-1,children:n})},Wa=t=>{const{id:n,className:r,ariaHidden:i,ariaLabel:a,role:o,items:s,label:l,title:u,icon:c,tabIndex:f,disabled:p}=t,[h,m]=e.useState(!1);let g,y;const v=P("common-menu-dropdown",r),b=n+"-menu";return(0,d.jsxs)("div",{className:v,ref:e=>{e&&(g=e)},onBlur:e=>{g&&h&&!g.contains(e.relatedTarget)&&m(!1)},children:[(0,d.jsx)(L,{id:n,label:l,tabIndex:f,buttonRef:e=>{e&&(y=e)},title:u,leftIcon:c,role:o||"menuitem",className:P("menu-button",h&&"expanded"),onClick:()=>{m(!h)},ariaHasPopup:"true",ariaExpanded:h,ariaControls:h?b:void 0,ariaLabel:a,ariaHidden:i,disabled:p}),h&&(0,d.jsx)("div",{role:"menu",className:"common-menu-dropdown-pane",tabIndex:0,id:b,"aria-labelledby":n,children:(0,d.jsx)(Ha,{arrowKeyNavigation:!0,onEscape:()=>{m(!1),y&&y.focus()},children:(0,d.jsx)("ul",{role:"presentation",children:s.map(((e,t)=>(0,d.jsx)("li",{role:"presentation",children:(0,d.jsx)(L,{...e,className:P("common-menu-dropdown-item",e.className),onClick:()=>{m(!1),e.onClick()},role:"menuitem",ariaPosInSet:t+1,ariaSetSize:s.length})},t)))})})})]})};function qa(){var t,n,r,i,a,o,s;const{state:l,dispatch:u}=(0,e.useContext)(m),{authStatus:c,profile:f,gameState:p,targetConfig:h}=l,{gameId:g}=null!=p?p:{},y=pxt.auth.hasIdentity(),v=null===(t=pxt.appTarget)||void 0===t?void 0:t.appTheme,b=null===(n=pxt)||void 0===n||null===(r=n.appTarget)||void 0===r||null===(i=r.appTheme)||void 0===i?void 0:i.privacyUrl,w=null===(a=pxt)||void 0===a||null===(o=a.appTarget)||void 0===o||null===(s=o.appTheme)||void 0===s?void 0:s.termsOfUseUrl,x=T(),_=()=>{pxt.tickEvent("mp.settingsmenu.reportabuse"),u(k("report-abuse"))},E=()=>{pxt.tickEvent("mp.settingsmenu.privacy"),window.open(b)},S=()=>{pxt.tickEvent("mp.settingsmenu.termsofuse"),window.open(w)},A=()=>{pxt.tickEvent("mp.settingsmenu.onlinesafety"),window.open("/multiplayer#safety")},C=()=>{var e;pxt.tickEvent("mp.home");let t=null===(e=pxt.webConfig)||void 0===e?void 0:e.relprefix.substr(0,pxt.webConfig.relprefix.length-3);var n,r;pxt.appTarget.appTheme.homeUrl&&t?((null===(n=pxt.appTarget.appTheme.homeUrl)||void 0===n?void 0:n.lastIndexOf("/"))===(null===(r=pxt.appTarget.appTheme.homeUrl)||void 0===r?void 0:r.length)-1&&(t=t.substr(1)),window.open(pxt.appTarget.appTheme.homeUrl+t,"_self")):window.open(pxt.appTarget.appTheme.homeUrl,"_self")},O=()=>{pxt.tickEvent("mp.signin"),u(k("sign-in",{dialogMessages:x}))},N=async()=>{pxt.tickEvent("mp.usermenu.signout"),await async function(){try{pt(),await async function(e){const t=await Me();return await(null==t?void 0:t.logoutAsync(void 0))}()}catch(e){}}()},R=()=>{var e,t,n,r;return null!==(e=null==f||null===(t=f.idp)||void 0===t?void 0:t.pictureUrl)&&void 0!==e?e:null==f||null===(n=f.idp)||void 0===n||null===(r=n.picture)||void 0===r?void 0:r.dataUrl},P=(()=>{var e;const t=[];b&&t.push({id:"privacy",title:lf("Privacy"),label:lf("Privacy"),onClick:E}),w&&t.push({id:"termsOfUse",title:lf("Terms of Use"),label:lf("Terms of Use"),onClick:S}),t.push({id:"safety",title:lf("Online Safety"),label:lf("Online Safety"),onClick:A});const n=(null==h||null===(e=h.shareLinks)||void 0===e?void 0:e.approved)||[];return g&&n.indexOf(g)<0&&t.push({id:"report",title:lf("Report Abuse"),label:lf("Report Abuse"),onClick:_}),t})();return(0,d.jsxs)(Va,{className:"tw-h-[var(--header-height)] tw-text-white\n tw-flex tw-flex-grow-0 tw-flex-shrink-0 tw-align-middle tw-justify-center\n tw-items-center tw-z-[50] tw-text-[2.2rem]\n tw-drop-shadow-xl\n ",ariaLabel:lf("Header"),children:[(0,d.jsxs)("div",{className:"tw-select-none tw-text-lg tw-font-bold tw-flex tw-align-middle tw-p-[var(--header-padding-top)] tw-flex-none",children:[(e=>{const t=e.organizationWideLogo,n=e.organizationLogo;return(0,d.jsx)("div",{className:"tw-flex",children:t&&n?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("img",{className:"tw-h-6 tw-mx-0 tw-my-1 tw-hidden sm:tw-block",src:qe(t),alt:lf("{0} Logo",e.organization)}),(0,d.jsx)("img",{className:"tw-h-6 tw-mx-0 tw-my-1 tw-object-contain tw-block sm:tw-hidden",src:qe(n),alt:lf("{0} Logo",e.organization)})]}):(0,d.jsx)("span",{className:"tw-h-6 tw-mx-0 tw-my-1",children:e.organization})})})(v),(j=v,(0,d.jsx)("div",{className:"tw-flex tw-pt-[2px] tw-ml-3 tw-cursor-pointer",onClick:C,children:j.useTextLogo?[(0,d.jsx)("span",{className:"tw-ml-3 tw-hidden sm:tw-flex",onClick:C,children:j.organizationText},"org-name"),(0,d.jsx)("span",{className:"tw-ml-3 tw-flex sm:tw-hidden",onClick:C,children:j.organizationShortText||j.organizationText},"org-name-short")]:j.logo||j.portraitLogo?(0,d.jsx)("img",{className:"logo",src:qe(j.logo||j.portraitLogo),alt:lf("{0} Logo",j.boardName)}):(0,d.jsxs)("span",{className:"name",children:[" ",j.boardName]})}))]}),(0,d.jsx)("div",{className:"tw-select-none tw-grow"}),(0,d.jsxs)("div",{className:"tw-select-none tw-text-lg tw-font-bold tw-flex tw-items-center tw-h-full tw-flex-none",children:[(null==P?void 0:P.length)>0&&(0,d.jsx)(Wa,{className:"h-full",id:"settings-help",title:lf("Settings menu"),icon:"fas fa-cog large",items:P}),y&&(()=>{const e=[];"signed-in"===c&&e.push({id:"signout",title:lf("Sign Out"),label:lf("Sign Out"),onClick:N});const t=R()?(0,d.jsx)("div",{className:"tw-flex tw-align-middle tw-justify-center tw-items-center tw-h-full",children:(0,d.jsx)("img",{src:R(),className:"tw-border-solid tw-border-2 tw-border-white tw-rounded-[100%] tw-w-10 tw-h-10",alt:lf("Profile Image"),referrerPolicy:"no-referrer","aria-hidden":"true"})}):void 0,n=(0,d.jsx)("span",{children:(0,d.jsx)("div",{className:"tw-h-10 tw-w-10 tw-rounded-[100%] tw-border-solid tw-border-2 tw-border-white tw-bg-[#028B9B] tw-flex tw-items-center tw-justify-center tw-text-base","aria-hidden":"true",children:f?pxt.auth.userInitials(f):""})});return(0,d.jsxs)("div",{className:"tw-h-full",children:["signed-in"===c&&(0,d.jsx)(Wa,{id:"profile-dropdown",items:e,label:t||n,title:lf("Profile Settings")}),"signed-out"===c&&(0,d.jsx)(L,{className:"tw-p-[0.6rem] tw-h-4/5 tw-m-2 tw-mr-4 tw-flex-row-reverse tw-font-medium tw-align-middle",rightIcon:"xicon cloud-user",title:lf("Sign In"),label:lf("Sign In"),onClick:O})]})})()]})]});var j}var Ga=function(e,t){return(Ga=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function Za(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ga(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ya=function(){return(Ya=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function $a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Ka(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function Xa(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,n(5224);const Qa=1/60*1e3,Ja="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),eo="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(Ja())),Qa);let to=!0,no=!1,ro=!1;const io={delta:0,timestamp:0},ao=["read","update","preRender","render","postRender"],oo=ao.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,a=!1;const o=new WeakSet,s={schedule:function(e){const a=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&i,s=a?t:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&o.add(e),-1===s.indexOf(e)&&(s.push(e),a&&i&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),o.delete(e)},process:e=>{if(i)a=!0;else{if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(e),o.has(r)&&(s.schedule(r),no=!0)}i=!1,a&&(a=!1,s.process(e))}}};return s}(),e)),{}),so=ao.reduce(((e,t)=>{const n=oo[t];return e[t]=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return no||po(),n.schedule(e,t,r)},e}),{}),lo=ao.reduce(((e,t)=>(e[t]=oo[t].cancel,e)),{}),uo=ao.reduce(((e,t)=>(e[t]=()=>oo[t].process(io),e)),{}),co=e=>oo[e].process(io),fo=e=>{no=!1,io.delta=to?Qa:Math.max(Math.min(e-io.timestamp,40),1),io.timestamp=e,ro=!0,ao.forEach(co),ro=!1,no&&(to=!1,eo(fo))},po=()=>{no=!0,to=!0,ro||eo(fo)},ho=()=>io,mo=so;var go="undefined"!=typeof document,yo=go?e.useLayoutEffect:e.useEffect;function vo(){var t=(0,e.useRef)(!1);return yo((function(){return t.current=!0,function(){t.current=!1}}),[]),t}var bo=(0,e.createContext)(null);function wo(t){var n=(0,e.useRef)(null);return null===n.current&&(n.current=t()),n.current}var xo=0,_o=function(){return xo++},Eo=function(){return wo(_o)},ko=function(t){var n=t.children,r=t.initial,i=t.isPresent,a=t.onExitComplete,o=t.custom,s=t.presenceAffectsLayout,l=wo(So),u=Eo(),c=(0,e.useMemo)((function(){return{id:u,initial:r,isPresent:i,custom:o,onExitComplete:function(e){var t,n;l.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(l.values()),i=r.next();!i.done;i=r.next())if(!i.value)return}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return l.set(e,!1),function(){return l.delete(e)}}}}),s?void 0:[i]);return(0,e.useMemo)((function(){l.forEach((function(e,t){return l.set(t,!1)}))}),[i]),e.useEffect((function(){!i&&!l.size&&(null==a||a())}),[i]),e.createElement(bo.Provider,{value:c},n)};function So(){return new Map}var Ao=(0,e.createContext)({});function Co(t){return(0,e.useEffect)((function(){return function(){return t()}}),[])}n(3705);var Oo=function(e){return e.key||""},To=function(t){var n=t.children,r=t.custom,i=t.initial,a=void 0===i||i,o=t.onExitComplete,s=t.exitBeforeEnter,l=t.presenceAffectsLayout,u=void 0===l||l,c=Ka(function(){var t=vo(),n=Ka((0,e.useState)(0),2),r=n[0],i=n[1],a=(0,e.useCallback)((function(){t.current&&i(r+1)}),[r]);return[(0,e.useCallback)((function(){return mo.postRender(a)}),[a]),r]}(),1)[0],f=(0,e.useContext)(Ao).forceRender;f&&(c=f);var d=vo(),p=function(t){var n=[];return e.Children.forEach(t,(function(t){(0,e.isValidElement)(t)&&n.push(t)})),n}(n),h=p,m=new Set,g=(0,e.useRef)(h),y=(0,e.useRef)(new Map).current,v=(0,e.useRef)(!0);if(yo((function(){v.current=!1,function(e,t){e.forEach((function(e){var n=Oo(e);t.set(n,e)}))}(p,y),g.current=h})),Co((function(){v.current=!0,y.clear(),m.clear()})),v.current)return e.createElement(e.Fragment,null,h.map((function(t){return e.createElement(ko,{key:Oo(t),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:u},t)})));h=Xa([],Ka(h),!1);for(var b=g.current.map(Oo),w=p.map(Oo),x=b.length,_=0;_<x;_++){var E=b[_];-1===w.indexOf(E)&&m.add(E)}return s&&m.size&&(h=[]),m.forEach((function(t){if(-1===w.indexOf(t)){var n=y.get(t);if(n){var i=b.indexOf(t);h.splice(i,0,e.createElement(ko,{key:Oo(n),isPresent:!1,onExitComplete:function(){y.delete(t),m.delete(t);var e=g.current.findIndex((function(e){return e.key===t}));if(g.current.splice(e,1),!m.size){if(g.current=p,!1===d.current)return;c(),o&&o()}},custom:r,presenceAffectsLayout:u},n))}}})),h=h.map((function(t){var n=t.key;return m.has(n)?t:e.createElement(ko,{key:Oo(t),isPresent:!0,presenceAffectsLayout:u},t)})),e.createElement(e.Fragment,null,m.size?h:h.map((function(t){return(0,e.cloneElement)(t)})))},No=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},Ro={measureLayout:No(["layout","layoutId","drag"]),animation:No(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:No(["exit"]),drag:No(["drag","dragControls"]),focus:No(["whileFocus"]),hover:No(["whileHover","onHoverStart","onHoverEnd"]),tap:No(["whileTap","onTap","onTapStart","onTapCancel"]),pan:No(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:No(["whileInView","onViewportEnter","onViewportLeave"])},Po=(0,e.createContext)({strict:!1}),jo=Object.keys(Ro),Io=jo.length,Lo=(0,e.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Mo=(0,e.createContext)({}),Bo={current:null},Do=!1;function Uo(t,n,r,i){var a=(0,e.useContext)(Po),o=(0,e.useContext)(Mo).visualElement,s=(0,e.useContext)(bo),l=function(){var t=(!Do&&function(){if(Do=!0,go)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Bo.current=e.matches};e.addListener(t),t()}else Bo.current=!1}(),Ka((0,e.useState)(Bo.current),1)[0]),n=(0,e.useContext)(Lo).reducedMotion;return"never"!==n&&("always"===n||t)}(),u=(0,e.useRef)(void 0);i||(i=a.renderer),!u.current&&i&&(u.current=i(t,{visualState:n,parent:o,props:r,presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial),shouldReduceMotion:l}));var c=u.current;return yo((function(){null==c||c.syncRender()})),(0,e.useEffect)((function(){var e;null===(e=null==c?void 0:c.animationState)||void 0===e||e.animateChanges()})),yo((function(){return function(){return null==c?void 0:c.notifyUnmount()}}),[]),c}function Fo(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function zo(e){return Array.isArray(e)}function Vo(e){return"string"==typeof e||zo(e)}function Ho(e,t,n,r,i){var a;return void 0===r&&(r={}),void 0===i&&(i={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),t}function Wo(e,t,n){var r=e.getProps();return Ho(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function qo(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Vo(e.initial)||Vo(e.animate)||Vo(e.whileHover)||Vo(e.whileDrag)||Vo(e.whileTap)||Vo(e.whileFocus)||Vo(e.exit)}function Go(e){return Boolean(qo(e)||e.variants)}function Zo(e){return Array.isArray(e)?e.join(" "):e}var Yo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},$o=1,Ko=(0,e.createContext)({}),Xo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Za(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(e.Component);function Qo(t){var n=t.preloadedFeatures,r=t.createVisualElement,i=t.projectionNodeConstructor,a=t.useRender,o=t.useVisualState,s=t.Component;return n&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?Ro.projectionNodeConstructor=e[t]:Ro[t].Component=e[t])}(n),(0,e.forwardRef)((function(t,n){var l=function(t){var n,r=t.layoutId,i=null===(n=(0,e.useContext)(Ao))||void 0===n?void 0:n.id;return i&&void 0!==r?i+"-"+r:r}(t);t=Ya(Ya({},t),{layoutId:l});var u=(0,e.useContext)(Lo),c=null,f=function(t){var n=function(e,t){if(qo(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Vo(n)?n:void 0,animate:Vo(r)?r:void 0}}return!1!==e.inherit?t:{}}(t,(0,e.useContext)(Mo)),r=n.initial,i=n.animate;return(0,e.useMemo)((function(){return{initial:r,animate:i}}),[Zo(r),Zo(i)])}(t),d=u.isStatic?void 0:wo((function(){if(Yo.hasEverUpdated)return $o++})),p=o(t,u.isStatic);return!u.isStatic&&go&&(f.visualElement=Uo(s,p,Ya(Ya({},u),t),r),function(t,n,r,i){var a,o=n.layoutId,s=n.layout,l=n.drag,u=n.dragConstraints,c=n.layoutScroll,f=(0,e.useContext)(Ko);i&&r&&!(null==r?void 0:r.projection)&&(r.projection=new i(t,r.getLatestValues(),null===(a=r.parent)||void 0===a?void 0:a.projection),r.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:Boolean(l)||u&&Fo(u),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:f,layoutScroll:c}))}(d,t,f.visualElement,i||Ro.projectionNodeConstructor),c=function(t,n,r){var i=[];(0,e.useContext)(Po);if(!n)return null;for(var a=0;a<Io;a++){var o=jo[a],s=Ro[o],l=s.isEnabled,u=s.Component;l(t)&&u&&i.push(e.createElement(u,Ya({key:o},t,{visualElement:n})))}return i}(t,f.visualElement)),e.createElement(Xo,{visualElement:f.visualElement,props:Ya(Ya({},u),t)},c,e.createElement(Mo.Provider,{value:f},a(s,t,d,function(t,n,r){return(0,e.useCallback)((function(e){var i;e&&(null===(i=t.mount)||void 0===i||i.call(t,e)),n&&(e?n.mount(e):n.unmount()),r&&("function"==typeof r?r(e):Fo(r)&&(r.current=e))}),[n])}(p,f.visualElement,n),p,u.isStatic,f.visualElement)))}))}var Jo=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function es(e){return"string"==typeof e&&!e.includes("-")&&!!(Jo.indexOf(e)>-1||/[A-Z]/.test(e))}var ts={},ns=["","X","Y","Z"],rs=["transformPerspective","x","y","z"];function is(e,t){return rs.indexOf(e)-rs.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return ns.forEach((function(t){return rs.push(e+t)}))}));var as=new Set(rs);function os(e){return as.has(e)}var ss=new Set(["originX","originY","originZ"]);function ls(e){return ss.has(e)}function us(e,t){var n=t.layout,r=t.layoutId;return os(e)||ls(e)||(n||void 0!==r)&&(!!ts[e]||"opacity"===e)}var cs=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},fs={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function ds(e){return e.startsWith("--")}var ps=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const hs=(e,t)=>n=>Math.max(Math.min(n,t),e),ms=e=>e%1?Number(e.toFixed(5)):e,gs=/(-)?([\d]*\.?[\d])+/g,ys=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,vs=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function bs(e){return"string"==typeof e}const ws=e=>({test:t=>bs(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>"".concat(t).concat(e)}),xs=ws("deg"),_s=ws("%"),Es=ws("px"),ks=ws("vh"),Ss=ws("vw"),As=Object.assign(Object.assign({},_s),{parse:e=>_s.parse(e)/100,transform:e=>_s.transform(100*e)}),Cs={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Os=Object.assign(Object.assign({},Cs),{transform:hs(0,1)}),Ts=Object.assign(Object.assign({},Cs),{default:1});var Ns=Ya(Ya({},Cs),{transform:Math.round}),Rs={borderWidth:Es,borderTopWidth:Es,borderRightWidth:Es,borderBottomWidth:Es,borderLeftWidth:Es,borderRadius:Es,radius:Es,borderTopLeftRadius:Es,borderTopRightRadius:Es,borderBottomRightRadius:Es,borderBottomLeftRadius:Es,width:Es,maxWidth:Es,height:Es,maxHeight:Es,size:Es,top:Es,right:Es,bottom:Es,left:Es,padding:Es,paddingTop:Es,paddingRight:Es,paddingBottom:Es,paddingLeft:Es,margin:Es,marginTop:Es,marginRight:Es,marginBottom:Es,marginLeft:Es,rotate:xs,rotateX:xs,rotateY:xs,rotateZ:xs,scale:Ts,scaleX:Ts,scaleY:Ts,scaleZ:Ts,skew:xs,skewX:xs,skewY:xs,distance:Es,translateX:Es,translateY:Es,translateZ:Es,x:Es,y:Es,z:Es,perspective:Es,transformPerspective:Es,opacity:Os,originX:As,originY:As,originZ:Es,zIndex:Ns,fillOpacity:Os,strokeOpacity:Os,numOctaves:Ns};function Ps(e,t,n,r){var i,a=e.style,o=e.vars,s=e.transform,l=e.transformKeys,u=e.transformOrigin;l.length=0;var c=!1,f=!1,d=!0;for(var p in t){var h=t[p];if(ds(p))o[p]=h;else{var m=Rs[p],g=ps(h,m);if(os(p)){if(c=!0,s[p]=g,l.push(p),!d)continue;h!==(null!==(i=m.default)&&void 0!==i?i:0)&&(d=!1)}else ls(p)?(u[p]=g,f=!0):a[p]=g}}c?a.transform=function(e,t,n,r){var i=e.transform,a=e.transformKeys,o=t.enableHardwareAcceleration,s=void 0===o||o,l=t.allowTransformNone,u=void 0===l||l,c="";a.sort(is);for(var f=!1,d=a.length,p=0;p<d;p++){var h=a[p];c+="".concat(fs[h]||h,"(").concat(i[h],") "),"z"===h&&(f=!0)}return!f&&s?c+="translateZ(0)":c=c.trim(),r?c=r(i,n?"":c):u&&n&&(c="none"),c}(e,n,d,r):r?a.transform=r({},""):!t.transform&&a.transform&&(a.transform="none"),f&&(a.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,i=void 0===r?"50%":r,a=e.originZ,o=void 0===a?0:a;return"".concat(n," ").concat(i," ").concat(o)}(u))}var js=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function Is(e,t,n){for(var r in t)cs(t[r])||us(r,n)||(e[r]=t[r])}function Ls(t,n,r){var i={};return Is(i,t.style||{},t),Object.assign(i,function(t,n,r){var i=t.transformTemplate;return(0,e.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};Ps(e,n,{enableHardwareAcceleration:!r},i);var t=e.style;return Ya(Ya({},e.vars),t)}),[n])}(t,n,r)),t.transformValues&&(i=t.transformValues(i)),i}function Ms(e,t,n){var r={},i=Ls(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=i,r}var Bs=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Ds(e){return Bs.has(e)}var Us,Fs=function(e){return!Ds(e)};try{(Us=require("@emotion/is-prop-valid").default)&&(Fs=function(e){return e.startsWith("on")?!Ds(e):Us(e)})}catch(e){}function zs(e,t,n){return"string"==typeof e?e:Es.transform(t+n*e)}var Vs={offset:"stroke-dashoffset",array:"stroke-dasharray"},Hs={offset:"strokeDashoffset",array:"strokeDasharray"};function Ws(e,t,n,r){var i=t.attrX,a=t.attrY,o=t.originX,s=t.originY,l=t.pathLength,u=t.pathSpacing,c=void 0===u?1:u,f=t.pathOffset,d=void 0===f?0:f;Ps(e,$a(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,h=e.style,m=e.dimensions;p.transform&&(m&&(h.transform=p.transform),delete p.transform),m&&(void 0!==o||void 0!==s||h.transform)&&(h.transformOrigin=function(e,t,n){var r=zs(t,e.x,e.width),i=zs(n,e.y,e.height);return"".concat(r," ").concat(i)}(m,void 0!==o?o:.5,void 0!==s?s:.5)),void 0!==i&&(p.x=i),void 0!==a&&(p.y=a),void 0!==l&&function(e,t,n,r,i){void 0===n&&(n=1),void 0===r&&(r=0),void 0===i&&(i=!0),e.pathLength=1;var a=i?Vs:Hs;e[a.offset]=Es.transform(-r);var o=Es.transform(t),s=Es.transform(n);e[a.array]="".concat(o," ").concat(s)}(p,l,c,d,!1)}var qs=function(){return Ya(Ya({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Gs(t,n){var r=(0,e.useMemo)((function(){var e=qs();return Ws(e,n,{enableHardwareAcceleration:!1},t.transformTemplate),Ya(Ya({},e.attrs),{style:Ya({},e.style)})}),[n]);if(t.style){var i={};Is(i,t.style,t),r.style=Ya(Ya({},i),r.style)}return r}function Zs(t){return void 0===t&&(t=!1),function(n,r,i,a,o,s){var l=o.latestValues,u=(es(n)?Gs:Ms)(r,l,s),c=function(e,t,n){var r={};for(var i in e)(Fs(i)||!0===n&&Ds(i)||!t&&!Ds(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(r,"string"==typeof n,t),f=Ya(Ya(Ya({},c),u),{ref:a});return i&&(f["data-projection-id"]=i),(0,e.createElement)(n,f)}}var Ys=/([a-z])([A-Z])/g,$s=function(e){return e.replace(Ys,"$1-$2").toLowerCase()};function Ks(e,t,n,r){var i=t.style,a=t.vars;for(var o in Object.assign(e.style,i,r&&r.getProjectionStyles(n)),a)e.style.setProperty(o,a[o])}var Xs=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Qs(e,t,n,r){for(var i in Ks(e,t,void 0,r),t.attrs)e.setAttribute(Xs.has(i)?i:$s(i),t.attrs[i])}function Js(e){var t=e.style,n={};for(var r in t)(cs(t[r])||us(r,e))&&(n[r]=t[r]);return n}function el(e){var t=Js(e);for(var n in e)cs(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function tl(e){return"object"==typeof e&&"function"==typeof e.start}var nl=function(e){return Array.isArray(e)},rl=function(e){return nl(e)?e[e.length-1]||0:e};function il(e){var t=cs(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}function al(e,t,n,r){var i=e.scrapeMotionValuesFromProps,a=e.createRenderState,o=e.onMount,s={latestValues:sl(t,n,r,i),renderState:a()};return o&&(s.mount=function(e){return o(t,e,s)}),s}var ol=function(t){return function(n,r){var i=(0,e.useContext)(Mo),a=(0,e.useContext)(bo);return r?al(t,n,i,a):wo((function(){return al(t,n,i,a)}))}};function sl(e,t,n,r){var i={},a=!1===(null==n?void 0:n.initial),o=r(e);for(var s in o)i[s]=il(o[s]);var l=e.initial,u=e.animate,c=qo(e),f=Go(e);t&&f&&!c&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=u||(u=t.animate));var d=a||!1===l,p=d?u:l;return p&&"boolean"!=typeof p&&!tl(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=Ho(e,t);if(n){var r=n.transitionEnd;n.transition;var a=$a(n,["transitionEnd","transition"]);for(var o in a){var s=a[o];Array.isArray(s)&&(s=s[d?s.length-1:0]),null!==s&&(i[o]=s)}for(var o in r)i[o]=r[o]}})),i}var ll,ul={useVisualState:ol({scrapeMotionValuesFromProps:el,createRenderState:qs,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}Ws(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),Qs(t,r)}})},cl={useVisualState:ol({scrapeMotionValuesFromProps:Js,createRenderState:js})};function fl(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function dl(t,n,r,i){(0,e.useEffect)((function(){var e=t.current;if(r&&e)return fl(e,n,r,i)}),[t,n,r,i])}function pl(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function hl(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(ll||(ll={}));var ml={pageX:0,pageY:0};function gl(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||ml;return{x:n[t+"X"],y:n[t+"Y"]}}function yl(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function vl(e,t){return void 0===t&&(t="page"),{point:hl(e)?gl(e,t):yl(e,t)}}var bl=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,vl(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},wl={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},xl={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function _l(e){return go&&null===window.onpointerdown?e:go&&null===window.ontouchstart?xl[e]:go&&null===window.onmousedown?wl[e]:e}function El(e,t,n,r){return fl(e,_l(t),bl(n,"pointerdown"===t),r)}function kl(e,t,n,r){return dl(e,_l(t),n&&bl(n,"pointerdown"===t),r)}function Sl(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Al=Sl("dragHorizontal"),Cl=Sl("dragVertical");function Ol(e){var t=!1;if("y"===e)t=Cl();else if("x"===e)t=Al();else{var n=Al(),r=Cl();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function Tl(){var e=Ol(!0);return!e||(e(),!1)}function Nl(e,t,n){return function(r,i){var a;pl(r)&&!Tl()&&(null===(a=e.animationState)||void 0===a||a.setActive(ll.Hover,t),null==n||n(r,i))}}var Rl=function(e,t){return!!t&&(e===t||Rl(e,t.parentElement))};const Pl=(e,t)=>n=>t(e(n)),jl=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(Pl)};n(3705),new Set;var Il=new WeakMap,Ll=new WeakMap,Ml=function(e){var t;null===(t=Il.get(e.target))||void 0===t||t(e)},Bl=function(e){e.forEach(Ml)};var Dl={some:0,all:1};function Ul(t,n,r,i){var a=i.root,o=i.margin,s=i.amount,l=void 0===s?"some":s,u=i.once;(0,e.useEffect)((function(){if(t){var e={root:null==a?void 0:a.current,rootMargin:o,threshold:"number"==typeof l?l:Dl[l]};return function(e,t,n){var r=function(e){var t=e.root,n=$a(e,["root"]),r=t||document;Ll.has(r)||Ll.set(r,{});var i=Ll.get(r),a=JSON.stringify(n);return i[a]||(i[a]=new IntersectionObserver(Bl,Ya({root:t},n))),i[a]}(t);return Il.set(e,n),r.observe(e),function(){Il.delete(e),r.unobserve(e)}}(r.getInstance(),e,(function(e){var t,i=e.isIntersecting;if(n.isInView!==i&&(n.isInView=i,!u||i||!n.hasEnteredView)){i&&(n.hasEnteredView=!0),null===(t=r.animationState)||void 0===t||t.setActive(ll.InView,i);var a=r.getProps(),o=i?a.onViewportEnter:a.onViewportLeave;null==o||o(e)}}))}}),[t,a,o,l])}function Fl(t,n,r,i){var a=i.fallback,o=void 0===a||a;(0,e.useEffect)((function(){t&&o&&requestAnimationFrame((function(){var e;n.hasEnteredView=!0;var t=r.getProps().onViewportEnter;null==t||t(null),null===(e=r.animationState)||void 0===e||e.setActive(ll.InView,!0)}))}),[t])}var zl=function(e){return function(t){return e(t),null}},Vl={inView:zl((function(t){var n=t.visualElement,r=t.whileInView,i=t.onViewportEnter,a=t.onViewportLeave,o=t.viewport,s=void 0===o?{}:o,l=(0,e.useRef)({hasEnteredView:!1,isInView:!1}),u=Boolean(r||i||a);s.once&&l.current.hasEnteredView&&(u=!1),("undefined"==typeof IntersectionObserver?Fl:Ul)(u,l.current,n,s)})),tap:zl((function(t){var n=t.onTap,r=t.onTapStart,i=t.onTapCancel,a=t.whileTap,o=t.visualElement,s=n||r||i||a,l=(0,e.useRef)(!1),u=(0,e.useRef)(null),c={passive:!(r||n||i||m)};function f(){var e;null===(e=u.current)||void 0===e||e.call(u),u.current=null}function d(){var e;return f(),l.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(ll.Tap,!1),!Tl()}function p(e,t){d()&&(Rl(o.getInstance(),e.target)?null==n||n(e,t):null==i||i(e,t))}function h(e,t){d()&&(null==i||i(e,t))}function m(e,t){var n;f(),l.current||(l.current=!0,u.current=jl(El(window,"pointerup",p,c),El(window,"pointercancel",h,c)),null===(n=o.animationState)||void 0===n||n.setActive(ll.Tap,!0),null==r||r(e,t))}kl(o,"pointerdown",s?m:void 0,c),Co(f)})),focus:zl((function(e){var t=e.whileFocus,n=e.visualElement;dl(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(ll.Focus,!0)}:void 0),dl(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(ll.Focus,!1)}:void 0)})),hover:zl((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;kl(i,"pointerenter",t||r?Nl(i,!0,t):void 0,{passive:!t}),kl(i,"pointerleave",n||r?Nl(i,!1,n):void 0,{passive:!n})}))};function Hl(){var t=(0,e.useContext)(bo);if(null===t)return[!0,null];var n=t.isPresent,r=t.onExitComplete,i=t.register,a=Eo();return(0,e.useEffect)((function(){return i(a)}),[]),!n&&r?[!1,function(){return null==r?void 0:r(a)}]:[!0]}function Wl(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function ql(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}Object.create,Object.create;const Gl=(e,t,n)=>Math.min(Math.max(n,e),t),Zl=.001;const Yl=12;function $l(e,t){return e*Math.sqrt(1-t*t)}const Kl=["duration","bounce"],Xl=["stiffness","damping","mass"];function Ql(e,t){return t.some((t=>void 0!==e[t]))}function Jl(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,a=ql(e,["from","to","restSpeed","restDelta"]);const o={done:!1,value:t};let{stiffness:s,damping:l,mass:u,velocity:c,duration:f,isResolvedFromDuration:d}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Ql(e,Xl)&&Ql(e,Kl)){const n=function(e){let t,n,{duration:r=800,bounce:i=.25,velocity:a=0,mass:o=1}=e,s=1-i;s=Gl(.05,1,s),r=Gl(.01,10,r/1e3),s<1?(t=e=>{const t=e*s,n=t*r,i=t-a,o=$l(e,s),l=Math.exp(-n);return Zl-i/o*l},n=e=>{const n=e*s*r,i=n*a+a,o=Math.pow(s,2)*Math.pow(e,2)*r,l=Math.exp(-n),u=$l(Math.pow(e,2),s);return(-t(e)+Zl>0?-1:1)*((i-o)*l)/u}):(t=e=>Math.exp(-e*r)*((e-a)*r+1)-Zl,n=e=>Math.exp(-e*r)*(r*r*(a-e)));const l=function(e,t,n){let r=n;for(let n=1;n<Yl;n++)r-=e(r)/t(r);return r}(t,n,5/r);if(r*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:r};{const e=Math.pow(l,2)*o;return{stiffness:e,damping:2*s*Math.sqrt(o*e),duration:r}}}(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(a),p=eu,h=eu;function m(){const e=c?-c/1e3:0,r=n-t,a=l/(2*Math.sqrt(s*u)),o=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),a<1){const t=$l(o,a);p=i=>{const s=Math.exp(-a*o*i);return n-s*((e+a*o*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},h=n=>{const i=Math.exp(-a*o*n);return a*o*i*(Math.sin(t*n)*(e+a*o*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+a*o*r)-t*r*Math.sin(t*n))}}else if(1===a)p=t=>n-Math.exp(-o*t)*(r+(e+o*r)*t);else{const t=o*Math.sqrt(a*a-1);p=i=>{const s=Math.exp(-a*o*i),l=Math.min(t*i,300);return n-s*((e+a*o*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{const t=p(e);if(d)o.done=e>=f;else{const a=1e3*h(e),s=Math.abs(a)<=r,l=Math.abs(n-t)<=i;o.done=s&&l}return o.value=o.done?n:t,o},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}Jl.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const eu=e=>0,tu=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},nu=(e,t,n)=>-n*e+n*t+e,ru=(e,t)=>n=>Boolean(bs(n)&&vs.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),iu=(e,t,n)=>r=>{if(!bs(r))return r;const[i,a,o,s]=r.match(gs);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:void 0!==s?parseFloat(s):1}},au=hs(0,255),ou=Object.assign(Object.assign({},Cs),{transform:e=>Math.round(au(e))}),su={test:ru("rgb","red"),parse:iu("red","green","blue"),transform:e=>{let{red:t,green:n,blue:r,alpha:i=1}=e;return"rgba("+ou.transform(t)+", "+ou.transform(n)+", "+ou.transform(r)+", "+ms(Os.transform(i))+")"}},lu={test:ru("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:su.transform},uu={test:ru("hsl","hue"),parse:iu("hue","saturation","lightness"),transform:e=>{let{hue:t,saturation:n,lightness:r,alpha:i=1}=e;return"hsla("+Math.round(t)+", "+_s.transform(ms(n))+", "+_s.transform(ms(r))+", "+ms(Os.transform(i))+")"}};function cu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function fu(e){let{hue:t,saturation:n,lightness:r,alpha:i}=e;t/=360,n/=100,r/=100;let a=0,o=0,s=0;if(n){const e=r<.5?r*(1+n):r+n-r*n,i=2*r-e;a=cu(i,e,t+1/3),o=cu(i,e,t),s=cu(i,e,t-1/3)}else a=o=s=r;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}const du=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},pu=[lu,su,uu],hu=e=>pu.find((t=>t.test(e))),mu=e=>"'".concat(e,"' is not an animatable color. Use the equivalent color code instead."),gu=(e,t)=>{let n=hu(e),r=hu(t);mu(e),mu(t);let i=n.parse(e),a=r.parse(t);n===uu&&(i=fu(i),n=su),r===uu&&(a=fu(a),r=su);const o=Object.assign({},i);return e=>{for(const t in o)"alpha"!==t&&(o[t]=du(i[t],a[t],e));return o.alpha=nu(i.alpha,a.alpha,e),n.transform(o)}},yu={test:e=>su.test(e)||lu.test(e)||uu.test(e),parse:e=>su.test(e)?su.parse(e):uu.test(e)?uu.parse(e):lu.parse(e),transform:e=>bs(e)?e:e.hasOwnProperty("red")?su.transform(e):uu.transform(e)},vu="${c}",bu="${n}";function wu(e){"number"==typeof e&&(e="".concat(e));const t=[];let n=0;const r=e.match(ys);r&&(n=r.length,e=e.replace(ys,vu),t.push(...r.map(yu.parse)));const i=e.match(gs);return i&&(e=e.replace(gs,bu),t.push(...i.map(Cs.parse))),{values:t,numColors:n,tokenised:e}}function xu(e){return wu(e).values}function _u(e){const{values:t,numColors:n,tokenised:r}=wu(e),i=t.length;return e=>{let t=r;for(let r=0;r<i;r++)t=t.replace(r<n?vu:bu,r<n?yu.transform(e[r]):ms(e[r]));return t}}const Eu=e=>"number"==typeof e?0:e,ku={test:function(e){var t,n,r,i;return isNaN(e)&&bs(e)&&(null!==(n=null===(t=e.match(gs))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(ys))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:xu,createTransformer:_u,getAnimatableNone:function(e){const t=xu(e);return _u(e)(t.map(Eu))}},Su=e=>"number"==typeof e;function Au(e,t){return Su(e)?n=>nu(e,t,n):yu.test(e)?gu(e,t):Nu(e,t)}const Cu=(e,t)=>{const n=[...e],r=n.length,i=e.map(((e,n)=>Au(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}},Ou=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=Au(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function Tu(e){const t=ku.parse(e),n=t.length;let r=0,i=0,a=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?a++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:a}}const Nu=(e,t)=>{const n=ku.createTransformer(t),r=Tu(e),i=Tu(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?jl(Cu(r.parsed,i.parsed),n):("Complex values '".concat(e,"' and '").concat(t,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition."),n=>"".concat(n>0?t:e))},Ru=(e,t)=>n=>nu(e,t,n);function Pu(e,t,n){const r=[],i=n||("number"==typeof(a=e[0])?Ru:"string"==typeof a?yu.test(a)?gu:Nu:Array.isArray(a)?Cu:"object"==typeof a?Ou:void 0);var a;const o=e.length-1;for(let n=0;n<o;n++){let a=i(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;a=jl(e,a)}r.push(a)}return r}function ju(e,t){let{clamp:n=!0,ease:r,mixer:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=e.length;t.length,!r||!Array.isArray(r)||r.length,e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const o=Pu(t,r,i),s=2===a?function(e,t){let[n,r]=e,[i]=t;return e=>i(tu(n,r,e))}(e,o):function(e,t){const n=e.length,r=n-1;return i=>{let a=0,o=!1;if(i<=e[0]?o=!0:i>=e[r]&&(a=r-1,o=!0),!o){let t=1;for(;t<n&&!(e[t]>i||t===r);t++);a=t-1}const s=tu(e[a],e[a+1],i);return t[a](s)}}(e,o);return n?t=>s(Gl(e[0],e[a-1],t)):s}const Iu=e=>t=>1-e(1-t),Lu=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Mu=e=>t=>t*t*((e+1)*t-e),Bu=e=>e,Du=(2,e=>Math.pow(e,2));const Uu=Iu(Du),Fu=Lu(Du),zu=e=>1-Math.sin(Math.acos(e)),Vu=Iu(zu),Hu=Lu(Vu),Wu=Mu(1.525),qu=Iu(Wu),Gu=Lu(Wu),Zu=(e=>{const t=Mu(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),Yu=e=>{if(1===e||0===e)return e;const t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},$u=Iu(Yu);function Ku(e,t){return e.map((()=>t||Fu)).splice(0,e.length-1)}function Xu(e){let{from:t=0,to:n=1,ease:r,offset:i,duration:a=300}=e;const o={done:!1,value:t},s=Array.isArray(n)?n:[t,n],l=function(e,t){return e.map((e=>e*t))}(i&&i.length===s.length?i:function(e){const t=e.length;return e.map(((e,n)=>0!==n?n/(t-1):0))}(s),a);function u(){return ju(l,s,{ease:Array.isArray(r)?r:Ku(s,r)})}let c=u();return{next:e=>(o.value=c(e),o.done=e>=a,o),flipTarget:()=>{s.reverse(),c=u()}}}const Qu={keyframes:Xu,spring:Jl,decay:function(e){let{velocity:t=0,from:n=0,power:r=.8,timeConstant:i=350,restDelta:a=.5,modifyTarget:o}=e;const s={done:!1,value:n};let l=r*t;const u=n+l,c=void 0===o?u:o(u);return c!==u&&(l=c-n),{next:e=>{const t=-l*Math.exp(-e/i);return s.done=!(t>a||t<-a),s.value=s.done?c:c+t,s},flipTarget:()=>{}}}};function Ju(e,t){return e-t-(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)}const ec=e=>{const t=t=>{let{delta:n}=t;return e(n)};return{start:()=>mo.update(t,!0),stop:()=>lo.update(t)}};function tc(e){var t,n,{from:r,autoplay:i=!0,driver:a=ec,elapsed:o=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:f,onComplete:d,onRepeat:p,onUpdate:h}=e,m=ql(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let g,y,v,{to:b}=m,w=0,x=m.duration,_=!1,E=!0;const k=function(e){if(Array.isArray(e.to))return Xu;if(Qu[e.type])return Qu[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Xu:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Jl:Xu}(m);(null===(n=(t=k).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(v=ju([0,100],[r,b],{clamp:!1}),r=0,b=100);const S=k(Object.assign(Object.assign({},m),{from:r,to:b}));return i&&(null==c||c(),g=a((function(e){if(E||(e=-e),o+=e,!_){const e=S.next(Math.max(0,o));y=e.value,v&&(y=v(y)),_=E?e.done:o<=0}null==h||h(y),_&&(0===w&&(null!=x||(x=o)),w<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(o,x,u,E)&&(w++,"reverse"===l?(E=w%2==0,o=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?t-(e-t)+n:Ju(t+-e,t,n)}(o,x,u,E)):(o=Ju(o,x,u),"mirror"===l&&S.flipTarget()),_=!1,p&&p()):(g.stop(),d&&d()))})),g.start()),{stop:()=>{null==f||f(),g.stop()}}}function nc(e,t){return t?e*(1e3/t):0}var rc=function(e){return 1e3*e};const ic=(e,t)=>1-3*t+3*e,ac=(e,t)=>3*t-6*e,oc=e=>3*e,sc=(e,t,n)=>((ic(t,n)*e+ac(t,n))*e+oc(t))*e,lc=(e,t,n)=>3*ic(t,n)*e*e+2*ac(t,n)*e+oc(t),uc=.1;var cc={linear:Bu,easeIn:Du,easeInOut:Fu,easeOut:Uu,circIn:zu,circInOut:Hu,circOut:Vu,backIn:Wu,backInOut:Gu,backOut:qu,anticipate:Zu,bounceIn:$u,bounceInOut:e=>e<.5?.5*(1-Yu(1-2*e)):.5*Yu(2*e-1)+.5,bounceOut:Yu},fc=function(e){if(Array.isArray(e)){e.length;var t=Ka(e,4);return function(e,t,n,r){if(e===t&&n===r)return Bu;const i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=sc(t*uc,e,n);function a(t){let r=0,a=1;for(;10!==a&&i[a]<=t;++a)r+=uc;--a;const o=r+(t-i[a])/(i[a+1]-i[a])*uc,s=lc(o,e,n);return s>=.001?function(e,t,n,r){for(let i=0;i<8;++i){const i=lc(t,n,r);if(0===i)return t;t-=(sc(t,n,r)-e)/i}return t}(t,o,e,n):0===s?o:function(e,t,n,r,i){let a,o,s=0;do{o=t+(n-t)/2,a=sc(o,r,i)-e,a>0?n=o:t=o}while(Math.abs(a)>1e-7&&++s<10);return o}(t,r,r+uc,e,n)}return e=>0===e||1===e?e:sc(a(e),t,r)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),cc[e]):e},dc=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!ku.test(t)||t.startsWith("url(")))},pc=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},hc=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},mc=function(){return{type:"keyframes",ease:"linear",duration:.3}},gc=function(e){return{type:"keyframes",duration:.8,values:e}},yc={x:pc,y:pc,z:pc,rotate:pc,rotateX:pc,rotateY:pc,rotateZ:pc,scaleX:hc,scaleY:hc,scale:hc,opacity:mc,backgroundColor:mc,color:mc,default:hc};const vc=new Set(["brightness","contrast","saturate","opacity"]);function bc(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(gs)||[];if(!r)return e;const i=n.replace(r,"");let a=vc.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const wc=/([a-z-]*)\(.*?\)/g,xc=Object.assign(Object.assign({},ku),{getAnimatableNone:e=>{const t=e.match(wc);return t?t.map(bc).join(" "):e}});var _c=Ya(Ya({},Rs),{color:yu,backgroundColor:yu,outlineColor:yu,fill:yu,stroke:yu,borderColor:yu,borderTopColor:yu,borderRightColor:yu,borderBottomColor:yu,borderLeftColor:yu,filter:xc,WebkitFilter:xc}),Ec=function(e){return _c[e]};function kc(e,t){var n,r=Ec(e);return r!==xc&&(r=ku),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var Sc=!1;function Ac(e,t,n){var r;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Xa([],Ka(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=$a(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Ya(Ya({},e),function(e,t){var n;return n=nl(t)?gc:yc[e]||yc.default,Ya({to:t},n(t))}(n,t.to))),Ya(Ya({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,a=e.loop,o=$a(e,["ease","times","yoyo","flip","loop"]),s=Ya({},o);return n&&(s.offset=n),o.duration&&(s.duration=rc(o.duration)),o.repeatDelay&&(s.repeatDelay=rc(o.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(fc):fc(t)),"tween"===o.type&&(s.type="keyframes"),(r||a||i)&&(!0,r?s.repeatType="reverse":a?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=a||r||i||o.repeat),"spring"!==o.type&&(s.type="keyframes"),s}(e))}function Cc(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Oc(e){return"number"==typeof e?0:kc("",e)}function Tc(e,t){return e[t]||e.default||e}function Nc(e,t,n,r){return void 0===r&&(r={}),Sc&&(r={type:!1}),t.start((function(i){var a,o,s=function(e,t,n,r,i){var a,o=Tc(r,e),s=null!==(a=o.from)&&void 0!==a?a:t.get(),l=dc(e,n);"none"===s&&l&&"string"==typeof n?s=kc(e,n):Cc(s)&&"string"==typeof n?s=Oc(n):!Array.isArray(n)&&Cc(n)&&"string"==typeof s&&(n=Oc(s));var u=dc(e,s);return"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property."),u&&l&&!1!==o.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===o.type||"decay"===o.type?function(e){let t,{from:n=0,velocity:r=0,min:i,max:a,power:o=.8,timeConstant:s=750,bounceStiffness:l=500,bounceDamping:u=10,restDelta:c=1,modifyTarget:f,driver:d,onUpdate:p,onComplete:h,onStop:m}=e;function g(e){return void 0!==i&&e<i||void 0!==a&&e>a}function y(e){return void 0===i?a:void 0===a||Math.abs(i-e)<Math.abs(a-e)?i:a}function v(e){null==t||t.stop(),t=tc(Object.assign(Object.assign({},e),{driver:d,onUpdate:t=>{var n;null==p||p(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:h,onStop:m}))}function b(e){v(Object.assign({type:"spring",stiffness:l,damping:u,restDelta:c},e))}if(g(n))b({from:n,velocity:r,to:y(n)});else{let e=o*r+n;void 0!==f&&(e=f(e));const t=y(e),a=t===i?-1:1;let l,u;const d=e=>{l=u,u=e,r=nc(e-l,ho().delta),(1===a&&e>t||-1===a&&e<t)&&b({from:e,to:t,velocity:r})};v({type:"decay",from:n,velocity:r,timeConstant:s,power:o,restDelta:c,modifyTarget:f,onUpdate:g(e)?d:void 0})}return{stop:()=>null==t?void 0:t.stop()}}(Ya(Ya({},r),o)):tc(Ya(Ya({},Ac(o,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=o.onUpdate)||void 0===t||t.call(o,e)},onComplete:function(){var e;r.onComplete(),null===(e=o.onComplete)||void 0===e||e.call(o)}}))}:function(){var e,r,a=rl(n);return t.set(a),i(),null===(e=null==o?void 0:o.onUpdate)||void 0===e||e.call(o,a),null===(r=null==o?void 0:o.onComplete)||void 0===r||r.call(o),{stop:function(){}}}}(e,t,n,r,i),l=function(e,t){var n,r;return null!==(r=null!==(n=(Tc(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return o=s()};return l?a=window.setTimeout(u,rc(l)):u(),function(){clearTimeout(a),null==o||o.stop()}}))}var Rc=function(e){return/^0[^.\s]+$/.test(e)};function Pc(e,t){-1===e.indexOf(t)&&e.push(t)}function jc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ic=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Pc(this.subscriptions,e),function(){return jc(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var i=0;i<r;i++){var a=this.subscriptions[i];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Lc=function(){function e(e){var t=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Ic,this.velocityUpdateSubscribers=new Ic,this.renderSubscribers=new Ic,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=ho(),i=r.delta,a=r.timestamp;t.lastUpdated!==a&&(t.timeDelta=i,t.lastUpdated=a,mo.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),n&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return mo.postRender(t.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==t.lastUpdated&&(t.prev=t.current,t.velocityUpdateSubscribers.notify(t.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=function(e){return!isNaN(parseFloat(e))}(this.current)}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?nc(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Mc(e){return new Lc(e)}var Bc=function(e){return function(t){return t.test(e)}},Dc=[Cs,Es,_s,xs,Ss,ks,{test:function(e){return"auto"===e},parse:function(e){return e}}],Uc=function(e){return Dc.find(Bc(e))},Fc=Xa(Xa([],Ka(Dc),!1),[yu,ku],!1),zc=function(e){return Fc.find(Bc(e))};function Vc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Mc(n))}function Hc(e,t){if(t)return(t[e]||t.default||t).from}function Wc(e,t,n){var r;void 0===n&&(n={});var i=Wo(e,t,n.custom),a=(i||{}).transition,o=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(o=n.transitionOverride);var s=i?function(){return qc(e,i,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var i=o.delayChildren,a=void 0===i?0:i,s=o.staggerChildren,l=o.staggerDirection;return function(e,t,n,r,i,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=1);var o=[],s=(e.variantChildren.size-1)*r,l=1===i?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(Gc).forEach((function(e,r){o.push(Wc(e,t,Ya(Ya({},a),{delay:n+l(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(o)}(e,t,a+r,s,l,n)}:function(){return Promise.resolve()},u=o.when;if(u){var c=Ka("beforeChildren"===u?[s,l]:[l,s],2),f=c[0],d=c[1];return f().then(d)}return Promise.all([s(),l(n.delay)])}function qc(e,t,n){var r,i=void 0===n?{}:n,a=i.delay,o=void 0===a?0:a,s=i.transitionOverride,l=i.type,u=e.makeTargetAnimatable(t),c=u.transition,f=void 0===c?e.getDefaultTransition():c,d=u.transitionEnd,p=$a(u,["transition","transitionEnd"]);s&&(f=s);var h=[],m=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var g in p){var y=e.getValue(g),v=p[g];if(!(!y||void 0===v||m&&Zc(m,g))){var b=Ya({delay:o},f);e.shouldReduceMotion&&os(g)&&(b=Ya(Ya({},b),{type:!1,delay:0}));var w=Nc(g,y,v,b);h.push(w)}}return Promise.all(h).then((function(){d&&function(e,t){var n=Wo(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,a=void 0===i?{}:i;r.transition;var o=$a(r,["transitionEnd","transition"]);for(var s in o=Ya(Ya({},o),a))Vc(e,s,rl(o[s]))}(e,d)}))}function Gc(e,t){return e.sortNodePosition(t)}function Zc(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}var Yc=[ll.Animate,ll.InView,ll.Focus,ll.Hover,ll.Tap,ll.Drag,ll.Exit],$c=Xa([],Ka(Yc),!1).reverse(),Kc=Yc.length;function Xc(e){var t=function(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var i=t.map((function(t){return Wc(e,t,n)}));r=Promise.all(i)}else if("string"==typeof t)r=Wc(e,t,n);else{var a="function"==typeof t?Wo(e,t,n.custom):t;r=qc(e,a,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),n=function(){var e;return(e={})[ll.Animate]=Qc(!0),e[ll.InView]=Qc(),e[ll.Hover]=Qc(),e[ll.Tap]=Qc(),e[ll.Drag]=Qc(),e[ll.Focus]=Qc(),e[ll.Exit]=Qc(),e}(),r={},i=!0,a=function(t,n){var r=Wo(e,n);if(r){r.transition;var i=r.transitionEnd,a=$a(r,["transition","transitionEnd"]);t=Ya(Ya(Ya({},t),a),i)}return t};function o(o,s){for(var l,u=e.getProps(),c=e.getVariantContext(!0)||{},f=[],d=new Set,p={},h=1/0,m=function(t){var r=$c[t],m=n[r],g=null!==(l=u[r])&&void 0!==l?l:c[r],y=Vo(g),v=r===s?m.isActive:null;!1===v&&(h=t);var b=g===c[r]&&g!==u[r]&&y;if(b&&i&&e.manuallyAnimateOnMount&&(b=!1),m.protectedKeys=Ya({},p),!m.isActive&&null===v||!g&&!m.prevProp||tl(g)||"boolean"==typeof g)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!zo(t)&&!Wl(t,e)}(m.prevProp,g),x=w||r===s&&m.isActive&&!b&&y||t>h&&y,_=Array.isArray(g)?g:[g],E=_.reduce(a,{});!1===v&&(E={});var k=m.prevResolvedValues,S=void 0===k?{}:k,A=Ya(Ya({},S),E),C=function(e){x=!0,d.delete(e),m.needsAnimating[e]=!0};for(var O in A){var T=E[O],N=S[O];p.hasOwnProperty(O)||(T!==N?nl(T)&&nl(N)?!Wl(T,N)||w?C(O):m.protectedKeys[O]=!0:void 0!==T?C(O):d.add(O):void 0!==T&&d.has(O)?C(O):m.protectedKeys[O]=!0)}m.prevProp=g,m.prevResolvedValues=E,m.isActive&&(p=Ya(Ya({},p),E)),i&&e.blockInitialAnimation&&(x=!1),x&&!b&&f.push.apply(f,Xa([],Ka(_.map((function(e){return{animation:e,options:Ya({type:r},o)}}))),!1))},g=0;g<Kc;g++)m(g);if(r=Ya({},p),d.size){var y={};d.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)})),f.push({animation:y})}var v=Boolean(f.length);return i&&!1===u.initial&&!e.manuallyAnimateOnMount&&(v=!1),i=!1,v?t(f):Promise.resolve()}return{isAnimated:function(e){return void 0!==r[e]},animateChanges:o,setActive:function(t,r,i){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;var s=o(i,t);for(var l in n)n[l].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function Qc(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Jc={animation:zl((function(t){var n=t.visualElement,r=t.animate;n.animationState||(n.animationState=Xc(n)),tl(r)&&(0,e.useEffect)((function(){return r.subscribe(n)}),[r])})),exit:zl((function(t){var n=t.custom,r=t.visualElement,i=Ka(Hl(),2),a=i[0],o=i[1],s=(0,e.useContext)(bo);(0,e.useEffect)((function(){var e,t;r.isPresent=a;var i=null===(e=r.animationState)||void 0===e?void 0:e.setActive(ll.Exit,!a,{custom:null!==(t=null==s?void 0:s.custom)&&void 0!==t?t:n});!a&&(null==i||i.then(o))}),[a])}))};const ef=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),tf=e=>ef(e)&&e.hasOwnProperty("z"),nf=(e,t)=>Math.abs(e-t);function rf(e,t){if(Su(e)&&Su(t))return nf(e,t);if(ef(e)&&ef(t)){const n=nf(e.x,t.x),r=nf(e.y,t.y),i=tf(e)&&tf(t)?nf(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}var af=function(){function e(e,t,n){var r=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=uf(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=rf(e.offset,{x:0,y:0})>=3;if(t||n){var i=e.point,a=ho().timestamp;r.history.push(Ya(Ya({},i),{timestamp:a}));var o=r.handlers,s=o.onStart,l=o.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=of(t,r.transformPagePoint),pl(e)&&0===e.buttons?r.handlePointerUp(e,t):mo.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,i=n.onEnd,a=n.onSessionEnd,o=uf(of(t,r.transformPagePoint),r.history);r.startEvent&&i&&i(e,o),a&&a(e,o)},!(hl(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var a=of(vl(e),this.transformPagePoint),o=a.point,s=ho().timestamp;this.history=[Ya(Ya({},o),{timestamp:s})];var l=t.onSessionStart;l&&l(e,uf(a,this.history)),this.removeListeners=jl(El(window,"pointermove",this.handlePointerMove),El(window,"pointerup",this.handlePointerUp),El(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),lo.update(this.updatePoint)},e}();function of(e,t){return t?{point:t(e.point)}:e}function sf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function uf(e,t){var n=e.point;return{point:n,delta:sf(n,ff(t)),offset:sf(n,cf(t)),velocity:df(t,.1)}}function cf(e){return e[0]}function ff(e){return e[e.length-1]}function df(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=ff(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>rc(t)));)n--;if(!r)return{x:0,y:0};var a=(i.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function pf(e){return e.max-e.min}function hf(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),rf(e,t)<n}function mf(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=nu(t.min,t.max,e.origin),e.scale=pf(n)/pf(t),(hf(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=nu(n.min,n.max,e.origin)-e.originPoint,(hf(e.translate)||isNaN(e.translate))&&(e.translate=0)}function gf(e,t,n,r){mf(e.x,t.x,n.x,null==r?void 0:r.originX),mf(e.y,t.y,n.y,null==r?void 0:r.originY)}function yf(e,t,n){e.min=n.min+t.min,e.max=e.min+pf(t)}function vf(e,t,n){e.min=t.min-n.min,e.max=e.min+pf(t)}function bf(e,t,n){vf(e.x,t.x,n.x),vf(e.y,t.y,n.y)}function wf(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function xf(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=Ka([i,r],2))[0],i=n[1]),{min:r,max:i}}var _f=.35;function Ef(e,t,n){return{min:kf(e,t),max:kf(e,n)}}function kf(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Sf(e){return[e("x"),e("y")]}function Af(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function Cf(e){return void 0===e||1===e}function Of(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Cf(t)||!Cf(n)||!Cf(r)}function Tf(e){return Of(e)||Nf(e.x)||Nf(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Nf(e){return e&&"0%"!==e}function Rf(e,t,n){return n+t*(e-n)}function Pf(e,t,n,r,i){return void 0!==i&&(e=Rf(e,i,r)),Rf(e,n,r)+t}function jf(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Pf(e.min,t,n,r,i),e.max=Pf(e.max,t,n,r,i)}function If(e,t){var n=t.x,r=t.y;jf(e.x,n.translate,n.scale,n.originPoint),jf(e.y,r.translate,r.scale,r.originPoint)}function Lf(e,t){e.min=e.min+t,e.max=e.max+t}function Mf(e,t,n){var r=Ka(n,3),i=r[0],a=r[1],o=r[2],s=void 0!==t[o]?t[o]:.5,l=nu(e.min,e.max,s);jf(e,t[i],t[a],l,t.scale)}var Bf=["x","scaleX","originX"],Df=["y","scaleY","originY"];function Uf(e,t){Mf(e.x,t,Bf),Mf(e.y,t,Df)}function Ff(e,t){return Af(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var zf=new WeakMap,Vf=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,i=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new af(e,{onSessionStart:function(e){n.stopAnimation(),i&&n.snapToCursor(vl(e,"page").point)},onStart:function(e,t){var r,i=n.getProps(),a=i.drag,o=i.dragPropagation,s=i.onDragStart;(!a||o||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Ol(a),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Sf((function(e){var t,r,i=n.getAxisMotionValue(e).get()||0;if(_s.test(i)){var a=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];a&&(i=pf(a)*(parseFloat(i)/100))}n.originPoint[e]=i})),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(ll.Drag,!0))},onMove:function(e,t){var r=n.getProps(),i=r.dragPropagation,a=r.dragDirectionLock,o=r.onDirectionLock,s=r.onDrag;if(i||n.openGlobalLock){var l=t.offset;if(a&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(l),void(null!==n.currentDirection&&(null==o||o(n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var i=this.getProps().onDragEnd;null==i||i(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(ll.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Hf(e,r,this.currentDirection)){var i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var r=t.min,i=t.max;return void 0!==r&&e<r?e=n?nu(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?nu(i,e,n.max):Math.min(e,i)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,i=(this.visualElement.projection||{}).layout,a=this.constraints;n&&Fo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(e,t){var n=t.top,r=t.left,i=t.bottom,a=t.right;return{x:wf(e.x,r,a),y:wf(e.y,n,i)}}(i.actual,n),this.elastic=function(e){return void 0===e&&(e=_f),!1===e?e=0:!0===e&&(e=_f),{x:Ef(e,"left","right"),y:Ef(e,"top","bottom")}}(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Sf((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Fo(t))return!1;var r=t.current,i=this.visualElement.projection;if(!i||!i.layout)return!1;var a=function(e,t,n){var r=Ff(e,n),i=t.scroll;return i&&(Lf(r.x,i.x),Lf(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o=function(e,t){return{x:xf(e.x,t.x),y:xf(e.y,t.y)}}(i.layout.actual,a);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(o));this.hasMutatedConstraints=!!s,s&&(o=Af(s))}return o},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,i=n.dragMomentum,a=n.dragElastic,o=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,u=this.constraints||{},c=Sf((function(n){var l;if(Hf(n,r,t.currentDirection)){var c=null!==(l=null==u?void 0:u[n])&&void 0!==l?l:{};s&&(c={min:0,max:0});var f=a?200:1e6,d=a?40:1e7,p=Ya(Ya({type:"inertia",velocity:i?e[n]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10},o),c);return t.startAxisValueAnimation(n,p)}}));return Promise.all(c).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return Nc(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Sf((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;Sf((function(n){if(Hf(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,i=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n],o=a.min,s=a.max;i.set(e[n]-nu(o,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,i=n.dragConstraints,a=this.visualElement.projection;if(Fo(i)&&a&&this.constraints){this.stopAnimation();var o={x:0,y:0};Sf((function(e){var n=t.getAxisMotionValue(e);if(n){var r=n.get();o[e]=function(e,t){var n=.5,r=pf(e),i=pf(t);return i>r?n=tu(t.min,t.max-r,e.min):r>i&&(n=tu(e.min,e.max-i,t.min)),Gl(0,1,n)}({min:r,max:r},t.constraints[e])}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout(),this.resolveConstraints(),Sf((function(e){if(Hf(e,r,null)){var n=t.getAxisMotionValue(e),i=t.constraints[e],a=i.min,s=i.max;n.set(nu(a,s,o[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;zf.set(this.visualElement,this);var n=El(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)})),r=function(){Fo(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,a=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();var o=fl(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return i.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(Sf((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){o(),n(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,i=void 0!==r&&r,a=e.dragPropagation,o=void 0!==a&&a,s=e.dragConstraints,l=void 0!==s&&s,u=e.dragElastic,c=void 0===u?_f:u,f=e.dragMomentum,d=void 0===f||f;return Ya(Ya({},e),{drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:l,dragElastic:c,dragMomentum:d})},e}();function Hf(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Wf={pan:zl((function(t){var n=t.onPan,r=t.onPanStart,i=t.onPanEnd,a=t.onPanSessionStart,o=t.visualElement,s=n||r||i||a,l=(0,e.useRef)(null),u=(0,e.useContext)(Lo).transformPagePoint,c={onSessionStart:a,onStart:r,onMove:n,onEnd:function(e,t){l.current=null,i&&i(e,t)}};(0,e.useEffect)((function(){null!==l.current&&l.current.updateHandlers(c)})),kl(o,"pointerdown",s&&function(e){l.current=new af(e,c,{transformPagePoint:u})}),Co((function(){return l.current&&l.current.end()}))})),drag:zl((function(t){var n=t.dragControls,r=t.visualElement,i=wo((function(){return new Vf(r)}));(0,e.useEffect)((function(){return n&&n.subscribe(i)}),[i,n]),(0,e.useEffect)((function(){return i.addListeners()}),[i])}))},qf=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],Gf=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,i=e.getBaseTarget,a=e.makeTargetAnimatable,o=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,u=e.removeValueFromRenderState,c=e.sortNodePosition,f=e.scrapeMotionValuesFromProps;return function(e,t){var d=e.parent,p=e.props,h=e.presenceId,m=e.blockInitialAnimation,g=e.visualState,y=e.shouldReduceMotion;void 0===t&&(t={});var v,b,w=!1,x=g.latestValues,_=g.renderState,E=function(){var e=qf.map((function(){return new Ic})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){qf.forEach((function(r){var i,a="on"+r,o=e[a];null===(i=t[r])||void 0===i||i.call(t),o&&(t[r]=n[a](o))}))}};return e.forEach((function(e,t){n["on"+qf[t]]=function(t){return e.add(t)},n["notify"+qf[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Xa([],Ka(t),!1))}})),n}(),k=new Map,S=new Map,A={},C=Ya({},x);function O(){v&&w&&(T(),s(v,_,p.style,B.projection))}function T(){r(B,_,x,t,p)}function N(){E.notifyUpdate(x)}function R(e,t){var n=t.onChange((function(t){x[e]=t,p.onUpdate&&mo.update(N,!1,!0)})),r=t.onRenderRequest(B.scheduleRender);S.set(e,(function(){n(),r()}))}var P=f(p);for(var j in P){var I=P[j];void 0!==x[j]&&cs(I)&&I.set(x[j],!1)}var L=qo(p),M=Go(p),B=Ya(Ya({treeType:n,current:null,depth:d?d.depth+1:0,parent:d,children:new Set,presenceId:h,shouldReduceMotion:y,variantChildren:M?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==d?void 0:d.isMounted()),blockInitialAnimation:m,isMounted:function(){return Boolean(v)},mount:function(e){w=!0,v=B.current=e,B.projection&&B.projection.mount(e),M&&d&&!L&&(b=null==d?void 0:d.addVariantChild(B)),k.forEach((function(e,t){return R(t,e)})),null==d||d.children.add(B),B.setProps(p)},unmount:function(){var e;null===(e=B.projection)||void 0===e||e.unmount(),lo.update(N),lo.render(O),S.forEach((function(e){return e()})),null==b||b(),null==d||d.children.delete(B),E.clearAllListeners(),v=void 0,w=!1},addVariantChild:function(e){var t,n=B.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return c&&n===e.treeType?c(B.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return M?B:null==d?void 0:d.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return v},getStaticValue:function(e){return x[e]},setStaticValue:function(e,t){return x[e]=t},getLatestValues:function(){return x},setVisibility:function(e){B.isVisible!==e&&(B.isVisible=e,B.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(B,e,p,t)},measureViewportBox:function(){return o(v,p)},addValue:function(e,t){B.hasValue(e)&&B.removeValue(e),k.set(e,t),x[e]=t.get(),R(e,t)},removeValue:function(e){var t;k.delete(e),null===(t=S.get(e))||void 0===t||t(),S.delete(e),delete x[e],u(e,_)},hasValue:function(e){return k.has(e)},getValue:function(e,t){var n=k.get(e);return void 0===n&&void 0!==t&&(n=Mc(t),B.addValue(e,n)),n},forEachValue:function(e){return k.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:l(v,e,t)},setBaseTarget:function(e,t){C[e]=t},getBaseTarget:function(e){if(i){var t=i(p,e);if(void 0!==t&&!cs(t))return t}return C[e]}},E),{build:function(){return T(),_},scheduleRender:function(){mo.render(O,!1,!0)},syncRender:O,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&B.scheduleRender(),p=e,E.updatePropListeners(e),A=function(e,t,n){var r;for(var i in t){var a=t[i],o=n[i];if(cs(a))e.addValue(i,a);else if(cs(o))e.addValue(i,Mc(a));else if(o!==a)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(a)}else e.addValue(i,Mc(null!==(r=e.getStaticValue(i))&&void 0!==r?r:a))}for(var i in n)void 0===t[i]&&e.removeValue(i);return t}(B,f(p),A)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==d?void 0:d.getVariantContext();if(!L){var t=(null==d?void 0:d.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<Yf;r++){var i=Zf[r],a=p[i];(Vo(a)||!1===a)&&(n[i]=a)}return n}});return B}},Zf=Xa(["initial"],Ka(Yc),!1),Yf=Zf.length;function $f(e){return"string"==typeof e&&e.startsWith("var(--")}var Kf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Xf(e,t,n){void 0===n&&(n=1),'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.');var r=Ka(function(e){var t=Kf.exec(e);if(!t)return[,];var n=Ka(t,3);return[n[1],n[2]]}(e),2),i=r[0],a=r[1];if(i){var o=window.getComputedStyle(t).getPropertyValue(i);return o?o.trim():$f(a)?Xf(a,t,n+1):a}}var Qf,Jf=new Set(["width","height","top","left","right","bottom","x","y"]),ed=function(e){return Jf.has(e)},td=function(e,t){e.set(t,!1),e.set(t)},nd=function(e){return e===Cs||e===Es};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Qf||(Qf={}));var rd=function(e,t){return parseFloat(e.split(", ")[t])},id=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var a=i.match(/^matrix3d\((.+)\)$/);if(a)return rd(a[1],t);var o=i.match(/^matrix\((.+)\)$/);return o?rd(o[1],e):0}},ad=new Set(["x","y","z"]),od=rs.filter((function(e){return!ad.has(e)})),sd={width:function(e,t){var n=e.x,r=t.paddingLeft,i=void 0===r?"0":r,a=t.paddingRight,o=void 0===a?"0":a;return n.max-n.min-parseFloat(i)-parseFloat(o)},height:function(e,t){var n=e.y,r=t.paddingTop,i=void 0===r?"0":r,a=t.paddingBottom,o=void 0===a?"0":a;return n.max-n.min-parseFloat(i)-parseFloat(o)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:id(4,13),y:id(5,14)};function ld(e,t,n,r){return function(e){return Object.keys(e).some(ed)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=Ya({},t),r=Ya({},r);var i=Object.keys(t).filter(ed),a=[],o=!1,s=[];if(i.forEach((function(i){var l=e.getValue(i);if(e.hasValue(i)){var u,c=n[i],f=Uc(c),d=t[i];if(nl(d)){var p=d.length,h=null===d[0]?1:0;c=d[h],f=Uc(c);for(var m=h;m<p;m++)u?Uc(d[m]):(u=Uc(d[m]))===f||nd(f)&&nd(u)}else u=Uc(d);if(f!==u)if(nd(f)&&nd(u)){var g=l.get();"string"==typeof g&&l.set(parseFloat(g)),"string"==typeof d?t[i]=parseFloat(d):Array.isArray(d)&&u===Es&&(t[i]=d.map(parseFloat))}else(null==f?void 0:f.transform)&&(null==u?void 0:u.transform)&&(0===c||0===d)?0===c?l.set(u.transform(c)):t[i]=f.transform(d):(o||(a=function(e){var t=[];return od.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),o=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],td(l,d))}})),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,u=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),a=getComputedStyle(i),o=a.display,s={};"none"===o&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=sd[e](r,a)})),t.syncRender();var l=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);td(r,s[n]),e[n]=sd[n](l,a)})),e}(t,e,s);return a.length&&a.forEach((function(t){var n=Ka(t,2),r=n[0],i=n[1];e.getValue(r).set(i)})),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}var ud={treeType:"dom",readValueFromInstance:function(e,t){if(os(t)){var n=Ec(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r));return(ds(t)?i.getPropertyValue(t):i[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Ff(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;void 0===r&&(r=!0);var a=t.transition,o=t.transitionEnd,s=$a(t,["transition","transitionEnd"]),l=function(e,t,n){var r,i,a={};for(var o in e)a[o]=null!==(r=Hc(o,t))&&void 0!==r?r:null===(i=n.getValue(o))||void 0===i?void 0:i.get();return a}(s,a||{},e);if(i&&(o&&(o=i(o)),s&&(s=i(s)),l&&(l=i(l))),r){!function(e,t,n){var r,i,a,o,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),l=s.length;if(l)for(var u=0;u<l;u++){var c=s[u],f=t[c],d=null;Array.isArray(f)&&(d=f[0]),null===d&&(d=null!==(i=null!==(r=n[c])&&void 0!==r?r:e.readValue(c))&&void 0!==i?i:t[c]),null!=d&&("string"==typeof d&&(/^\-?\d*\.?\d+$/.test(d)||Rc(d))?d=parseFloat(d):!zc(d)&&ku.test(f)&&(d=kc(c,f)),e.addValue(c,Mc(d)),null!==(a=(o=n)[c])&&void 0!==a||(o[c]=d),e.setBaseTarget(c,d))}}(e,s,l);var u=function(e,t,n,r){var i=function(e,t,n){var r,i=$a(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:i,transitionEnd:n};for(var o in n&&(n=Ya({},n)),e.forEachValue((function(e){var t=e.get();if($f(t)){var n=Xf(t,a);n&&e.set(n)}})),i){var s=i[o];if($f(s)){var l=Xf(s,a);l&&(i[o]=l,n&&(null!==(r=n[o])&&void 0!==r||(n[o]=s)))}}return{target:i,transitionEnd:n}}(e,t,r);return ld(e,t=i.target,n,r=i.transitionEnd)}(e,s,l,o);o=u.transitionEnd,s=u.target}return Ya({transition:a,transitionEnd:o},s)},scrapeMotionValuesFromProps:Js,build:function(e,t,n,r,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),Ps(t,n,r,i.transformTemplate)},render:Ks},cd=Gf(ud),fd=Gf(Ya(Ya({},ud),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return os(t)?(null===(n=Ec(t))||void 0===n?void 0:n.default)||0:(t=Xs.has(t)?t:$s(t),e.getAttribute(t))},scrapeMotionValuesFromProps:el,build:function(e,t,n,r,i){Ws(t,n,r,i.transformTemplate)},render:Qs})),dd=function(e,t){return es(e)?fd(t,{enableHardwareAcceleration:!1}):cd(t,{enableHardwareAcceleration:!0})};function pd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var hd={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!Es.test(e))return e;e=parseFloat(e)}var n=pd(e,t.target.x),r=pd(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},md="_$css",gd={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,a=e.includes("var("),o=[];a&&(e=e.replace(Kf,(function(e){return o.push(e),md})));var s=ku.parse(e);if(s.length>5)return i;var l=ku.createTransformer(e),u="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,f=r.y.scale*n.y;s[0+u]/=c,s[1+u]/=f;var d=nu(c,f,.5);"number"==typeof s[2+u]&&(s[2+u]/=d),"number"==typeof s[3+u]&&(s[3+u]/=d);var p=l(s);if(a){var h=0;p=p.replace(md,(function(){var e=o[h];return h++,e}))}return p}},yd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Za(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,i=n.layoutGroup,a=n.switchLayoutGroup,o=n.layoutId,s=r.projection;e=vd,Object.assign(ts,e),s&&((null==i?void 0:i.group)&&i.group.add(s),(null==a?void 0:a.register)&&o&&a.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(Ya(Ya({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),Yo.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,i=n.visualElement,a=n.drag,o=n.isPresent,s=i.projection;return s?(s.isPresent=o,a||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||mo.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,i=t.projection;i&&(i.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(i),(null==r?void 0:r.deregister)&&r.deregister(i))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(e.Component),vd={borderRadius:Ya(Ya({},hd),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:hd,borderTopRightRadius:hd,borderBottomLeftRadius:hd,borderBottomRightRadius:hd,boxShadow:gd},bd={measureLayout:function(t){var n=Ka(Hl(),2),r=n[0],i=n[1],a=(0,e.useContext)(Ao);return e.createElement(yd,Ya({},t,{layoutGroup:a,switchLayoutGroup:(0,e.useContext)(Ko),isPresent:r,safeToRemove:i}))}},wd=["TopLeft","TopRight","BottomLeft","BottomRight"],xd=wd.length,_d=function(e){return"string"==typeof e?parseFloat(e):e},Ed=function(e){return"number"==typeof e||Es.test(e)};function kd(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Sd=Cd(0,.5,Vu),Ad=Cd(.5,.95,Bu);function Cd(e,t,n){return function(r){return r<e?0:r>t?1:n(tu(e,t,r))}}function Od(e,t){e.min=t.min,e.max=t.max}function Td(e,t){Od(e.x,t.x),Od(e.y,t.y)}function Nd(e,t,n,r,i){return e=Rf(e-=t,1/n,r),void 0!==i&&(e=Rf(e,1/i,r)),e}function Rd(e,t,n,r,i){var a=Ka(n,3),o=a[0],s=a[1],l=a[2];!function(e,t,n,r,i,a,o){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===a&&(a=e),void 0===o&&(o=e),_s.test(t)&&(t=parseFloat(t),t=nu(o.min,o.max,t/100)-o.min),"number"==typeof t){var s=nu(a.min,a.max,r);e===a&&(s-=t),e.min=Nd(e.min,t,n,s,i),e.max=Nd(e.max,t,n,s,i)}}(e,t[o],t[s],t[l],t.scale,r,i)}var Pd=["x","scaleX","originX"],jd=["y","scaleY","originY"];function Id(e,t,n,r){Rd(e.x,t,Pd,null==n?void 0:n.x,null==r?void 0:r.x),Rd(e.y,t,jd,null==n?void 0:n.y,null==r?void 0:r.y)}function Ld(e){return 0===e.translate&&1===e.scale}function Md(e){return Ld(e.x)&&Ld(e.y)}function Bd(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Dd=function(){function e(){this.members=[]}return e.prototype.add=function(e){Pc(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(jc(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var i=this.members[r];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,n,r,i,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===a||a.call(i)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function Ud(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,a="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(a+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var o=n.rotate,s=n.rotateX,l=n.rotateY;o&&(a+="rotate(".concat(o,"deg) ")),s&&(a+="rotateX(".concat(s,"deg) ")),l&&(a+="rotateY(".concat(l,"deg) "))}var u=e.x.scale*t.x,c=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(a+="scale(".concat(u,", ").concat(c,")"))?"none":a}var Fd=function(e,t){return e.depth-t.depth},zd=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Pc(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){jc(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Fd),this.isDirty=!1,this.children.forEach(e)},e}();function Vd(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,r){var i=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach($d),i.nodes.forEach(Kd)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?Xa(Xa([],Ka(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new zd)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ic),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,Xa([],Ka(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,i=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,o=a.layoutId,s=a.layout,l=a.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||o)&&(this.isLayoutDirty=!0),t){var u,c=function(){return i.root.updateBlockedByResize=!1};t(e,(function(){i.root.updateBlockedByResize=!0,clearTimeout(u),u=window.setTimeout(c,250),Yo.hasAnimatedSinceResize&&(Yo.hasAnimatedSinceResize=!1,i.nodes.forEach(Yd))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&l&&(o||s)&&this.addEventListener("didUpdate",(function(e){var t,n,r,a,o,s=e.delta,u=e.hasLayoutChanged,c=e.hasRelativeTargetChanged,f=e.layout;if(i.isTreeAnimationBlocked())return i.target=void 0,void(i.relativeTarget=void 0);var d=null!==(n=null!==(t=i.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:np,p=l.getProps(),h=p.onLayoutAnimationStart,m=p.onLayoutAnimationComplete,g=!i.targetLayout||!Bd(i.targetLayout,f)||c,y=!u&&c;if((null===(r=i.resumeFrom)||void 0===r?void 0:r.instance)||y||u&&(g||!i.currentAnimation)){i.resumeFrom&&(i.resumingFrom=i.resumeFrom,i.resumingFrom.resumingFrom=void 0),i.setAnimationOrigin(s,y);var v=Ya(Ya({},Tc(d,"layout")),{onPlay:h,onComplete:m});l.shouldReduceMotion&&(v.delay=0,v.type=!1),i.startAnimation(v)}else u||0!==i.animationProgress||i.finishAnimation(),i.isLead()&&(null===(o=(a=i.options).onExitComplete)||void 0===o||o.call(a));i.targetLayout=f}))}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,lo.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(Xd))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var i=0;i<this.path.length;i++){var a=this.path[i];a.shouldResetTransform=!0,a.updateScroll()}var o=this.options,s=o.layoutId,l=o.layout;if(void 0!==s||l){var u=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==u?void 0:u(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Gd);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(rp),this.potentialNodes.clear()),this.nodes.forEach(Zd),this.nodes.forEach(Hd),this.nodes.forEach(Wd),this.clearAllSnapshots(),uo.update(),uo.preRender(),uo.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(qd),this.sharedNodes.forEach(Qd)},e.prototype.scheduleUpdateProjection=function(){mo.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;mo.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));ap(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();ap(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Md(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,i=null==r?void 0:r(this.latestValues,""),o=i!==this.prevTransformTemplateValue;t&&(n||Tf(this.latestValues)||o)&&(a(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(Lf(t.x,n.x),Lf(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Td(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],i=r.scroll,a=r.options,o=r.isScrollRoot;if(r!==this.root&&i&&a.layoutScroll){if(o){Td(t,e);var s=this.root.scroll;s&&(Lf(t.x,-s.x),Lf(t.y,-s.y))}Lf(t.x,i.x),Lf(t.y,i.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};Td(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Uf(n,{x:-i.scroll.x,y:-i.scroll.y}),Tf(i.latestValues)&&Uf(n,i.latestValues)}return Tf(this.latestValues)&&Uf(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};Td(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];if(i.instance&&Tf(i.latestValues)){Of(i.latestValues)&&i.updateSnapshot();var a={x:{min:0,max:0},y:{min:0,max:0}};Td(a,i.measure()),Id(n,i.latestValues,null===(t=i.snapshot)||void 0===t?void 0:t.layout,a)}}return Tf(this.latestValues)&&Id(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=Ya(Ya(Ya({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,i=this.options,a=i.layout,o=i.layoutId;this.layout&&(a||o)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},bf(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Td(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,yf(t.x,n.x,r.x),yf(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Td(this.target,this.layout.actual),If(this.target,this.targetDelta)):Td(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},bf(this.relativeTargetOrigin,this.target,this.relativeParent.target),Td(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!Tf(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var i=this.getLead();Td(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var i,a;void 0===r&&(r=!1);var o=n.length;if(o){var s,l;t.x=t.y=1;for(var u=0;u<o;u++)l=(s=n[u]).projectionDelta,"contents"!==(null===(a=null===(i=s.instance)||void 0===i?void 0:i.style)||void 0===a?void 0:a.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Uf(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,If(e,l)),r&&Tf(s.latestValues)&&Uf(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);var a=i.target;if(a){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var o=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;gf(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=Ud(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===o&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var i=this.snapshot,a=(null==i?void 0:i.latestValues)||{},o=Ya({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l={x:{min:0,max:0},y:{min:0,max:0}},u=null==i?void 0:i.isShared,c=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,f=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some(tp));this.animationProgress=0,this.mixTargetDelta=function(t){var n,i=t/1e3;Jd(s.x,e.x,i),Jd(s.y,e.y,i),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(bf(l,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){ep(e.x,t.x,n.x,r),ep(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,l,i)),u&&(r.animationValues=o,function(e,t,n,r,i,a){var o,s,l,u;i?(e.opacity=nu(0,null!==(o=n.opacity)&&void 0!==o?o:1,Sd(r)),e.opacityExit=nu(null!==(s=t.opacity)&&void 0!==s?s:1,0,Ad(r))):a&&(e.opacity=nu(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(var c=0;c<xd;c++){var f="border".concat(wd[c],"Radius"),d=kd(t,f),p=kd(n,f);void 0===d&&void 0===p||(d||(d=0),p||(p=0),0===d||0===p||Ed(d)===Ed(p)?(e[f]=Math.max(nu(_d(d),_d(p),r),0),(_s.test(p)||_s.test(d))&&(e[f]+="%")):e[f]=p)}(t.rotate||n.rotate)&&(e.rotate=nu(t.rotate||0,n.rotate||0,r))}(o,a,r.latestValues,i,f,c)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=i},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(lo.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=mo.update((function(){Yo.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=cs(0)?0:Mc(0);return Nc("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,Ya(Ya({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,i=e.latestValues;t&&n&&r&&(Td(t,n),Uf(t,i),gf(this.projectionDeltaWithTransform,this.layoutCorrected,t,i))},e.prototype.registerSharedNode=function(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Dd),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,i=t.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,i),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<ns.length;r++){var i="rotate"+ns[r];e.getStaticValue(i)&&(t=!0,n[i]=e.getStaticValue(i),e.setStaticValue(i,0))}if(t){for(var i in null==e||e.syncRender(),n)e.setStaticValue(i,n[i]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,i,a,o;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=il(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){var c={};return this.options.layoutId&&(c.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,c.pointerEvents=il(e.pointerEvents)||""),this.hasProjected&&!Tf(this.latestValues)&&(c.transform=l?l({},""):"none",this.hasProjected=!1),c}var f=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=Ud(this.projectionDeltaWithTransform,this.treeScale,f),l&&(s.transform=l(f,s.transform));var d=this.projectionDelta,p=d.x,h=d.y;for(var m in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*h.origin,"% 0"),u.animationValues?s.opacity=u===this?null!==(i=null!==(r=f.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:s.opacity=u===this?null!==(a=f.opacity)&&void 0!==a?a:"":null!==(o=f.opacityExit)&&void 0!==o?o:0,ts)if(void 0!==f[m]){var g=ts[m],y=g.correct,v=g.applyTo,b=y(f[m],u);if(v)for(var w=v.length,x=0;x<w;x++)s[v[x]]=b;else s[m]=b}return this.options.layoutId&&(s.pointerEvents=u===this?il(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Gd),this.root.sharedNodes.clear()},e}()}function Hd(e){e.updateLayout()}function Wd(e){var t,n,r,i,a=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){var o=e.layout,s=o.actual,l=o.measured;"size"===e.options.animationType?Sf((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=pf(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&Sf((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=pf(s[e]);t.max=t.min+n}));var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};gf(u,s,a.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};a.isShared?gf(c,e.applyTransform(l,!0),a.measured):gf(c,s,a.layout);var f=!Md(u),d=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,h=p.snapshot,m=p.layout;if(h&&m){var g={x:{min:0,max:0},y:{min:0,max:0}};bf(g,a.layout,h.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};bf(y,s,m.actual),Bd(g,y)||(d=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:c,layoutDelta:u,hasLayoutChanged:f,hasRelativeTargetChanged:d})}else e.isLead()&&(null===(i=(r=e.options).onExitComplete)||void 0===i||i.call(r));e.options.transition=void 0}function qd(e){e.clearSnapshot()}function Gd(e){e.clearMeasurements()}function Zd(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Yd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function $d(e){e.resolveTargetDelta()}function Kd(e){e.calcProjection()}function Xd(e){e.resetRotation()}function Qd(e){e.removeLeadSnapshot()}function Jd(e,t,n){e.translate=nu(t.translate,0,n),e.scale=nu(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ep(e,t,n,r){e.min=nu(t.min,n.min,r),e.max=nu(t.max,n.max,r)}function tp(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var np={duration:.45,ease:[.4,0,.1,1]};function rp(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var i=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function ip(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function ap(e){ip(e.x),ip(e.y)}var op=Vd({attachResizeListener:function(e,t){return fl(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),sp={current:void 0},lp=Vd({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!sp.current){var e=new op(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),sp.current=e}return sp.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),up=Ya(Ya(Ya(Ya({},Jc),Vl),Wf),bd),cp=function(e){function t(t,n){return void 0===n&&(n={}),Qo(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}((function(e,t){return function(e,t,n,r,i){var a=t.forwardMotionProps,o=void 0!==a&&a,s=es(e)?ul:cl;return Ya(Ya({},s),{preloadedFeatures:n,useRender:Zs(o),createVisualElement:r,projectionNodeConstructor:i,Component:e})}(e,t,up,dd,lp)}));const fp={success:"tw-bg-green-300",info:"tw-bg-sky-300",warning:"tw-bg-amber-300",error:"tw-bg-red-300"},dp={success:"tw-bg-green-500",info:"tw-bg-sky-500",warning:"tw-bg-amber-500",error:"tw-bg-red-500"},pp={success:"😊",info:"🔔",warning:"😮",error:"😢"};function hp(t){var n;const{dispatch:r}=(0,e.useContext)(m),[i,a]=(0,e.useState)(!1),o=(0,e.useRef)(null);(0,e.useEffect)((()=>{let e,n;return t.timeoutMs&&(e=setTimeout((()=>r(E(t.id))),300+t.timeoutMs),n=setTimeout((()=>a(!0)),300)),()=>{clearTimeout(e),clearTimeout(n)}}),[r,t.id,t.timeoutMs]);const s=(0,e.useCallback)((()=>i?"tw-w-0":"tw-w-full"),[i]);return(0,d.jsxs)("div",{className:"tw-flex tw-flex-col tw-mr-0 md:tw-mr-4 tw-border-none tw-rounded\n tw-shadow-md tw-overflow-hidden tw-pointer-events-none "+[t.textColorClass||"text-black",t.backgroundColorClass||fp[t.type]].join(" "),children:[(0,d.jsxs)("div",{className:"tw-flex tw-gap-2 tw-p-3 tw-text-lg",children:[!t.hideIcon&&(0,d.jsx)("div",{className:"tw-flex tw-items-center tw-justify-center tw-border-0 tw-rounded-full tw-w-7 tw-h-7 "+dp[t.type],children:null!==(n=t.icon)&&void 0!==n?n:pp[t.type]}),(0,d.jsxs)("div",{className:"tw-flex tw-flex-col tw-text-left",children:[t.text&&(0,d.jsx)("div",{className:"tw-whitespace-nowrap tw-text-md tw-overflow-ellipsis",children:t.text}),t.detail&&(0,d.jsx)("div",{className:"tw-text-sm",children:t.detail}),t.jsx&&(0,d.jsx)("div",{children:t.jsx})]}),!t.hideDismissBtn&&!t.showSpinner&&(0,d.jsx)("div",{className:"tw-flex tw-flex-grow tw-justify-end tw-pointer-events-auto",onClick:()=>{r(E(t.id))},children:(0,d.jsx)("div",{children:(0,d.jsx)(wa,{className:"tw-cursor-pointer hover:tw-scale-125 tw-transition-all",icon:Yt})})}),t.showSpinner&&(0,d.jsx)("div",{className:"tw-flex tw-flex-grow tw-justify-end",children:(0,d.jsx)("div",{children:(0,d.jsx)(wa,{icon:$t,className:"fa-spin"})})})]}),t.timeoutMs&&(0,d.jsx)("div",{children:(0,d.jsx)("div",{ref:o,className:"tw-h-1 tw-transition-all tw-ease-linear "+[s(),dp[t.type]].join(" "),style:{transitionDuration:"".concat(t.timeoutMs,"ms")}})})]})}function mp(){const{state:t}=(0,e.useContext)(m),{toasts:n}=t;return(0,d.jsx)("div",{className:"tw-flex tw-gap-2 tw-flex-col-reverse tw-items-end tw-fixed tw-bottom-0 tw-right-0 tw-mb-8 tw-mr-4 tw-z-50 tw-pointer-events-none",children:(0,d.jsx)(To,{children:n.map((e=>(0,d.jsx)(cp.div,{layout:!0,initial:{opacity:0,y:50,scale:.3},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,transition:{duration:.2}},children:(0,d.jsx)(hp,{...e})},e.id)))})})}const gp=t=>{const{id:n,className:r,role:i,ariaHidden:a,ariaLabel:o,initialValue:s,label:l,title:u,placeholder:c,autoComplete:f,cols:p,rows:h,disabled:m,minLength:g,readOnly:y,resize:v,wrap:b,autoResize:w,onChange:x,onEnterKey:_}=t,[E,k]=e.useState(s||""),S=e.useRef(null),A=e.useRef(0),C=()=>{S.current&&(S.current.style.height="1px",S.current.style.height="".concat(S.current.scrollHeight,"px"))};return e.useEffect((()=>{k(s),w&&S.current&&C()}),[s]),e.useEffect((()=>{if(!w)return()=>{};const e=new ResizeObserver((e=>{const t=e[0].contentRect.width;A.current!=t&&(requestAnimationFrame((()=>C())),A.current=t)}));return S.current&&e.observe(S.current),()=>{e.disconnect()}}),[w]),(0,d.jsxs)("div",{className:P("common-textarea-wrapper",m&&"disabled",v&&"resize-".concat(v),r),children:[l&&(0,d.jsx)("label",{className:"common-textarea-label",children:l}),(0,d.jsx)("div",{className:"common-textarea-group",children:(0,d.jsx)("textarea",{id:n,className:"common-textarea",title:u,role:i||"textbox",tabIndex:m?-1:0,"aria-label":o,"aria-hidden":a,placeholder:c,value:E||"",cols:p,rows:h,minLength:g,wrap:b,readOnly:!!y,ref:S,onChange:e=>{const t=e.target.value;y||E===t||k(t),x&&x(t),w&&S.current&&C()},onKeyDown:e=>{const t="number"==typeof e.which?e.which:e.keyCode;13!==t&&32!==t||_&&(e.preventDefault(),_(E))},autoComplete:f?"":"off",autoCorrect:f?"":"off",autoCapitalize:f?"":"off",spellCheck:f,disabled:m})})]})},yp=e=>{const{id:t,className:n,ariaHidden:r,ariaLabel:i,role:a,isChecked:o,onChange:s,label:l}=e;return(0,d.jsxs)("div",{className:P("common-checkbox",n),children:[(0,d.jsx)("input",{id:t,tabIndex:0,type:"checkbox",checked:o,onChange:()=>{s(!o)},onKeyDown:R,role:a,"aria-hidden":r,"aria-label":i}),l&&(0,d.jsx)("label",{htmlFor:t,children:l})]})},vp=e=>{const{children:n,id:r,className:i,ariaLabel:a,ariaHidden:o,ariaDescribedBy:s,role:l,title:u,leftIcon:c,helpUrl:f,actions:p,onClose:h,parentElement:m,fullscreen:g,hideDismissButton:y}=e,v=e=>{h&&h()},b=P("common-modal-container",g&&"fullscreen",i);return t.createPortal((0,d.jsx)(Ha,{className:b,onEscape:v,children:(0,d.jsxs)("div",{id:r,className:"common-modal",role:l||"dialog","aria-hidden":o,"aria-label":a,"aria-describedby":s,"aria-labelledby":"modal-title",children:[(0,d.jsxs)("div",{className:"common-modal-header",children:[g&&!y&&(0,d.jsx)("div",{className:"common-modal-back",children:(0,d.jsx)(L,{className:"menu-button",onClick:v,title:lf("Go Back"),label:lf("Go Back"),leftIcon:"fas fa-arrow-left"})}),(0,d.jsxs)("div",{id:"modal-title",className:"common-modal-title",children:[c&&(0,d.jsx)("i",{className:c,"aria-hidden":!0}),u]}),g&&f&&(0,d.jsx)("div",{className:"common-modal-help",children:(0,d.jsx)(L,{className:"menu-button",title:lf("Help on {0} dialog",u),href:e.helpUrl,onClick:()=>{},rightIcon:"fas fa-question"})}),!g&&!y&&(0,d.jsx)("div",{className:"common-modal-close",children:(0,d.jsx)(L,{className:"menu-button inverted",onClick:v,title:lf("Close"),rightIcon:"fas fa-times-circle"})})]}),(0,d.jsx)("div",{className:"common-modal-body",children:n}),(null==p?void 0:p.length)&&(0,d.jsx)("div",{className:"common-modal-footer",children:p.map(((e,t)=>{var n;return(0,d.jsx)(L,{className:null!==(n=e.className)&&void 0!==n?n:"primary inverted",disabled:e.disabled,onClick:e.onClick,href:e.url,label:e.label,title:e.label,rightIcon:(e.xicon?"xicon ":"")+e.icon,leftIcon:e.leftIcon},t)}))})]})}),m||document.getElementById("root")||document.body)},bp=t=>{var n,r;const{onSignIn:i,onClose:a,appMessage:o,dialogMessages:s,hideDismissButton:l}=t,{signInMessage:u,signUpMessage:c}=s||{signInMessage:lf("Sign in to save your progress and access your work anytime, anywhere."),signUpMessage:lf("Join now to save your progress and access your work anytime, anywhere.")},f=null!==(n=t.resolvePath)&&void 0!==n?n:e=>e,[p,h]=e.useState(!1),[m,g]=e.useState(null!==(r=t.mode)&&void 0!==r?r:"signin"),y=e.useMemo((()=>"signin"===m?lf("Sign in"):lf("Sign up")),[m]),v=e.useMemo((()=>"signin"===m?u:c),[m,u,c]),b=e.useMemo((()=>"signin"===m?(0,d.jsxs)("div",{className:"switch",children:[(0,d.jsx)("span",{children:lf("Don't have an account?")}),(0,d.jsx)(L,{className:"link-button",onClick:()=>g("signup"),title:lf("Sign up"),label:lf("Sign up")})]}):(0,d.jsxs)("div",{className:"switch",children:[(0,d.jsx)("span",{children:lf("Have an account?")}),(0,d.jsx)(L,{className:"link-button",onClick:()=>g("signin"),title:lf("Sign in"),label:lf("Sign in")})]})),[m]);return(0,d.jsx)(vp,{title:y,onClose:a,hideDismissButton:l,children:(0,d.jsxs)("div",{className:"signin-form",children:[(0,d.jsxs)("div",{className:"signin-header",children:[o||void 0," ",v]}),(0,d.jsx)("div",{className:"signin-body",children:(0,d.jsxs)("div",{className:"providers",children:[pxt.auth.identityProviders().map(((e,t)=>{const n="signin"===m?lf("Continue with {0}",e.name):lf("Sign up with {0}",e.name);return(0,d.jsx)(L,{className:"teal inverted provider",onClick:()=>i(e,p),title:n,ariaLabel:n,label:(0,d.jsxs)("div",{className:"label",children:[(0,d.jsx)("div",{children:(0,d.jsx)("img",{className:"logo",src:f(e.icon)})}),(0,d.jsx)("div",{className:"title",children:n})]})},t)})),(0,d.jsx)("div",{className:"rememberme",children:(0,d.jsx)(yp,{id:"rememberme",label:lf("Remember me"),isChecked:p,onChange:h})})]})}),(0,d.jsxs)("div",{className:"signin-footer",children:[b,(0,d.jsx)("div",{className:"learn",children:(0,d.jsx)(D,{href:"/identity/sign-in",target:"_blank",children:lf("Learn more")})})]})]})})};function wp(e){const{title:t,confirmLabel:n,cancelLabel:r,children:i,onConfirm:a,onCancel:o}=e,s=[{label:null!=r?r:lf("Cancel"),className:"primary inverted",onClick:o},{label:null!=n?n:lf("Confirm"),className:"primary",onClick:a}];return(0,d.jsx)(vp,{title:t,actions:s,onClose:o,children:i})}function xp(){const{state:t}=(0,e.useContext)(m),{deepLinks:n,clientRole:r,gameState:i}=t,{gameId:a}=null!=i?i:{},[o,s]=(0,e.useState)("");switch(t.modal){case"sign-in":return(0,d.jsx)(bp,{onClose:()=>h({type:"CLEAR_MODAL"}),onSignIn:async(e,t)=>{const r={};null!=n&&n.shareCode&&(r.host=n.shareCode),null!=n&&n.joinCode&&(r.join=n.joinCode),await async function(e,t,n){try{await async function(e,t,n){const r=await Me();return await(null==r?void 0:r.loginAsync(e,t,n))}(e,t,n)}catch(e){}}(e.id,t,{params:r})},dialogMessages:t.modalOpts.dialogMessages,hideDismissButton:!0});case"report-abuse":return(0,d.jsx)(wp,{title:lf("Report Abuse"),confirmLabel:lf("Submit Report"),onConfirm:async()=>{h({type:"CLEAR_MODAL"}),await async function(e,t){try{if(pxt.tickEvent("mp.reportabuse"),200!==(await fetch("https://makecode.com/api/".concat(e,"/abusereports"),{method:"POST",body:JSON.stringify({text:t})})).status)throw new Error("Failed to send abuse report");h(_({type:"success",text:lf("Thank you for helping keep Microsoft MakeCode a friendly place!"),icon:"✅",timeoutMs:5e3}))}catch(e){h(_({type:"error",text:lf("Sorry, we couldn't send your report. Please try again later."),timeoutMs:5e3}))}}(a,o)},onCancel:()=>h({type:"CLEAR_MODAL"}),children:(0,d.jsxs)("div",{className:"tw-flex tw-flex-col tw-gap-4",children:[(0,d.jsx)("div",{children:lf("Why do you find it offensive?")}),(0,d.jsx)("div",{children:(0,d.jsx)(gp,{onChange:s})})]})});case"kick-player":return(0,d.jsx)(wp,{title:lf("Kick Player"),onConfirm:()=>{h({type:"CLEAR_MODAL"}),function(e){try{pxt.tickEvent("mp.kickplayer"),function(e){var t;null===(t=ft)||void 0===t||t.kickPlayer(e)}(e),h(_({type:"info",text:lf("Player kicked"),timeoutMs:5e3}))}catch(e){}}(t.modalOpts.clientId)},onCancel:()=>h({type:"CLEAR_MODAL"}),children:(0,d.jsx)("div",{children:lf("Kick this player? They will be blocked from rejoining the game.")})});case"leave-game":return"host"===r?(0,d.jsx)(wp,{title:lf("End the Game"),onConfirm:async()=>{h({type:"CLEAR_MODAL"}),await yt("ended")},onCancel:()=>h({type:"CLEAR_MODAL"}),children:(0,d.jsx)("div",{children:lf("End the game? All players will be disconnected.")})}):(0,d.jsx)(wp,{title:lf("Leave Game"),onConfirm:async()=>{h({type:"CLEAR_MODAL"}),await yt("left")},onCancel:()=>h({type:"CLEAR_MODAL"}),children:(0,d.jsx)("div",{children:lf("Leave the game?")})});default:return null}}function _p(){const{state:t}=(0,e.useContext)(m),{gamePaused:n,clientRole:r}=t;return(0,d.jsxs)(d.Fragment,{children:[n&&"host"===r&&(0,d.jsxs)("div",{className:"tw-fixed tw-flex tw-flex-col tw-gap-4 tw-z-40 tw-p-5 tw-bg-white tw-rounded-lg tw-drop-shadow-2xl tw-border tw-top-[50%] tw-left-[50%] tw-translate-x-[-50%] tw-translate-y-[-50%]",children:[(0,d.jsx)("div",{className:"tw-text-left tw-font-bold tw-text-lg",children:lf("Game Paused")}),(0,d.jsx)("div",{className:"tw-text-left",children:lf("The game is paused. Press the resume button to continue.")}),(0,d.jsx)("div",{className:"tw-text-right",children:(0,d.jsx)(L,{title:lf("Resume"),label:lf("Resume"),className:"primary",onClick:async()=>{await St()}})})]}),n&&"host"!==r&&(0,d.jsxs)("div",{className:"tw-fixed tw-flex tw-flex-col tw-gap-4 tw-z-40 tw-p-5 tw-bg-white tw-rounded-lg tw-drop-shadow-2xl tw-border tw-top-[50%] tw-left-[50%] tw-translate-x-[-50%] tw-translate-y-[-50%]",children:[(0,d.jsx)("div",{className:"tw-text-left tw-font-bold tw-text-lg",children:lf("Game Paused")}),(0,d.jsx)("div",{className:"tw-text-left",children:lf("The game is paused. Please wait for the host to resume the game.")})]})]})}const Ep=function(){const{state:t,dispatch:n}=(0,e.useContext)(m),{authStatus:r,deepLinks:i,targetConfig:a}=t,{shareCode:o,joinCode:s}=i,[l,u]=(0,e.useState)(!1);(0,e.useEffect)((()=>{a||(pxt.BrowserUtils.isLocalHostDev()?fetch("/blb/targetconfig.json",{method:"GET"}).then((e=>e.json())):pxt.targetConfigAsync()).then((e=>{return e&&n((t=e,{type:"SET_TARGET_CONFIG",targetConfig:JSON.parse(JSON.stringify(t))}));var t}))})),function(t){(0,e.useEffect)((()=>{const e=()=>{t("visible"===document.visibilityState)};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}}),[])}(At),(0,e.useEffect)((()=>{(async function(){const e=await Me(),t=pxt.Util.parseQueryString(window.location.href);if(!t.authcallback)return await(null==e?void 0:e.authCheckAsync());await pxt.auth.loginCallbackAsync(t)})().then((()=>u(!0))).catch((()=>u(!0)))}),[u]);const c=(0,e.useCallback)((()=>{var e,t;let r;r="?"===window.location.hash[1]?new URLSearchParams(window.location.hash.substr(1)):new URLSearchParams(window.location.search);let i=null!==(e=r.get("host"))&&void 0!==e?e:void 0,a=null!==(t=r.get("join"))&&void 0!==t?t:void 0;i=We(i),a=He(a),n(S(i,a))}),[n]);return(0,e.useEffect)((()=>{l&&c()}),[l,c]),(0,e.useEffect)((()=>{l&&(o||s)&&"signed-in"===r&&(o?mt(o).then((()=>{})).catch((()=>{})):s&>(s).then((()=>{})).catch((()=>{})),n(S(void 0,void 0)))}),[n,r,o,s,l]),(0,d.jsxs)("div",{className:"".concat(pxt.appTarget.id," tw-flex tw-flex-col"),children:[!l&&(0,d.jsx)(y,{}),l&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(qa,{}),"signed-out"===r&&(0,d.jsx)(N,{}),"signed-in"===r&&(0,d.jsx)(za,{})]}),(0,d.jsx)(xp,{}),(0,d.jsx)(_p,{}),(0,d.jsx)(mp,{})]})};var kp=n(3705);window.addEventListener("DOMContentLoaded",(()=>{const n=window.pxtTargetBundle;if(pxt.options.debug=/dbg=1/i.test(window.location.href),pxt.options.debug&&(pxt.debug=kp.debug),pxt.setupWebConfig(window.pxtConfig||pxt.webConfig),pxt.setAppTarget(n),pxt.BrowserUtils.isLocalHostDev()){const e=pxt.webConfig;for(const t of Object.keys(e)){var r,i;null!==(r=e[t])&&void 0!==r&&r.startsWith("/")&&-1==(null===(i=e[t])||void 0===i?void 0:i.indexOf("worker"))&&(e[t]="http://localhost:3232".concat(e[t]))}pxt.webConfig.workerjs="/blb".concat(pxt.webConfig.workerjs)}pxt.Cloud.apiRoot="https://www.makecode.com/api/",function(){pxt.analytics.enable(pxt.Util.userLanguage());const e={};if("undefined"!=typeof window){const t=window.screen;e["screen.width"]=t.width,e["screen.height"]=t.height,e["screen.availwidth"]=t.availWidth,e["screen.availheight"]=t.availHeight,e["screen.innerWidth"]=window.innerWidth,e["screen.innerHeight"]=window.innerHeight,e["screen.devicepixelratio"]=pxt.BrowserUtils.devicePixelRatio();const n=document.firstElementChild;n&&(e["screen.clientWidth"]=n.clientWidth,e["screen.clientHeight"]=n.clientHeight)}pxt.tickEvent("mp.loaded",e)}(),pxt.worker.getWorker(pxt.webConfig.workerjs),t.render((0,d.jsx)(e.StrictMode,{children:(0,d.jsx)(g,{children:(0,d.jsx)(Ep,{})})}),document.getElementById("root"))}))})()})();
|