!function(e,t,r,n,i){var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},s="function"==typeof o.parcelRequire6cab&&o.parcelRequire6cab,a=s.cache||{},l="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function c(t,r){if(!a[t]){if(!e[t]){var n="function"==typeof o.parcelRequire6cab&&o.parcelRequire6cab;if(!r&&n)return n(t,!0);if(s)return s(t,!0);if(l&&"string"==typeof t)return l(t);var i=new Error("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}f.resolve=function(r){var n=e[t][1][r];return null!=n?n:r},f.cache={};var u=a[t]=new c.Module(t);e[t][0].call(u.exports,f,u,u.exports,this)}return a[t].exports;function f(e){var t=f.resolve(e);return!1===t?{}:c(t)}}c.isParcelRequire=!0,c.Module=function(e){this.id=e,this.bundle=c,this.exports={}},c.modules=e,c.cache=a,c.parent=s,c.register=function(t,r){e[t]=[function(e,t){t.exports=r},{}]},Object.defineProperty(c,"root",{get:function(){return o.parcelRequire6cab}}),o.parcelRequire6cab=c;for(var u=0;u<t.length;u++)c(t[u]);var f=c(r);"object"==typeof exports&&"undefined"!=typeof module?module.exports=f:"function"==typeof define&&define.amd&&define((function(){return f}))}({hmcF4:[function(e,t,r){e("./helpers/bundle-manifest").register(JSON.parse('{"6goqL":"index.af6bee28.js","de7P6":"logo_api_inactive.29c5dfcc.png","cGgRa":"logo_api_active.089debfa.png","d3qZi":"bert.bill.2f0dc019.css"}'))},{"./helpers/bundle-manifest":"2uuuV"}],"2uuuV":[function(e,t,r){"use strict";var n={};t.exports.register=function(e){for(var t=Object.keys(e),r=0;r<t.length;r++)n[t[r]]=e[t[r]]},t.exports.resolve=function(e){var t=n[e];if(null==t)throw new Error("Could not resolve bundle with id "+e);return t}},{}],a4cOq:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js"),i=e("react/jsx-runtime"),o=e("react"),s=(n.interopDefault(o),e("react-dom")),a=n.interopDefault(s),l=(e("react-hot-loader"),e("./components/App/App")),c=n.interopDefault(l);a.default.render((0,i.jsx)(c.default,{}),document.getElementById("app")),t.hot&&t.hot.accept()},{"react/jsx-runtime":"10SJu",react:"hCMiB","react-dom":"827j0","react-hot-loader":"llbwv","./components/App/App":"cgdV0","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"10SJu":[function(e,t,r){"use strict";t.exports=e("./cjs/react-jsx-runtime.production.min.js")},{"./cjs/react-jsx-runtime.production.min.js":"4qLMv"}],"4qLMv":[function(e,t,r){
/** @license React v17.0.2
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
"use strict";e("object-assign");var n=e("react"),i=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),r.Fragment=o("react.fragment")}var s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,o={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,n)&&!l.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:s.current}}r.jsx=c,r.jsxs=c},{"object-assign":"2nMI5",react:"hCMiB"}],"2nMI5":[function(e,t,r){
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
"use strict";var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}t.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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,a,l=s(e),c=1;c<arguments.length;c++){for(var u in r=Object(arguments[c]))i.call(r,u)&&(l[u]=r[u]);if(n){a=n(r);for(var f=0;f<a.length;f++)o.call(r,a[f])&&(l[a[f]]=r[a[f]])}}return l}},{}],hCMiB:[function(e,t,r){"use strict";t.exports=e("./cjs/react.production.min.js")},{"./cjs/react.production.min.js":"6444n"}],"6444n":[function(e,t,r){
/** @license React v17.0.2
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
"use strict";var n=e("object-assign"),i=60103,o=60106;r.Fragment=60107,r.StrictMode=60108,r.Profiler=60114;var s=60109,a=60110,l=60112;r.Suspense=60113;var c=60115,u=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),r.Fragment=f("react.fragment"),r.StrictMode=f("react.strict_mode"),r.Profiler=f("react.profiler"),s=f("react.provider"),a=f("react.context"),l=f("react.forward_ref"),r.Suspense=f("react.suspense"),c=f("react.memo"),u=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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 p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function m(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||p}function _(){}function g(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=m.prototype;var y=g.prototype=new _;y.constructor=g,n(y,m.prototype),y.isPureReactComponent=!0;var b={current:null},C=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function w(e,t,r){var n,o={},s=null,a=null;if(null!=t)for(n in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)C.call(t,n)&&!S.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(n in l=e.defaultProps)void 0===o[n]&&(o[n]=l[n]);return{$$typeof:i,type:e,key:s,ref:a,props:o,_owner:b.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var x=/\/+/g;function k(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 L(e,t,r,n,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l,c=!1;if(null===e)c=!0;else switch(a){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case i:case o:c=!0}}if(c)return s=s(c=e),e=""===n?"."+k(c,0):n,Array.isArray(s)?(r="",null!=e&&(r=e.replace(x,"$&/")+"/"),L(s,t,r,"",(function(e){return e}))):null!=s&&(E(s)&&(s=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,r+(!s.key||c&&c.key===s.key?"":(""+s.key).replace(x,"$&/")+"/")+e)),t.push(s)),1;if(c=0,n=""===n?".":n+":",Array.isArray(e))for(var u=0;u<e.length;u++){var f=n+k(a=e[u],u);c+=L(a,t,r,f,s)}else if("function"==typeof(f=null===(l=e)||"object"!=typeof l?null:"function"==typeof(l=d&&l[d]||l["@@iterator"])?l:null))for(e=f.call(e),u=0;!(a=e.next()).done;)c+=L(a=a.value,t,r,f=n+k(a,u++),s);else if("object"===a)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return c}function D(e,t,r){if(null==e)return e;var n=[],i=0;return L(e,n,"","",(function(e){return t.call(r,e,i++)})),n}function j(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 O={current:null};function M(){var e=O.current;if(null===e)throw Error(h(321));return e}var T={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:b,IsSomeRendererActing:{current:!1},assign:n};r.Children={map:D,forEach:function(e,t,r){D(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return D(e,(function(){t++})),t},toArray:function(e){return D(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error(h(143));return e}},r.Component=m,r.PureComponent=g,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,r.cloneElement=function(e,t,r){if(null==e)throw Error(h(267,e));var o=n({},e.props),s=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=b.current),void 0!==t.key&&(s=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)C.call(t,u)&&!S.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){c=Array(u);for(var f=0;f<u;f++)c[f]=arguments[f+2];o.children=c}return{$$typeof:i,type:e.type,key:s,ref:a,props:o,_owner:l}},r.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},r.createElement=w,r.createFactory=function(e){var t=w.bind(null,e);return t.type=e,t},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:l,render:e}},r.isValidElement=E,r.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:j}},r.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},r.useCallback=function(e,t){return M().useCallback(e,t)},r.useContext=function(e,t){return M().useContext(e,t)},r.useDebugValue=function(){},r.useEffect=function(e,t){return M().useEffect(e,t)},r.useImperativeHandle=function(e,t,r){return M().useImperativeHandle(e,t,r)},r.useLayoutEffect=function(e,t){return M().useLayoutEffect(e,t)},r.useMemo=function(e,t){return M().useMemo(e,t)},r.useReducer=function(e,t,r){return M().useReducer(e,t,r)},r.useRef=function(e){return M().useRef(e)},r.useState=function(e){return M().useState(e)},r.version="17.0.2"},{"object-assign":"2nMI5"}],"827j0":[function(e,t,r){"use strict";!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){console.error(e)}}(),t.exports=e("./cjs/react-dom.production.min.js")},{"./cjs/react-dom.production.min.js":"alaA2"}],alaA2:[function(e,t,r){
/** @license React v17.0.2
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
"use strict";var n=e("react"),i=e("object-assign"),o=e("scheduler");function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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(!n)throw Error(s(227));var a=new Set,l={};function c(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[: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,p={},v={};function m(e,t,r,n,i,o,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){_[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];_[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){_[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){_[e]=new m(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){_[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){_[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){_[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){_[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){_[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,r,n){var i=_.hasOwnProperty(t)?_[t]:null;(null!==i?0===i.type:!n&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.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,r,i,n)&&(r=null),n||null===i?function(e){return!!h.call(v,e)||!h.call(p,e)&&(d.test(e)?v[e]=!0:(p[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=null===r?3!==i.type&&"":r:(t=i.attributeName,n=i.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(i=i.type)||4===i&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"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(g,y);_[t]=new m(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(g,y);_[t]=new m(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(g,y);_[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){_[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),_.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){_[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var C=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=60103,w=60106,E=60107,x=60108,k=60114,L=60109,D=60110,j=60112,O=60113,M=60120,T=60115,R=60116,P=60121,A=60128,B=60129,I=60130,N=60131;if("function"==typeof Symbol&&Symbol.for){var F=Symbol.for;S=F("react.element"),w=F("react.portal"),E=F("react.fragment"),x=F("react.strict_mode"),k=F("react.profiler"),L=F("react.provider"),D=F("react.context"),j=F("react.forward_ref"),O=F("react.suspense"),M=F("react.suspense_list"),T=F("react.memo"),R=F("react.lazy"),P=F("react.block"),F("react.scope"),A=F("react.opaque.id"),B=F("react.debug_trace_mode"),I=F("react.offscreen"),N=F("react.legacy_hidden")}var H,W="function"==typeof Symbol&&Symbol.iterator;function U(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=W&&e[W]||e["@@iterator"])?e:null}function q(e){if(void 0===H)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);H=t&&t[1]||""}return"\n"+H+e}var z=!1;function V(e,t){if(!e||z)return"";z=!0;var r=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 n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}else{try{throw Error()}catch(e){n=e}e()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),o=n.stack.split("\n"),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(1!==s||1!==a)do{if(s--,0>--a||i[s]!==o[a])return"\n"+i[s].replace(" at new "," at ")}while(1<=s&&0<=a);break}}}finally{z=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?q(e):""}function Z(e){switch(e.tag){case 5:return q(e.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 22:return e=V(e.type._render,!1);case 1:return e=V(e.type,!0);default:return""}}function G(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 E:return"Fragment";case w:return"Portal";case k:return"Profiler";case x:return"StrictMode";case O:return"Suspense";case M:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case D:return(e.displayName||"Context")+".Consumer";case L:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case T:return G(e.type);case P:return G(e._render);case R:t=e._payload,e=e._init;try{return G(e(t))}catch(e){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(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=Y(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+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 r=t.getValue(),n="";return e&&(n=Y(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(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 $(e,t){var r=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function ee(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=K(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function re(e,t){te(e,t);var r=K(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,r):t.hasOwnProperty("defaultValue")&&ie(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ne(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ie(e,t,r){"number"===t&&J(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return n.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function se(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+K(r),t=null,i=0;i<e.length;i++){if(e[i].value===r)return e[i].selected=!0,void(n&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(s(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(s(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:K(r)}}function ce(e,t){var r=K(t.value),n=K(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="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 pe(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 ve,me,_e=(me=function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((ve=ve||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ve.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function ge(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var ye={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},be=["Webkit","ms","Moz","O"];function Ce(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function Se(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),i=Ce(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var we=i({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 Ee(e,t){if(t){if(we[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 xe(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 ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Le=null,De=null,je=null;function Oe(e){if(e=ei(e)){if("function"!=typeof Le)throw Error(s(280));var t=e.stateNode;t&&(t=ri(t),Le(e.stateNode,e.type,t))}}function Me(e){De?je?je.push(e):je=[e]:De=e}function Te(){if(De){var e=De,t=je;if(je=De=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function Re(e,t){return e(t)}function Pe(e,t,r,n,i){return e(t,r,n,i)}function Ae(){}var Be=Re,Ie=!1,Ne=!1;function Fe(){null===De&&null===je||(Ae(),Te())}function He(e,t){var r=e.stateNode;if(null===r)return null;var n=ri(r);if(null===n)return null;r=n[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":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(s(231,t,typeof r));return r}var We=!1;if(f)try{var Ue={};Object.defineProperty(Ue,"passive",{get:function(){We=!0}}),window.addEventListener("test",Ue,Ue),window.removeEventListener("test",Ue,Ue)}catch(me){We=!1}function qe(e,t,r,n,i,o,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(e){this.onError(e)}}var ze=!1,Ve=null,Ze=!1,Ge=null,Ke={onError:function(e){ze=!0,Ve=e}};function Ye(e,t,r,n,i,o,s,a,l){ze=!1,Ve=null,qe.apply(Ke,arguments)}function Xe(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r: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 $e(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 r=e,n=t;;){var i=r.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(n=i.return)){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return Je(i),e;if(o===n)return Je(i),t;o=o.sibling}throw Error(s(188))}if(r.return!==n.return)r=i,n=o;else{for(var a=!1,l=i.child;l;){if(l===r){a=!0,r=i,n=o;break}if(l===n){a=!0,n=i,r=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===r){a=!0,r=o,n=i;break}if(l===n){a=!0,n=o,r=i;break}l=l.sibling}if(!a)throw Error(s(189))}}if(r.alternate!==n)throw Error(s(190))}if(3!==r.tag)throw Error(s(188));return r.stateNode.current===r?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 et(e,t){for(var r=e.alternate;null!==t;){if(t===e||t===r)return!0;t=t.return}return!1}var tt,rt,nt,it,ot=!1,st=[],at=null,lt=null,ct=null,ut=new Map,ft=new Map,dt=[],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 pt(e,t,r,n,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|r,nativeEvent:i,targetContainers:[n]}}function vt(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function mt(e,t,r,n,i,o){return null===e||e.nativeEvent!==o?(e=pt(t,r,n,i,o),null!==t&&(null!==(t=ei(t))&&rt(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function _t(e){var t=$n(e.target);if(null!==t){var r=Xe(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Qe(r)))return e.blockedOn=t,void it(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){nt(r)}))}))}else if(3===t&&r.stateNode.hydrate)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=$t(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=ei(r))&&rt(t),e.blockedOn=r,!1;t.shift()}return!0}function yt(e,t,r){gt(e)&&r.delete(t)}function bt(){for(ot=!1;0<st.length;){var e=st[0];if(null!==e.blockedOn){null!==(e=ei(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var r=$t(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r){e.blockedOn=r;break}t.shift()}null===e.blockedOn&&st.shift()}null!==at&&gt(at)&&(at=null),null!==lt&&gt(lt)&&(lt=null),null!==ct&&gt(ct)&&(ct=null),ut.forEach(yt),ft.forEach(yt)}function Ct(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,bt)))}function St(e){function t(t){return Ct(t,e)}if(0<st.length){Ct(st[0],e);for(var r=1;r<st.length;r++){var n=st[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==at&&Ct(at,e),null!==lt&&Ct(lt,e),null!==ct&&Ct(ct,e),ut.forEach(t),ft.forEach(t),r=0;r<dt.length;r++)(n=dt[r]).blockedOn===e&&(n.blockedOn=null);for(;0<dt.length&&null===(r=dt[0]).blockedOn;)_t(r),null===r.blockedOn&&dt.shift()}function wt(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Et={animationend:wt("Animation","AnimationEnd"),animationiteration:wt("Animation","AnimationIteration"),animationstart:wt("Animation","AnimationStart"),transitionend:wt("Transition","TransitionEnd")},xt={},kt={};function Lt(e){if(xt[e])return xt[e];if(!Et[e])return e;var t,r=Et[e];for(t in r)if(r.hasOwnProperty(t)&&t in kt)return xt[e]=r[t];return e}f&&(kt=document.createElement("div").style,"AnimationEvent"in window||(delete Et.animationend.animation,delete Et.animationiteration.animation,delete Et.animationstart.animation),"TransitionEvent"in window||delete Et.transitionend.transition);var Dt=Lt("animationend"),jt=Lt("animationiteration"),Ot=Lt("animationstart"),Mt=Lt("transitionend"),Tt=new Map,Rt=new Map,Pt=["abort","abort",Dt,"animationEnd",jt,"animationIteration",Ot,"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",Mt,"transitionEnd","waiting","waiting"];function At(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],i=e[r+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Rt.set(n,t),Tt.set(n,i),c(i,[n])}}(0,o.unstable_now)();var Bt=8;function It(e){if(0!=(1&e))return Bt=15,1;if(0!=(2&e))return Bt=14,2;if(0!=(4&e))return Bt=13,4;var t=24&e;return 0!==t?(Bt=12,t):0!=(32&e)?(Bt=11,32):0!==(t=192&e)?(Bt=10,t):0!=(256&e)?(Bt=9,256):0!==(t=3584&e)?(Bt=8,t):0!=(4096&e)?(Bt=7,4096):0!==(t=4186112&e)?(Bt=6,t):0!==(t=62914560&e)?(Bt=5,t):67108864&e?(Bt=4,67108864):0!=(134217728&e)?(Bt=3,134217728):0!==(t=805306368&e)?(Bt=2,t):0!=(1073741824&e)?(Bt=1,1073741824):(Bt=8,e)}function Nt(e,t){var r=e.pendingLanes;if(0===r)return Bt=0;var n=0,i=0,o=e.expiredLanes,s=e.suspendedLanes,a=e.pingedLanes;if(0!==o)n=o,i=Bt=15;else if(0!==(o=134217727&r)){var l=o&~s;0!==l?(n=It(l),i=Bt):0!==(a&=o)&&(n=It(a),i=Bt)}else 0!==(o=r&~s)?(n=It(o),i=Bt):0!==a&&(n=It(a),i=Bt);if(0===n)return 0;if(n=r&((0>(n=31-zt(n))?0:1<<n)<<1)-1,0!==t&&t!==n&&0==(t&s)){if(It(t),i<=Bt)return t;Bt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)i=1<<(r=31-zt(t)),n|=e[r],t&=~i;return n}function Ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ht(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Wt(24&~t))?Ht(10,t):e;case 10:return 0===(e=Wt(192&~t))?Ht(8,t):e;case 8:return 0===(e=Wt(3584&~t))&&(0===(e=Wt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Wt(805306368&~t))&&(t=268435456),t}throw Error(s(358,e))}function Wt(e){return e&-e}function Ut(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function qt(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,(e=e.eventTimes)[t=31-zt(t)]=r}var zt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Vt(e)/Zt|0)|0},Vt=Math.log,Zt=Math.LN2;var Gt=o.unstable_UserBlockingPriority,Kt=o.unstable_runWithPriority,Yt=!0;function Xt(e,t,r,n){Ie||Ae();var i=Jt,o=Ie;Ie=!0;try{Pe(i,e,t,r,n)}finally{(Ie=o)||Fe()}}function Qt(e,t,r,n){Kt(Gt,Jt.bind(null,e,t,r,n))}function Jt(e,t,r,n){var i;if(Yt)if((i=0==(4&t))&&0<st.length&&-1<ht.indexOf(e))e=pt(null,e,t,r,n),st.push(e);else{var o=$t(e,t,r,n);if(null===o)i&&vt(e,n);else{if(i){if(-1<ht.indexOf(e))return e=pt(o,e,t,r,n),void st.push(e);if(function(e,t,r,n,i){switch(t){case"focusin":return at=mt(at,e,t,r,n,i),!0;case"dragenter":return lt=mt(lt,e,t,r,n,i),!0;case"mouseover":return ct=mt(ct,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return ut.set(o,mt(ut.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,ft.set(o,mt(ft.get(o)||null,e,t,r,n,i)),!0}return!1}(o,e,t,r,n))return;vt(e,n)}Tn(e,t,n,null,r)}}}function $t(e,t,r,n){var i=ke(n);if(null!==(i=$n(i))){var o=Xe(i);if(null===o)i=null;else{var s=o.tag;if(13===s){if(null!==(i=Qe(o)))return i;i=null}else if(3===s){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Tn(e,t,n,i,r),null}var er=null,tr=null,rr=null;function nr(){if(rr)return rr;var e,t,r=tr,n=r.length,i="value"in er?er.value:er.textContent,o=i.length;for(e=0;e<n&&r[e]===i[e];e++);var s=n-e;for(t=1;t<=s&&r[n-t]===i[o-t];t++);return rr=i.slice(e,1<t?1-t:void 0)}function ir(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 or(){return!0}function sr(){return!1}function ar(e){function t(t,r,n,i,o){for(var s in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(i):i[s]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?or:sr,this.isPropagationStopped=sr,this}return i(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=or)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=or)},persist:function(){},isPersistent:or}),t}var lr,cr,ur,fr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dr=ar(fr),hr=i({},fr,{view:0,detail:0}),pr=ar(hr),vr=i({},hr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kr,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!==ur&&(ur&&"mousemove"===e.type?(lr=e.screenX-ur.screenX,cr=e.screenY-ur.screenY):cr=lr=0,ur=e),lr)},movementY:function(e){return"movementY"in e?e.movementY:cr}}),mr=ar(vr),_r=ar(i({},vr,{dataTransfer:0})),gr=ar(i({},hr,{relatedTarget:0})),yr=ar(i({},fr,{animationName:0,elapsedTime:0,pseudoElement:0})),br=ar(i({},fr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),Cr=ar(i({},fr,{data:0})),Sr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wr={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"},Er={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Er[e])&&!!t[e]}function kr(){return xr}var Lr=ar(i({},hr,{key:function(e){if(e.key){var t=Sr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ir(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kr,charCode:function(e){return"keypress"===e.type?ir(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ir(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Dr=ar(i({},vr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),jr=ar(i({},hr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kr})),Or=ar(i({},fr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mr=ar(i({},vr,{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})),Tr=[9,13,27,32],Rr=f&&"CompositionEvent"in window,Pr=null;f&&"documentMode"in document&&(Pr=document.documentMode);var Ar=f&&"TextEvent"in window&&!Pr,Br=f&&(!Rr||Pr&&8<Pr&&11>=Pr),Ir=String.fromCharCode(32),Nr=!1;function Fr(e,t){switch(e){case"keyup":return-1!==Tr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Wr=!1;var Ur={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 qr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ur[e.type]:"textarea"===t}function zr(e,t,r,n){Me(n),0<(t=Pn(t,"onChange")).length&&(r=new dr("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Vr=null,Zr=null;function Gr(e){kn(e,0)}function Kr(e){if(Q(ti(e)))return e}function Yr(e,t){if("change"===e)return t}var Xr=!1;if(f){var Qr;if(f){var Jr="oninput"in document;if(!Jr){var $r=document.createElement("div");$r.setAttribute("oninput","return;"),Jr="function"==typeof $r.oninput}Qr=Jr}else Qr=!1;Xr=Qr&&(!document.documentMode||9<document.documentMode)}function en(){Vr&&(Vr.detachEvent("onpropertychange",tn),Zr=Vr=null)}function tn(e){if("value"===e.propertyName&&Kr(Zr)){var t=[];if(zr(t,Zr,e,ke(e)),e=Gr,Ie)e(t);else{Ie=!0;try{Re(e,t)}finally{Ie=!1,Fe()}}}}function rn(e,t,r){"focusin"===e?(en(),Zr=r,(Vr=t).attachEvent("onpropertychange",tn)):"focusout"===e&&en()}function nn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kr(Zr)}function on(e,t){if("click"===e)return Kr(t)}function sn(e,t){if("input"===e||"change"===e)return Kr(t)}var an="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ln=Object.prototype.hasOwnProperty;function cn(e,t){if(an(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!ln.call(t,r[n])||!an(e[r[n]],t[r[n]]))return!1;return!0}function un(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fn(e,t){var r,n=un(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=un(n)}}function dn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hn(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=J((e=t.contentWindow).document)}return t}function pn(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 vn=f&&"documentMode"in document&&11>=document.documentMode,mn=null,_n=null,gn=null,yn=!1;function bn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;yn||null==mn||mn!==J(n)||("selectionStart"in(n=mn)&&pn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},gn&&cn(gn,n)||(gn=n,0<(n=Pn(_n,"onSelect")).length&&(t=new dr("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=mn)))}At("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),At("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),At(Pt,2);for(var Cn="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Sn=0;Sn<Cn.length;Sn++)Rt.set(Cn[Sn],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("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 wn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),En=new Set("cancel close invalid load scroll toggle".split(" ").concat(wn));function xn(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,i,o,a,l,c){if(Ye.apply(this,arguments),ze){if(!ze)throw Error(s(198));var u=Ve;ze=!1,Ve=null,Ze||(Ze=!0,Ge=u)}}(n,t,void 0,e),e.currentTarget=null}function kn(e,t){t=0!=(4&t);for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var s=n.length-1;0<=s;s--){var a=n[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;xn(i,a,c),o=l}else for(s=0;s<n.length;s++){if(l=(a=n[s]).instance,c=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;xn(i,a,c),o=l}}}if(Ze)throw e=Ge,Ze=!1,Ge=null,e}function Ln(e,t){var r=ni(t),n=e+"__bubble";r.has(n)||(Mn(t,e,2,!1),r.add(n))}var Dn="_reactListening"+Math.random().toString(36).slice(2);function jn(e){e[Dn]||(e[Dn]=!0,a.forEach((function(t){En.has(t)||On(t,!1,e,null),On(t,!0,e,null)})))}function On(e,t,r,n){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=r;if("selectionchange"===e&&9!==r.nodeType&&(o=r.ownerDocument),null!==n&&!t&&En.has(e)){if("scroll"!==e)return;i|=2,o=n}var s=ni(o),a=e+"__"+(t?"capture":"bubble");s.has(a)||(t&&(i|=4),Mn(o,e,i,t),s.add(a))}function Mn(e,t,r,n){var i=Rt.get(t);switch(void 0===i?2:i){case 0:i=Xt;break;case 1:i=Qt;break;default:i=Jt}r=i.bind(null,t,r,e),i=void 0,!We||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),n?void 0!==i?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):void 0!==i?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Tn(e,t,r,n,i){var o=n;if(0==(1&t)&&0==(2&t)&&null!==n)e:for(;;){if(null===n)return;var s=n.tag;if(3===s||4===s){var a=n.stateNode.containerInfo;if(a===i||8===a.nodeType&&a.parentNode===i)break;if(4===s)for(s=n.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;s=s.return}for(;null!==a;){if(null===(s=$n(a)))return;if(5===(l=s.tag)||6===l){n=o=s;continue e}a=a.parentNode}}n=n.return}!function(e,t,r){if(Ne)return e(t,r);Ne=!0;try{Be(e,t,r)}finally{Ne=!1,Fe()}}((function(){var n=o,i=ke(r),s=[];e:{var a=Tt.get(e);if(void 0!==a){var l=dr,c=e;switch(e){case"keypress":if(0===ir(r))break e;case"keydown":case"keyup":l=Lr;break;case"focusin":c="focus",l=gr;break;case"focusout":c="blur",l=gr;break;case"beforeblur":case"afterblur":l=gr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=_r;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=jr;break;case Dt:case jt:case Ot:l=yr;break;case Mt:l=Or;break;case"scroll":l=pr;break;case"wheel":l=Mr;break;case"copy":case"cut":case"paste":l=br;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Dr}var u=0!=(4&t),f=!u&&"scroll"===e,d=u?null!==a?a+"Capture":null:a;u=[];for(var h,p=n;null!==p;){var v=(h=p).stateNode;if(5===h.tag&&null!==v&&(h=v,null!==d&&(null!=(v=He(p,d))&&u.push(Rn(p,v,h)))),f)break;p=p.return}0<u.length&&(a=new l(a,c,null,r,i),s.push({event:a,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(c=r.relatedTarget||r.fromElement)||!$n(c)&&!c[Qn])&&(l||a)&&(a=i.window===i?i:(a=i.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=n,null!==(c=(c=r.relatedTarget||r.toElement)?$n(c):null)&&(c!==(f=Xe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=n),l!==c)){if(u=mr,v="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=Dr,v="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==l?a:ti(l),h=null==c?a:ti(c),(a=new u(v,p+"leave",l,r,i)).target=f,a.relatedTarget=h,v=null,$n(i)===n&&((u=new u(d,p+"enter",c,r,i)).target=h,u.relatedTarget=f,v=u),f=v,l&&c)e:{for(d=c,p=0,h=u=l;h;h=An(h))p++;for(h=0,v=d;v;v=An(v))h++;for(;0<p-h;)u=An(u),p--;for(;0<h-p;)d=An(d),h--;for(;p--;){if(u===d||null!==d&&u===d.alternate)break e;u=An(u),d=An(d)}u=null}else u=null;null!==l&&Bn(s,a,l,u,!1),null!==c&&null!==f&&Bn(s,f,c,u,!0)}if("select"===(l=(a=n?ti(n):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var m=Yr;else if(qr(a))if(Xr)m=sn;else{m=nn;var _=rn}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(m=on);switch(m&&(m=m(e,n))?zr(s,m,r,i):(_&&_(e,a,n),"focusout"===e&&(_=a._wrapperState)&&_.controlled&&"number"===a.type&&ie(a,"number",a.value)),_=n?ti(n):window,e){case"focusin":(qr(_)||"true"===_.contentEditable)&&(mn=_,_n=n,gn=null);break;case"focusout":gn=_n=mn=null;break;case"mousedown":yn=!0;break;case"contextmenu":case"mouseup":case"dragend":yn=!1,bn(s,r,i);break;case"selectionchange":if(vn)break;case"keydown":case"keyup":bn(s,r,i)}var g;if(Rr)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Wr?Fr(e,r)&&(y="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(y="onCompositionStart");y&&(Br&&"ko"!==r.locale&&(Wr||"onCompositionStart"!==y?"onCompositionEnd"===y&&Wr&&(g=nr()):(tr="value"in(er=i)?er.value:er.textContent,Wr=!0)),0<(_=Pn(n,y)).length&&(y=new Cr(y,e,null,r,i),s.push({event:y,listeners:_}),g?y.data=g:null!==(g=Hr(r))&&(y.data=g))),(g=Ar?function(e,t){switch(e){case"compositionend":return Hr(t);case"keypress":return 32!==t.which?null:(Nr=!0,Ir);case"textInput":return(e=t.data)===Ir&&Nr?null:e;default:return null}}(e,r):function(e,t){if(Wr)return"compositionend"===e||!Rr&&Fr(e,t)?(e=nr(),rr=tr=er=null,Wr=!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 Br&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=Pn(n,"onBeforeInput")).length&&(i=new Cr("onBeforeInput","beforeinput",null,r,i),s.push({event:i,listeners:n}),i.data=g))}kn(s,t)}))}function Rn(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Pn(e,t){for(var r=t+"Capture",n=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=He(e,r))&&n.unshift(Rn(e,o,i)),null!=(o=He(e,t))&&n.push(Rn(e,o,i))),e=e.return}return n}function An(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Bn(e,t,r,n,i){for(var o=t._reactName,s=[];null!==r&&r!==n;){var a=r,l=a.alternate,c=a.stateNode;if(null!==l&&l===n)break;5===a.tag&&null!==c&&(a=c,i?null!=(l=He(r,o))&&s.unshift(Rn(r,l,a)):i||null!=(l=He(r,o))&&s.push(Rn(r,l,a))),r=r.return}0!==s.length&&e.push({event:t,listeners:s})}function In(){}var Nn=null,Fn=null;function Hn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Wn(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 Un="function"==typeof setTimeout?setTimeout:void 0,qn="function"==typeof clearTimeout?clearTimeout:void 0;function zn(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Vn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Zn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var Gn=0;var Kn=Math.random().toString(36).slice(2),Yn="__reactFiber$"+Kn,Xn="__reactProps$"+Kn,Qn="__reactContainer$"+Kn,Jn="__reactEvents$"+Kn;function $n(e){var t=e[Yn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Qn]||r[Yn]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=Zn(e);null!==e;){if(r=e[Yn])return r;e=Zn(e)}return t}r=(e=r).parentNode}return null}function ei(e){return!(e=e[Yn]||e[Qn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ti(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function ri(e){return e[Xn]||null}function ni(e){var t=e[Jn];return void 0===t&&(t=e[Jn]=new Set),t}var ii=[],oi=-1;function si(e){return{current:e}}function ai(e){0>oi||(e.current=ii[oi],ii[oi]=null,oi--)}function li(e,t){oi++,ii[oi]=e.current,e.current=t}var ci={},ui=si(ci),fi=si(!1),di=ci;function hi(e,t){var r=e.type.contextTypes;if(!r)return ci;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in r)o[i]=t[i];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function pi(e){return null!=(e=e.childContextTypes)}function vi(){ai(fi),ai(ui)}function mi(e,t,r){if(ui.current!==ci)throw Error(s(168));li(ui,t),li(fi,r)}function _i(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in e))throw Error(s(108,G(t)||"Unknown",o));return i({},r,n)}function gi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ci,di=ui.current,li(ui,e),li(fi,fi.current),!0}function yi(e,t,r){var n=e.stateNode;if(!n)throw Error(s(169));r?(e=_i(e,t,di),n.__reactInternalMemoizedMergedChildContext=e,ai(fi),ai(ui),li(ui,e)):ai(fi),li(fi,r)}var bi=null,Ci=null,Si=o.unstable_runWithPriority,wi=o.unstable_scheduleCallback,Ei=o.unstable_cancelCallback,xi=o.unstable_shouldYield,ki=o.unstable_requestPaint,Li=o.unstable_now,Di=o.unstable_getCurrentPriorityLevel,ji=o.unstable_ImmediatePriority,Oi=o.unstable_UserBlockingPriority,Mi=o.unstable_NormalPriority,Ti=o.unstable_LowPriority,Ri=o.unstable_IdlePriority,Pi={},Ai=void 0!==ki?ki:function(){},Bi=null,Ii=null,Ni=!1,Fi=Li(),Hi=1e4>Fi?Li:function(){return Li()-Fi};function Wi(){switch(Di()){case ji:return 99;case Oi:return 98;case Mi:return 97;case Ti:return 96;case Ri:return 95;default:throw Error(s(332))}}function Ui(e){switch(e){case 99:return ji;case 98:return Oi;case 97:return Mi;case 96:return Ti;case 95:return Ri;default:throw Error(s(332))}}function qi(e,t){return e=Ui(e),Si(e,t)}function zi(e,t,r){return e=Ui(e),wi(e,t,r)}function Vi(){if(null!==Ii){var e=Ii;Ii=null,Ei(e)}Zi()}function Zi(){if(!Ni&&null!==Bi){Ni=!0;var e=0;try{var t=Bi;qi(99,(function(){for(;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}})),Bi=null}catch(t){throw null!==Bi&&(Bi=Bi.slice(e+1)),wi(ji,Vi),t}finally{Ni=!1}}}var Gi=C.ReactCurrentBatchConfig;function Ki(e,t){if(e&&e.defaultProps){for(var r in t=i({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var Yi=si(null),Xi=null,Qi=null,Ji=null;function $i(){Ji=Qi=Xi=null}function eo(e){var t=Yi.current;ai(Yi),e.type._context._currentValue=t}function to(e,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)===t){if(null===r||(r.childLanes&t)===t)break;r.childLanes|=t}else e.childLanes|=t,null!==r&&(r.childLanes|=t);e=e.return}}function ro(e,t){Xi=e,Ji=Qi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Ps=!0),e.firstContext=null)}function no(e,t){if(Ji!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ji=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Qi){if(null===Xi)throw Error(s(308));Qi=t,Xi.dependencies={lanes:0,firstContext:t,responders:null}}else Qi=Qi.next=t;return e._currentValue}var io=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function so(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 ao(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function lo(e,t){if(null!==(e=e.updateQueue)){var r=(e=e.shared).pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function co(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var i=null,o=null;if(null!==(r=r.firstBaseUpdate)){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===o?i=o=s:o=o.next=s,r=r.next}while(null!==r);null===o?i=o=t:o=o.next=t}else i=o=t;return r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function uo(e,t,r,n){var o=e.updateQueue;io=!1;var s=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var c=l,u=c.next;c.next=null,null===a?s=u:a.next=u,a=c;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==a&&(null===d?f.firstBaseUpdate=u:d.next=u,f.lastBaseUpdate=c)}}if(null!==s){for(d=o.baseState,a=0,f=u=c=null;;){l=s.lane;var h=s.eventTime;if((n&l)===l){null!==f&&(f=f.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,v=s;switch(l=t,h=r,v.tag){case 1:if("function"==typeof(p=v.payload)){d=p.call(h,d,l);break e}d=p;break e;case 3:p.flags=-4097&p.flags|64;case 0:if(null==(l="function"==typeof(p=v.payload)?p.call(h,d,l):p))break e;d=i({},d,l);break e;case 2:io=!0}}null!==s.callback&&(e.flags|=32,null===(l=o.effects)?o.effects=[s]:l.push(s))}else h={eventTime:h,lane:l,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===f?(u=f=h,c=d):f=f.next=h,a|=l;if(null===(s=s.next)){if(null===(l=o.shared.pending))break;s=l.next,l.next=null,o.lastBaseUpdate=l,o.shared.pending=null}}null===f&&(c=d),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=f,Na|=a,e.lanes=a,e.memoizedState=d}}function fo(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(null!==i){if(n.callback=null,n=r,"function"!=typeof i)throw Error(s(191,i));i.call(n)}}}var ho=(new n.Component).refs;function po(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:i({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var vo={isMounted:function(e){return!!(e=e._reactInternals)&&Xe(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=cl(),i=ul(e),o=ao(n,i);o.payload=t,null!=r&&(o.callback=r),lo(e,o),fl(e,i,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=cl(),i=ul(e),o=ao(n,i);o.tag=1,o.payload=t,null!=r&&(o.callback=r),lo(e,o),fl(e,i,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=cl(),n=ul(e),i=ao(r,n);i.tag=2,null!=t&&(i.callback=t),lo(e,i),fl(e,n,r)}};function mo(e,t,r,n,i,o,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,o,s):!t.prototype||!t.prototype.isPureReactComponent||(!cn(r,n)||!cn(i,o))}function _o(e,t,r){var n=!1,i=ci,o=t.contextType;return"object"==typeof o&&null!==o?o=no(o):(i=pi(t)?di:ui.current,o=(n=null!=(n=t.contextTypes))?hi(e,i):ci),t=new t(r,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=vo,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function go(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&vo.enqueueReplaceState(t,t.state,null)}function yo(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=ho,oo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=no(o):(o=pi(t)?di:ui.current,i.context=hi(e,o)),uo(e,r,i,n),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(po(e,t,o,r),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&&vo.enqueueReplaceState(i,i.state,null),uo(e,r,i,n),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var bo=Array.isArray;function Co(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(s(309));var n=r.stateNode}if(!n)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=n.refs;t===ho&&(t=n.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(s(284));if(!r._owner)throw Error(s(290,e))}return e}function So(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 wo(e){function t(t,r){if(e){var n=t.lastEffect;null!==n?(n.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r,r.nextEffect=null,r.flags=8}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(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=ql(e,t)).index=0,e.sibling=null,e}function o(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags=2,r):n:(t.flags=2,r):r}function a(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,r,n){return null===t||6!==t.tag?((t=Gl(r,e.mode,n)).return=e,t):((t=i(t,r)).return=e,t)}function c(e,t,r,n){return null!==t&&t.elementType===r.type?((n=i(t,r.props)).ref=Co(e,t,r),n.return=e,n):((n=zl(r.type,r.key,r.props,null,e.mode,n)).ref=Co(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Kl(r,e.mode,n)).return=e,t):((t=i(t,r.children||[])).return=e,t)}function f(e,t,r,n,o){return null===t||7!==t.tag?((t=Vl(r,e.mode,n,o)).return=e,t):((t=i(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t||"number"==typeof t)return(t=Gl(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case S:return(r=zl(t.type,t.key,t.props,null,e.mode,r)).ref=Co(e,null,t),r.return=e,r;case w:return(t=Kl(t,e.mode,r)).return=e,t}if(bo(t)||U(t))return(t=Vl(t,e.mode,r,null)).return=e,t;So(e,t)}return null}function h(e,t,r,n){var i=null!==t?t.key:null;if("string"==typeof r||"number"==typeof r)return null!==i?null:l(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case S:return r.key===i?r.type===E?f(e,t,r.props.children,n,i):c(e,t,r,n):null;case w:return r.key===i?u(e,t,r,n):null}if(bo(r)||U(r))return null!==i?null:f(e,t,r,n,null);So(e,r)}return null}function p(e,t,r,n,i){if("string"==typeof n||"number"==typeof n)return l(t,e=e.get(r)||null,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case S:return e=e.get(null===n.key?r:n.key)||null,n.type===E?f(t,e,n.props.children,i,n.key):c(t,e,n,i);case w:return u(t,e=e.get(null===n.key?r:n.key)||null,n,i)}if(bo(n)||U(n))return f(t,e=e.get(r)||null,n,i,null);So(t,n)}return null}return function(l,c,u,f){var v="object"==typeof u&&null!==u&&u.type===E&&null===u.key;v&&(u=u.props.children);var m="object"==typeof u&&null!==u;if(m)switch(u.$$typeof){case S:e:{for(m=u.key,v=c;null!==v;){if(v.key===m){if(7===v.tag){if(u.type===E){r(l,v.sibling),(c=i(v,u.props.children)).return=l,l=c;break e}}else if(v.elementType===u.type){r(l,v.sibling),(c=i(v,u.props)).ref=Co(l,v,u),c.return=l,l=c;break e}r(l,v);break}t(l,v),v=v.sibling}u.type===E?((c=Vl(u.props.children,l.mode,f,u.key)).return=l,l=c):((f=zl(u.type,u.key,u.props,null,l.mode,f)).ref=Co(l,c,u),f.return=l,l=f)}return a(l);case w:e:{for(v=u.key;null!==c;){if(c.key===v){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){r(l,c.sibling),(c=i(c,u.children||[])).return=l,l=c;break e}r(l,c);break}t(l,c),c=c.sibling}(c=Kl(u,l.mode,f)).return=l,l=c}return a(l)}if("string"==typeof u||"number"==typeof u)return u=""+u,null!==c&&6===c.tag?(r(l,c.sibling),(c=i(c,u)).return=l,l=c):(r(l,c),(c=Gl(u,l.mode,f)).return=l,l=c),a(l);if(bo(u))return function(i,s,a,l){for(var c=null,u=null,f=s,v=s=0,m=null;null!==f&&v<a.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var _=h(i,f,a[v],l);if(null===_){null===f&&(f=m);break}e&&f&&null===_.alternate&&t(i,f),s=o(_,s,v),null===u?c=_:u.sibling=_,u=_,f=m}if(v===a.length)return r(i,f),c;if(null===f){for(;v<a.length;v++)null!==(f=d(i,a[v],l))&&(s=o(f,s,v),null===u?c=f:u.sibling=f,u=f);return c}for(f=n(i,f);v<a.length;v++)null!==(m=p(f,i,v,a[v],l))&&(e&&null!==m.alternate&&f.delete(null===m.key?v:m.key),s=o(m,s,v),null===u?c=m:u.sibling=m,u=m);return e&&f.forEach((function(e){return t(i,e)})),c}(l,c,u,f);if(U(u))return function(i,a,l,c){var u=U(l);if("function"!=typeof u)throw Error(s(150));if(null==(l=u.call(l)))throw Error(s(151));for(var f=u=null,v=a,m=a=0,_=null,g=l.next();null!==v&&!g.done;m++,g=l.next()){v.index>m?(_=v,v=null):_=v.sibling;var y=h(i,v,g.value,c);if(null===y){null===v&&(v=_);break}e&&v&&null===y.alternate&&t(i,v),a=o(y,a,m),null===f?u=y:f.sibling=y,f=y,v=_}if(g.done)return r(i,v),u;if(null===v){for(;!g.done;m++,g=l.next())null!==(g=d(i,g.value,c))&&(a=o(g,a,m),null===f?u=g:f.sibling=g,f=g);return u}for(v=n(i,v);!g.done;m++,g=l.next())null!==(g=p(v,i,m,g.value,c))&&(e&&null!==g.alternate&&v.delete(null===g.key?m:g.key),a=o(g,a,m),null===f?u=g:f.sibling=g,f=g);return e&&v.forEach((function(e){return t(i,e)})),u}(l,c,u,f);if(m&&So(l,u),void 0===u&&!v)switch(l.tag){case 1:case 22:case 0:case 11:case 15:throw Error(s(152,G(l.type)||"Component"))}return r(l,c)}}var Eo=wo(!0),xo=wo(!1),ko={},Lo=si(ko),Do=si(ko),jo=si(ko);function Oo(e){if(e===ko)throw Error(s(174));return e}function Mo(e,t){switch(li(jo,t),li(Do,e),li(Lo,ko),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ai(Lo),li(Lo,t)}function To(){ai(Lo),ai(Do),ai(jo)}function Ro(e){Oo(jo.current);var t=Oo(Lo.current),r=pe(t,e.type);t!==r&&(li(Do,e),li(Lo,r))}function Po(e){Do.current===e&&(ai(Lo),ai(Do))}var Ao=si(0);function Bo(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Io=null,No=null,Fo=!1;function Ho(e,t){var r=Wl(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function Wo(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.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 Uo(e){if(Fo){var t=No;if(t){var r=t;if(!Wo(e,t)){if(!(t=Vn(r.nextSibling))||!Wo(e,t))return e.flags=-1025&e.flags|2,Fo=!1,void(Io=e);Ho(Io,r)}Io=e,No=Vn(t.firstChild)}else e.flags=-1025&e.flags|2,Fo=!1,Io=e}}function qo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Io=e}function zo(e){if(e!==Io)return!1;if(!Fo)return qo(e),Fo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Wn(t,e.memoizedProps))for(t=No;t;)Ho(e,t),t=Vn(t.nextSibling);if(qo(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 r=e.data;if("/$"===r){if(0===t){No=Vn(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}No=null}}else No=Io?Vn(e.stateNode.nextSibling):null;return!0}function Vo(){No=Io=null,Fo=!1}var Zo=[];function Go(){for(var e=0;e<Zo.length;e++)Zo[e]._workInProgressVersionPrimary=null;Zo.length=0}var Ko=C.ReactCurrentDispatcher,Yo=C.ReactCurrentBatchConfig,Xo=0,Qo=null,Jo=null,$o=null,es=!1,ts=!1;function rs(){throw Error(s(321))}function ns(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!an(e[r],t[r]))return!1;return!0}function is(e,t,r,n,i,o){if(Xo=o,Qo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ko.current=null===e||null===e.memoizedState?Os:Ms,e=r(n,i),ts){o=0;do{if(ts=!1,!(25>o))throw Error(s(301));o+=1,$o=Jo=null,t.updateQueue=null,Ko.current=Ts,e=r(n,i)}while(ts)}if(Ko.current=js,t=null!==Jo&&null!==Jo.next,Xo=0,$o=Jo=Qo=null,es=!1,t)throw Error(s(300));return e}function os(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===$o?Qo.memoizedState=$o=e:$o=$o.next=e,$o}function ss(){if(null===Jo){var e=Qo.alternate;e=null!==e?e.memoizedState:null}else e=Jo.next;var t=null===$o?Qo.memoizedState:$o.next;if(null!==t)$o=t,Jo=e;else{if(null===e)throw Error(s(310));e={memoizedState:(Jo=e).memoizedState,baseState:Jo.baseState,baseQueue:Jo.baseQueue,queue:Jo.queue,next:null},null===$o?Qo.memoizedState=$o=e:$o=$o.next=e}return $o}function as(e,t){return"function"==typeof t?t(e):t}function ls(e){var t=ss(),r=t.queue;if(null===r)throw Error(s(311));r.lastRenderedReducer=e;var n=Jo,i=n.baseQueue,o=r.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}n.baseQueue=i=o,r.pending=null}if(null!==i){i=i.next,n=n.baseState;var l=a=o=null,c=i;do{var u=c.lane;if((Xo&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),n=c.eagerReducer===e?c.eagerState:e(n,c.action);else{var f={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(a=l=f,o=n):l=l.next=f,Qo.lanes|=u,Na|=u}c=c.next}while(null!==c&&c!==i);null===l?o=n:l.next=a,an(n,t.memoizedState)||(Ps=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function cs(e){var t=ss(),r=t.queue;if(null===r)throw Error(s(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(null!==i){r.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);an(o,t.memoizedState)||(Ps=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function us(e,t,r){var n=t._getVersion;n=n(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===n:(e=e.mutableReadLanes,(e=(Xo&e)===e)&&(t._workInProgressVersionPrimary=n,Zo.push(t))),e)return r(t._source);throw Zo.push(t),Error(s(350))}function fs(e,t,r,n){var i=Oa;if(null===i)throw Error(s(349));var o=t._getVersion,a=o(t._source),l=Ko.current,c=l.useState((function(){return us(i,t,r)})),u=c[1],f=c[0];c=$o;var d=e.memoizedState,h=d.refs,p=h.getSnapshot,v=d.source;d=d.subscribe;var m=Qo;return e.memoizedState={refs:h,source:t,subscribe:n},l.useEffect((function(){h.getSnapshot=r,h.setSnapshot=u;var e=o(t._source);if(!an(a,e)){e=r(t._source),an(f,e)||(u(e),e=ul(m),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var n=i.entanglements,s=e;0<s;){var l=31-zt(s),c=1<<l;n[l]|=e,s&=~c}}}),[r,t,n]),l.useEffect((function(){return n(t._source,(function(){var e=h.getSnapshot,r=h.setSnapshot;try{r(e(t._source));var n=ul(m);i.mutableReadLanes|=n&i.pendingLanes}catch(e){r((function(){throw e}))}}))}),[t,n]),an(p,r)&&an(v,t)&&an(d,n)||((e={pending:null,dispatch:null,lastRenderedReducer:as,lastRenderedState:f}).dispatch=u=Ds.bind(null,Qo,e),c.queue=e,c.baseQueue=null,f=us(i,t,r),c.memoizedState=c.baseState=f),f}function ds(e,t,r){return fs(ss(),e,t,r)}function hs(e){var t=os();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:as,lastRenderedState:e}).dispatch=Ds.bind(null,Qo,e),[t.memoizedState,e]}function ps(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=Qo.updateQueue)?(t={lastEffect:null},Qo.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function vs(e){return e={current:e},os().memoizedState=e}function ms(){return ss().memoizedState}function _s(e,t,r,n){var i=os();Qo.flags|=e,i.memoizedState=ps(1|t,r,void 0,void 0===n?null:n)}function gs(e,t,r,n){var i=ss();n=void 0===n?null:n;var o=void 0;if(null!==Jo){var s=Jo.memoizedState;if(o=s.destroy,null!==n&&ns(n,s.deps))return void ps(t,r,o,n)}Qo.flags|=e,i.memoizedState=ps(1|t,r,o,n)}function ys(e,t){return _s(516,4,e,t)}function bs(e,t){return gs(516,4,e,t)}function Cs(e,t){return gs(4,2,e,t)}function Ss(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 ws(e,t,r){return r=null!=r?r.concat([e]):null,gs(4,2,Ss.bind(null,t,e),r)}function Es(){}function xs(e,t){var r=ss();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ns(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function ks(e,t){var r=ss();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ns(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Ls(e,t){var r=Wi();qi(98>r?98:r,(function(){e(!0)})),qi(97<r?97:r,(function(){var r=Yo.transition;Yo.transition=1;try{e(!1),t()}finally{Yo.transition=r}}))}function Ds(e,t,r){var n=cl(),i=ul(e),o={lane:i,action:r,eagerReducer:null,eagerState:null,next:null},s=t.pending;if(null===s?o.next=o:(o.next=s.next,s.next=o),t.pending=o,s=e.alternate,e===Qo||null!==s&&s===Qo)ts=es=!0;else{if(0===e.lanes&&(null===s||0===s.lanes)&&null!==(s=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=s(a,r);if(o.eagerReducer=s,o.eagerState=l,an(l,a))return}catch(e){}fl(e,i,n)}}var js={readContext:no,useCallback:rs,useContext:rs,useEffect:rs,useImperativeHandle:rs,useLayoutEffect:rs,useMemo:rs,useReducer:rs,useRef:rs,useState:rs,useDebugValue:rs,useDeferredValue:rs,useTransition:rs,useMutableSource:rs,useOpaqueIdentifier:rs,unstable_isNewReconciler:!1},Os={readContext:no,useCallback:function(e,t){return os().memoizedState=[e,void 0===t?null:t],e},useContext:no,useEffect:ys,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,_s(4,2,Ss.bind(null,t,e),r)},useLayoutEffect:function(e,t){return _s(4,2,e,t)},useMemo:function(e,t){var r=os();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=os();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e=(e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ds.bind(null,Qo,e),[n.memoizedState,e]},useRef:vs,useState:hs,useDebugValue:Es,useDeferredValue:function(e){var t=hs(e),r=t[0],n=t[1];return ys((function(){var t=Yo.transition;Yo.transition=1;try{n(e)}finally{Yo.transition=t}}),[e]),r},useTransition:function(){var e=hs(!1),t=e[0];return vs(e=Ls.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,r){var n=os();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},fs(n,e,t,r)},useOpaqueIdentifier:function(){if(Fo){var e=!1,t={$$typeof:A,toString:n=function(){throw e||(e=!0,r("r:"+(Gn++).toString(36))),Error(s(355))},valueOf:n},r=hs(t)[1];return 0==(2&Qo.mode)&&(Qo.flags|=516,ps(5,(function(){r("r:"+(Gn++).toString(36))}),void 0,null)),t}var n;return hs(t="r:"+(Gn++).toString(36)),t},unstable_isNewReconciler:!1},Ms={readContext:no,useCallback:xs,useContext:no,useEffect:bs,useImperativeHandle:ws,useLayoutEffect:Cs,useMemo:ks,useReducer:ls,useRef:ms,useState:function(){return ls(as)},useDebugValue:Es,useDeferredValue:function(e){var t=ls(as),r=t[0],n=t[1];return bs((function(){var t=Yo.transition;Yo.transition=1;try{n(e)}finally{Yo.transition=t}}),[e]),r},useTransition:function(){var e=ls(as)[0];return[ms().current,e]},useMutableSource:ds,useOpaqueIdentifier:function(){return ls(as)[0]},unstable_isNewReconciler:!1},Ts={readContext:no,useCallback:xs,useContext:no,useEffect:bs,useImperativeHandle:ws,useLayoutEffect:Cs,useMemo:ks,useReducer:cs,useRef:ms,useState:function(){return cs(as)},useDebugValue:Es,useDeferredValue:function(e){var t=cs(as),r=t[0],n=t[1];return bs((function(){var t=Yo.transition;Yo.transition=1;try{n(e)}finally{Yo.transition=t}}),[e]),r},useTransition:function(){var e=cs(as)[0];return[ms().current,e]},useMutableSource:ds,useOpaqueIdentifier:function(){return cs(as)[0]},unstable_isNewReconciler:!1},Rs=C.ReactCurrentOwner,Ps=!1;function As(e,t,r,n){t.child=null===e?xo(t,null,r,n):Eo(t,e.child,r,n)}function Bs(e,t,r,n,i){r=r.render;var o=t.ref;return ro(t,i),n=is(e,t,r,n,o,i),null===e||Ps?(t.flags|=1,As(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ra(e,t,i))}function Is(e,t,r,n,i,o){if(null===e){var s=r.type;return"function"!=typeof s||Ul(s)||void 0!==s.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=zl(r.type,null,n,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,Ns(e,t,s,n,i,o))}return s=e.child,0==(i&o)&&(i=s.memoizedProps,(r=null!==(r=r.compare)?r:cn)(i,n)&&e.ref===t.ref)?ra(e,t,o):(t.flags|=1,(e=ql(s,n)).ref=t.ref,e.return=t,t.child=e)}function Ns(e,t,r,n,i,o){if(null!==e&&cn(e.memoizedProps,n)&&e.ref===t.ref){if(Ps=!1,0==(o&i))return t.lanes=e.lanes,ra(e,t,o);0!=(16384&e.flags)&&(Ps=!0)}return Ws(e,t,r,n,o)}function Fs(e,t,r){var n=t.pendingProps,i=n.children,o=null!==e?e.memoizedState:null;if("hidden"===n.mode||"unstable-defer-without-hiding"===n.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},yl(t,r);else{if(0==(1073741824&r))return e=null!==o?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},yl(t,e),null;t.memoizedState={baseLanes:0},yl(t,null!==o?o.baseLanes:r)}else null!==o?(n=o.baseLanes|r,t.memoizedState=null):n=r,yl(t,n);return As(e,t,i,r),t.child}function Hs(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=128)}function Ws(e,t,r,n,i){var o=pi(r)?di:ui.current;return o=hi(t,o),ro(t,i),r=is(e,t,r,n,o,i),null===e||Ps?(t.flags|=1,As(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ra(e,t,i))}function Us(e,t,r,n,i){if(pi(r)){var o=!0;gi(t)}else o=!1;if(ro(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),_o(t,r,n),yo(t,r,n,i),n=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=r.contextType;"object"==typeof c&&null!==c?c=no(c):c=hi(t,c=pi(r)?di:ui.current);var u=r.getDerivedStateFromProps,f="function"==typeof u||"function"==typeof s.getSnapshotBeforeUpdate;f||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==n||l!==c)&&go(t,s,n,c),io=!1;var d=t.memoizedState;s.state=d,uo(t,n,s,i),l=t.memoizedState,a!==n||d!==l||fi.current||io?("function"==typeof u&&(po(t,r,u,n),l=t.memoizedState),(a=io||mo(t,r,a,n,d,l,c))?(f||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4)):("function"==typeof s.componentDidMount&&(t.flags|=4),t.memoizedProps=n,t.memoizedState=l),s.props=n,s.state=l,s.context=c,n=a):("function"==typeof s.componentDidMount&&(t.flags|=4),n=!1)}else{s=t.stateNode,so(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Ki(t.type,a),s.props=c,f=t.pendingProps,d=s.context,"object"==typeof(l=r.contextType)&&null!==l?l=no(l):l=hi(t,l=pi(r)?di:ui.current);var h=r.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==f||d!==l)&&go(t,s,n,l),io=!1,d=t.memoizedState,s.state=d,uo(t,n,s,i);var p=t.memoizedState;a!==f||d!==p||fi.current||io?("function"==typeof h&&(po(t,r,h,n),p=t.memoizedState),(c=io||mo(t,r,c,n,d,p,l))?(u||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(n,p,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(n,p,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=n,t.memoizedState=p),s.props=n,s.state=p,s.context=l,n=c):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),n=!1)}return qs(e,t,r,n,o,i)}function qs(e,t,r,n,i,o){Hs(e,t);var s=0!=(64&t.flags);if(!n&&!s)return i&&yi(t,r,!1),ra(e,t,o);n=t.stateNode,Rs.current=t;var a=s&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&s?(t.child=Eo(t,e.child,null,o),t.child=Eo(t,null,a,o)):As(e,t,a,o),t.memoizedState=n.state,i&&yi(t,r,!0),t.child}function zs(e){var t=e.stateNode;t.pendingContext?mi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&mi(0,t.context,!1),Mo(e,t.containerInfo)}var Vs,Zs,Gs,Ks={dehydrated:null,retryLane:0};function Ys(e,t,r){var n,i=t.pendingProps,o=Ao.current,s=!1;return(n=0!=(64&t.flags))||(n=(null===e||null!==e.memoizedState)&&0!=(2&o)),n?(s=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),li(Ao,1&o),null===e?(void 0!==i.fallback&&Uo(t),e=i.children,o=i.fallback,s?(e=Xs(t,e,o,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Ks,e):"number"==typeof i.unstable_expectedLoadTime?(e=Xs(t,e,o,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Ks,t.lanes=33554432,e):((r=Zl({mode:"visible",children:e},t.mode,r,null)).return=t,t.child=r)):(e.memoizedState,s?(i=Js(e,t,i.children,i.fallback,r),s=t.child,o=e.child.memoizedState,s.memoizedState=null===o?{baseLanes:r}:{baseLanes:o.baseLanes|r},s.childLanes=e.childLanes&~r,t.memoizedState=Ks,i):(r=Qs(e,t,i.children,r),t.memoizedState=null,r))}function Xs(e,t,r,n){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=Zl(t,i,0,null),r=Vl(r,i,n,null),o.return=e,r.return=e,o.sibling=r,e.child=o,r}function Qs(e,t,r,n){var i=e.child;return e=i.sibling,r=ql(i,{mode:"visible",children:r}),0==(2&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=r}function Js(e,t,r,n,i){var o=t.mode,s=e.child;e=s.sibling;var a={mode:"hidden",children:r};return 0==(2&o)&&t.child!==s?((r=t.child).childLanes=0,r.pendingProps=a,null!==(s=r.lastEffect)?(t.firstEffect=r.firstEffect,t.lastEffect=s,s.nextEffect=null):t.firstEffect=t.lastEffect=null):r=ql(s,a),null!==e?n=ql(e,n):(n=Vl(n,o,i,null)).flags|=2,n.return=t,r.return=t,r.sibling=n,t.child=r,n}function $s(e,t){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),to(e.return,t)}function ea(e,t,r,n,i,o){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i,lastEffect:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i,s.lastEffect=o)}function ta(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(As(e,t,n.children,r),0!=(2&(n=Ao.current)))n=1&n|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$s(e,r);else if(19===e.tag)$s(e,r);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}n&=1}if(li(Ao,n),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;null!==r;)null!==(e=r.alternate)&&null===Bo(e)&&(i=r),r=r.sibling;null===(r=i)?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),ea(t,!1,i,r,o,t.lastEffect);break;case"backwards":for(r=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Bo(e)){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}ea(t,!0,r,null,o,t.lastEffect);break;case"together":ea(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ra(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Na|=t.lanes,0!=(r&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(r=ql(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=ql(e,e.pendingProps)).return=t;r.sibling=null}return t.child}return null}function na(e,t){if(!Fo)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function ia(e,t,r){var n=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 pi(t.type)&&vi(),null;case 3:return To(),ai(fi),ai(ui),Go(),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(zo(t)?t.flags|=4:n.hydrate||(t.flags|=256)),null;case 5:Po(t);var o=Oo(jo.current);if(r=t.type,null!==e&&null!=t.stateNode)Zs(e,t,r,n),e.ref!==t.ref&&(t.flags|=128);else{if(!n){if(null===t.stateNode)throw Error(s(166));return null}if(e=Oo(Lo.current),zo(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Yn]=t,n[Xn]=a,r){case"dialog":Ln("cancel",n),Ln("close",n);break;case"iframe":case"object":case"embed":Ln("load",n);break;case"video":case"audio":for(e=0;e<wn.length;e++)Ln(wn[e],n);break;case"source":Ln("error",n);break;case"img":case"image":case"link":Ln("error",n),Ln("load",n);break;case"details":Ln("toggle",n);break;case"input":ee(n,a),Ln("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Ln("invalid",n);break;case"textarea":le(n,a),Ln("invalid",n)}for(var c in Ee(r,a),e=null,a)a.hasOwnProperty(c)&&(o=a[c],"children"===c?"string"==typeof o?n.textContent!==o&&(e=["children",o]):"number"==typeof o&&n.textContent!==""+o&&(e=["children",""+o]):l.hasOwnProperty(c)&&null!=o&&"onScroll"===c&&Ln("scroll",n));switch(r){case"input":X(n),ne(n,a,!0);break;case"textarea":X(n),ue(n);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(n.onclick=In)}n=e,t.updateQueue=n,null!==n&&(t.flags|=4)}else{switch(c=9===o.nodeType?o:o.ownerDocument,e===fe&&(e=he(r)),e===fe?"script"===r?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=c.createElement(r,{is:n.is}):(e=c.createElement(r),"select"===r&&(c=e,n.multiple?c.multiple=!0:n.size&&(c.size=n.size))):e=c.createElementNS(e,r),e[Yn]=t,e[Xn]=n,Vs(e,t),t.stateNode=e,c=xe(r,n),r){case"dialog":Ln("cancel",e),Ln("close",e),o=n;break;case"iframe":case"object":case"embed":Ln("load",e),o=n;break;case"video":case"audio":for(o=0;o<wn.length;o++)Ln(wn[o],e);o=n;break;case"source":Ln("error",e),o=n;break;case"img":case"image":case"link":Ln("error",e),Ln("load",e),o=n;break;case"details":Ln("toggle",e),o=n;break;case"input":ee(e,n),o=$(e,n),Ln("invalid",e);break;case"option":o=oe(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=i({},n,{value:void 0}),Ln("invalid",e);break;case"textarea":le(e,n),o=ae(e,n),Ln("invalid",e);break;default:o=n}Ee(r,o);var u=o;for(a in u)if(u.hasOwnProperty(a)){var f=u[a];"style"===a?Se(e,f):"dangerouslySetInnerHTML"===a?null!=(f=f?f.__html:void 0)&&_e(e,f):"children"===a?"string"==typeof f?("textarea"!==r||""!==f)&&ge(e,f):"number"==typeof f&&ge(e,""+f):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=f&&"onScroll"===a&&Ln("scroll",e):null!=f&&b(e,a,f,c))}switch(r){case"input":X(e),ne(e,n,!1);break;case"textarea":X(e),ue(e);break;case"option":null!=n.value&&e.setAttribute("value",""+K(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?se(e,!!n.multiple,a,!1):null!=n.defaultValue&&se(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=In)}Hn(r,n)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Gs(0,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(s(166));r=Oo(jo.current),Oo(Lo.current),zo(t)?(n=t.stateNode,r=t.memoizedProps,n[Yn]=t,n.nodeValue!==r&&(t.flags|=4)):((n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[Yn]=t,t.stateNode=n)}return null;case 13:return ai(Ao),n=t.memoizedState,0!=(64&t.flags)?(t.lanes=r,t):(n=null!==n,r=!1,null===e?void 0!==t.memoizedProps.fallback&&zo(t):r=null!==e.memoizedState,n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ao.current)?0===Aa&&(Aa=3):(0!==Aa&&3!==Aa||(Aa=4),null===Oa||0==(134217727&Na)&&0==(134217727&Fa)||vl(Oa,Ta))),(n||r)&&(t.flags|=4),null);case 4:return To(),null===e&&jn(t.stateNode.containerInfo),null;case 10:return eo(t),null;case 19:if(ai(Ao),null===(n=t.memoizedState))return null;if(a=0!=(64&t.flags),null===(c=n.rendering))if(a)na(n,!1);else{if(0!==Aa||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=Bo(e))){for(t.flags|=64,na(n,!1),null!==(a=c.updateQueue)&&(t.updateQueue=a,t.flags|=4),null===n.lastEffect&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(c=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=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,e=c.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return li(Ao,1&Ao.current|2),t.child}e=e.sibling}null!==n.tail&&Hi()>qa&&(t.flags|=64,a=!0,na(n,!1),t.lanes=33554432)}else{if(!a)if(null!==(e=Bo(c))){if(t.flags|=64,a=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),na(n,!0),null===n.tail&&"hidden"===n.tailMode&&!c.alternate&&!Fo)return null!==(t=t.lastEffect=n.lastEffect)&&(t.nextEffect=null),null}else 2*Hi()-n.renderingStartTime>qa&&1073741824!==r&&(t.flags|=64,a=!0,na(n,!1),t.lanes=33554432);n.isBackwards?(c.sibling=t.child,t.child=c):(null!==(r=n.last)?r.sibling=c:t.child=c,n.last=c)}return null!==n.tail?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Hi(),r.sibling=null,t=Ao.current,li(Ao,a?1&t|2:1&t),r):null;case 23:case 24:return bl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==n.mode&&(t.flags|=4),null}throw Error(s(156,t.tag))}function oa(e){switch(e.tag){case 1:pi(e.type)&&vi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(To(),ai(fi),ai(ui),Go(),0!=(64&(t=e.flags)))throw Error(s(285));return e.flags=-4097&t|64,e;case 5:return Po(e),null;case 13:return ai(Ao),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ai(Ao),null;case 4:return To(),null;case 10:return eo(e),null;case 23:case 24:return bl(),null;default:return null}}function sa(e,t){try{var r="",n=t;do{r+=Z(n),n=n.return}while(n);var i=r}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function aa(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Vs=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Zs=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,Oo(Lo.current);var s,a=null;switch(r){case"input":o=$(e,o),n=$(e,n),a=[];break;case"option":o=oe(e,o),n=oe(e,n),a=[];break;case"select":o=i({},o,{value:void 0}),n=i({},n,{value:void 0}),a=[];break;case"textarea":o=ae(e,o),n=ae(e,n),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof n.onClick&&(e.onclick=In)}for(f in Ee(r,n),r=null,o)if(!n.hasOwnProperty(f)&&o.hasOwnProperty(f)&&null!=o[f])if("style"===f){var c=o[f];for(s in c)c.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(l.hasOwnProperty(f)?a||(a=[]):(a=a||[]).push(f,null));for(f in n){var u=n[f];if(c=null!=o?o[f]:void 0,n.hasOwnProperty(f)&&u!==c&&(null!=u||null!=c))if("style"===f)if(c){for(s in c)!c.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in u)u.hasOwnProperty(s)&&c[s]!==u[s]&&(r||(r={}),r[s]=u[s])}else r||(a||(a=[]),a.push(f,r)),r=u;else"dangerouslySetInnerHTML"===f?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(a=a||[]).push(f,u)):"children"===f?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(f,""+u):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(l.hasOwnProperty(f)?(null!=u&&"onScroll"===f&&Ln("scroll",e),a||c===u||(a=[])):"object"==typeof u&&null!==u&&u.$$typeof===A?u.toString():(a=a||[]).push(f,u))}r&&(a=a||[]).push("style",r);var f=a;(t.updateQueue=f)&&(t.flags|=4)}},Gs=function(e,t,r,n){r!==n&&(t.flags|=4)};var la="function"==typeof WeakMap?WeakMap:Map;function ca(e,t,r){(r=ao(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Ga||(Ga=!0,Ka=n),aa(0,t)},r}function ua(e,t,r){(r=ao(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var i=t.value;r.payload=function(){return aa(0,t),n(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(r.callback=function(){"function"!=typeof n&&(null===Ya?Ya=new Set([this]):Ya.add(this),aa(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}var fa="function"==typeof WeakSet?WeakSet:Set;function da(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Il(e,t)}else t.current=null}function ha(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 r=e.memoizedProps,n=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?r:Ki(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&zn(t.stateNode.containerInfo))}throw Error(s(163))}function pa(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=r.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=r.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;n=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Pl(r,e),Rl(r,e)),e=n}while(e!==t)}return;case 1:return e=r.stateNode,4&r.flags&&(null===t?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:Ki(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=r.updateQueue)&&fo(r,t,e));case 3:if(null!==(t=r.updateQueue)){if(e=null,null!==r.child)switch(r.child.tag){case 5:case 1:e=r.child.stateNode}fo(r,t,e)}return;case 5:return e=r.stateNode,void(null===t&&4&r.flags&&Hn(r.type,r.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===r.memoizedState&&(r=r.alternate,null!==r&&(r=r.memoizedState,null!==r&&(r=r.dehydrated,null!==r&&St(r)))))}throw Error(s(163))}function va(e,t){for(var r=e;;){if(5===r.tag){var n=r.stateNode;if(t)"function"==typeof(n=n.style).setProperty?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var i=r.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,n.style.display=Ce("display",i)}}else if(6===r.tag)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((23!==r.tag&&24!==r.tag||null===r.memoizedState||r===e)&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function ma(e,t){if(Ci&&"function"==typeof Ci.onCommitFiberUnmount)try{Ci.onCommitFiberUnmount(bi,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 r=e=e.next;do{var n=r,i=n.destroy;if(n=n.tag,void 0!==i)if(0!=(4&n))Pl(t,r);else{n=t;try{i()}catch(e){Il(n,e)}}r=r.next}while(r!==e)}break;case 1:if(da(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Il(t,e)}break;case 5:da(t);break;case 4:Sa(e,t)}}function _a(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 ga(e){return 5===e.tag||3===e.tag||4===e.tag}function ya(e){e:{for(var t=e.return;null!==t;){if(ga(t))break e;t=t.return}throw Error(s(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:case 4:t=t.containerInfo,n=!0;break;default:throw Error(s(161))}16&r.flags&&(ge(t,""),r.flags&=-17);e:t:for(r=e;;){for(;null===r.sibling;){if(null===r.return||ga(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag&&18!==r.tag;){if(2&r.flags)continue t;if(null===r.child||4===r.tag)continue t;r.child.return=r,r=r.child}if(!(2&r.flags)){r=r.stateNode;break e}}n?ba(e,r,t):Ca(e,r,t)}function ba(e,t,r){var n=e.tag,i=5===n||6===n;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=In));else if(4!==n&&null!==(e=e.child))for(ba(e,t,r),e=e.sibling;null!==e;)ba(e,t,r),e=e.sibling}function Ca(e,t,r){var n=e.tag,i=5===n||6===n;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(Ca(e,t,r),e=e.sibling;null!==e;)Ca(e,t,r),e=e.sibling}function Sa(e,t){for(var r,n,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(s(160));switch(r=o.stateNode,o.tag){case 5:n=!1;break e;case 3:case 4:r=r.containerInfo,n=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var a=e,l=i,c=l;;)if(ma(a,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}n?(a=r,l=i.stateNode,8===a.nodeType?a.parentNode.removeChild(l):a.removeChild(l)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,n=!0,i.child.return=i,i=i.child;continue}}else if(ma(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 wa(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var n=r=r.next;do{3==(3&n.tag)&&(e=n.destroy,n.destroy=void 0,void 0!==e&&e()),n=n.next}while(n!==r)}return;case 1:case 12:case 17:return;case 5:if(null!=(r=t.stateNode)){n=t.memoizedProps;var i=null!==e?e.memoizedProps:n;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(r[Xn]=n,"input"===e&&"radio"===n.type&&null!=n.name&&te(r,n),xe(e,i),t=xe(e,n),i=0;i<o.length;i+=2){var a=o[i],l=o[i+1];"style"===a?Se(r,l):"dangerouslySetInnerHTML"===a?_e(r,l):"children"===a?ge(r,l):b(r,a,l,t)}switch(e){case"input":re(r,n);break;case"textarea":ce(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,null!=(o=n.value)?se(r,!!n.multiple,o,!1):e!==!!n.multiple&&(null!=n.defaultValue?se(r,!!n.multiple,n.defaultValue,!0):se(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(s(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((r=t.stateNode).hydrate&&(r.hydrate=!1,St(r.containerInfo)));case 13:return null!==t.memoizedState&&(Ua=Hi(),va(t.child,!0)),void Ea(t);case 19:return void Ea(t);case 23:case 24:return void va(t,null!==t.memoizedState)}throw Error(s(163))}function Ea(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new fa),t.forEach((function(t){var n=Fl.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function xa(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var ka=Math.ceil,La=C.ReactCurrentDispatcher,Da=C.ReactCurrentOwner,ja=0,Oa=null,Ma=null,Ta=0,Ra=0,Pa=si(0),Aa=0,Ba=null,Ia=0,Na=0,Fa=0,Ha=0,Wa=null,Ua=0,qa=1/0;function za(){qa=Hi()+500}var Va,Za=null,Ga=!1,Ka=null,Ya=null,Xa=!1,Qa=null,Ja=90,$a=[],el=[],tl=null,rl=0,nl=null,il=-1,ol=0,sl=0,al=null,ll=!1;function cl(){return 0!=(48&ja)?Hi():-1!==il?il:il=Hi()}function ul(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Wi()?1:2;if(0===ol&&(ol=Ia),0!==Gi.transition){0!==sl&&(sl=null!==Wa?Wa.pendingLanes:0),e=ol;var t=4186112&~sl;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Wi(),0!=(4&ja)&&98===e?e=Ht(12,ol):e=Ht(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),ol),e}function fl(e,t,r){if(50<rl)throw rl=0,nl=null,Error(s(185));if(null===(e=dl(e,t)))return null;qt(e,t,r),e===Oa&&(Fa|=t,4===Aa&&vl(e,Ta));var n=Wi();1===t?0!=(8&ja)&&0==(48&ja)?ml(e):(hl(e,r),0===ja&&(za(),Vi())):(0==(4&ja)||98!==n&&99!==n||(null===tl?tl=new Set([e]):tl.add(e)),hl(e,r)),Wa=e}function dl(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}function hl(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var l=31-zt(a),c=1<<l,u=o[l];if(-1===u){if(0==(c&n)||0!=(c&i)){u=t,It(c);var f=Bt;o[l]=10<=f?u+250:6<=f?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);a&=~c}if(n=Nt(e,e===Oa?Ta:0),t=Bt,0===n)null!==r&&(r!==Pi&&Ei(r),e.callbackNode=null,e.callbackPriority=0);else{if(null!==r){if(e.callbackPriority===t)return;r!==Pi&&Ei(r)}15===t?(r=ml.bind(null,e),null===Bi?(Bi=[r],Ii=wi(ji,Zi)):Bi.push(r),r=Pi):14===t?r=zi(99,ml.bind(null,e)):r=zi(r=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),pl.bind(null,e)),e.callbackPriority=t,e.callbackNode=r}}function pl(e){if(il=-1,sl=ol=0,0!=(48&ja))throw Error(s(327));var t=e.callbackNode;if(Tl()&&e.callbackNode!==t)return null;var r=Nt(e,e===Oa?Ta:0);if(0===r)return null;var n=r,i=ja;ja|=16;var o=wl();for(Oa===e&&Ta===n||(za(),Cl(e,n));;)try{kl();break}catch(t){Sl(e,t)}if($i(),La.current=o,ja=i,null!==Ma?n=0:(Oa=null,Ta=0,n=Aa),0!=(Ia&Fa))Cl(e,0);else if(0!==n){if(2===n&&(ja|=64,e.hydrate&&(e.hydrate=!1,zn(e.containerInfo)),0!==(r=Ft(e))&&(n=El(e,r))),1===n)throw t=Ba,Cl(e,0),vl(e,r),hl(e,Hi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(s(345));case 2:case 5:jl(e);break;case 3:if(vl(e,r),(62914560&r)===r&&10<(n=Ua+500-Hi())){if(0!==Nt(e,0))break;if(((i=e.suspendedLanes)&r)!==r){cl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Un(jl.bind(null,e),n);break}jl(e);break;case 4:if(vl(e,r),(4186112&r)===r)break;for(n=e.eventTimes,i=-1;0<r;){var a=31-zt(r);o=1<<a,(a=n[a])>i&&(i=a),r&=~o}if(r=i,10<(r=(120>(r=Hi()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ka(r/1960))-r)){e.timeoutHandle=Un(jl.bind(null,e),r);break}jl(e);break;default:throw Error(s(329))}}return hl(e,Hi()),e.callbackNode===t?pl.bind(null,e):null}function vl(e,t){for(t&=~Ha,t&=~Fa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-zt(t),n=1<<r;e[r]=-1,t&=~n}}function ml(e){if(0!=(48&ja))throw Error(s(327));if(Tl(),e===Oa&&0!=(e.expiredLanes&Ta)){var t=Ta,r=El(e,t);0!=(Ia&Fa)&&(r=El(e,t=Nt(e,t)))}else r=El(e,t=Nt(e,0));if(0!==e.tag&&2===r&&(ja|=64,e.hydrate&&(e.hydrate=!1,zn(e.containerInfo)),0!==(t=Ft(e))&&(r=El(e,t))),1===r)throw r=Ba,Cl(e,0),vl(e,t),hl(e,Hi()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,jl(e),hl(e,Hi()),null}function _l(e,t){var r=ja;ja|=1;try{return e(t)}finally{0===(ja=r)&&(za(),Vi())}}function gl(e,t){var r=ja;ja&=-2,ja|=8;try{return e(t)}finally{0===(ja=r)&&(za(),Vi())}}function yl(e,t){li(Pa,Ra),Ra|=t,Ia|=t}function bl(){Ra=Pa.current,ai(Pa)}function Cl(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,qn(r)),null!==Ma)for(r=Ma.return;null!==r;){var n=r;switch(n.tag){case 1:null!=(n=n.type.childContextTypes)&&vi();break;case 3:To(),ai(fi),ai(ui),Go();break;case 5:Po(n);break;case 4:To();break;case 13:case 19:ai(Ao);break;case 10:eo(n);break;case 23:case 24:bl()}r=r.return}Oa=e,Ma=ql(e.current,null),Ta=Ra=Ia=t,Aa=0,Ba=null,Ha=Fa=Na=0}function Sl(e,t){for(;;){var r=Ma;try{if($i(),Ko.current=js,es){for(var n=Qo.memoizedState;null!==n;){var i=n.queue;null!==i&&(i.pending=null),n=n.next}es=!1}if(Xo=0,$o=Jo=Qo=null,ts=!1,Da.current=null,null===r||null===r.return){Aa=1,Ba=t,Ma=null;break}e:{var o=e,s=r.return,a=r,l=t;if(t=Ta,a.flags|=2048,a.firstEffect=a.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l;if(0==(2&a.mode)){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.lanes=u.lanes):(a.updateQueue=null,a.memoizedState=null)}var f=0!=(1&Ao.current),d=s;do{var h;if(h=13===d.tag){var p=d.memoizedState;if(null!==p)h=null!==p.dehydrated;else{var v=d.memoizedProps;h=void 0!==v.fallback&&(!0!==v.unstable_avoidThisFallback||!f)}}if(h){var m=d.updateQueue;if(null===m){var _=new Set;_.add(c),d.updateQueue=_}else m.add(c);if(0==(2&d.mode)){if(d.flags|=64,a.flags|=16384,a.flags&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var g=ao(-1,1);g.tag=2,lo(a,g)}a.lanes|=1;break e}l=void 0,a=t;var y=o.pingCache;if(null===y?(y=o.pingCache=new la,l=new Set,y.set(c,l)):void 0===(l=y.get(c))&&(l=new Set,y.set(c,l)),!l.has(a)){l.add(a);var b=Nl.bind(null,o,c,a);c.then(b,b)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);l=Error((G(a.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!==Aa&&(Aa=2),l=sa(l,a),d=s;do{switch(d.tag){case 3:o=l,d.flags|=4096,t&=-t,d.lanes|=t,co(d,ca(0,o,t));break e;case 1:o=l;var C=d.type,S=d.stateNode;if(0==(64&d.flags)&&("function"==typeof C.getDerivedStateFromError||null!==S&&"function"==typeof S.componentDidCatch&&(null===Ya||!Ya.has(S)))){d.flags|=4096,t&=-t,d.lanes|=t,co(d,ua(d,o,t));break e}}d=d.return}while(null!==d)}Dl(r)}catch(e){t=e,Ma===r&&null!==r&&(Ma=r=r.return);continue}break}}function wl(){var e=La.current;return La.current=js,null===e?js:e}function El(e,t){var r=ja;ja|=16;var n=wl();for(Oa===e&&Ta===t||Cl(e,t);;)try{xl();break}catch(t){Sl(e,t)}if($i(),ja=r,La.current=n,null!==Ma)throw Error(s(261));return Oa=null,Ta=0,Aa}function xl(){for(;null!==Ma;)Ll(Ma)}function kl(){for(;null!==Ma&&!xi();)Ll(Ma)}function Ll(e){var t=Va(e.alternate,e,Ra);e.memoizedProps=e.pendingProps,null===t?Dl(e):Ma=t,Da.current=null}function Dl(e){var t=e;do{var r=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(r=ia(r,t,Ra)))return void(Ma=r);if(24!==(r=t).tag&&23!==r.tag||null===r.memoizedState||0!=(1073741824&Ra)||0==(4&r.mode)){for(var n=0,i=r.child;null!==i;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(r=oa(t)))return r.flags&=2047,void(Ma=r);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ma=t);Ma=t=e}while(null!==t);0===Aa&&(Aa=5)}function jl(e){var t=Wi();return qi(99,Ol.bind(null,e,t)),null}function Ol(e,t){do{Tl()}while(null!==Qa);if(0!=(48&ja))throw Error(s(327));var r=e.finishedWork;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(s(177));e.callbackNode=null;var n=r.lanes|r.childLanes,i=n,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 c=31-zt(o),u=1<<c;i[c]=0,a[c]=-1,l[c]=-1,o&=~u}if(null!==tl&&0==(24&n)&&tl.has(e)&&tl.delete(e),e===Oa&&(Ma=Oa=null,Ta=0),1<r.flags?null!==r.lastEffect?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,null!==n){if(i=ja,ja|=32,Da.current=null,Nn=Yt,pn(a=hn())){if("selectionStart"in a)l={start:a.selectionStart,end:a.selectionEnd};else e:if(l=(l=a.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,o=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(e){l=null;break e}var f=0,d=-1,h=-1,p=0,v=0,m=a,_=null;t:for(;;){for(var g;m!==l||0!==o&&3!==m.nodeType||(d=f+o),m!==c||0!==u&&3!==m.nodeType||(h=f+u),3===m.nodeType&&(f+=m.nodeValue.length),null!==(g=m.firstChild);)_=m,m=g;for(;;){if(m===a)break t;if(_===l&&++p===o&&(d=f),_===c&&++v===u&&(h=f),null!==(g=m.nextSibling))break;_=(m=_).parentNode}m=g}l=-1===d||-1===h?null:{start:d,end:h}}else l=null;l=l||{start:0,end:0}}else l=null;Fn={focusedElem:a,selectionRange:l},Yt=!1,al=null,ll=!1,Za=n;do{try{Ml()}catch(e){if(null===Za)throw Error(s(330));Il(Za,e),Za=Za.nextEffect}}while(null!==Za);al=null,Za=n;do{try{for(a=e;null!==Za;){var y=Za.flags;if(16&y&&ge(Za.stateNode,""),128&y){var b=Za.alternate;if(null!==b){var C=b.ref;null!==C&&("function"==typeof C?C(null):C.current=null)}}switch(1038&y){case 2:ya(Za),Za.flags&=-3;break;case 6:ya(Za),Za.flags&=-3,wa(Za.alternate,Za);break;case 1024:Za.flags&=-1025;break;case 1028:Za.flags&=-1025,wa(Za.alternate,Za);break;case 4:wa(Za.alternate,Za);break;case 8:Sa(a,l=Za);var S=l.alternate;_a(l),null!==S&&_a(S)}Za=Za.nextEffect}}catch(e){if(null===Za)throw Error(s(330));Il(Za,e),Za=Za.nextEffect}}while(null!==Za);if(C=Fn,b=hn(),y=C.focusedElem,a=C.selectionRange,b!==y&&y&&y.ownerDocument&&dn(y.ownerDocument.documentElement,y)){null!==a&&pn(y)&&(b=a.start,void 0===(C=a.end)&&(C=b),"selectionStart"in y?(y.selectionStart=b,y.selectionEnd=Math.min(C,y.value.length)):(C=(b=y.ownerDocument||document)&&b.defaultView||window).getSelection&&(C=C.getSelection(),l=y.textContent.length,S=Math.min(a.start,l),a=void 0===a.end?S:Math.min(a.end,l),!C.extend&&S>a&&(l=a,a=S,S=l),l=fn(y,S),o=fn(y,a),l&&o&&(1!==C.rangeCount||C.anchorNode!==l.node||C.anchorOffset!==l.offset||C.focusNode!==o.node||C.focusOffset!==o.offset)&&((b=b.createRange()).setStart(l.node,l.offset),C.removeAllRanges(),S>a?(C.addRange(b),C.extend(o.node,o.offset)):(b.setEnd(o.node,o.offset),C.addRange(b))))),b=[];for(C=y;C=C.parentNode;)1===C.nodeType&&b.push({element:C,left:C.scrollLeft,top:C.scrollTop});for("function"==typeof y.focus&&y.focus(),y=0;y<b.length;y++)(C=b[y]).element.scrollLeft=C.left,C.element.scrollTop=C.top}Yt=!!Nn,Fn=Nn=null,e.current=r,Za=n;do{try{for(y=e;null!==Za;){var w=Za.flags;if(36&w&&pa(y,Za.alternate,Za),128&w){b=void 0;var E=Za.ref;if(null!==E){var x=Za.stateNode;Za.tag,b=x,"function"==typeof E?E(b):E.current=b}}Za=Za.nextEffect}}catch(e){if(null===Za)throw Error(s(330));Il(Za,e),Za=Za.nextEffect}}while(null!==Za);Za=null,Ai(),ja=i}else e.current=r;if(Xa)Xa=!1,Qa=e,Ja=t;else for(Za=n;null!==Za;)t=Za.nextEffect,Za.nextEffect=null,8&Za.flags&&((w=Za).sibling=null,w.stateNode=null),Za=t;if(0===(n=e.pendingLanes)&&(Ya=null),1===n?e===nl?rl++:(rl=0,nl=e):rl=0,r=r.stateNode,Ci&&"function"==typeof Ci.onCommitFiberRoot)try{Ci.onCommitFiberRoot(bi,r,void 0,64==(64&r.current.flags))}catch(e){}if(hl(e,Hi()),Ga)throw Ga=!1,e=Ka,Ka=null,e;return 0!=(8&ja)||Vi(),null}function Ml(){for(;null!==Za;){var e=Za.alternate;ll||null===al||(0!=(8&Za.flags)?et(Za,al)&&(ll=!0):13===Za.tag&&xa(e,Za)&&et(Za,al)&&(ll=!0));var t=Za.flags;0!=(256&t)&&ha(e,Za),0==(512&t)||Xa||(Xa=!0,zi(97,(function(){return Tl(),null}))),Za=Za.nextEffect}}function Tl(){if(90!==Ja){var e=97<Ja?97:Ja;return Ja=90,qi(e,Al)}return!1}function Rl(e,t){$a.push(t,e),Xa||(Xa=!0,zi(97,(function(){return Tl(),null})))}function Pl(e,t){el.push(t,e),Xa||(Xa=!0,zi(97,(function(){return Tl(),null})))}function Al(){if(null===Qa)return!1;var e=Qa;if(Qa=null,0!=(48&ja))throw Error(s(331));var t=ja;ja|=32;var r=el;el=[];for(var n=0;n<r.length;n+=2){var i=r[n],o=r[n+1],a=i.destroy;if(i.destroy=void 0,"function"==typeof a)try{a()}catch(e){if(null===o)throw Error(s(330));Il(o,e)}}for(r=$a,$a=[],n=0;n<r.length;n+=2){i=r[n],o=r[n+1];try{var l=i.create;i.destroy=l()}catch(e){if(null===o)throw Error(s(330));Il(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 ja=t,Vi(),!0}function Bl(e,t,r){lo(e,t=ca(0,t=sa(r,t),1)),t=cl(),null!==(e=dl(e,1))&&(qt(e,1,t),hl(e,t))}function Il(e,t){if(3===e.tag)Bl(e,e,t);else for(var r=e.return;null!==r;){if(3===r.tag){Bl(r,e,t);break}if(1===r.tag){var n=r.stateNode;if("function"==typeof r.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Ya||!Ya.has(n))){var i=ua(r,e=sa(t,e),1);if(lo(r,i),i=cl(),null!==(r=dl(r,1)))qt(r,1,i),hl(r,i);else if("function"==typeof n.componentDidCatch&&(null===Ya||!Ya.has(n)))try{n.componentDidCatch(t,e)}catch(e){}break}}r=r.return}}function Nl(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=cl(),e.pingedLanes|=e.suspendedLanes&r,Oa===e&&(Ta&r)===r&&(4===Aa||3===Aa&&(62914560&Ta)===Ta&&500>Hi()-Ua?Cl(e,0):Ha|=r),hl(e,t)}function Fl(e,t){var r=e.stateNode;null!==r&&r.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Wi()?1:2:(0===ol&&(ol=Ia),0===(t=Wt(62914560&~ol))&&(t=4194304))),r=cl(),null!==(e=dl(e,t))&&(qt(e,t,r),hl(e,r))}function Hl(e,t,r,n){this.tag=e,this.key=r,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=n,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Wl(e,t,r,n){return new Hl(e,t,r,n)}function Ul(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ql(e,t){var r=e.alternate;return null===r?((r=Wl(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function zl(e,t,r,n,i,o){var a=2;if(n=e,"function"==typeof e)Ul(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case E:return Vl(r.children,i,o,t);case B:a=8,i|=16;break;case x:a=8,i|=1;break;case k:return(e=Wl(12,r,t,8|i)).elementType=k,e.type=k,e.lanes=o,e;case O:return(e=Wl(13,r,t,i)).type=O,e.elementType=O,e.lanes=o,e;case M:return(e=Wl(19,r,t,i)).elementType=M,e.lanes=o,e;case I:return Zl(r,i,o,t);case N:return(e=Wl(24,r,t,i)).elementType=N,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case L:a=10;break e;case D:a=9;break e;case j:a=11;break e;case T:a=14;break e;case R:a=16,n=null;break e;case P:a=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=Wl(a,r,t,i)).elementType=e,t.type=n,t.lanes=o,t}function Vl(e,t,r,n){return(e=Wl(7,e,n,t)).lanes=r,e}function Zl(e,t,r,n){return(e=Wl(23,e,n,t)).elementType=I,e.lanes=r,e}function Gl(e,t,r){return(e=Wl(6,e,null,t)).lanes=r,e}function Kl(e,t,r){return(t=Wl(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yl(e,t,r){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=r,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ut(0),this.expirationTimes=Ut(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ut(0),this.mutableSourceEagerHydrationData=null}function Xl(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:w,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}function Ql(e,t,r,n){var i=t.current,o=cl(),a=ul(i);e:if(r){t:{if(Xe(r=r._reactInternals)!==r||1!==r.tag)throw Error(s(170));var l=r;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(pi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(s(171))}if(1===r.tag){var c=r.type;if(pi(c)){r=_i(r,c,l);break e}}r=l}else r=ci;return null===t.context?t.context=r:t.pendingContext=r,(t=ao(o,a)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),lo(i,t),fl(i,a,o),a}function Jl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $l(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function ec(e,t){$l(e,t),(e=e.alternate)&&$l(e,t)}function tc(e,t,r){var n=null!=r&&null!=r.hydrationOptions&&r.hydrationOptions.mutableSources||null;if(r=new Yl(e,t,null!=r&&!0===r.hydrate),t=Wl(3,null,null,2===t?7:1===t?3:0),r.current=t,t.stateNode=r,oo(t),e[Qn]=r.current,jn(8===e.nodeType?e.parentNode:e),n)for(e=0;e<n.length;e++){var i=(t=n[e])._getVersion;i=i(t._source),null==r.mutableSourceEagerHydrationData?r.mutableSourceEagerHydrationData=[t,i]:r.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=r}function rc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function nc(e,t,r,n,i){var o=r._reactRootContainer;if(o){var s=o._internalRoot;if("function"==typeof i){var a=i;i=function(){var e=Jl(s);a.call(e)}}Ql(t,s,e,i)}else{if(o=r._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 r;r=e.lastChild;)e.removeChild(r);return new tc(e,0,t?{hydrate:!0}:void 0)}(r,n),s=o._internalRoot,"function"==typeof i){var l=i;i=function(){var e=Jl(s);l.call(e)}}gl((function(){Ql(t,s,e,i)}))}return Jl(s)}function ic(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!rc(t))throw Error(s(200));return Xl(e,t,null,r)}Va=function(e,t,r){var n=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||fi.current)Ps=!0;else{if(0==(r&n)){switch(Ps=!1,t.tag){case 3:zs(t),Vo();break;case 5:Ro(t);break;case 1:pi(t.type)&&gi(t);break;case 4:Mo(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;li(Yi,i._currentValue),i._currentValue=n;break;case 13:if(null!==t.memoizedState)return 0!=(r&t.child.childLanes)?Ys(e,t,r):(li(Ao,1&Ao.current),null!==(t=ra(e,t,r))?t.sibling:null);li(Ao,1&Ao.current);break;case 19:if(n=0!=(r&t.childLanes),0!=(64&e.flags)){if(n)return ta(e,t,r);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),li(Ao,Ao.current),n)break;return null;case 23:case 24:return t.lanes=0,Fs(e,t,r)}return ra(e,t,r)}Ps=0!=(16384&e.flags)}else Ps=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=hi(t,ui.current),ro(t,r),i=is(null,t,n,e,i,r),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,pi(n)){var o=!0;gi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oo(t);var a=n.getDerivedStateFromProps;"function"==typeof a&&po(t,n,a,e),i.updater=vo,t.stateNode=i,i._reactInternals=t,yo(t,n,e,r),t=qs(null,t,n,!0,o,r)}else t.tag=0,As(null,t,i,r),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 Ul(e)?1:0;if(null!=e){if((e=e.$$typeof)===j)return 11;if(e===T)return 14}return 2}(i),e=Ki(i,e),o){case 0:t=Ws(null,t,i,e,r);break e;case 1:t=Us(null,t,i,e,r);break e;case 11:t=Bs(null,t,i,e,r);break e;case 14:t=Is(null,t,i,Ki(i.type,e),n,r);break e}throw Error(s(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,Ws(e,t,n,i=t.elementType===n?i:Ki(n,i),r);case 1:return n=t.type,i=t.pendingProps,Us(e,t,n,i=t.elementType===n?i:Ki(n,i),r);case 3:if(zs(t),n=t.updateQueue,null===e||null===n)throw Error(s(282));if(n=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,so(e,t),uo(t,n,null,r),(n=t.memoizedState.element)===i)Vo(),t=ra(e,t,r);else{if((o=(i=t.stateNode).hydrate)&&(No=Vn(t.stateNode.containerInfo.firstChild),Io=t,o=Fo=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Zo.push(o);for(r=xo(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|1024,r=r.sibling}else As(e,t,n,r),Vo();t=t.child}return t;case 5:return Ro(t),null===e&&Uo(t),n=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,Wn(n,i)?a=null:null!==o&&Wn(n,o)&&(t.flags|=16),Hs(e,t),As(e,t,a,r),t.child;case 6:return null===e&&Uo(t),null;case 13:return Ys(e,t,r);case 4:return Mo(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Eo(t,null,n,r):As(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,Bs(e,t,n,i=t.elementType===n?i:Ki(n,i),r);case 7:return As(e,t,t.pendingProps,r),t.child;case 8:case 12:return As(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value;var l=t.type._context;if(li(Yi,l._currentValue),l._currentValue=o,null!==a)if(l=a.value,0===(o=an(l,o)?0:0|("function"==typeof n._calculateChangedBits?n._calculateChangedBits(l,o):1073741823))){if(a.children===i.children&&!fi.current){t=ra(e,t,r);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){a=l.child;for(var u=c.firstContext;null!==u;){if(u.context===n&&0!=(u.observedBits&o)){1===l.tag&&((u=ao(-1,r&-r)).tag=2,lo(l,u)),l.lanes|=r,null!==(u=l.alternate)&&(u.lanes|=r),to(l.return,r),c.lanes|=r;break}u=u.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}As(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=(o=t.pendingProps).children,ro(t,r),n=n(i=no(i,o.unstable_observedBits)),t.flags|=1,As(e,t,n,r),t.child;case 14:return o=Ki(i=t.type,t.pendingProps),Is(e,t,i,o=Ki(i.type,o),n,r);case 15:return Ns(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ki(n,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,pi(n)?(e=!0,gi(t)):e=!1,ro(t,r),_o(t,n,i),yo(t,n,i,r),qs(null,t,n,!0,e,r);case 19:return ta(e,t,r);case 23:case 24:return Fs(e,t,r)}throw Error(s(156,t.tag))},tc.prototype.render=function(e){Ql(e,this._internalRoot,null,null)},tc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ql(null,e,null,(function(){t[Qn]=null}))},tt=function(e){13===e.tag&&(fl(e,4,cl()),ec(e,4))},rt=function(e){13===e.tag&&(fl(e,67108864,cl()),ec(e,67108864))},nt=function(e){if(13===e.tag){var t=cl(),r=ul(e);fl(e,r,t),ec(e,r)}},it=function(e,t){return t()},Le=function(e,t,r){switch(t){case"input":if(re(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=ri(n);if(!i)throw Error(s(90));Q(n),re(n,i)}}}break;case"textarea":ce(e,r);break;case"select":null!=(t=r.value)&&se(e,!!r.multiple,t,!1)}},Re=_l,Pe=function(e,t,r,n,i){var o=ja;ja|=4;try{return qi(98,e.bind(null,t,r,n,i))}finally{0===(ja=o)&&(za(),Vi())}},Ae=function(){0==(49&ja)&&(function(){if(null!==tl){var e=tl;tl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,hl(e,Hi())}))}Vi()}(),Tl())},Be=function(e,t){var r=ja;ja|=2;try{return e(t)}finally{0===(ja=r)&&(za(),Vi())}};var oc={Events:[ei,ti,ri,Me,Te,Tl,{current:!1}]},sc={findFiberByHostInstance:$n,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},ac={bundleType:sc.bundleType,version:sc.version,rendererPackageName:sc.rendererPackageName,rendererConfig:sc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:sc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var lc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lc.isDisabled&&lc.supportsFiber)try{bi=lc.inject(ac),Ci=lc}catch(me){}}r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oc,r.createPortal=ic,r.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 e=null===(e=$e(t))?null:e.stateNode},r.flushSync=function(e,t){var r=ja;if(0!=(48&r))return e(t);ja|=1;try{if(e)return qi(99,e.bind(null,t))}finally{ja=r,Vi()}},r.hydrate=function(e,t,r){if(!rc(t))throw Error(s(200));return nc(null,e,t,!0,r)},r.render=function(e,t,r){if(!rc(t))throw Error(s(200));return nc(null,e,t,!1,r)},r.unmountComponentAtNode=function(e){if(!rc(e))throw Error(s(40));return!!e._reactRootContainer&&(gl((function(){nc(null,null,e,!1,(function(){e._reactRootContainer=null,e[Qn]=null}))})),!0)},r.unstable_batchedUpdates=_l,r.unstable_createPortal=function(e,t){return ic(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},r.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!rc(r))throw Error(s(200));if(null==e||void 0===e._reactInternals)throw Error(s(38));return nc(e,t,r,!1,n)},r.version="17.0.2"},{react:"hCMiB","object-assign":"2nMI5",scheduler:"8Uh3d"}],"8Uh3d":[function(e,t,r){"use strict";t.exports=e("./cjs/scheduler.production.min.js")},{"./cjs/scheduler.production.min.js":"7kVN4"}],"7kVN4":[function(e,t,r){
/** @license React v0.20.2
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
"use strict";var n,i,o,s;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;r.unstable_now=function(){return a.now()}}else{var l=Date,c=l.now();r.unstable_now=function(){return l.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,f=null,d=function(){if(null!==u)try{var e=r.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(d,0),e}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(d,0))},i=function(e,t){f=setTimeout(e,t)},o=function(){clearTimeout(f)},r.unstable_shouldYield=function(){return!1},s=r.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.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 v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,_=null,g=-1,y=5,b=0;r.unstable_shouldYield=function(){return r.unstable_now()>=b},s=function(){},r.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var C=new MessageChannel,S=C.port2;C.port1.onmessage=function(){if(null!==_){var e=r.unstable_now();b=e+y;try{_(!0,e)?S.postMessage(null):(m=!1,_=null)}catch(e){throw S.postMessage(null),e}}else m=!1},n=function(e){_=e,m||(m=!0,S.postMessage(null))},i=function(e,t){g=h((function(){e(r.unstable_now())}),t)},o=function(){p(g),g=-1}}function w(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,i=e[n];if(!(void 0!==i&&0<k(i,t)))break e;e[n]=t,e[r]=i,r=n}}function E(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length;n<i;){var o=2*(n+1)-1,s=e[o],a=o+1,l=e[a];if(void 0!==s&&0>k(s,r))void 0!==l&&0>k(l,s)?(e[n]=l,e[a]=r,n=a):(e[n]=s,e[o]=r,n=o);else{if(!(void 0!==l&&0>k(l,r)))break e;e[n]=l,e[a]=r,n=a}}}return t}return null}function k(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var L=[],D=[],j=1,O=null,M=3,T=!1,R=!1,P=!1;function A(e){for(var t=E(D);null!==t;){if(null===t.callback)x(D);else{if(!(t.startTime<=e))break;x(D),t.sortIndex=t.expirationTime,w(L,t)}t=E(D)}}function B(e){if(P=!1,A(e),!R)if(null!==E(L))R=!0,n(I);else{var t=E(D);null!==t&&i(B,t.startTime-e)}}function I(e,t){R=!1,P&&(P=!1,o()),T=!0;var n=M;try{for(A(t),O=E(L);null!==O&&(!(O.expirationTime>t)||e&&!r.unstable_shouldYield());){var s=O.callback;if("function"==typeof s){O.callback=null,M=O.priorityLevel;var a=s(O.expirationTime<=t);t=r.unstable_now(),"function"==typeof a?O.callback=a:O===E(L)&&x(L),A(t)}else x(L);O=E(L)}if(null!==O)var l=!0;else{var c=E(D);null!==c&&i(B,c.startTime-t),l=!1}return l}finally{O=null,M=n,T=!1}}var N=s;r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(e){e.callback=null},r.unstable_continueExecution=function(){R||T||(R=!0,n(I))},r.unstable_getCurrentPriorityLevel=function(){return M},r.unstable_getFirstCallbackNode=function(){return E(L)},r.unstable_next=function(e){switch(M){case 1:case 2:case 3:var t=3;break;default:t=M}var r=M;M=t;try{return e()}finally{M=r}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=N,r.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=M;M=e;try{return t()}finally{M=r}},r.unstable_scheduleCallback=function(e,t,s){var a=r.unstable_now();switch("object"==typeof s&&null!==s?s="number"==typeof(s=s.delay)&&0<s?a+s:a:s=a,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:j++,callback:t,priorityLevel:e,startTime:s,expirationTime:l=s+l,sortIndex:-1},s>a?(e.sortIndex=s,w(D,e),null===E(L)&&e===E(D)&&(P?o():P=!0,i(B,s-a))):(e.sortIndex=l,w(L,e),R||T||(R=!0,n(I))),e},r.unstable_wrapCallback=function(e){var t=M;return function(){var r=M;M=t;try{return e.apply(this,arguments)}finally{M=r}}}},{}],llbwv:[function(e,t,r){"use strict";t.exports=e("./dist/react-hot-loader.production.min.js")},{"./dist/react-hot-loader.production.min.js":"a0dbG"}],a0dbG:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,i=(n=e("react"))&&"object"==typeof n&&"default"in n?n.default:n;function o(e){return o.warnAboutHMRDisabled&&(o.warnAboutHMRDisabled=!0,console.error("React-Hot-Loader: misconfiguration detected, using production version in non-production environment."),console.error("React-Hot-Loader: Hot Module Replacement is not enabled.")),i.Children.only(e.children)}o.warnAboutHMRDisabled=!1;var s=function e(){return e.shouldWrapWithAppContainer?function(e){return function(t){return i.createElement(o,null,i.createElement(e,t))}}:function(e){return e}};s.shouldWrapWithAppContainer=!1;r.AppContainer=o,r.hot=s,r.areComponentsEqual=function(e,t){return e===t},r.setConfig=function(){},r.cold=function(e){return e},r.configureComponent=function(){}},{react:"hCMiB"}],cgdV0:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("react"),o=n.interopDefault(i),s=(e("../../index.scss"),e("../LessonLoader/LessonLoader")),a=n.interopDefault(s);window.performance&&(1==performance.navigation.type?console.log("Application restarted"):console.log("Application start")),r.default=function(){return o.default.createElement(o.default.Fragment,null,o.default.createElement(a.default,null))}},{react:"hCMiB","../../index.scss":"gl5o8","../LessonLoader/LessonLoader":"jeiOH","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],gl5o8:[function(){},{}],jeiOH:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("react"),o=n.interopDefault(i),s=e("buffer"),a=(e("./LessonLoader.scss"),e("../TopNavBar/TopNavBar")),l=n.interopDefault(a),c=e("../Footer/Footer"),u=n.interopDefault(c),f=e("tocbot"),d=e("../Input/Input"),h=n.interopDefault(d),p=e("../CollapsibleSection/CollapsibleSection"),v=n.interopDefault(p),m=e("../Clippy/Clippy"),_=n.interopDefault(m);r.default=function(e){var t=(0,i.useState)(""),r=t[0],n=t[1],a=(0,i.useState)(e.collapsed),c=a[0],d=a[1];(0,i.useEffect)((function(){f.init({tocSelector:".js-toc",contentSelector:"main",headingSelector:"h1, h2, h3, h4, h5, h6",hasInnerContainers:!0,linkClass:"toc-link",isCollapsedClass:"is-collapsed",scrollSmooth:!0,scrollSmoothDuration:420,headingsOffset:40,collapseDepth:0})}),[r]);try{return console.log("Loading lesson view"),o.default.createElement("div",{className:"lesson-container"},o.default.createElement("div",{className:"lesson-container-title"},o.default.createElement(_.default,null),o.default.createElement(l.default,{isCollapsed:c,setIsCollapsed:d,loadLesson:n}),o.default.createElement(v.default,{style:{collapsed:{display:"none"},expanded:{display:"block"}},isCollapsed:c},o.default.createElement("em",null,"To render a lesson, enter the web address for ",o.default.createElement("br",null),"its lesson definition and click the Load button:"),o.default.createElement(h.default,null))),r?o.default.createElement("nav",{className:"js-toc",style:{visibility:"visible"}}):o.default.createElement("nav",{className:"js-toc",style:{visibility:"hidden"}}),o.default.createElement("main",{className:"lesson-content-container",dangerouslySetInnerHTML:{__html:s.Buffer.from(r,"base64").toString("ascii")}}),o.default.createElement(u.default,{lesson:r}))}catch(e){return console.log("Error in rendering lesson view: ",e),o.default.createElement("div",{className:"lesson-container"},o.default.createElement("div",{className:"lesson-container-title"},o.default.createElement(l.default,{isCollapsed:c,setIsCollapsed:d,loadLesson:n})),"Error in rendering lesson view. Check console for error message.")}}},{react:"hCMiB",buffer:"4uOJm","./LessonLoader.scss":"jDfLe","../TopNavBar/TopNavBar":"hW5r6","../Footer/Footer":"luUwe",tocbot:"hfGSA","../Input/Input":"6Njav","../CollapsibleSection/CollapsibleSection":"hl7vm","../Clippy/Clippy":"7SFEi","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"4uOJm":[function(e,t,r){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */"use strict";const n=e("base64-js"),i=e("ieee754"),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=l,r.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},r.INSPECT_MAX_BYTES=50;const s=2147483647;function a(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|v(e,t);let n=a(r);const i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(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(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return h(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return l.from(n,t,r);const i=function(e){if(l.isBuffer(e)){const t=0|p(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||X(e.length)?a(0):d(e);if("Buffer"===e.type&&Array.isArray(e.data))return d(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(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 f(e){return u(e),a(e<0?0:0|p(e))}function d(e){const t=e.length<0?0:0|p(e.length),r=a(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function h(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,l.prototype),n}function p(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function v(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(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 r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(e).length;default:if(i)return n?-1:Z(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return D(this,t,r);case"latin1":case"binary":return j(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function _(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),X(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){let o,s=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let n=-1;for(o=r;o<a;o++)if(c(e,o)===c(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===l)return n*s}else-1!==n&&(o-=o-n),n=-1}else for(r+l>a&&(r=a-l),o=r;o>=0;o--){let r=!0;for(let n=0;n<l;n++)if(c(e,o+n)!==c(t,n)){r=!1;break}if(r)return o}return-1}function b(e,t,r,n){r=Number(r)||0;const i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=t.length;let s;for(n>o/2&&(n=o/2),s=0;s<n;++s){const n=parseInt(t.substr(2*s,2),16);if(X(n))return s;e[r+s]=n}return s}function C(e,t,r,n){return K(Z(t,e.length-r),e,r,n)}function S(e,t,r,n){return K(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function w(e,t,r,n){return K(G(t),e,r,n)}function E(e,t,r,n){return K(function(e,t){let r,n,i;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function x(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function k(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const t=e[i];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=r){let r,n,a,l;switch(s){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(o=l));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(l=(15&t)<<12|(63&r)<<6|63&n,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:r=e[i+1],n=e[i+2],a=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(e){const t=e.length;if(t<=L)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=L));return r}(n)}r.kMaxLength=s,l.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}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.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(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,r){return function(e,t,r){return u(e),e<=0?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)}(e,t,r)},l.allocUnsafe=function(e){return f(e)},l.allocUnsafeSlow=function(e){return f(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(Y(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),Y(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},l.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}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=l.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if(Y(t,Uint8Array))i+t.length>n.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},l.byteLength=v,l.prototype._isBuffer=!0,l.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)_(this,t,t+1);return this},l.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)_(this,t,t+3),_(this,t+1,t+2);return this},l.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)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?k(this,0,e):m.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,r,n,i){if(Y(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.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===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0);const a=Math.min(o,s),c=this.slice(n,i),u=e.slice(t,r);for(let e=0;e<a;++e)if(c[e]!==u[e]){o=c[e],s=u[e];break}return o<s?-1:s<o?1:0},l.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},l.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return C(this,e,t,r);case"ascii":case"latin1":case"binary":return S(this,e,t,r);case"base64":return w(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const L=4096;function D(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function j(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function O(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=Q[e[n]];return i}function M(e,t,r){const n=e.slice(t,r);let i="";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,r,n,i,o){if(!l.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(r+n>e.length)throw new RangeError("Index out of range")}function P(e,t,r,n,i){U(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function A(e,t,r,n,i){U(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function B(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function I(e,t,r,n,o){return t=+t,r>>>=0,o||B(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function N(e,t,r,n,o){return t=+t,r>>>=0,o||B(e,0,r,8),i.write(e,t,r,n,52,8),r+8}l.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,l.prototype),n},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=J((function(e){q(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||z(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))})),l.prototype.readBigUInt64BE=J((function(e){q(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||z(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),l.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=J((function(e){q(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||z(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=J((function(e){q(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||z(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){R(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){R(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||R(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},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||R(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},l.prototype.writeBigUInt64LE=J((function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=J((function(e,t=0){return A(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);R(this,e,t,r,n-1,-n)}let i=0,o=1,s=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);R(this,e,t,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||R(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},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||R(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},l.prototype.writeBigInt64LE=J((function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=J((function(e,t=0){return A(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,r){return I(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return I(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return N(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return N(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},l.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{const o=l.isBuffer(e)?e:l.from(e,n),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%s]}return this};const F={};function H(e,t,r){F[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${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`${this.name} [${e}]: ${this.message}`}}}function W(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function U(e,t,r,n,i,o){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new F.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){q(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||z(t,e.length-(r+1))}(n,i,o)}function q(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function z(e,t,r){if(Math.floor(e)!==e)throw q(e,r),new F.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}H("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),H("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),H("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=W(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=W(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n}),RangeError);const V=/[^+/0-9A-Za-z-_]/g;function Z(e,t){let r;t=t||1/0;const n=e.length;let i=null;const o=[];for(let s=0;s<n;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function G(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Y(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 r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function J(e){return"undefined"==typeof BigInt?$:e}function $(){throw new Error("BigInt not supported")}},{"base64-js":"ky7IT",ieee754:"7goRv"}],ky7IT:[function(e,t,r){"use strict";r.byteLength=function(e){var t=c(e),r=t[0],n=t[1];return 3*(r+n)/4-n},r.toByteArray=function(e){var t,r,n=c(e),s=n[0],a=n[1],l=new o(function(e,t,r){return 3*(t+r)/4-r}(0,s,a)),u=0,f=a>0?s-4:s;for(r=0;r<f;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===a&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,l[u++]=255&t);1===a&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],s=16383,a=0,l=r-i;a<l;a+=s)o.push(u(e,a,a+s>l?l:a+s));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]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)n[a]=s[a],i[s.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function u(e,t,r){for(var i,o,s=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],"7goRv":[function(e,t,r){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */r.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,l=(1<<a)-1,c=l>>1,u=-7,f=r?i-1:0,d=r?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-u)-1,h>>=-u,u+=a;u>0;o=256*o+e[t+f],f+=d,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=n;u>0;s=256*s+e[t+f],f+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),o-=c}return(h?-1:1)*s*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var s,a,l,c=8*o-i-1,u=(1<<c)-1,f=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,p=n?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(s++,l/=2),s+f>=u?(a=0,s=u):s+f>=1?(a=(t*l-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[r+h]=255&a,h+=p,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[r+h]=255&s,h+=p,s/=256,c-=8);e[r+h-p]|=128*v}},{}],jDfLe:[function(){},{}],hW5r6:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("react"),o=n.interopDefault(i),s=(e("./TopNavBar.scss"),e("../../assets/logo_api_inactive.png")),a=n.interopDefault(s),l=e("../../assets/logo_api_active.png"),c=n.interopDefault(l),u=e("react-bootstrap");r.default=function(e){var t=e.isCollapsed,r=e.setIsCollapsed,n=e.loadLesson,s=o.default.useState(!1),l=s[0],f=s[1],d=function(){return f(!1)},h=o.default.createElement(u.Modal,{dialogClassName:"modal-90w",show:l,onHide:d,keyboard:!1},o.default.createElement(u.Modal.Header,null,o.default.createElement(u.Modal.Title,null,"BILL - Bert's Interactive Lesson Loader")),o.default.createElement(u.Modal.Body,null,"Think ",o.default.createElement("a",{href:"https://katacoda.com",target:"_blank"},"Katacoda"),", but instead of a website with learning examples, you have a desktop app that creates hands-on lessons from markdown-formatted, jina-templated documents, complete with a web terminal for interactive practice. Read more here: ",o.default.createElement("a",{href:"https://github.com/berttejeda/bert.bill",target:"_blank"},"https://github.com/berttejeda/bert.bill")),o.default.createElement(u.Modal.Footer,null,o.default.createElement(u.Button,{variant:"secondary",onClick:d},"Close"))),p=(0,i.useState)(!1),v=p[0],m=p[1],_=(0,i.useState)([]),g=_[0],y=_[1],b=(0,i.useState)("[]"),C=(b[0],b[1],(0,i.useState)(null)),S=C[0],w=C[1],E=function(){var e=window.scrollY;m(e>200)},x=(0,i.useState)(!1);x[0],x[1],handleLoadLesson=function(e){fetch("http://localhost:5000/api/loadLesson",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({uri:e})}).then((function(e){200!=e.status?console.log("Failed to retrieve encoded lesson, HTTP error was: ",e.statusText):e.json().then((function(e){n(e.encodedLesson),console.log("Successfully retrieved encoded lesson")}))})).catch((function(e){console.log("Failed to retrieve encoded lesson, error was: ",e)}))},(0,i.useEffect)((function(){try{fetch("http://localhost:5000/api/ping").then((function(e){return e.json()})).then((function(e){w(e.message)}))}catch(e){console.log(e)}}),[]),(0,i.useEffect)((function(){fetch("http://localhost:5000/api/getTopics").then((function(e){return e.json()})).then((function(e){y(e.topics)})),window.addEventListener("scroll",E)}),[]);var k=["topnavbar"];return v&&k.push("scrolled"),o.default.createElement("div",{className:"topnavbar-container"},o.default.createElement("div",{className:k.join(" ")},o.default.createElement(u.Navbar,{bg:"light",expand:"lg"},S?o.default.createElement(u.Navbar.Brand,{href:"#home"},o.default.createElement("img",{className:"logo",src:c.default,alt:"bert.bill"})):o.default.createElement(u.Navbar.Brand,{href:"#home"},o.default.createElement("img",{className:"logo",src:a.default,alt:"bert.bill"})),o.default.createElement(u.Navbar.Toggle,{"aria-controls":"basic-navbar-nav"}),o.default.createElement(u.Navbar.Collapse,{id:"basic-navbar-nav"},o.default.createElement(u.Nav,{className:"mr-auto"},o.default.createElement(u.Nav.Link,{href:"#home"},o.default.createElement("span",{className:"span-nav-link",onClick:function(){return f(!0)}},"About"),h),o.default.createElement(u.NavDropdown,{title:"Available Topics",id:"basic-nav-dropdown"},g!=[]?Object.entries(g).map((function(e){return Object.entries(e[1]).map((function(e){var t=e[0],r=e[1];return o.default.createElement(u.NavDropdown,{title:t,key:t,id:"basic-nav-dropdown-"+t},Object.entries(r.lessons).map((function(e){var r=e[0],n=e[1];return o.default.createElement(u.NavDropdown.Item,{href:"#",key:t+"-"+r,onClick:function(){handleLoadLesson(n.url)}},n.name)})))}))})):o.default.createElement(u.NavDropdown.Item,null,"No Lesson Data Available")),o.default.createElement(u.NavDropdown,{title:"Utilities",id:"basic-nav-dropdown"},o.default.createElement(u.NavDropdown,{title:"Lesson Tools",id:"basic-nav-dropdown"},o.default.createElement(u.NavDropdown.Item,{href:"#",onClick:function(){return r(!t)}},t?"Hide":"Show"," lesson loader"))))))))}},{react:"hCMiB","./TopNavBar.scss":"eDLR2","../../assets/logo_api_inactive.png":"bFhCH","../../assets/logo_api_active.png":"kwF8q","react-bootstrap":"10Wfc","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],eDLR2:[function(){},{}],bFhCH:[function(e,t,r){t.exports=e("./helpers/bundle-url").getBundleURL("6goqL")+e("./helpers/bundle-manifest").resolve("de7P6")},{"./helpers/bundle-url":"c4qny","./helpers/bundle-manifest":"2uuuV"}],c4qny:[function(e,t,r){"use strict";var n={};function i(e){return(""+e).replace(/^((?:https?|file|ftp|(chrome|moz)-extension):\/\/.+)\/[^/]+$/,"$1")+"/"}r.getBundleURL=function(e){var t=n[e];return t||(t=function(){try{throw new Error}catch(t){var e=(""+t.stack).match(/(https?|file|ftp|(chrome|moz)-extension):\/\/[^)\n]+/g);if(e)return i(e[2])}return"/"}(),n[e]=t),t},r.getBaseURL=i,r.getOrigin=function(e){var t=(""+e).match(/(https?|file|ftp|(chrome|moz)-extension):\/\/[^/]+/);if(!t)throw new Error("Origin not found");return t[0]}},{}],kwF8q:[function(e,t,r){t.exports=e("./helpers/bundle-url").getBundleURL("6goqL")+e("./helpers/bundle-manifest").resolve("cGgRa")},{"./helpers/bundle-url":"c4qny","./helpers/bundle-manifest":"2uuuV"}],"10Wfc":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Accordion",(()=>o.default)),n.export(r,"AccordionContext",(()=>a.default)),n.export(r,"AccordionCollapse",(()=>c.default)),n.export(r,"AccordionToggle",(()=>f.default)),n.export(r,"useAccordionToggle",(()=>u.useAccordionToggle)),n.export(r,"Alert",(()=>h.default)),n.export(r,"Badge",(()=>v.default)),n.export(r,"Breadcrumb",(()=>_.default)),n.export(r,"BreadcrumbItem",(()=>y.default)),n.export(r,"Button",(()=>C.default)),n.export(r,"ButtonGroup",(()=>w.default)),n.export(r,"ButtonToolbar",(()=>x.default)),n.export(r,"Card",(()=>L.default)),n.export(r,"CardColumns",(()=>j.default)),n.export(r,"CardDeck",(()=>M.default)),n.export(r,"CardImg",(()=>R.default)),n.export(r,"CardGroup",(()=>A.default)),n.export(r,"Carousel",(()=>I.default)),n.export(r,"CarouselItem",(()=>F.default)),n.export(r,"CloseButton",(()=>W.default)),n.export(r,"Col",(()=>q.default)),n.export(r,"Collapse",(()=>V.default)),n.export(r,"Dropdown",(()=>G.default)),n.export(r,"DropdownButton",(()=>Y.default)),n.export(r,"Fade",(()=>Q.default)),n.export(r,"Form",(()=>$.default)),n.export(r,"FormControl",(()=>te.default)),n.export(r,"FormCheck",(()=>ne.default)),n.export(r,"FormFile",(()=>oe.default)),n.export(r,"FormGroup",(()=>ae.default)),n.export(r,"FormLabel",(()=>ce.default)),n.export(r,"FormText",(()=>fe.default)),n.export(r,"Container",(()=>he.default)),n.export(r,"Image",(()=>ve.default)),n.export(r,"Figure",(()=>_e.default)),n.export(r,"InputGroup",(()=>ye.default)),n.export(r,"Jumbotron",(()=>Ce.default)),n.export(r,"ListGroup",(()=>we.default)),n.export(r,"ListGroupItem",(()=>xe.default)),n.export(r,"Media",(()=>Le.default)),n.export(r,"Modal",(()=>je.default)),n.export(r,"ModalBody",(()=>Me.default)),n.export(r,"ModalDialog",(()=>Re.default)),n.export(r,"ModalFooter",(()=>Ae.default)),n.export(r,"ModalTitle",(()=>Ie.default)),n.export(r,"Nav",(()=>Fe.default)),n.export(r,"Navbar",(()=>We.default)),n.export(r,"NavbarBrand",(()=>qe.default)),n.export(r,"NavDropdown",(()=>Ve.default)),n.export(r,"NavItem",(()=>Ge.default)),n.export(r,"NavLink",(()=>Ye.default)),n.export(r,"Overlay",(()=>Qe.default)),n.export(r,"OverlayTrigger",(()=>$e.default)),n.export(r,"PageItem",(()=>tt.default)),n.export(r,"Pagination",(()=>nt.default)),n.export(r,"Popover",(()=>ot.default)),n.export(r,"PopoverTitle",(()=>at.default)),n.export(r,"PopoverContent",(()=>ct.default)),n.export(r,"ProgressBar",(()=>ft.default)),n.export(r,"ResponsiveEmbed",(()=>ht.default)),n.export(r,"Row",(()=>vt.default)),n.export(r,"SafeAnchor",(()=>_t.default)),n.export(r,"Spinner",(()=>yt.default)),n.export(r,"SplitButton",(()=>Ct.default)),n.export(r,"Tab",(()=>wt.default)),n.export(r,"TabContainer",(()=>xt.default)),n.export(r,"TabContent",(()=>Lt.default)),n.export(r,"Table",(()=>jt.default)),n.export(r,"TabPane",(()=>Mt.default)),n.export(r,"Tabs",(()=>Rt.default)),n.export(r,"ThemeProvider",(()=>At.default)),n.export(r,"Toast",(()=>It.default)),n.export(r,"ToastBody",(()=>Ft.default)),n.export(r,"ToastHeader",(()=>Wt.default)),n.export(r,"ToggleButton",(()=>qt.default)),n.export(r,"ToggleButtonGroup",(()=>Vt.default)),n.export(r,"Tooltip",(()=>Gt.default));var i=e("./Accordion"),o=n.interopDefault(i),s=e("./AccordionContext"),a=n.interopDefault(s),l=e("./AccordionCollapse"),c=n.interopDefault(l),u=e("./AccordionToggle"),f=n.interopDefault(u),d=e("./Alert"),h=n.interopDefault(d),p=e("./Badge"),v=n.interopDefault(p),m=e("./Breadcrumb"),_=n.interopDefault(m),g=e("./BreadcrumbItem"),y=n.interopDefault(g),b=e("./Button"),C=n.interopDefault(b),S=e("./ButtonGroup"),w=n.interopDefault(S),E=e("./ButtonToolbar"),x=n.interopDefault(E),k=e("./Card"),L=n.interopDefault(k),D=e("./CardColumns"),j=n.interopDefault(D),O=e("./CardDeck"),M=n.interopDefault(O),T=e("./CardImg"),R=n.interopDefault(T),P=e("./CardGroup"),A=n.interopDefault(P),B=e("./Carousel"),I=n.interopDefault(B),N=e("./CarouselItem"),F=n.interopDefault(N),H=e("./CloseButton"),W=n.interopDefault(H),U=e("./Col"),q=n.interopDefault(U),z=e("./Collapse"),V=n.interopDefault(z),Z=e("./Dropdown"),G=n.interopDefault(Z),K=e("./DropdownButton"),Y=n.interopDefault(K),X=e("./Fade"),Q=n.interopDefault(X),J=e("./Form"),$=n.interopDefault(J),ee=e("./FormControl"),te=n.interopDefault(ee),re=e("./FormCheck"),ne=n.interopDefault(re),ie=e("./FormFile"),oe=n.interopDefault(ie),se=e("./FormGroup"),ae=n.interopDefault(se),le=e("./FormLabel"),ce=n.interopDefault(le),ue=e("./FormText"),fe=n.interopDefault(ue),de=e("./Container"),he=n.interopDefault(de),pe=e("./Image"),ve=n.interopDefault(pe),me=e("./Figure"),_e=n.interopDefault(me),ge=e("./InputGroup"),ye=n.interopDefault(ge),be=e("./Jumbotron"),Ce=n.interopDefault(be),Se=e("./ListGroup"),we=n.interopDefault(Se),Ee=e("./ListGroupItem"),xe=n.interopDefault(Ee),ke=e("./Media"),Le=n.interopDefault(ke),De=e("./Modal"),je=n.interopDefault(De),Oe=e("./ModalBody"),Me=n.interopDefault(Oe),Te=e("./ModalDialog"),Re=n.interopDefault(Te),Pe=e("./ModalFooter"),Ae=n.interopDefault(Pe),Be=e("./ModalTitle"),Ie=n.interopDefault(Be),Ne=e("./Nav"),Fe=n.interopDefault(Ne),He=e("./Navbar"),We=n.interopDefault(He),Ue=e("./NavbarBrand"),qe=n.interopDefault(Ue),ze=e("./NavDropdown"),Ve=n.interopDefault(ze),Ze=e("./NavItem"),Ge=n.interopDefault(Ze),Ke=e("./NavLink"),Ye=n.interopDefault(Ke),Xe=e("./Overlay"),Qe=n.interopDefault(Xe),Je=e("./OverlayTrigger"),$e=n.interopDefault(Je),et=e("./PageItem"),tt=n.interopDefault(et),rt=e("./Pagination"),nt=n.interopDefault(rt),it=e("./Popover"),ot=n.interopDefault(it),st=e("./PopoverTitle"),at=n.interopDefault(st),lt=e("./PopoverContent"),ct=n.interopDefault(lt),ut=e("./ProgressBar"),ft=n.interopDefault(ut),dt=e("./ResponsiveEmbed"),ht=n.interopDefault(dt),pt=e("./Row"),vt=n.interopDefault(pt),mt=e("./SafeAnchor"),_t=n.interopDefault(mt),gt=e("./Spinner"),yt=n.interopDefault(gt),bt=e("./SplitButton"),Ct=n.interopDefault(bt),St=e("./Tab"),wt=n.interopDefault(St),Et=e("./TabContainer"),xt=n.interopDefault(Et),kt=e("./TabContent"),Lt=n.interopDefault(kt),Dt=e("./Table"),jt=n.interopDefault(Dt),Ot=e("./TabPane"),Mt=n.interopDefault(Ot),Tt=e("./Tabs"),Rt=n.interopDefault(Tt),Pt=e("./ThemeProvider"),At=n.interopDefault(Pt),Bt=e("./Toast"),It=n.interopDefault(Bt),Nt=e("./ToastBody"),Ft=n.interopDefault(Nt),Ht=e("./ToastHeader"),Wt=n.interopDefault(Ht),Ut=e("./ToggleButton"),qt=n.interopDefault(Ut),zt=e("./ToggleButtonGroup"),Vt=n.interopDefault(zt),Zt=e("./Tooltip"),Gt=n.interopDefault(Zt)},{"./Accordion":!1,"./AccordionContext":!1,"./AccordionCollapse":!1,"./AccordionToggle":!1,"./Alert":!1,"./Badge":!1,"./Breadcrumb":!1,"./BreadcrumbItem":!1,"./Button":"ldViG","./ButtonGroup":!1,"./ButtonToolbar":!1,"./Card":!1,"./CardColumns":!1,"./CardDeck":!1,"./CardImg":!1,"./CardGroup":!1,"./Carousel":!1,"./CarouselItem":!1,"./CloseButton":"7uSpf","./Col":!1,"./Collapse":"kQ2a8","./Dropdown":"84zDQ","./DropdownButton":!1,"./Fade":"e12wK","./Form":!1,"./FormControl":"9Sehs","./FormCheck":!1,"./FormFile":!1,"./FormGroup":!1,"./FormLabel":!1,"./FormText":!1,"./Container":!1,"./Image":!1,"./Figure":!1,"./InputGroup":"hXyL0","./Jumbotron":!1,"./ListGroup":!1,"./ListGroupItem":!1,"./Media":!1,"./Modal":"d90J4","./ModalBody":"5J5ru","./ModalDialog":"7jfu2","./ModalFooter":"XNPUV","./ModalTitle":"2xvGF","./Nav":"6z7Cp","./Navbar":"1WNsp","./NavbarBrand":"jxpy4","./NavDropdown":"312tf","./NavItem":"dFSTJ","./NavLink":"czDW5","./Overlay":!1,"./OverlayTrigger":!1,"./PageItem":!1,"./Pagination":!1,"./Popover":!1,"./PopoverTitle":!1,"./PopoverContent":!1,"./ProgressBar":!1,"./ResponsiveEmbed":!1,"./Row":!1,"./SafeAnchor":"cM0kh","./Spinner":!1,"./SplitButton":!1,"./Tab":!1,"./TabContainer":!1,"./TabContent":!1,"./Table":!1,"./TabPane":!1,"./Tabs":!1,"./ThemeProvider":"4qm1d","./Toast":!1,"./ToastBody":!1,"./ToastHeader":!1,"./ToggleButton":!1,"./ToggleButtonGroup":!1,"./Tooltip":!1,"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],ldViG:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("classnames"),c=n.interopDefault(l),u=e("react"),f=n.interopDefault(u),d=e("./ThemeProvider"),h=e("./SafeAnchor"),p=n.interopDefault(h),v=["bsPrefix","variant","size","active","className","block","type","as"],m=f.default.forwardRef((function(e,t){var r=e.bsPrefix,n=e.variant,i=e.size,s=e.active,l=e.className,u=e.block,h=e.type,m=e.as,_=(0,a.default)(e,v),g=(0,d.useBootstrapPrefix)(r,"btn"),y=(0,c.default)(l,g,s&&"active",n&&g+"-"+n,u&&g+"-block",i&&g+"-"+i);if(_.href)return f.default.createElement(p.default,(0,o.default)({},_,{as:m,ref:t,className:(0,c.default)(y,_.disabled&&"disabled")}));t&&(_.ref=t),h?_.type=h:m||(_.type="button");var b=m||"button";return f.default.createElement(b,(0,o.default)({},_,{className:y}))}));m.displayName="Button",m.defaultProps={variant:"primary",active:!1,disabled:!1},r.default=m},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",classnames:"a30GA",react:"hCMiB","./ThemeProvider":"4qm1d","./SafeAnchor":"cM0kh","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],aSkWz:[function(e,t,r){function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=n},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"511CZ":[function(e,t,r){r.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},r.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.exportAll=function(e,t){return Object.keys(e).forEach((function(r){"default"===r||"__esModule"===r||t.hasOwnProperty(r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})})),t},r.export=function(e,t,r){Object.defineProperty(e,t,{enumerable:!0,get:r})}},{}],aedgo:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],a30GA:[function(e,t,r){
/*!
  Copyright (c) 2018 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/!function(){"use strict";var e={}.hasOwnProperty;function r(){for(var t=[],n=0;n<arguments.length;n++){var i=arguments[n];if(i){var o=typeof i;if("string"===o||"number"===o)t.push(i);else if(Array.isArray(i)){if(i.length){var s=r.apply(null,i);s&&t.push(s)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var a in i)e.call(i,a)&&i[a]&&t.push(a);else t.push(i.toString())}}return t.join(" ")}t.exports?(r.default=r,t.exports=r):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],(function(){return r})):window.classNames=r}()},{}],"4qm1d":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"useBootstrapPrefix",(()=>f)),n.export(r,"createBootstrapComponent",(()=>d)),n.export(r,"ThemeConsumer",(()=>c));var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("react"),a=n.interopDefault(s),l=a.default.createContext({}),c=l.Consumer,u=l.Provider;function f(e,t){var r=(0,s.useContext)(l);return e||r[t]||t}function d(e,t){"string"==typeof t&&(t={prefix:t});var r=e.prototype&&e.prototype.isReactComponent,n=t,i=n.prefix,s=n.forwardRefAs,l=void 0===s?r?"ref":"innerRef":s,c=a.default.forwardRef((function(t,r){var n=(0,o.default)({},t);n[l]=r;var s=f(n.bsPrefix,i);return a.default.createElement(e,(0,o.default)({},n,{bsPrefix:s}))}));return c.displayName="Bootstrap("+(e.displayName||e.name)+")",c}r.default=function(e){var t=e.prefixes,r=e.children,n=(0,s.useMemo)((function(){return(0,o.default)({},t)}),[t]);return a.default.createElement(u,{value:n},r)}},{"@babel/runtime/helpers/esm/extends":"aSkWz",react:"hCMiB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],cM0kh:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("react"),c=n.interopDefault(l),u=e("./createChainedFunction"),f=n.interopDefault(u),d=["as","disabled","onKeyDown"];function h(e){return!e||"#"===e.trim()}var p=c.default.forwardRef((function(e,t){var r=e.as,n=void 0===r?"a":r,i=e.disabled,s=e.onKeyDown,l=(0,a.default)(e,d),u=function(e){var t=l.href,r=l.onClick;(i||h(t))&&e.preventDefault(),i?e.stopPropagation():r&&r(e)};return h(l.href)&&(l.role=l.role||"button",l.href=l.href||"#"),i&&(l.tabIndex=-1,l["aria-disabled"]=!0),c.default.createElement(n,(0,o.default)({ref:t},l,{onClick:u,onKeyDown:(0,f.default)((function(e){" "===e.key&&(e.preventDefault(),u(e))}),s)}))}));p.displayName="SafeAnchor",r.default=p},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",react:"hCMiB","./createChainedFunction":"cdTAb","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],cdTAb:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((function(e){return null!=e})).reduce((function(e,t){if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n),t.apply(this,n)}}),null)}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"7uSpf":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("prop-types"),c=n.interopDefault(l),u=e("react"),f=n.interopDefault(u),d=e("classnames"),h=n.interopDefault(d),p=["label","onClick","className"],v={label:c.default.string.isRequired,onClick:c.default.func},m=f.default.forwardRef((function(e,t){var r=e.label,n=e.onClick,i=e.className,s=(0,a.default)(e,p);return f.default.createElement("button",(0,o.default)({ref:t,type:"button",className:(0,h.default)("close",i),onClick:n},s),f.default.createElement("span",{"aria-hidden":"true"},"×"),f.default.createElement("span",{className:"sr-only"},r))}));m.displayName="CloseButton",m.propTypes=v,m.defaultProps={label:"Close"},r.default=m},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo","prop-types":"7aJwi",react:"hCMiB",classnames:"a30GA","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"7aJwi":[function(e,t,r){t.exports=e("./factoryWithThrowingShims")()},{"./factoryWithThrowingShims":"blB4Y"}],blB4Y:[function(e,t,r){"use strict";var n=e("./lib/ReactPropTypesSecret");function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function e(e,t,r,i,o,s){if(s!==n){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={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 r.PropTypes=r,r}},{"./lib/ReactPropTypesSecret":"lvYUJ"}],lvYUJ:[function(e,t,r){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},{}],kQ2a8:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i,o=e("@babel/runtime/helpers/esm/extends"),s=n.interopDefault(o),a=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),l=n.interopDefault(a),c=e("classnames"),u=n.interopDefault(c),f=e("dom-helpers/css"),d=n.interopDefault(f),h=e("react"),p=n.interopDefault(h),v=e("react-transition-group/Transition"),m=n.interopDefault(v),_=e("./transitionEndListener"),g=n.interopDefault(_),y=e("./createChainedFunction"),b=n.interopDefault(y),C=e("./triggerBrowserReflow"),S=n.interopDefault(C),w=["onEnter","onEntering","onEntered","onExit","onExiting","className","children","dimension","getDimensionValue"],E={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function x(e,t){var r=t["offset"+e[0].toUpperCase()+e.slice(1)],n=E[e];return r+parseInt((0,d.default)(t,n[0]),10)+parseInt((0,d.default)(t,n[1]),10)}var k=((i={})[v.EXITED]="collapse",i[v.EXITING]="collapsing",i[v.ENTERING]="collapsing",i[v.ENTERED]="collapse show",i),L={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,getDimensionValue:x},D=p.default.forwardRef((function(e,t){var r=e.onEnter,n=e.onEntering,i=e.onEntered,o=e.onExit,a=e.onExiting,c=e.className,f=e.children,d=e.dimension,v=void 0===d?"height":d,_=e.getDimensionValue,y=void 0===_?x:_,C=(0,l.default)(e,w),E="function"==typeof v?v():v,L=(0,h.useMemo)((function(){return(0,b.default)((function(e){e.style[E]="0"}),r)}),[E,r]),D=(0,h.useMemo)((function(){return(0,b.default)((function(e){var t="scroll"+E[0].toUpperCase()+E.slice(1);e.style[E]=e[t]+"px"}),n)}),[E,n]),j=(0,h.useMemo)((function(){return(0,b.default)((function(e){e.style[E]=null}),i)}),[E,i]),O=(0,h.useMemo)((function(){return(0,b.default)((function(e){e.style[E]=y(E,e)+"px",(0,S.default)(e)}),o)}),[o,y,E]),M=(0,h.useMemo)((function(){return(0,b.default)((function(e){e.style[E]=null}),a)}),[E,a]);return p.default.createElement(m.default,(0,s.default)({ref:t,addEndListener:g.default},C,{"aria-expanded":C.role?C.in:null,onEnter:L,onEntering:D,onEntered:j,onExit:O,onExiting:M}),(function(e,t){return p.default.cloneElement(f,(0,s.default)({},t,{className:(0,u.default)(c,f.props.className,k[e],"width"===E&&"width")}))}))}));D.defaultProps=L,r.default=D},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",classnames:"a30GA","dom-helpers/css":"lzggy",react:"hCMiB","react-transition-group/Transition":"kxsrZ","./transitionEndListener":"4iQep","./createChainedFunction":"cdTAb","./triggerBrowserReflow":"2jQsY","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],lzggy:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./getComputedStyle"),o=n.interopDefault(i),s=e("./hyphenateStyle"),a=n.interopDefault(s),l=e("./isTransform"),c=n.interopDefault(l);r.default=function(e,t){var r="",n="";if("string"==typeof t)return e.style.getPropertyValue((0,a.default)(t))||(0,o.default)(e).getPropertyValue((0,a.default)(t));Object.keys(t).forEach((function(i){var o=t[i];o||0===o?(0,c.default)(i)?n+=i+"("+o+") ":r+=(0,a.default)(i)+": "+o+";":e.style.removeProperty((0,a.default)(i))})),n&&(r+="transform: "+n+";"),e.style.cssText+=";"+r}},{"./getComputedStyle":"4dj6w","./hyphenateStyle":"gFR3U","./isTransform":"3qe4H","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"4dj6w":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./ownerWindow"),o=n.interopDefault(i);r.default=function(e,t){return(0,o.default)(e).getComputedStyle(e,t)}},{"./ownerWindow":"2BwFX","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"2BwFX":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./ownerDocument"),o=n.interopDefault(i);r.default=function(e){var t=(0,o.default)(e);return t&&t.defaultView||window}},{"./ownerDocument":"5vGq4","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"5vGq4":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e){return e&&e.ownerDocument||document}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],gFR3U:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./hyphenate"),o=n.interopDefault(i),s=/^ms-/;r.default=function(e){return(0,o.default)(e).replace(s,"-ms-")}},{"./hyphenate":"lWHc0","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],lWHc0:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=/([A-Z])/g;r.default=function(e){return e.replace(n,"-$1").toLowerCase()}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"3qe4H":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;r.default=function(e){return!(!e||!n.test(e))}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],kxsrZ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"UNMOUNTED",(()=>_)),n.export(r,"EXITED",(()=>g)),n.export(r,"ENTERING",(()=>y)),n.export(r,"ENTERED",(()=>b)),n.export(r,"EXITING",(()=>C));var i=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/inheritsLoose"),a=n.interopDefault(s),l=e("prop-types"),c=(n.interopDefault(l),e("react")),u=n.interopDefault(c),f=e("react-dom"),d=n.interopDefault(f),h=e("./config"),p=n.interopDefault(h),v=(e("./utils/PropTypes"),e("./TransitionGroupContext")),m=n.interopDefault(v),_="unmounted",g="exited",y="entering",b="entered",C="exiting",S=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var i,o=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?o?(i=g,n.appearStatus=y):i=b:i=t.unmountOnExit||t.mountOnEnter?_:g,n.state={status:i},n.nextCallback=null,n}(0,a.default)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===_?{status:g}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==y&&r!==b&&(t=y):r!==y&&r!==b||(t=C)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===y?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===g&&this.setState({status:_})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,i=this.props.nodeRef?[n]:[d.default.findDOMNode(this),n],o=i[0],s=i[1],a=this.getTimeouts(),l=n?a.appear:a.enter;!e&&!r||p.default.disabled?this.safeSetState({status:b},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,s),this.safeSetState({status:y},(function(){t.props.onEntering(o,s),t.onTransitionEnd(l,(function(){t.safeSetState({status:b},(function(){t.props.onEntered(o,s)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:d.default.findDOMNode(this);t&&!p.default.disabled?(this.props.onExit(n),this.safeSetState({status:C},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:g},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:g},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:d.default.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],o=i[0],s=i[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===_)return null;var t=this.props,r=t.children,n=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,o.default)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return u.default.createElement(m.default.Provider,{value:null},"function"==typeof r?r(e,n):u.default.cloneElement(u.default.Children.only(r),n))},t}(u.default.Component);function w(){}S.contextType=m.default,S.propTypes={},S.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:w,onEntering:w,onEntered:w,onExit:w,onExiting:w,onExited:w},S.UNMOUNTED=_,S.EXITED=g,S.ENTERING=y,S.ENTERED=b,S.EXITING=C,r.default=S},{"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo","@babel/runtime/helpers/esm/inheritsLoose":"9XmnM","prop-types":"7aJwi",react:"hCMiB","react-dom":"827j0","./config":"8nlRG","./utils/PropTypes":"36rvT","./TransitionGroupContext":"6YTuJ","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"9XmnM":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./setPrototypeOf.js"),o=n.interopDefault(i);r.default=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,o.default)(e,t)}},{"./setPrototypeOf.js":"744RH","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"744RH":[function(e,t,r){function n(e,t){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=n},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"8nlRG":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default={disabled:!1}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"36rvT":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"timeoutsShape",(()=>o)),n.export(r,"classNamesShape",(()=>s));var i=e("prop-types"),o=(n.interopDefault(i),null),s=null},{"prop-types":"7aJwi","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"6YTuJ":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("react"),o=n.interopDefault(i);r.default=o.default.createContext(null)},{react:"hCMiB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"4iQep":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("dom-helpers/css"),o=n.interopDefault(i),s=e("dom-helpers/transitionEnd"),a=n.interopDefault(s);function l(e,t){var r=(0,o.default)(e,t)||"",n=-1===r.indexOf("ms")?1e3:1;return parseFloat(r)*n}r.default=function(e,t){var r=l(e,"transitionDuration"),n=l(e,"transitionDelay"),i=(0,a.default)(e,(function(r){r.target===e&&(i(),t(r))}),r+n)}},{"dom-helpers/css":"lzggy","dom-helpers/transitionEnd":"8Kpgo","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"8Kpgo":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./css"),o=n.interopDefault(i),s=e("./listen"),a=n.interopDefault(s),l=e("./triggerEvent"),c=n.interopDefault(l);r.default=function(e,t,r,n){var i,s,l;null==r&&(i=e,s=(0,o.default)(i,"transitionDuration")||"",l=-1===s.indexOf("ms")?1e3:1,r=parseFloat(s)*l||0);var u=function(e,t,r){void 0===r&&(r=5);var n=!1,i=setTimeout((function(){n||(0,c.default)(e,"transitionend",!0)}),t+r),o=(0,a.default)(e,"transitionend",(function(){n=!0}),{once:!0});return function(){clearTimeout(i),o()}}(e,r,n),f=(0,a.default)(e,"transitionend",t);return function(){u(),f()}}},{"./css":"lzggy","./listen":"7ybRG","./triggerEvent":"jyBoe","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"7ybRG":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./addEventListener"),o=n.interopDefault(i),s=e("./removeEventListener"),a=n.interopDefault(s);r.default=function(e,t,r,n){return(0,o.default)(e,t,r,n),function(){(0,a.default)(e,t,r,n)}}},{"./addEventListener":"cDxTo","./removeEventListener":"4Dqx0","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],cDxTo:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"optionsSupported",(()=>s)),n.export(r,"onceSupported",(()=>a));var i=e("./canUseDOM"),o=n.interopDefault(i),s=!1,a=!1;try{var l={get passive(){return s=!0},get once(){return a=s=!0}};o.default&&(window.addEventListener("test",l,l),window.removeEventListener("test",l,!0))}catch(e){}r.default=function(e,t,r,n){if(n&&"boolean"!=typeof n&&!a){var i=n.once,o=n.capture,l=r;!a&&i&&(l=r.__once||function e(n){this.removeEventListener(t,e,o),r.call(this,n)},r.__once=l),e.addEventListener(t,l,s?n:o)}e.addEventListener(t,r,n)}},{"./canUseDOM":"1hcoX","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"1hcoX":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=!("undefined"==typeof window||!window.document||!window.document.createElement)},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"4Dqx0":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e,t,r,n){var i=n&&"boolean"!=typeof n?n.capture:n;e.removeEventListener(t,r,i),r.__once&&e.removeEventListener(t,r.__once,i)}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],jyBoe:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e,t,r,n){if(void 0===r&&(r=!1),void 0===n&&(n=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,r,n),e.dispatchEvent(i)}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"2jQsY":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e){e.offsetHeight}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"84zDQ":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("classnames"),c=n.interopDefault(l),u=e("react"),f=n.interopDefault(u),d=e("react-overlays/Dropdown"),h=n.interopDefault(d),p=e("uncontrollable"),v=e("@restart/hooks/useEventCallback"),m=n.interopDefault(v),_=e("./DropdownItem"),g=n.interopDefault(_),y=e("./DropdownMenu"),b=n.interopDefault(y),C=e("./DropdownToggle"),S=n.interopDefault(C),w=e("./SelectableContext"),E=n.interopDefault(w),x=e("./ThemeProvider"),k=e("./createWithBsPrefix"),L=n.interopDefault(k),D=["bsPrefix","drop","show","className","alignRight","onSelect","onToggle","focusFirstItemOnShow","as","navbar"],j=(0,L.default)("dropdown-header",{defaultProps:{role:"heading"}}),O=(0,L.default)("dropdown-divider",{defaultProps:{role:"separator"}}),M=(0,L.default)("dropdown-item-text",{Component:"span"}),T=f.default.forwardRef((function(e,t){var r=(0,p.useUncontrolled)(e,{show:"onToggle"}),n=r.bsPrefix,i=r.drop,s=r.show,l=r.className,d=r.alignRight,v=r.onSelect,_=r.onToggle,g=r.focusFirstItemOnShow,y=r.as,b=void 0===y?"div":y,C=(r.navbar,(0,a.default)(r,D)),S=(0,u.useContext)(E.default),w=(0,x.useBootstrapPrefix)(n,"dropdown"),k=(0,m.default)((function(e,t,r){void 0===r&&(r=t.type),t.currentTarget!==document||"keydown"===r&&"Escape"!==t.key||(r="rootClose"),_&&_(e,t,{source:r})})),L=(0,m.default)((function(e,t){S&&S(e,t),v&&v(e,t),k(!1,t,"select")}));return f.default.createElement(E.default.Provider,{value:L},f.default.createElement(h.default,{drop:i,show:s,alignEnd:d,onToggle:k,focusFirstItemOnShow:g,itemSelector:"."+w+"-item:not(.disabled):not(:disabled)"},f.default.createElement(b,(0,o.default)({},C,{ref:t,className:(0,c.default)(l,s&&"show",(!i||"down"===i)&&w,"up"===i&&"dropup","right"===i&&"dropright","left"===i&&"dropleft")}))))}));T.displayName="Dropdown",T.defaultProps={navbar:!1},T.Divider=O,T.Header=j,T.Item=g.default,T.ItemText=M,T.Menu=b.default,T.Toggle=S.default,r.default=T},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",classnames:"a30GA",react:"hCMiB","react-overlays/Dropdown":"dVCbu",uncontrollable:"abXpx","@restart/hooks/useEventCallback":"5SvjJ","./DropdownItem":"5EzXr","./DropdownMenu":"1G1cJ","./DropdownToggle":"90BzO","./SelectableContext":"4O42Z","./ThemeProvider":"4qm1d","./createWithBsPrefix":"kxpfT","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],dVCbu:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("dom-helpers/matches"),o=n.interopDefault(i),s=e("dom-helpers/querySelectorAll"),a=n.interopDefault(s),l=e("dom-helpers/addEventListener"),c=n.interopDefault(l),u=e("react"),f=n.interopDefault(u),d=e("prop-types"),h=n.interopDefault(d),p=e("uncontrollable"),v=e("@restart/hooks/usePrevious"),m=n.interopDefault(v),_=e("@restart/hooks/useForceUpdate"),g=n.interopDefault(_),y=e("@restart/hooks/useGlobalListener"),b=n.interopDefault(y),C=e("@restart/hooks/useEventCallback"),S=n.interopDefault(C),w=e("./DropdownContext"),E=n.interopDefault(w),x=e("./DropdownMenu"),k=n.interopDefault(x),L=e("./DropdownToggle"),D=n.interopDefault(L),j={children:h.default.node,drop:h.default.oneOf(["up","left","right","down"]),focusFirstItemOnShow:h.default.oneOf([!1,!0,"keyboard"]),itemSelector:h.default.string,alignEnd:h.default.bool,show:h.default.bool,defaultShow:h.default.bool,onToggle:h.default.func};function O(){var e=(0,g.default)(),t=(0,u.useRef)(null),r=(0,u.useCallback)((function(r){t.current=r,e()}),[e]);return[t,r]}function M(e){var t=e.drop,r=e.alignEnd,n=e.defaultShow,i=e.show,s=e.onToggle,l=e.itemSelector,d=void 0===l?"* > *":l,h=e.focusFirstItemOnShow,v=e.children,_=(0,p.useUncontrolledProp)(i,n,s),g=_[0],y=_[1],C=O(),w=C[0],x=C[1],k=w.current,L=O(),D=L[0],j=L[1],M=D.current,T=(0,m.default)(g),R=(0,u.useRef)(null),P=(0,u.useRef)(!1),A=(0,u.useCallback)((function(e,t){y(e,t)}),[y]),B=(0,u.useMemo)((function(){return{toggle:A,drop:t,show:g,alignEnd:r,menuElement:k,toggleElement:M,setMenu:x,setToggle:j}}),[A,t,g,r,k,M,x,j]);k&&T&&!g&&(P.current=k.contains(document.activeElement));var I=(0,S.default)((function(){M&&M.focus&&M.focus()})),N=(0,S.default)((function(){var e=R.current,t=h;if(null==t&&(t=!(!w.current||!(0,o.default)(w.current,"[role=menu]"))&&"keyboard"),!1!==t&&("keyboard"!==t||/^key.+$/.test(e))){var r=(0,a.default)(w.current,d)[0];r&&r.focus&&r.focus()}}));(0,u.useEffect)((function(){g?N():P.current&&(P.current=!1,I())}),[g,P,I,N]),(0,u.useEffect)((function(){R.current=null}));var F=function(e,t){if(!w.current)return null;var r=(0,a.default)(w.current,d),n=r.indexOf(e)+t;return r[n=Math.max(0,Math.min(n,r.length))]};return(0,b.default)("keydown",(function(e){var t,r,n=e.key,i=e.target,o=null==(t=w.current)?void 0:t.contains(i),s=null==(r=D.current)?void 0:r.contains(i);if((!/input|textarea/i.test(i.tagName)||!(" "===n||"Escape"!==n&&o))&&(o||s)&&(w.current||"Tab"!==n))switch(R.current=e.type,n){case"ArrowUp":var a=F(i,-1);return a&&a.focus&&a.focus(),void e.preventDefault();case"ArrowDown":if(e.preventDefault(),g){var l=F(i,1);l&&l.focus&&l.focus()}else y(!0,e);return;case"Tab":(0,c.default)(document,"keyup",(function(t){var r;("Tab"!==t.key||t.target)&&null!=(r=w.current)&&r.contains(t.target)||y(!1,e)}),{once:!0});break;case"Escape":e.preventDefault(),e.stopPropagation(),y(!1,e)}})),f.default.createElement(E.default.Provider,{value:B},v)}M.displayName="ReactOverlaysDropdown",M.propTypes=j,M.Menu=k.default,M.Toggle=D.default,r.default=M},{"dom-helpers/matches":"8ow2k","dom-helpers/querySelectorAll":"dbHBH","dom-helpers/addEventListener":"cDxTo",react:"hCMiB","prop-types":"7aJwi",uncontrollable:"abXpx","@restart/hooks/usePrevious":"5P4oh","@restart/hooks/useForceUpdate":"ebc65","@restart/hooks/useGlobalListener":"gvB7G","@restart/hooks/useEventCallback":"5SvjJ","./DropdownContext":"3xB2N","./DropdownMenu":"f0eSA","./DropdownToggle":"bvRWl","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"8ow2k":[function(e,t,r){var n;e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e,t){if(!n){var r=document.body,i=r.matches||r.matchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector;n=function(e,t){return i.call(e,t)}}return n(e,t)}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],dbHBH:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=Function.prototype.bind.call(Function.prototype.call,[].slice);r.default=function(e,t){return n(e.querySelectorAll(t))}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],abXpx:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"useUncontrolled",(()=>o.default)),n.export(r,"useUncontrolledProp",(()=>i.useUncontrolledProp)),n.export(r,"uncontrollable",(()=>a.default));var i=e("./hook"),o=n.interopDefault(i),s=e("./uncontrollable"),a=n.interopDefault(s)},{"./hook":"5gAOZ","./uncontrollable":"bjPaz","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"5gAOZ":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"useUncontrolledProp",(()=>f));var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("react"),c=e("./utils");function u(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function f(e,t,r){var n=(0,l.useRef)(void 0!==e),i=(0,l.useState)(t),o=i[0],s=i[1],a=void 0!==e,c=n.current;return n.current=a,!a&&c&&o!==t&&s(t),[a?e:o,(0,l.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];r&&r.apply(void 0,[e].concat(n)),s(e)}),[r])]}r.default=function(e,t){return Object.keys(t).reduce((function(r,n){var i,s=r,l=s[c.defaultKey(n)],d=s[n],h=(0,a.default)(s,[c.defaultKey(n),n].map(u)),p=t[n],v=f(d,l,e[p]),m=v[0],_=v[1];return(0,o.default)({},h,((i={})[n]=m,i[p]=_,i))}),e)}},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",react:"hCMiB","./utils":"go2tp","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],go2tp:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"uncontrolledPropTypes",(()=>s)),n.export(r,"isProp",(()=>a)),n.export(r,"defaultKey",(()=>l)),n.export(r,"canAcceptRef",(()=>c));var i=e("invariant"),o=(n.interopDefault(i),function(){});function s(e,t){var r={};return Object.keys(e).forEach((function(e){r[l(e)]=o})),r}function a(e,t){return void 0!==e[t]}function l(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function c(e){return!!e&&("function"!=typeof e||e.prototype&&e.prototype.isReactComponent)}},{invariant:"ebU8U","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],ebU8U:[function(e,t,r){"use strict";t.exports=function(e,t,r,n,i,o,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,i,o,s,a],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},{}],bjPaz:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/extends"),a=n.interopDefault(s),l=e("@babel/runtime/helpers/esm/inheritsLoose"),c=n.interopDefault(l),u=e("react"),f=n.interopDefault(u),d=e("react-lifecycles-compat"),h=e("invariant"),p=n.interopDefault(h),v=e("./utils");r.default=function e(t,r,n){void 0===n&&(n=[]);var i=t.displayName||t.name||"Component",s=v.canAcceptRef(t),l=Object.keys(r),u=l.map(v.defaultKey);!s&&n.length&&(0,p.default)(!1);var h=function(e){function i(){for(var t,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];(t=e.call.apply(e,[this].concat(o))||this).handlers=Object.create(null),l.forEach((function(e){var n=r[e];t.handlers[n]=function(r){if(t.props[n]){var i;t._notifying=!0;for(var o=arguments.length,s=new Array(o>1?o-1:0),l=1;l<o;l++)s[l-1]=arguments[l];(i=t.props)[n].apply(i,[r].concat(s)),t._notifying=!1}t.unmounted||t.setState((function(t){var n,i=t.values;return{values:(0,a.default)(Object.create(null),i,(n={},n[e]=r,n))}}))}})),n.length&&(t.attachRef=function(e){t.inner=e});var c=Object.create(null);return l.forEach((function(e){c[e]=t.props[v.defaultKey(e)]})),t.state={values:c,prevProps:{}},t}(0,c.default)(i,e);var s=i.prototype;return s.shouldComponentUpdate=function(){return!this._notifying},i.getDerivedStateFromProps=function(e,t){var r=t.values,n=t.prevProps,i={values:(0,a.default)(Object.create(null),r),prevProps:{}};return l.forEach((function(t){i.prevProps[t]=e[t],!v.isProp(e,t)&&v.isProp(n,t)&&(i.values[t]=e[v.defaultKey(t)])})),i},s.componentWillUnmount=function(){this.unmounted=!0},s.render=function(){var e=this,r=this.props,n=r.innerRef,i=(0,o.default)(r,["innerRef"]);u.forEach((function(e){delete i[e]}));var s={};return l.forEach((function(t){var r=e.props[t];s[t]=void 0!==r?r:e.state.values[t]})),f.default.createElement(t,(0,a.default)({},i,s,this.handlers,{ref:n||this.attachRef}))},i}(f.default.Component);(0,d.polyfill)(h),h.displayName="Uncontrolled("+i+")",h.propTypes=(0,a.default)({innerRef:function(){}},v.uncontrolledPropTypes(r,i)),n.forEach((function(e){h.prototype[e]=function(){var t;return(t=this.inner)[e].apply(t,arguments)}}));var m=h;return f.default.forwardRef&&((m=f.default.forwardRef((function(e,t){return f.default.createElement(h,(0,a.default)({},e,{innerRef:t,__source:{fileName:"/Users/jquense/src/uncontrollable/src/uncontrollable.js",lineNumber:128},__self:this}))}))).propTypes=h.propTypes),m.ControlledComponent=t,m.deferControlTo=function(t,n,i){return void 0===n&&(n={}),e(t,(0,a.default)({},r,n),i)},m}},{"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo","@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/inheritsLoose":"9XmnM",react:"hCMiB","react-lifecycles-compat":"8Ut1f",invariant:"ebU8U","./utils":"go2tp","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"8Ut1f":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function i(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!=r?r:null}.bind(this))}function s(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var r=null,n=null,a=null;if("function"==typeof t.componentWillMount?r="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?n="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(n="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==r||null!==n||null!==a){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==r?"\n  "+r:"")+(null!==n?"\n  "+n:"")+(null!==a?"\n  "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=i,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=s;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;u.call(this,e,t,n)}}return e}n.defineInteropFlag(r),n.export(r,"polyfill",(()=>a)),i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,s.__suppressDeprecationWarning=!0},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"5P4oh":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("react");r.default=function(e){var t=(0,n.useRef)(null);return(0,n.useEffect)((function(){t.current=e})),t.current}},{react:"hCMiB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],ebc65:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("react");r.default=function(){return(0,n.useReducer)((function(e){return!e}),!1)[1]}},{react:"hCMiB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],gvB7G:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./useEventListener"),o=n.interopDefault(i),s=e("react");r.default=function(e,t,r){void 0===r&&(r=!1);var n=(0,s.useCallback)((function(){return document}),[]);return(0,o.default)(n,e,t,r)}},{"./useEventListener":"2wuNv",react:"hCMiB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"2wuNv":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("react"),o=e("./useEventCallback"),s=n.interopDefault(o);r.default=function(e,t,r,n){void 0===n&&(n=!1);var o=(0,s.default)(r);(0,i.useEffect)((function(){var r="function"==typeof e?e():e;return r.addEventListener(t,o,n),function(){return r.removeEventListener(t,o,n)}}),[e])}},{react:"hCMiB","./useEventCallback":"5SvjJ","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"5SvjJ":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("react"),o=e("./useCommittedRef"),s=n.interopDefault(o);r.default=function(e){var t=(0,s.default)(e);return(0,i.useCallback)((function(){return t.current&&t.current.apply(t,arguments)}),[t])}},{react:"hCMiB","./useCommittedRef":"1gVna","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"1gVna":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("react");r.default=function(e){var t=(0,n.useRef)(e);return(0,n.useEffect)((function(){t.current=e}),[e]),t}},{react:"hCMiB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"3xB2N":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("react"),o=n.interopDefault(i).default.createContext(null);r.default=o},{react:"hCMiB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],f0eSA:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"useDropdownMenu",(()=>w));var i=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/extends"),a=n.interopDefault(s),l=e("prop-types"),c=n.interopDefault(l),u=e("react"),f=n.interopDefault(u),d=e("@restart/hooks/useCallbackRef"),h=n.interopDefault(d),p=e("./DropdownContext"),v=n.interopDefault(p),m=e("./usePopper"),_=n.interopDefault(m),g=e("./useRootClose"),y=n.interopDefault(g),b=e("./mergeOptionsWithPopperConfig"),C=n.interopDefault(b),S=function(){};function w(e){void 0===e&&(e={});var t=(0,u.useContext)(v.default),r=(0,h.default)(),n=r[0],i=r[1],o=(0,u.useRef)(!1),s=e,l=s.flip,c=s.offset,f=s.rootCloseEvent,d=s.fixed,p=void 0!==d&&d,m=s.popperConfig,g=void 0===m?{}:m,b=s.usePopper,w=void 0===b?!!t:b,E=null==(null==t?void 0:t.show)?!!e.show:t.show,x=null==(null==t?void 0:t.alignEnd)?e.alignEnd:t.alignEnd;E&&!o.current&&(o.current=!0);var k=t||{},L=k.drop,D=k.setMenu,j=k.menuElement,O=k.toggleElement,M=x?"bottom-end":"bottom-start";"up"===L?M=x?"top-end":"top-start":"right"===L?M=x?"right-end":"right-start":"left"===L&&(M=x?"left-end":"left-start");var T=(0,_.default)(O,j,(0,C.default)({placement:M,enabled:!(!w||!E),enableEvents:E,offset:c,flip:l,fixed:p,arrowElement:n,popperConfig:g})),R=(0,a.default)({ref:D||S,"aria-labelledby":null==O?void 0:O.id},T.attributes.popper,{style:T.styles.popper}),P={show:E,alignEnd:x,hasShown:o.current,toggle:null==t?void 0:t.toggle,popper:w?T:null,arrowProps:w?(0,a.default)({ref:i},T.attributes.arrow,{style:T.styles.arrow}):{}};return(0,y.default)(j,(function(e){null==t||t.toggle(!1,e)}),{clickTrigger:f,disabled:!E}),[R,P]}var E={children:c.default.func.isRequired,show:c.default.bool,alignEnd:c.default.bool,flip:c.default.bool,usePopper:c.default.oneOf([!0,!1]),popperConfig:c.default.object,rootCloseEvent:c.default.string};function x(e){var t=e.children,r=w((0,o.default)(e,["children"])),n=r[0],i=r[1];return f.default.createElement(f.default.Fragment,null,i.hasShown?t(n,i):null)}x.displayName="ReactOverlaysDropdownMenu",x.propTypes=E,x.defaultProps={usePopper:!0},r.default=x},{"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo","@babel/runtime/helpers/esm/extends":"aSkWz","prop-types":"7aJwi",react:"hCMiB","@restart/hooks/useCallbackRef":"dJEg8","./DropdownContext":"3xB2N","./usePopper":"kRd84","./useRootClose":"fXs3k","./mergeOptionsWithPopperConfig":"hiug1","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],dJEg8:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("react");r.default=function(){return(0,n.useState)(null)}},{react:"hCMiB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],kRd84:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("react"),c=e("@restart/hooks/useSafeState"),u=n.interopDefault(c),f=e("./popper"),d=function(e){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}},h={name:"applyStyles",enabled:!1},p={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:function(e){var t=e.state;return function(){var e=t.elements,r=e.reference,n=e.popper;if("removeAttribute"in r){var i=(r.getAttribute("aria-describedby")||"").split(",").filter((function(e){return e.trim()!==n.id}));i.length?r.setAttribute("aria-describedby",i.join(",")):r.removeAttribute("aria-describedby")}}},fn:function(e){var t,r=e.state.elements,n=r.popper,i=r.reference,o=null==(t=n.getAttribute("role"))?void 0:t.toLowerCase();if(n.id&&"tooltip"===o&&"setAttribute"in i){var s=i.getAttribute("aria-describedby");if(s&&-1!==s.split(",").indexOf(n.id))return;i.setAttribute("aria-describedby",s?s+","+n.id:n.id)}}},v=[];r.default=function(e,t,r){var n=void 0===r?{}:r,i=n.enabled,s=void 0===i||i,c=n.placement,m=void 0===c?"bottom":c,_=n.strategy,g=void 0===_?"absolute":_,y=n.modifiers,b=void 0===y?v:y,C=(0,a.default)(n,["enabled","placement","strategy","modifiers"]),S=(0,l.useRef)(),w=(0,l.useCallback)((function(){var e;null==(e=S.current)||e.update()}),[]),E=(0,l.useCallback)((function(){var e;null==(e=S.current)||e.forceUpdate()}),[]),x=(0,u.default)((0,l.useState)({placement:m,update:w,forceUpdate:E,attributes:{},styles:{popper:d(g),arrow:{}}})),k=x[0],L=x[1],D=(0,l.useMemo)((function(){return{name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:function(e){var t=e.state,r={},n={};Object.keys(t.elements).forEach((function(e){r[e]=t.styles[e],n[e]=t.attributes[e]})),L({state:t,styles:r,attributes:n,update:w,forceUpdate:E,placement:t.placement})}}}),[w,E,L]);return(0,l.useEffect)((function(){S.current&&s&&S.current.setOptions({placement:m,strategy:g,modifiers:[].concat(b,[D,h])})}),[g,m,D,s]),(0,l.useEffect)((function(){if(s&&null!=e&&null!=t)return S.current=(0,f.createPopper)(e,t,(0,o.default)({},C,{placement:m,strategy:g,modifiers:[].concat(b,[p,D])})),function(){null!=S.current&&(S.current.destroy(),S.current=void 0,L((function(e){return(0,o.default)({},e,{attributes:{},styles:{popper:d(g)}})})))}}),[s,e,t]),k}},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",react:"hCMiB","@restart/hooks/useSafeState":"d3w5H","./popper":"33Ubx","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],d3w5H:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("react"),o=e("./useMounted"),s=n.interopDefault(o);r.default=function(e){var t=(0,s.default)();return[e[0],(0,i.useCallback)((function(r){if(t())return e[1](r)}),[t,e[1]])]}},{react:"hCMiB","./useMounted":"DjgAC","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],DjgAC:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("react");r.default=function(){var e=(0,n.useRef)(!0),t=(0,n.useRef)((function(){return e.current}));return(0,n.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),t.current}},{react:"hCMiB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"33Ubx":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"createPopper",(()=>C)),n.export(r,"placements",(()=>b.placements));var i=e("@popperjs/core/lib/modifiers/arrow"),o=n.interopDefault(i),s=e("@popperjs/core/lib/modifiers/computeStyles"),a=n.interopDefault(s),l=e("@popperjs/core/lib/modifiers/eventListeners"),c=n.interopDefault(l),u=e("@popperjs/core/lib/modifiers/flip"),f=n.interopDefault(u),d=e("@popperjs/core/lib/modifiers/hide"),h=n.interopDefault(d),p=e("@popperjs/core/lib/modifiers/offset"),v=n.interopDefault(p),m=e("@popperjs/core/lib/modifiers/popperOffsets"),_=n.interopDefault(m),g=e("@popperjs/core/lib/modifiers/preventOverflow"),y=n.interopDefault(g),b=e("@popperjs/core/lib/enums"),C=(0,e("@popperjs/core/lib/popper-base").popperGenerator)({defaultModifiers:[h.default,_.default,a.default,c.default,v.default,f.default,y.default,o.default]})},{"@popperjs/core/lib/modifiers/arrow":"datq8","@popperjs/core/lib/modifiers/computeStyles":"hOivo","@popperjs/core/lib/modifiers/eventListeners":"lrB3I","@popperjs/core/lib/modifiers/flip":"adAeS","@popperjs/core/lib/modifiers/hide":"hDdO7","@popperjs/core/lib/modifiers/offset":"29I5G","@popperjs/core/lib/modifiers/popperOffsets":"1pTxN","@popperjs/core/lib/modifiers/preventOverflow":"3EGvu","@popperjs/core/lib/enums":"gQYch","@popperjs/core/lib/popper-base":"k6IaF","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],datq8:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("../utils/getBasePlacement.js"),o=n.interopDefault(i),s=e("../dom-utils/getLayoutRect.js"),a=n.interopDefault(s),l=e("../dom-utils/contains.js"),c=n.interopDefault(l),u=e("../dom-utils/getOffsetParent.js"),f=n.interopDefault(u),d=e("../utils/getMainAxisFromPlacement.js"),h=n.interopDefault(d),p=e("../utils/within.js"),v=e("../utils/mergePaddingObject.js"),m=n.interopDefault(v),_=e("../utils/expandToHashMap.js"),g=n.interopDefault(_),y=e("../enums.js");e("../dom-utils/instanceOf.js");r.default={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,i=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,c=(0,o.default)(r.placement),u=(0,h.default)(c),d=[y.left,y.right].indexOf(c)>=0?"height":"width";if(s&&l){var v=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,m.default)("number"!=typeof e?e:(0,g.default)(e,y.basePlacements))}(i.padding,r),_=(0,a.default)(s),b="y"===u?y.top:y.left,C="y"===u?y.bottom:y.right,S=r.rects.reference[d]+r.rects.reference[u]-l[u]-r.rects.popper[d],w=l[u]-r.rects.reference[u],E=(0,f.default)(s),x=E?"y"===u?E.clientHeight||0:E.clientWidth||0:0,k=S/2-w/2,L=v[b],D=x-_[d]-v[C],j=x/2-_[d]/2+k,O=(0,p.within)(L,j,D),M=u;r.modifiersData[n]=((t={})[M]=O,t.centerOffset=O-j,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&(0,c.default)(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},{"../utils/getBasePlacement.js":"fxqpB","../dom-utils/getLayoutRect.js":"bPQhA","../dom-utils/contains.js":"cJNsg","../dom-utils/getOffsetParent.js":"DkJyb","../utils/getMainAxisFromPlacement.js":"kFEIr","../utils/within.js":"d8KYI","../utils/mergePaddingObject.js":"9EY02","../utils/expandToHashMap.js":"kwO6l","../enums.js":"gQYch","../dom-utils/instanceOf.js":"bvORQ","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],fxqpB:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);e("../enums.js");r.default=function(e){return e.split("-")[0]}},{"../enums.js":"gQYch","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],gQYch:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"top",(()=>i)),n.export(r,"bottom",(()=>o)),n.export(r,"right",(()=>s)),n.export(r,"left",(()=>a)),n.export(r,"auto",(()=>l)),n.export(r,"basePlacements",(()=>c)),n.export(r,"start",(()=>u)),n.export(r,"end",(()=>f)),n.export(r,"clippingParents",(()=>d)),n.export(r,"viewport",(()=>h)),n.export(r,"popper",(()=>p)),n.export(r,"reference",(()=>v)),n.export(r,"variationPlacements",(()=>m)),n.export(r,"placements",(()=>_)),n.export(r,"beforeRead",(()=>g)),n.export(r,"read",(()=>y)),n.export(r,"afterRead",(()=>b)),n.export(r,"beforeMain",(()=>C)),n.export(r,"main",(()=>S)),n.export(r,"afterMain",(()=>w)),n.export(r,"beforeWrite",(()=>E)),n.export(r,"write",(()=>x)),n.export(r,"afterWrite",(()=>k)),n.export(r,"modifierPhases",(()=>L));var i="top",o="bottom",s="right",a="left",l="auto",c=[i,o,s,a],u="start",f="end",d="clippingParents",h="viewport",p="popper",v="reference",m=c.reduce((function(e,t){return e.concat([t+"-"+u,t+"-"+f])}),[]),_=[].concat(c,[l]).reduce((function(e,t){return e.concat([t,t+"-"+u,t+"-"+f])}),[]),g="beforeRead",y="read",b="afterRead",C="beforeMain",S="main",w="afterMain",E="beforeWrite",x="write",k="afterWrite",L=[g,y,b,C,S,w,E,x,k]},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],bPQhA:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./getBoundingClientRect.js"),o=n.interopDefault(i);r.default=function(e){var t=(0,o.default)(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}},{"./getBoundingClientRect.js":"5HhdB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"5HhdB":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("./instanceOf.js"),i=e("../utils/math.js");r.default=function(e,t){void 0===t&&(t=!1);var r=e.getBoundingClientRect(),o=1,s=1;if((0,n.isHTMLElement)(e)&&t){var a=e.offsetHeight,l=e.offsetWidth;l>0&&(o=(0,i.round)(r.width)/l||1),a>0&&(s=(0,i.round)(r.height)/a||1)}return{width:r.width/o,height:r.height/s,top:r.top/s,right:r.right/o,bottom:r.bottom/s,left:r.left/o,x:r.left/o,y:r.top/s}}},{"./instanceOf.js":"bvORQ","../utils/math.js":"8Nztm","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],bvORQ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"isElement",(()=>s)),n.export(r,"isHTMLElement",(()=>a)),n.export(r,"isShadowRoot",(()=>l));var i=e("./getWindow.js"),o=n.interopDefault(i);function s(e){return e instanceof(0,o.default)(e).Element||e instanceof Element}function a(e){return e instanceof(0,o.default)(e).HTMLElement||e instanceof HTMLElement}function l(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,o.default)(e).ShadowRoot||e instanceof ShadowRoot)}},{"./getWindow.js":"68VSv","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"68VSv":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"8Nztm":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"max",(()=>i)),n.export(r,"min",(()=>o)),n.export(r,"round",(()=>s));var i=Math.max,o=Math.min,s=Math.round},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],cJNsg:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("./instanceOf.js");r.default=function(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&(0,n.isShadowRoot)(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}},{"./instanceOf.js":"bvORQ","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],DkJyb:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./getWindow.js"),o=n.interopDefault(i),s=e("./getNodeName.js"),a=n.interopDefault(s),l=e("./getComputedStyle.js"),c=n.interopDefault(l),u=e("./instanceOf.js"),f=e("./isTableElement.js"),d=n.interopDefault(f),h=e("./getParentNode.js"),p=n.interopDefault(h);function v(e){return(0,u.isHTMLElement)(e)&&"fixed"!==(0,c.default)(e).position?e.offsetParent:null}r.default=function(e){for(var t=(0,o.default)(e),r=v(e);r&&(0,d.default)(r)&&"static"===(0,c.default)(r).position;)r=v(r);return r&&("html"===(0,a.default)(r)||"body"===(0,a.default)(r)&&"static"===(0,c.default)(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&(0,u.isHTMLElement)(e)&&"fixed"===(0,c.default)(e).position)return null;var r=(0,p.default)(e);for((0,u.isShadowRoot)(r)&&(r=r.host);(0,u.isHTMLElement)(r)&&["html","body"].indexOf((0,a.default)(r))<0;){var n=(0,c.default)(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}},{"./getWindow.js":"68VSv","./getNodeName.js":"7uvPA","./getComputedStyle.js":"isGbO","./instanceOf.js":"bvORQ","./isTableElement.js":"eMhkJ","./getParentNode.js":"7GONj","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"7uvPA":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e){return e?(e.nodeName||"").toLowerCase():null}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],isGbO:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./getWindow.js"),o=n.interopDefault(i);r.default=function(e){return(0,o.default)(e).getComputedStyle(e)}},{"./getWindow.js":"68VSv","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],eMhkJ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./getNodeName.js"),o=n.interopDefault(i);r.default=function(e){return["table","td","th"].indexOf((0,o.default)(e))>=0}},{"./getNodeName.js":"7uvPA","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"7GONj":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./getNodeName.js"),o=n.interopDefault(i),s=e("./getDocumentElement.js"),a=n.interopDefault(s),l=e("./instanceOf.js");r.default=function(e){return"html"===(0,o.default)(e)?e:e.assignedSlot||e.parentNode||((0,l.isShadowRoot)(e)?e.host:null)||(0,a.default)(e)}},{"./getNodeName.js":"7uvPA","./getDocumentElement.js":"gpEAW","./instanceOf.js":"bvORQ","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],gpEAW:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("./instanceOf.js");r.default=function(e){return(((0,n.isElement)(e)?e.ownerDocument:e.document)||window.document).documentElement}},{"./instanceOf.js":"bvORQ","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],kFEIr:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],d8KYI:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"within",(()=>o)),n.export(r,"withinMaxClamp",(()=>s));var i=e("./math.js");function o(e,t,r){return(0,i.max)(e,(0,i.min)(t,r))}function s(e,t,r){var n=o(e,t,r);return n>r?r:n}},{"./math.js":"8Nztm","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"9EY02":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./getFreshSideObject.js"),o=n.interopDefault(i);r.default=function(e){return Object.assign({},(0,o.default)(),e)}},{"./getFreshSideObject.js":"a2Bt5","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],a2Bt5:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(){return{top:0,right:0,bottom:0,left:0}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],kwO6l:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],hOivo:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"mapToStyles",(()=>y));var i=e("../enums.js"),o=e("../dom-utils/getOffsetParent.js"),s=n.interopDefault(o),a=e("../dom-utils/getWindow.js"),l=n.interopDefault(a),c=e("../dom-utils/getDocumentElement.js"),u=n.interopDefault(c),f=e("../dom-utils/getComputedStyle.js"),d=n.interopDefault(f),h=e("../utils/getBasePlacement.js"),p=n.interopDefault(h),v=e("../utils/getVariation.js"),m=n.interopDefault(v),_=e("../utils/math.js"),g={top:"auto",right:"auto",bottom:"auto",left:"auto"};function y(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,c=e.offsets,f=e.position,h=e.gpuAcceleration,p=e.adaptive,v=e.roundOffsets,m=e.isFixed,y=c.x,b=void 0===y?0:y,C=c.y,S=void 0===C?0:C,w="function"==typeof v?v({x:b,y:S}):{x:b,y:S};b=w.x,S=w.y;var E=c.hasOwnProperty("x"),x=c.hasOwnProperty("y"),k=i.left,L=i.top,D=window;if(p){var j=(0,s.default)(r),O="clientHeight",M="clientWidth";if(j===(0,l.default)(r)&&(j=(0,u.default)(r),"static"!==(0,d.default)(j).position&&"absolute"===f&&(O="scrollHeight",M="scrollWidth")),o===i.top||(o===i.left||o===i.right)&&a===i.end)L=i.bottom,S-=(m&&j===D&&D.visualViewport?D.visualViewport.height:j[O])-n.height,S*=h?1:-1;if(o===i.left||(o===i.top||o===i.bottom)&&a===i.end)k=i.right,b-=(m&&j===D&&D.visualViewport?D.visualViewport.width:j[M])-n.width,b*=h?1:-1}var T,R=Object.assign({position:f},p&&g),P=!0===v?function(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:(0,_.round)(t*n)/n||0,y:(0,_.round)(r*n)/n||0}}({x:b,y:S}):{x:b,y:S};return b=P.x,S=P.y,h?Object.assign({},R,((T={})[L]=x?"0":"",T[k]=E?"0":"",T.transform=(D.devicePixelRatio||1)<=1?"translate("+b+"px, "+S+"px)":"translate3d("+b+"px, "+S+"px, 0)",T)):Object.assign({},R,((t={})[L]=x?S+"px":"",t[k]=E?b+"px":"",t.transform="",t))}r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=void 0===n||n,o=r.adaptive,s=void 0===o||o,a=r.roundOffsets,l=void 0===a||a,c={placement:(0,p.default)(t.placement),variation:(0,m.default)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,y(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,y(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}}},{"../enums.js":"gQYch","../dom-utils/getOffsetParent.js":"DkJyb","../dom-utils/getWindow.js":"68VSv","../dom-utils/getDocumentElement.js":"gpEAW","../dom-utils/getComputedStyle.js":"isGbO","../utils/getBasePlacement.js":"fxqpB","../utils/getVariation.js":"5yyCp","../utils/math.js":"8Nztm","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"5yyCp":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e){return e.split("-")[1]}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],lrB3I:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("../dom-utils/getWindow.js"),o=n.interopDefault(i),s={passive:!0};r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=void 0===i||i,l=n.resize,c=void 0===l||l,u=(0,o.default)(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach((function(e){e.addEventListener("scroll",r.update,s)})),c&&u.addEventListener("resize",r.update,s),function(){a&&f.forEach((function(e){e.removeEventListener("scroll",r.update,s)})),c&&u.removeEventListener("resize",r.update,s)}},data:{}}},{"../dom-utils/getWindow.js":"68VSv","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],adAeS:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("../utils/getOppositePlacement.js"),o=n.interopDefault(i),s=e("../utils/getBasePlacement.js"),a=n.interopDefault(s),l=e("../utils/getOppositeVariationPlacement.js"),c=n.interopDefault(l),u=e("../utils/detectOverflow.js"),f=n.interopDefault(u),d=e("../utils/computeAutoPlacement.js"),h=n.interopDefault(d),p=e("../enums.js"),v=e("../utils/getVariation.js"),m=n.interopDefault(v);r.default={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,s=void 0===i||i,l=r.altAxis,u=void 0===l||l,d=r.fallbackPlacements,v=r.padding,_=r.boundary,g=r.rootBoundary,y=r.altBoundary,b=r.flipVariations,C=void 0===b||b,S=r.allowedAutoPlacements,w=t.options.placement,E=(0,a.default)(w),x=d||(E===w||!C?[(0,o.default)(w)]:function(e){if((0,a.default)(e)===p.auto)return[];var t=(0,o.default)(e);return[(0,c.default)(e),t,(0,c.default)(t)]}(w)),k=[w].concat(x).reduce((function(e,r){return e.concat((0,a.default)(r)===p.auto?(0,h.default)(t,{placement:r,boundary:_,rootBoundary:g,padding:v,flipVariations:C,allowedAutoPlacements:S}):r)}),[]),L=t.rects.reference,D=t.rects.popper,j=new Map,O=!0,M=k[0],T=0;T<k.length;T++){var R=k[T],P=(0,a.default)(R),A=(0,m.default)(R)===p.start,B=[p.top,p.bottom].indexOf(P)>=0,I=B?"width":"height",N=(0,f.default)(t,{placement:R,boundary:_,rootBoundary:g,altBoundary:y,padding:v}),F=B?A?p.right:p.left:A?p.bottom:p.top;L[I]>D[I]&&(F=(0,o.default)(F));var H=(0,o.default)(F),W=[];if(s&&W.push(N[P]<=0),u&&W.push(N[F]<=0,N[H]<=0),W.every((function(e){return e}))){M=R,O=!1;break}j.set(R,W)}if(O)for(var U=function(e){var t=k.find((function(t){var r=j.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return M=t,"break"},q=C?3:1;q>0;q--){if("break"===U(q))break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},{"../utils/getOppositePlacement.js":"1U5so","../utils/getBasePlacement.js":"fxqpB","../utils/getOppositeVariationPlacement.js":"lfhnt","../utils/detectOverflow.js":"cfsnv","../utils/computeAutoPlacement.js":"bjzQ9","../enums.js":"gQYch","../utils/getVariation.js":"5yyCp","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"1U5so":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n={left:"right",right:"left",bottom:"top",top:"bottom"};r.default=function(e){return e.replace(/left|right|bottom|top/g,(function(e){return n[e]}))}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],lfhnt:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n={start:"end",end:"start"};r.default=function(e){return e.replace(/start|end/g,(function(e){return n[e]}))}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],cfsnv:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("../dom-utils/getClippingRect.js"),o=n.interopDefault(i),s=e("../dom-utils/getDocumentElement.js"),a=n.interopDefault(s),l=e("../dom-utils/getBoundingClientRect.js"),c=n.interopDefault(l),u=e("./computeOffsets.js"),f=n.interopDefault(u),d=e("./rectToClientRect.js"),h=n.interopDefault(d),p=e("../enums.js"),v=e("../dom-utils/instanceOf.js"),m=e("./mergePaddingObject.js"),_=n.interopDefault(m),g=e("./expandToHashMap.js"),y=n.interopDefault(g);r.default=function(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=void 0===n?e.placement:n,s=r.boundary,l=void 0===s?p.clippingParents:s,u=r.rootBoundary,d=void 0===u?p.viewport:u,m=r.elementContext,g=void 0===m?p.popper:m,b=r.altBoundary,C=void 0!==b&&b,S=r.padding,w=void 0===S?0:S,E=(0,_.default)("number"!=typeof w?w:(0,y.default)(w,p.basePlacements)),x=g===p.popper?p.reference:p.popper,k=e.rects.popper,L=e.elements[C?x:g],D=(0,o.default)((0,v.isElement)(L)?L:L.contextElement||(0,a.default)(e.elements.popper),l,d),j=(0,c.default)(e.elements.reference),O=(0,f.default)({reference:j,element:k,strategy:"absolute",placement:i}),M=(0,h.default)(Object.assign({},k,O)),T=g===p.popper?M:j,R={top:D.top-T.top+E.top,bottom:T.bottom-D.bottom+E.bottom,left:D.left-T.left+E.left,right:T.right-D.right+E.right},P=e.modifiersData.offset;if(g===p.popper&&P){var A=P[i];Object.keys(R).forEach((function(e){var t=[p.right,p.bottom].indexOf(e)>=0?1:-1,r=[p.top,p.bottom].indexOf(e)>=0?"y":"x";R[e]+=A[r]*t}))}return R}},{"../dom-utils/getClippingRect.js":"gREUR","../dom-utils/getDocumentElement.js":"gpEAW","../dom-utils/getBoundingClientRect.js":"5HhdB","./computeOffsets.js":"2ZQor","./rectToClientRect.js":"1j9Yv","../enums.js":"gQYch","../dom-utils/instanceOf.js":"bvORQ","./mergePaddingObject.js":"9EY02","./expandToHashMap.js":"kwO6l","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],gREUR:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("../enums.js"),o=e("./getViewportRect.js"),s=n.interopDefault(o),a=e("./getDocumentRect.js"),l=n.interopDefault(a),c=e("./listScrollParents.js"),u=n.interopDefault(c),f=e("./getOffsetParent.js"),d=n.interopDefault(f),h=e("./getDocumentElement.js"),p=n.interopDefault(h),v=e("./getComputedStyle.js"),m=n.interopDefault(v),_=e("./instanceOf.js"),g=e("./getBoundingClientRect.js"),y=n.interopDefault(g),b=e("./getParentNode.js"),C=n.interopDefault(b),S=e("./contains.js"),w=n.interopDefault(S),E=e("./getNodeName.js"),x=n.interopDefault(E),k=e("../utils/rectToClientRect.js"),L=n.interopDefault(k),D=e("../utils/math.js");function j(e,t){return t===i.viewport?(0,L.default)((0,s.default)(e)):(0,_.isElement)(t)?function(e){var t=(0,y.default)(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):(0,L.default)((0,l.default)((0,p.default)(e)))}r.default=function(e,t,r){var n="clippingParents"===t?function(e){var t=(0,u.default)((0,C.default)(e)),r=["absolute","fixed"].indexOf((0,m.default)(e).position)>=0&&(0,_.isHTMLElement)(e)?(0,d.default)(e):e;return(0,_.isElement)(r)?t.filter((function(e){return(0,_.isElement)(e)&&(0,w.default)(e,r)&&"body"!==(0,x.default)(e)})):[]}(e):[].concat(t),i=[].concat(n,[r]),o=i[0],s=i.reduce((function(t,r){var n=j(e,r);return t.top=(0,D.max)(n.top,t.top),t.right=(0,D.min)(n.right,t.right),t.bottom=(0,D.min)(n.bottom,t.bottom),t.left=(0,D.max)(n.left,t.left),t}),j(e,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}},{"../enums.js":"gQYch","./getViewportRect.js":"dC4iz","./getDocumentRect.js":"dzaKr","./listScrollParents.js":"hprGa","./getOffsetParent.js":"DkJyb","./getDocumentElement.js":"gpEAW","./getComputedStyle.js":"isGbO","./instanceOf.js":"bvORQ","./getBoundingClientRect.js":"5HhdB","./getParentNode.js":"7GONj","./contains.js":"cJNsg","./getNodeName.js":"7uvPA","../utils/rectToClientRect.js":"1j9Yv","../utils/math.js":"8Nztm","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],dC4iz:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./getWindow.js"),o=n.interopDefault(i),s=e("./getDocumentElement.js"),a=n.interopDefault(s),l=e("./getWindowScrollBarX.js"),c=n.interopDefault(l);r.default=function(e){var t=(0,o.default)(e),r=(0,a.default)(e),n=t.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,u=0;return n&&(i=n.width,s=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=n.offsetLeft,u=n.offsetTop)),{width:i,height:s,x:l+(0,c.default)(e),y:u}}},{"./getWindow.js":"68VSv","./getDocumentElement.js":"gpEAW","./getWindowScrollBarX.js":"gTl2j","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],gTl2j:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./getBoundingClientRect.js"),o=n.interopDefault(i),s=e("./getDocumentElement.js"),a=n.interopDefault(s),l=e("./getWindowScroll.js"),c=n.interopDefault(l);r.default=function(e){return(0,o.default)((0,a.default)(e)).left+(0,c.default)(e).scrollLeft}},{"./getBoundingClientRect.js":"5HhdB","./getDocumentElement.js":"gpEAW","./getWindowScroll.js":"hBcQO","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],hBcQO:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./getWindow.js"),o=n.interopDefault(i);r.default=function(e){var t=(0,o.default)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},{"./getWindow.js":"68VSv","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],dzaKr:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./getDocumentElement.js"),o=n.interopDefault(i),s=e("./getComputedStyle.js"),a=n.interopDefault(s),l=e("./getWindowScrollBarX.js"),c=n.interopDefault(l),u=e("./getWindowScroll.js"),f=n.interopDefault(u),d=e("../utils/math.js");r.default=function(e){var t,r=(0,o.default)(e),n=(0,f.default)(e),i=null==(t=e.ownerDocument)?void 0:t.body,s=(0,d.max)(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=(0,d.max)(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-n.scrollLeft+(0,c.default)(e),h=-n.scrollTop;return"rtl"===(0,a.default)(i||r).direction&&(u+=(0,d.max)(r.clientWidth,i?i.clientWidth:0)-s),{width:s,height:l,x:u,y:h}}},{"./getDocumentElement.js":"gpEAW","./getComputedStyle.js":"isGbO","./getWindowScrollBarX.js":"gTl2j","./getWindowScroll.js":"hBcQO","../utils/math.js":"8Nztm","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],hprGa:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./getScrollParent.js"),o=n.interopDefault(i),s=e("./getParentNode.js"),a=n.interopDefault(s),l=e("./getWindow.js"),c=n.interopDefault(l),u=e("./isScrollParent.js"),f=n.interopDefault(u);r.default=function e(t,r){var n;void 0===r&&(r=[]);var i=(0,o.default)(t),s=i===(null==(n=t.ownerDocument)?void 0:n.body),l=(0,c.default)(i),u=s?[l].concat(l.visualViewport||[],(0,f.default)(i)?i:[]):i,d=r.concat(u);return s?d:d.concat(e((0,a.default)(u)))}},{"./getScrollParent.js":"gzkVw","./getParentNode.js":"7GONj","./getWindow.js":"68VSv","./isScrollParent.js":"ka1RM","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],gzkVw:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./getParentNode.js"),o=n.interopDefault(i),s=e("./isScrollParent.js"),a=n.interopDefault(s),l=e("./getNodeName.js"),c=n.interopDefault(l),u=e("./instanceOf.js");r.default=function e(t){return["html","body","#document"].indexOf((0,c.default)(t))>=0?t.ownerDocument.body:(0,u.isHTMLElement)(t)&&(0,a.default)(t)?t:e((0,o.default)(t))}},{"./getParentNode.js":"7GONj","./isScrollParent.js":"ka1RM","./getNodeName.js":"7uvPA","./instanceOf.js":"bvORQ","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],ka1RM:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./getComputedStyle.js"),o=n.interopDefault(i);r.default=function(e){var t=(0,o.default)(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}},{"./getComputedStyle.js":"isGbO","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"1j9Yv":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"2ZQor":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./getBasePlacement.js"),o=n.interopDefault(i),s=e("./getVariation.js"),a=n.interopDefault(s),l=e("./getMainAxisFromPlacement.js"),c=n.interopDefault(l),u=e("../enums.js");r.default=function(e){var t,r=e.reference,n=e.element,i=e.placement,s=i?(0,o.default)(i):null,l=i?(0,a.default)(i):null,f=r.x+r.width/2-n.width/2,d=r.y+r.height/2-n.height/2;switch(s){case u.top:t={x:f,y:r.y-n.height};break;case u.bottom:t={x:f,y:r.y+r.height};break;case u.right:t={x:r.x+r.width,y:d};break;case u.left:t={x:r.x-n.width,y:d};break;default:t={x:r.x,y:r.y}}var h=s?(0,c.default)(s):null;if(null!=h){var p="y"===h?"height":"width";switch(l){case u.start:t[h]=t[h]-(r[p]/2-n[p]/2);break;case u.end:t[h]=t[h]+(r[p]/2-n[p]/2)}}return t}},{"./getBasePlacement.js":"fxqpB","./getVariation.js":"5yyCp","./getMainAxisFromPlacement.js":"kFEIr","../enums.js":"gQYch","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],bjzQ9:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./getVariation.js"),o=n.interopDefault(i),s=e("../enums.js"),a=e("./detectOverflow.js"),l=n.interopDefault(a),c=e("./getBasePlacement.js"),u=n.interopDefault(c);r.default=function(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,c=r.padding,f=r.flipVariations,d=r.allowedAutoPlacements,h=void 0===d?s.placements:d,p=(0,o.default)(n),v=p?f?s.variationPlacements:s.variationPlacements.filter((function(e){return(0,o.default)(e)===p})):s.basePlacements,m=v.filter((function(e){return h.indexOf(e)>=0}));0===m.length&&(m=v);var _=m.reduce((function(t,r){return t[r]=(0,l.default)(e,{placement:r,boundary:i,rootBoundary:a,padding:c})[(0,u.default)(r)],t}),{});return Object.keys(_).sort((function(e,t){return _[e]-_[t]}))}},{"./getVariation.js":"5yyCp","../enums.js":"gQYch","./detectOverflow.js":"cfsnv","./getBasePlacement.js":"fxqpB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],hDdO7:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("../enums.js"),o=e("../utils/detectOverflow.js"),s=n.interopDefault(o);function a(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function l(e){return[i.top,i.right,i.bottom,i.left].some((function(t){return e[t]>=0}))}r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,c=(0,s.default)(t,{elementContext:"reference"}),u=(0,s.default)(t,{altBoundary:!0}),f=a(c,n),d=a(u,i,o),h=l(f),p=l(d);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:d,isReferenceHidden:h,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":p})}}},{"../enums.js":"gQYch","../utils/detectOverflow.js":"cfsnv","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"29I5G":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"distanceAndSkiddingToXY",(()=>a));var i=e("../utils/getBasePlacement.js"),o=n.interopDefault(i),s=e("../enums.js");function a(e,t,r){var n=(0,o.default)(e),i=[s.left,s.top].indexOf(n)>=0?-1:1,a="function"==typeof r?r(Object.assign({},t,{placement:e})):r,l=a[0],c=a[1];return l=l||0,c=(c||0)*i,[s.left,s.right].indexOf(n)>=0?{x:c,y:l}:{x:l,y:c}}r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=void 0===i?[0,0]:i,l=s.placements.reduce((function(e,r){return e[r]=a(r,t.rects,o),e}),{}),c=l[t.placement],u=c.x,f=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=f),t.modifiersData[n]=l}}},{"../utils/getBasePlacement.js":"fxqpB","../enums.js":"gQYch","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"1pTxN":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("../utils/computeOffsets.js"),o=n.interopDefault(i);r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=(0,o.default)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}}},{"../utils/computeOffsets.js":"2ZQor","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"3EGvu":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("../enums.js"),o=e("../utils/getBasePlacement.js"),s=n.interopDefault(o),a=e("../utils/getMainAxisFromPlacement.js"),l=n.interopDefault(a),c=e("../utils/getAltAxis.js"),u=n.interopDefault(c),f=e("../utils/within.js"),d=e("../dom-utils/getLayoutRect.js"),h=n.interopDefault(d),p=e("../dom-utils/getOffsetParent.js"),v=n.interopDefault(p),m=e("../utils/detectOverflow.js"),_=n.interopDefault(m),g=e("../utils/getVariation.js"),y=n.interopDefault(g),b=e("../utils/getFreshSideObject.js"),C=n.interopDefault(b),S=e("../utils/math.js");r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=void 0===o||o,c=r.altAxis,d=void 0!==c&&c,p=r.boundary,m=r.rootBoundary,g=r.altBoundary,b=r.padding,w=r.tether,E=void 0===w||w,x=r.tetherOffset,k=void 0===x?0:x,L=(0,_.default)(t,{boundary:p,rootBoundary:m,padding:b,altBoundary:g}),D=(0,s.default)(t.placement),j=(0,y.default)(t.placement),O=!j,M=(0,l.default)(D),T=(0,u.default)(M),R=t.modifiersData.popperOffsets,P=t.rects.reference,A=t.rects.popper,B="function"==typeof k?k(Object.assign({},t.rects,{placement:t.placement})):k,I="number"==typeof B?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(R){if(a){var H,W="y"===M?i.top:i.left,U="y"===M?i.bottom:i.right,q="y"===M?"height":"width",z=R[M],V=z+L[W],Z=z-L[U],G=E?-A[q]/2:0,K=j===i.start?P[q]:A[q],Y=j===i.start?-A[q]:-P[q],X=t.elements.arrow,Q=E&&X?(0,h.default)(X):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,C.default)(),$=J[W],ee=J[U],te=(0,f.within)(0,P[q],Q[q]),re=O?P[q]/2-G-te-$-I.mainAxis:K-te-$-I.mainAxis,ne=O?-P[q]/2+G+te+ee+I.mainAxis:Y+te+ee+I.mainAxis,ie=t.elements.arrow&&(0,v.default)(t.elements.arrow),oe=ie?"y"===M?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(H=null==N?void 0:N[M])?H:0,ae=z+re-se-oe,le=z+ne-se,ce=(0,f.within)(E?(0,S.min)(V,ae):V,z,E?(0,S.max)(Z,le):Z);R[M]=ce,F[M]=ce-z}if(d){var ue,fe="x"===M?i.top:i.left,de="x"===M?i.bottom:i.right,he=R[T],pe="y"===T?"height":"width",ve=he+L[fe],me=he-L[de],_e=-1!==[i.top,i.left].indexOf(D),ge=null!=(ue=null==N?void 0:N[T])?ue:0,ye=_e?ve:he-P[pe]-A[pe]-ge+I.altAxis,be=_e?he+P[pe]+A[pe]-ge-I.altAxis:me,Ce=E&&_e?(0,f.withinMaxClamp)(ye,he,be):(0,f.within)(E?ye:ve,he,E?be:me);R[T]=Ce,F[T]=Ce-he}t.modifiersData[n]=F}},requiresIfExists:["offset"]}},{"../enums.js":"gQYch","../utils/getBasePlacement.js":"fxqpB","../utils/getMainAxisFromPlacement.js":"kFEIr","../utils/getAltAxis.js":"7uOfY","../utils/within.js":"d8KYI","../dom-utils/getLayoutRect.js":"bPQhA","../dom-utils/getOffsetParent.js":"DkJyb","../utils/detectOverflow.js":"cfsnv","../utils/getVariation.js":"5yyCp","../utils/getFreshSideObject.js":"a2Bt5","../utils/math.js":"8Nztm","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"7uOfY":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e){return"x"===e?"y":"x"}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],k6IaF:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"createPopper",(()=>i.createPopper)),n.export(r,"popperGenerator",(()=>i.popperGenerator)),n.export(r,"detectOverflow",(()=>i.detectOverflow));var i=e("./createPopper.js")},{"./createPopper.js":"hUXUs","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],hUXUs:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"popperGenerator",(()=>L)),n.export(r,"createPopper",(()=>D)),n.export(r,"detectOverflow",(()=>w.default));var i=e("./dom-utils/getCompositeRect.js"),o=n.interopDefault(i),s=e("./dom-utils/getLayoutRect.js"),a=n.interopDefault(s),l=e("./dom-utils/listScrollParents.js"),c=n.interopDefault(l),u=e("./dom-utils/getOffsetParent.js"),f=n.interopDefault(u),d=e("./dom-utils/getComputedStyle.js"),h=(n.interopDefault(d),e("./utils/orderModifiers.js")),p=n.interopDefault(h),v=e("./utils/debounce.js"),m=n.interopDefault(v),_=e("./utils/validateModifiers.js"),g=(n.interopDefault(_),e("./utils/uniqueBy.js")),y=(n.interopDefault(g),e("./utils/getBasePlacement.js")),b=(n.interopDefault(y),e("./utils/mergeByName.js")),C=n.interopDefault(b),S=e("./utils/detectOverflow.js"),w=n.interopDefault(S),E=e("./dom-utils/instanceOf.js"),x=(e("./enums.js"),{placement:"bottom",modifiers:[],strategy:"absolute"});function k(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function L(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,i=t.defaultOptions,s=void 0===i?x:i;return function(e,t,r){void 0===r&&(r=s);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},x,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,d={state:i,setOptions:function(r){var o="function"==typeof r?r(i.options):r;h(),i.options=Object.assign({},s,i.options,o),i.scrollParents={reference:(0,E.isElement)(e)?(0,c.default)(e):e.contextElement?(0,c.default)(e.contextElement):[],popper:(0,c.default)(t)};var a=(0,p.default)((0,C.default)([].concat(n,i.options.modifiers)));return i.orderedModifiers=a.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var s=o({state:i,name:t,instance:d,options:n}),a=function(){};l.push(s||a)}})),d.update()},forceUpdate:function(){if(!u){var e=i.elements,t=e.reference,r=e.popper;if(k(t,r)){i.rects={reference:(0,o.default)(t,(0,f.default)(r),"fixed"===i.options.strategy),popper:(0,a.default)(r)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<i.orderedModifiers.length;n++)if(!0!==i.reset){var s=i.orderedModifiers[n],l=s.fn,c=s.options,h=void 0===c?{}:c,p=s.name;"function"==typeof l&&(i=l({state:i,options:h,name:p,instance:d})||i)}else i.reset=!1,n=-1}}},update:(0,m.default)((function(){return new Promise((function(e){d.forceUpdate(),e(i)}))})),destroy:function(){h(),u=!0}};if(!k(e,t))return d;function h(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(r).then((function(e){!u&&r.onFirstUpdate&&r.onFirstUpdate(e)})),d}}var D=L()},{"./dom-utils/getCompositeRect.js":"lc9Ow","./dom-utils/getLayoutRect.js":"bPQhA","./dom-utils/listScrollParents.js":"hprGa","./dom-utils/getOffsetParent.js":"DkJyb","./dom-utils/getComputedStyle.js":"isGbO","./utils/orderModifiers.js":"9hDQQ","./utils/debounce.js":"laL6Z","./utils/validateModifiers.js":"d7ggN","./utils/uniqueBy.js":"1MVJV","./utils/getBasePlacement.js":"fxqpB","./utils/mergeByName.js":"3ngIb","./utils/detectOverflow.js":"cfsnv","./dom-utils/instanceOf.js":"bvORQ","./enums.js":"gQYch","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],lc9Ow:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./getBoundingClientRect.js"),o=n.interopDefault(i),s=e("./getNodeScroll.js"),a=n.interopDefault(s),l=e("./getNodeName.js"),c=n.interopDefault(l),u=e("./instanceOf.js"),f=e("./getWindowScrollBarX.js"),d=n.interopDefault(f),h=e("./getDocumentElement.js"),p=n.interopDefault(h),v=e("./isScrollParent.js"),m=n.interopDefault(v),_=e("../utils/math.js");r.default=function(e,t,r){void 0===r&&(r=!1);var n=(0,u.isHTMLElement)(t),i=(0,u.isHTMLElement)(t)&&function(e){var t=e.getBoundingClientRect(),r=(0,_.round)(t.width)/e.offsetWidth||1,n=(0,_.round)(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=(0,p.default)(t),l=(0,o.default)(e,i),f={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(n||!n&&!r)&&(("body"!==(0,c.default)(t)||(0,m.default)(s))&&(f=(0,a.default)(t)),(0,u.isHTMLElement)(t)?((h=(0,o.default)(t,!0)).x+=t.clientLeft,h.y+=t.clientTop):s&&(h.x=(0,d.default)(s))),{x:l.left+f.scrollLeft-h.x,y:l.top+f.scrollTop-h.y,width:l.width,height:l.height}}},{"./getBoundingClientRect.js":"5HhdB","./getNodeScroll.js":"95URn","./getNodeName.js":"7uvPA","./instanceOf.js":"bvORQ","./getWindowScrollBarX.js":"gTl2j","./getDocumentElement.js":"gpEAW","./isScrollParent.js":"ka1RM","../utils/math.js":"8Nztm","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"95URn":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./getWindowScroll.js"),o=n.interopDefault(i),s=e("./getWindow.js"),a=n.interopDefault(s),l=e("./instanceOf.js"),c=e("./getHTMLElementScroll.js"),u=n.interopDefault(c);r.default=function(e){return e!==(0,a.default)(e)&&(0,l.isHTMLElement)(e)?(0,u.default)(e):(0,o.default)(e)}},{"./getWindowScroll.js":"hBcQO","./getWindow.js":"68VSv","./instanceOf.js":"bvORQ","./getHTMLElementScroll.js":"k9h6g","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],k9h6g:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"9hDQQ":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("../enums.js");function i(e){var t=new Map,r=new Set,n=[];function i(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&i(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||i(e)})),n}r.default=function(e){var t=i(e);return n.modifierPhases.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}},{"../enums.js":"gQYch","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],laL6Z:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],d7ggN:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./format.js"),o=n.interopDefault(i),s=e("../enums.js"),a='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',l=["name","enabled","phase","fn","effect","requires","options"];r.default=function(e){e.forEach((function(t){[].concat(Object.keys(t),l).filter((function(e,t,r){return r.indexOf(e)===t})).forEach((function(r){switch(r){case"name":"string"!=typeof t.name&&console.error((0,o.default)(a,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error((0,o.default)(a,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":s.modifierPhases.indexOf(t.phase)<0&&console.error((0,o.default)(a,t.name,'"phase"',"either "+s.modifierPhases.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error((0,o.default)(a,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error((0,o.default)(a,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error((0,o.default)(a,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error((0,o.default)(a,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+l.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+r+'" was provided.')}t.requires&&t.requires.forEach((function(r){null==e.find((function(e){return e.name===r}))&&console.error((0,o.default)('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),r,r))}))}))}))}},{"./format.js":"iWBm6","../enums.js":"gQYch","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],iWBm6:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return[].concat(r).reduce((function(e,t){return e.replace(/%s/,t)}),e)}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"1MVJV":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e,t){var r=new Set;return e.filter((function(e){var n=t(e);if(!r.has(n))return r.add(n),!0}))}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"3ngIb":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e){var t=e.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],fXs3k:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("dom-helpers/contains"),o=n.interopDefault(i),s=e("dom-helpers/listen"),a=n.interopDefault(s),l=e("react"),c=e("@restart/hooks/useEventCallback"),u=n.interopDefault(c),f=e("warning"),d=n.interopDefault(f),h=e("./ownerDocument"),p=n.interopDefault(h),v=function(){};var m=function(e){return e&&("current"in e?e.current:e)};r.default=function(e,t,r){var n=void 0===r?{}:r,i=n.disabled,s=n.clickTrigger,c=void 0===s?"click":s,f=(0,l.useRef)(!1),h=t||v,_=(0,l.useCallback)((function(t){var r,n,i=m(e);(0,d.default)(!!i,"RootClose captured a close event but does not have a ref to compare it to. useRootClose(), should be passed a ref that resolves to a DOM node"),f.current=!(i&&(n=t,!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey))&&function(e){return 0===e.button}(t)&&!(0,o.default)(i,null!=(r=null==t.composedPath?void 0:t.composedPath()[0])?r:t.target))}),[e]),g=(0,u.default)((function(e){f.current||h(e)})),y=(0,u.default)((function(e){27===e.keyCode&&h(e)}));(0,l.useEffect)((function(){if(!i&&null!=e){var t=window.event,r=(0,p.default)(m(e)),n=(0,a.default)(r,c,_,!0),o=(0,a.default)(r,c,(function(e){e!==t?g(e):t=void 0})),s=(0,a.default)(r,"keyup",(function(e){e!==t?y(e):t=void 0})),l=[];return"ontouchstart"in r.documentElement&&(l=[].slice.call(r.body.children).map((function(e){return(0,a.default)(e,"mousemove",v)}))),function(){n(),o(),s(),l.forEach((function(e){return e()}))}}}),[e,i,c,_,g,y])}},{"dom-helpers/contains":"czE8B","dom-helpers/listen":"7ybRG",react:"hCMiB","@restart/hooks/useEventCallback":"5SvjJ",warning:"hOD4Y","./ownerDocument":"fjZtd","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],czE8B:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],hOD4Y:[function(e,t,r){"use strict";var n=function(){};t.exports=n},{}],fjZtd:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("dom-helpers/ownerDocument"),o=n.interopDefault(i),s=e("./safeFindDOMNode"),a=n.interopDefault(s);r.default=function(e){return(0,o.default)((0,a.default)(e))}},{"dom-helpers/ownerDocument":"5vGq4","./safeFindDOMNode":"5fzl6","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"5fzl6":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("react-dom"),o=n.interopDefault(i);r.default=function(e){return e&&"setState"in e?o.default.findDOMNode(e):null!=e?e:null}},{"react-dom":"827j0","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],hiug1:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"toModifierMap",(()=>s)),n.export(r,"toModifierArray",(()=>a));var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i);function s(e){var t={};return Array.isArray(e)?(null==e||e.forEach((function(e){t[e.name]=e})),t):e||t}function a(e){return void 0===e&&(e={}),Array.isArray(e)?e:Object.keys(e).map((function(t){return e[t].name=t,e[t]}))}r.default=function(e){var t,r,n,i,l=e.enabled,c=e.enableEvents,u=e.placement,f=e.flip,d=e.offset,h=e.fixed,p=e.containerPadding,v=e.arrowElement,m=e.popperConfig,_=void 0===m?{}:m,g=s(_.modifiers);return(0,o.default)({},_,{placement:u,enabled:l,strategy:h?"fixed":_.strategy,modifiers:a((0,o.default)({},g,{eventListeners:{enabled:c},preventOverflow:(0,o.default)({},g.preventOverflow,{options:p?(0,o.default)({padding:p},null==(t=g.preventOverflow)?void 0:t.options):null==(r=g.preventOverflow)?void 0:r.options}),offset:{options:(0,o.default)({offset:d},null==(n=g.offset)?void 0:n.options)},arrow:(0,o.default)({},g.arrow,{enabled:!!v,options:(0,o.default)({},null==(i=g.arrow)?void 0:i.options,{element:v})}),flip:(0,o.default)({enabled:!!f},g.flip)}))})}},{"@babel/runtime/helpers/esm/extends":"aSkWz","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],bvRWl:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"useDropdownToggle",(()=>f));var i=e("prop-types"),o=n.interopDefault(i),s=e("react"),a=n.interopDefault(s),l=e("./DropdownContext"),c=n.interopDefault(l),u=function(){};function f(){var e=(0,s.useContext)(c.default)||{},t=e.show,r=void 0!==t&&t,n=e.toggle,i=void 0===n?u:n,o=e.setToggle,a=(0,s.useCallback)((function(e){i(!r,e)}),[r,i]);return[{ref:o||u,onClick:a,"aria-haspopup":!0,"aria-expanded":!!r},{show:r,toggle:i}]}var d={children:o.default.func.isRequired};function h(e){var t=e.children,r=f(),n=r[0],i=r[1];return a.default.createElement(a.default.Fragment,null,t(n,i))}h.displayName="ReactOverlaysDropdownToggle",h.propTypes=d,r.default=h},{"prop-types":"7aJwi",react:"hCMiB","./DropdownContext":"3xB2N","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"5EzXr":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("classnames"),c=n.interopDefault(l),u=e("react"),f=n.interopDefault(u),d=e("@restart/hooks/useEventCallback"),h=n.interopDefault(d),p=e("./SelectableContext"),v=n.interopDefault(p),m=e("./ThemeProvider"),_=e("./NavContext"),g=n.interopDefault(_),y=e("./SafeAnchor"),b=n.interopDefault(y),C=["bsPrefix","className","children","eventKey","disabled","href","onClick","onSelect","active","as"],S={as:b.default,disabled:!1},w=f.default.forwardRef((function(e,t){var r=e.bsPrefix,n=e.className,i=e.children,s=e.eventKey,l=e.disabled,d=e.href,_=e.onClick,y=e.onSelect,b=e.active,S=e.as,w=(0,a.default)(e,C),E=(0,m.useBootstrapPrefix)(r,"dropdown-item"),x=(0,u.useContext)(v.default),k=((0,u.useContext)(g.default)||{}).activeKey,L=(0,p.makeEventKey)(s,d),D=null==b&&null!=L?(0,p.makeEventKey)(k)===L:b,j=(0,h.default)((function(e){l||(_&&_(e),x&&x(L,e),y&&y(L,e))}));return f.default.createElement(S,(0,o.default)({},w,{ref:t,href:d,disabled:l,className:(0,c.default)(n,E,D&&"active",l&&"disabled"),onClick:j}),i)}));w.displayName="DropdownItem",w.defaultProps=S,r.default=w},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",classnames:"a30GA",react:"hCMiB","@restart/hooks/useEventCallback":"5SvjJ","./SelectableContext":"4O42Z","./ThemeProvider":"4qm1d","./NavContext":"aWMHS","./SafeAnchor":"cM0kh","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"4O42Z":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"makeEventKey",(()=>s));var i=e("react"),o=n.interopDefault(i).default.createContext(null),s=function(e,t){return void 0===t&&(t=null),null!=e?String(e):t||null};r.default=o},{react:"hCMiB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],aWMHS:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("react"),o=n.interopDefault(i).default.createContext(null);o.displayName="NavContext",r.default=o},{react:"hCMiB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"1G1cJ":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"alignPropType",(()=>L));var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("classnames"),c=n.interopDefault(l),u=e("prop-types"),f=n.interopDefault(u),d=e("react"),h=n.interopDefault(d),p=e("react-overlays/DropdownMenu"),v=e("@restart/hooks/useMergedRefs"),m=n.interopDefault(v),_=e("warning"),g=(n.interopDefault(_),e("./NavbarContext")),y=n.interopDefault(g),b=e("./ThemeProvider"),C=e("./useWrappedRefWithWarning"),S=n.interopDefault(C),w=e("./usePopperMarginModifiers"),E=n.interopDefault(w),x=["bsPrefix","className","align","alignRight","rootCloseEvent","flip","show","renderOnMount","as","popperConfig"],k=f.default.oneOf(["left","right"]),L=f.default.oneOfType([k,f.default.shape({sm:k}),f.default.shape({md:k}),f.default.shape({lg:k}),f.default.shape({xl:k})]),D=h.default.forwardRef((function(e,t){var r=e.bsPrefix,n=e.className,i=e.align,s=e.alignRight,l=e.rootCloseEvent,u=e.flip,f=e.show,v=e.renderOnMount,_=e.as,g=void 0===_?"div":_,C=e.popperConfig,w=(0,a.default)(e,x),k=(0,d.useContext)(y.default),L=(0,b.useBootstrapPrefix)(r,"dropdown-menu"),D=(0,E.default)(),j=D[0],O=D[1],M=[];if(i)if("object"==typeof i){var T=Object.keys(i);if(T.length){var R=T[0],P=i[R];s="left"===P,M.push(L+"-"+R+"-"+P)}}else"right"===i&&(s=!0);var A=(0,p.useDropdownMenu)({flip:u,rootCloseEvent:l,show:f,alignEnd:s,usePopper:!k&&0===M.length,popperConfig:(0,o.default)({},C,{modifiers:O.concat((null==C?void 0:C.modifiers)||[])})}),B=A[0],I=A[1],N=I.hasShown,F=I.popper,H=I.show,W=I.alignEnd,U=I.toggle;if(B.ref=(0,m.default)(j,(0,m.default)((0,S.default)(t,"DropdownMenu"),B.ref)),!N&&!v)return null;"string"!=typeof g&&(B.show=H,B.close=function(){return null==U?void 0:U(!1)},B.alignRight=W);var q=w.style;return null!=F&&F.placement&&(q=(0,o.default)({},w.style,B.style),w["x-placement"]=F.placement),h.default.createElement(g,(0,o.default)({},w,B,{style:q,className:c.default.apply(void 0,[n,L,H&&"show",W&&L+"-right"].concat(M))}))}));D.displayName="DropdownMenu",D.defaultProps={align:"left",alignRight:!1,flip:!0},r.default=D},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",classnames:"a30GA","prop-types":"7aJwi",react:"hCMiB","react-overlays/DropdownMenu":"f0eSA","@restart/hooks/useMergedRefs":"8MrvT",warning:"hOD4Y","./NavbarContext":"itXod","./ThemeProvider":"4qm1d","./useWrappedRefWithWarning":"hAg4W","./usePopperMarginModifiers":"gQ0kN","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"8MrvT":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"mergeRefs",(()=>s));var i=e("react"),o=function(e){return e&&"function"!=typeof e?function(t){e.current=t}:e};function s(e,t){var r=o(e),n=o(t);return function(e){r&&r(e),n&&n(e)}}r.default=function(e,t){return(0,i.useMemo)((function(){return s(e,t)}),[e,t])}},{react:"hCMiB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],itXod:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("react"),o=n.interopDefault(i).default.createContext(null);o.displayName="NavbarContext",r.default=o},{react:"hCMiB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],hAg4W:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("invariant"),o=(n.interopDefault(i),e("react"),e("@restart/hooks/useMergedRefs"));n.interopDefault(o);r.default=function(e,t){return e}},{invariant:"ebU8U",react:"hCMiB","@restart/hooks/useMergedRefs":"8MrvT","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],gQ0kN:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("react"),o=e("dom-helpers/hasClass"),s=n.interopDefault(o),a=e("./ThemeProvider");function l(e){var t=window.getComputedStyle(e);return{top:parseFloat(t.marginTop)||0,right:parseFloat(t.marginRight)||0,bottom:parseFloat(t.marginBottom)||0,left:parseFloat(t.marginLeft)||0}}r.default=function(){var e=(0,i.useRef)(null),t=(0,i.useRef)(null),r=(0,i.useRef)(null),n=(0,a.useBootstrapPrefix)(void 0,"popover"),o=(0,a.useBootstrapPrefix)(void 0,"dropdown-menu");return[(0,i.useCallback)((function(r){r&&((0,s.default)(r,n)||(0,s.default)(r,o))&&(t.current=l(r),r.style.margin="0",e.current=r)}),[n,o]),[(0,i.useMemo)((function(){return{name:"offset",options:{offset:function(e){var r=e.placement;if(!t.current)return[0,0];var n=t.current,i=n.top,o=n.left,s=n.bottom,a=n.right;switch(r.split("-")[0]){case"top":return[0,s];case"left":return[0,a];case"bottom":return[0,i];case"right":return[0,o];default:return[0,0]}}}}}),[t]),(0,i.useMemo)((function(){return{name:"arrow",options:{padding:function(){if(!r.current)return 0;var e=r.current,t=e.top,n=e.right,i=t||n;return{top:i,left:i,right:i,bottom:i}}}}}),[r]),(0,i.useMemo)((function(){return{name:"popoverArrowMargins",enabled:!0,phase:"main",fn:function(){},requiresIfExists:["arrow"],effect:function(t){var i=t.state;if(e.current&&i.elements.arrow&&(0,s.default)(e.current,n)){if(i.modifiersData["arrow#persistent"]){var o=l(i.elements.arrow),a=o.top,c=o.right,u=a||c;i.modifiersData["arrow#persistent"].padding={top:u,left:u,right:u,bottom:u}}else r.current=l(i.elements.arrow);return i.elements.arrow.style.margin="0",function(){i.elements.arrow&&(i.elements.arrow.style.margin="")}}}}}),[n])]]}},{react:"hCMiB","dom-helpers/hasClass":"3PG5Y","./ThemeProvider":"4qm1d","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"3PG5Y":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"90BzO":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("classnames"),c=n.interopDefault(l),u=e("prop-types-extra/lib/isRequiredForA11y"),f=(n.interopDefault(u),e("react")),d=n.interopDefault(f),h=e("react-overlays/DropdownToggle"),p=e("@restart/hooks/useMergedRefs"),v=n.interopDefault(p),m=e("./Button"),_=n.interopDefault(m),g=e("./ThemeProvider"),y=e("./useWrappedRefWithWarning"),b=n.interopDefault(y),C=["bsPrefix","split","className","childBsPrefix","as"],S=d.default.forwardRef((function(e,t){var r=e.bsPrefix,n=e.split,i=e.className,s=e.childBsPrefix,l=e.as,u=void 0===l?_.default:l,f=(0,a.default)(e,C),p=(0,g.useBootstrapPrefix)(r,"dropdown-toggle");void 0!==s&&(f.bsPrefix=s);var m=(0,h.useDropdownToggle)()[0];return m.ref=(0,v.default)(m.ref,(0,b.default)(t,"DropdownToggle")),d.default.createElement(u,(0,o.default)({className:(0,c.default)(i,p,n&&p+"-split")},m,f))}));S.displayName="DropdownToggle",r.default=S},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",classnames:"a30GA","prop-types-extra/lib/isRequiredForA11y":"4iFMo",react:"hCMiB","react-overlays/DropdownToggle":"bvRWl","@restart/hooks/useMergedRefs":"8MrvT","./Button":"ldViG","./ThemeProvider":"4qm1d","./useWrappedRefWithWarning":"hAg4W","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"4iFMo":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return function(t,r,n,i,o){var s=n||"<<anonymous>>",a=o||r;if(null==t[r])return new Error("The "+i+" `"+a+"` is required to make `"+s+"` accessible for users of assistive technologies such as screen readers.");for(var l=arguments.length,c=Array(l>5?l-5:0),u=5;u<l;u++)c[u-5]=arguments[u];return e.apply(void 0,[t,r,n,i,o].concat(c))}},t.exports=r.default},{}],kxpfT:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("classnames"),c=n.interopDefault(l),u=e("dom-helpers/camelize"),f=n.interopDefault(u),d=e("react"),h=n.interopDefault(d),p=e("./ThemeProvider"),v=["className","bsPrefix","as"];r.default=function(e,t){var r,n=void 0===t?{}:t,i=n.displayName,s=void 0===i?(r=e)[0].toUpperCase()+(0,f.default)(r).slice(1):i,l=n.Component,u=n.defaultProps,d=h.default.forwardRef((function(t,r){var n=t.className,i=t.bsPrefix,s=t.as,u=void 0===s?l||"div":s,f=(0,a.default)(t,v),d=(0,p.useBootstrapPrefix)(i,e);return h.default.createElement(u,(0,o.default)({ref:r,className:(0,c.default)(n,d)},f))}));return d.defaultProps=u,d.displayName=s,d}},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",classnames:"a30GA","dom-helpers/camelize":"cnXwN",react:"hCMiB","./ThemeProvider":"4qm1d","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],cnXwN:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=/-(.)/g;r.default=function(e){return e.replace(n,(function(e,t){return t.toUpperCase()}))}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],e12wK:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i,o=e("@babel/runtime/helpers/esm/extends"),s=n.interopDefault(o),a=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),l=n.interopDefault(a),c=e("classnames"),u=n.interopDefault(c),f=e("react"),d=n.interopDefault(f),h=e("react-transition-group/Transition"),p=n.interopDefault(h),v=e("./transitionEndListener"),m=n.interopDefault(v),_=e("./triggerBrowserReflow"),g=n.interopDefault(_),y=["className","children"],b=((i={})[h.ENTERING]="show",i[h.ENTERED]="show",i),C=d.default.forwardRef((function(e,t){var r=e.className,n=e.children,i=(0,l.default)(e,y),o=(0,f.useCallback)((function(e){(0,g.default)(e),i.onEnter&&i.onEnter(e)}),[i]);return d.default.createElement(p.default,(0,s.default)({ref:t,addEndListener:m.default},i,{onEnter:o}),(function(e,t){return d.default.cloneElement(n,(0,s.default)({},t,{className:(0,u.default)("fade",r,n.props.className,b[e])}))}))}));C.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},C.displayName="Fade",r.default=C},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",classnames:"a30GA",react:"hCMiB","react-transition-group/Transition":"kxsrZ","./transitionEndListener":"4iQep","./triggerBrowserReflow":"2jQsY","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"9Sehs":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("classnames"),c=n.interopDefault(l),u=e("prop-types-extra/lib/all"),f=(n.interopDefault(u),e("react")),d=n.interopDefault(f),h=e("warning"),p=(n.interopDefault(h),e("./Feedback")),v=n.interopDefault(p),m=e("./FormContext"),_=n.interopDefault(m),g=e("./ThemeProvider"),y=["bsPrefix","bsCustomPrefix","type","size","htmlSize","id","className","isValid","isInvalid","plaintext","readOnly","custom","as"],b=d.default.forwardRef((function(e,t){var r,n,i=e.bsPrefix,s=e.bsCustomPrefix,l=e.type,u=e.size,h=e.htmlSize,p=e.id,v=e.className,m=e.isValid,b=void 0!==m&&m,C=e.isInvalid,S=void 0!==C&&C,w=e.plaintext,E=e.readOnly,x=e.custom,k=e.as,L=void 0===k?"input":k,D=(0,a.default)(e,y),j=(0,f.useContext)(_.default).controlId,O=x?[s,"custom"]:[i,"form-control"],M=O[0],T=O[1];if(i=(0,g.useBootstrapPrefix)(M,T),w)(n={})[i+"-plaintext"]=!0,r=n;else if("file"===l){var R;(R={})[i+"-file"]=!0,r=R}else if("range"===l){var P;(P={})[i+"-range"]=!0,r=P}else if("select"===L&&x){var A;(A={})[i+"-select"]=!0,A[i+"-select-"+u]=u,r=A}else{var B;(B={})[i]=!0,B[i+"-"+u]=u,r=B}return d.default.createElement(L,(0,o.default)({},D,{type:l,size:h,ref:t,readOnly:E,id:p||j,className:(0,c.default)(v,r,b&&"is-valid",S&&"is-invalid")}))}));b.displayName="FormControl",r.default=Object.assign(b,{Feedback:v.default})},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",classnames:"a30GA","prop-types-extra/lib/all":"5LaUe",react:"hCMiB",warning:"hOD4Y","./Feedback":"cRlp9","./FormContext":"lSHH2","./ThemeProvider":"4qm1d","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"5LaUe":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];function n(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=null;return t.forEach((function(e){if(null==i){var t=e.apply(void 0,r);null!=t&&(i=t)}})),i}return(0,o.default)(n)};var n,i=e("./utils/createChainableTypeChecker"),o=(n=i)&&n.__esModule?n:{default:n};t.exports=r.default},{"./utils/createChainableTypeChecker":"5OROm"}],"5OROm":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){function t(t,r,n,i,o,s){var a=i||"<<anonymous>>",l=s||n;if(null==r[n])return t?new Error("Required "+o+" `"+l+"` was not specified in `"+a+"`."):null;for(var c=arguments.length,u=Array(c>6?c-6:0),f=6;f<c;f++)u[f-6]=arguments[f];return e.apply(void 0,[r,n,a,o,l].concat(u))}var r=t.bind(null,!1);return r.isRequired=t.bind(null,!0),r},t.exports=r.default},{}],cRlp9:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("classnames"),c=n.interopDefault(l),u=e("react"),f=n.interopDefault(u),d=e("prop-types"),h=n.interopDefault(d),p=["as","className","type","tooltip"],v={type:h.default.string,tooltip:h.default.bool,as:h.default.elementType},m=f.default.forwardRef((function(e,t){var r=e.as,n=void 0===r?"div":r,i=e.className,s=e.type,l=void 0===s?"valid":s,u=e.tooltip,d=void 0!==u&&u,h=(0,a.default)(e,p);return f.default.createElement(n,(0,o.default)({},h,{ref:t,className:(0,c.default)(i,l+"-"+(d?"tooltip":"feedback"))}))}));m.displayName="Feedback",m.propTypes=v,r.default=m},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",classnames:"a30GA",react:"hCMiB","prop-types":"7aJwi","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],lSHH2:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("react"),o=n.interopDefault(i).default.createContext({controlId:void 0});r.default=o},{react:"hCMiB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],hXyL0:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/extends"),a=n.interopDefault(s),l=e("classnames"),c=n.interopDefault(l),u=e("react"),f=n.interopDefault(u),d=e("./createWithBsPrefix"),h=n.interopDefault(d),p=e("./ThemeProvider"),v=["bsPrefix","size","hasValidation","className","as"],m=(0,h.default)("input-group-append"),_=(0,h.default)("input-group-prepend"),g=(0,h.default)("input-group-text",{Component:"span"}),y=f.default.forwardRef((function(e,t){var r=e.bsPrefix,n=e.size,i=e.hasValidation,s=e.className,l=e.as,u=void 0===l?"div":l,d=(0,o.default)(e,v);return r=(0,p.useBootstrapPrefix)(r,"input-group"),f.default.createElement(u,(0,a.default)({ref:t},d,{className:(0,c.default)(s,r,n&&r+"-"+n,i&&"has-validation")}))}));y.displayName="InputGroup",y.Text=g,y.Radio=function(e){return f.default.createElement(g,null,f.default.createElement("input",(0,a.default)({type:"radio"},e)))},y.Checkbox=function(e){return f.default.createElement(g,null,f.default.createElement("input",(0,a.default)({type:"checkbox"},e)))},y.Append=m,y.Prepend=_,r.default=y},{"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo","@babel/runtime/helpers/esm/extends":"aSkWz",classnames:"a30GA",react:"hCMiB","./createWithBsPrefix":"kxpfT","./ThemeProvider":"4qm1d","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],d90J4:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i,o=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),s=n.interopDefault(o),a=e("@babel/runtime/helpers/esm/extends"),l=n.interopDefault(a),c=e("classnames"),u=n.interopDefault(c),f=e("dom-helpers/addEventListener"),d=n.interopDefault(f),h=e("dom-helpers/canUseDOM"),p=n.interopDefault(h),v=e("dom-helpers/ownerDocument"),m=n.interopDefault(v),_=e("dom-helpers/removeEventListener"),g=n.interopDefault(_),y=e("dom-helpers/scrollbarSize"),b=n.interopDefault(y),C=e("@restart/hooks/useCallbackRef"),S=n.interopDefault(C),w=e("@restart/hooks/useEventCallback"),E=n.interopDefault(w),x=e("@restart/hooks/useWillUnmount"),k=n.interopDefault(x),L=e("dom-helpers/transitionEnd"),D=n.interopDefault(L),j=e("react"),O=n.interopDefault(j),M=e("react-overlays/Modal"),T=n.interopDefault(M),R=e("warning"),P=(n.interopDefault(R),e("./BootstrapModalManager")),A=n.interopDefault(P),B=e("./Fade"),I=n.interopDefault(B),N=e("./ModalBody"),F=n.interopDefault(N),H=e("./ModalContext"),W=n.interopDefault(H),U=e("./ModalDialog"),q=n.interopDefault(U),z=e("./ModalFooter"),V=n.interopDefault(z),Z=e("./ModalHeader"),G=n.interopDefault(Z),K=e("./ModalTitle"),Y=n.interopDefault(K),X=e("./ThemeProvider"),Q=["bsPrefix","className","style","dialogClassName","contentClassName","children","dialogAs","aria-labelledby","show","animation","backdrop","keyboard","onEscapeKeyDown","onShow","onHide","container","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","onEntered","onExit","onExiting","onEnter","onEntering","onExited","backdropClassName","manager"],J={show:!1,backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,animation:!0,dialogAs:q.default};function $(e){return O.default.createElement(I.default,(0,l.default)({},e,{timeout:null}))}function ee(e){return O.default.createElement(I.default,(0,l.default)({},e,{timeout:null}))}var te=O.default.forwardRef((function(e,t){var r=e.bsPrefix,n=e.className,o=e.style,a=e.dialogClassName,c=e.contentClassName,f=e.children,h=e.dialogAs,v=e["aria-labelledby"],_=e.show,y=e.animation,C=e.backdrop,w=e.keyboard,x=e.onEscapeKeyDown,L=e.onShow,M=e.onHide,R=e.container,P=e.autoFocus,B=e.enforceFocus,I=e.restoreFocus,N=e.restoreFocusOptions,F=e.onEntered,H=e.onExit,U=e.onExiting,q=e.onEnter,z=e.onEntering,V=e.onExited,Z=e.backdropClassName,G=e.manager,K=(0,s.default)(e,Q),Y=(0,j.useState)({}),J=Y[0],te=Y[1],re=(0,j.useState)(!1),ne=re[0],ie=re[1],oe=(0,j.useRef)(!1),se=(0,j.useRef)(!1),ae=(0,j.useRef)(null),le=(0,S.default)(),ce=le[0],ue=le[1],fe=(0,E.default)(M);r=(0,X.useBootstrapPrefix)(r,"modal"),(0,j.useImperativeHandle)(t,(function(){return{get _modal(){return ce}}}),[ce]);var de=(0,j.useMemo)((function(){return{onHide:fe}}),[fe]);function he(){return G||(i||(i=new(0,A.default)),i)}function pe(e){if(p.default){var t=he().isContainerOverflowing(ce),r=e.scrollHeight>(0,m.default)(e).documentElement.clientHeight;te({paddingRight:t&&!r?(0,b.default)():void 0,paddingLeft:!t&&r?(0,b.default)():void 0})}}var ve=(0,E.default)((function(){ce&&pe(ce.dialog)}));(0,k.default)((function(){(0,g.default)(window,"resize",ve),ae.current&&ae.current()}));var me=function(){oe.current=!0},_e=function(e){oe.current&&ce&&e.target===ce.dialog&&(se.current=!0),oe.current=!1},ge=function(){ie(!0),ae.current=(0,D.default)(ce.dialog,(function(){ie(!1)}))},ye=function(e){"static"!==C?se.current||e.target!==e.currentTarget?se.current=!1:null==M||M():function(e){e.target===e.currentTarget&&ge()}(e)},be=(0,j.useCallback)((function(e){return O.default.createElement("div",(0,l.default)({},e,{className:(0,u.default)(r+"-backdrop",Z,!y&&"show")}))}),[y,Z,r]),Ce=(0,l.default)({},o,J);y||(Ce.display="block");return O.default.createElement(W.default.Provider,{value:de},O.default.createElement(T.default,{show:_,ref:ue,backdrop:C,container:R,keyboard:!0,autoFocus:P,enforceFocus:B,restoreFocus:I,restoreFocusOptions:N,onEscapeKeyDown:function(e){w||"static"!==C?w&&x&&x(e):(e.preventDefault(),ge())},onShow:L,onHide:M,onEnter:function(e,t){e&&(e.style.display="block",pe(e)),null==q||q(e,t)},onEntering:function(e,t){null==z||z(e,t),(0,d.default)(window,"resize",ve)},onEntered:F,onExit:function(e){null==ae.current||ae.current(),null==H||H(e)},onExiting:U,onExited:function(e){e&&(e.style.display=""),null==V||V(e),(0,g.default)(window,"resize",ve)},manager:he(),containerClassName:r+"-open",transition:y?$:void 0,backdropTransition:y?ee:void 0,renderBackdrop:be,renderDialog:function(e){return O.default.createElement("div",(0,l.default)({role:"dialog"},e,{style:Ce,className:(0,u.default)(n,r,ne&&r+"-static"),onClick:C?ye:void 0,onMouseUp:_e,"aria-labelledby":v}),O.default.createElement(h,(0,l.default)({},K,{onMouseDown:me,className:a,contentClassName:c}),f))}}))}));te.displayName="Modal",te.defaultProps=J,te.Body=F.default,te.Header=G.default,te.Title=Y.default,te.Footer=V.default,te.Dialog=q.default,te.TRANSITION_DURATION=300,te.BACKDROP_TRANSITION_DURATION=150,r.default=te},{"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo","@babel/runtime/helpers/esm/extends":"aSkWz",classnames:"a30GA","dom-helpers/addEventListener":"cDxTo","dom-helpers/canUseDOM":"1hcoX","dom-helpers/ownerDocument":"5vGq4","dom-helpers/removeEventListener":"4Dqx0","dom-helpers/scrollbarSize":"hInIh","@restart/hooks/useCallbackRef":"dJEg8","@restart/hooks/useEventCallback":"5SvjJ","@restart/hooks/useWillUnmount":"2teyf","dom-helpers/transitionEnd":"8Kpgo",react:"hCMiB","react-overlays/Modal":"5dVVE",warning:"hOD4Y","./BootstrapModalManager":"31mpD","./Fade":"e12wK","./ModalBody":"5J5ru","./ModalContext":"8A7Il","./ModalDialog":"7jfu2","./ModalFooter":"XNPUV","./ModalHeader":"lklGc","./ModalTitle":"2xvGF","./ThemeProvider":"4qm1d","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],hInIh:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i,o=e("./canUseDOM"),s=n.interopDefault(o);r.default=function(e){if((!i&&0!==i||e)&&s.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),i=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return i}},{"./canUseDOM":"1hcoX","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"2teyf":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./useUpdatedRef"),o=n.interopDefault(i),s=e("react");r.default=function(e){var t=(0,o.default)(e);(0,s.useEffect)((function(){return function(){return t.current()}}),[])}},{"./useUpdatedRef":"7ACIW",react:"hCMiB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"7ACIW":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("react");r.default=function(e){var t=(0,n.useRef)(e);return t.current=e,t}},{react:"hCMiB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"5dVVE":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i,o=e("@babel/runtime/helpers/esm/extends"),s=n.interopDefault(o),a=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),l=n.interopDefault(a),c=e("dom-helpers/activeElement"),u=n.interopDefault(c),f=e("dom-helpers/contains"),d=n.interopDefault(f),h=e("dom-helpers/canUseDOM"),p=n.interopDefault(h),v=e("dom-helpers/listen"),m=n.interopDefault(v),_=e("prop-types"),g=n.interopDefault(_),y=e("react"),b=n.interopDefault(y),C=e("react-dom"),S=n.interopDefault(C),w=e("@restart/hooks/useMounted"),E=n.interopDefault(w),x=e("@restart/hooks/useWillUnmount"),k=n.interopDefault(x),L=e("@restart/hooks/usePrevious"),D=n.interopDefault(L),j=e("@restart/hooks/useEventCallback"),O=n.interopDefault(j),M=e("./ModalManager"),T=n.interopDefault(M),R=e("./useWaitForDOMRef"),P=n.interopDefault(R);function A(e){var t=e||(i||(i=new(0,T.default)),i),r=(0,y.useRef)({dialog:null,backdrop:null});return Object.assign(r.current,{add:function(e,n){return t.add(r.current,e,n)},remove:function(){return t.remove(r.current)},isTopModal:function(){return t.isTopModal(r.current)},setDialogRef:(0,y.useCallback)((function(e){r.current.dialog=e}),[]),setBackdropRef:(0,y.useCallback)((function(e){r.current.backdrop=e}),[])})}var B=(0,y.forwardRef)((function(e,t){var r=e.show,n=void 0!==r&&r,i=e.role,o=void 0===i?"dialog":i,a=e.className,c=e.style,f=e.children,h=e.backdrop,v=void 0===h||h,_=e.keyboard,g=void 0===_||_,C=e.onBackdropClick,w=e.onEscapeKeyDown,x=e.transition,L=e.backdropTransition,j=e.autoFocus,M=void 0===j||j,T=e.enforceFocus,R=void 0===T||T,B=e.restoreFocus,I=void 0===B||B,N=e.restoreFocusOptions,F=e.renderDialog,H=e.renderBackdrop,W=void 0===H?function(e){return b.default.createElement("div",e)}:H,U=e.manager,q=e.container,z=e.containerClassName,V=e.onShow,Z=e.onHide,G=void 0===Z?function(){}:Z,K=e.onExit,Y=e.onExited,X=e.onExiting,Q=e.onEnter,J=e.onEntering,$=e.onEntered,ee=(0,l.default)(e,["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","backdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","containerClassName","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"]),te=(0,P.default)(q),re=A(U),ne=(0,E.default)(),ie=(0,D.default)(n),oe=(0,y.useState)(!n),se=oe[0],ae=oe[1],le=(0,y.useRef)(null);(0,y.useImperativeHandle)(t,(function(){return re}),[re]),p.default&&!ie&&n&&(le.current=(0,u.default)()),x||n||se?n&&se&&ae(!1):ae(!0);var ce=(0,O.default)((function(){if(re.add(te,z),ve.current=(0,m.default)(document,"keydown",he),pe.current=(0,m.default)(document,"focus",(function(){return setTimeout(fe)}),!0),V&&V(),M){var e=(0,u.default)(document);re.dialog&&e&&!(0,d.default)(re.dialog,e)&&(le.current=e,re.dialog.focus())}})),ue=(0,O.default)((function(){var e;(re.remove(),null==ve.current||ve.current(),null==pe.current||pe.current(),I)&&(null==(e=le.current)||null==e.focus||e.focus(N),le.current=null)}));(0,y.useEffect)((function(){n&&te&&ce()}),[n,te,ce]),(0,y.useEffect)((function(){se&&ue()}),[se,ue]),(0,k.default)((function(){ue()}));var fe=(0,O.default)((function(){if(R&&ne()&&re.isTopModal()){var e=(0,u.default)();re.dialog&&e&&!(0,d.default)(re.dialog,e)&&re.dialog.focus()}})),de=(0,O.default)((function(e){e.target===e.currentTarget&&(null==C||C(e),!0===v&&G())})),he=(0,O.default)((function(e){g&&27===e.keyCode&&re.isTopModal()&&(null==w||w(e),e.defaultPrevented||G())})),pe=(0,y.useRef)(),ve=(0,y.useRef)(),me=x;if(!te||!(n||me&&!se))return null;var _e=(0,s.default)({role:o,ref:re.setDialogRef,"aria-modal":"dialog"===o||void 0},ee,{style:c,className:a,tabIndex:-1}),ge=F?F(_e):b.default.createElement("div",_e,b.default.cloneElement(f,{role:"document"}));me&&(ge=b.default.createElement(me,{appear:!0,unmountOnExit:!0,in:!!n,onExit:K,onExiting:X,onExited:function(){ae(!0);for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];null==Y||Y.apply(void 0,t)},onEnter:Q,onEntering:J,onEntered:$},ge));var ye=null;if(v){var be=L;ye=W({ref:re.setBackdropRef,onClick:de}),be&&(ye=b.default.createElement(be,{appear:!0,in:!!n},ye))}return b.default.createElement(b.default.Fragment,null,S.default.createPortal(b.default.createElement(b.default.Fragment,null,ye,ge),te))})),I={show:g.default.bool,container:g.default.any,onShow:g.default.func,onHide:g.default.func,backdrop:g.default.oneOfType([g.default.bool,g.default.oneOf(["static"])]),renderDialog:g.default.func,renderBackdrop:g.default.func,onEscapeKeyDown:g.default.func,onBackdropClick:g.default.func,containerClassName:g.default.string,keyboard:g.default.bool,transition:g.default.elementType,backdropTransition:g.default.elementType,autoFocus:g.default.bool,enforceFocus:g.default.bool,restoreFocus:g.default.bool,restoreFocusOptions:g.default.shape({preventScroll:g.default.bool}),onEnter:g.default.func,onEntering:g.default.func,onEntered:g.default.func,onExit:g.default.func,onExiting:g.default.func,onExited:g.default.func,manager:g.default.instanceOf(T.default)};B.displayName="Modal",B.propTypes=I,r.default=Object.assign(B,{Manager:T.default})},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo","dom-helpers/activeElement":"cf3dV","dom-helpers/contains":"czE8B","dom-helpers/canUseDOM":"1hcoX","dom-helpers/listen":"7ybRG","prop-types":"7aJwi",react:"hCMiB","react-dom":"827j0","@restart/hooks/useMounted":"DjgAC","@restart/hooks/useWillUnmount":"2teyf","@restart/hooks/usePrevious":"5P4oh","@restart/hooks/useEventCallback":"5SvjJ","./ModalManager":"eRDdn","./useWaitForDOMRef":"8j6X8","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],cf3dV:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./ownerDocument"),o=n.interopDefault(i);r.default=function(e){void 0===e&&(e=(0,o.default)());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(t){return e.body}}},{"./ownerDocument":"5vGq4","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],eRDdn:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("dom-helpers/addClass"),o=n.interopDefault(i),s=e("dom-helpers/removeClass"),a=n.interopDefault(s),l=e("dom-helpers/css"),c=n.interopDefault(l),u=e("dom-helpers/scrollbarSize"),f=n.interopDefault(u),d=e("./isOverflowing"),h=n.interopDefault(d),p=e("./manageAriaHidden");var v=function(){function e(e){var t=void 0===e?{}:e,r=t.hideSiblingNodes,n=void 0===r||r,i=t.handleContainerOverflow,o=void 0===i||i;this.hideSiblingNodes=void 0,this.handleContainerOverflow=void 0,this.modals=void 0,this.containers=void 0,this.data=void 0,this.scrollbarSize=void 0,this.hideSiblingNodes=n,this.handleContainerOverflow=o,this.modals=[],this.containers=[],this.data=[],this.scrollbarSize=(0,f.default)()}var t=e.prototype;return t.isContainerOverflowing=function(e){var t=this.data[this.containerIndexFromModal(e)];return t&&t.overflowing},t.containerIndexFromModal=function(e){return t=this.data,r=function(t){return-1!==t.modals.indexOf(e)},n=-1,t.some((function(e,t){return!!r(e,t)&&(n=t,!0)})),n;var t,r,n},t.setContainerStyle=function(e,t){var r={overflow:"hidden"};e.style={overflow:t.style.overflow,paddingRight:t.style.paddingRight},e.overflowing&&(r.paddingRight=parseInt((0,c.default)(t,"paddingRight")||"0",10)+this.scrollbarSize+"px"),(0,c.default)(t,r)},t.removeContainerStyle=function(e,t){Object.assign(t.style,e.style)},t.add=function(e,t,r){var n=this.modals.indexOf(e),i=this.containers.indexOf(t);if(-1!==n)return n;if(n=this.modals.length,this.modals.push(e),this.hideSiblingNodes&&(0,p.hideSiblings)(t,e),-1!==i)return this.data[i].modals.push(e),n;var s={modals:[e],classes:r?r.split(/\s+/):[],overflowing:(0,h.default)(t)};return this.handleContainerOverflow&&this.setContainerStyle(s,t),s.classes.forEach(o.default.bind(null,t)),this.containers.push(t),this.data.push(s),n},t.remove=function(e){var t=this.modals.indexOf(e);if(-1!==t){var r=this.containerIndexFromModal(e),n=this.data[r],i=this.containers[r];if(n.modals.splice(n.modals.indexOf(e),1),this.modals.splice(t,1),0===n.modals.length)n.classes.forEach(a.default.bind(null,i)),this.handleContainerOverflow&&this.removeContainerStyle(n,i),this.hideSiblingNodes&&(0,p.showSiblings)(i,e),this.containers.splice(r,1),this.data.splice(r,1);else if(this.hideSiblingNodes){var o=n.modals[n.modals.length-1],s=o.backdrop,l=o.dialog;(0,p.ariaHidden)(!1,l),(0,p.ariaHidden)(!1,s)}}},t.isTopModal=function(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e},e}();r.default=v},{"dom-helpers/addClass":"gcVcb","dom-helpers/removeClass":"ggkkK","dom-helpers/css":"lzggy","dom-helpers/scrollbarSize":"hInIh","./isOverflowing":"3Wq4s","./manageAriaHidden":"ftQsQ","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],gcVcb:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./hasClass"),o=n.interopDefault(i);r.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}},{"./hasClass":"3PG5Y","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],ggkkK:[function(e,t,r){function n(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=n(e.className,t):e.setAttribute("class",n(e.className&&e.className.baseVal||"",t))}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"3Wq4s":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("dom-helpers/isWindow"),o=n.interopDefault(i),s=e("dom-helpers/ownerDocument"),a=n.interopDefault(s);r.default=function(e){var t;return(0,o.default)(e)||(t=e)&&"body"===t.tagName.toLowerCase()?function(e){var t=(0,o.default)(e)?(0,a.default)():(0,a.default)(e),r=(0,o.default)(e)||t.defaultView;return t.body.clientWidth<r.innerWidth}(e):e.scrollHeight>e.clientHeight}},{"dom-helpers/isWindow":"5QmDK","dom-helpers/ownerDocument":"5vGq4","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"5QmDK":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./isDocument"),o=n.interopDefault(i);r.default=function(e){return"window"in e&&e.window===e?e:(0,o.default)(e)&&e.defaultView||!1}},{"./isDocument":"7Tapr","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"7Tapr":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e){return"nodeType"in e&&e.nodeType===document.DOCUMENT_NODE}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],ftQsQ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ariaHidden",(()=>s)),n.export(r,"hideSiblings",(()=>a)),n.export(r,"showSiblings",(()=>l));var i=["template","script","style"],o=function(e,t,r){[].forEach.call(e.children,(function(e){var n,o,s;-1===t.indexOf(e)&&(o=(n=e).nodeType,s=n.tagName,1===o&&-1===i.indexOf(s.toLowerCase()))&&r(e)}))};function s(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}function a(e,t){var r=t.dialog,n=t.backdrop;o(e,[r,n],(function(e){return s(!0,e)}))}function l(e,t){var r=t.dialog,n=t.backdrop;o(e,[r,n],(function(e){return s(!1,e)}))}},{"@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"8j6X8":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"resolveContainerRef",(()=>a));var i=e("dom-helpers/ownerDocument"),o=n.interopDefault(i),s=e("react"),a=function(e){var t;return"undefined"==typeof document?null:null==e?(0,o.default)().body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),null!=(t=e)&&t.nodeType&&e||null)};r.default=function(e,t){var r=(0,s.useState)((function(){return a(e)})),n=r[0],i=r[1];if(!n){var o=a(e);o&&i(o)}return(0,s.useEffect)((function(){t&&n&&t(n)}),[t,n]),(0,s.useEffect)((function(){var t=a(e);t!==n&&i(t)}),[e,n]),n}},{"dom-helpers/ownerDocument":"5vGq4",react:"hCMiB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"31mpD":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",(()=>_));var i=e("@babel/runtime/helpers/esm/inheritsLoose"),o=n.interopDefault(i),s=e("dom-helpers/css"),a=n.interopDefault(s),l=e("dom-helpers/querySelectorAll"),c=n.interopDefault(l),u=e("dom-helpers/scrollbarSize"),f=n.interopDefault(u),d=e("react-overlays/ModalManager"),h=n.interopDefault(d),p=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",v=".sticky-top",m=".navbar-toggler",_=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var r=t.prototype;return r.adjustAndStore=function(e,t,r){var n,i=t.style[e];t.dataset[e]=i,(0,a.default)(t,((n={})[e]=parseFloat((0,a.default)(t,e))+r+"px",n))},r.restore=function(e,t){var r,n=t.dataset[e];void 0!==n&&(delete t.dataset[e],(0,a.default)(t,((r={})[e]=n,r)))},r.setContainerStyle=function(t,r){var n=this;if(e.prototype.setContainerStyle.call(this,t,r),t.overflowing){var i=(0,f.default)();(0,c.default)(r,p).forEach((function(e){return n.adjustAndStore("paddingRight",e,i)})),(0,c.default)(r,v).forEach((function(e){return n.adjustAndStore("marginRight",e,-i)})),(0,c.default)(r,m).forEach((function(e){return n.adjustAndStore("marginRight",e,i)}))}},r.removeContainerStyle=function(t,r){var n=this;e.prototype.removeContainerStyle.call(this,t,r),(0,c.default)(r,p).forEach((function(e){return n.restore("paddingRight",e)})),(0,c.default)(r,v).forEach((function(e){return n.restore("marginRight",e)})),(0,c.default)(r,m).forEach((function(e){return n.restore("marginRight",e)}))},t}(h.default)},{"@babel/runtime/helpers/esm/inheritsLoose":"9XmnM","dom-helpers/css":"lzggy","dom-helpers/querySelectorAll":"dbHBH","dom-helpers/scrollbarSize":"hInIh","react-overlays/ModalManager":"eRDdn","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"5J5ru":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./createWithBsPrefix"),o=n.interopDefault(i);r.default=(0,o.default)("modal-body")},{"./createWithBsPrefix":"kxpfT","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"8A7Il":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("react"),o=n.interopDefault(i).default.createContext({onHide:function(){}});r.default=o},{react:"hCMiB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"7jfu2":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("classnames"),c=n.interopDefault(l),u=e("react"),f=n.interopDefault(u),d=e("./ThemeProvider"),h=["bsPrefix","className","contentClassName","centered","size","children","scrollable"],p=f.default.forwardRef((function(e,t){var r=e.bsPrefix,n=e.className,i=e.contentClassName,s=e.centered,l=e.size,u=e.children,p=e.scrollable,v=(0,a.default)(e,h),m=(r=(0,d.useBootstrapPrefix)(r,"modal"))+"-dialog";return f.default.createElement("div",(0,o.default)({},v,{ref:t,className:(0,c.default)(m,n,l&&r+"-"+l,s&&m+"-centered",p&&m+"-scrollable")}),f.default.createElement("div",{className:(0,c.default)(r+"-content",i)},u))}));p.displayName="ModalDialog",r.default=p},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",classnames:"a30GA",react:"hCMiB","./ThemeProvider":"4qm1d","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],XNPUV:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./createWithBsPrefix"),o=n.interopDefault(i);r.default=(0,o.default)("modal-footer")},{"./createWithBsPrefix":"kxpfT","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],lklGc:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("classnames"),c=n.interopDefault(l),u=e("react"),f=n.interopDefault(u),d=e("@restart/hooks/useEventCallback"),h=n.interopDefault(d),p=e("./ThemeProvider"),v=e("./CloseButton"),m=n.interopDefault(v),_=e("./ModalContext"),g=n.interopDefault(_),y=["bsPrefix","closeLabel","closeButton","onHide","className","children"],b=f.default.forwardRef((function(e,t){var r=e.bsPrefix,n=e.closeLabel,i=e.closeButton,s=e.onHide,l=e.className,d=e.children,v=(0,a.default)(e,y);r=(0,p.useBootstrapPrefix)(r,"modal-header");var _=(0,u.useContext)(g.default),b=(0,h.default)((function(){_&&_.onHide(),s&&s()}));return f.default.createElement("div",(0,o.default)({ref:t},v,{className:(0,c.default)(l,r)}),d,i&&f.default.createElement(m.default,{label:n,onClick:b}))}));b.displayName="ModalHeader",b.defaultProps={closeLabel:"Close",closeButton:!1},r.default=b},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",classnames:"a30GA",react:"hCMiB","@restart/hooks/useEventCallback":"5SvjJ","./ThemeProvider":"4qm1d","./CloseButton":"7uSpf","./ModalContext":"8A7Il","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"2xvGF":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("./createWithBsPrefix"),o=n.interopDefault(i),s=e("./divWithClassName"),a=(0,n.interopDefault(s).default)("h4");r.default=(0,o.default)("modal-title",{Component:a})},{"./createWithBsPrefix":"kxpfT","./divWithClassName":"g9pyt","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],g9pyt:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("react"),a=n.interopDefault(s),l=e("classnames"),c=n.interopDefault(l);r.default=function(e){return a.default.forwardRef((function(t,r){return a.default.createElement("div",(0,o.default)({},t,{ref:r,className:(0,c.default)(t.className,e)}))}))}},{"@babel/runtime/helpers/esm/extends":"aSkWz",react:"hCMiB",classnames:"a30GA","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"6z7Cp":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("classnames"),c=n.interopDefault(l),u=e("prop-types-extra/lib/all"),f=(n.interopDefault(u),e("react")),d=n.interopDefault(f),h=e("uncontrollable"),p=e("./ThemeProvider"),v=e("./NavbarContext"),m=n.interopDefault(v),_=e("./CardContext"),g=n.interopDefault(_),y=e("./AbstractNav"),b=n.interopDefault(y),C=e("./NavItem"),S=n.interopDefault(C),w=e("./NavLink"),E=n.interopDefault(w),x=["as","bsPrefix","variant","fill","justify","navbar","navbarScroll","className","children","activeKey"],k=d.default.forwardRef((function(e,t){var r,n,i,s=(0,h.useUncontrolled)(e,{activeKey:"onSelect"}),l=s.as,u=void 0===l?"div":l,v=s.bsPrefix,_=s.variant,y=s.fill,C=s.justify,S=s.navbar,w=s.navbarScroll,E=s.className,k=s.children,L=s.activeKey,D=(0,a.default)(s,x),j=(0,p.useBootstrapPrefix)(v,"nav"),O=!1,M=(0,f.useContext)(m.default),T=(0,f.useContext)(g.default);return M?(n=M.bsPrefix,O=null==S||S):T&&(i=T.cardHeaderBsPrefix),d.default.createElement(b.default,(0,o.default)({as:u,ref:t,activeKey:L,className:(0,c.default)(E,(r={},r[j]=!O,r[n+"-nav"]=O,r[n+"-nav-scroll"]=O&&w,r[i+"-"+_]=!!i,r[j+"-"+_]=!!_,r[j+"-fill"]=y,r[j+"-justified"]=C,r))},D),k)}));k.displayName="Nav",k.defaultProps={justify:!1,fill:!1},k.Item=S.default,k.Link=E.default,r.default=k},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",classnames:"a30GA","prop-types-extra/lib/all":"5LaUe",react:"hCMiB",uncontrollable:"abXpx","./ThemeProvider":"4qm1d","./NavbarContext":"itXod","./CardContext":"j4I3F","./AbstractNav":"2soA5","./NavItem":"dFSTJ","./NavLink":"czDW5","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],j4I3F:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("react"),o=n.interopDefault(i).default.createContext(null);o.displayName="CardContext",r.default=o},{react:"hCMiB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"2soA5":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("dom-helpers/querySelectorAll"),c=n.interopDefault(l),u=e("react"),f=n.interopDefault(u),d=e("@restart/hooks/useForceUpdate"),h=n.interopDefault(d),p=e("@restart/hooks/useMergedRefs"),v=n.interopDefault(p),m=e("./NavContext"),_=n.interopDefault(m),g=e("./SelectableContext"),y=n.interopDefault(g),b=e("./TabContext"),C=n.interopDefault(b),S=["as","onSelect","activeKey","role","onKeyDown"],w=function(){},E=f.default.forwardRef((function(e,t){var r,n,i=e.as,s=void 0===i?"ul":i,l=e.onSelect,d=e.activeKey,p=e.role,m=e.onKeyDown,b=(0,a.default)(e,S),E=(0,h.default)(),x=(0,u.useRef)(!1),k=(0,u.useContext)(y.default),L=(0,u.useContext)(C.default);L&&(p=p||"tablist",d=L.activeKey,r=L.getControlledId,n=L.getControllerId);var D=(0,u.useRef)(null),j=function(e){var t=D.current;if(!t)return null;var r=(0,c.default)(t,"[data-rb-event-key]:not(.disabled)"),n=t.querySelector(".active");if(!n)return null;var i=r.indexOf(n);if(-1===i)return null;var o=i+e;return o>=r.length&&(o=0),o<0&&(o=r.length-1),r[o]},O=function(e,t){null!=e&&(l&&l(e,t),k&&k(e,t))};(0,u.useEffect)((function(){if(D.current&&x.current){var e=D.current.querySelector("[data-rb-event-key].active");e&&e.focus()}x.current=!1}));var M=(0,v.default)(t,D);return f.default.createElement(y.default.Provider,{value:O},f.default.createElement(_.default.Provider,{value:{role:p,activeKey:(0,g.makeEventKey)(d),getControlledId:r||w,getControllerId:n||w}},f.default.createElement(s,(0,o.default)({},b,{onKeyDown:function(e){var t;switch(m&&m(e),e.key){case"ArrowLeft":case"ArrowUp":t=j(-1);break;case"ArrowRight":case"ArrowDown":t=j(1);break;default:return}t&&(e.preventDefault(),O(t.dataset.rbEventKey,e),x.current=!0,E())},ref:M,role:p}))))}));r.default=E},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo","dom-helpers/querySelectorAll":"dbHBH",react:"hCMiB","@restart/hooks/useForceUpdate":"ebc65","@restart/hooks/useMergedRefs":"8MrvT","./NavContext":"aWMHS","./SelectableContext":"4O42Z","./TabContext":"keMfk","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],keMfk:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("react"),o=n.interopDefault(i).default.createContext(null);r.default=o},{react:"hCMiB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],dFSTJ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("classnames"),c=n.interopDefault(l),u=e("react"),f=n.interopDefault(u),d=e("./ThemeProvider"),h=["bsPrefix","className","children","as"],p=f.default.forwardRef((function(e,t){var r=e.bsPrefix,n=e.className,i=e.children,s=e.as,l=void 0===s?"div":s,u=(0,a.default)(e,h);return r=(0,d.useBootstrapPrefix)(r,"nav-item"),f.default.createElement(l,(0,o.default)({},u,{ref:t,className:(0,c.default)(n,r)}),i)}));p.displayName="NavItem",r.default=p},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",classnames:"a30GA",react:"hCMiB","./ThemeProvider":"4qm1d","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],czDW5:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("classnames"),c=n.interopDefault(l),u=e("react"),f=n.interopDefault(u),d=e("./SafeAnchor"),h=n.interopDefault(d),p=e("./AbstractNavItem"),v=n.interopDefault(p),m=e("./ThemeProvider"),_=["bsPrefix","disabled","className","href","eventKey","onSelect","as"],g={disabled:!1,as:h.default},y=f.default.forwardRef((function(e,t){var r=e.bsPrefix,n=e.disabled,i=e.className,s=e.href,l=e.eventKey,u=e.onSelect,d=e.as,h=(0,a.default)(e,_);return r=(0,m.useBootstrapPrefix)(r,"nav-link"),f.default.createElement(v.default,(0,o.default)({},h,{href:s,ref:t,eventKey:l,as:d,disabled:n,onSelect:u,className:(0,c.default)(i,r,n&&"disabled")}))}));y.displayName="NavLink",y.defaultProps=g,r.default=y},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",classnames:"a30GA",react:"hCMiB","./SafeAnchor":"cM0kh","./AbstractNavItem":"30m7R","./ThemeProvider":"4qm1d","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"30m7R":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("classnames"),c=n.interopDefault(l),u=e("react"),f=n.interopDefault(u),d=e("@restart/hooks/useEventCallback"),h=n.interopDefault(d),p=e("warning"),v=(n.interopDefault(p),e("./NavContext")),m=n.interopDefault(v),_=e("./SelectableContext"),g=n.interopDefault(_),y=["active","className","eventKey","onSelect","onClick","as"],b=f.default.forwardRef((function(e,t){var r=e.active,n=e.className,i=e.eventKey,s=e.onSelect,l=e.onClick,d=e.as,p=(0,a.default)(e,y),v=(0,_.makeEventKey)(i,p.href),b=(0,u.useContext)(g.default),C=(0,u.useContext)(m.default),S=r;if(C){p.role||"tablist"!==C.role||(p.role="tab");var w=C.getControllerId(v),E=C.getControlledId(v);p["data-rb-event-key"]=v,p.id=w||p.id,p["aria-controls"]=E||p["aria-controls"],S=null==r&&null!=v?C.activeKey===v:r}"tab"===p.role&&(p.disabled&&(p.tabIndex=-1,p["aria-disabled"]=!0),p["aria-selected"]=S);var x=(0,h.default)((function(e){l&&l(e),null!=v&&(s&&s(v,e),b&&b(v,e))}));return f.default.createElement(d,(0,o.default)({},p,{ref:t,onClick:x,className:(0,c.default)(n,S&&"active")}))}));b.defaultProps={disabled:!1},r.default=b},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",classnames:"a30GA",react:"hCMiB","@restart/hooks/useEventCallback":"5SvjJ",warning:"hOD4Y","./NavContext":"aWMHS","./SelectableContext":"4O42Z","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"1WNsp":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("classnames"),c=n.interopDefault(l),u=e("react"),f=n.interopDefault(u),d=e("uncontrollable"),h=e("./createWithBsPrefix"),p=n.interopDefault(h),v=e("./NavbarBrand"),m=n.interopDefault(v),_=e("./NavbarCollapse"),g=n.interopDefault(_),y=e("./NavbarToggle"),b=n.interopDefault(y),C=e("./ThemeProvider"),S=e("./NavbarContext"),w=n.interopDefault(S),E=e("./SelectableContext"),x=n.interopDefault(E),k=["bsPrefix","expand","variant","bg","fixed","sticky","className","children","as","expanded","onToggle","onSelect","collapseOnSelect"],L=(0,p.default)("navbar-text",{Component:"span"}),D=f.default.forwardRef((function(e,t){var r=(0,d.useUncontrolled)(e,{expanded:"onToggle"}),n=r.bsPrefix,i=r.expand,s=r.variant,l=r.bg,h=r.fixed,p=r.sticky,v=r.className,m=r.children,_=r.as,g=void 0===_?"nav":_,y=r.expanded,b=r.onToggle,S=r.onSelect,E=r.collapseOnSelect,L=(0,a.default)(r,k),D=(0,C.useBootstrapPrefix)(n,"navbar"),j=(0,u.useCallback)((function(){S&&S.apply(void 0,arguments),E&&y&&b&&b(!1)}),[S,E,y,b]);void 0===L.role&&"nav"!==g&&(L.role="navigation");var O=D+"-expand";"string"==typeof i&&(O=O+"-"+i);var M=(0,u.useMemo)((function(){return{onToggle:function(){return b&&b(!y)},bsPrefix:D,expanded:!!y}}),[D,y,b]);return f.default.createElement(w.default.Provider,{value:M},f.default.createElement(x.default.Provider,{value:j},f.default.createElement(g,(0,o.default)({ref:t},L,{className:(0,c.default)(v,D,i&&O,s&&D+"-"+s,l&&"bg-"+l,p&&"sticky-"+p,h&&"fixed-"+h)}),m)))}));D.defaultProps={expand:!0,variant:"light",collapseOnSelect:!1},D.displayName="Navbar",D.Brand=m.default,D.Toggle=b.default,D.Collapse=g.default,D.Text=L,r.default=D},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",classnames:"a30GA",react:"hCMiB",uncontrollable:"abXpx","./createWithBsPrefix":"kxpfT","./NavbarBrand":"jxpy4","./NavbarCollapse":"3ZrHM","./NavbarToggle":"2BfxA","./ThemeProvider":"4qm1d","./NavbarContext":"itXod","./SelectableContext":"4O42Z","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],jxpy4:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("classnames"),c=n.interopDefault(l),u=e("react"),f=n.interopDefault(u),d=e("./ThemeProvider"),h=["bsPrefix","className","as"],p=f.default.forwardRef((function(e,t){var r=e.bsPrefix,n=e.className,i=e.as,s=(0,a.default)(e,h);r=(0,d.useBootstrapPrefix)(r,"navbar-brand");var l=i||(s.href?"a":"span");return f.default.createElement(l,(0,o.default)({},s,{ref:t,className:(0,c.default)(n,r)}))}));p.displayName="NavbarBrand",r.default=p},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",classnames:"a30GA",react:"hCMiB","./ThemeProvider":"4qm1d","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"3ZrHM":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("react"),c=n.interopDefault(l),u=e("./Collapse"),f=n.interopDefault(u),d=e("./ThemeProvider"),h=e("./NavbarContext"),p=n.interopDefault(h),v=["children","bsPrefix"],m=c.default.forwardRef((function(e,t){var r=e.children,n=e.bsPrefix,i=(0,a.default)(e,v);return n=(0,d.useBootstrapPrefix)(n,"navbar-collapse"),c.default.createElement(p.default.Consumer,null,(function(e){return c.default.createElement(f.default,(0,o.default)({in:!(!e||!e.expanded)},i),c.default.createElement("div",{ref:t,className:n},r))}))}));m.displayName="NavbarCollapse",r.default=m},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",react:"hCMiB","./Collapse":"kQ2a8","./ThemeProvider":"4qm1d","./NavbarContext":"itXod","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"2BfxA":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("classnames"),c=n.interopDefault(l),u=e("react"),f=n.interopDefault(u),d=e("@restart/hooks/useEventCallback"),h=n.interopDefault(d),p=e("./ThemeProvider"),v=e("./NavbarContext"),m=n.interopDefault(v),_=["bsPrefix","className","children","label","as","onClick"],g=f.default.forwardRef((function(e,t){var r=e.bsPrefix,n=e.className,i=e.children,s=e.label,l=e.as,d=void 0===l?"button":l,v=e.onClick,g=(0,a.default)(e,_);r=(0,p.useBootstrapPrefix)(r,"navbar-toggler");var y=(0,u.useContext)(m.default)||{},b=y.onToggle,C=y.expanded,S=(0,h.default)((function(e){v&&v(e),b&&b()}));return"button"===d&&(g.type="button"),f.default.createElement(d,(0,o.default)({},g,{ref:t,onClick:S,"aria-label":s,className:(0,c.default)(n,r,!C&&"collapsed")}),i||f.default.createElement("span",{className:r+"-icon"}))}));g.displayName="NavbarToggle",g.defaultProps={label:"Toggle navigation"},r.default=g},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",classnames:"a30GA",react:"hCMiB","@restart/hooks/useEventCallback":"5SvjJ","./ThemeProvider":"4qm1d","./NavbarContext":"itXod","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"312tf":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("@babel/runtime/helpers/esm/extends"),o=n.interopDefault(i),s=e("@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"),a=n.interopDefault(s),l=e("classnames"),c=n.interopDefault(l),u=e("react"),f=n.interopDefault(u),d=e("./ThemeProvider"),h=e("./Dropdown"),p=n.interopDefault(h),v=e("./NavLink"),m=n.interopDefault(v),_=["id","title","children","bsPrefix","className","rootCloseEvent","menuRole","disabled","active","renderMenuOnMount"],g=f.default.forwardRef((function(e,t){var r=e.id,n=e.title,i=e.children,s=e.bsPrefix,l=e.className,u=e.rootCloseEvent,h=e.menuRole,v=e.disabled,g=e.active,y=e.renderMenuOnMount,b=(0,a.default)(e,_),C=(0,d.useBootstrapPrefix)(void 0,"nav-item");return f.default.createElement(p.default,(0,o.default)({ref:t},b,{className:(0,c.default)(l,C)}),f.default.createElement(p.default.Toggle,{id:r,eventKey:null,active:g,disabled:v,childBsPrefix:s,as:m.default},n),f.default.createElement(p.default.Menu,{role:h,renderOnMount:y,rootCloseEvent:u},i))}));g.displayName="NavDropdown",g.Item=p.default.Item,g.ItemText=p.default.ItemText,g.Divider=p.default.Divider,g.Header=p.default.Header,r.default=g},{"@babel/runtime/helpers/esm/extends":"aSkWz","@babel/runtime/helpers/esm/objectWithoutPropertiesLoose":"aedgo",classnames:"a30GA",react:"hCMiB","./ThemeProvider":"4qm1d","./Dropdown":"84zDQ","./NavLink":"czDW5","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],luUwe:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("react"),o=n.interopDefault(i),s=(e("./Footer.scss"),e("../XTerm/XTerm")),a=n.interopDefault(s),l=e("react-bootstrap");r.default=function(e,t){t.children;var r=(0,i.useState)(""),n=r[0],s=r[1],c=(0,i.useState)(""),u=c[0],f=c[1],d=(0,i.useState)(!1),h=d[0],p=d[1],v=function(){var e=window.scrollY;p(e>200)};(0,i.useEffect)((function(){try{fetch("http://localhost:5000/api/getFooterWebSocketAddress").then((function(e){return e.json()})).then((function(e){s(e.address),console.log("Successfully updated Footer Websocket Address: ",n)}))}catch(e){console.log(e)}}),[e]),(0,i.useEffect)((function(){window.addEventListener("scroll",v)}),[]);var m=["footer-container"];return h&&m.push("scrolled"),o.default.createElement("div",{className:"footer-container"},o.default.createElement("div",{style:{display:"block",padding:"20px",height:"20rem",width:"100%"}}),o.default.createElement("div",{className:m.join(" "),style:{padding:"20px",position:"fixed",left:"0",bottom:"0",height:"20rem",width:"100%"}},o.default.createElement("header",null,o.default.createElement(l.InputGroup,{className:"mb-3"},o.default.createElement(l.FormControl,{placeholder:"You can enter a different webterminal socket URL","aria-label":"Websocket URL","aria-describedby":"wsUrl",value:u.value,onChange:function(e){return f(e.target.value)},defaultValue:n}),o.default.createElement(l.InputGroup.Text,{id:"wsUrl"}),o.default.createElement("button",{onClick:function(){s(u)}},"Connect"))),n&&e?o.default.createElement("div",{style:{width:"100%"}},o.default.createElement(a.default,{key:n,wsUrl:n,lesson:e})):o.default.createElement("div",null)))}},{react:"hCMiB","./Footer.scss":"8ZKMr","../XTerm/XTerm":"jDFwM","react-bootstrap":"10Wfc","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"8ZKMr":[function(){},{}],jDFwM:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i,o=e("react"),s=n.interopDefault(o),a=e("xterm"),l=e("xterm-addon-fit"),c=e("xterm-addon-web-links"),u=e("xterm-addon-attach"),f=e("react-use-websocket"),d=n.interopDefault(f),h=(e("xterm/css/xterm.css"),function(){return h=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},h.apply(this,arguments)}),p=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};r.default=function(e){e.ws;var t,r=e.wsUrl,n=e.lesson,f=(e.wsRef,p(e,["ws","wsUrl","lesson","wsRef"])),v=(0,o.useRef)(),m=(0,o.useRef)(),_=(0,o.useState)(""),g=(_[0],_[1],(0,o.useState)(r)),y=g[0],b=g[1],C=(0,d.default)(y),S=C.sendMessage,w=C.readyState,E=C.getWebSocket,x=(0,o.useState)(""),k=(x[0],x[1]),L=["Windows","Win16","Win32","WinCE"].indexOf(navigator.platform)>=0,D=(new Event("terminalClose"),new Event("promptReady")),j=E(),O=function(e){var t=e.target.innerText;console.log("Sending data: ",t),S(t+"\n")};function M(e,t){var r="monospace";r="'"+t+"', "+r,e.setOption("fontFamily",r)}function T(e,t){i=t,M(e,t),M(e,"Ubuntu Mono"),M(e,t)}(0,o.useEffect)((function(){document.querySelectorAll(".clickable-code,code").forEach((function(e){e.addEventListener("click",O)})),b(r)}),[n]);var R=(t={},t[WebSocket.CONNECTING]="Connecting",t[WebSocket.OPEN]="Open",t[WebSocket.CLOSING]="Closing",t[WebSocket.CLOSED]="Closed",t)[w];return(0,o.useEffect)((function(){if(j){var e=m.current=new(0,a.Terminal)({rendererType:"canvas",convertEol:!0,cursorBlink:!0,cursorStyle:"block",macOptionIsMeta:!0,scrollback:1e4,tabStopWidth:10,windowsMode:L}),t=new(0,l.FitAddon),r=new(0,c.WebLinksAddon);e.loadAddon(r),e.loadAddon(t),e.open(v.current),t.fit(),e.focus(),window.term=e,e.getOption("fontSize"),"Open"!=R&&(j.onopen=function(t){e.loadAddon(new(0,u.AttachAddon)(j)),k("Open"),e._initialized=!0,T(e,i="Ubuntu Mono");var r=setInterval((function(){void 0!==term&&(T(e,i),window.dispatchEvent(D),clearInterval(r))}),200)})}}),[j,n]),s.default.createElement("div",{bordered:"true",shaded:"true",bodyfill:"true"},s.default.createElement("div",h({ref:v},f)))}},{react:"hCMiB",xterm:"lttsj","xterm-addon-fit":"dH6ib","xterm-addon-web-links":"jj3cB","xterm-addon-attach":"aHZBR","react-use-websocket":"cbx89","xterm/css/xterm.css":"f4Whq","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],lttsj:[function(e,t,r){self,t.exports=(()=>{"use strict";var e={4567:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AccessibilityManager=void 0;var o=r(9042),s=r(6114),a=r(9924),l=r(3656),c=r(844),u=r(5596),f=r(9631),d=function(e){function t(t,r){var n=e.call(this)||this;n._terminal=t,n._renderService=r,n._liveRegionLineCount=0,n._charsToConsume=[],n._charsToAnnounce="",n._accessibilityTreeRoot=document.createElement("div"),n._accessibilityTreeRoot.classList.add("xterm-accessibility"),n._accessibilityTreeRoot.tabIndex=0,n._rowContainer=document.createElement("div"),n._rowContainer.setAttribute("role","list"),n._rowContainer.classList.add("xterm-accessibility-tree"),n._rowElements=[];for(var i=0;i<n._terminal.rows;i++)n._rowElements[i]=n._createAccessibilityTreeNode(),n._rowContainer.appendChild(n._rowElements[i]);if(n._topBoundaryFocusListener=function(e){return n._onBoundaryFocus(e,0)},n._bottomBoundaryFocusListener=function(e){return n._onBoundaryFocus(e,1)},n._rowElements[0].addEventListener("focus",n._topBoundaryFocusListener),n._rowElements[n._rowElements.length-1].addEventListener("focus",n._bottomBoundaryFocusListener),n._refreshRowsDimensions(),n._accessibilityTreeRoot.appendChild(n._rowContainer),n._renderRowsDebouncer=new a.TimeBasedDebouncer(n._renderRows.bind(n)),n._refreshRows(),n._liveRegion=document.createElement("div"),n._liveRegion.classList.add("live-region"),n._liveRegion.setAttribute("aria-live","assertive"),n._accessibilityTreeRoot.appendChild(n._liveRegion),!n._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return n._terminal.element.insertAdjacentElement("afterbegin",n._accessibilityTreeRoot),n.register(n._renderRowsDebouncer),n.register(n._terminal.onResize((function(e){return n._onResize(e.rows)}))),n.register(n._terminal.onRender((function(e){return n._refreshRows(e.start,e.end)}))),n.register(n._terminal.onScroll((function(){return n._refreshRows()}))),n.register(n._terminal.onA11yChar((function(e){return n._onChar(e)}))),n.register(n._terminal.onLineFeed((function(){return n._onChar("\n")}))),n.register(n._terminal.onA11yTab((function(e){return n._onTab(e)}))),n.register(n._terminal.onKey((function(e){return n._onKey(e.key)}))),n.register(n._terminal.onBlur((function(){return n._clearLiveRegion()}))),n.register(n._renderService.onDimensionsChange((function(){return n._refreshRowsDimensions()}))),n._screenDprMonitor=new u.ScreenDprMonitor,n.register(n._screenDprMonitor),n._screenDprMonitor.setListener((function(){return n._refreshRowsDimensions()})),n.register((0,l.addDisposableDomListener)(window,"resize",(function(){return n._refreshRowsDimensions()}))),n}return i(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),(0,f.removeElementFromParent)(this._accessibilityTreeRoot),this._rowElements.length=0},t.prototype._onBoundaryFocus=function(e,t){var r=e.target,n=this._rowElements[0===t?1:this._rowElements.length-2];if(r.getAttribute("aria-posinset")!==(0===t?"1":""+this._terminal.buffer.lines.length)&&e.relatedTarget===n){var i,o;if(0===t?(i=r,o=this._rowElements.pop(),this._rowContainer.removeChild(o)):(i=this._rowElements.shift(),o=r,this._rowContainer.removeChild(i)),i.removeEventListener("focus",this._topBoundaryFocusListener),o.removeEventListener("focus",this._bottomBoundaryFocusListener),0===t){var s=this._createAccessibilityTreeNode();this._rowElements.unshift(s),this._rowContainer.insertAdjacentElement("afterbegin",s)}else s=this._createAccessibilityTreeNode(),this._rowElements.push(s),this._rowContainer.appendChild(s);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===t?-1:1),this._rowElements[0===t?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}},t.prototype._onResize=function(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var t=this._rowContainer.children.length;t<this._terminal.rows;t++)this._rowElements[t]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[t]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e},t.prototype._onTab=function(e){for(var t=0;t<e;t++)this._onChar(" ")},t.prototype._onChar=function(e){var t=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=o.tooMuchOutput)),s.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout((function(){t._accessibilityTreeRoot.appendChild(t._liveRegion)}),0))},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,s.isMac&&(0,f.removeElementFromParent)(this._liveRegion)},t.prototype._onKey=function(e){this._clearLiveRegion(),this._charsToConsume.push(e)},t.prototype._refreshRows=function(e,t){this._renderRowsDebouncer.refresh(e,t,this._terminal.rows)},t.prototype._renderRows=function(e,t){for(var r=this._terminal.buffer,n=r.lines.length.toString(),i=e;i<=t;i++){var o=r.translateBufferLineToString(r.ydisp+i,!0),s=(r.ydisp+i+1).toString(),a=this._rowElements[i];a&&(0===o.length?a.innerText=" ":a.textContent=o,a.setAttribute("aria-posinset",s),a.setAttribute("aria-setsize",n))}this._announceCharacters()},t.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e])}},t.prototype._refreshRowDimensions=function(e){e.style.height=this._renderService.dimensions.actualCellHeight+"px"},t.prototype._announceCharacters=function(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},t}(c.Disposable);t.AccessibilityManager=d},3614:(e,t)=>{function r(e){return e.replace(/\r?\n/g,"\r")}function n(e,t){return t?"[200~"+e+"[201~":e}function i(e,t,i){e=n(e=r(e),i.decPrivateModes.bracketedPasteMode),i.triggerDataEvent(e,!0),t.value=""}function o(e,t,r){var n=r.getBoundingClientRect(),i=e.clientX-n.left-10,o=e.clientY-n.top-10;t.style.width="20px",t.style.height="20px",t.style.left=i+"px",t.style.top=o+"px",t.style.zIndex="1000",t.focus()}Object.defineProperty(t,"__esModule",{value:!0}),t.rightClickHandler=t.moveTextAreaUnderMouseCursor=t.paste=t.handlePasteEvent=t.copyHandler=t.bracketTextForPaste=t.prepareTextForTerminal=void 0,t.prepareTextForTerminal=r,t.bracketTextForPaste=n,t.copyHandler=function(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()},t.handlePasteEvent=function(e,t,r){e.stopPropagation(),e.clipboardData&&i(e.clipboardData.getData("text/plain"),t,r)},t.paste=i,t.moveTextAreaUnderMouseCursor=o,t.rightClickHandler=function(e,t,r,n,i){o(e,t,r),i&&n.rightClickSelect(e),t.value=n.selectionText,t.select()}},4774:(e,t)=>{var r,n,i,o,s;function a(e){var t=e.toString(16);return t.length<2?"0"+t:t}function l(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}Object.defineProperty(t,"__esModule",{value:!0}),t.contrastRatio=t.toPaddedHex=t.rgba=t.rgb=t.css=t.color=t.channels=void 0,(s=r=t.channels||(t.channels={})).toCss=function(e,t,r,n){return void 0!==n?"#"+a(e)+a(t)+a(r)+a(n):"#"+a(e)+a(t)+a(r)},s.toRgba=function(e,t,r,n){return void 0===n&&(n=255),(e<<24|t<<16|r<<8|n)>>>0},(n=t.color||(t.color={})).blend=function(e,t){var n=(255&t.rgba)/255;if(1===n)return{css:t.css,rgba:t.rgba};var i=t.rgba>>24&255,o=t.rgba>>16&255,s=t.rgba>>8&255,a=e.rgba>>24&255,l=e.rgba>>16&255,c=e.rgba>>8&255,u=a+Math.round((i-a)*n),f=l+Math.round((o-l)*n),d=c+Math.round((s-c)*n);return{css:r.toCss(u,f,d),rgba:r.toRgba(u,f,d)}},n.isOpaque=function(e){return 255==(255&e.rgba)},n.ensureContrastRatio=function(e,t,r){var n=o.ensureContrastRatio(e.rgba,t.rgba,r);if(n)return o.toColor(n>>24&255,n>>16&255,n>>8&255)},n.opaque=function(e){var t=(255|e.rgba)>>>0,n=o.toChannels(t),i=n[0],s=n[1],a=n[2];return{css:r.toCss(i,s,a),rgba:t}},n.opacity=function(e,t){var n=Math.round(255*t),i=o.toChannels(e.rgba),s=i[0],a=i[1],l=i[2];return{css:r.toCss(s,a,l,n),rgba:r.toRgba(s,a,l,n)}},n.toColorRGB=function(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]},(t.css||(t.css={})).toColor=function(e){switch(e.length){case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(e){function t(e,t,r){var n=e/255,i=t/255,o=r/255;return.2126*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.7152*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))}e.relativeLuminance=function(e){return t(e>>16&255,e>>8&255,255&e)},e.relativeLuminance2=t}(i=t.rgb||(t.rgb={})),function(e){function t(e,t,r){for(var n=e>>24&255,o=e>>16&255,s=e>>8&255,a=t>>24&255,c=t>>16&255,u=t>>8&255,f=l(i.relativeLuminance2(a,u,c),i.relativeLuminance2(n,o,s));f<r&&(a>0||c>0||u>0);)a-=Math.max(0,Math.ceil(.1*a)),c-=Math.max(0,Math.ceil(.1*c)),u-=Math.max(0,Math.ceil(.1*u)),f=l(i.relativeLuminance2(a,u,c),i.relativeLuminance2(n,o,s));return(a<<24|c<<16|u<<8|255)>>>0}function n(e,t,r){for(var n=e>>24&255,o=e>>16&255,s=e>>8&255,a=t>>24&255,c=t>>16&255,u=t>>8&255,f=l(i.relativeLuminance2(a,u,c),i.relativeLuminance2(n,o,s));f<r&&(a<255||c<255||u<255);)a=Math.min(255,a+Math.ceil(.1*(255-a))),c=Math.min(255,c+Math.ceil(.1*(255-c))),u=Math.min(255,u+Math.ceil(.1*(255-u))),f=l(i.relativeLuminance2(a,u,c),i.relativeLuminance2(n,o,s));return(a<<24|c<<16|u<<8|255)>>>0}e.ensureContrastRatio=function(e,r,o){var s=i.relativeLuminance(e>>8),a=i.relativeLuminance(r>>8);if(l(s,a)<o)return a<s?t(e,r,o):n(e,r,o)},e.reduceLuminance=t,e.increaseLuminance=n,e.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},e.toColor=function(e,t,n){return{css:r.toCss(e,t,n),rgba:r.toRgba(e,t,n)}}}(o=t.rgba||(t.rgba={})),t.toPaddedHex=a,t.contrastRatio=l},7239:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastCache=void 0;var r=function(){function e(){this._color={},this._rgba={}}return e.prototype.clear=function(){this._color={},this._rgba={}},e.prototype.setCss=function(e,t,r){this._rgba[e]||(this._rgba[e]={}),this._rgba[e][t]=r},e.prototype.getCss=function(e,t){return this._rgba[e]?this._rgba[e][t]:void 0},e.prototype.setColor=function(e,t,r){this._color[e]||(this._color[e]={}),this._color[e][t]=r},e.prototype.getColor=function(e,t){return this._color[e]?this._color[e][t]:void 0},e}();t.ColorContrastCache=r},5680:function(e,t,r){var n=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.ColorManager=t.DEFAULT_ANSI_COLORS=void 0;var i=r(4774),o=r(7239),s=i.css.toColor("#ffffff"),a=i.css.toColor("#000000"),l=i.css.toColor("#ffffff"),c=i.css.toColor("#000000"),u={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};t.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var e=[i.css.toColor("#2e3436"),i.css.toColor("#cc0000"),i.css.toColor("#4e9a06"),i.css.toColor("#c4a000"),i.css.toColor("#3465a4"),i.css.toColor("#75507b"),i.css.toColor("#06989a"),i.css.toColor("#d3d7cf"),i.css.toColor("#555753"),i.css.toColor("#ef2929"),i.css.toColor("#8ae234"),i.css.toColor("#fce94f"),i.css.toColor("#729fcf"),i.css.toColor("#ad7fa8"),i.css.toColor("#34e2e2"),i.css.toColor("#eeeeec")],t=[0,95,135,175,215,255],r=0;r<216;r++){var n=t[r/36%6|0],o=t[r/6%6|0],s=t[r%6];e.push({css:i.channels.toCss(n,o,s),rgba:i.channels.toRgba(n,o,s)})}for(r=0;r<24;r++){var a=8+10*r;e.push({css:i.channels.toCss(a,a,a),rgba:i.channels.toRgba(a,a,a)})}return e}());var f=function(){function e(e,r){this.allowTransparency=r;var n=e.createElement("canvas");n.width=1,n.height=1;var f=n.getContext("2d");if(!f)throw new Error("Could not get rendering context");this._ctx=f,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new o.ColorContrastCache,this.colors={foreground:s,background:a,cursor:l,cursorAccent:c,selectionTransparent:u,selectionOpaque:i.color.blend(a,u),ansi:t.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors()}return e.prototype.onOptionsChange=function(e){"minimumContrastRatio"===e&&this._contrastCache.clear()},e.prototype.setTheme=function(e){void 0===e&&(e={}),this.colors.foreground=this._parseColor(e.foreground,s),this.colors.background=this._parseColor(e.background,a),this.colors.cursor=this._parseColor(e.cursor,l,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,c,!0),this.colors.selectionTransparent=this._parseColor(e.selection,u,!0),this.colors.selectionOpaque=i.color.blend(this.colors.background,this.colors.selectionTransparent),i.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=i.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(e.black,t.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,t.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,t.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,t.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,t.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,t.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,t.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,t.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,t.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,t.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,t.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,t.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,t.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,t.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,t.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,t.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear(),this._updateRestoreColors()},e.prototype.restoreColor=function(e){if(void 0!==e)switch(e){case 256:this.colors.foreground=this._restoreColors.foreground;break;case 257:this.colors.background=this._restoreColors.background;break;case 258:this.colors.cursor=this._restoreColors.cursor;break;default:this.colors.ansi[e]=this._restoreColors.ansi[e]}else for(var t=0;t<this._restoreColors.ansi.length;++t)this.colors.ansi[t]=this._restoreColors.ansi[t]},e.prototype._updateRestoreColors=function(){this._restoreColors={foreground:this.colors.foreground,background:this.colors.background,cursor:this.colors.cursor,ansi:n([],this.colors.ansi,!0)}},e.prototype._parseColor=function(e,t,r){if(void 0===r&&(r=this.allowTransparency),void 0===e)return t;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+e+" is invalid using fallback "+t.css),t;this._ctx.fillRect(0,0,1,1);var n=this._ctx.getImageData(0,0,1,1).data;if(255!==n[3]){if(!r)return console.warn("Color: "+e+" is using transparency, but allowTransparency is false. Using fallback "+t.css+"."),t;var o=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map((function(e){return Number(e)})),s=o[0],a=o[1],l=o[2],c=o[3],u=Math.round(255*c);return{rgba:i.channels.toRgba(s,a,l,u),css:e}}return{css:this._ctx.fillStyle,rgba:i.channels.toRgba(n[0],n[1],n[2],n[3])}},e}();t.ColorManager=f},9631:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.removeElementFromParent=void 0,t.removeElementFromParent=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0,i=t;n<i.length;n++){var o=i[n];null===(e=null==o?void 0:o.parentElement)||void 0===e||e.removeChild(o)}}},3656:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(e,t,r,n){e.addEventListener(t,r,n);var i=!1;return{dispose:function(){i||(i=!0,e.removeEventListener(t,r,n))}}}},3551:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseZone=t.Linkifier=void 0;var o=r(8460),s=r(2585),a=function(){function e(e,t,r){this._bufferService=e,this._logService=t,this._unicodeService=r,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new o.EventEmitter,this._onHideLinkUnderline=new o.EventEmitter,this._onLinkTooltip=new o.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(e.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),e.prototype.attachToDom=function(e,t){this._element=e,this._mouseZoneManager=t},e.prototype.linkifyRows=function(t,r){var n=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=t,this._rowsToLinkify.end=r):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,t),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,r)),this._mouseZoneManager.clearAll(t,r),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout((function(){return n._linkifyRows()}),e._timeBeforeLatency))},e.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var e=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var t=e.ydisp+this._rowsToLinkify.start;if(!(t>=e.lines.length)){for(var r=e.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,n=Math.ceil(2e3/this._bufferService.cols),i=this._bufferService.buffer.iterator(!1,t,r,n,n);i.hasNext();)for(var o=i.next(),s=0;s<this._linkMatchers.length;s++)this._doLinkifyRow(o.range.first,o.content,this._linkMatchers[s]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},e.prototype.registerLinkMatcher=function(e,t,r){if(void 0===r&&(r={}),!t)throw new Error("handler must be defined");var n={id:this._nextLinkMatcherId++,regex:e,handler:t,matchIndex:r.matchIndex,validationCallback:r.validationCallback,hoverTooltipCallback:r.tooltipCallback,hoverLeaveCallback:r.leaveCallback,willLinkActivate:r.willLinkActivate,priority:r.priority||0};return this._addLinkMatcherToList(n),n.id},e.prototype._addLinkMatcherToList=function(e){if(0!==this._linkMatchers.length){for(var t=this._linkMatchers.length-1;t>=0;t--)if(e.priority<=this._linkMatchers[t].priority)return void this._linkMatchers.splice(t+1,0,e);this._linkMatchers.splice(0,0,e)}else this._linkMatchers.push(e)},e.prototype.deregisterLinkMatcher=function(e){for(var t=0;t<this._linkMatchers.length;t++)if(this._linkMatchers[t].id===e)return this._linkMatchers.splice(t,1),!0;return!1},e.prototype._doLinkifyRow=function(e,t,r){for(var n,i=this,o=new RegExp(r.regex.source,(r.regex.flags||"")+"g"),s=-1,a=function(){var a=n["number"!=typeof r.matchIndex?0:r.matchIndex];if(!a)return l._logService.debug("match found without corresponding matchIndex",n,r),"break";if(s=t.indexOf(a,s+1),o.lastIndex=s+a.length,s<0)return"break";var c=l._bufferService.buffer.stringIndexToBufferIndex(e,s);if(c[0]<0)return"break";var u=l._bufferService.buffer.lines.get(c[0]);if(!u)return"break";var f=u.getFg(c[1]),d=f?f>>9&511:void 0;r.validationCallback?r.validationCallback(a,(function(e){i._rowsTimeoutId||e&&i._addLink(c[1],c[0]-i._bufferService.buffer.ydisp,a,r,d)})):l._addLink(c[1],c[0]-l._bufferService.buffer.ydisp,a,r,d)},l=this;null!==(n=o.exec(t))&&"break"!==a(););},e.prototype._addLink=function(e,t,r,n,i){var o=this;if(this._mouseZoneManager&&this._element){var s=this._unicodeService.getStringCellWidth(r),a=e%this._bufferService.cols,c=t+Math.floor(e/this._bufferService.cols),u=(a+s)%this._bufferService.cols,f=c+Math.floor((a+s)/this._bufferService.cols);0===u&&(u=this._bufferService.cols,f--),this._mouseZoneManager.add(new l(a+1,c+1,u+1,f+1,(function(e){if(n.handler)return n.handler(e,r);var t=window.open();t?(t.opener=null,t.location.href=r):console.warn("Opening link blocked as opener could not be cleared")}),(function(){o._onShowLinkUnderline.fire(o._createLinkHoverEvent(a,c,u,f,i)),o._element.classList.add("xterm-cursor-pointer")}),(function(e){o._onLinkTooltip.fire(o._createLinkHoverEvent(a,c,u,f,i)),n.hoverTooltipCallback&&n.hoverTooltipCallback(e,r,{start:{x:a,y:c},end:{x:u,y:f}})}),(function(){o._onHideLinkUnderline.fire(o._createLinkHoverEvent(a,c,u,f,i)),o._element.classList.remove("xterm-cursor-pointer"),n.hoverLeaveCallback&&n.hoverLeaveCallback()}),(function(e){return!n.willLinkActivate||n.willLinkActivate(e,r)})))}},e.prototype._createLinkHoverEvent=function(e,t,r,n,i){return{x1:e,y1:t,x2:r,y2:n,cols:this._bufferService.cols,fg:i}},e._timeBeforeLatency=200,e=n([i(0,s.IBufferService),i(1,s.ILogService),i(2,s.IUnicodeService)],e)}();t.Linkifier=a;var l=function(e,t,r,n,i,o,s,a,l){this.x1=e,this.y1=t,this.x2=r,this.y2=n,this.clickCallback=i,this.hoverCallback=o,this.tooltipCallback=s,this.leaveCallback=a,this.willLinkActivate=l};t.MouseZone=l},6465:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Linkifier2=void 0;var a=r(2585),l=r(8460),c=r(844),u=r(3656),f=function(e){function t(t){var r=e.call(this)||this;return r._bufferService=t,r._linkProviders=[],r._linkCacheDisposables=[],r._isMouseOut=!0,r._activeLine=-1,r._onShowLinkUnderline=r.register(new l.EventEmitter),r._onHideLinkUnderline=r.register(new l.EventEmitter),r.register((0,c.getDisposeArrayDisposable)(r._linkCacheDisposables)),r}return i(t,e),Object.defineProperty(t.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),t.prototype.registerLinkProvider=function(e){var t=this;return this._linkProviders.push(e),{dispose:function(){var r=t._linkProviders.indexOf(e);-1!==r&&t._linkProviders.splice(r,1)}}},t.prototype.attachToDom=function(e,t,r){var n=this;this._element=e,this._mouseService=t,this._renderService=r,this.register((0,u.addDisposableDomListener)(this._element,"mouseleave",(function(){n._isMouseOut=!0,n._clearCurrentLink()}))),this.register((0,u.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,u.addDisposableDomListener)(this._element,"click",this._onClick.bind(this)))},t.prototype._onMouseMove=function(e){if(this._lastMouseEvent=e,this._element&&this._mouseService){var t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(t){this._isMouseOut=!1;for(var r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(i.classList.contains("xterm"))break;if(i.classList.contains("xterm-hover"))return}this._lastBufferCell&&t.x===this._lastBufferCell.x&&t.y===this._lastBufferCell.y||(this._onHover(t),this._lastBufferCell=t)}}},t.prototype._onHover=function(e){if(this._activeLine!==e.y)return this._clearCurrentLink(),void this._askForLink(e,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))},t.prototype._askForLink=function(e,t){var r,n=this;this._activeProviderReplies&&t||(null===(r=this._activeProviderReplies)||void 0===r||r.forEach((function(e){null==e||e.forEach((function(e){e.link.dispose&&e.link.dispose()}))})),this._activeProviderReplies=new Map,this._activeLine=e.y);var i=!1;this._linkProviders.forEach((function(r,o){var s;t?(null===(s=n._activeProviderReplies)||void 0===s?void 0:s.get(o))&&(i=n._checkLinkProviderResult(o,e,i)):r.provideLinks(e.y,(function(t){var r,s;if(!n._isMouseOut){var a=null==t?void 0:t.map((function(e){return{link:e}}));null===(r=n._activeProviderReplies)||void 0===r||r.set(o,a),i=n._checkLinkProviderResult(o,e,i),(null===(s=n._activeProviderReplies)||void 0===s?void 0:s.size)===n._linkProviders.length&&n._removeIntersectingLinks(e.y,n._activeProviderReplies)}}))}))},t.prototype._removeIntersectingLinks=function(e,t){for(var r=new Set,n=0;n<t.size;n++){var i=t.get(n);if(i)for(var o=0;o<i.length;o++)for(var s=i[o],a=s.link.range.start.y<e?0:s.link.range.start.x,l=s.link.range.end.y>e?this._bufferService.cols:s.link.range.end.x,c=a;c<=l;c++){if(r.has(c)){i.splice(o--,1);break}r.add(c)}}},t.prototype._checkLinkProviderResult=function(e,t,r){var n,i=this;if(!this._activeProviderReplies)return r;for(var o=this._activeProviderReplies.get(e),s=!1,a=0;a<e;a++)this._activeProviderReplies.has(a)&&!this._activeProviderReplies.get(a)||(s=!0);if(!s&&o){var l=o.find((function(e){return i._linkAtPosition(e.link,t)}));l&&(r=!0,this._handleNewLink(l))}if(this._activeProviderReplies.size===this._linkProviders.length&&!r)for(a=0;a<this._activeProviderReplies.size;a++){var c=null===(n=this._activeProviderReplies.get(a))||void 0===n?void 0:n.find((function(e){return i._linkAtPosition(e.link,t)}));if(c){r=!0,this._handleNewLink(c);break}}return r},t.prototype._onClick=function(e){if(this._element&&this._mouseService&&this._currentLink){var t=this._positionFromMouseEvent(e,this._element,this._mouseService);t&&this._linkAtPosition(this._currentLink.link,t)&&this._currentLink.link.activate(e,this._currentLink.link.text)}},t.prototype._clearCurrentLink=function(e,t){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!t||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,c.disposeArray)(this._linkCacheDisposables))},t.prototype._handleNewLink=function(e){var t=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var r=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);r&&this._linkAtPosition(e.link,r)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:void 0===e.link.decorations||e.link.decorations.underline,pointerCursor:void 0===e.link.decorations||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:function(){var e,r;return null===(r=null===(e=t._currentLink)||void 0===e?void 0:e.state)||void 0===r?void 0:r.decorations.pointerCursor},set:function(e){var r,n;(null===(r=t._currentLink)||void 0===r?void 0:r.state)&&t._currentLink.state.decorations.pointerCursor!==e&&(t._currentLink.state.decorations.pointerCursor=e,t._currentLink.state.isHovered&&(null===(n=t._element)||void 0===n||n.classList.toggle("xterm-cursor-pointer",e)))}},underline:{get:function(){var e,r;return null===(r=null===(e=t._currentLink)||void 0===e?void 0:e.state)||void 0===r?void 0:r.decorations.underline},set:function(r){var n,i,o;(null===(n=t._currentLink)||void 0===n?void 0:n.state)&&(null===(o=null===(i=t._currentLink)||void 0===i?void 0:i.state)||void 0===o?void 0:o.decorations.underline)!==r&&(t._currentLink.state.decorations.underline=r,t._currentLink.state.isHovered&&t._fireUnderlineEvent(e.link,r))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange((function(e){var r=0===e.start?0:e.start+1+t._bufferService.buffer.ydisp;t._clearCurrentLink(r,e.end+1+t._bufferService.buffer.ydisp)}))))}},t.prototype._linkHover=function(e,t,r){var n;(null===(n=this._currentLink)||void 0===n?void 0:n.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(r,t.text)},t.prototype._fireUnderlineEvent=function(e,t){var r=e.range,n=this._bufferService.buffer.ydisp,i=this._createLinkUnderlineEvent(r.start.x-1,r.start.y-n-1,r.end.x,r.end.y-n-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(i)},t.prototype._linkLeave=function(e,t,r){var n;(null===(n=this._currentLink)||void 0===n?void 0:n.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(r,t.text)},t.prototype._linkAtPosition=function(e,t){var r=e.range.start.y===e.range.end.y,n=e.range.start.y<t.y,i=e.range.end.y>t.y;return(r&&e.range.start.x<=t.x&&e.range.end.x>=t.x||n&&e.range.end.x>=t.x||i&&e.range.start.x<=t.x||n&&i)&&e.range.start.y<=t.y&&e.range.end.y>=t.y},t.prototype._positionFromMouseEvent=function(e,t,r){var n=r.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(n)return{x:n[0],y:n[1]+this._bufferService.buffer.ydisp}},t.prototype._createLinkUnderlineEvent=function(e,t,r,n,i){return{x1:e,y1:t,x2:r,y2:n,cols:this._bufferService.cols,fg:i}},o([s(0,a.IBufferService)],t)}(c.Disposable);t.Linkifier2=f},9042:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tooMuchOutput=t.promptLabel=void 0,t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseZoneManager=void 0;var a=r(844),l=r(3656),c=r(4725),u=r(2585),f=function(e){function t(t,r,n,i,o,s){var a=e.call(this)||this;return a._element=t,a._screenElement=r,a._bufferService=n,a._mouseService=i,a._selectionService=o,a._optionsService=s,a._zones=[],a._areZonesActive=!1,a._lastHoverCoords=[void 0,void 0],a._initialSelectionLength=0,a.register((0,l.addDisposableDomListener)(a._element,"mousedown",(function(e){return a._onMouseDown(e)}))),a._mouseMoveListener=function(e){return a._onMouseMove(e)},a._mouseLeaveListener=function(e){return a._onMouseLeave(e)},a._clickListener=function(e){return a._onClick(e)},a}return i(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},t.prototype.add=function(e){this._zones.push(e),1===this._zones.length&&this._activate()},t.prototype.clearAll=function(e,t){if(0!==this._zones.length){e&&t||(e=0,t=this._bufferService.rows-1);for(var r=0;r<this._zones.length;r++){var n=this._zones[r];(n.y1>e&&n.y1<=t+1||n.y2>e&&n.y2<=t+1||n.y1<e&&n.y2>t+1)&&(this._currentZone&&this._currentZone===n&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(r--,1))}0===this._zones.length&&this._deactivate()}},t.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},t.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},t.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},t.prototype._onHover=function(e){var t=this,r=this._findZoneEventAt(e);r!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),r&&(this._currentZone=r,r.hoverCallback&&r.hoverCallback(e),this._tooltipTimeout=window.setTimeout((function(){return t._onTooltip(e)}),this._optionsService.rawOptions.linkTooltipHoverDuration)))},t.prototype._onTooltip=function(e){this._tooltipTimeout=void 0;var t=this._findZoneEventAt(e);null==t||t.tooltipCallback(e)},t.prototype._onMouseDown=function(e){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var t=this._findZoneEventAt(e);(null==t?void 0:t.willLinkActivate(e))&&(e.preventDefault(),e.stopImmediatePropagation())}},t.prototype._onMouseLeave=function(e){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},t.prototype._onClick=function(e){var t=this._findZoneEventAt(e),r=this._getSelectionLength();t&&r===this._initialSelectionLength&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},t.prototype._getSelectionLength=function(){var e=this._selectionService.selectionText;return e?e.length:0},t.prototype._findZoneEventAt=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(t)for(var r=t[0],n=t[1],i=0;i<this._zones.length;i++){var o=this._zones[i];if(o.y1===o.y2){if(n===o.y1&&r>=o.x1&&r<o.x2)return o}else if(n===o.y1&&r>=o.x1||n===o.y2&&r<o.x2||n>o.y1&&n<o.y2)return o}},o([s(2,u.IBufferService),s(3,c.IMouseService),s(4,c.ISelectionService),s(5,u.IOptionsService)],t)}(a.Disposable);t.MouseZoneManager=f},6193:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RenderDebouncer=void 0;var r=function(){function e(e){this._renderCallback=e}return e.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.refresh=function(e,t,r){var n=this;this._rowCount=r,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=window.requestAnimationFrame((function(){return n._innerRefresh()})))},e.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(e,t)}},e}();t.RenderDebouncer=r},5596:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenDprMonitor=void 0;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._currentDevicePixelRatio=window.devicePixelRatio,t}return i(t,e),t.prototype.setListener=function(e){var t=this;this._listener&&this.clearListener(),this._listener=e,this._outerListener=function(){t._listener&&(t._listener(window.devicePixelRatio,t._currentDevicePixelRatio),t._updateDpr())},this._updateDpr()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clearListener()},t.prototype._updateDpr=function(){var e;this._outerListener&&(null===(e=this._resolutionMediaMatchList)||void 0===e||e.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},t.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},t}(r(844).Disposable);t.ScreenDprMonitor=o},3236:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;var o=r(2950),s=r(1680),a=r(3614),l=r(2584),c=r(5435),u=r(3525),f=r(3551),d=r(9312),h=r(6114),p=r(3656),v=r(9042),m=r(357),_=r(6954),g=r(4567),y=r(1296),b=r(7399),C=r(8460),S=r(8437),w=r(5680),E=r(3230),x=r(4725),k=r(428),L=r(8934),D=r(6465),j=r(5114),O=r(8969),M=r(4774),T=r(4269),R=r(5941),P=r(7641),A="undefined"!=typeof window?window.document:null,B=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,t)||this;return r.browser=h,r._keyDownHandled=!1,r._keyPressHandled=!1,r._unprocessedDeadKey=!1,r._onCursorMove=new C.EventEmitter,r._onKey=new C.EventEmitter,r._onRender=new C.EventEmitter,r._onSelectionChange=new C.EventEmitter,r._onTitleChange=new C.EventEmitter,r._onBell=new C.EventEmitter,r._onFocus=new C.EventEmitter,r._onBlur=new C.EventEmitter,r._onA11yCharEmitter=new C.EventEmitter,r._onA11yTabEmitter=new C.EventEmitter,r._setup(),r.linkifier=r._instantiationService.createInstance(f.Linkifier),r.linkifier2=r.register(r._instantiationService.createInstance(D.Linkifier2)),r.decorationService=r.register(r._instantiationService.createInstance(P.DecorationService)),r.register(r._inputHandler.onRequestBell((function(){return r.bell()}))),r.register(r._inputHandler.onRequestRefreshRows((function(e,t){return r.refresh(e,t)}))),r.register(r._inputHandler.onRequestSendFocus((function(){return r._reportFocus()}))),r.register(r._inputHandler.onRequestReset((function(){return r.reset()}))),r.register(r._inputHandler.onRequestWindowsOptionsReport((function(e){return r._reportWindowsOptions(e)}))),r.register(r._inputHandler.onColor((function(e){return r._handleColorEvent(e)}))),r.register((0,C.forwardEvent)(r._inputHandler.onCursorMove,r._onCursorMove)),r.register((0,C.forwardEvent)(r._inputHandler.onTitleChange,r._onTitleChange)),r.register((0,C.forwardEvent)(r._inputHandler.onA11yChar,r._onA11yCharEmitter)),r.register((0,C.forwardEvent)(r._inputHandler.onA11yTab,r._onA11yTabEmitter)),r.register(r._bufferService.onResize((function(e){return r._afterResize(e.cols,e.rows)}))),r}return i(t,e),Object.defineProperty(t.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBell",{get:function(){return this._onBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),t.prototype._handleColorEvent=function(e){var t,r;if(this._colorManager){for(var n=0,i=e;n<i.length;n++){var o=i[n],s=void 0,a="";switch(o.index){case 256:s="foreground",a="10";break;case 257:s="background",a="11";break;case 258:s="cursor",a="12";break;default:s="ansi",a="4;"+o.index}if(s)switch(o.type){case 0:var c=M.color.toColorRGB("ansi"===s?this._colorManager.colors.ansi[o.index]:this._colorManager.colors[s]);this.coreService.triggerDataEvent(l.C0.ESC+"]"+a+";"+(0,R.toRgbString)(c)+l.C0.BEL);break;case 1:"ansi"===s?this._colorManager.colors.ansi[o.index]=M.rgba.toColor.apply(M.rgba,o.color):this._colorManager.colors[s]=M.rgba.toColor.apply(M.rgba,o.color);break;case 2:this._colorManager.restoreColor(o.index)}}null===(t=this._renderService)||void 0===t||t.setColors(this._colorManager.colors),null===(r=this.viewport)||void 0===r||r.onThemeChange(this._colorManager.colors)}},t.prototype.dispose=function(){var t,r,n;this._isDisposed||(e.prototype.dispose.call(this),null===(t=this._renderService)||void 0===t||t.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},null===(n=null===(r=this.element)||void 0===r?void 0:r.parentNode)||void 0===n||n.removeChild(this.element))},t.prototype._setup=function(){e.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(t.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),t.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},t.prototype._updateOptions=function(t){var r,n,i,o;switch(e.prototype._updateOptions.call(this,t),t){case"fontFamily":case"fontSize":null===(r=this._renderService)||void 0===r||r.clear(),null===(n=this._charSizeService)||void 0===n||n.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"customGlyphs":case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":null===(i=this.viewport)||void 0===i||i.syncScrollArea();break;case"screenReaderMode":this.optionsService.rawOptions.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new g.AccessibilityManager(this,this._renderService)):(null===(o=this._accessibilityManager)||void 0===o||o.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.rawOptions.theme)}},t.prototype._onTextAreaFocus=function(e){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(l.C0.ESC+"[I"),this.updateCursorStyle(e),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},t.prototype.blur=function(){var e;return null===(e=this.textarea)||void 0===e?void 0:e.blur()},t.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(l.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},t.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing&&this._renderService){var e=this.buffer.ybase+this.buffer.y,t=this.buffer.lines.get(e);if(t){var r=Math.min(this.buffer.x,this.cols-1),n=this._renderService.dimensions.actualCellHeight,i=t.getWidth(r),o=this._renderService.dimensions.actualCellWidth*i,s=this.buffer.y*this._renderService.dimensions.actualCellHeight,a=r*this._renderService.dimensions.actualCellWidth;this.textarea.style.left=a+"px",this.textarea.style.top=s+"px",this.textarea.style.width=o+"px",this.textarea.style.height=n+"px",this.textarea.style.lineHeight=n+"px",this.textarea.style.zIndex="-5"}}},t.prototype._initGlobal=function(){var e=this;this._bindKeys(),this.register((0,p.addDisposableDomListener)(this.element,"copy",(function(t){e.hasSelection()&&(0,a.copyHandler)(t,e._selectionService)})));var t=function(t){return(0,a.handlePasteEvent)(t,e.textarea,e.coreService)};this.register((0,p.addDisposableDomListener)(this.textarea,"paste",t)),this.register((0,p.addDisposableDomListener)(this.element,"paste",t)),h.isFirefox?this.register((0,p.addDisposableDomListener)(this.element,"mousedown",(function(t){2===t.button&&(0,a.rightClickHandler)(t,e.textarea,e.screenElement,e._selectionService,e.options.rightClickSelectsWord)}))):this.register((0,p.addDisposableDomListener)(this.element,"contextmenu",(function(t){(0,a.rightClickHandler)(t,e.textarea,e.screenElement,e._selectionService,e.options.rightClickSelectsWord)}))),h.isLinux&&this.register((0,p.addDisposableDomListener)(this.element,"auxclick",(function(t){1===t.button&&(0,a.moveTextAreaUnderMouseCursor)(t,e.textarea,e.screenElement)})))},t.prototype._bindKeys=function(){var e=this;this.register((0,p.addDisposableDomListener)(this.textarea,"keyup",(function(t){return e._keyUp(t)}),!0)),this.register((0,p.addDisposableDomListener)(this.textarea,"keydown",(function(t){return e._keyDown(t)}),!0)),this.register((0,p.addDisposableDomListener)(this.textarea,"keypress",(function(t){return e._keyPress(t)}),!0)),this.register((0,p.addDisposableDomListener)(this.textarea,"compositionstart",(function(){return e._compositionHelper.compositionstart()}))),this.register((0,p.addDisposableDomListener)(this.textarea,"compositionupdate",(function(t){return e._compositionHelper.compositionupdate(t)}))),this.register((0,p.addDisposableDomListener)(this.textarea,"compositionend",(function(){return e._compositionHelper.compositionend()}))),this.register((0,p.addDisposableDomListener)(this.textarea,"input",(function(t){return e._inputEvent(t)}),!0)),this.register(this.onRender((function(){return e._compositionHelper.updateCompositionElements()}))),this.register(this.onRender((function(t){return e._queueLinkification(t.start,t.end)})))},t.prototype.open=function(e){var t=this;if(!e)throw new Error("Terminal requires a parent element.");e.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=e.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),e.appendChild(this.element);var r=A.createDocumentFragment();this._viewportElement=A.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),r.appendChild(this._viewportElement),this._viewportScrollArea=A.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=A.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=A.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),r.appendChild(this.screenElement),this.textarea=A.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",v.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register((0,p.addDisposableDomListener)(this.textarea,"focus",(function(e){return t._onTextAreaFocus(e)}))),this.register((0,p.addDisposableDomListener)(this.textarea,"blur",(function(){return t._onTextAreaBlur()}))),this._helperContainer.appendChild(this.textarea);var n=this._instantiationService.createInstance(j.CoreBrowserService,this.textarea);this._instantiationService.setService(x.ICoreBrowserService,n),this._charSizeService=this._instantiationService.createInstance(k.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(x.ICharSizeService,this._charSizeService),this._theme=this.options.theme||this._theme,this._colorManager=new w.ColorManager(A,this.options.allowTransparency),this.register(this.optionsService.onOptionChange((function(e){return t._colorManager.onOptionsChange(e)}))),this._colorManager.setTheme(this._theme),this._characterJoinerService=this._instantiationService.createInstance(T.CharacterJoinerService),this._instantiationService.setService(x.ICharacterJoinerService,this._characterJoinerService);var i=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(E.RenderService,i,this.rows,this.screenElement)),this._instantiationService.setService(x.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange((function(e){return t._onRender.fire(e)}))),this.onResize((function(e){return t._renderService.resize(e.cols,e.rows)})),this._compositionView=A.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(o.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(r),this._soundService=this._instantiationService.createInstance(m.SoundService),this._instantiationService.setService(x.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(L.MouseService),this._instantiationService.setService(x.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(s.Viewport,(function(e){return t.scrollLines(e,!0,1)}),this._viewportElement,this._viewportScrollArea,this.element),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar((function(){return t.viewport.syncScrollArea()}))),this.register(this.viewport),this.register(this.onCursorMove((function(){t._renderService.onCursorMove(),t._syncTextArea()}))),this.register(this.onResize((function(){return t._renderService.onResize(t.cols,t.rows)}))),this.register(this.onBlur((function(){return t._renderService.onBlur()}))),this.register(this.onFocus((function(){return t._renderService.onFocus()}))),this.register(this._renderService.onDimensionsChange((function(){return t.viewport.syncScrollArea()}))),this._selectionService=this.register(this._instantiationService.createInstance(d.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(x.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines((function(e){return t.scrollLines(e.amount,e.suppressScrollEvent)}))),this.register(this._selectionService.onSelectionChange((function(){return t._onSelectionChange.fire()}))),this.register(this._selectionService.onRequestRedraw((function(e){return t._renderService.onSelectionChanged(e.start,e.end,e.columnSelectMode)}))),this.register(this._selectionService.onLinuxMouseSelection((function(e){t.textarea.value=e,t.textarea.focus(),t.textarea.select()}))),this.register(this._onScroll.event((function(e){t.viewport.syncScrollArea(),t._selectionService.refresh()}))),this.register((0,p.addDisposableDomListener)(this._viewportElement,"scroll",(function(){return t._selectionService.refresh()}))),this._mouseZoneManager=this._instantiationService.createInstance(_.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll((function(){return t._mouseZoneManager.clearAll()}))),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.decorationService.attachToDom(this.screenElement,this._renderService,this._bufferService),this.register((0,p.addDisposableDomListener)(this.element,"mousedown",(function(e){return t._selectionService.onMouseDown(e)}))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new g.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},t.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(u.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(y.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},t.prototype._setTheme=function(e){var t,r,n;this._theme=e,null===(t=this._colorManager)||void 0===t||t.setTheme(e),null===(r=this._renderService)||void 0===r||r.setColors(this._colorManager.colors),null===(n=this.viewport)||void 0===n||n.onThemeChange(this._colorManager.colors)},t.prototype.bindMouse=function(){var e=this,t=this,r=this.element;function n(e){var r,n,i=t._mouseService.getRawByteCoords(e,t.screenElement,t.cols,t.rows);if(!i)return!1;switch(e.overrideType||e.type){case"mousemove":n=32,void 0===e.buttons?(r=3,void 0!==e.button&&(r=e.button<3?e.button:3)):r=1&e.buttons?0:4&e.buttons?1:2&e.buttons?2:3;break;case"mouseup":n=0,r=e.button<3?e.button:3;break;case"mousedown":n=1,r=e.button<3?e.button:3;break;case"wheel":0!==e.deltaY&&(n=e.deltaY<0?0:1),r=4;break;default:return!1}return!(void 0===n||void 0===r||r>4)&&t.coreMouseService.triggerMouseEvent({col:i.x-33,row:i.y-33,button:r,action:n,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey})}var i={mouseup:null,wheel:null,mousedrag:null,mousemove:null},o=function(t){return n(t),t.buttons||(e._document.removeEventListener("mouseup",i.mouseup),i.mousedrag&&e._document.removeEventListener("mousemove",i.mousedrag)),e.cancel(t)},s=function(t){return n(t),e.cancel(t,!0)},a=function(e){e.buttons&&n(e)},c=function(e){e.buttons||n(e)};this.register(this.coreMouseService.onProtocolChange((function(t){t?("debug"===e.optionsService.rawOptions.logLevel&&e._logService.debug("Binding to mouse events:",e.coreMouseService.explainEvents(t)),e.element.classList.add("enable-mouse-events"),e._selectionService.disable()):(e._logService.debug("Unbinding from mouse events."),e.element.classList.remove("enable-mouse-events"),e._selectionService.enable()),8&t?i.mousemove||(r.addEventListener("mousemove",c),i.mousemove=c):(r.removeEventListener("mousemove",i.mousemove),i.mousemove=null),16&t?i.wheel||(r.addEventListener("wheel",s,{passive:!1}),i.wheel=s):(r.removeEventListener("wheel",i.wheel),i.wheel=null),2&t?i.mouseup||(i.mouseup=o):(e._document.removeEventListener("mouseup",i.mouseup),i.mouseup=null),4&t?i.mousedrag||(i.mousedrag=a):(e._document.removeEventListener("mousemove",i.mousedrag),i.mousedrag=null)}))),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,p.addDisposableDomListener)(r,"mousedown",(function(t){if(t.preventDefault(),e.focus(),e.coreMouseService.areMouseEventsActive&&!e._selectionService.shouldForceSelection(t))return n(t),i.mouseup&&e._document.addEventListener("mouseup",i.mouseup),i.mousedrag&&e._document.addEventListener("mousemove",i.mousedrag),e.cancel(t)}))),this.register((0,p.addDisposableDomListener)(r,"wheel",(function(t){if(!i.wheel){if(!e.buffer.hasScrollback){var r=e.viewport.getLinesScrolled(t);if(0===r)return;for(var n=l.C0.ESC+(e.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(t.deltaY<0?"A":"B"),o="",s=0;s<Math.abs(r);s++)o+=n;return e.coreService.triggerDataEvent(o,!0),e.cancel(t,!0)}return e.viewport.onWheel(t)?e.cancel(t):void 0}}),{passive:!1})),this.register((0,p.addDisposableDomListener)(r,"touchstart",(function(t){if(!e.coreMouseService.areMouseEventsActive)return e.viewport.onTouchStart(t),e.cancel(t)}),{passive:!0})),this.register((0,p.addDisposableDomListener)(r,"touchmove",(function(t){if(!e.coreMouseService.areMouseEventsActive)return e.viewport.onTouchMove(t)?void 0:e.cancel(t)}),{passive:!1}))},t.prototype.refresh=function(e,t){var r;null===(r=this._renderService)||void 0===r||r.refreshRows(e,t)},t.prototype._queueLinkification=function(e,t){var r;null===(r=this.linkifier)||void 0===r||r.linkifyRows(e,t)},t.prototype.updateCursorStyle=function(e){var t;(null===(t=this._selectionService)||void 0===t?void 0:t.shouldColumnSelect(e))?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},t.prototype._showCursor=function(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},t.prototype.scrollLines=function(t,r,n){void 0===n&&(n=0),e.prototype.scrollLines.call(this,t,r,n),this.refresh(0,this.rows-1)},t.prototype.paste=function(e){(0,a.paste)(e,this.textarea,this.coreService)},t.prototype.attachCustomKeyEventHandler=function(e){this._customKeyEventHandler=e},t.prototype.registerLinkMatcher=function(e,t,r){var n=this.linkifier.registerLinkMatcher(e,t,r);return this.refresh(0,this.rows-1),n},t.prototype.deregisterLinkMatcher=function(e){this.linkifier.deregisterLinkMatcher(e)&&this.refresh(0,this.rows-1)},t.prototype.registerLinkProvider=function(e){return this.linkifier2.registerLinkProvider(e)},t.prototype.registerCharacterJoiner=function(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");var t=this._characterJoinerService.register(e);return this.refresh(0,this.rows-1),t},t.prototype.deregisterCharacterJoiner=function(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(e)&&this.refresh(0,this.rows-1)},Object.defineProperty(t.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),t.prototype.addMarker=function(e){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)},t.prototype.registerDecoration=function(e){return this.decorationService.registerDecoration(e)},t.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},t.prototype.select=function(e,t,r){this._selectionService.setSelection(e,t,r)},t.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},t.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},t.prototype.clearSelection=function(){var e;null===(e=this._selectionService)||void 0===e||e.clearSelection()},t.prototype.selectAll=function(){var e;null===(e=this._selectionService)||void 0===e||e.selectAll()},t.prototype.selectLines=function(e,t){var r;null===(r=this._selectionService)||void 0===r||r.selectLines(e,t)},t.prototype._keyDown=function(e){if(this._keyDownHandled=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(!this._compositionHelper.keydown(e))return this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;"Dead"!==e.key&&"AltGraph"!==e.key||(this._unprocessedDeadKey=!0);var t=(0,b.evaluateKeyboardEvent)(e,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),3===t.type||2===t.type){var r=this.rows-1;return this.scrollLines(2===t.type?-r:r),this.cancel(e,!0)}return 1===t.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,e)||(t.cancel&&this.cancel(e,!0),!t.key||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(t.key!==l.C0.ETX&&t.key!==l.C0.CR||(this.textarea.value=""),this._onKey.fire({key:t.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t.key,!0),this.optionsService.rawOptions.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(e,!0))))},t.prototype._isThirdLevelShift=function(e,t){var r=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey||e.isWindows&&t.getModifierState("AltGraph");return"keypress"===t.type?r:r&&(!t.keyCode||t.keyCode>47)},t.prototype._keyUp=function(e){this._customKeyEventHandler&&!1===this._customKeyEventHandler(e)||(function(e){return 16===e.keyCode||17===e.keyCode||18===e.keyCode}(e)||this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)},t.prototype._keyPress=function(e){var t;if(this._keyPressHandled=!1,this._keyDownHandled)return!1;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)||(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))},t.prototype._inputEvent=function(e){if(e.data&&"insertText"===e.inputType&&!e.composed&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}return!1},t.prototype.bell=function(){var e;this._soundBell()&&(null===(e=this._soundService)||void 0===e||e.playBellSound()),this._onBell.fire()},t.prototype.resize=function(t,r){t!==this.cols||r!==this.rows?e.prototype.resize.call(this,t,r):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},t.prototype._afterResize=function(e,t){var r,n;null===(r=this._charSizeService)||void 0===r||r.measure(),null===(n=this.viewport)||void 0===n||n.syncScrollArea(!0)},t.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.clearMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var e=1;e<this.rows;e++)this.buffer.lines.push(this.buffer.getBlankLine(S.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire({position:this.buffer.ydisp,source:0})}},t.prototype.reset=function(){var t,r;this.options.rows=this.rows,this.options.cols=this.cols;var n=this._customKeyEventHandler;this._setup(),e.prototype.reset.call(this),null===(t=this._selectionService)||void 0===t||t.reset(),this._customKeyEventHandler=n,this.refresh(0,this.rows-1),null===(r=this.viewport)||void 0===r||r.syncScrollArea()},t.prototype.clearTextureAtlas=function(){var e;null===(e=this._renderService)||void 0===e||e.clearTextureAtlas()},t.prototype._reportFocus=function(){var e;(null===(e=this.element)||void 0===e?void 0:e.classList.contains("focus"))?this.coreService.triggerDataEvent(l.C0.ESC+"[I"):this.coreService.triggerDataEvent(l.C0.ESC+"[O")},t.prototype._reportWindowsOptions=function(e){if(this._renderService)switch(e){case c.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var t=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),r=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this.coreService.triggerDataEvent(l.C0.ESC+"[4;"+r+";"+t+"t");break;case c.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var n=this._renderService.dimensions.scaledCellWidth.toFixed(0),i=this._renderService.dimensions.scaledCellHeight.toFixed(0);this.coreService.triggerDataEvent(l.C0.ESC+"[6;"+i+";"+n+"t")}},t.prototype.cancel=function(e,t){if(this.options.cancelEvents||t)return e.preventDefault(),e.stopPropagation(),!1},t.prototype._visualBell=function(){return!1},t.prototype._soundBell=function(){return"sound"===this.options.bellStyle},t}(O.CoreTerminal);t.Terminal=B},9924:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TimeBasedDebouncer=void 0;var r=function(){function e(e,t){void 0===t&&(t=1e3),this._renderCallback=e,this._debounceThresholdMS=t,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return e.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},e.prototype.refresh=function(e,t,r){var n=this;this._rowCount=r,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t;var i=Date.now();if(i-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=i,this._innerRefresh();else if(!this._additionalRefreshRequested){var o=i-this._lastRefreshMs,s=this._debounceThresholdMS-o;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout((function(){n._lastRefreshMs=Date.now(),n._innerRefresh(),n._additionalRefreshRequested=!1,n._refreshTimeoutID=void 0}),s)}},e.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)}},e}();t.TimeBasedDebouncer=r},1680:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Viewport=void 0;var a=r(844),l=r(3656),c=r(4725),u=r(2585),f=function(e){function t(t,r,n,i,o,s,a,c){var u=e.call(this)||this;return u._scrollLines=t,u._viewportElement=r,u._scrollArea=n,u._element=i,u._bufferService=o,u._optionsService=s,u._charSizeService=a,u._renderService=c,u.scrollBarWidth=0,u._currentRowHeight=0,u._currentScaledCellHeight=0,u._lastRecordedBufferLength=0,u._lastRecordedViewportHeight=0,u._lastRecordedBufferHeight=0,u._lastTouchY=0,u._lastScrollTop=0,u._lastHadScrollBar=!1,u._wheelPartialScroll=0,u._refreshAnimationFrame=null,u._ignoreNextScrollEvent=!1,u.scrollBarWidth=u._viewportElement.offsetWidth-u._scrollArea.offsetWidth||15,u._lastHadScrollBar=!0,u.register((0,l.addDisposableDomListener)(u._viewportElement,"scroll",u._onScroll.bind(u))),u._activeBuffer=u._bufferService.buffer,u.register(u._bufferService.buffers.onBufferActivate((function(e){return u._activeBuffer=e.activeBuffer}))),u._renderDimensions=u._renderService.dimensions,u.register(u._renderService.onDimensionsChange((function(e){return u._renderDimensions=e}))),setTimeout((function(){return u.syncScrollArea()}),0),u}return i(t,e),t.prototype.onThemeChange=function(e){this._viewportElement.style.backgroundColor=e.background.css},t.prototype._refresh=function(e){var t=this;if(e)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame((function(){return t._innerRefresh()})))},t.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var t=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==t&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=t),0===this._optionsService.rawOptions.scrollback?this.scrollBarWidth=0:this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this._lastHadScrollBar=this.scrollBarWidth>0;var r=window.getComputedStyle(this._element),n=parseInt(r.paddingLeft)+parseInt(r.paddingRight);this._viewportElement.style.width=(this._renderService.dimensions.actualCellWidth*this._bufferService.cols+this.scrollBarWidth+(this._lastHadScrollBar?n:0)).toString()+"px",this._refreshAnimationFrame=null},t.prototype.syncScrollArea=function(e){if(void 0===e&&(e=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight?this._lastHadScrollBar!==this._optionsService.rawOptions.scrollback>0&&this._refresh(e):this._refresh(e)},t.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(t)}},t.prototype._bubbleScroll=function(e,t){var r=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&0!==this._viewportElement.scrollTop||t>0&&r<this._lastRecordedBufferHeight)||(e.cancelable&&e.preventDefault(),!1)},t.prototype.onWheel=function(e){var t=this._getPixelsScrolled(e);return 0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},t.prototype._getPixelsScrolled=function(e){if(0===e.deltaY||e.shiftKey)return 0;var t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._currentRowHeight*this._bufferService.rows),t},t.prototype.getLinesScrolled=function(e){if(0===e.deltaY||e.shiftKey)return 0;var t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(t/=this._currentRowHeight+0,this._wheelPartialScroll+=t,t=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t},t.prototype._applyScrollModifier=function(e,t){var r=this._optionsService.rawOptions.fastScrollModifier;return"alt"===r&&t.altKey||"ctrl"===r&&t.ctrlKey||"shift"===r&&t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity},t.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},t.prototype.onTouchMove=function(e){var t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},o([s(4,u.IBufferService),s(5,u.IOptionsService),s(6,c.ICharSizeService),s(7,c.IRenderService)],t)}(a.Disposable);t.Viewport=f},2950:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHelper=void 0;var o=r(4725),s=r(2585),a=function(){function e(e,t,r,n,i,o){this._textarea=e,this._compositionView=t,this._bufferService=r,this._optionsService=n,this._coreService=i,this._renderService=o,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(e.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),e.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},e.prototype.compositionupdate=function(e){var t=this;this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout((function(){t._compositionPosition.end=t._textarea.value.length}),0)},e.prototype.compositionend=function(){this._finalizeComposition(!0)},e.prototype.keydown=function(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)},e.prototype._finalizeComposition=function(e){var t=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,e){var r={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout((function(){var e;t._isSendingComposition&&(t._isSendingComposition=!1,r.start+=t._dataAlreadySent.length,(e=t._isComposing?t._textarea.value.substring(r.start,r.end):t._textarea.value.substring(r.start)).length>0&&t._coreService.triggerDataEvent(e,!0))}),0)}else{this._isSendingComposition=!1;var n=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(n,!0)}},e.prototype._handleAnyTextareaChanges=function(){var e=this,t=this._textarea.value;setTimeout((function(){if(!e._isComposing){var r=e._textarea.value.replace(t,"");r.length>0&&(e._dataAlreadySent=r,e._coreService.triggerDataEvent(r,!0))}}),0)},e.prototype.updateCompositionElements=function(e){var t=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var r=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),n=this._renderService.dimensions.actualCellHeight,i=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,o=r*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=o+"px",this._compositionView.style.top=i+"px",this._compositionView.style.height=n+"px",this._compositionView.style.lineHeight=n+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var s=this._compositionView.getBoundingClientRect();this._textarea.style.left=o+"px",this._textarea.style.top=i+"px",this._textarea.style.width=Math.max(s.width,1)+"px",this._textarea.style.height=Math.max(s.height,1)+"px",this._textarea.style.lineHeight=s.height+"px"}e||setTimeout((function(){return t.updateCompositionElements(!0)}),0)}},n([i(2,s.IBufferService),i(3,s.IOptionsService),i(4,s.ICoreService),i(5,o.IRenderService)],e)}();t.CompositionHelper=a},9806:(e,t)=>{function r(e,t){var r=t.getBoundingClientRect();return[e.clientX-r.left,e.clientY-r.top]}Object.defineProperty(t,"__esModule",{value:!0}),t.getRawByteCoords=t.getCoords=t.getCoordsRelativeToElement=void 0,t.getCoordsRelativeToElement=r,t.getCoords=function(e,t,n,i,o,s,a,l){if(o){var c=r(e,t);if(c)return c[0]=Math.ceil((c[0]+(l?s/2:0))/s),c[1]=Math.ceil(c[1]/a),c[0]=Math.min(Math.max(c[0],1),n+(l?1:0)),c[1]=Math.min(Math.max(c[1],1),i),c}},t.getRawByteCoords=function(e){if(e)return{x:e[0]+32,y:e[1]+32}}},9504:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.moveToCellSequence=void 0;var n=r(2584);function i(e,t,r,n){var i=e-o(r,e),a=t-o(r,t),u=Math.abs(i-a)-function(e,t,r){for(var n=0,i=e-o(r,e),a=t-o(r,t),l=0;l<Math.abs(i-a);l++){var c="A"===s(e,t)?-1:1,u=r.buffer.lines.get(i+c*l);(null==u?void 0:u.isWrapped)&&n++}return n}(e,t,r);return c(u,l(s(e,t),n))}function o(e,t){for(var r=0,n=e.buffer.lines.get(t),i=null==n?void 0:n.isWrapped;i&&t>=0&&t<e.rows;)r++,i=null==(n=e.buffer.lines.get(--t))?void 0:n.isWrapped;return r}function s(e,t){return e>t?"A":"B"}function a(e,t,r,n,i,o){for(var s=e,a=t,l="";s!==r||a!==n;)s+=i?1:-1,i&&s>o.cols-1?(l+=o.buffer.translateBufferLineToString(a,!1,e,s),s=0,e=0,a++):!i&&s<0&&(l+=o.buffer.translateBufferLineToString(a,!1,0,e+1),e=s=o.cols-1,a--);return l+o.buffer.translateBufferLineToString(a,!1,e,s)}function l(e,t){var r=t?"O":"[";return n.C0.ESC+r+e}function c(e,t){e=Math.floor(e);for(var r="",n=0;n<e;n++)r+=t;return r}t.moveToCellSequence=function(e,t,r,n){var s,u=r.buffer.x,f=r.buffer.y;if(!r.buffer.hasScrollback)return function(e,t,r,n,s,u){return 0===i(t,n,s,u).length?"":c(a(e,t,e,t-o(s,t),!1,s).length,l("D",u))}(u,f,0,t,r,n)+i(f,t,r,n)+function(e,t,r,n,s,u){var f;f=i(t,n,s,u).length>0?n-o(s,n):t;var d=n,h=function(e,t,r,n,s,a){var l;return l=i(r,n,s,a).length>0?n-o(s,n):t,e<r&&l<=n||e>=r&&l<n?"C":"D"}(e,t,r,n,s,u);return c(a(e,f,r,d,"C"===h,s).length,l(h,u))}(u,f,e,t,r,n);if(f===t)return s=u>e?"D":"C",c(Math.abs(u-e),l(s,n));s=f>t?"D":"C";var d=Math.abs(f-t);return c(function(e,t){return t.cols-e}(f>t?e:u,r)+(d-1)*r.cols+1+((f>t?u:e)-1),l(s,n))}},4389:function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;var i=r(3236),o=r(9042),s=r(7975),a=r(7090),l=r(5741),c=r(8285),u=["cols","rows"],f=function(){function e(e){var t=this;this._core=new i.Terminal(e),this._addonManager=new l.AddonManager,this._publicOptions=n({},this._core.options);var r=function(e){return t._core.options[e]},o=function(e,r){t._checkReadonlyOptions(e),t._core.options[e]=r};for(var s in this._core.options){var a={get:r.bind(this,s),set:o.bind(this,s)};Object.defineProperty(this._publicOptions,s,a)}}return e.prototype._checkReadonlyOptions=function(e){if(u.includes(e))throw new Error('Option "'+e+'" can only be set in the constructor')},e.prototype._checkProposedApi=function(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(e.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new s.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unicode",{get:function(){return this._checkProposedApi(),new a.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new c.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modes",{get:function(){var e=this._core.coreService.decPrivateModes,t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,wraparoundMode:e.wraparound}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._publicOptions},set:function(e){for(var t in e)this._publicOptions[t]=e[t]},enumerable:!1,configurable:!0}),e.prototype.blur=function(){this._core.blur()},e.prototype.focus=function(){this._core.focus()},e.prototype.resize=function(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)},e.prototype.open=function(e){this._core.open(e)},e.prototype.attachCustomKeyEventHandler=function(e){this._core.attachCustomKeyEventHandler(e)},e.prototype.registerLinkMatcher=function(e,t,r){return this._checkProposedApi(),this._core.registerLinkMatcher(e,t,r)},e.prototype.deregisterLinkMatcher=function(e){this._checkProposedApi(),this._core.deregisterLinkMatcher(e)},e.prototype.registerLinkProvider=function(e){return this._checkProposedApi(),this._core.registerLinkProvider(e)},e.prototype.registerCharacterJoiner=function(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)},e.prototype.deregisterCharacterJoiner=function(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)},e.prototype.registerMarker=function(e){return void 0===e&&(e=0),this._checkProposedApi(),this._verifyIntegers(e),this._core.addMarker(e)},e.prototype.registerDecoration=function(e){var t,r,n;return this._checkProposedApi(),this._verifyPositiveIntegers(null!==(t=e.x)&&void 0!==t?t:0,null!==(r=e.width)&&void 0!==r?r:0,null!==(n=e.height)&&void 0!==n?n:0),this._core.registerDecoration(e)},e.prototype.addMarker=function(e){return this.registerMarker(e)},e.prototype.hasSelection=function(){return this._core.hasSelection()},e.prototype.select=function(e,t,r){this._verifyIntegers(e,t,r),this._core.select(e,t,r)},e.prototype.getSelection=function(){return this._core.getSelection()},e.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},e.prototype.clearSelection=function(){this._core.clearSelection()},e.prototype.selectAll=function(){this._core.selectAll()},e.prototype.selectLines=function(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)},e.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},e.prototype.scrollLines=function(e){this._verifyIntegers(e),this._core.scrollLines(e)},e.prototype.scrollPages=function(e){this._verifyIntegers(e),this._core.scrollPages(e)},e.prototype.scrollToTop=function(){this._core.scrollToTop()},e.prototype.scrollToBottom=function(){this._core.scrollToBottom()},e.prototype.scrollToLine=function(e){this._verifyIntegers(e),this._core.scrollToLine(e)},e.prototype.clear=function(){this._core.clear()},e.prototype.write=function(e,t){this._core.write(e,t)},e.prototype.writeUtf8=function(e,t){this._core.write(e,t)},e.prototype.writeln=function(e,t){this._core.write(e),this._core.write("\r\n",t)},e.prototype.paste=function(e){this._core.paste(e)},e.prototype.getOption=function(e){return this._core.optionsService.getOption(e)},e.prototype.setOption=function(e,t){this._checkReadonlyOptions(e),this._core.optionsService.setOption(e,t)},e.prototype.refresh=function(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)},e.prototype.reset=function(){this._core.reset()},e.prototype.clearTextureAtlas=function(){this._core.clearTextureAtlas()},e.prototype.loadAddon=function(e){return this._addonManager.loadAddon(this,e)},Object.defineProperty(e,"strings",{get:function(){return o},enumerable:!1,configurable:!0}),e.prototype._verifyIntegers=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++){var i=n[r];if(i===1/0||isNaN(i)||i%1!=0)throw new Error("This API only accepts integers")}},e.prototype._verifyPositiveIntegers=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++){var i=n[r];if(i&&(i===1/0||isNaN(i)||i%1!=0||i<0))throw new Error("This API only accepts positive integers")}},e}();t.Terminal=f},1546:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseRenderLayer=void 0;var n=r(643),i=r(8803),o=r(1420),s=r(3734),a=r(1752),l=r(4774),c=r(9631),u=r(8978),f=function(){function e(e,t,r,n,i,o,s,a){this._container=e,this._alpha=n,this._colors=i,this._rendererId=o,this._bufferService=s,this._optionsService=a,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+t+"-layer"),this._canvas.style.zIndex=r.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return e.prototype.dispose=function(){var e;(0,c.removeElementFromParent)(this._canvas),null===(e=this._charAtlas)||void 0===e||e.dispose()},e.prototype._initCanvas=function(){this._ctx=(0,a.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},e.prototype.onOptionsChanged=function(){},e.prototype.onBlur=function(){},e.prototype.onFocus=function(){},e.prototype.onCursorMove=function(){},e.prototype.onGridChanged=function(e,t){},e.prototype.onSelectionChanged=function(e,t,r){void 0===r&&(r=!1)},e.prototype.setColors=function(e){this._refreshCharAtlas(e)},e.prototype._setTransparency=function(e){if(e!==this._alpha){var t=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,t),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},e.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,o.acquireCharAtlas)(this._optionsService.rawOptions,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},e.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},e.prototype.clearTextureAtlas=function(){var e;null===(e=this._charAtlas)||void 0===e||e.clear()},e.prototype._fillCells=function(e,t,r,n){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,r*this._scaledCellWidth,n*this._scaledCellHeight)},e.prototype._fillMiddleLineAtCells=function(e,t,r){void 0===r&&(r=1);var n=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-n-window.devicePixelRatio,r*this._scaledCellWidth,window.devicePixelRatio)},e.prototype._fillBottomLineAtCells=function(e,t,r){void 0===r&&(r=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,r*this._scaledCellWidth,window.devicePixelRatio)},e.prototype._fillLeftLineAtCell=function(e,t,r){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio*r,this._scaledCellHeight)},e.prototype._strokeRectAtCell=function(e,t,r,n){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,r*this._scaledCellWidth-window.devicePixelRatio,n*this._scaledCellHeight-window.devicePixelRatio)},e.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},e.prototype._clearCells=function(e,t,r,n){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,r*this._scaledCellWidth,n*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,r*this._scaledCellWidth,n*this._scaledCellHeight))},e.prototype._fillCharTrueColor=function(e,t,r){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=i.TEXT_BASELINE,this._clipRow(r);var n=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(n=(0,u.tryDrawCustomChar)(this._ctx,e.getChars(),t*this._scaledCellWidth,r*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),n||this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},e.prototype._drawChars=function(e,t,r){var o,s,a,l=this._getContrastColor(e);l||e.isFgRGB()||e.isBgRGB()?this._drawUncachedChars(e,t,r,l):(e.isInverse()?(s=e.isBgDefault()?i.INVERTED_DEFAULT_COLOR:e.getBgColor(),a=e.isFgDefault()?i.INVERTED_DEFAULT_COLOR:e.getFgColor()):(a=e.isBgDefault()?n.DEFAULT_COLOR:e.getBgColor(),s=e.isFgDefault()?n.DEFAULT_COLOR:e.getFgColor()),s+=this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&s<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||n.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||n.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=a,this._currentGlyphIdentifier.fg=s,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic(),(null===(o=this._charAtlas)||void 0===o?void 0:o.draw(this._ctx,this._currentGlyphIdentifier,t*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop))||this._drawUncachedChars(e,t,r))},e.prototype._drawUncachedChars=function(e,t,r,n){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline=i.TEXT_BASELINE,e.isInverse())if(n)this._ctx.fillStyle=n.css;else if(e.isBgDefault())this._ctx.fillStyle=l.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+s.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var o=e.getBgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&o<8&&(o+=8),this._ctx.fillStyle=this._colors.ansi[o].css}else if(n)this._ctx.fillStyle=n.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+s.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var a=e.getFgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&a<8&&(a+=8),this._ctx.fillStyle=this._colors.ansi[a].css}this._clipRow(r),e.isDim()&&(this._ctx.globalAlpha=i.DIM_OPACITY);var c=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(c=(0,u.tryDrawCustomChar)(this._ctx,e.getChars(),t*this._scaledCellWidth,r*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),c||this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},e.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},e.prototype._getFont=function(e,t){return(t?"italic":"")+" "+(e?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight)+" "+this._optionsService.rawOptions.fontSize*window.devicePixelRatio+"px "+this._optionsService.rawOptions.fontFamily},e.prototype._getContrastColor=function(e){if(1!==this._optionsService.rawOptions.minimumContrastRatio){var t=this._colors.contrastCache.getColor(e.bg,e.fg);if(void 0!==t)return t||void 0;var r=e.getFgColor(),n=e.getFgColorMode(),i=e.getBgColor(),o=e.getBgColorMode(),s=!!e.isInverse(),a=!!e.isInverse();if(s){var c=r;r=i,i=c;var u=n;n=o,o=u}var f=this._resolveBackgroundRgba(o,i,s),d=this._resolveForegroundRgba(n,r,s,a),h=l.rgba.ensureContrastRatio(f,d,this._optionsService.rawOptions.minimumContrastRatio);if(h){var p={css:l.channels.toCss(h>>24&255,h>>16&255,h>>8&255),rgba:h};return this._colors.contrastCache.setColor(e.bg,e.fg,p),p}this._colors.contrastCache.setColor(e.bg,e.fg,null)}},e.prototype._resolveBackgroundRgba=function(e,t,r){switch(e){case 16777216:case 33554432:return this._colors.ansi[t].rgba;case 50331648:return t<<8;default:return r?this._colors.foreground.rgba:this._colors.background.rgba}},e.prototype._resolveForegroundRgba=function(e,t,r,n){switch(e){case 16777216:case 33554432:return this._optionsService.rawOptions.drawBoldTextInBrightColors&&n&&t<8&&(t+=8),this._colors.ansi[t].rgba;case 50331648:return t<<8;default:return r?this._colors.background.rgba:this._colors.foreground.rgba}},e}();t.BaseRenderLayer=f},2512:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CursorRenderLayer=void 0;var a=r(1546),l=r(511),c=r(2585),u=r(4725),f=600,d=function(e){function t(t,r,n,i,o,s,a,c,u){var f=e.call(this,t,"cursor",r,!0,n,i,s,a)||this;return f._onRequestRedraw=o,f._coreService=c,f._coreBrowserService=u,f._cell=new l.CellData,f._state={x:0,y:0,isFocused:!1,style:"",width:0},f._cursorRenderers={bar:f._renderBarCursor.bind(f),block:f._renderBlockCursor.bind(f),underline:f._renderUnderlineCursor.bind(f)},f}return i(t,e),t.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),e.prototype.dispose.call(this)},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},t.prototype.reset=function(){var e;this._clearCursor(),null===(e=this._cursorBlinkStateManager)||void 0===e||e.restartBlinkAnimation(),this.onOptionsChanged()},t.prototype.onBlur=function(){var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onFocus=function(){var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onOptionsChanged=function(){var e,t=this;this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new h(this._coreBrowserService.isFocused,(function(){t._render(!0)}))):(null===(e=this._cursorBlinkStateManager)||void 0===e||e.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onCursorMove=function(){var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.restartBlinkAnimation()},t.prototype.onGridChanged=function(e,t){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(e){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var t=this._bufferService.buffer.ybase+this._bufferService.buffer.y,r=t-this._bufferService.buffer.ydisp;if(r<0||r>=this._bufferService.rows)this._clearCursor();else{var n=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(t).loadCell(n,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var i=this._optionsService.rawOptions.cursorStyle;return i&&"block"!==i?this._cursorRenderers[i](n,r,this._cell):this._renderBlurCursor(n,r,this._cell),this._ctx.restore(),this._state.x=n,this._state.y=r,this._state.isFocused=!1,this._state.style=i,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===n&&this._state.y===r&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.rawOptions.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.rawOptions.cursorStyle||"block"](n,r,this._cell),this._ctx.restore(),this._state.x=n,this._state.y=r,this._state.isFocused=!1,this._state.style=this._optionsService.rawOptions.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},t.prototype._clearCursor=function(){this._state&&(window.devicePixelRatio<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},t.prototype._renderBarCursor=function(e,t,r){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(e,t,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()},t.prototype._renderBlockCursor=function(e,t,r){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(e,t,r.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(r,e,t),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(e,t,r){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(e,t),this._ctx.restore()},t.prototype._renderBlurCursor=function(e,t,r){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(e,t,r.getWidth(),1),this._ctx.restore()},o([s(5,c.IBufferService),s(6,c.IOptionsService),s(7,c.ICoreService),s(8,u.ICoreBrowserService)],t)}(a.BaseRenderLayer);t.CursorRenderLayer=d;var h=function(){function e(e,t){this._renderCallback=t,this.isCursorVisible=!0,e&&this._restartInterval()}return Object.defineProperty(e.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.restartBlinkAnimation=function(){var e=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame((function(){e._renderCallback(),e._animationFrame=void 0}))))},e.prototype._restartInterval=function(e){var t=this;void 0===e&&(e=f),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout((function(){if(t._animationTimeRestarted){var e=f-(Date.now()-t._animationTimeRestarted);if(t._animationTimeRestarted=void 0,e>0)return void t._restartInterval(e)}t.isCursorVisible=!1,t._animationFrame=window.requestAnimationFrame((function(){t._renderCallback(),t._animationFrame=void 0})),t._blinkInterval=window.setInterval((function(){if(t._animationTimeRestarted){var e=f-(Date.now()-t._animationTimeRestarted);return t._animationTimeRestarted=void 0,void t._restartInterval(e)}t.isCursorVisible=!t.isCursorVisible,t._animationFrame=window.requestAnimationFrame((function(){t._renderCallback(),t._animationFrame=void 0}))}),f)}),e)},e.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},e}()},8978:(e,t,r)=>{var n,i,o,s,a,l,c,u,f,d,h,p,v,m,_,g,y,b,C,S,w,E,x,k,L,D,j,O,M,T,R,P,A,B,I,N,F,H,W,U,q,z,V,Z,G,K,Y,X,Q,J,$,ee,te,re,ne,ie,oe,se,ae,le,ce,ue,fe,de,he,pe,ve,me,_e,ge,ye,be,Ce,Se,we,Ee,xe,ke,Le,De,je,Oe,Me,Te,Re,Pe,Ae,Be,Ie,Ne,Fe,He,We,Ue,qe,ze,Ve,Ze,Ge,Ke,Ye,Xe,Qe,Je,$e,et,tt,rt,nt,it,ot,st,at,lt,ct,ut,ft,dt,ht,pt,vt,mt,_t,gt,yt,bt,Ct,St;Object.defineProperty(t,"__esModule",{value:!0}),t.tryDrawCustomChar=t.boxDrawingDefinitions=t.blockElementDefinitions=void 0;var wt=r(1752);t.blockElementDefinitions={"▀":[{x:0,y:0,w:8,h:4}],"▁":[{x:0,y:7,w:8,h:1}],"▂":[{x:0,y:6,w:8,h:2}],"▃":[{x:0,y:5,w:8,h:3}],"▄":[{x:0,y:4,w:8,h:4}],"▅":[{x:0,y:3,w:8,h:5}],"▆":[{x:0,y:2,w:8,h:6}],"▇":[{x:0,y:1,w:8,h:7}],"█":[{x:0,y:0,w:8,h:8}],"▉":[{x:0,y:0,w:7,h:8}],"▊":[{x:0,y:0,w:6,h:8}],"▋":[{x:0,y:0,w:5,h:8}],"▌":[{x:0,y:0,w:4,h:8}],"▍":[{x:0,y:0,w:3,h:8}],"▎":[{x:0,y:0,w:2,h:8}],"▏":[{x:0,y:0,w:1,h:8}],"▐":[{x:4,y:0,w:4,h:8}],"▔":[{x:0,y:0,w:9,h:1}],"▕":[{x:7,y:0,w:1,h:8}],"▖":[{x:0,y:4,w:4,h:4}],"▗":[{x:4,y:4,w:4,h:4}],"▘":[{x:0,y:0,w:4,h:4}],"▙":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"▚":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"▛":[{x:0,y:0,w:4,h:8},{x:0,y:0,w:4,h:8}],"▜":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"▝":[{x:4,y:0,w:4,h:4}],"▞":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"▟":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"🭰":[{x:1,y:0,w:1,h:8}],"🭱":[{x:2,y:0,w:1,h:8}],"🭲":[{x:3,y:0,w:1,h:8}],"🭳":[{x:4,y:0,w:1,h:8}],"🭴":[{x:5,y:0,w:1,h:8}],"🭵":[{x:6,y:0,w:1,h:8}],"🭶":[{x:0,y:1,w:8,h:1}],"🭷":[{x:0,y:2,w:8,h:1}],"🭸":[{x:0,y:3,w:8,h:1}],"🭹":[{x:0,y:4,w:8,h:1}],"🭺":[{x:0,y:5,w:8,h:1}],"🭻":[{x:0,y:6,w:8,h:1}],"🭼":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🭽":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭾":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭿":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🮀":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮁":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮂":[{x:0,y:0,w:8,h:2}],"🮃":[{x:0,y:0,w:8,h:3}],"🮄":[{x:0,y:0,w:8,h:5}],"🮅":[{x:0,y:0,w:8,h:6}],"🮆":[{x:0,y:0,w:8,h:7}],"🮇":[{x:6,y:0,w:2,h:8}],"🮈":[{x:5,y:0,w:3,h:8}],"🮉":[{x:3,y:0,w:5,h:8}],"🮊":[{x:2,y:0,w:6,h:8}],"🮋":[{x:1,y:0,w:7,h:8}],"🮕":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"🮖":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"🮗":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};var Et={"░":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"▒":[[1,0],[0,0],[0,1],[0,0]],"▓":[[0,1],[1,1],[1,0],[1,1]]};t.boxDrawingDefinitions={"─":(n={},n[1]="M0,.5 L1,.5",n),"━":(i={},i[3]="M0,.5 L1,.5",i),"│":(o={},o[1]="M.5,0 L.5,1",o),"┃":(s={},s[3]="M.5,0 L.5,1",s),"┌":(a={},a[1]="M0.5,1 L.5,.5 L1,.5",a),"┏":(l={},l[3]="M0.5,1 L.5,.5 L1,.5",l),"┐":(c={},c[1]="M0,.5 L.5,.5 L.5,1",c),"┓":(u={},u[3]="M0,.5 L.5,.5 L.5,1",u),"└":(f={},f[1]="M.5,0 L.5,.5 L1,.5",f),"┗":(d={},d[3]="M.5,0 L.5,.5 L1,.5",d),"┘":(h={},h[1]="M.5,0 L.5,.5 L0,.5",h),"┛":(p={},p[3]="M.5,0 L.5,.5 L0,.5",p),"├":(v={},v[1]="M.5,0 L.5,1 M.5,.5 L1,.5",v),"┣":(m={},m[3]="M.5,0 L.5,1 M.5,.5 L1,.5",m),"┤":(_={},_[1]="M.5,0 L.5,1 M.5,.5 L0,.5",_),"┫":(g={},g[3]="M.5,0 L.5,1 M.5,.5 L0,.5",g),"┬":(y={},y[1]="M0,.5 L1,.5 M.5,.5 L.5,1",y),"┳":(b={},b[3]="M0,.5 L1,.5 M.5,.5 L.5,1",b),"┴":(C={},C[1]="M0,.5 L1,.5 M.5,.5 L.5,0",C),"┻":(S={},S[3]="M0,.5 L1,.5 M.5,.5 L.5,0",S),"┼":(w={},w[1]="M0,.5 L1,.5 M.5,0 L.5,1",w),"╋":(E={},E[3]="M0,.5 L1,.5 M.5,0 L.5,1",E),"╴":(x={},x[1]="M.5,.5 L0,.5",x),"╸":(k={},k[3]="M.5,.5 L0,.5",k),"╵":(L={},L[1]="M.5,.5 L.5,0",L),"╹":(D={},D[3]="M.5,.5 L.5,0",D),"╶":(j={},j[1]="M.5,.5 L1,.5",j),"╺":(O={},O[3]="M.5,.5 L1,.5",O),"╷":(M={},M[1]="M.5,.5 L.5,1",M),"╻":(T={},T[3]="M.5,.5 L.5,1",T),"═":(R={},R[1]=function(e,t){return"M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)},R),"║":(P={},P[1]=function(e,t){return"M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1"},P),"╒":(A={},A[1]=function(e,t){return"M.5,1 L.5,"+(.5-t)+" L1,"+(.5-t)+" M.5,"+(.5+t)+" L1,"+(.5+t)},A),"╓":(B={},B[1]=function(e,t){return"M"+(.5-e)+",1 L"+(.5-e)+",.5 L1,.5 M"+(.5+e)+",.5 L"+(.5+e)+",1"},B),"╔":(I={},I[1]=function(e,t){return"M1,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1"},I),"╕":(N={},N[1]=function(e,t){return"M0,"+(.5-t)+" L.5,"+(.5-t)+" L.5,1 M0,"+(.5+t)+" L.5,"+(.5+t)},N),"╖":(F={},F[1]=function(e,t){return"M"+(.5+e)+",1 L"+(.5+e)+",.5 L0,.5 M"+(.5-e)+",.5 L"+(.5-e)+",1"},F),"╗":(H={},H[1]=function(e,t){return"M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M0,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",1"},H),"╘":(W={},W[1]=function(e,t){return"M.5,0 L.5,"+(.5+t)+" L1,"+(.5+t)+" M.5,"+(.5-t)+" L1,"+(.5-t)},W),"╙":(U={},U[1]=function(e,t){return"M1,.5 L"+(.5-e)+",.5 L"+(.5-e)+",0 M"+(.5+e)+",.5 L"+(.5+e)+",0"},U),"╚":(q={},q[1]=function(e,t){return"M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0 M1,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",0"},q),"╛":(z={},z[1]=function(e,t){return"M0,"+(.5+t)+" L.5,"+(.5+t)+" L.5,0 M0,"+(.5-t)+" L.5,"+(.5-t)},z),"╜":(V={},V[1]=function(e,t){return"M0,.5 L"+(.5+e)+",.5 L"+(.5+e)+",0 M"+(.5-e)+",.5 L"+(.5-e)+",0"},V),"╝":(Z={},Z[1]=function(e,t){return"M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0 M0,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",0"},Z),"╞":(G={},G[1]=function(e,t){return"M.5,0 L.5,1 M.5,"+(.5-t)+" L1,"+(.5-t)+" M.5,"+(.5+t)+" L1,"+(.5+t)},G),"╟":(K={},K[1]=function(e,t){return"M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1 M"+(.5+e)+",.5 L1,.5"},K),"╠":(Y={},Y[1]=function(e,t){return"M"+(.5-e)+",0 L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1 M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0"},Y),"╡":(X={},X[1]=function(e,t){return"M.5,0 L.5,1 M0,"+(.5-t)+" L.5,"+(.5-t)+" M0,"+(.5+t)+" L.5,"+(.5+t)},X),"╢":(Q={},Q[1]=function(e,t){return"M0,.5 L"+(.5-e)+",.5 M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1"},Q),"╣":(J={},J[1]=function(e,t){return"M"+(.5+e)+",0 L"+(.5+e)+",1 M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0"},J),"╤":($={},$[1]=function(e,t){return"M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)+" M.5,"+(.5+t)+" L.5,1"},$),"╥":(ee={},ee[1]=function(e,t){return"M0,.5 L1,.5 M"+(.5-e)+",.5 L"+(.5-e)+",1 M"+(.5+e)+",.5 L"+(.5+e)+",1"},ee),"╦":(te={},te[1]=function(e,t){return"M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1"},te),"╧":(re={},re[1]=function(e,t){return"M.5,0 L.5,"+(.5-t)+" M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)},re),"╨":(ne={},ne[1]=function(e,t){return"M0,.5 L1,.5 M"+(.5-e)+",.5 L"+(.5-e)+",0 M"+(.5+e)+",.5 L"+(.5+e)+",0"},ne),"╩":(ie={},ie[1]=function(e,t){return"M0,"+(.5+t)+" L1,"+(.5+t)+" M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0 M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0"},ie),"╪":(oe={},oe[1]=function(e,t){return"M.5,0 L.5,1 M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)},oe),"╫":(se={},se[1]=function(e,t){return"M0,.5 L1,.5 M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1"},se),"╬":(ae={},ae[1]=function(e,t){return"M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1 M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0 M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0"},ae),"╱":(le={},le[1]="M1,0 L0,1",le),"╲":(ce={},ce[1]="M0,0 L1,1",ce),"╳":(ue={},ue[1]="M1,0 L0,1 M0,0 L1,1",ue),"╼":(fe={},fe[1]="M.5,.5 L0,.5",fe[3]="M.5,.5 L1,.5",fe),"╽":(de={},de[1]="M.5,.5 L.5,0",de[3]="M.5,.5 L.5,1",de),"╾":(he={},he[1]="M.5,.5 L1,.5",he[3]="M.5,.5 L0,.5",he),"╿":(pe={},pe[1]="M.5,.5 L.5,1",pe[3]="M.5,.5 L.5,0",pe),"┍":(ve={},ve[1]="M.5,.5 L.5,1",ve[3]="M.5,.5 L1,.5",ve),"┎":(me={},me[1]="M.5,.5 L1,.5",me[3]="M.5,.5 L.5,1",me),"┑":(_e={},_e[1]="M.5,.5 L.5,1",_e[3]="M.5,.5 L0,.5",_e),"┒":(ge={},ge[1]="M.5,.5 L0,.5",ge[3]="M.5,.5 L.5,1",ge),"┕":(ye={},ye[1]="M.5,.5 L.5,0",ye[3]="M.5,.5 L1,.5",ye),"┖":(be={},be[1]="M.5,.5 L1,.5",be[3]="M.5,.5 L.5,0",be),"┙":(Ce={},Ce[1]="M.5,.5 L.5,0",Ce[3]="M.5,.5 L0,.5",Ce),"┚":(Se={},Se[1]="M.5,.5 L0,.5",Se[3]="M.5,.5 L.5,0",Se),"┝":(we={},we[1]="M.5,0 L.5,1",we[3]="M.5,.5 L1,.5",we),"┞":(Ee={},Ee[1]="M0.5,1 L.5,.5 L1,.5",Ee[3]="M.5,.5 L.5,0",Ee),"┟":(xe={},xe[1]="M.5,0 L.5,.5 L1,.5",xe[3]="M.5,.5 L.5,1",xe),"┠":(ke={},ke[1]="M.5,.5 L1,.5",ke[3]="M.5,0 L.5,1",ke),"┡":(Le={},Le[1]="M.5,.5 L.5,1",Le[3]="M.5,0 L.5,.5 L1,.5",Le),"┢":(De={},De[1]="M.5,.5 L.5,0",De[3]="M0.5,1 L.5,.5 L1,.5",De),"┥":(je={},je[1]="M.5,0 L.5,1",je[3]="M.5,.5 L0,.5",je),"┦":(Oe={},Oe[1]="M0,.5 L.5,.5 L.5,1",Oe[3]="M.5,.5 L.5,0",Oe),"┧":(Me={},Me[1]="M.5,0 L.5,.5 L0,.5",Me[3]="M.5,.5 L.5,1",Me),"┨":(Te={},Te[1]="M.5,.5 L0,.5",Te[3]="M.5,0 L.5,1",Te),"┩":(Re={},Re[1]="M.5,.5 L.5,1",Re[3]="M.5,0 L.5,.5 L0,.5",Re),"┪":(Pe={},Pe[1]="M.5,.5 L.5,0",Pe[3]="M0,.5 L.5,.5 L.5,1",Pe),"┭":(Ae={},Ae[1]="M0.5,1 L.5,.5 L1,.5",Ae[3]="M.5,.5 L0,.5",Ae),"┮":(Be={},Be[1]="M0,.5 L.5,.5 L.5,1",Be[3]="M.5,.5 L1,.5",Be),"┯":(Ie={},Ie[1]="M.5,.5 L.5,1",Ie[3]="M0,.5 L1,.5",Ie),"┰":(Ne={},Ne[1]="M0,.5 L1,.5",Ne[3]="M.5,.5 L.5,1",Ne),"┱":(Fe={},Fe[1]="M.5,.5 L1,.5",Fe[3]="M0,.5 L.5,.5 L.5,1",Fe),"┲":(He={},He[1]="M.5,.5 L0,.5",He[3]="M0.5,1 L.5,.5 L1,.5",He),"┵":(We={},We[1]="M.5,0 L.5,.5 L1,.5",We[3]="M.5,.5 L0,.5",We),"┶":(Ue={},Ue[1]="M.5,0 L.5,.5 L0,.5",Ue[3]="M.5,.5 L1,.5",Ue),"┷":(qe={},qe[1]="M.5,.5 L.5,0",qe[3]="M0,.5 L1,.5",qe),"┸":(ze={},ze[1]="M0,.5 L1,.5",ze[3]="M.5,.5 L.5,0",ze),"┹":(Ve={},Ve[1]="M.5,.5 L1,.5",Ve[3]="M.5,0 L.5,.5 L0,.5",Ve),"┺":(Ze={},Ze[1]="M.5,.5 L0,.5",Ze[3]="M.5,0 L.5,.5 L1,.5",Ze),"┽":(Ge={},Ge[1]="M.5,0 L.5,1 M.5,.5 L1,.5",Ge[3]="M.5,.5 L0,.5",Ge),"┾":(Ke={},Ke[1]="M.5,0 L.5,1 M.5,.5 L0,.5",Ke[3]="M.5,.5 L1,.5",Ke),"┿":(Ye={},Ye[1]="M.5,0 L.5,1",Ye[3]="M0,.5 L1,.5",Ye),"╀":(Xe={},Xe[1]="M0,.5 L1,.5 M.5,.5 L.5,1",Xe[3]="M.5,.5 L.5,0",Xe),"╁":(Qe={},Qe[1]="M.5,.5 L.5,0 M0,.5 L1,.5",Qe[3]="M.5,.5 L.5,1",Qe),"╂":(Je={},Je[1]="M0,.5 L1,.5",Je[3]="M.5,0 L.5,1",Je),"╃":($e={},$e[1]="M0.5,1 L.5,.5 L1,.5",$e[3]="M.5,0 L.5,.5 L0,.5",$e),"╄":(et={},et[1]="M0,.5 L.5,.5 L.5,1",et[3]="M.5,0 L.5,.5 L1,.5",et),"╅":(tt={},tt[1]="M.5,0 L.5,.5 L1,.5",tt[3]="M0,.5 L.5,.5 L.5,1",tt),"╆":(rt={},rt[1]="M.5,0 L.5,.5 L0,.5",rt[3]="M0.5,1 L.5,.5 L1,.5",rt),"╇":(nt={},nt[1]="M.5,.5 L.5,1",nt[3]="M.5,.5 L.5,0 M0,.5 L1,.5",nt),"╈":(it={},it[1]="M.5,.5 L.5,0",it[3]="M0,.5 L1,.5 M.5,.5 L.5,1",it),"╉":(ot={},ot[1]="M.5,.5 L1,.5",ot[3]="M.5,0 L.5,1 M.5,.5 L0,.5",ot),"╊":(st={},st[1]="M.5,.5 L0,.5",st[3]="M.5,0 L.5,1 M.5,.5 L1,.5",st),"╌":(at={},at[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",at),"╍":(lt={},lt[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",lt),"┄":(ct={},ct[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",ct),"┅":(ut={},ut[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",ut),"┈":(ft={},ft[1]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",ft),"┉":(dt={},dt[3]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",dt),"╎":(ht={},ht[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",ht),"╏":(pt={},pt[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",pt),"┆":(vt={},vt[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",vt),"┇":(mt={},mt[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",mt),"┊":(_t={},_t[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",_t),"┋":(gt={},gt[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",gt),"╭":(yt={},yt[1]="C.5,1,.5,.5,1,.5",yt),"╮":(bt={},bt[1]="C.5,1,.5,.5,0,.5",bt),"╯":(Ct={},Ct[1]="C.5,0,.5,.5,0,.5",Ct),"╰":(St={},St[1]="C.5,0,.5,.5,1,.5",St)},t.tryDrawCustomChar=function(e,r,n,i,o,s){var a=t.blockElementDefinitions[r];if(a)return function(e,t,r,n,i,o){for(var s=0;s<t.length;s++){var a=t[s],l=i/8,c=o/8;e.fillRect(r+a.x*l,n+a.y*c,a.w*l,a.h*c)}}(e,a,n,i,o,s),!0;var l=Et[r];if(l)return function(e,t,r,n,i,o){var s,a=xt.get(t);a||(a=new Map,xt.set(t,a));var l=e.fillStyle;if("string"!=typeof l)throw new Error('Unexpected fillStyle type "'+l+'"');var c=a.get(l);if(!c){var u=t[0].length,f=t.length,d=document.createElement("canvas");d.width=u,d.height=f;var h=(0,wt.throwIfFalsy)(d.getContext("2d")),p=new ImageData(u,f),v=void 0,m=void 0,_=void 0,g=void 0;if(l.startsWith("#"))v=parseInt(l.substr(1,2),16),m=parseInt(l.substr(3,2),16),_=parseInt(l.substr(5,2),16),g=l.length>7&&parseInt(l.substr(7,2),16)||1;else{if(!l.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+l+'" when drawing pattern glyph');v=(s=l.substring(5,l.length-1).split(",").map((function(e){return parseFloat(e)})))[0],m=s[1],_=s[2],g=s[3]}for(var y=0;y<f;y++)for(var b=0;b<u;b++)p.data[4*(y*u+b)]=v,p.data[4*(y*u+b)+1]=m,p.data[4*(y*u+b)+2]=_,p.data[4*(y*u+b)+3]=t[y][b]*(255*g);h.putImageData(p,0,0),c=(0,wt.throwIfFalsy)(e.createPattern(d,null)),a.set(l,c)}e.fillStyle=c,e.fillRect(r,n,i,o)}(e,l,n,i,o,s),!0;var c=t.boxDrawingDefinitions[r];return!!c&&(function(e,t,r,n,i,o){e.strokeStyle=e.fillStyle;for(var s=0,a=Object.entries(t);s<a.length;s++){var l=a[s],c=l[0],u=l[1];e.beginPath(),e.lineWidth=window.devicePixelRatio*Number.parseInt(c);for(var f=0,d=("function"==typeof u?u(.15,.15/o*i):u).split(" ");f<d.length;f++){var h=d[f],p=h[0],v=Lt[p];if(v){var m=h.substring(1).split(",");m[0]&&m[1]&&v(e,Dt(m,i,o,r,n))}else console.error('Could not find drawing instructions for "'+p+'"')}e.stroke(),e.closePath()}}(e,c,n,i,o,s),!0)};var xt=new Map;function kt(e,t,r){return void 0===r&&(r=0),Math.max(Math.min(e,t),r)}var Lt={C:function(e,t){return e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5])},L:function(e,t){return e.lineTo(t[0],t[1])},M:function(e,t){return e.moveTo(t[0],t[1])}};function Dt(e,t,r,n,i){var o=e.map((function(e){return parseFloat(e)||parseInt(e)}));if(o.length<2)throw new Error("Too few arguments for instruction");for(var s=0;s<o.length;s+=2)o[s]*=t,0!==o[s]&&(o[s]=kt(Math.round(o[s]+.5)-.5,t,0)),o[s]+=n;for(var a=1;a<o.length;a+=2)o[a]*=r,0!==o[a]&&(o[a]=kt(Math.round(o[a]+.5)-.5,r,0)),o[a]+=i;return o}},3700:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GridCache=void 0;var r=function(){function e(){this.cache=[]}return e.prototype.resize=function(e,t){for(var r=0;r<e;r++){this.cache.length<=r&&this.cache.push([]);for(var n=this.cache[r].length;n<t;n++)this.cache[r].push(void 0);this.cache[r].length=t}this.cache.length=e},e.prototype.clear=function(){for(var e=0;e<this.cache.length;e++)for(var t=0;t<this.cache[e].length;t++)this.cache[e][t]=void 0},e}();t.GridCache=r},5098:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LinkRenderLayer=void 0;var a=r(1546),l=r(8803),c=r(2040),u=r(2585),f=function(e){function t(t,r,n,i,o,s,a,l){var c=e.call(this,t,"link",r,!0,n,i,a,l)||this;return o.onShowLinkUnderline((function(e){return c._onShowLinkUnderline(e)})),o.onHideLinkUnderline((function(e){return c._onHideLinkUnderline(e)})),s.onShowLinkUnderline((function(e){return c._onShowLinkUnderline(e)})),s.onHideLinkUnderline((function(e){return c._onHideLinkUnderline(e)})),c}return i(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._state=void 0},t.prototype.reset=function(){this._clearCurrentLink()},t.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var e=this._state.y2-this._state.y1-1;e>0&&this._clearCells(0,this._state.y1+1,this._state.cols,e),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},t.prototype._onShowLinkUnderline=function(e){if(e.fg===l.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:e.fg&&(0,c.is256Color)(e.fg)?this._ctx.fillStyle=this._colors.ansi[e.fg].css:this._ctx.fillStyle=this._colors.foreground.css,e.y1===e.y2)this._fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this._fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(var t=e.y1+1;t<e.y2;t++)this._fillBottomLineAtCells(0,t,e.cols);this._fillBottomLineAtCells(0,e.y2,e.x2)}this._state=e},t.prototype._onHideLinkUnderline=function(e){this._clearCurrentLink()},o([s(6,u.IBufferService),s(7,u.IOptionsService)],t)}(a.BaseRenderLayer);t.LinkRenderLayer=f},3525:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Renderer=void 0;var a=r(9596),l=r(4149),c=r(2512),u=r(5098),f=r(844),d=r(4725),h=r(2585),p=r(1420),v=r(8460),m=1,_=function(e){function t(t,r,n,i,o,s,f,d){var h=e.call(this)||this;h._colors=t,h._screenElement=r,h._bufferService=s,h._charSizeService=f,h._optionsService=d,h._id=m++,h._onRequestRedraw=new v.EventEmitter;var p=h._optionsService.rawOptions.allowTransparency;return h._renderLayers=[o.createInstance(a.TextRenderLayer,h._screenElement,0,h._colors,p,h._id),o.createInstance(l.SelectionRenderLayer,h._screenElement,1,h._colors,h._id),o.createInstance(u.LinkRenderLayer,h._screenElement,2,h._colors,h._id,n,i),o.createInstance(c.CursorRenderLayer,h._screenElement,3,h._colors,h._id,h._onRequestRedraw)],h.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},h._devicePixelRatio=window.devicePixelRatio,h._updateDimensions(),h.onOptionsChanged(),h}return i(t,e),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){for(var t=0,r=this._renderLayers;t<r.length;t++)r[t].dispose();e.prototype.dispose.call(this),(0,p.removeTerminalFromCache)(this._id)},t.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},t.prototype.setColors=function(e){this._colors=e;for(var t=0,r=this._renderLayers;t<r.length;t++){var n=r[t];n.setColors(this._colors),n.reset()}},t.prototype.onResize=function(e,t){this._updateDimensions();for(var r=0,n=this._renderLayers;r<n.length;r++)n[r].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},t.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},t.prototype.onBlur=function(){this._runOperation((function(e){return e.onBlur()}))},t.prototype.onFocus=function(){this._runOperation((function(e){return e.onFocus()}))},t.prototype.onSelectionChanged=function(e,t,r){void 0===r&&(r=!1),this._runOperation((function(n){return n.onSelectionChanged(e,t,r)}))},t.prototype.onCursorMove=function(){this._runOperation((function(e){return e.onCursorMove()}))},t.prototype.onOptionsChanged=function(){this._runOperation((function(e){return e.onOptionsChanged()}))},t.prototype.clear=function(){this._runOperation((function(e){return e.reset()}))},t.prototype._runOperation=function(e){for(var t=0,r=this._renderLayers;t<r.length;t++)e(r[t])},t.prototype.renderRows=function(e,t){for(var r=0,n=this._renderLayers;r<n.length;r++)n[r].onGridChanged(e,t)},t.prototype.clearTextureAtlas=function(){for(var e=0,t=this._renderLayers;e<t.length;e++)t[e].clearTextureAtlas()},t.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharTop=1===this._optionsService.rawOptions.lineHeight?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.rawOptions.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},o([s(4,h.IInstantiationService),s(5,h.IBufferService),s(6,d.ICharSizeService),s(7,h.IOptionsService)],t)}(f.Disposable);t.Renderer=_},1752:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfFalsy=void 0,t.throwIfFalsy=function(e){if(!e)throw new Error("value must not be falsy");return e}},4149:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRenderLayer=void 0;var a=r(1546),l=r(2585),c=function(e){function t(t,r,n,i,o,s){var a=e.call(this,t,"selection",r,!0,n,i,o,s)||this;return a._clearState(),a}return i(t,e),t.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._clearState()},t.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},t.prototype.onSelectionChanged=function(e,t,r){if(this._didStateChange(e,t,r,this._bufferService.buffer.ydisp))if(this._clearAll(),e&&t){var n=e[1]-this._bufferService.buffer.ydisp,i=t[1]-this._bufferService.buffer.ydisp,o=Math.max(n,0),s=Math.min(i,this._bufferService.rows-1);if(o>=this._bufferService.rows||s<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,r){var a=e[0],l=t[0]-a,c=s-o+1;this._fillCells(a,o,l,c)}else{a=n===o?e[0]:0;var u=o===i?t[0]:this._bufferService.cols;this._fillCells(a,o,u-a,1);var f=Math.max(s-o-1,0);if(this._fillCells(0,o+1,this._bufferService.cols,f),o!==s){var d=i===s?t[0]:this._bufferService.cols;this._fillCells(0,s,d,1)}}this._state.start=[e[0],e[1]],this._state.end=[t[0],t[1]],this._state.columnSelectMode=r,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},t.prototype._didStateChange=function(e,t,r,n){return!this._areCoordinatesEqual(e,this._state.start)||!this._areCoordinatesEqual(t,this._state.end)||r!==this._state.columnSelectMode||n!==this._state.ydisp},t.prototype._areCoordinatesEqual=function(e,t){return!(!e||!t)&&e[0]===t[0]&&e[1]===t[1]},o([s(4,l.IBufferService),s(5,l.IOptionsService)],t)}(a.BaseRenderLayer);t.SelectionRenderLayer=c},9596:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextRenderLayer=void 0;var a=r(3700),l=r(1546),c=r(3734),u=r(643),f=r(511),d=r(2585),h=r(4725),p=r(4269),v=function(e){function t(t,r,n,i,o,s,l,c){var u=e.call(this,t,"text",r,i,n,o,s,l)||this;return u._characterJoinerService=c,u._characterWidth=0,u._characterFont="",u._characterOverlapCache={},u._workCell=new f.CellData,u._state=new a.GridCache,u}return i(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t);var r=this._getFont(!1,!1);this._characterWidth===t.scaledCharWidth&&this._characterFont===r||(this._characterWidth=t.scaledCharWidth,this._characterFont=r,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},t.prototype.reset=function(){this._state.clear(),this._clearAll()},t.prototype._forEachCell=function(e,t,r){for(var n=e;n<=t;n++)for(var i=n+this._bufferService.buffer.ydisp,o=this._bufferService.buffer.lines.get(i),s=this._characterJoinerService.getJoinedCharacters(i),a=0;a<this._bufferService.cols;a++){o.loadCell(a,this._workCell);var l=this._workCell,c=!1,f=a;if(0!==l.getWidth()){if(s.length>0&&a===s[0][0]){c=!0;var d=s.shift();l=new p.JoinedCellData(this._workCell,o.translateToString(!0,d[0],d[1]),d[1]-d[0]),f=d[1]-1}!c&&this._isOverlapping(l)&&f<o.length-1&&o.getCodePoint(f+1)===u.NULL_CELL_CODE&&(l.content&=-12582913,l.content|=8388608),r(l,a,n),a=f}}},t.prototype._drawBackground=function(e,t){var r=this,n=this._ctx,i=this._bufferService.cols,o=0,s=0,a=null;n.save(),this._forEachCell(e,t,(function(e,t,l){var u=null;e.isInverse()?u=e.isFgDefault()?r._colors.foreground.css:e.isFgRGB()?"rgb("+c.AttributeData.toColorRGB(e.getFgColor()).join(",")+")":r._colors.ansi[e.getFgColor()].css:e.isBgRGB()?u="rgb("+c.AttributeData.toColorRGB(e.getBgColor()).join(",")+")":e.isBgPalette()&&(u=r._colors.ansi[e.getBgColor()].css),null===a&&(o=t,s=l),l!==s?(n.fillStyle=a||"",r._fillCells(o,s,i-o,1),o=t,s=l):a!==u&&(n.fillStyle=a||"",r._fillCells(o,s,t-o,1),o=t,s=l),a=u})),null!==a&&(n.fillStyle=a,this._fillCells(o,s,i-o,1)),n.restore()},t.prototype._drawForeground=function(e,t){var r=this;this._forEachCell(e,t,(function(e,t,n){if(!e.isInvisible()&&(r._drawChars(e,t,n),e.isUnderline()||e.isStrikethrough())){if(r._ctx.save(),e.isInverse())if(e.isBgDefault())r._ctx.fillStyle=r._colors.background.css;else if(e.isBgRGB())r._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var i=e.getBgColor();r._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&i<8&&(i+=8),r._ctx.fillStyle=r._colors.ansi[i].css}else if(e.isFgDefault())r._ctx.fillStyle=r._colors.foreground.css;else if(e.isFgRGB())r._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var o=e.getFgColor();r._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&o<8&&(o+=8),r._ctx.fillStyle=r._colors.ansi[o].css}e.isStrikethrough()&&r._fillMiddleLineAtCells(t,n,e.getWidth()),e.isUnderline()&&r._fillBottomLineAtCells(t,n,e.getWidth()),r._ctx.restore()}}))},t.prototype.onGridChanged=function(e,t){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,e,this._bufferService.cols,t-e+1),this._drawBackground(e,t),this._drawForeground(e,t))},t.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.rawOptions.allowTransparency)},t.prototype._isOverlapping=function(e){if(1!==e.getWidth())return!1;if(e.getCode()<256)return!1;var t=e.getChars();if(this._characterOverlapCache.hasOwnProperty(t))return this._characterOverlapCache[t];this._ctx.save(),this._ctx.font=this._characterFont;var r=Math.floor(this._ctx.measureText(t).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[t]=r,r},o([s(5,d.IBufferService),s(6,d.IOptionsService),s(7,h.ICharacterJoinerService)],t)}(l.BaseRenderLayer);t.TextRenderLayer=v},9616:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseCharAtlas=void 0;var r=function(){function e(){this._didWarmUp=!1}return e.prototype.dispose=function(){},e.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},e.prototype._doWarmUp=function(){},e.prototype.clear=function(){},e.prototype.beginFrame=function(){},e}();t.BaseCharAtlas=r},1420:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.removeTerminalFromCache=t.acquireCharAtlas=void 0;var n=r(2040),i=r(1906),o=[];t.acquireCharAtlas=function(e,t,r,s,a){for(var l=(0,n.generateConfig)(s,a,e,r),c=0;c<o.length;c++){var u=(f=o[c]).ownedBy.indexOf(t);if(u>=0){if((0,n.configEquals)(f.config,l))return f.atlas;1===f.ownedBy.length?(f.atlas.dispose(),o.splice(c,1)):f.ownedBy.splice(u,1);break}}for(c=0;c<o.length;c++){var f=o[c];if((0,n.configEquals)(f.config,l))return f.ownedBy.push(t),f.atlas}var d={atlas:new i.DynamicCharAtlas(document,l),config:l,ownedBy:[t]};return o.push(d),d.atlas},t.removeTerminalFromCache=function(e){for(var t=0;t<o.length;t++){var r=o[t].ownedBy.indexOf(e);if(-1!==r){1===o[t].ownedBy.length?(o[t].atlas.dispose(),o.splice(t,1)):o[t].ownedBy.splice(r,1);break}}}},2040:function(e,t,r){var n=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.is256Color=t.configEquals=t.generateConfig=void 0;var i=r(643);t.generateConfig=function(e,t,r,i){var o={foreground:i.foreground,background:i.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:n([],i.ansi,!0)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:e,scaledCharHeight:t,fontFamily:r.fontFamily,fontSize:r.fontSize,fontWeight:r.fontWeight,fontWeightBold:r.fontWeightBold,allowTransparency:r.allowTransparency,colors:o}},t.configEquals=function(e,t){for(var r=0;r<e.colors.ansi.length;r++)if(e.colors.ansi[r].rgba!==t.colors.ansi[r].rgba)return!1;return e.devicePixelRatio===t.devicePixelRatio&&e.fontFamily===t.fontFamily&&e.fontSize===t.fontSize&&e.fontWeight===t.fontWeight&&e.fontWeightBold===t.fontWeightBold&&e.allowTransparency===t.allowTransparency&&e.scaledCharWidth===t.scaledCharWidth&&e.scaledCharHeight===t.scaledCharHeight&&e.colors.foreground===t.colors.foreground&&e.colors.background===t.colors.background},t.is256Color=function(e){return e<i.DEFAULT_COLOR}},8803:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CHAR_ATLAS_CELL_SPACING=t.TEXT_BASELINE=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0;var n=r(6114);t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.TEXT_BASELINE=n.isFirefox||n.isLegacyEdge?"bottom":"ideographic",t.CHAR_ATLAS_CELL_SPACING=1},1906:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.NoneCharAtlas=t.DynamicCharAtlas=t.getGlyphCacheKey=void 0;var o=r(8803),s=r(9616),a=r(5680),l=r(7001),c=r(6114),u=r(1752),f=r(4774),d=1024,h=1024,p={css:"rgba(0, 0, 0, 0)",rgba:0};function v(e){return e.code<<21|e.bg<<12|e.fg<<3|(e.bold?0:4)+(e.dim?0:2)+(e.italic?0:1)}t.getGlyphCacheKey=v;var m=function(e){function t(t,r){var n=e.call(this)||this;n._config=r,n._drawToCacheCount=0,n._glyphsWaitingOnBitmap=[],n._bitmapCommitTimeout=null,n._bitmap=null,n._cacheCanvas=t.createElement("canvas"),n._cacheCanvas.width=d,n._cacheCanvas.height=h,n._cacheCtx=(0,u.throwIfFalsy)(n._cacheCanvas.getContext("2d",{alpha:!0}));var i=t.createElement("canvas");i.width=n._config.scaledCharWidth,i.height=n._config.scaledCharHeight,n._tmpCtx=(0,u.throwIfFalsy)(i.getContext("2d",{alpha:n._config.allowTransparency})),n._width=Math.floor(d/n._config.scaledCharWidth),n._height=Math.floor(h/n._config.scaledCharHeight);var o=n._width*n._height;return n._cacheMap=new l.LRUMap(o),n._cacheMap.prealloc(o),n}return i(t,e),t.prototype.dispose=function(){null!==this._bitmapCommitTimeout&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},t.prototype.beginFrame=function(){this._drawToCacheCount=0},t.prototype.clear=function(){if(this._cacheMap.size>0){var e=this._width*this._height;this._cacheMap=new l.LRUMap(e),this._cacheMap.prealloc(e)}this._cacheCtx.clearRect(0,0,d,h),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},t.prototype.draw=function(e,t,r,n){if(32===t.code)return!0;if(!this._canCache(t))return!1;var i=v(t),o=this._cacheMap.get(i);if(null!=o)return this._drawFromCache(e,o,r,n),!0;if(this._drawToCacheCount<100){var s;s=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var a=this._drawToCache(t,s);return this._cacheMap.set(i,a),this._drawFromCache(e,a,r,n),!0}return!1},t.prototype._canCache=function(e){return e.code<256},t.prototype._toCoordinateX=function(e){return e%this._width*this._config.scaledCharWidth},t.prototype._toCoordinateY=function(e){return Math.floor(e/this._width)*this._config.scaledCharHeight},t.prototype._drawFromCache=function(e,t,r,n){if(!t.isEmpty){var i=this._toCoordinateX(t.index),o=this._toCoordinateY(t.index);e.drawImage(t.inBitmap?this._bitmap:this._cacheCanvas,i,o,this._config.scaledCharWidth,this._config.scaledCharHeight,r,n,this._config.scaledCharWidth,this._config.scaledCharHeight)}},t.prototype._getColorFromAnsiIndex=function(e){return e<this._config.colors.ansi.length?this._config.colors.ansi[e]:a.DEFAULT_ANSI_COLORS[e]},t.prototype._getBackgroundColor=function(e){return this._config.allowTransparency?p:e.bg===o.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:e.bg<256?this._getColorFromAnsiIndex(e.bg):this._config.colors.background},t.prototype._getForegroundColor=function(e){return e.fg===o.INVERTED_DEFAULT_COLOR?f.color.opaque(this._config.colors.background):e.fg<256?this._getColorFromAnsiIndex(e.fg):this._config.colors.foreground},t.prototype._drawToCache=function(e,t){this._drawToCacheCount++,this._tmpCtx.save();var r=this._getBackgroundColor(e);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=r.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var n=e.bold?this._config.fontWeightBold:this._config.fontWeight,i=e.italic?"italic":"";this._tmpCtx.font=i+" "+n+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline=o.TEXT_BASELINE,this._tmpCtx.fillStyle=this._getForegroundColor(e).css,e.dim&&(this._tmpCtx.globalAlpha=o.DIM_OPACITY),this._tmpCtx.fillText(e.chars,0,this._config.scaledCharHeight);var s=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),a=!1;if(this._config.allowTransparency||(a=g(s,r)),a&&"_"===e.chars&&!this._config.allowTransparency)for(var l=1;l<=5&&(this._tmpCtx.fillText(e.chars,0,this._config.scaledCharHeight-l),a=g(s=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),r));l++);this._tmpCtx.restore();var c=this._toCoordinateX(t),u=this._toCoordinateY(t);this._cacheCtx.putImageData(s,c,u);var f={index:t,isEmpty:a,inBitmap:!1};return this._addGlyphToBitmap(f),f},t.prototype._addGlyphToBitmap=function(e){var t=this;!("createImageBitmap"in window)||c.isFirefox||c.isSafari||(this._glyphsWaitingOnBitmap.push(e),null===this._bitmapCommitTimeout&&(this._bitmapCommitTimeout=window.setTimeout((function(){return t._generateBitmap()}),100)))},t.prototype._generateBitmap=function(){var e=this,t=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then((function(r){e._bitmap=r;for(var n=0;n<t.length;n++)t[n].inBitmap=!0})),this._bitmapCommitTimeout=null},t}(s.BaseCharAtlas);t.DynamicCharAtlas=m;var _=function(e){function t(t,r){return e.call(this)||this}return i(t,e),t.prototype.draw=function(e,t,r,n){return!1},t}(s.BaseCharAtlas);function g(e,t){for(var r=!0,n=t.rgba>>>24,i=t.rgba>>>16&255,o=t.rgba>>>8&255,s=0;s<e.data.length;s+=4)e.data[s]===n&&e.data[s+1]===i&&e.data[s+2]===o?e.data[s+3]=0:r=!1;return r}t.NoneCharAtlas=_},7001:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LRUMap=void 0;var r=function(){function e(e){this.capacity=e,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return e.prototype._unlinkNode=function(e){var t=e.prev,r=e.next;e===this._head&&(this._head=r),e===this._tail&&(this._tail=t),null!==t&&(t.next=r),null!==r&&(r.prev=t)},e.prototype._appendNode=function(e){var t=this._tail;null!==t&&(t.next=e),e.prev=t,e.next=null,this._tail=e,null===this._head&&(this._head=e)},e.prototype.prealloc=function(e){for(var t=this._nodePool,r=0;r<e;r++)t.push({prev:null,next:null,key:null,value:null})},e.prototype.get=function(e){var t=this._map[e];return void 0!==t?(this._unlinkNode(t),this._appendNode(t),t.value):null},e.prototype.peekValue=function(e){var t=this._map[e];return void 0!==t?t.value:null},e.prototype.peek=function(){var e=this._head;return null===e?null:e.value},e.prototype.set=function(e,t){var r=this._map[e];if(void 0!==r)r=this._map[e],this._unlinkNode(r),r.value=t;else if(this.size>=this.capacity)r=this._head,this._unlinkNode(r),delete this._map[r.key],r.key=e,r.value=t,this._map[e]=r;else{var n=this._nodePool;n.length>0?((r=n.pop()).key=e,r.value=t):r={prev:null,next:null,key:e,value:t},this._map[e]=r,this.size++}this._appendNode(r)},e}();t.LRUMap=r},1296:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRenderer=void 0;var a=r(3787),l=r(8803),c=r(844),u=r(4725),f=r(2585),d=r(8460),h=r(4774),p=r(9631),v="xterm-dom-renderer-owner-",m="xterm-fg-",_="xterm-bg-",g="xterm-focus",y=1,b=function(e){function t(t,r,n,i,o,s,l,c,u,f){var d=e.call(this)||this;return d._colors=t,d._element=r,d._screenElement=n,d._viewportElement=i,d._linkifier=o,d._linkifier2=s,d._charSizeService=c,d._optionsService=u,d._bufferService=f,d._terminalClass=y++,d._rowElements=[],d._rowContainer=document.createElement("div"),d._rowContainer.classList.add("xterm-rows"),d._rowContainer.style.lineHeight="normal",d._rowContainer.setAttribute("aria-hidden","true"),d._refreshRowElements(d._bufferService.cols,d._bufferService.rows),d._selectionContainer=document.createElement("div"),d._selectionContainer.classList.add("xterm-selection"),d._selectionContainer.setAttribute("aria-hidden","true"),d.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},d._updateDimensions(),d._injectCss(),d._rowFactory=l.createInstance(a.DomRendererRowFactory,document,d._colors),d._element.classList.add(v+d._terminalClass),d._screenElement.appendChild(d._rowContainer),d._screenElement.appendChild(d._selectionContainer),d._linkifier.onShowLinkUnderline((function(e){return d._onLinkHover(e)})),d._linkifier.onHideLinkUnderline((function(e){return d._onLinkLeave(e)})),d._linkifier2.onShowLinkUnderline((function(e){return d._onLinkHover(e)})),d._linkifier2.onHideLinkUnderline((function(e){return d._onLinkLeave(e)})),d}return i(t,e),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return(new d.EventEmitter).event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this._element.classList.remove(v+this._terminalClass),(0,p.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),e.prototype.dispose.call(this)},t.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var e=0,t=this._rowElements;e<t.length;e++){var r=t[e];r.style.width=this.dimensions.canvasWidth+"px",r.style.height=this.dimensions.actualCellHeight+"px",r.style.lineHeight=this.dimensions.actualCellHeight+"px",r.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var n=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.textContent=n,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},t.prototype.setColors=function(e){this._colors=e,this._injectCss()},t.prototype._injectCss=function(){var e=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var t=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.rawOptions.fontFamily+"; font-size: "+this._optionsService.rawOptions.fontSize+"px;}";t+=this._terminalSelector+" span:not(."+a.BOLD_CLASS+") { font-weight: "+this._optionsService.rawOptions.fontWeight+";}"+this._terminalSelector+" span."+a.BOLD_CLASS+" { font-weight: "+this._optionsService.rawOptions.fontWeightBold+";}"+this._terminalSelector+" span."+a.ITALIC_CLASS+" { font-style: italic;}",t+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% {  box-shadow: none; }}",t+="@keyframes blink_block_"+this._terminalClass+" { 0% {  background-color: "+this._colors.cursor.css+";  color: "+this._colors.cursorAccent.css+"; } 50% {  background-color: "+this._colors.cursorAccent.css+";  color: "+this._colors.cursor.css+"; }}",t+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+a.CURSOR_CLASS+"."+a.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+a.CURSOR_CLASS+"."+a.CURSOR_BLINK_CLASS+":not(."+a.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+a.CURSOR_CLASS+"."+a.CURSOR_BLINK_CLASS+"."+a.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+a.CURSOR_CLASS+"."+a.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+a.CURSOR_CLASS+"."+a.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.rawOptions.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+a.CURSOR_CLASS+"."+a.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",t+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach((function(r,n){t+=e._terminalSelector+" ."+m+n+" { color: "+r.css+"; }"+e._terminalSelector+" ."+_+n+" { background-color: "+r.css+"; }"})),t+=this._terminalSelector+" ."+m+l.INVERTED_DEFAULT_COLOR+" { color: "+h.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+_+l.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.textContent=t},t.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},t.prototype._refreshRowElements=function(e,t){for(var r=this._rowElements.length;r<=t;r++){var n=document.createElement("div");this._rowContainer.appendChild(n),this._rowElements.push(n)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())},t.prototype.onResize=function(e,t){this._refreshRowElements(e,t),this._updateDimensions()},t.prototype.onCharSizeChanged=function(){this._updateDimensions()},t.prototype.onBlur=function(){this._rowContainer.classList.remove(g)},t.prototype.onFocus=function(){this._rowContainer.classList.add(g)},t.prototype.onSelectionChanged=function(e,t,r){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(e&&t){var n=e[1]-this._bufferService.buffer.ydisp,i=t[1]-this._bufferService.buffer.ydisp,o=Math.max(n,0),s=Math.min(i,this._bufferService.rows-1);if(!(o>=this._bufferService.rows||s<0)){var a=document.createDocumentFragment();if(r)a.appendChild(this._createSelectionElement(o,e[0],t[0],s-o+1));else{var l=n===o?e[0]:0,c=o===i?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(o,l,c));var u=s-o-1;if(a.appendChild(this._createSelectionElement(o+1,0,this._bufferService.cols,u)),o!==s){var f=i===s?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(s,0,f))}}this._selectionContainer.appendChild(a)}}},t.prototype._createSelectionElement=function(e,t,r,n){void 0===n&&(n=1);var i=document.createElement("div");return i.style.height=n*this.dimensions.actualCellHeight+"px",i.style.top=e*this.dimensions.actualCellHeight+"px",i.style.left=t*this.dimensions.actualCellWidth+"px",i.style.width=this.dimensions.actualCellWidth*(r-t)+"px",i},t.prototype.onCursorMove=function(){},t.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},t.prototype.clear=function(){for(var e=0,t=this._rowElements;e<t.length;e++)t[e].innerText=""},t.prototype.renderRows=function(e,t){for(var r=this._bufferService.buffer.ybase+this._bufferService.buffer.y,n=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),i=this._optionsService.rawOptions.cursorBlink,o=e;o<=t;o++){var s=this._rowElements[o];s.innerText="";var a=o+this._bufferService.buffer.ydisp,l=this._bufferService.buffer.lines.get(a),c=this._optionsService.rawOptions.cursorStyle;s.appendChild(this._rowFactory.createRow(l,a,a===r,c,n,i,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(t.prototype,"_terminalSelector",{get:function(){return"."+v+this._terminalClass},enumerable:!1,configurable:!0}),t.prototype._onLinkHover=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)},t.prototype._onLinkLeave=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)},t.prototype._setCellUnderline=function(e,t,r,n,i,o){for(;e!==t||r!==n;){var s=this._rowElements[r];if(!s)return;var a=s.children[e];a&&(a.style.textDecoration=o?"underline":"none"),++e>=i&&(e=0,r++)}},o([s(6,f.IInstantiationService),s(7,u.ICharSizeService),s(8,f.IOptionsService),s(9,f.IBufferService)],t)}(c.Disposable);t.DomRenderer=b},3787:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRendererRowFactory=t.CURSOR_STYLE_UNDERLINE_CLASS=t.CURSOR_STYLE_BAR_CLASS=t.CURSOR_STYLE_BLOCK_CLASS=t.CURSOR_BLINK_CLASS=t.CURSOR_CLASS=t.STRIKETHROUGH_CLASS=t.UNDERLINE_CLASS=t.ITALIC_CLASS=t.DIM_CLASS=t.BOLD_CLASS=void 0;var o=r(8803),s=r(643),a=r(511),l=r(2585),c=r(4774),u=r(4725),f=r(4269);t.BOLD_CLASS="xterm-bold",t.DIM_CLASS="xterm-dim",t.ITALIC_CLASS="xterm-italic",t.UNDERLINE_CLASS="xterm-underline",t.STRIKETHROUGH_CLASS="xterm-strikethrough",t.CURSOR_CLASS="xterm-cursor",t.CURSOR_BLINK_CLASS="xterm-cursor-blink",t.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",t.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",t.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var d=function(){function e(e,t,r,n,i){this._document=e,this._colors=t,this._characterJoinerService=r,this._optionsService=n,this._coreService=i,this._workCell=new a.CellData}return e.prototype.setColors=function(e){this._colors=e},e.prototype.createRow=function(e,r,n,i,a,l,u,d){for(var p=this._document.createDocumentFragment(),v=this._characterJoinerService.getJoinedCharacters(r),m=0,_=Math.min(e.length,d)-1;_>=0;_--)if(e.loadCell(_,this._workCell).getCode()!==s.NULL_CELL_CODE||n&&_===a){m=_+1;break}for(_=0;_<m;_++){e.loadCell(_,this._workCell);var g=this._workCell.getWidth();if(0!==g){var y=!1,b=_,C=this._workCell;if(v.length>0&&_===v[0][0]){y=!0;var S=v.shift();C=new f.JoinedCellData(this._workCell,e.translateToString(!0,S[0],S[1]),S[1]-S[0]),b=S[1]-1,g=C.getWidth()}var w=this._document.createElement("span");if(g>1&&(w.style.width=u*g+"px"),y&&(w.style.display="inline",a>=_&&a<=b&&(a=_)),!this._coreService.isCursorHidden&&n&&_===a)switch(w.classList.add(t.CURSOR_CLASS),l&&w.classList.add(t.CURSOR_BLINK_CLASS),i){case"bar":w.classList.add(t.CURSOR_STYLE_BAR_CLASS);break;case"underline":w.classList.add(t.CURSOR_STYLE_UNDERLINE_CLASS);break;default:w.classList.add(t.CURSOR_STYLE_BLOCK_CLASS)}C.isBold()&&w.classList.add(t.BOLD_CLASS),C.isItalic()&&w.classList.add(t.ITALIC_CLASS),C.isDim()&&w.classList.add(t.DIM_CLASS),C.isUnderline()&&w.classList.add(t.UNDERLINE_CLASS),C.isInvisible()?w.textContent=s.WHITESPACE_CELL_CHAR:w.textContent=C.getChars()||s.WHITESPACE_CELL_CHAR,C.isStrikethrough()&&w.classList.add(t.STRIKETHROUGH_CLASS);var E=C.getFgColor(),x=C.getFgColorMode(),k=C.getBgColor(),L=C.getBgColorMode(),D=!!C.isInverse();if(D){var j=E;E=k,k=j;var O=x;x=L,L=O}switch(x){case 16777216:case 33554432:C.isBold()&&E<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(E+=8),this._applyMinimumContrast(w,this._colors.background,this._colors.ansi[E])||w.classList.add("xterm-fg-"+E);break;case 50331648:var M=c.rgba.toColor(E>>16&255,E>>8&255,255&E);this._applyMinimumContrast(w,this._colors.background,M)||this._addStyle(w,"color:#"+h(E.toString(16),"0",6));break;default:this._applyMinimumContrast(w,this._colors.background,this._colors.foreground)||D&&w.classList.add("xterm-fg-"+o.INVERTED_DEFAULT_COLOR)}switch(L){case 16777216:case 33554432:w.classList.add("xterm-bg-"+k);break;case 50331648:this._addStyle(w,"background-color:#"+h(k.toString(16),"0",6));break;default:D&&w.classList.add("xterm-bg-"+o.INVERTED_DEFAULT_COLOR)}p.appendChild(w),_=b}}return p},e.prototype._applyMinimumContrast=function(e,t,r){if(1===this._optionsService.rawOptions.minimumContrastRatio)return!1;var n=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return void 0===n&&(n=c.color.ensureContrastRatio(t,r,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,null!=n?n:null)),!!n&&(this._addStyle(e,"color:"+n.css),!0)},e.prototype._addStyle=function(e,t){e.setAttribute("style",""+(e.getAttribute("style")||"")+t+";")},n([i(2,u.ICharacterJoinerService),i(3,l.IOptionsService),i(4,l.ICoreService)],e)}();function h(e,t,r){for(;e.length<r;)e=t+e;return e}t.DomRendererRowFactory=d},456:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModel=void 0;var r=function(){function e(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}return e.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(e.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?e%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),e.prototype.areSelectionValuesReversed=function(){var e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])},e.prototype.onTrim=function(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},e}();t.SelectionModel=r},428:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharSizeService=void 0;var o=r(2585),s=r(8460),a=function(){function e(e,t,r){this._optionsService=r,this.width=0,this.height=0,this._onCharSizeChange=new s.EventEmitter,this._measureStrategy=new l(e,t,this._optionsService)}return Object.defineProperty(e.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),e.prototype.measure=function(){var e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())},n([i(2,o.IOptionsService)],e)}();t.CharSizeService=a;var l=function(){function e(e,t,r){this._document=e,this._parentElement=t,this._optionsService=r,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return e.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var e=this._measureElement.getBoundingClientRect();return 0!==e.width&&0!==e.height&&(this._result.width=e.width,this._result.height=Math.ceil(e.height)),this._result},e}()},4269:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterJoinerService=t.JoinedCellData=void 0;var a=r(3734),l=r(643),c=r(511),u=r(2585),f=function(e){function t(t,r,n){var i=e.call(this)||this;return i.content=0,i.combinedData="",i.fg=t.fg,i.bg=t.bg,i.combinedData=r,i._width=n,i}return i(t,e),t.prototype.isCombined=function(){return 2097152},t.prototype.getWidth=function(){return this._width},t.prototype.getChars=function(){return this.combinedData},t.prototype.getCode=function(){return 2097151},t.prototype.setFromCharData=function(e){throw new Error("not implemented")},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(a.AttributeData);t.JoinedCellData=f;var d=function(){function e(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new c.CellData}return e.prototype.register=function(e){var t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id},e.prototype.deregister=function(e){for(var t=0;t<this._characterJoiners.length;t++)if(this._characterJoiners[t].id===e)return this._characterJoiners.splice(t,1),!0;return!1},e.prototype.getJoinedCharacters=function(e){if(0===this._characterJoiners.length)return[];var t=this._bufferService.buffer.lines.get(e);if(!t||0===t.length)return[];for(var r=[],n=t.translateToString(!0),i=0,o=0,s=0,a=t.getFg(0),c=t.getBg(0),u=0;u<t.getTrimmedLength();u++)if(t.loadCell(u,this._workCell),0!==this._workCell.getWidth()){if(this._workCell.fg!==a||this._workCell.bg!==c){if(u-i>1)for(var f=this._getJoinedRanges(n,s,o,t,i),d=0;d<f.length;d++)r.push(f[d]);i=u,s=o,a=this._workCell.fg,c=this._workCell.bg}o+=this._workCell.getChars().length||l.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-i>1)for(f=this._getJoinedRanges(n,s,o,t,i),d=0;d<f.length;d++)r.push(f[d]);return r},e.prototype._getJoinedRanges=function(t,r,n,i,o){var s=t.substring(r,n),a=[];try{a=this._characterJoiners[0].handler(s)}catch(e){console.error(e)}for(var l=1;l<this._characterJoiners.length;l++)try{for(var c=this._characterJoiners[l].handler(s),u=0;u<c.length;u++)e._mergeRanges(a,c[u])}catch(e){console.error(e)}return this._stringRangesToCellRanges(a,i,o),a},e.prototype._stringRangesToCellRanges=function(e,t,r){var n=0,i=!1,o=0,s=e[n];if(s){for(var a=r;a<this._bufferService.cols;a++){var c=t.getWidth(a),u=t.getString(a).length||l.WHITESPACE_CELL_CHAR.length;if(0!==c){if(!i&&s[0]<=o&&(s[0]=a,i=!0),s[1]<=o){if(s[1]=a,!(s=e[++n]))break;s[0]<=o?(s[0]=a,i=!0):i=!1}o+=u}}s&&(s[1]=this._bufferService.cols)}},e._mergeRanges=function(e,t){for(var r=!1,n=0;n<e.length;n++){var i=e[n];if(r){if(t[1]<=i[0])return e[n-1][1]=t[1],e;if(t[1]<=i[1])return e[n-1][1]=Math.max(t[1],i[1]),e.splice(n,1),e;e.splice(n,1),n--}else{if(t[1]<=i[0])return e.splice(n,0,t),e;if(t[1]<=i[1])return i[0]=Math.min(t[0],i[0]),e;t[0]<i[1]&&(i[0]=Math.min(t[0],i[0]),r=!0)}}return r?e[e.length-1][1]=t[1]:e.push(t),e},e=o([s(0,u.IBufferService)],e)}();t.CharacterJoinerService=d},5114:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreBrowserService=void 0;var r=function(){function e(e){this._textarea=e}return Object.defineProperty(e.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),e}();t.CoreBrowserService=r},7641:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Decoration=t.DecorationService=void 0;var a=r(8460),l=r(844),c=r(2585),u=function(e){function t(t){var r=e.call(this)||this;return r._instantiationService=t,r._decorations=[],r}return i(t,e),t.prototype.attachToDom=function(e,t){var r=this;this._renderService=t,this._screenElement=e,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),e.appendChild(this._container),this.register(this._renderService.onRenderedBufferChange((function(){return r.refresh()}))),this.register(this._renderService.onDimensionsChange((function(){return r.refresh(!0)})))},t.prototype.registerDecoration=function(e){var t=this;if(!e.marker.isDisposed&&this._container){var r=this._instantiationService.createInstance(f,e,this._container);return this._decorations.push(r),r.onDispose((function(){return t._decorations.splice(t._decorations.indexOf(r),1)})),this._queueRefresh(),r}},t.prototype._queueRefresh=function(){var e=this;void 0===this._animationFrame&&(this._animationFrame=window.requestAnimationFrame((function(){e.refresh(),e._animationFrame=void 0})))},t.prototype.refresh=function(e){if(this._renderService)for(var t=0,r=this._decorations;t<r.length;t++)r[t].render(this._renderService,e)},t.prototype.dispose=function(){for(var e=0,t=this._decorations;e<t.length;e++)t[e].dispose();this._screenElement&&this._container&&this._screenElement.contains(this._container)&&this._screenElement.removeChild(this._container)},o([s(0,c.IInstantiationService)],t)}(l.Disposable);t.DecorationService=u;var f=function(e){function t(t,r,n){var i,o=e.call(this)||this;return o._container=r,o._bufferService=n,o.isDisposed=!1,o._onDispose=new a.EventEmitter,o._onRender=new a.EventEmitter,o.x=null!==(i=t.x)&&void 0!==i?i:0,o._marker=t.marker,o._marker.onDispose((function(){return o.dispose()})),o.anchor=t.anchor||"left",o.width=t.width||1,o.height=t.height||1,o}return i(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"marker",{get:function(){return this._marker},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),t.prototype.render=function(e,t){this._element&&!t||this._createElement(e,t),this._container&&this._element&&!this._container.contains(this._element)&&this._container.append(this._element),this._refreshStyle(e),this._element&&this._onRender.fire(this._element)},t.prototype._createElement=function(e,t){t&&this._element&&this._container.contains(this._element)&&this._container.removeChild(this._element),this._element=document.createElement("div"),this._element.classList.add("xterm-decoration"),this._element.style.width=this.width*e.dimensions.actualCellWidth+"px",this._element.style.height=this.height*e.dimensions.actualCellHeight+"px",this._element.style.top=(this.marker.line-this._bufferService.buffers.active.ydisp)*e.dimensions.actualCellHeight+"px",this._element.style.lineHeight=e.dimensions.actualCellHeight+"px",this.x&&this.x>this._bufferService.cols&&(this._element.style.display="none"),"right"===this.anchor?this._element.style.right=this.x?this.x*e.dimensions.actualCellWidth+"px":"":this._element.style.left=this.x?this.x*e.dimensions.actualCellWidth+"px":""},t.prototype._refreshStyle=function(e){if(this._element){var t=this.marker.line-this._bufferService.buffers.active.ydisp;t<0||t>this._bufferService.rows?this._element.style.display="none":(this._element.style.top=t*e.dimensions.actualCellHeight+"px",this._element.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block")}},t.prototype.dispose=function(){this.isDisposed||(this._element&&this._container.contains(this._element)&&this._container.removeChild(this._element),this.isDisposed=!0,this._onDispose.fire())},o([s(2,c.IBufferService)],t)}(l.Disposable);t.Decoration=f},8934:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseService=void 0;var o=r(4725),s=r(9806),a=function(){function e(e,t){this._renderService=e,this._charSizeService=t}return e.prototype.getCoords=function(e,t,r,n,i){return(0,s.getCoords)(e,t,r,n,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,i)},e.prototype.getRawByteCoords=function(e,t,r,n){var i=this.getCoords(e,t,r,n);return(0,s.getRawByteCoords)(i)},n([i(0,o.IRenderService),i(1,o.ICharSizeService)],e)}();t.MouseService=a},3230:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderService=void 0;var a=r(6193),l=r(8460),c=r(844),u=r(5596),f=r(3656),d=r(2585),h=r(4725),p=function(e){function t(t,r,n,i,o,s){var c=e.call(this)||this;if(c._renderer=t,c._rowCount=r,c._charSizeService=o,c._isPaused=!1,c._needsFullRefresh=!1,c._isNextRenderRedrawOnly=!0,c._needsSelectionRefresh=!1,c._canvasWidth=0,c._canvasHeight=0,c._selectionState={start:void 0,end:void 0,columnSelectMode:!1},c._onDimensionsChange=new l.EventEmitter,c._onRender=new l.EventEmitter,c._onRefreshRequest=new l.EventEmitter,c.register({dispose:function(){return c._renderer.dispose()}}),c._renderDebouncer=new a.RenderDebouncer((function(e,t){return c._renderRows(e,t)})),c.register(c._renderDebouncer),c._screenDprMonitor=new u.ScreenDprMonitor,c._screenDprMonitor.setListener((function(){return c.onDevicePixelRatioChange()})),c.register(c._screenDprMonitor),c.register(s.onResize((function(){return c._fullRefresh()}))),c.register(s.buffers.onBufferActivate((function(){var e;return null===(e=c._renderer)||void 0===e?void 0:e.clear()}))),c.register(i.onOptionChange((function(){return c._renderer.onOptionsChanged()}))),c.register(c._charSizeService.onCharSizeChange((function(){return c.onCharSizeChanged()}))),c._renderer.onRequestRedraw((function(e){return c.refreshRows(e.start,e.end,!0)})),c.register((0,f.addDisposableDomListener)(window,"resize",(function(){return c.onDevicePixelRatioChange()}))),"IntersectionObserver"in window){var d=new IntersectionObserver((function(e){return c._onIntersectionChange(e[e.length-1])}),{threshold:0});d.observe(n),c.register({dispose:function(){return d.disconnect()}})}return c}return i(t,e),Object.defineProperty(t.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),t.prototype._onIntersectionChange=function(e){this._isPaused=void 0===e.isIntersecting?0===e.intersectionRatio:!e.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},t.prototype.refreshRows=function(e,t,r){void 0===r&&(r=!1),this._isPaused?this._needsFullRefresh=!0:(r||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount))},t.prototype._renderRows=function(e,t){this._renderer.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0},t.prototype.resize=function(e,t){this._rowCount=t,this._fireOnCanvasResize()},t.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},t.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.setRenderer=function(e){var t=this;this._renderer.dispose(),this._renderer=e,this._renderer.onRequestRedraw((function(e){return t.refreshRows(e.start,e.end,!0)})),this._needsSelectionRefresh=!0,this._fullRefresh()},t.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},t.prototype.clearTextureAtlas=function(){var e,t;null===(t=null===(e=this._renderer)||void 0===e?void 0:e.clearTextureAtlas)||void 0===t||t.call(e),this._fullRefresh()},t.prototype.setColors=function(e){this._renderer.setColors(e),this._fullRefresh()},t.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},t.prototype.onResize=function(e,t){this._renderer.onResize(e,t),this._fullRefresh()},t.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},t.prototype.onBlur=function(){this._renderer.onBlur()},t.prototype.onFocus=function(){this._renderer.onFocus()},t.prototype.onSelectionChanged=function(e,t,r){this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=r,this._renderer.onSelectionChanged(e,t,r)},t.prototype.onCursorMove=function(){this._renderer.onCursorMove()},t.prototype.clear=function(){this._renderer.clear()},o([s(3,d.IOptionsService),s(4,h.ICharSizeService),s(5,d.IBufferService)],t)}(c.Disposable);t.RenderService=p},9312:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionService=void 0;var a=r(6114),l=r(456),c=r(511),u=r(8460),f=r(4725),d=r(2585),h=r(9806),p=r(9504),v=r(844),m=r(4841),_=String.fromCharCode(160),g=new RegExp(_,"g"),y=function(e){function t(t,r,n,i,o,s,a,f){var d=e.call(this)||this;return d._element=t,d._screenElement=r,d._linkifier=n,d._bufferService=i,d._coreService=o,d._mouseService=s,d._optionsService=a,d._renderService=f,d._dragScrollAmount=0,d._enabled=!0,d._workCell=new c.CellData,d._mouseDownTimeStamp=0,d._oldHasSelection=!1,d._oldSelectionStart=void 0,d._oldSelectionEnd=void 0,d._onLinuxMouseSelection=d.register(new u.EventEmitter),d._onRedrawRequest=d.register(new u.EventEmitter),d._onSelectionChange=d.register(new u.EventEmitter),d._onRequestScrollLines=d.register(new u.EventEmitter),d._mouseMoveListener=function(e){return d._onMouseMove(e)},d._mouseUpListener=function(e){return d._onMouseUp(e)},d._coreService.onUserInput((function(){d.hasSelection&&d.clearSelection()})),d._trimListener=d._bufferService.buffer.lines.onTrim((function(e){return d._onTrim(e)})),d.register(d._bufferService.buffers.onBufferActivate((function(e){return d._onBufferActivate(e)}))),d.enable(),d._model=new l.SelectionModel(d._bufferService),d._activeSelectionMode=0,d}return i(t,e),Object.defineProperty(t.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this._removeMouseDownListeners()},t.prototype.reset=function(){this.clearSelection()},t.prototype.disable=function(){this.clearSelection(),this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelection",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t||e[0]===t[0]&&e[1]===t[1])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionText",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";var r=this._bufferService.buffer,n=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";for(var i=e[1];i<=t[1];i++){var o=r.translateBufferLineToString(i,!0,e[0],t[0]);n.push(o)}}else{var s=e[1]===t[1]?t[0]:void 0;for(n.push(r.translateBufferLineToString(e[1],!0,e[0],s)),i=e[1]+1;i<=t[1]-1;i++){var l=r.lines.get(i);o=r.translateBufferLineToString(i,!0),(null==l?void 0:l.isWrapped)?n[n.length-1]+=o:n.push(o)}e[1]!==t[1]&&(l=r.lines.get(t[1]),o=r.translateBufferLineToString(t[1],!0,0,t[0]),l&&l.isWrapped?n[n.length-1]+=o:n.push(o))}return n.map((function(e){return e.replace(g," ")})).join(a.isWindows?"\r\n":"\n")},enumerable:!1,configurable:!0}),t.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},t.prototype.refresh=function(e){var t=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame((function(){return t._refresh()}))),a.isLinux&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},t.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},t.prototype._isClickInSelection=function(e){var t=this._getMouseBufferCoords(e),r=this._model.finalSelectionStart,n=this._model.finalSelectionEnd;return!!(r&&n&&t)&&this._areCoordsInSelection(t,r,n)},t.prototype._areCoordsInSelection=function(e,t,r){return e[1]>t[1]&&e[1]<r[1]||t[1]===r[1]&&e[1]===t[1]&&e[0]>=t[0]&&e[0]<r[0]||t[1]<r[1]&&e[1]===r[1]&&e[0]<r[0]||t[1]<r[1]&&e[1]===t[1]&&e[0]>=t[0]},t.prototype._selectWordAtCursor=function(e,t){var r,n,i=null===(n=null===(r=this._linkifier.currentLink)||void 0===r?void 0:r.link)||void 0===n?void 0:n.range;if(i)return this._model.selectionStart=[i.start.x-1,i.start.y-1],this._model.selectionStartLength=(0,m.getRangeLength)(i,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var o=this._getMouseBufferCoords(e);return!!o&&(this._selectWordAt(o,t),this._model.selectionEnd=void 0,!0)},t.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},t.prototype.selectLines=function(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()},t.prototype._onTrim=function(e){this._model.onTrim(e)&&this.refresh()},t.prototype._getMouseBufferCoords=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t},t.prototype._getMouseEventScrollAmount=function(e){var t=(0,h.getCoordsRelativeToElement)(e,this._screenElement)[1],r=this._renderService.dimensions.canvasHeight;return t>=0&&t<=r?0:(t>r&&(t-=r),t=Math.min(Math.max(t,-50),50),(t/=50)/Math.abs(t)+Math.round(14*t))},t.prototype.shouldForceSelection=function(e){return a.isMac?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey},t.prototype.onMouseDown=function(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._onIncrementalClick(e):1===e.detail?this._onSingleClick(e):2===e.detail?this._onDoubleClick(e):3===e.detail&&this._onTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}},t.prototype._addMouseDownListeners=function(){var e=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval((function(){return e._dragScroll()}),50)},t.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},t.prototype._onIncrementalClick=function(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))},t.prototype._onSingleClick=function(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),this._model.selectionStart){this._model.selectionEnd=void 0;var t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&0===t.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}},t.prototype._onDoubleClick=function(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)},t.prototype._onTripleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))},t.prototype.shouldColumnSelect=function(e){return e.altKey&&!(a.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)},t.prototype._onMouseMove=function(e){if(e.stopImmediatePropagation(),this._model.selectionStart){var t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:1===this._activeSelectionMode&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),3!==this._activeSelectionMode&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var r=this._bufferService.buffer;if(this._model.selectionEnd[1]<r.lines.length){var n=r.lines.get(this._model.selectionEnd[1]);n&&0===n.hasWidth(this._model.selectionEnd[0])&&this._model.selectionEnd[0]++}t&&t[0]===this._model.selectionEnd[0]&&t[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},t.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var e=this._bufferService.buffer;this._dragScrollAmount>0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}},t.prototype._onMouseUp=function(e){var t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500&&e.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var r=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(r&&void 0!==r[0]&&void 0!==r[1]){var n=(0,p.moveToCellSequence)(r[0]-1,r[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(n,!0)}}}else this._fireEventIfSelectionChanged()},t.prototype._fireEventIfSelectionChanged=function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,r=!(!e||!t||e[0]===t[0]&&e[1]===t[1]);r?e&&t&&(this._oldSelectionStart&&this._oldSelectionEnd&&e[0]===this._oldSelectionStart[0]&&e[1]===this._oldSelectionStart[1]&&t[0]===this._oldSelectionEnd[0]&&t[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(e,t,r)):this._oldHasSelection&&this._fireOnSelectionChange(e,t,r)},t.prototype._fireOnSelectionChange=function(e,t,r){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=r,this._onSelectionChange.fire()},t.prototype._onBufferActivate=function(e){var t=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim((function(e){return t._onTrim(e)}))},t.prototype._convertViewportColToCharacterIndex=function(e,t){for(var r=t[0],n=0;t[0]>=n;n++){var i=e.loadCell(n,this._workCell).getChars().length;0===this._workCell.getWidth()?r--:i>1&&t[0]!==n&&(r+=i-1)}return r},t.prototype.setSelection=function(e,t,r){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=r,this.refresh()},t.prototype.rightClickSelect=function(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},t.prototype._getWordAt=function(e,t,r,n){if(void 0===r&&(r=!0),void 0===n&&(n=!0),!(e[0]>=this._bufferService.cols)){var i=this._bufferService.buffer,o=i.lines.get(e[1]);if(o){var s=i.translateBufferLineToString(e[1],!1),a=this._convertViewportColToCharacterIndex(o,e),l=a,c=e[0]-a,u=0,f=0,d=0,h=0;if(" "===s.charAt(a)){for(;a>0&&" "===s.charAt(a-1);)a--;for(;l<s.length&&" "===s.charAt(l+1);)l++}else{var p=e[0],v=e[0];0===o.getWidth(p)&&(u++,p--),2===o.getWidth(v)&&(f++,v++);var m=o.getString(v).length;for(m>1&&(h+=m-1,l+=m-1);p>0&&a>0&&!this._isCharWordSeparator(o.loadCell(p-1,this._workCell));){o.loadCell(p-1,this._workCell);var _=this._workCell.getChars().length;0===this._workCell.getWidth()?(u++,p--):_>1&&(d+=_-1,a-=_-1),a--,p--}for(;v<o.length&&l+1<s.length&&!this._isCharWordSeparator(o.loadCell(v+1,this._workCell));){o.loadCell(v+1,this._workCell);var g=this._workCell.getChars().length;2===this._workCell.getWidth()?(f++,v++):g>1&&(h+=g-1,l+=g-1),l++,v++}}l++;var y=a+c-u+d,b=Math.min(this._bufferService.cols,l-a+u+f-d-h);if(t||""!==s.slice(a,l).trim()){if(r&&0===y&&32!==o.getCodePoint(0)){var C=i.lines.get(e[1]-1);if(C&&o.isWrapped&&32!==C.getCodePoint(this._bufferService.cols-1)){var S=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(S){var w=this._bufferService.cols-S.start;y-=w,b+=w}}}if(n&&y+b===this._bufferService.cols&&32!==o.getCodePoint(this._bufferService.cols-1)){var E=i.lines.get(e[1]+1);if((null==E?void 0:E.isWrapped)&&32!==E.getCodePoint(0)){var x=this._getWordAt([0,e[1]+1],!1,!1,!0);x&&(b+=x.length)}}return{start:y,length:b}}}}},t.prototype._selectWordAt=function(e,t){var r=this._getWordAt(e,t);if(r){for(;r.start<0;)r.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[r.start,e[1]],this._model.selectionStartLength=r.length}},t.prototype._selectToWordAt=function(e){var t=this._getWordAt(e,!0);if(t){for(var r=e[1];t.start<0;)t.start+=this._bufferService.cols,r--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,r++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,r]}},t.prototype._isCharWordSeparator=function(e){return 0!==e.getWidth()&&this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0},t.prototype._selectLineAt=function(e){var t=this._bufferService.buffer.getWrappedRangeForLine(e);this._model.selectionStart=[0,t.first],this._model.selectionEnd=[this._bufferService.cols,t.last],this._model.selectionStartLength=0},o([s(3,d.IBufferService),s(4,d.ICoreService),s(5,f.IMouseService),s(6,d.IOptionsService),s(7,f.IRenderService)],t)}(v.Disposable);t.SelectionService=y},4725:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationService=t.ICharacterJoinerService=t.ISoundService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;var n=r(8343);t.ICharSizeService=(0,n.createDecorator)("CharSizeService"),t.ICoreBrowserService=(0,n.createDecorator)("CoreBrowserService"),t.IMouseService=(0,n.createDecorator)("MouseService"),t.IRenderService=(0,n.createDecorator)("RenderService"),t.ISelectionService=(0,n.createDecorator)("SelectionService"),t.ISoundService=(0,n.createDecorator)("SoundService"),t.ICharacterJoinerService=(0,n.createDecorator)("CharacterJoinerService"),t.IDecorationService=(0,n.createDecorator)("DecorationService")},357:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SoundService=void 0;var o=r(2585),s=function(){function e(e){this._optionsService=e}return Object.defineProperty(e,"audioContext",{get:function(){if(!e._audioContext){var t=window.AudioContext||window.webkitAudioContext;if(!t)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;e._audioContext=new t}return e._audioContext},enumerable:!1,configurable:!0}),e.prototype.playBellSound=function(){var t=e.audioContext;if(t){var r=t.createBufferSource();t.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.rawOptions.bellSound)),(function(e){r.buffer=e,r.connect(t.destination),r.start(0)}))}},e.prototype._base64ToArrayBuffer=function(e){for(var t=window.atob(e),r=t.length,n=new Uint8Array(r),i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer},e.prototype._removeMimeType=function(e){return e.split(",")[1]},e=n([i(0,o.IOptionsService)],e)}();t.SoundService=s},6349:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CircularList=void 0;var n=r(8460),i=function(){function e(e){this._maxLength=e,this.onDeleteEmitter=new n.EventEmitter,this.onInsertEmitter=new n.EventEmitter,this.onTrimEmitter=new n.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(e.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxLength",{get:function(){return this._maxLength},set:function(e){if(this._maxLength!==e){for(var t=new Array(e),r=0;r<Math.min(e,this.length);r++)t[r]=this._array[this._getCyclicIndex(r)];this._array=t,this._maxLength=e,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._length},set:function(e){if(e>this._length)for(var t=this._length;t<e;t++)this._array[t]=void 0;this._length=e},enumerable:!1,configurable:!0}),e.prototype.get=function(e){return this._array[this._getCyclicIndex(e)]},e.prototype.set=function(e,t){this._array[this._getCyclicIndex(e)]=t},e.prototype.push=function(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},e.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(e.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),e.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},e.prototype.splice=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(t){for(var i=e;i<this._length-t;i++)this._array[this._getCyclicIndex(i)]=this._array[this._getCyclicIndex(i+t)];this._length-=t,this.onDeleteEmitter.fire({index:e,amount:t})}for(i=this._length-1;i>=e;i--)this._array[this._getCyclicIndex(i+r.length)]=this._array[this._getCyclicIndex(i)];for(i=0;i<r.length;i++)this._array[this._getCyclicIndex(e+i)]=r[i];if(r.length&&this.onInsertEmitter.fire({index:e,amount:r.length}),this._length+r.length>this._maxLength){var o=this._length+r.length-this._maxLength;this._startIndex+=o,this._length=this._maxLength,this.onTrimEmitter.fire(o)}else this._length+=r.length},e.prototype.trimStart=function(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)},e.prototype.shiftElements=function(e,t,r){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+r<0)throw new Error("Cannot shift elements in list beyond index 0");if(r>0){for(var n=t-1;n>=0;n--)this.set(e+n+r,this.get(e+n));var i=e+t+r-this._length;if(i>0)for(this._length+=i;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(n=0;n<t;n++)this.set(e+n+r,this.get(e+n))}},e.prototype._getCyclicIndex=function(e){return(this._startIndex+e)%this._maxLength},e}();t.CircularList=i},1439:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t,r){if(void 0===r&&(r=5),"object"!=typeof t)return t;var n=Array.isArray(t)?[]:{};for(var i in t)n[i]=r<=1?t[i]:t[i]&&e(t[i],r-1);return n}},8969:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.CoreTerminal=void 0;var o=r(844),s=r(2585),a=r(4348),l=r(7866),c=r(744),u=r(7302),f=r(6975),d=r(8460),h=r(1753),p=r(3730),v=r(1480),m=r(7994),_=r(9282),g=r(5435),y=r(5981),b=!1,C=function(e){function t(t){var r=e.call(this)||this;return r._onBinary=new d.EventEmitter,r._onData=new d.EventEmitter,r._onLineFeed=new d.EventEmitter,r._onResize=new d.EventEmitter,r._onScroll=new d.EventEmitter,r._instantiationService=new a.InstantiationService,r.optionsService=new u.OptionsService(t),r._instantiationService.setService(s.IOptionsService,r.optionsService),r._bufferService=r.register(r._instantiationService.createInstance(c.BufferService)),r._instantiationService.setService(s.IBufferService,r._bufferService),r._logService=r._instantiationService.createInstance(l.LogService),r._instantiationService.setService(s.ILogService,r._logService),r.coreService=r.register(r._instantiationService.createInstance(f.CoreService,(function(){return r.scrollToBottom()}))),r._instantiationService.setService(s.ICoreService,r.coreService),r.coreMouseService=r._instantiationService.createInstance(h.CoreMouseService),r._instantiationService.setService(s.ICoreMouseService,r.coreMouseService),r._dirtyRowService=r._instantiationService.createInstance(p.DirtyRowService),r._instantiationService.setService(s.IDirtyRowService,r._dirtyRowService),r.unicodeService=r._instantiationService.createInstance(v.UnicodeService),r._instantiationService.setService(s.IUnicodeService,r.unicodeService),r._charsetService=r._instantiationService.createInstance(m.CharsetService),r._instantiationService.setService(s.ICharsetService,r._charsetService),r._inputHandler=new g.InputHandler(r._bufferService,r._charsetService,r.coreService,r._dirtyRowService,r._logService,r.optionsService,r.coreMouseService,r.unicodeService),r.register((0,d.forwardEvent)(r._inputHandler.onLineFeed,r._onLineFeed)),r.register(r._inputHandler),r.register((0,d.forwardEvent)(r._bufferService.onResize,r._onResize)),r.register((0,d.forwardEvent)(r.coreService.onData,r._onData)),r.register((0,d.forwardEvent)(r.coreService.onBinary,r._onBinary)),r.register(r.optionsService.onOptionChange((function(e){return r._updateOptions(e)}))),r.register(r._bufferService.onScroll((function(e){r._onScroll.fire({position:r._bufferService.buffer.ydisp,source:0}),r._dirtyRowService.markRangeDirty(r._bufferService.buffer.scrollTop,r._bufferService.buffer.scrollBottom)}))),r.register(r._inputHandler.onScroll((function(e){r._onScroll.fire({position:r._bufferService.buffer.ydisp,source:0}),r._dirtyRowService.markRangeDirty(r._bufferService.buffer.scrollTop,r._bufferService.buffer.scrollBottom)}))),r._writeBuffer=new y.WriteBuffer((function(e,t){return r._inputHandler.parse(e,t)})),r}return i(t,e),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){var e=this;return this._onScrollApi||(this._onScrollApi=new d.EventEmitter,this.register(this._onScroll.event((function(t){var r;null===(r=e._onScrollApi)||void 0===r||r.fire(t.position)})))),this._onScrollApi.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.optionsService.options},set:function(e){for(var t in e)this.optionsService.options[t]=e[t]},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){var t;this._isDisposed||(e.prototype.dispose.call(this),null===(t=this._windowsMode)||void 0===t||t.dispose(),this._windowsMode=void 0)},t.prototype.write=function(e,t){this._writeBuffer.write(e,t)},t.prototype.writeSync=function(e,t){this._logService.logLevel<=s.LogLevelEnum.WARN&&!b&&(this._logService.warn("writeSync is unreliable and will be removed soon."),b=!0),this._writeBuffer.writeSync(e,t)},t.prototype.resize=function(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,c.MINIMUM_COLS),t=Math.max(t,c.MINIMUM_ROWS),this._bufferService.resize(e,t))},t.prototype.scroll=function(e,t){void 0===t&&(t=!1),this._bufferService.scroll(e,t)},t.prototype.scrollLines=function(e,t,r){this._bufferService.scrollLines(e,t,r)},t.prototype.scrollPages=function(e){this._bufferService.scrollPages(e)},t.prototype.scrollToTop=function(){this._bufferService.scrollToTop()},t.prototype.scrollToBottom=function(){this._bufferService.scrollToBottom()},t.prototype.scrollToLine=function(e){this._bufferService.scrollToLine(e)},t.prototype.registerEscHandler=function(e,t){return this._inputHandler.registerEscHandler(e,t)},t.prototype.registerDcsHandler=function(e,t){return this._inputHandler.registerDcsHandler(e,t)},t.prototype.registerCsiHandler=function(e,t){return this._inputHandler.registerCsiHandler(e,t)},t.prototype.registerOscHandler=function(e,t){return this._inputHandler.registerOscHandler(e,t)},t.prototype._setup=function(){this.optionsService.rawOptions.windowsMode&&this._enableWindowsMode()},t.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()},t.prototype._updateOptions=function(e){var t;switch(e){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.rawOptions.windowsMode?this._enableWindowsMode():(null===(t=this._windowsMode)||void 0===t||t.dispose(),this._windowsMode=void 0)}},t.prototype._enableWindowsMode=function(){var e=this;if(!this._windowsMode){var t=[];t.push(this.onLineFeed(_.updateWindowsModeWrappedState.bind(null,this._bufferService))),t.push(this.registerCsiHandler({final:"H"},(function(){return(0,_.updateWindowsModeWrappedState)(e._bufferService),!1}))),this._windowsMode={dispose:function(){for(var e=0,r=t;e<r.length;e++)r[e].dispose()}}}},t}(o.Disposable);t.CoreTerminal=C},8460:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0;var r=function(){function e(){this._listeners=[],this._disposed=!1}return Object.defineProperty(e.prototype,"event",{get:function(){var e=this;return this._event||(this._event=function(t){return e._listeners.push(t),{dispose:function(){if(!e._disposed)for(var r=0;r<e._listeners.length;r++)if(e._listeners[r]===t)return void e._listeners.splice(r,1)}}}),this._event},enumerable:!1,configurable:!0}),e.prototype.fire=function(e,t){for(var r=[],n=0;n<this._listeners.length;n++)r.push(this._listeners[n]);for(n=0;n<r.length;n++)r[n].call(void 0,e,t)},e.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},e}();t.EventEmitter=r,t.forwardEvent=function(e,t){return e((function(e){return t.fire(e)}))}},5435:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.InputHandler=t.WindowsOptionsReportType=void 0;var o,s=r(2584),a=r(7116),l=r(2015),c=r(844),u=r(8273),f=r(482),d=r(8437),h=r(8460),p=r(643),v=r(511),m=r(3734),_=r(2585),g=r(6242),y=r(6351),b=r(5941),C={"(":0,")":1,"*":2,"+":3,"-":1,".":2},S=131072;function w(e,t){if(e>24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}!function(e){e[e.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",e[e.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(o=t.WindowsOptionsReportType||(t.WindowsOptionsReportType={}));var E=function(){function e(e,t,r,n){this._bufferService=e,this._coreService=t,this._logService=r,this._optionsService=n,this._data=new Uint32Array(0)}return e.prototype.hook=function(e){this._data=new Uint32Array(0)},e.prototype.put=function(e,t,r){this._data=(0,u.concat)(this._data,e.subarray(t,r))},e.prototype.unhook=function(e){if(!e)return this._data=new Uint32Array(0),!0;var t=(0,f.utf32ToString)(this._data);switch(this._data=new Uint32Array(0),t){case'"q':this._coreService.triggerDataEvent(s.C0.ESC+'P1$r0"q'+s.C0.ESC+"\\");break;case'"p':this._coreService.triggerDataEvent(s.C0.ESC+'P1$r61;1"p'+s.C0.ESC+"\\");break;case"r":var r=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";this._coreService.triggerDataEvent(s.C0.ESC+"P1$r"+r+s.C0.ESC+"\\");break;case"m":this._coreService.triggerDataEvent(s.C0.ESC+"P1$r0m"+s.C0.ESC+"\\");break;case" q":var n={block:2,underline:4,bar:6}[this._optionsService.rawOptions.cursorStyle];n-=this._optionsService.rawOptions.cursorBlink?1:0,this._coreService.triggerDataEvent(s.C0.ESC+"P1$r"+n+" q"+s.C0.ESC+"\\");break;default:this._logService.debug("Unknown DCS $q %s",t),this._coreService.triggerDataEvent(s.C0.ESC+"P0$r"+s.C0.ESC+"\\")}return!0},e}(),x=function(e){function t(t,r,n,i,o,c,u,p,m){void 0===m&&(m=new l.EscapeSequenceParser);var _=e.call(this)||this;_._bufferService=t,_._charsetService=r,_._coreService=n,_._dirtyRowService=i,_._logService=o,_._optionsService=c,_._coreMouseService=u,_._unicodeService=p,_._parser=m,_._parseBuffer=new Uint32Array(4096),_._stringDecoder=new f.StringToUtf32,_._utf8Decoder=new f.Utf8ToUtf32,_._workCell=new v.CellData,_._windowTitle="",_._iconName="",_._windowTitleStack=[],_._iconNameStack=[],_._curAttrData=d.DEFAULT_ATTR_DATA.clone(),_._eraseAttrDataInternal=d.DEFAULT_ATTR_DATA.clone(),_._onRequestBell=new h.EventEmitter,_._onRequestRefreshRows=new h.EventEmitter,_._onRequestReset=new h.EventEmitter,_._onRequestSendFocus=new h.EventEmitter,_._onRequestSyncScrollBar=new h.EventEmitter,_._onRequestWindowsOptionsReport=new h.EventEmitter,_._onA11yChar=new h.EventEmitter,_._onA11yTab=new h.EventEmitter,_._onCursorMove=new h.EventEmitter,_._onLineFeed=new h.EventEmitter,_._onScroll=new h.EventEmitter,_._onTitleChange=new h.EventEmitter,_._onColor=new h.EventEmitter,_._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},_._specialColors=[256,257,258],_.register(_._parser),_._activeBuffer=_._bufferService.buffer,_.register(_._bufferService.buffers.onBufferActivate((function(e){return _._activeBuffer=e.activeBuffer}))),_._parser.setCsiHandlerFallback((function(e,t){_._logService.debug("Unknown CSI code: ",{identifier:_._parser.identToString(e),params:t.toArray()})})),_._parser.setEscHandlerFallback((function(e){_._logService.debug("Unknown ESC code: ",{identifier:_._parser.identToString(e)})})),_._parser.setExecuteHandlerFallback((function(e){_._logService.debug("Unknown EXECUTE code: ",{code:e})})),_._parser.setOscHandlerFallback((function(e,t,r){_._logService.debug("Unknown OSC code: ",{identifier:e,action:t,data:r})})),_._parser.setDcsHandlerFallback((function(e,t,r){"HOOK"===t&&(r=r.toArray()),_._logService.debug("Unknown DCS code: ",{identifier:_._parser.identToString(e),action:t,payload:r})})),_._parser.setPrintHandler((function(e,t,r){return _.print(e,t,r)})),_._parser.registerCsiHandler({final:"@"},(function(e){return _.insertChars(e)})),_._parser.registerCsiHandler({intermediates:" ",final:"@"},(function(e){return _.scrollLeft(e)})),_._parser.registerCsiHandler({final:"A"},(function(e){return _.cursorUp(e)})),_._parser.registerCsiHandler({intermediates:" ",final:"A"},(function(e){return _.scrollRight(e)})),_._parser.registerCsiHandler({final:"B"},(function(e){return _.cursorDown(e)})),_._parser.registerCsiHandler({final:"C"},(function(e){return _.cursorForward(e)})),_._parser.registerCsiHandler({final:"D"},(function(e){return _.cursorBackward(e)})),_._parser.registerCsiHandler({final:"E"},(function(e){return _.cursorNextLine(e)})),_._parser.registerCsiHandler({final:"F"},(function(e){return _.cursorPrecedingLine(e)})),_._parser.registerCsiHandler({final:"G"},(function(e){return _.cursorCharAbsolute(e)})),_._parser.registerCsiHandler({final:"H"},(function(e){return _.cursorPosition(e)})),_._parser.registerCsiHandler({final:"I"},(function(e){return _.cursorForwardTab(e)})),_._parser.registerCsiHandler({final:"J"},(function(e){return _.eraseInDisplay(e)})),_._parser.registerCsiHandler({prefix:"?",final:"J"},(function(e){return _.eraseInDisplay(e)})),_._parser.registerCsiHandler({final:"K"},(function(e){return _.eraseInLine(e)})),_._parser.registerCsiHandler({prefix:"?",final:"K"},(function(e){return _.eraseInLine(e)})),_._parser.registerCsiHandler({final:"L"},(function(e){return _.insertLines(e)})),_._parser.registerCsiHandler({final:"M"},(function(e){return _.deleteLines(e)})),_._parser.registerCsiHandler({final:"P"},(function(e){return _.deleteChars(e)})),_._parser.registerCsiHandler({final:"S"},(function(e){return _.scrollUp(e)})),_._parser.registerCsiHandler({final:"T"},(function(e){return _.scrollDown(e)})),_._parser.registerCsiHandler({final:"X"},(function(e){return _.eraseChars(e)})),_._parser.registerCsiHandler({final:"Z"},(function(e){return _.cursorBackwardTab(e)})),_._parser.registerCsiHandler({final:"`"},(function(e){return _.charPosAbsolute(e)})),_._parser.registerCsiHandler({final:"a"},(function(e){return _.hPositionRelative(e)})),_._parser.registerCsiHandler({final:"b"},(function(e){return _.repeatPrecedingCharacter(e)})),_._parser.registerCsiHandler({final:"c"},(function(e){return _.sendDeviceAttributesPrimary(e)})),_._parser.registerCsiHandler({prefix:">",final:"c"},(function(e){return _.sendDeviceAttributesSecondary(e)})),_._parser.registerCsiHandler({final:"d"},(function(e){return _.linePosAbsolute(e)})),_._parser.registerCsiHandler({final:"e"},(function(e){return _.vPositionRelative(e)})),_._parser.registerCsiHandler({final:"f"},(function(e){return _.hVPosition(e)})),_._parser.registerCsiHandler({final:"g"},(function(e){return _.tabClear(e)})),_._parser.registerCsiHandler({final:"h"},(function(e){return _.setMode(e)})),_._parser.registerCsiHandler({prefix:"?",final:"h"},(function(e){return _.setModePrivate(e)})),_._parser.registerCsiHandler({final:"l"},(function(e){return _.resetMode(e)})),_._parser.registerCsiHandler({prefix:"?",final:"l"},(function(e){return _.resetModePrivate(e)})),_._parser.registerCsiHandler({final:"m"},(function(e){return _.charAttributes(e)})),_._parser.registerCsiHandler({final:"n"},(function(e){return _.deviceStatus(e)})),_._parser.registerCsiHandler({prefix:"?",final:"n"},(function(e){return _.deviceStatusPrivate(e)})),_._parser.registerCsiHandler({intermediates:"!",final:"p"},(function(e){return _.softReset(e)})),_._parser.registerCsiHandler({intermediates:" ",final:"q"},(function(e){return _.setCursorStyle(e)})),_._parser.registerCsiHandler({final:"r"},(function(e){return _.setScrollRegion(e)})),_._parser.registerCsiHandler({final:"s"},(function(e){return _.saveCursor(e)})),_._parser.registerCsiHandler({final:"t"},(function(e){return _.windowOptions(e)})),_._parser.registerCsiHandler({final:"u"},(function(e){return _.restoreCursor(e)})),_._parser.registerCsiHandler({intermediates:"'",final:"}"},(function(e){return _.insertColumns(e)})),_._parser.registerCsiHandler({intermediates:"'",final:"~"},(function(e){return _.deleteColumns(e)})),_._parser.setExecuteHandler(s.C0.BEL,(function(){return _.bell()})),_._parser.setExecuteHandler(s.C0.LF,(function(){return _.lineFeed()})),_._parser.setExecuteHandler(s.C0.VT,(function(){return _.lineFeed()})),_._parser.setExecuteHandler(s.C0.FF,(function(){return _.lineFeed()})),_._parser.setExecuteHandler(s.C0.CR,(function(){return _.carriageReturn()})),_._parser.setExecuteHandler(s.C0.BS,(function(){return _.backspace()})),_._parser.setExecuteHandler(s.C0.HT,(function(){return _.tab()})),_._parser.setExecuteHandler(s.C0.SO,(function(){return _.shiftOut()})),_._parser.setExecuteHandler(s.C0.SI,(function(){return _.shiftIn()})),_._parser.setExecuteHandler(s.C1.IND,(function(){return _.index()})),_._parser.setExecuteHandler(s.C1.NEL,(function(){return _.nextLine()})),_._parser.setExecuteHandler(s.C1.HTS,(function(){return _.tabSet()})),_._parser.registerOscHandler(0,new g.OscHandler((function(e){return _.setTitle(e),_.setIconName(e),!0}))),_._parser.registerOscHandler(1,new g.OscHandler((function(e){return _.setIconName(e)}))),_._parser.registerOscHandler(2,new g.OscHandler((function(e){return _.setTitle(e)}))),_._parser.registerOscHandler(4,new g.OscHandler((function(e){return _.setOrReportIndexedColor(e)}))),_._parser.registerOscHandler(10,new g.OscHandler((function(e){return _.setOrReportFgColor(e)}))),_._parser.registerOscHandler(11,new g.OscHandler((function(e){return _.setOrReportBgColor(e)}))),_._parser.registerOscHandler(12,new g.OscHandler((function(e){return _.setOrReportCursorColor(e)}))),_._parser.registerOscHandler(104,new g.OscHandler((function(e){return _.restoreIndexedColor(e)}))),_._parser.registerOscHandler(110,new g.OscHandler((function(e){return _.restoreFgColor(e)}))),_._parser.registerOscHandler(111,new g.OscHandler((function(e){return _.restoreBgColor(e)}))),_._parser.registerOscHandler(112,new g.OscHandler((function(e){return _.restoreCursorColor(e)}))),_._parser.registerEscHandler({final:"7"},(function(){return _.saveCursor()})),_._parser.registerEscHandler({final:"8"},(function(){return _.restoreCursor()})),_._parser.registerEscHandler({final:"D"},(function(){return _.index()})),_._parser.registerEscHandler({final:"E"},(function(){return _.nextLine()})),_._parser.registerEscHandler({final:"H"},(function(){return _.tabSet()})),_._parser.registerEscHandler({final:"M"},(function(){return _.reverseIndex()})),_._parser.registerEscHandler({final:"="},(function(){return _.keypadApplicationMode()})),_._parser.registerEscHandler({final:">"},(function(){return _.keypadNumericMode()})),_._parser.registerEscHandler({final:"c"},(function(){return _.fullReset()})),_._parser.registerEscHandler({final:"n"},(function(){return _.setgLevel(2)})),_._parser.registerEscHandler({final:"o"},(function(){return _.setgLevel(3)})),_._parser.registerEscHandler({final:"|"},(function(){return _.setgLevel(3)})),_._parser.registerEscHandler({final:"}"},(function(){return _.setgLevel(2)})),_._parser.registerEscHandler({final:"~"},(function(){return _.setgLevel(1)})),_._parser.registerEscHandler({intermediates:"%",final:"@"},(function(){return _.selectDefaultCharset()})),_._parser.registerEscHandler({intermediates:"%",final:"G"},(function(){return _.selectDefaultCharset()}));var y=function(e){b._parser.registerEscHandler({intermediates:"(",final:e},(function(){return _.selectCharset("("+e)})),b._parser.registerEscHandler({intermediates:")",final:e},(function(){return _.selectCharset(")"+e)})),b._parser.registerEscHandler({intermediates:"*",final:e},(function(){return _.selectCharset("*"+e)})),b._parser.registerEscHandler({intermediates:"+",final:e},(function(){return _.selectCharset("+"+e)})),b._parser.registerEscHandler({intermediates:"-",final:e},(function(){return _.selectCharset("-"+e)})),b._parser.registerEscHandler({intermediates:".",final:e},(function(){return _.selectCharset("."+e)})),b._parser.registerEscHandler({intermediates:"/",final:e},(function(){return _.selectCharset("/"+e)}))},b=this;for(var C in a.CHARSETS)y(C);return _._parser.registerEscHandler({intermediates:"#",final:"8"},(function(){return _.screenAlignmentPattern()})),_._parser.setErrorHandler((function(e){return _._logService.error("Parsing error: ",e),e})),_._parser.registerDcsHandler({intermediates:"$",final:"q"},new E(_._bufferService,_._coreService,_._logService,_._optionsService)),_}return i(t,e),Object.defineProperty(t.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestSendFocus",{get:function(){return this._onRequestSendFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onColor",{get:function(){return this._onColor.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._preserveStack=function(e,t,r,n){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=r,this._parseStack.position=n},t.prototype._logSlowResolvingAsync=function(e){this._logService.logLevel<=_.LogLevelEnum.WARN&&Promise.race([e,new Promise((function(e,t){return setTimeout((function(){return t("#SLOW_TIMEOUT")}),5e3)}))]).catch((function(e){if("#SLOW_TIMEOUT"!==e)throw e;console.warn("async parser handler taking longer than 5000 ms")}))},t.prototype.parse=function(e,t){var r,n=this._activeBuffer.x,i=this._activeBuffer.y,o=0,s=this._parseStack.paused;if(s){if(r=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(r),r;n=this._parseStack.cursorStartX,i=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>S&&(o=this._parseStack.position+S)}if(this._logService.logLevel<=_.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+("string"==typeof e?' "'+e+'"':' "'+Array.prototype.map.call(e,(function(e){return String.fromCharCode(e)})).join("")+'"'),"string"==typeof e?e.split("").map((function(e){return e.charCodeAt(0)})):e),this._parseBuffer.length<e.length&&this._parseBuffer.length<S&&(this._parseBuffer=new Uint32Array(Math.min(e.length,S))),s||this._dirtyRowService.clearRange(),e.length>S)for(var a=o;a<e.length;a+=S){var l=a+S<e.length?a+S:e.length,c="string"==typeof e?this._stringDecoder.decode(e.substring(a,l),this._parseBuffer):this._utf8Decoder.decode(e.subarray(a,l),this._parseBuffer);if(r=this._parser.parse(this._parseBuffer,c))return this._preserveStack(n,i,c,a),this._logSlowResolvingAsync(r),r}else if(!s&&(c="string"==typeof e?this._stringDecoder.decode(e,this._parseBuffer):this._utf8Decoder.decode(e,this._parseBuffer),r=this._parser.parse(this._parseBuffer,c)))return this._preserveStack(n,i,c,0),this._logSlowResolvingAsync(r),r;this._activeBuffer.x===n&&this._activeBuffer.y===i||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},t.prototype.print=function(e,t,r){var n,i,o=this._charsetService.charset,s=this._optionsService.rawOptions.screenReaderMode,a=this._bufferService.cols,l=this._coreService.decPrivateModes.wraparound,c=this._coreService.modes.insertMode,u=this._curAttrData,d=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowService.markDirty(this._activeBuffer.y),this._activeBuffer.x&&r-t>0&&2===d.getWidth(this._activeBuffer.x-1)&&d.setCellFromCodePoint(this._activeBuffer.x-1,0,1,u.fg,u.bg,u.extended);for(var h=t;h<r;++h){if(n=e[h],i=this._unicodeService.wcwidth(n),n<127&&o){var v=o[String.fromCharCode(n)];v&&(n=v.charCodeAt(0))}if(s&&this._onA11yChar.fire((0,f.stringFromCodePoint)(n)),i||!this._activeBuffer.x){if(this._activeBuffer.x+i-1>=a)if(l){for(;this._activeBuffer.x<a;)d.setCellFromCodePoint(this._activeBuffer.x++,0,1,u.fg,u.bg,u.extended);this._activeBuffer.x=0,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),d=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=a-1,2===i)continue;if(c&&(d.insertCells(this._activeBuffer.x,i,this._activeBuffer.getNullCell(u),u),2===d.getWidth(a-1)&&d.setCellFromCodePoint(a-1,p.NULL_CELL_CODE,p.NULL_CELL_WIDTH,u.fg,u.bg,u.extended)),d.setCellFromCodePoint(this._activeBuffer.x++,n,i,u.fg,u.bg,u.extended),i>0)for(;--i;)d.setCellFromCodePoint(this._activeBuffer.x++,0,0,u.fg,u.bg,u.extended)}else d.getWidth(this._activeBuffer.x-1)?d.addCodepointToCell(this._activeBuffer.x-1,n):d.addCodepointToCell(this._activeBuffer.x-2,n)}r-t>0&&(d.loadCell(this._activeBuffer.x-1,this._workCell),2===this._workCell.getWidth()||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x<a&&r-t>0&&0===d.getWidth(this._activeBuffer.x)&&!d.hasContent(this._activeBuffer.x)&&d.setCellFromCodePoint(this._activeBuffer.x,0,1,u.fg,u.bg,u.extended),this._dirtyRowService.markDirty(this._activeBuffer.y)},t.prototype.registerCsiHandler=function(e,t){var r=this;return"t"!==e.final||e.prefix||e.intermediates?this._parser.registerCsiHandler(e,t):this._parser.registerCsiHandler(e,(function(e){return!w(e.params[0],r._optionsService.rawOptions.windowOptions)||t(e)}))},t.prototype.registerDcsHandler=function(e,t){return this._parser.registerDcsHandler(e,new y.DcsHandler(t))},t.prototype.registerEscHandler=function(e,t){return this._parser.registerEscHandler(e,t)},t.prototype.registerOscHandler=function(e,t){return this._parser.registerOscHandler(e,new g.OscHandler(t))},t.prototype.bell=function(){return this._onRequestBell.fire(),!0},t.prototype.lineFeed=function(){return this._dirtyRowService.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowService.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0},t.prototype.carriageReturn=function(){return this._activeBuffer.x=0,!0},t.prototype.backspace=function(){var e;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(null===(e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===e?void 0:e.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);t.hasWidth(this._activeBuffer.x)&&!t.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0},t.prototype.tab=function(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;var e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0},t.prototype.shiftOut=function(){return this._charsetService.setgLevel(1),!0},t.prototype.shiftIn=function(){return this._charsetService.setgLevel(0),!0},t.prototype._restrictCursor=function(e){void 0===e&&(e=this._bufferService.cols-1),this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowService.markDirty(this._activeBuffer.y)},t.prototype._setCursor=function(e,t){this._dirtyRowService.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowService.markDirty(this._activeBuffer.y)},t.prototype._moveCursor=function(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)},t.prototype.cursorUp=function(e){var t=this._activeBuffer.y-this._activeBuffer.scrollTop;return t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0},t.prototype.cursorDown=function(e){var t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0},t.prototype.cursorForward=function(e){return this._moveCursor(e.params[0]||1,0),!0},t.prototype.cursorBackward=function(e){return this._moveCursor(-(e.params[0]||1),0),!0},t.prototype.cursorNextLine=function(e){return this.cursorDown(e),this._activeBuffer.x=0,!0},t.prototype.cursorPrecedingLine=function(e){return this.cursorUp(e),this._activeBuffer.x=0,!0},t.prototype.cursorCharAbsolute=function(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0},t.prototype.cursorPosition=function(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0},t.prototype.charPosAbsolute=function(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0},t.prototype.hPositionRelative=function(e){return this._moveCursor(e.params[0]||1,0),!0},t.prototype.linePosAbsolute=function(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0},t.prototype.vPositionRelative=function(e){return this._moveCursor(0,e.params[0]||1),!0},t.prototype.hVPosition=function(e){return this.cursorPosition(e),!0},t.prototype.tabClear=function(e){var t=e.params[0];return 0===t?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===t&&(this._activeBuffer.tabs={}),!0},t.prototype.cursorForwardTab=function(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var t=e.params[0]||1;t--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0},t.prototype.cursorBackwardTab=function(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var t=e.params[0]||1;t--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0},t.prototype._eraseInBufferLine=function(e,t,r,n){void 0===n&&(n=!1);var i=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);i.replaceCells(t,r,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n&&(i.isWrapped=!1)},t.prototype._resetBufferLine=function(e){var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);t.fill(this._activeBuffer.getNullCell(this._eraseAttrData())),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),t.isWrapped=!1},t.prototype.eraseInDisplay=function(e){var t;switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:for(t=this._activeBuffer.y,this._dirtyRowService.markDirty(t),this._eraseInBufferLine(t++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);t<this._bufferService.rows;t++)this._resetBufferLine(t);this._dirtyRowService.markDirty(t);break;case 1:for(t=this._activeBuffer.y,this._dirtyRowService.markDirty(t),this._eraseInBufferLine(t,0,this._activeBuffer.x+1,!0),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(t+1).isWrapped=!1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 2:for(t=this._bufferService.rows,this._dirtyRowService.markDirty(t-1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 3:var r=this._activeBuffer.lines.length-this._bufferService.rows;r>0&&(this._activeBuffer.lines.trimStart(r),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-r,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-r,0),this._onScroll.fire(0))}return!0},t.prototype.eraseInLine=function(e){switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0)}return this._dirtyRowService.markDirty(this._activeBuffer.y),!0},t.prototype.insertLines=function(e){this._restrictCursor();var t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var r=this._activeBuffer.ybase+this._activeBuffer.y,n=this._bufferService.rows-1-this._activeBuffer.scrollBottom,i=this._bufferService.rows-1+this._activeBuffer.ybase-n+1;t--;)this._activeBuffer.lines.splice(i-1,1),this._activeBuffer.lines.splice(r,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0},t.prototype.deleteLines=function(e){this._restrictCursor();var t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;var r,n=this._activeBuffer.ybase+this._activeBuffer.y;for(r=this._bufferService.rows-1-this._activeBuffer.scrollBottom,r=this._bufferService.rows-1+this._activeBuffer.ybase-r;t--;)this._activeBuffer.lines.splice(n,1),this._activeBuffer.lines.splice(r,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0},t.prototype.insertChars=function(e){this._restrictCursor();var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.insertCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},t.prototype.deleteChars=function(e){this._restrictCursor();var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.deleteCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},t.prototype.scrollUp=function(e){for(var t=e.params[0]||1;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},t.prototype.scrollDown=function(e){for(var t=e.params[0]||1;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(d.DEFAULT_ATTR_DATA));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},t.prototype.scrollLeft=function(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var t=e.params[0]||1,r=this._activeBuffer.scrollTop;r<=this._activeBuffer.scrollBottom;++r){var n=this._activeBuffer.lines.get(this._activeBuffer.ybase+r);n.deleteCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},t.prototype.scrollRight=function(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var t=e.params[0]||1,r=this._activeBuffer.scrollTop;r<=this._activeBuffer.scrollBottom;++r){var n=this._activeBuffer.lines.get(this._activeBuffer.ybase+r);n.insertCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},t.prototype.insertColumns=function(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var t=e.params[0]||1,r=this._activeBuffer.scrollTop;r<=this._activeBuffer.scrollBottom;++r){var n=this._activeBuffer.lines.get(this._activeBuffer.ybase+r);n.insertCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},t.prototype.deleteColumns=function(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var t=e.params[0]||1,r=this._activeBuffer.scrollTop;r<=this._activeBuffer.scrollBottom;++r){var n=this._activeBuffer.lines.get(this._activeBuffer.ybase+r);n.deleteCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},t.prototype.eraseChars=function(e){this._restrictCursor();var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(e.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},t.prototype.repeatPrecedingCharacter=function(e){if(!this._parser.precedingCodepoint)return!0;for(var t=e.params[0]||1,r=new Uint32Array(t),n=0;n<t;++n)r[n]=this._parser.precedingCodepoint;return this.print(r,0,r.length),!0},t.prototype.sendDeviceAttributesPrimary=function(e){return e.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(s.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(s.C0.ESC+"[?6c")),!0},t.prototype.sendDeviceAttributesSecondary=function(e){return e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(s.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(s.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(s.C0.ESC+"[>83;40003;0c")),!0},t.prototype._is=function(e){return 0===(this._optionsService.rawOptions.termName+"").indexOf(e)},t.prototype.setMode=function(e){for(var t=0;t<e.length;t++)4===e.params[t]&&(this._coreService.modes.insertMode=!0);return!0},t.prototype.setModePrivate=function(e){for(var t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,a.DEFAULT_CHARSET),this._charsetService.setgCharset(1,a.DEFAULT_CHARSET),this._charsetService.setgCharset(2,a.DEFAULT_CHARSET),this._charsetService.setgCharset(3,a.DEFAULT_CHARSET);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}return!0},t.prototype.resetMode=function(e){for(var t=0;t<e.length;t++)4===e.params[t]&&(this._coreService.modes.insertMode=!1);return!0},t.prototype.resetModePrivate=function(e){for(var t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),1049===e.params[t]&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}return!0},t.prototype._updateAttrColor=function(e,t,r,n,i){return 2===t?(e|=50331648,e&=-16777216,e|=m.AttributeData.fromColorRGB([r,n,i])):5===t&&(e&=-50331904,e|=33554432|255&r),e},t.prototype._extractColor=function(e,t,r){var n=[0,0,-1,0,0,0],i=0,o=0;do{if(n[o+i]=e.params[t+o],e.hasSubParams(t+o)){var s=e.getSubParams(t+o),a=0;do{5===n[1]&&(i=1),n[o+a+1+i]=s[a]}while(++a<s.length&&a+o+1+i<n.length);break}if(5===n[1]&&o+i>=2||2===n[1]&&o+i>=5)break;n[1]&&(i=1)}while(++o+t<e.length&&o+i<n.length);for(a=2;a<n.length;++a)-1===n[a]&&(n[a]=0);switch(n[0]){case 38:r.fg=this._updateAttrColor(r.fg,n[1],n[3],n[4],n[5]);break;case 48:r.bg=this._updateAttrColor(r.bg,n[1],n[3],n[4],n[5]);break;case 58:r.extended=r.extended.clone(),r.extended.underlineColor=this._updateAttrColor(r.extended.underlineColor,n[1],n[3],n[4],n[5])}return o},t.prototype._processUnderline=function(e,t){t.extended=t.extended.clone(),(!~e||e>5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,0===e&&(t.fg&=-268435457),t.updateExtended()},t.prototype.charAttributes=function(e){if(1===e.length&&0===e.params[0])return this._curAttrData.fg=d.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=d.DEFAULT_ATTR_DATA.bg,!0;for(var t,r=e.length,n=this._curAttrData,i=0;i<r;i++)(t=e.params[i])>=30&&t<=37?(n.fg&=-50331904,n.fg|=16777216|t-30):t>=40&&t<=47?(n.bg&=-50331904,n.bg|=16777216|t-40):t>=90&&t<=97?(n.fg&=-50331904,n.fg|=16777224|t-90):t>=100&&t<=107?(n.bg&=-50331904,n.bg|=16777224|t-100):0===t?(n.fg=d.DEFAULT_ATTR_DATA.fg,n.bg=d.DEFAULT_ATTR_DATA.bg):1===t?n.fg|=134217728:3===t?n.bg|=67108864:4===t?(n.fg|=268435456,this._processUnderline(e.hasSubParams(i)?e.getSubParams(i)[0]:1,n)):5===t?n.fg|=536870912:7===t?n.fg|=67108864:8===t?n.fg|=1073741824:9===t?n.fg|=2147483648:2===t?n.bg|=134217728:21===t?this._processUnderline(2,n):22===t?(n.fg&=-134217729,n.bg&=-134217729):23===t?n.bg&=-67108865:24===t?n.fg&=-268435457:25===t?n.fg&=-536870913:27===t?n.fg&=-67108865:28===t?n.fg&=-1073741825:29===t?n.fg&=2147483647:39===t?(n.fg&=-67108864,n.fg|=16777215&d.DEFAULT_ATTR_DATA.fg):49===t?(n.bg&=-67108864,n.bg|=16777215&d.DEFAULT_ATTR_DATA.bg):38===t||48===t||58===t?i+=this._extractColor(e,i,n):59===t?(n.extended=n.extended.clone(),n.extended.underlineColor=-1,n.updateExtended()):100===t?(n.fg&=-67108864,n.fg|=16777215&d.DEFAULT_ATTR_DATA.fg,n.bg&=-67108864,n.bg|=16777215&d.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",t);return!0},t.prototype.deviceStatus=function(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(s.C0.ESC+"[0n");break;case 6:var t=this._activeBuffer.y+1,r=this._activeBuffer.x+1;this._coreService.triggerDataEvent(s.C0.ESC+"["+t+";"+r+"R")}return!0},t.prototype.deviceStatusPrivate=function(e){if(6===e.params[0]){var t=this._activeBuffer.y+1,r=this._activeBuffer.x+1;this._coreService.triggerDataEvent(s.C0.ESC+"[?"+t+";"+r+"R")}return!0},t.prototype.softReset=function(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=d.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0},t.prototype.setCursorStyle=function(e){var t=e.params[0]||1;switch(t){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var r=t%2==1;return this._optionsService.options.cursorBlink=r,!0},t.prototype.setScrollRegion=function(e){var t,r=e.params[0]||1;return(e.length<2||(t=e.params[1])>this._bufferService.rows||0===t)&&(t=this._bufferService.rows),t>r&&(this._activeBuffer.scrollTop=r-1,this._activeBuffer.scrollBottom=t-1,this._setCursor(0,0)),!0},t.prototype.windowOptions=function(e){if(!w(e.params[0],this._optionsService.rawOptions.windowOptions))return!0;var t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:2!==t&&this._onRequestWindowsOptionsReport.fire(o.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(o.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(s.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:0!==t&&2!==t||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==t&&1!==t||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==t&&2!==t||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==t&&1!==t||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0},t.prototype.saveCursor=function(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0},t.prototype.restoreCursor=function(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0},t.prototype.setTitle=function(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0},t.prototype.setIconName=function(e){return this._iconName=e,!0},t.prototype.setOrReportIndexedColor=function(e){for(var t=[],r=e.split(";");r.length>1;){var n=r.shift(),i=r.shift();if(/^\d+$/.exec(n)){var o=parseInt(n);if(0<=o&&o<256)if("?"===i)t.push({type:0,index:o});else{var s=(0,b.parseColor)(i);s&&t.push({type:1,index:o,color:s})}}}return t.length&&this._onColor.fire(t),!0},t.prototype._setOrReportSpecialColor=function(e,t){for(var r=e.split(";"),n=0;n<r.length&&!(t>=this._specialColors.length);++n,++t)if("?"===r[n])this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{var i=(0,b.parseColor)(r[n]);i&&this._onColor.fire([{type:1,index:this._specialColors[t],color:i}])}return!0},t.prototype.setOrReportFgColor=function(e){return this._setOrReportSpecialColor(e,0)},t.prototype.setOrReportBgColor=function(e){return this._setOrReportSpecialColor(e,1)},t.prototype.setOrReportCursorColor=function(e){return this._setOrReportSpecialColor(e,2)},t.prototype.restoreIndexedColor=function(e){if(!e)return this._onColor.fire([{type:2}]),!0;for(var t=[],r=e.split(";"),n=0;n<r.length;++n)if(/^\d+$/.exec(r[n])){var i=parseInt(r[n]);0<=i&&i<256&&t.push({type:2,index:i})}return t.length&&this._onColor.fire(t),!0},t.prototype.restoreFgColor=function(e){return this._onColor.fire([{type:2,index:256}]),!0},t.prototype.restoreBgColor=function(e){return this._onColor.fire([{type:2,index:257}]),!0},t.prototype.restoreCursorColor=function(e){return this._onColor.fire([{type:2,index:258}]),!0},t.prototype.nextLine=function(){return this._activeBuffer.x=0,this.index(),!0},t.prototype.keypadApplicationMode=function(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0},t.prototype.keypadNumericMode=function(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0},t.prototype.selectDefaultCharset=function(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,a.DEFAULT_CHARSET),!0},t.prototype.selectCharset=function(e){return 2!==e.length?(this.selectDefaultCharset(),!0):("/"===e[0]||this._charsetService.setgCharset(C[e[0]],a.CHARSETS[e[1]]||a.DEFAULT_CHARSET),!0)},t.prototype.index=function(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0},t.prototype.tabSet=function(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0},t.prototype.reverseIndex=function(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){var e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0},t.prototype.fullReset=function(){return this._parser.reset(),this._onRequestReset.fire(),!0},t.prototype.reset=function(){this._curAttrData=d.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=d.DEFAULT_ATTR_DATA.clone()},t.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},t.prototype.setgLevel=function(e){return this._charsetService.setgLevel(e),!0},t.prototype.screenAlignmentPattern=function(){var e=new v.CellData;e.content=4194304|"E".charCodeAt(0),e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg,this._setCursor(0,0);for(var t=0;t<this._bufferService.rows;++t){var r=this._activeBuffer.ybase+this._activeBuffer.y+t,n=this._activeBuffer.lines.get(r);n&&(n.fill(e),n.isWrapped=!1)}return this._dirtyRowService.markAllDirty(),this._setCursor(0,0),!0},t}(c.Disposable);t.InputHandler=x},844:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.Disposable=void 0;var r=function(){function e(){this._disposables=[],this._isDisposed=!1}return e.prototype.dispose=function(){this._isDisposed=!0;for(var e=0,t=this._disposables;e<t.length;e++)t[e].dispose();this._disposables.length=0},e.prototype.register=function(e){return this._disposables.push(e),e},e.prototype.unregister=function(e){var t=this._disposables.indexOf(e);-1!==t&&this._disposables.splice(t,1)},e}();function n(e){for(var t=0,r=e;t<r.length;t++)r[t].dispose();e.length=0}t.Disposable=r,t.disposeArray=n,t.getDisposeArrayDisposable=function(e){return{dispose:function(){return n(e)}}}},6114:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.isSafari=t.isLegacyEdge=t.isFirefox=void 0;var r="undefined"==typeof navigator,n=r?"node":navigator.userAgent,i=r?"node":navigator.platform;t.isFirefox=n.includes("Firefox"),t.isLegacyEdge=n.includes("Edge"),t.isSafari=/^((?!chrome|android).)*safari/i.test(n),t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(i),t.isIpad="iPad"===i,t.isIphone="iPhone"===i,t.isWindows=["Windows","Win16","Win32","WinCE"].includes(i),t.isLinux=i.indexOf("Linux")>=0},8273:(e,t)=>{function r(e,t,r,n){if(void 0===r&&(r=0),void 0===n&&(n=e.length),r>=e.length)return e;r=(e.length+r)%e.length,n=n>=e.length?e.length:(e.length+n)%e.length;for(var i=r;i<n;++i)e[i]=t;return e}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=t.fillFallback=t.fill=void 0,t.fill=function(e,t,n,i){return e.fill?e.fill(t,n,i):r(e,t,n,i)},t.fillFallback=r,t.concat=function(e,t){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}},9282:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateWindowsModeWrappedState=void 0;var n=r(643);t.updateWindowsModeWrappedState=function(e){var t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1),r=null==t?void 0:t.get(e.cols-1),i=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);i&&r&&(i.isWrapped=r[n.CHAR_DATA_CODE_INDEX]!==n.NULL_CELL_CODE&&r[n.CHAR_DATA_CODE_INDEX]!==n.WHITESPACE_CELL_CODE)}},3734:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;var r=function(){function e(){this.fg=0,this.bg=0,this.extended=new n}return e.toColorRGB=function(e){return[e>>>16&255,e>>>8&255,255&e]},e.fromColorRGB=function(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},e.prototype.clone=function(){var t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t},e.prototype.isInverse=function(){return 67108864&this.fg},e.prototype.isBold=function(){return 134217728&this.fg},e.prototype.isUnderline=function(){return 268435456&this.fg},e.prototype.isBlink=function(){return 536870912&this.fg},e.prototype.isInvisible=function(){return 1073741824&this.fg},e.prototype.isItalic=function(){return 67108864&this.bg},e.prototype.isDim=function(){return 134217728&this.bg},e.prototype.isStrikethrough=function(){return 2147483648&this.fg},e.prototype.getFgColorMode=function(){return 50331648&this.fg},e.prototype.getBgColorMode=function(){return 50331648&this.bg},e.prototype.isFgRGB=function(){return 50331648==(50331648&this.fg)},e.prototype.isBgRGB=function(){return 50331648==(50331648&this.bg)},e.prototype.isFgPalette=function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)},e.prototype.isBgPalette=function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)},e.prototype.isFgDefault=function(){return 0==(50331648&this.fg)},e.prototype.isBgDefault=function(){return 0==(50331648&this.bg)},e.prototype.isAttributeDefault=function(){return 0===this.fg&&0===this.bg},e.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},e.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},e.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},e.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},e.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},e.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},e.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()},e.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()},e.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()},e.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},e}();t.AttributeData=r;var n=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=-1),this.underlineStyle=e,this.underlineColor=t}return e.prototype.clone=function(){return new e(this.underlineStyle,this.underlineColor)},e.prototype.isEmpty=function(){return 0===this.underlineStyle},e}();t.ExtendedAttrs=n},9092:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferStringIterator=t.Buffer=t.MAX_BUFFER_SIZE=void 0;var n=r(6349),i=r(8437),o=r(511),s=r(643),a=r(4634),l=r(4863),c=r(7116),u=r(3734);t.MAX_BUFFER_SIZE=4294967295;var f=function(){function e(e,t,r){this._hasScrollback=e,this._optionsService=t,this._bufferService=r,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=i.DEFAULT_ATTR_DATA.clone(),this.savedCharset=c.DEFAULT_CHARSET,this.markers=[],this._nullCell=o.CellData.fromCharData([0,s.NULL_CELL_CHAR,s.NULL_CELL_WIDTH,s.NULL_CELL_CODE]),this._whitespaceCell=o.CellData.fromCharData([0,s.WHITESPACE_CELL_CHAR,s.WHITESPACE_CELL_WIDTH,s.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new n.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return e.prototype.getNullCell=function(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new u.ExtendedAttrs),this._nullCell},e.prototype.getWhitespaceCell=function(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new u.ExtendedAttrs),this._whitespaceCell},e.prototype.getBlankLine=function(e,t){return new i.BufferLine(this._bufferService.cols,this.getNullCell(e),t)},Object.defineProperty(e.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCursorInViewport",{get:function(){var e=this.ybase+this.y-this.ydisp;return e>=0&&e<this._rows},enumerable:!1,configurable:!0}),e.prototype._getCorrectBufferLength=function(e){if(!this._hasScrollback)return e;var r=e+this._optionsService.rawOptions.scrollback;return r>t.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:r},e.prototype.fillViewportRows=function(e){if(0===this.lines.length){void 0===e&&(e=i.DEFAULT_ATTR_DATA);for(var t=this._rows;t--;)this.lines.push(this.getBlankLine(e))}},e.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new n.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},e.prototype.resize=function(e,t){var r=this.getNullCell(i.DEFAULT_ATTR_DATA),n=this._getCorrectBufferLength(t);if(n>this.lines.maxLength&&(this.lines.maxLength=n),this.lines.length>0){if(this._cols<e)for(var o=0;o<this.lines.length;o++)this.lines.get(o).resize(e,r);var s=0;if(this._rows<t)for(var a=this._rows;a<t;a++)this.lines.length<t+this.ybase&&(this._optionsService.rawOptions.windowsMode?this.lines.push(new i.BufferLine(e,r)):this.ybase>0&&this.lines.length<=this.ybase+this.y+s+1?(this.ybase--,s++,this.ydisp>0&&this.ydisp--):this.lines.push(new i.BufferLine(e,r)));else for(a=this._rows;a>t;a--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(n<this.lines.maxLength){var l=this.lines.length-n;l>0&&(this.lines.trimStart(l),this.ybase=Math.max(this.ybase-l,0),this.ydisp=Math.max(this.ydisp-l,0),this.savedY=Math.max(this.savedY-l,0)),this.lines.maxLength=n}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),s&&(this.y+=s),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(o=0;o<this.lines.length;o++)this.lines.get(o).resize(e,r);this._cols=e,this._rows=t},Object.defineProperty(e.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.rawOptions.windowsMode},enumerable:!1,configurable:!0}),e.prototype._reflow=function(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))},e.prototype._reflowLarger=function(e,t){var r=(0,a.reflowLargerGetLinesToRemove)(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(i.DEFAULT_ATTR_DATA));if(r.length>0){var n=(0,a.reflowLargerCreateNewLayout)(this.lines,r);(0,a.reflowLargerApplyNewLayout)(this.lines,n.layout),this._reflowLargerAdjustViewport(e,t,n.countRemoved)}},e.prototype._reflowLargerAdjustViewport=function(e,t,r){for(var n=this.getNullCell(i.DEFAULT_ATTR_DATA),o=r;o-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length<t&&this.lines.push(new i.BufferLine(e,n))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-r,0)},e.prototype._reflowSmaller=function(e,t){for(var r=this.getNullCell(i.DEFAULT_ATTR_DATA),n=[],o=0,s=this.lines.length-1;s>=0;s--){var l=this.lines.get(s);if(!(!l||!l.isWrapped&&l.getTrimmedLength()<=e)){for(var c=[l];l.isWrapped&&s>0;)l=this.lines.get(--s),c.unshift(l);var u=this.ybase+this.y;if(!(u>=s&&u<s+c.length)){var f,d=c[c.length-1].getTrimmedLength(),h=(0,a.reflowSmallerGetNewLineLengths)(c,this._cols,e),p=h.length-c.length;f=0===this.ybase&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+p):Math.max(0,this.lines.length-this.lines.maxLength+p);for(var v=[],m=0;m<p;m++){var _=this.getBlankLine(i.DEFAULT_ATTR_DATA,!0);v.push(_)}v.length>0&&(n.push({start:s+c.length+o,newLines:v}),o+=v.length),c.push.apply(c,v);var g=h.length-1,y=h[g];0===y&&(y=h[--g]);for(var b=c.length-p-1,C=d;b>=0;){var S=Math.min(C,y);if(void 0===c[g])break;if(c[g].copyCellsFrom(c[b],C-S,y-S,S,!0),0==(y-=S)&&(y=h[--g]),0==(C-=S)){b--;var w=Math.max(b,0);C=(0,a.getWrappedLineTrimmedLength)(c,w,this._cols)}}for(m=0;m<c.length;m++)h[m]<e&&c[m].setCell(h[m],r);for(var E=p-f;E-- >0;)0===this.ybase?this.y<t-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+o)-t&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+p,this.ybase+t-1)}}}if(n.length>0){var x=[],k=[];for(m=0;m<this.lines.length;m++)k.push(this.lines.get(m));var L=this.lines.length,D=L-1,j=0,O=n[j];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+o);var M=0;for(m=Math.min(this.lines.maxLength-1,L+o-1);m>=0;m--)if(O&&O.start>D+M){for(var T=O.newLines.length-1;T>=0;T--)this.lines.set(m--,O.newLines[T]);m++,x.push({index:D+1,amount:O.newLines.length}),M+=O.newLines.length,O=n[++j]}else this.lines.set(m,k[D--]);var R=0;for(m=x.length-1;m>=0;m--)x[m].index+=R,this.lines.onInsertEmitter.fire(x[m]),R+=x[m].amount;var P=Math.max(0,L+o-this.lines.maxLength);P>0&&this.lines.onTrimEmitter.fire(P)}},e.prototype.stringIndexToBufferIndex=function(e,t,r){for(void 0===r&&(r=!1);t;){var n=this.lines.get(e);if(!n)return[-1,-1];for(var i=r?n.getTrimmedLength():n.length,o=0;o<i;++o)if(n.get(o)[s.CHAR_DATA_WIDTH_INDEX]&&(t-=n.get(o)[s.CHAR_DATA_CHAR_INDEX].length||1),t<0)return[e,o];e++}return[e,0]},e.prototype.translateBufferLineToString=function(e,t,r,n){void 0===r&&(r=0);var i=this.lines.get(e);return i?i.translateToString(t,r,n):""},e.prototype.getWrappedRangeForLine=function(e){for(var t=e,r=e;t>0&&this.lines.get(t).isWrapped;)t--;for(;r+1<this.lines.length&&this.lines.get(r+1).isWrapped;)r++;return{first:t,last:r}},e.prototype.setupTabStops=function(e){for(null!=e?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._cols;e+=this._optionsService.rawOptions.tabStopWidth)this.tabs[e]=!0},e.prototype.prevStop=function(e){for(null==e&&(e=this.x);!this.tabs[--e]&&e>0;);return e>=this._cols?this._cols-1:e<0?0:e},e.prototype.nextStop=function(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e},e.prototype.clearMarkers=function(e){if(this._isClearing=!0,void 0!==e)for(var t=0;t<this.markers.length;t++)this.markers[t].line===e&&(this.markers[t].dispose(),this.markers.splice(t--,1));else{for(var r=0,n=this.markers;r<n.length;r++)n[r].dispose();this.markers=[]}this._isClearing=!1},e.prototype.addMarker=function(e){var t=this,r=new l.Marker(e);return this.markers.push(r),r.register(this.lines.onTrim((function(e){r.line-=e,r.line<0&&r.dispose()}))),r.register(this.lines.onInsert((function(e){r.line>=e.index&&(r.line+=e.amount)}))),r.register(this.lines.onDelete((function(e){r.line>=e.index&&r.line<e.index+e.amount&&r.dispose(),r.line>e.index&&(r.line-=e.amount)}))),r.register(r.onDispose((function(){return t._removeMarker(r)}))),r},e.prototype._removeMarker=function(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)},e.prototype.iterator=function(e,t,r,n,i){return new d(this,e,t,r,n,i)},e}();t.Buffer=f;var d=function(){function e(e,t,r,n,i,o){void 0===r&&(r=0),void 0===n&&(n=e.lines.length),void 0===i&&(i=0),void 0===o&&(o=0),this._buffer=e,this._trimRight=t,this._startIndex=r,this._endIndex=n,this._startOverscan=i,this._endOverscan=o,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return e.prototype.hasNext=function(){return this._current<this._endIndex},e.prototype.next=function(){var e=this._buffer.getWrappedRangeForLine(this._current);e.first<this._startIndex-this._startOverscan&&(e.first=this._startIndex-this._startOverscan),e.last>this._endIndex+this._endOverscan&&(e.last=this._endIndex+this._endOverscan),e.first=Math.max(e.first,0),e.last=Math.min(e.last,this._buffer.lines.length);for(var t="",r=e.first;r<=e.last;++r)t+=this._buffer.translateBufferLineToString(r,this._trimRight);return this._current=e.last+1,{range:e,content:t}},e}();t.BufferStringIterator=d},8437:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLine=t.DEFAULT_ATTR_DATA=void 0;var n=r(482),i=r(643),o=r(511),s=r(3734);t.DEFAULT_ATTR_DATA=Object.freeze(new s.AttributeData);var a=function(){function e(e,t,r){void 0===r&&(r=!1),this.isWrapped=r,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*e);for(var n=t||o.CellData.fromCharData([0,i.NULL_CELL_CHAR,i.NULL_CELL_WIDTH,i.NULL_CELL_CODE]),s=0;s<e;++s)this.setCell(s,n);this.length=e}return e.prototype.get=function(e){var t=this._data[3*e+0],r=2097151&t;return[this._data[3*e+1],2097152&t?this._combined[e]:r?(0,n.stringFromCodePoint)(r):"",t>>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):r]},e.prototype.set=function(e,t){this._data[3*e+1]=t[i.CHAR_DATA_ATTR_INDEX],t[i.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[i.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[i.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[i.CHAR_DATA_WIDTH_INDEX]<<22},e.prototype.getWidth=function(e){return this._data[3*e+0]>>22},e.prototype.hasWidth=function(e){return 12582912&this._data[3*e+0]},e.prototype.getFg=function(e){return this._data[3*e+1]},e.prototype.getBg=function(e){return this._data[3*e+2]},e.prototype.hasContent=function(e){return 4194303&this._data[3*e+0]},e.prototype.getCodePoint=function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t},e.prototype.isCombined=function(e){return 2097152&this._data[3*e+0]},e.prototype.getString=function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e]:2097151&t?(0,n.stringFromCodePoint)(2097151&t):""},e.prototype.loadCell=function(e,t){var r=3*e;return t.content=this._data[r+0],t.fg=this._data[r+1],t.bg=this._data[r+2],2097152&t.content&&(t.combinedData=this._combined[e]),268435456&t.bg&&(t.extended=this._extendedAttrs[e]),t},e.prototype.setCell=function(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[e]=t.extended),this._data[3*e+0]=t.content,this._data[3*e+1]=t.fg,this._data[3*e+2]=t.bg},e.prototype.setCellFromCodePoint=function(e,t,r,n,i,o){268435456&i&&(this._extendedAttrs[e]=o),this._data[3*e+0]=t|r<<22,this._data[3*e+1]=n,this._data[3*e+2]=i},e.prototype.addCodepointToCell=function(e,t){var r=this._data[3*e+0];2097152&r?this._combined[e]+=(0,n.stringFromCodePoint)(t):(2097151&r?(this._combined[e]=(0,n.stringFromCodePoint)(2097151&r)+(0,n.stringFromCodePoint)(t),r&=-2097152,r|=2097152):r=4194304|t,this._data[3*e+0]=r)},e.prototype.insertCells=function(e,t,r,n){if((e%=this.length)&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==n?void 0:n.fg)||0,(null==n?void 0:n.bg)||0,(null==n?void 0:n.extended)||new s.ExtendedAttrs),t<this.length-e){for(var i=new o.CellData,a=this.length-e-t-1;a>=0;--a)this.setCell(e+t+a,this.loadCell(e+a,i));for(a=0;a<t;++a)this.setCell(e+a,r)}else for(a=e;a<this.length;++a)this.setCell(a,r);2===this.getWidth(this.length-1)&&this.setCellFromCodePoint(this.length-1,0,1,(null==n?void 0:n.fg)||0,(null==n?void 0:n.bg)||0,(null==n?void 0:n.extended)||new s.ExtendedAttrs)},e.prototype.deleteCells=function(e,t,r,n){if(e%=this.length,t<this.length-e){for(var i=new o.CellData,a=0;a<this.length-e-t;++a)this.setCell(e+a,this.loadCell(e+t+a,i));for(a=this.length-t;a<this.length;++a)this.setCell(a,r)}else for(a=e;a<this.length;++a)this.setCell(a,r);e&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==n?void 0:n.fg)||0,(null==n?void 0:n.bg)||0,(null==n?void 0:n.extended)||new s.ExtendedAttrs),0!==this.getWidth(e)||this.hasContent(e)||this.setCellFromCodePoint(e,0,1,(null==n?void 0:n.fg)||0,(null==n?void 0:n.bg)||0,(null==n?void 0:n.extended)||new s.ExtendedAttrs)},e.prototype.replaceCells=function(e,t,r,n){for(e&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==n?void 0:n.fg)||0,(null==n?void 0:n.bg)||0,(null==n?void 0:n.extended)||new s.ExtendedAttrs),t<this.length&&2===this.getWidth(t-1)&&this.setCellFromCodePoint(t,0,1,(null==n?void 0:n.fg)||0,(null==n?void 0:n.bg)||0,(null==n?void 0:n.extended)||new s.ExtendedAttrs);e<t&&e<this.length;)this.setCell(e++,r)},e.prototype.resize=function(e,t){if(e!==this.length){if(e>this.length){var r=new Uint32Array(3*e);this.length&&(3*e<this._data.length?r.set(this._data.subarray(0,3*e)):r.set(this._data)),this._data=r;for(var n=this.length;n<e;++n)this.setCell(n,t)}else if(e){(r=new Uint32Array(3*e)).set(this._data.subarray(0,3*e)),this._data=r;var i=Object.keys(this._combined);for(n=0;n<i.length;n++){var o=parseInt(i[n],10);o>=e&&delete this._combined[o]}}else this._data=new Uint32Array(0),this._combined={};this.length=e}},e.prototype.fill=function(e){this._combined={},this._extendedAttrs={};for(var t=0;t<this.length;++t)this.setCell(t,e)},e.prototype.copyFrom=function(e){for(var t in this.length!==e.length?this._data=new Uint32Array(e._data):this._data.set(e._data),this.length=e.length,this._combined={},e._combined)this._combined[t]=e._combined[t];for(var t in this._extendedAttrs={},e._extendedAttrs)this._extendedAttrs[t]=e._extendedAttrs[t];this.isWrapped=e.isWrapped},e.prototype.clone=function(){var t=new e(0);for(var r in t._data=new Uint32Array(this._data),t.length=this.length,this._combined)t._combined[r]=this._combined[r];for(var r in this._extendedAttrs)t._extendedAttrs[r]=this._extendedAttrs[r];return t.isWrapped=this.isWrapped,t},e.prototype.getTrimmedLength=function(){for(var e=this.length-1;e>=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0},e.prototype.copyCellsFrom=function(e,t,r,n,i){var o=e._data;if(i)for(var s=n-1;s>=0;s--)for(var a=0;a<3;a++)this._data[3*(r+s)+a]=o[3*(t+s)+a];else for(s=0;s<n;s++)for(a=0;a<3;a++)this._data[3*(r+s)+a]=o[3*(t+s)+a];var l=Object.keys(e._combined);for(a=0;a<l.length;a++){var c=parseInt(l[a],10);c>=t&&(this._combined[c-t+r]=e._combined[c])}},e.prototype.translateToString=function(e,t,r){void 0===e&&(e=!1),void 0===t&&(t=0),void 0===r&&(r=this.length),e&&(r=Math.min(r,this.getTrimmedLength()));for(var o="";t<r;){var s=this._data[3*t+0],a=2097151&s;o+=2097152&s?this._combined[t]:a?(0,n.stringFromCodePoint)(a):i.WHITESPACE_CELL_CHAR,t+=s>>22||1}return o},e}();t.BufferLine=a},4841:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRangeLength=void 0,t.getRangeLength=function(e,t){if(e.start.y>e.end.y)throw new Error("Buffer range end ("+e.end.x+", "+e.end.y+") cannot be before start ("+e.start.x+", "+e.start.y+")");return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}},4634:(e,t)=>{function r(e,t,r){if(t===e.length-1)return e[t].getTrimmedLength();var n=!e[t].hasContent(r-1)&&1===e[t].getWidth(r-1),i=2===e[t+1].getWidth(0);return n&&i?r-1:r}Object.defineProperty(t,"__esModule",{value:!0}),t.getWrappedLineTrimmedLength=t.reflowSmallerGetNewLineLengths=t.reflowLargerApplyNewLayout=t.reflowLargerCreateNewLayout=t.reflowLargerGetLinesToRemove=void 0,t.reflowLargerGetLinesToRemove=function(e,t,n,i,o){for(var s=[],a=0;a<e.length-1;a++){var l=a,c=e.get(++l);if(c.isWrapped){for(var u=[e.get(a)];l<e.length&&c.isWrapped;)u.push(c),c=e.get(++l);if(i>=a&&i<l)a+=u.length-1;else{for(var f=0,d=r(u,f,t),h=1,p=0;h<u.length;){var v=r(u,h,t),m=v-p,_=n-d,g=Math.min(m,_);u[f].copyCellsFrom(u[h],p,d,g,!1),(d+=g)===n&&(f++,d=0),(p+=g)===v&&(h++,p=0),0===d&&0!==f&&2===u[f-1].getWidth(n-1)&&(u[f].copyCellsFrom(u[f-1],n-1,d++,1,!1),u[f-1].setCell(n-1,o))}u[f].replaceCells(d,n,o);for(var y=0,b=u.length-1;b>0&&(b>f||0===u[b].getTrimmedLength());b--)y++;y>0&&(s.push(a+u.length-y),s.push(y)),a+=u.length-1}}}return s},t.reflowLargerCreateNewLayout=function(e,t){for(var r=[],n=0,i=t[n],o=0,s=0;s<e.length;s++)if(i===s){var a=t[++n];e.onDeleteEmitter.fire({index:s-o,amount:a}),s+=a-1,o+=a,i=t[++n]}else r.push(s);return{layout:r,countRemoved:o}},t.reflowLargerApplyNewLayout=function(e,t){for(var r=[],n=0;n<t.length;n++)r.push(e.get(t[n]));for(n=0;n<r.length;n++)e.set(n,r[n]);e.length=t.length},t.reflowSmallerGetNewLineLengths=function(e,t,n){for(var i=[],o=e.map((function(n,i){return r(e,i,t)})).reduce((function(e,t){return e+t})),s=0,a=0,l=0;l<o;){if(o-l<n){i.push(o-l);break}s+=n;var c=r(e,a,t);s>c&&(s-=c,a++);var u=2===e[a].getWidth(s-1);u&&s--;var f=u?n-1:n;i.push(f),l+=f}return i},t.getWrappedLineTrimmedLength=r},5295:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSet=void 0;var o=r(9092),s=r(8460),a=function(e){function t(t,r){var n=e.call(this)||this;return n._optionsService=t,n._bufferService=r,n._onBufferActivate=n.register(new s.EventEmitter),n.reset(),n}return i(t,e),Object.defineProperty(t.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this._normal=new o.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new o.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()},Object.defineProperty(t.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),t.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},t.prototype.activateAltBuffer=function(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},t.prototype.resize=function(e,t){this._normal.resize(e,t),this._alt.resize(e,t)},t.prototype.setupTabStops=function(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)},t}(r(844).Disposable);t.BufferSet=a},511:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;var o=r(482),s=r(643),a=r(3734),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.content=0,t.fg=0,t.bg=0,t.extended=new a.ExtendedAttrs,t.combinedData="",t}return i(t,e),t.fromCharData=function(e){var r=new t;return r.setFromCharData(e),r},t.prototype.isCombined=function(){return 2097152&this.content},t.prototype.getWidth=function(){return this.content>>22},t.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,o.stringFromCodePoint)(2097151&this.content):""},t.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},t.prototype.setFromCharData=function(e){this.fg=e[s.CHAR_DATA_ATTR_INDEX],this.bg=0;var t=!1;if(e[s.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(2===e[s.CHAR_DATA_CHAR_INDEX].length){var r=e[s.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=r&&r<=56319){var n=e[s.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=n&&n<=57343?this.content=1024*(r-55296)+n-56320+65536|e[s.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=e[s.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[s.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=e[s.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[s.CHAR_DATA_WIDTH_INDEX]<<22)},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(a.AttributeData);t.CellData=l},643:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=256,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},4863:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.Marker=void 0;var o=r(8460),s=function(e){function t(r){var n=e.call(this)||this;return n.line=r,n._id=t._nextId++,n.isDisposed=!1,n._onDispose=new o.EventEmitter,n}return i(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),e.prototype.dispose.call(this))},t._nextId=1,t}(r(844).Disposable);t.Marker=s},7116:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CHARSET=t.CHARSETS=void 0,t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"␤",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},t.CHARSETS.A={"#":"£"},t.CHARSETS.B=void 0,t.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},t.CHARSETS.C=t.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},t.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},t.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},t.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},t.CHARSETS.E=t.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},t.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},t.CHARSETS.H=t.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.C1=t.C0=void 0,(n=t.C0||(t.C0={})).NUL="\0",n.SOH="",n.STX="",n.ETX="",n.EOT="",n.ENQ="",n.ACK="",n.BEL="",n.BS="\b",n.HT="\t",n.LF="\n",n.VT="\v",n.FF="\f",n.CR="\r",n.SO="",n.SI="",n.DLE="",n.DC1="",n.DC2="",n.DC3="",n.DC4="",n.NAK="",n.SYN="",n.ETB="",n.CAN="",n.EM="",n.SUB="",n.ESC="",n.FS="",n.GS="",n.RS="",n.US="",n.SP=" ",n.DEL="",(r=t.C1||(t.C1={})).PAD="",r.HOP="",r.BPH="",r.NBH="",r.IND="",r.NEL="",r.SSA="",r.ESA="",r.HTS="",r.HTJ="",r.VTS="",r.PLD="",r.PLU="",r.RI="",r.SS2="",r.SS3="",r.DCS="",r.PU1="",r.PU2="",r.STS="",r.CCH="",r.MW="",r.SPA="",r.EPA="",r.SOS="",r.SGCI="",r.SCI="",r.CSI="",r.ST="",r.OSC="",r.PM="",r.APC=""},7399:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateKeyboardEvent=void 0;var n=r(2584),i={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,r,o){var s={type:0,cancel:!1,key:void 0},a=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?s.key=t?n.C0.ESC+"OA":n.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?s.key=t?n.C0.ESC+"OD":n.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?s.key=t?n.C0.ESC+"OC":n.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(s.key=t?n.C0.ESC+"OB":n.C0.ESC+"[B");break;case 8:if(e.shiftKey){s.key=n.C0.BS;break}if(e.altKey){s.key=n.C0.ESC+n.C0.DEL;break}s.key=n.C0.DEL;break;case 9:if(e.shiftKey){s.key=n.C0.ESC+"[Z";break}s.key=n.C0.HT,s.cancel=!0;break;case 13:s.key=e.altKey?n.C0.ESC+n.C0.CR:n.C0.CR,s.cancel=!0;break;case 27:s.key=n.C0.ESC,e.altKey&&(s.key=n.C0.ESC+n.C0.ESC),s.cancel=!0;break;case 37:if(e.metaKey)break;a?(s.key=n.C0.ESC+"[1;"+(a+1)+"D",s.key===n.C0.ESC+"[1;3D"&&(s.key=n.C0.ESC+(r?"b":"[1;5D"))):s.key=t?n.C0.ESC+"OD":n.C0.ESC+"[D";break;case 39:if(e.metaKey)break;a?(s.key=n.C0.ESC+"[1;"+(a+1)+"C",s.key===n.C0.ESC+"[1;3C"&&(s.key=n.C0.ESC+(r?"f":"[1;5C"))):s.key=t?n.C0.ESC+"OC":n.C0.ESC+"[C";break;case 38:if(e.metaKey)break;a?(s.key=n.C0.ESC+"[1;"+(a+1)+"A",r||s.key!==n.C0.ESC+"[1;3A"||(s.key=n.C0.ESC+"[1;5A")):s.key=t?n.C0.ESC+"OA":n.C0.ESC+"[A";break;case 40:if(e.metaKey)break;a?(s.key=n.C0.ESC+"[1;"+(a+1)+"B",r||s.key!==n.C0.ESC+"[1;3B"||(s.key=n.C0.ESC+"[1;5B")):s.key=t?n.C0.ESC+"OB":n.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(s.key=n.C0.ESC+"[2~");break;case 46:s.key=a?n.C0.ESC+"[3;"+(a+1)+"~":n.C0.ESC+"[3~";break;case 36:s.key=a?n.C0.ESC+"[1;"+(a+1)+"H":t?n.C0.ESC+"OH":n.C0.ESC+"[H";break;case 35:s.key=a?n.C0.ESC+"[1;"+(a+1)+"F":t?n.C0.ESC+"OF":n.C0.ESC+"[F";break;case 33:e.shiftKey?s.type=2:s.key=n.C0.ESC+"[5~";break;case 34:e.shiftKey?s.type=3:s.key=n.C0.ESC+"[6~";break;case 112:s.key=a?n.C0.ESC+"[1;"+(a+1)+"P":n.C0.ESC+"OP";break;case 113:s.key=a?n.C0.ESC+"[1;"+(a+1)+"Q":n.C0.ESC+"OQ";break;case 114:s.key=a?n.C0.ESC+"[1;"+(a+1)+"R":n.C0.ESC+"OR";break;case 115:s.key=a?n.C0.ESC+"[1;"+(a+1)+"S":n.C0.ESC+"OS";break;case 116:s.key=a?n.C0.ESC+"[15;"+(a+1)+"~":n.C0.ESC+"[15~";break;case 117:s.key=a?n.C0.ESC+"[17;"+(a+1)+"~":n.C0.ESC+"[17~";break;case 118:s.key=a?n.C0.ESC+"[18;"+(a+1)+"~":n.C0.ESC+"[18~";break;case 119:s.key=a?n.C0.ESC+"[19;"+(a+1)+"~":n.C0.ESC+"[19~";break;case 120:s.key=a?n.C0.ESC+"[20;"+(a+1)+"~":n.C0.ESC+"[20~";break;case 121:s.key=a?n.C0.ESC+"[21;"+(a+1)+"~":n.C0.ESC+"[21~";break;case 122:s.key=a?n.C0.ESC+"[23;"+(a+1)+"~":n.C0.ESC+"[23~";break;case 123:s.key=a?n.C0.ESC+"[24;"+(a+1)+"~":n.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(r&&!o||!e.altKey||e.metaKey)!r||e.altKey||e.ctrlKey||e.shiftKey||!e.metaKey?e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&1===e.key.length?s.key=e.key:e.key&&e.ctrlKey&&"_"===e.key&&(s.key=n.C0.US):65===e.keyCode&&(s.type=1);else{var l=i[e.keyCode],c=null==l?void 0:l[e.shiftKey?1:0];if(c)s.key=n.C0.ESC+c;else if(e.keyCode>=65&&e.keyCode<=90){var u=e.ctrlKey?e.keyCode-64:e.keyCode+32;s.key=n.C0.ESC+String.fromCharCode(u)}}else e.keyCode>=65&&e.keyCode<=90?s.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?s.key=n.C0.NUL:e.keyCode>=51&&e.keyCode<=55?s.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?s.key=n.C0.DEL:219===e.keyCode?s.key=n.C0.ESC:220===e.keyCode?s.key=n.C0.FS:221===e.keyCode&&(s.key=n.C0.GS)}return s}},482:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(e){return e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=e.length);for(var n="",i=t;i<r;++i){var o=e[i];o>65535?(o-=65536,n+=String.fromCharCode(55296+(o>>10))+String.fromCharCode(o%1024+56320)):n+=String.fromCharCode(o)}return n};var r=function(){function e(){this._interim=0}return e.prototype.clear=function(){this._interim=0},e.prototype.decode=function(e,t){var r=e.length;if(!r)return 0;var n=0,i=0;this._interim&&(56320<=(a=e.charCodeAt(i++))&&a<=57343?t[n++]=1024*(this._interim-55296)+a-56320+65536:(t[n++]=this._interim,t[n++]=a),this._interim=0);for(var o=i;o<r;++o){var s=e.charCodeAt(o);if(55296<=s&&s<=56319){if(++o>=r)return this._interim=s,n;var a;56320<=(a=e.charCodeAt(o))&&a<=57343?t[n++]=1024*(s-55296)+a-56320+65536:(t[n++]=s,t[n++]=a)}else 65279!==s&&(t[n++]=s)}return n},e}();t.StringToUtf32=r;var n=function(){function e(){this.interim=new Uint8Array(3)}return e.prototype.clear=function(){this.interim.fill(0)},e.prototype.decode=function(e,t){var r=e.length;if(!r)return 0;var n,i,o,s,a=0,l=0,c=0;if(this.interim[0]){var u=!1,f=this.interim[0];f&=192==(224&f)?31:224==(240&f)?15:7;for(var d=0,h=void 0;(h=63&this.interim[++d])&&d<4;)f<<=6,f|=h;for(var p=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,v=p-d;c<v;){if(c>=r)return 0;if(128!=(192&(h=e[c++]))){c--,u=!0;break}this.interim[d++]=h,f<<=6,f|=63&h}u||(2===p?f<128?c--:t[a++]=f:3===p?f<2048||f>=55296&&f<=57343||65279===f||(t[a++]=f):f<65536||f>1114111||(t[a++]=f)),this.interim.fill(0)}for(var m=r-4,_=c;_<r;){for(;!(!(_<m)||128&(n=e[_])||128&(i=e[_+1])||128&(o=e[_+2])||128&(s=e[_+3]));)t[a++]=n,t[a++]=i,t[a++]=o,t[a++]=s,_+=4;if((n=e[_++])<128)t[a++]=n;else if(192==(224&n)){if(_>=r)return this.interim[0]=n,a;if(128!=(192&(i=e[_++]))){_--;continue}if((l=(31&n)<<6|63&i)<128){_--;continue}t[a++]=l}else if(224==(240&n)){if(_>=r)return this.interim[0]=n,a;if(128!=(192&(i=e[_++]))){_--;continue}if(_>=r)return this.interim[0]=n,this.interim[1]=i,a;if(128!=(192&(o=e[_++]))){_--;continue}if((l=(15&n)<<12|(63&i)<<6|63&o)<2048||l>=55296&&l<=57343||65279===l)continue;t[a++]=l}else if(240==(248&n)){if(_>=r)return this.interim[0]=n,a;if(128!=(192&(i=e[_++]))){_--;continue}if(_>=r)return this.interim[0]=n,this.interim[1]=i,a;if(128!=(192&(o=e[_++]))){_--;continue}if(_>=r)return this.interim[0]=n,this.interim[1]=i,this.interim[2]=o,a;if(128!=(192&(s=e[_++]))){_--;continue}if((l=(7&n)<<18|(63&i)<<12|(63&o)<<6|63&s)<65536||l>1114111)continue;t[a++]=l}}return a},e}();t.Utf8ToUtf32=n},225:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV6=void 0;var n,i=r(8273),o=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],s=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],a=function(){function e(){if(this.version="6",!n){n=new Uint8Array(65536),(0,i.fill)(n,1),n[0]=0,(0,i.fill)(n,0,1,32),(0,i.fill)(n,0,127,160),(0,i.fill)(n,2,4352,4448),n[9001]=2,n[9002]=2,(0,i.fill)(n,2,11904,42192),n[12351]=1,(0,i.fill)(n,2,44032,55204),(0,i.fill)(n,2,63744,64256),(0,i.fill)(n,2,65040,65050),(0,i.fill)(n,2,65072,65136),(0,i.fill)(n,2,65280,65377),(0,i.fill)(n,2,65504,65511);for(var e=0;e<o.length;++e)(0,i.fill)(n,0,o[e][0],o[e][1]+1)}}return e.prototype.wcwidth=function(e){return e<32?0:e<127?1:e<65536?n[e]:function(e,t){var r,n=0,i=t.length-1;if(e<t[0][0]||e>t[i][1])return!1;for(;i>=n;)if(e>t[r=n+i>>1][1])n=r+1;else{if(!(e<t[r][0]))return!0;i=r-1}return!1}(e,s)?0:e>=131072&&e<=196605||e>=196608&&e<=262141?2:1},e}();t.UnicodeV6=a},5981:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WriteBuffer=void 0;var r="undefined"==typeof queueMicrotask?function(e){Promise.resolve().then(e)}:queueMicrotask,n=function(){function e(e){this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0}return e.prototype.writeSync=function(e,t){if(void 0!==t&&this._syncCalls>t)this._syncCalls=0;else if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var r;for(this._isSyncWriting=!0;r=this._writeBuffer.shift();){this._action(r);var n=this._callbacks.shift();n&&n()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},e.prototype.write=function(e,t){var r=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout((function(){return r._innerWrite()}))),this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)},e.prototype._innerWrite=function(e,t){var n=this;void 0===e&&(e=0),void 0===t&&(t=!0);for(var i=e||Date.now();this._writeBuffer.length>this._bufferOffset;){var o=this._writeBuffer[this._bufferOffset],s=this._action(o,t);if(s)return void s.catch((function(e){return r((function(){throw e})),Promise.resolve(!1)})).then((function(e){return Date.now()-i>=12?setTimeout((function(){return n._innerWrite(0,e)})):n._innerWrite(i,e)}));var a=this._callbacks[this._bufferOffset];if(a&&a(),this._bufferOffset++,this._pendingData-=o.length,Date.now()-i>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout((function(){return n._innerWrite()}))):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0)},e}();t.WriteBuffer=n},5941:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toRgbString=t.parseColor=void 0;var r=/^([\da-f]{1})\/([\da-f]{1})\/([\da-f]{1})$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,n=/^[\da-f]+$/;function i(e,t){var r=e.toString(16),n=r.length<2?"0"+r:r;switch(t){case 4:return r[0];case 8:return n;case 12:return(n+n).slice(0,3);default:return n+n}}t.parseColor=function(e){if(e){var t=e.toLowerCase();if(0===t.indexOf("rgb:")){t=t.slice(4);var i=r.exec(t);if(i){var o=i[1]?15:i[4]?255:i[7]?4095:65535;return[Math.round(parseInt(i[1]||i[4]||i[7]||i[10],16)/o*255),Math.round(parseInt(i[2]||i[5]||i[8]||i[11],16)/o*255),Math.round(parseInt(i[3]||i[6]||i[9]||i[12],16)/o*255)]}}else if(0===t.indexOf("#")&&(t=t.slice(1),n.exec(t)&&[3,6,9,12].includes(t.length))){for(var s=t.length/3,a=[0,0,0],l=0;l<3;++l){var c=parseInt(t.slice(s*l,s*l+s),16);a[l]=1===s?c<<4:2===s?c:3===s?c>>4:c>>8}return a}}},t.toRgbString=function(e,t){void 0===t&&(t=16);var r=e[0],n=e[1],o=e[2];return"rgb:"+i(r,t)+"/"+i(n,t)+"/"+i(o,t)}},5770:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=void 0,t.PAYLOAD_LIMIT=1e7},6351:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DcsHandler=t.DcsParser=void 0;var n=r(482),i=r(8742),o=r(5770),s=[],a=function(){function e(){this._handlers=Object.create(null),this._active=s,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return e.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=s},e.prototype.registerHandler=function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var r=this._handlers[e];return r.push(t),{dispose:function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}},e.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},e.prototype.setHandlerFallback=function(e){this._handlerFb=e},e.prototype.reset=function(){if(this._active.length)for(var e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=s,this._ident=0},e.prototype.hook=function(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||s,this._active.length)for(var r=this._active.length-1;r>=0;r--)this._active[r].hook(t);else this._handlerFb(this._ident,"HOOK",t)},e.prototype.put=function(e,t,r){if(this._active.length)for(var i=this._active.length-1;i>=0;i--)this._active[i].put(e,t,r);else this._handlerFb(this._ident,"PUT",(0,n.utf32ToString)(e,t,r))},e.prototype.unhook=function(e,t){if(void 0===t&&(t=!0),this._active.length){var r=!1,n=this._active.length-1,i=!1;if(this._stack.paused&&(n=this._stack.loopPosition-1,r=t,i=this._stack.fallThrough,this._stack.paused=!1),!i&&!1===r){for(;n>=0&&!0!==(r=this._active[n].unhook(e));n--)if(r instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!1,r;n--}for(;n>=0;n--)if((r=this._active[n].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!0,r}else this._handlerFb(this._ident,"UNHOOK",e);this._active=s,this._ident=0},e}();t.DcsParser=a;var l=new i.Params;l.addParam(0);var c=function(){function e(e){this._handler=e,this._data="",this._params=l,this._hitLimit=!1}return e.prototype.hook=function(e){this._params=e.length>1||e.params[0]?e.clone():l,this._data="",this._hitLimit=!1},e.prototype.put=function(e,t,r){this._hitLimit||(this._data+=(0,n.utf32ToString)(e,t,r),this._data.length>o.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},e.prototype.unhook=function(e){var t=this,r=!1;if(this._hitLimit)r=!1;else if(e&&(r=this._handler(this._data,this._params))instanceof Promise)return r.then((function(e){return t._params=l,t._data="",t._hitLimit=!1,e}));return this._params=l,this._data="",this._hitLimit=!1,r},e}();t.DcsHandler=c},2015:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceParser=t.VT500_TRANSITION_TABLE=t.TransitionTable=void 0;var o=r(844),s=r(8273),a=r(8742),l=r(6242),c=r(6351),u=function(){function e(e){this.table=new Uint8Array(e)}return e.prototype.setDefault=function(e,t){(0,s.fill)(this.table,e<<4|t)},e.prototype.add=function(e,t,r,n){this.table[t<<8|e]=r<<4|n},e.prototype.addMany=function(e,t,r,n){for(var i=0;i<e.length;i++)this.table[t<<8|e[i]]=r<<4|n},e}();t.TransitionTable=u;var f=160;t.VT500_TRANSITION_TABLE=function(){var e=new u(4095),t=Array.apply(null,Array(256)).map((function(e,t){return t})),r=function(e,r){return t.slice(e,r)},n=r(32,127),i=r(0,24);i.push(25),i.push.apply(i,r(28,32));var o,s=r(0,14);for(o in e.setDefault(1,0),e.addMany(n,0,2,0),s)e.addMany([24,26,153,154],o,3,0),e.addMany(r(128,144),o,3,0),e.addMany(r(144,152),o,3,0),e.add(156,o,0,0),e.add(27,o,11,1),e.add(157,o,4,8),e.addMany([152,158,159],o,0,7),e.add(155,o,11,3),e.add(144,o,11,9);return e.addMany(i,0,3,0),e.addMany(i,1,3,1),e.add(127,1,0,1),e.addMany(i,8,0,8),e.addMany(i,3,3,3),e.add(127,3,0,3),e.addMany(i,4,3,4),e.add(127,4,0,4),e.addMany(i,6,3,6),e.addMany(i,5,3,5),e.add(127,5,0,5),e.addMany(i,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(n,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(r(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(n,7,0,7),e.addMany(i,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(r(64,127),3,7,0),e.addMany(r(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(r(48,60),4,8,4),e.addMany(r(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(r(32,64),6,0,6),e.add(127,6,0,6),e.addMany(r(64,127),6,0,0),e.addMany(r(32,48),3,9,5),e.addMany(r(32,48),5,9,5),e.addMany(r(48,64),5,0,6),e.addMany(r(64,127),5,7,0),e.addMany(r(32,48),4,9,5),e.addMany(r(32,48),1,9,2),e.addMany(r(32,48),2,9,2),e.addMany(r(48,127),2,10,0),e.addMany(r(48,80),1,10,0),e.addMany(r(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(r(96,127),1,10,0),e.add(80,1,11,9),e.addMany(i,9,0,9),e.add(127,9,0,9),e.addMany(r(28,32),9,0,9),e.addMany(r(32,48),9,9,12),e.addMany(r(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(i,11,0,11),e.addMany(r(32,128),11,0,11),e.addMany(r(28,32),11,0,11),e.addMany(i,10,0,10),e.add(127,10,0,10),e.addMany(r(28,32),10,0,10),e.addMany(r(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(r(32,48),10,9,12),e.addMany(i,12,0,12),e.add(127,12,0,12),e.addMany(r(28,32),12,0,12),e.addMany(r(32,48),12,9,12),e.addMany(r(48,64),12,0,11),e.addMany(r(64,127),12,12,13),e.addMany(r(64,127),10,12,13),e.addMany(r(64,127),9,12,13),e.addMany(i,13,13,13),e.addMany(n,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(f,0,2,0),e.add(f,8,5,8),e.add(f,6,0,6),e.add(f,11,0,11),e.add(f,13,13,13),e}();var d=function(e){function r(r){void 0===r&&(r=t.VT500_TRANSITION_TABLE);var n=e.call(this)||this;return n._transitions=r,n._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},n.initialState=0,n.currentState=n.initialState,n._params=new a.Params,n._params.addParam(0),n._collect=0,n.precedingCodepoint=0,n._printHandlerFb=function(e,t,r){},n._executeHandlerFb=function(e){},n._csiHandlerFb=function(e,t){},n._escHandlerFb=function(e){},n._errorHandlerFb=function(e){return e},n._printHandler=n._printHandlerFb,n._executeHandlers=Object.create(null),n._csiHandlers=Object.create(null),n._escHandlers=Object.create(null),n._oscParser=new l.OscParser,n._dcsParser=new c.DcsParser,n._errorHandler=n._errorHandlerFb,n.registerEscHandler({final:"\\"},(function(){return!0})),n}return i(r,e),r.prototype._identifier=function(e,t){void 0===t&&(t=[64,126]);var r=0;if(e.prefix){if(e.prefix.length>1)throw new Error("only one byte as prefix supported");if((r=e.prefix.charCodeAt(0))&&60>r||r>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var n=0;n<e.intermediates.length;++n){var i=e.intermediates.charCodeAt(n);if(32>i||i>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");r<<=8,r|=i}}if(1!==e.final.length)throw new Error("final must be a single byte");var o=e.final.charCodeAt(0);if(t[0]>o||o>t[1])throw new Error("final must be in range "+t[0]+" .. "+t[1]);return(r<<=8)|o},r.prototype.identToString=function(e){for(var t=[];e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join("")},r.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},r.prototype.setPrintHandler=function(e){this._printHandler=e},r.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},r.prototype.registerEscHandler=function(e,t){var r=this._identifier(e,[48,126]);void 0===this._escHandlers[r]&&(this._escHandlers[r]=[]);var n=this._escHandlers[r];return n.push(t),{dispose:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},r.prototype.clearEscHandler=function(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]},r.prototype.setEscHandlerFallback=function(e){this._escHandlerFb=e},r.prototype.setExecuteHandler=function(e,t){this._executeHandlers[e.charCodeAt(0)]=t},r.prototype.clearExecuteHandler=function(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]},r.prototype.setExecuteHandlerFallback=function(e){this._executeHandlerFb=e},r.prototype.registerCsiHandler=function(e,t){var r=this._identifier(e);void 0===this._csiHandlers[r]&&(this._csiHandlers[r]=[]);var n=this._csiHandlers[r];return n.push(t),{dispose:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},r.prototype.clearCsiHandler=function(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]},r.prototype.setCsiHandlerFallback=function(e){this._csiHandlerFb=e},r.prototype.registerDcsHandler=function(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)},r.prototype.clearDcsHandler=function(e){this._dcsParser.clearHandler(this._identifier(e))},r.prototype.setDcsHandlerFallback=function(e){this._dcsParser.setHandlerFallback(e)},r.prototype.registerOscHandler=function(e,t){return this._oscParser.registerHandler(e,t)},r.prototype.clearOscHandler=function(e){this._oscParser.clearHandler(e)},r.prototype.setOscHandlerFallback=function(e){this._oscParser.setHandlerFallback(e)},r.prototype.setErrorHandler=function(e){this._errorHandler=e},r.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},r.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])},r.prototype._preserveStack=function(e,t,r,n,i){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=r,this._parseStack.transition=n,this._parseStack.chunkPos=i},r.prototype.parse=function(e,t,r){var n,i=0,o=0,s=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,s=this._parseStack.chunkPos+1;else{if(void 0===r||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var a=this._parseStack.handlers,l=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===r&&l>-1)for(;l>=0&&!0!==(n=a[l](this._params));l--)if(n instanceof Promise)return this._parseStack.handlerPos=l,n;this._parseStack.handlers=[];break;case 4:if(!1===r&&l>-1)for(;l>=0&&!0!==(n=a[l]());l--)if(n instanceof Promise)return this._parseStack.handlerPos=l,n;this._parseStack.handlers=[];break;case 6:if(i=e[this._parseStack.chunkPos],n=this._dcsParser.unhook(24!==i&&26!==i,r))return n;27===i&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(i=e[this._parseStack.chunkPos],n=this._oscParser.end(24!==i&&26!==i,r))return n;27===i&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,s=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var c=s;c<t;++c){switch(i=e[c],(o=this._transitions.table[this.currentState<<8|(i<160?i:f)])>>4){case 2:for(var u=c+1;;++u){if(u>=t||(i=e[u])<32||i>126&&i<f){this._printHandler(e,c,u),c=u-1;break}if(++u>=t||(i=e[u])<32||i>126&&i<f){this._printHandler(e,c,u),c=u-1;break}if(++u>=t||(i=e[u])<32||i>126&&i<f){this._printHandler(e,c,u),c=u-1;break}if(++u>=t||(i=e[u])<32||i>126&&i<f){this._printHandler(e,c,u),c=u-1;break}}break;case 3:this._executeHandlers[i]?this._executeHandlers[i]():this._executeHandlerFb(i),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:c,code:i,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:for(var d=(a=this._csiHandlers[this._collect<<8|i])?a.length-1:-1;d>=0&&!0!==(n=a[d](this._params));d--)if(n instanceof Promise)return this._preserveStack(3,a,d,o,c),n;d<0&&this._csiHandlerFb(this._collect<<8|i,this._params),this.precedingCodepoint=0;break;case 8:do{switch(i){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(i-48)}}while(++c<t&&(i=e[c])>47&&i<60);c--;break;case 9:this._collect<<=8,this._collect|=i;break;case 10:for(var h=this._escHandlers[this._collect<<8|i],p=h?h.length-1:-1;p>=0&&!0!==(n=h[p]());p--)if(n instanceof Promise)return this._preserveStack(4,h,p,o,c),n;p<0&&this._escHandlerFb(this._collect<<8|i),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|i,this._params);break;case 13:for(var v=c+1;;++v)if(v>=t||24===(i=e[v])||26===i||27===i||i>127&&i<f){this._dcsParser.put(e,c,v),c=v-1;break}break;case 14:if(n=this._dcsParser.unhook(24!==i&&26!==i))return this._preserveStack(6,[],0,o,c),n;27===i&&(o|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0;break;case 4:this._oscParser.start();break;case 5:for(var m=c+1;;m++)if(m>=t||(i=e[m])<32||i>127&&i<f){this._oscParser.put(e,c,m),c=m-1;break}break;case 6:if(n=this._oscParser.end(24!==i&&26!==i))return this._preserveStack(5,[],0,o,c),n;27===i&&(o|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&o}},r}(o.Disposable);t.EscapeSequenceParser=d},6242:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OscHandler=t.OscParser=void 0;var n=r(5770),i=r(482),o=[],s=function(){function e(){this._state=0,this._active=o,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return e.prototype.registerHandler=function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var r=this._handlers[e];return r.push(t),{dispose:function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}},e.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},e.prototype.setHandlerFallback=function(e){this._handlerFb=e},e.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=o},e.prototype.reset=function(){if(2===this._state)for(var e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=o,this._id=-1,this._state=0},e.prototype._start=function(){if(this._active=this._handlers[this._id]||o,this._active.length)for(var e=this._active.length-1;e>=0;e--)this._active[e].start();else this._handlerFb(this._id,"START")},e.prototype._put=function(e,t,r){if(this._active.length)for(var n=this._active.length-1;n>=0;n--)this._active[n].put(e,t,r);else this._handlerFb(this._id,"PUT",(0,i.utf32ToString)(e,t,r))},e.prototype.start=function(){this.reset(),this._state=1},e.prototype.put=function(e,t,r){if(3!==this._state){if(1===this._state)for(;t<r;){var n=e[t++];if(59===n){this._state=2,this._start();break}if(n<48||57<n)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+n-48}2===this._state&&r-t>0&&this._put(e,t,r)}},e.prototype.end=function(e,t){if(void 0===t&&(t=!0),0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){var r=!1,n=this._active.length-1,i=!1;if(this._stack.paused&&(n=this._stack.loopPosition-1,r=t,i=this._stack.fallThrough,this._stack.paused=!1),!i&&!1===r){for(;n>=0&&!0!==(r=this._active[n].end(e));n--)if(r instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!1,r;n--}for(;n>=0;n--)if((r=this._active[n].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!0,r}else this._handlerFb(this._id,"END",e);this._active=o,this._id=-1,this._state=0}},e}();t.OscParser=s;var a=function(){function e(e){this._handler=e,this._data="",this._hitLimit=!1}return e.prototype.start=function(){this._data="",this._hitLimit=!1},e.prototype.put=function(e,t,r){this._hitLimit||(this._data+=(0,i.utf32ToString)(e,t,r),this._data.length>n.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},e.prototype.end=function(e){var t=this,r=!1;if(this._hitLimit)r=!1;else if(e&&(r=this._handler(this._data))instanceof Promise)return r.then((function(e){return t._data="",t._hitLimit=!1,e}));return this._data="",this._hitLimit=!1,r},e}();t.OscHandler=a},8742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;var r=2147483647,n=function(){function e(e,t){if(void 0===e&&(e=32),void 0===t&&(t=32),this.maxLength=e,this.maxSubParamsLength=t,t>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return e.fromArray=function(t){var r=new e;if(!t.length)return r;for(var n=Array.isArray(t[0])?1:0;n<t.length;++n){var i=t[n];if(Array.isArray(i))for(var o=0;o<i.length;++o)r.addSubParam(i[o]);else r.addParam(i)}return r},e.prototype.clone=function(){var t=new e(this.maxLength,this.maxSubParamsLength);return t.params.set(this.params),t.length=this.length,t._subParams.set(this._subParams),t._subParamsLength=this._subParamsLength,t._subParamsIdx.set(this._subParamsIdx),t._rejectDigits=this._rejectDigits,t._rejectSubDigits=this._rejectSubDigits,t._digitIsSub=this._digitIsSub,t},e.prototype.toArray=function(){for(var e=[],t=0;t<this.length;++t){e.push(this.params[t]);var r=this._subParamsIdx[t]>>8,n=255&this._subParamsIdx[t];n-r>0&&e.push(Array.prototype.slice.call(this._subParams,r,n))}return e},e.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},e.prototype.addParam=function(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>r?r:e}},e.prototype.addSubParam=function(e){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=e>r?r:e,this._subParamsIdx[this.length-1]++}},e.prototype.hasSubParams=function(e){return(255&this._subParamsIdx[e])-(this._subParamsIdx[e]>>8)>0},e.prototype.getSubParams=function(e){var t=this._subParamsIdx[e]>>8,r=255&this._subParamsIdx[e];return r-t>0?this._subParams.subarray(t,r):null},e.prototype.getSubParamsAll=function(){for(var e={},t=0;t<this.length;++t){var r=this._subParamsIdx[t]>>8,n=255&this._subParamsIdx[t];n-r>0&&(e[t]=this._subParams.slice(r,n))}return e},e.prototype.addDigit=function(e){var t;if(!(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var n=this._digitIsSub?this._subParams:this.params,i=n[t-1];n[t-1]=~i?Math.min(10*i+e,r):e}},e}();t.Params=n},5741:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddonManager=void 0;var r=function(){function e(){this._addons=[]}return e.prototype.dispose=function(){for(var e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()},e.prototype.loadAddon=function(e,t){var r=this,n={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(n),t.dispose=function(){return r._wrappedAddonDispose(n)},t.activate(e)},e.prototype._wrappedAddonDispose=function(e){if(!e.isDisposed){for(var t=-1,r=0;r<this._addons.length;r++)if(this._addons[r]===e){t=r;break}if(-1===t)throw new Error("Could not dispose an addon that has not been loaded");e.isDisposed=!0,e.dispose.apply(e.instance),this._addons.splice(t,1)}},e}();t.AddonManager=r},8771:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferApiView=void 0;var n=r(3785),i=r(511),o=function(){function e(e,t){this._buffer=e,this.type=t}return e.prototype.init=function(e){return this._buffer=e,this},Object.defineProperty(e.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),e.prototype.getLine=function(e){var t=this._buffer.lines.get(e);if(t)return new n.BufferLineApiView(t)},e.prototype.getNullCell=function(){return new i.CellData},e}();t.BufferApiView=o},3785:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLineApiView=void 0;var n=r(511),i=function(){function e(e){this._line=e}return Object.defineProperty(e.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),e.prototype.getCell=function(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new n.CellData)},e.prototype.translateToString=function(e,t,r){return this._line.translateToString(e,t,r)},e}();t.BufferLineApiView=i},8285:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferNamespaceApi=void 0;var n=r(8771),i=r(8460),o=function(){function e(e){var t=this;this._core=e,this._onBufferChange=new i.EventEmitter,this._normal=new n.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new n.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate((function(){return t._onBufferChange.fire(t.active)}))}return Object.defineProperty(e.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"normal",{get:function(){return this._normal.init(this._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alternate",{get:function(){return this._alternate.init(this._core.buffers.alt)},enumerable:!1,configurable:!0}),e}();t.BufferNamespaceApi=o},7975:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ParserApi=void 0;var r=function(){function e(e){this._core=e}return e.prototype.registerCsiHandler=function(e,t){return this._core.registerCsiHandler(e,(function(e){return t(e.toArray())}))},e.prototype.addCsiHandler=function(e,t){return this.registerCsiHandler(e,t)},e.prototype.registerDcsHandler=function(e,t){return this._core.registerDcsHandler(e,(function(e,r){return t(e,r.toArray())}))},e.prototype.addDcsHandler=function(e,t){return this.registerDcsHandler(e,t)},e.prototype.registerEscHandler=function(e,t){return this._core.registerEscHandler(e,t)},e.prototype.addEscHandler=function(e,t){return this.registerEscHandler(e,t)},e.prototype.registerOscHandler=function(e,t){return this._core.registerOscHandler(e,t)},e.prototype.addOscHandler=function(e,t){return this.registerOscHandler(e,t)},e}();t.ParserApi=r},7090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeApi=void 0;var r=function(){function e(e){this._core=e}return e.prototype.register=function(e){this._core.unicodeService.register(e)},Object.defineProperty(e.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(e){this._core.unicodeService.activeVersion=e},enumerable:!1,configurable:!0}),e}();t.UnicodeApi=r},744:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;var a=r(2585),l=r(5295),c=r(8460),u=r(844);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;var f=function(e){function r(r){var n=e.call(this)||this;return n._optionsService=r,n.isUserScrolling=!1,n._onResize=new c.EventEmitter,n._onScroll=new c.EventEmitter,n.cols=Math.max(r.rawOptions.cols||0,t.MINIMUM_COLS),n.rows=Math.max(r.rawOptions.rows||0,t.MINIMUM_ROWS),n.buffers=new l.BufferSet(r,n),n}return i(r,e),Object.defineProperty(r.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),r.prototype.dispose=function(){e.prototype.dispose.call(this),this.buffers.dispose()},r.prototype.resize=function(e,t){this.cols=e,this.rows=t,this.buffers.resize(e,t),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:e,rows:t})},r.prototype.reset=function(){this.buffers.reset(),this.isUserScrolling=!1},r.prototype.scroll=function(e,t){void 0===t&&(t=!1);var r,n=this.buffer;(r=this._cachedBlankLine)&&r.length===this.cols&&r.getFg(0)===e.fg&&r.getBg(0)===e.bg||(r=n.getBlankLine(e,t),this._cachedBlankLine=r),r.isWrapped=t;var i=n.ybase+n.scrollTop,o=n.ybase+n.scrollBottom;if(0===n.scrollTop){var s=n.lines.isFull;o===n.lines.length-1?s?n.lines.recycle().copyFrom(r):n.lines.push(r.clone()):n.lines.splice(o+1,0,r.clone()),s?this.isUserScrolling&&(n.ydisp=Math.max(n.ydisp-1,0)):(n.ybase++,this.isUserScrolling||n.ydisp++)}else{var a=o-i+1;n.lines.shiftElements(i+1,a-1,-1),n.lines.set(o,r.clone())}this.isUserScrolling||(n.ydisp=n.ybase),this._onScroll.fire(n.ydisp)},r.prototype.scrollLines=function(e,t,r){var n=this.buffer;if(e<0){if(0===n.ydisp)return;this.isUserScrolling=!0}else e+n.ydisp>=n.ybase&&(this.isUserScrolling=!1);var i=n.ydisp;n.ydisp=Math.max(Math.min(n.ydisp+e,n.ybase),0),i!==n.ydisp&&(t||this._onScroll.fire(n.ydisp))},r.prototype.scrollPages=function(e){this.scrollLines(e*(this.rows-1))},r.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},r.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},r.prototype.scrollToLine=function(e){var t=e-this.buffer.ydisp;0!==t&&this.scrollLines(t)},o([s(0,a.IOptionsService)],r)}(u.Disposable);t.BufferService=f},7994:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CharsetService=void 0;var r=function(){function e(){this.glevel=0,this._charsets=[]}return e.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},e.prototype.setgLevel=function(e){this.glevel=e,this.charset=this._charsets[e]},e.prototype.setgCharset=function(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)},e}();t.CharsetService=r},1753:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreMouseService=void 0;var o=r(2585),s=r(8460),a={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(e){return 4!==e.button&&1===e.action&&(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)}},VT200:{events:19,restrict:function(e){return 32!==e.action}},DRAG:{events:23,restrict:function(e){return 32!==e.action||3!==e.button}},ANY:{events:31,restrict:function(e){return!0}}};function l(e,t){var r=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return 4===e.button?(r|=64,r|=e.action):(r|=3&e.button,4&e.button&&(r|=64),8&e.button&&(r|=128),32===e.action?r|=32:0!==e.action||t||(r|=3)),r}var c=String.fromCharCode,u={DEFAULT:function(e){var t=[l(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":"[M"+c(t[0])+c(t[1])+c(t[2])},SGR:function(e){var t=0===e.action&&4!==e.button?"m":"M";return"[<"+l(e,!0)+";"+e.col+";"+e.row+t}},f=function(){function e(e,t){this._bufferService=e,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new s.EventEmitter,this._lastEvent=null;for(var r=0,n=Object.keys(a);r<n.length;r++){var i=n[r];this.addProtocol(i,a[i])}for(var o=0,l=Object.keys(u);o<l.length;o++){var c=l[o];this.addEncoding(c,u[c])}this.reset()}return e.prototype.addProtocol=function(e,t){this._protocols[e]=t},e.prototype.addEncoding=function(e,t){this._encodings[e]=t},Object.defineProperty(e.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(e){if(!this._protocols[e])throw new Error('unknown protocol "'+e+'"');this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"areMouseEventsActive",{get:function(){return 0!==this._protocols[this._activeProtocol].events},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(e){if(!this._encodings[e])throw new Error('unknown encoding "'+e+'"');this._activeEncoding=e},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(e.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),e.prototype.triggerMouseEvent=function(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows)return!1;if(4===e.button&&32===e.action)return!1;if(3===e.button&&32!==e.action)return!1;if(4!==e.button&&(2===e.action||3===e.action))return!1;if(e.col++,e.row++,32===e.action&&this._lastEvent&&this._compareEvents(this._lastEvent,e))return!1;if(!this._protocols[this._activeProtocol].restrict(e))return!1;var t=this._encodings[this._activeEncoding](e);return t&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0},e.prototype.explainEvents=function(e){return{down:!!(1&e),up:!!(2&e),drag:!!(4&e),move:!!(8&e),wheel:!!(16&e)}},e.prototype._compareEvents=function(e,t){return e.col===t.col&&e.row===t.row&&e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift},n([i(0,o.IBufferService),i(1,o.ICoreService)],e)}();t.CoreMouseService=f},6975:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreService=void 0;var a=r(2585),l=r(8460),c=r(1439),u=r(844),f=Object.freeze({insertMode:!1}),d=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),h=function(e){function t(t,r,n,i){var o=e.call(this)||this;return o._bufferService=r,o._logService=n,o._optionsService=i,o.isCursorInitialized=!1,o.isCursorHidden=!1,o._onData=o.register(new l.EventEmitter),o._onUserInput=o.register(new l.EventEmitter),o._onBinary=o.register(new l.EventEmitter),o._scrollToBottom=t,o.register({dispose:function(){return o._scrollToBottom=void 0}}),o.modes=(0,c.clone)(f),o.decPrivateModes=(0,c.clone)(d),o}return i(t,e),Object.defineProperty(t.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this.modes=(0,c.clone)(f),this.decPrivateModes=(0,c.clone)(d)},t.prototype.triggerDataEvent=function(e,t){if(void 0===t&&(t=!1),!this._optionsService.rawOptions.disableStdin){var r=this._bufferService.buffer;r.ybase!==r.ydisp&&this._scrollToBottom(),t&&this._onUserInput.fire(),this._logService.debug('sending data "'+e+'"',(function(){return e.split("").map((function(e){return e.charCodeAt(0)}))})),this._onData.fire(e)}},t.prototype.triggerBinaryEvent=function(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug('sending binary "'+e+'"',(function(){return e.split("").map((function(e){return e.charCodeAt(0)}))})),this._onBinary.fire(e))},o([s(1,a.IBufferService),s(2,a.ILogService),s(3,a.IOptionsService)],t)}(u.Disposable);t.CoreService=h},3730:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirtyRowService=void 0;var o=r(2585),s=function(){function e(e){this._bufferService=e,this.clearRange()}return Object.defineProperty(e.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),e.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},e.prototype.markDirty=function(e){e<this._start?this._start=e:e>this._end&&(this._end=e)},e.prototype.markRangeDirty=function(e,t){if(e>t){var r=e;e=t,t=r}e<this._start&&(this._start=e),t>this._end&&(this._end=t)},e.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},n([i(0,o.IBufferService)],e)}();t.DirtyRowService=s},4348:function(e,t,r){var n=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.InstantiationService=t.ServiceCollection=void 0;var i=r(2585),o=r(8343),s=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._entries=new Map;for(var r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],s=i[1];this.set(o,s)}}return e.prototype.set=function(e,t){var r=this._entries.get(e);return this._entries.set(e,t),r},e.prototype.forEach=function(e){this._entries.forEach((function(t,r){return e(r,t)}))},e.prototype.has=function(e){return this._entries.has(e)},e.prototype.get=function(e){return this._entries.get(e)},e}();t.ServiceCollection=s;var a=function(){function e(){this._services=new s,this._services.set(i.IInstantiationService,this)}return e.prototype.setService=function(e,t){this._services.set(e,t)},e.prototype.getService=function(e){return this._services.get(e)},e.prototype.createInstance=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var i=(0,o.getServiceDependencies)(e).sort((function(e,t){return e.index-t.index})),s=[],a=0,l=i;a<l.length;a++){var c=l[a],u=this._services.get(c.id);if(!u)throw new Error("[createInstance] "+e.name+" depends on UNKNOWN service "+c.id+".");s.push(u)}var f=i.length>0?i[0].index:t.length;if(t.length!==f)throw new Error("[createInstance] First service dependency of "+e.name+" at position "+(f+1)+" conflicts with "+t.length+" static arguments");return new(e.bind.apply(e,n([void 0],n(n([],t,!0),s,!0),!1)))},e}();t.InstantiationService=a},7866:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.LogService=void 0;var s=r(2585),a={debug:s.LogLevelEnum.DEBUG,info:s.LogLevelEnum.INFO,warn:s.LogLevelEnum.WARN,error:s.LogLevelEnum.ERROR,off:s.LogLevelEnum.OFF},l=function(){function e(e){var t=this;this._optionsService=e,this.logLevel=s.LogLevelEnum.OFF,this._updateLogLevel(),this._optionsService.onOptionChange((function(e){"logLevel"===e&&t._updateLogLevel()}))}return e.prototype._updateLogLevel=function(){this.logLevel=a[this._optionsService.rawOptions.logLevel]},e.prototype._evalLazyOptionalParams=function(e){for(var t=0;t<e.length;t++)"function"==typeof e[t]&&(e[t]=e[t]())},e.prototype._log=function(e,t,r){this._evalLazyOptionalParams(r),e.call.apply(e,o([console,"xterm.js: "+t],r,!1))},e.prototype.debug=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this.logLevel<=s.LogLevelEnum.DEBUG&&this._log(console.log,e,t)},e.prototype.info=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this.logLevel<=s.LogLevelEnum.INFO&&this._log(console.info,e,t)},e.prototype.warn=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this.logLevel<=s.LogLevelEnum.WARN&&this._log(console.warn,e,t)},e.prototype.error=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this.logLevel<=s.LogLevelEnum.ERROR&&this._log(console.error,e,t)},n([i(0,s.IOptionsService)],e)}();t.LogService=l},7302:function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsService=t.DEFAULT_OPTIONS=t.DEFAULT_BELL_SOUND=void 0;var i=r(8460),o=r(6114);t.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",t.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,customGlyphs:!0,bellSound:t.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:o.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1};var s=["normal","bold","100","200","300","400","500","600","700","800","900"],a=function(){function e(e){this._onOptionChange=new i.EventEmitter;var r=n({},t.DEFAULT_OPTIONS);for(var o in e)if(o in r)try{var s=e[o];r[o]=this._sanitizeAndValidateOption(o,s)}catch(e){console.error(e)}this.rawOptions=r,this.options=n({},r),this._setupOptions()}return Object.defineProperty(e.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),e.prototype._setupOptions=function(){var e=this,r=function(r){if(!(r in t.DEFAULT_OPTIONS))throw new Error('No option with key "'+r+'"');return e.rawOptions[r]},n=function(r,n){if(!(r in t.DEFAULT_OPTIONS))throw new Error('No option with key "'+r+'"');n=e._sanitizeAndValidateOption(r,n),e.rawOptions[r]!==n&&(e.rawOptions[r]=n,e._onOptionChange.fire(r))};for(var i in this.rawOptions){var o={get:r.bind(this,i),set:n.bind(this,i)};Object.defineProperty(this.options,i,o)}},e.prototype.setOption=function(e,t){this.options[e]=t},e.prototype._sanitizeAndValidateOption=function(e,r){switch(e){case"bellStyle":case"cursorStyle":case"rendererType":case"wordSeparator":r||(r=t.DEFAULT_OPTIONS[e]);break;case"fontWeight":case"fontWeightBold":if("number"==typeof r&&1<=r&&r<=1e3)break;r=s.includes(r)?r:t.DEFAULT_OPTIONS[e];break;case"cursorWidth":r=Math.floor(r);case"lineHeight":case"tabStopWidth":if(r<1)throw new Error(e+" cannot be less than 1, value: "+r);break;case"minimumContrastRatio":r=Math.max(1,Math.min(21,Math.round(10*r)/10));break;case"scrollback":if((r=Math.min(r,4294967295))<0)throw new Error(e+" cannot be less than 0, value: "+r);break;case"fastScrollSensitivity":case"scrollSensitivity":if(r<=0)throw new Error(e+" cannot be less than or equal to 0, value: "+r);case"rows":case"cols":if(!r&&0!==r)throw new Error(e+" must be numeric, value: "+r)}return r},e.prototype.getOption=function(e){return this.options[e]},e}();t.OptionsService=a},8343:(e,t)=>{function r(e,t,r){t.di$target===t?t.di$dependencies.push({id:e,index:r}):(t.di$dependencies=[{id:e,index:r}],t.di$target=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0,t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e.di$dependencies||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);var n=function(e,t,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");r(n,e,i)};return n.toString=function(){return e},t.serviceRegistry.set(e,n),n}},2585:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IUnicodeService=t.IOptionsService=t.ILogService=t.LogLevelEnum=t.IInstantiationService=t.IDirtyRowService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;var n,i=r(8343);t.IBufferService=(0,i.createDecorator)("BufferService"),t.ICoreMouseService=(0,i.createDecorator)("CoreMouseService"),t.ICoreService=(0,i.createDecorator)("CoreService"),t.ICharsetService=(0,i.createDecorator)("CharsetService"),t.IDirtyRowService=(0,i.createDecorator)("DirtyRowService"),t.IInstantiationService=(0,i.createDecorator)("InstantiationService"),(n=t.LogLevelEnum||(t.LogLevelEnum={}))[n.DEBUG=0]="DEBUG",n[n.INFO=1]="INFO",n[n.WARN=2]="WARN",n[n.ERROR=3]="ERROR",n[n.OFF=4]="OFF",t.ILogService=(0,i.createDecorator)("LogService"),t.IOptionsService=(0,i.createDecorator)("OptionsService"),t.IUnicodeService=(0,i.createDecorator)("UnicodeService")},1480:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeService=void 0;var n=r(8460),i=r(225),o=function(){function e(){this._providers=Object.create(null),this._active="",this._onChange=new n.EventEmitter;var e=new i.UnicodeV6;this.register(e),this._active=e.version,this._activeProvider=e}return Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeVersion",{get:function(){return this._active},set:function(e){if(!this._providers[e])throw new Error('unknown Unicode version "'+e+'"');this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)},enumerable:!1,configurable:!0}),e.prototype.register=function(e){this._providers[e.version]=e},e.prototype.wcwidth=function(e){return this._activeProvider.wcwidth(e)},e.prototype.getStringCellWidth=function(e){for(var t=0,r=e.length,n=0;n<r;++n){var i=e.charCodeAt(n);if(55296<=i&&i<=56319){if(++n>=r)return t+this.wcwidth(i);var o=e.charCodeAt(n);56320<=o&&o<=57343?i=1024*(i-55296)+o-56320+65536:t+=this.wcwidth(o)}t+=this.wcwidth(i)}return t},e}();t.UnicodeService=o}},t={};return function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}(4389)})()},{}],dH6ib:[function(e,t,r){self,t.exports=(()=>{"use strict";var e={775:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FitAddon=void 0;var r=function(){function e(){}return e.prototype.activate=function(e){this._terminal=e},e.prototype.dispose=function(){},e.prototype.fit=function(){var e=this.proposeDimensions();if(e&&this._terminal){var t=this._terminal._core;this._terminal.rows===e.rows&&this._terminal.cols===e.cols||(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}},e.prototype.proposeDimensions=function(){if(this._terminal&&this._terminal.element&&this._terminal.element.parentElement){var e=this._terminal._core;if(0!==e._renderService.dimensions.actualCellWidth&&0!==e._renderService.dimensions.actualCellHeight){var t=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(t.getPropertyValue("height")),n=Math.max(0,parseInt(t.getPropertyValue("width"))),i=window.getComputedStyle(this._terminal.element),o=r-(parseInt(i.getPropertyValue("padding-top"))+parseInt(i.getPropertyValue("padding-bottom"))),s=n-(parseInt(i.getPropertyValue("padding-right"))+parseInt(i.getPropertyValue("padding-left")))-e.viewport.scrollBarWidth;return{cols:Math.max(2,Math.floor(s/e._renderService.dimensions.actualCellWidth)),rows:Math.max(1,Math.floor(o/e._renderService.dimensions.actualCellHeight))}}}},e}();t.FitAddon=r}},t={};return function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}(775)})()},{}],jj3cB:[function(e,t,r){window,t.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebLinksAddon=void 0;var n=r(1),i=new RegExp("(?:^|[^\\da-z\\.-]+)((https?:\\/\\/)((([\\da-z\\.-]+)\\.([a-z\\.]{2,6}))|((\\d{1,3}\\.){3}\\d{1,3})|(localhost))(:\\d{1,5})?((\\/[\\/\\w\\.\\-%~:+@]*)*([^:\"'\\s]))?(\\?[0-9\\w\\[\\]\\(\\)\\/\\?\\!#@$%&'*+,:;~\\=\\.\\-]*)?(#[0-9\\w\\[\\]\\(\\)\\/\\?\\!#@$%&'*+,:;~\\=\\.\\-]*)?)($|[^\\/\\w\\.\\-%]+)");function o(e,t){var r=window.open();r?(r.opener=null,r.location.href=t):console.warn("Opening link blocked as opener could not be cleared")}var s=function(){function e(e,t,r){void 0===e&&(e=o),void 0===t&&(t={}),void 0===r&&(r=!1),this._handler=e,this._options=t,this._useLinkProvider=r,this._options.matchIndex=1}return e.prototype.activate=function(e){this._terminal=e,this._useLinkProvider&&"registerLinkProvider"in this._terminal?this._linkProvider=this._terminal.registerLinkProvider(new n.WebLinkProvider(this._terminal,i,this._handler)):this._linkMatcherId=this._terminal.registerLinkMatcher(i,this._handler,this._options)},e.prototype.dispose=function(){var e;void 0!==this._linkMatcherId&&void 0!==this._terminal&&this._terminal.deregisterLinkMatcher(this._linkMatcherId),null===(e=this._linkProvider)||void 0===e||e.dispose()},e}();t.WebLinksAddon=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkComputer=t.WebLinkProvider=void 0;var n=function(){function e(e,t,r){this._terminal=e,this._regex=t,this._handler=r}return e.prototype.provideLinks=function(e,t){t(i.computeLink(e,this._regex,this._terminal,this._handler))},e}();t.WebLinkProvider=n;var i=function(){function e(){}return e.computeLink=function(t,r,n,i){for(var o,s=new RegExp(r.source,(r.flags||"")+"g"),a=e._translateBufferLineToStringWithWrap(t-1,!1,n),l=a[0],c=a[1],u=-1,f=[];null!==(o=s.exec(l));){var d=o[1];if(!d){console.log("match found without corresponding matchIndex");break}if(u=l.indexOf(d,u+1),s.lastIndex=u+d.length,u<0)break;for(var h=u+d.length,p=c+1;h>n.cols;)h-=n.cols,p++;var v={start:{x:u+1,y:c+1},end:{x:h,y:p}};f.push({range:v,text:d,activate:i})}return f},e._translateBufferLineToStringWithWrap=function(e,t,r){var n,i,o="";do{if(!(a=r.buffer.active.getLine(e)))break;a.isWrapped&&e--,i=a.isWrapped}while(i);var s=e;do{var a,l=r.buffer.active.getLine(e+1);if(n=!!l&&l.isWrapped,!(a=r.buffer.active.getLine(e)))break;o+=a.translateToString(!n&&t).substring(0,r.cols),e++}while(n);return[o,s]},e}();t.LinkComputer=i}])},{}],aHZBR:[function(e,t,r){window,t.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttachAddon=void 0;var n=function(){function e(e,t){this._disposables=[],this._socket=e,this._socket.binaryType="arraybuffer",this._bidirectional=!t||!1!==t.bidirectional}return e.prototype.activate=function(e){var t=this;this._disposables.push(i(this._socket,"message",(function(t){var r=t.data;e.write("string"==typeof r?r:new Uint8Array(r))}))),this._bidirectional&&(this._disposables.push(e.onData((function(e){return t._sendData(e)}))),this._disposables.push(e.onBinary((function(e){return t._sendBinary(e)})))),this._disposables.push(i(this._socket,"close",(function(){return t.dispose()}))),this._disposables.push(i(this._socket,"error",(function(){return t.dispose()})))},e.prototype.dispose=function(){this._disposables.forEach((function(e){return e.dispose()}))},e.prototype._sendData=function(e){1===this._socket.readyState&&this._socket.send(e)},e.prototype._sendBinary=function(e){if(1===this._socket.readyState){for(var t=new Uint8Array(e.length),r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);this._socket.send(t)}},e}();function i(e,t,r){return e.addEventListener(t,r),{dispose:function(){r&&e.removeEventListener(t,r)}}}t.AttachAddon=n}])},{}],cbx89:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./lib/use-websocket");Object.defineProperty(r,"default",{enumerable:!0,get:function(){return n.useWebSocket}});var i=e("./lib/use-socket-io");Object.defineProperty(r,"useSocketIO",{enumerable:!0,get:function(){return i.useSocketIO}});var o=e("./lib/constants");Object.defineProperty(r,"ReadyState",{enumerable:!0,get:function(){return o.ReadyState}});var s=e("./lib/use-event-source");Object.defineProperty(r,"useEventSource",{enumerable:!0,get:function(){return s.useEventSource}})},{"./lib/use-websocket":"aNenB","./lib/use-socket-io":"a8HNI","./lib/constants":"1oGqL","./lib/use-event-source":"71yho"}],aNenB:[function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.useWebSocket=void 0;var a=e("react"),l=e("./constants"),c=e("./create-or-join"),u=e("./get-url"),f=s(e("./proxy")),d=e("./util");r.useWebSocket=function(e,t,r){void 0===t&&(t=l.DEFAULT_OPTIONS),void 0===r&&(r=!0);var s=a.useState(null),h=s[0],p=s[1],v=a.useState({}),m=v[0],_=v[1],g=a.useMemo((function(){if(h)try{return JSON.parse(h.data)}catch(e){return l.UNPARSABLE_JSON_OBJECT}return null}),[h]),y=a.useRef(null),b=a.useRef(null),C=a.useRef((function(){})),S=a.useRef(0),w=a.useRef([]),E=a.useRef(null),x=a.useRef(t);x.current=t;var k=y.current&&void 0!==m[y.current]?m[y.current]:null!==e&&!0===r?l.ReadyState.CONNECTING:l.ReadyState.UNINSTANTIATED,L=t.queryParams?JSON.stringify(t.queryParams):null,D=a.useCallback((function(e,t){var r;void 0===t&&(t=!0),l.isEventSourceSupported&&b.current instanceof EventSource?console.warn("Unable to send a message from an eventSource"):(null===(r=b.current)||void 0===r?void 0:r.readyState)===l.ReadyState.OPEN?(d.assertIsWebSocket(b.current),b.current.send(e)):t&&w.current.push(e)}),[]),j=a.useCallback((function(e,t){void 0===t&&(t=!0),D(JSON.stringify(e),t)}),[D]),O=a.useCallback((function(){return!0!==x.current.share||l.isEventSourceSupported&&b.current instanceof EventSource?b.current:(null===E.current&&b.current&&(d.assertIsWebSocket(b.current),E.current=f.default(b.current,C)),E.current)}),[]);return a.useEffect((function(){if(null!==e&&!0===r){var t,s=!1,a=function(){return i(void 0,void 0,void 0,(function(){var r,i,a;return o(this,(function(o){switch(o.label){case 0:return r=y,[4,u.getUrl(e,x)];case 1:return r.current=o.sent(),i=function(e){s||p(e)},a=function(e){s||_((function(t){var r;return n(n({},t),y.current&&((r={})[y.current]=e,r))}))},t=c.createOrJoinSocket(b,y.current,a,x,i,C,S,D),[2]}}))}))};return C.current=function(){s||(E.current&&(E.current=null),null==t||t(),a())},a(),function(){s=!0,E.current&&(E.current=null),null==t||t(),p(null)}}null!==e&&!1!==r||(S.current=0,_((function(e){var t;return n(n({},e),y.current&&((t={})[y.current]=l.ReadyState.CLOSED,t))})))}),[e,r,L,D]),a.useEffect((function(){k===l.ReadyState.OPEN&&w.current.splice(0).forEach((function(e){D(e)}))}),[k]),{sendMessage:D,sendJsonMessage:j,lastMessage:h,lastJsonMessage:g,readyState:k,getWebSocket:O}}},{react:"hCMiB","./constants":"1oGqL","./create-or-join":"h38Xw","./get-url":"fiGeD","./proxy":"3R2QE","./util":"4miTZ"}],"1oGqL":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isEventSourceSupported=r.isReactNative=r.ReadyState=r.UNPARSABLE_JSON_OBJECT=r.DEFAULT_RECONNECT_INTERVAL_MS=r.DEFAULT_RECONNECT_LIMIT=r.SOCKET_IO_PING_CODE=r.SOCKET_IO_PATH=r.SOCKET_IO_PING_INTERVAL=r.DEFAULT_EVENT_SOURCE_OPTIONS=r.EMPTY_EVENT_HANDLERS=r.DEFAULT_OPTIONS=void 0;var n;r.DEFAULT_OPTIONS={},r.EMPTY_EVENT_HANDLERS={},r.DEFAULT_EVENT_SOURCE_OPTIONS={withCredentials:!1,events:r.EMPTY_EVENT_HANDLERS},r.SOCKET_IO_PING_INTERVAL=25e3,r.SOCKET_IO_PATH="/socket.io/?EIO=3&transport=websocket",r.SOCKET_IO_PING_CODE="2",r.DEFAULT_RECONNECT_LIMIT=20,r.DEFAULT_RECONNECT_INTERVAL_MS=5e3,r.UNPARSABLE_JSON_OBJECT={},(n=r.ReadyState||(r.ReadyState={}))[n.UNINSTANTIATED=-1]="UNINSTANTIATED",n[n.CONNECTING=0]="CONNECTING",n[n.OPEN=1]="OPEN",n[n.CLOSING=2]="CLOSING",n[n.CLOSED=3]="CLOSED";r.isReactNative="undefined"!=typeof navigator&&"ReactNative"===navigator.product,r.isEventSourceSupported=!r.isReactNative&&function(){try{return"EventSource"in globalThis}catch(e){return!1}}()},{}],h38Xw:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createOrJoinSocket=void 0;var n=e("./globals"),i=e("./constants"),o=e("./attach-listener"),s=e("./attach-shared-listeners"),a=e("./manage-subscribers");r.createOrJoinSocket=function(e,t,r,l,c,u,f,d){if(!i.isEventSourceSupported&&l.current.eventSourceOptions)throw i.isReactNative?new Error("EventSource is not supported in ReactNative"):new Error("EventSource is not supported");if(l.current.share){var h=null;void 0===n.sharedWebSockets[t]?(n.sharedWebSockets[t]=l.current.eventSourceOptions?new EventSource(t,l.current.eventSourceOptions):new WebSocket(t,l.current.protocols),e.current=n.sharedWebSockets[t],r(i.ReadyState.CONNECTING),h=s.attachSharedListeners(n.sharedWebSockets[t],t,l,d)):(e.current=n.sharedWebSockets[t],r(n.sharedWebSockets[t].readyState));var p={setLastMessage:c,setReadyState:r,optionsRef:l,reconnectCount:f,reconnect:u};return a.addSubscriber(t,p),function(e,t,r,o,s){return function(){if(a.removeSubscriber(e,t),!a.hasSubscribers(e)){try{var l=n.sharedWebSockets[e];l instanceof WebSocket&&(l.onclose=function(e){r.current.onClose&&r.current.onClose(e),o(i.ReadyState.CLOSED)}),l.close()}catch(e){}s&&s(),delete n.sharedWebSockets[e]}}}(t,p,l,r,h)}if(e.current=l.current.eventSourceOptions?new EventSource(t,l.current.eventSourceOptions):new WebSocket(t,l.current.protocols),r(i.ReadyState.CONNECTING),!e.current)throw new Error("WebSocket failed to be created");return o.attachListeners(e.current,{setLastMessage:c,setReadyState:r},l,u.current,f,d)}},{"./globals":"cRwlk","./constants":"1oGqL","./attach-listener":"jZH87","./attach-shared-listeners":"ik2ex","./manage-subscribers":"7KrzU"}],cRwlk:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.sharedWebSockets=void 0,r.sharedWebSockets={}},{}],jZH87:[function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:!0}),r.attachListeners=void 0;var i=e("./socket-io"),o=e("./constants"),s=e("./util");r.attachListeners=function(e,t,r,a,l,c){var u,f,d,h=t.setLastMessage,p=t.setReadyState;return r.current.fromSocketIO&&(u=i.setUpSocketIOPing(c)),function(e,t,r){e.onmessage=function(e){t.current.onMessage&&t.current.onMessage(e),"function"==typeof t.current.filter&&!0!==t.current.filter(e)||r(e)}}(e,r,h),function(e,t,r,n){e.onopen=function(e){t.current.onOpen&&t.current.onOpen(e),n.current=0,r(o.ReadyState.OPEN)}}(e,r,p,l),f=function(e,t,r,n,i){return o.isEventSourceSupported&&e instanceof EventSource?function(){}:(s.assertIsWebSocket(e),e.onclose=function(e){var s,l;if(t.current.onClose&&t.current.onClose(e),r(o.ReadyState.CLOSED),t.current.shouldReconnect&&t.current.shouldReconnect(e)){var c=null!==(s=t.current.reconnectAttempts)&&void 0!==s?s:o.DEFAULT_RECONNECT_LIMIT;i.current<c?a=window.setTimeout((function(){i.current++,n()}),null!==(l=t.current.reconnectInterval)&&void 0!==l?l:o.DEFAULT_RECONNECT_INTERVAL_MS):(t.current.onReconnectStop&&t.current.onReconnectStop(c),console.warn("Max reconnect attempts of "+c+" exceeded"))}},function(){return a&&window.clearTimeout(a)});var a}(e,r,p,a,l),d=function(e,t,r,i,s){var a;return e.onerror=function(l){var c,u;t.current.onError&&t.current.onError(l),o.isEventSourceSupported&&e instanceof EventSource&&(t.current.onClose&&t.current.onClose(n(n({},l),{code:1006,reason:"An error occurred with the EventSource: "+l,wasClean:!1})),r(o.ReadyState.CLOSED),e.close()),t.current.retryOnError&&(s.current<(null!==(c=t.current.reconnectAttempts)&&void 0!==c?c:o.DEFAULT_RECONNECT_LIMIT)?a=window.setTimeout((function(){s.current++,i()}),null!==(u=t.current.reconnectInterval)&&void 0!==u?u:o.DEFAULT_RECONNECT_INTERVAL_MS):(t.current.onReconnectStop&&t.current.onReconnectStop(t.current.reconnectAttempts),console.warn("Max reconnect attempts of "+t.current.reconnectAttempts+" exceeded")))},function(){return a&&window.clearTimeout(a)}}(e,r,p,a,l),function(){p(o.ReadyState.CLOSING),f(),d(),e.close(),u&&clearInterval(u)}}},{"./socket-io":"cTK1x","./constants":"1oGqL","./util":"4miTZ"}],cTK1x:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.setUpSocketIOPing=r.appendQueryParams=r.parseSocketIOUrl=void 0;var n=e("./constants");r.parseSocketIOUrl=function(e){if(e)return(t=/^https|wss/.test(e)?"wss":"ws")+"://"+e.replace(/^(https?|wss?)(:\/\/)?/,"").replace(/\/$/,"")+n.SOCKET_IO_PATH;if(""===e){var t=/^https/.test(window.location.protocol)?"wss":"ws",r=window.location.port?":"+window.location.port:"";return t+"://"+window.location.hostname+r+n.SOCKET_IO_PATH}return e},r.appendQueryParams=function(e,t){void 0===t&&(t={});return e+(/\?([\w]+=[\w]+)/.test(e)?"&":"?")+(""+Object.entries(t).reduce((function(e,t){return e+(t[0]+"=")+t[1]+"&"}),"").slice(0,-1))},r.setUpSocketIOPing=function(e,t){void 0===t&&(t=n.SOCKET_IO_PING_INTERVAL);return setInterval((function(){return e(n.SOCKET_IO_PING_CODE)}),t)}},{"./constants":"1oGqL"}],"4miTZ":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.assertIsWebSocket=void 0,r.assertIsWebSocket=function(e){if(e instanceof WebSocket==!1)throw new Error("")}},{}],ik2ex:[function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:!0}),r.attachSharedListeners=void 0;var i=e("./globals"),o=e("./constants"),s=e("./manage-subscribers"),a=e("./socket-io");r.attachSharedListeners=function(e,t,r,l){var c;return r.current.fromSocketIO&&(c=a.setUpSocketIOPing(l)),function(e,t){e.onmessage=function(e){s.getSubscribers(t).forEach((function(t){t.optionsRef.current.onMessage&&t.optionsRef.current.onMessage(e),"function"==typeof t.optionsRef.current.filter&&!0!==t.optionsRef.current.filter(e)||t.setLastMessage(e)}))}}(e,t),function(e,t){e instanceof WebSocket&&(e.onclose=function(e){s.getSubscribers(t).forEach((function(t){t.optionsRef.current.onClose&&t.optionsRef.current.onClose(e),t.setReadyState(o.ReadyState.CLOSED)})),delete i.sharedWebSockets[t],s.getSubscribers(t).forEach((function(t){var r,n;if(t.optionsRef.current.shouldReconnect&&t.optionsRef.current.shouldReconnect(e)){var i=null!==(r=t.optionsRef.current.reconnectAttempts)&&void 0!==r?r:o.DEFAULT_RECONNECT_LIMIT;t.reconnectCount.current<i?setTimeout((function(){t.reconnectCount.current++,t.reconnect.current()}),null!==(n=t.optionsRef.current.reconnectInterval)&&void 0!==n?n:o.DEFAULT_RECONNECT_INTERVAL_MS):(t.optionsRef.current.onReconnectStop&&t.optionsRef.current.onReconnectStop(t.optionsRef.current.reconnectAttempts),console.warn("Max reconnect attempts of "+i+" exceeded"))}}))})}(e,t),function(e,t){e.onopen=function(e){s.getSubscribers(t).forEach((function(t){t.reconnectCount.current=0,t.optionsRef.current.onOpen&&t.optionsRef.current.onOpen(e),t.setReadyState(o.ReadyState.OPEN)}))}}(e,t),function(e,t){e.onerror=function(r){s.getSubscribers(t).forEach((function(t){t.optionsRef.current.onError&&t.optionsRef.current.onError(r),o.isEventSourceSupported&&e instanceof EventSource&&(t.optionsRef.current.onClose&&t.optionsRef.current.onClose(n(n({},r),{code:1006,reason:"An error occurred with the EventSource: "+r,wasClean:!1})),t.setReadyState(o.ReadyState.CLOSED))})),o.isEventSourceSupported&&e instanceof EventSource&&e.close()}}(e,t),function(){c&&clearInterval(c)}}},{"./globals":"cRwlk","./constants":"1oGqL","./manage-subscribers":"7KrzU","./socket-io":"cTK1x"}],"7KrzU":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.removeSubscriber=r.addSubscriber=r.hasSubscribers=r.getSubscribers=void 0;var n={},i=[];r.getSubscribers=function(e){return r.hasSubscribers(e)?Array.from(n[e]):i},r.hasSubscribers=function(e){var t;return(null===(t=n[e])||void 0===t?void 0:t.size)>0},r.addSubscriber=function(e,t){n[e]=n[e]||new Set,n[e].add(t)},r.removeSubscriber=function(e,t){n[e].delete(t)}},{}],fiGeD:[function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.getUrl=void 0;var o=e("./socket-io");r.getUrl=function(e,t){return n(void 0,void 0,void 0,(function(){var r,n;return i(this,(function(i){switch(i.label){case 0:return"function"!=typeof e?[3,2]:[4,e()];case 1:return r=i.sent(),[3,3];case 2:r=e,i.label=3;case 3:return n=t.current.fromSocketIO?o.parseSocketIOUrl(r):r,[2,t.current.queryParams?o.appendQueryParams(n,t.current.queryParams):n]}}))}))}},{"./socket-io":"cTK1x"}],"3R2QE":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.websocketWrapper=void 0,r.websocketWrapper=function(e,t){return new Proxy(e,{get:function(e,r){var n=e[r];return"reconnect"===r?t:"function"==typeof n?(console.error("Calling methods directly on the websocket is not supported at this moment. You must use the methods returned by useWebSocket."),function(){}):n},set:function(e,t,r){return/^on/.test(t)?(console.warn("The websocket's event handlers should be defined through the options object passed into useWebSocket."),!1):(e[t]=r,!0)}})},r.default=r.websocketWrapper},{}],a8HNI:[function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:!0}),r.useSocketIO=void 0;var i=e("react"),o=e("./use-websocket"),s=e("./constants"),a={type:"empty",payload:null};r.useSocketIO=function(e,t,r){void 0===t&&(t=s.DEFAULT_OPTIONS),void 0===r&&(r=!0);var l=i.useMemo((function(){return n(n({},t),{fromSocketIO:!0})}),[]),c=o.useWebSocket(e,l,r),u=c.sendMessage,f=c.sendJsonMessage,d=c.lastMessage,h=c.readyState,p=c.getWebSocket,v=i.useMemo((function(){return function(e){if(!e||!e.data)return a;var t=e.data.match(/\[.*]/);if(!t)return a;var r=JSON.parse(t);return Array.isArray(r)&&r[1]?{type:r[0],payload:r[1]}:a}(d)}),[d]);return{sendMessage:u,sendJsonMessage:f,lastMessage:v,lastJsonMessage:v,readyState:h,getWebSocket:p}}},{react:"hCMiB","./use-websocket":"aNenB","./constants":"1oGqL"}],"71yho":[function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};Object.defineProperty(r,"__esModule",{value:!0}),r.useEventSource=void 0;var o=e("react"),s=e("./use-websocket"),a=e("./constants");r.useEventSource=function(e,t,r){void 0===t&&(t=a.DEFAULT_EVENT_SOURCE_OPTIONS),void 0===r&&(r=!0);var l=t.withCredentials,c=t.events,u=i(t,["withCredentials","events"]),f=n(n({},u),{eventSourceOptions:{withCredentials:l}}),d=o.useRef(a.EMPTY_EVENT_HANDLERS);c&&(d.current=c);var h=s.useWebSocket(e,f,r),p=h.lastMessage,v=h.readyState,m=h.getWebSocket;return o.useEffect((function(){(null==p?void 0:p.type)&&Object.entries(d.current).forEach((function(e){var t=e[0],r=e[1];t===p.type&&r(p)}))}),[p]),{lastEvent:p,readyState:v,getEventSource:m}}},{react:"hCMiB","./use-websocket":"aNenB","./constants":"1oGqL"}],f4Whq:[function(){},{}],hfGSA:[function(e,t,r){var n,i,o=arguments[3];n=void 0!==o?o:this.window||this.global,i=function(t){"use strict";var r,n,i=e("./default-options.js"),o={},s={},a=e("./build-html.js"),l=e("./parse-content.js"),c=e("./update-toc-scroll.js"),u=!!(t&&t.document&&t.document.querySelector&&t.addEventListener);if("undefined"!=typeof window||u){var f,d=Object.prototype.hasOwnProperty;return s.destroy=function(){var e=p(o);null!==e&&(o.skipRendering||e&&(e.innerHTML=""),o.scrollContainer&&document.querySelector(o.scrollContainer)?(document.querySelector(o.scrollContainer).removeEventListener("scroll",this._scrollListener,!1),document.querySelector(o.scrollContainer).removeEventListener("resize",this._scrollListener,!1),r&&document.querySelector(o.scrollContainer).removeEventListener("click",this._clickListener,!1)):(document.removeEventListener("scroll",this._scrollListener,!1),document.removeEventListener("resize",this._scrollListener,!1),r&&document.removeEventListener("click",this._clickListener,!1)))},s.init=function(t){if(u){o=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)d.call(r,n)&&(e[n]=r[n])}return e}(i,t||{}),this.options=o,this.state={},o.scrollSmooth&&(o.duration=o.scrollSmoothDuration,o.offset=o.scrollSmoothOffset,s.scrollSmooth=e("./scroll-smooth").initSmoothScrolling(o)),r=a(o),n=l(o),this._buildHtml=r,this._parseContent=n,this._headingsArray=f,s.destroy();var v=function(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch(t){return console.warn("Contents element not found: "+e.contentSelector),null}}(o);if(null!==v){var m=p(o);if(null!==m&&null!==(f=n.selectHeadings(v,o.headingSelector))){var _=n.nestHeadingsArray(f).nest;o.skipRendering||r.render(m,_),this._scrollListener=h((function(e){r.updateToc(f),!o.disableTocScrollSync&&c(o);var t=e&&e.target&&e.target.scrollingElement&&0===e.target.scrollingElement.scrollTop;(e&&(0===e.eventPhase||null===e.currentTarget)||t)&&(r.updateToc(f),o.scrollEndCallback&&o.scrollEndCallback(e))}),o.throttleTimeout),this._scrollListener(),o.scrollContainer&&document.querySelector(o.scrollContainer)?(document.querySelector(o.scrollContainer).addEventListener("scroll",this._scrollListener,!1),document.querySelector(o.scrollContainer).addEventListener("resize",this._scrollListener,!1)):(document.addEventListener("scroll",this._scrollListener,!1),document.addEventListener("resize",this._scrollListener,!1));var g=null;return this._clickListener=h((function(e){o.scrollSmooth&&r.disableTocAnimation(e),r.updateToc(f),g&&clearTimeout(g),g=setTimeout((function(){r.enableTocAnimation()}),o.scrollSmoothDuration)}),o.throttleTimeout),o.scrollContainer&&document.querySelector(o.scrollContainer)?document.querySelector(o.scrollContainer).addEventListener("click",this._clickListener,!1):document.addEventListener("click",this._clickListener,!1),this}}}},s.refresh=function(e){s.destroy(),s.init(e||this.options)},t.tocbot=s,s}function h(e,t,r){var n,i;return t||(t=250),function(){var o=r||this,s=+new Date,a=arguments;n&&s<n+t?(clearTimeout(i),i=setTimeout((function(){n=s,e.apply(o,a)}),t)):(n=s,e.apply(o,a))}}function p(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch(t){return console.warn("TOC element not found: "+e.tocSelector),null}}},"function"==typeof define&&define.amd?define([],i(n)):t.exports=i(n)},{"./default-options.js":"hpyK8","./build-html.js":"hietb","./parse-content.js":"gBO5N","./update-toc-scroll.js":"3YYn8","./scroll-smooth":"1E2DC"}],hpyK8:[function(e,t,r){t.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1}},{}],hietb:[function(e,t,r){t.exports=function(e){var t,r=[].forEach,n=[].some,i=document.body,o=!0,s=" ";function a(t,n){var i=n.appendChild(function(t){var n=document.createElement("li"),i=document.createElement("a");e.listItemClass&&n.setAttribute("class",e.listItemClass);e.onClick&&(i.onclick=e.onClick);e.includeTitleTags&&i.setAttribute("title",t.textContent);e.includeHtml&&t.childNodes.length?r.call(t.childNodes,(function(e){i.appendChild(e.cloneNode(!0))})):i.textContent=t.textContent;return i.setAttribute("href",e.basePath+"#"+t.id),i.setAttribute("class",e.linkClass+s+"node-name--"+t.nodeName+s+e.extraLinkClasses),n.appendChild(i),n}(t));if(t.children.length){var o=l(t.isCollapsed);t.children.forEach((function(e){a(e,o)})),i.appendChild(o)}}function l(t){var r=e.orderedList?"ol":"ul",n=document.createElement(r),i=e.listClass+s+e.extraListClasses;return t&&(i+=s+e.collapsibleClass,i+=s+e.isCollapsedClass),n.setAttribute("class",i),n}function c(t){var r=0;return null!==t&&(r=t.offsetTop,e.hasInnerContainers&&(r+=c(t.offsetParent))),r}function u(t){return t&&-1!==t.className.indexOf(e.collapsibleClass)&&-1!==t.className.indexOf(e.isCollapsedClass)?(t.className=t.className.split(s+e.isCollapsedClass).join(""),u(t.parentNode.parentNode)):t}return{enableTocAnimation:function(){o=!0},disableTocAnimation:function(t){var r=t.target||t.srcElement;"string"==typeof r.className&&-1!==r.className.indexOf(e.linkClass)&&(o=!1)},render:function(e,r){var n=l(!1);if(r.forEach((function(e){a(e,n)})),null!==(t=e||t))return t.firstChild&&t.removeChild(t.firstChild),0===r.length?t:t.appendChild(n)},updateToc:function(a){var l;l=e.scrollContainer&&document.querySelector(e.scrollContainer)?document.querySelector(e.scrollContainer).scrollTop:document.documentElement.scrollTop||i.scrollTop,e.positionFixedSelector&&function(){var r;r=e.scrollContainer&&document.querySelector(e.scrollContainer)?document.querySelector(e.scrollContainer).scrollTop:document.documentElement.scrollTop||i.scrollTop;var n=document.querySelector(e.positionFixedSelector);"auto"===e.fixedSidebarOffset&&(e.fixedSidebarOffset=t.offsetTop),r>e.fixedSidebarOffset?-1===n.className.indexOf(e.positionFixedClass)&&(n.className+=s+e.positionFixedClass):n.className=n.className.split(s+e.positionFixedClass).join("")}();var f,d=a;if(o&&null!==t&&d.length>0){n.call(d,(function(t,r){return c(t)>l+e.headingsOffset+10?(f=d[0===r?r:r-1],!0):r===d.length-1?(f=d[d.length-1],!0):void 0}));var h=t.querySelectorAll("."+e.linkClass);r.call(h,(function(t){t.className=t.className.split(s+e.activeLinkClass).join("")}));var p=t.querySelectorAll("."+e.listItemClass);r.call(p,(function(t){t.className=t.className.split(s+e.activeListItemClass).join("")}));var v=t.querySelector("."+e.linkClass+".node-name--"+f.nodeName+'[href="'+e.basePath+"#"+f.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/@])/g,"\\$1")+'"]');v&&-1===v.className.indexOf(e.activeLinkClass)&&(v.className+=s+e.activeLinkClass);var m=v&&v.parentNode;m&&-1===m.className.indexOf(e.activeListItemClass)&&(m.className+=s+e.activeListItemClass);var _=t.querySelectorAll("."+e.listClass+"."+e.collapsibleClass);r.call(_,(function(t){-1===t.className.indexOf(e.isCollapsedClass)&&(t.className+=s+e.isCollapsedClass)})),v&&v.nextSibling&&-1!==v.nextSibling.className.indexOf(e.isCollapsedClass)&&(v.nextSibling.className=v.nextSibling.className.split(s+e.isCollapsedClass).join("")),u(v&&v.parentNode.parentNode)}}}}},{}],gBO5N:[function(e,t,r){t.exports=function(e){var t=[].reduce;function r(e){return e[e.length-1]}function n(e){return+e.nodeName.toUpperCase().replace("H","")}function i(t){if(!(t instanceof window.HTMLElement))return t;if(e.ignoreHiddenElements&&(!t.offsetHeight||!t.offsetParent))return null;const r=t.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(t.textContent)):t.textContent.trim());var i={id:t.id,children:[],nodeName:t.nodeName,headingLevel:n(t),textContent:r};return e.includeHtml&&(i.childNodes=t.childNodes),e.headingObjectCallback?e.headingObjectCallback(i,t):i}return{nestHeadingsArray:function(n){return t.call(n,(function(t,n){var o=i(n);return o&&function(t,n){for(var o=i(t),s=o.headingLevel,a=n,l=r(a),c=s-(l?l.headingLevel:0);c>0&&(!(l=r(a))||s!==l.headingLevel);)l&&void 0!==l.children&&(a=l.children),c--;s>=e.collapseDepth&&(o.isCollapsed=!0),a.push(o)}(o,t.nest),t}),{nest:[]})},selectHeadings:function(t,r){var n=r;e.ignoreSelector&&(n=r.split(",").map((function(t){return t.trim()+":not("+e.ignoreSelector+")"})));try{return t.querySelectorAll(n)}catch(e){return console.warn("Headers not found with selector: "+n),null}}}}},{}],"3YYn8":[function(e,t,r){t.exports=function(e){var t=e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){var r=t.querySelector("."+e.activeListItemClass);r&&(t.scrollTop=r.offsetTop)}}},{}],"1E2DC":[function(e,t,r){r.initSmoothScrolling=function(e){var t=e.duration,r=e.offset,n=location.hash?i(location.href):location.href;function i(e){return e.slice(0,e.lastIndexOf("#"))}document.body.addEventListener("click",(function(o){var s;"a"!==(s=o.target).tagName.toLowerCase()||!(s.hash.length>0||"#"===s.href.charAt(s.href.length-1))||i(s.href)!==n&&i(s.href)+"#"!==n||o.target.className.indexOf("no-smooth-scroll")>-1||"#"===o.target.href.charAt(o.target.href.length-2)&&"!"===o.target.href.charAt(o.target.href.length-1)||-1===o.target.className.indexOf(e.linkClass)||function(e,t){var r,n,i=window.pageYOffset,o={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||f},s=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),a="string"==typeof e?o.offset+(e?s&&s.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,l="function"==typeof o.duration?o.duration(a):o.duration;function c(e){n=e-r,window.scrollTo(0,o.easing(n,i,a,l)),n<l?requestAnimationFrame(c):u()}function u(){window.scrollTo(0,i+a),"function"==typeof o.callback&&o.callback()}function f(e,t,r,n){return(e/=n/2)<1?r/2*e*e+t:-r/2*(--e*(e-2)-1)+t}requestAnimationFrame((function(e){r=e,c(e)}))}(o.target.hash,{duration:t,offset:r,callback:function(){var e,t;e=o.target.hash,(t=document.getElementById(e.substring(1)))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())}})}),!1)}},{}],"6Njav":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("react");e("./Input.scss");r.default=function(e){var t=n.useState(""),r=t[0],i=t[1];return n.createElement("div",{className:"input-container"},n.createElement("input",{className:"textinput",placeholder:"URL",value:r,onChange:function(e){i(e.target.value)}}),n.createElement("br",null),n.createElement("br",null),n.createElement("button",{className:"button",onClick:function(){window.pywebview.api.load_lesson(r)}},"Load"))}},{react:"hCMiB","./Input.scss":"ef57s","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],ef57s:[function(){},{}],hl7vm:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("react"),o=n.interopDefault(i);r.default=function(e){var t=e.style,r=e.isCollapsed,n=e.children;return o.default.createElement("div",null,o.default.createElement("div",{className:"collapse-content",style:r?t.expanded:t.collapsed,"aria-expanded":r},n))}},{react:"hCMiB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}],"7SFEi":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=e("react"),o=n.interopDefault(i);r.default=function(){var e=(0,i.useState)(""),t=(e[0],e[1]);return(0,i.useRef)(null),window.addEventListener("mouseup",(function(){var e,r=(e="",window.getSelection&&(e=window.getSelection().toString()),e);r.length>0&&(document.execCommand("copy"),t("Copied!"))}),!1),o.default.createElement("div",null)}},{react:"hCMiB","@parcel/transformer-js/src/esmodule-helpers.js":"511CZ"}]},["hmcF4","a4cOq"],"a4cOq");
//# sourceMappingURL=index.af6bee28.js.map
