pxt-core 12.3.4 → 12.3.5
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 +41 -18
- package/built/pxtsim.js +41 -18
- package/built/react-common/components/controls/Button.d.ts +1 -0
- package/built/target.js +1 -1
- package/built/targetlight.js +1 -1
- package/built/web/kiosk/js/{main.b3083da5.js → main.7320e5e8.js} +2 -2
- package/built/web/main.js +1 -1
- package/built/web/multiplayer/js/{main.72a211e1.js → main.aa183a08.js} +2 -2
- package/built/web/pxtapp.js +1 -1
- package/built/web/pxtasseteditor.js +1 -1
- package/built/web/pxtembed.js +2 -2
- package/built/web/pxtsim.js +1 -1
- package/built/web/rtlsemantic.css +1 -1
- package/built/web/semantic.css +1 -1
- package/built/web/skillmap/js/{main.382b1924.js → main.4fdc29c4.js} +2 -2
- package/built/web/teachertool/js/{main.85df12a6.js → main.9e4ce33c.js} +2 -2
- package/built/web/tutorialtool/js/{main.6a5bc58e.js → main.0298dba6.js} +2 -2
- package/package.json +1 -1
- package/react-common/components/controls/Button.tsx +3 -0
- package/react-common/components/controls/MenuDropdown.tsx +86 -63
- package/react-common/components/theming/ThemePreview.tsx +1 -1
- package/theme/common.less +1 -0
- 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
|
@@ -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),o=n(8898),a=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,o,a){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=o,this.removeEmptyString=a}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,j=60120,P=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"),j=F("react.suspense_list"),P=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"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&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 j: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 P: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,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.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 o({},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")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(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 oe(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=o({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 o({},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=o({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=ii(e)){if("function"!=typeof Oe)throw Error(s(280));var t=e.stateNode;t&&(t=ai(t),Oe(e.stateNode,e.type,t))}}function je(e){Te?Ne?Ne.push(e):Ne=[e]:Te=e}function Pe(){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(),Pe())}function ze(e,t){var n=e.stateNode;if(null===n)return null;var r=ai(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,o,a,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,o,a,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{!!(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 o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Je(i),e;if(o===r)return Je(i),t;o=o.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a)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),!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,ot,at=!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,o){return null===e||e.nativeEvent!==o?(e=mt(t,n,r,i,o),null!==t&&null!==(t=ii(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=ri(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 ot(e.lanePriority,function(){a.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=ii(n))&&rt(t),e.blockedOn=n,!1;t.shift()}return!0}function wt(e,t,n){bt(e)&&n.delete(t)}function xt(){for(at=!1;0<st.length;){var e=st[0];if(null!==e.blockedOn){null!==(e=ii(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,at||(at=!0,a.unstable_scheduleCallback(a.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"),jt=Ot("transitionend"),Pt=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",jt,"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),Pt.set(r,i),c(i,[r])}}(0,a.unstable_now)();var Bt=8;function Dt(e){if(1&e)return Bt=15,1;if(2&e)return Bt=14,2;if(4&e)return Bt=13,4;var t=24&e;return 0!==t?(Bt=12,t):32&e?(Bt=11,32):0!=(t=192&e)?(Bt=10,t):256&e?(Bt=9,256):0!=(t=3584&e)?(Bt=8,t):4096&e?(Bt=7,4096):0!=(t=4186112&e)?(Bt=6,t):0!=(t=62914560&e)?(Bt=5,t):67108864&e?(Bt=4,67108864):134217728&e?(Bt=3,134217728):0!=(t=805306368&e)?(Bt=2,t):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,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,i=Bt=15;else if(0!=(o=134217727&n)){var l=o&~a;0!==l?(r=Dt(l),i=Bt):0!==(s&=o)&&(r=Dt(s),i=Bt)}else 0!==(o=n&~a)?(r=Dt(o),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&a)){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=a.unstable_UserBlockingPriority,$t=a.unstable_runWithPriority,Kt=!0;function Xt(e,t,n,r){De||Me();var i=Jt,o=De;De=!0;try{Le(i,e,t,n,r)}finally{(De=o)||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=!(4&t))&&0<st.length&&-1<ht.indexOf(e))e=mt(null,e,t,n,r),st.push(e);else{var o=en(e,t,n,r);if(null===o)i&>(e,r);else{if(i){if(-1<ht.indexOf(e))return e=mt(o,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 o=i.pointerId;return ft.set(o,yt(ft.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,dt.set(o,yt(dt.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;gt(e,r)}Mr(e,t,r,null,n)}}}function en(e,t,n,r){var i=Ce(r);if(null!==(i=ri(i))){var o=Xe(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Qe(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Mr(e,t,r,i,n),null}var tn=null,nn=null,rn=null;function on(){if(rn)return rn;var e,t,n=nn,r=n.length,i="value"in tn?tn.value:tn.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return rn=i.slice(e,1<t?1-t:void 0)}function an(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,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?sn:ln,this.isPropagationStopped=ln,this}return o(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=o({},pn,{view:0,detail:0}),gn=un(mn),yn=o({},mn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,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(o({},yn,{dataTransfer:0})),wn=un(o({},mn,{relatedTarget:0})),xn=un(o({},pn,{animationName:0,elapsedTime:0,pseudoElement:0})),_n=o({},pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),En=un(_n),kn=un(o({},pn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},An={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"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function On(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function Tn(){return On}var Nn=o({},mn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=an(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?An[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?an(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?an(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Rn=un(Nn),jn=un(o({},yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=un(o({},mn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),In=un(o({},pn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=o({},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}),Mn=un(Ln),Bn=[9,13,27,32],Dn=d&&"CompositionEvent"in window,Un=null;d&&"documentMode"in document&&(Un=document.documentMode);var Fn=d&&"TextEvent"in window&&!Un,zn=d&&(!Dn||Un&&8<Un&&11>=Un),Vn=String.fromCharCode(32),Hn=!1;function Wn(e,t){switch(e){case"keyup":return-1!==Bn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Gn=!1,Zn={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 Yn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Zn[e.type]:"textarea"===t}function $n(e,t,n,r){je(r),0<(t=Dr(t,"onChange")).length&&(n=new hn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,Xn=null;function Qn(e){Nr(e,0)}function Jn(e){if(Q(oi(e)))return e}function er(e,t){if("change"===e)return t}var tr=!1;if(d){var nr;if(d){var rr="oninput"in document;if(!rr){var ir=document.createElement("div");ir.setAttribute("oninput","return;"),rr="function"==typeof ir.oninput}nr=rr}else nr=!1;tr=nr&&(!document.documentMode||9<document.documentMode)}function or(){Kn&&(Kn.detachEvent("onpropertychange",ar),Xn=Kn=null)}function ar(e){if("value"===e.propertyName&&Jn(Xn)){var t=[];if($n(t,Xn,e,Ce(e)),e=Qn,De)e(t);else{De=!0;try{Ie(e,t)}finally{De=!1,Fe()}}}}function sr(e,t,n){"focusin"===e?(or(),Xn=n,(Kn=t).attachEvent("onpropertychange",ar)):"focusout"===e&&or()}function lr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn(Xn)}function ur(e,t){if("click"===e)return Jn(t)}function cr(e,t){if("input"===e||"change"===e)return Jn(t)}var fr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},dr=Object.prototype.hasOwnProperty;function pr(e,t){if(fr(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(!dr.call(t,n[r])||!fr(e[n[r]],t[n[r]]))return!1;return!0}function hr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mr(e,t){var n,r=hr(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=hr(r)}}function gr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?gr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function yr(){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 vr(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 br=d&&"documentMode"in document&&11>=document.documentMode,wr=null,xr=null,_r=null,Er=!1;function kr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Er||null==wr||wr!==J(r)||(r="selectionStart"in(r=wr)&&vr(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},_r&&pr(_r,r)||(_r=r,0<(r=Dr(xr,"onSelect")).length&&(t=new hn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=wr)))}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 Sr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ar=0;Ar<Sr.length;Ar++)It.set(Sr[Ar],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 Cr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Or=new Set("cancel close invalid load scroll toggle".split(" ").concat(Cr));function Tr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,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 Nr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Tr(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Tr(i,s,u),o=l}}}if(Ze)throw e=Ye,Ze=!1,Ye=null,e}function Rr(e,t){var n=si(t),r=e+"__bubble";n.has(r)||(Lr(t,e,2,!1),n.add(r))}var jr="_reactListening"+Math.random().toString(36).slice(2);function Pr(e){e[jr]||(e[jr]=!0,l.forEach(function(t){Or.has(t)||Ir(t,!1,e,null),Ir(t,!0,e,null)}))}function Ir(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Or.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=si(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),Lr(o,e,i,t),a.add(s))}function Lr(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 Mr(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=ri(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Ue)return e();Ue=!0;try{return Be(e,t,n)}finally{Ue=!1,Fe()}}(function(){var r=o,i=Ce(n),a=[];e:{var s=Pt.get(e);if(void 0!==s){var l=hn,u=e;switch(e){case"keypress":if(0===an(n))break e;case"keydown":case"keyup":l=Rn;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=Pn;break;case Tt:case Nt:case Rt:l=xn;break;case jt:l=In;break;case"scroll":l=gn;break;case"wheel":l=Mn;break;case"copy":case"cut":case"paste":l=En;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=jn}var c=!!(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(Br(h,m,p))),f)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||16&t||!(u=n.relatedTarget||n.fromElement)||!ri(u)&&!u[ti])&&(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)?ri(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=jn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==l?s:oi(l),p=null==u?s:oi(u),(s=new c(m,h+"leave",l,n,i)).target=f,s.relatedTarget=p,m=null,ri(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=Ur(p))h++;for(p=0,m=d;m;m=Ur(m))p++;for(;0<h-p;)c=Ur(c),h--;for(;0<p-h;)d=Ur(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ur(c),d=Ur(d)}c=null}else c=null;null!==l&&Fr(a,s,l,c,!1),null!==u&&null!==f&&Fr(a,f,u,c,!0)}if("select"===(l=(s=r?oi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=er;else if(Yn(s))if(tr)g=cr;else{g=lr;var y=sr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ur);switch(g&&(g=g(e,r))?$n(a,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&oe(s,"number",s.value)),y=r?oi(r):window,e){case"focusin":(Yn(y)||"true"===y.contentEditable)&&(wr=y,xr=r,_r=null);break;case"focusout":_r=xr=wr=null;break;case"mousedown":Er=!0;break;case"contextmenu":case"mouseup":case"dragend":Er=!1,kr(a,n,i);break;case"selectionchange":if(br)break;case"keydown":case"keyup":kr(a,n,i)}var v;if(Dn)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 Gn?Wn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(zn&&"ko"!==n.locale&&(Gn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Gn&&(v=on()):(nn="value"in(tn=i)?tn.value:tn.textContent,Gn=!0)),0<(y=Dr(r,b)).length&&(b=new kn(b,e,null,n,i),a.push({event:b,listeners:y}),(v||null!==(v=qn(n)))&&(b.data=v))),(v=Fn?function(e,t){switch(e){case"compositionend":return qn(t);case"keypress":return 32!==t.which?null:(Hn=!0,Vn);case"textInput":return(e=t.data)===Vn&&Hn?null:e;default:return null}}(e,n):function(e,t){if(Gn)return"compositionend"===e||!Dn&&Wn(e,t)?(e=on(),rn=nn=tn=null,Gn=!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 zn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Dr(r,"onBeforeInput")).length&&(i=new kn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v)}Nr(a,t)})}function Br(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Dr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=ze(e,n))&&r.unshift(Br(e,o,i)),null!=(o=ze(e,t))&&r.push(Br(e,o,i))),e=e.return}return r}function Ur(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Fr(e,t,n,r,i){for(var o=t._reactName,a=[];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,o))&&a.unshift(Br(n,l,s)):i||null!=(l=ze(n,o))&&a.push(Br(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function zr(){}var Vr=null,Hr=null;function Wr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function qr(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 Gr="function"==typeof setTimeout?setTimeout:void 0,Zr="function"==typeof clearTimeout?clearTimeout:void 0;function Yr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function $r(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Kr(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 Xr=0,Qr=Math.random().toString(36).slice(2),Jr="__reactFiber$"+Qr,ei="__reactProps$"+Qr,ti="__reactContainer$"+Qr,ni="__reactEvents$"+Qr;function ri(e){var t=e[Jr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ti]||n[Jr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Kr(e);null!==e;){if(n=e[Jr])return n;e=Kr(e)}return t}n=(e=n).parentNode}return null}function ii(e){return!(e=e[Jr]||e[ti])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function oi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function ai(e){return e[ei]||null}function si(e){var t=e[ni];return void 0===t&&(t=e[ni]=new Set),t}var li=[],ui=-1;function ci(e){return{current:e}}function fi(e){0>ui||(e.current=li[ui],li[ui]=null,ui--)}function di(e,t){ui++,li[ui]=e.current,e.current=t}var pi={},hi=ci(pi),mi=ci(!1),gi=pi;function yi(e,t){var n=e.type.contextTypes;if(!n)return pi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function vi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function bi(){fi(mi),fi(hi)}function wi(e,t,n){if(hi.current!==pi)throw Error(s(168));di(hi,t),di(mi,n)}function xi(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 o({},n,r)}function _i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pi,gi=hi.current,di(hi,e),di(mi,mi.current),!0}function Ei(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=xi(e,t,gi),r.__reactInternalMemoizedMergedChildContext=e,fi(mi),fi(hi),di(hi,e)):fi(mi),di(mi,n)}var ki=null,Si=null,Ai=a.unstable_runWithPriority,Ci=a.unstable_scheduleCallback,Oi=a.unstable_cancelCallback,Ti=a.unstable_shouldYield,Ni=a.unstable_requestPaint,Ri=a.unstable_now,ji=a.unstable_getCurrentPriorityLevel,Pi=a.unstable_ImmediatePriority,Ii=a.unstable_UserBlockingPriority,Li=a.unstable_NormalPriority,Mi=a.unstable_LowPriority,Bi=a.unstable_IdlePriority,Di={},Ui=void 0!==Ni?Ni:function(){},Fi=null,zi=null,Vi=!1,Hi=Ri(),Wi=1e4>Hi?Ri:function(){return Ri()-Hi};function qi(){switch(ji()){case Pi:return 99;case Ii:return 98;case Li:return 97;case Mi:return 96;case Bi:return 95;default:throw Error(s(332))}}function Gi(e){switch(e){case 99:return Pi;case 98:return Ii;case 97:return Li;case 96:return Mi;case 95:return Bi;default:throw Error(s(332))}}function Zi(e,t){return e=Gi(e),Ai(e,t)}function Yi(e,t,n){return e=Gi(e),Ci(e,t,n)}function $i(){if(null!==zi){var e=zi;zi=null,Oi(e)}Ki()}function Ki(){if(!Vi&&null!==Fi){Vi=!0;var e=0;try{var t=Fi;Zi(99,function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}}),Fi=null}catch(t){throw null!==Fi&&(Fi=Fi.slice(e+1)),Ci(Pi,$i),t}finally{Vi=!1}}}var Xi=_.ReactCurrentBatchConfig;function Qi(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ji=ci(null),eo=null,to=null,no=null;function ro(){no=to=eo=null}function io(e){var t=Ji.current;fi(Ji),e.type._context._currentValue=t}function oo(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 ao(e,t){eo=e,no=to=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Da=!0),e.firstContext=null)}function so(e,t){if(no!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(no=e,t=1073741823),t={context:e,observedBits:t,next:null},null===to){if(null===eo)throw Error(s(308));to=t,eo.dependencies={lanes:0,firstContext:t,responders:null}}else to=to.next=t;return e._currentValue}var lo=!1;function uo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function co(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 fo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function po(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 ho(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function mo(e,t,n,r){var i=e.updateQueue;lo=!1;var a=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?a=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!==a){for(d=i.baseState,s=0,f=c=u=null;;){l=a.lane;var p=a.eventTime;if((r&l)===l){null!==f&&(f=f.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;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=o({},d,l);break e;case 2:lo=!0}}null!==a.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[a]:l.push(a))}else p={eventTime:p,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=p,u=d):f=f.next=p,s|=l;if(null===(a=a.next)){if(null===(l=i.shared.pending))break;a=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,zs|=s,e.lanes=s,e.memoizedState=d}}function go(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 yo=(new i.Component).refs;function vo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var bo={isMounted:function(e){return!!(e=e._reactInternals)&&Xe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=dl(),i=pl(e),o=fo(r,i);o.payload=t,null!=n&&(o.callback=n),po(e,o),hl(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=dl(),i=pl(e),o=fo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),po(e,o),hl(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=dl(),r=pl(e),i=fo(n,r);i.tag=2,null!=t&&(i.callback=t),po(e,i),hl(e,r,n)}};function wo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&pr(n,r)&&pr(i,o))}function xo(e,t,n){var r=!1,i=pi,o=t.contextType;return"object"==typeof o&&null!==o?o=so(o):(i=vi(t)?gi:hi.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?yi(e,i):pi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=bo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function _o(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&&bo.enqueueReplaceState(t,t.state,null)}function Eo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=yo,uo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=so(o):(o=vi(t)?gi:hi.current,i.context=yi(e,o)),mo(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(vo(e,t,o,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&&bo.enqueueReplaceState(i,i.state,null),mo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var ko=Array.isArray;function So(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===yo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function Ao(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 Co(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=Gl(e,t)).index=0,e.sibling=null,e}function o(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 a(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Kl(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=So(e,t,n),r.return=e,r):((r=Zl(n.type,n.key,n.props,null,e.mode,r)).ref=So(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=Xl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Yl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Kl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Zl(t.type,t.key,t.props,null,e.mode,n)).ref=So(e,null,t),n.return=e,n;case k:return(t=Xl(t,e.mode,n)).return=e,t}if(ko(t)||H(t))return(t=Yl(t,e.mode,n,null)).return=e,t;Ao(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(ko(n)||H(n))return null!==i?null:f(e,t,n,r,null);Ao(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(ko(r)||H(r))return f(t,e=e.get(n)||null,r,i,null);Ao(t,r)}return null}function m(i,a,s,l){for(var u=null,c=null,f=a,m=a=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),a=o(y,a,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))&&(a=o(f,a,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),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&f.forEach(function(e){return t(i,e)}),u}function g(i,a,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=a,g=a=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),a=o(b,a,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))&&(a=o(v,a,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),a=o(v,a,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,o,l){var u="object"==typeof o&&null!==o&&o.type===S&&null===o.key;u&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case E:e:{for(c=o.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(o.type===S){n(e,u.sibling),(r=i(u,o.props.children)).return=e,e=r;break e}}else if(u.elementType===o.type){n(e,u.sibling),(r=i(u,o.props)).ref=So(e,u,o),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}o.type===S?((r=Yl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=Zl(o.type,o.key,o.props,null,e.mode,l)).ref=So(e,r,o),l.return=e,e=l)}return a(e);case k:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Xl(o,e.mode,l)).return=e,e=r}return a(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Kl(o,e.mode,l)).return=e,e=r),a(e);if(ko(o))return m(e,r,o,l);if(H(o))return g(e,r,o,l);if(c&&Ao(e,o),void 0===o&&!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 Oo=Co(!0),To=Co(!1),No={},Ro=ci(No),jo=ci(No),Po=ci(No);function Io(e){if(e===No)throw Error(s(174));return e}function Lo(e,t){switch(di(Po,t),di(jo,e),di(Ro,No),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)}fi(Ro),di(Ro,t)}function Mo(){fi(Ro),fi(jo),fi(Po)}function Bo(e){Io(Po.current);var t=Io(Ro.current),n=me(t,e.type);t!==n&&(di(jo,e),di(Ro,n))}function Do(e){jo.current===e&&(fi(Ro),fi(jo))}var Uo=ci(0);function Fo(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(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 zo=null,Vo=null,Ho=!1;function Wo(e,t){var n=Wl(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 qo(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 Go(e){if(Ho){var t=Vo;if(t){var n=t;if(!qo(e,t)){if(!(t=$r(n.nextSibling))||!qo(e,t))return e.flags=-1025&e.flags|2,Ho=!1,void(zo=e);Wo(zo,n)}zo=e,Vo=$r(t.firstChild)}else e.flags=-1025&e.flags|2,Ho=!1,zo=e}}function Zo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;zo=e}function Yo(e){if(e!==zo)return!1;if(!Ho)return Zo(e),Ho=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!qr(t,e.memoizedProps))for(t=Vo;t;)Wo(e,t),t=$r(t.nextSibling);if(Zo(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){Vo=$r(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Vo=null}}else Vo=zo?$r(e.stateNode.nextSibling):null;return!0}function $o(){Vo=zo=null,Ho=!1}var Ko=[];function Xo(){for(var e=0;e<Ko.length;e++)Ko[e]._workInProgressVersionPrimary=null;Ko.length=0}var Qo=_.ReactCurrentDispatcher,Jo=_.ReactCurrentBatchConfig,ea=0,ta=null,na=null,ra=null,ia=!1,oa=!1;function aa(){throw Error(s(321))}function sa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!fr(e[n],t[n]))return!1;return!0}function la(e,t,n,r,i,o){if(ea=o,ta=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Qo.current=null===e||null===e.memoizedState?Ia:La,e=n(r,i),oa){o=0;do{if(oa=!1,!(25>o))throw Error(s(301));o+=1,ra=na=null,t.updateQueue=null,Qo.current=Ma,e=n(r,i)}while(oa)}if(Qo.current=Pa,t=null!==na&&null!==na.next,ea=0,ra=na=ta=null,ia=!1,t)throw Error(s(300));return e}function ua(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ra?ta.memoizedState=ra=e:ra=ra.next=e,ra}function ca(){if(null===na){var e=ta.alternate;e=null!==e?e.memoizedState:null}else e=na.next;var t=null===ra?ta.memoizedState:ra.next;if(null!==t)ra=t,na=e;else{if(null===e)throw Error(s(310));e={memoizedState:(na=e).memoizedState,baseState:na.baseState,baseQueue:na.baseQueue,queue:na.queue,next:null},null===ra?ta.memoizedState=ra=e:ra=ra.next=e}return ra}function fa(e,t){return"function"==typeof t?t(e):t}function da(e){var t=ca(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=na,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=a=o=null,u=i;do{var c=u.lane;if((ea&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?(a=l=f,o=r):l=l.next=f,ta.lanes|=c,zs|=c}u=u.next}while(null!==u&&u!==i);null===l?o=r:l.next=a,fr(r,t.memoizedState)||(Da=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function pa(e){var t=ca(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);fr(o,t.memoizedState)||(Da=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ha(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=(ea&e)===e)&&(t._workInProgressVersionPrimary=r,Ko.push(t))),e)return n(t._source);throw Ko.push(t),Error(s(350))}function ma(e,t,n,r){var i=Ps;if(null===i)throw Error(s(349));var o=t._getVersion,a=o(t._source),l=Qo.current,u=l.useState(function(){return ha(i,t,n)}),c=u[1],f=u[0];u=ra;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var g=ta;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect(function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!fr(a,e)){e=n(t._source),fr(f,e)||(c(e),e=pl(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=pl(g);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n(function(){throw e})}})},[t,r]),fr(h,n)&&fr(m,t)&&fr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:fa,lastRenderedState:f}).dispatch=c=ja.bind(null,ta,e),u.queue=e,u.baseQueue=null,f=ha(i,t,n),u.memoizedState=u.baseState=f),f}function ga(e,t,n){return ma(ca(),e,t,n)}function ya(e){var t=ua();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:fa,lastRenderedState:e}).dispatch=ja.bind(null,ta,e),[t.memoizedState,e]}function va(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ta.updateQueue)?(t={lastEffect:null},ta.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 ba(e){return e={current:e},ua().memoizedState=e}function wa(){return ca().memoizedState}function xa(e,t,n,r){var i=ua();ta.flags|=e,i.memoizedState=va(1|t,n,void 0,void 0===r?null:r)}function _a(e,t,n,r){var i=ca();r=void 0===r?null:r;var o=void 0;if(null!==na){var a=na.memoizedState;if(o=a.destroy,null!==r&&sa(r,a.deps))return void va(t,n,o,r)}ta.flags|=e,i.memoizedState=va(1|t,n,o,r)}function Ea(e,t){return xa(516,4,e,t)}function ka(e,t){return _a(516,4,e,t)}function Sa(e,t){return _a(4,2,e,t)}function Aa(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 Ca(e,t,n){return n=null!=n?n.concat([e]):null,_a(4,2,Aa.bind(null,t,e),n)}function Oa(){}function Ta(e,t){var n=ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&sa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Na(e,t){var n=ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&sa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ra(e,t){var n=qi();Zi(98>n?98:n,function(){e(!0)}),Zi(97<n?97:n,function(){var n=Jo.transition;Jo.transition=1;try{e(!1),t()}finally{Jo.transition=n}})}function ja(e,t,n){var r=dl(),i=pl(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===ta||null!==a&&a===ta)oa=ia=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(o.eagerReducer=a,o.eagerState=l,fr(l,s))return}catch(e){}hl(e,i,r)}}var Pa={readContext:so,useCallback:aa,useContext:aa,useEffect:aa,useImperativeHandle:aa,useLayoutEffect:aa,useMemo:aa,useReducer:aa,useRef:aa,useState:aa,useDebugValue:aa,useDeferredValue:aa,useTransition:aa,useMutableSource:aa,useOpaqueIdentifier:aa,unstable_isNewReconciler:!1},Ia={readContext:so,useCallback:function(e,t){return ua().memoizedState=[e,void 0===t?null:t],e},useContext:so,useEffect:Ea,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,xa(4,2,Aa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xa(4,2,e,t)},useMemo:function(e,t){var n=ua();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ua();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=ja.bind(null,ta,e),[r.memoizedState,e]},useRef:ba,useState:ya,useDebugValue:Oa,useDeferredValue:function(e){var t=ya(e),n=t[0],r=t[1];return Ea(function(){var t=Jo.transition;Jo.transition=1;try{r(e)}finally{Jo.transition=t}},[e]),n},useTransition:function(){var e=ya(!1),t=e[0];return ba(e=Ra.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ua();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ma(r,e,t,n)},useOpaqueIdentifier:function(){if(Ho){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}(function(){throw e||(e=!0,n("r:"+(Xr++).toString(36))),Error(s(355))}),n=ya(t)[1];return!(2&ta.mode)&&(ta.flags|=516,va(5,function(){n("r:"+(Xr++).toString(36))},void 0,null)),t}return ya(t="r:"+(Xr++).toString(36)),t},unstable_isNewReconciler:!1},La={readContext:so,useCallback:Ta,useContext:so,useEffect:ka,useImperativeHandle:Ca,useLayoutEffect:Sa,useMemo:Na,useReducer:da,useRef:wa,useState:function(){return da(fa)},useDebugValue:Oa,useDeferredValue:function(e){var t=da(fa),n=t[0],r=t[1];return ka(function(){var t=Jo.transition;Jo.transition=1;try{r(e)}finally{Jo.transition=t}},[e]),n},useTransition:function(){var e=da(fa)[0];return[wa().current,e]},useMutableSource:ga,useOpaqueIdentifier:function(){return da(fa)[0]},unstable_isNewReconciler:!1},Ma={readContext:so,useCallback:Ta,useContext:so,useEffect:ka,useImperativeHandle:Ca,useLayoutEffect:Sa,useMemo:Na,useReducer:pa,useRef:wa,useState:function(){return pa(fa)},useDebugValue:Oa,useDeferredValue:function(e){var t=pa(fa),n=t[0],r=t[1];return ka(function(){var t=Jo.transition;Jo.transition=1;try{r(e)}finally{Jo.transition=t}},[e]),n},useTransition:function(){var e=pa(fa)[0];return[wa().current,e]},useMutableSource:ga,useOpaqueIdentifier:function(){return pa(fa)[0]},unstable_isNewReconciler:!1},Ba=_.ReactCurrentOwner,Da=!1;function Ua(e,t,n,r){t.child=null===e?To(t,null,n,r):Oo(t,e.child,n,r)}function Fa(e,t,n,r,i){n=n.render;var o=t.ref;return ao(t,i),r=la(e,t,n,r,o,i),null===e||Da?(t.flags|=1,Ua(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,os(e,t,i))}function za(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||ql(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Zl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Va(e,t,a,r,i,o))}return a=e.child,0===(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:pr)(i,r)&&e.ref===t.ref)?os(e,t,o):(t.flags|=1,(e=Gl(a,r)).ref=t.ref,e.return=t,t.child=e)}function Va(e,t,n,r,i,o){if(null!==e&&pr(e.memoizedProps,r)&&e.ref===t.ref){if(Da=!1,0===(o&i))return t.lanes=e.lanes,os(e,t,o);16384&e.flags&&(Da=!0)}return qa(e,t,n,r,o)}function Ha(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(4&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},_l(t,e),null;t.memoizedState={baseLanes:0},_l(t,null!==o?o.baseLanes:n)}else t.memoizedState={baseLanes:0},_l(t,n);else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,_l(t,r);return Ua(e,t,i,n),t.child}function Wa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function qa(e,t,n,r,i){var o=vi(n)?gi:hi.current;return o=yi(t,o),ao(t,i),n=la(e,t,n,r,o,i),null===e||Da?(t.flags|=1,Ua(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,os(e,t,i))}function Ga(e,t,n,r,i){if(vi(n)){var o=!0;_i(t)}else o=!1;if(ao(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),xo(t,n,r),Eo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?so(u):yi(t,u=vi(n)?gi:hi.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&_o(t,a,r,u),lo=!1;var d=t.memoizedState;a.state=d,mo(t,r,a,i),l=t.memoizedState,s!==r||d!==l||mi.current||lo?("function"==typeof c&&(vo(t,n,c,r),l=t.memoizedState),(s=lo||wo(t,n,s,r,d,l,u))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,co(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Qi(t.type,s),a.props=u,f=t.pendingProps,d=a.context,l="object"==typeof(l=n.contextType)&&null!==l?so(l):yi(t,l=vi(n)?gi:hi.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==f||d!==l)&&_o(t,a,r,l),lo=!1,d=t.memoizedState,a.state=d,mo(t,r,a,i);var h=t.memoizedState;s!==f||d!==h||mi.current||lo?("function"==typeof p&&(vo(t,n,p,r),h=t.memoizedState),(u=lo||wo(t,n,u,r,d,h,l))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Za(e,t,n,r,o,i)}function Za(e,t,n,r,i,o){Wa(e,t);var a=!!(64&t.flags);if(!r&&!a)return i&&Ei(t,n,!1),os(e,t,o);r=t.stateNode,Ba.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Oo(t,e.child,null,o),t.child=Oo(t,null,s,o)):Ua(e,t,s,o),t.memoizedState=r.state,i&&Ei(t,n,!0),t.child}function Ya(e){var t=e.stateNode;t.pendingContext?wi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&wi(0,t.context,!1),Lo(e,t.containerInfo)}var $a,Ka,Xa,Qa,Ja={dehydrated:null,retryLane:0};function es(e,t,n){var r,i=t.pendingProps,o=Uo.current,a=!1;return(r=!!(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&!!(2&o)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),di(Uo,1&o),null===e?(void 0!==i.fallback&&Go(t),e=i.children,o=i.fallback,a?(e=ts(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ja,e):"number"==typeof i.unstable_expectedLoadTime?(e=ts(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ja,t.lanes=33554432,e):((n=$l({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=function(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 2&o||t.child===a?n=Gl(a,s):((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null),null!==e?r=Gl(e,r):(r=Yl(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Ja,i):(n=function(e,t,n,r){var i=e.child;return e=i.sibling,n=Gl(i,{mode:"visible",children:n}),!(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 ts(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},2&i||null===o?o=$l(t,i,0,null):(o.childLanes=0,o.pendingProps=t),n=Yl(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function ns(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),oo(e.return,t)}function rs(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function is(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ua(e,t,r.children,n),2&(r=Uo.current))r=1&r|2,t.flags|=64;else{if(null!==e&&64&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ns(e,n);else if(19===e.tag)ns(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(di(Uo,r),2&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Fo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),rs(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Fo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}rs(t,!0,n,null,o,t.lastEffect);break;case"together":rs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function os(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),zs|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Gl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Gl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function as(e,t){if(!Ho)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 ss(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 vi(t.type)&&bi(),null;case 3:return Mo(),fi(mi),fi(hi),Xo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Yo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Ka(t),null;case 5:Do(t);var i=Io(Po.current);if(n=t.type,null!==e&&null!=t.stateNode)Xa(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=Io(Ro.current),Yo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Jr]=t,r[ei]=a,n){case"dialog":Rr("cancel",r),Rr("close",r);break;case"iframe":case"object":case"embed":Rr("load",r);break;case"video":case"audio":for(e=0;e<Cr.length;e++)Rr(Cr[e],r);break;case"source":Rr("error",r);break;case"img":case"image":case"link":Rr("error",r),Rr("load",r);break;case"details":Rr("toggle",r);break;case"input":te(r,a),Rr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Rr("invalid",r);break;case"textarea":ue(r,a),Rr("invalid",r)}for(var l in Se(n,a),e=null,a)a.hasOwnProperty(l)&&(i=a[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&&Rr("scroll",r));switch(n){case"input":X(r),ie(r,a,!0);break;case"textarea":X(r),fe(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=zr)}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[Jr]=t,e[ei]=r,$a(e,t,!1,!1),t.stateNode=e,l=Ae(n,r),n){case"dialog":Rr("cancel",e),Rr("close",e),i=r;break;case"iframe":case"object":case"embed":Rr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Cr.length;i++)Rr(Cr[i],e);i=r;break;case"source":Rr("error",e),i=r;break;case"img":case"image":case"link":Rr("error",e),Rr("load",e),i=r;break;case"details":Rr("toggle",e),i=r;break;case"input":te(e,r),i=ee(e,r),Rr("invalid",e);break;case"option":i=ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Rr("invalid",e);break;case"textarea":ue(e,r),i=le(e,r),Rr("invalid",e);break;default:i=r}Se(n,i);var c=i;for(a in c)if(c.hasOwnProperty(a)){var f=c[a];"style"===a?Ee(e,f):"dangerouslySetInnerHTML"===a?null!=(f=f?f.__html:void 0)&&ve(e,f):"children"===a?"string"==typeof f?("textarea"!==n||""!==f)&&be(e,f):"number"==typeof f&&be(e,""+f):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(u.hasOwnProperty(a)?null!=f&&"onScroll"===a&&Rr("scroll",e):null!=f&&x(e,a,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!=(a=r.value)?se(e,!!r.multiple,a,!1):null!=r.defaultValue&&se(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=zr)}Wr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Qa(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));n=Io(Po.current),Io(Ro.current),Yo(t)?(r=t.stateNode,n=t.memoizedProps,r[Jr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Jr]=t,t.stateNode=r)}return null;case 13:return fi(Uo),r=t.memoizedState,64&t.flags?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Yo(t):n=null!==e.memoizedState,r&&!n&&!!(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||1&Uo.current?0===Ds&&(Ds=3):(0!==Ds&&3!==Ds||(Ds=4),null===Ps||!(134217727&zs)&&!(134217727&Vs)||vl(Ps,Ls))),(r||n)&&(t.flags|=4),null);case 4:return Mo(),Ka(t),null===e&&Pr(t.stateNode.containerInfo),null;case 10:return io(t),null;case 19:if(fi(Uo),null===(r=t.memoizedState))return null;if(a=!!(64&t.flags),null===(l=r.rendering))if(a)as(r,!1);else{if(0!==Ds||null!==e&&64&e.flags)for(e=t.child;null!==e;){if(null!==(l=Fo(e))){for(t.flags|=64,as(r,!1),null!==(a=l.updateQueue)&&(t.updateQueue=a,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return di(Uo,1&Uo.current|2),t.child}e=e.sibling}null!==r.tail&&Wi()>Gs&&(t.flags|=64,a=!0,as(r,!1),t.lanes=33554432)}else{if(!a)if(null!==(e=Fo(l))){if(t.flags|=64,a=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),as(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!Ho)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Wi()-r.renderingStartTime>Gs&&1073741824!==n&&(t.flags|=64,a=!0,as(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=Wi(),n.sibling=null,t=Uo.current,di(Uo,a?1&t|2:1&t),n):null;case 23:case 24:return El(),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 ls(e){switch(e.tag){case 1:vi(e.type)&&bi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Mo(),fi(mi),fi(hi),Xo(),64&(t=e.flags))throw Error(s(285));return e.flags=-4097&t|64,e;case 5:return Do(e),null;case 13:return fi(Uo),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return fi(Uo),null;case 4:return Mo(),null;case 10:return io(e),null;case 23:case 24:return El(),null;default:return null}}function us(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 cs(e,t){try{r.error(t.value)}catch(e){setTimeout(function(){throw e})}}$a=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}},Ka=function(){},Xa=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Io(Ro.current);var a,s=null;switch(n){case"input":i=ee(e,i),r=ee(e,r),s=[];break;case"option":i=ae(e,i),r=ae(e,r),s=[];break;case"select":i=o({},i,{value:void 0}),r=o({},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=zr)}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(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}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(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}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&&Rr("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)}},Qa=function(e,t,n,r){n!==r&&(t.flags|=4)};var fs="function"==typeof WeakMap?WeakMap:Map;function ds(e,t,n){(n=fo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ks||(Ks=!0,Xs=r),cs(0,t)},n}function ps(e,t,n){(n=fo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return cs(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Qs?Qs=new Set([this]):Qs.add(this),cs(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var hs="function"==typeof WeakSet?WeakSet:Set;function ms(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Fl(e,t)}else t.current=null}function gs(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:Qi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Yr(t.stateNode.containerInfo))}throw Error(s(163))}function ys(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&~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,!!(4&(i=i.tag))&&!!(1&i)&&(Bl(n,e),Ml(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:Qi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&go(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}go(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Wr(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 vs(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 bs(e,t){if(Si&&"function"==typeof Si.onCommitFiberUnmount)try{Si.onCommitFiberUnmount(ki,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(4&r)Bl(t,n);else{r=t;try{i()}catch(e){Fl(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ms(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Fl(t,e)}break;case 5:ms(t);break;case 4:Ss(e,t)}}function ws(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 xs(e){return 5===e.tag||3===e.tag||4===e.tag}function _s(e){e:{for(var t=e.return;null!==t;){if(xs(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||xs(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?Es(e,n,t):ks(e,n,t)}function Es(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=zr));else if(4!==r&&null!==(e=e.child))for(Es(e,t,n),e=e.sibling;null!==e;)Es(e,t,n),e=e.sibling}function ks(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(ks(e,t,n),e=e.sibling;null!==e;)ks(e,t,n),e=e.sibling}function Ss(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(s(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var a=e,l=i,u=l;;)if(bs(a,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?(a=n,l=i.stateNode,8===a.nodeType?a.parentNode.removeChild(l):a.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(bs(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&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function As(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&~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 o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[ei]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ne(n,r),Ae(e,i),t=Ae(e,r),i=0;i<o.length;i+=2){var a=o[i],l=o[i+1];"style"===a?Ee(n,l):"dangerouslySetInnerHTML"===a?ve(n,l):"children"===a?be(n,l):x(n,a,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!=(o=r.value)?se(n,!!r.multiple,o,!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&&(qs=Wi(),vs(t.child,!0)),void Cs(t);case 19:return void Cs(t);case 23:case 24:return void vs(t,null!==t.memoizedState)}throw Error(s(163))}function Cs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new hs),t.forEach(function(t){var r=Vl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Os(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Ts=Math.ceil,Ns=_.ReactCurrentDispatcher,Rs=_.ReactCurrentOwner,js=0,Ps=null,Is=null,Ls=0,Ms=0,Bs=ci(0),Ds=0,Us=null,Fs=0,zs=0,Vs=0,Hs=0,Ws=null,qs=0,Gs=1/0;function Zs(){Gs=Wi()+500}var Ys,$s=null,Ks=!1,Xs=null,Qs=null,Js=!1,el=null,tl=90,nl=[],rl=[],il=null,ol=0,al=null,sl=-1,ll=0,ul=0,cl=null,fl=!1;function dl(){return 48&js?Wi():-1!==sl?sl:sl=Wi()}function pl(e){if(!(2&(e=e.mode)))return 1;if(!(4&e))return 99===qi()?1:2;if(0===ll&&(ll=Fs),0!==Xi.transition){0!==ul&&(ul=null!==Ws?Ws.pendingLanes:0),e=ll;var t=4186112&~ul;return 0===(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=qi(),e=zt(4&js&&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),ll)}function hl(e,t,n){if(50<ol)throw ol=0,al=null,Error(s(185));if(null===(e=ml(e,t)))return null;Wt(e,t,n),e===Ps&&(Vs|=t,4===Ds&&vl(e,Ls));var r=qi();1===t?8&js&&!(48&js)?bl(e):(gl(e,n),0===js&&(Zs(),$i())):(!(4&js)||98!==r&&99!==r||(null===il?il=new Set([e]):il.add(e)),gl(e,n)),Ws=e}function ml(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 gl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var l=31-qt(a),u=1<<l,c=o[l];if(-1===c){if(0===(u&r)||0!==(u&i)){c=t,Dt(u);var f=Bt;o[l]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);a&=~u}if(r=Ut(e,e===Ps?Ls:0),t=Bt,0===r)null!==n&&(n!==Di&&Oi(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Di&&Oi(n)}15===t?(n=bl.bind(null,e),null===Fi?(Fi=[n],zi=Ci(Pi,Ki)):Fi.push(n),n=Di):14===t?n=Yi(99,bl.bind(null,e)):(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),n=Yi(n,yl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function yl(e){if(sl=-1,ul=ll=0,48&js)throw Error(s(327));var t=e.callbackNode;if(Ll()&&e.callbackNode!==t)return null;var n=Ut(e,e===Ps?Ls:0);if(0===n)return null;var r=n,i=js;js|=16;var o=Al();for(Ps===e&&Ls===r||(Zs(),kl(e,r));;)try{Tl();break}catch(t){Sl(e,t)}if(ro(),Ns.current=o,js=i,null!==Is?r=0:(Ps=null,Ls=0,r=Ds),0!==(Fs&Vs))kl(e,0);else if(0!==r){if(2===r&&(js|=64,e.hydrate&&(e.hydrate=!1,Yr(e.containerInfo)),0!==(n=Ft(e))&&(r=Cl(e,n))),1===r)throw t=Us,kl(e,0),vl(e,n),gl(e,Wi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(s(345));case 2:case 5:jl(e);break;case 3:if(vl(e,n),(62914560&n)===n&&10<(r=qs+500-Wi())){if(0!==Ut(e,0))break;if(((i=e.suspendedLanes)&n)!==n){dl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Gr(jl.bind(null,e),r);break}jl(e);break;case 4:if(vl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var a=31-qt(n);o=1<<a,(a=r[a])>i&&(i=a),n&=~o}if(n=i,10<(n=(120>(n=Wi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ts(n/1960))-n)){e.timeoutHandle=Gr(jl.bind(null,e),n);break}jl(e);break;default:throw Error(s(329))}}return gl(e,Wi()),e.callbackNode===t?yl.bind(null,e):null}function vl(e,t){for(t&=~Hs,t&=~Vs,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 bl(e){if(48&js)throw Error(s(327));if(Ll(),e===Ps&&0!==(e.expiredLanes&Ls)){var t=Ls,n=Cl(e,t);0!==(Fs&Vs)&&(n=Cl(e,t=Ut(e,t)))}else n=Cl(e,t=Ut(e,0));if(0!==e.tag&&2===n&&(js|=64,e.hydrate&&(e.hydrate=!1,Yr(e.containerInfo)),0!==(t=Ft(e))&&(n=Cl(e,t))),1===n)throw n=Us,kl(e,0),vl(e,t),gl(e,Wi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,jl(e),gl(e,Wi()),null}function wl(e,t){var n=js;js|=1;try{return e(t)}finally{0===(js=n)&&(Zs(),$i())}}function xl(e,t){var n=js;js&=-2,js|=8;try{return e(t)}finally{0===(js=n)&&(Zs(),$i())}}function _l(e,t){di(Bs,Ms),Ms|=t,Fs|=t}function El(){Ms=Bs.current,fi(Bs)}function kl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Zr(n)),null!==Is)for(n=Is.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&bi();break;case 3:Mo(),fi(mi),fi(hi),Xo();break;case 5:Do(r);break;case 4:Mo();break;case 13:case 19:fi(Uo);break;case 10:io(r);break;case 23:case 24:El()}n=n.return}Ps=e,Is=Gl(e.current,null),Ls=Ms=Fs=t,Ds=0,Us=null,Hs=Vs=zs=0}function Sl(e,t){for(;;){var n=Is;try{if(ro(),Qo.current=Pa,ia){for(var r=ta.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ia=!1}if(ea=0,ra=na=ta=null,oa=!1,Rs.current=null,null===n||null===n.return){Ds=1,Us=t,Is=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Ls,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l;if(!(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=!!(1&Uo.current),d=a;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(!(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=fo(-1,1);v.tag=2,po(s,v)}s.lanes|=1;break e}l=void 0,s=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new fs,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=zl.bind(null,o,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!==Ds&&(Ds=2),l=us(l,s),d=a;do{switch(d.tag){case 3:o=l,d.flags|=4096,t&=-t,d.lanes|=t,ho(d,ds(0,o,t));break e;case 1:o=l;var x=d.type,_=d.stateNode;if(!(64&d.flags||"function"!=typeof x.getDerivedStateFromError&&(null===_||"function"!=typeof _.componentDidCatch||null!==Qs&&Qs.has(_)))){d.flags|=4096,t&=-t,d.lanes|=t,ho(d,ps(d,o,t));break e}}d=d.return}while(null!==d)}Rl(n)}catch(e){t=e,Is===n&&null!==n&&(Is=n=n.return);continue}break}}function Al(){var e=Ns.current;return Ns.current=Pa,null===e?Pa:e}function Cl(e,t){var n=js;js|=16;var r=Al();for(Ps===e&&Ls===t||kl(e,t);;)try{Ol();break}catch(t){Sl(e,t)}if(ro(),js=n,Ns.current=r,null!==Is)throw Error(s(261));return Ps=null,Ls=0,Ds}function Ol(){for(;null!==Is;)Nl(Is)}function Tl(){for(;null!==Is&&!Ti();)Nl(Is)}function Nl(e){var t=Ys(e.alternate,e,Ms);e.memoizedProps=e.pendingProps,null===t?Rl(e):Is=t,Rs.current=null}function Rl(e){var t=e;do{var n=t.alternate;if(e=t.return,2048&t.flags){if(null!==(n=ls(t)))return n.flags&=2047,void(Is=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(null!==(n=ss(n,t,Ms)))return void(Is=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||1073741824&Ms||!(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&&!(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))}if(null!==(t=t.sibling))return void(Is=t);Is=t=e}while(null!==t);0===Ds&&(Ds=5)}function jl(e){var t=qi();return Zi(99,Pl.bind(null,e,t)),null}function Pl(e,t){do{Ll()}while(null!==el);if(48&js)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,o=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 a=e.eventTimes,l=e.expirationTimes;0<o;){var u=31-qt(o),c=1<<u;i[u]=0,a[u]=-1,l[u]=-1,o&=~c}if(null!==il&&!(24&r)&&il.has(e)&&il.delete(e),e===Ps&&(Is=Ps=null,Ls=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=js,js|=32,Rs.current=null,Vr=Kt,vr(a=yr())){if("selectionStart"in a)l={start:a.selectionStart,end:a.selectionEnd};else e:if(l=(l=a.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&0!==c.rangeCount){l=c.anchorNode,o=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=a,y=null;t:for(;;){for(var v;g!==l||0!==o&&3!==g.nodeType||(d=f+o),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===a)break t;if(y===l&&++h===o&&(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;Hr={focusedElem:a,selectionRange:l},Kt=!1,cl=null,fl=!1,$s=r;do{try{Il()}catch(e){if(null===$s)throw Error(s(330));Fl($s,e),$s=$s.nextEffect}}while(null!==$s);cl=null,$s=r;do{try{for(a=e;null!==$s;){var b=$s.flags;if(16&b&&be($s.stateNode,""),128&b){var w=$s.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&b){case 2:_s($s),$s.flags&=-3;break;case 6:_s($s),$s.flags&=-3,As($s.alternate,$s);break;case 1024:$s.flags&=-1025;break;case 1028:$s.flags&=-1025,As($s.alternate,$s);break;case 4:As($s.alternate,$s);break;case 8:Ss(a,l=$s);var _=l.alternate;ws(l),null!==_&&ws(_)}$s=$s.nextEffect}}catch(e){if(null===$s)throw Error(s(330));Fl($s,e),$s=$s.nextEffect}}while(null!==$s);if(x=Hr,w=yr(),b=x.focusedElem,a=x.selectionRange,w!==b&&b&&b.ownerDocument&&gr(b.ownerDocument.documentElement,b)){null!==a&&vr(b)&&(w=a.start,void 0===(x=a.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(a.start,l),a=void 0===a.end?_:Math.min(a.end,l),!x.extend&&_>a&&(l=a,a=_,_=l),l=mr(b,_),o=mr(b,a),l&&o&&(1!==x.rangeCount||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&((w=w.createRange()).setStart(l.node,l.offset),x.removeAllRanges(),_>a?(x.addRange(w),x.extend(o.node,o.offset)):(w.setEnd(o.node,o.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=!!Vr,Hr=Vr=null,e.current=n,$s=r;do{try{for(b=e;null!==$s;){var E=$s.flags;if(36&E&&ys(b,$s.alternate,$s),128&E){w=void 0;var k=$s.ref;if(null!==k){var S=$s.stateNode;$s.tag,w=S,"function"==typeof k?k(w):k.current=w}}$s=$s.nextEffect}}catch(e){if(null===$s)throw Error(s(330));Fl($s,e),$s=$s.nextEffect}}while(null!==$s);$s=null,Ui(),js=i}else e.current=n;if(Js)Js=!1,el=e,tl=t;else for($s=r;null!==$s;)t=$s.nextEffect,$s.nextEffect=null,8&$s.flags&&((E=$s).sibling=null,E.stateNode=null),$s=t;if(0===(r=e.pendingLanes)&&(Qs=null),1===r?e===al?ol++:(ol=0,al=e):ol=0,n=n.stateNode,Si&&"function"==typeof Si.onCommitFiberRoot)try{Si.onCommitFiberRoot(ki,n,void 0,!(64&~n.current.flags))}catch(e){}if(gl(e,Wi()),Ks)throw Ks=!1,e=Xs,Xs=null,e;return!!(8&js)||$i(),null}function Il(){for(;null!==$s;){var e=$s.alternate;fl||null===cl||(8&$s.flags?tt($s,cl)&&(fl=!0):13===$s.tag&&Os(e,$s)&&tt($s,cl)&&(fl=!0));var t=$s.flags;!!(256&t)&&gs(e,$s),!(512&t)||Js||(Js=!0,Yi(97,function(){return Ll(),null})),$s=$s.nextEffect}}function Ll(){if(90!==tl){var e=97<tl?97:tl;return tl=90,Zi(e,Dl)}return!1}function Ml(e,t){nl.push(t,e),Js||(Js=!0,Yi(97,function(){return Ll(),null}))}function Bl(e,t){rl.push(t,e),Js||(Js=!0,Yi(97,function(){return Ll(),null}))}function Dl(){if(null===el)return!1;var e=el;if(el=null,48&js)throw Error(s(331));var t=js;js|=32;var n=rl;rl=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],a=i.destroy;if(i.destroy=void 0,"function"==typeof a)try{a()}catch(e){if(null===o)throw Error(s(330));Fl(o,e)}}for(n=nl,nl=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var l=i.create;i.destroy=l()}catch(e){if(null===o)throw Error(s(330));Fl(o,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 js=t,$i(),!0}function Ul(e,t,n){po(e,t=ds(0,t=us(n,t),1)),t=dl(),null!==(e=ml(e,1))&&(Wt(e,1,t),gl(e,t))}function Fl(e,t){if(3===e.tag)Ul(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Ul(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Qs||!Qs.has(r))){var i=ps(n,e=us(t,e),1);if(po(n,i),i=dl(),null!==(n=ml(n,1)))Wt(n,1,i),gl(n,i);else if("function"==typeof r.componentDidCatch&&(null===Qs||!Qs.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function zl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=dl(),e.pingedLanes|=e.suspendedLanes&n,Ps===e&&(Ls&n)===n&&(4===Ds||3===Ds&&(62914560&Ls)===Ls&&500>Wi()-qs?kl(e,0):Hs|=n),gl(e,t)}function Vl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(2&(t=e.mode)?4&t?(0===ll&&(ll=Fs),0===(t=Vt(62914560&~ll))&&(t=4194304)):t=99===qi()?1:2:t=1),n=dl(),null!==(e=ml(e,t))&&(Wt(e,t,n),gl(e,n))}function Hl(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 Wl(e,t,n,r){return new Hl(e,t,n,r)}function ql(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Gl(e,t){var n=e.alternate;return null===n?((n=Wl(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 Zl(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)ql(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case S:return Yl(n.children,i,o,t);case B:a=8,i|=16;break;case A:a=8,i|=1;break;case C:return(e=Wl(12,n,t,8|i)).elementType=C,e.type=C,e.lanes=o,e;case R:return(e=Wl(13,n,t,i)).type=R,e.elementType=R,e.lanes=o,e;case j:return(e=Wl(19,n,t,i)).elementType=j,e.lanes=o,e;case D:return $l(n,i,o,t);case U:return(e=Wl(24,n,t,i)).elementType=U,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:a=10;break e;case T:a=9;break e;case N:a=11;break e;case P:a=14;break e;case I:a=16,r=null;break e;case L:a=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=Wl(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Yl(e,t,n,r){return(e=Wl(7,e,r,t)).lanes=n,e}function $l(e,t,n,r){return(e=Wl(23,e,r,t)).elementType=D,e.lanes=n,e}function Kl(e,t,n){return(e=Wl(6,e,null,t)).lanes=n,e}function Xl(e,t,n){return(t=Wl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ql(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 Jl(e,t,n,r){var i=t.current,o=dl(),a=pl(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(vi(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(vi(u)){n=xi(n,u,l);break e}}n=l}else n=pi;return null===t.context?t.context=n:t.pendingContext=n,(t=fo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),po(i,t),hl(i,a,o),a}function eu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function tu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function nu(e,t){tu(e,t),(e=e.alternate)&&tu(e,t)}function ru(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Ql(e,t,null!=n&&!0===n.hydrate),t=Wl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,uo(t),e[ti]=n.current,Pr(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 iu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ou(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=eu(a);s.call(e)}}Jl(t,a,e,i)}else{if(o=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 ru(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var l=i;i=function(){var e=eu(a);l.call(e)}}xl(function(){Jl(t,a,e,i)})}return eu(a)}function au(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!iu(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)}Ys=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||mi.current)Da=!0;else{if(0===(n&r)){switch(Da=!1,t.tag){case 3:Ya(t),$o();break;case 5:Bo(t);break;case 1:vi(t.type)&&_i(t);break;case 4:Lo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;di(Ji,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?es(e,t,n):(di(Uo,1&Uo.current),null!==(t=os(e,t,n))?t.sibling:null);di(Uo,1&Uo.current);break;case 19:if(r=0!==(n&t.childLanes),64&e.flags){if(r)return is(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),di(Uo,Uo.current),r)break;return null;case 23:case 24:return t.lanes=0,Ha(e,t,n)}return os(e,t,n)}Da=!!(16384&e.flags)}else Da=!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=yi(t,hi.current),ao(t,n),i=la(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,vi(r)){var o=!0;_i(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,uo(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&vo(t,r,a,e),i.updater=bo,t.stateNode=i,i._reactInternals=t,Eo(t,r,e,n),t=Za(null,t,r,!0,o,n)}else t.tag=0,Ua(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=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return ql(e)?1:0;if(null!=e){if((e=e.$$typeof)===N)return 11;if(e===P)return 14}return 2}(i),e=Qi(i,e),o){case 0:t=qa(null,t,i,e,n);break e;case 1:t=Ga(null,t,i,e,n);break e;case 11:t=Fa(null,t,i,e,n);break e;case 14:t=za(null,t,i,Qi(i.type,e),r,n);break e}throw Error(s(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,qa(e,t,r,i=t.elementType===r?i:Qi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ga(e,t,r,i=t.elementType===r?i:Qi(r,i),n);case 3:if(Ya(t),r=t.updateQueue,null===e||null===r)throw Error(s(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,co(e,t),mo(t,r,null,n),(r=t.memoizedState.element)===i)$o(),t=os(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(Vo=$r(t.stateNode.containerInfo.firstChild),zo=t,o=Ho=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Ko.push(o);for(n=To(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Ua(e,t,r,n),$o();t=t.child}return t;case 5:return Bo(t),null===e&&Go(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,qr(r,i)?a=null:null!==o&&qr(r,o)&&(t.flags|=16),Wa(e,t),Ua(e,t,a,n),t.child;case 6:return null===e&&Go(t),null;case 13:return es(e,t,n);case 4:return Lo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Oo(t,null,r,n):Ua(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Fa(e,t,r,i=t.elementType===r?i:Qi(r,i),n);case 7:return Ua(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ua(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value;var l=t.type._context;if(di(Ji,l._currentValue),l._currentValue=o,null!==a)if(l=a.value,0==(o=fr(l,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(a.children===i.children&&!mi.current){t=os(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){a=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&o)){1===l.tag&&((c=fo(-1,n&-n)).tag=2,po(l,c)),l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),oo(l.return,n),u.lanes|=n;break}c=c.next}}else a=10===l.tag&&l.type===t.type?null:l.child;if(null!==a)a.return=l;else for(a=l;null!==a;){if(a===t){a=null;break}if(null!==(l=a.sibling)){l.return=a.return,a=l;break}a=a.return}l=a}Ua(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,ao(t,n),r=r(i=so(i,o.unstable_observedBits)),t.flags|=1,Ua(e,t,r,n),t.child;case 14:return o=Qi(i=t.type,t.pendingProps),za(e,t,i,o=Qi(i.type,o),r,n);case 15:return Va(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,vi(r)?(e=!0,_i(t)):e=!1,ao(t,n),xo(t,r,i),Eo(t,r,i,n),Za(null,t,r,!0,e,n);case 19:return is(e,t,n);case 23:case 24:return Ha(e,t,n)}throw Error(s(156,t.tag))},ru.prototype.render=function(e){Jl(e,this._internalRoot,null,null)},ru.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Jl(null,e,null,function(){t[ti]=null})},nt=function(e){13===e.tag&&(hl(e,4,dl()),nu(e,4))},rt=function(e){13===e.tag&&(hl(e,67108864,dl()),nu(e,67108864))},it=function(e){if(13===e.tag){var t=dl(),n=pl(e);hl(e,n,t),nu(e,n)}},ot=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=ai(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=wl,Le=function(e,t,n,r,i){var o=js;js|=4;try{return Zi(98,e.bind(null,t,n,r,i))}finally{0===(js=o)&&(Zs(),$i())}},Me=function(){!(49&js)&&(function(){if(null!==il){var e=il;il=null,e.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,gl(e,Wi())})}$i()}(),Ll())},Be=function(e,t){var n=js;js|=2;try{return e(t)}finally{0===(js=n)&&(Zs(),$i())}};var su={Events:[ii,oi,ai,je,Pe,Ll,{current:!1}]},lu={findFiberByHostInstance:ri,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},uu={bundleType:lu.bundleType,version:lu.version,rendererPackageName:lu.rendererPackageName,rendererConfig:lu.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:lu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var cu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cu.isDisabled&&cu.supportsFiber)try{ki=cu.inject(uu),Si=cu}catch(ye){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=su,t.createPortal=au,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=js;if(48&n)return e(t);js|=1;try{if(e)return Zi(99,e.bind(null,t))}finally{js=n,$i()}},t.hydrate=function(e,t,n){if(!iu(t))throw Error(s(200));return ou(null,e,t,!0,n)},t.render=function(e,t,n){if(!iu(t))throw Error(s(200));return ou(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!iu(e))throw Error(s(40));return!!e._reactRootContainer&&(xl(function(){ou(null,null,e,!1,function(){e._reactRootContainer=null,e[ti]=null})}),!0)},t.unstable_batchedUpdates=wl,t.unstable_createPortal=function(e,t){return au(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!iu(n))throw Error(s(200));if(null==e||void 0===e._reactInternals)throw Error(s(38));return ou(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 o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=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,o={},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)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:o,_owner:a.current}}t.jsx=u,t.jsxs=u},5636:(e,t,n)=>{"use strict";var r=n(8898),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=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"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=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,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,r)&&!_.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_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,a){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 o:l=!0}}if(l)return a=a(l=e),e=""===r?"."+A(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),C(a,t,n,"",function(e){return e})):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(S,"$&/")+"/")+e)),t.push(a)),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,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=C(s=s.value,t,n,c=r+A(s,u++),a);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 j={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=j,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var o=r({},e.props),a=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&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)x.call(t,c)&&!_.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];o.children=u}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_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:a,_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 o(e){return o="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},o(e)}var a,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);a=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 o=new h({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}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,o,a,s){var l,u=arguments.length;if(0===u?l="Failed":1===u?(o=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&&(a="!=")),o instanceof Error)throw o;var c={actual:t,expected:n,operator:void 0===a?"fail":a,stackStartFn:s||e};void 0!==o&&(c.message=o);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===a&&x(),a(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===a&&x(),a(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===a&&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===a&&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"!==o(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===a&&x(),l.forEach(function(i){"string"==typeof e[i]&&v(t[i])&&t[i].test(e[i])||function(e,t,n,r,i,o){if(!(n in e)||!s(e[n],t[n])){if(!r){var a=new O(e,i),l=new O(t,i,e),u=new h({actual:a,expected:l,operator:"deepStrictEqual",stackStartFn:o});throw u.actual=e,u.expected=t,u.operator=o.name,u}S({actual:e,expected:t,message:r,operator:o.name,stackStartFn:o})}}(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"===o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function j(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 P(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],n);if("object"===o(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"!==o(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 a="rejects"===e.name?"rejection":"exception";S({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(a).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):".",o="doesNotReject"===e.name?"rejection":"exception";S({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(o).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];P.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 j(t).then(function(t){return P.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 j(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"===o(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 a=i.split("\n");a.shift();for(var s=r.stack.split("\n"),l=0;l<a.length;l++){var u=s.indexOf(a[l]);if(-1!==u){s=s.slice(0,u);break}}r.stack="".concat(s.join("\n"),"\n").concat(a.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 o(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 a(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)},l(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},u.apply(null,arguments)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(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},d(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="",o="",a=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-a;if(c.length<p+1)N>1&&p>2&&(N>4?(o+="\n".concat(g,"...").concat(b),l=!0):N>3&&(o+="\n ".concat(f[p-2]),C++),o+="\n ".concat(f[p-1]),C++),a=p,i+="\n".concat(v,"-").concat(b," ").concat(f[p]),C++;else if(f.length<p+1)N>1&&p>2&&(N>4?(o+="\n".concat(g,"...").concat(b),l=!0):N>3&&(o+="\n ".concat(c[p-2]),C++),o+="\n ".concat(c[p-1]),C++),a=p,o+="\n".concat(y,"+").concat(b," ").concat(c[p]),C++;else{var R=f[p],j=c[p],P=j!==R&&(!m(j,",")||j.slice(0,-1)!==R);P&&m(R,",")&&R.slice(0,-1)===j&&(P=!1,j+=","),P?(N>1&&p>2&&(N>4?(o+="\n".concat(g,"...").concat(b),l=!0):N>3&&(o+="\n ".concat(c[p-2]),C++),o+="\n ".concat(c[p-1]),C++),a=p,o+="\n".concat(y,"+").concat(b," ").concat(j),i+="\n".concat(v,"-").concat(b," ").concat(R),C+=2):(o+=i,i="",1!==N&&0!==p||(o+="\n ".concat(j),C++))}if(C>20&&p<S-2)return"".concat(O).concat(T,"\n").concat(o,"\n").concat(g,"...").concat(b).concat(i,"\n")+"".concat(g,"...").concat(b)}return"".concat(O).concat(l?T:"","\n").concat(o).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,o=e.operator,l=e.stackStartFn,u=e.actual,c=e.expected,p=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)n=a(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"===o||"strictEqual"===o)n=a(this,f(t).call(this,E(u,c,o)));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var m=w[o],k=_(u).split("\n");if("notStrictEqual"===o&&"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?a(this,f(t).call(this,"".concat(m," ").concat(k[0]))):a(this,f(t).call(this,"".concat(m,"\n\n").concat(k.join("\n"),"\n")))}else{var S=_(u),A="",C=w[o];"notDeepEqual"===o||"notEqual"===o?(S="".concat(w[o],"\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"===o||"equal"===o?S="".concat(C,"\n\n").concat(S,"\n\nshould equal\n\n"):A=" ".concat(o," ").concat(A)),n=a(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=o,Error.captureStackTrace&&Error.captureStackTrace(s(n),l),n.stack,n.name="AssertionError",a(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}))}}],l&&o(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},r(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 o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var s,l,u={};function c(e,t,n){n||(n=Error);var r=function(n){function r(n,a,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,o(r).call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,a,s))),l.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&&a(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 o,a,l;if(void 0===s&&(s=n(6362)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(a="not ",t.substr(0,4)===a)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-9,n)===t}(e," argument"))l="The ".concat(e," ").concat(o," ").concat(f(t,"type"));else{var u=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+1>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";l='The "'.concat(e,'" ').concat(u," ").concat(o," ").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 ",o=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),o){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,o-1).join(", "),i+=", and ".concat(t[o-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,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}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},i(e)}var o=void 0!==/a/g.flags,a=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 j(e){return Object.keys(e).filter(R).concat(u(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function P(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++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 a,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=j(e),m=j(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,!(o?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===P(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=j(e),I=j(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,(a=e).byteLength!==s.byteLength||0!==P(new Uint8Array(a),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,o,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===o)o={val1:new Map,val2:new Map,position:0};else{var w=o.val1.get(e);if(void 0!==w){var x=o.val2.get(t);if(void 0!==x)return w===x}o.position++}o.val1.set(e,o.position),o.val2.set(t,o.position);var _=function(e,t,n,o,l,u){var c=0;if(2===u){if(!function(e,t,n,r){for(var o=null,s=a(e),l=0;l<s.length;l++){var u=s[l];if("object"===i(u)&&null!==u)null===o&&(o=new Set),o.add(u);else if(!t.has(u)){if(n)return!1;if(!U(e,t,u))return!1;null===o&&(o=new Set),o.add(u)}}if(null!==o){for(var c=a(t),f=0;f<c.length;f++){var d=c[f];if("object"===i(d)&&null!==d){if(!B(o,d,n,r))return!1}else if(!n&&!e.has(d)&&!B(o,d,n,r))return!1}return 0===o.size}return!0}(e,t,n,l))return!1}else if(3===u){if(!function(e,t,n,o){for(var a=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===a&&(a=new Set),a.add(f);else{var p=t.get(f);if(void 0===p&&!t.has(f)||!I(d,p,n,o)){if(n)return!1;if(!F(e,t,f,d,o))return!1;null===a&&(a=new Set),a.add(f)}}}if(null!==a){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(a,e,f,y,n,o))return!1}else if(!(n||e.has(f)&&I(e.get(f),y,!1,o)||z(a,e,f,y,!1,o)))return!1}return 0===a.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<o.length;c++){var h=o[c];if(!I(e[h],t[h],n,l))return!1}return!0}(e,t,n,c,o,l);return o.val1.delete(e),o.val2.delete(t),_}function B(e,t,n,r){for(var i=a(e),o=0;o<i.length;o++){var s=i[o];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 o=D(n);if(null!=o)return o;var a=t.get(o);return!(void 0===a&&!t.has(o)||!I(r,a,!1,i))&&!e.has(o)&&I(r,a,!1,i)}function z(e,t,n,r,i,o){for(var s=a(e),l=0;l<s.length;l++){var u=s[l];if(I(n,u,i,o)&&I(r,t.get(u),i,o))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,o=s(e),a=o[0],l=o[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),c=0,f=l>0?a-4:a;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,o=[],a=16383,s=0,u=r-i;s<u;s+=a)o.push(l(e,s,s+a>u?u:s+a));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;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,o,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},7040:(e,t,n)=>{"use strict";var r=n(3325).Buffer,i=n(5224),o=n(6362),a=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,o(this.init_done,"close before init"),o(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,o,a){return this._write(!0,e,t,n,r,i,o,a)},f.prototype.writeSync=function(e,t,n,r,i,o,a){return this._write(!1,e,t,n,r,i,o,a)},f.prototype._write=function(e,n,a,s,l,u,c,f){if(o.equal(arguments.length,8),o(this.init_done,"write before init"),o(this.mode!==t.NONE,"already finalized"),o.equal(!1,this.write_in_progress,"write already in progress"),o.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,o.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==a&&(a=r.alloc(0),l=0,s=0),this.strm.avail_in=l,this.strm.input=a,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,a){o(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),o(e>=8&&e<=15,"invalid windowBits"),o(n>=-1&&n<=9,"invalid compression level"),o(r>=1&&r<=9,"invalid memlevel"),o(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,a),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,o){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 a,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=o,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,o=n(8556).Transform,a=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";a.Z_MIN_WINDOWBITS=8,a.Z_MAX_WINDOWBITS=15,a.Z_DEFAULT_WINDOWBITS=15,a.Z_MIN_CHUNK=64,a.Z_MAX_CHUNK=1/0,a.Z_DEFAULT_CHUNK=16384,a.Z_MIN_MEMLEVEL=1,a.Z_MAX_MEMLEVEL=9,a.Z_DEFAULT_MEMLEVEL=8,a.Z_MIN_LEVEL=-1,a.Z_MAX_LEVEL=9,a.Z_DEFAULT_LEVEL=a.Z_DEFAULT_COMPRESSION;for(var f=Object.keys(a),d=0;d<f.length;d++){var p=f[d];p.match(/^Z/)&&Object.defineProperty(t,p,{enumerable:!0,value:a[p],writable:!1})}for(var h={Z_OK:a.Z_OK,Z_STREAM_END:a.Z_STREAM_END,Z_NEED_DICT:a.Z_NEED_DICT,Z_ERRNO:a.Z_ERRNO,Z_STREAM_ERROR:a.Z_STREAM_ERROR,Z_DATA_ERROR:a.Z_DATA_ERROR,Z_MEM_ERROR:a.Z_MEM_ERROR,Z_BUF_ERROR:a.Z_BUF_ERROR,Z_VERSION_ERROR:a.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=[],o=0;function a(){for(var t;null!==(t=e.read());)r.push(t),o+=t.length;e.once("readable",a)}function s(){var t,a=null;o>=u?a=new RangeError(c):t=i.concat(r,o),r=[],e.close(),n(a,t)}e.on("error",function(t){e.removeListener("end",s),e.removeListener("readable",a),n(t)}),e.on("end",s),e.end(t),a()}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,a.DEFLATE)}function x(e){if(!(this instanceof x))return new x(e);O.call(this,e,a.INFLATE)}function _(e){if(!(this instanceof _))return new _(e);O.call(this,e,a.GZIP)}function E(e){if(!(this instanceof E))return new E(e);O.call(this,e,a.GUNZIP)}function k(e){if(!(this instanceof k))return new k(e);O.call(this,e,a.DEFLATERAW)}function S(e){if(!(this instanceof S))return new S(e);O.call(this,e,a.INFLATERAW)}function A(e){if(!(this instanceof A))return new A(e);O.call(this,e,a.UNZIP)}function C(e){return e===a.Z_NO_FLUSH||e===a.Z_PARTIAL_FLUSH||e===a.Z_SYNC_FLUSH||e===a.Z_FULL_FLUSH||e===a.Z_FINISH||e===a.Z_BLOCK}function O(e,n){var r=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,o.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||a.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:a.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 a.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,o),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 o=this;this.flush(a.Z_SYNC_FLUSH,function(){l(o._handle,"zlib binding closed"),o._handle.params(e,n),o._hadError||(o._level=e,o._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,o=this._writableState;("function"==typeof e||void 0===e&&!t)&&(t=e,e=a.Z_FULL_FLUSH),o.ended?t&&r.nextTick(t):o.ending?t&&this.once("end",t):o.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,o=this._writableState,s=(o.ending||o.ended)&&(!e||o.length===e.length);return null===e||i.isBuffer(e)?this._handle?(s?r=this._finishFlushFlag:(r=this._flushFlag,e.length>=o.length&&(this._flushFlag=this._opts.flush||a.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,o=this._chunkSize-this._offset,a=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,a,r,this._buffer,this._offset,o)}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,a,r,this._buffer,this._offset,o);function v(u,c){if(this&&(this.buffer=null,this.callback=null),!s._hadError){var d=o-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)&&(o=s._chunkSize,s._offset=0,s._buffer=i.allocUnsafe(s._chunkSize)),0===c){if(a+=r-u,r=u,!f)return!0;var g=s._handle.write(t,e,a,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),o=n(6897),a="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 j(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 o,a=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;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===l)return r*a}else-1!==r&&(o-=o-r),r=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;r<l;r++)if(u(e,o+r)!==u(t,r)){n=!1;break}if(n)return o}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 o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(X(r))return a;e[n+a]=r}return a}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 o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(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 o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=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)&&(o=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&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}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,o=Math.min(n,r);i<o;++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+">"},a&&(u.prototype[a]=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 o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n);for(let e=0;e<s;++e)if(l[e]!==c[e]){o=l[e],a=c[e];break}return o<a?-1:a<o?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 o=!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(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!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 j(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 P(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,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)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 o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function M(e,t,n,r,i){H(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function B(e,t,n,r,i,o){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),o.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),o.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||P(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(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||P(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(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||P(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||P(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*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||P(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||P(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||P(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||P(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||P(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||P(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),o.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,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=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,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&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,o=1,a=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o|0)-a&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,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&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 o=u.isBuffer(e)?e:u.from(e,r),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%a]}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,o){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?">= 0".concat(r," and < 2").concat(r," ** ").concat(8*(o+1)).concat(r):">= -(2".concat(r," ** ").concat(8*(o+1)-1).concat(r,") and < 2 ** ")+"".concat(8*(o+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,o)}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 o=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}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),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},3629:(e,t,n)=>{"use strict";var r=n(6989),i=n(7375),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),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,a,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,o,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},3705:(e,t,n)=>{var r=n(3575),i=n(6362);function o(){return(new Date).getTime()}var a,s=Array.prototype.slice,l={};a=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var u=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(e){l[e]=o()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var n=o()-t;a.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),a.error(e.stack)},"trace"],[function(e){a.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];a[p]||(a[p]=d)}e.exports=a},8726:(e,t,n)=>{"use strict";var r=n(7839),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=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]"===o.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]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)c(e,o[s],t[o[s]],n[o[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 o=Object.keys(Object(i)),a=0,s=o.length;a<s;a++){var l=o[a],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),o="object"==typeof Reflect?Reflect:null,a=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.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,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t){"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 o,a,s,l;if(c(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),s=a[t]),void 0===s)s=a[t]=n,++e._eventsCount;else if("function"==typeof s?s=a[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=f(e))>0&&s.length>o&&!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(o){r.once&&e.removeEventListener(t,i),n(o)})}}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 o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)a(l,this,t);else{var u=l.length,c=y(l,u);for(n=0;n<u;++n)a(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,o,a;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,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;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,a||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,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[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,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===i.call(e)?function(e,t,n){for(var r=0,i=e.length;r<i;r++)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a):"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,a):function(e,t,n){for(var r in e)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a)}},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,o=t.call(arguments,1),a=Math.max(0,r.length-o.length),s=[],l=0;l<a;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,o.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,o.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,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var u=function(){throw new a},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%":o,"%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%":a,"%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 o=m[r];if(o===p&&(o=g(r)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"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]:"",o=C("%"+r+"%",t),s=o.name,u=o.value,c=!1,f=o.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 a("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 o,a,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,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-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,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+p]=255&a,p+=h,a/=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"),o=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(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 o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},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 o=/^\s*class\b/,a=function(e){try{var t=r.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{return!a(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!a(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(a(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,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=n(5550)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(o.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),o=n(7433),a=n(7308),s=n(3862),l=r(a(),Number);i(l,{getPolyfill:a,implementation:o,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),o=n(1061),a=o("Object.prototype.toString"),s=n(5550)(),l="undefined"==typeof globalThis?n.g:globalThis,u=i(),c=o("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=o("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(a(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),o=n(7837),a=n(5944),s=n(9394),l=i(a(),Object);r(l,{getPolyfill:a,implementation:o,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,o=Object.prototype.toString,a=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]"===o.call(e),r=a(e),s=t&&"[object String]"===o.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),o=Object.keys,a=o?function(e){return o(e)}:n(225),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},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 o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,a;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},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,o))},t.setTyped(n)},1875:e=>{"use strict";e.exports=function(e,t,n,r){for(var i=65535&e,o=e>>>16&65535,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+t[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<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 o=t,a=i+r;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^n[s])];return~e}},7129:(e,t,n)=>{"use strict";var r,i=n(5899),o=n(4867),a=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){o._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 o=e.avail_in;return o>r&&(o=r),0===o?0:(e.avail_in-=o,i.arraySet(t,e.input,e.next_in,o,n),1===e.state.wrap?e.adler=a(e.adler,t,o,n):2===e.state.wrap&&(e.adler=s(e.adler,t,o,n)),e.next_in+=o,e.total_in+=o,o)}function E(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=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[o+a-1],g=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+a]===g&&u[n+a-1]===m&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&o<h);if(r=c-(h-o),o=h-c,r>a){if(e.match_start=t,a=r,r>=s)break;m=u[o+a-1],g=u[o+a]}}}while((t=p[t&d])>l&&0!==--i);return a<=e.lookahead?a:e.lookahead}function k(e){var t,n,r,o,a,s=e.w_size;do{if(o=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);o+=s}if(0===e.strm.avail_in)break;if(n=_(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=n,e.lookahead+e.insert>=3)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+3-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,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=o._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=o._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=o._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=o._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=o._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,o._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,o,a){if(!e)return u;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),o<1||o>9||8!==n||r<8||r>15||t<0||t>9||a<0||a>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=o+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<<o+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=a,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,a,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(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),v(e),a=i.pending,i.pending!==i.pending_buf_size));)w(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),v(e),a=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>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),v(e),a=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>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),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=o._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,a,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]){a=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<a);e.match_length=c-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._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?o._tr_align(i):5!==t&&(o._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,o,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=a(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,o=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(--o);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,o,a,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),o=e.next_out,A=e.output,a=o-(t-e.avail_out),s=o+(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[o++]=65535&b;else{if(!(16&w)){if(!(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(!(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=o-a)){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[o++]=d[E++]}while(--w);E=o-_,k=A}}else if(f<w){if(E+=u+f-w,(w-=f)<x){x-=w;do{A[o++]=d[E++]}while(--w);if(E=0,f<x){x-=w=f;do{A[o++]=d[E++]}while(--w);E=o-_,k=A}}}else if(E+=f-w,w<x){x-=w;do{A[o++]=d[E++]}while(--w);E=o-_,k=A}for(;x>2;)A[o++]=k[E++],A[o++]=k[E++],A[o++]=k[E++],x-=3;x&&(A[o++]=k[E++],x>1&&(A[o++]=k[E++]))}else{E=o-_;do{A[o++]=A[E++],A[o++]=A[E++],A[o++]=A[E++],x-=3}while(x>2);x&&(A[o++]=A[E++],x>1&&(A[o++]=A[E++]))}break}}break}}while(r<i&&o<s);r-=x=h>>3,p&=(1<<(h-=x<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=p,n.bits=h}},5281:(e,t,n)=>{"use strict";var r=n(5899),i=n(1875),o=n(6181),a=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 o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,t,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),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,j,P,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=o(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,P=8+(15&(v>>>=4)),0===n.wbits)n.wbits=P;else if(P>n.wbits){e.msg="invalid window size",n.mode=c;break}n.dmax=1<<P,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=o(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=o(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=o(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=o(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&&(P=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,P)),512&n.flags&&(n.check=o(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{P=d[h+k++],n.head&&P&&n.length<65536&&(n.head.name+=String.fromCharCode(P))}while(P&&k<g);if(512&n.flags&&(n.check=o(n.check,d,k,h)),g-=k,h+=k,P)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{P=d[h+k++],n.head&&P&&n.length<65536&&(n.head.comment+=String.fromCharCode(P))}while(P&&k<g);if(512&n.flags&&(n.check=o(n.check,d,k,h)),g-=k,h+=k,P)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}P=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,P=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,P=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++]=P}}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,a(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&&!(240&O)){for(N=C,R=O,j=T;O=(B=n.lencode[j+((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(!(240&O)){for(N=C,R=O,j=T;O=(B=n.distcode[j+((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?o(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?o(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&&2&(n=e.state).wrap?(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],o=[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],a=[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,j=0,P=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?(P=B=f,v=19):1===e?(P=i,I-=257,B=o,D-=257,v=256):(P=a,B=s,v=-1),j=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=P[I+f[k]]):(w=96,x=0),p=1<<E-T,S=h=1<<O;do{u[y+(j>>T)+(h-=p)]=b<<24|w<<16|x}while(0!==h);for(p=1<<E-1;j&p;)p>>=1;if(0!==p?(j&=p-1,j+=p):j=0,k++,0===--L[E]){if(E===A)break;E=t[n+f[k]]}if(E>C&&(j&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=j&g]=C<<24|O<<16|y-c}}return 0!==j&&(u[y+j]=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 o=256,a=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,o=new Array(16),a=0;for(r=1;r<=l;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=O(o[s]++,s))}}function N(e){var t;for(t=0;t<a;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 j(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function P(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&j(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!j(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,a,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,(a=g[i])+o+1,t),0!==(s=u[a])&&A(e,i-=y[a],s),C(e,a=k(--r),n),0!==(s=c[a])&&A(e,r-=x[a],s))}while(l<e.last_lit);C(e,256,t)}function L(e,t){var n,r,i,o=t.dyn_tree,a=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!==o[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)P(e,o,n);i=u;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],P(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,P(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,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(o=0;o<=l;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(o=u[2*u[2*(r=e.heap[n])+1]+1]+1)>m&&(o=m,g++),u[2*r+1]=o,r>c||(e.bl_count[o]++,a=0,r>=h&&(a=p[r-h]),s=u[2*r],e.opt_len+=s*(o+a),d&&(e.static_len+=s*(f[2*r+1]+a)));if(0!==g){do{for(o=m-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[m]--,g-=2}while(g>0);for(o=m;0!==o;o--)for(r=e.bl_count[o];0!==r;)(i=e.heap[--n])>c||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(e,t),T(o,c,e.bl_count)}function M(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<l&&i===a||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,o=i,0===a?(l=138,u=3):i===a?(l=6,u=3):(l=7,u=4))}function B(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<l&&i===a)){if(s<u)do{C(e,i,e.bl_tree)}while(0!==--s);else 0!==i?(i!==o&&(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,o=i,0===a?(l=138,u=3):i===a?(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){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,o=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++)o[t]=0;for(e=0;e<=143;)p[2*e+1]=8,e++,o[8]++;for(;e<=255;)p[2*e+1]=9,e++,o[9]++;for(;e<=279;)p[2*e+1]=7,e++,o[7]++;for(;e<=287;)p[2*e+1]=8,e++,o[8]++;for(T(p,287,o),e=0;e<s;e++)h[2*e+1]=5,h[2*e]=O(e,5);v=new _(p,u,257,a,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,a,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<o;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,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?U(e,t,n,r):4===e.strategy||a===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]+o+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 o(){throw new Error("clearTimeout has not been defined")}function a(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:o}catch(e){n=o}}();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=a(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===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return 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||a(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 o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==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:o,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,o,a;if("string"==typeof t&&(o="not ",t.substr(0,4)===o)?(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-9,n)===t}(e," argument"))a="The ".concat(e," ").concat(i," ").concat(r(t,"type"));else{var s=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+1>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(i," ").concat(r(t,"type"))}return a+". 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 o=n(3230),a=n(4306);n(1596)(c,o);for(var s=i(a.prototype),l=0;l<s.length;l++){var u=s[l];c.prototype[u]||(c.prototype[u]=a.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);o.call(this,e),a.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 o,a=function(e,t){return e.listeners(t).length},s=n(4687),l=n(3325).Buffer,u=n.g.Uint8Array||function(){},c=n(9838);o=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){o("readableAddChunk",t);var a,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(o("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||(a=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)),a)_(e,a);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):j(e,s)):C(e,s,t,!1)}else r||(s.reading=!1,j(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)),j(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;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(R,e))}function R(e){var t=e._readableState;o("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 j(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(o("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){o("readable nexttick read 0"),e.read(0)}function M(e,t){o("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(o("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;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(F,t,e))}function F(e,t){if(o("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){o("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 o("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 o("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",i=!0),t.ended||t.reading?o("reading or ended",i=!1):i&&(o("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,o("pipe count=%d opts=%j",r.pipesCount,t);var s=t&&!1===t.end||e===i.stdout||e===i.stderr?m:l;function l(){o("onend"),e.end()}r.endEmitted?i.nextTick(s):n.once("end",s),e.on("unpipe",function t(i,a){o("onunpipe"),i===n&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("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;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,B(e))}}(n);e.on("drain",u);var c=!1;function f(t){o("ondata");var i=e.write(t);o("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==z(r.pipes,e))&&!c&&(o("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function d(t){o("onerror",t),m(),e.removeListener("error",d),0===a(e,"error")&&_(e,t)}function p(){e.removeListener("finish",h),m()}function h(){o("onfinish"),e.removeListener("close",p),m()}function m(){o("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||(o("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 o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=z(t.pipes,e);return-1===a||(t.pipes.splice(a,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,o("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||(o("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 o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("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(o("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){o("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 a=0;a<E.length;a++)e.on(E[a],this.emit.bind(this,E[a]));return this._read=function(t){o("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,o=r.ERR_MULTIPLE_CALLBACK,a=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 o);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 a;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 o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var n=e.entry;for(e.entry=null;n;){var r=n.callback;t.pendingcb--,r(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=S,S.WritableState=k;var a,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,a){r=r||n(7544),e=e||{},"boolean"!=typeof a&&(a=t instanceof r),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",a),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,o=n.writecb;if("function"!=typeof o)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,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(R,e,t),e._writableState.errorEmitted=!0,_(e,r)):(o(r),e._writableState.errorEmitted=!0,_(e,r),R(e,t))}(e,n,r,t,o);else{var a=T(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||O(e,n),r?i.nextTick(C,e,n,a,o):C(e,n,a,o)}}(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 o(this)}function S(e){var t=this instanceof(r=r||n(7544));if(!t&&!a.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,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):n?e._writev(i,t.onwrite):e._write(i,o,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),a=t.corkedRequestsFree;a.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,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(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]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===S&&e&&e._writableState instanceof k}})):a=function(e){return e instanceof this},S.prototype.pipe=function(){_(this,new y)},S.prototype.write=function(e,t,n){var r,o=this._writableState,a=!1,s=!o.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=o.defaultEncoding),"function"!=typeof n&&(n=E),o.ending?function(e,t){var n=new w;_(e,n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var o;return null===n?o=new b:"string"==typeof n||t.objectMode||(o=new h("chunk",["string","Buffer"],n)),!o||(_(e,o),i.nextTick(r,o),!1)}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,n)),t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}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:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,s,r,i,o);return l}(this,o,s,e,t,n)),a},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 o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=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((o(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 o=this[p].read();if(null!==o)return Promise.resolve(h(o,!1));n=new Promise(this[d])}return this[f]=n,n}},Symbol.asyncIterator,function(){return this}),o(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,(o(t={},p,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,l,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,c,{value:e._readableState.endEmitted,writable:!0}),o(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,a(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 o(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 a=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 a.alloc(0);for(var t,n,r,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,n=i,r=s,a.prototype.copy.call(t,n,r),s+=o.data.length,o=o.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,o=e>i.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0===(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));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}))}}],n&&o(t.prototype,n),e}()},4822:(e,t,n)=>{"use strict";var r=n(5224);function i(e,t){a(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function a(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(a,this,e)):r.nextTick(a,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(o,n):(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t?(r.nextTick(o,n),t(e)):r.nextTick(o,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,o){if("function"==typeof n)return e(t,null,n);n||(n={}),o=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)}}}(o||i);var a=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,a||o.call(t)},f=t._readableState&&t._readableState.endEmitted,d=function(){a=!1,f=!0,s||o.call(t)},p=function(e){o.call(t,e)},h=function(){var e;return a&&!f?(t._readableState&&t._readableState.ended||(e=new r),o.call(t,e)):s&&!u?(t._writableState&&t._writableState.ended||(e=new r),o.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,o=i.ERR_MISSING_ARGS,a=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 o("streams");var d=t.map(function(e,i){var o=i<t.length-1;return function(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);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 o(e);s=!0,o()});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 o(t||new a("pipe"))}}(e,o,i>0,function(e){c||(c=e),e&&d.forEach(l),o||(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 o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}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 o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.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},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.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 o{constructor(e){if(this.length=0,this._encoding="utf8",this._writeOffset=0,this._readOffset=0,o.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,o){let a=this._writeOffset,s=this._encoding;"number"==typeof n?a=n:"string"==typeof n&&(i.checkEncoding(n),s=n),"string"==typeof o&&(i.checkEncoding(o),s=o);const l=r.byteLength(e,s);return t?this.ensureInsertable(l,a):this._ensureWriteable(l,a),this._buff.write(e,a,l,s),t?this._writeOffset+=l:"number"==typeof n?this._writeOffset=Math.max(this._writeOffset,a+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 o="number"==typeof r?r:this._writeOffset;return this._ensureWriteable(t,o),e.call(this._buff,n,o),"number"==typeof r?this._writeOffset=Math.max(this._writeOffset,o+t):this._writeOffset+=t,this}}t.I=o},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 o(e){return"number"==typeof e&&isFinite(e)&&function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}(e)}function a(e,t){if("number"!=typeof e)throw new Error(t?i.INVALID_OFFSET_NON_NUMBER:i.INVALID_LENGTH_NON_NUMBER);if(!o(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=o,t.checkLengthValue=function(e){a(e,!1)},t.checkOffsetValue=function(e){a(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 o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!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",o),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 o(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 a(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=o,o.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||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=a(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)},o.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),o=n(4961),a=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=a,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):a(e)||k(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(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 j(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=j,t.isBoxedPrimitive=function(e){return O(e)||T(e)||N(e)||R(e)||j(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),o=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},a=/%[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,o=String(e).replace(a,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)?o+=" "+s:o+=" "+c(s);return o},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 o=!1;return function(){if(!o){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?i.trace(n):i.error(n),o=!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 o=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(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),S(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(n);if(0===a.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!==a.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 o=[],a=0,s=t.length;a<s;++a)N(t,String(a))?o.push(m(e,t,n,r,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(m(e,t,n,r,i,!0))}),o}(e,n,r,s,a):a.map(function(t){return m(e,n,r,s,t,f)}),e.seen.pop(),function(e,t,n){var r=e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>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,o){var a,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)||(a="["+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=o?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(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+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 j(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=[],o=0;o<arguments.length;o++)i.push(arguments[o]);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,o(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 o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then(function(e){r.nextTick(a.bind(null,null,e))},function(e){r.nextTick(j.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,o(e)),t}},4961:(e,t,n)=>{"use strict";var r=n(1e3),i=n(6405),o=n(1061),a=o("Object.prototype.toString"),s=n(5550)(),l="undefined"==typeof globalThis?n.g:globalThis,u=i(),c=o("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(a(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 o,a,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 o=Object(arguments[l]))n.call(o,u)&&(s[u]=o[u]);if(t){a=t(o);for(var c=0;c<a.length;c++)r.call(o,a[c])&&(s[a[c]]=o[a[c]])}}return s}},1253:(e,t,n)=>{"use strict";var r,i,o,a,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)},o=function(){clearTimeout(d)},t.unstable_shouldYield=function(){return!1},a=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},a=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)},o=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 o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>C(a,n))void 0!==l&&0>C(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);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,j=3,P=!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,o()),P=!0;var r=j;try{for(M(n),R=S(O);null!==R&&(!(R.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=R.callback;if("function"==typeof a){R.callback=null,j=R.priorityLevel;var s=a(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,j=r,P=!1}}var U=a;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||P||(I=!0,r(D))},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return S(O)},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=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=j;j=e;try{return t()}finally{j=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?s+a: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:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,k(T,e),null===S(O)&&e===S(T)&&(L?o():L=!0,i(B,a-s))):(e.sortIndex=l,k(O,e),I||P||(I=!0,r(D))),e},t.unstable_wrapCallback=function(e){var t=j;return function(){var n=j;j=t;try{return e.apply(this,arguments)}finally{j=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 o=t[r]={exports:{}};return e[r](o,o.exports,n),o.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,o,a;function s(e){switch(e){case a.MuteAllChannels:return"muteallchannels";case a.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"}(o||(o={})),function(e){e[e.MuteAllChannels=0]="MuteAllChannels",e[e.PlayInstruction=1]="PlayInstruction"}(a||(a={}));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 o,a;let n=(null===(o=e.gameState)||void 0===o||null===(a=o.reactionIconOverrides)||void 0===a?void 0:a.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,o=lf("Sign in to host this multiplayer game"),a=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:o,signUpMessage:a}: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 j(){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 P;function I(e,t,n,r,i){const o=r?1:-1,a=e[n];return t===n||(i?i(a):function(e){if(e.checkVisibility)return e.checkVisibility({visibilityProperty:!0});const t=getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility}(a))?a:(n+o>=e.length?n=0:n+o<0?n=e.length-1:n+=o,I(e,t,n,r,i))}!function(e){e[e.Selected=0]="Selected",e[e.Unselected=1]="Unselected",e[e.Waiting=2]="Waiting"}(P||(P={}));const L=e=>{const t=B(e);return(0,d.jsx)("button",{...t,children:(0,d.jsx)(M,{...e})})},M=e=>{const{label:t,labelClassName:n,leftIcon:r,rightIcon:i,children:o}=e;return(0,d.jsxs)(d.Fragment,{children:[(r||i||t)&&(0,d.jsxs)("span",{className:"common-button-flex",children:[r&&(0,d.jsx)("i",{className:r,"aria-hidden":!0}),(0,d.jsx)("span",{className:j("common-button-label",n),children:t}),i&&(0,d.jsx)("i",{className:"right "+i,"aria-hidden":!0})]}),o]})};function B(e){const{id:t,className:n,style:r,ariaLabel:i,ariaHidden:o,ariaDescribedBy:a,ariaControls:s,ariaExpanded:l,ariaHasPopup:u,ariaPosInSet:c,ariaSetSize:f,ariaSelected:d,ariaPressed:p,role:h,onClick:m,onRightClick:g,onKeydown:y,onBlur:v,onFocus:b,buttonRef:w,title:x,hardDisabled:_,href:E,target:k,tabIndex:S}=e;let{disabled:A}=e;return A=A||_,{id:t,className:j("common-button",n,A&&"disabled"),style:r,title:x,ref:w,onClick:A?void 0:e=>{m&&m(),E&&window.open(E,k||"_blank","noopener,noreferrer"),e.stopPropagation(),e.preventDefault()},onContextMenu:e=>{g&&(g(),e.stopPropagation(),e.preventDefault())},onKeyDown:y||R,onBlur:v,onFocus:b,role:h||"button",tabIndex:S||(A?-1:0),disabled:_,"aria-label":i,"aria-hidden":o,"aria-controls":s,"aria-expanded":l,"aria-haspopup":u,"aria-posinset":c,"aria-setsize":f,"aria-describedby":a,"aria-selected":d,"aria-pressed":p}}const D=e=>{const{id:t,className:n,role:r,ariaHidden:i,ariaLabel:o,childTabStopId:a,children:s,focusSelectsItem:l,onItemReceivedFocus:u,useUpAndDownArrowKeys:c}=e;let f,p;const h=e=>"true"===e.getAttribute("data-isfocusable")&&null!==e.offsetParent;return(0,d.jsx)("div",{id:t,className:n,role:r,tabIndex:a?void 0:0,onKeyDown:e=>{var t;if(null===(t=f)||void 0===t||!t.length)return;const n=document.activeElement,r=f.indexOf(n),i=e=>{e.click?e.click():e.dispatchEvent(new Event("click"))},o=e=>{e.focus(),u&&u(e),l&&i(e)};if(-1===r&&n!==p)return;let a,s;c?(a="ArrowUp",s="ArrowDown"):pxt.Util.isUserLanguageRtl()?(a="ArrowRight",s="ArrowLeft"):(a="ArrowLeft",s="ArrowRight"),l||"Enter"!==e.key&&" "!==e.key?e.key===s?(r===f.length-1||n===p?o(I(f,r,0,!0,h)):o(I(f,r,r+1,!0,h)),e.preventDefault(),e.stopPropagation()):e.key===a?(o(I(f,r,0===r||n===p?f.length-1:r-1,!1,h)),e.preventDefault(),e.stopPropagation()):"Home"===e.key?(o(I(f,r,0,!0,h)),e.preventDefault(),e.stopPropagation()):"End"===e.key&&(o(I(f,r,f.length-1,!0,h)),e.preventDefault(),e.stopPropagation()):(e.preventDefault(),e.stopPropagation(),i(n))},ref:e=>{if(!e||p)return;p=e;const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]),[data-isfocusable]');f=[];for(const e of t.values())f.push(e),e.setAttribute("tabindex","-1"),e.setAttribute("data-isfocusable","true");if(a){const e=p.querySelector("#"+a);e&&e.setAttribute("tabindex","0")}},"aria-hidden":i,"aria-label":o,children:s})},U=t=>{var n;const{id:r,className:i,inputClassName:o,groupClassName:a,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=!0,options:N}=t,[R,P]=e.useState(c||""),[I,M]=e.useState(!1),[B]=e.useState(t.filter?new RegExp(t.filter):void 0),U=e.useMemo(()=>N?Object.values(N):[],[N]);let F;e.useEffect(()=>{P(c||"")},[c]);const z=()=>{N&&M(!I)},V=e=>{if(!U.length)return;const t=U.indexOf(e);if(-1===t)return;const n=(r=e)?r.replace(/[^a-zA-Z0-9_-]/g,"-")||"option":"";var r;return"dropdown-item-".concat(t,"-").concat(n)};return(0,d.jsxs)("div",{className:j("common-input-wrapper",y&&"disabled",i),onBlur:e=>{I&&!F.contains(e.relatedTarget)&&M(!1)},ref:e=>{e&&(F=e)},children:[f&&(0,d.jsx)("label",{className:"common-input-label",htmlFor:r,children:f}),(0,d.jsxs)("div",{className:j("common-input-group",a),children:[(0,d.jsx)("input",{id:r,className:j("common-input",m&&"has-icon",o),title:p,role:s||"textbox",tabIndex:y?-1:0,"aria-label":u,"aria-hidden":l,type:v||"text",placeholder:h,value:R,readOnly:!!b,onClick:e=>{x&&e.target.select(),N&&!I&&M(!0)},onChange:e=>{let t=e.target.value;var n;t&&B&&(t=(null===(n=t.match(B))||void 0===n?void 0:n.join(""))||""),b||R===t||P(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&&"ArrowDown"===e.key){var r;I?null===(r=document.getElementById(V(U[0])))||void 0===r||r.focus():z(),e.preventDefault(),e.stopPropagation()}else if(N&&I&&"ArrowUp"===e.key){var i;null===(i=document.getElementById(V(U[U.length-1])))||void 0===i||i.focus(),e.preventDefault(),e.stopPropagation()}},onBlur:()=>{A&&A(R),T||P("")},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,tabIndex:-1,onClick:z})]}),I&&(0,d.jsx)(D,{role:"listbox",className:"common-menu-dropdown-pane common-dropdown-shadow",childTabStopId:null!==(n=V(R))&&void 0!==n?n:V(U[0]),"aria-labelledby":r,useUpAndDownArrowKeys:!0,children:(0,d.jsx)("ul",{role:"presentation",onKeyDown:e=>{var t;"Escape"===e.code&&(e.target.blur(),z(),null===(t=document.getElementById(r))||void 0===t||t.focus(),e.stopPropagation(),e.preventDefault())},children:Object.keys(N).map(e=>(0,d.jsx)("li",{role:"presentation",children:(0,d.jsx)(L,{title:e,label:e,id:V(N[e]),className:j("common-dropdown-item"),onClick:()=>(e=>{var t;M(!1);const n=N[e];P(n),C&&C(n),null===(t=document.getElementById(r))||void 0===t||t.focus()})(e),ariaSelected:V(N[e])===V(null!=R?R:c),role:"option"})},e))})})]})},F=e=>{const{id:t,className:n,ariaLabel:r,href:i,target:o,children:a,tabIndex:s,title:l}=e,u=j("common-link",n);return(0,d.jsx)("a",{id:t,className:u,"aria-label":r,href:i,target:o,rel:"_blank"===o?"noopener noreferrer":"",tabIndex:null!=s?s:0,title:l,children:a})},z=Object.create(null);z.open="0",z.close="1",z.ping="2",z.pong="3",z.message="4",z.upgrade="5",z.noop="6";const V=Object.create(null);Object.keys(z).forEach(e=>{V[z[e]]=e});const H={type:"error",data:"parser error"},W="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),q="function"==typeof ArrayBuffer,G=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Z=(e,t,n)=>{let{type:r,data:i}=e;return W&&i instanceof Blob?t?n(i):Y(i,n):q&&(i instanceof ArrayBuffer||G(i))?t?n(i):Y(new Blob([i]),n):n(z[r]+(i||""))},Y=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function $(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let K;const X="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<64;e++)X["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(e)]=e;const Q="function"==typeof ArrayBuffer,J=(e,t)=>{if("string"!=typeof e)return{type:"message",data:te(e,t)};const n=e.charAt(0);return"b"===n?{type:"message",data:ee(e.substring(1),t)}:V[n]?e.length>1?{type:V[n],data:e.substring(1)}:{type:V[n]}:H},ee=(e,t)=>{if(Q){const n=(e=>{let t,n,r,i,o,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const u=new ArrayBuffer(a),c=new Uint8Array(u);for(t=0;t<s;t+=4)n=X[e.charCodeAt(t)],r=X[e.charCodeAt(t+1)],i=X[e.charCodeAt(t+2)],o=X[e.charCodeAt(t+3)],c[l++]=n<<2|r>>4,c[l++]=(15&r)<<4|i>>2,c[l++]=(3&i)<<6|63&o;return u})(e);return te(n,t)}return{base64:!0,data:e}},te=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,ne=String.fromCharCode(30);let re;function ie(e){return e.reduce((e,t)=>e+t.length,0)}function oe(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 ae(e){if(e)return function(e){for(var t in ae.prototype)e[t]=ae.prototype[t];return e}(e)}ae.prototype.on=ae.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},ae.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},ae.prototype.off=ae.prototype.removeListener=ae.prototype.removeAllListeners=ae.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},ae.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},ae.prototype.emitReserved=ae.prototype.emit,ae.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},ae.prototype.hasListeners=function(e){return!!this.listeners(e).length};const se="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),le="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function ue(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 ce=le.setTimeout,fe=le.clearTimeout;function de(e,t){t.useNativeTimers?(e.setTimeoutFn=ce.bind(le),e.clearTimeoutFn=fe.bind(le)):(e.setTimeoutFn=le.setTimeout.bind(le),e.clearTimeoutFn=le.clearTimeout.bind(le))}function pe(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class he extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class me extends ae{constructor(e){super(),this.writable=!1,de(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 he(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=J(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 ge extends me{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(ne),r=[];for(let e=0;e<n.length;e++){const i=J(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,o)=>{Z(e,!1,e=>{r[o]=e,++i===n&&t(r.join(ne))})})})(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]=pe()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let ye=!1;try{ye="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}const ve=ye;function be(){}class we extends ge{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 xe extends ae{constructor(e,t,n){super(),this.createRequest=e,de(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=ue(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=xe.requestsCount++,xe.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=be,e)try{this._xhr.abort()}catch(e){}"undefined"!=typeof document&&delete xe.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 _e(){for(let e in xe.requests)xe.requests.hasOwnProperty(e)&&xe.requests[e].abort()}xe.requestsCount=0,xe.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",_e):"function"==typeof addEventListener&&addEventListener("onpagehide"in le?"pagehide":"unload",_e,!1));const Ee=function(){const e=ke({xdomain:!1});return e&&null!==e.responseType}();function ke(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||ve))return new XMLHttpRequest}catch(e){}if(!t)try{return new(le[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}const Se="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class Ae extends me{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,n=Se?{}:ue(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;Z(n,this.supportsBinary,e=>{try{this.doWrite(n,e)}catch(e){}r&&se(()=>{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]=pe()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const Ce=le.WebSocket||le.MozWebSocket,Oe={websocket:class extends Ae{createSocket(e,t,n){return Se?new Ce(e,t,n):t?new Ce(e,t):new Ce(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends me{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){re||(re=new TextDecoder);const n=[];let r=0,i=-1,o=!1;return new TransformStream({transform(a,s){for(n.push(a);;){if(0===r){if(ie(n)<1)break;const e=oe(n,1);o=!(128&~e[0]),i=127&e[0],r=i<126?3:126===i?1:2}else if(1===r){if(ie(n)<2)break;const e=oe(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(ie(n)<8)break;const e=oe(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),o=t.getUint32(0);if(o>Math.pow(2,21)-1){s.enqueue(H);break}i=o*Math.pow(2,32)+t.getUint32(4),r=3}else{if(ie(n)<i)break;const e=oe(n,i);s.enqueue(J(o?e:re.decode(e),t)),r=0}if(0===i||i>e){s.enqueue(H);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=new TransformStream({transform(e,t){!function(e,t){W&&e.data instanceof Blob?e.data.arrayBuffer().then($).then(t):q&&(e.data instanceof ArrayBuffer||G(e.data))?t($(e.data)):Z(e,!1,e=>{K||(K=new TextEncoder),t(K.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 o={type:"open"};this.query.sid&&(o.data='{"sid":"'.concat(this.query.sid,'"}')),this._writer.write(o).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&&se(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this._transport)||void 0===e||e.close()}},polling:class extends we{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=Ee&&!t}request(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(e,{xd:this.xd},this.opts),new xe(ke,this.uri(),e)}}},Te=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Ne=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Re(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=Te.exec(e||""),o={},a=14;for(;a--;)o[Ne[a]]=i[a]||"";return-1!=n&&-1!=r&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.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,o.path),o.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}(0,o.query),o}class je extends ae{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=Re(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=Re(t.host).host);de(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&&je.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",je.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(je.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)}}je.protocol=4;class Pe extends je{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;je.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;je.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 o=e=>{const n=new Error("probe error: "+e);n.transport=t.name,i(),this.emitReserved("upgradeError",n)};function a(){o("transport closed")}function s(){o("socket closed")}function l(e){t&&e.name!==t.name&&i()}const u=()=>{t.removeListener("open",r),t.removeListener("error",o),t.removeListener("close",a),this.off("close",s),this.off("upgrading",l)};t.once("open",r),t.once("error",o),t.once("close",a),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 Ie extends Pe{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=>Oe[e]).filter(e=>!!e)),super(e,t)}}var Le=n(3529);class Me 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 At(void 0)}onSignInFailed(){return Promise.resolve()}async onUserProfileChanged(){const e=await pxt.auth.getUserStateAsync();null!=e&&e.profile&&pxt.auth.generateUserProfilePicDataUrl(e.profile),await At(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 Be;async function De(){if(pxt.auth.hasIdentity())return Be||(Be=new Promise(async(e,t)=>{const n=new Me;await n.initAsync(),await n.authCheckAsync(),await n.initialUserPreferencesAsync(),e(n)}),Be)}async function Ue(){return await pxt.auth.getAuthTokenAsync()}var Fe=n(1781),ze=n.n(Fe);function Ve(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++)e[r]^=t[r];return e}function He(e){return new Promise((t,n)=>{ze().gzip(e,(e,r)=>{e?n(e):t(r)})})}function We(e){return new Promise((t,n)=>{ze().gunzip(e,(e,r)=>{e?n(e):t(r)})})}function qe(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 Ge(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 Ze(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 Ye=n(3705);let $e,Ke,Xe,Qe=e=>{var t;return $e&&!e||($e=new pxt.MainPackage((null===(t=$e)||void 0===t?void 0:t.host())||new nt)),$e};function Je(e){let t,n=e._editorPkg;if(n)return n;e!=Qe()&&(t=Je(Qe()));let r=new et(e,t);return e==Qe()&&(r.topPkg=r),e._editorPkg=r,r}pxt.react.getTilemapProject||(pxt.react.getTilemapProject=()=>(Ke||(Ke=new pxt.TilemapProject,Ke.loadPackage(Qe())),Ke));class et{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 tt(){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 nt{constructor(){this.githubPackageCache={}}readFile(e,t){let n=Je(e);return pxt.U.lookup(n.files,t)}writeFile(e,t,n){Je(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],o=pxt.github.parseRepoId(i);if(o&&r.fullName==o.fullName)return pxt.semver.strcmp(r.tag,o.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=Je(e);return(n?Promise.resolve(n):e.commonDownloadAsync()).then(o=>{if(o)return"github"!=r&&"pub"!=r||n||(this.githubPackageCache[e._verspec]=pxt.Util.clone(o)),i.setFiles(o),Promise.resolve();if("empty"==r){if(0==Object.keys(i.files).length&&i.setFiles(tt()),t&&t.length){const n=Je(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=tt(),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 Ye.warn("unknown package syntax ".concat(t));return!0}}function rt(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 it(e){const t=await function(){let e=Qe().getTargetOptions();return Qe().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=>{Ye.error(e.messageText)}),n}function ot(e){if(Xe||(Xe=new pxsim.SimulatorDriver(e)),e&&(Xe.container=e),Xe.container)return Xe}function at(e,t,n){var r;const i=ot(e),{fnArgs:o,parts:a,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:a,builtinParts:s,fnArgs:o,cdnUrl:pxt.webConfig.commitCdnUrl,localizedStrings:pxt.Util.getLocalizedStrings(),storedState:rt(t),single:!0,autofocus:!0,queryParameters:t.simQueryParams,mpRole:t.mpRole};return i.setRunOptions(u),u}async function st(e){var t,n;await async function(e){const t="server"===e.mpRole?"pub:".concat(e.id):"empty:clientprj",n=Qe();if((null==n?void 0:n._verspec)!==t||t.startsWith("pub:S")){const e=Qe(!0);e.host().cacheStoreAsync(t,void 0),e._verspec=t,await e.host().downloadPackageAsync(Qe(),[]),await Qe().installAllAsync()}try{"client"===e.mpRole&&(Je(Qe()).files[pxt.MAIN_TS]="multiplayer.init()")}catch(e){Ye.error(lf("Cannot load extension: {0}",e))}}(e);let r=!1;const i=pxt.appTarget.versions.target;let o=await it(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 o=null===(n=Qe().config.targetVersions)||void 0===n?void 0:n.target;if(o&&i&&pxt.semver.cmp(pxt.semver.parse(o),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(o,t.fileSystem[e]))});(null===(t=o.diagnostics)||void 0===t?void 0:t.length)>0&&r&&(pxt.log("Compile with upgrade rules failed, trying again with original code"),o=await it(t=>{"client"===e.mpRole&&(t.fileSystem[pxt.MAIN_TS]="multiplayer.init()")})),(null===(n=o.diagnostics)||void 0===n?void 0:n.length)>0&&(Ye.error("Diagnostics",o.diagnostics),h(w("init")),yt("compile-failed"));const a=pxtc.buildSimJsInfo(o);return a.parts=o.usedParts,a}var lt=n(3325).Buffer,ut=n(3705);const ct="https://multiplayer.staging.pxt.io",ft=ct,dt=pxt.BrowserUtils.isLocalHostDev()?ft:"arcade.makecode.com"===window.location.hostname?"https://mp.makecode.com":ct;class pt{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=Le.I.fromBuffer(lt.from(e));switch(t.readUInt16LE()){case mt.Binary.MessageType.CompressedScreen:return await this.recvCompressedScreenMessageAsync(t);case mt.Binary.MessageType.Input:return await this.recvInputMessageAsync(t);case mt.Binary.MessageType.Audio:return await this.recvAudioMessageAsync(t);case mt.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){ut.error("Error processing message",e),gt(),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 lt){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"),gt()},2e4);this.sock=new Ie(dt,{transports:["websocket"],path:"/mp"}),this.sock.binaryType="arraybuffer",this.sock.on("open",()=>{var n,i,o,a;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){ut.error("Error processing message",e),gt()}}),null===(o=this.sock)||void 0===o||o.on("close",()=>{pxt.debug("socket disconnected"),_t(this.gameOverReason),clearTimeout(r),t()}),null===(a=this.sock)||void 0===a||a.on("error",e=>{e&&pxt.log("Error sending message. "+e.toString())}),this.sendMessage({type:"connect",ticket:e,version:mt.VERSION})})})}async hostGameAsync(e){try{e=encodeURIComponent(e);const t=await Ue(),n=await fetch("".concat(dt,"/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 Ue(),n=await fetch("".concat(dt,"/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"),o=r.description||"",a="".concat(t,"/thumb");return h({type:"SET_GAME_METADATA",gameMetadata:{title:i,description:o,thumbnail:a}}),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 xt(t,n,e.slot)}async recvStartGameMessageAsync(e){pxt.debug("Server said start game"),await xt("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=ot())||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=ot())||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{yt(e)}catch(e){}}(e.reason)}async recvPauseGameMessageAsync(e){pxt.debug("Server sent pause game"),this.paused=!0,await Ct()}async recvResumeGameMessageAsync(e){pxt.debug("Server sent resume game"),this.paused=!1,await Ot()}async recvCompressedScreenMessageAsync(e){const{zippedData:t,isDelta:n}=mt.Binary.unpackCompressedScreenMessage(e),r=await We(t);n?this.screen&&Ve(this.screen,r):this.screen=r;const{image:i,palette:o}=this.getCurrentScreen();i&&this.postToSimFrame({type:"multiplayer",content:"Image",image:{data:i},palette:o})}async recvInputMessageAsync(e){const{button:t,state:n,slot:i}=mt.Binary.unpackInputMessage(e),a=function(e){switch(e){case r.Pressed:return"Pressed";case r.Released:return"Released";case r.Held:return"Held"}}(n);t<=o.None||t>=o.Menu||i<2||!a||this.postToSimFrame({type:"multiplayer",content:"Button",clientNumber:i-1,button:t,state:a})}async recvAudioMessageAsync(e){const{instruction:t,soundbuf:n}=mt.Binary.unpackAudioMessage(e);this.postToSimFrame({type:"multiplayer",content:"Audio",instruction:s(t),soundbuf:n})}async recvIconMessageAsync(e){const{iconType:t,iconSlot:n,iconBuffer:r}=mt.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 We(r),i=e.slice(0,48),o=e.slice(48);Nt(t,n,pxt.convertUint8BufferToPngUri(i,o))}else Nt(t,n)}postToSimFrame(e){var t;null===(t=ot())||void 0===t||t.postMessage(e)}async sendInputAsync(e,t){if(this.paused)return;const n=mt.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=mt.Binary.packAudioMessage(function(e){switch(e){case"muteallchannels":return a.MuteAllChannels;case"playinstructions":return a.PlayInstruction}}(e),lt.from(t));this.sendMessage(n)}async sendIconAsync(e,t,n,r){let i;if(n&&r){const e=lt.concat([n,r]);i=await He(e)}const o=mt.Binary.packIconMessage(e,t,i);this.sendMessage(o)}async sendScreenUpdateAsync(e,t){const n=[];n.push(lt.from(e)),t&&n.push(lt.from(t));const r=lt.concat(n),i=!this.screen;i?this.screen=r:(Ve(r,this.screen),Ve(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 He(r),t=mt.Binary.packCompressedScreenMessage(e,!i);this.sendMessage(t)}}}async sendCurrentScreenAsync(){if(this.screen){const e=await He(this.screen),t=mt.Binary.packCompressedScreenMessage(e,!1);this.sendMessage(t)}}kickPlayer(e){const t={type:"kick-player",clientId:e};this.sendMessage(t)}gameOver(e){this.gameOverReason=e,gt()}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 ht,mt;function gt(){var e;null===(e=ht)||void 0===e||e.destroy(),ht=void 0}function yt(e){var t;null===(t=ht)||void 0===t||t.gameOver(e)}async function vt(e){if(!(e=Ge(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 gt(),ht=new pt,await ht.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 bt(e){if(!(e=qe(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 gt(),ht=new pt,await ht.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)_t("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 wt(e){try{pxt.tickEvent("mp.leavegame"),await async function(e){var t;await(null===(t=ht)||void 0===t?void 0:t.leaveGameAsync(e)),gt()}(e),h({type:"CLEAR_GAME_INFO"}),h({type:"SET_GAME_METADATA",gameMetadata:void 0})}catch(e){}}async function xt(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&&Ct())}catch(e){}}function _t(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 Le.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 Le.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 Le.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 Le.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={})))}(mt||(mt={}));const Et=[{name:lf("smile"),emoji:"😃"},{name:lf("laugh"),emoji:"🤣"},{name:lf("surprise"),emoji:"😯"},{name:lf("cry"),emoji:"😫"},{name:lf("scared"),emoji:"😬"},{name:lf("angry"),emoji:"😠"}],kt=[];async function St(e){try{if(!kt[e]||kt[e]+250<Date.now()){kt[e]=Date.now();const t=Et[e];pxt.tickEvent("mp.sendreaction",{reaction:t.name}),await async function(e){var t;await(null===(t=ht)||void 0===t?void 0:t.sendReactionAsync(e))}(e)}}catch(e){}}async function At(e){try{h(e?(e=>({type:"SET_USER_PROFILE",profile:e}))(e):{type:"SET_USER_PROFILE",profile:void 0})}catch(e){}}async function Ct(){const{clientRole:e}=p;try{var t;"host"===e&&(pxt.tickEvent("mp.host.pausegame"),await async function(){var e;await(null===(e=ht)||void 0===e?void 0:e.pauseGameAsync())}()),null===(t=ot())||void 0===t||t.resume(pxsim.SimulatorDebuggerCommand.Pause),h(A(!0))}catch(e){}}async function Ot(){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=ht)||void 0===e?void 0:e.resumeGameAsync())}()),null===(n=ot())||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=ot())||void 0===r||r.postMessage({type:"multiplayer",content:"Connection",slot:e,connected:n})}await async function(){var e;await(null===(e=ht)||void 0===e?void 0:e.sendCurrentScreenAsync())}()}}catch(e){}}async function Tt(e){const{clientRole:t,gameState:n}=p,{gameMode:r}=null!=n?n:{};try{e||"host"!==t||"playing"!==r||await Ct()}catch(e){}}async function Nt(e,t,n){try{const r=e===i.Player?C:O;h(r(t,n))}catch(e){}}function Rt(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(--pxt-primary-background)":"transparent"}})]})}function jt(e){const{title:t,subtitle:n,image:r}=e,i=Ge(e.shareId),o=lf("Host a multiplayer session with '{0}'",pxt.U.rlf(t)),a=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 vt(i)},title:o,label:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("img",{className:"tw-w-full tw-aspect-[4/3]",src:a,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 Pt(){var t;const{state:n}=(0,e.useContext)(m),{targetConfig:r}=n,[i,o]=(0,e.useState)("join"),a=(0,e.useRef)(),s=(0,e.useRef)(),l=(0,e.useCallback)(e=>{a.current=e},[]),u=(0,e.useCallback)(e=>{s.current=e},[]),c=async()=>{var e;null!=a&&null!==(e=a.current)&&void 0!==e&&e.value&&await bt(a.current.value)},f=async()=>{var e;null!=s&&null!==(e=s.current)&&void 0!==e&&e.value&&await vt(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)(Rt,{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:()=>o("join")}),(0,d.jsx)(Rt,{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:()=>o("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)(U,{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)(F,{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)(U,{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)(F,{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)(jt,{shareId:e.shareId,title:pxt.Util.rlf("{id:game-title}".concat(e.title)),subtitle:pxt.Util.rlf("{id:game-subtitle}".concat(e.subtitle)),image:Ze(e.image)},t))})]})]})}let It;function Lt(){const{state:t}=(0,e.useContext)(m),{playerSlot:n,gameState:r,clientRole:i,gamePaused:o}=t,a=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=ht)||void 0===e?void 0:e.getCurrentScreen())||{image:void 0,palette:void 0}}();var r;e&&(null===(r=ot())||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 o;null===(o=ot())||void 0===o||o.postMessage({type:"multiplayer",content:"Connection",slot:e.slot,connected:!0})}return;case"multiplayer":const{origin:n,content:a}=t;return void("client"===n&&"Button"===a?(async e=>{const{button:t,state:n}=e;await async function(e,t){var n;await(null===(n=ht)||void 0===n?void 0:n.sendInputAsync(e,t))}(t,n)})(t):"server"===n&&"Image"===a?(async e=>{const{image:t,palette:n}=e,{data:r}=t;await async function(e,t){var n;await(null===(n=ht)||void 0===n?void 0:n.sendScreenUpdateAsync(e,t))}(r,n)})(t):"server"===n&&"Audio"===a?(async e=>{const{instruction:t,soundbuf:n}=e;await async function(e,t){var n;await(null===(n=ht)||void 0===n?void 0:n.sendAudioAsync(e,t))}(t,n)})(t):"server"===n&&"Icon"===a&&(async e=>{const{iconType:t,palette:n,icon:r,slot:i}=e,{data:o}=r||{};await async function(e,t,n,r){var i;await(null===(i=ht)||void 0===i?void 0:i.sendIconAsync(e,t,n,r))}(t,i,n,o)})(t))}};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[i]);const f=()=>{let e;return e=c?{simQueryParams:u,mpRole:"server",id:a}:{simQueryParams:u,mpRole:"client"},e},h=async()=>(It=st(f()),await It);return(0,e.useEffect)(()=>{"playing"===s&&(async()=>{const e=f();It&&(e.builtJsInfo=await It),It=async function(e,t){var n,r;const i=t.builtJsInfo||await st(t),{js:o}=i;if(!o)return void Ye.error("Program failed to compile");const a=at(e,t,i),s=ot(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?(a.storedState=rt(t),s.run(o,a)):"setstate"===e.command?e.stateKey&&function(e,t,n){if("server"!=e.mpRole)return;const r=e.id;let i=rt(e);null!=n?i[t]=n:delete i[t];try{window.localStorage.setItem(r,JSON.stringify(i))}catch(e){}}(t,e.stateKey,e.stateValue):"single"===e.command&&s.setSingleSimulator()},i.breakpoints&&s.setBreakpoints(i.breakpoints),s.run(o,a),i}(l.current,e),await It})()},[s]),(0,e.useEffect)(()=>{"playing"!==s&&l.current&&async function(e,t){var n;at(e,t),null===(n=ot())||void 0===n||n.preload(1,!0)}(l.current,f())},[i,n]),(0,e.useEffect)(()=>{c||h()},[i]),(0,e.useEffect)(()=>{c&&a&&h()},[i,a]),(0,e.useEffect)(()=>()=>{It=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:o?"grayscale(70%) blur(1px)":"none",transition:"filter .25s"}})}var Mt,Bt=Object.defineProperty,Dt=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,zt=(e,t,n)=>t in e?Bt(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 a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.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)}}o(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,a,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),o=s.getTotalBits(e,i);if(o<=r){a=o;break}if(i>=u)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])f&&a<=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)}o(d.length==a);const p=8*t.getNumDataCodewords(i,n);o(d.length<=p),r(0,Math.min(4,p-d.length),d),r(0,(8-d.length%8)%8,d),o(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);o(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;o(t>>>18==0);for(let e=0;e<18;e++){const n=i(t,e),r=this.size-11+e%3,o=Math.floor(e/3);this.setFunctionModule(r,o,n),this.setFunctionModule(o,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)),o=e+r,a=t+n;0<=o&&o<this.size&&0<=a&&a<this.size&&this.setFunctionModule(o,a,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],a=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(a);for(let n=0,r=0;n<i;n++){let i=e.slice(r,r+u-a+(n<l?0:1));r+=i.length;const o=t.reedSolomonComputeRemainder(i,f);n<l&&i.push(0),c.push(i.concat(o))}let d=[];for(let e=0;e<c[0].length;e++)c.forEach((t,n)=>{(e!=u-a||n>=l)&&d.push(t[e])});return o(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 o=0;o<2;o++){const a=t-o,s=t+1&2?r:this.size-1-r;!this.isFunction[s][a]&&n<8*e.length&&(this.modules[s][a]=i(e[n>>>3],7-(7&n)),n++)}}o(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,o=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?(i++,5==i?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,o),r||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),r=this.modules[n][a],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,o)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,i=0,o=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?(i++,5==i?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,o),r||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),r=this.modules[a][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,o)*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 o(0<=i&&i<=9),e+=i*t.PENALTY_N4,o(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 o(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 o(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];o(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!!(e>>>t&1)}function o(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 a=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 a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.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 a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.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*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));i+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(i,11,n)}return t<e.length&&r(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new a(a.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.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 a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.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=a;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(Mt||(Mt={})),(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={}))})(Mt||(Mt={})),(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={}))})(Mt||(Mt={}));var Vt=Mt,Ht={L:Vt.QrCode.Ecc.LOW,M:Vt.QrCode.Ecc.MEDIUM,Q:Vt.QrCode.Ecc.QUARTILE,H:Vt.QrCode.Ecc.HIGH},Wt=128,qt="L",Gt="#FFFFFF",Zt="#000000",Yt=!1;function $t(t){const n=t,{value:r,size:i=Wt,level:o=qt,bgColor:a=Gt,fgColor:s=Zt,includeMargin:l=Yt,imageSettings:u}=n,c=((e,t)=>{var n={};for(var r in e)Ut.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Dt)for(var r of Dt(e))t.indexOf(r)<0&&Ft.call(e,r)&&(n[r]=e[r]);return n})(n,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let f=Vt.QrCode.encodeText(r,Ht[o]).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,o=e.length+2*i,a=Math.floor(.1*t),s=o/t,l=(r.width||a)*s,u=(r.height||a)*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(o,a){if(!o&&null!==i)return n.push("M".concat(i+t," ").concat(r+t,"h").concat(a-i,"v1H").concat(i+t,"z")),void(i=null);if(a!==e.length-1)o&&null===i&&(i=a);else{if(!o)return;null===i?n.push("M".concat(a+t,",").concat(r+t," h1v1H").concat(a+t,"z")):n.push("M".concat(i+t,",").concat(r+t," h").concat(a+1-i,"v1H").concat(i+t,"z"))}})}),n.join("")}(f,d);return e.createElement("svg",((e,t)=>{for(var n in t||(t={}))Ut.call(t,n)&&zt(e,n,t[n]);if(Dt)for(var n of Dt(t))Ft.call(t,n)&&zt(e,n,t[n]);return e})({height:i,width:i,viewBox:"0 0 ".concat(p," ").concat(p)},c),e.createElement("path",{fill:a,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 Kt={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"]},Xt={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"]},Qt={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"]},Jt={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"]},en=n(3705);function tn(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 nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(n),!0).forEach(function(t){an(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rn(e){return rn="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},rn(e)}function on(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 an(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sn(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,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||un(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 ln(e){return function(e){if(Array.isArray(e))return cn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||un(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 un(e,t){if(e){if("string"==typeof e)return cn(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)?cn(e,t):void 0}}function cn(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 fn=function(){},dn={},pn={},hn=null,mn={mark:fn,measure:fn};try{"undefined"!=typeof window&&(dn=window),"undefined"!=typeof document&&(pn=document),"undefined"!=typeof MutationObserver&&(hn=MutationObserver),"undefined"!=typeof performance&&(mn=performance)}catch(e){}var gn,yn,vn,bn,wn,xn=(dn.navigator||{}).userAgent,_n=void 0===xn?"":xn,En=dn,kn=pn,Sn=hn,An=mn,Cn=(En.document,!!kn.documentElement&&!!kn.head&&"function"==typeof kn.addEventListener&&"function"==typeof kn.createElement),On=~_n.indexOf("MSIE")||~_n.indexOf("Trident/"),Tn="___FONT_AWESOME___",Nn="svg-inline--fa",Rn="data-fa-i2svg",jn="data-fa-pseudo-element",Pn="data-prefix",In="data-icon",Ln="fontawesome-i2svg",Mn=["HTML","HEAD","STYLE","SCRIPT"],Bn=function(){try{return!0}catch(e){return!1}}(),Dn="classic",Un="sharp",Fn=[Dn,Un];function zn(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[Dn]}})}var Vn=zn((an(gn={},Dn,{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"}),an(gn,Un,{fa:"solid",fass:"solid","fa-solid":"solid"}),gn)),Hn=zn((an(yn={},Dn,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),an(yn,Un,{solid:"fass"}),yn)),Wn=zn((an(vn={},Dn,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),an(vn,Un,{fass:"fa-solid"}),vn)),qn=zn((an(bn={},Dn,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),an(bn,Un,{"fa-solid":"fass"}),bn)),Gn=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,Zn="fa-layers-text",Yn=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,$n=zn((an(wn={},Dn,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),an(wn,Un,{900:"fass"}),wn)),Kn=[1,2,3,4,5,6,7,8,9,10],Xn=Kn.concat([11,12,13,14,15,16,17,18,19,20]),Qn=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Jn="duotone-group",er="swap-opacity",tr="primary",nr="secondary",rr=new Set;Object.keys(Hn[Dn]).map(rr.add.bind(rr)),Object.keys(Hn[Un]).map(rr.add.bind(rr));var ir=[].concat(Fn,ln(rr),["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",Jn,er,tr,nr]).concat(Kn.map(function(e){return"".concat(e,"x")})).concat(Xn.map(function(e){return"w-".concat(e)})),or=En.FontAwesomeConfig||{};kn&&"function"==typeof kn.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=sn(e,2),n=t[0],r=t[1],i=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=kn.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=i&&(or[r]=i)});var ar={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:Nn,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};or.familyPrefix&&(or.cssPrefix=or.familyPrefix);var sr=nn(nn({},ar),or);sr.autoReplaceSvg||(sr.observeMutations=!1);var lr={};Object.keys(ar).forEach(function(e){Object.defineProperty(lr,e,{enumerable:!0,set:function(t){sr[e]=t,ur.forEach(function(e){return e(lr)})},get:function(){return sr[e]}})}),Object.defineProperty(lr,"familyPrefix",{enumerable:!0,set:function(e){sr.cssPrefix=e,ur.forEach(function(e){return e(lr)})},get:function(){return sr.cssPrefix}}),En.FontAwesomeConfig=lr;var ur=[],cr=16,fr={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function dr(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function pr(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function hr(e){return e.classList?pr(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(e){return e})}function mr(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function gr(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function yr(e){return e.size!==fr.size||e.x!==fr.x||e.y!==fr.y||e.rotate!==fr.rotate||e.flipX||e.flipY}function vr(){var e="fa",t=Nn,n=lr.cssPrefix,r=lr.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 o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var br=!1;function wr(){lr.autoAddCss&&!br&&(function(e){if(e&&Cn){var t=kn.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=kn.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}kn.head.insertBefore(t,r)}}(vr()),br=!0)}var xr={mixout:function(){return{dom:{css:vr,insertCss:wr}}},hooks:function(){return{beforeDOMElementCreation:function(){wr()},beforeI2svg:function(){wr()}}}},_r=En||{};_r[Tn]||(_r[Tn]={}),_r[Tn].styles||(_r[Tn].styles={}),_r[Tn].hooks||(_r[Tn].hooks={}),_r[Tn].shims||(_r[Tn].shims=[]);var Er=_r[Tn],kr=[],Sr=!1;function Ar(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,i=e.children,o=void 0===i?[]:i;return"string"==typeof e?mr(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(mr(e[n]),'" ')},"").trim()}(r),">").concat(o.map(Ar).join(""),"</").concat(t,">")}function Cr(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}Cn&&((Sr=(kn.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(kn.readyState))||kn.addEventListener("DOMContentLoaded",function e(){kn.removeEventListener("DOMContentLoaded",e),Sr=1,kr.map(function(e){return e()})}));var Or=function(e,t,n,r){var i,o,a,s=Object.keys(e),l=s.length,u=void 0!==r?function(e,t){return function(n,r,i,o){return e.call(t,n,r,i,o)}}(t,r):t;for(void 0===n?(i=1,a=e[s[0]]):(i=0,a=n);i<l;i++)a=u(a,e[o=s[i]],o,e);return a};function Tr(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 o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function Nr(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 Rr(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==n&&n,i=Nr(t);"function"!=typeof Er.hooks.addPack||r?Er.styles[e]=nn(nn({},Er.styles[e]||{}),i):Er.hooks.addPack(e,Nr(t)),"fas"===e&&Rr("fa",t)}var jr,Pr,Ir,Lr=Er.styles,Mr=Er.shims,Br=(an(jr={},Dn,Object.values(Wn[Dn])),an(jr,Un,Object.values(Wn[Un])),jr),Dr=null,Ur={},Fr={},zr={},Vr={},Hr={},Wr=(an(Pr={},Dn,Object.keys(Vn[Dn])),an(Pr,Un,Object.keys(Vn[Un])),Pr);var qr=function(){var e=function(e){return Or(Lr,function(t,n,r){return t[r]=Or(n,e,{}),t},{})};Ur=e(function(e,t,n){if(t[3]&&(e[t[3]]=n),t[2]){var r=t[2].filter(function(e){return"number"==typeof e});r.forEach(function(t){e[t.toString(16)]=n})}return e}),Fr=e(function(e,t,n){if(e[n]=n,t[2]){var r=t[2].filter(function(e){return"string"==typeof e});r.forEach(function(t){e[t]=n})}return e}),Hr=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 Lr||lr.autoFetchSvg,n=Or(Mr,function(e,n){var r=n[0],i=n[1],o=n[2];return"far"!==i||t||(i="fas"),"string"==typeof r&&(e.names[r]={prefix:i,iconName:o}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:o}),e},{names:{},unicodes:{}});zr=n.names,Vr=n.unicodes,Dr=Kr(lr.styleDefault,{family:lr.familyDefault})};function Gr(e,t){return(Ur[e]||{})[t]}function Zr(e,t){return(Hr[e]||{})[t]}function Yr(e){return zr[e]||{prefix:null,iconName:null}}function $r(){return Dr}ur.push(function(e){Dr=Kr(e.styleDefault,{family:lr.familyDefault})}),qr();function Kr(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===t?Dn:t,r=Vn[n][e],i=Hn[n][e]||Hn[n][r],o=e in Er.styles?e:null;return i||o||null}var Xr=(an(Ir={},Dn,Object.keys(Wn[Dn])),an(Ir,Un,Object.keys(Wn[Un])),Ir);function Qr(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,r=void 0!==n&&n,i=(an(t={},Dn,"".concat(lr.cssPrefix,"-").concat(Dn)),an(t,Un,"".concat(lr.cssPrefix,"-").concat(Un)),t),o=null,a=Dn;(e.includes(i[Dn])||e.some(function(e){return Xr[Dn].includes(e)}))&&(a=Dn),(e.includes(i[Un])||e.some(function(e){return Xr[Un].includes(e)}))&&(a=Un);var s=e.reduce(function(e,t){var n=function(e,t){var n,r=t.split("-"),i=r[0],o=r.slice(1).join("-");return i!==e||""===o||(n=o,~ir.indexOf(n))?null:o}(lr.cssPrefix,t);if(Lr[t]?(t=Br[a].includes(t)?qn[a][t]:t,o=t,e.prefix=t):Wr[a].indexOf(t)>-1?(o=t,e.prefix=Kr(t,{family:a})):n?e.iconName=n:t!==lr.replacementClass&&t!==i[Dn]&&t!==i[Un]&&e.rest.push(t),!r&&e.prefix&&e.iconName){var s="fa"===o?Yr(e.iconName):{},l=Zr(e.prefix,e.iconName);s.prefix&&(o=null),e.iconName=s.iconName||l||e.iconName,e.prefix=s.prefix||e.prefix,"far"!==e.prefix||Lr.far||!Lr.fas||lr.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||a!==Un||!Lr.fass&&!lr.autoFetchSvg||(s.prefix="fass",s.iconName=Zr(s.prefix,s.iconName)||s.iconName),"fa"!==s.prefix&&"fa"!==o||(s.prefix=$r()||"fas"),s}var Jr=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]=nn(nn({},e.definitions[t]||{}),i[t]),Rr(t,i[t]);var n=Wn[Dn][t];n&&Rr(n,i[t]),qr()})}},{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,o=r.iconName,a=r.icon,s=a[2];e[i]||(e[i]={}),s.length>0&&s.forEach(function(t){"string"==typeof t&&(e[i][t]=a)}),e[i][o]=a}),e}}],n&&on(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ei=[],ti={},ni={},ri=Object.keys(ni);function ii(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(ti[e]||[]).forEach(function(e){t=e.apply(null,[t].concat(r))}),t}function oi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(ti[e]||[]).forEach(function(e){e.apply(null,n)})}function ai(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return ni[e]?ni[e].apply(null,t):void 0}function si(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||$r();if(t)return t=Zr(n,t)||t,Cr(li.definitions,n,t)||Cr(Er.styles,n,t)}var li=new Jr,ui={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Cn?(oi("beforeI2svg",e),ai("pseudoElements2svg",e),ai("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===lr.autoReplaceSvg&&(lr.autoReplaceSvg=!0),lr.observeMutations=!0,e=function(){di({autoReplaceSvgRoot:n}),oi("watch",t)},Cn&&(Sr?setTimeout(e,0):kr.push(e))}},ci={icon:function(e){if(null===e)return null;if("object"===rn(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Zr(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=Kr(e[0]);return{prefix:n,iconName:Zr(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(lr.cssPrefix,"-"))>-1||e.match(Gn))){var r=Qr(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||$r(),iconName:Zr(r.prefix,r.iconName)||r.iconName}}if("string"==typeof e){var i=$r();return{prefix:i,iconName:Zr(i,e)||e}}}},fi={noAuto:function(){lr.autoReplaceSvg=!1,lr.observeMutations=!1,oi("noAuto")},config:lr,dom:ui,parse:ci,library:li,findIconDefinition:si,toHtml:Ar},di=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?kn:e;(Object.keys(Er.styles).length>0||lr.autoFetchSvg)&&Cn&&lr.autoReplaceSvg&&fi.dom.i2svg({node:t})};function pi(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(e){return Ar(e)})}}),Object.defineProperty(e,"node",{get:function(){if(Cn){var t=kn.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function hi(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,a=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=[lr.replacementClass,o?"".concat(lr.cssPrefix,"-").concat(o):""].filter(function(e){return-1===f.classes.indexOf(e)}).filter(function(e){return""!==e||!!e}).concat(f.classes).join(" "),b={children:[],attributes:nn(nn({},f.attributes),{},{"data-prefix":i,"data-icon":o,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[Rn]=""),l&&(b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(c||dr())},children:[l]}),delete b.attributes.title);var x=nn(nn({},b),{},{prefix:i,iconName:o,main:n,mask:r,maskId:u,transform:a,symbol:s,styles:nn(nn({},w),f.styles)}),_=r.found&&n.found?ai("generateAbstractMask",x)||{children:[],attributes:{}}:ai("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,o=e.symbol,a=!0===o?"".concat(t,"-").concat(lr.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:nn(nn({},i),{},{id:a}),children:r}]}]}(x):function(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,a=e.transform;if(yr(a)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};i.style=gr(nn(nn({},o),{},{"transform-origin":"".concat(s.x+a.x/16,"em ").concat(s.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(x)}function mi(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.title,a=e.extra,s=e.watchable,l=void 0!==s&&s,u=nn(nn(nn({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});l&&(u[Rn]="");var c=nn({},a.styles);yr(i)&&(c.transform=function(e){var t=e.transform,n=e.width,r=void 0===n?16:n,i=e.height,o=void 0===i?16:i,a=e.startCentered,s=void 0!==a&&a,l="";return l+=s&&On?"translate(".concat(t.x/cr-r/2,"em, ").concat(t.y/cr-o/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/cr,"em), calc(-50% + ").concat(t.y/cr,"em)) "):"translate(".concat(t.x/cr,"em, ").concat(t.y/cr,"em) "),(l+="scale(".concat(t.size/cr*(t.flipX?-1:1),", ").concat(t.size/cr*(t.flipY?-1:1),") "))+"rotate(".concat(t.rotate,"deg) ")}({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);var f=gr(c);f.length>0&&(u.style=f);var d=[];return d.push({tag:"span",attributes:u,children:[t]}),o&&d.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),d}var gi=Er.styles;function yi(e){var t=e[0],n=e[1],r=sn(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(lr.cssPrefix,"-").concat(Jn)},children:[{tag:"path",attributes:{class:"".concat(lr.cssPrefix,"-").concat(nr),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(lr.cssPrefix,"-").concat(tr),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var vi={found:!1,width:512,height:512};function bi(e,t){var n=t;return"fa"===t&&null!==lr.styleDefault&&(t=$r()),new Promise(function(r,i){if(ai("missingIconAbstract"),"fa"===n){var o=Yr(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&gi[t]&&gi[t][e])return r(yi(gi[t][e]));!function(e,t){Bn||lr.showMissingIcons||!e||en.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(nn(nn({},vi),{},{icon:lr.showMissingIcons&&e&&ai("missingIconAbstract")||{}}))})}var wi=function(){},xi=lr.measurePerformance&&An&&An.mark&&An.measure?An:{mark:wi,measure:wi},_i='FA "6.2.0"',Ei=function(e){xi.mark("".concat(_i," ").concat(e," ends")),xi.measure("".concat(_i," ").concat(e),"".concat(_i," ").concat(e," begins"),"".concat(_i," ").concat(e," ends"))},ki=function(e){return xi.mark("".concat(_i," ").concat(e," begins")),function(){return Ei(e)}},Si=function(){};function Ai(e){return"string"==typeof(e.getAttribute?e.getAttribute(Rn):null)}function Ci(e){return kn.createElementNS("http://www.w3.org/2000/svg",e)}function Oi(e){return kn.createElement(e)}function Ti(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===t?"svg"===e.tag?Ci:Oi:t;if("string"==typeof e)return kn.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(Ti(e,{ceFn:n}))}),r}var Ni={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(e){t.parentNode.insertBefore(Ti(e),t)}),null===t.getAttribute(Rn)&&lr.keepOriginalSource){var n=kn.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(~hr(t).indexOf(lr.replacementClass))return Ni.replace(e);var r=new RegExp("".concat(lr.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce(function(e,t){return t===lr.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 o=n.map(function(e){return Ar(e)}).join("\n");t.setAttribute(Rn,""),t.innerHTML=o}};function Ri(e){e()}function ji(e,t){var n="function"==typeof t?t:Si;if(0===e.length)n();else{var r=Ri;"async"===lr.mutateApproach&&(r=En.requestAnimationFrame||Ri),r(function(){var t=!0===lr.autoReplaceSvg?Ni.replace:Ni[lr.autoReplaceSvg]||Ni.replace,r=ki("mutate");e.map(t),r(),n()})}}var Pi=!1;function Ii(){Pi=!0}function Li(){Pi=!1}var Mi=null;function Bi(e){if(Sn&&lr.observeMutations){var t=e.treeCallback,n=void 0===t?Si:t,r=e.nodeCallback,i=void 0===r?Si:r,o=e.pseudoElementsCallback,a=void 0===o?Si:o,s=e.observeMutationsRoot,l=void 0===s?kn:s;Mi=new Sn(function(e){if(!Pi){var t=$r();pr(e).forEach(function(e){if("childList"===e.type&&e.addedNodes.length>0&&!Ai(e.addedNodes[0])&&(lr.searchPseudoElements&&a(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&lr.searchPseudoElements&&a(e.target.parentNode),"attributes"===e.type&&Ai(e.target)&&~Qn.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(Pn):null,n=e.getAttribute?e.getAttribute(In):null;return t&&n}(e.target)){var r=Qr(hr(e.target)),o=r.prefix,s=r.iconName;e.target.setAttribute(Pn,o||t),s&&e.target.setAttribute(In,s)}else(l=e.target)&&l.classList&&l.classList.contains&&l.classList.contains(lr.replacementClass)&&i(e.target);var l})}}),Cn&&Mi.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Di(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=function(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"",i=Qr(hr(e));return i.prefix||(i.prefix=$r()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=function(e,t){return(Fr[e]||{})[t]}(i.prefix,e.innerText)||Gr(i.prefix,Tr(e.innerText))),!i.iconName&&lr.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}(e),r=n.iconName,i=n.prefix,o=n.rest,a=function(e){var t=pr(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 lr.autoA11y&&(n?t["aria-labelledby"]="".concat(lr.replacementClass,"-title-").concat(r||dr()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),s=ii("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 nn({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:fr,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:a}},s)}var Ui=Er.styles;function Fi(e){var t="nest"===lr.autoReplaceSvg?Di(e,{styleParser:!1}):Di(e);return~t.extra.classes.indexOf(Zn)?ai("generateLayersText",e,t):ai("generateSvgReplacementMutation",e,t)}var zi=new Set;function Vi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Cn)return Promise.resolve();var n=kn.documentElement.classList,r=function(e){return n.add("".concat(Ln,"-").concat(e))},i=function(e){return n.remove("".concat(Ln,"-").concat(e))},o=lr.autoFetchSvg?zi:Fn.map(function(e){return"fa-".concat(e)}).concat(Object.keys(Ui));o.includes("fa")||o.push("fa");var a=[".".concat(Zn,":not([").concat(Rn,"])")].concat(o.map(function(e){return".".concat(e,":not([").concat(Rn,"])")})).join(", ");if(0===a.length)return Promise.resolve();var s=[];try{s=pr(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");var l=ki("onTree"),u=s.reduce(function(e,t){try{var n=Fi(t);n&&e.push(n)}catch(e){Bn||"MissingIcon"===e.name&&en.error(e)}return e},[]);return new Promise(function(e,n){Promise.all(u).then(function(n){ji(n,function(){r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),l(),e()})}).catch(function(e){l(),n(e)})})}function Hi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Fi(e).then(function(e){e&&ji([e],t)})}Fn.map(function(e){zi.add("fa-".concat(e))}),Object.keys(Vn[Dn]).map(zi.add.bind(zi)),Object.keys(Vn[Un]).map(zi.add.bind(zi)),zi=ln(zi);var Wi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?fr:n,i=t.symbol,o=void 0!==i&&i,a=t.mask,s=void 0===a?null:a,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 pi(nn({type:"icon"},e),function(){return oi("beforeDOMElementCreation",{iconDefinition:e,params:t}),lr.autoA11y&&(f?y["aria-labelledby"]="".concat(lr.replacementClass,"-title-").concat(p||dr()):(y["aria-hidden"]="true",y.focusable="false")),hi({icons:{main:yi(_),mask:s?yi(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:x,transform:nn(nn({},fr),r),symbol:o,title:f,maskId:u,titleId:p,extra:{attributes:y,styles:b,classes:m}})})}},qi={mixout:function(){return{icon:(e=Wi,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:si(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:si(i||{})),e(r,nn(nn({},n),{},{mask:i}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Vi,e.nodeCallback=Hi,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?kn:t,r=e.callback;return Vi(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,i=t.titleId,o=t.prefix,a=t.transform,s=t.symbol,l=t.mask,u=t.maskId,c=t.extra;return new Promise(function(t,f){Promise.all([bi(n,o),l.iconName?bi(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(l){var f=sn(l,2),d=f[0],p=f[1];t([e,hi({icons:{main:d,mask:p},prefix:o,iconName:n,transform:a,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,o=e.transform,a=gr(e.styles);return a.length>0&&(r.style=a),yr(o)&&(t=ai("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(t||i.icon),{children:n,attributes:r}}}},Gi={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 pi({type:"layer"},function(){oi("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(lr.cssPrefix,"-layers")].concat(ln(r)).join(" ")},children:n}]})}}}},Zi={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,o=void 0===i?[]:i,a=t.attributes,s=void 0===a?{}:a,l=t.styles,u=void 0===l?{}:l;return pi({type:"counter",content:e},function(){return oi("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,n=e.title,r=e.extra,i=nn(nn(nn({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=gr(r.styles);o.length>0&&(i.style=o);var a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}({content:e.toString(),title:r,extra:{attributes:s,styles:u,classes:["".concat(lr.cssPrefix,"-layers-counter")].concat(ln(o))}})})}}}},Yi={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?fr:n,i=t.title,o=void 0===i?null:i,a=t.classes,s=void 0===a?[]:a,l=t.attributes,u=void 0===l?{}:l,c=t.styles,f=void 0===c?{}:c;return pi({type:"text",content:e},function(){return oi("beforeDOMElementCreation",{content:e,params:t}),mi({content:e,transform:nn(nn({},fr),r),title:o,extra:{attributes:u,styles:f,classes:["".concat(lr.cssPrefix,"-layers-text")].concat(ln(s))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,i=t.extra,o=null,a=null;if(On){var s=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();o=l.width/s,a=l.height/s}return lr.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,mi({content:e.innerHTML,width:o,height:a,transform:r,title:n,extra:i,watchable:!0})])}}},$i=new RegExp('"',"ug"),Ki=[1105920,1112319];function Xi(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 o=pr(e.children).filter(function(e){return e.getAttribute(jn)===t})[0],a=En.getComputedStyle(e,t),s=a.getPropertyValue("font-family").match(Yn),l=a.getPropertyValue("font-weight"),u=a.getPropertyValue("content");if(o&&!s)return e.removeChild(o),r();if(s&&"none"!==u&&""!==u){var c=a.getPropertyValue("content"),f=~["Sharp"].indexOf(s[2])?Un:Dn,d=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?Hn[f][s[2].toLowerCase()]:$n[f][l],p=function(e){var t=e.replace($i,""),n=function(e){var t,n=e.length,r=e.charCodeAt(0);return r>=55296&&r<=56319&&n>1&&(t=e.charCodeAt(1))>=56320&&t<=57343?1024*(r-55296)+t-56320+65536:r}(t),r=n>=Ki[0]&&n<=Ki[1],i=2===t.length&&t[0]===t[1];return{value:Tr(i?t[0]:t),isSecondary:r||i}}(c),h=p.value,m=p.isSecondary,g=s[0].startsWith("FontAwesome"),y=Gr(d,h),v=y;if(g){var b=function(e){var t=Vr[e],n=Gr("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||o&&o.getAttribute(Pn)===d&&o.getAttribute(In)===v)r();else{e.setAttribute(n,v),o&&e.removeChild(o);var w={iconName:null,title:null,titleId:null,prefix:null,transform:fr,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},x=w.extra;x.attributes[jn]=t,bi(y,d).then(function(i){var o=hi(nn(nn({},w),{},{icons:{main:i,mask:{prefix:null,iconName:null,rest:[]}},prefix:d,iconName:v,extra:x,watchable:!0})),a=kn.createElement("svg");"::before"===t?e.insertBefore(a,e.firstChild):e.appendChild(a),a.outerHTML=o.map(function(e){return Ar(e)}).join("\n"),e.removeAttribute(n),r()}).catch(i)}}else r()})}function Qi(e){return Promise.all([Xi(e,"::before"),Xi(e,"::after")])}function Ji(e){return!(e.parentNode===document.head||~Mn.indexOf(e.tagName.toUpperCase())||e.getAttribute(jn)||e.parentNode&&"svg"===e.parentNode.tagName)}function eo(e){if(Cn)return new Promise(function(t,n){var r=pr(e.querySelectorAll("*")).filter(Ji).map(Qi),i=ki("searchPseudoElements");Ii(),Promise.all(r).then(function(){i(),Li(),t()}).catch(function(){i(),Li(),n()})})}var to=!1,no=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})},ro={mixout:function(){return{parse:{transform:function(e){return no(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=no(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,i=e.iconWidth,o={transform:"translate(".concat(r/2," 256)")},a="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:o,inner:{transform:"".concat(a," ").concat(s," ").concat(l)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:nn({},u.outer),children:[{tag:"g",attributes:nn({},u.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:nn(nn({},t.icon.attributes),u.path)}]}]}}}},io={x:0,y:0,width:"100%",height:"100%"};function oo(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var ao={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?Qr(n.split(" ").map(function(e){return e.trim()})):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=$r()),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,o=e.mask,a=e.maskId,s=e.transform,l=i.width,u=i.icon,c=o.width,f=o.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,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(i," ").concat(o," ").concat(a)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:s,containerWidth:c,iconWidth:l}),p={tag:"rect",attributes:nn(nn({},io),{},{fill:"white"})},h=u.children?{children:u.children.map(oo)}:{},m={tag:"g",attributes:nn({},d.inner),children:[oo(nn({tag:u.tag,attributes:nn(nn({},u.attributes),d.path)},h))]},g={tag:"g",attributes:nn({},d.outer),children:[m]},y="mask-".concat(a||dr()),v="clip-".concat(a||dr()),b={tag:"mask",attributes:nn(nn({},io),{},{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:nn({fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(y,")")},io)}),{children:n,attributes:r}}}},so={provides:function(e){var t=!1;En.matchMedia&&(t=En.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:nn(nn({},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=nn(nn({},r),{},{attributeName:"opacity"}),o={tag:"circle",attributes:nn(nn({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:nn(nn({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:nn(nn({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(o),e.push({tag:"path",attributes:nn(nn({},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:nn(nn({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:nn(nn({},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:nn(nn({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){var n=t.mixoutsTo;ei=e,ti={},Object.keys(ni).forEach(function(e){-1===ri.indexOf(e)&&delete ni[e]}),ei.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"===rn(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){ti[e]||(ti[e]=[]),ti[e].push(r[e])})}e.provides&&e.provides(ni)})}([xr,qi,Gi,Zi,Yi,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=eo,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?kn:t;lr.searchPseudoElements&&eo(n)}}},{mixout:function(){return{dom:{unwatch:function(){Ii(),to=!0}}}},hooks:function(){return{bootstrap:function(){Bi(ii("mutationObserverCallbacks",{}))},noAuto:function(){Mi&&Mi.disconnect()},watch:function(e){var t=e.observeMutationsRoot;to?Li():Bi(ii("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},ro,ao,so,{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:fi});var lo=fi.parse,uo=fi.icon,co=n(1942),fo=n.n(co),po=n(3705);function ho(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 mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ho(Object(n),!0).forEach(function(t){yo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ho(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function go(e){return go="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},go(e)}function yo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vo(e){return function(e){if(Array.isArray(e))return bo(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 bo(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)?bo(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 bo(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 wo(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 xo=["style"],_o=!1;try{_o=!0}catch(e){}function Eo(e){return e&&"object"===go(e)&&e.prefix&&e.iconName&&e.icon?e:lo.icon?lo.icon(e):null===e?null:e&&"object"===go(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 ko(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?yo({},e,t):{}}var So=e.forwardRef(function(e,t){var n=e.icon,r=e.mask,i=e.symbol,o=e.className,a=e.title,s=e.titleId,l=e.maskId,u=Eo(n),c=ko("classes",[].concat(vo(function(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=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=(yo(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"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),yo(t,"fa-rotate-".concat(v),null!=v&&0!==v),yo(t,"fa-pull-".concat(b),null!=b),yo(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)),vo(o.split(" ")))),f=ko("transform","string"==typeof e.transform?lo.transform(e.transform):e.transform),d=ko("mask",Eo(r)),p=uo(u,mo(mo(mo(mo({},c),f),d),{},{symbol:i,title:a,titleId:s,maskId:l}));if(!p)return function(){var e;!_o&&po&&"function"==typeof po.error&&(e=po).error.apply(e,arguments)}("Could not find icon",u),null;var h=p.abstract,m={ref:t};return Object.keys(e).forEach(function(t){So.defaultProps.hasOwnProperty(t)||(m[t]=e[t])}),Ao(h[0],m)});So.displayName="FontAwesomeIcon",So.propTypes={beat:fo().bool,border:fo().bool,beatFade:fo().bool,bounce:fo().bool,className:fo().string,fade:fo().bool,flash:fo().bool,mask:fo().oneOfType([fo().object,fo().array,fo().string]),maskId:fo().string,fixedWidth:fo().bool,inverse:fo().bool,flip:fo().oneOf([!0,!1,"horizontal","vertical","both"]),icon:fo().oneOfType([fo().object,fo().array,fo().string]),listItem:fo().bool,pull:fo().oneOf(["right","left"]),pulse:fo().bool,rotation:fo().oneOf([0,90,180,270]),shake:fo().bool,size:fo().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:fo().bool,spinPulse:fo().bool,spinReverse:fo().bool,symbol:fo().oneOfType([fo().bool,fo().string]),title:fo().string,titleId:fo().string,transform:fo().oneOfType([fo().string,fo().object]),swapOpacity:fo().bool},So.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 Ao=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)}),o=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=wo(t.slice(0,r)),o=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=o:e[i]=o,e},{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[wo(t)]=r}return e},{attrs:{}}),a=r.style,s=void 0===a?{}:a,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(r,xo);return o.attrs.style=mo(mo({},o.attrs.style),s),t.apply(void 0,[n.tag,mo(mo({},o.attrs),l)].concat(vo(i)))}.bind(null,e.createElement);function Co(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)(So,{icon:Kt,className:"tw-text-[65%] hover:tw-scale-110 tw-ease-linear tw-duration-[50ms]"}),r&&(0,d.jsx)(So,{icon:Jt,className:"tw-text-[65%] tw-text-green-600"})]})}function Oo(t){const{particle:n}=t,{index:r}=n,{state:i}=(0,e.useContext)(m),{gameState:o}=i,a=null==o?void 0:o.reactionIconOverrides,s=Et[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==a?void 0:a[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 To(t){const{state:n}=(0,e.useContext)(m),{clientId:r}=t,i=n.reactions[r],[o,a]=(0,e.useState)([]);return(0,e.useEffect)(()=>{if(i&&!o.find(e=>e.id===i.id)){const e={id:i.id,index:i.index,startTime:Date.now()};a(t=>[...t,e])}},[i,o,a]),(0,e.useEffect)(()=>{const e=setInterval(()=>{const e=Date.now();a(o.filter(t=>e-t.startTime<5e3))},1e3);return()=>clearInterval(e)},[o,a]),(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:o.map(e=>(0,d.jsx)(Oo,{particle:e},e.id))})})}function No(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 Ro(t){const{children:n,visible:r,className:i,ignoreRefs:o,onClickedOutside:a}=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,...o||[]],()=>a()),r?(0,d.jsx)("div",{ref:l,className:i,children:n}):null}function jo(e){const{children:t,visible:n,ignoreRefs:r,onClickedOutside:i}=e;return(0,d.jsx)(Ro,{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 Po(t){const{state:n,dispatch:r}=(0,e.useContext)(m),{presence:i,clientRole:o,playerSlot:a,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:o}),f(!1),r(k("leave-game"))},v=g.find(e=>e.slot===u),b=(()=>{const e="host"===o,t=1===u,n=u===a,i=g.filter(e=>e.slot===u).shift();return e&&n?(0,d.jsx)(jo,{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)(jo,{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)(jo,{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===a,_=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 !tw-bg-white",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)(No,{slot:w?0:u,dataUri:_}),v&&(0,d.jsx)(To,{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 Io(){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)(Po,{slot:e},e))})}function Lo(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 Mo(){const{state:t}=(0,e.useContext)(m),[n,r]=(0,e.useState)(!1),i=(0,e.useRef)(null),o=(0,e.useCallback)(e=>{i.current=e},[]),{gameState:a}=t,s=null==a?void 0:a.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;Et[r]&&St(r)}},t=e=>{const t=parseInt(e.key)-1;Et[t]&&St(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)(Ro,{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:Et.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 St(e)})(t)},t+1)})})})}),(0,d.jsx)(L,{label:(0,d.jsx)(Lo,{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=>{o(e)}})]})}function Bo(){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)(Mo,{}),(0,d.jsx)(Io,{})]})}function Do(){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 o=lf("Have your friend go to {0} and enter code","{0}").split("{0}"),a=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:[o[0],(0,d.jsx)(F,{href:a,target:"_blank",className:"tw-text-primary-color tw-font-bold hover:tw-text-orange-300",children:a}),o[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)(Co,{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)($t,{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=ht)||void 0===e?void 0:e.startGameAsync())}()}catch(e){}}()}}),(0,d.jsx)(F,{href:"/multiplayer#safety",target:"_blank",className:"tw-text-sm tw-mt-1 tw-mb-7",children:lf("Multiplayer Online Safety")}),(0,d.jsx)(Bo,{})]})})}function Uo(){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)(Co,{copyValue:i,title:lf("Copy join link"),eventName:"mp.copyjoinlink",label:r,toastMessage:lf("Join link copied")})]})})}function Fo(){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)(Bo,{})})]})})}function zo(){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)(Lo,{})})]})]})}function Vo(){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)(Ro,{className:"tw-absolute tw-translate-y-[-105%]",visible:t,ignoreRefs:[r],onClickedOutside:()=>n(!1),children:(0,d.jsx)(zo,{})}),(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 Ho(){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 Wo(){const{state:t}=(0,e.useContext)(m);return(0,e.useEffect)(()=>{var e;null===(e=ot())||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 qo(t){var n,r;const{state:i}=(0,e.useContext)(m),{netMode:o,clientRole:a}=i;return(0,d.jsxs)(d.Fragment,{children:["connecting"===o&&(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"===a&&(0,d.jsx)(Do,{}),"guest"===a&&(0,d.jsx)(Fo,{})]}),(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)(Lt,{}),(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)(Wo,{}),(0,d.jsx)("div",{className:"tw-hidden sm:tw-inline-block",children:(0,d.jsx)(Ho,{})})]}),(0,d.jsx)("div",{className:"tw-mr-1 sm:tw-mr-0",children:(0,d.jsx)(Uo,{})}),(0,d.jsx)("div",{className:"tw-hidden sm:tw-inline",children:(0,d.jsx)(Vo,{})}),(0,d.jsx)("div",{className:"tw-inline-block sm:tw-hidden",children:(0,d.jsx)(Ho,{})})]}),(0,d.jsx)("div",{className:"tw-mt-3",children:(0,d.jsx)(Bo,{})})]})]})}function Go(){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)(Pt,{}),"init"!==n&&(0,d.jsx)(qo,{})]})}const Zo=e=>(0,d.jsx)(D,{...e,role:"menubar",className:j("common-menubar",e.className)}),Yo=e.createContext(null),$o=e.createContext(null),Ko=t=>{let{children:n}=t;const[r,i]=e.useReducer(Xo,{regions:[]});return(0,d.jsx)(Yo.Provider,{value:r,children:(0,d.jsx)($o.Provider,{value:i,children:n})})};function Xo(e,t){let n=e.regions.slice();switch(t.type){case"ADD_REGION":const r={id:t.id,enabled:t.enabled,order:t.order,onEscape:t.onEscape},i=n.findIndex(e=>e.id===t.id);-1!==i?n.splice(i,1,r):n.push(r);break;case"REMOVE_REGION":const o=e.regions.findIndex(e=>e.id===t.id);-1!==o&&n.splice(o,1)}return{regions:n}}const Qo=e=>(0,d.jsx)(Ko,{children:(0,d.jsx)(Jo,{...e})}),Jo=t=>{const{children:n,id:r,className:i,onEscape:o,arrowKeyNavigation:a,dontStealFocus:s,includeOutsideTabOrder:l,dontRestoreFocus:u,dontTrapFocus:c,focusFirstItem:f,tagName:d,role:p,ariaLabelledby:h,ariaLabel:m,ariaHidden:g}=t,y=e.useRef(null),v=e.useRef(document.activeElement),[b,w]=e.useState(!1),x=e.useRef(null),{regions:_}=e.useContext(Yo);e.useEffect(()=>()=>{!u&&v.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()}(v.current)},[]);const E=e.useCallback(()=>{var e,t;let n=function(e){const t=[];for(const n of e)t.push(n);return t}(l?null===(e=y.current)||void 0===e?void 0:e.querySelectorAll("[tabindex]"):null===(t=y.current)||void 0===t?void 0:t.querySelectorAll('[tabindex]:not([tabindex="-1"])'));if(_.length){const e={};for(const t of _){var r;const n=null===(r=y.current)||void 0===r?void 0:r.querySelector('[data-focus-trap-region="'.concat(t.id,'"]'));n&&(e[t.id]=n)}for(const t of _){const r=e[t.id];!t.enabled&&r&&(n=n.filter(e=>!r.contains(e)))}const t=n.slice();n.sort((n,r)=>{const i=_.find(t=>{var r;return t.enabled&&(null===(r=e[t.id])||void 0===r?void 0:r.contains(n))}),o=_.find(t=>{var n;return t.enabled&&(null===(n=e[t.id])||void 0===n?void 0:n.contains(r))});return(null==i?void 0:i.order)===(null==o?void 0:o.order)?t.indexOf(n)-t.indexOf(r):i?o?i.order-o.order:-1:1})}return n},[_,l]),k=e.useCallback(e=>{if(!e)return;y.current=e;const t=E();s||b||e.contains(document.activeElement)||!t.length||(y.current.focus(),f&&I(t,-1,0,!0).focus(),w(!0))},[E,s,b,f]),S=e.useCallback(e=>{if(!y.current)return;const t=(t,n)=>{const r=E();if(!r.length)return;let i,o=r.indexOf(e.target);o<0&&(o=r.indexOf(x.current)),i=t?n?I(r,o,r.length-1,t):o===r.length-1?I(r,o,0,t):I(r,o,o+1,t):I(r,o,n?0:0===o?r.length-1:Math.max(o-1,0),t),x.current=i,i.focus(),e.preventDefault(),e.stopPropagation()};if("Escape"===e.key){let t=!1;if(_.length)for(const e of _){var n;if(!e.onEscape)continue;const r=null===(n=y.current)||void 0===n?void 0:n.querySelector('[data-focus-trap-region="'.concat(e.id,'"]'));if(null!=r&&r.contains(document.activeElement)){t=!0,e.onEscape();break}}t||o(),e.preventDefault(),e.stopPropagation()}else"Tab"===e.key?c?o():e.shiftKey?t(!1,!1):t(!0,!1):a&&("ArrowDown"===e.key?t(!0,!1):"ArrowUp"===e.key?t(!1,!1):"Home"===e.key?t(!1,!0):"End"===e.key&&t(!0,!0))},[E,o,a,_,c]);return e.createElement(d||"div",{id:r,className:j("common-focus-trap",i),ref:k,onKeyDown:S,role:p,tabIndex:-1,"aria-labelledby":h,"aria-label":m,"aria-hidden":g},n)},ea=e=>{const{id:t,className:n,ariaHidden:r,ariaLabel:i,role:o,isChecked:a,onChange:s,label:l,style:u,tabIndex:c}=e;return(0,d.jsxs)("div",{className:j("common-checkbox",n,"toggle"===u&&"toggle"),children:[(0,d.jsx)("input",{id:t,tabIndex:null!=c?c:0,type:"checkbox",checked:a,onChange:()=>{s(!a)},onKeyDown:R,role:o,"aria-hidden":r,"aria-label":i}),l&&(0,d.jsx)("label",{htmlFor:t,children:l})]})},ta=e=>{const{isChecked:t}=e;return(0,d.jsx)("span",{className:j("common-checkbox-icon",t&&"checked"),children:t&&(0,d.jsx)("i",{className:"fas fa-check"})})},na=t=>{const{id:n,className:r,ariaHidden:i,ariaLabel:o,role:a,items:s,label:l,title:u,icon:c,tabIndex:f,disabled:p}=t,[h,m]=e.useState(!1);let g,y;const v=j("common-menu-dropdown",r),b=n+"-menu",w=function(e){const t=[];let n={items:[]};for(const r of e)"separator"===r.role?(n.className=r.className,n.items.length>0&&(t.push(n),n={items:[]})):n.items.push(r);return n.items.length>0&&t.push(n),t}(s);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:a||"menuitem",className:j("menu-button",h&&"expanded"),onClick:()=>{m(!h)},ariaHasPopup:"true",ariaExpanded:h,ariaControls:h?b:void 0,ariaLabel:o,ariaHidden:i,disabled:p,onKeydown:e=>{"ArrowDown"!==e.key||h||m(!0)}}),h&&(0,d.jsx)(Qo,{role:"menu",className:"common-menu-dropdown-pane",id:b,arrowKeyNavigation:!0,onEscape:()=>{m(!1),y&&y.focus()},includeOutsideTabOrder:!0,dontTrapFocus:!0,dontRestoreFocus:!0,focusFirstItem:!1,ariaLabelledby:n,tagName:"ul",children:w.map((t,n)=>(0,d.jsxs)(e.Fragment,{children:[(0,d.jsx)("li",{role:"none",children:(0,d.jsx)("ul",{role:"group",children:t.items.map((t,r)=>{const i="".concat(n,"-").concat(r);return"menuitem"===t.role?(0,e.createElement)(ra,{...t,key:i,onClick:()=>{var e;m(!1),null===(e=t.onClick)||void 0===e||e.call(t)}}):"link"===t.role?(0,e.createElement)(oa,{...t,key:i,onClick:()=>{var e;m(!1),null===(e=t.onClick)||void 0===e||e.call(t)}}):(0,e.createElement)(ia,{...t,key:i,onChange:e=>{var n;m(!1),null===(n=t.onChange)||void 0===n||n.call(t,e)}})})})}),n<w.length-1&&(0,d.jsx)("li",{role:"separator",className:j("common-menu-dropdown-separator",t.className)})]},n))})]})},ra=e=>{const t=B(e);return(0,d.jsx)("li",{...t,className:j("common-menu-dropdown-item",t.className),role:"menuitem",tabIndex:-1,children:(0,d.jsx)(M,{...e})})},ia=e=>{const{label:t,isChecked:n,onChange:r,id:i,className:o,ariaLabel:a,ariaHidden:s,ariaDescribedBy:l}=e;return(0,d.jsxs)("li",{role:"menuitemcheckbox",tabIndex:-1,className:j("common-menu-dropdown-item","common-menu-dropdown-checkbox-item",o),"aria-label":a,"aria-hidden":s,"aria-describedby":l,"aria-checked":n?"true":"false",onClick:()=>r(!n),onKeyDown:R,id:i,children:[(0,d.jsx)(ta,{isChecked:n}),(0,d.jsx)("span",{children:t})]})},oa=e=>{const{href:t,label:n,id:r,className:i,ariaLabel:o,ariaHidden:a,ariaDescribedBy:s,onClick:l}=e;return(0,d.jsx)("a",{role:"none",className:j("common-menu-dropdown-item","common-menu-dropdown-link-item",i),"aria-label":o,"aria-hidden":a,"aria-describedby":s,id:r,tabIndex:-1,href:t,target:"_blank",rel:"noopener noreferrer",onClick:l,onKeyDown:R,children:n})};function aa(){var t,n,r,i,o,a,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===(o=pxt)||void 0===o||null===(a=o.appTarget)||void 0===a||null===(s=a.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")},S=()=>{pxt.tickEvent("mp.settingsmenu.termsofuse")},A=()=>{pxt.tickEvent("mp.settingsmenu.onlinesafety")},C=()=>{pxt.tickEvent("mp.home");const e=pxt.U.getHomeUrl();e&&window.open(e,"_self")},O=()=>{pxt.tickEvent("mp.signin"),u(k("sign-in",{dialogMessages:x}))},N=async()=>{pxt.tickEvent("mp.usermenu.signout"),await async function(){try{gt(),await async function(){const e=await De();return await(null==e?void 0:e.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},j=(()=>{var e;const t=[];b&&t.push({role:"link",id:"privacy",href:b,label:lf("Privacy"),onClick:E}),w&&t.push({role:"link",id:"termsOfUse",label:lf("Terms of Use"),href:w,onClick:S}),t.push({role:"link",id:"safety",label:lf("Online Safety"),href:"/multiplayer#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({role:"menuitem",id:"report",title:lf("Report Abuse"),label:lf("Report Abuse"),onClick:_}),t})();return(0,d.jsxs)(Zo,{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:Ze(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:Ze(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),(P=v,(0,d.jsx)("div",{className:"tw-flex tw-pt-[2px] tw-ml-3 tw-cursor-pointer",onClick:C,children:P.useTextLogo?[(0,d.jsx)("span",{className:"tw-ml-3 tw-hidden sm:tw-flex",onClick:C,children:P.organizationText},"org-name"),(0,d.jsx)("span",{className:"tw-ml-3 tw-flex sm:tw-hidden",onClick:C,children:P.organizationShortText||P.organizationText},"org-name-short")]:P.logo||P.portraitLogo?(0,d.jsx)("img",{className:"logo",src:Ze(P.logo||P.portraitLogo),alt:lf("{0} Logo",P.boardName)}):(0,d.jsxs)("span",{className:"name",children:[" ",P.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==j?void 0:j.length)>0&&(0,d.jsx)(na,{className:"h-full",id:"settings-help",title:lf("Settings menu"),icon:"fas fa-cog large",items:j}),y&&(()=>{const e=[];"signed-in"===c&&e.push({role:"menuitem",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)(na,{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 P}var sa=function(e,t){return sa=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])},sa(e,t)};function la(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}sa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ua=function(){return ua=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},ua.apply(this,arguments)};function ca(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 fa(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function da(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;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 pa=1/60*1e3,ha="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),ma="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(ha()),pa);let ga=!0,ya=!1,va=!1;const ba={delta:0,timestamp:0},wa=["read","update","preRender","render","postRender"],xa=wa.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1;const a=new WeakSet,s={schedule:function(e){const o=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&i,s=o?t:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&a.add(e),-1===s.indexOf(e)&&(s.push(e),o&&i&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(i)o=!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(l),a.has(r)&&(s.schedule(r),e())}i=!1,o&&(o=!1,s.process(l))}}};return s}(()=>ya=!0),e),{}),_a=wa.reduce((e,t)=>{const n=xa[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 ya||Ca(),n.schedule(e,t,r)},e},{}),Ea=wa.reduce((e,t)=>(e[t]=xa[t].cancel,e),{}),ka=wa.reduce((e,t)=>(e[t]=()=>xa[t].process(ba),e),{}),Sa=e=>xa[e].process(ba),Aa=e=>{ya=!1,ba.delta=ga?pa:Math.max(Math.min(e-ba.timestamp,40),1),ba.timestamp=e,va=!0,wa.forEach(Sa),va=!1,ya&&(ga=!1,ma(Aa))},Ca=()=>{ya=!0,ga=!0,va||ma(Aa)},Oa=()=>ba,Ta=_a;var Na="undefined"!=typeof document,Ra=Na?e.useLayoutEffect:e.useEffect;function ja(){var t=(0,e.useRef)(!1);return Ra(function(){return t.current=!0,function(){t.current=!1}},[]),t}var Pa=(0,e.createContext)(null);function Ia(t){var n=(0,e.useRef)(null);return null===n.current&&(n.current=t()),n.current}var La=0,Ma=function(){return La++},Ba=function(){return Ia(Ma)},Da=function(t){var n=t.children,r=t.initial,i=t.isPresent,o=t.onExitComplete,a=t.custom,s=t.presenceAffectsLayout,l=Ia(Ua),u=Ba(),c=(0,e.useMemo)(function(){return{id:u,initial:r,isPresent:i,custom:a,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==o||o()},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==o||o())},[i]),e.createElement(Pa.Provider,{value:c},n)};function Ua(){return new Map}var Fa=(0,e.createContext)({});function za(t){return(0,e.useEffect)(function(){return function(){return t()}},[])}n(3705);var Va=function(e){return e.key||""},Ha=function(t){var n=t.children,r=t.custom,i=t.initial,o=void 0===i||i,a=t.onExitComplete,s=t.exitBeforeEnter,l=t.presenceAffectsLayout,u=void 0===l||l,c=fa(function(){var t=ja(),n=fa((0,e.useState)(0),2),r=n[0],i=n[1],o=(0,e.useCallback)(function(){t.current&&i(r+1)},[r]);return[(0,e.useCallback)(function(){return Ta.postRender(o)},[o]),r]}(),1),f=c[0],d=(0,e.useContext)(Fa).forceRender;d&&(f=d);var p=ja(),h=function(t){var n=[];return e.Children.forEach(t,function(t){(0,e.isValidElement)(t)&&n.push(t)}),n}(n),m=h,g=new Set,y=(0,e.useRef)(m),v=(0,e.useRef)(new Map).current,b=(0,e.useRef)(!0);if(Ra(function(){b.current=!1,function(e,t){e.forEach(function(e){var n=Va(e);t.set(n,e)})}(h,v),y.current=m}),za(function(){b.current=!0,v.clear(),g.clear()}),b.current)return e.createElement(e.Fragment,null,m.map(function(t){return e.createElement(Da,{key:Va(t),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:u},t)}));m=da([],fa(m),!1);for(var w=y.current.map(Va),x=h.map(Va),_=w.length,E=0;E<_;E++){var k=w[E];-1===x.indexOf(k)&&g.add(k)}return s&&g.size&&(m=[]),g.forEach(function(t){if(-1===x.indexOf(t)){var n=v.get(t);if(n){var i=w.indexOf(t);m.splice(i,0,e.createElement(Da,{key:Va(n),isPresent:!1,onExitComplete:function(){v.delete(t),g.delete(t);var e=y.current.findIndex(function(e){return e.key===t});if(y.current.splice(e,1),!g.size){if(y.current=h,!1===p.current)return;f(),a&&a()}},custom:r,presenceAffectsLayout:u},n))}}}),m=m.map(function(t){var n=t.key;return g.has(n)?t:e.createElement(Da,{key:Va(t),isPresent:!0,presenceAffectsLayout:u},t)}),e.createElement(e.Fragment,null,g.size?m:m.map(function(t){return(0,e.cloneElement)(t)}))},Wa=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},qa={measureLayout:Wa(["layout","layoutId","drag"]),animation:Wa(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Wa(["exit"]),drag:Wa(["drag","dragControls"]),focus:Wa(["whileFocus"]),hover:Wa(["whileHover","onHoverStart","onHoverEnd"]),tap:Wa(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Wa(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Wa(["whileInView","onViewportEnter","onViewportLeave"])},Ga=function(){},Za=(0,e.createContext)({strict:!1}),Ya=Object.keys(qa),$a=Ya.length,Ka=(0,e.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Xa=(0,e.createContext)({}),Qa={current:null},Ja=!1;function es(t,n,r,i){var o=(0,e.useContext)(Za),a=(0,e.useContext)(Xa).visualElement,s=(0,e.useContext)(Pa),l=function(){var t=(!Ja&&function(){if(Ja=!0,Na)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Qa.current=e.matches};e.addListener(t),t()}else Qa.current=!1}(),fa((0,e.useState)(Qa.current),1)[0]),n=(0,e.useContext)(Ka).reducedMotion;return"never"!==n&&("always"===n||t)}(),u=(0,e.useRef)(void 0);i||(i=o.renderer),!u.current&&i&&(u.current=i(t,{visualState:n,parent:a,props:r,presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial),shouldReduceMotion:l}));var c=u.current;return Ra(function(){null==c||c.syncRender()}),(0,e.useEffect)(function(){var e;null===(e=null==c?void 0:c.animationState)||void 0===e||e.animateChanges()}),Ra(function(){return function(){return null==c?void 0:c.notifyUnmount()}},[]),c}function ts(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ns(e){return Array.isArray(e)}function rs(e){return"string"==typeof e||ns(e)}function is(e,t,n,r,i){var o;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===(o=e.variants)||void 0===o?void 0:o[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),t}function os(e,t,n){var r=e.getProps();return is(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 as(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||rs(e.initial)||rs(e.animate)||rs(e.whileHover)||rs(e.whileDrag)||rs(e.whileTap)||rs(e.whileFocus)||rs(e.exit)}function ss(e){return Boolean(as(e)||e.variants)}function ls(e){return Array.isArray(e)?e.join(" "):e}var us={hasAnimatedSinceResize:!0,hasEverUpdated:!1},cs=1,fs=(0,e.createContext)({}),ds=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return la(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 ps(t){var n=t.preloadedFeatures,r=t.createVisualElement,i=t.projectionNodeConstructor,o=t.useRender,a=t.useVisualState,s=t.Component;return n&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?qa.projectionNodeConstructor=e[t]:qa[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)(Fa))||void 0===n?void 0:n.id;return i&&void 0!==r?i+"-"+r:r}(t);t=ua(ua({},t),{layoutId:l});var u=(0,e.useContext)(Ka),c=null,f=function(t){var n=function(e,t){if(as(e)){var n=e.initial,r=e.animate;return{initial:!1===n||rs(n)?n:void 0,animate:rs(r)?r:void 0}}return!1!==e.inherit?t:{}}(t,(0,e.useContext)(Xa)),r=n.initial,i=n.animate;return(0,e.useMemo)(function(){return{initial:r,animate:i}},[ls(r),ls(i)])}(t),d=u.isStatic?void 0:Ia(function(){if(us.hasEverUpdated)return cs++}),p=a(t,u.isStatic);return!u.isStatic&&Na&&(f.visualElement=es(s,p,ua(ua({},u),t),r),function(t,n,r,i){var o,a=n.layoutId,s=n.layout,l=n.drag,u=n.dragConstraints,c=n.layoutScroll,f=(0,e.useContext)(fs);i&&r&&!(null==r?void 0:r.projection)&&(r.projection=new i(t,r.getLatestValues(),null===(o=r.parent)||void 0===o?void 0:o.projection),r.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:Boolean(l)||u&&ts(u),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:f,layoutScroll:c}))}(d,t,f.visualElement,i||qa.projectionNodeConstructor),c=function(t,n){var r=[];(0,e.useContext)(Za);if(!n)return null;for(var i=0;i<$a;i++){var o=Ya[i],a=qa[o],s=a.isEnabled,l=a.Component;s(t)&&l&&r.push(e.createElement(l,ua({key:o},t,{visualElement:n})))}return r}(t,f.visualElement)),e.createElement(ds,{visualElement:f.visualElement,props:ua(ua({},u),t)},c,e.createElement(Xa.Provider,{value:f},o(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):ts(r)&&(r.current=e))},[n])}(p,f.visualElement,n),p,u.isStatic,f.visualElement)))})}var hs=["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 ms(e){return"string"==typeof e&&!e.includes("-")&&!!(hs.indexOf(e)>-1||/[A-Z]/.test(e))}var gs={},ys=["","X","Y","Z"],vs=["transformPerspective","x","y","z"];function bs(e,t){return vs.indexOf(e)-vs.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return ys.forEach(function(t){return vs.push(e+t)})});var ws=new Set(vs);function xs(e){return ws.has(e)}var _s=new Set(["originX","originY","originZ"]);function Es(e){return _s.has(e)}function ks(e,t){var n=t.layout,r=t.layoutId;return xs(e)||Es(e)||(n||void 0!==r)&&(!!gs[e]||"opacity"===e)}var Ss=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},As={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Cs(e){return e.startsWith("--")}var Os=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const Ts=(e,t)=>n=>Math.max(Math.min(n,t),e),Ns=e=>e%1?Number(e.toFixed(5)):e,Rs=/(-)?([\d]*\.?[\d])+/g,js=/(#[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,Ps=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Is(e){return"string"==typeof e}const Ls=e=>({test:t=>Is(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>"".concat(t).concat(e)}),Ms=Ls("deg"),Bs=Ls("%"),Ds=Ls("px"),Us=Ls("vh"),Fs=Ls("vw"),zs=Object.assign(Object.assign({},Bs),{parse:e=>Bs.parse(e)/100,transform:e=>Bs.transform(100*e)}),Vs={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Hs=Object.assign(Object.assign({},Vs),{transform:Ts(0,1)}),Ws=Object.assign(Object.assign({},Vs),{default:1});var qs=ua(ua({},Vs),{transform:Math.round}),Gs={borderWidth:Ds,borderTopWidth:Ds,borderRightWidth:Ds,borderBottomWidth:Ds,borderLeftWidth:Ds,borderRadius:Ds,radius:Ds,borderTopLeftRadius:Ds,borderTopRightRadius:Ds,borderBottomRightRadius:Ds,borderBottomLeftRadius:Ds,width:Ds,maxWidth:Ds,height:Ds,maxHeight:Ds,size:Ds,top:Ds,right:Ds,bottom:Ds,left:Ds,padding:Ds,paddingTop:Ds,paddingRight:Ds,paddingBottom:Ds,paddingLeft:Ds,margin:Ds,marginTop:Ds,marginRight:Ds,marginBottom:Ds,marginLeft:Ds,rotate:Ms,rotateX:Ms,rotateY:Ms,rotateZ:Ms,scale:Ws,scaleX:Ws,scaleY:Ws,scaleZ:Ws,skew:Ms,skewX:Ms,skewY:Ms,distance:Ds,translateX:Ds,translateY:Ds,translateZ:Ds,x:Ds,y:Ds,z:Ds,perspective:Ds,transformPerspective:Ds,opacity:Hs,originX:zs,originY:zs,originZ:Ds,zIndex:qs,fillOpacity:Hs,strokeOpacity:Hs,numOctaves:qs};function Zs(e,t,n,r){var i,o=e.style,a=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(Cs(p))a[p]=h;else{var m=Gs[p],g=Os(h,m);if(xs(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 Es(p)?(u[p]=g,f=!0):o[p]=g}}c?o.transform=function(e,t,n,r){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,l=t.allowTransformNone,u=void 0===l||l,c="";o.sort(bs);for(var f=!1,d=o.length,p=0;p<d;p++){var h=o[p];c+="".concat(As[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?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),f&&(o.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,i=void 0===r?"50%":r,o=e.originZ,a=void 0===o?0:o;return"".concat(n," ").concat(i," ").concat(a)}(u))}var Ys=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function $s(e,t,n){for(var r in t)Ss(t[r])||ks(r,n)||(e[r]=t[r])}function Ks(t,n,r){var i={};return $s(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:{}};Zs(e,n,{enableHardwareAcceleration:!r},i);var t=e.style;return ua(ua({},e.vars),t)},[n])}(t,n,r)),t.transformValues&&(i=t.transformValues(i)),i}function Xs(e,t,n){var r={},i=Ks(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 Qs=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 Js(e){return Qs.has(e)}var el,tl=function(e){return!Js(e)};try{(el=require("@emotion/is-prop-valid").default)&&(tl=function(e){return e.startsWith("on")?!Js(e):el(e)})}catch(e){}function nl(e,t,n){return"string"==typeof e?e:Ds.transform(t+n*e)}var rl={offset:"stroke-dashoffset",array:"stroke-dasharray"},il={offset:"strokeDashoffset",array:"strokeDasharray"};function ol(e,t,n,r){var i=t.attrX,o=t.attrY,a=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;Zs(e,ca(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!==a||void 0!==s||h.transform)&&(h.transformOrigin=function(e,t,n){var r=nl(t,e.x,e.width),i=nl(n,e.y,e.height);return"".concat(r," ").concat(i)}(m,void 0!==a?a:.5,void 0!==s?s:.5)),void 0!==i&&(p.x=i),void 0!==o&&(p.y=o),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 o=i?rl:il;e[o.offset]=Ds.transform(-r);var a=Ds.transform(t),s=Ds.transform(n);e[o.array]="".concat(a," ").concat(s)}(p,l,c,d,!1)}var al=function(){return ua(ua({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function sl(t,n){var r=(0,e.useMemo)(function(){var e=al();return ol(e,n,{enableHardwareAcceleration:!1},t.transformTemplate),ua(ua({},e.attrs),{style:ua({},e.style)})},[n]);if(t.style){var i={};$s(i,t.style,t),r.style=ua(ua({},i),r.style)}return r}function ll(t){return void 0===t&&(t=!1),function(n,r,i,o,a,s){var l=a.latestValues,u=(ms(n)?sl:Xs)(r,l,s),c=function(e,t,n){var r={};for(var i in e)(tl(i)||!0===n&&Js(i)||!t&&!Js(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(r,"string"==typeof n,t),f=ua(ua(ua({},c),u),{ref:o});return i&&(f["data-projection-id"]=i),(0,e.createElement)(n,f)}}var ul=/([a-z])([A-Z])/g,cl=function(e){return e.replace(ul,"$1-$2").toLowerCase()};function fl(e,t,n,r){var i=t.style,o=t.vars;for(var a in Object.assign(e.style,i,r&&r.getProjectionStyles(n)),o)e.style.setProperty(a,o[a])}var dl=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function pl(e,t,n,r){for(var i in fl(e,t,void 0,r),t.attrs)e.setAttribute(dl.has(i)?i:cl(i),t.attrs[i])}function hl(e){var t=e.style,n={};for(var r in t)(Ss(t[r])||ks(r,e))&&(n[r]=t[r]);return n}function ml(e){var t=hl(e);for(var n in e)Ss(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function gl(e){return"object"==typeof e&&"function"==typeof e.start}var yl=function(e){return Array.isArray(e)},vl=function(e){return yl(e)?e[e.length-1]||0:e};function bl(e){var t=Ss(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}function wl(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:_l(t,n,r,i),renderState:o()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var xl=function(t){return function(n,r){var i=(0,e.useContext)(Xa),o=(0,e.useContext)(Pa);return r?wl(t,n,i,o):Ia(function(){return wl(t,n,i,o)})}};function _l(e,t,n,r){var i={},o=!1===(null==n?void 0:n.initial),a=r(e);for(var s in a)i[s]=bl(a[s]);var l=e.initial,u=e.animate,c=as(e),f=ss(e);t&&f&&!c&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=u||(u=t.animate));var d=o||!1===l,p=d?u:l;return p&&"boolean"!=typeof p&&!gl(p)&&(Array.isArray(p)?p:[p]).forEach(function(t){var n=is(e,t);if(n){var r=n.transitionEnd;n.transition;var o=ca(n,["transitionEnd","transition"]);for(var a in o){var s=o[a];Array.isArray(s)&&(s=s[d?s.length-1:0]),null!==s&&(i[a]=s)}for(var a in r)i[a]=r[a]}}),i}var El,kl={useVisualState:xl({scrapeMotionValuesFromProps:ml,createRenderState:al,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}}ol(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),pl(t,r)}})},Sl={useVisualState:xl({scrapeMotionValuesFromProps:hl,createRenderState:Ys})};function Al(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Cl(t,n,r,i){(0,e.useEffect)(function(){var e=t.current;if(r&&e)return Al(e,n,r,i)},[t,n,r,i])}function Ol(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Tl(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"}(El||(El={}));var Nl={pageX:0,pageY:0};function Rl(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Nl;return{x:n[t+"X"],y:n[t+"Y"]}}function jl(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Pl(e,t){return void 0===t&&(t="page"),{point:Tl(e)?Rl(e,t):jl(e,t)}}var Il=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Pl(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Ll={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Ml={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Bl(e){return Na&&null===window.onpointerdown?e:Na&&null===window.ontouchstart?Ml[e]:Na&&null===window.onmousedown?Ll[e]:e}function Dl(e,t,n,r){return Al(e,Bl(t),Il(n,"pointerdown"===t),r)}function Ul(e,t,n,r){return Cl(e,Bl(t),n&&Il(n,"pointerdown"===t),r)}function Fl(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var zl=Fl("dragHorizontal"),Vl=Fl("dragVertical");function Hl(e){var t=!1;if("y"===e)t=Vl();else if("x"===e)t=zl();else{var n=zl(),r=Vl();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function Wl(){var e=Hl(!0);return!e||(e(),!1)}function ql(e,t,n){return function(r,i){var o;Ol(r)&&!Wl()&&(null===(o=e.animationState)||void 0===o||o.setActive(El.Hover,t),null==n||n(r,i))}}var Gl=function(e,t){return!!t&&(e===t||Gl(e,t.parentElement))};const Zl=(e,t)=>n=>t(e(n)),Yl=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(Zl)};n(3705),new Set;var $l=new WeakMap,Kl=new WeakMap,Xl=function(e){var t;null===(t=$l.get(e.target))||void 0===t||t(e)},Ql=function(e){e.forEach(Xl)};var Jl={some:0,all:1};function eu(t,n,r,i){var o=i.root,a=i.margin,s=i.amount,l=void 0===s?"some":s,u=i.once;(0,e.useEffect)(function(){if(t){var e={root:null==o?void 0:o.current,rootMargin:a,threshold:"number"==typeof l?l:Jl[l]};return function(e,t,n){var r=function(e){var t=e.root,n=ca(e,["root"]),r=t||document;Kl.has(r)||Kl.set(r,{});var i=Kl.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(Ql,ua({root:t},n))),i[o]}(t);return $l.set(e,n),r.observe(e),function(){$l.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(El.InView,i);var o=r.getProps(),a=i?o.onViewportEnter:o.onViewportLeave;null==a||a(e)}})}},[t,o,a,l])}function tu(t,n,r,i){var o=i.fallback,a=void 0===o||o;(0,e.useEffect)(function(){t&&a&&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(El.InView,!0)})},[t])}var nu=function(e){return function(t){return e(t),null}},ru={inView:nu(function(t){var n=t.visualElement,r=t.whileInView,i=t.onViewportEnter,o=t.onViewportLeave,a=t.viewport,s=void 0===a?{}:a,l=(0,e.useRef)({hasEnteredView:!1,isInView:!1}),u=Boolean(r||i||o);s.once&&l.current.hasEnteredView&&(u=!1),("undefined"==typeof IntersectionObserver?tu:eu)(u,l.current,n,s)}),tap:nu(function(t){var n=t.onTap,r=t.onTapStart,i=t.onTapCancel,o=t.whileTap,a=t.visualElement,s=n||r||i||o,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=a.animationState)||void 0===e||e.setActive(El.Tap,!1),!Wl()}function p(e,t){d()&&(Gl(a.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=Yl(Dl(window,"pointerup",p,c),Dl(window,"pointercancel",h,c)),null===(n=a.animationState)||void 0===n||n.setActive(El.Tap,!0),null==r||r(e,t))}Ul(a,"pointerdown",s?m:void 0,c),za(f)}),focus:nu(function(e){var t=e.whileFocus,n=e.visualElement;Cl(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(El.Focus,!0)}:void 0),Cl(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(El.Focus,!1)}:void 0)}),hover:nu(function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;Ul(i,"pointerenter",t||r?ql(i,!0,t):void 0,{passive:!t}),Ul(i,"pointerleave",n||r?ql(i,!1,n):void 0,{passive:!n})})};function iu(){var t=(0,e.useContext)(Pa);if(null===t)return[!0,null];var n=t.isPresent,r=t.onExitComplete,i=t.register,o=Ba();return(0,e.useEffect)(function(){return i(o)},[]),!n&&r?[!1,function(){return null==r?void 0:r(o)}]:[!0]}function ou(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 au(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 su=(e,t,n)=>Math.min(Math.max(n,e),t),lu=.001;const uu=12;function cu(e,t){return e*Math.sqrt(1-t*t)}const fu=["duration","bounce"],du=["stiffness","damping","mass"];function pu(e,t){return t.some(t=>void 0!==e[t])}function hu(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=au(e,["from","to","restSpeed","restDelta"]);const a={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(!pu(e,du)&&pu(e,fu)){const n=function(e){let t,n,{duration:r=800,bounce:i=.25,velocity:o=0,mass:a=1}=e,s=1-i;s=su(.05,1,s),r=su(.01,10,r/1e3),s<1?(t=e=>{const t=e*s,n=t*r,i=t-o,a=cu(e,s),l=Math.exp(-n);return lu-i/a*l},n=e=>{const n=e*s*r,i=n*o+o,a=Math.pow(s,2)*Math.pow(e,2)*r,l=Math.exp(-n),u=cu(Math.pow(e,2),s);return(-t(e)+lu>0?-1:1)*((i-a)*l)/u}):(t=e=>Math.exp(-e*r)*((e-o)*r+1)-lu,n=e=>Math.exp(-e*r)*(r*r*(o-e)));const l=function(e,t,n){let r=n;for(let n=1;n<uu;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)*a;return{stiffness:e,damping:2*s*Math.sqrt(a*e),duration:r}}}(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(o),p=mu,h=mu;function m(){const e=c?-c/1e3:0,r=n-t,o=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),o<1){const t=cu(a,o);p=i=>{const s=Math.exp(-o*a*i);return n-s*((e+o*a*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},h=n=>{const i=Math.exp(-o*a*n);return o*a*i*(Math.sin(t*n)*(e+o*a*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+o*a*r)-t*r*Math.sin(t*n))}}else if(1===o)p=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{const t=a*Math.sqrt(o*o-1);p=i=>{const s=Math.exp(-o*a*i),l=Math.min(t*i,300);return n-s*((e+o*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{const t=p(e);if(d)a.done=e>=f;else{const o=1e3*h(e),s=Math.abs(o)<=r,l=Math.abs(n-t)<=i;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}hu.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const mu=e=>0,gu=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},yu=(e,t,n)=>-n*e+n*t+e,vu=(e,t)=>n=>Boolean(Is(n)&&Ps.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),bu=(e,t,n)=>r=>{if(!Is(r))return r;const[i,o,a,s]=r.match(Rs);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},wu=Ts(0,255),xu=Object.assign(Object.assign({},Vs),{transform:e=>Math.round(wu(e))}),_u={test:vu("rgb","red"),parse:bu("red","green","blue"),transform:e=>{let{red:t,green:n,blue:r,alpha:i=1}=e;return"rgba("+xu.transform(t)+", "+xu.transform(n)+", "+xu.transform(r)+", "+Ns(Hs.transform(i))+")"}},Eu={test:vu("#"),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:_u.transform},ku={test:vu("hsl","hue"),parse:bu("hue","saturation","lightness"),transform:e=>{let{hue:t,saturation:n,lightness:r,alpha:i=1}=e;return"hsla("+Math.round(t)+", "+Bs.transform(Ns(n))+", "+Bs.transform(Ns(r))+", "+Ns(Hs.transform(i))+")"}};function Su(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 Au(e){let{hue:t,saturation:n,lightness:r,alpha:i}=e;t/=360,n/=100,r/=100;let o=0,a=0,s=0;if(n){const e=r<.5?r*(1+n):r+n-r*n,i=2*r-e;o=Su(i,e,t+1/3),a=Su(i,e,t),s=Su(i,e,t-1/3)}else o=a=s=r;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*s),alpha:i}}const Cu=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},Ou=[Eu,_u,ku],Tu=e=>Ou.find(t=>t.test(e)),Nu=e=>"'".concat(e,"' is not an animatable color. Use the equivalent color code instead."),Ru=(e,t)=>{let n=Tu(e),r=Tu(t);Nu(e),Nu(t);let i=n.parse(e),o=r.parse(t);n===ku&&(i=Au(i),n=_u),r===ku&&(o=Au(o),r=_u);const a=Object.assign({},i);return e=>{for(const t in a)"alpha"!==t&&(a[t]=Cu(i[t],o[t],e));return a.alpha=yu(i.alpha,o.alpha,e),n.transform(a)}},ju={test:e=>_u.test(e)||Eu.test(e)||ku.test(e),parse:e=>_u.test(e)?_u.parse(e):ku.test(e)?ku.parse(e):Eu.parse(e),transform:e=>Is(e)?e:e.hasOwnProperty("red")?_u.transform(e):ku.transform(e)},Pu="${c}",Iu="${n}";function Lu(e){"number"==typeof e&&(e="".concat(e));const t=[];let n=0;const r=e.match(js);r&&(n=r.length,e=e.replace(js,Pu),t.push(...r.map(ju.parse)));const i=e.match(Rs);return i&&(e=e.replace(Rs,Iu),t.push(...i.map(Vs.parse))),{values:t,numColors:n,tokenised:e}}function Mu(e){return Lu(e).values}function Bu(e){const{values:t,numColors:n,tokenised:r}=Lu(e),i=t.length;return e=>{let t=r;for(let r=0;r<i;r++)t=t.replace(r<n?Pu:Iu,r<n?ju.transform(e[r]):Ns(e[r]));return t}}const Du=e=>"number"==typeof e?0:e,Uu={test:function(e){var t,n,r,i;return isNaN(e)&&Is(e)&&(null!==(n=null===(t=e.match(Rs))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(js))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:Mu,createTransformer:Bu,getAnimatableNone:function(e){const t=Mu(e);return Bu(e)(t.map(Du))}},Fu=e=>"number"==typeof e;function zu(e,t){return Fu(e)?n=>yu(e,t,n):ju.test(e)?Ru(e,t):qu(e,t)}const Vu=(e,t)=>{const n=[...e],r=n.length,i=e.map((e,n)=>zu(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}},Hu=(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]=zu(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function Wu(e){const t=Uu.parse(e),n=t.length;let r=0,i=0,o=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}const qu=(e,t)=>{const n=Uu.createTransformer(t),r=Wu(e),i=Wu(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?Yl(Vu(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))},Gu=(e,t)=>n=>yu(e,t,n);function Zu(e,t){let{clamp:n=!0,ease:r,mixer:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=e.length;t.length,!r||!Array.isArray(r)||r.length,e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=function(e,t,n){const r=[],i=n||("number"==typeof(o=e[0])?Gu:"string"==typeof o?ju.test(o)?Ru:qu:Array.isArray(o)?Vu:"object"==typeof o?Hu:void 0);var o;const a=e.length-1;for(let n=0;n<a;n++){let o=i(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;o=Yl(e,o)}r.push(o)}return r}(t,r,i),s=2===o?function(e,t){let[n,r]=e,[i]=t;return e=>i(gu(n,r,e))}(e,a):function(e,t){const n=e.length,r=n-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){let t=1;for(;t<n&&!(e[t]>i||t===r);t++);o=t-1}const s=gu(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(su(e[0],e[o-1],t)):s}const Yu=e=>t=>1-e(1-t),$u=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ku=e=>t=>t*t*((e+1)*t-e),Xu=4/11,Qu=8/11,Ju=e=>e,ec=e=>Math.pow(e,2);const tc=Yu(ec),nc=$u(ec),rc=e=>1-Math.sin(Math.acos(e)),ic=Yu(rc),oc=$u(ic),ac=Ku(1.525),sc=Yu(ac),lc=$u(ac),uc=(()=>{const e=Ku(1.525);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(),cc=4356/361,fc=35442/1805,dc=16061/1805,pc=e=>{if(1===e||0===e)return e;const t=e*e;return e<Xu?7.5625*t:e<Qu?9.075*t-9.9*e+3.4:e<.9?cc*t-fc*e+dc:10.8*e*e-20.52*e+10.72},hc=Yu(pc);function mc(e,t){return e.map(()=>t||nc).splice(0,e.length-1)}function gc(e){let{from:t=0,to:n=1,ease:r,offset:i,duration:o=300}=e;const a={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),o);function u(){return Zu(l,s,{ease:Array.isArray(r)?r:mc(s,r)})}let c=u();return{next:e=>(a.value=c(e),a.done=e>=o,a),flipTarget:()=>{s.reverse(),c=u()}}}const yc={keyframes:gc,spring:hu,decay:function(e){let{velocity:t=0,from:n=0,power:r=.8,timeConstant:i=350,restDelta:o=.5,modifyTarget:a}=e;const s={done:!1,value:n};let l=r*t;const u=n+l,c=void 0===a?u:a(u);return c!==u&&(l=c-n),{next:e=>{const t=-l*Math.exp(-e/i);return s.done=!(t>o||t<-o),s.value=s.done?c:c+t,s},flipTarget:()=>{}}}};function vc(e,t){return e-t-(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)}const bc=e=>{const t=t=>{let{delta:n}=t;return e(n)};return{start:()=>Ta.update(t,!0),stop:()=>Ea.update(t)}};function wc(e){var t,n,{from:r,autoplay:i=!0,driver:o=bc,elapsed:a=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:f,onComplete:d,onRepeat:p,onUpdate:h}=e,m=au(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 gc;if(yc[e.type])return yc[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?gc:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?hu:gc}(m);(null===(n=(t=k).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(v=Zu([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=o(function(e){if(E||(e=-e),a+=e,!_){const e=S.next(Math.max(0,a));y=e.value,v&&(y=v(y)),_=E?e.done:a<=0}null==h||h(y),_&&(0===w&&(null!=x||(x=a)),w<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(a,x,u,E)&&(w++,"reverse"===l?(E=w%2==0,a=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:vc(t+-e,t,n)}(a,x,u,E)):(a=vc(a,x,u),"mirror"===l&&S.flipTarget()),_=!1,p&&p()):(g.stop(),d&&d()))}),g.start()),{stop:()=>{null==f||f(),g.stop()}}}function xc(e,t){return t?e*(1e3/t):0}var _c=function(e){return 1e3*e};const Ec=(e,t)=>1-3*t+3*e,kc=(e,t)=>3*t-6*e,Sc=e=>3*e,Ac=(e,t,n)=>((Ec(t,n)*e+kc(t,n))*e+Sc(t))*e,Cc=(e,t,n)=>3*Ec(t,n)*e*e+2*kc(t,n)*e+Sc(t),Oc=.1;var Tc={linear:Ju,easeIn:ec,easeInOut:nc,easeOut:tc,circIn:rc,circInOut:oc,circOut:ic,backIn:ac,backInOut:lc,backOut:sc,anticipate:uc,bounceIn:hc,bounceInOut:e=>e<.5?.5*(1-pc(1-2*e)):.5*pc(2*e-1)+.5,bounceOut:pc},Nc=function(e){if(Array.isArray(e)){e.length;var t=fa(e,4);return function(e,t,n,r){if(e===t&&n===r)return Ju;const i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=Ac(t*Oc,e,n);function o(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=Oc;--o;const a=r+(t-i[o])/(i[o+1]-i[o])*Oc,s=Cc(a,e,n);return s>=.001?function(e,t,n,r){for(let i=0;i<8;++i){const i=Cc(t,n,r);if(0===i)return t;t-=(Ac(t,n,r)-e)/i}return t}(t,a,e,n):0===s?a:function(e,t,n,r,i){let o,a,s=0;do{a=t+(n-t)/2,o=Ac(a,r,i)-e,o>0?n=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+Oc,e,n)}return e=>0===e||1===e?e:Ac(o(e),t,r)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),Tc[e]):e},Rc=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!Uu.test(t)||t.startsWith("url(")))},jc=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Pc=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},Ic=function(){return{type:"keyframes",ease:"linear",duration:.3}},Lc=function(e){return{type:"keyframes",duration:.8,values:e}},Mc={x:jc,y:jc,z:jc,rotate:jc,rotateX:jc,rotateY:jc,rotateZ:jc,scaleX:Pc,scaleY:Pc,scale:Pc,opacity:Ic,backgroundColor:Ic,color:Ic,default:Pc};const Bc=new Set(["brightness","contrast","saturate","opacity"]);function Dc(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Rs)||[];if(!r)return e;const i=n.replace(r,"");let o=Bc.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Uc=/([a-z-]*)\(.*?\)/g,Fc=Object.assign(Object.assign({},Uu),{getAnimatableNone:e=>{const t=e.match(Uc);return t?t.map(Dc).join(" "):e}});var zc=ua(ua({},Gs),{color:ju,backgroundColor:ju,outlineColor:ju,fill:ju,stroke:ju,borderColor:ju,borderTopColor:ju,borderRightColor:ju,borderBottomColor:ju,borderLeftColor:ju,filter:Fc,WebkitFilter:Fc}),Vc=function(e){return zc[e]};function Hc(e,t){var n,r=Vc(e);return r!==Fc&&(r=Uu),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var Wc=!1;function qc(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=da([],fa(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=ca(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=ua(ua({},e),function(e,t){var n;return n=yl(t)?Lc:Mc[e]||Mc.default,ua({to:t},n(t))}(n,t.to))),ua(ua({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,a=ca(e,["ease","times","yoyo","flip","loop"]),s=ua({},a);return n&&(s.offset=n),a.duration&&(s.duration=_c(a.duration)),a.repeatDelay&&(s.repeatDelay=_c(a.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(Nc):Nc(t)),"tween"===a.type&&(s.type="keyframes"),(r||o||i)&&(r?s.repeatType="reverse":o?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=o||r||i||a.repeat),"spring"!==a.type&&(s.type="keyframes"),s}(e))}function Gc(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Zc(e){return"number"==typeof e?0:Hc("",e)}function Yc(e,t){return e[t]||e.default||e}function $c(e,t,n,r){return void 0===r&&(r={}),Wc&&(r={type:!1}),t.start(function(i){var o,a,s=function(e,t,n,r,i){var o,a=Yc(r,e),s=null!==(o=a.from)&&void 0!==o?o:t.get(),l=Rc(e,n);"none"===s&&l&&"string"==typeof n?s=Hc(e,n):Gc(s)&&"string"==typeof n?s=Zc(n):!Array.isArray(n)&&Gc(n)&&"string"==typeof s&&(n=Zc(s));var u=Rc(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!==a.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===a.type||"decay"===a.type?function(e){let t,{from:n=0,velocity:r=0,min:i,max:o,power:a=.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!==o&&e>o}function y(e){return void 0===i?o:void 0===o||Math.abs(i-e)<Math.abs(o-e)?i:o}function v(e){null==t||t.stop(),t=wc(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=a*r+n;void 0!==f&&(e=f(e));const t=y(e),o=t===i?-1:1;let l,u;const d=e=>{l=u,u=e,r=xc(e-l,Oa().delta),(1===o&&e>t||-1===o&&e<t)&&b({from:e,to:t,velocity:r})};v({type:"decay",from:n,velocity:r,timeConstant:s,power:a,restDelta:c,modifyTarget:f,onUpdate:g(e)?d:void 0})}return{stop:()=>null==t?void 0:t.stop()}}(ua(ua({},r),a)):wc(ua(ua({},qc(a,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=a.onUpdate)||void 0===t||t.call(a,e)},onComplete:function(){var e;r.onComplete(),null===(e=a.onComplete)||void 0===e||e.call(a)}}))}:function(){var e,r,o=vl(n);return t.set(o),i(),null===(e=null==a?void 0:a.onUpdate)||void 0===e||e.call(a,o),null===(r=null==a?void 0:a.onComplete)||void 0===r||r.call(a),{stop:function(){}}}}(e,t,n,r,i),l=function(e,t){var n,r;return null!==(r=null!==(n=(Yc(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return a=s()};return l?o=window.setTimeout(u,_c(l)):u(),function(){clearTimeout(o),null==a||a.stop()}})}var Kc=function(e){return/^0[^.\s]+$/.test(e)};function Xc(e,t){-1===e.indexOf(t)&&e.push(t)}function Qc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Jc=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Xc(this.subscriptions,e),function(){return Qc(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 o=this.subscriptions[i];o&&o(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),ef=function(){function e(e){var t=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Jc,this.velocityUpdateSubscribers=new Jc,this.renderSubscribers=new Jc,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=Oa(),i=r.delta,o=r.timestamp;t.lastUpdated!==o&&(t.timeDelta=i,t.lastUpdated=o,Ta.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 Ta.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?xc(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 tf(e){return new ef(e)}var nf=function(e){return function(t){return t.test(e)}},rf=[Vs,Ds,Bs,Ms,Fs,Us,{test:function(e){return"auto"===e},parse:function(e){return e}}],of=function(e){return rf.find(nf(e))},af=da(da([],fa(rf),!1),[ju,Uu],!1),sf=function(e){return af.find(nf(e))};function uf(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,tf(n))}function cf(e,t){if(t)return(t[e]||t.default||t).from}function ff(e,t,n){var r;void 0===n&&(n={});var i=os(e,t,n.custom),o=(i||{}).transition,a=void 0===o?e.getDefaultTransition()||{}:o;n.transitionOverride&&(a=n.transitionOverride);var s=i?function(){return df(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=a.delayChildren,o=void 0===i?0:i,s=a.staggerChildren,l=a.staggerDirection;return function(e,t,n,r,i,o){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=1);var a=[],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(pf).forEach(function(e,r){a.push(ff(e,t,ua(ua({},o),{delay:n+l(r)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(a)}(e,t,o+r,s,l,n)}:function(){return Promise.resolve()},u=a.when;if(u){var c=fa("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 df(e,t,n){var r,i=void 0===n?{}:n,o=i.delay,a=void 0===o?0:o,s=i.transitionOverride,l=i.type,u=e.makeTargetAnimatable(t),c=u.transition,f=void 0===c?e.getDefaultTransition():c,d=u.transitionEnd,p=ca(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&&hf(m,g))){var b=ua({delay:a},f);e.shouldReduceMotion&&xs(g)&&(b=ua(ua({},b),{type:!1,delay:0}));var w=$c(g,y,v,b);h.push(w)}}return Promise.all(h).then(function(){d&&function(e,t){var n=os(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=void 0===i?{}:i;r.transition;var a=ca(r,["transitionEnd","transition"]);for(var s in a=ua(ua({},a),o))uf(e,s,vl(a[s]))}(e,d)})}function pf(e,t){return e.sortNodePosition(t)}function hf(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}var mf=[El.Animate,El.InView,El.Focus,El.Hover,El.Tap,El.Drag,El.Exit],gf=da([],fa(mf),!1).reverse(),yf=mf.length;function vf(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 ff(e,t,n)});r=Promise.all(i)}else if("string"==typeof t)r=ff(e,t,n);else{var o="function"==typeof t?os(e,t,n.custom):t;r=df(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}(e,n,r)}))}}(e),n=function(){var e;return(e={})[El.Animate]=bf(!0),e[El.InView]=bf(),e[El.Hover]=bf(),e[El.Tap]=bf(),e[El.Drag]=bf(),e[El.Focus]=bf(),e[El.Exit]=bf(),e}(),r={},i=!0,o=function(t,n){var r=os(e,n);if(r){r.transition;var i=r.transitionEnd,o=ca(r,["transition","transitionEnd"]);t=ua(ua(ua({},t),o),i)}return t};function a(a,s){for(var l,u=e.getProps(),c=e.getVariantContext(!0)||{},f=[],d=new Set,p={},h=1/0,m=function(t){var r=gf[t],m=n[r],g=null!==(l=u[r])&&void 0!==l?l:c[r],y=rs(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=ua({},p),!m.isActive&&null===v||!g&&!m.prevProp||gl(g)||"boolean"==typeof g)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!ns(t)&&!ou(t,e)}(m.prevProp,g),x=w||r===s&&m.isActive&&!b&&y||t>h&&y,_=Array.isArray(g)?g:[g],E=_.reduce(o,{});!1===v&&(E={});var k=m.prevResolvedValues,S=void 0===k?{}:k,A=ua(ua({},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?yl(T)&&yl(N)?!ou(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=ua(ua({},p),E)),i&&e.blockInitialAnimation&&(x=!1),x&&!b&&f.push.apply(f,da([],fa(_.map(function(e){return{animation:e,options:ua({type:r},a)}})),!1))},g=0;g<yf;g++)m(g);if(r=ua({},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:a,setActive:function(t,r,i){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.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=a(i,t);for(var l in n)n[l].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function bf(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var wf={animation:nu(function(t){var n=t.visualElement,r=t.animate;n.animationState||(n.animationState=vf(n)),gl(r)&&(0,e.useEffect)(function(){return r.subscribe(n)},[r])}),exit:nu(function(t){var n=t.custom,r=t.visualElement,i=fa(iu(),2),o=i[0],a=i[1],s=(0,e.useContext)(Pa);(0,e.useEffect)(function(){var e,t;r.isPresent=o;var i=null===(e=r.animationState)||void 0===e?void 0:e.setActive(El.Exit,!o,{custom:null!==(t=null==s?void 0:s.custom)&&void 0!==t?t:n});!o&&(null==i||i.then(a))},[o])})};const xf=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),_f=e=>xf(e)&&e.hasOwnProperty("z"),Ef=(e,t)=>Math.abs(e-t);function kf(e,t){if(Fu(e)&&Fu(t))return Ef(e,t);if(xf(e)&&xf(t)){const n=Ef(e.x,t.x),r=Ef(e.y,t.y),i=_f(e)&&_f(t)?Ef(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}var Sf=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=Of(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=kf(e.offset,{x:0,y:0})>=3;if(t||n){var i=e.point,o=Oa().timestamp;r.history.push(ua(ua({},i),{timestamp:o}));var a=r.handlers,s=a.onStart,l=a.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=Af(t,r.transformPagePoint),Ol(e)&&0===e.buttons?r.handlePointerUp(e,t):Ta.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,i=n.onEnd,o=n.onSessionEnd,a=Of(Af(t,r.transformPagePoint),r.history);r.startEvent&&i&&i(e,a),o&&o(e,a)},!(Tl(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var o=Af(Pl(e),this.transformPagePoint),a=o.point,s=Oa().timestamp;this.history=[ua(ua({},a),{timestamp:s})];var l=t.onSessionStart;l&&l(e,Of(o,this.history)),this.removeListeners=Yl(Dl(window,"pointermove",this.handlePointerMove),Dl(window,"pointerup",this.handlePointerUp),Dl(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Ea.update(this.updatePoint)},e}();function Af(e,t){return t?{point:t(e.point)}:e}function Cf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Of(e,t){var n=e.point;return{point:n,delta:Cf(n,Nf(t)),offset:Cf(n,Tf(t)),velocity:Rf(t,.1)}}function Tf(e){return e[0]}function Nf(e){return e[e.length-1]}function Rf(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=Nf(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>_c(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function jf(e){return e.max-e.min}function Pf(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),kf(e,t)<n}function If(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=yu(t.min,t.max,e.origin),e.scale=jf(n)/jf(t),(Pf(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=yu(n.min,n.max,e.origin)-e.originPoint,(Pf(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Lf(e,t,n,r){If(e.x,t.x,n.x,null==r?void 0:r.originX),If(e.y,t.y,n.y,null==r?void 0:r.originY)}function Mf(e,t,n){e.min=n.min+t.min,e.max=e.min+jf(t)}function Bf(e,t,n){e.min=t.min-n.min,e.max=e.min+jf(t)}function Df(e,t,n){Bf(e.x,t.x,n.x),Bf(e.y,t.y,n.y)}function Uf(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 Ff(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=fa([i,r],2))[0],i=n[1]),{min:r,max:i}}var zf=.35;function Vf(e,t,n){return{min:Hf(e,t),max:Hf(e,n)}}function Hf(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}var Wf=function(){return{x:{min:0,max:0},y:{min:0,max:0}}};function qf(e){return[e("x"),e("y")]}function Gf(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function Zf(e){return void 0===e||1===e}function Yf(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Zf(t)||!Zf(n)||!Zf(r)}function $f(e){return Yf(e)||Kf(e.x)||Kf(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Kf(e){return e&&"0%"!==e}function Xf(e,t,n){return n+t*(e-n)}function Qf(e,t,n,r,i){return void 0!==i&&(e=Xf(e,i,r)),Xf(e,n,r)+t}function Jf(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Qf(e.min,t,n,r,i),e.max=Qf(e.max,t,n,r,i)}function ed(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 td(e,t){e.min=e.min+t,e.max=e.max+t}function nd(e,t,n){var r=fa(n,3),i=r[0],o=r[1],a=r[2],s=void 0!==t[a]?t[a]:.5,l=yu(e.min,e.max,s);Jf(e,t[i],t[o],l,t.scale)}var rd=["x","scaleX","originX"],id=["y","scaleY","originY"];function od(e,t){nd(e.x,t,rd),nd(e.y,t,id)}function ad(e,t){return Gf(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 sd=new WeakMap,ld=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 Sf(e,{onSessionStart:function(e){n.stopAnimation(),i&&n.snapToCursor(Pl(e,"page").point)},onStart:function(e,t){var r,i=n.getProps(),o=i.drag,a=i.dragPropagation,s=i.onDragStart;(!o||a||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Hl(o),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),qf(function(e){var t,r,i=n.getAxisMotionValue(e).get()||0;if(Bs.test(i)){var o=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];o&&(i=jf(o)*(parseFloat(i)/100))}n.originPoint[e]=i}),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(El.Drag,!0))},onMove:function(e,t){var r=n.getProps(),i=r.dragPropagation,o=r.dragDirectionLock,a=r.onDirectionLock,s=r.onDrag;if(i||n.openGlobalLock){var l=t.offset;if(o&&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==a||a(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(El.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&ud(e,r,this.currentDirection)){var i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,t,n){var r=t.min,i=t.max;return void 0!==r&&e<r?e=n?yu(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?yu(i,e,n.max):Math.min(e,i)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,i=(this.visualElement.projection||{}).layout,o=this.constraints;n&&ts(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:Uf(e.x,r,o),y:Uf(e.y,n,i)}}(i.actual,n),this.elastic=function(e){return void 0===e&&(e=zf),!1===e?e=0:!0===e&&(e=zf),{x:Vf(e,"left","right"),y:Vf(e,"top","bottom")}}(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&qf(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||!ts(t))return!1;var r=t.current,i=this.visualElement.projection;if(!i||!i.layout)return!1;var o=function(e,t,n){var r=ad(e,n),i=t.scroll;return i&&(td(r.x,i.x),td(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a=function(e,t){return{x:Ff(e.x,t.x),y:Ff(e.y,t.y)}}(i.layout.actual,o);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}}(a));this.hasMutatedConstraints=!!s,s&&(a=Gf(s))}return a},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,i=n.dragMomentum,o=n.dragElastic,a=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,u=this.constraints||{},c=qf(function(n){var l;if(ud(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=o?200:1e6,d=o?40:1e7,p=ua(ua({type:"inertia",velocity:i?e[n]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10},a),c);return t.startAxisValueAnimation(n,p)}});return Promise.all(c).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return $c(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;qf(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;qf(function(n){if(ud(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,i=t.getAxisMotionValue(n);if(r&&r.layout){var o=r.layout.actual[n],a=o.min,s=o.max;i.set(e[n]-yu(a,s,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,i=n.dragConstraints,o=this.visualElement.projection;if(ts(i)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};qf(function(e){var n=t.getAxisMotionValue(e);if(n){var r=n.get();a[e]=function(e,t){var n=.5,r=jf(e),i=jf(t);return i>r?n=gu(t.min,t.max-r,e.min):r>i&&(n=gu(e.min,e.max-i,t.min)),su(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=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),qf(function(e){if(ud(e,r,null)){var n=t.getAxisMotionValue(e),i=t.constraints[e],o=i.min,s=i.max;n.set(yu(o,s,a[e]))}})}},e.prototype.addListeners=function(){var e,t=this;sd.set(this.visualElement,this);var n=Dl(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(){ts(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();var a=Al(window,"resize",function(){return t.scalePositionWithinConstraints()});return i.addEventListener("didUpdate",function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(qf(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(){a(),n(),o()}},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,o=e.dragPropagation,a=void 0!==o&&o,s=e.dragConstraints,l=void 0!==s&&s,u=e.dragElastic,c=void 0===u?zf:u,f=e.dragMomentum,d=void 0===f||f;return ua(ua({},e),{drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:l,dragElastic:c,dragMomentum:d})},e}();function ud(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var cd={pan:nu(function(t){var n=t.onPan,r=t.onPanStart,i=t.onPanEnd,o=t.onPanSessionStart,a=t.visualElement,s=n||r||i||o,l=(0,e.useRef)(null),u=(0,e.useContext)(Ka).transformPagePoint,c={onSessionStart:o,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)}),Ul(a,"pointerdown",s&&function(e){l.current=new Sf(e,c,{transformPagePoint:u})}),za(function(){return l.current&&l.current.end()})}),drag:nu(function(t){var n=t.dragControls,r=t.visualElement,i=Ia(function(){return new ld(r)});(0,e.useEffect)(function(){return n&&n.subscribe(i)},[i,n]),(0,e.useEffect)(function(){return i.addListeners()},[i])})},fd=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],dd=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,a=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=fd.map(function(){return new Jc}),t={},n={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){fd.forEach(function(r){var i,o="on"+r,a=e[o];null===(i=t[r])||void 0===i||i.call(t),a&&(t[r]=n[o](a))})}};return e.forEach(function(e,t){n["on"+fd[t]]=function(t){return e.add(t)},n["notify"+fd[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,da([],fa(t),!1))}}),n}(),k=new Map,S=new Map,A={},C=ua({},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&&Ta.update(N,!1,!0)}),r=t.onRenderRequest(B.scheduleRender);S.set(e,function(){n(),r()})}var j=f(p);for(var P in j){var I=j[P];void 0!==x[P]&&Ss(I)&&I.set(x[P],!1)}var L=as(p),M=ss(p),B=ua(ua({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(),Ea.update(N),Ea.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),o(B,e,p,t)},measureViewportBox:function(){return a(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=tf(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&&!Ss(t))return t}return C[e]}},E),{build:function(){return T(),_},scheduleRender:function(){Ta.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 o=t[i],a=n[i];if(Ss(o))e.addValue(i,o);else if(Ss(a))e.addValue(i,tf(o));else if(a!==o)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(o)}else e.addValue(i,tf(null!==(r=e.getStaticValue(i))&&void 0!==r?r:o))}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<hd;r++){var i=pd[r],o=p[i];(rs(o)||!1===o)&&(n[i]=o)}return n}});return B}},pd=da(["initial"],fa(mf),!1),hd=pd.length;function md(e){return"string"==typeof e&&e.startsWith("var(--")}var gd=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function yd(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=fa(function(e){var t=gd.exec(e);if(!t)return[,];var n=fa(t,3);return[n[1],n[2]]}(e),2),i=r[0],o=r[1];if(i){var a=window.getComputedStyle(t).getPropertyValue(i);return a?a.trim():md(o)?yd(o,t,n+1):o}}var vd,bd=new Set(["width","height","top","left","right","bottom","x","y"]),wd=function(e){return bd.has(e)},xd=function(e,t){e.set(t,!1),e.set(t)},_d=function(e){return e===Vs||e===Ds};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(vd||(vd={}));var Ed=function(e,t){return parseFloat(e.split(", ")[t])},kd=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return Ed(o[1],t);var a=i.match(/^matrix\((.+)\)$/);return a?Ed(a[1],e):0}},Sd=new Set(["x","y","z"]),Ad=vs.filter(function(e){return!Sd.has(e)}),Cd={width:function(e,t){var n=e.x,r=t.paddingLeft,i=void 0===r?"0":r,o=t.paddingRight,a=void 0===o?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,i=void 0===r?"0":r,o=t.paddingBottom,a=void 0===o?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},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:kd(4,13),y:kd(5,14)};function Od(e,t,n,r){return function(e){return Object.keys(e).some(wd)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=ua({},t),r=ua({},r);var i=Object.keys(t).filter(wd),o=[],a=!1,s=[];if(i.forEach(function(i){var l=e.getValue(i);if(e.hasValue(i)){var u,c=n[i],f=of(c),d=t[i];if(yl(d)){var p=d.length,h=null===d[0]?1:0;c=d[h],f=of(c);for(var m=h;m<p;m++)u?Ga(of(d[m])):(u=of(d[m]),Ga(u===f||_d(f)&&_d(u)))}else u=of(d);if(f!==u)if(_d(f)&&_d(u)){var g=l.get();"string"==typeof g&&l.set(parseFloat(g)),"string"==typeof d?t[i]=parseFloat(d):Array.isArray(d)&&u===Ds&&(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):(a||(o=function(e){var t=[];return Ad.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),a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],xd(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(),o=getComputedStyle(i),a=o.display,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(function(e){s[e]=Cd[e](r,o)}),t.syncRender();var l=t.measureViewportBox();return n.forEach(function(n){var r=t.getValue(n);xd(r,s[n]),e[n]=Cd[n](l,o)}),e}(t,e,s);return o.length&&o.forEach(function(t){var n=fa(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 Td={treeType:"dom",readValueFromInstance:function(e,t){if(xs(t)){var n=Vc(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r));return(Cs(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 ad(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 o=t.transition,a=t.transitionEnd,s=ca(t,["transition","transitionEnd"]),l=function(e,t,n){var r,i,o={};for(var a in e)o[a]=null!==(r=cf(a,t))&&void 0!==r?r:null===(i=n.getValue(a))||void 0===i?void 0:i.get();return o}(s,o||{},e);if(i&&(a&&(a=i(a)),s&&(s=i(s)),l&&(l=i(l))),r){!function(e,t,n){var r,i,o,a,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)||Kc(d))?d=parseFloat(d):!sf(d)&&Uu.test(f)&&(d=Hc(c,f)),e.addValue(c,tf(d)),null!==(o=(a=n)[c])&&void 0!==o||(a[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=ca(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};for(var a in n&&(n=ua({},n)),e.forEachValue(function(e){var t=e.get();if(md(t)){var n=yd(t,o);n&&e.set(n)}}),i){var s=i[a];if(md(s)){var l=yd(s,o);l&&(i[a]=l,n&&(null!==(r=n[a])&&void 0!==r||(n[a]=s)))}}return{target:i,transitionEnd:n}}(e,t,r);return Od(e,t=i.target,n,r=i.transitionEnd)}(e,s,l,a);a=u.transitionEnd,s=u.target}return ua({transition:o,transitionEnd:a},s)},scrapeMotionValuesFromProps:hl,build:function(e,t,n,r,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),Zs(t,n,r,i.transformTemplate)},render:fl},Nd=dd(Td),Rd=dd(ua(ua({},Td),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return xs(t)?(null===(n=Vc(t))||void 0===n?void 0:n.default)||0:(t=dl.has(t)?t:cl(t),e.getAttribute(t))},scrapeMotionValuesFromProps:ml,build:function(e,t,n,r,i){ol(t,n,r,i.transformTemplate)},render:pl})),jd=function(e,t){return ms(e)?Rd(t,{enableHardwareAcceleration:!1}):Nd(t,{enableHardwareAcceleration:!0})};function Pd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Id={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!Ds.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,"%")}},Ld="_$css",Md={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),a=[];o&&(e=e.replace(gd,function(e){return a.push(e),Ld}));var s=Uu.parse(e);if(s.length>5)return i;var l=Uu.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=yu(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(o){var h=0;p=p.replace(Ld,function(){var e=a[h];return h++,e})}return p}},Bd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return la(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,a=n.layoutId,s=r.projection;e=Dd,Object.assign(gs,e),s&&((null==i?void 0:i.group)&&i.group.add(s),(null==o?void 0:o.register)&&a&&o.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",function(){t.safeToRemove()}),s.setOptions(ua(ua({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),us.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,i=n.visualElement,o=n.drag,a=n.isPresent,s=i.projection;return s?(s.isPresent=a,o||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||Ta.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),Dd={borderRadius:ua(ua({},Id),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Id,borderTopRightRadius:Id,borderBottomLeftRadius:Id,borderBottomRightRadius:Id,boxShadow:Md},Ud={measureLayout:function(t){var n=fa(iu(),2),r=n[0],i=n[1],o=(0,e.useContext)(Fa);return e.createElement(Bd,ua({},t,{layoutGroup:o,switchLayoutGroup:(0,e.useContext)(fs),isPresent:r,safeToRemove:i}))}},Fd=["TopLeft","TopRight","BottomLeft","BottomRight"],zd=Fd.length,Vd=function(e){return"string"==typeof e?parseFloat(e):e},Hd=function(e){return"number"==typeof e||Ds.test(e)};function Wd(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var qd=Zd(0,.5,ic),Gd=Zd(.5,.95,Ju);function Zd(e,t,n){return function(r){return r<e?0:r>t?1:n(gu(e,t,r))}}function Yd(e,t){e.min=t.min,e.max=t.max}function $d(e,t){Yd(e.x,t.x),Yd(e.y,t.y)}function Kd(e,t,n,r,i){return e=Xf(e-=t,1/n,r),void 0!==i&&(e=Xf(e,1/i,r)),e}function Xd(e,t,n,r,i){var o=fa(n,3),a=o[0],s=o[1],l=o[2];!function(e,t,n,r,i,o,a){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===o&&(o=e),void 0===a&&(a=e),Bs.test(t)&&(t=parseFloat(t),t=yu(a.min,a.max,t/100)-a.min),"number"==typeof t){var s=yu(o.min,o.max,r);e===o&&(s-=t),e.min=Kd(e.min,t,n,s,i),e.max=Kd(e.max,t,n,s,i)}}(e,t[a],t[s],t[l],t.scale,r,i)}var Qd=["x","scaleX","originX"],Jd=["y","scaleY","originY"];function ep(e,t,n,r){Xd(e.x,t,Qd,null==n?void 0:n.x,null==r?void 0:r.x),Xd(e.y,t,Jd,null==n?void 0:n.y,null==r?void 0:r.y)}function tp(e){return 0===e.translate&&1===e.scale}function np(e){return tp(e.x)&&tp(e.y)}function rp(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 ip=function(){function e(){this.members=[]}return e.prototype.add=function(e){Xc(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Qc(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,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===o||o.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 op(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,s=n.rotateX,l=n.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),s&&(o+="rotateX(".concat(s,"deg) ")),l&&(o+="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)"===(o+="scale(".concat(u,", ").concat(c,")"))?"none":o}var ap=function(e,t){return e.depth-t.depth},sp=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Xc(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Qc(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(ap),this.isDirty=!1,this.children.forEach(e)},e}();function lp(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,o=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(mp),i.nodes.forEach(gp)},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?da(da([],fa(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var o=0;o<this.path.length;o++)this.path[o].shouldResetTransform=!0;this.root===this&&(this.nodes=new sp)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Jc),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,da([],fa(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 o=this.options,a=o.layoutId,s=o.layout,l=o.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||a)&&(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),us.hasAnimatedSinceResize&&(us.hasAnimatedSinceResize=!1,i.nodes.forEach(hp))})}a&&this.root.registerSharedNode(a,this),!1!==this.options.animate&&l&&(a||s)&&this.addEventListener("didUpdate",function(e){var t,n,r,o,a,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:_p,p=l.getProps(),h=p.onLayoutAnimationStart,m=p.onLayoutAnimationComplete,g=!i.targetLayout||!rp(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=ua(ua({},Yc(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===(a=(o=i.options).onExitComplete)||void 0===a||a.call(o));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,Ea.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(yp))},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 o=this.path[i];o.shouldResetTransform=!0,o.updateScroll()}var a=this.options,s=a.layoutId,l=a.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(dp);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Ep),this.potentialNodes.clear()),this.nodes.forEach(pp),this.nodes.forEach(up),this.nodes.forEach(cp),this.clearAllSnapshots(),ka.update(),ka.preRender(),ka.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(fp),this.sharedNodes.forEach(vp)},e.prototype.scheduleUpdateProjection=function(){Ta.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;Ta.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));Sp(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();Sp(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(o){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!np(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,i=null==r?void 0:r(this.latestValues,""),a=i!==this.prevTransformTemplateValue;t&&(n||$f(this.latestValues)||a)&&(o(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&&(td(t.x,n.x),td(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};$d(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],i=r.scroll,o=r.options,a=r.isScrollRoot;if(r!==this.root&&i&&o.layoutScroll){if(a){$d(t,e);var s=this.root.scroll;s&&(td(t.x,-s.x),td(t.y,-s.y))}td(t.x,i.x),td(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}};$d(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&&od(n,{x:-i.scroll.x,y:-i.scroll.y}),$f(i.latestValues)&&od(n,i.latestValues)}return $f(this.latestValues)&&od(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};$d(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];if(i.instance&&$f(i.latestValues)){Yf(i.latestValues)&&i.updateSnapshot();var o=Wf();$d(o,i.measure()),ep(n,i.latestValues,null===(t=i.snapshot)||void 0===t?void 0:t.layout,o)}}return $f(this.latestValues)&&ep(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=ua(ua(ua({},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,o=i.layout,a=i.layoutId;this.layout&&(o||a)&&(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}},Df(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),$d(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,Mf(t.x,n.x,r.x),Mf(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):$d(this.target,this.layout.actual),ed(this.target,this.targetDelta)):$d(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}},Df(this.relativeTargetOrigin,this.target,this.relativeParent.target),$d(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!$f(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();$d(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var i,o;void 0===r&&(r=!1);var a=n.length;if(a){var s,l;t.x=t.y=1;for(var u=0;u<a;u++)l=(s=n[u]).projectionDelta,"contents"!==(null===(o=null===(i=s.instance)||void 0===i?void 0:i.style)||void 0===o?void 0:o.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&od(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,ed(e,l)),r&&$f(s.latestValues)&&od(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);var o=i.target;if(o){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 a=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;Lf(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=op(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}}},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,o=(null==i?void 0:i.latestValues)||{},a=ua({},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(xp));this.animationProgress=0,this.mixTargetDelta=function(t){var n,i=t/1e3;bp(s.x,e.x,i),bp(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)&&(Df(l,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){wp(e.x,t.x,n.x,r),wp(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,l,i)),u&&(r.animationValues=a,function(e,t,n,r,i,o){var a,s,l,u;i?(e.opacity=yu(0,null!==(a=n.opacity)&&void 0!==a?a:1,qd(r)),e.opacityExit=yu(null!==(s=t.opacity)&&void 0!==s?s:1,0,Gd(r))):o&&(e.opacity=yu(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(var c=0;c<zd;c++){var f="border".concat(Fd[c],"Radius"),d=Wd(t,f),p=Wd(n,f);void 0===d&&void 0===p||(d||(d=0),p||(p=0),0===d||0===p||Hd(d)===Hd(p)?(e[f]=Math.max(yu(Vd(d),Vd(p),r),0),(Bs.test(p)||Bs.test(d))&&(e[f]+="%")):e[f]=p)}(t.rotate||n.rotate)&&(e.rotate=yu(t.rotate||0,n.rotate||0,r))}(a,o,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&&(Ea.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ta.update(function(){us.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=Ss(0)?0:tf(0);return $c("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,ua(ua({},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&&($d(t,n),od(t,i),Lf(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 ip),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,o=this.getStack();o&&o.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<ys.length;r++){var i="rotate"+ys[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,o,a;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=bl(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=bl(e.pointerEvents)||""),this.hasProjected&&!$f(this.latestValues)&&(c.transform=l?l({},""):"none",this.hasProjected=!1),c}var f=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=op(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!==(o=f.opacity)&&void 0!==o?o:"":null!==(a=f.opacityExit)&&void 0!==a?a:0,gs)if(void 0!==f[m]){var g=gs[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?bl(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(dp),this.root.sharedNodes.clear()},e}()}function up(e){e.updateLayout()}function cp(e){var t,n,r,i,o=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,l=a.measured;"size"===e.options.animationType?qf(function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=jf(t);t.min=s[e].min,t.max=t.min+n}):"position"===e.options.animationType&&qf(function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=jf(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}};Lf(u,s,o.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o.isShared?Lf(c,e.applyTransform(l,!0),o.measured):Lf(c,s,o.layout);var f=!np(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}};Df(g,o.layout,h.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};Df(y,s,m.actual),rp(g,y)||(d=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,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 fp(e){e.clearSnapshot()}function dp(e){e.clearMeasurements()}function pp(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function hp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function mp(e){e.resolveTargetDelta()}function gp(e){e.calcProjection()}function yp(e){e.resetRotation()}function vp(e){e.removeLeadSnapshot()}function bp(e,t,n){e.translate=yu(t.translate,0,n),e.scale=yu(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function wp(e,t,n,r){e.min=yu(t.min,n.min,r),e.max=yu(t.max,n.max,r)}function xp(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var _p={duration:.45,ease:[.4,0,.1,1]};function Ep(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 kp(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Sp(e){kp(e.x),kp(e.y)}var Ap=lp({attachResizeListener:function(e,t){return Al(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Cp={current:void 0},Op=lp({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Cp.current){var e=new Ap(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Cp.current=e}return Cp.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),Tp=ua(ua(ua(ua({},wf),ru),cd),Ud),Np=function(e){function t(t,n){return void 0===n&&(n={}),ps(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 o=t.forwardMotionProps,a=void 0!==o&&o,s=ms(e)?kl:Sl;return ua(ua({},s),{preloadedFeatures:n,useRender:ll(a),createVisualElement:r,projectionNodeConstructor:i,Component:e})}(e,t,Tp,jd,Op)});const Rp={success:"tw-bg-green-300",info:"tw-bg-sky-300",warning:"tw-bg-amber-300",error:"tw-bg-red-300"},jp={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 Ip(t){var n;const{dispatch:r}=(0,e.useContext)(m),[i,o]=(0,e.useState)(!1),a=(0,e.useRef)(null);(0,e.useEffect)(()=>{let e,n;return t.timeoutMs&&(e=setTimeout(()=>r(E(t.id)),300+t.timeoutMs),n=setTimeout(()=>o(!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||Rp[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 "+jp[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)(So,{className:"tw-cursor-pointer hover:tw-scale-125 tw-transition-all",icon:Xt})})}),t.showSpinner&&(0,d.jsx)("div",{className:"tw-flex tw-flex-grow tw-justify-end",children:(0,d.jsx)("div",{children:(0,d.jsx)(So,{icon:Qt,className:"fa-spin"})})})]}),t.timeoutMs&&(0,d.jsx)("div",{children:(0,d.jsx)("div",{ref:a,className:"tw-h-1 tw-transition-all tw-ease-linear "+[s(),jp[t.type]].join(" "),style:{transitionDuration:"".concat(t.timeoutMs,"ms")}})})]})}function Lp(){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)(Ha,{children:n.map(e=>(0,d.jsx)(Np.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)(Ip,{...e})},e.id))})})}const Mp=t=>{const{id:n,className:r,role:i,ariaHidden:o,ariaLabel:a,initialValue:s,label:l,title:u,placeholder:c,autoComplete:f,cols:p,rows:h,disabled:m,minLength:g,maxLength:y,readOnly:v,resize:b,wrap:w,autoResize:x,onChange:_,onEnterKey:E,showRemainingCharacterCount:k}=t,[S,A]=e.useState(s||""),C=e.useRef(null),O=e.useRef(0),T=()=>{C.current&&(C.current.style.height="1px",C.current.style.height="".concat(C.current.scrollHeight,"px"))};e.useEffect(()=>{A(s),x&&C.current&&T()},[s]),e.useEffect(()=>{if(!x)return()=>{};const e=new ResizeObserver(e=>{const t=e[0].contentRect.width;O.current!=t&&(requestAnimationFrame(()=>T()),O.current=t)});return C.current&&e.observe(C.current),()=>{e.disconnect()}},[x]);let N=void 0!==y&&!!k;return N&&"number"==typeof k&&(N=S.length>=y-k),(0,d.jsxs)("div",{className:j("common-textarea-wrapper",m&&"disabled",b&&"resize-".concat(b),r),children:[l&&(0,d.jsx)("label",{className:"common-textarea-label",children:l}),(0,d.jsxs)("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":a,"aria-hidden":o,placeholder:c,value:S||"",cols:p,rows:h,minLength:g,maxLength:y,wrap:w,readOnly:!!v,ref:C,onChange:e=>{const t=e.target.value;v||S===t||A(t),_&&_(t),x&&C.current&&T()},onKeyDown:e=>{const t="number"==typeof e.which?e.which:e.keyCode;13!==t&&32!==t||E&&(e.preventDefault(),E(S))},autoComplete:f?"":"off",autoCorrect:f?"":"off",autoCapitalize:f?"":"off",spellCheck:f,disabled:m}),N&&(0,d.jsx)("div",{className:"common-textarea-character-count",role:"presentation","aria-hidden":"true",children:y-S.length})]})]})},Bp=e=>{const{children:n,id:r,className:i,ariaLabel:o,ariaHidden:a,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=j("common-modal-container",g&&"fullscreen",i);return t.createPortal((0,d.jsx)(Qo,{className:b,onEscape:v,children:(0,d.jsxs)("div",{id:r,className:"common-modal",role:l||"dialog","aria-hidden":a,"aria-label":o,"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)(F,{className:"common-button menu-button",title:lf("Help on {0} dialog",u),href:e.helpUrl,target:"_blank",children:(0,d.jsx)("span",{className:"common-button-flex",children:(0,d.jsx)("i",{className:"fas fa-question","aria-hidden":!0})})})}),!g&&!y&&(0,d.jsx)("div",{className:"common-modal-close",children:(0,d.jsx)(L,{className:"menu-button",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)},Dp=t=>{var n,r;const{onSignIn:i,onClose:o,appMessage:a,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)(Bp,{title:y,onClose:o,hideDismissButton:l,children:(0,d.jsxs)("div",{className:"signin-form",children:[(0,d.jsxs)("div",{className:"signin-header",children:[a||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:"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)(ea,{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)(F,{href:"/identity/sign-in",target:"_blank",children:lf("Learn more")})})]})]})})};function Up(e){const{title:t,confirmLabel:n,cancelLabel:r,children:i,onConfirm:o,onCancel:a}=e,s=[{label:null!=r?r:lf("Cancel"),className:"primary inverted",onClick:a},{label:null!=n?n:lf("Confirm"),className:"primary",onClick:o}];return(0,d.jsx)(Bp,{title:t,actions:s,onClose:a,children:i})}function Fp(){const{state:t}=(0,e.useContext)(m),{deepLinks:n,clientRole:r,gameState:i}=t,{gameId:o}=null!=i?i:{},[a,s]=(0,e.useState)("");switch(t.modal){case"sign-in":return(0,d.jsx)(Dp,{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 De();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)(Up,{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}))}}(o,a)},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)(Mp,{onChange:s,maxLength:1e3})})]})});case"kick-player":return(0,d.jsx)(Up,{title:lf("Kick Player"),onConfirm:()=>{h({type:"CLEAR_MODAL"}),function(e){try{pxt.tickEvent("mp.kickplayer"),function(e){var t;null===(t=ht)||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)(Up,{title:lf("End the Game"),onConfirm:async()=>{h({type:"CLEAR_MODAL"}),await wt("ended")},onCancel:()=>h({type:"CLEAR_MODAL"}),children:(0,d.jsx)("div",{children:lf("End the game? All players will be disconnected.")})}):(0,d.jsx)(Up,{title:lf("Leave Game"),onConfirm:async()=>{h({type:"CLEAR_MODAL"}),await wt("left")},onCancel:()=>h({type:"CLEAR_MODAL"}),children:(0,d.jsx)("div",{children:lf("Leave the game?")})});default:return null}}function zp(){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 Ot()}})})]}),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.")})]})]})}class Vp{constructor(e){this.currentTheme=void 0,this.subscribers=void 0,this.document=void 0,this.document=e}static getInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return Vp.instances.has(e)||Vp.instances.set(e,new Vp(e)),Vp.instances.get(e)}static isCurrentThemeHighContrast(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const n=Vp.getInstance(t);return n.isHighContrast(null===(e=n.getCurrentColorTheme())||void 0===e?void 0:e.id)}getCurrentColorTheme(){return this.currentTheme}isKnownTheme(e){var t,n;return!(null===(t=pxt.appTarget)||void 0===t||null===(n=t.colorThemeMap)||void 0===n||!n[e])}getAllColorThemes(){var e;return(null!==(e=pxt.appTarget)&&void 0!==e&&e.colorThemeMap?Object.values(pxt.appTarget.colorThemeMap):[]).sort((e,t)=>{var n,r;return e.weight!==t.weight?(null!==(n=e.weight)&&void 0!==n?n:1/0)-(null!==(r=t.weight)&&void 0!==r?r:1/0):e.id.localeCompare(t.id)})}isHighContrast(e){var t,n;return e&&e===(null===(t=pxt.appTarget)||void 0===t||null===(n=t.appTheme)||void 0===n?void 0:n.highContrastColorTheme)}performHighContrastWorkaround(e){this.isHighContrast(e)?(this.document.body.classList.add("high-contrast"),this.document.body.classList.add("hc")):(this.document.body.classList.remove("high-contrast"),this.document.body.classList.remove("hc"))}switchColorTheme(e){var t,n,r;if(e===(null===(t=this.getCurrentColorTheme())||void 0===t?void 0:t.id))return;const i=null===(n=pxt.appTarget)||void 0===n||null===(r=n.colorThemeMap)||void 0===r?void 0:r[e];if(i){const t=function(e){let t="";for(const[n,r]of Object.entries(e.colors))t+="--".concat(n,": ").concat(r,";\n");return e.overrideCss&&(t+="".concat(e.overrideCss,"\n")),t=DOMPurify.sanitize(t),t}(i),n="theme-override";let r=this.document.getElementById(n);r||(r=this.document.createElement("style"),r.id=n,this.document.head.appendChild(r)),r.textContent=".pxt-theme-root { ".concat(t," }"),this.performHighContrastWorkaround(e),this.currentTheme=i,this.notifySubscribers()}}subscribe(e,t){var n;null!==(n=this.subscribers)&&void 0!==n&&n.some(t=>t.subscriberId===e)||(this.subscribers||(this.subscribers=[]),this.subscribers.push({subscriberId:e,onColorThemeChange:t}))}unsubscribe(e){this.subscribers=this.subscribers.filter(t=>t.subscriberId!==e)}notifySubscribers(){var e;null===(e=this.subscribers)||void 0===e||e.forEach(e=>e.onColorThemeChange())}}Vp.instances=new Map;const Hp=function(){const{state:t,dispatch:n}=(0,e.useContext)(m),{authStatus:r,deepLinks:i,targetConfig:o}=t,{shareCode:a,joinCode:s}=i,[l,u]=(0,e.useState)(!1);(0,e.useEffect)(()=>{o||(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)}},[])}(Tt),(0,e.useEffect)(()=>{(async function(){const e=await De(),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]),(0,e.useEffect)(()=>{var e,t;const n=null===(e=pxt.appTarget)||void 0===e||null===(t=e.appTheme)||void 0===t?void 0:t.defaultColorTheme;if(n){var r;const e=Vp.getInstance(document);n!==(null===(r=e.getCurrentColorTheme())||void 0===r?void 0:r.id)&&e.switchColorTheme(n)}});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,o=null!==(t=r.get("join"))&&void 0!==t?t:void 0;i=Ge(i),o=qe(o),n(S(i,o))},[n]);return(0,e.useEffect)(()=>{l&&c()},[l,c]),(0,e.useEffect)(()=>{l&&(a||s)&&"signed-in"===r&&(a?vt(a).then(()=>{}).catch(()=>{}):s&&bt(s).then(()=>{}).catch(()=>{}),n(S(void 0,void 0)))},[n,r,a,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)(aa,{}),"signed-out"===r&&(0,d.jsx)(N,{}),"signed-in"===r&&(0,d.jsx)(Go,{})]}),(0,d.jsx)(Fp,{}),(0,d.jsx)(zp,{}),(0,d.jsx)(Lp,{})]})};window.addEventListener("DOMContentLoaded",()=>{const n=window.pxtTargetBundle;if(pxt.options.debug=/dbg=1/i.test(window.location.href),pxt.options.debug&&pxt.setLogLevel(pxt.LogLevel.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;"string"==typeof e[t]&&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)(Hp,{})})}),document.getElementById("root"))})})()})();
|
|
1
|
+
/*! For license information please see main.aa183a08.js.LICENSE.txt */
|
|
2
|
+
(()=>{var e={3500:(e,t,n)=>{"use strict";var r=n(3705),i=n(1173),o=n(8898),a=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,o,a){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=o,this.removeEmptyString=a}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,j=60120,P=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"),j=F("react.suspense_list"),P=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"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&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 j: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 P: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,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.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 o({},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")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(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 oe(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=o({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 o({},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=o({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=ii(e)){if("function"!=typeof Oe)throw Error(s(280));var t=e.stateNode;t&&(t=ai(t),Oe(e.stateNode,e.type,t))}}function je(e){Te?Ne?Ne.push(e):Ne=[e]:Te=e}function Pe(){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(),Pe())}function ze(e,t){var n=e.stateNode;if(null===n)return null;var r=ai(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,o,a,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,o,a,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{!!(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 o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Je(i),e;if(o===r)return Je(i),t;o=o.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a)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),!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,ot,at=!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,o){return null===e||e.nativeEvent!==o?(e=mt(t,n,r,i,o),null!==t&&null!==(t=ii(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=ri(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 ot(e.lanePriority,function(){a.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=ii(n))&&rt(t),e.blockedOn=n,!1;t.shift()}return!0}function wt(e,t,n){bt(e)&&n.delete(t)}function xt(){for(at=!1;0<st.length;){var e=st[0];if(null!==e.blockedOn){null!==(e=ii(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,at||(at=!0,a.unstable_scheduleCallback(a.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"),jt=Ot("transitionend"),Pt=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",jt,"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),Pt.set(r,i),c(i,[r])}}(0,a.unstable_now)();var Bt=8;function Dt(e){if(1&e)return Bt=15,1;if(2&e)return Bt=14,2;if(4&e)return Bt=13,4;var t=24&e;return 0!==t?(Bt=12,t):32&e?(Bt=11,32):0!=(t=192&e)?(Bt=10,t):256&e?(Bt=9,256):0!=(t=3584&e)?(Bt=8,t):4096&e?(Bt=7,4096):0!=(t=4186112&e)?(Bt=6,t):0!=(t=62914560&e)?(Bt=5,t):67108864&e?(Bt=4,67108864):134217728&e?(Bt=3,134217728):0!=(t=805306368&e)?(Bt=2,t):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,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,i=Bt=15;else if(0!=(o=134217727&n)){var l=o&~a;0!==l?(r=Dt(l),i=Bt):0!==(s&=o)&&(r=Dt(s),i=Bt)}else 0!==(o=n&~a)?(r=Dt(o),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&a)){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=a.unstable_UserBlockingPriority,$t=a.unstable_runWithPriority,Kt=!0;function Xt(e,t,n,r){De||Me();var i=Jt,o=De;De=!0;try{Le(i,e,t,n,r)}finally{(De=o)||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=!(4&t))&&0<st.length&&-1<ht.indexOf(e))e=mt(null,e,t,n,r),st.push(e);else{var o=en(e,t,n,r);if(null===o)i&>(e,r);else{if(i){if(-1<ht.indexOf(e))return e=mt(o,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 o=i.pointerId;return ft.set(o,yt(ft.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,dt.set(o,yt(dt.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;gt(e,r)}Mr(e,t,r,null,n)}}}function en(e,t,n,r){var i=Ce(r);if(null!==(i=ri(i))){var o=Xe(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Qe(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Mr(e,t,r,i,n),null}var tn=null,nn=null,rn=null;function on(){if(rn)return rn;var e,t,n=nn,r=n.length,i="value"in tn?tn.value:tn.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return rn=i.slice(e,1<t?1-t:void 0)}function an(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,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?sn:ln,this.isPropagationStopped=ln,this}return o(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=o({},pn,{view:0,detail:0}),gn=un(mn),yn=o({},mn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,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(o({},yn,{dataTransfer:0})),wn=un(o({},mn,{relatedTarget:0})),xn=un(o({},pn,{animationName:0,elapsedTime:0,pseudoElement:0})),_n=o({},pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),En=un(_n),kn=un(o({},pn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},An={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"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function On(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function Tn(){return On}var Nn=o({},mn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=an(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?An[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?an(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?an(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Rn=un(Nn),jn=un(o({},yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=un(o({},mn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),In=un(o({},pn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=o({},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}),Mn=un(Ln),Bn=[9,13,27,32],Dn=d&&"CompositionEvent"in window,Un=null;d&&"documentMode"in document&&(Un=document.documentMode);var Fn=d&&"TextEvent"in window&&!Un,zn=d&&(!Dn||Un&&8<Un&&11>=Un),Vn=String.fromCharCode(32),Hn=!1;function Wn(e,t){switch(e){case"keyup":return-1!==Bn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Gn=!1,Zn={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 Yn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Zn[e.type]:"textarea"===t}function $n(e,t,n,r){je(r),0<(t=Dr(t,"onChange")).length&&(n=new hn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,Xn=null;function Qn(e){Nr(e,0)}function Jn(e){if(Q(oi(e)))return e}function er(e,t){if("change"===e)return t}var tr=!1;if(d){var nr;if(d){var rr="oninput"in document;if(!rr){var ir=document.createElement("div");ir.setAttribute("oninput","return;"),rr="function"==typeof ir.oninput}nr=rr}else nr=!1;tr=nr&&(!document.documentMode||9<document.documentMode)}function or(){Kn&&(Kn.detachEvent("onpropertychange",ar),Xn=Kn=null)}function ar(e){if("value"===e.propertyName&&Jn(Xn)){var t=[];if($n(t,Xn,e,Ce(e)),e=Qn,De)e(t);else{De=!0;try{Ie(e,t)}finally{De=!1,Fe()}}}}function sr(e,t,n){"focusin"===e?(or(),Xn=n,(Kn=t).attachEvent("onpropertychange",ar)):"focusout"===e&&or()}function lr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn(Xn)}function ur(e,t){if("click"===e)return Jn(t)}function cr(e,t){if("input"===e||"change"===e)return Jn(t)}var fr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},dr=Object.prototype.hasOwnProperty;function pr(e,t){if(fr(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(!dr.call(t,n[r])||!fr(e[n[r]],t[n[r]]))return!1;return!0}function hr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mr(e,t){var n,r=hr(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=hr(r)}}function gr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?gr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function yr(){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 vr(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 br=d&&"documentMode"in document&&11>=document.documentMode,wr=null,xr=null,_r=null,Er=!1;function kr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Er||null==wr||wr!==J(r)||(r="selectionStart"in(r=wr)&&vr(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},_r&&pr(_r,r)||(_r=r,0<(r=Dr(xr,"onSelect")).length&&(t=new hn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=wr)))}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 Sr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ar=0;Ar<Sr.length;Ar++)It.set(Sr[Ar],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 Cr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Or=new Set("cancel close invalid load scroll toggle".split(" ").concat(Cr));function Tr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,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 Nr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Tr(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Tr(i,s,u),o=l}}}if(Ze)throw e=Ye,Ze=!1,Ye=null,e}function Rr(e,t){var n=si(t),r=e+"__bubble";n.has(r)||(Lr(t,e,2,!1),n.add(r))}var jr="_reactListening"+Math.random().toString(36).slice(2);function Pr(e){e[jr]||(e[jr]=!0,l.forEach(function(t){Or.has(t)||Ir(t,!1,e,null),Ir(t,!0,e,null)}))}function Ir(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Or.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=si(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),Lr(o,e,i,t),a.add(s))}function Lr(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 Mr(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=ri(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Ue)return e();Ue=!0;try{return Be(e,t,n)}finally{Ue=!1,Fe()}}(function(){var r=o,i=Ce(n),a=[];e:{var s=Pt.get(e);if(void 0!==s){var l=hn,u=e;switch(e){case"keypress":if(0===an(n))break e;case"keydown":case"keyup":l=Rn;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=Pn;break;case Tt:case Nt:case Rt:l=xn;break;case jt:l=In;break;case"scroll":l=gn;break;case"wheel":l=Mn;break;case"copy":case"cut":case"paste":l=En;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=jn}var c=!!(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(Br(h,m,p))),f)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||16&t||!(u=n.relatedTarget||n.fromElement)||!ri(u)&&!u[ti])&&(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)?ri(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=jn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==l?s:oi(l),p=null==u?s:oi(u),(s=new c(m,h+"leave",l,n,i)).target=f,s.relatedTarget=p,m=null,ri(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=Ur(p))h++;for(p=0,m=d;m;m=Ur(m))p++;for(;0<h-p;)c=Ur(c),h--;for(;0<p-h;)d=Ur(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ur(c),d=Ur(d)}c=null}else c=null;null!==l&&Fr(a,s,l,c,!1),null!==u&&null!==f&&Fr(a,f,u,c,!0)}if("select"===(l=(s=r?oi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=er;else if(Yn(s))if(tr)g=cr;else{g=lr;var y=sr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ur);switch(g&&(g=g(e,r))?$n(a,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&oe(s,"number",s.value)),y=r?oi(r):window,e){case"focusin":(Yn(y)||"true"===y.contentEditable)&&(wr=y,xr=r,_r=null);break;case"focusout":_r=xr=wr=null;break;case"mousedown":Er=!0;break;case"contextmenu":case"mouseup":case"dragend":Er=!1,kr(a,n,i);break;case"selectionchange":if(br)break;case"keydown":case"keyup":kr(a,n,i)}var v;if(Dn)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 Gn?Wn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(zn&&"ko"!==n.locale&&(Gn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Gn&&(v=on()):(nn="value"in(tn=i)?tn.value:tn.textContent,Gn=!0)),0<(y=Dr(r,b)).length&&(b=new kn(b,e,null,n,i),a.push({event:b,listeners:y}),(v||null!==(v=qn(n)))&&(b.data=v))),(v=Fn?function(e,t){switch(e){case"compositionend":return qn(t);case"keypress":return 32!==t.which?null:(Hn=!0,Vn);case"textInput":return(e=t.data)===Vn&&Hn?null:e;default:return null}}(e,n):function(e,t){if(Gn)return"compositionend"===e||!Dn&&Wn(e,t)?(e=on(),rn=nn=tn=null,Gn=!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 zn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Dr(r,"onBeforeInput")).length&&(i=new kn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v)}Nr(a,t)})}function Br(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Dr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=ze(e,n))&&r.unshift(Br(e,o,i)),null!=(o=ze(e,t))&&r.push(Br(e,o,i))),e=e.return}return r}function Ur(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Fr(e,t,n,r,i){for(var o=t._reactName,a=[];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,o))&&a.unshift(Br(n,l,s)):i||null!=(l=ze(n,o))&&a.push(Br(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function zr(){}var Vr=null,Hr=null;function Wr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function qr(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 Gr="function"==typeof setTimeout?setTimeout:void 0,Zr="function"==typeof clearTimeout?clearTimeout:void 0;function Yr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function $r(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Kr(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 Xr=0,Qr=Math.random().toString(36).slice(2),Jr="__reactFiber$"+Qr,ei="__reactProps$"+Qr,ti="__reactContainer$"+Qr,ni="__reactEvents$"+Qr;function ri(e){var t=e[Jr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ti]||n[Jr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Kr(e);null!==e;){if(n=e[Jr])return n;e=Kr(e)}return t}n=(e=n).parentNode}return null}function ii(e){return!(e=e[Jr]||e[ti])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function oi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function ai(e){return e[ei]||null}function si(e){var t=e[ni];return void 0===t&&(t=e[ni]=new Set),t}var li=[],ui=-1;function ci(e){return{current:e}}function fi(e){0>ui||(e.current=li[ui],li[ui]=null,ui--)}function di(e,t){ui++,li[ui]=e.current,e.current=t}var pi={},hi=ci(pi),mi=ci(!1),gi=pi;function yi(e,t){var n=e.type.contextTypes;if(!n)return pi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function vi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function bi(){fi(mi),fi(hi)}function wi(e,t,n){if(hi.current!==pi)throw Error(s(168));di(hi,t),di(mi,n)}function xi(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 o({},n,r)}function _i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pi,gi=hi.current,di(hi,e),di(mi,mi.current),!0}function Ei(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=xi(e,t,gi),r.__reactInternalMemoizedMergedChildContext=e,fi(mi),fi(hi),di(hi,e)):fi(mi),di(mi,n)}var ki=null,Si=null,Ai=a.unstable_runWithPriority,Ci=a.unstable_scheduleCallback,Oi=a.unstable_cancelCallback,Ti=a.unstable_shouldYield,Ni=a.unstable_requestPaint,Ri=a.unstable_now,ji=a.unstable_getCurrentPriorityLevel,Pi=a.unstable_ImmediatePriority,Ii=a.unstable_UserBlockingPriority,Li=a.unstable_NormalPriority,Mi=a.unstable_LowPriority,Bi=a.unstable_IdlePriority,Di={},Ui=void 0!==Ni?Ni:function(){},Fi=null,zi=null,Vi=!1,Hi=Ri(),Wi=1e4>Hi?Ri:function(){return Ri()-Hi};function qi(){switch(ji()){case Pi:return 99;case Ii:return 98;case Li:return 97;case Mi:return 96;case Bi:return 95;default:throw Error(s(332))}}function Gi(e){switch(e){case 99:return Pi;case 98:return Ii;case 97:return Li;case 96:return Mi;case 95:return Bi;default:throw Error(s(332))}}function Zi(e,t){return e=Gi(e),Ai(e,t)}function Yi(e,t,n){return e=Gi(e),Ci(e,t,n)}function $i(){if(null!==zi){var e=zi;zi=null,Oi(e)}Ki()}function Ki(){if(!Vi&&null!==Fi){Vi=!0;var e=0;try{var t=Fi;Zi(99,function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}}),Fi=null}catch(t){throw null!==Fi&&(Fi=Fi.slice(e+1)),Ci(Pi,$i),t}finally{Vi=!1}}}var Xi=_.ReactCurrentBatchConfig;function Qi(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ji=ci(null),eo=null,to=null,no=null;function ro(){no=to=eo=null}function io(e){var t=Ji.current;fi(Ji),e.type._context._currentValue=t}function oo(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 ao(e,t){eo=e,no=to=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Da=!0),e.firstContext=null)}function so(e,t){if(no!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(no=e,t=1073741823),t={context:e,observedBits:t,next:null},null===to){if(null===eo)throw Error(s(308));to=t,eo.dependencies={lanes:0,firstContext:t,responders:null}}else to=to.next=t;return e._currentValue}var lo=!1;function uo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function co(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 fo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function po(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 ho(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function mo(e,t,n,r){var i=e.updateQueue;lo=!1;var a=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?a=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!==a){for(d=i.baseState,s=0,f=c=u=null;;){l=a.lane;var p=a.eventTime;if((r&l)===l){null!==f&&(f=f.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;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=o({},d,l);break e;case 2:lo=!0}}null!==a.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[a]:l.push(a))}else p={eventTime:p,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=p,u=d):f=f.next=p,s|=l;if(null===(a=a.next)){if(null===(l=i.shared.pending))break;a=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,zs|=s,e.lanes=s,e.memoizedState=d}}function go(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 yo=(new i.Component).refs;function vo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var bo={isMounted:function(e){return!!(e=e._reactInternals)&&Xe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=dl(),i=pl(e),o=fo(r,i);o.payload=t,null!=n&&(o.callback=n),po(e,o),hl(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=dl(),i=pl(e),o=fo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),po(e,o),hl(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=dl(),r=pl(e),i=fo(n,r);i.tag=2,null!=t&&(i.callback=t),po(e,i),hl(e,r,n)}};function wo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&pr(n,r)&&pr(i,o))}function xo(e,t,n){var r=!1,i=pi,o=t.contextType;return"object"==typeof o&&null!==o?o=so(o):(i=vi(t)?gi:hi.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?yi(e,i):pi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=bo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function _o(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&&bo.enqueueReplaceState(t,t.state,null)}function Eo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=yo,uo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=so(o):(o=vi(t)?gi:hi.current,i.context=yi(e,o)),mo(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(vo(e,t,o,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&&bo.enqueueReplaceState(i,i.state,null),mo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var ko=Array.isArray;function So(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===yo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function Ao(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 Co(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=Gl(e,t)).index=0,e.sibling=null,e}function o(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 a(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Kl(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=So(e,t,n),r.return=e,r):((r=Zl(n.type,n.key,n.props,null,e.mode,r)).ref=So(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=Xl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Yl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Kl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Zl(t.type,t.key,t.props,null,e.mode,n)).ref=So(e,null,t),n.return=e,n;case k:return(t=Xl(t,e.mode,n)).return=e,t}if(ko(t)||H(t))return(t=Yl(t,e.mode,n,null)).return=e,t;Ao(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(ko(n)||H(n))return null!==i?null:f(e,t,n,r,null);Ao(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(ko(r)||H(r))return f(t,e=e.get(n)||null,r,i,null);Ao(t,r)}return null}function m(i,a,s,l){for(var u=null,c=null,f=a,m=a=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),a=o(y,a,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))&&(a=o(f,a,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),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&f.forEach(function(e){return t(i,e)}),u}function g(i,a,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=a,g=a=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),a=o(b,a,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))&&(a=o(v,a,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),a=o(v,a,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,o,l){var u="object"==typeof o&&null!==o&&o.type===S&&null===o.key;u&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case E:e:{for(c=o.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(o.type===S){n(e,u.sibling),(r=i(u,o.props.children)).return=e,e=r;break e}}else if(u.elementType===o.type){n(e,u.sibling),(r=i(u,o.props)).ref=So(e,u,o),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}o.type===S?((r=Yl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=Zl(o.type,o.key,o.props,null,e.mode,l)).ref=So(e,r,o),l.return=e,e=l)}return a(e);case k:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Xl(o,e.mode,l)).return=e,e=r}return a(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Kl(o,e.mode,l)).return=e,e=r),a(e);if(ko(o))return m(e,r,o,l);if(H(o))return g(e,r,o,l);if(c&&Ao(e,o),void 0===o&&!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 Oo=Co(!0),To=Co(!1),No={},Ro=ci(No),jo=ci(No),Po=ci(No);function Io(e){if(e===No)throw Error(s(174));return e}function Lo(e,t){switch(di(Po,t),di(jo,e),di(Ro,No),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)}fi(Ro),di(Ro,t)}function Mo(){fi(Ro),fi(jo),fi(Po)}function Bo(e){Io(Po.current);var t=Io(Ro.current),n=me(t,e.type);t!==n&&(di(jo,e),di(Ro,n))}function Do(e){jo.current===e&&(fi(Ro),fi(jo))}var Uo=ci(0);function Fo(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(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 zo=null,Vo=null,Ho=!1;function Wo(e,t){var n=Wl(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 qo(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 Go(e){if(Ho){var t=Vo;if(t){var n=t;if(!qo(e,t)){if(!(t=$r(n.nextSibling))||!qo(e,t))return e.flags=-1025&e.flags|2,Ho=!1,void(zo=e);Wo(zo,n)}zo=e,Vo=$r(t.firstChild)}else e.flags=-1025&e.flags|2,Ho=!1,zo=e}}function Zo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;zo=e}function Yo(e){if(e!==zo)return!1;if(!Ho)return Zo(e),Ho=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!qr(t,e.memoizedProps))for(t=Vo;t;)Wo(e,t),t=$r(t.nextSibling);if(Zo(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){Vo=$r(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Vo=null}}else Vo=zo?$r(e.stateNode.nextSibling):null;return!0}function $o(){Vo=zo=null,Ho=!1}var Ko=[];function Xo(){for(var e=0;e<Ko.length;e++)Ko[e]._workInProgressVersionPrimary=null;Ko.length=0}var Qo=_.ReactCurrentDispatcher,Jo=_.ReactCurrentBatchConfig,ea=0,ta=null,na=null,ra=null,ia=!1,oa=!1;function aa(){throw Error(s(321))}function sa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!fr(e[n],t[n]))return!1;return!0}function la(e,t,n,r,i,o){if(ea=o,ta=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Qo.current=null===e||null===e.memoizedState?Ia:La,e=n(r,i),oa){o=0;do{if(oa=!1,!(25>o))throw Error(s(301));o+=1,ra=na=null,t.updateQueue=null,Qo.current=Ma,e=n(r,i)}while(oa)}if(Qo.current=Pa,t=null!==na&&null!==na.next,ea=0,ra=na=ta=null,ia=!1,t)throw Error(s(300));return e}function ua(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ra?ta.memoizedState=ra=e:ra=ra.next=e,ra}function ca(){if(null===na){var e=ta.alternate;e=null!==e?e.memoizedState:null}else e=na.next;var t=null===ra?ta.memoizedState:ra.next;if(null!==t)ra=t,na=e;else{if(null===e)throw Error(s(310));e={memoizedState:(na=e).memoizedState,baseState:na.baseState,baseQueue:na.baseQueue,queue:na.queue,next:null},null===ra?ta.memoizedState=ra=e:ra=ra.next=e}return ra}function fa(e,t){return"function"==typeof t?t(e):t}function da(e){var t=ca(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=na,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=a=o=null,u=i;do{var c=u.lane;if((ea&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?(a=l=f,o=r):l=l.next=f,ta.lanes|=c,zs|=c}u=u.next}while(null!==u&&u!==i);null===l?o=r:l.next=a,fr(r,t.memoizedState)||(Da=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function pa(e){var t=ca(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);fr(o,t.memoizedState)||(Da=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ha(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=(ea&e)===e)&&(t._workInProgressVersionPrimary=r,Ko.push(t))),e)return n(t._source);throw Ko.push(t),Error(s(350))}function ma(e,t,n,r){var i=Ps;if(null===i)throw Error(s(349));var o=t._getVersion,a=o(t._source),l=Qo.current,u=l.useState(function(){return ha(i,t,n)}),c=u[1],f=u[0];u=ra;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var g=ta;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect(function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!fr(a,e)){e=n(t._source),fr(f,e)||(c(e),e=pl(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=pl(g);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n(function(){throw e})}})},[t,r]),fr(h,n)&&fr(m,t)&&fr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:fa,lastRenderedState:f}).dispatch=c=ja.bind(null,ta,e),u.queue=e,u.baseQueue=null,f=ha(i,t,n),u.memoizedState=u.baseState=f),f}function ga(e,t,n){return ma(ca(),e,t,n)}function ya(e){var t=ua();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:fa,lastRenderedState:e}).dispatch=ja.bind(null,ta,e),[t.memoizedState,e]}function va(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ta.updateQueue)?(t={lastEffect:null},ta.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 ba(e){return e={current:e},ua().memoizedState=e}function wa(){return ca().memoizedState}function xa(e,t,n,r){var i=ua();ta.flags|=e,i.memoizedState=va(1|t,n,void 0,void 0===r?null:r)}function _a(e,t,n,r){var i=ca();r=void 0===r?null:r;var o=void 0;if(null!==na){var a=na.memoizedState;if(o=a.destroy,null!==r&&sa(r,a.deps))return void va(t,n,o,r)}ta.flags|=e,i.memoizedState=va(1|t,n,o,r)}function Ea(e,t){return xa(516,4,e,t)}function ka(e,t){return _a(516,4,e,t)}function Sa(e,t){return _a(4,2,e,t)}function Aa(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 Ca(e,t,n){return n=null!=n?n.concat([e]):null,_a(4,2,Aa.bind(null,t,e),n)}function Oa(){}function Ta(e,t){var n=ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&sa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Na(e,t){var n=ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&sa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ra(e,t){var n=qi();Zi(98>n?98:n,function(){e(!0)}),Zi(97<n?97:n,function(){var n=Jo.transition;Jo.transition=1;try{e(!1),t()}finally{Jo.transition=n}})}function ja(e,t,n){var r=dl(),i=pl(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===ta||null!==a&&a===ta)oa=ia=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(o.eagerReducer=a,o.eagerState=l,fr(l,s))return}catch(e){}hl(e,i,r)}}var Pa={readContext:so,useCallback:aa,useContext:aa,useEffect:aa,useImperativeHandle:aa,useLayoutEffect:aa,useMemo:aa,useReducer:aa,useRef:aa,useState:aa,useDebugValue:aa,useDeferredValue:aa,useTransition:aa,useMutableSource:aa,useOpaqueIdentifier:aa,unstable_isNewReconciler:!1},Ia={readContext:so,useCallback:function(e,t){return ua().memoizedState=[e,void 0===t?null:t],e},useContext:so,useEffect:Ea,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,xa(4,2,Aa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xa(4,2,e,t)},useMemo:function(e,t){var n=ua();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ua();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=ja.bind(null,ta,e),[r.memoizedState,e]},useRef:ba,useState:ya,useDebugValue:Oa,useDeferredValue:function(e){var t=ya(e),n=t[0],r=t[1];return Ea(function(){var t=Jo.transition;Jo.transition=1;try{r(e)}finally{Jo.transition=t}},[e]),n},useTransition:function(){var e=ya(!1),t=e[0];return ba(e=Ra.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ua();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ma(r,e,t,n)},useOpaqueIdentifier:function(){if(Ho){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}(function(){throw e||(e=!0,n("r:"+(Xr++).toString(36))),Error(s(355))}),n=ya(t)[1];return!(2&ta.mode)&&(ta.flags|=516,va(5,function(){n("r:"+(Xr++).toString(36))},void 0,null)),t}return ya(t="r:"+(Xr++).toString(36)),t},unstable_isNewReconciler:!1},La={readContext:so,useCallback:Ta,useContext:so,useEffect:ka,useImperativeHandle:Ca,useLayoutEffect:Sa,useMemo:Na,useReducer:da,useRef:wa,useState:function(){return da(fa)},useDebugValue:Oa,useDeferredValue:function(e){var t=da(fa),n=t[0],r=t[1];return ka(function(){var t=Jo.transition;Jo.transition=1;try{r(e)}finally{Jo.transition=t}},[e]),n},useTransition:function(){var e=da(fa)[0];return[wa().current,e]},useMutableSource:ga,useOpaqueIdentifier:function(){return da(fa)[0]},unstable_isNewReconciler:!1},Ma={readContext:so,useCallback:Ta,useContext:so,useEffect:ka,useImperativeHandle:Ca,useLayoutEffect:Sa,useMemo:Na,useReducer:pa,useRef:wa,useState:function(){return pa(fa)},useDebugValue:Oa,useDeferredValue:function(e){var t=pa(fa),n=t[0],r=t[1];return ka(function(){var t=Jo.transition;Jo.transition=1;try{r(e)}finally{Jo.transition=t}},[e]),n},useTransition:function(){var e=pa(fa)[0];return[wa().current,e]},useMutableSource:ga,useOpaqueIdentifier:function(){return pa(fa)[0]},unstable_isNewReconciler:!1},Ba=_.ReactCurrentOwner,Da=!1;function Ua(e,t,n,r){t.child=null===e?To(t,null,n,r):Oo(t,e.child,n,r)}function Fa(e,t,n,r,i){n=n.render;var o=t.ref;return ao(t,i),r=la(e,t,n,r,o,i),null===e||Da?(t.flags|=1,Ua(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,os(e,t,i))}function za(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||ql(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Zl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Va(e,t,a,r,i,o))}return a=e.child,0===(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:pr)(i,r)&&e.ref===t.ref)?os(e,t,o):(t.flags|=1,(e=Gl(a,r)).ref=t.ref,e.return=t,t.child=e)}function Va(e,t,n,r,i,o){if(null!==e&&pr(e.memoizedProps,r)&&e.ref===t.ref){if(Da=!1,0===(o&i))return t.lanes=e.lanes,os(e,t,o);16384&e.flags&&(Da=!0)}return qa(e,t,n,r,o)}function Ha(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(4&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},_l(t,e),null;t.memoizedState={baseLanes:0},_l(t,null!==o?o.baseLanes:n)}else t.memoizedState={baseLanes:0},_l(t,n);else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,_l(t,r);return Ua(e,t,i,n),t.child}function Wa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function qa(e,t,n,r,i){var o=vi(n)?gi:hi.current;return o=yi(t,o),ao(t,i),n=la(e,t,n,r,o,i),null===e||Da?(t.flags|=1,Ua(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,os(e,t,i))}function Ga(e,t,n,r,i){if(vi(n)){var o=!0;_i(t)}else o=!1;if(ao(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),xo(t,n,r),Eo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?so(u):yi(t,u=vi(n)?gi:hi.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&_o(t,a,r,u),lo=!1;var d=t.memoizedState;a.state=d,mo(t,r,a,i),l=t.memoizedState,s!==r||d!==l||mi.current||lo?("function"==typeof c&&(vo(t,n,c,r),l=t.memoizedState),(s=lo||wo(t,n,s,r,d,l,u))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,co(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Qi(t.type,s),a.props=u,f=t.pendingProps,d=a.context,l="object"==typeof(l=n.contextType)&&null!==l?so(l):yi(t,l=vi(n)?gi:hi.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==f||d!==l)&&_o(t,a,r,l),lo=!1,d=t.memoizedState,a.state=d,mo(t,r,a,i);var h=t.memoizedState;s!==f||d!==h||mi.current||lo?("function"==typeof p&&(vo(t,n,p,r),h=t.memoizedState),(u=lo||wo(t,n,u,r,d,h,l))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Za(e,t,n,r,o,i)}function Za(e,t,n,r,i,o){Wa(e,t);var a=!!(64&t.flags);if(!r&&!a)return i&&Ei(t,n,!1),os(e,t,o);r=t.stateNode,Ba.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Oo(t,e.child,null,o),t.child=Oo(t,null,s,o)):Ua(e,t,s,o),t.memoizedState=r.state,i&&Ei(t,n,!0),t.child}function Ya(e){var t=e.stateNode;t.pendingContext?wi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&wi(0,t.context,!1),Lo(e,t.containerInfo)}var $a,Ka,Xa,Qa,Ja={dehydrated:null,retryLane:0};function es(e,t,n){var r,i=t.pendingProps,o=Uo.current,a=!1;return(r=!!(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&!!(2&o)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),di(Uo,1&o),null===e?(void 0!==i.fallback&&Go(t),e=i.children,o=i.fallback,a?(e=ts(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ja,e):"number"==typeof i.unstable_expectedLoadTime?(e=ts(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ja,t.lanes=33554432,e):((n=$l({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=function(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 2&o||t.child===a?n=Gl(a,s):((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null),null!==e?r=Gl(e,r):(r=Yl(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Ja,i):(n=function(e,t,n,r){var i=e.child;return e=i.sibling,n=Gl(i,{mode:"visible",children:n}),!(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 ts(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},2&i||null===o?o=$l(t,i,0,null):(o.childLanes=0,o.pendingProps=t),n=Yl(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function ns(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),oo(e.return,t)}function rs(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function is(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ua(e,t,r.children,n),2&(r=Uo.current))r=1&r|2,t.flags|=64;else{if(null!==e&&64&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ns(e,n);else if(19===e.tag)ns(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(di(Uo,r),2&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Fo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),rs(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Fo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}rs(t,!0,n,null,o,t.lastEffect);break;case"together":rs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function os(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),zs|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Gl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Gl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function as(e,t){if(!Ho)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 ss(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 vi(t.type)&&bi(),null;case 3:return Mo(),fi(mi),fi(hi),Xo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Yo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Ka(t),null;case 5:Do(t);var i=Io(Po.current);if(n=t.type,null!==e&&null!=t.stateNode)Xa(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=Io(Ro.current),Yo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Jr]=t,r[ei]=a,n){case"dialog":Rr("cancel",r),Rr("close",r);break;case"iframe":case"object":case"embed":Rr("load",r);break;case"video":case"audio":for(e=0;e<Cr.length;e++)Rr(Cr[e],r);break;case"source":Rr("error",r);break;case"img":case"image":case"link":Rr("error",r),Rr("load",r);break;case"details":Rr("toggle",r);break;case"input":te(r,a),Rr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Rr("invalid",r);break;case"textarea":ue(r,a),Rr("invalid",r)}for(var l in Se(n,a),e=null,a)a.hasOwnProperty(l)&&(i=a[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&&Rr("scroll",r));switch(n){case"input":X(r),ie(r,a,!0);break;case"textarea":X(r),fe(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=zr)}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[Jr]=t,e[ei]=r,$a(e,t,!1,!1),t.stateNode=e,l=Ae(n,r),n){case"dialog":Rr("cancel",e),Rr("close",e),i=r;break;case"iframe":case"object":case"embed":Rr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Cr.length;i++)Rr(Cr[i],e);i=r;break;case"source":Rr("error",e),i=r;break;case"img":case"image":case"link":Rr("error",e),Rr("load",e),i=r;break;case"details":Rr("toggle",e),i=r;break;case"input":te(e,r),i=ee(e,r),Rr("invalid",e);break;case"option":i=ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Rr("invalid",e);break;case"textarea":ue(e,r),i=le(e,r),Rr("invalid",e);break;default:i=r}Se(n,i);var c=i;for(a in c)if(c.hasOwnProperty(a)){var f=c[a];"style"===a?Ee(e,f):"dangerouslySetInnerHTML"===a?null!=(f=f?f.__html:void 0)&&ve(e,f):"children"===a?"string"==typeof f?("textarea"!==n||""!==f)&&be(e,f):"number"==typeof f&&be(e,""+f):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(u.hasOwnProperty(a)?null!=f&&"onScroll"===a&&Rr("scroll",e):null!=f&&x(e,a,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!=(a=r.value)?se(e,!!r.multiple,a,!1):null!=r.defaultValue&&se(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=zr)}Wr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Qa(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));n=Io(Po.current),Io(Ro.current),Yo(t)?(r=t.stateNode,n=t.memoizedProps,r[Jr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Jr]=t,t.stateNode=r)}return null;case 13:return fi(Uo),r=t.memoizedState,64&t.flags?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Yo(t):n=null!==e.memoizedState,r&&!n&&!!(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||1&Uo.current?0===Ds&&(Ds=3):(0!==Ds&&3!==Ds||(Ds=4),null===Ps||!(134217727&zs)&&!(134217727&Vs)||vl(Ps,Ls))),(r||n)&&(t.flags|=4),null);case 4:return Mo(),Ka(t),null===e&&Pr(t.stateNode.containerInfo),null;case 10:return io(t),null;case 19:if(fi(Uo),null===(r=t.memoizedState))return null;if(a=!!(64&t.flags),null===(l=r.rendering))if(a)as(r,!1);else{if(0!==Ds||null!==e&&64&e.flags)for(e=t.child;null!==e;){if(null!==(l=Fo(e))){for(t.flags|=64,as(r,!1),null!==(a=l.updateQueue)&&(t.updateQueue=a,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return di(Uo,1&Uo.current|2),t.child}e=e.sibling}null!==r.tail&&Wi()>Gs&&(t.flags|=64,a=!0,as(r,!1),t.lanes=33554432)}else{if(!a)if(null!==(e=Fo(l))){if(t.flags|=64,a=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),as(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!Ho)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Wi()-r.renderingStartTime>Gs&&1073741824!==n&&(t.flags|=64,a=!0,as(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=Wi(),n.sibling=null,t=Uo.current,di(Uo,a?1&t|2:1&t),n):null;case 23:case 24:return El(),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 ls(e){switch(e.tag){case 1:vi(e.type)&&bi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Mo(),fi(mi),fi(hi),Xo(),64&(t=e.flags))throw Error(s(285));return e.flags=-4097&t|64,e;case 5:return Do(e),null;case 13:return fi(Uo),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return fi(Uo),null;case 4:return Mo(),null;case 10:return io(e),null;case 23:case 24:return El(),null;default:return null}}function us(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 cs(e,t){try{r.error(t.value)}catch(e){setTimeout(function(){throw e})}}$a=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}},Ka=function(){},Xa=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Io(Ro.current);var a,s=null;switch(n){case"input":i=ee(e,i),r=ee(e,r),s=[];break;case"option":i=ae(e,i),r=ae(e,r),s=[];break;case"select":i=o({},i,{value:void 0}),r=o({},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=zr)}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(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}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(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}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&&Rr("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)}},Qa=function(e,t,n,r){n!==r&&(t.flags|=4)};var fs="function"==typeof WeakMap?WeakMap:Map;function ds(e,t,n){(n=fo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ks||(Ks=!0,Xs=r),cs(0,t)},n}function ps(e,t,n){(n=fo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return cs(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Qs?Qs=new Set([this]):Qs.add(this),cs(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var hs="function"==typeof WeakSet?WeakSet:Set;function ms(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Fl(e,t)}else t.current=null}function gs(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:Qi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Yr(t.stateNode.containerInfo))}throw Error(s(163))}function ys(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&~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,!!(4&(i=i.tag))&&!!(1&i)&&(Bl(n,e),Ml(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:Qi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&go(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}go(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Wr(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 vs(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 bs(e,t){if(Si&&"function"==typeof Si.onCommitFiberUnmount)try{Si.onCommitFiberUnmount(ki,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(4&r)Bl(t,n);else{r=t;try{i()}catch(e){Fl(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ms(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Fl(t,e)}break;case 5:ms(t);break;case 4:Ss(e,t)}}function ws(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 xs(e){return 5===e.tag||3===e.tag||4===e.tag}function _s(e){e:{for(var t=e.return;null!==t;){if(xs(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||xs(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?Es(e,n,t):ks(e,n,t)}function Es(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=zr));else if(4!==r&&null!==(e=e.child))for(Es(e,t,n),e=e.sibling;null!==e;)Es(e,t,n),e=e.sibling}function ks(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(ks(e,t,n),e=e.sibling;null!==e;)ks(e,t,n),e=e.sibling}function Ss(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(s(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var a=e,l=i,u=l;;)if(bs(a,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?(a=n,l=i.stateNode,8===a.nodeType?a.parentNode.removeChild(l):a.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(bs(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&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function As(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&~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 o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[ei]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ne(n,r),Ae(e,i),t=Ae(e,r),i=0;i<o.length;i+=2){var a=o[i],l=o[i+1];"style"===a?Ee(n,l):"dangerouslySetInnerHTML"===a?ve(n,l):"children"===a?be(n,l):x(n,a,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!=(o=r.value)?se(n,!!r.multiple,o,!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&&(qs=Wi(),vs(t.child,!0)),void Cs(t);case 19:return void Cs(t);case 23:case 24:return void vs(t,null!==t.memoizedState)}throw Error(s(163))}function Cs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new hs),t.forEach(function(t){var r=Vl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Os(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Ts=Math.ceil,Ns=_.ReactCurrentDispatcher,Rs=_.ReactCurrentOwner,js=0,Ps=null,Is=null,Ls=0,Ms=0,Bs=ci(0),Ds=0,Us=null,Fs=0,zs=0,Vs=0,Hs=0,Ws=null,qs=0,Gs=1/0;function Zs(){Gs=Wi()+500}var Ys,$s=null,Ks=!1,Xs=null,Qs=null,Js=!1,el=null,tl=90,nl=[],rl=[],il=null,ol=0,al=null,sl=-1,ll=0,ul=0,cl=null,fl=!1;function dl(){return 48&js?Wi():-1!==sl?sl:sl=Wi()}function pl(e){if(!(2&(e=e.mode)))return 1;if(!(4&e))return 99===qi()?1:2;if(0===ll&&(ll=Fs),0!==Xi.transition){0!==ul&&(ul=null!==Ws?Ws.pendingLanes:0),e=ll;var t=4186112&~ul;return 0===(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=qi(),e=zt(4&js&&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),ll)}function hl(e,t,n){if(50<ol)throw ol=0,al=null,Error(s(185));if(null===(e=ml(e,t)))return null;Wt(e,t,n),e===Ps&&(Vs|=t,4===Ds&&vl(e,Ls));var r=qi();1===t?8&js&&!(48&js)?bl(e):(gl(e,n),0===js&&(Zs(),$i())):(!(4&js)||98!==r&&99!==r||(null===il?il=new Set([e]):il.add(e)),gl(e,n)),Ws=e}function ml(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 gl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var l=31-qt(a),u=1<<l,c=o[l];if(-1===c){if(0===(u&r)||0!==(u&i)){c=t,Dt(u);var f=Bt;o[l]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);a&=~u}if(r=Ut(e,e===Ps?Ls:0),t=Bt,0===r)null!==n&&(n!==Di&&Oi(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Di&&Oi(n)}15===t?(n=bl.bind(null,e),null===Fi?(Fi=[n],zi=Ci(Pi,Ki)):Fi.push(n),n=Di):14===t?n=Yi(99,bl.bind(null,e)):(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),n=Yi(n,yl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function yl(e){if(sl=-1,ul=ll=0,48&js)throw Error(s(327));var t=e.callbackNode;if(Ll()&&e.callbackNode!==t)return null;var n=Ut(e,e===Ps?Ls:0);if(0===n)return null;var r=n,i=js;js|=16;var o=Al();for(Ps===e&&Ls===r||(Zs(),kl(e,r));;)try{Tl();break}catch(t){Sl(e,t)}if(ro(),Ns.current=o,js=i,null!==Is?r=0:(Ps=null,Ls=0,r=Ds),0!==(Fs&Vs))kl(e,0);else if(0!==r){if(2===r&&(js|=64,e.hydrate&&(e.hydrate=!1,Yr(e.containerInfo)),0!==(n=Ft(e))&&(r=Cl(e,n))),1===r)throw t=Us,kl(e,0),vl(e,n),gl(e,Wi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(s(345));case 2:case 5:jl(e);break;case 3:if(vl(e,n),(62914560&n)===n&&10<(r=qs+500-Wi())){if(0!==Ut(e,0))break;if(((i=e.suspendedLanes)&n)!==n){dl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Gr(jl.bind(null,e),r);break}jl(e);break;case 4:if(vl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var a=31-qt(n);o=1<<a,(a=r[a])>i&&(i=a),n&=~o}if(n=i,10<(n=(120>(n=Wi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ts(n/1960))-n)){e.timeoutHandle=Gr(jl.bind(null,e),n);break}jl(e);break;default:throw Error(s(329))}}return gl(e,Wi()),e.callbackNode===t?yl.bind(null,e):null}function vl(e,t){for(t&=~Hs,t&=~Vs,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 bl(e){if(48&js)throw Error(s(327));if(Ll(),e===Ps&&0!==(e.expiredLanes&Ls)){var t=Ls,n=Cl(e,t);0!==(Fs&Vs)&&(n=Cl(e,t=Ut(e,t)))}else n=Cl(e,t=Ut(e,0));if(0!==e.tag&&2===n&&(js|=64,e.hydrate&&(e.hydrate=!1,Yr(e.containerInfo)),0!==(t=Ft(e))&&(n=Cl(e,t))),1===n)throw n=Us,kl(e,0),vl(e,t),gl(e,Wi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,jl(e),gl(e,Wi()),null}function wl(e,t){var n=js;js|=1;try{return e(t)}finally{0===(js=n)&&(Zs(),$i())}}function xl(e,t){var n=js;js&=-2,js|=8;try{return e(t)}finally{0===(js=n)&&(Zs(),$i())}}function _l(e,t){di(Bs,Ms),Ms|=t,Fs|=t}function El(){Ms=Bs.current,fi(Bs)}function kl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Zr(n)),null!==Is)for(n=Is.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&bi();break;case 3:Mo(),fi(mi),fi(hi),Xo();break;case 5:Do(r);break;case 4:Mo();break;case 13:case 19:fi(Uo);break;case 10:io(r);break;case 23:case 24:El()}n=n.return}Ps=e,Is=Gl(e.current,null),Ls=Ms=Fs=t,Ds=0,Us=null,Hs=Vs=zs=0}function Sl(e,t){for(;;){var n=Is;try{if(ro(),Qo.current=Pa,ia){for(var r=ta.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ia=!1}if(ea=0,ra=na=ta=null,oa=!1,Rs.current=null,null===n||null===n.return){Ds=1,Us=t,Is=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Ls,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l;if(!(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=!!(1&Uo.current),d=a;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(!(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=fo(-1,1);v.tag=2,po(s,v)}s.lanes|=1;break e}l=void 0,s=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new fs,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=zl.bind(null,o,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!==Ds&&(Ds=2),l=us(l,s),d=a;do{switch(d.tag){case 3:o=l,d.flags|=4096,t&=-t,d.lanes|=t,ho(d,ds(0,o,t));break e;case 1:o=l;var x=d.type,_=d.stateNode;if(!(64&d.flags||"function"!=typeof x.getDerivedStateFromError&&(null===_||"function"!=typeof _.componentDidCatch||null!==Qs&&Qs.has(_)))){d.flags|=4096,t&=-t,d.lanes|=t,ho(d,ps(d,o,t));break e}}d=d.return}while(null!==d)}Rl(n)}catch(e){t=e,Is===n&&null!==n&&(Is=n=n.return);continue}break}}function Al(){var e=Ns.current;return Ns.current=Pa,null===e?Pa:e}function Cl(e,t){var n=js;js|=16;var r=Al();for(Ps===e&&Ls===t||kl(e,t);;)try{Ol();break}catch(t){Sl(e,t)}if(ro(),js=n,Ns.current=r,null!==Is)throw Error(s(261));return Ps=null,Ls=0,Ds}function Ol(){for(;null!==Is;)Nl(Is)}function Tl(){for(;null!==Is&&!Ti();)Nl(Is)}function Nl(e){var t=Ys(e.alternate,e,Ms);e.memoizedProps=e.pendingProps,null===t?Rl(e):Is=t,Rs.current=null}function Rl(e){var t=e;do{var n=t.alternate;if(e=t.return,2048&t.flags){if(null!==(n=ls(t)))return n.flags&=2047,void(Is=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(null!==(n=ss(n,t,Ms)))return void(Is=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||1073741824&Ms||!(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&&!(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))}if(null!==(t=t.sibling))return void(Is=t);Is=t=e}while(null!==t);0===Ds&&(Ds=5)}function jl(e){var t=qi();return Zi(99,Pl.bind(null,e,t)),null}function Pl(e,t){do{Ll()}while(null!==el);if(48&js)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,o=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 a=e.eventTimes,l=e.expirationTimes;0<o;){var u=31-qt(o),c=1<<u;i[u]=0,a[u]=-1,l[u]=-1,o&=~c}if(null!==il&&!(24&r)&&il.has(e)&&il.delete(e),e===Ps&&(Is=Ps=null,Ls=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=js,js|=32,Rs.current=null,Vr=Kt,vr(a=yr())){if("selectionStart"in a)l={start:a.selectionStart,end:a.selectionEnd};else e:if(l=(l=a.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&0!==c.rangeCount){l=c.anchorNode,o=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=a,y=null;t:for(;;){for(var v;g!==l||0!==o&&3!==g.nodeType||(d=f+o),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===a)break t;if(y===l&&++h===o&&(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;Hr={focusedElem:a,selectionRange:l},Kt=!1,cl=null,fl=!1,$s=r;do{try{Il()}catch(e){if(null===$s)throw Error(s(330));Fl($s,e),$s=$s.nextEffect}}while(null!==$s);cl=null,$s=r;do{try{for(a=e;null!==$s;){var b=$s.flags;if(16&b&&be($s.stateNode,""),128&b){var w=$s.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&b){case 2:_s($s),$s.flags&=-3;break;case 6:_s($s),$s.flags&=-3,As($s.alternate,$s);break;case 1024:$s.flags&=-1025;break;case 1028:$s.flags&=-1025,As($s.alternate,$s);break;case 4:As($s.alternate,$s);break;case 8:Ss(a,l=$s);var _=l.alternate;ws(l),null!==_&&ws(_)}$s=$s.nextEffect}}catch(e){if(null===$s)throw Error(s(330));Fl($s,e),$s=$s.nextEffect}}while(null!==$s);if(x=Hr,w=yr(),b=x.focusedElem,a=x.selectionRange,w!==b&&b&&b.ownerDocument&&gr(b.ownerDocument.documentElement,b)){null!==a&&vr(b)&&(w=a.start,void 0===(x=a.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(a.start,l),a=void 0===a.end?_:Math.min(a.end,l),!x.extend&&_>a&&(l=a,a=_,_=l),l=mr(b,_),o=mr(b,a),l&&o&&(1!==x.rangeCount||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&((w=w.createRange()).setStart(l.node,l.offset),x.removeAllRanges(),_>a?(x.addRange(w),x.extend(o.node,o.offset)):(w.setEnd(o.node,o.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=!!Vr,Hr=Vr=null,e.current=n,$s=r;do{try{for(b=e;null!==$s;){var E=$s.flags;if(36&E&&ys(b,$s.alternate,$s),128&E){w=void 0;var k=$s.ref;if(null!==k){var S=$s.stateNode;$s.tag,w=S,"function"==typeof k?k(w):k.current=w}}$s=$s.nextEffect}}catch(e){if(null===$s)throw Error(s(330));Fl($s,e),$s=$s.nextEffect}}while(null!==$s);$s=null,Ui(),js=i}else e.current=n;if(Js)Js=!1,el=e,tl=t;else for($s=r;null!==$s;)t=$s.nextEffect,$s.nextEffect=null,8&$s.flags&&((E=$s).sibling=null,E.stateNode=null),$s=t;if(0===(r=e.pendingLanes)&&(Qs=null),1===r?e===al?ol++:(ol=0,al=e):ol=0,n=n.stateNode,Si&&"function"==typeof Si.onCommitFiberRoot)try{Si.onCommitFiberRoot(ki,n,void 0,!(64&~n.current.flags))}catch(e){}if(gl(e,Wi()),Ks)throw Ks=!1,e=Xs,Xs=null,e;return!!(8&js)||$i(),null}function Il(){for(;null!==$s;){var e=$s.alternate;fl||null===cl||(8&$s.flags?tt($s,cl)&&(fl=!0):13===$s.tag&&Os(e,$s)&&tt($s,cl)&&(fl=!0));var t=$s.flags;!!(256&t)&&gs(e,$s),!(512&t)||Js||(Js=!0,Yi(97,function(){return Ll(),null})),$s=$s.nextEffect}}function Ll(){if(90!==tl){var e=97<tl?97:tl;return tl=90,Zi(e,Dl)}return!1}function Ml(e,t){nl.push(t,e),Js||(Js=!0,Yi(97,function(){return Ll(),null}))}function Bl(e,t){rl.push(t,e),Js||(Js=!0,Yi(97,function(){return Ll(),null}))}function Dl(){if(null===el)return!1;var e=el;if(el=null,48&js)throw Error(s(331));var t=js;js|=32;var n=rl;rl=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],a=i.destroy;if(i.destroy=void 0,"function"==typeof a)try{a()}catch(e){if(null===o)throw Error(s(330));Fl(o,e)}}for(n=nl,nl=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var l=i.create;i.destroy=l()}catch(e){if(null===o)throw Error(s(330));Fl(o,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 js=t,$i(),!0}function Ul(e,t,n){po(e,t=ds(0,t=us(n,t),1)),t=dl(),null!==(e=ml(e,1))&&(Wt(e,1,t),gl(e,t))}function Fl(e,t){if(3===e.tag)Ul(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Ul(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Qs||!Qs.has(r))){var i=ps(n,e=us(t,e),1);if(po(n,i),i=dl(),null!==(n=ml(n,1)))Wt(n,1,i),gl(n,i);else if("function"==typeof r.componentDidCatch&&(null===Qs||!Qs.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function zl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=dl(),e.pingedLanes|=e.suspendedLanes&n,Ps===e&&(Ls&n)===n&&(4===Ds||3===Ds&&(62914560&Ls)===Ls&&500>Wi()-qs?kl(e,0):Hs|=n),gl(e,t)}function Vl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(2&(t=e.mode)?4&t?(0===ll&&(ll=Fs),0===(t=Vt(62914560&~ll))&&(t=4194304)):t=99===qi()?1:2:t=1),n=dl(),null!==(e=ml(e,t))&&(Wt(e,t,n),gl(e,n))}function Hl(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 Wl(e,t,n,r){return new Hl(e,t,n,r)}function ql(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Gl(e,t){var n=e.alternate;return null===n?((n=Wl(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 Zl(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)ql(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case S:return Yl(n.children,i,o,t);case B:a=8,i|=16;break;case A:a=8,i|=1;break;case C:return(e=Wl(12,n,t,8|i)).elementType=C,e.type=C,e.lanes=o,e;case R:return(e=Wl(13,n,t,i)).type=R,e.elementType=R,e.lanes=o,e;case j:return(e=Wl(19,n,t,i)).elementType=j,e.lanes=o,e;case D:return $l(n,i,o,t);case U:return(e=Wl(24,n,t,i)).elementType=U,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:a=10;break e;case T:a=9;break e;case N:a=11;break e;case P:a=14;break e;case I:a=16,r=null;break e;case L:a=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=Wl(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Yl(e,t,n,r){return(e=Wl(7,e,r,t)).lanes=n,e}function $l(e,t,n,r){return(e=Wl(23,e,r,t)).elementType=D,e.lanes=n,e}function Kl(e,t,n){return(e=Wl(6,e,null,t)).lanes=n,e}function Xl(e,t,n){return(t=Wl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ql(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 Jl(e,t,n,r){var i=t.current,o=dl(),a=pl(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(vi(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(vi(u)){n=xi(n,u,l);break e}}n=l}else n=pi;return null===t.context?t.context=n:t.pendingContext=n,(t=fo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),po(i,t),hl(i,a,o),a}function eu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function tu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function nu(e,t){tu(e,t),(e=e.alternate)&&tu(e,t)}function ru(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Ql(e,t,null!=n&&!0===n.hydrate),t=Wl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,uo(t),e[ti]=n.current,Pr(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 iu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ou(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=eu(a);s.call(e)}}Jl(t,a,e,i)}else{if(o=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 ru(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var l=i;i=function(){var e=eu(a);l.call(e)}}xl(function(){Jl(t,a,e,i)})}return eu(a)}function au(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!iu(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)}Ys=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||mi.current)Da=!0;else{if(0===(n&r)){switch(Da=!1,t.tag){case 3:Ya(t),$o();break;case 5:Bo(t);break;case 1:vi(t.type)&&_i(t);break;case 4:Lo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;di(Ji,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?es(e,t,n):(di(Uo,1&Uo.current),null!==(t=os(e,t,n))?t.sibling:null);di(Uo,1&Uo.current);break;case 19:if(r=0!==(n&t.childLanes),64&e.flags){if(r)return is(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),di(Uo,Uo.current),r)break;return null;case 23:case 24:return t.lanes=0,Ha(e,t,n)}return os(e,t,n)}Da=!!(16384&e.flags)}else Da=!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=yi(t,hi.current),ao(t,n),i=la(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,vi(r)){var o=!0;_i(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,uo(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&vo(t,r,a,e),i.updater=bo,t.stateNode=i,i._reactInternals=t,Eo(t,r,e,n),t=Za(null,t,r,!0,o,n)}else t.tag=0,Ua(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=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return ql(e)?1:0;if(null!=e){if((e=e.$$typeof)===N)return 11;if(e===P)return 14}return 2}(i),e=Qi(i,e),o){case 0:t=qa(null,t,i,e,n);break e;case 1:t=Ga(null,t,i,e,n);break e;case 11:t=Fa(null,t,i,e,n);break e;case 14:t=za(null,t,i,Qi(i.type,e),r,n);break e}throw Error(s(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,qa(e,t,r,i=t.elementType===r?i:Qi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ga(e,t,r,i=t.elementType===r?i:Qi(r,i),n);case 3:if(Ya(t),r=t.updateQueue,null===e||null===r)throw Error(s(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,co(e,t),mo(t,r,null,n),(r=t.memoizedState.element)===i)$o(),t=os(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(Vo=$r(t.stateNode.containerInfo.firstChild),zo=t,o=Ho=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Ko.push(o);for(n=To(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Ua(e,t,r,n),$o();t=t.child}return t;case 5:return Bo(t),null===e&&Go(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,qr(r,i)?a=null:null!==o&&qr(r,o)&&(t.flags|=16),Wa(e,t),Ua(e,t,a,n),t.child;case 6:return null===e&&Go(t),null;case 13:return es(e,t,n);case 4:return Lo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Oo(t,null,r,n):Ua(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Fa(e,t,r,i=t.elementType===r?i:Qi(r,i),n);case 7:return Ua(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ua(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value;var l=t.type._context;if(di(Ji,l._currentValue),l._currentValue=o,null!==a)if(l=a.value,0==(o=fr(l,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(a.children===i.children&&!mi.current){t=os(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){a=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&o)){1===l.tag&&((c=fo(-1,n&-n)).tag=2,po(l,c)),l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),oo(l.return,n),u.lanes|=n;break}c=c.next}}else a=10===l.tag&&l.type===t.type?null:l.child;if(null!==a)a.return=l;else for(a=l;null!==a;){if(a===t){a=null;break}if(null!==(l=a.sibling)){l.return=a.return,a=l;break}a=a.return}l=a}Ua(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,ao(t,n),r=r(i=so(i,o.unstable_observedBits)),t.flags|=1,Ua(e,t,r,n),t.child;case 14:return o=Qi(i=t.type,t.pendingProps),za(e,t,i,o=Qi(i.type,o),r,n);case 15:return Va(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,vi(r)?(e=!0,_i(t)):e=!1,ao(t,n),xo(t,r,i),Eo(t,r,i,n),Za(null,t,r,!0,e,n);case 19:return is(e,t,n);case 23:case 24:return Ha(e,t,n)}throw Error(s(156,t.tag))},ru.prototype.render=function(e){Jl(e,this._internalRoot,null,null)},ru.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Jl(null,e,null,function(){t[ti]=null})},nt=function(e){13===e.tag&&(hl(e,4,dl()),nu(e,4))},rt=function(e){13===e.tag&&(hl(e,67108864,dl()),nu(e,67108864))},it=function(e){if(13===e.tag){var t=dl(),n=pl(e);hl(e,n,t),nu(e,n)}},ot=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=ai(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=wl,Le=function(e,t,n,r,i){var o=js;js|=4;try{return Zi(98,e.bind(null,t,n,r,i))}finally{0===(js=o)&&(Zs(),$i())}},Me=function(){!(49&js)&&(function(){if(null!==il){var e=il;il=null,e.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,gl(e,Wi())})}$i()}(),Ll())},Be=function(e,t){var n=js;js|=2;try{return e(t)}finally{0===(js=n)&&(Zs(),$i())}};var su={Events:[ii,oi,ai,je,Pe,Ll,{current:!1}]},lu={findFiberByHostInstance:ri,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},uu={bundleType:lu.bundleType,version:lu.version,rendererPackageName:lu.rendererPackageName,rendererConfig:lu.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:lu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var cu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cu.isDisabled&&cu.supportsFiber)try{ki=cu.inject(uu),Si=cu}catch(ye){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=su,t.createPortal=au,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=js;if(48&n)return e(t);js|=1;try{if(e)return Zi(99,e.bind(null,t))}finally{js=n,$i()}},t.hydrate=function(e,t,n){if(!iu(t))throw Error(s(200));return ou(null,e,t,!0,n)},t.render=function(e,t,n){if(!iu(t))throw Error(s(200));return ou(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!iu(e))throw Error(s(40));return!!e._reactRootContainer&&(xl(function(){ou(null,null,e,!1,function(){e._reactRootContainer=null,e[ti]=null})}),!0)},t.unstable_batchedUpdates=wl,t.unstable_createPortal=function(e,t){return au(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!iu(n))throw Error(s(200));if(null==e||void 0===e._reactInternals)throw Error(s(38));return ou(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 o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=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,o={},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)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:o,_owner:a.current}}t.jsx=u,t.jsxs=u},5636:(e,t,n)=>{"use strict";var r=n(8898),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=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"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=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,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,r)&&!_.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_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,a){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 o:l=!0}}if(l)return a=a(l=e),e=""===r?"."+A(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),C(a,t,n,"",function(e){return e})):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(S,"$&/")+"/")+e)),t.push(a)),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,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=C(s=s.value,t,n,c=r+A(s,u++),a);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 j={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=j,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var o=r({},e.props),a=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&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)x.call(t,c)&&!_.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];o.children=u}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_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:a,_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 o(e){return o="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},o(e)}var a,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);a=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 o=new h({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}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,o,a,s){var l,u=arguments.length;if(0===u?l="Failed":1===u?(o=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&&(a="!=")),o instanceof Error)throw o;var c={actual:t,expected:n,operator:void 0===a?"fail":a,stackStartFn:s||e};void 0!==o&&(c.message=o);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===a&&x(),a(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===a&&x(),a(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===a&&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===a&&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"!==o(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===a&&x(),l.forEach(function(i){"string"==typeof e[i]&&v(t[i])&&t[i].test(e[i])||function(e,t,n,r,i,o){if(!(n in e)||!s(e[n],t[n])){if(!r){var a=new O(e,i),l=new O(t,i,e),u=new h({actual:a,expected:l,operator:"deepStrictEqual",stackStartFn:o});throw u.actual=e,u.expected=t,u.operator=o.name,u}S({actual:e,expected:t,message:r,operator:o.name,stackStartFn:o})}}(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"===o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function j(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 P(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],n);if("object"===o(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"!==o(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 a="rejects"===e.name?"rejection":"exception";S({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(a).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):".",o="doesNotReject"===e.name?"rejection":"exception";S({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(o).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];P.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 j(t).then(function(t){return P.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 j(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"===o(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 a=i.split("\n");a.shift();for(var s=r.stack.split("\n"),l=0;l<a.length;l++){var u=s.indexOf(a[l]);if(-1!==u){s=s.slice(0,u);break}}r.stack="".concat(s.join("\n"),"\n").concat(a.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 o(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 a(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)},l(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},u.apply(null,arguments)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(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},d(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="",o="",a=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-a;if(c.length<p+1)N>1&&p>2&&(N>4?(o+="\n".concat(g,"...").concat(b),l=!0):N>3&&(o+="\n ".concat(f[p-2]),C++),o+="\n ".concat(f[p-1]),C++),a=p,i+="\n".concat(v,"-").concat(b," ").concat(f[p]),C++;else if(f.length<p+1)N>1&&p>2&&(N>4?(o+="\n".concat(g,"...").concat(b),l=!0):N>3&&(o+="\n ".concat(c[p-2]),C++),o+="\n ".concat(c[p-1]),C++),a=p,o+="\n".concat(y,"+").concat(b," ").concat(c[p]),C++;else{var R=f[p],j=c[p],P=j!==R&&(!m(j,",")||j.slice(0,-1)!==R);P&&m(R,",")&&R.slice(0,-1)===j&&(P=!1,j+=","),P?(N>1&&p>2&&(N>4?(o+="\n".concat(g,"...").concat(b),l=!0):N>3&&(o+="\n ".concat(c[p-2]),C++),o+="\n ".concat(c[p-1]),C++),a=p,o+="\n".concat(y,"+").concat(b," ").concat(j),i+="\n".concat(v,"-").concat(b," ").concat(R),C+=2):(o+=i,i="",1!==N&&0!==p||(o+="\n ".concat(j),C++))}if(C>20&&p<S-2)return"".concat(O).concat(T,"\n").concat(o,"\n").concat(g,"...").concat(b).concat(i,"\n")+"".concat(g,"...").concat(b)}return"".concat(O).concat(l?T:"","\n").concat(o).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,o=e.operator,l=e.stackStartFn,u=e.actual,c=e.expected,p=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)n=a(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"===o||"strictEqual"===o)n=a(this,f(t).call(this,E(u,c,o)));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var m=w[o],k=_(u).split("\n");if("notStrictEqual"===o&&"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?a(this,f(t).call(this,"".concat(m," ").concat(k[0]))):a(this,f(t).call(this,"".concat(m,"\n\n").concat(k.join("\n"),"\n")))}else{var S=_(u),A="",C=w[o];"notDeepEqual"===o||"notEqual"===o?(S="".concat(w[o],"\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"===o||"equal"===o?S="".concat(C,"\n\n").concat(S,"\n\nshould equal\n\n"):A=" ".concat(o," ").concat(A)),n=a(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=o,Error.captureStackTrace&&Error.captureStackTrace(s(n),l),n.stack,n.name="AssertionError",a(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}))}}],l&&o(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},r(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 o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var s,l,u={};function c(e,t,n){n||(n=Error);var r=function(n){function r(n,a,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,o(r).call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,a,s))),l.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&&a(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 o,a,l;if(void 0===s&&(s=n(6362)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(a="not ",t.substr(0,4)===a)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-9,n)===t}(e," argument"))l="The ".concat(e," ").concat(o," ").concat(f(t,"type"));else{var u=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+1>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";l='The "'.concat(e,'" ').concat(u," ").concat(o," ").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 ",o=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),o){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,o-1).join(", "),i+=", and ".concat(t[o-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,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}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},i(e)}var o=void 0!==/a/g.flags,a=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 j(e){return Object.keys(e).filter(R).concat(u(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function P(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++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 a,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=j(e),m=j(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,!(o?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===P(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=j(e),I=j(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,(a=e).byteLength!==s.byteLength||0!==P(new Uint8Array(a),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,o,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===o)o={val1:new Map,val2:new Map,position:0};else{var w=o.val1.get(e);if(void 0!==w){var x=o.val2.get(t);if(void 0!==x)return w===x}o.position++}o.val1.set(e,o.position),o.val2.set(t,o.position);var _=function(e,t,n,o,l,u){var c=0;if(2===u){if(!function(e,t,n,r){for(var o=null,s=a(e),l=0;l<s.length;l++){var u=s[l];if("object"===i(u)&&null!==u)null===o&&(o=new Set),o.add(u);else if(!t.has(u)){if(n)return!1;if(!U(e,t,u))return!1;null===o&&(o=new Set),o.add(u)}}if(null!==o){for(var c=a(t),f=0;f<c.length;f++){var d=c[f];if("object"===i(d)&&null!==d){if(!B(o,d,n,r))return!1}else if(!n&&!e.has(d)&&!B(o,d,n,r))return!1}return 0===o.size}return!0}(e,t,n,l))return!1}else if(3===u){if(!function(e,t,n,o){for(var a=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===a&&(a=new Set),a.add(f);else{var p=t.get(f);if(void 0===p&&!t.has(f)||!I(d,p,n,o)){if(n)return!1;if(!F(e,t,f,d,o))return!1;null===a&&(a=new Set),a.add(f)}}}if(null!==a){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(a,e,f,y,n,o))return!1}else if(!(n||e.has(f)&&I(e.get(f),y,!1,o)||z(a,e,f,y,!1,o)))return!1}return 0===a.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<o.length;c++){var h=o[c];if(!I(e[h],t[h],n,l))return!1}return!0}(e,t,n,c,o,l);return o.val1.delete(e),o.val2.delete(t),_}function B(e,t,n,r){for(var i=a(e),o=0;o<i.length;o++){var s=i[o];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 o=D(n);if(null!=o)return o;var a=t.get(o);return!(void 0===a&&!t.has(o)||!I(r,a,!1,i))&&!e.has(o)&&I(r,a,!1,i)}function z(e,t,n,r,i,o){for(var s=a(e),l=0;l<s.length;l++){var u=s[l];if(I(n,u,i,o)&&I(r,t.get(u),i,o))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,o=s(e),a=o[0],l=o[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),c=0,f=l>0?a-4:a;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,o=[],a=16383,s=0,u=r-i;s<u;s+=a)o.push(l(e,s,s+a>u?u:s+a));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;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,o,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},7040:(e,t,n)=>{"use strict";var r=n(3325).Buffer,i=n(5224),o=n(6362),a=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,o(this.init_done,"close before init"),o(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,o,a){return this._write(!0,e,t,n,r,i,o,a)},f.prototype.writeSync=function(e,t,n,r,i,o,a){return this._write(!1,e,t,n,r,i,o,a)},f.prototype._write=function(e,n,a,s,l,u,c,f){if(o.equal(arguments.length,8),o(this.init_done,"write before init"),o(this.mode!==t.NONE,"already finalized"),o.equal(!1,this.write_in_progress,"write already in progress"),o.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,o.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==a&&(a=r.alloc(0),l=0,s=0),this.strm.avail_in=l,this.strm.input=a,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,a){o(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),o(e>=8&&e<=15,"invalid windowBits"),o(n>=-1&&n<=9,"invalid compression level"),o(r>=1&&r<=9,"invalid memlevel"),o(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,a),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,o){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 a,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=o,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,o=n(8556).Transform,a=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";a.Z_MIN_WINDOWBITS=8,a.Z_MAX_WINDOWBITS=15,a.Z_DEFAULT_WINDOWBITS=15,a.Z_MIN_CHUNK=64,a.Z_MAX_CHUNK=1/0,a.Z_DEFAULT_CHUNK=16384,a.Z_MIN_MEMLEVEL=1,a.Z_MAX_MEMLEVEL=9,a.Z_DEFAULT_MEMLEVEL=8,a.Z_MIN_LEVEL=-1,a.Z_MAX_LEVEL=9,a.Z_DEFAULT_LEVEL=a.Z_DEFAULT_COMPRESSION;for(var f=Object.keys(a),d=0;d<f.length;d++){var p=f[d];p.match(/^Z/)&&Object.defineProperty(t,p,{enumerable:!0,value:a[p],writable:!1})}for(var h={Z_OK:a.Z_OK,Z_STREAM_END:a.Z_STREAM_END,Z_NEED_DICT:a.Z_NEED_DICT,Z_ERRNO:a.Z_ERRNO,Z_STREAM_ERROR:a.Z_STREAM_ERROR,Z_DATA_ERROR:a.Z_DATA_ERROR,Z_MEM_ERROR:a.Z_MEM_ERROR,Z_BUF_ERROR:a.Z_BUF_ERROR,Z_VERSION_ERROR:a.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=[],o=0;function a(){for(var t;null!==(t=e.read());)r.push(t),o+=t.length;e.once("readable",a)}function s(){var t,a=null;o>=u?a=new RangeError(c):t=i.concat(r,o),r=[],e.close(),n(a,t)}e.on("error",function(t){e.removeListener("end",s),e.removeListener("readable",a),n(t)}),e.on("end",s),e.end(t),a()}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,a.DEFLATE)}function x(e){if(!(this instanceof x))return new x(e);O.call(this,e,a.INFLATE)}function _(e){if(!(this instanceof _))return new _(e);O.call(this,e,a.GZIP)}function E(e){if(!(this instanceof E))return new E(e);O.call(this,e,a.GUNZIP)}function k(e){if(!(this instanceof k))return new k(e);O.call(this,e,a.DEFLATERAW)}function S(e){if(!(this instanceof S))return new S(e);O.call(this,e,a.INFLATERAW)}function A(e){if(!(this instanceof A))return new A(e);O.call(this,e,a.UNZIP)}function C(e){return e===a.Z_NO_FLUSH||e===a.Z_PARTIAL_FLUSH||e===a.Z_SYNC_FLUSH||e===a.Z_FULL_FLUSH||e===a.Z_FINISH||e===a.Z_BLOCK}function O(e,n){var r=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,o.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||a.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:a.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 a.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,o),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 o=this;this.flush(a.Z_SYNC_FLUSH,function(){l(o._handle,"zlib binding closed"),o._handle.params(e,n),o._hadError||(o._level=e,o._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,o=this._writableState;("function"==typeof e||void 0===e&&!t)&&(t=e,e=a.Z_FULL_FLUSH),o.ended?t&&r.nextTick(t):o.ending?t&&this.once("end",t):o.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,o=this._writableState,s=(o.ending||o.ended)&&(!e||o.length===e.length);return null===e||i.isBuffer(e)?this._handle?(s?r=this._finishFlushFlag:(r=this._flushFlag,e.length>=o.length&&(this._flushFlag=this._opts.flush||a.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,o=this._chunkSize-this._offset,a=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,a,r,this._buffer,this._offset,o)}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,a,r,this._buffer,this._offset,o);function v(u,c){if(this&&(this.buffer=null,this.callback=null),!s._hadError){var d=o-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)&&(o=s._chunkSize,s._offset=0,s._buffer=i.allocUnsafe(s._chunkSize)),0===c){if(a+=r-u,r=u,!f)return!0;var g=s._handle.write(t,e,a,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),o=n(6897),a="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 j(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 o,a=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;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===l)return r*a}else-1!==r&&(o-=o-r),r=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;r<l;r++)if(u(e,o+r)!==u(t,r)){n=!1;break}if(n)return o}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 o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(X(r))return a;e[n+a]=r}return a}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 o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(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 o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=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)&&(o=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&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}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,o=Math.min(n,r);i<o;++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+">"},a&&(u.prototype[a]=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 o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n);for(let e=0;e<s;++e)if(l[e]!==c[e]){o=l[e],a=c[e];break}return o<a?-1:a<o?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 o=!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(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!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 j(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 P(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,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)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 o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function M(e,t,n,r,i){H(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function B(e,t,n,r,i,o){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),o.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),o.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||P(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(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||P(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(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||P(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||P(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*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||P(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||P(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||P(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||P(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||P(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||P(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),o.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,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=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,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&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,o=1,a=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o|0)-a&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,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&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 o=u.isBuffer(e)?e:u.from(e,r),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%a]}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,o){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?">= 0".concat(r," and < 2").concat(r," ** ").concat(8*(o+1)).concat(r):">= -(2".concat(r," ** ").concat(8*(o+1)-1).concat(r,") and < 2 ** ")+"".concat(8*(o+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,o)}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 o=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}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),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},3629:(e,t,n)=>{"use strict";var r=n(6989),i=n(7375),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),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,a,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,o,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},3705:(e,t,n)=>{var r=n(3575),i=n(6362);function o(){return(new Date).getTime()}var a,s=Array.prototype.slice,l={};a=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var u=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(e){l[e]=o()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var n=o()-t;a.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),a.error(e.stack)},"trace"],[function(e){a.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];a[p]||(a[p]=d)}e.exports=a},8726:(e,t,n)=>{"use strict";var r=n(7839),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=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]"===o.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]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)c(e,o[s],t[o[s]],n[o[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 o=Object.keys(Object(i)),a=0,s=o.length;a<s;a++){var l=o[a],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),o="object"==typeof Reflect?Reflect:null,a=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.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,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t){"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 o,a,s,l;if(c(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),s=a[t]),void 0===s)s=a[t]=n,++e._eventsCount;else if("function"==typeof s?s=a[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=f(e))>0&&s.length>o&&!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(o){r.once&&e.removeEventListener(t,i),n(o)})}}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 o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)a(l,this,t);else{var u=l.length,c=y(l,u);for(n=0;n<u;++n)a(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,o,a;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,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;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,a||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,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[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,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===i.call(e)?function(e,t,n){for(var r=0,i=e.length;r<i;r++)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a):"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,a):function(e,t,n){for(var r in e)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a)}},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,o=t.call(arguments,1),a=Math.max(0,r.length-o.length),s=[],l=0;l<a;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,o.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,o.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,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var u=function(){throw new a},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%":o,"%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%":a,"%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 o=m[r];if(o===p&&(o=g(r)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"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]:"",o=C("%"+r+"%",t),s=o.name,u=o.value,c=!1,f=o.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 a("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 o,a,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,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-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,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+p]=255&a,p+=h,a/=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"),o=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(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 o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},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 o=/^\s*class\b/,a=function(e){try{var t=r.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{return!a(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!a(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(a(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,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=n(5550)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(o.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),o=n(7433),a=n(7308),s=n(3862),l=r(a(),Number);i(l,{getPolyfill:a,implementation:o,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),o=n(1061),a=o("Object.prototype.toString"),s=n(5550)(),l="undefined"==typeof globalThis?n.g:globalThis,u=i(),c=o("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=o("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(a(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),o=n(7837),a=n(5944),s=n(9394),l=i(a(),Object);r(l,{getPolyfill:a,implementation:o,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,o=Object.prototype.toString,a=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]"===o.call(e),r=a(e),s=t&&"[object String]"===o.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),o=Object.keys,a=o?function(e){return o(e)}:n(225),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},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 o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,a;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},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,o))},t.setTyped(n)},1875:e=>{"use strict";e.exports=function(e,t,n,r){for(var i=65535&e,o=e>>>16&65535,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+t[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<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 o=t,a=i+r;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^n[s])];return~e}},7129:(e,t,n)=>{"use strict";var r,i=n(5899),o=n(4867),a=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){o._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 o=e.avail_in;return o>r&&(o=r),0===o?0:(e.avail_in-=o,i.arraySet(t,e.input,e.next_in,o,n),1===e.state.wrap?e.adler=a(e.adler,t,o,n):2===e.state.wrap&&(e.adler=s(e.adler,t,o,n)),e.next_in+=o,e.total_in+=o,o)}function E(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=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[o+a-1],g=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+a]===g&&u[n+a-1]===m&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&o<h);if(r=c-(h-o),o=h-c,r>a){if(e.match_start=t,a=r,r>=s)break;m=u[o+a-1],g=u[o+a]}}}while((t=p[t&d])>l&&0!==--i);return a<=e.lookahead?a:e.lookahead}function k(e){var t,n,r,o,a,s=e.w_size;do{if(o=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);o+=s}if(0===e.strm.avail_in)break;if(n=_(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=n,e.lookahead+e.insert>=3)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+3-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,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=o._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=o._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=o._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=o._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=o._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,o._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,o,a){if(!e)return u;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),o<1||o>9||8!==n||r<8||r>15||t<0||t>9||a<0||a>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=o+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<<o+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=a,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,a,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(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),v(e),a=i.pending,i.pending!==i.pending_buf_size));)w(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),v(e),a=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>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),v(e),a=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>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),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=o._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,a,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]){a=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<a);e.match_length=c-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._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?o._tr_align(i):5!==t&&(o._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,o,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=a(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,o=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(--o);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,o,a,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),o=e.next_out,A=e.output,a=o-(t-e.avail_out),s=o+(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[o++]=65535&b;else{if(!(16&w)){if(!(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(!(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=o-a)){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[o++]=d[E++]}while(--w);E=o-_,k=A}}else if(f<w){if(E+=u+f-w,(w-=f)<x){x-=w;do{A[o++]=d[E++]}while(--w);if(E=0,f<x){x-=w=f;do{A[o++]=d[E++]}while(--w);E=o-_,k=A}}}else if(E+=f-w,w<x){x-=w;do{A[o++]=d[E++]}while(--w);E=o-_,k=A}for(;x>2;)A[o++]=k[E++],A[o++]=k[E++],A[o++]=k[E++],x-=3;x&&(A[o++]=k[E++],x>1&&(A[o++]=k[E++]))}else{E=o-_;do{A[o++]=A[E++],A[o++]=A[E++],A[o++]=A[E++],x-=3}while(x>2);x&&(A[o++]=A[E++],x>1&&(A[o++]=A[E++]))}break}}break}}while(r<i&&o<s);r-=x=h>>3,p&=(1<<(h-=x<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=p,n.bits=h}},5281:(e,t,n)=>{"use strict";var r=n(5899),i=n(1875),o=n(6181),a=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 o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,t,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),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,j,P,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=o(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,P=8+(15&(v>>>=4)),0===n.wbits)n.wbits=P;else if(P>n.wbits){e.msg="invalid window size",n.mode=c;break}n.dmax=1<<P,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=o(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=o(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=o(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=o(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&&(P=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,P)),512&n.flags&&(n.check=o(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{P=d[h+k++],n.head&&P&&n.length<65536&&(n.head.name+=String.fromCharCode(P))}while(P&&k<g);if(512&n.flags&&(n.check=o(n.check,d,k,h)),g-=k,h+=k,P)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{P=d[h+k++],n.head&&P&&n.length<65536&&(n.head.comment+=String.fromCharCode(P))}while(P&&k<g);if(512&n.flags&&(n.check=o(n.check,d,k,h)),g-=k,h+=k,P)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}P=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,P=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,P=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++]=P}}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,a(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&&!(240&O)){for(N=C,R=O,j=T;O=(B=n.lencode[j+((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(!(240&O)){for(N=C,R=O,j=T;O=(B=n.distcode[j+((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?o(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?o(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&&2&(n=e.state).wrap?(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],o=[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],a=[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,j=0,P=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?(P=B=f,v=19):1===e?(P=i,I-=257,B=o,D-=257,v=256):(P=a,B=s,v=-1),j=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=P[I+f[k]]):(w=96,x=0),p=1<<E-T,S=h=1<<O;do{u[y+(j>>T)+(h-=p)]=b<<24|w<<16|x}while(0!==h);for(p=1<<E-1;j&p;)p>>=1;if(0!==p?(j&=p-1,j+=p):j=0,k++,0===--L[E]){if(E===A)break;E=t[n+f[k]]}if(E>C&&(j&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=j&g]=C<<24|O<<16|y-c}}return 0!==j&&(u[y+j]=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 o=256,a=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,o=new Array(16),a=0;for(r=1;r<=l;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=O(o[s]++,s))}}function N(e){var t;for(t=0;t<a;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 j(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function P(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&j(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!j(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,a,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,(a=g[i])+o+1,t),0!==(s=u[a])&&A(e,i-=y[a],s),C(e,a=k(--r),n),0!==(s=c[a])&&A(e,r-=x[a],s))}while(l<e.last_lit);C(e,256,t)}function L(e,t){var n,r,i,o=t.dyn_tree,a=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!==o[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)P(e,o,n);i=u;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],P(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,P(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,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(o=0;o<=l;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(o=u[2*u[2*(r=e.heap[n])+1]+1]+1)>m&&(o=m,g++),u[2*r+1]=o,r>c||(e.bl_count[o]++,a=0,r>=h&&(a=p[r-h]),s=u[2*r],e.opt_len+=s*(o+a),d&&(e.static_len+=s*(f[2*r+1]+a)));if(0!==g){do{for(o=m-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[m]--,g-=2}while(g>0);for(o=m;0!==o;o--)for(r=e.bl_count[o];0!==r;)(i=e.heap[--n])>c||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(e,t),T(o,c,e.bl_count)}function M(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<l&&i===a||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,o=i,0===a?(l=138,u=3):i===a?(l=6,u=3):(l=7,u=4))}function B(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<l&&i===a)){if(s<u)do{C(e,i,e.bl_tree)}while(0!==--s);else 0!==i?(i!==o&&(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,o=i,0===a?(l=138,u=3):i===a?(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){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,o=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++)o[t]=0;for(e=0;e<=143;)p[2*e+1]=8,e++,o[8]++;for(;e<=255;)p[2*e+1]=9,e++,o[9]++;for(;e<=279;)p[2*e+1]=7,e++,o[7]++;for(;e<=287;)p[2*e+1]=8,e++,o[8]++;for(T(p,287,o),e=0;e<s;e++)h[2*e+1]=5,h[2*e]=O(e,5);v=new _(p,u,257,a,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,a,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<o;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,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?U(e,t,n,r):4===e.strategy||a===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]+o+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 o(){throw new Error("clearTimeout has not been defined")}function a(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:o}catch(e){n=o}}();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=a(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===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return 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||a(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 o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==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:o,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,o,a;if("string"==typeof t&&(o="not ",t.substr(0,4)===o)?(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-9,n)===t}(e," argument"))a="The ".concat(e," ").concat(i," ").concat(r(t,"type"));else{var s=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+1>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(i," ").concat(r(t,"type"))}return a+". 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 o=n(3230),a=n(4306);n(1596)(c,o);for(var s=i(a.prototype),l=0;l<s.length;l++){var u=s[l];c.prototype[u]||(c.prototype[u]=a.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);o.call(this,e),a.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 o,a=function(e,t){return e.listeners(t).length},s=n(4687),l=n(3325).Buffer,u=n.g.Uint8Array||function(){},c=n(9838);o=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){o("readableAddChunk",t);var a,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(o("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||(a=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)),a)_(e,a);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):j(e,s)):C(e,s,t,!1)}else r||(s.reading=!1,j(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)),j(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;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(R,e))}function R(e){var t=e._readableState;o("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 j(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(o("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){o("readable nexttick read 0"),e.read(0)}function M(e,t){o("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(o("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;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(F,t,e))}function F(e,t){if(o("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){o("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 o("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 o("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",i=!0),t.ended||t.reading?o("reading or ended",i=!1):i&&(o("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,o("pipe count=%d opts=%j",r.pipesCount,t);var s=t&&!1===t.end||e===i.stdout||e===i.stderr?m:l;function l(){o("onend"),e.end()}r.endEmitted?i.nextTick(s):n.once("end",s),e.on("unpipe",function t(i,a){o("onunpipe"),i===n&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("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;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,B(e))}}(n);e.on("drain",u);var c=!1;function f(t){o("ondata");var i=e.write(t);o("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==z(r.pipes,e))&&!c&&(o("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function d(t){o("onerror",t),m(),e.removeListener("error",d),0===a(e,"error")&&_(e,t)}function p(){e.removeListener("finish",h),m()}function h(){o("onfinish"),e.removeListener("close",p),m()}function m(){o("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||(o("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 o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=z(t.pipes,e);return-1===a||(t.pipes.splice(a,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,o("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||(o("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 o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("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(o("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){o("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 a=0;a<E.length;a++)e.on(E[a],this.emit.bind(this,E[a]));return this._read=function(t){o("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,o=r.ERR_MULTIPLE_CALLBACK,a=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 o);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 a;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 o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var n=e.entry;for(e.entry=null;n;){var r=n.callback;t.pendingcb--,r(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=S,S.WritableState=k;var a,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,a){r=r||n(7544),e=e||{},"boolean"!=typeof a&&(a=t instanceof r),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",a),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,o=n.writecb;if("function"!=typeof o)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,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(R,e,t),e._writableState.errorEmitted=!0,_(e,r)):(o(r),e._writableState.errorEmitted=!0,_(e,r),R(e,t))}(e,n,r,t,o);else{var a=T(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||O(e,n),r?i.nextTick(C,e,n,a,o):C(e,n,a,o)}}(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 o(this)}function S(e){var t=this instanceof(r=r||n(7544));if(!t&&!a.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,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):n?e._writev(i,t.onwrite):e._write(i,o,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),a=t.corkedRequestsFree;a.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,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(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]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===S&&e&&e._writableState instanceof k}})):a=function(e){return e instanceof this},S.prototype.pipe=function(){_(this,new y)},S.prototype.write=function(e,t,n){var r,o=this._writableState,a=!1,s=!o.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=o.defaultEncoding),"function"!=typeof n&&(n=E),o.ending?function(e,t){var n=new w;_(e,n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var o;return null===n?o=new b:"string"==typeof n||t.objectMode||(o=new h("chunk",["string","Buffer"],n)),!o||(_(e,o),i.nextTick(r,o),!1)}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,n)),t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}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:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,s,r,i,o);return l}(this,o,s,e,t,n)),a},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 o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=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((o(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 o=this[p].read();if(null!==o)return Promise.resolve(h(o,!1));n=new Promise(this[d])}return this[f]=n,n}},Symbol.asyncIterator,function(){return this}),o(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,(o(t={},p,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,l,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,c,{value:e._readableState.endEmitted,writable:!0}),o(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,a(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 o(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 a=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 a.alloc(0);for(var t,n,r,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,n=i,r=s,a.prototype.copy.call(t,n,r),s+=o.data.length,o=o.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,o=e>i.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0===(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));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}))}}],n&&o(t.prototype,n),e}()},4822:(e,t,n)=>{"use strict";var r=n(5224);function i(e,t){a(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function a(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(a,this,e)):r.nextTick(a,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(o,n):(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t?(r.nextTick(o,n),t(e)):r.nextTick(o,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,o){if("function"==typeof n)return e(t,null,n);n||(n={}),o=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)}}}(o||i);var a=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,a||o.call(t)},f=t._readableState&&t._readableState.endEmitted,d=function(){a=!1,f=!0,s||o.call(t)},p=function(e){o.call(t,e)},h=function(){var e;return a&&!f?(t._readableState&&t._readableState.ended||(e=new r),o.call(t,e)):s&&!u?(t._writableState&&t._writableState.ended||(e=new r),o.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,o=i.ERR_MISSING_ARGS,a=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 o("streams");var d=t.map(function(e,i){var o=i<t.length-1;return function(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);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 o(e);s=!0,o()});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 o(t||new a("pipe"))}}(e,o,i>0,function(e){c||(c=e),e&&d.forEach(l),o||(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 o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}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 o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.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},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.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 o{constructor(e){if(this.length=0,this._encoding="utf8",this._writeOffset=0,this._readOffset=0,o.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,o){let a=this._writeOffset,s=this._encoding;"number"==typeof n?a=n:"string"==typeof n&&(i.checkEncoding(n),s=n),"string"==typeof o&&(i.checkEncoding(o),s=o);const l=r.byteLength(e,s);return t?this.ensureInsertable(l,a):this._ensureWriteable(l,a),this._buff.write(e,a,l,s),t?this._writeOffset+=l:"number"==typeof n?this._writeOffset=Math.max(this._writeOffset,a+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 o="number"==typeof r?r:this._writeOffset;return this._ensureWriteable(t,o),e.call(this._buff,n,o),"number"==typeof r?this._writeOffset=Math.max(this._writeOffset,o+t):this._writeOffset+=t,this}}t.I=o},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 o(e){return"number"==typeof e&&isFinite(e)&&function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}(e)}function a(e,t){if("number"!=typeof e)throw new Error(t?i.INVALID_OFFSET_NON_NUMBER:i.INVALID_LENGTH_NON_NUMBER);if(!o(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=o,t.checkLengthValue=function(e){a(e,!1)},t.checkOffsetValue=function(e){a(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 o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!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",o),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 o(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 a(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=o,o.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||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=a(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)},o.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),o=n(4961),a=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=a,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):a(e)||k(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(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 j(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=j,t.isBoxedPrimitive=function(e){return O(e)||T(e)||N(e)||R(e)||j(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),o=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},a=/%[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,o=String(e).replace(a,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)?o+=" "+s:o+=" "+c(s);return o},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 o=!1;return function(){if(!o){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?i.trace(n):i.error(n),o=!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 o=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(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),S(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(n);if(0===a.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!==a.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 o=[],a=0,s=t.length;a<s;++a)N(t,String(a))?o.push(m(e,t,n,r,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(m(e,t,n,r,i,!0))}),o}(e,n,r,s,a):a.map(function(t){return m(e,n,r,s,t,f)}),e.seen.pop(),function(e,t,n){var r=e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>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,o){var a,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)||(a="["+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=o?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(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+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 j(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=[],o=0;o<arguments.length;o++)i.push(arguments[o]);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,o(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 o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then(function(e){r.nextTick(a.bind(null,null,e))},function(e){r.nextTick(j.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,o(e)),t}},4961:(e,t,n)=>{"use strict";var r=n(1e3),i=n(6405),o=n(1061),a=o("Object.prototype.toString"),s=n(5550)(),l="undefined"==typeof globalThis?n.g:globalThis,u=i(),c=o("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(a(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 o,a,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 o=Object(arguments[l]))n.call(o,u)&&(s[u]=o[u]);if(t){a=t(o);for(var c=0;c<a.length;c++)r.call(o,a[c])&&(s[a[c]]=o[a[c]])}}return s}},1253:(e,t,n)=>{"use strict";var r,i,o,a,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)},o=function(){clearTimeout(d)},t.unstable_shouldYield=function(){return!1},a=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},a=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)},o=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 o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>C(a,n))void 0!==l&&0>C(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);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,j=3,P=!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,o()),P=!0;var r=j;try{for(M(n),R=S(O);null!==R&&(!(R.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=R.callback;if("function"==typeof a){R.callback=null,j=R.priorityLevel;var s=a(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,j=r,P=!1}}var U=a;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||P||(I=!0,r(D))},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return S(O)},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=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=j;j=e;try{return t()}finally{j=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?s+a: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:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,k(T,e),null===S(O)&&e===S(T)&&(L?o():L=!0,i(B,a-s))):(e.sortIndex=l,k(O,e),I||P||(I=!0,r(D))),e},t.unstable_wrapCallback=function(e){var t=j;return function(){var n=j;j=t;try{return e.apply(this,arguments)}finally{j=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 o=t[r]={exports:{}};return e[r](o,o.exports,n),o.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,o,a;function s(e){switch(e){case a.MuteAllChannels:return"muteallchannels";case a.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"}(o||(o={})),function(e){e[e.MuteAllChannels=0]="MuteAllChannels",e[e.PlayInstruction=1]="PlayInstruction"}(a||(a={}));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 o,a;let n=(null===(o=e.gameState)||void 0===o||null===(a=o.reactionIconOverrides)||void 0===a?void 0:a.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,o=lf("Sign in to host this multiplayer game"),a=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:o,signUpMessage:a}: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 j(){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 P;function I(e,t,n,r,i){const o=r?1:-1,a=e[n];return t===n||(i?i(a):function(e){if(e.checkVisibility)return e.checkVisibility({visibilityProperty:!0});const t=getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility}(a))?a:(n+o>=e.length?n=0:n+o<0?n=e.length-1:n+=o,I(e,t,n,r,i))}!function(e){e[e.Selected=0]="Selected",e[e.Unselected=1]="Unselected",e[e.Waiting=2]="Waiting"}(P||(P={}));const L=e=>{const t=B(e);return(0,d.jsx)("button",{...t,children:(0,d.jsx)(M,{...e})})},M=e=>{const{label:t,labelClassName:n,leftIcon:r,rightIcon:i,children:o}=e;return(0,d.jsxs)(d.Fragment,{children:[(r||i||t)&&(0,d.jsxs)("span",{className:"common-button-flex",children:[r&&(0,d.jsx)("i",{className:r,"aria-hidden":!0}),(0,d.jsx)("span",{className:j("common-button-label",n),children:t}),i&&(0,d.jsx)("i",{className:"right "+i,"aria-hidden":!0})]}),o]})};function B(e){const{id:t,className:n,style:r,ariaLabel:i,ariaHidden:o,ariaDescribedBy:a,ariaControls:s,ariaExpanded:l,ariaHasPopup:u,ariaPosInSet:c,ariaSetSize:f,ariaSelected:d,ariaPressed:p,role:h,onClick:m,onClickEvent:g,onRightClick:y,onKeydown:v,onBlur:b,onFocus:w,buttonRef:x,title:_,hardDisabled:E,href:k,target:S,tabIndex:A}=e;let{disabled:C}=e;return C=C||E,{id:t,className:j("common-button",n,C&&"disabled"),style:r,title:_,ref:x,onClick:C?void 0:e=>{g&&g(e),m&&m(),k&&window.open(k,S||"_blank","noopener,noreferrer"),e.stopPropagation(),e.preventDefault()},onContextMenu:e=>{y&&(y(),e.stopPropagation(),e.preventDefault())},onKeyDown:v||R,onBlur:b,onFocus:w,role:h||"button",tabIndex:A||(C?-1:0),disabled:E,"aria-label":i,"aria-hidden":o,"aria-controls":s,"aria-expanded":l,"aria-haspopup":u,"aria-posinset":c,"aria-setsize":f,"aria-describedby":a,"aria-selected":d,"aria-pressed":p}}const D=e=>{const{id:t,className:n,role:r,ariaHidden:i,ariaLabel:o,childTabStopId:a,children:s,focusSelectsItem:l,onItemReceivedFocus:u,useUpAndDownArrowKeys:c}=e;let f,p;const h=e=>"true"===e.getAttribute("data-isfocusable")&&null!==e.offsetParent;return(0,d.jsx)("div",{id:t,className:n,role:r,tabIndex:a?void 0:0,onKeyDown:e=>{var t;if(null===(t=f)||void 0===t||!t.length)return;const n=document.activeElement,r=f.indexOf(n),i=e=>{e.click?e.click():e.dispatchEvent(new Event("click"))},o=e=>{e.focus(),u&&u(e),l&&i(e)};if(-1===r&&n!==p)return;let a,s;c?(a="ArrowUp",s="ArrowDown"):pxt.Util.isUserLanguageRtl()?(a="ArrowRight",s="ArrowLeft"):(a="ArrowLeft",s="ArrowRight"),l||"Enter"!==e.key&&" "!==e.key?e.key===s?(r===f.length-1||n===p?o(I(f,r,0,!0,h)):o(I(f,r,r+1,!0,h)),e.preventDefault(),e.stopPropagation()):e.key===a?(o(I(f,r,0===r||n===p?f.length-1:r-1,!1,h)),e.preventDefault(),e.stopPropagation()):"Home"===e.key?(o(I(f,r,0,!0,h)),e.preventDefault(),e.stopPropagation()):"End"===e.key&&(o(I(f,r,f.length-1,!0,h)),e.preventDefault(),e.stopPropagation()):(e.preventDefault(),e.stopPropagation(),i(n))},ref:e=>{if(!e||p)return;p=e;const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]),[data-isfocusable]');f=[];for(const e of t.values())f.push(e),e.setAttribute("tabindex","-1"),e.setAttribute("data-isfocusable","true");if(a){const e=p.querySelector("#"+a);e&&e.setAttribute("tabindex","0")}},"aria-hidden":i,"aria-label":o,children:s})},U=t=>{var n;const{id:r,className:i,inputClassName:o,groupClassName:a,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=!0,options:N}=t,[R,P]=e.useState(c||""),[I,M]=e.useState(!1),[B]=e.useState(t.filter?new RegExp(t.filter):void 0),U=e.useMemo(()=>N?Object.values(N):[],[N]);let F;e.useEffect(()=>{P(c||"")},[c]);const z=()=>{N&&M(!I)},V=e=>{if(!U.length)return;const t=U.indexOf(e);if(-1===t)return;const n=(r=e)?r.replace(/[^a-zA-Z0-9_-]/g,"-")||"option":"";var r;return"dropdown-item-".concat(t,"-").concat(n)};return(0,d.jsxs)("div",{className:j("common-input-wrapper",y&&"disabled",i),onBlur:e=>{I&&!F.contains(e.relatedTarget)&&M(!1)},ref:e=>{e&&(F=e)},children:[f&&(0,d.jsx)("label",{className:"common-input-label",htmlFor:r,children:f}),(0,d.jsxs)("div",{className:j("common-input-group",a),children:[(0,d.jsx)("input",{id:r,className:j("common-input",m&&"has-icon",o),title:p,role:s||"textbox",tabIndex:y?-1:0,"aria-label":u,"aria-hidden":l,type:v||"text",placeholder:h,value:R,readOnly:!!b,onClick:e=>{x&&e.target.select(),N&&!I&&M(!0)},onChange:e=>{let t=e.target.value;var n;t&&B&&(t=(null===(n=t.match(B))||void 0===n?void 0:n.join(""))||""),b||R===t||P(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&&"ArrowDown"===e.key){var r;I?null===(r=document.getElementById(V(U[0])))||void 0===r||r.focus():z(),e.preventDefault(),e.stopPropagation()}else if(N&&I&&"ArrowUp"===e.key){var i;null===(i=document.getElementById(V(U[U.length-1])))||void 0===i||i.focus(),e.preventDefault(),e.stopPropagation()}},onBlur:()=>{A&&A(R),T||P("")},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,tabIndex:-1,onClick:z})]}),I&&(0,d.jsx)(D,{role:"listbox",className:"common-menu-dropdown-pane common-dropdown-shadow",childTabStopId:null!==(n=V(R))&&void 0!==n?n:V(U[0]),"aria-labelledby":r,useUpAndDownArrowKeys:!0,children:(0,d.jsx)("ul",{role:"presentation",onKeyDown:e=>{var t;"Escape"===e.code&&(e.target.blur(),z(),null===(t=document.getElementById(r))||void 0===t||t.focus(),e.stopPropagation(),e.preventDefault())},children:Object.keys(N).map(e=>(0,d.jsx)("li",{role:"presentation",children:(0,d.jsx)(L,{title:e,label:e,id:V(N[e]),className:j("common-dropdown-item"),onClick:()=>(e=>{var t;M(!1);const n=N[e];P(n),C&&C(n),null===(t=document.getElementById(r))||void 0===t||t.focus()})(e),ariaSelected:V(N[e])===V(null!=R?R:c),role:"option"})},e))})})]})},F=e=>{const{id:t,className:n,ariaLabel:r,href:i,target:o,children:a,tabIndex:s,title:l}=e,u=j("common-link",n);return(0,d.jsx)("a",{id:t,className:u,"aria-label":r,href:i,target:o,rel:"_blank"===o?"noopener noreferrer":"",tabIndex:null!=s?s:0,title:l,children:a})},z=Object.create(null);z.open="0",z.close="1",z.ping="2",z.pong="3",z.message="4",z.upgrade="5",z.noop="6";const V=Object.create(null);Object.keys(z).forEach(e=>{V[z[e]]=e});const H={type:"error",data:"parser error"},W="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),q="function"==typeof ArrayBuffer,G=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Z=(e,t,n)=>{let{type:r,data:i}=e;return W&&i instanceof Blob?t?n(i):Y(i,n):q&&(i instanceof ArrayBuffer||G(i))?t?n(i):Y(new Blob([i]),n):n(z[r]+(i||""))},Y=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function $(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let K;const X="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<64;e++)X["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(e)]=e;const Q="function"==typeof ArrayBuffer,J=(e,t)=>{if("string"!=typeof e)return{type:"message",data:te(e,t)};const n=e.charAt(0);return"b"===n?{type:"message",data:ee(e.substring(1),t)}:V[n]?e.length>1?{type:V[n],data:e.substring(1)}:{type:V[n]}:H},ee=(e,t)=>{if(Q){const n=(e=>{let t,n,r,i,o,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const u=new ArrayBuffer(a),c=new Uint8Array(u);for(t=0;t<s;t+=4)n=X[e.charCodeAt(t)],r=X[e.charCodeAt(t+1)],i=X[e.charCodeAt(t+2)],o=X[e.charCodeAt(t+3)],c[l++]=n<<2|r>>4,c[l++]=(15&r)<<4|i>>2,c[l++]=(3&i)<<6|63&o;return u})(e);return te(n,t)}return{base64:!0,data:e}},te=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,ne=String.fromCharCode(30);let re;function ie(e){return e.reduce((e,t)=>e+t.length,0)}function oe(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 ae(e){if(e)return function(e){for(var t in ae.prototype)e[t]=ae.prototype[t];return e}(e)}ae.prototype.on=ae.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},ae.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},ae.prototype.off=ae.prototype.removeListener=ae.prototype.removeAllListeners=ae.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},ae.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},ae.prototype.emitReserved=ae.prototype.emit,ae.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},ae.prototype.hasListeners=function(e){return!!this.listeners(e).length};const se="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),le="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function ue(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 ce=le.setTimeout,fe=le.clearTimeout;function de(e,t){t.useNativeTimers?(e.setTimeoutFn=ce.bind(le),e.clearTimeoutFn=fe.bind(le)):(e.setTimeoutFn=le.setTimeout.bind(le),e.clearTimeoutFn=le.clearTimeout.bind(le))}function pe(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class he extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class me extends ae{constructor(e){super(),this.writable=!1,de(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 he(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=J(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 ge extends me{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(ne),r=[];for(let e=0;e<n.length;e++){const i=J(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,o)=>{Z(e,!1,e=>{r[o]=e,++i===n&&t(r.join(ne))})})})(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]=pe()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let ye=!1;try{ye="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}const ve=ye;function be(){}class we extends ge{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 xe extends ae{constructor(e,t,n){super(),this.createRequest=e,de(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=ue(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=xe.requestsCount++,xe.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=be,e)try{this._xhr.abort()}catch(e){}"undefined"!=typeof document&&delete xe.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 _e(){for(let e in xe.requests)xe.requests.hasOwnProperty(e)&&xe.requests[e].abort()}xe.requestsCount=0,xe.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",_e):"function"==typeof addEventListener&&addEventListener("onpagehide"in le?"pagehide":"unload",_e,!1));const Ee=function(){const e=ke({xdomain:!1});return e&&null!==e.responseType}();function ke(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||ve))return new XMLHttpRequest}catch(e){}if(!t)try{return new(le[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}const Se="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class Ae extends me{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,n=Se?{}:ue(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;Z(n,this.supportsBinary,e=>{try{this.doWrite(n,e)}catch(e){}r&&se(()=>{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]=pe()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const Ce=le.WebSocket||le.MozWebSocket,Oe={websocket:class extends Ae{createSocket(e,t,n){return Se?new Ce(e,t,n):t?new Ce(e,t):new Ce(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends me{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){re||(re=new TextDecoder);const n=[];let r=0,i=-1,o=!1;return new TransformStream({transform(a,s){for(n.push(a);;){if(0===r){if(ie(n)<1)break;const e=oe(n,1);o=!(128&~e[0]),i=127&e[0],r=i<126?3:126===i?1:2}else if(1===r){if(ie(n)<2)break;const e=oe(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(ie(n)<8)break;const e=oe(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),o=t.getUint32(0);if(o>Math.pow(2,21)-1){s.enqueue(H);break}i=o*Math.pow(2,32)+t.getUint32(4),r=3}else{if(ie(n)<i)break;const e=oe(n,i);s.enqueue(J(o?e:re.decode(e),t)),r=0}if(0===i||i>e){s.enqueue(H);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=new TransformStream({transform(e,t){!function(e,t){W&&e.data instanceof Blob?e.data.arrayBuffer().then($).then(t):q&&(e.data instanceof ArrayBuffer||G(e.data))?t($(e.data)):Z(e,!1,e=>{K||(K=new TextEncoder),t(K.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 o={type:"open"};this.query.sid&&(o.data='{"sid":"'.concat(this.query.sid,'"}')),this._writer.write(o).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&&se(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this._transport)||void 0===e||e.close()}},polling:class extends we{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=Ee&&!t}request(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(e,{xd:this.xd},this.opts),new xe(ke,this.uri(),e)}}},Te=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Ne=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Re(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=Te.exec(e||""),o={},a=14;for(;a--;)o[Ne[a]]=i[a]||"";return-1!=n&&-1!=r&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.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,o.path),o.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}(0,o.query),o}class je extends ae{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=Re(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=Re(t.host).host);de(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&&je.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",je.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(je.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)}}je.protocol=4;class Pe extends je{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;je.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;je.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 o=e=>{const n=new Error("probe error: "+e);n.transport=t.name,i(),this.emitReserved("upgradeError",n)};function a(){o("transport closed")}function s(){o("socket closed")}function l(e){t&&e.name!==t.name&&i()}const u=()=>{t.removeListener("open",r),t.removeListener("error",o),t.removeListener("close",a),this.off("close",s),this.off("upgrading",l)};t.once("open",r),t.once("error",o),t.once("close",a),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 Ie extends Pe{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=>Oe[e]).filter(e=>!!e)),super(e,t)}}var Le=n(3529);class Me 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 At(void 0)}onSignInFailed(){return Promise.resolve()}async onUserProfileChanged(){const e=await pxt.auth.getUserStateAsync();null!=e&&e.profile&&pxt.auth.generateUserProfilePicDataUrl(e.profile),await At(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 Be;async function De(){if(pxt.auth.hasIdentity())return Be||(Be=new Promise(async(e,t)=>{const n=new Me;await n.initAsync(),await n.authCheckAsync(),await n.initialUserPreferencesAsync(),e(n)}),Be)}async function Ue(){return await pxt.auth.getAuthTokenAsync()}var Fe=n(1781),ze=n.n(Fe);function Ve(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++)e[r]^=t[r];return e}function He(e){return new Promise((t,n)=>{ze().gzip(e,(e,r)=>{e?n(e):t(r)})})}function We(e){return new Promise((t,n)=>{ze().gunzip(e,(e,r)=>{e?n(e):t(r)})})}function qe(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 Ge(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 Ze(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 Ye=n(3705);let $e,Ke,Xe,Qe=e=>{var t;return $e&&!e||($e=new pxt.MainPackage((null===(t=$e)||void 0===t?void 0:t.host())||new nt)),$e};function Je(e){let t,n=e._editorPkg;if(n)return n;e!=Qe()&&(t=Je(Qe()));let r=new et(e,t);return e==Qe()&&(r.topPkg=r),e._editorPkg=r,r}pxt.react.getTilemapProject||(pxt.react.getTilemapProject=()=>(Ke||(Ke=new pxt.TilemapProject,Ke.loadPackage(Qe())),Ke));class et{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 tt(){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 nt{constructor(){this.githubPackageCache={}}readFile(e,t){let n=Je(e);return pxt.U.lookup(n.files,t)}writeFile(e,t,n){Je(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],o=pxt.github.parseRepoId(i);if(o&&r.fullName==o.fullName)return pxt.semver.strcmp(r.tag,o.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=Je(e);return(n?Promise.resolve(n):e.commonDownloadAsync()).then(o=>{if(o)return"github"!=r&&"pub"!=r||n||(this.githubPackageCache[e._verspec]=pxt.Util.clone(o)),i.setFiles(o),Promise.resolve();if("empty"==r){if(0==Object.keys(i.files).length&&i.setFiles(tt()),t&&t.length){const n=Je(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=tt(),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 Ye.warn("unknown package syntax ".concat(t));return!0}}function rt(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 it(e){const t=await function(){let e=Qe().getTargetOptions();return Qe().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=>{Ye.error(e.messageText)}),n}function ot(e){if(Xe||(Xe=new pxsim.SimulatorDriver(e)),e&&(Xe.container=e),Xe.container)return Xe}function at(e,t,n){var r;const i=ot(e),{fnArgs:o,parts:a,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:a,builtinParts:s,fnArgs:o,cdnUrl:pxt.webConfig.commitCdnUrl,localizedStrings:pxt.Util.getLocalizedStrings(),storedState:rt(t),single:!0,autofocus:!0,queryParameters:t.simQueryParams,mpRole:t.mpRole};return i.setRunOptions(u),u}async function st(e){var t,n;await async function(e){const t="server"===e.mpRole?"pub:".concat(e.id):"empty:clientprj",n=Qe();if((null==n?void 0:n._verspec)!==t||t.startsWith("pub:S")){const e=Qe(!0);e.host().cacheStoreAsync(t,void 0),e._verspec=t,await e.host().downloadPackageAsync(Qe(),[]),await Qe().installAllAsync()}try{"client"===e.mpRole&&(Je(Qe()).files[pxt.MAIN_TS]="multiplayer.init()")}catch(e){Ye.error(lf("Cannot load extension: {0}",e))}}(e);let r=!1;const i=pxt.appTarget.versions.target;let o=await it(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 o=null===(n=Qe().config.targetVersions)||void 0===n?void 0:n.target;if(o&&i&&pxt.semver.cmp(pxt.semver.parse(o),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(o,t.fileSystem[e]))});(null===(t=o.diagnostics)||void 0===t?void 0:t.length)>0&&r&&(pxt.log("Compile with upgrade rules failed, trying again with original code"),o=await it(t=>{"client"===e.mpRole&&(t.fileSystem[pxt.MAIN_TS]="multiplayer.init()")})),(null===(n=o.diagnostics)||void 0===n?void 0:n.length)>0&&(Ye.error("Diagnostics",o.diagnostics),h(w("init")),yt("compile-failed"));const a=pxtc.buildSimJsInfo(o);return a.parts=o.usedParts,a}var lt=n(3325).Buffer,ut=n(3705);const ct="https://multiplayer.staging.pxt.io",ft=ct,dt=pxt.BrowserUtils.isLocalHostDev()?ft:"arcade.makecode.com"===window.location.hostname?"https://mp.makecode.com":ct;class pt{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=Le.I.fromBuffer(lt.from(e));switch(t.readUInt16LE()){case mt.Binary.MessageType.CompressedScreen:return await this.recvCompressedScreenMessageAsync(t);case mt.Binary.MessageType.Input:return await this.recvInputMessageAsync(t);case mt.Binary.MessageType.Audio:return await this.recvAudioMessageAsync(t);case mt.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){ut.error("Error processing message",e),gt(),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 lt){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"),gt()},2e4);this.sock=new Ie(dt,{transports:["websocket"],path:"/mp"}),this.sock.binaryType="arraybuffer",this.sock.on("open",()=>{var n,i,o,a;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){ut.error("Error processing message",e),gt()}}),null===(o=this.sock)||void 0===o||o.on("close",()=>{pxt.debug("socket disconnected"),_t(this.gameOverReason),clearTimeout(r),t()}),null===(a=this.sock)||void 0===a||a.on("error",e=>{e&&pxt.log("Error sending message. "+e.toString())}),this.sendMessage({type:"connect",ticket:e,version:mt.VERSION})})})}async hostGameAsync(e){try{e=encodeURIComponent(e);const t=await Ue(),n=await fetch("".concat(dt,"/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 Ue(),n=await fetch("".concat(dt,"/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"),o=r.description||"",a="".concat(t,"/thumb");return h({type:"SET_GAME_METADATA",gameMetadata:{title:i,description:o,thumbnail:a}}),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 xt(t,n,e.slot)}async recvStartGameMessageAsync(e){pxt.debug("Server said start game"),await xt("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=ot())||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=ot())||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{yt(e)}catch(e){}}(e.reason)}async recvPauseGameMessageAsync(e){pxt.debug("Server sent pause game"),this.paused=!0,await Ct()}async recvResumeGameMessageAsync(e){pxt.debug("Server sent resume game"),this.paused=!1,await Ot()}async recvCompressedScreenMessageAsync(e){const{zippedData:t,isDelta:n}=mt.Binary.unpackCompressedScreenMessage(e),r=await We(t);n?this.screen&&Ve(this.screen,r):this.screen=r;const{image:i,palette:o}=this.getCurrentScreen();i&&this.postToSimFrame({type:"multiplayer",content:"Image",image:{data:i},palette:o})}async recvInputMessageAsync(e){const{button:t,state:n,slot:i}=mt.Binary.unpackInputMessage(e),a=function(e){switch(e){case r.Pressed:return"Pressed";case r.Released:return"Released";case r.Held:return"Held"}}(n);t<=o.None||t>=o.Menu||i<2||!a||this.postToSimFrame({type:"multiplayer",content:"Button",clientNumber:i-1,button:t,state:a})}async recvAudioMessageAsync(e){const{instruction:t,soundbuf:n}=mt.Binary.unpackAudioMessage(e);this.postToSimFrame({type:"multiplayer",content:"Audio",instruction:s(t),soundbuf:n})}async recvIconMessageAsync(e){const{iconType:t,iconSlot:n,iconBuffer:r}=mt.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 We(r),i=e.slice(0,48),o=e.slice(48);Nt(t,n,pxt.convertUint8BufferToPngUri(i,o))}else Nt(t,n)}postToSimFrame(e){var t;null===(t=ot())||void 0===t||t.postMessage(e)}async sendInputAsync(e,t){if(this.paused)return;const n=mt.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=mt.Binary.packAudioMessage(function(e){switch(e){case"muteallchannels":return a.MuteAllChannels;case"playinstructions":return a.PlayInstruction}}(e),lt.from(t));this.sendMessage(n)}async sendIconAsync(e,t,n,r){let i;if(n&&r){const e=lt.concat([n,r]);i=await He(e)}const o=mt.Binary.packIconMessage(e,t,i);this.sendMessage(o)}async sendScreenUpdateAsync(e,t){const n=[];n.push(lt.from(e)),t&&n.push(lt.from(t));const r=lt.concat(n),i=!this.screen;i?this.screen=r:(Ve(r,this.screen),Ve(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 He(r),t=mt.Binary.packCompressedScreenMessage(e,!i);this.sendMessage(t)}}}async sendCurrentScreenAsync(){if(this.screen){const e=await He(this.screen),t=mt.Binary.packCompressedScreenMessage(e,!1);this.sendMessage(t)}}kickPlayer(e){const t={type:"kick-player",clientId:e};this.sendMessage(t)}gameOver(e){this.gameOverReason=e,gt()}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 ht,mt;function gt(){var e;null===(e=ht)||void 0===e||e.destroy(),ht=void 0}function yt(e){var t;null===(t=ht)||void 0===t||t.gameOver(e)}async function vt(e){if(!(e=Ge(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 gt(),ht=new pt,await ht.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 bt(e){if(!(e=qe(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 gt(),ht=new pt,await ht.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)_t("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 wt(e){try{pxt.tickEvent("mp.leavegame"),await async function(e){var t;await(null===(t=ht)||void 0===t?void 0:t.leaveGameAsync(e)),gt()}(e),h({type:"CLEAR_GAME_INFO"}),h({type:"SET_GAME_METADATA",gameMetadata:void 0})}catch(e){}}async function xt(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&&Ct())}catch(e){}}function _t(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 Le.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 Le.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 Le.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 Le.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={})))}(mt||(mt={}));const Et=[{name:lf("smile"),emoji:"😃"},{name:lf("laugh"),emoji:"🤣"},{name:lf("surprise"),emoji:"😯"},{name:lf("cry"),emoji:"😫"},{name:lf("scared"),emoji:"😬"},{name:lf("angry"),emoji:"😠"}],kt=[];async function St(e){try{if(!kt[e]||kt[e]+250<Date.now()){kt[e]=Date.now();const t=Et[e];pxt.tickEvent("mp.sendreaction",{reaction:t.name}),await async function(e){var t;await(null===(t=ht)||void 0===t?void 0:t.sendReactionAsync(e))}(e)}}catch(e){}}async function At(e){try{h(e?(e=>({type:"SET_USER_PROFILE",profile:e}))(e):{type:"SET_USER_PROFILE",profile:void 0})}catch(e){}}async function Ct(){const{clientRole:e}=p;try{var t;"host"===e&&(pxt.tickEvent("mp.host.pausegame"),await async function(){var e;await(null===(e=ht)||void 0===e?void 0:e.pauseGameAsync())}()),null===(t=ot())||void 0===t||t.resume(pxsim.SimulatorDebuggerCommand.Pause),h(A(!0))}catch(e){}}async function Ot(){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=ht)||void 0===e?void 0:e.resumeGameAsync())}()),null===(n=ot())||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=ot())||void 0===r||r.postMessage({type:"multiplayer",content:"Connection",slot:e,connected:n})}await async function(){var e;await(null===(e=ht)||void 0===e?void 0:e.sendCurrentScreenAsync())}()}}catch(e){}}async function Tt(e){const{clientRole:t,gameState:n}=p,{gameMode:r}=null!=n?n:{};try{e||"host"!==t||"playing"!==r||await Ct()}catch(e){}}async function Nt(e,t,n){try{const r=e===i.Player?C:O;h(r(t,n))}catch(e){}}function Rt(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(--pxt-primary-background)":"transparent"}})]})}function jt(e){const{title:t,subtitle:n,image:r}=e,i=Ge(e.shareId),o=lf("Host a multiplayer session with '{0}'",pxt.U.rlf(t)),a=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 vt(i)},title:o,label:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("img",{className:"tw-w-full tw-aspect-[4/3]",src:a,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 Pt(){var t;const{state:n}=(0,e.useContext)(m),{targetConfig:r}=n,[i,o]=(0,e.useState)("join"),a=(0,e.useRef)(),s=(0,e.useRef)(),l=(0,e.useCallback)(e=>{a.current=e},[]),u=(0,e.useCallback)(e=>{s.current=e},[]),c=async()=>{var e;null!=a&&null!==(e=a.current)&&void 0!==e&&e.value&&await bt(a.current.value)},f=async()=>{var e;null!=s&&null!==(e=s.current)&&void 0!==e&&e.value&&await vt(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)(Rt,{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:()=>o("join")}),(0,d.jsx)(Rt,{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:()=>o("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)(U,{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)(F,{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)(U,{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)(F,{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)(jt,{shareId:e.shareId,title:pxt.Util.rlf("{id:game-title}".concat(e.title)),subtitle:pxt.Util.rlf("{id:game-subtitle}".concat(e.subtitle)),image:Ze(e.image)},t))})]})]})}let It;function Lt(){const{state:t}=(0,e.useContext)(m),{playerSlot:n,gameState:r,clientRole:i,gamePaused:o}=t,a=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=ht)||void 0===e?void 0:e.getCurrentScreen())||{image:void 0,palette:void 0}}();var r;e&&(null===(r=ot())||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 o;null===(o=ot())||void 0===o||o.postMessage({type:"multiplayer",content:"Connection",slot:e.slot,connected:!0})}return;case"multiplayer":const{origin:n,content:a}=t;return void("client"===n&&"Button"===a?(async e=>{const{button:t,state:n}=e;await async function(e,t){var n;await(null===(n=ht)||void 0===n?void 0:n.sendInputAsync(e,t))}(t,n)})(t):"server"===n&&"Image"===a?(async e=>{const{image:t,palette:n}=e,{data:r}=t;await async function(e,t){var n;await(null===(n=ht)||void 0===n?void 0:n.sendScreenUpdateAsync(e,t))}(r,n)})(t):"server"===n&&"Audio"===a?(async e=>{const{instruction:t,soundbuf:n}=e;await async function(e,t){var n;await(null===(n=ht)||void 0===n?void 0:n.sendAudioAsync(e,t))}(t,n)})(t):"server"===n&&"Icon"===a&&(async e=>{const{iconType:t,palette:n,icon:r,slot:i}=e,{data:o}=r||{};await async function(e,t,n,r){var i;await(null===(i=ht)||void 0===i?void 0:i.sendIconAsync(e,t,n,r))}(t,i,n,o)})(t))}};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[i]);const f=()=>{let e;return e=c?{simQueryParams:u,mpRole:"server",id:a}:{simQueryParams:u,mpRole:"client"},e},h=async()=>(It=st(f()),await It);return(0,e.useEffect)(()=>{"playing"===s&&(async()=>{const e=f();It&&(e.builtJsInfo=await It),It=async function(e,t){var n,r;const i=t.builtJsInfo||await st(t),{js:o}=i;if(!o)return void Ye.error("Program failed to compile");const a=at(e,t,i),s=ot(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?(a.storedState=rt(t),s.run(o,a)):"setstate"===e.command?e.stateKey&&function(e,t,n){if("server"!=e.mpRole)return;const r=e.id;let i=rt(e);null!=n?i[t]=n:delete i[t];try{window.localStorage.setItem(r,JSON.stringify(i))}catch(e){}}(t,e.stateKey,e.stateValue):"single"===e.command&&s.setSingleSimulator()},i.breakpoints&&s.setBreakpoints(i.breakpoints),s.run(o,a),i}(l.current,e),await It})()},[s]),(0,e.useEffect)(()=>{"playing"!==s&&l.current&&async function(e,t){var n;at(e,t),null===(n=ot())||void 0===n||n.preload(1,!0)}(l.current,f())},[i,n]),(0,e.useEffect)(()=>{c||h()},[i]),(0,e.useEffect)(()=>{c&&a&&h()},[i,a]),(0,e.useEffect)(()=>()=>{It=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:o?"grayscale(70%) blur(1px)":"none",transition:"filter .25s"}})}var Mt,Bt=Object.defineProperty,Dt=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,zt=(e,t,n)=>t in e?Bt(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 a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.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)}}o(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,a,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),o=s.getTotalBits(e,i);if(o<=r){a=o;break}if(i>=u)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])f&&a<=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)}o(d.length==a);const p=8*t.getNumDataCodewords(i,n);o(d.length<=p),r(0,Math.min(4,p-d.length),d),r(0,(8-d.length%8)%8,d),o(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);o(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;o(t>>>18==0);for(let e=0;e<18;e++){const n=i(t,e),r=this.size-11+e%3,o=Math.floor(e/3);this.setFunctionModule(r,o,n),this.setFunctionModule(o,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)),o=e+r,a=t+n;0<=o&&o<this.size&&0<=a&&a<this.size&&this.setFunctionModule(o,a,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],a=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(a);for(let n=0,r=0;n<i;n++){let i=e.slice(r,r+u-a+(n<l?0:1));r+=i.length;const o=t.reedSolomonComputeRemainder(i,f);n<l&&i.push(0),c.push(i.concat(o))}let d=[];for(let e=0;e<c[0].length;e++)c.forEach((t,n)=>{(e!=u-a||n>=l)&&d.push(t[e])});return o(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 o=0;o<2;o++){const a=t-o,s=t+1&2?r:this.size-1-r;!this.isFunction[s][a]&&n<8*e.length&&(this.modules[s][a]=i(e[n>>>3],7-(7&n)),n++)}}o(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,o=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?(i++,5==i?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,o),r||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),r=this.modules[n][a],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,o)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,i=0,o=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?(i++,5==i?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,o),r||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),r=this.modules[a][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,o)*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 o(0<=i&&i<=9),e+=i*t.PENALTY_N4,o(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 o(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 o(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];o(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!!(e>>>t&1)}function o(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 a=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 a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.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 a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.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*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));i+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(i,11,n)}return t<e.length&&r(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new a(a.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.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 a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.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=a;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(Mt||(Mt={})),(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={}))})(Mt||(Mt={})),(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={}))})(Mt||(Mt={}));var Vt=Mt,Ht={L:Vt.QrCode.Ecc.LOW,M:Vt.QrCode.Ecc.MEDIUM,Q:Vt.QrCode.Ecc.QUARTILE,H:Vt.QrCode.Ecc.HIGH},Wt=128,qt="L",Gt="#FFFFFF",Zt="#000000",Yt=!1;function $t(t){const n=t,{value:r,size:i=Wt,level:o=qt,bgColor:a=Gt,fgColor:s=Zt,includeMargin:l=Yt,imageSettings:u}=n,c=((e,t)=>{var n={};for(var r in e)Ut.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Dt)for(var r of Dt(e))t.indexOf(r)<0&&Ft.call(e,r)&&(n[r]=e[r]);return n})(n,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let f=Vt.QrCode.encodeText(r,Ht[o]).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,o=e.length+2*i,a=Math.floor(.1*t),s=o/t,l=(r.width||a)*s,u=(r.height||a)*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(o,a){if(!o&&null!==i)return n.push("M".concat(i+t," ").concat(r+t,"h").concat(a-i,"v1H").concat(i+t,"z")),void(i=null);if(a!==e.length-1)o&&null===i&&(i=a);else{if(!o)return;null===i?n.push("M".concat(a+t,",").concat(r+t," h1v1H").concat(a+t,"z")):n.push("M".concat(i+t,",").concat(r+t," h").concat(a+1-i,"v1H").concat(i+t,"z"))}})}),n.join("")}(f,d);return e.createElement("svg",((e,t)=>{for(var n in t||(t={}))Ut.call(t,n)&&zt(e,n,t[n]);if(Dt)for(var n of Dt(t))Ft.call(t,n)&&zt(e,n,t[n]);return e})({height:i,width:i,viewBox:"0 0 ".concat(p," ").concat(p)},c),e.createElement("path",{fill:a,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 Kt={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"]},Xt={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"]},Qt={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"]},Jt={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"]},en=n(3705);function tn(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 nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(n),!0).forEach(function(t){an(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rn(e){return rn="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},rn(e)}function on(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 an(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sn(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,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||un(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 ln(e){return function(e){if(Array.isArray(e))return cn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||un(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 un(e,t){if(e){if("string"==typeof e)return cn(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)?cn(e,t):void 0}}function cn(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 fn=function(){},dn={},pn={},hn=null,mn={mark:fn,measure:fn};try{"undefined"!=typeof window&&(dn=window),"undefined"!=typeof document&&(pn=document),"undefined"!=typeof MutationObserver&&(hn=MutationObserver),"undefined"!=typeof performance&&(mn=performance)}catch(e){}var gn,yn,vn,bn,wn,xn=(dn.navigator||{}).userAgent,_n=void 0===xn?"":xn,En=dn,kn=pn,Sn=hn,An=mn,Cn=(En.document,!!kn.documentElement&&!!kn.head&&"function"==typeof kn.addEventListener&&"function"==typeof kn.createElement),On=~_n.indexOf("MSIE")||~_n.indexOf("Trident/"),Tn="___FONT_AWESOME___",Nn="svg-inline--fa",Rn="data-fa-i2svg",jn="data-fa-pseudo-element",Pn="data-prefix",In="data-icon",Ln="fontawesome-i2svg",Mn=["HTML","HEAD","STYLE","SCRIPT"],Bn=function(){try{return!0}catch(e){return!1}}(),Dn="classic",Un="sharp",Fn=[Dn,Un];function zn(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[Dn]}})}var Vn=zn((an(gn={},Dn,{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"}),an(gn,Un,{fa:"solid",fass:"solid","fa-solid":"solid"}),gn)),Hn=zn((an(yn={},Dn,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),an(yn,Un,{solid:"fass"}),yn)),Wn=zn((an(vn={},Dn,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),an(vn,Un,{fass:"fa-solid"}),vn)),qn=zn((an(bn={},Dn,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),an(bn,Un,{"fa-solid":"fass"}),bn)),Gn=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,Zn="fa-layers-text",Yn=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,$n=zn((an(wn={},Dn,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),an(wn,Un,{900:"fass"}),wn)),Kn=[1,2,3,4,5,6,7,8,9,10],Xn=Kn.concat([11,12,13,14,15,16,17,18,19,20]),Qn=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Jn="duotone-group",er="swap-opacity",tr="primary",nr="secondary",rr=new Set;Object.keys(Hn[Dn]).map(rr.add.bind(rr)),Object.keys(Hn[Un]).map(rr.add.bind(rr));var ir=[].concat(Fn,ln(rr),["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",Jn,er,tr,nr]).concat(Kn.map(function(e){return"".concat(e,"x")})).concat(Xn.map(function(e){return"w-".concat(e)})),or=En.FontAwesomeConfig||{};kn&&"function"==typeof kn.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=sn(e,2),n=t[0],r=t[1],i=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=kn.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=i&&(or[r]=i)});var ar={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:Nn,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};or.familyPrefix&&(or.cssPrefix=or.familyPrefix);var sr=nn(nn({},ar),or);sr.autoReplaceSvg||(sr.observeMutations=!1);var lr={};Object.keys(ar).forEach(function(e){Object.defineProperty(lr,e,{enumerable:!0,set:function(t){sr[e]=t,ur.forEach(function(e){return e(lr)})},get:function(){return sr[e]}})}),Object.defineProperty(lr,"familyPrefix",{enumerable:!0,set:function(e){sr.cssPrefix=e,ur.forEach(function(e){return e(lr)})},get:function(){return sr.cssPrefix}}),En.FontAwesomeConfig=lr;var ur=[],cr=16,fr={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function dr(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function pr(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function hr(e){return e.classList?pr(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(e){return e})}function mr(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function gr(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function yr(e){return e.size!==fr.size||e.x!==fr.x||e.y!==fr.y||e.rotate!==fr.rotate||e.flipX||e.flipY}function vr(){var e="fa",t=Nn,n=lr.cssPrefix,r=lr.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 o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var br=!1;function wr(){lr.autoAddCss&&!br&&(function(e){if(e&&Cn){var t=kn.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=kn.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}kn.head.insertBefore(t,r)}}(vr()),br=!0)}var xr={mixout:function(){return{dom:{css:vr,insertCss:wr}}},hooks:function(){return{beforeDOMElementCreation:function(){wr()},beforeI2svg:function(){wr()}}}},_r=En||{};_r[Tn]||(_r[Tn]={}),_r[Tn].styles||(_r[Tn].styles={}),_r[Tn].hooks||(_r[Tn].hooks={}),_r[Tn].shims||(_r[Tn].shims=[]);var Er=_r[Tn],kr=[],Sr=!1;function Ar(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,i=e.children,o=void 0===i?[]:i;return"string"==typeof e?mr(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(mr(e[n]),'" ')},"").trim()}(r),">").concat(o.map(Ar).join(""),"</").concat(t,">")}function Cr(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}Cn&&((Sr=(kn.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(kn.readyState))||kn.addEventListener("DOMContentLoaded",function e(){kn.removeEventListener("DOMContentLoaded",e),Sr=1,kr.map(function(e){return e()})}));var Or=function(e,t,n,r){var i,o,a,s=Object.keys(e),l=s.length,u=void 0!==r?function(e,t){return function(n,r,i,o){return e.call(t,n,r,i,o)}}(t,r):t;for(void 0===n?(i=1,a=e[s[0]]):(i=0,a=n);i<l;i++)a=u(a,e[o=s[i]],o,e);return a};function Tr(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 o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function Nr(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 Rr(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==n&&n,i=Nr(t);"function"!=typeof Er.hooks.addPack||r?Er.styles[e]=nn(nn({},Er.styles[e]||{}),i):Er.hooks.addPack(e,Nr(t)),"fas"===e&&Rr("fa",t)}var jr,Pr,Ir,Lr=Er.styles,Mr=Er.shims,Br=(an(jr={},Dn,Object.values(Wn[Dn])),an(jr,Un,Object.values(Wn[Un])),jr),Dr=null,Ur={},Fr={},zr={},Vr={},Hr={},Wr=(an(Pr={},Dn,Object.keys(Vn[Dn])),an(Pr,Un,Object.keys(Vn[Un])),Pr);var qr=function(){var e=function(e){return Or(Lr,function(t,n,r){return t[r]=Or(n,e,{}),t},{})};Ur=e(function(e,t,n){if(t[3]&&(e[t[3]]=n),t[2]){var r=t[2].filter(function(e){return"number"==typeof e});r.forEach(function(t){e[t.toString(16)]=n})}return e}),Fr=e(function(e,t,n){if(e[n]=n,t[2]){var r=t[2].filter(function(e){return"string"==typeof e});r.forEach(function(t){e[t]=n})}return e}),Hr=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 Lr||lr.autoFetchSvg,n=Or(Mr,function(e,n){var r=n[0],i=n[1],o=n[2];return"far"!==i||t||(i="fas"),"string"==typeof r&&(e.names[r]={prefix:i,iconName:o}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:o}),e},{names:{},unicodes:{}});zr=n.names,Vr=n.unicodes,Dr=Kr(lr.styleDefault,{family:lr.familyDefault})};function Gr(e,t){return(Ur[e]||{})[t]}function Zr(e,t){return(Hr[e]||{})[t]}function Yr(e){return zr[e]||{prefix:null,iconName:null}}function $r(){return Dr}ur.push(function(e){Dr=Kr(e.styleDefault,{family:lr.familyDefault})}),qr();function Kr(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===t?Dn:t,r=Vn[n][e],i=Hn[n][e]||Hn[n][r],o=e in Er.styles?e:null;return i||o||null}var Xr=(an(Ir={},Dn,Object.keys(Wn[Dn])),an(Ir,Un,Object.keys(Wn[Un])),Ir);function Qr(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,r=void 0!==n&&n,i=(an(t={},Dn,"".concat(lr.cssPrefix,"-").concat(Dn)),an(t,Un,"".concat(lr.cssPrefix,"-").concat(Un)),t),o=null,a=Dn;(e.includes(i[Dn])||e.some(function(e){return Xr[Dn].includes(e)}))&&(a=Dn),(e.includes(i[Un])||e.some(function(e){return Xr[Un].includes(e)}))&&(a=Un);var s=e.reduce(function(e,t){var n=function(e,t){var n,r=t.split("-"),i=r[0],o=r.slice(1).join("-");return i!==e||""===o||(n=o,~ir.indexOf(n))?null:o}(lr.cssPrefix,t);if(Lr[t]?(t=Br[a].includes(t)?qn[a][t]:t,o=t,e.prefix=t):Wr[a].indexOf(t)>-1?(o=t,e.prefix=Kr(t,{family:a})):n?e.iconName=n:t!==lr.replacementClass&&t!==i[Dn]&&t!==i[Un]&&e.rest.push(t),!r&&e.prefix&&e.iconName){var s="fa"===o?Yr(e.iconName):{},l=Zr(e.prefix,e.iconName);s.prefix&&(o=null),e.iconName=s.iconName||l||e.iconName,e.prefix=s.prefix||e.prefix,"far"!==e.prefix||Lr.far||!Lr.fas||lr.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||a!==Un||!Lr.fass&&!lr.autoFetchSvg||(s.prefix="fass",s.iconName=Zr(s.prefix,s.iconName)||s.iconName),"fa"!==s.prefix&&"fa"!==o||(s.prefix=$r()||"fas"),s}var Jr=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]=nn(nn({},e.definitions[t]||{}),i[t]),Rr(t,i[t]);var n=Wn[Dn][t];n&&Rr(n,i[t]),qr()})}},{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,o=r.iconName,a=r.icon,s=a[2];e[i]||(e[i]={}),s.length>0&&s.forEach(function(t){"string"==typeof t&&(e[i][t]=a)}),e[i][o]=a}),e}}],n&&on(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ei=[],ti={},ni={},ri=Object.keys(ni);function ii(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(ti[e]||[]).forEach(function(e){t=e.apply(null,[t].concat(r))}),t}function oi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(ti[e]||[]).forEach(function(e){e.apply(null,n)})}function ai(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return ni[e]?ni[e].apply(null,t):void 0}function si(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||$r();if(t)return t=Zr(n,t)||t,Cr(li.definitions,n,t)||Cr(Er.styles,n,t)}var li=new Jr,ui={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Cn?(oi("beforeI2svg",e),ai("pseudoElements2svg",e),ai("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===lr.autoReplaceSvg&&(lr.autoReplaceSvg=!0),lr.observeMutations=!0,e=function(){di({autoReplaceSvgRoot:n}),oi("watch",t)},Cn&&(Sr?setTimeout(e,0):kr.push(e))}},ci={icon:function(e){if(null===e)return null;if("object"===rn(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Zr(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=Kr(e[0]);return{prefix:n,iconName:Zr(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(lr.cssPrefix,"-"))>-1||e.match(Gn))){var r=Qr(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||$r(),iconName:Zr(r.prefix,r.iconName)||r.iconName}}if("string"==typeof e){var i=$r();return{prefix:i,iconName:Zr(i,e)||e}}}},fi={noAuto:function(){lr.autoReplaceSvg=!1,lr.observeMutations=!1,oi("noAuto")},config:lr,dom:ui,parse:ci,library:li,findIconDefinition:si,toHtml:Ar},di=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?kn:e;(Object.keys(Er.styles).length>0||lr.autoFetchSvg)&&Cn&&lr.autoReplaceSvg&&fi.dom.i2svg({node:t})};function pi(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(e){return Ar(e)})}}),Object.defineProperty(e,"node",{get:function(){if(Cn){var t=kn.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function hi(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,a=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=[lr.replacementClass,o?"".concat(lr.cssPrefix,"-").concat(o):""].filter(function(e){return-1===f.classes.indexOf(e)}).filter(function(e){return""!==e||!!e}).concat(f.classes).join(" "),b={children:[],attributes:nn(nn({},f.attributes),{},{"data-prefix":i,"data-icon":o,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[Rn]=""),l&&(b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(c||dr())},children:[l]}),delete b.attributes.title);var x=nn(nn({},b),{},{prefix:i,iconName:o,main:n,mask:r,maskId:u,transform:a,symbol:s,styles:nn(nn({},w),f.styles)}),_=r.found&&n.found?ai("generateAbstractMask",x)||{children:[],attributes:{}}:ai("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,o=e.symbol,a=!0===o?"".concat(t,"-").concat(lr.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:nn(nn({},i),{},{id:a}),children:r}]}]}(x):function(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,a=e.transform;if(yr(a)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};i.style=gr(nn(nn({},o),{},{"transform-origin":"".concat(s.x+a.x/16,"em ").concat(s.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(x)}function mi(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.title,a=e.extra,s=e.watchable,l=void 0!==s&&s,u=nn(nn(nn({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});l&&(u[Rn]="");var c=nn({},a.styles);yr(i)&&(c.transform=function(e){var t=e.transform,n=e.width,r=void 0===n?16:n,i=e.height,o=void 0===i?16:i,a=e.startCentered,s=void 0!==a&&a,l="";return l+=s&&On?"translate(".concat(t.x/cr-r/2,"em, ").concat(t.y/cr-o/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/cr,"em), calc(-50% + ").concat(t.y/cr,"em)) "):"translate(".concat(t.x/cr,"em, ").concat(t.y/cr,"em) "),(l+="scale(".concat(t.size/cr*(t.flipX?-1:1),", ").concat(t.size/cr*(t.flipY?-1:1),") "))+"rotate(".concat(t.rotate,"deg) ")}({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);var f=gr(c);f.length>0&&(u.style=f);var d=[];return d.push({tag:"span",attributes:u,children:[t]}),o&&d.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),d}var gi=Er.styles;function yi(e){var t=e[0],n=e[1],r=sn(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(lr.cssPrefix,"-").concat(Jn)},children:[{tag:"path",attributes:{class:"".concat(lr.cssPrefix,"-").concat(nr),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(lr.cssPrefix,"-").concat(tr),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var vi={found:!1,width:512,height:512};function bi(e,t){var n=t;return"fa"===t&&null!==lr.styleDefault&&(t=$r()),new Promise(function(r,i){if(ai("missingIconAbstract"),"fa"===n){var o=Yr(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&gi[t]&&gi[t][e])return r(yi(gi[t][e]));!function(e,t){Bn||lr.showMissingIcons||!e||en.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(nn(nn({},vi),{},{icon:lr.showMissingIcons&&e&&ai("missingIconAbstract")||{}}))})}var wi=function(){},xi=lr.measurePerformance&&An&&An.mark&&An.measure?An:{mark:wi,measure:wi},_i='FA "6.2.0"',Ei=function(e){xi.mark("".concat(_i," ").concat(e," ends")),xi.measure("".concat(_i," ").concat(e),"".concat(_i," ").concat(e," begins"),"".concat(_i," ").concat(e," ends"))},ki=function(e){return xi.mark("".concat(_i," ").concat(e," begins")),function(){return Ei(e)}},Si=function(){};function Ai(e){return"string"==typeof(e.getAttribute?e.getAttribute(Rn):null)}function Ci(e){return kn.createElementNS("http://www.w3.org/2000/svg",e)}function Oi(e){return kn.createElement(e)}function Ti(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===t?"svg"===e.tag?Ci:Oi:t;if("string"==typeof e)return kn.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(Ti(e,{ceFn:n}))}),r}var Ni={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(e){t.parentNode.insertBefore(Ti(e),t)}),null===t.getAttribute(Rn)&&lr.keepOriginalSource){var n=kn.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(~hr(t).indexOf(lr.replacementClass))return Ni.replace(e);var r=new RegExp("".concat(lr.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce(function(e,t){return t===lr.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 o=n.map(function(e){return Ar(e)}).join("\n");t.setAttribute(Rn,""),t.innerHTML=o}};function Ri(e){e()}function ji(e,t){var n="function"==typeof t?t:Si;if(0===e.length)n();else{var r=Ri;"async"===lr.mutateApproach&&(r=En.requestAnimationFrame||Ri),r(function(){var t=!0===lr.autoReplaceSvg?Ni.replace:Ni[lr.autoReplaceSvg]||Ni.replace,r=ki("mutate");e.map(t),r(),n()})}}var Pi=!1;function Ii(){Pi=!0}function Li(){Pi=!1}var Mi=null;function Bi(e){if(Sn&&lr.observeMutations){var t=e.treeCallback,n=void 0===t?Si:t,r=e.nodeCallback,i=void 0===r?Si:r,o=e.pseudoElementsCallback,a=void 0===o?Si:o,s=e.observeMutationsRoot,l=void 0===s?kn:s;Mi=new Sn(function(e){if(!Pi){var t=$r();pr(e).forEach(function(e){if("childList"===e.type&&e.addedNodes.length>0&&!Ai(e.addedNodes[0])&&(lr.searchPseudoElements&&a(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&lr.searchPseudoElements&&a(e.target.parentNode),"attributes"===e.type&&Ai(e.target)&&~Qn.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(Pn):null,n=e.getAttribute?e.getAttribute(In):null;return t&&n}(e.target)){var r=Qr(hr(e.target)),o=r.prefix,s=r.iconName;e.target.setAttribute(Pn,o||t),s&&e.target.setAttribute(In,s)}else(l=e.target)&&l.classList&&l.classList.contains&&l.classList.contains(lr.replacementClass)&&i(e.target);var l})}}),Cn&&Mi.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Di(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=function(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"",i=Qr(hr(e));return i.prefix||(i.prefix=$r()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=function(e,t){return(Fr[e]||{})[t]}(i.prefix,e.innerText)||Gr(i.prefix,Tr(e.innerText))),!i.iconName&&lr.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}(e),r=n.iconName,i=n.prefix,o=n.rest,a=function(e){var t=pr(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 lr.autoA11y&&(n?t["aria-labelledby"]="".concat(lr.replacementClass,"-title-").concat(r||dr()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),s=ii("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 nn({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:fr,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:a}},s)}var Ui=Er.styles;function Fi(e){var t="nest"===lr.autoReplaceSvg?Di(e,{styleParser:!1}):Di(e);return~t.extra.classes.indexOf(Zn)?ai("generateLayersText",e,t):ai("generateSvgReplacementMutation",e,t)}var zi=new Set;function Vi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Cn)return Promise.resolve();var n=kn.documentElement.classList,r=function(e){return n.add("".concat(Ln,"-").concat(e))},i=function(e){return n.remove("".concat(Ln,"-").concat(e))},o=lr.autoFetchSvg?zi:Fn.map(function(e){return"fa-".concat(e)}).concat(Object.keys(Ui));o.includes("fa")||o.push("fa");var a=[".".concat(Zn,":not([").concat(Rn,"])")].concat(o.map(function(e){return".".concat(e,":not([").concat(Rn,"])")})).join(", ");if(0===a.length)return Promise.resolve();var s=[];try{s=pr(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");var l=ki("onTree"),u=s.reduce(function(e,t){try{var n=Fi(t);n&&e.push(n)}catch(e){Bn||"MissingIcon"===e.name&&en.error(e)}return e},[]);return new Promise(function(e,n){Promise.all(u).then(function(n){ji(n,function(){r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),l(),e()})}).catch(function(e){l(),n(e)})})}function Hi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Fi(e).then(function(e){e&&ji([e],t)})}Fn.map(function(e){zi.add("fa-".concat(e))}),Object.keys(Vn[Dn]).map(zi.add.bind(zi)),Object.keys(Vn[Un]).map(zi.add.bind(zi)),zi=ln(zi);var Wi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?fr:n,i=t.symbol,o=void 0!==i&&i,a=t.mask,s=void 0===a?null:a,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 pi(nn({type:"icon"},e),function(){return oi("beforeDOMElementCreation",{iconDefinition:e,params:t}),lr.autoA11y&&(f?y["aria-labelledby"]="".concat(lr.replacementClass,"-title-").concat(p||dr()):(y["aria-hidden"]="true",y.focusable="false")),hi({icons:{main:yi(_),mask:s?yi(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:x,transform:nn(nn({},fr),r),symbol:o,title:f,maskId:u,titleId:p,extra:{attributes:y,styles:b,classes:m}})})}},qi={mixout:function(){return{icon:(e=Wi,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:si(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:si(i||{})),e(r,nn(nn({},n),{},{mask:i}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Vi,e.nodeCallback=Hi,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?kn:t,r=e.callback;return Vi(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,i=t.titleId,o=t.prefix,a=t.transform,s=t.symbol,l=t.mask,u=t.maskId,c=t.extra;return new Promise(function(t,f){Promise.all([bi(n,o),l.iconName?bi(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(l){var f=sn(l,2),d=f[0],p=f[1];t([e,hi({icons:{main:d,mask:p},prefix:o,iconName:n,transform:a,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,o=e.transform,a=gr(e.styles);return a.length>0&&(r.style=a),yr(o)&&(t=ai("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(t||i.icon),{children:n,attributes:r}}}},Gi={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 pi({type:"layer"},function(){oi("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(lr.cssPrefix,"-layers")].concat(ln(r)).join(" ")},children:n}]})}}}},Zi={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,o=void 0===i?[]:i,a=t.attributes,s=void 0===a?{}:a,l=t.styles,u=void 0===l?{}:l;return pi({type:"counter",content:e},function(){return oi("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,n=e.title,r=e.extra,i=nn(nn(nn({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=gr(r.styles);o.length>0&&(i.style=o);var a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}({content:e.toString(),title:r,extra:{attributes:s,styles:u,classes:["".concat(lr.cssPrefix,"-layers-counter")].concat(ln(o))}})})}}}},Yi={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?fr:n,i=t.title,o=void 0===i?null:i,a=t.classes,s=void 0===a?[]:a,l=t.attributes,u=void 0===l?{}:l,c=t.styles,f=void 0===c?{}:c;return pi({type:"text",content:e},function(){return oi("beforeDOMElementCreation",{content:e,params:t}),mi({content:e,transform:nn(nn({},fr),r),title:o,extra:{attributes:u,styles:f,classes:["".concat(lr.cssPrefix,"-layers-text")].concat(ln(s))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,i=t.extra,o=null,a=null;if(On){var s=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();o=l.width/s,a=l.height/s}return lr.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,mi({content:e.innerHTML,width:o,height:a,transform:r,title:n,extra:i,watchable:!0})])}}},$i=new RegExp('"',"ug"),Ki=[1105920,1112319];function Xi(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 o=pr(e.children).filter(function(e){return e.getAttribute(jn)===t})[0],a=En.getComputedStyle(e,t),s=a.getPropertyValue("font-family").match(Yn),l=a.getPropertyValue("font-weight"),u=a.getPropertyValue("content");if(o&&!s)return e.removeChild(o),r();if(s&&"none"!==u&&""!==u){var c=a.getPropertyValue("content"),f=~["Sharp"].indexOf(s[2])?Un:Dn,d=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?Hn[f][s[2].toLowerCase()]:$n[f][l],p=function(e){var t=e.replace($i,""),n=function(e){var t,n=e.length,r=e.charCodeAt(0);return r>=55296&&r<=56319&&n>1&&(t=e.charCodeAt(1))>=56320&&t<=57343?1024*(r-55296)+t-56320+65536:r}(t),r=n>=Ki[0]&&n<=Ki[1],i=2===t.length&&t[0]===t[1];return{value:Tr(i?t[0]:t),isSecondary:r||i}}(c),h=p.value,m=p.isSecondary,g=s[0].startsWith("FontAwesome"),y=Gr(d,h),v=y;if(g){var b=function(e){var t=Vr[e],n=Gr("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||o&&o.getAttribute(Pn)===d&&o.getAttribute(In)===v)r();else{e.setAttribute(n,v),o&&e.removeChild(o);var w={iconName:null,title:null,titleId:null,prefix:null,transform:fr,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},x=w.extra;x.attributes[jn]=t,bi(y,d).then(function(i){var o=hi(nn(nn({},w),{},{icons:{main:i,mask:{prefix:null,iconName:null,rest:[]}},prefix:d,iconName:v,extra:x,watchable:!0})),a=kn.createElement("svg");"::before"===t?e.insertBefore(a,e.firstChild):e.appendChild(a),a.outerHTML=o.map(function(e){return Ar(e)}).join("\n"),e.removeAttribute(n),r()}).catch(i)}}else r()})}function Qi(e){return Promise.all([Xi(e,"::before"),Xi(e,"::after")])}function Ji(e){return!(e.parentNode===document.head||~Mn.indexOf(e.tagName.toUpperCase())||e.getAttribute(jn)||e.parentNode&&"svg"===e.parentNode.tagName)}function eo(e){if(Cn)return new Promise(function(t,n){var r=pr(e.querySelectorAll("*")).filter(Ji).map(Qi),i=ki("searchPseudoElements");Ii(),Promise.all(r).then(function(){i(),Li(),t()}).catch(function(){i(),Li(),n()})})}var to=!1,no=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})},ro={mixout:function(){return{parse:{transform:function(e){return no(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=no(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,i=e.iconWidth,o={transform:"translate(".concat(r/2," 256)")},a="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:o,inner:{transform:"".concat(a," ").concat(s," ").concat(l)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:nn({},u.outer),children:[{tag:"g",attributes:nn({},u.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:nn(nn({},t.icon.attributes),u.path)}]}]}}}},io={x:0,y:0,width:"100%",height:"100%"};function oo(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var ao={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?Qr(n.split(" ").map(function(e){return e.trim()})):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=$r()),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,o=e.mask,a=e.maskId,s=e.transform,l=i.width,u=i.icon,c=o.width,f=o.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,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(i," ").concat(o," ").concat(a)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:s,containerWidth:c,iconWidth:l}),p={tag:"rect",attributes:nn(nn({},io),{},{fill:"white"})},h=u.children?{children:u.children.map(oo)}:{},m={tag:"g",attributes:nn({},d.inner),children:[oo(nn({tag:u.tag,attributes:nn(nn({},u.attributes),d.path)},h))]},g={tag:"g",attributes:nn({},d.outer),children:[m]},y="mask-".concat(a||dr()),v="clip-".concat(a||dr()),b={tag:"mask",attributes:nn(nn({},io),{},{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:nn({fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(y,")")},io)}),{children:n,attributes:r}}}},so={provides:function(e){var t=!1;En.matchMedia&&(t=En.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:nn(nn({},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=nn(nn({},r),{},{attributeName:"opacity"}),o={tag:"circle",attributes:nn(nn({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:nn(nn({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:nn(nn({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(o),e.push({tag:"path",attributes:nn(nn({},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:nn(nn({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:nn(nn({},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:nn(nn({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){var n=t.mixoutsTo;ei=e,ti={},Object.keys(ni).forEach(function(e){-1===ri.indexOf(e)&&delete ni[e]}),ei.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"===rn(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){ti[e]||(ti[e]=[]),ti[e].push(r[e])})}e.provides&&e.provides(ni)})}([xr,qi,Gi,Zi,Yi,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=eo,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?kn:t;lr.searchPseudoElements&&eo(n)}}},{mixout:function(){return{dom:{unwatch:function(){Ii(),to=!0}}}},hooks:function(){return{bootstrap:function(){Bi(ii("mutationObserverCallbacks",{}))},noAuto:function(){Mi&&Mi.disconnect()},watch:function(e){var t=e.observeMutationsRoot;to?Li():Bi(ii("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},ro,ao,so,{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:fi});var lo=fi.parse,uo=fi.icon,co=n(1942),fo=n.n(co),po=n(3705);function ho(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 mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ho(Object(n),!0).forEach(function(t){yo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ho(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function go(e){return go="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},go(e)}function yo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vo(e){return function(e){if(Array.isArray(e))return bo(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 bo(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)?bo(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 bo(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 wo(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 xo=["style"],_o=!1;try{_o=!0}catch(e){}function Eo(e){return e&&"object"===go(e)&&e.prefix&&e.iconName&&e.icon?e:lo.icon?lo.icon(e):null===e?null:e&&"object"===go(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 ko(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?yo({},e,t):{}}var So=e.forwardRef(function(e,t){var n=e.icon,r=e.mask,i=e.symbol,o=e.className,a=e.title,s=e.titleId,l=e.maskId,u=Eo(n),c=ko("classes",[].concat(vo(function(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=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=(yo(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"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),yo(t,"fa-rotate-".concat(v),null!=v&&0!==v),yo(t,"fa-pull-".concat(b),null!=b),yo(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)),vo(o.split(" ")))),f=ko("transform","string"==typeof e.transform?lo.transform(e.transform):e.transform),d=ko("mask",Eo(r)),p=uo(u,mo(mo(mo(mo({},c),f),d),{},{symbol:i,title:a,titleId:s,maskId:l}));if(!p)return function(){var e;!_o&&po&&"function"==typeof po.error&&(e=po).error.apply(e,arguments)}("Could not find icon",u),null;var h=p.abstract,m={ref:t};return Object.keys(e).forEach(function(t){So.defaultProps.hasOwnProperty(t)||(m[t]=e[t])}),Ao(h[0],m)});So.displayName="FontAwesomeIcon",So.propTypes={beat:fo().bool,border:fo().bool,beatFade:fo().bool,bounce:fo().bool,className:fo().string,fade:fo().bool,flash:fo().bool,mask:fo().oneOfType([fo().object,fo().array,fo().string]),maskId:fo().string,fixedWidth:fo().bool,inverse:fo().bool,flip:fo().oneOf([!0,!1,"horizontal","vertical","both"]),icon:fo().oneOfType([fo().object,fo().array,fo().string]),listItem:fo().bool,pull:fo().oneOf(["right","left"]),pulse:fo().bool,rotation:fo().oneOf([0,90,180,270]),shake:fo().bool,size:fo().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:fo().bool,spinPulse:fo().bool,spinReverse:fo().bool,symbol:fo().oneOfType([fo().bool,fo().string]),title:fo().string,titleId:fo().string,transform:fo().oneOfType([fo().string,fo().object]),swapOpacity:fo().bool},So.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 Ao=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)}),o=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=wo(t.slice(0,r)),o=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=o:e[i]=o,e},{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[wo(t)]=r}return e},{attrs:{}}),a=r.style,s=void 0===a?{}:a,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(r,xo);return o.attrs.style=mo(mo({},o.attrs.style),s),t.apply(void 0,[n.tag,mo(mo({},o.attrs),l)].concat(vo(i)))}.bind(null,e.createElement);function Co(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)(So,{icon:Kt,className:"tw-text-[65%] hover:tw-scale-110 tw-ease-linear tw-duration-[50ms]"}),r&&(0,d.jsx)(So,{icon:Jt,className:"tw-text-[65%] tw-text-green-600"})]})}function Oo(t){const{particle:n}=t,{index:r}=n,{state:i}=(0,e.useContext)(m),{gameState:o}=i,a=null==o?void 0:o.reactionIconOverrides,s=Et[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==a?void 0:a[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 To(t){const{state:n}=(0,e.useContext)(m),{clientId:r}=t,i=n.reactions[r],[o,a]=(0,e.useState)([]);return(0,e.useEffect)(()=>{if(i&&!o.find(e=>e.id===i.id)){const e={id:i.id,index:i.index,startTime:Date.now()};a(t=>[...t,e])}},[i,o,a]),(0,e.useEffect)(()=>{const e=setInterval(()=>{const e=Date.now();a(o.filter(t=>e-t.startTime<5e3))},1e3);return()=>clearInterval(e)},[o,a]),(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:o.map(e=>(0,d.jsx)(Oo,{particle:e},e.id))})})}function No(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 Ro(t){const{children:n,visible:r,className:i,ignoreRefs:o,onClickedOutside:a}=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,...o||[]],()=>a()),r?(0,d.jsx)("div",{ref:l,className:i,children:n}):null}function jo(e){const{children:t,visible:n,ignoreRefs:r,onClickedOutside:i}=e;return(0,d.jsx)(Ro,{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 Po(t){const{state:n,dispatch:r}=(0,e.useContext)(m),{presence:i,clientRole:o,playerSlot:a,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:o}),f(!1),r(k("leave-game"))},v=g.find(e=>e.slot===u),b=(()=>{const e="host"===o,t=1===u,n=u===a,i=g.filter(e=>e.slot===u).shift();return e&&n?(0,d.jsx)(jo,{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)(jo,{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)(jo,{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===a,_=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 !tw-bg-white",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)(No,{slot:w?0:u,dataUri:_}),v&&(0,d.jsx)(To,{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 Io(){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)(Po,{slot:e},e))})}function Lo(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 Mo(){const{state:t}=(0,e.useContext)(m),[n,r]=(0,e.useState)(!1),i=(0,e.useRef)(null),o=(0,e.useCallback)(e=>{i.current=e},[]),{gameState:a}=t,s=null==a?void 0:a.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;Et[r]&&St(r)}},t=e=>{const t=parseInt(e.key)-1;Et[t]&&St(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)(Ro,{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:Et.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 St(e)})(t)},t+1)})})})}),(0,d.jsx)(L,{label:(0,d.jsx)(Lo,{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=>{o(e)}})]})}function Bo(){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)(Mo,{}),(0,d.jsx)(Io,{})]})}function Do(){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 o=lf("Have your friend go to {0} and enter code","{0}").split("{0}"),a=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:[o[0],(0,d.jsx)(F,{href:a,target:"_blank",className:"tw-text-primary-color tw-font-bold hover:tw-text-orange-300",children:a}),o[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)(Co,{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)($t,{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=ht)||void 0===e?void 0:e.startGameAsync())}()}catch(e){}}()}}),(0,d.jsx)(F,{href:"/multiplayer#safety",target:"_blank",className:"tw-text-sm tw-mt-1 tw-mb-7",children:lf("Multiplayer Online Safety")}),(0,d.jsx)(Bo,{})]})})}function Uo(){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)(Co,{copyValue:i,title:lf("Copy join link"),eventName:"mp.copyjoinlink",label:r,toastMessage:lf("Join link copied")})]})})}function Fo(){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)(Bo,{})})]})})}function zo(){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)(Lo,{})})]})]})}function Vo(){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)(Ro,{className:"tw-absolute tw-translate-y-[-105%]",visible:t,ignoreRefs:[r],onClickedOutside:()=>n(!1),children:(0,d.jsx)(zo,{})}),(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 Ho(){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 Wo(){const{state:t}=(0,e.useContext)(m);return(0,e.useEffect)(()=>{var e;null===(e=ot())||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 qo(t){var n,r;const{state:i}=(0,e.useContext)(m),{netMode:o,clientRole:a}=i;return(0,d.jsxs)(d.Fragment,{children:["connecting"===o&&(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"===a&&(0,d.jsx)(Do,{}),"guest"===a&&(0,d.jsx)(Fo,{})]}),(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)(Lt,{}),(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)(Wo,{}),(0,d.jsx)("div",{className:"tw-hidden sm:tw-inline-block",children:(0,d.jsx)(Ho,{})})]}),(0,d.jsx)("div",{className:"tw-mr-1 sm:tw-mr-0",children:(0,d.jsx)(Uo,{})}),(0,d.jsx)("div",{className:"tw-hidden sm:tw-inline",children:(0,d.jsx)(Vo,{})}),(0,d.jsx)("div",{className:"tw-inline-block sm:tw-hidden",children:(0,d.jsx)(Ho,{})})]}),(0,d.jsx)("div",{className:"tw-mt-3",children:(0,d.jsx)(Bo,{})})]})]})}function Go(){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)(Pt,{}),"init"!==n&&(0,d.jsx)(qo,{})]})}const Zo=e=>(0,d.jsx)(D,{...e,role:"menubar",className:j("common-menubar",e.className)}),Yo=e.createContext(null),$o=e.createContext(null),Ko=t=>{let{children:n}=t;const[r,i]=e.useReducer(Xo,{regions:[]});return(0,d.jsx)(Yo.Provider,{value:r,children:(0,d.jsx)($o.Provider,{value:i,children:n})})};function Xo(e,t){let n=e.regions.slice();switch(t.type){case"ADD_REGION":const r={id:t.id,enabled:t.enabled,order:t.order,onEscape:t.onEscape},i=n.findIndex(e=>e.id===t.id);-1!==i?n.splice(i,1,r):n.push(r);break;case"REMOVE_REGION":const o=e.regions.findIndex(e=>e.id===t.id);-1!==o&&n.splice(o,1)}return{regions:n}}const Qo=e=>(0,d.jsx)(Ko,{children:(0,d.jsx)(Jo,{...e})}),Jo=t=>{const{children:n,id:r,className:i,onEscape:o,arrowKeyNavigation:a,dontStealFocus:s,includeOutsideTabOrder:l,dontRestoreFocus:u,dontTrapFocus:c,focusFirstItem:f,tagName:d,role:p,ariaLabelledby:h,ariaLabel:m,ariaHidden:g}=t,y=e.useRef(null),v=e.useRef(document.activeElement),[b,w]=e.useState(!1),x=e.useRef(null),{regions:_}=e.useContext(Yo);e.useEffect(()=>()=>{!u&&v.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()}(v.current)},[]);const E=e.useCallback(()=>{var e,t;let n=function(e){const t=[];for(const n of e)t.push(n);return t}(l?null===(e=y.current)||void 0===e?void 0:e.querySelectorAll("[tabindex]"):null===(t=y.current)||void 0===t?void 0:t.querySelectorAll('[tabindex]:not([tabindex="-1"])'));if(_.length){const e={};for(const t of _){var r;const n=null===(r=y.current)||void 0===r?void 0:r.querySelector('[data-focus-trap-region="'.concat(t.id,'"]'));n&&(e[t.id]=n)}for(const t of _){const r=e[t.id];!t.enabled&&r&&(n=n.filter(e=>!r.contains(e)))}const t=n.slice();n.sort((n,r)=>{const i=_.find(t=>{var r;return t.enabled&&(null===(r=e[t.id])||void 0===r?void 0:r.contains(n))}),o=_.find(t=>{var n;return t.enabled&&(null===(n=e[t.id])||void 0===n?void 0:n.contains(r))});return(null==i?void 0:i.order)===(null==o?void 0:o.order)?t.indexOf(n)-t.indexOf(r):i?o?i.order-o.order:-1:1})}return n},[_,l]),k=e.useCallback(e=>{if(!e)return;y.current=e;const t=E();s||b||e.contains(document.activeElement)||!t.length||(y.current.focus(),f&&I(t,-1,0,!0).focus(),w(!0))},[E,s,b,f]),S=e.useCallback(e=>{if(!y.current)return;const t=(t,n)=>{const r=E();if(!r.length)return;let i,o=r.indexOf(e.target);o<0&&(o=r.indexOf(x.current)),i=t?n?I(r,o,r.length-1,t):o===r.length-1?I(r,o,0,t):I(r,o,o+1,t):I(r,o,n?0:0===o?r.length-1:Math.max(o-1,0),t),x.current=i,i.focus(),e.preventDefault(),e.stopPropagation()};if("Escape"===e.key){let t=!1;if(_.length)for(const e of _){var n;if(!e.onEscape)continue;const r=null===(n=y.current)||void 0===n?void 0:n.querySelector('[data-focus-trap-region="'.concat(e.id,'"]'));if(null!=r&&r.contains(document.activeElement)){t=!0,e.onEscape();break}}t||o(),e.preventDefault(),e.stopPropagation()}else"Tab"===e.key?c?o():e.shiftKey?t(!1,!1):t(!0,!1):a&&("ArrowDown"===e.key?t(!0,!1):"ArrowUp"===e.key?t(!1,!1):"Home"===e.key?t(!1,!0):"End"===e.key&&t(!0,!0))},[E,o,a,_,c]);return e.createElement(d||"div",{id:r,className:j("common-focus-trap",i),ref:k,onKeyDown:S,role:p,tabIndex:-1,"aria-labelledby":h,"aria-label":m,"aria-hidden":g},n)},ea=e=>{const{id:t,className:n,ariaHidden:r,ariaLabel:i,role:o,isChecked:a,onChange:s,label:l,style:u,tabIndex:c}=e;return(0,d.jsxs)("div",{className:j("common-checkbox",n,"toggle"===u&&"toggle"),children:[(0,d.jsx)("input",{id:t,tabIndex:null!=c?c:0,type:"checkbox",checked:a,onChange:()=>{s(!a)},onKeyDown:R,role:o,"aria-hidden":r,"aria-label":i}),l&&(0,d.jsx)("label",{htmlFor:t,children:l})]})},ta=e=>{const{isChecked:t}=e;return(0,d.jsx)("span",{className:j("common-checkbox-icon",t&&"checked"),children:t&&(0,d.jsx)("i",{className:"fas fa-check"})})},na=t=>{const{id:n,className:r,ariaHidden:i,ariaLabel:o,role:a,items:s,label:l,title:u,icon:c,tabIndex:f,disabled:p}=t,[h,m]=e.useState(!1),g=e.useRef(!1);let y,v;e.useEffect(()=>{if(h&&y&&g.current){const e=y.querySelector("[role=menu]");if(!e)return;const t=e.querySelectorAll("[role=menuitem], [role=menuitemcheckbox], [role=menuitemradio]");for(const e of t){const t=e;if(null!==t.offsetParent){t.focus();break}}}},[h]);const b=j("common-menu-dropdown",r),w=n+"-menu",x=function(e){const t=[];let n={items:[]};for(const r of e)"separator"===r.role?(n.className=r.className,n.items.length>0&&(t.push(n),n={items:[]})):n.items.push(r);return n.items.length>0&&t.push(n),t}(s);return(0,d.jsxs)("div",{className:b,ref:e=>{e&&(y=e)},onBlur:e=>{y&&h&&!y.contains(e.relatedTarget)&&m(!1)},children:[(0,d.jsx)(L,{id:n,label:l,tabIndex:f,buttonRef:e=>{e&&(v=e)},title:u,leftIcon:c,role:a||"menuitem",className:j("menu-button",h&&"expanded"),onClick:null,onClickEvent:e=>{g.current=0===e.detail,m(!h)},ariaHasPopup:"true",ariaExpanded:h,ariaControls:h?w:void 0,ariaLabel:o,ariaHidden:i,disabled:p,onKeydown:e=>{"ArrowDown"!==e.key||h||(g.current=!0,m(!0))}}),h&&(0,d.jsx)(Qo,{role:"menu",className:"common-menu-dropdown-pane",id:w,arrowKeyNavigation:!0,onEscape:()=>{m(!1),v&&v.focus()},includeOutsideTabOrder:!0,dontTrapFocus:!0,dontRestoreFocus:!0,focusFirstItem:!1,ariaLabelledby:n,tagName:"ul",children:x.map((t,n)=>(0,d.jsxs)(e.Fragment,{children:[t.items.map((t,r)=>{const i="".concat(n,"-").concat(r);return"menuitem"===t.role?(0,e.createElement)(ra,{...t,key:i,onClick:()=>{var e;m(!1),null===(e=t.onClick)||void 0===e||e.call(t)}}):"link"===t.role?(0,e.createElement)(oa,{...t,key:i,onClick:()=>{var e;m(!1),null===(e=t.onClick)||void 0===e||e.call(t)}}):(0,e.createElement)(ia,{...t,key:i,onChange:e=>{var n;m(!1),null===(n=t.onChange)||void 0===n||n.call(t,e)}})}),n<x.length-1&&(0,d.jsx)("li",{role:"separator",className:j("common-menu-dropdown-separator",t.className)})]},n))})]})},ra=e=>{const t=B(e);return(0,d.jsx)("li",{...t,className:j("common-menu-dropdown-item",t.className),role:"menuitem",tabIndex:-1,children:(0,d.jsx)(M,{...e})})},ia=e=>{const{label:t,isChecked:n,onChange:r,id:i,className:o,ariaLabel:a,ariaHidden:s,ariaDescribedBy:l}=e;return(0,d.jsxs)("li",{role:"menuitemcheckbox",tabIndex:-1,className:j("common-menu-dropdown-item","common-menu-dropdown-checkbox-item",o),"aria-label":a,"aria-hidden":s,"aria-describedby":l,"aria-checked":n?"true":"false",onClick:()=>r(!n),onKeyDown:R,id:i,children:[(0,d.jsx)(ta,{isChecked:n}),(0,d.jsx)("span",{children:t})]})},oa=e=>{const{href:t,label:n,id:r,className:i,ariaLabel:o,ariaHidden:a,ariaDescribedBy:s,onClick:l}=e;return(0,d.jsx)("li",{role:"none",children:(0,d.jsx)("a",{role:"menuitem",className:j("common-menu-dropdown-item","common-menu-dropdown-link-item",i),"aria-label":o,"aria-hidden":a,"aria-describedby":s,id:r,tabIndex:-1,href:t,target:"_blank",rel:"noopener noreferrer",onClick:l,onKeyDown:R,children:n})})};function aa(){var t,n,r,i,o,a,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===(o=pxt)||void 0===o||null===(a=o.appTarget)||void 0===a||null===(s=a.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")},S=()=>{pxt.tickEvent("mp.settingsmenu.termsofuse")},A=()=>{pxt.tickEvent("mp.settingsmenu.onlinesafety")},C=()=>{pxt.tickEvent("mp.home");const e=pxt.U.getHomeUrl();e&&window.open(e,"_self")},O=()=>{pxt.tickEvent("mp.signin"),u(k("sign-in",{dialogMessages:x}))},N=async()=>{pxt.tickEvent("mp.usermenu.signout"),await async function(){try{gt(),await async function(){const e=await De();return await(null==e?void 0:e.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},j=(()=>{var e;const t=[];b&&t.push({role:"link",id:"privacy",href:b,label:lf("Privacy"),onClick:E}),w&&t.push({role:"link",id:"termsOfUse",label:lf("Terms of Use"),href:w,onClick:S}),t.push({role:"link",id:"safety",label:lf("Online Safety"),href:"/multiplayer#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({role:"menuitem",id:"report",title:lf("Report Abuse"),label:lf("Report Abuse"),onClick:_}),t})();return(0,d.jsxs)(Zo,{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:Ze(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:Ze(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),(P=v,(0,d.jsx)("div",{className:"tw-flex tw-pt-[2px] tw-ml-3 tw-cursor-pointer",onClick:C,children:P.useTextLogo?[(0,d.jsx)("span",{className:"tw-ml-3 tw-hidden sm:tw-flex",onClick:C,children:P.organizationText},"org-name"),(0,d.jsx)("span",{className:"tw-ml-3 tw-flex sm:tw-hidden",onClick:C,children:P.organizationShortText||P.organizationText},"org-name-short")]:P.logo||P.portraitLogo?(0,d.jsx)("img",{className:"logo",src:Ze(P.logo||P.portraitLogo),alt:lf("{0} Logo",P.boardName)}):(0,d.jsxs)("span",{className:"name",children:[" ",P.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==j?void 0:j.length)>0&&(0,d.jsx)(na,{className:"h-full",id:"settings-help",title:lf("Settings menu"),icon:"fas fa-cog large",items:j}),y&&(()=>{const e=[];"signed-in"===c&&e.push({role:"menuitem",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)(na,{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 P}var sa=function(e,t){return sa=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])},sa(e,t)};function la(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}sa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ua=function(){return ua=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},ua.apply(this,arguments)};function ca(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 fa(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function da(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;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 pa=1/60*1e3,ha="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),ma="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(ha()),pa);let ga=!0,ya=!1,va=!1;const ba={delta:0,timestamp:0},wa=["read","update","preRender","render","postRender"],xa=wa.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1;const a=new WeakSet,s={schedule:function(e){const o=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&i,s=o?t:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&a.add(e),-1===s.indexOf(e)&&(s.push(e),o&&i&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(i)o=!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(l),a.has(r)&&(s.schedule(r),e())}i=!1,o&&(o=!1,s.process(l))}}};return s}(()=>ya=!0),e),{}),_a=wa.reduce((e,t)=>{const n=xa[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 ya||Ca(),n.schedule(e,t,r)},e},{}),Ea=wa.reduce((e,t)=>(e[t]=xa[t].cancel,e),{}),ka=wa.reduce((e,t)=>(e[t]=()=>xa[t].process(ba),e),{}),Sa=e=>xa[e].process(ba),Aa=e=>{ya=!1,ba.delta=ga?pa:Math.max(Math.min(e-ba.timestamp,40),1),ba.timestamp=e,va=!0,wa.forEach(Sa),va=!1,ya&&(ga=!1,ma(Aa))},Ca=()=>{ya=!0,ga=!0,va||ma(Aa)},Oa=()=>ba,Ta=_a;var Na="undefined"!=typeof document,Ra=Na?e.useLayoutEffect:e.useEffect;function ja(){var t=(0,e.useRef)(!1);return Ra(function(){return t.current=!0,function(){t.current=!1}},[]),t}var Pa=(0,e.createContext)(null);function Ia(t){var n=(0,e.useRef)(null);return null===n.current&&(n.current=t()),n.current}var La=0,Ma=function(){return La++},Ba=function(){return Ia(Ma)},Da=function(t){var n=t.children,r=t.initial,i=t.isPresent,o=t.onExitComplete,a=t.custom,s=t.presenceAffectsLayout,l=Ia(Ua),u=Ba(),c=(0,e.useMemo)(function(){return{id:u,initial:r,isPresent:i,custom:a,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==o||o()},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==o||o())},[i]),e.createElement(Pa.Provider,{value:c},n)};function Ua(){return new Map}var Fa=(0,e.createContext)({});function za(t){return(0,e.useEffect)(function(){return function(){return t()}},[])}n(3705);var Va=function(e){return e.key||""},Ha=function(t){var n=t.children,r=t.custom,i=t.initial,o=void 0===i||i,a=t.onExitComplete,s=t.exitBeforeEnter,l=t.presenceAffectsLayout,u=void 0===l||l,c=fa(function(){var t=ja(),n=fa((0,e.useState)(0),2),r=n[0],i=n[1],o=(0,e.useCallback)(function(){t.current&&i(r+1)},[r]);return[(0,e.useCallback)(function(){return Ta.postRender(o)},[o]),r]}(),1),f=c[0],d=(0,e.useContext)(Fa).forceRender;d&&(f=d);var p=ja(),h=function(t){var n=[];return e.Children.forEach(t,function(t){(0,e.isValidElement)(t)&&n.push(t)}),n}(n),m=h,g=new Set,y=(0,e.useRef)(m),v=(0,e.useRef)(new Map).current,b=(0,e.useRef)(!0);if(Ra(function(){b.current=!1,function(e,t){e.forEach(function(e){var n=Va(e);t.set(n,e)})}(h,v),y.current=m}),za(function(){b.current=!0,v.clear(),g.clear()}),b.current)return e.createElement(e.Fragment,null,m.map(function(t){return e.createElement(Da,{key:Va(t),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:u},t)}));m=da([],fa(m),!1);for(var w=y.current.map(Va),x=h.map(Va),_=w.length,E=0;E<_;E++){var k=w[E];-1===x.indexOf(k)&&g.add(k)}return s&&g.size&&(m=[]),g.forEach(function(t){if(-1===x.indexOf(t)){var n=v.get(t);if(n){var i=w.indexOf(t);m.splice(i,0,e.createElement(Da,{key:Va(n),isPresent:!1,onExitComplete:function(){v.delete(t),g.delete(t);var e=y.current.findIndex(function(e){return e.key===t});if(y.current.splice(e,1),!g.size){if(y.current=h,!1===p.current)return;f(),a&&a()}},custom:r,presenceAffectsLayout:u},n))}}}),m=m.map(function(t){var n=t.key;return g.has(n)?t:e.createElement(Da,{key:Va(t),isPresent:!0,presenceAffectsLayout:u},t)}),e.createElement(e.Fragment,null,g.size?m:m.map(function(t){return(0,e.cloneElement)(t)}))},Wa=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},qa={measureLayout:Wa(["layout","layoutId","drag"]),animation:Wa(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Wa(["exit"]),drag:Wa(["drag","dragControls"]),focus:Wa(["whileFocus"]),hover:Wa(["whileHover","onHoverStart","onHoverEnd"]),tap:Wa(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Wa(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Wa(["whileInView","onViewportEnter","onViewportLeave"])},Ga=function(){},Za=(0,e.createContext)({strict:!1}),Ya=Object.keys(qa),$a=Ya.length,Ka=(0,e.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Xa=(0,e.createContext)({}),Qa={current:null},Ja=!1;function es(t,n,r,i){var o=(0,e.useContext)(Za),a=(0,e.useContext)(Xa).visualElement,s=(0,e.useContext)(Pa),l=function(){var t=(!Ja&&function(){if(Ja=!0,Na)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Qa.current=e.matches};e.addListener(t),t()}else Qa.current=!1}(),fa((0,e.useState)(Qa.current),1)[0]),n=(0,e.useContext)(Ka).reducedMotion;return"never"!==n&&("always"===n||t)}(),u=(0,e.useRef)(void 0);i||(i=o.renderer),!u.current&&i&&(u.current=i(t,{visualState:n,parent:a,props:r,presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial),shouldReduceMotion:l}));var c=u.current;return Ra(function(){null==c||c.syncRender()}),(0,e.useEffect)(function(){var e;null===(e=null==c?void 0:c.animationState)||void 0===e||e.animateChanges()}),Ra(function(){return function(){return null==c?void 0:c.notifyUnmount()}},[]),c}function ts(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ns(e){return Array.isArray(e)}function rs(e){return"string"==typeof e||ns(e)}function is(e,t,n,r,i){var o;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===(o=e.variants)||void 0===o?void 0:o[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),t}function os(e,t,n){var r=e.getProps();return is(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 as(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||rs(e.initial)||rs(e.animate)||rs(e.whileHover)||rs(e.whileDrag)||rs(e.whileTap)||rs(e.whileFocus)||rs(e.exit)}function ss(e){return Boolean(as(e)||e.variants)}function ls(e){return Array.isArray(e)?e.join(" "):e}var us={hasAnimatedSinceResize:!0,hasEverUpdated:!1},cs=1,fs=(0,e.createContext)({}),ds=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return la(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 ps(t){var n=t.preloadedFeatures,r=t.createVisualElement,i=t.projectionNodeConstructor,o=t.useRender,a=t.useVisualState,s=t.Component;return n&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?qa.projectionNodeConstructor=e[t]:qa[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)(Fa))||void 0===n?void 0:n.id;return i&&void 0!==r?i+"-"+r:r}(t);t=ua(ua({},t),{layoutId:l});var u=(0,e.useContext)(Ka),c=null,f=function(t){var n=function(e,t){if(as(e)){var n=e.initial,r=e.animate;return{initial:!1===n||rs(n)?n:void 0,animate:rs(r)?r:void 0}}return!1!==e.inherit?t:{}}(t,(0,e.useContext)(Xa)),r=n.initial,i=n.animate;return(0,e.useMemo)(function(){return{initial:r,animate:i}},[ls(r),ls(i)])}(t),d=u.isStatic?void 0:Ia(function(){if(us.hasEverUpdated)return cs++}),p=a(t,u.isStatic);return!u.isStatic&&Na&&(f.visualElement=es(s,p,ua(ua({},u),t),r),function(t,n,r,i){var o,a=n.layoutId,s=n.layout,l=n.drag,u=n.dragConstraints,c=n.layoutScroll,f=(0,e.useContext)(fs);i&&r&&!(null==r?void 0:r.projection)&&(r.projection=new i(t,r.getLatestValues(),null===(o=r.parent)||void 0===o?void 0:o.projection),r.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:Boolean(l)||u&&ts(u),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:f,layoutScroll:c}))}(d,t,f.visualElement,i||qa.projectionNodeConstructor),c=function(t,n){var r=[];(0,e.useContext)(Za);if(!n)return null;for(var i=0;i<$a;i++){var o=Ya[i],a=qa[o],s=a.isEnabled,l=a.Component;s(t)&&l&&r.push(e.createElement(l,ua({key:o},t,{visualElement:n})))}return r}(t,f.visualElement)),e.createElement(ds,{visualElement:f.visualElement,props:ua(ua({},u),t)},c,e.createElement(Xa.Provider,{value:f},o(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):ts(r)&&(r.current=e))},[n])}(p,f.visualElement,n),p,u.isStatic,f.visualElement)))})}var hs=["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 ms(e){return"string"==typeof e&&!e.includes("-")&&!!(hs.indexOf(e)>-1||/[A-Z]/.test(e))}var gs={},ys=["","X","Y","Z"],vs=["transformPerspective","x","y","z"];function bs(e,t){return vs.indexOf(e)-vs.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return ys.forEach(function(t){return vs.push(e+t)})});var ws=new Set(vs);function xs(e){return ws.has(e)}var _s=new Set(["originX","originY","originZ"]);function Es(e){return _s.has(e)}function ks(e,t){var n=t.layout,r=t.layoutId;return xs(e)||Es(e)||(n||void 0!==r)&&(!!gs[e]||"opacity"===e)}var Ss=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},As={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Cs(e){return e.startsWith("--")}var Os=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const Ts=(e,t)=>n=>Math.max(Math.min(n,t),e),Ns=e=>e%1?Number(e.toFixed(5)):e,Rs=/(-)?([\d]*\.?[\d])+/g,js=/(#[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,Ps=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Is(e){return"string"==typeof e}const Ls=e=>({test:t=>Is(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>"".concat(t).concat(e)}),Ms=Ls("deg"),Bs=Ls("%"),Ds=Ls("px"),Us=Ls("vh"),Fs=Ls("vw"),zs=Object.assign(Object.assign({},Bs),{parse:e=>Bs.parse(e)/100,transform:e=>Bs.transform(100*e)}),Vs={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Hs=Object.assign(Object.assign({},Vs),{transform:Ts(0,1)}),Ws=Object.assign(Object.assign({},Vs),{default:1});var qs=ua(ua({},Vs),{transform:Math.round}),Gs={borderWidth:Ds,borderTopWidth:Ds,borderRightWidth:Ds,borderBottomWidth:Ds,borderLeftWidth:Ds,borderRadius:Ds,radius:Ds,borderTopLeftRadius:Ds,borderTopRightRadius:Ds,borderBottomRightRadius:Ds,borderBottomLeftRadius:Ds,width:Ds,maxWidth:Ds,height:Ds,maxHeight:Ds,size:Ds,top:Ds,right:Ds,bottom:Ds,left:Ds,padding:Ds,paddingTop:Ds,paddingRight:Ds,paddingBottom:Ds,paddingLeft:Ds,margin:Ds,marginTop:Ds,marginRight:Ds,marginBottom:Ds,marginLeft:Ds,rotate:Ms,rotateX:Ms,rotateY:Ms,rotateZ:Ms,scale:Ws,scaleX:Ws,scaleY:Ws,scaleZ:Ws,skew:Ms,skewX:Ms,skewY:Ms,distance:Ds,translateX:Ds,translateY:Ds,translateZ:Ds,x:Ds,y:Ds,z:Ds,perspective:Ds,transformPerspective:Ds,opacity:Hs,originX:zs,originY:zs,originZ:Ds,zIndex:qs,fillOpacity:Hs,strokeOpacity:Hs,numOctaves:qs};function Zs(e,t,n,r){var i,o=e.style,a=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(Cs(p))a[p]=h;else{var m=Gs[p],g=Os(h,m);if(xs(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 Es(p)?(u[p]=g,f=!0):o[p]=g}}c?o.transform=function(e,t,n,r){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,l=t.allowTransformNone,u=void 0===l||l,c="";o.sort(bs);for(var f=!1,d=o.length,p=0;p<d;p++){var h=o[p];c+="".concat(As[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?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),f&&(o.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,i=void 0===r?"50%":r,o=e.originZ,a=void 0===o?0:o;return"".concat(n," ").concat(i," ").concat(a)}(u))}var Ys=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function $s(e,t,n){for(var r in t)Ss(t[r])||ks(r,n)||(e[r]=t[r])}function Ks(t,n,r){var i={};return $s(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:{}};Zs(e,n,{enableHardwareAcceleration:!r},i);var t=e.style;return ua(ua({},e.vars),t)},[n])}(t,n,r)),t.transformValues&&(i=t.transformValues(i)),i}function Xs(e,t,n){var r={},i=Ks(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 Qs=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 Js(e){return Qs.has(e)}var el,tl=function(e){return!Js(e)};try{(el=require("@emotion/is-prop-valid").default)&&(tl=function(e){return e.startsWith("on")?!Js(e):el(e)})}catch(e){}function nl(e,t,n){return"string"==typeof e?e:Ds.transform(t+n*e)}var rl={offset:"stroke-dashoffset",array:"stroke-dasharray"},il={offset:"strokeDashoffset",array:"strokeDasharray"};function ol(e,t,n,r){var i=t.attrX,o=t.attrY,a=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;Zs(e,ca(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!==a||void 0!==s||h.transform)&&(h.transformOrigin=function(e,t,n){var r=nl(t,e.x,e.width),i=nl(n,e.y,e.height);return"".concat(r," ").concat(i)}(m,void 0!==a?a:.5,void 0!==s?s:.5)),void 0!==i&&(p.x=i),void 0!==o&&(p.y=o),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 o=i?rl:il;e[o.offset]=Ds.transform(-r);var a=Ds.transform(t),s=Ds.transform(n);e[o.array]="".concat(a," ").concat(s)}(p,l,c,d,!1)}var al=function(){return ua(ua({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function sl(t,n){var r=(0,e.useMemo)(function(){var e=al();return ol(e,n,{enableHardwareAcceleration:!1},t.transformTemplate),ua(ua({},e.attrs),{style:ua({},e.style)})},[n]);if(t.style){var i={};$s(i,t.style,t),r.style=ua(ua({},i),r.style)}return r}function ll(t){return void 0===t&&(t=!1),function(n,r,i,o,a,s){var l=a.latestValues,u=(ms(n)?sl:Xs)(r,l,s),c=function(e,t,n){var r={};for(var i in e)(tl(i)||!0===n&&Js(i)||!t&&!Js(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(r,"string"==typeof n,t),f=ua(ua(ua({},c),u),{ref:o});return i&&(f["data-projection-id"]=i),(0,e.createElement)(n,f)}}var ul=/([a-z])([A-Z])/g,cl=function(e){return e.replace(ul,"$1-$2").toLowerCase()};function fl(e,t,n,r){var i=t.style,o=t.vars;for(var a in Object.assign(e.style,i,r&&r.getProjectionStyles(n)),o)e.style.setProperty(a,o[a])}var dl=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function pl(e,t,n,r){for(var i in fl(e,t,void 0,r),t.attrs)e.setAttribute(dl.has(i)?i:cl(i),t.attrs[i])}function hl(e){var t=e.style,n={};for(var r in t)(Ss(t[r])||ks(r,e))&&(n[r]=t[r]);return n}function ml(e){var t=hl(e);for(var n in e)Ss(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function gl(e){return"object"==typeof e&&"function"==typeof e.start}var yl=function(e){return Array.isArray(e)},vl=function(e){return yl(e)?e[e.length-1]||0:e};function bl(e){var t=Ss(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}function wl(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:_l(t,n,r,i),renderState:o()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var xl=function(t){return function(n,r){var i=(0,e.useContext)(Xa),o=(0,e.useContext)(Pa);return r?wl(t,n,i,o):Ia(function(){return wl(t,n,i,o)})}};function _l(e,t,n,r){var i={},o=!1===(null==n?void 0:n.initial),a=r(e);for(var s in a)i[s]=bl(a[s]);var l=e.initial,u=e.animate,c=as(e),f=ss(e);t&&f&&!c&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=u||(u=t.animate));var d=o||!1===l,p=d?u:l;return p&&"boolean"!=typeof p&&!gl(p)&&(Array.isArray(p)?p:[p]).forEach(function(t){var n=is(e,t);if(n){var r=n.transitionEnd;n.transition;var o=ca(n,["transitionEnd","transition"]);for(var a in o){var s=o[a];Array.isArray(s)&&(s=s[d?s.length-1:0]),null!==s&&(i[a]=s)}for(var a in r)i[a]=r[a]}}),i}var El,kl={useVisualState:xl({scrapeMotionValuesFromProps:ml,createRenderState:al,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}}ol(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),pl(t,r)}})},Sl={useVisualState:xl({scrapeMotionValuesFromProps:hl,createRenderState:Ys})};function Al(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Cl(t,n,r,i){(0,e.useEffect)(function(){var e=t.current;if(r&&e)return Al(e,n,r,i)},[t,n,r,i])}function Ol(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Tl(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"}(El||(El={}));var Nl={pageX:0,pageY:0};function Rl(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Nl;return{x:n[t+"X"],y:n[t+"Y"]}}function jl(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Pl(e,t){return void 0===t&&(t="page"),{point:Tl(e)?Rl(e,t):jl(e,t)}}var Il=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Pl(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Ll={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Ml={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Bl(e){return Na&&null===window.onpointerdown?e:Na&&null===window.ontouchstart?Ml[e]:Na&&null===window.onmousedown?Ll[e]:e}function Dl(e,t,n,r){return Al(e,Bl(t),Il(n,"pointerdown"===t),r)}function Ul(e,t,n,r){return Cl(e,Bl(t),n&&Il(n,"pointerdown"===t),r)}function Fl(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var zl=Fl("dragHorizontal"),Vl=Fl("dragVertical");function Hl(e){var t=!1;if("y"===e)t=Vl();else if("x"===e)t=zl();else{var n=zl(),r=Vl();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function Wl(){var e=Hl(!0);return!e||(e(),!1)}function ql(e,t,n){return function(r,i){var o;Ol(r)&&!Wl()&&(null===(o=e.animationState)||void 0===o||o.setActive(El.Hover,t),null==n||n(r,i))}}var Gl=function(e,t){return!!t&&(e===t||Gl(e,t.parentElement))};const Zl=(e,t)=>n=>t(e(n)),Yl=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(Zl)};n(3705),new Set;var $l=new WeakMap,Kl=new WeakMap,Xl=function(e){var t;null===(t=$l.get(e.target))||void 0===t||t(e)},Ql=function(e){e.forEach(Xl)};var Jl={some:0,all:1};function eu(t,n,r,i){var o=i.root,a=i.margin,s=i.amount,l=void 0===s?"some":s,u=i.once;(0,e.useEffect)(function(){if(t){var e={root:null==o?void 0:o.current,rootMargin:a,threshold:"number"==typeof l?l:Jl[l]};return function(e,t,n){var r=function(e){var t=e.root,n=ca(e,["root"]),r=t||document;Kl.has(r)||Kl.set(r,{});var i=Kl.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(Ql,ua({root:t},n))),i[o]}(t);return $l.set(e,n),r.observe(e),function(){$l.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(El.InView,i);var o=r.getProps(),a=i?o.onViewportEnter:o.onViewportLeave;null==a||a(e)}})}},[t,o,a,l])}function tu(t,n,r,i){var o=i.fallback,a=void 0===o||o;(0,e.useEffect)(function(){t&&a&&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(El.InView,!0)})},[t])}var nu=function(e){return function(t){return e(t),null}},ru={inView:nu(function(t){var n=t.visualElement,r=t.whileInView,i=t.onViewportEnter,o=t.onViewportLeave,a=t.viewport,s=void 0===a?{}:a,l=(0,e.useRef)({hasEnteredView:!1,isInView:!1}),u=Boolean(r||i||o);s.once&&l.current.hasEnteredView&&(u=!1),("undefined"==typeof IntersectionObserver?tu:eu)(u,l.current,n,s)}),tap:nu(function(t){var n=t.onTap,r=t.onTapStart,i=t.onTapCancel,o=t.whileTap,a=t.visualElement,s=n||r||i||o,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=a.animationState)||void 0===e||e.setActive(El.Tap,!1),!Wl()}function p(e,t){d()&&(Gl(a.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=Yl(Dl(window,"pointerup",p,c),Dl(window,"pointercancel",h,c)),null===(n=a.animationState)||void 0===n||n.setActive(El.Tap,!0),null==r||r(e,t))}Ul(a,"pointerdown",s?m:void 0,c),za(f)}),focus:nu(function(e){var t=e.whileFocus,n=e.visualElement;Cl(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(El.Focus,!0)}:void 0),Cl(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(El.Focus,!1)}:void 0)}),hover:nu(function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;Ul(i,"pointerenter",t||r?ql(i,!0,t):void 0,{passive:!t}),Ul(i,"pointerleave",n||r?ql(i,!1,n):void 0,{passive:!n})})};function iu(){var t=(0,e.useContext)(Pa);if(null===t)return[!0,null];var n=t.isPresent,r=t.onExitComplete,i=t.register,o=Ba();return(0,e.useEffect)(function(){return i(o)},[]),!n&&r?[!1,function(){return null==r?void 0:r(o)}]:[!0]}function ou(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 au(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 su=(e,t,n)=>Math.min(Math.max(n,e),t),lu=.001;const uu=12;function cu(e,t){return e*Math.sqrt(1-t*t)}const fu=["duration","bounce"],du=["stiffness","damping","mass"];function pu(e,t){return t.some(t=>void 0!==e[t])}function hu(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=au(e,["from","to","restSpeed","restDelta"]);const a={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(!pu(e,du)&&pu(e,fu)){const n=function(e){let t,n,{duration:r=800,bounce:i=.25,velocity:o=0,mass:a=1}=e,s=1-i;s=su(.05,1,s),r=su(.01,10,r/1e3),s<1?(t=e=>{const t=e*s,n=t*r,i=t-o,a=cu(e,s),l=Math.exp(-n);return lu-i/a*l},n=e=>{const n=e*s*r,i=n*o+o,a=Math.pow(s,2)*Math.pow(e,2)*r,l=Math.exp(-n),u=cu(Math.pow(e,2),s);return(-t(e)+lu>0?-1:1)*((i-a)*l)/u}):(t=e=>Math.exp(-e*r)*((e-o)*r+1)-lu,n=e=>Math.exp(-e*r)*(r*r*(o-e)));const l=function(e,t,n){let r=n;for(let n=1;n<uu;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)*a;return{stiffness:e,damping:2*s*Math.sqrt(a*e),duration:r}}}(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(o),p=mu,h=mu;function m(){const e=c?-c/1e3:0,r=n-t,o=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),o<1){const t=cu(a,o);p=i=>{const s=Math.exp(-o*a*i);return n-s*((e+o*a*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},h=n=>{const i=Math.exp(-o*a*n);return o*a*i*(Math.sin(t*n)*(e+o*a*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+o*a*r)-t*r*Math.sin(t*n))}}else if(1===o)p=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{const t=a*Math.sqrt(o*o-1);p=i=>{const s=Math.exp(-o*a*i),l=Math.min(t*i,300);return n-s*((e+o*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{const t=p(e);if(d)a.done=e>=f;else{const o=1e3*h(e),s=Math.abs(o)<=r,l=Math.abs(n-t)<=i;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}hu.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const mu=e=>0,gu=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},yu=(e,t,n)=>-n*e+n*t+e,vu=(e,t)=>n=>Boolean(Is(n)&&Ps.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),bu=(e,t,n)=>r=>{if(!Is(r))return r;const[i,o,a,s]=r.match(Rs);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},wu=Ts(0,255),xu=Object.assign(Object.assign({},Vs),{transform:e=>Math.round(wu(e))}),_u={test:vu("rgb","red"),parse:bu("red","green","blue"),transform:e=>{let{red:t,green:n,blue:r,alpha:i=1}=e;return"rgba("+xu.transform(t)+", "+xu.transform(n)+", "+xu.transform(r)+", "+Ns(Hs.transform(i))+")"}},Eu={test:vu("#"),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:_u.transform},ku={test:vu("hsl","hue"),parse:bu("hue","saturation","lightness"),transform:e=>{let{hue:t,saturation:n,lightness:r,alpha:i=1}=e;return"hsla("+Math.round(t)+", "+Bs.transform(Ns(n))+", "+Bs.transform(Ns(r))+", "+Ns(Hs.transform(i))+")"}};function Su(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 Au(e){let{hue:t,saturation:n,lightness:r,alpha:i}=e;t/=360,n/=100,r/=100;let o=0,a=0,s=0;if(n){const e=r<.5?r*(1+n):r+n-r*n,i=2*r-e;o=Su(i,e,t+1/3),a=Su(i,e,t),s=Su(i,e,t-1/3)}else o=a=s=r;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*s),alpha:i}}const Cu=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},Ou=[Eu,_u,ku],Tu=e=>Ou.find(t=>t.test(e)),Nu=e=>"'".concat(e,"' is not an animatable color. Use the equivalent color code instead."),Ru=(e,t)=>{let n=Tu(e),r=Tu(t);Nu(e),Nu(t);let i=n.parse(e),o=r.parse(t);n===ku&&(i=Au(i),n=_u),r===ku&&(o=Au(o),r=_u);const a=Object.assign({},i);return e=>{for(const t in a)"alpha"!==t&&(a[t]=Cu(i[t],o[t],e));return a.alpha=yu(i.alpha,o.alpha,e),n.transform(a)}},ju={test:e=>_u.test(e)||Eu.test(e)||ku.test(e),parse:e=>_u.test(e)?_u.parse(e):ku.test(e)?ku.parse(e):Eu.parse(e),transform:e=>Is(e)?e:e.hasOwnProperty("red")?_u.transform(e):ku.transform(e)},Pu="${c}",Iu="${n}";function Lu(e){"number"==typeof e&&(e="".concat(e));const t=[];let n=0;const r=e.match(js);r&&(n=r.length,e=e.replace(js,Pu),t.push(...r.map(ju.parse)));const i=e.match(Rs);return i&&(e=e.replace(Rs,Iu),t.push(...i.map(Vs.parse))),{values:t,numColors:n,tokenised:e}}function Mu(e){return Lu(e).values}function Bu(e){const{values:t,numColors:n,tokenised:r}=Lu(e),i=t.length;return e=>{let t=r;for(let r=0;r<i;r++)t=t.replace(r<n?Pu:Iu,r<n?ju.transform(e[r]):Ns(e[r]));return t}}const Du=e=>"number"==typeof e?0:e,Uu={test:function(e){var t,n,r,i;return isNaN(e)&&Is(e)&&(null!==(n=null===(t=e.match(Rs))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(js))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:Mu,createTransformer:Bu,getAnimatableNone:function(e){const t=Mu(e);return Bu(e)(t.map(Du))}},Fu=e=>"number"==typeof e;function zu(e,t){return Fu(e)?n=>yu(e,t,n):ju.test(e)?Ru(e,t):qu(e,t)}const Vu=(e,t)=>{const n=[...e],r=n.length,i=e.map((e,n)=>zu(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}},Hu=(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]=zu(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function Wu(e){const t=Uu.parse(e),n=t.length;let r=0,i=0,o=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}const qu=(e,t)=>{const n=Uu.createTransformer(t),r=Wu(e),i=Wu(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?Yl(Vu(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))},Gu=(e,t)=>n=>yu(e,t,n);function Zu(e,t){let{clamp:n=!0,ease:r,mixer:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=e.length;t.length,!r||!Array.isArray(r)||r.length,e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=function(e,t,n){const r=[],i=n||("number"==typeof(o=e[0])?Gu:"string"==typeof o?ju.test(o)?Ru:qu:Array.isArray(o)?Vu:"object"==typeof o?Hu:void 0);var o;const a=e.length-1;for(let n=0;n<a;n++){let o=i(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;o=Yl(e,o)}r.push(o)}return r}(t,r,i),s=2===o?function(e,t){let[n,r]=e,[i]=t;return e=>i(gu(n,r,e))}(e,a):function(e,t){const n=e.length,r=n-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){let t=1;for(;t<n&&!(e[t]>i||t===r);t++);o=t-1}const s=gu(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(su(e[0],e[o-1],t)):s}const Yu=e=>t=>1-e(1-t),$u=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ku=e=>t=>t*t*((e+1)*t-e),Xu=4/11,Qu=8/11,Ju=e=>e,ec=e=>Math.pow(e,2);const tc=Yu(ec),nc=$u(ec),rc=e=>1-Math.sin(Math.acos(e)),ic=Yu(rc),oc=$u(ic),ac=Ku(1.525),sc=Yu(ac),lc=$u(ac),uc=(()=>{const e=Ku(1.525);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(),cc=4356/361,fc=35442/1805,dc=16061/1805,pc=e=>{if(1===e||0===e)return e;const t=e*e;return e<Xu?7.5625*t:e<Qu?9.075*t-9.9*e+3.4:e<.9?cc*t-fc*e+dc:10.8*e*e-20.52*e+10.72},hc=Yu(pc);function mc(e,t){return e.map(()=>t||nc).splice(0,e.length-1)}function gc(e){let{from:t=0,to:n=1,ease:r,offset:i,duration:o=300}=e;const a={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),o);function u(){return Zu(l,s,{ease:Array.isArray(r)?r:mc(s,r)})}let c=u();return{next:e=>(a.value=c(e),a.done=e>=o,a),flipTarget:()=>{s.reverse(),c=u()}}}const yc={keyframes:gc,spring:hu,decay:function(e){let{velocity:t=0,from:n=0,power:r=.8,timeConstant:i=350,restDelta:o=.5,modifyTarget:a}=e;const s={done:!1,value:n};let l=r*t;const u=n+l,c=void 0===a?u:a(u);return c!==u&&(l=c-n),{next:e=>{const t=-l*Math.exp(-e/i);return s.done=!(t>o||t<-o),s.value=s.done?c:c+t,s},flipTarget:()=>{}}}};function vc(e,t){return e-t-(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)}const bc=e=>{const t=t=>{let{delta:n}=t;return e(n)};return{start:()=>Ta.update(t,!0),stop:()=>Ea.update(t)}};function wc(e){var t,n,{from:r,autoplay:i=!0,driver:o=bc,elapsed:a=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:f,onComplete:d,onRepeat:p,onUpdate:h}=e,m=au(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 gc;if(yc[e.type])return yc[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?gc:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?hu:gc}(m);(null===(n=(t=k).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(v=Zu([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=o(function(e){if(E||(e=-e),a+=e,!_){const e=S.next(Math.max(0,a));y=e.value,v&&(y=v(y)),_=E?e.done:a<=0}null==h||h(y),_&&(0===w&&(null!=x||(x=a)),w<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(a,x,u,E)&&(w++,"reverse"===l?(E=w%2==0,a=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:vc(t+-e,t,n)}(a,x,u,E)):(a=vc(a,x,u),"mirror"===l&&S.flipTarget()),_=!1,p&&p()):(g.stop(),d&&d()))}),g.start()),{stop:()=>{null==f||f(),g.stop()}}}function xc(e,t){return t?e*(1e3/t):0}var _c=function(e){return 1e3*e};const Ec=(e,t)=>1-3*t+3*e,kc=(e,t)=>3*t-6*e,Sc=e=>3*e,Ac=(e,t,n)=>((Ec(t,n)*e+kc(t,n))*e+Sc(t))*e,Cc=(e,t,n)=>3*Ec(t,n)*e*e+2*kc(t,n)*e+Sc(t),Oc=.1;var Tc={linear:Ju,easeIn:ec,easeInOut:nc,easeOut:tc,circIn:rc,circInOut:oc,circOut:ic,backIn:ac,backInOut:lc,backOut:sc,anticipate:uc,bounceIn:hc,bounceInOut:e=>e<.5?.5*(1-pc(1-2*e)):.5*pc(2*e-1)+.5,bounceOut:pc},Nc=function(e){if(Array.isArray(e)){e.length;var t=fa(e,4);return function(e,t,n,r){if(e===t&&n===r)return Ju;const i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=Ac(t*Oc,e,n);function o(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=Oc;--o;const a=r+(t-i[o])/(i[o+1]-i[o])*Oc,s=Cc(a,e,n);return s>=.001?function(e,t,n,r){for(let i=0;i<8;++i){const i=Cc(t,n,r);if(0===i)return t;t-=(Ac(t,n,r)-e)/i}return t}(t,a,e,n):0===s?a:function(e,t,n,r,i){let o,a,s=0;do{a=t+(n-t)/2,o=Ac(a,r,i)-e,o>0?n=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+Oc,e,n)}return e=>0===e||1===e?e:Ac(o(e),t,r)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),Tc[e]):e},Rc=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!Uu.test(t)||t.startsWith("url(")))},jc=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Pc=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},Ic=function(){return{type:"keyframes",ease:"linear",duration:.3}},Lc=function(e){return{type:"keyframes",duration:.8,values:e}},Mc={x:jc,y:jc,z:jc,rotate:jc,rotateX:jc,rotateY:jc,rotateZ:jc,scaleX:Pc,scaleY:Pc,scale:Pc,opacity:Ic,backgroundColor:Ic,color:Ic,default:Pc};const Bc=new Set(["brightness","contrast","saturate","opacity"]);function Dc(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Rs)||[];if(!r)return e;const i=n.replace(r,"");let o=Bc.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Uc=/([a-z-]*)\(.*?\)/g,Fc=Object.assign(Object.assign({},Uu),{getAnimatableNone:e=>{const t=e.match(Uc);return t?t.map(Dc).join(" "):e}});var zc=ua(ua({},Gs),{color:ju,backgroundColor:ju,outlineColor:ju,fill:ju,stroke:ju,borderColor:ju,borderTopColor:ju,borderRightColor:ju,borderBottomColor:ju,borderLeftColor:ju,filter:Fc,WebkitFilter:Fc}),Vc=function(e){return zc[e]};function Hc(e,t){var n,r=Vc(e);return r!==Fc&&(r=Uu),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var Wc=!1;function qc(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=da([],fa(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=ca(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=ua(ua({},e),function(e,t){var n;return n=yl(t)?Lc:Mc[e]||Mc.default,ua({to:t},n(t))}(n,t.to))),ua(ua({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,a=ca(e,["ease","times","yoyo","flip","loop"]),s=ua({},a);return n&&(s.offset=n),a.duration&&(s.duration=_c(a.duration)),a.repeatDelay&&(s.repeatDelay=_c(a.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(Nc):Nc(t)),"tween"===a.type&&(s.type="keyframes"),(r||o||i)&&(r?s.repeatType="reverse":o?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=o||r||i||a.repeat),"spring"!==a.type&&(s.type="keyframes"),s}(e))}function Gc(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Zc(e){return"number"==typeof e?0:Hc("",e)}function Yc(e,t){return e[t]||e.default||e}function $c(e,t,n,r){return void 0===r&&(r={}),Wc&&(r={type:!1}),t.start(function(i){var o,a,s=function(e,t,n,r,i){var o,a=Yc(r,e),s=null!==(o=a.from)&&void 0!==o?o:t.get(),l=Rc(e,n);"none"===s&&l&&"string"==typeof n?s=Hc(e,n):Gc(s)&&"string"==typeof n?s=Zc(n):!Array.isArray(n)&&Gc(n)&&"string"==typeof s&&(n=Zc(s));var u=Rc(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!==a.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===a.type||"decay"===a.type?function(e){let t,{from:n=0,velocity:r=0,min:i,max:o,power:a=.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!==o&&e>o}function y(e){return void 0===i?o:void 0===o||Math.abs(i-e)<Math.abs(o-e)?i:o}function v(e){null==t||t.stop(),t=wc(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=a*r+n;void 0!==f&&(e=f(e));const t=y(e),o=t===i?-1:1;let l,u;const d=e=>{l=u,u=e,r=xc(e-l,Oa().delta),(1===o&&e>t||-1===o&&e<t)&&b({from:e,to:t,velocity:r})};v({type:"decay",from:n,velocity:r,timeConstant:s,power:a,restDelta:c,modifyTarget:f,onUpdate:g(e)?d:void 0})}return{stop:()=>null==t?void 0:t.stop()}}(ua(ua({},r),a)):wc(ua(ua({},qc(a,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=a.onUpdate)||void 0===t||t.call(a,e)},onComplete:function(){var e;r.onComplete(),null===(e=a.onComplete)||void 0===e||e.call(a)}}))}:function(){var e,r,o=vl(n);return t.set(o),i(),null===(e=null==a?void 0:a.onUpdate)||void 0===e||e.call(a,o),null===(r=null==a?void 0:a.onComplete)||void 0===r||r.call(a),{stop:function(){}}}}(e,t,n,r,i),l=function(e,t){var n,r;return null!==(r=null!==(n=(Yc(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return a=s()};return l?o=window.setTimeout(u,_c(l)):u(),function(){clearTimeout(o),null==a||a.stop()}})}var Kc=function(e){return/^0[^.\s]+$/.test(e)};function Xc(e,t){-1===e.indexOf(t)&&e.push(t)}function Qc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Jc=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Xc(this.subscriptions,e),function(){return Qc(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 o=this.subscriptions[i];o&&o(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),ef=function(){function e(e){var t=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Jc,this.velocityUpdateSubscribers=new Jc,this.renderSubscribers=new Jc,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=Oa(),i=r.delta,o=r.timestamp;t.lastUpdated!==o&&(t.timeDelta=i,t.lastUpdated=o,Ta.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 Ta.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?xc(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 tf(e){return new ef(e)}var nf=function(e){return function(t){return t.test(e)}},rf=[Vs,Ds,Bs,Ms,Fs,Us,{test:function(e){return"auto"===e},parse:function(e){return e}}],of=function(e){return rf.find(nf(e))},af=da(da([],fa(rf),!1),[ju,Uu],!1),sf=function(e){return af.find(nf(e))};function uf(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,tf(n))}function cf(e,t){if(t)return(t[e]||t.default||t).from}function ff(e,t,n){var r;void 0===n&&(n={});var i=os(e,t,n.custom),o=(i||{}).transition,a=void 0===o?e.getDefaultTransition()||{}:o;n.transitionOverride&&(a=n.transitionOverride);var s=i?function(){return df(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=a.delayChildren,o=void 0===i?0:i,s=a.staggerChildren,l=a.staggerDirection;return function(e,t,n,r,i,o){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=1);var a=[],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(pf).forEach(function(e,r){a.push(ff(e,t,ua(ua({},o),{delay:n+l(r)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(a)}(e,t,o+r,s,l,n)}:function(){return Promise.resolve()},u=a.when;if(u){var c=fa("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 df(e,t,n){var r,i=void 0===n?{}:n,o=i.delay,a=void 0===o?0:o,s=i.transitionOverride,l=i.type,u=e.makeTargetAnimatable(t),c=u.transition,f=void 0===c?e.getDefaultTransition():c,d=u.transitionEnd,p=ca(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&&hf(m,g))){var b=ua({delay:a},f);e.shouldReduceMotion&&xs(g)&&(b=ua(ua({},b),{type:!1,delay:0}));var w=$c(g,y,v,b);h.push(w)}}return Promise.all(h).then(function(){d&&function(e,t){var n=os(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=void 0===i?{}:i;r.transition;var a=ca(r,["transitionEnd","transition"]);for(var s in a=ua(ua({},a),o))uf(e,s,vl(a[s]))}(e,d)})}function pf(e,t){return e.sortNodePosition(t)}function hf(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}var mf=[El.Animate,El.InView,El.Focus,El.Hover,El.Tap,El.Drag,El.Exit],gf=da([],fa(mf),!1).reverse(),yf=mf.length;function vf(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 ff(e,t,n)});r=Promise.all(i)}else if("string"==typeof t)r=ff(e,t,n);else{var o="function"==typeof t?os(e,t,n.custom):t;r=df(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}(e,n,r)}))}}(e),n=function(){var e;return(e={})[El.Animate]=bf(!0),e[El.InView]=bf(),e[El.Hover]=bf(),e[El.Tap]=bf(),e[El.Drag]=bf(),e[El.Focus]=bf(),e[El.Exit]=bf(),e}(),r={},i=!0,o=function(t,n){var r=os(e,n);if(r){r.transition;var i=r.transitionEnd,o=ca(r,["transition","transitionEnd"]);t=ua(ua(ua({},t),o),i)}return t};function a(a,s){for(var l,u=e.getProps(),c=e.getVariantContext(!0)||{},f=[],d=new Set,p={},h=1/0,m=function(t){var r=gf[t],m=n[r],g=null!==(l=u[r])&&void 0!==l?l:c[r],y=rs(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=ua({},p),!m.isActive&&null===v||!g&&!m.prevProp||gl(g)||"boolean"==typeof g)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!ns(t)&&!ou(t,e)}(m.prevProp,g),x=w||r===s&&m.isActive&&!b&&y||t>h&&y,_=Array.isArray(g)?g:[g],E=_.reduce(o,{});!1===v&&(E={});var k=m.prevResolvedValues,S=void 0===k?{}:k,A=ua(ua({},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?yl(T)&&yl(N)?!ou(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=ua(ua({},p),E)),i&&e.blockInitialAnimation&&(x=!1),x&&!b&&f.push.apply(f,da([],fa(_.map(function(e){return{animation:e,options:ua({type:r},a)}})),!1))},g=0;g<yf;g++)m(g);if(r=ua({},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:a,setActive:function(t,r,i){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.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=a(i,t);for(var l in n)n[l].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function bf(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var wf={animation:nu(function(t){var n=t.visualElement,r=t.animate;n.animationState||(n.animationState=vf(n)),gl(r)&&(0,e.useEffect)(function(){return r.subscribe(n)},[r])}),exit:nu(function(t){var n=t.custom,r=t.visualElement,i=fa(iu(),2),o=i[0],a=i[1],s=(0,e.useContext)(Pa);(0,e.useEffect)(function(){var e,t;r.isPresent=o;var i=null===(e=r.animationState)||void 0===e?void 0:e.setActive(El.Exit,!o,{custom:null!==(t=null==s?void 0:s.custom)&&void 0!==t?t:n});!o&&(null==i||i.then(a))},[o])})};const xf=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),_f=e=>xf(e)&&e.hasOwnProperty("z"),Ef=(e,t)=>Math.abs(e-t);function kf(e,t){if(Fu(e)&&Fu(t))return Ef(e,t);if(xf(e)&&xf(t)){const n=Ef(e.x,t.x),r=Ef(e.y,t.y),i=_f(e)&&_f(t)?Ef(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}var Sf=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=Of(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=kf(e.offset,{x:0,y:0})>=3;if(t||n){var i=e.point,o=Oa().timestamp;r.history.push(ua(ua({},i),{timestamp:o}));var a=r.handlers,s=a.onStart,l=a.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=Af(t,r.transformPagePoint),Ol(e)&&0===e.buttons?r.handlePointerUp(e,t):Ta.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,i=n.onEnd,o=n.onSessionEnd,a=Of(Af(t,r.transformPagePoint),r.history);r.startEvent&&i&&i(e,a),o&&o(e,a)},!(Tl(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var o=Af(Pl(e),this.transformPagePoint),a=o.point,s=Oa().timestamp;this.history=[ua(ua({},a),{timestamp:s})];var l=t.onSessionStart;l&&l(e,Of(o,this.history)),this.removeListeners=Yl(Dl(window,"pointermove",this.handlePointerMove),Dl(window,"pointerup",this.handlePointerUp),Dl(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Ea.update(this.updatePoint)},e}();function Af(e,t){return t?{point:t(e.point)}:e}function Cf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Of(e,t){var n=e.point;return{point:n,delta:Cf(n,Nf(t)),offset:Cf(n,Tf(t)),velocity:Rf(t,.1)}}function Tf(e){return e[0]}function Nf(e){return e[e.length-1]}function Rf(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=Nf(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>_c(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function jf(e){return e.max-e.min}function Pf(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),kf(e,t)<n}function If(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=yu(t.min,t.max,e.origin),e.scale=jf(n)/jf(t),(Pf(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=yu(n.min,n.max,e.origin)-e.originPoint,(Pf(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Lf(e,t,n,r){If(e.x,t.x,n.x,null==r?void 0:r.originX),If(e.y,t.y,n.y,null==r?void 0:r.originY)}function Mf(e,t,n){e.min=n.min+t.min,e.max=e.min+jf(t)}function Bf(e,t,n){e.min=t.min-n.min,e.max=e.min+jf(t)}function Df(e,t,n){Bf(e.x,t.x,n.x),Bf(e.y,t.y,n.y)}function Uf(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 Ff(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=fa([i,r],2))[0],i=n[1]),{min:r,max:i}}var zf=.35;function Vf(e,t,n){return{min:Hf(e,t),max:Hf(e,n)}}function Hf(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}var Wf=function(){return{x:{min:0,max:0},y:{min:0,max:0}}};function qf(e){return[e("x"),e("y")]}function Gf(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function Zf(e){return void 0===e||1===e}function Yf(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Zf(t)||!Zf(n)||!Zf(r)}function $f(e){return Yf(e)||Kf(e.x)||Kf(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Kf(e){return e&&"0%"!==e}function Xf(e,t,n){return n+t*(e-n)}function Qf(e,t,n,r,i){return void 0!==i&&(e=Xf(e,i,r)),Xf(e,n,r)+t}function Jf(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Qf(e.min,t,n,r,i),e.max=Qf(e.max,t,n,r,i)}function ed(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 td(e,t){e.min=e.min+t,e.max=e.max+t}function nd(e,t,n){var r=fa(n,3),i=r[0],o=r[1],a=r[2],s=void 0!==t[a]?t[a]:.5,l=yu(e.min,e.max,s);Jf(e,t[i],t[o],l,t.scale)}var rd=["x","scaleX","originX"],id=["y","scaleY","originY"];function od(e,t){nd(e.x,t,rd),nd(e.y,t,id)}function ad(e,t){return Gf(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 sd=new WeakMap,ld=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 Sf(e,{onSessionStart:function(e){n.stopAnimation(),i&&n.snapToCursor(Pl(e,"page").point)},onStart:function(e,t){var r,i=n.getProps(),o=i.drag,a=i.dragPropagation,s=i.onDragStart;(!o||a||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Hl(o),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),qf(function(e){var t,r,i=n.getAxisMotionValue(e).get()||0;if(Bs.test(i)){var o=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];o&&(i=jf(o)*(parseFloat(i)/100))}n.originPoint[e]=i}),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(El.Drag,!0))},onMove:function(e,t){var r=n.getProps(),i=r.dragPropagation,o=r.dragDirectionLock,a=r.onDirectionLock,s=r.onDrag;if(i||n.openGlobalLock){var l=t.offset;if(o&&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==a||a(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(El.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&ud(e,r,this.currentDirection)){var i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,t,n){var r=t.min,i=t.max;return void 0!==r&&e<r?e=n?yu(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?yu(i,e,n.max):Math.min(e,i)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,i=(this.visualElement.projection||{}).layout,o=this.constraints;n&&ts(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:Uf(e.x,r,o),y:Uf(e.y,n,i)}}(i.actual,n),this.elastic=function(e){return void 0===e&&(e=zf),!1===e?e=0:!0===e&&(e=zf),{x:Vf(e,"left","right"),y:Vf(e,"top","bottom")}}(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&qf(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||!ts(t))return!1;var r=t.current,i=this.visualElement.projection;if(!i||!i.layout)return!1;var o=function(e,t,n){var r=ad(e,n),i=t.scroll;return i&&(td(r.x,i.x),td(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a=function(e,t){return{x:Ff(e.x,t.x),y:Ff(e.y,t.y)}}(i.layout.actual,o);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}}(a));this.hasMutatedConstraints=!!s,s&&(a=Gf(s))}return a},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,i=n.dragMomentum,o=n.dragElastic,a=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,u=this.constraints||{},c=qf(function(n){var l;if(ud(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=o?200:1e6,d=o?40:1e7,p=ua(ua({type:"inertia",velocity:i?e[n]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10},a),c);return t.startAxisValueAnimation(n,p)}});return Promise.all(c).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return $c(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;qf(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;qf(function(n){if(ud(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,i=t.getAxisMotionValue(n);if(r&&r.layout){var o=r.layout.actual[n],a=o.min,s=o.max;i.set(e[n]-yu(a,s,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,i=n.dragConstraints,o=this.visualElement.projection;if(ts(i)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};qf(function(e){var n=t.getAxisMotionValue(e);if(n){var r=n.get();a[e]=function(e,t){var n=.5,r=jf(e),i=jf(t);return i>r?n=gu(t.min,t.max-r,e.min):r>i&&(n=gu(e.min,e.max-i,t.min)),su(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=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),qf(function(e){if(ud(e,r,null)){var n=t.getAxisMotionValue(e),i=t.constraints[e],o=i.min,s=i.max;n.set(yu(o,s,a[e]))}})}},e.prototype.addListeners=function(){var e,t=this;sd.set(this.visualElement,this);var n=Dl(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(){ts(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();var a=Al(window,"resize",function(){return t.scalePositionWithinConstraints()});return i.addEventListener("didUpdate",function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(qf(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(){a(),n(),o()}},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,o=e.dragPropagation,a=void 0!==o&&o,s=e.dragConstraints,l=void 0!==s&&s,u=e.dragElastic,c=void 0===u?zf:u,f=e.dragMomentum,d=void 0===f||f;return ua(ua({},e),{drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:l,dragElastic:c,dragMomentum:d})},e}();function ud(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var cd={pan:nu(function(t){var n=t.onPan,r=t.onPanStart,i=t.onPanEnd,o=t.onPanSessionStart,a=t.visualElement,s=n||r||i||o,l=(0,e.useRef)(null),u=(0,e.useContext)(Ka).transformPagePoint,c={onSessionStart:o,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)}),Ul(a,"pointerdown",s&&function(e){l.current=new Sf(e,c,{transformPagePoint:u})}),za(function(){return l.current&&l.current.end()})}),drag:nu(function(t){var n=t.dragControls,r=t.visualElement,i=Ia(function(){return new ld(r)});(0,e.useEffect)(function(){return n&&n.subscribe(i)},[i,n]),(0,e.useEffect)(function(){return i.addListeners()},[i])})},fd=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],dd=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,a=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=fd.map(function(){return new Jc}),t={},n={clearAllListeners:function(){return e.forEach(function(e){return e.clear()})},updatePropListeners:function(e){fd.forEach(function(r){var i,o="on"+r,a=e[o];null===(i=t[r])||void 0===i||i.call(t),a&&(t[r]=n[o](a))})}};return e.forEach(function(e,t){n["on"+fd[t]]=function(t){return e.add(t)},n["notify"+fd[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,da([],fa(t),!1))}}),n}(),k=new Map,S=new Map,A={},C=ua({},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&&Ta.update(N,!1,!0)}),r=t.onRenderRequest(B.scheduleRender);S.set(e,function(){n(),r()})}var j=f(p);for(var P in j){var I=j[P];void 0!==x[P]&&Ss(I)&&I.set(x[P],!1)}var L=as(p),M=ss(p),B=ua(ua({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(),Ea.update(N),Ea.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),o(B,e,p,t)},measureViewportBox:function(){return a(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=tf(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&&!Ss(t))return t}return C[e]}},E),{build:function(){return T(),_},scheduleRender:function(){Ta.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 o=t[i],a=n[i];if(Ss(o))e.addValue(i,o);else if(Ss(a))e.addValue(i,tf(o));else if(a!==o)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(o)}else e.addValue(i,tf(null!==(r=e.getStaticValue(i))&&void 0!==r?r:o))}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<hd;r++){var i=pd[r],o=p[i];(rs(o)||!1===o)&&(n[i]=o)}return n}});return B}},pd=da(["initial"],fa(mf),!1),hd=pd.length;function md(e){return"string"==typeof e&&e.startsWith("var(--")}var gd=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function yd(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=fa(function(e){var t=gd.exec(e);if(!t)return[,];var n=fa(t,3);return[n[1],n[2]]}(e),2),i=r[0],o=r[1];if(i){var a=window.getComputedStyle(t).getPropertyValue(i);return a?a.trim():md(o)?yd(o,t,n+1):o}}var vd,bd=new Set(["width","height","top","left","right","bottom","x","y"]),wd=function(e){return bd.has(e)},xd=function(e,t){e.set(t,!1),e.set(t)},_d=function(e){return e===Vs||e===Ds};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(vd||(vd={}));var Ed=function(e,t){return parseFloat(e.split(", ")[t])},kd=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return Ed(o[1],t);var a=i.match(/^matrix\((.+)\)$/);return a?Ed(a[1],e):0}},Sd=new Set(["x","y","z"]),Ad=vs.filter(function(e){return!Sd.has(e)}),Cd={width:function(e,t){var n=e.x,r=t.paddingLeft,i=void 0===r?"0":r,o=t.paddingRight,a=void 0===o?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,i=void 0===r?"0":r,o=t.paddingBottom,a=void 0===o?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},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:kd(4,13),y:kd(5,14)};function Od(e,t,n,r){return function(e){return Object.keys(e).some(wd)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=ua({},t),r=ua({},r);var i=Object.keys(t).filter(wd),o=[],a=!1,s=[];if(i.forEach(function(i){var l=e.getValue(i);if(e.hasValue(i)){var u,c=n[i],f=of(c),d=t[i];if(yl(d)){var p=d.length,h=null===d[0]?1:0;c=d[h],f=of(c);for(var m=h;m<p;m++)u?Ga(of(d[m])):(u=of(d[m]),Ga(u===f||_d(f)&&_d(u)))}else u=of(d);if(f!==u)if(_d(f)&&_d(u)){var g=l.get();"string"==typeof g&&l.set(parseFloat(g)),"string"==typeof d?t[i]=parseFloat(d):Array.isArray(d)&&u===Ds&&(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):(a||(o=function(e){var t=[];return Ad.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),a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],xd(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(),o=getComputedStyle(i),a=o.display,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(function(e){s[e]=Cd[e](r,o)}),t.syncRender();var l=t.measureViewportBox();return n.forEach(function(n){var r=t.getValue(n);xd(r,s[n]),e[n]=Cd[n](l,o)}),e}(t,e,s);return o.length&&o.forEach(function(t){var n=fa(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 Td={treeType:"dom",readValueFromInstance:function(e,t){if(xs(t)){var n=Vc(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r));return(Cs(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 ad(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 o=t.transition,a=t.transitionEnd,s=ca(t,["transition","transitionEnd"]),l=function(e,t,n){var r,i,o={};for(var a in e)o[a]=null!==(r=cf(a,t))&&void 0!==r?r:null===(i=n.getValue(a))||void 0===i?void 0:i.get();return o}(s,o||{},e);if(i&&(a&&(a=i(a)),s&&(s=i(s)),l&&(l=i(l))),r){!function(e,t,n){var r,i,o,a,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)||Kc(d))?d=parseFloat(d):!sf(d)&&Uu.test(f)&&(d=Hc(c,f)),e.addValue(c,tf(d)),null!==(o=(a=n)[c])&&void 0!==o||(a[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=ca(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};for(var a in n&&(n=ua({},n)),e.forEachValue(function(e){var t=e.get();if(md(t)){var n=yd(t,o);n&&e.set(n)}}),i){var s=i[a];if(md(s)){var l=yd(s,o);l&&(i[a]=l,n&&(null!==(r=n[a])&&void 0!==r||(n[a]=s)))}}return{target:i,transitionEnd:n}}(e,t,r);return Od(e,t=i.target,n,r=i.transitionEnd)}(e,s,l,a);a=u.transitionEnd,s=u.target}return ua({transition:o,transitionEnd:a},s)},scrapeMotionValuesFromProps:hl,build:function(e,t,n,r,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),Zs(t,n,r,i.transformTemplate)},render:fl},Nd=dd(Td),Rd=dd(ua(ua({},Td),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return xs(t)?(null===(n=Vc(t))||void 0===n?void 0:n.default)||0:(t=dl.has(t)?t:cl(t),e.getAttribute(t))},scrapeMotionValuesFromProps:ml,build:function(e,t,n,r,i){ol(t,n,r,i.transformTemplate)},render:pl})),jd=function(e,t){return ms(e)?Rd(t,{enableHardwareAcceleration:!1}):Nd(t,{enableHardwareAcceleration:!0})};function Pd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Id={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!Ds.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,"%")}},Ld="_$css",Md={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),a=[];o&&(e=e.replace(gd,function(e){return a.push(e),Ld}));var s=Uu.parse(e);if(s.length>5)return i;var l=Uu.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=yu(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(o){var h=0;p=p.replace(Ld,function(){var e=a[h];return h++,e})}return p}},Bd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return la(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,a=n.layoutId,s=r.projection;e=Dd,Object.assign(gs,e),s&&((null==i?void 0:i.group)&&i.group.add(s),(null==o?void 0:o.register)&&a&&o.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",function(){t.safeToRemove()}),s.setOptions(ua(ua({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),us.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,i=n.visualElement,o=n.drag,a=n.isPresent,s=i.projection;return s?(s.isPresent=a,o||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||Ta.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),Dd={borderRadius:ua(ua({},Id),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Id,borderTopRightRadius:Id,borderBottomLeftRadius:Id,borderBottomRightRadius:Id,boxShadow:Md},Ud={measureLayout:function(t){var n=fa(iu(),2),r=n[0],i=n[1],o=(0,e.useContext)(Fa);return e.createElement(Bd,ua({},t,{layoutGroup:o,switchLayoutGroup:(0,e.useContext)(fs),isPresent:r,safeToRemove:i}))}},Fd=["TopLeft","TopRight","BottomLeft","BottomRight"],zd=Fd.length,Vd=function(e){return"string"==typeof e?parseFloat(e):e},Hd=function(e){return"number"==typeof e||Ds.test(e)};function Wd(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var qd=Zd(0,.5,ic),Gd=Zd(.5,.95,Ju);function Zd(e,t,n){return function(r){return r<e?0:r>t?1:n(gu(e,t,r))}}function Yd(e,t){e.min=t.min,e.max=t.max}function $d(e,t){Yd(e.x,t.x),Yd(e.y,t.y)}function Kd(e,t,n,r,i){return e=Xf(e-=t,1/n,r),void 0!==i&&(e=Xf(e,1/i,r)),e}function Xd(e,t,n,r,i){var o=fa(n,3),a=o[0],s=o[1],l=o[2];!function(e,t,n,r,i,o,a){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===o&&(o=e),void 0===a&&(a=e),Bs.test(t)&&(t=parseFloat(t),t=yu(a.min,a.max,t/100)-a.min),"number"==typeof t){var s=yu(o.min,o.max,r);e===o&&(s-=t),e.min=Kd(e.min,t,n,s,i),e.max=Kd(e.max,t,n,s,i)}}(e,t[a],t[s],t[l],t.scale,r,i)}var Qd=["x","scaleX","originX"],Jd=["y","scaleY","originY"];function ep(e,t,n,r){Xd(e.x,t,Qd,null==n?void 0:n.x,null==r?void 0:r.x),Xd(e.y,t,Jd,null==n?void 0:n.y,null==r?void 0:r.y)}function tp(e){return 0===e.translate&&1===e.scale}function np(e){return tp(e.x)&&tp(e.y)}function rp(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 ip=function(){function e(){this.members=[]}return e.prototype.add=function(e){Xc(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Qc(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,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===o||o.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 op(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,s=n.rotateX,l=n.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),s&&(o+="rotateX(".concat(s,"deg) ")),l&&(o+="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)"===(o+="scale(".concat(u,", ").concat(c,")"))?"none":o}var ap=function(e,t){return e.depth-t.depth},sp=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Xc(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Qc(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(ap),this.isDirty=!1,this.children.forEach(e)},e}();function lp(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,o=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(mp),i.nodes.forEach(gp)},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?da(da([],fa(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var o=0;o<this.path.length;o++)this.path[o].shouldResetTransform=!0;this.root===this&&(this.nodes=new sp)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Jc),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,da([],fa(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 o=this.options,a=o.layoutId,s=o.layout,l=o.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||a)&&(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),us.hasAnimatedSinceResize&&(us.hasAnimatedSinceResize=!1,i.nodes.forEach(hp))})}a&&this.root.registerSharedNode(a,this),!1!==this.options.animate&&l&&(a||s)&&this.addEventListener("didUpdate",function(e){var t,n,r,o,a,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:_p,p=l.getProps(),h=p.onLayoutAnimationStart,m=p.onLayoutAnimationComplete,g=!i.targetLayout||!rp(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=ua(ua({},Yc(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===(a=(o=i.options).onExitComplete)||void 0===a||a.call(o));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,Ea.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(yp))},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 o=this.path[i];o.shouldResetTransform=!0,o.updateScroll()}var a=this.options,s=a.layoutId,l=a.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(dp);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Ep),this.potentialNodes.clear()),this.nodes.forEach(pp),this.nodes.forEach(up),this.nodes.forEach(cp),this.clearAllSnapshots(),ka.update(),ka.preRender(),ka.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(fp),this.sharedNodes.forEach(vp)},e.prototype.scheduleUpdateProjection=function(){Ta.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;Ta.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));Sp(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();Sp(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(o){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!np(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,i=null==r?void 0:r(this.latestValues,""),a=i!==this.prevTransformTemplateValue;t&&(n||$f(this.latestValues)||a)&&(o(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&&(td(t.x,n.x),td(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};$d(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],i=r.scroll,o=r.options,a=r.isScrollRoot;if(r!==this.root&&i&&o.layoutScroll){if(a){$d(t,e);var s=this.root.scroll;s&&(td(t.x,-s.x),td(t.y,-s.y))}td(t.x,i.x),td(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}};$d(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&&od(n,{x:-i.scroll.x,y:-i.scroll.y}),$f(i.latestValues)&&od(n,i.latestValues)}return $f(this.latestValues)&&od(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};$d(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];if(i.instance&&$f(i.latestValues)){Yf(i.latestValues)&&i.updateSnapshot();var o=Wf();$d(o,i.measure()),ep(n,i.latestValues,null===(t=i.snapshot)||void 0===t?void 0:t.layout,o)}}return $f(this.latestValues)&&ep(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=ua(ua(ua({},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,o=i.layout,a=i.layoutId;this.layout&&(o||a)&&(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}},Df(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),$d(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,Mf(t.x,n.x,r.x),Mf(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):$d(this.target,this.layout.actual),ed(this.target,this.targetDelta)):$d(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}},Df(this.relativeTargetOrigin,this.target,this.relativeParent.target),$d(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!$f(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();$d(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var i,o;void 0===r&&(r=!1);var a=n.length;if(a){var s,l;t.x=t.y=1;for(var u=0;u<a;u++)l=(s=n[u]).projectionDelta,"contents"!==(null===(o=null===(i=s.instance)||void 0===i?void 0:i.style)||void 0===o?void 0:o.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&od(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,ed(e,l)),r&&$f(s.latestValues)&&od(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);var o=i.target;if(o){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 a=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;Lf(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=op(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}}},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,o=(null==i?void 0:i.latestValues)||{},a=ua({},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(xp));this.animationProgress=0,this.mixTargetDelta=function(t){var n,i=t/1e3;bp(s.x,e.x,i),bp(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)&&(Df(l,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){wp(e.x,t.x,n.x,r),wp(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,l,i)),u&&(r.animationValues=a,function(e,t,n,r,i,o){var a,s,l,u;i?(e.opacity=yu(0,null!==(a=n.opacity)&&void 0!==a?a:1,qd(r)),e.opacityExit=yu(null!==(s=t.opacity)&&void 0!==s?s:1,0,Gd(r))):o&&(e.opacity=yu(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(var c=0;c<zd;c++){var f="border".concat(Fd[c],"Radius"),d=Wd(t,f),p=Wd(n,f);void 0===d&&void 0===p||(d||(d=0),p||(p=0),0===d||0===p||Hd(d)===Hd(p)?(e[f]=Math.max(yu(Vd(d),Vd(p),r),0),(Bs.test(p)||Bs.test(d))&&(e[f]+="%")):e[f]=p)}(t.rotate||n.rotate)&&(e.rotate=yu(t.rotate||0,n.rotate||0,r))}(a,o,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&&(Ea.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ta.update(function(){us.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=Ss(0)?0:tf(0);return $c("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,ua(ua({},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&&($d(t,n),od(t,i),Lf(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 ip),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,o=this.getStack();o&&o.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<ys.length;r++){var i="rotate"+ys[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,o,a;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=bl(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=bl(e.pointerEvents)||""),this.hasProjected&&!$f(this.latestValues)&&(c.transform=l?l({},""):"none",this.hasProjected=!1),c}var f=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=op(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!==(o=f.opacity)&&void 0!==o?o:"":null!==(a=f.opacityExit)&&void 0!==a?a:0,gs)if(void 0!==f[m]){var g=gs[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?bl(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(dp),this.root.sharedNodes.clear()},e}()}function up(e){e.updateLayout()}function cp(e){var t,n,r,i,o=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,l=a.measured;"size"===e.options.animationType?qf(function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=jf(t);t.min=s[e].min,t.max=t.min+n}):"position"===e.options.animationType&&qf(function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=jf(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}};Lf(u,s,o.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o.isShared?Lf(c,e.applyTransform(l,!0),o.measured):Lf(c,s,o.layout);var f=!np(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}};Df(g,o.layout,h.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};Df(y,s,m.actual),rp(g,y)||(d=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,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 fp(e){e.clearSnapshot()}function dp(e){e.clearMeasurements()}function pp(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function hp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function mp(e){e.resolveTargetDelta()}function gp(e){e.calcProjection()}function yp(e){e.resetRotation()}function vp(e){e.removeLeadSnapshot()}function bp(e,t,n){e.translate=yu(t.translate,0,n),e.scale=yu(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function wp(e,t,n,r){e.min=yu(t.min,n.min,r),e.max=yu(t.max,n.max,r)}function xp(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var _p={duration:.45,ease:[.4,0,.1,1]};function Ep(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 kp(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Sp(e){kp(e.x),kp(e.y)}var Ap=lp({attachResizeListener:function(e,t){return Al(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Cp={current:void 0},Op=lp({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Cp.current){var e=new Ap(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Cp.current=e}return Cp.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),Tp=ua(ua(ua(ua({},wf),ru),cd),Ud),Np=function(e){function t(t,n){return void 0===n&&(n={}),ps(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 o=t.forwardMotionProps,a=void 0!==o&&o,s=ms(e)?kl:Sl;return ua(ua({},s),{preloadedFeatures:n,useRender:ll(a),createVisualElement:r,projectionNodeConstructor:i,Component:e})}(e,t,Tp,jd,Op)});const Rp={success:"tw-bg-green-300",info:"tw-bg-sky-300",warning:"tw-bg-amber-300",error:"tw-bg-red-300"},jp={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 Ip(t){var n;const{dispatch:r}=(0,e.useContext)(m),[i,o]=(0,e.useState)(!1),a=(0,e.useRef)(null);(0,e.useEffect)(()=>{let e,n;return t.timeoutMs&&(e=setTimeout(()=>r(E(t.id)),300+t.timeoutMs),n=setTimeout(()=>o(!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||Rp[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 "+jp[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)(So,{className:"tw-cursor-pointer hover:tw-scale-125 tw-transition-all",icon:Xt})})}),t.showSpinner&&(0,d.jsx)("div",{className:"tw-flex tw-flex-grow tw-justify-end",children:(0,d.jsx)("div",{children:(0,d.jsx)(So,{icon:Qt,className:"fa-spin"})})})]}),t.timeoutMs&&(0,d.jsx)("div",{children:(0,d.jsx)("div",{ref:a,className:"tw-h-1 tw-transition-all tw-ease-linear "+[s(),jp[t.type]].join(" "),style:{transitionDuration:"".concat(t.timeoutMs,"ms")}})})]})}function Lp(){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)(Ha,{children:n.map(e=>(0,d.jsx)(Np.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)(Ip,{...e})},e.id))})})}const Mp=t=>{const{id:n,className:r,role:i,ariaHidden:o,ariaLabel:a,initialValue:s,label:l,title:u,placeholder:c,autoComplete:f,cols:p,rows:h,disabled:m,minLength:g,maxLength:y,readOnly:v,resize:b,wrap:w,autoResize:x,onChange:_,onEnterKey:E,showRemainingCharacterCount:k}=t,[S,A]=e.useState(s||""),C=e.useRef(null),O=e.useRef(0),T=()=>{C.current&&(C.current.style.height="1px",C.current.style.height="".concat(C.current.scrollHeight,"px"))};e.useEffect(()=>{A(s),x&&C.current&&T()},[s]),e.useEffect(()=>{if(!x)return()=>{};const e=new ResizeObserver(e=>{const t=e[0].contentRect.width;O.current!=t&&(requestAnimationFrame(()=>T()),O.current=t)});return C.current&&e.observe(C.current),()=>{e.disconnect()}},[x]);let N=void 0!==y&&!!k;return N&&"number"==typeof k&&(N=S.length>=y-k),(0,d.jsxs)("div",{className:j("common-textarea-wrapper",m&&"disabled",b&&"resize-".concat(b),r),children:[l&&(0,d.jsx)("label",{className:"common-textarea-label",children:l}),(0,d.jsxs)("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":a,"aria-hidden":o,placeholder:c,value:S||"",cols:p,rows:h,minLength:g,maxLength:y,wrap:w,readOnly:!!v,ref:C,onChange:e=>{const t=e.target.value;v||S===t||A(t),_&&_(t),x&&C.current&&T()},onKeyDown:e=>{const t="number"==typeof e.which?e.which:e.keyCode;13!==t&&32!==t||E&&(e.preventDefault(),E(S))},autoComplete:f?"":"off",autoCorrect:f?"":"off",autoCapitalize:f?"":"off",spellCheck:f,disabled:m}),N&&(0,d.jsx)("div",{className:"common-textarea-character-count",role:"presentation","aria-hidden":"true",children:y-S.length})]})]})},Bp=e=>{const{children:n,id:r,className:i,ariaLabel:o,ariaHidden:a,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=j("common-modal-container",g&&"fullscreen",i);return t.createPortal((0,d.jsx)(Qo,{className:b,onEscape:v,children:(0,d.jsxs)("div",{id:r,className:"common-modal",role:l||"dialog","aria-hidden":a,"aria-label":o,"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)(F,{className:"common-button menu-button",title:lf("Help on {0} dialog",u),href:e.helpUrl,target:"_blank",children:(0,d.jsx)("span",{className:"common-button-flex",children:(0,d.jsx)("i",{className:"fas fa-question","aria-hidden":!0})})})}),!g&&!y&&(0,d.jsx)("div",{className:"common-modal-close",children:(0,d.jsx)(L,{className:"menu-button",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)},Dp=t=>{var n,r;const{onSignIn:i,onClose:o,appMessage:a,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)(Bp,{title:y,onClose:o,hideDismissButton:l,children:(0,d.jsxs)("div",{className:"signin-form",children:[(0,d.jsxs)("div",{className:"signin-header",children:[a||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:"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)(ea,{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)(F,{href:"/identity/sign-in",target:"_blank",children:lf("Learn more")})})]})]})})};function Up(e){const{title:t,confirmLabel:n,cancelLabel:r,children:i,onConfirm:o,onCancel:a}=e,s=[{label:null!=r?r:lf("Cancel"),className:"primary inverted",onClick:a},{label:null!=n?n:lf("Confirm"),className:"primary",onClick:o}];return(0,d.jsx)(Bp,{title:t,actions:s,onClose:a,children:i})}function Fp(){const{state:t}=(0,e.useContext)(m),{deepLinks:n,clientRole:r,gameState:i}=t,{gameId:o}=null!=i?i:{},[a,s]=(0,e.useState)("");switch(t.modal){case"sign-in":return(0,d.jsx)(Dp,{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 De();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)(Up,{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}))}}(o,a)},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)(Mp,{onChange:s,maxLength:1e3})})]})});case"kick-player":return(0,d.jsx)(Up,{title:lf("Kick Player"),onConfirm:()=>{h({type:"CLEAR_MODAL"}),function(e){try{pxt.tickEvent("mp.kickplayer"),function(e){var t;null===(t=ht)||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)(Up,{title:lf("End the Game"),onConfirm:async()=>{h({type:"CLEAR_MODAL"}),await wt("ended")},onCancel:()=>h({type:"CLEAR_MODAL"}),children:(0,d.jsx)("div",{children:lf("End the game? All players will be disconnected.")})}):(0,d.jsx)(Up,{title:lf("Leave Game"),onConfirm:async()=>{h({type:"CLEAR_MODAL"}),await wt("left")},onCancel:()=>h({type:"CLEAR_MODAL"}),children:(0,d.jsx)("div",{children:lf("Leave the game?")})});default:return null}}function zp(){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 Ot()}})})]}),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.")})]})]})}class Vp{constructor(e){this.currentTheme=void 0,this.subscribers=void 0,this.document=void 0,this.document=e}static getInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return Vp.instances.has(e)||Vp.instances.set(e,new Vp(e)),Vp.instances.get(e)}static isCurrentThemeHighContrast(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const n=Vp.getInstance(t);return n.isHighContrast(null===(e=n.getCurrentColorTheme())||void 0===e?void 0:e.id)}getCurrentColorTheme(){return this.currentTheme}isKnownTheme(e){var t,n;return!(null===(t=pxt.appTarget)||void 0===t||null===(n=t.colorThemeMap)||void 0===n||!n[e])}getAllColorThemes(){var e;return(null!==(e=pxt.appTarget)&&void 0!==e&&e.colorThemeMap?Object.values(pxt.appTarget.colorThemeMap):[]).sort((e,t)=>{var n,r;return e.weight!==t.weight?(null!==(n=e.weight)&&void 0!==n?n:1/0)-(null!==(r=t.weight)&&void 0!==r?r:1/0):e.id.localeCompare(t.id)})}isHighContrast(e){var t,n;return e&&e===(null===(t=pxt.appTarget)||void 0===t||null===(n=t.appTheme)||void 0===n?void 0:n.highContrastColorTheme)}performHighContrastWorkaround(e){this.isHighContrast(e)?(this.document.body.classList.add("high-contrast"),this.document.body.classList.add("hc")):(this.document.body.classList.remove("high-contrast"),this.document.body.classList.remove("hc"))}switchColorTheme(e){var t,n,r;if(e===(null===(t=this.getCurrentColorTheme())||void 0===t?void 0:t.id))return;const i=null===(n=pxt.appTarget)||void 0===n||null===(r=n.colorThemeMap)||void 0===r?void 0:r[e];if(i){const t=function(e){let t="";for(const[n,r]of Object.entries(e.colors))t+="--".concat(n,": ").concat(r,";\n");return e.overrideCss&&(t+="".concat(e.overrideCss,"\n")),t=DOMPurify.sanitize(t),t}(i),n="theme-override";let r=this.document.getElementById(n);r||(r=this.document.createElement("style"),r.id=n,this.document.head.appendChild(r)),r.textContent=".pxt-theme-root { ".concat(t," }"),this.performHighContrastWorkaround(e),this.currentTheme=i,this.notifySubscribers()}}subscribe(e,t){var n;null!==(n=this.subscribers)&&void 0!==n&&n.some(t=>t.subscriberId===e)||(this.subscribers||(this.subscribers=[]),this.subscribers.push({subscriberId:e,onColorThemeChange:t}))}unsubscribe(e){this.subscribers=this.subscribers.filter(t=>t.subscriberId!==e)}notifySubscribers(){var e;null===(e=this.subscribers)||void 0===e||e.forEach(e=>e.onColorThemeChange())}}Vp.instances=new Map;const Hp=function(){const{state:t,dispatch:n}=(0,e.useContext)(m),{authStatus:r,deepLinks:i,targetConfig:o}=t,{shareCode:a,joinCode:s}=i,[l,u]=(0,e.useState)(!1);(0,e.useEffect)(()=>{o||(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)}},[])}(Tt),(0,e.useEffect)(()=>{(async function(){const e=await De(),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]),(0,e.useEffect)(()=>{var e,t;const n=null===(e=pxt.appTarget)||void 0===e||null===(t=e.appTheme)||void 0===t?void 0:t.defaultColorTheme;if(n){var r;const e=Vp.getInstance(document);n!==(null===(r=e.getCurrentColorTheme())||void 0===r?void 0:r.id)&&e.switchColorTheme(n)}});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,o=null!==(t=r.get("join"))&&void 0!==t?t:void 0;i=Ge(i),o=qe(o),n(S(i,o))},[n]);return(0,e.useEffect)(()=>{l&&c()},[l,c]),(0,e.useEffect)(()=>{l&&(a||s)&&"signed-in"===r&&(a?vt(a).then(()=>{}).catch(()=>{}):s&&bt(s).then(()=>{}).catch(()=>{}),n(S(void 0,void 0)))},[n,r,a,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)(aa,{}),"signed-out"===r&&(0,d.jsx)(N,{}),"signed-in"===r&&(0,d.jsx)(Go,{})]}),(0,d.jsx)(Fp,{}),(0,d.jsx)(zp,{}),(0,d.jsx)(Lp,{})]})};window.addEventListener("DOMContentLoaded",()=>{const n=window.pxtTargetBundle;if(pxt.options.debug=/dbg=1/i.test(window.location.href),pxt.options.debug&&pxt.setLogLevel(pxt.LogLevel.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;"string"==typeof e[t]&&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)(Hp,{})})}),document.getElementById("root"))})})()})();
|